@streamlayer/react 1.21.4 → 1.22.2

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 (168) hide show
  1. package/lib/app/masters.d.ts +2 -5
  2. package/lib/app/pause-ad.d.ts +1 -10
  3. package/lib/app/useStreamLayerApp.d.ts +1 -23
  4. package/lib/cjs/Question.js +1 -0
  5. package/lib/cjs/advertisement.js +40 -40
  6. package/lib/cjs/analytics.js +1 -0
  7. package/lib/cjs/auth.js +1 -1
  8. package/lib/cjs/bet-pack.js +1 -1
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/hooks-B0Qttldg.js +1 -0
  11. package/lib/cjs/index-DSi8Qgfs.js +1 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -0
  14. package/lib/cjs/index11.js +4 -0
  15. package/lib/cjs/index12.js +1 -0
  16. package/lib/cjs/index13.js +1 -0
  17. package/lib/cjs/index14.js +1 -0
  18. package/lib/cjs/index15.js +1 -0
  19. package/lib/cjs/index16.js +5 -0
  20. package/lib/cjs/index2.js +1 -5
  21. package/lib/cjs/index3.js +1 -0
  22. package/lib/cjs/index4.js +5 -0
  23. package/lib/cjs/index5.js +1 -0
  24. package/lib/cjs/index6.js +1 -0
  25. package/lib/cjs/index7.js +5 -0
  26. package/lib/cjs/index8.js +1 -0
  27. package/lib/cjs/index9.js +1 -0
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +6 -6
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/sl-types.js +15 -0
  35. package/lib/cjs/storage.js +1 -0
  36. package/lib/cjs/theme.js +17 -0
  37. package/lib/cjs/useStreamLayerApp.js +1 -1
  38. package/lib/cjs/useStreamLayerApp2.js +9 -9
  39. package/lib/cjs/utils.js +47 -0
  40. package/lib/cjs/vast-client.min.js +1 -0
  41. package/lib/classic/app/masters.d.ts +2 -5
  42. package/lib/classic/app/pause-ad.d.ts +1 -10
  43. package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
  44. package/lib/classic/cjs/Question.js +1 -0
  45. package/lib/classic/cjs/advertisement.js +40 -40
  46. package/lib/classic/cjs/analytics.js +1 -0
  47. package/lib/classic/cjs/auth.js +1 -1
  48. package/lib/classic/cjs/bet-pack.js +4 -4
  49. package/lib/classic/cjs/gamification-feature.js +1 -1
  50. package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
  51. package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
  52. package/lib/classic/cjs/index.js +1 -1
  53. package/lib/classic/cjs/index10.js +1 -0
  54. package/lib/classic/cjs/index11.js +1 -0
  55. package/lib/classic/cjs/index12.js +1 -0
  56. package/lib/classic/cjs/index13.js +4 -0
  57. package/lib/classic/cjs/index2.js +5 -0
  58. package/lib/classic/cjs/index3.js +1 -0
  59. package/lib/classic/cjs/index4.js +1 -0
  60. package/lib/classic/cjs/index5.js +1 -0
  61. package/lib/classic/cjs/index6.js +5 -0
  62. package/lib/classic/cjs/index7.js +1 -0
  63. package/lib/classic/cjs/index8.js +1 -0
  64. package/lib/classic/cjs/index9.js +1 -0
  65. package/lib/classic/cjs/insight.js +1 -1
  66. package/lib/classic/cjs/notification.js +1 -1
  67. package/lib/classic/cjs/notification2.js +1 -0
  68. package/lib/classic/cjs/pause-ad.js +1 -1
  69. package/lib/classic/cjs/points.js +1 -1
  70. package/lib/classic/cjs/sl-types.js +15 -0
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
  73. package/lib/classic/cjs/utils.js +47 -0
  74. package/lib/classic/cjs/vast-client.min.js +1 -0
  75. package/lib/classic/es/Question.js +392 -0
  76. package/lib/classic/es/advertisement.js +10375 -10374
  77. package/lib/classic/es/analytics.js +28 -0
  78. package/lib/classic/es/auth.js +4 -4
  79. package/lib/classic/es/bet-pack.js +56 -51
  80. package/lib/classic/es/gamification-feature.js +1 -1
  81. package/lib/classic/es/hooks-B0Qttldg.js +98 -0
  82. package/lib/classic/es/index-DSi8Qgfs.js +65 -0
  83. package/lib/classic/es/index.js +14 -15
  84. package/lib/classic/es/index10.js +87 -0
  85. package/lib/classic/es/index11.js +2361 -0
  86. package/lib/classic/es/index12.js +183 -0
  87. package/lib/classic/es/index13.js +835 -0
  88. package/lib/classic/es/index2.js +2621 -0
  89. package/lib/classic/es/index3.js +64 -0
  90. package/lib/classic/es/index4.js +19 -0
  91. package/lib/classic/es/index5.js +285 -0
  92. package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
  93. package/lib/classic/es/index7.js +7 -0
  94. package/lib/classic/es/index8.js +11 -0
  95. package/lib/classic/es/index9.js +319 -0
  96. package/lib/classic/es/insight.js +31 -32
  97. package/lib/classic/es/notification.js +7 -1006
  98. package/lib/classic/es/notification2.js +1117 -0
  99. package/lib/classic/es/pause-ad.js +139 -138
  100. package/lib/classic/es/points.js +39 -38
  101. package/lib/classic/es/sl-types.js +258 -0
  102. package/lib/classic/es/useStreamLayerApp.js +1 -2
  103. package/lib/classic/es/useStreamLayerApp2.js +2400 -2283
  104. package/lib/classic/es/utils.js +76 -0
  105. package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
  106. package/lib/classic/index.d.ts +5 -13
  107. package/lib/classic/masters.d.ts +1 -1
  108. package/lib/dist/cjs/index.js +1 -1
  109. package/lib/dist/cjs/masters.js +30 -30
  110. package/lib/dist/es/index.js +2 -2
  111. package/lib/dist/es/masters.js +5813 -6063
  112. package/lib/dist/index.d.ts +1332 -0
  113. package/lib/dist/style.css +1 -1
  114. package/lib/es/Question.js +136 -0
  115. package/lib/es/advertisement.js +10375 -10374
  116. package/lib/es/analytics.js +28 -0
  117. package/lib/es/auth.js +4 -4
  118. package/lib/es/bet-pack.js +7 -6
  119. package/lib/es/gamification-feature.js +1 -1
  120. package/lib/es/hooks-B0Qttldg.js +98 -0
  121. package/lib/es/index-DSi8Qgfs.js +65 -0
  122. package/lib/es/index.js +13 -14
  123. package/lib/es/index10.js +267 -0
  124. package/lib/es/index11.js +835 -0
  125. package/lib/es/index12.js +183 -0
  126. package/lib/es/index13.js +319 -0
  127. package/lib/es/index14.js +87 -0
  128. package/lib/es/index15.js +2355 -0
  129. package/lib/es/index16.js +1254 -0
  130. package/lib/es/index2.js +1349 -3363
  131. package/lib/es/index3.js +64 -0
  132. package/lib/es/index4.js +3418 -0
  133. package/lib/es/index5.js +19 -0
  134. package/lib/es/index6.js +285 -0
  135. package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
  136. package/lib/es/index8.js +7 -0
  137. package/lib/es/index9.js +11 -0
  138. package/lib/es/insight.js +31 -32
  139. package/lib/es/masters.js +6 -5
  140. package/lib/es/masters2.js +189 -176
  141. package/lib/es/notification.js +124 -119
  142. package/lib/es/pause-ad.js +140 -139
  143. package/lib/es/points.js +40 -38
  144. package/lib/es/sl-types.js +277 -0
  145. package/lib/es/storage.js +113 -0
  146. package/lib/es/theme.js +47 -0
  147. package/lib/es/useStreamLayerApp.js +1 -2
  148. package/lib/es/useStreamLayerApp2.js +2399 -2282
  149. package/lib/es/utils.js +76 -0
  150. package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
  151. package/lib/index.d.ts +5 -13
  152. package/lib/masters.d.ts +1 -1
  153. package/lib/style.css +1 -1
  154. package/package.json +13 -48
  155. package/lib/app/event.d.ts +0 -6
  156. package/lib/app/provider.d.ts +0 -49
  157. package/lib/cjs/index-l-eyvmpL.js +0 -5
  158. package/lib/cjs/provider.js +0 -84
  159. package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
  160. package/lib/classic/app/event.d.ts +0 -6
  161. package/lib/classic/app/provider.d.ts +0 -49
  162. package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
  163. package/lib/classic/cjs/provider.js +0 -68
  164. package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
  165. package/lib/classic/es/provider.js +0 -7617
  166. package/lib/dist/cjs/gamification-feature2.js +0 -1
  167. package/lib/dist/es/gamification-feature2.js +0 -285
  168. package/lib/es/provider.js +0 -7693
