@webitel/ui-sdk 26.2.69 → 26.2.71
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/{errors-DCJKAXTz.js → errors-CTL-RV3B.js} +1 -1
- package/dist/{index-cVwBpL1P.js → index-CLhoKzki.js} +1 -1
- package/dist/{index-B71drQtj.js → index-x2Djqp3W.js} +4 -4
- package/dist/{install-BEn6vjFW.js → install-Cp4KnSCI.js} +1102 -1220
- package/dist/{isObject-DB0eH0MA.js → isObject-C_1aA257.js} +1 -1
- package/dist/prod-BoQuiIB3.js +973 -0
- package/dist/srt-parser-CsN7bp5E.js +26 -0
- package/dist/ssa-parser-BJOOPeQF.js +200 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +464 -482
- package/dist/vidstack-Bq6c3Bam-CeA9TvJ4.js +425 -0
- package/dist/vidstack-D2pY00kU-hPWR401d.js +135 -0
- package/dist/vidstack-DDXt6fpN-DEjXPjHx.js +50 -0
- package/dist/vidstack-D_-9AA6_-Bh2Pn0IA.js +20 -0
- package/dist/{vidstack-Dm1xEU9Q-qSXq3AI-.js → vidstack-Dm1xEU9Q-CXHNvShT.js} +10 -11
- package/dist/vidstack-DqAw8m9J-BSNVCj3S.js +22 -0
- package/dist/vidstack-audio-C3of4Q-I.js +28 -0
- package/dist/vidstack-dash-BD3CNy0Z.js +392 -0
- package/dist/vidstack-google-cast-DXLqBW30.js +382 -0
- package/dist/vidstack-hls-C6Az6tgn.js +309 -0
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +28 -0
- package/dist/vidstack-video-CtScgimr.js +163 -0
- package/dist/vidstack-vimeo-dFXp7_Vx.js +451 -0
- package/dist/vidstack-youtube-BF0J2izd.js +232 -0
- package/dist/{vuex.esm-bundler-tZVctzTj.js → vuex.esm-bundler-D5BkZi23.js} +1 -1
- package/dist/{wt-action-bar-ColV1kXE.js → wt-action-bar-BrFf9y4i.js} +1 -1
- package/dist/{wt-button-select-CfoSEYMj.js → wt-button-select-BQOYl5Z5.js} +1 -1
- package/dist/{wt-chat-emoji-Bgv9Viz-.js → wt-chat-emoji-D9rZ4xfn.js} +6 -11
- package/dist/{wt-confirm-dialog-bVhuyR-Q.js → wt-confirm-dialog-DdRFwuNQ.js} +1 -1
- package/dist/{wt-context-menu-Cd8pgBRV.js → wt-context-menu-Dx-K-ACK.js} +1 -1
- package/dist/{wt-copy-action-jjp1mO2h.js → wt-copy-action-BPMZsUtG.js} +1 -1
- package/dist/wt-datepicker-PK3BgSmp.js +5660 -0
- package/dist/wt-display-chip-items-CAO8OLhX.js +46 -0
- package/dist/{wt-dual-panel-DJsiR6RF.js → wt-dual-panel-CAh5CMKO.js} +1 -1
- package/dist/{wt-dummy-O94iGdZS.js → wt-dummy-DMXuDlcb.js} +1 -1
- package/dist/{wt-error-page-xgSWJ65z.js → wt-error-page-UoX8GV8V.js} +1 -1
- package/dist/{wt-expansion-panel-vzG02b62.js → wt-expansion-panel-G7G1803j.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-h-UaAMuF.js → wt-filters-panel-wrapper-GI9X-SaD.js} +1 -1
- package/dist/wt-galleria-DtJgf7Db.js +322 -0
- package/dist/{wt-navigation-menu-Cu5Y9kua.js → wt-navigation-menu-CrDo7Vpq.js} +2 -5
- package/dist/wt-notifications-bar-CmUZpffK.js +79 -0
- package/dist/{wt-page-header-DlRrRzG7.js → wt-page-header-C7JiNmsy.js} +1 -1
- package/dist/{wt-pagination-CW46I4u2.js → wt-pagination-CaOk680t.js} +1 -1
- package/dist/{wt-player-3qh_Jzm2.js → wt-player-Cs2dAT3H.js} +1 -1
- package/dist/{wt-popover-BTG5bUP0.js → wt-popover-U7JE0uoX.js} +19 -22
- package/dist/{wt-search-bar-CTsNf7bp.js → wt-search-bar-f1yQguL2.js} +25 -28
- package/dist/{wt-selection-popup-DvaUvY4O.js → wt-selection-popup-CwjvQZ77.js} +1 -1
- package/dist/{wt-start-page-CcN7JC_u.js → wt-start-page-CMGnK33r.js} +7 -7
- package/dist/{wt-status-select-C8t0cgTg.js → wt-status-select-C5RigMIl.js} +1 -1
- package/dist/{wt-stepper-BLb42q2I.js → wt-stepper-1gbY9rv5.js} +1 -1
- package/dist/{wt-table-9gmsV0Y9.js → wt-table-D6d0dRYQ.js} +111 -114
- package/dist/{wt-table-actions-BB7AH7sR.js → wt-table-actions-BsjrniPP.js} +1 -1
- package/dist/{wt-table-column-select-B3lrCEaV.js → wt-table-column-select-JiD5kd7i.js} +28 -31
- package/dist/{wt-tabs-CCHi_E1a.js → wt-tabs-DpxPfuRj.js} +1 -1
- package/dist/{wt-tags-input-DLicKjv3.js → wt-tags-input-CJpT_4mw.js} +56 -57
- package/dist/{wt-timepicker-B9ONDzNQ.js → wt-timepicker-CtH8MdN-.js} +1 -1
- package/dist/{wt-tree-cQlvJmh5.js → wt-tree-C99Qwdwn.js} +4 -5
- package/dist/{wt-tree-table-B89YKiMf.js → wt-tree-table-3qAoEJ7m.js} +5 -5
- package/dist/{wt-type-extension-value-input-Da8FXLDs.js → wt-type-extension-value-input-CfiVBG5u.js} +214 -218
- package/dist/wt-vidstack-player-B8Ilx2ml.js +10229 -0
- package/package.json +5 -5
- package/src/modules/Userinfo/classes/ApplicationsAccess.ts +36 -3
- package/src/modules/Userinfo/scripts/utils.ts +2 -22
- package/src/modules/Userinfo/stores/accessStore.ts +20 -5
- package/src/modules/Userinfo/stores/userinfoStore.ts +1 -0
- package/src/modules/Userinfo/types/UserAccess.d.ts +11 -3
- package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +34 -243
- package/types/modules/Userinfo/scripts/utils.d.ts +1 -2
- package/types/modules/Userinfo/stores/accessStore.d.ts +1 -1
- package/types/modules/Userinfo/stores/userinfoStore.d.ts +21 -9
- package/dist/prod-DTLJXtPo.js +0 -994
- package/dist/srt-parser-CWqahKwO.js +0 -27
- package/dist/ssa-parser-BqjjKy4M.js +0 -209
- package/dist/vidstack-Bq6c3Bam-w5y-QQDX.js +0 -413
- package/dist/vidstack-D2pY00kU-BI5rYx7p.js +0 -138
- package/dist/vidstack-DDXt6fpN-QZPrP2dy.js +0 -60
- package/dist/vidstack-D_-9AA6_-Bo1xPN-G.js +0 -20
- package/dist/vidstack-DqAw8m9J-DL7LzrFt.js +0 -29
- package/dist/vidstack-audio-lX1O0fza.js +0 -32
- package/dist/vidstack-dash-BQkRGWe_.js +0 -403
- package/dist/vidstack-google-cast-C39n-PU1.js +0 -377
- package/dist/vidstack-hls-BCLhCuNJ.js +0 -324
- package/dist/vidstack-krOAtKMi-B4IZWKdc.js +0 -29
- package/dist/vidstack-video-BgayrEIC.js +0 -181
- package/dist/vidstack-vimeo-Lpe7iySs.js +0 -437
- package/dist/vidstack-youtube-Dmcz0xVm.js +0 -236
- package/dist/wt-datepicker-Cs3xDzVq.js +0 -5789
- package/dist/wt-display-chip-items-IqNMxa_X.js +0 -52
- package/dist/wt-galleria-cDjsiOcp.js +0 -324
- package/dist/wt-notifications-bar-KNH47kZ7.js +0 -80
- package/dist/wt-vidstack-player-BzFbIwCa.js +0 -10250
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
var N = Object.defineProperty;
|
|
2
|
-
var D = (r) => {
|
|
3
|
-
throw TypeError(r);
|
|
4
|
-
};
|
|
5
|
-
var q = (r, n, e) => n in r ? N(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) || 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 { b as z, n as A, y as G, e as H, f as J, M as Q, K as C, P as W, r as $, R as X } from "./wt-vidstack-player-BzFbIwCa.js";
|
|
9
|
-
import { E as Z } from "./vidstack-DDXt6fpN-QZPrP2dy.js";
|
|
10
|
-
import { resolveYouTubeVideoId as ee } from "./vidstack-Dm1xEU9Q-qSXq3AI-.js";
|
|
11
|
-
const b = {
|
|
12
|
-
Ended: 0,
|
|
13
|
-
Playing: 1,
|
|
14
|
-
Paused: 2,
|
|
15
|
-
Buffering: 3,
|
|
16
|
-
Cued: 5
|
|
17
|
-
};
|
|
18
|
-
var a, k, v, S, P, m, y, i, te, se, O, f, j, Y, F, I, R, x, L, _, V, U;
|
|
19
|
-
class ne extends Z {
|
|
20
|
-
constructor(e, t) {
|
|
21
|
-
super(e);
|
|
22
|
-
p(this, i);
|
|
23
|
-
T(this, "$$PROVIDER_TYPE", "YOUTUBE");
|
|
24
|
-
T(this, "scope", z());
|
|
25
|
-
p(this, a);
|
|
26
|
-
p(this, k, A(""));
|
|
27
|
-
p(this, v, -1);
|
|
28
|
-
p(this, S, null);
|
|
29
|
-
p(this, P, -1);
|
|
30
|
-
p(this, m, !1);
|
|
31
|
-
p(this, y, /* @__PURE__ */ new Map());
|
|
32
|
-
/**
|
|
33
|
-
* Sets the player's interface language. The parameter value is an ISO 639-1 two-letter
|
|
34
|
-
* language code or a fully specified locale. For example, fr and fr-ca are both valid values.
|
|
35
|
-
* Other language input codes, such as IETF language tags (BCP 47) might also be handled properly.
|
|
36
|
-
*
|
|
37
|
-
* The interface language is used for tooltips in the player and also affects the default caption
|
|
38
|
-
* track. Note that YouTube might select a different caption track language for a particular
|
|
39
|
-
* user based on the user's individual language preferences and the availability of caption tracks.
|
|
40
|
-
*
|
|
41
|
-
* @defaultValue 'en'
|
|
42
|
-
*/
|
|
43
|
-
T(this, "language", "en");
|
|
44
|
-
T(this, "color", "red");
|
|
45
|
-
/**
|
|
46
|
-
* Whether cookies should be enabled on the embed. This is turned off by default to be
|
|
47
|
-
* GDPR-compliant.
|
|
48
|
-
*
|
|
49
|
-
* @defaultValue `false`
|
|
50
|
-
*/
|
|
51
|
-
T(this, "cookies", !1);
|
|
52
|
-
l(this, a, t);
|
|
53
|
-
}
|
|
54
|
-
get currentSrc() {
|
|
55
|
-
return s(this, S);
|
|
56
|
-
}
|
|
57
|
-
get type() {
|
|
58
|
-
return "youtube";
|
|
59
|
-
}
|
|
60
|
-
get videoId() {
|
|
61
|
-
return s(this, k).call(this);
|
|
62
|
-
}
|
|
63
|
-
preconnect() {
|
|
64
|
-
G(this.getOrigin());
|
|
65
|
-
}
|
|
66
|
-
setup() {
|
|
67
|
-
super.setup(), H(o(this, i, O).bind(this)), s(this, a).notify("provider-setup", this);
|
|
68
|
-
}
|
|
69
|
-
destroy() {
|
|
70
|
-
o(this, i, _).call(this);
|
|
71
|
-
const e = "provider destroyed";
|
|
72
|
-
for (const t of s(this, y).values())
|
|
73
|
-
for (const { reject: d } of t) d(e);
|
|
74
|
-
s(this, y).clear();
|
|
75
|
-
}
|
|
76
|
-
async play() {
|
|
77
|
-
return o(this, i, f).call(this, "playVideo");
|
|
78
|
-
}
|
|
79
|
-
async pause() {
|
|
80
|
-
return o(this, i, f).call(this, "pauseVideo");
|
|
81
|
-
}
|
|
82
|
-
setMuted(e) {
|
|
83
|
-
e ? o(this, i, f).call(this, "mute") : o(this, i, f).call(this, "unMute");
|
|
84
|
-
}
|
|
85
|
-
setCurrentTime(e) {
|
|
86
|
-
o(this, i, f).call(this, "seekTo", e), s(this, a).notify("seeking", e);
|
|
87
|
-
}
|
|
88
|
-
setVolume(e) {
|
|
89
|
-
o(this, i, f).call(this, "setVolume", e * 100);
|
|
90
|
-
}
|
|
91
|
-
setPlaybackRate(e) {
|
|
92
|
-
o(this, i, f).call(this, "setPlaybackRate", e);
|
|
93
|
-
}
|
|
94
|
-
async loadSource(e) {
|
|
95
|
-
if (!J(e.src)) {
|
|
96
|
-
l(this, S, null), s(this, k).set("");
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
const t = ee(e.src);
|
|
100
|
-
s(this, k).set(t ?? ""), l(this, S, e);
|
|
101
|
-
}
|
|
102
|
-
getOrigin() {
|
|
103
|
-
return this.cookies ? "https://www.youtube.com" : "https://www.youtube-nocookie.com";
|
|
104
|
-
}
|
|
105
|
-
buildParams() {
|
|
106
|
-
const { keyDisabled: e } = s(this, a).$props, { muted: t, playsInline: d, nativeControls: u } = s(this, a).$state, h = u();
|
|
107
|
-
return {
|
|
108
|
-
rel: 0,
|
|
109
|
-
autoplay: 0,
|
|
110
|
-
cc_lang_pref: this.language,
|
|
111
|
-
cc_load_policy: h ? 1 : void 0,
|
|
112
|
-
color: this.color,
|
|
113
|
-
controls: h ? 1 : 0,
|
|
114
|
-
disablekb: !h || e() ? 1 : 0,
|
|
115
|
-
enablejsapi: 1,
|
|
116
|
-
fs: 1,
|
|
117
|
-
hl: this.language,
|
|
118
|
-
iv_load_policy: h ? 1 : 3,
|
|
119
|
-
mute: t() ? 1 : 0,
|
|
120
|
-
playsinline: d() ? 1 : 0
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
onLoad() {
|
|
124
|
-
window.setTimeout(() => this.postMessage({ event: "listening" }), 100);
|
|
125
|
-
}
|
|
126
|
-
onMessage({ info: e }, t) {
|
|
127
|
-
var c;
|
|
128
|
-
if (!e) return;
|
|
129
|
-
const { title: d, intrinsicDuration: u, playbackRate: h } = s(this, a).$state;
|
|
130
|
-
if (W(e.videoData) && e.videoData.title !== d() && s(this, a).notify("title-change", e.videoData.title, t), $(e.duration) && e.duration !== u()) {
|
|
131
|
-
if ($(e.videoLoadedFraction)) {
|
|
132
|
-
const g = ((c = e.progressState) == null ? void 0 : c.loaded) ?? e.videoLoadedFraction * e.duration, w = new C(0, e.duration);
|
|
133
|
-
o(this, i, I).call(this, g, w, t);
|
|
134
|
-
}
|
|
135
|
-
s(this, a).notify("duration-change", e.duration, t);
|
|
136
|
-
}
|
|
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: K, duration: B } = e.progressState;
|
|
139
|
-
o(this, i, F).call(this, g, t), o(this, i, I).call(this, K, new C(w, E), t), B !== u() && s(this, a).notify("duration-change", B, t);
|
|
140
|
-
}
|
|
141
|
-
if ($(e.volume) && X(e.muted) && !s(this, m)) {
|
|
142
|
-
const g = {
|
|
143
|
-
muted: e.muted,
|
|
144
|
-
volume: e.volume / 100
|
|
145
|
-
};
|
|
146
|
-
s(this, a).notify("volume-change", g, t);
|
|
147
|
-
}
|
|
148
|
-
$(e.playerState) && e.playerState !== s(this, v) && o(this, i, L).call(this, e.playerState, t);
|
|
149
|
-
}
|
|
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) {
|
|
152
|
-
var t;
|
|
153
|
-
(t = o(this, i, V).call(this, "playVideo")) == null || t.reject(e);
|
|
154
|
-
}, se = function(e) {
|
|
155
|
-
var t;
|
|
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);
|
|
160
|
-
if (!e) {
|
|
161
|
-
this.src.set("");
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
this.src.set(`${this.getOrigin()}/embed/${e}`), s(this, a).notify("load-start");
|
|
165
|
-
}, f = function(e, t) {
|
|
166
|
-
let d = Q(), u = s(this, y).get(e);
|
|
167
|
-
return u || s(this, y).set(e, u = []), u.push(d), this.postMessage({
|
|
168
|
-
event: "command",
|
|
169
|
-
func: e,
|
|
170
|
-
args: t ? [t] : void 0
|
|
171
|
-
}), d.promise;
|
|
172
|
-
}, j = function(e) {
|
|
173
|
-
s(this, a).notify("loaded-metadata"), s(this, a).notify("loaded-data"), s(this, a).delegate.ready(void 0, e);
|
|
174
|
-
}, Y = function(e) {
|
|
175
|
-
var t;
|
|
176
|
-
(t = o(this, i, V).call(this, "pauseVideo")) == null || t.resolve(), s(this, a).notify("pause", void 0, e);
|
|
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;
|
|
179
|
-
s(this, a).notify("time-change", c, t), !h && Math.abs(c - u()) > 1 && s(this, a).notify("seeking", c, t);
|
|
180
|
-
}, I = function(e, t, d) {
|
|
181
|
-
const u = {
|
|
182
|
-
buffered: new C(0, e),
|
|
183
|
-
seekable: t
|
|
184
|
-
};
|
|
185
|
-
s(this, a).notify("progress", u, d);
|
|
186
|
-
const { seeking: h, realCurrentTime: c } = s(this, a).$state;
|
|
187
|
-
h() && e > c() && o(this, i, R).call(this, d);
|
|
188
|
-
}, R = function(e) {
|
|
189
|
-
const { paused: t, realCurrentTime: d } = s(this, a).$state;
|
|
190
|
-
window.clearTimeout(s(this, P)), l(this, P, window.setTimeout(
|
|
191
|
-
() => {
|
|
192
|
-
s(this, a).notify("seeked", d(), e), l(this, P, -1);
|
|
193
|
-
},
|
|
194
|
-
t() ? 100 : 0
|
|
195
|
-
));
|
|
196
|
-
}, x = function(e) {
|
|
197
|
-
const { seeking: t } = s(this, a).$state;
|
|
198
|
-
t() && o(this, i, R).call(this, e), s(this, a).notify("pause", void 0, e), s(this, a).notify("end", void 0, e);
|
|
199
|
-
}, L = function(e, t) {
|
|
200
|
-
var E;
|
|
201
|
-
const { paused: d, seeking: u } = s(this, a).$state, h = e === b.Playing, c = e === b.Buffering, g = o(this, i, U).call(this, "playVideo"), w = d() && (c || h);
|
|
202
|
-
if (c && s(this, a).notify("waiting", void 0, t), u() && h && o(this, i, R).call(this, t), s(this, m) && h) {
|
|
203
|
-
this.pause(), l(this, m, !1), this.setMuted(s(this, a).$state.muted());
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
if (!g && w) {
|
|
207
|
-
l(this, m, !0), this.setMuted(!0);
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
switch (w && ((E = o(this, i, V).call(this, "playVideo")) == null || E.resolve(), s(this, a).notify("play", void 0, t)), e) {
|
|
211
|
-
case b.Cued:
|
|
212
|
-
o(this, i, j).call(this, t);
|
|
213
|
-
break;
|
|
214
|
-
case b.Playing:
|
|
215
|
-
s(this, a).notify("playing", void 0, t);
|
|
216
|
-
break;
|
|
217
|
-
case b.Paused:
|
|
218
|
-
o(this, i, Y).call(this, t);
|
|
219
|
-
break;
|
|
220
|
-
case b.Ended:
|
|
221
|
-
o(this, i, x).call(this, t);
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
l(this, v, e);
|
|
225
|
-
}, _ = function() {
|
|
226
|
-
l(this, v, -1), l(this, P, -1), l(this, m, !1);
|
|
227
|
-
}, V = function(e) {
|
|
228
|
-
var t;
|
|
229
|
-
return (t = s(this, y).get(e)) == null ? void 0 : t.shift();
|
|
230
|
-
}, U = function(e) {
|
|
231
|
-
var t;
|
|
232
|
-
return !!((t = s(this, y).get(e)) != null && t.length);
|
|
233
|
-
};
|
|
234
|
-
export {
|
|
235
|
-
ne as YouTubeProvider
|
|
236
|
-
};
|