x-prop-tree 0.5.4 → 0.5.6
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/components/propTree/utils.d.ts +3 -0
- package/dist/components/propTree/values/colorPicker.vue.d.ts +3 -2
- package/dist/components/propTree/values/multiTypes.vue.d.ts +3 -2
- package/dist/components/propTree/values/numInput.vue.d.ts +3 -2
- package/dist/components/propTree/values/select.vue.d.ts +3 -2
- package/dist/components/propTree/values/strInput.vue.d.ts +1 -1
- package/dist/components/propTree/values/switch.vue.d.ts +3 -2
- package/dist/index.js +1328 -1712
- package/package.json +5 -5
- package/dist/components/propTree/util.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1,1028 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return (n) => Object.keys(e).reduce((r, i) => {
|
|
9
|
-
const o = typeof e[i] == "object" && e[i] != null && !Array.isArray(e[i]) ? e[i] : {
|
|
10
|
-
type: e[i]
|
|
11
|
-
};
|
|
12
|
-
return n && i in n ? r[i] = {
|
|
13
|
-
...o,
|
|
14
|
-
default: n[i]
|
|
15
|
-
} : r[i] = o, t && !r[i].source && (r[i].source = t), r;
|
|
16
|
-
}, {});
|
|
17
|
-
}
|
|
18
|
-
const Jn = X({
|
|
19
|
-
class: [String, Array, Object],
|
|
20
|
-
style: {
|
|
21
|
-
type: [String, Array, Object],
|
|
22
|
-
default: null
|
|
23
|
-
}
|
|
24
|
-
}, "component");
|
|
25
|
-
function le(e) {
|
|
26
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
|
|
27
|
-
if (!(e == null || e === ""))
|
|
28
|
-
return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${t}` : void 0;
|
|
29
|
-
}
|
|
30
|
-
function ct(e) {
|
|
31
|
-
let t;
|
|
32
|
-
return e !== null && typeof e == "object" && ((t = Object.getPrototypeOf(e)) === Object.prototype || t === null);
|
|
33
|
-
}
|
|
34
|
-
function Fe(e, t) {
|
|
35
|
-
return t.every((n) => e.hasOwnProperty(n));
|
|
36
|
-
}
|
|
37
|
-
function Qn(e, t) {
|
|
38
|
-
const n = {}, r = new Set(Object.keys(e));
|
|
39
|
-
for (const i of t)
|
|
40
|
-
r.has(i) && (n[i] = e[i]);
|
|
41
|
-
return n;
|
|
42
|
-
}
|
|
43
|
-
function ft(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));
|
|
46
|
-
}
|
|
47
|
-
function er(e) {
|
|
48
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
49
|
-
const n = [];
|
|
50
|
-
let r = 0;
|
|
51
|
-
for (; r < e.length; )
|
|
52
|
-
n.push(e.substr(r, t)), r += t;
|
|
53
|
-
return n;
|
|
54
|
-
}
|
|
55
|
-
function on() {
|
|
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;
|
|
57
|
-
const r = {};
|
|
58
|
-
for (const i in e)
|
|
59
|
-
r[i] = e[i];
|
|
60
|
-
for (const i in t) {
|
|
61
|
-
const a = e[i], o = t[i];
|
|
62
|
-
if (ct(a) && ct(o)) {
|
|
63
|
-
r[i] = on(a, o, n);
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
if (n && Array.isArray(a) && Array.isArray(o)) {
|
|
67
|
-
r[i] = n(a, o);
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
r[i] = o;
|
|
71
|
-
}
|
|
72
|
-
return r;
|
|
73
|
-
}
|
|
74
|
-
function ln(e) {
|
|
75
|
-
return e.map((t) => t.type === Ye ? ln(t.children) : t).flat();
|
|
76
|
-
}
|
|
77
|
-
function ne() {
|
|
78
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
79
|
-
if (ne.cache.has(e)) return ne.cache.get(e);
|
|
80
|
-
const t = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
|
|
81
|
-
return ne.cache.set(e, t), t;
|
|
82
|
-
}
|
|
83
|
-
ne.cache = /* @__PURE__ */ new Map();
|
|
84
|
-
function un(e) {
|
|
85
|
-
const t = Qt({}), n = I(e);
|
|
86
|
-
return Xe(() => {
|
|
87
|
-
for (const r in n.value)
|
|
88
|
-
t[r] = n.value[r];
|
|
89
|
-
}, {
|
|
90
|
-
flush: "sync"
|
|
91
|
-
}), kn(t);
|
|
92
|
-
}
|
|
93
|
-
function tr(e, t) {
|
|
94
|
-
return e.includes(t);
|
|
95
|
-
}
|
|
96
|
-
const te = 2.4, dt = 0.2126729, gt = 0.7151522, mt = 0.072175, nr = 0.55, rr = 0.58, ar = 0.57, sr = 0.62, be = 0.03, yt = 1.45, ir = 5e-4, or = 1.25, lr = 1.25, vt = 0.078, pt = 12.82051282051282, Te = 0.06, ht = 1e-3;
|
|
97
|
-
function _t(e, t) {
|
|
98
|
-
const n = (e.r / 255) ** te, r = (e.g / 255) ** te, i = (e.b / 255) ** te, a = (t.r / 255) ** te, o = (t.g / 255) ** te, f = (t.b / 255) ** te;
|
|
99
|
-
let l = n * dt + r * gt + i * mt, c = a * dt + o * gt + f * mt;
|
|
100
|
-
if (l <= be && (l += (be - l) ** yt), c <= be && (c += (be - c) ** yt), Math.abs(c - l) < ir) return 0;
|
|
101
|
-
let y;
|
|
102
|
-
if (c > l) {
|
|
103
|
-
const d = (c ** nr - l ** rr) * or;
|
|
104
|
-
y = d < ht ? 0 : d < vt ? d - d * pt * Te : d - Te;
|
|
105
|
-
} else {
|
|
106
|
-
const d = (c ** sr - l ** ar) * lr;
|
|
107
|
-
y = d > -ht ? 0 : d > -vt ? d - d * pt * Te : d + Te;
|
|
108
|
-
}
|
|
109
|
-
return y * 100;
|
|
110
|
-
}
|
|
111
|
-
function ue(e) {
|
|
112
|
-
Rn(`Vuetify: ${e}`);
|
|
113
|
-
}
|
|
114
|
-
function Ue(e) {
|
|
115
|
-
return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
|
|
116
|
-
}
|
|
117
|
-
function ur(e) {
|
|
118
|
-
return Ue(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
|
|
119
|
-
}
|
|
120
|
-
const bt = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, cr = {
|
|
121
|
-
rgb: (e, t, n, r) => ({
|
|
122
|
-
r: e,
|
|
123
|
-
g: t,
|
|
124
|
-
b: n,
|
|
125
|
-
a: r
|
|
126
|
-
}),
|
|
127
|
-
rgba: (e, t, n, r) => ({
|
|
128
|
-
r: e,
|
|
129
|
-
g: t,
|
|
130
|
-
b: n,
|
|
131
|
-
a: r
|
|
132
|
-
}),
|
|
133
|
-
hsl: (e, t, n, r) => Tt({
|
|
134
|
-
h: e,
|
|
135
|
-
s: t,
|
|
136
|
-
l: n,
|
|
137
|
-
a: r
|
|
138
|
-
}),
|
|
139
|
-
hsla: (e, t, n, r) => Tt({
|
|
140
|
-
h: e,
|
|
141
|
-
s: t,
|
|
142
|
-
l: n,
|
|
143
|
-
a: r
|
|
144
|
-
}),
|
|
145
|
-
hsv: (e, t, n, r) => fe({
|
|
146
|
-
h: e,
|
|
147
|
-
s: t,
|
|
148
|
-
v: n,
|
|
149
|
-
a: r
|
|
150
|
-
}),
|
|
151
|
-
hsva: (e, t, n, r) => fe({
|
|
152
|
-
h: e,
|
|
153
|
-
s: t,
|
|
154
|
-
v: n,
|
|
155
|
-
a: r
|
|
156
|
-
})
|
|
157
|
-
};
|
|
158
|
-
function oe(e) {
|
|
159
|
-
if (typeof e == "number")
|
|
160
|
-
return (isNaN(e) || e < 0 || e > 16777215) && ue(`'${e}' is not a valid hex color`), {
|
|
161
|
-
r: (e & 16711680) >> 16,
|
|
162
|
-
g: (e & 65280) >> 8,
|
|
163
|
-
b: e & 255
|
|
164
|
-
};
|
|
165
|
-
if (typeof e == "string" && bt.test(e)) {
|
|
166
|
-
const {
|
|
167
|
-
groups: t
|
|
168
|
-
} = e.match(bt), {
|
|
169
|
-
fn: n,
|
|
170
|
-
values: r
|
|
171
|
-
} = t, i = r.split(/,\s*/).map((a) => a.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(n) ? parseFloat(a) / 100 : parseFloat(a));
|
|
172
|
-
return cr[n](...i);
|
|
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((r) => r + r).join("") : [6, 8].includes(t.length) || ue(`'${e}' is not a valid hex(a) color`);
|
|
176
|
-
const n = parseInt(t, 16);
|
|
177
|
-
return (isNaN(n) || n < 0 || n > 4294967295) && ue(`'${e}' is not a valid hex(a) color`), fr(t);
|
|
178
|
-
} else if (typeof e == "object") {
|
|
179
|
-
if (Fe(e, ["r", "g", "b"]))
|
|
180
|
-
return e;
|
|
181
|
-
if (Fe(e, ["h", "s", "l"]))
|
|
182
|
-
return fe(cn(e));
|
|
183
|
-
if (Fe(e, ["h", "s", "v"]))
|
|
184
|
-
return fe(e);
|
|
185
|
-
}
|
|
186
|
-
throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
|
|
187
|
-
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
|
|
188
|
-
}
|
|
189
|
-
function fe(e) {
|
|
190
|
-
const {
|
|
191
|
-
h: t,
|
|
192
|
-
s: n,
|
|
193
|
-
v: r,
|
|
194
|
-
a: i
|
|
195
|
-
} = e, a = (f) => {
|
|
196
|
-
const l = (f + t / 60) % 6;
|
|
197
|
-
return r - r * n * Math.max(Math.min(l, 4 - l, 1), 0);
|
|
198
|
-
}, o = [a(5), a(3), a(1)].map((f) => Math.round(f * 255));
|
|
199
|
-
return {
|
|
200
|
-
r: o[0],
|
|
201
|
-
g: o[1],
|
|
202
|
-
b: o[2],
|
|
203
|
-
a: i
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
function Tt(e) {
|
|
207
|
-
return fe(cn(e));
|
|
208
|
-
}
|
|
209
|
-
function cn(e) {
|
|
210
|
-
const {
|
|
211
|
-
h: t,
|
|
212
|
-
s: n,
|
|
213
|
-
l: r,
|
|
214
|
-
a: i
|
|
215
|
-
} = e, a = r + n * Math.min(r, 1 - r), o = a === 0 ? 0 : 2 - 2 * r / a;
|
|
216
|
-
return {
|
|
217
|
-
h: t,
|
|
218
|
-
s: o,
|
|
219
|
-
v: a,
|
|
220
|
-
a: i
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
function fr(e) {
|
|
224
|
-
e = dr(e);
|
|
225
|
-
let [t, n, r, i] = er(e, 2).map((a) => parseInt(a, 16));
|
|
226
|
-
return i = i === void 0 ? i : i / 255, {
|
|
227
|
-
r: t,
|
|
228
|
-
g: n,
|
|
229
|
-
b: r,
|
|
230
|
-
a: i
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
function dr(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 = ft(ft(e, 6), 8, "F")), e;
|
|
235
|
-
}
|
|
236
|
-
function gr(e) {
|
|
237
|
-
const t = Math.abs(_t(oe(0), oe(e)));
|
|
238
|
-
return Math.abs(_t(oe(16777215), oe(e))) > Math.min(t, 50) ? "#fff" : "#000";
|
|
239
|
-
}
|
|
240
|
-
function ve(e, t) {
|
|
241
|
-
const n = Nn();
|
|
242
|
-
if (!n)
|
|
243
|
-
throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
|
|
244
|
-
return n;
|
|
245
|
-
}
|
|
246
|
-
function mr() {
|
|
247
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
248
|
-
const t = ve(e).type;
|
|
249
|
-
return ne((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
|
|
250
|
-
}
|
|
251
|
-
function yr(e) {
|
|
252
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve("injectSelf");
|
|
253
|
-
const {
|
|
254
|
-
provides: n
|
|
255
|
-
} = t;
|
|
256
|
-
if (n && e in n)
|
|
257
|
-
return n[e];
|
|
258
|
-
}
|
|
259
|
-
const ze = Symbol.for("vuetify:defaults");
|
|
260
|
-
function fn() {
|
|
261
|
-
const e = Ze(ze);
|
|
262
|
-
if (!e) throw new Error("[Vuetify] Could not find defaults instance");
|
|
263
|
-
return e;
|
|
264
|
-
}
|
|
265
|
-
function vr(e, t) {
|
|
266
|
-
var n, r;
|
|
267
|
-
return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((r = e.props) == null ? void 0 : r[ne(t)]) < "u";
|
|
268
|
-
}
|
|
269
|
-
function pr() {
|
|
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] : fn();
|
|
271
|
-
const r = ve("useDefaults");
|
|
272
|
-
if (t = t ?? r.type.name ?? r.type.__name, !t)
|
|
273
|
-
throw new Error("[Vuetify] Could not determine component name");
|
|
274
|
-
const i = I(() => {
|
|
275
|
-
var l;
|
|
276
|
-
return (l = n.value) == null ? void 0 : l[e._as ?? t];
|
|
277
|
-
}), a = new Proxy(e, {
|
|
278
|
-
get(l, c) {
|
|
279
|
-
var d, v, T, h, $, A, O;
|
|
280
|
-
const y = Reflect.get(l, c);
|
|
281
|
-
return c === "class" || c === "style" ? [(d = i.value) == null ? void 0 : d[c], y].filter((B) => B != null) : typeof c == "string" && !vr(r.vnode, c) ? ((v = i.value) == null ? void 0 : v[c]) !== void 0 ? (T = i.value) == null ? void 0 : T[c] : (($ = (h = n.value) == null ? void 0 : h.global) == null ? void 0 : $[c]) !== void 0 ? (O = (A = n.value) == null ? void 0 : A.global) == null ? void 0 : O[c] : y : y;
|
|
282
|
-
}
|
|
283
|
-
}), o = Un();
|
|
284
|
-
Xe(() => {
|
|
285
|
-
if (i.value) {
|
|
286
|
-
const l = Object.entries(i.value).filter((c) => {
|
|
287
|
-
let [y] = c;
|
|
288
|
-
return y.startsWith(y[0].toUpperCase());
|
|
289
|
-
});
|
|
290
|
-
o.value = l.length ? Object.fromEntries(l) : void 0;
|
|
291
|
-
} else
|
|
292
|
-
o.value = void 0;
|
|
293
|
-
});
|
|
294
|
-
function f() {
|
|
295
|
-
const l = yr(ze, r);
|
|
296
|
-
en(ze, I(() => o.value ? on((l == null ? void 0 : l.value) ?? {}, o.value) : l == null ? void 0 : l.value));
|
|
297
|
-
}
|
|
298
|
-
return {
|
|
299
|
-
props: a,
|
|
300
|
-
provideSubDefaults: f
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
function Ve(e) {
|
|
304
|
-
if (e._setup = e._setup ?? e.setup, !e.name)
|
|
305
|
-
return ue("The component is missing an explicit name, unable to generate default prop value"), e;
|
|
306
|
-
if (e._setup) {
|
|
307
|
-
e.props = X(e.props ?? {}, e.name)();
|
|
308
|
-
const t = Object.keys(e.props).filter((n) => n !== "class" && n !== "style");
|
|
309
|
-
e.filterProps = function(r) {
|
|
310
|
-
return Qn(r, t);
|
|
311
|
-
}, e.props._as = String, e.setup = function(r, i) {
|
|
312
|
-
const a = fn();
|
|
313
|
-
if (!a.value) return e._setup(r, i);
|
|
314
|
-
const {
|
|
315
|
-
props: o,
|
|
316
|
-
provideSubDefaults: f
|
|
317
|
-
} = pr(r, r._as ?? e.name, a), l = e._setup(o, i);
|
|
318
|
-
return f(), l;
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
return e;
|
|
322
|
-
}
|
|
323
|
-
function dn() {
|
|
324
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
325
|
-
return (t) => (e ? Ve : L)(t);
|
|
326
|
-
}
|
|
327
|
-
function hr(e) {
|
|
328
|
-
const t = ve("useRender");
|
|
329
|
-
t.render = e;
|
|
330
|
-
}
|
|
331
|
-
const $t = Symbol.for("vuetify:theme"), _r = X({
|
|
332
|
-
theme: String
|
|
333
|
-
}, "theme");
|
|
334
|
-
function br(e) {
|
|
335
|
-
ve("provideTheme");
|
|
336
|
-
const t = Ze($t, null);
|
|
337
|
-
if (!t) throw new Error("Could not find Vuetify theme injection");
|
|
338
|
-
const n = I(() => e.theme ?? t.name.value), r = I(() => t.themes.value[n.value]), i = I(() => t.isDisabled ? void 0 : `v-theme--${n.value}`), a = {
|
|
339
|
-
...t,
|
|
340
|
-
name: n,
|
|
341
|
-
current: r,
|
|
342
|
-
themeClasses: i
|
|
343
|
-
};
|
|
344
|
-
return en($t, a), a;
|
|
345
|
-
}
|
|
346
|
-
const Tr = X({
|
|
347
|
-
tag: {
|
|
348
|
-
type: String,
|
|
349
|
-
default: "div"
|
|
350
|
-
}
|
|
351
|
-
}, "tag");
|
|
352
|
-
function $r(e) {
|
|
353
|
-
return un(() => {
|
|
354
|
-
const t = [], n = {};
|
|
355
|
-
if (e.value.background)
|
|
356
|
-
if (Ue(e.value.background)) {
|
|
357
|
-
if (n.backgroundColor = e.value.background, !e.value.text && ur(e.value.background)) {
|
|
358
|
-
const r = oe(e.value.background);
|
|
359
|
-
if (r.a == null || r.a === 1) {
|
|
360
|
-
const i = gr(r);
|
|
361
|
-
n.color = i, n.caretColor = i;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
} else
|
|
365
|
-
t.push(`bg-${e.value.background}`);
|
|
366
|
-
return e.value.text && (Ue(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
|
|
369
|
-
};
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
function Cr(e, t) {
|
|
373
|
-
const n = I(() => ({
|
|
374
|
-
text: Je(e) ? e.value : null
|
|
375
|
-
})), {
|
|
376
|
-
colorClasses: r,
|
|
377
|
-
colorStyles: i
|
|
378
|
-
} = $r(n);
|
|
379
|
-
return {
|
|
380
|
-
textColorClasses: r,
|
|
381
|
-
textColorStyles: i
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
const gn = [String, Function, Object, Array], wr = Symbol.for("vuetify:icons"), Ie = X({
|
|
385
|
-
icon: {
|
|
386
|
-
type: gn
|
|
387
|
-
},
|
|
388
|
-
// Could not remove this and use makeTagProps, types complained because it is not required
|
|
389
|
-
tag: {
|
|
390
|
-
type: String,
|
|
391
|
-
required: !0
|
|
392
|
-
}
|
|
393
|
-
}, "icon"), Ct = dn()({
|
|
394
|
-
name: "VComponentIcon",
|
|
395
|
-
props: Ie(),
|
|
396
|
-
setup(e, t) {
|
|
397
|
-
let {
|
|
398
|
-
slots: n
|
|
399
|
-
} = t;
|
|
400
|
-
return () => {
|
|
401
|
-
const r = e.icon;
|
|
402
|
-
return P(e.tag, null, {
|
|
403
|
-
default: () => {
|
|
404
|
-
var i;
|
|
405
|
-
return [e.icon ? P(r, null, null) : (i = n.default) == null ? void 0 : i.call(n)];
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
}), Ar = Ve({
|
|
411
|
-
name: "VSvgIcon",
|
|
412
|
-
inheritAttrs: !1,
|
|
413
|
-
props: Ie(),
|
|
414
|
-
setup(e, t) {
|
|
415
|
-
let {
|
|
416
|
-
attrs: n
|
|
417
|
-
} = t;
|
|
418
|
-
return () => P(e.tag, Qe(n, {
|
|
419
|
-
style: null
|
|
420
|
-
}), {
|
|
421
|
-
default: () => [P("svg", {
|
|
422
|
-
class: "v-icon__svg",
|
|
423
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
424
|
-
viewBox: "0 0 24 24",
|
|
425
|
-
role: "img",
|
|
426
|
-
"aria-hidden": "true"
|
|
427
|
-
}, [Array.isArray(e.icon) ? e.icon.map((r) => Array.isArray(r) ? P("path", {
|
|
428
|
-
d: r[0],
|
|
429
|
-
"fill-opacity": r[1]
|
|
430
|
-
}, null) : P("path", {
|
|
431
|
-
d: r
|
|
432
|
-
}, null)) : P("path", {
|
|
433
|
-
d: e.icon
|
|
434
|
-
}, null)])]
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
Ve({
|
|
439
|
-
name: "VLigatureIcon",
|
|
440
|
-
props: Ie(),
|
|
441
|
-
setup(e) {
|
|
442
|
-
return () => P(e.tag, null, {
|
|
443
|
-
default: () => [e.icon]
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
Ve({
|
|
448
|
-
name: "VClassIcon",
|
|
449
|
-
props: Ie(),
|
|
450
|
-
setup(e) {
|
|
451
|
-
return () => P(e.tag, {
|
|
452
|
-
class: e.icon
|
|
453
|
-
}, null);
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
const Sr = (e) => {
|
|
457
|
-
const t = Ze(wr);
|
|
458
|
-
if (!t) throw new Error("Missing Vuetify Icons provide!");
|
|
459
|
-
return {
|
|
460
|
-
iconData: I(() => {
|
|
461
|
-
var l;
|
|
462
|
-
const r = z(e);
|
|
463
|
-
if (!r) return {
|
|
464
|
-
component: Ct
|
|
465
|
-
};
|
|
466
|
-
let i = r;
|
|
467
|
-
if (typeof i == "string" && (i = i.trim(), i.startsWith("$") && (i = (l = t.aliases) == null ? void 0 : l[i.slice(1)])), i || ue(`Could not find aliased icon "${r}"`), Array.isArray(i))
|
|
468
|
-
return {
|
|
469
|
-
component: Ar,
|
|
470
|
-
icon: i
|
|
471
|
-
};
|
|
472
|
-
if (typeof i != "string")
|
|
473
|
-
return {
|
|
474
|
-
component: Ct,
|
|
475
|
-
icon: i
|
|
476
|
-
};
|
|
477
|
-
const a = Object.keys(t.sets).find((c) => typeof i == "string" && i.startsWith(`${c}:`)), o = a ? i.slice(a.length + 1) : i;
|
|
478
|
-
return {
|
|
479
|
-
component: t.sets[a ?? t.defaultSet].component,
|
|
480
|
-
icon: o
|
|
481
|
-
};
|
|
482
|
-
})
|
|
483
|
-
};
|
|
484
|
-
}, xr = ["x-small", "small", "default", "large", "x-large"], Or = X({
|
|
485
|
-
size: {
|
|
486
|
-
type: [String, Number],
|
|
487
|
-
default: "default"
|
|
488
|
-
}
|
|
489
|
-
}, "size");
|
|
490
|
-
function Pr(e) {
|
|
491
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mr();
|
|
492
|
-
return un(() => {
|
|
493
|
-
let n, r;
|
|
494
|
-
return tr(xr, e.size) ? n = `${t}--size-${e.size}` : e.size && (r = {
|
|
495
|
-
width: le(e.size),
|
|
496
|
-
height: le(e.size)
|
|
497
|
-
}), {
|
|
498
|
-
sizeClasses: n,
|
|
499
|
-
sizeStyles: r
|
|
500
|
-
};
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
const Vr = X({
|
|
504
|
-
color: String,
|
|
505
|
-
disabled: Boolean,
|
|
506
|
-
start: Boolean,
|
|
507
|
-
end: Boolean,
|
|
508
|
-
icon: gn,
|
|
509
|
-
...Jn(),
|
|
510
|
-
...Or(),
|
|
511
|
-
...Tr({
|
|
512
|
-
tag: "i"
|
|
513
|
-
}),
|
|
514
|
-
..._r()
|
|
515
|
-
}, "VIcon"), Ir = dn()({
|
|
516
|
-
name: "VIcon",
|
|
517
|
-
props: Vr(),
|
|
518
|
-
setup(e, t) {
|
|
519
|
-
let {
|
|
520
|
-
attrs: n,
|
|
521
|
-
slots: r
|
|
522
|
-
} = t;
|
|
523
|
-
const i = M(), {
|
|
524
|
-
themeClasses: a
|
|
525
|
-
} = br(e), {
|
|
526
|
-
iconData: o
|
|
527
|
-
} = Sr(I(() => i.value || e.icon)), {
|
|
528
|
-
sizeClasses: f
|
|
529
|
-
} = Pr(e), {
|
|
530
|
-
textColorClasses: l,
|
|
531
|
-
textColorStyles: c
|
|
532
|
-
} = Cr(zn(e, "color"));
|
|
533
|
-
return hr(() => {
|
|
534
|
-
var v, T;
|
|
535
|
-
const y = (v = r.default) == null ? void 0 : v.call(r);
|
|
536
|
-
y && (i.value = (T = ln(y).filter((h) => h.type === Hn && h.children && typeof h.children == "string")[0]) == null ? void 0 : T.children);
|
|
537
|
-
const d = !!(n.onClick || n.onClickOnce);
|
|
538
|
-
return P(o.value.component, {
|
|
539
|
-
tag: e.tag,
|
|
540
|
-
icon: o.value.icon,
|
|
541
|
-
class: ["v-icon", "notranslate", a.value, f.value, l.value, {
|
|
542
|
-
"v-icon--clickable": d,
|
|
543
|
-
"v-icon--disabled": e.disabled,
|
|
544
|
-
"v-icon--start": e.start,
|
|
545
|
-
"v-icon--end": e.end
|
|
546
|
-
}, e.class],
|
|
547
|
-
style: [f.value ? void 0 : {
|
|
548
|
-
fontSize: le(e.size),
|
|
549
|
-
height: le(e.size),
|
|
550
|
-
width: le(e.size)
|
|
551
|
-
}, c.value, e.style],
|
|
552
|
-
role: d ? "button" : void 0,
|
|
553
|
-
"aria-hidden": !d,
|
|
554
|
-
tabindex: d ? e.disabled ? -1 : 0 : void 0
|
|
555
|
-
}, {
|
|
556
|
-
default: () => [y]
|
|
557
|
-
});
|
|
558
|
-
}), {};
|
|
559
|
-
}
|
|
560
|
-
}), Er = /* @__PURE__ */ L({
|
|
561
|
-
__name: "entry",
|
|
562
|
-
props: {
|
|
563
|
-
minHeight: {}
|
|
564
|
-
},
|
|
565
|
-
setup(e) {
|
|
566
|
-
const { backgroundColor2: t, highlightColor: n } = nt(), r = M(!1), i = I(() => ({
|
|
567
|
-
background: r.value ? n.value : t.value,
|
|
568
|
-
minHeight: e.minHeight,
|
|
569
|
-
paddingRight: "4px",
|
|
570
|
-
marginBottom: "1px",
|
|
571
|
-
userSelect: "none"
|
|
572
|
-
})), a = (o) => {
|
|
573
|
-
nn.emit("propTreeMenu", {
|
|
574
|
-
x: o.clientX,
|
|
575
|
-
y: o.clientY
|
|
576
|
-
});
|
|
577
|
-
};
|
|
578
|
-
return (o, f) => {
|
|
579
|
-
const l = ae("ripple");
|
|
580
|
-
return W((E(), ye("div", {
|
|
581
|
-
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
582
|
-
style: tn(i.value),
|
|
583
|
-
onContextmenu: we(a, ["prevent"]),
|
|
584
|
-
onMouseover: f[0] || (f[0] = (c) => r.value = !0),
|
|
585
|
-
onMouseout: f[1] || (f[1] = (c) => r.value = !1)
|
|
586
|
-
}, [
|
|
587
|
-
Gn(o.$slots, "default")
|
|
588
|
-
], 36)), [
|
|
589
|
-
[l]
|
|
590
|
-
]);
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
}), Mr = /* @__PURE__ */ L({
|
|
594
|
-
__name: "menu",
|
|
595
|
-
setup(e) {
|
|
596
|
-
const { t } = tt(), n = M(0), r = M(0), i = I(() => [n.value, r.value]), a = (c) => {
|
|
597
|
-
const y = () => {
|
|
598
|
-
console.log("reset");
|
|
599
|
-
};
|
|
600
|
-
c.push({
|
|
601
|
-
title: t("x-prop-tree.reset"),
|
|
602
|
-
func: y
|
|
603
|
-
});
|
|
604
|
-
}, o = I(() => {
|
|
605
|
-
const c = [];
|
|
606
|
-
return a(c), c;
|
|
607
|
-
}), f = (c) => {
|
|
608
|
-
n.value = c.x, r.value = c.y;
|
|
609
|
-
}, { open: l } = rn("propTreeMenu", f);
|
|
610
|
-
return (c, y) => {
|
|
611
|
-
const d = V("v-list-item-title"), v = V("v-list-item"), T = V("v-list"), h = V("v-menu");
|
|
612
|
-
return E(), D(h, {
|
|
613
|
-
modelValue: z(l),
|
|
614
|
-
"onUpdate:modelValue": y[0] || (y[0] = ($) => Je(l) ? l.value = $ : null),
|
|
615
|
-
"location-strategy": "connected",
|
|
616
|
-
target: i.value,
|
|
617
|
-
scrim: "transparent"
|
|
618
|
-
}, {
|
|
619
|
-
default: R(() => [
|
|
620
|
-
P(T, null, {
|
|
621
|
-
default: R(() => [
|
|
622
|
-
(E(!0), ye(Ye, null, Wn(o.value, ($, A) => (E(), D(v, {
|
|
623
|
-
key: A,
|
|
624
|
-
link: "",
|
|
625
|
-
onClick: $.func
|
|
626
|
-
}, {
|
|
627
|
-
default: R(() => [
|
|
628
|
-
P(d, null, {
|
|
629
|
-
default: R(() => [
|
|
630
|
-
et(Pe($.title), 1)
|
|
631
|
-
]),
|
|
632
|
-
_: 2
|
|
633
|
-
}, 1024)
|
|
634
|
-
]),
|
|
635
|
-
_: 2
|
|
636
|
-
}, 1032, ["onClick"]))), 128))
|
|
637
|
-
]),
|
|
638
|
-
_: 1
|
|
639
|
-
})
|
|
640
|
-
]),
|
|
641
|
-
_: 1
|
|
642
|
-
}, 8, ["modelValue", "target"]);
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
}), wt = /* @__PURE__ */ L({
|
|
646
|
-
__name: "title",
|
|
647
|
-
props: {
|
|
648
|
-
title: {},
|
|
649
|
-
collapse: { type: Boolean },
|
|
650
|
-
hasCreate: { type: Boolean, default: !1 },
|
|
651
|
-
hasDelete: { type: Boolean, default: !1 },
|
|
652
|
-
index: { default: 0 }
|
|
653
|
-
},
|
|
654
|
-
emits: ["collapse", "create", "delete"],
|
|
655
|
-
setup(e, { emit: t }) {
|
|
656
|
-
const { backgroundColor2: n, highlightColor: r } = nt(), i = t, a = M(!1), o = I(() => ({
|
|
657
|
-
background: a.value ? r.value : n.value,
|
|
658
|
-
height: "36px",
|
|
659
|
-
marginBottom: "1px",
|
|
660
|
-
userSelect: "none"
|
|
661
|
-
})), f = () => {
|
|
662
|
-
i("collapse", !e.collapse);
|
|
663
|
-
}, l = (c) => {
|
|
664
|
-
nn.emit("propTreeMenu", {
|
|
665
|
-
x: c.clientX,
|
|
666
|
-
y: c.clientY
|
|
667
|
-
});
|
|
668
|
-
};
|
|
669
|
-
return (c, y) => {
|
|
670
|
-
const d = V("v-icon"), v = V("v-spacer"), T = ae("ripple");
|
|
671
|
-
return W((E(), ye("div", {
|
|
672
|
-
class: "d-flex align-center cursor-pointer",
|
|
673
|
-
style: tn(o.value),
|
|
674
|
-
onClick: f,
|
|
675
|
-
onContextmenu: we(l, ["prevent"]),
|
|
676
|
-
onMouseover: y[2] || (y[2] = (h) => a.value = !0),
|
|
677
|
-
onMouseout: y[3] || (y[3] = (h) => a.value = !1)
|
|
678
|
-
}, [
|
|
679
|
-
P(d, {
|
|
680
|
-
class: "mr-1",
|
|
681
|
-
icon: c.collapse ? z(Zn) : z(Xn)
|
|
682
|
-
}, null, 8, ["icon"]),
|
|
683
|
-
Kn("span", null, Pe(c.title), 1),
|
|
684
|
-
P(v),
|
|
685
|
-
c.hasCreate ? (E(), D(d, {
|
|
686
|
-
key: 0,
|
|
687
|
-
class: "ml-3",
|
|
688
|
-
icon: z(sn),
|
|
689
|
-
onClick: y[0] || (y[0] = we((h) => i("create"), ["stop"]))
|
|
690
|
-
}, null, 8, ["icon"])) : Re("", !0),
|
|
691
|
-
c.hasDelete ? (E(), D(d, {
|
|
692
|
-
key: 1,
|
|
693
|
-
class: "ml-3",
|
|
694
|
-
icon: z(an),
|
|
695
|
-
onClick: y[1] || (y[1] = we((h) => i("delete", c.index), ["stop"]))
|
|
696
|
-
}, null, 8, ["icon"])) : Re("", !0)
|
|
697
|
-
], 36)), [
|
|
698
|
-
[T]
|
|
699
|
-
]);
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
}), Lr = /* @__PURE__ */ L({
|
|
703
|
-
__name: "colorPicker",
|
|
704
|
-
props: /* @__PURE__ */ K({
|
|
705
|
-
readonly: { type: Boolean, default: !1 }
|
|
706
|
-
}, {
|
|
707
|
-
modelValue: {},
|
|
708
|
-
modelModifiers: {}
|
|
709
|
-
}),
|
|
710
|
-
emits: ["update:modelValue"],
|
|
711
|
-
setup(e) {
|
|
712
|
-
const t = se(e, "modelValue"), n = I(() => e.readonly), r = M("hexa");
|
|
713
|
-
return (i, a) => {
|
|
714
|
-
const o = V("v-btn"), f = V("v-color-picker"), l = V("v-menu");
|
|
715
|
-
return E(), D(l, { "close-on-content-click": !1 }, {
|
|
716
|
-
activator: R(({ props: c }) => [
|
|
717
|
-
P(o, Qe(c, {
|
|
718
|
-
density: "comfortable",
|
|
719
|
-
color: t.value,
|
|
720
|
-
block: "",
|
|
721
|
-
disabled: n.value
|
|
722
|
-
}), {
|
|
723
|
-
default: R(() => [
|
|
724
|
-
et(Pe(t.value), 1)
|
|
725
|
-
]),
|
|
726
|
-
_: 2
|
|
727
|
-
}, 1040, ["color", "disabled"])
|
|
728
|
-
]),
|
|
729
|
-
default: R(() => [
|
|
730
|
-
P(f, {
|
|
731
|
-
modelValue: t.value,
|
|
732
|
-
"onUpdate:modelValue": a[0] || (a[0] = (c) => t.value = c),
|
|
733
|
-
mode: r.value,
|
|
734
|
-
"onUpdate:mode": a[1] || (a[1] = (c) => r.value = c),
|
|
735
|
-
"show-swatches": "",
|
|
736
|
-
"swatches-max-height": "150px"
|
|
737
|
-
}, null, 8, ["modelValue", "mode"])
|
|
738
|
-
]),
|
|
739
|
-
_: 1
|
|
740
|
-
});
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
}), Br = /* @__PURE__ */ L({
|
|
744
|
-
__name: "compSelect",
|
|
745
|
-
setup(e) {
|
|
746
|
-
const t = I(() => "<n/a>"), n = () => {
|
|
747
|
-
}, { open: r } = rn("compSelectDlg", n);
|
|
748
|
-
return (i, a) => {
|
|
749
|
-
const o = V("v-btn"), f = V("v-dialog");
|
|
750
|
-
return E(), D(f, {
|
|
751
|
-
modelValue: z(r),
|
|
752
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => Je(r) ? r.value = l : null)
|
|
753
|
-
}, {
|
|
754
|
-
activator: R(({ props: l }) => [
|
|
755
|
-
P(o, Qe(l, {
|
|
756
|
-
density: "comfortable",
|
|
757
|
-
block: ""
|
|
758
|
-
}), {
|
|
759
|
-
default: R(() => [
|
|
760
|
-
et(Pe(t.value), 1)
|
|
761
|
-
]),
|
|
762
|
-
_: 2
|
|
763
|
-
}, 1040)
|
|
764
|
-
]),
|
|
765
|
-
_: 1
|
|
766
|
-
}, 8, ["modelValue"]);
|
|
767
|
-
};
|
|
768
|
-
}
|
|
769
|
-
}), Fr = { class: "my-2" }, Dr = /* @__PURE__ */ L({
|
|
770
|
-
__name: "multiTypes",
|
|
771
|
-
props: /* @__PURE__ */ K({
|
|
772
|
-
types: {}
|
|
773
|
-
}, {
|
|
774
|
-
modelValue: { default: "" },
|
|
775
|
-
modelModifiers: {}
|
|
776
|
-
}),
|
|
777
|
-
emits: ["update:modelValue"],
|
|
778
|
-
setup(e) {
|
|
779
|
-
const { t } = tt(), n = se(e, "modelValue"), r = M(0), i = I(() => {
|
|
780
|
-
const f = [];
|
|
781
|
-
return e.types.forEach((l, c) => {
|
|
782
|
-
f.push({
|
|
783
|
-
title: t(l.name),
|
|
784
|
-
value: c
|
|
785
|
-
});
|
|
786
|
-
}), f;
|
|
787
|
-
});
|
|
788
|
-
e.types.some((f, l) => f.validator(n.value) ? (r.value = l, !0) : !1);
|
|
789
|
-
const a = I(() => e.types[r.value]);
|
|
790
|
-
Ne(a, (f) => {
|
|
791
|
-
n.value = f.default;
|
|
792
|
-
});
|
|
793
|
-
const o = M(0);
|
|
794
|
-
return Xe(() => {
|
|
795
|
-
a.value.ui === "pixelInput" ? o.value = qn(n.value) : a.value.ui === "percentInput" && (o.value = Yn(n.value));
|
|
796
|
-
}), Ne(o, (f) => {
|
|
797
|
-
a.value.ui === "pixelInput" ? n.value = f + "px" : a.value.ui === "percentInput" && (n.value = f + "%");
|
|
798
|
-
}), (f, l) => {
|
|
799
|
-
const c = V("v-select"), y = V("v-number-input"), d = ae("ripple");
|
|
800
|
-
return E(), ye("div", Fr, [
|
|
801
|
-
W(P(c, {
|
|
802
|
-
modelValue: r.value,
|
|
803
|
-
"onUpdate:modelValue": l[0] || (l[0] = (v) => r.value = v),
|
|
804
|
-
density: "compact",
|
|
805
|
-
items: i.value,
|
|
806
|
-
"hide-details": "",
|
|
807
|
-
"single-line": ""
|
|
808
|
-
}, null, 8, ["modelValue", "items"]), [
|
|
809
|
-
[
|
|
810
|
-
d,
|
|
811
|
-
void 0,
|
|
812
|
-
void 0,
|
|
813
|
-
{ stop: !0 }
|
|
814
|
-
]
|
|
815
|
-
]),
|
|
816
|
-
a.value.ui === "pixelInput" || a.value.ui === "percentInput" ? W((E(), D(y, {
|
|
817
|
-
key: 0,
|
|
818
|
-
modelValue: o.value,
|
|
819
|
-
"onUpdate:modelValue": l[1] || (l[1] = (v) => o.value = v),
|
|
820
|
-
density: "compact",
|
|
821
|
-
"control-variant": "stacked",
|
|
822
|
-
precision: a.value.precision,
|
|
823
|
-
min: a.value.min,
|
|
824
|
-
max: a.value.max,
|
|
825
|
-
step: a.value.step,
|
|
826
|
-
"hide-details": "",
|
|
827
|
-
"single-line": ""
|
|
828
|
-
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
829
|
-
[
|
|
830
|
-
d,
|
|
831
|
-
void 0,
|
|
832
|
-
void 0,
|
|
833
|
-
{ stop: !0 }
|
|
834
|
-
]
|
|
835
|
-
]) : Re("", !0)
|
|
836
|
-
]);
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
}), jr = /* @__PURE__ */ L({
|
|
840
|
-
__name: "numInput",
|
|
841
|
-
props: /* @__PURE__ */ K({
|
|
842
|
-
precision: { default: 4 },
|
|
843
|
-
min: { default: () => -1 / 0 },
|
|
844
|
-
max: { default: () => 1 / 0 },
|
|
845
|
-
step: { default: 1 },
|
|
846
|
-
readonly: { type: Boolean, default: !1 }
|
|
847
|
-
}, {
|
|
848
|
-
modelValue: {},
|
|
849
|
-
modelModifiers: {}
|
|
850
|
-
}),
|
|
851
|
-
emits: ["update:modelValue"],
|
|
852
|
-
setup(e) {
|
|
853
|
-
const t = se(e, "modelValue");
|
|
854
|
-
return (n, r) => {
|
|
855
|
-
const i = V("v-number-input"), a = ae("ripple");
|
|
856
|
-
return W((E(), D(i, {
|
|
857
|
-
modelValue: t.value,
|
|
858
|
-
"onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
|
|
859
|
-
density: "compact",
|
|
860
|
-
"control-variant": "stacked",
|
|
861
|
-
precision: n.precision,
|
|
862
|
-
min: n.min,
|
|
863
|
-
max: n.max,
|
|
864
|
-
step: n.step,
|
|
865
|
-
"hide-details": "",
|
|
866
|
-
"single-line": "",
|
|
867
|
-
readonly: n.readonly
|
|
868
|
-
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"])), [
|
|
869
|
-
[
|
|
870
|
-
a,
|
|
871
|
-
void 0,
|
|
872
|
-
void 0,
|
|
873
|
-
{ stop: !0 }
|
|
874
|
-
]
|
|
875
|
-
]);
|
|
876
|
-
};
|
|
877
|
-
}
|
|
878
|
-
}), kr = /* @__PURE__ */ L({
|
|
879
|
-
__name: "select",
|
|
880
|
-
props: /* @__PURE__ */ K({
|
|
881
|
-
readonly: { type: Boolean, default: !1 },
|
|
882
|
-
items: {}
|
|
883
|
-
}, {
|
|
884
|
-
modelValue: {},
|
|
885
|
-
modelModifiers: {}
|
|
886
|
-
}),
|
|
887
|
-
emits: ["update:modelValue"],
|
|
888
|
-
setup(e) {
|
|
889
|
-
const t = se(e, "modelValue");
|
|
890
|
-
return (n, r) => {
|
|
891
|
-
const i = V("v-select"), a = ae("ripple");
|
|
892
|
-
return W((E(), D(i, {
|
|
893
|
-
modelValue: t.value,
|
|
894
|
-
"onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
|
|
895
|
-
density: "compact",
|
|
896
|
-
items: n.items,
|
|
897
|
-
"hide-details": "",
|
|
898
|
-
"single-line": "",
|
|
899
|
-
readonly: n.readonly
|
|
900
|
-
}, null, 8, ["modelValue", "items", "readonly"])), [
|
|
901
|
-
[
|
|
902
|
-
a,
|
|
903
|
-
void 0,
|
|
904
|
-
void 0,
|
|
905
|
-
{ stop: !0 }
|
|
906
|
-
]
|
|
907
|
-
]);
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
}), At = /* @__PURE__ */ L({
|
|
911
|
-
__name: "strInput",
|
|
912
|
-
props: /* @__PURE__ */ K({
|
|
913
|
-
readonly: { type: Boolean, default: !1 },
|
|
914
|
-
hasDelete: { type: Boolean, default: !1 }
|
|
915
|
-
}, {
|
|
916
|
-
modelValue: {},
|
|
917
|
-
modelModifiers: {}
|
|
918
|
-
}),
|
|
919
|
-
emits: /* @__PURE__ */ K(["delete"], ["update:modelValue"]),
|
|
920
|
-
setup(e, { emit: t }) {
|
|
921
|
-
const n = se(e, "modelValue"), r = t;
|
|
922
|
-
return (i, a) => {
|
|
923
|
-
const o = V("v-text-field"), f = ae("ripple");
|
|
924
|
-
return W((E(), D(o, {
|
|
925
|
-
modelValue: n.value,
|
|
926
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
|
|
927
|
-
density: "compact",
|
|
928
|
-
"append-inner-icon": i.hasDelete ? z(an) : "",
|
|
929
|
-
"hide-details": "",
|
|
930
|
-
"single-line": "",
|
|
931
|
-
readonly: i.readonly,
|
|
932
|
-
"onClick:appendInner": a[1] || (a[1] = (l) => r("delete"))
|
|
933
|
-
}, null, 8, ["modelValue", "append-inner-icon", "readonly"])), [
|
|
934
|
-
[
|
|
935
|
-
f,
|
|
936
|
-
void 0,
|
|
937
|
-
void 0,
|
|
938
|
-
{ stop: !0 }
|
|
939
|
-
]
|
|
940
|
-
]);
|
|
941
|
-
};
|
|
942
|
-
}
|
|
943
|
-
}), Rr = /* @__PURE__ */ L({
|
|
944
|
-
__name: "switch",
|
|
945
|
-
props: /* @__PURE__ */ K({
|
|
946
|
-
readonly: { type: Boolean, default: !1 }
|
|
947
|
-
}, {
|
|
948
|
-
modelValue: { type: Boolean },
|
|
949
|
-
modelModifiers: {}
|
|
950
|
-
}),
|
|
951
|
-
emits: ["update:modelValue"],
|
|
952
|
-
setup(e) {
|
|
953
|
-
const t = se(e, "modelValue");
|
|
954
|
-
return (n, r) => {
|
|
955
|
-
const i = V("v-switch");
|
|
956
|
-
return E(), D(i, {
|
|
957
|
-
modelValue: t.value,
|
|
958
|
-
"onUpdate:modelValue": r[0] || (r[0] = (a) => t.value = a),
|
|
959
|
-
class: "ml-1",
|
|
960
|
-
density: "compact",
|
|
961
|
-
color: "primary",
|
|
962
|
-
"hide-details": "",
|
|
963
|
-
readonly: n.readonly
|
|
964
|
-
}, null, 8, ["modelValue", "readonly"]);
|
|
965
|
-
};
|
|
966
|
-
}
|
|
967
|
-
});
|
|
968
|
-
function St(e, t) {
|
|
969
|
-
let n = e;
|
|
970
|
-
return t.forEach((r) => {
|
|
971
|
-
n[r] || (n[r] = {}), n = n[r];
|
|
972
|
-
}), n.collapse === void 0 && (n.collapse = !0), n.collapse;
|
|
973
|
-
}
|
|
974
|
-
function Nr(e, t, n) {
|
|
975
|
-
let r = e;
|
|
976
|
-
t.forEach((i) => {
|
|
977
|
-
r[i] || (r[i] = {}), r = r[i];
|
|
978
|
-
}), r.collapse = n;
|
|
979
|
-
}
|
|
980
|
-
var mn = typeof global == "object" && global && global.Object === Object && global, Ur = typeof self == "object" && self && self.Object === Object && self, j = mn || Ur || Function("return this")(), H = j.Symbol, yn = Object.prototype, zr = yn.hasOwnProperty, Hr = yn.toString, ie = H ? H.toStringTag : void 0;
|
|
981
|
-
function Gr(e) {
|
|
982
|
-
var t = zr.call(e, ie), n = e[ie];
|
|
1
|
+
import { defineComponent as B, ref as N, computed as K, resolveDirective as ue, withDirectives as k, openBlock as P, createElementBlock as X, normalizeStyle as Ge, withModifiers as R, renderSlot as dn, resolveComponent as C, createBlock as L, unref as M, isRef as Pt, withCtx as G, createVNode as x, Fragment as Vt, renderList as pn, createTextVNode as ze, toDisplayString as Pe, createElementVNode as we, createCommentVNode as q, mergeModels as U, useModel as ce, mergeProps as Et, watch as Fe, watchEffect as mn, reactive as vn, h as y } from "vue";
|
|
2
|
+
import { useI18n as Ke } from "vue-i18n";
|
|
3
|
+
import { useColor as qe, eventBus as Dt, useViewStack as xt } from "x-essential-lib";
|
|
4
|
+
import { parsePixelStr as gn, parsePercentStr as yn, getPropDefault as j } from "x-runtime-lib";
|
|
5
|
+
var Lt = typeof global == "object" && global && global.Object === Object && global, _n = typeof self == "object" && self && self.Object === Object && self, I = Lt || _n || Function("return this")(), Z = I.Symbol, Mt = Object.prototype, hn = Mt.hasOwnProperty, bn = Mt.toString, de = Z ? Z.toStringTag : void 0;
|
|
6
|
+
function Tn(e) {
|
|
7
|
+
var t = hn.call(e, de), n = e[de];
|
|
983
8
|
try {
|
|
984
|
-
e[
|
|
985
|
-
var
|
|
9
|
+
e[de] = void 0;
|
|
10
|
+
var o = !0;
|
|
986
11
|
} catch {
|
|
987
12
|
}
|
|
988
|
-
var
|
|
989
|
-
return
|
|
13
|
+
var f = bn.call(e);
|
|
14
|
+
return o && (t ? e[de] = n : delete e[de]), f;
|
|
990
15
|
}
|
|
991
|
-
var
|
|
992
|
-
function
|
|
993
|
-
return
|
|
16
|
+
var $n = Object.prototype, An = $n.toString;
|
|
17
|
+
function wn(e) {
|
|
18
|
+
return An.call(e);
|
|
994
19
|
}
|
|
995
|
-
var
|
|
996
|
-
function
|
|
997
|
-
return e == null ? e === void 0 ?
|
|
20
|
+
var Sn = "[object Null]", On = "[object Undefined]", nt = Z ? Z.toStringTag : void 0;
|
|
21
|
+
function ye(e) {
|
|
22
|
+
return e == null ? e === void 0 ? On : Sn : nt && nt in Object(e) ? Tn(e) : wn(e);
|
|
998
23
|
}
|
|
999
|
-
function
|
|
24
|
+
function J(e) {
|
|
1000
25
|
return e != null && typeof e == "object";
|
|
1001
26
|
}
|
|
1002
|
-
var
|
|
1003
|
-
function
|
|
27
|
+
var me = Array.isArray;
|
|
28
|
+
function _e(e) {
|
|
1004
29
|
var t = typeof e;
|
|
1005
30
|
return e != null && (t == "object" || t == "function");
|
|
1006
31
|
}
|
|
1007
|
-
var
|
|
1008
|
-
function
|
|
1009
|
-
if (!
|
|
32
|
+
var Cn = "[object AsyncFunction]", Pn = "[object Function]", Vn = "[object GeneratorFunction]", En = "[object Proxy]";
|
|
33
|
+
function Ut(e) {
|
|
34
|
+
if (!_e(e))
|
|
1010
35
|
return !1;
|
|
1011
|
-
var t =
|
|
1012
|
-
return t ==
|
|
36
|
+
var t = ye(e);
|
|
37
|
+
return t == Pn || t == Vn || t == Cn || t == En;
|
|
1013
38
|
}
|
|
1014
|
-
var
|
|
1015
|
-
var e = /[^.]+$/.exec(
|
|
39
|
+
var Me = I["__core-js_shared__"], rt = function() {
|
|
40
|
+
var e = /[^.]+$/.exec(Me && Me.keys && Me.keys.IE_PROTO || "");
|
|
1016
41
|
return e ? "Symbol(src)_1." + e : "";
|
|
1017
42
|
}();
|
|
1018
|
-
function
|
|
1019
|
-
return !!
|
|
43
|
+
function Dn(e) {
|
|
44
|
+
return !!rt && rt in e;
|
|
1020
45
|
}
|
|
1021
|
-
var
|
|
1022
|
-
function
|
|
46
|
+
var xn = Function.prototype, Ln = xn.toString;
|
|
47
|
+
function ee(e) {
|
|
1023
48
|
if (e != null) {
|
|
1024
49
|
try {
|
|
1025
|
-
return
|
|
50
|
+
return Ln.call(e);
|
|
1026
51
|
} catch {
|
|
1027
52
|
}
|
|
1028
53
|
try {
|
|
@@ -1032,684 +57,1153 @@ function Z(e) {
|
|
|
1032
57
|
}
|
|
1033
58
|
return "";
|
|
1034
59
|
}
|
|
1035
|
-
var
|
|
1036
|
-
"^" +
|
|
60
|
+
var Mn = /[\\^$.*+?()[\]{}|]/g, Un = /^\[object .+?Constructor\]$/, jn = Function.prototype, Fn = Object.prototype, Nn = jn.toString, Bn = Fn.hasOwnProperty, Rn = RegExp(
|
|
61
|
+
"^" + Nn.call(Bn).replace(Mn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1037
62
|
);
|
|
1038
|
-
function
|
|
1039
|
-
if (!
|
|
63
|
+
function In(e) {
|
|
64
|
+
if (!_e(e) || Dn(e))
|
|
1040
65
|
return !1;
|
|
1041
|
-
var t =
|
|
1042
|
-
return t.test(
|
|
66
|
+
var t = Ut(e) ? Rn : Un;
|
|
67
|
+
return t.test(ee(e));
|
|
1043
68
|
}
|
|
1044
|
-
function
|
|
69
|
+
function Hn(e, t) {
|
|
1045
70
|
return e == null ? void 0 : e[t];
|
|
1046
71
|
}
|
|
1047
|
-
function
|
|
1048
|
-
var n =
|
|
1049
|
-
return
|
|
72
|
+
function te(e, t) {
|
|
73
|
+
var n = Hn(e, t);
|
|
74
|
+
return In(n) ? n : void 0;
|
|
1050
75
|
}
|
|
1051
|
-
var
|
|
76
|
+
var Ne = te(I, "WeakMap"), at = Object.create, Gn = /* @__PURE__ */ function() {
|
|
1052
77
|
function e() {
|
|
1053
78
|
}
|
|
1054
79
|
return function(t) {
|
|
1055
|
-
if (!
|
|
80
|
+
if (!_e(t))
|
|
1056
81
|
return {};
|
|
1057
|
-
if (
|
|
1058
|
-
return
|
|
82
|
+
if (at)
|
|
83
|
+
return at(t);
|
|
1059
84
|
e.prototype = t;
|
|
1060
85
|
var n = new e();
|
|
1061
86
|
return e.prototype = void 0, n;
|
|
1062
87
|
};
|
|
1063
88
|
}();
|
|
1064
|
-
function
|
|
1065
|
-
var n = -1,
|
|
1066
|
-
for (t || (t = Array(
|
|
89
|
+
function zn(e, t) {
|
|
90
|
+
var n = -1, o = e.length;
|
|
91
|
+
for (t || (t = Array(o)); ++n < o; )
|
|
1067
92
|
t[n] = e[n];
|
|
1068
93
|
return t;
|
|
1069
94
|
}
|
|
1070
|
-
var
|
|
95
|
+
var ot = function() {
|
|
1071
96
|
try {
|
|
1072
|
-
var e =
|
|
97
|
+
var e = te(Object, "defineProperty");
|
|
1073
98
|
return e({}, "", {}), e;
|
|
1074
99
|
} catch {
|
|
1075
100
|
}
|
|
1076
101
|
}();
|
|
1077
|
-
function
|
|
1078
|
-
for (var n = -1,
|
|
102
|
+
function Kn(e, t) {
|
|
103
|
+
for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
|
|
1079
104
|
;
|
|
1080
105
|
return e;
|
|
1081
106
|
}
|
|
1082
|
-
var
|
|
1083
|
-
function
|
|
107
|
+
var qn = 9007199254740991, Xn = /^(?:0|[1-9]\d*)$/;
|
|
108
|
+
function Yn(e, t) {
|
|
1084
109
|
var n = typeof e;
|
|
1085
|
-
return t = t ??
|
|
110
|
+
return t = t ?? qn, !!t && (n == "number" || n != "symbol" && Xn.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1086
111
|
}
|
|
1087
|
-
function
|
|
1088
|
-
t == "__proto__" &&
|
|
112
|
+
function jt(e, t, n) {
|
|
113
|
+
t == "__proto__" && ot ? ot(e, t, {
|
|
1089
114
|
configurable: !0,
|
|
1090
115
|
enumerable: !0,
|
|
1091
116
|
value: n,
|
|
1092
117
|
writable: !0
|
|
1093
118
|
}) : e[t] = n;
|
|
1094
119
|
}
|
|
1095
|
-
function
|
|
120
|
+
function Xe(e, t) {
|
|
1096
121
|
return e === t || e !== e && t !== t;
|
|
1097
122
|
}
|
|
1098
|
-
var
|
|
1099
|
-
function
|
|
1100
|
-
var
|
|
1101
|
-
(!(
|
|
123
|
+
var Zn = Object.prototype, Wn = Zn.hasOwnProperty;
|
|
124
|
+
function Ft(e, t, n) {
|
|
125
|
+
var o = e[t];
|
|
126
|
+
(!(Wn.call(e, t) && Xe(o, n)) || n === void 0 && !(t in e)) && jt(e, t, n);
|
|
1102
127
|
}
|
|
1103
|
-
function
|
|
1104
|
-
var
|
|
128
|
+
function Ve(e, t, n, o) {
|
|
129
|
+
var f = !n;
|
|
1105
130
|
n || (n = {});
|
|
1106
|
-
for (var
|
|
1107
|
-
var
|
|
1108
|
-
|
|
131
|
+
for (var s = -1, d = t.length; ++s < d; ) {
|
|
132
|
+
var p = t[s], m = void 0;
|
|
133
|
+
m === void 0 && (m = e[p]), f ? jt(n, p, m) : Ft(n, p, m);
|
|
1109
134
|
}
|
|
1110
135
|
return n;
|
|
1111
136
|
}
|
|
1112
|
-
var
|
|
1113
|
-
function
|
|
1114
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
137
|
+
var kn = 9007199254740991;
|
|
138
|
+
function Nt(e) {
|
|
139
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= kn;
|
|
1115
140
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return e != null &&
|
|
141
|
+
function Bt(e) {
|
|
142
|
+
return e != null && Nt(e.length) && !Ut(e);
|
|
1118
143
|
}
|
|
1119
|
-
var
|
|
1120
|
-
function
|
|
1121
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
144
|
+
var Jn = Object.prototype;
|
|
145
|
+
function Ye(e) {
|
|
146
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Jn;
|
|
1122
147
|
return e === n;
|
|
1123
148
|
}
|
|
1124
|
-
function
|
|
1125
|
-
for (var n = -1,
|
|
1126
|
-
|
|
1127
|
-
return
|
|
149
|
+
function Qn(e, t) {
|
|
150
|
+
for (var n = -1, o = Array(e); ++n < e; )
|
|
151
|
+
o[n] = t(n);
|
|
152
|
+
return o;
|
|
1128
153
|
}
|
|
1129
|
-
var
|
|
1130
|
-
function
|
|
1131
|
-
return
|
|
154
|
+
var er = "[object Arguments]";
|
|
155
|
+
function it(e) {
|
|
156
|
+
return J(e) && ye(e) == er;
|
|
1132
157
|
}
|
|
1133
|
-
var
|
|
158
|
+
var Rt = Object.prototype, tr = Rt.hasOwnProperty, nr = Rt.propertyIsEnumerable, rr = it(/* @__PURE__ */ function() {
|
|
1134
159
|
return arguments;
|
|
1135
|
-
}()) ?
|
|
1136
|
-
return
|
|
160
|
+
}()) ? it : function(e) {
|
|
161
|
+
return J(e) && tr.call(e, "callee") && !nr.call(e, "callee");
|
|
1137
162
|
};
|
|
1138
|
-
function
|
|
163
|
+
function ar() {
|
|
1139
164
|
return !1;
|
|
1140
165
|
}
|
|
1141
|
-
var
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
166
|
+
var It = typeof exports == "object" && exports && !exports.nodeType && exports, lt = It && typeof module == "object" && module && !module.nodeType && module, or = lt && lt.exports === It, st = or ? I.Buffer : void 0, ir = st ? st.isBuffer : void 0, Se = ir || ar, lr = "[object Arguments]", sr = "[object Array]", ur = "[object Boolean]", cr = "[object Date]", fr = "[object Error]", dr = "[object Function]", pr = "[object Map]", mr = "[object Number]", vr = "[object Object]", gr = "[object RegExp]", yr = "[object Set]", _r = "[object String]", hr = "[object WeakMap]", br = "[object ArrayBuffer]", Tr = "[object DataView]", $r = "[object Float32Array]", Ar = "[object Float64Array]", wr = "[object Int8Array]", Sr = "[object Int16Array]", Or = "[object Int32Array]", Cr = "[object Uint8Array]", Pr = "[object Uint8ClampedArray]", Vr = "[object Uint16Array]", Er = "[object Uint32Array]", S = {};
|
|
167
|
+
S[$r] = S[Ar] = S[wr] = S[Sr] = S[Or] = S[Cr] = S[Pr] = S[Vr] = S[Er] = !0;
|
|
168
|
+
S[lr] = S[sr] = S[br] = S[ur] = S[Tr] = S[cr] = S[fr] = S[dr] = S[pr] = S[mr] = S[vr] = S[gr] = S[yr] = S[_r] = S[hr] = !1;
|
|
169
|
+
function Dr(e) {
|
|
170
|
+
return J(e) && Nt(e.length) && !!S[ye(e)];
|
|
1146
171
|
}
|
|
1147
|
-
function
|
|
172
|
+
function Ze(e) {
|
|
1148
173
|
return function(t) {
|
|
1149
174
|
return e(t);
|
|
1150
175
|
};
|
|
1151
176
|
}
|
|
1152
|
-
var
|
|
177
|
+
var Ht = typeof exports == "object" && exports && !exports.nodeType && exports, pe = Ht && typeof module == "object" && module && !module.nodeType && module, xr = pe && pe.exports === Ht, Ue = xr && Lt.process, se = function() {
|
|
1153
178
|
try {
|
|
1154
|
-
var e =
|
|
1155
|
-
return e ||
|
|
179
|
+
var e = pe && pe.require && pe.require("util").types;
|
|
180
|
+
return e || Ue && Ue.binding && Ue.binding("util");
|
|
1156
181
|
} catch {
|
|
1157
182
|
}
|
|
1158
|
-
}(),
|
|
1159
|
-
function
|
|
1160
|
-
var n =
|
|
1161
|
-
for (var
|
|
1162
|
-
(t ||
|
|
1163
|
-
(
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
return
|
|
1168
|
-
}
|
|
1169
|
-
function
|
|
183
|
+
}(), ut = se && se.isTypedArray, Gt = ut ? Ze(ut) : Dr, Lr = Object.prototype, Mr = Lr.hasOwnProperty;
|
|
184
|
+
function zt(e, t) {
|
|
185
|
+
var n = me(e), o = !n && rr(e), f = !n && !o && Se(e), s = !n && !o && !f && Gt(e), d = n || o || f || s, p = d ? Qn(e.length, String) : [], m = p.length;
|
|
186
|
+
for (var l in e)
|
|
187
|
+
(t || Mr.call(e, l)) && !(d && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
188
|
+
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
189
|
+
f && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
190
|
+
s && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
|
|
191
|
+
Yn(l, m))) && p.push(l);
|
|
192
|
+
return p;
|
|
193
|
+
}
|
|
194
|
+
function Kt(e, t) {
|
|
1170
195
|
return function(n) {
|
|
1171
196
|
return e(t(n));
|
|
1172
197
|
};
|
|
1173
198
|
}
|
|
1174
|
-
var
|
|
1175
|
-
function
|
|
1176
|
-
if (!
|
|
1177
|
-
return
|
|
199
|
+
var Ur = Kt(Object.keys, Object), jr = Object.prototype, Fr = jr.hasOwnProperty;
|
|
200
|
+
function Nr(e) {
|
|
201
|
+
if (!Ye(e))
|
|
202
|
+
return Ur(e);
|
|
1178
203
|
var t = [];
|
|
1179
204
|
for (var n in Object(e))
|
|
1180
|
-
|
|
205
|
+
Fr.call(e, n) && n != "constructor" && t.push(n);
|
|
1181
206
|
return t;
|
|
1182
207
|
}
|
|
1183
|
-
function
|
|
1184
|
-
return
|
|
208
|
+
function We(e) {
|
|
209
|
+
return Bt(e) ? zt(e) : Nr(e);
|
|
1185
210
|
}
|
|
1186
|
-
function
|
|
211
|
+
function Br(e) {
|
|
1187
212
|
var t = [];
|
|
1188
213
|
if (e != null)
|
|
1189
214
|
for (var n in Object(e))
|
|
1190
215
|
t.push(n);
|
|
1191
216
|
return t;
|
|
1192
217
|
}
|
|
1193
|
-
var
|
|
1194
|
-
function
|
|
1195
|
-
if (!
|
|
1196
|
-
return
|
|
1197
|
-
var t =
|
|
1198
|
-
for (var
|
|
1199
|
-
|
|
218
|
+
var Rr = Object.prototype, Ir = Rr.hasOwnProperty;
|
|
219
|
+
function Hr(e) {
|
|
220
|
+
if (!_e(e))
|
|
221
|
+
return Br(e);
|
|
222
|
+
var t = Ye(e), n = [];
|
|
223
|
+
for (var o in e)
|
|
224
|
+
o == "constructor" && (t || !Ir.call(e, o)) || n.push(o);
|
|
1200
225
|
return n;
|
|
1201
226
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
227
|
+
function ke(e) {
|
|
228
|
+
return Bt(e) ? zt(e, !0) : Hr(e);
|
|
1204
229
|
}
|
|
1205
|
-
var
|
|
1206
|
-
function
|
|
1207
|
-
this.__data__ =
|
|
230
|
+
var ve = te(Object, "create");
|
|
231
|
+
function Gr() {
|
|
232
|
+
this.__data__ = ve ? ve(null) : {}, this.size = 0;
|
|
1208
233
|
}
|
|
1209
|
-
function
|
|
234
|
+
function zr(e) {
|
|
1210
235
|
var t = this.has(e) && delete this.__data__[e];
|
|
1211
236
|
return this.size -= t ? 1 : 0, t;
|
|
1212
237
|
}
|
|
1213
|
-
var
|
|
1214
|
-
function
|
|
238
|
+
var Kr = "__lodash_hash_undefined__", qr = Object.prototype, Xr = qr.hasOwnProperty;
|
|
239
|
+
function Yr(e) {
|
|
1215
240
|
var t = this.__data__;
|
|
1216
|
-
if (
|
|
241
|
+
if (ve) {
|
|
1217
242
|
var n = t[e];
|
|
1218
|
-
return n ===
|
|
243
|
+
return n === Kr ? void 0 : n;
|
|
1219
244
|
}
|
|
1220
|
-
return
|
|
245
|
+
return Xr.call(t, e) ? t[e] : void 0;
|
|
1221
246
|
}
|
|
1222
|
-
var
|
|
1223
|
-
function
|
|
247
|
+
var Zr = Object.prototype, Wr = Zr.hasOwnProperty;
|
|
248
|
+
function kr(e) {
|
|
1224
249
|
var t = this.__data__;
|
|
1225
|
-
return
|
|
250
|
+
return ve ? t[e] !== void 0 : Wr.call(t, e);
|
|
1226
251
|
}
|
|
1227
|
-
var
|
|
1228
|
-
function
|
|
252
|
+
var Jr = "__lodash_hash_undefined__";
|
|
253
|
+
function Qr(e, t) {
|
|
1229
254
|
var n = this.__data__;
|
|
1230
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
255
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = ve && t === void 0 ? Jr : t, this;
|
|
1231
256
|
}
|
|
1232
|
-
function
|
|
257
|
+
function Q(e) {
|
|
1233
258
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1234
259
|
for (this.clear(); ++t < n; ) {
|
|
1235
|
-
var
|
|
1236
|
-
this.set(
|
|
260
|
+
var o = e[t];
|
|
261
|
+
this.set(o[0], o[1]);
|
|
1237
262
|
}
|
|
1238
263
|
}
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
function
|
|
264
|
+
Q.prototype.clear = Gr;
|
|
265
|
+
Q.prototype.delete = zr;
|
|
266
|
+
Q.prototype.get = Yr;
|
|
267
|
+
Q.prototype.has = kr;
|
|
268
|
+
Q.prototype.set = Qr;
|
|
269
|
+
function ea() {
|
|
1245
270
|
this.__data__ = [], this.size = 0;
|
|
1246
271
|
}
|
|
1247
|
-
function
|
|
272
|
+
function Ee(e, t) {
|
|
1248
273
|
for (var n = e.length; n--; )
|
|
1249
|
-
if (
|
|
274
|
+
if (Xe(e[n][0], t))
|
|
1250
275
|
return n;
|
|
1251
276
|
return -1;
|
|
1252
277
|
}
|
|
1253
|
-
var
|
|
1254
|
-
function
|
|
1255
|
-
var t = this.__data__, n =
|
|
278
|
+
var ta = Array.prototype, na = ta.splice;
|
|
279
|
+
function ra(e) {
|
|
280
|
+
var t = this.__data__, n = Ee(t, e);
|
|
1256
281
|
if (n < 0)
|
|
1257
282
|
return !1;
|
|
1258
|
-
var
|
|
1259
|
-
return n ==
|
|
283
|
+
var o = t.length - 1;
|
|
284
|
+
return n == o ? t.pop() : na.call(t, n, 1), --this.size, !0;
|
|
1260
285
|
}
|
|
1261
|
-
function
|
|
1262
|
-
var t = this.__data__, n =
|
|
286
|
+
function aa(e) {
|
|
287
|
+
var t = this.__data__, n = Ee(t, e);
|
|
1263
288
|
return n < 0 ? void 0 : t[n][1];
|
|
1264
289
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return
|
|
290
|
+
function oa(e) {
|
|
291
|
+
return Ee(this.__data__, e) > -1;
|
|
1267
292
|
}
|
|
1268
|
-
function
|
|
1269
|
-
var n = this.__data__,
|
|
1270
|
-
return
|
|
293
|
+
function ia(e, t) {
|
|
294
|
+
var n = this.__data__, o = Ee(n, e);
|
|
295
|
+
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
1271
296
|
}
|
|
1272
|
-
function
|
|
297
|
+
function Y(e) {
|
|
1273
298
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1274
299
|
for (this.clear(); ++t < n; ) {
|
|
1275
|
-
var
|
|
1276
|
-
this.set(
|
|
300
|
+
var o = e[t];
|
|
301
|
+
this.set(o[0], o[1]);
|
|
1277
302
|
}
|
|
1278
303
|
}
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
var
|
|
1285
|
-
function
|
|
304
|
+
Y.prototype.clear = ea;
|
|
305
|
+
Y.prototype.delete = ra;
|
|
306
|
+
Y.prototype.get = aa;
|
|
307
|
+
Y.prototype.has = oa;
|
|
308
|
+
Y.prototype.set = ia;
|
|
309
|
+
var ge = te(I, "Map");
|
|
310
|
+
function la() {
|
|
1286
311
|
this.size = 0, this.__data__ = {
|
|
1287
|
-
hash: new
|
|
1288
|
-
map: new (
|
|
1289
|
-
string: new
|
|
312
|
+
hash: new Q(),
|
|
313
|
+
map: new (ge || Y)(),
|
|
314
|
+
string: new Q()
|
|
1290
315
|
};
|
|
1291
316
|
}
|
|
1292
|
-
function
|
|
317
|
+
function sa(e) {
|
|
1293
318
|
var t = typeof e;
|
|
1294
319
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1295
320
|
}
|
|
1296
|
-
function
|
|
321
|
+
function De(e, t) {
|
|
1297
322
|
var n = e.__data__;
|
|
1298
|
-
return
|
|
323
|
+
return sa(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1299
324
|
}
|
|
1300
|
-
function
|
|
1301
|
-
var t =
|
|
325
|
+
function ua(e) {
|
|
326
|
+
var t = De(this, e).delete(e);
|
|
1302
327
|
return this.size -= t ? 1 : 0, t;
|
|
1303
328
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return
|
|
329
|
+
function ca(e) {
|
|
330
|
+
return De(this, e).get(e);
|
|
1306
331
|
}
|
|
1307
|
-
function
|
|
1308
|
-
return
|
|
332
|
+
function fa(e) {
|
|
333
|
+
return De(this, e).has(e);
|
|
1309
334
|
}
|
|
1310
|
-
function
|
|
1311
|
-
var n =
|
|
1312
|
-
return n.set(e, t), this.size += n.size ==
|
|
335
|
+
function da(e, t) {
|
|
336
|
+
var n = De(this, e), o = n.size;
|
|
337
|
+
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
1313
338
|
}
|
|
1314
|
-
function
|
|
339
|
+
function ne(e) {
|
|
1315
340
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1316
341
|
for (this.clear(); ++t < n; ) {
|
|
1317
|
-
var
|
|
1318
|
-
this.set(
|
|
342
|
+
var o = e[t];
|
|
343
|
+
this.set(o[0], o[1]);
|
|
1319
344
|
}
|
|
1320
345
|
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
function
|
|
1327
|
-
for (var n = -1,
|
|
1328
|
-
e[
|
|
346
|
+
ne.prototype.clear = la;
|
|
347
|
+
ne.prototype.delete = ua;
|
|
348
|
+
ne.prototype.get = ca;
|
|
349
|
+
ne.prototype.has = fa;
|
|
350
|
+
ne.prototype.set = da;
|
|
351
|
+
function qt(e, t) {
|
|
352
|
+
for (var n = -1, o = t.length, f = e.length; ++n < o; )
|
|
353
|
+
e[f + n] = t[n];
|
|
1329
354
|
return e;
|
|
1330
355
|
}
|
|
1331
|
-
var
|
|
1332
|
-
function
|
|
1333
|
-
this.__data__ = new
|
|
356
|
+
var Xt = Kt(Object.getPrototypeOf, Object);
|
|
357
|
+
function pa() {
|
|
358
|
+
this.__data__ = new Y(), this.size = 0;
|
|
1334
359
|
}
|
|
1335
|
-
function
|
|
360
|
+
function ma(e) {
|
|
1336
361
|
var t = this.__data__, n = t.delete(e);
|
|
1337
362
|
return this.size = t.size, n;
|
|
1338
363
|
}
|
|
1339
|
-
function
|
|
364
|
+
function va(e) {
|
|
1340
365
|
return this.__data__.get(e);
|
|
1341
366
|
}
|
|
1342
|
-
function
|
|
367
|
+
function ga(e) {
|
|
1343
368
|
return this.__data__.has(e);
|
|
1344
369
|
}
|
|
1345
|
-
var
|
|
1346
|
-
function
|
|
370
|
+
var ya = 200;
|
|
371
|
+
function _a(e, t) {
|
|
1347
372
|
var n = this.__data__;
|
|
1348
|
-
if (n instanceof
|
|
1349
|
-
var
|
|
1350
|
-
if (!
|
|
1351
|
-
return
|
|
1352
|
-
n = this.__data__ = new
|
|
373
|
+
if (n instanceof Y) {
|
|
374
|
+
var o = n.__data__;
|
|
375
|
+
if (!ge || o.length < ya - 1)
|
|
376
|
+
return o.push([e, t]), this.size = ++n.size, this;
|
|
377
|
+
n = this.__data__ = new ne(o);
|
|
1353
378
|
}
|
|
1354
379
|
return n.set(e, t), this.size = n.size, this;
|
|
1355
380
|
}
|
|
1356
|
-
function
|
|
1357
|
-
var t = this.__data__ = new
|
|
381
|
+
function z(e) {
|
|
382
|
+
var t = this.__data__ = new Y(e);
|
|
1358
383
|
this.size = t.size;
|
|
1359
384
|
}
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
function
|
|
1366
|
-
return e &&
|
|
385
|
+
z.prototype.clear = pa;
|
|
386
|
+
z.prototype.delete = ma;
|
|
387
|
+
z.prototype.get = va;
|
|
388
|
+
z.prototype.has = ga;
|
|
389
|
+
z.prototype.set = _a;
|
|
390
|
+
function ha(e, t) {
|
|
391
|
+
return e && Ve(t, We(t), e);
|
|
1367
392
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return e &&
|
|
393
|
+
function ba(e, t) {
|
|
394
|
+
return e && Ve(t, ke(t), e);
|
|
1370
395
|
}
|
|
1371
|
-
var
|
|
1372
|
-
function
|
|
396
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, ct = Yt && typeof module == "object" && module && !module.nodeType && module, Ta = ct && ct.exports === Yt, ft = Ta ? I.Buffer : void 0, dt = ft ? ft.allocUnsafe : void 0;
|
|
397
|
+
function $a(e, t) {
|
|
1373
398
|
if (t)
|
|
1374
399
|
return e.slice();
|
|
1375
|
-
var n = e.length,
|
|
1376
|
-
return e.copy(
|
|
400
|
+
var n = e.length, o = dt ? dt(n) : new e.constructor(n);
|
|
401
|
+
return e.copy(o), o;
|
|
1377
402
|
}
|
|
1378
|
-
function
|
|
1379
|
-
for (var n = -1,
|
|
1380
|
-
var
|
|
1381
|
-
t(
|
|
403
|
+
function Aa(e, t) {
|
|
404
|
+
for (var n = -1, o = e == null ? 0 : e.length, f = 0, s = []; ++n < o; ) {
|
|
405
|
+
var d = e[n];
|
|
406
|
+
t(d, n, e) && (s[f++] = d);
|
|
1382
407
|
}
|
|
1383
|
-
return
|
|
408
|
+
return s;
|
|
1384
409
|
}
|
|
1385
|
-
function
|
|
410
|
+
function Zt() {
|
|
1386
411
|
return [];
|
|
1387
412
|
}
|
|
1388
|
-
var
|
|
1389
|
-
return e == null ? [] : (e = Object(e),
|
|
1390
|
-
return
|
|
413
|
+
var wa = Object.prototype, Sa = wa.propertyIsEnumerable, pt = Object.getOwnPropertySymbols, Je = pt ? function(e) {
|
|
414
|
+
return e == null ? [] : (e = Object(e), Aa(pt(e), function(t) {
|
|
415
|
+
return Sa.call(e, t);
|
|
1391
416
|
}));
|
|
1392
|
-
} :
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
417
|
+
} : Zt;
|
|
418
|
+
function Oa(e, t) {
|
|
419
|
+
return Ve(e, Je(e), t);
|
|
1395
420
|
}
|
|
1396
|
-
var
|
|
421
|
+
var Ca = Object.getOwnPropertySymbols, Wt = Ca ? function(e) {
|
|
1397
422
|
for (var t = []; e; )
|
|
1398
|
-
|
|
423
|
+
qt(t, Je(e)), e = Xt(e);
|
|
1399
424
|
return t;
|
|
1400
|
-
} :
|
|
1401
|
-
function
|
|
1402
|
-
return
|
|
1403
|
-
}
|
|
1404
|
-
function
|
|
1405
|
-
var
|
|
1406
|
-
return
|
|
1407
|
-
}
|
|
1408
|
-
function
|
|
1409
|
-
return
|
|
1410
|
-
}
|
|
1411
|
-
function
|
|
1412
|
-
return
|
|
1413
|
-
}
|
|
1414
|
-
var
|
|
1415
|
-
(
|
|
1416
|
-
var t =
|
|
1417
|
-
if (
|
|
1418
|
-
switch (
|
|
1419
|
-
case
|
|
1420
|
-
return
|
|
1421
|
-
case
|
|
1422
|
-
return
|
|
1423
|
-
case
|
|
1424
|
-
return
|
|
1425
|
-
case
|
|
1426
|
-
return
|
|
1427
|
-
case
|
|
1428
|
-
return
|
|
425
|
+
} : Zt;
|
|
426
|
+
function Pa(e, t) {
|
|
427
|
+
return Ve(e, Wt(e), t);
|
|
428
|
+
}
|
|
429
|
+
function kt(e, t, n) {
|
|
430
|
+
var o = t(e);
|
|
431
|
+
return me(e) ? o : qt(o, n(e));
|
|
432
|
+
}
|
|
433
|
+
function Be(e) {
|
|
434
|
+
return kt(e, We, Je);
|
|
435
|
+
}
|
|
436
|
+
function Va(e) {
|
|
437
|
+
return kt(e, ke, Wt);
|
|
438
|
+
}
|
|
439
|
+
var Re = te(I, "DataView"), Ie = te(I, "Promise"), He = te(I, "Set"), mt = "[object Map]", Ea = "[object Object]", vt = "[object Promise]", gt = "[object Set]", yt = "[object WeakMap]", _t = "[object DataView]", Da = ee(Re), xa = ee(ge), La = ee(Ie), Ma = ee(He), Ua = ee(Ne), F = ye;
|
|
440
|
+
(Re && F(new Re(new ArrayBuffer(1))) != _t || ge && F(new ge()) != mt || Ie && F(Ie.resolve()) != vt || He && F(new He()) != gt || Ne && F(new Ne()) != yt) && (F = function(e) {
|
|
441
|
+
var t = ye(e), n = t == Ea ? e.constructor : void 0, o = n ? ee(n) : "";
|
|
442
|
+
if (o)
|
|
443
|
+
switch (o) {
|
|
444
|
+
case Da:
|
|
445
|
+
return _t;
|
|
446
|
+
case xa:
|
|
447
|
+
return mt;
|
|
448
|
+
case La:
|
|
449
|
+
return vt;
|
|
450
|
+
case Ma:
|
|
451
|
+
return gt;
|
|
452
|
+
case Ua:
|
|
453
|
+
return yt;
|
|
1429
454
|
}
|
|
1430
455
|
return t;
|
|
1431
456
|
});
|
|
1432
|
-
var
|
|
1433
|
-
function
|
|
457
|
+
var ja = Object.prototype, Fa = ja.hasOwnProperty;
|
|
458
|
+
function Na(e) {
|
|
1434
459
|
var t = e.length, n = new e.constructor(t);
|
|
1435
|
-
return t && typeof e[0] == "string" &&
|
|
460
|
+
return t && typeof e[0] == "string" && Fa.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1436
461
|
}
|
|
1437
|
-
var
|
|
1438
|
-
function
|
|
462
|
+
var Oe = I.Uint8Array;
|
|
463
|
+
function Qe(e) {
|
|
1439
464
|
var t = new e.constructor(e.byteLength);
|
|
1440
|
-
return new
|
|
465
|
+
return new Oe(t).set(new Oe(e)), t;
|
|
1441
466
|
}
|
|
1442
|
-
function
|
|
1443
|
-
var n = t ?
|
|
467
|
+
function Ba(e, t) {
|
|
468
|
+
var n = t ? Qe(e.buffer) : e.buffer;
|
|
1444
469
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1445
470
|
}
|
|
1446
|
-
var
|
|
1447
|
-
function
|
|
1448
|
-
var t = new e.constructor(e.source,
|
|
471
|
+
var Ra = /\w*$/;
|
|
472
|
+
function Ia(e) {
|
|
473
|
+
var t = new e.constructor(e.source, Ra.exec(e));
|
|
1449
474
|
return t.lastIndex = e.lastIndex, t;
|
|
1450
475
|
}
|
|
1451
|
-
var
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
476
|
+
var ht = Z ? Z.prototype : void 0, bt = ht ? ht.valueOf : void 0;
|
|
477
|
+
function Ha(e) {
|
|
478
|
+
return bt ? Object(bt.call(e)) : {};
|
|
1454
479
|
}
|
|
1455
|
-
function
|
|
1456
|
-
var n = t ?
|
|
480
|
+
function Ga(e, t) {
|
|
481
|
+
var n = t ? Qe(e.buffer) : e.buffer;
|
|
1457
482
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
1458
483
|
}
|
|
1459
|
-
var
|
|
1460
|
-
function
|
|
1461
|
-
var
|
|
484
|
+
var za = "[object Boolean]", Ka = "[object Date]", qa = "[object Map]", Xa = "[object Number]", Ya = "[object RegExp]", Za = "[object Set]", Wa = "[object String]", ka = "[object Symbol]", Ja = "[object ArrayBuffer]", Qa = "[object DataView]", eo = "[object Float32Array]", to = "[object Float64Array]", no = "[object Int8Array]", ro = "[object Int16Array]", ao = "[object Int32Array]", oo = "[object Uint8Array]", io = "[object Uint8ClampedArray]", lo = "[object Uint16Array]", so = "[object Uint32Array]";
|
|
485
|
+
function uo(e, t, n) {
|
|
486
|
+
var o = e.constructor;
|
|
1462
487
|
switch (t) {
|
|
1463
|
-
case
|
|
1464
|
-
return
|
|
1465
|
-
case
|
|
1466
|
-
case
|
|
1467
|
-
return new
|
|
1468
|
-
case
|
|
1469
|
-
return
|
|
1470
|
-
case
|
|
1471
|
-
case
|
|
1472
|
-
case
|
|
1473
|
-
case
|
|
1474
|
-
case
|
|
1475
|
-
case
|
|
1476
|
-
case
|
|
1477
|
-
case
|
|
1478
|
-
case
|
|
1479
|
-
return
|
|
1480
|
-
case
|
|
1481
|
-
return new
|
|
1482
|
-
case
|
|
1483
|
-
case
|
|
1484
|
-
return new
|
|
1485
|
-
case
|
|
1486
|
-
return
|
|
1487
|
-
case
|
|
1488
|
-
return new
|
|
1489
|
-
case
|
|
1490
|
-
return
|
|
488
|
+
case Ja:
|
|
489
|
+
return Qe(e);
|
|
490
|
+
case za:
|
|
491
|
+
case Ka:
|
|
492
|
+
return new o(+e);
|
|
493
|
+
case Qa:
|
|
494
|
+
return Ba(e, n);
|
|
495
|
+
case eo:
|
|
496
|
+
case to:
|
|
497
|
+
case no:
|
|
498
|
+
case ro:
|
|
499
|
+
case ao:
|
|
500
|
+
case oo:
|
|
501
|
+
case io:
|
|
502
|
+
case lo:
|
|
503
|
+
case so:
|
|
504
|
+
return Ga(e, n);
|
|
505
|
+
case qa:
|
|
506
|
+
return new o();
|
|
507
|
+
case Xa:
|
|
508
|
+
case Wa:
|
|
509
|
+
return new o(e);
|
|
510
|
+
case Ya:
|
|
511
|
+
return Ia(e);
|
|
512
|
+
case Za:
|
|
513
|
+
return new o();
|
|
514
|
+
case ka:
|
|
515
|
+
return Ha(e);
|
|
1491
516
|
}
|
|
1492
517
|
}
|
|
1493
|
-
function
|
|
1494
|
-
return typeof e.constructor == "function" && !
|
|
1495
|
-
}
|
|
1496
|
-
var
|
|
1497
|
-
function
|
|
1498
|
-
return
|
|
1499
|
-
}
|
|
1500
|
-
var
|
|
1501
|
-
function
|
|
1502
|
-
return
|
|
1503
|
-
}
|
|
1504
|
-
var
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
function Ae(e, t, n,
|
|
1508
|
-
var
|
|
1509
|
-
if (
|
|
1510
|
-
return
|
|
1511
|
-
if (!
|
|
518
|
+
function co(e) {
|
|
519
|
+
return typeof e.constructor == "function" && !Ye(e) ? Gn(Xt(e)) : {};
|
|
520
|
+
}
|
|
521
|
+
var fo = "[object Map]";
|
|
522
|
+
function po(e) {
|
|
523
|
+
return J(e) && F(e) == fo;
|
|
524
|
+
}
|
|
525
|
+
var Tt = se && se.isMap, mo = Tt ? Ze(Tt) : po, vo = "[object Set]";
|
|
526
|
+
function go(e) {
|
|
527
|
+
return J(e) && F(e) == vo;
|
|
528
|
+
}
|
|
529
|
+
var $t = se && se.isSet, yo = $t ? Ze($t) : go, _o = 1, ho = 2, bo = 4, Jt = "[object Arguments]", To = "[object Array]", $o = "[object Boolean]", Ao = "[object Date]", wo = "[object Error]", Qt = "[object Function]", So = "[object GeneratorFunction]", Oo = "[object Map]", Co = "[object Number]", en = "[object Object]", Po = "[object RegExp]", Vo = "[object Set]", Eo = "[object String]", Do = "[object Symbol]", xo = "[object WeakMap]", Lo = "[object ArrayBuffer]", Mo = "[object DataView]", Uo = "[object Float32Array]", jo = "[object Float64Array]", Fo = "[object Int8Array]", No = "[object Int16Array]", Bo = "[object Int32Array]", Ro = "[object Uint8Array]", Io = "[object Uint8ClampedArray]", Ho = "[object Uint16Array]", Go = "[object Uint32Array]", w = {};
|
|
530
|
+
w[Jt] = w[To] = w[Lo] = w[Mo] = w[$o] = w[Ao] = w[Uo] = w[jo] = w[Fo] = w[No] = w[Bo] = w[Oo] = w[Co] = w[en] = w[Po] = w[Vo] = w[Eo] = w[Do] = w[Ro] = w[Io] = w[Ho] = w[Go] = !0;
|
|
531
|
+
w[wo] = w[Qt] = w[xo] = !1;
|
|
532
|
+
function Ae(e, t, n, o, f, s) {
|
|
533
|
+
var d, p = t & _o, m = t & ho, l = t & bo;
|
|
534
|
+
if (d !== void 0)
|
|
535
|
+
return d;
|
|
536
|
+
if (!_e(e))
|
|
1512
537
|
return e;
|
|
1513
|
-
var
|
|
1514
|
-
if (
|
|
1515
|
-
if (
|
|
1516
|
-
return
|
|
538
|
+
var v = me(e);
|
|
539
|
+
if (v) {
|
|
540
|
+
if (d = Na(e), !p)
|
|
541
|
+
return zn(e, d);
|
|
1517
542
|
} else {
|
|
1518
|
-
var
|
|
543
|
+
var _ = F(e), h = _ == Qt || _ == So;
|
|
1519
544
|
if (Se(e))
|
|
1520
|
-
return
|
|
1521
|
-
if (
|
|
1522
|
-
if (
|
|
1523
|
-
return
|
|
545
|
+
return $a(e, p);
|
|
546
|
+
if (_ == en || _ == Jt || h && !f) {
|
|
547
|
+
if (d = m || h ? {} : co(e), !p)
|
|
548
|
+
return m ? Pa(e, ba(d, e)) : Oa(e, ha(d, e));
|
|
1524
549
|
} else {
|
|
1525
|
-
if (!
|
|
1526
|
-
return
|
|
1527
|
-
|
|
550
|
+
if (!w[_])
|
|
551
|
+
return f ? e : {};
|
|
552
|
+
d = uo(e, _, p);
|
|
1528
553
|
}
|
|
1529
554
|
}
|
|
1530
|
-
|
|
1531
|
-
var
|
|
1532
|
-
if (
|
|
1533
|
-
return
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
}) :
|
|
1537
|
-
|
|
1538
|
-
});
|
|
1539
|
-
var
|
|
1540
|
-
return
|
|
1541
|
-
|
|
1542
|
-
}),
|
|
1543
|
-
}
|
|
1544
|
-
var
|
|
1545
|
-
function
|
|
1546
|
-
return Ae(e,
|
|
1547
|
-
}
|
|
1548
|
-
var
|
|
1549
|
-
function
|
|
1550
|
-
return this.__data__.set(e,
|
|
1551
|
-
}
|
|
1552
|
-
function
|
|
1553
|
-
return this.__data__.has(e);
|
|
1554
|
-
}
|
|
1555
|
-
function
|
|
1556
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
1557
|
-
for (this.__data__ = new
|
|
1558
|
-
this.add(e[t]);
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
function
|
|
1563
|
-
for (var n = -1,
|
|
1564
|
-
if (t(e[n], n, e))
|
|
1565
|
-
return !0;
|
|
1566
|
-
return !1;
|
|
1567
|
-
}
|
|
1568
|
-
function
|
|
1569
|
-
return e.has(t);
|
|
1570
|
-
}
|
|
1571
|
-
var
|
|
1572
|
-
function
|
|
1573
|
-
var
|
|
1574
|
-
if (
|
|
1575
|
-
return !1;
|
|
1576
|
-
var
|
|
1577
|
-
if (
|
|
1578
|
-
return
|
|
1579
|
-
var
|
|
1580
|
-
for (
|
|
1581
|
-
var
|
|
1582
|
-
if (
|
|
1583
|
-
var
|
|
1584
|
-
if (
|
|
1585
|
-
if (
|
|
1586
|
-
continue;
|
|
1587
|
-
|
|
1588
|
-
break;
|
|
1589
|
-
}
|
|
1590
|
-
if (
|
|
1591
|
-
if (!
|
|
1592
|
-
if (!
|
|
1593
|
-
return
|
|
1594
|
-
})) {
|
|
1595
|
-
|
|
1596
|
-
break;
|
|
1597
|
-
}
|
|
1598
|
-
} else if (!(
|
|
1599
|
-
|
|
1600
|
-
break;
|
|
1601
|
-
}
|
|
555
|
+
s || (s = new z());
|
|
556
|
+
var $ = s.get(e);
|
|
557
|
+
if ($)
|
|
558
|
+
return $;
|
|
559
|
+
s.set(e, d), yo(e) ? e.forEach(function(V) {
|
|
560
|
+
d.add(Ae(V, t, n, V, e, s));
|
|
561
|
+
}) : mo(e) && e.forEach(function(V, E) {
|
|
562
|
+
d.set(E, Ae(V, t, n, E, e, s));
|
|
563
|
+
});
|
|
564
|
+
var A = l ? m ? Va : Be : m ? ke : We, T = v ? void 0 : A(e);
|
|
565
|
+
return Kn(T || e, function(V, E) {
|
|
566
|
+
T && (E = V, V = e[E]), Ft(d, E, Ae(V, t, n, E, e, s));
|
|
567
|
+
}), d;
|
|
568
|
+
}
|
|
569
|
+
var zo = 1, Ko = 4;
|
|
570
|
+
function At(e) {
|
|
571
|
+
return Ae(e, zo | Ko);
|
|
572
|
+
}
|
|
573
|
+
var qo = "__lodash_hash_undefined__";
|
|
574
|
+
function Xo(e) {
|
|
575
|
+
return this.__data__.set(e, qo), this;
|
|
576
|
+
}
|
|
577
|
+
function Yo(e) {
|
|
578
|
+
return this.__data__.has(e);
|
|
579
|
+
}
|
|
580
|
+
function Ce(e) {
|
|
581
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
582
|
+
for (this.__data__ = new ne(); ++t < n; )
|
|
583
|
+
this.add(e[t]);
|
|
584
|
+
}
|
|
585
|
+
Ce.prototype.add = Ce.prototype.push = Xo;
|
|
586
|
+
Ce.prototype.has = Yo;
|
|
587
|
+
function Zo(e, t) {
|
|
588
|
+
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
|
|
589
|
+
if (t(e[n], n, e))
|
|
590
|
+
return !0;
|
|
591
|
+
return !1;
|
|
592
|
+
}
|
|
593
|
+
function Wo(e, t) {
|
|
594
|
+
return e.has(t);
|
|
595
|
+
}
|
|
596
|
+
var ko = 1, Jo = 2;
|
|
597
|
+
function tn(e, t, n, o, f, s) {
|
|
598
|
+
var d = n & ko, p = e.length, m = t.length;
|
|
599
|
+
if (p != m && !(d && m > p))
|
|
600
|
+
return !1;
|
|
601
|
+
var l = s.get(e), v = s.get(t);
|
|
602
|
+
if (l && v)
|
|
603
|
+
return l == t && v == e;
|
|
604
|
+
var _ = -1, h = !0, $ = n & Jo ? new Ce() : void 0;
|
|
605
|
+
for (s.set(e, t), s.set(t, e); ++_ < p; ) {
|
|
606
|
+
var A = e[_], T = t[_];
|
|
607
|
+
if (o)
|
|
608
|
+
var V = d ? o(T, A, _, t, e, s) : o(A, T, _, e, t, s);
|
|
609
|
+
if (V !== void 0) {
|
|
610
|
+
if (V)
|
|
611
|
+
continue;
|
|
612
|
+
h = !1;
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
if ($) {
|
|
616
|
+
if (!Zo(t, function(E, H) {
|
|
617
|
+
if (!Wo($, H) && (A === E || f(A, E, n, o, s)))
|
|
618
|
+
return $.push(H);
|
|
619
|
+
})) {
|
|
620
|
+
h = !1;
|
|
621
|
+
break;
|
|
622
|
+
}
|
|
623
|
+
} else if (!(A === T || f(A, T, n, o, s))) {
|
|
624
|
+
h = !1;
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
return s.delete(e), s.delete(t), h;
|
|
629
|
+
}
|
|
630
|
+
function Qo(e) {
|
|
631
|
+
var t = -1, n = Array(e.size);
|
|
632
|
+
return e.forEach(function(o, f) {
|
|
633
|
+
n[++t] = [f, o];
|
|
634
|
+
}), n;
|
|
635
|
+
}
|
|
636
|
+
function ei(e) {
|
|
637
|
+
var t = -1, n = Array(e.size);
|
|
638
|
+
return e.forEach(function(o) {
|
|
639
|
+
n[++t] = o;
|
|
640
|
+
}), n;
|
|
641
|
+
}
|
|
642
|
+
var ti = 1, ni = 2, ri = "[object Boolean]", ai = "[object Date]", oi = "[object Error]", ii = "[object Map]", li = "[object Number]", si = "[object RegExp]", ui = "[object Set]", ci = "[object String]", fi = "[object Symbol]", di = "[object ArrayBuffer]", pi = "[object DataView]", wt = Z ? Z.prototype : void 0, je = wt ? wt.valueOf : void 0;
|
|
643
|
+
function mi(e, t, n, o, f, s, d) {
|
|
644
|
+
switch (n) {
|
|
645
|
+
case pi:
|
|
646
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
647
|
+
return !1;
|
|
648
|
+
e = e.buffer, t = t.buffer;
|
|
649
|
+
case di:
|
|
650
|
+
return !(e.byteLength != t.byteLength || !s(new Oe(e), new Oe(t)));
|
|
651
|
+
case ri:
|
|
652
|
+
case ai:
|
|
653
|
+
case li:
|
|
654
|
+
return Xe(+e, +t);
|
|
655
|
+
case oi:
|
|
656
|
+
return e.name == t.name && e.message == t.message;
|
|
657
|
+
case si:
|
|
658
|
+
case ci:
|
|
659
|
+
return e == t + "";
|
|
660
|
+
case ii:
|
|
661
|
+
var p = Qo;
|
|
662
|
+
case ui:
|
|
663
|
+
var m = o & ti;
|
|
664
|
+
if (p || (p = ei), e.size != t.size && !m)
|
|
665
|
+
return !1;
|
|
666
|
+
var l = d.get(e);
|
|
667
|
+
if (l)
|
|
668
|
+
return l == t;
|
|
669
|
+
o |= ni, d.set(e, t);
|
|
670
|
+
var v = tn(p(e), p(t), o, f, s, d);
|
|
671
|
+
return d.delete(e), v;
|
|
672
|
+
case fi:
|
|
673
|
+
if (je)
|
|
674
|
+
return je.call(e) == je.call(t);
|
|
675
|
+
}
|
|
676
|
+
return !1;
|
|
677
|
+
}
|
|
678
|
+
var vi = 1, gi = Object.prototype, yi = gi.hasOwnProperty;
|
|
679
|
+
function _i(e, t, n, o, f, s) {
|
|
680
|
+
var d = n & vi, p = Be(e), m = p.length, l = Be(t), v = l.length;
|
|
681
|
+
if (m != v && !d)
|
|
682
|
+
return !1;
|
|
683
|
+
for (var _ = m; _--; ) {
|
|
684
|
+
var h = p[_];
|
|
685
|
+
if (!(d ? h in t : yi.call(t, h)))
|
|
686
|
+
return !1;
|
|
687
|
+
}
|
|
688
|
+
var $ = s.get(e), A = s.get(t);
|
|
689
|
+
if ($ && A)
|
|
690
|
+
return $ == t && A == e;
|
|
691
|
+
var T = !0;
|
|
692
|
+
s.set(e, t), s.set(t, e);
|
|
693
|
+
for (var V = d; ++_ < m; ) {
|
|
694
|
+
h = p[_];
|
|
695
|
+
var E = e[h], H = t[h];
|
|
696
|
+
if (o)
|
|
697
|
+
var he = d ? o(H, E, h, t, e, s) : o(E, H, h, e, t, s);
|
|
698
|
+
if (!(he === void 0 ? E === H || f(E, H, n, o, s) : he)) {
|
|
699
|
+
T = !1;
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
V || (V = h == "constructor");
|
|
703
|
+
}
|
|
704
|
+
if (T && !V) {
|
|
705
|
+
var ae = e.constructor, oe = t.constructor;
|
|
706
|
+
ae != oe && "constructor" in e && "constructor" in t && !(typeof ae == "function" && ae instanceof ae && typeof oe == "function" && oe instanceof oe) && (T = !1);
|
|
707
|
+
}
|
|
708
|
+
return s.delete(e), s.delete(t), T;
|
|
709
|
+
}
|
|
710
|
+
var hi = 1, St = "[object Arguments]", Ot = "[object Array]", be = "[object Object]", bi = Object.prototype, Ct = bi.hasOwnProperty;
|
|
711
|
+
function Ti(e, t, n, o, f, s) {
|
|
712
|
+
var d = me(e), p = me(t), m = d ? Ot : F(e), l = p ? Ot : F(t);
|
|
713
|
+
m = m == St ? be : m, l = l == St ? be : l;
|
|
714
|
+
var v = m == be, _ = l == be, h = m == l;
|
|
715
|
+
if (h && Se(e)) {
|
|
716
|
+
if (!Se(t))
|
|
717
|
+
return !1;
|
|
718
|
+
d = !0, v = !1;
|
|
719
|
+
}
|
|
720
|
+
if (h && !v)
|
|
721
|
+
return s || (s = new z()), d || Gt(e) ? tn(e, t, n, o, f, s) : mi(e, t, m, n, o, f, s);
|
|
722
|
+
if (!(n & hi)) {
|
|
723
|
+
var $ = v && Ct.call(e, "__wrapped__"), A = _ && Ct.call(t, "__wrapped__");
|
|
724
|
+
if ($ || A) {
|
|
725
|
+
var T = $ ? e.value() : e, V = A ? t.value() : t;
|
|
726
|
+
return s || (s = new z()), f(T, V, n, o, s);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return h ? (s || (s = new z()), _i(e, t, n, o, f, s)) : !1;
|
|
730
|
+
}
|
|
731
|
+
function nn(e, t, n, o, f) {
|
|
732
|
+
return e === t ? !0 : e == null || t == null || !J(e) && !J(t) ? e !== e && t !== t : Ti(e, t, n, o, nn, f);
|
|
733
|
+
}
|
|
734
|
+
function Te(e, t) {
|
|
735
|
+
return nn(e, t);
|
|
736
|
+
}
|
|
737
|
+
const $i = /* @__PURE__ */ B({
|
|
738
|
+
__name: "entry",
|
|
739
|
+
props: {
|
|
740
|
+
minHeight: {}
|
|
741
|
+
},
|
|
742
|
+
setup(e) {
|
|
743
|
+
const { backgroundColor2: t, highlightColor: n } = qe(), o = N(!1), f = K(() => ({
|
|
744
|
+
background: o.value ? n.value : t.value,
|
|
745
|
+
minHeight: e.minHeight,
|
|
746
|
+
paddingRight: "4px",
|
|
747
|
+
marginBottom: "1px",
|
|
748
|
+
userSelect: "none"
|
|
749
|
+
})), s = (d) => {
|
|
750
|
+
Dt.emit("propTreeMenu", {
|
|
751
|
+
x: d.clientX,
|
|
752
|
+
y: d.clientY
|
|
753
|
+
});
|
|
754
|
+
};
|
|
755
|
+
return (d, p) => {
|
|
756
|
+
const m = ue("ripple");
|
|
757
|
+
return k((P(), X("div", {
|
|
758
|
+
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
759
|
+
style: Ge(f.value),
|
|
760
|
+
onContextmenu: R(s, ["prevent"]),
|
|
761
|
+
onMouseover: p[0] || (p[0] = (l) => o.value = !0),
|
|
762
|
+
onMouseout: p[1] || (p[1] = (l) => o.value = !1)
|
|
763
|
+
}, [
|
|
764
|
+
dn(d.$slots, "default")
|
|
765
|
+
], 36)), [
|
|
766
|
+
[m]
|
|
767
|
+
]);
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
}), Ai = /* @__PURE__ */ B({
|
|
771
|
+
__name: "menu",
|
|
772
|
+
setup(e) {
|
|
773
|
+
const { t } = Ke(), n = N(0), o = N(0), f = K(() => [n.value, o.value]), s = (l) => {
|
|
774
|
+
const v = () => {
|
|
775
|
+
console.log("reset");
|
|
776
|
+
};
|
|
777
|
+
l.push({
|
|
778
|
+
title: t("x-prop-tree.reset"),
|
|
779
|
+
func: v
|
|
780
|
+
});
|
|
781
|
+
}, d = K(() => {
|
|
782
|
+
const l = [];
|
|
783
|
+
return s(l), l;
|
|
784
|
+
}), p = (l) => {
|
|
785
|
+
n.value = l.x, o.value = l.y;
|
|
786
|
+
}, { open: m } = xt("propTreeMenu", p);
|
|
787
|
+
return (l, v) => {
|
|
788
|
+
const _ = C("v-list-item-title"), h = C("v-list-item"), $ = C("v-list"), A = C("v-menu");
|
|
789
|
+
return P(), L(A, {
|
|
790
|
+
modelValue: M(m),
|
|
791
|
+
"onUpdate:modelValue": v[0] || (v[0] = (T) => Pt(m) ? m.value = T : null),
|
|
792
|
+
"location-strategy": "connected",
|
|
793
|
+
target: f.value,
|
|
794
|
+
scrim: "transparent"
|
|
795
|
+
}, {
|
|
796
|
+
default: G(() => [
|
|
797
|
+
x($, null, {
|
|
798
|
+
default: G(() => [
|
|
799
|
+
(P(!0), X(Vt, null, pn(d.value, (T, V) => (P(), L(h, {
|
|
800
|
+
key: V,
|
|
801
|
+
link: "",
|
|
802
|
+
onClick: T.func
|
|
803
|
+
}, {
|
|
804
|
+
default: G(() => [
|
|
805
|
+
x(_, null, {
|
|
806
|
+
default: G(() => [
|
|
807
|
+
ze(Pe(T.title), 1)
|
|
808
|
+
]),
|
|
809
|
+
_: 2
|
|
810
|
+
}, 1024)
|
|
811
|
+
]),
|
|
812
|
+
_: 2
|
|
813
|
+
}, 1032, ["onClick"]))), 128))
|
|
814
|
+
]),
|
|
815
|
+
_: 1
|
|
816
|
+
})
|
|
817
|
+
]),
|
|
818
|
+
_: 1
|
|
819
|
+
}, 8, ["modelValue", "target"]);
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
var wi = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Si = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", re = "M19,13H5V11H19V13Z", Oi = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
824
|
+
const $e = /* @__PURE__ */ B({
|
|
825
|
+
__name: "title",
|
|
826
|
+
props: {
|
|
827
|
+
title: {},
|
|
828
|
+
collapse: { type: Boolean },
|
|
829
|
+
hasCreate: { type: Boolean, default: !1 },
|
|
830
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
831
|
+
index: { default: 0 }
|
|
832
|
+
},
|
|
833
|
+
emits: ["collapse", "create", "delete"],
|
|
834
|
+
setup(e, { emit: t }) {
|
|
835
|
+
const { backgroundColor2: n, highlightColor: o } = qe(), f = t, s = N(!1), d = K(() => ({
|
|
836
|
+
background: s.value ? o.value : n.value,
|
|
837
|
+
height: "36px",
|
|
838
|
+
marginBottom: "1px",
|
|
839
|
+
userSelect: "none"
|
|
840
|
+
})), p = () => {
|
|
841
|
+
f("collapse", !e.collapse);
|
|
842
|
+
}, m = (l) => {
|
|
843
|
+
Dt.emit("propTreeMenu", {
|
|
844
|
+
x: l.clientX,
|
|
845
|
+
y: l.clientY
|
|
846
|
+
});
|
|
847
|
+
};
|
|
848
|
+
return (l, v) => {
|
|
849
|
+
const _ = C("v-icon"), h = C("v-spacer"), $ = ue("ripple");
|
|
850
|
+
return k((P(), X("div", {
|
|
851
|
+
class: "d-flex align-center cursor-pointer",
|
|
852
|
+
style: Ge(d.value),
|
|
853
|
+
onClick: p,
|
|
854
|
+
onContextmenu: R(m, ["prevent"]),
|
|
855
|
+
onMouseover: v[2] || (v[2] = (A) => s.value = !0),
|
|
856
|
+
onMouseout: v[3] || (v[3] = (A) => s.value = !1)
|
|
857
|
+
}, [
|
|
858
|
+
x(_, {
|
|
859
|
+
class: "mr-1",
|
|
860
|
+
icon: l.collapse ? M(Si) : M(wi)
|
|
861
|
+
}, null, 8, ["icon"]),
|
|
862
|
+
we("span", null, Pe(l.title), 1),
|
|
863
|
+
x(h),
|
|
864
|
+
l.hasCreate ? (P(), L(_, {
|
|
865
|
+
key: 0,
|
|
866
|
+
class: "mx-3",
|
|
867
|
+
icon: M(Oi),
|
|
868
|
+
onClick: v[0] || (v[0] = R((A) => f("create"), ["stop"]))
|
|
869
|
+
}, null, 8, ["icon"])) : q("", !0),
|
|
870
|
+
l.hasDelete ? (P(), L(_, {
|
|
871
|
+
key: 1,
|
|
872
|
+
class: "mx-3",
|
|
873
|
+
icon: M(re),
|
|
874
|
+
onClick: v[1] || (v[1] = R((A) => f("delete", l.index), ["stop"]))
|
|
875
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
876
|
+
], 36)), [
|
|
877
|
+
[$]
|
|
878
|
+
]);
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
}), Ci = { class: "d-flex justify-space-between align-center" }, Pi = /* @__PURE__ */ B({
|
|
882
|
+
__name: "colorPicker",
|
|
883
|
+
props: /* @__PURE__ */ U({
|
|
884
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
885
|
+
readonly: { type: Boolean, default: !1 }
|
|
886
|
+
}, {
|
|
887
|
+
modelValue: {},
|
|
888
|
+
modelModifiers: {}
|
|
889
|
+
}),
|
|
890
|
+
emits: /* @__PURE__ */ U(["delete"], ["update:modelValue"]),
|
|
891
|
+
setup(e, { emit: t }) {
|
|
892
|
+
const n = ce(e, "modelValue"), o = t, f = K(() => {
|
|
893
|
+
let p = "100%";
|
|
894
|
+
return e.hasDelete && (p = "calc(100% - 37px)"), {
|
|
895
|
+
width: p
|
|
896
|
+
};
|
|
897
|
+
}), s = K(() => e.readonly), d = N("hexa");
|
|
898
|
+
return (p, m) => {
|
|
899
|
+
const l = C("v-btn"), v = C("v-icon"), _ = C("v-color-picker"), h = C("v-menu");
|
|
900
|
+
return P(), L(h, { "close-on-content-click": !1 }, {
|
|
901
|
+
activator: G(({ props: $ }) => [
|
|
902
|
+
we("div", Ci, [
|
|
903
|
+
we("div", {
|
|
904
|
+
style: Ge(f.value)
|
|
905
|
+
}, [
|
|
906
|
+
x(l, Et($, {
|
|
907
|
+
density: "comfortable",
|
|
908
|
+
color: n.value,
|
|
909
|
+
block: "",
|
|
910
|
+
disabled: s.value
|
|
911
|
+
}), {
|
|
912
|
+
default: G(() => [
|
|
913
|
+
ze(Pe(n.value), 1)
|
|
914
|
+
]),
|
|
915
|
+
_: 2
|
|
916
|
+
}, 1040, ["color", "disabled"])
|
|
917
|
+
], 4),
|
|
918
|
+
p.hasDelete ? (P(), L(v, {
|
|
919
|
+
key: 0,
|
|
920
|
+
class: "mx-2",
|
|
921
|
+
icon: M(re),
|
|
922
|
+
onClick: m[0] || (m[0] = R((A) => o("delete"), ["stop"]))
|
|
923
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
924
|
+
])
|
|
925
|
+
]),
|
|
926
|
+
default: G(() => [
|
|
927
|
+
x(_, {
|
|
928
|
+
modelValue: n.value,
|
|
929
|
+
"onUpdate:modelValue": m[1] || (m[1] = ($) => n.value = $),
|
|
930
|
+
mode: d.value,
|
|
931
|
+
"onUpdate:mode": m[2] || (m[2] = ($) => d.value = $),
|
|
932
|
+
"show-swatches": "",
|
|
933
|
+
"swatches-max-height": "150px"
|
|
934
|
+
}, null, 8, ["modelValue", "mode"])
|
|
935
|
+
]),
|
|
936
|
+
_: 1
|
|
937
|
+
});
|
|
938
|
+
};
|
|
1602
939
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
case Io:
|
|
1629
|
-
return rt(+e, +t);
|
|
1630
|
-
case Po:
|
|
1631
|
-
return e.name == t.name && e.message == t.message;
|
|
1632
|
-
case Eo:
|
|
1633
|
-
case Lo:
|
|
1634
|
-
return e == t + "";
|
|
1635
|
-
case Vo:
|
|
1636
|
-
var f = Co;
|
|
1637
|
-
case Mo:
|
|
1638
|
-
var l = r & Ao;
|
|
1639
|
-
if (f || (f = wo), e.size != t.size && !l)
|
|
1640
|
-
return !1;
|
|
1641
|
-
var c = o.get(e);
|
|
1642
|
-
if (c)
|
|
1643
|
-
return c == t;
|
|
1644
|
-
r |= So, o.set(e, t);
|
|
1645
|
-
var y = Fn(f(e), f(t), r, i, a, o);
|
|
1646
|
-
return o.delete(e), y;
|
|
1647
|
-
case Bo:
|
|
1648
|
-
if (ke)
|
|
1649
|
-
return ke.call(e) == ke.call(t);
|
|
940
|
+
}), Vi = /* @__PURE__ */ B({
|
|
941
|
+
__name: "compSelect",
|
|
942
|
+
setup(e) {
|
|
943
|
+
const t = K(() => "<n/a>"), n = () => {
|
|
944
|
+
}, { open: o } = xt("compSelectDlg", n);
|
|
945
|
+
return (f, s) => {
|
|
946
|
+
const d = C("v-btn"), p = C("v-dialog");
|
|
947
|
+
return P(), L(p, {
|
|
948
|
+
modelValue: M(o),
|
|
949
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => Pt(o) ? o.value = m : null)
|
|
950
|
+
}, {
|
|
951
|
+
activator: G(({ props: m }) => [
|
|
952
|
+
x(d, Et(m, {
|
|
953
|
+
density: "comfortable",
|
|
954
|
+
block: ""
|
|
955
|
+
}), {
|
|
956
|
+
default: G(() => [
|
|
957
|
+
ze(Pe(t.value), 1)
|
|
958
|
+
]),
|
|
959
|
+
_: 2
|
|
960
|
+
}, 1040)
|
|
961
|
+
]),
|
|
962
|
+
_: 1
|
|
963
|
+
}, 8, ["modelValue"]);
|
|
964
|
+
};
|
|
1650
965
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
966
|
+
}), Ei = { class: "d-flex justify-space-between align-center my-2" }, Di = /* @__PURE__ */ B({
|
|
967
|
+
__name: "multiTypes",
|
|
968
|
+
props: /* @__PURE__ */ U({
|
|
969
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
970
|
+
types: {}
|
|
971
|
+
}, {
|
|
972
|
+
modelValue: { default: "" },
|
|
973
|
+
modelModifiers: {}
|
|
974
|
+
}),
|
|
975
|
+
emits: /* @__PURE__ */ U(["delete"], ["update:modelValue"]),
|
|
976
|
+
setup(e, { emit: t }) {
|
|
977
|
+
const { t: n } = Ke(), o = ce(e, "modelValue"), f = t, s = N(0), d = K(() => {
|
|
978
|
+
const l = [];
|
|
979
|
+
return e.types.forEach((v, _) => {
|
|
980
|
+
l.push({
|
|
981
|
+
title: n(v.name),
|
|
982
|
+
value: _
|
|
983
|
+
});
|
|
984
|
+
}), l;
|
|
985
|
+
});
|
|
986
|
+
e.types.some((l, v) => l.validator(o.value) ? (s.value = v, !0) : !1);
|
|
987
|
+
const p = K(() => e.types[s.value]);
|
|
988
|
+
Fe(p, (l) => {
|
|
989
|
+
o.value = l.default;
|
|
990
|
+
});
|
|
991
|
+
const m = N(0);
|
|
992
|
+
return mn(() => {
|
|
993
|
+
p.value.ui === "pixelInput" ? m.value = gn(o.value) : p.value.ui === "percentInput" && (m.value = yn(o.value));
|
|
994
|
+
}), Fe(m, (l) => {
|
|
995
|
+
p.value.ui === "pixelInput" ? o.value = l + "px" : p.value.ui === "percentInput" && (o.value = l + "%");
|
|
996
|
+
}), (l, v) => {
|
|
997
|
+
const _ = C("v-select"), h = C("v-number-input"), $ = C("v-icon"), A = ue("ripple");
|
|
998
|
+
return P(), X("div", Ei, [
|
|
999
|
+
we("div", null, [
|
|
1000
|
+
k(x(_, {
|
|
1001
|
+
modelValue: s.value,
|
|
1002
|
+
"onUpdate:modelValue": v[0] || (v[0] = (T) => s.value = T),
|
|
1003
|
+
density: "compact",
|
|
1004
|
+
items: d.value,
|
|
1005
|
+
"hide-details": "",
|
|
1006
|
+
"single-line": ""
|
|
1007
|
+
}, null, 8, ["modelValue", "items"]), [
|
|
1008
|
+
[
|
|
1009
|
+
A,
|
|
1010
|
+
void 0,
|
|
1011
|
+
void 0,
|
|
1012
|
+
{ stop: !0 }
|
|
1013
|
+
]
|
|
1014
|
+
]),
|
|
1015
|
+
p.value.ui === "pixelInput" || p.value.ui === "percentInput" ? k((P(), L(h, {
|
|
1016
|
+
key: 0,
|
|
1017
|
+
modelValue: m.value,
|
|
1018
|
+
"onUpdate:modelValue": v[1] || (v[1] = (T) => m.value = T),
|
|
1019
|
+
density: "compact",
|
|
1020
|
+
"control-variant": "stacked",
|
|
1021
|
+
precision: p.value.precision,
|
|
1022
|
+
min: p.value.min,
|
|
1023
|
+
max: p.value.max,
|
|
1024
|
+
step: p.value.step,
|
|
1025
|
+
"hide-details": "",
|
|
1026
|
+
"single-line": ""
|
|
1027
|
+
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1028
|
+
[
|
|
1029
|
+
A,
|
|
1030
|
+
void 0,
|
|
1031
|
+
void 0,
|
|
1032
|
+
{ stop: !0 }
|
|
1033
|
+
]
|
|
1034
|
+
]) : q("", !0)
|
|
1035
|
+
]),
|
|
1036
|
+
l.hasDelete ? (P(), L($, {
|
|
1037
|
+
key: 0,
|
|
1038
|
+
class: "mx-2",
|
|
1039
|
+
icon: M(re),
|
|
1040
|
+
onClick: v[2] || (v[2] = R((T) => f("delete"), ["stop"]))
|
|
1041
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
1042
|
+
]);
|
|
1043
|
+
};
|
|
1662
1044
|
}
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1045
|
+
}), xi = { class: "d-flex justify-space-between align-center" }, Li = /* @__PURE__ */ B({
|
|
1046
|
+
__name: "numInput",
|
|
1047
|
+
props: /* @__PURE__ */ U({
|
|
1048
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
1049
|
+
precision: { default: 4 },
|
|
1050
|
+
min: { default: () => -1 / 0 },
|
|
1051
|
+
max: { default: () => 1 / 0 },
|
|
1052
|
+
step: { default: 1 },
|
|
1053
|
+
readonly: { type: Boolean, default: !1 }
|
|
1054
|
+
}, {
|
|
1055
|
+
modelValue: {},
|
|
1056
|
+
modelModifiers: {}
|
|
1057
|
+
}),
|
|
1058
|
+
emits: /* @__PURE__ */ U(["delete"], ["update:modelValue"]),
|
|
1059
|
+
setup(e, { emit: t }) {
|
|
1060
|
+
const n = ce(e, "modelValue"), o = t;
|
|
1061
|
+
return (f, s) => {
|
|
1062
|
+
const d = C("v-number-input"), p = C("v-icon"), m = ue("ripple");
|
|
1063
|
+
return P(), X("div", xi, [
|
|
1064
|
+
k(x(d, {
|
|
1065
|
+
modelValue: n.value,
|
|
1066
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => n.value = l),
|
|
1067
|
+
density: "compact",
|
|
1068
|
+
"control-variant": "stacked",
|
|
1069
|
+
precision: f.precision,
|
|
1070
|
+
min: f.min,
|
|
1071
|
+
max: f.max,
|
|
1072
|
+
step: f.step,
|
|
1073
|
+
"hide-details": "",
|
|
1074
|
+
"single-line": "",
|
|
1075
|
+
readonly: f.readonly
|
|
1076
|
+
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
1077
|
+
[
|
|
1078
|
+
m,
|
|
1079
|
+
void 0,
|
|
1080
|
+
void 0,
|
|
1081
|
+
{ stop: !0 }
|
|
1082
|
+
]
|
|
1083
|
+
]),
|
|
1084
|
+
f.hasDelete ? (P(), L(p, {
|
|
1085
|
+
key: 0,
|
|
1086
|
+
class: "mx-2",
|
|
1087
|
+
icon: M(re),
|
|
1088
|
+
onClick: s[1] || (s[1] = R((l) => o("delete"), ["stop"]))
|
|
1089
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
1090
|
+
]);
|
|
1091
|
+
};
|
|
1678
1092
|
}
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1093
|
+
}), Mi = { class: "d-flex justify-space-between align-center" }, Ui = /* @__PURE__ */ B({
|
|
1094
|
+
__name: "select",
|
|
1095
|
+
props: /* @__PURE__ */ U({
|
|
1096
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
1097
|
+
readonly: { type: Boolean, default: !1 },
|
|
1098
|
+
items: {}
|
|
1099
|
+
}, {
|
|
1100
|
+
modelValue: {},
|
|
1101
|
+
modelModifiers: {}
|
|
1102
|
+
}),
|
|
1103
|
+
emits: /* @__PURE__ */ U(["delete"], ["update:modelValue"]),
|
|
1104
|
+
setup(e, { emit: t }) {
|
|
1105
|
+
const n = ce(e, "modelValue"), o = t;
|
|
1106
|
+
return (f, s) => {
|
|
1107
|
+
const d = C("v-select"), p = C("v-icon"), m = ue("ripple");
|
|
1108
|
+
return P(), X("div", Mi, [
|
|
1109
|
+
k(x(d, {
|
|
1110
|
+
modelValue: n.value,
|
|
1111
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => n.value = l),
|
|
1112
|
+
density: "compact",
|
|
1113
|
+
items: f.items,
|
|
1114
|
+
"hide-details": "",
|
|
1115
|
+
"single-line": "",
|
|
1116
|
+
readonly: f.readonly
|
|
1117
|
+
}, null, 8, ["modelValue", "items", "readonly"]), [
|
|
1118
|
+
[
|
|
1119
|
+
m,
|
|
1120
|
+
void 0,
|
|
1121
|
+
void 0,
|
|
1122
|
+
{ stop: !0 }
|
|
1123
|
+
]
|
|
1124
|
+
]),
|
|
1125
|
+
f.hasDelete ? (P(), L(p, {
|
|
1126
|
+
key: 0,
|
|
1127
|
+
class: "mx-2",
|
|
1128
|
+
icon: M(re),
|
|
1129
|
+
onClick: s[1] || (s[1] = R((l) => o("delete"), ["stop"]))
|
|
1130
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
1131
|
+
]);
|
|
1132
|
+
};
|
|
1682
1133
|
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1134
|
+
}), ji = { class: "d-flex justify-space-between align-center" }, Fi = /* @__PURE__ */ B({
|
|
1135
|
+
__name: "strInput",
|
|
1136
|
+
props: /* @__PURE__ */ U({
|
|
1137
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
1138
|
+
readonly: { type: Boolean, default: !1 }
|
|
1139
|
+
}, {
|
|
1140
|
+
modelValue: {},
|
|
1141
|
+
modelModifiers: {}
|
|
1142
|
+
}),
|
|
1143
|
+
emits: /* @__PURE__ */ U(["delete"], ["update:modelValue"]),
|
|
1144
|
+
setup(e, { emit: t }) {
|
|
1145
|
+
const n = ce(e, "modelValue"), o = t;
|
|
1146
|
+
return (f, s) => {
|
|
1147
|
+
const d = C("v-text-field"), p = C("v-icon"), m = ue("ripple");
|
|
1148
|
+
return P(), X("div", ji, [
|
|
1149
|
+
k(x(d, {
|
|
1150
|
+
modelValue: n.value,
|
|
1151
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => n.value = l),
|
|
1152
|
+
density: "compact",
|
|
1153
|
+
"hide-details": "",
|
|
1154
|
+
"single-line": "",
|
|
1155
|
+
readonly: f.readonly
|
|
1156
|
+
}, null, 8, ["modelValue", "readonly"]), [
|
|
1157
|
+
[
|
|
1158
|
+
m,
|
|
1159
|
+
void 0,
|
|
1160
|
+
void 0,
|
|
1161
|
+
{ stop: !0 }
|
|
1162
|
+
]
|
|
1163
|
+
]),
|
|
1164
|
+
f.hasDelete ? (P(), L(p, {
|
|
1165
|
+
key: 0,
|
|
1166
|
+
class: "mx-2",
|
|
1167
|
+
icon: M(re),
|
|
1168
|
+
onClick: s[1] || (s[1] = R((l) => o("delete"), ["stop"]))
|
|
1169
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
1170
|
+
]);
|
|
1171
|
+
};
|
|
1694
1172
|
}
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
}
|
|
1173
|
+
}), Ni = { class: "d-flex justify-space-between align-center" }, Bi = /* @__PURE__ */ B({
|
|
1174
|
+
__name: "switch",
|
|
1175
|
+
props: /* @__PURE__ */ U({
|
|
1176
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
1177
|
+
readonly: { type: Boolean, default: !1 }
|
|
1178
|
+
}, {
|
|
1179
|
+
modelValue: { type: Boolean },
|
|
1180
|
+
modelModifiers: {}
|
|
1181
|
+
}),
|
|
1182
|
+
emits: /* @__PURE__ */ U(["delete"], ["update:modelValue"]),
|
|
1183
|
+
setup(e, { emit: t }) {
|
|
1184
|
+
const n = ce(e, "modelValue"), o = t;
|
|
1185
|
+
return (f, s) => {
|
|
1186
|
+
const d = C("v-switch"), p = C("v-icon");
|
|
1187
|
+
return P(), X("div", Ni, [
|
|
1188
|
+
x(d, {
|
|
1189
|
+
modelValue: n.value,
|
|
1190
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
|
|
1191
|
+
class: "ml-1",
|
|
1192
|
+
density: "compact",
|
|
1193
|
+
color: "primary",
|
|
1194
|
+
"hide-details": "",
|
|
1195
|
+
readonly: f.readonly
|
|
1196
|
+
}, null, 8, ["modelValue", "readonly"]),
|
|
1197
|
+
f.hasDelete ? (P(), L(p, {
|
|
1198
|
+
key: 0,
|
|
1199
|
+
class: "mx-2",
|
|
1200
|
+
icon: M(re),
|
|
1201
|
+
onClick: s[1] || (s[1] = R((m) => o("delete"), ["stop"]))
|
|
1202
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
1203
|
+
]);
|
|
1204
|
+
};
|
|
1703
1205
|
}
|
|
1704
|
-
|
|
1705
|
-
}
|
|
1706
|
-
function Dn(e, t, n, r, i) {
|
|
1707
|
-
return e === t ? !0 : e == null || t == null || !q(e) && !q(t) ? e !== e && t !== t : Go(e, t, n, r, Dn, i);
|
|
1708
|
-
}
|
|
1709
|
-
function Ce(e, t) {
|
|
1710
|
-
return Dn(e, t);
|
|
1711
|
-
}
|
|
1712
|
-
const Wo = /* @__PURE__ */ L({
|
|
1206
|
+
}), Ri = /* @__PURE__ */ B({
|
|
1713
1207
|
__name: "index",
|
|
1714
1208
|
props: {
|
|
1715
1209
|
unique: {},
|
|
@@ -1718,128 +1212,307 @@ const Wo = /* @__PURE__ */ L({
|
|
|
1718
1212
|
},
|
|
1719
1213
|
emits: ["change"],
|
|
1720
1214
|
setup(e, { emit: t }) {
|
|
1721
|
-
const { t: n } =
|
|
1722
|
-
|
|
1723
|
-
}, v =
|
|
1724
|
-
if (!
|
|
1725
|
-
|
|
1215
|
+
const { t: n } = Ke(), { backgroundColor1: o } = qe(), f = e, s = t, d = N("20px"), p = N("56px"), m = N("200px"), l = (u, r) => {
|
|
1216
|
+
A(), s("change", u, r);
|
|
1217
|
+
}, v = (u) => typeof u == "object", _ = (u) => u instanceof Array, h = vn({}), $ = N({}), A = () => {
|
|
1218
|
+
if (!f.config || !f.object) {
|
|
1219
|
+
$.value = {};
|
|
1726
1220
|
return;
|
|
1727
1221
|
}
|
|
1728
|
-
const
|
|
1729
|
-
if (
|
|
1730
|
-
if (
|
|
1222
|
+
const u = (a, i, c, g) => {
|
|
1223
|
+
if (a = At(a), a.push(i.key), i.ui) {
|
|
1224
|
+
if (Te(a, ["basic", "id"]) || Te(a, ["basic", "name"]))
|
|
1731
1225
|
return !1;
|
|
1732
|
-
|
|
1733
|
-
return
|
|
1734
|
-
} else if (
|
|
1735
|
-
|
|
1736
|
-
return
|
|
1226
|
+
let D = !Te(j(i), c[i.key]);
|
|
1227
|
+
return g.change = D, D;
|
|
1228
|
+
} else if (i.array) {
|
|
1229
|
+
let D = !Te(j(i), c[i.key]);
|
|
1230
|
+
return g.change = D, D;
|
|
1737
1231
|
} else {
|
|
1738
|
-
|
|
1739
|
-
let
|
|
1740
|
-
return
|
|
1741
|
-
|
|
1742
|
-
|
|
1232
|
+
c[i.key] || (c[i.key] = {});
|
|
1233
|
+
let D = !1;
|
|
1234
|
+
return i.children.forEach((b) => {
|
|
1235
|
+
const O = {
|
|
1236
|
+
change: !1,
|
|
1237
|
+
children: {}
|
|
1238
|
+
};
|
|
1239
|
+
g.children[b.key] = O, u(a, b, c[i.key], O) && (D = !0);
|
|
1240
|
+
}), g.change = D, D;
|
|
1743
1241
|
}
|
|
1744
|
-
},
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1242
|
+
}, r = {};
|
|
1243
|
+
f.config.forEach((a) => {
|
|
1244
|
+
const i = {
|
|
1245
|
+
change: !1,
|
|
1246
|
+
children: {}
|
|
1247
|
+
};
|
|
1248
|
+
r[a.key] = i, u([], a, f.object, i);
|
|
1249
|
+
}), $.value = r;
|
|
1748
1250
|
};
|
|
1749
|
-
|
|
1750
|
-
[() =>
|
|
1251
|
+
Fe(
|
|
1252
|
+
[() => f.config, () => f.object],
|
|
1751
1253
|
() => {
|
|
1752
|
-
|
|
1254
|
+
A();
|
|
1753
1255
|
},
|
|
1754
1256
|
{ immediate: !0 }
|
|
1755
1257
|
);
|
|
1756
|
-
const
|
|
1757
|
-
let
|
|
1758
|
-
return
|
|
1759
|
-
if (
|
|
1760
|
-
return console.assert(!1, "isPropChanged unpkg failed"), !1;
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1258
|
+
const T = (u) => {
|
|
1259
|
+
let r, a = $.value;
|
|
1260
|
+
return u.forEach((i) => {
|
|
1261
|
+
if (r = a[i], !r)
|
|
1262
|
+
return console.assert(!1, "isPropChanged unpkg failed", u), !1;
|
|
1263
|
+
a = r.children;
|
|
1264
|
+
}), (r == null ? void 0 : r.change) ?? !1;
|
|
1265
|
+
}, V = (u, r, a, i) => {
|
|
1266
|
+
let c = n(r.name);
|
|
1267
|
+
return i === void 0 && T(u) && (c += " *"), y(
|
|
1268
|
+
$i,
|
|
1269
|
+
{
|
|
1270
|
+
minHeight: p.value
|
|
1271
|
+
},
|
|
1272
|
+
() => [
|
|
1273
|
+
y("span", { class: "ml-1", innerHTML: c }),
|
|
1274
|
+
y("div", { style: { width: m.value } }, a)
|
|
1275
|
+
]
|
|
1276
|
+
);
|
|
1277
|
+
}, E = (u, r, a, i, c) => {
|
|
1278
|
+
if (r.ui !== "dummy")
|
|
1279
|
+
return console.assert(!1), y("div", "renderUiDummy prop ui must be dummy");
|
|
1280
|
+
i ? (typeof a[r.key] != typeof r.default && (a[r.key] = j(r, !0)), l(c !== void 0 ? u.slice(0, -1) : u, a[r.key])) : c !== void 0 ? (typeof a[c] != typeof r.default && (a[c] = j(r, !0)), l(u, a[c])) : (typeof a[r.key] != typeof r.default && (a[r.key] = j(r, !0)), l(u, a[r.key]));
|
|
1281
|
+
}, H = (u, r, a, i, c) => r.ui !== "strInput" ? (console.assert(!1), y("div", "renderUiStrInput prop ui must be strInput")) : y(Fi, {
|
|
1282
|
+
modelValue: r.static ? r.value : ie(u, r, a, i, c),
|
|
1283
|
+
"onUpdate:modelValue": (g) => {
|
|
1284
|
+
r.static || le(u, r, a, g, i, c);
|
|
1285
|
+
},
|
|
1286
|
+
hasDelete: !i && c !== void 0,
|
|
1287
|
+
onDelete: () => {
|
|
1288
|
+
i || c === void 0 || (a.splice(c, 1), l(u, a));
|
|
1289
|
+
},
|
|
1290
|
+
readonly: r.static || r.readonly
|
|
1291
|
+
}), he = (u, r, a, i, c) => r.ui !== "numInput" ? (console.assert(!1), y("div", "renderUiNumInput prop ui must be numInput")) : y(Li, {
|
|
1292
|
+
modelValue: ie(u, r, a, i, c),
|
|
1293
|
+
"onUpdate:modelValue": (g) => {
|
|
1294
|
+
le(u, r, a, g, i, c);
|
|
1295
|
+
},
|
|
1296
|
+
hasDelete: !i && c !== void 0,
|
|
1297
|
+
onDelete: () => {
|
|
1298
|
+
i || c === void 0 || (a.splice(c, 1), l(u, a));
|
|
1299
|
+
},
|
|
1300
|
+
readonly: r.readonly
|
|
1301
|
+
}), ae = (u, r, a, i, c) => r.ui !== "switch" ? (console.assert(!1), y("div", "renderUiSwitch prop ui must be switch")) : y(Bi, {
|
|
1302
|
+
modelValue: ie(u, r, a, i, c),
|
|
1303
|
+
"onUpdate:modelValue": (g) => {
|
|
1304
|
+
le(u, r, a, g, i, c);
|
|
1305
|
+
},
|
|
1306
|
+
hasDelete: !i && c !== void 0,
|
|
1307
|
+
onDelete: () => {
|
|
1308
|
+
i || c === void 0 || (a.splice(c, 1), l(u, a));
|
|
1309
|
+
},
|
|
1310
|
+
readonly: r.readonly
|
|
1311
|
+
}), oe = (u, r, a, i, c) => r.ui !== "select" ? (console.assert(!1), y("div", "renderUiSelect prop ui must be select")) : y(Ui, {
|
|
1312
|
+
modelValue: ie(u, r, a, i, c),
|
|
1313
|
+
"onUpdate:modelValue": (g) => {
|
|
1314
|
+
le(u, r, a, g, i, c);
|
|
1315
|
+
},
|
|
1316
|
+
hasDelete: !i && c !== void 0,
|
|
1317
|
+
onDelete: () => {
|
|
1318
|
+
i || c === void 0 || (a.splice(c, 1), l(u, a));
|
|
1319
|
+
},
|
|
1320
|
+
items: (() => {
|
|
1321
|
+
const g = [];
|
|
1322
|
+
return r.items.forEach(({ title: D, value: b }) => {
|
|
1323
|
+
g.push({
|
|
1324
|
+
title: n(D),
|
|
1325
|
+
value: b
|
|
1326
|
+
});
|
|
1327
|
+
}), g;
|
|
1328
|
+
})(),
|
|
1329
|
+
readonly: r.readonly
|
|
1330
|
+
}), rn = (u, r, a, i, c) => r.ui !== "colorPicker" ? (console.assert(!1), y("div", "renderUiColorPicker prop ui must be colorPicker")) : y(Pi, {
|
|
1331
|
+
modelValue: ie(u, r, a, i, c),
|
|
1332
|
+
"onUpdate:modelValue": (g) => {
|
|
1333
|
+
le(u, r, a, g, i, c);
|
|
1334
|
+
},
|
|
1335
|
+
hasDelete: !i && c !== void 0,
|
|
1336
|
+
onDelete: () => {
|
|
1337
|
+
i || c === void 0 || (a.splice(c, 1), l(u, a));
|
|
1338
|
+
},
|
|
1339
|
+
readonly: r.readonly
|
|
1340
|
+
}), an = (u, r, a, i, c) => r.ui !== "multiTypes" ? (console.assert(!1), y("div", "renderUiMultiTypes prop ui must be multiTypes")) : y(Di, {
|
|
1341
|
+
modelValue: ie(u, r, a, i, c),
|
|
1342
|
+
"onUpdate:modelValue": (g) => {
|
|
1343
|
+
le(u, r, a, g, i, c);
|
|
1344
|
+
},
|
|
1345
|
+
hasDelete: !i && c !== void 0,
|
|
1346
|
+
onDelete: () => {
|
|
1347
|
+
i || c === void 0 || (a.splice(c, 1), l(u, a));
|
|
1348
|
+
},
|
|
1349
|
+
types: r.types
|
|
1350
|
+
}), on = (u, r, a, i, c) => r.ui !== "compSelect" ? (console.assert(!1), y("div", "renderUiCompSelect prop ui must be compSelect")) : (console.log(u, r, a, i, c), y(Vi, {})), ie = (u, r, a, i, c) => i ? (typeof a[r.key] != typeof r.default && (a[r.key] = j(r, !0), l(c !== void 0 ? u.slice(0, -1) : u, a[r.key])), a[r.key]) : c !== void 0 ? (typeof a[c] != typeof r.default && (a[c] = j(r, !0), l(u, a[c])), a[c]) : (typeof a[r.key] != typeof r.default && (a[r.key] = j(r, !0), l(u, a[r.key])), a[r.key]), le = (u, r, a, i, c, g) => {
|
|
1351
|
+
if (typeof i != typeof r.default) {
|
|
1352
|
+
console.assert(!1);
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1355
|
+
if (c) {
|
|
1356
|
+
if (i === a[r.key])
|
|
1357
|
+
return;
|
|
1358
|
+
a[r.key] = i, l(g !== void 0 ? u.slice(0, -1) : u, a[r.key]);
|
|
1359
|
+
} else if (g !== void 0) {
|
|
1360
|
+
if (i === a[g])
|
|
1361
|
+
return;
|
|
1362
|
+
a[g] = i, l(u, a[g]);
|
|
1363
|
+
} else {
|
|
1364
|
+
if (i === a[r.key])
|
|
1365
|
+
return;
|
|
1366
|
+
a[r.key] = i, l(u, a[r.key]);
|
|
1367
|
+
}
|
|
1368
|
+
}, et = (u, r, a, i) => (u = At(u), u.push(r.key), r.ui ? r.array ? un(u, r, a, i) : xe(u, r, a) : r.array ? ln(u, r, a, i) : sn(u, r, a, i)), ln = (u, r, a, i) => {
|
|
1369
|
+
if (r.ui)
|
|
1370
|
+
return console.assert(!1), y("div", "renderBranchArray prop ui must be invalid");
|
|
1371
|
+
if (!r.array)
|
|
1372
|
+
return console.assert(!1), y("div", "renderBranchArray prop array must be valid");
|
|
1373
|
+
a[r.key] instanceof Array || (a[r.key] = j(r), l(u, a[r.key]));
|
|
1374
|
+
let c = n(r.name);
|
|
1375
|
+
T(u) && (c += " *");
|
|
1376
|
+
const g = y($e, {
|
|
1377
|
+
title: c,
|
|
1378
|
+
collapse: i.collapse,
|
|
1379
|
+
hasCreate: !0,
|
|
1380
|
+
onCollapse: (b) => {
|
|
1381
|
+
i.collapse = b;
|
|
1775
1382
|
},
|
|
1776
1383
|
onCreate: () => {
|
|
1777
|
-
|
|
1384
|
+
a[r.key].push({}), l(u, a[r.key]);
|
|
1778
1385
|
}
|
|
1779
|
-
}),
|
|
1386
|
+
}), D = y(
|
|
1780
1387
|
"div",
|
|
1781
1388
|
{
|
|
1782
1389
|
style: {
|
|
1783
|
-
paddingLeft:
|
|
1390
|
+
paddingLeft: d.value
|
|
1784
1391
|
}
|
|
1785
1392
|
},
|
|
1786
1393
|
(() => {
|
|
1787
|
-
|
|
1788
|
-
for (let
|
|
1789
|
-
|
|
1790
|
-
|
|
1394
|
+
const b = [];
|
|
1395
|
+
for (let O = 0; O < a[r.key].length; O++) {
|
|
1396
|
+
if (!_(i.children)) {
|
|
1397
|
+
console.assert(!1);
|
|
1398
|
+
break;
|
|
1399
|
+
}
|
|
1400
|
+
i.children[O] || i.children.push({
|
|
1401
|
+
collapse: !0,
|
|
1402
|
+
children: {}
|
|
1403
|
+
});
|
|
1404
|
+
const fe = y($e, {
|
|
1405
|
+
title: n("x-prop-tree.entry"),
|
|
1406
|
+
collapse: i.children[O].collapse,
|
|
1407
|
+
hasDelete: !0,
|
|
1408
|
+
index: O,
|
|
1409
|
+
onCollapse: (W) => {
|
|
1410
|
+
if (!(i.children instanceof Array)) {
|
|
1411
|
+
console.assert(
|
|
1412
|
+
!1,
|
|
1413
|
+
"renderBranchArray dir children must be Array"
|
|
1414
|
+
);
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
i.children[O].collapse = W;
|
|
1418
|
+
},
|
|
1419
|
+
onDelete: (W) => {
|
|
1420
|
+
if (!(i.children instanceof Array)) {
|
|
1421
|
+
console.assert(
|
|
1422
|
+
!1,
|
|
1423
|
+
"renderBranchArray dir children must be Array"
|
|
1424
|
+
);
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
i.children.splice(W, 1), a[r.key].splice(W, 1), l(u, a[r.key]);
|
|
1428
|
+
}
|
|
1791
1429
|
});
|
|
1792
|
-
|
|
1430
|
+
b.push(fe);
|
|
1431
|
+
const Le = y(
|
|
1432
|
+
"div",
|
|
1433
|
+
{
|
|
1434
|
+
style: {
|
|
1435
|
+
paddingLeft: d.value
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
(() => {
|
|
1439
|
+
const W = [];
|
|
1440
|
+
return r.children.forEach((tt) => {
|
|
1441
|
+
if (!tt.ui)
|
|
1442
|
+
return;
|
|
1443
|
+
const fn = xe(
|
|
1444
|
+
u,
|
|
1445
|
+
tt,
|
|
1446
|
+
a[r.key][O],
|
|
1447
|
+
!0,
|
|
1448
|
+
O
|
|
1449
|
+
);
|
|
1450
|
+
W.push(fn);
|
|
1451
|
+
}), W;
|
|
1452
|
+
})()
|
|
1453
|
+
);
|
|
1454
|
+
i.children[O].collapse || b.push(Le);
|
|
1455
|
+
}
|
|
1456
|
+
return b;
|
|
1793
1457
|
})()
|
|
1794
1458
|
);
|
|
1795
|
-
return
|
|
1459
|
+
return y(
|
|
1796
1460
|
"div",
|
|
1797
1461
|
{
|
|
1798
1462
|
style: {
|
|
1799
|
-
background: i.value,
|
|
1800
1463
|
marginBottom: "1px"
|
|
1801
1464
|
}
|
|
1802
1465
|
},
|
|
1803
1466
|
(() => {
|
|
1804
|
-
const
|
|
1805
|
-
return
|
|
1467
|
+
const b = [];
|
|
1468
|
+
return b.push(g), i.collapse || b.push(D), b;
|
|
1806
1469
|
})()
|
|
1807
1470
|
);
|
|
1808
|
-
},
|
|
1809
|
-
if (
|
|
1810
|
-
return console.assert(!1),
|
|
1811
|
-
if (
|
|
1812
|
-
return console.assert(!1),
|
|
1813
|
-
let
|
|
1814
|
-
|
|
1815
|
-
const
|
|
1816
|
-
title:
|
|
1817
|
-
collapse:
|
|
1818
|
-
onCollapse: (
|
|
1819
|
-
|
|
1471
|
+
}, sn = (u, r, a, i) => {
|
|
1472
|
+
if (r.ui)
|
|
1473
|
+
return console.assert(!1), y("div", "renderBranchScalar prop ui must be invalid");
|
|
1474
|
+
if (r.array)
|
|
1475
|
+
return console.assert(!1), y("div", "renderBranchScalar prop array must be invalid");
|
|
1476
|
+
let c = n(r.name);
|
|
1477
|
+
T(u) && (c += " *");
|
|
1478
|
+
const g = y($e, {
|
|
1479
|
+
title: c,
|
|
1480
|
+
collapse: i.collapse,
|
|
1481
|
+
onCollapse: (b) => {
|
|
1482
|
+
i.collapse = b;
|
|
1820
1483
|
}
|
|
1821
|
-
}),
|
|
1484
|
+
}), D = y(
|
|
1822
1485
|
"div",
|
|
1823
1486
|
{
|
|
1824
1487
|
style: {
|
|
1825
|
-
|
|
1826
|
-
paddingLeft: f.value
|
|
1488
|
+
paddingLeft: d.value
|
|
1827
1489
|
}
|
|
1828
1490
|
},
|
|
1829
1491
|
(() => {
|
|
1830
|
-
const
|
|
1831
|
-
return
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1492
|
+
const b = [];
|
|
1493
|
+
return r.children.forEach((O) => {
|
|
1494
|
+
if (!v(i.children)) {
|
|
1495
|
+
console.assert(!1);
|
|
1496
|
+
return;
|
|
1497
|
+
}
|
|
1498
|
+
if (!i.children[O.key]) {
|
|
1499
|
+
const Le = !O.ui && O.array;
|
|
1500
|
+
i.children[O.key] = {
|
|
1501
|
+
collapse: !0,
|
|
1502
|
+
children: Le ? [] : {}
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1505
|
+
const fe = et(
|
|
1506
|
+
u,
|
|
1507
|
+
O,
|
|
1508
|
+
(typeof a[r.key] != "object" && (a[r.key] = {}, l(u, a[r.key])), a[r.key]),
|
|
1509
|
+
i.children[O.key]
|
|
1837
1510
|
);
|
|
1838
|
-
|
|
1839
|
-
}),
|
|
1511
|
+
b.push(fe);
|
|
1512
|
+
}), b;
|
|
1840
1513
|
})()
|
|
1841
1514
|
);
|
|
1842
|
-
return
|
|
1515
|
+
return y(
|
|
1843
1516
|
"div",
|
|
1844
1517
|
{
|
|
1845
1518
|
style: {
|
|
@@ -1847,154 +1520,97 @@ const Wo = /* @__PURE__ */ L({
|
|
|
1847
1520
|
}
|
|
1848
1521
|
},
|
|
1849
1522
|
(() => {
|
|
1850
|
-
const
|
|
1851
|
-
return
|
|
1523
|
+
const b = [];
|
|
1524
|
+
return b.push(g), i.collapse || b.push(D), b;
|
|
1852
1525
|
})()
|
|
1853
1526
|
);
|
|
1854
|
-
},
|
|
1855
|
-
if (!
|
|
1856
|
-
return console.assert(!1),
|
|
1857
|
-
if (!
|
|
1858
|
-
return console.assert(!1),
|
|
1859
|
-
|
|
1860
|
-
let
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
style: {
|
|
1869
|
-
height: l.value
|
|
1870
|
-
}
|
|
1871
|
-
},
|
|
1872
|
-
[
|
|
1873
|
-
_(At, {
|
|
1874
|
-
modelValue: u[s.key][x],
|
|
1875
|
-
"onUpdate:modelValue": (Be) => {
|
|
1876
|
-
u[s.key][x] = Be, d(g, u[s.key]);
|
|
1877
|
-
},
|
|
1878
|
-
hasDelete: !0,
|
|
1879
|
-
onDelete: () => {
|
|
1880
|
-
u[s.key].splice(x, 1), d(g, u[s.key]);
|
|
1881
|
-
}
|
|
1882
|
-
})
|
|
1883
|
-
]
|
|
1884
|
-
);
|
|
1885
|
-
S.push(C);
|
|
1886
|
-
}
|
|
1887
|
-
const p = _(
|
|
1888
|
-
"div",
|
|
1889
|
-
{
|
|
1890
|
-
class: "d-flex align-center justify-center",
|
|
1891
|
-
style: {
|
|
1892
|
-
backgroundColor: "transparent",
|
|
1893
|
-
width: "100%",
|
|
1894
|
-
height: "40px",
|
|
1895
|
-
marginTop: "8px",
|
|
1896
|
-
marginBottom: "8px",
|
|
1897
|
-
borderRadius: "5px",
|
|
1898
|
-
border: "thin dashed #bdbdbd"
|
|
1899
|
-
},
|
|
1900
|
-
onClick: () => {
|
|
1901
|
-
u[s.key].push(""), d(g, u[s.key]);
|
|
1902
|
-
}
|
|
1903
|
-
},
|
|
1904
|
-
[_(Ir, { icon: sn })]
|
|
1905
|
-
);
|
|
1906
|
-
return S.push(p), S;
|
|
1907
|
-
} : console.assert(!1, "renderLeafArray not implemented"), G(g, s, m());
|
|
1908
|
-
}, _e = (g, s, u) => {
|
|
1909
|
-
if (!s.ui)
|
|
1910
|
-
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
1911
|
-
if (s.array)
|
|
1912
|
-
return console.assert(!1), _("div", "renderLeafScalar prop array must be invalid");
|
|
1913
|
-
let m = () => [];
|
|
1914
|
-
return s.ui === "dummy" ? u[s.key] === void 0 && (u[s.key] = k(s), d(g, u[s.key])) : s.ui === "strInput" ? m = () => [_(At, {
|
|
1915
|
-
modelValue: s.static ? s.value : (typeof u[s.key] != "string" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1916
|
-
"onUpdate:modelValue": (p) => {
|
|
1917
|
-
s.static || p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1918
|
-
},
|
|
1919
|
-
readonly: s.static || s.readonly
|
|
1920
|
-
})] : s.ui === "numInput" ? m = () => [_(jr, {
|
|
1921
|
-
modelValue: (typeof u[s.key] != "number" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1922
|
-
"onUpdate:modelValue": (p) => {
|
|
1923
|
-
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1924
|
-
},
|
|
1925
|
-
readonly: s.readonly
|
|
1926
|
-
})] : s.ui === "switch" ? m = () => [_(Rr, {
|
|
1927
|
-
modelValue: (typeof u[s.key] != "boolean" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1928
|
-
"onUpdate:modelValue": (p) => {
|
|
1929
|
-
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1527
|
+
}, un = (u, r, a, i) => {
|
|
1528
|
+
if (!r.ui)
|
|
1529
|
+
return console.assert(!1), y("div", "renderLeafArray prop ui must be valid");
|
|
1530
|
+
if (!r.array)
|
|
1531
|
+
return console.assert(!1), y("div", "renderLeafArray prop array must be valid");
|
|
1532
|
+
a[r.key] instanceof Array || (a[r.key] = j(r), l(u, a[r.key]));
|
|
1533
|
+
let c = n(r.name);
|
|
1534
|
+
T(u) && (c += " *");
|
|
1535
|
+
const g = y($e, {
|
|
1536
|
+
title: c,
|
|
1537
|
+
collapse: i.collapse,
|
|
1538
|
+
hasCreate: !0,
|
|
1539
|
+
onCollapse: (b) => {
|
|
1540
|
+
i.collapse = b;
|
|
1930
1541
|
},
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
p.push({
|
|
1941
|
-
title: n(x),
|
|
1942
|
-
value: C
|
|
1943
|
-
});
|
|
1944
|
-
}), p;
|
|
1945
|
-
})(),
|
|
1946
|
-
readonly: s.readonly
|
|
1947
|
-
})] : s.ui === "colorPicker" ? m = () => [_(Lr, {
|
|
1948
|
-
modelValue: (typeof u[s.key] != "string" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1949
|
-
"onUpdate:modelValue": (p) => {
|
|
1950
|
-
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1951
|
-
},
|
|
1952
|
-
readonly: s.readonly
|
|
1953
|
-
})] : s.ui === "multiTypes" ? m = () => [_(Dr, {
|
|
1954
|
-
modelValue: (typeof u[s.key] != "string" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1955
|
-
"onUpdate:modelValue": (p) => {
|
|
1956
|
-
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1542
|
+
onCreate: () => {
|
|
1543
|
+
a[r.key].push(j(r, !0)), l(u, a[r.key]);
|
|
1544
|
+
}
|
|
1545
|
+
}), D = y(
|
|
1546
|
+
"div",
|
|
1547
|
+
{
|
|
1548
|
+
style: {
|
|
1549
|
+
paddingLeft: d.value
|
|
1550
|
+
}
|
|
1957
1551
|
},
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1552
|
+
(() => {
|
|
1553
|
+
const b = [];
|
|
1554
|
+
for (let O = 0; O < a[r.key].length; O++) {
|
|
1555
|
+
const fe = xe(u, r, a[r.key], !1, O);
|
|
1556
|
+
b.push(fe);
|
|
1557
|
+
}
|
|
1558
|
+
return b;
|
|
1559
|
+
})()
|
|
1560
|
+
);
|
|
1561
|
+
return y(
|
|
1562
|
+
"div",
|
|
1964
1563
|
{
|
|
1965
|
-
|
|
1564
|
+
style: {
|
|
1565
|
+
marginBottom: "1px"
|
|
1566
|
+
}
|
|
1966
1567
|
},
|
|
1967
|
-
() =>
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1568
|
+
(() => {
|
|
1569
|
+
const b = [];
|
|
1570
|
+
return b.push(g), i.collapse || b.push(D), b;
|
|
1571
|
+
})()
|
|
1971
1572
|
);
|
|
1972
|
-
},
|
|
1573
|
+
}, xe = (u, r, a, i, c) => {
|
|
1574
|
+
if (!r.ui)
|
|
1575
|
+
return console.assert(!1), y("div", "renderLeafScalar prop ui must be valid");
|
|
1576
|
+
let g;
|
|
1577
|
+
return r.ui === "dummy" ? g = E(u, r, a, i, c) : r.ui === "strInput" ? g = H(u, r, a, i, c) : r.ui === "numInput" ? g = he(u, r, a, i, c) : r.ui === "switch" ? g = ae(u, r, a, i, c) : r.ui === "select" ? g = oe(u, r, a, i, c) : r.ui === "colorPicker" ? g = rn(u, r, a, i, c) : r.ui === "multiTypes" ? g = an(u, r, a, i, c) : r.ui === "compSelect" ? g = on(u, r, a, i, c) : console.assert(!1, "renderLeafScalar not implemented"), V(u, r, g ? [g] : [], c);
|
|
1578
|
+
}, cn = () => y(
|
|
1973
1579
|
"div",
|
|
1974
1580
|
{
|
|
1975
|
-
class: "text-body-2"
|
|
1581
|
+
class: "text-body-2",
|
|
1582
|
+
style: {
|
|
1583
|
+
background: o.value
|
|
1584
|
+
}
|
|
1976
1585
|
},
|
|
1977
1586
|
(() => {
|
|
1978
|
-
const
|
|
1979
|
-
if (
|
|
1980
|
-
|
|
1981
|
-
const
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1587
|
+
const u = [];
|
|
1588
|
+
if (f.unique && f.config && f.object) {
|
|
1589
|
+
h[f.unique] || (h[f.unique] = {});
|
|
1590
|
+
const r = h[f.unique];
|
|
1591
|
+
f.config.forEach((a) => {
|
|
1592
|
+
if (!r[a.key]) {
|
|
1593
|
+
const c = !a.ui && a.array;
|
|
1594
|
+
r[a.key] = {
|
|
1595
|
+
collapse: !0,
|
|
1596
|
+
children: c ? [] : {}
|
|
1597
|
+
};
|
|
1598
|
+
}
|
|
1599
|
+
const i = et([], a, f.object, r[a.key]);
|
|
1600
|
+
u.push(i);
|
|
1985
1601
|
});
|
|
1986
1602
|
}
|
|
1987
|
-
return
|
|
1603
|
+
return u;
|
|
1988
1604
|
})()
|
|
1989
1605
|
);
|
|
1990
|
-
return (
|
|
1991
|
-
|
|
1992
|
-
|
|
1606
|
+
return (u, r) => (P(), X(Vt, null, [
|
|
1607
|
+
x(cn),
|
|
1608
|
+
x(Ai)
|
|
1993
1609
|
], 64));
|
|
1994
1610
|
}
|
|
1995
|
-
}),
|
|
1996
|
-
e.component("XPropTree",
|
|
1997
|
-
},
|
|
1611
|
+
}), Ii = (e) => {
|
|
1612
|
+
e.component("XPropTree", Ri);
|
|
1613
|
+
}, qi = { install: Ii };
|
|
1998
1614
|
export {
|
|
1999
|
-
|
|
1615
|
+
qi as default
|
|
2000
1616
|
};
|