@@ -0,0 +1,28 @@
1
+ import { useEffect as l } from "react";
2
+ import { e as i } from "./index3.js";
3
+ import { A as s } from "./sl-types.js";
4
+ const u = (e) => [(t) => (...n) => (e && i.emit(e == null ? void 0 : e.type, e), t ? t(n) : null)], p = (e) => {
5
+ const t = e.target;
6
+ t instanceof HTMLAnchorElement && t.target === "_blank" && t.getAttribute("data-a") === "web-link" && i.emit("poll", {
7
+ action: "navigated",
8
+ payload: {}
9
+ }), t instanceof Element && t.getAttribute("data-a") === "intr" && i.emit("interactions", {
10
+ action: "tap",
11
+ payload: {}
12
+ });
13
+ }, f = (e, t) => {
14
+ const n = window.innerWidth < s.xl;
15
+ l(() => {
16
+ const a = n && t.useDomNode ? document : e.current, o = (r) => {
17
+ t.listener(r, e);
18
+ };
19
+ return t.enabled && (a == null || a.addEventListener(t.event, o)), () => {
20
+ a == null || a.removeEventListener(t.event, o);
21
+ };
22
+ }, [n, t.enabled, t.listener]);
23
+ };
24
+ export {
25
+ p as A,
26
+ f as b,
27
+ u as f
28
+ };
@@ -1,11 +1,11 @@
1
1
  import { useEffect as o } from "react";
