fansunited-frontend-components 0.0.31-RC6 → 0.0.31-RC7
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/ClassicQuizPlay.js +27 -28
- package/CollectLead.js +56 -57
- package/EventGamePlay.js +200 -201
- package/MatchQuizPlay.js +52 -53
- package/PollVote.js +26 -28
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/{OverlayLeadAfterCollection-DnqztPJ5.js → OverlayLeadAfterCollection-Bjh1xAB5.js} +37 -38
- package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd.js → OverlayScoreStateSkeleton-Cha5KeNi.js} +4 -5
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/chunks/CollectLeadForm-DtmR2Vuf.js +0 -844
- package/chunks/Error-DhQL89pn.js +0 -120
- package/chunks/NotFoundSkeleton-BYJTzYJR.js +0 -2425
- package/chunks/Portal-BWqqFvVm.js +0 -13823
package/chunks/{OverlayLeadAfterCollection-DnqztPJ5.js → OverlayLeadAfterCollection-Bjh1xAB5.js}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, Fragment as q, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { R as G, S as ie, a as le, O as ae } from "./NotFoundSkeleton-BYJTzYJR.js";
|
|
2
|
+
import { i as L, u as O, a as B, b as Q, c as _, d as A, e as ee, W as E, h as Y, g as ne, B as t, T as k, s as $, f as J, j as te } from "./Portal-DegkUXpU.js";
|
|
3
|
+
import { R as G, S as ie, a as le, O as ae } from "./index-DUQ2LFod.js";
|
|
5
4
|
import "react";
|
|
6
5
|
const oe = (e) => {
|
|
7
6
|
var m, r, d;
|
|
@@ -193,7 +192,7 @@ const oe = (e) => {
|
|
|
193
192
|
objectFit: "cover"
|
|
194
193
|
}
|
|
195
194
|
};
|
|
196
|
-
},
|
|
195
|
+
}, xe = ({
|
|
197
196
|
entity: e,
|
|
198
197
|
headline: m,
|
|
199
198
|
finalImage: r,
|
|
@@ -203,7 +202,7 @@ const oe = (e) => {
|
|
|
203
202
|
rulesDisplay: h
|
|
204
203
|
}) => {
|
|
205
204
|
var M, W;
|
|
206
|
-
const D = L(), x = O(), y =
|
|
205
|
+
const D = L(), x = O(), y = B(), C = Q().primary, S = Q().secondary, b = _(), o = ((M = e.branding) == null ? void 0 : M.colors) || null, f = ((W = e.branding) == null ? void 0 : W.urls) || null, T = (o == null ? void 0 : o.contentColor) || A().textColor, c = (o == null ? void 0 : o.secondaryColor) || A().textColor, a = (o == null ? void 0 : o.backgroundColor) || A().surfaceVariant, P = "60%", v = ee(
|
|
207
206
|
E.STANDARD
|
|
208
207
|
), i = oe({
|
|
209
208
|
finalImage: r,
|
|
@@ -224,23 +223,23 @@ const oe = (e) => {
|
|
|
224
223
|
f == null ? void 0 : f.primaryUrl,
|
|
225
224
|
f == null ? void 0 : f.secondaryUrl,
|
|
226
225
|
"image"
|
|
227
|
-
), F = (
|
|
226
|
+
), F = (R, p) => typeof window > "u" ? g ? /* @__PURE__ */ n(
|
|
228
227
|
t,
|
|
229
228
|
{
|
|
230
229
|
component: "a",
|
|
231
230
|
href: g,
|
|
232
231
|
target: "_blank",
|
|
233
|
-
sx:
|
|
234
|
-
children:
|
|
232
|
+
sx: p,
|
|
233
|
+
children: R
|
|
235
234
|
}
|
|
236
|
-
) : /* @__PURE__ */ n(t, { sx:
|
|
235
|
+
) : /* @__PURE__ */ n(t, { sx: p, children: R }) : g ? /* @__PURE__ */ n(
|
|
237
236
|
t,
|
|
238
237
|
{
|
|
239
|
-
sx: { ...
|
|
238
|
+
sx: { ...p, cursor: "pointer" },
|
|
240
239
|
onClick: () => window.open(g, "_blank"),
|
|
241
|
-
children:
|
|
240
|
+
children: R
|
|
242
241
|
}
|
|
243
|
-
) : /* @__PURE__ */ n(t, { sx:
|
|
242
|
+
) : /* @__PURE__ */ n(t, { sx: p, children: R });
|
|
244
243
|
return /* @__PURE__ */ l(q, { children: [
|
|
245
244
|
r ? F(
|
|
246
245
|
/* @__PURE__ */ l(t, { sx: i.mobileHeadlineContent, children: [
|
|
@@ -429,7 +428,7 @@ const oe = (e) => {
|
|
|
429
428
|
flexDirection: "column",
|
|
430
429
|
gap: e.spacingScale["3xs"]
|
|
431
430
|
}
|
|
432
|
-
}),
|
|
431
|
+
}), ye = ({
|
|
433
432
|
entity: e,
|
|
434
433
|
headline: m,
|
|
435
434
|
finalImage: r,
|
|
@@ -438,7 +437,7 @@ const oe = (e) => {
|
|
|
438
437
|
rulesDisplay: s
|
|
439
438
|
}) => {
|
|
440
439
|
var a;
|
|
441
|
-
const h = L(), D = O(), x =
|
|
440
|
+
const h = L(), D = O(), x = B(), y = Q().primary, C = Q().secondary, S = _(), b = ((a = e.branding) == null ? void 0 : a.colors) || null, o = (b == null ? void 0 : b.contentColor) || D.colorSchemes.dark.textColor, f = (b == null ? void 0 : b.secondaryColor) || D.colorSchemes.dark.textColor, c = re({
|
|
442
441
|
finalImage: r,
|
|
443
442
|
spacingScale: x,
|
|
444
443
|
borderRadius: S,
|
|
@@ -575,7 +574,7 @@ const oe = (e) => {
|
|
|
575
574
|
flex: 1
|
|
576
575
|
}
|
|
577
576
|
};
|
|
578
|
-
},
|
|
577
|
+
}, fe = ({
|
|
579
578
|
entity: e,
|
|
580
579
|
headline: m,
|
|
581
580
|
backgroundImage: r,
|
|
@@ -585,7 +584,7 @@ const oe = (e) => {
|
|
|
585
584
|
rulesDisplay: h
|
|
586
585
|
}) => {
|
|
587
586
|
var P;
|
|
588
|
-
const D = L(), x = O(), y =
|
|
587
|
+
const D = L(), x = O(), y = B(), C = ((P = e.branding) == null ? void 0 : P.colors) || null, S = (C == null ? void 0 : C.contentColor) || x.colorSchemes.dark.textColor, b = x.customFontFamily.dark.primary, o = x.customFontFamily.dark.secondary, f = x.customRadius.dark.md, T = x.border.dark.size, c = x.colorSchemes.dark.textColor, a = ce({
|
|
589
588
|
spacingScale: y,
|
|
590
589
|
brandingColors: C,
|
|
591
590
|
secondaryColor: S,
|
|
@@ -621,7 +620,7 @@ const oe = (e) => {
|
|
|
621
620
|
/* @__PURE__ */ n(t, { sx: a.signInWrapper, children: I })
|
|
622
621
|
] })
|
|
623
622
|
] });
|
|
624
|
-
},
|
|
623
|
+
}, ue = (e) => {
|
|
625
624
|
var o, f, T, c, a, P, v;
|
|
626
625
|
const m = J(
|
|
627
626
|
{
|
|
@@ -629,7 +628,7 @@ const oe = (e) => {
|
|
|
629
628
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
630
629
|
},
|
|
631
630
|
E.STANDARD
|
|
632
|
-
), r = L(), d =
|
|
631
|
+
), r = L(), d = B(), I = _(), s = `rgba(${Y(A().surfaceVariant || "")}, 0.5)`, h = ((o = e.entity.branding) == null ? void 0 : o.colors) || null, D = (h == null ? void 0 : h.borderColor) || null, x = r ? ((T = (f = e.entity.branding) == null ? void 0 : f.images) == null ? void 0 : T.mobileLogo) || ((a = (c = e.entity.branding) == null ? void 0 : c.images) == null ? void 0 : a.mainLogo) || "" : ((v = (P = e.entity.branding) == null ? void 0 : P.images) == null ? void 0 : v.mainLogo) || "", y = e.imagePosition || "left", C = A().textColor, S = {
|
|
633
632
|
mainContentArea: {
|
|
634
633
|
flex: r ? "1" : m ? "0.7" : "1",
|
|
635
634
|
display: "flex",
|
|
@@ -658,7 +657,7 @@ const oe = (e) => {
|
|
|
658
657
|
backdropFilter: "blur(4px)"
|
|
659
658
|
}
|
|
660
659
|
}, b = () => {
|
|
661
|
-
var F, u, M, W,
|
|
660
|
+
var F, u, M, W, R, p, w, H, z, j, U, N, V, K, X, Z;
|
|
662
661
|
const { CollectLeadWrapper: i, entity: g } = e;
|
|
663
662
|
return /* @__PURE__ */ l(t, { sx: S.mainContentArea, children: [
|
|
664
663
|
/* @__PURE__ */ n(t, { sx: S.leadCollectionContainer, children: /* @__PURE__ */ n(t, { sx: S.leadQuestionContainer, children: /* @__PURE__ */ n(t, { sx: S.leadContentContainer, children: /* @__PURE__ */ n(
|
|
@@ -671,9 +670,9 @@ const oe = (e) => {
|
|
|
671
670
|
brandingUrls: (u = g.branding) == null ? void 0 : u.urls,
|
|
672
671
|
campaignId: (M = e.leads) == null ? void 0 : M.campaignId,
|
|
673
672
|
campaignName: (W = e.leads) == null ? void 0 : W.campaignName,
|
|
674
|
-
fields: (
|
|
675
|
-
leadTitle: (
|
|
676
|
-
leadDescription: (
|
|
673
|
+
fields: (R = e.leads) == null ? void 0 : R.fields,
|
|
674
|
+
leadTitle: (p = g.labels) == null ? void 0 : p.leadTitle,
|
|
675
|
+
leadDescription: (w = g.labels) == null ? void 0 : w.leadDescription,
|
|
677
676
|
leadCta: (H = g.labels) == null ? void 0 : H.leadCta,
|
|
678
677
|
leadSuccessTitle: (z = g.labels) == null ? void 0 : z.leadSuccessTitle,
|
|
679
678
|
leadSuccessDescription: (j = g.labels) == null ? void 0 : j.leadSuccessDescription,
|
|
@@ -706,7 +705,7 @@ const oe = (e) => {
|
|
|
706
705
|
children: b()
|
|
707
706
|
}
|
|
708
707
|
) });
|
|
709
|
-
},
|
|
708
|
+
}, he = (e) => {
|
|
710
709
|
var T, c, a, P, v, i, g;
|
|
711
710
|
const m = O(), r = L(), d = r ? e.mobileImagePlaceholder || e.defaultImagePlaceholder || "" : e.defaultImagePlaceholder || "", I = J(
|
|
712
711
|
{
|
|
@@ -714,7 +713,7 @@ const oe = (e) => {
|
|
|
714
713
|
imagePlaceholder: d
|
|
715
714
|
},
|
|
716
715
|
E.SPLIT
|
|
717
|
-
), s = ((T = e.entity.branding) == null ? void 0 : T.colors) || null, h = (s == null ? void 0 : s.borderColor) || null, D = (s == null ? void 0 : s.backgroundColor) || A().surfaceVariant, x = Y(D), y =
|
|
716
|
+
), s = ((T = e.entity.branding) == null ? void 0 : T.colors) || null, h = (s == null ? void 0 : s.borderColor) || null, D = (s == null ? void 0 : s.backgroundColor) || A().surfaceVariant, x = Y(D), y = B(), C = _(), S = r ? ((a = (c = e.entity.branding) == null ? void 0 : c.images) == null ? void 0 : a.mobileLogo) || ((v = (P = e.entity.branding) == null ? void 0 : P.images) == null ? void 0 : v.mainLogo) || "" : ((g = (i = e.entity.branding) == null ? void 0 : i.images) == null ? void 0 : g.mainLogo) || "", b = {
|
|
718
717
|
questionArea: {
|
|
719
718
|
width: "100%",
|
|
720
719
|
justifyContent: "center",
|
|
@@ -738,7 +737,7 @@ const oe = (e) => {
|
|
|
738
737
|
borderRadius: C.sm
|
|
739
738
|
}
|
|
740
739
|
}, o = (F) => {
|
|
741
|
-
var u, M, W,
|
|
740
|
+
var u, M, W, R, p;
|
|
742
741
|
return /* @__PURE__ */ n(
|
|
743
742
|
e.PresentedBy,
|
|
744
743
|
{
|
|
@@ -746,12 +745,12 @@ const oe = (e) => {
|
|
|
746
745
|
textColor: F,
|
|
747
746
|
label: ((u = e.entity.labels) == null ? void 0 : u.sponsor) || null,
|
|
748
747
|
primaryUrl: (W = (M = e.entity.branding) == null ? void 0 : M.urls) == null ? void 0 : W.primaryUrl,
|
|
749
|
-
secondaryUrl: (
|
|
748
|
+
secondaryUrl: (p = (R = e.entity.branding) == null ? void 0 : R.urls) == null ? void 0 : p.secondaryUrl,
|
|
750
749
|
isCentered: !1
|
|
751
750
|
}
|
|
752
751
|
);
|
|
753
752
|
}, f = () => {
|
|
754
|
-
var M, W,
|
|
753
|
+
var M, W, R, p, w, H, z, j, U, N, V;
|
|
755
754
|
const { CollectLeadWrapper: F, entity: u } = e;
|
|
756
755
|
return /* @__PURE__ */ l(q, { children: [
|
|
757
756
|
/* @__PURE__ */ n(t, { sx: b.questionArea, children: /* @__PURE__ */ n(t, { sx: b.questionAreaContent, children: /* @__PURE__ */ n(t, { sx: b.leadContentContainer, children: /* @__PURE__ */ n(
|
|
@@ -762,9 +761,9 @@ const oe = (e) => {
|
|
|
762
761
|
contentName: u.title,
|
|
763
762
|
brandingColors: (M = u.branding) == null ? void 0 : M.colors,
|
|
764
763
|
brandingUrls: (W = u.branding) == null ? void 0 : W.urls,
|
|
765
|
-
campaignId: (
|
|
766
|
-
campaignName: (
|
|
767
|
-
fields: (
|
|
764
|
+
campaignId: (R = e.leads) == null ? void 0 : R.campaignId,
|
|
765
|
+
campaignName: (p = e.leads) == null ? void 0 : p.campaignName,
|
|
766
|
+
fields: (w = e.leads) == null ? void 0 : w.fields,
|
|
768
767
|
leadTitle: (H = u.labels) == null ? void 0 : H.leadTitle,
|
|
769
768
|
leadDescription: (z = u.labels) == null ? void 0 : z.leadDescription,
|
|
770
769
|
leadCta: (j = u.labels) == null ? void 0 : j.leadCta,
|
|
@@ -793,14 +792,14 @@ const oe = (e) => {
|
|
|
793
792
|
children: f()
|
|
794
793
|
}
|
|
795
794
|
) });
|
|
796
|
-
},
|
|
795
|
+
}, be = (e) => {
|
|
797
796
|
const m = O(), r = L(), d = e.defaultImagePlaceholder ? e.defaultImagePlaceholder || "" : r ? e.mobileImagePlaceholder : e.defaultImagePlaceholder || "", { brandingImage: I, brandingColors: s, brandingLogo: h } = te(e.entity.branding || null), D = I || J(
|
|
798
797
|
{
|
|
799
798
|
images: e.entity.images || null,
|
|
800
799
|
imagePlaceholder: d || ""
|
|
801
800
|
},
|
|
802
801
|
E.OVERLAY
|
|
803
|
-
), x =
|
|
802
|
+
), x = B(), y = (s == null ? void 0 : s.backgroundColor) || m.colorSchemes.dark.surfaceVariant, C = {
|
|
804
803
|
mainContentSection: {
|
|
805
804
|
display: "flex",
|
|
806
805
|
flexDirection: "column",
|
|
@@ -890,10 +889,10 @@ const oe = (e) => {
|
|
|
890
889
|
);
|
|
891
890
|
};
|
|
892
891
|
export {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
892
|
+
fe as O,
|
|
893
|
+
xe as S,
|
|
894
|
+
ye as a,
|
|
895
|
+
ue as b,
|
|
896
|
+
he as c,
|
|
897
|
+
be as d
|
|
899
898
|
};
|
package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd.js → OverlayScoreStateSkeleton-Cha5KeNi.js}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { R as v } from "./NotFoundSkeleton-BYJTzYJR.js";
|
|
2
|
+
import { i as k, u as F, a as z, B as l, T as a, s as I } from "./Portal-DegkUXpU.js";
|
|
3
|
+
import { R as v } from "./index-DUQ2LFod.js";
|
|
5
4
|
const R = (e) => ({
|
|
6
5
|
// Main container with background overlay
|
|
7
6
|
mainContainer: {
|
|
@@ -88,7 +87,7 @@ const R = (e) => ({
|
|
|
88
87
|
opacity: "70%",
|
|
89
88
|
fontFamily: e.fontFamilyPrimary
|
|
90
89
|
}
|
|
91
|
-
}),
|
|
90
|
+
}), j = ({
|
|
92
91
|
entity: e,
|
|
93
92
|
headline: d,
|
|
94
93
|
backgroundImage: m,
|
|
@@ -143,5 +142,5 @@ const R = (e) => ({
|
|
|
143
142
|
] });
|
|
144
143
|
};
|
|
145
144
|
export {
|
|
146
|
-
|
|
145
|
+
j as O
|
|
147
146
|
};
|