fansunited-widgets-cdn 0.0.91 → 0.0.93
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-8lqKEVUU.js → Alert-sB8I_Og4.js} +2 -2
- package/chunks/AlertMessage-C2aBXCrl-DMEpVllO.js +629 -0
- package/chunks/{CardContent-ChEVRtiz.js → CardContent-DFk65wUh.js} +2 -2
- package/chunks/{index-CSUjooCU-BGD1fqOh.js → ChanceGameEmbedVariant-BvIKBhq_-KmMtmCVA.js} +625 -602
- package/chunks/ChanceGameWrapper-DKwuuMiB.js +1646 -0
- package/chunks/CheckCircle-D-GH16Lb-cavKstqp.js +2149 -0
- package/chunks/{ChevronRight-DkGiMeII.js → ChevronRight-ii0XLARA.js} +3 -3
- package/chunks/{ClassicQuizWrapper-BDIYmxw1.js → ClassicQuizWrapper-A3Sqgi6k.js} +2071 -2001
- package/chunks/CollectLeadForm-o9NdYQgu-CUMAxsH0.js +3538 -0
- package/chunks/CollectLeadWrapper-2GQWSJWc.js +1294 -0
- package/chunks/{useImageVariant-BdUnxZaq-lQ9TEFqM.js → ConstantsProvider-BPJJz9fq-DsiaVKq7.js} +5983 -8287
- package/chunks/DiscussionWrapper-Dql3NbPJ.js +2548 -0
- package/chunks/{EitherOrById-B5wUfCZO.js → EitherOrById-ByxbKg7o.js} +12 -12
- package/chunks/{EitherOrPreviewWrapper-DtwCoibO.js → EitherOrPreviewWrapper-BE73_RX8.js} +3 -3
- package/chunks/EventGameWrapper-B1uK5fKz.js +7985 -0
- package/chunks/{Grid-DwbkagHO.js → Grid-0xP47fij.js} +22 -22
- package/chunks/{IconButton-BOJeoV7F.js → IconButton-C3UWcV-V.js} +2 -2
- package/chunks/{List-CGpT30XV.js → List-2CRDMLh7.js} +15 -15
- package/chunks/{MatchPredictionContainer-uqOBhp4q.js → MatchPredictionContainer-ydl0xbQF.js} +7 -7
- package/chunks/MatchQuizWrapper-rroyDwfJ.js +11027 -0
- package/chunks/Notification-Bwcoljir-BOHYuvRU.js +606 -0
- package/chunks/{OverlayLeadAfterCollection-BqkJ-VN8-B2p_z8ZF.js → OverlayLeadAfterCollection-B3D5ct0J-D1WEFAq_.js} +90 -89
- package/chunks/{OverlayScoreStateSkeleton-BvqVojVz-DjDf0o76.js → OverlayScoreStateSkeleton-xvq9lQEi-Dz3_EpIk.js} +22 -21
- package/chunks/{PersonalityQuizWrapper-DYn0CIUt.js → PersonalityQuizWrapper-DBt5vciM.js} +14614 -9315
- package/chunks/PickOneOfX-C2YpLk40-DCZzREKo.js +4205 -0
- package/chunks/PickThePairWrapper-CHJkMZqd.js +2113 -0
- package/chunks/{PlayerOfTheMatch-D5-YSpD6.js → PlayerOfTheMatch-DPhs4Bhl.js} +9 -9
- package/chunks/PollWrapper-CZD14CBn.js +4281 -0
- package/chunks/{Portal-BQv7zRvW-AvQn4yTp.js → Portal-DWAr8MhA-Bl5WTabM.js} +16 -16
- package/chunks/{PreviewQuizById-Dbe63Mxq.js → PreviewQuizById-BnWz47H7.js} +7 -7
- package/chunks/{Sheet-h-2MyzuS.js → Sheet-Bco6vL1_.js} +4 -4
- package/chunks/Spinner-m59ZJZ35-B9fqKh3x.js +712 -0
- package/chunks/{Stack-BmHKXFU1.js → Stack-C8gdvj29.js} +13 -13
- package/chunks/{Tabs-DUsNQEzc-6O7pgiYf.js → Tabs-BGihvj9C-DSLBKFty.js} +114 -113
- package/chunks/{TeamNextMatchPrediction-Cc2Fe_lH.js → TeamNextMatchPrediction-xuJsbTWL.js} +2 -2
- package/chunks/Textarea-Bzlb89Zp-DfRqQEMq.js +431 -0
- package/chunks/{TimerOutlined-30DcGOG8-DLvZ3hLg.js → TimerOutlined-DiX8hCoC-kfaf0JMF.js} +2 -2
- package/chunks/{Tutorial-BXWSnAg0.js → Tutorial-sfIBuU-1.js} +7 -7
- package/chunks/chevron-right-Dlc9ZKhv-B97MdiP6.js +578 -0
- package/chunks/{createLucideIcon-ClEqgv62.js → createLucideIcon-DrYLcXBF.js} +5 -5
- package/chunks/{createSvgIcon-CT9aSry_.js → createSvgIcon-BmSnSgDM.js} +22 -22
- package/chunks/{default-quiz-bg-Vades5AM.js → default-quiz-bg-BimyF6dh.js} +2 -2
- package/chunks/{index-BcfMY504.js → index-BMPoSoGG.js} +1 -1
- package/chunks/{index-mkMYz66s.js → index-BRz42pj6.js} +1 -1
- package/chunks/{index-B2P1Qk9k.js → index-BxMMcWpz.js} +1 -1
- package/chunks/index-BxXG99CP.js +39 -0
- package/chunks/{index-Bcj_0-Tr.js → index-CACQ9Mei.js} +1 -1
- package/chunks/{index-BUnWTSTz.js → index-CMkYhq5p.js} +1 -1
- package/chunks/{index-zZQAck3B.js → index-CQyqbeOQ.js} +1 -1
- package/chunks/{index-aQYpBJjD.js → index-CvUTYxRM.js} +1 -1
- package/chunks/{index-Cx6lXTZ6.js → index-D1PLzdhA.js} +1 -1
- package/chunks/{index-XyVu8J2A.js → index-D2D_wwt7.js} +1 -1
- package/chunks/{index-BmDSaHrE.js → index-DHSwzFQ6.js} +1 -1
- package/chunks/{index-Ddsjeb54.js → index-DNBKuFoN.js} +4 -4
- package/chunks/{index-C0RIpQrQ.js → index-DZ_IVYob.js} +1 -1
- package/chunks/{index-CDXNhQFO.js → index-DjFC9PD7.js} +1 -1
- package/chunks/index-DzYbZTQr.js +22 -0
- package/chunks/{index-DY5MEG01.js → index-NKyn2Vh3.js} +2 -2
- package/chunks/{index-CjTz1fx7.js → index-ZxiiuPUs.js} +1 -1
- package/chunks/{init-D3QUKYNM.js → init-w2VjjkQ5.js} +1 -1
- package/chunks/{main-dTa99wzA.js → main-Crd2Ko2z.js} +31073 -30901
- package/chunks/{resolveProps-BtiIhzmL.js → resolveProps-B2rN5yMQ.js} +1 -1
- package/chunks/useImageVariant-Do8kOVs2-DGrYxG0D.js +538 -0
- package/chunks/useInfoPage-v91yL5SS-D3wg-Ua1.js +1534 -0
- package/chunks/{users-DqaTcUzB.js → users-ClQSODcv.js} +1 -1
- package/fu-widgets.es.js +1 -1
- package/fu-widgets.iife.js +468 -316
- package/manifest.json +67 -57
- package/package.json +1 -1
- package/chunks/CollectLeadForm-BJFkJ_vP-DvV2YhrV.js +0 -3957
- package/chunks/CollectLeadWrapper-KriYY-ne.js +0 -1293
- package/chunks/Error-D8VHqB3H-8wtXeQC1.js +0 -1119
- package/chunks/EventGameWrapper-BFv7of8C.js +0 -8016
- package/chunks/MatchQuizWrapper-D7hlzHOE.js +0 -11054
- package/chunks/NotFoundSkeleton-fEz6tRdJ-GZLENyYc.js +0 -2190
- package/chunks/PickThePairWrapper-Bg8OcUpJ.js +0 -2163
- package/chunks/PollWrapper-BLuKlwDk.js +0 -4205
- package/chunks/index-C287DKKQ.js +0 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as N, b as W, r as E, d as _, _ as s, j as c, e as p } from "./main-
|
|
2
|
-
import { u as $, c as v, s as u, m as B, d as J, r as T, n as U, o as L } from "./resolveProps-
|
|
1
|
+
import { g as N, b as W, r as E, d as _, _ as s, j as c, e as p } from "./main-Crd2Ko2z.js";
|
|
2
|
+
import { u as $, c as v, s as u, m as B, d as J, r as T, n as U, o as L } from "./resolveProps-B2rN5yMQ.js";
|
|
3
3
|
function M(o) {
|
|
4
4
|
return N("MuiAlert", o);
|
|
5
5
|
}
|
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
import { a as sr, g as lr, h as dr, w as $, _ as T, n as N, o as l, D as f, N as u, q as M, e as _, a9 as cr, r as S, s as O, t as pr, A as ur, B as vr, aa as mr, ab as E, ac as F, ad as hr, ae as gr, af as J, ag as Ir, a6 as fr, I as L, F as G, ah as xr, ai as br, a8 as Sr } from "./ConstantsProvider-BPJJz9fq-DsiaVKq7.js";
|
|
2
|
+
import { j as d, r as R } from "./main-Crd2Ko2z.js";
|
|
3
|
+
import { i as yr, s as Cr } from "./CheckCircle-D-GH16Lb-cavKstqp.js";
|
|
4
|
+
const zr = cr(), Dr = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], wr = xr(), Rr = zr("div", {
|
|
5
|
+
name: "MuiStack",
|
|
6
|
+
slot: "Root",
|
|
7
|
+
overridesResolver: (r, e) => e.root
|
|
8
|
+
});
|
|
9
|
+
function kr(r) {
|
|
10
|
+
return mr({
|
|
11
|
+
props: r,
|
|
12
|
+
name: "MuiStack",
|
|
13
|
+
defaultTheme: wr
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function Ar(r, e) {
|
|
17
|
+
const t = R.Children.toArray(r).filter(Boolean);
|
|
18
|
+
return t.reduce((o, n, a) => (o.push(n), a < t.length - 1 && o.push(/* @__PURE__ */ R.cloneElement(e, {
|
|
19
|
+
key: `separator-${a}`
|
|
20
|
+
})), o), []);
|
|
21
|
+
}
|
|
22
|
+
const Hr = (r) => ({
|
|
23
|
+
row: "Left",
|
|
24
|
+
"row-reverse": "Right",
|
|
25
|
+
column: "Top",
|
|
26
|
+
"column-reverse": "Bottom"
|
|
27
|
+
})[r], Pr = ({
|
|
28
|
+
ownerState: r,
|
|
29
|
+
theme: e
|
|
30
|
+
}) => {
|
|
31
|
+
let t = l({
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexDirection: "column"
|
|
34
|
+
}, E({
|
|
35
|
+
theme: e
|
|
36
|
+
}, F({
|
|
37
|
+
values: r.direction,
|
|
38
|
+
breakpoints: e.breakpoints.values
|
|
39
|
+
}), (o) => ({
|
|
40
|
+
flexDirection: o
|
|
41
|
+
})));
|
|
42
|
+
if (r.spacing) {
|
|
43
|
+
const o = hr(e), n = Object.keys(e.breakpoints.values).reduce((i, s) => ((typeof r.spacing == "object" && r.spacing[s] != null || typeof r.direction == "object" && r.direction[s] != null) && (i[s] = !0), i), {}), a = F({
|
|
44
|
+
values: r.direction,
|
|
45
|
+
base: n
|
|
46
|
+
}), c = F({
|
|
47
|
+
values: r.spacing,
|
|
48
|
+
base: n
|
|
49
|
+
});
|
|
50
|
+
typeof a == "object" && Object.keys(a).forEach((i, s, m) => {
|
|
51
|
+
if (!a[i]) {
|
|
52
|
+
const v = s > 0 ? a[m[s - 1]] : "column";
|
|
53
|
+
a[i] = v;
|
|
54
|
+
}
|
|
55
|
+
}), t = gr(t, E({
|
|
56
|
+
theme: e
|
|
57
|
+
}, c, (i, s) => r.useFlexGap ? {
|
|
58
|
+
gap: J(o, i)
|
|
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${Hr(s ? a[s] : r.direction)}`]: J(o, i)
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
return t = Ir(e.breakpoints, t), t;
|
|
71
|
+
};
|
|
72
|
+
function Wr(r = {}) {
|
|
73
|
+
const {
|
|
74
|
+
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
75
|
+
createStyledComponent: e = Rr,
|
|
76
|
+
useThemeProps: t = kr,
|
|
77
|
+
componentName: o = "MuiStack"
|
|
78
|
+
} = r, n = () => O({
|
|
79
|
+
root: ["root"]
|
|
80
|
+
}, (i) => br(o, i), {}), a = e(Pr);
|
|
81
|
+
return /* @__PURE__ */ R.forwardRef(function(i, s) {
|
|
82
|
+
const m = t(i), v = fr(m), {
|
|
83
|
+
component: x = "div",
|
|
84
|
+
direction: y = "column",
|
|
85
|
+
spacing: C = 0,
|
|
86
|
+
divider: b,
|
|
87
|
+
children: p,
|
|
88
|
+
className: h,
|
|
89
|
+
useFlexGap: g = !1
|
|
90
|
+
} = v, I = N(v, Dr), z = {
|
|
91
|
+
direction: y,
|
|
92
|
+
spacing: C,
|
|
93
|
+
useFlexGap: g
|
|
94
|
+
}, D = n();
|
|
95
|
+
return /* @__PURE__ */ d.jsx(a, l({
|
|
96
|
+
as: x,
|
|
97
|
+
ownerState: z,
|
|
98
|
+
ref: s,
|
|
99
|
+
className: M(D.root, h)
|
|
100
|
+
}, I, {
|
|
101
|
+
children: b ? Ar(p, b) : p
|
|
102
|
+
}));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function jr(r) {
|
|
106
|
+
return G("MuiAlert", r);
|
|
107
|
+
}
|
|
108
|
+
L("MuiAlert", ["root", "startDecorator", "endDecorator", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
109
|
+
const Br = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"], $r = (r) => {
|
|
110
|
+
const {
|
|
111
|
+
variant: e,
|
|
112
|
+
color: t,
|
|
113
|
+
size: o
|
|
114
|
+
} = r, n = {
|
|
115
|
+
root: ["root", o && `size${S(o)}`, t && `color${S(t)}`, e && `variant${S(e)}`],
|
|
116
|
+
startDecorator: ["startDecorator"],
|
|
117
|
+
endDecorator: ["endDecorator"]
|
|
118
|
+
};
|
|
119
|
+
return O(n, jr, {});
|
|
120
|
+
}, Fr = u("div", {
|
|
121
|
+
name: "JoyAlert",
|
|
122
|
+
slot: "Root",
|
|
123
|
+
overridesResolver: (r, e) => e.root
|
|
124
|
+
})(({
|
|
125
|
+
theme: r,
|
|
126
|
+
ownerState: e
|
|
127
|
+
}) => {
|
|
128
|
+
var t;
|
|
129
|
+
const {
|
|
130
|
+
p: o,
|
|
131
|
+
padding: n,
|
|
132
|
+
borderRadius: a
|
|
133
|
+
} = pr({
|
|
134
|
+
theme: r,
|
|
135
|
+
ownerState: e
|
|
136
|
+
}, ["p", "padding", "borderRadius"]);
|
|
137
|
+
return [l({
|
|
138
|
+
"--Alert-radius": r.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
|
+
}, e.size === "sm" && {
|
|
146
|
+
"--Alert-padding": "0.5rem",
|
|
147
|
+
"--Alert-decoratorChildHeight": "1.5rem",
|
|
148
|
+
"--Icon-fontSize": r.vars.fontSize.xl,
|
|
149
|
+
gap: "0.5rem"
|
|
150
|
+
}, e.size === "md" && {
|
|
151
|
+
"--Alert-padding": "0.75rem",
|
|
152
|
+
"--Alert-decoratorChildHeight": "2rem",
|
|
153
|
+
"--Icon-fontSize": r.vars.fontSize.xl,
|
|
154
|
+
gap: "0.625rem"
|
|
155
|
+
}, e.size === "lg" && {
|
|
156
|
+
"--Alert-padding": "1rem",
|
|
157
|
+
"--Alert-decoratorChildHeight": "2.375rem",
|
|
158
|
+
"--Icon-fontSize": r.vars.fontSize.xl2,
|
|
159
|
+
gap: "0.875rem"
|
|
160
|
+
}, {
|
|
161
|
+
backgroundColor: r.vars.palette.background.surface,
|
|
162
|
+
display: "flex",
|
|
163
|
+
position: "relative",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
padding: "var(--Alert-padding)",
|
|
166
|
+
borderRadius: "var(--Alert-radius)"
|
|
167
|
+
}, r.typography[`body-${{
|
|
168
|
+
sm: "xs",
|
|
169
|
+
md: "sm",
|
|
170
|
+
lg: "md"
|
|
171
|
+
}[e.size]}`], {
|
|
172
|
+
fontWeight: r.vars.fontWeight.md
|
|
173
|
+
}, e.variant === "solid" && e.color && e.invertedColors && ur(e.color)(r), e.variant === "soft" && e.color && e.invertedColors && vr(e.color)(r), (t = r.variants[e.variant]) == null ? void 0 : t[e.color]), o !== void 0 && {
|
|
174
|
+
"--Alert-padding": o
|
|
175
|
+
}, n !== void 0 && {
|
|
176
|
+
"--Alert-padding": n
|
|
177
|
+
}, a !== void 0 && {
|
|
178
|
+
"--Alert-radius": a
|
|
179
|
+
}];
|
|
180
|
+
}), Tr = u("span", {
|
|
181
|
+
name: "JoyAlert",
|
|
182
|
+
slot: "StartDecorator",
|
|
183
|
+
overridesResolver: (r, e) => e.startDecorator
|
|
184
|
+
})({
|
|
185
|
+
display: "inherit",
|
|
186
|
+
flex: "none"
|
|
187
|
+
}), Nr = u("span", {
|
|
188
|
+
name: "JoyAlert",
|
|
189
|
+
slot: "EndDecorator",
|
|
190
|
+
overridesResolver: (r, e) => e.endDecorator
|
|
191
|
+
})({
|
|
192
|
+
display: "inherit",
|
|
193
|
+
flex: "none",
|
|
194
|
+
marginLeft: "auto"
|
|
195
|
+
}), Or = /* @__PURE__ */ R.forwardRef(function(r, e) {
|
|
196
|
+
const t = T({
|
|
197
|
+
props: r,
|
|
198
|
+
name: "JoyAlert"
|
|
199
|
+
}), {
|
|
200
|
+
children: o,
|
|
201
|
+
className: n,
|
|
202
|
+
color: a = "neutral",
|
|
203
|
+
invertedColors: c = !1,
|
|
204
|
+
role: i = "alert",
|
|
205
|
+
variant: s = "soft",
|
|
206
|
+
size: m = "md",
|
|
207
|
+
startDecorator: v,
|
|
208
|
+
endDecorator: x,
|
|
209
|
+
component: y,
|
|
210
|
+
slots: C = {},
|
|
211
|
+
slotProps: b = {}
|
|
212
|
+
} = t, p = N(t, Br), h = l({}, t, {
|
|
213
|
+
color: a,
|
|
214
|
+
invertedColors: c,
|
|
215
|
+
variant: s,
|
|
216
|
+
size: m
|
|
217
|
+
}), g = $r(h), I = l({}, p, {
|
|
218
|
+
component: y,
|
|
219
|
+
slots: C,
|
|
220
|
+
slotProps: b
|
|
221
|
+
}), [z, D] = f("root", {
|
|
222
|
+
ref: e,
|
|
223
|
+
className: M(g.root, n),
|
|
224
|
+
elementType: Fr,
|
|
225
|
+
externalForwardedProps: I,
|
|
226
|
+
ownerState: h,
|
|
227
|
+
additionalProps: {
|
|
228
|
+
role: i
|
|
229
|
+
}
|
|
230
|
+
}), [W, j] = f("startDecorator", {
|
|
231
|
+
className: g.startDecorator,
|
|
232
|
+
elementType: Tr,
|
|
233
|
+
externalForwardedProps: I,
|
|
234
|
+
ownerState: h
|
|
235
|
+
}), [k, A] = f("endDecorator", {
|
|
236
|
+
className: g.endDecorator,
|
|
237
|
+
elementType: Nr,
|
|
238
|
+
externalForwardedProps: I,
|
|
239
|
+
ownerState: h
|
|
240
|
+
});
|
|
241
|
+
return /* @__PURE__ */ d.jsxs(z, l({}, D, {
|
|
242
|
+
children: [v && /* @__PURE__ */ d.jsx(W, l({}, j, {
|
|
243
|
+
children: v
|
|
244
|
+
})), o, x && /* @__PURE__ */ d.jsx(k, l({}, A, {
|
|
245
|
+
children: x
|
|
246
|
+
}))]
|
|
247
|
+
}));
|
|
248
|
+
});
|
|
249
|
+
function Er(r) {
|
|
250
|
+
return G("MuiInput", r);
|
|
251
|
+
}
|
|
252
|
+
const V = L("MuiInput", ["root", "input", "formControl", "focused", "disabled", "error", "adornedStart", "adornedEnd", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "fullWidth", "startDecorator", "endDecorator"]), Jr = ["propsToForward", "rootStateClasses", "inputStateClasses", "getRootProps", "getInputProps", "formControl", "focused", "error", "disabled", "fullWidth", "size", "color", "variant", "startDecorator", "endDecorator", "component", "slots", "slotProps"], Mr = (r) => {
|
|
253
|
+
const {
|
|
254
|
+
disabled: e,
|
|
255
|
+
fullWidth: t,
|
|
256
|
+
variant: o,
|
|
257
|
+
color: n,
|
|
258
|
+
size: a
|
|
259
|
+
} = r, c = {
|
|
260
|
+
root: ["root", e && "disabled", t && "fullWidth", o && `variant${S(o)}`, n && `color${S(n)}`, a && `size${S(a)}`],
|
|
261
|
+
input: ["input"],
|
|
262
|
+
startDecorator: ["startDecorator"],
|
|
263
|
+
endDecorator: ["endDecorator"]
|
|
264
|
+
};
|
|
265
|
+
return O(c, Er, {});
|
|
266
|
+
}, _r = u("div")(({
|
|
267
|
+
theme: r,
|
|
268
|
+
ownerState: e
|
|
269
|
+
}) => {
|
|
270
|
+
var t, o, n, a, c, i;
|
|
271
|
+
const s = (t = r.variants[`${e.variant}`]) == null ? void 0 : t[e.color];
|
|
272
|
+
return [l({
|
|
273
|
+
"--Input-radius": r.vars.radius.sm,
|
|
274
|
+
"--Input-gap": "0.5rem",
|
|
275
|
+
"--Input-placeholderColor": "inherit",
|
|
276
|
+
"--Input-placeholderOpacity": 0.64,
|
|
277
|
+
"--Input-decoratorColor": r.vars.palette.text.icon,
|
|
278
|
+
"--Input-focused": "0",
|
|
279
|
+
"--Input-focusedThickness": r.vars.focus.thickness,
|
|
280
|
+
"--Input-focusedHighlight": (o = r.vars.palette[e.color === "neutral" ? "primary" : e.color]) == null ? void 0 : o[500],
|
|
281
|
+
[`&:not([${Sr}])`]: l({}, e.instanceColor && {
|
|
282
|
+
"--_Input-focusedHighlight": (n = r.vars.palette[e.instanceColor === "neutral" ? "primary" : e.instanceColor]) == null ? void 0 : n[500]
|
|
283
|
+
}, {
|
|
284
|
+
"--Input-focusedHighlight": `var(--_Input-focusedHighlight, ${r.vars.palette.focusVisible})`
|
|
285
|
+
})
|
|
286
|
+
}, e.size === "sm" && {
|
|
287
|
+
"--Input-minHeight": "2rem",
|
|
288
|
+
"--Input-paddingInline": "0.5rem",
|
|
289
|
+
"--Input-decoratorChildHeight": "min(1.5rem, var(--Input-minHeight))",
|
|
290
|
+
"--Icon-fontSize": r.vars.fontSize.xl
|
|
291
|
+
}, e.size === "md" && {
|
|
292
|
+
"--Input-minHeight": "2.25rem",
|
|
293
|
+
"--Input-paddingInline": "0.75rem",
|
|
294
|
+
"--Input-decoratorChildHeight": "min(1.75rem, var(--Input-minHeight))",
|
|
295
|
+
"--Icon-fontSize": r.vars.fontSize.xl2
|
|
296
|
+
}, e.size === "lg" && {
|
|
297
|
+
"--Input-minHeight": "2.75rem",
|
|
298
|
+
"--Input-paddingInline": "1rem",
|
|
299
|
+
"--Input-gap": "0.75rem",
|
|
300
|
+
"--Input-decoratorChildHeight": "min(2.25rem, var(--Input-minHeight))",
|
|
301
|
+
"--Icon-fontSize": r.vars.fontSize.xl2
|
|
302
|
+
}, {
|
|
303
|
+
// variables for controlling child components
|
|
304
|
+
"--Input-decoratorChildOffset": "min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))",
|
|
305
|
+
"--_Input-paddingBlock": "max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)",
|
|
306
|
+
"--Input-decoratorChildRadius": "max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))",
|
|
307
|
+
"--Button-minHeight": "var(--Input-decoratorChildHeight)",
|
|
308
|
+
"--Button-paddingBlock": "0px",
|
|
309
|
+
// to ensure that the height of the button is equal to --Button-minHeight
|
|
310
|
+
"--IconButton-size": "var(--Input-decoratorChildHeight)",
|
|
311
|
+
"--Button-radius": "var(--Input-decoratorChildRadius)",
|
|
312
|
+
"--IconButton-radius": "var(--Input-decoratorChildRadius)",
|
|
313
|
+
boxSizing: "border-box"
|
|
314
|
+
}, e.variant !== "plain" && {
|
|
315
|
+
boxShadow: r.shadow.xs
|
|
316
|
+
}, {
|
|
317
|
+
minWidth: 0,
|
|
318
|
+
minHeight: "var(--Input-minHeight)"
|
|
319
|
+
}, e.fullWidth && {
|
|
320
|
+
width: "100%"
|
|
321
|
+
}, {
|
|
322
|
+
cursor: "text",
|
|
323
|
+
position: "relative",
|
|
324
|
+
display: "flex",
|
|
325
|
+
paddingInline: "var(--Input-paddingInline)",
|
|
326
|
+
borderRadius: "var(--Input-radius)"
|
|
327
|
+
}, r.typography[`body-${e.size}`], s, {
|
|
328
|
+
backgroundColor: (a = s == null ? void 0 : s.backgroundColor) != null ? a : r.vars.palette.background.surface,
|
|
329
|
+
"&::before": {
|
|
330
|
+
boxSizing: "border-box",
|
|
331
|
+
content: '""',
|
|
332
|
+
display: "block",
|
|
333
|
+
position: "absolute",
|
|
334
|
+
pointerEvents: "none",
|
|
335
|
+
top: 0,
|
|
336
|
+
left: 0,
|
|
337
|
+
right: 0,
|
|
338
|
+
bottom: 0,
|
|
339
|
+
zIndex: 1,
|
|
340
|
+
borderRadius: "inherit",
|
|
341
|
+
margin: "calc(var(--variant-borderWidth, 0px) * -1)",
|
|
342
|
+
// for outlined variant
|
|
343
|
+
boxShadow: "var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"
|
|
344
|
+
}
|
|
345
|
+
}), {
|
|
346
|
+
"&:hover": l({}, (c = r.variants[`${e.variant}Hover`]) == null ? void 0 : c[e.color], {
|
|
347
|
+
backgroundColor: null
|
|
348
|
+
// it is not common to change background on hover for Input
|
|
349
|
+
}),
|
|
350
|
+
[`&.${V.disabled}`]: (i = r.variants[`${e.variant}Disabled`]) == null ? void 0 : i[e.color],
|
|
351
|
+
"&:focus-within::before": {
|
|
352
|
+
"--Input-focused": "1"
|
|
353
|
+
}
|
|
354
|
+
}];
|
|
355
|
+
}), Lr = u("input")(({
|
|
356
|
+
ownerState: r
|
|
357
|
+
}) => ({
|
|
358
|
+
border: "none",
|
|
359
|
+
// remove the native input width
|
|
360
|
+
minWidth: 0,
|
|
361
|
+
// remove the native input width
|
|
362
|
+
outline: 0,
|
|
363
|
+
// remove the native input outline
|
|
364
|
+
padding: 0,
|
|
365
|
+
// remove the native input padding
|
|
366
|
+
flex: 1,
|
|
367
|
+
color: "inherit",
|
|
368
|
+
backgroundColor: "transparent",
|
|
369
|
+
fontFamily: "inherit",
|
|
370
|
+
fontSize: "inherit",
|
|
371
|
+
fontStyle: "inherit",
|
|
372
|
+
fontWeight: "inherit",
|
|
373
|
+
lineHeight: "inherit",
|
|
374
|
+
textOverflow: "ellipsis",
|
|
375
|
+
"&:-webkit-autofill": l({
|
|
376
|
+
paddingInline: "var(--Input-paddingInline)"
|
|
377
|
+
}, !r.startDecorator && {
|
|
378
|
+
marginInlineStart: "calc(-1 * var(--Input-paddingInline))",
|
|
379
|
+
paddingInlineStart: "var(--Input-paddingInline)",
|
|
380
|
+
borderTopLeftRadius: "calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",
|
|
381
|
+
borderBottomLeftRadius: "calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"
|
|
382
|
+
}, !r.endDecorator && {
|
|
383
|
+
marginInlineEnd: "calc(-1 * var(--Input-paddingInline))",
|
|
384
|
+
paddingInlineEnd: "var(--Input-paddingInline)",
|
|
385
|
+
borderTopRightRadius: "calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",
|
|
386
|
+
borderBottomRightRadius: "calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"
|
|
387
|
+
}),
|
|
388
|
+
"&::-webkit-input-placeholder": {
|
|
389
|
+
color: "var(--Input-placeholderColor)",
|
|
390
|
+
opacity: "var(--Input-placeholderOpacity)"
|
|
391
|
+
},
|
|
392
|
+
"&::-moz-placeholder": {
|
|
393
|
+
// Firefox 19+
|
|
394
|
+
color: "var(--Input-placeholderColor)",
|
|
395
|
+
opacity: "var(--Input-placeholderOpacity)"
|
|
396
|
+
},
|
|
397
|
+
"&:-ms-input-placeholder": {
|
|
398
|
+
// IE11
|
|
399
|
+
color: "var(--Input-placeholderColor)",
|
|
400
|
+
opacity: "var(--Input-placeholderOpacity)"
|
|
401
|
+
},
|
|
402
|
+
"&::-ms-input-placeholder": {
|
|
403
|
+
// Edge
|
|
404
|
+
color: "var(--Input-placeholderColor)",
|
|
405
|
+
opacity: "var(--Input-placeholderOpacity)"
|
|
406
|
+
}
|
|
407
|
+
})), Gr = u("div")({
|
|
408
|
+
"--Button-margin": "0 0 0 calc(var(--Input-decoratorChildOffset) * -1)",
|
|
409
|
+
"--IconButton-margin": "0 0 0 calc(var(--Input-decoratorChildOffset) * -1)",
|
|
410
|
+
"--Icon-margin": "0 0 0 calc(var(--Input-paddingInline) / -4)",
|
|
411
|
+
display: "inherit",
|
|
412
|
+
alignItems: "center",
|
|
413
|
+
paddingBlock: "var(--unstable_InputPaddingBlock)",
|
|
414
|
+
// for wrapping Autocomplete's tags
|
|
415
|
+
flexWrap: "wrap",
|
|
416
|
+
// for wrapping Autocomplete's tags
|
|
417
|
+
marginInlineEnd: "var(--Input-gap)",
|
|
418
|
+
color: "var(--Input-decoratorColor)",
|
|
419
|
+
cursor: "initial"
|
|
420
|
+
}), Vr = u("div")({
|
|
421
|
+
"--Button-margin": "0 calc(var(--Input-decoratorChildOffset) * -1) 0 0",
|
|
422
|
+
"--IconButton-margin": "0 calc(var(--Input-decoratorChildOffset) * -1) 0 0",
|
|
423
|
+
"--Icon-margin": "0 calc(var(--Input-paddingInline) / -4) 0 0",
|
|
424
|
+
display: "inherit",
|
|
425
|
+
alignItems: "center",
|
|
426
|
+
marginInlineStart: "var(--Input-gap)",
|
|
427
|
+
color: "var(--Input-decoratorColor)",
|
|
428
|
+
cursor: "initial"
|
|
429
|
+
}), Xr = u(_r, {
|
|
430
|
+
name: "JoyInput",
|
|
431
|
+
slot: "Root",
|
|
432
|
+
overridesResolver: (r, e) => e.root
|
|
433
|
+
})({}), Yr = u(Lr, {
|
|
434
|
+
name: "JoyInput",
|
|
435
|
+
slot: "Input",
|
|
436
|
+
overridesResolver: (r, e) => e.input
|
|
437
|
+
})({}), qr = u(Gr, {
|
|
438
|
+
name: "JoyInput",
|
|
439
|
+
slot: "StartDecorator",
|
|
440
|
+
overridesResolver: (r, e) => e.startDecorator
|
|
441
|
+
})({}), Kr = u(Vr, {
|
|
442
|
+
name: "JoyInput",
|
|
443
|
+
slot: "EndDecorator",
|
|
444
|
+
overridesResolver: (r, e) => e.endDecorator
|
|
445
|
+
})({}), ne = /* @__PURE__ */ R.forwardRef(function(r, e) {
|
|
446
|
+
var t, o, n, a, c, i;
|
|
447
|
+
const s = T({
|
|
448
|
+
props: r,
|
|
449
|
+
name: "JoyInput"
|
|
450
|
+
}), m = Cr(l({}, s, {
|
|
451
|
+
disabledInProp: r.disabled
|
|
452
|
+
}), V), {
|
|
453
|
+
propsToForward: v,
|
|
454
|
+
rootStateClasses: x,
|
|
455
|
+
inputStateClasses: y,
|
|
456
|
+
getRootProps: C,
|
|
457
|
+
getInputProps: b,
|
|
458
|
+
formControl: p,
|
|
459
|
+
focused: h,
|
|
460
|
+
error: g = !1,
|
|
461
|
+
disabled: I,
|
|
462
|
+
fullWidth: z = !1,
|
|
463
|
+
size: D = "md",
|
|
464
|
+
color: W = "neutral",
|
|
465
|
+
variant: j = "outlined",
|
|
466
|
+
startDecorator: k,
|
|
467
|
+
endDecorator: A,
|
|
468
|
+
component: X,
|
|
469
|
+
slots: Y = {},
|
|
470
|
+
slotProps: q = {}
|
|
471
|
+
} = m, K = N(m, Jr), B = (t = (o = r.error) != null ? o : p == null ? void 0 : p.error) != null ? t : g, Q = (n = (a = r.size) != null ? a : p == null ? void 0 : p.size) != null ? n : D, Z = (c = r.color) != null ? c : B ? "danger" : (i = p == null ? void 0 : p.color) != null ? i : W, w = l({
|
|
472
|
+
instanceColor: B ? "danger" : r.color
|
|
473
|
+
}, s, {
|
|
474
|
+
fullWidth: z,
|
|
475
|
+
color: Z,
|
|
476
|
+
disabled: I,
|
|
477
|
+
error: B,
|
|
478
|
+
focused: h,
|
|
479
|
+
size: Q,
|
|
480
|
+
variant: j
|
|
481
|
+
}), H = Mr(w), P = l({}, K, {
|
|
482
|
+
component: X,
|
|
483
|
+
slots: Y,
|
|
484
|
+
slotProps: q
|
|
485
|
+
}), [U, rr] = f("root", {
|
|
486
|
+
ref: e,
|
|
487
|
+
className: [H.root, x],
|
|
488
|
+
elementType: Xr,
|
|
489
|
+
getSlotProps: C,
|
|
490
|
+
externalForwardedProps: P,
|
|
491
|
+
ownerState: w
|
|
492
|
+
}), [er, tr] = f("input", l({}, p && {
|
|
493
|
+
additionalProps: {
|
|
494
|
+
id: p.htmlFor,
|
|
495
|
+
"aria-describedby": p["aria-describedby"]
|
|
496
|
+
}
|
|
497
|
+
}, {
|
|
498
|
+
className: [H.input, y],
|
|
499
|
+
elementType: Yr,
|
|
500
|
+
getSlotProps: b,
|
|
501
|
+
internalForwardedProps: v,
|
|
502
|
+
externalForwardedProps: P,
|
|
503
|
+
ownerState: w
|
|
504
|
+
})), [or, ar] = f("startDecorator", {
|
|
505
|
+
className: H.startDecorator,
|
|
506
|
+
elementType: qr,
|
|
507
|
+
externalForwardedProps: P,
|
|
508
|
+
ownerState: w
|
|
509
|
+
}), [nr, ir] = f("endDecorator", {
|
|
510
|
+
className: H.endDecorator,
|
|
511
|
+
elementType: Kr,
|
|
512
|
+
externalForwardedProps: P,
|
|
513
|
+
ownerState: w
|
|
514
|
+
});
|
|
515
|
+
return /* @__PURE__ */ d.jsxs(U, l({}, rr, {
|
|
516
|
+
children: [k && /* @__PURE__ */ d.jsx(or, l({}, ar, {
|
|
517
|
+
children: k
|
|
518
|
+
})), /* @__PURE__ */ d.jsx(er, l({}, tr)), A && /* @__PURE__ */ d.jsx(nr, l({}, ir, {
|
|
519
|
+
children: A
|
|
520
|
+
}))]
|
|
521
|
+
}));
|
|
522
|
+
}), Qr = Wr({
|
|
523
|
+
createStyledComponent: u("div", {
|
|
524
|
+
name: "JoyStack",
|
|
525
|
+
slot: "Root",
|
|
526
|
+
overridesResolver: (r, e) => e.root
|
|
527
|
+
}),
|
|
528
|
+
useThemeProps: (r) => T({
|
|
529
|
+
props: r,
|
|
530
|
+
name: "JoyStack"
|
|
531
|
+
})
|
|
532
|
+
}), Zr = _(/* @__PURE__ */ d.jsx("path", {
|
|
533
|
+
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"
|
|
534
|
+
}), "Info"), Ur = _(/* @__PURE__ */ d.jsx("path", {
|
|
535
|
+
d: "M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"
|
|
536
|
+
}), "Warning"), re = (r, e) => {
|
|
537
|
+
switch (r) {
|
|
538
|
+
case "success":
|
|
539
|
+
return /* @__PURE__ */ d.jsx(yr, {});
|
|
540
|
+
case "error":
|
|
541
|
+
return /* @__PURE__ */ d.jsx(Ur, { sx: { color: e } });
|
|
542
|
+
case "info":
|
|
543
|
+
case "neutral":
|
|
544
|
+
return /* @__PURE__ */ d.jsx(Zr, {});
|
|
545
|
+
}
|
|
546
|
+
}, ee = (r) => {
|
|
547
|
+
switch (r) {
|
|
548
|
+
case "success":
|
|
549
|
+
return "success";
|
|
550
|
+
case "error":
|
|
551
|
+
return "danger";
|
|
552
|
+
case "info":
|
|
553
|
+
return "primary";
|
|
554
|
+
case "neutral":
|
|
555
|
+
return "neutral";
|
|
556
|
+
}
|
|
557
|
+
}, ie = ({
|
|
558
|
+
variant: r,
|
|
559
|
+
title: e,
|
|
560
|
+
message: t,
|
|
561
|
+
description: o
|
|
562
|
+
}) => {
|
|
563
|
+
const n = sr(), a = lr(), c = dr().secondary, i = ee(r);
|
|
564
|
+
return /* @__PURE__ */ d.jsx(
|
|
565
|
+
Or,
|
|
566
|
+
{
|
|
567
|
+
variant: "soft",
|
|
568
|
+
color: i,
|
|
569
|
+
startDecorator: re(
|
|
570
|
+
r,
|
|
571
|
+
n.colorSchemes.light.palette.danger.plainColor
|
|
572
|
+
),
|
|
573
|
+
sx: {
|
|
574
|
+
gap: 1,
|
|
575
|
+
borderRadius: a.sm,
|
|
576
|
+
fontSize: "0.875em",
|
|
577
|
+
"--Icon-fontSize": "1.25em"
|
|
578
|
+
},
|
|
579
|
+
children: /* @__PURE__ */ d.jsxs(
|
|
580
|
+
Qr,
|
|
581
|
+
{
|
|
582
|
+
sx: {
|
|
583
|
+
fontSize: "1.5em"
|
|
584
|
+
},
|
|
585
|
+
children: [
|
|
586
|
+
e && /* @__PURE__ */ d.jsx(
|
|
587
|
+
$,
|
|
588
|
+
{
|
|
589
|
+
level: "title-md",
|
|
590
|
+
color: i,
|
|
591
|
+
fontWeight: "bold",
|
|
592
|
+
sx: { fontFamily: c, fontSize: "0.875em" },
|
|
593
|
+
children: e
|
|
594
|
+
}
|
|
595
|
+
),
|
|
596
|
+
t && /* @__PURE__ */ d.jsx(
|
|
597
|
+
$,
|
|
598
|
+
{
|
|
599
|
+
level: "body-sm",
|
|
600
|
+
sx: { fontFamily: c, fontSize: "0.675em" },
|
|
601
|
+
children: t
|
|
602
|
+
}
|
|
603
|
+
),
|
|
604
|
+
o && /* @__PURE__ */ d.jsx(
|
|
605
|
+
$,
|
|
606
|
+
{
|
|
607
|
+
level: "body-xs",
|
|
608
|
+
sx: { fontFamily: c, fontSize: "0.6em" },
|
|
609
|
+
children: o
|
|
610
|
+
}
|
|
611
|
+
)
|
|
612
|
+
]
|
|
613
|
+
}
|
|
614
|
+
)
|
|
615
|
+
}
|
|
616
|
+
);
|
|
617
|
+
};
|
|
618
|
+
export {
|
|
619
|
+
_r as K,
|
|
620
|
+
Lr as Q,
|
|
621
|
+
Or as X,
|
|
622
|
+
Vr as Y,
|
|
623
|
+
Qr as Z,
|
|
624
|
+
Gr as a,
|
|
625
|
+
ne as e,
|
|
626
|
+
Ur as n,
|
|
627
|
+
ie as p,
|
|
628
|
+
Zr as t
|
|
629
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as e, g as y, r as P, d as R, _ as r, j as S } from "./main-
|
|
2
|
-
import { u as h, c as w, s as n, m as _, d as b } from "./resolveProps-
|
|
1
|
+
import { b as e, g as y, r as P, d as R, _ as r, j as S } from "./main-Crd2Ko2z.js";
|
|
2
|
+
import { u as h, c as w, s as n, m as _, d as b } from "./resolveProps-B2rN5yMQ.js";
|
|
3
3
|
const j = e("MuiCardOverflow", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
4
4
|
function N(o) {
|
|
5
5
|
return y("MuiCardContent", o);
|