@webitel/ui-sdk 26.2.69 → 26.2.71

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 (92) hide show
  1. package/dist/{errors-DCJKAXTz.js → errors-CTL-RV3B.js} +1 -1
  2. package/dist/{index-cVwBpL1P.js → index-CLhoKzki.js} +1 -1
  3. package/dist/{index-B71drQtj.js → index-x2Djqp3W.js} +4 -4
  4. package/dist/{install-BEn6vjFW.js → install-Cp4KnSCI.js} +1102 -1220
  5. package/dist/{isObject-DB0eH0MA.js → isObject-C_1aA257.js} +1 -1
  6. package/dist/prod-BoQuiIB3.js +973 -0
  7. package/dist/srt-parser-CsN7bp5E.js +26 -0
  8. package/dist/ssa-parser-BJOOPeQF.js +200 -0
  9. package/dist/ui-sdk.css +1 -1
  10. package/dist/ui-sdk.js +1 -1
  11. package/dist/ui-sdk.umd.cjs +464 -482
  12. package/dist/vidstack-Bq6c3Bam-CeA9TvJ4.js +425 -0
  13. package/dist/vidstack-D2pY00kU-hPWR401d.js +135 -0
  14. package/dist/vidstack-DDXt6fpN-DEjXPjHx.js +50 -0
  15. package/dist/vidstack-D_-9AA6_-Bh2Pn0IA.js +20 -0
  16. package/dist/{vidstack-Dm1xEU9Q-qSXq3AI-.js → vidstack-Dm1xEU9Q-CXHNvShT.js} +10 -11
  17. package/dist/vidstack-DqAw8m9J-BSNVCj3S.js +22 -0
  18. package/dist/vidstack-audio-C3of4Q-I.js +28 -0
  19. package/dist/vidstack-dash-BD3CNy0Z.js +392 -0
  20. package/dist/vidstack-google-cast-DXLqBW30.js +382 -0
  21. package/dist/vidstack-hls-C6Az6tgn.js +309 -0
  22. package/dist/vidstack-krOAtKMi-C50BTxmn.js +28 -0
  23. package/dist/vidstack-video-CtScgimr.js +163 -0
  24. package/dist/vidstack-vimeo-dFXp7_Vx.js +451 -0
  25. package/dist/vidstack-youtube-BF0J2izd.js +232 -0
  26. package/dist/{vuex.esm-bundler-tZVctzTj.js → vuex.esm-bundler-D5BkZi23.js} +1 -1
  27. package/dist/{wt-action-bar-ColV1kXE.js → wt-action-bar-BrFf9y4i.js} +1 -1
  28. package/dist/{wt-button-select-CfoSEYMj.js → wt-button-select-BQOYl5Z5.js} +1 -1
  29. package/dist/{wt-chat-emoji-Bgv9Viz-.js → wt-chat-emoji-D9rZ4xfn.js} +6 -11
  30. package/dist/{wt-confirm-dialog-bVhuyR-Q.js → wt-confirm-dialog-DdRFwuNQ.js} +1 -1
  31. package/dist/{wt-context-menu-Cd8pgBRV.js → wt-context-menu-Dx-K-ACK.js} +1 -1
  32. package/dist/{wt-copy-action-jjp1mO2h.js → wt-copy-action-BPMZsUtG.js} +1 -1
  33. package/dist/wt-datepicker-PK3BgSmp.js +5660 -0
  34. package/dist/wt-display-chip-items-CAO8OLhX.js +46 -0
  35. package/dist/{wt-dual-panel-DJsiR6RF.js → wt-dual-panel-CAh5CMKO.js} +1 -1
  36. package/dist/{wt-dummy-O94iGdZS.js → wt-dummy-DMXuDlcb.js} +1 -1
  37. package/dist/{wt-error-page-xgSWJ65z.js → wt-error-page-UoX8GV8V.js} +1 -1
  38. package/dist/{wt-expansion-panel-vzG02b62.js → wt-expansion-panel-G7G1803j.js} +1 -1
  39. package/dist/{wt-filters-panel-wrapper-h-UaAMuF.js → wt-filters-panel-wrapper-GI9X-SaD.js} +1 -1
  40. package/dist/wt-galleria-DtJgf7Db.js +322 -0
  41. package/dist/{wt-navigation-menu-Cu5Y9kua.js → wt-navigation-menu-CrDo7Vpq.js} +2 -5
  42. package/dist/wt-notifications-bar-CmUZpffK.js +79 -0
  43. package/dist/{wt-page-header-DlRrRzG7.js → wt-page-header-C7JiNmsy.js} +1 -1
  44. package/dist/{wt-pagination-CW46I4u2.js → wt-pagination-CaOk680t.js} +1 -1
  45. package/dist/{wt-player-3qh_Jzm2.js → wt-player-Cs2dAT3H.js} +1 -1
  46. package/dist/{wt-popover-BTG5bUP0.js → wt-popover-U7JE0uoX.js} +19 -22
  47. package/dist/{wt-search-bar-CTsNf7bp.js → wt-search-bar-f1yQguL2.js} +25 -28
  48. package/dist/{wt-selection-popup-DvaUvY4O.js → wt-selection-popup-CwjvQZ77.js} +1 -1
  49. package/dist/{wt-start-page-CcN7JC_u.js → wt-start-page-CMGnK33r.js} +7 -7
  50. package/dist/{wt-status-select-C8t0cgTg.js → wt-status-select-C5RigMIl.js} +1 -1
  51. package/dist/{wt-stepper-BLb42q2I.js → wt-stepper-1gbY9rv5.js} +1 -1
  52. package/dist/{wt-table-9gmsV0Y9.js → wt-table-D6d0dRYQ.js} +111 -114
  53. package/dist/{wt-table-actions-BB7AH7sR.js → wt-table-actions-BsjrniPP.js} +1 -1
  54. package/dist/{wt-table-column-select-B3lrCEaV.js → wt-table-column-select-JiD5kd7i.js} +28 -31
  55. package/dist/{wt-tabs-CCHi_E1a.js → wt-tabs-DpxPfuRj.js} +1 -1
  56. package/dist/{wt-tags-input-DLicKjv3.js → wt-tags-input-CJpT_4mw.js} +56 -57
  57. package/dist/{wt-timepicker-B9ONDzNQ.js → wt-timepicker-CtH8MdN-.js} +1 -1
  58. package/dist/{wt-tree-cQlvJmh5.js → wt-tree-C99Qwdwn.js} +4 -5
  59. package/dist/{wt-tree-table-B89YKiMf.js → wt-tree-table-3qAoEJ7m.js} +5 -5
  60. package/dist/{wt-type-extension-value-input-Da8FXLDs.js → wt-type-extension-value-input-CfiVBG5u.js} +214 -218
  61. package/dist/wt-vidstack-player-B8Ilx2ml.js +10229 -0
  62. package/package.json +5 -5
  63. package/src/modules/Userinfo/classes/ApplicationsAccess.ts +36 -3
  64. package/src/modules/Userinfo/scripts/utils.ts +2 -22
  65. package/src/modules/Userinfo/stores/accessStore.ts +20 -5
  66. package/src/modules/Userinfo/stores/userinfoStore.ts +1 -0
  67. package/src/modules/Userinfo/types/UserAccess.d.ts +11 -3
  68. package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +34 -243
  69. package/types/modules/Userinfo/scripts/utils.d.ts +1 -2
  70. package/types/modules/Userinfo/stores/accessStore.d.ts +1 -1
  71. package/types/modules/Userinfo/stores/userinfoStore.d.ts +21 -9
  72. package/dist/prod-DTLJXtPo.js +0 -994
  73. package/dist/srt-parser-CWqahKwO.js +0 -27
  74. package/dist/ssa-parser-BqjjKy4M.js +0 -209
  75. package/dist/vidstack-Bq6c3Bam-w5y-QQDX.js +0 -413
  76. package/dist/vidstack-D2pY00kU-BI5rYx7p.js +0 -138
  77. package/dist/vidstack-DDXt6fpN-QZPrP2dy.js +0 -60
  78. package/dist/vidstack-D_-9AA6_-Bo1xPN-G.js +0 -20
  79. package/dist/vidstack-DqAw8m9J-DL7LzrFt.js +0 -29
  80. package/dist/vidstack-audio-lX1O0fza.js +0 -32
  81. package/dist/vidstack-dash-BQkRGWe_.js +0 -403
  82. package/dist/vidstack-google-cast-C39n-PU1.js +0 -377
  83. package/dist/vidstack-hls-BCLhCuNJ.js +0 -324
  84. package/dist/vidstack-krOAtKMi-B4IZWKdc.js +0 -29
  85. package/dist/vidstack-video-BgayrEIC.js +0 -181
  86. package/dist/vidstack-vimeo-Lpe7iySs.js +0 -437
  87. package/dist/vidstack-youtube-Dmcz0xVm.js +0 -236
  88. package/dist/wt-datepicker-Cs3xDzVq.js +0 -5789
  89. package/dist/wt-display-chip-items-IqNMxa_X.js +0 -52
  90. package/dist/wt-galleria-cDjsiOcp.js +0 -324
  91. package/dist/wt-notifications-bar-KNH47kZ7.js +0 -80
  92. package/dist/wt-vidstack-player-BzFbIwCa.js +0 -10250
