@webitel/ui-sdk 26.2.126 → 26.2.128

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 (65) hide show
  1. package/dist/{index-Cz4qFQN1.js → index-CXvjDkKI.js} +1 -1
  2. package/dist/{index-qLMzWnx2.js → index-D_Qk79wA.js} +1 -1
  3. package/dist/{install-In0YqDcO.js → install-D2x01HjN.js} +36 -34
  4. package/dist/{isObject-DN6MD8kE.js → isObject-B_62MKM-.js} +1 -1
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +1 -1
  7. package/dist/ui-sdk.umd.cjs +227 -227
  8. package/dist/useVidstackSrc-kG_Nr2qn.js +1341 -0
  9. package/dist/{vidstack-Bq6c3Bam-CJx1I67B.js → vidstack-Bq6c3Bam-CEBxCfps.js} +21 -20
  10. package/dist/{vidstack-D2pY00kU-BzDVmOQf.js → vidstack-D2pY00kU-BxrPbe2u.js} +12 -11
  11. package/dist/{vidstack-DDXt6fpN-CccMyx3k.js → vidstack-DDXt6fpN-DzBWYiQF.js} +10 -9
  12. package/dist/{vidstack-D_-9AA6_-Ch_AQKf8.js → vidstack-D_-9AA6_-DLNEPUxw.js} +6 -5
  13. package/dist/{vidstack-DqAw8m9J-DN0Rx2Cp.js → vidstack-DqAw8m9J-B46XoRCX.js} +1 -1
  14. package/dist/{vidstack-audio-CyicYFtE.js → vidstack-audio-9Gl9Kz3Q.js} +2 -2
  15. package/dist/{vidstack-dash-BbVUAfel.js → vidstack-dash-BJcvwitX.js} +25 -24
  16. package/dist/{vidstack-google-cast-BxNHua_2.js → vidstack-google-cast-DbIV0bLP.js} +12 -11
  17. package/dist/{vidstack-hls-ok-wSuoG.js → vidstack-hls-Cp3vRKbQ.js} +24 -23
  18. package/dist/{vidstack-video-CaJH1npJ.js → vidstack-video-BN4jnBO5.js} +16 -15
  19. package/dist/{vidstack-vimeo-OTNo1lZl.js → vidstack-vimeo-GuUsRXwC.js} +37 -36
  20. package/dist/{vidstack-youtube-TJnLoStb.js → vidstack-youtube-1pqyuhRb.js} +15 -14
  21. package/dist/{wt-action-bar-DVYTKUBk.js → wt-action-bar-Bt5oEM-s.js} +1 -1
  22. package/dist/{wt-button-select-CDYL61lk.js → wt-button-select-DxZ-lotU.js} +1 -1
  23. package/dist/{wt-chat-emoji-CzXGoTsc.js → wt-chat-emoji-C4Lb8Jo6.js} +2 -2
  24. package/dist/{wt-confirm-dialog-Cw3PoxjN.js → wt-confirm-dialog-ConompWc.js} +1 -1
  25. package/dist/{wt-context-menu-DIkv1NaC.js → wt-context-menu-B9ZvW9e1.js} +1 -1
  26. package/dist/{wt-copy-action-C_Lp0i_H.js → wt-copy-action-0v-LftyT.js} +1 -1
  27. package/dist/{wt-datepicker-DnMpx5eZ.js → wt-datepicker-CeIroYrI.js} +1 -1
  28. package/dist/{wt-display-chip-items-ZeT2D9at.js → wt-display-chip-items-D_kg-fE8.js} +1 -1
  29. package/dist/{wt-dual-panel-6RTh5YbZ.js → wt-dual-panel-CtiwuDFH.js} +1 -1
  30. package/dist/{wt-dummy-Cj90QXzn.js → wt-dummy-WnU-zg5j.js} +1 -1
  31. package/dist/{wt-error-page-xX2SEe3s.js → wt-error-page-Dta61qqW.js} +1 -1
  32. package/dist/{wt-expansion-card-BjdYf5Dp.js → wt-expansion-card-ihwizrC2.js} +1 -1
  33. package/dist/{wt-expansion-panel-DK0SYvoG.js → wt-expansion-panel-FzsaK9db.js} +1 -1
  34. package/dist/{wt-filters-panel-wrapper-OApRf81V.js → wt-filters-panel-wrapper-C4i6yZCu.js} +1 -1
  35. package/dist/{wt-galleria-rRQcZ_0y.js → wt-galleria-W-Ko2W5f.js} +1 -1
  36. package/dist/{wt-navigation-menu-C-nB-8Le.js → wt-navigation-menu-CjdTb023.js} +1 -1
  37. package/dist/{wt-notifications-bar-D1i5rV8A.js → wt-notifications-bar-61cfd_4M.js} +2 -2
  38. package/dist/{wt-pagination-C59kdDDN.js → wt-pagination-DYCgISdf.js} +1 -1
  39. package/dist/wt-player-C_GxeSTp.js +128 -0
  40. package/dist/{wt-search-bar-C4-Vl9Pa.js → wt-search-bar-N1WKurUn.js} +1 -1
  41. package/dist/{wt-selection-popup-BxDERIHb.js → wt-selection-popup-DHDGq-OE.js} +1 -1
  42. package/dist/{wt-start-page-BPlJho8Y.js → wt-start-page-AZ2djVkC.js} +1 -1
  43. package/dist/{wt-status-select-CNH5kFvr.js → wt-status-select-h5BbstEb.js} +1 -1
  44. package/dist/{wt-stepper-1_iQtsZC.js → wt-stepper-DYiLXWjt.js} +1 -1
  45. package/dist/{wt-table-D76yjtwy.js → wt-table--ZazZiRW.js} +1 -1
  46. package/dist/{wt-table-actions-DodTkdCV.js → wt-table-actions-BC80p7rV.js} +1 -1
  47. package/dist/{wt-table-column-select-VKKAj8Ox.js → wt-table-column-select-BMsgv2UC.js} +2 -2
  48. package/dist/{wt-tabs-DyO6wmnS.js → wt-tabs-kYAi4ukZ.js} +1 -1
  49. package/dist/{wt-tags-input-BucUo4Ow.js → wt-tags-input-t4laYn8E.js} +2 -2
  50. package/dist/{wt-timepicker-t2uY6aU1.js → wt-timepicker-D5kzTYvN.js} +1 -1
  51. package/dist/{wt-tree-BZI_RN8N.js → wt-tree-DW-8PDtG.js} +2 -2
  52. package/dist/{wt-tree-table-CvtJrEN6.js → wt-tree-table-BdwRzKC4.js} +1 -1
  53. package/dist/{wt-type-extension-value-input-BjPJ1FmI.js → wt-type-extension-value-input-DXHHUs4o.js} +2 -2
  54. package/dist/{wt-vidstack-player-BB6Gwvf5.js → wt-vidstack-player-B24VLEaw.js} +2800 -4044
  55. package/package.json +1 -1
  56. package/src/components/wt-player/wt-player.vue +7 -24
  57. package/src/components/wt-vidstack-player/composables/useVidstackSrc.ts +111 -0
  58. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +10 -40
  59. package/src/enums/FormatDateMode/FormatDateMode.ts +1 -0
  60. package/src/utils/formatDate.ts +1 -0
  61. package/types/components/wt-vidstack-player/composables/useVidstackSrc.d.ts +27 -0
  62. package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +2 -4
  63. package/types/enums/FormatDateMode/FormatDateMode.d.ts +1 -0
  64. package/dist/time-group-CkVy2t63.js +0 -25
  65. package/dist/wt-player-CrLSS40S.js +0 -138
