@streamlayer/react 1.22.2 → 1.23.0

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 (112) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +44 -40
  3. package/lib/cjs/analytics.js +1 -1
  4. package/lib/cjs/index-eShKGO10.js +5 -0
  5. package/lib/cjs/index.js +1 -1
  6. package/lib/cjs/index10.js +4 -1
  7. package/lib/cjs/index11.js +1 -4
  8. package/lib/cjs/index12.js +1 -1
  9. package/lib/cjs/index13.js +1 -1
  10. package/lib/cjs/index14.js +1 -1
  11. package/lib/cjs/index15.js +5 -1
  12. package/lib/cjs/index2.js +1 -1
  13. package/lib/cjs/index4.js +1 -1
  14. package/lib/cjs/index7.js +1 -5
  15. package/lib/cjs/index8.js +1 -1
  16. package/lib/cjs/index9.js +1 -1
  17. package/lib/cjs/insight.js +1 -1
  18. package/lib/cjs/masters2.js +5 -5
  19. package/lib/cjs/notification.js +1 -1
  20. package/lib/cjs/pause-ad.js +1 -1
  21. package/lib/cjs/points.js +1 -1
  22. package/lib/cjs/storage.js +1 -1
  23. package/lib/cjs/useStreamLayerApp2.js +17 -17
  24. package/lib/classic/cjs/Question.js +1 -1
  25. package/lib/classic/cjs/advertisement.js +44 -40
  26. package/lib/classic/cjs/analytics.js +1 -1
  27. package/lib/classic/cjs/bet-pack.js +1 -1
  28. package/lib/classic/cjs/index-eShKGO10.js +5 -0
  29. package/lib/classic/cjs/index.js +1 -1
  30. package/lib/classic/cjs/index10.js +1 -1
  31. package/lib/classic/cjs/index11.js +1 -1
  32. package/lib/classic/cjs/index12.js +4 -1
  33. package/lib/classic/cjs/index2.js +2 -2
  34. package/lib/classic/cjs/index3.js +1 -1
  35. package/lib/classic/cjs/index4.js +1 -1
  36. package/lib/classic/cjs/index5.js +1 -1
  37. package/lib/classic/cjs/index6.js +1 -5
  38. package/lib/classic/cjs/index7.js +1 -1
  39. package/lib/classic/cjs/index8.js +1 -1
  40. package/lib/classic/cjs/index9.js +1 -1
  41. package/lib/classic/cjs/insight.js +1 -1
  42. package/lib/classic/cjs/notification.js +1 -1
  43. package/lib/classic/cjs/notification2.js +1 -1
  44. package/lib/classic/cjs/pause-ad.js +1 -1
  45. package/lib/classic/cjs/points.js +1 -1
  46. package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
  47. package/lib/classic/es/Question.js +53 -53
  48. package/lib/classic/es/advertisement.js +15547 -10742
  49. package/lib/classic/es/analytics.js +74 -18
  50. package/lib/classic/es/bet-pack.js +4 -4
  51. package/lib/classic/es/index-eShKGO10.js +3757 -0
  52. package/lib/classic/es/index.js +1 -1
  53. package/lib/classic/es/index10.js +2295 -82
  54. package/lib/classic/es/index11.js +179 -2357
  55. package/lib/classic/es/index12.js +822 -170
  56. package/lib/classic/es/index2.js +13 -14
  57. package/lib/classic/es/index3.js +16 -61
  58. package/lib/classic/es/index4.js +282 -16
  59. package/lib/classic/es/index5.js +5 -283
  60. package/lib/classic/es/index6.js +9 -3756
  61. package/lib/classic/es/index7.js +62 -5
  62. package/lib/classic/es/index8.js +315 -7
  63. package/lib/classic/es/index9.js +81 -313
  64. package/lib/classic/es/insight.js +1 -1
  65. package/lib/classic/es/notification.js +1 -1
  66. package/lib/classic/es/notification2.js +476 -452
  67. package/lib/classic/es/pause-ad.js +174 -208
  68. package/lib/classic/es/points.js +4 -4
  69. package/lib/classic/es/useStreamLayerApp2.js +5062 -4028
  70. package/lib/dist/cjs/index-eShKGO10.js +5 -0
  71. package/lib/dist/cjs/masters.js +35 -35
  72. package/lib/dist/es/index-eShKGO10.js +3757 -0
  73. package/lib/dist/es/masters.js +9267 -8240
  74. package/lib/dist/index.d.ts +13 -1
  75. package/lib/dist/style.css +1 -1
  76. package/lib/es/Question.js +4 -4
  77. package/lib/es/advertisement.js +15547 -10742
  78. package/lib/es/analytics.js +74 -18
  79. package/lib/es/index-eShKGO10.js +3757 -0
  80. package/lib/es/index.js +1 -1
  81. package/lib/es/index10.js +804 -236
  82. package/lib/es/index11.js +170 -822
  83. package/lib/es/index12.js +302 -166
  84. package/lib/es/index13.js +81 -313
  85. package/lib/es/index14.js +2350 -82
  86. package/lib/es/index15.js +1229 -2330
  87. package/lib/es/index2.js +10 -11
  88. package/lib/es/index4.js +2 -2
  89. package/lib/es/index7.js +5 -3756
  90. package/lib/es/index8.js +9 -5
  91. package/lib/es/index9.js +263 -7
  92. package/lib/es/insight.js +1 -1
  93. package/lib/es/masters2.js +15 -16
  94. package/lib/es/notification.js +449 -425
  95. package/lib/es/pause-ad.js +174 -208
  96. package/lib/es/points.js +1 -1
  97. package/lib/es/storage.js +2 -2
  98. package/lib/es/useStreamLayerApp2.js +5062 -4028
  99. package/lib/style.css +1 -1
  100. package/package.json +17 -16
  101. package/lib/cjs/index-DSi8Qgfs.js +0 -1
  102. package/lib/cjs/index16.js +0 -5
  103. package/lib/cjs/vast-client.min.js +0 -1
  104. package/lib/classic/cjs/index-DSi8Qgfs.js +0 -1
  105. package/lib/classic/cjs/index13.js +0 -4
  106. package/lib/classic/cjs/vast-client.min.js +0 -1
  107. package/lib/classic/es/index-DSi8Qgfs.js +0 -65
  108. package/lib/classic/es/index13.js +0 -835
  109. package/lib/classic/es/vast-client.min.js +0 -1060
  110. package/lib/es/index-DSi8Qgfs.js +0 -65
  111. package/lib/es/index16.js +0 -1254
  112. package/lib/es/vast-client.min.js +0 -1060
