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