fansunited-widgets-cdn 0.0.85 → 0.0.86-RC2

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.
Files changed (75) hide show
  1. package/chunks/Alert-CuOsmojH.js +149 -0
  2. package/chunks/AspectRatio-D3Sgxj7p.js +125 -0
  3. package/chunks/Avatar-BTsEKfhc.js +186 -0
  4. package/chunks/Button-BV7YIFkS.js +858 -0
  5. package/chunks/Card-DRIT0wtY.js +129 -0
  6. package/chunks/CardContent-CD-WZh1l.js +60 -0
  7. package/chunks/ChevronRight-BrCKlr3T.js +11 -0
  8. package/chunks/Chip-6HLNTHMI.js +281 -0
  9. package/chunks/ClassicQuizWrapper-t04e9_6c.js +4883 -0
  10. package/chunks/CollectLeadForm-DtmR2Vuf-B_3JkHJC.js +1560 -0
  11. package/chunks/CollectLeadWrapper-CVAVswua.js +1294 -0
  12. package/chunks/DialogActions-C5kAgHal.js +45 -0
  13. package/chunks/DialogContent-MIXff4nd.js +60 -0
  14. package/chunks/EitherOrById-CAo8gPjm.js +1496 -0
  15. package/chunks/EitherOrPreviewWrapper-DFi2bviS.js +47 -0
  16. package/chunks/Error-DhQL89pn-BwTV1meb.js +418 -0
  17. package/chunks/EventGameWrapper-BxyLL3eA.js +7633 -0
  18. package/chunks/Grid-Dpv_ZL23.js +279 -0
  19. package/chunks/IconButton-Lt9Xks7c.js +207 -0
  20. package/chunks/Link-DLuj1USf.js +228 -0
  21. package/chunks/List-DLPlZGTP.js +397 -0
  22. package/chunks/ListItemDecorator-CE2eQLip.js +1882 -0
  23. package/chunks/MatchPredictionContainer-Ct6gXvLw.js +751 -0
  24. package/chunks/MatchQuizWrapper-Fu6RfWVn.js +11046 -0
  25. package/chunks/ModalDialog-Ci3hulZA.js +619 -0
  26. package/chunks/NotFoundSkeleton-BYJTzYJR-Be3R34nS.js +2764 -0
  27. package/chunks/OverlayLeadAfterCollection-DnqztPJ5-CpELr0AC.js +896 -0
  28. package/chunks/OverlayScoreStateSkeleton-C9FUhcnd-DMFELrvA.js +146 -0
  29. package/chunks/PersonalityQuizWrapper-MpUK4n3Y.js +34374 -0
  30. package/chunks/PlayerOfTheMatch-D4vuR7pz.js +1406 -0
  31. package/chunks/PollWrapper-CzKj8xxE.js +4198 -0
  32. package/chunks/Portal-BWqqFvVm-TuHZWjxn.js +12717 -0
  33. package/chunks/Portal-DA1mxzSo.js +41 -0
  34. package/chunks/PreviewQuizById-WWS_LyJR.js +4864 -0
  35. package/chunks/Select-p_cHpLhi.js +3418 -0
  36. package/chunks/Sheet-BaCzogZK.js +167 -0
  37. package/chunks/Snackbar-DHxnbCA3.js +358 -0
  38. package/chunks/Stack-Dgf2LXN0.js +117 -0
  39. package/chunks/Tabs-CSu_cWNi.js +784 -0
  40. package/chunks/TeamNextMatchPrediction-C7HilNqW.js +6 -0
  41. package/chunks/Tutorial-DFNZxmAx.js +427 -0
  42. package/chunks/createLucideIcon-B6NxpYkb.js +79 -0
  43. package/chunks/createSvgIcon-7h7XC877.js +119 -0
  44. package/chunks/createSvgIcon-DVA0KIUd.js +2490 -0
  45. package/chunks/dataAttributeParser-CF9vxaVN.js +28 -0
  46. package/chunks/default-quiz-bg-CTzaADn7.js +4 -0
  47. package/chunks/getReactElementRef-BD-S8A24.js +25 -0
  48. package/chunks/index-24AwmTVJ.js +85 -0
  49. package/chunks/index-3vJS8JzK.js +63 -0
  50. package/chunks/index-BSD7mvEU.js +57 -0
  51. package/chunks/index-BU6iona7.js +57 -0
  52. package/chunks/index-BqCHiyI6.js +59 -0
  53. package/chunks/index-C5qRf4TV.js +20 -0
  54. package/chunks/index-C9MpfjqV.js +35 -0
  55. package/chunks/index-CMmQs5A5.js +56 -0
  56. package/chunks/index-CicEY2Jv.js +5 -0
  57. package/chunks/index-DNeawo0R.js +17 -0
  58. package/chunks/index-DePIySlY.js +29 -0
  59. package/chunks/index-DoRYU_1L.js +41 -0
  60. package/chunks/index-DvgG9XJj.js +20 -0
  61. package/chunks/index-QpZE-92Y.js +33 -0
  62. package/chunks/index-rgFj976B.js +17 -0
  63. package/chunks/index-tzsdMoo-.js +16 -0
  64. package/chunks/index.es-CHqz6mjo.js +6162 -0
  65. package/chunks/init-BEkECL0v.js +32 -0
  66. package/chunks/main-XP7dqk6g.js +39843 -0
  67. package/chunks/resolveProps-BfYZubfk.js +37 -0
  68. package/chunks/users-D_xgC4iQ.js +16 -0
  69. package/chunks/variantColorInheritance-DI3wUohX.js +28 -0
  70. package/fu-widgets-loader.es.js +73 -0
  71. package/fu-widgets-loader.js +1 -0
  72. package/fu-widgets.es.js +4 -0
  73. package/fu-widgets.iife.js +621 -682
  74. package/manifest.json +84 -0
  75. package/package.json +9 -2
