@blockend/widget 1.0.55-beta.1 → 1.0.55-beta.2
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/{AllRoutes-D6S-NFxZ.js → AllRoutes-DIde2MHr.js} +910 -929
- package/dist/{Box-DESo1bHm.js → Box-DQB1ZyEK.js} +15 -15
- package/dist/EstGas-C7sLxEX_.js +1523 -0
- package/dist/{Grow-DzEr7XrA.js → Grow-CxaAxl6-.js} +300 -303
- package/dist/InputComp-CDuJJKaD.js +105 -0
- package/dist/LoadRoute-CVas28CM.js +123 -0
- package/dist/QuotesProgress-DaL4L4Db.js +27 -0
- package/dist/{SwapAsset-MBXcdeBf.js → SwapAsset-DSV6l90O.js} +13 -14
- package/dist/{Tooltip-DSAJT2x7.js → Tooltip-PAQ9gquY.js} +35 -35
- package/dist/TxnButton-BiO4vJ-y.js +207 -0
- package/dist/ccip-B6-4PQvj.js +226 -0
- package/dist/core-SB441dD5.js +13166 -0
- package/dist/{down-BFx-Bg5Q.js → down-DJH_apvy.js} +267 -270
- package/dist/{getChainIds-CeLEUxe0.js → getChainIds-CBclVfs9.js} +221 -223
- package/dist/getCosmosAddress-CI7CTn-0.js +57 -0
- package/dist/{hamburger-BzMrQx9y.js → hamburger-Dp-PI6Yn.js} +153 -153
- package/dist/{index-DpHhW0_2.js → index-5WTwgH9q.js} +3 -3
- package/dist/index-B-FRPlBv.js +3240 -0
- package/dist/index-B158Vaz9.js +146 -0
- package/dist/{index-BK0BZT6j.js → index-B9PIELoY.js} +5118 -5241
- package/dist/{index-DHYWnqST.js → index-BGt3GtoG.js} +1 -1
- package/dist/index-BuGCRLd5.js +198 -0
- package/dist/index-CRhXLwtt.js +7445 -0
- package/dist/{index-A8ClQmZo.js → index-Dmf6i8k4.js} +3 -4
- package/dist/{index-SkYFFVLL.js → index-PxQusjX0.js} +3368 -3415
- package/dist/{index-C5bv1F_u.js → index-UFdEurQ_.js} +12086 -12350
- package/dist/{index.es-DB9y_DEM.js → index.es-AaEds8Wm.js} +81 -83
- package/dist/{index.es-vIyUKt0W.js → index.es-Df0KTgu4.js} +4523 -4628
- package/dist/index.es.js +1 -1
- package/dist/{unsupportedProp-BLzY2-w_.js → unsupportedProp-BlS305Lt.js} +1 -1
- package/dist/{useRegisterError-Cf6oylnR.js → useRegisterError-BvjIv1Yc.js} +1668 -1701
- package/dist/widget.css +1 -1
- package/package.json +4 -5
- package/dist/EstGas-Dy3XfCzY.js +0 -1496
- package/dist/InputComp-GcnDqx_s.js +0 -105
- package/dist/LoadRoute-BmUgvDid.js +0 -125
- package/dist/QuotesProgress-E5JnUMS0.js +0 -28
- package/dist/TxnButton-Br8R19rF.js +0 -215
- package/dist/add-BryKCrpI.js +0 -19
- package/dist/all-wallets-BMVOK2Ci.js +0 -10
- package/dist/app-store-3WurbJdI.js +0 -21
- package/dist/apple-eM872Ubz.js +0 -22
- package/dist/arrow-bottom-HMc73fJ8.js +0 -12
- package/dist/arrow-bottom-circle-B1N_R8Ux.js +0 -15
- package/dist/arrow-left-Q7GAZkD7.js +0 -12
- package/dist/arrow-right-ft3TcIM3.js +0 -12
- package/dist/arrow-top-C2xmF6tK.js +0 -12
- package/dist/bank-Bk-2ZR5E.js +0 -18
- package/dist/basic-CWrKgDAB.js +0 -5783
- package/dist/browser-BFB3TFfv.js +0 -18
- package/dist/card-DCx59si8.js +0 -18
- package/dist/ccip-CXr08uP1.js +0 -228
- package/dist/checkmark-BGsuJuhE.js +0 -15
- package/dist/checkmark-bold-DvjIl-51.js +0 -12
- package/dist/chevron-bottom-DAEnG7QP.js +0 -12
- package/dist/chevron-left-D33h2ppx.js +0 -12
- package/dist/chevron-right-C8Z_feNK.js +0 -12
- package/dist/chevron-top-DwDMd3p9.js +0 -12
- package/dist/chrome-store-B7ZDs2Fj.js +0 -65
- package/dist/clock-DnELUxSR.js +0 -12
- package/dist/close-Dnt29Pss.js +0 -12
- package/dist/coinPlaceholder-C09pzuXv.js +0 -12
- package/dist/compass-D8ZY16nH.js +0 -12
- package/dist/copy-DEh4RBKI.js +0 -19
- package/dist/core-CgIQaiRa.js +0 -14966
- package/dist/cursor-BtzkAOER.js +0 -7
- package/dist/cursor-transparent-B0nCflmb.js +0 -16
- package/dist/desktop-toTG92uH.js +0 -13
- package/dist/disconnect-C97lbAtY.js +0 -12
- package/dist/discord-BNJ3JePY.js +0 -21
- package/dist/etherscan-CK87TQMS.js +0 -10
- package/dist/exclamation-triangle-LWnOk0uz.js +0 -8
- package/dist/extension-5eIZU28A.js +0 -12
- package/dist/external-link-DDlCfigP.js +0 -12
- package/dist/facebook-1lTMXKeH.js +0 -30
- package/dist/farcaster-Di2TUKlZ.js +0 -16
- package/dist/filters-B_THnHaX.js +0 -12
- package/dist/getCosmosAddress-B8s9Ycj4.js +0 -6075
- package/dist/github-D5B1FE4K.js +0 -22
- package/dist/google-C8_WSUfw.js +0 -22
- package/dist/help-circle-C-ZOzjAP.js +0 -16
- package/dist/id-BynpKmej.js +0 -16
- package/dist/image-BRYUh760.js +0 -8
- package/dist/index-BFUVWgoD.js +0 -992
- package/dist/index-CN6pVc2G.js +0 -1483
- package/dist/index-CZwuzz6v.js +0 -6712
- package/dist/index-Dnyeih-W.js +0 -3261
- package/dist/index-krrwn6Pi.js +0 -206
- package/dist/info-DSQyHS8b.js +0 -7
- package/dist/info-circle-BfpWcI4c.js +0 -16
- package/dist/lightbulb-DEMYYsZd.js +0 -7
- package/dist/mail-DNZ2to_6.js +0 -12
- package/dist/mobile-qsyS8oMK.js +0 -13
- package/dist/more-CnBuKwll.js +0 -15
- package/dist/network-placeholder-DhJITakA.js +0 -18
- package/dist/nftPlaceholder-DD3-Cc9U.js +0 -12
- package/dist/off-CBApAdDk.js +0 -12
- package/dist/play-store-DDoeRc-b.js +0 -36
- package/dist/plus-C3J-XWCn.js +0 -17
- package/dist/qr-code-CEoOYtHk.js +0 -10
- package/dist/recycle-horizontal-BHJ_s9Yx.js +0 -13
- package/dist/refresh-CtzOoHls.js +0 -12
- package/dist/reown-logo-BOj4YDUQ.js +0 -16
- package/dist/search--Miza3A_.js +0 -12
- package/dist/send-Bhl1lz4j.js +0 -19
- package/dist/swapHorizontal-CCvKCngz.js +0 -12
- package/dist/swapHorizontalBold-B90V-dXL.js +0 -12
- package/dist/swapHorizontalMedium-CYjeHjnI.js +0 -20
- package/dist/swapHorizontalRoundedBold-DSMWeXdW.js +0 -12
- package/dist/swapVertical-DOJUNIvk.js +0 -12
- package/dist/telegram-CufEY_4d.js +0 -20
- package/dist/three-dots-J2ngva7G.js +0 -9
- package/dist/twitch-B4vTKVf5.js +0 -22
- package/dist/twitterIcon-DLrxpAGg.js +0 -10
- package/dist/verify-CbHqPQKs.js +0 -12
- package/dist/verify-filled-CzKx9Cph.js +0 -12
- package/dist/w3m-modal-DhpjK4cG.js +0 -1471
- package/dist/wallet-CvIeO6On.js +0 -12
- package/dist/wallet-placeholder-BqELXTBj.js +0 -18
- package/dist/walletconnect-BN4c4XQ5.js +0 -36
- package/dist/warning-circle--dqxXujk.js +0 -16
- package/dist/x-CkCp5gtL.js +0 -16
@@ -1,17 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import { o as Qo, a2 as en, p as S, P as e, c as de, a as ce, d as be, _ as q, e as s, s as j, f as ue, i as pe, j as ho, t as on, a3 as nn, h as Se, a4 as So, a5 as to, z as Ce, a6 as tn } from "./index-UFdEurQ_.js";
|
2
2
|
import * as a from "react";
|
3
|
-
import { d as Eo, c as rn, r as ro } from "./index-
|
4
|
-
import { G as sn,
|
5
|
-
import { jsx as
|
6
|
-
import {
|
7
|
-
import { o as He, e as Mo,
|
3
|
+
import { d as Eo, c as rn, r as ro } from "./index-BGt3GtoG.js";
|
4
|
+
import { G as sn, u as an, a as go, b as ln } from "./Grow-CxaAxl6-.js";
|
5
|
+
import { jsx as x, jsxs as Oe } from "react/jsx-runtime";
|
6
|
+
import { d as un, o as No, j as ke, g as dn, y as Ve, z as eo, r as Ee, p as Be, x as Ue, H as oo, k as cn } from "./useRegisterError-BvjIv1Yc.js";
|
7
|
+
import { o as He, e as Mo, g as pn, M as fn } from "./getChainIds-CBclVfs9.js";
|
8
8
|
function $o({
|
9
9
|
styles: o,
|
10
10
|
themeId: n,
|
11
11
|
defaultTheme: t = {}
|
12
12
|
}) {
|
13
13
|
const r = Qo(t), i = typeof o == "function" ? o(n && r[n] || r) : o;
|
14
|
-
return /* @__PURE__ */
|
14
|
+
return /* @__PURE__ */ x(en, {
|
15
15
|
styles: i
|
16
16
|
});
|
17
17
|
}
|
@@ -127,7 +127,7 @@ const vn = ["className", "component", "elevation", "square", "variant"], yn = (o
|
|
127
127
|
square: c,
|
128
128
|
variant: h
|
129
129
|
}), R = yn(g);
|
130
|
-
return S.env.NODE_ENV !== "production" && un().shadows[p], /* @__PURE__ */
|
130
|
+
return S.env.NODE_ENV !== "production" && un().shadows[p], /* @__PURE__ */ x(On, s({
|
131
131
|
as: d,
|
132
132
|
ownerState: g,
|
133
133
|
className: ue(R.root, i),
|
@@ -254,8 +254,8 @@ const Lo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
254
254
|
const v = l.outerHeightStyle;
|
255
255
|
y.current !== v && (y.current = v, u.style.height = `${v}px`), u.style.overflow = l.overflowing ? "hidden" : "";
|
256
256
|
}, [E]), m = a.useRef(-1);
|
257
|
-
|
258
|
-
const u = Eo(I), l = g
|
257
|
+
Ve(() => {
|
258
|
+
const u = Eo(I), l = g?.current;
|
259
259
|
if (!l)
|
260
260
|
return;
|
261
261
|
const v = He(l);
|
@@ -268,20 +268,20 @@ const Lo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
268
268
|
}), b.observe(l)), () => {
|
269
269
|
u.clear(), cancelAnimationFrame(m.current), v.removeEventListener("resize", u), b && b.disconnect();
|
270
270
|
};
|
271
|
-
}, [E, I, k]),
|
271
|
+
}, [E, I, k]), Ve(() => {
|
272
272
|
I();
|
273
273
|
});
|
274
|
-
const
|
274
|
+
const T = (u) => {
|
275
275
|
O || I(), r && r(u);
|
276
276
|
};
|
277
277
|
return /* @__PURE__ */ Oe(a.Fragment, {
|
278
|
-
children: [/* @__PURE__ */
|
278
|
+
children: [/* @__PURE__ */ x("textarea", s({
|
279
279
|
value: c,
|
280
|
-
onChange:
|
280
|
+
onChange: T,
|
281
281
|
ref: R,
|
282
282
|
rows: d,
|
283
283
|
style: p
|
284
|
-
}, h)), /* @__PURE__ */
|
284
|
+
}, h)), /* @__PURE__ */ x("textarea", {
|
285
285
|
"aria-hidden": !0,
|
286
286
|
className: n.className,
|
287
287
|
readOnly: !0,
|
@@ -342,7 +342,7 @@ function ao() {
|
|
342
342
|
return a.useContext(so);
|
343
343
|
}
|
344
344
|
function _o(o) {
|
345
|
-
return /* @__PURE__ */
|
345
|
+
return /* @__PURE__ */ x($o, s({}, o, {
|
346
346
|
defaultTheme: nn,
|
347
347
|
themeId: on
|
348
348
|
}));
|
@@ -366,10 +366,10 @@ function Ao(o, n = !1) {
|
|
366
366
|
function _t(o) {
|
367
367
|
return o.startAdornment;
|
368
368
|
}
|
369
|
-
function
|
369
|
+
function xn(o) {
|
370
370
|
return de("MuiInputBase", o);
|
371
371
|
}
|
372
|
-
const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]),
|
372
|
+
const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), Tn = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], qe = (o, n) => {
|
373
373
|
const {
|
374
374
|
ownerState: t
|
375
375
|
} = o;
|
@@ -399,7 +399,7 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
399
399
|
root: ["root", `color${Se(t)}`, r && "disabled", i && "error", h && "fullWidth", p && "focused", c && "formControl", y && y !== "medium" && `size${Se(y)}`, g && "multiline", C && "adornedStart", d && "adornedEnd", O && "hiddenLabel", R && "readOnly"],
|
400
400
|
input: ["input", r && "disabled", E === "search" && "inputTypeSearch", g && "inputMultiline", y === "small" && "inputSizeSmall", O && "inputHiddenLabel", C && "inputAdornedStart", d && "inputAdornedEnd", R && "readOnly"]
|
401
401
|
};
|
402
|
-
return pe(k,
|
402
|
+
return pe(k, xn, n);
|
403
403
|
}, Ge = j("div", {
|
404
404
|
name: "MuiInputBase",
|
405
405
|
slot: "Root",
|
@@ -528,7 +528,7 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
528
528
|
// Improve type search style.
|
529
529
|
MozAppearance: "textfield"
|
530
530
|
});
|
531
|
-
}), In = /* @__PURE__ */
|
531
|
+
}), In = /* @__PURE__ */ x(_o, {
|
532
532
|
styles: {
|
533
533
|
"@keyframes mui-auto-fill": {
|
534
534
|
from: {
|
@@ -560,7 +560,7 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
560
560
|
fullWidth: k = !1,
|
561
561
|
id: I,
|
562
562
|
inputComponent: m = "input",
|
563
|
-
inputProps:
|
563
|
+
inputProps: T = {},
|
564
564
|
inputRef: u,
|
565
565
|
maxRows: l,
|
566
566
|
minRows: v,
|
@@ -581,39 +581,39 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
581
581
|
startAdornment: se,
|
582
582
|
type: Re = "text",
|
583
583
|
value: J
|
584
|
-
} = i, re = q(i,
|
584
|
+
} = i, re = q(i, Tn), ee = T.value != null ? T.value : J, {
|
585
585
|
current: he
|
586
586
|
} = a.useRef(ee != null), ne = a.useRef(), Pe = a.useCallback(($) => {
|
587
587
|
S.env.NODE_ENV !== "production" && $ && $.nodeName !== "INPUT" && $.focus;
|
588
|
-
}, []),
|
588
|
+
}, []), xe = ke(ne, u, T.ref, Pe), [Te, ge] = a.useState(!1), M = ao();
|
589
589
|
S.env.NODE_ENV !== "production" && a.useEffect(() => {
|
590
590
|
if (M)
|
591
591
|
return M.registerEffect();
|
592
592
|
}, [M]);
|
593
|
-
const
|
593
|
+
const z = io({
|
594
594
|
props: i,
|
595
595
|
muiFormControl: M,
|
596
596
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
597
597
|
});
|
598
|
-
|
599
|
-
!M && y &&
|
600
|
-
}, [M, y,
|
598
|
+
z.focused = M ? M.focused : Te, a.useEffect(() => {
|
599
|
+
!M && y && Te && (ge(!1), L && L());
|
600
|
+
}, [M, y, Te, L]);
|
601
601
|
const F = M && M.onFilled, _ = M && M.onEmpty, A = a.useCallback(($) => {
|
602
602
|
Ao($) ? F && F() : _ && _();
|
603
603
|
}, [F, _]);
|
604
|
-
|
604
|
+
Ve(() => {
|
605
605
|
he && A({
|
606
606
|
value: ee
|
607
607
|
});
|
608
608
|
}, [ee, A, he]);
|
609
609
|
const ie = ($) => {
|
610
|
-
if (
|
610
|
+
if (z.disabled) {
|
611
611
|
$.stopPropagation();
|
612
612
|
return;
|
613
613
|
}
|
614
|
-
Y && Y($),
|
614
|
+
Y && Y($), T.onFocus && T.onFocus($), M && M.onFocus ? M.onFocus($) : ge(!0);
|
615
615
|
}, ae = ($) => {
|
616
|
-
L && L($),
|
616
|
+
L && L($), T.onBlur && T.onBlur($), M && M.onBlur ? M.onBlur($) : ge(!1);
|
617
617
|
}, le = ($, ...je) => {
|
618
618
|
if (!he) {
|
619
619
|
const we = $.target || ne.current;
|
@@ -623,7 +623,7 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
623
623
|
value: we.value
|
624
624
|
});
|
625
625
|
}
|
626
|
-
|
626
|
+
T.onChange && T.onChange($, ...je), H && H($, ...je);
|
627
627
|
};
|
628
628
|
a.useEffect(() => {
|
629
629
|
A(ne.current);
|
@@ -631,16 +631,16 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
631
631
|
const fe = ($) => {
|
632
632
|
ne.current && $.currentTarget === $.target && ne.current.focus(), W && W($);
|
633
633
|
};
|
634
|
-
let ve = m,
|
635
|
-
b && ve === "input" && (X ? (S.env.NODE_ENV,
|
634
|
+
let ve = m, V = T;
|
635
|
+
b && ve === "input" && (X ? (S.env.NODE_ENV, V = s({
|
636
636
|
type: void 0,
|
637
637
|
minRows: X,
|
638
638
|
maxRows: X
|
639
|
-
},
|
639
|
+
}, V)) : V = s({
|
640
640
|
type: void 0,
|
641
641
|
maxRows: l,
|
642
642
|
minRows: v
|
643
|
-
},
|
643
|
+
}, V), ve = Lo);
|
644
644
|
const me = ($) => {
|
645
645
|
A($.animationName === "mui-auto-fill-cancel" ? ne.current : {
|
646
646
|
value: "x"
|
@@ -650,20 +650,20 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
650
650
|
M && M.setAdornedStart(!!se);
|
651
651
|
}, [M, se]);
|
652
652
|
const te = s({}, i, {
|
653
|
-
color:
|
654
|
-
disabled:
|
653
|
+
color: z.color || "primary",
|
654
|
+
disabled: z.disabled,
|
655
655
|
endAdornment: E,
|
656
|
-
error:
|
657
|
-
focused:
|
656
|
+
error: z.error,
|
657
|
+
focused: z.focused,
|
658
658
|
formControl: M,
|
659
659
|
fullWidth: k,
|
660
|
-
hiddenLabel:
|
660
|
+
hiddenLabel: z.hiddenLabel,
|
661
661
|
multiline: b,
|
662
|
-
size:
|
662
|
+
size: z.size,
|
663
663
|
startAdornment: se,
|
664
664
|
type: Re
|
665
665
|
}), U = wn(te), Ne = Q.root || O.Root || Ge, Fe = P.root || g.root || {}, De = Q.input || O.Input || Xe;
|
666
|
-
return
|
666
|
+
return V = s({}, V, (r = P.input) != null ? r : g.input), /* @__PURE__ */ Oe(a.Fragment, {
|
667
667
|
children: [!C && In, /* @__PURE__ */ Oe(Ne, s({}, Fe, !eo(Ne) && {
|
668
668
|
ownerState: s({}, te, Fe.ownerState)
|
669
669
|
}, {
|
@@ -671,38 +671,38 @@ const $e = ce("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
671
671
|
onClick: fe
|
672
672
|
}, re, {
|
673
673
|
className: ue(U.root, Fe.className, h, Z && "MuiInputBase-readOnly"),
|
674
|
-
children: [se, /* @__PURE__ */
|
674
|
+
children: [se, /* @__PURE__ */ x(so.Provider, {
|
675
675
|
value: null,
|
676
|
-
children: /* @__PURE__ */
|
676
|
+
children: /* @__PURE__ */ x(De, s({
|
677
677
|
ownerState: te,
|
678
|
-
"aria-invalid":
|
678
|
+
"aria-invalid": z.error,
|
679
679
|
"aria-describedby": d,
|
680
680
|
autoComplete: p,
|
681
681
|
autoFocus: c,
|
682
682
|
defaultValue: R,
|
683
|
-
disabled:
|
683
|
+
disabled: z.disabled,
|
684
684
|
id: I,
|
685
685
|
onAnimationStart: me,
|
686
686
|
name: w,
|
687
687
|
placeholder: G,
|
688
688
|
readOnly: Z,
|
689
|
-
required:
|
689
|
+
required: z.required,
|
690
690
|
rows: X,
|
691
691
|
value: ee,
|
692
692
|
onKeyDown: D,
|
693
693
|
onKeyUp: B,
|
694
694
|
type: Re
|
695
|
-
},
|
695
|
+
}, V, !eo(De) && {
|
696
696
|
as: ve,
|
697
|
-
ownerState: s({}, te,
|
697
|
+
ownerState: s({}, te, V.ownerState)
|
698
698
|
}, {
|
699
|
-
ref:
|
700
|
-
className: ue(U.input,
|
699
|
+
ref: xe,
|
700
|
+
className: ue(U.input, V.className, Z && "MuiInputBase-readOnly"),
|
701
701
|
onBlur: ae,
|
702
702
|
onChange: le,
|
703
703
|
onFocus: ie
|
704
704
|
}))
|
705
|
-
}), E, oe ? oe(s({},
|
705
|
+
}), E, oe ? oe(s({}, z, {
|
706
706
|
startAdornment: se
|
707
707
|
})) : null]
|
708
708
|
}))]
|
@@ -949,7 +949,7 @@ const ye = s({}, $e, ce("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
949
949
|
function Nn(o) {
|
950
950
|
return de("MuiFilledInput", o);
|
951
951
|
}
|
952
|
-
const Ie = s({}, $e, ce("MuiFilledInput", ["root", "underline", "input"])), Mn = rn(/* @__PURE__ */
|
952
|
+
const Ie = s({}, $e, ce("MuiFilledInput", ["root", "underline", "input"])), Mn = rn(/* @__PURE__ */ x("path", {
|
953
953
|
d: "M7 10l5 5 5-5z"
|
954
954
|
}), "ArrowDropDown"), $n = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"], kn = (o) => {
|
955
955
|
const {
|
@@ -1131,7 +1131,7 @@ const Ie = s({}, $e, ce("MuiFilledInput", ["root", "underline", "input"])), Mn =
|
|
1131
1131
|
inputComponent: R,
|
1132
1132
|
multiline: y,
|
1133
1133
|
type: k
|
1134
|
-
}),
|
1134
|
+
}), T = kn(c), u = {
|
1135
1135
|
root: {
|
1136
1136
|
ownerState: m
|
1137
1137
|
},
|
@@ -1139,7 +1139,7 @@ const Ie = s({}, $e, ce("MuiFilledInput", ["root", "underline", "input"])), Mn =
|
|
1139
1139
|
ownerState: m
|
1140
1140
|
}
|
1141
1141
|
}, l = C ?? O ? to(u, C ?? O) : u, v = (r = (i = E.root) != null ? i : h.Root) != null ? r : Fn, b = (d = (p = E.input) != null ? p : h.Input) != null ? d : Dn;
|
1142
|
-
return /* @__PURE__ */
|
1142
|
+
return /* @__PURE__ */ x(Ye, s({
|
1143
1143
|
slots: {
|
1144
1144
|
root: v,
|
1145
1145
|
input: b
|
@@ -1151,7 +1151,7 @@ const Ie = s({}, $e, ce("MuiFilledInput", ["root", "underline", "input"])), Mn =
|
|
1151
1151
|
ref: t,
|
1152
1152
|
type: k
|
1153
1153
|
}, I, {
|
1154
|
-
classes:
|
1154
|
+
classes: T
|
1155
1155
|
}));
|
1156
1156
|
});
|
1157
1157
|
S.env.NODE_ENV !== "production" && (lo.propTypes = {
|
@@ -1449,14 +1449,14 @@ const jn = ["disableUnderline", "components", "componentsProps", "fullWidth", "i
|
|
1449
1449
|
slotProps: E,
|
1450
1450
|
slots: k = {},
|
1451
1451
|
type: I = "text"
|
1452
|
-
} = c, m = q(c, jn),
|
1452
|
+
} = c, m = q(c, jn), T = Ln(c), l = {
|
1453
1453
|
root: {
|
1454
1454
|
ownerState: {
|
1455
1455
|
disableUnderline: h
|
1456
1456
|
}
|
1457
1457
|
}
|
1458
1458
|
}, v = E ?? g ? to(E ?? g, l) : l, b = (r = (i = k.root) != null ? i : O.Root) != null ? r : _n, w = (d = (p = k.input) != null ? p : O.Input) != null ? d : An;
|
1459
|
-
return /* @__PURE__ */
|
1459
|
+
return /* @__PURE__ */ x(Ye, s({
|
1460
1460
|
slots: {
|
1461
1461
|
root: b,
|
1462
1462
|
input: w
|
@@ -1468,7 +1468,7 @@ const jn = ["disableUnderline", "components", "componentsProps", "fullWidth", "i
|
|
1468
1468
|
ref: t,
|
1469
1469
|
type: I
|
1470
1470
|
}, m, {
|
1471
|
-
classes:
|
1471
|
+
classes: T
|
1472
1472
|
}));
|
1473
1473
|
});
|
1474
1474
|
S.env.NODE_ENV !== "production" && (uo.propTypes = {
|
@@ -1664,7 +1664,7 @@ function Bn(o) {
|
|
1664
1664
|
return de("MuiList", o);
|
1665
1665
|
}
|
1666
1666
|
ce("MuiList", ["root", "padding", "dense", "subheader"]);
|
1667
|
-
const Wn = ["children", "className", "component", "dense", "disablePadding", "subheader"],
|
1667
|
+
const Wn = ["children", "className", "component", "dense", "disablePadding", "subheader"], zn = (o) => {
|
1668
1668
|
const {
|
1669
1669
|
classes: n,
|
1670
1670
|
disablePadding: t,
|
@@ -1674,7 +1674,7 @@ const Wn = ["children", "className", "component", "dense", "disablePadding", "su
|
|
1674
1674
|
return pe({
|
1675
1675
|
root: ["root", !t && "padding", r && "dense", i && "subheader"]
|
1676
1676
|
}, Bn, n);
|
1677
|
-
},
|
1677
|
+
}, Vn = j("ul", {
|
1678
1678
|
name: "MuiList",
|
1679
1679
|
slot: "Root",
|
1680
1680
|
overridesResolver: (o, n) => {
|
@@ -1712,10 +1712,10 @@ const Wn = ["children", "className", "component", "dense", "disablePadding", "su
|
|
1712
1712
|
component: p,
|
1713
1713
|
dense: c,
|
1714
1714
|
disablePadding: h
|
1715
|
-
}), C =
|
1716
|
-
return /* @__PURE__ */
|
1715
|
+
}), C = zn(y);
|
1716
|
+
return /* @__PURE__ */ x(Bo.Provider, {
|
1717
1717
|
value: R,
|
1718
|
-
children: /* @__PURE__ */ Oe(
|
1718
|
+
children: /* @__PURE__ */ Oe(Vn, s({
|
1719
1719
|
as: p,
|
1720
1720
|
className: ue(C.root, d),
|
1721
1721
|
ref: t,
|
@@ -1775,7 +1775,7 @@ function Qe(o, n, t) {
|
|
1775
1775
|
function Co(o, n, t) {
|
1776
1776
|
return o === n ? t ? o.firstChild : o.lastChild : n && n.previousElementSibling ? n.previousElementSibling : t ? null : o.lastChild;
|
1777
1777
|
}
|
1778
|
-
function
|
1778
|
+
function zo(o, n) {
|
1779
1779
|
if (n === void 0)
|
1780
1780
|
return !0;
|
1781
1781
|
let t = o.innerText;
|
@@ -1790,14 +1790,14 @@ function _e(o, n, t, r, i, d) {
|
|
1790
1790
|
p = !0;
|
1791
1791
|
}
|
1792
1792
|
const h = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
|
1793
|
-
if (!c.hasAttribute("tabindex") || !
|
1793
|
+
if (!c.hasAttribute("tabindex") || !zo(c, d) || h)
|
1794
1794
|
c = i(o, c, t);
|
1795
1795
|
else
|
1796
1796
|
return c.focus(), !0;
|
1797
1797
|
}
|
1798
1798
|
return !1;
|
1799
1799
|
}
|
1800
|
-
const
|
1800
|
+
const Vo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
1801
1801
|
const {
|
1802
1802
|
// private
|
1803
1803
|
// eslint-disable-next-line react/prop-types
|
@@ -1816,7 +1816,7 @@ const zo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
1816
1816
|
previousKeyMatched: !0,
|
1817
1817
|
lastTime: null
|
1818
1818
|
});
|
1819
|
-
|
1819
|
+
Ve(() => {
|
1820
1820
|
i && C.current.focus();
|
1821
1821
|
}, [i]), a.useImperativeHandle(r, () => ({
|
1822
1822
|
adjustStyleForScrollbar: (u, {
|
@@ -1843,7 +1843,7 @@ const zo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
1843
1843
|
else if (v.length === 1) {
|
1844
1844
|
const w = E.current, L = v.toLowerCase(), H = performance.now();
|
1845
1845
|
w.keys.length > 0 && (H - w.lastTime > 500 ? (w.keys = [], w.repeating = !0, w.previousKeyMatched = !0) : w.repeating && L !== w.keys[0] && (w.repeating = !1)), w.lastTime = H, w.keys.push(L);
|
1846
|
-
const W = b && !w.repeating &&
|
1846
|
+
const W = b && !w.repeating && zo(b, w);
|
1847
1847
|
w.previousKeyMatched && (W || _e(l, b, !1, h, Qe, w)) ? u.preventDefault() : w.previousKeyMatched = !1;
|
1848
1848
|
}
|
1849
1849
|
g && g(u);
|
@@ -1856,24 +1856,24 @@ const zo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
1856
1856
|
}
|
1857
1857
|
S.env.NODE_ENV !== "production" && ro.isFragment(u), u.props.disabled || (R === "selectedMenu" && u.props.selected || m === -1) && (m = l), m === l && (u.props.disabled || u.props.muiSkipListHighlight || u.type.muiSkipListHighlight) && (m += 1, m >= p.length && (m = -1));
|
1858
1858
|
});
|
1859
|
-
const
|
1859
|
+
const T = a.Children.map(p, (u, l) => {
|
1860
1860
|
if (l === m) {
|
1861
1861
|
const v = {};
|
1862
1862
|
return d && (v.autoFocus = !0), u.props.tabIndex === void 0 && R === "selectedMenu" && (v.tabIndex = 0), /* @__PURE__ */ a.cloneElement(u, v);
|
1863
1863
|
}
|
1864
1864
|
return u;
|
1865
1865
|
});
|
1866
|
-
return /* @__PURE__ */
|
1866
|
+
return /* @__PURE__ */ x(Wo, s({
|
1867
1867
|
role: "menu",
|
1868
1868
|
ref: I,
|
1869
1869
|
className: c,
|
1870
1870
|
onKeyDown: k,
|
1871
1871
|
tabIndex: i ? 0 : -1
|
1872
1872
|
}, y, {
|
1873
|
-
children:
|
1873
|
+
children: T
|
1874
1874
|
}));
|
1875
1875
|
});
|
1876
|
-
S.env.NODE_ENV !== "production" && (
|
1876
|
+
S.env.NODE_ENV !== "production" && (Vo.propTypes = {
|
1877
1877
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1878
1878
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1879
1879
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -1931,10 +1931,10 @@ function Po(o, n) {
|
|
1931
1931
|
let t = 0;
|
1932
1932
|
return typeof n == "number" ? t = n : n === "center" ? t = o.width / 2 : n === "right" && (t = o.width), t;
|
1933
1933
|
}
|
1934
|
-
function
|
1934
|
+
function xo(o) {
|
1935
1935
|
return [o.horizontal, o.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
1936
1936
|
}
|
1937
|
-
function
|
1937
|
+
function ze(o) {
|
1938
1938
|
return typeof o == "function" ? o() : o;
|
1939
1939
|
}
|
1940
1940
|
const Xn = (o) => {
|
@@ -1985,7 +1985,7 @@ const Xn = (o) => {
|
|
1985
1985
|
elevation: k = 8,
|
1986
1986
|
marginThreshold: I = 16,
|
1987
1987
|
open: m,
|
1988
|
-
PaperProps:
|
1988
|
+
PaperProps: T = {},
|
1989
1989
|
slots: u,
|
1990
1990
|
slotProps: l,
|
1991
1991
|
transformOrigin: v = {
|
@@ -1998,7 +1998,7 @@ const Xn = (o) => {
|
|
1998
1998
|
onEntering: L
|
1999
1999
|
} = {},
|
2000
2000
|
disableScrollLock: H = !1
|
2001
|
-
} = p, W = q(p.TransitionProps, qn), Y = q(p, Kn), D = (r = l
|
2001
|
+
} = p, W = q(p.TransitionProps, qn), Y = q(p, Kn), D = (r = l?.paper) != null ? r : T, B = a.useRef(), G = ke(B, D.ref), Z = s({}, p, {
|
2002
2002
|
anchorOrigin: O,
|
2003
2003
|
anchorReference: R,
|
2004
2004
|
elevation: k,
|
@@ -2011,7 +2011,7 @@ const Xn = (o) => {
|
|
2011
2011
|
}), oe = Xn(Z), X = a.useCallback(() => {
|
2012
2012
|
if (R === "anchorPosition")
|
2013
2013
|
return S.env.NODE_ENV, g;
|
2014
|
-
const F =
|
2014
|
+
const F = ze(h), _ = F && F.nodeType === 1 ? F : Be(B.current).body, A = _.getBoundingClientRect();
|
2015
2015
|
if (S.env.NODE_ENV !== "production") {
|
2016
2016
|
const ie = _.getBoundingClientRect();
|
2017
2017
|
S.env.NODE_ENV !== "test" && ie.top === 0 && ie.left === 0 && ie.right === 0 && ie.bottom;
|
@@ -2032,11 +2032,11 @@ const Xn = (o) => {
|
|
2032
2032
|
return {
|
2033
2033
|
top: null,
|
2034
2034
|
left: null,
|
2035
|
-
transformOrigin:
|
2035
|
+
transformOrigin: xo(A)
|
2036
2036
|
};
|
2037
2037
|
const ie = X();
|
2038
2038
|
let ae = ie.top - A.vertical, le = ie.left - A.horizontal;
|
2039
|
-
const fe = ae + _.height, ve = le + _.width,
|
2039
|
+
const fe = ae + _.height, ve = le + _.width, V = He(ze(h)), me = V.innerHeight - I, te = V.innerWidth - I;
|
2040
2040
|
if (I !== null && ae < I) {
|
2041
2041
|
const U = ae - I;
|
2042
2042
|
ae -= U, A.vertical += U;
|
@@ -2054,7 +2054,7 @@ const Xn = (o) => {
|
|
2054
2054
|
return {
|
2055
2055
|
top: `${Math.round(ae)}px`,
|
2056
2056
|
left: `${Math.round(le)}px`,
|
2057
|
-
transformOrigin:
|
2057
|
+
transformOrigin: xo(A)
|
2058
2058
|
};
|
2059
2059
|
}, [h, R, X, P, I]), [se, Re] = a.useState(m), J = a.useCallback(() => {
|
2060
2060
|
const F = B.current;
|
@@ -2087,8 +2087,8 @@ const Xn = (o) => {
|
|
2087
2087
|
}, [h, m, J]);
|
2088
2088
|
let he = w;
|
2089
2089
|
w === "auto" && !b.muiSupportAuto && (he = void 0);
|
2090
|
-
const ne = E || (h ? Be(
|
2091
|
-
elementType:
|
2090
|
+
const ne = E || (h ? Be(ze(h)).body : void 0), Pe = (i = u?.root) != null ? i : Yn, xe = (d = u?.paper) != null ? d : Uo, Te = Ue({
|
2091
|
+
elementType: xe,
|
2092
2092
|
externalSlotProps: s({}, D, {
|
2093
2093
|
style: se ? D.style : s({}, D.style, {
|
2094
2094
|
opacity: 0
|
@@ -2099,10 +2099,10 @@ const Xn = (o) => {
|
|
2099
2099
|
ref: G
|
2100
2100
|
},
|
2101
2101
|
ownerState: Z,
|
2102
|
-
className: ue(oe.paper, D
|
2102
|
+
className: ue(oe.paper, D?.className)
|
2103
2103
|
}), ge = Ue({
|
2104
2104
|
elementType: Pe,
|
2105
|
-
externalSlotProps:
|
2105
|
+
externalSlotProps: l?.root || {},
|
2106
2106
|
externalForwardedProps: Y,
|
2107
2107
|
additionalProps: {
|
2108
2108
|
ref: t,
|
@@ -2118,19 +2118,19 @@ const Xn = (o) => {
|
|
2118
2118
|
className: ue(oe.root, C)
|
2119
2119
|
}), {
|
2120
2120
|
slotProps: M
|
2121
|
-
} = ge,
|
2122
|
-
return /* @__PURE__ */
|
2121
|
+
} = ge, z = q(ge, Gn);
|
2122
|
+
return /* @__PURE__ */ x(Pe, s({}, z, !eo(Pe) && {
|
2123
2123
|
slotProps: M,
|
2124
2124
|
disableScrollLock: H
|
2125
2125
|
}, {
|
2126
|
-
children: /* @__PURE__ */
|
2126
|
+
children: /* @__PURE__ */ x(b, s({
|
2127
2127
|
appear: !0,
|
2128
2128
|
in: m,
|
2129
2129
|
onEntering: re,
|
2130
2130
|
onExited: ee,
|
2131
2131
|
timeout: he
|
2132
2132
|
}, W, {
|
2133
|
-
children: /* @__PURE__ */
|
2133
|
+
children: /* @__PURE__ */ x(xe, s({}, Te, {
|
2134
2134
|
children: y
|
2135
2135
|
}))
|
2136
2136
|
}))
|
@@ -2153,7 +2153,7 @@ S.env.NODE_ENV !== "production" && (Ho.propTypes = {
|
|
2153
2153
|
*/
|
2154
2154
|
anchorEl: No(e.oneOfType([oo, e.func]), (o) => {
|
2155
2155
|
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
2156
|
-
const n =
|
2156
|
+
const n = ze(o.anchorEl);
|
2157
2157
|
if (n && n.nodeType === 1) {
|
2158
2158
|
const t = n.getBoundingClientRect();
|
2159
2159
|
if (S.env.NODE_ENV !== "test" && t.top === 0 && t.left === 0 && t.right === 0 && t.bottom === 0)
|
@@ -2348,7 +2348,7 @@ const Jn = ["onEntering"], Qn = ["autoFocus", "children", "className", "disableA
|
|
2348
2348
|
maxHeight: "calc(100% - 96px)",
|
2349
2349
|
// Add iOS momentum scrolling for iOS < 13.0
|
2350
2350
|
WebkitOverflowScrolling: "touch"
|
2351
|
-
}), it = j(
|
2351
|
+
}), it = j(Vo, {
|
2352
2352
|
name: "MuiMenu",
|
2353
2353
|
slot: "List",
|
2354
2354
|
overridesResolver: (o, n) => n.list
|
@@ -2375,7 +2375,7 @@ const Jn = ["onEntering"], Qn = ["autoFocus", "children", "className", "disableA
|
|
2375
2375
|
onEntering: I
|
2376
2376
|
} = {},
|
2377
2377
|
variant: m = "selectedMenu",
|
2378
|
-
slots:
|
2378
|
+
slots: T = {},
|
2379
2379
|
slotProps: u = {}
|
2380
2380
|
} = d, l = q(d.TransitionProps, Jn), v = q(d, Qn), b = an(), w = s({}, d, {
|
2381
2381
|
autoFocus: p,
|
@@ -2397,8 +2397,8 @@ const Jn = ["onEntering"], Qn = ["autoFocus", "children", "className", "disableA
|
|
2397
2397
|
a.Children.map(c, (P, Q) => {
|
2398
2398
|
/* @__PURE__ */ a.isValidElement(P) && (S.env.NODE_ENV !== "production" && ro.isFragment(P), P.props.disabled || (m === "selectedMenu" && P.props.selected || B === -1) && (B = Q));
|
2399
2399
|
});
|
2400
|
-
const G = (r =
|
2401
|
-
elementType:
|
2400
|
+
const G = (r = T.paper) != null ? r : rt, Z = (i = u.paper) != null ? i : C, oe = Ue({
|
2401
|
+
elementType: T.root,
|
2402
2402
|
externalSlotProps: u.root,
|
2403
2403
|
ownerState: w,
|
2404
2404
|
className: [L.root, h]
|
@@ -2408,7 +2408,7 @@ const Jn = ["onEntering"], Qn = ["autoFocus", "children", "className", "disableA
|
|
2408
2408
|
ownerState: w,
|
2409
2409
|
className: L.paper
|
2410
2410
|
});
|
2411
|
-
return /* @__PURE__ */
|
2411
|
+
return /* @__PURE__ */ x(tt, s({
|
2412
2412
|
onClose: R,
|
2413
2413
|
anchorOrigin: {
|
2414
2414
|
vertical: "bottom",
|
@@ -2417,7 +2417,7 @@ const Jn = ["onEntering"], Qn = ["autoFocus", "children", "className", "disableA
|
|
2417
2417
|
transformOrigin: b ? et : ot,
|
2418
2418
|
slots: {
|
2419
2419
|
paper: G,
|
2420
|
-
root:
|
2420
|
+
root: T.root
|
2421
2421
|
},
|
2422
2422
|
slotProps: {
|
2423
2423
|
root: oe,
|
@@ -2432,7 +2432,7 @@ const Jn = ["onEntering"], Qn = ["autoFocus", "children", "className", "disableA
|
|
2432
2432
|
ownerState: w
|
2433
2433
|
}, v, {
|
2434
2434
|
classes: E,
|
2435
|
-
children: /* @__PURE__ */
|
2435
|
+
children: /* @__PURE__ */ x(it, s({
|
2436
2436
|
onKeyDown: D,
|
2437
2437
|
actions: W,
|
2438
2438
|
autoFocus: p && (B === -1 || O),
|
@@ -2677,12 +2677,12 @@ const co = ce("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
2677
2677
|
error: d
|
2678
2678
|
}), R = lt(g);
|
2679
2679
|
return /* @__PURE__ */ Oe(a.Fragment, {
|
2680
|
-
children: [/* @__PURE__ */
|
2680
|
+
children: [/* @__PURE__ */ x(ut, s({
|
2681
2681
|
ownerState: g,
|
2682
2682
|
className: ue(R.select, r),
|
2683
2683
|
disabled: i,
|
2684
2684
|
ref: c || t
|
2685
|
-
}, O)), n.multiple ? null : /* @__PURE__ */
|
2685
|
+
}, O)), n.multiple ? null : /* @__PURE__ */ x(dt, {
|
2686
2686
|
as: p,
|
2687
2687
|
ownerState: g,
|
2688
2688
|
className: R.icon
|
@@ -2744,7 +2744,7 @@ S.env.NODE_ENV !== "production" && (Xo.propTypes = {
|
|
2744
2744
|
*/
|
2745
2745
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
2746
2746
|
});
|
2747
|
-
var
|
2747
|
+
var To;
|
2748
2748
|
const ct = ["children", "classes", "className", "label", "notched"], pt = j("fieldset", {
|
2749
2749
|
shouldForwardProp: Ce
|
2750
2750
|
})({
|
@@ -2819,18 +2819,18 @@ function Yo(o) {
|
|
2819
2819
|
notched: r,
|
2820
2820
|
withLabel: d
|
2821
2821
|
});
|
2822
|
-
return /* @__PURE__ */
|
2822
|
+
return /* @__PURE__ */ x(pt, s({
|
2823
2823
|
"aria-hidden": !0,
|
2824
2824
|
className: n,
|
2825
2825
|
ownerState: p
|
2826
2826
|
}, i, {
|
2827
|
-
children: /* @__PURE__ */
|
2827
|
+
children: /* @__PURE__ */ x(ft, {
|
2828
2828
|
ownerState: p,
|
2829
|
-
children: d ? /* @__PURE__ */
|
2829
|
+
children: d ? /* @__PURE__ */ x("span", {
|
2830
2830
|
children: t
|
2831
2831
|
}) : (
|
2832
2832
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
2833
|
-
|
2833
|
+
To || (To = /* @__PURE__ */ x("span", {
|
2834
2834
|
className: "notranslate",
|
2835
2835
|
children: ""
|
2836
2836
|
}))
|
@@ -2974,7 +2974,7 @@ const mt = ["components", "fullWidth", "inputComponent", "label", "multiline", "
|
|
2974
2974
|
notched: E,
|
2975
2975
|
slots: k = {},
|
2976
2976
|
type: I = "text"
|
2977
|
-
} = h, m = q(h, mt),
|
2977
|
+
} = h, m = q(h, mt), T = bt(h), u = ao(), l = io({
|
2978
2978
|
props: h,
|
2979
2979
|
muiFormControl: u,
|
2980
2980
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
@@ -2990,14 +2990,14 @@ const mt = ["components", "fullWidth", "inputComponent", "label", "multiline", "
|
|
2990
2990
|
size: l.size,
|
2991
2991
|
type: I
|
2992
2992
|
}), b = (r = (i = k.root) != null ? i : O.Root) != null ? r : ht, w = (d = (p = k.input) != null ? p : O.Input) != null ? d : vt;
|
2993
|
-
return /* @__PURE__ */
|
2993
|
+
return /* @__PURE__ */ x(Ye, s({
|
2994
2994
|
slots: {
|
2995
2995
|
root: b,
|
2996
2996
|
input: w
|
2997
2997
|
},
|
2998
|
-
renderSuffix: (L) => /* @__PURE__ */
|
2998
|
+
renderSuffix: (L) => /* @__PURE__ */ x(gt, {
|
2999
2999
|
ownerState: v,
|
3000
|
-
className:
|
3000
|
+
className: T.notchedOutline,
|
3001
3001
|
label: y != null && y !== "" && l.required ? c || (c = /* @__PURE__ */ Oe(a.Fragment, {
|
3002
3002
|
children: [y, " ", "*"]
|
3003
3003
|
})) : y,
|
@@ -3009,7 +3009,7 @@ const mt = ["components", "fullWidth", "inputComponent", "label", "multiline", "
|
|
3009
3009
|
ref: t,
|
3010
3010
|
type: I
|
3011
3011
|
}, m, {
|
3012
|
-
classes: s({},
|
3012
|
+
classes: s({}, T, {
|
3013
3013
|
notchedOutline: null
|
3014
3014
|
})
|
3015
3015
|
}));
|
@@ -3246,10 +3246,10 @@ const Ot = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
|
|
3246
3246
|
function Io(o, n) {
|
3247
3247
|
return typeof n == "object" && n !== null ? o === n : String(o) === String(n);
|
3248
3248
|
}
|
3249
|
-
function
|
3249
|
+
function xt(o) {
|
3250
3250
|
return o == null || typeof o == "string" && !o.trim();
|
3251
3251
|
}
|
3252
|
-
const
|
3252
|
+
const Tt = (o) => {
|
3253
3253
|
const {
|
3254
3254
|
classes: n,
|
3255
3255
|
variant: t,
|
@@ -3280,7 +3280,7 @@ const xt = (o) => {
|
|
3280
3280
|
IconComponent: k,
|
3281
3281
|
inputRef: I,
|
3282
3282
|
labelId: m,
|
3283
|
-
MenuProps:
|
3283
|
+
MenuProps: T = {},
|
3284
3284
|
multiple: u,
|
3285
3285
|
name: l,
|
3286
3286
|
onBlur: v,
|
@@ -3305,17 +3305,17 @@ const xt = (o) => {
|
|
3305
3305
|
name: "Select"
|
3306
3306
|
}), J = a.useRef(null), re = a.useRef(null), [ee, he] = a.useState(null), {
|
3307
3307
|
current: ne
|
3308
|
-
} = a.useRef(W != null), [Pe,
|
3308
|
+
} = a.useRef(W != null), [Pe, xe] = a.useState(), Te = ke(t, I), ge = a.useCallback((f) => {
|
3309
3309
|
re.current = f, f && he(f);
|
3310
|
-
}, []), M = ee
|
3311
|
-
a.useImperativeHandle(
|
3310
|
+
}, []), M = ee?.parentNode;
|
3311
|
+
a.useImperativeHandle(Te, () => ({
|
3312
3312
|
focus: () => {
|
3313
3313
|
re.current.focus();
|
3314
3314
|
},
|
3315
3315
|
node: J.current,
|
3316
3316
|
value: P
|
3317
3317
|
}), [P]), a.useEffect(() => {
|
3318
|
-
g && se && ee && !ne && (
|
3318
|
+
g && se && ee && !ne && (xe(c ? null : M.clientWidth), re.current.focus());
|
3319
3319
|
}, [ee, c]), a.useEffect(() => {
|
3320
3320
|
p && re.current.focus();
|
3321
3321
|
}, [p]), a.useEffect(() => {
|
@@ -3331,12 +3331,12 @@ const xt = (o) => {
|
|
3331
3331
|
};
|
3332
3332
|
}
|
3333
3333
|
}, [m]);
|
3334
|
-
const
|
3335
|
-
f ? H && H(N) : w && w(N), ne || (
|
3334
|
+
const z = (f, N) => {
|
3335
|
+
f ? H && H(N) : w && w(N), ne || (xe(c ? null : M.clientWidth), Re(f));
|
3336
3336
|
}, F = (f) => {
|
3337
|
-
f.button === 0 && (f.preventDefault(), re.current.focus(),
|
3337
|
+
f.button === 0 && (f.preventDefault(), re.current.focus(), z(!0, f));
|
3338
3338
|
}, _ = (f) => {
|
3339
|
-
|
3339
|
+
z(!1, f);
|
3340
3340
|
}, A = a.Children.toArray(h), ie = (f) => {
|
3341
3341
|
const N = A.find((K) => K.props.value === f.target.value);
|
3342
3342
|
N !== void 0 && (Q(N.props.value), b && b(f, N));
|
@@ -3359,7 +3359,7 @@ const xt = (o) => {
|
|
3359
3359
|
}
|
3360
3360
|
}), b(bo, f);
|
3361
3361
|
}
|
3362
|
-
u ||
|
3362
|
+
u || z(!1, N);
|
3363
3363
|
}
|
3364
3364
|
}, le = (f) => {
|
3365
3365
|
Y || [
|
@@ -3369,7 +3369,7 @@ const xt = (o) => {
|
|
3369
3369
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
3370
3370
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
3371
3371
|
"Enter"
|
3372
|
-
].indexOf(f.key) !== -1 && (f.preventDefault(),
|
3372
|
+
].indexOf(f.key) !== -1 && (f.preventDefault(), z(!0, f));
|
3373
3373
|
}, fe = ee !== null && se, ve = (f) => {
|
3374
3374
|
!fe && v && (Object.defineProperty(f, "target", {
|
3375
3375
|
writable: !0,
|
@@ -3380,12 +3380,12 @@ const xt = (o) => {
|
|
3380
3380
|
}), v(f));
|
3381
3381
|
};
|
3382
3382
|
delete X["aria-invalid"];
|
3383
|
-
let
|
3383
|
+
let V, me;
|
3384
3384
|
const te = [];
|
3385
3385
|
let U = !1, Ne = !1;
|
3386
3386
|
(Ao({
|
3387
3387
|
value: P
|
3388
|
-
}) || C) && (D ?
|
3388
|
+
}) || C) && (D ? V = D(P) : U = !0);
|
3389
3389
|
const Fe = A.map((f) => {
|
3390
3390
|
if (!/* @__PURE__ */ a.isValidElement(f))
|
3391
3391
|
return null;
|
@@ -3415,7 +3415,7 @@ const xt = (o) => {
|
|
3415
3415
|
if (!Ne && !u && P !== "") {
|
3416
3416
|
const f = A.map((N) => N.props.value);
|
3417
3417
|
}
|
3418
|
-
}, [Ne, A, u, l, P]), U && (u ? te.length === 0 ?
|
3418
|
+
}, [Ne, A, u, l, P]), U && (u ? te.length === 0 ? V = null : V = te.reduce((f, N, K) => (f.push(N), K < te.length - 1 && f.push(", "), f), []) : V = me);
|
3419
3419
|
let De = Pe;
|
3420
3420
|
!c && ne && ee && (De = M.clientWidth);
|
3421
3421
|
let $;
|
@@ -3425,9 +3425,9 @@ const xt = (o) => {
|
|
3425
3425
|
value: P,
|
3426
3426
|
open: fe,
|
3427
3427
|
error: E
|
3428
|
-
}), Ze =
|
3428
|
+
}), Ze = Tt(we), Je = s({}, T.PaperProps, (r = T.slotProps) == null ? void 0 : r.paper), mo = ln();
|
3429
3429
|
return /* @__PURE__ */ Oe(a.Fragment, {
|
3430
|
-
children: [/* @__PURE__ */
|
3430
|
+
children: [/* @__PURE__ */ x(Ct, s({
|
3431
3431
|
ref: ge,
|
3432
3432
|
tabIndex: $,
|
3433
3433
|
role: "combobox",
|
@@ -3446,14 +3446,14 @@ const xt = (o) => {
|
|
3446
3446
|
ownerState: we,
|
3447
3447
|
className: ue(B.className, Ze.select, O),
|
3448
3448
|
id: je,
|
3449
|
-
children:
|
3449
|
+
children: xt(V) ? (
|
3450
3450
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
3451
|
-
wo || (wo = /* @__PURE__ */
|
3451
|
+
wo || (wo = /* @__PURE__ */ x("span", {
|
3452
3452
|
className: "notranslate",
|
3453
3453
|
children: ""
|
3454
3454
|
}))
|
3455
|
-
) :
|
3456
|
-
})), /* @__PURE__ */
|
3455
|
+
) : V
|
3456
|
+
})), /* @__PURE__ */ x(Pt, s({
|
3457
3457
|
"aria-invalid": E,
|
3458
3458
|
value: Array.isArray(P) ? P.join(",") : P,
|
3459
3459
|
name: l,
|
@@ -3465,11 +3465,11 @@ const xt = (o) => {
|
|
3465
3465
|
className: Ze.nativeInput,
|
3466
3466
|
autoFocus: p,
|
3467
3467
|
ownerState: we
|
3468
|
-
}, X)), /* @__PURE__ */
|
3468
|
+
}, X)), /* @__PURE__ */ x(Rt, {
|
3469
3469
|
as: k,
|
3470
3470
|
className: Ze.icon,
|
3471
3471
|
ownerState: we
|
3472
|
-
}), /* @__PURE__ */
|
3472
|
+
}), /* @__PURE__ */ x(qo, s({
|
3473
3473
|
id: `menu-${l || ""}`,
|
3474
3474
|
anchorEl: M,
|
3475
3475
|
open: fe,
|
@@ -3482,15 +3482,15 @@ const xt = (o) => {
|
|
3482
3482
|
vertical: "top",
|
3483
3483
|
horizontal: "center"
|
3484
3484
|
}
|
3485
|
-
},
|
3485
|
+
}, T, {
|
3486
3486
|
MenuListProps: s({
|
3487
3487
|
"aria-labelledby": m,
|
3488
3488
|
role: "listbox",
|
3489
3489
|
"aria-multiselectable": u ? "true" : void 0,
|
3490
3490
|
disableListWrap: !0,
|
3491
3491
|
id: mo
|
3492
|
-
},
|
3493
|
-
slotProps: s({},
|
3492
|
+
}, T.MenuListProps),
|
3493
|
+
slotProps: s({}, T.slotProps, {
|
3494
3494
|
paper: s({}, Je, {
|
3495
3495
|
style: s({
|
3496
3496
|
minWidth: De
|
@@ -3674,14 +3674,14 @@ const wt = ["autoWidth", "children", "classes", "className", "defaultOpen", "dis
|
|
3674
3674
|
labelId: k,
|
3675
3675
|
MenuProps: I,
|
3676
3676
|
multiple: m = !1,
|
3677
|
-
native:
|
3677
|
+
native: T = !1,
|
3678
3678
|
onClose: u,
|
3679
3679
|
onOpen: l,
|
3680
3680
|
open: v,
|
3681
3681
|
renderValue: b,
|
3682
3682
|
SelectDisplayProps: w,
|
3683
3683
|
variant: L = "outlined"
|
3684
|
-
} = r, H = q(r, wt), W =
|
3684
|
+
} = r, H = q(r, wt), W = T ? Xo : Zo, Y = ao(), D = io({
|
3685
3685
|
props: r,
|
3686
3686
|
muiFormControl: Y,
|
3687
3687
|
states: ["variant", "error"]
|
@@ -3689,18 +3689,18 @@ const wt = ["autoWidth", "children", "classes", "className", "defaultOpen", "dis
|
|
3689
3689
|
variant: B,
|
3690
3690
|
classes: p
|
3691
3691
|
}), Z = St(G), oe = q(Z, It), X = y || {
|
3692
|
-
standard: /* @__PURE__ */
|
3692
|
+
standard: /* @__PURE__ */ x(Et, {
|
3693
3693
|
ownerState: G
|
3694
3694
|
}),
|
3695
|
-
outlined: /* @__PURE__ */
|
3695
|
+
outlined: /* @__PURE__ */ x(Nt, {
|
3696
3696
|
label: E,
|
3697
3697
|
ownerState: G
|
3698
3698
|
}),
|
3699
|
-
filled: /* @__PURE__ */
|
3699
|
+
filled: /* @__PURE__ */ x(Mt, {
|
3700
3700
|
ownerState: G
|
3701
3701
|
})
|
3702
3702
|
}[B], P = ke(t, cn(X));
|
3703
|
-
return /* @__PURE__ */
|
3703
|
+
return /* @__PURE__ */ x(a.Fragment, {
|
3704
3704
|
children: /* @__PURE__ */ a.cloneElement(X, s({
|
3705
3705
|
// Most of the logic is implemented in `SelectInput`.
|
3706
3706
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
@@ -3713,7 +3713,7 @@ const wt = ["autoWidth", "children", "classes", "className", "defaultOpen", "dis
|
|
3713
3713
|
type: void 0,
|
3714
3714
|
// We render a select. We can ignore the type provided by the `Input`.
|
3715
3715
|
multiple: m
|
3716
|
-
},
|
3716
|
+
}, T ? {
|
3717
3717
|
id: R
|
3718
3718
|
} : {
|
3719
3719
|
autoWidth: i,
|
@@ -3731,7 +3731,7 @@ const wt = ["autoWidth", "children", "classes", "className", "defaultOpen", "dis
|
|
3731
3731
|
}, C, {
|
3732
3732
|
classes: C ? to(oe, C.classes) : oe
|
3733
3733
|
}, y ? y.props.inputProps : {})
|
3734
|
-
}, (m &&
|
3734
|
+
}, (m && T || O) && B === "outlined" ? {
|
3735
3735
|
notched: !0
|
3736
3736
|
} : {}, {
|
3737
3737
|
ref: P,
|
@@ -3891,9 +3891,9 @@ S.env.NODE_ENV !== "production" && (Jo.propTypes = {
|
|
3891
3891
|
Jo.muiName = "Select";
|
3892
3892
|
function At({ fill: o }) {
|
3893
3893
|
return /* @__PURE__ */ Oe("svg", { width: "23", height: "17", viewBox: "0 0 23 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
3894
|
-
/* @__PURE__ */
|
3895
|
-
/* @__PURE__ */
|
3896
|
-
/* @__PURE__ */
|
3894
|
+
/* @__PURE__ */ x("path", { d: "M1.25781 1.98389H21.6779", stroke: o, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
3895
|
+
/* @__PURE__ */ x("path", { d: "M1.25781 8.98828H21.6779", stroke: o, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
3896
|
+
/* @__PURE__ */ x("path", { d: "M1.25781 15.9937H21.6779", stroke: o, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
3897
3897
|
] });
|
3898
3898
|
}
|
3899
3899
|
export {
|
@@ -3905,11 +3905,11 @@ export {
|
|
3905
3905
|
po as O,
|
3906
3906
|
jo as P,
|
3907
3907
|
Jo as S,
|
3908
|
-
|
3909
|
-
|
3910
|
-
|
3911
|
-
|
3908
|
+
_t as a,
|
3909
|
+
lo as b,
|
3910
|
+
Wo as c,
|
3911
|
+
Vo as d,
|
3912
3912
|
io as f,
|
3913
|
-
|
3913
|
+
Ao as i,
|
3914
3914
|
ao as u
|
3915
3915
|
};
|