@@ -0,0 +1,26 @@
1
+ import { V as h, a as i, b as r } from "./prod-BoQuiIB3.js";
2
+ const c = /,/g, a = "-->";
3
+ class n extends h {
4
+ parse(s, e) {
5
+ if (s === "")
6
+ this.c && (this.l.push(this.c), this.h.onCue?.(this.c), this.c = null), this.e = i.None;
7
+ else if (this.e === i.Cue)
8
+ this.c.text += (this.c.text ? `
9
+ ` : "") + s;
10
+ else if (s.includes(a)) {
11
+ const t = this.q(s, e);
12
+ t && (this.c = new r(t[0], t[1], t[2].join(" ")), this.c.id = this.n, this.e = i.Cue);
13
+ }
14
+ this.n = s;
15
+ }
16
+ q(s, e) {
17
+ return super.q(s.replace(c, "."), e);
18
+ }
19
+ }
20
+ function T() {
21
+ return new n();
22
+ }
23
+ export {
24
+ n as SRTParser,
25
+ T as default
26
+ };
@@ -0,0 +1,200 @@
1
+ import { b as M, p as R } from "./prod-BoQuiIB3.js";
2
+ const b = /^Format:[\s\t]*/, y = /^Style:[\s\t]*/, O = /^Dialogue:[\s\t]*/, S = /[\s\t]*,[\s\t]*/, _ = /\{[^}]+\}/g, w = /\\N/g, I = /^\[(.*)[\s\t]?Styles\]$/, m = /^\[(.*)[\s\t]?Events\]$/;
3
+ class F {
4
+ h;
5
+ O = 0;
6
+ c = null;
7
+ l = [];
8
+ m = [];
9
+ N = null;
10
+ f;
11
+ P = {};
12
+ async init(t) {
13
+ this.h = t, t.errors && (this.f = (await import("./errors-CTL-RV3B.js")).ParseErrorBuilder);
14
+ }
15
+ parse(t, l) {
16
+ if (this.O)
17
+ switch (this.O) {
18
+ case 1:
19
+ if (t === "")
20
+ this.O = 0;
21
+ else if (y.test(t))
22
+ if (this.N) {
23
+ const e = t.replace(y, "").split(S);
24
+ this.S(e);
25
+ } else
26
+ this.g(this.f?.T("Style", l));
27
+ else b.test(t) ? this.N = t.replace(b, "").split(S) : m.test(t) && (this.N = null, this.O = 2);
28
+ break;
29
+ case 2:
30
+ if (t === "")
31
+ this.Q();
32
+ else if (O.test(t))
33
+ if (this.Q(), this.N) {
34
+ const e = t.replace(O, "").split(S), s = this.U(e, l);
35
+ s && (this.c = s);
36
+ } else
37
+ this.g(this.f?.T("Dialogue", l));
38
+ else this.c ? this.c.text += `
39
+ ` + t.replace(_, "").replace(w, `
40
+ `) : b.test(t) ? this.N = t.replace(b, "").split(S) : I.test(t) ? (this.N = null, this.O = 1) : m.test(t) && (this.N = null);
41
+ }
42
+ else t === "" || (I.test(t) ? (this.N = null, this.O = 1) : m.test(t) && (this.N = null, this.O = 2));
43
+ }
44
+ done() {
45
+ return {
46
+ metadata: {},
47
+ cues: this.l,
48
+ regions: [],
49
+ errors: this.m
50
+ };
51
+ }
52
+ Q() {
53
+ this.c && (this.l.push(this.c), this.h.onCue?.(this.c), this.c = null);
54
+ }
55
+ S(t) {
56
+ let l = "Default", e = {}, s, a = "center", r = "bottom", g, o = 1.2, c, h, n = 3, f = [];
57
+ for (let u = 0; u < this.N.length; u++) {
58
+ const x = this.N[u], i = t[u];
59
+ switch (x) {
60
+ case "Name":
61
+ l = i;
62
+ break;
63
+ case "Fontname":
64
+ e["font-family"] = i;
65
+ break;
66
+ case "Fontsize":
67
+ e["font-size"] = `calc(${i} / var(--overlay-height))`;
68
+ break;
69
+ case "PrimaryColour":
70
+ const T = k(i);
71
+ T && (e["--cue-color"] = T);
72
+ break;
73
+ case "BorderStyle":
74
+ n = parseInt(i, 10);
75
+ break;
76
+ case "BackColour":
77
+ h = k(i);
78
+ break;
79
+ case "OutlineColour":
80
+ const E = k(i);
81
+ E && (c = E);
82
+ break;
83
+ case "Bold":
84
+ parseInt(i) && (e["font-weight"] = "bold");
85
+ break;
86
+ case "Italic":
87
+ parseInt(i) && (e["font-style"] = "italic");
88
+ break;
89
+ case "Underline":
90
+ parseInt(i) && (e["text-decoration"] = "underline");
91
+ break;
92
+ case "StrikeOut":
93
+ parseInt(i) && (e["text-decoration"] = "line-through");
94
+ break;
95
+ case "Spacing":
96
+ e["letter-spacing"] = i + "px";
97
+ break;
98
+ case "AlphaLevel":
99
+ e.opacity = parseFloat(i);
100
+ break;
101
+ case "ScaleX":
102
+ f.push(`scaleX(${parseFloat(i) / 100})`);
103
+ break;
104
+ case "ScaleY":
105
+ f.push(`scaleY(${parseFloat(i) / 100})`);
106
+ break;
107
+ case "Angle":
108
+ f.push(`rotate(${i}deg)`);
109
+ break;
110
+ case "Shadow":
111
+ o = parseInt(i, 10) * 1.2;
112
+ break;
113
+ case "MarginL":
114
+ e["--cue-width"] = "auto", e["--cue-left"] = parseFloat(i) + "px";
115
+ break;
116
+ case "MarginR":
117
+ e["--cue-width"] = "auto", e["--cue-right"] = parseFloat(i) + "px";
118
+ break;
119
+ case "MarginV":
120
+ g = parseFloat(i);
121
+ break;
122
+ case "Outline":
123
+ s = parseInt(i, 10);
124
+ break;
125
+ case "Alignment":
126
+ const d = parseInt(i, 10);
127
+ switch (d >= 4 && (r = d >= 7 ? "top" : "center"), d % 3) {
128
+ case 1:
129
+ a = "start";
130
+ break;
131
+ case 2:
132
+ a = "center";
133
+ break;
134
+ case 3:
135
+ a = "end";
136
+ break;
137
+ }
138
+ }
139
+ }
140
+ if (e.R = r, e["--cue-white-space"] = "normal", e["--cue-line-height"] = "normal", e["--cue-text-align"] = a, r === "center" ? (e["--cue-top"] = "50%", f.push("translateY(-50%)")) : e[`--cue-${r}`] = (g || 0) + "px", n === 1 && (e["--cue-padding-y"] = "0"), (n === 1 || h) && (e["--cue-bg-color"] = n === 1 ? "none" : h), n === 3 && c && (e["--cue-outline"] = `${s}px solid ${c}`), n === 1 && typeof s == "number") {
141
+ const u = h ?? "#000";
142
+ e["--cue-text-shadow"] = [
143
+ c && N(s * 1.2, o * 1.2, c),
144
+ c ? N(s * (s / 2), o * (s / 2), u) : N(s, o, u)
145
+ ].filter(Boolean).join(", ");
146
+ }
147
+ f.length && (e["--cue-transform"] = f.join(" ")), this.P[l] = e;
148
+ }
149
+ U(t, l) {
150
+ const e = this.V(t), s = this.q(e.Start, e.End, l);
151
+ if (!s)
152
+ return;
153
+ const a = new M(s[0], s[1], ""), r = { ...this.P[e.Style] || {} }, g = e.Name ? `<v ${e.Name}>` : "", o = r.R, c = e.MarginL && parseFloat(e.MarginL), h = e.MarginR && parseFloat(e.MarginR), n = e.MarginV && parseFloat(e.MarginV);
154
+ return c && (r["--cue-width"] = "auto", r["--cue-left"] = c + "px"), h && (r["--cue-width"] = "auto", r["--cue-right"] = h + "px"), n && o !== "center" && (r[`--cue-${o}`] = n + "px"), a.text = g + t.slice(this.N.length - 1).join(", ").replace(_, "").replace(w, `
155
+ `), delete r.R, Object.keys(r).length && (a.style = r), a;
156
+ }
157
+ V(t) {
158
+ const l = {};
159
+ for (let e = 0; e < this.N.length; e++)
160
+ l[this.N[e]] = t[e];
161
+ return l;
162
+ }
163
+ q(t, l, e) {
164
+ const s = R(t), a = R(l);
165
+ if (s !== null && a !== null && a > s)
166
+ return [s, a];
167
+ s === null && this.g(this.f?.s(t, e)), a === null && this.g(this.f?.t(l, e)), s != null && a !== null && a > s && this.g(this.f?.u(s, a, e));
168
+ }
169
+ g(t) {
170
+ if (t) {
171
+ if (this.m.push(t), this.h.strict)
172
+ throw this.h.cancel(), t;
173
+ this.h.onError?.(t);
174
+ }
175
+ }
176
+ }
177
+ function k(p) {
178
+ const t = parseInt(p.replace("&H", ""), 16);
179
+ if (t >= 0) {
180
+ const e = (t >> 24 & 255 ^ 255) / 255, s = t >> 16 & 255, a = t >> 8 & 255;
181
+ return "rgba(" + [t & 255, a, s, e].join(",") + ")";
182
+ }
183
+ return null;
184
+ }
185
+ function N(p, t, l) {
186
+ const e = Math.ceil(2 * Math.PI * p);
187
+ let s = "";
188
+ for (let a = 0; a < e; a++) {
189
+ const r = 2 * Math.PI * a / e;
190
+ s += p * Math.cos(r) + "px " + t * Math.sin(r) + "px 0 " + l + (a == e - 1 ? "" : ",");
191
+ }
192
+ return s;
193
+ }
194
+ function L() {
195
+ return new F();
196
+ }
197
+ export {
198
+ F as SSAParser,
199
+ L as default
200
+ };