fansunited-frontend-components 0.0.42 → 0.0.44
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 +41 -40
- package/ClassicQuizPlay.js +18 -17
- package/CollectLead.js +18 -17
- package/Discussion.js +239 -237
- package/EitherOrPlay.js +71 -70
- package/EventGamePlay.js +151 -147
- package/Leaderboard.d.ts +4 -0
- package/Leaderboard.d.ts.map +1 -0
- package/Leaderboard.js +971 -0
- package/MatchQuizPlay.js +355 -371
- package/PersonalityQuizPlay.js +10189 -9848
- package/PickThePair.js +63 -62
- package/PollVote.js +26 -25
- package/README.md +108 -0
- package/chunks/AlertMessage-DeOcuhSL.js +477 -0
- package/chunks/{ArrowRightAlt-BuGlVWmA.js → ArrowRightAlt-BoUxriBH.js} +1 -1
- package/chunks/{Avatar-D5Ca-p3i.js → Avatar-C7ZJ5apl.js} +75 -75
- package/chunks/{ChanceGameEmbedVariant-Bp3ii_VS.js → ChanceGameEmbedVariant-BkAL2iMZ.js} +36 -35
- package/chunks/{CheckCircle-BN-6n2s4.js → CheckCircle-HsAwn-Ao.js} +1026 -1200
- package/chunks/{CollectLeadForm-DbuD6K36.js → CollectLeadForm-Dl6nc12_.js} +1392 -1511
- package/chunks/{chevron-right-DvgkvJY1.js → Edit-DUniprks.js} +72 -169
- package/chunks/{FavoriteBorder-BRZGDJoN.js → FavoriteBorder-UfuHpOXw.js} +1 -1
- package/chunks/FormLabel-CZC8ujMH.js +132 -0
- package/chunks/Input-DM5ufV47.js +389 -0
- package/chunks/{Spinner-CsUckp7U.js → ModalDialog-_I4hvDI6.js} +344 -373
- package/chunks/{NotFoundSkeleton-BWhIYfwK.js → NotFoundSkeleton-BHPH2RiI.js} +92 -91
- package/chunks/{Notification-BByoWylW.js → Notification-DexZkqyG.js} +55 -58
- package/chunks/{OverlayLeadAfterCollection-BZzelHmI.js → OverlayLeadAfterCollection-DAb1dSmC.js} +23 -22
- package/chunks/{OverlayScoreStateSkeleton-DLuFPA2v.js → OverlayScoreStateSkeleton-BTxWohDI.js} +7 -7
- package/chunks/{Person-CWp0SazC.js → Person-IzZDDhmg.js} +5 -5
- package/chunks/{PickOneOfX-ClXzFCpd.js → PickOneOfX-ny-1b2mb.js} +469 -470
- package/chunks/{Portal-BgtHMXTp.js → Portal-BFeGKTzP.js} +1 -1
- package/chunks/{PrizeCard-Daz27Vrl.js → PrizeCard-C4Au83Cz.js} +4513 -4222
- package/chunks/Spinner-BHr9A75G.js +38 -0
- package/chunks/{SplitLeadAfterCollection-BGHkV2Q2.js → SplitLeadAfterCollection-BVPjEbhN.js} +41 -40
- package/chunks/{Tabs-ChEhfzcs.js → Tabs-D5c8Ignm.js} +39 -38
- package/chunks/{Textarea-DfHLYaSy.js → Textarea-DgvzoEIx.js} +181 -179
- package/chunks/{TimerOutlined-4HfKsPd2.js → TimerOutlined-CfuXkOOJ.js} +1 -1
- package/chunks/chevron-right-B3IZtaMT.js +99 -0
- package/chunks/chevrons-right-CRIN5sOe.js +25 -0
- package/chunks/helpers-LUoF9-Zd.js +525 -0
- package/chunks/{index-B0XVLSad.js → index-CMahPV5N.js} +29 -28
- package/chunks/useEventCallback-BzPEpIIS.js +46 -0
- package/chunks/useForwardedInput-C_IbmuBN.js +179 -0
- package/chunks/useImageVariant-BAF6m9zj.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-BBIRgWGu.js +0 -860
- package/chunks/useImageVariant-PuJUajGW.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-LUoF9-Zd.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, X as Ze, r as ve, u as ie, S as Se, B as m, Q as se, ae as ue, q as we, h as xe, T as D, R as he, af as Te, W as fe, g as $e, ag as et, i as tt, Y as ne, c as ot, C as nt, a as rt, E as lt, b as it } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
5
|
+
import { S as at } from "./chunks/Spinner-BHr9A75G.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-BHPH2RiI.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-ny-1b2mb.js";
|
|
10
|
+
import { u as pe, d as He, a as Ne } from "./chunks/useImageVariant-BAF6m9zj.js";
|
|
10
11
|
const ke = ({
|
|
11
12
|
children: e,
|
|
12
13
|
brandingBorderColor: s,
|
|
@@ -56,7 +57,7 @@ const ke = ({
|
|
|
56
57
|
variant: O
|
|
57
58
|
}) => {
|
|
58
59
|
var G, q, V;
|
|
59
|
-
const p = K(), S = ie(), g = ve(), i = we(), u =
|
|
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", H = ((q = E.config) == null ? void 0 : q.pace) || "normal", W = ((V = E.config) == null ? void 0 : V.decorations) ?? !1, B = Ee(r, l), {
|
|
60
61
|
isSpinning: T,
|
|
61
62
|
finalRotation: N,
|
|
62
63
|
selectedSegment: b,
|
|
@@ -65,16 +66,16 @@ const ke = ({
|
|
|
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
76
|
} = mt({ segments: M, mode: L, pace: H }), 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)" },
|
|
@@ -286,7 +287,7 @@ const ke = ({
|
|
|
286
287
|
isStandard: y,
|
|
287
288
|
rotation: N,
|
|
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,
|
|
@@ -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", 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 || {}, 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
|
}), {
|
|
@@ -714,13 +715,13 @@ const ke = ({
|
|
|
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,
|
|
@@ -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
|
{
|
|
@@ -953,7 +954,7 @@ const ke = ({
|
|
|
953
954
|
isRevealed: de,
|
|
954
955
|
hasEntered: V,
|
|
955
956
|
objectSize: N,
|
|
956
|
-
crossfadeDuration:
|
|
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
974
|
hasEntered: V,
|
|
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, H, W, B, T, N, b, X, R, k, $, z, U, j,
|
|
1308
|
-
const { t: r } = se(), x = K(), o =
|
|
1308
|
+
var f, L, H, W, B, T, N, 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 ? He : Ne), 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 = (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 = (
|
|
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 = (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, H, W, B, T, N, b, X, R, k, $, z, U, j,
|
|
1471
|
-
const { t: r } = se(), x = K(), o =
|
|
1471
|
+
var L, H, W, B, T, N, b, X, R, k, $, z, P, U, j, A, I, v, ee, te, Y, G, q, V, 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 = (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(
|
|
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) || ((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), _ = (
|
|
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), _ = (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,
|
|
@@ -1626,7 +1627,7 @@ const ke = ({
|
|
|
1626
1627
|
F,
|
|
1627
1628
|
O
|
|
1628
1629
|
] });
|
|
1629
|
-
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }),
|
|
1630
|
+
}, Ot = (e) => /* @__PURE__ */ t(_t, { ...e, children: /* @__PURE__ */ t(Wt, { ...e }) }), Nt = Ot;
|
|
1630
1631
|
export {
|
|
1631
|
-
|
|
1632
|
+
Nt as ChanceGame
|
|
1632
1633
|
};
|
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, S as G2, h as u2, T as B, Q as p, Z as q2, a0 as P2, X as Z2, W as Z, R as q, aw as I0, a1 as Q0, d as E0, J as l0, i as h0 } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
4
|
+
import { P as B0 } from "./chunks/Portal-BFeGKTzP.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-LUoF9-Zd.js";
|
|
6
|
+
import { S as y0 } from "./chunks/Spinner-BHr9A75G.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-BkAL2iMZ.js";
|
|
9
|
+
import { H as k0, a as W2, R as O2, A as v2, O as C0, S as a0 } from "./chunks/index-CMahPV5N.js";
|
|
10
|
+
import { A as k2, O as R0 } from "./chunks/ArrowRightAlt-BoUxriBH.js";
|
|
11
|
+
import { A as y2, O as f0, S as K0, N as F0 } from "./chunks/NotFoundSkeleton-BHPH2RiI.js";
|
|
12
|
+
import { b as L2, d as w2, a as S2, u as E2 } from "./chunks/useImageVariant-BAF6m9zj.js";
|
|
13
|
+
import { T as V0 } from "./chunks/TimerOutlined-CfuXkOOJ.js";
|
|
14
|
+
import { C as x0 } from "./chunks/CollectLeadForm-Dl6nc12_.js";
|
|
15
|
+
import { T as L0, a as Y0, b as i0, t as A0, c as t0 } from "./chunks/Tabs-D5c8Ignm.js";
|
|
16
|
+
import { C as H0 } from "./chunks/CheckCircle-HsAwn-Ao.js";
|
|
17
|
+
import { a as U0, S as J0, I as M0, W as W0 } from "./chunks/AlertMessage-DeOcuhSL.js";
|
|
18
|
+
import { S as G0, O as q0, a as P0, b as Z0 } from "./chunks/OverlayLeadAfterCollection-DAb1dSmC.js";
|
|
19
|
+
import { S as O0, a as v0 } from "./chunks/SplitLeadAfterCollection-BVPjEbhN.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,12 +1,13 @@
|
|
|
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 Q, f as Y, B as o, T as u, Q as de, Z as J, g as Z, h as K, J as X, W as w, r as U, u as h, S as se } from "./chunks/PrizeCard-C4Au83Cz.js";
|
|
4
|
+
import { P as me } from "./chunks/Portal-BFeGKTzP.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-LUoF9-Zd.js";
|
|
7
|
+
import { d as le, a as ae, u as ee } from "./chunks/useImageVariant-BAF6m9zj.js";
|
|
8
|
+
import { C as fe } from "./chunks/CollectLeadForm-Dl6nc12_.js";
|
|
8
9
|
const te = (e) => {
|
|
9
|
-
const i =
|
|
10
|
+
const i = Q().secondary, s = Y(), a = ge(e.primaryUrl, e.secondaryUrl, "logo");
|
|
10
11
|
if (!e.brandingLogo)
|
|
11
12
|
return null;
|
|
12
13
|
const d = () => {
|
|
@@ -387,14 +388,14 @@ const te = (e) => {
|
|
|
387
388
|
}
|
|
388
389
|
}), he = (e) => {
|
|
389
390
|
let i = (e == null ? void 0 : e.mainLogo) || null;
|
|
390
|
-
return
|
|
391
|
+
return Y() && (i = (e == null ? void 0 : e.mobileLogo) || (e == null ? void 0 : e.mainLogo) || null), i;
|
|
391
392
|
}, be = () => {
|
|
392
393
|
var l, $, q, P, R, I, L, D, z, H, v, B, y, m, W, A, G, E;
|
|
393
|
-
const e = J(_), i =
|
|
394
|
+
const e = J(_), i = Z(), s = K(), a = X(
|
|
394
395
|
w.OVERLAY
|
|
395
|
-
), d =
|
|
396
|
+
), d = Y(), 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
|
|
@@ -765,13 +766,13 @@ const te = (e) => {
|
|
|
765
766
|
}
|
|
766
767
|
}), Se = (e) => {
|
|
767
768
|
var P, R, I, L, D, z, H, v, B;
|
|
768
|
-
const i = J(_), s =
|
|
769
|
+
const i = J(_), s = Z(), a = e.imagePosition || "left", d = ee(
|
|
769
770
|
{
|
|
770
771
|
images: i.images || null,
|
|
771
772
|
imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
|
|
772
773
|
},
|
|
773
774
|
w.STANDARD
|
|
774
|
-
), t =
|
|
775
|
+
), t = Y(), 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 = Q().secondary, p = "60%", T = Q().primary, j = h().surfaceVariant, N = U().md, k = U().sm, F = h().palette.primary.plainColor, M = h().palette.primary.onPrimary, V = U().xl, c = K(), x = X(
|
|
775
776
|
w.STANDARD
|
|
776
777
|
), l = Ce({
|
|
777
778
|
finalImage: d,
|
|
@@ -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,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 =
|
|
1164
|
+
const e = J(_), i = Z(), s = Y(), 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
|
-
), 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 =
|
|
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 = Q().secondary, C = "60%", S = Q().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 = K(), M = U(), V = X(
|
|
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
|
};
|