fansunited-frontend-components 0.0.39 → 0.0.40
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 +104 -102
- package/ClassicQuizPlay.js +45 -42
- package/CollectLead.js +25 -24
- package/Discussion.js +376 -378
- package/EitherOrPlay.d.ts +4 -0
- package/EitherOrPlay.d.ts.map +1 -0
- package/EitherOrPlay.js +2533 -0
- package/EventGamePlay.js +59 -54
- package/MatchQuizPlay.js +63 -57
- package/PersonalityQuizPlay.js +7935 -7201
- package/PickThePair.js +153 -151
- package/PollVote.js +108 -104
- package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
- package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
- package/chunks/Avatar-CQCrd1m-.js +352 -0
- package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
- package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
- package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
- package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
- package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
- package/chunks/Notification-BTtUhfZQ.js +615 -0
- package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
- package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
- package/chunks/Person-D0Im9_zE.js +522 -0
- package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
- package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
- package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
- package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
- package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
- package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
- package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
- package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
- package/chunks/chevron-right-DGEksBI7.js +330 -0
- package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
- package/chunks/index-2s5UkG1y.js +1607 -0
- package/chunks/useImageVariant-pnFelF9A.js +535 -0
- package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
- 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 +4 -2
- package/package.json +1 -1
- package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
- package/chunks/Notification-Bwcoljir.js +0 -961
- package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
- package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
- package/chunks/useImageVariant-Do8kOVs2.js +0 -537
package/ClassicQuizPlay.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { jsxs as h, Fragment as T, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import x2, { useState as b, useEffect as m2, useCallback as
|
|
3
|
-
import { e as X, B as l, u as c2, f as E2,
|
|
4
|
-
import { P as B0 } from "./chunks/Portal-
|
|
5
|
-
import {
|
|
6
|
-
import { S as y0 } from "./chunks/Spinner-
|
|
2
|
+
import x2, { useState as b, useEffect as m2, useCallback as c0, useRef as r0, useMemo as M2 } from "react";
|
|
3
|
+
import { e as X, B as l, u as c2, f as E2, k as D, j as _, h as C2, F as G2, T as B, A as p, a7 as q2, ag as P2, S as Z2, W as Z, D as q, ay as I0, aq as Q0, c as E0, g as l0, i as h0 } from "./chunks/PrizeCard-gMp7I66d.js";
|
|
4
|
+
import { P as B0 } from "./chunks/Portal-B9wkUnY2.js";
|
|
5
|
+
import { c as L2, g as d0, e as V2, u as h2, h as F2, s as u0, n as w0, a as n0, k as S0 } from "./chunks/useImageVariant-pnFelF9A.js";
|
|
6
|
+
import { S as y0 } from "./chunks/Spinner-BBA89t5s.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
8
|
+
import { S as D0, a as m0, O as g0, b as C0, C as $2, c as e0 } from "./chunks/ChanceGameEmbedVariant-DWqOTf4o.js";
|
|
9
|
+
import { H as k0, O as W2, R as v2, A as O2, S as a0 } from "./chunks/index-2s5UkG1y.js";
|
|
10
|
+
import { A as k2 } from "./chunks/ArrowRightAlt-88jKjh6A.js";
|
|
11
|
+
import { O as R0 } from "./chunks/useInfoPage-DPkzE5Gn.js";
|
|
12
|
+
import { d as w2, a as S2 } from "./chunks/default-quiz-bg-vertical-CT7rrg9o.js";
|
|
13
|
+
import { A as y2, S as f0, N as K0 } from "./chunks/NotFoundSkeleton-B3RNa8KJ.js";
|
|
14
|
+
import { T as F0 } from "./chunks/TimerOutlined-DmKZDDI-.js";
|
|
15
|
+
import { C as V0 } from "./chunks/CollectLeadForm-0vVnu4DL.js";
|
|
16
|
+
import { T as x0, a as L0, b as i0, t as A0, c as t0 } from "./chunks/Tabs-D_n8rNw3.js";
|
|
17
|
+
import { C as Y0 } from "./chunks/CheckCircle-ClY-iOQ5.js";
|
|
18
|
+
import { e as H0, S as U0, f as J0, W as M0 } from "./chunks/AlertMessage-cjTHrMUK.js";
|
|
19
|
+
import { S as W0, a as G0 } from "./chunks/StandardLeadAfterCollection-L1cOGfS6.js";
|
|
20
|
+
import { S as q0, O as P0, a as Z0, b as v0 } from "./chunks/OverlayLeadAfterCollection-CaBbwZVo.js";
|
|
16
21
|
const O0 = (e) => ({
|
|
17
22
|
// Image container (left position)
|
|
18
23
|
imageContainerLeft: {
|
|
@@ -147,7 +152,7 @@ const O0 = (e) => ({
|
|
|
147
152
|
const g = await t.miniGames.getClassicQuizById(e, !0, !0);
|
|
148
153
|
o(g);
|
|
149
154
|
} catch (g) {
|
|
150
|
-
console.error(g), o(new
|
|
155
|
+
console.error(g), o(new k0());
|
|
151
156
|
}
|
|
152
157
|
};
|
|
153
158
|
return m2(() => (a(), () => o(null)), [e, t]), n;
|
|
@@ -187,9 +192,7 @@ const O0 = (e) => ({
|
|
|
187
192
|
setIsApiError: I,
|
|
188
193
|
setApiErrorMessage: s
|
|
189
194
|
};
|
|
190
|
-
},
|
|
191
|
-
d: "M16.01 11H4v2h12.01v3L20 12l-3.99-4z"
|
|
192
|
-
}), "ArrowRightAlt"), H2 = (e) => {
|
|
195
|
+
}, H2 = (e) => {
|
|
193
196
|
var K;
|
|
194
197
|
const t = c2(), n = D(), o = _().sm, a = C2().primary, g = _().xs, c = G2().size, E = E2(), I = L2(e.option.images), d = e.questionImage ? null : I, s = ((K = e.brandingColors) == null ? void 0 : K.primaryColor) || n.palette.primary.plainColor, r = n.palette.success.plainColor, C = n.palette.danger.plainColor, S = n.palette.primary.onPrimary, m = t.colorSchemes.light.textColor, u = (F) => e.showAnswer ? F.correct ? {
|
|
195
198
|
bgcolor: r,
|
|
@@ -387,7 +390,7 @@ const O0 = (e) => ({
|
|
|
387
390
|
transform: "scale(1)"
|
|
388
391
|
}
|
|
389
392
|
}
|
|
390
|
-
}, r =
|
|
393
|
+
}, r = c0(() => {
|
|
391
394
|
const m = e.quizType === "countdown" ? e.timer - 1 : e.timer + 1;
|
|
392
395
|
e.onTimeUpdate(m);
|
|
393
396
|
}, [e.onTimeUpdate]);
|
|
@@ -632,7 +635,7 @@ const O0 = (e) => ({
|
|
|
632
635
|
}
|
|
633
636
|
);
|
|
634
637
|
}, Y2 = ["timed", "countdown"], X2 = (e, t) => {
|
|
635
|
-
const n =
|
|
638
|
+
const n = r0(null);
|
|
636
639
|
return m2(() => {
|
|
637
640
|
var o;
|
|
638
641
|
if (e && n.current) {
|
|
@@ -983,7 +986,7 @@ const O0 = (e) => ({
|
|
|
983
986
|
] })
|
|
984
987
|
}
|
|
985
988
|
);
|
|
986
|
-
},
|
|
989
|
+
}, s0 = (e) => {
|
|
987
990
|
const t = C2().primary, n = _().xl, o = D().palette.primary.onPrimary;
|
|
988
991
|
return /* @__PURE__ */ i(
|
|
989
992
|
q,
|
|
@@ -1080,7 +1083,7 @@ const O0 = (e) => ({
|
|
|
1080
1083
|
display: "flex",
|
|
1081
1084
|
justifyContent: "center",
|
|
1082
1085
|
gap: "8px",
|
|
1083
|
-
py:
|
|
1086
|
+
py: I0("xs")
|
|
1084
1087
|
},
|
|
1085
1088
|
children: t()
|
|
1086
1089
|
}
|
|
@@ -1292,7 +1295,7 @@ const O0 = (e) => ({
|
|
|
1292
1295
|
), { optionsLayout: o } = q2(P2), a = X2(
|
|
1293
1296
|
e.question.embedCode,
|
|
1294
1297
|
e.applyFilterScreen
|
|
1295
|
-
), g = c2(), c = L2(e.question.images), { t: E } = p(), I = X(), d =
|
|
1298
|
+
), g = c2(), c = L2(e.question.images), { t: E } = p(), I = X(), d = Q0(), s = ((v = e.classicQuiz.branding) == null ? void 0 : v.colors) || null, r = I ? ((G = e.classicQuiz.branding) == null ? void 0 : G.images.mobileLogo) || ((P = e.classicQuiz.branding) == null ? void 0 : P.images.mainLogo) || "" : (($ = e.classicQuiz.branding) == null ? void 0 : $.images.mainLogo) || "", C = e.imagePosition || "left", S = h2(
|
|
1296
1299
|
{
|
|
1297
1300
|
images: e.classicQuiz.images,
|
|
1298
1301
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
@@ -1445,7 +1448,7 @@ const O0 = (e) => ({
|
|
|
1445
1448
|
children: [
|
|
1446
1449
|
r && !u ? L(k, !1) : /* @__PURE__ */ i(T, {}),
|
|
1447
1450
|
/* @__PURE__ */ i(l, { sx: A.navigationContainer, children: /* @__PURE__ */ i(
|
|
1448
|
-
|
|
1451
|
+
s0,
|
|
1449
1452
|
{
|
|
1450
1453
|
showAnswer: e.showAnswer,
|
|
1451
1454
|
selectedOption: e.selectedOption,
|
|
@@ -1659,7 +1662,7 @@ const O0 = (e) => ({
|
|
|
1659
1662
|
) });
|
|
1660
1663
|
return /* @__PURE__ */ h(s2, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: [
|
|
1661
1664
|
/* @__PURE__ */ i(
|
|
1662
|
-
|
|
1665
|
+
D0,
|
|
1663
1666
|
{
|
|
1664
1667
|
entity: e.classicQuiz,
|
|
1665
1668
|
headline: s("classicQuiz.headline"),
|
|
@@ -1738,7 +1741,7 @@ const O0 = (e) => ({
|
|
|
1738
1741
|
}
|
|
1739
1742
|
),
|
|
1740
1743
|
/* @__PURE__ */ i(l, { sx: Q.buttonFooterContainer, children: /* @__PURE__ */ i(
|
|
1741
|
-
|
|
1744
|
+
s0,
|
|
1742
1745
|
{
|
|
1743
1746
|
showAnswer: e.showAnswer,
|
|
1744
1747
|
selectedOption: e.selectedOption,
|
|
@@ -1757,7 +1760,7 @@ const O0 = (e) => ({
|
|
|
1757
1760
|
(r == null ? void 0 : r.contentColor) || a.colorSchemes.dark.textColor
|
|
1758
1761
|
) })
|
|
1759
1762
|
] });
|
|
1760
|
-
}, b2 =
|
|
1763
|
+
}, b2 = E0(/* @__PURE__ */ i("path", {
|
|
1761
1764
|
d: "M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"
|
|
1762
1765
|
}), "Share"), Ae = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_1048'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_1048)'%3e%3cpath%20d='M12%2020.6254L5.20005%2016.9254V11.1254L1.36255%209.01289L12%203.21289L22.65%209.01464V16.7504H20.775V10.0504L18.8%2011.1254V16.9254L12%2020.6254ZM12%2012.6754L18.75%209.01289L12%205.36289L5.26255%209.01289L12%2012.6754ZM12%2018.4879L16.925%2015.8296V12.1129L12%2014.8254L7.07505%2012.1129V15.8296L12%2018.4879Z'%20fill='%23212121'/%3e%3c/g%3e%3c/svg%3e", te = "data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_504'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='25'%20height='24'%3e%3crect%20x='0.5'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_504)'%3e%3cpath%20d='M9.6875%206H11.5625V4.125H9.6875V6ZM13.4375%206V4.125H15.3125V6H13.4375ZM9.6875%2013.5V11.625H11.5625V13.5H9.6875ZM17.1875%209.75V7.875H19.0625V9.75H17.1875ZM17.1875%2013.5V11.625H19.0625V13.5H17.1875ZM13.4375%2013.5V11.625H15.3125V13.5H13.4375ZM17.1875%206V4.125H19.0625V6H17.1875ZM11.5625%207.875V6H13.4375V7.875H11.5625ZM5.9375%2019.825V4.125H7.8125V6H9.6875V7.875H7.8125V9.75H9.6875V11.625H7.8125V19.825H5.9375ZM15.3125%2011.625V9.75H17.1875V11.625H15.3125ZM11.5625%2011.625V9.75H13.4375V11.625H11.5625ZM9.6875%209.75V7.875H11.5625V9.75H9.6875ZM13.4375%209.75V7.875H15.3125V9.75H13.4375ZM15.3125%207.875V6H17.1875V7.875H15.3125Z'%20fill='%23212121'/%3e%3c/g%3e%3c/svg%3e", oe = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_360'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_360)'%3e%3cpath%20d='M9.22917%2014.0625H10.7917V9.1875H9.22917V14.0625ZM9.99771%207.58333C10.2215%207.58333%2010.4097%207.50771%2010.5625%207.35646C10.7153%207.20507%2010.7917%207.01757%2010.7917%206.79396C10.7917%206.57021%2010.716%206.38194%2010.5648%206.22917C10.4134%206.07639%2010.2259%206%2010.0023%206C9.77854%206%209.59028%206.07563%209.4375%206.22688C9.28472%206.37826%209.20833%206.56576%209.20833%206.78938C9.20833%207.01313%209.28396%207.20139%209.43521%207.35417C9.5866%207.50694%209.7741%207.58333%209.99771%207.58333ZM10%2018.125C8.87625%2018.125%207.82021%2017.9114%206.83187%2017.4842C5.84368%2017.0568%204.98403%2016.4769%204.25292%2015.7446C3.52181%2015.0121%202.94271%2014.1522%202.51562%2013.1648C2.08854%2012.1776%201.875%2011.1226%201.875%2010C1.875%208.87625%202.08861%207.82021%202.51583%206.83187C2.94319%205.84368%203.52306%204.98403%204.25542%204.25292C4.98792%203.52181%205.84785%202.94271%206.83521%202.51562C7.82243%202.08854%208.87736%201.875%2010%201.875C11.1237%201.875%2012.1798%202.08861%2013.1681%202.51583C14.1563%202.94319%2015.016%203.52306%2015.7471%204.25542C16.4782%204.98792%2017.0573%205.84785%2017.4844%206.83521C17.9115%207.82243%2018.125%208.87736%2018.125%2010C18.125%2011.1237%2017.9114%2012.1798%2017.4842%2013.1681C17.0568%2014.1563%2016.4769%2015.016%2015.7446%2015.7471C15.0121%2016.4782%2014.1522%2017.0573%2013.1648%2017.4844C12.1776%2017.9115%2011.1226%2018.125%2010%2018.125ZM10%2016.5625C11.8264%2016.5625%2013.3767%2015.9253%2014.651%2014.651C15.9253%2013.3767%2016.5625%2011.8264%2016.5625%2010C16.5625%208.17361%2015.9253%206.62326%2014.651%205.34896C13.3767%204.07465%2011.8264%203.4375%2010%203.4375C8.17361%203.4375%206.62326%204.07465%205.34896%205.34896C4.07465%206.62326%203.4375%208.17361%203.4375%2010C3.4375%2011.8264%204.07465%2013.3767%205.34896%2014.651C6.62326%2015.9253%208.17361%2016.5625%2010%2016.5625Z'%20fill='%23212121'%20fill-opacity='0.6'/%3e%3c/g%3e%3c/svg%3e", j2 = ({
|
|
1763
1766
|
questions: e,
|
|
@@ -3283,7 +3286,7 @@ const O0 = (e) => ({
|
|
|
3283
3286
|
}
|
|
3284
3287
|
) : null;
|
|
3285
3288
|
return /* @__PURE__ */ i(
|
|
3286
|
-
|
|
3289
|
+
m0,
|
|
3287
3290
|
{
|
|
3288
3291
|
entity: e.classicQuiz,
|
|
3289
3292
|
headline: n("classicQuiz.headline"),
|
|
@@ -3809,7 +3812,7 @@ const O0 = (e) => ({
|
|
|
3809
3812
|
}
|
|
3810
3813
|
}), Le = (e) => {
|
|
3811
3814
|
var M;
|
|
3812
|
-
const t = c2(), n = E2(), { t: o } = p(), a = X(), g =
|
|
3815
|
+
const t = c2(), n = E2(), { t: o } = p(), a = X(), g = l0(
|
|
3813
3816
|
Z.OVERLAY
|
|
3814
3817
|
), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? w2 : S2, { brandingImage: E, brandingColors: I, brandingLogo: d } = V2(e.classicQuiz.branding || null), s = E || h2(
|
|
3815
3818
|
{
|
|
@@ -3829,7 +3832,7 @@ const O0 = (e) => ({
|
|
|
3829
3832
|
totalTime: e.totalTime,
|
|
3830
3833
|
classicQuiz: e.classicQuiz,
|
|
3831
3834
|
variant: Z.OVERLAY
|
|
3832
|
-
}), R = (I == null ? void 0 : I.primaryColor) || t.colorSchemes.light.palette.primary.plainColor, Y = (I == null ? void 0 : I.secondaryColor) || t.colorSchemes.dark.textSecondary, H = t.colorSchemes.dark.secondaryContainer, V = t.colorSchemes.light.palette.primary.onPrimary, K = t.colorSchemes.dark.textPrimary, F = t.customFontFamily.light.primary, f = t.customFontFamily.light.secondary, U = t.customRadius.light.md, A = t.customRadius.light.xl, Q = (I == null ? void 0 : I.backgroundColor) || t.colorSchemes.dark.onSurface, y =
|
|
3835
|
+
}), R = (I == null ? void 0 : I.primaryColor) || t.colorSchemes.light.palette.primary.plainColor, Y = (I == null ? void 0 : I.secondaryColor) || t.colorSchemes.dark.textSecondary, H = t.colorSchemes.dark.secondaryContainer, V = t.colorSchemes.light.palette.primary.onPrimary, K = t.colorSchemes.dark.textPrimary, F = t.customFontFamily.light.primary, f = t.customFontFamily.light.secondary, U = t.customRadius.light.md, A = t.customRadius.light.xl, Q = (I == null ? void 0 : I.backgroundColor) || t.colorSchemes.dark.onSurface, y = n0(s), w = xe({
|
|
3833
3836
|
spacingScale: n,
|
|
3834
3837
|
primaryColor: R,
|
|
3835
3838
|
secondaryColor: Y,
|
|
@@ -3999,19 +4002,19 @@ const O0 = (e) => ({
|
|
|
3999
4002
|
rulesDisplay: a
|
|
4000
4003
|
};
|
|
4001
4004
|
return t === Z.OVERLAY ? /* @__PURE__ */ i(
|
|
4002
|
-
|
|
4005
|
+
g0,
|
|
4003
4006
|
{
|
|
4004
4007
|
...s,
|
|
4005
4008
|
defaultImagePlaceholderUrl: o || (c ? w2 : S2)
|
|
4006
4009
|
}
|
|
4007
4010
|
) : t === Z.SPLIT ? /* @__PURE__ */ i(s2, { brandingBorderColor: (E == null ? void 0 : E.borderColor) || null, children: /* @__PURE__ */ i(
|
|
4008
|
-
|
|
4011
|
+
C0,
|
|
4009
4012
|
{
|
|
4010
4013
|
...s,
|
|
4011
4014
|
defaultImagePlaceholderUrl: o
|
|
4012
4015
|
}
|
|
4013
4016
|
) }) : /* @__PURE__ */ i(s2, { brandingBorderColor: (E == null ? void 0 : E.borderColor) || null, children: /* @__PURE__ */ i(
|
|
4014
|
-
|
|
4017
|
+
a0,
|
|
4015
4018
|
{
|
|
4016
4019
|
...s,
|
|
4017
4020
|
imagePosition: n || "left",
|
|
@@ -4022,7 +4025,7 @@ const O0 = (e) => ({
|
|
|
4022
4025
|
var a, g, c, E;
|
|
4023
4026
|
const t = ((a = e.classicQuiz.branding) == null ? void 0 : a.colors) || null, n = X() ? ((g = e.classicQuiz.branding) == null ? void 0 : g.images.mobileLogo) || ((c = e.classicQuiz.branding) == null ? void 0 : c.images.mainLogo) || "" : ((E = e.classicQuiz.branding) == null ? void 0 : E.images.mainLogo) || "", { t: o } = p();
|
|
4024
4027
|
return /* @__PURE__ */ i(s2, { brandingBorderColor: (t == null ? void 0 : t.borderColor) || null, children: /* @__PURE__ */ i(
|
|
4025
|
-
|
|
4028
|
+
a0,
|
|
4026
4029
|
{
|
|
4027
4030
|
entity: e.classicQuiz,
|
|
4028
4031
|
headline: o("classicQuiz.headline"),
|
|
@@ -4050,7 +4053,7 @@ const O0 = (e) => ({
|
|
|
4050
4053
|
var g, c, E, I;
|
|
4051
4054
|
const t = X(), { t: n } = p(), o = ((g = e.classicQuiz.branding) == null ? void 0 : g.colors) || null, a = t ? ((c = e.classicQuiz.branding) == null ? void 0 : c.images.mobileLogo) || ((E = e.classicQuiz.branding) == null ? void 0 : E.images.mainLogo) || "" : ((I = e.classicQuiz.branding) == null ? void 0 : I.images.mainLogo) || "";
|
|
4052
4055
|
return /* @__PURE__ */ i(s2, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ i(
|
|
4053
|
-
|
|
4056
|
+
C0,
|
|
4054
4057
|
{
|
|
4055
4058
|
entity: e.classicQuiz,
|
|
4056
4059
|
headline: n("classicQuiz.headline"),
|
|
@@ -4078,7 +4081,7 @@ const O0 = (e) => ({
|
|
|
4078
4081
|
e.classicQuiz.branding || null
|
|
4079
4082
|
);
|
|
4080
4083
|
return /* @__PURE__ */ i(
|
|
4081
|
-
|
|
4084
|
+
g0,
|
|
4082
4085
|
{
|
|
4083
4086
|
entity: e.classicQuiz,
|
|
4084
4087
|
headline: t("classicQuiz.headline"),
|
|
@@ -4374,7 +4377,7 @@ const O0 = (e) => ({
|
|
|
4374
4377
|
);
|
|
4375
4378
|
};
|
|
4376
4379
|
return /* @__PURE__ */ i(s2, { brandingBorderColor: (g == null ? void 0 : g.borderColor) || null, children: /* @__PURE__ */ i(
|
|
4377
|
-
|
|
4380
|
+
q0,
|
|
4378
4381
|
{
|
|
4379
4382
|
entity: e.classicQuiz,
|
|
4380
4383
|
headline: a("classicQuiz.headline"),
|
|
@@ -4432,7 +4435,7 @@ const O0 = (e) => ({
|
|
|
4432
4435
|
}
|
|
4433
4436
|
}), ve = (e) => {
|
|
4434
4437
|
var R, Y, H, V, K, F, f, U, A, Q, y;
|
|
4435
|
-
const t = c2(), { t: n } = p(), o = X(), a =
|
|
4438
|
+
const t = c2(), { t: n } = p(), o = X(), a = l0(
|
|
4436
4439
|
Z.OVERLAY
|
|
4437
4440
|
), { brandingImage: g, brandingColors: c, brandingLogo: E } = V2(e.classicQuiz.branding || null), I = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? w2 : S2, d = g || h2(
|
|
4438
4441
|
{
|
|
@@ -4440,7 +4443,7 @@ const O0 = (e) => ({
|
|
|
4440
4443
|
imagePlaceholder: I
|
|
4441
4444
|
},
|
|
4442
4445
|
Z.OVERLAY
|
|
4443
|
-
), s =
|
|
4446
|
+
), s = n0(d), r = (Y = (R = t.customRadius) == null ? void 0 : R.light) == null ? void 0 : Y.xl, C = (c == null ? void 0 : c.primaryColor) || ((F = (K = (V = (H = t.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : V.palette) == null ? void 0 : K.primary) == null ? void 0 : F.plainColor), S = (Q = (A = (U = (f = t.colorSchemes) == null ? void 0 : f.light) == null ? void 0 : U.palette) == null ? void 0 : A.primary) == null ? void 0 : Q.onPrimary, m = t.customFontFamily.dark.primary, u = Ze({
|
|
4444
4447
|
buttonRadius: r,
|
|
4445
4448
|
primaryColor: C,
|
|
4446
4449
|
onPrimaryColor: S,
|
|
@@ -4511,7 +4514,7 @@ const O0 = (e) => ({
|
|
|
4511
4514
|
);
|
|
4512
4515
|
};
|
|
4513
4516
|
return /* @__PURE__ */ i(
|
|
4514
|
-
|
|
4517
|
+
P0,
|
|
4515
4518
|
{
|
|
4516
4519
|
entity: e.classicQuiz,
|
|
4517
4520
|
headline: n("classicQuiz.headline"),
|
|
@@ -4532,7 +4535,7 @@ const O0 = (e) => ({
|
|
|
4532
4535
|
}, Oe = (e) => {
|
|
4533
4536
|
const { t } = p();
|
|
4534
4537
|
return /* @__PURE__ */ i(
|
|
4535
|
-
|
|
4538
|
+
G0,
|
|
4536
4539
|
{
|
|
4537
4540
|
entity: e.classicQuiz,
|
|
4538
4541
|
headline: t("classicQuiz.headline"),
|
|
@@ -4924,7 +4927,7 @@ const Xe = (e) => {
|
|
|
4924
4927
|
);
|
|
4925
4928
|
}
|
|
4926
4929
|
return r2();
|
|
4927
|
-
}, be = (e) => /* @__PURE__ */ i(B0, { packageName: "classic-quiz-play", ...e, children: /* @__PURE__ */ i(Xe, { ...e }) }),
|
|
4930
|
+
}, be = (e) => /* @__PURE__ */ i(B0, { packageName: "classic-quiz-play", ...e, children: /* @__PURE__ */ i(Xe, { ...e }) }), Ei = be;
|
|
4928
4931
|
export {
|
|
4929
|
-
|
|
4932
|
+
Ei as ClassicQuizPlay
|
|
4930
4933
|
};
|
package/CollectLead.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g, Fragment as r } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as ce } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { P as me } from "./chunks/Portal-
|
|
3
|
+
import { h as Y, e as Q, B as o, T as u, A as de, a7 as J, u as K, f as X, g as Z, W as w, j as U, k as h, F as se } from "./chunks/PrizeCard-gMp7I66d.js";
|
|
4
|
+
import { P as me } from "./chunks/Portal-B9wkUnY2.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as ge,
|
|
7
|
-
import {
|
|
6
|
+
import { g as ge, u as ee, a as xe, h as oe } from "./chunks/useImageVariant-pnFelF9A.js";
|
|
7
|
+
import { d as le, a as ae } from "./chunks/default-quiz-bg-vertical-CT7rrg9o.js";
|
|
8
|
+
import { C as fe } from "./chunks/CollectLeadForm-0vVnu4DL.js";
|
|
8
9
|
const te = (e) => {
|
|
9
10
|
const i = Y().secondary, s = Q(), a = ge(e.primaryUrl, e.secondaryUrl, "logo");
|
|
10
11
|
if (!e.brandingLogo)
|
|
@@ -389,17 +390,17 @@ const te = (e) => {
|
|
|
389
390
|
let i = (e == null ? void 0 : e.mainLogo) || null;
|
|
390
391
|
return Q() && (i = (e == null ? void 0 : e.mobileLogo) || (e == null ? void 0 : e.mainLogo) || null), i;
|
|
391
392
|
}, be = () => {
|
|
392
|
-
var l, $, q, P, R, I, L, D, z, H, v, B, y, m, W,
|
|
393
|
+
var l, $, q, P, R, I, L, D, z, H, v, B, y, m, W, A, G, E;
|
|
393
394
|
const e = J(_), i = K(), s = X(), a = Z(
|
|
394
|
-
|
|
395
|
+
w.OVERLAY
|
|
395
396
|
), d = Q(), t = he(
|
|
396
397
|
((l = e.branding) == null ? void 0 : l.images) || null
|
|
397
|
-
), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ?
|
|
398
|
+
), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ? le : ae, b = ee(
|
|
398
399
|
{
|
|
399
400
|
images: e.images || null,
|
|
400
401
|
imagePlaceholder: f
|
|
401
402
|
},
|
|
402
|
-
|
|
403
|
+
w.OVERLAY
|
|
403
404
|
), C = xe(b), S = i.colorSchemes.dark.textColor, p = i.customFontFamily.dark.primary, T = i.customFontFamily.dark.secondary, j = i.customRadius.dark.md, N = ($ = i.border) == null ? void 0 : $.dark.size, k = (P = (q = i.colorSchemes) == null ? void 0 : q.dark) == null ? void 0 : P.surfaceVariant, F = (I = (R = i.customRadius) == null ? void 0 : R.light) == null ? void 0 : I.xl, M = (H = (z = (D = (L = i.colorSchemes) == null ? void 0 : L.light) == null ? void 0 : D.palette) == null ? void 0 : z.primary) == null ? void 0 : H.plainColor, V = (m = (y = (B = (v = i.colorSchemes) == null ? void 0 : v.light) == null ? void 0 : B.palette) == null ? void 0 : y.primary) == null ? void 0 : m.onPrimary, c = ue({
|
|
404
405
|
spacingScale: s,
|
|
405
406
|
secondaryColor: S,
|
|
@@ -426,7 +427,7 @@ const te = (e) => {
|
|
|
426
427
|
);
|
|
427
428
|
};
|
|
428
429
|
return /* @__PURE__ */ g(o, { sx: c.mainContainer, children: [
|
|
429
|
-
(W = e.labels) != null && W.title || (
|
|
430
|
+
(W = e.labels) != null && W.title || (A = e.labels) != null && A.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(o, { sx: c.headlineSection, children: /* @__PURE__ */ n(o, { sx: c.headlineContent, children: /* @__PURE__ */ n(o, { sx: c.headlineContentInner, children: /* @__PURE__ */ g(o, { sx: c.contentContainer, children: [
|
|
430
431
|
(G = e.labels) != null && G.title ? /* @__PURE__ */ n(u, { level: "h4", sx: c.titleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
431
432
|
(E = e.labels) != null && E.description ? /* @__PURE__ */ n(u, { level: "body-lg", sx: c.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
432
433
|
] }) }) }) }) }) : /* @__PURE__ */ n(r, {}),
|
|
@@ -770,9 +771,9 @@ const te = (e) => {
|
|
|
770
771
|
images: i.images || null,
|
|
771
772
|
imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
|
|
772
773
|
},
|
|
773
|
-
|
|
774
|
+
w.STANDARD
|
|
774
775
|
), t = Q(), f = t ? ((R = (P = i.branding) == null ? void 0 : P.images) == null ? void 0 : R.mobileLogo) || ((L = (I = i.branding) == null ? void 0 : I.images) == null ? void 0 : L.mainLogo) || "" : ((z = (D = i.branding) == null ? void 0 : D.images) == null ? void 0 : z.mainLogo) || "", b = h().textColor, C = h().textSecondary, S = Y().secondary, p = "60%", T = Y().primary, j = h().surfaceVariant, N = U().md, k = U().sm, F = h().palette.primary.plainColor, M = h().palette.primary.onPrimary, V = U().xl, c = X(), x = Z(
|
|
775
|
-
|
|
776
|
+
w.STANDARD
|
|
776
777
|
), l = Ce({
|
|
777
778
|
finalImage: d,
|
|
778
779
|
spacingScale: c,
|
|
@@ -781,7 +782,7 @@ const te = (e) => {
|
|
|
781
782
|
fontFamilySecondary: S,
|
|
782
783
|
textColor: b,
|
|
783
784
|
secondaryColor: C,
|
|
784
|
-
bgcolor:
|
|
785
|
+
bgcolor: oe(j || ""),
|
|
785
786
|
mdBorderRadius: N,
|
|
786
787
|
smBorderRadius: k,
|
|
787
788
|
primaryColor: F,
|
|
@@ -804,10 +805,10 @@ const te = (e) => {
|
|
|
804
805
|
};
|
|
805
806
|
return /* @__PURE__ */ g(re, { children: [
|
|
806
807
|
(() => {
|
|
807
|
-
var y, m, W,
|
|
808
|
+
var y, m, W, A, G, E, O, ie;
|
|
808
809
|
return t ? d ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithImage, children: (y = i.labels) != null && y.title || (m = i.labels) != null && m.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineContent, children: /* @__PURE__ */ g(o, { sx: l.contentContainer, children: [
|
|
809
810
|
(W = i.labels) != null && W.title ? /* @__PURE__ */ n(u, { sx: l.titleTypographyMobileImage, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
810
|
-
(
|
|
811
|
+
(A = i.labels) != null && A.description ? /* @__PURE__ */ n(u, { sx: l.descriptionTypographyMobileImage, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
811
812
|
] }) }) : /* @__PURE__ */ n(r, {}) }) : (G = i.labels) != null && G.title || (E = i.labels) != null && E.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithoutImage, children: /* @__PURE__ */ g(o, { sx: l.contentContainer, children: [
|
|
812
813
|
(O = i.labels) != null && O.title ? /* @__PURE__ */ n(u, { level: "h4", sx: l.titleTypography, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
813
814
|
(ie = i.labels) != null && ie.description ? /* @__PURE__ */ n(u, { sx: l.descriptionTypography, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
@@ -1160,15 +1161,15 @@ const te = (e) => {
|
|
|
1160
1161
|
}
|
|
1161
1162
|
}), Te = () => {
|
|
1162
1163
|
var q, P, R, I, L, D, z, H, v, B;
|
|
1163
|
-
const e = J(_), i = K(), s = Q(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ?
|
|
1164
|
+
const e = J(_), i = K(), s = Q(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? le : ae, d = ee(
|
|
1164
1165
|
{
|
|
1165
1166
|
images: e.images || null,
|
|
1166
1167
|
imagePlaceholder: a
|
|
1167
1168
|
},
|
|
1168
|
-
|
|
1169
|
+
w.SPLIT
|
|
1169
1170
|
), t = s ? ((P = (q = e.branding) == null ? void 0 : q.images) == null ? void 0 : P.mobileLogo) || ((I = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : I.mainLogo) || "" : ((D = (L = e.branding) == null ? void 0 : L.images) == null ? void 0 : D.mainLogo) || "", f = h().textColor, b = Y().secondary, C = "60%", S = Y().primary, p = U().xl, T = h().surfaceVariant, j = (H = (z = h().palette) == null ? void 0 : z.primary) == null ? void 0 : H.plainColor, N = (B = (v = h().palette) == null ? void 0 : v.primary) == null ? void 0 : B.onPrimary, k = h().textColor, F = X(), M = U(), V = Z(
|
|
1170
|
-
|
|
1171
|
-
), c =
|
|
1171
|
+
w.SPLIT
|
|
1172
|
+
), c = oe(T || ""), x = pe({
|
|
1172
1173
|
finalImage: d,
|
|
1173
1174
|
spacingScale: F,
|
|
1174
1175
|
borderRadius: M,
|
|
@@ -1196,11 +1197,11 @@ const te = (e) => {
|
|
|
1196
1197
|
};
|
|
1197
1198
|
return /* @__PURE__ */ g(re, { children: [
|
|
1198
1199
|
(() => {
|
|
1199
|
-
var y, m, W,
|
|
1200
|
+
var y, m, W, A;
|
|
1200
1201
|
return /* @__PURE__ */ n(o, { sx: x.headlineSection, children: /* @__PURE__ */ g(o, { sx: x.headlineContent, children: [
|
|
1201
1202
|
(y = e.labels) != null && y.title || (m = e.labels) != null && m.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ g(o, { sx: x.contentContainer, children: [
|
|
1202
1203
|
(W = e.labels) != null && W.title ? /* @__PURE__ */ n(u, { sx: x.pollTitleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
1203
|
-
(
|
|
1204
|
+
(A = e.labels) != null && A.description ? /* @__PURE__ */ n(u, { sx: x.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
1204
1205
|
] }) }) : /* @__PURE__ */ n(r, {}),
|
|
1205
1206
|
t ? /* @__PURE__ */ n(o, { sx: x.presentedByDesktop, children: l(i.colorSchemes.dark.textColor) }) : /* @__PURE__ */ n(r, {})
|
|
1206
1207
|
] }) });
|
|
@@ -1218,9 +1219,9 @@ const te = (e) => {
|
|
|
1218
1219
|
] });
|
|
1219
1220
|
};
|
|
1220
1221
|
function ke(e) {
|
|
1221
|
-
return e.template ===
|
|
1222
|
+
return e.template === w.STANDARD;
|
|
1222
1223
|
}
|
|
1223
|
-
const Fe = (e) => e.template ===
|
|
1224
|
+
const Fe = (e) => e.template === w.OVERLAY ? /* @__PURE__ */ n(be, {}) : ke(e) ? /* @__PURE__ */ n(Se, { imagePosition: e.imagePosition || "left" }) : /* @__PURE__ */ n(Te, {}), Pe = (e) => {
|
|
1224
1225
|
var i;
|
|
1225
1226
|
return /* @__PURE__ */ n(
|
|
1226
1227
|
me,
|
|
@@ -1251,7 +1252,7 @@ const Fe = (e) => e.template === A.OVERLAY ? /* @__PURE__ */ n(be, {}) : ke(e) ?
|
|
|
1251
1252
|
)
|
|
1252
1253
|
}
|
|
1253
1254
|
);
|
|
1254
|
-
},
|
|
1255
|
+
}, We = Pe;
|
|
1255
1256
|
export {
|
|
1256
|
-
|
|
1257
|
+
We as CollectLead
|
|
1257
1258
|
};
|