fansunited-frontend-components 0.0.41 → 0.0.43
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 +54 -53
- package/ClassicQuizPlay.js +18 -17
- package/CollectLead.js +11 -10
- package/Discussion.js +256 -254
- package/EitherOrPlay.js +1441 -1078
- package/EventGamePlay.js +151 -147
- package/Leaderboard.d.ts +4 -0
- package/Leaderboard.d.ts.map +1 -0
- package/Leaderboard.js +964 -0
- package/MatchQuizPlay.js +355 -371
- package/PersonalityQuizPlay.js +5237 -4943
- package/PickThePair.js +39 -38
- package/PollVote.js +48 -47
- package/README.md +108 -0
- package/chunks/AlertMessage-BwK1nhhq.js +477 -0
- package/chunks/{ArrowRightAlt-BD07mCvx.js → ArrowRightAlt-DDfv44Cb.js} +1 -1
- package/chunks/{Avatar-KNv8XYy7.js → Avatar-CuK1TjE5.js} +75 -75
- package/chunks/{ChanceGameEmbedVariant-CU89dG5i.js → ChanceGameEmbedVariant-BqSL2q5j.js} +36 -35
- package/chunks/{CheckCircle-BN3JPCHe.js → CheckCircle-DI3T1yc_.js} +1026 -1200
- package/chunks/{CollectLeadForm-SmMCUqru.js → CollectLeadForm-DWGJcFYk.js} +1315 -1437
- package/chunks/{chevron-right-B128Qek1.js → Edit-BEJGDOE5.js} +71 -168
- package/chunks/{FavoriteBorder-CvVAkjXZ.js → FavoriteBorder-DCNN0JDS.js} +1 -1
- package/chunks/FormLabel-DUTF4Ciu.js +132 -0
- package/chunks/Input-DtSJQlp8.js +389 -0
- package/chunks/{Spinner-ZSTSbKeP.js → ModalDialog-CT53XUPl.js} +237 -270
- package/chunks/{NotFoundSkeleton-D_vGI3dq.js → NotFoundSkeleton-C2qREw63.js} +52 -51
- package/chunks/{Notification-COxHzleW.js → Notification-CZUmuc3Z.js} +23 -22
- package/chunks/{OverlayLeadAfterCollection-CXKZpFh8.js → OverlayLeadAfterCollection-CZ9P-B_i.js} +23 -22
- package/chunks/{OverlayScoreStateSkeleton-CNMFSgqJ.js → OverlayScoreStateSkeleton-0el-xj5s.js} +7 -7
- package/chunks/{Person-SBTPAU3M.js → Person-iy8XQZuk.js} +5 -5
- package/chunks/{PickOneOfX-CkwTfROr.js → PickOneOfX-aTiQBLAI.js} +1 -1
- package/chunks/{Portal-C7GozjB_.js → Portal-kFrc-yUh.js} +1 -1
- package/chunks/{PrizeCard-BSUBLboD.js → PrizeCard-BA91wVwM.js} +2017 -1765
- package/chunks/Spinner-Cc2zWDFx.js +38 -0
- package/chunks/{SplitLeadAfterCollection-AVbw5OZ9.js → SplitLeadAfterCollection-CkxYL7KZ.js} +41 -40
- package/chunks/{Tabs-_Ol1y7pb.js → Tabs-CZ6IMQcC.js} +38 -37
- package/chunks/{Textarea-B_KaoVEP.js → Textarea-CukgYb0k.js} +63 -61
- package/chunks/{TimerOutlined-C4Xz6IP8.js → TimerOutlined-1cB7d7fO.js} +1 -1
- package/chunks/chevron-right-B3IZtaMT.js +99 -0
- package/chunks/chevrons-right-CRIN5sOe.js +25 -0
- package/chunks/helpers-M2Nr9YsG.js +525 -0
- package/chunks/{index-BT8EkX60.js → index-BuUWjKja.js} +29 -28
- package/chunks/useEventCallback-DEgpWG-j.js +46 -0
- package/chunks/useForwardedInput-d4wk9fFf.js +179 -0
- package/chunks/useImageVariant-DS9F3PjS.js +16 -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 +12 -10
- package/package.json +1 -1
- package/chunks/AlertMessage-3_SCZvz1.js +0 -860
- package/chunks/useImageVariant-dCl80yl9.js +0 -537
package/ChanceGame.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as w, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { h as Ce,
|
|
2
|
+
import { h as Ce, g as Je, l as Ke } from "./chunks/helpers-M2Nr9YsG.js";
|
|
3
3
|
import Z, { useState as qe, useEffect as Qe } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { S as at } from "./chunks/Spinner-
|
|
4
|
+
import { f as K, V as Ze, r as ve, u as ie, R as Se, B as m, O as se, ad as ue, q as we, h as xe, T as D, Q as he, ae as Te, W as fe, g as $e, af as et, i as tt, X as ne, c as ot, C as nt, a as rt, E as lt, b as it } from "./chunks/PrizeCard-BA91wVwM.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-Cc2zWDFx.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
|
|
9
|
-
import { u as mt, S as le, c as
|
|
8
|
+
import { N as dt, S as Ae, O as Ie } from "./chunks/NotFoundSkeleton-C2qREw63.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-aTiQBLAI.js";
|
|
10
|
+
import { u as pe, d as Ve, a as He } from "./chunks/useImageVariant-DS9F3PjS.js";
|
|
10
11
|
const ke = ({
|
|
11
12
|
children: e,
|
|
12
13
|
brandingBorderColor: s,
|
|
@@ -41,7 +42,7 @@ const ke = ({
|
|
|
41
42
|
}
|
|
42
43
|
);
|
|
43
44
|
return e === ue.EMBED ? a : /* @__PURE__ */ t(ke, { brandingBorderColor: null, children: a });
|
|
44
|
-
},
|
|
45
|
+
}, Ne = ({
|
|
45
46
|
infoPage: e,
|
|
46
47
|
enableReset: s = !1,
|
|
47
48
|
contentColor: a,
|
|
@@ -55,26 +56,26 @@ const ke = ({
|
|
|
55
56
|
showTitleBlock: F = !1,
|
|
56
57
|
variant: O
|
|
57
58
|
}) => {
|
|
58
|
-
var G, q,
|
|
59
|
-
const p = K(), S = ie(), g = ve(), i = we(), u =
|
|
59
|
+
var G, q, N;
|
|
60
|
+
const p = K(), S = ie(), g = ve(), i = we(), u = xe(), _ = Se(), y = O === "standard", h = O === "overlay", C = y || h, E = JSON.parse(e.body), M = E.segments || [], f = e.labels || {}, L = E.mode || ((G = E.config) == null ? void 0 : G.mode) || "fair", V = ((q = E.config) == null ? void 0 : q.pace) || "normal", W = ((N = E.config) == null ? void 0 : N.decorations) ?? !1, B = Ee(r, l), {
|
|
60
61
|
isSpinning: T,
|
|
61
|
-
finalRotation:
|
|
62
|
+
finalRotation: H,
|
|
62
63
|
selectedSegment: b,
|
|
63
64
|
showShakeAnimation: X,
|
|
64
65
|
showResultScreen: R,
|
|
65
66
|
showInlineResult: k,
|
|
66
67
|
hasEntered: $,
|
|
67
68
|
confettiActive: z,
|
|
68
|
-
spinDuration:
|
|
69
|
-
shakeAnimationDuration:
|
|
70
|
-
confettiVelocityMultiplier:
|
|
69
|
+
spinDuration: P,
|
|
70
|
+
shakeAnimationDuration: U,
|
|
71
|
+
confettiVelocityMultiplier: j,
|
|
71
72
|
confettiGravity: A,
|
|
72
73
|
handleSpin: I,
|
|
73
74
|
handleReset: v,
|
|
74
75
|
onConfettiComplete: ee
|
|
75
|
-
} = mt({ segments: M, mode: L, pace:
|
|
76
|
+
} = mt({ segments: M, mode: L, pace: V }), te = C ? p ? "260px" : "340px" : p ? "320px" : "450px", Y = () => /* @__PURE__ */ w(re, { children: [
|
|
76
77
|
W && /* @__PURE__ */ t(
|
|
77
|
-
|
|
78
|
+
Ge,
|
|
78
79
|
{
|
|
79
80
|
primaryColor: r,
|
|
80
81
|
isDark: l,
|
|
@@ -86,7 +87,7 @@ const ke = ({
|
|
|
86
87
|
{
|
|
87
88
|
active: z,
|
|
88
89
|
primaryColor: r,
|
|
89
|
-
velocityMultiplier:
|
|
90
|
+
velocityMultiplier: j,
|
|
90
91
|
gravity: A,
|
|
91
92
|
onComplete: ee
|
|
92
93
|
}
|
|
@@ -255,7 +256,7 @@ const ke = ({
|
|
|
255
256
|
transform: $ ? "scale(1)" : "scale(0.85)",
|
|
256
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)",
|
|
257
258
|
// Shake animation
|
|
258
|
-
animation: X ? `wheelShake ${
|
|
259
|
+
animation: X ? `wheelShake ${U / 2}ms ease-in-out 2` : "none",
|
|
259
260
|
"@keyframes wheelShake": {
|
|
260
261
|
"0%, 100%": { transform: "translateX(0)" },
|
|
261
262
|
"10%, 30%, 50%, 70%, 90%": { transform: "translateX(-8px)" },
|
|
@@ -284,9 +285,9 @@ const ke = ({
|
|
|
284
285
|
onPrimaryColor: o,
|
|
285
286
|
decorations: W,
|
|
286
287
|
isStandard: y,
|
|
287
|
-
rotation:
|
|
288
|
+
rotation: H,
|
|
288
289
|
isSpinning: T,
|
|
289
|
-
spinDuration:
|
|
290
|
+
spinDuration: P
|
|
290
291
|
}
|
|
291
292
|
),
|
|
292
293
|
!y && !h && n && /* @__PURE__ */ t(
|
|
@@ -641,15 +642,15 @@ const ke = ({
|
|
|
641
642
|
defaultImagePlaceholderUrl: r
|
|
642
643
|
}) => {
|
|
643
644
|
var u, _;
|
|
644
|
-
const { t: x } = se(), o = K(), c = ie(), d =
|
|
645
|
+
const { t: x } = se(), o = K(), c = ie(), d = Te() === "dark", n = pe(
|
|
645
646
|
{
|
|
646
647
|
images: e.images,
|
|
647
648
|
imagePlaceholder: r || ""
|
|
648
649
|
},
|
|
649
|
-
|
|
650
|
+
fe.STANDARD
|
|
650
651
|
), l = (u = e.branding) == null ? void 0 : u.colors, F = (l == null ? void 0 : l.primary_color) || c.palette.primary.plainColor, O = (l == null ? void 0 : l.secondary_color) || c.palette.danger.plainColor, p = (l == null ? void 0 : l.border_color) || null, S = (l == null ? void 0 : l.background_color) || c.surfaceVariant || "", g = (_ = e.branding) == null ? void 0 : _.images, i = o ? (g == null ? void 0 : g.mobile_logo) || (g == null ? void 0 : g.main_logo) || "" : (g == null ? void 0 : g.main_logo) || "";
|
|
651
652
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: p, children: /* @__PURE__ */ t(
|
|
652
|
-
|
|
653
|
+
Ae,
|
|
653
654
|
{
|
|
654
655
|
entity: {
|
|
655
656
|
...e,
|
|
@@ -661,7 +662,7 @@ const ke = ({
|
|
|
661
662
|
finalImage: n,
|
|
662
663
|
imagePosition: a,
|
|
663
664
|
children: /* @__PURE__ */ t(
|
|
664
|
-
|
|
665
|
+
Ne,
|
|
665
666
|
{
|
|
666
667
|
infoPage: e,
|
|
667
668
|
enableReset: s,
|
|
@@ -699,7 +700,7 @@ const ke = ({
|
|
|
699
700
|
compactCards: g = !1
|
|
700
701
|
}) => {
|
|
701
702
|
var Fe, We, _e, Oe;
|
|
702
|
-
const i = K(), u = ie(), _ = ve(), y = we(), h =
|
|
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", V = f ? Ce(c) : "", W = V ? V.replace(/[^\d,]/g, "") : "", B = g ? i ? 80 : 110 : i ? 100 : 140, T = g ? i ? 104 : 143 : i ? 130 : 180, H = 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 || {}, P = k.mode || ((Fe = k.config) == null ? void 0 : Fe.mode) || "fair", U = ((We = k.config) == null ? void 0 : We.pace) || "normal", j = ((_e = k.config) == null ? void 0 : _e.revealAll) ?? !1, A = ((Oe = k.config) == null ? void 0 : Oe.decorations) ?? !1, I = $.some((ae) => {
|
|
703
704
|
var J;
|
|
704
705
|
return (J = ae.images) == null ? void 0 : J.idle;
|
|
705
706
|
}), {
|
|
@@ -709,18 +710,18 @@ const ke = ({
|
|
|
709
710
|
showResultScreen: Y,
|
|
710
711
|
showInlineResult: G,
|
|
711
712
|
showLoseAnimation: q,
|
|
712
|
-
hasEntered:
|
|
713
|
+
hasEntered: N,
|
|
713
714
|
flippedCards: Q,
|
|
714
715
|
crossfadedCards: oe,
|
|
715
716
|
revealedOtherCards: ce,
|
|
716
717
|
flipDuration: Xe,
|
|
717
|
-
crossfadeDuration:
|
|
718
|
-
loseAnimationDuration:
|
|
718
|
+
crossfadeDuration: Pe,
|
|
719
|
+
loseAnimationDuration: Ue,
|
|
719
720
|
handlePick: Re,
|
|
720
721
|
handleReset: ge
|
|
721
|
-
} = pt({ segments: $, mode:
|
|
722
|
+
} = pt({ segments: $, mode: P, pace: U, revealAll: j }), ze = () => /* @__PURE__ */ w(re, { children: [
|
|
722
723
|
A && /* @__PURE__ */ t(
|
|
723
|
-
|
|
724
|
+
Ge,
|
|
724
725
|
{
|
|
725
726
|
primaryColor: r,
|
|
726
727
|
isDark: O,
|
|
@@ -918,7 +919,7 @@ const ke = ({
|
|
|
918
919
|
mt: h.lg,
|
|
919
920
|
mx: "auto",
|
|
920
921
|
display: "grid",
|
|
921
|
-
gridTemplateColumns: I ? `repeat(3, ${
|
|
922
|
+
gridTemplateColumns: I ? `repeat(3, ${H}px)` : `repeat(3, ${B}px)`,
|
|
922
923
|
rowGap: b,
|
|
923
924
|
columnGap: X,
|
|
924
925
|
justifyContent: "center",
|
|
@@ -927,7 +928,7 @@ const ke = ({
|
|
|
927
928
|
perspective: "1200px"
|
|
928
929
|
},
|
|
929
930
|
children: (ee ?? $).map((ae, J) => {
|
|
930
|
-
const be = `card-${J}`, de = v !== null, Be = Q.has(be), me = ce.has(be),
|
|
931
|
+
const be = `card-${J}`, de = v !== null, Be = Q.has(be), me = ce.has(be), je = de && !Be && !me, De = oe.has(be), Ye = de && !De && !me;
|
|
931
932
|
return /* @__PURE__ */ t(
|
|
932
933
|
m,
|
|
933
934
|
{
|
|
@@ -936,8 +937,8 @@ const ke = ({
|
|
|
936
937
|
justifyContent: "center",
|
|
937
938
|
alignItems: "center",
|
|
938
939
|
// Staggered deal-in entrance
|
|
939
|
-
opacity:
|
|
940
|
-
transform:
|
|
940
|
+
opacity: N ? 1 : 0,
|
|
941
|
+
transform: N ? "translateY(0) scale(1) rotateX(0deg)" : "translateY(30px) scale(0.9) rotateX(10deg)",
|
|
941
942
|
transition: `all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${J * 100}ms`
|
|
942
943
|
},
|
|
943
944
|
children: I ? /* @__PURE__ */ t(
|
|
@@ -951,9 +952,9 @@ const ke = ({
|
|
|
951
952
|
isOtherRevealed: me,
|
|
952
953
|
shouldDim: Ye,
|
|
953
954
|
isRevealed: de,
|
|
954
|
-
hasEntered:
|
|
955
|
-
objectSize:
|
|
956
|
-
crossfadeDuration:
|
|
955
|
+
hasEntered: N,
|
|
956
|
+
objectSize: H,
|
|
957
|
+
crossfadeDuration: Pe,
|
|
957
958
|
isStandard: f,
|
|
958
959
|
primaryColor: r,
|
|
959
960
|
dangerColor: d,
|
|
@@ -967,14 +968,14 @@ const ke = ({
|
|
|
967
968
|
selectedSegment: v,
|
|
968
969
|
isFlipped: Be,
|
|
969
970
|
isOtherRevealed: me,
|
|
970
|
-
shouldDim:
|
|
971
|
+
shouldDim: je,
|
|
971
972
|
isRevealed: de,
|
|
972
973
|
showLoseAnimation: q,
|
|
973
|
-
hasEntered:
|
|
974
|
+
hasEntered: N,
|
|
974
975
|
cardWidth: B,
|
|
975
976
|
cardHeight: T,
|
|
976
977
|
flipDuration: Xe,
|
|
977
|
-
loseAnimationDuration:
|
|
978
|
+
loseAnimationDuration: Ue,
|
|
978
979
|
cardBaseColor: E,
|
|
979
980
|
shimmerColor: M,
|
|
980
981
|
primaryColor: r,
|
|
@@ -1213,15 +1214,15 @@ const ke = ({
|
|
|
1213
1214
|
defaultImagePlaceholderUrl: r
|
|
1214
1215
|
}) => {
|
|
1215
1216
|
var i, u, _;
|
|
1216
|
-
const { t: x } = se(), o = K(), c = ie(), d =
|
|
1217
|
+
const { t: x } = se(), o = K(), c = ie(), d = Te() === "dark", n = pe(
|
|
1217
1218
|
{
|
|
1218
1219
|
images: e.images,
|
|
1219
1220
|
imagePlaceholder: r || ""
|
|
1220
1221
|
},
|
|
1221
|
-
|
|
1222
|
+
fe.STANDARD
|
|
1222
1223
|
), l = (i = e.branding) == null ? void 0 : i.colors, F = (l == null ? void 0 : l.primary_color) || c.palette.primary.plainColor, O = (l == null ? void 0 : l.border_color) || null, p = (l == null ? void 0 : l.background_color) || c.surfaceVariant || "", S = (u = e.branding) == null ? void 0 : u.images, g = o ? (S == null ? void 0 : S.mobile_logo) || (S == null ? void 0 : S.main_logo) || "" : (S == null ? void 0 : S.main_logo) || "";
|
|
1223
1224
|
return /* @__PURE__ */ t(ke, { brandingBorderColor: O, children: /* @__PURE__ */ t(
|
|
1224
|
-
|
|
1225
|
+
Ae,
|
|
1225
1226
|
{
|
|
1226
1227
|
entity: {
|
|
1227
1228
|
...e,
|
|
@@ -1304,14 +1305,14 @@ const ke = ({
|
|
|
1304
1305
|
enableReset: s = !1,
|
|
1305
1306
|
defaultImagePlaceholderUrl: a
|
|
1306
1307
|
}) => {
|
|
1307
|
-
var f, L,
|
|
1308
|
-
const { t: r } = se(), x = K(), o =
|
|
1308
|
+
var f, L, V, W, B, T, H, b, X, R, k, $, z, P, U, j, A, I, v;
|
|
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 ? Ve : He), p = l || pe(
|
|
1309
1310
|
{
|
|
1310
1311
|
images: e.images,
|
|
1311
1312
|
imagePlaceholder: O
|
|
1312
1313
|
},
|
|
1313
|
-
|
|
1314
|
-
), 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 = (
|
|
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 = (V = o.colorSchemes) == null ? void 0 : V.light) == null ? void 0 : W.palette) == null ? void 0 : B.primary) == null ? void 0 : T.plainColor), u = (R = (X = (b = (H = o.colorSchemes) == null ? void 0 : H.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 = (j = (U = (P = (z = o.colorSchemes) == null ? void 0 : z.light) == null ? void 0 : P.palette) == null ? void 0 : U.danger) == null ? void 0 : j.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({
|
|
1315
1316
|
spacingScale: c,
|
|
1316
1317
|
mdBorderRadius: C,
|
|
1317
1318
|
contentBgColor: _,
|
|
@@ -1324,7 +1325,7 @@ const ke = ({
|
|
|
1324
1325
|
textColor: g
|
|
1325
1326
|
});
|
|
1326
1327
|
return /* @__PURE__ */ t(
|
|
1327
|
-
|
|
1328
|
+
Ie,
|
|
1328
1329
|
{
|
|
1329
1330
|
entity: {
|
|
1330
1331
|
...e,
|
|
@@ -1467,14 +1468,14 @@ const ke = ({
|
|
|
1467
1468
|
enableReset: s = !1,
|
|
1468
1469
|
defaultImagePlaceholderUrl: a
|
|
1469
1470
|
}) => {
|
|
1470
|
-
var L,
|
|
1471
|
-
const { t: r } = se(), x = K(), o =
|
|
1471
|
+
var L, V, W, B, T, H, b, X, R, k, $, z, P, U, j, A, I, v, ee, te, Y, G, q, N, Q, oe, ce;
|
|
1472
|
+
const { t: r } = se(), x = K(), o = $e(), c = xe(), d = ((L = e.branding) == null ? void 0 : L.colors) || null, n = (V = e.branding) == null ? void 0 : V.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 ? Ve : He), p = l || pe(
|
|
1472
1473
|
{
|
|
1473
1474
|
images: e.images,
|
|
1474
1475
|
imagePlaceholder: O
|
|
1475
1476
|
},
|
|
1476
|
-
|
|
1477
|
-
), S = o.colorSchemes.dark.textColor, g = (d == null ? void 0 : d.content_color) || S, i = (d == null ? void 0 : d.primary_color) || ((
|
|
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) || ((H = (T = (B = (W = o.colorSchemes) == null ? void 0 : W.light) == null ? void 0 : B.palette) == null ? void 0 : T.primary) == null ? void 0 : H.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), _ = (U = (P = (z = ($ = o.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : z.palette) == null ? void 0 : P.primary) == null ? void 0 : U.onPrimary, y = (d == null ? void 0 : d.background_color) || ((A = (j = o.colorSchemes) == null ? void 0 : j.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({
|
|
1478
1479
|
spacingScale: c,
|
|
1479
1480
|
mdBorderRadius: E,
|
|
1480
1481
|
contentBgColor: y,
|
|
@@ -1487,7 +1488,7 @@ const ke = ({
|
|
|
1487
1488
|
textColor: g
|
|
1488
1489
|
});
|
|
1489
1490
|
return /* @__PURE__ */ w(
|
|
1490
|
-
|
|
1491
|
+
Ie,
|
|
1491
1492
|
{
|
|
1492
1493
|
entity: {
|
|
1493
1494
|
...e,
|
|
@@ -1499,7 +1500,7 @@ const ke = ({
|
|
|
1499
1500
|
finalImage: p,
|
|
1500
1501
|
children: [
|
|
1501
1502
|
/* @__PURE__ */ t(m, { sx: f.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
|
|
1502
|
-
|
|
1503
|
+
Ne,
|
|
1503
1504
|
{
|
|
1504
1505
|
infoPage: e,
|
|
1505
1506
|
enableReset: s,
|
|
@@ -1522,7 +1523,7 @@ const ke = ({
|
|
|
1522
1523
|
brandingLogo: F,
|
|
1523
1524
|
textColor: S,
|
|
1524
1525
|
label: ((q = e.labels) == null ? void 0 : q.sponsor) || null,
|
|
1525
|
-
primaryUrl: (Q = (
|
|
1526
|
+
primaryUrl: (Q = (N = e.branding) == null ? void 0 : N.urls) == null ? void 0 : Q.primary_url,
|
|
1526
1527
|
secondaryUrl: (ce = (oe = e.branding) == null ? void 0 : oe.urls) == null ? void 0 : ce.secondary_url
|
|
1527
1528
|
}
|
|
1528
1529
|
)
|
package/ClassicQuizPlay.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { jsxs as E, Fragment as T, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import x2, { useState as b, useEffect as m2, useCallback as c0, useRef as r0, useMemo as M2 } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { P as B0 } from "./chunks/Portal-
|
|
5
|
-
import {
|
|
6
|
-
import { S as y0 } from "./chunks/Spinner-
|
|
3
|
+
import { f as X, B as l, g as r2, u as D, r as _, q as C2, R as G2, h as u2, T as B, O as p, Y as q2, Z as P2, V as Z2, W as Z, Q as q, av as I0, a0 as Q0, d as E0, J as l0, i as h0 } from "./chunks/PrizeCard-BA91wVwM.js";
|
|
4
|
+
import { P as B0 } from "./chunks/Portal-kFrc-yUh.js";
|
|
5
|
+
import { g as d0, e as V2, h as F2, s as u0, k as w0, a as n0, j as S0 } from "./chunks/helpers-M2Nr9YsG.js";
|
|
6
|
+
import { S as y0 } from "./chunks/Spinner-Cc2zWDFx.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import { S as D0, a as m0, b as g0, C as $2, c as e0 } from "./chunks/ChanceGameEmbedVariant-
|
|
9
|
-
import { H as k0, a as W2, R as O2, A as v2, O as C0, S as a0 } from "./chunks/index-
|
|
10
|
-
import { A as k2, O as R0 } from "./chunks/ArrowRightAlt-
|
|
11
|
-
import { A as y2, O as f0, S as K0, N as F0 } from "./chunks/NotFoundSkeleton-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { S as
|
|
8
|
+
import { S as D0, a as m0, b as g0, C as $2, c as e0 } from "./chunks/ChanceGameEmbedVariant-BqSL2q5j.js";
|
|
9
|
+
import { H as k0, a as W2, R as O2, A as v2, O as C0, S as a0 } from "./chunks/index-BuUWjKja.js";
|
|
10
|
+
import { A as k2, O as R0 } from "./chunks/ArrowRightAlt-DDfv44Cb.js";
|
|
11
|
+
import { A as y2, O as f0, S as K0, N as F0 } from "./chunks/NotFoundSkeleton-C2qREw63.js";
|
|
12
|
+
import { b as L2, d as w2, a as S2, u as E2 } from "./chunks/useImageVariant-DS9F3PjS.js";
|
|
13
|
+
import { T as V0 } from "./chunks/TimerOutlined-1cB7d7fO.js";
|
|
14
|
+
import { C as x0 } from "./chunks/CollectLeadForm-DWGJcFYk.js";
|
|
15
|
+
import { T as L0, a as Y0, b as i0, t as A0, c as t0 } from "./chunks/Tabs-CZ6IMQcC.js";
|
|
16
|
+
import { C as H0 } from "./chunks/CheckCircle-DI3T1yc_.js";
|
|
17
|
+
import { a as U0, S as J0, I as M0, W as W0 } from "./chunks/AlertMessage-BwK1nhhq.js";
|
|
18
|
+
import { S as G0, O as q0, a as P0, b as Z0 } from "./chunks/OverlayLeadAfterCollection-CZ9P-B_i.js";
|
|
19
|
+
import { S as O0, a as v0 } from "./chunks/SplitLeadAfterCollection-CkxYL7KZ.js";
|
|
19
20
|
const p0 = (e) => ({
|
|
20
21
|
// Image container (left position)
|
|
21
22
|
imageContainerLeft: {
|
|
@@ -4850,7 +4851,7 @@ const ze = (e) => {
|
|
|
4850
4851
|
);
|
|
4851
4852
|
}
|
|
4852
4853
|
return c2();
|
|
4853
|
-
}, Xe = (e) => /* @__PURE__ */ i(B0, { packageName: "classic-quiz-play", ...e, children: /* @__PURE__ */ i(ze, { ...e }) }),
|
|
4854
|
+
}, Xe = (e) => /* @__PURE__ */ i(B0, { packageName: "classic-quiz-play", ...e, children: /* @__PURE__ */ i(ze, { ...e }) }), Ii = Xe;
|
|
4854
4855
|
export {
|
|
4855
|
-
|
|
4856
|
+
Ii as ClassicQuizPlay
|
|
4856
4857
|
};
|
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 { q as Y, f as Q, B as o, T as u, O as de, Y as J, g as K, h as X, J as Z, W as w, r as U, u as h, R as se } from "./chunks/PrizeCard-BA91wVwM.js";
|
|
4
|
+
import { P as me } from "./chunks/Portal-kFrc-yUh.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as ge,
|
|
7
|
-
import {
|
|
6
|
+
import { g as ge, a as xe, h as oe } from "./chunks/helpers-M2Nr9YsG.js";
|
|
7
|
+
import { d as le, a as ae, u as ee } from "./chunks/useImageVariant-DS9F3PjS.js";
|
|
8
|
+
import { C as fe } from "./chunks/CollectLeadForm-DWGJcFYk.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)
|
|
@@ -394,7 +395,7 @@ const te = (e) => {
|
|
|
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
|
|
@@ -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,
|
|
@@ -1160,7 +1161,7 @@ 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
|
|
@@ -1168,7 +1169,7 @@ const te = (e) => {
|
|
|
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
|
w.SPLIT
|
|
1171
|
-
), c =
|
|
1172
|
+
), c = oe(T || ""), x = pe({
|
|
1172
1173
|
finalImage: d,
|
|
1173
1174
|
spacingScale: F,
|
|
1174
1175
|
borderRadius: M,
|
|
@@ -1251,7 +1252,7 @@ const Fe = (e) => e.template === w.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
|
};
|