@spash/frontlib 0.0.27-beta.3 → 0.0.28-beta.1
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/main.d.ts +1 -0
- package/dist/main.js +8 -6
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -25324,8 +25324,10 @@ const Kw = /* @__PURE__ */ Ge(Vw, [["render", jw]]), Ww = { class: "relative min
|
|
|
25324
25324
|
},
|
|
25325
25325
|
setup(n) {
|
|
25326
25326
|
const e = n, { event: t, sessionEventTypes: r } = St(e), { t: s } = br(), { timecodeToTimeObject: i } = mg({ t: s }), { logoSmall: o } = B2(), { matchEvent: a } = gp(), l = Ie(() => {
|
|
25327
|
-
|
|
25328
|
-
|
|
25327
|
+
let h = t.value.videoTimecode;
|
|
25328
|
+
t.value.aiCalculated && (h = t.value.startVideoTimecode);
|
|
25329
|
+
const p = i(h), g = p.hours.toString().padStart(2, "0"), v = p.minutes.toString().padStart(2, "0"), y = p.seconds.toString().padStart(2, "0");
|
|
25330
|
+
return `${g} : ${v} : ${y}`;
|
|
25329
25331
|
}), c = Ie(
|
|
25330
25332
|
() => `${t.value.currentScoreHome} - ${t.value.currentScoreAway}`
|
|
25331
25333
|
), u = Ie(
|
|
@@ -25481,7 +25483,7 @@ const Kw = /* @__PURE__ */ Ge(Vw, [["render", jw]]), Ww = { class: "relative min
|
|
|
25481
25483
|
}, Q = (_) => {
|
|
25482
25484
|
B();
|
|
25483
25485
|
let te = _.videoTimecode - y.value;
|
|
25484
|
-
_.aiCalculated && (te = _.
|
|
25486
|
+
_.aiCalculated && (te = _.startVideoTimecode), s("update:timecode", te);
|
|
25485
25487
|
}, j = (_) => {
|
|
25486
25488
|
const te = !U.value.length;
|
|
25487
25489
|
if (g.value = _, g.value)
|
|
@@ -25490,7 +25492,7 @@ const Kw = /* @__PURE__ */ Ge(Vw, [["render", jw]]), Ww = { class: "relative min
|
|
|
25490
25492
|
else {
|
|
25491
25493
|
const J = U.value[v.value];
|
|
25492
25494
|
let W = J.videoTimecode - y.value;
|
|
25493
|
-
J.aiCalculated && (W = J.
|
|
25495
|
+
J.aiCalculated && (W = J.startVideoTimecode), s("update:timecode", W);
|
|
25494
25496
|
}
|
|
25495
25497
|
else
|
|
25496
25498
|
v.value = 0;
|
|
@@ -25510,11 +25512,11 @@ const Kw = /* @__PURE__ */ Ge(Vw, [["render", jw]]), Ww = { class: "relative min
|
|
|
25510
25512
|
const te = _ > ((J = document.querySelector("#videoPlayer")) == null ? void 0 : J.duration);
|
|
25511
25513
|
if (g.value) {
|
|
25512
25514
|
const W = U.value[v.value];
|
|
25513
|
-
if (W.aiCalculated ? _ === W.
|
|
25515
|
+
if (W.aiCalculated ? _ === W.startVideoTimecode + W.duration : _ === W.videoTimecode) {
|
|
25514
25516
|
v.value = v.value === U.value.length - 1 ? 0 : v.value + 1;
|
|
25515
25517
|
const Ae = U.value[v.value];
|
|
25516
25518
|
let xe = Ae.videoTimecode - y.value;
|
|
25517
|
-
Ae.aiCalculated && (xe = Ae.
|
|
25519
|
+
Ae.aiCalculated && (xe = Ae.startVideoTimecode), s("update:timecode", xe);
|
|
25518
25520
|
}
|
|
25519
25521
|
if (v.value === U.value.length - 1 && te) {
|
|
25520
25522
|
v.value = 0;
|