@vindral/web-sdk 4.6.0 → 4.7.0-2-g07da00949
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/{BZPrVRbb.js → 6fUfml-Z.js} +8 -2
- package/{BT3QQVZE.js → BEFbWAJ5.js} +16 -16
- package/BK-84KPi.js +375 -0
- package/BdMchGeH.js +169 -0
- package/CuYn2z5X.js +4 -0
- package/{BOdyvABa.js → D40eQS8l.js} +1 -1
- package/{xYchr7Lz.js → DQ5kuB8C.js} +1 -1
- package/{BV8nX-0b.js → LugPxKhp.js} +1279 -1184
- package/README.md +1 -1
- package/{DbdwBdhd.js → XEQIIc9P.js} +171 -174
- package/{BddIq5-p.js → Z7yt7Imj.js} +12 -12
- package/api-client.js +1 -1
- package/cast-sender.d.ts +6 -1
- package/cast-sender.js +1 -1
- package/core.d.ts +29 -7
- package/core.js +2 -3
- package/legacy.d.ts +29 -7
- package/legacy.es.js +3168 -2970
- package/legacy.umd.js +60 -52
- package/package.json +1 -1
- package/player.d.ts +31 -9
- package/player.js +3 -3
- package/react.d.ts +30 -9
- package/vindral-player-component.js +2 -2
- package/{CN8w7_en.js → xBm0mPgv.js} +3630 -3431
- package/BBVSf5AB.js +0 -123
- package/CbyVl6wP.js +0 -59
- package/DTs-C-0Z.js +0 -225
- /package/{B1PhBNUa.js → BaDhuUsA.js} +0 -0
- /package/{BKeRxR4O.js → D1kpe8tT.js} +0 -0
- /package/{94-sTJd8.js → Tj9xPXja.js} +0 -0
package/BBVSf5AB.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./BsfwXDui.js";
|
|
2
|
-
import { t } from "./BKeRxR4O.js";
|
|
3
|
-
//#region ../../libs/utils/src/noop.ts
|
|
4
|
-
var n = () => {}, r = "connection_failed", i = "connection_failed_will_not_attempt_again", a = "authentication_error", o = "authentication_expired", s = "channel_not_found", c = "channel_not_live", l = "no_incoming_data_error", u = "connection_inactivity", d = "missing_init_segment", f = "no_track_context", p = "invalid_track_context_state", m = "disconnected_by_edge", h = "decoder_error", g = "audio_player_error", _ = "unsupported_audio_codec", v = "media_source_error", y = "webgl_context_lost_error", b = "access_forbidden", x = "channel_switch_failed", S = "drm_error", C = class extends Error {
|
|
5
|
-
constructor(n, r, i = {}) {
|
|
6
|
-
super(n), e(this, "props", void 0), e(this, "extra", {}), e(this, "code", () => this.props.code), e(this, "isFatal", () => this.props.isFatal), e(this, "source", () => this.props.source), e(this, "type", () => {
|
|
7
|
-
var e;
|
|
8
|
-
return (e = this.props.type) == null ? "external" : e;
|
|
9
|
-
}), e(this, "toStringifiable", () => {
|
|
10
|
-
var e;
|
|
11
|
-
let n = this.source(), r = n instanceof Error ? n.stack : this.stack;
|
|
12
|
-
return t(t({}, this.extra), {}, {
|
|
13
|
-
code: this.props.code,
|
|
14
|
-
isFatal: this.props.isFatal,
|
|
15
|
-
type: this.props.type,
|
|
16
|
-
message: this.message,
|
|
17
|
-
sourceMessage: (e = this.source()) == null ? void 0 : e.message,
|
|
18
|
-
stack: r
|
|
19
|
-
});
|
|
20
|
-
}), this.props = r, this.extra = i, Object.setPrototypeOf(this, new.target.prototype);
|
|
21
|
-
}
|
|
22
|
-
}, w = (e, t) => new C("MediaElement Error", {
|
|
23
|
-
isFatal: e,
|
|
24
|
-
code: "media_element_error",
|
|
25
|
-
source: t
|
|
26
|
-
}, { mediaErrorCode: t.code }), T = (e, t) => new C("Decoder Error", {
|
|
27
|
-
isFatal: e,
|
|
28
|
-
code: h,
|
|
29
|
-
source: t,
|
|
30
|
-
type: "internal"
|
|
31
|
-
}), E = (e, t, n) => new C(`No decoder available for audio codec "${e}" in non-MSE playback. ${t}`, {
|
|
32
|
-
isFatal: !0,
|
|
33
|
-
code: _,
|
|
34
|
-
source: n,
|
|
35
|
-
type: "external"
|
|
36
|
-
}, {
|
|
37
|
-
codec: e,
|
|
38
|
-
reason: t
|
|
39
|
-
}), D = (e, t) => new C("Audio Player Error", {
|
|
40
|
-
isFatal: e,
|
|
41
|
-
code: g,
|
|
42
|
-
source: t,
|
|
43
|
-
type: "internal"
|
|
44
|
-
}), O = (e, t) => new C(`No init segment for rendition id ${e} for channel ${t}`, {
|
|
45
|
-
isFatal: !1,
|
|
46
|
-
code: d,
|
|
47
|
-
type: "internal"
|
|
48
|
-
}), k = (e, t, n, r) => new C("MediaSource Error", {
|
|
49
|
-
isFatal: e,
|
|
50
|
-
code: v,
|
|
51
|
-
source: t,
|
|
52
|
-
type: "internal"
|
|
53
|
-
}, {
|
|
54
|
-
mediaType: r,
|
|
55
|
-
consecutiveErrorsCount: n
|
|
56
|
-
}), A = (e, t) => new C(`No track context for ${e}${t ? `, rendition id ${t}` : ""}`, {
|
|
57
|
-
isFatal: !1,
|
|
58
|
-
code: f,
|
|
59
|
-
type: "internal"
|
|
60
|
-
}), j = (e, t) => new C(`Track context is in an invalid state for ${e}${t ? `, rendition id ${t}` : ""}`, {
|
|
61
|
-
isFatal: !1,
|
|
62
|
-
code: p,
|
|
63
|
-
type: "internal"
|
|
64
|
-
}), M = () => new C("Web Audio Context resume timeout", {
|
|
65
|
-
isFatal: !1,
|
|
66
|
-
code: "web_audio_context_resume_timeout"
|
|
67
|
-
}), N = (e) => new C("Disconnected From Edge Server", {
|
|
68
|
-
type: "external",
|
|
69
|
-
source: e,
|
|
70
|
-
isFatal: !1,
|
|
71
|
-
code: m
|
|
72
|
-
}), P = (e) => new C("Authentication Failed", {
|
|
73
|
-
isFatal: !0,
|
|
74
|
-
code: a,
|
|
75
|
-
source: e
|
|
76
|
-
}), F = (e) => new C("Authentication Expired", {
|
|
77
|
-
isFatal: !0,
|
|
78
|
-
code: o,
|
|
79
|
-
source: e
|
|
80
|
-
}), I = (e, t) => new C("Connection closed due to inactivity", {
|
|
81
|
-
isFatal: !1,
|
|
82
|
-
code: u,
|
|
83
|
-
source: t,
|
|
84
|
-
type: e
|
|
85
|
-
}), L = (e, t) => new C("Channel not found", {
|
|
86
|
-
isFatal: !1,
|
|
87
|
-
code: s,
|
|
88
|
-
source: t,
|
|
89
|
-
type: e
|
|
90
|
-
}), R = (e) => new C("Waiting for channel to go live", {
|
|
91
|
-
isFatal: !1,
|
|
92
|
-
code: c,
|
|
93
|
-
source: e,
|
|
94
|
-
type: "external"
|
|
95
|
-
}), z = (e) => new C("No Incoming Data", {
|
|
96
|
-
isFatal: !1,
|
|
97
|
-
code: l,
|
|
98
|
-
source: e
|
|
99
|
-
}), B = (e) => new C("Connection attempt failed", {
|
|
100
|
-
isFatal: !1,
|
|
101
|
-
code: r,
|
|
102
|
-
source: e
|
|
103
|
-
}), V = () => new C("Connection failed - no more reconnect attempts", {
|
|
104
|
-
isFatal: !0,
|
|
105
|
-
code: i
|
|
106
|
-
}), H = (e) => new C("WebGL Context Lost", {
|
|
107
|
-
isFatal: !1,
|
|
108
|
-
code: y,
|
|
109
|
-
source: e,
|
|
110
|
-
type: "internal"
|
|
111
|
-
}), U = (e) => new C(e, {
|
|
112
|
-
isFatal: !0,
|
|
113
|
-
code: b
|
|
114
|
-
}), W = (e) => new C(`Channel switch to '${e}' failed`, {
|
|
115
|
-
isFatal: !1,
|
|
116
|
-
code: x
|
|
117
|
-
}), G = (e, t = !1, n) => new C(e, {
|
|
118
|
-
isFatal: t,
|
|
119
|
-
code: S,
|
|
120
|
-
source: n
|
|
121
|
-
});
|
|
122
|
-
//#endregion
|
|
123
|
-
export { A, G as C, k as D, w as E, n as F, B as M, E as N, O, H as P, N as S, j as T, F as _, c as a, W as b, m as c, l as d, C as f, P as g, D as h, s as i, V as j, z as k, u as l, M as m, o as n, i as o, U as p, a as r, r as s, b as t, v as u, L as v, I as w, T as x, R as y };
|
package/CbyVl6wP.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/media/src/aac.ts
|
|
2
|
-
var e = [
|
|
3
|
-
96e3,
|
|
4
|
-
88200,
|
|
5
|
-
64e3,
|
|
6
|
-
48e3,
|
|
7
|
-
44100,
|
|
8
|
-
32e3,
|
|
9
|
-
24e3,
|
|
10
|
-
22050,
|
|
11
|
-
16e3,
|
|
12
|
-
12e3,
|
|
13
|
-
11025,
|
|
14
|
-
8e3,
|
|
15
|
-
7350
|
|
16
|
-
], t = (t, n) => {
|
|
17
|
-
let r = e.indexOf(n);
|
|
18
|
-
if (r === -1 || t < 1 || t > 8 || t === 7) return;
|
|
19
|
-
let i = /* @__PURE__ */ new ArrayBuffer(2), a = new Uint8Array(i), o = t === 8 ? 7 : t;
|
|
20
|
-
return a[0] = 16 | r >> 1, a[1] = (r & 1) << 7 | o << 3, i;
|
|
21
|
-
}, n = (e) => {
|
|
22
|
-
if (!e) return;
|
|
23
|
-
let t = e.channelMappingTable, n = new Uint8Array(19 + t.byteLength), r = new DataView(n.buffer, n.byteOffset, n.byteLength);
|
|
24
|
-
return n.set([
|
|
25
|
-
79,
|
|
26
|
-
112,
|
|
27
|
-
117,
|
|
28
|
-
115,
|
|
29
|
-
72,
|
|
30
|
-
101,
|
|
31
|
-
97,
|
|
32
|
-
100
|
|
33
|
-
], 0), r.setUint8(8, 1), r.setUint8(9, e.channelCount), r.setUint16(10, e.preSkip, !0), r.setUint32(12, e.inputSampleRate, !0), r.setInt16(16, e.outputGain, !0), r.setUint8(18, e.channelMappingFamily), t.byteLength > 0 && n.set(t, 19), n;
|
|
34
|
-
}, r = (e, t) => {
|
|
35
|
-
if (e < 1 || e > 2) return;
|
|
36
|
-
let n = new Uint8Array(19), r = new DataView(n.buffer, n.byteOffset, n.byteLength);
|
|
37
|
-
return n.set([
|
|
38
|
-
79,
|
|
39
|
-
112,
|
|
40
|
-
117,
|
|
41
|
-
115,
|
|
42
|
-
72,
|
|
43
|
-
101,
|
|
44
|
-
97,
|
|
45
|
-
100
|
|
46
|
-
]), r.setUint8(8, 1), r.setUint8(9, e), r.setUint16(10, 3840, !0), r.setUint32(12, t, !0), r.setInt16(16, 0, !0), r.setUint8(18, 0), n;
|
|
47
|
-
}, i = (e) => {
|
|
48
|
-
switch (e) {
|
|
49
|
-
case "opus": return "opus";
|
|
50
|
-
case "aac": return "mp4a.40.2";
|
|
51
|
-
case "mp3": return "mp3";
|
|
52
|
-
default: {
|
|
53
|
-
let t = e;
|
|
54
|
-
throw Error(`Unsupported audio codec: ${t}`);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
export { t as i, r as n, n as r, i as t };
|
package/DTs-C-0Z.js
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./BsfwXDui.js";
|
|
2
|
-
import { i as t, n, t as r } from "./DSw1XhvD.js";
|
|
3
|
-
//#region ../../libs/utils/src/formatting.ts
|
|
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
|
-
PAUSED: "paused",
|
|
6
|
-
MUTED: "muted",
|
|
7
|
-
USER_INTERACTING: "user-interacting",
|
|
8
|
-
IS_CASTING: "is-casting",
|
|
9
|
-
CAST_AVAILABLE: "cast-available",
|
|
10
|
-
CAST_RECEIVER_NAME: "cast-receiver-name",
|
|
11
|
-
BUFFERING: "buffering",
|
|
12
|
-
UI_LOCKED: "ui-locked",
|
|
13
|
-
HIDE_UI_ON_PAUSE: "hide-ui-on-pause",
|
|
14
|
-
FULLSCREEN: "is-fullscreen",
|
|
15
|
-
FULLSCREEN_FALLBACK: "is-fullscreen-fallback",
|
|
16
|
-
RENDITION_LEVELS: "rendition-levels",
|
|
17
|
-
RENDITION_LEVEL: "rendition-level",
|
|
18
|
-
MAX_VIDEO_BITRATE: "max-video-bit-rate",
|
|
19
|
-
MAX_INITIAL_BITRATE: "max-initial-bit-rate",
|
|
20
|
-
ABR_ENABLED: "abr-enabled",
|
|
21
|
-
SIZE_BASED_RESOLUTION_CAP_ENABLED: "size-based-resolution-cap-enabled",
|
|
22
|
-
CHANNELS: "channels",
|
|
23
|
-
CHANNEL_ID: "channel-id",
|
|
24
|
-
CHANNEL_GROUP_ID: "channel-group-id",
|
|
25
|
-
PIP_AVAILABLE: "pip-available",
|
|
26
|
-
IS_PIP: "is-pip",
|
|
27
|
-
AIRPLAY_AVAILABLE: "airplay-available",
|
|
28
|
-
IS_AIRPLAYING: "is-airplaying",
|
|
29
|
-
MEDIA: "media",
|
|
30
|
-
LANGUAGES: "languages",
|
|
31
|
-
LANGUAGE: "language",
|
|
32
|
-
TEXT_TRACKS: "text-tracks",
|
|
33
|
-
TEXT_TRACK: "text-track",
|
|
34
|
-
NEEDS_USER_INPUT_VIDEO: "needs-user-input-video",
|
|
35
|
-
NEEDS_USER_INPUT_AUDIO: "needs-user-input-audio",
|
|
36
|
-
AUTHENTICATION_TOKEN: "authentication-token",
|
|
37
|
-
VOLUME: "volume",
|
|
38
|
-
VOLUME_LEVEL: "volume-level",
|
|
39
|
-
CAST_ENABLED: "cast",
|
|
40
|
-
AIRPLAY_ENABLED: "airplay",
|
|
41
|
-
PIP_ENABLED: "pip",
|
|
42
|
-
FULLSCREEN_ENABLED: "fullscreen",
|
|
43
|
-
DOUBLE_CLICK_FULLSCREEN_ENABLED: "double-click-fullscreen",
|
|
44
|
-
VU_METER_ENABLED: "vu-meter",
|
|
45
|
-
TIMESHIFT_ENABLED: "timeshift",
|
|
46
|
-
TIMESHIFT_POSITION: "timeshift-position",
|
|
47
|
-
TIMELINE_MARKERS: "timeline-markers",
|
|
48
|
-
POSTER_SRC: "poster-src",
|
|
49
|
-
DURATION: "duration",
|
|
50
|
-
DEBUG_PANEL_OPEN: "debug-panel-open",
|
|
51
|
-
TARGET_BUFFER_TIME: "target-buffer-time",
|
|
52
|
-
DRIFT: "drift",
|
|
53
|
-
PLAYBACK_LATENCY: "playback-latency",
|
|
54
|
-
CONNECTION_STATE: "connection-state"
|
|
55
|
-
}, d = Object.values(u), f = {
|
|
56
|
-
PLAY: "play",
|
|
57
|
-
PAUSE: "pause",
|
|
58
|
-
MUTE: "mute",
|
|
59
|
-
UNMUTE: "unmute",
|
|
60
|
-
LOCK_UI: "lock-ui",
|
|
61
|
-
UNLOCK_UI: "unlock-ui",
|
|
62
|
-
ENTER_FULLSCREEN: "enter-fullscreen",
|
|
63
|
-
EXIT_FULLSCREEN: "exit-fullscreen",
|
|
64
|
-
SET_RENDITION: "set-rendition",
|
|
65
|
-
SET_ABR_MODE: "set-abr-mode",
|
|
66
|
-
SET_SIZE_BASED_RESOLUTION_CAP_MODE: "set-size-based-resolution-cap-mode",
|
|
67
|
-
CHANNEL_GRID_OPENED: "channel-grid-opened",
|
|
68
|
-
CHANNEL_GRID_CLOSED: "channel-grid-closed",
|
|
69
|
-
ENTER_PIP: "enter-pip",
|
|
70
|
-
EXIT_PIP: "exit-pip",
|
|
71
|
-
REQUEST_AIRPLAY: "request-airplay",
|
|
72
|
-
SET_LANGUAGE: "set-language",
|
|
73
|
-
SET_TEXT_TRACK: "set-text-track",
|
|
74
|
-
REQUEST_USER_INPUT: "request-user-input",
|
|
75
|
-
SET_VOLUME: "set-volume",
|
|
76
|
-
SEEK: "seek",
|
|
77
|
-
GO_LIVE: "go-live",
|
|
78
|
-
TOGGLE_DEBUG_PANEL: "toggle-debug-panel",
|
|
79
|
-
SET_TARGET_BUFFER_TIME: "set-target-buffer-time"
|
|
80
|
-
};
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region ../../libs/player-next/src/utils/vindralAttributesUtils.ts
|
|
83
|
-
function p(e) {
|
|
84
|
-
return e === "audio" || e === "video" || e === "audio+video" ? e : "audio+video";
|
|
85
|
-
}
|
|
86
|
-
function m(e) {
|
|
87
|
-
return e === "trace" || e === "debug" || e === "info" || e === "warn" || e === "error" || e === "off" ? e : "off";
|
|
88
|
-
}
|
|
89
|
-
function h(e) {
|
|
90
|
-
if (e === null) return;
|
|
91
|
-
let t = e.split(",").map((e) => e.trim()).filter((e) => e === "h264" || e === "h265" || e === "av1");
|
|
92
|
-
if (t.length !== 0) return t;
|
|
93
|
-
}
|
|
94
|
-
function g(e) {
|
|
95
|
-
if (e !== null) try {
|
|
96
|
-
let t = JSON.parse(e);
|
|
97
|
-
if (typeof t == "object" && t) {
|
|
98
|
-
let e = t;
|
|
99
|
-
if (typeof e.width == "number" && typeof e.height == "number") return e;
|
|
100
|
-
}
|
|
101
|
-
} catch (e) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function _(e) {
|
|
106
|
-
if (e !== null) try {
|
|
107
|
-
let t = JSON.parse(e);
|
|
108
|
-
if (typeof t == "object" && t) return t;
|
|
109
|
-
} catch (e) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function v(e) {
|
|
114
|
-
if (e === null) return;
|
|
115
|
-
let t = parseFloat(e);
|
|
116
|
-
return Number.isNaN(t) ? void 0 : t;
|
|
117
|
-
}
|
|
118
|
-
function y(e) {
|
|
119
|
-
return typeof e == "string";
|
|
120
|
-
}
|
|
121
|
-
function b(e, t) {
|
|
122
|
-
if (e === null) return t == null ? void 0 : t;
|
|
123
|
-
let n = e.toLowerCase();
|
|
124
|
-
return n === "false" ? !1 : n === "true" || n === "" || t == null ? !0 : t;
|
|
125
|
-
}
|
|
126
|
-
function x(e, t) {
|
|
127
|
-
return e === null ? t == null ? void 0 : t : e === "" || e.toLowerCase() === "true" ? !0 : e.toLowerCase() === "false" ? !1 : e;
|
|
128
|
-
}
|
|
129
|
-
function S(e) {
|
|
130
|
-
if (e === null) return;
|
|
131
|
-
let t = {}, n = e.split(",");
|
|
132
|
-
for (let e of n) {
|
|
133
|
-
let [n, r] = e.split(":");
|
|
134
|
-
n && r && (t[n.trim()] = r.trim());
|
|
135
|
-
}
|
|
136
|
-
return Object.keys(t).length > 0 ? t : void 0;
|
|
137
|
-
}
|
|
138
|
-
function C(e) {
|
|
139
|
-
if (e === null) return;
|
|
140
|
-
let t = e.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
|
|
141
|
-
return t.length > 0 ? t : void 0;
|
|
142
|
-
}
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region ../../libs/player-next/src/components/VindralButton.ts
|
|
145
|
-
var w = document.createElement("template");
|
|
146
|
-
w.innerHTML = "\n <style>\n :host {\n cursor: pointer;\n color: var(--fg-strong);\n padding: var(--button-padding) !important;\n background: transparent;\n transition: background 0.2s linear;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host(:focus-visible) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n :host(:where(:focus)) {\n box-shadow: none;\n outline: 0;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) {\n background: rgba(255, 255, 255, 0.15);\n }\n }\n\n :host(:active) {\n background: rgba(255, 255, 255, 0.25);\n }\n\n :host(:active) svg {\n scale: 0.9;\n }\n\n :host([disabled]) {\n opacity: 0.5;\n background: transparent;\n }\n\n slot > svg {\n display: block;\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n }\n </style>\n";
|
|
147
|
-
var T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), k = class extends HTMLElement {
|
|
148
|
-
constructor() {
|
|
149
|
-
super(), t(this, T, null), t(this, E, (e) => {
|
|
150
|
-
this.handleClick(e);
|
|
151
|
-
}), t(this, D, (e) => {
|
|
152
|
-
let { key: t } = e;
|
|
153
|
-
if (!this.keysUsed.includes(t)) {
|
|
154
|
-
this.removeEventListener("keyup", r(D, this));
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
this.handleClick(e);
|
|
158
|
-
}), t(this, O, (e) => {
|
|
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
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
this.addEventListener("keyup", r(D, this), { once: !0 });
|
|
165
|
-
}), this.attachShadow({ mode: "open" }).appendChild(w.content.cloneNode(!0));
|
|
166
|
-
}
|
|
167
|
-
get keysUsed() {
|
|
168
|
-
return ["Enter", " "];
|
|
169
|
-
}
|
|
170
|
-
connectedCallback() {
|
|
171
|
-
var e;
|
|
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
|
-
}
|
|
174
|
-
enable() {
|
|
175
|
-
this.addEventListener("click", r(E, this)), this.addEventListener("keydown", r(O, this)), this.tabIndex = 0;
|
|
176
|
-
}
|
|
177
|
-
disable() {
|
|
178
|
-
this.removeEventListener("click", r(E, this)), this.removeEventListener("keydown", r(O, this)), this.removeEventListener("keyup", r(D, this)), this.tabIndex = -1;
|
|
179
|
-
}
|
|
180
|
-
disconnectedCallback() {
|
|
181
|
-
var e;
|
|
182
|
-
(e = r(T, this)) == null || e.disconnectListener(this);
|
|
183
|
-
}
|
|
184
|
-
attributeChangedCallback(e, t, n) {
|
|
185
|
-
e === "disabled" && (y(n) ? this.disable() : this.enable());
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
e(k, "observedAttributes", ["disabled"]);
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/getPrototypeOf.js
|
|
191
|
-
function A(e) {
|
|
192
|
-
return A = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
193
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
194
|
-
}, A(e);
|
|
195
|
-
}
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/superPropBase.js
|
|
198
|
-
function j(e, t) {
|
|
199
|
-
for (; !{}.hasOwnProperty.call(e, t) && (e = A(e)) !== null;);
|
|
200
|
-
return e;
|
|
201
|
-
}
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/get.js
|
|
204
|
-
function M() {
|
|
205
|
-
return M = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(e, t, n) {
|
|
206
|
-
var r = j(e, t);
|
|
207
|
-
if (r) {
|
|
208
|
-
var i = Object.getOwnPropertyDescriptor(r, t);
|
|
209
|
-
return i.get ? i.get.call(arguments.length < 3 ? e : n) : i.value;
|
|
210
|
-
}
|
|
211
|
-
}, M.apply(null, arguments);
|
|
212
|
-
}
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/superPropGet.js
|
|
215
|
-
function N(e, t, n, r) {
|
|
216
|
-
var i = M(A(1 & r ? e.prototype : e), t, n);
|
|
217
|
-
return 2 & r && typeof i == "function" ? function(e) {
|
|
218
|
-
return i.apply(n, e);
|
|
219
|
-
} : i;
|
|
220
|
-
}
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region ../../libs/player-next/src/constants.ts
|
|
223
|
-
var P = 5e3, F = "https://lb.cdn.vindral.com";
|
|
224
|
-
//#endregion
|
|
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 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|