@webitel/ui-sdk 25.12.26 → 25.12.27

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.
@@ -5,9 +5,9 @@ var N = (r) => {
5
5
  var de = (r, c, e) => c in r ? ue(r, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[c] = e;
6
6
  var b = (r, c, e) => de(r, typeof c != "symbol" ? c + "" : c, e), S = (r, c, e) => c.has(r) || N("Cannot " + e);
7
7
  var t = (r, c, e) => (S(r, c, "read from private field"), e ? e.call(r) : c.get(r)), f = (r, c, e) => c.has(r) ? N("Cannot add the same private member more than once") : c instanceof WeakSet ? c.add(r) : c.set(r, e), u = (r, c, e, i) => (S(r, c, "write to private field"), i ? i.call(r, e) : c.set(r, e), e), o = (r, c, e) => (S(r, c, "access private method"), e);
8
- import { z as fe, K as U, M as C, p as pe, e as q, d as Q, b as ye, N as _, L as R, l as be, O as ke, T as ve, Q as z } from "./install-CrrAB4P5.js";
9
- import { R as me } from "./vidstack-DqAw8m9J-DyYO78jE.js";
10
- import { E as we } from "./vidstack-DDXt6fpN-BqBO9dqI.js";
8
+ import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-A9G4M7-6.js";
9
+ import { R as me } from "./vidstack-DqAw8m9J-CL4FNO5F.js";
10
+ import { E as we } from "./vidstack-DDXt6fpN-2JcEs0WE.js";
11
11
  import { resolveVimeoVideoId as Pe, getVimeoVideoInfo as Te } from "./vidstack-krOAtKMi-B4IZWKdc.js";
12
12
  const Ce = [
13
13
  "bufferend",
@@ -53,7 +53,7 @@ const Ce = [
53
53
  // 'livestreamoffline',
54
54
  // 'livestreamonline',
55
55
  ];
56
- var a, y, k, w, g, V, v, $, M, P, m, E, s, K, W, Y, G, T, H, J, X, L, Z, ee, te, se, ie, x, ne, ae, oe, O, he, F, re, D, ce, le, l, j, B;
56
+ var a, y, k, w, g, V, v, $, A, P, m, E, s, Y, z, G, H, T, J, K, X, L, Z, ee, te, se, ie, x, ne, ae, oe, O, he, F, re, D, ce, le, l, j, B;
57
57
  class Re extends we {
58
58
  constructor(e, i) {
59
59
  super(e);
@@ -68,8 +68,8 @@ class Re extends we {
68
68
  f(this, g, null);
69
69
  f(this, V, !1);
70
70
  f(this, v, new C(0, 0));
71
- f(this, $, new me(o(this, s, G).bind(this)));
72
- f(this, M, null);
71
+ f(this, $, new me(o(this, s, H).bind(this)));
72
+ f(this, A, null);
73
73
  f(this, P, null);
74
74
  f(this, m, /* @__PURE__ */ new Map());
75
75
  f(this, E, null);
@@ -116,7 +116,7 @@ class Re extends we {
116
116
  pe(this.getOrigin());
117
117
  }
118
118
  setup() {
119
- super.setup(), q(o(this, s, K).bind(this)), q(o(this, s, W).bind(this)), q(o(this, s, Y).bind(this)), t(this, a).notify("provider-setup", this);
119
+ super.setup(), q(o(this, s, Y).bind(this)), q(o(this, s, z).bind(this)), q(o(this, s, G).bind(this)), t(this, a).notify("provider-setup", this);
120
120
  }
121
121
  destroy() {
122
122
  o(this, s, j).call(this), this.fullscreen = void 0;
@@ -175,7 +175,7 @@ class Re extends we {
175
175
  onLoad() {
176
176
  }
177
177
  }
178
- a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g = new WeakMap(), V = new WeakMap(), v = new WeakMap(), $ = new WeakMap(), M = new WeakMap(), P = new WeakMap(), m = new WeakMap(), E = new WeakMap(), s = new WeakSet(), K = function() {
178
+ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g = new WeakMap(), V = new WeakMap(), v = new WeakMap(), $ = new WeakMap(), A = new WeakMap(), P = new WeakMap(), m = new WeakMap(), E = new WeakMap(), s = new WeakSet(), Y = function() {
179
179
  o(this, s, j).call(this);
180
180
  const e = t(this, y).call(this);
181
181
  if (!e) {
@@ -183,7 +183,7 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
183
183
  return;
184
184
  }
185
185
  this.src.set(`${this.getOrigin()}/video/${e}`), t(this, a).notify("load-start");
186
- }, W = function() {
186
+ }, z = function() {
187
187
  const e = t(this, y).call(this);
188
188
  if (!e) return;
189
189
  const i = _(), n = new AbortController();
@@ -194,7 +194,7 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
194
194
  }), () => {
195
195
  i.reject(), n.abort();
196
196
  };
197
- }, Y = function() {
197
+ }, G = function() {
198
198
  const e = t(this, k).call(this), { $state: i, qualities: n } = t(this, a);
199
199
  if (i.canSetPlaybackRate.set(e), n[R.setReadonly](!e), e)
200
200
  return be(n, "change", () => {
@@ -203,25 +203,25 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
203
203
  const h = (d = n.selected) == null ? void 0 : d.id;
204
204
  h && o(this, s, l).call(this, "setQuality", h);
205
205
  });
206
- }, G = function() {
206
+ }, H = function() {
207
207
  o(this, s, l).call(this, "getCurrentTime");
208
- }, T = new WeakMap(), H = function(e, i) {
208
+ }, T = new WeakMap(), J = function(e, i) {
209
209
  if (t(this, T) && e === 0) return;
210
210
  const { realCurrentTime: n, paused: h, bufferedEnd: d, seekableEnd: p, live: I } = t(this, a).$state;
211
211
  if (n() === e) return;
212
- const A = n();
213
- t(this, a).notify("time-change", e, i), Math.abs(A - e) > 1.5 && (t(this, a).notify("seeking", e, i), !h() && d() < e && t(this, a).notify("waiting", void 0, i)), !I() && p() - e < 0.01 && (t(this, a).notify("end", void 0, i), u(this, T, !0), setTimeout(() => {
212
+ const M = n();
213
+ t(this, a).notify("time-change", e, i), Math.abs(M - e) > 1.5 && (t(this, a).notify("seeking", e, i), !h() && d() < e && t(this, a).notify("waiting", void 0, i)), !I() && p() - e < 0.01 && (t(this, a).notify("end", void 0, i), u(this, T, !0), setTimeout(() => {
214
214
  u(this, T, !1);
215
215
  }, 500));
216
- }, J = function(e, i) {
216
+ }, K = function(e, i) {
217
217
  t(this, a).notify("seeked", e, i);
218
218
  }, X = function(e) {
219
219
  var n;
220
220
  const i = t(this, y).call(this);
221
221
  (n = t(this, E)) == null || n.promise.then((h) => {
222
222
  if (!h) return;
223
- const { title: d, poster: p, duration: I, pro: A } = h;
224
- t(this, k).set(A), t(this, a).notify("title-change", d, e), t(this, a).notify("poster-change", p, e), t(this, a).notify("duration-change", I, e), o(this, s, L).call(this, I, e);
223
+ const { title: d, poster: p, duration: I, pro: M } = h;
224
+ t(this, k).set(M), t(this, a).notify("title-change", d, e), t(this, a).notify("poster-change", p, e), t(this, a).notify("duration-change", I, e), o(this, s, L).call(this, I, e);
225
225
  }).catch(() => {
226
226
  i === t(this, y).call(this) && (o(this, s, l).call(this, "getVideoTitle"), o(this, s, l).call(this, "getDuration"));
227
227
  });
@@ -246,7 +246,7 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
246
246
  t(this, a).$state.canPlay() ? t(this, a).notify("duration-change", p, n) : o(this, s, L).call(this, p, n);
247
247
  break;
248
248
  case "getCurrentTime":
249
- o(this, s, H).call(this, i, n);
249
+ o(this, s, J).call(this, i, n);
250
250
  break;
251
251
  case "getBuffered":
252
252
  ke(i) && i.length && o(this, s, x).call(this, i[i.length - 1][1], n);
@@ -335,7 +335,7 @@ he = function(e) {
335
335
  }, F = function() {
336
336
  t(this, P) && (t(this, a).textTracks.remove(t(this, P)), u(this, P, null));
337
337
  }, re = function(e, i) {
338
- t(this, a).qualities[z.enableAuto] = e.some((n) => n.id === "auto") ? () => o(this, s, l).call(this, "setQuality", "auto") : void 0;
338
+ t(this, a).qualities[W.enableAuto] = e.some((n) => n.id === "auto") ? () => o(this, s, l).call(this, "setQuality", "auto") : void 0;
339
339
  for (const n of e) {
340
340
  if (n.id === "auto") continue;
341
341
  const h = +n.id.slice(0, -1);
@@ -354,7 +354,7 @@ he = function(e) {
354
354
  }, D = function({ id: e } = {}, i) {
355
355
  if (!e) return;
356
356
  const n = e === "auto", h = t(this, a).qualities.getById(e);
357
- n ? (t(this, a).qualities[z.setAuto](n, i), t(this, a).qualities[R.select](void 0, !0, i)) : t(this, a).qualities[R.select](h ?? void 0, !0, i);
357
+ n ? (t(this, a).qualities[W.setAuto](n, i), t(this, a).qualities[R.select](void 0, !0, i)) : t(this, a).qualities[R.select](h ?? void 0, !0, i);
358
358
  }, ce = function(e, i, n) {
359
359
  switch (e) {
360
360
  case "ready":
@@ -413,7 +413,7 @@ he = function(e) {
413
413
  break;
414
414
  case "seek":
415
415
  case "seeked":
416
- o(this, s, J).call(this, i.seconds, n);
416
+ o(this, s, K).call(this, i.seconds, n);
417
417
  break;
418
418
  }
419
419
  }, le = function(e, i) {
@@ -427,7 +427,7 @@ he = function(e) {
427
427
  value: i
428
428
  }), n.promise;
429
429
  }, j = function() {
430
- t(this, $).stop(), u(this, v, new C(0, 0)), u(this, E, null), u(this, M, null), t(this, k).set(!1), o(this, s, F).call(this);
430
+ t(this, $).stop(), u(this, v, new C(0, 0)), u(this, E, null), u(this, A, null), t(this, k).set(!1), o(this, s, F).call(this);
431
431
  }, B = function(e) {
432
432
  var i;
433
433
  return (i = t(this, m).get(e)) == null ? void 0 : i.shift();
@@ -1,12 +1,12 @@
1
- var z = Object.defineProperty;
2
- var D = (r) => {
1
+ var A = Object.defineProperty;
2
+ var B = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
- var K = (r, n, e) => n in r ? z(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
6
- var T = (r, n, e) => K(r, typeof n != "symbol" ? n + "" : n, e), M = (r, n, e) => n.has(r) || D("Cannot " + e);
7
- var s = (r, n, e) => (M(r, n, "read from private field"), e ? e.call(r) : n.get(r)), p = (r, n, e) => n.has(r) ? D("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, e), l = (r, n, e, t) => (M(r, n, "write to private field"), t ? t.call(r, e) : n.set(r, e), e), o = (r, n, e) => (M(r, n, "access private method"), e);
8
- import { z as q, K as A, p as G, e as H, b as J, N as Q, M as C, P as W, u as $, R as X } from "./install-CrrAB4P5.js";
9
- import { E as Z } from "./vidstack-DDXt6fpN-BqBO9dqI.js";
5
+ var q = (r, n, e) => n in r ? A(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
6
+ var T = (r, n, e) => q(r, typeof n != "symbol" ? n + "" : n, e), M = (r, n, e) => n.has(r) || B("Cannot " + e);
7
+ var s = (r, n, e) => (M(r, n, "read from private field"), e ? e.call(r) : n.get(r)), p = (r, n, e) => n.has(r) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, e), l = (r, n, e, t) => (M(r, n, "write to private field"), t ? t.call(r, e) : n.set(r, e), e), o = (r, n, e) => (M(r, n, "access private method"), e);
8
+ import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-A9G4M7-6.js";
9
+ import { E as Z } from "./vidstack-DDXt6fpN-2JcEs0WE.js";
10
10
  import { resolveYouTubeVideoId as ee } from "./vidstack-Dm1xEU9Q-qSXq3AI-.js";
11
11
  const b = {
12
12
  Ended: 0,
@@ -15,16 +15,16 @@ const b = {
15
15
  Buffering: 3,
16
16
  Cued: 5
17
17
  };
18
- var a, k, v, S, P, m, y, i, te, se, O, f, j, Y, F, I, R, x, L, _, V, U;
18
+ var a, v, k, S, P, m, y, i, te, se, D, f, j, Y, F, I, R, x, L, O, V, U;
19
19
  class ne extends Z {
20
20
  constructor(e, t) {
21
21
  super(e);
22
22
  p(this, i);
23
23
  T(this, "$$PROVIDER_TYPE", "YOUTUBE");
24
- T(this, "scope", q());
24
+ T(this, "scope", z());
25
25
  p(this, a);
26
- p(this, k, A(""));
27
- p(this, v, -1);
26
+ p(this, v, G(""));
27
+ p(this, k, -1);
28
28
  p(this, S, null);
29
29
  p(this, P, -1);
30
30
  p(this, m, !1);
@@ -58,16 +58,16 @@ class ne extends Z {
58
58
  return "youtube";
59
59
  }
60
60
  get videoId() {
61
- return s(this, k).call(this);
61
+ return s(this, v).call(this);
62
62
  }
63
63
  preconnect() {
64
- G(this.getOrigin());
64
+ H(this.getOrigin());
65
65
  }
66
66
  setup() {
67
- super.setup(), H(o(this, i, O).bind(this)), s(this, a).notify("provider-setup", this);
67
+ super.setup(), J(o(this, i, D).bind(this)), s(this, a).notify("provider-setup", this);
68
68
  }
69
69
  destroy() {
70
- o(this, i, _).call(this);
70
+ o(this, i, O).call(this);
71
71
  const e = "provider destroyed";
72
72
  for (const t of s(this, y).values())
73
73
  for (const { reject: d } of t) d(e);
@@ -92,12 +92,12 @@ class ne extends Z {
92
92
  o(this, i, f).call(this, "setPlaybackRate", e);
93
93
  }
94
94
  async loadSource(e) {
95
- if (!J(e.src)) {
96
- l(this, S, null), s(this, k).set("");
95
+ if (!K(e.src)) {
96
+ l(this, S, null), s(this, v).set("");
97
97
  return;
98
98
  }
99
99
  const t = ee(e.src);
100
- s(this, k).set(t ?? ""), l(this, S, e);
100
+ s(this, v).set(t ?? ""), l(this, S, e);
101
101
  }
102
102
  getOrigin() {
103
103
  return this.cookies ? "https://www.youtube.com" : "https://www.youtube-nocookie.com";
@@ -135,8 +135,8 @@ class ne extends Z {
135
135
  s(this, a).notify("duration-change", e.duration, t);
136
136
  }
137
137
  if ($(e.playbackRate) && e.playbackRate !== h() && s(this, a).notify("rate-change", e.playbackRate, t), e.progressState) {
138
- const { current: g, seekableStart: w, seekableEnd: E, loaded: N, duration: B } = e.progressState;
139
- o(this, i, F).call(this, g, t), o(this, i, I).call(this, N, new C(w, E), t), B !== u() && s(this, a).notify("duration-change", B, t);
138
+ const { current: g, seekableStart: w, seekableEnd: E, loaded: N, duration: _ } = e.progressState;
139
+ o(this, i, F).call(this, g, t), o(this, i, I).call(this, N, new C(w, E), t), _ !== u() && s(this, a).notify("duration-change", _, t);
140
140
  }
141
141
  if ($(e.volume) && X(e.muted) && !s(this, m)) {
142
142
  const g = {
@@ -145,18 +145,18 @@ class ne extends Z {
145
145
  };
146
146
  s(this, a).notify("volume-change", g, t);
147
147
  }
148
- $(e.playerState) && e.playerState !== s(this, v) && o(this, i, L).call(this, e.playerState, t);
148
+ $(e.playerState) && e.playerState !== s(this, k) && o(this, i, L).call(this, e.playerState, t);
149
149
  }
150
150
  }
151
- a = new WeakMap(), k = new WeakMap(), v = new WeakMap(), S = new WeakMap(), P = new WeakMap(), m = new WeakMap(), y = new WeakMap(), i = new WeakSet(), te = function(e) {
151
+ a = new WeakMap(), v = new WeakMap(), k = new WeakMap(), S = new WeakMap(), P = new WeakMap(), m = new WeakMap(), y = new WeakMap(), i = new WeakSet(), te = function(e) {
152
152
  var t;
153
153
  (t = o(this, i, V).call(this, "playVideo")) == null || t.reject(e);
154
154
  }, se = function(e) {
155
155
  var t;
156
156
  (t = o(this, i, V).call(this, "pauseVideo")) == null || t.reject(e);
157
- }, O = function() {
158
- o(this, i, _).call(this);
159
- const e = s(this, k).call(this);
157
+ }, D = function() {
158
+ o(this, i, O).call(this);
159
+ const e = s(this, v).call(this);
160
160
  if (!e) {
161
161
  this.src.set("");
162
162
  return;
@@ -175,7 +175,7 @@ a = new WeakMap(), k = new WeakMap(), v = new WeakMap(), S = new WeakMap(), P =
175
175
  var t;
176
176
  (t = o(this, i, V).call(this, "pauseVideo")) == null || t.resolve(), s(this, a).notify("pause", void 0, e);
177
177
  }, F = function(e, t) {
178
- const { duration: d, realCurrentTime: u } = s(this, a).$state, h = s(this, v) === b.Ended, c = h ? d() : e;
178
+ const { duration: d, realCurrentTime: u } = s(this, a).$state, h = s(this, k) === b.Ended, c = h ? d() : e;
179
179
  s(this, a).notify("time-change", c, t), !h && Math.abs(c - u()) > 1 && s(this, a).notify("seeking", c, t);
180
180
  }, I = function(e, t, d) {
181
181
  const u = {
@@ -221,9 +221,9 @@ a = new WeakMap(), k = new WeakMap(), v = new WeakMap(), S = new WeakMap(), P =
221
221
  o(this, i, x).call(this, t);
222
222
  break;
223
223
  }
224
- l(this, v, e);
225
- }, _ = function() {
226
- l(this, v, -1), l(this, P, -1), l(this, m, !1);
224
+ l(this, k, e);
225
+ }, O = function() {
226
+ l(this, k, -1), l(this, P, -1), l(this, m, !1);
227
227
  }, V = function(e) {
228
228
  var t;
229
229
  return (t = s(this, y).get(e)) == null ? void 0 : t.shift();