fansunited-widgets-cdn 0.0.93 → 0.0.95

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 (98) hide show
  1. package/chunks/AlertMessage-DeOcuhSL-LxWgDoSs.js +350 -0
  2. package/chunks/ArrowRightAlt-BoUxriBH-B-XCRpGi.js +83 -0
  3. package/chunks/Avatar-C7ZJ5apl-XQKbt5fA.js +188 -0
  4. package/chunks/ChanceGameEmbedVariant-BkAL2iMZ-CHGA5q7V.js +791 -0
  5. package/chunks/{ChanceGameWrapper-DKwuuMiB.js → ChanceGameWrapper-DE3bgA7B.js} +184 -182
  6. package/chunks/{CheckCircle-D-GH16Lb-cavKstqp.js → CheckCircle-HsAwn-Ao-79r7Jb2Y.js} +853 -1019
  7. package/chunks/ChevronRight-3rRHgs5X.js +2850 -0
  8. package/chunks/{ClassicQuizWrapper-A3Sqgi6k.js → ClassicQuizWrapper-Byj2gma8.js} +499 -571
  9. package/chunks/{CollectLeadForm-o9NdYQgu-CUMAxsH0.js → CollectLeadForm-Dl6nc12_-BR7rq-_U.js} +1041 -1113
  10. package/chunks/{CollectLeadWrapper-2GQWSJWc.js → CollectLeadWrapper-DfEgH0OL.js} +117 -116
  11. package/chunks/{DiscussionWrapper-Dql3NbPJ.js → DiscussionWrapper-Cmb0ksbn.js} +265 -265
  12. package/chunks/Edit-DUniprks-Cba8KRiW.js +107 -0
  13. package/chunks/EitherOrWrapper-DPxN_YMT.js +3809 -0
  14. package/chunks/{EventGameWrapper-B1uK5fKz.js → EventGameWrapper-CqT_ibUJ.js} +159 -152
  15. package/chunks/FavoriteBorder-UfuHpOXw-BgcFPsKs.js +11 -0
  16. package/chunks/FormLabel-CZC8ujMH-CdfGKWbm.js +84 -0
  17. package/chunks/{Grid-0xP47fij.js → Grid-CWloMNB6.js} +37 -37
  18. package/chunks/Input-DM5ufV47-u6SqSAw5.js +284 -0
  19. package/chunks/LeaderboardWrapper-dbVeHM9_.js +978 -0
  20. package/chunks/{default-quiz-bg-BimyF6dh.js → List-BYHTye6Z.js} +1268 -114
  21. package/chunks/MatchPredictionContainer-wTZqLWeH.js +889 -0
  22. package/chunks/{MatchQuizWrapper-rroyDwfJ.js → MatchQuizWrapper-D1LD0xt1.js} +502 -514
  23. package/chunks/{Spinner-m59ZJZ35-B9fqKh3x.js → ModalDialog-_I4hvDI6-Bmjq9irV.js} +243 -273
  24. package/chunks/{useInfoPage-v91yL5SS-D3wg-Ua1.js → NotFoundSkeleton-BHPH2RiI-lBoyWcpT.js} +376 -421
  25. package/chunks/Notification-DexZkqyG-Cix-pu5z.js +420 -0
  26. package/chunks/OverlayLeadAfterCollection-DAb1dSmC-tqKVzj13.js +674 -0
  27. package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi-Dz3_EpIk.js → OverlayScoreStateSkeleton-BTxWohDI--clQI0xG.js} +15 -15
  28. package/chunks/Person-IzZDDhmg-BPkaqclf.js +379 -0
  29. package/chunks/{PersonalityQuizWrapper-DBt5vciM.js → PersonalityQuizWrapper-hKCAf3JD.js} +9249 -7963
  30. package/chunks/{PickOneOfX-C2YpLk40-DCZzREKo.js → PickOneOfX-ny-1b2mb-BrNYpQY4.js} +542 -543
  31. package/chunks/{PickThePairWrapper-CHJkMZqd.js → PickThePairWrapper-CvIW7pHh.js} +179 -177
  32. package/chunks/{PlayerOfTheMatch-DPhs4Bhl.js → PlayerOfTheMatch-BBEcXOux.js} +982 -834
  33. package/chunks/{PollWrapper-CZD14CBn.js → PollWrapper-CeDEAw0C.js} +100 -97
  34. package/chunks/{Portal-DWAr8MhA-Bl5WTabM.js → Portal-BFeGKTzP-B4Dz_SZ-.js} +8 -8
  35. package/chunks/{ConstantsProvider-BPJJz9fq-DsiaVKq7.js → PrizeCard-C4Au83Cz-D-C7MMr-.js} +5166 -3915
  36. package/chunks/Spinner-BHr9A75G-WDTZ2Jcn.js +38 -0
  37. package/chunks/SplitLeadAfterCollection-BVPjEbhN-GMNquFsa.js +232 -0
  38. package/chunks/{Tabs-BGihvj9C-DSLBKFty.js → Tabs-D5c8Ignm-BmVNPSqU.js} +121 -120
  39. package/chunks/{TeamNextMatchPrediction-xuJsbTWL.js → TeamNextMatchPrediction-CJuuD8G8.js} +2 -2
  40. package/chunks/{Textarea-Bzlb89Zp-DfRqQEMq.js → Textarea-DgvzoEIx-DU1AjtaM.js} +173 -171
  41. package/chunks/{TimerOutlined-DiX8hCoC-kfaf0JMF.js → TimerOutlined-CfuXkOOJ-BP1-dIP6.js} +2 -2
  42. package/chunks/chevron-right-B3IZtaMT-c-V9KhDi.js +99 -0
  43. package/chunks/chevrons-right-CRIN5sOe-6iGrgOuY.js +25 -0
  44. package/chunks/createLucideIcon-Dt2OaX-z.js +649 -0
  45. package/chunks/helpers-LUoF9-Zd-DntqJo88.js +526 -0
  46. package/chunks/{resolveProps-B2rN5yMQ.js → identifier-D8RLhqqT.js} +902 -681
  47. package/chunks/{index-D2D_wwt7.js → index-B5TQZ9I_.js} +1 -1
  48. package/chunks/{index-DjFC9PD7.js → index-BByN2hTR.js} +1 -1
  49. package/chunks/index-BLhfSUi0.js +56 -0
  50. package/chunks/{index-DzYbZTQr.js → index-BMcdgxMo.js} +2 -2
  51. package/chunks/{index-NKyn2Vh3.js → index-BXLm9h-n.js} +2 -2
  52. package/chunks/{index-CQyqbeOQ.js → index-C7BgdlK-.js} +1 -1
  53. package/chunks/index-CMahPV5N-CsioLNrD.js +1622 -0
  54. package/chunks/index-CrRn-zGB.js +30 -0
  55. package/chunks/{index-BxMMcWpz.js → index-CtGH3lYd.js} +1 -1
  56. package/chunks/{index-DZ_IVYob.js → index-DBZ06rMf.js} +1 -1
  57. package/chunks/{index-D1PLzdhA.js → index-DO-Fr4FW.js} +1 -1
  58. package/chunks/{index-CMkYhq5p.js → index-DpP2ILtR.js} +1 -1
  59. package/chunks/{index-ZxiiuPUs.js → index-DskVJ2Se.js} +1 -1
  60. package/chunks/{index-BxXG99CP.js → index-DyD5Mhca.js} +1 -1
  61. package/chunks/{index-DHSwzFQ6.js → index-Kn-JIiA2.js} +1 -1
  62. package/chunks/{index-CvUTYxRM.js → index-vKDhcpPI.js} +1 -1
  63. package/chunks/{init-w2VjjkQ5.js → init-BMs6LRPa.js} +1 -1
  64. package/chunks/main-BCOFc-mh.js +48704 -0
  65. package/chunks/useEventCallback-BzPEpIIS-B-9_VXSZ.js +32 -0
  66. package/chunks/useForwardedInput-C_IbmuBN-TcA2j_zf.js +172 -0
  67. package/chunks/useImageVariant-BAF6m9zj-CTDSvJx-.js +16 -0
  68. package/chunks/useInfoPage-BHdgKdme-CEjvOWkb.js +50 -0
  69. package/fu-widgets.es.js +1 -1
  70. package/fu-widgets.iife.js +365 -403
  71. package/manifest.json +70 -67
  72. package/package.json +1 -1
  73. package/chunks/Alert-sB8I_Og4.js +0 -149
  74. package/chunks/AlertMessage-C2aBXCrl-DMEpVllO.js +0 -629
  75. package/chunks/CardContent-DFk65wUh.js +0 -61
  76. package/chunks/ChanceGameEmbedVariant-BvIKBhq_-KmMtmCVA.js +0 -2393
  77. package/chunks/ChevronRight-ii0XLARA.js +0 -364
  78. package/chunks/EitherOrById-ByxbKg7o.js +0 -6820
  79. package/chunks/EitherOrPreviewWrapper-BE73_RX8.js +0 -46
  80. package/chunks/IconButton-C3UWcV-V.js +0 -207
  81. package/chunks/List-2CRDMLh7.js +0 -394
  82. package/chunks/MatchPredictionContainer-ydl0xbQF.js +0 -749
  83. package/chunks/Notification-Bwcoljir-BOHYuvRU.js +0 -606
  84. package/chunks/OverlayLeadAfterCollection-B3D5ct0J-D1WEFAq_.js +0 -897
  85. package/chunks/PreviewQuizById-BnWz47H7.js +0 -4884
  86. package/chunks/Sheet-Bco6vL1_.js +0 -282
  87. package/chunks/Stack-C8gdvj29.js +0 -117
  88. package/chunks/Tutorial-sfIBuU-1.js +0 -1071
  89. package/chunks/chevron-right-Dlc9ZKhv-B97MdiP6.js +0 -578
  90. package/chunks/createLucideIcon-DrYLcXBF.js +0 -381
  91. package/chunks/createSvgIcon-BmSnSgDM.js +0 -2512
  92. package/chunks/index-BMPoSoGG.js +0 -20
  93. package/chunks/index-BRz42pj6.js +0 -33
  94. package/chunks/index-CACQ9Mei.js +0 -20
  95. package/chunks/index-DNBKuFoN.js +0 -85
  96. package/chunks/main-Crd2Ko2z.js +0 -51553
  97. package/chunks/useImageVariant-Do8kOVs2-DGrYxG0D.js +0 -538
  98. package/chunks/users-ClQSODcv.js +0 -16
