@webitel/ui-sdk 26.6.34 → 26.6.35

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 (176) 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-B4aAS7wB.js +5391 -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 +34541 -4
  30. package/dist/ui-sdk.umd.cjs +7740 -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-wdBt1XzD.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-CvMM8WMk.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-D0GJMGni.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-fnNxJLsq.js +104 -0
  105. package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
  106. package/package.json +5 -5
  107. package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
  108. package/dist/contacts-DzLKP4GQ.js +0 -49654
  109. package/dist/displayText-Cbh4IOfM.js +0 -5
  110. package/dist/engineCallFileType-yaadA7-2.js +0 -8
  111. package/dist/errors-CTL-RV3B.js +0 -70
  112. package/dist/index-BgLoxAyu.js +0 -50
  113. package/dist/install-Cm-8fwtB.js +0 -53489
  114. package/dist/isObject-BSIwu4UO.js +0 -28
  115. package/dist/prod-BoQuiIB3.js +0 -973
  116. package/dist/srt-parser-CsN7bp5E.js +0 -26
  117. package/dist/ssa-parser-BJOOPeQF.js +0 -200
  118. package/dist/useExpansion-BrQ40HiR.js +0 -24
  119. package/dist/useVidstackSrc-DKXY5f7v.js +0 -1341
  120. package/dist/vidstack-Bq6c3Bam-BHF-0bv4.js +0 -426
  121. package/dist/vidstack-D2pY00kU-B8Mhvp0m.js +0 -136
  122. package/dist/vidstack-DDXt6fpN-D0eou9h7.js +0 -51
  123. package/dist/vidstack-D_-9AA6_-DYAfclN7.js +0 -21
  124. package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
  125. package/dist/vidstack-DqAw8m9J-b5BHkhrw.js +0 -22
  126. package/dist/vidstack-audio-CPu_TbjK.js +0 -28
  127. package/dist/vidstack-dash-VYriMjws.js +0 -393
  128. package/dist/vidstack-google-cast-Byp1cemB.js +0 -383
  129. package/dist/vidstack-hls-DdUQcmEx.js +0 -310
  130. package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
  131. package/dist/vidstack-video-BpSKQ3wb.js +0 -164
  132. package/dist/vidstack-vimeo-CgVJJm06.js +0 -452
  133. package/dist/vidstack-youtube-DuES80MV.js +0 -233
  134. package/dist/wt-action-bar-TMuck-q1.js +0 -102
  135. package/dist/wt-button-select-D1NP5Xw9.js +0 -105
  136. package/dist/wt-call-media-action-BsepfSVy.js +0 -60
  137. package/dist/wt-chat-emoji-B00dUXbP.js +0 -2909
  138. package/dist/wt-confirm-dialog-1hO851Da.js +0 -92
  139. package/dist/wt-context-menu-BrzRmoDw.js +0 -104
  140. package/dist/wt-copy-action-CEMOiYzN.js +0 -60
  141. package/dist/wt-datepicker-DHqZIkg2.js +0 -5660
  142. package/dist/wt-display-chip-items-D7kEAcOo.js +0 -47
  143. package/dist/wt-dual-panel-DEWR3-k-.js +0 -66
  144. package/dist/wt-dummy-DfgxciHw.js +0 -104
  145. package/dist/wt-error-page-DUSVxkXq.js +0 -89
  146. package/dist/wt-expansion-card-B8JKBMLa.js +0 -56
  147. package/dist/wt-expansion-panel-DL3eoj_b.js +0 -54
  148. package/dist/wt-filters-panel-wrapper-CGXQiRvh.js +0 -75
  149. package/dist/wt-galleria-Bahv6Mgq.js +0 -323
  150. package/dist/wt-inline-add-panel-B4RjHVDI.js +0 -49
  151. package/dist/wt-navigation-menu-DqCXAV8E.js +0 -159
  152. package/dist/wt-notifications-bar-CRIKdVai.js +0 -79
  153. package/dist/wt-page-header-DdsnoLgd.js +0 -115
  154. package/dist/wt-pagination-C_b3WmH1.js +0 -144
  155. package/dist/wt-player-B4GWEqdu.js +0 -291
  156. package/dist/wt-popover-Di-7_rDL.js +0 -4
  157. package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
  158. package/dist/wt-screen-recordings-action-B4OpN5kl.js +0 -54
  159. package/dist/wt-search-bar-B_0_YwCn.js +0 -144
  160. package/dist/wt-selection-popup-Boyw9_V_.js +0 -109
  161. package/dist/wt-send-message-popup-0C23Zocu.js +0 -579
  162. package/dist/wt-slider-BEkw4KGp.js +0 -4
  163. package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
  164. package/dist/wt-start-page-HQMIG05a.js +0 -99
  165. package/dist/wt-status-select-H_me1xwA.js +0 -138
  166. package/dist/wt-stepper-hJxqyiyo.js +0 -65
  167. package/dist/wt-table-Du6mtkPw.js +0 -426
  168. package/dist/wt-table-actions-ah_H6LY9.js +0 -79
  169. package/dist/wt-table-column-select-C2Nbic5-.js +0 -128
  170. package/dist/wt-tabs-D4aGEd_t.js +0 -74
  171. package/dist/wt-time-input-DYiW0ijt.js +0 -42
  172. package/dist/wt-timepicker-BE8POMhF.js +0 -118
  173. package/dist/wt-tree-table-BJxaXqKl.js +0 -285
  174. package/dist/wt-tree-u0Zp8nb5.js +0 -2777
  175. package/dist/wt-type-extension-value-input-C1VlNa4K.js +0 -121
  176. package/dist/wt-vidstack-player-C1eyCEzP.js +0 -9094