@@ -1,8 +1,9 @@
1
- import { x as S, f as l, y as E, p as f, Q as v, l as y, e as T, D as d, z as b, T as m, w as g, L as u, A as k, q as L, B as w, C as x, F as D } from "./wt-vidstack-player-BB6Gwvf5.js";
2
- import { VideoProvider as C } from "./vidstack-video-CaJH1npJ.js";
3
- import { R as A } from "./vidstack-DqAw8m9J-DN0Rx2Cp.js";
4
- const I = (r) => b(r);
5
- class H {
1
+ import { p as S, Q as v, T as E, b as y, L as u, d as b, l as T } from "./wt-vidstack-player-B24VLEaw.js";
2
+ import { H as m, d as l, x as f, l as g, m as k, D as d, B as w, R as x, b as L, j as D } from "./useVidstackSrc-kG_Nr2qn.js";
3
+ import { VideoProvider as C } from "./vidstack-video-BN4jnBO5.js";
4
+ import { R as H } from "./vidstack-DqAw8m9J-B46XoRCX.js";
5
+ const I = (r) => w(r);
6
+ class A {
6
7
  #e;
7
8
  #t;
8
9
  #i = null;
@@ -29,14 +30,14 @@ class H {
29
30
  for (const n of this.#r) n(this.#i);
30
31
  this.#t.player.dispatch("hls-instance", {
31
32
  detail: this.#i
32
- }), this.#i.attachMedia(this.#e), this.#i.on(t.Events.AUDIO_TRACK_SWITCHED, this.#l.bind(this)), this.#i.on(t.Events.LEVEL_SWITCHED, this.#u.bind(this)), this.#i.on(t.Events.LEVEL_LOADED, this.#f.bind(this)), this.#i.on(t.Events.LEVEL_UPDATED, this.#p.bind(this)), this.#i.on(t.Events.NON_NATIVE_TEXT_TRACKS_FOUND, this.#c.bind(this)), this.#i.on(t.Events.CUES_PARSED, this.#d.bind(this)), this.#t.qualities[v.enableAuto] = this.#g.bind(this), y(this.#t.qualities, "change", this.#L.bind(this)), y(this.#t.audioTracks, "change", this.#S.bind(this)), this.#n = T(this.#o.bind(this));
33
+ }), this.#i.attachMedia(this.#e), this.#i.on(t.Events.AUDIO_TRACK_SWITCHED, this.#l.bind(this)), this.#i.on(t.Events.LEVEL_SWITCHED, this.#u.bind(this)), this.#i.on(t.Events.LEVEL_LOADED, this.#f.bind(this)), this.#i.on(t.Events.LEVEL_UPDATED, this.#p.bind(this)), this.#i.on(t.Events.NON_NATIVE_TEXT_TRACKS_FOUND, this.#c.bind(this)), this.#i.on(t.Events.CUES_PARSED, this.#d.bind(this)), this.#t.qualities[v.enableAuto] = this.#g.bind(this), g(this.#t.qualities, "change", this.#L.bind(this)), g(this.#t.audioTracks, "change", this.#S.bind(this)), this.#n = k(this.#o.bind(this));
33
34
  }
34
35
  #s(t, i) {
35
36
  return new d(I(t), { detail: i });
36
37
  }
37
38
  #o() {
