@streamlayer/react-ui 1.11.4 → 1.12.1
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/app/Advertisement/index.d.ts +1 -0
- package/lib/app/app/Advertisement/index.js +86 -67
- package/lib/app/app/Features/Gamification/Tabs.js +13 -13
- package/lib/app/app/Navigation/index.js +70 -64
- package/lib/app/app/Notifications/Onboarding/index.js +66 -72
- package/lib/app/app/Notifications/index.d.ts +1 -0
- package/lib/app/app/Notifications/index.js +76 -72
- package/lib/app/app/index.js +28 -27
- package/lib/app/app/story/index.d.ts +3 -1
- package/lib/app/app/story/index.js +29 -26
- package/lib/app/app/story/promotion/video.js +34 -34
- package/lib/app/app/styles.d.ts +5 -0
- package/lib/app/app/styles.js +25 -20
- package/lib/assets/style.css +1 -1
- package/lib/ui/advertisement/index.d.ts +3 -0
- package/lib/ui/advertisement/index.js +25 -19
- package/lib/ui/advertisement/mock.d.ts +1 -0
- package/lib/ui/advertisement/mock.js +39 -5
- package/lib/ui/advertisement/overlay/externalAd/controls.d.ts +5 -0
- package/lib/ui/advertisement/overlay/externalAd/controls.js +33 -0
- package/lib/ui/advertisement/overlay/externalAd/index.d.ts +2 -0
- package/lib/ui/advertisement/overlay/externalAd/index.js +121 -0
- package/lib/ui/advertisement/overlay/index.d.ts +7 -2
- package/lib/ui/advertisement/overlay/index.js +67 -58
- package/lib/ui/close-btn/index.d.ts +1 -0
- package/lib/ui/close-btn/index.js +25 -23
- package/lib/ui/gamification/question/insight/styles.d.ts +10 -2
- package/lib/ui/gamification/question/insight/styles.js +8 -7
- package/lib/ui/gamification/question/notification/prediction-result/index.js +84 -64
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +2 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +36 -26
- package/lib/ui/gamification/question/twitter/styles.d.ts +5 -1
- package/lib/ui/gamification/question/twitter/styles.js +9 -8
- package/lib/ui/gamification/vote/alert/index.js +7 -8
- package/lib/ui/gamification/vote/alert/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/alert/styles.js +12 -6
- package/lib/ui/gamification/vote/vote-option/index.js +59 -58
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +45 -44
- package/lib/ui/skeleton/index.d.ts +1 -1
- package/lib/ui/theme/constants.d.ts +32 -1
- package/lib/ui/theme/constants.js +50 -17
- package/lib/ui/theme/masters-theme.js +9 -4
- package/lib/ui/theme/theme.js +16 -9
- package/lib/ui/video-player/index.d.ts +2 -0
- package/lib/ui/video-player/index.js +57 -56
- package/package.json +14 -14
|
@@ -9,6 +9,7 @@ export type StreamLayerSDKAdvertisementProps = {
|
|
|
9
9
|
banner?: 'top' | 'bottom';
|
|
10
10
|
layoutMode?: 'cover' | 'side-by-side';
|
|
11
11
|
skipAutoClose?: boolean;
|
|
12
|
+
externalAd?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export declare const StreamLayerSDKAdvertisement: React.FC<StreamLayerSDKAdvertisementProps & {
|
|
14
15
|
sdk: StreamLayerSDK;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cx as
|
|
3
|
-
import { styled as
|
|
4
|
-
import { useStore as
|
|
5
|
-
import { useAnalyticsListener as
|
|
6
|
-
import { useRef as
|
|
7
|
-
import { eventBus as
|
|
8
|
-
import { FeatureType as
|
|
9
|
-
import { AdvertisementUI as
|
|
10
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { cx as g } from "@linaria/core";
|
|
3
|
+
import { styled as L } from "@linaria/react";
|
|
4
|
+
import { useStore as h } from "@nanostores/react";
|
|
5
|
+
import { useAnalyticsListener as w } from "../../../hooks/analytics.js";
|
|
6
|
+
import { useEffect as I, useRef as E } from "react";
|
|
7
|
+
import { eventBus as A } from "@streamlayer/sdk-web-interfaces";
|
|
8
|
+
import { FeatureType as T, NotificationPromotionMode as U, PromotionType as N } from "@streamlayer/sdk-web-types";
|
|
9
|
+
import { AdvertisementUI as V } from "../../../ui/advertisement/index.js";
|
|
10
|
+
const W = /* @__PURE__ */ L("div")({
|
|
11
11
|
name: "AdvertisementUIWrap",
|
|
12
12
|
class: "aa6pjif",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
const o =
|
|
18
|
-
|
|
14
|
+
}), j = (r) => {
|
|
15
|
+
const t = r.target;
|
|
16
|
+
if (t instanceof HTMLAnchorElement && t.target === "_blank") {
|
|
17
|
+
const o = t.getAttribute("data-promo-id") || "", i = t.getAttribute("data-promo-type") || N.UNSET;
|
|
18
|
+
t.getAttribute("data-analytics") === "button" && A.emit("advertisement", {
|
|
19
19
|
action: "buttonSelect",
|
|
20
20
|
payload: {
|
|
21
21
|
id: o,
|
|
22
22
|
type: i
|
|
23
23
|
}
|
|
24
|
-
}),
|
|
24
|
+
}), t.getAttribute("data-analytics") === "banner" && A.emit("advertisement", {
|
|
25
25
|
action: "bannerSelect",
|
|
26
26
|
payload: {
|
|
27
27
|
id: o,
|
|
@@ -29,82 +29,101 @@ const N = /* @__PURE__ */ g("div")({
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, k = ({
|
|
33
33
|
gamification: r,
|
|
34
|
-
layoutMode:
|
|
34
|
+
layoutMode: t,
|
|
35
35
|
skipAutoClose: o,
|
|
36
36
|
skipTypeCheck: i,
|
|
37
|
-
sidebar:
|
|
38
|
-
banner:
|
|
39
|
-
notification:
|
|
40
|
-
isMobileScreen:
|
|
41
|
-
persistent:
|
|
37
|
+
sidebar: a,
|
|
38
|
+
banner: d,
|
|
39
|
+
notification: m,
|
|
40
|
+
isMobileScreen: c,
|
|
41
|
+
persistent: l,
|
|
42
|
+
externalAd: p,
|
|
43
|
+
controlVideo: u
|
|
42
44
|
}) => {
|
|
43
|
-
var f,
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
enabled: !!
|
|
45
|
+
var f, v, y;
|
|
46
|
+
const n = E(null), e = h(r.advertisement.$store);
|
|
47
|
+
w(n, {
|
|
48
|
+
enabled: !!e.data,
|
|
47
49
|
event: "click",
|
|
48
|
-
listener:
|
|
50
|
+
listener: j
|
|
49
51
|
});
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
+
const S = !d && !a;
|
|
53
|
+
if (e.data === void 0 || !l && e.isViewed)
|
|
52
54
|
return null;
|
|
53
|
-
const
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
ref:
|
|
55
|
+
const b = ((y = (v = (f = e == null ? void 0 : e.data) == null ? void 0 : f.notification) == null ? void 0 : v.promotion) == null ? void 0 : y.mode) === U.LOWER_THIRD;
|
|
56
|
+
return /* @__PURE__ */ s(W, {
|
|
57
|
+
ref: n,
|
|
56
58
|
style: {
|
|
57
|
-
height:
|
|
59
|
+
height: S ? "auto" : "100%"
|
|
58
60
|
},
|
|
59
|
-
className:
|
|
60
|
-
children: /* @__PURE__ */
|
|
61
|
+
className: g("SL-AdvertisementUIWrap", c && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
|
|
62
|
+
children: /* @__PURE__ */ s(V, {
|
|
61
63
|
skipTypeCheck: i,
|
|
62
|
-
sidebar:
|
|
63
|
-
banner:
|
|
64
|
-
advertisement:
|
|
65
|
-
close:
|
|
64
|
+
sidebar: a,
|
|
65
|
+
banner: d,
|
|
66
|
+
advertisement: e.data,
|
|
67
|
+
close: e.close,
|
|
68
|
+
externalAd: p ? e.externalAd : void 0,
|
|
66
69
|
markAsViewed: r.advertisement.markAsViewed,
|
|
67
70
|
open: r.advertisement.open,
|
|
68
|
-
layoutMode:
|
|
69
|
-
isNotification:
|
|
70
|
-
skipAutoClose: o
|
|
71
|
+
layoutMode: t,
|
|
72
|
+
isNotification: m,
|
|
73
|
+
skipAutoClose: o,
|
|
74
|
+
controlVideo: u
|
|
71
75
|
})
|
|
72
76
|
});
|
|
73
|
-
},
|
|
77
|
+
}, _ = ({
|
|
74
78
|
sdk: r,
|
|
75
|
-
sidebar:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
sidebar: t,
|
|
80
|
+
externalAd: o,
|
|
81
|
+
banner: i,
|
|
82
|
+
skipAutoClose: a,
|
|
83
|
+
skipTypeCheck: d,
|
|
84
|
+
layoutMode: m,
|
|
85
|
+
isMobileScreen: c,
|
|
81
86
|
persistent: l,
|
|
82
|
-
notification:
|
|
87
|
+
notification: p
|
|
83
88
|
}) => {
|
|
84
|
-
const
|
|
85
|
-
if (
|
|
86
|
-
|
|
89
|
+
const u = h(r.featuresList.getStore());
|
|
90
|
+
if (I(() => {
|
|
91
|
+
if (o) {
|
|
92
|
+
const e = document.createElement("script");
|
|
93
|
+
e.async = !0, e.src = "https://imasdk.googleapis.com/js/sdkloader/ima3.js", document.body.appendChild(e);
|
|
94
|
+
}
|
|
95
|
+
}, [o]), t && i)
|
|
96
|
+
return /* @__PURE__ */ s("div", {
|
|
87
97
|
style: {
|
|
88
98
|
color: "red"
|
|
89
99
|
},
|
|
90
100
|
children: "define either sidebar or banner, not both."
|
|
91
101
|
});
|
|
92
|
-
if (
|
|
102
|
+
if (i && o)
|
|
103
|
+
return /* @__PURE__ */ s("div", {
|
|
104
|
+
style: {
|
|
105
|
+
color: "red"
|
|
106
|
+
},
|
|
107
|
+
children: "externalAd is not supported with banner"
|
|
108
|
+
});
|
|
109
|
+
if (!u)
|
|
93
110
|
return null;
|
|
94
|
-
const
|
|
95
|
-
return
|
|
96
|
-
gamification:
|
|
97
|
-
sidebar:
|
|
98
|
-
banner:
|
|
99
|
-
layoutMode:
|
|
100
|
-
isMobileScreen:
|
|
111
|
+
const n = r.getFeature(T.GAMES);
|
|
112
|
+
return n ? /* @__PURE__ */ s(k, {
|
|
113
|
+
gamification: n,
|
|
114
|
+
sidebar: t,
|
|
115
|
+
banner: i,
|
|
116
|
+
layoutMode: m,
|
|
117
|
+
isMobileScreen: c,
|
|
101
118
|
persistent: l,
|
|
102
|
-
notification:
|
|
103
|
-
skipTypeCheck:
|
|
104
|
-
skipAutoClose:
|
|
119
|
+
notification: p,
|
|
120
|
+
skipTypeCheck: d,
|
|
121
|
+
skipAutoClose: a,
|
|
122
|
+
externalAd: o,
|
|
123
|
+
controlVideo: r.controlVideoPlayer
|
|
105
124
|
}) : null;
|
|
106
125
|
};
|
|
107
126
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
127
|
+
W as AdvertisementUIWrap,
|
|
128
|
+
_ as StreamLayerSDKAdvertisement
|
|
110
129
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cx as
|
|
1
|
+
import { jsxs as p, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { cx as D } from "@linaria/core";
|
|
3
3
|
import { useStore as h } from "@nanostores/react";
|
|
4
|
-
import { TabsContainer as
|
|
4
|
+
import { TabsContainer as T, TabsNavContainer as C, SDKSummaryContainer as S, UserSummaryContainer as v, SDKContentContainer as A, LeaderboardContainer as I } from "../../styles.js";
|
|
5
5
|
import { scrollIntoAppView as L } from "../../../useSdkScroll.js";
|
|
6
6
|
import { useState as P, useTransition as V, useEffect as E } from "react";
|
|
7
7
|
import { ActivePages as a, Tabs as K } from "../../../../ui/gamification/tabs/index.js";
|
|
8
8
|
import { Leaderboard as F } from "./Leaderboard.js";
|
|
9
9
|
import { QuestionsList as O } from "./QuestionsList.js";
|
|
10
10
|
import { UserSummary as Q } from "./UserSummary.js";
|
|
11
|
-
const
|
|
12
|
-
const { tabsShown: c } = h(t, { keys: ["tabsShown"] }), [i, w] = P(a.HOME), [, y] = V(), { sdkInDesktopView:
|
|
11
|
+
const J = ({ gamification: r, className: b, scrollStore: t, scrollNode: f, appNode: m, style: l, responsiveStore: n }) => {
|
|
12
|
+
const { tabsShown: c } = h(t, { keys: ["tabsShown"] }), [i, w] = P(a.HOME), [, y] = V(), { sdkInDesktopView: u, screen: k } = h(n, { keys: ["sdkInDesktopView"] }), g = (s) => {
|
|
13
13
|
y(() => {
|
|
14
|
-
var
|
|
15
|
-
w(s),
|
|
14
|
+
var d;
|
|
15
|
+
w(s), u === !1 && (((d = m.current) == null ? void 0 : d.getBoundingClientRect().y) || 0) < 0 && L(m, k.size, { behavior: "instant" });
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
E(() => t.subscribe((s) => {
|
|
@@ -23,23 +23,23 @@ const G = ({ gamification: r, className: l, scrollStore: t, scrollNode: b, appNo
|
|
|
23
23
|
n.get().sdkInDesktopView ? t.setKey("tabsShown", s.scrollDirection === "backward") : t.setKey("tabsShown", s.scrollDirection === "forward");
|
|
24
24
|
}), [t, n]);
|
|
25
25
|
let o = "0px";
|
|
26
|
-
return
|
|
26
|
+
return u ? o = c ? "0px" : "calc(0px - var(--header-height))" : o = c ? "var(--header-height)" : "0px", /* @__PURE__ */ p(T, { className: D(b, "SL-Tabs"), style: l, children: [
|
|
27
27
|
/* @__PURE__ */ e(
|
|
28
28
|
C,
|
|
29
29
|
{
|
|
30
30
|
style: {
|
|
31
31
|
top: o
|
|
32
32
|
},
|
|
33
|
-
children: /* @__PURE__ */ e(K, { activePage: i, toggleActivePage:
|
|
33
|
+
children: /* @__PURE__ */ e(K, { activePage: i, toggleActivePage: g })
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
|
-
i === a.HOME && /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */ e(S, {
|
|
36
|
+
i === a.HOME && /* @__PURE__ */ p(x, { children: [
|
|
37
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(Q, { userSummary: r.userSummary }) }) }),
|
|
38
38
|
/* @__PURE__ */ e(A, { style: { flex: 1 }, children: /* @__PURE__ */ e(O, { openQuestion: r.openQuestion, store: r.feedList.getStore() }) })
|
|
39
39
|
] }),
|
|
40
|
-
i === a.LEADERBOARD && /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(F, { scrollStore: t, scrollNode:
|
|
40
|
+
i === a.LEADERBOARD && /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(F, { scrollStore: t, scrollNode: f, gamification: r }) })
|
|
41
41
|
] });
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
J as Tabs
|
|
45
45
|
};
|
|
@@ -1,112 +1,118 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cx as S } from "@linaria/core";
|
|
3
3
|
import { styled as n } from "@linaria/react";
|
|
4
|
-
import { useStore as
|
|
5
|
-
import { forwardRef as y, useMemo as
|
|
6
|
-
import { AvailableFeatures as
|
|
7
|
-
import { FeatureType as
|
|
8
|
-
import { SvgIcon as
|
|
9
|
-
import { Navigation as A, NavigationItems as
|
|
4
|
+
import { useStore as v } from "@nanostores/react";
|
|
5
|
+
import { forwardRef as y, useMemo as u } from "react";
|
|
6
|
+
import { AvailableFeatures as b } from "@streamlayer/sdk-web-features";
|
|
7
|
+
import { FeatureType as C } from "@streamlayer/sdk-web-types";
|
|
8
|
+
import { SvgIcon as h } from "../../../ui/icons/index.js";
|
|
9
|
+
import { Navigation as A, NavigationItems as I } from "../../../ui/navigation/index.js";
|
|
10
10
|
import { Button as t } from "../../../ui/navigation/button/index.js";
|
|
11
|
-
const
|
|
11
|
+
const g = () => h, x = /* @__PURE__ */ n(g())({
|
|
12
12
|
name: "ButtonIcon",
|
|
13
13
|
class: "b11wpe79",
|
|
14
14
|
propsAsIs: !0
|
|
15
|
-
}),
|
|
15
|
+
}), F = /* @__PURE__ */ n("div")({
|
|
16
16
|
name: "Container",
|
|
17
17
|
class: "calnblm",
|
|
18
18
|
propsAsIs: !1
|
|
19
|
-
}),
|
|
19
|
+
}), D = /* @__PURE__ */ n("div")({
|
|
20
20
|
name: "Title",
|
|
21
21
|
class: "t1438p52",
|
|
22
22
|
propsAsIs: !1
|
|
23
|
-
}),
|
|
23
|
+
}), N = /* @__PURE__ */ n("div")({
|
|
24
24
|
name: "CloseIconWrap",
|
|
25
25
|
class: "c17srj38",
|
|
26
26
|
propsAsIs: !1
|
|
27
|
-
}),
|
|
27
|
+
}), B = () => h, j = /* @__PURE__ */ n(B())({
|
|
28
28
|
name: "CloseIcon",
|
|
29
29
|
class: "clqia8k",
|
|
30
30
|
propsAsIs: !0
|
|
31
|
-
}),
|
|
31
|
+
}), w = () => h, G = /* @__PURE__ */ n(w())({
|
|
32
|
+
name: "DashboardIcon",
|
|
33
|
+
class: "df5w958",
|
|
34
|
+
propsAsIs: !0
|
|
35
|
+
}), M = "h12x6aiv", z = y(({
|
|
32
36
|
sdk: s,
|
|
33
|
-
className:
|
|
34
|
-
},
|
|
35
|
-
const
|
|
37
|
+
className: l
|
|
38
|
+
}, p) => {
|
|
39
|
+
const a = () => {
|
|
36
40
|
s.closeFeature();
|
|
37
41
|
};
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
className: S(
|
|
40
|
-
children: [/* @__PURE__ */
|
|
41
|
-
children: [/* @__PURE__ */
|
|
42
|
-
children:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
return /* @__PURE__ */ c(A, {
|
|
43
|
+
className: S(l, M),
|
|
44
|
+
children: [/* @__PURE__ */ c(F, {
|
|
45
|
+
children: [/* @__PURE__ */ c(D, {
|
|
46
|
+
children: [/* @__PURE__ */ e(G, {
|
|
47
|
+
name: "dashboard"
|
|
48
|
+
}), "Dashboard"]
|
|
49
|
+
}), /* @__PURE__ */ e(N, {
|
|
50
|
+
onClick: a,
|
|
51
|
+
children: /* @__PURE__ */ e(j, {
|
|
46
52
|
name: "icon-cross"
|
|
47
53
|
})
|
|
48
54
|
})]
|
|
49
|
-
}), /* @__PURE__ */
|
|
50
|
-
ref:
|
|
55
|
+
}), /* @__PURE__ */ e("div", {
|
|
56
|
+
ref: p
|
|
51
57
|
})]
|
|
52
58
|
});
|
|
53
|
-
}),
|
|
59
|
+
}), J = y(({
|
|
54
60
|
sdk: s,
|
|
55
|
-
className:
|
|
56
|
-
},
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
return
|
|
60
|
-
}, [
|
|
61
|
-
enableSdkButton:
|
|
62
|
-
type:
|
|
63
|
-
}) =>
|
|
64
|
-
id:
|
|
65
|
-
onClick: () => s.openFeature(
|
|
66
|
-
disabled: !(
|
|
67
|
-
label:
|
|
68
|
-
icon: /* @__PURE__ */
|
|
69
|
-
src:
|
|
61
|
+
className: l
|
|
62
|
+
}, p) => {
|
|
63
|
+
const a = v(s.sdkStore.organizationSettings), r = v(s.sdkStore.streamSettings), i = v(s.getActiveFeature()), f = u(() => {
|
|
64
|
+
const o = (r == null ? void 0 : r.data) || (a == null ? void 0 : a.data);
|
|
65
|
+
return o != null && o.overlays ? o.overlays : [];
|
|
66
|
+
}, [a, r]), d = u(() => [...f.filter(({
|
|
67
|
+
enableSdkButton: o,
|
|
68
|
+
type: m
|
|
69
|
+
}) => m === C.GAMES || o).map((o) => ({
|
|
70
|
+
id: o.type,
|
|
71
|
+
onClick: () => s.openFeature(o.type),
|
|
72
|
+
disabled: !(o.type in b),
|
|
73
|
+
label: o.name,
|
|
74
|
+
icon: /* @__PURE__ */ e("img", {
|
|
75
|
+
src: o.icon,
|
|
70
76
|
alt: ""
|
|
71
77
|
}),
|
|
72
78
|
/** multiplied by 10 to add the ability to insert custom buttons between our buttons */
|
|
73
|
-
position:
|
|
74
|
-
}))].sort((
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
-
className:
|
|
77
|
-
children: [
|
|
78
|
-
children: [/* @__PURE__ */
|
|
79
|
+
position: o.position * 10
|
|
80
|
+
}))].sort((o, m) => o.position - m.position), [f, s]);
|
|
81
|
+
return /* @__PURE__ */ c(A, {
|
|
82
|
+
className: l,
|
|
83
|
+
children: [d.length !== 0 && /* @__PURE__ */ e(I, {
|
|
84
|
+
children: [/* @__PURE__ */ e(t, {
|
|
79
85
|
id: "Channels",
|
|
80
86
|
onClick: () => s.closeFeature(),
|
|
81
87
|
label: "Channels",
|
|
82
|
-
active:
|
|
83
|
-
}, "Channels"), ...
|
|
84
|
-
...
|
|
85
|
-
active:
|
|
88
|
+
active: i === 0
|
|
89
|
+
}, "Channels"), ...d.map((o) => o.id === C.GAMES ? /* @__PURE__ */ e(t, {
|
|
90
|
+
...o,
|
|
91
|
+
active: o.id === i,
|
|
86
92
|
label: "StreamLayer +",
|
|
87
93
|
id: "featuredGroups",
|
|
88
|
-
icon: /* @__PURE__ */
|
|
94
|
+
icon: /* @__PURE__ */ e(x, {
|
|
89
95
|
name: "icon-btn-feature-groups",
|
|
90
|
-
"data-selected":
|
|
96
|
+
"data-selected": o.id === i
|
|
91
97
|
})
|
|
92
|
-
},
|
|
93
|
-
...
|
|
98
|
+
}, o.id) : /* @__PURE__ */ e(t, {
|
|
99
|
+
...o,
|
|
94
100
|
icon: void 0,
|
|
95
|
-
active:
|
|
96
|
-
},
|
|
97
|
-
}), !
|
|
98
|
-
children: [/* @__PURE__ */
|
|
101
|
+
active: o.id === i
|
|
102
|
+
}, o.id))]
|
|
103
|
+
}), !d.length && /* @__PURE__ */ e(I, {
|
|
104
|
+
children: [/* @__PURE__ */ e(t, {
|
|
99
105
|
id: "empty",
|
|
100
106
|
label: "No Features...",
|
|
101
107
|
active: !1,
|
|
102
108
|
disabled: !0
|
|
103
109
|
}, "empty")]
|
|
104
|
-
}), /* @__PURE__ */
|
|
105
|
-
ref:
|
|
110
|
+
}), /* @__PURE__ */ e("div", {
|
|
111
|
+
ref: p
|
|
106
112
|
})]
|
|
107
113
|
});
|
|
108
114
|
});
|
|
109
115
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
116
|
+
z as SDKHeader,
|
|
117
|
+
J as SDKNavigation
|
|
112
118
|
};
|