@streamlayer/react 1.1.0 → 1.1.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.
- package/lib/app/advertisement.d.ts +6 -1
- package/lib/cjs/advertisement.js +1 -0
- package/lib/cjs/app.js +1 -1
- package/lib/cjs/index2.js +43 -40
- package/lib/cjs/masters2.js +4 -4
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +7 -7
- package/lib/dist/cjs/masters.js +48 -45
- package/lib/dist/es/masters.js +2155 -2133
- package/lib/dist/index.d.ts +7 -2
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +302 -0
- package/lib/es/app.js +16 -15
- package/lib/es/index2.js +2079 -2056
- package/lib/es/masters2.js +1 -1
- package/lib/es/points.js +9 -9
- package/lib/es/useStreamLayerApp2.js +13 -11
- package/lib/style.css +1 -1
- package/package.json +13 -13
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as R, useRef as w, useMemo as D } from "react";
|
|
3
|
+
import { a as U, s as l, c as q, K as F, u as v, L as K, e as O } from "./index2.js";
|
|
4
|
+
import { F as z, u as H, i as W } from "./app.js";
|
|
5
|
+
import { P as c, a as m, S as J } from "./useStreamLayerApp2.js";
|
|
6
|
+
const Q = /* @__PURE__ */ l("div")({
|
|
7
|
+
name: "Container",
|
|
8
|
+
class: "c5b6wdg",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), V = "a1rlj479", X = "s35f1di", Y = "sj4471g", Z = "b12050d8", oo = "b1d5ybek", no = (o) => o === "left" || o === "right" ? X : Z, eo = (o) => o === "left" || o === "right" ? Y : oo, so = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", G = ({
|
|
11
|
+
children: o,
|
|
12
|
+
style: a,
|
|
13
|
+
className: i,
|
|
14
|
+
enabled: e = !0,
|
|
15
|
+
hiding: s,
|
|
16
|
+
direction: r = "left",
|
|
17
|
+
onAnimationEnd: t
|
|
18
|
+
}) => /* @__PURE__ */ n(Q, {
|
|
19
|
+
style: a,
|
|
20
|
+
className: U(i, V, so(r), e && !s && no(r), e && s && eo(r)),
|
|
21
|
+
onAnimationEnd: t,
|
|
22
|
+
children: o
|
|
23
|
+
}), lo = /* @__PURE__ */ l("div")({
|
|
24
|
+
name: "BannerContainer",
|
|
25
|
+
class: "bipmch2",
|
|
26
|
+
propsAsIs: !1
|
|
27
|
+
}), ao = /* @__PURE__ */ l("img")({
|
|
28
|
+
name: "BannerImg",
|
|
29
|
+
class: "bpkcihp",
|
|
30
|
+
propsAsIs: !1
|
|
31
|
+
}), io = ({
|
|
32
|
+
promotion: o,
|
|
33
|
+
hiding: a,
|
|
34
|
+
direction: i = "bottom"
|
|
35
|
+
}) => {
|
|
36
|
+
var e;
|
|
37
|
+
return (e = o.additionalBanner) != null && e.imageUrl ? /* @__PURE__ */ n(G, {
|
|
38
|
+
direction: i,
|
|
39
|
+
hiding: a,
|
|
40
|
+
children: /* @__PURE__ */ n(lo, {
|
|
41
|
+
children: /* @__PURE__ */ n(ao, {
|
|
42
|
+
src: o.additionalBanner.imageUrl,
|
|
43
|
+
alt: "promo"
|
|
44
|
+
})
|
|
45
|
+
})
|
|
46
|
+
}) : null;
|
|
47
|
+
}, ro = /* @__PURE__ */ l("div")({
|
|
48
|
+
name: "Header",
|
|
49
|
+
class: "hkzhq2w",
|
|
50
|
+
propsAsIs: !1
|
|
51
|
+
}), to = /* @__PURE__ */ l("div")({
|
|
52
|
+
name: "HeaderContent",
|
|
53
|
+
class: "hmgz5i",
|
|
54
|
+
propsAsIs: !1
|
|
55
|
+
}), j = /* @__PURE__ */ l("img")({
|
|
56
|
+
name: "SponsorLogo",
|
|
57
|
+
class: "syxi3jt",
|
|
58
|
+
propsAsIs: !1
|
|
59
|
+
}), co = /* @__PURE__ */ l("div")({
|
|
60
|
+
name: "SponsorName",
|
|
61
|
+
class: "s149e3gp",
|
|
62
|
+
propsAsIs: !1
|
|
63
|
+
}), po = /* @__PURE__ */ l("div")({
|
|
64
|
+
name: "PromoOverlay",
|
|
65
|
+
class: "p10toh7",
|
|
66
|
+
propsAsIs: !1
|
|
67
|
+
}), mo = /* @__PURE__ */ l("div")({
|
|
68
|
+
name: "Media",
|
|
69
|
+
class: "m1jyea6t",
|
|
70
|
+
propsAsIs: !1
|
|
71
|
+
}), uo = /* @__PURE__ */ l("div")({
|
|
72
|
+
name: "Text",
|
|
73
|
+
class: "tzpfa3h",
|
|
74
|
+
propsAsIs: !1
|
|
75
|
+
}), vo = /* @__PURE__ */ l("div")({
|
|
76
|
+
name: "Description",
|
|
77
|
+
class: "d1crmu01",
|
|
78
|
+
propsAsIs: !1
|
|
79
|
+
}), ho = /* @__PURE__ */ l("div")({
|
|
80
|
+
name: "SponsorText",
|
|
81
|
+
class: "s1l37r8s",
|
|
82
|
+
propsAsIs: !1
|
|
83
|
+
}), go = /* @__PURE__ */ l("div")({
|
|
84
|
+
name: "ADLogo",
|
|
85
|
+
class: "a1nmch9k",
|
|
86
|
+
propsAsIs: !1
|
|
87
|
+
}), bo = /* @__PURE__ */ l("span")({
|
|
88
|
+
name: "SponsoredText",
|
|
89
|
+
class: "s1er0ljd",
|
|
90
|
+
propsAsIs: !1
|
|
91
|
+
}), Ao = /* @__PURE__ */ l("div")({
|
|
92
|
+
name: "CloseIconWrap",
|
|
93
|
+
class: "cydopmr",
|
|
94
|
+
propsAsIs: !1
|
|
95
|
+
}), yo = () => q, Io = /* @__PURE__ */ l(yo())({
|
|
96
|
+
name: "CloseIcon",
|
|
97
|
+
class: "c1w6nt04",
|
|
98
|
+
propsAsIs: !0
|
|
99
|
+
}), fo = /* @__PURE__ */ l("div")({
|
|
100
|
+
name: "Content",
|
|
101
|
+
class: "c1evcmtq",
|
|
102
|
+
propsAsIs: !1
|
|
103
|
+
}), $o = /* @__PURE__ */ l("div")({
|
|
104
|
+
name: "ActionBtnWrap",
|
|
105
|
+
class: "awodx0x",
|
|
106
|
+
propsAsIs: !1
|
|
107
|
+
}), Mo = /* @__PURE__ */ l("a")({
|
|
108
|
+
name: "ActionButton",
|
|
109
|
+
class: "a1q3n6oi",
|
|
110
|
+
propsAsIs: !1
|
|
111
|
+
}), So = /* @__PURE__ */ l("img")({
|
|
112
|
+
name: "PromoImg",
|
|
113
|
+
class: "p8d4xfk",
|
|
114
|
+
propsAsIs: !1
|
|
115
|
+
}), ko = /* @__PURE__ */ l("div")({
|
|
116
|
+
name: "Title",
|
|
117
|
+
class: "tt6oobh",
|
|
118
|
+
propsAsIs: !1
|
|
119
|
+
}), P = ({
|
|
120
|
+
promotion: o,
|
|
121
|
+
onClose: a,
|
|
122
|
+
inSidebar: i
|
|
123
|
+
}) => {
|
|
124
|
+
var e, s, r, t, p, h, g, b, A, y, I, f, $, M, S, k, B, C, E, x, L, N, T, _;
|
|
125
|
+
const u = o.type === c.INGAME_IAB11_LBAR || o.type === c.INGAME_IAB11;
|
|
126
|
+
return /* @__PURE__ */ d(po, { className: "PromoOverlay", style: { ...i ? {} : { backgroundColor: "#1E3344" } }, children: [
|
|
127
|
+
/* @__PURE__ */ d(ro, { children: [
|
|
128
|
+
/* @__PURE__ */ d(to, { children: [
|
|
129
|
+
((e = o.sponsor) == null ? void 0 : e.logo) && o.logoMode === m.LEFT && /* @__PURE__ */ n(j, { src: (s = o.sponsor) == null ? void 0 : s.logo, alt: "promo" }),
|
|
130
|
+
/* @__PURE__ */ d(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
style: {
|
|
134
|
+
paddingLeft: (r = o.sponsor) != null && r.logo && o.logoMode === m.LEFT ? "0px" : "8px"
|
|
135
|
+
},
|
|
136
|
+
children: [
|
|
137
|
+
((t = o.sponsor) == null ? void 0 : t.logo) && o.logoMode === m.LEFT && /* @__PURE__ */ n(co, { children: (p = o.sponsor) == null ? void 0 : p.name }),
|
|
138
|
+
/* @__PURE__ */ d(ho, { children: [
|
|
139
|
+
/* @__PURE__ */ n(go, { children: "AD" }),
|
|
140
|
+
/* @__PURE__ */ n(bo, { children: "SPONSORED" })
|
|
141
|
+
] })
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ n(Ao, { onClick: a, children: /* @__PURE__ */ n(Io, { name: "icon-cross" }) })
|
|
147
|
+
] }),
|
|
148
|
+
/* @__PURE__ */ d(mo, { children: [
|
|
149
|
+
((h = o.sponsor) == null ? void 0 : h.logo) && o.logoMode === m.CENTER && /* @__PURE__ */ n(j, { src: (g = o.sponsor) == null ? void 0 : g.logo, alt: "promo" }),
|
|
150
|
+
/* @__PURE__ */ d(fo, { children: [
|
|
151
|
+
(A = (b = o.banner) == null ? void 0 : b.video) != null && A.url ? /* @__PURE__ */ n(
|
|
152
|
+
F,
|
|
153
|
+
{
|
|
154
|
+
source: (I = (y = o.banner) == null ? void 0 : y.video) == null ? void 0 : I.url,
|
|
155
|
+
poster: ($ = (f = o.banner) == null ? void 0 : f.video) == null ? void 0 : $.thumbnailUrl,
|
|
156
|
+
aspectRatio: u ? "1/1" : "16/9"
|
|
157
|
+
}
|
|
158
|
+
) : (M = o.banner) != null && M.imageUrl ? /* @__PURE__ */ n(
|
|
159
|
+
So,
|
|
160
|
+
{
|
|
161
|
+
style: u ? { width: "268px", height: "268px" } : {},
|
|
162
|
+
src: (S = o.banner) == null ? void 0 : S.imageUrl,
|
|
163
|
+
alt: "promo"
|
|
164
|
+
}
|
|
165
|
+
) : null,
|
|
166
|
+
!u && /* @__PURE__ */ d(uo, { children: [
|
|
167
|
+
/* @__PURE__ */ n(ko, { children: (k = o.banner) == null ? void 0 : k.title }),
|
|
168
|
+
/* @__PURE__ */ n(vo, { children: (B = o.banner) == null ? void 0 : B.body })
|
|
169
|
+
] })
|
|
170
|
+
] }),
|
|
171
|
+
/* @__PURE__ */ n($o, { children: /* @__PURE__ */ n(
|
|
172
|
+
Mo,
|
|
173
|
+
{
|
|
174
|
+
href: (C = o.banner) == null ? void 0 : C.url,
|
|
175
|
+
style: {
|
|
176
|
+
backgroundColor: ((x = (E = o.banner) == null ? void 0 : E.ctaButton) == null ? void 0 : x.color) || "#009dc4",
|
|
177
|
+
color: ((N = (L = o.banner) == null ? void 0 : L.ctaButton) == null ? void 0 : N.textColor) || "#fff"
|
|
178
|
+
},
|
|
179
|
+
target: "_blank",
|
|
180
|
+
children: (_ = (T = o.banner) == null ? void 0 : T.ctaButton) == null ? void 0 : _.label
|
|
181
|
+
}
|
|
182
|
+
) })
|
|
183
|
+
] })
|
|
184
|
+
] });
|
|
185
|
+
}, Bo = /* @__PURE__ */ l("div")({
|
|
186
|
+
name: "SidebarContainer",
|
|
187
|
+
class: "s1abskp8",
|
|
188
|
+
propsAsIs: !1
|
|
189
|
+
}), Co = ({
|
|
190
|
+
children: o,
|
|
191
|
+
direction: a,
|
|
192
|
+
style: i,
|
|
193
|
+
className: e,
|
|
194
|
+
hiding: s
|
|
195
|
+
}) => /* @__PURE__ */ n(G, {
|
|
196
|
+
direction: a,
|
|
197
|
+
style: i,
|
|
198
|
+
hiding: s,
|
|
199
|
+
className: e,
|
|
200
|
+
children: /* @__PURE__ */ n(Bo, {
|
|
201
|
+
children: o
|
|
202
|
+
})
|
|
203
|
+
}), Eo = (o) => (o == null ? void 0 : o.type) === c.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === c.INGAME_IAB21_LBAR, xo = (o) => (o == null ? void 0 : o.type) === c.INGAME_IAB11 || (o == null ? void 0 : o.type) === c.INGAME_IAB21, Lo = ({ advertisement: o, layoutMode: a = "side-by-side", sidebar: i, banner: e }) => {
|
|
204
|
+
const s = v(o.data);
|
|
205
|
+
return !s.data && s.loading ? null : s.error ? /* @__PURE__ */ d("div", { children: [
|
|
206
|
+
"error ",
|
|
207
|
+
/* @__PURE__ */ n("button", { onClick: o.close, children: "close" })
|
|
208
|
+
] }) : s.data ? !i && !e && xo(s.data) ? /* @__PURE__ */ n(P, { promotion: s.data, onClose: o.close }) : i && Eo(s.data) ? /* @__PURE__ */ n(Co, { direction: i, hiding: o.hiding, children: /* @__PURE__ */ n(P, { promotion: s.data, onClose: o.close, inSidebar: !0 }) }) : e ? /* @__PURE__ */ n(io, { hiding: o.hiding, promotion: s.data, direction: e }) : null : /* @__PURE__ */ d("div", { children: [
|
|
209
|
+
"empty promo ",
|
|
210
|
+
/* @__PURE__ */ n("button", { onClick: o.close, children: "close" })
|
|
211
|
+
] });
|
|
212
|
+
}, No = /* @__PURE__ */ l("div")({
|
|
213
|
+
name: "AdvertisementUIWrap",
|
|
214
|
+
class: "aa6pjif",
|
|
215
|
+
propsAsIs: !1
|
|
216
|
+
}), To = (o) => {
|
|
217
|
+
const a = o.target;
|
|
218
|
+
a instanceof HTMLAnchorElement && a.target === "_blank" && a.getAttribute("data-analytics") === "web-link" && O.emit("poll", {
|
|
219
|
+
action: "navigated",
|
|
220
|
+
payload: {}
|
|
221
|
+
});
|
|
222
|
+
}, _o = ({
|
|
223
|
+
gamification: o,
|
|
224
|
+
layoutMode: a,
|
|
225
|
+
sidebar: i,
|
|
226
|
+
banner: e
|
|
227
|
+
}) => {
|
|
228
|
+
const s = w(null), r = v(o.advertisement.$list), t = D(
|
|
229
|
+
() => o.advertisement.getActiveAdvertisement(),
|
|
230
|
+
// fire getActiveNotification when notifications were updated
|
|
231
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
232
|
+
[r]
|
|
233
|
+
);
|
|
234
|
+
return K(s, {
|
|
235
|
+
enabled: !!t,
|
|
236
|
+
event: "click",
|
|
237
|
+
listener: To
|
|
238
|
+
}), t ? /* @__PURE__ */ n(No, {
|
|
239
|
+
ref: s,
|
|
240
|
+
style: {
|
|
241
|
+
height: !e && !i ? "auto" : "100%"
|
|
242
|
+
},
|
|
243
|
+
children: /* @__PURE__ */ n(Lo, {
|
|
244
|
+
sidebar: i,
|
|
245
|
+
banner: e,
|
|
246
|
+
advertisement: t,
|
|
247
|
+
layoutMode: a
|
|
248
|
+
})
|
|
249
|
+
}) : null;
|
|
250
|
+
}, jo = ({
|
|
251
|
+
sdk: o,
|
|
252
|
+
sidebar: a,
|
|
253
|
+
banner: i,
|
|
254
|
+
event: e,
|
|
255
|
+
layoutMode: s
|
|
256
|
+
}) => {
|
|
257
|
+
const {
|
|
258
|
+
deactivate: r
|
|
259
|
+
} = z(o);
|
|
260
|
+
R(() => {
|
|
261
|
+
e ? o.createEventSession(e) : r();
|
|
262
|
+
}, [e, r, o]);
|
|
263
|
+
const t = v(o.featuresList.getStore());
|
|
264
|
+
if (a && i)
|
|
265
|
+
return /* @__PURE__ */ n("div", {
|
|
266
|
+
style: {
|
|
267
|
+
color: "red"
|
|
268
|
+
},
|
|
269
|
+
children: "define either sidebar or banner, not both."
|
|
270
|
+
});
|
|
271
|
+
if (!a && !i && s)
|
|
272
|
+
return /* @__PURE__ */ n("div", {
|
|
273
|
+
style: {
|
|
274
|
+
color: "red"
|
|
275
|
+
},
|
|
276
|
+
children: "layoutMode property unavailable for the overlay mode."
|
|
277
|
+
});
|
|
278
|
+
if (!t)
|
|
279
|
+
return null;
|
|
280
|
+
const p = o.getFeature(J.GAMES);
|
|
281
|
+
return p ? /* @__PURE__ */ n(_o, {
|
|
282
|
+
gamification: p,
|
|
283
|
+
sidebar: a,
|
|
284
|
+
banner: i,
|
|
285
|
+
layoutMode: s
|
|
286
|
+
}) : null;
|
|
287
|
+
}, Uo = ({ event: o, sidebar: a, banner: i }) => {
|
|
288
|
+
const e = H();
|
|
289
|
+
return e ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n(W, { children: /* @__PURE__ */ n(
|
|
290
|
+
jo,
|
|
291
|
+
{
|
|
292
|
+
sdk: e,
|
|
293
|
+
event: o,
|
|
294
|
+
sidebar: a,
|
|
295
|
+
banner: i,
|
|
296
|
+
layoutMode: "side-by-side"
|
|
297
|
+
}
|
|
298
|
+
) }) }) : null;
|
|
299
|
+
};
|
|
300
|
+
export {
|
|
301
|
+
Uo as StreamLayerSDKAdvertisement
|
|
302
|
+
};
|
package/lib/es/app.js
CHANGED
|
@@ -2,9 +2,9 @@ var ge = Object.defineProperty;
|
|
|
2
2
|
var me = (e, s, n) => s in e ? ge(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
|
3
3
|
var g = (e, s, n) => me(e, typeof s != "symbol" ? s + "" : s, n);
|
|
4
4
|
import { jsx as t, jsxs as m, Fragment as L } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { a4 as V, u, F as fe, s as h, T as re, i as ke, x as ye, b as Ne, N as be, k as Se, M as Ie, g as Ee, h as Ae, C as we, j as Ce, O as ae, m as P, l as $e, n as Le, o as De, p as le, q as Te, r as xe, t as Oe, v as M, w as Re, y as de, z as U, A as Ve, B as Pe, I as Q, c as ce, E as Qe, G as _e, H as qe, e as Fe, J as x, P as G, Q as Ke, R as Me, U as Ue, a as ze, W as Be, X as We, L as _, $ as Ge, f as q, a0 as He, a1 as je, Y as Xe, Z as Ye, _ as Ze, a5 as Je, a2 as pe, a3 as H } from "./index2.js";
|
|
6
6
|
import { createContext as es, useContext as z, useRef as $, useState as E, useEffect as k, useTransition as ss, lazy as ns, useMemo as C, Suspense as ts, forwardRef as os, useLayoutEffect as is, useCallback as R } from "react";
|
|
7
|
-
import { C as
|
|
7
|
+
import { C as w, c as j, Q as O, S as D } from "./useStreamLayerApp2.js";
|
|
8
8
|
window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
|
|
9
9
|
function rs(e) {
|
|
10
10
|
return e instanceof DOMException && // everything except Firefox
|
|
@@ -46,7 +46,7 @@ var X;
|
|
|
46
46
|
(function(e) {
|
|
47
47
|
e.Init = "init", e.Ready = "ready", e.Connecting = "connecting", e.Connected = "connected", e.Disconnected = "disconnected", e.Failed = "failed", e.Reconnect = "reconnect", e.Reconnecting = "reconnecting";
|
|
48
48
|
})(X || (X = {}));
|
|
49
|
-
|
|
49
|
+
w.Unknown, w.Internal, w.DeadlineExceeded, w.ResourceExhausted, w.FailedPrecondition, w.Unavailable, w.DataLoss;
|
|
50
50
|
V("grpc:retry");
|
|
51
51
|
j(10, { description: "Number of attempts to retry" }), j(3e4, { description: "Max delay between retries in milliseconds" });
|
|
52
52
|
var I;
|
|
@@ -226,7 +226,7 @@ const ds = {
|
|
|
226
226
|
return !i.length && !l ? /* @__PURE__ */ t(ms, {
|
|
227
227
|
deepLink: r
|
|
228
228
|
}) : /* @__PURE__ */ m(L, {
|
|
229
|
-
children: [/* @__PURE__ */ t(
|
|
229
|
+
children: [/* @__PURE__ */ t(Ae, {
|
|
230
230
|
items: i,
|
|
231
231
|
scrollNode: s,
|
|
232
232
|
scrollStore: n,
|
|
@@ -236,7 +236,7 @@ const ds = {
|
|
|
236
236
|
currentUserId: e.currentUserId.get()
|
|
237
237
|
}, d), r && /* @__PURE__ */ t(fs, {
|
|
238
238
|
ref: o,
|
|
239
|
-
children: /* @__PURE__ */ t(
|
|
239
|
+
children: /* @__PURE__ */ t(we, {
|
|
240
240
|
onClick: () => p(r),
|
|
241
241
|
title: "Invite Friends",
|
|
242
242
|
description: "Challenge them now!"
|
|
@@ -316,7 +316,7 @@ const ds = {
|
|
|
316
316
|
className: n,
|
|
317
317
|
gamification: e,
|
|
318
318
|
responsiveStore: a
|
|
319
|
-
}),
|
|
319
|
+
}), As = ({
|
|
320
320
|
gamification: e,
|
|
321
321
|
className: s,
|
|
322
322
|
appNode: n,
|
|
@@ -360,9 +360,9 @@ const ds = {
|
|
|
360
360
|
useContainer: !l,
|
|
361
361
|
children: p
|
|
362
362
|
});
|
|
363
|
-
},
|
|
363
|
+
}, ws = ns(() => import("./gamification-feature.js")), Cs = ({ sdk: e, feature: s, className: n, scrollStore: o, appNode: i, scrollNode: a, responsiveStore: l }) => {
|
|
364
364
|
const d = C(() => s && s.featureConfig.get().type === D.GAMES ? /* @__PURE__ */ t(cs, { className: n, sdk: e, feature: s, children: /* @__PURE__ */ t(
|
|
365
|
-
|
|
365
|
+
ws,
|
|
366
366
|
{
|
|
367
367
|
appNode: i,
|
|
368
368
|
scrollStore: o,
|
|
@@ -380,7 +380,7 @@ const ds = {
|
|
|
380
380
|
}
|
|
381
381
|
);
|
|
382
382
|
}, $s = ({ feature: e, className: s, appNode: n, responsiveStore: o }) => e && e.featureConfig.get().type === D.GAMES ? /* @__PURE__ */ t(
|
|
383
|
-
|
|
383
|
+
As,
|
|
384
384
|
{
|
|
385
385
|
className: s,
|
|
386
386
|
appNode: n,
|
|
@@ -526,18 +526,18 @@ const ds = {
|
|
|
526
526
|
}) => {
|
|
527
527
|
var l, d, r, p, c, v, f;
|
|
528
528
|
const N = u(o.friends.getStore()), [b, S] = E(void 0), y = C(() => {
|
|
529
|
-
var
|
|
529
|
+
var A, T;
|
|
530
530
|
const W = a.getInviter();
|
|
531
|
-
return W ? (T = (
|
|
531
|
+
return W ? (T = (A = N.data) == null ? void 0 : A.find(({
|
|
532
532
|
slId: ve
|
|
533
533
|
}) => ve === W)) == null ? void 0 : T.name : "";
|
|
534
534
|
}, [N.data, a]);
|
|
535
535
|
return k(() => {
|
|
536
|
-
const
|
|
536
|
+
const A = e.$store.subscribe((T) => {
|
|
537
537
|
T && S(T.data);
|
|
538
538
|
});
|
|
539
539
|
return () => {
|
|
540
|
-
|
|
540
|
+
A();
|
|
541
541
|
};
|
|
542
542
|
}, [e.$store]), /* @__PURE__ */ t(Ms, {
|
|
543
543
|
children: /* @__PURE__ */ t(_e, {
|
|
@@ -563,8 +563,8 @@ const ds = {
|
|
|
563
563
|
inviteCardSubtext: (v = s.inviteCard) == null ? void 0 : v.subtext,
|
|
564
564
|
inviteCardBtnLabel: (f = s.inviteCard) == null ? void 0 : f.buttonLabel,
|
|
565
565
|
onClose: () => {
|
|
566
|
-
var
|
|
567
|
-
(
|
|
566
|
+
var A;
|
|
567
|
+
(A = n.close) == null || A.call(n);
|
|
568
568
|
},
|
|
569
569
|
gamification: o,
|
|
570
570
|
sdk: a,
|
|
@@ -939,6 +939,7 @@ const ds = {
|
|
|
939
939
|
};
|
|
940
940
|
export {
|
|
941
941
|
mn as E,
|
|
942
|
+
rn as F,
|
|
942
943
|
kn as S,
|
|
943
944
|
cn as i,
|
|
944
945
|
fn as u
|