@webitel/ui-sdk 26.6.34 → 26.6.36

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 (182) hide show
  1. package/dist/AgentStatus.enum-C3IGHtvR.js +9 -0
  2. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  3. package/dist/caseConverters-DXegZoCt.js +27 -0
  4. package/dist/chunk-CY3AvKd6.js +20 -0
  5. package/dist/clients-A6MHYfOX.js +36118 -0
  6. package/dist/components-DFOWyAAb.js +5395 -0
  7. package/dist/composables-DnDH-KUv.js +263 -0
  8. package/dist/convertDuration-1K7fuEpO.js +8 -0
  9. package/dist/debounce-DrmECuJ2.js +128 -0
  10. package/dist/deep-copy-CQw5yeEH.js +41 -0
  11. package/dist/displayText-CtaxzaBz.js +3 -0
  12. package/dist/dist-05Bf47Wg.js +87 -0
  13. package/dist/dist-BYiYpK00.js +7 -0
  14. package/dist/dist-Dz55hlwp.js +1371 -0
  15. package/dist/engineCallFileType-D7QVFOac.js +11 -0
  16. package/dist/enums-pbYAJNeb.js +158 -0
  17. package/dist/errors-SUXKojVW.js +69 -0
  18. package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
  19. package/dist/generateInstance-ppTIeLX4.js +2582 -0
  20. package/dist/isObject-Dgs_L5xI.js +11 -0
  21. package/dist/logger-hl3ueNok.js +47 -0
  22. package/dist/prod-Cp0BjuxI.js +775 -0
  23. package/dist/prod-DSuxcp5t.js +2 -0
  24. package/dist/side-channel-Cyte-MzW.js +833 -0
  25. package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
  26. package/dist/srt-parser-DdH5U08c.js +21 -0
  27. package/dist/ssa-parser-Bjs7yDD1.js +184 -0
  28. package/dist/ui-sdk.css +2 -1
  29. package/dist/ui-sdk.js +34567 -4
  30. package/dist/ui-sdk.umd.cjs +7748 -7606
  31. package/dist/useExpansion-DVdIpoOn.js +24 -0
  32. package/dist/useValidation-DG0tifBv.js +37 -0
  33. package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
  34. package/dist/useWtTable-tqmVOvve.js +12 -0
  35. package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
  36. package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
  37. package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
  38. package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
  39. package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
  40. package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
  41. package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
  42. package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
  43. package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
  44. package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
  45. package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
  46. package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
  47. package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
  48. package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
  49. package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
  50. package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
  51. package/dist/vidstack-audio-B58bvsna.js +23 -0
  52. package/dist/vidstack-dash-CX-LTHx3.js +332 -0
  53. package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
  54. package/dist/vidstack-hls-CLzdTFu6.js +269 -0
  55. package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
  56. package/dist/vidstack-video-XtP8iTBc.js +151 -0
  57. package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
  58. package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
  59. package/dist/vue-i18n-B8Px6VcD.js +2201 -0
  60. package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
  61. package/dist/wt-button-DENbrKdy.js +785 -0
  62. package/dist/wt-button-select-BnRHgJ4i.js +80 -0
  63. package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
  64. package/dist/wt-chat-emoji-D3SBme6f.js +2208 -0
  65. package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
  66. package/dist/wt-context-menu-yW52oF-2.js +89 -0
  67. package/dist/wt-copy-action-d9gVzAsB.js +38 -0
  68. package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
  69. package/dist/wt-display-chip-items-DagfTTIq.js +34 -0
  70. package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
  71. package/dist/wt-dummy-CLjhRWZ6.js +59 -0
  72. package/dist/wt-error-page-vhu4lIyF.js +62 -0
  73. package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
  74. package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
  75. package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
  76. package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
  77. package/dist/wt-galleria-CWXKuZTD.js +224 -0
  78. package/dist/wt-icon-action-CQlZHMDB.js +100 -0
  79. package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
  80. package/dist/wt-icon-pxO7IjwV.js +1026 -0
  81. package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
  82. package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
  83. package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
  84. package/dist/wt-page-header-CDbd4aOh.js +59 -0
  85. package/dist/wt-pagination-BA_PZPIE.js +94 -0
  86. package/dist/wt-player-uidPXSTe.js +287 -0
  87. package/dist/wt-popover-CJZH3wMl.js +98 -0
  88. package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
  89. package/dist/wt-search-bar-CWZdvAOf.js +123 -0
  90. package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
  91. package/dist/wt-send-message-popup-CltYZA9D.js +77 -0
  92. package/dist/wt-slider-BS3SoGht.js +68 -0
  93. package/dist/wt-start-page-eN1PEokc.js +86 -0
  94. package/dist/wt-status-select-A5t6Vjm4.js +101 -0
  95. package/dist/wt-stepper-B6zpd1Uh.js +41 -0
  96. package/dist/wt-table-D0FynxIE.js +364 -0
  97. package/dist/wt-table-actions-4-peSVkc.js +63 -0
  98. package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
  99. package/dist/wt-tabs-DuOgj-lZ.js +60 -0
  100. package/dist/wt-time-input-CO2cop3y.js +62 -0
  101. package/dist/wt-timepicker-BltFF1QD.js +145 -0
  102. package/dist/wt-tree-ZyoPrNOl.js +1206 -0
  103. package/dist/wt-tree-table-MLET4gIv.js +221 -0
  104. package/dist/wt-type-extension-value-input-028o8xRF.js +104 -0
  105. package/dist/wt-vidstack-player-B-WSB_Be.js +7440 -0
  106. package/package.json +5 -5
  107. package/src/components/wt-multi-select/wt-multi-select.vue +3 -0
  108. package/src/components/wt-single-select/wt-single-select.vue +5 -0
  109. package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
  110. package/src/plugins/primevue/theme/components/multi-select/multi-select.js +4 -0
  111. package/src/plugins/primevue/theme/components/single-select/single-select.js +4 -0
  112. package/types/plugins/primevue/theme/components/multi-select/multi-select.d.ts +2 -0
  113. package/types/plugins/primevue/theme/components/single-select/single-select.d.ts +2 -0
  114. package/dist/contacts-DzLKP4GQ.js +0 -49654
  115. package/dist/displayText-Cbh4IOfM.js +0 -5
  116. package/dist/engineCallFileType-yaadA7-2.js +0 -8
  117. package/dist/errors-CTL-RV3B.js +0 -70
  118. package/dist/index-BgLoxAyu.js +0 -50
  119. package/dist/install-Cm-8fwtB.js +0 -53489
  120. package/dist/isObject-BSIwu4UO.js +0 -28
  121. package/dist/prod-BoQuiIB3.js +0 -973
  122. package/dist/srt-parser-CsN7bp5E.js +0 -26
  123. package/dist/ssa-parser-BJOOPeQF.js +0 -200
  124. package/dist/useExpansion-BrQ40HiR.js +0 -24
  125. package/dist/useVidstackSrc-DKXY5f7v.js +0 -1341
  126. package/dist/vidstack-Bq6c3Bam-BHF-0bv4.js +0 -426
  127. package/dist/vidstack-D2pY00kU-B8Mhvp0m.js +0 -136
  128. package/dist/vidstack-DDXt6fpN-D0eou9h7.js +0 -51
  129. package/dist/vidstack-D_-9AA6_-DYAfclN7.js +0 -21
  130. package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
  131. package/dist/vidstack-DqAw8m9J-b5BHkhrw.js +0 -22
  132. package/dist/vidstack-audio-CPu_TbjK.js +0 -28
  133. package/dist/vidstack-dash-VYriMjws.js +0 -393
  134. package/dist/vidstack-google-cast-Byp1cemB.js +0 -383
  135. package/dist/vidstack-hls-DdUQcmEx.js +0 -310
  136. package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
  137. package/dist/vidstack-video-BpSKQ3wb.js +0 -164
  138. package/dist/vidstack-vimeo-CgVJJm06.js +0 -452
  139. package/dist/vidstack-youtube-DuES80MV.js +0 -233
  140. package/dist/wt-action-bar-TMuck-q1.js +0 -102
  141. package/dist/wt-button-select-D1NP5Xw9.js +0 -105
  142. package/dist/wt-call-media-action-BsepfSVy.js +0 -60
  143. package/dist/wt-chat-emoji-B00dUXbP.js +0 -2909
  144. package/dist/wt-confirm-dialog-1hO851Da.js +0 -92
  145. package/dist/wt-context-menu-BrzRmoDw.js +0 -104
  146. package/dist/wt-copy-action-CEMOiYzN.js +0 -60
  147. package/dist/wt-datepicker-DHqZIkg2.js +0 -5660
  148. package/dist/wt-display-chip-items-D7kEAcOo.js +0 -47
  149. package/dist/wt-dual-panel-DEWR3-k-.js +0 -66
  150. package/dist/wt-dummy-DfgxciHw.js +0 -104
  151. package/dist/wt-error-page-DUSVxkXq.js +0 -89
  152. package/dist/wt-expansion-card-B8JKBMLa.js +0 -56
  153. package/dist/wt-expansion-panel-DL3eoj_b.js +0 -54
  154. package/dist/wt-filters-panel-wrapper-CGXQiRvh.js +0 -75
  155. package/dist/wt-galleria-Bahv6Mgq.js +0 -323
  156. package/dist/wt-inline-add-panel-B4RjHVDI.js +0 -49
  157. package/dist/wt-navigation-menu-DqCXAV8E.js +0 -159
  158. package/dist/wt-notifications-bar-CRIKdVai.js +0 -79
  159. package/dist/wt-page-header-DdsnoLgd.js +0 -115
  160. package/dist/wt-pagination-C_b3WmH1.js +0 -144
  161. package/dist/wt-player-B4GWEqdu.js +0 -291
  162. package/dist/wt-popover-Di-7_rDL.js +0 -4
  163. package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
  164. package/dist/wt-screen-recordings-action-B4OpN5kl.js +0 -54
  165. package/dist/wt-search-bar-B_0_YwCn.js +0 -144
  166. package/dist/wt-selection-popup-Boyw9_V_.js +0 -109
  167. package/dist/wt-send-message-popup-0C23Zocu.js +0 -579
  168. package/dist/wt-slider-BEkw4KGp.js +0 -4
  169. package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
  170. package/dist/wt-start-page-HQMIG05a.js +0 -99
  171. package/dist/wt-status-select-H_me1xwA.js +0 -138
  172. package/dist/wt-stepper-hJxqyiyo.js +0 -65
  173. package/dist/wt-table-Du6mtkPw.js +0 -426
  174. package/dist/wt-table-actions-ah_H6LY9.js +0 -79
  175. package/dist/wt-table-column-select-C2Nbic5-.js +0 -128
  176. package/dist/wt-tabs-D4aGEd_t.js +0 -74
  177. package/dist/wt-time-input-DYiW0ijt.js +0 -42
  178. package/dist/wt-timepicker-BE8POMhF.js +0 -118
  179. package/dist/wt-tree-table-BJxaXqKl.js +0 -285
  180. package/dist/wt-tree-u0Zp8nb5.js +0 -2777
  181. package/dist/wt-type-extension-value-input-C1VlNa4K.js +0 -121
  182. package/dist/wt-vidstack-player-C1eyCEzP.js +0 -9094
