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,19 +1,20 @@
|
|
|
1
1
|
import { jsx as s, jsxs as q, Fragment as Xe } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { I as Wo, _ as d, t as he, v as Qe, P as e, J as re, r as Ve, s as Me, L as _t, g as ht, C as gt, q as Uo, f as Jo, B as fo, a as vt, b as zt, c as yt } from "./PrizeCard-DgHyperX.js";
|
|
3
3
|
import * as y from "react";
|
|
4
|
-
import { useState as oo, useEffect as
|
|
5
|
-
import { d as
|
|
6
|
-
import { F as Ae, C as
|
|
7
|
-
import { S as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
4
|
+
import { useState as oo, useEffect as Et, createElement as tt } from "react";
|
|
5
|
+
import { d as nt, f as rt, j as wt, k as Bt, m as Ft } from "./helpers-Bd9FT9hj.js";
|
|
6
|
+
import { F as Ae, C as bt } from "./FormControl-COjw1gQd.js";
|
|
7
|
+
import { g as Ht, s as M, u as _e, a as U, h as Ct, c as ze, r as Vt, e as xt, S as qo, d as Ko, j as Mt, k as it, l as lt, m as jt, n as Wt, T as Re, B as zo } from "./Button-COvmPv4P.js";
|
|
8
|
+
import { S as Go } from "./Stack-INH9bhkC.js";
|
|
9
|
+
import { a as at } from "./AlertMessage-CQ9WJHSb.js";
|
|
10
|
+
import { F as Ge } from "./FormLabel-e5_v5cjP.js";
|
|
11
|
+
import { S as Ut, a as Jt, b as qt, c as Kt, I as ao } from "./Input-er-Yyqtt.js";
|
|
12
|
+
import { k as wo, G as Gt, n as Yt, R as Xt, W as Qt, N as st, o as Zt, V as Yo, p as It, i as en, s as on, q as tn, g as nn, r as so, j as rn, t as ln, h as an, S as sn, a as cn } from "./Select-9gmhEo71.js";
|
|
13
|
+
import { C as dn } from "./Close-BTC6xyyj.js";
|
|
14
|
+
import { c as Ot, F as un } from "./CheckCircle-h7-xLUq-.js";
|
|
15
|
+
import { u as Eo, a as xo } from "./useEventCallback-vbTEFVPa.js";
|
|
16
|
+
import { P as pn } from "./Popper-OPgbZzY7.js";
|
|
17
|
+
import { T as mn } from "./Textarea-DeMxp3Zn.js";
|
|
17
18
|
const fn = (o) => {
|
|
18
19
|
const t = y.useRef({});
|
|
19
20
|
return y.useEffect(() => {
|
|
@@ -133,7 +134,7 @@ function On(o) {
|
|
|
133
134
|
readOnly: X = !1,
|
|
134
135
|
selectOnFocus: ve = !o.freeSolo,
|
|
135
136
|
value: Te
|
|
136
|
-
} = o, ae =
|
|
137
|
+
} = o, ae = Wo(Z);
|
|
137
138
|
let h = ie;
|
|
138
139
|
h = (i) => {
|
|
139
140
|
const n = ie(i);
|
|
@@ -173,7 +174,7 @@ function On(o) {
|
|
|
173
174
|
default: !1,
|
|
174
175
|
name: g,
|
|
175
176
|
state: "open"
|
|
176
|
-
}), [po, ro] = y.useState(!0), Be = !S && C != null && z === h(C), me = Se && !X,
|
|
177
|
+
}), [po, ro] = y.useState(!0), Be = !S && C != null && z === h(C), me = Se && !X, W = me ? F(
|
|
177
178
|
be.filter((i) => !(N && (S ? C : [C]).some((n) => n !== null && G(i, n)))),
|
|
178
179
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
179
180
|
// i.e. the filter predicate always returns true
|
|
@@ -182,7 +183,7 @@ function On(o) {
|
|
|
182
183
|
getOptionLabel: h
|
|
183
184
|
}
|
|
184
185
|
) : [], ye = fn({
|
|
185
|
-
filteredOptions:
|
|
186
|
+
filteredOptions: W,
|
|
186
187
|
value: C,
|
|
187
188
|
inputValue: z
|
|
188
189
|
});
|
|
@@ -190,7 +191,7 @@ function On(o) {
|
|
|
190
191
|
const i = C !== ye.value;
|
|
191
192
|
we && !i || D && !i || je(null, C);
|
|
192
193
|
}, [C, je, we, ye.value, D]);
|
|
193
|
-
const
|
|
194
|
+
const We = Se && W.length > 0 && !X;
|
|
194
195
|
if (process.env.NODE_ENV !== "production" && C !== null && !D && be.length > 0) {
|
|
195
196
|
const i = (S ? C : [C]).filter((n) => !be.some((m) => G(m, n)));
|
|
196
197
|
i.length > 0 && console.warn([`MUI: The value provided to ${g} is invalid.`, `None of the options match with \`${i.length > 1 ? JSON.stringify(i) : JSON.stringify(i[0])}\`.`, "You can use the `isOptionEqualToValue` prop to customize the equality test."].join(`
|
|
@@ -203,14 +204,14 @@ function On(o) {
|
|
|
203
204
|
S && Ce > C.length - 1 && (Ze(-1), De(-1));
|
|
204
205
|
}, [C, S, Ce, De]);
|
|
205
206
|
function io(i, n) {
|
|
206
|
-
if (!ce.current || i < 0 || i >=
|
|
207
|
+
if (!ce.current || i < 0 || i >= W.length)
|
|
207
208
|
return -1;
|
|
208
209
|
let m = i;
|
|
209
210
|
for (; ; ) {
|
|
210
211
|
const I = ce.current.querySelector(`[data-option-index="${m}"]`), B = a ? !1 : !I || I.disabled || I.getAttribute("aria-disabled") === "true";
|
|
211
212
|
if (I && I.hasAttribute("tabindex") && !B)
|
|
212
213
|
return m;
|
|
213
|
-
if (n === "next" ? m = (m + 1) %
|
|
214
|
+
if (n === "next" ? m = (m + 1) % W.length : m = (m - 1 + W.length) % W.length, m === i)
|
|
214
215
|
return -1;
|
|
215
216
|
}
|
|
216
217
|
}
|
|
@@ -219,7 +220,7 @@ function On(o) {
|
|
|
219
220
|
index: n,
|
|
220
221
|
reason: m = "auto"
|
|
221
222
|
}) => {
|
|
222
|
-
if (V.current = n, n === -1 ? H.current.removeAttribute("aria-activedescendant") : H.current.setAttribute("aria-activedescendant", `${ae}-option-${n}`), O && O(i, n === -1 ? null :
|
|
223
|
+
if (V.current = n, n === -1 ? H.current.removeAttribute("aria-activedescendant") : H.current.setAttribute("aria-activedescendant", `${ae}-option-${n}`), O && O(i, n === -1 ? null : W[n], m), !ce.current)
|
|
223
224
|
return;
|
|
224
225
|
const I = ce.current.querySelector(`[role="option"].${l}-focused`);
|
|
225
226
|
I && (I.classList.remove(`${l}-focused`), I.classList.remove(`${l}-focusVisible`));
|
|
@@ -244,7 +245,7 @@ function On(o) {
|
|
|
244
245
|
if (!me)
|
|
245
246
|
return;
|
|
246
247
|
const J = io((() => {
|
|
247
|
-
const ne =
|
|
248
|
+
const ne = W.length - 1;
|
|
248
249
|
if (n === "reset")
|
|
249
250
|
return to;
|
|
250
251
|
if (n === "start")
|
|
@@ -262,7 +263,7 @@ function On(o) {
|
|
|
262
263
|
if (J === -1)
|
|
263
264
|
H.current.value = z;
|
|
264
265
|
else {
|
|
265
|
-
const ne = h(
|
|
266
|
+
const ne = h(W[J]);
|
|
266
267
|
H.current.value = ne, ne.toLowerCase().indexOf(z.toLowerCase()) === 0 && z.length > 0 && H.current.setSelectionRange(z.length, ne.length);
|
|
267
268
|
}
|
|
268
269
|
}), $e = () => {
|
|
@@ -270,10 +271,10 @@ function On(o) {
|
|
|
270
271
|
const I = n ? h(n) : "", B = m ? h(m) : "";
|
|
271
272
|
return I === B;
|
|
272
273
|
};
|
|
273
|
-
if (V.current !== -1 && ye.filteredOptions && ye.filteredOptions.length !==
|
|
274
|
+
if (V.current !== -1 && ye.filteredOptions && ye.filteredOptions.length !== W.length && ye.inputValue === z && (S ? C.length === ye.value.length && ye.value.every((n, m) => h(C[m]) === h(n)) : i(ye.value, C))) {
|
|
274
275
|
const n = ye.filteredOptions[V.current];
|
|
275
276
|
if (n)
|
|
276
|
-
return Io(
|
|
277
|
+
return Io(W, (m) => h(m) === h(n));
|
|
277
278
|
}
|
|
278
279
|
return -1;
|
|
279
280
|
}, Fe = y.useCallback(() => {
|
|
@@ -285,7 +286,7 @@ function On(o) {
|
|
|
285
286
|
return;
|
|
286
287
|
}
|
|
287
288
|
const n = S ? C[0] : C;
|
|
288
|
-
if (
|
|
289
|
+
if (W.length === 0 || n == null) {
|
|
289
290
|
w({
|
|
290
291
|
diff: "reset"
|
|
291
292
|
});
|
|
@@ -293,10 +294,10 @@ function On(o) {
|
|
|
293
294
|
}
|
|
294
295
|
if (ce.current) {
|
|
295
296
|
if (n != null) {
|
|
296
|
-
const m =
|
|
297
|
+
const m = W[V.current];
|
|
297
298
|
if (S && m && Io(C, (B) => G(m, B)) !== -1)
|
|
298
299
|
return;
|
|
299
|
-
const I = Io(
|
|
300
|
+
const I = Io(W, (B) => G(B, n));
|
|
300
301
|
I === -1 ? w({
|
|
301
302
|
diff: "reset"
|
|
302
303
|
}) : L({
|
|
@@ -304,9 +305,9 @@ function On(o) {
|
|
|
304
305
|
});
|
|
305
306
|
return;
|
|
306
307
|
}
|
|
307
|
-
if (V.current >=
|
|
308
|
+
if (V.current >= W.length - 1) {
|
|
308
309
|
L({
|
|
309
|
-
index:
|
|
310
|
+
index: W.length - 1
|
|
310
311
|
});
|
|
311
312
|
return;
|
|
312
313
|
}
|
|
@@ -316,7 +317,7 @@ function On(o) {
|
|
|
316
317
|
}
|
|
317
318
|
}, [
|
|
318
319
|
// Only sync the highlighted index when the option switch between empty and not
|
|
319
|
-
|
|
320
|
+
W.length,
|
|
320
321
|
// Don't sync the highlighted index with the value when multiple
|
|
321
322
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
322
323
|
S ? !1 : C,
|
|
@@ -326,8 +327,8 @@ function On(o) {
|
|
|
326
327
|
me,
|
|
327
328
|
z,
|
|
328
329
|
S
|
|
329
|
-
]),
|
|
330
|
-
|
|
330
|
+
]), Ue = xo((i) => {
|
|
331
|
+
Ht(ce, i), i && Fe();
|
|
331
332
|
});
|
|
332
333
|
process.env.NODE_ENV !== "production" && y.useEffect(() => {
|
|
333
334
|
(!H.current || H.current.nodeName !== "INPUT") && (H.current && H.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${g} 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(`
|
|
@@ -443,7 +444,7 @@ function On(o) {
|
|
|
443
444
|
break;
|
|
444
445
|
case "Enter":
|
|
445
446
|
if (V.current !== -1 && me) {
|
|
446
|
-
const m =
|
|
447
|
+
const m = W[V.current], I = j ? j(m) : !1;
|
|
447
448
|
if (n.preventDefault(), I)
|
|
448
449
|
return;
|
|
449
450
|
xe(n, m, "selectOption"), r && H.current.setSelectionRange(H.current.value.length, H.current.value.length);
|
|
@@ -476,7 +477,7 @@ function On(o) {
|
|
|
476
477
|
H.current.focus();
|
|
477
478
|
return;
|
|
478
479
|
}
|
|
479
|
-
eo(!1), oe.current = !0, Ee.current = !1, c && V.current !== -1 && me ? xe(i,
|
|
480
|
+
eo(!1), oe.current = !0, Ee.current = !1, c && V.current !== -1 && me ? xe(i, W[V.current], "blur") : c && D && z !== "" ? xe(i, z, "blur", "freeSolo") : x && je(i, C), te(i, "blur");
|
|
480
481
|
}, Do = (i) => {
|
|
481
482
|
const n = i.target.value;
|
|
482
483
|
z !== n && (Oe(n), ro(!1), A && A(i, n, "input")), n === "" ? !f && !S && de(i, null, "clear") : Le(i);
|
|
@@ -495,7 +496,7 @@ function On(o) {
|
|
|
495
496
|
}), fe.current = !0;
|
|
496
497
|
}, ko = (i) => {
|
|
497
498
|
const n = Number(i.currentTarget.getAttribute("data-option-index"));
|
|
498
|
-
xe(i,
|
|
499
|
+
xe(i, W[n], "selectOption"), fe.current = !1;
|
|
499
500
|
}, So = (i) => (n) => {
|
|
500
501
|
const m = C.slice();
|
|
501
502
|
m.splice(i, 1), de(n, m, "removeOption", {
|
|
@@ -512,11 +513,11 @@ function On(o) {
|
|
|
512
513
|
};
|
|
513
514
|
let mo = D && z.length > 0;
|
|
514
515
|
mo = mo || (S ? C.length > 0 : C !== null);
|
|
515
|
-
let Co =
|
|
516
|
+
let Co = W;
|
|
516
517
|
if (K) {
|
|
517
518
|
const i = /* @__PURE__ */ new Map();
|
|
518
519
|
let n = !1;
|
|
519
|
-
Co =
|
|
520
|
+
Co = W.reduce((m, I, B) => {
|
|
520
521
|
const J = K(I);
|
|
521
522
|
return m.length > 0 && m[m.length - 1].group === J ? m[m.length - 1].options.push(I) : (process.env.NODE_ENV !== "production" && (i.get(J) && !n && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${g} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), n = !0), i.set(J, !0)), m.push({
|
|
522
523
|
key: B,
|
|
@@ -528,7 +529,7 @@ function On(o) {
|
|
|
528
529
|
}
|
|
529
530
|
return p && we && yo(), {
|
|
530
531
|
getRootProps: (i = {}) => d({
|
|
531
|
-
"aria-owns":
|
|
532
|
+
"aria-owns": We ? `${ae}-listbox` : null
|
|
532
533
|
}, i, {
|
|
533
534
|
onKeyDown: To(i),
|
|
534
535
|
onMouseDown: $o,
|
|
@@ -549,8 +550,8 @@ function On(o) {
|
|
|
549
550
|
// only have an opinion about this when closed
|
|
550
551
|
"aria-activedescendant": me ? "" : null,
|
|
551
552
|
"aria-autocomplete": r ? "both" : "list",
|
|
552
|
-
"aria-controls":
|
|
553
|
-
"aria-expanded":
|
|
553
|
+
"aria-controls": We ? `${ae}-listbox` : void 0,
|
|
554
|
+
"aria-expanded": We,
|
|
554
555
|
// Disable browser's suggestion that might overlap with the popup.
|
|
555
556
|
// Handle autocomplete but not autofill.
|
|
556
557
|
autoComplete: "off",
|
|
@@ -583,7 +584,7 @@ function On(o) {
|
|
|
583
584
|
role: "listbox",
|
|
584
585
|
id: `${ae}-listbox`,
|
|
585
586
|
"aria-labelledby": `${ae}-label`,
|
|
586
|
-
ref:
|
|
587
|
+
ref: Ue,
|
|
587
588
|
onMouseDown: (i) => {
|
|
588
589
|
i.preventDefault();
|
|
589
590
|
}
|
|
@@ -778,7 +779,7 @@ const Tn = ["component", "className", "children", "nested", "sticky", "variant",
|
|
|
778
779
|
component: ge,
|
|
779
780
|
slots: j,
|
|
780
781
|
slotProps: E
|
|
781
|
-
}), [O, A] =
|
|
782
|
+
}), [O, A] = U("root", {
|
|
782
783
|
additionalProps: {
|
|
783
784
|
role: G
|
|
784
785
|
},
|
|
@@ -787,12 +788,12 @@ const Tn = ["component", "className", "children", "nested", "sticky", "variant",
|
|
|
787
788
|
elementType: Pn,
|
|
788
789
|
externalForwardedProps: _,
|
|
789
790
|
ownerState: S
|
|
790
|
-
}), [le, Y] =
|
|
791
|
+
}), [le, Y] = U("startAction", {
|
|
791
792
|
className: P.startAction,
|
|
792
793
|
elementType: Nn,
|
|
793
794
|
externalForwardedProps: _,
|
|
794
795
|
ownerState: S
|
|
795
|
-
}), [ee, be] =
|
|
796
|
+
}), [ee, be] = U("endAction", {
|
|
796
797
|
className: P.endAction,
|
|
797
798
|
elementType: kn,
|
|
798
799
|
externalForwardedProps: _,
|
|
@@ -809,7 +810,7 @@ const Tn = ["component", "className", "children", "nested", "sticky", "variant",
|
|
|
809
810
|
var Te;
|
|
810
811
|
return /* @__PURE__ */ y.isValidElement(X) ? /* @__PURE__ */ y.cloneElement(X, d({}, ve === 0 && {
|
|
811
812
|
"data-first-child": ""
|
|
812
|
-
},
|
|
813
|
+
}, Ct(X, ["ListItem"]) && {
|
|
813
814
|
// The ListItem of ListItem should not be 'li'
|
|
814
815
|
component: ((Te = X.props) == null ? void 0 : Te.component) || "div"
|
|
815
816
|
})) : X;
|
|
@@ -933,7 +934,7 @@ const An = ["children", "className", "color", "onClick", "disabled", "size", "va
|
|
|
933
934
|
var l, r, u;
|
|
934
935
|
const c = (l = o.variants[t.variant]) == null ? void 0 : l[t.color], {
|
|
935
936
|
borderRadius: b
|
|
936
|
-
} =
|
|
937
|
+
} = Vt({
|
|
937
938
|
theme: o,
|
|
938
939
|
ownerState: t
|
|
939
940
|
}, ["borderRadius"]);
|
|
@@ -1111,7 +1112,7 @@ const An = ["children", "className", "color", "onClick", "disabled", "size", "va
|
|
|
1111
1112
|
}), j = typeof R.action == "function" ? R.action(D) : R.action, E = y.useRef(null), {
|
|
1112
1113
|
focusVisible: ie,
|
|
1113
1114
|
getRootProps: K
|
|
1114
|
-
} =
|
|
1115
|
+
} = xt(d({}, j, {
|
|
1115
1116
|
disabled: T,
|
|
1116
1117
|
rootRef: E
|
|
1117
1118
|
}));
|
|
@@ -1120,18 +1121,18 @@ const An = ["children", "className", "color", "onClick", "disabled", "size", "va
|
|
|
1120
1121
|
component: p,
|
|
1121
1122
|
slots: a,
|
|
1122
1123
|
slotProps: R
|
|
1123
|
-
}), [se, ge] =
|
|
1124
|
+
}), [se, ge] = U("root", {
|
|
1124
1125
|
ref: l,
|
|
1125
1126
|
className: Qe(Q.root, c),
|
|
1126
1127
|
elementType: _n,
|
|
1127
1128
|
externalForwardedProps: Z,
|
|
1128
1129
|
ownerState: D
|
|
1129
|
-
}), [G, S] =
|
|
1130
|
+
}), [G, S] = U("label", {
|
|
1130
1131
|
className: Q.label,
|
|
1131
1132
|
elementType: zn,
|
|
1132
1133
|
externalForwardedProps: Z,
|
|
1133
1134
|
ownerState: D
|
|
1134
|
-
}), P =
|
|
1135
|
+
}), P = Wo(S.id), [_, O] = U("action", {
|
|
1135
1136
|
className: Q.action,
|
|
1136
1137
|
elementType: En,
|
|
1137
1138
|
externalForwardedProps: Z,
|
|
@@ -1142,12 +1143,12 @@ const An = ["children", "className", "color", "onClick", "disabled", "size", "va
|
|
|
1142
1143
|
as: j == null ? void 0 : j.component,
|
|
1143
1144
|
onClick: x
|
|
1144
1145
|
}
|
|
1145
|
-
}), [A, le] =
|
|
1146
|
+
}), [A, le] = U("startDecorator", {
|
|
1146
1147
|
className: Q.startDecorator,
|
|
1147
1148
|
elementType: wn,
|
|
1148
1149
|
externalForwardedProps: Z,
|
|
1149
1150
|
ownerState: D
|
|
1150
|
-
}), [Y, ee] =
|
|
1151
|
+
}), [Y, ee] = U("endDecorator", {
|
|
1151
1152
|
className: Q.endDecorator,
|
|
1152
1153
|
elementType: Bn,
|
|
1153
1154
|
externalForwardedProps: Z,
|
|
@@ -1269,7 +1270,7 @@ const Vn = ["children", "variant", "color", "disabled", "onKeyDown", "onDelete",
|
|
|
1269
1270
|
root: ["root", u && "disabled", t && "focusVisible", l && `variant${re(l)}`, r && `color${re(r)}`]
|
|
1270
1271
|
};
|
|
1271
1272
|
return ze(c, Hn, {});
|
|
1272
|
-
},
|
|
1273
|
+
}, Wn = M(qo, {
|
|
1273
1274
|
name: "JoyChipDelete",
|
|
1274
1275
|
slot: "Root",
|
|
1275
1276
|
overridesResolver: (o, t) => t.root
|
|
@@ -1310,10 +1311,10 @@ const Vn = ["children", "variant", "color", "disabled", "onKeyDown", "onDelete",
|
|
|
1310
1311
|
} = r, a = he(r, Vn), R = y.useContext(Qo), {
|
|
1311
1312
|
variant: F = c,
|
|
1312
1313
|
color: N = b
|
|
1313
|
-
} = It(t.variant, t.color, !0), D = t.color || N, j = x ?? R.disabled, E = y.useRef(null), ie =
|
|
1314
|
+
} = It(t.variant, t.color, !0), D = t.color || N, j = x ?? R.disabled, E = y.useRef(null), ie = Ko(E, l), {
|
|
1314
1315
|
focusVisible: K,
|
|
1315
1316
|
getRootProps: Q
|
|
1316
|
-
} =
|
|
1317
|
+
} = xt(d({}, r, {
|
|
1317
1318
|
disabled: j,
|
|
1318
1319
|
rootRef: ie
|
|
1319
1320
|
})), Z = d({}, r, {
|
|
@@ -1329,9 +1330,9 @@ const Vn = ["children", "variant", "color", "disabled", "onKeyDown", "onDelete",
|
|
|
1329
1330
|
!j && g && g(A), v && v(A);
|
|
1330
1331
|
}, S = (A) => {
|
|
1331
1332
|
["Backspace", "Enter", "Delete"].includes(A.key) && (A.preventDefault(), !j && g && g(A)), T && T(A);
|
|
1332
|
-
}, [P, _] =
|
|
1333
|
+
}, [P, _] = U("root", {
|
|
1333
1334
|
ref: l,
|
|
1334
|
-
elementType:
|
|
1335
|
+
elementType: Wn,
|
|
1335
1336
|
getSlotProps: Q,
|
|
1336
1337
|
externalForwardedProps: ge,
|
|
1337
1338
|
ownerState: Z,
|
|
@@ -1408,7 +1409,7 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
|
|
|
1408
1409
|
*/
|
|
1409
1410
|
variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
|
|
1410
1411
|
});
|
|
1411
|
-
function
|
|
1412
|
+
function Un(o) {
|
|
1412
1413
|
return Me("MuiListSubheader", o);
|
|
1413
1414
|
}
|
|
1414
1415
|
Ve("MuiListSubheader", ["root", "sticky", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
|
|
@@ -1420,7 +1421,7 @@ const Jn = ["component", "className", "children", "id", "sticky", "variant", "co
|
|
|
1420
1421
|
} = o, u = {
|
|
1421
1422
|
root: ["root", r && "sticky", l && `color${re(l)}`, t && `variant${re(t)}`]
|
|
1422
1423
|
};
|
|
1423
|
-
return ze(u,
|
|
1424
|
+
return ze(u, Un, {});
|
|
1424
1425
|
}, Kn = M("div", {
|
|
1425
1426
|
name: "JoyListSubheader",
|
|
1426
1427
|
slot: "Root",
|
|
@@ -1452,7 +1453,7 @@ const Jn = ["component", "className", "children", "id", "sticky", "variant", "co
|
|
|
1452
1453
|
}, {
|
|
1453
1454
|
color: t.color ? `var(--_Link-color, rgba(${(l = o.vars.palette[t.color]) == null ? void 0 : l.mainChannel} / 1))` : o.vars.palette.text.tertiary
|
|
1454
1455
|
}, t.instanceColor && {
|
|
1455
|
-
[`&:not([${
|
|
1456
|
+
[`&:not([${Mt}])`]: {
|
|
1456
1457
|
"--_Link-color": o.vars.palette.text.secondary
|
|
1457
1458
|
}
|
|
1458
1459
|
}, (r = o.variants[t.variant]) == null ? void 0 : r[t.color]);
|
|
@@ -1470,7 +1471,7 @@ const Jn = ["component", "className", "children", "id", "sticky", "variant", "co
|
|
|
1470
1471
|
color: v,
|
|
1471
1472
|
slots: f = {},
|
|
1472
1473
|
slotProps: $ = {}
|
|
1473
|
-
} = r, p = he(r, Jn), a =
|
|
1474
|
+
} = r, p = he(r, Jn), a = Wo(x), R = y.useContext(Xo);
|
|
1474
1475
|
y.useEffect(() => {
|
|
1475
1476
|
R && R(a || "");
|
|
1476
1477
|
}, [R, a]);
|
|
@@ -1485,7 +1486,7 @@ const Jn = ["component", "className", "children", "id", "sticky", "variant", "co
|
|
|
1485
1486
|
component: u,
|
|
1486
1487
|
slots: f,
|
|
1487
1488
|
slotProps: $
|
|
1488
|
-
}), [j, E] =
|
|
1489
|
+
}), [j, E] = U("root", {
|
|
1489
1490
|
ref: l,
|
|
1490
1491
|
className: Qe(N.root, c),
|
|
1491
1492
|
elementType: Kn,
|
|
@@ -1633,7 +1634,7 @@ const Xn = ["anchorEl", "direction", "disablePortal", "keepMounted", "modifiers"
|
|
|
1633
1634
|
component: b,
|
|
1634
1635
|
slots: v,
|
|
1635
1636
|
slotProps: f
|
|
1636
|
-
}), [N, D] =
|
|
1637
|
+
}), [N, D] = U("root", {
|
|
1637
1638
|
ref: l,
|
|
1638
1639
|
className: Qe(R.root, c),
|
|
1639
1640
|
elementType: or,
|
|
@@ -1753,7 +1754,7 @@ const rr = ["children", "component", "color", "variant", "className", "slots", "
|
|
|
1753
1754
|
component: c,
|
|
1754
1755
|
slots: g,
|
|
1755
1756
|
slotProps: v
|
|
1756
|
-
}), [N, D] =
|
|
1757
|
+
}), [N, D] = U("root", {
|
|
1757
1758
|
ref: l,
|
|
1758
1759
|
className: Qe(R.root, T),
|
|
1759
1760
|
elementType: lr,
|
|
@@ -1853,7 +1854,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1853
1854
|
limitTag: ["limitTag"]
|
|
1854
1855
|
};
|
|
1855
1856
|
return ze(v, Gn, {});
|
|
1856
|
-
}, vr = M(
|
|
1857
|
+
}, vr = M(Ut, {
|
|
1857
1858
|
name: "JoyAutocomplete",
|
|
1858
1859
|
slot: "Root",
|
|
1859
1860
|
overridesResolver: (o, t) => t.root
|
|
@@ -1921,7 +1922,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1921
1922
|
"--Button-margin": "0px",
|
|
1922
1923
|
"--IconButton-margin": "0px",
|
|
1923
1924
|
"--Icon-margin": "0px"
|
|
1924
|
-
})), Ir = M(
|
|
1925
|
+
})), Ir = M(qo, {
|
|
1925
1926
|
name: "JoyAutocomplete",
|
|
1926
1927
|
slot: "ClearIndicator",
|
|
1927
1928
|
overridesResolver: (o, t) => t.clearIndicator
|
|
@@ -1934,7 +1935,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
1934
1935
|
}, {
|
|
1935
1936
|
marginInlineStart: "calc(var(--_Input-paddingBlock) / 2)",
|
|
1936
1937
|
visibility: o.focused ? "visible" : "hidden"
|
|
1937
|
-
})), Or = M(
|
|
1938
|
+
})), Or = M(qo, {
|
|
1938
1939
|
name: "JoyAutocomplete",
|
|
1939
1940
|
slot: "PopupIndicator",
|
|
1940
1941
|
overridesResolver: (o, t) => t.popupIndicator
|
|
@@ -2039,9 +2040,9 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2039
2040
|
getOptionProps: ro,
|
|
2040
2041
|
value: Be,
|
|
2041
2042
|
dirty: me,
|
|
2042
|
-
popupOpen:
|
|
2043
|
+
popupOpen: W,
|
|
2043
2044
|
focused: ye,
|
|
2044
|
-
focusedTag:
|
|
2045
|
+
focusedTag: We,
|
|
2045
2046
|
anchorEl: De,
|
|
2046
2047
|
setAnchorEl: io,
|
|
2047
2048
|
inputValue: L,
|
|
@@ -2055,7 +2056,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2055
2056
|
onMouseDown: $e
|
|
2056
2057
|
} = eo(), {
|
|
2057
2058
|
onClick: Fe
|
|
2058
|
-
} = we(),
|
|
2059
|
+
} = we(), Ue = !D && !Oe && me && !X, Le = (!Q || K === !0) && K !== !1, te = d({
|
|
2059
2060
|
instanceColor: t.color
|
|
2060
2061
|
}, v, {
|
|
2061
2062
|
value: Be,
|
|
@@ -2063,10 +2064,10 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2063
2064
|
focused: ye,
|
|
2064
2065
|
getOptionLabel: se,
|
|
2065
2066
|
hasOptions: !!w.length,
|
|
2066
|
-
hasClearIcon:
|
|
2067
|
+
hasClearIcon: Ue,
|
|
2067
2068
|
hasPopupIcon: Le,
|
|
2068
|
-
inputFocused:
|
|
2069
|
-
popupOpen:
|
|
2069
|
+
inputFocused: We === -1,
|
|
2070
|
+
popupOpen: W,
|
|
2070
2071
|
size: ke,
|
|
2071
2072
|
color: z,
|
|
2072
2073
|
variant: ue
|
|
@@ -2105,12 +2106,12 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2105
2106
|
}, pe);
|
|
2106
2107
|
});
|
|
2107
2108
|
}
|
|
2108
|
-
const Oo =
|
|
2109
|
+
const Oo = Ko(l, io), go = {
|
|
2109
2110
|
[Ye.disabled]: Oe,
|
|
2110
2111
|
[Ye.error]: C,
|
|
2111
2112
|
[Ye.focused]: ye,
|
|
2112
2113
|
[Ye.formControl]: !!V
|
|
2113
|
-
}, [vo, To] =
|
|
2114
|
+
}, [vo, To] = U("root", {
|
|
2114
2115
|
ref: Oo,
|
|
2115
2116
|
className: [de.root, go],
|
|
2116
2117
|
elementType: vr,
|
|
@@ -2122,14 +2123,14 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2122
2123
|
Fe && Fe(k), k.currentTarget === k.target && $e && $e(k);
|
|
2123
2124
|
}
|
|
2124
2125
|
}
|
|
2125
|
-
}), [Lo, yo] =
|
|
2126
|
+
}), [Lo, yo] = U("wrapper", {
|
|
2126
2127
|
className: de.wrapper,
|
|
2127
2128
|
elementType: yr,
|
|
2128
2129
|
externalForwardedProps: fe,
|
|
2129
2130
|
ownerState: te
|
|
2130
2131
|
}), Do = {
|
|
2131
2132
|
[Ye.disabled]: Oe
|
|
2132
|
-
}, [Po, No] =
|
|
2133
|
+
}, [Po, No] = U("input", {
|
|
2133
2134
|
className: [de.input, Do],
|
|
2134
2135
|
elementType: br,
|
|
2135
2136
|
getSlotProps: (k) => {
|
|
@@ -2168,17 +2169,17 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2168
2169
|
"aria-labelledby": p,
|
|
2169
2170
|
"aria-describedby": f ?? (V == null ? void 0 : V["aria-describedby"])
|
|
2170
2171
|
}
|
|
2171
|
-
}), [ko, So] =
|
|
2172
|
+
}), [ko, So] = U("startDecorator", {
|
|
2172
2173
|
className: de.startDecorator,
|
|
2173
2174
|
elementType: Cr,
|
|
2174
2175
|
externalForwardedProps: fe,
|
|
2175
2176
|
ownerState: te
|
|
2176
|
-
}), [bo, $o] =
|
|
2177
|
+
}), [bo, $o] = U("endDecorator", {
|
|
2177
2178
|
className: de.endDecorator,
|
|
2178
2179
|
elementType: xr,
|
|
2179
2180
|
externalForwardedProps: fe,
|
|
2180
2181
|
ownerState: te
|
|
2181
|
-
}), [Ao, Ro] =
|
|
2182
|
+
}), [Ao, Ro] = U("clearIndicator", {
|
|
2182
2183
|
className: de.clearIndicator,
|
|
2183
2184
|
elementType: Ir,
|
|
2184
2185
|
getSlotProps: Se,
|
|
@@ -2194,7 +2195,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2194
2195
|
"aria-label": F,
|
|
2195
2196
|
title: F
|
|
2196
2197
|
}
|
|
2197
|
-
}), [mo, Co] =
|
|
2198
|
+
}), [mo, Co] = U("popupIndicator", {
|
|
2198
2199
|
className: de.popupIndicator,
|
|
2199
2200
|
elementType: Or,
|
|
2200
2201
|
getSlotProps: je,
|
|
@@ -2208,11 +2209,11 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2208
2209
|
}),
|
|
2209
2210
|
additionalProps: {
|
|
2210
2211
|
disabled: Oe,
|
|
2211
|
-
"aria-label":
|
|
2212
|
-
title:
|
|
2212
|
+
"aria-label": W ? N : Y,
|
|
2213
|
+
title: W ? N : Y,
|
|
2213
2214
|
type: "button"
|
|
2214
2215
|
}
|
|
2215
|
-
}), [i, n] =
|
|
2216
|
+
}), [i, n] = U("listbox", {
|
|
2216
2217
|
className: de.listbox,
|
|
2217
2218
|
elementType: Tr,
|
|
2218
2219
|
getSlotProps: po,
|
|
@@ -2226,17 +2227,17 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2226
2227
|
}),
|
|
2227
2228
|
additionalProps: {
|
|
2228
2229
|
anchorEl: De,
|
|
2229
|
-
open:
|
|
2230
|
+
open: W,
|
|
2230
2231
|
style: De ? {
|
|
2231
2232
|
width: De.clientWidth
|
|
2232
2233
|
} : {}
|
|
2233
2234
|
}
|
|
2234
|
-
}), [m, I] =
|
|
2235
|
+
}), [m, I] = U("loading", {
|
|
2235
2236
|
className: de.loading,
|
|
2236
2237
|
elementType: Dr,
|
|
2237
2238
|
externalForwardedProps: fe,
|
|
2238
2239
|
ownerState: te
|
|
2239
|
-
}), [B, J] =
|
|
2240
|
+
}), [B, J] = U("noOptions", {
|
|
2240
2241
|
className: de.noOptions,
|
|
2241
2242
|
elementType: Pr,
|
|
2242
2243
|
externalForwardedProps: fe,
|
|
@@ -2247,7 +2248,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2247
2248
|
k.preventDefault();
|
|
2248
2249
|
}
|
|
2249
2250
|
}
|
|
2250
|
-
}), [ne, Ie] =
|
|
2251
|
+
}), [ne, Ie] = U("limitTag", {
|
|
2251
2252
|
className: de.limitTag,
|
|
2252
2253
|
elementType: Nr,
|
|
2253
2254
|
externalForwardedProps: fe,
|
|
@@ -2259,7 +2260,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2259
2260
|
children: Z(k)
|
|
2260
2261
|
}), xe.length)));
|
|
2261
2262
|
}
|
|
2262
|
-
const [lo, $t] =
|
|
2263
|
+
const [lo, $t] = U("option", {
|
|
2263
2264
|
className: de.option,
|
|
2264
2265
|
elementType: Lr,
|
|
2265
2266
|
externalForwardedProps: fe,
|
|
@@ -2340,7 +2341,7 @@ const ar = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
2340
2341
|
children: [xe, /* @__PURE__ */ s(Po, d({}, No))]
|
|
2341
2342
|
})), E && /* @__PURE__ */ s(bo, d({}, $o, {
|
|
2342
2343
|
children: E
|
|
2343
|
-
})),
|
|
2344
|
+
})), Ue ? /* @__PURE__ */ s(Ao, d({}, Ro, {
|
|
2344
2345
|
children: R
|
|
2345
2346
|
})) : null, Le ? /* @__PURE__ */ s(mo, d({}, Co, {
|
|
2346
2347
|
children: be
|
|
@@ -2445,7 +2446,7 @@ process.env.NODE_ENV !== "production" && (Vo.propTypes = {
|
|
|
2445
2446
|
* The default value. Use when the component is not controlled.
|
|
2446
2447
|
* @default props.multiple ? [] : null
|
|
2447
2448
|
*/
|
|
2448
|
-
defaultValue:
|
|
2449
|
+
defaultValue: it(e.any, (o) => o.multiple && o.defaultValue !== void 0 && !Array.isArray(o.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${o.defaultValue} was provided.`].join(`
|
|
2449
2450
|
`)) : null),
|
|
2450
2451
|
/**
|
|
2451
2452
|
* If `true`, the input can't be cleared.
|
|
@@ -2786,7 +2787,7 @@ process.env.NODE_ENV !== "production" && (Vo.propTypes = {
|
|
|
2786
2787
|
* The value must have reference equality with the option in order to be selected.
|
|
2787
2788
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
2788
2789
|
*/
|
|
2789
|
-
value:
|
|
2790
|
+
value: it(e.any, (o) => o.multiple && o.value !== void 0 && !Array.isArray(o.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${o.value} was provided.`].join(`
|
|
2790
2791
|
`)) : null),
|
|
2791
2792
|
/**
|
|
2792
2793
|
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
@@ -2946,7 +2947,7 @@ const ft = Ve("MuiLink", ["root", "disabled", "focusVisible", "colorPrimary", "c
|
|
|
2946
2947
|
color: u = "primary",
|
|
2947
2948
|
textColor: c,
|
|
2948
2949
|
variant: b
|
|
2949
|
-
} = r, x = he(r, Sr), T = y.useContext(
|
|
2950
|
+
} = r, x = he(r, Sr), T = y.useContext(lt), g = y.useContext(jt), v = _t(d({}, x, {
|
|
2950
2951
|
color: c
|
|
2951
2952
|
})), {
|
|
2952
2953
|
children: f,
|
|
@@ -2966,7 +2967,7 @@ const ft = Ve("MuiLink", ["root", "disabled", "focusVisible", "colorPrimary", "c
|
|
|
2966
2967
|
onBlur: ge,
|
|
2967
2968
|
onFocus: G,
|
|
2968
2969
|
ref: S
|
|
2969
|
-
} =
|
|
2970
|
+
} = Wt(), [P, _] = y.useState(!1), O = Ko(l, S), A = (oe) => {
|
|
2970
2971
|
ge(oe), se.current === !1 && _(!1), p && p(oe);
|
|
2971
2972
|
}, le = (oe) => {
|
|
2972
2973
|
G(oe), se.current === !0 && _(!0), a && a(oe);
|
|
@@ -2983,7 +2984,7 @@ const ft = Ve("MuiLink", ["root", "disabled", "focusVisible", "colorPrimary", "c
|
|
|
2983
2984
|
component: E,
|
|
2984
2985
|
slots: ie,
|
|
2985
2986
|
slotProps: K
|
|
2986
|
-
}), [X, ve] =
|
|
2987
|
+
}), [X, ve] = U("root", {
|
|
2987
2988
|
additionalProps: {
|
|
2988
2989
|
onBlur: A,
|
|
2989
2990
|
onFocus: le
|
|
@@ -2993,23 +2994,23 @@ const ft = Ve("MuiLink", ["root", "disabled", "focusVisible", "colorPrimary", "c
|
|
|
2993
2994
|
elementType: zr,
|
|
2994
2995
|
externalForwardedProps: be,
|
|
2995
2996
|
ownerState: Y
|
|
2996
|
-
}), [Te, ae] =
|
|
2997
|
+
}), [Te, ae] = U("startDecorator", {
|
|
2997
2998
|
className: ee.startDecorator,
|
|
2998
2999
|
elementType: Rr,
|
|
2999
3000
|
externalForwardedProps: be,
|
|
3000
3001
|
ownerState: Y
|
|
3001
|
-
}), [h, Ee] =
|
|
3002
|
+
}), [h, Ee] = U("endDecorator", {
|
|
3002
3003
|
className: ee.endDecorator,
|
|
3003
3004
|
elementType: _r,
|
|
3004
3005
|
externalForwardedProps: be,
|
|
3005
3006
|
ownerState: Y
|
|
3006
3007
|
});
|
|
3007
|
-
return /* @__PURE__ */ s(
|
|
3008
|
+
return /* @__PURE__ */ s(lt.Provider, {
|
|
3008
3009
|
value: !0,
|
|
3009
3010
|
children: /* @__PURE__ */ q(X, d({}, ve, {
|
|
3010
3011
|
children: [j && /* @__PURE__ */ s(Te, d({}, ae, {
|
|
3011
3012
|
children: j
|
|
3012
|
-
})),
|
|
3013
|
+
})), Ct(f, ["Skeleton"]) ? /* @__PURE__ */ y.cloneElement(f, {
|
|
3013
3014
|
variant: f.props.variant || "inline"
|
|
3014
3015
|
}) : f, D && /* @__PURE__ */ s(h, d({}, Ee, {
|
|
3015
3016
|
children: D
|
|
@@ -3132,7 +3133,7 @@ const wr = ["component", "className", "children", "slots", "slotProps"], Br = ()
|
|
|
3132
3133
|
component: u,
|
|
3133
3134
|
slots: x,
|
|
3134
3135
|
slotProps: T
|
|
3135
|
-
}), [p, a] =
|
|
3136
|
+
}), [p, a] = U("root", {
|
|
3136
3137
|
ref: l,
|
|
3137
3138
|
className: Qe(f.root, c),
|
|
3138
3139
|
elementType: Fr,
|
|
@@ -3219,7 +3220,7 @@ const Vr = ["component", "className", "children", "slots", "slotProps"], Mr = ()
|
|
|
3219
3220
|
component: u,
|
|
3220
3221
|
slots: x,
|
|
3221
3222
|
slotProps: T
|
|
3222
|
-
}), [a, R] =
|
|
3223
|
+
}), [a, R] = U("root", {
|
|
3223
3224
|
ref: l,
|
|
3224
3225
|
className: Qe($.root, c),
|
|
3225
3226
|
elementType: jr,
|
|
@@ -3267,7 +3268,7 @@ process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
|
3267
3268
|
*/
|
|
3268
3269
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
3269
3270
|
});
|
|
3270
|
-
function
|
|
3271
|
+
function Wr(o) {
|
|
3271
3272
|
const {
|
|
3272
3273
|
sdk: t,
|
|
3273
3274
|
fields: l = ["fullName", "email"],
|
|
@@ -3277,19 +3278,19 @@ function Ur(o) {
|
|
|
3277
3278
|
contentId: b = "",
|
|
3278
3279
|
contentName: x = "",
|
|
3279
3280
|
syncWithProfile: T = !1
|
|
3280
|
-
} = o, { leadPhoneCountryCode: g, language: v } =
|
|
3281
|
+
} = o, { leadPhoneCountryCode: g, language: v } = ht(gt), [f, $] = oo({
|
|
3281
3282
|
firstName: "",
|
|
3282
3283
|
lastName: "",
|
|
3283
3284
|
fullName: "",
|
|
3284
3285
|
email: "",
|
|
3285
3286
|
gender: "",
|
|
3286
3287
|
country: "",
|
|
3287
|
-
phoneCountryCode: g ?
|
|
3288
|
+
phoneCountryCode: g ? nt(g) : rt(v || "en"),
|
|
3288
3289
|
phoneNumber: "",
|
|
3289
3290
|
customFields: {}
|
|
3290
3291
|
});
|
|
3291
|
-
|
|
3292
|
-
const P = g ?
|
|
3292
|
+
Et(() => {
|
|
3293
|
+
const P = g ? nt(g) : rt(v || "en");
|
|
3293
3294
|
$((_) => !_.phoneNumber || !_.phoneCountryCode ? { ..._, phoneCountryCode: P } : _);
|
|
3294
3295
|
}, [g, v]);
|
|
3295
3296
|
const [p, a] = oo({}), [R, F] = oo(!1), [N, D] = oo(!1), [j, E] = oo(null), ie = () => E(null), K = (P) => (_) => {
|
|
@@ -3322,7 +3323,7 @@ function Ur(o) {
|
|
|
3322
3323
|
if (f.fullName && l.includes("fullName") ? P.setName(f.fullName.trim()) : f.firstName && l.includes("firstName") && f.lastName && l.includes("lastName") ? P.setName(
|
|
3323
3324
|
f.firstName.trim() + " " + f.lastName.trim()
|
|
3324
3325
|
) : f.firstName && l.includes("firstName") ? P.setName(f.firstName.trim()) : f.lastName && l.includes("lastName") && P.setName(f.lastName.trim()), f.email && l.includes("email") && P.setEmail(f.email.trim()), f.gender && l.includes("gender") && P.setGender(f.gender), f.country && l.includes("country")) {
|
|
3325
|
-
const _ = await t.profile.getCountries(), O =
|
|
3326
|
+
const _ = await t.profile.getCountries(), O = Bt(f.country), A = _.find((le) => le.name === (O == null ? void 0 : O.label));
|
|
3326
3327
|
A && P.setCountry(A.id);
|
|
3327
3328
|
}
|
|
3328
3329
|
f.phoneCountryCode && l.includes("phoneCountryCode") && P.setPhoneCountryCode(
|
|
@@ -3385,11 +3386,11 @@ function Ur(o) {
|
|
|
3385
3386
|
F(!1);
|
|
3386
3387
|
}
|
|
3387
3388
|
},
|
|
3388
|
-
countries:
|
|
3389
|
+
countries: wt
|
|
3389
3390
|
};
|
|
3390
3391
|
}
|
|
3391
|
-
const
|
|
3392
|
-
const t =
|
|
3392
|
+
const Ur = (o) => {
|
|
3393
|
+
const t = Uo(), { t: l } = Jo();
|
|
3393
3394
|
if (!o.brandingUrls)
|
|
3394
3395
|
return /* @__PURE__ */ s(Xe, {});
|
|
3395
3396
|
const { privacyPolicyUrl: r, termsAndConditionsUrl: u } = o.brandingUrls;
|
|
@@ -3462,7 +3463,7 @@ const Wr = (o) => {
|
|
|
3462
3463
|
] });
|
|
3463
3464
|
return /* @__PURE__ */ s(Ae, { required: !0, disabled: o.isDisabled, size: "sm", children: /* @__PURE__ */ q(fo, { sx: { display: "inline-flex", alignItems: "center", gap: "8px" }, children: [
|
|
3464
3465
|
/* @__PURE__ */ s(
|
|
3465
|
-
|
|
3466
|
+
bt,
|
|
3466
3467
|
{
|
|
3467
3468
|
slotProps: {
|
|
3468
3469
|
input: {
|
|
@@ -3486,7 +3487,7 @@ const Wr = (o) => {
|
|
|
3486
3487
|
c()
|
|
3487
3488
|
] }) });
|
|
3488
3489
|
}, Jr = (o) => {
|
|
3489
|
-
const { consents: t, isDisabled: l, primaryColor: r, brandingUrls: u, labels: c, onChange: b } = o, x =
|
|
3490
|
+
const { consents: t, isDisabled: l, primaryColor: r, brandingUrls: u, labels: c, onChange: b } = o, x = Uo(), { t: T } = Jo(), [g, v] = oo({}), f = (p) => (a) => {
|
|
3490
3491
|
const R = { ...g, [p]: a.target.checked };
|
|
3491
3492
|
v(R), b == null || b(R);
|
|
3492
3493
|
}, $ = (p) => {
|
|
@@ -3532,7 +3533,7 @@ const Wr = (o) => {
|
|
|
3532
3533
|
sx: { display: "inline-flex", alignItems: "center", gap: "8px" },
|
|
3533
3534
|
children: [
|
|
3534
3535
|
/* @__PURE__ */ s(
|
|
3535
|
-
|
|
3536
|
+
bt,
|
|
3536
3537
|
{
|
|
3537
3538
|
checked: !!g[p.id],
|
|
3538
3539
|
onChange: f(p.id),
|
|
@@ -3575,7 +3576,7 @@ const Wr = (o) => {
|
|
|
3575
3576
|
listItemContent: { fontSize: "sm" },
|
|
3576
3577
|
submitButton: { mt: 2 }
|
|
3577
3578
|
}, Kr = (o) => {
|
|
3578
|
-
var me,
|
|
3579
|
+
var me, W, ye, We, De, io;
|
|
3579
3580
|
const [t, l] = oo({}), {
|
|
3580
3581
|
sdk: r,
|
|
3581
3582
|
brandingColors: u,
|
|
@@ -3604,7 +3605,7 @@ const Wr = (o) => {
|
|
|
3604
3605
|
handleGenderChange: G,
|
|
3605
3606
|
handleSubmit: S,
|
|
3606
3607
|
countries: P
|
|
3607
|
-
} =
|
|
3608
|
+
} = Wr({
|
|
3608
3609
|
sdk: r,
|
|
3609
3610
|
fields: N,
|
|
3610
3611
|
campaignId: x,
|
|
@@ -3613,7 +3614,7 @@ const Wr = (o) => {
|
|
|
3613
3614
|
contentId: v,
|
|
3614
3615
|
contentName: f,
|
|
3615
3616
|
syncWithProfile: R
|
|
3616
|
-
}), { shadowRootElement: _ } =
|
|
3617
|
+
}), { shadowRootElement: _ } = ht(gt), { t: O } = Jo(), A = Uo(), le = vt(), Y = zt(), ee = yt().primary, be = le.textPrimary, X = (u == null ? void 0 : u.primaryColor) || ((W = (me = le.palette) == null ? void 0 : me.primary) == null ? void 0 : W.plainColor), ve = (We = (ye = le.palette) == null ? void 0 : ye.primary) == null ? void 0 : We.onPrimary, Te = (u == null ? void 0 : u.primaryColor) || ((io = (De = le.palette) == null ? void 0 : De.primary) == null ? void 0 : io.primaryContainer), ae = Y.sm, h = {
|
|
3617
3618
|
background: {
|
|
3618
3619
|
surface: A.colorSchemes.light.palette.background.surface,
|
|
3619
3620
|
popup: A.colorSchemes.light.palette.background.popup
|
|
@@ -3720,13 +3721,13 @@ const Wr = (o) => {
|
|
|
3720
3721
|
);
|
|
3721
3722
|
if (w.length > 0) {
|
|
3722
3723
|
const $e = w.map((Fe) => {
|
|
3723
|
-
const
|
|
3724
|
+
const Ue = {
|
|
3724
3725
|
consentId: Fe.id,
|
|
3725
3726
|
content: no(Fe.label)
|
|
3726
3727
|
};
|
|
3727
|
-
v && (
|
|
3728
|
-
const Le =
|
|
3729
|
-
return Le && (
|
|
3728
|
+
v && (Ue.entityId = v);
|
|
3729
|
+
const Le = Ft(g);
|
|
3730
|
+
return Le && (Ue.entityType = Le), Ue;
|
|
3730
3731
|
});
|
|
3731
3732
|
await r.profile.collectConsents($e);
|
|
3732
3733
|
}
|
|
@@ -3896,7 +3897,7 @@ const Wr = (o) => {
|
|
|
3896
3897
|
autoHighlight: !0,
|
|
3897
3898
|
getOptionLabel: (L) => L.label,
|
|
3898
3899
|
placeholder: eo,
|
|
3899
|
-
renderOption: (L, w) => /* @__PURE__ */
|
|
3900
|
+
renderOption: (L, w) => /* @__PURE__ */ tt(
|
|
3900
3901
|
Ho,
|
|
3901
3902
|
{
|
|
3902
3903
|
...L,
|
|
@@ -3956,7 +3957,7 @@ const Wr = (o) => {
|
|
|
3956
3957
|
options: P,
|
|
3957
3958
|
autoHighlight: !0,
|
|
3958
3959
|
getOptionLabel: (L) => `+${L.phone}`,
|
|
3959
|
-
renderOption: (L, w) => /* @__PURE__ */
|
|
3960
|
+
renderOption: (L, w) => /* @__PURE__ */ tt(
|
|
3960
3961
|
Ho,
|
|
3961
3962
|
{
|
|
3962
3963
|
...L,
|
|
@@ -4042,7 +4043,7 @@ const Wr = (o) => {
|
|
|
4042
4043
|
onChange: po
|
|
4043
4044
|
}
|
|
4044
4045
|
) : /* @__PURE__ */ s(
|
|
4045
|
-
|
|
4046
|
+
Ur,
|
|
4046
4047
|
{
|
|
4047
4048
|
primaryColor: X,
|
|
4048
4049
|
brandingUrls: c,
|
|
@@ -4078,7 +4079,7 @@ const Wr = (o) => {
|
|
|
4078
4079
|
}
|
|
4079
4080
|
)
|
|
4080
4081
|
] }) });
|
|
4081
|
-
},
|
|
4082
|
+
}, pi = ({
|
|
4082
4083
|
sdk: o,
|
|
4083
4084
|
content: t,
|
|
4084
4085
|
campaign: l,
|
|
@@ -4092,7 +4093,7 @@ const Wr = (o) => {
|
|
|
4092
4093
|
isSubmittingParticipation: v = !1
|
|
4093
4094
|
}) => {
|
|
4094
4095
|
var F;
|
|
4095
|
-
const f =
|
|
4096
|
+
const f = vt(), $ = f.textColor, p = ((F = r == null ? void 0 : r.colors) == null ? void 0 : F.secondaryColor) || f.textColor, a = yt().primary, R = u.map((N) => N && N.trim());
|
|
4096
4097
|
return /* @__PURE__ */ q(Go, { spacing: 2, zIndex: 10, width: "100%", children: [
|
|
4097
4098
|
c != null && c.title || c != null && c.description ? /* @__PURE__ */ q(fo, { children: [
|
|
4098
4099
|
c != null && c.title ? /* @__PURE__ */ s(
|
|
@@ -4144,5 +4145,5 @@ const Wr = (o) => {
|
|
|
4144
4145
|
] });
|
|
4145
4146
|
};
|
|
4146
4147
|
export {
|
|
4147
|
-
|
|
4148
|
+
pi as C
|
|
4148
4149
|
};
|