fansunited-frontend-components 0.0.49 → 0.0.52
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/Betslip.d.ts +5 -0
- package/Betslip.d.ts.map +1 -0
- package/Betslip.js +5 -0
- package/ChanceGame.js +87 -86
- package/ClassicQuizPlay.js +174 -173
- package/CollectLead.js +33 -32
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +171 -170
- package/EventGamePlay.js +25 -24
- package/Leaderboard.js +88 -87
- package/MatchQuizPlay.js +28 -27
- package/PersonalityQuizPlay.js +21 -20
- package/PickThePair.js +87 -86
- package/PollVote.js +19 -18
- package/Predictor.js +4756 -4693
- package/README.md +523 -1
- package/chunks/{AlertMessage-Ds45MBHB.js → AlertMessage-CQ9WJHSb.js} +25 -24
- package/chunks/{ArrowRightAlt-DKADQN2o.js → ArrowRightAlt-C1U8SNu-.js} +5 -5
- package/chunks/{Avatar-K1EWhhkA.js → Avatar-COVJnfGS.js} +79 -78
- package/chunks/Button-COvmPv4P.js +2270 -0
- package/chunks/{ChanceGameEmbedVariant-DqFg4YKU.js → ChanceGameEmbedVariant-lfZlSATv.js} +44 -43
- package/chunks/{CheckCircle-CV9iMpkZ.js → CheckCircle-h7-xLUq-.js} +27 -26
- package/chunks/{Close-C6Cw96SJ.js → Close-BTC6xyyj.js} +1 -1
- package/chunks/{Close-BHp4N1-6.js → Close-DBaorsP1.js} +1 -1
- package/chunks/{CollectLeadForm-DnLKA8qz.js → CollectLeadForm-O7Cpe0ix.js} +128 -127
- package/chunks/{Divider-BvUimRFw.js → Divider-DBCeQt9x.js} +15 -14
- package/chunks/{Edit-CZ3ni-Ur.js → Edit-BwwxJdNv.js} +35 -34
- package/chunks/{EmojiEvents-DpmLq98V.js → EmojiEvents-DVPGlTU_.js} +3 -3
- package/chunks/{FavoriteBorder-DUK_DrY4.js → FavoriteBorder-BnhfbKy1.js} +1 -1
- package/chunks/{FormControl-BUItlVIg.js → FormControl-COjw1gQd.js} +38 -37
- package/chunks/{FormLabel-CeTNPUn7.js → FormLabel-e5_v5cjP.js} +18 -17
- package/chunks/{Input-MJCQcYzo.js → Input-er-Yyqtt.js} +17 -16
- package/chunks/{KeyboardArrowDown-SZpn2GhJ.js → KeyboardArrowDown-BeaYH92n.js} +1 -1
- package/chunks/{ModalDialog-Cfgv9UAA.js → ModalDialog-XkhZtgYm.js} +58 -57
- package/chunks/{NotFoundSkeleton-Cs6DtD9u.js → NotFoundSkeleton-C71TRYl5.js} +95 -94
- package/chunks/{Notification-pcKtlRms.js → Notification-CkPupg9q.js} +57 -56
- package/chunks/{OverlayApiErrorSkeleton-Dl3s5Oaf.js → OverlayApiErrorSkeleton-CkuDu9uV.js} +20 -19
- package/chunks/{OverlayLeadAfterCollection-F2TAV9wK.js → OverlayLeadAfterCollection-Dkxl4cKn.js} +28 -27
- package/chunks/{OverlayScoreStateSkeleton-LQ0svzeX.js → OverlayScoreStateSkeleton-RauDjIg5.js} +16 -15
- package/chunks/{Person-BGdniS_p.js → Person-WCt2MN5j.js} +32 -31
- package/chunks/{PickOneOfX-Ci4ZJf7G.js → PickOneOfX-DabfTR2W.js} +8 -7
- package/chunks/{Popper-DOVSI4rJ.js → Popper-OPgbZzY7.js} +127 -126
- package/chunks/{Portal-Cs0dgwmH.js → Portal-BQilulgu.js} +5 -5
- package/chunks/{PrizeCard-DF3QxwQJ.js → PrizeCard-DgHyperX.js} +5238 -6653
- package/chunks/{Select-BHeTdOYr.js → Select-9gmhEo71.js} +133 -132
- package/chunks/{Spinner-DbUB64Gj.js → Spinner-BoysVPn7.js} +12 -11
- package/chunks/{SplitLeadAfterCollection-DSw6X5fx.js → SplitLeadAfterCollection-C5oCDYT1.js} +15 -14
- package/chunks/{Stack-BpHk5eb0.js → Stack-INH9bhkC.js} +30 -29
- package/chunks/{StandardContentSkeleton-Bae1LLQ_.js → StandardContentSkeleton-DsAhzMfU.js} +1 -1
- package/chunks/{Tabs-hwJ7jsUl.js → Tabs-DaVatjCJ.js} +60 -59
- package/chunks/{Textarea-zOtMdgc5.js → Textarea-DeMxp3Zn.js} +48 -47
- package/chunks/{TimerOutlined-DWE7f0YX.js → TimerOutlined-DJh2vL3s.js} +3 -3
- package/chunks/{helpers-NuC1SzL3.js → helpers-Bd9FT9hj.js} +1 -1
- package/chunks/{index-D1K1OB4p.js → index-5MPtbA_r.js} +255 -239
- package/chunks/index-BjfKDjAM.js +4 -0
- package/chunks/main-DDb9jezz.js +1758 -0
- package/chunks/{main-hB01WcoP.js → main-DWw1vqVY.js} +38 -37
- package/chunks/{useEventCallback-CizlfWBo.js → useEventCallback-vbTEFVPa.js} +8 -7
- package/chunks/{useForwardedInput-RWDntqBU.js → useForwardedInput-DumYVfgj.js} +26 -25
- package/chunks/{useImageVariant-Cex1eIqq.js → useImageVariant-B1ObJh_B.js} +1 -1
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +5 -3
- package/package.json +5 -1
- package/chunks/index-BaypiKlO.js +0 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as p,
|
|
1
|
+
import { _ as p, I as G, r as N, s as D, t as E, P as e, J as O, K as A } from "./PrizeCard-DgHyperX.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { u as w, C as
|
|
3
|
+
import { u as w, C as K, b as q, l as Q, L as Z, m as ee, c as oe, d as te, e as ne, f as ae, g as se, R as ie, h as re, i as le, s as ce, j as de } from "./Select-9gmhEo71.js";
|
|
4
|
+
import { d as H, e as ue, f as pe, s as j, u as U, a as B, c as J, r as be } from "./Button-COvmPv4P.js";
|
|
4
5
|
import { jsx as C } from "react/jsx-runtime";
|
|
5
|
-
import { u as fe } from "./useEventCallback-
|
|
6
|
+
import { u as fe } from "./useEventCallback-vbTEFVPa.js";
|
|
6
7
|
function ve(o) {
|
|
7
8
|
const {
|
|
8
9
|
value: t,
|
|
@@ -41,10 +42,10 @@ function ve(o) {
|
|
|
41
42
|
}, b)
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
const
|
|
45
|
-
process.env.NODE_ENV !== "production" && (
|
|
45
|
+
const Y = /* @__PURE__ */ l.createContext(null);
|
|
46
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "TabsContext");
|
|
46
47
|
function W() {
|
|
47
|
-
const o = l.useContext(
|
|
48
|
+
const o = l.useContext(Y);
|
|
48
49
|
if (o == null)
|
|
49
50
|
throw new Error("No TabsContext provided");
|
|
50
51
|
return o;
|
|
@@ -79,9 +80,9 @@ function ge(o) {
|
|
|
79
80
|
selectionFollowsFocus: c,
|
|
80
81
|
value: b
|
|
81
82
|
}), [n, v, m, r, i, u, c, b]);
|
|
82
|
-
return /* @__PURE__ */ C(
|
|
83
|
+
return /* @__PURE__ */ C(K.Provider, {
|
|
83
84
|
value: h,
|
|
84
|
-
children: /* @__PURE__ */ C(
|
|
85
|
+
children: /* @__PURE__ */ C(Y.Provider, {
|
|
85
86
|
value: T,
|
|
86
87
|
children: a
|
|
87
88
|
})
|
|
@@ -101,7 +102,7 @@ function Te(o) {
|
|
|
101
102
|
const {
|
|
102
103
|
value: r,
|
|
103
104
|
getTabId: i
|
|
104
|
-
} = s, d = G(a), u = l.useRef(null), c =
|
|
105
|
+
} = s, d = G(a), u = l.useRef(null), c = H(u, n), f = l.useMemo(() => ({
|
|
105
106
|
id: d,
|
|
106
107
|
ref: u
|
|
107
108
|
}), [d]), {
|
|
@@ -119,25 +120,25 @@ function Te(o) {
|
|
|
119
120
|
rootRef: c
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
|
-
const
|
|
123
|
+
const X = {
|
|
123
124
|
valueChange: "valueChange"
|
|
124
125
|
};
|
|
125
126
|
function he(o, t) {
|
|
126
|
-
if (t.type ===
|
|
127
|
+
if (t.type === X.valueChange)
|
|
127
128
|
return p({}, o, {
|
|
128
129
|
highlightedValue: t.value
|
|
129
130
|
});
|
|
130
|
-
const a =
|
|
131
|
+
const a = Q(o, t), {
|
|
131
132
|
context: {
|
|
132
133
|
selectionFollowsFocus: n
|
|
133
134
|
}
|
|
134
135
|
} = t;
|
|
135
|
-
if (t.type ===
|
|
136
|
+
if (t.type === Z.itemsChange) {
|
|
136
137
|
if (a.selectedValues.length > 0)
|
|
137
138
|
return p({}, a, {
|
|
138
139
|
highlightedValue: a.selectedValues[0]
|
|
139
140
|
});
|
|
140
|
-
|
|
141
|
+
ee(null, "reset", t.context);
|
|
141
142
|
}
|
|
142
143
|
return n && a.highlightedValue != null ? p({}, a, {
|
|
143
144
|
selectedValues: [a.highlightedValue]
|
|
@@ -187,7 +188,7 @@ function ye(o) {
|
|
|
187
188
|
selectedValues: V
|
|
188
189
|
},
|
|
189
190
|
rootRef: F
|
|
190
|
-
} =
|
|
191
|
+
} = oe({
|
|
191
192
|
controlledProps: y,
|
|
192
193
|
disabledItemsFocusable: !u,
|
|
193
194
|
focusManagement: "DOM",
|
|
@@ -205,7 +206,7 @@ function ye(o) {
|
|
|
205
206
|
});
|
|
206
207
|
l.useEffect(() => {
|
|
207
208
|
i !== void 0 && i != null && L({
|
|
208
|
-
type:
|
|
209
|
+
type: X.valueChange,
|
|
209
210
|
value: i
|
|
210
211
|
});
|
|
211
212
|
}, [L, i]);
|
|
@@ -243,9 +244,9 @@ function xe(o) {
|
|
|
243
244
|
registerItem: i,
|
|
244
245
|
totalSubitemCount: d
|
|
245
246
|
}), [i, s, d]);
|
|
246
|
-
return /* @__PURE__ */ C(
|
|
247
|
+
return /* @__PURE__ */ C(K.Provider, {
|
|
247
248
|
value: c,
|
|
248
|
-
children: /* @__PURE__ */ C(
|
|
249
|
+
children: /* @__PURE__ */ C(te.Provider, {
|
|
249
250
|
value: u,
|
|
250
251
|
children: a
|
|
251
252
|
})
|
|
@@ -276,7 +277,7 @@ function Ce(o) {
|
|
|
276
277
|
getRootProps: h,
|
|
277
278
|
highlighted: T,
|
|
278
279
|
selected: g
|
|
279
|
-
} =
|
|
280
|
+
} = ne({
|
|
280
281
|
item: b
|
|
281
282
|
}), {
|
|
282
283
|
getRootProps: y,
|
|
@@ -284,14 +285,14 @@ function Ce(o) {
|
|
|
284
285
|
active: R,
|
|
285
286
|
focusVisible: L,
|
|
286
287
|
setFocusVisible: k
|
|
287
|
-
} =
|
|
288
|
+
} = ue({
|
|
288
289
|
disabled: n,
|
|
289
290
|
focusableWhenDisabled: !u,
|
|
290
291
|
type: "button"
|
|
291
|
-
}), x =
|
|
292
|
+
}), x = H(r, a, I), V = b !== void 0 ? c(b) : void 0;
|
|
292
293
|
return {
|
|
293
294
|
getRootProps: ($ = {}) => {
|
|
294
|
-
const M =
|
|
295
|
+
const M = pe($), P = ae(h, y);
|
|
295
296
|
return p({}, $, P(M), {
|
|
296
297
|
role: "tab",
|
|
297
298
|
"aria-controls": V,
|
|
@@ -313,7 +314,7 @@ function Ce(o) {
|
|
|
313
314
|
};
|
|
314
315
|
}
|
|
315
316
|
function Re(o) {
|
|
316
|
-
return
|
|
317
|
+
return D("MuiTab", o);
|
|
317
318
|
}
|
|
318
319
|
const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]), Ie = ["action", "children", "value", "disabled", "onChange", "onClick", "onFocus", "component", "orientation", "variant", "color", "disableIndicator", "indicatorPlacement", "indicatorInset", "slots", "slotProps"], ze = (o) => {
|
|
319
320
|
const {
|
|
@@ -326,8 +327,8 @@ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizon
|
|
|
326
327
|
} = o, d = {
|
|
327
328
|
root: ["root", i, a && "disabled", n && "focusVisible", t && "selected", s && `variant${O(s)}`, r && `color${O(r)}`]
|
|
328
329
|
};
|
|
329
|
-
return
|
|
330
|
-
}, Oe =
|
|
330
|
+
return J(d, Re, {});
|
|
331
|
+
}, Oe = j(se, {
|
|
331
332
|
name: "JoyTab",
|
|
332
333
|
slot: "Root",
|
|
333
334
|
overridesResolver: (o, t) => t.root
|
|
@@ -403,7 +404,7 @@ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizon
|
|
|
403
404
|
const n = U({
|
|
404
405
|
props: t,
|
|
405
406
|
name: "JoyTab"
|
|
406
|
-
}), s = l.useContext(
|
|
407
|
+
}), s = l.useContext(ie), {
|
|
407
408
|
action: r,
|
|
408
409
|
children: i,
|
|
409
410
|
disabled: d = !1,
|
|
@@ -416,7 +417,7 @@ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizon
|
|
|
416
417
|
indicatorInset: h = !1,
|
|
417
418
|
slots: T = {},
|
|
418
419
|
slotProps: g = {}
|
|
419
|
-
} = n, y =
|
|
420
|
+
} = n, y = E(n, Ie), I = l.useRef(null), R = H(I, a), {
|
|
420
421
|
active: L,
|
|
421
422
|
focusVisible: k,
|
|
422
423
|
setFocusVisible: x,
|
|
@@ -454,7 +455,7 @@ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizon
|
|
|
454
455
|
ownerState: $,
|
|
455
456
|
className: M.root
|
|
456
457
|
});
|
|
457
|
-
return /* @__PURE__ */ C(
|
|
458
|
+
return /* @__PURE__ */ C(re.Provider, {
|
|
458
459
|
value: c,
|
|
459
460
|
children: /* @__PURE__ */ C(z, p({}, _, {
|
|
460
461
|
children: i
|
|
@@ -553,10 +554,10 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
|
553
554
|
*/
|
|
554
555
|
variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
|
|
555
556
|
});
|
|
556
|
-
const
|
|
557
|
-
process.env.NODE_ENV !== "production" && (
|
|
557
|
+
const S = /* @__PURE__ */ l.createContext("md");
|
|
558
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "SizeTabsContext");
|
|
558
559
|
function Ve(o) {
|
|
559
|
-
return
|
|
560
|
+
return D("MuiTabList", o);
|
|
560
561
|
}
|
|
561
562
|
N("MuiTabList", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
|
|
562
563
|
const _e = ["component", "children", "variant", "color", "size", "disableUnderline", "underlinePlacement", "tabFlex", "sticky", "slots", "slotProps"], $e = (o) => {
|
|
@@ -568,8 +569,8 @@ const _e = ["component", "children", "variant", "color", "size", "disableUnderli
|
|
|
568
569
|
} = o, r = {
|
|
569
570
|
root: ["root", t, n && `variant${O(n)}`, s && `color${O(s)}`, a && `size${O(a)}`]
|
|
570
571
|
};
|
|
571
|
-
return
|
|
572
|
-
}, Fe =
|
|
572
|
+
return J(r, Ve, {});
|
|
573
|
+
}, Fe = j(le, {
|
|
573
574
|
name: "JoyTabList",
|
|
574
575
|
slot: "Root",
|
|
575
576
|
overridesResolver: (o, t) => t.root
|
|
@@ -586,7 +587,7 @@ const _e = ["component", "children", "variant", "color", "size", "disableUnderli
|
|
|
586
587
|
"--ListItem-gap": "0.375rem",
|
|
587
588
|
// the `var(--unknown,)` is a workaround because emotion does not support space toggle.
|
|
588
589
|
"--unstable_TabList-hasUnderline": t.disableUnderline ? "var(--unknown,)" : "initial"
|
|
589
|
-
},
|
|
590
|
+
}, ce, {
|
|
590
591
|
flexGrow: "initial",
|
|
591
592
|
flexDirection: t.orientation === "vertical" ? "column" : "row",
|
|
592
593
|
borderRadius: "var(--List-radius, 0px)",
|
|
@@ -623,7 +624,7 @@ const _e = ["component", "children", "variant", "color", "size", "disableUnderli
|
|
|
623
624
|
const n = U({
|
|
624
625
|
props: t,
|
|
625
626
|
name: "JoyTabList"
|
|
626
|
-
}), s = l.useContext(
|
|
627
|
+
}), s = l.useContext(S), {
|
|
627
628
|
isRtl: r,
|
|
628
629
|
orientation: i,
|
|
629
630
|
getRootProps: d,
|
|
@@ -642,7 +643,7 @@ const _e = ["component", "children", "variant", "color", "size", "disableUnderli
|
|
|
642
643
|
sticky: y,
|
|
643
644
|
slots: I = {},
|
|
644
645
|
slotProps: R = {}
|
|
645
|
-
} = n, L =
|
|
646
|
+
} = n, L = E(n, _e), x = p({}, n, {
|
|
646
647
|
isRtl: r,
|
|
647
648
|
orientation: i,
|
|
648
649
|
variant: b,
|
|
@@ -670,7 +671,7 @@ const _e = ["component", "children", "variant", "color", "size", "disableUnderli
|
|
|
670
671
|
/* @__PURE__ */ C($, p({}, M, {
|
|
671
672
|
children: /* @__PURE__ */ C(xe, {
|
|
672
673
|
value: u,
|
|
673
|
-
children: /* @__PURE__ */ C(
|
|
674
|
+
children: /* @__PURE__ */ C(de, {
|
|
674
675
|
row: i === "horizontal",
|
|
675
676
|
nested: !0,
|
|
676
677
|
children: f
|
|
@@ -747,10 +748,10 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
747
748
|
variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
|
|
748
749
|
});
|
|
749
750
|
function Ne(o) {
|
|
750
|
-
return
|
|
751
|
+
return D("MuiTabPanel", o);
|
|
751
752
|
}
|
|
752
753
|
N("MuiTabPanel", ["root", "hidden", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
753
|
-
const
|
|
754
|
+
const De = ["children", "value", "component", "color", "variant", "size", "slots", "slotProps", "keepMounted"], Ee = (o) => {
|
|
754
755
|
const {
|
|
755
756
|
hidden: t,
|
|
756
757
|
size: a,
|
|
@@ -760,8 +761,8 @@ const Ee = ["children", "value", "component", "color", "variant", "size", "slots
|
|
|
760
761
|
} = o, i = {
|
|
761
762
|
root: ["root", t && "hidden", a && `size${O(a)}`, r, n && `variant${O(n)}`, s && `color${O(s)}`, a && `size${O(a)}`]
|
|
762
763
|
};
|
|
763
|
-
return
|
|
764
|
-
},
|
|
764
|
+
return J(i, Ne, {});
|
|
765
|
+
}, je = j("div", {
|
|
765
766
|
name: "JoyTabPanel",
|
|
766
767
|
slot: "Root",
|
|
767
768
|
overridesResolver: (o, t) => t.root
|
|
@@ -776,7 +777,7 @@ const Ee = ["children", "value", "component", "color", "variant", "size", "slots
|
|
|
776
777
|
flexGrow: 1,
|
|
777
778
|
fontFamily: o.vars.fontFamily.body
|
|
778
779
|
}, o.typography[`body-${t.size}`], (a = o.variants[t.variant]) == null ? void 0 : a[t.color]);
|
|
779
|
-
}),
|
|
780
|
+
}), Ue = /* @__PURE__ */ l.forwardRef(function(t, a) {
|
|
780
781
|
const n = U({
|
|
781
782
|
props: t,
|
|
782
783
|
name: "JoyTabPanel"
|
|
@@ -784,7 +785,7 @@ const Ee = ["children", "value", "component", "color", "variant", "size", "slots
|
|
|
784
785
|
orientation: s
|
|
785
786
|
} = W() || {
|
|
786
787
|
orientation: "horizontal"
|
|
787
|
-
}, r = l.useContext(
|
|
788
|
+
}, r = l.useContext(S), {
|
|
788
789
|
children: i,
|
|
789
790
|
value: d = 0,
|
|
790
791
|
component: u,
|
|
@@ -794,7 +795,7 @@ const Ee = ["children", "value", "component", "color", "variant", "size", "slots
|
|
|
794
795
|
slots: v = {},
|
|
795
796
|
slotProps: m = {},
|
|
796
797
|
keepMounted: h = !1
|
|
797
|
-
} = n, T =
|
|
798
|
+
} = n, T = E(n, De), {
|
|
798
799
|
hidden: g,
|
|
799
800
|
getRootProps: y
|
|
800
801
|
} = Te(p({}, n, {
|
|
@@ -805,13 +806,13 @@ const Ee = ["children", "value", "component", "color", "variant", "size", "slots
|
|
|
805
806
|
size: b ?? r,
|
|
806
807
|
color: c,
|
|
807
808
|
variant: f
|
|
808
|
-
}), L =
|
|
809
|
+
}), L = Ee(R), k = p({}, T, {
|
|
809
810
|
component: u,
|
|
810
811
|
slots: v,
|
|
811
812
|
slotProps: m
|
|
812
813
|
}), [x, V] = B("root", {
|
|
813
814
|
ref: a,
|
|
814
|
-
elementType:
|
|
815
|
+
elementType: je,
|
|
815
816
|
getSlotProps: y,
|
|
816
817
|
externalForwardedProps: k,
|
|
817
818
|
additionalProps: {
|
|
@@ -828,7 +829,7 @@ const Ee = ["children", "value", "component", "color", "variant", "size", "slots
|
|
|
828
829
|
children: !g && i
|
|
829
830
|
}));
|
|
830
831
|
});
|
|
831
|
-
process.env.NODE_ENV !== "production" && (
|
|
832
|
+
process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
832
833
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
833
834
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
834
835
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -886,10 +887,10 @@ process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
|
886
887
|
variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
|
|
887
888
|
});
|
|
888
889
|
function Be(o) {
|
|
889
|
-
return
|
|
890
|
+
return D("MuiTabs", o);
|
|
890
891
|
}
|
|
891
892
|
N("MuiTabs", ["root", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
|
|
892
|
-
const
|
|
893
|
+
const Je = ["children", "value", "defaultValue", "orientation", "direction", "component", "onChange", "selectionFollowsFocus", "variant", "color", "size", "slots", "slotProps"], We = (o) => {
|
|
893
894
|
const {
|
|
894
895
|
orientation: t,
|
|
895
896
|
variant: a,
|
|
@@ -898,8 +899,8 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
898
899
|
} = o, r = {
|
|
899
900
|
root: ["root", t, a && `variant${O(a)}`, n && `color${O(n)}`, s && `size${O(s)}`]
|
|
900
901
|
};
|
|
901
|
-
return
|
|
902
|
-
},
|
|
902
|
+
return J(r, Be, {});
|
|
903
|
+
}, Se = j("div", {
|
|
903
904
|
name: "JoyTabs",
|
|
904
905
|
slot: "Root",
|
|
905
906
|
overridesResolver: (o, t) => t.root
|
|
@@ -914,7 +915,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
914
915
|
background: d,
|
|
915
916
|
p: u,
|
|
916
917
|
padding: c
|
|
917
|
-
} =
|
|
918
|
+
} = be({
|
|
918
919
|
theme: t,
|
|
919
920
|
ownerState: o
|
|
920
921
|
}, ["bgcolor", "backgroundColor", "background", "p", "padding"]), f = A(t, `palette.${r}`) || r || A(t, `palette.${i}`) || i || d || (s == null ? void 0 : s.backgroundColor) || (s == null ? void 0 : s.background) || t.vars.palette.background.surface;
|
|
@@ -941,7 +942,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
941
942
|
}, c !== void 0 && {
|
|
942
943
|
"--Tabs-padding": c
|
|
943
944
|
});
|
|
944
|
-
}),
|
|
945
|
+
}), He = /* @__PURE__ */ l.forwardRef(function(t, a) {
|
|
945
946
|
const n = U({
|
|
946
947
|
props: t,
|
|
947
948
|
name: "JoyTabs"
|
|
@@ -957,7 +958,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
957
958
|
size: v = "md",
|
|
958
959
|
slots: m = {},
|
|
959
960
|
slotProps: h = {}
|
|
960
|
-
} = n, T =
|
|
961
|
+
} = n, T = E(n, Je), g = i || (r === void 0 ? 0 : void 0), {
|
|
961
962
|
contextValue: y
|
|
962
963
|
} = ve(p({}, n, {
|
|
963
964
|
orientation: d,
|
|
@@ -974,7 +975,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
974
975
|
slotProps: h
|
|
975
976
|
}), [k, x] = B("root", {
|
|
976
977
|
ref: a,
|
|
977
|
-
elementType:
|
|
978
|
+
elementType: Se,
|
|
978
979
|
externalForwardedProps: L,
|
|
979
980
|
additionalProps: {
|
|
980
981
|
ref: a,
|
|
@@ -988,7 +989,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
988
989
|
/* @__PURE__ */ C(k, p({}, x, {
|
|
989
990
|
children: /* @__PURE__ */ C(ge, {
|
|
990
991
|
value: y,
|
|
991
|
-
children: /* @__PURE__ */ C(
|
|
992
|
+
children: /* @__PURE__ */ C(S.Provider, {
|
|
992
993
|
value: v,
|
|
993
994
|
children: s
|
|
994
995
|
})
|
|
@@ -996,7 +997,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
996
997
|
}))
|
|
997
998
|
);
|
|
998
999
|
});
|
|
999
|
-
process.env.NODE_ENV !== "production" && (
|
|
1000
|
+
process.env.NODE_ENV !== "production" && (He.propTypes = {
|
|
1000
1001
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1001
1002
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1002
1003
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1073,9 +1074,9 @@ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
|
1073
1074
|
variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
|
|
1074
1075
|
});
|
|
1075
1076
|
export {
|
|
1076
|
-
|
|
1077
|
+
He as T,
|
|
1077
1078
|
Me as a,
|
|
1078
1079
|
ke as b,
|
|
1079
|
-
|
|
1080
|
+
Ue as c,
|
|
1080
1081
|
Le as t
|
|
1081
1082
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as g, t as L, N as M, P as r, r as de, s as ue, J as A } from "./PrizeCard-DgHyperX.js";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
3
|
+
import { u as pe, o as J } from "./useEventCallback-vbTEFVPa.js";
|
|
4
|
+
import { n as xe, d as U, s as F, u as fe, a as $, c as ge } from "./Button-COvmPv4P.js";
|
|
5
|
+
import { u as he } from "./useForwardedInput-DumYVfgj.js";
|
|
5
6
|
import { jsxs as j, jsx as I } from "react/jsx-runtime";
|
|
6
7
|
function ve(a, e = 166) {
|
|
7
8
|
let p;
|
|
@@ -15,7 +16,7 @@ function ve(a, e = 166) {
|
|
|
15
16
|
clearTimeout(p);
|
|
16
17
|
}, s;
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function $e(a) {
|
|
19
20
|
const {
|
|
20
21
|
checked: e,
|
|
21
22
|
defaultChecked: p,
|
|
@@ -25,8 +26,8 @@ function _e(a) {
|
|
|
25
26
|
onFocus: h,
|
|
26
27
|
onFocusVisible: v,
|
|
27
28
|
readOnly: m,
|
|
28
|
-
required:
|
|
29
|
-
} = a, [T, w] =
|
|
29
|
+
required: S
|
|
30
|
+
} = a, [T, w] = pe({
|
|
30
31
|
controlled: e,
|
|
31
32
|
default: !!p,
|
|
32
33
|
name: "Switch",
|
|
@@ -36,10 +37,10 @@ function _e(a) {
|
|
|
36
37
|
t.nativeEvent.defaultPrevented || (w(t.target.checked), u == null || u(t), (i = c.onChange) == null || i.call(c, t));
|
|
37
38
|
}, {
|
|
38
39
|
isFocusVisibleRef: b,
|
|
39
|
-
onBlur:
|
|
40
|
+
onBlur: H,
|
|
40
41
|
onFocus: R,
|
|
41
42
|
ref: B
|
|
42
|
-
} =
|
|
43
|
+
} = xe(), [n, o] = f.useState(!1);
|
|
43
44
|
s && n && o(!1), f.useEffect(() => {
|
|
44
45
|
b.current = n;
|
|
45
46
|
}, [n, b]);
|
|
@@ -48,8 +49,8 @@ function _e(a) {
|
|
|
48
49
|
l.current || (l.current = t.currentTarget), R(t), b.current === !0 && (o(!0), v == null || v(t)), h == null || h(t), (i = c.onFocus) == null || i.call(c, t);
|
|
49
50
|
}, z = (c) => (t) => {
|
|
50
51
|
var i;
|
|
51
|
-
|
|
52
|
-
}, y =
|
|
52
|
+
H(t), b.current === !1 && o(!1), d == null || d(t), (i = c.onBlur) == null || i.call(c, t);
|
|
53
|
+
}, y = U(B, l);
|
|
53
54
|
return {
|
|
54
55
|
checked: T,
|
|
55
56
|
disabled: !!s,
|
|
@@ -60,7 +61,7 @@ function _e(a) {
|
|
|
60
61
|
disabled: s,
|
|
61
62
|
readOnly: m,
|
|
62
63
|
ref: y,
|
|
63
|
-
required:
|
|
64
|
+
required: S,
|
|
64
65
|
type: "checkbox",
|
|
65
66
|
role: "switch",
|
|
66
67
|
"aria-checked": e
|
|
@@ -74,7 +75,7 @@ function _e(a) {
|
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
const me = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
77
|
-
function
|
|
78
|
+
function E(a) {
|
|
78
79
|
return parseInt(a, 10) || 0;
|
|
79
80
|
}
|
|
80
81
|
const Te = {
|
|
@@ -102,9 +103,9 @@ const q = /* @__PURE__ */ f.forwardRef(function(e, p) {
|
|
|
102
103
|
minRows: u = 1,
|
|
103
104
|
style: h,
|
|
104
105
|
value: v
|
|
105
|
-
} = e, m =
|
|
106
|
-
current:
|
|
107
|
-
} = f.useRef(v != null), T = f.useRef(null), w =
|
|
106
|
+
} = e, m = L(e, me), {
|
|
107
|
+
current: S
|
|
108
|
+
} = f.useRef(v != null), T = f.useRef(null), w = U(p, T), k = f.useRef(null), b = f.useRef(null), H = f.useCallback(() => {
|
|
108
109
|
const n = T.current, l = J(n).getComputedStyle(n);
|
|
109
110
|
if (l.width === "0px")
|
|
110
111
|
return {
|
|
@@ -114,7 +115,7 @@ const q = /* @__PURE__ */ f.forwardRef(function(e, p) {
|
|
|
114
115
|
const x = b.current;
|
|
115
116
|
x.style.width = l.width, x.value = n.value || e.placeholder || "x", x.value.slice(-1) === `
|
|
116
117
|
` && (x.value += " ");
|
|
117
|
-
const z = l.boxSizing, y =
|
|
118
|
+
const z = l.boxSizing, y = E(l.paddingBottom) + E(l.paddingTop), C = E(l.borderBottomWidth) + E(l.borderTopWidth), c = x.scrollHeight;
|
|
118
119
|
x.value = "x";
|
|
119
120
|
const t = x.scrollHeight;
|
|
120
121
|
let i = c;
|
|
@@ -125,12 +126,12 @@ const q = /* @__PURE__ */ f.forwardRef(function(e, p) {
|
|
|
125
126
|
overflowing: N
|
|
126
127
|
};
|
|
127
128
|
}, [d, u, e.placeholder]), R = f.useCallback(() => {
|
|
128
|
-
const n =
|
|
129
|
+
const n = H();
|
|
129
130
|
if (be(n))
|
|
130
131
|
return;
|
|
131
132
|
const o = n.outerHeightStyle, l = T.current;
|
|
132
133
|
k.current !== o && (k.current = o, l.style.height = `${o}px`), l.style.overflow = n.overflowing ? "hidden" : "";
|
|
133
|
-
}, [
|
|
134
|
+
}, [H]);
|
|
134
135
|
M(() => {
|
|
135
136
|
const n = () => {
|
|
136
137
|
R();
|
|
@@ -146,11 +147,11 @@ const q = /* @__PURE__ */ f.forwardRef(function(e, p) {
|
|
|
146
147
|
return typeof ResizeObserver < "u" && (C = new ResizeObserver(process.env.NODE_ENV === "test" ? l : n), C.observe(z)), () => {
|
|
147
148
|
x.clear(), cancelAnimationFrame(o), y.removeEventListener("resize", x), C && C.disconnect();
|
|
148
149
|
};
|
|
149
|
-
}, [
|
|
150
|
+
}, [H, R]), M(() => {
|
|
150
151
|
R();
|
|
151
152
|
});
|
|
152
153
|
const B = (n) => {
|
|
153
|
-
|
|
154
|
+
S || R(), s && s(n);
|
|
154
155
|
};
|
|
155
156
|
return /* @__PURE__ */ j(f.Fragment, {
|
|
156
157
|
children: [/* @__PURE__ */ I("textarea", g({
|
|
@@ -208,9 +209,9 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
208
209
|
value: r.oneOfType([r.arrayOf(r.string), r.number, r.string])
|
|
209
210
|
});
|
|
210
211
|
function ye(a) {
|
|
211
|
-
return
|
|
212
|
+
return ue("MuiTextarea", a);
|
|
212
213
|
}
|
|
213
|
-
const
|
|
214
|
+
const Z = de("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator", "formControl", "disabled", "error", "focused", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft"]), Ce = ["propsToForward", "rootStateClasses", "inputStateClasses", "getRootProps", "getInputProps", "formControl", "focused", "error", "disabled", "size", "color", "variant", "startDecorator", "endDecorator", "minRows", "maxRows", "component", "slots", "slotProps"], Re = (a) => {
|
|
214
215
|
const {
|
|
215
216
|
disabled: e,
|
|
216
217
|
variant: p,
|
|
@@ -222,7 +223,7 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
222
223
|
startDecorator: ["startDecorator"],
|
|
223
224
|
endDecorator: ["endDecorator"]
|
|
224
225
|
};
|
|
225
|
-
return
|
|
226
|
+
return ge(u, ye, {});
|
|
226
227
|
}, ze = F("div", {
|
|
227
228
|
name: "JoyTextarea",
|
|
228
229
|
slot: "Root",
|
|
@@ -315,7 +316,7 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
315
316
|
// it is not common to change background on hover for Textarea
|
|
316
317
|
cursor: "text"
|
|
317
318
|
}),
|
|
318
|
-
[`&.${
|
|
319
|
+
[`&.${Z.disabled}`]: (v = a.variants[`${e.variant}Disabled`]) == null ? void 0 : v[e.color],
|
|
319
320
|
"&:focus-within::before": {
|
|
320
321
|
"--Textarea-focused": "1"
|
|
321
322
|
}
|
|
@@ -363,7 +364,7 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
363
364
|
color: "var(--Textarea-placeholderColor)",
|
|
364
365
|
opacity: "var(--Textarea-placeholderOpacity)"
|
|
365
366
|
}
|
|
366
|
-
}),
|
|
367
|
+
}), He = F("div", {
|
|
367
368
|
name: "JoyTextarea",
|
|
368
369
|
slot: "StartDecorator",
|
|
369
370
|
overridesResolver: (a, e) => e.startDecorator
|
|
@@ -374,7 +375,7 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
374
375
|
marginBlockEnd: "var(--Textarea-gap)",
|
|
375
376
|
color: "var(--Textarea-decoratorColor)",
|
|
376
377
|
cursor: "initial"
|
|
377
|
-
}),
|
|
378
|
+
}), Se = F("div", {
|
|
378
379
|
name: "JoyTextarea",
|
|
379
380
|
slot: "EndDecorator",
|
|
380
381
|
overridesResolver: (a, e) => e.endDecorator
|
|
@@ -386,13 +387,13 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
386
387
|
color: "var(--Textarea-decoratorColor)",
|
|
387
388
|
cursor: "initial"
|
|
388
389
|
}), we = /* @__PURE__ */ f.forwardRef(function(e, p) {
|
|
389
|
-
var s, d, u, h, v, m,
|
|
390
|
-
const w =
|
|
390
|
+
var s, d, u, h, v, m, S, T;
|
|
391
|
+
const w = fe({
|
|
391
392
|
props: e,
|
|
392
393
|
name: "JoyTextarea"
|
|
393
|
-
}), k = he(w,
|
|
394
|
+
}), k = he(w, Z), {
|
|
394
395
|
propsToForward: b,
|
|
395
|
-
rootStateClasses:
|
|
396
|
+
rootStateClasses: H,
|
|
396
397
|
inputStateClasses: R,
|
|
397
398
|
getRootProps: B,
|
|
398
399
|
getInputProps: n,
|
|
@@ -407,10 +408,10 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
407
408
|
endDecorator: i,
|
|
408
409
|
minRows: P,
|
|
409
410
|
maxRows: N,
|
|
410
|
-
component:
|
|
411
|
-
slots:
|
|
412
|
-
slotProps:
|
|
413
|
-
} = k,
|
|
411
|
+
component: G,
|
|
412
|
+
slots: K = {},
|
|
413
|
+
slotProps: Q = {}
|
|
414
|
+
} = k, X = L(k, Ce);
|
|
414
415
|
if (process.env.NODE_ENV !== "production") {
|
|
415
416
|
const V = o == null ? void 0 : o.registerEffect;
|
|
416
417
|
f.useEffect(() => {
|
|
@@ -418,7 +419,7 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
418
419
|
return V();
|
|
419
420
|
}, [V]);
|
|
420
421
|
}
|
|
421
|
-
const Y = (s = (d = e.disabled) != null ? d : o == null ? void 0 : o.disabled) != null ? s : z, W = (u = (h = e.error) != null ? h : o == null ? void 0 : o.error) != null ? u : x, ee = (v = (m = e.size) != null ? m : o == null ? void 0 : o.size) != null ? v : y, re = (
|
|
422
|
+
const Y = (s = (d = e.disabled) != null ? d : o == null ? void 0 : o.disabled) != null ? s : z, W = (u = (h = e.error) != null ? h : o == null ? void 0 : o.error) != null ? u : x, ee = (v = (m = e.size) != null ? m : o == null ? void 0 : o.size) != null ? v : y, re = (S = e.color) != null ? S : W ? "danger" : (T = o == null ? void 0 : o.color) != null ? T : C, D = g({
|
|
422
423
|
instanceColor: W ? "danger" : e.color
|
|
423
424
|
}, w, {
|
|
424
425
|
color: re,
|
|
@@ -427,18 +428,18 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
427
428
|
focused: l,
|
|
428
429
|
size: ee,
|
|
429
430
|
variant: c
|
|
430
|
-
}), O = Re(D), _ = g({},
|
|
431
|
-
component:
|
|
432
|
-
slots:
|
|
433
|
-
slotProps:
|
|
434
|
-
}), [ae, oe] =
|
|
431
|
+
}), O = Re(D), _ = g({}, X, {
|
|
432
|
+
component: G,
|
|
433
|
+
slots: K,
|
|
434
|
+
slotProps: Q
|
|
435
|
+
}), [ae, oe] = $("root", {
|
|
435
436
|
ref: p,
|
|
436
|
-
className: [O.root,
|
|
437
|
+
className: [O.root, H],
|
|
437
438
|
elementType: ze,
|
|
438
439
|
externalForwardedProps: _,
|
|
439
440
|
getSlotProps: B,
|
|
440
441
|
ownerState: D
|
|
441
|
-
}), [te, ne] =
|
|
442
|
+
}), [te, ne] = $("textarea", {
|
|
442
443
|
additionalProps: {
|
|
443
444
|
id: o == null ? void 0 : o.htmlFor,
|
|
444
445
|
"aria-describedby": o == null ? void 0 : o["aria-describedby"]
|
|
@@ -452,14 +453,14 @@ const X = ue("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
452
453
|
externalForwardedProps: _,
|
|
453
454
|
getSlotProps: n,
|
|
454
455
|
ownerState: D
|
|
455
|
-
}), [ie, se] =
|
|
456
|
+
}), [ie, se] = $("startDecorator", {
|
|
456
457
|
className: O.startDecorator,
|
|
457
|
-
elementType:
|
|
458
|
+
elementType: He,
|
|
458
459
|
externalForwardedProps: _,
|
|
459
460
|
ownerState: D
|
|
460
|
-
}), [le, ce] =
|
|
461
|
+
}), [le, ce] = $("endDecorator", {
|
|
461
462
|
className: O.endDecorator,
|
|
462
|
-
elementType:
|
|
463
|
+
elementType: Se,
|
|
463
464
|
externalForwardedProps: _,
|
|
464
465
|
ownerState: D
|
|
465
466
|
});
|
|
@@ -529,5 +530,5 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
|
|
|
529
530
|
});
|
|
530
531
|
export {
|
|
531
532
|
we as T,
|
|
532
|
-
|
|
533
|
+
$e as u
|
|
533
534
|
};
|