@webitel/ui-sdk 26.6.57 → 26.6.59
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/{clients-Wwy51tyT.js → clients-BDtL1Ajm.js} +5 -5
- package/dist/{components-DfHInAL6.js → components-CK9vGYUg.js} +725 -719
- package/dist/{composables-C2o78NEs.js → composables-Ckg9IFyC.js} +3 -3
- package/dist/{debounce-DPzXwiOS.js → debounce-Bp3jy7S5.js} +2 -2
- package/dist/{deep-copy-CQw5yeEH.js → deep-copy-CTgLtgMO.js} +1 -1
- package/dist/{dist-BYiYpK00.js → dist-CAOIU8xq.js} +1 -1
- package/dist/{dist-05Bf47Wg.js → dist-Crpfx4FA.js} +1 -1
- package/dist/dist-uCh8HaP3.js +1910 -0
- package/dist/{floating-ui.dom-n2j9PKCB.js → floating-ui.dom-Ch9ml4Rx.js} +322 -352
- package/dist/{generateInstance-BD4pC4PS.js → generateInstance-C9d7J_TX.js} +1137 -869
- package/dist/{chunk-CY3AvKd6.js → rolldown-runtime-BEcgMyyN.js} +8 -1
- package/dist/{side-channel-Cyte-MzW.js → side-channel-8SnAuRMA.js} +18 -18
- package/dist/ui-sdk.js +819 -25965
- package/dist/ui-sdk.umd.cjs +1810 -7442
- package/dist/{useValidation-C43ysfVZ.js → useValidation-B0voza7s.js} +1 -1
- package/dist/{useVidstackSrc-jCDCYTce.js → useVidstackSrc-epUQZhkL.js} +6 -4
- package/dist/{useWtTable-tqmVOvve.js → useWtTable-DrrvvB6k.js} +1 -1
- package/dist/vidstack-BLEs9rMG-Agxpv9v8.js +11 -0
- package/dist/{vidstack-video-IgjC6GLU.js → vidstack-C6nBVWwn-BlZqtkYB.js} +11 -11
- package/dist/{vidstack-C9vIqaYT-C1EgPq17.js → vidstack-CDOoBnJL-BCwLE1fB.js} +2 -2
- package/dist/{vidstack-Bq6c3Bam-hoRopLll.js → vidstack-CI5oafcm-DAV7Lilr.js} +38 -37
- package/dist/{vidstack-D_-9AA6_-Dq3APB0-.js → vidstack-CXo4cwSP2-6kDG00FC.js} +3 -3
- package/dist/{vidstack-Dihypf8P-ibWMCHK-.js → vidstack-CZQo98ic-D3uTuzB9.js} +1 -1
- package/dist/{vidstack-DDXt6fpN-Don_e6LS.js → vidstack-CceZzgm4-C37rtwSQ.js} +13 -13
- package/dist/{vidstack-ChQTHmIQ-nTO94M6P.js → vidstack-CdfyZegh-Bn47J4h6.js} +3 -3
- package/dist/{vidstack-C2US-gSO-DeIgENrW.js → vidstack-CgfrU1hS-CNTJkyzm.js} +26 -26
- package/dist/{vidstack-BGSTndAW-CyKM_CM4.js → vidstack-D9mvYVIz-DesuYgKV.js} +179 -278
- package/dist/{vidstack-BQlOPwOu-ChhdffAJ.js → vidstack-DATGlkSz2-BnlUxvSa.js} +2 -2
- package/dist/{vidstack-D2pY00kU-dXPuSPZl.js → vidstack-DUnfBERX2-Cl6yTfB3.js} +6 -6
- package/dist/{vidstack-Ci54COQW-CAAXpwzv.js → vidstack-DYPyTdYw-BzqKxwCK.js} +49 -44
- package/dist/vidstack-IMa-zkAV-DevzBPj3.js +35 -0
- package/dist/{vidstack-B01xzxC4-DeYSgDZy.js → vidstack-_E7LrUjK-DaCLs8ge.js} +1 -1
- package/dist/{vidstack-audio-CCSR8cXr.js → vidstack-audio-CH4wIf0F.js} +2 -2
- package/dist/{vidstack-dash-CNcNULYU.js → vidstack-dash-CmlmZIFT.js} +31 -32
- package/dist/{vidstack-google-cast-Co5Q_rfL.js → vidstack-google-cast-COyApZ_Z.js} +17 -18
- package/dist/{vidstack-hls-BP6P23Cc.js → vidstack-hls-D1sxUvBd.js} +70 -71
- package/dist/vidstack-ijoHbXQB-DBClSWHE.js +32 -0
- package/dist/{vidstack-CTojmhKq-D7sZJxgm.js → vidstack-mvRkf9tF-CoFf7dS9.js} +7 -7
- package/dist/vidstack-q-9soyHT-CiZ4hFSF.js +50 -0
- package/dist/vidstack-video-iy3-Vo1A.js +2 -0
- package/dist/{vidstack-vimeo-EzzPpggD.js → vidstack-vimeo-BhNQpz6m.js} +58 -58
- package/dist/{vidstack-youtube-C1_NAfWa.js → vidstack-youtube-BIhUrYs-.js} +33 -30
- package/dist/{vue-i18n-B8Px6VcD.js → vue-i18n-lTFLGg_9.js} +796 -728
- package/dist/{wt-action-bar-B6AJf7QX.js → wt-action-bar-B17FBHD7.js} +1 -1
- package/dist/{wt-button-BieXVsvP.js → wt-button-0kP5bPMs.js} +1 -1
- package/dist/{wt-chat-emoji-CLfk3JVt.js → wt-chat-emoji-BiPhHNuw.js} +180 -155
- package/dist/{wt-datepicker-BhOalZat.js → wt-datepicker-baNcFWZ1.js} +764 -764
- package/dist/{wt-display-chip-items-BUWlvHn2.js → wt-display-chip-items-xm8cHws_.js} +1 -1
- package/dist/{wt-expansion-card-CJr62Q0Q.js → wt-expansion-card-C2qETdn0.js} +1 -1
- package/dist/{wt-galleria-B34y1Swo.js → wt-galleria-DL3svAQs.js} +2 -2
- package/dist/{wt-icon-0grToL89.js → wt-icon-DIdpwmpC.js} +220 -218
- package/dist/{wt-icon-action-D1Vq_ixS.js → wt-icon-action-C8WN2oVD.js} +1 -1
- package/dist/{wt-icon-btn-Czg40DXn.js → wt-icon-btn-BLnhJADA.js} +1 -1
- package/dist/{wt-notifications-bar-OGD1cukw.js → wt-notifications-bar-Dx1YPqFu.js} +6 -6
- package/dist/{wt-pagination-CZuQFM3-.js → wt-pagination-G2ZGU4Pi.js} +1 -1
- package/dist/{wt-player-YrvPar8x.js → wt-player-CCwEyUzv.js} +5 -5
- package/dist/{wt-popover-CJin-2BO.js → wt-popover-BdwrokVy.js} +1 -1
- package/dist/{wt-search-bar-gN_xHkW3.js → wt-search-bar-CiQJ9ViN.js} +2 -2
- package/dist/{wt-selection-popup-B77UY7Yu.js → wt-selection-popup-Bh9D7VtA.js} +1 -1
- package/dist/{wt-send-message-popup-pvipgSrX.js → wt-send-message-popup-D07uZ7eL.js} +3 -3
- package/dist/{wt-slider-BS3SoGht.js → wt-slider-BPzRTeYU.js} +1 -1
- package/dist/{wt-start-page-eN1PEokc.js → wt-start-page-DMXRhA9E.js} +1 -1
- package/dist/{wt-table-DK0LjVC0.js → wt-table-25p4E01H.js} +2 -2
- package/dist/{wt-table-column-select-DFF6z3a3.js → wt-table-column-select-C3ma6jxK.js} +3 -3
- package/dist/{wt-timepicker-FhXfhuFl.js → wt-timepicker-DyM1OQX4.js} +2 -2
- package/dist/{wt-toast-DrD3sFlE.js → wt-toast-KTAx-8zA.js} +2 -2
- package/dist/{wt-tree-ZyoPrNOl.js → wt-tree-DZ9ErOGj.js} +22 -12
- package/dist/{wt-tree-table-D1XoKDVw.js → wt-tree-table-BlZEw4tr.js} +2 -2
- package/dist/{wt-type-extension-value-input-B2fSsZQc.js → wt-type-extension-value-input-Tlnn-d1W.js} +3 -3
- package/dist/{wt-vidstack-player-DwCYvtSh.js → wt-vidstack-player-Dvto6FG2.js} +1600 -1452
- package/package.json +2 -2
- package/src/components/wt-toast/wt-toast.vue +2 -2
- package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -6
- package/types/components/wt-input-number/wt-input-number.vue.d.ts +2 -2
- package/types/components/wt-input-text/wt-input-text.vue.d.ts +2 -2
- package/types/components/wt-switcher/wt-switcher.vue.d.ts +2 -2
- package/types/components/wt-table/wt-table.vue.d.ts +1 -1
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +1 -9
- package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -5
- package/types/modules/AuditForm/components/audit-form.vue.d.ts +4 -10
- package/dist/dist-Dz55hlwp.js +0 -1371
- package/dist/usetoast-BECIyaas.js +0 -10
- package/dist/vidstack-D5EzK014-DOe01V3H.js +0 -14
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +0 -31
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +0 -22
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +0 -30
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as c, y as l } from "./useVidstackSrc-
|
|
3
|
-
import { i as u, r as d } from "./vidstack-
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as v } from "./vidstack-C9vIqaYT-C1EgPq17.js";
|
|
1
|
+
import { E as e, F as t, G as n, L as r, V as i, f as a, r as o, v as s } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
import { r as c, y as l } from "./useVidstackSrc-epUQZhkL.js";
|
|
3
|
+
import { i as u, r as d } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
|
|
4
|
+
import { n as f, t as p } from "./vidstack-ijoHbXQB-DBClSWHE.js";
|
|
5
|
+
import { n as m, t as h } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
|
|
6
|
+
import { t as g } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
|
|
7
|
+
import { t as _ } from "./vidstack-C6nBVWwn-BlZqtkYB.js";
|
|
8
|
+
import { n as v } from "./vidstack-CDOoBnJL-BCwLE1fB.js";
|
|
10
9
|
//#region node_modules/vidstack/prod/providers/vidstack-hls.js
|
|
11
10
|
var y = (e) => a(e), b = class {
|
|
12
11
|
#e;
|
|
@@ -22,18 +21,18 @@ var y = (e) => a(e), b = class {
|
|
|
22
21
|
this.#e = e, this.#t = t;
|
|
23
22
|
}
|
|
24
23
|
setup(e) {
|
|
25
|
-
let { streamType:
|
|
26
|
-
this.#n = new e({
|
|
24
|
+
let { streamType: t } = this.#t.$state, r = n(t).includes("live"), a = n(t).includes("ll-"), o = this.#n = new e({
|
|
27
25
|
lowLatencyMode: a,
|
|
28
|
-
backBufferLength: a ? 4 :
|
|
26
|
+
backBufferLength: a ? 4 : r ? 8 : void 0,
|
|
29
27
|
renderTextTracksNatively: !1,
|
|
30
28
|
...this.config
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
}), c = (e) => (t, n) => {
|
|
30
|
+
this.#n === o && e(t, n);
|
|
31
|
+
}, l = c(this.#c.bind(this));
|
|
32
|
+
for (let t of Object.values(e.Events)) o.on(t, l);
|
|
33
|
+
o.on(e.Events.ERROR, c(this.#h.bind(this)));
|
|
34
|
+
for (let e of this.#i) e(o);
|
|
35
|
+
this.#t.player.dispatch("hls-instance", { detail: o }), o.attachMedia(this.#e), o.on(e.Events.AUDIO_TRACK_SWITCHED, c(this.#d.bind(this))), o.on(e.Events.LEVEL_SWITCHED, c(this.#f.bind(this))), o.on(e.Events.LEVEL_LOADED, c(this.#m.bind(this, o))), o.on(e.Events.LEVEL_UPDATED, c(this.#p.bind(this))), o.on(e.Events.NON_NATIVE_TEXT_TRACKS_FOUND, c(this.#l.bind(this, o))), o.on(e.Events.CUES_PARSED, c(this.#u.bind(this, o))), this.#t.qualities[g.enableAuto] = this.#_.bind(this), i(this.#t.qualities, "change", this.#v.bind(this)), i(this.#t.audioTracks, "change", this.#y.bind(this)), this.#r = s(this.#o.bind(this));
|
|
37
36
|
}
|
|
38
37
|
#a(e, t) {
|
|
39
38
|
return new o(y(e), { detail: t });
|
|
@@ -49,27 +48,27 @@ var y = (e) => a(e), b = class {
|
|
|
49
48
|
#c(e, t) {
|
|
50
49
|
this.#t.player?.dispatch(this.#a(e, t));
|
|
51
50
|
}
|
|
52
|
-
#l(e, t) {
|
|
53
|
-
let
|
|
54
|
-
for (let
|
|
55
|
-
let
|
|
56
|
-
id: `hls-${
|
|
57
|
-
src:
|
|
58
|
-
label:
|
|
59
|
-
language:
|
|
60
|
-
kind:
|
|
61
|
-
default:
|
|
51
|
+
#l(e, t, n) {
|
|
52
|
+
let r = this.#a(t, n), i = -1;
|
|
53
|
+
for (let t = 0; t < n.tracks.length; t++) {
|
|
54
|
+
let a = n.tracks[t], o = a.subtitleTrack ?? a.closedCaptions, s = new h({
|
|
55
|
+
id: `hls-${a.kind}-${t}`,
|
|
56
|
+
src: o?.url,
|
|
57
|
+
label: a.label,
|
|
58
|
+
language: o?.lang,
|
|
59
|
+
kind: a.kind,
|
|
60
|
+
default: a.default
|
|
62
61
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}, this.#t.textTracks.add(
|
|
62
|
+
s[m.readyState] = 2, s[m.onModeChange] = () => {
|
|
63
|
+
this.#n === e && (s.mode === "showing" ? (e.subtitleTrack = t, i = t) : i === t && (e.subtitleTrack = -1, i = -1));
|
|
64
|
+
}, this.#t.textTracks.add(s, r);
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
|
-
#u(e, t) {
|
|
69
|
-
let
|
|
70
|
-
if (!
|
|
71
|
-
let
|
|
72
|
-
for (let e of
|
|
67
|
+
#u(e, t, n) {
|
|
68
|
+
let r = e.subtitleTrack, i = this.#t.textTracks.getById(`hls-${n.type}-${r}`);
|
|
69
|
+
if (!i) return;
|
|
70
|
+
let a = this.#a(t, n);
|
|
71
|
+
for (let e of n.cues) e.positionAlign = "auto", i.addCue(e, a);
|
|
73
72
|
}
|
|
74
73
|
#d(e, t) {
|
|
75
74
|
let n = this.#t.audioTracks[t.id];
|
|
@@ -88,32 +87,32 @@ var y = (e) => a(e), b = class {
|
|
|
88
87
|
#p(e, t) {
|
|
89
88
|
t.details.totalduration > 0 && this.#t.$state.inferredLiveDVRWindow.set(t.details.totalduration);
|
|
90
89
|
}
|
|
91
|
-
#m(e, t) {
|
|
90
|
+
#m(e, t, n) {
|
|
92
91
|
if (this.#t.$state.canPlay()) return;
|
|
93
|
-
let
|
|
94
|
-
|
|
95
|
-
let c = this.#n
|
|
96
|
-
this.#
|
|
97
|
-
for (let
|
|
98
|
-
let
|
|
99
|
-
id:
|
|
100
|
-
label:
|
|
101
|
-
language:
|
|
92
|
+
let r = e.media;
|
|
93
|
+
if (!r) return;
|
|
94
|
+
let { type: i, live: a, totalduration: s, targetduration: c } = n.details, l = this.#a(t, n);
|
|
95
|
+
this.#t.notify("stream-type-change", a ? i === "EVENT" && Number.isFinite(s) && c >= 10 ? "live:dvr" : "live" : "on-demand", l), this.#t.notify("duration-change", s, l), e.currentLevel === -1 && this.#t.qualities[g.setAuto](!0, l);
|
|
96
|
+
for (let t of e.audioTracks) {
|
|
97
|
+
let e = {
|
|
98
|
+
id: t.id.toString(),
|
|
99
|
+
label: t.name,
|
|
100
|
+
language: t.lang || "",
|
|
102
101
|
kind: "main"
|
|
103
102
|
};
|
|
104
|
-
this.#t.audioTracks[p.add](
|
|
103
|
+
this.#t.audioTracks[p.add](e, l);
|
|
105
104
|
}
|
|
106
|
-
for (let
|
|
107
|
-
let
|
|
108
|
-
id:
|
|
109
|
-
width:
|
|
110
|
-
height:
|
|
111
|
-
codec:
|
|
112
|
-
bitrate:
|
|
105
|
+
for (let t of e.levels) {
|
|
106
|
+
let e = {
|
|
107
|
+
id: t.id?.toString() ?? t.height + "p",
|
|
108
|
+
width: t.width,
|
|
109
|
+
height: t.height,
|
|
110
|
+
codec: t.codecSet,
|
|
111
|
+
bitrate: t.bitrate
|
|
113
112
|
};
|
|
114
|
-
this.#t.qualities[p.add](
|
|
113
|
+
this.#t.qualities[p.add](e, l);
|
|
115
114
|
}
|
|
116
|
-
|
|
115
|
+
r.dispatchEvent(new o("canplay", { trigger: l }));
|
|
117
116
|
}
|
|
118
117
|
#h(e, t) {
|
|
119
118
|
if (t.fatal) switch (t.type) {
|
|
@@ -147,7 +146,7 @@ var y = (e) => a(e), b = class {
|
|
|
147
146
|
return this.#i.add(e), () => this.#i.delete(e);
|
|
148
147
|
}
|
|
149
148
|
loadSource(e) {
|
|
150
|
-
|
|
149
|
+
t(e.src) && this.#n?.loadSource(e.src);
|
|
151
150
|
}
|
|
152
151
|
destroy() {
|
|
153
152
|
this.#n?.destroy(), this.#n = null, this.#r?.(), this.#r = null;
|
|
@@ -164,8 +163,8 @@ var y = (e) => a(e), b = class {
|
|
|
164
163
|
onLoadStart: this.#i.bind(this),
|
|
165
164
|
onLoaded: this.#a.bind(this),
|
|
166
165
|
onLoadError: this.#o.bind(this)
|
|
167
|
-
},
|
|
168
|
-
return
|
|
166
|
+
}, n = await C(this.#e, e);
|
|
167
|
+
return r(n) && !t(this.#e) && (n = await S(this.#e, e)), n ? n.isSupported() ? n : (this.#t.player.dispatch(new o("hls-unsupported")), this.#t.notify("error", {
|
|
169
168
|
message: "[vidstack] `hls.js` is not supported in this environment",
|
|
170
169
|
code: 4
|
|
171
170
|
}), null) : null;
|
|
@@ -186,7 +185,7 @@ var y = (e) => a(e), b = class {
|
|
|
186
185
|
}
|
|
187
186
|
};
|
|
188
187
|
async function S(e, t = {}) {
|
|
189
|
-
if (!
|
|
188
|
+
if (!r(e)) {
|
|
190
189
|
if (t.onLoadStart?.(), e.prototype && e.prototype !== Function) return t.onLoaded?.(e), e;
|
|
191
190
|
try {
|
|
192
191
|
let n = (await e())?.default;
|
|
@@ -198,19 +197,19 @@ async function S(e, t = {}) {
|
|
|
198
197
|
}
|
|
199
198
|
}
|
|
200
199
|
}
|
|
201
|
-
async function C(
|
|
202
|
-
if (n
|
|
200
|
+
async function C(n, r = {}) {
|
|
201
|
+
if (t(n)) {
|
|
203
202
|
r.onLoadStart?.();
|
|
204
203
|
try {
|
|
205
|
-
if (await d(
|
|
206
|
-
let
|
|
207
|
-
return r.onLoaded?.(
|
|
204
|
+
if (await d(n), !e(window.Hls)) throw Error("");
|
|
205
|
+
let t = window.Hls;
|
|
206
|
+
return r.onLoaded?.(t), t;
|
|
208
207
|
} catch (e) {
|
|
209
208
|
r.onLoadError?.(e);
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
211
|
}
|
|
213
|
-
var w = "https://cdn.jsdelivr.net", T = class extends
|
|
212
|
+
var w = "https://cdn.jsdelivr.net", T = class extends _ {
|
|
214
213
|
$$PROVIDER_TYPE = "HLS";
|
|
215
214
|
#e = null;
|
|
216
215
|
#t = new b(this.video, this.ctx);
|
|
@@ -241,21 +240,21 @@ var w = "https://cdn.jsdelivr.net", T = class extends g {
|
|
|
241
240
|
this.#n = e;
|
|
242
241
|
}
|
|
243
242
|
preconnect() {
|
|
244
|
-
|
|
243
|
+
t(this.#n) && u(this.#n);
|
|
245
244
|
}
|
|
246
245
|
setup() {
|
|
247
246
|
super.setup(), new x(this.#n, this.ctx, (e) => {
|
|
248
247
|
this.#e = e, this.#t.setup(e), this.ctx.notify("provider-setup", this);
|
|
249
|
-
let t =
|
|
248
|
+
let t = n(this.ctx.$state.source);
|
|
250
249
|
t && this.loadSource(t);
|
|
251
250
|
});
|
|
252
251
|
}
|
|
253
|
-
async loadSource(e,
|
|
254
|
-
if (!
|
|
252
|
+
async loadSource(e, n) {
|
|
253
|
+
if (!t(e.src)) {
|
|
255
254
|
this.removeSource();
|
|
256
255
|
return;
|
|
257
256
|
}
|
|
258
|
-
this.media.preload =
|
|
257
|
+
this.media.preload = n || "", this.appendSource(e, "application/x-mpegurl"), this.#t.loadSource(e), this.currentSrc = e;
|
|
259
258
|
}
|
|
260
259
|
onInstance(e) {
|
|
261
260
|
let t = this.#t.instance;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { L as e, M as t } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-ijoHbXQB.js
|
|
3
|
+
var n = {
|
|
4
|
+
add: Symbol(0),
|
|
5
|
+
remove: Symbol(0),
|
|
6
|
+
reset: Symbol(0),
|
|
7
|
+
select: Symbol(0),
|
|
8
|
+
readonly: Symbol(0),
|
|
9
|
+
setReadonly: Symbol(0),
|
|
10
|
+
onReset: Symbol(0),
|
|
11
|
+
onRemove: Symbol(0),
|
|
12
|
+
onUserSelect: Symbol(0)
|
|
13
|
+
}, r = class {
|
|
14
|
+
#e;
|
|
15
|
+
#t;
|
|
16
|
+
constructor(e) {
|
|
17
|
+
this.#t = e;
|
|
18
|
+
}
|
|
19
|
+
start() {
|
|
20
|
+
e(this.#e) && this.#n();
|
|
21
|
+
}
|
|
22
|
+
stop() {
|
|
23
|
+
t(this.#e) && window.cancelAnimationFrame(this.#e), this.#e = void 0;
|
|
24
|
+
}
|
|
25
|
+
#n() {
|
|
26
|
+
this.#e = window.requestAnimationFrame(() => {
|
|
27
|
+
e(this.#e) || (this.#t(), this.#n());
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { r as n, n as t };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region node_modules/vidstack/prod/chunks/vidstack-
|
|
1
|
+
import { F as e, g as t, j as n } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-mvRkf9tF.js
|
|
3
3
|
function r(e, t) {
|
|
4
4
|
let n = new URL(e);
|
|
5
5
|
for (let e of Object.keys(t)) n.searchParams.set(e, t[e] + "");
|
|
6
6
|
return n.toString();
|
|
7
7
|
}
|
|
8
|
-
function i(e,
|
|
9
|
-
if (!
|
|
8
|
+
function i(e, t = "preconnect") {
|
|
9
|
+
if (!n(document.querySelector(`link[href="${e}"]`))) return !0;
|
|
10
10
|
let r = document.createElement("link");
|
|
11
|
-
return r.rel =
|
|
11
|
+
return r.rel = t, r.href = e, r.crossOrigin = "true", document.head.append(r), !0;
|
|
12
12
|
}
|
|
13
13
|
var a = {};
|
|
14
14
|
function o(e) {
|
|
15
15
|
if (a[e]) return a[e].promise;
|
|
16
|
-
let r =
|
|
17
|
-
if (!
|
|
16
|
+
let r = t();
|
|
17
|
+
if (!n(document.querySelector(`script[src="${e}"]`))) return r.resolve(), r.promise;
|
|
18
18
|
a[e] = r;
|
|
19
19
|
let i = document.createElement("script");
|
|
20
20
|
return i.src = e, i.onload = () => {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { t as e } from "./vidstack-BLEs9rMG-Agxpv9v8.js";
|
|
2
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-q-9soyHT.js
|
|
3
|
+
var t = /* @__PURE__ */ e({
|
|
4
|
+
getVimeoVideoInfo: () => s,
|
|
5
|
+
resolveVimeoVideoId: () => o
|
|
6
|
+
}), n = /(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 1920;
|
|
7
|
+
function o(e) {
|
|
8
|
+
let t = e.match(n);
|
|
9
|
+
return {
|
|
10
|
+
videoId: t?.[1],
|
|
11
|
+
hash: t?.[2]
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
async function s(e, t, n) {
|
|
15
|
+
if (r.has(e)) return r.get(e);
|
|
16
|
+
if (i.has(e)) return i.get(e);
|
|
17
|
+
let a = `https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/${e}`;
|
|
18
|
+
n && (a = a.concat(`?h=${n}`));
|
|
19
|
+
let o = window.fetch(a, {
|
|
20
|
+
mode: "cors",
|
|
21
|
+
signal: t.signal
|
|
22
|
+
}).then((e) => e.json()).then((t) => {
|
|
23
|
+
let n = {
|
|
24
|
+
title: t?.title ?? "",
|
|
25
|
+
duration: t?.duration ?? 0,
|
|
26
|
+
poster: c(t),
|
|
27
|
+
pro: t.account_type !== "basic"
|
|
28
|
+
};
|
|
29
|
+
return r.set(e, n), n;
|
|
30
|
+
}).finally(() => i.delete(e));
|
|
31
|
+
return i.set(e, o), o;
|
|
32
|
+
}
|
|
33
|
+
function c(e) {
|
|
34
|
+
let t = e?.thumbnail_url ?? "", n = t.match(/vimeocdn\.com\/video\/([^_/?#]+)_/)?.[1];
|
|
35
|
+
if (!n) return t;
|
|
36
|
+
let r = l(e);
|
|
37
|
+
return r ? `https://i.vimeocdn.com/video/${n}_${r.width}x${r.height}.webp` : t;
|
|
38
|
+
}
|
|
39
|
+
function l(e) {
|
|
40
|
+
let t = e.width || e.thumbnail_width, n = e.height || e.thumbnail_height;
|
|
41
|
+
return !t || !n ? null : t > n ? {
|
|
42
|
+
width: a,
|
|
43
|
+
height: Math.round(a * n / t)
|
|
44
|
+
} : {
|
|
45
|
+
width: Math.round(a * t / n),
|
|
46
|
+
height: a
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { s as getVimeoVideoInfo, o as resolveVimeoVideoId, t as utils_exports };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as c } from "./vidstack-
|
|
3
|
-
import { getVimeoVideoInfo as l, resolveVimeoVideoId as u } from "./vidstack-
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as g } from "./vidstack-DDXt6fpN-Don_e6LS.js";
|
|
1
|
+
import { C as e, F as t, G as n, Q as r, V as i, g as a, h as o, v as s } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
import { i as c } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
|
|
3
|
+
import { getVimeoVideoInfo as l, resolveVimeoVideoId as u } from "./vidstack-q-9soyHT-CiZ4hFSF.js";
|
|
4
|
+
import { n as d, t as f } from "./vidstack-ijoHbXQB-DBClSWHE.js";
|
|
5
|
+
import { t as p } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
|
|
6
|
+
import { t as m } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
|
|
7
|
+
import { t as h } from "./vidstack-CdfyZegh-Bn47J4h6.js";
|
|
8
|
+
import { t as g } from "./vidstack-CceZzgm4-C37rtwSQ.js";
|
|
10
9
|
//#region node_modules/vidstack/prod/providers/vidstack-vimeo.js
|
|
11
10
|
var _ = [
|
|
12
11
|
"bufferend",
|
|
@@ -31,11 +30,11 @@ var _ = [
|
|
|
31
30
|
"waiting"
|
|
32
31
|
], v = class extends g {
|
|
33
32
|
$$PROVIDER_TYPE = "VIMEO";
|
|
34
|
-
scope =
|
|
33
|
+
scope = o();
|
|
35
34
|
fullscreen;
|
|
36
35
|
#e;
|
|
37
|
-
#t =
|
|
38
|
-
#n =
|
|
36
|
+
#t = r("");
|
|
37
|
+
#n = r(!1);
|
|
39
38
|
#r = null;
|
|
40
39
|
#i = null;
|
|
41
40
|
#a = !1;
|
|
@@ -81,7 +80,7 @@ var _ = [
|
|
|
81
80
|
c(this.getOrigin());
|
|
82
81
|
}
|
|
83
82
|
setup() {
|
|
84
|
-
super.setup(),
|
|
83
|
+
super.setup(), s(this.#f.bind(this)), s(this.#p.bind(this)), s(this.#m.bind(this)), this.#e.notify("provider-setup", this);
|
|
85
84
|
}
|
|
86
85
|
destroy() {
|
|
87
86
|
this.#R(), this.fullscreen = void 0;
|
|
@@ -101,18 +100,18 @@ var _ = [
|
|
|
101
100
|
this.#L("seekTo", e), this.#e.notify("seeking", e);
|
|
102
101
|
}
|
|
103
102
|
setVolume(e) {
|
|
104
|
-
this.#L("setVolume", e), this.#L("setMuted",
|
|
103
|
+
this.#L("setVolume", e), this.#L("setMuted", n(this.#e.$state.muted));
|
|
105
104
|
}
|
|
106
105
|
setPlaybackRate(e) {
|
|
107
106
|
this.#L("setPlaybackRate", e);
|
|
108
107
|
}
|
|
109
108
|
async loadSource(e) {
|
|
110
|
-
if (!
|
|
109
|
+
if (!t(e.src)) {
|
|
111
110
|
this.#i = null, this.#r = null, this.#t.set("");
|
|
112
111
|
return;
|
|
113
112
|
}
|
|
114
|
-
let { videoId:
|
|
115
|
-
this.#t.set(
|
|
113
|
+
let { videoId: n, hash: r } = u(e.src);
|
|
114
|
+
this.#t.set(n ?? ""), this.#r = r ?? null, this.#i = e;
|
|
116
115
|
}
|
|
117
116
|
#f() {
|
|
118
117
|
this.#R();
|
|
@@ -126,7 +125,7 @@ var _ = [
|
|
|
126
125
|
#p() {
|
|
127
126
|
let e = this.#t();
|
|
128
127
|
if (!e) return;
|
|
129
|
-
let t =
|
|
128
|
+
let t = a(), n = new AbortController();
|
|
130
129
|
return this.#d = t, l(e, n, this.#r).then((e) => {
|
|
131
130
|
t.resolve(e);
|
|
132
131
|
}).catch((e) => {
|
|
@@ -136,10 +135,10 @@ var _ = [
|
|
|
136
135
|
};
|
|
137
136
|
}
|
|
138
137
|
#m() {
|
|
139
|
-
let e = this.#n(), { $state:
|
|
140
|
-
if (
|
|
141
|
-
if (
|
|
142
|
-
let e =
|
|
138
|
+
let e = this.#n(), { $state: t, qualities: n } = this.#e;
|
|
139
|
+
if (t.canSetPlaybackRate.set(e), n[f.setReadonly](!e), e) return i(n, "change", () => {
|
|
140
|
+
if (n.auto) return;
|
|
141
|
+
let e = n.selected?.id;
|
|
143
142
|
e && this.#L("setQuality", e);
|
|
144
143
|
});
|
|
145
144
|
}
|
|
@@ -197,33 +196,34 @@ var _ = [
|
|
|
197
196
|
};
|
|
198
197
|
this.#e.delegate.ready(i, t), r || this.#L("_hideOverlay"), this.#L("getQualities"), this.#L("getChapters");
|
|
199
198
|
}
|
|
200
|
-
#x(
|
|
201
|
-
switch (
|
|
199
|
+
#x(t, r, i) {
|
|
200
|
+
switch (t) {
|
|
202
201
|
case "getVideoTitle":
|
|
203
|
-
let
|
|
204
|
-
this.#e.notify("title-change",
|
|
202
|
+
let t = r;
|
|
203
|
+
this.#e.notify("title-change", t, i);
|
|
205
204
|
break;
|
|
206
205
|
case "getDuration":
|
|
207
|
-
let
|
|
208
|
-
this.#e.$state.canPlay() ? this.#e.notify("duration-change",
|
|
206
|
+
let a = r;
|
|
207
|
+
this.#e.$state.canPlay() ? this.#e.notify("duration-change", a, i) : this.#b(a, i);
|
|
209
208
|
break;
|
|
210
209
|
case "getCurrentTime":
|
|
211
|
-
this.#_(
|
|
210
|
+
this.#_(r, i);
|
|
212
211
|
break;
|
|
213
212
|
case "getBuffered":
|
|
214
|
-
|
|
213
|
+
e(r) && r.length && this.#E(r[r.length - 1][1], i);
|
|
215
214
|
break;
|
|
216
215
|
case "setMuted":
|
|
217
|
-
|
|
216
|
+
case "getMuted":
|
|
217
|
+
this.#A(n(this.#e.$state.volume), r, i);
|
|
218
218
|
break;
|
|
219
219
|
case "getChapters":
|
|
220
|
-
this.#j(
|
|
220
|
+
this.#j(r);
|
|
221
221
|
break;
|
|
222
222
|
case "getQualities":
|
|
223
|
-
this.#N(
|
|
223
|
+
this.#N(r, i);
|
|
224
224
|
break;
|
|
225
225
|
}
|
|
226
|
-
this.#z(
|
|
226
|
+
this.#z(t)?.resolve();
|
|
227
227
|
}
|
|
228
228
|
#S() {
|
|
229
229
|
for (let e of _) this.#L("addEventListener", e);
|
|
@@ -231,8 +231,8 @@ var _ = [
|
|
|
231
231
|
#C(e) {
|
|
232
232
|
this.#s.stop(), this.#e.notify("pause", void 0, e);
|
|
233
233
|
}
|
|
234
|
-
#w(e) {
|
|
235
|
-
this.#s.start(), this.#e.notify("play", void 0, e);
|
|
234
|
+
async #w(e) {
|
|
235
|
+
this.#s.start(), await this.#L("getMuted"), this.#e.notify("play", void 0, e);
|
|
236
236
|
}
|
|
237
237
|
#T(e) {
|
|
238
238
|
let { paused: t } = this.#e.$state;
|
|
@@ -252,9 +252,9 @@ var _ = [
|
|
|
252
252
|
let { paused: t } = this.#e.$state;
|
|
253
253
|
t() || this.#e.notify("playing", void 0, e);
|
|
254
254
|
}
|
|
255
|
-
#k(e) {
|
|
255
|
+
async #k(e) {
|
|
256
256
|
let { paused: t } = this.#e.$state;
|
|
257
|
-
t() && this.#e.notify("play", void 0, e), this.#e.notify("waiting", void 0, e);
|
|
257
|
+
t() && (await this.#L("getMuted"), this.#e.notify("play", void 0, e)), this.#e.notify("waiting", void 0, e);
|
|
258
258
|
}
|
|
259
259
|
#A(e, t, n) {
|
|
260
260
|
let r = {
|
|
@@ -298,65 +298,65 @@ var _ = [
|
|
|
298
298
|
let n = e === "auto", r = this.#e.qualities.getById(e);
|
|
299
299
|
n ? (this.#e.qualities[m.setAuto](n, t), this.#e.qualities[f.select](void 0, !0, t)) : this.#e.qualities[f.select](r ?? void 0, !0, t);
|
|
300
300
|
}
|
|
301
|
-
#F(e, t,
|
|
301
|
+
#F(e, t, r) {
|
|
302
302
|
switch (e) {
|
|
303
303
|
case "ready":
|
|
304
304
|
this.#S();
|
|
305
305
|
break;
|
|
306
306
|
case "loaded":
|
|
307
|
-
this.#y(
|
|
307
|
+
this.#y(r);
|
|
308
308
|
break;
|
|
309
309
|
case "play":
|
|
310
|
-
this.#w(
|
|
310
|
+
this.#w(r);
|
|
311
311
|
break;
|
|
312
312
|
case "playProgress":
|
|
313
|
-
this.#T(
|
|
313
|
+
this.#T(r);
|
|
314
314
|
break;
|
|
315
315
|
case "pause":
|
|
316
|
-
this.#C(
|
|
316
|
+
this.#C(r);
|
|
317
317
|
break;
|
|
318
318
|
case "loadProgress":
|
|
319
|
-
this.#E(t.seconds,
|
|
319
|
+
this.#E(t.seconds, r);
|
|
320
320
|
break;
|
|
321
321
|
case "waiting":
|
|
322
|
-
this.#k(
|
|
322
|
+
this.#k(r);
|
|
323
323
|
break;
|
|
324
324
|
case "bufferstart":
|
|
325
|
-
this.#D(
|
|
325
|
+
this.#D(r);
|
|
326
326
|
break;
|
|
327
327
|
case "bufferend":
|
|
328
|
-
this.#O(
|
|
328
|
+
this.#O(r);
|
|
329
329
|
break;
|
|
330
330
|
case "volumechange":
|
|
331
|
-
this.#A(t.volume,
|
|
331
|
+
this.#A(t.volume, n(this.#e.$state.muted), r);
|
|
332
332
|
break;
|
|
333
333
|
case "durationchange":
|
|
334
|
-
this.#o = new h(0, t.duration), this.#e.notify("duration-change", t.duration,
|
|
334
|
+
this.#o = new h(0, t.duration), this.#e.notify("duration-change", t.duration, r);
|
|
335
335
|
break;
|
|
336
336
|
case "playbackratechange":
|
|
337
|
-
this.#e.notify("rate-change", t.playbackRate,
|
|
337
|
+
this.#e.notify("rate-change", t.playbackRate, r);
|
|
338
338
|
break;
|
|
339
339
|
case "qualitychange":
|
|
340
|
-
this.#P(t,
|
|
340
|
+
this.#P(t, r);
|
|
341
341
|
break;
|
|
342
342
|
case "fullscreenchange":
|
|
343
|
-
this.#a = t.fullscreen, this.#e.notify("fullscreen-change", t.fullscreen,
|
|
343
|
+
this.#a = t.fullscreen, this.#e.notify("fullscreen-change", t.fullscreen, r);
|
|
344
344
|
break;
|
|
345
345
|
case "enterpictureinpicture":
|
|
346
|
-
this.#e.notify("picture-in-picture-change", !0,
|
|
346
|
+
this.#e.notify("picture-in-picture-change", !0, r);
|
|
347
347
|
break;
|
|
348
348
|
case "leavepictureinpicture":
|
|
349
|
-
this.#e.notify("picture-in-picture-change", !1,
|
|
349
|
+
this.#e.notify("picture-in-picture-change", !1, r);
|
|
350
350
|
break;
|
|
351
351
|
case "ended":
|
|
352
|
-
this.#e.notify("end", void 0,
|
|
352
|
+
this.#e.notify("end", void 0, r);
|
|
353
353
|
break;
|
|
354
354
|
case "error":
|
|
355
|
-
this.#I(t,
|
|
355
|
+
this.#I(t, r);
|
|
356
356
|
break;
|
|
357
357
|
case "seek":
|
|
358
358
|
case "seeked":
|
|
359
|
-
this.#v(t.seconds,
|
|
359
|
+
this.#v(t.seconds, r);
|
|
360
360
|
break;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -369,7 +369,7 @@ var _ = [
|
|
|
369
369
|
}
|
|
370
370
|
onLoad() {}
|
|
371
371
|
async #L(e, t) {
|
|
372
|
-
let n =
|
|
372
|
+
let n = a(), r = this.#u.get(e);
|
|
373
373
|
return r || this.#u.set(e, r = []), r.push(n), this.postMessage({
|
|
374
374
|
method: e,
|
|
375
375
|
value: t
|