2
- import { u } from "./provider.js";
3
- const f = ({ token: t, schema: i }) => {
4
- const r = u();
2
+ import { B as f } from "./hooks-B0Qttldg.js";
3
+ const p = ({ token: t, schema: i }) => {
4
+ const r = f();
5
5
  return o(() => {
6
6
  t && i && r && r.authorizationBypass(i, t), r && (r.withAuth = !0);
7
7
  }, [t, i, r]), null;
8
8
  };
9
9
  export {
10
- f as StreamLayerLogin
10
+ p as StreamLayerLogin
11
11
  };
@@ -1,8 +1,13 @@
1
1
  import { jsx as P, jsxs as F } from "react/jsx-runtime";
2
- import { s as _, B as te, o as vt, p as gt, e as Se, j as wt, n as Ee, u as bt, i as yt } from "./provider.js";
3
- import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as St, createContext as He, useMemo as Re, useCallback as qe, memo as Et } from "react";
4
- import xt from "lodash.throttle";
5
- import { C as Tt, a as Ct, S as We } from "./useStreamLayerApp2.js";
2
+ import { c as vt, e as gt } from "./index3.js";
3
+ import { s as _, u as Se, c as Ee } from "./sl-types.js";
4
+ import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as wt, createContext as He, useMemo as Re, useCallback as qe, memo as bt } from "react";
5
+ import yt from "lodash.throttle";
6
+ import { B as te } from "./index5.js";
7
+ import { d as St } from "./index10.js";
8
+ import { e as Et } from "./index13.js";
9
+ import { d as xt, e as Tt, S as We } from "./useStreamLayerApp2.js";
10
+ import { B as Ct } from "./hooks-B0Qttldg.js";
6
11
  function _e(t) {
7
12
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
8
13
  }
@@ -438,7 +443,7 @@ function Ft(t) {
438
443
  observeSlideChildren: !1
439
444
  }), r("init", o), r("destroy", c);
440
445
  }
441
- var jt = {
446
+ var Vt = {
442
447
  on(t, e, s) {
443
448
  const r = this;
444
449
  if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
@@ -493,7 +498,7 @@ var jt = {
493
498
  }), t;
494
499
  }
495
500
  };