@@ -0,0 +1,43 @@
1
+ import { H as e } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-BQlOPwOu.js
3
+ function t() {
4
+ return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
5
+ }
6
+ function n() {
7
+ return !!window.cast?.framework;
8
+ }
9
+ function r() {
10
+ return !!window.chrome?.cast?.isAvailable;
11
+ }
12
+ function i() {
13
+ return a().getCastState() === cast.framework.CastState.CONNECTED;
14
+ }
15
+ function a() {
16
+ return window.cast.framework.CastContext.getInstance();
17
+ }
18
+ function o() {
19
+ return a().getCurrentSession();
20
+ }
21
+ function s() {
22
+ return o()?.getSessionObj().media[0];
23
+ }
24
+ function c(e) {
25
+ return s()?.media.contentId === e?.src;
26
+ }
27
+ function l() {
28
+ return {
29
+ language: "en-US",
30
+ autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
31
+ receiverApplicationId: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,
32
+ resumeSavedSession: !0,
33
+ androidReceiverCompatible: !0
34
+ };
35
+ }
36
+ function u(e) {
37
+ return `Google Cast Error Code: ${e}`;
38
+ }
39
+ function d(t, n) {
40
+ return e(a(), t, n);
41
+ }
42
+ //#endregion
43
+ export { s as a, n as c, d, o as i, r as l, u as n, l as o, t as r, c as s, a as t, i as u };
@@ -0,0 +1,398 @@
1
+ import { $ as e, G as t, H as n, I as r, K as i, Z as a, h as o, i as s, j as c, r as l, v as u } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
+ import { b as d, i as f, o as p, v as m } from "./useVidstackSrc-DfNrFbOO.js";
3
+ import { t as h } from "./vidstack-DqAw8m9J-Dk1GT3Oe.js";
4
+ import { n as g } from "./vidstack-Dihypf8P-ibWMCHK-.js";
5
+ import { t as _ } from "./vidstack-D5EzK014-DOe01V3H.js";
6
+ //#region node_modules/vidstack/prod/providers/vidstack-html.js
7
+ var v = null, y = [], b = [];
8
+ function x() {
9
+ return v ??= new AudioContext();
10
+ }
11
+ function S() {
12
+ let e = x(), t = e.createGain();
13
+ return t.connect(e.destination), y.push(t), t;
14
+ }
15
+ function C(e, t) {
16
+ let n = x().createMediaElementSource(e);
17
+ return t && n.connect(t), b.push(n), n;
18
+ }
19
+ function w(e) {
20
+ let t = y.indexOf(e);
21
+ t !== -1 && (y.splice(t, 1), e.disconnect(), E());
22
+ }
23
+ function T(e) {
24
+ let t = b.indexOf(e);
25
+ t !== -1 && (b.splice(t, 1), e.disconnect(), E());
26
+ }
27
+ function E() {
28
+ v && y.length === 0 && b.length === 0 && v.close().then(() => {
29
+ v = null;
30
+ });
31
+ }
32
+ var D = class {
33
+ #e;
34
+ #t;
35
+ #n = null;
36
+ #r = null;
37
+ get currentGain() {
38
+ return this.#n?.gain?.value ?? null;
39
+ }
40
+ get supported() {
41
+ return !0;
42
+ }
43
+ constructor(e, t) {
44
+ this.#e = e, this.#t = t;
45
+ }
46
+ setGain(e) {
47
+ let t = this.currentGain;
48
+ if (e !== this.currentGain) {
49
+ if (e === 1 && t !== 1) {
50
+ this.removeGain();
51
+ return;
52
+ }
53
+ this.#n || (this.#n = S(), this.#r && this.#r.connect(this.#n)), this.#r ||= C(this.#e, this.#n), this.#n.gain.value = e, this.#t(e);
54
+ }
55
+ }
56
+ removeGain() {
57
+ this.#n && (this.#r && this.#r.connect(x().destination), this.#a(), this.#t(null));
58
+ }
59
+ destroy() {
60
+ this.#i(), this.#a();
61
+ }
62
+ #i() {
63
+ if (this.#r) try {
64
+ T(this.#r);
65
+ } catch {} finally {
66
+ this.#r = null;
67
+ }
68
+ }
69
+ #a() {
70
+ if (this.#n) try {
71
+ w(this.#n);
72
+ } catch {} finally {
73
+ this.#n = null;
74
+ }
75
+ }
76
+ }, O = [
77
+ "focus",
78
+ "blur",
79
+ "visibilitychange",
80
+ "pageshow",
81
+ "pagehide"
82
+ ], k = class {
83
+ #e = e(A());
84
+ #t = e(document.visibilityState);
85
+ #n;
86
+ connect() {
87
+ let e = new s(window), t = this.#r.bind(this);
88
+ for (let n of O) e.add(n, t);
89
+ p && e.add("beforeunload", (e) => {
90
+ this.#n = setTimeout(() => {
91
+ e.defaultPrevented || e.returnValue.length > 0 || (this.#e.set("hidden"), this.#t.set("hidden"));
92
+ }, 0);
93
+ });
94
+ }
95
+ get pageState() {
96
+ return this.#e();
97
+ }
98
+ get visibility() {
99
+ return this.#t();
100
+ }
101
+ #r(e) {
102
+ p && window.clearTimeout(this.#n), (e.type !== "blur" || this.#e() === "active") && (this.#e.set(A(e)), this.#t.set(document.visibilityState == "hidden" ? "hidden" : "visible"));
103
+ }
104
+ };
105
+ function A(e) {
106
+ return e?.type === "blur" || document.visibilityState === "hidden" ? "hidden" : document.hasFocus() ? "active" : "passive";
107
+ }
108
+ var j = class {
109
+ #e;
110
+ #t;
111
+ #n = !1;
112
+ #r = !1;
113
+ #i = !1;
114
+ #a = new h(this.#f.bind(this));
115
+ #o = new k();
116
+ #s;
117
+ get #c() {
118
+ return this.#e.media;
119
+ }
120
+ constructor(e, n) {
121
+ this.#e = e, this.#t = n, this.#s = new s(e.media), this.#p(), this.#o.connect(), u(this.#N.bind(this)), t(this.#l.bind(this));
122
+ }
123
+ #l() {
124
+ this.#r = !1, this.#i = !1, this.#a.stop(), this.#s.abort(), this.#g?.clear();
125
+ }
126
+ #u = 0;
127
+ #d = -1;
128
+ #f() {
129
+ let e = this.#c.currentTime;
130
+ !(p && e - this.#d < .35) && this.#u !== e && (this.#v(e), this.#u = e);
131
+ }
132
+ #p() {
133
+ this.#_("loadstart", this.#y), this.#_("abort", this.#b), this.#_("emptied", this.#x), this.#_("error", this.#H), this.#_("volumechange", this.#I);
134
+ }
135
+ #m() {
136
+ this.#r ||= (this.#_("loadeddata", this.#S), this.#_("loadedmetadata", this.#C), this.#_("canplay", this.#D), this.#_("canplaythrough", this.#O), this.#_("durationchange", this.#F), this.#_("play", this.#T), this.#_("progress", this.#z), this.#_("stalled", this.#A), this.#_("suspend", this.#B), this.#_("ratechange", this.#V), !0);
137
+ }
138
+ #h() {
139
+ this.#i ||= (this.#_("pause", this.#E), this.#_("playing", this.#k), this.#_("seeked", this.#L), this.#_("seeking", this.#R), this.#_("ended", this.#M), this.#_("waiting", this.#j), !0);
140
+ }
141
+ #g = void 0;
142
+ #_(e, t) {
143
+ this.#s.add(e, t.bind(this));
144
+ }
145
+ #v(e, t) {
146
+ let n = Math.min(e, this.#t.$state.seekableEnd());
147
+ this.#t.notify("time-change", n, t);
148
+ }
149
+ #y(e) {
150
+ if (this.#c.networkState === 3) {
151
+ this.#b(e);
152
+ return;
153
+ }
154
+ this.#m(), this.#t.notify("load-start", void 0, e);
155
+ }
156
+ #b(e) {
157
+ this.#t.notify("abort", void 0, e);
158
+ }
159
+ #x() {
160
+ this.#t.notify("emptied", void 0, event);
161
+ }
162
+ #S(e) {
163
+ this.#t.notify("loaded-data", void 0, e);
164
+ }
165
+ #C(e) {
166
+ this.#u = 0, this.#d = -1, this.#h(), this.#t.notify("loaded-metadata", void 0, e), (f || p && m(this.#t.$state.source())) && this.#t.delegate.ready(this.#w(), e);
167
+ }
168
+ #w() {
169
+ return {
170
+ provider: i(this.#t.$provider),
171
+ duration: this.#c.duration,
172
+ buffered: this.#c.buffered,
173
+ seekable: this.#c.seekable
174
+ };
175
+ }
176
+ #T(e) {
177
+ this.#t.$state.canPlay && this.#t.notify("play", void 0, e);
178
+ }
179
+ #E(e) {
180
+ this.#c.readyState === 1 && !this.#n || (this.#n = !1, this.#a.stop(), this.#t.notify("pause", void 0, e));
181
+ }
182
+ #D(e) {
183
+ this.#t.delegate.ready(this.#w(), e);
184
+ }
185
+ #O(e) {
186
+ this.#t.$state.started() || this.#t.notify("can-play-through", this.#w(), e);
187
+ }
188
+ #k(e) {
189
+ this.#c.paused || (this.#n = !1, this.#t.notify("playing", void 0, e), this.#a.start());
190
+ }
191
+ #A(e) {
192
+ this.#t.notify("stalled", void 0, e), this.#c.readyState < 3 && (this.#n = !0, this.#t.notify("waiting", void 0, e));
193
+ }
194
+ #j(e) {
195
+ this.#c.readyState < 3 && (this.#n = !0, this.#t.notify("waiting", void 0, e));
196
+ }
197
+ #M(e) {
198
+ this.#a.stop(), this.#v(this.#c.duration, e), this.#t.notify("end", void 0, e), this.#t.$state.loop() && c(this.#c.controls) && (this.#c.controls = !1);
199
+ }
200
+ #N() {
201
+ let e = this.#t.$state.paused(), t = this.#o.visibility === "hidden";
202
+ (e || t) && n(this.#c, "timeupdate", this.#P.bind(this));
203
+ }
204
+ #P(e) {
205
+ this.#v(this.#c.currentTime, e);
206
+ }
207
+ #F(e) {
208
+ this.#t.$state.ended() && this.#v(this.#c.duration, e), this.#t.notify("duration-change", this.#c.duration, e);
209
+ }
210
+ #I(e) {
211
+ let t = {
212
+ volume: this.#c.volume,
213
+ muted: this.#c.muted
214
+ };
215
+ this.#t.notify("volume-change", t, e);
216
+ }
217
+ #L(e) {
218
+ this.#d = this.#c.currentTime, this.#v(this.#c.currentTime, e), this.#t.notify("seeked", this.#c.currentTime, e), Math.trunc(this.#c.currentTime) === Math.trunc(this.#c.duration) && g(this.#c.duration) > g(this.#c.currentTime) && (this.#v(this.#c.duration, e), this.#c.ended || this.#t.player.dispatch(new l("media-play-request", { trigger: e })));
219
+ }
220
+ #R(e) {
221
+ this.#t.notify("seeking", this.#c.currentTime, e);
222
+ }
223
+ #z(e) {
224
+ let t = {
225
+ buffered: this.#c.buffered,
226
+ seekable: this.#c.seekable
227
+ };
228
+ this.#t.notify("progress", t, e);
229
+ }
230
+ #B(e) {
231
+ this.#t.notify("suspend", void 0, e);
232
+ }
233
+ #V(e) {
234
+ this.#t.notify("rate-change", this.#c.playbackRate, e);
235
+ }
236
+ #H(e) {
237
+ let t = this.#c.error;
238
+ if (!t) return;
239
+ let n = {
240
+ message: t.message,
241
+ code: t.code,
242
+ mediaError: t
243
+ };
244
+ this.#t.notify("error", n, e);
245
+ }
246
+ }, M = class {
247
+ #e;
248
+ #t;
249
+ get #n() {
250
+ return this.#e.media.audioTracks;
251
+ }
252
+ constructor(e, t) {
253
+ this.#e = e, this.#t = t, this.#n.onaddtrack = this.#r.bind(this), this.#n.onremovetrack = this.#i.bind(this), this.#n.onchange = this.#a.bind(this), n(this.#t.audioTracks, "change", this.#s.bind(this));
254
+ }
255
+ #r(e) {
256
+ let t = e.track;
257
+ if (t.label === "") return;
258
+ let n = {
259
+ id: t.id.toString() || `native-audio-${this.#t.audioTracks.length}`,
260
+ label: t.label,
261
+ language: t.language,
262
+ kind: t.kind,
263
+ selected: !1
264
+ };
265
+ this.#t.audioTracks[_.add](n, e), t.enabled && (n.selected = !0);
266
+ }
267
+ #i(e) {
268
+ let t = this.#t.audioTracks.getById(e.track.id);
269
+ t && this.#t.audioTracks[_.remove](t, e);
270
+ }
271
+ #a(e) {
272
+ let t = this.#o();
273
+ if (!t) return;
274
+ let n = this.#t.audioTracks.getById(t.id);
275
+ n && this.#t.audioTracks[_.select](n, !0, e);
276
+ }
277
+ #o() {
278
+ return Array.from(this.#n).find((e) => e.enabled);
279
+ }
280
+ #s(e) {
281
+ let { current: t } = e.detail;
282
+ if (!t) return;
283
+ let n = this.#n.getTrackById(t.id);
284
+ if (n) {
285
+ let e = this.#o();
286
+ e && (e.enabled = !1), n.enabled = !0;
287
+ }
288
+ }
289
+ }, N = class {
290
+ constructor(e, t) {
291
+ this.media = e, this.ctx = t, this.audioGain = new D(e, (e) => {
292
+ this.ctx.notify("audio-gain-change", e);
293
+ });
294
+ }
295
+ scope = o();
296
+ currentSrc = null;
297
+ audioGain;
298
+ setup() {
299
+ new j(this, this.ctx), "audioTracks" in this.media && new M(this, this.ctx), t(() => {
300
+ this.audioGain.destroy(), this.media.srcObject = null, this.media.removeAttribute("src");
301
+ for (let e of this.media.querySelectorAll("source")) e.remove();
302
+ this.media.load();
303
+ });
304
+ }
305
+ get type() {
306
+ return "";
307
+ }
308
+ setPlaybackRate(e) {
309
+ this.media.playbackRate = e;
310
+ }
311
+ async play() {
312
+ return this.media.play();
313
+ }
314
+ async pause() {
315
+ return this.media.pause();
316
+ }
317
+ setMuted(e) {
318
+ this.media.muted = e;
319
+ }
320
+ setVolume(e) {
321
+ this.media.volume = e;
322
+ }
323
+ setCurrentTime(e) {
324
+ this.media.currentTime = e;
325
+ }
326
+ setPlaysInline(e) {
327
+ a(this.media, "playsinline", e);
328
+ }
329
+ async loadSource({ src: e, type: t }, n) {
330
+ this.media.preload = n || "", d(e) ? (this.removeSource(), this.media.srcObject = e) : (this.media.srcObject = null, r(e) ? t === "?" ? (this.removeSource(), this.media.src = this.#e(e)) : this.appendSource({
331
+ src: e,
332
+ type: t
333
+ }) : (this.removeSource(), this.media.src = window.URL.createObjectURL(e))), this.media.load(), this.currentSrc = {
334
+ src: e,
335
+ type: t
336
+ };
337
+ }
338
+ appendSource(e, t) {
339
+ let n = this.media.querySelector("source[data-vds]"), r = n ?? document.createElement("source");
340
+ a(r, "src", this.#e(e.src)), a(r, "type", e.type === "?" ? t : e.type), a(r, "data-vds", ""), n || this.media.append(r);
341
+ }
342
+ removeSource() {
343
+ this.media.querySelector("source[data-vds]")?.remove();
344
+ }
345
+ #e(e) {
346
+ let { clipStartTime: t, clipEndTime: n } = this.ctx.$state, r = t(), i = n();
347
+ return r > 0 && i > 0 ? `${e}#t=${r},${i}` : r > 0 ? `${e}#t=${r}` : i > 0 ? `${e}#t=0,${i}` : e;
348
+ }
349
+ }, P = class {
350
+ #e;
351
+ #t;
352
+ #n;
353
+ #r = e(!1);
354
+ get supported() {
355
+ return this.#r();
356
+ }
357
+ constructor(e, t) {
358
+ this.#e = e, this.#t = t, this.#i();
359
+ }
360
+ #i() {
361
+ !this.#e?.remote || !this.canPrompt || (this.#e.remote.watchAvailability((e) => {
362
+ this.#r.set(e);
363
+ }).catch(() => {
364
+ this.#r.set(!1);
365
+ }), u(this.#a.bind(this)));
366
+ }
367
+ #a() {
368
+ if (!this.#r()) return;
369
+ let e = [
370
+ "connecting",
371
+ "connect",
372
+ "disconnect"
373
+ ], t = this.#o.bind(this);
374
+ t(), n(this.#e, "playing", t);
375
+ let r = new s(this.#e.remote);
376
+ for (let n of e) r.add(n, t);
377
+ }
378
+ async prompt() {
379
+ if (!this.supported) throw Error("Not supported on this platform.");
380
+ return this.type === "airplay" && this.#e.webkitShowPlaybackTargetPicker ? this.#e.webkitShowPlaybackTargetPicker() : this.#e.remote.prompt();
381
+ }
382
+ #o(e) {
383
+ let t = this.#e.remote.state;
384
+ if (t === this.#n) return;
385
+ let n = {
386
+ type: this.type,
387
+ state: t
388
+ };
389
+ this.#t.notify("remote-playback-change", n, e), this.#n = t;
390
+ }
391
+ }, F = class extends P {
392
+ type = "airplay";
393
+ get canPrompt() {
394
+ return "WebKitPlaybackTargetAvailabilityEvent" in window;
395
+ }
396
+ };
397
+ //#endregion
398
+ export { N as n, F as t };
@@ -0,0 +1,127 @@
1
+ import { i as e, n as t, o as n, r } from "./floating-ui.dom-n2j9PKCB.js";
2
+ import { D as i, E as a, G as o, L as s, O as c, Q as l, S as u, X as d, Z as f, i as p, v as m } from "./vidstack-BGSTndAW-CyKM_CM4.js";
3
+ //#region node_modules/vidstack/prod/chunks/vidstack-C2US-gSO.js
4
+ function h(e, t) {
5
+ let n = t.composedPath()[0];
6
+ return a(n) && e.contains(n);
7
+ }
8
+ var g = /* @__PURE__ */ new Set();
9
+ {
10
+ let e = function() {
11
+ for (let e of g) try {
12
+ e();
13
+ } catch {}
14
+ window.requestAnimationFrame(e);
15
+ };
16
+ e();
17
+ }
18
+ function _(e) {
19
+ return g.add(e), () => g.delete(e);
20
+ }
21
+ function v(e, t, n) {
22
+ e.hasAttribute(t) || e.setAttribute(t, n);
23
+ }
24
+ function y(e, t) {
25
+ if (e.hasAttribute("aria-label") || e.hasAttribute("data-no-label")) return;
26
+ if (!i(t)) {
27
+ f(e, "aria-label", t);
28
+ return;
29
+ }
30
+ function n() {
31
+ f(e, "aria-label", t());
32
+ }
33
+ m(n);
34
+ }
35
+ function b(e) {
36
+ let t = getComputedStyle(e);
37
+ return t.display !== "none" && parseInt(t.opacity) > 0;
38
+ }
39
+ function x(e) {
40
+ return !!e && ("checkVisibility" in e ? e.checkVisibility({
41
+ checkOpacity: !0,
42
+ checkVisibilityCSS: !0
43
+ }) : b(e));
44
+ }
45
+ function S(e, t) {
46
+ return _(() => t(x(e)));
47
+ }
48
+ function C(e, t, n) {
49
+ for (; t;) if (t === e) return !0;
50
+ else if (n?.(t)) break;
51
+ else t = t.parentElement;
52
+ return !1;
53
+ }
54
+ function w(e, t) {
55
+ return new p(e).add("pointerup", (e) => {
56
+ e.button === 0 && !e.defaultPrevented && t(e);
57
+ }).add("keydown", (e) => {
58
+ c(e) && t(e);
59
+ });
60
+ }
61
+ function T(e) {
62
+ return s(e) && (e.touches.length > 1 || e.changedTouches.length > 1);
63
+ }
64
+ function E(e) {
65
+ let t = u(), n = window.requestAnimationFrame(() => {
66
+ d(e, t), n = -1;
67
+ });
68
+ return () => void window.cancelAnimationFrame(n);
69
+ }
70
+ function D(e, t, n) {
71
+ let r, i = e, a = e.parentElement, s = e.content.firstElementChild, c = [];
72
+ !s && e.firstElementChild && (e.innerHTML = e.firstElementChild.outerHTML, e.firstElementChild.remove(), s = e.content.firstElementChild);
73
+ for (let e = 0; e < t; e++) r = document.importNode(s, !0), n?.(r, e), a.insertBefore(r, i.nextSibling), c.push(r), i = r;
74
+ return o(() => {
75
+ for (let e = 0; e < c.length; e++) c[e].remove();
76
+ }), c;
77
+ }
78
+ function O(e) {
79
+ let t = document.createElement("template");
80
+ return t.innerHTML = e, t.content;
81
+ }
82
+ function k(e) {
83
+ return e.cloneNode(!0).firstElementChild;
84
+ }
85
+ function A(i, a, o, { offsetVarName: s, xOffset: c, yOffset: u, ...d }) {
86
+ if (!i) return;
87
+ let f = o.replace(" ", "-").replace("-center", "");
88
+ if (l(i, "visibility", a ? null : "hidden"), !a) return;
89
+ let p = o.includes("top"), m = (e) => o.includes("left") ? `calc(-1 * ${e})` : e, h = (e) => p ? `calc(-1 * ${e})` : e;
90
+ return t(a, i, () => {
91
+ r(a, i, {
92
+ placement: f,
93
+ middleware: [
94
+ ...d.middleware ?? [],
95
+ e({
96
+ fallbackAxisSideDirection: "start",
97
+ crossAxis: !1
98
+ }),
99
+ n()
100
+ ],
101
+ ...d
102
+ }).then(({ x: e, y: t, middlewareData: n }) => {
103
+ let r = !!n.flip?.index;
104
+ p = o.includes(r ? "bottom" : "top"), i.setAttribute("data-placement", r ? o.startsWith("top") ? o.replace("top", "bottom") : o.replace("bottom", "top") : o), Object.assign(i.style, {
105
+ top: `calc(${t + "px"} + ${h(u ? u + "px" : `var(--${s}-y-offset, 0px)`)})`,
106
+ left: `calc(${e + "px"} + ${m(c ? c + "px" : `var(--${s}-x-offset, 0px)`)})`
107
+ });
108
+ });
109
+ });
110
+ }
111
+ function j(e) {
112
+ return getComputedStyle(e).animationName !== "none";
113
+ }
114
+ function M(e) {
115
+ return e instanceof HTMLElement;
116
+ }
117
+ function N(e) {
118
+ return e ? "true" : "false";
119
+ }
120
+ function P(e) {
121
+ return () => N(e());
122
+ }
123
+ function F() {
124
+ return typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
125
+ }
126
+ //#endregion
127
+ export { v as _, O as a, b as c, T as d, S as f, y as g, E as h, k as i, h as l, F as m, A as n, j as o, w as p, D as r, C as s, P as t, M as u };
@@ -0,0 +1,9 @@
1
+ //#region node_modules/vidstack/prod/chunks/vidstack-C9vIqaYT.js
2
+ function e(e) {
3
+ return e instanceof Error ? e : Error(typeof e == "string" ? e : JSON.stringify(e));
4
+ }
5
+ function t(e, t) {
6
+ if (!e) throw Error("Assertion failed.");
7
+ }
8
+ //#endregion
9
+ export { e as n, t };
@@ -0,0 +1,30 @@
1
+ import { I as e, M as t, g as n } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-CTojmhKq.js
3
+ function r(e, t) {
4
+ let n = new URL(e);
5
+ for (let e of Object.keys(t)) n.searchParams.set(e, t[e] + "");
6
+ return n.toString();
7
+ }
8
+ function i(e, n = "preconnect") {
9
+ if (!t(document.querySelector(`link[href="${e}"]`))) return !0;
10
+ let r = document.createElement("link");
11
+ return r.rel = n, r.href = e, r.crossOrigin = "true", document.head.append(r), !0;
12
+ }
13
+ var a = {};
14
+ function o(e) {
15
+ if (a[e]) return a[e].promise;
16
+ let r = n();
17
+ if (!t(document.querySelector(`script[src="${e}"]`))) return r.resolve(), r.promise;
18
+ a[e] = r;
19
+ let i = document.createElement("script");
20
+ return i.src = e, i.onload = () => {
21
+ r.resolve(), delete a[e];
22
+ }, i.onerror = () => {
23
+ r.reject(), delete a[e];
24
+ }, setTimeout(() => document.head.append(i), 0), r.promise;
25
+ }
26
+ function s(t) {
27
+ return t === "use-credentials" ? "include" : e(t) ? "same-origin" : void 0;
28
+ }
29
+ //#endregion
30
+ export { i, s as n, o as r, r as t };
@@ -0,0 +1,51 @@
1
+ import { R as e, w as t } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-ChQTHmIQ.js
3
+ var n = class {
4
+ #e;
5
+ get length() {
6
+ return this.#e.length;
7
+ }
8
+ constructor(n, r) {
9
+ t(n) ? this.#e = n : !e(n) && !e(r) ? this.#e = [[n, r]] : this.#e = [];
10
+ }
11
+ start(e) {
12
+ return this.#e[e][0] ?? Infinity;
13
+ }
14
+ end(e) {
15
+ return this.#e[e][1] ?? Infinity;
16
+ }
17
+ };
18
+ function r(e) {
19
+ if (!e.length) return null;
20
+ let t = e.start(0);
21
+ for (let n = 1; n < e.length; n++) {
22
+ let r = e.start(n);
23
+ r < t && (t = r);
24
+ }
25
+ return t;
26
+ }
27
+ function i(e) {
28
+ if (!e.length) return null;
29
+ let t = e.end(0);
30
+ for (let n = 1; n < e.length; n++) {
31
+ let r = e.end(n);
32
+ r > t && (t = r);
33
+ }
34
+ return t;
35
+ }
36
+ function a(e) {
37
+ if (e.length <= 1) return e;
38
+ e.sort((e, t) => e[0] - t[0]);
39
+ let t = [], n = e[0];
40
+ for (let r = 1; r < e.length; r++) {
41
+ let i = e[r];
42
+ n[1] >= i[0] - 1 ? n = [n[0], Math.max(n[1], i[1])] : (t.push(n), n = i);
43
+ }
44
+ return t.push(n), t;
45
+ }
46
+ function o(e, t, n) {
47
+ let r = t[0], i = t[1];
48
+ return n < r ? [n, -1] : n === r ? t : r === -1 ? (t[0] = n, t) : (n > r && (t[1] = n, i === -1 && e.push(t)), a(e), t);
49
+ }
50
+ //#endregion
51
+ export { o as i, i as n, r, n as t };