@halibegic/react-video-player 0.0.55 → 0.0.57

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.
@@ -1,8 +1,8 @@
1
- var zn = Object.defineProperty, Yn = Object.defineProperties;
1
+ var qn = Object.defineProperty, Yn = Object.defineProperties;
2
2
  var Zn = Object.getOwnPropertyDescriptors;
3
3
  var Pe = Object.getOwnPropertySymbols;
4
4
  var xt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable;
5
- var Tt = (e, t, n) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, M = (e, t) => {
5
+ var Tt = (e, t, n) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, M = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
7
  xt.call(t, n) && Tt(e, n, t[n]);
8
8
  if (Pe)
@@ -116,7 +116,7 @@ function $(e) {
116
116
  if (!(this instanceof $))
117
117
  throw new TypeError("Promises must be constructed via new");
118
118
  if (typeof e != "function") throw new TypeError("not a function");
119
- this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], qt(e, this);
119
+ this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], zt(e, this);
120
120
  }
121
121
  function Wt(e, t) {
122
122
  for (; e._state === 3; )
@@ -151,7 +151,7 @@ function Ge(e, t) {
151
151
  e._state = 3, e._value = t, Xe(e);
152
152
  return;
153
153
  } else if (typeof n == "function") {
154
- qt(Qn(n, t), e);
154
+ zt(Qn(n, t), e);
155
155
  return;
156
156
  }
157
157
  }
