fansunited-frontend-components 0.0.78 → 0.0.80
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.js +1 -1
- package/ChanceGame.js +12 -11
- package/ClassicQuizPlay.js +1 -1
- package/CollectLead.js +39 -38
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1 -1
- package/EventCard.js +61 -61
- package/EventGamePlay.js +1 -1
- package/Leaderboard.js +13 -13
- package/List.js +93 -82
- package/MatchQuizPlay.js +1 -1
- package/PersonalityQuizPlay.js +1 -1
- package/PickThePair.js +13 -12
- package/PlayerOfTheMatch.js +22 -22
- package/PollVote.js +1 -1
- package/Predictor.js +1 -1
- package/README.md +131 -16
- package/Standings.js +26 -26
- package/TopX.js +27 -27
- package/chunks/{AccessTime-B30dztb0.js → AccessTime-BoYoyig3.js} +1 -1
- package/chunks/{AlertMessage-DioJxnEH.js → AlertMessage-DBbObbCr.js} +13 -13
- package/chunks/{Avatar-BDK_vO0c.js → Avatar-Bs2ODH24.js} +25 -25
- package/chunks/{Button-CsvEgUxT.js → Button-By0gW9vl.js} +17 -17
- package/chunks/{Card-Bp7sboHu.js → Card-Bbq-568c.js} +17 -17
- package/chunks/{CardActions-ehD6I2GZ.js → CardActions-DntJimyi.js} +14 -14
- package/chunks/{CardContent-BZDBKTQD.js → CardContent-JrB_z1Or.js} +5 -5
- package/chunks/{ChanceGameEmbedVariant-DMI7i2Me.js → ChanceGameEmbedVariant-D8b8PZnU.js} +21 -20
- package/chunks/{CheckCircle-BXhOrVkK.js → CheckCircle-BVTGl0Ft.js} +1 -1
- package/chunks/{Chip-Bm-Ccjvy.js → Chip-WC9No4h9.js} +10 -10
- package/chunks/{Close-CG_aSJDO.js → Close-CKW5gQRw.js} +1 -1
- package/chunks/{Close-AaOgLIme.js → Close-tWsMMKfA.js} +1 -1
- package/chunks/{CollectLeadForm-DZe1Ymdq.js → CollectLeadForm-CwcEETPM.js} +90 -90
- package/chunks/{ConsentsList-DooBFFmw.js → ConsentsList-D1KKdfOJ.js} +39 -39
- package/chunks/{DirectionScope-oLk_U3C_.js → DirectionScope-BYGJWPAq.js} +1 -1
- package/chunks/{Divider-CAgadBhD.js → Divider-4Rcw4h05.js} +5 -5
- package/chunks/{Edit-kXDl-pRS.js → Edit-D7yPt8sV.js} +13 -13
- package/chunks/{EditOutlined-BX5qBF8L.js → EditOutlined-DvZLGuHA.js} +1 -1
- package/chunks/{EmojiEvents-xseHOk4b.js → EmojiEvents-YHRdPnXx.js} +1 -1
- package/chunks/{FavoriteBorder-BMOLtK7X.js → FavoriteBorder-BXLiJyTv.js} +1 -1
- package/chunks/{FormControl-BTDS6ct5.js → FormControl-yhrIQ7ci.js} +17 -17
- package/chunks/{FormLabel-Ddvg7Uaw.js → FormLabel-COGIjfEx.js} +10 -10
- package/chunks/{InlineSpinner-CvwR2FB_.js → InlineSpinner-CyqM_yQn.js} +2 -2
- package/chunks/{Input-aCtmZdRk.js → Input-Dm3GnI0X.js} +10 -10
- package/chunks/{KeyboardArrowDown-BFuNjWbC.js → KeyboardArrowDown-CCFl-_Cw.js} +1 -1
- package/chunks/{KeyboardArrowRight-DaukpNJR.js → KeyboardArrowRight-387qOqAR.js} +1 -1
- package/chunks/{Link-lifAyVr-.js → Link-ByX_uwKs.js} +16 -16
- package/chunks/{ListItemButton-BSg2RH3G.js → ListItemButton-CxWpt9SR.js} +52 -52
- package/chunks/{ModalClose-C-dgGCpP.js → ModalClose-Cm8vOuk-.js} +17 -17
- package/chunks/{ModalDialog-DyJQmPgR.js → ModalDialog-CXSBeWlQ.js} +42 -42
- package/chunks/{NotFoundSkeleton-CPrI2SnC.js → NotFoundSkeleton-BV0mXA7z.js} +40 -39
- package/chunks/{Notification-1ogsNUiX.js → Notification-preGSwrO.js} +12 -12
- package/chunks/{OverlayScoreStateSkeleton-DALoMahw.js → OverlayScoreStateSkeleton-CA4yxhzc.js} +4 -4
- package/chunks/{OverlayScoreStateWrapperSkeleton-BDDNd4hM.js → OverlayScoreStateWrapperSkeleton-BwDWj5VX.js} +1 -1
- package/chunks/{OverlaySignInSkeleton-BUiNvDRX.js → OverlaySignInSkeleton-C0gpFLV4.js} +11 -10
- package/chunks/{Person-CtBkSz4s.js → Person-DFs8t3vY.js} +1 -1
- package/chunks/{PersonOutline-ftsY5SqE.js → PersonOutline-BHHHU-iP.js} +1 -1
- package/chunks/{PickOneOfX-ASPYutVw.js → PickOneOfX-eEOpXC-f.js} +3 -3
- package/chunks/{Popper-Bj1kl7y_.js → Popper-BJbMQoEj.js} +19 -19
- package/chunks/{Portal-B5LOp_VA.js → Portal-0HYQP6vC.js} +9 -8
- package/chunks/{Portal-DxNZWqOV.js → Portal-Cd3abSBt.js} +2 -2
- package/chunks/{Predictor-o1ZtxfmB.js → Predictor-Db1YZFlF.js} +27 -27
- package/chunks/{PrizeCard-DG54vy2l.js → PrizeCard-YH9jftwY.js} +1773 -1611
- package/chunks/{Search-Jq0gJI9j.js → Search-CWYaTHth.js} +1 -1
- package/chunks/{Select-Dvq1fOJv.js → Select-osvV4zXY.js} +82 -82
- package/chunks/{Sheet-emOLchyd.js → Sheet-Bj4wdH5F.js} +14 -14
- package/chunks/{SignInCta-DUarOlDT.js → SignInCta-3q_FTCgs.js} +3 -3
- package/chunks/{Spinner-CfnxZwI6.js → Spinner-CP7juuny.js} +2 -2
- package/chunks/{Stack-Ck9Xjygq.js → Stack-DuL71jRI.js} +27 -27
- package/chunks/{StandardContentSkeleton-Bx2HVrwG.js → StandardContentSkeleton-CsYymZyn.js} +1 -1
- package/chunks/{Table-DU0BCrKV.js → Table-DvjSYLKy.js} +5 -5
- package/chunks/{Tabs-Dx0bzmUT.js → Tabs-D44eIyd1.js} +19 -19
- package/chunks/{Textarea-CrulPENr.js → Textarea-Cjks7P0A.js} +27 -27
- package/chunks/{TimerOutlined-C3LRF5_A.js → TimerOutlined-D-ySNoFF.js} +1 -1
- package/chunks/{Tooltip-C8hJsZr9.js → Tooltip-C9OhGeHY.js} +52 -52
- package/chunks/{Typography-ECqxGAdq.js → Typography-Ce4eGDV-.js} +29 -29
- package/chunks/{WorkspacePremiumOutlined-DZe6H7gK.js → WorkspacePremiumOutlined-mcdyqu4a.js} +1 -1
- package/chunks/{createSvgIcon-SFvnySaS.js → createSvgIcon-D2EzyIzB.js} +12 -12
- package/chunks/{createSvgIcon-ZK1E4tSQ.js → createSvgIcon-D9F_KILu.js} +40 -40
- package/chunks/{dividerClasses-vQL1-lZZ.js → dividerClasses-D7_NXMv_.js} +1 -1
- package/chunks/{elementAcceptingRef-BQjX8_HI.js → elementAcceptingRef-z3i9EgXj.js} +1 -1
- package/chunks/enums-B1lTCQvC.js +15 -0
- package/chunks/{formLabelClasses-C6bWt8jt.js → formLabelClasses-DWH0zNVd.js} +1 -1
- package/chunks/{helpers-DK7NIWA3.js → helpers-B4K14VMy.js} +1 -1
- package/chunks/index-7P5xWKpe.js +4 -0
- package/chunks/index-BU6n6VAs.js +4 -0
- package/chunks/index-BeAwxbb7.js +4 -0
- package/chunks/index-CYbzrOCD.js +4 -0
- package/chunks/{index-D5NQUqT3.js → index-D6_vWz9t.js} +1 -1
- package/chunks/index-DfmHCVlq.js +4 -0
- package/chunks/index-Do8G2ehs.js +4 -0
- package/chunks/index-bI2wtknX.js +4 -0
- package/chunks/{main-CsgyDzQn.js → main-3TaPwm3t.js} +21 -20
- package/chunks/{main-BFR2-Jev.js → main-ChI4MrZS.js} +3788 -1553
- package/chunks/{main-t-kBnJfd.js → main-Cn8QJIGS.js} +190 -189
- package/chunks/{main-CMaUkaQg.js → main-D1KgLv-3.js} +36 -35
- package/chunks/{main-BpEXHrXG.js → main-D3vY3EZB.js} +177 -176
- package/chunks/{main-DXZDk8yw.js → main-eplFgf8K.js} +3 -3
- package/chunks/{main-XzVztuyY.js → main-la4AkVWG.js} +32 -31
- package/chunks/{main-BqzP5wNI.js → main-ndsgeKK2.js} +43 -43
- package/chunks/{useButton-BuGBhKba.js → useButton-BkNIp1Dt.js} +2 -2
- package/chunks/{useConsents-CTrXjPMT.js → useConsents-G3YImrA0.js} +27 -26
- package/chunks/{useEventCallback-BL4OQp0i.js → useEventCallback-Bpmr_fht.js} +1 -1
- package/chunks/{useForwardedInput-87iBLSE1.js → useForwardedInput-BnX6YP2x.js} +27 -27
- package/chunks/{useImageVariant-BpkocGDo.js → useImageVariant-CHZmm8-4.js} +6 -5
- package/chunks/{useParticipationDraft-C39xos8n.js → useParticipationDraft-CLycICaf.js} +6 -6
- package/chunks/{useSwitch-wS7XLrgV.js → useSwitch-C5TzU7zu.js} +2 -2
- package/index.js +4 -4
- package/package.json +2 -2
- package/chunks/index--sCTbryp.js +0 -4
- package/chunks/index-629uVyFa.js +0 -4
- package/chunks/index-BJfy__18.js +0 -4
- package/chunks/index-DD09ekhb.js +0 -4
- package/chunks/index-Dbxw2Q2L.js +0 -4
- package/chunks/index-GkKP5Yym.js +0 -4
- package/chunks/index-Ke1RX9Pb.js +0 -4
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as a, jsxs as q, Fragment as We } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { U as it, _ as p, H as Ce, I as Qe, P as e, J as xe, G as Ze, F as eo, b as at, v as ct, x as ut, a as dt, B as Io, g as pt, f as Pt, u as mt } from "./PrizeCard-YH9jftwY.js";
|
|
3
3
|
import * as C from "react";
|
|
4
4
|
import { useState as Xe, useEffect as kt, createElement as Ko } from "react";
|
|
5
|
-
import { j as Go, k as Yo, m as Dt, n as At, o as wt } from "./helpers-
|
|
6
|
-
import { i as $t, a as Xo, C as Rt, b as Qo, s as Et, g as Bt } from "./ConsentsList-
|
|
7
|
-
import { F as _e, C as _t } from "./FormControl-
|
|
8
|
-
import { g as
|
|
9
|
-
import { L as vo } from "./Link-
|
|
10
|
-
import { A as Zo } from "./AlertMessage-
|
|
11
|
-
import { S as gt } from "./Stack-
|
|
12
|
-
import { F as je } from "./FormLabel-
|
|
13
|
-
import { S as Ht, a as Vt, b as jt, c as Ut, I as so } from "./Input-
|
|
14
|
-
import { S as Wt, a as qt } from "./Select-
|
|
15
|
-
import { C as Jt } from "./Close-
|
|
16
|
-
import { c as ht } from "./createSvgIcon-
|
|
5
|
+
import { j as Go, k as Yo, m as Dt, n as At, o as wt } from "./helpers-B4K14VMy.js";
|
|
6
|
+
import { i as $t, a as Xo, C as Rt, b as Qo, s as Et, g as Bt } from "./ConsentsList-D1KKdfOJ.js";
|
|
7
|
+
import { F as _e, C as _t } from "./FormControl-yhrIQ7ci.js";
|
|
8
|
+
import { g as Ft, s as K, b as qe, c as ne, f as zt, d as Je, a as ft, I as Mt, T as ao } from "./Typography-Ce4eGDV-.js";
|
|
9
|
+
import { L as vo } from "./Link-ByX_uwKs.js";
|
|
10
|
+
import { A as Zo } from "./AlertMessage-DBbObbCr.js";
|
|
11
|
+
import { S as gt } from "./Stack-DuL71jRI.js";
|
|
12
|
+
import { F as je } from "./FormLabel-COGIjfEx.js";
|
|
13
|
+
import { S as Ht, a as Vt, b as jt, c as Ut, I as so } from "./Input-Dm3GnI0X.js";
|
|
14
|
+
import { S as Wt, a as qt } from "./Select-osvV4zXY.js";
|
|
15
|
+
import { C as Jt } from "./Close-tWsMMKfA.js";
|
|
16
|
+
import { c as ht } from "./createSvgIcon-D2EzyIzB.js";
|
|
17
17
|
import { u as yt, V as bt, g as io } from "./variantColorInheritance-DZr7CNx6.js";
|
|
18
|
-
import { S as jo, B as Eo } from "./Button-
|
|
19
|
-
import { l as _o, G as Kt, C as Gt, R as Yt, W as Xt, N as et, g as Qt, S as Zt, s as en, a as on, b as tn, L as nn, c as rn, d as ln } from "./ListItemButton-
|
|
18
|
+
import { S as jo, B as Eo } from "./Button-By0gW9vl.js";
|
|
19
|
+
import { l as _o, G as Kt, C as Gt, R as Yt, W as Xt, N as et, g as Qt, S as Zt, s as en, a as on, b as tn, L as nn, c as rn, d as ln } from "./ListItemButton-CxWpt9SR.js";
|
|
20
20
|
import { F as sn } from "./FormControlContext-Ct0huDDM.js";
|
|
21
21
|
import { u as Bo } from "./useControlled-BYdyS7Pn.js";
|
|
22
|
-
import { u as Co } from "./useEventCallback-
|
|
23
|
-
import { a as an, C as cn } from "./Chip-
|
|
24
|
-
import { u as un } from "./useButton-
|
|
25
|
-
import { P as dn } from "./Popper-
|
|
22
|
+
import { u as Co } from "./useEventCallback-Bpmr_fht.js";
|
|
23
|
+
import { a as an, C as cn } from "./Chip-WC9No4h9.js";
|
|
24
|
+
import { u as un } from "./useButton-BkNIp1Dt.js";
|
|
25
|
+
import { P as dn } from "./Popper-BJbMQoEj.js";
|
|
26
26
|
import { c as ot } from "./getReactElementRef-B3MFPBbS.js";
|
|
27
|
-
import { T as pn } from "./Textarea-
|
|
27
|
+
import { T as pn } from "./Textarea-Cjks7P0A.js";
|
|
28
28
|
const mn = (o) => {
|
|
29
29
|
const t = C.useRef({});
|
|
30
30
|
return C.useEffect(() => {
|
|
@@ -57,12 +57,12 @@ function vt(o, t, l, s) {
|
|
|
57
57
|
function Ct(o, t, ...l) {
|
|
58
58
|
return o[t] === void 0 ? null : vt(o, t, ...l);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Fo() {
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
63
|
Ct.isRequired = vt;
|
|
64
|
-
|
|
65
|
-
const yn = process.env.NODE_ENV === "production" ?
|
|
64
|
+
Fo.isRequired = Fo;
|
|
65
|
+
const yn = process.env.NODE_ENV === "production" ? Fo : Ct;
|
|
66
66
|
function tt(o) {
|
|
67
67
|
return typeof o.normalize < "u" ? o.normalize("NFD").replace(/[\u0300-\u036f]/g, "") : o;
|
|
68
68
|
}
|
|
@@ -135,8 +135,8 @@ function In(o) {
|
|
|
135
135
|
multiple: T = !1,
|
|
136
136
|
onChange: L,
|
|
137
137
|
onClose: D,
|
|
138
|
-
onHighlightChange:
|
|
139
|
-
onInputChange:
|
|
138
|
+
onHighlightChange: F,
|
|
139
|
+
onInputChange: z,
|
|
140
140
|
onOpen: R,
|
|
141
141
|
open: G,
|
|
142
142
|
openOnFocus: de = !1,
|
|
@@ -166,7 +166,7 @@ function In(o) {
|
|
|
166
166
|
default: "",
|
|
167
167
|
name: y,
|
|
168
168
|
state: "inputValue"
|
|
169
|
-
}), [Re, Ye] = C.useState(!1),
|
|
169
|
+
}), [Re, Ye] = C.useState(!1), Fe = C.useCallback((r, n) => {
|
|
170
170
|
if (!(T ? m.length < n.length : n !== null) && !P)
|
|
171
171
|
return;
|
|
172
172
|
let h;
|
|
@@ -178,8 +178,8 @@ function In(o) {
|
|
|
178
178
|
const S = Z(n);
|
|
179
179
|
h = typeof S == "string" ? S : "";
|
|
180
180
|
}
|
|
181
|
-
N !== h && (ve(h),
|
|
182
|
-
}, [Z, N, T,
|
|
181
|
+
N !== h && (ve(h), z && z(r, h, "reset"));
|
|
182
|
+
}, [Z, N, T, z, ve, P, m]), [ke, to] = Bo({
|
|
183
183
|
controlled: G,
|
|
184
184
|
default: !1,
|
|
185
185
|
name: y,
|
|
@@ -199,9 +199,9 @@ function In(o) {
|
|
|
199
199
|
});
|
|
200
200
|
C.useEffect(() => {
|
|
201
201
|
const r = m !== me.value;
|
|
202
|
-
Re && !r || V && !r ||
|
|
203
|
-
}, [m,
|
|
204
|
-
const
|
|
202
|
+
Re && !r || V && !r || Fe(null, m);
|
|
203
|
+
}, [m, Fe, Re, me.value, V]);
|
|
204
|
+
const ze = ke && _.length > 0 && !le;
|
|
205
205
|
if (process.env.NODE_ENV !== "production" && m !== null && !V && Ae.length > 0) {
|
|
206
206
|
const r = (T ? m : [m]).filter((n) => !Ae.some((c) => Q(c, n)));
|
|
207
207
|
r.length > 0 && console.warn([`MUI: The value provided to ${y} is invalid.`, `None of the options match with \`${r.length > 1 ? JSON.stringify(r) : JSON.stringify(r[0])}\`.`, "You can use the `isOptionEqualToValue` prop to customize the equality test."].join(`
|
|
@@ -230,7 +230,7 @@ function In(o) {
|
|
|
230
230
|
index: n,
|
|
231
231
|
reason: c = "auto"
|
|
232
232
|
}) => {
|
|
233
|
-
if ($.current = n, n === -1 ? W.current.removeAttribute("aria-activedescendant") : W.current.setAttribute("aria-activedescendant", `${U}-option-${n}`),
|
|
233
|
+
if ($.current = n, n === -1 ? W.current.removeAttribute("aria-activedescendant") : W.current.setAttribute("aria-activedescendant", `${U}-option-${n}`), F && F(r, n === -1 ? null : _[n], c), !X.current)
|
|
234
234
|
return;
|
|
235
235
|
const h = X.current.querySelector(`[role="option"].${l}-focused`);
|
|
236
236
|
h && (h.classList.remove(`${l}-focused`), h.classList.remove(`${l}-focusVisible`));
|
|
@@ -338,7 +338,7 @@ function In(o) {
|
|
|
338
338
|
N,
|
|
339
339
|
T
|
|
340
340
|
]), mo = Co((r) => {
|
|
341
|
-
|
|
341
|
+
Ft(X, r), r && ee();
|
|
342
342
|
});
|
|
343
343
|
process.env.NODE_ENV !== "production" && C.useEffect(() => {
|
|
344
344
|
(!W.current || W.current.nodeName !== "INPUT") && (W.current && W.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${y} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
@@ -369,7 +369,7 @@ function In(o) {
|
|
|
369
369
|
const te = xo(M, (ye) => Q(n, ye));
|
|
370
370
|
te === -1 ? M.push(n) : h !== "freeSolo" && (M.splice(te, 1), S = "removeOption");
|
|
371
371
|
}
|
|
372
|
-
|
|
372
|
+
Fe(r, M), re(r, M, S, {
|
|
373
373
|
option: n
|
|
374
374
|
}), !w && (!r || !r.ctrlKey && !r.metaKey) && oe(r, S), (O === !0 || O === "touch" && ue.current || O === "mouse" && !ue.current) && W.current.blur();
|
|
375
375
|
};
|
|
@@ -394,7 +394,7 @@ function In(o) {
|
|
|
394
394
|
let c = ae;
|
|
395
395
|
ae === -1 ? N === "" && n === "previous" && (c = m.length - 1) : (c += n === "next" ? 1 : -1, c < 0 && (c = 0), c === m.length && (c = -1)), c = Oo(c, n), Ge(c), Te(c);
|
|
396
396
|
}, go = (r) => {
|
|
397
|
-
we.current = !0, ve(""),
|
|
397
|
+
we.current = !0, ve(""), z && z(r, "", "clear"), re(r, T ? [] : null, "clear");
|
|
398
398
|
}, To = (r) => (n) => {
|
|
399
399
|
if (r.onKeyDown && r.onKeyDown(n), !n.defaultMuiPrevented && (ae !== -1 && ["ArrowLeft", "ArrowRight"].indexOf(n.key) === -1 && (Ge(-1), Te(-1)), n.which !== 229))
|
|
400
400
|
switch (n.key) {
|
|
@@ -487,10 +487,10 @@ function In(o) {
|
|
|
487
487
|
W.current.focus();
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
|
-
Ye(!1), b.current = !0, we.current = !1, u && $.current !== -1 && pe ? he(r, _[$.current], "blur") : u && V && N !== "" ? he(r, N, "blur", "freeSolo") : P &&
|
|
490
|
+
Ye(!1), b.current = !0, we.current = !1, u && $.current !== -1 && pe ? he(r, _[$.current], "blur") : u && V && N !== "" ? he(r, N, "blur", "freeSolo") : P && Fe(r, m), oe(r, "blur");
|
|
491
491
|
}, No = (r) => {
|
|
492
492
|
const n = r.target.value;
|
|
493
|
-
N !== n && (ve(n), no(!1),
|
|
493
|
+
N !== n && (ve(n), no(!1), z && z(r, n, "input")), n === "" ? !d && !T && re(r, null, "clear") : De(r);
|
|
494
494
|
}, So = (r) => {
|
|
495
495
|
const n = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
496
496
|
$.current !== n && Le({
|
|
@@ -539,7 +539,7 @@ function In(o) {
|
|
|
539
539
|
}
|
|
540
540
|
return k && Re && ho(), {
|
|
541
541
|
getRootProps: (r = {}) => p({
|
|
542
|
-
"aria-owns":
|
|
542
|
+
"aria-owns": ze ? `${U}-listbox` : null
|
|
543
543
|
}, r, {
|
|
544
544
|
onKeyDown: To(r),
|
|
545
545
|
onMouseDown: Ao,
|
|
@@ -560,8 +560,8 @@ function In(o) {
|
|
|
560
560
|
// only have an opinion about this when closed
|
|
561
561
|
"aria-activedescendant": pe ? "" : null,
|
|
562
562
|
"aria-autocomplete": s ? "both" : "list",
|
|
563
|
-
"aria-controls":
|
|
564
|
-
"aria-expanded":
|
|
563
|
+
"aria-controls": ze ? `${U}-listbox` : void 0,
|
|
564
|
+
"aria-expanded": ze,
|
|
565
565
|
// Disable browser's suggestion that might overlap with the popup.
|
|
566
566
|
// Handle autocomplete but not autofill.
|
|
567
567
|
autoComplete: "off",
|
|
@@ -789,7 +789,7 @@ const On = ["component", "className", "children", "nested", "sticky", "variant",
|
|
|
789
789
|
component: Oe,
|
|
790
790
|
slots: B,
|
|
791
791
|
slotProps: J
|
|
792
|
-
}), [
|
|
792
|
+
}), [F, z] = ne("root", {
|
|
793
793
|
additionalProps: {
|
|
794
794
|
role: Q
|
|
795
795
|
},
|
|
@@ -813,14 +813,14 @@ const On = ["component", "className", "children", "nested", "sticky", "variant",
|
|
|
813
813
|
value: be,
|
|
814
814
|
children: /* @__PURE__ */ a(et.Provider, {
|
|
815
815
|
value: w ? j || !0 : !1,
|
|
816
|
-
children: /* @__PURE__ */ q(
|
|
816
|
+
children: /* @__PURE__ */ q(F, p({}, z, {
|
|
817
817
|
children: [i && /* @__PURE__ */ a(R, p({}, G, {
|
|
818
818
|
children: i
|
|
819
819
|
})), C.Children.map(d, (le, Ke) => {
|
|
820
820
|
var ge;
|
|
821
821
|
return /* @__PURE__ */ C.isValidElement(le) ? /* @__PURE__ */ C.cloneElement(le, p({}, Ke === 0 && {
|
|
822
822
|
"data-first-child": ""
|
|
823
|
-
},
|
|
823
|
+
}, zt(le, ["ListItem"]) && {
|
|
824
824
|
// The ListItem of ListItem should not be 'li'
|
|
825
825
|
component: ((ge = le.props) == null ? void 0 : ge.component) || "div"
|
|
826
826
|
})) : le;
|
|
@@ -981,10 +981,10 @@ const wn = ["children", "variant", "color", "disabled", "onKeyDown", "onDelete",
|
|
|
981
981
|
component: d,
|
|
982
982
|
slots: w,
|
|
983
983
|
slotProps: k
|
|
984
|
-
}), Q = (
|
|
985
|
-
!B && y && y(
|
|
986
|
-
}, T = (
|
|
987
|
-
["Backspace", "Enter", "Delete"].includes(
|
|
984
|
+
}), Q = (z) => {
|
|
985
|
+
!B && y && y(z), I && I(z);
|
|
986
|
+
}, T = (z) => {
|
|
987
|
+
["Backspace", "Enter", "Delete"].includes(z.key) && (z.preventDefault(), !B && y && y(z)), A && A(z);
|
|
988
988
|
}, [L, D] = ne("root", {
|
|
989
989
|
ref: l,
|
|
990
990
|
elementType: En,
|
|
@@ -997,8 +997,8 @@ const wn = ["children", "variant", "color", "disabled", "onKeyDown", "onDelete",
|
|
|
997
997
|
onClick: Q
|
|
998
998
|
},
|
|
999
999
|
className: fe.root
|
|
1000
|
-
}),
|
|
1001
|
-
return /* @__PURE__ */ a(L, p({},
|
|
1000
|
+
}), F = Ce(D, $n);
|
|
1001
|
+
return /* @__PURE__ */ a(L, p({}, F, {
|
|
1002
1002
|
children: f ?? (rt || (rt = /* @__PURE__ */ a(Dn, {})))
|
|
1003
1003
|
}));
|
|
1004
1004
|
});
|
|
@@ -1068,7 +1068,7 @@ function Bn(o) {
|
|
|
1068
1068
|
return Ze("MuiListSubheader", o);
|
|
1069
1069
|
}
|
|
1070
1070
|
eo("MuiListSubheader", ["root", "sticky", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
|
|
1071
|
-
const _n = ["component", "className", "children", "id", "sticky", "variant", "color", "slots", "slotProps"],
|
|
1071
|
+
const _n = ["component", "className", "children", "id", "sticky", "variant", "color", "slots", "slotProps"], Fn = (o) => {
|
|
1072
1072
|
const {
|
|
1073
1073
|
variant: t,
|
|
1074
1074
|
color: l,
|
|
@@ -1077,7 +1077,7 @@ const _n = ["component", "className", "children", "id", "sticky", "variant", "co
|
|
|
1077
1077
|
root: ["root", s && "sticky", l && `color${xe(l)}`, t && `variant${xe(t)}`]
|
|
1078
1078
|
};
|
|
1079
1079
|
return Je(f, Bn, {});
|
|
1080
|
-
},
|
|
1080
|
+
}, zn = K("div", {
|
|
1081
1081
|
name: "JoyListSubheader",
|
|
1082
1082
|
slot: "Root",
|
|
1083
1083
|
overridesResolver: (o, t) => t.root
|
|
@@ -1137,14 +1137,14 @@ const _n = ["component", "className", "children", "id", "sticky", "variant", "co
|
|
|
1137
1137
|
sticky: A,
|
|
1138
1138
|
variant: y,
|
|
1139
1139
|
color: y ? I ?? "neutral" : I
|
|
1140
|
-
}), H =
|
|
1140
|
+
}), H = Fn(i), V = p({}, k, {
|
|
1141
1141
|
component: f,
|
|
1142
1142
|
slots: d,
|
|
1143
1143
|
slotProps: w
|
|
1144
1144
|
}), [B, J] = ne("root", {
|
|
1145
1145
|
ref: l,
|
|
1146
1146
|
className: Qe(H.root, u),
|
|
1147
|
-
elementType:
|
|
1147
|
+
elementType: zn,
|
|
1148
1148
|
externalForwardedProps: V,
|
|
1149
1149
|
ownerState: i,
|
|
1150
1150
|
additionalProps: {
|
|
@@ -1386,7 +1386,7 @@ const Gn = ["children", "component", "color", "variant", "className", "slots", "
|
|
|
1386
1386
|
name: "JoyAutocompleteOption",
|
|
1387
1387
|
slot: "Root",
|
|
1388
1388
|
overridesResolver: (o, t) => t.root
|
|
1389
|
-
})({}),
|
|
1389
|
+
})({}), zo = /* @__PURE__ */ C.forwardRef(function(t, l) {
|
|
1390
1390
|
const s = qe({
|
|
1391
1391
|
props: t,
|
|
1392
1392
|
name: "JoyAutocompleteOption"
|
|
@@ -1424,7 +1424,7 @@ const Gn = ["children", "component", "color", "variant", "className", "slots", "
|
|
|
1424
1424
|
children: f
|
|
1425
1425
|
}));
|
|
1426
1426
|
});
|
|
1427
|
-
process.env.NODE_ENV !== "production" && (
|
|
1427
|
+
process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
1428
1428
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1429
1429
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1430
1430
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1666,8 +1666,8 @@ const Qn = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1666
1666
|
limitTags: T = -1,
|
|
1667
1667
|
loading: L = !1,
|
|
1668
1668
|
loadingText: D = "Loading…",
|
|
1669
|
-
multiple:
|
|
1670
|
-
name:
|
|
1669
|
+
multiple: F = !1,
|
|
1670
|
+
name: z,
|
|
1671
1671
|
noOptionsText: R = "No options",
|
|
1672
1672
|
openText: G = "Open",
|
|
1673
1673
|
placeholder: de,
|
|
@@ -1688,7 +1688,7 @@ const Qn = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1688
1688
|
} = I, oo = Ce(I, Qn), $ = C.useContext(sn), m = (s = (f = t.error) != null ? f : $ == null ? void 0 : $.error) != null ? s : Ie, Pe = (u = (O = t.size) != null ? O : $ == null ? void 0 : $.size) != null ? u : W, N = (P = t.color) != null ? P : m ? "danger" : (A = $ == null ? void 0 : $.color) != null ? A : X, ve = (y = B ?? ($ == null ? void 0 : $.disabled)) != null ? y : !1, {
|
|
1689
1689
|
getRootProps: Re,
|
|
1690
1690
|
getInputProps: Ye,
|
|
1691
|
-
getPopupIndicatorProps:
|
|
1691
|
+
getPopupIndicatorProps: Fe,
|
|
1692
1692
|
getClearProps: ke,
|
|
1693
1693
|
getTagProps: to,
|
|
1694
1694
|
getListboxProps: co,
|
|
@@ -1697,7 +1697,7 @@ const Qn = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1697
1697
|
dirty: pe,
|
|
1698
1698
|
popupOpen: _,
|
|
1699
1699
|
focused: me,
|
|
1700
|
-
focusedTag:
|
|
1700
|
+
focusedTag: ze,
|
|
1701
1701
|
anchorEl: Te,
|
|
1702
1702
|
setAnchorEl: ro,
|
|
1703
1703
|
inputValue: Le,
|
|
@@ -1721,7 +1721,7 @@ const Qn = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1721
1721
|
hasOptions: !!ce.length,
|
|
1722
1722
|
hasClearIcon: mo,
|
|
1723
1723
|
hasPopupIcon: De,
|
|
1724
|
-
inputFocused:
|
|
1724
|
+
inputFocused: ze === -1,
|
|
1725
1725
|
popupOpen: _,
|
|
1726
1726
|
size: Pe,
|
|
1727
1727
|
color: N,
|
|
@@ -1732,7 +1732,7 @@ const Qn = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1732
1732
|
slotProps: Ge
|
|
1733
1733
|
});
|
|
1734
1734
|
let he;
|
|
1735
|
-
if (
|
|
1735
|
+
if (F && Ee.length > 0) {
|
|
1736
1736
|
const v = (Ne) => {
|
|
1737
1737
|
const se = to(Ne), {
|
|
1738
1738
|
onDelete: Se
|
|
@@ -1814,7 +1814,7 @@ const Qn = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1814
1814
|
additionalProps: {
|
|
1815
1815
|
autoFocus: E,
|
|
1816
1816
|
placeholder: de,
|
|
1817
|
-
name:
|
|
1817
|
+
name: z,
|
|
1818
1818
|
readOnly: le,
|
|
1819
1819
|
disabled: ve,
|
|
1820
1820
|
required: Z ?? ($ == null ? void 0 : $.required),
|
|
@@ -1853,7 +1853,7 @@ const Qn = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1853
1853
|
}), [uo, bo] = ne("popupIndicator", {
|
|
1854
1854
|
className: re.popupIndicator,
|
|
1855
1855
|
elementType: fr,
|
|
1856
|
-
getSlotProps:
|
|
1856
|
+
getSlotProps: Fe,
|
|
1857
1857
|
externalForwardedProps: ue,
|
|
1858
1858
|
ownerState: oe,
|
|
1859
1859
|
getSlotOwnerState: (v) => ({
|
|
@@ -2638,26 +2638,26 @@ function Pr(o) {
|
|
|
2638
2638
|
w((D) => !D.phoneNumber || !D.phoneCountryCode ? { ...D, phoneCountryCode: L } : D);
|
|
2639
2639
|
}, [y, I]);
|
|
2640
2640
|
const [k, E] = Xe({}), [g, i] = Xe(!1), [H, V] = Xe(!1), [B, J] = Xe(null), Ie = () => J(null), j = (L) => (D) => {
|
|
2641
|
-
w((
|
|
2642
|
-
...
|
|
2641
|
+
w((F) => ({
|
|
2642
|
+
...F,
|
|
2643
2643
|
[L]: D.target.value
|
|
2644
2644
|
}));
|
|
2645
2645
|
}, be = (L) => (D) => {
|
|
2646
|
-
const
|
|
2647
|
-
E((
|
|
2646
|
+
const F = D.target.value;
|
|
2647
|
+
E((z) => ({ ...z, [L]: F }));
|
|
2648
2648
|
}, ie = (L, D) => {
|
|
2649
|
-
w((
|
|
2650
|
-
...
|
|
2649
|
+
w((F) => ({
|
|
2650
|
+
...F,
|
|
2651
2651
|
phoneCountryCode: D
|
|
2652
2652
|
}));
|
|
2653
2653
|
}, fe = (L, D) => {
|
|
2654
|
-
w((
|
|
2655
|
-
...
|
|
2654
|
+
w((F) => ({
|
|
2655
|
+
...F,
|
|
2656
2656
|
country: (D == null ? void 0 : D.code) || ""
|
|
2657
2657
|
}));
|
|
2658
2658
|
}, Oe = (L, D) => {
|
|
2659
|
-
w((
|
|
2660
|
-
...
|
|
2659
|
+
w((F) => ({
|
|
2660
|
+
...F,
|
|
2661
2661
|
gender: D || ""
|
|
2662
2662
|
}));
|
|
2663
2663
|
}, Q = async () => {
|
|
@@ -2667,8 +2667,8 @@ function Pr(o) {
|
|
|
2667
2667
|
if (d.fullName && l.includes("fullName") ? L.setName(d.fullName.trim()) : d.firstName && l.includes("firstName") && d.lastName && l.includes("lastName") ? L.setName(
|
|
2668
2668
|
d.firstName.trim() + " " + d.lastName.trim()
|
|
2669
2669
|
) : d.firstName && l.includes("firstName") ? L.setName(d.firstName.trim()) : d.lastName && l.includes("lastName") && L.setName(d.lastName.trim()), d.email && l.includes("email") && L.setEmail(d.email.trim()), d.gender && l.includes("gender") && L.setGender(d.gender), d.country && l.includes("country")) {
|
|
2670
|
-
const D = await t.profile.getCountries(),
|
|
2671
|
-
|
|
2670
|
+
const D = await t.profile.getCountries(), F = At(d.country), z = D.find((R) => R.name === (F == null ? void 0 : F.label));
|
|
2671
|
+
z && L.setCountry(z.id);
|
|
2672
2672
|
}
|
|
2673
2673
|
d.phoneCountryCode && l.includes("phoneCountryCode") && L.setPhoneCountryCode(
|
|
2674
2674
|
"+" + d.phoneCountryCode.phone
|
|
@@ -2708,7 +2708,7 @@ function Pr(o) {
|
|
|
2708
2708
|
contentId: O,
|
|
2709
2709
|
contentName: P,
|
|
2710
2710
|
customFields: k
|
|
2711
|
-
},
|
|
2711
|
+
}, F = [
|
|
2712
2712
|
"firstName",
|
|
2713
2713
|
"lastName",
|
|
2714
2714
|
"fullName",
|
|
@@ -2718,12 +2718,12 @@ function Pr(o) {
|
|
|
2718
2718
|
"phoneCountryCode",
|
|
2719
2719
|
"phoneNumber",
|
|
2720
2720
|
"customFields"
|
|
2721
|
-
],
|
|
2722
|
-
Object.entries(D).map(([G, de]) =>
|
|
2721
|
+
], z = Object.fromEntries(
|
|
2722
|
+
Object.entries(D).map(([G, de]) => F.includes(G) ? G === "customFields" ? [G, de] : l.includes(G) && de !== "" && de !== null ? [G, de] : [G, null] : [G, de])
|
|
2723
2723
|
);
|
|
2724
2724
|
i(!0);
|
|
2725
2725
|
try {
|
|
2726
|
-
await t.profile.collectLead(
|
|
2726
|
+
await t.profile.collectLead(z), await Q(), V(!0);
|
|
2727
2727
|
} catch {
|
|
2728
2728
|
J("leads.form.error");
|
|
2729
2729
|
} finally {
|
|
@@ -2846,7 +2846,7 @@ const kr = (o) => {
|
|
|
2846
2846
|
listItemContent: { fontSize: "sm" },
|
|
2847
2847
|
submitButton: { mt: 2 }
|
|
2848
2848
|
}, Ar = (o) => {
|
|
2849
|
-
var me,
|
|
2849
|
+
var me, ze, Te, ro, Le, ce;
|
|
2850
2850
|
const [t, l] = Xe(() => $t(o.consents || [])), [s, f] = Xe(!1), {
|
|
2851
2851
|
sdk: u,
|
|
2852
2852
|
brandingColors: O,
|
|
@@ -2874,7 +2874,7 @@ const kr = (o) => {
|
|
|
2874
2874
|
handleCountryChange: T,
|
|
2875
2875
|
handleGenderChange: L,
|
|
2876
2876
|
handleSubmit: D,
|
|
2877
|
-
countries:
|
|
2877
|
+
countries: F
|
|
2878
2878
|
} = Pr({
|
|
2879
2879
|
sdk: u,
|
|
2880
2880
|
fields: B,
|
|
@@ -2884,7 +2884,7 @@ const kr = (o) => {
|
|
|
2884
2884
|
contentId: w,
|
|
2885
2885
|
contentName: k,
|
|
2886
2886
|
syncWithProfile: H
|
|
2887
|
-
}), { shadowRootElement:
|
|
2887
|
+
}), { shadowRootElement: z } = at(ct), { t: R } = dt(), G = ut(), de = pt(), Ae = Pt(), le = mt().primary, Ke = de.textPrimary, ge = (O == null ? void 0 : O.primaryColor) || ((ze = (me = de.palette) == null ? void 0 : me.primary) == null ? void 0 : ze.plainColor), U = (ro = (Te = de.palette) == null ? void 0 : Te.primary) == null ? void 0 : ro.onPrimary, Z = (O == null ? void 0 : O.primaryColor) || ((ce = (Le = de.palette) == null ? void 0 : Le.primary) == null ? void 0 : ce.primaryContainer), we = Ae.sm, b = {
|
|
2888
2888
|
background: {
|
|
2889
2889
|
surface: G.colorSchemes.light.palette.background.surface,
|
|
2890
2890
|
popup: G.colorSchemes.light.palette.background.popup
|
|
@@ -2953,7 +2953,7 @@ const kr = (o) => {
|
|
|
2953
2953
|
}
|
|
2954
2954
|
},
|
|
2955
2955
|
listbox: {
|
|
2956
|
-
container:
|
|
2956
|
+
container: z,
|
|
2957
2957
|
sx: {
|
|
2958
2958
|
zIndex: 10,
|
|
2959
2959
|
bgcolor: b.background.popup,
|
|
@@ -2978,7 +2978,7 @@ const kr = (o) => {
|
|
|
2978
2978
|
bgcolor: `${b.neutral.plainActiveBg} !important`,
|
|
2979
2979
|
color: `${b.neutral.outlinedColor} !important`
|
|
2980
2980
|
}
|
|
2981
|
-
}, Ge = (i == null ? void 0 : i.fullNameLabel) || R("leads.form.fullName"), oo = (i == null ? void 0 : i.fullNamePlaceholder) || R("leads.form.fullNamePlaceholder"), $ = (i == null ? void 0 : i.firstNameLabel) || R("leads.form.firstName"), m = (i == null ? void 0 : i.firstNamePlaceholder) || R("leads.form.firstNamePlaceholder"), Pe = (i == null ? void 0 : i.lastNameLabel) || R("leads.form.lastName"), N = (i == null ? void 0 : i.lastNamePlaceholder) || R("leads.form.lastNamePlaceholder"), ve = (i == null ? void 0 : i.emailLabel) || R("leads.form.email"), Re = (i == null ? void 0 : i.genderLabel) || R("leads.form.gender"), Ye = (i == null ? void 0 : i.genderPlaceholder) || R("leads.form.genderPlaceholder"),
|
|
2981
|
+
}, Ge = (i == null ? void 0 : i.fullNameLabel) || R("leads.form.fullName"), oo = (i == null ? void 0 : i.fullNamePlaceholder) || R("leads.form.fullNamePlaceholder"), $ = (i == null ? void 0 : i.firstNameLabel) || R("leads.form.firstName"), m = (i == null ? void 0 : i.firstNamePlaceholder) || R("leads.form.firstNamePlaceholder"), Pe = (i == null ? void 0 : i.lastNameLabel) || R("leads.form.lastName"), N = (i == null ? void 0 : i.lastNamePlaceholder) || R("leads.form.lastNamePlaceholder"), ve = (i == null ? void 0 : i.emailLabel) || R("leads.form.email"), Re = (i == null ? void 0 : i.genderLabel) || R("leads.form.gender"), Ye = (i == null ? void 0 : i.genderPlaceholder) || R("leads.form.genderPlaceholder"), Fe = (i == null ? void 0 : i.countryLabel) || R("leads.form.country"), ke = (i == null ? void 0 : i.countryPlaceholder) || R("leads.form.countryPlaceholder"), to = (i == null ? void 0 : i.phoneNumberLabel) || R("leads.form.phone"), co = (i == null ? void 0 : i.phoneNumberPlaceholder) || R("leads.form.phonePlaceholder"), no = Xo(
|
|
2982
2982
|
o.consents || [],
|
|
2983
2983
|
t
|
|
2984
2984
|
), Ee = (x) => {
|
|
@@ -3131,11 +3131,11 @@ const kr = (o) => {
|
|
|
3131
3131
|
)
|
|
3132
3132
|
] }),
|
|
3133
3133
|
B.includes("country") && /* @__PURE__ */ q(_e, { required: !0, disabled: j, children: [
|
|
3134
|
-
/* @__PURE__ */ a(je, { sx: X, children:
|
|
3134
|
+
/* @__PURE__ */ a(je, { sx: X, children: Fe }),
|
|
3135
3135
|
/* @__PURE__ */ a(
|
|
3136
3136
|
Mo,
|
|
3137
3137
|
{
|
|
3138
|
-
value:
|
|
3138
|
+
value: F.find((x) => x.code === J.country) || null,
|
|
3139
3139
|
onChange: T,
|
|
3140
3140
|
slotProps: {
|
|
3141
3141
|
input: { autoComplete: "new-country" },
|
|
@@ -3158,12 +3158,12 @@ const kr = (o) => {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
}
|
|
3160
3160
|
},
|
|
3161
|
-
options:
|
|
3161
|
+
options: F,
|
|
3162
3162
|
autoHighlight: !0,
|
|
3163
3163
|
getOptionLabel: (x) => x.label,
|
|
3164
3164
|
placeholder: ke,
|
|
3165
3165
|
renderOption: (x, ee) => /* @__PURE__ */ Ko(
|
|
3166
|
-
|
|
3166
|
+
zo,
|
|
3167
3167
|
{
|
|
3168
3168
|
...x,
|
|
3169
3169
|
key: `autocomplete-country-${ee.code}-${ee.label}`,
|
|
@@ -3219,11 +3219,11 @@ const kr = (o) => {
|
|
|
3219
3219
|
}
|
|
3220
3220
|
},
|
|
3221
3221
|
sx: Be.countrySelect,
|
|
3222
|
-
options:
|
|
3222
|
+
options: F,
|
|
3223
3223
|
autoHighlight: !0,
|
|
3224
3224
|
getOptionLabel: (x) => `+${x.phone}`,
|
|
3225
3225
|
renderOption: (x, ee) => /* @__PURE__ */ Ko(
|
|
3226
|
-
|
|
3226
|
+
zo,
|
|
3227
3227
|
{
|
|
3228
3228
|
...x,
|
|
3229
3229
|
key: `autocomplete-${ee.code}-${ee.label}`,
|