@webitel/ui-sdk 26.2.70 → 26.2.72

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.
Files changed (97) hide show
  1. package/dist/{errors-DCJKAXTz.js → errors-CTL-RV3B.js} +1 -1
  2. package/dist/{index-B71drQtj.js → index-DWA4o3XJ.js} +4 -4
  3. package/dist/{index-cVwBpL1P.js → index-pMfSnCae.js} +1 -1
  4. package/dist/{install-BEn6vjFW.js → install-UIKG1ERr.js} +9496 -8874
  5. package/dist/{isObject-DB0eH0MA.js → isObject-B3V85Sws.js} +1 -1
  6. package/dist/prod-BoQuiIB3.js +973 -0
  7. package/dist/srt-parser-CsN7bp5E.js +26 -0
  8. package/dist/ssa-parser-BJOOPeQF.js +200 -0
  9. package/dist/ui-sdk.css +1 -1
  10. package/dist/ui-sdk.js +1 -1
  11. package/dist/ui-sdk.umd.cjs +464 -482
  12. package/dist/vidstack-Bq6c3Bam-pb8Xltql.js +425 -0
  13. package/dist/vidstack-D2pY00kU-DiDeMWBZ.js +135 -0
  14. package/dist/vidstack-DDXt6fpN-BJpO5v6W.js +50 -0
  15. package/dist/vidstack-D_-9AA6_-D9IZ6RtF.js +20 -0
  16. package/dist/{vidstack-Dm1xEU9Q-qSXq3AI-.js → vidstack-Dm1xEU9Q-CXHNvShT.js} +10 -11
  17. package/dist/vidstack-DqAw8m9J-R8izgrMK.js +22 -0
  18. package/dist/vidstack-audio-RReC5vyt.js +28 -0
  19. package/dist/vidstack-dash-DW7Ue8Mf.js +392 -0
  20. package/dist/vidstack-google-cast-C0U2wzqB.js +382 -0
  21. package/dist/vidstack-hls-BZgfDsGk.js +309 -0
  22. package/dist/vidstack-krOAtKMi-C50BTxmn.js +28 -0
  23. package/dist/vidstack-video-CI2rq89j.js +163 -0
  24. package/dist/vidstack-vimeo-CgwZpCSk.js +451 -0
  25. package/dist/vidstack-youtube-BYXk8CK9.js +232 -0
  26. package/dist/{wt-action-bar-ColV1kXE.js → wt-action-bar-DR8FqGoN.js} +1 -1
  27. package/dist/{wt-button-select-CfoSEYMj.js → wt-button-select-DZ_mMZr7.js} +1 -1
  28. package/dist/{wt-chat-emoji-Bgv9Viz-.js → wt-chat-emoji-Bx7YenHF.js} +6 -11
  29. package/dist/{wt-confirm-dialog-bVhuyR-Q.js → wt-confirm-dialog-Bmt7hVhO.js} +1 -1
  30. package/dist/{wt-context-menu-Cd8pgBRV.js → wt-context-menu-DEonPBI7.js} +1 -1
  31. package/dist/{wt-copy-action-jjp1mO2h.js → wt-copy-action-DQZ5qUUm.js} +1 -1
  32. package/dist/wt-datepicker-DRUiK--W.js +5660 -0
  33. package/dist/wt-display-chip-items-x25aFJxY.js +46 -0
  34. package/dist/{wt-dual-panel-DJsiR6RF.js → wt-dual-panel-0fDOCrlS.js} +1 -1
  35. package/dist/{wt-dummy-O94iGdZS.js → wt-dummy-CFcLvVwn.js} +1 -1
  36. package/dist/{wt-error-page-xgSWJ65z.js → wt-error-page-CebFt3Gg.js} +1 -1
  37. package/dist/{wt-expansion-panel-vzG02b62.js → wt-expansion-panel-cJWQaqAc.js} +1 -1
  38. package/dist/{wt-filters-panel-wrapper-h-UaAMuF.js → wt-filters-panel-wrapper-4-k7czbS.js} +1 -1
  39. package/dist/wt-galleria-Ds-HZvJq.js +322 -0
  40. package/dist/{wt-navigation-menu-Cu5Y9kua.js → wt-navigation-menu-DqnvQB3G.js} +2 -5
  41. package/dist/wt-notifications-bar-Bmww4vJb.js +79 -0
  42. package/dist/{wt-page-header-DlRrRzG7.js → wt-page-header-6lJKDnEs.js} +1 -1
  43. package/dist/{wt-pagination-CW46I4u2.js → wt-pagination-D7BhUkrI.js} +1 -1
  44. package/dist/{wt-player-3qh_Jzm2.js → wt-player-Bx_9-9R6.js} +1 -1
  45. package/dist/{wt-popover-BTG5bUP0.js → wt-popover-U7JE0uoX.js} +19 -22
  46. package/dist/{wt-search-bar-CTsNf7bp.js → wt-search-bar-BfHsofcU.js} +25 -28
  47. package/dist/{wt-selection-popup-DvaUvY4O.js → wt-selection-popup-B5Wt1WQk.js} +1 -1
  48. package/dist/{wt-start-page-CcN7JC_u.js → wt-start-page-8ywFCoUJ.js} +7 -7
  49. package/dist/{wt-status-select-C8t0cgTg.js → wt-status-select-CFdNgbIP.js} +1 -1
  50. package/dist/{wt-stepper-BLb42q2I.js → wt-stepper-59a_rP7o.js} +1 -1
  51. package/dist/{wt-table-9gmsV0Y9.js → wt-table-DuxjiiFi.js} +111 -114
  52. package/dist/{wt-table-actions-BB7AH7sR.js → wt-table-actions-CsrvF6d8.js} +1 -1
  53. package/dist/{wt-table-column-select-B3lrCEaV.js → wt-table-column-select-Zga4Zyfd.js} +28 -31
  54. package/dist/{wt-tabs-CCHi_E1a.js → wt-tabs-CMMlNgqE.js} +1 -1
  55. package/dist/{wt-tags-input-DLicKjv3.js → wt-tags-input-O1wer3-w.js} +56 -57
  56. package/dist/{wt-timepicker-B9ONDzNQ.js → wt-timepicker-BscP21YM.js} +1 -1
  57. package/dist/{wt-tree-cQlvJmh5.js → wt-tree-BRPd5QbE.js} +4 -5
  58. package/dist/{wt-tree-table-B89YKiMf.js → wt-tree-table-CZQ7xmja.js} +5 -5
  59. package/dist/{wt-type-extension-value-input-Da8FXLDs.js → wt-type-extension-value-input-DZqeSLGx.js} +214 -218
  60. package/dist/wt-vidstack-player-CA18U-L9.js +10229 -0
  61. package/package.json +5 -5
  62. package/src/components/wt-button/wt-button.vue +9 -13
  63. package/src/install.ts +0 -1
  64. package/src/locale/i18n.js +1 -1
  65. package/src/modules/Notifications/store/NotificationsStoreModule.js +1 -1
  66. package/src/modules/Userinfo/classes/ApplicationsAccess.ts +36 -3
  67. package/src/modules/Userinfo/scripts/utils.ts +2 -22
  68. package/src/modules/Userinfo/stores/accessStore.ts +20 -5
  69. package/src/modules/Userinfo/types/UserAccess.d.ts +11 -3
  70. package/types/locale/i18n.d.ts +1 -1
  71. package/types/modules/Notifications/store/NotificationsStoreModule.d.ts +1 -1
  72. package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +34 -243
  73. package/types/modules/Userinfo/scripts/utils.d.ts +1 -2
  74. package/types/modules/Userinfo/stores/accessStore.d.ts +1 -1
  75. package/types/modules/Userinfo/stores/userinfoStore.d.ts +21 -9
  76. package/dist/prod-DTLJXtPo.js +0 -994
  77. package/dist/srt-parser-CWqahKwO.js +0 -27
  78. package/dist/ssa-parser-BqjjKy4M.js +0 -209
  79. package/dist/vidstack-Bq6c3Bam-w5y-QQDX.js +0 -413
  80. package/dist/vidstack-D2pY00kU-BI5rYx7p.js +0 -138
  81. package/dist/vidstack-DDXt6fpN-QZPrP2dy.js +0 -60
  82. package/dist/vidstack-D_-9AA6_-Bo1xPN-G.js +0 -20
  83. package/dist/vidstack-DqAw8m9J-DL7LzrFt.js +0 -29
  84. package/dist/vidstack-audio-lX1O0fza.js +0 -32
  85. package/dist/vidstack-dash-BQkRGWe_.js +0 -403
  86. package/dist/vidstack-google-cast-C39n-PU1.js +0 -377
  87. package/dist/vidstack-hls-BCLhCuNJ.js +0 -324
  88. package/dist/vidstack-krOAtKMi-B4IZWKdc.js +0 -29
  89. package/dist/vidstack-video-BgayrEIC.js +0 -181
  90. package/dist/vidstack-vimeo-Lpe7iySs.js +0 -437
  91. package/dist/vidstack-youtube-Dmcz0xVm.js +0 -236
  92. package/dist/vuex.esm-bundler-tZVctzTj.js +0 -950
  93. package/dist/wt-datepicker-Cs3xDzVq.js +0 -5789
  94. package/dist/wt-display-chip-items-IqNMxa_X.js +0 -52
  95. package/dist/wt-galleria-cDjsiOcp.js +0 -324
  96. package/dist/wt-notifications-bar-KNH47kZ7.js +0 -80
  97. 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
- };