38
39
  if (!this.#t.$state.live()) return;
39
- const t = new A(this.#a.bind(this));
40
+ const t = new H(this.#a.bind(this));
40
41
  return t.start(), t.stop.bind(t);
41
42
  }
42
43
  #a() {
@@ -49,7 +50,7 @@ class H {
49
50
  const e = this.#s(t, i);
50
51
  let s = -1;
51
52
  for (let o = 0; o < i.tracks.length; o++) {
52
- const n = i.tracks[o], h = n.subtitleTrack ?? n.closedCaptions, c = new m({
53
+ const n = i.tracks[o], h = n.subtitleTrack ?? n.closedCaptions, c = new E({
53
54
  id: `hls-${n.kind}-${o}`,
54
55
  src: h?.url,
55
56
  label: n.label,
@@ -57,7 +58,7 @@ class H {
57
58
  kind: n.kind,
58
59
  default: n.default
59
60
  });
60
- c[g.readyState] = 2, c[g.onModeChange] = () => {
61
+ c[y.readyState] = 2, c[y.onModeChange] = () => {
61
62
  c.mode === "showing" ? (this.#i.subtitleTrack = o, s = o) : s === o && (this.#i.subtitleTrack = -1, s = -1);
62
63
  }, this.#t.textTracks.add(c, e);
63
64
  }
@@ -132,7 +133,7 @@ class H {
132
133
  }
133
134
  #L() {
134
135
  const { qualities: t } = this.#t;
135
- !this.#i || t.auto || (this.#i[t.switch + "Level"] = t.selectedIndex, k && (this.#e.currentTime = this.#e.currentTime));
136
+ !this.#i || t.auto || (this.#i[t.switch + "Level"] = t.selectedIndex, x && (this.#e.currentTime = this.#e.currentTime));
136
137
  }
137
138
  #S() {
138
139
  const { audioTracks: t } = this.#t;
@@ -148,7 +149,7 @@ class H {
148
149
  this.#i?.destroy(), this.#i = null, this.#n?.(), this.#n = null;
149
150
  }
150
151
  }
151
- class _ {
152
+ class R {
152
153
  #e;
153
154
  #t;
154
155
  #i;
@@ -161,8 +162,8 @@ class _ {
161
162
  onLoaded: this.#s.bind(this),
162
163
  onLoadError: this.#o.bind(this)
163
164
  };
164
- let i = await R(this.#e, t);
165
- if (L(i) && !l(this.#e) && (i = await $(this.#e, t)), !i) return null;
165
+ let i = await $(this.#e, t);
166
+ if (L(i) && !l(this.#e) && (i = await _(this.#e, t)), !i) return null;
166
167
  if (!i.isSupported()) {
167
168
  const e = "[vidstack] `hls.js` is not supported in this environment";
168
169
  return this.#t.player.dispatch(new d("hls-unsupported")), this.#t.notify("error", { message: e, code: 4 }), null;
@@ -180,7 +181,7 @@ class _ {
180
181
  ), this.#i(t);
181
182
  }
182
183
  #o(t) {
183
- const i = w(t);
184
+ const i = b(t);
184
185
  this.#t.player.dispatch(
185
186
  new d("hls-lib-load-error", {
186
187
  detail: i
@@ -192,7 +193,7 @@ class _ {
192
193
  });
193
194
  }
194
195
  }
195
- async function $(r, t = {}) {
196
+ async function _(r, t = {}) {
196
197
  if (!L(r)) {
197
198
  if (t.onLoadStart?.(), r.prototype && r.prototype !== Function)
198
199
  return t.onLoaded?.(r), r;
@@ -210,11 +211,11 @@ async function $(r, t = {}) {
210
211
  }
211
212
  }
212
213
  }
213
- async function R(r, t = {}) {
214
+ async function $(r, t = {}) {
214
215
  if (l(r)) {
215
216
  t.onLoadStart?.();
216
217
  try {
217
- if (await x(r), !D(window.Hls))
218
+ if (await T(r), !D(window.Hls))
218
219
  throw Error(
219
220
  ""
220
221
  );
@@ -226,10 +227,10 @@ async function R(r, t = {}) {
226
227
  }
227
228
  }
228
229
  const O = "https://cdn.jsdelivr.net";
229
- class V extends C {
230
+ class q extends C {
230
231
  $$PROVIDER_TYPE = "HLS";
231
232
  #e = null;
232
- #t = new H(this.video, this.ctx);
233
+ #t = new A(this.video, this.ctx);
233
234
  /**
234
235
  * The `hls.js` constructor.
235
236
  */
@@ -245,7 +246,7 @@ class V extends C {
245
246
  /**
246
247
  * Whether `hls.js` is supported in this environment.
247
248
  */
248
- static supported = S();
249
+ static supported = m();
249
250
  get type() {
250
251
  return "hls";
251
252
  }
@@ -276,10 +277,10 @@ class V extends C {
276
277
  this.#i = t;
277
278
  }
278
279
  preconnect() {
279
- l(this.#i) && E(this.#i);
280
+ l(this.#i) && S(this.#i);
280
281
  }
281
282
  setup() {
282
- super.setup(), new _(this.#i, this.ctx, (t) => {
283
+ super.setup(), new R(this.#i, this.ctx, (t) => {
283
284
  this.#e = t, this.#t.setup(t), this.ctx.notify("provider-setup", this);
284
285
  const i = f(this.ctx.$state.source);
285
286
  i && this.loadSource(i);
@@ -305,5 +306,5 @@ class V extends C {
305
306
  }
306
307
  }
307
308
  export {
308
- V as HLSProvider
309
+ q as HLSProvider
309
310
  };
@@ -1,6 +1,7 @@
1
- import { s as l, t as o, u, v as p, o as h, l as P, D as f, E as g, T as k, w as n } from "./wt-vidstack-player-BB6Gwvf5.js";
2
- import { H as x, a as T } from "./vidstack-Bq6c3Bam-CJx1I67B.js";
3
- class m {
1
+ import { s as l, an as o, ao as u, ap as p, o as h, l as P, D as f, n as g } from "./useVidstackSrc-kG_Nr2qn.js";
2
+ import { H as k, a as m } from "./vidstack-Bq6c3Bam-CEBxCfps.js";
3
+ import { T as x, b as n } from "./wt-vidstack-player-B24VLEaw.js";
4
+ class T {
4
5
  #t;
5
6
  #i;
6
7
  constructor(t, e) {
@@ -8,8 +9,8 @@ class m {
8
9
  }
9
10
  #e(t) {
10
11
  const e = t.track;
11
- if (!e || v(this.#t, e)) return;
12
- const i = new k({
12
+ if (!e || y(this.#t, e)) return;
13
+ const i = new x({
13
14
  id: e.id,
14
15
  kind: e.kind,
15
16
  label: e.label ?? "",
@@ -33,10 +34,10 @@ class m {
33
34
  }
34
35
  }
35
36
  }
36
- function v(s, t) {
37
+ function y(s, t) {
37
38
  return Array.from(s.children).find((e) => e.track === t);
38
39
  }
39
- class y {
40
+ class v {
40
41
  #t;
41
42
  #i;
42
43
  constructor(t, e) {
@@ -92,7 +93,7 @@ class M {
92
93
  });
93
94
  }
94
95
  }
95
- class w {
96
+ class b {
96
97
  #t;
97
98
  get active() {
98
99
  return this.#t.mode === "fullscreen";
@@ -110,7 +111,7 @@ class w {
110
111
  this.#t.setPresentationMode("inline");
111
112
  }
112
113
  }
113
- class E {
114
+ class w {
114
115
  #t;
115
116
  get active() {
116
117
  return this.#t.mode === "picture-in-picture";
@@ -128,7 +129,7 @@ class E {
128
129
  this.#t.setPresentationMode("inline");
129
130
  }
130
131
  }
131
- class V extends x {
132
+ class A extends k {
132
133
  $$PROVIDER_TYPE = "VIDEO";
133
134
  get type() {
134
135
  return "video";
@@ -138,14 +139,14 @@ class V extends x {
138
139
  pictureInPicture;
139
140
  constructor(t, e) {
140
141
  super(t, e), l(() => {
141
- if (this.airPlay = new T(t, e), o(t)) {
142
+ if (this.airPlay = new m(t, e), o(t)) {
142
143
  const i = new M(t, e);
143
- this.fullscreen = new w(i), this.pictureInPicture = new E(i);
144
- } else u(t) && (this.pictureInPicture = new y(t, e));
144
+ this.fullscreen = new b(i), this.pictureInPicture = new w(i);
145
+ } else u(t) && (this.pictureInPicture = new v(t, e));
145
146
  }, this.scope);
146
147
  }
147
148
  setup() {
148
- super.setup(), p(this.video) && new m(this.video, this.ctx), this.ctx.textRenderers.attachVideo(this.video), h(() => {
149
+ super.setup(), p(this.video) && new T(this.video, this.ctx), this.ctx.textRenderers.attachVideo(this.video), h(() => {
149
150
  this.ctx.textRenderers.attachVideo(null);
150
151
  }), this.type === "video" && this.ctx.notify("provider-setup", this);
151
152
  }
@@ -159,5 +160,5 @@ class V extends x {
159
160
  }
160
161
  }
161
162
  export {
162
- V as VideoProvider
163
+ A as VideoProvider
163
164
  };
@@ -1,6 +1,7 @@
1
- import { b as y, n as u, K as o, y as b, e as c, p as l, f as k, M as d, L as h, l as v, N as m, T as w, Q as f } from "./wt-vidstack-player-BB6Gwvf5.js";
2
- import { R as P } from "./vidstack-DqAw8m9J-DN0Rx2Cp.js";
3
- import { E as T } from "./vidstack-DDXt6fpN-CccMyx3k.js";
1
+ import { ab as y, v as u, m as c, x as l, d as b, f as d, l as v, i as k } from "./useVidstackSrc-kG_Nr2qn.js";
2
+ import { e as o, p as m, L as r, T as w, Q as f } from "./wt-vidstack-player-B24VLEaw.js";
3
+ import { R as P } from "./vidstack-DqAw8m9J-B46XoRCX.js";
4
+ import { E as T } from "./vidstack-DDXt6fpN-DzBWYiQF.js";
4
5
  import { resolveVimeoVideoId as C, getVimeoVideoInfo as g } from "./vidstack-krOAtKMi-C50BTxmn.js";
5
6
  const $ = [
6
7
  "bufferend",
@@ -46,7 +47,7 @@ const $ = [
46
47
  // 'livestreamoffline',
47
48
  // 'livestreamonline',
48
49
  ];
49
- class A extends T {
50
+ class M extends T {
50
51
  $$PROVIDER_TYPE = "VIMEO";
51
52
  scope = y();
52
53
  fullscreen;
@@ -59,7 +60,7 @@ class A extends T {
59
60
  #n = new o(0, 0);
60
61
  #l = new P(this.#g.bind(this));
61
62
  #w = null;
62
- #h = null;
63
+ #r = null;
63
64
  #a = /* @__PURE__ */ new Map();
64
65
  #u = null;
65
66
  constructor(e, t) {
@@ -101,13 +102,13 @@ class A extends T {
101
102
  return this.#i();
102
103
  }
103
104
  preconnect() {
104
- b(this.getOrigin());
105
+ m(this.getOrigin());
105
106
  }
106
107
  setup() {
107
108
  super.setup(), c(this.#P.bind(this)), c(this.#T.bind(this)), c(this.#C.bind(this)), this.#e.notify("provider-setup", this);
108
109
  }
109
110
  destroy() {
110
- this.#v(), this.fullscreen = void 0;
111
+ this.#k(), this.fullscreen = void 0;
111
112
  const e = "provider destroyed";
112
113
  for (const t of this.#a.values())
113
114
  for (const { reject: s } of t) s(e);
@@ -132,7 +133,7 @@ class A extends T {
132
133
  this.#t("setPlaybackRate", e);
133
134
  }
134
135
  async loadSource(e) {
135
- if (!k(e.src)) {
136
+ if (!b(e.src)) {
136
137
  this.#c = null, this.#o = null, this.#s.set("");
137
138
  return;
138
139
  }
@@ -140,7 +141,7 @@ class A extends T {
140
141
  this.#s.set(t ?? ""), this.#o = s ?? null, this.#c = e;
141
142
  }
142
143
  #P() {
143
- this.#v();
144
+ this.#k();
144
145
  const e = this.#s();
145
146
  if (!e) {
146
147
  this.src.set("");
@@ -162,7 +163,7 @@ class A extends T {
162
163
  }
163
164
  #C() {
164
165
  const e = this.#i(), { $state: t, qualities: s } = this.#e;
165
- if (t.canSetPlaybackRate.set(e), s[h.setReadonly](!e), e)
166
+ if (t.canSetPlaybackRate.set(e), s[r.setReadonly](!e), e)
166
167
  return v(s, "change", () => {
167
168
  if (s.auto) return;
168
169
  const i = s.selected?.id;
@@ -191,14 +192,14 @@ class A extends T {
191
192
  this.#t("getCurrentTime");
192
193
  }
193
194
  // Embed will sometimes dispatch 0 at end of playback.
194
- #r = !1;
195
+ #h = !1;
195
196
  #$(e, t) {
196
- if (this.#r && e === 0) return;
197
- const { realCurrentTime: s, paused: i, bufferedEnd: n, seekableEnd: a, live: r } = this.#e.$state;
197
+ if (this.#h && e === 0) return;
198
+ const { realCurrentTime: s, paused: i, bufferedEnd: n, seekableEnd: a, live: h } = this.#e.$state;
198
199
  if (s() === e) return;
199
200
  const p = s();
200
- this.#e.notify("time-change", e, t), Math.abs(p - e) > 1.5 && (this.#e.notify("seeking", e, t), !i() && n() < e && this.#e.notify("waiting", void 0, t)), !r() && a() - e < 0.01 && (this.#e.notify("end", void 0, t), this.#r = !0, setTimeout(() => {
201
- this.#r = !1;
201
+ this.#e.notify("time-change", e, t), Math.abs(p - e) > 1.5 && (this.#e.notify("seeking", e, t), !i() && n() < e && this.#e.notify("waiting", void 0, t)), !h() && a() - e < 0.01 && (this.#e.notify("end", void 0, t), this.#h = !0, setTimeout(() => {
202
+ this.#h = !1;
202
203
  }, 500));
203
204
  }
204
205
  #E(e, t) {
@@ -208,8 +209,8 @@ class A extends T {
208
209
  const t = this.#s();
209
210
  this.#u?.promise.then((s) => {
210
211
  if (!s) return;
211
- const { title: i, poster: n, duration: a, pro: r } = s;
212
- this.#i.set(r), this.#e.notify("title-change", i, e), this.#e.notify("poster-change", n, e), this.#e.notify("duration-change", a, e), this.#f(a, e);
212
+ const { title: i, poster: n, duration: a, pro: h } = s;
213
+ this.#i.set(h), this.#e.notify("title-change", i, e), this.#e.notify("poster-change", n, e), this.#e.notify("duration-change", a, e), this.#f(a, e);
213
214
  }).catch(() => {
214
215
  t === this.#s() && (this.#t("getVideoTitle"), this.#t("getDuration"));
215
216
  });
@@ -238,7 +239,7 @@ class A extends T {
238
239
  this.#$(t, s);
239
240
  break;
240
241
  case "getBuffered":
241
- m(t) && t.length && this.#p(t[t.length - 1][1], s);
242
+ k(t) && t.length && this.#p(t[t.length - 1][1], s);
242
243
  break;
243
244
  case "setMuted":
244
245
  this.#y(l(this.#e.$state.volume), t, s);
@@ -259,15 +260,15 @@ class A extends T {
259
260
  for (const e of $)
260
261
  this.#t("addEventListener", e);
261
262
  }
262
- #M(e) {
263
+ #x(e) {
263
264
  this.#l.stop(), this.#e.notify("pause", void 0, e);
264
265
  }
265
266
  #A(e) {
266
267
  this.#l.start(), this.#e.notify("play", void 0, e);
267
268
  }
268
- #S(e) {
269
+ #M(e) {
269
270
  const { paused: t } = this.#e.$state;
270
- !t() && !this.#r && this.#e.notify("playing", void 0, e);
271
+ !t() && !this.#h && this.#e.notify("playing", void 0, e);
271
272
  }
272
273
  #p(e, t) {
273
274
  const s = {
@@ -276,10 +277,10 @@ class A extends T {
276
277
  };
277
278
  this.#e.notify("progress", s, t);
278
279
  }
279
- #q(e) {
280
+ #S(e) {
280
281
  this.#e.notify("waiting", void 0, e);
281
282
  }
282
- #x(e) {
283
+ #q(e) {
283
284
  const { paused: t } = this.#e.$state;
284
285
  t() || this.#e.notify("playing", void 0, e);
285
286
  }
@@ -330,17 +331,17 @@ class A extends T {
330
331
  )
331
332
  );
332
333
  }
333
- this.#h = t, this.#e.textTracks.add(t);
334
+ this.#r = t, this.#e.textTracks.add(t);
334
335
  }
335
336
  #b() {
336
- this.#h && (this.#e.textTracks.remove(this.#h), this.#h = null);
337
+ this.#r && (this.#e.textTracks.remove(this.#r), this.#r = null);
337
338
  }
338
339
  #F(e, t) {
339
340
  this.#e.qualities[f.enableAuto] = e.some((s) => s.id === "auto") ? () => this.#t("setQuality", "auto") : void 0;
340
341
  for (const s of e) {
341
342
  if (s.id === "auto") continue;
342
343
  const i = +s.id.slice(0, -1);
343
- isNaN(i) || this.#e.qualities[h.add](
344
+ isNaN(i) || this.#e.qualities[r.add](
344
345
  {
345
346
  id: s.id,
346
347
  width: i * (16 / 9),
@@ -351,15 +352,15 @@ class A extends T {
351
352
  t
352
353
  );
353
354
  }
354
- this.#k(
355
+ this.#v(
355
356
  e.find((s) => s.active),
356
357
  t
357
358
  );
358
359
  }
359
- #k({ id: e } = {}, t) {
360
+ #v({ id: e } = {}, t) {
360
361
  if (!e) return;
361
362
  const s = e === "auto", i = this.#e.qualities.getById(e);
362
- s ? (this.#e.qualities[f.setAuto](s, t), this.#e.qualities[h.select](void 0, !0, t)) : this.#e.qualities[h.select](i ?? void 0, !0, t);
363
+ s ? (this.#e.qualities[f.setAuto](s, t), this.#e.qualities[r.select](void 0, !0, t)) : this.#e.qualities[r.select](i ?? void 0, !0, t);
363
364
  }
364
365
  #O(e, t, s) {
365
366
  switch (e) {
@@ -373,10 +374,10 @@ class A extends T {
373
374
  this.#A(s);
374
375
  break;
375
376
  case "playProgress":
376
- this.#S(s);
377
+ this.#M(s);
377
378
  break;
378
379
  case "pause":
379
- this.#M(s);
380
+ this.#x(s);
380
381
  break;
381
382
  case "loadProgress":
382
383
  this.#p(t.seconds, s);
@@ -385,10 +386,10 @@ class A extends T {
385
386
  this.#Q(s);
386
387
  break;
387
388
  case "bufferstart":
388
- this.#q(s);
389
+ this.#S(s);
389
390
  break;
390
391
  case "bufferend":
391
- this.#x(s);
392
+ this.#q(s);
392
393
  break;
393
394
  case "volumechange":
394
395
  this.#y(t.volume, l(this.#e.$state.muted), s);
@@ -400,7 +401,7 @@ class A extends T {
400
401
  this.#e.notify("rate-change", t.playbackRate, s);
401
402
  break;
402
403
  case "qualitychange":
403
- this.#k(t, s);
404
+ this.#v(t, s);
404
405
  break;
405
406
  case "fullscreenchange":
406
407
  this.#d = t.fullscreen, this.#e.notify("fullscreen-change", t.fullscreen, s);
@@ -439,7 +440,7 @@ class A extends T {
439
440
  value: t
440
441
  }), s.promise;
441
442
  }
442
- #v() {
443
+ #k() {
443
444
  this.#l.stop(), this.#n = new o(0, 0), this.#u = null, this.#w = null, this.#i.set(!1), this.#b();
444
445
  }
445
446
  #m(e) {
@@ -447,5 +448,5 @@ class A extends T {
447
448
  }
448
449
  }
449
450
  export {
450
- A as VimeoProvider
451
+ M as VimeoProvider
451
452
  };
@@ -1,5 +1,6 @@
1
- import { b as p, n as y, y as f, e as m, f as g, M as b, K as u, P as k, r as d, R as v } from "./wt-vidstack-player-BB6Gwvf5.js";
2
- import { E as P } from "./vidstack-DDXt6fpN-CccMyx3k.js";
1
+ import { ab as p, v as y, m, d as f, f as g, aa as b, h as d, ai as v } from "./useVidstackSrc-kG_Nr2qn.js";
2
+ import { p as k, e as u } from "./wt-vidstack-player-B24VLEaw.js";
3
+ import { E as P } from "./vidstack-DDXt6fpN-DzBWYiQF.js";
3
4
  import { resolveYouTubeVideoId as w } from "./vidstack-Dm1xEU9Q-CXHNvShT.js";
4
5
  const r = {
5
6
  Ended: 0,
@@ -8,7 +9,7 @@ const r = {
8
9
  Buffering: 3,
9
10
  Cued: 5
10
11
  };
11
- class E extends P {
12
+ class R extends P {
12
13
  $$PROVIDER_TYPE = "YOUTUBE";
13
14
  scope = p();
14
15
  #e;
@@ -51,7 +52,7 @@ class E extends P {
51
52
  return this.#a();
52
53
  }
53
54
  preconnect() {
54
- f(this.getOrigin());
55
+ k(this.getOrigin());
55
56
  }
56
57
  setup() {
57
58
  super.setup(), m(this.#c.bind(this)), this.#e.notify("provider-setup", this);
@@ -66,13 +67,13 @@ class E extends P {
66
67
  async play() {
67
68
  return this.#t("playVideo");
68
69
  }
69
- #k(e) {
70
+ #v(e) {
70
71
  this.#n("playVideo")?.reject(e);
71
72
  }
72
73
  async pause() {
73
74
  return this.#t("pauseVideo");
74
75
  }
75
- #v(e) {
76
+ #k(e) {
76
77
  this.#n("pauseVideo")?.reject(e);
77
78
  }
78
79
  setMuted(e) {
@@ -88,7 +89,7 @@ class E extends P {
88
89
  this.#t("setPlaybackRate", e);
89
90
  }
90
91
  async loadSource(e) {
91
- if (!g(e.src)) {
92
+ if (!f(e.src)) {
92
93
  this.#d = null, this.#a.set("");
93
94
  return;
94
95
  }
@@ -126,7 +127,7 @@ class E extends P {
126
127
  };
127
128
  }
128
129
  #t(e, t) {
129
- let s = b(), a = this.#s.get(e);
130
+ let s = g(), a = this.#s.get(e);
130
131
  return a || this.#s.set(e, a = []), a.push(s), this.postMessage({
131
132
  event: "command",
132
133
  func: e,
@@ -142,7 +143,7 @@ class E extends P {
142
143
  #y(e) {
143
144
  this.#n("pauseVideo")?.resolve(), this.#e.notify("pause", void 0, e);
144
145
  }
145
- #f(e, t) {
146
+ #m(e, t) {
146
147
  const { duration: s, realCurrentTime: a } = this.#e.$state, i = this.#o === r.Ended, o = i ? s() : e;
147
148
  this.#e.notify("time-change", o, t), !i && Math.abs(o - a()) > 1 && this.#e.notify("seeking", o, t);
148
149
  }
@@ -164,7 +165,7 @@ class E extends P {
164
165
  t() ? 100 : 0
165
166
  );
166
167
  }
167
- #m(e) {
168
+ #f(e) {
168
169
  const { seeking: t } = this.#e.$state;
169
170
  t() && this.#h(e), this.#e.notify("pause", void 0, e), this.#e.notify("end", void 0, e);
170
171
  }
@@ -189,7 +190,7 @@ class E extends P {
189
190
  this.#y(t);
190
191
  break;
191
192
  case r.Ended:
192
- this.#m(t);
193
+ this.#f(t);
193
194
  break;
194
195
  }
195
196
  this.#o = e;
@@ -197,7 +198,7 @@ class E extends P {
197
198
  onMessage({ info: e }, t) {
198
199
  if (!e) return;
199
200
  const { title: s, intrinsicDuration: a, playbackRate: i } = this.#e.$state;
200
- if (k(e.videoData) && e.videoData.title !== s() && this.#e.notify("title-change", e.videoData.title, t), d(e.duration) && e.duration !== a()) {
201
+ if (b(e.videoData) && e.videoData.title !== s() && this.#e.notify("title-change", e.videoData.title, t), d(e.duration) && e.duration !== a()) {
201
202
  if (d(e.videoLoadedFraction)) {
202
203
  const o = e.progressState?.loaded ?? e.videoLoadedFraction * e.duration, n = new u(0, e.duration);
203
204
  this.#u(o, n, t);
@@ -206,7 +207,7 @@ class E extends P {
206
207
  }
207
208
  if (d(e.playbackRate) && e.playbackRate !== i() && this.#e.notify("rate-change", e.playbackRate, t), e.progressState) {
208
209
  const { current: o, seekableStart: n, seekableEnd: h, loaded: c, duration: l } = e.progressState;
209
- this.#f(o, t), this.#u(c, new u(n, h), t), l !== a() && this.#e.notify("duration-change", l, t);
210
+ this.#m(o, t), this.#u(c, new u(n, h), t), l !== a() && this.#e.notify("duration-change", l, t);
210
211
  }
211
212
  if (d(e.volume) && v(e.muted) && !this.#i) {
212
213
  const o = {
@@ -228,5 +229,5 @@ class E extends P {
228
229
  }
229
230
  }
230
231
  export {
231
- E as YouTubeProvider
232
+ R as YouTubeProvider
232
233
  };
@@ -1,5 +1,5 @@
1
1
  import { computed as O, createElementBlock as u, openBlock as f, renderSlot as a, normalizeProps as i, guardReactiveProps as c, Fragment as S, renderList as D, createVNode as k, mergeProps as v, unref as y } from "vue";
2
- import { I as e, _ as g, a as C, k as $, S as h } from "./install-In0YqDcO.js";
2
+ import { I as e, _ as g, a as C, k as $, S as h } from "./install-D2x01HjN.js";
3
3
  const b = [
4
4
  e.ADD,
5
5
  e.ADD_CONTACT,
@@ -1,5 +1,5 @@
1
1
  import { ref as y, useTemplateRef as C, resolveComponent as s, resolveDirective as g, withDirectives as S, createElementBlock as B, openBlock as $, createVNode as n, mergeProps as d, withCtx as i, renderSlot as x, normalizeClass as h } from "vue";
2
- import { _ as D } from "./install-In0YqDcO.js";
2
+ import { _ as D } from "./install-D2x01HjN.js";
3
3
  const O = {
4
4
  __name: "wt-button-select",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { ref as Be, onBeforeUnmount as Xo, resolveComponent as Yo, resolveDirective as Zo, withDirectives as Jo, createElementBlock as Mr, openBlock as Pr, createVNode as Qo, createCommentVNode as ei, nextTick as ti } from "vue";
2
- import { Z as he, $ as pr, a0 as ho, a1 as ri, a2 as se, a3 as ni, a4 as hr, a5 as ce, a6 as V, a7 as oi, a8 as gr, a9 as ii, R as we, aa as ai, ab as si, ac as ci, ad as ui, _ as li, C as di } from "./install-In0YqDcO.js";
3
- import { e as fi } from "./isObject-DN6MD8kE.js";
2
+ import { Z as he, $ as pr, a0 as ho, a1 as ri, a2 as se, a3 as ni, a4 as hr, a5 as ce, a6 as V, a7 as oi, a8 as gr, a9 as ii, R as we, aa as ai, ab as si, ac as ci, ad as ui, _ as li, C as di } from "./install-D2x01HjN.js";
3
+ import { e as fi } from "./isObject-B_62MKM-.js";
4
4
  function ge(t) {
5
5
  if (typeof t != "string" || !t)
6
6
  throw new Error("expected a non-empty string, got: " + t);
@@ -1,5 +1,5 @@
1
1
  import { useAttrs as w, ref as y, resolveComponent as r, createBlock as v, openBlock as k, mergeProps as C, unref as S, withCtx as n, renderSlot as u, createVNode as d, createTextVNode as a, toDisplayString as l, createElementVNode as f } from "vue";
2
- import { _ as $ } from "./install-In0YqDcO.js";
2
+ import { _ as $ } from "./install-D2x01HjN.js";
3
3
  const h = { class: "wt-confirm-dialog__content" }, D = { class: "wt-confirm-dialog__message" }, j = {
4
4
  __name: "wt-confirm-dialog",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as h, createElementBlock as a, openBlock as l, createVNode as x, withCtx as r, createElementVNode as c, normalizeStyle as b, Fragment as v, renderList as _, withModifiers as g, normalizeClass as k, renderSlot as u, normalizeProps as m, guardReactiveProps as p, createTextVNode as C, toDisplayString as S } from "vue";
2
- import { _ as $ } from "./install-In0YqDcO.js";
2
+ import { _ as $ } from "./install-D2x01HjN.js";
3
3
  const B = { class: "wt-context-menu" }, W = ["onClick"], z = {
4
4
  __name: "wt-context-menu",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import p from "clipboard-copy";
2
2
  import { resolveComponent as n, resolveDirective as l, withDirectives as s, createBlock as r, openBlock as a, mergeProps as d } from "vue";
3
- import { _ as u } from "./install-In0YqDcO.js";
3
+ import { _ as u } from "./install-D2x01HjN.js";
4
4
  let e = null;
5
5
  const m = {
6
6
  name: "WtCopyAction",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Xe, useSlots as Da, ref as L, toRef as Bt, onMounted as et, onUnmounted as Ma, watch as dt, computed as H, createElementBlock as C, openBlock as w, normalizeClass as he, unref as c, createVNode as Le, createBlock as pe, createCommentVNode as N, mergeProps as Pe, isRef as wt, createSlots as Ue, renderList as Ce, withCtx as te, renderSlot as q, normalizeProps as Se, guardReactiveProps as Ze, resolveDynamicComponent as ar, Teleport as Nr, reactive as Et, nextTick as bt, withKeys as ue, withModifiers as nt, Transition as Nt, createElementVNode as ae, Fragment as fe, normalizeStyle as mt, createTextVNode as je, toDisplayString as Oe, withDirectives as Wt, vShow as zt, getCurrentScope as Pr, onScopeDispose as Ar, onBeforeUpdate as Cr, toRefs as Or, resolveComponent as At } from "vue";
2
- import { t as ce, c as Ae, n as Yr, g as rr, m as Ta, b as $a, d as Ir, e as Sr, s as Vt, f as nr, h as lr, i as or, j as sr, l as Rr, o as Br, p as Ba, q as Vr, w as Va, r as Er, u as jt, v as It, x as Hr, y as Lr, _ as Ur, z as Fr, A as qr, C as Wr, M as zr } from "./install-In0YqDcO.js";
2
+ import { t as ce, c as Ae, n as Yr, g as rr, m as Ta, b as $a, d as Ir, e as Sr, s as Vt, f as nr, h as lr, i as or, j as sr, l as Rr, o as Br, p as Ba, q as Vr, w as Va, r as Er, u as jt, v as It, x as Hr, y as Lr, _ as Ur, z as Fr, A as qr, C as Wr, M as zr } from "./install-D2x01HjN.js";
3
3
  function ot(a, e, r) {
4
4
  const t = ce(a, r?.in);
5
5
  return isNaN(e) ? Ae(r?.in || a, NaN) : (e && t.setDate(t.getDate() + e), t);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, computed as p, createElementBlock as t, openBlock as s, createCommentVNode as a, renderSlot as m, createVNode as d, toDisplayString as n, createTextVNode as h, unref as u, withCtx as c, Fragment as k, renderList as C } from "vue";
2
- import { ae as I, af as B, _ as S } from "./install-In0YqDcO.js";
2
+ import { ae as I, af as B, _ as S } from "./install-D2x01HjN.js";
3
3
  const y = "-", b = (i) => i || y, g = { class: "wt-display-chip-items" }, w = { key: 0 }, E = ["onClick"], F = /* @__PURE__ */ v({
4
4
  __name: "wt-display-chip-items",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as v, computed as w, resolveComponent as h, createElementBlock as o, openBlock as t, createCommentVNode as n, createElementVNode as i, renderSlot as l, normalizeClass as k, createBlock as z, unref as c } from "vue";
2
- import { _ as C, C as u, I as r } from "./install-In0YqDcO.js";
2
+ import { _ as C, C as u, I as r } from "./install-D2x01HjN.js";
3
3
  const P = { class: "wt-dual-panel" }, y = {
4
4
  key: 0,
5
5
  class: "wt-dual-panel__header"