@@ -1,270 +1,236 @@
1
- import { jsx as l, jsxs as D } from "react/jsx-runtime";
2
- import { h as F } from "./index8.js";
3
- import { s as v, c as V, u as M } from "./sl-types.js";
4
- import { d as N } from "./index15.js";
5
- import { useRef as x, useCallback as L, useState as U, useEffect as k, Component as j } from "react";
6
- import { c as q, e as S } from "./index3.js";
7
- import { _ as $ } from "./vast-client.min.js";
8
- import { i as z } from "./index-DSi8Qgfs.js";
9
- import { B as O, z as G } from "./hooks-B0Qttldg.js";
10
- const Q = {}, W = new $(), w = z(Q), E = q("ui:gam-static"), B = (e) => new Promise((s, t) => {
11
- const n = new Image();
12
- n.onload = () => s(e), n.onerror = () => t(), n.src = e;
13
- }), _ = () => {
14
- const e = x(0);
15
- return [L(async (s) => {
16
- var t, n, r, u, c, a, h, i, y, P, A;
17
- if ((t = w.get()[s]) != null && t.imageSrc)
18
- return { success: !0 };
19
- const f = Date.now();
20
- e.current = f, w.setKey(s, { id: "", url: s });
21
- try {
22
- S.emit("exposedPauseAd", {
23
- action: "load",
24
- payload: {}
25
- });
26
- const p = await W.get(s);
27
- if (E.debug(p, "parsedVAST"), e.current === f && w.get()[s].url) {
28
- const o = p.ads.find((m) => m.creatives.length > 0);
29
- if (o) {
30
- E.debug(o, "validAd");
31
- const m = o.creatives.find((d) => d.type === "nonlinear");
32
- if (m) {
33
- E.debug(m, "nonlinear");
34
- const d = (r = (n = m.variations) == null ? void 0 : n[0]) == null ? void 0 : r.staticResource, I = (c = (u = m.variations) == null ? void 0 : u[0]) == null ? void 0 : c.nonlinearClickThroughURLTemplate;
35
- if (d)
36
- return await B(d), w.setKey(s, {
37
- id: o.id || "",
38
- url: s,
39
- imageSrc: d,
40
- adUrl: I
41
- }), S.emit("exposedPauseAd", {
42
- action: "loaded",
43
- payload: {
44
- id: o.id || ""
45
- }
46
- }), { success: !0 };
47
- }
48
- const g = o.creatives.find((d) => d.type === "companion");
49
- E.debug(g, "companion");
50
- const T = (y = (i = (h = (a = g == null ? void 0 : g.variations) == null ? void 0 : a[0]) == null ? void 0 : h.staticResources) == null ? void 0 : i[0]) == null ? void 0 : y.url, C = (A = (P = g == null ? void 0 : g.variations) == null ? void 0 : P[0]) == null ? void 0 : A.companionClickThroughURLTemplate;
51
- if (T)
52
- return await B(T), w.setKey(s, {
53
- id: o.id || "",
54
- url: s,
55
- imageSrc: T,
56
- adUrl: C
57
- }), S.emit("exposedPauseAd", {
58
- action: "loaded",
59
- payload: {
60
- id: o.id || ""
61
- }
62
- }), { success: !0 };
63
- }
64
- }
65
- } catch (p) {
66
- console.error("Error parsing VAST", p);
67
- }
68
- return { success: !1 };
69
- }, []), w];
70
- }, H = /* @__PURE__ */ v("div")({
1
+ import { jsx as s, jsxs as w } from "react/jsx-runtime";
2
+ import { h as N } from "./index7.js";
3
+ import { s as d, u as q, c as V } from "./sl-types.js";
4
+ import { d as j } from "./index14.js";
5
+ import { useState as B, useRef as b, useCallback as _, useEffect as c, Component as z } from "react";
6
+ import { e as E } from "./index3.js";
7
+ import { B as K, z as O } from "./hooks-B0Qttldg.js";
8
+ const G = /* @__PURE__ */ d("div")({
71
9
  name: "PauseAdOverlay",
72
10
  class: "pw9gih8",
73
11
  propsAsIs: !1
74
- }), J = /* @__PURE__ */ v("div")({
12
+ }), W = /* @__PURE__ */ d("div")({
75
13
  name: "PauseAdContent",
76
14
  class: "p8lpomy",
77
15
  propsAsIs: !1
78
- }), X = /* @__PURE__ */ v("div")({
16
+ }), X = /* @__PURE__ */ d("div")({
79
17
  name: "PauseAdTopLeft",
80
18
  class: "pv7u167",
81
19
  propsAsIs: !1
82
- }), Y = /* @__PURE__ */ v("h2")({
20
+ }), H = /* @__PURE__ */ d("h2")({
83
21
  name: "PauseAdTitle",
84
22
  class: "p1kh2yb0",
85
23
  propsAsIs: !1
86
- }), Z = /* @__PURE__ */ v("p")({
24
+ }), J = /* @__PURE__ */ d("p")({
87
25
  name: "PauseAdCaption",
88
26
  class: "pl8f94x",
89
27
  propsAsIs: !1
90
- }), ee = /* @__PURE__ */ v("div")({
28
+ }), Q = /* @__PURE__ */ d("div")({
91
29
  name: "PauseAdBottomLeft",
92
30
  class: "p1m6zmrt",
93
31
  propsAsIs: !1
94
- }), se = /* @__PURE__ */ v("button")({
32
+ }), Y = /* @__PURE__ */ d("button")({
95
33
  name: "PauseAdPlayButton",
96
34
  class: "pm3vwfa",
97
35
  propsAsIs: !1
98
- }), re = /* @__PURE__ */ v("div")({
36
+ }), Z = /* @__PURE__ */ d("div")({
99
37
  name: "PauseAdSidebarGradient",
100
38
  class: "p1tibuhw",
101
39
  propsAsIs: !1
102
- }), te = /* @__PURE__ */ v("div")({
40
+ }), $ = /* @__PURE__ */ d("div")({
103
41
  name: "PauseAdSidebar",
104
42
  class: "ptqqrqd",
105
43
  propsAsIs: !1
106
- }), oe = /* @__PURE__ */ v("span")({
44
+ }), ee = /* @__PURE__ */ d("span")({
107
45
  name: "PauseAdTitleDescription",
108
46
  class: "p14estxv",
109
47
  propsAsIs: !1
110
- }), K = /* @__PURE__ */ v("img")({
48
+ }), F = /* @__PURE__ */ d("img")({
111
49
  name: "ExternalAdContainer",
112
50
  class: "e1dpvfl1",
113
51
  propsAsIs: !1
114
- }), ne = ({ vastUrl: e, isDesktop: s }) => {
115
- var t;
116
- const [, n] = _(), r = M(n, { keys: [e] });
117
- return k(() => {
118
- r && r[e] && r[e].imageSrc && r[e].id && S.emit("exposedPauseAd", {
119
- action: "rendered",
120
- payload: {
121
- id: r[e].id
122
- }
123
- });
124
- }, [r, e]), (t = r == null ? void 0 : r[e]) != null && t.imageSrc ? !r[e].adUrl || !s ? /* @__PURE__ */ l(K, { src: r[e].imageSrc }) : /* @__PURE__ */ l(
125
- "a",
126
- {
127
- onClick: () => {
128
- S.emit("exposedPauseAd", {
129
- action: "navigated",
130
- payload: {
131
- id: r[e].id
132
- }
133
- });
134
- },
135
- href: r[e].adUrl,
136
- target: "_blank",
137
- rel: "noopener noreferrer",
138
- children: /* @__PURE__ */ l(K, { src: r[e].imageSrc })
52
+ }), re = ({
53
+ vastUrl: i,
54
+ isDesktop: n,
55
+ content: e
56
+ }) => (c(() => {
57
+ e.imageSrc && e.id && E.emit("exposedPauseAd", {
58
+ action: "rendered",
59
+ payload: {
60
+ id: e.id,
61
+ parentId: e.parentId
139
62
  }
140
- ) : null;
141
- }, ae = ({ isClosing: e, title: s, caption: t, onPlay: n, onClose: r, vastUrl: u, options: c, isDesktop: a }) => {
142
- const h = (c == null ? void 0 : c.showPauseButton) ?? !0, { ref: i, focusSelf: y } = N.useFocusable({
63
+ });
64
+ }, [e, i]), e != null && e.imageSrc ? !e.adUrl || !n ? /* @__PURE__ */ s(F, { src: e.imageSrc }) : /* @__PURE__ */ s(
65
+ "a",
66
+ {
67
+ onClick: () => {
68
+ E.emit("exposedPauseAd", {
69
+ action: "navigated",
70
+ payload: {
71
+ id: e.id,
72
+ parentId: e.parentId
73
+ }
74
+ });
75
+ },
76
+ href: e.adUrl,
77
+ target: "_blank",
78
+ rel: "noopener noreferrer",
79
+ children: /* @__PURE__ */ s(F, { src: e.imageSrc })
80
+ }
81
+ ) : null), te = ({ isClosing: i, content: n, externalPauseAdStore: e, title: I, caption: v, onPlay: u, onClose: a, vastUrl: t, options: f, isDesktop: l }) => {
82
+ const C = (f == null ? void 0 : f.showPauseButton) ?? !0, { ref: p, focusSelf: g } = j.useFocusable({
143
83
  focusKey: "sl-pause-ad-play",
144
- onEnterRelease: n,
84
+ onEnterRelease: u,
145
85
  isFocusBoundary: !0,
146
86
  forceFocus: !0
147
87
  });
148
- return k(() => {
149
- i.current && y();
150
- }, [i, y]), k(() => {
151
- if (!r)
88
+ return c(() => () => {
89
+ e.revalidate();
90
+ }, [e]), c(() => {
91
+ p.current && g();
92
+ }, [p, g]), c(() => {
93
+ if (!a)
152
94
  return () => {
153
95
  };
154
- const P = (A) => {
155
- const f = A.keyCode;
156
- if (f === 461 || f === 10009 || f === 27 || f === 8) {
157
- A.preventDefault(), A.stopPropagation(), A.stopImmediatePropagation(), r();
96
+ const T = (A) => {
97
+ const o = A.keyCode;
98
+ if (o === 461 || o === 10009 || o === 27 || o === 8) {
99
+ A.preventDefault(), A.stopPropagation(), A.stopImmediatePropagation(), a();
158
100
  return;
159
101
  }
160
102
  };
161
- return window.addEventListener("keydown", P, { capture: !0 }), () => window.removeEventListener("keydown", P, { capture: !0 });
162
- }, [r]), /* @__PURE__ */ l(H, { className: V("SL_PauseAdOverlay", e && "pause-ad-closing"), children: /* @__PURE__ */ D(J, { children: [
163
- /* @__PURE__ */ D(X, { children: [
164
- /* @__PURE__ */ l(Y, { children: s }),
165
- /* @__PURE__ */ l(Z, { children: t })
103
+ return window.addEventListener("keydown", T, { capture: !0 }), () => window.removeEventListener("keydown", T, { capture: !0 });
104
+ }, [a]), /* @__PURE__ */ s(G, { className: V("SL_PauseAdOverlay", i && "pause-ad-closing"), children: /* @__PURE__ */ w(W, { children: [
105
+ /* @__PURE__ */ w(X, { children: [
106
+ /* @__PURE__ */ s(H, { children: I }),
107
+ /* @__PURE__ */ s(J, { children: v })
166
108
  ] }),
167
- h && /* @__PURE__ */ l(ee, { children: /* @__PURE__ */ l(
168
- se,
109
+ C && /* @__PURE__ */ s(Q, { children: /* @__PURE__ */ s(
110
+ Y,
169
111
  {
170
- ref: i,
171
- onClick: n,
172
- onMouseEnter: () => i.current.focus(),
112
+ ref: p,
113
+ onClick: u,
114
+ onMouseEnter: () => p.current.focus(),
173
115
  "aria-label": "Resume playback"
174
116
  }
175
117
  ) }),
176
- /* @__PURE__ */ l(re, { className: "SL_PauseAdSidebar", children: /* @__PURE__ */ D(te, { children: [
177
- u && /* @__PURE__ */ l(ne, { isDesktop: a, vastUrl: u }),
178
- /* @__PURE__ */ l(oe, { children: "ADVERTISEMENT" })
118
+ /* @__PURE__ */ s(Z, { className: "SL_PauseAdSidebar", children: /* @__PURE__ */ w($, { children: [
119
+ t && /* @__PURE__ */ s(re, { content: n, isDesktop: l, vastUrl: t }),
120
+ /* @__PURE__ */ s(ee, { children: "ADVERTISEMENT" })
179
121
  ] }) })
180
122
  ] }) });
181
- }, ie = ({ showPauseAd: e, vastUrls: s, title: t, caption: n, sdk: r, onClose: u, onRender: c, options: a, isDesktop: h }) => {
182
- const i = (a == null ? void 0 : a.pauseAdDelay) ?? 5e3, [y, P] = U(!1), [A, f] = U(!1), p = x(), o = s == null ? void 0 : s[0].url, m = x(o), g = x("");
183
- m.current = o;
184
- const [T, C] = _(), d = L(() => {
185
- u && (g.current = m.current, S.emit("exposedPauseAd", {
186
- action: "closed",
187
- payload: {}
188
- }), u());
189
- }, [u]), I = L(() => {
190
- r.controlVideoPlayer({ play: !0 });
191
- }, [r]);
192
- return k(() => {
193
- if (e && o) {
194
- S.emit("exposedPauseAd", {
123
+ }, se = ({ showPauseAd: i, vastUrls: n, title: e, caption: I, sdk: v, onClose: u, onRender: a, options: t, isDesktop: f }) => {
124
+ const l = (t == null ? void 0 : t.pauseAdDelay) ?? 0, C = (t == null ? void 0 : t.pauseAdRefetchInterval) ?? 1e3 * 60 * 50, [p, g] = B(!1), [T, A] = B(!1), o = b(), h = n == null ? void 0 : n[0].url, P = b(h), y = b(""), S = b("");
125
+ P.current = h;
126
+ const [m, R] = v.advertisement.getExternalPauseAd(h, {
127
+ refetchInterval: C,
128
+ $enabled: l === 0 || !!i,
129
+ prefetch: l === 0 && C > 0
130
+ }), k = q(m), x = _(() => {
131
+ if (u) {
132
+ S.current = P.current;
133
+ const r = m.get().data;
134
+ E.emit("exposedPauseAd", {
135
+ action: "closed",
136
+ payload: (r == null ? void 0 : r.url) === S.current ? {
137
+ id: r == null ? void 0 : r.id,
138
+ parentId: r == null ? void 0 : r.parentId
139
+ } : {}
140
+ }), u();
141
+ }
142
+ }, [u, m]), M = _(() => {
143
+ v.controlVideoPlayer({ play: !0 });
144
+ }, [v]);
145
+ return c(() => {
146
+ R === P.current && k.error && (console.log("error", k.error), clearTimeout(o.current), x == null || x());
147
+ }, [k, x, R]), c(() => {
148
+ if (i && h) {
149
+ y.current = P.current, S.current = "";
150
+ const r = m.get().data;
151
+ E.emit("exposedPauseAd", {
195
152
  action: "enabled",
196
- payload: {}
197
- }), T(o).then((b) => {
198
- m.current === o && (b == null ? void 0 : b.success) !== !0 && (clearTimeout(p.current), d == null || d());
199
- }).catch(() => {
200
- m.current === o && (clearTimeout(p.current), d == null || d());
153
+ payload: (r == null ? void 0 : r.url) === y.current ? {
154
+ id: r == null ? void 0 : r.id,
155
+ parentId: r == null ? void 0 : r.parentId
156
+ } : {}
201
157
  });
202
- const R = () => {
203
- const b = C.get()[m.current];
204
- b != null && b.imageSrc ? (clearTimeout(p.current), f(!1), P(!0)) : p.current = setTimeout(() => {
205
- R();
206
- }, 200);
158
+ const U = () => {
159
+ const L = m.get(), D = L.data;
160
+ (D == null ? void 0 : D.url) === P.current && (!L.loading && D != null && D.imageSrc ? (clearTimeout(o.current), A(!1), g(!0)) : L.loading && (o.current = setTimeout(() => {
161
+ console.log("checkAndAllowRender timeout"), U();
162
+ }, 200)));
207
163
  };
208
- p.current = setTimeout(() => {
209
- R();
210
- }, i);
211
- } else
212
- g.current !== m.current && (g.current = "", S.emit("exposedPauseAd", {
213
- action: "disabled",
214
- payload: {}
215
- })), f(!0), p.current = setTimeout(() => {
216
- P(!1);
164
+ clearTimeout(o.current), o.current = setTimeout(() => {
165
+ U();
166
+ }, l);
167
+ } else {
168
+ if (S.current !== P.current) {
169
+ const r = m.get().data;
170
+ S.current = "", y.current !== "" && (E.emit("exposedPauseAd", {
171
+ action: "disabled",
172
+ payload: y.current === (r == null ? void 0 : r.url) ? {
173
+ id: r == null ? void 0 : r.id,
174
+ parentId: r == null ? void 0 : r.parentId
175
+ } : {}
176
+ }), y.current = "");
177
+ }
178
+ A(!0), o.current = setTimeout(() => {
179
+ g(!1);
217
180
  }, 400);
181
+ }
218
182
  return () => {
219
- p.current && clearTimeout(p.current);
183
+ o.current && clearTimeout(o.current);
220
184
  };
221
- }, [C, T, d, i, e, o]), k(() => {
222
- c == null || c({ rendered: y });
223
- }, [y, c]), k(() => () => {
224
- c == null || c({ rendered: !1 });
225
- }, [c]), y ? /* @__PURE__ */ l(
226
- ae,
185
+ }, [m, x, l, i, h]), c(() => {
186
+ a == null || a({ rendered: p });
187
+ }, [p, a]), c(() => () => {
188
+ a == null || a({ rendered: !1 });
189
+ }, [a]), !p || !k.data ? null : /* @__PURE__ */ s(
190
+ te,
227
191
  {
228
- onClose: d,
229
- isClosing: A,
230
- title: t,
231
- caption: n,
232
- onPlay: I,
233
- vastUrl: o,
234
- options: a,
235
- isDesktop: h
192
+ onClose: x,
193
+ isClosing: T,
194
+ title: e,
195
+ caption: I,
196
+ onPlay: M,
197
+ vastUrl: h,
198
+ options: t,
199
+ isDesktop: f,
200
+ externalPauseAdStore: m,
201
+ content: k.data
236
202
  }
237
- ) : null;
238
- }, le = ({
239
- showPauseAd: e,
240
- pauseAdVastUrl: s,
241
- videoPlayerController: t,
242
- onRenderPauseAd: n,
243
- onClosePauseAd: r,
203
+ );
204
+ }, ne = ({
205
+ showPauseAd: i,
206
+ pauseAdVastUrl: n,
207
+ videoPlayerController: e,
208
+ onRenderPauseAd: I,
209
+ onClosePauseAd: v,
244
210
  children: u,
245
- options: c
211
+ options: a
246
212
  }) => {
247
- const a = O(), h = G(), i = x();
248
- return k(() => a ? (t && (i.current = t, a.addVideoPlayerController(i.current)), () => {
249
- i.current && a.removeVideoPlayerController(i.current);
213
+ const t = K(), f = O(), l = b();
214
+ return c(() => t ? (e && (l.current = e, t.addVideoPlayerController(l.current)), () => {
215
+ l.current && t.removeVideoPlayerController(l.current);
250
216
  }) : () => {
251
- }, [a, t]), a ? /* @__PURE__ */ l("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ D(
252
- F,
217
+ }, [t, e]), t ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ w(
218
+ N,
253
219
  {
254
220
  style: u ? { position: "relative" } : {},
255
- customTheme: h.theme,
256
- themeMode: h.themeMode,
221
+ customTheme: f.theme,
222
+ themeMode: f.themeMode,
257
223
  children: [
258
224
  u,
259
- s && /* @__PURE__ */ l(
260
- ie,
225
+ n && /* @__PURE__ */ s(
226
+ se,
261
227
  {
262
- sdk: a,
263
- showPauseAd: e,
264
- vastUrls: s,
265
- onClose: r,
266
- onRender: n,
267
- options: c,
228
+ sdk: t,
229
+ showPauseAd: i,
230
+ vastUrls: n,
231
+ onClose: v,
232
+ onRender: I,
233
+ options: a,
268
234
  isDesktop: !0
269
235
  }
270
236
  )
@@ -272,20 +238,20 @@ const Q = {}, W = new $(), w = z(Q), E = q("ui:gam-static"), B = (e) => new Prom
272
238
  }
273
239
  ) }) : u;
274
240
  };
275
- class Ae extends j {
276
- constructor(s) {
277
- super(s), this.state = { hasError: !1 };
241
+ class pe extends z {
242
+ constructor(n) {
243
+ super(n), this.state = { hasError: !1 };
278
244
  }
279
245
  static getDerivedStateFromError() {
280
246
  return { hasError: !0 };
281
247
  }
282
- componentDidCatch(s, t) {
283
- console.error(s, t.componentStack);
248
+ componentDidCatch(n, e) {
249
+ console.error(n, e.componentStack);
284
250
  }
285
251
  render() {
286
- return this.state.hasError ? this.props.children : /* @__PURE__ */ l(le, { ...this.props });
252
+ return this.state.hasError ? this.props.children : /* @__PURE__ */ s(ne, { ...this.props });
287
253
  }
288
254
  }
289
255
  export {
290
- Ae as StreamLayerPauseAd
256
+ pe as StreamLayerPauseAd
291
257
  };
package/lib/es/points.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
- import { h as u } from "./index8.js";
2
+ import { h as u } from "./index7.js";
3
3
  import { useState as d, useEffect as f } from "react";
4
4
  import { s as o, u as y } from "./sl-types.js";
5
5
  import { F as c, e as a } from "./index3.js";
package/lib/es/storage.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as o } from "react/jsx-runtime";
2
2
  import { s as e } from "./sl-types.js";
3
- import { e as A } from "./index12.js";
4
- import { e as Q, i as l } from "./index9.js";
3
+ import { e as A } from "./index11.js";
4
+ import { e as Q, i as l } from "./index8.js";
5
5
  import { B as m } from "./index6.js";
6
6
  import { P as n, Q as r, a as h } from "./useStreamLayerApp2.js";
7
7
  const S = /* @__PURE__ */ e("div")({