@sgrsoft/vpe-react-ui 0.1.0 → 0.2.0
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/vpe-react-ui.es.js +195 -582
- package/dist/vpe-react-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/vpe-react-ui.es.js
CHANGED
|
@@ -1,679 +1,292 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} else m = a;
|
|
14
|
-
return a = m.ref, {
|
|
15
|
-
$$typeof: r,
|
|
16
|
-
type: l,
|
|
17
|
-
key: f,
|
|
18
|
-
ref: a !== void 0 ? a : null,
|
|
19
|
-
props: m
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
return L.Fragment = t, L.jsx = o, L.jsxs = o, L;
|
|
1
|
+
import { jsx as f, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import x, { createContext as N, useSyncExternalStore as I, useRef as T, useEffect as Z } from "react";
|
|
4
|
+
var M = { exports: {} }, R = {};
|
|
5
|
+
var b;
|
|
6
|
+
function j() {
|
|
7
|
+
if (b) return R;
|
|
8
|
+
b = 1;
|
|
9
|
+
var t = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
10
|
+
return R.c = function(e) {
|
|
11
|
+
return t.H.useMemoCache(e);
|
|
12
|
+
}, R;
|
|
23
13
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return
|
|
14
|
+
var P;
|
|
15
|
+
function B() {
|
|
16
|
+
return P || (P = 1, M.exports = j()), M.exports;
|
|
27
17
|
}
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
if (te) return s;
|
|
31
|
-
te = 1;
|
|
32
|
-
var r = {};
|
|
33
|
-
var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), p = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), x = Symbol.for("react.activity"), A = Symbol.iterator;
|
|
34
|
-
function M(e) {
|
|
35
|
-
return e === null || typeof e != "object" ? null : (e = A && e[A] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
36
|
-
}
|
|
37
|
-
var P = {
|
|
38
|
-
isMounted: function() {
|
|
39
|
-
return !1;
|
|
40
|
-
},
|
|
41
|
-
enqueueForceUpdate: function() {
|
|
42
|
-
},
|
|
43
|
-
enqueueReplaceState: function() {
|
|
44
|
-
},
|
|
45
|
-
enqueueSetState: function() {
|
|
46
|
-
}
|
|
47
|
-
}, H = Object.assign, V = {};
|
|
48
|
-
function T(e, n, c) {
|
|
49
|
-
this.props = e, this.context = n, this.refs = V, this.updater = c || P;
|
|
50
|
-
}
|
|
51
|
-
T.prototype.isReactComponent = {}, T.prototype.setState = function(e, n) {
|
|
52
|
-
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
53
|
-
throw Error(
|
|
54
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
55
|
-
);
|
|
56
|
-
this.updater.enqueueSetState(this, e, n, "setState");
|
|
57
|
-
}, T.prototype.forceUpdate = function(e) {
|
|
58
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
59
|
-
};
|
|
60
|
-
function O() {
|
|
61
|
-
}
|
|
62
|
-
O.prototype = T.prototype;
|
|
63
|
-
function $(e, n, c) {
|
|
64
|
-
this.props = e, this.context = n, this.refs = V, this.updater = c || P;
|
|
65
|
-
}
|
|
66
|
-
var b = $.prototype = new O();
|
|
67
|
-
b.constructor = $, H(b, T.prototype), b.isPureReactComponent = !0;
|
|
68
|
-
var J = Array.isArray;
|
|
69
|
-
function I() {
|
|
70
|
-
}
|
|
71
|
-
var _ = { H: null, A: null, T: null, S: null }, W = Object.prototype.hasOwnProperty;
|
|
72
|
-
function Y(e, n, c) {
|
|
73
|
-
var i = c.ref;
|
|
74
|
-
return {
|
|
75
|
-
$$typeof: t,
|
|
76
|
-
type: e,
|
|
77
|
-
key: n,
|
|
78
|
-
ref: i !== void 0 ? i : null,
|
|
79
|
-
props: c
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function ce(e, n) {
|
|
83
|
-
return Y(e.type, n, e.props);
|
|
84
|
-
}
|
|
85
|
-
function k(e) {
|
|
86
|
-
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
87
|
-
}
|
|
88
|
-
function le(e) {
|
|
89
|
-
var n = { "=": "=0", ":": "=2" };
|
|
90
|
-
return "$" + e.replace(/[=:]/g, function(c) {
|
|
91
|
-
return n[c];
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
var Q = /\/+/g;
|
|
95
|
-
function q(e, n) {
|
|
96
|
-
return typeof e == "object" && e !== null && e.key != null ? le("" + e.key) : n.toString(36);
|
|
97
|
-
}
|
|
98
|
-
function fe(e) {
|
|
99
|
-
switch (e.status) {
|
|
100
|
-
case "fulfilled":
|
|
101
|
-
return e.value;
|
|
102
|
-
case "rejected":
|
|
103
|
-
throw e.reason;
|
|
104
|
-
default:
|
|
105
|
-
switch (typeof e.status == "string" ? e.then(I, I) : (e.status = "pending", e.then(
|
|
106
|
-
function(n) {
|
|
107
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = n);
|
|
108
|
-
},
|
|
109
|
-
function(n) {
|
|
110
|
-
e.status === "pending" && (e.status = "rejected", e.reason = n);
|
|
111
|
-
}
|
|
112
|
-
)), e.status) {
|
|
113
|
-
case "fulfilled":
|
|
114
|
-
return e.value;
|
|
115
|
-
case "rejected":
|
|
116
|
-
throw e.reason;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
throw e;
|
|
120
|
-
}
|
|
121
|
-
function Z(e, n, c, i, E) {
|
|
122
|
-
var d = typeof e;
|
|
123
|
-
(d === "undefined" || d === "boolean") && (e = null);
|
|
124
|
-
var y = !1;
|
|
125
|
-
if (e === null) y = !0;
|
|
126
|
-
else
|
|
127
|
-
switch (d) {
|
|
128
|
-
case "bigint":
|
|
129
|
-
case "string":
|
|
130
|
-
case "number":
|
|
131
|
-
y = !0;
|
|
132
|
-
break;
|
|
133
|
-
case "object":
|
|
134
|
-
switch (e.$$typeof) {
|
|
135
|
-
case t:
|
|
136
|
-
case o:
|
|
137
|
-
y = !0;
|
|
138
|
-
break;
|
|
139
|
-
case C:
|
|
140
|
-
return y = e._init, Z(
|
|
141
|
-
y(e._payload),
|
|
142
|
-
n,
|
|
143
|
-
c,
|
|
144
|
-
i,
|
|
145
|
-
E
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (y)
|
|
150
|
-
return E = E(e), y = i === "" ? "." + q(e, 0) : i, J(E) ? (c = "", y != null && (c = y.replace(Q, "$&/") + "/"), Z(E, n, c, "", function(de) {
|
|
151
|
-
return de;
|
|
152
|
-
})) : E != null && (k(E) && (E = ce(
|
|
153
|
-
E,
|
|
154
|
-
c + (E.key == null || e && e.key === E.key ? "" : ("" + E.key).replace(
|
|
155
|
-
Q,
|
|
156
|
-
"$&/"
|
|
157
|
-
) + "/") + y
|
|
158
|
-
)), n.push(E)), 1;
|
|
159
|
-
y = 0;
|
|
160
|
-
var j = i === "" ? "." : i + ":";
|
|
161
|
-
if (J(e))
|
|
162
|
-
for (var S = 0; S < e.length; S++)
|
|
163
|
-
i = e[S], d = j + q(i, S), y += Z(
|
|
164
|
-
i,
|
|
165
|
-
n,
|
|
166
|
-
c,
|
|
167
|
-
d,
|
|
168
|
-
E
|
|
169
|
-
);
|
|
170
|
-
else if (S = M(e), typeof S == "function")
|
|
171
|
-
for (e = S.call(e), S = 0; !(i = e.next()).done; )
|
|
172
|
-
i = i.value, d = j + q(i, S++), y += Z(
|
|
173
|
-
i,
|
|
174
|
-
n,
|
|
175
|
-
c,
|
|
176
|
-
d,
|
|
177
|
-
E
|
|
178
|
-
);
|
|
179
|
-
else if (d === "object") {
|
|
180
|
-
if (typeof e.then == "function")
|
|
181
|
-
return Z(
|
|
182
|
-
fe(e),
|
|
183
|
-
n,
|
|
184
|
-
c,
|
|
185
|
-
i,
|
|
186
|
-
E
|
|
187
|
-
);
|
|
188
|
-
throw n = String(e), Error(
|
|
189
|
-
"Objects are not valid as a React child (found: " + (n === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : n) + "). If you meant to render a collection of children, use an array instead."
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
return y;
|
|
193
|
-
}
|
|
194
|
-
function N(e, n, c) {
|
|
195
|
-
if (e == null) return e;
|
|
196
|
-
var i = [], E = 0;
|
|
197
|
-
return Z(e, i, "", "", function(d) {
|
|
198
|
-
return n.call(c, d, E++);
|
|
199
|
-
}), i;
|
|
200
|
-
}
|
|
201
|
-
function me(e) {
|
|
202
|
-
if (e._status === -1) {
|
|
203
|
-
var n = e._result;
|
|
204
|
-
n = n(), n.then(
|
|
205
|
-
function(c) {
|
|
206
|
-
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = c);
|
|
207
|
-
},
|
|
208
|
-
function(c) {
|
|
209
|
-
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = c);
|
|
210
|
-
}
|
|
211
|
-
), e._status === -1 && (e._status = 0, e._result = n);
|
|
212
|
-
}
|
|
213
|
-
if (e._status === 1) return e._result.default;
|
|
214
|
-
throw e._result;
|
|
215
|
-
}
|
|
216
|
-
var X = typeof reportError == "function" ? reportError : function(e) {
|
|
217
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
218
|
-
var n = new window.ErrorEvent("error", {
|
|
219
|
-
bubbles: !0,
|
|
220
|
-
cancelable: !0,
|
|
221
|
-
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
222
|
-
error: e
|
|
223
|
-
});
|
|
224
|
-
if (!window.dispatchEvent(n)) return;
|
|
225
|
-
} else if (typeof r == "object" && typeof r.emit == "function") {
|
|
226
|
-
r.emit("uncaughtException", e);
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
console.error(e);
|
|
230
|
-
}, Ee = {
|
|
231
|
-
map: N,
|
|
232
|
-
forEach: function(e, n, c) {
|
|
233
|
-
N(
|
|
234
|
-
e,
|
|
235
|
-
function() {
|
|
236
|
-
n.apply(this, arguments);
|
|
237
|
-
},
|
|
238
|
-
c
|
|
239
|
-
);
|
|
240
|
-
},
|
|
241
|
-
count: function(e) {
|
|
242
|
-
var n = 0;
|
|
243
|
-
return N(e, function() {
|
|
244
|
-
n++;
|
|
245
|
-
}), n;
|
|
246
|
-
},
|
|
247
|
-
toArray: function(e) {
|
|
248
|
-
return N(e, function(n) {
|
|
249
|
-
return n;
|
|
250
|
-
}) || [];
|
|
251
|
-
},
|
|
252
|
-
only: function(e) {
|
|
253
|
-
if (!k(e))
|
|
254
|
-
throw Error(
|
|
255
|
-
"React.Children.only expected to receive a single React element child."
|
|
256
|
-
);
|
|
257
|
-
return e;
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
return s.Activity = x, s.Children = Ee, s.Component = T, s.Fragment = l, s.Profiler = m, s.PureComponent = $, s.StrictMode = a, s.Suspense = v, s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = _, s.__COMPILER_RUNTIME = {
|
|
261
|
-
__proto__: null,
|
|
262
|
-
c: function(e) {
|
|
263
|
-
return _.H.useMemoCache(e);
|
|
264
|
-
}
|
|
265
|
-
}, s.cache = function(e) {
|
|
266
|
-
return function() {
|
|
267
|
-
return e.apply(null, arguments);
|
|
268
|
-
};
|
|
269
|
-
}, s.cacheSignal = function() {
|
|
270
|
-
return null;
|
|
271
|
-
}, s.cloneElement = function(e, n, c) {
|
|
272
|
-
if (e == null)
|
|
273
|
-
throw Error(
|
|
274
|
-
"The argument must be a React element, but you passed " + e + "."
|
|
275
|
-
);
|
|
276
|
-
var i = H({}, e.props), E = e.key;
|
|
277
|
-
if (n != null)
|
|
278
|
-
for (d in n.key !== void 0 && (E = "" + n.key), n)
|
|
279
|
-
!W.call(n, d) || d === "key" || d === "__self" || d === "__source" || d === "ref" && n.ref === void 0 || (i[d] = n[d]);
|
|
280
|
-
var d = arguments.length - 2;
|
|
281
|
-
if (d === 1) i.children = c;
|
|
282
|
-
else if (1 < d) {
|
|
283
|
-
for (var y = Array(d), j = 0; j < d; j++)
|
|
284
|
-
y[j] = arguments[j + 2];
|
|
285
|
-
i.children = y;
|
|
286
|
-
}
|
|
287
|
-
return Y(e.type, E, i);
|
|
288
|
-
}, s.createContext = function(e) {
|
|
289
|
-
return e = {
|
|
290
|
-
$$typeof: p,
|
|
291
|
-
_currentValue: e,
|
|
292
|
-
_currentValue2: e,
|
|
293
|
-
_threadCount: 0,
|
|
294
|
-
Provider: null,
|
|
295
|
-
Consumer: null
|
|
296
|
-
}, e.Provider = e, e.Consumer = {
|
|
297
|
-
$$typeof: f,
|
|
298
|
-
_context: e
|
|
299
|
-
}, e;
|
|
300
|
-
}, s.createElement = function(e, n, c) {
|
|
301
|
-
var i, E = {}, d = null;
|
|
302
|
-
if (n != null)
|
|
303
|
-
for (i in n.key !== void 0 && (d = "" + n.key), n)
|
|
304
|
-
W.call(n, i) && i !== "key" && i !== "__self" && i !== "__source" && (E[i] = n[i]);
|
|
305
|
-
var y = arguments.length - 2;
|
|
306
|
-
if (y === 1) E.children = c;
|
|
307
|
-
else if (1 < y) {
|
|
308
|
-
for (var j = Array(y), S = 0; S < y; S++)
|
|
309
|
-
j[S] = arguments[S + 2];
|
|
310
|
-
E.children = j;
|
|
311
|
-
}
|
|
312
|
-
if (e && e.defaultProps)
|
|
313
|
-
for (i in y = e.defaultProps, y)
|
|
314
|
-
E[i] === void 0 && (E[i] = y[i]);
|
|
315
|
-
return Y(e, d, E);
|
|
316
|
-
}, s.createRef = function() {
|
|
317
|
-
return { current: null };
|
|
318
|
-
}, s.forwardRef = function(e) {
|
|
319
|
-
return { $$typeof: g, render: e };
|
|
320
|
-
}, s.isValidElement = k, s.lazy = function(e) {
|
|
321
|
-
return {
|
|
322
|
-
$$typeof: C,
|
|
323
|
-
_payload: { _status: -1, _result: e },
|
|
324
|
-
_init: me
|
|
325
|
-
};
|
|
326
|
-
}, s.memo = function(e, n) {
|
|
327
|
-
return {
|
|
328
|
-
$$typeof: R,
|
|
329
|
-
type: e,
|
|
330
|
-
compare: n === void 0 ? null : n
|
|
331
|
-
};
|
|
332
|
-
}, s.startTransition = function(e) {
|
|
333
|
-
var n = _.T, c = {};
|
|
334
|
-
_.T = c;
|
|
335
|
-
try {
|
|
336
|
-
var i = e(), E = _.S;
|
|
337
|
-
E !== null && E(c, i), typeof i == "object" && i !== null && typeof i.then == "function" && i.then(I, X);
|
|
338
|
-
} catch (d) {
|
|
339
|
-
X(d);
|
|
340
|
-
} finally {
|
|
341
|
-
n !== null && c.types !== null && (n.types = c.types), _.T = n;
|
|
342
|
-
}
|
|
343
|
-
}, s.unstable_useCacheRefresh = function() {
|
|
344
|
-
return _.H.useCacheRefresh();
|
|
345
|
-
}, s.use = function(e) {
|
|
346
|
-
return _.H.use(e);
|
|
347
|
-
}, s.useActionState = function(e, n, c) {
|
|
348
|
-
return _.H.useActionState(e, n, c);
|
|
349
|
-
}, s.useCallback = function(e, n) {
|
|
350
|
-
return _.H.useCallback(e, n);
|
|
351
|
-
}, s.useContext = function(e) {
|
|
352
|
-
return _.H.useContext(e);
|
|
353
|
-
}, s.useDebugValue = function() {
|
|
354
|
-
}, s.useDeferredValue = function(e, n) {
|
|
355
|
-
return _.H.useDeferredValue(e, n);
|
|
356
|
-
}, s.useEffect = function(e, n) {
|
|
357
|
-
return _.H.useEffect(e, n);
|
|
358
|
-
}, s.useEffectEvent = function(e) {
|
|
359
|
-
return _.H.useEffectEvent(e);
|
|
360
|
-
}, s.useId = function() {
|
|
361
|
-
return _.H.useId();
|
|
362
|
-
}, s.useImperativeHandle = function(e, n, c) {
|
|
363
|
-
return _.H.useImperativeHandle(e, n, c);
|
|
364
|
-
}, s.useInsertionEffect = function(e, n) {
|
|
365
|
-
return _.H.useInsertionEffect(e, n);
|
|
366
|
-
}, s.useLayoutEffect = function(e, n) {
|
|
367
|
-
return _.H.useLayoutEffect(e, n);
|
|
368
|
-
}, s.useMemo = function(e, n) {
|
|
369
|
-
return _.H.useMemo(e, n);
|
|
370
|
-
}, s.useOptimistic = function(e, n) {
|
|
371
|
-
return _.H.useOptimistic(e, n);
|
|
372
|
-
}, s.useReducer = function(e, n, c) {
|
|
373
|
-
return _.H.useReducer(e, n, c);
|
|
374
|
-
}, s.useRef = function(e) {
|
|
375
|
-
return _.H.useRef(e);
|
|
376
|
-
}, s.useState = function(e) {
|
|
377
|
-
return _.H.useState(e);
|
|
378
|
-
}, s.useSyncExternalStore = function(e, n, c) {
|
|
379
|
-
return _.H.useSyncExternalStore(
|
|
380
|
-
e,
|
|
381
|
-
n,
|
|
382
|
-
c
|
|
383
|
-
);
|
|
384
|
-
}, s.useTransition = function() {
|
|
385
|
-
return _.H.useTransition();
|
|
386
|
-
}, s.version = "19.2.1", s;
|
|
387
|
-
}
|
|
388
|
-
var ne;
|
|
389
|
-
function ue() {
|
|
390
|
-
return ne || (ne = 1, z.exports = ye()), z.exports;
|
|
391
|
-
}
|
|
392
|
-
var re;
|
|
393
|
-
function ve() {
|
|
394
|
-
if (re) return D;
|
|
395
|
-
re = 1;
|
|
396
|
-
var r = ue().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
397
|
-
return D.c = function(t) {
|
|
398
|
-
return r.H.useMemoCache(t);
|
|
399
|
-
}, D;
|
|
400
|
-
}
|
|
401
|
-
var oe;
|
|
402
|
-
function he() {
|
|
403
|
-
return oe || (oe = 1, F.exports = ve()), F.exports;
|
|
404
|
-
}
|
|
405
|
-
var w = he(), u = ue();
|
|
406
|
-
const Re = /* @__PURE__ */ new Map([
|
|
18
|
+
var g = B();
|
|
19
|
+
const D = /* @__PURE__ */ new Map([
|
|
407
20
|
[
|
|
408
21
|
"bold",
|
|
409
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z" }))
|
|
410
23
|
],
|
|
411
24
|
[
|
|
412
25
|
"duotone",
|
|
413
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
414
27
|
"path",
|
|
415
28
|
{
|
|
416
29
|
d: "M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",
|
|
417
30
|
opacity: "0.2"
|
|
418
31
|
}
|
|
419
|
-
), /* @__PURE__ */
|
|
32
|
+
), /* @__PURE__ */ a.createElement("path", { d: "M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z" }))
|
|
420
33
|
],
|
|
421
34
|
[
|
|
422
35
|
"fill",
|
|
423
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z" }))
|
|
424
37
|
],
|
|
425
38
|
[
|
|
426
39
|
"light",
|
|
427
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z" }))
|
|
428
41
|
],
|
|
429
42
|
[
|
|
430
43
|
"regular",
|
|
431
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z" }))
|
|
432
45
|
],
|
|
433
46
|
[
|
|
434
47
|
"thin",
|
|
435
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z" }))
|
|
436
49
|
]
|
|
437
|
-
]),
|
|
50
|
+
]), O = /* @__PURE__ */ new Map([
|
|
438
51
|
[
|
|
439
52
|
"bold",
|
|
440
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z" }))
|
|
441
54
|
],
|
|
442
55
|
[
|
|
443
56
|
"duotone",
|
|
444
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
445
58
|
"path",
|
|
446
59
|
{
|
|
447
60
|
d: "M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",
|
|
448
61
|
opacity: "0.2"
|
|
449
62
|
}
|
|
450
|
-
), /* @__PURE__ */
|
|
63
|
+
), /* @__PURE__ */ a.createElement("path", { d: "M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z" }))
|
|
451
64
|
],
|
|
452
65
|
[
|
|
453
66
|
"fill",
|
|
454
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z" }))
|
|
455
68
|
],
|
|
456
69
|
[
|
|
457
70
|
"light",
|
|
458
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z" }))
|
|
459
72
|
],
|
|
460
73
|
[
|
|
461
74
|
"regular",
|
|
462
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z" }))
|
|
463
76
|
],
|
|
464
77
|
[
|
|
465
78
|
"thin",
|
|
466
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z" }))
|
|
467
80
|
]
|
|
468
|
-
]),
|
|
81
|
+
]), U = N({
|
|
469
82
|
color: "currentColor",
|
|
470
83
|
size: "1em",
|
|
471
84
|
weight: "regular",
|
|
472
85
|
mirrored: !1
|
|
473
|
-
}),
|
|
474
|
-
(
|
|
86
|
+
}), S = a.forwardRef(
|
|
87
|
+
(t, e) => {
|
|
475
88
|
const {
|
|
476
|
-
alt:
|
|
89
|
+
alt: n,
|
|
477
90
|
color: l,
|
|
478
|
-
size:
|
|
479
|
-
weight:
|
|
480
|
-
mirrored:
|
|
481
|
-
children:
|
|
482
|
-
weights:
|
|
483
|
-
...
|
|
484
|
-
} =
|
|
485
|
-
color:
|
|
486
|
-
size:
|
|
487
|
-
weight:
|
|
488
|
-
mirrored:
|
|
489
|
-
...
|
|
490
|
-
} =
|
|
491
|
-
return /* @__PURE__ */
|
|
91
|
+
size: i,
|
|
92
|
+
weight: c,
|
|
93
|
+
mirrored: r,
|
|
94
|
+
children: o,
|
|
95
|
+
weights: m,
|
|
96
|
+
...s
|
|
97
|
+
} = t, {
|
|
98
|
+
color: u = "currentColor",
|
|
99
|
+
size: E,
|
|
100
|
+
weight: V = "regular",
|
|
101
|
+
mirrored: d = !1,
|
|
102
|
+
...H
|
|
103
|
+
} = a.useContext(U);
|
|
104
|
+
return /* @__PURE__ */ a.createElement(
|
|
492
105
|
"svg",
|
|
493
106
|
{
|
|
494
|
-
ref:
|
|
107
|
+
ref: e,
|
|
495
108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
496
|
-
width:
|
|
497
|
-
height:
|
|
498
|
-
fill: l ??
|
|
109
|
+
width: i ?? E,
|
|
110
|
+
height: i ?? E,
|
|
111
|
+
fill: l ?? u,
|
|
499
112
|
viewBox: "0 0 256 256",
|
|
500
|
-
transform:
|
|
501
|
-
...
|
|
502
|
-
...
|
|
113
|
+
transform: r || d ? "scale(-1, 1)" : void 0,
|
|
114
|
+
...H,
|
|
115
|
+
...s
|
|
503
116
|
},
|
|
504
|
-
!!
|
|
505
|
-
|
|
506
|
-
|
|
117
|
+
!!n && /* @__PURE__ */ a.createElement("title", null, n),
|
|
118
|
+
o,
|
|
119
|
+
m.get(c ?? V)
|
|
507
120
|
);
|
|
508
121
|
}
|
|
509
122
|
);
|
|
510
|
-
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
function
|
|
517
|
-
if (
|
|
518
|
-
return
|
|
123
|
+
S.displayName = "IconBase";
|
|
124
|
+
const L = a.forwardRef((t, e) => /* @__PURE__ */ a.createElement(S, { ref: e, ...t, weights: D }));
|
|
125
|
+
L.displayName = "PauseIcon";
|
|
126
|
+
const p = a.forwardRef((t, e) => /* @__PURE__ */ a.createElement(S, { ref: e, ...t, weights: O }));
|
|
127
|
+
p.displayName = "PlayIcon";
|
|
128
|
+
const _ = /* @__PURE__ */ new Map();
|
|
129
|
+
function z(t, e) {
|
|
130
|
+
if (_.has(t))
|
|
131
|
+
return _.get(t);
|
|
519
132
|
const l = {
|
|
520
|
-
value: typeof
|
|
133
|
+
value: typeof e == "function" ? e() : e,
|
|
521
134
|
listeners: /* @__PURE__ */ new Set()
|
|
522
135
|
};
|
|
523
|
-
return
|
|
136
|
+
return _.set(t, l), l;
|
|
524
137
|
}
|
|
525
|
-
function
|
|
526
|
-
const
|
|
138
|
+
function q(t, e) {
|
|
139
|
+
const n = g.c(12);
|
|
527
140
|
let l;
|
|
528
|
-
|
|
529
|
-
const
|
|
530
|
-
let
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
let
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
let
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
},
|
|
540
|
-
const
|
|
541
|
-
let
|
|
542
|
-
return
|
|
141
|
+
n[0] !== e || n[1] !== t ? (l = z(t, e), n[0] = e, n[1] = t, n[2] = l) : l = n[2];
|
|
142
|
+
const i = l;
|
|
143
|
+
let c;
|
|
144
|
+
n[3] !== i.listeners ? (c = (d) => (i.listeners.add(d), () => i.listeners.delete(d)), n[3] = i.listeners, n[4] = c) : c = n[4];
|
|
145
|
+
const r = c;
|
|
146
|
+
let o;
|
|
147
|
+
n[5] !== i.value ? (o = () => i.value, n[5] = i.value, n[6] = o) : o = n[6];
|
|
148
|
+
const m = o;
|
|
149
|
+
let s;
|
|
150
|
+
n[7] !== i ? (s = (d) => {
|
|
151
|
+
i.value = typeof d == "function" ? d(i.value) : d, i.listeners.forEach(Y);
|
|
152
|
+
}, n[7] = i, n[8] = s) : s = n[8];
|
|
153
|
+
const u = s, E = I(r, m);
|
|
154
|
+
let V;
|
|
155
|
+
return n[9] !== u || n[10] !== E ? (V = [E, u], n[9] = u, n[10] = E, n[11] = V) : V = n[11], V;
|
|
543
156
|
}
|
|
544
|
-
function
|
|
545
|
-
return
|
|
157
|
+
function Y(t) {
|
|
158
|
+
return t();
|
|
546
159
|
}
|
|
547
|
-
const
|
|
160
|
+
const k = "playerState", G = {
|
|
548
161
|
isPlaying: !1,
|
|
549
162
|
initPlay: !1
|
|
550
163
|
};
|
|
551
|
-
function
|
|
552
|
-
const
|
|
164
|
+
function F() {
|
|
165
|
+
const t = g.c(5), [e, n] = q(k, G);
|
|
553
166
|
let l;
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
const
|
|
167
|
+
t[0] !== n ? (l = (r) => {
|
|
168
|
+
n((o) => {
|
|
169
|
+
const m = typeof r == "function" ? r(o) : r;
|
|
557
170
|
return {
|
|
558
|
-
...
|
|
559
|
-
...
|
|
171
|
+
...o,
|
|
172
|
+
...m
|
|
560
173
|
};
|
|
561
174
|
});
|
|
562
|
-
},
|
|
563
|
-
const
|
|
564
|
-
let
|
|
565
|
-
return
|
|
175
|
+
}, t[0] = n, t[1] = l) : l = t[1];
|
|
176
|
+
const i = l;
|
|
177
|
+
let c;
|
|
178
|
+
return t[2] !== i || t[3] !== e ? (c = [e, i], t[2] = i, t[3] = e, t[4] = c) : c = t[4], c;
|
|
566
179
|
}
|
|
567
|
-
function
|
|
568
|
-
const
|
|
569
|
-
let
|
|
570
|
-
|
|
571
|
-
const
|
|
572
|
-
if (!(!
|
|
573
|
-
if (
|
|
574
|
-
const
|
|
575
|
-
lowLatencyMode:
|
|
180
|
+
function K(t) {
|
|
181
|
+
const e = g.c(23), n = T(null), [l, i] = F(), c = t.hlsLib, r = t.options;
|
|
182
|
+
let o;
|
|
183
|
+
e[0] !== c || e[1] !== r || e[2] !== t ? (o = () => {
|
|
184
|
+
const h = n.current, y = t?.src?.file;
|
|
185
|
+
if (!(!h || !y)) {
|
|
186
|
+
if (c?.isSupported?.()) {
|
|
187
|
+
const A = new c({
|
|
188
|
+
lowLatencyMode: r.lowLatencyMode
|
|
576
189
|
});
|
|
577
|
-
return
|
|
578
|
-
|
|
579
|
-
}),
|
|
580
|
-
|
|
581
|
-
evt:
|
|
582
|
-
data:
|
|
190
|
+
return A.attachMedia(h), A.on(c.Events.MEDIA_ATTACHED, () => {
|
|
191
|
+
A.loadSource(y);
|
|
192
|
+
}), A.on(c.Events.ERROR, ($, C) => {
|
|
193
|
+
t.onError && t.onError({
|
|
194
|
+
evt: $,
|
|
195
|
+
data: C
|
|
583
196
|
});
|
|
584
197
|
}), () => {
|
|
585
|
-
|
|
198
|
+
A.destroy();
|
|
586
199
|
};
|
|
587
200
|
}
|
|
588
|
-
|
|
201
|
+
h.src = y;
|
|
589
202
|
}
|
|
590
|
-
},
|
|
591
|
-
const
|
|
592
|
-
let
|
|
593
|
-
|
|
594
|
-
let
|
|
595
|
-
|
|
596
|
-
const
|
|
597
|
-
if (!
|
|
203
|
+
}, e[0] = c, e[1] = r, e[2] = t, e[3] = o) : o = e[3];
|
|
204
|
+
const m = t?.src?.file;
|
|
205
|
+
let s;
|
|
206
|
+
e[4] !== c || e[5] !== t.onError || e[6] !== m ? (s = [c, m, t.onError], e[4] = c, e[5] = t.onError, e[6] = m, e[7] = s) : s = e[7], Z(o, s);
|
|
207
|
+
let u, E;
|
|
208
|
+
e[8] !== r ? (u = () => {
|
|
209
|
+
const h = n.current;
|
|
210
|
+
if (!h)
|
|
598
211
|
return;
|
|
599
|
-
const
|
|
600
|
-
typeof
|
|
601
|
-
},
|
|
602
|
-
let
|
|
603
|
-
|
|
604
|
-
const
|
|
605
|
-
if (!
|
|
212
|
+
const y = r?.playbackRate;
|
|
213
|
+
typeof y == "number" && (h.playbackRate = y);
|
|
214
|
+
}, E = [r], e[8] = r, e[9] = u, e[10] = E) : (u = e[9], E = e[10]), Z(u, E);
|
|
215
|
+
let V, d;
|
|
216
|
+
e[11] !== i ? (V = () => {
|
|
217
|
+
const h = n.current;
|
|
218
|
+
if (!h)
|
|
606
219
|
return;
|
|
607
|
-
const
|
|
608
|
-
|
|
220
|
+
const y = () => {
|
|
221
|
+
i({
|
|
609
222
|
isPlaying: !0,
|
|
610
223
|
initPlay: !0
|
|
611
224
|
});
|
|
612
|
-
},
|
|
613
|
-
|
|
225
|
+
}, A = () => {
|
|
226
|
+
i({
|
|
614
227
|
isPlaying: !1
|
|
615
228
|
});
|
|
616
229
|
};
|
|
617
|
-
return
|
|
618
|
-
|
|
230
|
+
return h.addEventListener("play", y), h.addEventListener("pause", A), () => {
|
|
231
|
+
h.removeEventListener("play", y), h.removeEventListener("pause", A);
|
|
619
232
|
};
|
|
620
|
-
},
|
|
621
|
-
let
|
|
622
|
-
|
|
623
|
-
background:
|
|
624
|
-
objectFit:
|
|
625
|
-
} }),
|
|
626
|
-
let
|
|
627
|
-
return
|
|
233
|
+
}, d = [i], e[11] = i, e[12] = V, e[13] = d) : (V = e[12], d = e[13]), Z(V, d);
|
|
234
|
+
let H;
|
|
235
|
+
e[14] !== r?.autostart || e[15] !== r?.muted || e[16] !== r?.objectFit || e[17] !== r?.repeat || e[18] !== l || e[19] !== t.src ? (H = t?.src?.file && /* @__PURE__ */ f("video", { playsInline: !0, ref: n, className: "w-full h-full", controls: !1, autoPlay: r?.autostart, muted: r?.muted, loop: r?.repeat, style: {
|
|
236
|
+
background: t.src.poster ? l.initPlay ? "transparent" : `url(${t.src.poster}) center / ${r?.objectFit ?? "contain"} no-repeat` : void 0,
|
|
237
|
+
objectFit: r?.objectFit ?? "contain"
|
|
238
|
+
} }), e[14] = r?.autostart, e[15] = r?.muted, e[16] = r?.objectFit, e[17] = r?.repeat, e[18] = l, e[19] = t.src, e[20] = H) : H = e[20];
|
|
239
|
+
let v;
|
|
240
|
+
return e[21] !== H ? (v = /* @__PURE__ */ f(w, { children: H }), e[21] = H, e[22] = v) : v = e[22], v;
|
|
628
241
|
}
|
|
629
|
-
function
|
|
630
|
-
const
|
|
631
|
-
let
|
|
632
|
-
|
|
242
|
+
function W(t) {
|
|
243
|
+
const e = g.c(4);
|
|
244
|
+
let n;
|
|
245
|
+
e[0] !== t.src ? (n = t?.src?.file && /* @__PURE__ */ f("div", { children: t.src.file }), e[0] = t.src, e[1] = n) : n = e[1];
|
|
633
246
|
let l;
|
|
634
|
-
return
|
|
247
|
+
return e[2] !== n ? (l = /* @__PURE__ */ f(w, { children: n }), e[2] = n, e[3] = l) : l = e[3], l;
|
|
635
248
|
}
|
|
636
|
-
function
|
|
637
|
-
const
|
|
638
|
-
let
|
|
639
|
-
|
|
249
|
+
function J(t) {
|
|
250
|
+
const e = g.c(4);
|
|
251
|
+
let n;
|
|
252
|
+
e[0] !== t.src ? (n = t?.src?.file && /* @__PURE__ */ f("div", { children: t.src.file }), e[0] = t.src, e[1] = n) : n = e[1];
|
|
640
253
|
let l;
|
|
641
|
-
return
|
|
254
|
+
return e[2] !== n ? (l = /* @__PURE__ */ f(w, { children: n }), e[2] = n, e[3] = l) : l = e[3], l;
|
|
642
255
|
}
|
|
643
|
-
function
|
|
644
|
-
const
|
|
645
|
-
let
|
|
646
|
-
|
|
256
|
+
function Q(t) {
|
|
257
|
+
const e = g.c(3);
|
|
258
|
+
let n;
|
|
259
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
647
260
|
display: "flex",
|
|
648
261
|
justifyContent: "center",
|
|
649
262
|
alignItems: "center"
|
|
650
|
-
},
|
|
263
|
+
}, e[0] = n) : n = e[0];
|
|
651
264
|
let l;
|
|
652
|
-
return
|
|
265
|
+
return e[1] !== t.children ? (l = /* @__PURE__ */ f("div", { style: n, className: "obtn", children: t.children }), e[1] = t.children, e[2] = l) : l = e[2], l;
|
|
653
266
|
}
|
|
654
|
-
function
|
|
655
|
-
const
|
|
656
|
-
let
|
|
657
|
-
return
|
|
267
|
+
function te(t) {
|
|
268
|
+
const e = g.c(2);
|
|
269
|
+
let n;
|
|
270
|
+
return e[0] !== t ? (n = /* @__PURE__ */ f(K, { ...t }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
658
271
|
}
|
|
659
|
-
function
|
|
660
|
-
const
|
|
661
|
-
let
|
|
662
|
-
return
|
|
272
|
+
function ne(t) {
|
|
273
|
+
const e = g.c(2);
|
|
274
|
+
let n;
|
|
275
|
+
return e[0] !== t ? (n = /* @__PURE__ */ f(W, { ...t }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
663
276
|
}
|
|
664
|
-
function
|
|
665
|
-
const
|
|
666
|
-
let
|
|
667
|
-
return
|
|
277
|
+
function ae(t) {
|
|
278
|
+
const e = g.c(2);
|
|
279
|
+
let n;
|
|
280
|
+
return e[0] !== t ? (n = /* @__PURE__ */ f(J, { ...t }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
668
281
|
}
|
|
669
|
-
function
|
|
670
|
-
const
|
|
671
|
-
size:
|
|
282
|
+
function le(t) {
|
|
283
|
+
const e = g.c(6), {
|
|
284
|
+
size: n,
|
|
672
285
|
weight: l,
|
|
673
|
-
color:
|
|
674
|
-
} =
|
|
675
|
-
let
|
|
676
|
-
|
|
286
|
+
color: i
|
|
287
|
+
} = t, c = n === void 0 ? 25 : n, r = l === void 0 ? "fill" : l, o = i === void 0 ? "#ffffff" : i, [m] = F();
|
|
288
|
+
let s;
|
|
289
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
677
290
|
background: "transparent",
|
|
678
291
|
border: 0,
|
|
679
292
|
padding: 0,
|
|
@@ -681,19 +294,19 @@ function Le(r) {
|
|
|
681
294
|
display: "flex",
|
|
682
295
|
justifyContent: "center",
|
|
683
296
|
alignItems: "center"
|
|
684
|
-
},
|
|
685
|
-
let
|
|
686
|
-
return
|
|
297
|
+
}, e[0] = s) : s = e[0];
|
|
298
|
+
let u;
|
|
299
|
+
return e[1] !== o || e[2] !== m.isPlaying || e[3] !== c || e[4] !== r ? (u = /* @__PURE__ */ f(Q, { children: /* @__PURE__ */ f("button", { type: "button", style: s, children: m.isPlaying ? /* @__PURE__ */ f(L, { size: c, weight: r, color: o }) : /* @__PURE__ */ f(p, { size: c, weight: r, color: o }) }) }), e[1] = o, e[2] = m.isPlaying, e[3] = c, e[4] = r, e[5] = u) : u = e[5], u;
|
|
687
300
|
}
|
|
688
|
-
function
|
|
689
|
-
const
|
|
690
|
-
let
|
|
691
|
-
return
|
|
301
|
+
function re() {
|
|
302
|
+
const t = g.c(1);
|
|
303
|
+
let e;
|
|
304
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ f("div", { children: "btn2" }), t[0] = e) : e = t[0], e;
|
|
692
305
|
}
|
|
693
306
|
export {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
307
|
+
ne as DashVideo,
|
|
308
|
+
te as HlsVideo,
|
|
309
|
+
ae as Mp4Video,
|
|
310
|
+
le as PlayBtn,
|
|
311
|
+
re as PlayBtn2
|
|
699
312
|
};
|
package/dist/vpe-react-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(x,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):(x=typeof globalThis<"u"?globalThis:x||self,Z(x.VpeReactUi={}))})(this,(function(x){"use strict";var Z={exports:{}},b={};var W;function ce(){if(W)return b;W=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(c,a,m){var f=null;if(m!==void 0&&(f=""+m),a.key!==void 0&&(f=""+a.key),"key"in a){m={};for(var p in a)p!=="key"&&(m[p]=a[p])}else m=a;return a=m.ref,{$$typeof:r,type:c,key:f,ref:a!==void 0?a:null,props:m}}return b.Fragment=t,b.jsx=o,b.jsxs=o,b}var Q;function fe(){return Q||(Q=1,Z.exports=ce()),Z.exports}var v=fe(),Y={exports:{}},U={},k={exports:{}},s={},X;function me(){if(X)return s;X=1;var r={};var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),A=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,w={};function H(e,n,l){this.props=e,this.context=n,this.refs=w,this.updater=l||$}H.prototype.isReactComponent={},H.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},H.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N(){}N.prototype=H.prototype;function O(e,n,l){this.props=e,this.context=n,this.refs=w,this.updater=l||$}var D=O.prototype=new N;D.constructor=O,T(D,H.prototype),D.isPureReactComponent=!0;var se=Array.isArray;function B(){}var _={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function z(e,n,l){var i=l.ref;return{$$typeof:t,type:e,key:n,ref:i!==void 0?i:null,props:l}}function je(e,n){return z(e.type,n,e.props)}function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function Ze(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return n[l]})}var ae=/\/+/g;function J(e,n){return typeof e=="object"&&e!==null&&e.key!=null?Ze(""+e.key):n.toString(36)}function $e(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(B,B):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n)},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function L(e,n,l,i,d){var E=typeof e;(E==="undefined"||E==="boolean")&&(e=null);var y=!1;if(e===null)y=!0;else switch(E){case"bigint":case"string":case"number":y=!0;break;case"object":switch(e.$$typeof){case t:case o:y=!0;break;case C:return y=e._init,L(y(e._payload),n,l,i,d)}}if(y)return d=d(e),y=i===""?"."+J(e,0):i,se(d)?(l="",y!=null&&(l=y.replace(ae,"$&/")+"/"),L(d,n,l,"",function(Oe){return Oe})):d!=null&&(G(d)&&(d=je(d,l+(d.key==null||e&&e.key===d.key?"":(""+d.key).replace(ae,"$&/")+"/")+y)),n.push(d)),1;y=0;var j=i===""?".":i+":";if(se(e))for(var S=0;S<e.length;S++)i=e[S],E=j+J(i,S),y+=L(i,n,l,E,d);else if(S=P(e),typeof S=="function")for(e=S.call(e),S=0;!(i=e.next()).done;)i=i.value,E=j+J(i,S++),y+=L(i,n,l,E,d);else if(E==="object"){if(typeof e.then=="function")return L($e(e),n,l,i,d);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return y}function I(e,n,l){if(e==null)return e;var i=[],d=0;return L(e,i,"","",function(E){return n.call(l,E,d++)}),i}function Le(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l)},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var le=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof r=="object"&&typeof r.emit=="function"){r.emit("uncaughtException",e);return}console.error(e)},be={map:I,forEach:function(e,n,l){I(e,function(){n.apply(this,arguments)},l)},count:function(e){var n=0;return I(e,function(){n++}),n},toArray:function(e){return I(e,function(n){return n})||[]},only:function(e){if(!G(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return s.Activity=V,s.Children=be,s.Component=H,s.Fragment=c,s.Profiler=m,s.PureComponent=O,s.StrictMode=a,s.Suspense=h,s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,s.__COMPILER_RUNTIME={__proto__:null,c:function(e){return _.H.useMemoCache(e)}},s.cache=function(e){return function(){return e.apply(null,arguments)}},s.cacheSignal=function(){return null},s.cloneElement=function(e,n,l){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=T({},e.props),d=e.key;if(n!=null)for(E in n.key!==void 0&&(d=""+n.key),n)!ie.call(n,E)||E==="key"||E==="__self"||E==="__source"||E==="ref"&&n.ref===void 0||(i[E]=n[E]);var E=arguments.length-2;if(E===1)i.children=l;else if(1<E){for(var y=Array(E),j=0;j<E;j++)y[j]=arguments[j+2];i.children=y}return z(e.type,d,i)},s.createContext=function(e){return e={$$typeof:p,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:f,_context:e},e},s.createElement=function(e,n,l){var i,d={},E=null;if(n!=null)for(i in n.key!==void 0&&(E=""+n.key),n)ie.call(n,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(d[i]=n[i]);var y=arguments.length-2;if(y===1)d.children=l;else if(1<y){for(var j=Array(y),S=0;S<y;S++)j[S]=arguments[S+2];d.children=j}if(e&&e.defaultProps)for(i in y=e.defaultProps,y)d[i]===void 0&&(d[i]=y[i]);return z(e,E,d)},s.createRef=function(){return{current:null}},s.forwardRef=function(e){return{$$typeof:g,render:e}},s.isValidElement=G,s.lazy=function(e){return{$$typeof:C,_payload:{_status:-1,_result:e},_init:Le}},s.memo=function(e,n){return{$$typeof:R,type:e,compare:n===void 0?null:n}},s.startTransition=function(e){var n=_.T,l={};_.T=l;try{var i=e(),d=_.S;d!==null&&d(l,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(B,le)}catch(E){le(E)}finally{n!==null&&l.types!==null&&(n.types=l.types),_.T=n}},s.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},s.use=function(e){return _.H.use(e)},s.useActionState=function(e,n,l){return _.H.useActionState(e,n,l)},s.useCallback=function(e,n){return _.H.useCallback(e,n)},s.useContext=function(e){return _.H.useContext(e)},s.useDebugValue=function(){},s.useDeferredValue=function(e,n){return _.H.useDeferredValue(e,n)},s.useEffect=function(e,n){return _.H.useEffect(e,n)},s.useEffectEvent=function(e){return _.H.useEffectEvent(e)},s.useId=function(){return _.H.useId()},s.useImperativeHandle=function(e,n,l){return _.H.useImperativeHandle(e,n,l)},s.useInsertionEffect=function(e,n){return _.H.useInsertionEffect(e,n)},s.useLayoutEffect=function(e,n){return _.H.useLayoutEffect(e,n)},s.useMemo=function(e,n){return _.H.useMemo(e,n)},s.useOptimistic=function(e,n){return _.H.useOptimistic(e,n)},s.useReducer=function(e,n,l){return _.H.useReducer(e,n,l)},s.useRef=function(e){return _.H.useRef(e)},s.useState=function(e){return _.H.useState(e)},s.useSyncExternalStore=function(e,n,l){return _.H.useSyncExternalStore(e,n,l)},s.useTransition=function(){return _.H.useTransition()},s.version="19.2.1",s}var K;function ee(){return K||(K=1,k.exports=me()),k.exports}var te;function de(){if(te)return U;te=1;var r=ee().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return U.c=function(t){return r.H.useMemoCache(t)},U}var ne;function Ee(){return ne||(ne=1,Y.exports=de()),Y.exports}var M=Ee(),u=ee();const pe=new Map([["bold",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",u.createElement(u.Fragment,null,u.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),u.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",u.createElement(u.Fragment,null,u.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),_e=new Map([["bold",u.createElement(u.Fragment,null,u.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",u.createElement(u.Fragment,null,u.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),u.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",u.createElement(u.Fragment,null,u.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",u.createElement(u.Fragment,null,u.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",u.createElement(u.Fragment,null,u.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",u.createElement(u.Fragment,null,u.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),ye=u.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),q=u.forwardRef((r,t)=>{const{alt:o,color:c,size:a,weight:m,mirrored:f,children:p,weights:g,...h}=r,{color:R="currentColor",size:C,weight:V="regular",mirrored:A=!1,...P}=u.useContext(ye);return u.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:a??C,height:a??C,fill:c??R,viewBox:"0 0 256 256",transform:f||A?"scale(-1, 1)":void 0,...P,...h},!!o&&u.createElement("title",null,o),p,g.get(m??V))});q.displayName="IconBase";const re=u.forwardRef((r,t)=>u.createElement(q,{ref:t,...r,weights:pe}));re.displayName="PauseIcon";const oe=u.forwardRef((r,t)=>u.createElement(q,{ref:t,...r,weights:_e}));oe.displayName="PlayIcon";const F=new Map;function ve(r,t){if(F.has(r))return F.get(r);const c={value:typeof t=="function"?t():t,listeners:new Set};return F.set(r,c),c}function he(r,t){const o=M.c(12);let c;o[0]!==t||o[1]!==r?(c=ve(r,t),o[0]=t,o[1]=r,o[2]=c):c=o[2];const a=c;let m;o[3]!==a.listeners?(m=A=>(a.listeners.add(A),()=>a.listeners.delete(A)),o[3]=a.listeners,o[4]=m):m=o[4];const f=m;let p;o[5]!==a.value?(p=()=>a.value,o[5]=a.value,o[6]=p):p=o[6];const g=p;let h;o[7]!==a?(h=A=>{a.value=typeof A=="function"?A(a.value):A,a.listeners.forEach(Re)},o[7]=a,o[8]=h):h=o[8];const R=h,C=u.useSyncExternalStore(f,g);let V;return o[9]!==R||o[10]!==C?(V=[C,R],o[9]=R,o[10]=C,o[11]=V):V=o[11],V}function Re(r){return r()}const Ae="playerState",ge={isPlaying:!1,initPlay:!1};function ue(){const r=M.c(5),[t,o]=he(Ae,ge);let c;r[0]!==o?(c=f=>{o(p=>{const g=typeof f=="function"?f(p):f;return{...p,...g}})},r[0]=o,r[1]=c):c=r[1];const a=c;let m;return r[2]!==a||r[3]!==t?(m=[t,a],r[2]=a,r[3]=t,r[4]=m):m=r[4],m}function Te(r){const t=M.c(23),o=u.useRef(null),[c,a]=ue(),m=r.hlsLib,f=r.options;let p;t[0]!==m||t[1]!==f||t[2]!==r?(p=()=>{const T=o.current,w=r?.src?.file;if(!(!T||!w)){if(m?.isSupported?.()){const H=new m({lowLatencyMode:f.lowLatencyMode});return H.attachMedia(T),H.on(m.Events.MEDIA_ATTACHED,()=>{H.loadSource(w)}),H.on(m.Events.ERROR,(N,O)=>{r.onError&&r.onError({evt:N,data:O})}),()=>{H.destroy()}}T.src=w}},t[0]=m,t[1]=f,t[2]=r,t[3]=p):p=t[3];const g=r?.src?.file;let h;t[4]!==m||t[5]!==r.onError||t[6]!==g?(h=[m,g,r.onError],t[4]=m,t[5]=r.onError,t[6]=g,t[7]=h):h=t[7],u.useEffect(p,h);let R,C;t[8]!==f?(R=()=>{const T=o.current;if(!T)return;const w=f?.playbackRate;typeof w=="number"&&(T.playbackRate=w)},C=[f],t[8]=f,t[9]=R,t[10]=C):(R=t[9],C=t[10]),u.useEffect(R,C);let V,A;t[11]!==a?(V=()=>{const T=o.current;if(!T)return;const w=()=>{a({isPlaying:!0,initPlay:!0})},H=()=>{a({isPlaying:!1})};return T.addEventListener("play",w),T.addEventListener("pause",H),()=>{T.removeEventListener("play",w),T.removeEventListener("pause",H)}},A=[a],t[11]=a,t[12]=V,t[13]=A):(V=t[12],A=t[13]),u.useEffect(V,A);let P;t[14]!==f?.autostart||t[15]!==f?.muted||t[16]!==f?.objectFit||t[17]!==f?.repeat||t[18]!==c||t[19]!==r.src?(P=r?.src?.file&&v.jsx("video",{playsInline:!0,ref:o,className:"w-full h-full",controls:!1,autoPlay:f?.autostart,muted:f?.muted,loop:f?.repeat,style:{background:r.src.poster?c.initPlay?"transparent":`url(${r.src.poster}) center / ${f?.objectFit??"contain"} no-repeat`:void 0,objectFit:f?.objectFit??"contain"}}),t[14]=f?.autostart,t[15]=f?.muted,t[16]=f?.objectFit,t[17]=f?.repeat,t[18]=c,t[19]=r.src,t[20]=P):P=t[20];let $;return t[21]!==P?($=v.jsx(v.Fragment,{children:P}),t[21]=P,t[22]=$):$=t[22],$}function He(r){const t=M.c(4);let o;t[0]!==r.src?(o=r?.src?.file&&v.jsx("div",{children:r.src.file}),t[0]=r.src,t[1]=o):o=t[1];let c;return t[2]!==o?(c=v.jsx(v.Fragment,{children:o}),t[2]=o,t[3]=c):c=t[3],c}function Ce(r){const t=M.c(4);let o;t[0]!==r.src?(o=r?.src?.file&&v.jsx("div",{children:r.src.file}),t[0]=r.src,t[1]=o):o=t[1];let c;return t[2]!==o?(c=v.jsx(v.Fragment,{children:o}),t[2]=o,t[3]=c):c=t[3],c}function Se(r){const t=M.c(3);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={display:"flex",justifyContent:"center",alignItems:"center"},t[0]=o):o=t[0];let c;return t[1]!==r.children?(c=v.jsx("div",{style:o,className:"obtn",children:r.children}),t[1]=r.children,t[2]=c):c=t[2],c}function Ve(r){const t=M.c(2);let o;return t[0]!==r?(o=v.jsx(Te,{...r}),t[0]=r,t[1]=o):o=t[1],o}function we(r){const t=M.c(2);let o;return t[0]!==r?(o=v.jsx(He,{...r}),t[0]=r,t[1]=o):o=t[1],o}function Me(r){const t=M.c(2);let o;return t[0]!==r?(o=v.jsx(Ce,{...r}),t[0]=r,t[1]=o):o=t[1],o}function xe(r){const t=M.c(6),{size:o,weight:c,color:a}=r,m=o===void 0?25:o,f=c===void 0?"fill":c,p=a===void 0?"#ffffff":a,[g]=ue();let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},t[0]=h):h=t[0];let R;return t[1]!==p||t[2]!==g.isPlaying||t[3]!==m||t[4]!==f?(R=v.jsx(Se,{children:v.jsx("button",{type:"button",style:h,children:g.isPlaying?v.jsx(re,{size:m,weight:f,color:p}):v.jsx(oe,{size:m,weight:f,color:p})})}),t[1]=p,t[2]=g.isPlaying,t[3]=m,t[4]=f,t[5]=R):R=t[5],R}function Pe(){const r=M.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=v.jsx("div",{children:"btn2"}),r[0]=t):t=r[0],t}x.DashVideo=we,x.HlsVideo=Ve,x.Mp4Video=Me,x.PlayBtn=xe,x.PlayBtn2=Pe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(h,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],o):(h=typeof globalThis<"u"?globalThis:h||self,o(h.VpeReactUi={},h.React,h.React))})(this,(function(h,o,A){"use strict";function R(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,l.get?l:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const a=R(A);var b={exports:{}},_={};var P;function j(){if(P)return _;P=1;var t=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return _.c=function(e){return t.H.useMemoCache(e)},_}var p;function N(){return p||(p=1,b.exports=j()),b.exports}var E=N();const T=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),a.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),O=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),a.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),x=A.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),S=a.forwardRef((t,e)=>{const{alt:n,color:l,size:c,weight:i,mirrored:r,children:s,weights:d,...u}=t,{color:f="currentColor",size:g,weight:y="regular",mirrored:m=!1,...v}=a.useContext(x);return a.createElement("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:c??g,height:c??g,fill:l??f,viewBox:"0 0 256 256",transform:r||m?"scale(-1, 1)":void 0,...v,...u},!!n&&a.createElement("title",null,n),s,d.get(i??y))});S.displayName="IconBase";const F=a.forwardRef((t,e)=>a.createElement(S,{ref:e,...t,weights:T}));F.displayName="PauseIcon";const L=a.forwardRef((t,e)=>a.createElement(S,{ref:e,...t,weights:O}));L.displayName="PlayIcon";const w=new Map;function I(t,e){if(w.has(t))return w.get(t);const l={value:typeof e=="function"?e():e,listeners:new Set};return w.set(t,l),l}function D(t,e){const n=E.c(12);let l;n[0]!==e||n[1]!==t?(l=I(t,e),n[0]=e,n[1]=t,n[2]=l):l=n[2];const c=l;let i;n[3]!==c.listeners?(i=m=>(c.listeners.add(m),()=>c.listeners.delete(m)),n[3]=c.listeners,n[4]=i):i=n[4];const r=i;let s;n[5]!==c.value?(s=()=>c.value,n[5]=c.value,n[6]=s):s=n[6];const d=s;let u;n[7]!==c?(u=m=>{c.value=typeof m=="function"?m(c.value):m,c.listeners.forEach(B)},n[7]=c,n[8]=u):u=n[8];const f=u,g=A.useSyncExternalStore(r,d);let y;return n[9]!==f||n[10]!==g?(y=[g,f],n[9]=f,n[10]=g,n[11]=y):y=n[11],y}function B(t){return t()}const $="playerState",U={isPlaying:!1,initPlay:!1};function C(){const t=E.c(5),[e,n]=D($,U);let l;t[0]!==n?(l=r=>{n(s=>{const d=typeof r=="function"?r(s):r;return{...s,...d}})},t[0]=n,t[1]=l):l=t[1];const c=l;let i;return t[2]!==c||t[3]!==e?(i=[e,c],t[2]=c,t[3]=e,t[4]=i):i=t[4],i}function q(t){const e=E.c(23),n=A.useRef(null),[l,c]=C(),i=t.hlsLib,r=t.options;let s;e[0]!==i||e[1]!==r||e[2]!==t?(s=()=>{const V=n.current,H=t?.src?.file;if(!(!V||!H)){if(i?.isSupported?.()){const M=new i({lowLatencyMode:r.lowLatencyMode});return M.attachMedia(V),M.on(i.Events.MEDIA_ATTACHED,()=>{M.loadSource(H)}),M.on(i.Events.ERROR,(X,ee)=>{t.onError&&t.onError({evt:X,data:ee})}),()=>{M.destroy()}}V.src=H}},e[0]=i,e[1]=r,e[2]=t,e[3]=s):s=e[3];const d=t?.src?.file;let u;e[4]!==i||e[5]!==t.onError||e[6]!==d?(u=[i,d,t.onError],e[4]=i,e[5]=t.onError,e[6]=d,e[7]=u):u=e[7],A.useEffect(s,u);let f,g;e[8]!==r?(f=()=>{const V=n.current;if(!V)return;const H=r?.playbackRate;typeof H=="number"&&(V.playbackRate=H)},g=[r],e[8]=r,e[9]=f,e[10]=g):(f=e[9],g=e[10]),A.useEffect(f,g);let y,m;e[11]!==c?(y=()=>{const V=n.current;if(!V)return;const H=()=>{c({isPlaying:!0,initPlay:!0})},M=()=>{c({isPlaying:!1})};return V.addEventListener("play",H),V.addEventListener("pause",M),()=>{V.removeEventListener("play",H),V.removeEventListener("pause",M)}},m=[c],e[11]=c,e[12]=y,e[13]=m):(y=e[12],m=e[13]),A.useEffect(y,m);let v;e[14]!==r?.autostart||e[15]!==r?.muted||e[16]!==r?.objectFit||e[17]!==r?.repeat||e[18]!==l||e[19]!==t.src?(v=t?.src?.file&&o.jsx("video",{playsInline:!0,ref:n,className:"w-full h-full",controls:!1,autoPlay:r?.autostart,muted:r?.muted,loop:r?.repeat,style:{background:t.src.poster?l.initPlay?"transparent":`url(${t.src.poster}) center / ${r?.objectFit??"contain"} no-repeat`:void 0,objectFit:r?.objectFit??"contain"}}),e[14]=r?.autostart,e[15]=r?.muted,e[16]=r?.objectFit,e[17]=r?.repeat,e[18]=l,e[19]=t.src,e[20]=v):v=e[20];let Z;return e[21]!==v?(Z=o.jsx(o.Fragment,{children:v}),e[21]=v,e[22]=Z):Z=e[22],Z}function z(t){const e=E.c(4);let n;e[0]!==t.src?(n=t?.src?.file&&o.jsx("div",{children:t.src.file}),e[0]=t.src,e[1]=n):n=e[1];let l;return e[2]!==n?(l=o.jsx(o.Fragment,{children:n}),e[2]=n,e[3]=l):l=e[3],l}function Y(t){const e=E.c(4);let n;e[0]!==t.src?(n=t?.src?.file&&o.jsx("div",{children:t.src.file}),e[0]=t.src,e[1]=n):n=e[1];let l;return e[2]!==n?(l=o.jsx(o.Fragment,{children:n}),e[2]=n,e[3]=l):l=e[3],l}function k(t){const e=E.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={display:"flex",justifyContent:"center",alignItems:"center"},e[0]=n):n=e[0];let l;return e[1]!==t.children?(l=o.jsx("div",{style:n,className:"obtn",children:t.children}),e[1]=t.children,e[2]=l):l=e[2],l}function G(t){const e=E.c(2);let n;return e[0]!==t?(n=o.jsx(q,{...t}),e[0]=t,e[1]=n):n=e[1],n}function K(t){const e=E.c(2);let n;return e[0]!==t?(n=o.jsx(z,{...t}),e[0]=t,e[1]=n):n=e[1],n}function W(t){const e=E.c(2);let n;return e[0]!==t?(n=o.jsx(Y,{...t}),e[0]=t,e[1]=n):n=e[1],n}function J(t){const e=E.c(6),{size:n,weight:l,color:c}=t,i=n===void 0?25:n,r=l===void 0?"fill":l,s=c===void 0?"#ffffff":c,[d]=C();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},e[0]=u):u=e[0];let f;return e[1]!==s||e[2]!==d.isPlaying||e[3]!==i||e[4]!==r?(f=o.jsx(k,{children:o.jsx("button",{type:"button",style:u,children:d.isPlaying?o.jsx(F,{size:i,weight:r,color:s}):o.jsx(L,{size:i,weight:r,color:s})})}),e[1]=s,e[2]=d.isPlaying,e[3]=i,e[4]=r,e[5]=f):f=e[5],f}function Q(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("div",{children:"btn2"}),t[0]=e):e=t[0],e}h.DashVideo=K,h.HlsVideo=G,h.Mp4Video=W,h.PlayBtn=J,h.PlayBtn2=Q,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|