@@ -0,0 +1,269 @@
1
+ import { D as e, H as t, I as n, K as r, R as i, f as a, r as o, v as s } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
+ import { r as c, y as l } from "./useVidstackSrc-DfNrFbOO.js";
3
+ import { i as u, r as d } from "./vidstack-CTojmhKq-D7sZJxgm.js";
4
+ import { t as f } from "./vidstack-DqAw8m9J-Dk1GT3Oe.js";
5
+ import { t as p } from "./vidstack-D5EzK014-DOe01V3H.js";
6
+ import { n as m, t as h } from "./vidstack-Ci54COQW-CAAXpwzv.js";
7
+ import { VideoProvider as g } from "./vidstack-video-XtP8iTBc.js";
8
+ import { t as _ } from "./vidstack-B01xzxC4-DeYSgDZy.js";
9
+ import { n as v } from "./vidstack-C9vIqaYT-C1EgPq17.js";
10
+ //#region node_modules/vidstack/prod/providers/vidstack-hls.js
11
+ var y = (e) => a(e), b = class {
12
+ #e;
13
+ #t;
14
+ #n = null;
15
+ #r = null;
16
+ config = {};
17
+ #i = /* @__PURE__ */ new Set();
18
+ get instance() {
19
+ return this.#n;
20
+ }
21
+ constructor(e, t) {
22
+ this.#e = e, this.#t = t;
23
+ }
24
+ setup(e) {
25
+ let { streamType: n } = this.#t.$state, i = r(n).includes("live"), a = r(n).includes("ll-");
26
+ this.#n = new e({
27
+ lowLatencyMode: a,
28
+ backBufferLength: a ? 4 : i ? 8 : void 0,
29
+ renderTextTracksNatively: !1,
30
+ ...this.config
31
+ });
32
+ let o = this.#c.bind(this);
33
+ for (let t of Object.values(e.Events)) this.#n.on(t, o);
34
+ this.#n.on(e.Events.ERROR, this.#h.bind(this));
35
+ for (let e of this.#i) e(this.#n);
36
+ this.#t.player.dispatch("hls-instance", { detail: this.#n }), this.#n.attachMedia(this.#e), this.#n.on(e.Events.AUDIO_TRACK_SWITCHED, this.#d.bind(this)), this.#n.on(e.Events.LEVEL_SWITCHED, this.#f.bind(this)), this.#n.on(e.Events.LEVEL_LOADED, this.#m.bind(this)), this.#n.on(e.Events.LEVEL_UPDATED, this.#p.bind(this)), this.#n.on(e.Events.NON_NATIVE_TEXT_TRACKS_FOUND, this.#l.bind(this)), this.#n.on(e.Events.CUES_PARSED, this.#u.bind(this)), this.#t.qualities[_.enableAuto] = this.#_.bind(this), t(this.#t.qualities, "change", this.#v.bind(this)), t(this.#t.audioTracks, "change", this.#y.bind(this)), this.#r = s(this.#o.bind(this));
37
+ }
38
+ #a(e, t) {
39
+ return new o(y(e), { detail: t });
40
+ }
41
+ #o() {
42
+ if (!this.#t.$state.live()) return;
43
+ let e = new f(this.#s.bind(this));
44
+ return e.start(), e.stop.bind(e);
45
+ }
46
+ #s() {
47
+ this.#t.$state.liveSyncPosition.set(this.#n?.liveSyncPosition ?? Infinity);
48
+ }
49
+ #c(e, t) {
50
+ this.#t.player?.dispatch(this.#a(e, t));
51
+ }
52
+ #l(e, t) {
53
+ let n = this.#a(e, t), r = -1;
54
+ for (let e = 0; e < t.tracks.length; e++) {
55
+ let i = t.tracks[e], a = i.subtitleTrack ?? i.closedCaptions, o = new h({
56
+ id: `hls-${i.kind}-${e}`,
57
+ src: a?.url,
58
+ label: i.label,
59
+ language: a?.lang,
60
+ kind: i.kind,
61
+ default: i.default
62
+ });
63
+ o[m.readyState] = 2, o[m.onModeChange] = () => {
64
+ o.mode === "showing" ? (this.#n.subtitleTrack = e, r = e) : r === e && (this.#n.subtitleTrack = -1, r = -1);
65
+ }, this.#t.textTracks.add(o, n);
66
+ }
67
+ }
68
+ #u(e, t) {
69
+ let n = this.#n?.subtitleTrack, r = this.#t.textTracks.getById(`hls-${t.type}-${n}`);
70
+ if (!r) return;
71
+ let i = this.#a(e, t);
72
+ for (let e of t.cues) e.positionAlign = "auto", r.addCue(e, i);
73
+ }
74
+ #d(e, t) {
75
+ let n = this.#t.audioTracks[t.id];
76
+ if (n) {
77
+ let r = this.#a(e, t);
78
+ this.#t.audioTracks[p.select](n, !0, r);
79
+ }
80
+ }
81
+ #f(e, t) {
82
+ let n = this.#t.qualities[t.level];
83
+ if (n) {
84
+ let r = this.#a(e, t);
85
+ this.#t.qualities[p.select](n, !0, r);
86
+ }
87
+ }
88
+ #p(e, t) {
89
+ t.details.totalduration > 0 && this.#t.$state.inferredLiveDVRWindow.set(t.details.totalduration);
90
+ }
91
+ #m(e, t) {
92
+ if (this.#t.$state.canPlay()) return;
93
+ let { type: n, live: r, totalduration: i, targetduration: a } = t.details, s = this.#a(e, t);
94
+ this.#t.notify("stream-type-change", r ? n === "EVENT" && Number.isFinite(i) && a >= 10 ? "live:dvr" : "live" : "on-demand", s), this.#t.notify("duration-change", i, s);
95
+ let c = this.#n.media;
96
+ this.#n.currentLevel === -1 && this.#t.qualities[_.setAuto](!0, s);
97
+ for (let e of this.#n.audioTracks) {
98
+ let t = {
99
+ id: e.id.toString(),
100
+ label: e.name,
101
+ language: e.lang || "",
102
+ kind: "main"
103
+ };
104
+ this.#t.audioTracks[p.add](t, s);
105
+ }
106
+ for (let e of this.#n.levels) {
107
+ let t = {
108
+ id: e.id?.toString() ?? e.height + "p",
109
+ width: e.width,
110
+ height: e.height,
111
+ codec: e.codecSet,
112
+ bitrate: e.bitrate
113
+ };
114
+ this.#t.qualities[p.add](t, s);
115
+ }
116
+ c.dispatchEvent(new o("canplay", { trigger: s }));
117
+ }
118
+ #h(e, t) {
119
+ if (t.fatal) switch (t.type) {
120
+ case "mediaError":
121
+ this.#n?.recoverMediaError();
122
+ break;
123
+ default:
124
+ this.#g(t.error);
125
+ break;
126
+ }
127
+ }
128
+ #g(e) {
129
+ this.#t.notify("error", {
130
+ message: e.message,
131
+ code: 1,
132
+ error: e
133
+ });
134
+ }
135
+ #_() {
136
+ this.#n && (this.#n.currentLevel = -1);
137
+ }
138
+ #v() {
139
+ let { qualities: e } = this.#t;
140
+ !this.#n || e.auto || (this.#n[e.switch + "Level"] = e.selectedIndex, c && (this.#e.currentTime = this.#e.currentTime));
141
+ }
142
+ #y() {
143
+ let { audioTracks: e } = this.#t;
144
+ this.#n && this.#n.audioTrack !== e.selectedIndex && (this.#n.audioTrack = e.selectedIndex);
145
+ }
146
+ onInstance(e) {
147
+ return this.#i.add(e), () => this.#i.delete(e);
148
+ }
149
+ loadSource(e) {
150
+ n(e.src) && this.#n?.loadSource(e.src);
151
+ }
152
+ destroy() {
153
+ this.#n?.destroy(), this.#n = null, this.#r?.(), this.#r = null;
154
+ }
155
+ }, x = class {
156
+ #e;
157
+ #t;
158
+ #n;
159
+ constructor(e, t, n) {
160
+ this.#e = e, this.#t = t, this.#n = n, this.#r();
161
+ }
162
+ async #r() {
163
+ let e = {
164
+ onLoadStart: this.#i.bind(this),
165
+ onLoaded: this.#a.bind(this),
166
+ onLoadError: this.#o.bind(this)
167
+ }, t = await C(this.#e, e);
168
+ return i(t) && !n(this.#e) && (t = await S(this.#e, e)), t ? t.isSupported() ? t : (this.#t.player.dispatch(new o("hls-unsupported")), this.#t.notify("error", {
169
+ message: "[vidstack] `hls.js` is not supported in this environment",
170
+ code: 4
171
+ }), null) : null;
172
+ }
173
+ #i() {
174
+ this.#t.player.dispatch(new o("hls-lib-load-start"));
175
+ }
176
+ #a(e) {
177
+ this.#t.player.dispatch(new o("hls-lib-loaded", { detail: e })), this.#n(e);
178
+ }
179
+ #o(e) {
180
+ let t = v(e);
181
+ this.#t.player.dispatch(new o("hls-lib-load-error", { detail: t })), this.#t.notify("error", {
182
+ message: t.message,
183
+ code: 4,
184
+ error: t
185
+ });
186
+ }
187
+ };
188
+ async function S(e, t = {}) {
189
+ if (!i(e)) {
190
+ if (t.onLoadStart?.(), e.prototype && e.prototype !== Function) return t.onLoaded?.(e), e;
191
+ try {
192
+ let n = (await e())?.default;
193
+ if (n && n.isSupported) t.onLoaded?.(n);
194
+ else throw Error("");
195
+ return n;
196
+ } catch (e) {
197
+ t.onLoadError?.(e);
198
+ }
199
+ }
200
+ }
201
+ async function C(t, r = {}) {
202
+ if (n(t)) {
203
+ r.onLoadStart?.();
204
+ try {
205
+ if (await d(t), !e(window.Hls)) throw Error("");
206
+ let n = window.Hls;
207
+ return r.onLoaded?.(n), n;
208
+ } catch (e) {
209
+ r.onLoadError?.(e);
210
+ }
211
+ }
212
+ }
213
+ var w = "https://cdn.jsdelivr.net", T = class extends g {
214
+ $$PROVIDER_TYPE = "HLS";
215
+ #e = null;
216
+ #t = new b(this.video, this.ctx);
217
+ get ctor() {
218
+ return this.#e;
219
+ }
220
+ get instance() {
221
+ return this.#t.instance;
222
+ }
223
+ static supported = l();
224
+ get type() {
225
+ return "hls";
226
+ }
227
+ get canLiveSync() {
228
+ return !0;
229
+ }
230
+ #n = `${w}/npm/hls.js@^1.5.0/dist/hls.min.js`;
231
+ get config() {
232
+ return this.#t.config;
233
+ }
234
+ set config(e) {
235
+ this.#t.config = e;
236
+ }
237
+ get library() {
238
+ return this.#n;
239
+ }
240
+ set library(e) {
241
+ this.#n = e;
242
+ }
243
+ preconnect() {
244
+ n(this.#n) && u(this.#n);
245
+ }
246
+ setup() {
247
+ super.setup(), new x(this.#n, this.ctx, (e) => {
248
+ this.#e = e, this.#t.setup(e), this.ctx.notify("provider-setup", this);
249
+ let t = r(this.ctx.$state.source);
250
+ t && this.loadSource(t);
251
+ });
252
+ }
253
+ async loadSource(e, t) {
254
+ if (!n(e.src)) {
255
+ this.removeSource();
256
+ return;
257
+ }
258
+ this.media.preload = t || "", this.appendSource(e, "application/x-mpegurl"), this.#t.loadSource(e), this.currentSrc = e;
259
+ }
260
+ onInstance(e) {
261
+ let t = this.#t.instance;
262
+ return t && e(t), this.#t.onInstance(e);
263
+ }
264
+ destroy() {
265
+ this.#t.destroy();
266
+ }
267
+ };
268
+ //#endregion
269
+ export { T as HLSProvider };
@@ -0,0 +1,30 @@
1
+ //#region node_modules/vidstack/prod/chunks/vidstack-krOAtKMi.js
2
+ var e = /(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/, t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
3
+ function r(t) {
4
+ let n = t.match(e);
5
+ return {
6
+ videoId: n?.[1],
7
+ hash: n?.[2]
8
+ };
9
+ }
10
+ async function i(e, r, i) {
11
+ if (t.has(e)) return t.get(e);
12
+ if (n.has(e)) return n.get(e);
13
+ let a = `https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/${e}`;
14
+ i && (a = a.concat(`?h=${i}`));
15
+ let o = window.fetch(a, {
16
+ mode: "cors",
17
+ signal: r.signal
18
+ }).then((e) => e.json()).then((n) => {
19
+ let r = n?.thumbnail_url?.match(/vimeocdn.com\/video\/(.*)?_/)?.[1], i = r ? `https://i.vimeocdn.com/video/${r}_1920x1080.webp` : "", a = {
20
+ title: n?.title ?? "",
21
+ duration: n?.duration ?? 0,
22
+ poster: i,
23
+ pro: n.account_type !== "basic"
24
+ };
25
+ return t.set(e, a), a;
26
+ }).finally(() => n.delete(e));
27
+ return n.set(e, o), o;
28
+ }
29
+ //#endregion
30
+ export { i as getVimeoVideoInfo, r as resolveVimeoVideoId };
@@ -0,0 +1,151 @@
1
+ import { G as e, H as t, X as n, i as r, r as i } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
+ import { d as a, m as o, p as s } from "./useVidstackSrc-DfNrFbOO.js";
3
+ import { n as c, t as l } from "./vidstack-Bq6c3Bam-3dCf_D36.js";
4
+ import { n as u, t as d } from "./vidstack-Ci54COQW-CAAXpwzv.js";
5
+ //#region node_modules/vidstack/prod/providers/vidstack-video.js
6
+ var f = class {
7
+ #e;
8
+ #t;
9
+ constructor(t, n) {
10
+ this.#e = t, this.#t = n, t.textTracks.onaddtrack = this.#n.bind(this), e(this.#r.bind(this));
11
+ }
12
+ #n(e) {
13
+ let t = e.track;
14
+ if (!t || p(this.#e, t)) return;
15
+ let n = new d({
16
+ id: t.id,
17
+ kind: t.kind,
18
+ label: t.label ?? "",
19
+ language: t.language,
20
+ type: "vtt"
21
+ });
22
+ n[u.native] = { track: t }, n[u.readyState] = 2, n[u.nativeHLS] = !0;
23
+ let r = 0, i = (e) => {
24
+ if (t.cues) for (let i = r; i < t.cues.length; i++) n.addCue(t.cues[i], e), r++;
25
+ };
26
+ i(e), t.oncuechange = i, this.#t.textTracks.add(n, e), n.setMode(t.mode, e);
27
+ }
28
+ #r() {
29
+ this.#e.textTracks.onaddtrack = null;
30
+ for (let e of this.#t.textTracks) {
31
+ let t = e[u.native]?.track;
32
+ t?.oncuechange && (t.oncuechange = null);
33
+ }
34
+ }
35
+ };
36
+ function p(e, t) {
37
+ return Array.from(e.children).find((e) => e.track === t);
38
+ }
39
+ var m = class {
40
+ #e;
41
+ #t;
42
+ constructor(e, t) {
43
+ this.#e = e, this.#t = t, new r(e).add("enterpictureinpicture", this.#n.bind(this)).add("leavepictureinpicture", this.#r.bind(this));
44
+ }
45
+ get active() {
46
+ return document.pictureInPictureElement === this.#e;
47
+ }
48
+ get supported() {
49
+ return s(this.#e);
50
+ }
51
+ async enter() {
52
+ return this.#e.requestPictureInPicture();
53
+ }
54
+ exit() {
55
+ return document.exitPictureInPicture();
56
+ }
57
+ #n(e) {
58
+ this.#i(!0, e);
59
+ }
60
+ #r(e) {
61
+ this.#i(!1, e);
62
+ }
63
+ #i = (e, t) => {
64
+ this.#t.notify("picture-in-picture-change", e, t);
65
+ };
66
+ }, h = class {
67
+ #e;
68
+ #t;
69
+ #n = "inline";
70
+ get mode() {
71
+ return this.#n;
72
+ }
73
+ constructor(e, n) {
74
+ this.#e = e, this.#t = n, t(e, "webkitpresentationmodechanged", this.#r.bind(this));
75
+ }
76
+ get supported() {
77
+ return o(this.#e);
78
+ }
79
+ async setPresentationMode(e) {
80
+ this.#n !== e && this.#e.webkitSetPresentationMode(e);
81
+ }
82
+ #r(e) {
83
+ let t = this.#n;
84
+ this.#n = this.#e.webkitPresentationMode, this.#t.player?.dispatch(new i("video-presentation-change", {
85
+ detail: this.#n,
86
+ trigger: e
87
+ })), ["fullscreen", "picture-in-picture"].forEach((n) => {
88
+ (this.#n === n || t === n) && this.#t.notify(`${n}-change`, this.#n === n, e);
89
+ });
90
+ }
91
+ }, g = class {
92
+ #e;
93
+ get active() {
94
+ return this.#e.mode === "fullscreen";
95
+ }
96
+ get supported() {
97
+ return this.#e.supported;
98
+ }
99
+ constructor(e) {
100
+ this.#e = e;
101
+ }
102
+ async enter() {
103
+ this.#e.setPresentationMode("fullscreen");
104
+ }
105
+ async exit() {
106
+ this.#e.setPresentationMode("inline");
107
+ }
108
+ }, _ = class {
109
+ #e;
110
+ get active() {
111
+ return this.#e.mode === "picture-in-picture";
112
+ }
113
+ get supported() {
114
+ return this.#e.supported;
115
+ }
116
+ constructor(e) {
117
+ this.#e = e;
118
+ }
119
+ async enter() {
120
+ this.#e.setPresentationMode("picture-in-picture");
121
+ }
122
+ async exit() {
123
+ this.#e.setPresentationMode("inline");
124
+ }
125
+ }, v = class extends c {
126
+ $$PROVIDER_TYPE = "VIDEO";
127
+ get type() {
128
+ return "video";
129
+ }
130
+ airPlay;
131
+ fullscreen;
132
+ pictureInPicture;
133
+ constructor(e, t) {
134
+ super(e, t), n(() => {
135
+ if (this.airPlay = new l(e, t), o(e)) {
136
+ let n = new h(e, t);
137
+ this.fullscreen = new g(n), this.pictureInPicture = new _(n);
138
+ } else s(e) && (this.pictureInPicture = new m(e, t));
139
+ }, this.scope);
140
+ }
141
+ setup() {
142
+ super.setup(), a(this.video) && new f(this.video, this.ctx), this.ctx.textRenderers.attachVideo(this.video), e(() => {
143
+ this.ctx.textRenderers.attachVideo(null);
144
+ }), this.type === "video" && this.ctx.notify("provider-setup", this);
145
+ }
146
+ get video() {
147
+ return this.media;
148
+ }
149
+ };
150
+ //#endregion
151
+ export { v as VideoProvider };