@@ -174,7 +174,7 @@ function Xe(e) {
174
174
  function er(e, t, n) {
175
175
  this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
176
176
  }
177
- function qt(e, t) {
177
+ function zt(e, t) {
178
178
  var n = !1;
179
179
  try {
180
180
  e(
@@ -507,18 +507,18 @@ function nr() {
507
507
  if (Q && T && typeof Q.stack == "string") {
508
508
  for (var C = Q.stack.split(`
509
509
  `), X = T.stack.split(`
510
- `), W = C.length - 1, q = X.length - 1; W >= 1 && q >= 0 && C[W] !== X[q]; )
511
- q--;
512
- for (; W >= 1 && q >= 0; W--, q--)
513
- if (C[W] !== X[q]) {
514
- if (W !== 1 || q !== 1)
510
+ `), W = C.length - 1, z = X.length - 1; W >= 1 && z >= 0 && C[W] !== X[z]; )
511
+ z--;
512
+ for (; W >= 1 && z >= 0; W--, z--)
513
+ if (C[W] !== X[z]) {
514
+ if (W !== 1 || z !== 1)
515
515
  do
516
- if (W--, q--, q < 0 || C[W] !== X[q]) {
516
+ if (W--, z--, z < 0 || C[W] !== X[z]) {
517
517
  var te = `
518
518
  ` + C[W].replace(" at new ", " at ");
519
519
  return o.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", o.displayName)), typeof o == "function" && Re.set(o, te), te;
520
520
  }
521
- while (W >= 1 && q >= 0);
521
+ while (W >= 1 && z >= 0);
522
522
  break;
523
523
  }
524
524
  }
@@ -703,8 +703,8 @@ function nr() {
703
703
  P[N] === void 0 && (P[N] = W[N]);
704
704
  }
705
705
  if (C || X) {
706
- var q = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
707
- C && kn(P, q), X && Dn(P, q);
706
+ var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
707
+ C && kn(P, z), X && Dn(P, z);
708
708
  }
709
709
  return Nn(o, C, X, I, T, dt.current, P);
710
710
  }
@@ -719,7 +719,7 @@ function nr() {
719
719
  }
720
720
  var We;
721
721
  We = !1;
722
- function qe(o) {
722
+ function ze(o) {
723
723
  return typeof o == "object" && o !== null && o.$$typeof === t;
724
724
  }
725
725
  function vt() {
@@ -770,15 +770,15 @@ Check the top-level render call using <` + p + ">.");
770
770
  if (Ue(o))
771
771
  for (var p = 0; p < o.length; p++) {
772
772
  var T = o[p];
773
- qe(T) && yt(T, h);
773
+ ze(T) && yt(T, h);
774
774
  }
775
- else if (qe(o))
775
+ else if (ze(o))
776
776
  o._store && (o._store.validated = !0);
777
777
  else if (o) {
778
778
  var I = R(o);
779
779
  if (typeof I == "function" && I !== o.entries)
780
780
  for (var N = I.call(o), P; !(P = N.next()).done; )
781
- qe(P.value) && yt(P.value, h);
781
+ ze(P.value) && yt(P.value, h);
782
782
  }
783
783
  }
784
784
  }
@@ -831,9 +831,9 @@ Check the top-level render call using <` + p + ">.");
831
831
  var W;
832
832
  o === null ? W = "null" : Ue(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (Y(o.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, C);
833
833
  }
834
- var q = Mn(o, h, p, I, N);
835
- if (q == null)
836
- return q;
834
+ var z = Mn(o, h, p, I, N);
835
+ if (z == null)
836
+ return z;
837
837
  if (P) {
838
838
  var te = h.children;
839
839
  if (te !== void 0)
@@ -848,20 +848,20 @@ Check the top-level render call using <` + p + ">.");
848
848
  gt(te, o);
849
849
  }
850
850
  if (ye.call(h, "key")) {
851
- var ce = Y(o), Q = Object.keys(h).filter(function(qn) {
852
- return qn !== "key";
853
- }), ze = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
854
- if (!wt[ce + ze]) {
851
+ var ce = Y(o), Q = Object.keys(h).filter(function(zn) {
852
+ return zn !== "key";
853
+ }), qe = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
854
+ if (!wt[ce + qe]) {
855
855
  var Wn = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
856
856
  L(`A props object containing a "key" prop is being spread into JSX:
857
857
  let props = %s;
858
858
  <%s {...props} />
859
859
  React keys must be passed directly to JSX without using spread:
860
860
  let props = %s;
861
- <%s key={someKey} {...props} />`, ze, ce, Wn, ce), wt[ce + ze] = !0;
861
+ <%s key={someKey} {...props} />`, qe, ce, Wn, ce), wt[ce + qe] = !0;
862
862
  }
863
863
  }
864
- return o === r ? On(q) : An(q), q;
864
+ return o === r ? On(z) : An(z), z;
865
865
  }
866
866
  }
867
867
  function Hn(o, h, p) {
@@ -879,10 +879,10 @@ function rr() {
879
879
  return St || (St = 1, process.env.NODE_ENV === "production" ? Ie.exports = tr() : Ie.exports = nr()), Ie.exports;
880
880
  }
881
881
  var s = rr();
882
- const zt = typeof window != "undefined" ? Kn : V;
882
+ const qt = typeof window != "undefined" ? Kn : V;
883
883
  function Ce(e, t) {
884
884
  const n = O(e);
885
- zt(() => {
885
+ qt(() => {
886
886
  n.current = e;
887
887
  }, [e]), V(() => {
888
888
  if (t === null)
@@ -1234,7 +1234,7 @@ const f = (e) => {
1234
1234
  if (!t)
1235
1235
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
1236
1236
  return Vt(t, e);
1237
- }, Sr = "0.0.55", Qe = {
1237
+ }, Sr = "0.0.57", Qe = {
1238
1238
  version: Sr
1239
1239
  }, Ye = 11e3, Ze = {
1240
1240
  DEBUG: 2,
@@ -1526,7 +1526,7 @@ function Wr({
1526
1526
  });
1527
1527
  }), a;
1528
1528
  }
1529
- function qr({ callback: e }) {
1529
+ function zr({ callback: e }) {
1530
1530
  const t = U((c) => c.delay), n = U((c) => c.startDate), r = n ? n.getTime() : 0, a = f((c) => c.eventEmitter);
1531
1531
  return V(() => {
1532
1532
  const c = () => e("timeUpdate", {
@@ -1573,7 +1573,7 @@ function nn() {
1573
1573
  document.removeEventListener("keydown", u);
1574
1574
  }), [u]), null;
1575
1575
  }
1576
- function zr() {
1576
+ function qr() {
1577
1577
  const e = U((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), r = f((i) => i.getPauseTimeDiff), a = f((i) => i.play), c = U((i) => i.setDelay), u = A(
1578
1578
  (i) => {
1579
1579
  let l = !1;
@@ -1822,7 +1822,7 @@ function eo(e, {
1822
1822
  function u() {
1823
1823
  c(r(e));
1824
1824
  }
1825
- return zt(() => {
1825
+ return qt(() => {
1826
1826
  if (typeof window == "undefined")
1827
1827
  return;
1828
1828
  const i = window.matchMedia(e);
@@ -2225,7 +2225,7 @@ function cn() {
2225
2225
  }
2226
2226
  );
2227
2227
  }
2228
- const Mo = "_playerContainer_146tx_1", Fo = "_controlsTop_146tx_12", Vo = "_controlsBottom_146tx_29", Ao = "_controlsContainer_146tx_45", Oo = "_controlsRow_146tx_61", Ho = "_controlsSection_146tx_68", $o = "_controlsSectionStart_146tx_78", Uo = "_controlsSectionEnd_146tx_82", z = {
2228
+ const Mo = "_playerContainer_146tx_1", Fo = "_controlsTop_146tx_12", Vo = "_controlsBottom_146tx_29", Ao = "_controlsContainer_146tx_45", Oo = "_controlsRow_146tx_61", Ho = "_controlsSection_146tx_68", $o = "_controlsSectionStart_146tx_78", Uo = "_controlsSectionEnd_146tx_82", q = {
2229
2229
  playerContainer: Mo,
2230
2230
  controlsTop: Fo,
2231
2231
  controlsBottom: Vo,
@@ -2274,9 +2274,9 @@ function un() {
2274
2274
  c(!0);
2275
2275
  }, [c]), /* @__PURE__ */ s.jsx(ae, { onClick: l, children: n ? /* @__PURE__ */ s.jsx(Wo, {}) : /* @__PURE__ */ s.jsx(Bo, {}) });
2276
2276
  }
2277
- const qo = "_idleCheckContainer_crh2s_1", zo = "_idleCheckContainerIdle_crh2s_5", Yo = "_idleCheckContainerActive_crh2s_11", Ke = {
2278
- idleCheckContainer: qo,
2279
- idleCheckContainerIdle: zo,
2277
+ const zo = "_idleCheckContainer_crh2s_1", qo = "_idleCheckContainerIdle_crh2s_5", Yo = "_idleCheckContainerActive_crh2s_11", Ke = {
2278
+ idleCheckContainer: zo,
2279
+ idleCheckContainerIdle: qo,
2280
2280
  idleCheckContainerActive: Yo
2281
2281
  }, Zo = 5 * 1e3;
2282
2282
  function dn({ children: e }) {
@@ -2343,7 +2343,7 @@ function ti() {
2343
2343
  }
2344
2344
  );
2345
2345
  }
2346
- const ni = "_dropdownMenuContent_lqxir_1", ri = "_dropdownMenuItem_lqxir_83", oi = "_scrollAreaRoot_lqxir_126", ii = "_scrollAreaViewport_lqxir_133", si = "_scrollAreaScrollbar_lqxir_139", ai = "_scrollAreaThumb_lqxir_166", ve = {
2346
+ const ni = "_dropdownMenuContent_zi433_1", ri = "_dropdownMenuItem_zi433_77", oi = "_scrollAreaRoot_zi433_120", ii = "_scrollAreaViewport_zi433_127", si = "_scrollAreaScrollbar_zi433_133", ai = "_scrollAreaThumb_zi433_160", ve = {
2347
2347
  dropdownMenuContent: ni,
2348
2348
  dropdownMenuItem: ri,
2349
2349
  scrollAreaRoot: oi,
@@ -2502,7 +2502,7 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
2502
2502
  "div",
2503
2503
  {
2504
2504
  ref: r,
2505
- className: z.playerContainer,
2505
+ className: q.playerContainer,
2506
2506
  children: [
2507
2507
  /* @__PURE__ */ s.jsxs(
2508
2508
  Or,
@@ -2527,14 +2527,14 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
2527
2527
  /* @__PURE__ */ s.jsx(fn, {}),
2528
2528
  /* @__PURE__ */ s.jsx(co, {}),
2529
2529
  /* @__PURE__ */ s.jsxs(dn, { children: [
2530
- /* @__PURE__ */ s.jsx("div", { className: z.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: z.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: z.controlsRow, children: /* @__PURE__ */ s.jsx(No, {}) }) }) }),
2531
- /* @__PURE__ */ s.jsx("div", { className: z.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: z.controlsContainer, children: [
2530
+ /* @__PURE__ */ s.jsx("div", { className: q.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: q.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: q.controlsRow, children: /* @__PURE__ */ s.jsx(No, {}) }) }) }),
2531
+ /* @__PURE__ */ s.jsx("div", { className: q.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: q.controlsContainer, children: [
2532
2532
  /* @__PURE__ */ s.jsx(bo, {}),
2533
- /* @__PURE__ */ s.jsxs("div", { className: z.controlsRow, children: [
2533
+ /* @__PURE__ */ s.jsxs("div", { className: q.controlsRow, children: [
2534
2534
  /* @__PURE__ */ s.jsxs(
2535
2535
  "div",
2536
2536
  {
2537
- className: `${z.controlsSection} ${z.controlsSectionStart}`,
2537
+ className: `${q.controlsSection} ${q.controlsSectionStart}`,
2538
2538
  children: [
2539
2539
  /* @__PURE__ */ s.jsx(yo, {}),
2540
2540
  /* @__PURE__ */ s.jsx(Lo, {}),
@@ -2545,7 +2545,7 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
2545
2545
  /* @__PURE__ */ s.jsxs(
2546
2546
  "div",
2547
2547
  {
2548
- className: `${z.controlsSection} ${z.controlsSectionEnd}`,
2548
+ className: `${q.controlsSection} ${q.controlsSectionEnd}`,
2549
2549
  children: [
2550
2550
  /* @__PURE__ */ s.jsx(po, { message: t == null ? void 0 : t.live }),
2551
2551
  /* @__PURE__ */ s.jsx(yn, {}),
@@ -2557,17 +2557,17 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
2557
2557
  ] }) })
2558
2558
  ] }),
2559
2559
  /* @__PURE__ */ s.jsx(Lr, { url: e }),
2560
- /* @__PURE__ */ s.jsx(zr, {}),
2560
+ /* @__PURE__ */ s.jsx(qr, {}),
2561
2561
  /* @__PURE__ */ s.jsx(Jr, { url: e })
2562
2562
  ]
2563
2563
  }
2564
2564
  ),
2565
- n && /* @__PURE__ */ s.jsx(qr, { callback: n })
2565
+ n && /* @__PURE__ */ s.jsx(zr, { callback: n })
2566
2566
  ]
2567
2567
  }
2568
2568
  );
2569
2569
  }
2570
- const mi = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], kt = "playback-rate";
2570
+ const mi = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], kt = "playback-rate";
2571
2571
  function vi() {
2572
2572
  const [e, t] = G(!1), n = f((l) => l.containerRef), r = f((l) => l.addIdleLock), a = f((l) => l.removeIdleLock), c = f((l) => l.playbackRate), u = f((l) => l.setPlaybackRate), i = A(
2573
2573
  (l) => {
@@ -2733,7 +2733,7 @@ function Si({ url: e, messages: t, onEvent: n, startTime: r }) {
2733
2733
  "div",
2734
2734
  {
2735
2735
  ref: c,
2736
- className: z.playerContainer,
2736
+ className: q.playerContainer,
2737
2737
  children: [
2738
2738
  /* @__PURE__ */ s.jsx(
2739
2739
  on,
@@ -2748,13 +2748,13 @@ function Si({ url: e, messages: t, onEvent: n, startTime: r }) {
2748
2748
  /* @__PURE__ */ s.jsx(cn, {}),
2749
2749
  /* @__PURE__ */ s.jsx(fn, {}),
2750
2750
  /* @__PURE__ */ s.jsx(pi, {}),
2751
- /* @__PURE__ */ s.jsx(dn, { children: /* @__PURE__ */ s.jsx("div", { className: z.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: z.controlsContainer, children: [
2751
+ /* @__PURE__ */ s.jsx(dn, { children: /* @__PURE__ */ s.jsx("div", { className: q.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: q.controlsContainer, children: [
2752
2752
  /* @__PURE__ */ s.jsx(gi, {}),
2753
- /* @__PURE__ */ s.jsxs("div", { className: z.controlsRow, children: [
2753
+ /* @__PURE__ */ s.jsxs("div", { className: q.controlsRow, children: [
2754
2754
  /* @__PURE__ */ s.jsxs(
2755
2755
  "div",
2756
2756
  {
2757
- className: `${z.controlsSection} ${z.controlsSectionStart}`,
2757
+ className: `${q.controlsSection} ${q.controlsSectionStart}`,
2758
2758
  children: [
2759
2759
  /* @__PURE__ */ s.jsx(yi, {}),
2760
2760
  /* @__PURE__ */ s.jsx(gn, {}),
@@ -2765,7 +2765,7 @@ function Si({ url: e, messages: t, onEvent: n, startTime: r }) {
2765
2765
  /* @__PURE__ */ s.jsxs(
2766
2766
  "div",
2767
2767
  {
2768
- className: `${z.controlsSection} ${z.controlsSectionEnd}`,
2768
+ className: `${q.controlsSection} ${q.controlsSectionEnd}`,
2769
2769
  children: [
2770
2770
  /* @__PURE__ */ s.jsx(vi, {}),
2771
2771
  /* @__PURE__ */ s.jsx(yn, {}),