@streamlayer/react 0.24.0 → 0.24.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/cjs/index.js +3 -3
- package/lib/es/index.js +861 -829
- package/lib/style.css +1 -1
- package/package.json +12 -12
package/lib/es/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "@streamlayer/sdk-web-api";
|
|
2
2
|
import "@streamlayer/sdk-web-core";
|
|
3
|
-
import { QuestionType as B, PickHistoryStatus as fe, QuestionStatus as
|
|
3
|
+
import { QuestionType as B, PickHistoryStatus as fe, QuestionStatus as hi, QuestionImages as _e, FeatureType as pe } from "@streamlayer/sdk-web-types";
|
|
4
4
|
import "@streamlayer/sdk-web-logger";
|
|
5
5
|
import "@streamlayer/sdk-web-storage";
|
|
6
|
-
import { AvailableFeatures as
|
|
6
|
+
import { AvailableFeatures as Di } from "@streamlayer/sdk-web-features";
|
|
7
7
|
import { FeatureStatus as Z } from "@streamlayer/sdk-web-interfaces";
|
|
8
|
-
import { NotificationType as
|
|
8
|
+
import { NotificationType as y1 } from "@streamlayer/sdk-web-notifications";
|
|
9
9
|
import "@streamlayer/feature-gamification";
|
|
10
10
|
import { jsxs as A, jsx as s, Fragment as P } from "react/jsx-runtime";
|
|
11
11
|
import * as D from "react";
|
|
12
|
-
import Le, { useCallback as Ne, useEffect as te, useState as Q, useRef as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { CountdownCircleTimer as
|
|
16
|
-
import { createPromiseClient as
|
|
17
|
-
import { createGrpcWebTransport as
|
|
18
|
-
import { Users as
|
|
19
|
-
import { useStore as
|
|
12
|
+
import Le, { useCallback as Ne, useEffect as te, useState as Q, useRef as Ai, useMemo as J, createContext as yi, useContext as s1 } from "react";
|
|
13
|
+
import Ci from "react-auth-code-input";
|
|
14
|
+
import mi, { isValidPhoneNumber as ji, formatPhoneNumberIntl as Ti } from "react-phone-number-input";
|
|
15
|
+
import { CountdownCircleTimer as Ei } from "react-countdown-circle-timer";
|
|
16
|
+
import { createPromiseClient as o1 } from "@connectrpc/connect";
|
|
17
|
+
import { createGrpcWebTransport as l1 } from "@connectrpc/connect-web";
|
|
18
|
+
import { Users as a1 } from "@streamlayer/sl-eslib/users/users_connect";
|
|
19
|
+
import { useStore as E } from "@nanostores/react";
|
|
20
20
|
import "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
21
21
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
22
22
|
import { SdkOverlayType as ze } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
@@ -24,18 +24,18 @@ import "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
|
24
24
|
import "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
25
25
|
import { StreamLayer as wi } from "@streamlayer/sdk-web";
|
|
26
26
|
const Se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
|
|
27
|
-
function
|
|
27
|
+
function fi(t) {
|
|
28
28
|
var r = /* @__PURE__ */ Object.create(null);
|
|
29
29
|
return function(l) {
|
|
30
30
|
return r[l] === void 0 && (r[l] = t(l)), r[l];
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var Li = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, He = /* @__PURE__ */ fi(
|
|
34
34
|
function(t) {
|
|
35
|
-
return
|
|
35
|
+
return Li.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91;
|
|
36
36
|
}
|
|
37
37
|
/* Z+1 */
|
|
38
|
-
),
|
|
38
|
+
), zi = function() {
|
|
39
39
|
const r = Array.prototype.slice.call(arguments).filter(Boolean), l = {}, d = [];
|
|
40
40
|
r.forEach((g) => {
|
|
41
41
|
(g ? g.split(" ") : []).forEach((a) => {
|
|
@@ -50,14 +50,14 @@ var fi = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
50
50
|
for (const g in l)
|
|
51
51
|
Object.prototype.hasOwnProperty.call(l, g) && I.push(l[g]);
|
|
52
52
|
return I.push(...d), I.join(" ");
|
|
53
|
-
},
|
|
53
|
+
}, C1 = zi, xi = (t) => t.toUpperCase() === t, Oi = (t) => (r) => t.indexOf(r) === -1, Z1 = (t, r) => {
|
|
54
54
|
const l = {};
|
|
55
|
-
return Object.keys(t).filter(
|
|
55
|
+
return Object.keys(t).filter(Oi(r)).forEach((d) => {
|
|
56
56
|
l[d] = t[d];
|
|
57
57
|
}), l;
|
|
58
58
|
};
|
|
59
|
-
function
|
|
60
|
-
const d =
|
|
59
|
+
function vi(t, r, l) {
|
|
60
|
+
const d = Z1(r, l);
|
|
61
61
|
if (!t) {
|
|
62
62
|
const I = typeof He == "function" ? { default: He } : He;
|
|
63
63
|
Object.keys(d).forEach((g) => {
|
|
@@ -66,23 +66,23 @@ function Oi(t, r, l) {
|
|
|
66
66
|
}
|
|
67
67
|
return d;
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var ki = (t, r) => {
|
|
70
70
|
};
|
|
71
|
-
function
|
|
71
|
+
function Si(t) {
|
|
72
72
|
let r = "";
|
|
73
73
|
return (l) => {
|
|
74
74
|
const d = (g, p) => {
|
|
75
|
-
const { as: a = t, class: h = r } = g, y = l.propsAsIs === void 0 ? !(typeof a == "string" && a.indexOf("-") === -1 && !
|
|
75
|
+
const { as: a = t, class: h = r } = g, y = l.propsAsIs === void 0 ? !(typeof a == "string" && a.indexOf("-") === -1 && !xi(a[0])) : l.propsAsIs, C = vi(y, g, [
|
|
76
76
|
"as",
|
|
77
77
|
"class"
|
|
78
78
|
]);
|
|
79
|
-
C.ref = p, C.className = l.atomic ?
|
|
80
|
-
const { vars:
|
|
81
|
-
if (
|
|
79
|
+
C.ref = p, C.className = l.atomic ? C1(l.class, C.className || h) : C1(C.className || h, l.class);
|
|
80
|
+
const { vars: m } = l;
|
|
81
|
+
if (m) {
|
|
82
82
|
const T = {};
|
|
83
|
-
for (const S in
|
|
84
|
-
const U =
|
|
85
|
-
|
|
83
|
+
for (const S in m) {
|
|
84
|
+
const U = m[S], b = U[0], K = U[1] || "", V = typeof b == "function" ? b(g) : b;
|
|
85
|
+
ki(V, l.name), T[`--${S}`] = `${V}${K}`;
|
|
86
86
|
}
|
|
87
87
|
const f = C.style || {}, v = Object.keys(f);
|
|
88
88
|
v.length > 0 && v.forEach((S) => {
|
|
@@ -94,7 +94,7 @@ function ki(t) {
|
|
|
94
94
|
// React.forwardRef won't available on older React versions and in Preact
|
|
95
95
|
// Fallback to a innerRef prop in that case
|
|
96
96
|
(g) => {
|
|
97
|
-
const p =
|
|
97
|
+
const p = Z1(g, ["innerRef"]);
|
|
98
98
|
return d(p, g.innerRef);
|
|
99
99
|
}
|
|
100
100
|
);
|
|
@@ -104,58 +104,58 @@ function ki(t) {
|
|
|
104
104
|
}, I;
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
var c =
|
|
108
|
-
const
|
|
107
|
+
var c = Si;
|
|
108
|
+
const Ui = /* @__PURE__ */ c("div")({
|
|
109
109
|
name: "o",
|
|
110
110
|
class: "o1gwxd13",
|
|
111
111
|
propsAsIs: !1
|
|
112
|
-
}),
|
|
112
|
+
}), bi = /* @__PURE__ */ c("div")({
|
|
113
113
|
name: "n",
|
|
114
114
|
class: "nsmzrlg",
|
|
115
115
|
propsAsIs: !1
|
|
116
|
-
}),
|
|
116
|
+
}), Qi = /* @__PURE__ */ c("img")({
|
|
117
117
|
name: "i",
|
|
118
118
|
class: "i81s9fc",
|
|
119
119
|
propsAsIs: !1
|
|
120
|
-
}),
|
|
120
|
+
}), Yi = /* @__PURE__ */ c("div")({
|
|
121
121
|
name: "r",
|
|
122
122
|
class: "rlmx6cw",
|
|
123
123
|
propsAsIs: !1
|
|
124
|
-
}),
|
|
124
|
+
}), Bi = /* @__PURE__ */ c("div")({
|
|
125
125
|
name: "d",
|
|
126
126
|
class: "dqb0kgq",
|
|
127
127
|
propsAsIs: !1
|
|
128
|
-
}),
|
|
128
|
+
}), Ri = /* @__PURE__ */ c("div")({
|
|
129
129
|
name: "l",
|
|
130
130
|
class: "l1tjaqbq",
|
|
131
131
|
propsAsIs: !1
|
|
132
|
-
}),
|
|
132
|
+
}), $i = /* @__PURE__ */ c("div")({
|
|
133
133
|
name: "a",
|
|
134
134
|
class: "a1tb5jb7",
|
|
135
135
|
propsAsIs: !1
|
|
136
|
-
}),
|
|
136
|
+
}), Zi = /* @__PURE__ */ c("button")({
|
|
137
137
|
name: "c",
|
|
138
138
|
class: "c11xpv3i",
|
|
139
139
|
propsAsIs: !1
|
|
140
|
-
}),
|
|
140
|
+
}), Pi = /* @__PURE__ */ c("img")({
|
|
141
141
|
name: "s",
|
|
142
142
|
class: "s12ztjhk",
|
|
143
143
|
propsAsIs: !1
|
|
144
|
-
}),
|
|
144
|
+
}), P1 = ({ close: t, action: r, data: { color: l, icon: d, title: I } }) => {
|
|
145
145
|
const g = Ne(
|
|
146
146
|
(p) => {
|
|
147
147
|
p.stopPropagation(), t == null || t();
|
|
148
148
|
},
|
|
149
149
|
[t]
|
|
150
150
|
);
|
|
151
|
-
return /* @__PURE__ */ A(
|
|
152
|
-
/* @__PURE__ */ s(
|
|
153
|
-
/* @__PURE__ */ A(
|
|
154
|
-
/* @__PURE__ */ s(
|
|
155
|
-
/* @__PURE__ */ s(
|
|
151
|
+
return /* @__PURE__ */ A(Ui, { onClick: r, children: [
|
|
152
|
+
/* @__PURE__ */ s(bi, { style: l ? { backgroundColor: l } : {}, children: d && /* @__PURE__ */ s(Qi, { alt: "in-app-icon", src: d }) }),
|
|
153
|
+
/* @__PURE__ */ A(Yi, { children: [
|
|
154
|
+
/* @__PURE__ */ s(Bi, { children: /* @__PURE__ */ s(Ri, { id: "in-app-title", children: I || "" }) }),
|
|
155
|
+
/* @__PURE__ */ s($i, { children: /* @__PURE__ */ s(Zi, { onClick: g, children: /* @__PURE__ */ s(Pi, { alt: "close-in-app-icon", src: Se }) }) })
|
|
156
156
|
] })
|
|
157
157
|
] });
|
|
158
|
-
},
|
|
158
|
+
}, Vi = {
|
|
159
159
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
160
160
|
BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
|
|
161
161
|
BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
|
|
@@ -184,7 +184,7 @@ const Si = /* @__PURE__ */ c("div")({
|
|
|
184
184
|
GREY_PRIMARY: "#909395",
|
|
185
185
|
DIVIDER_COLOR_SECONDARY: "#53565a",
|
|
186
186
|
GREEN_PRIMARY_BTN: "#009B77"
|
|
187
|
-
},
|
|
187
|
+
}, Gi = {
|
|
188
188
|
PRIMARY_GREEN1: "#107D57",
|
|
189
189
|
PRIMARY_GREEN2: "#006747",
|
|
190
190
|
PRIMARY_GREEN3: "#1C4932",
|
|
@@ -204,7 +204,7 @@ const Si = /* @__PURE__ */ c("div")({
|
|
|
204
204
|
NEUTRALS_GRAY8: "#53565A",
|
|
205
205
|
NEUTRALS_GRAY9: "#25282A",
|
|
206
206
|
NEUTRALS_BLACK: "#000000"
|
|
207
|
-
}, ye = Object.assign({},
|
|
207
|
+
}, ye = Object.assign({}, Vi, Gi);
|
|
208
208
|
Object.keys(ye).reduce((t, r) => {
|
|
209
209
|
const l = ye[r];
|
|
210
210
|
return `
|
|
@@ -212,50 +212,50 @@ Object.keys(ye).reduce((t, r) => {
|
|
|
212
212
|
--color-${r.toLowerCase().replaceAll("_", "-")}: ${l};
|
|
213
213
|
`;
|
|
214
214
|
}, "");
|
|
215
|
-
const
|
|
215
|
+
const _i = /* @__PURE__ */ c("div")({
|
|
216
216
|
name: "e",
|
|
217
217
|
class: "e1e5tuim",
|
|
218
218
|
propsAsIs: !1
|
|
219
|
-
}),
|
|
220
|
-
const d = ({ remainingTime: I }) => /* @__PURE__ */ s(
|
|
219
|
+
}), Hi = [ye.BLUE_PRIMARY, ye.GREEN_1, ye.RED_1], Wi = [10, 6, 0], Fi = 30, qi = 32, Ji = 4, Xi = 0, V1 = ({ isPlaying: t = !0, duration: r = Fi, setTimeToExpire: l }) => {
|
|
220
|
+
const d = ({ remainingTime: I }) => /* @__PURE__ */ s(_i, { style: { color: I ? "inherit" : void 0 }, children: I });
|
|
221
221
|
return te(() => {
|
|
222
222
|
l(!1);
|
|
223
223
|
}, [l]), /* @__PURE__ */ s(
|
|
224
|
-
|
|
224
|
+
Ei,
|
|
225
225
|
{
|
|
226
226
|
isPlaying: t,
|
|
227
227
|
duration: r,
|
|
228
|
-
colors:
|
|
229
|
-
colorsTime:
|
|
230
|
-
size:
|
|
231
|
-
strokeWidth:
|
|
232
|
-
trailStrokeWidth:
|
|
228
|
+
colors: Hi,
|
|
229
|
+
colorsTime: Wi,
|
|
230
|
+
size: qi,
|
|
231
|
+
strokeWidth: Ji,
|
|
232
|
+
trailStrokeWidth: Xi,
|
|
233
233
|
onComplete: () => l(!0),
|
|
234
234
|
children: d
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
|
-
},
|
|
238
|
-
const l =
|
|
237
|
+
}, Ki = async (t, r) => {
|
|
238
|
+
const l = l1({
|
|
239
239
|
baseUrl: t
|
|
240
240
|
});
|
|
241
|
-
return await
|
|
242
|
-
},
|
|
243
|
-
const l =
|
|
241
|
+
return await o1(a1, l).requestPassword({ id: r }), !0;
|
|
242
|
+
}, et = async (t, r) => {
|
|
243
|
+
const l = l1({
|
|
244
244
|
baseUrl: t
|
|
245
245
|
});
|
|
246
|
-
return await
|
|
247
|
-
},
|
|
246
|
+
return await o1(a1, l).register({ id: r }), !0;
|
|
247
|
+
}, it = async (t, r, l) => {
|
|
248
248
|
var d;
|
|
249
|
-
const I =
|
|
249
|
+
const I = l1({
|
|
250
250
|
baseUrl: t
|
|
251
|
-
}), g = await
|
|
251
|
+
}), g = await o1(a1, I).login({ id: r, password: l });
|
|
252
252
|
return (d = g == null ? void 0 : g.meta) == null ? void 0 : d.jwt;
|
|
253
253
|
};
|
|
254
|
-
const
|
|
254
|
+
const tt = /* @__PURE__ */ c("div")({
|
|
255
255
|
name: "n",
|
|
256
256
|
class: "nhpumh7",
|
|
257
257
|
propsAsIs: !1
|
|
258
|
-
}),
|
|
258
|
+
}), m1 = /* @__PURE__ */ c("form")({
|
|
259
259
|
name: "r",
|
|
260
260
|
class: "r1wcng20",
|
|
261
261
|
propsAsIs: !1
|
|
@@ -271,135 +271,135 @@ const it = /* @__PURE__ */ c("div")({
|
|
|
271
271
|
name: "a",
|
|
272
272
|
class: "a1ifs31v",
|
|
273
273
|
propsAsIs: !1
|
|
274
|
-
}),
|
|
274
|
+
}), nt = /* @__PURE__ */ c("div")({
|
|
275
275
|
name: "p",
|
|
276
276
|
class: "p10d4aqp",
|
|
277
277
|
propsAsIs: !1
|
|
278
|
-
}),
|
|
278
|
+
}), rt = /* @__PURE__ */ c("div")({
|
|
279
279
|
name: "d",
|
|
280
280
|
class: "dje8inq",
|
|
281
281
|
propsAsIs: !1
|
|
282
|
-
}),
|
|
283
|
-
const [d, I] = Q(""), [g, p] = Q(""), [a, h] = Q(""), y = async (
|
|
284
|
-
|
|
282
|
+
}), st = ({ login: t, anonymousLogin: r, host: l }) => {
|
|
283
|
+
const [d, I] = Q(""), [g, p] = Q(""), [a, h] = Q(""), y = async (m) => {
|
|
284
|
+
m.preventDefault();
|
|
285
285
|
try {
|
|
286
286
|
const T = d.replaceAll("+", "");
|
|
287
287
|
try {
|
|
288
|
-
await Xi(l, T);
|
|
289
|
-
} catch {
|
|
290
288
|
await Ki(l, T);
|
|
289
|
+
} catch {
|
|
290
|
+
await et(l, T);
|
|
291
291
|
}
|
|
292
292
|
p(T);
|
|
293
293
|
} catch (T) {
|
|
294
294
|
window.alert(T);
|
|
295
295
|
}
|
|
296
|
-
}, C = async (
|
|
297
|
-
if (
|
|
296
|
+
}, C = async (m) => {
|
|
297
|
+
if (m.preventDefault(), g && a)
|
|
298
298
|
try {
|
|
299
|
-
const T = await
|
|
299
|
+
const T = await it(l, g, a);
|
|
300
300
|
T && t ? await t(T) : console.log("token", T);
|
|
301
301
|
} catch (T) {
|
|
302
302
|
window.alert(T);
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
|
-
return /* @__PURE__ */ A(
|
|
305
|
+
return /* @__PURE__ */ A(tt, { children: [
|
|
306
306
|
!g && /* @__PURE__ */ A("div", { children: [
|
|
307
|
-
/* @__PURE__ */ A(
|
|
307
|
+
/* @__PURE__ */ A(m1, { onSubmit: y, children: [
|
|
308
308
|
/* @__PURE__ */ s(j1, { children: "Enter your phone number" }),
|
|
309
309
|
/* @__PURE__ */ s(We, { children: "Enter your phone up for number to log in or sign an account." }),
|
|
310
|
-
/* @__PURE__ */ s(
|
|
310
|
+
/* @__PURE__ */ s(nt, { children: /* @__PURE__ */ s(mi, { value: d, onChange: (m) => I(`${m}`) }) }),
|
|
311
311
|
/* @__PURE__ */ s(Fe, { disabled: !ji(d), type: "submit", children: "request code" })
|
|
312
312
|
] }),
|
|
313
313
|
r && /* @__PURE__ */ s(Fe, { style: { display: "block", margin: "auto" }, onClick: r, children: "anonymous login" })
|
|
314
314
|
] }),
|
|
315
|
-
g && /* @__PURE__ */ A(
|
|
315
|
+
g && /* @__PURE__ */ A(m1, { onSubmit: C, children: [
|
|
316
316
|
/* @__PURE__ */ s(j1, { children: "Enter Verification Code" }),
|
|
317
317
|
/* @__PURE__ */ A(We, { children: [
|
|
318
318
|
"Please enter the verification code ",
|
|
319
319
|
/* @__PURE__ */ s("br", {}),
|
|
320
320
|
"sent to ",
|
|
321
|
-
/* @__PURE__ */ s("b", { children:
|
|
321
|
+
/* @__PURE__ */ s("b", { children: Ti(d) })
|
|
322
322
|
] }),
|
|
323
|
-
/* @__PURE__ */ s(
|
|
323
|
+
/* @__PURE__ */ s(rt, { children: /* @__PURE__ */ s(Ci, { autoFocus: !0, allowedCharacters: "numeric", length: 4, onChange: h }) }),
|
|
324
324
|
/* @__PURE__ */ s(Fe, { disabled: a.length !== 4, type: "submit", children: "login" }),
|
|
325
325
|
/* @__PURE__ */ A(We, { children: [
|
|
326
326
|
"Didn't get 59 the code? ",
|
|
327
327
|
/* @__PURE__ */ s("br", {}),
|
|
328
328
|
"Resend Code in",
|
|
329
|
-
/* @__PURE__ */ s(
|
|
329
|
+
/* @__PURE__ */ s(V1, { duration: 30, setTimeToExpire: () => {
|
|
330
330
|
}, isPlaying: !0 })
|
|
331
331
|
] })
|
|
332
332
|
] })
|
|
333
333
|
] });
|
|
334
334
|
};
|
|
335
|
-
const
|
|
335
|
+
const ot = /* @__PURE__ */ c("div")({
|
|
336
336
|
name: "i",
|
|
337
337
|
class: "i1grt8h",
|
|
338
338
|
propsAsIs: !1
|
|
339
|
-
}),
|
|
339
|
+
}), lt = /* @__PURE__ */ c("div")({
|
|
340
340
|
name: "n",
|
|
341
341
|
class: "n1rozou",
|
|
342
342
|
propsAsIs: !1
|
|
343
|
-
}),
|
|
343
|
+
}), at = /* @__PURE__ */ c("img")({
|
|
344
344
|
name: "o",
|
|
345
345
|
class: "o81ls6z",
|
|
346
346
|
propsAsIs: !1
|
|
347
|
-
}),
|
|
347
|
+
}), ct = /* @__PURE__ */ c("div")({
|
|
348
348
|
name: "d",
|
|
349
349
|
class: "d9l6z9i",
|
|
350
350
|
propsAsIs: !1
|
|
351
|
-
}),
|
|
352
|
-
/* @__PURE__ */ s(
|
|
353
|
-
/* @__PURE__ */ s(
|
|
351
|
+
}), Mt = ({ graphic: t, headline: r }) => /* @__PURE__ */ s(ot, { children: /* @__PURE__ */ A(lt, { children: [
|
|
352
|
+
/* @__PURE__ */ s(at, { alt: "graphic-img-instructions", src: t }),
|
|
353
|
+
/* @__PURE__ */ s(ct, { children: r })
|
|
354
354
|
] }) });
|
|
355
|
-
const
|
|
355
|
+
const ut = /* @__PURE__ */ c("div")({
|
|
356
356
|
name: "e",
|
|
357
357
|
class: "e1o3lzmc",
|
|
358
358
|
propsAsIs: !1
|
|
359
|
-
}),
|
|
359
|
+
}), dt = /* @__PURE__ */ c("div")({
|
|
360
360
|
name: "o",
|
|
361
361
|
class: "otjo97h",
|
|
362
362
|
propsAsIs: !1
|
|
363
|
-
}),
|
|
363
|
+
}), gt = /* @__PURE__ */ c("div")({
|
|
364
364
|
name: "i",
|
|
365
365
|
class: "ivk43vg",
|
|
366
366
|
propsAsIs: !1
|
|
367
|
-
}),
|
|
367
|
+
}), It = /* @__PURE__ */ c("img")({
|
|
368
368
|
name: "r",
|
|
369
369
|
class: "r1w33akz",
|
|
370
370
|
propsAsIs: !1
|
|
371
|
-
}),
|
|
371
|
+
}), pt = /* @__PURE__ */ c("div")({
|
|
372
372
|
name: "c",
|
|
373
373
|
class: "c1a3ssoy",
|
|
374
374
|
propsAsIs: !1
|
|
375
|
-
}),
|
|
375
|
+
}), Nt = /* @__PURE__ */ c("div")({
|
|
376
376
|
name: "a",
|
|
377
377
|
class: "ayzr5mb",
|
|
378
378
|
propsAsIs: !1
|
|
379
|
-
}),
|
|
379
|
+
}), ht = /* @__PURE__ */ c("button")({
|
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jExNzYzQzE3LjAwNiA3LjAyNCAxNi43MDc5IDcuMDMxMjEgMTYuNDEzNSA3LjAzMTIxWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC40Ii8+CjwvZz4KPC9zdmc+Cg==", At = ({
|
|
384
384
|
inviteCardTitle: t,
|
|
385
385
|
inviteCardSubtext: r,
|
|
386
386
|
primaryColor: l
|
|
387
|
-
}) => /* @__PURE__ */ s(
|
|
388
|
-
/* @__PURE__ */ s(
|
|
389
|
-
/* @__PURE__ */ s(
|
|
390
|
-
/* @__PURE__ */ s(
|
|
391
|
-
/* @__PURE__ */ s(
|
|
387
|
+
}) => /* @__PURE__ */ s(ut, { children: /* @__PURE__ */ A(dt, { children: [
|
|
388
|
+
/* @__PURE__ */ s(gt, { style: { backgroundColor: l }, children: /* @__PURE__ */ s(It, { alt: "invite-game-icon", src: Dt }) }),
|
|
389
|
+
/* @__PURE__ */ s(pt, { children: t || "" }),
|
|
390
|
+
/* @__PURE__ */ s(Nt, { children: r || "" }),
|
|
391
|
+
/* @__PURE__ */ s(ht, { onClick: () => {
|
|
392
392
|
}, style: { backgroundColor: l }, children: "Invite friends!" })
|
|
393
393
|
] }) });
|
|
394
|
-
const
|
|
394
|
+
const yt = /* @__PURE__ */ c("div")({
|
|
395
395
|
name: "t",
|
|
396
396
|
class: "ty54o42",
|
|
397
397
|
propsAsIs: !1
|
|
398
|
-
}),
|
|
398
|
+
}), Ct = /* @__PURE__ */ c("div")({
|
|
399
399
|
name: "o",
|
|
400
400
|
class: "oqyp1qa",
|
|
401
401
|
propsAsIs: !1
|
|
402
|
-
}),
|
|
402
|
+
}), mt = /* @__PURE__ */ c("div")({
|
|
403
403
|
name: "r",
|
|
404
404
|
class: "rf1d3db",
|
|
405
405
|
propsAsIs: !1
|
|
@@ -407,58 +407,58 @@ const At = /* @__PURE__ */ c("div")({
|
|
|
407
407
|
name: "n",
|
|
408
408
|
class: "n187jgct",
|
|
409
409
|
propsAsIs: !1
|
|
410
|
-
}),
|
|
410
|
+
}), Tt = /* @__PURE__ */ c("div")({
|
|
411
411
|
name: "d",
|
|
412
412
|
class: "d1i3t4lw",
|
|
413
413
|
propsAsIs: !1
|
|
414
|
-
}),
|
|
414
|
+
}), Et = /* @__PURE__ */ c("div")({
|
|
415
415
|
name: "l",
|
|
416
416
|
class: "l1heulx5",
|
|
417
417
|
propsAsIs: !1
|
|
418
|
-
}), wt = ({ rules: t, rulesTitle: r, primaryColor: l }) => /* @__PURE__ */ A(
|
|
419
|
-
/* @__PURE__ */ s(
|
|
420
|
-
/* @__PURE__ */ s(
|
|
421
|
-
/* @__PURE__ */ s(
|
|
422
|
-
/* @__PURE__ */ s(
|
|
418
|
+
}), wt = ({ rules: t, rulesTitle: r, primaryColor: l }) => /* @__PURE__ */ A(yt, { children: [
|
|
419
|
+
/* @__PURE__ */ s(Ct, { children: r }),
|
|
420
|
+
/* @__PURE__ */ s(mt, { children: t == null ? void 0 : t.map((d, I) => /* @__PURE__ */ A(jt, { children: [
|
|
421
|
+
/* @__PURE__ */ s(Tt, { style: { backgroundColor: l }, children: I + 1 }),
|
|
422
|
+
/* @__PURE__ */ s(Et, { children: d })
|
|
423
423
|
] }, I)) })
|
|
424
424
|
] });
|
|
425
|
-
const
|
|
425
|
+
const ft = /* @__PURE__ */ c("div")({
|
|
426
426
|
name: "n",
|
|
427
427
|
class: "n1cm2rh8",
|
|
428
428
|
propsAsIs: !1
|
|
429
|
-
}),
|
|
429
|
+
}), Lt = /* @__PURE__ */ c("div")({
|
|
430
430
|
name: "e",
|
|
431
431
|
class: "e9j28tc",
|
|
432
432
|
propsAsIs: !1
|
|
433
|
-
}),
|
|
433
|
+
}), zt = /* @__PURE__ */ c("div")({
|
|
434
434
|
name: "i",
|
|
435
435
|
class: "iu1o1a8",
|
|
436
436
|
propsAsIs: !1
|
|
437
|
-
}),
|
|
437
|
+
}), xt = /* @__PURE__ */ c("div")({
|
|
438
438
|
name: "r",
|
|
439
439
|
class: "r14ailyk",
|
|
440
440
|
propsAsIs: !1
|
|
441
|
-
}),
|
|
441
|
+
}), Ot = /* @__PURE__ */ c("div")({
|
|
442
442
|
name: "c",
|
|
443
443
|
class: "c11ybl5c",
|
|
444
444
|
propsAsIs: !1
|
|
445
|
-
}),
|
|
445
|
+
}), vt = /* @__PURE__ */ c("img")({
|
|
446
446
|
name: "s",
|
|
447
447
|
class: "sd9s97",
|
|
448
448
|
propsAsIs: !1
|
|
449
|
-
}),
|
|
449
|
+
}), kt = /* @__PURE__ */ c("img")({
|
|
450
450
|
name: "l",
|
|
451
451
|
class: "l1ddowgh",
|
|
452
452
|
propsAsIs: !1
|
|
453
|
-
}),
|
|
453
|
+
}), St = /* @__PURE__ */ c("button")({
|
|
454
454
|
name: "d",
|
|
455
455
|
class: "d1s3ug7g",
|
|
456
456
|
propsAsIs: !1
|
|
457
|
-
}),
|
|
457
|
+
}), Ut = /* @__PURE__ */ c("img")({
|
|
458
458
|
name: "p",
|
|
459
459
|
class: "p17kmhv2",
|
|
460
460
|
propsAsIs: !1
|
|
461
|
-
}),
|
|
461
|
+
}), bt = /* @__PURE__ */ c("button")({
|
|
462
462
|
name: "a",
|
|
463
463
|
class: "a1qucmt7",
|
|
464
464
|
propsAsIs: !1
|
|
@@ -466,7 +466,7 @@ const Et = /* @__PURE__ */ c("div")({
|
|
|
466
466
|
steps: !1,
|
|
467
467
|
rules: !1,
|
|
468
468
|
inviteCard: !1
|
|
469
|
-
},
|
|
469
|
+
}, Qt = ({
|
|
470
470
|
gamification: t,
|
|
471
471
|
closeFeature: r,
|
|
472
472
|
steps: l,
|
|
@@ -478,7 +478,7 @@ const Et = /* @__PURE__ */ c("div")({
|
|
|
478
478
|
primaryColor: h,
|
|
479
479
|
inviteCardTitle: y,
|
|
480
480
|
inviteCardSubtext: C,
|
|
481
|
-
inviteCardBtnLabel:
|
|
481
|
+
inviteCardBtnLabel: m
|
|
482
482
|
}) => {
|
|
483
483
|
const T = async () => {
|
|
484
484
|
await t.submitInplay();
|
|
@@ -491,19 +491,19 @@ const Et = /* @__PURE__ */ c("div")({
|
|
|
491
491
|
const K = Ne(() => {
|
|
492
492
|
l != null && l.length && v < l.length - 1 ? S((V) => ++V) : g != null && g.length && U.steps ? b({ ...de, rules: !0 }) : U.rules && b({ ...de, inviteCard: !0 });
|
|
493
493
|
}, [v, l == null ? void 0 : l.length, g == null ? void 0 : g.length, U, S, b]);
|
|
494
|
-
return /* @__PURE__ */ A(
|
|
495
|
-
/* @__PURE__ */ A(
|
|
496
|
-
/* @__PURE__ */ s(
|
|
497
|
-
/* @__PURE__ */ A(
|
|
498
|
-
I && /* @__PURE__ */ s(
|
|
499
|
-
/* @__PURE__ */ s(
|
|
494
|
+
return /* @__PURE__ */ A(ft, { children: [
|
|
495
|
+
/* @__PURE__ */ A(zt, { children: [
|
|
496
|
+
/* @__PURE__ */ s(xt, { children: d && /* @__PURE__ */ s(vt, { alt: "sponsor-one-onboarding-icon", src: d }) }),
|
|
497
|
+
/* @__PURE__ */ A(Ot, { children: [
|
|
498
|
+
I && /* @__PURE__ */ s(kt, { alt: "sponsor-two-onboarding-icon", src: I }),
|
|
499
|
+
/* @__PURE__ */ s(St, { onClick: f, children: /* @__PURE__ */ s(Ut, { alt: "icon-close-onboarding", src: Se }) })
|
|
500
500
|
] })
|
|
501
501
|
] }),
|
|
502
|
-
/* @__PURE__ */ A(
|
|
503
|
-
U.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ s(
|
|
502
|
+
/* @__PURE__ */ A(Lt, { children: [
|
|
503
|
+
U.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ s(Mt, { graphic: l[v].graphic, headline: l[v].headline }),
|
|
504
504
|
U.rules && /* @__PURE__ */ s(wt, { rules: g, rulesTitle: a, primaryColor: h }),
|
|
505
505
|
U.inviteCard && /* @__PURE__ */ s(
|
|
506
|
-
|
|
506
|
+
At,
|
|
507
507
|
{
|
|
508
508
|
inviteCardTitle: y,
|
|
509
509
|
inviteCardSubtext: C,
|
|
@@ -511,34 +511,34 @@ const Et = /* @__PURE__ */ c("div")({
|
|
|
511
511
|
}
|
|
512
512
|
)
|
|
513
513
|
] }),
|
|
514
|
-
/* @__PURE__ */ s(
|
|
514
|
+
/* @__PURE__ */ s(bt, { onClick: U.inviteCard ? T : K, children: U.rules ? p || "Got it!" : U.inviteCard ? m || "Play now!" : "Next" })
|
|
515
515
|
] });
|
|
516
516
|
};
|
|
517
|
-
const
|
|
517
|
+
const Yt = /* @__PURE__ */ c("div")({
|
|
518
518
|
name: "t",
|
|
519
519
|
class: "tcim9sm",
|
|
520
520
|
propsAsIs: !1
|
|
521
|
-
}),
|
|
521
|
+
}), Bt = /* @__PURE__ */ c("div")({
|
|
522
522
|
name: "e",
|
|
523
523
|
class: "e8wco6o",
|
|
524
524
|
propsAsIs: !1
|
|
525
|
-
}),
|
|
525
|
+
}), Rt = /* @__PURE__ */ c("button")({
|
|
526
526
|
name: "n",
|
|
527
527
|
class: "n1ardwzl",
|
|
528
528
|
propsAsIs: !1
|
|
529
|
-
}),
|
|
529
|
+
}), $t = /* @__PURE__ */ c("span")({
|
|
530
530
|
name: "i",
|
|
531
531
|
class: "i1vk8ojx",
|
|
532
532
|
propsAsIs: !1
|
|
533
533
|
});
|
|
534
534
|
var ie = /* @__PURE__ */ ((t) => (t.HOME = "home", t.LEADERBOARD = "leaderboard", t))(ie || {});
|
|
535
|
-
const
|
|
536
|
-
/* @__PURE__ */ s(
|
|
535
|
+
const T1 = ({ title: t, active: r, onClick: l }) => /* @__PURE__ */ s(Rt, { onClick: l, "data-selected": r, children: /* @__PURE__ */ s($t, { children: t }) }), G1 = ({ activePage: t = "home", toggleActivePage: r }) => /* @__PURE__ */ s(Yt, { children: /* @__PURE__ */ A(Bt, { "data-position": t === "home" ? "left" : "right", children: [
|
|
536
|
+
/* @__PURE__ */ s(T1, { title: "Home", active: t === "home", onClick: () => r(
|
|
537
537
|
"home"
|
|
538
538
|
/* HOME */
|
|
539
539
|
) }),
|
|
540
540
|
/* @__PURE__ */ s(
|
|
541
|
-
|
|
541
|
+
T1,
|
|
542
542
|
{
|
|
543
543
|
title: "Leader Board",
|
|
544
544
|
active: t === "leaderboard",
|
|
@@ -549,126 +549,126 @@ const m1 = ({ title: t, active: r, onClick: l }) => /* @__PURE__ */ s(Bt, { onCl
|
|
|
549
549
|
}
|
|
550
550
|
)
|
|
551
551
|
] }) });
|
|
552
|
-
const
|
|
552
|
+
const Zt = /* @__PURE__ */ c("div")({
|
|
553
553
|
name: "o",
|
|
554
554
|
class: "oa5apdf",
|
|
555
555
|
propsAsIs: !1
|
|
556
|
-
}),
|
|
556
|
+
}), E1 = /* @__PURE__ */ c("button")({
|
|
557
557
|
name: "n",
|
|
558
558
|
class: "n1wh5guy",
|
|
559
559
|
propsAsIs: !1
|
|
560
|
-
}),
|
|
560
|
+
}), Pt = /* @__PURE__ */ c("img")({
|
|
561
561
|
name: "r",
|
|
562
562
|
class: "ro3ktps",
|
|
563
563
|
propsAsIs: !1
|
|
564
|
-
}),
|
|
564
|
+
}), Vt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", _1 = ({ icon: t, comeBack: r, close: l }) => /* @__PURE__ */ A(Zt, { children: [
|
|
565
565
|
/* @__PURE__ */ A("div", { children: [
|
|
566
|
-
r && /* @__PURE__ */ s(
|
|
567
|
-
t && /* @__PURE__ */ s(
|
|
566
|
+
r && /* @__PURE__ */ s(E1, { onClick: r, children: /* @__PURE__ */ s("img", { alt: "header-back-icon", src: Vt }) }),
|
|
567
|
+
t && /* @__PURE__ */ s(Pt, { alt: "header-icon", src: t })
|
|
568
568
|
] }),
|
|
569
|
-
/* @__PURE__ */ s("div", { children: l && /* @__PURE__ */ s(
|
|
570
|
-
] }),
|
|
571
|
-
const
|
|
569
|
+
/* @__PURE__ */ s("div", { children: l && /* @__PURE__ */ s(E1, { onClick: l, children: /* @__PURE__ */ s("img", { alt: "header-close-icon", src: Se }) }) })
|
|
570
|
+
] }), H1 = (t) => t.split(/\s+/).map((r) => r[0]).join("").toUpperCase(), Gt = (t) => t ? t.toLocaleString("en-US") : "0";
|
|
571
|
+
const _t = /* @__PURE__ */ c("div")({
|
|
572
572
|
name: "t",
|
|
573
573
|
class: "taj61ja",
|
|
574
574
|
propsAsIs: !1
|
|
575
|
-
}),
|
|
575
|
+
}), Ht = /* @__PURE__ */ c("div")({
|
|
576
576
|
name: "r",
|
|
577
577
|
class: "r19fxewd",
|
|
578
578
|
propsAsIs: !1
|
|
579
|
-
}),
|
|
579
|
+
}), Wt = /* @__PURE__ */ c("div")({
|
|
580
580
|
name: "i",
|
|
581
581
|
class: "i1whkbqh",
|
|
582
582
|
propsAsIs: !1
|
|
583
|
-
}), w1 = ({ indicator: t, title: r }) => /* @__PURE__ */ A(
|
|
584
|
-
/* @__PURE__ */ s(
|
|
585
|
-
/* @__PURE__ */ s(
|
|
583
|
+
}), w1 = ({ indicator: t, title: r }) => /* @__PURE__ */ A(_t, { children: [
|
|
584
|
+
/* @__PURE__ */ s(Ht, { children: r }),
|
|
585
|
+
/* @__PURE__ */ s(Wt, { children: t })
|
|
586
586
|
] });
|
|
587
|
-
const
|
|
587
|
+
const Ft = /* @__PURE__ */ c("div")({
|
|
588
588
|
name: "i",
|
|
589
589
|
class: "i4lbhzs",
|
|
590
590
|
propsAsIs: !1
|
|
591
|
-
}),
|
|
591
|
+
}), qt = /* @__PURE__ */ c("div")({
|
|
592
592
|
name: "o",
|
|
593
593
|
class: "ordquhq",
|
|
594
594
|
propsAsIs: !1
|
|
595
|
-
}),
|
|
595
|
+
}), Jt = /* @__PURE__ */ c("div")({
|
|
596
596
|
name: "n",
|
|
597
597
|
class: "nwzed99",
|
|
598
598
|
propsAsIs: !1
|
|
599
|
-
}), xe = ({ indicator: t, title: r }) => /* @__PURE__ */ A(
|
|
600
|
-
/* @__PURE__ */ s(
|
|
601
|
-
/* @__PURE__ */ s(
|
|
599
|
+
}), xe = ({ indicator: t, title: r }) => /* @__PURE__ */ A(Ft, { children: [
|
|
600
|
+
/* @__PURE__ */ s(qt, { children: t }),
|
|
601
|
+
/* @__PURE__ */ s(Jt, { children: r })
|
|
602
602
|
] });
|
|
603
|
-
const
|
|
603
|
+
const Xt = /* @__PURE__ */ c("div")({
|
|
604
604
|
name: "o",
|
|
605
605
|
class: "o15y0waw",
|
|
606
606
|
propsAsIs: !1
|
|
607
|
-
}),
|
|
607
|
+
}), Kt = /* @__PURE__ */ c("div")({
|
|
608
608
|
name: "i",
|
|
609
609
|
class: "ihjewwf",
|
|
610
610
|
propsAsIs: !1
|
|
611
|
-
}),
|
|
611
|
+
}), en = /* @__PURE__ */ c("div")({
|
|
612
612
|
name: "n",
|
|
613
613
|
class: "n10e9lv8",
|
|
614
614
|
propsAsIs: !1
|
|
615
|
-
}),
|
|
615
|
+
}), tn = /* @__PURE__ */ c("div")({
|
|
616
616
|
name: "r",
|
|
617
617
|
class: "r13bxv",
|
|
618
618
|
propsAsIs: !1
|
|
619
|
-
}),
|
|
619
|
+
}), nn = /* @__PURE__ */ c("img")({
|
|
620
620
|
name: "a",
|
|
621
621
|
class: "a1fi59c9",
|
|
622
622
|
propsAsIs: !1
|
|
623
|
-
}),
|
|
623
|
+
}), rn = /* @__PURE__ */ c("div")({
|
|
624
624
|
name: "s",
|
|
625
625
|
class: "s1kkihge",
|
|
626
626
|
propsAsIs: !1
|
|
627
|
-
}),
|
|
627
|
+
}), sn = /* @__PURE__ */ c("div")({
|
|
628
628
|
name: "c",
|
|
629
629
|
class: "cy4f4t",
|
|
630
630
|
propsAsIs: !1
|
|
631
|
-
}),
|
|
631
|
+
}), on = /* @__PURE__ */ c("div")({
|
|
632
632
|
name: "p",
|
|
633
633
|
class: "p18cnlx1",
|
|
634
634
|
propsAsIs: !1
|
|
635
|
-
}),
|
|
635
|
+
}), ln = /* @__PURE__ */ c("img")({
|
|
636
636
|
name: "l",
|
|
637
637
|
class: "lboqgs5",
|
|
638
638
|
propsAsIs: !1
|
|
639
|
-
}),
|
|
639
|
+
}), an = /* @__PURE__ */ c("div")({
|
|
640
640
|
name: "d",
|
|
641
641
|
class: "d1oaal4",
|
|
642
642
|
propsAsIs: !1
|
|
643
|
-
}),
|
|
643
|
+
}), cn = /* @__PURE__ */ c("div")({
|
|
644
644
|
name: "x",
|
|
645
645
|
class: "x1yzgo0u",
|
|
646
646
|
propsAsIs: !1
|
|
647
|
-
}),
|
|
647
|
+
}), Mn = /* @__PURE__ */ c("div")({
|
|
648
648
|
name: "f",
|
|
649
649
|
class: "f1l9i8s8",
|
|
650
650
|
propsAsIs: !1
|
|
651
|
-
}),
|
|
651
|
+
}), un = /* @__PURE__ */ c("div")({
|
|
652
652
|
name: "g",
|
|
653
653
|
class: "g4cgl4u",
|
|
654
654
|
propsAsIs: !1
|
|
655
|
-
}),
|
|
655
|
+
}), dn = /* @__PURE__ */ c("div")({
|
|
656
656
|
name: "h",
|
|
657
657
|
class: "h1qn1tmd",
|
|
658
658
|
propsAsIs: !1
|
|
659
|
-
}),
|
|
659
|
+
}), gn = /* @__PURE__ */ c("div")({
|
|
660
660
|
name: "u",
|
|
661
661
|
class: "u1gsbhq4",
|
|
662
662
|
propsAsIs: !1
|
|
663
|
-
}),
|
|
663
|
+
}), In = /* @__PURE__ */ c("div")({
|
|
664
664
|
name: "m",
|
|
665
665
|
class: "mvj8oco",
|
|
666
666
|
propsAsIs: !1
|
|
667
|
-
}),
|
|
667
|
+
}), pn = /* @__PURE__ */ c("button")({
|
|
668
668
|
name: "v",
|
|
669
669
|
class: "viqiaf2",
|
|
670
670
|
propsAsIs: !1
|
|
671
|
-
}),
|
|
671
|
+
}), Nn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3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
incorrect: a,
|
|
680
680
|
inTop: h,
|
|
681
681
|
average: y
|
|
682
|
-
}) => /* @__PURE__ */ A(
|
|
683
|
-
/* @__PURE__ */ s(
|
|
684
|
-
/* @__PURE__ */ A(
|
|
685
|
-
t && /* @__PURE__ */ s(
|
|
686
|
-
!t && /* @__PURE__ */ s(
|
|
682
|
+
}) => /* @__PURE__ */ A(Xt, { children: [
|
|
683
|
+
/* @__PURE__ */ s(Kt, { children: /* @__PURE__ */ A(tn, { children: [
|
|
684
|
+
/* @__PURE__ */ A(pn, { children: [
|
|
685
|
+
t && /* @__PURE__ */ s(nn, { alt: "avatar", src: t }),
|
|
686
|
+
!t && /* @__PURE__ */ s(In, { children: H1(r || "") })
|
|
687
687
|
] }),
|
|
688
|
-
/* @__PURE__ */ A(
|
|
689
|
-
/* @__PURE__ */ s(
|
|
690
|
-
/* @__PURE__ */ A(
|
|
691
|
-
/* @__PURE__ */ A(
|
|
692
|
-
/* @__PURE__ */ s(
|
|
693
|
-
/* @__PURE__ */ A(
|
|
694
|
-
|
|
695
|
-
/* @__PURE__ */ s(
|
|
688
|
+
/* @__PURE__ */ A(rn, { children: [
|
|
689
|
+
/* @__PURE__ */ s(sn, { children: r }),
|
|
690
|
+
/* @__PURE__ */ A(on, { children: [
|
|
691
|
+
/* @__PURE__ */ A(an, { children: [
|
|
692
|
+
/* @__PURE__ */ s(ln, { alt: "rank-icon", src: Nn }),
|
|
693
|
+
/* @__PURE__ */ A(cn, { children: [
|
|
694
|
+
Gt(l),
|
|
695
|
+
/* @__PURE__ */ s(Mn, { children: "PTS" })
|
|
696
696
|
] })
|
|
697
697
|
] }),
|
|
698
|
-
/* @__PURE__ */ s(
|
|
698
|
+
/* @__PURE__ */ s(un, {}),
|
|
699
699
|
/* @__PURE__ */ A("div", { children: [
|
|
700
700
|
"TOP ",
|
|
701
701
|
h || 0,
|
|
@@ -704,12 +704,12 @@ const Jt = /* @__PURE__ */ c("div")({
|
|
|
704
704
|
] })
|
|
705
705
|
] })
|
|
706
706
|
] }) }),
|
|
707
|
-
/* @__PURE__ */ A(
|
|
708
|
-
/* @__PURE__ */ A(
|
|
707
|
+
/* @__PURE__ */ A(en, { children: [
|
|
708
|
+
/* @__PURE__ */ A(dn, { children: [
|
|
709
709
|
/* @__PURE__ */ s(w1, { indicator: d || 0, title: "Friends rank" }),
|
|
710
710
|
/* @__PURE__ */ s(w1, { indicator: I || 0, title: "Global rank" })
|
|
711
711
|
] }),
|
|
712
|
-
/* @__PURE__ */ A(
|
|
712
|
+
/* @__PURE__ */ A(gn, { children: [
|
|
713
713
|
/* @__PURE__ */ s(xe, { indicator: g || 0, title: "Win streak" }),
|
|
714
714
|
/* @__PURE__ */ s(xe, { indicator: p || 0, title: "Correct" }),
|
|
715
715
|
/* @__PURE__ */ s(xe, { indicator: a || 0, title: "Incorrect" }),
|
|
@@ -717,23 +717,23 @@ const Jt = /* @__PURE__ */ c("div")({
|
|
|
717
717
|
] })
|
|
718
718
|
] })
|
|
719
719
|
] });
|
|
720
|
-
const
|
|
720
|
+
const hn = /* @__PURE__ */ c("div")({
|
|
721
721
|
name: "i",
|
|
722
722
|
class: "iqbegjm",
|
|
723
723
|
propsAsIs: !1
|
|
724
|
-
}),
|
|
725
|
-
/* @__PURE__ */ s(
|
|
726
|
-
/* @__PURE__ */ s(
|
|
724
|
+
}), W1 = ({ comeBack: t, ...r }) => /* @__PURE__ */ A(hn, { children: [
|
|
725
|
+
/* @__PURE__ */ s(_1, { comeBack: t }),
|
|
726
|
+
/* @__PURE__ */ s(c1, { ...r })
|
|
727
727
|
] });
|
|
728
|
-
const
|
|
728
|
+
const Dn = /* @__PURE__ */ c("button")({
|
|
729
729
|
name: "a",
|
|
730
730
|
class: "akly9h2",
|
|
731
731
|
propsAsIs: !1
|
|
732
|
-
}),
|
|
732
|
+
}), An = /* @__PURE__ */ c("span")({
|
|
733
733
|
name: "e",
|
|
734
734
|
class: "eptoiz9",
|
|
735
735
|
propsAsIs: !1
|
|
736
|
-
}),
|
|
736
|
+
}), yn = ({ disabled: t, variant: r = "primary", onClick: l, children: d }) => /* @__PURE__ */ s(Dn, { onClick: l, disabled: t, "data-variant": r, children: /* @__PURE__ */ s(An, { children: d }) }), F1 = {
|
|
737
737
|
[B.TWEET]: { label: "Insight", iconName: "icon-insight" },
|
|
738
738
|
[B.PROMOTION]: { label: "Insight", iconName: "icon-insight" },
|
|
739
739
|
[B.UNSET]: void 0,
|
|
@@ -742,7 +742,7 @@ const hn = /* @__PURE__ */ c("button")({
|
|
|
742
742
|
[B.TRIVIA]: { label: "Trivia", iconName: "icon-trivia" },
|
|
743
743
|
[B.PREDICTION]: { label: "Prediction", iconName: "icon-prediction" }
|
|
744
744
|
};
|
|
745
|
-
const
|
|
745
|
+
const Cn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
746
746
|
width: 24,
|
|
747
747
|
height: 24,
|
|
748
748
|
viewBox: "0 0 24 24",
|
|
@@ -755,7 +755,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
755
755
|
strokeWidth: 1.5,
|
|
756
756
|
strokeLinecap: "round",
|
|
757
757
|
strokeLinejoin: "round"
|
|
758
|
-
})),
|
|
758
|
+
})), mn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
759
759
|
width: 24,
|
|
760
760
|
height: 24,
|
|
761
761
|
viewBox: "0 0 24 24",
|
|
@@ -787,7 +787,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
787
787
|
strokeWidth: 1.5,
|
|
788
788
|
strokeLinecap: "round",
|
|
789
789
|
strokeLinejoin: "round"
|
|
790
|
-
}))),
|
|
790
|
+
}))), Tn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
791
791
|
width: 16,
|
|
792
792
|
height: 17,
|
|
793
793
|
viewBox: "0 0 16 17",
|
|
@@ -800,7 +800,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
800
800
|
id: "Vector",
|
|
801
801
|
d: "M13.4315 3.18246L5.53321 11.0808L1.99771 7.54527C1.54056 7.08811 0.799913 7.08811 0.342864 7.54527C-0.114288 8.00242 -0.114288 8.74307 0.342864 9.20011L4.70567 13.5629C4.93331 13.7906 5.23415 13.9063 5.53307 13.9063C5.83202 13.9063 6.13096 13.7924 6.36048 13.5629L15.0861 4.83731C15.5432 4.38016 15.5432 3.63951 15.0861 3.18246C14.629 2.72531 13.8884 2.72531 13.4312 3.18246H13.4315Z",
|
|
802
802
|
fill: "#00BD60"
|
|
803
|
-
}))),
|
|
803
|
+
}))), En = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
804
804
|
width: 24,
|
|
805
805
|
height: 24,
|
|
806
806
|
viewBox: "0 0 24 24",
|
|
@@ -827,7 +827,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
827
827
|
d: "M0 10C0 10.3818 0.145996 10.7075 0.449219 10.9995L9.20898 19.5684C9.44482 19.8154 9.75928 19.939 10.1187 19.939C10.8486 19.939 11.4214 19.3774 11.4214 18.6362C11.4214 18.2769 11.2754 17.9512 11.0283 17.7041L3.1333 10L11.0283 2.2959C11.2754 2.0376 11.4214 1.71191 11.4214 1.35254C11.4214 0.622559 10.8486 0.0610352 10.1187 0.0610352C9.75928 0.0610352 9.44482 0.18457 9.20898 0.431641L0.449219 9.00049C0.145996 9.29248 0.0112305 9.61816 0 10Z",
|
|
828
828
|
fill: "white",
|
|
829
829
|
fillOpacity: 0.6
|
|
830
|
-
})),
|
|
830
|
+
})), fn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
831
831
|
width: 24,
|
|
832
832
|
height: 24,
|
|
833
833
|
viewBox: "0 0 24 24",
|
|
@@ -840,7 +840,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
840
840
|
id: "Chevron_2",
|
|
841
841
|
d: "M6 11.999C6 12.1725 6.03134 12.334 6.09401 12.4837C6.15669 12.6334 6.25428 12.7756 6.3868 12.9103L14.0436 20.6565C14.2648 20.8855 14.5323 21 14.8459 21C15.0607 21 15.2544 20.9475 15.4271 20.8426C15.5998 20.7377 15.7384 20.5965 15.8431 20.4191C15.9477 20.2416 16 20.0425 16 19.8217C16 19.4989 15.8816 19.2134 15.6448 18.9654L8.74183 11.9971L15.6448 5.03271C15.8816 4.78709 16 4.5023 16 4.17834C16 3.95749 15.9477 3.75835 15.8431 3.58091C15.7384 3.40347 15.5998 3.26229 15.4271 3.15738C15.2544 3.05246 15.0607 3 14.8459 3C14.5323 3 14.2648 3.11169 14.0436 3.33508L6.3868 11.0878C6.25551 11.2225 6.15853 11.3644 6.09586 11.5134C6.03318 11.6625 6.00123 11.8244 6 11.999Z",
|
|
842
842
|
fill: "white"
|
|
843
|
-
}))),
|
|
843
|
+
}))), Ln = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
844
844
|
width: 16,
|
|
845
845
|
height: 17,
|
|
846
846
|
viewBox: "0 0 16 17",
|
|
@@ -853,7 +853,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
853
853
|
id: "Chevron_2",
|
|
854
854
|
d: "M12 8.17222C12 8.28783 11.9781 8.39553 11.9342 8.49533C11.8903 8.59513 11.822 8.68992 11.7292 8.7797L6.36949 13.9439C6.21462 14.0965 6.02742 14.1729 5.80787 14.1729C5.65752 14.1729 5.52191 14.1379 5.40104 14.0679C5.28016 13.998 5.1831 13.9039 5.10986 13.7856C5.03662 13.6673 5 13.5345 5 13.3873C5 13.1721 5.08288 12.9818 5.24863 12.8164L10.0807 8.17095L5.24863 3.52799C5.08288 3.36425 5 3.17439 5 2.95841C5 2.81118 5.03662 2.67842 5.10986 2.56013C5.1831 2.44183 5.28016 2.34771 5.40104 2.27777C5.52191 2.20782 5.65752 2.17285 5.80787 2.17285C6.02742 2.17285 6.21462 2.24731 6.36949 2.39624L11.7292 7.56473C11.8211 7.65451 11.889 7.74909 11.9329 7.84846C11.9768 7.94784 11.9991 8.05576 12 8.17222Z",
|
|
855
855
|
fill: "#FFFFFF"
|
|
856
|
-
}))),
|
|
856
|
+
}))), zn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
857
857
|
width: 24,
|
|
858
858
|
height: 24,
|
|
859
859
|
viewBox: "0 0 24 24",
|
|
@@ -868,7 +868,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
868
868
|
}), /* @__PURE__ */ D.createElement("path", {
|
|
869
869
|
d: "M10.8547 7.5429C10.524 7.23657 10.0131 7.23657 9.68243 7.5429C9.31416 7.88401 9.31384 8.46633 9.68174 8.80784L13.1206 12L9.68175 15.1922C9.31384 15.5337 9.31416 16.116 9.68243 16.4571C10.0131 16.7634 10.524 16.7634 10.8547 16.4571L14.9802 12.6358C15.3505 12.2928 15.3505 11.7072 14.9802 11.3642L10.8547 7.5429Z",
|
|
870
870
|
fill: "white"
|
|
871
|
-
})),
|
|
871
|
+
})), xn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
872
872
|
width: 10,
|
|
873
873
|
height: 10,
|
|
874
874
|
viewBox: "0 0 10 10",
|
|
@@ -893,7 +893,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
893
893
|
rx: 0.883884,
|
|
894
894
|
transform: "rotate(-45 0 8.75)",
|
|
895
895
|
fill: "white"
|
|
896
|
-
}))),
|
|
896
|
+
}))), On = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
897
897
|
width: 24,
|
|
898
898
|
height: 24,
|
|
899
899
|
viewBox: "0 0 24 24",
|
|
@@ -922,7 +922,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
922
922
|
rx: 0.883884,
|
|
923
923
|
transform: "rotate(-45 7 15.752)",
|
|
924
924
|
fill: "white"
|
|
925
|
-
})),
|
|
925
|
+
})), vn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
926
926
|
width: 40,
|
|
927
927
|
height: 40,
|
|
928
928
|
viewBox: "0 0 40 40",
|
|
@@ -941,7 +941,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
941
941
|
id: "Vector_2",
|
|
942
942
|
d: "M20 10C18.0222 10 16.0888 10.5865 14.4443 11.6853C12.7998 12.7841 11.5181 14.3459 10.7612 16.1732C10.0043 18.0004 9.8063 20.0111 10.1922 21.9509C10.578 23.8907 11.5304 25.6725 12.9289 27.0711C14.3275 28.4696 16.1093 29.422 18.0491 29.8078C19.9889 30.1937 21.9996 29.9957 23.8268 29.2388C25.6541 28.4819 27.2159 27.2002 28.3147 25.5557C29.4135 23.9112 30 21.9778 30 20C29.997 17.3488 28.9424 14.807 27.0677 12.9323C25.193 11.0576 22.6512 10.003 20 10ZM15.7143 27.4121V26.4286C15.7149 25.8604 15.9408 25.3157 16.3425 24.914C16.7443 24.5122 17.289 24.2863 17.8571 24.2857H22.1429C22.711 24.2863 23.2557 24.5122 23.6575 24.914C24.0592 25.3157 24.2851 25.8604 24.2857 26.4286V27.4121C22.9851 28.1716 21.5061 28.5718 20 28.5718C18.4939 28.5718 17.0149 28.1716 15.7143 27.4121ZM25.7086 26.3757C25.6943 25.4388 25.3126 24.545 24.6457 23.8868C23.9787 23.2287 23.0799 22.8589 22.1429 22.8571H17.8571C16.9201 22.8589 16.0213 23.2287 15.3544 23.8868C14.6874 24.545 14.3057 25.4388 14.2914 26.3757C12.9961 25.2191 12.0827 23.6963 11.672 22.009C11.2614 20.3218 11.3729 18.5495 11.9919 16.927C12.6108 15.3046 13.708 13.9083 15.1381 12.9233C16.5682 11.9382 18.2638 11.4107 20.0004 11.4107C21.7369 11.4107 23.4325 11.9382 24.8626 12.9233C26.2927 13.9083 27.3899 15.3046 28.0088 16.927C28.6278 18.5495 28.7393 20.3218 28.3287 22.009C27.9181 23.6963 27.0039 25.2191 25.7086 26.3757Z",
|
|
943
943
|
fill: "white"
|
|
944
|
-
})))),
|
|
944
|
+
})))), kn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
945
945
|
width: 24,
|
|
946
946
|
height: 24,
|
|
947
947
|
viewBox: "0 0 24 24",
|
|
@@ -970,7 +970,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
970
970
|
rx: 0.883884,
|
|
971
971
|
transform: "rotate(-45 7 15.75)",
|
|
972
972
|
fill: "white"
|
|
973
|
-
})),
|
|
973
|
+
})), Sn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
974
974
|
width: 32,
|
|
975
975
|
height: 32,
|
|
976
976
|
viewBox: "0 0 32 32",
|
|
@@ -990,7 +990,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
990
990
|
d: "M13.3898 9C12.3093 9 11.4326 9.82584 11.4326 10.8437C11.4326 11.8616 12.3093 12.6875 13.3898 12.6875C14.4704 12.6875 15.347 11.8616 15.347 10.8437C15.347 9.82584 14.4704 9 13.3898 9ZM13.3898 12.6875C13.1936 12.6875 12.9948 12.6827 12.7986 12.7451C13.191 13.2372 13.3898 13.8542 13.3898 14.5312C13.3898 14.7761 13.3287 15.0161 13.3287 15.261C13.8511 14.524 14.6946 14.0391 15.6732 13.9166C15.217 13.1796 14.3684 12.6875 13.3898 12.6875ZM18.609 9C17.5285 9 16.6518 9.82584 16.6518 10.8437C16.6518 11.8616 17.5285 12.6875 18.609 12.6875C19.6896 12.6875 20.5662 11.8616 20.5662 10.8437C20.5662 9.82584 19.6896 9 18.609 9ZM18.609 12.6875C17.6304 12.6875 16.7818 13.1796 16.3256 13.9166C17.3042 14.0391 18.1478 14.524 18.6702 15.261C18.6702 15.0161 18.609 14.7761 18.609 14.5312C18.609 13.8542 18.8078 13.2372 19.2003 12.7451C19.004 12.6827 18.8052 12.6875 18.609 12.6875Z",
|
|
991
991
|
fill: "white",
|
|
992
992
|
fillOpacity: 0.4
|
|
993
|
-
})),
|
|
993
|
+
})), Un = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
994
994
|
width: 18,
|
|
995
995
|
height: 18,
|
|
996
996
|
viewBox: "0 0 18 18",
|
|
@@ -1003,7 +1003,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1003
1003
|
id: "Vector",
|
|
1004
1004
|
d: "M11 4.965V1.125L18 7.845L11 14.565V10.629C6 10.629 2.5 12.165 0 15.525C1 10.725 4 5.925 11 4.965Z",
|
|
1005
1005
|
fill: "white"
|
|
1006
|
-
}))),
|
|
1006
|
+
}))), bn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1007
1007
|
width: 16,
|
|
1008
1008
|
height: 16,
|
|
1009
1009
|
viewBox: "0 0 16 16",
|
|
@@ -1016,7 +1016,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1016
1016
|
id: "Vector",
|
|
1017
1017
|
d: "M1.52 8C1.52 6.632 2.632 5.52 4 5.52H7.2V4L4 4C1.792 4 0 5.792 0 8C0 10.208 1.792 12 4 12H7.2L7.2 10.48H4C2.632 10.48 1.52 9.368 1.52 8ZM4.8 8.8H11.2V7.2H4.8V8.8ZM12 4H8.8V5.52L12 5.52C13.368 5.52 14.48 6.632 14.48 8C14.48 9.368 13.368 10.48 12 10.48H8.8V12H12C14.208 12 16 10.208 16 8C16 5.792 14.208 4 12 4Z",
|
|
1018
1018
|
fill: "white"
|
|
1019
|
-
}))),
|
|
1019
|
+
}))), Qn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1020
1020
|
width: 17,
|
|
1021
1021
|
height: 16,
|
|
1022
1022
|
viewBox: "0 0 17 16",
|
|
@@ -1042,7 +1042,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1042
1042
|
strokeWidth: 1.5,
|
|
1043
1043
|
strokeLinecap: "round",
|
|
1044
1044
|
strokeLinejoin: "round"
|
|
1045
|
-
})),
|
|
1045
|
+
})), Yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1046
1046
|
width: 17,
|
|
1047
1047
|
height: 18,
|
|
1048
1048
|
viewBox: "0 0 17 18",
|
|
@@ -1072,7 +1072,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1072
1072
|
strokeWidth: 1.5,
|
|
1073
1073
|
strokeLinecap: "round",
|
|
1074
1074
|
strokeLinejoin: "round"
|
|
1075
|
-
}))),
|
|
1075
|
+
}))), Bn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1076
1076
|
width: 99,
|
|
1077
1077
|
height: 96,
|
|
1078
1078
|
viewBox: "0 0 99 96",
|
|
@@ -1089,7 +1089,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1089
1089
|
id: "Vector_2",
|
|
1090
1090
|
d: "M98.1678 34.7754C97.6547 34.4147 97.3429 33.8272 97.3429 33.1882V31.4051C97.3429 29.8075 96.0752 28.5089 94.5159 28.5089H93.3891C92.041 28.5089 90.8035 29.1994 90.0691 30.3538L86.4272 36.1153C86.065 36.6822 85.4514 37.0223 84.7974 37.0223H82.3427C81.1253 37.0223 80.0086 37.7026 79.4251 38.8054C78.8215 39.9392 77.7752 40.7225 76.5679 40.9905V0.917313C76.5679 0.412276 76.1756 0 75.6726 0C75.1796 0 74.7772 0.412276 74.7772 0.917313V2.15414V13.4196V41.0111C73.5699 40.7431 72.5236 39.9598 71.92 38.8261C71.3465 37.7232 70.2298 37.043 69.0125 37.043H67.3626C66.0547 37.043 64.8676 37.8366 64.3344 39.0528L62.9661 42.2067C62.7448 42.7014 62.2619 43.0313 61.7287 43.0313C61.1955 43.0313 60.7126 42.7118 60.4913 42.2067L59.123 39.0528C58.5898 37.8263 57.4027 37.0327 56.0948 37.0327H9.52479C9.14249 37.0327 8.84068 37.3419 8.84068 37.7335C8.84068 38.5478 8.18674 39.2177 7.39196 39.2177H5.37986C4.99757 39.2177 4.69575 39.5269 4.69575 39.9186V42.3098C4.69575 44.5567 4.26315 46.7624 3.42813 48.834L2.20075 51.8643C1.05385 54.6884 0.510584 57.5846 0.520645 60.4396V67.4071C0.520645 69.2932 0.782218 71.1897 1.31542 73.0449C2.81444 78.2396 6.20483 82.4963 10.893 85.0215L18.3378 89.0412C18.4384 89.0928 18.539 89.1237 18.6497 89.1237L24.1528 89.1649C25.4405 89.1752 26.7081 89.5153 27.8248 90.1544L30.7826 91.8447C30.8832 91.9065 30.9939 91.9375 31.1146 91.9375H35.0684C36.4567 91.9375 37.825 92.3291 39.0121 93.0609C39.0121 93.0609 40.9437 94.2668 41.5977 94.6585C42.6439 95.2872 43.9116 95.885 46.1148 95.9984C46.6178 96.019 47.1108 95.8438 47.483 95.483C47.8553 95.1223 48.0666 94.6172 48.0666 94.0916V91.3809C48.0666 89.4123 49.2034 87.6292 50.964 86.8355L57.0003 84.1145C57.8252 83.7435 58.7508 83.6816 59.6059 83.9496L61.8595 84.6402C62.8152 84.9288 63.8313 84.9391 64.7972 84.6402L70.1493 83.0117C70.8636 82.7952 71.6081 82.7952 72.3325 83.022L74.5055 83.6507C75.5216 83.9496 76.2259 84.8979 76.2259 85.9801V91.4118C76.2259 93.937 78.238 95.9984 80.7028 95.9984C82.5439 95.9984 84.1636 94.7822 84.7169 92.9888C85.723 89.7421 86.2361 86.3614 86.2361 82.9499V80.6411C86.2361 79.0023 86.9001 77.415 88.0671 76.2916L90.2905 74.1375C91.7895 72.6739 92.6547 70.6228 92.6547 68.4996V55.616C92.6547 53.6164 93.2382 51.6994 94.3549 50.0606C94.4354 49.9472 94.4756 49.8029 94.4756 49.6586V46.6284C94.4756 44.6494 95.0591 42.7324 96.1557 41.1039L98.359 37.8263C98.4395 37.7129 98.4797 37.5686 98.4797 37.4346V35.3732C98.4797 34.9713 98.2584 34.8373 98.1678 34.7754ZM74.7872 69.2211C73.2882 68.9943 72.1816 68.2007 72.1816 67.2628C72.1816 66.3248 73.2882 65.5312 74.7872 65.3045V69.2211ZM76.5679 65.2941C78.0669 65.5209 79.1736 66.3145 79.1736 67.2525C79.1736 68.1904 78.0669 68.984 76.5679 69.2108V65.2941ZM12.6637 84.3928L11.5268 83.7847C8.45838 82.1356 6.00362 79.6619 4.32351 76.673V72.9109C6.24507 75.7556 8.85074 78.1881 12.05 79.9093L12.6637 80.2391V84.3928ZM18.3478 87.4643L15.3398 85.8461V81.6924L18.3378 83.3106H18.3478V87.4643ZM30.8832 90.2987L28.4989 88.9382C27.2011 88.1961 25.7322 87.7941 24.2534 87.7735V83.4343C25.5009 83.4652 26.7383 83.795 27.8349 84.4237L30.7927 86.1141C30.8229 86.1347 30.853 86.1244 30.8832 86.1347V90.2987ZM46.6983 91.3706V93.4835V94.0813C46.6983 94.2256 46.638 94.3596 46.5474 94.4523C46.4468 94.5451 46.3261 94.5966 46.1953 94.5863C44.2939 94.4833 43.1973 93.9782 42.3019 93.432C41.658 93.0403 39.7365 91.8447 39.7264 91.8447C38.5191 91.1026 37.161 90.68 35.7626 90.577V86.2377C36.9095 86.3408 38.0262 86.7016 39.0222 87.3097L40.6821 88.33C42.5031 89.4535 44.5756 90.0925 46.6983 90.2059V91.3706ZM63.1372 83.4446C62.8354 83.424 62.5436 83.3827 62.2519 83.3003L59.9983 82.6097C59.5154 82.4654 59.0124 82.4036 58.5194 82.4036V78.0644C58.8816 78.0644 59.2538 78.1056 59.6059 78.2087L61.8595 78.8992C62.272 79.0229 62.7046 79.0848 63.1372 79.1054V83.4446ZM77.2923 84.4959C76.8597 83.4549 75.9945 82.62 74.8878 82.3005L72.7248 81.6718C72.2117 81.5069 71.6785 81.445 71.1453 81.4554V77.1265C71.5578 77.1161 71.9703 77.1677 72.3727 77.3017L74.1534 77.8789C76.0347 78.487 77.3024 80.2494 77.3024 82.2696V84.4959H77.2923ZM83.5197 92.1848C83.4795 92.3085 83.4594 92.4322 83.4191 92.5559C83.0368 93.7721 81.9503 94.5863 80.7028 94.5863C80.5921 94.5863 80.4815 94.5657 80.3708 94.5554V90.2265C80.4513 90.2368 80.5318 90.2471 80.6223 90.2471C81.8396 90.2471 82.9362 89.5463 83.5197 88.495V92.1848ZM95.1799 38.0118C93.8217 40.032 93.1074 42.4025 93.1074 44.8556V46.9994L92.051 48.5661C90.6828 50.5965 89.9484 52.9774 89.9484 55.4408V66.2218C89.9484 67.9739 89.2442 69.6643 88.0067 70.8702L85.7834 73.0346C84.2944 74.4879 83.4694 76.539 83.5298 78.6519L83.5399 79.1363C83.6203 81.9398 83.2682 84.7226 82.5137 87.4127C82.2722 88.2682 81.4976 88.866 80.6223 88.866C79.5358 88.866 78.6605 87.959 78.6605 86.8562V82.2696C78.6605 79.631 77.0106 77.3326 74.5558 76.539L72.7751 75.9618C71.7892 75.6423 70.753 75.6423 69.767 75.9412L64.4149 77.5697C63.7106 77.7861 62.9661 77.7861 62.2519 77.5697L59.9983 76.8791C58.8313 76.5183 57.5637 76.6008 56.4469 77.1058L51.6883 79.2497C48.6501 80.6102 46.6883 83.6919 46.6883 87.0932V88.8454C44.817 88.732 42.986 88.1548 41.3763 87.1654L39.7163 86.145C38.3079 85.2792 36.7083 84.8257 35.0684 84.8257H31.3058L28.5089 83.2281C27.191 82.4757 25.692 82.0635 24.1729 82.0532L18.8307 82.0119L12.6938 78.7034C3.38789 73.653 -0.58601 62.367 3.45831 52.4208L4.68569 49.3906C5.6012 47.1437 6.06398 44.7628 6.06398 42.3304V40.6401H7.39196C8.70989 40.6401 9.81654 39.7021 10.1284 38.455H56.0948C56.8594 38.455 57.5637 38.9188 57.8755 39.6403L59.2438 42.7942C59.6764 43.8043 60.6522 44.4536 61.7287 44.4536C62.8052 44.4536 63.781 43.8043 64.2136 42.8045L65.5819 39.6506C65.8938 38.9291 66.5879 38.4653 67.3626 38.4653H69.0125C69.7268 38.4653 70.3807 38.8673 70.7228 39.5063C71.5679 41.1039 73.0769 42.1758 74.7872 42.4541V62.2639C72.0307 62.5731 69.918 64.2532 69.918 66.3042C69.918 68.5614 72.4934 70.3961 75.6726 70.3961C78.8517 70.3961 81.4272 68.5614 81.4272 66.3042C81.4272 64.2635 79.3145 62.5731 76.5579 62.2639V42.4438C78.2682 42.1655 79.7772 41.0936 80.6223 39.496C80.9644 38.857 81.6183 38.455 82.3326 38.455H84.7874C85.9141 38.455 86.9504 37.8778 87.5641 36.909L91.206 31.1371C91.6889 30.3847 92.4937 29.9312 93.379 29.9312H94.5058C95.3106 29.9312 95.9646 30.6012 95.9646 31.4257V33.2088C95.9646 34.0746 96.2865 34.8888 96.86 35.4969L95.1799 38.0118Z",
|
|
1091
1091
|
fill: "white"
|
|
1092
|
-
}))),
|
|
1092
|
+
}))), Rn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1093
1093
|
width: 16,
|
|
1094
1094
|
height: 15,
|
|
1095
1095
|
viewBox: "0 0 16 15",
|
|
@@ -1100,7 +1100,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1100
1100
|
id: "Start - You",
|
|
1101
1101
|
d: "M8 0L9.79611 5.52786H15.6085L10.9062 8.94427L12.7023 14.4721L8 11.0557L3.29772 14.4721L5.09383 8.94427L0.391548 5.52786H6.20389L8 0Z",
|
|
1102
1102
|
fill: "#F4D22A"
|
|
1103
|
-
})),
|
|
1103
|
+
})), $n = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1104
1104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1105
1105
|
width: 22,
|
|
1106
1106
|
height: 22,
|
|
@@ -1110,7 +1110,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1110
1110
|
}, /* @__PURE__ */ D.createElement("path", {
|
|
1111
1111
|
d: "M5.5 2.78867V12.4137C5.5 13.1729 4.88426 13.75 4.125 13.75H1.375C0.615742 13.75 0 13.1343 0 12.4137V2.82734C0 2.06808 0.615742 1.49102 1.375 1.49102H4.125C4.88555 1.41367 5.5 1.99375 5.5 2.78867ZM22 12.3707C22 13.5094 21.077 14.4323 19.9375 14.4323H13.6426C14.621 16.0613 15.1259 17.9077 15.1259 18.5582C15.125 19.5714 14.3301 20.625 12.998 20.625C10.2854 20.625 11.8654 17.3529 8.34883 14.5406L7.64844 13.982C7.14141 13.5738 6.88359 12.9766 6.8793 12.375C6.87829 12.374 6.8793 12.375 6.8793 12.375L6.875 5.5C6.875 4.85117 7.18064 4.23973 7.7 3.85043L9.16695 2.75086C10.3555 1.85625 11.8035 1.375 13.2902 1.375H15.8125C16.952 1.375 17.875 2.29754 17.875 3.43664C17.875 3.59283 17.8544 3.74357 17.8215 3.88996C18.6484 4.15937 19.25 4.92422 19.25 5.84375C19.25 6.23683 19.1341 6.60043 18.9432 6.91281C19.8988 7.08984 20.625 7.92773 20.625 8.9332C20.625 9.47031 20.4148 9.955 20.0784 10.322C21.1492 10.3941 22 11.2793 22 12.3707Z",
|
|
1112
1112
|
fill: "white"
|
|
1113
|
-
})),
|
|
1113
|
+
})), Zn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1114
1114
|
width: 12,
|
|
1115
1115
|
height: 12,
|
|
1116
1116
|
viewBox: "0 0 12 12",
|
|
@@ -1125,7 +1125,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1125
1125
|
clipRule: "evenodd",
|
|
1126
1126
|
d: "M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",
|
|
1127
1127
|
fill: "white"
|
|
1128
|
-
}))),
|
|
1128
|
+
}))), Pn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1129
1129
|
width: 12,
|
|
1130
1130
|
height: 12,
|
|
1131
1131
|
viewBox: "0 0 12 12",
|
|
@@ -1140,7 +1140,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1140
1140
|
clipRule: "evenodd",
|
|
1141
1141
|
d: "M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",
|
|
1142
1142
|
fill: "#F2C94C"
|
|
1143
|
-
}))),
|
|
1143
|
+
}))), Vn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1144
1144
|
width: 25,
|
|
1145
1145
|
height: 24,
|
|
1146
1146
|
viewBox: "0 0 25 24",
|
|
@@ -1158,7 +1158,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1158
1158
|
d: "M8.58473 1.5C6.96392 1.5 5.64893 2.73876 5.64893 4.2656C5.64893 5.79245 6.96392 7.03121 8.58473 7.03121C10.2055 7.03121 11.5205 5.79245 11.5205 4.2656C11.5205 2.73876 10.2055 1.5 8.58473 1.5ZM8.58473 7.03121C8.29038 7.03121 7.99221 7.024 7.69787 7.11763C8.28656 7.85584 8.58473 8.78131 8.58473 9.79681C8.58473 10.1641 8.49298 10.5242 8.49298 10.8915C9.27663 9.78601 10.5419 9.05859 12.0098 8.87494C11.3256 7.76942 10.0526 7.03121 8.58473 7.03121ZM16.4135 1.5C14.7927 1.5 13.4777 2.73876 13.4777 4.2656C13.4777 5.79245 14.7927 7.03121 16.4135 7.03121C18.0343 7.03121 19.3493 5.79245 19.3493 4.2656C19.3493 2.73876 18.0343 1.5 16.4135 1.5ZM16.4135 7.03121C14.9456 7.03121 13.6727 7.76942 12.9884 8.87494C14.4563 9.05859 15.7216 9.78601 16.5053 10.8915C16.5053 10.5242 16.4135 10.1641 16.4135 9.79681C16.4135 8.78131 16.7117 7.85584 17.3004 7.11763C17.006 7.024 16.7079 7.03121 16.4135 7.03121Z",
|
|
1159
1159
|
fill: "white",
|
|
1160
1160
|
fillOpacity: 0.4
|
|
1161
|
-
}))),
|
|
1161
|
+
}))), Gn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1162
1162
|
width: 18,
|
|
1163
1163
|
height: 18,
|
|
1164
1164
|
viewBox: "0 0 18 18",
|
|
@@ -1181,7 +1181,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1181
1181
|
clipRule: "evenodd",
|
|
1182
1182
|
d: "M10.6432 6.12891C10.9551 6.12891 11.2103 6.37162 11.2302 6.67846L11.2315 6.71714V7.55879L13.3334 6.46776C13.6362 6.31058 13.9959 6.51777 14.0195 6.85057L14.0207 6.88543V11.1406C14.0207 11.4763 13.6813 11.7002 13.3764 11.578L13.345 11.5641L11.2315 10.54V11.2818C11.2315 11.5937 10.9887 11.8489 10.6819 11.8688L10.6432 11.8701H5.11851C4.80663 11.8701 4.55144 11.6274 4.53152 11.3205L4.53027 11.2818V6.71714C4.53027 6.40526 4.77299 6.15007 5.07983 6.13016L5.11851 6.12891H10.6432ZM10.2897 7.07007H5.4709V10.9289H10.2897V7.07007ZM13.0792 7.65972L11.2396 8.61454V9.49831L13.0792 10.3896V7.65972Z",
|
|
1183
1183
|
fill: "#107D57"
|
|
1184
|
-
})))),
|
|
1184
|
+
})))), _n = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1185
1185
|
width: 14,
|
|
1186
1186
|
height: 17,
|
|
1187
1187
|
viewBox: "0 0 14 17",
|
|
@@ -1199,7 +1199,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1199
1199
|
id: "Icon / Games_3",
|
|
1200
1200
|
d: "M7.74941 0.00278796L1.66605 0.487981C1.18503 0.526267 0.82584 0.949506 0.864126 1.42843L1.72313 12.2036C1.76142 12.6832 2.18327 13.0438 2.66359 13.0055L3.18754 12.9637L3.97219 3.12062C4.0418 2.24421 4.81101 1.58916 5.68742 1.65878L8.7776 1.90524L8.68986 0.804714C8.65157 0.32509 8.22973 -0.0354984 7.74941 0.00278796Z",
|
|
1201
1201
|
fill: "#107D57"
|
|
1202
|
-
}))),
|
|
1202
|
+
}))), Hn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1203
1203
|
width: 19,
|
|
1204
1204
|
height: 14,
|
|
1205
1205
|
viewBox: "0 0 19 14",
|
|
@@ -1214,7 +1214,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1214
1214
|
clipRule: "evenodd",
|
|
1215
1215
|
d: "M16.8236 2.46643C16.436 2.23624 16.1759 1.81093 16.1759 1.32432C16.1759 0.59292 16.7636 0 17.4885 0C18.2134 0 18.8011 0.59292 18.8011 1.32432C18.8011 1.81093 18.541 2.23624 18.1534 2.46643C18.5192 2.51678 18.8011 2.83327 18.8011 3.2162V10.7838C18.8011 11.2017 18.4653 11.5405 18.051 11.5405H16.926L16.9147 11.5404H10.9255V11.5406V13.2433C10.9255 13.6612 10.5897 14 10.1755 14H8.67539C8.26115 14 7.92534 13.6612 7.92534 13.2433V11.5406V11.5404H1.93622L1.92493 11.5405H0.799856C0.385614 11.5405 0.0498047 11.2017 0.0498047 10.7838V3.2162C0.0498047 2.83328 0.331692 2.51678 0.697521 2.46643C0.309923 2.23624 0.0498047 1.81093 0.0498047 1.32432C0.0498047 0.59292 0.637471 0 1.36239 0C2.08732 0 2.67498 0.59292 2.67498 1.32432C2.67498 1.81093 2.41487 2.23624 2.02727 2.46643C2.16328 2.48515 2.28769 2.54066 2.39032 2.62269C4.78264 1.62379 7.12768 1.12793 9.42545 1.13511C11.7225 1.14228 14.0669 1.63872 16.4584 2.62442C16.5615 2.54144 16.6867 2.48528 16.8236 2.46643ZM1.92494 10.7837L1.92493 3.21617H0.799862V10.7837H1.92494ZM16.1759 3.32547C13.8707 2.37522 11.6209 1.89875 9.42314 1.89189C7.2272 1.88503 4.97905 2.36051 2.675 3.32285V10.7837H16.1759V3.32547ZM17.4885 1.89189C17.7992 1.89189 18.0511 1.63779 18.0511 1.32433C18.0511 1.01087 17.7992 0.75676 17.4885 0.75676C17.1778 0.75676 16.926 1.01087 16.926 1.32433C16.926 1.63779 17.1778 1.89189 17.4885 1.89189ZM16.926 3.21617V10.7837H18.0511V3.21617H16.926ZM8.67538 13.2432V11.5405H10.1755V13.2432H8.67538ZM1.3624 1.89189C1.67308 1.89189 1.92494 1.63779 1.92494 1.32433C1.92494 1.01087 1.67308 0.75676 1.3624 0.75676C1.05172 0.75676 0.799862 1.01087 0.799862 1.32433C0.799862 1.63779 1.05172 1.89189 1.3624 1.89189Z",
|
|
1216
1216
|
fill: "#107D57"
|
|
1217
|
-
}))),
|
|
1217
|
+
}))), Wn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1218
1218
|
width: 16,
|
|
1219
1219
|
height: 16,
|
|
1220
1220
|
viewBox: "0 0 16 16",
|
|
@@ -1281,7 +1281,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1281
1281
|
clipRule: "evenodd",
|
|
1282
1282
|
d: "M2.00033 8.66676C1.6316 9.03545 1.03484 9.03478 0.666788 8.66676C0.298732 8.29873 0.298065 7.70203 0.666788 7.33334C1.03551 6.96465 1.63227 6.96531 2.00033 7.33334C2.36838 7.70136 2.36905 8.29806 2.00033 8.66676Z",
|
|
1283
1283
|
fill: "#107D57"
|
|
1284
|
-
}))),
|
|
1284
|
+
}))), Fn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1285
1285
|
width: 16,
|
|
1286
1286
|
height: 16,
|
|
1287
1287
|
viewBox: "0 0 16 16",
|
|
@@ -1297,7 +1297,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1297
1297
|
d: "M9.7778 1.68421V5.05263H13.3333C13.8243 5.05263 14.2222 4.67561 14.2222 4.21053V2.52632C14.2222 2.06123 13.8243 1.68421 13.3333 1.68421H9.7778ZM2.66667 0C1.19391 0 0 1.13107 0 2.52632V4.21053C0 5.60577 1.19391 6.73684 2.66667 6.73684H13.3333C14.8061 6.73684 16 5.60577 16 4.21053V2.52632C16 1.13107 14.8061 0 13.3333 0H2.66667ZM4.44446 10.9473H13.3333C13.8243 10.9473 14.2222 11.3243 14.2222 11.7894V13.4736C14.2222 13.9387 13.8243 14.3157 13.3333 14.3157H4.44446V10.9473ZM0 11.7894C0 10.3942 1.19391 9.2631 2.66667 9.2631H13.3333C14.8061 9.2631 16 10.3942 16 11.7894V13.4736C16 14.8689 14.8061 15.9999 13.3333 15.9999H2.66667C1.19391 15.9999 0 14.8689 0 13.4736V11.7894Z",
|
|
1298
1298
|
fill: "white",
|
|
1299
1299
|
fillOpacity: 0.5
|
|
1300
|
-
}))),
|
|
1300
|
+
}))), qn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1301
1301
|
width: 16,
|
|
1302
1302
|
height: 16,
|
|
1303
1303
|
viewBox: "0 0 16 16",
|
|
@@ -1313,7 +1313,7 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1313
1313
|
d: "M16 7.00522C16 7.00522 9.20048 6.81607 9.20048 0C9.20048 6.36168 3.27729 6.95056 2.48756 7.00078L2.40094 7.00522C2.40094 7.00522 9.20048 7.19435 9.20048 14.0104C9.20048 7.64877 15.1234 7.05989 15.9131 7.00964L16 7.00522ZM6.97382 12.5652C6.97382 12.5652 3.48691 12.4724 3.48691 9.13033C3.48691 12.2496 0.449402 12.5384 0.0444186 12.563L0 12.5652C0 12.5652 3.48691 12.6579 3.48691 16C3.48691 12.8807 6.52429 12.592 6.92927 12.5673L6.97382 12.5652Z",
|
|
1314
1314
|
fill: "white",
|
|
1315
1315
|
fillOpacity: 0.5
|
|
1316
|
-
}))),
|
|
1316
|
+
}))), Jn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
1317
1317
|
width: 16,
|
|
1318
1318
|
height: 16,
|
|
1319
1319
|
viewBox: "0 0 16 16",
|
|
@@ -1329,93 +1329,93 @@ const yn = (t) => /* @__PURE__ */ D.createElement("svg", {
|
|
|
1329
1329
|
d: "M2.01663 1.3808C0.739913 1.55586 -0.153153 2.73276 0.021912 4.00948L1.3808 13.9196C1.55586 15.1963 2.73276 16.0894 4.00948 15.9143L13.9196 14.5554C15.1963 14.3803 16.0894 13.2034 15.9143 11.9267L14.5554 2.01663C14.3803 0.739913 13.2034 -0.153153 11.9267 0.021912L2.01663 1.3808ZM9.59613 3.788C9.11431 3.46991 8.47813 3.30151 7.7566 3.30151C7.54377 3.30151 7.32625 3.31671 7.10872 3.34478C6.38836 3.44067 5.68901 3.79034 5.18965 4.30138C4.68445 4.82062 4.4377 5.45563 4.51722 6.04151C4.57452 6.4742 4.90078 6.7537 5.34635 6.7537C5.39429 6.7537 5.44341 6.7502 5.49136 6.74435C6.08778 6.66483 6.21642 6.25436 6.34036 5.85675L6.34045 5.85648C6.48192 5.40401 6.61534 4.97731 7.38585 4.87444C7.46537 4.86391 7.54138 4.85806 7.61506 4.85806C8.16939 4.85806 8.51436 5.15042 8.58454 5.68252C8.65353 6.20293 8.24307 6.61807 7.80684 7.0566L7.80393 7.05954C7.31582 7.55231 6.7639 8.1095 6.86895 8.90083C6.89585 9.10548 6.9859 9.29493 7.12272 9.43644C7.27826 9.599 7.4829 9.68436 7.71331 9.68436C7.75541 9.68436 7.79868 9.68203 7.84311 9.67618C8.46691 9.59324 8.55162 9.23139 8.63338 8.8821L8.63365 8.88097L8.63661 8.86859C8.66723 8.7403 8.69877 8.60813 8.75995 8.48804C8.84649 8.31613 9.06283 8.11265 9.31428 7.87875C9.9142 7.31858 10.734 6.55143 10.582 5.41589C10.4872 4.70603 10.1551 4.15757 9.59611 3.78802L9.59613 3.788ZM8.11605 10.28C8.06927 10.28 8.02132 10.2836 7.97454 10.2894C7.38396 10.3689 6.96765 10.9127 7.04599 11.5033C7.11733 12.0377 7.57808 12.4412 8.1172 12.4412C8.16397 12.4412 8.21192 12.4377 8.25987 12.4318C8.85045 12.3523 9.2656 11.8085 9.18842 11.2179C9.11591 10.6823 8.65517 10.28 8.11605 10.28Z",
|
|
1330
1330
|
fill: "white",
|
|
1331
1331
|
fillOpacity: 0.5
|
|
1332
|
-
}))),
|
|
1333
|
-
"invite-game-icon":
|
|
1334
|
-
"icon-trophy":
|
|
1335
|
-
"icon-trophy-green":
|
|
1336
|
-
"icon-trivia":
|
|
1337
|
-
"icon-thumb-down":
|
|
1338
|
-
"icon-star":
|
|
1339
|
-
"icon-prediction":
|
|
1340
|
-
"icon-insight":
|
|
1341
|
-
"icon-poll":
|
|
1342
|
-
"icon-masters-logo":
|
|
1343
|
-
"icon-logout":
|
|
1344
|
-
"icon-link":
|
|
1345
|
-
"icon-invite-link":
|
|
1346
|
-
"icon-invite-arrow":
|
|
1347
|
-
"icon-friends":
|
|
1348
|
-
"icon-exit":
|
|
1349
|
-
"icon-default-user-avatar":
|
|
1332
|
+
}))), f1 = {
|
|
1333
|
+
"invite-game-icon": Vn,
|
|
1334
|
+
"icon-trophy": Pn,
|
|
1335
|
+
"icon-trophy-green": Zn,
|
|
1336
|
+
"icon-trivia": Jn,
|
|
1337
|
+
"icon-thumb-down": $n,
|
|
1338
|
+
"icon-star": Rn,
|
|
1339
|
+
"icon-prediction": qn,
|
|
1340
|
+
"icon-insight": Wn,
|
|
1341
|
+
"icon-poll": Fn,
|
|
1342
|
+
"icon-masters-logo": Bn,
|
|
1343
|
+
"icon-logout": Yn,
|
|
1344
|
+
"icon-link": Qn,
|
|
1345
|
+
"icon-invite-link": bn,
|
|
1346
|
+
"icon-invite-arrow": Un,
|
|
1347
|
+
"icon-friends": Sn,
|
|
1348
|
+
"icon-exit": kn,
|
|
1349
|
+
"icon-default-user-avatar": vn,
|
|
1350
1350
|
"icon-cross": jn,
|
|
1351
|
-
"icon-close":
|
|
1352
|
-
"icon-close-btn-white":
|
|
1353
|
-
"icon-circle-arrow-right":
|
|
1354
|
-
"icon-chevron":
|
|
1355
|
-
"icon-chevron-white-left":
|
|
1351
|
+
"icon-close": On,
|
|
1352
|
+
"icon-close-btn-white": xn,
|
|
1353
|
+
"icon-circle-arrow-right": zn,
|
|
1354
|
+
"icon-chevron": Ln,
|
|
1355
|
+
"icon-chevron-white-left": fn,
|
|
1356
1356
|
"icon-chevron-left": wn,
|
|
1357
|
-
"icon-check-white":
|
|
1358
|
-
"icon-check-green":
|
|
1359
|
-
"icon-btn-channels":
|
|
1360
|
-
"icon-btn-feature-groups":
|
|
1361
|
-
"icon-btn-leaderboard":
|
|
1362
|
-
"icon-check":
|
|
1363
|
-
"icon-arrow":
|
|
1357
|
+
"icon-check-white": En,
|
|
1358
|
+
"icon-check-green": Tn,
|
|
1359
|
+
"icon-btn-channels": Gn,
|
|
1360
|
+
"icon-btn-feature-groups": _n,
|
|
1361
|
+
"icon-btn-leaderboard": Hn,
|
|
1362
|
+
"icon-check": mn,
|
|
1363
|
+
"icon-arrow": Cn
|
|
1364
1364
|
}, ne = ({
|
|
1365
1365
|
name: t,
|
|
1366
1366
|
style: r,
|
|
1367
1367
|
className: l,
|
|
1368
1368
|
...d
|
|
1369
1369
|
}) => {
|
|
1370
|
-
if (!
|
|
1370
|
+
if (!f1[t])
|
|
1371
1371
|
return /* @__PURE__ */ s("span", {
|
|
1372
1372
|
children: t
|
|
1373
1373
|
});
|
|
1374
|
-
const I =
|
|
1374
|
+
const I = f1[t];
|
|
1375
1375
|
return /* @__PURE__ */ s(I, {
|
|
1376
1376
|
style: r,
|
|
1377
1377
|
className: l,
|
|
1378
1378
|
...d
|
|
1379
1379
|
});
|
|
1380
1380
|
};
|
|
1381
|
-
const
|
|
1381
|
+
const Xn = () => ne, Kn = () => ne, e2 = /* @__PURE__ */ c("div")({
|
|
1382
1382
|
name: "s",
|
|
1383
1383
|
class: "s1lblda3",
|
|
1384
1384
|
propsAsIs: !1
|
|
1385
|
-
}),
|
|
1385
|
+
}), i2 = /* @__PURE__ */ c("div")({
|
|
1386
1386
|
name: "a",
|
|
1387
1387
|
class: "ascvb2g",
|
|
1388
1388
|
propsAsIs: !1
|
|
1389
|
-
}),
|
|
1389
|
+
}), t2 = /* @__PURE__ */ c("div")({
|
|
1390
1390
|
name: "p",
|
|
1391
1391
|
class: "p17rl8zy",
|
|
1392
1392
|
propsAsIs: !1
|
|
1393
|
-
}),
|
|
1393
|
+
}), n2 = /* @__PURE__ */ c("div")({
|
|
1394
1394
|
name: "l",
|
|
1395
1395
|
class: "l1vvttbn",
|
|
1396
1396
|
propsAsIs: !1
|
|
1397
|
-
}), qe = /* @__PURE__ */ c(
|
|
1397
|
+
}), qe = /* @__PURE__ */ c(Xn())({
|
|
1398
1398
|
name: "c",
|
|
1399
1399
|
class: "c6fk2ph",
|
|
1400
1400
|
propsAsIs: !0
|
|
1401
|
-
}),
|
|
1401
|
+
}), r2 = /* @__PURE__ */ c(Kn())({
|
|
1402
1402
|
name: "d",
|
|
1403
1403
|
class: "d1rdm136",
|
|
1404
1404
|
propsAsIs: !0
|
|
1405
|
-
}),
|
|
1405
|
+
}), s2 = /* @__PURE__ */ c("div")({
|
|
1406
1406
|
name: "f",
|
|
1407
1407
|
class: "fwqnnel",
|
|
1408
1408
|
propsAsIs: !1
|
|
1409
|
-
}),
|
|
1409
|
+
}), o2 = /* @__PURE__ */ c("div")({
|
|
1410
1410
|
name: "u",
|
|
1411
1411
|
class: "ucyxnlg",
|
|
1412
1412
|
propsAsIs: !1
|
|
1413
|
-
}),
|
|
1413
|
+
}), l2 = {
|
|
1414
1414
|
[fe.LOST]: /* @__PURE__ */ s(qe, { name: "icon-cross" }),
|
|
1415
1415
|
[fe.WON]: /* @__PURE__ */ s(qe, { name: "icon-check" }),
|
|
1416
1416
|
[fe.UNSET]: void 0,
|
|
1417
1417
|
[fe.DNP]: /* @__PURE__ */ s(qe, { name: "icon-arrow" })
|
|
1418
|
-
},
|
|
1418
|
+
}, a2 = ({
|
|
1419
1419
|
questionId: t,
|
|
1420
1420
|
questionType: r,
|
|
1421
1421
|
questionStatus: l,
|
|
@@ -1424,55 +1424,55 @@ const Jn = () => ne, Xn = () => ne, Kn = /* @__PURE__ */ c("div")({
|
|
|
1424
1424
|
openQuestion: g,
|
|
1425
1425
|
status: p
|
|
1426
1426
|
}) => {
|
|
1427
|
-
const a =
|
|
1428
|
-
return a ? /* @__PURE__ */ A(
|
|
1429
|
-
/* @__PURE__ */ A(
|
|
1430
|
-
/* @__PURE__ */ A(
|
|
1431
|
-
/* @__PURE__ */ s(
|
|
1432
|
-
/* @__PURE__ */ A(
|
|
1427
|
+
const a = F1[r], h = l2[p];
|
|
1428
|
+
return a ? /* @__PURE__ */ A(e2, { onClick: () => g == null ? void 0 : g(t), children: [
|
|
1429
|
+
/* @__PURE__ */ A(o2, { children: [
|
|
1430
|
+
/* @__PURE__ */ A(i2, { children: [
|
|
1431
|
+
/* @__PURE__ */ s(r2, { name: a.iconName }),
|
|
1432
|
+
/* @__PURE__ */ A(s2, { children: [
|
|
1433
1433
|
a.label,
|
|
1434
|
-
r === B.TRIVIA && l ===
|
|
1434
|
+
r === B.TRIVIA && l === hi.RESOLVED && " • Expired"
|
|
1435
1435
|
] })
|
|
1436
1436
|
] }),
|
|
1437
|
-
/* @__PURE__ */ s(
|
|
1437
|
+
/* @__PURE__ */ s(t2, { children: d || "" })
|
|
1438
1438
|
] }),
|
|
1439
|
-
/* @__PURE__ */ s(
|
|
1439
|
+
/* @__PURE__ */ s(n2, { children: h || (I ? /* @__PURE__ */ s(yn, { children: "Play" }) : null) })
|
|
1440
1440
|
] }) : null;
|
|
1441
1441
|
};
|
|
1442
|
-
const
|
|
1442
|
+
const c2 = /* @__PURE__ */ c("div")({
|
|
1443
1443
|
name: "t",
|
|
1444
1444
|
class: "t19vr3p1",
|
|
1445
1445
|
propsAsIs: !1
|
|
1446
|
-
}),
|
|
1447
|
-
const
|
|
1446
|
+
}), q1 = ({ questions: t, openQuestion: r }) => /* @__PURE__ */ s(c2, { children: t == null ? void 0 : t.map((l) => /* @__PURE__ */ s(a2, { openQuestion: r, ...l }, l.questionId)) });
|
|
1447
|
+
const M2 = () => J1, J1 = /* @__PURE__ */ c("div")({
|
|
1448
1448
|
name: "o",
|
|
1449
1449
|
class: "o1kax5ew",
|
|
1450
1450
|
propsAsIs: !1
|
|
1451
|
-
}),
|
|
1451
|
+
}), u2 = /* @__PURE__ */ c(M2())({
|
|
1452
1452
|
name: "t",
|
|
1453
1453
|
class: "t1p0nk84",
|
|
1454
1454
|
propsAsIs: !0
|
|
1455
|
-
}),
|
|
1455
|
+
}), L1 = /* @__PURE__ */ c("div")({
|
|
1456
1456
|
name: "i",
|
|
1457
1457
|
class: "i1gklb18",
|
|
1458
1458
|
propsAsIs: !1
|
|
1459
|
-
}),
|
|
1459
|
+
}), z1 = /* @__PURE__ */ c("button")({
|
|
1460
1460
|
name: "n",
|
|
1461
1461
|
class: "n1r0688y",
|
|
1462
1462
|
propsAsIs: !1
|
|
1463
|
-
}),
|
|
1463
|
+
}), x1 = /* @__PURE__ */ c("img")({
|
|
1464
1464
|
name: "a",
|
|
1465
1465
|
class: "ax1ep2z",
|
|
1466
1466
|
propsAsIs: !1
|
|
1467
|
-
}),
|
|
1467
|
+
}), O1 = /* @__PURE__ */ c("span")({
|
|
1468
1468
|
name: "d",
|
|
1469
1469
|
class: "d1imb68z",
|
|
1470
1470
|
propsAsIs: !1
|
|
1471
|
-
}),
|
|
1471
|
+
}), v1 = /* @__PURE__ */ c("span")({
|
|
1472
1472
|
name: "s",
|
|
1473
1473
|
class: "s93t7ji",
|
|
1474
1474
|
propsAsIs: !1
|
|
1475
|
-
}),
|
|
1475
|
+
}), k1 = /* @__PURE__ */ c("div")({
|
|
1476
1476
|
name: "c",
|
|
1477
1477
|
class: "cmwdzrp",
|
|
1478
1478
|
propsAsIs: !1
|
|
@@ -1480,11 +1480,11 @@ const c2 = () => q1, q1 = /* @__PURE__ */ c("div")({
|
|
|
1480
1480
|
name: "l",
|
|
1481
1481
|
class: "lqn7nsi",
|
|
1482
1482
|
propsAsIs: !1
|
|
1483
|
-
}),
|
|
1483
|
+
}), S1 = /* @__PURE__ */ c("img")({
|
|
1484
1484
|
name: "p",
|
|
1485
1485
|
class: "p1gvpbx9",
|
|
1486
1486
|
propsAsIs: !1
|
|
1487
|
-
}), i1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1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GRkZGRkYiLz4KPC9nPgo8L3N2Zz4K", d2 = ({
|
|
1488
1488
|
icon: t,
|
|
1489
1489
|
id: r,
|
|
1490
1490
|
title: l,
|
|
@@ -1496,23 +1496,23 @@ const c2 = () => q1, q1 = /* @__PURE__ */ c("div")({
|
|
|
1496
1496
|
correct: h,
|
|
1497
1497
|
questionAnswered: y,
|
|
1498
1498
|
hasCorrectAnswer: C,
|
|
1499
|
-
answered:
|
|
1499
|
+
answered: m,
|
|
1500
1500
|
points: T,
|
|
1501
1501
|
questionType: f
|
|
1502
1502
|
}) => {
|
|
1503
1503
|
var v;
|
|
1504
|
-
return y &&
|
|
1505
|
-
|
|
1504
|
+
return y && m ? /* @__PURE__ */ A(
|
|
1505
|
+
u2,
|
|
1506
1506
|
{
|
|
1507
1507
|
"data-answeredCorrect": (v = !C || h) == null ? void 0 : v.toString(),
|
|
1508
1508
|
"data-questionAnswered": "false",
|
|
1509
1509
|
children: [
|
|
1510
|
-
/* @__PURE__ */ s(
|
|
1511
|
-
/* @__PURE__ */ A(
|
|
1512
|
-
t && /* @__PURE__ */ s(
|
|
1513
|
-
/* @__PURE__ */ s(
|
|
1514
|
-
/* @__PURE__ */ A(
|
|
1515
|
-
C && h && /* @__PURE__ */ s(
|
|
1510
|
+
/* @__PURE__ */ s(L1, { style: { width: `${g}%` } }),
|
|
1511
|
+
/* @__PURE__ */ A(z1, { disabled: I, onClick: () => p(d, r), children: [
|
|
1512
|
+
t && /* @__PURE__ */ s(x1, { alt: "option-icon", src: t }),
|
|
1513
|
+
/* @__PURE__ */ s(O1, { children: l }),
|
|
1514
|
+
/* @__PURE__ */ A(v1, { children: [
|
|
1515
|
+
C && h && /* @__PURE__ */ s(k1, { children: /* @__PURE__ */ s(S1, { alt: "icon-correct", src: m ? U1 : i1 }) }),
|
|
1516
1516
|
/* @__PURE__ */ A(Je, { children: [
|
|
1517
1517
|
g,
|
|
1518
1518
|
"%"
|
|
@@ -1521,20 +1521,20 @@ const c2 = () => q1, q1 = /* @__PURE__ */ c("div")({
|
|
|
1521
1521
|
] })
|
|
1522
1522
|
]
|
|
1523
1523
|
}
|
|
1524
|
-
) : /* @__PURE__ */ A(
|
|
1525
|
-
y && /* @__PURE__ */ s(
|
|
1524
|
+
) : /* @__PURE__ */ A(J1, { "data-questionAnswered": y == null ? void 0 : y.toString(), children: [
|
|
1525
|
+
y && /* @__PURE__ */ s(L1, { style: { width: `${g}%` } }),
|
|
1526
1526
|
/* @__PURE__ */ A(
|
|
1527
|
-
|
|
1527
|
+
z1,
|
|
1528
1528
|
{
|
|
1529
1529
|
disabled: I,
|
|
1530
1530
|
onClick: () => {
|
|
1531
1531
|
a(!0), p(d, r);
|
|
1532
1532
|
},
|
|
1533
1533
|
children: [
|
|
1534
|
-
t && /* @__PURE__ */ s(
|
|
1535
|
-
/* @__PURE__ */ s(
|
|
1536
|
-
y ? /* @__PURE__ */ A(
|
|
1537
|
-
C && h && /* @__PURE__ */ s(
|
|
1534
|
+
t && /* @__PURE__ */ s(x1, { alt: "option-icon", src: t }),
|
|
1535
|
+
/* @__PURE__ */ s(O1, { children: l }),
|
|
1536
|
+
y ? /* @__PURE__ */ A(v1, { children: [
|
|
1537
|
+
C && h && /* @__PURE__ */ s(k1, { children: /* @__PURE__ */ s(S1, { alt: "icon-correct", src: m ? U1 : i1 }) }),
|
|
1538
1538
|
/* @__PURE__ */ A(Je, { children: [
|
|
1539
1539
|
g,
|
|
1540
1540
|
"%"
|
|
@@ -1548,39 +1548,39 @@ const c2 = () => q1, q1 = /* @__PURE__ */ c("div")({
|
|
|
1548
1548
|
)
|
|
1549
1549
|
] });
|
|
1550
1550
|
};
|
|
1551
|
-
const
|
|
1551
|
+
const g2 = /* @__PURE__ */ c("div")({
|
|
1552
1552
|
name: "e",
|
|
1553
1553
|
class: "elc1eph",
|
|
1554
1554
|
propsAsIs: !1
|
|
1555
|
-
}),
|
|
1555
|
+
}), I2 = /* @__PURE__ */ c("div")({
|
|
1556
1556
|
name: "o",
|
|
1557
1557
|
class: "o1yoh29a",
|
|
1558
1558
|
propsAsIs: !1
|
|
1559
|
-
}),
|
|
1559
|
+
}), p2 = /* @__PURE__ */ c("div")({
|
|
1560
1560
|
name: "n",
|
|
1561
1561
|
class: "njkr5mb",
|
|
1562
1562
|
propsAsIs: !1
|
|
1563
|
-
}),
|
|
1563
|
+
}), N2 = /* @__PURE__ */ c("div")({
|
|
1564
1564
|
name: "a",
|
|
1565
1565
|
class: "a82wnnx",
|
|
1566
1566
|
propsAsIs: !1
|
|
1567
|
-
}),
|
|
1568
|
-
name: "l",
|
|
1569
|
-
class: "l1nz1ddv",
|
|
1570
|
-
propsAsIs: !1
|
|
1571
|
-
}), h2 = /* @__PURE__ */ c("img")({
|
|
1572
|
-
name: "r",
|
|
1573
|
-
class: "rd1fmde",
|
|
1574
|
-
propsAsIs: !1
|
|
1575
|
-
}), D2 = /* @__PURE__ */ c("div")({
|
|
1567
|
+
}), h2 = /* @__PURE__ */ c("div")({
|
|
1576
1568
|
name: "d",
|
|
1577
|
-
class: "
|
|
1569
|
+
class: "d1nz1ddv",
|
|
1570
|
+
propsAsIs: !1
|
|
1571
|
+
}), D2 = /* @__PURE__ */ c("img")({
|
|
1572
|
+
name: "l",
|
|
1573
|
+
class: "ld1fmde",
|
|
1578
1574
|
propsAsIs: !1
|
|
1579
1575
|
}), A2 = /* @__PURE__ */ c("div")({
|
|
1580
1576
|
name: "p",
|
|
1581
|
-
class: "
|
|
1577
|
+
class: "pbyqoe6",
|
|
1582
1578
|
propsAsIs: !1
|
|
1583
|
-
}), y2 =
|
|
1579
|
+
}), y2 = /* @__PURE__ */ c("div")({
|
|
1580
|
+
name: "r",
|
|
1581
|
+
class: "r4qnn76",
|
|
1582
|
+
propsAsIs: !1
|
|
1583
|
+
}), C2 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC4wMDE5NTMxMiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iMTIiIGZpbGw9IiNGODAwMjIiLz4KPHJlY3QgeD0iOC4yNSIgeT0iNy4wMDE5NSIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcuMDAxOTUpIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSI3IiB5PSIxNS43NTIiIHdpZHRoPSIxMi4zNzQ0IiBoZWlnaHQ9IjEuNzY3NzciIHJ4PSIwLjg4Mzg4NCIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ1IDcgMTUuNzUyKSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==", X1 = ({
|
|
1584
1584
|
title: t,
|
|
1585
1585
|
questionId: r,
|
|
1586
1586
|
options: l,
|
|
@@ -1597,12 +1597,12 @@ const d2 = /* @__PURE__ */ c("div")({
|
|
|
1597
1597
|
);
|
|
1598
1598
|
return te(() => {
|
|
1599
1599
|
y(!1);
|
|
1600
|
-
}, [l, y]), /* @__PURE__ */ A(
|
|
1601
|
-
/* @__PURE__ */ s(
|
|
1602
|
-
/* @__PURE__ */ A(
|
|
1603
|
-
a && /* @__PURE__ */ s(
|
|
1600
|
+
}, [l, y]), /* @__PURE__ */ A(g2, { children: [
|
|
1601
|
+
/* @__PURE__ */ s(I2, { children: t }),
|
|
1602
|
+
/* @__PURE__ */ A(p2, { children: [
|
|
1603
|
+
a && /* @__PURE__ */ s(N2, { children: "Loading..." }),
|
|
1604
1604
|
l.map((C) => /* @__PURE__ */ s(
|
|
1605
|
-
|
|
1605
|
+
d2,
|
|
1606
1606
|
{
|
|
1607
1607
|
toggleIsLoadingSubmitAnswer: y,
|
|
1608
1608
|
questionId: r,
|
|
@@ -1612,16 +1612,16 @@ const d2 = /* @__PURE__ */ c("div")({
|
|
|
1612
1612
|
C.id
|
|
1613
1613
|
))
|
|
1614
1614
|
] }),
|
|
1615
|
-
d && p === B.TRIVIA && /* @__PURE__ */ A(
|
|
1616
|
-
/* @__PURE__ */ s(
|
|
1615
|
+
d && p === B.TRIVIA && /* @__PURE__ */ A(h2, { children: [
|
|
1616
|
+
/* @__PURE__ */ s(D2, { alt: "reaction-to-answer", src: g ? i1 : C2 }),
|
|
1617
1617
|
/* @__PURE__ */ A("div", { children: [
|
|
1618
|
-
/* @__PURE__ */ s(
|
|
1619
|
-
/* @__PURE__ */ s(
|
|
1618
|
+
/* @__PURE__ */ s(A2, { children: g ? I.correctFeedback.title : I.incorrectFeedback.title }),
|
|
1619
|
+
/* @__PURE__ */ s(y2, { children: g ? I.correctFeedback.description : I.incorrectFeedback.description })
|
|
1620
1620
|
] })
|
|
1621
1621
|
] })
|
|
1622
1622
|
] });
|
|
1623
1623
|
};
|
|
1624
|
-
const
|
|
1624
|
+
const m2 = /* @__PURE__ */ c("div")({
|
|
1625
1625
|
name: "n",
|
|
1626
1626
|
class: "nyaglcf",
|
|
1627
1627
|
propsAsIs: !1
|
|
@@ -1629,11 +1629,11 @@ const C2 = /* @__PURE__ */ c("div")({
|
|
|
1629
1629
|
name: "r",
|
|
1630
1630
|
class: "rn5nzbc",
|
|
1631
1631
|
propsAsIs: !1
|
|
1632
|
-
}),
|
|
1632
|
+
}), T2 = /* @__PURE__ */ c("img")({
|
|
1633
1633
|
name: "e",
|
|
1634
1634
|
class: "e6i73qc",
|
|
1635
1635
|
propsAsIs: !1
|
|
1636
|
-
}),
|
|
1636
|
+
}), E2 = /* @__PURE__ */ c("div")({
|
|
1637
1637
|
name: "i",
|
|
1638
1638
|
class: "iu0veuw",
|
|
1639
1639
|
propsAsIs: !1
|
|
@@ -1641,69 +1641,69 @@ const C2 = /* @__PURE__ */ c("div")({
|
|
|
1641
1641
|
name: "p",
|
|
1642
1642
|
class: "ph41hsa",
|
|
1643
1643
|
propsAsIs: !1
|
|
1644
|
-
}),
|
|
1644
|
+
}), f2 = /* @__PURE__ */ c("span")({
|
|
1645
1645
|
name: "a",
|
|
1646
1646
|
class: "a1doo0j",
|
|
1647
1647
|
propsAsIs: !1
|
|
1648
|
-
}),
|
|
1648
|
+
}), L2 = /* @__PURE__ */ c("div")({
|
|
1649
1649
|
name: "s",
|
|
1650
1650
|
class: "s1y6mmdj",
|
|
1651
1651
|
propsAsIs: !1
|
|
1652
|
-
}),
|
|
1652
|
+
}), z2 = /* @__PURE__ */ c("div")({
|
|
1653
1653
|
name: "c",
|
|
1654
1654
|
class: "cr7s6d2",
|
|
1655
1655
|
propsAsIs: !1
|
|
1656
|
-
}),
|
|
1656
|
+
}), x2 = /* @__PURE__ */ c("button")({
|
|
1657
1657
|
name: "d",
|
|
1658
1658
|
class: "dn2ogfd",
|
|
1659
1659
|
propsAsIs: !1
|
|
1660
|
-
}),
|
|
1660
|
+
}), O2 = /* @__PURE__ */ c("button")({
|
|
1661
1661
|
name: "x",
|
|
1662
1662
|
class: "xvt3fwn",
|
|
1663
1663
|
propsAsIs: !1
|
|
1664
|
-
}),
|
|
1664
|
+
}), v2 = /* @__PURE__ */ c("img")({
|
|
1665
1665
|
name: "g",
|
|
1666
1666
|
class: "g4rp2wp",
|
|
1667
1667
|
propsAsIs: !1
|
|
1668
|
-
}),
|
|
1668
|
+
}), k2 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=", S2 = ({
|
|
1669
1669
|
close: t,
|
|
1670
1670
|
action: r,
|
|
1671
1671
|
data: { icon: l, header: d, title: I, subtitle: g, graphicBg: p, sponsorLogo: a }
|
|
1672
|
-
}) => /* @__PURE__ */ A(
|
|
1673
|
-
/* @__PURE__ */ s(
|
|
1674
|
-
/* @__PURE__ */ s(j2, { style: { backgroundImage: `url(${p || ""})` }, children: l && /* @__PURE__ */ s(
|
|
1675
|
-
/* @__PURE__ */ A(
|
|
1672
|
+
}) => /* @__PURE__ */ A(m2, { children: [
|
|
1673
|
+
/* @__PURE__ */ s(O2, { onClick: t, children: /* @__PURE__ */ s(v2, { alt: "icon-close-onboarding-inapp", src: k2 }) }),
|
|
1674
|
+
/* @__PURE__ */ s(j2, { style: { backgroundImage: `url(${p || ""})` }, children: l && /* @__PURE__ */ s(T2, { alt: "onboarding-inapp-icon", src: l }) }),
|
|
1675
|
+
/* @__PURE__ */ A(E2, { children: [
|
|
1676
1676
|
/* @__PURE__ */ A("div", { children: [
|
|
1677
1677
|
/* @__PURE__ */ s("div", { children: a ? /* @__PURE__ */ A(P, { children: [
|
|
1678
1678
|
/* @__PURE__ */ s(w2, { alt: "sponsor-logo", src: a }),
|
|
1679
|
-
/* @__PURE__ */ s(
|
|
1679
|
+
/* @__PURE__ */ s(f2, { children: "Presents" })
|
|
1680
1680
|
] }) : d || "" }),
|
|
1681
|
-
/* @__PURE__ */ s(
|
|
1682
|
-
/* @__PURE__ */ s(
|
|
1681
|
+
/* @__PURE__ */ s(L2, { children: I || "" }),
|
|
1682
|
+
/* @__PURE__ */ s(z2, { children: g || "" })
|
|
1683
1683
|
] }),
|
|
1684
|
-
/* @__PURE__ */ s(
|
|
1684
|
+
/* @__PURE__ */ s(x2, { onClick: r, children: "Play" })
|
|
1685
1685
|
] })
|
|
1686
1686
|
] });
|
|
1687
|
-
const
|
|
1687
|
+
const U2 = /* @__PURE__ */ c("div")({
|
|
1688
1688
|
name: "r",
|
|
1689
1689
|
class: "r1li8aub",
|
|
1690
1690
|
propsAsIs: !1
|
|
1691
|
-
}),
|
|
1692
|
-
[
|
|
1693
|
-
[
|
|
1694
|
-
},
|
|
1691
|
+
}), b2 = {
|
|
1692
|
+
[y1.ONBOARDING]: S2,
|
|
1693
|
+
[y1.QUESTION]: P1
|
|
1694
|
+
}, Q2 = ({
|
|
1695
1695
|
index: t,
|
|
1696
1696
|
total: r,
|
|
1697
1697
|
...l
|
|
1698
1698
|
}) => {
|
|
1699
|
-
const d =
|
|
1699
|
+
const d = Ai(null), I = b2[l.type] || P1;
|
|
1700
1700
|
return te(() => {
|
|
1701
1701
|
d.current !== null && l.hiding && d.current.animate([{ right: "0" }, { right: "-100%" }], {
|
|
1702
1702
|
duration: 300,
|
|
1703
1703
|
fill: "forwards"
|
|
1704
1704
|
});
|
|
1705
1705
|
}, [l.hiding]), /* @__PURE__ */ s(
|
|
1706
|
-
|
|
1706
|
+
U2,
|
|
1707
1707
|
{
|
|
1708
1708
|
ref: d,
|
|
1709
1709
|
style: { zIndex: t + 1, transform: `translateY(${100 * (r - t - 1)}%)` },
|
|
@@ -1711,14 +1711,14 @@ const S2 = /* @__PURE__ */ c("div")({
|
|
|
1711
1711
|
}
|
|
1712
1712
|
);
|
|
1713
1713
|
};
|
|
1714
|
-
const
|
|
1714
|
+
const Y2 = /* @__PURE__ */ c("div")({
|
|
1715
1715
|
name: "o",
|
|
1716
1716
|
class: "oc6h1al",
|
|
1717
1717
|
propsAsIs: !1
|
|
1718
|
-
}),
|
|
1719
|
-
const r =
|
|
1720
|
-
return /* @__PURE__ */ s(
|
|
1721
|
-
|
|
1718
|
+
}), B2 = ({ notificationsStore: t }) => {
|
|
1719
|
+
const r = E(t);
|
|
1720
|
+
return /* @__PURE__ */ s(Y2, { children: r == null ? void 0 : r.map((l, d) => /* @__PURE__ */ s(
|
|
1721
|
+
Q2,
|
|
1722
1722
|
{
|
|
1723
1723
|
index: d,
|
|
1724
1724
|
total: r.length,
|
|
@@ -1726,76 +1726,76 @@ const Q2 = /* @__PURE__ */ c("div")({
|
|
|
1726
1726
|
},
|
|
1727
1727
|
l.id
|
|
1728
1728
|
)) });
|
|
1729
|
-
},
|
|
1730
|
-
const { data: r } =
|
|
1731
|
-
return r != null && r.summary ? /* @__PURE__ */ s(
|
|
1732
|
-
},
|
|
1733
|
-
const l =
|
|
1734
|
-
return l != null && l.data ? /* @__PURE__ */ s(
|
|
1729
|
+
}, R2 = ({ store: t }) => {
|
|
1730
|
+
const { data: r } = E(t);
|
|
1731
|
+
return r != null && r.summary ? /* @__PURE__ */ s(c1, { ...r.summary, ...r.percentage }) : /* @__PURE__ */ s("div", { children: "wait user..." });
|
|
1732
|
+
}, $2 = ({ store: t, openQuestion: r }) => {
|
|
1733
|
+
const l = E(t);
|
|
1734
|
+
return l != null && l.data ? /* @__PURE__ */ s(q1, { openQuestion: r, questions: l.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
|
|
1735
1735
|
};
|
|
1736
|
-
const
|
|
1736
|
+
const Z2 = /* @__PURE__ */ c("div")({
|
|
1737
1737
|
name: "n",
|
|
1738
1738
|
class: "nyqn0wt",
|
|
1739
1739
|
propsAsIs: !1
|
|
1740
|
-
}),
|
|
1740
|
+
}), P2 = /* @__PURE__ */ c("div")({
|
|
1741
1741
|
name: "e",
|
|
1742
1742
|
class: "ev5p2si",
|
|
1743
1743
|
propsAsIs: !1
|
|
1744
|
-
}),
|
|
1744
|
+
}), V2 = /* @__PURE__ */ c("div")({
|
|
1745
1745
|
name: "o",
|
|
1746
1746
|
class: "oq05beo",
|
|
1747
1747
|
propsAsIs: !1
|
|
1748
|
-
}),
|
|
1748
|
+
}), G2 = /* @__PURE__ */ c("span")({
|
|
1749
1749
|
name: "l",
|
|
1750
1750
|
class: "l3m01sq",
|
|
1751
1751
|
propsAsIs: !1
|
|
1752
|
-
}),
|
|
1752
|
+
}), _2 = /* @__PURE__ */ c("span")({
|
|
1753
1753
|
name: "r",
|
|
1754
1754
|
class: "r16m161p",
|
|
1755
1755
|
propsAsIs: !1
|
|
1756
|
-
}), Xe = ({ points: t }) => /* @__PURE__ */ A(
|
|
1757
|
-
/* @__PURE__ */ s(
|
|
1758
|
-
/* @__PURE__ */ A(
|
|
1759
|
-
/* @__PURE__ */ s(
|
|
1760
|
-
/* @__PURE__ */ s(
|
|
1756
|
+
}), Xe = ({ points: t }) => /* @__PURE__ */ A(Z2, { children: [
|
|
1757
|
+
/* @__PURE__ */ s(P2, { children: "YOU WON" }),
|
|
1758
|
+
/* @__PURE__ */ A(V2, { children: [
|
|
1759
|
+
/* @__PURE__ */ s(G2, { children: t }),
|
|
1760
|
+
/* @__PURE__ */ s(_2, { children: "PTS" })
|
|
1761
1761
|
] })
|
|
1762
1762
|
] });
|
|
1763
|
-
const
|
|
1763
|
+
const H2 = () => (t) => t.isSuccess ? "#f1be1c" : "#da3732", W2 = /* @__PURE__ */ c("div")({
|
|
1764
1764
|
name: "n",
|
|
1765
1765
|
class: "ny64o6v",
|
|
1766
1766
|
propsAsIs: !1
|
|
1767
|
-
}),
|
|
1767
|
+
}), F2 = /* @__PURE__ */ c("img")({
|
|
1768
1768
|
name: "o",
|
|
1769
1769
|
class: "o1d4hyrc",
|
|
1770
1770
|
propsAsIs: !1
|
|
1771
|
-
}),
|
|
1771
|
+
}), q2 = /* @__PURE__ */ c("div")({
|
|
1772
1772
|
name: "r",
|
|
1773
1773
|
class: "r19vby3u",
|
|
1774
1774
|
propsAsIs: !1
|
|
1775
|
-
}),
|
|
1775
|
+
}), J2 = /* @__PURE__ */ c("button")({
|
|
1776
1776
|
name: "c",
|
|
1777
1777
|
class: "c1ti1w2c",
|
|
1778
1778
|
propsAsIs: !1
|
|
1779
|
-
}),
|
|
1779
|
+
}), X2 = /* @__PURE__ */ c("img")({
|
|
1780
1780
|
name: "d",
|
|
1781
1781
|
class: "d7y05y0",
|
|
1782
1782
|
propsAsIs: !1
|
|
1783
|
-
}),
|
|
1783
|
+
}), K2 = /* @__PURE__ */ c("div")({
|
|
1784
1784
|
name: "p",
|
|
1785
1785
|
class: "pzcal19",
|
|
1786
1786
|
propsAsIs: !1
|
|
1787
|
-
}),
|
|
1787
|
+
}), b1 = /* @__PURE__ */ c("div")({
|
|
1788
1788
|
name: "a",
|
|
1789
1789
|
class: "agj7ruu",
|
|
1790
1790
|
propsAsIs: !1,
|
|
1791
1791
|
vars: {
|
|
1792
|
-
"agj7ruu-0": [
|
|
1792
|
+
"agj7ruu-0": [H2()]
|
|
1793
1793
|
}
|
|
1794
|
-
}),
|
|
1794
|
+
}), Q1 = /* @__PURE__ */ c("img")({
|
|
1795
1795
|
name: "s",
|
|
1796
1796
|
class: "s9vh05b",
|
|
1797
1797
|
propsAsIs: !1
|
|
1798
|
-
}),
|
|
1798
|
+
}), er = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgdmlld0JveD0iMCAwIDIyIDIyIiBmaWxsPSJub25lIj4KICAgIDxwYXRoIGQ9Ik01LjUgMi43ODg2N1YxMi40MTM3QzUuNSAxMy4xNzI5IDQuODg0MjYgMTMuNzUgNC4xMjUgMTMuNzVIMS4zNzVDMC42MTU3NDIgMTMuNzUgMCAxMy4xMzQzIDAgMTIuNDEzN1YyLjgyNzM0QzAgMi4wNjgwOCAwLjYxNTc0MiAxLjQ5MTAyIDEuMzc1IDEuNDkxMDJINC4xMjVDNC44ODU1NSAxLjQxMzY3IDUuNSAxLjk5Mzc1IDUuNSAyLjc4ODY3Wk0yMiAxMi4zN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gogIDwvc3ZnPgo=", tr = ({
|
|
1799
1799
|
logo: t,
|
|
1800
1800
|
points: r,
|
|
1801
1801
|
questionAnswered: l,
|
|
@@ -1804,31 +1804,31 @@ const _2 = () => (t) => t.isSuccess ? "#f1be1c" : "#da3732", H2 = /* @__PURE__ *
|
|
|
1804
1804
|
closeQuestion: g,
|
|
1805
1805
|
setTimeToExpire: p
|
|
1806
1806
|
}) => {
|
|
1807
|
-
const a = !l && I !== B.PREDICTION, h = l && I === B.TRIVIA, y = h && d, C = h && !d,
|
|
1808
|
-
return /* @__PURE__ */ A(
|
|
1809
|
-
/* @__PURE__ */ A(
|
|
1810
|
-
/* @__PURE__ */ A(
|
|
1811
|
-
a && /* @__PURE__ */ s(
|
|
1807
|
+
const a = !l && I !== B.PREDICTION, h = l && I === B.TRIVIA, y = h && d, C = h && !d, m = l && I === B.PREDICTION;
|
|
1808
|
+
return /* @__PURE__ */ A(W2, { children: [
|
|
1809
|
+
/* @__PURE__ */ A(q2, { children: [
|
|
1810
|
+
/* @__PURE__ */ A(K2, { children: [
|
|
1811
|
+
a && /* @__PURE__ */ s(V1, { setTimeToExpire: p }),
|
|
1812
1812
|
y && /* @__PURE__ */ A(P, { children: [
|
|
1813
1813
|
/* @__PURE__ */ s(Xe, { points: r }),
|
|
1814
|
-
/* @__PURE__ */ s(
|
|
1814
|
+
/* @__PURE__ */ s(b1, { isSuccess: !0, children: /* @__PURE__ */ s(Q1, { alt: "reaction-icon", src: ir }) })
|
|
1815
1815
|
] }),
|
|
1816
1816
|
C && /* @__PURE__ */ A(P, { children: [
|
|
1817
1817
|
/* @__PURE__ */ s(Xe, { points: 0 }),
|
|
1818
|
-
/* @__PURE__ */ s(
|
|
1818
|
+
/* @__PURE__ */ s(b1, { isSuccess: !1, children: /* @__PURE__ */ s(Q1, { alt: "reaction-icon", src: er }) })
|
|
1819
1819
|
] }),
|
|
1820
|
-
|
|
1820
|
+
m && /* @__PURE__ */ s(Xe, { points: r })
|
|
1821
1821
|
] }),
|
|
1822
|
-
/* @__PURE__ */ s(
|
|
1822
|
+
/* @__PURE__ */ s(J2, { onClick: g, children: /* @__PURE__ */ s(X2, { alt: "exit-icon", src: Se }) })
|
|
1823
1823
|
] }),
|
|
1824
|
-
t && /* @__PURE__ */ s(
|
|
1824
|
+
t && /* @__PURE__ */ s(F2, { src: t })
|
|
1825
1825
|
] });
|
|
1826
1826
|
};
|
|
1827
|
-
const
|
|
1827
|
+
const nr = /* @__PURE__ */ c("div")({
|
|
1828
1828
|
name: "b",
|
|
1829
1829
|
class: "b1qd1atw",
|
|
1830
1830
|
propsAsIs: !1
|
|
1831
|
-
}),
|
|
1831
|
+
}), rr = ({
|
|
1832
1832
|
openedQuestion: t,
|
|
1833
1833
|
closeQuestion: r,
|
|
1834
1834
|
vote: l
|
|
@@ -1837,9 +1837,9 @@ const tr = /* @__PURE__ */ c("div")({
|
|
|
1837
1837
|
const [I, g] = Q(!1), p = Ne((y) => {
|
|
1838
1838
|
g(y);
|
|
1839
1839
|
}, [g]), a = J(() => t == null ? void 0 : t.answers.find((y) => y.youVoted === !0), [t]), h = J(() => !!(t != null && t.answers.find((y) => y.correct === !0)), [t]);
|
|
1840
|
-
return t ? /* @__PURE__ */ s(
|
|
1840
|
+
return t ? /* @__PURE__ */ s(nr, {
|
|
1841
1841
|
children: /* @__PURE__ */ A("div", {
|
|
1842
|
-
children: [/* @__PURE__ */ s(
|
|
1842
|
+
children: [/* @__PURE__ */ s(tr, {
|
|
1843
1843
|
points: (a == null ? void 0 : a.points) || 0,
|
|
1844
1844
|
questionAnswered: !!a,
|
|
1845
1845
|
questionAnsweredCorrectly: a == null ? void 0 : a.correct,
|
|
@@ -1848,7 +1848,7 @@ const tr = /* @__PURE__ */ c("div")({
|
|
|
1848
1848
|
setTimeToExpire: p,
|
|
1849
1849
|
questionType: t.type
|
|
1850
1850
|
}), /* @__PURE__ */ s("div", {
|
|
1851
|
-
children: /* @__PURE__ */ s(
|
|
1851
|
+
children: /* @__PURE__ */ s(X1, {
|
|
1852
1852
|
title: t.subject,
|
|
1853
1853
|
feedbackMessages: (d = t.options) == null ? void 0 : d.options.value,
|
|
1854
1854
|
questionType: t.type,
|
|
@@ -1874,78 +1874,78 @@ const tr = /* @__PURE__ */ c("div")({
|
|
|
1874
1874
|
})
|
|
1875
1875
|
}) : null;
|
|
1876
1876
|
};
|
|
1877
|
-
const
|
|
1877
|
+
const sr = /* @__PURE__ */ c("div")({
|
|
1878
1878
|
name: "e",
|
|
1879
1879
|
class: "e1q4ysxt",
|
|
1880
1880
|
propsAsIs: !1
|
|
1881
|
-
}),
|
|
1881
|
+
}), or = /* @__PURE__ */ c("div")({
|
|
1882
1882
|
name: "o",
|
|
1883
1883
|
class: "ouyy0pt",
|
|
1884
1884
|
propsAsIs: !1
|
|
1885
|
-
}),
|
|
1885
|
+
}), lr = /* @__PURE__ */ c("div")({
|
|
1886
1886
|
name: "n",
|
|
1887
1887
|
class: "n19nxf9u",
|
|
1888
1888
|
propsAsIs: !1
|
|
1889
|
-
}),
|
|
1889
|
+
}), ar = /* @__PURE__ */ c("img")({
|
|
1890
1890
|
name: "r",
|
|
1891
1891
|
class: "r1k9ayhp",
|
|
1892
1892
|
propsAsIs: !1
|
|
1893
|
-
}),
|
|
1893
|
+
}), cr = /* @__PURE__ */ c("img")({
|
|
1894
1894
|
name: "l",
|
|
1895
1895
|
class: "l5j3lzi",
|
|
1896
1896
|
propsAsIs: !1
|
|
1897
|
-
}),
|
|
1897
|
+
}), Mr = /* @__PURE__ */ c("img")({
|
|
1898
1898
|
name: "s",
|
|
1899
1899
|
class: "sm6ggfo",
|
|
1900
1900
|
propsAsIs: !1
|
|
1901
|
-
}),
|
|
1901
|
+
}), ur = /* @__PURE__ */ c("div")({
|
|
1902
1902
|
name: "p",
|
|
1903
1903
|
class: "p1dhscaj",
|
|
1904
1904
|
propsAsIs: !1
|
|
1905
|
-
}),
|
|
1905
|
+
}), dr = /* @__PURE__ */ c("img")({
|
|
1906
1906
|
name: "a",
|
|
1907
1907
|
class: "a1f5isrh",
|
|
1908
1908
|
propsAsIs: !1
|
|
1909
1909
|
});
|
|
1910
|
-
const
|
|
1910
|
+
const gr = /* @__PURE__ */ c("div")({
|
|
1911
1911
|
name: "e",
|
|
1912
1912
|
class: "e1javwmj",
|
|
1913
1913
|
propsAsIs: !1
|
|
1914
|
-
}),
|
|
1914
|
+
}), Ir = /* @__PURE__ */ c("div")({
|
|
1915
1915
|
name: "t",
|
|
1916
1916
|
class: "t1qosv8q",
|
|
1917
1917
|
propsAsIs: !1
|
|
1918
1918
|
});
|
|
1919
|
-
const
|
|
1919
|
+
const pr = /* @__PURE__ */ c("div")({
|
|
1920
1920
|
name: "t",
|
|
1921
1921
|
class: "t16hl500",
|
|
1922
1922
|
propsAsIs: !1
|
|
1923
|
-
}),
|
|
1923
|
+
}), Nr = /* @__PURE__ */ c("img")({
|
|
1924
1924
|
name: "e",
|
|
1925
1925
|
class: "e18ymslp",
|
|
1926
1926
|
propsAsIs: !1
|
|
1927
|
-
}),
|
|
1927
|
+
}), hr = /* @__PURE__ */ c("div")({
|
|
1928
1928
|
name: "n",
|
|
1929
1929
|
class: "n1kdd00k",
|
|
1930
1930
|
propsAsIs: !1
|
|
1931
|
-
}),
|
|
1931
|
+
}), Dr = /* @__PURE__ */ c("div")({
|
|
1932
1932
|
name: "r",
|
|
1933
1933
|
class: "rwwgdkm",
|
|
1934
1934
|
propsAsIs: !1
|
|
1935
|
-
}),
|
|
1935
|
+
}), Ar = /* @__PURE__ */ c("div")({
|
|
1936
1936
|
name: "d",
|
|
1937
1937
|
class: "dvazwa9",
|
|
1938
1938
|
propsAsIs: !1
|
|
1939
|
-
}),
|
|
1939
|
+
}), yr = /* @__PURE__ */ c("a")({
|
|
1940
1940
|
name: "c",
|
|
1941
1941
|
class: "cd3vh14",
|
|
1942
1942
|
propsAsIs: !1
|
|
1943
|
-
}),
|
|
1943
|
+
}), Cr = /* @__PURE__ */ c("img")({
|
|
1944
1944
|
name: "l",
|
|
1945
1945
|
class: "l19zo16x",
|
|
1946
1946
|
propsAsIs: !1
|
|
1947
1947
|
});
|
|
1948
|
-
const
|
|
1948
|
+
const mr = /* @__PURE__ */ c("div")({
|
|
1949
1949
|
name: "e",
|
|
1950
1950
|
class: "e1xvhmps",
|
|
1951
1951
|
propsAsIs: !1
|
|
@@ -1953,11 +1953,11 @@ const Cr = /* @__PURE__ */ c("div")({
|
|
|
1953
1953
|
name: "t",
|
|
1954
1954
|
class: "t1lltcmw",
|
|
1955
1955
|
propsAsIs: !1
|
|
1956
|
-
}),
|
|
1956
|
+
}), Tr = /* @__PURE__ */ c("img")({
|
|
1957
1957
|
name: "r",
|
|
1958
1958
|
class: "r1gw9pik",
|
|
1959
1959
|
propsAsIs: !1
|
|
1960
|
-
}),
|
|
1960
|
+
}), Er = /* @__PURE__ */ c("div")({
|
|
1961
1961
|
name: "n",
|
|
1962
1962
|
class: "nxxxhec",
|
|
1963
1963
|
propsAsIs: !1
|
|
@@ -1965,80 +1965,80 @@ const Cr = /* @__PURE__ */ c("div")({
|
|
|
1965
1965
|
name: "p",
|
|
1966
1966
|
class: "pm069t4",
|
|
1967
1967
|
propsAsIs: !1
|
|
1968
|
-
}),
|
|
1968
|
+
}), fr = /* @__PURE__ */ c("div")({
|
|
1969
1969
|
name: "d",
|
|
1970
1970
|
class: "d1ytmjny",
|
|
1971
1971
|
propsAsIs: !1
|
|
1972
|
-
}),
|
|
1972
|
+
}), Lr = /* @__PURE__ */ c("img")({
|
|
1973
1973
|
name: "x",
|
|
1974
1974
|
class: "xfme1wf",
|
|
1975
1975
|
propsAsIs: !1
|
|
1976
|
-
}),
|
|
1977
|
-
/* @__PURE__ */ s(jr, { alt: "icon-link", src:
|
|
1978
|
-
/* @__PURE__ */ s(
|
|
1979
|
-
/* @__PURE__ */ A(
|
|
1976
|
+
}), zr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzM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jAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlNoYXJlIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTExIDQuOTY1VjEuMTI1TDE4IDcuODQ1TDExIDE0LjU2NVYxMC42MjlDNiAxMC42MjkgMi41IDEyLjE2NSAwIDE1LjUyNUMxIDEwLjcyNSA0IDUuOTI1IDExIDQuOTY1WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", Or = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikh5cGVybGluayI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xLjUyIDhDMS41MiA2LjYzMiAyLjYzMiA1LjUyIDQgNS41Mkg3LjJWNEw0IDRDMS43OTIgNCAwIDUuNzkyIDAgOEMwIDEwLjIwOCAxLjc5MiAxMiA0IDEySDcuMkw3LjIgMTAuNDhINEMyLjYzMiAxMC40OCAxLjUyIDkuMzY4IDEuNTIgOFpNNC44IDguOEgxMS4yVjcuMkg0LjhWOC44Wk0xMiA0SDguOFY1LjUyTDEyIDUuNTJDMTMuMzY4IDUuNTIgMTQuNDggNi42MzIgMTQuNDggOEMxNC40OCA5LjM2OCAxMy4zNjggMTAuNDggMTIgMTAuNDhIOC44VjEySDEyQzE0LjIwOCAxMiAxNiAxMC4yMDggMTYgOEMxNiA1Ljc5MiAxNC4yMDggNCAxMiA0WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", vr = ({ title: t, description: r, onClick: l }) => /* @__PURE__ */ A(mr, { onClick: l, children: [
|
|
1977
|
+
/* @__PURE__ */ s(jr, { alt: "icon-link", src: Or }),
|
|
1978
|
+
/* @__PURE__ */ s(Tr, { alt: "friends-icon", src: zr }),
|
|
1979
|
+
/* @__PURE__ */ A(Er, { children: [
|
|
1980
1980
|
/* @__PURE__ */ s(wr, { children: t }),
|
|
1981
|
-
/* @__PURE__ */ s(
|
|
1981
|
+
/* @__PURE__ */ s(fr, { children: r })
|
|
1982
1982
|
] }),
|
|
1983
|
-
/* @__PURE__ */ s(
|
|
1983
|
+
/* @__PURE__ */ s(Lr, { alt: "arrow-invite-icon", src: xr })
|
|
1984
1984
|
] });
|
|
1985
|
-
const
|
|
1985
|
+
const kr = /* @__PURE__ */ c("div")({
|
|
1986
1986
|
name: "t",
|
|
1987
1987
|
class: "t1lvbkps",
|
|
1988
1988
|
propsAsIs: !1
|
|
1989
|
-
}),
|
|
1989
|
+
}), Sr = /* @__PURE__ */ c("div")({
|
|
1990
1990
|
name: "r",
|
|
1991
1991
|
class: "r2xe6fm",
|
|
1992
1992
|
propsAsIs: !1
|
|
1993
|
-
}),
|
|
1993
|
+
}), Ur = /* @__PURE__ */ c("img")({
|
|
1994
1994
|
name: "n",
|
|
1995
1995
|
class: "n1yk5k0z",
|
|
1996
1996
|
propsAsIs: !1
|
|
1997
|
-
}),
|
|
1997
|
+
}), br = /* @__PURE__ */ c("div")({
|
|
1998
1998
|
name: "o",
|
|
1999
1999
|
class: "o13yur3w",
|
|
2000
2000
|
propsAsIs: !1
|
|
2001
|
-
}),
|
|
2001
|
+
}), Qr = /* @__PURE__ */ c("div")({
|
|
2002
2002
|
name: "a",
|
|
2003
2003
|
class: "a1h2npcq",
|
|
2004
2004
|
propsAsIs: !1
|
|
2005
|
-
}),
|
|
2005
|
+
}), Yr = /* @__PURE__ */ c("div")({
|
|
2006
2006
|
name: "p",
|
|
2007
2007
|
class: "p1kxek13",
|
|
2008
2008
|
propsAsIs: !1
|
|
2009
|
-
}),
|
|
2009
|
+
}), Br = /* @__PURE__ */ c("span")({
|
|
2010
2010
|
name: "d",
|
|
2011
2011
|
class: "dlf08ok",
|
|
2012
2012
|
propsAsIs: !1
|
|
2013
|
-
}),
|
|
2013
|
+
}), Rr = /* @__PURE__ */ c("div")({
|
|
2014
2014
|
name: "s",
|
|
2015
2015
|
class: "s1hkuau3",
|
|
2016
2016
|
propsAsIs: !1
|
|
2017
|
-
}),
|
|
2017
|
+
}), $r = /* @__PURE__ */ c("span")({
|
|
2018
2018
|
name: "l",
|
|
2019
2019
|
class: "l1csgeuk",
|
|
2020
2020
|
propsAsIs: !1
|
|
2021
|
-
}),
|
|
2022
|
-
/* @__PURE__ */ s(
|
|
2023
|
-
r ? /* @__PURE__ */ s(
|
|
2024
|
-
/* @__PURE__ */ A(
|
|
2025
|
-
/* @__PURE__ */ s(
|
|
2026
|
-
/* @__PURE__ */ A(
|
|
2027
|
-
/* @__PURE__ */ s(
|
|
2021
|
+
}), Zr = ({ rank: t, avatar: r, name: l, points: d, openItemDetail: I }) => /* @__PURE__ */ A(kr, { onClick: I, children: [
|
|
2022
|
+
/* @__PURE__ */ s(Sr, { children: t || 0 }),
|
|
2023
|
+
r ? /* @__PURE__ */ s(Ur, { alt: "leaderboard-item-avatar", src: r }) : /* @__PURE__ */ s(br, { children: H1(l || "") }),
|
|
2024
|
+
/* @__PURE__ */ A(Qr, { children: [
|
|
2025
|
+
/* @__PURE__ */ s(Yr, { children: /* @__PURE__ */ s(Br, { children: l || "" }) }),
|
|
2026
|
+
/* @__PURE__ */ A(Rr, { children: [
|
|
2027
|
+
/* @__PURE__ */ s($r, { children: "PTS" }),
|
|
2028
2028
|
d || 0
|
|
2029
2029
|
] })
|
|
2030
2030
|
] })
|
|
2031
2031
|
] });
|
|
2032
|
-
const
|
|
2032
|
+
const Pr = /* @__PURE__ */ c("div")({
|
|
2033
2033
|
name: "t",
|
|
2034
2034
|
class: "t1txmonn",
|
|
2035
2035
|
propsAsIs: !1
|
|
2036
|
-
}),
|
|
2037
|
-
t.map((l) => /* @__PURE__ */ s(
|
|
2038
|
-
/* @__PURE__ */ s(
|
|
2036
|
+
}), K1 = ({ items: t, openItemDetail: r }) => /* @__PURE__ */ A(Pr, { children: [
|
|
2037
|
+
t.map((l) => /* @__PURE__ */ s(Zr, { ...l, openItemDetail: () => r(l.userId) }, l.userId)),
|
|
2038
|
+
/* @__PURE__ */ s(vr, { title: "Invite Link", description: "Challenge friends!", onClick: () => {
|
|
2039
2039
|
} })
|
|
2040
|
-
] }),
|
|
2041
|
-
const { data: r } =
|
|
2040
|
+
] }), Vr = ({ store: t }) => {
|
|
2041
|
+
const { data: r } = E(t), [l, d] = Q(void 0);
|
|
2042
2042
|
if (!r)
|
|
2043
2043
|
return /* @__PURE__ */ s("div", { children: "wait leader board..." });
|
|
2044
2044
|
const I = (g) => {
|
|
@@ -2050,9 +2050,9 @@ const Zr = /* @__PURE__ */ c("div")({
|
|
|
2050
2050
|
d(a);
|
|
2051
2051
|
};
|
|
2052
2052
|
return /* @__PURE__ */ A(P, { children: [
|
|
2053
|
-
l && /* @__PURE__ */ s(
|
|
2053
|
+
l && /* @__PURE__ */ s(W1, { comeBack: () => I(null), ...l }),
|
|
2054
2054
|
!l && /* @__PURE__ */ s(
|
|
2055
|
-
|
|
2055
|
+
K1,
|
|
2056
2056
|
{
|
|
2057
2057
|
items: r.filter((g) => g.attributes).map((g) => g.attributes),
|
|
2058
2058
|
openItemDetail: I
|
|
@@ -2064,15 +2064,15 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2064
2064
|
name: "e",
|
|
2065
2065
|
class: "e6qv3to",
|
|
2066
2066
|
propsAsIs: !1
|
|
2067
|
-
}),
|
|
2067
|
+
}), Gr = /* @__PURE__ */ c("div")({
|
|
2068
2068
|
name: "i",
|
|
2069
2069
|
class: "i1jak95i",
|
|
2070
2070
|
propsAsIs: !1
|
|
2071
|
-
}),
|
|
2071
|
+
}), _r = /* @__PURE__ */ c("div")({
|
|
2072
2072
|
name: "r",
|
|
2073
2073
|
class: "r1qp3jjx",
|
|
2074
2074
|
propsAsIs: !1
|
|
2075
|
-
}),
|
|
2075
|
+
}), Hr = /* @__PURE__ */ c("div")({
|
|
2076
2076
|
name: "n",
|
|
2077
2077
|
class: "naeizu7",
|
|
2078
2078
|
propsAsIs: !1
|
|
@@ -2080,12 +2080,12 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2080
2080
|
name: "a",
|
|
2081
2081
|
class: "a4zecne",
|
|
2082
2082
|
propsAsIs: !1
|
|
2083
|
-
}),
|
|
2083
|
+
}), Wr = ({
|
|
2084
2084
|
gamification: t,
|
|
2085
2085
|
sdk: r
|
|
2086
2086
|
}) => {
|
|
2087
|
-
var l, d, I, g, p, a, h, y, C,
|
|
2088
|
-
const Qe =
|
|
2087
|
+
var l, d, I, g, p, a, h, y, C, m, T, f, v, S, U, b, K, V, me, G, he, De, je;
|
|
2088
|
+
const Qe = E(t.status), Ye = E(t.onboardingStatus), Te = E(t.openedQuestion), { slStreamId: ae } = E(r.sdkStore), R = E(t.featureSettings), [ce, Ee] = Q(ie.HOME);
|
|
2089
2089
|
if (Qe !== Z.Ready)
|
|
2090
2090
|
return /* @__PURE__ */ s("div", { children: "wait..." });
|
|
2091
2091
|
if (ae != null && ae.loading)
|
|
@@ -2094,20 +2094,20 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2094
2094
|
return /* @__PURE__ */ s(se, { children: /* @__PURE__ */ s("div", { children: "Event is forbidden" }) });
|
|
2095
2095
|
if (!Ye)
|
|
2096
2096
|
return /* @__PURE__ */ s(se, { children: /* @__PURE__ */ s(
|
|
2097
|
-
|
|
2097
|
+
Qt,
|
|
2098
2098
|
{
|
|
2099
2099
|
closeFeature: r.closeFeature,
|
|
2100
2100
|
gamification: t,
|
|
2101
2101
|
steps: (d = (l = R.inplayGame) == null ? void 0 : l.onboarding) == null ? void 0 : d.steps,
|
|
2102
2102
|
gameIcon: (p = (g = (I = R.inplayGame) == null ? void 0 : I.overview) == null ? void 0 : g.media) == null ? void 0 : p.gameIcon,
|
|
2103
2103
|
sponsorLogo: (y = (h = (a = R.inplayGame) == null ? void 0 : a.overview) == null ? void 0 : h.media) == null ? void 0 : y.sponsorLogo,
|
|
2104
|
-
rules: (
|
|
2104
|
+
rules: (m = (C = R.inplayGame) == null ? void 0 : C.rules) == null ? void 0 : m.rules,
|
|
2105
2105
|
rulesBtnLabel: (f = (T = R.inplayGame) == null ? void 0 : T.rules) == null ? void 0 : f.buttonLabel,
|
|
2106
2106
|
rulesTitle: (S = (v = R.inplayGame) == null ? void 0 : v.rules) == null ? void 0 : S.heading,
|
|
2107
2107
|
primaryColor: (K = (b = (U = R.inplayGame) == null ? void 0 : U.overview) == null ? void 0 : b.appearance) == null ? void 0 : K.primaryColor,
|
|
2108
|
-
inviteCardTitle: (
|
|
2108
|
+
inviteCardTitle: (me = (V = R.inplayGame) == null ? void 0 : V.inviteCard) == null ? void 0 : me.heading,
|
|
2109
2109
|
inviteCardSubtext: (he = (G = R.inplayGame) == null ? void 0 : G.inviteCard) == null ? void 0 : he.subtext,
|
|
2110
|
-
inviteCardBtnLabel: (
|
|
2110
|
+
inviteCardBtnLabel: (je = (De = R.inplayGame) == null ? void 0 : De.inviteCard) == null ? void 0 : je.buttonLabel
|
|
2111
2111
|
}
|
|
2112
2112
|
) });
|
|
2113
2113
|
const Be = (re) => {
|
|
@@ -2118,39 +2118,39 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2118
2118
|
t.submitAnswer(re, Ze);
|
|
2119
2119
|
};
|
|
2120
2120
|
return /* @__PURE__ */ A(se, { children: [
|
|
2121
|
-
/* @__PURE__ */ s(
|
|
2122
|
-
|
|
2121
|
+
/* @__PURE__ */ s(G1, { activePage: ce, toggleActivePage: (re) => {
|
|
2122
|
+
Ee(re);
|
|
2123
2123
|
} }),
|
|
2124
2124
|
ce === ie.HOME && /* @__PURE__ */ A(P, { children: [
|
|
2125
|
-
/* @__PURE__ */ s(
|
|
2126
|
-
/* @__PURE__ */ A(
|
|
2127
|
-
t.questions && /* @__PURE__ */ s(
|
|
2128
|
-
Te && /* @__PURE__ */ s(
|
|
2125
|
+
/* @__PURE__ */ s(Gr, { children: t.userSummary && /* @__PURE__ */ s(R2, { store: t.userSummary.getStore() }) }),
|
|
2126
|
+
/* @__PURE__ */ A(_r, { children: [
|
|
2127
|
+
t.questions && /* @__PURE__ */ s($2, { openQuestion: Be, store: t.questions.getStore() }),
|
|
2128
|
+
Te && /* @__PURE__ */ s(rr, { closeQuestion: Re, vote: $e, openedQuestion: Te })
|
|
2129
2129
|
] })
|
|
2130
2130
|
] }),
|
|
2131
|
-
ce === ie.LEADERBOARD && t.leaderboardList && /* @__PURE__ */ s(
|
|
2131
|
+
ce === ie.LEADERBOARD && t.leaderboardList && /* @__PURE__ */ s(Vr, { store: t.leaderboardList.getStore() })
|
|
2132
2132
|
] });
|
|
2133
|
-
},
|
|
2133
|
+
}, Fr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNMTIgOC4xNzIyMkMxMiA4LjI4NzgzIDExLjk3ODEgOC4zOTU1MyAxMS45MzQyIDguNDk1MzNDMTEuODkwMyA4LjU5NTEzIDExLjgyMiA4LjY4OTkyIDExLjcyOTIgOC43Nzk3TDYuMzY5NDkgMTMuOTQzOUM2LjIxNDYyIDE0LjA5NjUgNi4wMjc0MiAxNC4xNzI5IDUuODA3ODcgMTQuMTcyOUM1LjY1NzUyIDE0LjE3MjkgNS41MjE5MSAxNC4xMzc5IDUuNDAxMDQgMTQuMDY3OUM1LjI4MDE2IDEzLjk5OCA1LjE4MzEgMTMuOTAzOSA1LjEwOTg2IDEzLjc4NTZDNS4wMzY2MiAxMy42NjczIDUgMTMuNTM0NSA1IDEzLjM4NzNDNSAxMy4xNzIxIDUuMDgyODggMTIuOTgxOCA1LjI0ODYzIDEyLjgxNjRMMTAuMDgwNyA4LjE3MDk1TDUuMjQ4NjMgMy41Mjc5OUM1LjA4Mjg4IDMuMzY0MjUgNSAzLjE3NDM5IDUgMi45NTg0MUM1IDIuODExMTggNS4wMzY2MiAyLjY3ODQyIDUuMTA5ODYgMi41NjAxM0M1LjE4MzEgMi40NDE4MyA1LjI4MDE2IDIuMzQ3NzEgNS40MDEwNCAyLjI3Nzc3QzUuNTIxOTEgMi4yMDc4MiA1LjY1NzUyIDIuMTcyODUgNS44MDc4NyAyLjE3Mjg1QzYuMDI3NDIgMi4xNzI4NSA2LjIxNDYyIDIuMjQ3MzEgNi4zNjk0OSAyLjM5NjI0TDExLjcyOTIgNy41NjQ3M0MxMS44MjExIDcuNjU0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K", qr = (t, r) => {
|
|
2134
2134
|
switch (t) {
|
|
2135
2135
|
case _e.ROUNDED:
|
|
2136
|
-
return /* @__PURE__ */ s(ar, { alt: "insight-icon", src: r });
|
|
2137
|
-
case _e.TRANSPARENT:
|
|
2138
2136
|
return /* @__PURE__ */ s(cr, { alt: "insight-icon", src: r });
|
|
2137
|
+
case _e.TRANSPARENT:
|
|
2138
|
+
return /* @__PURE__ */ s(Mr, { alt: "insight-icon", src: r });
|
|
2139
2139
|
case _e.CENTERED:
|
|
2140
|
-
return /* @__PURE__ */ s(
|
|
2140
|
+
return /* @__PURE__ */ s(ar, { alt: "insight-icon", src: r });
|
|
2141
2141
|
default:
|
|
2142
2142
|
return null;
|
|
2143
2143
|
}
|
|
2144
|
-
},
|
|
2145
|
-
/* @__PURE__ */ s(
|
|
2146
|
-
/* @__PURE__ */ A(
|
|
2147
|
-
/* @__PURE__ */ s(
|
|
2148
|
-
/* @__PURE__ */ s(
|
|
2144
|
+
}, Jr = ({ title: t, image: r, questionId: l, imageMode: d, openInsight: I }) => /* @__PURE__ */ A(sr, { onClick: () => I(l), children: [
|
|
2145
|
+
/* @__PURE__ */ s(lr, { children: r && qr(d, r) }),
|
|
2146
|
+
/* @__PURE__ */ A(or, { children: [
|
|
2147
|
+
/* @__PURE__ */ s(ur, { children: t || "" }),
|
|
2148
|
+
/* @__PURE__ */ s(dr, { alt: "next-icon", src: Fr })
|
|
2149
2149
|
] })
|
|
2150
|
-
] }),
|
|
2151
|
-
const { data: l } =
|
|
2152
|
-
return l ? /* @__PURE__ */ s(
|
|
2153
|
-
},
|
|
2150
|
+
] }), Xr = ({ insights: t, openInsight: r }) => /* @__PURE__ */ s(gr, { children: /* @__PURE__ */ s(Ir, { children: t == null ? void 0 : t.map((l) => /* @__PURE__ */ s(Jr, { openInsight: r, ...l }, l.questionId)) }) }), ei = ({ highlights: t, store: r }) => {
|
|
2151
|
+
const { data: l } = E(r);
|
|
2152
|
+
return l ? /* @__PURE__ */ s(Xr, { insights: l, openInsight: t.openHighlight }) : /* @__PURE__ */ s("div", { children: "wait insights..." });
|
|
2153
|
+
}, Kr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGFzcz0ic2MtQU5kc04ga1RWV0pFIj48cGF0aCBkPSJNNi42NjY1IDMuMTY2NjlINC45OTk4NEM0LjI2MzQ2IDMuMTY2NjkgMy42NjY1IDMuNzYzNjQgMy42NjY1IDQuNTAwMDJWMTEuNUMzLjY2NjUgMTIuMjM2NCA0LjI2MzQ2IDEyLjgzMzQgNC45OTk4NCAxMi44MzM0SDExLjk5OThDMTIuNzM2MiAxMi44MzM0IDEzLjMzMzIgMTIuMjM2NCAxMy4zMzMyIDExLjVWOS44MzMzNSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTTEzLjMzMzUgNi4xNjY2OVYzLjE2NjY5SDEwLjMzMzUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjxwYXRoIGQ9Ik0xMy4xNjY4IDMuMzMzMzFMOC4zMzM1IDguMTY2NjUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPgo=", e4 = ({
|
|
2154
2154
|
image: t,
|
|
2155
2155
|
title: r,
|
|
2156
2156
|
description: l,
|
|
@@ -2158,18 +2158,18 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2158
2158
|
webLink: I,
|
|
2159
2159
|
closeHighlights: g,
|
|
2160
2160
|
closeInsight: p
|
|
2161
|
-
}) => /* @__PURE__ */ A(
|
|
2162
|
-
/* @__PURE__ */ s(
|
|
2163
|
-
t && /* @__PURE__ */ s(
|
|
2164
|
-
/* @__PURE__ */ A(
|
|
2165
|
-
r && /* @__PURE__ */ s(
|
|
2166
|
-
l && /* @__PURE__ */ s(
|
|
2161
|
+
}) => /* @__PURE__ */ A(pr, { children: [
|
|
2162
|
+
/* @__PURE__ */ s(_1, { close: g, comeBack: p }),
|
|
2163
|
+
t && /* @__PURE__ */ s(Nr, { alt: "detail-insight-image", src: t }),
|
|
2164
|
+
/* @__PURE__ */ A(hr, { children: [
|
|
2165
|
+
r && /* @__PURE__ */ s(Dr, { children: r }),
|
|
2166
|
+
l && /* @__PURE__ */ s(Ar, { children: l })
|
|
2167
2167
|
] }),
|
|
2168
|
-
I && d && /* @__PURE__ */ A(
|
|
2168
|
+
I && d && /* @__PURE__ */ A(yr, { href: I, target: "_blank", children: [
|
|
2169
2169
|
d,
|
|
2170
|
-
/* @__PURE__ */ s(
|
|
2170
|
+
/* @__PURE__ */ s(Cr, { alt: "link-icon", src: Kr })
|
|
2171
2171
|
] })
|
|
2172
|
-
] }),
|
|
2172
|
+
] }), ii = ({ openedInsight: t, closeHighlights: r, closeInsight: l }) => {
|
|
2173
2173
|
var d, I, g, p, a;
|
|
2174
2174
|
const h = ((d = t.options) == null ? void 0 : d.options.case) === "factoid" ? {
|
|
2175
2175
|
image: t.options.options.value.image,
|
|
@@ -2178,7 +2178,7 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2178
2178
|
webLinkLabel: (g = t.options.options.value.webLink) == null ? void 0 : g.label
|
|
2179
2179
|
} : {}, y = t.subject || ((p = t.notification) == null ? void 0 : p.title), C = h.body || ((a = t.notification) == null ? void 0 : a.body);
|
|
2180
2180
|
return /* @__PURE__ */ s(
|
|
2181
|
-
|
|
2181
|
+
e4,
|
|
2182
2182
|
{
|
|
2183
2183
|
image: h.image,
|
|
2184
2184
|
title: y,
|
|
@@ -2189,12 +2189,12 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2189
2189
|
closeHighlights: r
|
|
2190
2190
|
}
|
|
2191
2191
|
);
|
|
2192
|
-
},
|
|
2193
|
-
const l =
|
|
2192
|
+
}, i4 = ({ highlights: t, sdk: r }) => {
|
|
2193
|
+
const l = E(t.status), d = E(t.openedInsight), { slStreamId: I } = E(r.sdkStore);
|
|
2194
2194
|
return l !== Z.Ready ? /* @__PURE__ */ s("div", { children: "wait..." }) : I != null && I.loading ? /* @__PURE__ */ s(se, { children: /* @__PURE__ */ s("div", { children: "Event is loading" }) }) : I != null && I.data ? t.insights === void 0 ? /* @__PURE__ */ s("div", { children: "wait insights..." }) : /* @__PURE__ */ A(se, { children: [
|
|
2195
|
-
!d && /* @__PURE__ */ s(
|
|
2195
|
+
!d && /* @__PURE__ */ s(ei, { highlights: t, store: t.insights.getStore() }),
|
|
2196
2196
|
d && /* @__PURE__ */ s(
|
|
2197
|
-
|
|
2197
|
+
ii,
|
|
2198
2198
|
{
|
|
2199
2199
|
openedInsight: d,
|
|
2200
2200
|
closeHighlights: t.closeFeature,
|
|
@@ -2203,16 +2203,16 @@ const se = /* @__PURE__ */ c("div")({
|
|
|
2203
2203
|
)
|
|
2204
2204
|
] }) : /* @__PURE__ */ s(se, { children: /* @__PURE__ */ s("div", { children: "Event is forbidden" }) });
|
|
2205
2205
|
};
|
|
2206
|
-
var
|
|
2207
|
-
Ue.byteLength =
|
|
2208
|
-
Ue.toByteArray =
|
|
2209
|
-
Ue.fromByteArray =
|
|
2210
|
-
var F = [], $ = [],
|
|
2211
|
-
for (var ge = 0,
|
|
2206
|
+
var t4 = {}, ti = {}, Ue = {};
|
|
2207
|
+
Ue.byteLength = s4;
|
|
2208
|
+
Ue.toByteArray = l4;
|
|
2209
|
+
Ue.fromByteArray = M4;
|
|
2210
|
+
var F = [], $ = [], n4 = typeof Uint8Array < "u" ? Uint8Array : Array, e1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2211
|
+
for (var ge = 0, r4 = e1.length; ge < r4; ++ge)
|
|
2212
2212
|
F[ge] = e1[ge], $[e1.charCodeAt(ge)] = ge;
|
|
2213
2213
|
$["-".charCodeAt(0)] = 62;
|
|
2214
2214
|
$["_".charCodeAt(0)] = 63;
|
|
2215
|
-
function
|
|
2215
|
+
function ni(t) {
|
|
2216
2216
|
var r = t.length;
|
|
2217
2217
|
if (r % 4 > 0)
|
|
2218
2218
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -2221,43 +2221,43 @@ function ti(t) {
|
|
|
2221
2221
|
var d = l === r ? 0 : 4 - l % 4;
|
|
2222
2222
|
return [l, d];
|
|
2223
2223
|
}
|
|
2224
|
-
function
|
|
2225
|
-
var r =
|
|
2224
|
+
function s4(t) {
|
|
2225
|
+
var r = ni(t), l = r[0], d = r[1];
|
|
2226
2226
|
return (l + d) * 3 / 4 - d;
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function o4(t, r, l) {
|
|
2229
2229
|
return (r + l) * 3 / 4 - l;
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2232
|
-
var r, l =
|
|
2231
|
+
function l4(t) {
|
|
2232
|
+
var r, l = ni(t), d = l[0], I = l[1], g = new n4(o4(t, d, I)), p = 0, a = I > 0 ? d - 4 : d, h;
|
|
2233
2233
|
for (h = 0; h < a; h += 4)
|
|
2234
2234
|
r = $[t.charCodeAt(h)] << 18 | $[t.charCodeAt(h + 1)] << 12 | $[t.charCodeAt(h + 2)] << 6 | $[t.charCodeAt(h + 3)], g[p++] = r >> 16 & 255, g[p++] = r >> 8 & 255, g[p++] = r & 255;
|
|
2235
2235
|
return I === 2 && (r = $[t.charCodeAt(h)] << 2 | $[t.charCodeAt(h + 1)] >> 4, g[p++] = r & 255), I === 1 && (r = $[t.charCodeAt(h)] << 10 | $[t.charCodeAt(h + 1)] << 4 | $[t.charCodeAt(h + 2)] >> 2, g[p++] = r >> 8 & 255, g[p++] = r & 255), g;
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2237
|
+
function a4(t) {
|
|
2238
2238
|
return F[t >> 18 & 63] + F[t >> 12 & 63] + F[t >> 6 & 63] + F[t & 63];
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function c4(t, r, l) {
|
|
2241
2241
|
for (var d, I = [], g = r; g < l; g += 3)
|
|
2242
|
-
d = (t[g] << 16 & 16711680) + (t[g + 1] << 8 & 65280) + (t[g + 2] & 255), I.push(
|
|
2242
|
+
d = (t[g] << 16 & 16711680) + (t[g + 1] << 8 & 65280) + (t[g + 2] & 255), I.push(a4(d));
|
|
2243
2243
|
return I.join("");
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function M4(t) {
|
|
2246
2246
|
for (var r, l = t.length, d = l % 3, I = [], g = 16383, p = 0, a = l - d; p < a; p += g)
|
|
2247
|
-
I.push(
|
|
2247
|
+
I.push(c4(t, p, p + g > a ? a : p + g));
|
|
2248
2248
|
return d === 1 ? (r = t[l - 1], I.push(
|
|
2249
2249
|
F[r >> 2] + F[r << 4 & 63] + "=="
|
|
2250
2250
|
)) : d === 2 && (r = (t[l - 2] << 8) + t[l - 1], I.push(
|
|
2251
2251
|
F[r >> 10] + F[r >> 4 & 63] + F[r << 2 & 63] + "="
|
|
2252
2252
|
)), I.join("");
|
|
2253
2253
|
}
|
|
2254
|
-
var
|
|
2254
|
+
var M1 = {};
|
|
2255
2255
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2256
|
-
|
|
2257
|
-
var g, p, a = I * 8 - d - 1, h = (1 << a) - 1, y = h >> 1, C = -7,
|
|
2258
|
-
for (
|
|
2256
|
+
M1.read = function(t, r, l, d, I) {
|
|
2257
|
+
var g, p, a = I * 8 - d - 1, h = (1 << a) - 1, y = h >> 1, C = -7, m = l ? I - 1 : 0, T = l ? -1 : 1, f = t[r + m];
|
|
2258
|
+
for (m += T, g = f & (1 << -C) - 1, f >>= -C, C += a; C > 0; g = g * 256 + t[r + m], m += T, C -= 8)
|
|
2259
2259
|
;
|
|
2260
|
-
for (p = g & (1 << -C) - 1, g >>= -C, C += d; C > 0; p = p * 256 + t[r +
|
|
2260
|
+
for (p = g & (1 << -C) - 1, g >>= -C, C += d; C > 0; p = p * 256 + t[r + m], m += T, C -= 8)
|
|
2261
2261
|
;
|
|
2262
2262
|
if (g === 0)
|
|
2263
2263
|
g = 1 - y;
|
|
@@ -2268,9 +2268,9 @@ c1.read = function(t, r, l, d, I) {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
return (f ? -1 : 1) * p * Math.pow(2, g - d);
|
|
2270
2270
|
};
|
|
2271
|
-
|
|
2272
|
-
var p, a, h, y = g * 8 - I - 1, C = (1 << y) - 1,
|
|
2273
|
-
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (a = isNaN(r) ? 1 : 0, p = C) : (p = Math.floor(Math.log(r) / Math.LN2), r * (h = Math.pow(2, -p)) < 1 && (p--, h *= 2), p +
|
|
2271
|
+
M1.write = function(t, r, l, d, I, g) {
|
|
2272
|
+
var p, a, h, y = g * 8 - I - 1, C = (1 << y) - 1, m = C >> 1, T = I === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, f = d ? 0 : g - 1, v = d ? 1 : -1, S = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
|
|
2273
|
+
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (a = isNaN(r) ? 1 : 0, p = C) : (p = Math.floor(Math.log(r) / Math.LN2), r * (h = Math.pow(2, -p)) < 1 && (p--, h *= 2), p + m >= 1 ? r += T / h : r += T * Math.pow(2, 1 - m), r * h >= 2 && (p++, h /= 2), p + m >= C ? (a = 0, p = C) : p + m >= 1 ? (a = (r * h - 1) * Math.pow(2, I), p = p + m) : (a = r * Math.pow(2, m - 1) * Math.pow(2, I), p = 0)); I >= 8; t[l + f] = a & 255, f += v, a /= 256, I -= 8)
|
|
2274
2274
|
;
|
|
2275
2275
|
for (p = p << I | a, y += I; y > 0; t[l + f] = p & 255, f += v, p /= 256, y -= 8)
|
|
2276
2276
|
;
|
|
@@ -2283,7 +2283,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2283
2283
|
* @license MIT
|
|
2284
2284
|
*/
|
|
2285
2285
|
(function(t) {
|
|
2286
|
-
const r = Ue, l =
|
|
2286
|
+
const r = Ue, l = M1, d = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
2287
2287
|
t.Buffer = a, t.SlowBuffer = K, t.INSPECT_MAX_BYTES = 50;
|
|
2288
2288
|
const I = 2147483647;
|
|
2289
2289
|
t.kMaxLength = I, a.TYPED_ARRAY_SUPPORT = g(), !a.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -2324,7 +2324,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2324
2324
|
throw new TypeError(
|
|
2325
2325
|
'The "string" argument must be of type string. Received type number'
|
|
2326
2326
|
);
|
|
2327
|
-
return
|
|
2327
|
+
return m(n);
|
|
2328
2328
|
}
|
|
2329
2329
|
return h(n, e, i);
|
|
2330
2330
|
}
|
|
@@ -2371,13 +2371,13 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2371
2371
|
a.alloc = function(n, e, i) {
|
|
2372
2372
|
return C(n, e, i);
|
|
2373
2373
|
};
|
|
2374
|
-
function
|
|
2374
|
+
function m(n) {
|
|
2375
2375
|
return y(n), p(n < 0 ? 0 : b(n) | 0);
|
|
2376
2376
|
}
|
|
2377
2377
|
a.allocUnsafe = function(n) {
|
|
2378
|
-
return
|
|
2378
|
+
return m(n);
|
|
2379
2379
|
}, a.allocUnsafeSlow = function(n) {
|
|
2380
|
-
return
|
|
2380
|
+
return m(n);
|
|
2381
2381
|
};
|
|
2382
2382
|
function T(n, e) {
|
|
2383
2383
|
if ((typeof e != "string" || e === "") && (e = "utf8"), !a.isEncoding(e))
|
|
@@ -2516,7 +2516,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2516
2516
|
case "hex":
|
|
2517
2517
|
return i >>> 1;
|
|
2518
2518
|
case "base64":
|
|
2519
|
-
return
|
|
2519
|
+
return A1(n).length;
|
|
2520
2520
|
default:
|
|
2521
2521
|
if (M)
|
|
2522
2522
|
return o ? -1 : Ve(n).length;
|
|
@@ -2524,7 +2524,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
a.byteLength = V;
|
|
2527
|
-
function
|
|
2527
|
+
function me(n, e, i) {
|
|
2528
2528
|
let o = !1;
|
|
2529
2529
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, e >>>= 0, i <= e))
|
|
2530
2530
|
return "";
|
|
@@ -2581,7 +2581,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2581
2581
|
return this;
|
|
2582
2582
|
}, a.prototype.toString = function() {
|
|
2583
2583
|
const e = this.length;
|
|
2584
|
-
return e === 0 ? "" : arguments.length === 0 ? ce(this, 0, e) :
|
|
2584
|
+
return e === 0 ? "" : arguments.length === 0 ? ce(this, 0, e) : me.apply(this, arguments);
|
|
2585
2585
|
}, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(e) {
|
|
2586
2586
|
if (!a.isBuffer(e))
|
|
2587
2587
|
throw new TypeError("Argument must be a Buffer");
|
|
@@ -2605,14 +2605,14 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2605
2605
|
return 1;
|
|
2606
2606
|
if (i >>>= 0, o >>>= 0, M >>>= 0, u >>>= 0, this === e)
|
|
2607
2607
|
return 0;
|
|
2608
|
-
let N = u - M,
|
|
2609
|
-
const z = Math.min(N,
|
|
2610
|
-
for (let
|
|
2611
|
-
if (L[
|
|
2612
|
-
N = L[
|
|
2608
|
+
let N = u - M, j = o - i;
|
|
2609
|
+
const z = Math.min(N, j), L = this.slice(M, u), x = e.slice(i, o);
|
|
2610
|
+
for (let w = 0; w < z; ++w)
|
|
2611
|
+
if (L[w] !== x[w]) {
|
|
2612
|
+
N = L[w], j = x[w];
|
|
2613
2613
|
break;
|
|
2614
2614
|
}
|
|
2615
|
-
return N <
|
|
2615
|
+
return N < j ? -1 : j < N ? 1 : 0;
|
|
2616
2616
|
};
|
|
2617
2617
|
function he(n, e, i, o, M) {
|
|
2618
2618
|
if (n.length === 0)
|
|
@@ -2633,29 +2633,29 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2633
2633
|
throw new TypeError("val must be string, number or Buffer");
|
|
2634
2634
|
}
|
|
2635
2635
|
function De(n, e, i, o, M) {
|
|
2636
|
-
let u = 1, N = n.length,
|
|
2636
|
+
let u = 1, N = n.length, j = e.length;
|
|
2637
2637
|
if (o !== void 0 && (o = String(o).toLowerCase(), o === "ucs2" || o === "ucs-2" || o === "utf16le" || o === "utf-16le")) {
|
|
2638
2638
|
if (n.length < 2 || e.length < 2)
|
|
2639
2639
|
return -1;
|
|
2640
|
-
u = 2, N /= 2,
|
|
2640
|
+
u = 2, N /= 2, j /= 2, i /= 2;
|
|
2641
2641
|
}
|
|
2642
|
-
function z(x,
|
|
2643
|
-
return u === 1 ? x[
|
|
2642
|
+
function z(x, w) {
|
|
2643
|
+
return u === 1 ? x[w] : x.readUInt16BE(w * u);
|
|
2644
2644
|
}
|
|
2645
2645
|
let L;
|
|
2646
2646
|
if (M) {
|
|
2647
2647
|
let x = -1;
|
|
2648
2648
|
for (L = i; L < N; L++)
|
|
2649
2649
|
if (z(n, L) === z(e, x === -1 ? 0 : L - x)) {
|
|
2650
|
-
if (x === -1 && (x = L), L - x + 1 ===
|
|
2650
|
+
if (x === -1 && (x = L), L - x + 1 === j)
|
|
2651
2651
|
return x * u;
|
|
2652
2652
|
} else
|
|
2653
2653
|
x !== -1 && (L -= L - x), x = -1;
|
|
2654
2654
|
} else
|
|
2655
|
-
for (i +
|
|
2655
|
+
for (i + j > N && (i = N - j), L = i; L >= 0; L--) {
|
|
2656
2656
|
let x = !0;
|
|
2657
|
-
for (let
|
|
2658
|
-
if (z(n, L +
|
|
2657
|
+
for (let w = 0; w < j; w++)
|
|
2658
|
+
if (z(n, L + w) !== z(e, w)) {
|
|
2659
2659
|
x = !1;
|
|
2660
2660
|
break;
|
|
2661
2661
|
}
|
|
@@ -2671,7 +2671,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2671
2671
|
}, a.prototype.lastIndexOf = function(e, i, o) {
|
|
2672
2672
|
return he(this, e, i, o, !1);
|
|
2673
2673
|
};
|
|
2674
|
-
function
|
|
2674
|
+
function je(n, e, i, o) {
|
|
2675
2675
|
i = Number(i) || 0;
|
|
2676
2676
|
const M = n.length - i;
|
|
2677
2677
|
o ? (o = Number(o), o > M && (o = M)) : o = M;
|
|
@@ -2679,24 +2679,24 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2679
2679
|
o > u / 2 && (o = u / 2);
|
|
2680
2680
|
let N;
|
|
2681
2681
|
for (N = 0; N < o; ++N) {
|
|
2682
|
-
const
|
|
2683
|
-
if (Ge(
|
|
2682
|
+
const j = parseInt(e.substr(N * 2, 2), 16);
|
|
2683
|
+
if (Ge(j))
|
|
2684
2684
|
return N;
|
|
2685
|
-
n[i + N] =
|
|
2685
|
+
n[i + N] = j;
|
|
2686
2686
|
}
|
|
2687
2687
|
return N;
|
|
2688
2688
|
}
|
|
2689
2689
|
function Qe(n, e, i, o) {
|
|
2690
|
-
return
|
|
2690
|
+
return we(Ve(e, n.length - i), n, i, o);
|
|
2691
2691
|
}
|
|
2692
2692
|
function Ye(n, e, i, o) {
|
|
2693
|
-
return
|
|
2693
|
+
return we(gi(e), n, i, o);
|
|
2694
2694
|
}
|
|
2695
2695
|
function Te(n, e, i, o) {
|
|
2696
|
-
return
|
|
2696
|
+
return we(A1(e), n, i, o);
|
|
2697
2697
|
}
|
|
2698
2698
|
function ae(n, e, i, o) {
|
|
2699
|
-
return
|
|
2699
|
+
return we(Ii(e, n.length - i), n, i, o);
|
|
2700
2700
|
}
|
|
2701
2701
|
a.prototype.write = function(e, i, o, M) {
|
|
2702
2702
|
if (i === void 0)
|
|
@@ -2717,7 +2717,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2717
2717
|
for (; ; )
|
|
2718
2718
|
switch (M) {
|
|
2719
2719
|
case "hex":
|
|
2720
|
-
return
|
|
2720
|
+
return je(this, e, i, o);
|
|
2721
2721
|
case "utf8":
|
|
2722
2722
|
case "utf-8":
|
|
2723
2723
|
return Qe(this, e, i, o);
|
|
@@ -2752,37 +2752,37 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2752
2752
|
let M = e;
|
|
2753
2753
|
for (; M < i; ) {
|
|
2754
2754
|
const u = n[M];
|
|
2755
|
-
let N = null,
|
|
2756
|
-
if (M +
|
|
2757
|
-
let z, L, x,
|
|
2758
|
-
switch (
|
|
2755
|
+
let N = null, j = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
|
|
2756
|
+
if (M + j <= i) {
|
|
2757
|
+
let z, L, x, w;
|
|
2758
|
+
switch (j) {
|
|
2759
2759
|
case 1:
|
|
2760
2760
|
u < 128 && (N = u);
|
|
2761
2761
|
break;
|
|
2762
2762
|
case 2:
|
|
2763
|
-
z = n[M + 1], (z & 192) === 128 && (
|
|
2763
|
+
z = n[M + 1], (z & 192) === 128 && (w = (u & 31) << 6 | z & 63, w > 127 && (N = w));
|
|
2764
2764
|
break;
|
|
2765
2765
|
case 3:
|
|
2766
|
-
z = n[M + 1], L = n[M + 2], (z & 192) === 128 && (L & 192) === 128 && (
|
|
2766
|
+
z = n[M + 1], L = n[M + 2], (z & 192) === 128 && (L & 192) === 128 && (w = (u & 15) << 12 | (z & 63) << 6 | L & 63, w > 2047 && (w < 55296 || w > 57343) && (N = w));
|
|
2767
2767
|
break;
|
|
2768
2768
|
case 4:
|
|
2769
|
-
z = n[M + 1], L = n[M + 2], x = n[M + 3], (z & 192) === 128 && (L & 192) === 128 && (x & 192) === 128 && (
|
|
2769
|
+
z = n[M + 1], L = n[M + 2], x = n[M + 3], (z & 192) === 128 && (L & 192) === 128 && (x & 192) === 128 && (w = (u & 15) << 18 | (z & 63) << 12 | (L & 63) << 6 | x & 63, w > 65535 && w < 1114112 && (N = w));
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
|
-
N === null ? (N = 65533,
|
|
2772
|
+
N === null ? (N = 65533, j = 1) : N > 65535 && (N -= 65536, o.push(N >>> 10 & 1023 | 55296), N = 56320 | N & 1023), o.push(N), M += j;
|
|
2773
2773
|
}
|
|
2774
2774
|
return Be(o);
|
|
2775
2775
|
}
|
|
2776
|
-
const
|
|
2776
|
+
const Ee = 4096;
|
|
2777
2777
|
function Be(n) {
|
|
2778
2778
|
const e = n.length;
|
|
2779
|
-
if (e <=
|
|
2779
|
+
if (e <= Ee)
|
|
2780
2780
|
return String.fromCharCode.apply(String, n);
|
|
2781
2781
|
let i = "", o = 0;
|
|
2782
2782
|
for (; o < e; )
|
|
2783
2783
|
i += String.fromCharCode.apply(
|
|
2784
2784
|
String,
|
|
2785
|
-
n.slice(o, o +=
|
|
2785
|
+
n.slice(o, o += Ee)
|
|
2786
2786
|
);
|
|
2787
2787
|
return i;
|
|
2788
2788
|
}
|
|
@@ -2805,7 +2805,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2805
2805
|
(!e || e < 0) && (e = 0), (!i || i < 0 || i > o) && (i = o);
|
|
2806
2806
|
let M = "";
|
|
2807
2807
|
for (let u = e; u < i; ++u)
|
|
2808
|
-
M +=
|
|
2808
|
+
M += pi[n[u]];
|
|
2809
2809
|
return M;
|
|
2810
2810
|
}
|
|
2811
2811
|
function Ze(n, e, i) {
|
|
@@ -2919,8 +2919,8 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
a.prototype.writeUintLE = a.prototype.writeUIntLE = function(e, i, o, M) {
|
|
2921
2921
|
if (e = +e, i = i >>> 0, o = o >>> 0, !M) {
|
|
2922
|
-
const
|
|
2923
|
-
Y(this, e, i, o,
|
|
2922
|
+
const j = Math.pow(2, 8 * o) - 1;
|
|
2923
|
+
Y(this, e, i, o, j, 0);
|
|
2924
2924
|
}
|
|
2925
2925
|
let u = 1, N = 0;
|
|
2926
2926
|
for (this[i] = e & 255; ++N < o && (u *= 256); )
|
|
@@ -2928,8 +2928,8 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2928
2928
|
return i + o;
|
|
2929
2929
|
}, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(e, i, o, M) {
|
|
2930
2930
|
if (e = +e, i = i >>> 0, o = o >>> 0, !M) {
|
|
2931
|
-
const
|
|
2932
|
-
Y(this, e, i, o,
|
|
2931
|
+
const j = Math.pow(2, 8 * o) - 1;
|
|
2932
|
+
Y(this, e, i, o, j, 0);
|
|
2933
2933
|
}
|
|
2934
2934
|
let u = o - 1, N = 1;
|
|
2935
2935
|
for (this[i + u] = e & 255; --u >= 0 && (N *= 256); )
|
|
@@ -2946,41 +2946,41 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2946
2946
|
}, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(e, i, o) {
|
|
2947
2947
|
return e = +e, i = i >>> 0, o || Y(this, e, i, 4, 4294967295, 0), this[i] = e >>> 24, this[i + 1] = e >>> 16, this[i + 2] = e >>> 8, this[i + 3] = e & 255, i + 4;
|
|
2948
2948
|
};
|
|
2949
|
-
function
|
|
2950
|
-
|
|
2949
|
+
function d1(n, e, i, o, M) {
|
|
2950
|
+
D1(e, o, M, n, i, 7);
|
|
2951
2951
|
let u = Number(e & BigInt(4294967295));
|
|
2952
2952
|
n[i++] = u, u = u >> 8, n[i++] = u, u = u >> 8, n[i++] = u, u = u >> 8, n[i++] = u;
|
|
2953
2953
|
let N = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2954
2954
|
return n[i++] = N, N = N >> 8, n[i++] = N, N = N >> 8, n[i++] = N, N = N >> 8, n[i++] = N, i;
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2957
|
-
|
|
2956
|
+
function g1(n, e, i, o, M) {
|
|
2957
|
+
D1(e, o, M, n, i, 7);
|
|
2958
2958
|
let u = Number(e & BigInt(4294967295));
|
|
2959
2959
|
n[i + 7] = u, u = u >> 8, n[i + 6] = u, u = u >> 8, n[i + 5] = u, u = u >> 8, n[i + 4] = u;
|
|
2960
2960
|
let N = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2961
2961
|
return n[i + 3] = N, N = N >> 8, n[i + 2] = N, N = N >> 8, n[i + 1] = N, N = N >> 8, n[i] = N, i + 8;
|
|
2962
2962
|
}
|
|
2963
2963
|
a.prototype.writeBigUInt64LE = ee(function(e, i = 0) {
|
|
2964
|
-
return u1(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2965
|
-
}), a.prototype.writeBigUInt64BE = ee(function(e, i = 0) {
|
|
2966
2964
|
return d1(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2965
|
+
}), a.prototype.writeBigUInt64BE = ee(function(e, i = 0) {
|
|
2966
|
+
return g1(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2967
2967
|
}), a.prototype.writeIntLE = function(e, i, o, M) {
|
|
2968
2968
|
if (e = +e, i = i >>> 0, !M) {
|
|
2969
2969
|
const z = Math.pow(2, 8 * o - 1);
|
|
2970
2970
|
Y(this, e, i, o, z - 1, -z);
|
|
2971
2971
|
}
|
|
2972
|
-
let u = 0, N = 1,
|
|
2972
|
+
let u = 0, N = 1, j = 0;
|
|
2973
2973
|
for (this[i] = e & 255; ++u < o && (N *= 256); )
|
|
2974
|
-
e < 0 &&
|
|
2974
|
+
e < 0 && j === 0 && this[i + u - 1] !== 0 && (j = 1), this[i + u] = (e / N >> 0) - j & 255;
|
|
2975
2975
|
return i + o;
|
|
2976
2976
|
}, a.prototype.writeIntBE = function(e, i, o, M) {
|
|
2977
2977
|
if (e = +e, i = i >>> 0, !M) {
|
|
2978
2978
|
const z = Math.pow(2, 8 * o - 1);
|
|
2979
2979
|
Y(this, e, i, o, z - 1, -z);
|
|
2980
2980
|
}
|
|
2981
|
-
let u = o - 1, N = 1,
|
|
2981
|
+
let u = o - 1, N = 1, j = 0;
|
|
2982
2982
|
for (this[i + u] = e & 255; --u >= 0 && (N *= 256); )
|
|
2983
|
-
e < 0 &&
|
|
2983
|
+
e < 0 && j === 0 && this[i + u + 1] !== 0 && (j = 1), this[i + u] = (e / N >> 0) - j & 255;
|
|
2984
2984
|
return i + o;
|
|
2985
2985
|
}, a.prototype.writeInt8 = function(e, i, o) {
|
|
2986
2986
|
return e = +e, i = i >>> 0, o || Y(this, e, i, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[i] = e & 255, i + 1;
|
|
@@ -2993,31 +2993,31 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
2993
2993
|
}, a.prototype.writeInt32BE = function(e, i, o) {
|
|
2994
2994
|
return e = +e, i = i >>> 0, o || Y(this, e, i, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[i] = e >>> 24, this[i + 1] = e >>> 16, this[i + 2] = e >>> 8, this[i + 3] = e & 255, i + 4;
|
|
2995
2995
|
}, a.prototype.writeBigInt64LE = ee(function(e, i = 0) {
|
|
2996
|
-
return u1(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2997
|
-
}), a.prototype.writeBigInt64BE = ee(function(e, i = 0) {
|
|
2998
2996
|
return d1(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2997
|
+
}), a.prototype.writeBigInt64BE = ee(function(e, i = 0) {
|
|
2998
|
+
return g1(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2999
2999
|
});
|
|
3000
|
-
function
|
|
3000
|
+
function I1(n, e, i, o, M, u) {
|
|
3001
3001
|
if (i + o > n.length)
|
|
3002
3002
|
throw new RangeError("Index out of range");
|
|
3003
3003
|
if (i < 0)
|
|
3004
3004
|
throw new RangeError("Index out of range");
|
|
3005
3005
|
}
|
|
3006
|
-
function
|
|
3007
|
-
return e = +e, i = i >>> 0, M ||
|
|
3006
|
+
function p1(n, e, i, o, M) {
|
|
3007
|
+
return e = +e, i = i >>> 0, M || I1(n, e, i, 4), l.write(n, e, i, o, 23, 4), i + 4;
|
|
3008
3008
|
}
|
|
3009
3009
|
a.prototype.writeFloatLE = function(e, i, o) {
|
|
3010
|
-
return
|
|
3010
|
+
return p1(this, e, i, !0, o);
|
|
3011
3011
|
}, a.prototype.writeFloatBE = function(e, i, o) {
|
|
3012
|
-
return
|
|
3012
|
+
return p1(this, e, i, !1, o);
|
|
3013
3013
|
};
|
|
3014
|
-
function
|
|
3015
|
-
return e = +e, i = i >>> 0, M ||
|
|
3014
|
+
function N1(n, e, i, o, M) {
|
|
3015
|
+
return e = +e, i = i >>> 0, M || I1(n, e, i, 8), l.write(n, e, i, o, 52, 8), i + 8;
|
|
3016
3016
|
}
|
|
3017
3017
|
a.prototype.writeDoubleLE = function(e, i, o) {
|
|
3018
|
-
return
|
|
3018
|
+
return N1(this, e, i, !0, o);
|
|
3019
3019
|
}, a.prototype.writeDoubleBE = function(e, i, o) {
|
|
3020
|
-
return
|
|
3020
|
+
return N1(this, e, i, !1, o);
|
|
3021
3021
|
}, a.prototype.copy = function(e, i, o, M) {
|
|
3022
3022
|
if (!a.isBuffer(e))
|
|
3023
3023
|
throw new TypeError("argument should be a Buffer");
|
|
@@ -3058,11 +3058,11 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
3058
3058
|
for (u = i; u < o; ++u)
|
|
3059
3059
|
this[u] = e;
|
|
3060
3060
|
else {
|
|
3061
|
-
const N = a.isBuffer(e) ? e : a.from(e, M),
|
|
3062
|
-
if (
|
|
3061
|
+
const N = a.isBuffer(e) ? e : a.from(e, M), j = N.length;
|
|
3062
|
+
if (j === 0)
|
|
3063
3063
|
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
3064
3064
|
for (u = 0; u < o - i; ++u)
|
|
3065
|
-
this[u + i] = N[u %
|
|
3065
|
+
this[u + i] = N[u % j];
|
|
3066
3066
|
}
|
|
3067
3067
|
return this;
|
|
3068
3068
|
};
|
|
@@ -3108,27 +3108,27 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
3108
3108
|
"ERR_OUT_OF_RANGE",
|
|
3109
3109
|
function(n, e, i) {
|
|
3110
3110
|
let o = `The value of "${n}" is out of range.`, M = i;
|
|
3111
|
-
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? M =
|
|
3111
|
+
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? M = h1(String(i)) : typeof i == "bigint" && (M = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (M = h1(M)), M += "n"), o += ` It must be ${e}. Received ${M}`, o;
|
|
3112
3112
|
},
|
|
3113
3113
|
RangeError
|
|
3114
3114
|
);
|
|
3115
|
-
function
|
|
3115
|
+
function h1(n) {
|
|
3116
3116
|
let e = "", i = n.length;
|
|
3117
3117
|
const o = n[0] === "-" ? 1 : 0;
|
|
3118
3118
|
for (; i >= o + 4; i -= 3)
|
|
3119
3119
|
e = `_${n.slice(i - 3, i)}${e}`;
|
|
3120
3120
|
return `${n.slice(0, i)}${e}`;
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3122
|
+
function Mi(n, e, i) {
|
|
3123
3123
|
ue(e, "offset"), (n[e] === void 0 || n[e + i] === void 0) && Ae(e, n.length - (i + 1));
|
|
3124
3124
|
}
|
|
3125
|
-
function
|
|
3125
|
+
function D1(n, e, i, o, M, u) {
|
|
3126
3126
|
if (n > i || n < e) {
|
|
3127
3127
|
const N = typeof e == "bigint" ? "n" : "";
|
|
3128
|
-
let
|
|
3129
|
-
throw u > 3 ? e === 0 || e === BigInt(0) ?
|
|
3128
|
+
let j;
|
|
3129
|
+
throw u > 3 ? e === 0 || e === BigInt(0) ? j = `>= 0${N} and < 2${N} ** ${(u + 1) * 8}${N}` : j = `>= -(2${N} ** ${(u + 1) * 8 - 1}${N}) and < 2 ** ${(u + 1) * 8 - 1}${N}` : j = `>= ${e}${N} and <= ${i}${N}`, new Me.ERR_OUT_OF_RANGE("value", j, n);
|
|
3130
3130
|
}
|
|
3131
|
-
|
|
3131
|
+
Mi(o, M, u);
|
|
3132
3132
|
}
|
|
3133
3133
|
function ue(n, e) {
|
|
3134
3134
|
if (typeof n != "number")
|
|
@@ -3141,9 +3141,9 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
3141
3141
|
n
|
|
3142
3142
|
);
|
|
3143
3143
|
}
|
|
3144
|
-
const
|
|
3145
|
-
function
|
|
3146
|
-
if (n = n.split("=")[0], n = n.trim().replace(
|
|
3144
|
+
const ui = /[^+/0-9A-Za-z-_]/g;
|
|
3145
|
+
function di(n) {
|
|
3146
|
+
if (n = n.split("=")[0], n = n.trim().replace(ui, ""), n.length < 2)
|
|
3147
3147
|
return "";
|
|
3148
3148
|
for (; n.length % 4 !== 0; )
|
|
3149
3149
|
n = n + "=";
|
|
@@ -3208,23 +3208,23 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
return u;
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3211
|
+
function gi(n) {
|
|
3212
3212
|
const e = [];
|
|
3213
3213
|
for (let i = 0; i < n.length; ++i)
|
|
3214
3214
|
e.push(n.charCodeAt(i) & 255);
|
|
3215
3215
|
return e;
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function Ii(n, e) {
|
|
3218
3218
|
let i, o, M;
|
|
3219
3219
|
const u = [];
|
|
3220
3220
|
for (let N = 0; N < n.length && !((e -= 2) < 0); ++N)
|
|
3221
3221
|
i = n.charCodeAt(N), o = i >> 8, M = i % 256, u.push(M), u.push(o);
|
|
3222
3222
|
return u;
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3225
|
-
return r.toByteArray(
|
|
3224
|
+
function A1(n) {
|
|
3225
|
+
return r.toByteArray(di(n));
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function we(n, e, i, o) {
|
|
3228
3228
|
let M;
|
|
3229
3229
|
for (M = 0; M < o && !(M + i >= e.length || M >= n.length); ++M)
|
|
3230
3230
|
e[M + i] = n[M];
|
|
@@ -3236,7 +3236,7 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
3236
3236
|
function Ge(n) {
|
|
3237
3237
|
return n !== n;
|
|
3238
3238
|
}
|
|
3239
|
-
const
|
|
3239
|
+
const pi = function() {
|
|
3240
3240
|
const n = "0123456789abcdef", e = new Array(256);
|
|
3241
3241
|
for (let i = 0; i < 16; ++i) {
|
|
3242
3242
|
const o = i * 16;
|
|
@@ -3246,13 +3246,13 @@ c1.write = function(t, r, l, d, I, g) {
|
|
|
3246
3246
|
return e;
|
|
3247
3247
|
}();
|
|
3248
3248
|
function ee(n) {
|
|
3249
|
-
return typeof BigInt > "u" ?
|
|
3249
|
+
return typeof BigInt > "u" ? Ni : n;
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3251
|
+
function Ni() {
|
|
3252
3252
|
throw new Error("BigInt not supported");
|
|
3253
3253
|
}
|
|
3254
|
-
})(
|
|
3255
|
-
var
|
|
3254
|
+
})(ti);
|
|
3255
|
+
var ri = { exports: {} }, O = ri.exports = {}, H, W;
|
|
3256
3256
|
function t1() {
|
|
3257
3257
|
throw new Error("setTimeout has not been defined");
|
|
3258
3258
|
}
|
|
@@ -3271,7 +3271,7 @@ function n1() {
|
|
|
3271
3271
|
W = n1;
|
|
3272
3272
|
}
|
|
3273
3273
|
})();
|
|
3274
|
-
function
|
|
3274
|
+
function si(t) {
|
|
3275
3275
|
if (H === setTimeout)
|
|
3276
3276
|
return setTimeout(t, 0);
|
|
3277
3277
|
if ((H === t1 || !H) && setTimeout)
|
|
@@ -3286,7 +3286,7 @@ function ri(t) {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function u4(t) {
|
|
3290
3290
|
if (W === clearTimeout)
|
|
3291
3291
|
return clearTimeout(t);
|
|
3292
3292
|
if ((W === n1 || !W) && clearTimeout)
|
|
@@ -3302,19 +3302,19 @@ function M4(t) {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
}
|
|
3304
3304
|
var q = [], Ie = !1, oe, Oe = -1;
|
|
3305
|
-
function
|
|
3306
|
-
!Ie || !oe || (Ie = !1, oe.length ? q = oe.concat(q) : Oe = -1, q.length &&
|
|
3305
|
+
function d4() {
|
|
3306
|
+
!Ie || !oe || (Ie = !1, oe.length ? q = oe.concat(q) : Oe = -1, q.length && oi());
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3308
|
+
function oi() {
|
|
3309
3309
|
if (!Ie) {
|
|
3310
|
-
var t =
|
|
3310
|
+
var t = si(d4);
|
|
3311
3311
|
Ie = !0;
|
|
3312
3312
|
for (var r = q.length; r; ) {
|
|
3313
3313
|
for (oe = q, q = []; ++Oe < r; )
|
|
3314
3314
|
oe && oe[Oe].run();
|
|
3315
3315
|
Oe = -1, r = q.length;
|
|
3316
3316
|
}
|
|
3317
|
-
oe = null, Ie = !1,
|
|
3317
|
+
oe = null, Ie = !1, u4(t);
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
3320
|
O.nextTick = function(t) {
|
|
@@ -3322,12 +3322,12 @@ O.nextTick = function(t) {
|
|
|
3322
3322
|
if (arguments.length > 1)
|
|
3323
3323
|
for (var l = 1; l < arguments.length; l++)
|
|
3324
3324
|
r[l - 1] = arguments[l];
|
|
3325
|
-
q.push(new
|
|
3325
|
+
q.push(new li(t, r)), q.length === 1 && !Ie && si(oi);
|
|
3326
3326
|
};
|
|
3327
|
-
function
|
|
3327
|
+
function li(t, r) {
|
|
3328
3328
|
this.fun = t, this.array = r;
|
|
3329
3329
|
}
|
|
3330
|
-
|
|
3330
|
+
li.prototype.run = function() {
|
|
3331
3331
|
this.fun.apply(null, this.array);
|
|
3332
3332
|
};
|
|
3333
3333
|
O.title = "browser";
|
|
@@ -3362,35 +3362,35 @@ O.chdir = function(t) {
|
|
|
3362
3362
|
O.umask = function() {
|
|
3363
3363
|
return 0;
|
|
3364
3364
|
};
|
|
3365
|
-
var
|
|
3365
|
+
var g4 = ri.exports;
|
|
3366
3366
|
(function(t) {
|
|
3367
3367
|
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
|
|
3368
|
-
const r =
|
|
3368
|
+
const r = ti, l = g4, d = (p) => p && p.__esModule ? p : { default: p }, I = d(l), g = globalThis || void 0 || self;
|
|
3369
3369
|
Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => r.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => I.default }), t.global = g;
|
|
3370
|
-
})(
|
|
3370
|
+
})(t4);
|
|
3371
3371
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
3372
|
-
var
|
|
3372
|
+
var Y1;
|
|
3373
3373
|
(function(t) {
|
|
3374
3374
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
3375
|
-
})(
|
|
3375
|
+
})(Y1 || (Y1 = {}));
|
|
3376
3376
|
ze.BETTING + "", ze.GAMES + "", ze.PUBLIC_CHAT + "", ze.TWITTER + "";
|
|
3377
|
-
var
|
|
3377
|
+
var B1;
|
|
3378
3378
|
(function(t) {
|
|
3379
3379
|
t.Ready = "ready", t.Suspended = "suspended";
|
|
3380
|
-
})(
|
|
3380
|
+
})(B1 || (B1 = {}));
|
|
3381
3381
|
window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
|
|
3382
|
-
var
|
|
3382
|
+
var R1;
|
|
3383
3383
|
(function(t) {
|
|
3384
3384
|
t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnecting = "reconnecting";
|
|
3385
|
-
})(
|
|
3386
|
-
const
|
|
3385
|
+
})(R1 || (R1 = {}));
|
|
3386
|
+
const I4 = ({ sdk: t }) => E(t.getUserStore()).data ? /* @__PURE__ */ s("button", { onClick: t.logout, children: "logout" }) : /* @__PURE__ */ s(st, { login: async (r) => {
|
|
3387
3387
|
try {
|
|
3388
3388
|
await t.authorizationBypass("streamlayer:streamlayer", r);
|
|
3389
3389
|
} catch (l) {
|
|
3390
3390
|
throw console.log("login err", l), l;
|
|
3391
3391
|
}
|
|
3392
|
-
}, anonymousLogin: t.anonymousAuthorization, host: t.host }),
|
|
3393
|
-
const [l, d] = Q(null), { organizationSettings: I, streamSettings: g } =
|
|
3392
|
+
}, anonymousLogin: t.anonymousAuthorization, host: t.host }), p4 = ({ activeFeature: t, sdk: r }) => {
|
|
3393
|
+
const [l, d] = Q(null), { organizationSettings: I, streamSettings: g } = E(r.sdkStore), p = J(() => {
|
|
3394
3394
|
const h = (g == null ? void 0 : g.data) || (I == null ? void 0 : I.data);
|
|
3395
3395
|
return h != null && h.overlays ? h.overlays : [];
|
|
3396
3396
|
}, [I, g]);
|
|
@@ -3409,16 +3409,16 @@ const g4 = ({ sdk: t }) => w(t.getUserStore()).data ? /* @__PURE__ */ s("button"
|
|
|
3409
3409
|
y.status.get() === Z.Ready && y.disable();
|
|
3410
3410
|
};
|
|
3411
3411
|
}, [t, r]);
|
|
3412
|
-
const a = J(() => l ? l.featureConfig.get().type === pe.GAMES ? l ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
3412
|
+
const a = J(() => l ? l.featureConfig.get().type === pe.GAMES ? l ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(Wr, { gamification: l, sdk: r }) }) : /* @__PURE__ */ s("div", { children: "wait gamification..." }) : l.featureConfig.get().type === pe.HIGHLIGHTS ? l ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(i4, { highlights: l, sdk: r }) }) : /* @__PURE__ */ s("div", { children: "wait highlights..." }) : /* @__PURE__ */ s("div", { children: "unknown feature" }) : null, [r, l]);
|
|
3413
3413
|
return /* @__PURE__ */ A("div", { children: [
|
|
3414
|
-
/* @__PURE__ */ A(
|
|
3414
|
+
/* @__PURE__ */ A(Hr, { children: [
|
|
3415
3415
|
/* @__PURE__ */ s(Ke, { onClick: () => r.closeFeature(), disabled: !a, children: "close" }),
|
|
3416
3416
|
/* @__PURE__ */ s(Ke, { onClick: () => r.logout(), children: "logout" }),
|
|
3417
3417
|
p.map((h) => /* @__PURE__ */ A(
|
|
3418
3418
|
Ke,
|
|
3419
3419
|
{
|
|
3420
3420
|
onClick: () => r.openFeature(h.type),
|
|
3421
|
-
disabled: !(h.type in
|
|
3421
|
+
disabled: !(h.type in Di),
|
|
3422
3422
|
"data-enable_sdk_button": h.enableSdkButton.toString(),
|
|
3423
3423
|
"data-selected": h.type === t,
|
|
3424
3424
|
children: [
|
|
@@ -3431,30 +3431,30 @@ const g4 = ({ sdk: t }) => w(t.getUserStore()).data ? /* @__PURE__ */ s("button"
|
|
|
3431
3431
|
] }),
|
|
3432
3432
|
a
|
|
3433
3433
|
] });
|
|
3434
|
-
},
|
|
3435
|
-
const r =
|
|
3434
|
+
}, N4 = ({ sdk: t }) => {
|
|
3435
|
+
const r = E(t.organizationStore()), l = E(t.getUserStore()), d = E(t.getActiveFeature());
|
|
3436
3436
|
return r.loading ? /* @__PURE__ */ s("div", { children: "authentication..." }) : r.data ? l.loading ? /* @__PURE__ */ s("div", { children: "authentication..." }) : l.data ? /* @__PURE__ */ A(P, { children: [
|
|
3437
|
-
/* @__PURE__ */ s(
|
|
3438
|
-
/* @__PURE__ */ s(
|
|
3439
|
-
] }) : /* @__PURE__ */ s(
|
|
3437
|
+
/* @__PURE__ */ s(B2, { notificationsStore: t.getNotificationsStore() }),
|
|
3438
|
+
/* @__PURE__ */ s(p4, { sdk: t, activeFeature: d })
|
|
3439
|
+
] }) : /* @__PURE__ */ s(I4, { sdk: t }) : /* @__PURE__ */ s("div", { children: "wrong sdk key..." });
|
|
3440
3440
|
};
|
|
3441
|
-
const
|
|
3441
|
+
const h4 = () => ne, D4 = /* @__PURE__ */ c("div")({
|
|
3442
3442
|
name: "s",
|
|
3443
3443
|
class: "s4qld3l",
|
|
3444
3444
|
propsAsIs: !1
|
|
3445
|
-
}),
|
|
3445
|
+
}), A4 = /* @__PURE__ */ c("div")({
|
|
3446
3446
|
name: "d",
|
|
3447
3447
|
class: "dinhtok",
|
|
3448
3448
|
propsAsIs: !1
|
|
3449
|
-
}),
|
|
3449
|
+
}), y4 = /* @__PURE__ */ c(h4())({
|
|
3450
3450
|
name: "p",
|
|
3451
3451
|
class: "pk8yd5t",
|
|
3452
3452
|
propsAsIs: !0
|
|
3453
|
-
}),
|
|
3453
|
+
}), C4 = /* @__PURE__ */ c("div")({
|
|
3454
3454
|
name: "x",
|
|
3455
3455
|
class: "x6rf9gb",
|
|
3456
3456
|
propsAsIs: !1
|
|
3457
|
-
}),
|
|
3457
|
+
}), m4 = /* @__PURE__ */ c("div")({
|
|
3458
3458
|
name: "a",
|
|
3459
3459
|
class: "a18f5pxx",
|
|
3460
3460
|
propsAsIs: !1
|
|
@@ -3462,14 +3462,14 @@ const N4 = () => ne, h4 = /* @__PURE__ */ c("div")({
|
|
|
3462
3462
|
name: "c",
|
|
3463
3463
|
class: "c1jwsyj1",
|
|
3464
3464
|
propsAsIs: !1
|
|
3465
|
-
}),
|
|
3466
|
-
/* @__PURE__ */ s(
|
|
3467
|
-
/* @__PURE__ */ A(
|
|
3468
|
-
/* @__PURE__ */ s(
|
|
3465
|
+
}), T4 = ({ points: t }) => /* @__PURE__ */ A(D4, { children: [
|
|
3466
|
+
/* @__PURE__ */ s(A4, { children: /* @__PURE__ */ s(y4, { name: "icon-trophy" }) }),
|
|
3467
|
+
/* @__PURE__ */ A(C4, { children: [
|
|
3468
|
+
/* @__PURE__ */ s(m4, { children: "TOTAL POINTS" }),
|
|
3469
3469
|
/* @__PURE__ */ s(j4, { children: t.toLocaleString("en") })
|
|
3470
3470
|
] })
|
|
3471
3471
|
] });
|
|
3472
|
-
const
|
|
3472
|
+
const E4 = "fedqibx", ai = ({ children: t, style: r }) => /* @__PURE__ */ s("div", { className: E4, style: r, children: t }), w4 = (t, r, l, d) => {
|
|
3473
3473
|
const [I, g] = Q(null);
|
|
3474
3474
|
return console.log("useStreamLayerApp", t, l), te(() => {
|
|
3475
3475
|
console.log("init sdk");
|
|
@@ -3493,10 +3493,10 @@ const T4 = "fedqibx", li = ({ children: t, style: r }) => /* @__PURE__ */ s("div
|
|
|
3493
3493
|
}, [t, l]), I;
|
|
3494
3494
|
};
|
|
3495
3495
|
var ve = /* @__PURE__ */ ((t) => (t[t.UNSET = 0] = "UNSET", t[t.CONNECTED = 1] = "CONNECTED", t[t.READY = 2] = "READY", t))(ve || {});
|
|
3496
|
-
const be =
|
|
3496
|
+
const be = yi({
|
|
3497
3497
|
status: 0,
|
|
3498
3498
|
sdk: null
|
|
3499
|
-
}),
|
|
3499
|
+
}), Ws = ({
|
|
3500
3500
|
sdkKey: t,
|
|
3501
3501
|
plugins: r,
|
|
3502
3502
|
children: l,
|
|
@@ -3508,73 +3508,103 @@ const be = Ai({
|
|
|
3508
3508
|
status: 2
|
|
3509
3509
|
/* READY */
|
|
3510
3510
|
} : { status: 1, sdk: null }, [g]);
|
|
3511
|
-
return /* @__PURE__ */ s(
|
|
3512
|
-
},
|
|
3513
|
-
const { sdk: t } =
|
|
3511
|
+
return /* @__PURE__ */ s(ai, { children: /* @__PURE__ */ s(be.Provider, { value: p, children: l }) });
|
|
3512
|
+
}, f4 = () => {
|
|
3513
|
+
const { sdk: t } = s1(be);
|
|
3514
3514
|
return t;
|
|
3515
|
-
},
|
|
3516
|
-
const { sdk: t, status: r } =
|
|
3515
|
+
}, Fs = () => {
|
|
3516
|
+
const { sdk: t, status: r } = s1(be);
|
|
3517
3517
|
if (r === ve.UNSET)
|
|
3518
3518
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
3519
|
-
return r === ve.CONNECTED ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "wait" }) : t === null ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(
|
|
3520
|
-
},
|
|
3519
|
+
return r === ve.CONNECTED ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "wait" }) : t === null ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(N4, { sdk: t }) });
|
|
3520
|
+
}, L4 = ({ userSummary: t }) => {
|
|
3521
3521
|
var l, d;
|
|
3522
|
-
const r =
|
|
3523
|
-
return ((d = (l = r.data) == null ? void 0 : l.summary) == null ? void 0 : d.points) === void 0 ? null : /* @__PURE__ */ s(
|
|
3524
|
-
},
|
|
3525
|
-
const { organizationSettings: r, streamSettings: l } =
|
|
3526
|
-
return d ? /* @__PURE__ */ s(
|
|
3527
|
-
},
|
|
3528
|
-
const t =
|
|
3529
|
-
return t ? /* @__PURE__ */ s(
|
|
3522
|
+
const r = E(t.getStore());
|
|
3523
|
+
return ((d = (l = r.data) == null ? void 0 : l.summary) == null ? void 0 : d.points) === void 0 ? null : /* @__PURE__ */ s(T4, { points: r.data.summary.points });
|
|
3524
|
+
}, z4 = ({ sdk: t }) => {
|
|
3525
|
+
const { organizationSettings: r, streamSettings: l } = E(t.sdkStore), d = J(() => t.getFeature(pe.GAMES), [t, r, l]);
|
|
3526
|
+
return d ? /* @__PURE__ */ s(L4, { userSummary: d.userSummary }) : null;
|
|
3527
|
+
}, qs = () => {
|
|
3528
|
+
const t = f4();
|
|
3529
|
+
return t ? /* @__PURE__ */ s(z4, { sdk: t }) : null;
|
|
3530
3530
|
};
|
|
3531
|
-
const
|
|
3531
|
+
const x4 = "n1w0z66i", $1 = ({
|
|
3532
3532
|
feature: t,
|
|
3533
3533
|
sdk: r,
|
|
3534
3534
|
children: l
|
|
3535
3535
|
}) => {
|
|
3536
|
-
const d =
|
|
3536
|
+
const d = E(t.status), { slStreamId: I } = E(r.sdkStore);
|
|
3537
3537
|
return I != null && I.loading ? /* @__PURE__ */ s("div", { children: "event is loading..." }) : I != null && I.data ? d !== Z.Ready ? /* @__PURE__ */ s("div", { children: "wait feature..." }) : l : /* @__PURE__ */ s("div", { children: "event is forbidden..." });
|
|
3538
3538
|
};
|
|
3539
|
-
const
|
|
3539
|
+
const O4 = () => ci, v4 = /* @__PURE__ */ c("div")({
|
|
3540
|
+
name: "i",
|
|
3541
|
+
class: "idhrx8x",
|
|
3542
|
+
propsAsIs: !1
|
|
3543
|
+
}), r1 = /* @__PURE__ */ c("div")({
|
|
3544
|
+
name: "r",
|
|
3545
|
+
class: "r1k6v4ep",
|
|
3546
|
+
propsAsIs: !1
|
|
3547
|
+
}), ci = /* @__PURE__ */ c("div")({
|
|
3548
|
+
name: "t",
|
|
3549
|
+
class: "t1v8kucd",
|
|
3550
|
+
propsAsIs: !1
|
|
3551
|
+
}), k4 = /* @__PURE__ */ c(O4())({
|
|
3552
|
+
name: "o",
|
|
3553
|
+
class: "o16yw7z1",
|
|
3554
|
+
propsAsIs: !0
|
|
3555
|
+
});
|
|
3556
|
+
const S4 = /* @__PURE__ */ c("div")({
|
|
3557
|
+
name: "n",
|
|
3558
|
+
class: "n1aopxp8",
|
|
3559
|
+
propsAsIs: !1
|
|
3560
|
+
}), U4 = ({
|
|
3561
|
+
children: t,
|
|
3562
|
+
style: r,
|
|
3563
|
+
className: l
|
|
3564
|
+
}) => /* @__PURE__ */ s(S4, {
|
|
3565
|
+
style: r,
|
|
3566
|
+
className: l,
|
|
3567
|
+
children: t
|
|
3568
|
+
});
|
|
3569
|
+
const b4 = () => ne, Q4 = () => ne, Y4 = /* @__PURE__ */ c("div")({
|
|
3540
3570
|
name: "a",
|
|
3541
3571
|
class: "a15a2gil",
|
|
3542
3572
|
propsAsIs: !1
|
|
3543
|
-
}),
|
|
3573
|
+
}), B4 = /* @__PURE__ */ c("div")({
|
|
3544
3574
|
name: "l",
|
|
3545
3575
|
class: "l1rbnkk6",
|
|
3546
3576
|
propsAsIs: !1
|
|
3547
|
-
}),
|
|
3577
|
+
}), R4 = /* @__PURE__ */ c(b4())({
|
|
3548
3578
|
name: "p",
|
|
3549
3579
|
class: "pk5mgl9",
|
|
3550
3580
|
propsAsIs: !0
|
|
3551
|
-
}),
|
|
3581
|
+
}), $4 = /* @__PURE__ */ c("span")({
|
|
3552
3582
|
name: "s",
|
|
3553
3583
|
class: "smvlrwt",
|
|
3554
3584
|
propsAsIs: !1
|
|
3555
|
-
}),
|
|
3585
|
+
}), Z4 = /* @__PURE__ */ c("button")({
|
|
3556
3586
|
name: "c",
|
|
3557
3587
|
class: "c1wbsovt",
|
|
3558
3588
|
propsAsIs: !1
|
|
3559
|
-
}),
|
|
3589
|
+
}), P4 = /* @__PURE__ */ c(Q4())({
|
|
3560
3590
|
name: "g",
|
|
3561
3591
|
class: "gsk1ru6",
|
|
3562
3592
|
propsAsIs: !0
|
|
3563
|
-
}),
|
|
3564
|
-
const l =
|
|
3565
|
-
return
|
|
3566
|
-
/* @__PURE__ */ A(
|
|
3567
|
-
/* @__PURE__ */ s(
|
|
3568
|
-
/* @__PURE__ */ s(
|
|
3593
|
+
}), V4 = ({ type: t, close: r }) => {
|
|
3594
|
+
const l = F1[t];
|
|
3595
|
+
return /* @__PURE__ */ A(Y4, { children: [
|
|
3596
|
+
/* @__PURE__ */ A(B4, { children: [
|
|
3597
|
+
(l == null ? void 0 : l.iconName) && /* @__PURE__ */ s(R4, { name: l.iconName }),
|
|
3598
|
+
(l == null ? void 0 : l.label) && /* @__PURE__ */ s($4, { children: l.label })
|
|
3569
3599
|
] }),
|
|
3570
|
-
/* @__PURE__ */ s(
|
|
3571
|
-
] })
|
|
3600
|
+
/* @__PURE__ */ s(Z4, { onClick: r, children: /* @__PURE__ */ s(P4, { name: "icon-cross" }) })
|
|
3601
|
+
] });
|
|
3572
3602
|
};
|
|
3573
|
-
const
|
|
3574
|
-
name: "
|
|
3575
|
-
class: "
|
|
3603
|
+
const G4 = /* @__PURE__ */ c("div")({
|
|
3604
|
+
name: "T",
|
|
3605
|
+
class: "tk8r1eq",
|
|
3576
3606
|
propsAsIs: !1
|
|
3577
|
-
}),
|
|
3607
|
+
}), _4 = ({
|
|
3578
3608
|
openedQuestion: t,
|
|
3579
3609
|
closeQuestion: r,
|
|
3580
3610
|
vote: l
|
|
@@ -3585,56 +3615,35 @@ const B4 = /* @__PURE__ */ c("div")({
|
|
|
3585
3615
|
g(h);
|
|
3586
3616
|
}, [g]);
|
|
3587
3617
|
const p = J(() => t == null ? void 0 : t.answers.find((h) => h.youVoted === !0), [t]), a = J(() => !!(t != null && t.answers.find((h) => h.correct === !0)), [t]);
|
|
3588
|
-
return
|
|
3589
|
-
children: /* @__PURE__ */
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
})
|
|
3618
|
-
}) : null;
|
|
3619
|
-
};
|
|
3620
|
-
const $4 = () => ai, Z4 = /* @__PURE__ */ c("div")({
|
|
3621
|
-
name: "i",
|
|
3622
|
-
class: "idhrx8x",
|
|
3623
|
-
propsAsIs: !1
|
|
3624
|
-
}), P4 = /* @__PURE__ */ c("div")({
|
|
3625
|
-
name: "r",
|
|
3626
|
-
class: "r1k6v4ep",
|
|
3627
|
-
propsAsIs: !1
|
|
3628
|
-
}), ai = /* @__PURE__ */ c("div")({
|
|
3629
|
-
name: "t",
|
|
3630
|
-
class: "t1v8kucd",
|
|
3631
|
-
propsAsIs: !1
|
|
3632
|
-
}), V4 = /* @__PURE__ */ c($4())({
|
|
3633
|
-
name: "o",
|
|
3634
|
-
class: "o16yw7z1",
|
|
3635
|
-
propsAsIs: !0
|
|
3636
|
-
}), G4 = ({ store: t }) => {
|
|
3637
|
-
const { data: r } = w(t), [l, d] = Q(void 0);
|
|
3618
|
+
return /* @__PURE__ */ A(G4, {
|
|
3619
|
+
children: [/* @__PURE__ */ s(V4, {
|
|
3620
|
+
close: r,
|
|
3621
|
+
type: (t == null ? void 0 : t.type) || B.UNSET
|
|
3622
|
+
}), t && /* @__PURE__ */ s(X1, {
|
|
3623
|
+
title: t.subject,
|
|
3624
|
+
feedbackMessages: (d = t.options) == null ? void 0 : d.options.value,
|
|
3625
|
+
questionType: t.type,
|
|
3626
|
+
questionId: t.id,
|
|
3627
|
+
questionAnswered: !!p,
|
|
3628
|
+
questionAnsweredCorrectly: p == null ? void 0 : p.correct,
|
|
3629
|
+
options: t.answers.map((h) => ({
|
|
3630
|
+
id: h.id,
|
|
3631
|
+
title: h.text,
|
|
3632
|
+
icon: h.icon,
|
|
3633
|
+
type: t.type,
|
|
3634
|
+
correct: h.correct,
|
|
3635
|
+
percentage: h.percentage,
|
|
3636
|
+
answered: h.youVoted,
|
|
3637
|
+
disabled: !!p || t.marketClosed || I,
|
|
3638
|
+
questionAnswered: !!p,
|
|
3639
|
+
hasCorrectAnswer: a,
|
|
3640
|
+
points: h.points,
|
|
3641
|
+
onVote: l
|
|
3642
|
+
}))
|
|
3643
|
+
})]
|
|
3644
|
+
});
|
|
3645
|
+
}, H4 = ({ store: t }) => {
|
|
3646
|
+
const { data: r } = E(t), [l, d] = Q(void 0);
|
|
3638
3647
|
if (!r)
|
|
3639
3648
|
return /* @__PURE__ */ s("div", { children: "wait leader board..." });
|
|
3640
3649
|
const I = (g) => {
|
|
@@ -3646,52 +3655,63 @@ const $4 = () => ai, Z4 = /* @__PURE__ */ c("div")({
|
|
|
3646
3655
|
d(a);
|
|
3647
3656
|
};
|
|
3648
3657
|
return /* @__PURE__ */ A(P, { children: [
|
|
3649
|
-
l && /* @__PURE__ */ s(
|
|
3658
|
+
l && /* @__PURE__ */ s(W1, { comeBack: () => I(null), ...l }),
|
|
3650
3659
|
!l && /* @__PURE__ */ s(
|
|
3651
|
-
|
|
3660
|
+
K1,
|
|
3652
3661
|
{
|
|
3653
3662
|
items: r.filter((g) => g.attributes).map((g) => g.attributes),
|
|
3654
3663
|
openItemDetail: I
|
|
3655
3664
|
}
|
|
3656
3665
|
)
|
|
3657
3666
|
] });
|
|
3658
|
-
},
|
|
3659
|
-
const l =
|
|
3660
|
-
return l != null && l.data ? /* @__PURE__ */ s(
|
|
3661
|
-
},
|
|
3662
|
-
const { data: r } =
|
|
3663
|
-
return r != null && r.summary ? /* @__PURE__ */ s(
|
|
3664
|
-
},
|
|
3667
|
+
}, W4 = ({ store: t, openQuestion: r }) => {
|
|
3668
|
+
const l = E(t);
|
|
3669
|
+
return l != null && l.data ? /* @__PURE__ */ s(q1, { openQuestion: r, questions: l.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
|
|
3670
|
+
}, F4 = ({ store: t }) => {
|
|
3671
|
+
const { data: r } = E(t);
|
|
3672
|
+
return r != null && r.summary ? /* @__PURE__ */ s(c1, { ...r.summary, ...r.percentage }) : /* @__PURE__ */ s("div", { children: "wait user..." });
|
|
3673
|
+
}, q4 = ({ gamification: t }) => {
|
|
3665
3674
|
const [r, l] = Q(ie.HOME);
|
|
3666
3675
|
return /* @__PURE__ */ A(P, { children: [
|
|
3667
|
-
/* @__PURE__ */ A(
|
|
3668
|
-
/* @__PURE__ */ s(
|
|
3669
|
-
r === ie.HOME && /* @__PURE__ */ s(
|
|
3676
|
+
/* @__PURE__ */ A(k4, { children: [
|
|
3677
|
+
/* @__PURE__ */ s(G1, { activePage: r, toggleActivePage: l }),
|
|
3678
|
+
r === ie.HOME && /* @__PURE__ */ s(F4, { store: t.userSummary.getStore() })
|
|
3670
3679
|
] }),
|
|
3671
|
-
r === ie.HOME && /* @__PURE__ */ s(
|
|
3672
|
-
r === ie.LEADERBOARD && /* @__PURE__ */ s(
|
|
3680
|
+
r === ie.HOME && /* @__PURE__ */ s(ci, { children: /* @__PURE__ */ s(W4, { openQuestion: t.openQuestion, store: t.questions.getStore() }) }),
|
|
3681
|
+
r === ie.LEADERBOARD && /* @__PURE__ */ s(H4, { store: t.leaderboardList.getStore() })
|
|
3673
3682
|
] });
|
|
3674
|
-
}
|
|
3683
|
+
};
|
|
3684
|
+
const J4 = () => U4, X4 = /* @__PURE__ */ c(J4())({
|
|
3685
|
+
name: "u",
|
|
3686
|
+
class: "u1ph66cs",
|
|
3687
|
+
propsAsIs: !0
|
|
3688
|
+
}), K4 = ({
|
|
3675
3689
|
gamification: t
|
|
3676
3690
|
}) => {
|
|
3677
|
-
const
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3691
|
+
const {
|
|
3692
|
+
loading: r,
|
|
3693
|
+
data: l
|
|
3694
|
+
} = E(t.openedQuestion);
|
|
3695
|
+
return /* @__PURE__ */ A(P, {
|
|
3696
|
+
children: [(r || l) && /* @__PURE__ */ s(X4, {
|
|
3697
|
+
children: /* @__PURE__ */ s(_4, {
|
|
3682
3698
|
closeQuestion: t.closeQuestion,
|
|
3683
3699
|
vote: t.submitAnswer,
|
|
3684
|
-
openedQuestion:
|
|
3685
|
-
}
|
|
3686
|
-
),
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3700
|
+
openedQuestion: l
|
|
3701
|
+
})
|
|
3702
|
+
}), /* @__PURE__ */ s(r1, {
|
|
3703
|
+
"data-nav": "true",
|
|
3704
|
+
children: /* @__PURE__ */ s(q4, {
|
|
3705
|
+
gamification: t
|
|
3706
|
+
})
|
|
3707
|
+
})]
|
|
3708
|
+
});
|
|
3709
|
+
}, es = ({ highlights: t }) => {
|
|
3710
|
+
const r = E(t.openedInsight);
|
|
3691
3711
|
return /* @__PURE__ */ A(P, { children: [
|
|
3692
|
-
!r && t.insights && /* @__PURE__ */ s(
|
|
3712
|
+
!r && t.insights && /* @__PURE__ */ s(ei, { highlights: t, store: t.insights.getStore() }),
|
|
3693
3713
|
r && /* @__PURE__ */ s(
|
|
3694
|
-
|
|
3714
|
+
ii,
|
|
3695
3715
|
{
|
|
3696
3716
|
openedInsight: r,
|
|
3697
3717
|
closeHighlights: t.closeFeature,
|
|
@@ -3699,90 +3719,90 @@ const $4 = () => ai, Z4 = /* @__PURE__ */ c("div")({
|
|
|
3699
3719
|
}
|
|
3700
3720
|
)
|
|
3701
3721
|
] });
|
|
3702
|
-
},
|
|
3703
|
-
const
|
|
3722
|
+
}, is = ({ sdk: t, feature: r }) => J(() => r ? r.featureConfig.get().type === pe.GAMES ? /* @__PURE__ */ s($1, { sdk: t, feature: r, children: /* @__PURE__ */ s(K4, { gamification: r, sdk: t }) }) : r.featureConfig.get().type === pe.HIGHLIGHTS ? /* @__PURE__ */ s($1, { sdk: t, feature: r, children: /* @__PURE__ */ s(es, { highlights: r, sdk: t }) }) : null : null, [t, r]);
|
|
3723
|
+
const ts = /* @__PURE__ */ c("button")({
|
|
3704
3724
|
name: "e",
|
|
3705
3725
|
class: "enu64b2",
|
|
3706
3726
|
propsAsIs: !1
|
|
3707
|
-
}),
|
|
3727
|
+
}), ns = /* @__PURE__ */ c("span")({
|
|
3708
3728
|
name: "t",
|
|
3709
3729
|
class: "tw2meku",
|
|
3710
3730
|
propsAsIs: !1
|
|
3711
|
-
}),
|
|
3731
|
+
}), rs = /* @__PURE__ */ c("span")({
|
|
3712
3732
|
name: "a",
|
|
3713
3733
|
class: "aka8vam",
|
|
3714
3734
|
propsAsIs: !1
|
|
3715
|
-
}),
|
|
3716
|
-
I && /* @__PURE__ */ s(
|
|
3717
|
-
/* @__PURE__ */ s(
|
|
3735
|
+
}), u1 = ({ disabled: t, active: r, onClick: l, label: d, icon: I }) => /* @__PURE__ */ s(ts, { onClick: l, disabled: t, "data-selected": r, children: /* @__PURE__ */ A(P, { children: [
|
|
3736
|
+
I && /* @__PURE__ */ s(ns, { children: I }),
|
|
3737
|
+
/* @__PURE__ */ s(rs, { children: d })
|
|
3718
3738
|
] }) });
|
|
3719
|
-
const
|
|
3739
|
+
const ss = () => ne, os = /* @__PURE__ */ c(ss())({
|
|
3720
3740
|
name: "a",
|
|
3721
3741
|
class: "a10lggiw",
|
|
3722
3742
|
propsAsIs: !0
|
|
3723
|
-
}), Ce = "channels",
|
|
3743
|
+
}), Ce = "channels", ls = (t) => {
|
|
3724
3744
|
var r;
|
|
3725
|
-
return /* @__PURE__ */ s(
|
|
3745
|
+
return /* @__PURE__ */ s(u1, {
|
|
3726
3746
|
...t,
|
|
3727
3747
|
id: "channels",
|
|
3728
3748
|
label: "Channels",
|
|
3729
|
-
icon: /* @__PURE__ */ s(
|
|
3749
|
+
icon: /* @__PURE__ */ s(os, {
|
|
3730
3750
|
name: "icon-btn-channels",
|
|
3731
3751
|
"data-selected": (r = t.active) == null ? void 0 : r.toString()
|
|
3732
3752
|
})
|
|
3733
3753
|
});
|
|
3734
3754
|
};
|
|
3735
|
-
const
|
|
3755
|
+
const as = () => ne, cs = /* @__PURE__ */ c(as())({
|
|
3736
3756
|
name: "d",
|
|
3737
3757
|
class: "d1x5s8ie",
|
|
3738
3758
|
propsAsIs: !0
|
|
3739
|
-
}), le = "featuredGroups",
|
|
3759
|
+
}), le = "featuredGroups", Ms = (t) => {
|
|
3740
3760
|
var r;
|
|
3741
|
-
return /* @__PURE__ */ s(
|
|
3761
|
+
return /* @__PURE__ */ s(u1, {
|
|
3742
3762
|
...t,
|
|
3743
3763
|
label: "FG+",
|
|
3744
3764
|
id: "featuredGroups",
|
|
3745
|
-
icon: /* @__PURE__ */ s(
|
|
3765
|
+
icon: /* @__PURE__ */ s(cs, {
|
|
3746
3766
|
name: "icon-btn-feature-groups",
|
|
3747
3767
|
"data-selected": (r = t.active) == null ? void 0 : r.toString()
|
|
3748
3768
|
})
|
|
3749
3769
|
});
|
|
3750
3770
|
};
|
|
3751
|
-
const
|
|
3771
|
+
const us = () => ne, ds = /* @__PURE__ */ c(us())({
|
|
3752
3772
|
name: "n",
|
|
3753
3773
|
class: "ntav86o",
|
|
3754
3774
|
propsAsIs: !0
|
|
3755
|
-
}), ke = "leaderboard",
|
|
3775
|
+
}), ke = "leaderboard", gs = (t) => {
|
|
3756
3776
|
var r;
|
|
3757
|
-
return /* @__PURE__ */ s(
|
|
3777
|
+
return /* @__PURE__ */ s(u1, {
|
|
3758
3778
|
...t,
|
|
3759
3779
|
label: "Leader Board",
|
|
3760
3780
|
id: "leaderboard",
|
|
3761
|
-
icon: /* @__PURE__ */ s(
|
|
3781
|
+
icon: /* @__PURE__ */ s(ds, {
|
|
3762
3782
|
name: "icon-btn-leaderboard",
|
|
3763
3783
|
"data-selected": (r = t.active) == null ? void 0 : r.toString()
|
|
3764
3784
|
})
|
|
3765
3785
|
});
|
|
3766
3786
|
};
|
|
3767
|
-
const
|
|
3787
|
+
const Is = /* @__PURE__ */ c("div")({
|
|
3768
3788
|
name: "n",
|
|
3769
3789
|
class: "n1rlvhvz",
|
|
3770
3790
|
propsAsIs: !1
|
|
3771
|
-
}),
|
|
3791
|
+
}), ps = ({
|
|
3772
3792
|
children: t,
|
|
3773
3793
|
className: r
|
|
3774
|
-
}) => /* @__PURE__ */ s(
|
|
3794
|
+
}) => /* @__PURE__ */ s(Is, {
|
|
3775
3795
|
className: r,
|
|
3776
3796
|
children: t
|
|
3777
3797
|
});
|
|
3778
|
-
const
|
|
3798
|
+
const Ns = () => ps, hs = /* @__PURE__ */ c(Ns())({
|
|
3779
3799
|
name: "n",
|
|
3780
3800
|
class: "n9bnom",
|
|
3781
3801
|
propsAsIs: !0
|
|
3782
|
-
}),
|
|
3783
|
-
/* @__PURE__ */ s(
|
|
3802
|
+
}), Ds = ({ activeOverlay: t, setActiveOverlay: r, sdkReady: l }) => /* @__PURE__ */ A(hs, { children: [
|
|
3803
|
+
/* @__PURE__ */ s(ls, { active: t === Ce, onClick: () => r(Ce) }),
|
|
3784
3804
|
/* @__PURE__ */ s(
|
|
3785
|
-
|
|
3805
|
+
Ms,
|
|
3786
3806
|
{
|
|
3787
3807
|
active: t === le,
|
|
3788
3808
|
disabled: !l,
|
|
@@ -3792,14 +3812,14 @@ const ds = () => us, gs = /* @__PURE__ */ c(ds())({
|
|
|
3792
3812
|
}
|
|
3793
3813
|
),
|
|
3794
3814
|
/* @__PURE__ */ s(
|
|
3795
|
-
|
|
3815
|
+
gs,
|
|
3796
3816
|
{
|
|
3797
3817
|
active: t === ke,
|
|
3798
3818
|
onClick: () => r(ke)
|
|
3799
3819
|
}
|
|
3800
3820
|
)
|
|
3801
|
-
] }),
|
|
3802
|
-
const [l, d] = Q(!1), I =
|
|
3821
|
+
] }), As = (t, r) => {
|
|
3822
|
+
const [l, d] = Q(!1), I = E(t.status) === "ready", [g, p] = Q(le), a = Ne(
|
|
3803
3823
|
(h) => {
|
|
3804
3824
|
p(h), h === le ? (t.createEventSession(r), t.openFeature(pe.GAMES)) : t.closeFeature();
|
|
3805
3825
|
},
|
|
@@ -3828,8 +3848,8 @@ const ds = () => us, gs = /* @__PURE__ */ c(ds())({
|
|
|
3828
3848
|
d(!1), t.disableApp();
|
|
3829
3849
|
}
|
|
3830
3850
|
};
|
|
3831
|
-
},
|
|
3832
|
-
const r =
|
|
3851
|
+
}, ys = (t) => {
|
|
3852
|
+
const r = E(t.getActiveFeature()), [l, d] = Q(null);
|
|
3833
3853
|
return te(() => {
|
|
3834
3854
|
const I = t.getFeatures();
|
|
3835
3855
|
if (r)
|
|
@@ -3845,40 +3865,52 @@ const ds = () => us, gs = /* @__PURE__ */ c(ds())({
|
|
|
3845
3865
|
g.status.get() === Z.Ready && g.disable();
|
|
3846
3866
|
};
|
|
3847
3867
|
}, [r, t]), [r, l];
|
|
3848
|
-
},
|
|
3849
|
-
const [, r] =
|
|
3850
|
-
return /* @__PURE__ */ s(
|
|
3851
|
-
},
|
|
3852
|
-
const { sdkEnabled: I, sdkReady: g, activeOverlay: p, activateAndLoadOverlay: a, enableSdk: h, disableSdk: y } =
|
|
3868
|
+
}, Cs = ({ sdk: t }) => {
|
|
3869
|
+
const [, r] = ys(t);
|
|
3870
|
+
return /* @__PURE__ */ s(is, { feature: r, sdk: t });
|
|
3871
|
+
}, ms = ({ sdk: t, overlays: r, children: l, event: d }) => {
|
|
3872
|
+
const { sdkEnabled: I, sdkReady: g, activeOverlay: p, activateAndLoadOverlay: a, enableSdk: h, disableSdk: y } = As(
|
|
3853
3873
|
t,
|
|
3854
3874
|
d
|
|
3855
3875
|
);
|
|
3856
|
-
return /* @__PURE__ */ s(
|
|
3876
|
+
return /* @__PURE__ */ s(ai, { style: { height: "100%" }, children: /* @__PURE__ */ A(v4, { className: x4, children: [
|
|
3857
3877
|
I && /* @__PURE__ */ s(
|
|
3858
|
-
|
|
3878
|
+
Ds,
|
|
3859
3879
|
{
|
|
3860
3880
|
sdkReady: g,
|
|
3861
3881
|
activeOverlay: p,
|
|
3862
3882
|
setActiveOverlay: a
|
|
3863
3883
|
}
|
|
3864
3884
|
),
|
|
3865
|
-
/* @__PURE__ */
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3885
|
+
/* @__PURE__ */ s(
|
|
3886
|
+
r1,
|
|
3887
|
+
{
|
|
3888
|
+
"data-nav": I.toString(),
|
|
3889
|
+
style: { display: !I || p === Ce ? "block" : "none" },
|
|
3890
|
+
children: l && l({ enableSdk: h, disableSdk: y })
|
|
3891
|
+
}
|
|
3892
|
+
),
|
|
3893
|
+
/* @__PURE__ */ s(
|
|
3894
|
+
r1,
|
|
3895
|
+
{
|
|
3896
|
+
"data-nav": I.toString(),
|
|
3897
|
+
style: { display: p === ke ? "block" : "none" },
|
|
3898
|
+
children: r && p === ke && r[p]
|
|
3899
|
+
}
|
|
3900
|
+
),
|
|
3901
|
+
I && p === le && /* @__PURE__ */ s(Cs, { sdk: t })
|
|
3870
3902
|
] }) });
|
|
3871
|
-
},
|
|
3872
|
-
const { sdk: d, status: I } =
|
|
3903
|
+
}, Js = ({ children: t, event: r, overlays: l }) => {
|
|
3904
|
+
const { sdk: d, status: I } = s1(be);
|
|
3873
3905
|
if (I === ve.UNSET)
|
|
3874
3906
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
3875
|
-
return d ? /* @__PURE__ */ s(
|
|
3907
|
+
return d ? /* @__PURE__ */ s(ms, { sdk: d, event: r, overlays: l, children: t }) : t({});
|
|
3876
3908
|
};
|
|
3877
3909
|
export {
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3910
|
+
Js as MastersStreamLayerSDKReact,
|
|
3911
|
+
Ws as StreamLayerProvider,
|
|
3912
|
+
qs as StreamLayerSDKPoints,
|
|
3913
|
+
Fs as StreamLayerSDKReact,
|
|
3914
|
+
f4 as useStreamLayer,
|
|
3883
3915
|
w4 as useStreamLayerApp
|
|
3884
3916
|
};
|