@webitel/ui-sdk 26.6.33 → 26.6.35
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/dist/AgentStatus.enum-C3IGHtvR.js +9 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/caseConverters-DXegZoCt.js +27 -0
- package/dist/chunk-CY3AvKd6.js +20 -0
- package/dist/clients-A6MHYfOX.js +36118 -0
- package/dist/components-B4aAS7wB.js +5391 -0
- package/dist/composables-DnDH-KUv.js +263 -0
- package/dist/convertDuration-1K7fuEpO.js +8 -0
- package/dist/debounce-DrmECuJ2.js +128 -0
- package/dist/deep-copy-CQw5yeEH.js +41 -0
- package/dist/displayText-CtaxzaBz.js +3 -0
- package/dist/dist-05Bf47Wg.js +87 -0
- package/dist/dist-BYiYpK00.js +7 -0
- package/dist/dist-Dz55hlwp.js +1371 -0
- package/dist/engineCallFileType-D7QVFOac.js +11 -0
- package/dist/enums-pbYAJNeb.js +158 -0
- package/dist/errors-SUXKojVW.js +69 -0
- package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
- package/dist/generateInstance-ppTIeLX4.js +2582 -0
- package/dist/isObject-Dgs_L5xI.js +11 -0
- package/dist/logger-hl3ueNok.js +47 -0
- package/dist/prod-Cp0BjuxI.js +775 -0
- package/dist/prod-DSuxcp5t.js +2 -0
- package/dist/side-channel-Cyte-MzW.js +833 -0
- package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
- package/dist/srt-parser-DdH5U08c.js +21 -0
- package/dist/ssa-parser-Bjs7yDD1.js +184 -0
- package/dist/ui-sdk.css +2 -1
- package/dist/ui-sdk.js +34541 -4
- package/dist/ui-sdk.umd.cjs +7740 -7606
- package/dist/useExpansion-DVdIpoOn.js +24 -0
- package/dist/useValidation-DG0tifBv.js +37 -0
- package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
- package/dist/useWtTable-tqmVOvve.js +12 -0
- package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
- package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
- package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
- package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
- package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
- package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
- package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
- package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
- package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
- package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
- package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
- package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
- package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
- package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
- package/dist/vidstack-audio-B58bvsna.js +23 -0
- package/dist/vidstack-dash-CX-LTHx3.js +332 -0
- package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
- package/dist/vidstack-hls-CLzdTFu6.js +269 -0
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
- package/dist/vidstack-video-XtP8iTBc.js +151 -0
- package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
- package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
- package/dist/vue-i18n-B8Px6VcD.js +2201 -0
- package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
- package/dist/wt-button-DENbrKdy.js +785 -0
- package/dist/wt-button-select-BnRHgJ4i.js +80 -0
- package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
- package/dist/wt-chat-emoji-wdBt1XzD.js +2208 -0
- package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
- package/dist/wt-context-menu-yW52oF-2.js +89 -0
- package/dist/wt-copy-action-d9gVzAsB.js +38 -0
- package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
- package/dist/wt-display-chip-items-CvMM8WMk.js +34 -0
- package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
- package/dist/wt-dummy-CLjhRWZ6.js +59 -0
- package/dist/wt-error-page-vhu4lIyF.js +62 -0
- package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
- package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
- package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
- package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
- package/dist/wt-galleria-CWXKuZTD.js +224 -0
- package/dist/wt-icon-action-CQlZHMDB.js +100 -0
- package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
- package/dist/wt-icon-pxO7IjwV.js +1026 -0
- package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
- package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
- package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
- package/dist/wt-page-header-CDbd4aOh.js +59 -0
- package/dist/wt-pagination-BA_PZPIE.js +94 -0
- package/dist/wt-player-uidPXSTe.js +287 -0
- package/dist/wt-popover-CJZH3wMl.js +98 -0
- package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
- package/dist/wt-search-bar-CWZdvAOf.js +123 -0
- package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
- package/dist/wt-send-message-popup-D0GJMGni.js +77 -0
- package/dist/wt-slider-BS3SoGht.js +68 -0
- package/dist/wt-start-page-eN1PEokc.js +86 -0
- package/dist/wt-status-select-A5t6Vjm4.js +101 -0
- package/dist/wt-stepper-B6zpd1Uh.js +41 -0
- package/dist/wt-table-D0FynxIE.js +364 -0
- package/dist/wt-table-actions-4-peSVkc.js +63 -0
- package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
- package/dist/wt-tabs-DuOgj-lZ.js +60 -0
- package/dist/wt-time-input-CO2cop3y.js +62 -0
- package/dist/wt-timepicker-BltFF1QD.js +145 -0
- package/dist/wt-tree-ZyoPrNOl.js +1206 -0
- package/dist/wt-tree-table-MLET4gIv.js +221 -0
- package/dist/wt-type-extension-value-input-fnNxJLsq.js +104 -0
- package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
- package/package.json +5 -5
- package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +2 -2
- package/dist/contacts-C-FnP7wP.js +0 -49654
- package/dist/displayText-Cbh4IOfM.js +0 -5
- package/dist/engineCallFileType-yaadA7-2.js +0 -8
- package/dist/errors-CTL-RV3B.js +0 -70
- package/dist/index-BBLSS-t1.js +0 -50
- package/dist/install-DOSuNFtE.js +0 -53489
- package/dist/isObject-CMQJaQIp.js +0 -28
- package/dist/prod-BoQuiIB3.js +0 -973
- package/dist/srt-parser-CsN7bp5E.js +0 -26
- package/dist/ssa-parser-BJOOPeQF.js +0 -200
- package/dist/useExpansion-BrQ40HiR.js +0 -24
- package/dist/useVidstackSrc-MfWBq7Ef.js +0 -1341
- package/dist/vidstack-Bq6c3Bam-C_T8PkmG.js +0 -426
- package/dist/vidstack-D2pY00kU-CphVKcJq.js +0 -136
- package/dist/vidstack-DDXt6fpN-2lNfj8Ca.js +0 -51
- package/dist/vidstack-D_-9AA6_-Cyl8HzDm.js +0 -21
- package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
- package/dist/vidstack-DqAw8m9J-C2p9K7Db.js +0 -22
- package/dist/vidstack-audio-BL-Sa_Ap.js +0 -28
- package/dist/vidstack-dash-mKhgfurw.js +0 -393
- package/dist/vidstack-google-cast-BGqSw2iP.js +0 -383
- package/dist/vidstack-hls-U5fTV3hj.js +0 -310
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
- package/dist/vidstack-video-Bxf7KDne.js +0 -164
- package/dist/vidstack-vimeo-MngSXtDR.js +0 -452
- package/dist/vidstack-youtube-Ctg91VeX.js +0 -233
- package/dist/wt-action-bar-DaDcqA4n.js +0 -102
- package/dist/wt-button-select-q_BITVhH.js +0 -105
- package/dist/wt-call-media-action-BkBcZN17.js +0 -60
- package/dist/wt-chat-emoji-BGuSgYi3.js +0 -2909
- package/dist/wt-confirm-dialog-C7-74ROm.js +0 -92
- package/dist/wt-context-menu-CzAHMaOj.js +0 -104
- package/dist/wt-copy-action-BpckAObd.js +0 -60
- package/dist/wt-datepicker-DauMnf2r.js +0 -5660
- package/dist/wt-display-chip-items-zcqxH89_.js +0 -47
- package/dist/wt-dual-panel-Cj79kJpk.js +0 -66
- package/dist/wt-dummy-BUHYAcsk.js +0 -104
- package/dist/wt-error-page-CNSqDA-o.js +0 -89
- package/dist/wt-expansion-card-CtcuXg6f.js +0 -56
- package/dist/wt-expansion-panel-BU2Hb-N2.js +0 -54
- package/dist/wt-filters-panel-wrapper-BlLlAixc.js +0 -75
- package/dist/wt-galleria-BQzGD6-3.js +0 -323
- package/dist/wt-inline-add-panel-fG58a6T3.js +0 -49
- package/dist/wt-navigation-menu-2ggfyrM_.js +0 -159
- package/dist/wt-notifications-bar-Epn_SA_R.js +0 -79
- package/dist/wt-page-header-DdsnoLgd.js +0 -115
- package/dist/wt-pagination-Byg79HfY.js +0 -144
- package/dist/wt-player-kjdJYVi3.js +0 -291
- package/dist/wt-popover-Di-7_rDL.js +0 -4
- package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
- package/dist/wt-screen-recordings-action-Z3x-gI0n.js +0 -54
- package/dist/wt-search-bar-CxwSi-Xo.js +0 -144
- package/dist/wt-selection-popup-MdCfrgcd.js +0 -109
- package/dist/wt-send-message-popup-DklTgoGj.js +0 -579
- package/dist/wt-slider-BEkw4KGp.js +0 -4
- package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
- package/dist/wt-start-page-B59KbWqX.js +0 -99
- package/dist/wt-status-select-hOAr_xBg.js +0 -138
- package/dist/wt-stepper-CMeW3d6N.js +0 -65
- package/dist/wt-table-C5CLtnK5.js +0 -426
- package/dist/wt-table-actions-DgAfy-dd.js +0 -79
- package/dist/wt-table-column-select-BK5rozpI.js +0 -128
- package/dist/wt-tabs-Bn6rSg0s.js +0 -74
- package/dist/wt-time-input-DYiW0ijt.js +0 -42
- package/dist/wt-timepicker-CkjoLwXC.js +0 -118
- package/dist/wt-tree-CCvr4TTF.js +0 -2777
- package/dist/wt-tree-table-BWmGF3rE.js +0 -285
- package/dist/wt-type-extension-value-input-q5286OSO.js +0 -121
- package/dist/wt-vidstack-player-CTWna35Q.js +0 -9093
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { H as e, I as t, N as n, S as r, X as i, a, r as o, w as s } from "./vidstack-BGSTndAW-CyKM_CM4.js";
|
|
2
|
+
import { n as c } from "./vidstack-CTojmhKq-D7sZJxgm.js";
|
|
3
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-DYbwIVLq.js
|
|
4
|
+
function l(e, t) {
|
|
5
|
+
return t >= e.startTime && t < e.endTime;
|
|
6
|
+
}
|
|
7
|
+
function u(n, a, o) {
|
|
8
|
+
let s = null, c = r();
|
|
9
|
+
function l() {
|
|
10
|
+
let r = t(a) ? [a] : a, l = n.toArray().find((e) => r.includes(e.kind) && e.mode === "showing");
|
|
11
|
+
if (l !== s) {
|
|
12
|
+
if (!l) {
|
|
13
|
+
o(null), s = null;
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
l.readyState == 2 ? o(l) : (o(null), i(() => {
|
|
17
|
+
let t = e(l, "load", () => {
|
|
18
|
+
o(l), t();
|
|
19
|
+
}, { once: !0 });
|
|
20
|
+
}, c)), s = l;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return l(), e(n, "mode-change", l);
|
|
24
|
+
}
|
|
25
|
+
function d(t, n, r) {
|
|
26
|
+
u(t, n, (t) => {
|
|
27
|
+
if (!t) {
|
|
28
|
+
r("");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let n = () => {
|
|
32
|
+
let e = t?.activeCues[0];
|
|
33
|
+
r(e?.text || "");
|
|
34
|
+
};
|
|
35
|
+
n(), e(t, "cue-change", n);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-Ci54COQW.js
|
|
40
|
+
var f = {
|
|
41
|
+
crossOrigin: Symbol(0),
|
|
42
|
+
readyState: Symbol(0),
|
|
43
|
+
updateActiveCues: Symbol(0),
|
|
44
|
+
canLoad: Symbol(0),
|
|
45
|
+
onModeChange: Symbol(0),
|
|
46
|
+
native: Symbol(0),
|
|
47
|
+
nativeHLS: Symbol(0)
|
|
48
|
+
}, p = class extends a {
|
|
49
|
+
static createId(e) {
|
|
50
|
+
return `vds-${e.type}-${e.kind}-${e.src ?? e.label ?? "?"}`;
|
|
51
|
+
}
|
|
52
|
+
src;
|
|
53
|
+
content;
|
|
54
|
+
type;
|
|
55
|
+
encoding;
|
|
56
|
+
id = "";
|
|
57
|
+
label = "";
|
|
58
|
+
language = "";
|
|
59
|
+
kind;
|
|
60
|
+
default = !1;
|
|
61
|
+
#e = !1;
|
|
62
|
+
#t = 0;
|
|
63
|
+
#n = "disabled";
|
|
64
|
+
#r = {};
|
|
65
|
+
#i = [];
|
|
66
|
+
#a = [];
|
|
67
|
+
#o = [];
|
|
68
|
+
[f.readyState] = 0;
|
|
69
|
+
[f.crossOrigin];
|
|
70
|
+
[f.onModeChange] = null;
|
|
71
|
+
[f.native] = null;
|
|
72
|
+
get metadata() {
|
|
73
|
+
return this.#r;
|
|
74
|
+
}
|
|
75
|
+
get regions() {
|
|
76
|
+
return this.#i;
|
|
77
|
+
}
|
|
78
|
+
get cues() {
|
|
79
|
+
return this.#a;
|
|
80
|
+
}
|
|
81
|
+
get activeCues() {
|
|
82
|
+
return this.#o;
|
|
83
|
+
}
|
|
84
|
+
get readyState() {
|
|
85
|
+
return this[f.readyState];
|
|
86
|
+
}
|
|
87
|
+
get mode() {
|
|
88
|
+
return this.#n;
|
|
89
|
+
}
|
|
90
|
+
set mode(e) {
|
|
91
|
+
this.setMode(e);
|
|
92
|
+
}
|
|
93
|
+
constructor(e) {
|
|
94
|
+
super();
|
|
95
|
+
for (let t of Object.keys(e)) this[t] = e[t];
|
|
96
|
+
this.type ||= "vtt", e.content ? this.#s(e) : e.src || (this[f.readyState] = 2);
|
|
97
|
+
}
|
|
98
|
+
addCue(e, t) {
|
|
99
|
+
let n = 0, r = this.#a.length;
|
|
100
|
+
for (n = 0; n < r && !(e.endTime <= this.#a[n].startTime); n++);
|
|
101
|
+
n === r ? this.#a.push(e) : this.#a.splice(n, 0, e), e instanceof TextTrackCue || this[f.native]?.track.addCue(e), this.dispatchEvent(new o("add-cue", {
|
|
102
|
+
detail: e,
|
|
103
|
+
trigger: t
|
|
104
|
+
})), l(e, this.#t) && this[f.updateActiveCues](this.#t, t);
|
|
105
|
+
}
|
|
106
|
+
removeCue(e, t) {
|
|
107
|
+
let n = this.#a.indexOf(e);
|
|
108
|
+
if (n >= 0) {
|
|
109
|
+
let r = this.#o.includes(e);
|
|
110
|
+
this.#a.splice(n, 1), this[f.native]?.track.removeCue(e), this.dispatchEvent(new o("remove-cue", {
|
|
111
|
+
detail: e,
|
|
112
|
+
trigger: t
|
|
113
|
+
})), r && this[f.updateActiveCues](this.#t, t);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
setMode(e, t) {
|
|
117
|
+
this.#n !== e && (this.#n = e, e === "disabled" ? (this.#o = [], this.#f()) : this.readyState === 2 ? this[f.updateActiveCues](this.#t, t) : this.#c(), this.dispatchEvent(new o("mode-change", {
|
|
118
|
+
detail: this,
|
|
119
|
+
trigger: t
|
|
120
|
+
})), this[f.onModeChange]?.());
|
|
121
|
+
}
|
|
122
|
+
[f.updateActiveCues](e, t) {
|
|
123
|
+
if (this.#t = e, this.mode === "disabled" || !this.#a.length) return;
|
|
124
|
+
let n = [];
|
|
125
|
+
for (let t = 0, r = this.#a.length; t < r; t++) {
|
|
126
|
+
let r = this.#a[t];
|
|
127
|
+
l(r, e) && n.push(r);
|
|
128
|
+
}
|
|
129
|
+
let r = n.length !== this.#o.length;
|
|
130
|
+
if (!r) {
|
|
131
|
+
for (let e = 0; e < n.length; e++) if (!this.#o.includes(n[e])) {
|
|
132
|
+
r = !0;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
this.#o = n, r && this.#f(t);
|
|
137
|
+
}
|
|
138
|
+
[f.canLoad]() {
|
|
139
|
+
this.#e = !0, this.#n !== "disabled" && this.#c();
|
|
140
|
+
}
|
|
141
|
+
#s(e) {
|
|
142
|
+
import("./prod-DSuxcp5t.js").then(({ parseText: n, VTTCue: r, VTTRegion: i }) => {
|
|
143
|
+
!t(e.content) || e.type === "json" ? (this.#d(e.content, r, i), this.readyState !== 3 && this.#l()) : n(e.content, { type: e.type }).then(({ cues: e, regions: t }) => {
|
|
144
|
+
this.#a = e, this.#i = t, this.#l();
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
async #c() {
|
|
149
|
+
if (!(!this.#e || this[f.readyState] > 0)) {
|
|
150
|
+
if (this[f.readyState] = 1, this.dispatchEvent(new o("load-start")), !this.src) {
|
|
151
|
+
this.#l();
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
try {
|
|
155
|
+
let { parseResponse: e, VTTCue: t, VTTRegion: n } = await import("./prod-DSuxcp5t.js"), r = this[f.crossOrigin]?.(), i = fetch(this.src, {
|
|
156
|
+
headers: this.type === "json" ? { "Content-Type": "application/json" } : void 0,
|
|
157
|
+
credentials: c(r)
|
|
158
|
+
});
|
|
159
|
+
if (this.type === "json") this.#d(await (await i).text(), t, n);
|
|
160
|
+
else {
|
|
161
|
+
let { errors: t, metadata: n, regions: r, cues: a } = await e(i, {
|
|
162
|
+
type: this.type,
|
|
163
|
+
encoding: this.encoding
|
|
164
|
+
});
|
|
165
|
+
if (t[0]?.code === 0) throw t[0];
|
|
166
|
+
this.#r = n, this.#i = r, this.#a = a;
|
|
167
|
+
}
|
|
168
|
+
this.#l();
|
|
169
|
+
} catch (e) {
|
|
170
|
+
this.#u(e);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
#l() {
|
|
175
|
+
if (this[f.readyState] = 2, !this.src || this.type !== "vtt") {
|
|
176
|
+
let e = this[f.native];
|
|
177
|
+
if (e && !e.managed) for (let t of this.#a) e.track.addCue(t);
|
|
178
|
+
}
|
|
179
|
+
let e = new o("load");
|
|
180
|
+
this[f.updateActiveCues](this.#t, e), this.dispatchEvent(e);
|
|
181
|
+
}
|
|
182
|
+
#u(e) {
|
|
183
|
+
this[f.readyState] = 3, this.dispatchEvent(new o("error", { detail: e }));
|
|
184
|
+
}
|
|
185
|
+
#d(e, t, n) {
|
|
186
|
+
try {
|
|
187
|
+
let { regions: r, cues: i } = g(e, t, n);
|
|
188
|
+
this.#i = r, this.#a = i;
|
|
189
|
+
} catch (e) {
|
|
190
|
+
this.#u(e);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
#f(e) {
|
|
194
|
+
this.dispatchEvent(new o("cue-change", { trigger: e }));
|
|
195
|
+
}
|
|
196
|
+
}, m = /captions|subtitles/;
|
|
197
|
+
function h(e) {
|
|
198
|
+
return m.test(e.kind);
|
|
199
|
+
}
|
|
200
|
+
function g(e, r, i) {
|
|
201
|
+
let a = t(e) ? JSON.parse(e) : e, o = [], c = [];
|
|
202
|
+
return a.regions && i && (o = a.regions.map((e) => Object.assign(new i(), e))), (a.cues || s(a)) && (c = (s(a) ? a : a.cues).filter((e) => n(e.startTime) && n(e.endTime)).map((e) => Object.assign(new r(0, 0, ""), e))), {
|
|
203
|
+
regions: o,
|
|
204
|
+
cues: c
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
export { u as a, l as i, f as n, d as o, h as r, p as t };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { K as e } from "./vidstack-BGSTndAW-CyKM_CM4.js";
|
|
2
|
+
import { c as t, i as n, r } from "./useVidstackSrc-DfNrFbOO.js";
|
|
3
|
+
import { r as i } from "./vidstack-CTojmhKq-D7sZJxgm.js";
|
|
4
|
+
import { c as a, i as o, l as s, n as c, o as l, r as u, t as d, u as f } from "./vidstack-BQlOPwOu-ChhdffAJ.js";
|
|
5
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-D2pY00kU.js
|
|
6
|
+
var p = class {
|
|
7
|
+
name = "google-cast";
|
|
8
|
+
target;
|
|
9
|
+
#e;
|
|
10
|
+
get cast() {
|
|
11
|
+
return d();
|
|
12
|
+
}
|
|
13
|
+
mediaType() {
|
|
14
|
+
return "video";
|
|
15
|
+
}
|
|
16
|
+
canPlay(e) {
|
|
17
|
+
return r && !n && t(e);
|
|
18
|
+
}
|
|
19
|
+
async prompt(t) {
|
|
20
|
+
let n, r, i;
|
|
21
|
+
try {
|
|
22
|
+
n = await this.#t(t), this.#e || (this.#e = new cast.framework.RemotePlayer(), new cast.framework.RemotePlayerController(this.#e)), r = t.player.createEvent("google-cast-prompt-open", { trigger: n }), t.player.dispatchEvent(r), this.#i(t, "connecting", r), await this.#n(e(t.$props.googleCast)), t.$state.remotePlaybackInfo.set({ deviceName: o()?.getCastDevice().friendlyName }), f() && this.#i(t, "connected", r);
|
|
23
|
+
} catch (e) {
|
|
24
|
+
let a = e instanceof Error ? e : this.#a((e + "").toUpperCase(), "Prompt failed.");
|
|
25
|
+
throw i = t.player.createEvent("google-cast-prompt-error", {
|
|
26
|
+
detail: a,
|
|
27
|
+
trigger: r ?? n,
|
|
28
|
+
cancelable: !0
|
|
29
|
+
}), t.player.dispatch(i), this.#i(t, f() ? "connected" : "disconnected", i), a;
|
|
30
|
+
} finally {
|
|
31
|
+
t.player.dispatch("google-cast-prompt-close", { trigger: i ?? r ?? n });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async load(e) {
|
|
35
|
+
if (!this.#e) throw Error("[vidstack] google cast player was not initialized");
|
|
36
|
+
return new (await (import("./vidstack-google-cast-Co5Q_rfL.js"))).GoogleCastProvider(this.#e, e);
|
|
37
|
+
}
|
|
38
|
+
async #t(e) {
|
|
39
|
+
if (a()) return;
|
|
40
|
+
let t = e.player.createEvent("google-cast-load-start");
|
|
41
|
+
e.player.dispatch(t), await i(u()), await customElements.whenDefined("google-cast-launcher");
|
|
42
|
+
let n = e.player.createEvent("google-cast-loaded", { trigger: t });
|
|
43
|
+
if (e.player.dispatch(n), !s()) throw this.#a("CAST_NOT_AVAILABLE", "Google Cast not available on this platform.");
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
async #n(e) {
|
|
47
|
+
this.#r(e);
|
|
48
|
+
let t = await this.cast.requestSession();
|
|
49
|
+
if (t) throw this.#a(t.toUpperCase(), c(t));
|
|
50
|
+
}
|
|
51
|
+
#r(e) {
|
|
52
|
+
this.cast?.setOptions({
|
|
53
|
+
...l(),
|
|
54
|
+
...e
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
#i(e, t, n) {
|
|
58
|
+
let r = {
|
|
59
|
+
type: "google-cast",
|
|
60
|
+
state: t
|
|
61
|
+
};
|
|
62
|
+
e.notify("remote-playback-change", r, n);
|
|
63
|
+
}
|
|
64
|
+
#a(e, t) {
|
|
65
|
+
let n = Error(t);
|
|
66
|
+
return n.code = e, n;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
export { p as GoogleCastLoader };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-D5EzK014.js
|
|
2
|
+
var e = {
|
|
3
|
+
add: Symbol(0),
|
|
4
|
+
remove: Symbol(0),
|
|
5
|
+
reset: Symbol(0),
|
|
6
|
+
select: Symbol(0),
|
|
7
|
+
readonly: Symbol(0),
|
|
8
|
+
setReadonly: Symbol(0),
|
|
9
|
+
onReset: Symbol(0),
|
|
10
|
+
onRemove: Symbol(0),
|
|
11
|
+
onUserSelect: Symbol(0)
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { $ as e, H as t, I as n, K as r, v as i } from "./vidstack-BGSTndAW-CyKM_CM4.js";
|
|
2
|
+
import { t as a } from "./vidstack-CTojmhKq-D7sZJxgm.js";
|
|
3
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-DDXt6fpN.js
|
|
4
|
+
var o = class {
|
|
5
|
+
#e;
|
|
6
|
+
src = e("");
|
|
7
|
+
referrerPolicy = null;
|
|
8
|
+
get iframe() {
|
|
9
|
+
return this.#e;
|
|
10
|
+
}
|
|
11
|
+
constructor(e) {
|
|
12
|
+
this.#e = e, e.setAttribute("frameBorder", "0"), e.setAttribute("aria-hidden", "true"), e.setAttribute("allow", "autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope"), this.referrerPolicy !== null && e.setAttribute("referrerpolicy", this.referrerPolicy);
|
|
13
|
+
}
|
|
14
|
+
setup() {
|
|
15
|
+
t(window, "message", this.#n.bind(this)), t(this.#e, "load", this.onLoad.bind(this)), i(this.#t.bind(this));
|
|
16
|
+
}
|
|
17
|
+
#t() {
|
|
18
|
+
let e = this.src();
|
|
19
|
+
if (!e.length) {
|
|
20
|
+
this.#e.setAttribute("src", "");
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
let t = r(() => this.buildParams());
|
|
24
|
+
this.#e.setAttribute("src", a(e, t));
|
|
25
|
+
}
|
|
26
|
+
postMessage(e, t) {
|
|
27
|
+
this.#e.contentWindow?.postMessage(JSON.stringify(e), t ?? "*");
|
|
28
|
+
}
|
|
29
|
+
#n(e) {
|
|
30
|
+
let t = this.getOrigin();
|
|
31
|
+
if ((e.source === null || e.source === this.#e?.contentWindow) && (!n(t) || t === e.origin)) {
|
|
32
|
+
try {
|
|
33
|
+
let t = JSON.parse(e.data);
|
|
34
|
+
t && this.onMessage(t, e);
|
|
35
|
+
return;
|
|
36
|
+
} catch {}
|
|
37
|
+
e.data && this.onMessage(e.data, e);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { o as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { s as e, v as t } from "./vidstack-BGSTndAW-CyKM_CM4.js";
|
|
2
|
+
import { a as n, i as r } from "./vidstack-C2US-gSO-DeIgENrW.js";
|
|
3
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-D_-9AA6_.js
|
|
4
|
+
var i = /* @__PURE__ */ n("<svg viewBox=\"0 0 32 32\" fill=\"none\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"></svg>");
|
|
5
|
+
function a(n, a) {
|
|
6
|
+
let o = r(i);
|
|
7
|
+
o.innerHTML = e, n.append(o);
|
|
8
|
+
let s = document.createElement("span");
|
|
9
|
+
s.classList.add("vds-google-cast-info"), n.append(s);
|
|
10
|
+
let c = document.createElement("span");
|
|
11
|
+
c.classList.add("vds-google-cast-device-name"), t(() => {
|
|
12
|
+
let { remotePlaybackInfo: e } = a, t = e();
|
|
13
|
+
return t?.deviceName && (c.textContent = t.deviceName, s.append("Google Cast on ", c)), () => {
|
|
14
|
+
s.textContent = "";
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { a as insertContent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-Dihypf8P.js
|
|
2
|
+
function e(e, t = 2) {
|
|
3
|
+
return Number(e.toFixed(t));
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return String(e).split(".")[1]?.length ?? 0;
|
|
7
|
+
}
|
|
8
|
+
function n(e, t, n) {
|
|
9
|
+
return Math.max(e, Math.min(n, t));
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as n, e as r, n as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-Dm1xEU9Q.js
|
|
2
|
+
var e = /(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/, t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
3
|
+
function r(t) {
|
|
4
|
+
return t.match(e)?.[1];
|
|
5
|
+
}
|
|
6
|
+
async function i(e, r) {
|
|
7
|
+
if (t.has(e)) return t.get(e);
|
|
8
|
+
if (n.has(e)) return n.get(e);
|
|
9
|
+
let i = new Promise(async (n) => {
|
|
10
|
+
for (let i of [
|
|
11
|
+
"maxresdefault",
|
|
12
|
+
"sddefault",
|
|
13
|
+
"hqdefault"
|
|
14
|
+
]) for (let o of [!0, !1]) {
|
|
15
|
+
let s = a(e, i, o);
|
|
16
|
+
if ((await fetch(s, {
|
|
17
|
+
mode: "no-cors",
|
|
18
|
+
signal: r.signal
|
|
19
|
+
})).status < 400) {
|
|
20
|
+
t.set(e, s), n(s);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}).catch(() => "").finally(() => n.delete(e));
|
|
25
|
+
return n.set(e, i), i;
|
|
26
|
+
}
|
|
27
|
+
function a(e, t, n) {
|
|
28
|
+
return `https://i.ytimg.com/${n ? "vi_webp" : "vi"}/${e}/${t}.${n ? "webp" : "jpg"}`;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { i as findYouTubePoster, r as resolveYouTubeVideoId };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { N as e, R as t } from "./vidstack-BGSTndAW-CyKM_CM4.js";
|
|
2
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-DqAw8m9J.js
|
|
3
|
+
var n = class {
|
|
4
|
+
#e;
|
|
5
|
+
#t;
|
|
6
|
+
constructor(e) {
|
|
7
|
+
this.#t = e;
|
|
8
|
+
}
|
|
9
|
+
start() {
|
|
10
|
+
t(this.#e) && this.#n();
|
|
11
|
+
}
|
|
12
|
+
stop() {
|
|
13
|
+
e(this.#e) && window.cancelAnimationFrame(this.#e), this.#e = void 0;
|
|
14
|
+
}
|
|
15
|
+
#n() {
|
|
16
|
+
this.#e = window.requestAnimationFrame(() => {
|
|
17
|
+
t(this.#e) || (this.#t(), this.#n());
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { X as e } from "./vidstack-BGSTndAW-CyKM_CM4.js";
|
|
2
|
+
import { n as t, t as n } from "./vidstack-Bq6c3Bam-3dCf_D36.js";
|
|
3
|
+
//#region node_modules/vidstack/prod/providers/vidstack-audio.js
|
|
4
|
+
var r = class extends t {
|
|
5
|
+
$$PROVIDER_TYPE = "AUDIO";
|
|
6
|
+
get type() {
|
|
7
|
+
return "audio";
|
|
8
|
+
}
|
|
9
|
+
airPlay;
|
|
10
|
+
constructor(t, r) {
|
|
11
|
+
super(t, r), e(() => {
|
|
12
|
+
this.airPlay = new n(this.media, r);
|
|
13
|
+
}, this.scope);
|
|
14
|
+
}
|
|
15
|
+
setup() {
|
|
16
|
+
super.setup(), this.type === "audio" && this.ctx.notify("provider-setup", this);
|
|
17
|
+
}
|
|
18
|
+
get audio() {
|
|
19
|
+
return this.media;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { r as AudioProvider };
|