496
- function Vt() {
501
+ function jt() {
497
502
  const t = this;
498
503
  let e, s;
499
504
  const r = t.el;
@@ -542,15 +547,15 @@ function Ht() {
542
547
  if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
543
548
  I = t.isHorizontal() ? Te(x, "width") : Te(x, "height");
544
549
  else {
545
- const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), j = e(k, "margin-left"), G = e(k, "margin-right"), V = k.getPropertyValue("box-sizing");
546
- if (V && V === "border-box")
547
- I = C + j + G;
550
+ const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
551
+ if (j && j === "border-box")
552
+ I = C + V + G;
548
553
  else {
549
554
  const {
550
555
  clientWidth: ft,
551
556
  offsetWidth: ht
552
557
  } = x;
553
- I = C + z + U + j + G + (ht - ft);
558
+ I = C + z + U + V + G + (ht - ft);
554
559
  }
555
560
  }
556
561
  L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
@@ -851,7 +856,7 @@ function Kt(t, e) {
851
856
  r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
852
857
  }
853
858
  var Jt = {
854
- updateSize: Vt,
859
+ updateSize: jt,
855
860
  updateSlides: Ht,
856
861
  updateAutoHeight: Rt,
857
862
  updateSlidesOffset: qt,
@@ -1291,8 +1296,8 @@ function ws(t) {
1291
1296
  const z = C - Math.floor(C / A) * A;
1292
1297
  if (g) {
1293
1298
  const U = A - z - 1;
1294
- for (let j = d.length - 1; j >= 0; j -= 1)
1295
- d[j].column === U && y.push(j);
1299
+ for (let V = d.length - 1; V >= 0; V -= 1)
1300
+ d[V].column === U && y.push(V);
1296
1301
  } else
1297
1302
  y.push(A - z - 1);
1298
1303
  }
@@ -1300,8 +1305,8 @@ function ws(t) {
1300
1305
  L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
1301
1306
  for (let C = 0; C < L; C += 1) {
1302
1307
  const z = C - Math.floor(C / A) * A;
1303
- g ? d.forEach((U, j) => {
1304
- U.column === z && T.push(j);
1308
+ g ? d.forEach((U, V) => {
1309
+ U.column === z && T.push(V);
1305
1310
  }) : T.push(z);
1306
1311
  }
1307
1312
  }
@@ -1835,11 +1840,11 @@ function Fs() {
1835
1840
  } = t;
1836
1841
  !e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
1837
1842
  }
1838
- var js = {
1843
+ var Vs = {
1839
1844
  addClasses: Ds,
1840
1845
  removeClasses: Fs
1841
1846
  };
1842
- function Vs() {
1847
+ function js() {
1843
1848
  const t = this, {
1844
1849
  isLocked: e,
1845
1850
  params: s
@@ -1854,7 +1859,7 @@ function Vs() {
1854
1859
  s.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), s.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
1855
1860
  }
1856
1861
  var Hs = {
1857
- checkOverflow: Vs
1862
+ checkOverflow: js
1858
1863
  }, Pe = {
1859
1864
  init: !0,
1860
1865
  direction: "horizontal",
@@ -1996,7 +2001,7 @@ function Rs(t, e) {
1996
2001
  };
1997
2002
  }
1998
2003
  const be = {
1999
- eventsEmitter: jt,
2004
+ eventsEmitter: Vt,
2000
2005
  update: Jt,
2001
2006
  translate: is,
2002
2007
  transition: os,
@@ -2006,7 +2011,7 @@ const be = {
2006
2011
  events: _s,
2007
2012
  breakpoints: Bs,
2008
2013
  checkOverflow: Hs,
2009
- classes: js
2014
+ classes: Vs
2010
2015
  }, ye = {};
2011
2016
  let ze = class q {
2012
2017
  constructor() {
@@ -2614,7 +2619,7 @@ function Js(t, e, s) {
2614
2619
  }));
2615
2620
  }
2616
2621
  function ee(t, e) {
2617
- return typeof window > "u" ? Y(t, e) : St(t, e);
2622
+ return typeof window > "u" ? Y(t, e) : wt(t, e);
2618
2623
  }
2619
2624
  const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__PURE__ */ Ae(function(t, e) {
2620
2625
  let {
@@ -2637,8 +2642,8 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2637
2642
  h(!v);
2638
2643
  };
2639
2644
  Object.assign(I.on, {
2640
- _containerClasses(G, V) {
2641
- d(V);
2645
+ _containerClasses(G, j) {
2646
+ d(j);
2642
2647
  }
2643
2648
  });
2644
2649
  const C = () => {
@@ -2648,13 +2653,13 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2648
2653
  };
2649
2654
  if (delete G.wrapperClass, w.current = new ze(G), w.current.virtual && w.current.params.virtual.enabled) {
2650
2655
  w.current.virtual.slides = k;
2651
- const V = {
2656
+ const j = {
2652
2657
  cache: !1,
2653
2658
  slides: k,
2654
2659
  renderExternal: f,
2655
2660
  renderExternalUpdate: !1
2656
2661
  };
2657
- J(w.current.params.virtual, V), J(w.current.originalParams.virtual, V);
2662
+ J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
2658
2663
  }
2659
2664
  };
2660
2665
  M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
@@ -2685,7 +2690,7 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2685
2690
  };
2686
2691
  }, []), ee(() => {
2687
2692
  z();
2688
- const G = Us(S, p.current, k, m.current, (V) => V.key);
2693
+ const G = Us(S, p.current, k, m.current, (j) => j.key);
2689
2694
  return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Ws({
2690
2695
  swiper: w.current,
2691
2696
  slides: k,
@@ -2701,10 +2706,10 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2701
2706
  }), ee(() => {
2702
2707
  Qs(w.current);
2703
2708
  }, [u]);
2704
- function j() {
2705
- return I.virtual ? Js(w.current, k, u) : k.map((G, V) => /* @__PURE__ */ $.cloneElement(G, {
2709
+ function V() {
2710
+ return I.virtual ? Js(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2706
2711
  swiper: w.current,
2707
- swiperSlideIndex: V
2712
+ swiperSlideIndex: j
2708
2713
  }));
2709
2714
  }
2710
2715
  return /* @__PURE__ */ $.createElement(r, pe({
@@ -2714,7 +2719,7 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2714
2719
  value: w.current
2715
2720
  }, L["container-start"], /* @__PURE__ */ $.createElement(n, {
2716
2721
  className: qs(I.wrapperClass)
2717
- }, L["wrapper-start"], j(), L["wrapper-end"]), st(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
2722
+ }, L["wrapper-start"], V(), L["wrapper-end"]), st(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
2718
2723
  ref: y,
2719
2724
  className: "swiper-button-prev"
2720
2725
  }), /* @__PURE__ */ $.createElement("div", {
@@ -2854,12 +2859,12 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2854
2859
  name: "EndScreenSponsorIcon",
2855
2860
  class: "e1uswib2",
2856
2861
  propsAsIs: !0
2857
- }), mr = ({ onEvent: t, height: e }) => {
2858
- const [s, r] = W(
2862
+ }), mr = ({ onEvent: t }) => {
2863
+ const [e, s] = W(
2859
2864
  0
2860
2865
  /* FIRST */
2861
2866
  );
2862
- return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Me, { children: [
2867
+ return e === 0 ? /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2863
2868
  /* @__PURE__ */ P(ur, {}),
2864
2869
  /* @__PURE__ */ F(ct, { children: [
2865
2870
  /* @__PURE__ */ P(pt, { children: "Great picks!" }),
@@ -2870,7 +2875,7 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2870
2875
  {
2871
2876
  "data-a": "intr",
2872
2877
  onClick: () => {
2873
- r(
2878
+ s(
2874
2879
  1
2875
2880
  /* LAST */
2876
2881
  );
@@ -2879,7 +2884,7 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2879
2884
  children: "Continue"
2880
2885
  }
2881
2886
  )
2882
- ] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Me, { children: [
2887
+ ] }) }, "end") : /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2883
2888
  /* @__PURE__ */ P(cr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
2884
2889
  /* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
2885
2890
  /* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
@@ -2892,8 +2897,8 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2892
2897
  className: t
2893
2898
  }) => /* @__PURE__ */ P(fr, {
2894
2899
  className: t,
2895
- children: /* @__PURE__ */ P(vt, {})
2896
- }), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(gt, { close: () => {
2900
+ children: /* @__PURE__ */ P(St, {})
2901
+ }), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(Et, { close: () => {
2897
2902
  }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, vr = /* @__PURE__ */ _("span")({
2898
2903
  name: "NextButton",
2899
2904
  class: "n991vvm",
@@ -3238,7 +3243,7 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3238
3243
  e.closeQuestion();
3239
3244
  }, [u, f] = W(1.1);
3240
3245
  return Y(() => {
3241
- const v = xt(() => {
3246
+ const v = yt(() => {
3242
3247
  var h;
3243
3248
  const b = (h = l.current) == null ? void 0 : h.size;
3244
3249
  if (!b)
@@ -3282,7 +3287,7 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3282
3287
  {
3283
3288
  onEvent: n,
3284
3289
  actionFn: () => n({ type: "slHardRefresh" }),
3285
- description: l instanceof Tt && l.code !== Ct.InvalidArgument ? `The event ID was not
3290
+ description: l instanceof xt && l.code !== Tt.InvalidArgument ? `The event ID was not
3286
3291
  specified or is invalid.` : `The server is unable to
3287
3292
  handle this request.`
3288
3293
  }
@@ -3309,7 +3314,7 @@ handle this request.`
3309
3314
  name: "BetPackContainer",
3310
3315
  class: "b18vssq2",
3311
3316
  propsAsIs: !1
3312
- }), ie = "slBetPackCb", Mr = wt("betPack-ui"), kr = (t, e = {}) => {
3317
+ }), ie = "slBetPackCb", Mr = vt("betPack-ui"), kr = (t, e = {}) => {
3313
3318
  var s, r;
3314
3319
  const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
3315
3320
  Mr.debug({ id: ie, type: t, ...l }), (s = window.top) == null || s.postMessage({ id: ie, type: t, ...l }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...l }), (r = window.slBetPackCb) != null && r.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...l, from: "base" }));
@@ -3347,7 +3352,7 @@ handle this request.`
3347
3352
  name: "Footer",
3348
3353
  class: "f1vakhu9",
3349
3354
  propsAsIs: !1
3350
- }), je = /* @__PURE__ */ _("button")({
3355
+ }), Ve = /* @__PURE__ */ _("button")({
3351
3356
  name: "SlideSwitchButton",
3352
3357
  class: "spp13y7",
3353
3358
  propsAsIs: !1
@@ -3385,8 +3390,8 @@ Ae(({ sdk: t, onEvent: e, close: s }, r) => {
3385
3390
  ] }),
3386
3391
  /* @__PURE__ */ P(Br, { children: /* @__PURE__ */ P(mt, { sdk: t, onEvent: o, overlay: !0 }) }),
3387
3392
  /* @__PURE__ */ F(Nr, { children: [
3388
- /* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canPrev) && Fe) }) }),
3389
- /* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(_r, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canNext) && Fe) }) })
3393
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canPrev) && Fe) }) }),
3394
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(_r, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canNext) && Fe) }) })
3390
3395
  ] })
3391
3396
  ] });
3392
3397
  });
@@ -3398,7 +3403,7 @@ const Dr = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n })
3398
3403
  description: `You are not authorized to
3399
3404
  view this resource.`
3400
3405
  }
3401
- ) : /* @__PURE__ */ P(Le, {}), mt = Et(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
3406
+ ) : /* @__PURE__ */ P(Le, {}), mt = bt(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
3402
3407
  const n = Se(t.featuresList.getStore()), i = Re(() => t.getFeature(We.GAMES), [n]), l = Se(t.getUserStore());
3403
3408
  return Y(() => (t.writeOverlaySessionId(), () => {
3404
3409
  t.writeOverlaySessionId("");
@@ -3409,18 +3414,18 @@ view this resource.`
3409
3414
  children: /* @__PURE__ */ P(Dr, { overlay: r, user: l, gamification: i, onEvent: s, swipeable: e })
3410
3415
  }
3411
3416
  );
3412
- }), Ve = (t) => {
3417
+ }), je = (t) => {
3413
3418
  const e = t.target;
3414
- e instanceof Element && e.getAttribute("data-a") === "intr" && yt.emit("interactions", {
3419
+ e instanceof Element && e.getAttribute("data-a") === "intr" && gt.emit("interactions", {
3415
3420
  action: "tap",
3416
3421
  payload: {}
3417
3422
  });
3418
- }, qr = () => {
3419
- const t = bt();
3420
- return Y(() => (document == null || document.addEventListener("click", Ve), () => {
3421
- document == null || document.removeEventListener("click", Ve);
3423
+ }, Qr = () => {
3424
+ const t = Ct();
3425
+ return Y(() => (document == null || document.addEventListener("click", je), () => {
3426
+ document == null || document.removeEventListener("click", je);
3422
3427
  }), []), t ? /* @__PURE__ */ P(mt, { sdk: t }) : null;
3423
3428
  };
3424
3429
  export {
3425
- qr as BetPackProvider
3430
+ Qr as BetPackProvider
3426
3431
  };
@@ -1,4 +1,4 @@
1
- import { g as f } from "./provider.js";
1
+ import { B as f } from "./index2.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,98 @@
1
+ import { createContext as P, useEffect as s, useRef as g, useMemo as w, useContext as u, useState as h } from "react";
2
+ import { jsxs as N, jsx as O } from "react/jsx-runtime";
3
+ import { $ as T } from "./useStreamLayerApp2.js";
4
+ const L = ({
5
+ event: e,
6
+ internal: r
7
+ }) => {
8
+ const n = H(), o = j();
9
+ return s(() => (n && (e && (n.createEventSession(e, r), o && (o.current = e)), !e && o != null && o.current && (n.createEventSession("", r), o.current = "")), () => {
10
+ n && n.disableApp();
11
+ }), [e, r, o, n]), null;
12
+ };
13
+ var x = /* @__PURE__ */ ((e) => (e[e.UNSET = 0] = "UNSET", e[e.CONNECTED = 1] = "CONNECTED", e[e.READY = 2] = "READY", e))(x || {});
14
+ const M = {
15
+ status: 0,
16
+ sdk: null
17
+ }, d = P(M), U = ({
18
+ sdkKey: e,
19
+ theme: r,
20
+ themeMode: n,
21
+ plugins: o,
22
+ children: a,
23
+ event: m,
24
+ production: y = !0,
25
+ autoEnable: E = !0,
26
+ withAdNotification: C,
27
+ withAd: S = !0,
28
+ betPack: c = !1,
29
+ hideFriends: f,
30
+ skipOnboarding: p,
31
+ friendsTab: v = "enabled",
32
+ onDeepLinkHandled: i,
33
+ videoPlayerController: l,
34
+ onContentActivate: A,
35
+ containerId: b,
36
+ webOS: D
37
+ }) => {
38
+ const t = T({
39
+ sdkKey: e,
40
+ plugins: o,
41
+ production: y,
42
+ autoEnable: E,
43
+ onDeepLinkHandled: i,
44
+ videoPlayerController: l,
45
+ onContentActivate: A,
46
+ hideFriends: f,
47
+ skipOnboarding: p,
48
+ withAdNotification: C,
49
+ withAd: S,
50
+ friendsTab: v,
51
+ betPack: c,
52
+ webOS: D
53
+ }), k = g(""), K = w(() => t ? { sdk: t, status: 2, event: k } : { status: 1, sdk: null, event: k }, [t]);
54
+ return s(() => {
55
+ t && (t.options.setKey("friendsTab", v), t.options.setKey("theme", r), t.options.setKey("themeMode", n), t.options.setKey("skipOnboarding", p), t.options.setKey("betPack", c), t.options.setKey("containerId", b));
56
+ }, [t, v, r, n, p, c, b]), s(() => () => {
57
+ i && (t == null || t.removeDeepLinkHandler(i)), l && (t == null || t.removeVideoPlayerController(l));
58
+ }, [t]), s(() => {
59
+ localStorage.getItem("SL_DEBUG") && console.log("StreamLayerProvider mounted with props:", {
60
+ sdkKey: !!e,
61
+ onDeepLinkHandled: !!i,
62
+ videoPlayerController: !!l
63
+ });
64
+ }, [e, i, l]), /* @__PURE__ */ N(d.Provider, { value: K, children: [
65
+ m !== void 0 && /* @__PURE__ */ O(L, { event: m }),
66
+ a
67
+ ] });
68
+ }, H = () => {
69
+ const { sdk: e } = u(d);
70
+ return e;
71
+ }, j = () => {
72
+ const { event: e } = u(d);
73
+ return e;
74
+ }, Y = () => {
75
+ const { sdk: e } = u(d), [r, n] = h({});
76
+ return s(() => {
77
+ var o;
78
+ return e != null && e.options ? (o = e == null ? void 0 : e.options) == null ? void 0 : o.subscribe((a) => {
79
+ n({ theme: a.theme, themeMode: a.themeMode });
80
+ }) : () => {
81
+ };
82
+ }, [e == null ? void 0 : e.options]), r;
83
+ }, B = () => {
84
+ const { sdk: e } = u(d), [r, n] = h({});
85
+ return s(() => e != null && e.uiState ? e == null ? void 0 : e.uiState.subscribe((o) => {
86
+ n({ ...o });
87
+ }) : () => {
88
+ }, [e == null ? void 0 : e.uiState]), r;
89
+ };
90
+ export {
91
+ H as B,
92
+ B as F,
93
+ x as Y,
94
+ d as c,
95
+ L as j,
96
+ U as q,
97
+ Y as z
98
+ };
@@ -0,0 +1,65 @@
1
+ let n = [], f = 0;
2
+ const r = 4;
3
+ let s = (o) => {
4
+ let l = [], e = {
5
+ get() {
6
+ return e.lc || e.listen(() => {
7
+ })(), e.value;
8
+ },
9
+ lc: 0,
10
+ listen(t) {
11
+ return e.lc = l.push(t), () => {
12
+ for (let i = f + r; i < n.length; )
13
+ n[i] === t ? n.splice(i, r) : i += r;
14
+ let u = l.indexOf(t);
15
+ ~u && (l.splice(u, 1), --e.lc || e.off());
16
+ };
17
+ },
18
+ notify(t, u) {
19
+ let i = !n.length;
20
+ for (let v of l)
21
+ n.push(
22
+ v,
23
+ e.value,
24
+ t,
25
+ u
26
+ );
27
+ if (i) {
28
+ for (f = 0; f < n.length; f += r)
29
+ n[f](
30
+ n[f + 1],
31
+ n[f + 2],
32
+ n[f + 3]
33
+ );
34
+ n.length = 0;
35
+ }
36
+ },
37
+ /* It will be called on last listener unsubscribing.
38
+ We will redefine it in onMount and onStop. */
39
+ off() {
40
+ },
41
+ set(t) {
42
+ let u = e.value;
43
+ u !== t && (e.value = t, e.notify(u));
44
+ },
45
+ subscribe(t) {
46
+ let u = e.listen(t);
47
+ return t(e.value), u;
48
+ },
49
+ value: o
50
+ };
51
+ return e;
52
+ }, a = (o = {}) => {
53
+ let l = s(o);
54
+ return l.setKey = function(e, t) {
55
+ let u = l.value;
56
+ typeof t > "u" && e in l.value ? (l.value = { ...l.value }, delete l.value[e], l.notify(u, e)) : l.value[e] !== t && (l.value = {
57
+ ...l.value,
58
+ [e]: t
59
+ }, l.notify(u, e));
60
+ }, l;
61
+ };
62
+ export {
63
+ s as a,
64
+ a as i
65
+ };
@@ -1,19 +1,18 @@
1
- import { S as s, a as y, b as L, h as p, u as c, d as f, c as u } from "./provider.js";
2
- import "nanostores";
3
- import "react/jsx-runtime";
4
1
  import "react";
5
- import "lodash.throttle";
6
- import "react-dom";
7
- import "react-countup";
8
- import { StreamLayerSDKNotification as K, StreamLayerSDKNotificationUI as d } from "./notification.js";
2
+ import { q as o, j as S, B as s, z as i, F as y } from "./hooks-B0Qttldg.js";
3
+ import "react/jsx-runtime";
4
+ import "./useStreamLayerApp2.js";
5
+ import { h as p } from "./index7.js";
6
+ import { b as K } from "./index2.js";
7
+ import { a as D, K as c } from "./notification2.js";
9
8
  export {
10
- s as StreamLayerProvider,
11
- y as StreamLayerSDKEvent,
12
- K as StreamLayerSDKNotification,
13
- d as StreamLayerSDKNotificationUI,
14
- L as StreamLayerSDKReact,
9
+ o as StreamLayerProvider,
10
+ S as StreamLayerSDKEvent,
11
+ D as StreamLayerSDKNotification,
12
+ c as StreamLayerSDKNotificationUI,
13
+ K as StreamLayerSDKReact,
15
14
  p as StreamLayerThemeProvider,
16
- c as useStreamLayer,
17
- f as useStreamLayerTheme,
18
- u as useStreamLayerUI
15
+ s as useStreamLayer,
16
+ i as useStreamLayerTheme,
17
+ y as useStreamLayerUI
19
18
  };
@@ -0,0 +1,87 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { d as x } from "./index11.js";
3
+ import { useEffect as h, useState as d, useCallback as p } from "react";
4
+ import { s as f, N as O, I as k, O as y, S as E } from "./sl-types.js";
5
+ import { CountdownCircleTimer as g } from "react-countdown-circle-timer";
6
+ import { B as P } from "./index5.js";
7
+ const v = (i) => {
8
+ const { Component: o, options: t, customOptions: s, autoFocus: r, ...l } = i, e = x.useFocusable({
9
+ ...t,
10
+ ...s,
11
+ onEnterPress: () => {
12
+ var a;
13
+ return (a = i.onClick) == null ? void 0 : a.call(i, { currentTarget: e.ref.current, stopPropagation: () => {
14
+ } });
15
+ }
16
+ });
17
+ return h(() => {
18
+ r && e.focusSelf();
19
+ }, []), /* @__PURE__ */ n(o, { ...l, ...e, "data-is-with-focus": "true" });
20
+ };
21
+ function B(i, o) {
22
+ return ({ webos: t, options: s, ...r }) => t ? /* @__PURE__ */ n(v, { Component: i, options: o, customOptions: s, ...r }) : /* @__PURE__ */ n(i, { ...r });
23
+ }
24
+ const w = [10, 10, 1, 0], I = /* @__PURE__ */ f("div")({
25
+ name: "RemainingTimeCircle",
26
+ class: "r165427",
27
+ propsAsIs: !1
28
+ }), S = /* @__PURE__ */ f("div")({
29
+ name: "RemainingTime",
30
+ class: "r17garf3",
31
+ propsAsIs: !1
32
+ }), b = y, c = O, u = E, F = ({
33
+ className: i,
34
+ duration: o = 30,
35
+ onTimerExpired: t,
36
+ isPlaying: s = !0
37
+ }) => /* @__PURE__ */ n(g, {
38
+ isPlaying: s,
39
+ strokeWidth: 0,
40
+ duration: o,
41
+ colors: c,
42
+ size: 24,
43
+ onComplete: t,
44
+ children: ({
45
+ remainingTime: r
46
+ }) => /* @__PURE__ */ n(S, {
47
+ className: i,
48
+ children: o === 0 ? 0 : r
49
+ })
50
+ }), j = ({
51
+ isPlaying: i = !0,
52
+ duration: o = 30,
53
+ onTimerExpired: t
54
+ }) => {
55
+ const [s, r] = d(o > 10 ? b : c), [l, e] = d(2);
56
+ h(() => {
57
+ o === 0 && (e(0), r(u));
58
+ }, [o]);
59
+ const a = ({
60
+ remainingTime: m
61
+ }) => /* @__PURE__ */ n(I, {
62
+ children: o === 0 ? 0 : m
63
+ }), C = p(() => {
64
+ t == null || t(), r(u);
65
+ }, [t, r]), T = p((m) => {
66
+ m === 10 && r(c);
67
+ }, [r]);
68
+ return /* @__PURE__ */ n(g, {
69
+ isPlaying: i,
70
+ duration: o,
71
+ colors: k,
72
+ colorsTime: w,
73
+ size: 32,
74
+ strokeWidth: l,
75
+ trailStrokeWidth: 2,
76
+ trailColor: s,
77
+ onComplete: C,
78
+ onUpdate: T,
79
+ children: a
80
+ });
81
+ }, G = ({ height: i = "37px", width: o = "37px" }) => /* @__PURE__ */ n("div", { style: { height: i, width: o }, children: /* @__PURE__ */ n(P, { name: "loader" }) });
82
+ export {
83
+ F as G,
84
+ j as L,
85
+ B as O,
86
+ G as d
87
+ };