@@ -0,0 +1,56 @@
1
+ import { p as N, a as A } from "./dataAttributeParser-CF9vxaVN.js";
2
+ import { i as U } from "./init-BEkECL0v.js";
3
+ const B = (b, y) => {
4
+ U({
5
+ element: b,
6
+ config: y,
7
+ widgetType: "poll",
8
+ propsBuilder: (t, a) => {
9
+ var l, r, c, u, g, p;
10
+ const n = t.getAttribute("data-lead-fields"), T = n ? n.split(",") : (l = a.leads) == null ? void 0 : l.defaultFields, m = t.getAttribute("data-layout-template") || a.layoutTemplate || "STANDARD", C = N(t) || a.imagePosition, v = A(t, "data-lead-sync-with-profile") !== void 0 ? A(t, "data-lead-sync-with-profile") : ((r = a.leads) == null ? void 0 : r.syncWithProfile) || !1, I = t.getAttribute("data-signin-cta-label") || void 0, e = t.getAttribute("data-signin-cta-onclick");
11
+ let o;
12
+ if (e)
13
+ try {
14
+ o = new Function(e);
15
+ } catch (i) {
16
+ console.warn("Invalid signInCTA onClick function:", i);
17
+ }
18
+ const k = t.getAttribute("data-signin-cta-url") || void 0, f = t.getAttribute("data-signin-cta-target") || void 0, w = t.getAttribute("data-additional-cta-label") || void 0, d = t.getAttribute("data-additional-cta-onclick");
19
+ let s;
20
+ if (d)
21
+ try {
22
+ s = new Function(d);
23
+ } catch (i) {
24
+ console.warn("Invalid additionalCTA onClick function:", i);
25
+ }
26
+ const F = t.getAttribute("data-additional-cta-url") || void 0, P = t.getAttribute("data-additional-cta-target") || void 0, h = t.getAttribute("data-options-layout") || a.optionsLayout, D = t.getAttribute("data-rules-display-type") || void 0, L = t.getAttribute("data-rules-display-url") || void 0, O = t.getAttribute("data-rules-display-target") || void 0;
27
+ return {
28
+ contentType: t.getAttribute("data-content-type") || "",
29
+ contentId: t.getAttribute("data-content-id") || "",
30
+ config: a,
31
+ leadFields: T || ((c = a.leads) == null ? void 0 : c.defaultFields) || [],
32
+ leadPosition: t.getAttribute("data-lead-position") || ((u = a.leads) == null ? void 0 : u.position) || "after",
33
+ leadSyncWithProfile: v,
34
+ campaignId: t.getAttribute("data-campaign-id") || ((g = a.leads) == null ? void 0 : g.campaignId) || "",
35
+ campaignName: t.getAttribute("data-campaign-name") || ((p = a.leads) == null ? void 0 : p.campaignName) || "",
36
+ layoutTemplate: m,
37
+ imagePosition: C,
38
+ signInCTALabel: I,
39
+ signInCTAOnClick: o,
40
+ signInCTAUrl: k,
41
+ signInCTATarget: f,
42
+ additionalCTALabel: w,
43
+ additionalCTAOnClick: s,
44
+ additionalCTAUrl: F,
45
+ additionalCTATarget: P,
46
+ rulesDisplayType: D,
47
+ rulesDisplayUrl: L,
48
+ rulesDisplayTarget: O,
49
+ optionsLayout: h
50
+ };
51
+ }
52
+ });
53
+ };
54
+ export {
55
+ B as initializePoll
56
+ };
@@ -0,0 +1,5 @@
1
+ import { ah as r } from "./main-XP7dqk6g.js";
2
+ var o = r();
3
+ export {
4
+ o as r
5
+ };
@@ -0,0 +1,17 @@
1
+ import { i as a } from "./init-BEkECL0v.js";
2
+ const r = (i, e) => {
3
+ a({
4
+ element: i,
5
+ config: e,
6
+ widgetType: "match-prediction",
7
+ propsBuilder: (t, n) => ({
8
+ contentType: t.getAttribute("data-content-type") || "",
9
+ contentId: t.getAttribute("data-content-id") || "",
10
+ config: n,
11
+ market: t.getAttribute("data-market") || "FT_1X2"
12
+ })
13
+ });
14
+ };
15
+ export {
16
+ r as initializeMatchPrediction
17
+ };
@@ -0,0 +1,29 @@
1
+ import { L as d } from "./main-XP7dqk6g.js";
2
+ import { i as n } from "./init-BEkECL0v.js";
3
+ const c = (l, o) => {
4
+ n({
5
+ element: l,
6
+ config: o,
7
+ widgetType: "list",
8
+ propsBuilder: (t, i) => {
9
+ var r, e, a, u, s;
10
+ return {
11
+ contentType: t.getAttribute("data-content-type") || "",
12
+ contentId: t.getAttribute("data-content-id") || "",
13
+ config: i,
14
+ classicQuizUrl: t.getAttribute("data-classic-quiz-url") || ((r = i.urls) == null ? void 0 : r.classicQuizUrl),
15
+ personalityQuizUrl: t.getAttribute("data-personality-quiz-url") || ((e = i.urls) == null ? void 0 : e.personalityQuizUrl),
16
+ eitherOrUrl: t.getAttribute("data-either-or-url") || ((a = i.urls) == null ? void 0 : a.eitherOrUrl),
17
+ pollUrl: t.getAttribute("data-poll-url") || ((u = i.urls) == null ? void 0 : u.pollUrl),
18
+ matchQuizUrl: t.getAttribute("data-match-quiz-url") || ((s = i.urls) == null ? void 0 : s.matchQuizUrl),
19
+ itemsCount: parseInt(t.getAttribute("data-items-count") || "10", 10),
20
+ itemsPerRow: parseInt(t.getAttribute("data-items-per-row") || "2", 10),
21
+ widgetMode: t.getAttribute("data-widget-mode") || d.LOAD_MORE
22
+ // Default to load-more
23
+ };
24
+ }
25
+ });
26
+ };
27
+ export {
28
+ c as initializeList
29
+ };
@@ -0,0 +1,41 @@
1
+ import { p as C, a as i } from "./dataAttributeParser-CF9vxaVN.js";
2
+ import { i as h } from "./init-BEkECL0v.js";
3
+ const P = (e, d) => {
4
+ h({
5
+ element: e,
6
+ config: d,
7
+ widgetType: "event-game",
8
+ propsBuilder: (t, a) => {
9
+ const s = t.getAttribute("data-layout-template") || a.layoutTemplate || "STANDARD", r = C(t) || a.imagePosition, l = i(t, "data-show-prediction-details") ?? a.showPredictionDetails, u = i(t, "data-show-countdown") ?? a.showCountdown, c = i(t, "data-show-points") ?? a.showPoints, p = t.getAttribute("data-options-layout") || a.optionsLayout, A = t.getAttribute("data-additional-cta-label") || void 0, o = t.getAttribute("data-additional-cta-onclick");
10
+ let n;
11
+ if (o)
12
+ try {
13
+ n = new Function(o);
14
+ } catch (m) {
15
+ console.warn("Invalid additionalCTA onClick function:", m);
16
+ }
17
+ const y = t.getAttribute("data-additional-cta-url") || void 0, g = t.getAttribute("data-additional-cta-target") || void 0, w = t.getAttribute("data-rules-display-type") || void 0, b = t.getAttribute("data-rules-display-url") || void 0, T = t.getAttribute("data-rules-display-target") || void 0;
18
+ return {
19
+ contentType: t.getAttribute("data-content-type") || "",
20
+ contentId: t.getAttribute("data-content-id") || "",
21
+ config: a,
22
+ layoutTemplate: s,
23
+ imagePosition: r,
24
+ showPredictionDetails: l,
25
+ showCountdown: u,
26
+ showPoints: c,
27
+ additionalCTALabel: A,
28
+ additionalCTAOnClick: n,
29
+ additionalCTAUrl: y,
30
+ additionalCTATarget: g,
31
+ rulesDisplayType: w,
32
+ rulesDisplayUrl: b,
33
+ rulesDisplayTarget: T,
34
+ optionsLayout: p
35
+ };
36
+ }
37
+ });
38
+ };
39
+ export {
40
+ P as initializeEventGame
41
+ };
@@ -0,0 +1,20 @@
1
+ import { i as o } from "./init-BEkECL0v.js";
2
+ const d = (r, n) => {
3
+ o({
4
+ element: r,
5
+ config: n,
6
+ widgetType: "either-or-preview",
7
+ propsBuilder: (t, e) => {
8
+ var i;
9
+ return {
10
+ contentType: t.getAttribute("data-content-type") || "",
11
+ contentId: t.getAttribute("data-content-id") || "",
12
+ config: e,
13
+ eitherOrUrl: t.getAttribute("data-either-or-url") || ((i = e.urls) == null ? void 0 : i.eitherOrUrl)
14
+ };
15
+ }
16
+ });
17
+ };
18
+ export {
19
+ d as initializeEitherOrPreview
20
+ };
@@ -0,0 +1,33 @@
1
+ import { i as m } from "./init-BEkECL0v.js";
2
+ const I = (c, g) => {
3
+ m({
4
+ element: c,
5
+ config: g,
6
+ widgetType: "either-or",
7
+ propsBuilder: (t, i) => {
8
+ var d, o, s, r, l;
9
+ const a = t.getAttribute("data-lead-fields"), p = a ? a.split(",") : (d = i.leads) == null ? void 0 : d.defaultFields, u = t.getAttribute("data-signin-cta-label") || void 0, e = t.getAttribute("data-signin-cta-onclick");
10
+ let n;
11
+ if (e)
12
+ try {
13
+ n = new Function(e);
14
+ } catch (A) {
15
+ console.warn("Invalid signInCTA onClick function:", A);
16
+ }
17
+ return {
18
+ contentType: t.getAttribute("data-content-type") || "",
19
+ contentId: t.getAttribute("data-content-id") || "",
20
+ config: i,
21
+ leadFields: p || ((o = i.leads) == null ? void 0 : o.defaultFields) || [],
22
+ leadPosition: t.getAttribute("data-lead-position") || ((s = i.leads) == null ? void 0 : s.position) || "after",
23
+ campaignId: t.getAttribute("data-campaign-id") || ((r = i.leads) == null ? void 0 : r.campaignId) || "",
24
+ campaignName: t.getAttribute("data-campaign-name") || ((l = i.leads) == null ? void 0 : l.campaignName) || "",
25
+ signInCTALabel: u,
26
+ signInCTAOnClick: n
27
+ };
28
+ }
29
+ });
30
+ };
31
+ export {
32
+ I as initializeEitherOr
33
+ };
@@ -0,0 +1,17 @@
1
+ import { i as n } from "./init-BEkECL0v.js";
2
+ const r = (e, i) => {
3
+ n({
4
+ element: e,
5
+ config: i,
6
+ widgetType: "team-next-match-prediction",
7
+ propsBuilder: (t, a) => ({
8
+ contentType: t.getAttribute("data-content-type") || "",
9
+ contentId: t.getAttribute("data-content-id") || "",
10
+ config: a,
11
+ market: t.getAttribute("data-market") || "FT_1X2"
12
+ })
13
+ });
14
+ };
15
+ export {
16
+ r as initializeTeamNextMatchPrediction
17
+ };
@@ -0,0 +1,16 @@
1
+ import { i as o } from "./init-BEkECL0v.js";
2
+ const c = (i, e) => {
3
+ o({
4
+ element: i,
5
+ config: e,
6
+ widgetType: "discussion",
7
+ propsBuilder: (t, n) => ({
8
+ contentType: t.getAttribute("data-content-type") || "",
9
+ contentId: t.getAttribute("data-content-id") || "",
10
+ config: n
11
+ })
12
+ });
13
+ };
14
+ export {
15
+ c as initializeDiscussion
16
+ };