byteark-player-react
Advanced tools
Comparing version 3.0.1 to 3.0.2
var Cr = Object.defineProperty; | ||
var Lr = (n, a, s) => a in n ? Cr(n, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[a] = s; | ||
var he = (n, a, s) => (Lr(n, typeof a != "symbol" ? a + "" : a, s), s); | ||
import { jsx as A, jsxs as nt } from "react/jsx-runtime"; | ||
import { jsx as T, jsxs as nt } from "react/jsx-runtime"; | ||
import { useRef as me, useEffect as Ie, useState as Or } from "react"; | ||
@@ -46,6 +46,6 @@ var _e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; | ||
}; | ||
return /* @__PURE__ */ A("div", { style: Nr, children: /* @__PURE__ */ nt("div", { children: [ | ||
/* @__PURE__ */ A("p", { style: Fr, children: a.message }), | ||
/* @__PURE__ */ A("p", { style: jr, children: a.messageSecondary }), | ||
/* @__PURE__ */ A("p", { style: Br, children: a.code }) | ||
return /* @__PURE__ */ T("div", { style: Nr, children: /* @__PURE__ */ nt("div", { children: [ | ||
/* @__PURE__ */ T("p", { style: Fr, children: a.message }), | ||
/* @__PURE__ */ T("p", { style: jr, children: a.messageSecondary }), | ||
/* @__PURE__ */ T("p", { style: Br, children: a.code }) | ||
] }) }); | ||
@@ -74,3 +74,3 @@ } | ||
)}%`), !a.fluid && a.fill && (s.height = "100%", s.minHeight = "100%"), a.lazyload && !n.loaded && (s.position = "relative"), a.lazyload && n.loaded && (s.position = "absolute"), n.error) | ||
return /* @__PURE__ */ A("div", { className: n.className, style: s, children: /* @__PURE__ */ A($r, { error: n.error }) }); | ||
return /* @__PURE__ */ T("div", { className: n.className, style: s, children: /* @__PURE__ */ T($r, { error: n.error }) }); | ||
a.poster && (s.backgroundImage = `url(${a.poster})`), s.cursor = "pointer"; | ||
@@ -90,3 +90,3 @@ const o = { | ||
}, c = a.controls === void 0 || a.controls === null || a.controls === !0; | ||
return /* @__PURE__ */ A( | ||
return /* @__PURE__ */ T( | ||
"div", | ||
@@ -97,3 +97,3 @@ { | ||
style: s, | ||
children: c ? /* @__PURE__ */ A( | ||
children: c ? /* @__PURE__ */ T( | ||
"svg", | ||
@@ -105,3 +105,3 @@ { | ||
style: o, | ||
children: /* @__PURE__ */ A( | ||
children: /* @__PURE__ */ T( | ||
"path", | ||
@@ -235,3 +235,3 @@ { | ||
} | ||
function Tt(e) { | ||
function At(e) { | ||
var t = -1, r = Array(e.size); | ||
@@ -242,3 +242,3 @@ return e.forEach(function(i, p) { | ||
} | ||
function At(e, t) { | ||
function Tt(e, t) { | ||
return function(r) { | ||
@@ -254,8 +254,8 @@ return e(t(r)); | ||
} | ||
var Ct = Array.prototype, Lt = Function.prototype, le = Object.prototype, Te = N["__core-js_shared__"], ze = Lt.toString, I = le.hasOwnProperty, Me = function() { | ||
var e = /[^.]+$/.exec(Te && Te.keys && Te.keys.IE_PROTO || ""); | ||
var Ct = Array.prototype, Lt = Function.prototype, le = Object.prototype, Ae = N["__core-js_shared__"], ze = Lt.toString, I = le.hasOwnProperty, Me = function() { | ||
var e = /[^.]+$/.exec(Ae && Ae.keys && Ae.keys.IE_PROTO || ""); | ||
return e ? "Symbol(src)_1." + e : ""; | ||
}(), Ye = le.toString, Ot = RegExp( | ||
"^" + ze.call(I).replace(yt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" | ||
), Ue = Be ? N.Buffer : void 0, ce = N.Symbol, Ge = N.Uint8Array, Ke = le.propertyIsEnumerable, xt = Ct.splice, M = ce ? ce.toStringTag : void 0, He = Object.getOwnPropertySymbols, It = Ue ? Ue.isBuffer : void 0, Nt = At(Object.keys, Object), Ae = Z(N, "DataView"), k = Z(N, "Map"), Re = Z(N, "Promise"), Ce = Z(N, "Set"), Le = Z(N, "WeakMap"), ee = Z(Object, "create"), Ft = G(Ae), jt = G(k), Bt = G(Re), $t = G(Ce), Dt = G(Le), qe = ce ? ce.prototype : void 0, Oe = qe ? qe.valueOf : void 0; | ||
), Ue = Be ? N.Buffer : void 0, ce = N.Symbol, Ge = N.Uint8Array, Ke = le.propertyIsEnumerable, xt = Ct.splice, M = ce ? ce.toStringTag : void 0, He = Object.getOwnPropertySymbols, It = Ue ? Ue.isBuffer : void 0, Nt = Tt(Object.keys, Object), Te = Z(N, "DataView"), k = Z(N, "Map"), Re = Z(N, "Promise"), Ce = Z(N, "Set"), Le = Z(N, "WeakMap"), ee = Z(Object, "create"), Ft = G(Te), jt = G(k), Bt = G(Re), $t = G(Ce), Dt = G(Le), qe = ce ? ce.prototype : void 0, Oe = qe ? qe.valueOf : void 0; | ||
function Y(e) { | ||
@@ -422,12 +422,12 @@ var t = -1, r = e == null ? 0 : e.length; | ||
b = b == P ? B : b, g = g == P ? B : g; | ||
var T = b == B, O = g == B, v = b == g; | ||
var A = b == B, O = g == B, v = b == g; | ||
if (v && xe(e)) { | ||
if (!xe(t)) | ||
return !1; | ||
_ = !0, T = !1; | ||
_ = !0, A = !1; | ||
} | ||
if (v && !T) | ||
if (v && !A) | ||
return l || (l = new $()), _ || tt(e) ? Xe(e, t, r, i, p, l) : pr(e, t, b, r, i, p, l); | ||
if (!(r & f)) { | ||
var R = T && I.call(e, "__wrapped__"), C = O && I.call(t, "__wrapped__"); | ||
var R = A && I.call(e, "__wrapped__"), C = O && I.call(t, "__wrapped__"); | ||
if (R || C) { | ||
@@ -464,7 +464,7 @@ var z = R ? e.value() : e, j = C ? t.value() : t; | ||
return g == t; | ||
var T = -1, O = !0, v = r & c ? new ue() : void 0; | ||
for (l.set(e, t), l.set(t, e); ++T < m; ) { | ||
var R = e[T], C = t[T]; | ||
var A = -1, O = !0, v = r & c ? new ue() : void 0; | ||
for (l.set(e, t), l.set(t, e); ++A < m; ) { | ||
var R = e[A], C = t[A]; | ||
if (i) | ||
var z = _ ? i(C, R, T, t, e, l) : i(R, C, T, e, t, l); | ||
var z = _ ? i(C, R, A, t, e, l) : i(R, C, A, e, t, l); | ||
if (z !== void 0) { | ||
@@ -509,3 +509,3 @@ if (z) | ||
case x: | ||
var m = Tt; | ||
var m = At; | ||
case J: | ||
@@ -519,4 +519,4 @@ var b = i & f; | ||
i |= c, _.set(e, t); | ||
var T = Xe(m(e), m(t), i, p, l, _); | ||
return _.delete(e), T; | ||
var A = Xe(m(e), m(t), i, p, l, _); | ||
return _.delete(e), A; | ||
case Pe: | ||
@@ -529,4 +529,4 @@ if (Oe) | ||
function yr(e, t, r, i, p, l) { | ||
var _ = r & f, m = Ze(e), b = m.length, g = Ze(t), T = g.length; | ||
if (b != T && !_) | ||
var _ = r & f, m = Ze(e), b = m.length, g = Ze(t), A = g.length; | ||
if (b != A && !_) | ||
return !1; | ||
@@ -561,3 +561,3 @@ for (var O = b; O--; ) { | ||
function Ze(e) { | ||
return lr(e, Tr, hr); | ||
return lr(e, Ar, hr); | ||
} | ||
@@ -586,4 +586,4 @@ function de(e, t) { | ||
})); | ||
} : Ar, D = te; | ||
(Ae && D(new Ae(new ArrayBuffer(1))) != w || k && D(new k()) != x || Re && D(Re.resolve()) != ie || Ce && D(new Ce()) != J || Le && D(new Le()) != X) && (D = function(e) { | ||
} : Tr, D = te; | ||
(Te && D(new Te(new ArrayBuffer(1))) != w || k && D(new k()) != x || Re && D(Re.resolve()) != ie || Ce && D(new Ce()) != J || Le && D(new Le()) != X) && (D = function(e) { | ||
var t = te(e), r = t == B ? e.constructor : void 0, i = r ? G(r) : ""; | ||
@@ -667,6 +667,6 @@ if (i) | ||
var tt = De ? Pt(De) : fr; | ||
function Tr(e) { | ||
function Ar(e) { | ||
return Er(e) ? or(e) : dr(e); | ||
} | ||
function Ar() { | ||
function Tr() { | ||
return []; | ||
@@ -861,3 +861,3 @@ } | ||
window.bytearkPlayer = window.bytearkPlayer || {}; | ||
const un = (n, a, s) => /* @__PURE__ */ A( | ||
const un = (n, a, s) => /* @__PURE__ */ T( | ||
zr, | ||
@@ -904,8 +904,8 @@ { | ||
}, J = () => { | ||
L((u) => ({ ...u, ready: !0 })), S.current && y.onReady && y.onReady(S.current); | ||
}, oe = async () => { | ||
o && (await X(), setTimeout(async () => { | ||
L((u) => ({ ...u, ready: !0 })), S.current && y.onReady && y.onReady(S.current), o && requestAnimationFrame(async () => { | ||
var u; | ||
await ((u = S.current) == null ? void 0 : u.play()); | ||
}, 100)), L((u) => ({ | ||
}); | ||
}, oe = async () => { | ||
o && await X(), L((u) => ({ | ||
...u, | ||
@@ -923,3 +923,3 @@ showPlaceholder: !1 | ||
const u = {}, w = []; | ||
return y.className && w.push(y.className), y.fluid && (y.aspectRatio === "4:3" ? w.push("vjs-4-3") : y.aspectRatio === "16:9" && w.push("vjs-16-9")), y.audioOnlyMode ? /* @__PURE__ */ A( | ||
return y.className && w.push(y.className), y.fluid && (y.aspectRatio === "4:3" ? w.push("vjs-4-3") : y.aspectRatio === "16:9" && w.push("vjs-16-9")), y.audioOnlyMode ? /* @__PURE__ */ T( | ||
"audio", | ||
@@ -931,3 +931,3 @@ { | ||
} | ||
) : /* @__PURE__ */ A( | ||
) : /* @__PURE__ */ T( | ||
"video", | ||
@@ -978,3 +978,3 @@ { | ||
x.showPlaceholder && Pe(), | ||
/* @__PURE__ */ A( | ||
/* @__PURE__ */ T( | ||
"div", | ||
@@ -981,0 +981,0 @@ { |
{ | ||
"name": "byteark-player-react", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "ByteArk Player Container for React", | ||
@@ -5,0 +5,0 @@ "author": "byteark", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76328