everest-npm-features 0.0.33 → 0.0.35
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/dist/{pep-B3tW-JmQ.js → Autocomplete-CE-OI2t8.js} +934 -1198
- package/dist/{PlayArrow-BkJLdzUI.js → PlayArrow-BkW3s4mw.js} +1 -1
- package/dist/assets/withThemeProvider.css +1 -1
- package/dist/{auth-BwI9H3c0.js → auth-CYftwFWz.js} +7 -7
- package/dist/{bank-D6E7Zpfd.js → bank-C9AAL5v7.js} +6 -6
- package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +2 -2
- package/dist/components/Shared/FullKyc/countryList.d.ts +10 -0
- package/dist/components/Shared/FullKyc/countryList.js +54 -0
- package/dist/components/Shared/FullKyc/edd.d.ts +3 -0
- package/dist/components/Shared/FullKyc/edd.js +189 -0
- package/dist/components/Shared/FullKyc/index.d.ts +1 -0
- package/dist/components/Shared/FullKyc/index.js +11 -9
- package/dist/components/Shared/FullKyc/pep.js +276 -15
- package/dist/components/Shared/FullKyc/personalDetails.js +4 -6
- package/dist/components/Shared/FullKyc/types.d.ts +22 -3
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/Incode/index.d.ts +2 -1
- package/dist/components/Shared/Incode/index.js +39 -37
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Wallet/Account/iban.js +18 -18
- package/dist/components/Wallet/Account/index.js +3 -3
- package/dist/components/Wallet/Account/sendIban.js +11 -11
- package/dist/components/Wallet/Buy/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Buy/form.js +4 -4
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +113 -87
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +9 -9
- package/dist/components/Wallet/Portfolio/index.js +3 -3
- package/dist/components/Wallet/Profile/documents.js +2 -2
- package/dist/components/Wallet/Profile/index.js +8 -8
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Sell/form.js +4 -4
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +29 -29
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/addBank.js +2 -2
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +3 -3
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/index.js +3 -3
- package/dist/components/Wallet/Swap/form.js +5 -5
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-CQOuVN6n.js → constants-DBlV_hAZ.js} +1096 -1090
- package/dist/cryptoAssets-Da0hZPmW.js +16 -0
- package/dist/{documents-72bUeBkP.js → documents-D1CxIIUj.js} +8 -8
- package/dist/{index-BAFH0iyw.js → index-BHmViOiG.js} +5 -5
- package/dist/{index-BIpSerUL.js → index-BZGHPDhS.js} +5 -5
- package/dist/{index-DKuH9hDK.js → index-C74NH5fF.js} +4 -4
- package/dist/{index-CRXWl3nL.js → index-CN7R7nR-.js} +14 -14
- package/dist/index-CexvGlw7.js +500 -0
- package/dist/{index-CpkMJeD0.js → index-DEfHSDHa.js} +5 -5
- package/dist/{index-BOev7FOu.js → index-DPwR5oNU.js} +6 -6
- package/dist/{kyc-C_JyEEpu.js → kyc-D7FTfIPj.js} +3 -3
- package/dist/main.js +7 -7
- package/dist/{order-DWfxKnom.js → order-BNumaEGY.js} +11 -11
- package/dist/{stake-fFsvxcKJ.js → stake-VlhTFH1g.js} +1 -1
- package/dist/util/constants.d.ts +0 -1
- package/dist/util/constants.js +18 -19
- package/dist/{wallet-4-2Lns3R.js → wallet-BJz8LnYf.js} +8 -8
- package/package.json +2 -2
- package/dist/cryptoAssets-Cma8qeDc.js +0 -16
- package/dist/index--NaHRmjW.js +0 -483
|
@@ -1,375 +1,364 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
import { u as Tt } from "./useControlled-nm4pBabJ.js";
|
|
26
|
-
import { a as bt } from "./refType-BsTH3qnM.js";
|
|
27
|
-
import { s as io } from "./Portal-BMAxiQwe.js";
|
|
28
|
-
import { c as so } from "./createSvgIcon-Cuzqm90l.js";
|
|
29
|
-
import { c as mt } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
30
|
-
import { u as co } from "./TransitionGroupContext-CYRQkQ6k.js";
|
|
31
|
-
import { B as Ht } from "./ButtonBase-DLF5c6wi.js";
|
|
32
|
-
import { c as Wt } from "./chainPropTypes-D9lkm76m.js";
|
|
33
|
-
import { T as po } from "./TextField-DPpRUQe3.js";
|
|
34
|
-
import { C as uo } from "./CircularProgress-xZA3lvba.js";
|
|
35
|
-
function fo(e, r, a, c, h) {
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { g as Ct, b as y, P as t, a as _ } from "./createTheme-CD19zQB7.js";
|
|
3
|
+
import { c as de } from "./clsx-BTaloaeC.js";
|
|
4
|
+
import { i as xt, o as At, A as Gt } from "./Select-CB5yWmyn.js";
|
|
5
|
+
import { i as Oe, f as Me } from "./FilledInput-DuNqnPjc.js";
|
|
6
|
+
import { C as Kt } from "./Close-CxzDL3J-.js";
|
|
7
|
+
import { m as fe } from "./memoTheme-yHaPezod.js";
|
|
8
|
+
import { g as $t } from "./generateUtilityClasses-BRiE4Guh.js";
|
|
9
|
+
import { u as Ye } from "./useSlot-CW7SOYlh.js";
|
|
10
|
+
import { jsx as D, jsxs as Xe } from "react/jsx-runtime";
|
|
11
|
+
import { s as W, u as Ot, c as Pt } from "./DefaultPropsProvider-oAu9El-f.js";
|
|
12
|
+
import { I as jt } from "./IconButton-DHm-hucF.js";
|
|
13
|
+
import { P as Ht } from "./Popper-BBAoiZKn.js";
|
|
14
|
+
import { P as Ut, i as _t } from "./Paper-Bgt2WXI6.js";
|
|
15
|
+
import { u as qt } from "./useId-CK6Kn3Tn.js";
|
|
16
|
+
import { u as It } from "./useControlled-nm4pBabJ.js";
|
|
17
|
+
import { a as ct } from "./refType-BsTH3qnM.js";
|
|
18
|
+
import { s as Jt } from "./Portal-BMAxiQwe.js";
|
|
19
|
+
import { c as Xt } from "./createSvgIcon-Cuzqm90l.js";
|
|
20
|
+
import { c as pt } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
21
|
+
import { u as Yt } from "./TransitionGroupContext-CYRQkQ6k.js";
|
|
22
|
+
import { B as Rt } from "./ButtonBase-DLF5c6wi.js";
|
|
23
|
+
import { c as Dt } from "./chainPropTypes-D9lkm76m.js";
|
|
24
|
+
function Qt(e, r, l, s, b) {
|
|
36
25
|
if (process.env.NODE_ENV === "production")
|
|
37
26
|
return null;
|
|
38
|
-
const
|
|
39
|
-
return typeof e[r] < "u" ? new Error(`The prop \`${
|
|
27
|
+
const P = b || r;
|
|
28
|
+
return typeof e[r] < "u" ? new Error(`The prop \`${P}\` is not supported. Please remove it.`) : null;
|
|
40
29
|
}
|
|
41
|
-
const
|
|
42
|
-
const r =
|
|
43
|
-
return
|
|
30
|
+
const Zt = (e) => {
|
|
31
|
+
const r = h.useRef({});
|
|
32
|
+
return h.useEffect(() => {
|
|
44
33
|
r.current = e;
|
|
45
34
|
}), r.current;
|
|
46
35
|
};
|
|
47
|
-
function
|
|
36
|
+
function Nt(e) {
|
|
48
37
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
49
38
|
}
|
|
50
|
-
function
|
|
39
|
+
function eo(e = {}) {
|
|
51
40
|
const {
|
|
52
41
|
ignoreAccents: r = !0,
|
|
53
|
-
ignoreCase:
|
|
54
|
-
limit:
|
|
55
|
-
matchFrom:
|
|
56
|
-
stringify:
|
|
57
|
-
trim:
|
|
42
|
+
ignoreCase: l = !0,
|
|
43
|
+
limit: s,
|
|
44
|
+
matchFrom: b = "any",
|
|
45
|
+
stringify: P,
|
|
46
|
+
trim: $ = !1
|
|
58
47
|
} = e;
|
|
59
48
|
return (I, {
|
|
60
|
-
inputValue:
|
|
61
|
-
getOptionLabel:
|
|
49
|
+
inputValue: k,
|
|
50
|
+
getOptionLabel: C
|
|
62
51
|
}) => {
|
|
63
|
-
let
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
let
|
|
67
|
-
return
|
|
52
|
+
let T = $ ? k.trim() : k;
|
|
53
|
+
l && (T = T.toLowerCase()), r && (T = Nt(T));
|
|
54
|
+
const N = T ? I.filter((le) => {
|
|
55
|
+
let L = (P || C)(le);
|
|
56
|
+
return l && (L = L.toLowerCase()), r && (L = Nt(L)), b === "start" ? L.startsWith(T) : L.includes(T);
|
|
68
57
|
}) : I;
|
|
69
|
-
return typeof
|
|
58
|
+
return typeof s == "number" ? N.slice(0, s) : N;
|
|
70
59
|
};
|
|
71
60
|
}
|
|
72
|
-
const
|
|
61
|
+
const to = eo(), Et = 5, oo = (e) => {
|
|
73
62
|
var r;
|
|
74
63
|
return e.current !== null && ((r = e.current.parentElement) == null ? void 0 : r.contains(document.activeElement));
|
|
75
|
-
},
|
|
76
|
-
function
|
|
77
|
-
if (r || e == null ||
|
|
64
|
+
}, no = [];
|
|
65
|
+
function Mt(e, r, l, s) {
|
|
66
|
+
if (r || e == null || s)
|
|
78
67
|
return "";
|
|
79
|
-
const
|
|
80
|
-
return typeof
|
|
68
|
+
const b = l(e);
|
|
69
|
+
return typeof b == "string" ? b : "";
|
|
81
70
|
}
|
|
82
|
-
function
|
|
71
|
+
function ro(e) {
|
|
83
72
|
const {
|
|
84
73
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
85
|
-
unstable_isActiveElementInListbox: r =
|
|
74
|
+
unstable_isActiveElementInListbox: r = oo,
|
|
86
75
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
87
|
-
unstable_classNamePrefix:
|
|
88
|
-
autoComplete:
|
|
89
|
-
autoHighlight:
|
|
90
|
-
autoSelect:
|
|
91
|
-
blurOnSelect:
|
|
76
|
+
unstable_classNamePrefix: l = "Mui",
|
|
77
|
+
autoComplete: s = !1,
|
|
78
|
+
autoHighlight: b = !1,
|
|
79
|
+
autoSelect: P = !1,
|
|
80
|
+
blurOnSelect: $ = !1,
|
|
92
81
|
clearOnBlur: I = !e.freeSolo,
|
|
93
|
-
clearOnEscape:
|
|
94
|
-
componentName:
|
|
95
|
-
defaultValue:
|
|
96
|
-
disableClearable:
|
|
97
|
-
disableCloseOnSelect:
|
|
98
|
-
disabled:
|
|
99
|
-
disabledItemsFocusable:
|
|
100
|
-
disableListWrap:
|
|
101
|
-
filterOptions:
|
|
102
|
-
filterSelectedOptions:
|
|
103
|
-
freeSolo:
|
|
104
|
-
getOptionDisabled:
|
|
105
|
-
getOptionKey:
|
|
106
|
-
getOptionLabel:
|
|
107
|
-
groupBy:
|
|
108
|
-
handleHomeEndKeys:
|
|
109
|
-
id:
|
|
110
|
-
includeInputInList:
|
|
111
|
-
inputValue:
|
|
112
|
-
isOptionEqualToValue:
|
|
113
|
-
multiple:
|
|
114
|
-
onChange:
|
|
115
|
-
onClose:
|
|
116
|
-
onHighlightChange:
|
|
117
|
-
onInputChange:
|
|
118
|
-
onOpen:
|
|
119
|
-
open:
|
|
120
|
-
openOnFocus:
|
|
121
|
-
options:
|
|
122
|
-
readOnly:
|
|
123
|
-
renderValue:
|
|
124
|
-
selectOnFocus:
|
|
125
|
-
value:
|
|
126
|
-
} = e,
|
|
127
|
-
let
|
|
128
|
-
|
|
129
|
-
const o =
|
|
82
|
+
clearOnEscape: k = !1,
|
|
83
|
+
componentName: C = "useAutocomplete",
|
|
84
|
+
defaultValue: T = e.multiple ? no : null,
|
|
85
|
+
disableClearable: N = !1,
|
|
86
|
+
disableCloseOnSelect: le = !1,
|
|
87
|
+
disabled: L,
|
|
88
|
+
disabledItemsFocusable: G = !1,
|
|
89
|
+
disableListWrap: ge = !1,
|
|
90
|
+
filterOptions: Ve = to,
|
|
91
|
+
filterSelectedOptions: Pe = !1,
|
|
92
|
+
freeSolo: ie = !1,
|
|
93
|
+
getOptionDisabled: q,
|
|
94
|
+
getOptionKey: Se,
|
|
95
|
+
getOptionLabel: ze = (n) => n.label ?? n,
|
|
96
|
+
groupBy: oe,
|
|
97
|
+
handleHomeEndKeys: Fe = !e.freeSolo,
|
|
98
|
+
id: Qe,
|
|
99
|
+
includeInputInList: be = !1,
|
|
100
|
+
inputValue: me,
|
|
101
|
+
isOptionEqualToValue: J = (n, o) => n === o,
|
|
102
|
+
multiple: g = !1,
|
|
103
|
+
onChange: ye,
|
|
104
|
+
onClose: he,
|
|
105
|
+
onHighlightChange: se,
|
|
106
|
+
onInputChange: M,
|
|
107
|
+
onOpen: ke,
|
|
108
|
+
open: je,
|
|
109
|
+
openOnFocus: Te = !1,
|
|
110
|
+
options: we,
|
|
111
|
+
readOnly: X = !1,
|
|
112
|
+
renderValue: V,
|
|
113
|
+
selectOnFocus: He = !e.freeSolo,
|
|
114
|
+
value: Le
|
|
115
|
+
} = e, z = qt(Qe);
|
|
116
|
+
let p = ze;
|
|
117
|
+
p = (n) => {
|
|
118
|
+
const o = ze(n);
|
|
130
119
|
if (typeof o != "string") {
|
|
131
120
|
if (process.env.NODE_ENV !== "production") {
|
|
132
|
-
const
|
|
133
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${
|
|
121
|
+
const a = o === void 0 ? "undefined" : `${typeof o} (${o})`;
|
|
122
|
+
console.error(`MUI: The \`getOptionLabel\` method of ${C} returned ${a} instead of a string for ${JSON.stringify(n)}.`);
|
|
134
123
|
}
|
|
135
124
|
return String(o);
|
|
136
125
|
}
|
|
137
126
|
return o;
|
|
138
127
|
};
|
|
139
|
-
const
|
|
140
|
-
controlled:
|
|
141
|
-
default:
|
|
142
|
-
name:
|
|
143
|
-
}), [
|
|
144
|
-
controlled:
|
|
145
|
-
default:
|
|
146
|
-
name:
|
|
128
|
+
const j = h.useRef(!1), H = h.useRef(!0), S = h.useRef(null), Y = h.useRef(null), [Ue, St] = h.useState(null), [K, Ze] = h.useState(-1), dt = b ? 0 : -1, E = h.useRef(dt), kt = h.useRef(Mt(T ?? Le, g, p)).current, [c, Be] = It({
|
|
129
|
+
controlled: Le,
|
|
130
|
+
default: T,
|
|
131
|
+
name: C
|
|
132
|
+
}), [x, ve] = It({
|
|
133
|
+
controlled: me,
|
|
134
|
+
default: kt,
|
|
135
|
+
name: C,
|
|
147
136
|
state: "inputValue"
|
|
148
|
-
}), [
|
|
149
|
-
if (!(
|
|
137
|
+
}), [Ae, et] = h.useState(!1), Re = h.useCallback((n, o, a) => {
|
|
138
|
+
if (!(g ? c.length < o.length : o !== null) && !I)
|
|
150
139
|
return;
|
|
151
|
-
const i =
|
|
152
|
-
|
|
153
|
-
}, [
|
|
154
|
-
controlled:
|
|
140
|
+
const i = Mt(o, g, p, V);
|
|
141
|
+
x !== i && (ve(i), M && M(n, i, a));
|
|
142
|
+
}, [p, x, g, M, ve, I, c, V]), [ne, xe] = It({
|
|
143
|
+
controlled: je,
|
|
155
144
|
default: !1,
|
|
156
|
-
name:
|
|
145
|
+
name: C,
|
|
157
146
|
state: "open"
|
|
158
|
-
}), [
|
|
159
|
-
|
|
147
|
+
}), [Tt, De] = h.useState(!0), tt = !g && c != null && x === p(c), U = ne && !X, O = U ? Ve(
|
|
148
|
+
we.filter((n) => !(Pe && (g ? c : [c]).some((o) => o !== null && J(n, o)))),
|
|
160
149
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
161
150
|
// i.e. the filter predicate always returns true
|
|
162
151
|
{
|
|
163
|
-
inputValue:
|
|
164
|
-
getOptionLabel:
|
|
152
|
+
inputValue: tt && Tt ? "" : x,
|
|
153
|
+
getOptionLabel: p
|
|
165
154
|
}
|
|
166
|
-
) : [],
|
|
167
|
-
filteredOptions:
|
|
168
|
-
value:
|
|
169
|
-
inputValue:
|
|
155
|
+
) : [], Q = Zt({
|
|
156
|
+
filteredOptions: O,
|
|
157
|
+
value: c,
|
|
158
|
+
inputValue: x
|
|
170
159
|
});
|
|
171
|
-
|
|
172
|
-
const n =
|
|
173
|
-
|
|
174
|
-
}, [
|
|
175
|
-
const
|
|
160
|
+
h.useEffect(() => {
|
|
161
|
+
const n = c !== Q.value;
|
|
162
|
+
Ae && !n || ie && !n || Re(null, c, "reset");
|
|
163
|
+
}, [c, Re, Ae, Q.value, ie]);
|
|
164
|
+
const ot = ne && O.length > 0 && !X, Z = ct((n) => {
|
|
176
165
|
if (n === -1)
|
|
177
|
-
|
|
166
|
+
S.current.focus();
|
|
178
167
|
else {
|
|
179
|
-
const o =
|
|
180
|
-
|
|
168
|
+
const o = V ? "data-item-index" : "data-tag-index";
|
|
169
|
+
Ue.querySelector(`[${o}="${n}"]`).focus();
|
|
181
170
|
}
|
|
182
171
|
});
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}, [
|
|
186
|
-
function
|
|
187
|
-
if (!
|
|
172
|
+
h.useEffect(() => {
|
|
173
|
+
g && K > c.length - 1 && (Ze(-1), Z(-1));
|
|
174
|
+
}, [c, g, K, Z]);
|
|
175
|
+
function ft(n, o) {
|
|
176
|
+
if (!Y.current || n < 0 || n >= O.length)
|
|
188
177
|
return -1;
|
|
189
|
-
let
|
|
178
|
+
let a = n;
|
|
190
179
|
for (; ; ) {
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
return
|
|
194
|
-
if (o === "next" ?
|
|
180
|
+
const d = Y.current.querySelector(`[data-option-index="${a}"]`), i = G ? !1 : !d || d.disabled || d.getAttribute("aria-disabled") === "true";
|
|
181
|
+
if (d && d.hasAttribute("tabindex") && !i)
|
|
182
|
+
return a;
|
|
183
|
+
if (o === "next" ? a = (a + 1) % O.length : a = (a - 1 + O.length) % O.length, a === n)
|
|
195
184
|
return -1;
|
|
196
185
|
}
|
|
197
186
|
}
|
|
198
|
-
const
|
|
187
|
+
const re = ct(({
|
|
199
188
|
event: n,
|
|
200
189
|
index: o,
|
|
201
|
-
reason:
|
|
190
|
+
reason: a
|
|
202
191
|
}) => {
|
|
203
|
-
if (
|
|
192
|
+
if (E.current = o, o === -1 ? S.current.removeAttribute("aria-activedescendant") : S.current.setAttribute("aria-activedescendant", `${z}-option-${o}`), se && ["mouse", "keyboard", "touch"].includes(a) && se(n, o === -1 ? null : O[o], a), !Y.current)
|
|
204
193
|
return;
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
let i =
|
|
208
|
-
if (
|
|
194
|
+
const d = Y.current.querySelector(`[role="option"].${l}-focused`);
|
|
195
|
+
d && (d.classList.remove(`${l}-focused`), d.classList.remove(`${l}-focusVisible`));
|
|
196
|
+
let i = Y.current;
|
|
197
|
+
if (Y.current.getAttribute("role") !== "listbox" && (i = Y.current.parentElement.querySelector('[role="listbox"]')), !i)
|
|
209
198
|
return;
|
|
210
199
|
if (o === -1) {
|
|
211
200
|
i.scrollTop = 0;
|
|
212
201
|
return;
|
|
213
202
|
}
|
|
214
|
-
const
|
|
215
|
-
if (
|
|
216
|
-
const
|
|
217
|
-
|
|
203
|
+
const v = Y.current.querySelector(`[data-option-index="${o}"]`);
|
|
204
|
+
if (v && (v.classList.add(`${l}-focused`), a === "keyboard" && v.classList.add(`${l}-focusVisible`), i.scrollHeight > i.clientHeight && a !== "mouse" && a !== "touch")) {
|
|
205
|
+
const w = v, F = i.clientHeight + i.scrollTop, qe = w.offsetTop + w.offsetHeight;
|
|
206
|
+
qe > F ? i.scrollTop = qe - i.clientHeight : w.offsetTop - w.offsetHeight * (oe ? 1.3 : 0) < i.scrollTop && (i.scrollTop = w.offsetTop - w.offsetHeight * (oe ? 1.3 : 0));
|
|
218
207
|
}
|
|
219
|
-
}),
|
|
208
|
+
}), ee = ct(({
|
|
220
209
|
event: n,
|
|
221
210
|
diff: o,
|
|
222
|
-
direction:
|
|
223
|
-
reason:
|
|
211
|
+
direction: a = "next",
|
|
212
|
+
reason: d
|
|
224
213
|
}) => {
|
|
225
|
-
if (!
|
|
214
|
+
if (!U)
|
|
226
215
|
return;
|
|
227
|
-
const
|
|
228
|
-
const
|
|
216
|
+
const v = ft((() => {
|
|
217
|
+
const w = O.length - 1;
|
|
229
218
|
if (o === "reset")
|
|
230
|
-
return
|
|
219
|
+
return dt;
|
|
231
220
|
if (o === "start")
|
|
232
221
|
return 0;
|
|
233
222
|
if (o === "end")
|
|
234
|
-
return
|
|
235
|
-
const
|
|
236
|
-
return
|
|
237
|
-
})(),
|
|
238
|
-
if (
|
|
239
|
-
index:
|
|
240
|
-
reason:
|
|
223
|
+
return w;
|
|
224
|
+
const F = E.current + o;
|
|
225
|
+
return F < 0 ? F === -1 && be ? -1 : ge && E.current !== -1 || Math.abs(o) > 1 ? 0 : w : F > w ? F === w + 1 && be ? -1 : ge || Math.abs(o) > 1 ? w : 0 : F;
|
|
226
|
+
})(), a);
|
|
227
|
+
if (re({
|
|
228
|
+
index: v,
|
|
229
|
+
reason: d,
|
|
241
230
|
event: n
|
|
242
|
-
}),
|
|
243
|
-
if (
|
|
244
|
-
|
|
231
|
+
}), s && o !== "reset")
|
|
232
|
+
if (v === -1)
|
|
233
|
+
S.current.value = x;
|
|
245
234
|
else {
|
|
246
|
-
const
|
|
247
|
-
|
|
235
|
+
const w = p(O[v]);
|
|
236
|
+
S.current.value = w, w.toLowerCase().indexOf(x.toLowerCase()) === 0 && x.length > 0 && S.current.setSelectionRange(x.length, w.length);
|
|
248
237
|
}
|
|
249
|
-
}),
|
|
250
|
-
const n = (o,
|
|
251
|
-
const
|
|
252
|
-
return
|
|
238
|
+
}), gt = () => {
|
|
239
|
+
const n = (o, a) => {
|
|
240
|
+
const d = o ? p(o) : "", i = a ? p(a) : "";
|
|
241
|
+
return d === i;
|
|
253
242
|
};
|
|
254
|
-
if (
|
|
255
|
-
const o =
|
|
243
|
+
if (E.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== O.length && Q.inputValue === x && (g ? c.length === Q.value.length && Q.value.every((o, a) => p(c[a]) === p(o)) : n(Q.value, c))) {
|
|
244
|
+
const o = Q.filteredOptions[E.current];
|
|
256
245
|
if (o)
|
|
257
|
-
return
|
|
246
|
+
return O.findIndex((a) => p(a) === p(o));
|
|
258
247
|
}
|
|
259
248
|
return -1;
|
|
260
|
-
},
|
|
261
|
-
if (!
|
|
249
|
+
}, We = h.useCallback(() => {
|
|
250
|
+
if (!U)
|
|
262
251
|
return;
|
|
263
|
-
const n =
|
|
252
|
+
const n = gt();
|
|
264
253
|
if (n !== -1) {
|
|
265
|
-
|
|
254
|
+
E.current = n;
|
|
266
255
|
return;
|
|
267
256
|
}
|
|
268
|
-
const o =
|
|
269
|
-
if (
|
|
270
|
-
|
|
257
|
+
const o = g ? c[0] : c;
|
|
258
|
+
if (O.length === 0 || o == null) {
|
|
259
|
+
ee({
|
|
271
260
|
diff: "reset"
|
|
272
261
|
});
|
|
273
262
|
return;
|
|
274
263
|
}
|
|
275
|
-
if (
|
|
264
|
+
if (Y.current) {
|
|
276
265
|
if (o != null) {
|
|
277
|
-
const
|
|
278
|
-
if (
|
|
266
|
+
const a = O[E.current];
|
|
267
|
+
if (g && a && c.findIndex((i) => J(a, i)) !== -1)
|
|
279
268
|
return;
|
|
280
|
-
const
|
|
281
|
-
|
|
269
|
+
const d = O.findIndex((i) => J(i, o));
|
|
270
|
+
d === -1 ? ee({
|
|
282
271
|
diff: "reset"
|
|
283
|
-
}) :
|
|
284
|
-
index:
|
|
272
|
+
}) : re({
|
|
273
|
+
index: d
|
|
285
274
|
});
|
|
286
275
|
return;
|
|
287
276
|
}
|
|
288
|
-
if (
|
|
289
|
-
|
|
290
|
-
index:
|
|
277
|
+
if (E.current >= O.length - 1) {
|
|
278
|
+
re({
|
|
279
|
+
index: O.length - 1
|
|
291
280
|
});
|
|
292
281
|
return;
|
|
293
282
|
}
|
|
294
|
-
|
|
295
|
-
index:
|
|
283
|
+
re({
|
|
284
|
+
index: E.current
|
|
296
285
|
});
|
|
297
286
|
}
|
|
298
287
|
}, [
|
|
299
288
|
// Only sync the highlighted index when the option switch between empty and not
|
|
300
|
-
|
|
289
|
+
O.length,
|
|
301
290
|
// Don't sync the highlighted index with the value when multiple
|
|
302
291
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
303
|
-
|
|
304
|
-
|
|
292
|
+
g ? !1 : c,
|
|
293
|
+
Pe,
|
|
294
|
+
ee,
|
|
305
295
|
re,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
io(ee, n), n && _e();
|
|
296
|
+
U,
|
|
297
|
+
x,
|
|
298
|
+
g
|
|
299
|
+
]), bt = ct((n) => {
|
|
300
|
+
Jt(Y, n), n && We();
|
|
312
301
|
});
|
|
313
|
-
process.env.NODE_ENV !== "production" &&
|
|
314
|
-
(!
|
|
315
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
302
|
+
process.env.NODE_ENV !== "production" && h.useEffect(() => {
|
|
303
|
+
(!S.current || S.current.nodeName !== "INPUT") && (S.current && S.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${C} 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(`
|
|
304
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${S.current} while an HTMLInputElement was expected.`, `Instead, ${C} expects an input element.`, "", C === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
316
305
|
`)));
|
|
317
|
-
}, [
|
|
318
|
-
|
|
319
|
-
}, [
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
},
|
|
323
|
-
|
|
324
|
-
},
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
306
|
+
}, [C]), h.useEffect(() => {
|
|
307
|
+
We();
|
|
308
|
+
}, [We]);
|
|
309
|
+
const B = (n) => {
|
|
310
|
+
ne || (xe(!0), De(!0), ke && ke(n));
|
|
311
|
+
}, Ie = (n, o) => {
|
|
312
|
+
ne && (xe(!1), he && he(n, o));
|
|
313
|
+
}, ae = (n, o, a, d) => {
|
|
314
|
+
if (g) {
|
|
315
|
+
if (c.length === o.length && c.every((i, v) => i === o[v]))
|
|
327
316
|
return;
|
|
328
|
-
} else if (
|
|
317
|
+
} else if (c === o)
|
|
329
318
|
return;
|
|
330
|
-
|
|
331
|
-
},
|
|
332
|
-
let i =
|
|
333
|
-
if (
|
|
334
|
-
if (
|
|
335
|
-
const
|
|
336
|
-
|
|
319
|
+
ye && ye(n, o, a, d), Be(o);
|
|
320
|
+
}, Ne = h.useRef(!1), te = (n, o, a = "selectOption", d = "options") => {
|
|
321
|
+
let i = a, v = o;
|
|
322
|
+
if (g) {
|
|
323
|
+
if (v = Array.isArray(c) ? c.slice() : [], process.env.NODE_ENV !== "production") {
|
|
324
|
+
const F = v.filter((qe) => J(o, qe));
|
|
325
|
+
F.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${C} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${F.length} matches.`].join(`
|
|
337
326
|
`));
|
|
338
327
|
}
|
|
339
|
-
const
|
|
340
|
-
|
|
328
|
+
const w = v.findIndex((F) => J(o, F));
|
|
329
|
+
w === -1 ? v.push(o) : d !== "freeSolo" && (v.splice(w, 1), i = "removeOption");
|
|
341
330
|
}
|
|
342
|
-
|
|
331
|
+
Re(n, v, i), ae(n, v, i, {
|
|
343
332
|
option: o
|
|
344
|
-
}), !
|
|
333
|
+
}), !le && (!n || !n.ctrlKey && !n.metaKey) && Ie(n, i), ($ === !0 || $ === "touch" && Ne.current || $ === "mouse" && !Ne.current) && S.current.blur();
|
|
345
334
|
};
|
|
346
|
-
function
|
|
335
|
+
function nt(n, o) {
|
|
347
336
|
if (n === -1)
|
|
348
337
|
return -1;
|
|
349
|
-
let
|
|
338
|
+
let a = n;
|
|
350
339
|
for (; ; ) {
|
|
351
|
-
if (o === "next" &&
|
|
340
|
+
if (o === "next" && a === c.length || o === "previous" && a === -1)
|
|
352
341
|
return -1;
|
|
353
|
-
const
|
|
342
|
+
const d = V ? "data-item-index" : "data-tag-index", i = Ue.querySelector(`[${d}="${a}"]`);
|
|
354
343
|
if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
|
|
355
|
-
|
|
344
|
+
a += o === "next" ? 1 : -1;
|
|
356
345
|
else
|
|
357
|
-
return
|
|
346
|
+
return a;
|
|
358
347
|
}
|
|
359
348
|
}
|
|
360
|
-
const
|
|
361
|
-
if (!
|
|
349
|
+
const rt = (n, o) => {
|
|
350
|
+
if (!g)
|
|
362
351
|
return;
|
|
363
|
-
|
|
364
|
-
let
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
if (n.onKeyDown && n.onKeyDown(o), !o.defaultMuiPrevented && (
|
|
352
|
+
x === "" && Ie(n, "toggleInput");
|
|
353
|
+
let a = K;
|
|
354
|
+
K === -1 ? x === "" && o === "previous" && (a = c.length - 1) : (a += o === "next" ? 1 : -1, a < 0 && (a = 0), a === c.length && (a = -1)), a = nt(a, o), Ze(a), Z(a);
|
|
355
|
+
}, Ce = (n) => {
|
|
356
|
+
j.current = !0, ve(""), M && M(n, "", "clear"), ae(n, g ? [] : null, "clear");
|
|
357
|
+
}, mt = (n) => (o) => {
|
|
358
|
+
if (n.onKeyDown && n.onKeyDown(o), !o.defaultMuiPrevented && (K !== -1 && !["ArrowLeft", "ArrowRight"].includes(o.key) && (Ze(-1), Z(-1)), o.which !== 229))
|
|
370
359
|
switch (o.key) {
|
|
371
360
|
case "Home":
|
|
372
|
-
|
|
361
|
+
U && Fe && (o.preventDefault(), ee({
|
|
373
362
|
diff: "start",
|
|
374
363
|
direction: "next",
|
|
375
364
|
reason: "keyboard",
|
|
@@ -377,7 +366,7 @@ function vo(e) {
|
|
|
377
366
|
}));
|
|
378
367
|
break;
|
|
379
368
|
case "End":
|
|
380
|
-
|
|
369
|
+
U && Fe && (o.preventDefault(), ee({
|
|
381
370
|
diff: "end",
|
|
382
371
|
direction: "previous",
|
|
383
372
|
reason: "keyboard",
|
|
@@ -385,192 +374,192 @@ function vo(e) {
|
|
|
385
374
|
}));
|
|
386
375
|
break;
|
|
387
376
|
case "PageUp":
|
|
388
|
-
o.preventDefault(),
|
|
389
|
-
diff: -
|
|
377
|
+
o.preventDefault(), ee({
|
|
378
|
+
diff: -Et,
|
|
390
379
|
direction: "previous",
|
|
391
380
|
reason: "keyboard",
|
|
392
381
|
event: o
|
|
393
|
-
}),
|
|
382
|
+
}), B(o);
|
|
394
383
|
break;
|
|
395
384
|
case "PageDown":
|
|
396
|
-
o.preventDefault(),
|
|
397
|
-
diff:
|
|
385
|
+
o.preventDefault(), ee({
|
|
386
|
+
diff: Et,
|
|
398
387
|
direction: "next",
|
|
399
388
|
reason: "keyboard",
|
|
400
389
|
event: o
|
|
401
|
-
}),
|
|
390
|
+
}), B(o);
|
|
402
391
|
break;
|
|
403
392
|
case "ArrowDown":
|
|
404
|
-
o.preventDefault(),
|
|
393
|
+
o.preventDefault(), ee({
|
|
405
394
|
diff: 1,
|
|
406
395
|
direction: "next",
|
|
407
396
|
reason: "keyboard",
|
|
408
397
|
event: o
|
|
409
|
-
}),
|
|
398
|
+
}), B(o);
|
|
410
399
|
break;
|
|
411
400
|
case "ArrowUp":
|
|
412
|
-
o.preventDefault(),
|
|
401
|
+
o.preventDefault(), ee({
|
|
413
402
|
diff: -1,
|
|
414
403
|
direction: "previous",
|
|
415
404
|
reason: "keyboard",
|
|
416
405
|
event: o
|
|
417
|
-
}),
|
|
406
|
+
}), B(o);
|
|
418
407
|
break;
|
|
419
408
|
case "ArrowLeft":
|
|
420
|
-
!
|
|
409
|
+
!g && V ? Z(0) : rt(o, "previous");
|
|
421
410
|
break;
|
|
422
411
|
case "ArrowRight":
|
|
423
|
-
!
|
|
412
|
+
!g && V ? Z(-1) : rt(o, "next");
|
|
424
413
|
break;
|
|
425
414
|
case "Enter":
|
|
426
|
-
if (
|
|
427
|
-
const
|
|
428
|
-
if (o.preventDefault(),
|
|
415
|
+
if (E.current !== -1 && U) {
|
|
416
|
+
const a = O[E.current], d = q ? q(a) : !1;
|
|
417
|
+
if (o.preventDefault(), d)
|
|
429
418
|
return;
|
|
430
|
-
|
|
431
|
-
} else
|
|
419
|
+
te(o, a, "selectOption"), s && S.current.setSelectionRange(S.current.value.length, S.current.value.length);
|
|
420
|
+
} else ie && x !== "" && tt === !1 && (g && o.preventDefault(), te(o, x, "createOption", "freeSolo"));
|
|
432
421
|
break;
|
|
433
422
|
case "Escape":
|
|
434
|
-
|
|
423
|
+
U ? (o.preventDefault(), o.stopPropagation(), Ie(o, "escape")) : k && (x !== "" || g && c.length > 0 || V) && (o.preventDefault(), o.stopPropagation(), Ce(o));
|
|
435
424
|
break;
|
|
436
425
|
case "Backspace":
|
|
437
|
-
if (
|
|
438
|
-
const
|
|
439
|
-
|
|
440
|
-
option:
|
|
426
|
+
if (g && !X && x === "" && c.length > 0) {
|
|
427
|
+
const a = K === -1 ? c.length - 1 : K, d = c.slice();
|
|
428
|
+
d.splice(a, 1), ae(o, d, "removeOption", {
|
|
429
|
+
option: c[a]
|
|
441
430
|
});
|
|
442
431
|
}
|
|
443
|
-
!
|
|
432
|
+
!g && V && !X && (Be(null), Z(-1));
|
|
444
433
|
break;
|
|
445
434
|
case "Delete":
|
|
446
|
-
if (
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
option:
|
|
435
|
+
if (g && !X && x === "" && c.length > 0 && K !== -1) {
|
|
436
|
+
const a = K, d = c.slice();
|
|
437
|
+
d.splice(a, 1), ae(o, d, "removeOption", {
|
|
438
|
+
option: c[a]
|
|
450
439
|
});
|
|
451
440
|
}
|
|
452
|
-
!
|
|
441
|
+
!g && V && !X && (Be(null), Z(-1));
|
|
453
442
|
break;
|
|
454
443
|
}
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
},
|
|
458
|
-
if (r(
|
|
459
|
-
|
|
444
|
+
}, yt = (n) => {
|
|
445
|
+
et(!0), Te && !j.current && B(n);
|
|
446
|
+
}, $e = (n) => {
|
|
447
|
+
if (r(Y)) {
|
|
448
|
+
S.current.focus();
|
|
460
449
|
return;
|
|
461
450
|
}
|
|
462
|
-
|
|
463
|
-
},
|
|
451
|
+
et(!1), H.current = !0, j.current = !1, P && E.current !== -1 && U ? te(n, O[E.current], "blur") : P && ie && x !== "" ? te(n, x, "blur", "freeSolo") : I && Re(n, c, "blur"), Ie(n, "blur");
|
|
452
|
+
}, Ge = (n) => {
|
|
464
453
|
const o = n.target.value;
|
|
465
|
-
|
|
466
|
-
},
|
|
454
|
+
x !== o && (ve(o), De(!1), M && M(n, o, "input")), o === "" ? !N && !g && ae(n, null, "clear") : B(n);
|
|
455
|
+
}, Ke = (n) => {
|
|
467
456
|
const o = Number(n.currentTarget.getAttribute("data-option-index"));
|
|
468
|
-
|
|
457
|
+
E.current !== o && re({
|
|
469
458
|
event: n,
|
|
470
459
|
index: o,
|
|
471
460
|
reason: "mouse"
|
|
472
461
|
});
|
|
473
|
-
},
|
|
474
|
-
|
|
462
|
+
}, ht = (n) => {
|
|
463
|
+
re({
|
|
475
464
|
event: n,
|
|
476
465
|
index: Number(n.currentTarget.getAttribute("data-option-index")),
|
|
477
466
|
reason: "touch"
|
|
478
|
-
}),
|
|
479
|
-
},
|
|
467
|
+
}), Ne.current = !0;
|
|
468
|
+
}, vt = (n) => {
|
|
480
469
|
const o = Number(n.currentTarget.getAttribute("data-option-index"));
|
|
481
|
-
|
|
482
|
-
},
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
option:
|
|
470
|
+
te(n, O[o], "selectOption"), Ne.current = !1;
|
|
471
|
+
}, at = (n) => (o) => {
|
|
472
|
+
const a = c.slice();
|
|
473
|
+
a.splice(n, 1), ae(o, a, "removeOption", {
|
|
474
|
+
option: c[n]
|
|
486
475
|
});
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
option:
|
|
476
|
+
}, wt = (n) => {
|
|
477
|
+
ae(n, null, "removeOption", {
|
|
478
|
+
option: c
|
|
490
479
|
});
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
},
|
|
494
|
-
n.currentTarget.contains(n.target) && n.target.getAttribute("id") !==
|
|
495
|
-
},
|
|
496
|
-
n.currentTarget.contains(n.target) && (
|
|
497
|
-
},
|
|
498
|
-
!
|
|
480
|
+
}, Ee = (n) => {
|
|
481
|
+
ne ? Ie(n, "toggleInput") : B(n);
|
|
482
|
+
}, A = (n) => {
|
|
483
|
+
n.currentTarget.contains(n.target) && n.target.getAttribute("id") !== z && n.preventDefault();
|
|
484
|
+
}, R = (n) => {
|
|
485
|
+
n.currentTarget.contains(n.target) && (S.current.focus(), He && H.current && S.current.selectionEnd - S.current.selectionStart === 0 && S.current.select(), H.current = !1);
|
|
486
|
+
}, ce = (n) => {
|
|
487
|
+
!L && (x === "" || !ne) && Ee(n);
|
|
499
488
|
};
|
|
500
|
-
let
|
|
501
|
-
|
|
502
|
-
let
|
|
503
|
-
if (
|
|
489
|
+
let _e = ie && x.length > 0;
|
|
490
|
+
_e = _e || (g ? c.length > 0 : c !== null);
|
|
491
|
+
let lt = O;
|
|
492
|
+
if (oe) {
|
|
504
493
|
const n = /* @__PURE__ */ new Map();
|
|
505
494
|
let o = !1;
|
|
506
|
-
|
|
507
|
-
const
|
|
508
|
-
return
|
|
495
|
+
lt = O.reduce((a, d, i) => {
|
|
496
|
+
const v = oe(d);
|
|
497
|
+
return a.length > 0 && a[a.length - 1].group === v ? a[a.length - 1].options.push(d) : (process.env.NODE_ENV !== "production" && (n.get(v) && !o && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${C} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), o = !0), n.set(v, !0)), a.push({
|
|
509
498
|
key: i,
|
|
510
499
|
index: i,
|
|
511
|
-
group:
|
|
512
|
-
options: [
|
|
513
|
-
})),
|
|
500
|
+
group: v,
|
|
501
|
+
options: [d]
|
|
502
|
+
})), a;
|
|
514
503
|
}, []);
|
|
515
504
|
}
|
|
516
|
-
return
|
|
505
|
+
return L && Ae && $e(), {
|
|
517
506
|
getRootProps: (n = {}) => ({
|
|
518
507
|
...n,
|
|
519
|
-
onKeyDown:
|
|
520
|
-
onMouseDown:
|
|
521
|
-
onClick:
|
|
508
|
+
onKeyDown: mt(n),
|
|
509
|
+
onMouseDown: A,
|
|
510
|
+
onClick: R
|
|
522
511
|
}),
|
|
523
512
|
getInputLabelProps: () => ({
|
|
524
|
-
id: `${
|
|
525
|
-
htmlFor:
|
|
513
|
+
id: `${z}-label`,
|
|
514
|
+
htmlFor: z
|
|
526
515
|
}),
|
|
527
516
|
getInputProps: () => ({
|
|
528
|
-
id:
|
|
529
|
-
value:
|
|
530
|
-
onBlur:
|
|
531
|
-
onFocus:
|
|
532
|
-
onChange:
|
|
533
|
-
onMouseDown:
|
|
517
|
+
id: z,
|
|
518
|
+
value: x,
|
|
519
|
+
onBlur: $e,
|
|
520
|
+
onFocus: yt,
|
|
521
|
+
onChange: Ge,
|
|
522
|
+
onMouseDown: ce,
|
|
534
523
|
// if open then this is handled imperatively so don't let react override
|
|
535
524
|
// only have an opinion about this when closed
|
|
536
|
-
"aria-activedescendant":
|
|
537
|
-
"aria-autocomplete":
|
|
538
|
-
"aria-controls":
|
|
539
|
-
"aria-expanded":
|
|
525
|
+
"aria-activedescendant": U ? "" : null,
|
|
526
|
+
"aria-autocomplete": s ? "both" : "list",
|
|
527
|
+
"aria-controls": ot ? `${z}-listbox` : void 0,
|
|
528
|
+
"aria-expanded": ot,
|
|
540
529
|
// Disable browser's suggestion that might overlap with the popup.
|
|
541
530
|
// Handle autocomplete but not autofill.
|
|
542
531
|
autoComplete: "off",
|
|
543
|
-
ref:
|
|
532
|
+
ref: S,
|
|
544
533
|
autoCapitalize: "none",
|
|
545
534
|
spellCheck: "false",
|
|
546
535
|
role: "combobox",
|
|
547
|
-
disabled:
|
|
536
|
+
disabled: L
|
|
548
537
|
}),
|
|
549
538
|
getClearProps: () => ({
|
|
550
539
|
tabIndex: -1,
|
|
551
540
|
type: "button",
|
|
552
|
-
onClick:
|
|
541
|
+
onClick: Ce
|
|
553
542
|
}),
|
|
554
543
|
getItemProps: ({
|
|
555
544
|
index: n = 0
|
|
556
545
|
} = {}) => ({
|
|
557
|
-
...
|
|
546
|
+
...g && {
|
|
558
547
|
key: n
|
|
559
548
|
},
|
|
560
|
-
...
|
|
549
|
+
...V ? {
|
|
561
550
|
"data-item-index": n
|
|
562
551
|
} : {
|
|
563
552
|
"data-tag-index": n
|
|
564
553
|
},
|
|
565
554
|
tabIndex: -1,
|
|
566
|
-
...!
|
|
567
|
-
onDelete:
|
|
555
|
+
...!X && {
|
|
556
|
+
onDelete: g ? at(n) : wt
|
|
568
557
|
}
|
|
569
558
|
}),
|
|
570
559
|
getPopupIndicatorProps: () => ({
|
|
571
560
|
tabIndex: -1,
|
|
572
561
|
type: "button",
|
|
573
|
-
onClick:
|
|
562
|
+
onClick: Ee
|
|
574
563
|
}),
|
|
575
564
|
// deprecated
|
|
576
565
|
getTagProps: ({
|
|
@@ -579,15 +568,15 @@ function vo(e) {
|
|
|
579
568
|
key: n,
|
|
580
569
|
"data-tag-index": n,
|
|
581
570
|
tabIndex: -1,
|
|
582
|
-
...!
|
|
583
|
-
onDelete:
|
|
571
|
+
...!X && {
|
|
572
|
+
onDelete: at(n)
|
|
584
573
|
}
|
|
585
574
|
}),
|
|
586
575
|
getListboxProps: () => ({
|
|
587
576
|
role: "listbox",
|
|
588
|
-
id: `${
|
|
589
|
-
"aria-labelledby": `${
|
|
590
|
-
ref:
|
|
577
|
+
id: `${z}-listbox`,
|
|
578
|
+
"aria-labelledby": `${z}-label`,
|
|
579
|
+
ref: bt,
|
|
591
580
|
onMouseDown: (n) => {
|
|
592
581
|
n.preventDefault();
|
|
593
582
|
}
|
|
@@ -596,60 +585,60 @@ function vo(e) {
|
|
|
596
585
|
index: n,
|
|
597
586
|
option: o
|
|
598
587
|
}) => {
|
|
599
|
-
const
|
|
588
|
+
const a = (g ? c : [c]).some((i) => i != null && J(o, i)), d = q ? q(o) : !1;
|
|
600
589
|
return {
|
|
601
|
-
key: (
|
|
590
|
+
key: (Se == null ? void 0 : Se(o)) ?? p(o),
|
|
602
591
|
tabIndex: -1,
|
|
603
592
|
role: "option",
|
|
604
|
-
id: `${
|
|
605
|
-
onMouseMove:
|
|
606
|
-
onClick:
|
|
607
|
-
onTouchStart:
|
|
593
|
+
id: `${z}-option-${n}`,
|
|
594
|
+
onMouseMove: Ke,
|
|
595
|
+
onClick: vt,
|
|
596
|
+
onTouchStart: ht,
|
|
608
597
|
"data-option-index": n,
|
|
609
|
-
"aria-disabled":
|
|
610
|
-
"aria-selected":
|
|
598
|
+
"aria-disabled": d,
|
|
599
|
+
"aria-selected": a
|
|
611
600
|
};
|
|
612
601
|
},
|
|
613
|
-
id:
|
|
614
|
-
inputValue:
|
|
615
|
-
value:
|
|
616
|
-
dirty:
|
|
617
|
-
expanded:
|
|
618
|
-
popupOpen:
|
|
619
|
-
focused:
|
|
620
|
-
anchorEl:
|
|
621
|
-
setAnchorEl:
|
|
622
|
-
focusedItem:
|
|
602
|
+
id: z,
|
|
603
|
+
inputValue: x,
|
|
604
|
+
value: c,
|
|
605
|
+
dirty: _e,
|
|
606
|
+
expanded: U && Ue,
|
|
607
|
+
popupOpen: U,
|
|
608
|
+
focused: Ae || K !== -1,
|
|
609
|
+
anchorEl: Ue,
|
|
610
|
+
setAnchorEl: St,
|
|
611
|
+
focusedItem: K,
|
|
623
612
|
// deprecated
|
|
624
|
-
focusedTag:
|
|
625
|
-
groupedOptions:
|
|
613
|
+
focusedTag: K,
|
|
614
|
+
groupedOptions: lt
|
|
626
615
|
};
|
|
627
616
|
}
|
|
628
|
-
function
|
|
629
|
-
return
|
|
617
|
+
function ao(e) {
|
|
618
|
+
return Ct("MuiListSubheader", e);
|
|
630
619
|
}
|
|
631
|
-
|
|
632
|
-
const
|
|
620
|
+
$t("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
|
|
621
|
+
const lo = (e) => {
|
|
633
622
|
const {
|
|
634
623
|
classes: r,
|
|
635
|
-
color:
|
|
636
|
-
disableGutters:
|
|
637
|
-
inset:
|
|
638
|
-
disableSticky:
|
|
639
|
-
} = e,
|
|
640
|
-
root: ["root",
|
|
624
|
+
color: l,
|
|
625
|
+
disableGutters: s,
|
|
626
|
+
inset: b,
|
|
627
|
+
disableSticky: P
|
|
628
|
+
} = e, $ = {
|
|
629
|
+
root: ["root", l !== "default" && `color${y(l)}`, !s && "gutters", b && "inset", !P && "sticky"]
|
|
641
630
|
};
|
|
642
|
-
return
|
|
643
|
-
},
|
|
631
|
+
return Pt($, ao, r);
|
|
632
|
+
}, io = W("li", {
|
|
644
633
|
name: "MuiListSubheader",
|
|
645
634
|
slot: "Root",
|
|
646
635
|
overridesResolver: (e, r) => {
|
|
647
636
|
const {
|
|
648
|
-
ownerState:
|
|
637
|
+
ownerState: l
|
|
649
638
|
} = e;
|
|
650
|
-
return [r.root,
|
|
639
|
+
return [r.root, l.color !== "default" && r[`color${y(l.color)}`], !l.disableGutters && r.gutters, l.inset && r.inset, !l.disableSticky && r.sticky];
|
|
651
640
|
}
|
|
652
|
-
})(
|
|
641
|
+
})(fe(({
|
|
653
642
|
theme: e
|
|
654
643
|
}) => ({
|
|
655
644
|
boxSizing: "border-box",
|
|
@@ -699,36 +688,36 @@ const Co = (e) => {
|
|
|
699
688
|
backgroundColor: (e.vars || e).palette.background.paper
|
|
700
689
|
}
|
|
701
690
|
}]
|
|
702
|
-
}))),
|
|
703
|
-
const
|
|
691
|
+
}))), ut = /* @__PURE__ */ h.forwardRef(function(r, l) {
|
|
692
|
+
const s = Ot({
|
|
704
693
|
props: r,
|
|
705
694
|
name: "MuiListSubheader"
|
|
706
695
|
}), {
|
|
707
|
-
className:
|
|
708
|
-
color:
|
|
709
|
-
component:
|
|
696
|
+
className: b,
|
|
697
|
+
color: P = "default",
|
|
698
|
+
component: $ = "li",
|
|
710
699
|
disableGutters: I = !1,
|
|
711
|
-
disableSticky:
|
|
712
|
-
inset:
|
|
713
|
-
...
|
|
714
|
-
} =
|
|
715
|
-
...
|
|
716
|
-
color:
|
|
717
|
-
component:
|
|
700
|
+
disableSticky: k = !1,
|
|
701
|
+
inset: C = !1,
|
|
702
|
+
...T
|
|
703
|
+
} = s, N = {
|
|
704
|
+
...s,
|
|
705
|
+
color: P,
|
|
706
|
+
component: $,
|
|
718
707
|
disableGutters: I,
|
|
719
|
-
disableSticky:
|
|
720
|
-
inset:
|
|
721
|
-
},
|
|
722
|
-
return /* @__PURE__ */
|
|
723
|
-
as:
|
|
724
|
-
className:
|
|
725
|
-
ref:
|
|
726
|
-
ownerState:
|
|
727
|
-
...
|
|
708
|
+
disableSticky: k,
|
|
709
|
+
inset: C
|
|
710
|
+
}, le = lo(N);
|
|
711
|
+
return /* @__PURE__ */ D(io, {
|
|
712
|
+
as: $,
|
|
713
|
+
className: de(le.root, b),
|
|
714
|
+
ref: l,
|
|
715
|
+
ownerState: N,
|
|
716
|
+
...T
|
|
728
717
|
});
|
|
729
718
|
});
|
|
730
|
-
|
|
731
|
-
process.env.NODE_ENV !== "production" && (
|
|
719
|
+
ut && (ut.muiSkipListHighlight = !0);
|
|
720
|
+
process.env.NODE_ENV !== "production" && (ut.propTypes = {
|
|
732
721
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
733
722
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
734
723
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -775,67 +764,67 @@ process.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
|
775
764
|
*/
|
|
776
765
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
777
766
|
});
|
|
778
|
-
const
|
|
767
|
+
const so = Xt(/* @__PURE__ */ D("path", {
|
|
779
768
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
780
769
|
}), "Cancel");
|
|
781
|
-
function
|
|
782
|
-
return
|
|
770
|
+
function co(e) {
|
|
771
|
+
return Ct("MuiChip", e);
|
|
783
772
|
}
|
|
784
|
-
const
|
|
773
|
+
const f = $t("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), po = (e) => {
|
|
785
774
|
const {
|
|
786
775
|
classes: r,
|
|
787
|
-
disabled:
|
|
788
|
-
size:
|
|
789
|
-
color:
|
|
790
|
-
iconColor:
|
|
791
|
-
onDelete:
|
|
776
|
+
disabled: l,
|
|
777
|
+
size: s,
|
|
778
|
+
color: b,
|
|
779
|
+
iconColor: P,
|
|
780
|
+
onDelete: $,
|
|
792
781
|
clickable: I,
|
|
793
|
-
variant:
|
|
794
|
-
} = e,
|
|
795
|
-
root: ["root",
|
|
796
|
-
label: ["label", `label${
|
|
797
|
-
avatar: ["avatar", `avatar${
|
|
798
|
-
icon: ["icon", `icon${
|
|
799
|
-
deleteIcon: ["deleteIcon", `deleteIcon${
|
|
782
|
+
variant: k
|
|
783
|
+
} = e, C = {
|
|
784
|
+
root: ["root", k, l && "disabled", `size${y(s)}`, `color${y(b)}`, I && "clickable", I && `clickableColor${y(b)}`, $ && "deletable", $ && `deletableColor${y(b)}`, `${k}${y(b)}`],
|
|
785
|
+
label: ["label", `label${y(s)}`],
|
|
786
|
+
avatar: ["avatar", `avatar${y(s)}`, `avatarColor${y(b)}`],
|
|
787
|
+
icon: ["icon", `icon${y(s)}`, `iconColor${y(P)}`],
|
|
788
|
+
deleteIcon: ["deleteIcon", `deleteIcon${y(s)}`, `deleteIconColor${y(b)}`, `deleteIcon${y(k)}Color${y(b)}`]
|
|
800
789
|
};
|
|
801
|
-
return
|
|
802
|
-
},
|
|
790
|
+
return Pt(C, co, r);
|
|
791
|
+
}, uo = W("div", {
|
|
803
792
|
name: "MuiChip",
|
|
804
793
|
slot: "Root",
|
|
805
794
|
overridesResolver: (e, r) => {
|
|
806
795
|
const {
|
|
807
|
-
ownerState:
|
|
796
|
+
ownerState: l
|
|
808
797
|
} = e, {
|
|
809
|
-
color:
|
|
810
|
-
iconColor:
|
|
811
|
-
clickable:
|
|
812
|
-
onDelete:
|
|
798
|
+
color: s,
|
|
799
|
+
iconColor: b,
|
|
800
|
+
clickable: P,
|
|
801
|
+
onDelete: $,
|
|
813
802
|
size: I,
|
|
814
|
-
variant:
|
|
815
|
-
} =
|
|
803
|
+
variant: k
|
|
804
|
+
} = l;
|
|
816
805
|
return [{
|
|
817
|
-
[`& .${
|
|
806
|
+
[`& .${f.avatar}`]: r.avatar
|
|
818
807
|
}, {
|
|
819
|
-
[`& .${
|
|
808
|
+
[`& .${f.avatar}`]: r[`avatar${y(I)}`]
|
|
820
809
|
}, {
|
|
821
|
-
[`& .${
|
|
810
|
+
[`& .${f.avatar}`]: r[`avatarColor${y(s)}`]
|
|
822
811
|
}, {
|
|
823
|
-
[`& .${
|
|
812
|
+
[`& .${f.icon}`]: r.icon
|
|
824
813
|
}, {
|
|
825
|
-
[`& .${
|
|
814
|
+
[`& .${f.icon}`]: r[`icon${y(I)}`]
|
|
826
815
|
}, {
|
|
827
|
-
[`& .${
|
|
816
|
+
[`& .${f.icon}`]: r[`iconColor${y(b)}`]
|
|
828
817
|
}, {
|
|
829
|
-
[`& .${
|
|
818
|
+
[`& .${f.deleteIcon}`]: r.deleteIcon
|
|
830
819
|
}, {
|
|
831
|
-
[`& .${
|
|
820
|
+
[`& .${f.deleteIcon}`]: r[`deleteIcon${y(I)}`]
|
|
832
821
|
}, {
|
|
833
|
-
[`& .${
|
|
822
|
+
[`& .${f.deleteIcon}`]: r[`deleteIconColor${y(s)}`]
|
|
834
823
|
}, {
|
|
835
|
-
[`& .${
|
|
836
|
-
}, r.root, r[`size${
|
|
824
|
+
[`& .${f.deleteIcon}`]: r[`deleteIcon${y(k)}Color${y(s)}`]
|
|
825
|
+
}, r.root, r[`size${y(I)}`], r[`color${y(s)}`], P && r.clickable, P && s !== "default" && r[`clickableColor${y(s)})`], $ && r.deletable, $ && s !== "default" && r[`deletableColor${y(s)}`], r[k], r[`${k}${y(s)}`]];
|
|
837
826
|
}
|
|
838
|
-
})(
|
|
827
|
+
})(fe(({
|
|
839
828
|
theme: e
|
|
840
829
|
}) => {
|
|
841
830
|
const r = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
|
|
@@ -864,11 +853,11 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
864
853
|
// Remove `button` padding
|
|
865
854
|
verticalAlign: "middle",
|
|
866
855
|
boxSizing: "border-box",
|
|
867
|
-
[`&.${
|
|
856
|
+
[`&.${f.disabled}`]: {
|
|
868
857
|
opacity: (e.vars || e).palette.action.disabledOpacity,
|
|
869
858
|
pointerEvents: "none"
|
|
870
859
|
},
|
|
871
|
-
[`& .${
|
|
860
|
+
[`& .${f.avatar}`]: {
|
|
872
861
|
marginLeft: 5,
|
|
873
862
|
marginRight: -6,
|
|
874
863
|
width: 24,
|
|
@@ -876,33 +865,33 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
876
865
|
color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : r,
|
|
877
866
|
fontSize: e.typography.pxToRem(12)
|
|
878
867
|
},
|
|
879
|
-
[`& .${
|
|
868
|
+
[`& .${f.avatarColorPrimary}`]: {
|
|
880
869
|
color: (e.vars || e).palette.primary.contrastText,
|
|
881
870
|
backgroundColor: (e.vars || e).palette.primary.dark
|
|
882
871
|
},
|
|
883
|
-
[`& .${
|
|
872
|
+
[`& .${f.avatarColorSecondary}`]: {
|
|
884
873
|
color: (e.vars || e).palette.secondary.contrastText,
|
|
885
874
|
backgroundColor: (e.vars || e).palette.secondary.dark
|
|
886
875
|
},
|
|
887
|
-
[`& .${
|
|
876
|
+
[`& .${f.avatarSmall}`]: {
|
|
888
877
|
marginLeft: 4,
|
|
889
878
|
marginRight: -4,
|
|
890
879
|
width: 18,
|
|
891
880
|
height: 18,
|
|
892
881
|
fontSize: e.typography.pxToRem(10)
|
|
893
882
|
},
|
|
894
|
-
[`& .${
|
|
883
|
+
[`& .${f.icon}`]: {
|
|
895
884
|
marginLeft: 5,
|
|
896
885
|
marginRight: -6
|
|
897
886
|
},
|
|
898
|
-
[`& .${
|
|
887
|
+
[`& .${f.deleteIcon}`]: {
|
|
899
888
|
WebkitTapHighlightColor: "transparent",
|
|
900
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` :
|
|
889
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : _(e.palette.text.primary, 0.26),
|
|
901
890
|
fontSize: 22,
|
|
902
891
|
cursor: "pointer",
|
|
903
892
|
margin: "0 5px 0 -6px",
|
|
904
893
|
"&:hover": {
|
|
905
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` :
|
|
894
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : _(e.palette.text.primary, 0.4)
|
|
906
895
|
}
|
|
907
896
|
},
|
|
908
897
|
variants: [{
|
|
@@ -911,42 +900,42 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
911
900
|
},
|
|
912
901
|
style: {
|
|
913
902
|
height: 24,
|
|
914
|
-
[`& .${
|
|
903
|
+
[`& .${f.icon}`]: {
|
|
915
904
|
fontSize: 18,
|
|
916
905
|
marginLeft: 4,
|
|
917
906
|
marginRight: -4
|
|
918
907
|
},
|
|
919
|
-
[`& .${
|
|
908
|
+
[`& .${f.deleteIcon}`]: {
|
|
920
909
|
fontSize: 16,
|
|
921
910
|
marginRight: 4,
|
|
922
911
|
marginLeft: -4
|
|
923
912
|
}
|
|
924
913
|
}
|
|
925
|
-
}, ...Object.entries(e.palette).filter(
|
|
914
|
+
}, ...Object.entries(e.palette).filter(pt(["contrastText"])).map(([l]) => ({
|
|
926
915
|
props: {
|
|
927
|
-
color:
|
|
916
|
+
color: l
|
|
928
917
|
},
|
|
929
918
|
style: {
|
|
930
|
-
backgroundColor: (e.vars || e).palette[
|
|
931
|
-
color: (e.vars || e).palette[
|
|
932
|
-
[`& .${
|
|
933
|
-
color: e.vars ? `rgba(${e.vars.palette[
|
|
919
|
+
backgroundColor: (e.vars || e).palette[l].main,
|
|
920
|
+
color: (e.vars || e).palette[l].contrastText,
|
|
921
|
+
[`& .${f.deleteIcon}`]: {
|
|
922
|
+
color: e.vars ? `rgba(${e.vars.palette[l].contrastTextChannel} / 0.7)` : _(e.palette[l].contrastText, 0.7),
|
|
934
923
|
"&:hover, &:active": {
|
|
935
|
-
color: (e.vars || e).palette[
|
|
924
|
+
color: (e.vars || e).palette[l].contrastText
|
|
936
925
|
}
|
|
937
926
|
}
|
|
938
927
|
}
|
|
939
928
|
})), {
|
|
940
|
-
props: (
|
|
929
|
+
props: (l) => l.iconColor === l.color,
|
|
941
930
|
style: {
|
|
942
|
-
[`& .${
|
|
931
|
+
[`& .${f.icon}`]: {
|
|
943
932
|
color: e.vars ? e.vars.palette.Chip.defaultIconColor : r
|
|
944
933
|
}
|
|
945
934
|
}
|
|
946
935
|
}, {
|
|
947
|
-
props: (
|
|
936
|
+
props: (l) => l.iconColor === l.color && l.color !== "default",
|
|
948
937
|
style: {
|
|
949
|
-
[`& .${
|
|
938
|
+
[`& .${f.icon}`]: {
|
|
950
939
|
color: "inherit"
|
|
951
940
|
}
|
|
952
941
|
}
|
|
@@ -955,18 +944,18 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
955
944
|
onDelete: !0
|
|
956
945
|
},
|
|
957
946
|
style: {
|
|
958
|
-
[`&.${
|
|
959
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
947
|
+
[`&.${f.focusVisible}`]: {
|
|
948
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
960
949
|
}
|
|
961
950
|
}
|
|
962
|
-
}, ...Object.entries(e.palette).filter(
|
|
951
|
+
}, ...Object.entries(e.palette).filter(pt(["dark"])).map(([l]) => ({
|
|
963
952
|
props: {
|
|
964
|
-
color:
|
|
953
|
+
color: l,
|
|
965
954
|
onDelete: !0
|
|
966
955
|
},
|
|
967
956
|
style: {
|
|
968
|
-
[`&.${
|
|
969
|
-
background: (e.vars || e).palette[
|
|
957
|
+
[`&.${f.focusVisible}`]: {
|
|
958
|
+
background: (e.vars || e).palette[l].dark
|
|
970
959
|
}
|
|
971
960
|
}
|
|
972
961
|
})), {
|
|
@@ -978,23 +967,23 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
978
967
|
WebkitTapHighlightColor: "transparent",
|
|
979
968
|
cursor: "pointer",
|
|
980
969
|
"&:hover": {
|
|
981
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
970
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
|
|
982
971
|
},
|
|
983
|
-
[`&.${
|
|
984
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
972
|
+
[`&.${f.focusVisible}`]: {
|
|
973
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
985
974
|
},
|
|
986
975
|
"&:active": {
|
|
987
976
|
boxShadow: (e.vars || e).shadows[1]
|
|
988
977
|
}
|
|
989
978
|
}
|
|
990
|
-
}, ...Object.entries(e.palette).filter(
|
|
979
|
+
}, ...Object.entries(e.palette).filter(pt(["dark"])).map(([l]) => ({
|
|
991
980
|
props: {
|
|
992
|
-
color:
|
|
981
|
+
color: l,
|
|
993
982
|
clickable: !0
|
|
994
983
|
},
|
|
995
984
|
style: {
|
|
996
|
-
[`&:hover, &.${
|
|
997
|
-
backgroundColor: (e.vars || e).palette[
|
|
985
|
+
[`&:hover, &.${f.focusVisible}`]: {
|
|
986
|
+
backgroundColor: (e.vars || e).palette[l].dark
|
|
998
987
|
}
|
|
999
988
|
}
|
|
1000
989
|
})), {
|
|
@@ -1004,64 +993,64 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1004
993
|
style: {
|
|
1005
994
|
backgroundColor: "transparent",
|
|
1006
995
|
border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
|
|
1007
|
-
[`&.${
|
|
996
|
+
[`&.${f.clickable}:hover`]: {
|
|
1008
997
|
backgroundColor: (e.vars || e).palette.action.hover
|
|
1009
998
|
},
|
|
1010
|
-
[`&.${
|
|
999
|
+
[`&.${f.focusVisible}`]: {
|
|
1011
1000
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
1012
1001
|
},
|
|
1013
|
-
[`& .${
|
|
1002
|
+
[`& .${f.avatar}`]: {
|
|
1014
1003
|
marginLeft: 4
|
|
1015
1004
|
},
|
|
1016
|
-
[`& .${
|
|
1005
|
+
[`& .${f.avatarSmall}`]: {
|
|
1017
1006
|
marginLeft: 2
|
|
1018
1007
|
},
|
|
1019
|
-
[`& .${
|
|
1008
|
+
[`& .${f.icon}`]: {
|
|
1020
1009
|
marginLeft: 4
|
|
1021
1010
|
},
|
|
1022
|
-
[`& .${
|
|
1011
|
+
[`& .${f.iconSmall}`]: {
|
|
1023
1012
|
marginLeft: 2
|
|
1024
1013
|
},
|
|
1025
|
-
[`& .${
|
|
1014
|
+
[`& .${f.deleteIcon}`]: {
|
|
1026
1015
|
marginRight: 5
|
|
1027
1016
|
},
|
|
1028
|
-
[`& .${
|
|
1017
|
+
[`& .${f.deleteIconSmall}`]: {
|
|
1029
1018
|
marginRight: 3
|
|
1030
1019
|
}
|
|
1031
1020
|
}
|
|
1032
|
-
}, ...Object.entries(e.palette).filter(
|
|
1021
|
+
}, ...Object.entries(e.palette).filter(pt()).map(([l]) => ({
|
|
1033
1022
|
props: {
|
|
1034
1023
|
variant: "outlined",
|
|
1035
|
-
color:
|
|
1024
|
+
color: l
|
|
1036
1025
|
},
|
|
1037
1026
|
style: {
|
|
1038
|
-
color: (e.vars || e).palette[
|
|
1039
|
-
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[
|
|
1040
|
-
[`&.${
|
|
1041
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[
|
|
1027
|
+
color: (e.vars || e).palette[l].main,
|
|
1028
|
+
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[l].mainChannel} / 0.7)` : _(e.palette[l].main, 0.7)}`,
|
|
1029
|
+
[`&.${f.clickable}:hover`]: {
|
|
1030
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : _(e.palette[l].main, e.palette.action.hoverOpacity)
|
|
1042
1031
|
},
|
|
1043
|
-
[`&.${
|
|
1044
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[
|
|
1032
|
+
[`&.${f.focusVisible}`]: {
|
|
1033
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / ${e.vars.palette.action.focusOpacity})` : _(e.palette[l].main, e.palette.action.focusOpacity)
|
|
1045
1034
|
},
|
|
1046
|
-
[`& .${
|
|
1047
|
-
color: e.vars ? `rgba(${e.vars.palette[
|
|
1035
|
+
[`& .${f.deleteIcon}`]: {
|
|
1036
|
+
color: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / 0.7)` : _(e.palette[l].main, 0.7),
|
|
1048
1037
|
"&:hover, &:active": {
|
|
1049
|
-
color: (e.vars || e).palette[
|
|
1038
|
+
color: (e.vars || e).palette[l].main
|
|
1050
1039
|
}
|
|
1051
1040
|
}
|
|
1052
1041
|
}
|
|
1053
1042
|
}))]
|
|
1054
1043
|
};
|
|
1055
|
-
})),
|
|
1044
|
+
})), fo = W("span", {
|
|
1056
1045
|
name: "MuiChip",
|
|
1057
1046
|
slot: "Label",
|
|
1058
1047
|
overridesResolver: (e, r) => {
|
|
1059
1048
|
const {
|
|
1060
|
-
ownerState:
|
|
1049
|
+
ownerState: l
|
|
1061
1050
|
} = e, {
|
|
1062
|
-
size:
|
|
1063
|
-
} =
|
|
1064
|
-
return [r.label, r[`label${
|
|
1051
|
+
size: s
|
|
1052
|
+
} = l;
|
|
1053
|
+
return [r.label, r[`label${y(s)}`]];
|
|
1065
1054
|
}
|
|
1066
1055
|
})({
|
|
1067
1056
|
overflow: "hidden",
|
|
@@ -1096,124 +1085,124 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1096
1085
|
}
|
|
1097
1086
|
}]
|
|
1098
1087
|
});
|
|
1099
|
-
function
|
|
1088
|
+
function Vt(e) {
|
|
1100
1089
|
return e.key === "Backspace" || e.key === "Delete";
|
|
1101
1090
|
}
|
|
1102
|
-
const
|
|
1103
|
-
const
|
|
1091
|
+
const Bt = /* @__PURE__ */ h.forwardRef(function(r, l) {
|
|
1092
|
+
const s = Ot({
|
|
1104
1093
|
props: r,
|
|
1105
1094
|
name: "MuiChip"
|
|
1106
1095
|
}), {
|
|
1107
|
-
avatar:
|
|
1108
|
-
className:
|
|
1109
|
-
clickable:
|
|
1096
|
+
avatar: b,
|
|
1097
|
+
className: P,
|
|
1098
|
+
clickable: $,
|
|
1110
1099
|
color: I = "default",
|
|
1111
|
-
component:
|
|
1112
|
-
deleteIcon:
|
|
1113
|
-
disabled:
|
|
1114
|
-
icon:
|
|
1115
|
-
label:
|
|
1116
|
-
onClick:
|
|
1117
|
-
onDelete:
|
|
1118
|
-
onKeyDown:
|
|
1119
|
-
onKeyUp:
|
|
1120
|
-
size:
|
|
1121
|
-
variant:
|
|
1122
|
-
tabIndex:
|
|
1123
|
-
skipFocusWhenDisabled:
|
|
1100
|
+
component: k,
|
|
1101
|
+
deleteIcon: C,
|
|
1102
|
+
disabled: T = !1,
|
|
1103
|
+
icon: N,
|
|
1104
|
+
label: le,
|
|
1105
|
+
onClick: L,
|
|
1106
|
+
onDelete: G,
|
|
1107
|
+
onKeyDown: ge,
|
|
1108
|
+
onKeyUp: Ve,
|
|
1109
|
+
size: Pe = "medium",
|
|
1110
|
+
variant: ie = "filled",
|
|
1111
|
+
tabIndex: q,
|
|
1112
|
+
skipFocusWhenDisabled: Se = !1,
|
|
1124
1113
|
// TODO v6: Rename to `focusableWhenDisabled`.
|
|
1125
|
-
slots:
|
|
1126
|
-
slotProps:
|
|
1127
|
-
...
|
|
1128
|
-
} =
|
|
1129
|
-
|
|
1130
|
-
},
|
|
1131
|
-
|
|
1132
|
-
},
|
|
1133
|
-
|
|
1134
|
-
},
|
|
1135
|
-
...
|
|
1136
|
-
component:
|
|
1137
|
-
disabled:
|
|
1138
|
-
size:
|
|
1114
|
+
slots: ze = {},
|
|
1115
|
+
slotProps: oe = {},
|
|
1116
|
+
...Fe
|
|
1117
|
+
} = s, Qe = h.useRef(null), be = Yt(Qe, l), me = (p) => {
|
|
1118
|
+
p.stopPropagation(), G && G(p);
|
|
1119
|
+
}, J = (p) => {
|
|
1120
|
+
p.currentTarget === p.target && Vt(p) && p.preventDefault(), ge && ge(p);
|
|
1121
|
+
}, g = (p) => {
|
|
1122
|
+
p.currentTarget === p.target && G && Vt(p) && G(p), Ve && Ve(p);
|
|
1123
|
+
}, ye = $ !== !1 && L ? !0 : $, he = ye || G ? Rt : k || "div", se = {
|
|
1124
|
+
...s,
|
|
1125
|
+
component: he,
|
|
1126
|
+
disabled: T,
|
|
1127
|
+
size: Pe,
|
|
1139
1128
|
color: I,
|
|
1140
|
-
iconColor: /* @__PURE__ */
|
|
1141
|
-
onDelete: !!
|
|
1142
|
-
clickable:
|
|
1143
|
-
variant:
|
|
1144
|
-
},
|
|
1145
|
-
component:
|
|
1146
|
-
focusVisibleClassName:
|
|
1147
|
-
...
|
|
1129
|
+
iconColor: /* @__PURE__ */ h.isValidElement(N) && N.props.color || I,
|
|
1130
|
+
onDelete: !!G,
|
|
1131
|
+
clickable: ye,
|
|
1132
|
+
variant: ie
|
|
1133
|
+
}, M = po(se), ke = he === Rt ? {
|
|
1134
|
+
component: k || "div",
|
|
1135
|
+
focusVisibleClassName: M.focusVisible,
|
|
1136
|
+
...G && {
|
|
1148
1137
|
disableRipple: !0
|
|
1149
1138
|
}
|
|
1150
1139
|
} : {};
|
|
1151
|
-
let
|
|
1152
|
-
|
|
1153
|
-
className:
|
|
1154
|
-
onClick:
|
|
1155
|
-
}) : /* @__PURE__ */
|
|
1156
|
-
className:
|
|
1157
|
-
onClick:
|
|
1140
|
+
let je = null;
|
|
1141
|
+
G && (je = C && /* @__PURE__ */ h.isValidElement(C) ? /* @__PURE__ */ h.cloneElement(C, {
|
|
1142
|
+
className: de(C.props.className, M.deleteIcon),
|
|
1143
|
+
onClick: me
|
|
1144
|
+
}) : /* @__PURE__ */ D(so, {
|
|
1145
|
+
className: M.deleteIcon,
|
|
1146
|
+
onClick: me
|
|
1158
1147
|
}));
|
|
1159
|
-
let
|
|
1160
|
-
|
|
1161
|
-
className:
|
|
1148
|
+
let Te = null;
|
|
1149
|
+
b && /* @__PURE__ */ h.isValidElement(b) && (Te = /* @__PURE__ */ h.cloneElement(b, {
|
|
1150
|
+
className: de(M.avatar, b.props.className)
|
|
1162
1151
|
}));
|
|
1163
|
-
let
|
|
1164
|
-
|
|
1165
|
-
className:
|
|
1166
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1167
|
-
const
|
|
1168
|
-
slots:
|
|
1169
|
-
slotProps:
|
|
1170
|
-
}, [
|
|
1171
|
-
elementType:
|
|
1152
|
+
let we = null;
|
|
1153
|
+
N && /* @__PURE__ */ h.isValidElement(N) && (we = /* @__PURE__ */ h.cloneElement(N, {
|
|
1154
|
+
className: de(M.icon, N.props.className)
|
|
1155
|
+
})), process.env.NODE_ENV !== "production" && Te && we && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");
|
|
1156
|
+
const X = {
|
|
1157
|
+
slots: ze,
|
|
1158
|
+
slotProps: oe
|
|
1159
|
+
}, [V, He] = Ye("root", {
|
|
1160
|
+
elementType: uo,
|
|
1172
1161
|
externalForwardedProps: {
|
|
1173
|
-
...
|
|
1174
|
-
...
|
|
1162
|
+
...X,
|
|
1163
|
+
...Fe
|
|
1175
1164
|
},
|
|
1176
|
-
ownerState:
|
|
1165
|
+
ownerState: se,
|
|
1177
1166
|
// The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
|
|
1178
1167
|
shouldForwardComponentProp: !0,
|
|
1179
|
-
ref:
|
|
1180
|
-
className:
|
|
1168
|
+
ref: be,
|
|
1169
|
+
className: de(M.root, P),
|
|
1181
1170
|
additionalProps: {
|
|
1182
|
-
disabled:
|
|
1183
|
-
tabIndex:
|
|
1184
|
-
...
|
|
1171
|
+
disabled: ye && T ? !0 : void 0,
|
|
1172
|
+
tabIndex: Se && T ? -1 : q,
|
|
1173
|
+
...ke
|
|
1185
1174
|
},
|
|
1186
|
-
getSlotProps: (
|
|
1187
|
-
...
|
|
1188
|
-
onClick: (
|
|
1189
|
-
var
|
|
1190
|
-
(
|
|
1175
|
+
getSlotProps: (p) => ({
|
|
1176
|
+
...p,
|
|
1177
|
+
onClick: (j) => {
|
|
1178
|
+
var H;
|
|
1179
|
+
(H = p.onClick) == null || H.call(p, j), L == null || L(j);
|
|
1191
1180
|
},
|
|
1192
|
-
onKeyDown: (
|
|
1193
|
-
var
|
|
1194
|
-
(
|
|
1181
|
+
onKeyDown: (j) => {
|
|
1182
|
+
var H;
|
|
1183
|
+
(H = p.onKeyDown) == null || H.call(p, j), J == null || J(j);
|
|
1195
1184
|
},
|
|
1196
|
-
onKeyUp: (
|
|
1197
|
-
var
|
|
1198
|
-
(
|
|
1185
|
+
onKeyUp: (j) => {
|
|
1186
|
+
var H;
|
|
1187
|
+
(H = p.onKeyUp) == null || H.call(p, j), g == null || g(j);
|
|
1199
1188
|
}
|
|
1200
1189
|
})
|
|
1201
|
-
}), [
|
|
1202
|
-
elementType:
|
|
1203
|
-
externalForwardedProps:
|
|
1204
|
-
ownerState:
|
|
1205
|
-
className:
|
|
1190
|
+
}), [Le, z] = Ye("label", {
|
|
1191
|
+
elementType: fo,
|
|
1192
|
+
externalForwardedProps: X,
|
|
1193
|
+
ownerState: se,
|
|
1194
|
+
className: M.label
|
|
1206
1195
|
});
|
|
1207
|
-
return /* @__PURE__ */
|
|
1208
|
-
as:
|
|
1209
|
-
...
|
|
1210
|
-
children: [
|
|
1211
|
-
...
|
|
1212
|
-
children:
|
|
1213
|
-
}),
|
|
1196
|
+
return /* @__PURE__ */ Xe(V, {
|
|
1197
|
+
as: he,
|
|
1198
|
+
...He,
|
|
1199
|
+
children: [Te || we, /* @__PURE__ */ D(Le, {
|
|
1200
|
+
...z,
|
|
1201
|
+
children: le
|
|
1202
|
+
}), je]
|
|
1214
1203
|
});
|
|
1215
1204
|
});
|
|
1216
|
-
process.env.NODE_ENV !== "production" && (
|
|
1205
|
+
process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
1217
1206
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1218
1207
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1219
1208
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1226,7 +1215,7 @@ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
|
|
|
1226
1215
|
* This prop isn't supported.
|
|
1227
1216
|
* Use the `component` prop if you need to change the children structure.
|
|
1228
1217
|
*/
|
|
1229
|
-
children:
|
|
1218
|
+
children: Qt,
|
|
1230
1219
|
/**
|
|
1231
1220
|
* Override or extend the styles applied to the component.
|
|
1232
1221
|
*/
|
|
@@ -1331,32 +1320,32 @@ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
|
|
|
1331
1320
|
*/
|
|
1332
1321
|
variant: t.oneOfType([t.oneOf(["filled", "outlined"]), t.string])
|
|
1333
1322
|
});
|
|
1334
|
-
function
|
|
1335
|
-
return
|
|
1323
|
+
function go(e) {
|
|
1324
|
+
return Ct("MuiAutocomplete", e);
|
|
1336
1325
|
}
|
|
1337
|
-
const
|
|
1338
|
-
var
|
|
1339
|
-
const
|
|
1326
|
+
const u = $t("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
1327
|
+
var zt, Ft;
|
|
1328
|
+
const bo = (e) => {
|
|
1340
1329
|
const {
|
|
1341
1330
|
classes: r,
|
|
1342
|
-
disablePortal:
|
|
1343
|
-
expanded:
|
|
1344
|
-
focused:
|
|
1345
|
-
fullWidth:
|
|
1346
|
-
hasClearIcon:
|
|
1331
|
+
disablePortal: l,
|
|
1332
|
+
expanded: s,
|
|
1333
|
+
focused: b,
|
|
1334
|
+
fullWidth: P,
|
|
1335
|
+
hasClearIcon: $,
|
|
1347
1336
|
hasPopupIcon: I,
|
|
1348
|
-
inputFocused:
|
|
1349
|
-
popupOpen:
|
|
1350
|
-
size:
|
|
1351
|
-
} = e,
|
|
1352
|
-
root: ["root",
|
|
1337
|
+
inputFocused: k,
|
|
1338
|
+
popupOpen: C,
|
|
1339
|
+
size: T
|
|
1340
|
+
} = e, N = {
|
|
1341
|
+
root: ["root", s && "expanded", b && "focused", P && "fullWidth", $ && "hasClearIcon", I && "hasPopupIcon"],
|
|
1353
1342
|
inputRoot: ["inputRoot"],
|
|
1354
|
-
input: ["input",
|
|
1355
|
-
tag: ["tag", `tagSize${
|
|
1343
|
+
input: ["input", k && "inputFocused"],
|
|
1344
|
+
tag: ["tag", `tagSize${y(T)}`],
|
|
1356
1345
|
endAdornment: ["endAdornment"],
|
|
1357
1346
|
clearIndicator: ["clearIndicator"],
|
|
1358
|
-
popupIndicator: ["popupIndicator",
|
|
1359
|
-
popper: ["popper",
|
|
1347
|
+
popupIndicator: ["popupIndicator", C && "popupIndicatorOpen"],
|
|
1348
|
+
popper: ["popper", l && "popperDisablePortal"],
|
|
1360
1349
|
paper: ["paper"],
|
|
1361
1350
|
listbox: ["listbox"],
|
|
1362
1351
|
loading: ["loading"],
|
|
@@ -1365,134 +1354,134 @@ const wo = (e) => {
|
|
|
1365
1354
|
groupLabel: ["groupLabel"],
|
|
1366
1355
|
groupUl: ["groupUl"]
|
|
1367
1356
|
};
|
|
1368
|
-
return
|
|
1369
|
-
},
|
|
1357
|
+
return Pt(N, go, r);
|
|
1358
|
+
}, mo = W("div", {
|
|
1370
1359
|
name: "MuiAutocomplete",
|
|
1371
1360
|
slot: "Root",
|
|
1372
1361
|
overridesResolver: (e, r) => {
|
|
1373
1362
|
const {
|
|
1374
|
-
ownerState:
|
|
1363
|
+
ownerState: l
|
|
1375
1364
|
} = e, {
|
|
1376
|
-
fullWidth:
|
|
1377
|
-
hasClearIcon:
|
|
1378
|
-
hasPopupIcon:
|
|
1379
|
-
inputFocused:
|
|
1365
|
+
fullWidth: s,
|
|
1366
|
+
hasClearIcon: b,
|
|
1367
|
+
hasPopupIcon: P,
|
|
1368
|
+
inputFocused: $,
|
|
1380
1369
|
size: I
|
|
1381
|
-
} =
|
|
1370
|
+
} = l;
|
|
1382
1371
|
return [{
|
|
1383
|
-
[`& .${
|
|
1372
|
+
[`& .${u.tag}`]: r.tag
|
|
1384
1373
|
}, {
|
|
1385
|
-
[`& .${
|
|
1374
|
+
[`& .${u.tag}`]: r[`tagSize${y(I)}`]
|
|
1386
1375
|
}, {
|
|
1387
|
-
[`& .${
|
|
1376
|
+
[`& .${u.inputRoot}`]: r.inputRoot
|
|
1388
1377
|
}, {
|
|
1389
|
-
[`& .${
|
|
1378
|
+
[`& .${u.input}`]: r.input
|
|
1390
1379
|
}, {
|
|
1391
|
-
[`& .${
|
|
1392
|
-
}, r.root,
|
|
1380
|
+
[`& .${u.input}`]: $ && r.inputFocused
|
|
1381
|
+
}, r.root, s && r.fullWidth, P && r.hasPopupIcon, b && r.hasClearIcon];
|
|
1393
1382
|
}
|
|
1394
1383
|
})({
|
|
1395
|
-
[`&.${
|
|
1384
|
+
[`&.${u.focused} .${u.clearIndicator}`]: {
|
|
1396
1385
|
visibility: "visible"
|
|
1397
1386
|
},
|
|
1398
1387
|
/* Avoid double tap issue on iOS */
|
|
1399
1388
|
"@media (pointer: fine)": {
|
|
1400
|
-
[`&:hover .${
|
|
1389
|
+
[`&:hover .${u.clearIndicator}`]: {
|
|
1401
1390
|
visibility: "visible"
|
|
1402
1391
|
}
|
|
1403
1392
|
},
|
|
1404
|
-
[`& .${
|
|
1393
|
+
[`& .${u.tag}`]: {
|
|
1405
1394
|
margin: 3,
|
|
1406
1395
|
maxWidth: "calc(100% - 6px)"
|
|
1407
1396
|
},
|
|
1408
|
-
[`& .${
|
|
1409
|
-
[`.${
|
|
1397
|
+
[`& .${u.inputRoot}`]: {
|
|
1398
|
+
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1410
1399
|
paddingRight: 30
|
|
1411
1400
|
},
|
|
1412
|
-
[`.${
|
|
1401
|
+
[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
|
|
1413
1402
|
paddingRight: 56
|
|
1414
1403
|
},
|
|
1415
|
-
[`& .${
|
|
1404
|
+
[`& .${u.input}`]: {
|
|
1416
1405
|
width: 0,
|
|
1417
1406
|
minWidth: 30
|
|
1418
1407
|
}
|
|
1419
1408
|
},
|
|
1420
|
-
[`& .${
|
|
1409
|
+
[`& .${xt.root}`]: {
|
|
1421
1410
|
paddingBottom: 1,
|
|
1422
1411
|
"& .MuiInput-input": {
|
|
1423
1412
|
padding: "4px 4px 4px 0px"
|
|
1424
1413
|
}
|
|
1425
1414
|
},
|
|
1426
|
-
[`& .${
|
|
1427
|
-
[`& .${
|
|
1415
|
+
[`& .${xt.root}.${Oe.sizeSmall}`]: {
|
|
1416
|
+
[`& .${xt.input}`]: {
|
|
1428
1417
|
padding: "2px 4px 3px 0"
|
|
1429
1418
|
}
|
|
1430
1419
|
},
|
|
1431
|
-
[`& .${
|
|
1420
|
+
[`& .${At.root}`]: {
|
|
1432
1421
|
padding: 9,
|
|
1433
|
-
[`.${
|
|
1422
|
+
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1434
1423
|
paddingRight: 39
|
|
1435
1424
|
},
|
|
1436
|
-
[`.${
|
|
1425
|
+
[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
|
|
1437
1426
|
paddingRight: 65
|
|
1438
1427
|
},
|
|
1439
|
-
[`& .${
|
|
1428
|
+
[`& .${u.input}`]: {
|
|
1440
1429
|
padding: "7.5px 4px 7.5px 5px"
|
|
1441
1430
|
},
|
|
1442
|
-
[`& .${
|
|
1431
|
+
[`& .${u.endAdornment}`]: {
|
|
1443
1432
|
right: 9
|
|
1444
1433
|
}
|
|
1445
1434
|
},
|
|
1446
|
-
[`& .${
|
|
1435
|
+
[`& .${At.root}.${Oe.sizeSmall}`]: {
|
|
1447
1436
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
1448
1437
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
1449
1438
|
paddingTop: 6,
|
|
1450
1439
|
paddingBottom: 6,
|
|
1451
1440
|
paddingLeft: 6,
|
|
1452
|
-
[`& .${
|
|
1441
|
+
[`& .${u.input}`]: {
|
|
1453
1442
|
padding: "2.5px 4px 2.5px 8px"
|
|
1454
1443
|
}
|
|
1455
1444
|
},
|
|
1456
|
-
[`& .${
|
|
1445
|
+
[`& .${Me.root}`]: {
|
|
1457
1446
|
paddingTop: 19,
|
|
1458
1447
|
paddingLeft: 8,
|
|
1459
|
-
[`.${
|
|
1448
|
+
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1460
1449
|
paddingRight: 39
|
|
1461
1450
|
},
|
|
1462
|
-
[`.${
|
|
1451
|
+
[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
|
|
1463
1452
|
paddingRight: 65
|
|
1464
1453
|
},
|
|
1465
|
-
[`& .${
|
|
1454
|
+
[`& .${Me.input}`]: {
|
|
1466
1455
|
padding: "7px 4px"
|
|
1467
1456
|
},
|
|
1468
|
-
[`& .${
|
|
1457
|
+
[`& .${u.endAdornment}`]: {
|
|
1469
1458
|
right: 9
|
|
1470
1459
|
}
|
|
1471
1460
|
},
|
|
1472
|
-
[`& .${
|
|
1461
|
+
[`& .${Me.root}.${Oe.sizeSmall}`]: {
|
|
1473
1462
|
paddingBottom: 1,
|
|
1474
|
-
[`& .${
|
|
1463
|
+
[`& .${Me.input}`]: {
|
|
1475
1464
|
padding: "2.5px 4px"
|
|
1476
1465
|
}
|
|
1477
1466
|
},
|
|
1478
|
-
[`& .${
|
|
1467
|
+
[`& .${Oe.hiddenLabel}`]: {
|
|
1479
1468
|
paddingTop: 8
|
|
1480
1469
|
},
|
|
1481
|
-
[`& .${
|
|
1470
|
+
[`& .${Me.root}.${Oe.hiddenLabel}`]: {
|
|
1482
1471
|
paddingTop: 0,
|
|
1483
1472
|
paddingBottom: 0,
|
|
1484
|
-
[`& .${
|
|
1473
|
+
[`& .${u.input}`]: {
|
|
1485
1474
|
paddingTop: 16,
|
|
1486
1475
|
paddingBottom: 17
|
|
1487
1476
|
}
|
|
1488
1477
|
},
|
|
1489
|
-
[`& .${
|
|
1490
|
-
[`& .${
|
|
1478
|
+
[`& .${Me.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]: {
|
|
1479
|
+
[`& .${u.input}`]: {
|
|
1491
1480
|
paddingTop: 8,
|
|
1492
1481
|
paddingBottom: 9
|
|
1493
1482
|
}
|
|
1494
1483
|
},
|
|
1495
|
-
[`& .${
|
|
1484
|
+
[`& .${u.input}`]: {
|
|
1496
1485
|
flexGrow: 1,
|
|
1497
1486
|
textOverflow: "ellipsis",
|
|
1498
1487
|
opacity: 0
|
|
@@ -1509,7 +1498,7 @@ const wo = (e) => {
|
|
|
1509
1498
|
size: "small"
|
|
1510
1499
|
},
|
|
1511
1500
|
style: {
|
|
1512
|
-
[`& .${
|
|
1501
|
+
[`& .${u.tag}`]: {
|
|
1513
1502
|
margin: 2,
|
|
1514
1503
|
maxWidth: "calc(100% - 4px)"
|
|
1515
1504
|
}
|
|
@@ -1519,7 +1508,7 @@ const wo = (e) => {
|
|
|
1519
1508
|
inputFocused: !0
|
|
1520
1509
|
},
|
|
1521
1510
|
style: {
|
|
1522
|
-
[`& .${
|
|
1511
|
+
[`& .${u.input}`]: {
|
|
1523
1512
|
opacity: 1
|
|
1524
1513
|
}
|
|
1525
1514
|
}
|
|
@@ -1528,12 +1517,12 @@ const wo = (e) => {
|
|
|
1528
1517
|
multiple: !0
|
|
1529
1518
|
},
|
|
1530
1519
|
style: {
|
|
1531
|
-
[`& .${
|
|
1520
|
+
[`& .${u.inputRoot}`]: {
|
|
1532
1521
|
flexWrap: "wrap"
|
|
1533
1522
|
}
|
|
1534
1523
|
}
|
|
1535
1524
|
}]
|
|
1536
|
-
}),
|
|
1525
|
+
}), yo = W("div", {
|
|
1537
1526
|
name: "MuiAutocomplete",
|
|
1538
1527
|
slot: "EndAdornment"
|
|
1539
1528
|
})({
|
|
@@ -1542,21 +1531,21 @@ const wo = (e) => {
|
|
|
1542
1531
|
right: 0,
|
|
1543
1532
|
top: "50%",
|
|
1544
1533
|
transform: "translate(0, -50%)"
|
|
1545
|
-
}),
|
|
1534
|
+
}), ho = W(jt, {
|
|
1546
1535
|
name: "MuiAutocomplete",
|
|
1547
1536
|
slot: "ClearIndicator"
|
|
1548
1537
|
})({
|
|
1549
1538
|
marginRight: -2,
|
|
1550
1539
|
padding: 4,
|
|
1551
1540
|
visibility: "hidden"
|
|
1552
|
-
}),
|
|
1541
|
+
}), vo = W(jt, {
|
|
1553
1542
|
name: "MuiAutocomplete",
|
|
1554
1543
|
slot: "PopupIndicator",
|
|
1555
1544
|
overridesResolver: (e, r) => {
|
|
1556
1545
|
const {
|
|
1557
|
-
ownerState:
|
|
1546
|
+
ownerState: l
|
|
1558
1547
|
} = e;
|
|
1559
|
-
return [r.popupIndicator,
|
|
1548
|
+
return [r.popupIndicator, l.popupOpen && r.popupIndicatorOpen];
|
|
1560
1549
|
}
|
|
1561
1550
|
})({
|
|
1562
1551
|
padding: 2,
|
|
@@ -1569,18 +1558,18 @@ const wo = (e) => {
|
|
|
1569
1558
|
transform: "rotate(180deg)"
|
|
1570
1559
|
}
|
|
1571
1560
|
}]
|
|
1572
|
-
}),
|
|
1561
|
+
}), xo = W(Ht, {
|
|
1573
1562
|
name: "MuiAutocomplete",
|
|
1574
1563
|
slot: "Popper",
|
|
1575
1564
|
overridesResolver: (e, r) => {
|
|
1576
1565
|
const {
|
|
1577
|
-
ownerState:
|
|
1566
|
+
ownerState: l
|
|
1578
1567
|
} = e;
|
|
1579
1568
|
return [{
|
|
1580
|
-
[`& .${
|
|
1581
|
-
}, r.popper,
|
|
1569
|
+
[`& .${u.option}`]: r.option
|
|
1570
|
+
}, r.popper, l.disablePortal && r.popperDisablePortal];
|
|
1582
1571
|
}
|
|
1583
|
-
})(
|
|
1572
|
+
})(fe(({
|
|
1584
1573
|
theme: e
|
|
1585
1574
|
}) => ({
|
|
1586
1575
|
zIndex: (e.vars || e).zIndex.modal,
|
|
@@ -1592,34 +1581,34 @@ const wo = (e) => {
|
|
|
1592
1581
|
position: "absolute"
|
|
1593
1582
|
}
|
|
1594
1583
|
}]
|
|
1595
|
-
}))),
|
|
1584
|
+
}))), Io = W(Ut, {
|
|
1596
1585
|
name: "MuiAutocomplete",
|
|
1597
1586
|
slot: "Paper"
|
|
1598
|
-
})(
|
|
1587
|
+
})(fe(({
|
|
1599
1588
|
theme: e
|
|
1600
1589
|
}) => ({
|
|
1601
1590
|
...e.typography.body1,
|
|
1602
1591
|
overflow: "auto"
|
|
1603
|
-
}))),
|
|
1592
|
+
}))), Co = W("div", {
|
|
1604
1593
|
name: "MuiAutocomplete",
|
|
1605
1594
|
slot: "Loading"
|
|
1606
|
-
})(
|
|
1595
|
+
})(fe(({
|
|
1607
1596
|
theme: e
|
|
1608
1597
|
}) => ({
|
|
1609
1598
|
color: (e.vars || e).palette.text.secondary,
|
|
1610
1599
|
padding: "14px 16px"
|
|
1611
|
-
}))),
|
|
1600
|
+
}))), $o = W("div", {
|
|
1612
1601
|
name: "MuiAutocomplete",
|
|
1613
1602
|
slot: "NoOptions"
|
|
1614
|
-
})(
|
|
1603
|
+
})(fe(({
|
|
1615
1604
|
theme: e
|
|
1616
1605
|
}) => ({
|
|
1617
1606
|
color: (e.vars || e).palette.text.secondary,
|
|
1618
1607
|
padding: "14px 16px"
|
|
1619
|
-
}))),
|
|
1608
|
+
}))), Oo = W("ul", {
|
|
1620
1609
|
name: "MuiAutocomplete",
|
|
1621
1610
|
slot: "Listbox"
|
|
1622
|
-
})(
|
|
1611
|
+
})(fe(({
|
|
1623
1612
|
theme: e
|
|
1624
1613
|
}) => ({
|
|
1625
1614
|
listStyle: "none",
|
|
@@ -1628,7 +1617,7 @@ const wo = (e) => {
|
|
|
1628
1617
|
maxHeight: "40vh",
|
|
1629
1618
|
overflow: "auto",
|
|
1630
1619
|
position: "relative",
|
|
1631
|
-
[`& .${
|
|
1620
|
+
[`& .${u.option}`]: {
|
|
1632
1621
|
minHeight: 48,
|
|
1633
1622
|
display: "flex",
|
|
1634
1623
|
overflow: "hidden",
|
|
@@ -1645,7 +1634,7 @@ const wo = (e) => {
|
|
|
1645
1634
|
[e.breakpoints.up("sm")]: {
|
|
1646
1635
|
minHeight: "auto"
|
|
1647
1636
|
},
|
|
1648
|
-
[`&.${
|
|
1637
|
+
[`&.${u.focused}`]: {
|
|
1649
1638
|
backgroundColor: (e.vars || e).palette.action.hover,
|
|
1650
1639
|
// Reset on touch devices, it doesn't add specificity
|
|
1651
1640
|
"@media (hover: none)": {
|
|
@@ -1656,333 +1645,333 @@ const wo = (e) => {
|
|
|
1656
1645
|
opacity: (e.vars || e).palette.action.disabledOpacity,
|
|
1657
1646
|
pointerEvents: "none"
|
|
1658
1647
|
},
|
|
1659
|
-
[`&.${
|
|
1648
|
+
[`&.${u.focusVisible}`]: {
|
|
1660
1649
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
1661
1650
|
},
|
|
1662
1651
|
'&[aria-selected="true"]': {
|
|
1663
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
1664
|
-
[`&.${
|
|
1665
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
1652
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : _(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1653
|
+
[`&.${u.focused}`]: {
|
|
1654
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : _(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1666
1655
|
// Reset on touch devices, it doesn't add specificity
|
|
1667
1656
|
"@media (hover: none)": {
|
|
1668
1657
|
backgroundColor: (e.vars || e).palette.action.selected
|
|
1669
1658
|
}
|
|
1670
1659
|
},
|
|
1671
|
-
[`&.${
|
|
1672
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1660
|
+
[`&.${u.focusVisible}`]: {
|
|
1661
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1673
1662
|
}
|
|
1674
1663
|
}
|
|
1675
1664
|
}
|
|
1676
|
-
}))),
|
|
1665
|
+
}))), Po = W(ut, {
|
|
1677
1666
|
name: "MuiAutocomplete",
|
|
1678
1667
|
slot: "GroupLabel"
|
|
1679
|
-
})(
|
|
1668
|
+
})(fe(({
|
|
1680
1669
|
theme: e
|
|
1681
1670
|
}) => ({
|
|
1682
1671
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
1683
1672
|
top: -8
|
|
1684
|
-
}))),
|
|
1673
|
+
}))), So = W("ul", {
|
|
1685
1674
|
name: "MuiAutocomplete",
|
|
1686
1675
|
slot: "GroupUl"
|
|
1687
1676
|
})({
|
|
1688
1677
|
padding: 0,
|
|
1689
|
-
[`& .${
|
|
1678
|
+
[`& .${u.option}`]: {
|
|
1690
1679
|
paddingLeft: 24
|
|
1691
1680
|
}
|
|
1692
|
-
}),
|
|
1693
|
-
const
|
|
1681
|
+
}), ko = /* @__PURE__ */ h.forwardRef(function(r, l) {
|
|
1682
|
+
const s = Ot({
|
|
1694
1683
|
props: r,
|
|
1695
1684
|
name: "MuiAutocomplete"
|
|
1696
1685
|
}), {
|
|
1697
|
-
autoComplete:
|
|
1698
|
-
autoHighlight:
|
|
1699
|
-
autoSelect:
|
|
1686
|
+
autoComplete: b = !1,
|
|
1687
|
+
autoHighlight: P = !1,
|
|
1688
|
+
autoSelect: $ = !1,
|
|
1700
1689
|
blurOnSelect: I = !1,
|
|
1701
|
-
ChipProps:
|
|
1702
|
-
className:
|
|
1703
|
-
clearIcon:
|
|
1690
|
+
ChipProps: k,
|
|
1691
|
+
className: C,
|
|
1692
|
+
clearIcon: T = zt || (zt = /* @__PURE__ */ D(Kt, {
|
|
1704
1693
|
fontSize: "small"
|
|
1705
1694
|
})),
|
|
1706
|
-
clearOnBlur:
|
|
1707
|
-
clearOnEscape:
|
|
1708
|
-
clearText:
|
|
1709
|
-
closeText:
|
|
1710
|
-
componentsProps:
|
|
1711
|
-
defaultValue:
|
|
1712
|
-
disableClearable:
|
|
1713
|
-
disableCloseOnSelect:
|
|
1714
|
-
disabled:
|
|
1715
|
-
disabledItemsFocusable:
|
|
1716
|
-
disableListWrap:
|
|
1717
|
-
disablePortal:
|
|
1718
|
-
filterOptions:
|
|
1719
|
-
filterSelectedOptions:
|
|
1720
|
-
forcePopupIcon:
|
|
1721
|
-
freeSolo:
|
|
1722
|
-
fullWidth:
|
|
1723
|
-
getLimitTagsText:
|
|
1724
|
-
getOptionDisabled:
|
|
1725
|
-
getOptionKey:
|
|
1726
|
-
getOptionLabel:
|
|
1727
|
-
isOptionEqualToValue:
|
|
1728
|
-
groupBy:
|
|
1729
|
-
handleHomeEndKeys:
|
|
1730
|
-
id:
|
|
1731
|
-
includeInputInList:
|
|
1732
|
-
inputValue:
|
|
1733
|
-
limitTags:
|
|
1734
|
-
ListboxComponent:
|
|
1735
|
-
ListboxProps:
|
|
1736
|
-
loading:
|
|
1737
|
-
loadingText:
|
|
1738
|
-
multiple:
|
|
1739
|
-
noOptionsText:
|
|
1740
|
-
onChange:
|
|
1741
|
-
onClose:
|
|
1742
|
-
onHighlightChange:
|
|
1743
|
-
onInputChange:
|
|
1744
|
-
onOpen:
|
|
1745
|
-
open:
|
|
1746
|
-
openOnFocus:
|
|
1747
|
-
openText:
|
|
1748
|
-
options:
|
|
1749
|
-
PaperComponent:
|
|
1750
|
-
PopperComponent:
|
|
1751
|
-
popupIcon:
|
|
1752
|
-
readOnly:
|
|
1753
|
-
renderGroup:
|
|
1754
|
-
renderInput:
|
|
1755
|
-
renderOption:
|
|
1756
|
-
renderTags:
|
|
1757
|
-
renderValue:
|
|
1758
|
-
selectOnFocus:
|
|
1759
|
-
size:
|
|
1760
|
-
slots:
|
|
1761
|
-
slotProps:
|
|
1762
|
-
value:
|
|
1763
|
-
...
|
|
1764
|
-
} =
|
|
1765
|
-
getRootProps:
|
|
1766
|
-
getInputProps:
|
|
1767
|
-
getInputLabelProps:
|
|
1768
|
-
getPopupIndicatorProps:
|
|
1769
|
-
getClearProps:
|
|
1770
|
-
getItemProps:
|
|
1771
|
-
getListboxProps:
|
|
1772
|
-
getOptionProps:
|
|
1773
|
-
value:
|
|
1774
|
-
dirty:
|
|
1775
|
-
expanded:
|
|
1776
|
-
id:
|
|
1777
|
-
popupOpen:
|
|
1778
|
-
focused:
|
|
1779
|
-
focusedItem:
|
|
1780
|
-
anchorEl:
|
|
1781
|
-
setAnchorEl:
|
|
1782
|
-
inputValue:
|
|
1783
|
-
groupedOptions:
|
|
1784
|
-
} =
|
|
1785
|
-
...
|
|
1695
|
+
clearOnBlur: N = !s.freeSolo,
|
|
1696
|
+
clearOnEscape: le = !1,
|
|
1697
|
+
clearText: L = "Clear",
|
|
1698
|
+
closeText: G = "Close",
|
|
1699
|
+
componentsProps: ge,
|
|
1700
|
+
defaultValue: Ve = s.multiple ? [] : null,
|
|
1701
|
+
disableClearable: Pe = !1,
|
|
1702
|
+
disableCloseOnSelect: ie = !1,
|
|
1703
|
+
disabled: q = !1,
|
|
1704
|
+
disabledItemsFocusable: Se = !1,
|
|
1705
|
+
disableListWrap: ze = !1,
|
|
1706
|
+
disablePortal: oe = !1,
|
|
1707
|
+
filterOptions: Fe,
|
|
1708
|
+
filterSelectedOptions: Qe = !1,
|
|
1709
|
+
forcePopupIcon: be = "auto",
|
|
1710
|
+
freeSolo: me = !1,
|
|
1711
|
+
fullWidth: J = !1,
|
|
1712
|
+
getLimitTagsText: g = (m) => `+${m}`,
|
|
1713
|
+
getOptionDisabled: ye,
|
|
1714
|
+
getOptionKey: he,
|
|
1715
|
+
getOptionLabel: se,
|
|
1716
|
+
isOptionEqualToValue: M,
|
|
1717
|
+
groupBy: ke,
|
|
1718
|
+
handleHomeEndKeys: je = !s.freeSolo,
|
|
1719
|
+
id: Te,
|
|
1720
|
+
includeInputInList: we = !1,
|
|
1721
|
+
inputValue: X,
|
|
1722
|
+
limitTags: V = -1,
|
|
1723
|
+
ListboxComponent: He,
|
|
1724
|
+
ListboxProps: Le,
|
|
1725
|
+
loading: z = !1,
|
|
1726
|
+
loadingText: p = "Loading…",
|
|
1727
|
+
multiple: j = !1,
|
|
1728
|
+
noOptionsText: H = "No options",
|
|
1729
|
+
onChange: S,
|
|
1730
|
+
onClose: Y,
|
|
1731
|
+
onHighlightChange: Ue,
|
|
1732
|
+
onInputChange: St,
|
|
1733
|
+
onOpen: K,
|
|
1734
|
+
open: Ze,
|
|
1735
|
+
openOnFocus: dt = !1,
|
|
1736
|
+
openText: E = "Open",
|
|
1737
|
+
options: kt,
|
|
1738
|
+
PaperComponent: c,
|
|
1739
|
+
PopperComponent: Be,
|
|
1740
|
+
popupIcon: x = Ft || (Ft = /* @__PURE__ */ D(Gt, {})),
|
|
1741
|
+
readOnly: ve = !1,
|
|
1742
|
+
renderGroup: Ae,
|
|
1743
|
+
renderInput: et,
|
|
1744
|
+
renderOption: Re,
|
|
1745
|
+
renderTags: ne,
|
|
1746
|
+
renderValue: xe,
|
|
1747
|
+
selectOnFocus: Tt = !s.freeSolo,
|
|
1748
|
+
size: De = "medium",
|
|
1749
|
+
slots: tt = {},
|
|
1750
|
+
slotProps: U = {},
|
|
1751
|
+
value: O,
|
|
1752
|
+
...Q
|
|
1753
|
+
} = s, {
|
|
1754
|
+
getRootProps: ot,
|
|
1755
|
+
getInputProps: Z,
|
|
1756
|
+
getInputLabelProps: ft,
|
|
1757
|
+
getPopupIndicatorProps: re,
|
|
1758
|
+
getClearProps: ee,
|
|
1759
|
+
getItemProps: gt,
|
|
1760
|
+
getListboxProps: We,
|
|
1761
|
+
getOptionProps: bt,
|
|
1762
|
+
value: B,
|
|
1763
|
+
dirty: Ie,
|
|
1764
|
+
expanded: ae,
|
|
1765
|
+
id: Ne,
|
|
1766
|
+
popupOpen: te,
|
|
1767
|
+
focused: nt,
|
|
1768
|
+
focusedItem: rt,
|
|
1769
|
+
anchorEl: Ce,
|
|
1770
|
+
setAnchorEl: mt,
|
|
1771
|
+
inputValue: yt,
|
|
1772
|
+
groupedOptions: $e
|
|
1773
|
+
} = ro({
|
|
1774
|
+
...s,
|
|
1786
1775
|
componentName: "Autocomplete"
|
|
1787
|
-
}),
|
|
1788
|
-
onMouseDown:
|
|
1789
|
-
} =
|
|
1790
|
-
ref:
|
|
1791
|
-
...
|
|
1792
|
-
} =
|
|
1793
|
-
...
|
|
1794
|
-
disablePortal:
|
|
1795
|
-
expanded:
|
|
1796
|
-
focused:
|
|
1797
|
-
fullWidth:
|
|
1798
|
-
getOptionLabel:
|
|
1799
|
-
hasClearIcon:
|
|
1800
|
-
hasPopupIcon:
|
|
1801
|
-
inputFocused:
|
|
1802
|
-
popupOpen:
|
|
1803
|
-
size:
|
|
1804
|
-
},
|
|
1776
|
+
}), Ge = !Pe && !q && Ie && !ve, Ke = (!me || be === !0) && be !== !1, {
|
|
1777
|
+
onMouseDown: ht
|
|
1778
|
+
} = Z(), {
|
|
1779
|
+
ref: vt,
|
|
1780
|
+
...at
|
|
1781
|
+
} = We(), Ee = se || ((m) => m.label ?? m), A = {
|
|
1782
|
+
...s,
|
|
1783
|
+
disablePortal: oe,
|
|
1784
|
+
expanded: ae,
|
|
1785
|
+
focused: nt,
|
|
1786
|
+
fullWidth: J,
|
|
1787
|
+
getOptionLabel: Ee,
|
|
1788
|
+
hasClearIcon: Ge,
|
|
1789
|
+
hasPopupIcon: Ke,
|
|
1790
|
+
inputFocused: rt === -1,
|
|
1791
|
+
popupOpen: te,
|
|
1792
|
+
size: De
|
|
1793
|
+
}, R = bo(A), ce = {
|
|
1805
1794
|
slots: {
|
|
1806
|
-
paper:
|
|
1807
|
-
popper:
|
|
1808
|
-
...
|
|
1795
|
+
paper: c,
|
|
1796
|
+
popper: Be,
|
|
1797
|
+
...tt
|
|
1809
1798
|
},
|
|
1810
1799
|
slotProps: {
|
|
1811
|
-
chip:
|
|
1812
|
-
listbox:
|
|
1813
|
-
...
|
|
1814
|
-
...
|
|
1800
|
+
chip: k,
|
|
1801
|
+
listbox: Le,
|
|
1802
|
+
...ge,
|
|
1803
|
+
...U
|
|
1815
1804
|
}
|
|
1816
|
-
}, [
|
|
1817
|
-
elementType:
|
|
1818
|
-
externalForwardedProps:
|
|
1819
|
-
ownerState:
|
|
1820
|
-
className:
|
|
1821
|
-
additionalProps:
|
|
1822
|
-
ref:
|
|
1823
|
-
}), [n, o] =
|
|
1824
|
-
elementType:
|
|
1825
|
-
externalForwardedProps:
|
|
1826
|
-
ownerState:
|
|
1827
|
-
className:
|
|
1828
|
-
}), [
|
|
1829
|
-
elementType:
|
|
1830
|
-
externalForwardedProps:
|
|
1831
|
-
ownerState:
|
|
1832
|
-
className:
|
|
1805
|
+
}, [_e, lt] = Ye("listbox", {
|
|
1806
|
+
elementType: Oo,
|
|
1807
|
+
externalForwardedProps: ce,
|
|
1808
|
+
ownerState: A,
|
|
1809
|
+
className: R.listbox,
|
|
1810
|
+
additionalProps: at,
|
|
1811
|
+
ref: vt
|
|
1812
|
+
}), [n, o] = Ye("paper", {
|
|
1813
|
+
elementType: Ut,
|
|
1814
|
+
externalForwardedProps: ce,
|
|
1815
|
+
ownerState: A,
|
|
1816
|
+
className: R.paper
|
|
1817
|
+
}), [a, d] = Ye("popper", {
|
|
1818
|
+
elementType: Ht,
|
|
1819
|
+
externalForwardedProps: ce,
|
|
1820
|
+
ownerState: A,
|
|
1821
|
+
className: R.popper,
|
|
1833
1822
|
additionalProps: {
|
|
1834
|
-
disablePortal:
|
|
1823
|
+
disablePortal: oe,
|
|
1835
1824
|
style: {
|
|
1836
|
-
width:
|
|
1825
|
+
width: Ce ? Ce.clientWidth : null
|
|
1837
1826
|
},
|
|
1838
1827
|
role: "presentation",
|
|
1839
|
-
anchorEl:
|
|
1840
|
-
open:
|
|
1828
|
+
anchorEl: Ce,
|
|
1829
|
+
open: te
|
|
1841
1830
|
}
|
|
1842
1831
|
});
|
|
1843
1832
|
let i;
|
|
1844
|
-
const
|
|
1845
|
-
className:
|
|
1846
|
-
disabled:
|
|
1847
|
-
...
|
|
1833
|
+
const v = (m) => ({
|
|
1834
|
+
className: R.tag,
|
|
1835
|
+
disabled: q,
|
|
1836
|
+
...gt(m)
|
|
1848
1837
|
});
|
|
1849
|
-
if (
|
|
1838
|
+
if (j ? B.length > 0 && (ne ? i = ne(B, v, A) : xe ? i = xe(B, v, A) : i = B.map((m, pe) => {
|
|
1850
1839
|
const {
|
|
1851
|
-
key:
|
|
1852
|
-
...
|
|
1853
|
-
} =
|
|
1854
|
-
index:
|
|
1840
|
+
key: ue,
|
|
1841
|
+
...Je
|
|
1842
|
+
} = v({
|
|
1843
|
+
index: pe
|
|
1855
1844
|
});
|
|
1856
|
-
return /* @__PURE__ */
|
|
1857
|
-
label:
|
|
1858
|
-
size:
|
|
1859
|
-
...
|
|
1860
|
-
...
|
|
1861
|
-
},
|
|
1862
|
-
})) :
|
|
1863
|
-
const
|
|
1864
|
-
!
|
|
1865
|
-
className:
|
|
1866
|
-
children: m
|
|
1845
|
+
return /* @__PURE__ */ D(Bt, {
|
|
1846
|
+
label: Ee(m),
|
|
1847
|
+
size: De,
|
|
1848
|
+
...Je,
|
|
1849
|
+
...ce.slotProps.chip
|
|
1850
|
+
}, ue);
|
|
1851
|
+
})) : xe && B != null && (i = xe(B, v, A)), V > -1 && Array.isArray(i)) {
|
|
1852
|
+
const m = i.length - V;
|
|
1853
|
+
!nt && m > 0 && (i = i.splice(0, V), i.push(/* @__PURE__ */ D("span", {
|
|
1854
|
+
className: R.tag,
|
|
1855
|
+
children: g(m)
|
|
1867
1856
|
}, i.length)));
|
|
1868
1857
|
}
|
|
1869
|
-
const
|
|
1870
|
-
children: [/* @__PURE__ */
|
|
1871
|
-
className:
|
|
1872
|
-
ownerState:
|
|
1858
|
+
const F = Ae || ((m) => /* @__PURE__ */ Xe("li", {
|
|
1859
|
+
children: [/* @__PURE__ */ D(Po, {
|
|
1860
|
+
className: R.groupLabel,
|
|
1861
|
+
ownerState: A,
|
|
1873
1862
|
component: "div",
|
|
1874
|
-
children:
|
|
1875
|
-
}), /* @__PURE__ */
|
|
1876
|
-
className:
|
|
1877
|
-
ownerState:
|
|
1878
|
-
children:
|
|
1863
|
+
children: m.group
|
|
1864
|
+
}), /* @__PURE__ */ D(So, {
|
|
1865
|
+
className: R.groupUl,
|
|
1866
|
+
ownerState: A,
|
|
1867
|
+
children: m.children
|
|
1879
1868
|
})]
|
|
1880
|
-
},
|
|
1869
|
+
}, m.key)), Wt = Re || ((m, pe) => {
|
|
1881
1870
|
const {
|
|
1882
|
-
key:
|
|
1883
|
-
...
|
|
1884
|
-
} =
|
|
1885
|
-
return /* @__PURE__ */
|
|
1886
|
-
...
|
|
1887
|
-
children:
|
|
1888
|
-
},
|
|
1889
|
-
}),
|
|
1890
|
-
const
|
|
1891
|
-
option:
|
|
1892
|
-
index:
|
|
1871
|
+
key: ue,
|
|
1872
|
+
...Je
|
|
1873
|
+
} = m;
|
|
1874
|
+
return /* @__PURE__ */ D("li", {
|
|
1875
|
+
...Je,
|
|
1876
|
+
children: Ee(pe)
|
|
1877
|
+
}, ue);
|
|
1878
|
+
}), Lt = (m, pe) => {
|
|
1879
|
+
const ue = bt({
|
|
1880
|
+
option: m,
|
|
1881
|
+
index: pe
|
|
1893
1882
|
});
|
|
1894
|
-
return
|
|
1895
|
-
...
|
|
1896
|
-
className:
|
|
1897
|
-
},
|
|
1898
|
-
selected:
|
|
1899
|
-
index:
|
|
1900
|
-
inputValue:
|
|
1901
|
-
},
|
|
1902
|
-
},
|
|
1903
|
-
return /* @__PURE__ */
|
|
1904
|
-
children: [/* @__PURE__ */
|
|
1905
|
-
ref:
|
|
1906
|
-
className:
|
|
1907
|
-
ownerState:
|
|
1908
|
-
...
|
|
1909
|
-
children:
|
|
1910
|
-
id:
|
|
1911
|
-
disabled:
|
|
1883
|
+
return Wt({
|
|
1884
|
+
...ue,
|
|
1885
|
+
className: R.option
|
|
1886
|
+
}, m, {
|
|
1887
|
+
selected: ue["aria-selected"],
|
|
1888
|
+
index: pe,
|
|
1889
|
+
inputValue: yt
|
|
1890
|
+
}, A);
|
|
1891
|
+
}, it = ce.slotProps.clearIndicator, st = ce.slotProps.popupIndicator;
|
|
1892
|
+
return /* @__PURE__ */ Xe(h.Fragment, {
|
|
1893
|
+
children: [/* @__PURE__ */ D(mo, {
|
|
1894
|
+
ref: l,
|
|
1895
|
+
className: de(R.root, C),
|
|
1896
|
+
ownerState: A,
|
|
1897
|
+
...ot(Q),
|
|
1898
|
+
children: et({
|
|
1899
|
+
id: Ne,
|
|
1900
|
+
disabled: q,
|
|
1912
1901
|
fullWidth: !0,
|
|
1913
|
-
size:
|
|
1914
|
-
InputLabelProps:
|
|
1902
|
+
size: De === "small" ? "small" : void 0,
|
|
1903
|
+
InputLabelProps: ft(),
|
|
1915
1904
|
InputProps: {
|
|
1916
|
-
ref:
|
|
1917
|
-
className:
|
|
1905
|
+
ref: mt,
|
|
1906
|
+
className: R.inputRoot,
|
|
1918
1907
|
startAdornment: i,
|
|
1919
|
-
onMouseDown: (
|
|
1920
|
-
|
|
1908
|
+
onMouseDown: (m) => {
|
|
1909
|
+
m.target === m.currentTarget && ht(m);
|
|
1921
1910
|
},
|
|
1922
|
-
...(
|
|
1923
|
-
endAdornment: /* @__PURE__ */
|
|
1924
|
-
className:
|
|
1925
|
-
ownerState:
|
|
1926
|
-
children: [
|
|
1911
|
+
...(Ge || Ke) && {
|
|
1912
|
+
endAdornment: /* @__PURE__ */ Xe(yo, {
|
|
1913
|
+
className: R.endAdornment,
|
|
1914
|
+
ownerState: A,
|
|
1915
|
+
children: [Ge ? /* @__PURE__ */ D(ho, {
|
|
1916
|
+
...ee(),
|
|
1917
|
+
"aria-label": L,
|
|
1918
|
+
title: L,
|
|
1919
|
+
ownerState: A,
|
|
1920
|
+
...it,
|
|
1921
|
+
className: de(R.clearIndicator, it == null ? void 0 : it.className),
|
|
1922
|
+
children: T
|
|
1923
|
+
}) : null, Ke ? /* @__PURE__ */ D(vo, {
|
|
1927
1924
|
...re(),
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
...pe(),
|
|
1936
|
-
disabled: p,
|
|
1937
|
-
"aria-label": le ? N : z,
|
|
1938
|
-
title: le ? N : z,
|
|
1939
|
-
ownerState: M,
|
|
1940
|
-
...dt,
|
|
1941
|
-
className: ye(V.popupIndicator, dt == null ? void 0 : dt.className),
|
|
1942
|
-
children: P
|
|
1925
|
+
disabled: q,
|
|
1926
|
+
"aria-label": te ? G : E,
|
|
1927
|
+
title: te ? G : E,
|
|
1928
|
+
ownerState: A,
|
|
1929
|
+
...st,
|
|
1930
|
+
className: de(R.popupIndicator, st == null ? void 0 : st.className),
|
|
1931
|
+
children: x
|
|
1943
1932
|
}) : null]
|
|
1944
1933
|
})
|
|
1945
1934
|
}
|
|
1946
1935
|
},
|
|
1947
1936
|
inputProps: {
|
|
1948
|
-
className:
|
|
1949
|
-
disabled:
|
|
1950
|
-
readOnly:
|
|
1951
|
-
...
|
|
1937
|
+
className: R.input,
|
|
1938
|
+
disabled: q,
|
|
1939
|
+
readOnly: ve,
|
|
1940
|
+
...Z()
|
|
1952
1941
|
}
|
|
1953
1942
|
})
|
|
1954
|
-
}),
|
|
1955
|
-
as:
|
|
1956
|
-
...
|
|
1957
|
-
children: /* @__PURE__ */
|
|
1943
|
+
}), Ce ? /* @__PURE__ */ D(xo, {
|
|
1944
|
+
as: a,
|
|
1945
|
+
...d,
|
|
1946
|
+
children: /* @__PURE__ */ Xe(Io, {
|
|
1958
1947
|
as: n,
|
|
1959
1948
|
...o,
|
|
1960
|
-
children: [
|
|
1961
|
-
className:
|
|
1962
|
-
ownerState:
|
|
1963
|
-
children:
|
|
1964
|
-
}) : null,
|
|
1965
|
-
className:
|
|
1966
|
-
ownerState:
|
|
1949
|
+
children: [z && $e.length === 0 ? /* @__PURE__ */ D(Co, {
|
|
1950
|
+
className: R.loading,
|
|
1951
|
+
ownerState: A,
|
|
1952
|
+
children: p
|
|
1953
|
+
}) : null, $e.length === 0 && !me && !z ? /* @__PURE__ */ D($o, {
|
|
1954
|
+
className: R.noOptions,
|
|
1955
|
+
ownerState: A,
|
|
1967
1956
|
role: "presentation",
|
|
1968
|
-
onMouseDown: (
|
|
1969
|
-
|
|
1957
|
+
onMouseDown: (m) => {
|
|
1958
|
+
m.preventDefault();
|
|
1970
1959
|
},
|
|
1971
|
-
children:
|
|
1972
|
-
}) : null,
|
|
1973
|
-
as:
|
|
1974
|
-
...
|
|
1975
|
-
children:
|
|
1976
|
-
key:
|
|
1977
|
-
group:
|
|
1978
|
-
children:
|
|
1979
|
-
}) :
|
|
1960
|
+
children: H
|
|
1961
|
+
}) : null, $e.length > 0 ? /* @__PURE__ */ D(_e, {
|
|
1962
|
+
as: He,
|
|
1963
|
+
...lt,
|
|
1964
|
+
children: $e.map((m, pe) => ke ? F({
|
|
1965
|
+
key: m.key,
|
|
1966
|
+
group: m.group,
|
|
1967
|
+
children: m.options.map((ue, Je) => Lt(ue, m.index + Je))
|
|
1968
|
+
}) : Lt(m, pe))
|
|
1980
1969
|
}) : null]
|
|
1981
1970
|
})
|
|
1982
1971
|
}) : null]
|
|
1983
1972
|
});
|
|
1984
1973
|
});
|
|
1985
|
-
process.env.NODE_ENV !== "production" && (
|
|
1974
|
+
process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
1986
1975
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1987
1976
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1988
1977
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2078,7 +2067,7 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
2078
2067
|
* The default value. Use when the component is not controlled.
|
|
2079
2068
|
* @default props.multiple ? [] : null
|
|
2080
2069
|
*/
|
|
2081
|
-
defaultValue:
|
|
2070
|
+
defaultValue: Dt(t.any, (e) => e.multiple && e.defaultValue !== void 0 && !Array.isArray(e.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${e.defaultValue} was provided.`].join(`
|
|
2082
2071
|
`)) : null),
|
|
2083
2072
|
/**
|
|
2084
2073
|
* If `true`, the input can't be cleared.
|
|
@@ -2216,7 +2205,7 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
2216
2205
|
* Set `-1` to disable the limit.
|
|
2217
2206
|
* @default -1
|
|
2218
2207
|
*/
|
|
2219
|
-
limitTags:
|
|
2208
|
+
limitTags: _t,
|
|
2220
2209
|
/**
|
|
2221
2210
|
* The component used to render the listbox.
|
|
2222
2211
|
* @default 'ul'
|
|
@@ -2432,262 +2421,9 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
2432
2421
|
* The value must have reference equality with the option in order to be selected.
|
|
2433
2422
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
2434
2423
|
*/
|
|
2435
|
-
value:
|
|
2424
|
+
value: Dt(t.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
|
|
2436
2425
|
`)) : null)
|
|
2437
2426
|
});
|
|
2438
|
-
const Wo = [
|
|
2439
|
-
"Hold a high public office",
|
|
2440
|
-
"Have an immediate family member who does",
|
|
2441
|
-
"A close business associate who does"
|
|
2442
|
-
], jo = [
|
|
2443
|
-
"Savings from salary (basic and/or bonus)",
|
|
2444
|
-
"Savings from salary (basic and/or bonus), self-employed",
|
|
2445
|
-
"Savings from salary (basic and/or bonus), self-employed company less than one year old",
|
|
2446
|
-
"Sales of shares or other investments / liquidation of investment portfolio",
|
|
2447
|
-
"Loan",
|
|
2448
|
-
"Sale of property - Land",
|
|
2449
|
-
"Sale of property - House, Condominium, Apartment",
|
|
2450
|
-
"Sale of property - Boat",
|
|
2451
|
-
"Sale of property - Autombile, Truck",
|
|
2452
|
-
"Inheritance - sole inheritor",
|
|
2453
|
-
"Inheritance - partical inheritor",
|
|
2454
|
-
"Maturity/surrender of life policy",
|
|
2455
|
-
"Maturity/surrender of retirement policy",
|
|
2456
|
-
"Company sale - Sole Proprietor, Sole Owner",
|
|
2457
|
-
"Company sale - Partnership",
|
|
2458
|
-
"Company sale - Corporation, LLC",
|
|
2459
|
-
"Company Profitsharing or Disbursement",
|
|
2460
|
-
"Company Dividends",
|
|
2461
|
-
"Gift"
|
|
2462
|
-
], Bo = [
|
|
2463
|
-
"Once a year",
|
|
2464
|
-
"Once every 3 months ",
|
|
2465
|
-
"Once a month ",
|
|
2466
|
-
"Once a week ",
|
|
2467
|
-
"Other"
|
|
2468
|
-
], Uo = [
|
|
2469
|
-
"Investment",
|
|
2470
|
-
"Cross Border ",
|
|
2471
|
-
"Identity Services ",
|
|
2472
|
-
"Buy, sell or trade Crypto ",
|
|
2473
|
-
"Wallet Services",
|
|
2474
|
-
"Custody Services",
|
|
2475
|
-
"Other Services"
|
|
2476
|
-
], Pn = ({
|
|
2477
|
-
userInfo: e,
|
|
2478
|
-
setUserInfo: r,
|
|
2479
|
-
processKyc: a,
|
|
2480
|
-
buttonComponent: c,
|
|
2481
|
-
processLoader: h
|
|
2482
|
-
}) => {
|
|
2483
|
-
const T = c ?? oo, [x, I] = Fe(!1), [S, $] = Fe(""), [k, R] = Fe(""), [Y, A] = Fe(""), [N, ie] = Fe(""), [te, de] = Fe(null), ae = () => {
|
|
2484
|
-
te && (r({
|
|
2485
|
-
...e,
|
|
2486
|
-
isPoliticalExpose: x,
|
|
2487
|
-
politicalExpose: S,
|
|
2488
|
-
frequency: k,
|
|
2489
|
-
reason: Y,
|
|
2490
|
-
source: N,
|
|
2491
|
-
origin: te.alpha3
|
|
2492
|
-
}), a(x, S, k, Y, N, te.alpha3));
|
|
2493
|
-
};
|
|
2494
|
-
return /* @__PURE__ */ E(zt, { children: [
|
|
2495
|
-
/* @__PURE__ */ s(et, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s(eo, { totalSteps: 4, currentStep: 4 }) }),
|
|
2496
|
-
/* @__PURE__ */ E(et, { pl: 2, mt: 4, children: [
|
|
2497
|
-
/* @__PURE__ */ s(He, { variant: "h5", sx: { fontWeight: "bold" }, children: "Additional Questions" }),
|
|
2498
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2499
|
-
"Are you a politically exposed person?",
|
|
2500
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2501
|
-
] }) }),
|
|
2502
|
-
/* @__PURE__ */ E(St, { mt: 0, container: !0, spacing: 2, children: [
|
|
2503
|
-
/* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
|
|
2504
|
-
et,
|
|
2505
|
-
{
|
|
2506
|
-
onClick: () => I(!0),
|
|
2507
|
-
className: `political-expose ${x === !0 && "active"}`,
|
|
2508
|
-
children: "Yes"
|
|
2509
|
-
}
|
|
2510
|
-
) }),
|
|
2511
|
-
/* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
|
|
2512
|
-
et,
|
|
2513
|
-
{
|
|
2514
|
-
onClick: () => {
|
|
2515
|
-
I(!1), $("");
|
|
2516
|
-
},
|
|
2517
|
-
className: `political-expose ${x === !1 && "active"}`,
|
|
2518
|
-
children: "No"
|
|
2519
|
-
}
|
|
2520
|
-
) })
|
|
2521
|
-
] }),
|
|
2522
|
-
x && /* @__PURE__ */ s(ft, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2523
|
-
gt,
|
|
2524
|
-
{
|
|
2525
|
-
sx: {
|
|
2526
|
-
fontWeight: "bold",
|
|
2527
|
-
color: "#16359D",
|
|
2528
|
-
".MuiSvgIcon-root ": {
|
|
2529
|
-
fill: "#16359D !important"
|
|
2530
|
-
}
|
|
2531
|
-
},
|
|
2532
|
-
variant: "filled",
|
|
2533
|
-
value: S,
|
|
2534
|
-
displayEmpty: !0,
|
|
2535
|
-
onChange: (p) => $(p.target.value),
|
|
2536
|
-
children: [
|
|
2537
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2538
|
-
Wo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2539
|
-
]
|
|
2540
|
-
}
|
|
2541
|
-
) }),
|
|
2542
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2543
|
-
"Expected frequency of transactions?",
|
|
2544
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2545
|
-
] }) }),
|
|
2546
|
-
/* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2547
|
-
gt,
|
|
2548
|
-
{
|
|
2549
|
-
sx: {
|
|
2550
|
-
fontWeight: "bold",
|
|
2551
|
-
color: "#16359D",
|
|
2552
|
-
".MuiSvgIcon-root ": {
|
|
2553
|
-
fill: "#16359D !important"
|
|
2554
|
-
}
|
|
2555
|
-
},
|
|
2556
|
-
variant: "filled",
|
|
2557
|
-
value: k,
|
|
2558
|
-
displayEmpty: !0,
|
|
2559
|
-
onChange: (p) => R(p.target.value),
|
|
2560
|
-
children: [
|
|
2561
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2562
|
-
Bo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2563
|
-
]
|
|
2564
|
-
}
|
|
2565
|
-
) }),
|
|
2566
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2567
|
-
"Reason for signing up",
|
|
2568
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2569
|
-
] }) }),
|
|
2570
|
-
/* @__PURE__ */ s(ft, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2571
|
-
gt,
|
|
2572
|
-
{
|
|
2573
|
-
sx: {
|
|
2574
|
-
fontWeight: "bold",
|
|
2575
|
-
color: "#16359D",
|
|
2576
|
-
".MuiSvgIcon-root ": {
|
|
2577
|
-
fill: "#16359D !important"
|
|
2578
|
-
}
|
|
2579
|
-
},
|
|
2580
|
-
variant: "filled",
|
|
2581
|
-
value: Y,
|
|
2582
|
-
displayEmpty: !0,
|
|
2583
|
-
onChange: (p) => A(p.target.value),
|
|
2584
|
-
children: [
|
|
2585
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2586
|
-
Uo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2587
|
-
]
|
|
2588
|
-
}
|
|
2589
|
-
) }),
|
|
2590
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2591
|
-
"Source of wealth",
|
|
2592
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2593
|
-
] }) }),
|
|
2594
|
-
/* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2595
|
-
gt,
|
|
2596
|
-
{
|
|
2597
|
-
sx: {
|
|
2598
|
-
fontWeight: "bold",
|
|
2599
|
-
color: "#16359D",
|
|
2600
|
-
".MuiSvgIcon-root ": {
|
|
2601
|
-
fill: "#16359D !important"
|
|
2602
|
-
}
|
|
2603
|
-
},
|
|
2604
|
-
variant: "filled",
|
|
2605
|
-
value: N,
|
|
2606
|
-
displayEmpty: !0,
|
|
2607
|
-
onChange: (p) => ie(p.target.value),
|
|
2608
|
-
children: [
|
|
2609
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2610
|
-
jo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2611
|
-
]
|
|
2612
|
-
}
|
|
2613
|
-
) }),
|
|
2614
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2615
|
-
"Origin of funds",
|
|
2616
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2617
|
-
] }) }),
|
|
2618
|
-
/* @__PURE__ */ s(
|
|
2619
|
-
Xt,
|
|
2620
|
-
{
|
|
2621
|
-
sx: {
|
|
2622
|
-
mt: 2,
|
|
2623
|
-
".MuiSvgIcon-root ": {
|
|
2624
|
-
fill: "#16359D !important"
|
|
2625
|
-
}
|
|
2626
|
-
},
|
|
2627
|
-
value: te,
|
|
2628
|
-
isOptionEqualToValue: (p, W) => p.alpha3 === W.alpha3,
|
|
2629
|
-
onChange: (p, W) => de(W),
|
|
2630
|
-
options: to,
|
|
2631
|
-
autoHighlight: !0,
|
|
2632
|
-
openOnFocus: !0,
|
|
2633
|
-
getOptionLabel: (p) => p.name,
|
|
2634
|
-
renderOption: (p, W) => /* @__PURE__ */ E(
|
|
2635
|
-
et,
|
|
2636
|
-
{
|
|
2637
|
-
component: "li",
|
|
2638
|
-
sx: { "& > img": { mr: 2, flexShrink: 0 } },
|
|
2639
|
-
...p,
|
|
2640
|
-
children: [
|
|
2641
|
-
/* @__PURE__ */ s(
|
|
2642
|
-
"img",
|
|
2643
|
-
{
|
|
2644
|
-
loading: "lazy",
|
|
2645
|
-
width: "20",
|
|
2646
|
-
src: `https://flagcdn.com/w20/${W.alpha2.toLowerCase()}.png`,
|
|
2647
|
-
srcSet: `https://flagcdn.com/w40/${W.alpha2.toLowerCase()}.png 2x`,
|
|
2648
|
-
alt: ""
|
|
2649
|
-
}
|
|
2650
|
-
),
|
|
2651
|
-
W.name,
|
|
2652
|
-
" (",
|
|
2653
|
-
W.alpha3,
|
|
2654
|
-
")"
|
|
2655
|
-
]
|
|
2656
|
-
}
|
|
2657
|
-
),
|
|
2658
|
-
renderInput: (p) => /* @__PURE__ */ s(
|
|
2659
|
-
po,
|
|
2660
|
-
{
|
|
2661
|
-
className: "country-select-field",
|
|
2662
|
-
...p,
|
|
2663
|
-
variant: "filled",
|
|
2664
|
-
placeholder: "Please select",
|
|
2665
|
-
inputProps: {
|
|
2666
|
-
...p.inputProps,
|
|
2667
|
-
autoComplete: "new-password"
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
|
-
)
|
|
2671
|
-
}
|
|
2672
|
-
)
|
|
2673
|
-
] }),
|
|
2674
|
-
/* @__PURE__ */ s(
|
|
2675
|
-
T,
|
|
2676
|
-
{
|
|
2677
|
-
sx: { mt: 4 },
|
|
2678
|
-
variant: "contained",
|
|
2679
|
-
onClick: ae,
|
|
2680
|
-
disabled: !k || !Y || !N || !te || x && !S,
|
|
2681
|
-
fullWidth: !0,
|
|
2682
|
-
children: /* @__PURE__ */ s("strong", { children: h ? /* @__PURE__ */ E(zt, { children: [
|
|
2683
|
-
/* @__PURE__ */ s(uo, { size: 15, color: "inherit" }),
|
|
2684
|
-
" Processing..."
|
|
2685
|
-
] }) : "Submit KYC" })
|
|
2686
|
-
}
|
|
2687
|
-
)
|
|
2688
|
-
] });
|
|
2689
|
-
};
|
|
2690
2427
|
export {
|
|
2691
|
-
|
|
2692
|
-
Pn as P
|
|
2428
|
+
ko as A
|
|
2693
2429
|
};
|