fansunited-frontend-components 0.0.44 → 0.0.47
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/ChanceGame.js +33 -33
- package/ClassicQuizPlay.js +649 -671
- package/CollectLead.js +34 -34
- package/Discussion.js +3 -3021
- package/EitherOrPlay.js +163 -163
- package/EventGamePlay.js +44 -40
- package/Leaderboard.js +72 -72
- package/MatchQuizPlay.js +246 -245
- package/PersonalityQuizPlay.js +12760 -9495
- package/PickThePair.js +23 -23
- package/PollVote.js +544 -566
- package/Predictor.d.ts +5 -0
- package/Predictor.d.ts.map +1 -0
- package/Predictor.js +20192 -0
- package/chunks/AlertMessage-DEQIOPix.js +315 -0
- package/chunks/{ArrowRightAlt-BoUxriBH.js → ArrowRightAlt-B2nkus4s.js} +1 -1
- package/chunks/{Avatar-C7ZJ5apl.js → Avatar-C9PZ4fZC.js} +80 -80
- package/chunks/{ChanceGameEmbedVariant-BkAL2iMZ.js → ChanceGameEmbedVariant-Bb_hUXEk.js} +22 -22
- package/chunks/CheckCircle-RcO0pr0f.js +212 -0
- package/chunks/Close-CzCzTDc8.js +9 -0
- package/chunks/Close-QIefKug3.js +8 -0
- package/chunks/CollectLeadForm-DFIhLeYH.js +4148 -0
- package/chunks/Divider-DPp2a61F.js +165 -0
- package/chunks/{Edit-DUniprks.js → Edit-Bb8BBw7A.js} +19 -19
- package/chunks/EmojiEvents-BhDSwudY.js +8 -0
- package/chunks/{FavoriteBorder-UfuHpOXw.js → FavoriteBorder-B73FKZ3W.js} +1 -1
- package/chunks/FormControl-DzsevPhU.js +653 -0
- package/chunks/{FormLabel-CZC8ujMH.js → FormLabel-CYBeKW8B.js} +7 -7
- package/chunks/{Input-DM5ufV47.js → Input-eeZp8VCW.js} +2 -2
- package/chunks/KeyboardArrowDown-BWtUKUIp.js +11 -0
- package/chunks/{ModalDialog-_I4hvDI6.js → ModalDialog-BF0aFU49.js} +53 -53
- package/chunks/{NotFoundSkeleton-BHPH2RiI.js → NotFoundSkeleton-B_cooMQ9.js} +149 -150
- package/chunks/{Notification-DexZkqyG.js → Notification-DAj7523J.js} +196 -192
- package/chunks/OverlayApiErrorSkeleton-CiVtcOmG.js +729 -0
- package/chunks/{OverlayLeadAfterCollection-DAb1dSmC.js → OverlayLeadAfterCollection-Df7xGLgO.js} +9 -9
- package/chunks/{OverlayScoreStateSkeleton-BTxWohDI.js → OverlayScoreStateSkeleton-CHzX1Gf7.js} +3 -3
- package/chunks/{Person-IzZDDhmg.js → Person-C0oARTCn.js} +25 -25
- package/chunks/{PickOneOfX-ny-1b2mb.js → PickOneOfX-CXiNBq-I.js} +1 -1
- package/chunks/Popper-D4TcZDq1.js +1260 -0
- package/chunks/{Portal-BFeGKTzP.js → Portal-BNrzAjXr.js} +12 -12
- package/chunks/{PrizeCard-C4Au83Cz.js → PrizeCard-B0HczmXj.js} +9401 -7162
- package/chunks/{CheckCircle-HsAwn-Ao.js → Select-BpXJGPDL.js} +956 -1161
- package/chunks/{Spinner-BHr9A75G.js → Spinner-VF7pS8cz.js} +1 -1
- package/chunks/{SplitLeadAfterCollection-BVPjEbhN.js → SplitLeadAfterCollection-BVHQGprp.js} +21 -21
- package/chunks/Stack-DchTYx6z.js +168 -0
- package/chunks/{Tabs-D5c8Ignm.js → Tabs-CDt4yvnj.js} +47 -47
- package/chunks/{Textarea-DgvzoEIx.js → Textarea-DCPE5K26.js} +51 -56
- package/chunks/{TimerOutlined-CfuXkOOJ.js → TimerOutlined-azUFE6Ed.js} +1 -1
- package/chunks/{helpers-LUoF9-Zd.js → helpers-CV2Mo9Pu.js} +54 -33
- package/chunks/index-B2OgR4TV.js +676 -0
- package/chunks/index-DEdShMam.js +4 -0
- package/chunks/main-BSaQcsoh.js +2867 -0
- package/chunks/useEmbedCode-DCWnWGak.js +31 -0
- package/chunks/{useEventCallback-BzPEpIIS.js → useEventCallback-BlWyXJSF.js} +3 -3
- package/chunks/{useForwardedInput-C_IbmuBN.js → useForwardedInput-BFETxKKi.js} +25 -25
- package/chunks/{useImageVariant-BAF6m9zj.js → useImageVariant-DalagjyR.js} +1 -1
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +11 -9
- package/package.json +22 -2
- package/chunks/AlertMessage-DeOcuhSL.js +0 -477
- package/chunks/CollectLeadForm-Dl6nc12_.js +0 -4789
- package/chunks/index-CMahPV5N.js +0 -1864
package/ChanceGame.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { S as at } from "./chunks/Spinner-
|
|
2
|
+
import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-CV2Mo9Pu.js";
|
|
3
|
+
import Q, { useState as qe, useEffect as Ze } from "react";
|
|
4
|
+
import { m as K, ab as Qe, t as ve, k as ie, a0 as Se, B as m, Z as se, ag as ue, r as we, o as xe, T as D, $ as he, ah as Te, W as fe, n as $e, ai as et, i as tt, ac as ne, g as ot, C as nt, h as rt, E as lt, j as it } from "./chunks/PrizeCard-B0HczmXj.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-VF7pS8cz.js";
|
|
6
6
|
import { createPortal as st } from "react-dom";
|
|
7
7
|
import { u as ct } from "./chunks/useInfoPage-BHdgKdme.js";
|
|
8
|
-
import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-
|
|
9
|
-
import { u as mt, S as le, c as Ee, D as Ge, C as ut, W as ht, d as xt, e as ft, f as pt, O as gt, F as bt, b as ye, a as yt, P as vt } from "./chunks/PickOneOfX-
|
|
10
|
-
import { u as pe, d as He, a as Ne } from "./chunks/useImageVariant-
|
|
8
|
+
import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-B_cooMQ9.js";
|
|
9
|
+
import { u as mt, S as le, c as Ee, D as Ge, C as ut, W as ht, d as xt, e as ft, f as pt, O as gt, F as bt, b as ye, a as yt, P as vt } from "./chunks/PickOneOfX-CXiNBq-I.js";
|
|
10
|
+
import { u as pe, d as He, a as Ne } from "./chunks/useImageVariant-DalagjyR.js";
|
|
11
11
|
const ke = ({
|
|
12
12
|
children: e,
|
|
13
13
|
brandingBorderColor: s,
|
|
14
14
|
state: a
|
|
15
15
|
}) => {
|
|
16
|
-
const r = K(), x =
|
|
16
|
+
const r = K(), x = Qe(), o = a === "play" ? x : r, c = ve().md, d = s || ie().secondaryContainer, l = Se().size + " solid " + d;
|
|
17
17
|
return /* @__PURE__ */ t(
|
|
18
18
|
m,
|
|
19
19
|
{
|
|
@@ -66,9 +66,9 @@ const ke = ({
|
|
|
66
66
|
showInlineResult: k,
|
|
67
67
|
hasEntered: $,
|
|
68
68
|
confettiActive: z,
|
|
69
|
-
spinDuration:
|
|
70
|
-
shakeAnimationDuration:
|
|
71
|
-
confettiVelocityMultiplier:
|
|
69
|
+
spinDuration: j,
|
|
70
|
+
shakeAnimationDuration: P,
|
|
71
|
+
confettiVelocityMultiplier: U,
|
|
72
72
|
confettiGravity: A,
|
|
73
73
|
handleSpin: I,
|
|
74
74
|
handleReset: v,
|
|
@@ -87,7 +87,7 @@ const ke = ({
|
|
|
87
87
|
{
|
|
88
88
|
active: z,
|
|
89
89
|
primaryColor: r,
|
|
90
|
-
velocityMultiplier:
|
|
90
|
+
velocityMultiplier: U,
|
|
91
91
|
gravity: A,
|
|
92
92
|
onComplete: ee
|
|
93
93
|
}
|
|
@@ -256,7 +256,7 @@ const ke = ({
|
|
|
256
256
|
transform: $ ? "scale(1)" : "scale(0.85)",
|
|
257
257
|
transition: "opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
258
258
|
// Shake animation
|
|
259
|
-
animation: X ? `wheelShake ${
|
|
259
|
+
animation: X ? `wheelShake ${P / 2}ms ease-in-out 2` : "none",
|
|
260
260
|
"@keyframes wheelShake": {
|
|
261
261
|
"0%, 100%": { transform: "translateX(0)" },
|
|
262
262
|
"10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
|
|
@@ -287,7 +287,7 @@ const ke = ({
|
|
|
287
287
|
isStandard: y,
|
|
288
288
|
rotation: N,
|
|
289
289
|
isSpinning: T,
|
|
290
|
-
spinDuration:
|
|
290
|
+
spinDuration: j
|
|
291
291
|
}
|
|
292
292
|
),
|
|
293
293
|
!y && !h && n && /* @__PURE__ */ t(
|
|
@@ -451,7 +451,7 @@ const ke = ({
|
|
|
451
451
|
] })
|
|
452
452
|
] });
|
|
453
453
|
if (y) {
|
|
454
|
-
const
|
|
454
|
+
const Z = Ce(c), oe = Z ? Z.replace(/[^\d,]/g, "") : "";
|
|
455
455
|
return /* @__PURE__ */ w(
|
|
456
456
|
m,
|
|
457
457
|
{
|
|
@@ -700,7 +700,7 @@ const ke = ({
|
|
|
700
700
|
compactCards: g = !1
|
|
701
701
|
}) => {
|
|
702
702
|
var Fe, We, _e, Oe;
|
|
703
|
-
const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), C = Se(), E = n || c, M = l || r, f = S === "standard", L = S === "overlay", H = f ? Ce(c) : "", W = H ? H.replace(/[^\d,]/g, "") : "", B = g ? i ? 80 : 110 : i ? 100 : 140, T = g ? i ? 104 : 143 : i ? 130 : 180, N = g ? i ? 90 : 130 : i ? 120 : 180, b = g ? i ? "16px" : "32px" : i ? "24px" : "48px", X = g ? i ? "12px" : "32px" : i ? "16px" : "48px", R = Ee(r, O), k = JSON.parse(e.body), $ = k.segments || [], z = e.labels || {},
|
|
703
|
+
const i = K(), u = ie(), _ = ve(), y = we(), h = xe(), C = Se(), E = n || c, M = l || r, f = S === "standard", L = S === "overlay", H = f ? Ce(c) : "", W = H ? H.replace(/[^\d,]/g, "") : "", B = g ? i ? 80 : 110 : i ? 100 : 140, T = g ? i ? 104 : 143 : i ? 130 : 180, N = g ? i ? 90 : 130 : i ? 120 : 180, b = g ? i ? "16px" : "32px" : i ? "24px" : "48px", X = g ? i ? "12px" : "32px" : i ? "16px" : "48px", R = Ee(r, O), k = JSON.parse(e.body), $ = k.segments || [], z = e.labels || {}, j = k.mode || ((Fe = k.config) == null ? void 0 : Fe.mode) || "fair", P = ((We = k.config) == null ? void 0 : We.pace) || "normal", U = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
|
|
704
704
|
var J;
|
|
705
705
|
return (J = ae.images) == null ? void 0 : J.idle;
|
|
706
706
|
}), {
|
|
@@ -711,15 +711,15 @@ const ke = ({
|
|
|
711
711
|
showInlineResult: G,
|
|
712
712
|
showLoseAnimation: q,
|
|
713
713
|
hasEntered: V,
|
|
714
|
-
flippedCards:
|
|
714
|
+
flippedCards: Z,
|
|
715
715
|
crossfadedCards: oe,
|
|
716
716
|
revealedOtherCards: ce,
|
|
717
717
|
flipDuration: Xe,
|
|
718
|
-
crossfadeDuration:
|
|
719
|
-
loseAnimationDuration:
|
|
718
|
+
crossfadeDuration: je,
|
|
719
|
+
loseAnimationDuration: Pe,
|
|
720
720
|
handlePick: Re,
|
|
721
721
|
handleReset: ge
|
|
722
|
-
} = pt({ segments: $, mode:
|
|
722
|
+
} = pt({ segments: $, mode: j, pace: P, revealAll: U }), ze = () => /* @__PURE__ */ w(re, { children: [
|
|
723
723
|
A && /* @__PURE__ */ t(
|
|
724
724
|
Ge,
|
|
725
725
|
{
|
|
@@ -928,7 +928,7 @@ const ke = ({
|
|
|
928
928
|
perspective: "1200px"
|
|
929
929
|
},
|
|
930
930
|
children: (ee ?? $).map((ae, J) => {
|
|
931
|
-
const be = `card-${J}`, de = v !== null, Be =
|
|
931
|
+
const be = `card-${J}`, de = v !== null, Be = Z.has(be), me = ce.has(be), Ue = de && !Be && !me, De = oe.has(be), Ye = de && !De && !me;
|
|
932
932
|
return /* @__PURE__ */ t(
|
|
933
933
|
m,
|
|
934
934
|
{
|
|
@@ -954,7 +954,7 @@ const ke = ({
|
|
|
954
954
|
isRevealed: de,
|
|
955
955
|
hasEntered: V,
|
|
956
956
|
objectSize: N,
|
|
957
|
-
crossfadeDuration:
|
|
957
|
+
crossfadeDuration: je,
|
|
958
958
|
isStandard: f,
|
|
959
959
|
primaryColor: r,
|
|
960
960
|
dangerColor: d,
|
|
@@ -968,14 +968,14 @@ const ke = ({
|
|
|
968
968
|
selectedSegment: v,
|
|
969
969
|
isFlipped: Be,
|
|
970
970
|
isOtherRevealed: me,
|
|
971
|
-
shouldDim:
|
|
971
|
+
shouldDim: Ue,
|
|
972
972
|
isRevealed: de,
|
|
973
973
|
showLoseAnimation: q,
|
|
974
974
|
hasEntered: V,
|
|
975
975
|
cardWidth: B,
|
|
976
976
|
cardHeight: T,
|
|
977
977
|
flipDuration: Xe,
|
|
978
|
-
loseAnimationDuration:
|
|
978
|
+
loseAnimationDuration: Pe,
|
|
979
979
|
cardBaseColor: E,
|
|
980
980
|
shimmerColor: M,
|
|
981
981
|
primaryColor: r,
|
|
@@ -1305,14 +1305,14 @@ const ke = ({
|
|
|
1305
1305
|
enableReset: s = !1,
|
|
1306
1306
|
defaultImagePlaceholderUrl: a
|
|
1307
1307
|
}) => {
|
|
1308
|
-
var f, L, H, W, B, T, N, b, X, R, k, $, z, P, U,
|
|
1308
|
+
var f, L, H, W, B, T, N, b, X, R, k, $, z, j, P, U, A, I, v;
|
|
1309
1309
|
const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((f = e.branding) == null ? void 0 : f.colors) || null, n = (L = e.branding) == null ? void 0 : L.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", F = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
|
|
1310
1310
|
{
|
|
1311
1311
|
images: e.images,
|
|
1312
1312
|
imagePlaceholder: O
|
|
1313
1313
|
},
|
|
1314
1314
|
fe.OVERLAY
|
|
1315
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (B = (W = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : W.palette) == null ? void 0 : B.primary) == null ? void 0 : T.plainColor), u = (R = (X = (b = (N = o.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : b.palette) == null ? void 0 : X.primary) == null ? void 0 : R.onPrimary, _ = (d == null ? void 0 : d.background_color) || (($ = (k = o.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : $.surfaceVariant), y = (
|
|
1315
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((T = (B = (W = (H = o.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : W.palette) == null ? void 0 : B.primary) == null ? void 0 : T.plainColor), u = (R = (X = (b = (N = o.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : b.palette) == null ? void 0 : X.primary) == null ? void 0 : R.onPrimary, _ = (d == null ? void 0 : d.background_color) || (($ = (k = o.colorSchemes) == null ? void 0 : k.dark) == null ? void 0 : $.surfaceVariant), y = (U = (P = (j = (z = o.colorSchemes) == null ? void 0 : z.light) == null ? void 0 : j.palette) == null ? void 0 : P.danger) == null ? void 0 : U.plainColor, h = o.customFontFamily.dark.primary, C = o.customRadius.dark.md, E = (I = (A = o.customRadius) == null ? void 0 : A.light) == null ? void 0 : I.xl, M = Le({
|
|
1316
1316
|
spacingScale: c,
|
|
1317
1317
|
mdBorderRadius: C,
|
|
1318
1318
|
contentBgColor: _,
|
|
@@ -1468,14 +1468,14 @@ const ke = ({
|
|
|
1468
1468
|
enableReset: s = !1,
|
|
1469
1469
|
defaultImagePlaceholderUrl: a
|
|
1470
1470
|
}) => {
|
|
1471
|
-
var L, H, W, B, T, N, b, X, R, k, $, z, P, U,
|
|
1471
|
+
var L, H, W, B, T, N, b, X, R, k, $, z, j, P, U, A, I, v, ee, te, Y, G, q, V, Z, oe, ce;
|
|
1472
1472
|
const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((L = e.branding) == null ? void 0 : L.colors) || null, n = (H = e.branding) == null ? void 0 : H.images, l = x ? (n == null ? void 0 : n.mobile_background_image) || (n == null ? void 0 : n.background_image) || "" : (n == null ? void 0 : n.background_image) || "", F = x ? (n == null ? void 0 : n.mobile_logo) || (n == null ? void 0 : n.main_logo) || "" : (n == null ? void 0 : n.main_logo) || "", O = a || (x ? He : Ne), p = l || pe(
|
|
1473
1473
|
{
|
|
1474
1474
|
images: e.images,
|
|
1475
1475
|
imagePlaceholder: O
|
|
1476
1476
|
},
|
|
1477
1477
|
fe.OVERLAY
|
|
1478
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (B = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : B.palette) == null ? void 0 : T.primary) == null ? void 0 : N.plainColor), u = (d == null ? void 0 : d.secondary_color) || ((k = (R = (X = (b = o.colorSchemes) == null ? void 0 : b.light) == null ? void 0 : X.palette) == null ? void 0 : R.danger) == null ? void 0 : k.plainColor), _ = (
|
|
1478
|
+
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((N = (T = (B = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : B.palette) == null ? void 0 : T.primary) == null ? void 0 : N.plainColor), u = (d == null ? void 0 : d.secondary_color) || ((k = (R = (X = (b = o.colorSchemes) == null ? void 0 : b.light) == null ? void 0 : X.palette) == null ? void 0 : R.danger) == null ? void 0 : k.plainColor), _ = (P = (j = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.palette) == null ? void 0 : j.primary) == null ? void 0 : P.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (U = o.colorSchemes) == null ? void 0 : U.dark) == null ? void 0 : A.surfaceVariant), h = (te = (ee = (v = (I = o.colorSchemes) == null ? void 0 : I.light) == null ? void 0 : v.palette) == null ? void 0 : ee.danger) == null ? void 0 : te.plainColor, C = o.customFontFamily.dark.primary, E = o.customRadius.dark.md, M = (G = (Y = o.customRadius) == null ? void 0 : Y.light) == null ? void 0 : G.xl, f = Le({
|
|
1479
1479
|
spacingScale: c,
|
|
1480
1480
|
mdBorderRadius: E,
|
|
1481
1481
|
contentBgColor: y,
|
|
@@ -1523,7 +1523,7 @@ const ke = ({
|
|
|
1523
1523
|
brandingLogo: F,
|
|
1524
1524
|
textColor: S,
|
|
1525
1525
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1526
|
-
primaryUrl: (
|
|
1526
|
+
primaryUrl: (Z = (V = e.branding) == null ? void 0 : V.urls) == null ? void 0 : Z.primary_url,
|
|
1527
1527
|
secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
|
|
1528
1528
|
}
|
|
1529
1529
|
)
|
|
@@ -1541,7 +1541,7 @@ const ke = ({
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return e.language || "en";
|
|
1543
1543
|
}, [r, x] = qe(!1);
|
|
1544
|
-
if (
|
|
1544
|
+
if (Ze(() => {
|
|
1545
1545
|
const o = a();
|
|
1546
1546
|
tt(o).then(() => x(!0));
|
|
1547
1547
|
}, [e.language, s]), !s || !r)
|
|
@@ -1584,10 +1584,10 @@ const ke = ({
|
|
|
1584
1584
|
}
|
|
1585
1585
|
return e.variant === ne.PENALTY_SHOOTOUT ? /* @__PURE__ */ t(ye, { infoPage: s }) : e.variant === ne.PICK_ONE_OF_X ? /* @__PURE__ */ t(yt, { infoPage: s }) : /* @__PURE__ */ t(vt, { infoPage: s });
|
|
1586
1586
|
}, _t = (e) => {
|
|
1587
|
-
const [s, a] =
|
|
1587
|
+
const [s, a] = Q.useState(!1), r = Q.useRef(
|
|
1588
1588
|
`chance-game-shadow-root-${Math.random().toString(36).substring(2, 11)}`
|
|
1589
|
-
), x =
|
|
1590
|
-
|
|
1589
|
+
), x = Q.useRef(null), o = Q.useRef(null), c = Q.useRef(null), d = Q.useRef(null);
|
|
1590
|
+
Q.useEffect(() => {
|
|
1591
1591
|
if (x.current)
|
|
1592
1592
|
return x.current.shadowRoot ? (o.current = x.current.shadowRoot, c.current = o.current.getElementById(
|
|
1593
1593
|
r.current
|