@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.
- package/dist/AgentStatus.enum-C3IGHtvR.js +9 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/caseConverters-DXegZoCt.js +27 -0
- package/dist/chunk-CY3AvKd6.js +20 -0
- package/dist/clients-A6MHYfOX.js +36118 -0
- package/dist/components-DFOWyAAb.js +5395 -0
- package/dist/composables-DnDH-KUv.js +263 -0
- package/dist/convertDuration-1K7fuEpO.js +8 -0
- package/dist/debounce-DrmECuJ2.js +128 -0
- package/dist/deep-copy-CQw5yeEH.js +41 -0
- package/dist/displayText-CtaxzaBz.js +3 -0
- package/dist/dist-05Bf47Wg.js +87 -0
- package/dist/dist-BYiYpK00.js +7 -0
- package/dist/dist-Dz55hlwp.js +1371 -0
- package/dist/engineCallFileType-D7QVFOac.js +11 -0
- package/dist/enums-pbYAJNeb.js +158 -0
- package/dist/errors-SUXKojVW.js +69 -0
- package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
- package/dist/generateInstance-ppTIeLX4.js +2582 -0
- package/dist/isObject-Dgs_L5xI.js +11 -0
- package/dist/logger-hl3ueNok.js +47 -0
- package/dist/prod-Cp0BjuxI.js +775 -0
- package/dist/prod-DSuxcp5t.js +2 -0
- package/dist/side-channel-Cyte-MzW.js +833 -0
- package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
- package/dist/srt-parser-DdH5U08c.js +21 -0
- package/dist/ssa-parser-Bjs7yDD1.js +184 -0
- package/dist/ui-sdk.css +2 -1
- package/dist/ui-sdk.js +34567 -4
- package/dist/ui-sdk.umd.cjs +7748 -7606
- package/dist/useExpansion-DVdIpoOn.js +24 -0
- package/dist/useValidation-DG0tifBv.js +37 -0
- package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
- package/dist/useWtTable-tqmVOvve.js +12 -0
- package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
- package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
- package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
- package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
- package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
- package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
- package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
- package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
- package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
- package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
- package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
- package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
- package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
- package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
- package/dist/vidstack-audio-B58bvsna.js +23 -0
- package/dist/vidstack-dash-CX-LTHx3.js +332 -0
- package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
- package/dist/vidstack-hls-CLzdTFu6.js +269 -0
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
- package/dist/vidstack-video-XtP8iTBc.js +151 -0
- package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
- package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
- package/dist/vue-i18n-B8Px6VcD.js +2201 -0
- package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
- package/dist/wt-button-DENbrKdy.js +785 -0
- package/dist/wt-button-select-BnRHgJ4i.js +80 -0
- package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
- package/dist/wt-chat-emoji-D3SBme6f.js +2208 -0
- package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
- package/dist/wt-context-menu-yW52oF-2.js +89 -0
- package/dist/wt-copy-action-d9gVzAsB.js +38 -0
- package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
- package/dist/wt-display-chip-items-DagfTTIq.js +34 -0
- package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
- package/dist/wt-dummy-CLjhRWZ6.js +59 -0
- package/dist/wt-error-page-vhu4lIyF.js +62 -0
- package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
- package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
- package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
- package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
- package/dist/wt-galleria-CWXKuZTD.js +224 -0
- package/dist/wt-icon-action-CQlZHMDB.js +100 -0
- package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
- package/dist/wt-icon-pxO7IjwV.js +1026 -0
- package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
- package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
- package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
- package/dist/wt-page-header-CDbd4aOh.js +59 -0
- package/dist/wt-pagination-BA_PZPIE.js +94 -0
- package/dist/wt-player-uidPXSTe.js +287 -0
- package/dist/wt-popover-CJZH3wMl.js +98 -0
- package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
- package/dist/wt-search-bar-CWZdvAOf.js +123 -0
- package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
- package/dist/wt-send-message-popup-CltYZA9D.js +77 -0
- package/dist/wt-slider-BS3SoGht.js +68 -0
- package/dist/wt-start-page-eN1PEokc.js +86 -0
- package/dist/wt-status-select-A5t6Vjm4.js +101 -0
- package/dist/wt-stepper-B6zpd1Uh.js +41 -0
- package/dist/wt-table-D0FynxIE.js +364 -0
- package/dist/wt-table-actions-4-peSVkc.js +63 -0
- package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
- package/dist/wt-tabs-DuOgj-lZ.js +60 -0
- package/dist/wt-time-input-CO2cop3y.js +62 -0
- package/dist/wt-timepicker-BltFF1QD.js +145 -0
- package/dist/wt-tree-ZyoPrNOl.js +1206 -0
- package/dist/wt-tree-table-MLET4gIv.js +221 -0
- package/dist/wt-type-extension-value-input-028o8xRF.js +104 -0
- package/dist/wt-vidstack-player-B-WSB_Be.js +7440 -0
- package/package.json +5 -5
- package/src/components/wt-multi-select/wt-multi-select.vue +3 -0
- package/src/components/wt-single-select/wt-single-select.vue +5 -0
- package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
- package/src/plugins/primevue/theme/components/multi-select/multi-select.js +4 -0
- package/src/plugins/primevue/theme/components/single-select/single-select.js +4 -0
- package/types/plugins/primevue/theme/components/multi-select/multi-select.d.ts +2 -0
- package/types/plugins/primevue/theme/components/single-select/single-select.d.ts +2 -0
- package/dist/contacts-DzLKP4GQ.js +0 -49654
- package/dist/displayText-Cbh4IOfM.js +0 -5
- package/dist/engineCallFileType-yaadA7-2.js +0 -8
- package/dist/errors-CTL-RV3B.js +0 -70
- package/dist/index-BgLoxAyu.js +0 -50
- package/dist/install-Cm-8fwtB.js +0 -53489
- package/dist/isObject-BSIwu4UO.js +0 -28
- package/dist/prod-BoQuiIB3.js +0 -973
- package/dist/srt-parser-CsN7bp5E.js +0 -26
- package/dist/ssa-parser-BJOOPeQF.js +0 -200
- package/dist/useExpansion-BrQ40HiR.js +0 -24
- package/dist/useVidstackSrc-DKXY5f7v.js +0 -1341
- package/dist/vidstack-Bq6c3Bam-BHF-0bv4.js +0 -426
- package/dist/vidstack-D2pY00kU-B8Mhvp0m.js +0 -136
- package/dist/vidstack-DDXt6fpN-D0eou9h7.js +0 -51
- package/dist/vidstack-D_-9AA6_-DYAfclN7.js +0 -21
- package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
- package/dist/vidstack-DqAw8m9J-b5BHkhrw.js +0 -22
- package/dist/vidstack-audio-CPu_TbjK.js +0 -28
- package/dist/vidstack-dash-VYriMjws.js +0 -393
- package/dist/vidstack-google-cast-Byp1cemB.js +0 -383
- package/dist/vidstack-hls-DdUQcmEx.js +0 -310
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
- package/dist/vidstack-video-BpSKQ3wb.js +0 -164
- package/dist/vidstack-vimeo-CgVJJm06.js +0 -452
- package/dist/vidstack-youtube-DuES80MV.js +0 -233
- package/dist/wt-action-bar-TMuck-q1.js +0 -102
- package/dist/wt-button-select-D1NP5Xw9.js +0 -105
- package/dist/wt-call-media-action-BsepfSVy.js +0 -60
- package/dist/wt-chat-emoji-B00dUXbP.js +0 -2909
- package/dist/wt-confirm-dialog-1hO851Da.js +0 -92
- package/dist/wt-context-menu-BrzRmoDw.js +0 -104
- package/dist/wt-copy-action-CEMOiYzN.js +0 -60
- package/dist/wt-datepicker-DHqZIkg2.js +0 -5660
- package/dist/wt-display-chip-items-D7kEAcOo.js +0 -47
- package/dist/wt-dual-panel-DEWR3-k-.js +0 -66
- package/dist/wt-dummy-DfgxciHw.js +0 -104
- package/dist/wt-error-page-DUSVxkXq.js +0 -89
- package/dist/wt-expansion-card-B8JKBMLa.js +0 -56
- package/dist/wt-expansion-panel-DL3eoj_b.js +0 -54
- package/dist/wt-filters-panel-wrapper-CGXQiRvh.js +0 -75
- package/dist/wt-galleria-Bahv6Mgq.js +0 -323
- package/dist/wt-inline-add-panel-B4RjHVDI.js +0 -49
- package/dist/wt-navigation-menu-DqCXAV8E.js +0 -159
- package/dist/wt-notifications-bar-CRIKdVai.js +0 -79
- package/dist/wt-page-header-DdsnoLgd.js +0 -115
- package/dist/wt-pagination-C_b3WmH1.js +0 -144
- package/dist/wt-player-B4GWEqdu.js +0 -291
- package/dist/wt-popover-Di-7_rDL.js +0 -4
- package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
- package/dist/wt-screen-recordings-action-B4OpN5kl.js +0 -54
- package/dist/wt-search-bar-B_0_YwCn.js +0 -144
- package/dist/wt-selection-popup-Boyw9_V_.js +0 -109
- package/dist/wt-send-message-popup-0C23Zocu.js +0 -579
- package/dist/wt-slider-BEkw4KGp.js +0 -4
- package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
- package/dist/wt-start-page-HQMIG05a.js +0 -99
- package/dist/wt-status-select-H_me1xwA.js +0 -138
- package/dist/wt-stepper-hJxqyiyo.js +0 -65
- package/dist/wt-table-Du6mtkPw.js +0 -426
- package/dist/wt-table-actions-ah_H6LY9.js +0 -79
- package/dist/wt-table-column-select-C2Nbic5-.js +0 -128
- package/dist/wt-tabs-D4aGEd_t.js +0 -74
- package/dist/wt-time-input-DYiW0ijt.js +0 -42
- package/dist/wt-timepicker-BE8POMhF.js +0 -118
- package/dist/wt-tree-table-BJxaXqKl.js +0 -285
- package/dist/wt-tree-u0Zp8nb5.js +0 -2777
- package/dist/wt-type-extension-value-input-C1VlNa4K.js +0 -121
- package/dist/wt-vidstack-player-C1eyCEzP.js +0 -9094
|
@@ -1,233 +0,0 @@
|
|
|
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-DKXY5f7v.js";
|
|
2
|
-
import { p as k, e as u } from "./wt-vidstack-player-C1eyCEzP.js";
|
|
3
|
-
import { E as P } from "./vidstack-DDXt6fpN-D0eou9h7.js";
|
|
4
|
-
import { resolveYouTubeVideoId as w } from "./vidstack-Dm1xEU9Q-CXHNvShT.js";
|
|
5
|
-
const r = {
|
|
6
|
-
Ended: 0,
|
|
7
|
-
Playing: 1,
|
|
8
|
-
Paused: 2,
|
|
9
|
-
Buffering: 3,
|
|
10
|
-
Cued: 5
|
|
11
|
-
};
|
|
12
|
-
class R extends P {
|
|
13
|
-
$$PROVIDER_TYPE = "YOUTUBE";
|
|
14
|
-
scope = p();
|
|
15
|
-
#e;
|
|
16
|
-
#a = y("");
|
|
17
|
-
#o = -1;
|
|
18
|
-
#d = null;
|
|
19
|
-
#r = -1;
|
|
20
|
-
#i = !1;
|
|
21
|
-
#s = /* @__PURE__ */ new Map();
|
|
22
|
-
constructor(e, t) {
|
|
23
|
-
super(e), this.#e = t;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Sets the player's interface language. The parameter value is an ISO 639-1 two-letter
|
|
27
|
-
* language code or a fully specified locale. For example, fr and fr-ca are both valid values.
|
|
28
|
-
* Other language input codes, such as IETF language tags (BCP 47) might also be handled properly.
|
|
29
|
-
*
|
|
30
|
-
* The interface language is used for tooltips in the player and also affects the default caption
|
|
31
|
-
* track. Note that YouTube might select a different caption track language for a particular
|
|
32
|
-
* user based on the user's individual language preferences and the availability of caption tracks.
|
|
33
|
-
*
|
|
34
|
-
* @defaultValue 'en'
|
|
35
|
-
*/
|
|
36
|
-
language = "en";
|
|
37
|
-
color = "red";
|
|
38
|
-
/**
|
|
39
|
-
* Whether cookies should be enabled on the embed. This is turned off by default to be
|
|
40
|
-
* GDPR-compliant.
|
|
41
|
-
*
|
|
42
|
-
* @defaultValue `false`
|
|
43
|
-
*/
|
|
44
|
-
cookies = !1;
|
|
45
|
-
get currentSrc() {
|
|
46
|
-
return this.#d;
|
|
47
|
-
}
|
|
48
|
-
get type() {
|
|
49
|
-
return "youtube";
|
|
50
|
-
}
|
|
51
|
-
get videoId() {
|
|
52
|
-
return this.#a();
|
|
53
|
-
}
|
|
54
|
-
preconnect() {
|
|
55
|
-
k(this.getOrigin());
|
|
56
|
-
}
|
|
57
|
-
setup() {
|
|
58
|
-
super.setup(), m(this.#c.bind(this)), this.#e.notify("provider-setup", this);
|
|
59
|
-
}
|
|
60
|
-
destroy() {
|
|
61
|
-
this.#l();
|
|
62
|
-
const e = "provider destroyed";
|
|
63
|
-
for (const t of this.#s.values())
|
|
64
|
-
for (const { reject: s } of t) s(e);
|
|
65
|
-
this.#s.clear();
|
|
66
|
-
}
|
|
67
|
-
async play() {
|
|
68
|
-
return this.#t("playVideo");
|
|
69
|
-
}
|
|
70
|
-
#v(e) {
|
|
71
|
-
this.#n("playVideo")?.reject(e);
|
|
72
|
-
}
|
|
73
|
-
async pause() {
|
|
74
|
-
return this.#t("pauseVideo");
|
|
75
|
-
}
|
|
76
|
-
#k(e) {
|
|
77
|
-
this.#n("pauseVideo")?.reject(e);
|
|
78
|
-
}
|
|
79
|
-
setMuted(e) {
|
|
80
|
-
e ? this.#t("mute") : this.#t("unMute");
|
|
81
|
-
}
|
|
82
|
-
setCurrentTime(e) {
|
|
83
|
-
this.#t("seekTo", e), this.#e.notify("seeking", e);
|
|
84
|
-
}
|
|
85
|
-
setVolume(e) {
|
|
86
|
-
this.#t("setVolume", e * 100);
|
|
87
|
-
}
|
|
88
|
-
setPlaybackRate(e) {
|
|
89
|
-
this.#t("setPlaybackRate", e);
|
|
90
|
-
}
|
|
91
|
-
async loadSource(e) {
|
|
92
|
-
if (!f(e.src)) {
|
|
93
|
-
this.#d = null, this.#a.set("");
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
const t = w(e.src);
|
|
97
|
-
this.#a.set(t ?? ""), this.#d = e;
|
|
98
|
-
}
|
|
99
|
-
getOrigin() {
|
|
100
|
-
return this.cookies ? "https://www.youtube.com" : "https://www.youtube-nocookie.com";
|
|
101
|
-
}
|
|
102
|
-
#c() {
|
|
103
|
-
this.#l();
|
|
104
|
-
const e = this.#a();
|
|
105
|
-
if (!e) {
|
|
106
|
-
this.src.set("");
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
this.src.set(`${this.getOrigin()}/embed/${e}`), this.#e.notify("load-start");
|
|
110
|
-
}
|
|
111
|
-
buildParams() {
|
|
112
|
-
const { keyDisabled: e } = this.#e.$props, { muted: t, playsInline: s, nativeControls: a } = this.#e.$state, i = a();
|
|
113
|
-
return {
|
|
114
|
-
rel: 0,
|
|
115
|
-
autoplay: 0,
|
|
116
|
-
cc_lang_pref: this.language,
|
|
117
|
-
cc_load_policy: i ? 1 : void 0,
|
|
118
|
-
color: this.color,
|
|
119
|
-
controls: i ? 1 : 0,
|
|
120
|
-
disablekb: !i || e() ? 1 : 0,
|
|
121
|
-
enablejsapi: 1,
|
|
122
|
-
fs: 1,
|
|
123
|
-
hl: this.language,
|
|
124
|
-
iv_load_policy: i ? 1 : 3,
|
|
125
|
-
mute: t() ? 1 : 0,
|
|
126
|
-
playsinline: s() ? 1 : 0
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
#t(e, t) {
|
|
130
|
-
let s = g(), a = this.#s.get(e);
|
|
131
|
-
return a || this.#s.set(e, a = []), a.push(s), this.postMessage({
|
|
132
|
-
event: "command",
|
|
133
|
-
func: e,
|
|
134
|
-
args: t ? [t] : void 0
|
|
135
|
-
}), s.promise;
|
|
136
|
-
}
|
|
137
|
-
onLoad() {
|
|
138
|
-
window.setTimeout(() => this.postMessage({ event: "listening" }), 100);
|
|
139
|
-
}
|
|
140
|
-
#p(e) {
|
|
141
|
-
this.#e.notify("loaded-metadata"), this.#e.notify("loaded-data"), this.#e.delegate.ready(void 0, e);
|
|
142
|
-
}
|
|
143
|
-
#y(e) {
|
|
144
|
-
this.#n("pauseVideo")?.resolve(), this.#e.notify("pause", void 0, e);
|
|
145
|
-
}
|
|
146
|
-
#m(e, t) {
|
|
147
|
-
const { duration: s, realCurrentTime: a } = this.#e.$state, i = this.#o === r.Ended, o = i ? s() : e;
|
|
148
|
-
this.#e.notify("time-change", o, t), !i && Math.abs(o - a()) > 1 && this.#e.notify("seeking", o, t);
|
|
149
|
-
}
|
|
150
|
-
#u(e, t, s) {
|
|
151
|
-
const a = {
|
|
152
|
-
buffered: new u(0, e),
|
|
153
|
-
seekable: t
|
|
154
|
-
};
|
|
155
|
-
this.#e.notify("progress", a, s);
|
|
156
|
-
const { seeking: i, realCurrentTime: o } = this.#e.$state;
|
|
157
|
-
i() && e > o() && this.#h(s);
|
|
158
|
-
}
|
|
159
|
-
#h(e) {
|
|
160
|
-
const { paused: t, realCurrentTime: s } = this.#e.$state;
|
|
161
|
-
window.clearTimeout(this.#r), this.#r = window.setTimeout(
|
|
162
|
-
() => {
|
|
163
|
-
this.#e.notify("seeked", s(), e), this.#r = -1;
|
|
164
|
-
},
|
|
165
|
-
t() ? 100 : 0
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
#f(e) {
|
|
169
|
-
const { seeking: t } = this.#e.$state;
|
|
170
|
-
t() && this.#h(e), this.#e.notify("pause", void 0, e), this.#e.notify("end", void 0, e);
|
|
171
|
-
}
|
|
172
|
-
#g(e, t) {
|
|
173
|
-
const { paused: s, seeking: a } = this.#e.$state, i = e === r.Playing, o = e === r.Buffering, n = this.#b("playVideo"), h = s() && (o || i);
|
|
174
|
-
if (o && this.#e.notify("waiting", void 0, t), a() && i && this.#h(t), this.#i && i) {
|
|
175
|
-
this.pause(), this.#i = !1, this.setMuted(this.#e.$state.muted());
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
if (!n && h) {
|
|
179
|
-
this.#i = !0, this.setMuted(!0);
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
switch (h && (this.#n("playVideo")?.resolve(), this.#e.notify("play", void 0, t)), e) {
|
|
183
|
-
case r.Cued:
|
|
184
|
-
this.#p(t);
|
|
185
|
-
break;
|
|
186
|
-
case r.Playing:
|
|
187
|
-
this.#e.notify("playing", void 0, t);
|
|
188
|
-
break;
|
|
189
|
-
case r.Paused:
|
|
190
|
-
this.#y(t);
|
|
191
|
-
break;
|
|
192
|
-
case r.Ended:
|
|
193
|
-
this.#f(t);
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
this.#o = e;
|
|
197
|
-
}
|
|
198
|
-
onMessage({ info: e }, t) {
|
|
199
|
-
if (!e) return;
|
|
200
|
-
const { title: s, intrinsicDuration: a, playbackRate: i } = this.#e.$state;
|
|
201
|
-
if (b(e.videoData) && e.videoData.title !== s() && this.#e.notify("title-change", e.videoData.title, t), d(e.duration) && e.duration !== a()) {
|
|
202
|
-
if (d(e.videoLoadedFraction)) {
|
|
203
|
-
const o = e.progressState?.loaded ?? e.videoLoadedFraction * e.duration, n = new u(0, e.duration);
|
|
204
|
-
this.#u(o, n, t);
|
|
205
|
-
}
|
|
206
|
-
this.#e.notify("duration-change", e.duration, t);
|
|
207
|
-
}
|
|
208
|
-
if (d(e.playbackRate) && e.playbackRate !== i() && this.#e.notify("rate-change", e.playbackRate, t), e.progressState) {
|
|
209
|
-
const { current: o, seekableStart: n, seekableEnd: h, loaded: c, duration: l } = e.progressState;
|
|
210
|
-
this.#m(o, t), this.#u(c, new u(n, h), t), l !== a() && this.#e.notify("duration-change", l, t);
|
|
211
|
-
}
|
|
212
|
-
if (d(e.volume) && v(e.muted) && !this.#i) {
|
|
213
|
-
const o = {
|
|
214
|
-
muted: e.muted,
|
|
215
|
-
volume: e.volume / 100
|
|
216
|
-
};
|
|
217
|
-
this.#e.notify("volume-change", o, t);
|
|
218
|
-
}
|
|
219
|
-
d(e.playerState) && e.playerState !== this.#o && this.#g(e.playerState, t);
|
|
220
|
-
}
|
|
221
|
-
#l() {
|
|
222
|
-
this.#o = -1, this.#r = -1, this.#i = !1;
|
|
223
|
-
}
|
|
224
|
-
#n(e) {
|
|
225
|
-
return this.#s.get(e)?.shift();
|
|
226
|
-
}
|
|
227
|
-
#b(e) {
|
|
228
|
-
return !!this.#s.get(e)?.length;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
export {
|
|
232
|
-
R as YouTubeProvider
|
|
233
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
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-Cm-8fwtB.js";
|
|
3
|
-
const b = [
|
|
4
|
-
e.ADD,
|
|
5
|
-
e.ADD_CONTACT,
|
|
6
|
-
e.COPY,
|
|
7
|
-
e.DOWNLOAD_PDF,
|
|
8
|
-
e.DOWNLOAD,
|
|
9
|
-
e.UPLOAD,
|
|
10
|
-
e.COLUMNS,
|
|
11
|
-
e.VARIABLES,
|
|
12
|
-
e.FILTERS,
|
|
13
|
-
e.REFRESH,
|
|
14
|
-
e.DELETE,
|
|
15
|
-
e.SORT
|
|
16
|
-
], z = b, E = { class: "wt-action-bar" }, L = {
|
|
17
|
-
__name: "wt-action-bar",
|
|
18
|
-
props: {
|
|
19
|
-
/**
|
|
20
|
-
* [`'table'`, `'section'`]
|
|
21
|
-
* */
|
|
22
|
-
mode: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "table",
|
|
25
|
-
validator: (t) => [
|
|
26
|
-
"table",
|
|
27
|
-
"section"
|
|
28
|
-
].includes(t)
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* Not implemented
|
|
32
|
-
*/
|
|
33
|
-
size: {
|
|
34
|
-
type: String
|
|
35
|
-
// default: 'md',
|
|
36
|
-
// validator: (v) => ['sm', 'md', 'lg'].includes(v),
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* Leave the default value for the mode only listed in includes prop
|
|
40
|
-
*/
|
|
41
|
-
include: {
|
|
42
|
-
type: Array,
|
|
43
|
-
default: () => []
|
|
44
|
-
},
|
|
45
|
-
/**
|
|
46
|
-
* Leave the default values for the mode, except for those in exclude prop
|
|
47
|
-
*/
|
|
48
|
-
exclude: {
|
|
49
|
-
type: Array,
|
|
50
|
-
default: () => []
|
|
51
|
-
},
|
|
52
|
-
"sort:order": {
|
|
53
|
-
type: String,
|
|
54
|
-
default: null,
|
|
55
|
-
required: !1,
|
|
56
|
-
validator: (t) => Object.values(h).includes(t)
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* Built dynamically on `disabled:[IconAction]` pattern for all available [IconActions](../../enums/IconAction/Readme.md).
|
|
60
|
-
*/
|
|
61
|
-
disabled: {
|
|
62
|
-
// Not implemented, but can be used to disable all actions
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !1
|
|
65
|
-
},
|
|
66
|
-
...Object.values(e).reduce((t, o) => (t[`disabled:${o}`] = {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !1
|
|
69
|
-
}, t), {})
|
|
70
|
-
},
|
|
71
|
-
emits: [
|
|
72
|
-
/**
|
|
73
|
-
* click:IconAction
|
|
74
|
-
*/
|
|
75
|
-
...Object.values(e).map((t) => `click:${t}`)
|
|
76
|
-
],
|
|
77
|
-
setup(t, { emit: o }) {
|
|
78
|
-
const s = t, m = o, p = O(() => {
|
|
79
|
-
const r = s.mode === "section" ? z : b;
|
|
80
|
-
return s.include.length ? r.filter((l) => s.include.includes(l)) : s.exclude.length ? r.filter((l) => !s.exclude.includes(l)) : r;
|
|
81
|
-
}), d = (r) => {
|
|
82
|
-
m(`click:${r}`);
|
|
83
|
-
}, A = (r) => r === e.SORT ? {
|
|
84
|
-
"sort:order": s["sort:order"]
|
|
85
|
-
} : {};
|
|
86
|
-
return (r, l) => (f(), u("div", E, [
|
|
87
|
-
a(r.$slots, "search-bar", i(c({ size: t.size })), void 0, !0),
|
|
88
|
-
a(r.$slots, "default", i(c({ size: t.size })), void 0, !0),
|
|
89
|
-
(f(!0), u(S, null, D(p.value, (n) => a(r.$slots, n, i(c({ action: n, size: t.size, onClick: () => d(n) })), () => [
|
|
90
|
-
k(C, v(A(n), {
|
|
91
|
-
action: n,
|
|
92
|
-
disabled: s[`disabled:${y($)(n)}`]
|
|
93
|
-
}, {
|
|
94
|
-
onClick: (_) => d(n)
|
|
95
|
-
}), null, 16, ["action", "disabled", "onClick"])
|
|
96
|
-
], !0)), 256))
|
|
97
|
-
]));
|
|
98
|
-
}
|
|
99
|
-
}, T = /* @__PURE__ */ g(L, [["__scopeId", "data-v-affcbbbe"]]);
|
|
100
|
-
export {
|
|
101
|
-
T as default
|
|
102
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
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-Cm-8fwtB.js";
|
|
3
|
-
const O = {
|
|
4
|
-
__name: "wt-button-select",
|
|
5
|
-
props: {
|
|
6
|
-
/**
|
|
7
|
-
* See context-menu component docs
|
|
8
|
-
*/
|
|
9
|
-
options: {
|
|
10
|
-
type: Array,
|
|
11
|
-
required: !0
|
|
12
|
-
},
|
|
13
|
-
/**
|
|
14
|
-
* @values 'primary', 'secondary'
|
|
15
|
-
* @example <wt-button color="secondary"></wt-button>
|
|
16
|
-
*/
|
|
17
|
-
color: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "primary"
|
|
20
|
-
},
|
|
21
|
-
disabled: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
emits: [
|
|
27
|
-
/**
|
|
28
|
-
* @event click
|
|
29
|
-
*/
|
|
30
|
-
"click",
|
|
31
|
-
/**
|
|
32
|
-
* Click on option in context-menu
|
|
33
|
-
*
|
|
34
|
-
* @event click:option
|
|
35
|
-
*
|
|
36
|
-
* @property {object} option clicked option object
|
|
37
|
-
* @property {index} index clicked option index in options list
|
|
38
|
-
*/
|
|
39
|
-
"click:option"
|
|
40
|
-
],
|
|
41
|
-
setup(e, { emit: u }) {
|
|
42
|
-
const b = u, o = y(!1), a = C("buttonSelect"), f = ({ option: t, index: l }) => {
|
|
43
|
-
b("click:option", t, l), o.value = !1;
|
|
44
|
-
}, m = () => {
|
|
45
|
-
o.value = !1;
|
|
46
|
-
}, w = (t, l) => {
|
|
47
|
-
o.value = !o.value, t(l, a.value);
|
|
48
|
-
};
|
|
49
|
-
return (t, l) => {
|
|
50
|
-
const r = s("wt-button"), v = s("wt-icon"), p = s("wt-context-menu"), _ = g("clickaway");
|
|
51
|
-
return S(($(), B("div", {
|
|
52
|
-
ref_key: "buttonSelect",
|
|
53
|
-
ref: a,
|
|
54
|
-
class: "wt-button-select"
|
|
55
|
-
}, [
|
|
56
|
-
n(r, d(t.$attrs, {
|
|
57
|
-
color: e.color,
|
|
58
|
-
disabled: e.disabled,
|
|
59
|
-
class: "wt-button-select__button"
|
|
60
|
-
}, {
|
|
61
|
-
onClick: l[0] || (l[0] = (c) => t.$emit("click", c))
|
|
62
|
-
}), {
|
|
63
|
-
default: i(() => [
|
|
64
|
-
x(t.$slots, "default", {}, void 0, !0)
|
|
65
|
-
], void 0, !0),
|
|
66
|
-
_: 3
|
|
67
|
-
}, 16, ["color", "disabled"]),
|
|
68
|
-
n(p, {
|
|
69
|
-
disabled: e.disabled,
|
|
70
|
-
options: e.options,
|
|
71
|
-
visible: o.value,
|
|
72
|
-
"tooltip-triggers": [],
|
|
73
|
-
onClick: f
|
|
74
|
-
}, {
|
|
75
|
-
activator: i(({ toggle: c, show: q }) => [
|
|
76
|
-
n(r, d(t.$attrs, {
|
|
77
|
-
color: e.color,
|
|
78
|
-
disabled: e.disabled,
|
|
79
|
-
loading: !1,
|
|
80
|
-
class: "wt-button-select__select-btn"
|
|
81
|
-
}, {
|
|
82
|
-
onClick: (k) => w(c, k)
|
|
83
|
-
}), {
|
|
84
|
-
default: i(() => [
|
|
85
|
-
n(v, {
|
|
86
|
-
class: h([{ "wt-button-select__select-arrow--active": o.value }, "wt-button-select__select-arrow"]),
|
|
87
|
-
color: e.color === "primary" ? "on-primary" : "default",
|
|
88
|
-
disabled: e.disabled,
|
|
89
|
-
icon: "arrow-down"
|
|
90
|
-
}, null, 8, ["class", "color", "disabled"])
|
|
91
|
-
], void 0, !0),
|
|
92
|
-
_: 1
|
|
93
|
-
}, 16, ["color", "disabled", "onClick"])
|
|
94
|
-
]),
|
|
95
|
-
_: 1
|
|
96
|
-
}, 8, ["disabled", "options", "visible"])
|
|
97
|
-
])), [
|
|
98
|
-
[_, m]
|
|
99
|
-
]);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
}, E = /* @__PURE__ */ D(O, [["__scopeId", "data-v-17b6dce6"]]);
|
|
103
|
-
export {
|
|
104
|
-
E as default
|
|
105
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, computed as i, resolveComponent as a, createBlock as m, openBlock as _, withCtx as u, createElementVNode as k, createVNode as I, createTextVNode as V, toDisplayString as N, createCommentVNode as T } from "vue";
|
|
2
|
-
import { E as s } from "./engineCallFileType-yaadA7-2.js";
|
|
3
|
-
import { _ as b } from "./install-Cm-8fwtB.js";
|
|
4
|
-
const E = { class: "wt-call-media-action__option" }, O = /* @__PURE__ */ h({
|
|
5
|
-
__name: "wt-call-media-action",
|
|
6
|
-
props: {
|
|
7
|
-
files: {},
|
|
8
|
-
playingFileId: { default: "" }
|
|
9
|
-
},
|
|
10
|
-
emits: ["play", "stop"],
|
|
11
|
-
setup(p, { emit: v }) {
|
|
12
|
-
const t = p, d = v, n = i(() => [
|
|
13
|
-
...t.files[s.FileTypeAudio] || [],
|
|
14
|
-
...t.files[s.FileTypeVideo] || []
|
|
15
|
-
]), w = i(
|
|
16
|
-
() => t.files[s.FileTypeVideo] ? "preview-tag-video" : "play"
|
|
17
|
-
), f = i(
|
|
18
|
-
() => n.value.some((e) => e.id === t.playingFileId)
|
|
19
|
-
), y = i(
|
|
20
|
-
() => n.value.map(({ name: e, id: r, mimeType: o, type: c }) => ({
|
|
21
|
-
text: e,
|
|
22
|
-
id: r,
|
|
23
|
-
mimeType: o,
|
|
24
|
-
type: c,
|
|
25
|
-
icon: o === "video/mp4" ? "preview-tag-video" : "preview-tag-audio"
|
|
26
|
-
}))
|
|
27
|
-
), g = ({ option: e }) => {
|
|
28
|
-
t.playingFileId === e.id ? d("stop") : d("play", e);
|
|
29
|
-
};
|
|
30
|
-
return (e, r) => {
|
|
31
|
-
const o = a("wt-icon-btn"), c = a("wt-icon"), x = a("wt-context-menu");
|
|
32
|
-
return _(), m(x, {
|
|
33
|
-
class: "wt-call-media-action",
|
|
34
|
-
options: y.value,
|
|
35
|
-
"max-width": "400px",
|
|
36
|
-
onClick: g
|
|
37
|
-
}, {
|
|
38
|
-
activator: u(({ toggle: l }) => [
|
|
39
|
-
n.value.length ? (_(), m(o, {
|
|
40
|
-
key: 0,
|
|
41
|
-
icon: f.value ? "stop" : w.value,
|
|
42
|
-
onClick: l
|
|
43
|
-
}, null, 8, ["icon", "onClick"])) : T("", !0)
|
|
44
|
-
]),
|
|
45
|
-
option: u(({ text: l, id: F, icon: C }) => [
|
|
46
|
-
k("div", E, [
|
|
47
|
-
I(c, {
|
|
48
|
-
icon: F === p.playingFileId ? "stop" : C
|
|
49
|
-
}, null, 8, ["icon"]),
|
|
50
|
-
V(" " + N(l), 1)
|
|
51
|
-
])
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["options"]);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}), D = /* @__PURE__ */ b(O, [["__scopeId", "data-v-a6f7b638"]]);
|
|
58
|
-
export {
|
|
59
|
-
D as default
|
|
60
|
-
};
|