@vindral/web-sdk 4.5.0 → 4.5.1-10-g5556eb794

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,7 +1,7 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { M as n, v as r } from "./C01DcfYu.js";
2
+ import { P as n, b as r } from "./CiWlpwR0.js";
3
3
  import { t as i } from "./DrWNJwZx.js";
4
- import { t as a } from "./RxoWWyzp.js";
4
+ import { t as a } from "./BKeRxR4O.js";
5
5
  //#region ../../libs/wasm-decoders/src/opus/wasm/opus.js
6
6
  var o = (function() {
7
7
  var e = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
@@ -24,9 +24,4 @@ function i(e, t) {
24
24
  return e.get(n(e, t));
25
25
  }
26
26
  //#endregion
27
- //#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateMethodInitSpec.js
28
- function a(t, n) {
29
- e(t, n), n.add(t);
30
- }
31
- //#endregion
32
- export { t as a, n as i, i as n, r, a as t };
27
+ export { e as a, t as i, r as n, n as r, i as t };
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./BsfwXDui.js";
2
- import { a as t, n, r } from "./B7hT-BKr.js";
2
+ import { i as t, n, t as r } from "./DSw1XhvD.js";
3
3
  //#region ../../libs/utils/src/formatting.ts
4
4
  var i = 1e3, a = i * 1e3, o = a * 1e3, s = (e, t, n) => e % t === 0 ? e / t : (e / t).toFixed(n), c = (e, t = 1) => e >= o ? `${s(e, o, t)} Gbit/s` : e >= a ? `${s(e, a, t)} Mbit/s` : e >= i ? `${s(e, i, t)} Kbit/s` : `${e} bit/s`, l = ({ width: e, height: t }) => `${e}x${t}`, u = {
5
5
  PAUSED: "paused",
@@ -151,17 +151,17 @@ var T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /*
151
151
  }), t(this, D, (e) => {
152
152
  let { key: t } = e;
153
153
  if (!this.keysUsed.includes(t)) {
154
- this.removeEventListener("keyup", n(D, this));
154
+ this.removeEventListener("keyup", r(D, this));
155
155
  return;
156
156
  }
157
157
  this.handleClick(e);
158
158
  }), t(this, O, (e) => {
159
- let { metaKey: t, altKey: r, key: i } = e;
160
- if (t || r || !this.keysUsed.includes(i)) {
161
- this.removeEventListener("keyup", n(D, this));
159
+ let { metaKey: t, altKey: n, key: i } = e;
160
+ if (t || n || !this.keysUsed.includes(i)) {
161
+ this.removeEventListener("keyup", r(D, this));
162
162
  return;
163
163
  }
164
- this.addEventListener("keyup", n(D, this), { once: !0 });
164
+ this.addEventListener("keyup", r(D, this), { once: !0 });
165
165
  }), this.attachShadow({ mode: "open" }).appendChild(w.content.cloneNode(!0));
166
166
  }
167
167
  get keysUsed() {
@@ -169,17 +169,17 @@ var T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /*
169
169
  }
170
170
  connectedCallback() {
171
171
  var e;
172
- r(T, this, this.closest("vindral-controller")), (e = n(T, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable(), this.setAttribute("role", "button");
172
+ n(T, this, this.closest("vindral-controller")), (e = r(T, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable(), this.setAttribute("role", "button");
173
173
  }
174
174
  enable() {
175
- this.addEventListener("click", n(E, this)), this.addEventListener("keydown", n(O, this)), this.tabIndex = 0;
175
+ this.addEventListener("click", r(E, this)), this.addEventListener("keydown", r(O, this)), this.tabIndex = 0;
176
176
  }
177
177
  disable() {
178
- this.removeEventListener("click", n(E, this)), this.removeEventListener("keydown", n(O, this)), this.removeEventListener("keyup", n(D, this)), this.tabIndex = -1;
178
+ this.removeEventListener("click", r(E, this)), this.removeEventListener("keydown", r(O, this)), this.removeEventListener("keyup", r(D, this)), this.tabIndex = -1;
179
179
  }
180
180
  disconnectedCallback() {
181
181
  var e;
182
- (e = n(T, this)) == null || e.disconnectListener(this);
182
+ (e = r(T, this)) == null || e.disconnectListener(this);
183
183
  }
184
184
  attributeChangedCallback(e, t, n) {
185
185
  e === "disabled" && (y(n) ? this.disable() : this.enable());
@@ -220,6 +220,6 @@ function N(e, t, n, r) {
220
220
  }
221
221
  //#endregion
222
222
  //#region ../../libs/player-next/src/constants.ts
223
- var P = 5e3;
223
+ var P = 5e3, F = "https://lb.cdn.vindral.com";
224
224
  //#endregion
225
- export { d as _, _ as a, m as c, p as d, v as f, u as g, f as h, y as i, S as l, h as m, N as n, b as o, C as p, k as r, x as s, P as t, g as u, c as v, l as y };
225
+ export { u as _, y as a, l as b, x as c, g as d, p as f, f as g, h, k as i, m as l, C as m, F as n, _ as o, v as p, N as r, b as s, P as t, S as u, d as v, c as y };