fansunited-widgets-cdn 0.0.86-RC4 → 0.0.86-RC6
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/{Alert-DuMXT9be.js → Alert-B6o66mYo.js} +39 -39
- package/chunks/{CardContent-COgjZl3_.js → CardContent-NCZhfGcZ.js} +16 -16
- package/chunks/{Snackbar-DJz-WddP.js → ChevronRight-1pLZ7T0v.js} +100 -94
- package/chunks/{ClassicQuizWrapper-C7svf4eh.js → ClassicQuizWrapper-n2epPO4k.js} +201 -205
- package/chunks/CollectLeadForm-C_3plJtn-Dr8J3eDw.js +3918 -0
- package/chunks/{CollectLeadWrapper-DACvBsa_.js → CollectLeadWrapper-CCtTZAxL.js} +55 -56
- package/chunks/EitherOrById-ClGwMK0b.js +6820 -0
- package/chunks/EitherOrPreviewWrapper-BYiKyYwi.js +46 -0
- package/chunks/Error-BurPfBJw-DWYn31sK.js +1119 -0
- package/chunks/{EventGameWrapper-DmjaKr3I.js → EventGameWrapper-BphusLTk.js} +208 -219
- package/chunks/{Grid-BbegUe2J.js → Grid-yjqNNhEx.js} +32 -32
- package/chunks/{IconButton-zh1RLwcE.js → IconButton-D7onwgY0.js} +22 -22
- package/chunks/{List-CA3L6bUS.js → List-8Vy9IZiv.js} +26 -29
- package/chunks/{MatchPredictionContainer-CmHKsJ_z.js → MatchPredictionContainer-BGytBwLo.js} +52 -54
- package/chunks/{MatchQuizWrapper-BxHHl4a5.js → MatchQuizWrapper-BGjldBpF.js} +73 -85
- package/chunks/{OverlayLeadAfterCollection-DnqztPJ5-CJnicIes.js → OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js} +104 -105
- package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd-CZ7cct30.js → OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js} +18 -19
- package/chunks/{PersonalityQuizWrapper-B-Rkzvc0.js → PersonalityQuizWrapper-BgLFw5tM.js} +3 -3
- package/chunks/{PlayerOfTheMatch-CzGMT1jr.js → PlayerOfTheMatch-CImBLG3T.js} +1008 -609
- package/chunks/{PollWrapper-Cdl3AbXE.js → PollWrapper-QpIKCCVF.js} +30 -34
- package/chunks/Portal-DegkUXpU-ByGP9zS1.js +19236 -0
- package/chunks/{PreviewQuizById-CPiwewW_.js → PreviewQuizById-Ba6yhxKV.js} +11 -14
- package/chunks/Sheet-U5EnSrgg.js +282 -0
- package/chunks/{Stack-BBjT-MoB.js → Stack-DbDi7kPO.js} +30 -30
- package/chunks/Tabs-leN3Fb8D--YMyy3EM.js +783 -0
- package/chunks/{TeamNextMatchPrediction-BOOGeVEv.js → TeamNextMatchPrediction-9VSQOCcC.js} +2 -2
- package/chunks/Tutorial-CRJLOovs.js +1072 -0
- package/chunks/createLucideIcon-CMWOQsDL.js +381 -0
- package/chunks/{createSvgIcon-cOpRx8M1.js → createSvgIcon-D9D4a1R9.js} +412 -390
- package/chunks/default-quiz-bg-ADjjIfPj.js +126 -0
- package/chunks/{index-CNAE4RYY.js → index-0ADq_9jd.js} +1 -1
- package/chunks/{index-D9kNvflO.js → index-B74jHeYm.js} +2 -2
- package/chunks/{index-Dr-yGqo_.js → index-BfVvJg5R.js} +1 -1
- package/chunks/{index-D3wDyWq_.js → index-BycLbIYY.js} +1 -1
- package/chunks/{index-BKyd0MUt.js → index-C6KAc5B_.js} +1 -1
- package/chunks/{index-BkU2GDR4.js → index-CHV6tlpH.js} +5 -5
- package/chunks/{index-Uv42o9aR.js → index-CILd3yUc.js} +1 -1
- package/chunks/index-CJqcqbHq.js +5 -0
- package/chunks/{index-DrlzgjUf.js → index-CK2RXrJm.js} +1 -1
- package/chunks/{index-DFXrZaoM.js → index-CPTAlr_t.js} +1 -1
- package/chunks/{index-D1SEUyHT.js → index-CiB_Gqim.js} +1 -1
- package/chunks/{index-CNukXTLi.js → index-CvGJXa6l.js} +1 -1
- package/chunks/{index-CpFMxpj1.js → index-CviTG4Nv.js} +1 -1
- package/chunks/index-DUQ2LFod-Cw45tHim.js +4510 -0
- package/chunks/{index-DbZ10tsY.js → index-Da0AXb_O.js} +1 -1
- package/chunks/{index-CiI_vSMR.js → index-DwR4J2nN.js} +1 -1
- package/chunks/{index-CMhbRdLz.js → index-UwW9niUj.js} +1 -1
- package/chunks/index.es-wHqA4PHm.js +11480 -0
- package/chunks/{init-DYY4CJtu.js → init-C-gCorsh.js} +1 -1
- package/chunks/{main-NO9IQFuY.js → main-Bh6iw92_.js} +94 -110
- package/chunks/{Button-DJj0KOh3.js → resolveProps-Bgg0H6c2.js} +471 -313
- package/chunks/{users-C-6eqEb6.js → users-CXdzg3DM.js} +1 -1
- package/fu-widgets.es.js +2 -2
- package/fu-widgets.iife.js +310 -257
- package/manifest.json +56 -72
- package/package.json +1 -1
- package/chunks/AspectRatio-CKWgGwn-.js +0 -125
- package/chunks/Avatar-Cv70g9HX.js +0 -186
- package/chunks/Card-BDn3dk3E.js +0 -129
- package/chunks/ChevronRight-BwGivLSL.js +0 -11
- package/chunks/Chip-BkY7Uww3.js +0 -281
- package/chunks/CollectLeadForm-DtmR2Vuf-DvAoHDnn.js +0 -1560
- package/chunks/DialogActions-CuXgjeCi.js +0 -45
- package/chunks/DialogContent-CyQJ8yz-.js +0 -60
- package/chunks/EitherOrById-B8v0nJmv.js +0 -1496
- package/chunks/EitherOrPreviewWrapper-C9O6TEVe.js +0 -47
- package/chunks/Error-DhQL89pn-DD0O1kEt.js +0 -418
- package/chunks/Link-Cw8ci6QQ.js +0 -228
- package/chunks/ListItemDecorator-DwvO_ty1.js +0 -1882
- package/chunks/ModalDialog-DLPhSR9-.js +0 -619
- package/chunks/NotFoundSkeleton-BYJTzYJR-JURKfNZv.js +0 -2764
- package/chunks/Portal-BWqqFvVm-pvatNKfM.js +0 -12717
- package/chunks/Portal-BsATdUrC.js +0 -41
- package/chunks/Select-Cewujqtd.js +0 -3418
- package/chunks/Sheet-B8wNvQTa.js +0 -167
- package/chunks/Tabs-BP1RMTCA.js +0 -784
- package/chunks/Tutorial-B1LWDD9l.js +0 -427
- package/chunks/createLucideIcon-nPUeaUEe.js +0 -79
- package/chunks/createSvgIcon-DhITitgm.js +0 -119
- package/chunks/default-quiz-bg-CTzaADn7.js +0 -4
- package/chunks/getReactElementRef-66jU_By9.js +0 -25
- package/chunks/index-BPH9IX2Q.js +0 -5
- package/chunks/index.es-BZbN3xaq.js +0 -6162
- package/chunks/resolveProps-BfYZubfk.js +0 -37
- package/chunks/variantColorInheritance-DVZ9CGcB.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as T,
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
import { g as N, d as W, r as E, e as _, f as $, _ as s, h as c, s as u, w as B, j as p, i as v, k as J } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { r as T, d as U, e as k } from "./resolveProps-Bgg0H6c2.js";
|
|
3
|
+
function L(o) {
|
|
4
|
+
return N("MuiAlert", o);
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
const
|
|
6
|
+
W("MuiAlert", ["root", "startDecorator", "endDecorator", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
7
|
+
const M = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"], F = (o) => {
|
|
8
8
|
const {
|
|
9
9
|
variant: r,
|
|
10
10
|
color: e,
|
|
@@ -14,8 +14,8 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
|
|
|
14
14
|
startDecorator: ["startDecorator"],
|
|
15
15
|
endDecorator: ["endDecorator"]
|
|
16
16
|
};
|
|
17
|
-
return J(a,
|
|
18
|
-
},
|
|
17
|
+
return J(a, L, {});
|
|
18
|
+
}, O = u("div", {
|
|
19
19
|
name: "JoyAlert",
|
|
20
20
|
slot: "Root",
|
|
21
21
|
overridesResolver: (o, r) => r.root
|
|
@@ -27,7 +27,7 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
|
|
|
27
27
|
const {
|
|
28
28
|
p: t,
|
|
29
29
|
padding: a,
|
|
30
|
-
borderRadius:
|
|
30
|
+
borderRadius: i
|
|
31
31
|
} = T({
|
|
32
32
|
theme: o,
|
|
33
33
|
ownerState: r
|
|
@@ -68,21 +68,21 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
|
|
|
68
68
|
lg: "md"
|
|
69
69
|
}[r.size]}`], {
|
|
70
70
|
fontWeight: o.vars.fontWeight.md
|
|
71
|
-
}, r.variant === "solid" && r.color && r.invertedColors && U(r.color)(o), r.variant === "soft" && r.color && r.invertedColors &&
|
|
71
|
+
}, r.variant === "solid" && r.color && r.invertedColors && U(r.color)(o), r.variant === "soft" && r.color && r.invertedColors && k(r.color)(o), (e = o.variants[r.variant]) == null ? void 0 : e[r.color]), t !== void 0 && {
|
|
72
72
|
"--Alert-padding": t
|
|
73
73
|
}, a !== void 0 && {
|
|
74
74
|
"--Alert-padding": a
|
|
75
|
-
},
|
|
76
|
-
"--Alert-radius":
|
|
75
|
+
}, i !== void 0 && {
|
|
76
|
+
"--Alert-radius": i
|
|
77
77
|
}];
|
|
78
|
-
}),
|
|
78
|
+
}), V = u("span", {
|
|
79
79
|
name: "JoyAlert",
|
|
80
80
|
slot: "StartDecorator",
|
|
81
81
|
overridesResolver: (o, r) => r.startDecorator
|
|
82
82
|
})({
|
|
83
83
|
display: "inherit",
|
|
84
84
|
flex: "none"
|
|
85
|
-
}),
|
|
85
|
+
}), q = u("span", {
|
|
86
86
|
name: "JoyAlert",
|
|
87
87
|
slot: "EndDecorator",
|
|
88
88
|
overridesResolver: (o, r) => r.endDecorator
|
|
@@ -90,56 +90,56 @@ const k = ["children", "className", "color", "invertedColors", "role", "variant"
|
|
|
90
90
|
display: "inherit",
|
|
91
91
|
flex: "none",
|
|
92
92
|
marginLeft: "auto"
|
|
93
|
-
}), Q = /* @__PURE__ */
|
|
93
|
+
}), Q = /* @__PURE__ */ E.forwardRef(function(r, e) {
|
|
94
94
|
const t = _({
|
|
95
95
|
props: r,
|
|
96
96
|
name: "JoyAlert"
|
|
97
97
|
}), {
|
|
98
98
|
children: a,
|
|
99
|
-
className:
|
|
99
|
+
className: i,
|
|
100
100
|
color: A = "neutral",
|
|
101
|
-
invertedColors:
|
|
102
|
-
role:
|
|
101
|
+
invertedColors: f = !1,
|
|
102
|
+
role: D = "alert",
|
|
103
103
|
variant: x = "soft",
|
|
104
|
-
size:
|
|
104
|
+
size: h = "md",
|
|
105
105
|
startDecorator: m,
|
|
106
106
|
endDecorator: g,
|
|
107
|
-
component:
|
|
108
|
-
slots:
|
|
109
|
-
slotProps:
|
|
110
|
-
} = t, R = $(t,
|
|
107
|
+
component: y,
|
|
108
|
+
slots: C = {},
|
|
109
|
+
slotProps: z = {}
|
|
110
|
+
} = t, R = $(t, M), l = s({}, t, {
|
|
111
111
|
color: A,
|
|
112
|
-
invertedColors:
|
|
112
|
+
invertedColors: f,
|
|
113
113
|
variant: x,
|
|
114
|
-
size:
|
|
115
|
-
}), n = F(
|
|
116
|
-
component:
|
|
117
|
-
slots:
|
|
118
|
-
slotProps:
|
|
114
|
+
size: h
|
|
115
|
+
}), n = F(l), d = s({}, R, {
|
|
116
|
+
component: y,
|
|
117
|
+
slots: C,
|
|
118
|
+
slotProps: z
|
|
119
119
|
}), [P, b] = c("root", {
|
|
120
120
|
ref: e,
|
|
121
|
-
className: B(n.root,
|
|
122
|
-
elementType:
|
|
121
|
+
className: B(n.root, i),
|
|
122
|
+
elementType: O,
|
|
123
123
|
externalForwardedProps: d,
|
|
124
|
-
ownerState:
|
|
124
|
+
ownerState: l,
|
|
125
125
|
additionalProps: {
|
|
126
|
-
role:
|
|
126
|
+
role: D
|
|
127
127
|
}
|
|
128
128
|
}), [I, S] = c("startDecorator", {
|
|
129
129
|
className: n.startDecorator,
|
|
130
|
-
elementType:
|
|
130
|
+
elementType: V,
|
|
131
131
|
externalForwardedProps: d,
|
|
132
|
-
ownerState:
|
|
133
|
-
}), [j,
|
|
132
|
+
ownerState: l
|
|
133
|
+
}), [j, H] = c("endDecorator", {
|
|
134
134
|
className: n.endDecorator,
|
|
135
|
-
elementType:
|
|
135
|
+
elementType: q,
|
|
136
136
|
externalForwardedProps: d,
|
|
137
|
-
ownerState:
|
|
137
|
+
ownerState: l
|
|
138
138
|
});
|
|
139
139
|
return /* @__PURE__ */ p.jsxs(P, s({}, b, {
|
|
140
140
|
children: [m && /* @__PURE__ */ p.jsx(I, s({}, S, {
|
|
141
141
|
children: m
|
|
142
|
-
})), a, g && /* @__PURE__ */ p.jsx(j, s({},
|
|
142
|
+
})), a, g && /* @__PURE__ */ p.jsx(j, s({}, H, {
|
|
143
143
|
children: g
|
|
144
144
|
}))]
|
|
145
145
|
}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as e, g as y, r as P, e as R, f as S, _ as a, h, s as n, w, j as _, k as j } from "./main-Bh6iw92_.js";
|
|
2
2
|
const N = e("MuiCardOverflow", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
3
3
|
function U(o) {
|
|
4
|
-
return
|
|
4
|
+
return y("MuiCardContent", o);
|
|
5
5
|
}
|
|
6
6
|
e("MuiCardContent", ["root"]);
|
|
7
|
-
const b = ["className", "component", "children", "orientation", "slots", "slotProps"],
|
|
7
|
+
const b = ["className", "component", "children", "orientation", "slots", "slotProps"], M = () => j({
|
|
8
8
|
root: ["root"]
|
|
9
|
-
}, U, {}),
|
|
9
|
+
}, U, {}), z = n("div")(({
|
|
10
10
|
ownerState: o
|
|
11
11
|
}) => ({
|
|
12
12
|
display: "flex",
|
|
@@ -20,11 +20,11 @@ const b = ["className", "component", "children", "orientation", "slots", "slotPr
|
|
|
20
20
|
[`.${N.root} > &`]: {
|
|
21
21
|
"--unstable_padding": "calc(var(--Card-padding) * 0.75) 0px"
|
|
22
22
|
}
|
|
23
|
-
})),
|
|
23
|
+
})), D = n(z, {
|
|
24
24
|
name: "JoyCardContent",
|
|
25
25
|
slot: "Root",
|
|
26
26
|
overridesResolver: (o, t) => t.root
|
|
27
|
-
})({}),
|
|
27
|
+
})({}), G = /* @__PURE__ */ P.forwardRef(function(t, l) {
|
|
28
28
|
const s = R({
|
|
29
29
|
props: t,
|
|
30
30
|
name: "JoyCardContent"
|
|
@@ -35,26 +35,26 @@ const b = ["className", "component", "children", "orientation", "slots", "slotPr
|
|
|
35
35
|
orientation: d = "vertical",
|
|
36
36
|
slots: p = {},
|
|
37
37
|
slotProps: C = {}
|
|
38
|
-
} = s, u = S(s, b),
|
|
38
|
+
} = s, u = S(s, b), m = a({}, u, {
|
|
39
39
|
component: r,
|
|
40
40
|
slots: p,
|
|
41
41
|
slotProps: C
|
|
42
|
-
}),
|
|
42
|
+
}), x = a({}, s, {
|
|
43
43
|
component: r,
|
|
44
44
|
orientation: d
|
|
45
|
-
}), v =
|
|
45
|
+
}), v = M(), [g, f] = h("root", {
|
|
46
46
|
ref: l,
|
|
47
|
-
className:
|
|
48
|
-
elementType:
|
|
49
|
-
externalForwardedProps:
|
|
50
|
-
ownerState:
|
|
47
|
+
className: w(v.root, i),
|
|
48
|
+
elementType: D,
|
|
49
|
+
externalForwardedProps: m,
|
|
50
|
+
ownerState: x
|
|
51
51
|
});
|
|
52
|
-
return /* @__PURE__ */ _.jsx(
|
|
52
|
+
return /* @__PURE__ */ _.jsx(g, a({}, f, {
|
|
53
53
|
children: c
|
|
54
54
|
}));
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
G as C,
|
|
58
|
+
z as S,
|
|
59
59
|
N as a
|
|
60
60
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
4
|
-
function
|
|
1
|
+
import { r as c, m as or, j as E, _ as g, v as T, g as ar, d as tr, e as sr, f as cr, h as w, s as A, w as ir, i as x, k as lr, x as X } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { c as dr, r as ur, d as fr, e as vr } from "./resolveProps-Bgg0H6c2.js";
|
|
3
|
+
import { g as mr, u as P, o as H, c as j } from "./createSvgIcon-D9D4a1R9.js";
|
|
4
|
+
function _(n) {
|
|
5
5
|
return n.substring(2).toLowerCase();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function pr(n, r) {
|
|
8
8
|
return r.documentElement.clientWidth < n.clientX || r.documentElement.clientHeight < n.clientY;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function hr(n) {
|
|
11
11
|
const {
|
|
12
12
|
children: r,
|
|
13
13
|
disableReactTree: p = !1,
|
|
14
14
|
mouseEvent: a = "onClick",
|
|
15
15
|
onClickAway: d,
|
|
16
16
|
touchEvent: s = "onTouchEnd"
|
|
17
|
-
} = n, v =
|
|
18
|
-
|
|
17
|
+
} = n, v = c.useRef(!1), u = c.useRef(null), m = c.useRef(!1), b = c.useRef(!1);
|
|
18
|
+
c.useEffect(() => (setTimeout(() => {
|
|
19
19
|
m.current = !0;
|
|
20
20
|
}, 0), () => {
|
|
21
21
|
m.current = !1;
|
|
22
22
|
}), []);
|
|
23
|
-
const h =
|
|
23
|
+
const h = or(mr(r), u), i = P((t) => {
|
|
24
24
|
const l = b.current;
|
|
25
25
|
b.current = !1;
|
|
26
26
|
const k = H(u.current);
|
|
27
|
-
if (!m.current || !u.current || "clientX" in t &&
|
|
27
|
+
if (!m.current || !u.current || "clientX" in t && pr(t, k))
|
|
28
28
|
return;
|
|
29
29
|
if (v.current) {
|
|
30
30
|
v.current = !1;
|
|
@@ -45,35 +45,35 @@ function pr(n) {
|
|
|
45
45
|
}, y = {
|
|
46
46
|
ref: h
|
|
47
47
|
};
|
|
48
|
-
return s !== !1 && (y[s] = S(s)),
|
|
48
|
+
return s !== !1 && (y[s] = S(s)), c.useEffect(() => {
|
|
49
49
|
if (s !== !1) {
|
|
50
|
-
const t =
|
|
50
|
+
const t = _(s), l = H(u.current), k = () => {
|
|
51
51
|
v.current = !0;
|
|
52
52
|
};
|
|
53
|
-
return l.addEventListener(t,
|
|
54
|
-
l.removeEventListener(t,
|
|
53
|
+
return l.addEventListener(t, i), l.addEventListener("touchmove", k), () => {
|
|
54
|
+
l.removeEventListener(t, i), l.removeEventListener("touchmove", k);
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
}, [
|
|
57
|
+
}, [i, s]), a !== !1 && (y[a] = S(a)), c.useEffect(() => {
|
|
58
58
|
if (a !== !1) {
|
|
59
|
-
const t =
|
|
60
|
-
return l.addEventListener(t,
|
|
61
|
-
l.removeEventListener(t,
|
|
59
|
+
const t = _(a), l = H(u.current);
|
|
60
|
+
return l.addEventListener(t, i), () => {
|
|
61
|
+
l.removeEventListener(t, i);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}, [
|
|
65
|
-
children: /* @__PURE__ */
|
|
64
|
+
}, [i, a]), /* @__PURE__ */ E.jsx(c.Fragment, {
|
|
65
|
+
children: /* @__PURE__ */ c.cloneElement(r, y)
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function kr(n = {}) {
|
|
69
69
|
const {
|
|
70
70
|
autoHideDuration: r = null,
|
|
71
71
|
disableWindowBlurListener: p = !1,
|
|
72
72
|
onClose: a,
|
|
73
73
|
open: d,
|
|
74
74
|
resumeHideDuration: s
|
|
75
|
-
} = n, v =
|
|
76
|
-
|
|
75
|
+
} = n, v = dr();
|
|
76
|
+
c.useEffect(() => {
|
|
77
77
|
if (!d)
|
|
78
78
|
return;
|
|
79
79
|
function e(o) {
|
|
@@ -90,14 +90,14 @@ function hr(n = {}) {
|
|
|
90
90
|
u(null, "timeout");
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
|
|
93
|
+
c.useEffect(() => (d && m(r), v.clear), [d, r, m, v]);
|
|
94
94
|
const b = (e) => {
|
|
95
95
|
a == null || a(e, "clickaway");
|
|
96
|
-
}, h = v.clear,
|
|
96
|
+
}, h = v.clear, i = c.useCallback(() => {
|
|
97
97
|
r != null && m(s ?? r * 0.5);
|
|
98
98
|
}, [r, s, m]), S = (e) => (o) => {
|
|
99
99
|
const f = e.onBlur;
|
|
100
|
-
f == null || f(o),
|
|
100
|
+
f == null || f(o), i();
|
|
101
101
|
}, y = (e) => (o) => {
|
|
102
102
|
const f = e.onFocus;
|
|
103
103
|
f == null || f(o), h();
|
|
@@ -106,16 +106,16 @@ function hr(n = {}) {
|
|
|
106
106
|
f == null || f(o), h();
|
|
107
107
|
}, l = (e) => (o) => {
|
|
108
108
|
const f = e.onMouseLeave;
|
|
109
|
-
f == null || f(o),
|
|
109
|
+
f == null || f(o), i();
|
|
110
110
|
};
|
|
111
|
-
return
|
|
111
|
+
return c.useEffect(() => {
|
|
112
112
|
if (!p && d)
|
|
113
|
-
return window.addEventListener("focus",
|
|
114
|
-
window.removeEventListener("focus",
|
|
113
|
+
return window.addEventListener("focus", i), window.addEventListener("blur", h), () => {
|
|
114
|
+
window.removeEventListener("focus", i), window.removeEventListener("blur", h);
|
|
115
115
|
};
|
|
116
|
-
}, [p, d,
|
|
116
|
+
}, [p, d, i, h]), {
|
|
117
117
|
getRootProps: (e = {}) => {
|
|
118
|
-
const o = g({},
|
|
118
|
+
const o = g({}, T(n), T(e));
|
|
119
119
|
return g({
|
|
120
120
|
// ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
121
121
|
// See https://github.com/mui/material-ui/issues/29080
|
|
@@ -130,25 +130,25 @@ function hr(n = {}) {
|
|
|
130
130
|
onClickAway: b
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function br(n) {
|
|
134
|
+
return ar("MuiSnackbar", n);
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
const
|
|
136
|
+
tr("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "endDecorator", "sizeSm", "sizeMd", "sizeLg", "startDecorator", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
137
|
+
const gr = ["anchorOrigin", "animationDuration", "autoHideDuration", "color", "children", "className", "component", "disableWindowBlurListener", "endDecorator", "invertedColors", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "onUnmount", "open", "resumeHideDuration", "size", "slots", "slotProps", "startDecorator", "variant"];
|
|
138
|
+
let W = (n) => n, $, I;
|
|
139
|
+
const Sr = (n) => {
|
|
140
140
|
const {
|
|
141
141
|
variant: r,
|
|
142
142
|
color: p,
|
|
143
143
|
size: a,
|
|
144
144
|
anchorOrigin: d
|
|
145
145
|
} = n, s = {
|
|
146
|
-
root: ["root", a && `size${
|
|
146
|
+
root: ["root", a && `size${x(a)}`, p && `color${x(p)}`, r && `variant${x(r)}`, `anchorOrigin${x(d.vertical)}${x(d.horizontal)}`],
|
|
147
147
|
startDecorator: ["startDecorator"],
|
|
148
148
|
endDecorator: ["endDecorator"]
|
|
149
149
|
};
|
|
150
|
-
return
|
|
151
|
-
},
|
|
150
|
+
return lr(s, br, {});
|
|
151
|
+
}, yr = X($ || ($ = W`
|
|
152
152
|
0% {
|
|
153
153
|
transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%));
|
|
154
154
|
opacity: 0;
|
|
@@ -159,7 +159,7 @@ const gr = (n) => {
|
|
|
159
159
|
100% {
|
|
160
160
|
transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0);
|
|
161
161
|
}
|
|
162
|
-
`)),
|
|
162
|
+
`)), Cr = X(I || (I = W`
|
|
163
163
|
0% {
|
|
164
164
|
transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0);
|
|
165
165
|
opacity: 1;
|
|
@@ -180,8 +180,8 @@ const gr = (n) => {
|
|
|
180
180
|
const {
|
|
181
181
|
p: b,
|
|
182
182
|
padding: h,
|
|
183
|
-
borderRadius:
|
|
184
|
-
} =
|
|
183
|
+
borderRadius: i
|
|
184
|
+
} = ur({
|
|
185
185
|
theme: n,
|
|
186
186
|
ownerState: r
|
|
187
187
|
}, ["p", "padding", "borderRadius"]);
|
|
@@ -229,9 +229,9 @@ const gr = (n) => {
|
|
|
229
229
|
}, ((u = r.anchorOrigin) == null ? void 0 : u.vertical) === "top" && {
|
|
230
230
|
"--_Snackbar-anchorBottom": "-1"
|
|
231
231
|
}, {
|
|
232
|
-
animation: `${
|
|
232
|
+
animation: `${yr} ${r.animationDuration}ms forwards`
|
|
233
233
|
}, !r.open && {
|
|
234
|
-
animationName:
|
|
234
|
+
animationName: Cr
|
|
235
235
|
}, {
|
|
236
236
|
boxShadow: n.vars.shadow.lg,
|
|
237
237
|
backgroundColor: n.vars.palette.background.surface,
|
|
@@ -241,21 +241,21 @@ const gr = (n) => {
|
|
|
241
241
|
sm: "xs",
|
|
242
242
|
md: "sm",
|
|
243
243
|
lg: "md"
|
|
244
|
-
}[r.size]}`], r.variant === "solid" && r.color && r.invertedColors &&
|
|
244
|
+
}[r.size]}`], r.variant === "solid" && r.color && r.invertedColors && fr(r.color)(n), r.variant === "soft" && r.color && r.invertedColors && vr(r.color)(n), (m = n.variants[r.variant]) == null ? void 0 : m[r.color]), b !== void 0 && {
|
|
245
245
|
"--Snackbar-padding": b
|
|
246
246
|
}, h !== void 0 && {
|
|
247
247
|
"--Snackbar-padding": h
|
|
248
|
-
},
|
|
249
|
-
"--Snackbar-radius":
|
|
248
|
+
}, i !== void 0 && {
|
|
249
|
+
"--Snackbar-radius": i
|
|
250
250
|
}];
|
|
251
|
-
}),
|
|
251
|
+
}), xr = A("span", {
|
|
252
252
|
name: "JoySnackbar",
|
|
253
253
|
slot: "StartDecorator",
|
|
254
254
|
overridesResolver: (n, r) => r.startDecorator
|
|
255
255
|
})({
|
|
256
256
|
display: "inherit",
|
|
257
257
|
flex: "none"
|
|
258
|
-
}),
|
|
258
|
+
}), Rr = A("span", {
|
|
259
259
|
name: "JoySnackbar",
|
|
260
260
|
slot: "EndDecorator",
|
|
261
261
|
overridesResolver: (n, r) => r.endDecorator
|
|
@@ -263,22 +263,22 @@ const gr = (n) => {
|
|
|
263
263
|
display: "inherit",
|
|
264
264
|
flex: "none",
|
|
265
265
|
marginLeft: "auto"
|
|
266
|
-
}),
|
|
266
|
+
}), Dr = {
|
|
267
267
|
vertical: "bottom",
|
|
268
268
|
horizontal: "right"
|
|
269
|
-
},
|
|
270
|
-
const a =
|
|
269
|
+
}, wr = /* @__PURE__ */ c.forwardRef(function(r, p) {
|
|
270
|
+
const a = sr({
|
|
271
271
|
props: r,
|
|
272
272
|
name: "JoySnackbar"
|
|
273
273
|
}), {
|
|
274
|
-
anchorOrigin: d =
|
|
274
|
+
anchorOrigin: d = Dr,
|
|
275
275
|
animationDuration: s = 300,
|
|
276
276
|
autoHideDuration: v = null,
|
|
277
277
|
color: u = "neutral",
|
|
278
278
|
children: m,
|
|
279
279
|
className: b,
|
|
280
280
|
component: h,
|
|
281
|
-
disableWindowBlurListener:
|
|
281
|
+
disableWindowBlurListener: i = !1,
|
|
282
282
|
endDecorator: S,
|
|
283
283
|
invertedColors: y = !1,
|
|
284
284
|
onUnmount: t,
|
|
@@ -287,72 +287,78 @@ const gr = (n) => {
|
|
|
287
287
|
slots: e = {},
|
|
288
288
|
slotProps: o,
|
|
289
289
|
startDecorator: f,
|
|
290
|
-
variant:
|
|
291
|
-
} = a,
|
|
292
|
-
D.current = t,
|
|
290
|
+
variant: F = "outlined"
|
|
291
|
+
} = a, N = cr(a, gr), [U, B] = c.useState(!0), [Y, R] = c.useState(!1), D = c.useRef(t);
|
|
292
|
+
D.current = t, c.useEffect(() => {
|
|
293
293
|
if (l)
|
|
294
294
|
R(!1), B(!1);
|
|
295
295
|
else {
|
|
296
296
|
R(!0);
|
|
297
297
|
const O = setTimeout(() => {
|
|
298
|
-
var
|
|
299
|
-
B(!0), R(!1), (
|
|
298
|
+
var M;
|
|
299
|
+
B(!0), R(!1), (M = D.current) == null || M.call(D);
|
|
300
300
|
}, s);
|
|
301
301
|
return () => {
|
|
302
302
|
clearTimeout(O);
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
}, [l, s]);
|
|
306
|
-
const
|
|
306
|
+
const C = g({}, a, {
|
|
307
307
|
anchorOrigin: d,
|
|
308
308
|
autoHideDuration: v,
|
|
309
309
|
color: u,
|
|
310
310
|
animationDuration: s,
|
|
311
|
-
disableWindowBlurListener:
|
|
311
|
+
disableWindowBlurListener: i,
|
|
312
312
|
invertedColors: y,
|
|
313
313
|
size: k,
|
|
314
|
-
variant:
|
|
314
|
+
variant: F
|
|
315
315
|
});
|
|
316
|
-
delete
|
|
317
|
-
const
|
|
318
|
-
getRootProps:
|
|
319
|
-
onClickAway:
|
|
320
|
-
} =
|
|
321
|
-
|
|
322
|
-
},
|
|
316
|
+
delete C.onUnmount;
|
|
317
|
+
const L = Sr(C), {
|
|
318
|
+
getRootProps: J,
|
|
319
|
+
onClickAway: K
|
|
320
|
+
} = kr(C), V = (O) => {
|
|
321
|
+
Y || K(O);
|
|
322
|
+
}, z = g({}, N, {
|
|
323
323
|
component: h,
|
|
324
324
|
slots: e,
|
|
325
325
|
slotProps: o
|
|
326
|
-
}), [
|
|
326
|
+
}), [q, G] = w("root", {
|
|
327
327
|
ref: p,
|
|
328
|
-
className: ir(
|
|
328
|
+
className: ir(L.root, b),
|
|
329
329
|
elementType: Er,
|
|
330
|
-
externalForwardedProps:
|
|
331
|
-
getSlotProps:
|
|
332
|
-
ownerState:
|
|
333
|
-
}), [
|
|
334
|
-
className:
|
|
335
|
-
elementType: Cr,
|
|
336
|
-
externalForwardedProps: L,
|
|
337
|
-
ownerState: E
|
|
338
|
-
}), [Q, rr] = w("endDecorator", {
|
|
339
|
-
className: z.endDecorator,
|
|
330
|
+
externalForwardedProps: z,
|
|
331
|
+
getSlotProps: J,
|
|
332
|
+
ownerState: C
|
|
333
|
+
}), [Q, Z] = w("startDecorator", {
|
|
334
|
+
className: L.startDecorator,
|
|
340
335
|
elementType: xr,
|
|
341
|
-
externalForwardedProps:
|
|
342
|
-
ownerState:
|
|
343
|
-
}), nr =
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
336
|
+
externalForwardedProps: z,
|
|
337
|
+
ownerState: C
|
|
338
|
+
}), [rr, nr] = w("endDecorator", {
|
|
339
|
+
className: L.endDecorator,
|
|
340
|
+
elementType: Rr,
|
|
341
|
+
externalForwardedProps: z,
|
|
342
|
+
ownerState: C
|
|
343
|
+
}), er = e.clickAway || hr;
|
|
344
|
+
return !l && U ? null : /* @__PURE__ */ E.jsx(er, g({
|
|
345
|
+
onClickAway: V
|
|
346
|
+
}, typeof (o == null ? void 0 : o.clickAway) == "function" ? o.clickAway(C) : o == null ? void 0 : o.clickAway, {
|
|
347
|
+
children: /* @__PURE__ */ E.jsxs(q, g({}, G, {
|
|
348
|
+
children: [f && /* @__PURE__ */ E.jsx(Q, g({}, Z, {
|
|
349
349
|
children: f
|
|
350
|
-
})), m, S && /* @__PURE__ */
|
|
350
|
+
})), m, S && /* @__PURE__ */ E.jsx(rr, g({}, nr, {
|
|
351
351
|
children: S
|
|
352
352
|
}))]
|
|
353
353
|
}))
|
|
354
354
|
}));
|
|
355
|
-
})
|
|
355
|
+
}), Hr = j(/* @__PURE__ */ E.jsx("path", {
|
|
356
|
+
d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
357
|
+
}), "ChevronLeft"), Pr = j(/* @__PURE__ */ E.jsx("path", {
|
|
358
|
+
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
359
|
+
}), "ChevronRight");
|
|
356
360
|
export {
|
|
357
|
-
|
|
361
|
+
Hr as C,
|
|
362
|
+
wr as S,
|
|
363
|
+
Pr as a
|
|
358
364
|
};
|