@gx-design-vue/pro-utils 0.2.0-beta.1 → 0.2.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -10
- package/dist/pro-utils.mjs +386 -526
- package/dist/pro-utils.umd.js +1 -1
- package/package.json +3 -12
- package/dist/components/FieldLabel/index.d.ts +0 -77
- package/dist/components/FieldLabel/index.less +0 -107
- package/dist/components/LabelIconTip/index.d.ts +0 -20
- package/dist/components/LabelIconTip/index.less +0 -38
- package/dist/design/ant-design-theme.less +0 -4
- package/dist/design/ant-design-vue.less +0 -1
- package/dist/design/config.less +0 -2
- package/dist/proUtils.less +0 -4
- package/dist/style/index.less +0 -2
- package/dist/style.css +0 -1
- package/dist/style.less +0 -3
package/dist/pro-utils.mjs
CHANGED
|
@@ -1,162 +1,135 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { cloneDeep as X } from "lodash-es";
|
|
5
|
-
import { Tooltip as V } from "ant-design-vue";
|
|
6
|
-
const x = typeof window > "u";
|
|
1
|
+
import { isVNode as T } from "vue";
|
|
2
|
+
import { cloneDeep as L } from "lodash-es";
|
|
3
|
+
const w = typeof window > "u";
|
|
7
4
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
8
5
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
9
|
-
const
|
|
6
|
+
const D = (e) => {
|
|
10
7
|
const t = /* @__PURE__ */ Object.create(null);
|
|
11
|
-
return (
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
8
|
+
return (r) => t[r] || (t[r] = e(r));
|
|
9
|
+
}, I = /-(\w)/g, U = D((e) => e.replace(I, (t, r) => r ? r.toUpperCase() : "")), y = function(e, t) {
|
|
10
|
+
var r;
|
|
11
|
+
if (w || !e || !t)
|
|
15
12
|
return "";
|
|
16
|
-
t =
|
|
13
|
+
t = U(t), t === "float" && (t = "cssFloat");
|
|
17
14
|
try {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
21
|
-
const
|
|
22
|
-
return
|
|
15
|
+
const n = e.style[t];
|
|
16
|
+
if (n)
|
|
17
|
+
return n;
|
|
18
|
+
const i = (r = document == null ? void 0 : document.defaultView) == null ? void 0 : r.getComputedStyle(e, "");
|
|
19
|
+
return i ? i[t] : "";
|
|
23
20
|
} catch {
|
|
24
21
|
return e.style[t];
|
|
25
22
|
}
|
|
26
|
-
},
|
|
27
|
-
if (
|
|
23
|
+
}, B = (e, t) => w ? void 0 : (t == null ? y(e, "overflow") : t ? y(e, "overflow-y") : y(e, "overflow-x")).match(/(scroll|auto|overlay)/), G = (e, t) => {
|
|
24
|
+
if (w)
|
|
28
25
|
return;
|
|
29
|
-
let
|
|
30
|
-
for (;
|
|
31
|
-
if ([window, document, document.documentElement].includes(
|
|
26
|
+
let r = e;
|
|
27
|
+
for (; r; ) {
|
|
28
|
+
if ([window, document, document.documentElement].includes(r))
|
|
32
29
|
return window;
|
|
33
|
-
if (
|
|
34
|
-
return
|
|
35
|
-
|
|
30
|
+
if (B(r, t))
|
|
31
|
+
return r;
|
|
32
|
+
r = r.parentNode;
|
|
36
33
|
}
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
if (
|
|
34
|
+
return r;
|
|
35
|
+
}, Q = (e, t) => {
|
|
36
|
+
if (w || !e || !t)
|
|
40
37
|
return !1;
|
|
41
|
-
const
|
|
42
|
-
let
|
|
43
|
-
return [window, document, document.documentElement, null, void 0].includes(t) ?
|
|
38
|
+
const r = e.getBoundingClientRect();
|
|
39
|
+
let n;
|
|
40
|
+
return [window, document, document.documentElement, null, void 0].includes(t) ? n = {
|
|
44
41
|
top: 0,
|
|
45
42
|
right: window.innerWidth,
|
|
46
43
|
bottom: window.innerHeight,
|
|
47
44
|
left: 0
|
|
48
|
-
} :
|
|
49
|
-
},
|
|
50
|
-
function
|
|
51
|
-
return
|
|
45
|
+
} : n = t.getBoundingClientRect(), r.top < n.bottom && r.bottom > n.top && r.right > n.left && r.left < n.right;
|
|
46
|
+
}, C = Object.prototype.toString;
|
|
47
|
+
function b(e, t) {
|
|
48
|
+
return C.call(e) === `[object ${t}]`;
|
|
52
49
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
50
|
+
function R(e) {
|
|
51
|
+
return b(e, "Boolean");
|
|
55
52
|
}
|
|
56
|
-
function
|
|
53
|
+
function Z(e) {
|
|
57
54
|
return typeof e == "number";
|
|
58
55
|
}
|
|
59
|
-
function
|
|
56
|
+
function E(e) {
|
|
60
57
|
return typeof Array.isArray > "u" ? Object.prototype.toString.call(e) === "[object Array]" : Array.isArray(e);
|
|
61
58
|
}
|
|
62
|
-
function
|
|
63
|
-
return e !== null &&
|
|
59
|
+
function g(e) {
|
|
60
|
+
return e !== null && b(e, "Object");
|
|
64
61
|
}
|
|
65
|
-
function
|
|
62
|
+
function P(e) {
|
|
66
63
|
return typeof e == "string" || e instanceof String;
|
|
67
64
|
}
|
|
68
|
-
function
|
|
65
|
+
function K(e) {
|
|
69
66
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
70
67
|
}
|
|
71
|
-
function
|
|
68
|
+
function M(...e) {
|
|
72
69
|
const t = [];
|
|
73
|
-
for (let
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
if (
|
|
77
|
-
t.push(
|
|
78
|
-
else if (
|
|
79
|
-
for (let
|
|
80
|
-
const o =
|
|
70
|
+
for (let r = 0; r < e.length; r++) {
|
|
71
|
+
const n = e[r];
|
|
72
|
+
if (n) {
|
|
73
|
+
if (P(n))
|
|
74
|
+
t.push(n);
|
|
75
|
+
else if (E(n))
|
|
76
|
+
for (let i = 0; i < n.length; i++) {
|
|
77
|
+
const o = M(n[i]);
|
|
81
78
|
o && t.push(o);
|
|
82
79
|
}
|
|
83
|
-
else if (
|
|
84
|
-
for (const
|
|
85
|
-
i
|
|
80
|
+
else if (g(n))
|
|
81
|
+
for (const i in n)
|
|
82
|
+
n[i] && t.push(i);
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
|
-
return t.filter((
|
|
89
|
-
}
|
|
90
|
-
let
|
|
91
|
-
const
|
|
92
|
-
function
|
|
93
|
-
const
|
|
94
|
-
let
|
|
95
|
-
function
|
|
96
|
-
|
|
85
|
+
return t.filter((r) => r).join(" ");
|
|
86
|
+
}
|
|
87
|
+
let N = 0;
|
|
88
|
+
const a = {};
|
|
89
|
+
function h(e, t = 1) {
|
|
90
|
+
const r = N++;
|
|
91
|
+
let n = t;
|
|
92
|
+
function i() {
|
|
93
|
+
n -= 1, n <= 0 ? (e(), delete a[r]) : a[r] = requestAnimationFrame(i);
|
|
97
94
|
}
|
|
98
|
-
return
|
|
95
|
+
return a[r] = requestAnimationFrame(i), r;
|
|
99
96
|
}
|
|
100
|
-
|
|
101
|
-
t !== void 0 && (cancelAnimationFrame(
|
|
97
|
+
h.cancel = function(t) {
|
|
98
|
+
t !== void 0 && (cancelAnimationFrame(a[t]), delete a[t]);
|
|
102
99
|
};
|
|
103
|
-
|
|
104
|
-
function
|
|
100
|
+
h.ids = a;
|
|
101
|
+
function S(e) {
|
|
105
102
|
return e != null && e === e.window;
|
|
106
103
|
}
|
|
107
|
-
function
|
|
108
|
-
var
|
|
104
|
+
function $(e, t) {
|
|
105
|
+
var i;
|
|
109
106
|
if (typeof window > "u")
|
|
110
107
|
return 0;
|
|
111
|
-
const
|
|
112
|
-
let
|
|
113
|
-
return
|
|
114
|
-
}
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
return e /=
|
|
118
|
-
}
|
|
119
|
-
function
|
|
120
|
-
const { getContainer:
|
|
121
|
-
const
|
|
122
|
-
|
|
108
|
+
const r = t ? "scrollTop" : "scrollLeft";
|
|
109
|
+
let n = 0;
|
|
110
|
+
return S(e) ? n = e[t ? "pageYOffset" : "pageXOffset"] : e instanceof Document ? n = e.documentElement[r] : e && (n = e[r]), e && !S(e) && typeof n != "number" && (n = (i = (e.ownerDocument || e).documentElement) == null ? void 0 : i[r]), n;
|
|
111
|
+
}
|
|
112
|
+
function V(e, t, r, n) {
|
|
113
|
+
const i = r - t;
|
|
114
|
+
return e /= n / 2, e < 1 ? i / 2 * e * e * e + t : i / 2 * ((e -= 2) * e * e + 2) + t;
|
|
115
|
+
}
|
|
116
|
+
function ee(e, t = {}) {
|
|
117
|
+
const { getContainer: r = () => window, callback: n, duration: i = 450 } = t, o = r(), c = $(o, !0), u = Date.now(), f = () => {
|
|
118
|
+
const s = Date.now() - u, l = V(s > i ? i : s, c, e, i);
|
|
119
|
+
S(o) ? o.scrollTo(window.pageXOffset, l) : o instanceof HTMLDocument || o.constructor.name === "HTMLDocument" ? o.documentElement.scrollTop = l : o.scrollTop = l, s < i ? h(f) : typeof n == "function" && n();
|
|
123
120
|
};
|
|
124
|
-
|
|
121
|
+
h(f);
|
|
125
122
|
}
|
|
126
|
-
function
|
|
123
|
+
function te(e) {
|
|
127
124
|
let t;
|
|
128
|
-
const
|
|
129
|
-
t = null, e(...
|
|
130
|
-
},
|
|
131
|
-
t == null && (t = requestAnimationFrame(
|
|
125
|
+
const r = (i) => () => {
|
|
126
|
+
t = null, e(...i);
|
|
127
|
+
}, n = (...i) => {
|
|
128
|
+
t == null && (t = requestAnimationFrame(r(i)));
|
|
132
129
|
};
|
|
133
|
-
return
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
func: void 0,
|
|
137
|
-
bool: void 0,
|
|
138
|
-
string: void 0,
|
|
139
|
-
number: void 0,
|
|
140
|
-
array: void 0,
|
|
141
|
-
object: void 0,
|
|
142
|
-
integer: void 0
|
|
143
|
-
});
|
|
144
|
-
B.extend([{
|
|
145
|
-
name: "looseBool",
|
|
146
|
-
getter: !0,
|
|
147
|
-
type: Boolean,
|
|
148
|
-
default: void 0
|
|
149
|
-
}, {
|
|
150
|
-
name: "style",
|
|
151
|
-
getter: !0,
|
|
152
|
-
type: [String, Object],
|
|
153
|
-
default: void 0
|
|
154
|
-
}, {
|
|
155
|
-
name: "VueNode",
|
|
156
|
-
getter: !0,
|
|
157
|
-
type: null
|
|
158
|
-
}]);
|
|
159
|
-
const b = B, p = {
|
|
130
|
+
return n.cancel = () => cancelAnimationFrame(t), n;
|
|
131
|
+
}
|
|
132
|
+
const p = {
|
|
160
133
|
videoAllowType: [
|
|
161
134
|
"mp4",
|
|
162
135
|
"webm",
|
|
@@ -184,519 +157,406 @@ const b = B, p = {
|
|
|
184
157
|
"m3u8"
|
|
185
158
|
],
|
|
186
159
|
audioType: ["mp3", "mpeg", "aac", "wav", "wma", "mp2", "flac", "midi", "ra", "ape", "aac", "cda"]
|
|
187
|
-
},
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
160
|
+
}, ne = (...e) => {
|
|
161
|
+
const t = {}, r = e.length;
|
|
162
|
+
let n, i = 0;
|
|
163
|
+
for (; i < r; i += 1)
|
|
164
|
+
for (n in e[i])
|
|
165
|
+
e[i].hasOwnProperty(n) && (typeof t[n] == "object" && typeof e[i][n] == "object" && t[n] !== void 0 && t[n] !== null && !Array.isArray(t[n]) && !Array.isArray(e[i][n]) ? t[n] = {
|
|
166
|
+
...t[n],
|
|
167
|
+
...e[i][n]
|
|
168
|
+
} : t[n] = e[i][n]);
|
|
169
|
+
return t;
|
|
170
|
+
};
|
|
171
|
+
function x(e, t, r, n) {
|
|
172
|
+
if (e === t)
|
|
173
|
+
return !0;
|
|
174
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
175
|
+
if (e.constructor !== t.constructor)
|
|
176
|
+
return !1;
|
|
177
|
+
let i, o, c;
|
|
178
|
+
if (Array.isArray(e)) {
|
|
179
|
+
if (i = e.length, i != t.length)
|
|
180
|
+
return !1;
|
|
181
|
+
for (o = i; o-- !== 0; )
|
|
182
|
+
if (!x(e[o], t[o], r, n))
|
|
183
|
+
return !1;
|
|
184
|
+
return !0;
|
|
185
|
+
}
|
|
186
|
+
if (e instanceof Map && t instanceof Map) {
|
|
187
|
+
if (e.size !== t.size)
|
|
188
|
+
return !1;
|
|
189
|
+
for (o of e.entries())
|
|
190
|
+
if (!t.has(o[0]))
|
|
191
|
+
return !1;
|
|
192
|
+
for (o of e.entries())
|
|
193
|
+
if (!x(o[1], t.get(o[0]), r, n))
|
|
194
|
+
return !1;
|
|
195
|
+
return !0;
|
|
196
|
+
}
|
|
197
|
+
if (e instanceof Set && t instanceof Set) {
|
|
198
|
+
if (e.size !== t.size)
|
|
199
|
+
return !1;
|
|
200
|
+
for (o of e.entries())
|
|
201
|
+
if (!t.has(o[0]))
|
|
202
|
+
return !1;
|
|
203
|
+
return !0;
|
|
204
|
+
}
|
|
205
|
+
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
206
|
+
if (i = e.length, i != t.length)
|
|
207
|
+
return !1;
|
|
208
|
+
for (o = i; o-- !== 0; )
|
|
209
|
+
if (e[o] !== t[o])
|
|
210
|
+
return !1;
|
|
211
|
+
return !0;
|
|
212
|
+
}
|
|
213
|
+
if (e.constructor === RegExp)
|
|
214
|
+
return e.source === t.source && e.flags === t.flags;
|
|
215
|
+
if (e.valueOf !== Object.prototype.valueOf && e.valueOf)
|
|
216
|
+
return e.valueOf() === t.valueOf();
|
|
217
|
+
if (e.toString !== Object.prototype.toString && e.toString)
|
|
218
|
+
return e.toString() === t.toString();
|
|
219
|
+
if (c = Object.keys(e), i = c.length, i !== Object.keys(t).length)
|
|
220
|
+
return !1;
|
|
221
|
+
for (o = i; o-- !== 0; )
|
|
222
|
+
if (!Object.prototype.hasOwnProperty.call(t, c[o]))
|
|
223
|
+
return !1;
|
|
224
|
+
for (o = i; o-- !== 0; ) {
|
|
225
|
+
const u = c[o];
|
|
226
|
+
if (!(r != null && r.includes(u)) && !(u === "_owner" && e.$$typeof) && !x(e[u], t[u], r, n))
|
|
227
|
+
return n && console.log(u), !1;
|
|
228
|
+
}
|
|
229
|
+
return !0;
|
|
230
|
+
}
|
|
231
|
+
return e !== e && t !== t;
|
|
232
|
+
}
|
|
233
|
+
const z = (
|
|
234
|
+
// @ts-ignore
|
|
235
|
+
typeof process < "u" && process.versions != null && process.versions.node != null
|
|
236
|
+
), re = () => process.env.NODE_ENV === "TEST" ? !0 : typeof window < "u" && typeof window.document < "u" && typeof window.matchMedia < "u" && !z, ie = (e) => {
|
|
237
|
+
if (e && e !== !0)
|
|
238
|
+
return e;
|
|
239
|
+
}, oe = (e) => {
|
|
240
|
+
const t = {};
|
|
241
|
+
if (Object.keys(e || {}).forEach((r) => {
|
|
242
|
+
e[r] !== void 0 && (t[r] = e[r]);
|
|
243
|
+
}), !(Object.keys(t).length < 1))
|
|
244
|
+
return t;
|
|
245
|
+
}, H = (e) => e.length === 1 && (String(e[0].type) === String(Symbol("Comment")) || String(e[0].type) === String(Symbol("Fragment")) || String(e[0].type) === String(Symbol()));
|
|
246
|
+
function ce(e) {
|
|
247
|
+
return e && E(e) && H(e) ? T(e[0].children) ? e[0].children : e : [];
|
|
248
|
+
}
|
|
249
|
+
function ue(e, t, r = "default") {
|
|
250
|
+
return t[r] === !1 ? !1 : R(t[r]) && t[r] ? (e == null ? void 0 : e[r]) || t[r] : t[r] || e[r];
|
|
251
|
+
}
|
|
252
|
+
function k(e, t, r = "default") {
|
|
253
|
+
var n, i;
|
|
254
|
+
return t[r] === !1 ? !1 : R(t[r]) && t[r] ? ((n = e == null ? void 0 : e[r]) == null ? void 0 : n.call(e)) || t[r] : t[r] || ((i = e[r]) == null ? void 0 : i.call(e));
|
|
255
|
+
}
|
|
256
|
+
function fe(e, t, r) {
|
|
257
|
+
const n = {};
|
|
258
|
+
return e.forEach((i) => {
|
|
259
|
+
n[i] = k(t, r, i);
|
|
260
|
+
}), n;
|
|
261
|
+
}
|
|
262
|
+
const se = ({ suffixCls: e, customizePrefixCls: t, isPor: r, className: n }) => {
|
|
263
|
+
const i = n || (r ? "gx-pro" : "gx");
|
|
264
|
+
return t || (e ? `${i}-${e}` : i);
|
|
265
|
+
}, le = (e, t) => e ? Array.isArray(e) ? e.join("-") : e.toString() : `${t}`;
|
|
266
|
+
function ae(e, { align: t, showIndex: r }) {
|
|
267
|
+
const n = L(e);
|
|
268
|
+
if (r && e.length && e.every((i) => i.dataIndex !== "sortIndex")) {
|
|
269
|
+
const i = e[0];
|
|
270
|
+
n.unshift({
|
|
196
271
|
title: "序号",
|
|
197
272
|
align: t,
|
|
198
|
-
fixed:
|
|
273
|
+
fixed: i.fixed,
|
|
199
274
|
width: 60,
|
|
200
|
-
uuid:
|
|
275
|
+
uuid: q().uuid(15),
|
|
201
276
|
dataIndex: "sortIndex",
|
|
202
277
|
key: "sortIndex"
|
|
203
278
|
});
|
|
204
279
|
} else
|
|
205
|
-
|
|
206
|
-
return
|
|
280
|
+
n.filter((i) => i.dataIndex !== "sortIndex");
|
|
281
|
+
return n;
|
|
207
282
|
}
|
|
208
|
-
function
|
|
283
|
+
function de(e, ...t) {
|
|
209
284
|
return typeof e == "function" ? e(...t) : e;
|
|
210
285
|
}
|
|
211
|
-
function
|
|
286
|
+
function j(e) {
|
|
212
287
|
return JSON.parse(JSON.stringify(e));
|
|
213
288
|
}
|
|
214
|
-
function
|
|
215
|
-
if (
|
|
216
|
-
const { pageSize:
|
|
217
|
-
let { current:
|
|
218
|
-
return
|
|
289
|
+
function me(e, t) {
|
|
290
|
+
if (g(e)) {
|
|
291
|
+
const { pageSize: r = 10, total: n = 0 } = e;
|
|
292
|
+
let { current: i = 1 } = e;
|
|
293
|
+
return n - t <= r * (i - 1) && (i = i - 1), i === 0 ? 1 : i;
|
|
219
294
|
}
|
|
220
295
|
return 1;
|
|
221
296
|
}
|
|
222
|
-
function
|
|
223
|
-
function i
|
|
224
|
-
return o.map((
|
|
225
|
-
const
|
|
226
|
-
return
|
|
297
|
+
function pe(e = [], t, r = "children") {
|
|
298
|
+
function n(i, o) {
|
|
299
|
+
return o.map((c, u) => {
|
|
300
|
+
const f = `${i}-${u + 1}`;
|
|
301
|
+
return c[r] && (c[r] = n(f, c[r])), c.sortIndex = f, c;
|
|
227
302
|
});
|
|
228
303
|
}
|
|
229
|
-
return
|
|
230
|
-
let
|
|
231
|
-
const
|
|
232
|
-
return
|
|
304
|
+
return j(e).map((i, o) => {
|
|
305
|
+
let c = o;
|
|
306
|
+
const u = g(t) && t.current || 1, f = g(t) && t.pageSize || 10;
|
|
307
|
+
return c = u ? (u - 1) * f + (o + 1) : o + 1, i[r] && (i[r] = n(`${c}`, i[r])), i.sortIndex = c, i;
|
|
233
308
|
});
|
|
234
309
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
return
|
|
310
|
+
function ge(e, t, r, n) {
|
|
311
|
+
const i = e[r], o = t[r];
|
|
312
|
+
let c = 0;
|
|
313
|
+
return i < o ? c = n === 0 ? -1 : 0 : i > o && (c = n === 0 ? 0 : -1), c;
|
|
239
314
|
}
|
|
240
|
-
function
|
|
241
|
-
let t =
|
|
242
|
-
const
|
|
243
|
-
return t = Array.from(
|
|
315
|
+
function he(e) {
|
|
316
|
+
let t = j(e);
|
|
317
|
+
const r = new Set(t);
|
|
318
|
+
return t = Array.from(r), t;
|
|
244
319
|
}
|
|
245
|
-
function
|
|
246
|
-
const
|
|
247
|
-
let
|
|
248
|
-
return e === 0 ?
|
|
320
|
+
function we(e, t) {
|
|
321
|
+
const r = ["null", "undefined"];
|
|
322
|
+
let n = !0;
|
|
323
|
+
return e === 0 ? n = !0 : r.includes(e) ? n = !1 : e || (n = !1), n ? {
|
|
249
324
|
value: e,
|
|
250
|
-
success:
|
|
325
|
+
success: n
|
|
251
326
|
} : {
|
|
252
327
|
value: t === "" ? t : t || "-",
|
|
253
|
-
success:
|
|
328
|
+
success: n
|
|
254
329
|
};
|
|
255
330
|
}
|
|
256
|
-
function
|
|
331
|
+
function ye(e) {
|
|
257
332
|
let t = "";
|
|
258
333
|
if (e > -1) {
|
|
259
|
-
const
|
|
260
|
-
|
|
334
|
+
const r = Math.floor(e / 3600), n = Math.floor(e / 60) % 60, i = parseInt(String(e % 60));
|
|
335
|
+
r < 10 ? t = "0" + r + ":" : t = r + ":", n < 10 && (t += "0"), t += n + ":", i < 10 && (t += "0"), t += i;
|
|
261
336
|
}
|
|
262
337
|
return t.split(":")[0] === "00" ? `${t.split(":")[1]}:${t.split(":")[2]}` : t;
|
|
263
338
|
}
|
|
264
|
-
function
|
|
339
|
+
function q() {
|
|
265
340
|
const e = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
266
341
|
return {
|
|
267
|
-
uuid(t,
|
|
268
|
-
const
|
|
269
|
-
let
|
|
342
|
+
uuid(t, r) {
|
|
343
|
+
const n = e, i = [], o = r || n.length;
|
|
344
|
+
let c, u;
|
|
270
345
|
if (t)
|
|
271
|
-
for (
|
|
272
|
-
|
|
346
|
+
for (c = 0; c < t; c += 1)
|
|
347
|
+
i[c] = n[parseInt(String(Math.random() * o))];
|
|
273
348
|
else
|
|
274
|
-
for (
|
|
275
|
-
|
|
276
|
-
return
|
|
349
|
+
for (i[8] = "-", i[13] = "-", i[18] = "-", i[23] = "-", i[14] = "4", c = 0; c < 36; c += 1)
|
|
350
|
+
i[c] || (u = Math.random() * 16, i[c] = n[c === 19 ? u && 3 || 8 : u]);
|
|
351
|
+
return i.join("");
|
|
277
352
|
},
|
|
278
353
|
uuidFast() {
|
|
279
|
-
const t = e,
|
|
280
|
-
let
|
|
354
|
+
const t = e, r = new Array(36);
|
|
355
|
+
let n = 0, i, o;
|
|
281
356
|
for (o = 0; o < 36; o += 1)
|
|
282
|
-
o === 8 || o === 13 || o === 18 || o === 23 ?
|
|
283
|
-
return
|
|
357
|
+
o === 8 || o === 13 || o === 18 || o === 23 ? r[o] = "-" : o === 14 ? r[o] = "4" : (n <= 2 && (n = 33554432 + Math.random() * 16777216 || 0), i = n && 15, n = n > 4, r[o] = t[o === 19 ? i && 3 || 8 : i]);
|
|
358
|
+
return r.join("");
|
|
284
359
|
},
|
|
285
360
|
uuidString() {
|
|
286
361
|
return this.uuidFast().replace(new RegExp("-", "g"), "");
|
|
287
362
|
},
|
|
288
363
|
uuidCompact() {
|
|
289
364
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
290
|
-
const
|
|
291
|
-
return (t === "x" ?
|
|
365
|
+
const r = Math.random() * 16 || 0;
|
|
366
|
+
return (t === "x" ? r : r && 3 || 8).toString(16);
|
|
292
367
|
});
|
|
293
368
|
}
|
|
294
369
|
};
|
|
295
370
|
}
|
|
296
|
-
function
|
|
371
|
+
function xe(e = []) {
|
|
297
372
|
let t = 0;
|
|
298
|
-
function n
|
|
299
|
-
|
|
300
|
-
o.floor =
|
|
373
|
+
function r(n = [], i) {
|
|
374
|
+
n.forEach((o) => {
|
|
375
|
+
o.floor = i, i > t && (t = i), o.children && o.children.length > 0 && r(o.children, i + 1);
|
|
301
376
|
});
|
|
302
377
|
}
|
|
303
|
-
return
|
|
378
|
+
return r(e, 1), t;
|
|
304
379
|
}
|
|
305
|
-
function
|
|
306
|
-
let
|
|
307
|
-
return e.forEach((
|
|
308
|
-
|
|
309
|
-
}),
|
|
380
|
+
function W(e, t = "children") {
|
|
381
|
+
let r = [];
|
|
382
|
+
return e.forEach((n) => {
|
|
383
|
+
r.push(n), n[t] && n[t].length > 0 && (r = r.concat(W(n[t])));
|
|
384
|
+
}), r;
|
|
310
385
|
}
|
|
311
|
-
function
|
|
312
|
-
t = t || "id",
|
|
386
|
+
function Se(e, t, r, n, i) {
|
|
387
|
+
t = t || "id", r = r || "parentId", n = n || "children", i = i || 0;
|
|
313
388
|
const o = JSON.parse(JSON.stringify(e));
|
|
314
|
-
return o.filter((
|
|
315
|
-
const
|
|
316
|
-
return
|
|
389
|
+
return o.filter((c) => {
|
|
390
|
+
const u = o.filter((f) => c[t] === f[r || "parentId"]);
|
|
391
|
+
return u.length > 0 ? c[n || "children"] = u : delete c[n || "children"], c[r || "parentId"] === i;
|
|
317
392
|
});
|
|
318
393
|
}
|
|
319
|
-
function
|
|
394
|
+
function ve(e) {
|
|
320
395
|
return URL.createObjectURL(e);
|
|
321
396
|
}
|
|
322
|
-
function
|
|
323
|
-
return new Promise((t,
|
|
324
|
-
const
|
|
325
|
-
|
|
397
|
+
function Ae(e) {
|
|
398
|
+
return new Promise((t, r) => {
|
|
399
|
+
const n = new FileReader();
|
|
400
|
+
n.readAsDataURL(e), n.onload = () => t(n.result), n.onerror = (i) => r(i);
|
|
326
401
|
});
|
|
327
402
|
}
|
|
328
|
-
function
|
|
329
|
-
const t = e.split(","),
|
|
330
|
-
let
|
|
331
|
-
const o = new Uint8Array(
|
|
332
|
-
for (;
|
|
333
|
-
o[
|
|
334
|
-
return new Blob([o], { type:
|
|
335
|
-
}
|
|
336
|
-
function
|
|
337
|
-
const
|
|
338
|
-
let o =
|
|
339
|
-
const
|
|
403
|
+
function Oe(e) {
|
|
404
|
+
const t = e.split(","), r = t[0].match(/:(.*?);/)[1], n = atob(t[1]);
|
|
405
|
+
let i = n.length;
|
|
406
|
+
const o = new Uint8Array(i);
|
|
407
|
+
for (; i--; )
|
|
408
|
+
o[i] = n.charCodeAt(i);
|
|
409
|
+
return new Blob([o], { type: r });
|
|
410
|
+
}
|
|
411
|
+
function be(e, t) {
|
|
412
|
+
const r = e.split(","), n = r[0].match(/:(.*?);/)[1], i = atob(r[1]);
|
|
413
|
+
let o = i.length;
|
|
414
|
+
const c = new Uint8Array(o);
|
|
340
415
|
for (; o--; )
|
|
341
|
-
|
|
342
|
-
return new File([
|
|
416
|
+
c[o] = i.charCodeAt(o);
|
|
417
|
+
return new File([c], t, { type: n });
|
|
343
418
|
}
|
|
344
|
-
function
|
|
345
|
-
return new window.File([e], t, { type:
|
|
419
|
+
function Re(e, t, r) {
|
|
420
|
+
return new window.File([e], t, { type: r });
|
|
346
421
|
}
|
|
347
|
-
function
|
|
422
|
+
function J(e = "") {
|
|
348
423
|
const t = e.indexOf("?");
|
|
349
424
|
return t > 0 ? `${e.substring(0, t)}` : e;
|
|
350
425
|
}
|
|
351
|
-
function
|
|
352
|
-
e =
|
|
426
|
+
function v(e = "") {
|
|
427
|
+
e = J(e);
|
|
353
428
|
const t = e.lastIndexOf(".");
|
|
354
429
|
return t > 0 ? `${e.substring(t).split("?")[0]}`.split(".")[1] : "";
|
|
355
430
|
}
|
|
356
|
-
function
|
|
431
|
+
function m(e, t) {
|
|
357
432
|
if (t)
|
|
358
433
|
return t;
|
|
359
434
|
if (!e || e === "data:")
|
|
360
435
|
return "4";
|
|
361
|
-
let
|
|
362
|
-
return
|
|
436
|
+
let r = "4";
|
|
437
|
+
return A(e) ? e.includes("data:image/") ? r = "png" : e.includes("data:video/") ? r = "mp4" : e.includes("data:audio/") && (r = "mp3") : e instanceof Blob ? (e = String(e), e.includes("image") ? r = "png" : e.includes("video") ? r = "mp4" : e.includes("audio") && (r = "mp3")) : r = v(e).toLowerCase(), p.imageType.includes(r) ? "1" : p.videoType.includes(r) ? "3" : p.audioType.includes(r) ? "2" : "4";
|
|
363
438
|
}
|
|
364
|
-
function
|
|
365
|
-
const { url: t = "", fileType:
|
|
366
|
-
let
|
|
367
|
-
return t instanceof File ?
|
|
439
|
+
function _(e) {
|
|
440
|
+
const { url: t = "", fileType: r = "1" } = e;
|
|
441
|
+
let n = "";
|
|
442
|
+
return t instanceof File ? n = URL.createObjectURL(t) : A(t) ? n = t : t instanceof Blob ? n = URL.createObjectURL(t) : (t.includes("https") || t.includes("http")) && (n = t), new Promise(function(i) {
|
|
368
443
|
let o;
|
|
369
|
-
|
|
370
|
-
|
|
444
|
+
r === "1" ? (o = document.createElement("img"), o.src = n) : r === "2" ? (o = document.createElement("audio"), o.src = n) : r === "3" && (o = document.createElement("video"), o.src = n), r === "1" ? o.onload = function() {
|
|
445
|
+
i({
|
|
371
446
|
play: !0,
|
|
372
447
|
width: o.width || 0,
|
|
373
448
|
height: o.height || 0
|
|
374
449
|
}), o = null;
|
|
375
450
|
} : o.oncanplay = function() {
|
|
376
|
-
|
|
451
|
+
i({
|
|
377
452
|
play: !0,
|
|
378
453
|
duration: o.duration,
|
|
379
454
|
width: (o == null ? void 0 : o.videoWidth) || 0,
|
|
380
455
|
height: (o == null ? void 0 : o.videoHeight) || 0
|
|
381
456
|
}), o = null;
|
|
382
457
|
}, o.onerror = function() {
|
|
383
|
-
|
|
458
|
+
i({
|
|
384
459
|
play: !1
|
|
385
460
|
}), o = null;
|
|
386
461
|
};
|
|
387
462
|
});
|
|
388
463
|
}
|
|
389
|
-
async function
|
|
390
|
-
const { url: t = "", currentTime:
|
|
391
|
-
let o = "",
|
|
392
|
-
return t instanceof File ? (o = URL.createObjectURL(t),
|
|
464
|
+
async function Ee(e) {
|
|
465
|
+
const { url: t = "", currentTime: r, videoSuffix: n = "", vidoeAllowPlay: i = !1 } = e;
|
|
466
|
+
let o = "", c = n, u = "1", f;
|
|
467
|
+
return t instanceof File ? (o = URL.createObjectURL(t), c = v(t.name), u = m(t.name)) : t instanceof Blob ? (o = URL.createObjectURL(t), u = m(t)) : A(t) ? (o = t, u = m(t)) : (t.includes("https") || t.includes("http")) && (o = t, c = v(t), u = m(t)), (c ? p.videoAllowType.includes(c.toLowerCase()) : !1) ? i ? O(o, r) : (f = await _({
|
|
393
468
|
url: o,
|
|
394
|
-
fileType:
|
|
395
|
-
}),
|
|
396
|
-
|
|
397
|
-
})) : new Promise(function(
|
|
398
|
-
|
|
469
|
+
fileType: u
|
|
470
|
+
}), f.play ? O(o, r) : new Promise(function(s) {
|
|
471
|
+
s("");
|
|
472
|
+
})) : new Promise(function(s) {
|
|
473
|
+
s("");
|
|
399
474
|
});
|
|
400
475
|
}
|
|
401
|
-
async function
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
476
|
+
async function O(e, t = 0) {
|
|
477
|
+
return new Promise(function(r) {
|
|
478
|
+
let n = document.createElement("video");
|
|
479
|
+
n.controls = !0, n.muted = !0, n.setAttribute("src", e), n.setAttribute("muted", String(!0)), n.setAttribute("crossorigin", "anonymous"), n.setAttribute("autoplay", String(!0)), n && n.addEventListener("loadeddata", async function() {
|
|
480
|
+
let i;
|
|
481
|
+
n == null || n.addEventListener("seeked", async function() {
|
|
482
|
+
i && i();
|
|
483
|
+
});
|
|
484
|
+
const o = (n == null ? void 0 : n.duration) || 0;
|
|
485
|
+
for (; t < o; ) {
|
|
486
|
+
n && (n.currentTime = t), await new Promise((F) => i = F);
|
|
487
|
+
const c = document.createElement("canvas"), u = 0.8, f = c.getContext("2d"), d = (n == null ? void 0 : n.videoWidth) || 0 * u, s = (n == null ? void 0 : n.videoHeight) || 0 * u, l = 0;
|
|
488
|
+
c.width = (n == null ? void 0 : n.videoWidth) || 0 * u, c.height = (n == null ? void 0 : n.videoHeight) || 0 * u, f.drawImage(n, 0, 0, d + l, s + l), n = null, r(d === 0 || s === 0 ? "" : c.toDataURL("image/png", 1));
|
|
489
|
+
}
|
|
490
|
+
});
|
|
412
491
|
});
|
|
413
492
|
}
|
|
414
|
-
function
|
|
493
|
+
function A(e = "") {
|
|
415
494
|
return !!(e && [
|
|
416
495
|
"data:image/",
|
|
417
496
|
"data:video/",
|
|
418
497
|
"data:audio/"
|
|
419
|
-
].find((
|
|
420
|
-
}
|
|
421
|
-
function He(e, t, n, i = !1) {
|
|
422
|
-
e && t && n && e.addEventListener(t, n, i);
|
|
423
|
-
}
|
|
424
|
-
function _e(e, t, n, i = !1) {
|
|
425
|
-
e && t && n && e.removeEventListener(t, n, i);
|
|
426
|
-
}
|
|
427
|
-
const qe = /* @__PURE__ */ z({
|
|
428
|
-
props: {
|
|
429
|
-
id: b.string,
|
|
430
|
-
style: b.style,
|
|
431
|
-
size: {
|
|
432
|
-
type: String,
|
|
433
|
-
default: "middle"
|
|
434
|
-
},
|
|
435
|
-
label: Object,
|
|
436
|
-
placeholder: [Object, String],
|
|
437
|
-
class: String,
|
|
438
|
-
ellipsis: Boolean,
|
|
439
|
-
allowClear: {
|
|
440
|
-
type: Boolean,
|
|
441
|
-
default: !0
|
|
442
|
-
},
|
|
443
|
-
bordered: Boolean,
|
|
444
|
-
expanded: Boolean,
|
|
445
|
-
disabled: Boolean,
|
|
446
|
-
onClear: Function,
|
|
447
|
-
onLabelClick: Function,
|
|
448
|
-
formatter: Function,
|
|
449
|
-
value: b.any
|
|
450
|
-
},
|
|
451
|
-
setup(e, {
|
|
452
|
-
expose: t
|
|
453
|
-
}) {
|
|
454
|
-
const n = D({
|
|
455
|
-
suffixCls: "core-field-label",
|
|
456
|
-
isPor: !0
|
|
457
|
-
}), i = F(), r = F(), o = k(() => e.allowClear || !0);
|
|
458
|
-
t({
|
|
459
|
-
labelRef: i,
|
|
460
|
-
clearRef: r
|
|
461
|
-
});
|
|
462
|
-
const l = (u) => e.formatter ? e.formatter(u) : Array.isArray(u) ? u.join(",") : String(u), c = (u, s) => {
|
|
463
|
-
var f, g;
|
|
464
|
-
if (s != null && s !== "" && (!Array.isArray(s) || s.length)) {
|
|
465
|
-
const v = E(s), $ = u ? a("span", {
|
|
466
|
-
onClick: e.onLabelClick,
|
|
467
|
-
class: `${n}-text`
|
|
468
|
-
}, [u, ": "]) : "", d = v ? "" : l(s);
|
|
469
|
-
if (!e.ellipsis)
|
|
470
|
-
return a("span", {
|
|
471
|
-
style: {
|
|
472
|
-
display: "inline-flex",
|
|
473
|
-
alignItems: "center"
|
|
474
|
-
}
|
|
475
|
-
}, [$, v ? s : l(s)]);
|
|
476
|
-
const j = 41, P = (() => {
|
|
477
|
-
const M = Array.isArray(s) && s.length > 1, N = "项";
|
|
478
|
-
return typeof d == "string" && d.length > j && M ? `...${s.length}${N}` : "";
|
|
479
|
-
})();
|
|
480
|
-
return a("span", {
|
|
481
|
-
title: v ? "" : d,
|
|
482
|
-
style: {
|
|
483
|
-
display: "inline-flex",
|
|
484
|
-
alignItems: "center"
|
|
485
|
-
}
|
|
486
|
-
}, [$, a("span", {
|
|
487
|
-
style: {
|
|
488
|
-
paddingInlineStart: 4
|
|
489
|
-
}
|
|
490
|
-
}, [typeof d == "string" ? (g = (f = d == null ? void 0 : d.toString()) == null ? void 0 : f.substr) == null ? void 0 : g.call(f, 0, j) : s]), P]);
|
|
491
|
-
}
|
|
492
|
-
return u || e.placeholder;
|
|
493
|
-
};
|
|
494
|
-
return () => a("span", {
|
|
495
|
-
class: {
|
|
496
|
-
[`${n}`]: !0,
|
|
497
|
-
[`${n}-${e.size}`]: e.size,
|
|
498
|
-
[`${n}-active`]: !!e.value || e.value === 0,
|
|
499
|
-
[`${n}-disabled`]: e.disabled,
|
|
500
|
-
[`${n}-bordered`]: e.bordered,
|
|
501
|
-
[`${n}-allow-clear`]: o.value,
|
|
502
|
-
[`${e.class}`]: e.class
|
|
503
|
-
},
|
|
504
|
-
style: e.style,
|
|
505
|
-
ref: i
|
|
506
|
-
}, [c(e.label, e.value), (e.value || e.value === 0) && o.value && a(q, {
|
|
507
|
-
role: "button",
|
|
508
|
-
title: "清除",
|
|
509
|
-
class: [`${n}-icon`, `${n}-close`],
|
|
510
|
-
onClick: (u) => {
|
|
511
|
-
e.onClear && !e.disabled && e.onClear(), u.stopPropagation();
|
|
512
|
-
},
|
|
513
|
-
ref: r
|
|
514
|
-
}, null), a(W, {
|
|
515
|
-
class: [`${n}-icon`, `${n}-arrow`]
|
|
516
|
-
}, null)]);
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
const We = (e) => {
|
|
520
|
-
if (!e.tooltip && !e.subTitle)
|
|
521
|
-
return a(H, null, [e.label]);
|
|
522
|
-
const t = D({
|
|
523
|
-
suffixCls: "core-label-tip",
|
|
524
|
-
isPor: !0
|
|
525
|
-
}), n = typeof e.tooltip == "string" ? {
|
|
526
|
-
title: e.tooltip
|
|
527
|
-
} : e.tooltip, i = (n == null ? void 0 : n.icon) || a(J, null, null);
|
|
528
|
-
return a("div", {
|
|
529
|
-
class: t,
|
|
530
|
-
onMousedown: (r) => r.stopPropagation(),
|
|
531
|
-
onMouseleave: (r) => r.stopPropagation(),
|
|
532
|
-
onMousemove: (r) => r.stopPropagation()
|
|
533
|
-
}, [a("div", {
|
|
534
|
-
class: {
|
|
535
|
-
[`${t}-title`]: !0,
|
|
536
|
-
[`${t}-title-ellipsis`]: e.ellipsis
|
|
537
|
-
}
|
|
538
|
-
}, [e.label]), e.subTitle && a("div", {
|
|
539
|
-
class: `${t}-subtitle`
|
|
540
|
-
}, [e.subTitle]), e.tooltip && a(V, n, {
|
|
541
|
-
default: () => [a("span", {
|
|
542
|
-
class: `${t}-icon`
|
|
543
|
-
}, [i])]
|
|
544
|
-
})]);
|
|
545
|
-
}, Je = (...e) => {
|
|
546
|
-
const t = {}, n = e.length;
|
|
547
|
-
let i, r = 0;
|
|
548
|
-
for (; r < n; r += 1)
|
|
549
|
-
for (i in e[r])
|
|
550
|
-
e[r].hasOwnProperty(i) && (typeof t[i] == "object" && typeof e[r][i] == "object" && t[i] !== void 0 && t[i] !== null && !Array.isArray(t[i]) && !Array.isArray(e[r][i]) ? t[i] = {
|
|
551
|
-
...t[i],
|
|
552
|
-
...e[r][i]
|
|
553
|
-
} : t[i] = e[r][i]);
|
|
554
|
-
return t;
|
|
555
|
-
};
|
|
556
|
-
function A(e, t, n, i) {
|
|
557
|
-
if (e === t)
|
|
558
|
-
return !0;
|
|
559
|
-
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
560
|
-
if (e.constructor !== t.constructor)
|
|
561
|
-
return !1;
|
|
562
|
-
let r, o, l;
|
|
563
|
-
if (Array.isArray(e)) {
|
|
564
|
-
if (r = e.length, r != t.length)
|
|
565
|
-
return !1;
|
|
566
|
-
for (o = r; o-- !== 0; )
|
|
567
|
-
if (!A(e[o], t[o], n, i))
|
|
568
|
-
return !1;
|
|
569
|
-
return !0;
|
|
570
|
-
}
|
|
571
|
-
if (e instanceof Map && t instanceof Map) {
|
|
572
|
-
if (e.size !== t.size)
|
|
573
|
-
return !1;
|
|
574
|
-
for (o of e.entries())
|
|
575
|
-
if (!t.has(o[0]))
|
|
576
|
-
return !1;
|
|
577
|
-
for (o of e.entries())
|
|
578
|
-
if (!A(o[1], t.get(o[0]), n, i))
|
|
579
|
-
return !1;
|
|
580
|
-
return !0;
|
|
581
|
-
}
|
|
582
|
-
if (e instanceof Set && t instanceof Set) {
|
|
583
|
-
if (e.size !== t.size)
|
|
584
|
-
return !1;
|
|
585
|
-
for (o of e.entries())
|
|
586
|
-
if (!t.has(o[0]))
|
|
587
|
-
return !1;
|
|
588
|
-
return !0;
|
|
589
|
-
}
|
|
590
|
-
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
591
|
-
if (r = e.length, r != t.length)
|
|
592
|
-
return !1;
|
|
593
|
-
for (o = r; o-- !== 0; )
|
|
594
|
-
if (e[o] !== t[o])
|
|
595
|
-
return !1;
|
|
596
|
-
return !0;
|
|
597
|
-
}
|
|
598
|
-
if (e.constructor === RegExp)
|
|
599
|
-
return e.source === t.source && e.flags === t.flags;
|
|
600
|
-
if (e.valueOf !== Object.prototype.valueOf && e.valueOf)
|
|
601
|
-
return e.valueOf() === t.valueOf();
|
|
602
|
-
if (e.toString !== Object.prototype.toString && e.toString)
|
|
603
|
-
return e.toString() === t.toString();
|
|
604
|
-
if (l = Object.keys(e), r = l.length, r !== Object.keys(t).length)
|
|
605
|
-
return !1;
|
|
606
|
-
for (o = r; o-- !== 0; )
|
|
607
|
-
if (!Object.prototype.hasOwnProperty.call(t, l[o]))
|
|
608
|
-
return !1;
|
|
609
|
-
for (o = r; o-- !== 0; ) {
|
|
610
|
-
const c = l[o];
|
|
611
|
-
if (!(n != null && n.includes(c)) && !(c === "_owner" && e.$$typeof) && !A(e[c], t[c], n, i))
|
|
612
|
-
return i && console.log(c), !1;
|
|
613
|
-
}
|
|
614
|
-
return !0;
|
|
615
|
-
}
|
|
616
|
-
return e !== e && t !== t;
|
|
617
|
-
}
|
|
618
|
-
const fe = typeof process < "u" && process.versions != null && process.versions.node != null, Xe = () => process.env.NODE_ENV === "TEST" ? !0 : typeof window < "u" && typeof window.document < "u" && typeof window.matchMedia < "u" && !fe, Ve = (e) => {
|
|
619
|
-
if (e && e !== !0)
|
|
620
|
-
return e;
|
|
621
|
-
}, Ge = (e) => {
|
|
622
|
-
const t = {};
|
|
623
|
-
if (Object.keys(e || {}).forEach((n) => {
|
|
624
|
-
e[n] !== void 0 && (t[n] = e[n]);
|
|
625
|
-
}), !(Object.keys(t).length < 1))
|
|
626
|
-
return t;
|
|
627
|
-
}, ae = (e) => e.length === 1 && (String(e[0].type) === String(Symbol("Comment")) || String(e[0].type) === String(Symbol("Fragment")) || String(e[0].type) === String(Symbol()));
|
|
628
|
-
function Ye(e) {
|
|
629
|
-
return ae(e) && E(e[0].children) ? e[0].children : e;
|
|
630
|
-
}
|
|
631
|
-
function Qe(e, t, n = "default") {
|
|
632
|
-
return t[n] === !1 ? !1 : I(t[n]) && t[n] ? (e == null ? void 0 : e[n]) || t[n] : t[n] || e[n];
|
|
498
|
+
].find((r) => e.includes(r)));
|
|
633
499
|
}
|
|
634
|
-
function
|
|
635
|
-
|
|
636
|
-
return t[n] === !1 ? !1 : I(t[n]) && t[n] ? ((i = e == null ? void 0 : e[n]) == null ? void 0 : i.call(e)) || t[n] : t[n] || ((r = e[n]) == null ? void 0 : r.call(e));
|
|
500
|
+
function je(e, t, r, n = !1) {
|
|
501
|
+
e && t && r && e.addEventListener(t, r, n);
|
|
637
502
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
640
|
-
return e.forEach((r) => {
|
|
641
|
-
i[r] = de(t, n, r);
|
|
642
|
-
}), i;
|
|
503
|
+
function Fe(e, t, r, n = !1) {
|
|
504
|
+
e && t && r && e.removeEventListener(t, r, n);
|
|
643
505
|
}
|
|
644
506
|
export {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
ke as getVideoCoverPicture,
|
|
674
|
-
ue as getVideoFileUrl,
|
|
507
|
+
he as arrayRepeat,
|
|
508
|
+
Re as blobToDataURL,
|
|
509
|
+
m as checkFileType,
|
|
510
|
+
M as classNames,
|
|
511
|
+
ge as compareArray,
|
|
512
|
+
Oe as dataURLtoBlob,
|
|
513
|
+
be as dataURLtoFile,
|
|
514
|
+
j as deepCopy,
|
|
515
|
+
ye as formatDuraton,
|
|
516
|
+
le as genColumnKey,
|
|
517
|
+
O as generateVidoePicture,
|
|
518
|
+
Ae as getBase64,
|
|
519
|
+
ve as getBlobUrl,
|
|
520
|
+
v as getFileSuffix,
|
|
521
|
+
W as getLevelData,
|
|
522
|
+
xe as getMaxFloor,
|
|
523
|
+
_ as getMediaInfos,
|
|
524
|
+
se as getPrefixCls,
|
|
525
|
+
q as getRandomNumber,
|
|
526
|
+
ce as getRealVNode,
|
|
527
|
+
$ as getScroll,
|
|
528
|
+
G as getScrollContainer,
|
|
529
|
+
ue as getSlot,
|
|
530
|
+
k as getSlotVNode,
|
|
531
|
+
fe as getSlotsProps,
|
|
532
|
+
pe as getSortIndex,
|
|
533
|
+
Ee as getVideoCoverPicture,
|
|
534
|
+
J as getVideoFileUrl,
|
|
675
535
|
p as globalConfig,
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
536
|
+
me as handleCurrentPage,
|
|
537
|
+
ae as handleShowIndex,
|
|
538
|
+
we as hanndleField,
|
|
539
|
+
b as is,
|
|
540
|
+
E as isArray,
|
|
541
|
+
A as isBase64,
|
|
542
|
+
R as isBoolean,
|
|
543
|
+
re as isBrowser,
|
|
544
|
+
x as isDeepEqualReact,
|
|
545
|
+
K as isFunction,
|
|
546
|
+
Q as isInContainer,
|
|
547
|
+
Z as isNumber,
|
|
548
|
+
g as isObject,
|
|
549
|
+
B as isScroll,
|
|
550
|
+
w as isServer,
|
|
551
|
+
H as isSlotFragment,
|
|
552
|
+
P as isString,
|
|
553
|
+
ne as merge,
|
|
554
|
+
Fe as off,
|
|
555
|
+
ie as omitBoolean,
|
|
556
|
+
oe as omitUndefined,
|
|
557
|
+
je as on,
|
|
558
|
+
de as runFunction,
|
|
559
|
+
ee as scrollTo,
|
|
560
|
+
te as throttleByAnimationFrame,
|
|
561
|
+
Se as treeData
|
|
702
562
|
};
|