fansunited-frontend-components 0.0.47 → 0.0.49
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 +81 -81
- package/ClassicQuizPlay.js +1437 -1477
- package/CollectLead.js +32 -32
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +60 -60
- package/EventGamePlay.js +22 -22
- package/Leaderboard.js +41 -41
- package/MatchQuizPlay.js +25 -25
- package/PersonalityQuizPlay.js +1330 -45792
- package/PickThePair.js +92 -92
- package/PollVote.js +55 -55
- package/Predictor.js +10543 -10053
- package/README.md +272 -0
- package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +4 -0
- package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +4 -0
- package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +4 -0
- package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +4 -0
- package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +4 -0
- package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +4 -0
- package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +4 -0
- package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +4 -0
- package/chunks/{AlertMessage-DEQIOPix.js → AlertMessage-Ds45MBHB.js} +16 -16
- package/chunks/{ArrowRightAlt-B2nkus4s.js → ArrowRightAlt-DKADQN2o.js} +1 -1
- package/chunks/{Avatar-C9PZ4fZC.js → Avatar-K1EWhhkA.js} +24 -24
- package/chunks/{ChanceGameEmbedVariant-Bb_hUXEk.js → ChanceGameEmbedVariant-DqFg4YKU.js} +24 -24
- package/chunks/{CheckCircle-RcO0pr0f.js → CheckCircle-CV9iMpkZ.js} +30 -30
- package/chunks/{Close-QIefKug3.js → Close-BHp4N1-6.js} +3 -3
- package/chunks/{Close-CzCzTDc8.js → Close-C6Cw96SJ.js} +1 -1
- package/chunks/{CollectLeadForm-DFIhLeYH.js → CollectLeadForm-DnLKA8qz.js} +133 -133
- package/chunks/{Divider-DPp2a61F.js → Divider-BvUimRFw.js} +10 -10
- package/chunks/{Edit-Bb8BBw7A.js → Edit-CZ3ni-Ur.js} +20 -20
- package/chunks/{EmojiEvents-BhDSwudY.js → EmojiEvents-DpmLq98V.js} +4 -4
- package/chunks/{FavoriteBorder-B73FKZ3W.js → FavoriteBorder-DUK_DrY4.js} +1 -1
- package/chunks/{FormControl-DzsevPhU.js → FormControl-BUItlVIg.js} +47 -47
- package/chunks/{FormLabel-CYBeKW8B.js → FormLabel-CeTNPUn7.js} +13 -13
- package/chunks/{Input-eeZp8VCW.js → Input-MJCQcYzo.js} +13 -13
- package/chunks/{KeyboardArrowDown-BWtUKUIp.js → KeyboardArrowDown-SZpn2GhJ.js} +5 -5
- package/chunks/{ModalDialog-BF0aFU49.js → ModalDialog-Cfgv9UAA.js} +42 -42
- package/chunks/{NotFoundSkeleton-B_cooMQ9.js → NotFoundSkeleton-Cs6DtD9u.js} +83 -83
- package/chunks/{Notification-DAj7523J.js → Notification-pcKtlRms.js} +27 -27
- package/chunks/{OverlayApiErrorSkeleton-CiVtcOmG.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +19 -19
- package/chunks/{OverlayLeadAfterCollection-Df7xGLgO.js → OverlayLeadAfterCollection-F2TAV9wK.js} +7 -7
- package/chunks/{OverlayScoreStateSkeleton-CHzX1Gf7.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
- package/chunks/{Person-C0oARTCn.js → Person-BGdniS_p.js} +27 -27
- package/chunks/{PickOneOfX-CXiNBq-I.js → PickOneOfX-Ci4ZJf7G.js} +1 -1
- package/chunks/{Popper-D4TcZDq1.js → Popper-DOVSI4rJ.js} +28 -28
- package/chunks/{Portal-BNrzAjXr.js → Portal-Cs0dgwmH.js} +8 -8
- package/chunks/{PrizeCard-B0HczmXj.js → PrizeCard-DF3QxwQJ.js} +690 -634
- package/chunks/{Select-BpXJGPDL.js → Select-BHeTdOYr.js} +139 -139
- package/chunks/{Spinner-VF7pS8cz.js → Spinner-DbUB64Gj.js} +7 -7
- package/chunks/{SplitLeadAfterCollection-BVHQGprp.js → SplitLeadAfterCollection-DSw6X5fx.js} +12 -12
- package/chunks/{Stack-DchTYx6z.js → Stack-BpHk5eb0.js} +21 -21
- package/chunks/StandardContentSkeleton-Bae1LLQ_.js +57 -0
- package/chunks/{Tabs-CDt4yvnj.js → Tabs-hwJ7jsUl.js} +62 -62
- package/chunks/{Textarea-DCPE5K26.js → Textarea-zOtMdgc5.js} +42 -42
- package/chunks/{TimerOutlined-azUFE6Ed.js → TimerOutlined-DWE7f0YX.js} +3 -3
- package/chunks/{helpers-CV2Mo9Pu.js → helpers-NuC1SzL3.js} +8 -8
- package/chunks/index-BaypiKlO.js +4 -0
- package/chunks/{index-B2OgR4TV.js → index-D1K1OB4p.js} +144 -130
- package/chunks/{main-BSaQcsoh.js → main-hB01WcoP.js} +89 -89
- package/chunks/{useEventCallback-BlWyXJSF.js → useEventCallback-CizlfWBo.js} +5 -5
- package/chunks/{useForwardedInput-BFETxKKi.js → useForwardedInput-RWDntqBU.js} +16 -16
- package/chunks/{useImageVariant-DalagjyR.js → useImageVariant-Cex1eIqq.js} +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +17 -12
- package/package.json +1 -1
- package/chunks/index-DEdShMam.js +0 -4
package/PollVote.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsxs as x, Fragment as B, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import Ie, { useState as
|
|
3
|
-
import {
|
|
4
|
-
import { P as dt } from "./chunks/Portal-
|
|
2
|
+
import Ie, { useState as J, useEffect as Me, useMemo as Xe } from "react";
|
|
3
|
+
import { i as G, u as Z, e as ee, c as _, b as Y, a as F, n as Be, W as V, B as l, T as h, p as ot, f as N, d as je, g as Te, C as Ae, h as ze, j as p, l as at, m as rt, q as ct, o as st } from "./chunks/PrizeCard-DF3QxwQJ.js";
|
|
4
|
+
import { P as dt } from "./chunks/Portal-Cs0dgwmH.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { h as Ce, s as He, g as gt, e as We, a as tt,
|
|
7
|
-
import { S as ut } from "./chunks/Spinner-
|
|
8
|
-
import { S as ft, a as xt, b as nt, C as
|
|
9
|
-
import { n as yt, c as ht } from "./chunks/index-
|
|
10
|
-
import { R as Ee, A as Ue, O as bt, S as Ct, N as St } from "./chunks/NotFoundSkeleton-
|
|
11
|
-
import { d as he, a as be,
|
|
6
|
+
import { h as Ce, s as He, g as gt, e as We, a as tt, b as mt } from "./chunks/helpers-NuC1SzL3.js";
|
|
7
|
+
import { S as ut } from "./chunks/Spinner-DbUB64Gj.js";
|
|
8
|
+
import { S as ft, a as xt, b as nt, C as Ze, c as et } from "./chunks/ChanceGameEmbedVariant-DqFg4YKU.js";
|
|
9
|
+
import { n as yt, c as ht } from "./chunks/index-D1K1OB4p.js";
|
|
10
|
+
import { R as Ee, A as Ue, O as bt, S as Ct, N as St } from "./chunks/NotFoundSkeleton-Cs6DtD9u.js";
|
|
11
|
+
import { d as he, a as be, b as ie } from "./chunks/useImageVariant-Cex1eIqq.js";
|
|
12
12
|
import { u as Oe } from "./chunks/useEmbedCode-DCWnWGak.js";
|
|
13
|
-
import { C as It } from "./chunks/CollectLeadForm-
|
|
14
|
-
import { A as Ne, R as pe, O as lt, S as it } from "./chunks/OverlayApiErrorSkeleton-
|
|
15
|
-
import { C as Tt } from "./chunks/CheckCircle-
|
|
16
|
-
import {
|
|
17
|
-
import { S as vt } from "./chunks/Stack-
|
|
18
|
-
import { O as Ft } from "./chunks/OverlayScoreStateSkeleton-
|
|
19
|
-
import { S as Dt, O as Rt, a as Lt, b as wt } from "./chunks/OverlayLeadAfterCollection-
|
|
20
|
-
import { S as Bt, a as zt } from "./chunks/SplitLeadAfterCollection-
|
|
13
|
+
import { C as It } from "./chunks/CollectLeadForm-DnLKA8qz.js";
|
|
14
|
+
import { A as Ne, R as pe, O as lt, S as it } from "./chunks/OverlayApiErrorSkeleton-Dl3s5Oaf.js";
|
|
15
|
+
import { C as Tt } from "./chunks/CheckCircle-CV9iMpkZ.js";
|
|
16
|
+
import { A as At, I as Pt, W as kt } from "./chunks/AlertMessage-Ds45MBHB.js";
|
|
17
|
+
import { S as vt } from "./chunks/Stack-BpHk5eb0.js";
|
|
18
|
+
import { O as Ft } from "./chunks/OverlayScoreStateSkeleton-LQ0svzeX.js";
|
|
19
|
+
import { S as Dt, O as Rt, a as Lt, b as wt } from "./chunks/OverlayLeadAfterCollection-F2TAV9wK.js";
|
|
20
|
+
import { S as Bt, a as zt } from "./chunks/SplitLeadAfterCollection-DSw6X5fx.js";
|
|
21
21
|
const Wt = (e) => {
|
|
22
22
|
var n, o, i;
|
|
23
23
|
return {
|
|
@@ -226,7 +226,7 @@ const Wt = (e) => {
|
|
|
226
226
|
rulesDisplay: c
|
|
227
227
|
}) => {
|
|
228
228
|
var D;
|
|
229
|
-
const r = G(), f =
|
|
229
|
+
const r = G(), f = Z(), m = ee(), y = _().primary, d = _().secondary, g = Y(), u = ((D = e.branding) == null ? void 0 : D.colors) || null, k = (u == null ? void 0 : u.contentColor) || F().textColor, I = (u == null ? void 0 : u.secondaryColor) || F().textColor, a = (u == null ? void 0 : u.backgroundColor) || F().surfaceVariant, A = "60%", S = Be(
|
|
230
230
|
V.STANDARD
|
|
231
231
|
), b = Wt({
|
|
232
232
|
finalImage: o,
|
|
@@ -349,7 +349,7 @@ const Wt = (e) => {
|
|
|
349
349
|
i === "right" && o ? /* @__PURE__ */ t(l, { sx: b.imageContainerRight, children: /* @__PURE__ */ t(l, { sx: b.imageSafeArea }) }) : null
|
|
350
350
|
] });
|
|
351
351
|
}, Ht = (e, n) => {
|
|
352
|
-
const [o, i] =
|
|
352
|
+
const [o, i] = J(null), s = async () => {
|
|
353
353
|
try {
|
|
354
354
|
const c = await n.voting.getPollById(e, !0);
|
|
355
355
|
i(c);
|
|
@@ -359,7 +359,7 @@ const Wt = (e) => {
|
|
|
359
359
|
};
|
|
360
360
|
return Me(() => (s(), () => i(null)), [e, n]), { poll: o, setPoll: i };
|
|
361
361
|
}, Ut = (e, n, o) => {
|
|
362
|
-
const [i, s] =
|
|
362
|
+
const [i, s] = J(null), [c, r] = J(!1), [f, m] = J(!1), [y, d] = J(""), g = async () => {
|
|
363
363
|
try {
|
|
364
364
|
const k = await n.voting.getMyPollVote(e);
|
|
365
365
|
s(k);
|
|
@@ -658,7 +658,7 @@ const Wt = (e) => {
|
|
|
658
658
|
}
|
|
659
659
|
}), qe = (e) => {
|
|
660
660
|
var b;
|
|
661
|
-
const n =
|
|
661
|
+
const n = Z(), o = F(), i = Y().sm, s = _().primary, c = Y().xs, r = ee(), f = je().size, m = Oe(e.option.embedCode || ""), y = !!e.option.embedCode, d = ((b = e.brandingColors) == null ? void 0 : b.primaryColor) || o.palette.primary.plainColor, g = o.palette.primary.onPrimary, u = e.selectedOptions.includes(e.option.id) ? g : n.colorSchemes.light.textColor, k = e.optionsImages.get(e.option.id), I = () => {
|
|
662
662
|
e.multipleChoice ? e.answerPoll([e.option.id]) : e.answerPoll([e.option.id]);
|
|
663
663
|
}, a = e.selectedOptions.includes(e.option.id), A = e.isVoting || e.multipleChoice && !a && e.selectedOptions.length >= (e.maxChoices || 1), S = () => y ? /* @__PURE__ */ x(B, { children: [
|
|
664
664
|
/* @__PURE__ */ t(
|
|
@@ -868,7 +868,7 @@ const Wt = (e) => {
|
|
|
868
868
|
((le = e.leads) == null ? void 0 : le.position) === "before" && e.poll.authRequirement === "LEAD" || !1
|
|
869
869
|
);
|
|
870
870
|
}, [(L = e.leads) == null ? void 0 : L.position, e.poll.authRequirement]);
|
|
871
|
-
const { optionsLayout: i } = Te(Ae), s = ee(), c =
|
|
871
|
+
const { optionsLayout: i } = Te(Ae), s = ee(), c = Z(), r = ke(e.options), { t: f } = N(), m = G(), y = ze(), d = Oe(e.poll.embedCode), g = !n && !!e.poll.embedCode, u = ((E = e.leads) == null ? void 0 : E.position) === "after" ? f("poll.buttons.continue") : f("poll.buttons.vote"), { brandingImage: k, brandingColors: I, brandingLogo: a } = We(e.poll.branding || null), A = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : G() ? he : be, S = k || ie(
|
|
872
872
|
{
|
|
873
873
|
images: e.poll.images,
|
|
874
874
|
imagePlaceholder: A
|
|
@@ -1032,7 +1032,7 @@ const Wt = (e) => {
|
|
|
1032
1032
|
)
|
|
1033
1033
|
}
|
|
1034
1034
|
) });
|
|
1035
|
-
},
|
|
1035
|
+
}, X = ({
|
|
1036
1036
|
children: e,
|
|
1037
1037
|
brandingBorderColor: n,
|
|
1038
1038
|
state: o
|
|
@@ -1183,7 +1183,7 @@ const Wt = (e) => {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
);
|
|
1185
1185
|
};
|
|
1186
|
-
return /* @__PURE__ */ t(
|
|
1186
|
+
return /* @__PURE__ */ t(X, { brandingBorderColor: (d == null ? void 0 : d.borderColor) || null, children: /* @__PURE__ */ t(
|
|
1187
1187
|
Ct,
|
|
1188
1188
|
{
|
|
1189
1189
|
entity: e.poll,
|
|
@@ -1595,7 +1595,7 @@ const Wt = (e) => {
|
|
|
1595
1595
|
((le = e.leads) == null ? void 0 : le.position) === "before" && e.poll.authRequirement === "LEAD" || !1
|
|
1596
1596
|
);
|
|
1597
1597
|
}, [(K = e.leads) == null ? void 0 : K.position, e.poll.authRequirement]);
|
|
1598
|
-
const { optionsLayout: i } = Te(Ae), s =
|
|
1598
|
+
const { optionsLayout: i } = Te(Ae), s = Z(), c = G(), r = ze(), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : c ? he : be, m = ie(
|
|
1599
1599
|
{
|
|
1600
1600
|
images: e.poll.images,
|
|
1601
1601
|
imagePlaceholder: f
|
|
@@ -1623,7 +1623,7 @@ const Wt = (e) => {
|
|
|
1623
1623
|
}), E = () => {
|
|
1624
1624
|
o(!1);
|
|
1625
1625
|
}, W = (le, Ve) => {
|
|
1626
|
-
var De, Re, Le, Qe,
|
|
1626
|
+
var De, Re, Le, Qe, Je;
|
|
1627
1627
|
return /* @__PURE__ */ t(
|
|
1628
1628
|
$,
|
|
1629
1629
|
{
|
|
@@ -1631,13 +1631,13 @@ const Wt = (e) => {
|
|
|
1631
1631
|
textColor: le,
|
|
1632
1632
|
label: ((De = e.poll.labels) == null ? void 0 : De.sponsor) || null,
|
|
1633
1633
|
primaryUrl: (Le = (Re = e.poll.branding) == null ? void 0 : Re.urls) == null ? void 0 : Le.primaryUrl,
|
|
1634
|
-
secondaryUrl: (
|
|
1634
|
+
secondaryUrl: (Je = (Qe = e.poll.branding) == null ? void 0 : Qe.urls) == null ? void 0 : Je.secondaryUrl,
|
|
1635
1635
|
isCentered: Ve || !1
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
1638
1638
|
};
|
|
1639
1639
|
return /* @__PURE__ */ x(
|
|
1640
|
-
|
|
1640
|
+
X,
|
|
1641
1641
|
{
|
|
1642
1642
|
brandingBorderColor: (g == null ? void 0 : g.borderColor) || null,
|
|
1643
1643
|
state: "play",
|
|
@@ -1962,7 +1962,7 @@ const Wt = (e) => {
|
|
|
1962
1962
|
message: o,
|
|
1963
1963
|
description: i
|
|
1964
1964
|
}) => {
|
|
1965
|
-
const s =
|
|
1965
|
+
const s = Z(), c = Y(), r = _().secondary, f = pt(e);
|
|
1966
1966
|
return /* @__PURE__ */ t(
|
|
1967
1967
|
At,
|
|
1968
1968
|
{
|
|
@@ -2020,7 +2020,7 @@ const Wt = (e) => {
|
|
|
2020
2020
|
d: "M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"
|
|
2021
2021
|
}), "People"), $e = (e) => {
|
|
2022
2022
|
var S;
|
|
2023
|
-
const [n, o] =
|
|
2023
|
+
const [n, o] = J(0), i = Z(), s = F(), c = Y().sm, r = _(), f = Y().xs, m = ee(), y = e.optionsImages.get(e.option.id), d = e.selectedOptions.includes(e.option.id), g = ((S = e.brandingColors) == null ? void 0 : S.primaryColor) || s.palette.primary.plainColor, u = s.palette.primary.onPrimary, k = d ? u : i.colorSchemes.light.textColor, I = e.option.votes, a = e.totalVotes > 0 ? I / e.totalVotes * 100 : 0;
|
|
2024
2024
|
Me(() => {
|
|
2025
2025
|
const b = setTimeout(() => {
|
|
2026
2026
|
o(a);
|
|
@@ -2590,7 +2590,7 @@ const Wt = (e) => {
|
|
|
2590
2590
|
] }) })
|
|
2591
2591
|
] }) });
|
|
2592
2592
|
};
|
|
2593
|
-
return /* @__PURE__ */ t(
|
|
2593
|
+
return /* @__PURE__ */ t(X, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
|
|
2594
2594
|
Vt,
|
|
2595
2595
|
{
|
|
2596
2596
|
entity: e.poll,
|
|
@@ -2755,7 +2755,7 @@ const Wt = (e) => {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
}), Kt = (e) => {
|
|
2757
2757
|
var R, v, H, O;
|
|
2758
|
-
const n =
|
|
2758
|
+
const n = Z(), o = G(), i = ct(), s = ze(), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? he : be, r = ie(
|
|
2759
2759
|
{
|
|
2760
2760
|
images: e.poll.images,
|
|
2761
2761
|
imagePlaceholder: c
|
|
@@ -2880,7 +2880,7 @@ const Wt = (e) => {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
);
|
|
2882
2882
|
};
|
|
2883
|
-
return /* @__PURE__ */ t(
|
|
2883
|
+
return /* @__PURE__ */ t(X, { brandingBorderColor: (d == null ? void 0 : d.borderColor) || null, children: z() });
|
|
2884
2884
|
}, Qt = (e) => ({
|
|
2885
2885
|
// Main content wrapper
|
|
2886
2886
|
mainContentWrapper: {
|
|
@@ -3055,8 +3055,8 @@ const Wt = (e) => {
|
|
|
3055
3055
|
letterSpacing: "0.46px",
|
|
3056
3056
|
textTransform: "uppercase"
|
|
3057
3057
|
}
|
|
3058
|
-
}),
|
|
3059
|
-
const n =
|
|
3058
|
+
}), Jt = (e) => {
|
|
3059
|
+
const n = Z(), o = ee(), { t: i } = N(), s = ze(), c = Be(
|
|
3060
3060
|
V.OVERLAY
|
|
3061
3061
|
), { optionsLayout: r } = Te(Ae), { brandingImage: f, brandingColors: m, brandingLogo: y } = We(e.poll.branding), d = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : G() ? he : be, g = f || ie(
|
|
3062
3062
|
{
|
|
@@ -3136,16 +3136,16 @@ const Wt = (e) => {
|
|
|
3136
3136
|
children: C()
|
|
3137
3137
|
}
|
|
3138
3138
|
);
|
|
3139
|
-
},
|
|
3139
|
+
}, Xt = () => {
|
|
3140
3140
|
const { t: e } = N();
|
|
3141
|
-
return /* @__PURE__ */ t(
|
|
3141
|
+
return /* @__PURE__ */ t(X, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
3142
3142
|
St,
|
|
3143
3143
|
{
|
|
3144
3144
|
notFoundTitle: e("poll.pollNotFound"),
|
|
3145
3145
|
notFoundMessage: e("poll.pollNotFoundDescription")
|
|
3146
3146
|
}
|
|
3147
3147
|
) });
|
|
3148
|
-
},
|
|
3148
|
+
}, Zt = ({
|
|
3149
3149
|
poll: e,
|
|
3150
3150
|
template: n,
|
|
3151
3151
|
imagePosition: o,
|
|
@@ -3182,13 +3182,13 @@ const Wt = (e) => {
|
|
|
3182
3182
|
...d,
|
|
3183
3183
|
defaultImagePlaceholderUrl: i || (r ? he : be)
|
|
3184
3184
|
}
|
|
3185
|
-
) : n === V.SPLIT ? /* @__PURE__ */ t(
|
|
3185
|
+
) : n === V.SPLIT ? /* @__PURE__ */ t(X, { brandingBorderColor: (f == null ? void 0 : f.borderColor) || null, children: /* @__PURE__ */ t(
|
|
3186
3186
|
nt,
|
|
3187
3187
|
{
|
|
3188
3188
|
...d,
|
|
3189
3189
|
defaultImagePlaceholderUrl: i
|
|
3190
3190
|
}
|
|
3191
|
-
) }) : /* @__PURE__ */ t(
|
|
3191
|
+
) }) : /* @__PURE__ */ t(X, { brandingBorderColor: (f == null ? void 0 : f.borderColor) || null, children: /* @__PURE__ */ t(
|
|
3192
3192
|
it,
|
|
3193
3193
|
{
|
|
3194
3194
|
...d,
|
|
@@ -3199,7 +3199,7 @@ const Wt = (e) => {
|
|
|
3199
3199
|
}, en = (e) => {
|
|
3200
3200
|
var s, c, r, f;
|
|
3201
3201
|
const n = ((s = e.poll.branding) == null ? void 0 : s.colors) || null, o = G() ? ((c = e.poll.branding) == null ? void 0 : c.images.mobileLogo) || ((r = e.poll.branding) == null ? void 0 : r.images.mainLogo) || "" : ((f = e.poll.branding) == null ? void 0 : f.images.mainLogo) || "", { t: i } = N();
|
|
3202
|
-
return /* @__PURE__ */ t(
|
|
3202
|
+
return /* @__PURE__ */ t(X, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
|
|
3203
3203
|
it,
|
|
3204
3204
|
{
|
|
3205
3205
|
entity: e.poll,
|
|
@@ -3227,7 +3227,7 @@ const Wt = (e) => {
|
|
|
3227
3227
|
}, tn = (e) => {
|
|
3228
3228
|
var c, r, f, m;
|
|
3229
3229
|
const n = G(), { t: o } = N(), i = ((c = e.poll.branding) == null ? void 0 : c.colors) || null, s = n ? ((r = e.poll.branding) == null ? void 0 : r.images.mobileLogo) || ((f = e.poll.branding) == null ? void 0 : f.images.mainLogo) || "" : ((m = e.poll.branding) == null ? void 0 : m.images.mainLogo) || "";
|
|
3230
|
-
return console.log("defaultImagePlaceholderUrl", e.defaultImagePlaceholderUrl), /* @__PURE__ */ t(
|
|
3230
|
+
return console.log("defaultImagePlaceholderUrl", e.defaultImagePlaceholderUrl), /* @__PURE__ */ t(X, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t(
|
|
3231
3231
|
nt,
|
|
3232
3232
|
{
|
|
3233
3233
|
entity: e.poll,
|
|
@@ -3525,7 +3525,7 @@ const Wt = (e) => {
|
|
|
3525
3525
|
};
|
|
3526
3526
|
}, on = (e) => {
|
|
3527
3527
|
var T, C, z, R, v;
|
|
3528
|
-
const n = ((T = e.poll.branding) == null ? void 0 : T.colors) || null, o = G(), i =
|
|
3528
|
+
const n = ((T = e.poll.branding) == null ? void 0 : T.colors) || null, o = G(), i = Z(), s = ie(
|
|
3529
3529
|
{
|
|
3530
3530
|
images: e.poll.images,
|
|
3531
3531
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
@@ -3613,7 +3613,7 @@ const Wt = (e) => {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
);
|
|
3615
3615
|
};
|
|
3616
|
-
return /* @__PURE__ */ t(
|
|
3616
|
+
return /* @__PURE__ */ t(X, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
|
|
3617
3617
|
Dt,
|
|
3618
3618
|
{
|
|
3619
3619
|
entity: e.poll,
|
|
@@ -3683,7 +3683,7 @@ const Wt = (e) => {
|
|
|
3683
3683
|
}
|
|
3684
3684
|
}), rn = (e) => {
|
|
3685
3685
|
var I, a, A, S, b;
|
|
3686
|
-
const n =
|
|
3686
|
+
const n = Z(), o = G(), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? he : be, s = ie(
|
|
3687
3687
|
{
|
|
3688
3688
|
images: e.poll.images,
|
|
3689
3689
|
imagePlaceholder: i
|
|
@@ -3759,7 +3759,7 @@ const Wt = (e) => {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
);
|
|
3761
3761
|
};
|
|
3762
|
-
return /* @__PURE__ */ t(
|
|
3762
|
+
return /* @__PURE__ */ t(X, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
|
|
3763
3763
|
Bt,
|
|
3764
3764
|
{
|
|
3765
3765
|
entity: e.poll,
|
|
@@ -3817,7 +3817,7 @@ const Wt = (e) => {
|
|
|
3817
3817
|
}
|
|
3818
3818
|
}), sn = (e) => {
|
|
3819
3819
|
var S, b, P, D, T, C, z, R, v, H, O;
|
|
3820
|
-
const n =
|
|
3820
|
+
const n = Z(), { t: o } = N(), i = G(), s = Be(
|
|
3821
3821
|
V.OVERLAY
|
|
3822
3822
|
), { brandingImage: c, brandingColors: r, brandingLogo: f } = We(e.poll.branding || null), m = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? he : be, y = c || ie(
|
|
3823
3823
|
{
|
|
@@ -3927,7 +3927,7 @@ const Wt = (e) => {
|
|
|
3927
3927
|
imagePosition: e.imagePosition,
|
|
3928
3928
|
onLeadSubmitted: e.onLeadSubmitted,
|
|
3929
3929
|
isSubmitting: e.isSubmitting,
|
|
3930
|
-
MainCard:
|
|
3930
|
+
MainCard: X,
|
|
3931
3931
|
PresentedBy: $,
|
|
3932
3932
|
CollectLeadWrapper: Pe
|
|
3933
3933
|
}
|
|
@@ -3944,7 +3944,7 @@ const Wt = (e) => {
|
|
|
3944
3944
|
defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
|
|
3945
3945
|
onLeadSubmitted: e.onLeadSubmitted,
|
|
3946
3946
|
isSubmitting: e.isSubmitting,
|
|
3947
|
-
MainCard:
|
|
3947
|
+
MainCard: X,
|
|
3948
3948
|
PresentedBy: $,
|
|
3949
3949
|
CollectLeadWrapper: Pe
|
|
3950
3950
|
}
|
|
@@ -3970,7 +3970,7 @@ function Se(e) {
|
|
|
3970
3970
|
return e.template === V.STANDARD;
|
|
3971
3971
|
}
|
|
3972
3972
|
const un = (e) => {
|
|
3973
|
-
const [n, o] =
|
|
3973
|
+
const [n, o] = J([]), [i, s] = J(!1), [c, r] = J(!1), [f, m] = J(!1), [y, d] = J(!1), [g, u] = J(!1), [k, I] = J(!1), { poll: a, setPoll: A } = Ht(e.entityId, e.sdk), {
|
|
3974
3974
|
myVote: S,
|
|
3975
3975
|
setMyVote: b,
|
|
3976
3976
|
isUnauthorized: P,
|
|
@@ -3979,16 +3979,16 @@ const un = (e) => {
|
|
|
3979
3979
|
setIsApiError: C,
|
|
3980
3980
|
setApiErrorMessage: z,
|
|
3981
3981
|
setIsUnauthorized: R
|
|
3982
|
-
} = Ut(e.entityId, e.sdk, f), v =
|
|
3982
|
+
} = Ut(e.entityId, e.sdk, f), v = Xe(() => !a || !S || !(S != null && S.id) || a.maxAttempts === -1 || a.maxAttempts === null || S.attempts === null ? !1 : (a == null ? void 0 : a.maxAttempts) <= (S == null ? void 0 : S.attempts), [a, S]), H = Xe(() => a ? mt(a.related) : null, [a]);
|
|
3983
3983
|
if (Me(() => {
|
|
3984
3984
|
st(e.language || "en");
|
|
3985
3985
|
}, [e.language]), !a || !S)
|
|
3986
3986
|
return /* @__PURE__ */ t(ut, { my: 20 });
|
|
3987
3987
|
if (!a.id)
|
|
3988
|
-
return /* @__PURE__ */ t(
|
|
3988
|
+
return /* @__PURE__ */ t(Xt, {});
|
|
3989
3989
|
if (a.status !== "ACTIVE")
|
|
3990
3990
|
return /* @__PURE__ */ t(
|
|
3991
|
-
|
|
3991
|
+
Zt,
|
|
3992
3992
|
{
|
|
3993
3993
|
poll: a,
|
|
3994
3994
|
template: e.template,
|
|
@@ -4181,9 +4181,9 @@ const un = (e) => {
|
|
|
4181
4181
|
}
|
|
4182
4182
|
);
|
|
4183
4183
|
if (i || v) {
|
|
4184
|
-
const j = H ? /* @__PURE__ */ t(
|
|
4184
|
+
const j = H ? /* @__PURE__ */ t(Ze, { entityId: H, sdk: e.sdk, children: (w) => /* @__PURE__ */ t(et, { infoPage: w, variant: e.chanceGameVariant }) }) : void 0, q = H ? /* @__PURE__ */ t(Ze, { entityId: H, sdk: e.sdk, children: (w) => /* @__PURE__ */ t(et, { infoPage: w, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
|
|
4185
4185
|
return e.template === V.OVERLAY ? /* @__PURE__ */ t(
|
|
4186
|
-
|
|
4186
|
+
Jt,
|
|
4187
4187
|
{
|
|
4188
4188
|
userVote: S,
|
|
4189
4189
|
poll: a,
|