@@ -0,0 +1,350 @@
1
+ import { j as i, r as y } from "./main-BCOFc-mh.js";
2
+ import { Z as W } from "./CheckCircle-HsAwn-Ao-79r7Jb2Y.js";
3
+ import { i as E, b as J, a as G, B as D, f as N, g as F, z as d, h as j, T as $, d as B, N as z, aj as L, w as R, R as M, ak as q, al as w, am as P, an as V, ao as Z, ap as _, a3 as K, C as U, ac as Q, ad as X, aq as Y, ar as ee, as as k, k as re, j as oe } from "./PrizeCard-C4Au83Cz-D-C7MMr-.js";
4
+ const te = L(), ae = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], se = ee(), ne = te("div", {
5
+ name: "MuiStack",
6
+ slot: "Root",
7
+ overridesResolver: (e, r) => r.root
8
+ });
9
+ function ie(e) {
10
+ return q({
11
+ props: e,
12
+ name: "MuiStack",
13
+ defaultTheme: se
14
+ });
15
+ }
16
+ function le(e, r) {
17
+ const o = y.Children.toArray(e).filter(Boolean);
18
+ return o.reduce((t, n, a) => (t.push(n), a < o.length - 1 && t.push(/* @__PURE__ */ y.cloneElement(r, {
19
+ key: `separator-${a}`
20
+ })), t), []);
21
+ }
22
+ const ce = (e) => ({
23
+ row: "Left",
24
+ "row-reverse": "Right",
25
+ column: "Top",
26
+ "column-reverse": "Bottom"
27
+ })[e], de = ({
28
+ ownerState: e,
29
+ theme: r
30
+ }) => {
31
+ let o = d({
32
+ display: "flex",
33
+ flexDirection: "column"
34
+ }, w({
35
+ theme: r
36
+ }, P({
37
+ values: e.direction,
38
+ breakpoints: r.breakpoints.values
39
+ }), (t) => ({
40
+ flexDirection: t
41
+ })));
42
+ if (e.spacing) {
43
+ const t = V(r), n = Object.keys(r.breakpoints.values).reduce((s, l) => ((typeof e.spacing == "object" && e.spacing[l] != null || typeof e.direction == "object" && e.direction[l] != null) && (s[l] = !0), s), {}), a = P({
44
+ values: e.direction,
45
+ base: n
46
+ }), c = P({
47
+ values: e.spacing,
48
+ base: n
49
+ });
50
+ typeof a == "object" && Object.keys(a).forEach((s, l, u) => {
51
+ if (!a[s]) {
52
+ const m = l > 0 ? a[u[l - 1]] : "column";
53
+ a[s] = m;
54
+ }
55
+ }), o = Z(o, w({
56
+ theme: r
57
+ }, c, (s, l) => e.useFlexGap ? {
58
+ gap: k(t, s)
59
+ } : {
60
+ // The useFlexGap={false} implement relies on each child to give up control of the margin.
61
+ // We need to reset the margin to avoid double spacing.
62
+ "& > :not(style):not(style)": {
63
+ margin: 0
64
+ },
65
+ "& > :not(style) ~ :not(style)": {
66
+ [`margin${ce(l ? a[l] : e.direction)}`]: k(t, s)
67
+ }
68
+ }));
69
+ }
70
+ return o = _(r.breakpoints, o), o;
71
+ };
72
+ function me(e = {}) {
73
+ const {
74
+ // This will allow adding custom styled fn (for example for custom sx style function)
75
+ createStyledComponent: r = ne,
76
+ useThemeProps: o = ie,
77
+ componentName: t = "MuiStack"
78
+ } = e, n = () => M({
79
+ root: ["root"]
80
+ }, (s) => Y(t, s), {}), a = r(de);
81
+ return /* @__PURE__ */ y.forwardRef(function(s, l) {
82
+ const u = o(s), m = K(u), {
83
+ component: f = "div",
84
+ direction: S = "column",
85
+ spacing: A = 0,
86
+ divider: g,
87
+ children: x,
88
+ className: p,
89
+ useFlexGap: v = !1
90
+ } = m, h = F(m, ae), b = {
91
+ direction: S,
92
+ spacing: A,
93
+ useFlexGap: v
94
+ }, C = n();
95
+ return /* @__PURE__ */ i.jsx(a, d({
96
+ as: f,
97
+ ownerState: b,
98
+ ref: l,
99
+ className: $(C.root, p)
100
+ }, h, {
101
+ children: g ? le(x, g) : x
102
+ }));
103
+ });
104
+ }
105
+ function pe(e) {
106
+ return oe("MuiAlert", e);
107
+ }
108
+ re("MuiAlert", ["root", "startDecorator", "endDecorator", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
109
+ const ue = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"], ve = (e) => {
110
+ const {
111
+ variant: r,
112
+ color: o,
113
+ size: t
114
+ } = e, n = {
115
+ root: ["root", t && `size${R(t)}`, o && `color${R(o)}`, r && `variant${R(r)}`],
116
+ startDecorator: ["startDecorator"],
117
+ endDecorator: ["endDecorator"]
118
+ };
119
+ return M(n, pe, {});
120
+ }, he = z("div", {
121
+ name: "JoyAlert",
122
+ slot: "Root",
123
+ overridesResolver: (e, r) => r.root
124
+ })(({
125
+ theme: e,
126
+ ownerState: r
127
+ }) => {
128
+ var o;
129
+ const {
130
+ p: t,
131
+ padding: n,
132
+ borderRadius: a
133
+ } = U({
134
+ theme: e,
135
+ ownerState: r
136
+ }, ["p", "padding", "borderRadius"]);
137
+ return [d({
138
+ "--Alert-radius": e.vars.radius.sm,
139
+ "--Alert-decoratorChildRadius": "max((var(--Alert-radius) - var(--variant-borderWidth, 0px)) - var(--Alert-padding), min(var(--Alert-padding) + var(--variant-borderWidth, 0px), var(--Alert-radius) / 2))",
140
+ "--Button-minHeight": "var(--Alert-decoratorChildHeight)",
141
+ "--IconButton-size": "var(--Alert-decoratorChildHeight)",
142
+ "--Button-radius": "var(--Alert-decoratorChildRadius)",
143
+ "--IconButton-radius": "var(--Alert-decoratorChildRadius)",
144
+ "--Icon-color": "currentColor"
145
+ }, r.size === "sm" && {
146
+ "--Alert-padding": "0.5rem",
147
+ "--Alert-decoratorChildHeight": "1.5rem",
148
+ "--Icon-fontSize": e.vars.fontSize.xl,
149
+ gap: "0.5rem"
150
+ }, r.size === "md" && {
151
+ "--Alert-padding": "0.75rem",
152
+ "--Alert-decoratorChildHeight": "2rem",
153
+ "--Icon-fontSize": e.vars.fontSize.xl,
154
+ gap: "0.625rem"
155
+ }, r.size === "lg" && {
156
+ "--Alert-padding": "1rem",
157
+ "--Alert-decoratorChildHeight": "2.375rem",
158
+ "--Icon-fontSize": e.vars.fontSize.xl2,
159
+ gap: "0.875rem"
160
+ }, {
161
+ backgroundColor: e.vars.palette.background.surface,
162
+ display: "flex",
163
+ position: "relative",
164
+ alignItems: "center",
165
+ padding: "var(--Alert-padding)",
166
+ borderRadius: "var(--Alert-radius)"
167
+ }, e.typography[`body-${{
168
+ sm: "xs",
169
+ md: "sm",
170
+ lg: "md"
171
+ }[r.size]}`], {
172
+ fontWeight: e.vars.fontWeight.md
173
+ }, r.variant === "solid" && r.color && r.invertedColors && Q(r.color)(e), r.variant === "soft" && r.color && r.invertedColors && X(r.color)(e), (o = e.variants[r.variant]) == null ? void 0 : o[r.color]), t !== void 0 && {
174
+ "--Alert-padding": t
175
+ }, n !== void 0 && {
176
+ "--Alert-padding": n
177
+ }, a !== void 0 && {
178
+ "--Alert-radius": a
179
+ }];
180
+ }), fe = z("span", {
181
+ name: "JoyAlert",
182
+ slot: "StartDecorator",
183
+ overridesResolver: (e, r) => r.startDecorator
184
+ })({
185
+ display: "inherit",
186
+ flex: "none"
187
+ }), ge = z("span", {
188
+ name: "JoyAlert",
189
+ slot: "EndDecorator",
190
+ overridesResolver: (e, r) => r.endDecorator
191
+ })({
192
+ display: "inherit",
193
+ flex: "none",
194
+ marginLeft: "auto"
195
+ }), xe = /* @__PURE__ */ y.forwardRef(function(e, r) {
196
+ const o = N({
197
+ props: e,
198
+ name: "JoyAlert"
199
+ }), {
200
+ children: t,
201
+ className: n,
202
+ color: a = "neutral",
203
+ invertedColors: c = !1,
204
+ role: s = "alert",
205
+ variant: l = "soft",
206
+ size: u = "md",
207
+ startDecorator: m,
208
+ endDecorator: f,
209
+ component: S,
210
+ slots: A = {},
211
+ slotProps: g = {}
212
+ } = o, x = F(o, ue), p = d({}, o, {
213
+ color: a,
214
+ invertedColors: c,
215
+ variant: l,
216
+ size: u
217
+ }), v = ve(p), h = d({}, x, {
218
+ component: S,
219
+ slots: A,
220
+ slotProps: g
221
+ }), [b, C] = j("root", {
222
+ ref: r,
223
+ className: $(v.root, n),
224
+ elementType: he,
225
+ externalForwardedProps: h,
226
+ ownerState: p,
227
+ additionalProps: {
228
+ role: s
229
+ }
230
+ }), [I, T] = j("startDecorator", {
231
+ className: v.startDecorator,
232
+ elementType: fe,
233
+ externalForwardedProps: h,
234
+ ownerState: p
235
+ }), [H, O] = j("endDecorator", {
236
+ className: v.endDecorator,
237
+ elementType: ge,
238
+ externalForwardedProps: h,
239
+ ownerState: p
240
+ });
241
+ return /* @__PURE__ */ i.jsxs(b, d({}, C, {
242
+ children: [m && /* @__PURE__ */ i.jsx(I, d({}, T, {
243
+ children: m
244
+ })), t, f && /* @__PURE__ */ i.jsx(H, d({}, O, {
245
+ children: f
246
+ }))]
247
+ }));
248
+ }), ye = me({
249
+ createStyledComponent: z("div", {
250
+ name: "JoyStack",
251
+ slot: "Root",
252
+ overridesResolver: (e, r) => r.root
253
+ }),
254
+ useThemeProps: (e) => N({
255
+ props: e,
256
+ name: "JoyStack"
257
+ })
258
+ }), ze = B(/* @__PURE__ */ i.jsx("path", {
259
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"
260
+ }), "Info"), Se = B(/* @__PURE__ */ i.jsx("path", {
261
+ d: "M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"
262
+ }), "Warning"), Ae = (e, r) => {
263
+ switch (e) {
264
+ case "success":
265
+ return /* @__PURE__ */ i.jsx(W, {});
266
+ case "error":
267
+ return /* @__PURE__ */ i.jsx(Se, { sx: { color: r } });
268
+ case "info":
269
+ case "neutral":
270
+ return /* @__PURE__ */ i.jsx(ze, {});
271
+ }
272
+ }, be = (e) => {
273
+ switch (e) {
274
+ case "success":
275
+ return "success";
276
+ case "error":
277
+ return "danger";
278
+ case "info":
279
+ return "primary";
280
+ case "neutral":
281
+ return "neutral";
282
+ }
283
+ }, Re = ({
284
+ variant: e,
285
+ title: r,
286
+ message: o,
287
+ description: t
288
+ }) => {
289
+ const n = E(), a = J(), c = G().secondary, s = be(e);
290
+ return /* @__PURE__ */ i.jsx(
291
+ xe,
292
+ {
293
+ variant: "soft",
294
+ color: s,
295
+ startDecorator: Ae(
296
+ e,
297
+ n.colorSchemes.light.palette.danger.plainColor
298
+ ),
299
+ sx: {
300
+ gap: 1,
301
+ borderRadius: a.sm,
302
+ fontSize: "0.875em",
303
+ "--Icon-fontSize": "1.25em"
304
+ },
305
+ children: /* @__PURE__ */ i.jsxs(
306
+ ye,
307
+ {
308
+ sx: {
309
+ fontSize: "1.5em"
310
+ },
311
+ children: [
312
+ r && /* @__PURE__ */ i.jsx(
313
+ D,
314
+ {
315
+ level: "title-md",
316
+ color: s,
317
+ fontWeight: "bold",
318
+ sx: { fontFamily: c, fontSize: "0.875em" },
319
+ children: r
320
+ }
321
+ ),
322
+ o && /* @__PURE__ */ i.jsx(
323
+ D,
324
+ {
325
+ level: "body-sm",
326
+ sx: { fontFamily: c, fontSize: "0.675em" },
327
+ children: o
328
+ }
329
+ ),
330
+ t && /* @__PURE__ */ i.jsx(
331
+ D,
332
+ {
333
+ level: "body-xs",
334
+ sx: { fontFamily: c, fontSize: "0.6em" },
335
+ children: t
336
+ }
337
+ )
338
+ ]
339
+ }
340
+ )
341
+ }
342
+ );
343
+ };
344
+ export {
345
+ xe as B,
346
+ ye as M,
347
+ ze as O,
348
+ Re as P,
349
+ Se as x
350
+ };
@@ -0,0 +1,83 @@
1
+ import { j as d } from "./main-BCOFc-mh.js";
2
+ import { i as u, L as p, s as h, d as k } from "./PrizeCard-C4Au83Cz-D-C7MMr-.js";
3
+ const x = (r) => ({
4
+ // Main container with background overlay (with ScoreStateWrapper)
5
+ mainContainerWithWrapper: {
6
+ boxShadow: "md",
7
+ border: `${r.borderSize} solid ${r.borderColor}`,
8
+ overflow: "hidden",
9
+ backgroundImage: r.backgroundImage,
10
+ backgroundSize: "cover",
11
+ backgroundPosition: "center",
12
+ position: "relative",
13
+ borderRadius: r.mdBorderRadius,
14
+ minHeight: "250px",
15
+ "&::before": {
16
+ content: '""',
17
+ position: "absolute",
18
+ top: 0,
19
+ left: 0,
20
+ right: 0,
21
+ bottom: 0,
22
+ borderRadius: "inherit",
23
+ zIndex: 0,
24
+ background: r.imageBackgroundGradient
25
+ }
26
+ },
27
+ // Main container with background overlay (without ScoreStateWrapper)
28
+ mainContainer: {
29
+ display: "flex",
30
+ flexDirection: "column",
31
+ gap: "40px",
32
+ p: r.spacingScale.xl,
33
+ boxShadow: "md",
34
+ border: `${r.borderSize} solid ${r.borderColor}`,
35
+ overflow: "hidden",
36
+ backgroundImage: r.backgroundImage,
37
+ backgroundPosition: "center",
38
+ backgroundSize: "cover",
39
+ position: "relative",
40
+ borderRadius: r.mdBorderRadius,
41
+ minHeight: "250px",
42
+ "&::before": {
43
+ content: '""',
44
+ position: "absolute",
45
+ top: 0,
46
+ left: 0,
47
+ right: 0,
48
+ bottom: 0,
49
+ borderRadius: "inherit",
50
+ zIndex: 0,
51
+ background: r.imageBackgroundGradient
52
+ }
53
+ }
54
+ }), v = ({
55
+ entity: r,
56
+ backgroundImage: n,
57
+ imageBackgroundGradient: t,
58
+ children: s,
59
+ isWrappedWithScoreStateWrapper: c = !1
60
+ }) => {
61
+ var e;
62
+ const o = u(), g = p(), i = ((e = r.branding) == null ? void 0 : e.colors) || null, b = o.customRadius.light.md, l = o.border.light.size, m = (i == null ? void 0 : i.borderColor) || o.colorSchemes.dark.secondaryContainer, a = x({
63
+ spacingScale: g,
64
+ mdBorderRadius: b,
65
+ borderSize: l,
66
+ borderColor: m,
67
+ backgroundImage: n,
68
+ imageBackgroundGradient: t
69
+ });
70
+ return /* @__PURE__ */ d.jsx(
71
+ h,
72
+ {
73
+ sx: c ? a.mainContainerWithWrapper : a.mainContainer,
74
+ children: s
75
+ }
76
+ );
77
+ }, R = k(/* @__PURE__ */ d.jsx("path", {
78
+ d: "M16.01 11H4v2h12.01v3L20 12l-3.99-4z"
79
+ }), "ArrowRightAlt");
80
+ export {
81
+ v as R,
82
+ R as z
83
+ };
@@ -0,0 +1,188 @@
1
+ import { f as $, g as E, z as s, h as A, w as S, R as O, N as p, j as T, k as w } from "./PrizeCard-C4Au83Cz-D-C7MMr-.js";
2
+ import { r as v, j as d } from "./main-BCOFc-mh.js";
3
+ import { R as D } from "./CheckCircle-HsAwn-Ao-79r7Jb2Y.js";
4
+ const H = D(/* @__PURE__ */ d.jsx("path", {
5
+ d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
6
+ }), "Person");
7
+ function W(a) {
8
+ return T("MuiAvatar", a);
9
+ }
10
+ w("MuiAvatar", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "fallback", "sizeSm", "sizeMd", "sizeLg", "img", "variantOutlined", "variantSoft", "variantSolid"]);
11
+ w("MuiAvatarGroup", ["root"]);
12
+ const B = /* @__PURE__ */ v.createContext(void 0);
13
+ p("div", {
14
+ name: "JoyAvatarGroup",
15
+ slot: "Root",
16
+ overridesResolver: (a, r) => r.root
17
+ })(({
18
+ ownerState: a,
19
+ theme: r
20
+ }) => s({}, a.size === "sm" && {
21
+ "--AvatarGroup-gap": "-0.375rem",
22
+ "--Avatar-ringSize": "2px"
23
+ }, a.size === "md" && {
24
+ "--AvatarGroup-gap": "-0.5rem",
25
+ "--Avatar-ringSize": "2px"
26
+ }, a.size === "lg" && {
27
+ "--AvatarGroup-gap": "-0.625rem",
28
+ "--Avatar-ringSize": "4px"
29
+ }, {
30
+ "--Avatar-ring": `0 0 0 var(--Avatar-ringSize) var(--Avatar-ringColor, ${r.vars.palette.background.surface})`,
31
+ "--Avatar-marginInlineStart": "var(--AvatarGroup-gap)",
32
+ display: "flex",
33
+ marginInlineStart: "calc(-1 * var(--AvatarGroup-gap))"
34
+ }));
35
+ const L = ["alt", "color", "size", "variant", "src", "srcSet", "children", "component", "slots", "slotProps"], U = (a) => {
36
+ const {
37
+ size: r,
38
+ variant: t,
39
+ color: e,
40
+ src: i,
41
+ srcSet: n
42
+ } = a, l = {
43
+ root: ["root", t && `variant${S(t)}`, e && `color${S(e)}`, r && `size${S(r)}`],
44
+ img: [(i || n) && "img"],
45
+ fallback: ["fallback"]
46
+ };
47
+ return O(l, W, {});
48
+ }, V = p("div", {
49
+ name: "JoyAvatar",
50
+ slot: "Root",
51
+ overridesResolver: (a, r) => r.root
52
+ })(({
53
+ theme: a,
54
+ ownerState: r
55
+ }) => {
56
+ var t;
57
+ return s({
58
+ "--Icon-color": r.color !== "neutral" || r.variant === "solid" ? "currentColor" : a.vars.palette.text.icon
59
+ }, a.typography[`title-${r.size}`], r.size === "sm" && {
60
+ width: "var(--Avatar-size, 2rem)",
61
+ height: "var(--Avatar-size, 2rem)",
62
+ fontSize: "calc(var(--Avatar-size, 2rem) * 0.4375)"
63
+ // default as 14px
64
+ }, r.size === "md" && {
65
+ width: "var(--Avatar-size, 2.5rem)",
66
+ height: "var(--Avatar-size, 2.5rem)",
67
+ fontSize: "calc(var(--Avatar-size, 2.5rem) * 0.4)"
68
+ // default as 16px
69
+ }, r.size === "lg" && {
70
+ width: "var(--Avatar-size, 3rem)",
71
+ height: "var(--Avatar-size, 3rem)",
72
+ fontSize: "calc(var(--Avatar-size, 3rem) * 0.375)"
73
+ // default as 18px
74
+ }, {
75
+ marginInlineStart: "var(--Avatar-marginInlineStart)",
76
+ boxShadow: "var(--Avatar-ring)",
77
+ position: "relative",
78
+ display: "flex",
79
+ alignItems: "center",
80
+ justifyContent: "center",
81
+ flexShrink: 0,
82
+ lineHeight: 1,
83
+ overflow: "hidden",
84
+ borderRadius: "var(--Avatar-radius, 50%)",
85
+ userSelect: "none"
86
+ }, (t = a.variants[r.variant]) == null ? void 0 : t[r.color]);
87
+ }), Y = p("img", {
88
+ name: "JoyAvatar",
89
+ slot: "Img",
90
+ overridesResolver: (a, r) => r.img
91
+ })({
92
+ width: "100%",
93
+ height: "100%",
94
+ textAlign: "center",
95
+ // Handle non-square image. The property isn't supported by IE11.
96
+ objectFit: "cover",
97
+ // Hide alt text.
98
+ color: "transparent",
99
+ // Hide the image broken icon, only works on Chrome.
100
+ textIndent: 1e4
101
+ }), Z = p(H, {
102
+ name: "JoyAvatar",
103
+ slot: "Fallback",
104
+ overridesResolver: (a, r) => r.fallback
105
+ })({
106
+ width: "64%",
107
+ height: "64%"
108
+ });
109
+ function q({
110
+ crossOrigin: a,
111
+ referrerPolicy: r,
112
+ src: t,
113
+ srcSet: e
114
+ }) {
115
+ const [i, n] = v.useState(!1);
116
+ return v.useEffect(() => {
117
+ if (!t && !e)
118
+ return;
119
+ n(!1);
120
+ let l = !0;
121
+ const o = new Image();
122
+ return o.onload = () => {
123
+ l && n("loaded");
124
+ }, o.onerror = () => {
125
+ l && n("error");
126
+ }, o.crossOrigin = a, o.referrerPolicy = r, t && (o.src = t), e && (o.srcset = e), () => {
127
+ l = !1;
128
+ };
129
+ }, [a, r, t, e]), i;
130
+ }
131
+ const _ = /* @__PURE__ */ v.forwardRef(function(a, r) {
132
+ const t = $({
133
+ props: a,
134
+ name: "JoyAvatar"
135
+ }), e = v.useContext(B), {
136
+ alt: i,
137
+ color: n = "neutral",
138
+ size: l = "md",
139
+ variant: o = "soft",
140
+ src: g,
141
+ srcSet: u,
142
+ children: h,
143
+ component: y,
144
+ slots: R = {},
145
+ slotProps: b = {}
146
+ } = t, P = E(t, L), k = a.variant || (e == null ? void 0 : e.variant) || o, j = a.color || (e == null ? void 0 : e.color) || n, I = a.size || (e == null ? void 0 : e.size) || l;
147
+ let c = null;
148
+ const m = s({}, t, {
149
+ color: j,
150
+ size: I,
151
+ variant: k,
152
+ grouped: !!e
153
+ }), z = U(m), f = s({}, P, {
154
+ component: y,
155
+ slots: R,
156
+ slotProps: b
157
+ }), [F, C] = A("root", {
158
+ ref: r,
159
+ className: z.root,
160
+ elementType: V,
161
+ externalForwardedProps: f,
162
+ ownerState: m
163
+ }), [G, x] = A("img", {
164
+ additionalProps: {
165
+ alt: i,
166
+ src: g,
167
+ srcSet: u
168
+ },
169
+ className: z.img,
170
+ elementType: Y,
171
+ externalForwardedProps: f,
172
+ ownerState: m
173
+ }), [N, J] = A("fallback", {
174
+ className: z.fallback,
175
+ elementType: Z,
176
+ externalForwardedProps: f,
177
+ ownerState: m
178
+ }), M = q(s({}, x, {
179
+ src: g,
180
+ srcSet: u
181
+ }));
182
+ return (g || u) && M !== "error" ? c = /* @__PURE__ */ d.jsx(G, s({}, x)) : h != null ? c = h : i ? c = i[0] : c = /* @__PURE__ */ d.jsx(N, s({}, J)), /* @__PURE__ */ d.jsx(F, s({}, C, {
183
+ children: c
184
+ }));
185
+ });
186
+ export {
187
+ _ as a
188
+ };