@spash/frontlib 0.0.9 → 0.0.11

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 CHANGED
@@ -89,7 +89,7 @@ export declare interface Session {
89
89
  bookingProviderData?: string;
90
90
  gameSheetUrl: string;
91
91
  competitionStage: string;
92
- videoUploadEnabled?: boolean;
92
+ videoUploadEnable?: boolean;
93
93
  competition: Competition;
94
94
  sport: Sport;
95
95
  ngtvSessionType?: SessionType;
@@ -139,7 +139,7 @@ export declare interface SessionInput {
139
139
  ngtvSessionType?: string;
140
140
  bookingProvider?: string;
141
141
  bookingProviderData?: string;
142
- videoUploadEnabled?: boolean;
142
+ videoUploadEnable?: boolean;
143
143
  }
144
144
 
145
145
  export declare interface SessionPlayer {
@@ -279,7 +279,7 @@ export declare const useHelper: ({ t, router }?: {
279
279
 
280
280
  export { useI18n }
281
281
 
282
- export declare const useIdle: (time: number) => {
282
+ export declare const useIdle: (time: number, callback?: () => void) => {
283
283
  isIdle: Ref<boolean>;
284
284
  };
285
285
 
package/dist/main.js CHANGED
@@ -24250,7 +24250,7 @@ const kb = /* @__PURE__ */ fe({
24250
24250
  default: Pe(() => [
24251
24251
  gt(" - 5 "),
24252
24252
  Gb,
24253
- gt(" IMG ")
24253
+ gt(" SEC ")
24254
24254
  ]),
24255
24255
  _: 1
24256
24256
  })
@@ -24628,7 +24628,7 @@ const oI = {
24628
24628
  var k;
24629
24629
  Qt.isSupported() ? (a.value = new Qt(), g.value = !1, a.value.loadSource(i.value), a.value.attachMedia(l.value), a.value.on(Qt.Events.FRAG_BUFFERED, () => {
24630
24630
  const V = localStorage.getItem("cameraTimecode");
24631
- V && (console.log(1), localStorage.removeItem("cameraTimecode"), l.value.currentTime = parseInt(V)), c.value = !0, l.value.play();
24631
+ V && (localStorage.removeItem("cameraTimecode"), l.value.currentTime = parseInt(V)), c.value = !0, l.value.play();
24632
24632
  }), a.value.on(Qt.Events.LEVEL_LOADED, (V, $) => {
24633
24633
  m.value = Math.floor($.details.totalduration), d.value = !0;
24634
24634
  }), a.value.on(Qt.Events.ERROR, () => {
@@ -33781,12 +33781,12 @@ const kP = () => {
33781
33781
  const o = new EventSource(i.toString());
33782
33782
  return r != null && r.onOpen && (o.onopen = (a) => r.onOpen ? r.onOpen(a) : null), r != null && r.onMessage && (o.onmessage = (a) => r.onMessage ? r.onMessage(JSON.parse(a.data)) : null), r != null && r.onError && (o.onerror = (a) => r.onError ? r.onError(a) : null), o;
33783
33783
  }
33784
- }), DP = (n) => {
33785
- const { idle: e } = F1(n);
33786
- return xt(e, (t) => {
33787
- t && (window.location.href = "/");
33784
+ }), DP = (n, e) => {
33785
+ const { idle: t } = F1(n);
33786
+ return xt(t, (s) => {
33787
+ s && (e ? e() : window.location.href = "/");
33788
33788
  }), {
33789
- isIdle: e
33789
+ isIdle: t
33790
33790
  };
33791
33791
  }, NP = ({ t: n } = {}) => ({ groupsOptions: (t = 0) => {
33792
33792
  const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").slice(0, t).map((i) => ({ id: `group_${i}`, name: n(`commons.groups.group_${i}`) })), r = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spash/frontlib",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"