fansunited-widgets-cdn 0.0.94 → 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.
- package/chunks/AlertMessage-DeOcuhSL-LxWgDoSs.js +350 -0
- package/chunks/{ArrowRightAlt-BuGlVWmA-SQpe5AU1.js → ArrowRightAlt-BoUxriBH-B-XCRpGi.js} +7 -7
- package/chunks/{Avatar-D5Ca-p3i-BcCjgzWs.js → Avatar-C7ZJ5apl-XQKbt5fA.js} +62 -62
- package/chunks/{ChanceGameEmbedVariant-Bp3ii_VS-BaREt663.js → ChanceGameEmbedVariant-BkAL2iMZ-CHGA5q7V.js} +59 -58
- package/chunks/{ChanceGameWrapper-pzd_z7_0.js → ChanceGameWrapper-DE3bgA7B.js} +211 -210
- package/chunks/{CheckCircle-BN-6n2s4-R-q5t3Vt.js → CheckCircle-HsAwn-Ao-79r7Jb2Y.js} +851 -1017
- package/chunks/{ChevronRight-DRNoyuJB.js → ChevronRight-3rRHgs5X.js} +2 -2
- package/chunks/{ClassicQuizWrapper-BkaDuSoZ.js → ClassicQuizWrapper-Byj2gma8.js} +86 -85
- package/chunks/{CollectLeadForm-DbuD6K36-C9VwIpKk.js → CollectLeadForm-Dl6nc12_-BR7rq-_U.js} +1041 -1113
- package/chunks/{CollectLeadWrapper-DIfc09XL.js → CollectLeadWrapper-DfEgH0OL.js} +123 -122
- package/chunks/{DiscussionWrapper-C0cmVM1D.js → DiscussionWrapper-Cmb0ksbn.js} +235 -233
- package/chunks/Edit-DUniprks-Cba8KRiW.js +107 -0
- package/chunks/{EitherOrWrapper-iWvloD7l.js → EitherOrWrapper-DPxN_YMT.js} +334 -333
- package/chunks/{EventGameWrapper-BrCGSojQ.js → EventGameWrapper-CqT_ibUJ.js} +237 -233
- package/chunks/{FavoriteBorder-BRZGDJoN-DFtU71Hm.js → FavoriteBorder-UfuHpOXw-BgcFPsKs.js} +2 -2
- package/chunks/FormLabel-CZC8ujMH-CdfGKWbm.js +84 -0
- package/chunks/{Grid-DfBc77M5.js → Grid-CWloMNB6.js} +2 -2
- package/chunks/Input-DM5ufV47-u6SqSAw5.js +284 -0
- package/chunks/LeaderboardWrapper-dbVeHM9_.js +978 -0
- package/chunks/{List-DtHNl_1T.js → List-BYHTye6Z.js} +9 -9
- package/chunks/{MatchPredictionContainer-C8lW41_P.js → MatchPredictionContainer-wTZqLWeH.js} +4 -4
- package/chunks/{MatchQuizWrapper-BKARaPz9.js → MatchQuizWrapper-D1LD0xt1.js} +759 -775
- package/chunks/{Spinner-CsUckp7U-C3GY2Olv.js → ModalDialog-_I4hvDI6-Bmjq9irV.js} +245 -275
- package/chunks/{NotFoundSkeleton-BWhIYfwK-d66PhBeC.js → NotFoundSkeleton-BHPH2RiI-lBoyWcpT.js} +135 -134
- package/chunks/{Notification-BByoWylW-DxJmvZrq.js → Notification-DexZkqyG-Cix-pu5z.js} +106 -109
- package/chunks/{OverlayLeadAfterCollection-BZzelHmI-Dvureobp.js → OverlayLeadAfterCollection-DAb1dSmC-tqKVzj13.js} +46 -45
- package/chunks/{OverlayScoreStateSkeleton-DLuFPA2v-yAMUGNjF.js → OverlayScoreStateSkeleton-BTxWohDI--clQI0xG.js} +14 -14
- package/chunks/{Person-CWp0SazC-SAtHQ-KC.js → Person-IzZDDhmg-BPkaqclf.js} +27 -27
- package/chunks/{PersonalityQuizWrapper-BrR-F-EY.js → PersonalityQuizWrapper-hKCAf3JD.js} +7651 -7239
- package/chunks/{PickOneOfX-ClXzFCpd-D9hv0kR8.js → PickOneOfX-ny-1b2mb-BrNYpQY4.js} +600 -601
- package/chunks/{PickThePairWrapper-BtF14Cxo.js → PickThePairWrapper-CvIW7pHh.js} +96 -95
- package/chunks/{PlayerOfTheMatch-CPjc9gZj.js → PlayerOfTheMatch-BBEcXOux.js} +4 -4
- package/chunks/{PollWrapper-QdsT5pe6.js → PollWrapper-CeDEAw0C.js} +89 -88
- package/chunks/{Portal-BgtHMXTp-DCBFH5Eu.js → Portal-BFeGKTzP-B4Dz_SZ-.js} +7 -7
- package/chunks/{PrizeCard-Daz27Vrl-CxGr97qS.js → PrizeCard-C4Au83Cz-D-C7MMr-.js} +4118 -3740
- package/chunks/Spinner-BHr9A75G-WDTZ2Jcn.js +38 -0
- package/chunks/{SplitLeadAfterCollection-BGHkV2Q2-BVIAEjmb.js → SplitLeadAfterCollection-BVPjEbhN-GMNquFsa.js} +42 -41
- package/chunks/{Tabs-ChEhfzcs-B1xz3p5G.js → Tabs-D5c8Ignm-BmVNPSqU.js} +111 -110
- package/chunks/{TeamNextMatchPrediction-CWtStZF5.js → TeamNextMatchPrediction-CJuuD8G8.js} +2 -2
- package/chunks/{Textarea-DfHLYaSy-BtzH5-8a.js → Textarea-DgvzoEIx-DU1AjtaM.js} +173 -171
- package/chunks/{TimerOutlined-4HfKsPd2-Cag5415h.js → TimerOutlined-CfuXkOOJ-BP1-dIP6.js} +2 -2
- package/chunks/chevron-right-B3IZtaMT-c-V9KhDi.js +99 -0
- package/chunks/chevrons-right-CRIN5sOe-6iGrgOuY.js +25 -0
- package/chunks/{createLucideIcon-DJqw4PBb.js → createLucideIcon-Dt2OaX-z.js} +2 -2
- package/chunks/helpers-LUoF9-Zd-DntqJo88.js +526 -0
- package/chunks/{identifier-ChEcU7R0.js → identifier-D8RLhqqT.js} +18 -18
- package/chunks/{index-P3TaDtrb.js → index-B5TQZ9I_.js} +1 -1
- package/chunks/{index-BOAWaOw7.js → index-BByN2hTR.js} +1 -1
- package/chunks/{index-D0_ZAGV7.js → index-BLhfSUi0.js} +1 -1
- package/chunks/{index-rZZdbh9t.js → index-BMcdgxMo.js} +2 -2
- package/chunks/{index-Db6dxh3m.js → index-BXLm9h-n.js} +2 -2
- package/chunks/{index-BhC47vbA.js → index-C7BgdlK-.js} +1 -1
- package/chunks/{index-B0XVLSad-BGJBZ6fU.js → index-CMahPV5N-CsioLNrD.js} +123 -122
- package/chunks/index-CrRn-zGB.js +30 -0
- package/chunks/{index-CJ9C-uWB.js → index-CtGH3lYd.js} +1 -1
- package/chunks/{index-D_kb5ECY.js → index-DBZ06rMf.js} +1 -1
- package/chunks/{index-B4ym1tTj.js → index-DO-Fr4FW.js} +1 -1
- package/chunks/{index-BYSZ4ija.js → index-DpP2ILtR.js} +1 -1
- package/chunks/{index-DJCZ2ylk.js → index-DskVJ2Se.js} +1 -1
- package/chunks/{index-Bss0Qmv_.js → index-DyD5Mhca.js} +1 -1
- package/chunks/{index-DwUJ_3i7.js → index-Kn-JIiA2.js} +1 -1
- package/chunks/{index-DtwMfEXO.js → index-vKDhcpPI.js} +1 -1
- package/chunks/{init-BiNlS2G7.js → init-BMs6LRPa.js} +1 -1
- package/chunks/{main-DgdGPAG0.js → main-BCOFc-mh.js} +15367 -15093
- package/chunks/useEventCallback-BzPEpIIS-B-9_VXSZ.js +32 -0
- package/chunks/useForwardedInput-C_IbmuBN-TcA2j_zf.js +172 -0
- package/chunks/useImageVariant-BAF6m9zj-CTDSvJx-.js +16 -0
- package/chunks/{useInfoPage-BHdgKdme-CwPZNThs.js → useInfoPage-BHdgKdme-CEjvOWkb.js} +1 -1
- package/fu-widgets.es.js +1 -1
- package/fu-widgets.iife.js +286 -262
- package/manifest.json +70 -60
- package/package.json +1 -1
- package/chunks/AlertMessage-BBIRgWGu-BRXawIQx.js +0 -629
- package/chunks/chevron-right-DvgkvJY1-BKQm7Ea-.js +0 -203
- package/chunks/useImageVariant-PuJUajGW-Ca1KAPRF.js +0 -538
|
@@ -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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as d } from "./main-
|
|
2
|
-
import {
|
|
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
3
|
const x = (r) => ({
|
|
4
4
|
// Main container with background overlay (with ScoreStateWrapper)
|
|
5
5
|
mainContainerWithWrapper: {
|
|
@@ -56,12 +56,12 @@ const x = (r) => ({
|
|
|
56
56
|
backgroundImage: n,
|
|
57
57
|
imageBackgroundGradient: t,
|
|
58
58
|
children: s,
|
|
59
|
-
isWrappedWithScoreStateWrapper:
|
|
59
|
+
isWrappedWithScoreStateWrapper: c = !1
|
|
60
60
|
}) => {
|
|
61
61
|
var e;
|
|
62
|
-
const o = u(),
|
|
63
|
-
spacingScale:
|
|
64
|
-
mdBorderRadius:
|
|
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
65
|
borderSize: l,
|
|
66
66
|
borderColor: m,
|
|
67
67
|
backgroundImage: n,
|
|
@@ -70,7 +70,7 @@ const x = (r) => ({
|
|
|
70
70
|
return /* @__PURE__ */ d.jsx(
|
|
71
71
|
h,
|
|
72
72
|
{
|
|
73
|
-
sx:
|
|
73
|
+
sx: c ? a.mainContainerWithWrapper : a.mainContainer,
|
|
74
74
|
children: s
|
|
75
75
|
}
|
|
76
76
|
);
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as v, j as d } from "./main-
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
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
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
6
|
}), "Person");
|
|
7
|
-
function
|
|
8
|
-
return
|
|
7
|
+
function W(a) {
|
|
8
|
+
return T("MuiAvatar", a);
|
|
9
9
|
}
|
|
10
10
|
w("MuiAvatar", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "fallback", "sizeSm", "sizeMd", "sizeLg", "img", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
11
11
|
w("MuiAvatarGroup", ["root"]);
|
|
12
|
-
const
|
|
12
|
+
const B = /* @__PURE__ */ v.createContext(void 0);
|
|
13
13
|
p("div", {
|
|
14
14
|
name: "JoyAvatarGroup",
|
|
15
15
|
slot: "Root",
|
|
16
|
-
overridesResolver: (
|
|
16
|
+
overridesResolver: (a, r) => r.root
|
|
17
17
|
})(({
|
|
18
|
-
ownerState:
|
|
18
|
+
ownerState: a,
|
|
19
19
|
theme: r
|
|
20
|
-
}) => s({},
|
|
20
|
+
}) => s({}, a.size === "sm" && {
|
|
21
21
|
"--AvatarGroup-gap": "-0.375rem",
|
|
22
22
|
"--Avatar-ringSize": "2px"
|
|
23
|
-
},
|
|
23
|
+
}, a.size === "md" && {
|
|
24
24
|
"--AvatarGroup-gap": "-0.5rem",
|
|
25
25
|
"--Avatar-ringSize": "2px"
|
|
26
|
-
},
|
|
26
|
+
}, a.size === "lg" && {
|
|
27
27
|
"--AvatarGroup-gap": "-0.625rem",
|
|
28
28
|
"--Avatar-ringSize": "4px"
|
|
29
29
|
}, {
|
|
@@ -32,31 +32,31 @@ p("div", {
|
|
|
32
32
|
display: "flex",
|
|
33
33
|
marginInlineStart: "calc(-1 * var(--AvatarGroup-gap))"
|
|
34
34
|
}));
|
|
35
|
-
const
|
|
35
|
+
const L = ["alt", "color", "size", "variant", "src", "srcSet", "children", "component", "slots", "slotProps"], U = (a) => {
|
|
36
36
|
const {
|
|
37
37
|
size: r,
|
|
38
38
|
variant: t,
|
|
39
|
-
color:
|
|
39
|
+
color: e,
|
|
40
40
|
src: i,
|
|
41
41
|
srcSet: n
|
|
42
|
-
} =
|
|
43
|
-
root: ["root", t && `variant${S(t)}`,
|
|
42
|
+
} = a, l = {
|
|
43
|
+
root: ["root", t && `variant${S(t)}`, e && `color${S(e)}`, r && `size${S(r)}`],
|
|
44
44
|
img: [(i || n) && "img"],
|
|
45
45
|
fallback: ["fallback"]
|
|
46
46
|
};
|
|
47
|
-
return
|
|
48
|
-
},
|
|
47
|
+
return O(l, W, {});
|
|
48
|
+
}, V = p("div", {
|
|
49
49
|
name: "JoyAvatar",
|
|
50
50
|
slot: "Root",
|
|
51
|
-
overridesResolver: (
|
|
51
|
+
overridesResolver: (a, r) => r.root
|
|
52
52
|
})(({
|
|
53
|
-
theme:
|
|
53
|
+
theme: a,
|
|
54
54
|
ownerState: r
|
|
55
55
|
}) => {
|
|
56
56
|
var t;
|
|
57
57
|
return s({
|
|
58
|
-
"--Icon-color": r.color !== "neutral" || r.variant === "solid" ? "currentColor" :
|
|
59
|
-
},
|
|
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
60
|
width: "var(--Avatar-size, 2rem)",
|
|
61
61
|
height: "var(--Avatar-size, 2rem)",
|
|
62
62
|
fontSize: "calc(var(--Avatar-size, 2rem) * 0.4375)"
|
|
@@ -83,11 +83,11 @@ const q = ["alt", "color", "size", "variant", "src", "srcSet", "children", "comp
|
|
|
83
83
|
overflow: "hidden",
|
|
84
84
|
borderRadius: "var(--Avatar-radius, 50%)",
|
|
85
85
|
userSelect: "none"
|
|
86
|
-
}, (t =
|
|
87
|
-
}),
|
|
86
|
+
}, (t = a.variants[r.variant]) == null ? void 0 : t[r.color]);
|
|
87
|
+
}), Y = p("img", {
|
|
88
88
|
name: "JoyAvatar",
|
|
89
89
|
slot: "Img",
|
|
90
|
-
overridesResolver: (
|
|
90
|
+
overridesResolver: (a, r) => r.img
|
|
91
91
|
})({
|
|
92
92
|
width: "100%",
|
|
93
93
|
height: "100%",
|
|
@@ -98,23 +98,23 @@ const q = ["alt", "color", "size", "variant", "src", "srcSet", "children", "comp
|
|
|
98
98
|
color: "transparent",
|
|
99
99
|
// Hide the image broken icon, only works on Chrome.
|
|
100
100
|
textIndent: 1e4
|
|
101
|
-
}),
|
|
101
|
+
}), Z = p(H, {
|
|
102
102
|
name: "JoyAvatar",
|
|
103
103
|
slot: "Fallback",
|
|
104
|
-
overridesResolver: (
|
|
104
|
+
overridesResolver: (a, r) => r.fallback
|
|
105
105
|
})({
|
|
106
106
|
width: "64%",
|
|
107
107
|
height: "64%"
|
|
108
108
|
});
|
|
109
|
-
function
|
|
110
|
-
crossOrigin:
|
|
109
|
+
function q({
|
|
110
|
+
crossOrigin: a,
|
|
111
111
|
referrerPolicy: r,
|
|
112
112
|
src: t,
|
|
113
|
-
srcSet:
|
|
113
|
+
srcSet: e
|
|
114
114
|
}) {
|
|
115
115
|
const [i, n] = v.useState(!1);
|
|
116
116
|
return v.useEffect(() => {
|
|
117
|
-
if (!t && !
|
|
117
|
+
if (!t && !e)
|
|
118
118
|
return;
|
|
119
119
|
n(!1);
|
|
120
120
|
let l = !0;
|
|
@@ -123,66 +123,66 @@ function Z({
|
|
|
123
123
|
l && n("loaded");
|
|
124
124
|
}, o.onerror = () => {
|
|
125
125
|
l && n("error");
|
|
126
|
-
}, o.crossOrigin =
|
|
126
|
+
}, o.crossOrigin = a, o.referrerPolicy = r, t && (o.src = t), e && (o.srcset = e), () => {
|
|
127
127
|
l = !1;
|
|
128
128
|
};
|
|
129
|
-
}, [
|
|
129
|
+
}, [a, r, t, e]), i;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
const t =
|
|
133
|
-
props:
|
|
131
|
+
const _ = /* @__PURE__ */ v.forwardRef(function(a, r) {
|
|
132
|
+
const t = $({
|
|
133
|
+
props: a,
|
|
134
134
|
name: "JoyAvatar"
|
|
135
|
-
}),
|
|
135
|
+
}), e = v.useContext(B), {
|
|
136
136
|
alt: i,
|
|
137
137
|
color: n = "neutral",
|
|
138
138
|
size: l = "md",
|
|
139
139
|
variant: o = "soft",
|
|
140
|
-
src:
|
|
141
|
-
srcSet:
|
|
140
|
+
src: g,
|
|
141
|
+
srcSet: u,
|
|
142
142
|
children: h,
|
|
143
143
|
component: y,
|
|
144
|
-
slots:
|
|
145
|
-
slotProps:
|
|
146
|
-
} = t,
|
|
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
147
|
let c = null;
|
|
148
148
|
const m = s({}, t, {
|
|
149
|
-
color:
|
|
150
|
-
size:
|
|
151
|
-
variant:
|
|
152
|
-
grouped: !!
|
|
153
|
-
}), z =
|
|
149
|
+
color: j,
|
|
150
|
+
size: I,
|
|
151
|
+
variant: k,
|
|
152
|
+
grouped: !!e
|
|
153
|
+
}), z = U(m), f = s({}, P, {
|
|
154
154
|
component: y,
|
|
155
|
-
slots:
|
|
156
|
-
slotProps:
|
|
157
|
-
}), [
|
|
155
|
+
slots: R,
|
|
156
|
+
slotProps: b
|
|
157
|
+
}), [F, C] = A("root", {
|
|
158
158
|
ref: r,
|
|
159
159
|
className: z.root,
|
|
160
|
-
elementType:
|
|
160
|
+
elementType: V,
|
|
161
161
|
externalForwardedProps: f,
|
|
162
162
|
ownerState: m
|
|
163
|
-
}), [
|
|
163
|
+
}), [G, x] = A("img", {
|
|
164
164
|
additionalProps: {
|
|
165
165
|
alt: i,
|
|
166
|
-
src:
|
|
167
|
-
srcSet:
|
|
166
|
+
src: g,
|
|
167
|
+
srcSet: u
|
|
168
168
|
},
|
|
169
169
|
className: z.img,
|
|
170
|
-
elementType:
|
|
170
|
+
elementType: Y,
|
|
171
171
|
externalForwardedProps: f,
|
|
172
172
|
ownerState: m
|
|
173
|
-
}), [
|
|
173
|
+
}), [N, J] = A("fallback", {
|
|
174
174
|
className: z.fallback,
|
|
175
|
-
elementType:
|
|
175
|
+
elementType: Z,
|
|
176
176
|
externalForwardedProps: f,
|
|
177
177
|
ownerState: m
|
|
178
|
-
}), M =
|
|
179
|
-
src:
|
|
180
|
-
srcSet:
|
|
178
|
+
}), M = q(s({}, x, {
|
|
179
|
+
src: g,
|
|
180
|
+
srcSet: u
|
|
181
181
|
}));
|
|
182
|
-
return (
|
|
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
183
|
children: c
|
|
184
184
|
}));
|
|
185
185
|
});
|
|
186
186
|
export {
|
|
187
|
-
|
|
187
|
+
_ as a
|
|
188
188
|
};
|