@streamlayer/react 1.24.6 → 1.24.8
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/cjs/advertisement.js +19606 -203
- package/lib/cjs/auth.js +4459 -1
- package/lib/cjs/bet-pack.js +15690 -1
- package/lib/cjs/index.js +19410 -1
- package/lib/cjs/insight.js +13508 -1
- package/lib/cjs/masters.js +20695 -1
- package/lib/cjs/notification.js +13086 -1
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/pause-ad.js +8390 -1
- package/lib/cjs/points.js +7188 -1
- package/lib/cjs/polyfills.js +69 -0
- package/lib/cjs/polymarket.js +16394 -14
- package/lib/cjs/style.css +1 -0
- package/lib/cjs/useStreamLayerApp.js +4711 -1
- package/lib/dist/cjs/index.js +20695 -1
- package/lib/dist/es/index.js +20668 -10
- package/lib/dist/es/polyfills.js +92 -0
- package/lib/es/advertisement.js +2821 -2746
- package/lib/es/analytics.js +1 -1
- package/lib/es/feature.js +60 -56
- package/lib/es/index10.js +181 -7
- package/lib/es/index11.js +371 -181
- package/lib/es/index12.js +19 -19
- package/lib/es/index13.js +44 -44
- package/lib/es/index14.js +30 -30
- package/lib/es/index15.js +384 -414
- package/lib/es/index16.js +66 -67
- package/lib/es/index2.js +35 -38
- package/lib/es/index3.js +34 -4
- package/lib/es/index4.js +3 -3
- package/lib/es/index5.js +270 -16
- package/lib/es/index6.js +0 -1
- package/lib/es/index8.js +236 -281
- package/lib/es/index9.js +8 -179
- package/lib/es/masters2.js +33 -34
- package/lib/es/notification.js +25 -25
- package/lib/es/points.js +10 -10
- package/lib/es/storage.js +14 -14
- package/lib/es/style.css +1 -0
- package/lib/es/useStreamLayerApp2.js +5654 -4604
- package/lib/source.css +1 -120
- package/package.json +99 -83
- package/lib/cjs/Question.js +0 -1
- package/lib/cjs/analytics.js +0 -1
- package/lib/cjs/feature.js +0 -1
- package/lib/cjs/gamification-feature.js +0 -1
- package/lib/cjs/gamification-feature2.js +0 -1
- package/lib/cjs/hooks-n9ax4LRT.js +0 -1
- package/lib/cjs/index-CfSdnrfA.js +0 -5
- package/lib/cjs/index10.js +0 -1
- package/lib/cjs/index11.js +0 -1
- package/lib/cjs/index12.js +0 -1
- package/lib/cjs/index13.js +0 -4
- package/lib/cjs/index14.js +0 -1
- package/lib/cjs/index15.js +0 -1
- package/lib/cjs/index16.js +0 -5
- package/lib/cjs/index2.js +0 -1
- package/lib/cjs/index3.js +0 -1
- package/lib/cjs/index4.js +0 -5
- package/lib/cjs/index5.js +0 -1
- package/lib/cjs/index6.js +0 -1
- package/lib/cjs/index7.js +0 -1
- package/lib/cjs/index8.js +0 -1
- package/lib/cjs/index9.js +0 -7
- package/lib/cjs/masters2.js +0 -8
- package/lib/cjs/storage.js +0 -1
- package/lib/cjs/theme.js +0 -1
- package/lib/cjs/useStreamLayerApp2.js +0 -17
- package/lib/cjs/utils.js +0 -47
- package/lib/classic/app/advertisement.d.ts +0 -19
- package/lib/classic/app/app.d.ts +0 -23
- package/lib/classic/app/auth.d.ts +0 -4
- package/lib/classic/app/bet-pack.d.ts +0 -10
- package/lib/classic/app/insight.d.ts +0 -13
- package/lib/classic/app/masters.d.ts +0 -19
- package/lib/classic/app/notification.d.ts +0 -5
- package/lib/classic/app/pause-ad.d.ts +0 -27
- package/lib/classic/app/points.d.ts +0 -3
- package/lib/classic/app/polymarket.d.ts +0 -7
- package/lib/classic/app/useStreamLayerApp.d.ts +0 -1
- package/lib/classic/cjs/Question.js +0 -1
- package/lib/classic/cjs/advertisement.js +0 -203
- package/lib/classic/cjs/analytics.js +0 -1
- package/lib/classic/cjs/auth.js +0 -1
- package/lib/classic/cjs/bet-pack.js +0 -5
- package/lib/classic/cjs/feature.js +0 -1
- package/lib/classic/cjs/gamification-feature.js +0 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +0 -1
- package/lib/classic/cjs/index-CfSdnrfA.js +0 -5
- package/lib/classic/cjs/index.js +0 -1
- package/lib/classic/cjs/index10.js +0 -1
- package/lib/classic/cjs/index11.js +0 -1
- package/lib/classic/cjs/index12.js +0 -1
- package/lib/classic/cjs/index13.js +0 -4
- package/lib/classic/cjs/index2.js +0 -5
- package/lib/classic/cjs/index3.js +0 -1
- package/lib/classic/cjs/index4.js +0 -1
- package/lib/classic/cjs/index5.js +0 -1
- package/lib/classic/cjs/index6.js +0 -1
- package/lib/classic/cjs/index7.js +0 -7
- package/lib/classic/cjs/index8.js +0 -1
- package/lib/classic/cjs/index9.js +0 -1
- package/lib/classic/cjs/insight.js +0 -1
- package/lib/classic/cjs/notification.js +0 -1
- package/lib/classic/cjs/notification2.js +0 -1
- package/lib/classic/cjs/pause-ad.js +0 -1
- package/lib/classic/cjs/points.js +0 -1
- package/lib/classic/cjs/polymarket.js +0 -14
- package/lib/classic/cjs/useStreamLayerApp.js +0 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +0 -17
- package/lib/classic/cjs/utils.js +0 -47
- package/lib/classic/es/Question.js +0 -503
- package/lib/classic/es/advertisement.js +0 -38792
- package/lib/classic/es/analytics.js +0 -84
- package/lib/classic/es/auth.js +0 -11
- package/lib/classic/es/bet-pack.js +0 -3418
- package/lib/classic/es/feature.js +0 -210
- package/lib/classic/es/gamification-feature.js +0 -4
- package/lib/classic/es/hooks-n9ax4LRT.js +0 -97
- package/lib/classic/es/index.js +0 -15
- package/lib/classic/es/index10.js +0 -321
- package/lib/classic/es/index11.js +0 -2592
- package/lib/classic/es/index12.js +0 -185
- package/lib/classic/es/index13.js +0 -820
- package/lib/classic/es/index2.js +0 -2605
- package/lib/classic/es/index3.js +0 -19
- package/lib/classic/es/index4.js +0 -6
- package/lib/classic/es/index5.js +0 -4
- package/lib/classic/es/index6.js +0 -285
- package/lib/classic/es/index7.js +0 -181
- package/lib/classic/es/index8.js +0 -7
- package/lib/classic/es/index9.js +0 -11
- package/lib/classic/es/insight.js +0 -79
- package/lib/classic/es/notification.js +0 -9
- package/lib/classic/es/notification2.js +0 -1126
- package/lib/classic/es/pause-ad.js +0 -232
- package/lib/classic/es/points.js +0 -76
- package/lib/classic/es/polymarket.js +0 -6617
- package/lib/classic/es/useStreamLayerApp.js +0 -4
- package/lib/classic/es/useStreamLayerApp2.js +0 -11627
- package/lib/classic/es/utils.js +0 -76
- package/lib/classic/index.d.ts +0 -6
- package/lib/classic/masters.d.ts +0 -8
- package/lib/classic/source.css +0 -110
- package/lib/dist/cjs/gamification-feature.js +0 -1
- package/lib/dist/cjs/index-CfSdnrfA.js +0 -5
- package/lib/dist/cjs/masters.js +0 -69
- package/lib/dist/es/gamification-feature.js +0 -4
- package/lib/dist/es/index-CfSdnrfA.js +0 -3775
- package/lib/dist/es/masters.js +0 -22387
- package/lib/dist/index.d.ts +0 -1357
- package/lib/dist/source.css +0 -64
- package/lib/es/index-CfSdnrfA.js +0 -3775
- package/lib/style.css +0 -1
- /package/lib/{classic/es/index-CfSdnrfA.js → es/index-D8wyDNJD.js} +0 -0
package/lib/es/index9.js
CHANGED
|
@@ -1,182 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { B as a } from "./index8.js";
|
|
7
|
-
const f = {
|
|
8
|
-
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
9
|
-
WHITE: "#FFFFFF",
|
|
10
|
-
BLUE: "#2d6ffd",
|
|
11
|
-
GREY_PRIMARY: "#909395",
|
|
12
|
-
GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
|
|
13
|
-
PRIMARY_1: "#1D7BFF",
|
|
14
|
-
// main
|
|
15
|
-
PRIMARY_2: "#095CD1",
|
|
16
|
-
// hover, active, ...etc (darken 10%)
|
|
17
|
-
PRIMARY_TEXT: "#090E13",
|
|
18
|
-
SECONDARY_TEXT: "rgba(10, 14, 19, 0.70)",
|
|
19
|
-
QUESTION_TYPE_ICON: "#1D7BFF",
|
|
20
|
-
QUESTION_BODY_TEXT: "#090E13",
|
|
21
|
-
PRESENTED_BY_TEXT: "#090E13",
|
|
22
|
-
SUCCESS: "#107D57",
|
|
23
|
-
UNSUCCESS: "#DF2F3B",
|
|
24
|
-
SECONDARY_RED1: "#DF2F3B",
|
|
25
|
-
NEUTRALS_WHITE: "#FFFFFF",
|
|
26
|
-
NEUTRALS_WHITE1: "#FFFFFF",
|
|
27
|
-
NEUTRALS_GRAY1: "#F7F7F7",
|
|
28
|
-
NEUTRALS_GRAY2: "#F2F2F1",
|
|
29
|
-
NEUTRALS_GRAY3: "#E8E8E8",
|
|
30
|
-
NEUTRALS_GRAY4: "#D9D9D6",
|
|
31
|
-
NEUTRALS_GRAY5: "#B1B3B3",
|
|
32
|
-
NEUTRALS_GRAY6: "#888B8D",
|
|
33
|
-
NEUTRALS_GRAY7: "#6B6F73",
|
|
34
|
-
NEUTRALS_GRAY9: "#25282A",
|
|
35
|
-
SDK_CONTAINER_BG: "#F7F7F7",
|
|
36
|
-
SDK_WHITE_CONTAINER_BG: "#fff",
|
|
37
|
-
SDK_DARK_CONTAINER_BG: "#fff",
|
|
38
|
-
SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
|
|
39
|
-
SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
|
|
40
|
-
SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
|
|
41
|
-
SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
|
|
42
|
-
SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
|
|
43
|
-
SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
|
|
44
|
-
SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
|
|
45
|
-
SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
|
|
46
|
-
SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
|
|
47
|
-
PREDICTION_BG_LINES_CORRECT: "#01AB58",
|
|
48
|
-
PREDICTION_BG_LINES_INCORRECT: "#888B8D",
|
|
49
|
-
SKELETON_COLOR_1: "#f1efef",
|
|
50
|
-
SKELETON_COLOR_2: "#f9f8f8",
|
|
51
|
-
TABS_CONTAINER_BG: "#F2F2F1",
|
|
52
|
-
TABS_ACTIVE_BG: "#FFFFFF",
|
|
53
|
-
TABS_COLOR: "#6B6F73",
|
|
54
|
-
TABS_ACTIVE_COLOR: "#1D7BFF",
|
|
55
|
-
CARD_BG: "#FFFFFF",
|
|
56
|
-
CARD_BORDER: "#fff",
|
|
57
|
-
BORDER: "#E8E8E8",
|
|
58
|
-
VOTE_BTN_BG: "#F7F7F7",
|
|
59
|
-
VOTE_BTN_BORDER: "rgb(232, 232, 232)",
|
|
60
|
-
VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
|
|
61
|
-
VOTE_BTN_SELECTED_BORDER: "#25282A",
|
|
62
|
-
VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
|
|
63
|
-
VOTE_BTN_SELECTED_BG: "#FFFFFF",
|
|
64
|
-
VOTE_BTN_SELECTED_BG_AD_UNIT: "#FFFFFF",
|
|
65
|
-
VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
|
|
66
|
-
VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
|
|
67
|
-
VOTED_ANSWER_BG: "#FFFFFF",
|
|
68
|
-
VOTED_BTN_RCT_BG: "#2d5694",
|
|
69
|
-
IN_APP_BG: "rgba(255, 255, 255, 0.90)",
|
|
70
|
-
IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
|
|
71
|
-
IN_APP_QUESTION_TYPE_LABEL: "#82899E",
|
|
72
|
-
IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
|
|
73
|
-
IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
|
|
74
|
-
IN_APP_QUESTION_RESULT_LINE: "#babfc5",
|
|
75
|
-
QUOTE_BORDER: "#E8E8E8",
|
|
76
|
-
QUOTE_TEXT: "rgba(10, 14, 19, 0.70)"
|
|
77
|
-
}, c = {
|
|
78
|
-
BG_PRIMARY: "#13212b",
|
|
79
|
-
BG_SECONDARY: "#152430",
|
|
80
|
-
BG_SECONDARY1: "#435059",
|
|
81
|
-
BORDER_PRIMARY: "rgba(255, 255, 255, 0.1)",
|
|
82
|
-
TEXT_PRIMARY: "#f9f9f9",
|
|
83
|
-
TEXT_PRIMARY1: "#f9f9f9",
|
|
84
|
-
TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
|
|
85
|
-
TEXT_SECONDARY1: "#878787",
|
|
86
|
-
WHITE: "#fff"
|
|
87
|
-
}, l = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], L = "#cee5de", P = "#f9d6d8", U = "#E8E8E8", x = {
|
|
88
|
-
xs: 324,
|
|
89
|
-
sm: 576,
|
|
90
|
-
md: 768,
|
|
91
|
-
lg: 992,
|
|
92
|
-
xl: 1200,
|
|
93
|
-
xxl: 1440
|
|
94
|
-
};
|
|
95
|
-
Object.entries(f).reduce((_, [E, T]) => `
|
|
96
|
-
${_}
|
|
97
|
-
--color-${E.toLowerCase().replaceAll("_", "-")}: ${T};
|
|
98
|
-
`, "");
|
|
99
|
-
Object.entries(c).reduce((_, [E, T]) => `
|
|
100
|
-
${_}
|
|
101
|
-
--color-adv-${E.toLowerCase().replaceAll("_", "-")}: ${T};
|
|
102
|
-
`, "");
|
|
103
|
-
const d = (_) => {
|
|
104
|
-
const { Component: E, options: T, customOptions: e, autoFocus: R, ...O } = _, N = n.useFocusable({
|
|
105
|
-
...T,
|
|
106
|
-
...e,
|
|
107
|
-
onEnterPress: () => _.onClick?.({ currentTarget: N.ref.current, stopPropagation: () => {
|
|
108
|
-
} })
|
|
109
|
-
});
|
|
110
|
-
return D(() => {
|
|
111
|
-
R && N.focusSelf();
|
|
112
|
-
}, []), /* @__PURE__ */ F(E, { ...O, ...N, "data-is-with-focus": "true" });
|
|
113
|
-
};
|
|
114
|
-
function Q(_, E) {
|
|
115
|
-
return ({ webos: T, options: e, ...R }) => T ? /* @__PURE__ */ F(d, { Component: _, options: E, customOptions: e, ...R }) : /* @__PURE__ */ F(_, { ...R });
|
|
116
|
-
}
|
|
117
|
-
const m = [10, 10, 1, 0], G = /* @__PURE__ */ I("div")({
|
|
118
|
-
name: "RemainingTimeCircle",
|
|
119
|
-
class: "r165427",
|
|
120
|
-
propsAsIs: !1
|
|
121
|
-
}), p = /* @__PURE__ */ I("div")({
|
|
122
|
-
name: "RemainingTime",
|
|
123
|
-
class: "r17garf3",
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { s as l } from "./feature.js";
|
|
3
|
+
const i = /* @__PURE__ */ l("div")({
|
|
4
|
+
name: "Container",
|
|
5
|
+
class: "cqg02m",
|
|
124
6
|
propsAsIs: !1
|
|
125
|
-
}),
|
|
126
|
-
className: _,
|
|
127
|
-
duration: E = 30,
|
|
128
|
-
onTimerExpired: T,
|
|
129
|
-
isPlaying: e = !0
|
|
130
|
-
}) => /* @__PURE__ */ F(t, {
|
|
131
|
-
isPlaying: e,
|
|
132
|
-
strokeWidth: 0,
|
|
133
|
-
duration: E,
|
|
134
|
-
colors: B,
|
|
135
|
-
size: 24,
|
|
136
|
-
onComplete: T,
|
|
137
|
-
children: ({
|
|
138
|
-
remainingTime: R
|
|
139
|
-
}) => /* @__PURE__ */ F(p, {
|
|
140
|
-
className: _,
|
|
141
|
-
children: E === 0 ? 0 : R
|
|
142
|
-
})
|
|
143
|
-
}), M = ({
|
|
144
|
-
isPlaying: _ = !0,
|
|
145
|
-
duration: E = 30,
|
|
146
|
-
onTimerExpired: T
|
|
147
|
-
}) => {
|
|
148
|
-
const [e, R] = S(E > 10 ? Y : B), [O, N] = S(2);
|
|
149
|
-
D(() => {
|
|
150
|
-
E === 0 && (N(0), R(o));
|
|
151
|
-
}, [E]);
|
|
152
|
-
const i = ({
|
|
153
|
-
remainingTime: r
|
|
154
|
-
}) => /* @__PURE__ */ F(G, {
|
|
155
|
-
children: E === 0 ? 0 : r
|
|
156
|
-
}), s = C(() => {
|
|
157
|
-
T?.(), R(o);
|
|
158
|
-
}, [T, R]), A = C((r) => {
|
|
159
|
-
r === 10 && R(B);
|
|
160
|
-
}, [R]);
|
|
161
|
-
return /* @__PURE__ */ F(t, {
|
|
162
|
-
isPlaying: _,
|
|
163
|
-
duration: E,
|
|
164
|
-
colors: l,
|
|
165
|
-
colorsTime: m,
|
|
166
|
-
size: 32,
|
|
167
|
-
strokeWidth: O,
|
|
168
|
-
trailStrokeWidth: 2,
|
|
169
|
-
trailColor: e,
|
|
170
|
-
onComplete: s,
|
|
171
|
-
onUpdate: A,
|
|
172
|
-
children: i
|
|
173
|
-
});
|
|
174
|
-
}, W = ({ height: _ = "37px", width: E = "37px" }) => /* @__PURE__ */ F("div", { style: { height: _, width: E }, children: /* @__PURE__ */ F(a, { name: "loader" }) });
|
|
7
|
+
}), a = ({ children: s, style: e, loading: o }) => o ? /* @__PURE__ */ t(i, { style: e, children: s }) : s;
|
|
175
8
|
export {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
M as L,
|
|
179
|
-
f as R,
|
|
180
|
-
Q as b,
|
|
181
|
-
W as d
|
|
9
|
+
i as e,
|
|
10
|
+
a as i
|
|
182
11
|
};
|
package/lib/es/masters2.js
CHANGED
|
@@ -2,20 +2,19 @@ import { jsx as n, jsxs as f, Fragment as I } from "react/jsx-runtime";
|
|
|
2
2
|
import { s as c, u as p, F as J, c as S, N as T } from "./feature.js";
|
|
3
3
|
import D from "lodash.throttle";
|
|
4
4
|
import { useRef as g, useState as L, useEffect as E, createContext as e2, useContext as U, useMemo as _, Suspense as s2, lazy as t2, forwardRef as n2, useLayoutEffect as r2, useCallback as b, Component as i2 } from "react";
|
|
5
|
-
import { A as h, R as o2 } from "./
|
|
5
|
+
import { A as h, R as o2 } from "./index8.js";
|
|
6
6
|
import { f as G, A as M, a as Q } from "./analytics.js";
|
|
7
|
-
import { Q as a2, z as l2, T as K, I as d2, c as c2, n as C2, f as p2, w as
|
|
7
|
+
import { Q as a2, z as l2, T as K, I as d2, c as c2, n as C2, f as p2, w as V, a as u2, p as m2 } from "./index16.js";
|
|
8
8
|
import { m as A } from "./theme.js";
|
|
9
9
|
import { a as f2 } from "./index4.js";
|
|
10
|
-
import "nanostores";
|
|
11
10
|
import { Q as E2, Z as L2, y as h2, f as F } from "./index13.js";
|
|
12
11
|
import { O as g2, d as S2, f as _2, a as N2 } from "./index12.js";
|
|
13
12
|
import { Q as T2, S as N } from "./useStreamLayerApp2.js";
|
|
14
|
-
import {
|
|
13
|
+
import { H as x } from "./index5.js";
|
|
15
14
|
import { createPortal as I2 } from "react-dom";
|
|
16
15
|
import { e as v2 } from "./index3.js";
|
|
17
16
|
import "./storage.js";
|
|
18
|
-
import { e as R2 } from "./
|
|
17
|
+
import { e as R2 } from "./index10.js";
|
|
19
18
|
import { V as A2, g as y2, i as k2, j as D2 } from "./hooks-n9ax4LRT.js";
|
|
20
19
|
const b2 = /* @__PURE__ */ c("div")({
|
|
21
20
|
name: "SDKContainer",
|
|
@@ -29,7 +28,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
29
28
|
name: "SDKContentContainer",
|
|
30
29
|
class: "s14gkn7u",
|
|
31
30
|
propsAsIs: !1
|
|
32
|
-
}),
|
|
31
|
+
}), V2 = () => Z, B2 = /* @__PURE__ */ c(V2())({
|
|
33
32
|
name: "SDKWhiteContainer",
|
|
34
33
|
class: "s1yxstm9",
|
|
35
34
|
propsAsIs: !0
|
|
@@ -37,7 +36,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
37
36
|
name: "TabsContainer",
|
|
38
37
|
class: "tdpty1s",
|
|
39
38
|
propsAsIs: !1
|
|
40
|
-
}),
|
|
39
|
+
}), H2 = /* @__PURE__ */ c("div")({
|
|
41
40
|
name: "UserSummaryContainer",
|
|
42
41
|
class: "u136a59y",
|
|
43
42
|
propsAsIs: !1
|
|
@@ -46,7 +45,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
46
45
|
top: 0,
|
|
47
46
|
...t
|
|
48
47
|
});
|
|
49
|
-
},
|
|
48
|
+
}, P2 = 15, $2 = (s, e, t) => {
|
|
50
49
|
const r = g(null), i = g(0), [a] = L(
|
|
51
50
|
G({
|
|
52
51
|
scrollPosition: 0,
|
|
@@ -66,7 +65,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
66
65
|
let d = 0;
|
|
67
66
|
o.screen.size < h.lg && !t ? d = s.current?.getBoundingClientRect().y || 0 : d = C.scrollTop;
|
|
68
67
|
const v = i.current - d;
|
|
69
|
-
if (
|
|
68
|
+
if (P2 > Math.abs(v))
|
|
70
69
|
return;
|
|
71
70
|
const R = i.current < d ? "forward" : "backward";
|
|
72
71
|
i.current = d, a.set({
|
|
@@ -186,7 +185,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
186
185
|
}
|
|
187
186
|
);
|
|
188
187
|
}, q2 = ({ gamification: s, className: e, style: t }) => /* @__PURE__ */ f(w2, { className: e, style: t, children: [
|
|
189
|
-
/* @__PURE__ */ n(
|
|
188
|
+
/* @__PURE__ */ n(B2, { style: { paddingTop: "16px" }, children: /* @__PURE__ */ n(H2, { children: /* @__PURE__ */ n(Z2, { userSummary: s.userSummary }) }) }),
|
|
190
189
|
/* @__PURE__ */ n(Z, { style: { flex: 1 }, children: /* @__PURE__ */ n(
|
|
191
190
|
x2,
|
|
192
191
|
{
|
|
@@ -199,7 +198,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
199
198
|
name: "OpenedContainer",
|
|
200
199
|
class: "o1seszvt",
|
|
201
200
|
propsAsIs: !0
|
|
202
|
-
}),
|
|
201
|
+
}), l1 = ({
|
|
203
202
|
gamification: s,
|
|
204
203
|
className: e
|
|
205
204
|
}) => /* @__PURE__ */ n(q2, {
|
|
@@ -316,7 +315,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
316
315
|
name: "ActionButton",
|
|
317
316
|
class: "avpowqk",
|
|
318
317
|
propsAsIs: !1
|
|
319
|
-
}),
|
|
318
|
+
}), B = ({ close: s, action: e, onboarding: t }) => /* @__PURE__ */ f(o0, { children: [
|
|
320
319
|
/* @__PURE__ */ n(a0, { onClick: s, children: /* @__PURE__ */ n(d0, { name: "icon-cross" }) }),
|
|
321
320
|
t?.titleCard?.media?.sponsorLogo && /* @__PURE__ */ f(c0, { children: [
|
|
322
321
|
/* @__PURE__ */ n(C0, { alt: "sponsor-logo", src: t?.titleCard?.media?.sponsorLogo }),
|
|
@@ -450,7 +449,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
450
449
|
position: "absolute",
|
|
451
450
|
visibility: "hidden"
|
|
452
451
|
},
|
|
453
|
-
children: /* @__PURE__ */ n(
|
|
452
|
+
children: /* @__PURE__ */ n(B, {
|
|
454
453
|
close: () => {
|
|
455
454
|
},
|
|
456
455
|
action: () => {
|
|
@@ -461,7 +460,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
461
460
|
style: r,
|
|
462
461
|
hiding: e.hiding,
|
|
463
462
|
children: /* @__PURE__ */ n(w, {
|
|
464
|
-
children: /* @__PURE__ */ n(
|
|
463
|
+
children: /* @__PURE__ */ n(B, {
|
|
465
464
|
close: e.close,
|
|
466
465
|
action: () => {
|
|
467
466
|
m(!0), (i.current?.getBoundingClientRect().y || 0) < 0 && q(i, v.size, {
|
|
@@ -517,7 +516,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
517
516
|
return e.type === T.QUESTION ? /* @__PURE__ */ f(I, {
|
|
518
517
|
children: [/* @__PURE__ */ n(v0, {
|
|
519
518
|
ref: a,
|
|
520
|
-
children: /* @__PURE__ */ n(
|
|
519
|
+
children: /* @__PURE__ */ n(V, {
|
|
521
520
|
...e
|
|
522
521
|
})
|
|
523
522
|
}), /* @__PURE__ */ f(T0, {
|
|
@@ -529,7 +528,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
529
528
|
style: {
|
|
530
529
|
height: "100%"
|
|
531
530
|
},
|
|
532
|
-
children: /* @__PURE__ */ n(
|
|
531
|
+
children: /* @__PURE__ */ n(V, {
|
|
533
532
|
...e,
|
|
534
533
|
controlVideo: i?.controlVideoPlayer
|
|
535
534
|
})
|
|
@@ -633,11 +632,11 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
633
632
|
responsiveStore: i
|
|
634
633
|
})]
|
|
635
634
|
});
|
|
636
|
-
},
|
|
635
|
+
}, H = Object.keys(h), k = () => {
|
|
637
636
|
const s = window.innerWidth;
|
|
638
637
|
let e = "sm";
|
|
639
|
-
for (let t =
|
|
640
|
-
const r =
|
|
638
|
+
for (let t = H.length - 1; t > 0; t--) {
|
|
639
|
+
const r = H[t];
|
|
641
640
|
if (!(s < h[r]) && s >= h[r]) {
|
|
642
641
|
e = r;
|
|
643
642
|
break;
|
|
@@ -647,21 +646,21 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
647
646
|
name: e,
|
|
648
647
|
size: h[e]
|
|
649
648
|
};
|
|
650
|
-
},
|
|
649
|
+
}, P = (s) => {
|
|
651
650
|
const e = s.current?.getBoundingClientRect();
|
|
652
651
|
return e ? e.y > -e.height && e.y < window.innerHeight : !1;
|
|
653
|
-
}, $ = (s) => s >= h.lg,
|
|
652
|
+
}, $ = (s) => s >= h.lg, V0 = (s) => {
|
|
654
653
|
const [e] = L(() => {
|
|
655
654
|
const t = k();
|
|
656
655
|
return G({
|
|
657
656
|
screen: k(),
|
|
658
|
-
sdkInView:
|
|
657
|
+
sdkInView: P(s),
|
|
659
658
|
sdkInDesktopView: $(t.size)
|
|
660
659
|
});
|
|
661
660
|
});
|
|
662
661
|
return E(() => {
|
|
663
662
|
const t = D(() => {
|
|
664
|
-
e.setKey("sdkInView",
|
|
663
|
+
e.setKey("sdkInView", P(s));
|
|
665
664
|
}, 200), r = D(() => {
|
|
666
665
|
const i = k();
|
|
667
666
|
e.setKey("screen", i), e.setKey("sdkInDesktopView", $(i.size));
|
|
@@ -670,7 +669,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
670
669
|
window.removeEventListener("scroll", t), window.removeEventListener("resize", r);
|
|
671
670
|
};
|
|
672
671
|
}, [e, s]), [e];
|
|
673
|
-
},
|
|
672
|
+
}, B0 = {
|
|
674
673
|
...o2,
|
|
675
674
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
676
675
|
// @ts-expect-error
|
|
@@ -738,11 +737,11 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
738
737
|
IN_APP_QUESTION_RESULT_LINE: "#babfc5",
|
|
739
738
|
QUOTE_TEXT: "#006944"
|
|
740
739
|
};
|
|
741
|
-
Object.entries(
|
|
740
|
+
Object.entries(B0).reduce((s, [e, t]) => `
|
|
742
741
|
${s}
|
|
743
742
|
--color-${e.toLowerCase().replaceAll("_", "-")}: ${t};
|
|
744
743
|
`, "");
|
|
745
|
-
const w0 = "m1ojpy2l",
|
|
744
|
+
const w0 = "m1ojpy2l", H0 = ({ children: s, style: e }) => /* @__PURE__ */ n("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ n("div", { className: S("masters-theme", w0), style: e, children: s }) }), d1 = ({ sdkKey: s, plugins: e, children: t, event: r, onDeepLinkHandled: i, videoPlayerController: a, production: o = !0 }) => /* @__PURE__ */ f(
|
|
746
745
|
A2,
|
|
747
746
|
{
|
|
748
747
|
sdkKey: s,
|
|
@@ -759,7 +758,7 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
|
|
|
759
758
|
t
|
|
760
759
|
]
|
|
761
760
|
}
|
|
762
|
-
),
|
|
761
|
+
), P0 = ({ sdk: s, className: e }) => {
|
|
763
762
|
const [, t] = m2(s);
|
|
764
763
|
return /* @__PURE__ */ n(J2, { className: e, feature: t, sdk: s });
|
|
765
764
|
}, $0 = ({ sdk: s, className: e, appNode: t, responsiveStore: r, useContainer: i }) => {
|
|
@@ -783,7 +782,7 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
|
|
|
783
782
|
const e = g(null);
|
|
784
783
|
return M(e, { enabled: !0, event: "click", listener: Q }), /* @__PURE__ */ n(f2, { ref: e, ...s });
|
|
785
784
|
}, G0 = ({ sdk: s, useContainer: e }) => {
|
|
786
|
-
const t = g(null), r = p(s.status), i = p(s.sdkStore.slStreamId), a = g(null), [o] =
|
|
785
|
+
const t = g(null), r = p(s.status), i = p(s.sdkStore.slStreamId), a = g(null), [o] = V0(t), [l, u] = $2(t, o, e), m = r === "ready" && !!i.data;
|
|
787
786
|
return E(() => {
|
|
788
787
|
window.requestAnimationFrame(() => {
|
|
789
788
|
s.initializeApp().then(() => {
|
|
@@ -807,7 +806,7 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
|
|
|
807
806
|
useContainer: e
|
|
808
807
|
}
|
|
809
808
|
),
|
|
810
|
-
m && /* @__PURE__ */ n(
|
|
809
|
+
m && /* @__PURE__ */ n(P0, { className: A, sdk: s }),
|
|
811
810
|
m && /* @__PURE__ */ n(
|
|
812
811
|
$0,
|
|
813
812
|
{
|
|
@@ -841,9 +840,9 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
|
|
|
841
840
|
useContainer: e
|
|
842
841
|
}) => {
|
|
843
842
|
const { sdk: t, status: r } = U(k2);
|
|
844
|
-
return r === D2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : t ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n(
|
|
843
|
+
return r === D2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : t ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n(H0, { style: { height: "100%" }, children: /* @__PURE__ */ n(M0, { sdk: t, betPack: s, useContainer: e }) }) }) : null;
|
|
845
844
|
};
|
|
846
|
-
class
|
|
845
|
+
class c1 extends i2 {
|
|
847
846
|
constructor(e) {
|
|
848
847
|
super(e), this.state = { hasError: !1 };
|
|
849
848
|
}
|
|
@@ -858,7 +857,7 @@ class C1 extends i2 {
|
|
|
858
857
|
}
|
|
859
858
|
}
|
|
860
859
|
export {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
860
|
+
l1 as C,
|
|
861
|
+
c1 as M,
|
|
862
|
+
d1 as S
|
|
864
863
|
};
|
package/lib/es/notification.js
CHANGED
|
@@ -4,12 +4,12 @@ import { useState as I, useRef as Q, useEffect as $, useCallback as As, useMemo
|
|
|
4
4
|
import { s as e, c as hs, u as Is, N as M } from "./feature.js";
|
|
5
5
|
import { e as $s } from "./index3.js";
|
|
6
6
|
import { x as W } from "./storage.js";
|
|
7
|
-
import { D as vs, j as gs, e as K, o as ws } from "./
|
|
8
|
-
import {
|
|
7
|
+
import { D as vs, j as gs, e as K, o as ws } from "./index10.js";
|
|
8
|
+
import { H as A } from "./index5.js";
|
|
9
9
|
import { d, Q as f, a as G, N as x, S as bs, A as R } from "./useStreamLayerApp2.js";
|
|
10
|
-
import { b as S } from "./
|
|
10
|
+
import { b as S } from "./index8.js";
|
|
11
11
|
import { V as Ts, y as ys } from "./index14.js";
|
|
12
|
-
import { p as Cs } from "./
|
|
12
|
+
import { p as Cs } from "./index11.js";
|
|
13
13
|
import { Y as Ns, _ as ks, q as qs } from "./hooks-n9ax4LRT.js";
|
|
14
14
|
const w = /* @__PURE__ */ e("div")({
|
|
15
15
|
name: "Media",
|
|
@@ -73,7 +73,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
73
73
|
name: "NotificationContainer",
|
|
74
74
|
class: "ns1nzpg",
|
|
75
75
|
propsAsIs: !1
|
|
76
|
-
}),
|
|
76
|
+
}), H = /* @__PURE__ */ e("div")({
|
|
77
77
|
name: "Body",
|
|
78
78
|
class: "b1j59nzs",
|
|
79
79
|
propsAsIs: !1
|
|
@@ -105,7 +105,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
105
105
|
name: "Container",
|
|
106
106
|
class: "ccvukea",
|
|
107
107
|
propsAsIs: !1
|
|
108
|
-
}),
|
|
108
|
+
}), Hs = ({ image: n, tweet: o, account: i, accountVerified: a, body: r, title: t }) => /* @__PURE__ */ l(Gs, { children: [
|
|
109
109
|
t && /* @__PURE__ */ s(Qs, { children: /* @__PURE__ */ s(Ws, { children: t }) }),
|
|
110
110
|
/* @__PURE__ */ s(
|
|
111
111
|
vs,
|
|
@@ -118,7 +118,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
120
|
/* @__PURE__ */ s(Ks, { children: gs(r) })
|
|
121
|
-
] }),
|
|
121
|
+
] }), Xs = ({ title: n, questionType: o, questionTypeData: i }) => /* @__PURE__ */ l(H, { children: [
|
|
122
122
|
/* @__PURE__ */ s(
|
|
123
123
|
W,
|
|
124
124
|
{
|
|
@@ -128,7 +128,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
128
128
|
}
|
|
129
129
|
),
|
|
130
130
|
n && /* @__PURE__ */ s(Vs, { children: n })
|
|
131
|
-
] }),
|
|
131
|
+
] }), Zs = ({ tweet: n }) => n ? /* @__PURE__ */ s(H, { children: /* @__PURE__ */ s(Hs, { ...n, controlVideo: () => {
|
|
132
132
|
} }) }) : null, Js = ({ action: n, questionType: o, inApp: i, insight: a, tweet: r }) => {
|
|
133
133
|
const t = K[o], p = ws[o];
|
|
134
134
|
if (!t || !i || !i.notification)
|
|
@@ -140,7 +140,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
140
140
|
return /* @__PURE__ */ s(Us, { "data-a": "intr", className: "SL_InApp", onClick: n, children: /* @__PURE__ */ l(zs, { style: h ? {} : { paddingLeft: "1.5rem" }, children: [
|
|
141
141
|
h && !g && /* @__PURE__ */ s(j, { src: h, imageMode: u, withVideo: !!b }),
|
|
142
142
|
g && /* @__PURE__ */ s(j, { src: g, fromInsight: !0, withVideo: !!b }),
|
|
143
|
-
o === f.TWEET ? /* @__PURE__ */ s(
|
|
143
|
+
o === f.TWEET ? /* @__PURE__ */ s(Zs, { tweet: r }) : /* @__PURE__ */ s(Xs, { questionTypeData: t, questionType: o, title: c }),
|
|
144
144
|
/* @__PURE__ */ s(Fs, { name: "inapp-button", children: p || "Open" }),
|
|
145
145
|
/* @__PURE__ */ s(_s, { name: "chevronRight" })
|
|
146
146
|
] }) });
|
|
@@ -223,7 +223,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
223
223
|
});
|
|
224
224
|
}, he = () => ({
|
|
225
225
|
withoutPadding: n
|
|
226
|
-
}) => n ? "0px" : "1rem",
|
|
226
|
+
}) => n ? "0px" : "1rem", X = /* @__PURE__ */ e("div")({
|
|
227
227
|
name: "NotificationContent",
|
|
228
228
|
class: "n1p3bk1c",
|
|
229
229
|
propsAsIs: !1,
|
|
@@ -238,7 +238,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
238
238
|
name: "StyledChevronRight",
|
|
239
239
|
class: "sx1hq4c",
|
|
240
240
|
propsAsIs: !0
|
|
241
|
-
}),
|
|
241
|
+
}), Z = /* @__PURE__ */ e("div")({
|
|
242
242
|
name: "NotificationContainer",
|
|
243
243
|
class: "n1fcriet",
|
|
244
244
|
propsAsIs: !1
|
|
@@ -288,7 +288,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
288
288
|
name: "LogoImg",
|
|
289
289
|
class: "ln4a3eh",
|
|
290
290
|
propsAsIs: !1
|
|
291
|
-
}), Se = () =>
|
|
291
|
+
}), Se = () => Z, De = /* @__PURE__ */ e(Se())({
|
|
292
292
|
name: "NotificationInterstitialContainer",
|
|
293
293
|
class: "no2k63v",
|
|
294
294
|
propsAsIs: !0
|
|
@@ -332,7 +332,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
332
332
|
webos: a,
|
|
333
333
|
onClick: i,
|
|
334
334
|
"data-webos": a,
|
|
335
|
-
children: /* @__PURE__ */ s(
|
|
335
|
+
children: /* @__PURE__ */ s(X, { withoutPadding: !0, children: /* @__PURE__ */ s(J, { src: o }) })
|
|
336
336
|
}
|
|
337
337
|
), Fe = ({
|
|
338
338
|
action: n,
|
|
@@ -361,7 +361,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
361
361
|
onClick: () => u(!1)
|
|
362
362
|
}
|
|
363
363
|
) : /* @__PURE__ */ l(
|
|
364
|
-
|
|
364
|
+
Z,
|
|
365
365
|
{
|
|
366
366
|
"data-a": "intr",
|
|
367
367
|
className: hs("SL_InApp", c),
|
|
@@ -372,7 +372,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
372
372
|
"data-webos": p,
|
|
373
373
|
children: [
|
|
374
374
|
a?.sponsorLogo && /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(J, { src: a?.sponsorLogo }) }),
|
|
375
|
-
/* @__PURE__ */ l(
|
|
375
|
+
/* @__PURE__ */ l(X, { children: [
|
|
376
376
|
/* @__PURE__ */ l(Ie, { children: [
|
|
377
377
|
!k && /* @__PURE__ */ s(B, { src: ms, imageMode: y, withVideo: !!N, color: t }),
|
|
378
378
|
k && /* @__PURE__ */ s(
|
|
@@ -437,15 +437,15 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
437
437
|
name: "Close",
|
|
438
438
|
class: "c1sur0q2",
|
|
439
439
|
propsAsIs: !0
|
|
440
|
-
}),
|
|
440
|
+
}), He = /* @__PURE__ */ e("div")({
|
|
441
441
|
name: "Body",
|
|
442
442
|
class: "bai9j52",
|
|
443
443
|
propsAsIs: !1
|
|
444
|
-
}),
|
|
444
|
+
}), Xe = /* @__PURE__ */ e("div")({
|
|
445
445
|
name: "Title",
|
|
446
446
|
class: "t1bnt25p",
|
|
447
447
|
propsAsIs: !1
|
|
448
|
-
}),
|
|
448
|
+
}), Ze = /* @__PURE__ */ e("div")({
|
|
449
449
|
name: "Description",
|
|
450
450
|
class: "dmixjec",
|
|
451
451
|
propsAsIs: !1
|
|
@@ -475,12 +475,12 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
475
475
|
}
|
|
476
476
|
)
|
|
477
477
|
] }),
|
|
478
|
-
/* @__PURE__ */ l(
|
|
479
|
-
/* @__PURE__ */ l(
|
|
478
|
+
/* @__PURE__ */ l(He, { children: [
|
|
479
|
+
/* @__PURE__ */ l(Xe, { children: [
|
|
480
480
|
/* @__PURE__ */ s(We, { name: "icon-trophy-solid" }),
|
|
481
481
|
i?.titleCard?.title
|
|
482
482
|
] }),
|
|
483
|
-
/* @__PURE__ */ l(
|
|
483
|
+
/* @__PURE__ */ l(Ze, { children: [
|
|
484
484
|
/* @__PURE__ */ s("span", { children: i?.titleCard?.subtitle }),
|
|
485
485
|
/* @__PURE__ */ s(Je, { name: "inapp-button", children: "Play Now" })
|
|
486
486
|
] })
|
|
@@ -785,21 +785,21 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
785
785
|
name: "Line1",
|
|
786
786
|
class: "l1anth16",
|
|
787
787
|
propsAsIs: !0
|
|
788
|
-
}), Gn = () => L,
|
|
788
|
+
}), Gn = () => L, Hn = /* @__PURE__ */ e(Gn())({
|
|
789
789
|
name: "Line2",
|
|
790
790
|
class: "l193yd7v",
|
|
791
791
|
propsAsIs: !0
|
|
792
|
-
}),
|
|
792
|
+
}), Xn = () => L, Zn = /* @__PURE__ */ e(Xn())({
|
|
793
793
|
name: "Line3",
|
|
794
794
|
class: "lhbflsp",
|
|
795
795
|
propsAsIs: !0
|
|
796
796
|
}), Jn = () => /* @__PURE__ */ l(Qn, {
|
|
797
797
|
children: [/* @__PURE__ */ s(Kn, {
|
|
798
798
|
children: /* @__PURE__ */ s("div", {})
|
|
799
|
-
}), /* @__PURE__ */ s(Xn, {
|
|
800
|
-
children: /* @__PURE__ */ s("div", {})
|
|
801
799
|
}), /* @__PURE__ */ s(Hn, {
|
|
802
800
|
children: /* @__PURE__ */ s("div", {})
|
|
801
|
+
}), /* @__PURE__ */ s(Zn, {
|
|
802
|
+
children: /* @__PURE__ */ s("div", {})
|
|
803
803
|
})]
|
|
804
804
|
}), so = /* @__PURE__ */ e("div")({
|
|
805
805
|
name: "Container",
|
package/lib/es/points.js
CHANGED
|
@@ -3,9 +3,9 @@ import { h as c } from "./index7.js";
|
|
|
3
3
|
import { useState as u, useEffect as d } from "react";
|
|
4
4
|
import { s as o, u as f, F as m } from "./feature.js";
|
|
5
5
|
import { e as n } from "./index3.js";
|
|
6
|
-
import { p as h } from "./
|
|
6
|
+
import { p as h } from "./index11.js";
|
|
7
7
|
import { m as y } from "./theme.js";
|
|
8
|
-
import {
|
|
8
|
+
import { H as S } from "./index5.js";
|
|
9
9
|
import { S as v } from "./useStreamLayerApp2.js";
|
|
10
10
|
import { Y as g, _ as A } from "./hooks-n9ax4LRT.js";
|
|
11
11
|
const I = /* @__PURE__ */ o("div")({
|
|
@@ -32,13 +32,13 @@ const I = /* @__PURE__ */ o("div")({
|
|
|
32
32
|
name: "PointsValue",
|
|
33
33
|
class: "prj9b3v",
|
|
34
34
|
propsAsIs: !1
|
|
35
|
-
}),
|
|
35
|
+
}), C = ({ points: s, onClick: e }) => /* @__PURE__ */ p(I, { className: y, onClick: e, children: [
|
|
36
36
|
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(k, { name: "icon-trophy-solid" }) }),
|
|
37
37
|
/* @__PURE__ */ p(F, { children: [
|
|
38
38
|
/* @__PURE__ */ t(T, { children: "Total points" }),
|
|
39
39
|
/* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(h, { value: s }) })
|
|
40
40
|
] })
|
|
41
|
-
] }),
|
|
41
|
+
] }), $ = ({ gamification: s }) => {
|
|
42
42
|
const e = s.userSummary.$store, [a, l] = u(0);
|
|
43
43
|
return d(() => {
|
|
44
44
|
const r = e.subscribe((i) => {
|
|
@@ -47,7 +47,7 @@ const I = /* @__PURE__ */ o("div")({
|
|
|
47
47
|
return () => {
|
|
48
48
|
r();
|
|
49
49
|
};
|
|
50
|
-
}, [e]), /* @__PURE__ */ t(
|
|
50
|
+
}, [e]), /* @__PURE__ */ t(C, { points: a, onClick: () => {
|
|
51
51
|
const r = s.status.get();
|
|
52
52
|
r === m.Suspended ? (s.openFeature(), n.emit("app", {
|
|
53
53
|
action: "open",
|
|
@@ -63,15 +63,15 @@ const I = /* @__PURE__ */ o("div")({
|
|
|
63
63
|
payload: {}
|
|
64
64
|
}));
|
|
65
65
|
} });
|
|
66
|
-
},
|
|
66
|
+
}, j = ({ sdk: s }) => {
|
|
67
67
|
if (!f(s.featuresList.getStore()))
|
|
68
68
|
return null;
|
|
69
69
|
const e = s.getFeature(v.GAMES);
|
|
70
|
-
return e ? /* @__PURE__ */ t(
|
|
71
|
-
},
|
|
70
|
+
return e ? /* @__PURE__ */ t($, { gamification: e }) : null;
|
|
71
|
+
}, G = ({ theme: s }) => {
|
|
72
72
|
const e = g(), a = A();
|
|
73
|
-
return e ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(c, { customTheme: s ?? a.theme, themeMode: a.themeMode, children: /* @__PURE__ */ t(
|
|
73
|
+
return e ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(c, { customTheme: s ?? a.theme, themeMode: a.themeMode, children: /* @__PURE__ */ t(j, { sdk: e }) }) }) : null;
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
G as StreamLayerSDKPoints
|
|
77
77
|
};
|