@webitel/ui-sdk 26.6.57 → 26.6.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{clients-Wwy51tyT.js → clients-CX7SniM1.js} +5 -5
- package/dist/{components-DfHInAL6.js → components-reoSYpZx.js} +725 -719
- package/dist/{composables-C2o78NEs.js → composables-Ckg9IFyC.js} +3 -3
- package/dist/{debounce-DPzXwiOS.js → debounce-Bp3jy7S5.js} +2 -2
- package/dist/{deep-copy-CQw5yeEH.js → deep-copy-CTgLtgMO.js} +1 -1
- package/dist/{dist-BYiYpK00.js → dist-CAOIU8xq.js} +1 -1
- package/dist/{dist-05Bf47Wg.js → dist-Crpfx4FA.js} +1 -1
- package/dist/dist-uCh8HaP3.js +1910 -0
- package/dist/{floating-ui.dom-n2j9PKCB.js → floating-ui.dom-Ch9ml4Rx.js} +322 -352
- package/dist/{generateInstance-BD4pC4PS.js → generateInstance-DpLUt03M.js} +3 -3
- package/dist/{chunk-CY3AvKd6.js → rolldown-runtime-BEcgMyyN.js} +8 -1
- package/dist/{side-channel-Cyte-MzW.js → side-channel-8SnAuRMA.js} +18 -18
- package/dist/ui-sdk.js +819 -25965
- package/dist/ui-sdk.umd.cjs +1815 -7447
- package/dist/{useValidation-C43ysfVZ.js → useValidation-B0voza7s.js} +1 -1
- package/dist/{useVidstackSrc-jCDCYTce.js → useVidstackSrc-epUQZhkL.js} +6 -4
- package/dist/{useWtTable-tqmVOvve.js → useWtTable-DrrvvB6k.js} +1 -1
- package/dist/vidstack-BLEs9rMG-Agxpv9v8.js +11 -0
- package/dist/{vidstack-video-IgjC6GLU.js → vidstack-C6nBVWwn-BlZqtkYB.js} +11 -11
- package/dist/{vidstack-C9vIqaYT-C1EgPq17.js → vidstack-CDOoBnJL-BCwLE1fB.js} +2 -2
- package/dist/{vidstack-Bq6c3Bam-hoRopLll.js → vidstack-CI5oafcm-DAV7Lilr.js} +38 -37
- package/dist/{vidstack-D_-9AA6_-Dq3APB0-.js → vidstack-CXo4cwSP2-6kDG00FC.js} +3 -3
- package/dist/{vidstack-Dihypf8P-ibWMCHK-.js → vidstack-CZQo98ic-D3uTuzB9.js} +1 -1
- package/dist/{vidstack-DDXt6fpN-Don_e6LS.js → vidstack-CceZzgm4-C37rtwSQ.js} +13 -13
- package/dist/{vidstack-ChQTHmIQ-nTO94M6P.js → vidstack-CdfyZegh-Bn47J4h6.js} +3 -3
- package/dist/{vidstack-C2US-gSO-DeIgENrW.js → vidstack-CgfrU1hS-CNTJkyzm.js} +26 -26
- package/dist/{vidstack-BGSTndAW-CyKM_CM4.js → vidstack-D9mvYVIz-DesuYgKV.js} +179 -278
- package/dist/{vidstack-BQlOPwOu-ChhdffAJ.js → vidstack-DATGlkSz2-BnlUxvSa.js} +2 -2
- package/dist/{vidstack-D2pY00kU-dXPuSPZl.js → vidstack-DUnfBERX2-Cl6yTfB3.js} +6 -6
- package/dist/{vidstack-Ci54COQW-CAAXpwzv.js → vidstack-DYPyTdYw-BzqKxwCK.js} +49 -44
- package/dist/vidstack-IMa-zkAV-DevzBPj3.js +35 -0
- package/dist/{vidstack-B01xzxC4-DeYSgDZy.js → vidstack-_E7LrUjK-DaCLs8ge.js} +1 -1
- package/dist/{vidstack-audio-CCSR8cXr.js → vidstack-audio-CH4wIf0F.js} +2 -2
- package/dist/{vidstack-dash-CNcNULYU.js → vidstack-dash-CmlmZIFT.js} +31 -32
- package/dist/{vidstack-google-cast-Co5Q_rfL.js → vidstack-google-cast-COyApZ_Z.js} +17 -18
- package/dist/{vidstack-hls-BP6P23Cc.js → vidstack-hls-D1sxUvBd.js} +70 -71
- package/dist/vidstack-ijoHbXQB-DBClSWHE.js +32 -0
- package/dist/{vidstack-CTojmhKq-D7sZJxgm.js → vidstack-mvRkf9tF-CoFf7dS9.js} +7 -7
- package/dist/vidstack-q-9soyHT-CiZ4hFSF.js +50 -0
- package/dist/vidstack-video-iy3-Vo1A.js +2 -0
- package/dist/{vidstack-vimeo-EzzPpggD.js → vidstack-vimeo-BhNQpz6m.js} +58 -58
- package/dist/{vidstack-youtube-C1_NAfWa.js → vidstack-youtube-BIhUrYs-.js} +33 -30
- package/dist/{vue-i18n-B8Px6VcD.js → vue-i18n-lTFLGg_9.js} +796 -728
- package/dist/{wt-action-bar-B6AJf7QX.js → wt-action-bar-B17FBHD7.js} +1 -1
- package/dist/{wt-button-BieXVsvP.js → wt-button-0kP5bPMs.js} +1 -1
- package/dist/{wt-chat-emoji-CLfk3JVt.js → wt-chat-emoji-C_fb9LZF.js} +180 -155
- package/dist/{wt-datepicker-BhOalZat.js → wt-datepicker-baNcFWZ1.js} +764 -764
- package/dist/{wt-display-chip-items-BUWlvHn2.js → wt-display-chip-items-CgrbKQ5R.js} +1 -1
- package/dist/{wt-expansion-card-CJr62Q0Q.js → wt-expansion-card-C2qETdn0.js} +1 -1
- package/dist/{wt-galleria-B34y1Swo.js → wt-galleria-DL3svAQs.js} +2 -2
- package/dist/{wt-icon-0grToL89.js → wt-icon-DIdpwmpC.js} +220 -218
- package/dist/{wt-icon-action-D1Vq_ixS.js → wt-icon-action-C8WN2oVD.js} +1 -1
- package/dist/{wt-icon-btn-Czg40DXn.js → wt-icon-btn-BLnhJADA.js} +1 -1
- package/dist/{wt-notifications-bar-OGD1cukw.js → wt-notifications-bar-Dx1YPqFu.js} +6 -6
- package/dist/{wt-pagination-CZuQFM3-.js → wt-pagination-G2ZGU4Pi.js} +1 -1
- package/dist/{wt-player-YrvPar8x.js → wt-player-CCwEyUzv.js} +5 -5
- package/dist/{wt-popover-CJin-2BO.js → wt-popover-BdwrokVy.js} +1 -1
- package/dist/{wt-search-bar-gN_xHkW3.js → wt-search-bar-CiQJ9ViN.js} +2 -2
- package/dist/{wt-selection-popup-B77UY7Yu.js → wt-selection-popup-Bh9D7VtA.js} +1 -1
- package/dist/{wt-send-message-popup-pvipgSrX.js → wt-send-message-popup-CIH2cusg.js} +3 -3
- package/dist/{wt-slider-BS3SoGht.js → wt-slider-BPzRTeYU.js} +1 -1
- package/dist/{wt-start-page-eN1PEokc.js → wt-start-page-DMXRhA9E.js} +1 -1
- package/dist/{wt-table-DK0LjVC0.js → wt-table-25p4E01H.js} +2 -2
- package/dist/{wt-table-column-select-DFF6z3a3.js → wt-table-column-select-C3ma6jxK.js} +3 -3
- package/dist/{wt-timepicker-FhXfhuFl.js → wt-timepicker-DyM1OQX4.js} +2 -2
- package/dist/{wt-toast-DrD3sFlE.js → wt-toast-KTAx-8zA.js} +2 -2
- package/dist/{wt-tree-ZyoPrNOl.js → wt-tree-DZ9ErOGj.js} +22 -12
- package/dist/{wt-tree-table-D1XoKDVw.js → wt-tree-table-BlZEw4tr.js} +2 -2
- package/dist/{wt-type-extension-value-input-B2fSsZQc.js → wt-type-extension-value-input-Dw24yOLg.js} +3 -3
- package/dist/{wt-vidstack-player-DwCYvtSh.js → wt-vidstack-player-CLtfGaGj.js} +1600 -1452
- package/package.json +1 -1
- package/src/components/wt-toast/wt-toast.vue +2 -2
- package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -6
- package/types/components/wt-input-number/wt-input-number.vue.d.ts +2 -2
- package/types/components/wt-input-text/wt-input-text.vue.d.ts +2 -2
- package/types/components/wt-switcher/wt-switcher.vue.d.ts +2 -2
- package/types/components/wt-table/wt-table.vue.d.ts +1 -1
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +1 -9
- package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -5
- package/types/modules/AuditForm/components/audit-form.vue.d.ts +4 -10
- package/dist/dist-Dz55hlwp.js +0 -1371
- package/dist/usetoast-BECIyaas.js +0 -10
- package/dist/vidstack-D5EzK014-DOe01V3H.js +0 -14
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +0 -31
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +0 -22
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "./enums-CBWwTuq7.js";
|
|
2
|
-
import { t } from "./vue-i18n-
|
|
2
|
+
import { t } from "./vue-i18n-lTFLGg_9.js";
|
|
3
3
|
import { computed as n, isReactive as r } from "vue";
|
|
4
4
|
//#region src/mixins/validationMixin/regle/useRegleValidation.ts
|
|
5
5
|
var i = ({ field: e }) => ({
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { E as t, F as n, L as r, at as i } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
3
3
|
import { Fragment as a, computed as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, openBlock as d, toRef as f } from "vue";
|
|
4
|
-
//#region node_modules/vidstack/prod/chunks/vidstack-
|
|
5
|
-
var p = navigator?.userAgent.toLowerCase() || "", m = /iphone|ipad|ipod|ios|crios|fxios/i.test(p), h = /(iphone|ipod)/gi.test(navigator?.platform || ""), g = !!window.chrome
|
|
4
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-Dtnbh_MF.js
|
|
5
|
+
var p = navigator?.userAgent.toLowerCase() || "", m = /iphone|ipad|ipod|ios|crios|fxios/i.test(p), h = /(iphone|ipod)/gi.test(navigator?.platform || ""), g = !!window.chrome;
|
|
6
|
+
/crios/i.test(p);
|
|
7
|
+
var _ = !!window.safari || m;
|
|
6
8
|
function v() {
|
|
7
9
|
return y() && t(screen.orientation.unlock);
|
|
8
10
|
}
|
|
@@ -83,7 +85,7 @@ function V({ src: e, type: t }) {
|
|
|
83
85
|
return n(e) && F.test(e) || L.has(t);
|
|
84
86
|
}
|
|
85
87
|
function H(e) {
|
|
86
|
-
return n(e.src) && (R(e) || z(e) || B(e));
|
|
88
|
+
return n(e.src) && (R(e) || z(e) || B(e) || V(e));
|
|
87
89
|
}
|
|
88
90
|
function U(e) {
|
|
89
91
|
return window.MediaStream !== void 0 && e instanceof window.MediaStream;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-BLEs9rMG.js
|
|
2
|
+
var e = Object.defineProperty, t = (t, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in t) e(r, i, {
|
|
5
|
+
get: t[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as a, m as o, p as s } from "./useVidstackSrc-
|
|
3
|
-
import { n as c, t as l } from "./vidstack-
|
|
4
|
-
import { n as u, t as d } from "./vidstack-
|
|
5
|
-
//#region node_modules/vidstack/prod/
|
|
1
|
+
import { V as e, W as t, Y as n, i as r, r as i } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
import { d as a, m as o, p as s } from "./useVidstackSrc-epUQZhkL.js";
|
|
3
|
+
import { n as c, t as l } from "./vidstack-CI5oafcm-DAV7Lilr.js";
|
|
4
|
+
import { n as u, t as d } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
|
|
5
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-C6nBVWwn.js
|
|
6
6
|
var f = class {
|
|
7
7
|
#e;
|
|
8
8
|
#t;
|
|
9
|
-
constructor(
|
|
10
|
-
this.#e =
|
|
9
|
+
constructor(e, n) {
|
|
10
|
+
this.#e = e, this.#t = n, e.textTracks.onaddtrack = this.#n.bind(this), t(this.#r.bind(this));
|
|
11
11
|
}
|
|
12
12
|
#n(e) {
|
|
13
13
|
let t = e.track;
|
|
@@ -70,8 +70,8 @@ var m = class {
|
|
|
70
70
|
get mode() {
|
|
71
71
|
return this.#n;
|
|
72
72
|
}
|
|
73
|
-
constructor(
|
|
74
|
-
this.#e =
|
|
73
|
+
constructor(t, n) {
|
|
74
|
+
this.#e = t, this.#t = n, e(t, "webkitpresentationmodechanged", this.#r.bind(this));
|
|
75
75
|
}
|
|
76
76
|
get supported() {
|
|
77
77
|
return o(this.#e);
|
|
@@ -139,7 +139,7 @@ var m = class {
|
|
|
139
139
|
}, this.scope);
|
|
140
140
|
}
|
|
141
141
|
setup() {
|
|
142
|
-
super.setup(), a(this.video) && new f(this.video, this.ctx), this.ctx.textRenderers.attachVideo(this.video),
|
|
142
|
+
super.setup(), a(this.video) && new f(this.video, this.ctx), this.ctx.textRenderers.attachVideo(this.video), t(() => {
|
|
143
143
|
this.ctx.textRenderers.attachVideo(null);
|
|
144
144
|
}), this.type === "video" && this.ctx.notify("provider-setup", this);
|
|
145
145
|
}
|
|
@@ -148,4 +148,4 @@ var m = class {
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
//#endregion
|
|
151
|
-
export { v as
|
|
151
|
+
export { v as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//#region node_modules/vidstack/prod/chunks/vidstack-
|
|
1
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-CDOoBnJL.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return e instanceof Error ? e : Error(typeof e == "string" ? e : JSON.stringify(e));
|
|
4
4
|
}
|
|
5
5
|
function t(e, t) {
|
|
6
|
-
if (!e) throw Error("Assertion failed.");
|
|
6
|
+
if (!e) throw Error(t || "Assertion failed.");
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { e as n, t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as d, i as f, o as p, v as m } from "./useVidstackSrc-
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
|
|
6
|
-
//#region node_modules/vidstack/prod/providers/vidstack-html.js
|
|
1
|
+
import { A as e, F as t, G as n, Q as r, V as i, W as a, X as o, h as s, i as c, r as l, v as u } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
import { b as d, i as f, o as p, v as m } from "./useVidstackSrc-epUQZhkL.js";
|
|
3
|
+
import { n as h, t as g } from "./vidstack-ijoHbXQB-DBClSWHE.js";
|
|
4
|
+
import { n as _ } from "./vidstack-CZQo98ic-D3uTuzB9.js";
|
|
5
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-BFrlqsuF.js
|
|
7
6
|
var v = null, y = [], b = [];
|
|
8
7
|
function x() {
|
|
9
8
|
return v ??= new AudioContext();
|
|
@@ -80,11 +79,11 @@ var D = class {
|
|
|
80
79
|
"pageshow",
|
|
81
80
|
"pagehide"
|
|
82
81
|
], k = class {
|
|
83
|
-
#e =
|
|
84
|
-
#t =
|
|
82
|
+
#e = r(A());
|
|
83
|
+
#t = r(document.visibilityState);
|
|
85
84
|
#n;
|
|
86
85
|
connect() {
|
|
87
|
-
let e = new
|
|
86
|
+
let e = new c(window), t = this.#r.bind(this);
|
|
88
87
|
for (let n of O) e.add(n, t);
|
|
89
88
|
p && e.add("beforeunload", (e) => {
|
|
90
89
|
this.#n = setTimeout(() => {
|
|
@@ -117,8 +116,8 @@ var j = class {
|
|
|
117
116
|
get #c() {
|
|
118
117
|
return this.#e.media;
|
|
119
118
|
}
|
|
120
|
-
constructor(e,
|
|
121
|
-
this.#e = e, this.#t =
|
|
119
|
+
constructor(e, t) {
|
|
120
|
+
this.#e = e, this.#t = t, this.#s = new c(e.media), this.#p(), this.#o.connect(), u(this.#N.bind(this)), a(this.#l.bind(this));
|
|
122
121
|
}
|
|
123
122
|
#l() {
|
|
124
123
|
this.#r = !1, this.#i = !1, this.#a.stop(), this.#s.abort(), this.#g?.clear();
|
|
@@ -156,8 +155,8 @@ var j = class {
|
|
|
156
155
|
#b(e) {
|
|
157
156
|
this.#t.notify("abort", void 0, e);
|
|
158
157
|
}
|
|
159
|
-
#x() {
|
|
160
|
-
this.#t.notify("emptied", void 0,
|
|
158
|
+
#x(e) {
|
|
159
|
+
this.#t.notify("emptied", void 0, e);
|
|
161
160
|
}
|
|
162
161
|
#S(e) {
|
|
163
162
|
this.#t.notify("loaded-data", void 0, e);
|
|
@@ -167,14 +166,14 @@ var j = class {
|
|
|
167
166
|
}
|
|
168
167
|
#w() {
|
|
169
168
|
return {
|
|
170
|
-
provider:
|
|
169
|
+
provider: n(this.#t.$provider),
|
|
171
170
|
duration: this.#c.duration,
|
|
172
171
|
buffered: this.#c.buffered,
|
|
173
172
|
seekable: this.#c.seekable
|
|
174
173
|
};
|
|
175
174
|
}
|
|
176
175
|
#T(e) {
|
|
177
|
-
this.#t.$state.canPlay && this.#t.notify("play", void 0, e);
|
|
176
|
+
this.#t.$state.canPlay() && this.#t.notify("play", void 0, e);
|
|
178
177
|
}
|
|
179
178
|
#E(e) {
|
|
180
179
|
this.#c.readyState === 1 && !this.#n || (this.#n = !1, this.#a.stop(), this.#t.notify("pause", void 0, e));
|
|
@@ -194,12 +193,12 @@ var j = class {
|
|
|
194
193
|
#j(e) {
|
|
195
194
|
this.#c.readyState < 3 && (this.#n = !0, this.#t.notify("waiting", void 0, e));
|
|
196
195
|
}
|
|
197
|
-
#M(
|
|
198
|
-
this.#a.stop(), this.#v(this.#c.duration,
|
|
196
|
+
#M(t) {
|
|
197
|
+
this.#a.stop(), this.#v(this.#c.duration, t), this.#t.notify("end", void 0, t), this.#t.$state.loop() && e(this.#c.controls) && (this.#c.controls = !1);
|
|
199
198
|
}
|
|
200
199
|
#N() {
|
|
201
200
|
let e = this.#t.$state.paused(), t = this.#o.visibility === "hidden";
|
|
202
|
-
(e || t) &&
|
|
201
|
+
(e || t) && i(this.#c, "timeupdate", this.#P.bind(this));
|
|
203
202
|
}
|
|
204
203
|
#P(e) {
|
|
205
204
|
this.#v(this.#c.currentTime, e);
|
|
@@ -215,7 +214,7 @@ var j = class {
|
|
|
215
214
|
this.#t.notify("volume-change", t, e);
|
|
216
215
|
}
|
|
217
216
|
#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) &&
|
|
217
|
+
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) && _(this.#c.duration) > _(this.#c.currentTime) && (this.#v(this.#c.duration, e), this.#c.ended || this.#t.player.dispatch(new l("media-play-request", { trigger: e })));
|
|
219
218
|
}
|
|
220
219
|
#R(e) {
|
|
221
220
|
this.#t.notify("seeking", this.#c.currentTime, e);
|
|
@@ -250,7 +249,7 @@ var j = class {
|
|
|
250
249
|
return this.#e.media.audioTracks;
|
|
251
250
|
}
|
|
252
251
|
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),
|
|
252
|
+
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), i(this.#t.audioTracks, "change", this.#s.bind(this));
|
|
254
253
|
}
|
|
255
254
|
#r(e) {
|
|
256
255
|
let t = e.track;
|
|
@@ -262,17 +261,17 @@ var j = class {
|
|
|
262
261
|
kind: t.kind,
|
|
263
262
|
selected: !1
|
|
264
263
|
};
|
|
265
|
-
this.#t.audioTracks[
|
|
264
|
+
this.#t.audioTracks[g.add](n, e), t.enabled && (n.selected = !0);
|
|
266
265
|
}
|
|
267
266
|
#i(e) {
|
|
268
267
|
let t = this.#t.audioTracks.getById(e.track.id);
|
|
269
|
-
t && this.#t.audioTracks[
|
|
268
|
+
t && this.#t.audioTracks[g.remove](t, e);
|
|
270
269
|
}
|
|
271
270
|
#a(e) {
|
|
272
271
|
let t = this.#o();
|
|
273
272
|
if (!t) return;
|
|
274
273
|
let n = this.#t.audioTracks.getById(t.id);
|
|
275
|
-
n && this.#t.audioTracks[
|
|
274
|
+
n && this.#t.audioTracks[g.select](n, !0, e);
|
|
276
275
|
}
|
|
277
276
|
#o() {
|
|
278
277
|
return Array.from(this.#n).find((e) => e.enabled);
|
|
@@ -287,16 +286,18 @@ var j = class {
|
|
|
287
286
|
}
|
|
288
287
|
}
|
|
289
288
|
}, N = class {
|
|
289
|
+
media;
|
|
290
|
+
ctx;
|
|
291
|
+
scope = s();
|
|
292
|
+
currentSrc = null;
|
|
293
|
+
audioGain;
|
|
290
294
|
constructor(e, t) {
|
|
291
295
|
this.media = e, this.ctx = t, this.audioGain = new D(e, (e) => {
|
|
292
296
|
this.ctx.notify("audio-gain-change", e);
|
|
293
297
|
});
|
|
294
298
|
}
|
|
295
|
-
scope = o();
|
|
296
|
-
currentSrc = null;
|
|
297
|
-
audioGain;
|
|
298
299
|
setup() {
|
|
299
|
-
new j(this, this.ctx), "audioTracks" in this.media && new M(this, this.ctx),
|
|
300
|
+
new j(this, this.ctx), "audioTracks" in this.media && new M(this, this.ctx), a(() => {
|
|
300
301
|
this.audioGain.destroy(), this.media.srcObject = null, this.media.removeAttribute("src");
|
|
301
302
|
for (let e of this.media.querySelectorAll("source")) e.remove();
|
|
302
303
|
this.media.load();
|
|
@@ -324,20 +325,20 @@ var j = class {
|
|
|
324
325
|
this.media.currentTime = e;
|
|
325
326
|
}
|
|
326
327
|
setPlaysInline(e) {
|
|
327
|
-
|
|
328
|
+
o(this.media, "playsinline", e);
|
|
328
329
|
}
|
|
329
|
-
async loadSource({ src: e, type:
|
|
330
|
-
this.media.preload =
|
|
330
|
+
async loadSource({ src: e, type: n }, r) {
|
|
331
|
+
this.media.preload = r || "", d(e) ? (this.removeSource(), this.media.srcObject = e) : (this.media.srcObject = null, t(e) ? n === "?" ? (this.removeSource(), this.media.src = this.#e(e)) : this.appendSource({
|
|
331
332
|
src: e,
|
|
332
|
-
type:
|
|
333
|
+
type: n
|
|
333
334
|
}) : (this.removeSource(), this.media.src = window.URL.createObjectURL(e))), this.media.load(), this.currentSrc = {
|
|
334
335
|
src: e,
|
|
335
|
-
type:
|
|
336
|
+
type: n
|
|
336
337
|
};
|
|
337
338
|
}
|
|
338
339
|
appendSource(e, t) {
|
|
339
340
|
let n = this.media.querySelector("source[data-vds]"), r = n ?? document.createElement("source");
|
|
340
|
-
|
|
341
|
+
o(r, "src", this.#e(e.src)), o(r, "type", e.type === "?" ? t : e.type), o(r, "data-vds", ""), n || this.media.append(r);
|
|
341
342
|
}
|
|
342
343
|
removeSource() {
|
|
343
344
|
this.media.querySelector("source[data-vds]")?.remove();
|
|
@@ -350,7 +351,7 @@ var j = class {
|
|
|
350
351
|
#e;
|
|
351
352
|
#t;
|
|
352
353
|
#n;
|
|
353
|
-
#r =
|
|
354
|
+
#r = r(!1);
|
|
354
355
|
get supported() {
|
|
355
356
|
return this.#r();
|
|
356
357
|
}
|
|
@@ -371,9 +372,9 @@ var j = class {
|
|
|
371
372
|
"connect",
|
|
372
373
|
"disconnect"
|
|
373
374
|
], t = this.#o.bind(this);
|
|
374
|
-
t(),
|
|
375
|
-
let
|
|
376
|
-
for (let
|
|
375
|
+
t(), i(this.#e, "playing", t);
|
|
376
|
+
let n = new c(this.#e.remote);
|
|
377
|
+
for (let r of e) n.add(r, t);
|
|
377
378
|
}
|
|
378
379
|
async prompt() {
|
|
379
380
|
if (!this.supported) throw Error("Not supported on this platform.");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as e, v as t } from "./vidstack-
|
|
2
|
-
import { a as n, i as r } from "./vidstack-
|
|
3
|
-
//#region node_modules/vidstack/prod/chunks/vidstack-
|
|
1
|
+
import { s as e, v as t } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
import { a as n, i as r } from "./vidstack-CgfrU1hS-CNTJkyzm.js";
|
|
3
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-CXo4cwSP2.js
|
|
4
4
|
var i = /* @__PURE__ */ n("<svg viewBox=\"0 0 32 32\" fill=\"none\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"></svg>");
|
|
5
5
|
function a(n, a) {
|
|
6
6
|
let o = r(i);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as a } from "./vidstack-
|
|
3
|
-
//#region node_modules/vidstack/prod/chunks/vidstack-
|
|
1
|
+
import { F as e, G as t, Q as n, V as r, v as i } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
import { t as a } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
|
|
3
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-CceZzgm4.js
|
|
4
4
|
var o = class {
|
|
5
5
|
#e;
|
|
6
|
-
src =
|
|
6
|
+
src = n("");
|
|
7
7
|
referrerPolicy = null;
|
|
8
8
|
get iframe() {
|
|
9
9
|
return this.#e;
|
|
@@ -12,7 +12,7 @@ var o = class {
|
|
|
12
12
|
this.#e = e, e.setAttribute("frameBorder", "0"), e.setAttribute("aria-hidden", "true"), e.setAttribute("allow", "autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope"), this.referrerPolicy !== null && e.setAttribute("referrerpolicy", this.referrerPolicy);
|
|
13
13
|
}
|
|
14
14
|
setup() {
|
|
15
|
-
|
|
15
|
+
r(window, "message", this.#n.bind(this)), r(this.#e, "load", this.onLoad.bind(this)), i(this.#t.bind(this));
|
|
16
16
|
}
|
|
17
17
|
#t() {
|
|
18
18
|
let e = this.src();
|
|
@@ -20,21 +20,21 @@ var o = class {
|
|
|
20
20
|
this.#e.setAttribute("src", "");
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
let
|
|
24
|
-
this.#e.setAttribute("src", a(e,
|
|
23
|
+
let n = t(() => this.buildParams());
|
|
24
|
+
this.#e.setAttribute("src", a(e, n));
|
|
25
25
|
}
|
|
26
26
|
postMessage(e, t) {
|
|
27
27
|
this.#e.contentWindow?.postMessage(JSON.stringify(e), t ?? "*");
|
|
28
28
|
}
|
|
29
|
-
#n(
|
|
30
|
-
let
|
|
31
|
-
if ((
|
|
29
|
+
#n(t) {
|
|
30
|
+
let n = this.getOrigin();
|
|
31
|
+
if ((t.source === null || t.source === this.#e?.contentWindow) && (!e(n) || n === t.origin)) {
|
|
32
32
|
try {
|
|
33
|
-
let
|
|
34
|
-
|
|
33
|
+
let e = JSON.parse(t.data);
|
|
34
|
+
e && this.onMessage(e, t);
|
|
35
35
|
return;
|
|
36
36
|
} catch {}
|
|
37
|
-
|
|
37
|
+
t.data && this.onMessage(t.data, t);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region node_modules/vidstack/prod/chunks/vidstack-
|
|
1
|
+
import { C as e, L as t } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
2
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-CdfyZegh.js
|
|
3
3
|
var n = class {
|
|
4
4
|
#e;
|
|
5
5
|
get length() {
|
|
6
6
|
return this.#e.length;
|
|
7
7
|
}
|
|
8
8
|
constructor(n, r) {
|
|
9
|
-
|
|
9
|
+
e(n) ? this.#e = n : !t(n) && !t(r) ? this.#e = [[n, r]] : this.#e = [];
|
|
10
10
|
}
|
|
11
11
|
start(e) {
|
|
12
12
|
return this.#e[e][0] ?? Infinity;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, r } from "./floating-ui.dom-
|
|
2
|
-
import { D as i, E as a,
|
|
3
|
-
//#region node_modules/vidstack/prod/chunks/vidstack-
|
|
1
|
+
import { i as e, n as t, o as n, r } from "./floating-ui.dom-Ch9ml4Rx.js";
|
|
2
|
+
import { D as i, E as a, I as o, T as s, W as c, X as l, Y as u, Z as d, i as f, v as p, x as m } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
3
|
+
//#region node_modules/vidstack/prod/chunks/vidstack-CgfrU1hS.js
|
|
4
4
|
function h(e, t) {
|
|
5
5
|
let n = t.composedPath()[0];
|
|
6
|
-
return
|
|
6
|
+
return s(n) && e.contains(n);
|
|
7
7
|
}
|
|
8
8
|
var g = /* @__PURE__ */ new Set();
|
|
9
9
|
{
|
|
10
|
-
|
|
10
|
+
function e() {
|
|
11
11
|
for (let e of g) try {
|
|
12
12
|
e();
|
|
13
13
|
} catch {}
|
|
14
14
|
window.requestAnimationFrame(e);
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
16
|
e();
|
|
17
17
|
}
|
|
18
18
|
function _(e) {
|
|
@@ -23,14 +23,14 @@ function v(e, t, n) {
|
|
|
23
23
|
}
|
|
24
24
|
function y(e, t) {
|
|
25
25
|
if (e.hasAttribute("aria-label") || e.hasAttribute("data-no-label")) return;
|
|
26
|
-
if (!
|
|
27
|
-
|
|
26
|
+
if (!a(t)) {
|
|
27
|
+
l(e, "aria-label", t);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
function n() {
|
|
31
|
-
|
|
31
|
+
l(e, "aria-label", t());
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
p(n);
|
|
34
34
|
}
|
|
35
35
|
function b(e) {
|
|
36
36
|
let t = getComputedStyle(e);
|
|
@@ -52,28 +52,28 @@ function C(e, t, n) {
|
|
|
52
52
|
return !1;
|
|
53
53
|
}
|
|
54
54
|
function w(e, t) {
|
|
55
|
-
return new
|
|
55
|
+
return new f(e).add("pointerup", (e) => {
|
|
56
56
|
e.button === 0 && !e.defaultPrevented && t(e);
|
|
57
57
|
}).add("keydown", (e) => {
|
|
58
|
-
|
|
58
|
+
i(e) && t(e);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
function T(e) {
|
|
62
|
-
return
|
|
62
|
+
return o(e) && (e.touches.length > 1 || e.changedTouches.length > 1);
|
|
63
63
|
}
|
|
64
64
|
function E(e) {
|
|
65
|
-
let t =
|
|
66
|
-
|
|
65
|
+
let t = m(), n = window.requestAnimationFrame(() => {
|
|
66
|
+
u(e, t), n = -1;
|
|
67
67
|
});
|
|
68
68
|
return () => void window.cancelAnimationFrame(n);
|
|
69
69
|
}
|
|
70
70
|
function D(e, t, n) {
|
|
71
|
-
let r, i = e, a = e.parentElement,
|
|
72
|
-
!
|
|
73
|
-
for (let e = 0; e < t; e++) r = document.importNode(
|
|
74
|
-
return
|
|
75
|
-
for (let e = 0; e <
|
|
76
|
-
}),
|
|
71
|
+
let r, i = e, a = e.parentElement, o = e.content.firstElementChild, s = [];
|
|
72
|
+
!o && e.firstElementChild && (e.innerHTML = e.firstElementChild.outerHTML, e.firstElementChild.remove(), o = e.content.firstElementChild);
|
|
73
|
+
for (let e = 0; e < t; e++) r = document.importNode(o, !0), n?.(r, e), a.insertBefore(r, i.nextSibling), s.push(r), i = r;
|
|
74
|
+
return c(() => {
|
|
75
|
+
for (let e = 0; e < s.length; e++) s[e].remove();
|
|
76
|
+
}), s;
|
|
77
77
|
}
|
|
78
78
|
function O(e) {
|
|
79
79
|
let t = document.createElement("template");
|
|
@@ -82,27 +82,27 @@ function O(e) {
|
|
|
82
82
|
function k(e) {
|
|
83
83
|
return e.cloneNode(!0).firstElementChild;
|
|
84
84
|
}
|
|
85
|
-
function A(i, a, o, { offsetVarName: s, xOffset: c, yOffset:
|
|
85
|
+
function A(i, a, o, { offsetVarName: s, xOffset: c, yOffset: l, ...u }) {
|
|
86
86
|
if (!i) return;
|
|
87
87
|
let f = o.replace(" ", "-").replace("-center", "");
|
|
88
|
-
if (
|
|
88
|
+
if (d(i, "visibility", a ? null : "hidden"), !a) return;
|
|
89
89
|
let p = o.includes("top"), m = (e) => o.includes("left") ? `calc(-1 * ${e})` : e, h = (e) => p ? `calc(-1 * ${e})` : e;
|
|
90
90
|
return t(a, i, () => {
|
|
91
91
|
r(a, i, {
|
|
92
92
|
placement: f,
|
|
93
93
|
middleware: [
|
|
94
|
-
...
|
|
94
|
+
...u.middleware ?? [],
|
|
95
95
|
e({
|
|
96
96
|
fallbackAxisSideDirection: "start",
|
|
97
97
|
crossAxis: !1
|
|
98
98
|
}),
|
|
99
99
|
n()
|
|
100
100
|
],
|
|
101
|
-
...
|
|
101
|
+
...u
|
|
102
102
|
}).then(({ x: e, y: t, middlewareData: n }) => {
|
|
103
103
|
let r = !!n.flip?.index;
|
|
104
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(
|
|
105
|
+
top: `calc(${t + "px"} + ${h(l ? l + "px" : `var(--${s}-y-offset, 0px)`)})`,
|
|
106
106
|
left: `calc(${e + "px"} + ${m(c ? c + "px" : `var(--${s}-x-offset, 0px)`)})`
|
|
107
107
|
});
|
|
108
108
|
});
|