everest-npm-features 0.0.1 → 0.0.3
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/ArrowDropDown-DRUQbGft.js +8 -0
- package/dist/ArrowRight-t-YgAHUn.js +8 -0
- package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
- package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
- package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
- package/dist/Cancel-BMPJ8ZAg.js +11 -0
- package/dist/CardContent-DEA5pnhr.js +141 -0
- package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
- package/dist/Close-mXCsZSxZ.js +8 -0
- package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
- package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
- package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
- package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
- package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
- package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
- package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
- package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
- package/dist/FormControlLabel-BMeMEwyK.js +738 -0
- package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
- package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
- package/dist/Grid2-B0mJbwjl.js +374 -0
- package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
- package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
- package/dist/Info-CkE3Gsf2.js +8 -0
- package/dist/InputAdornment-DZJP9Njd.js +169 -0
- package/dist/ListItemIcon-JAntieDc.js +82 -0
- package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
- package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
- package/dist/Paper-L8ipwfkc.js +183 -0
- package/dist/PlayArrow-D_p2nwO8.js +21 -0
- package/dist/Portal-DxdKGEvu.js +86 -0
- package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
- package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
- package/dist/Stack-CkCveRRR.js +174 -0
- package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
- package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/{withThemeProvider.css → main.css} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles3.css +1 -0
- package/dist/auth-DDk8JxR-.js +46 -0
- package/dist/axios-BEX6n2A7.js +796 -0
- package/dist/bank-BvPXd5sM.js +23 -0
- package/dist/components/Account/index.d.ts +4 -0
- package/dist/components/Account/index.js +310 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/index.js +804 -0
- package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
- package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
- package/dist/components/Profile/documents.js +19 -14
- package/dist/components/Profile/index.js +128 -135
- package/dist/components/Receive/index.js +25 -23
- package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
- package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/form.js +26 -0
- package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
- package/dist/components/RocketRamp/Buy/index.js +31 -0
- package/dist/components/RocketRamp/Buy/types.d.ts +33 -0
- package/dist/components/RocketRamp/Buy/types.js +1 -0
- package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
- package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
- package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
- package/dist/components/RocketRamp/Dashboard/index.js +36 -0
- package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
- package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
- package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
- package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
- package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
- package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
- package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
- package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
- package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
- package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
- package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
- package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
- package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/index.js +82 -0
- package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
- package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
- package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
- package/dist/components/RocketRamp/SignIn/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/email.js +70 -0
- package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/index.js +163 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
- package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/summary.js +57 -0
- package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
- package/dist/components/RocketRamp/SignUp/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
- package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
- package/dist/components/RocketRamp/Transactions/index.js +38 -0
- package/dist/components/Send/index.js +62 -51
- package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
- package/dist/components/Shared/ConnectWallet/index.js +25364 -0
- package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
- package/dist/components/Shared/HistoryItem/index.js +120 -0
- package/dist/components/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Shared/TokenModal/index.d.ts +10 -0
- package/dist/components/Shared/TokenModal/index.js +104 -0
- package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
- package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
- package/dist/components/Shared/addBank.d.ts +2 -0
- package/dist/components/Shared/addBank.js +172 -0
- package/dist/components/Shared/button.js +1 -1
- package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
- package/dist/components/Shared/connectPlaidBank.js +57 -0
- package/dist/components/Shared/incode.js +34 -32
- package/dist/components/Shared/inputField.js +1 -1
- package/dist/components/Shared/noData.d.ts +4 -0
- package/dist/components/Shared/noData.js +14 -0
- package/dist/components/Shared/pin.js +3 -3
- package/dist/components/Shared/step.js +2 -2
- package/dist/components/Shared/tooltip.d.ts +4 -0
- package/dist/components/Shared/tooltip.js +2107 -0
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/SignIn/index.js +26 -24
- package/dist/components/SignUp/index.js +108 -348
- package/dist/components/SignUp/pin.js +116 -844
- package/dist/components/SignUp/privacy.js +3 -3
- package/dist/components/SignUp/terms.js +3 -3
- package/dist/components/SignUp/types.d.ts +0 -1
- package/dist/components/SignUp/userInfo.js +4 -4
- package/dist/components/Stake/gems/index.d.ts +2 -0
- package/dist/components/Stake/gems/index.js +214 -0
- package/dist/components/Stake/id/index.d.ts +2 -0
- package/dist/components/Stake/id/index.js +233 -0
- package/dist/components/Stake/index.d.ts +5 -0
- package/dist/components/Stake/index.js +346 -0
- package/dist/components/Swap/index.d.ts +2 -0
- package/dist/components/Swap/index.js +489 -0
- package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
- package/dist/components/SwapAndUniSwap/index.js +43 -0
- package/dist/components/WalletPortfolio/index.js +191 -263
- package/dist/components/WalletPortfolio/tokenRow.js +8 -5
- package/dist/constants-SKm7VF9k.js +3982 -0
- package/dist/countries-BVn1FubK.js +1925 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
- package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
- package/dist/data/countries.json.d.ts +1925 -0
- package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
- package/dist/dividerClasses-SUAUDDqL.js +10 -0
- package/dist/{documents-CL4Ajr_B.js → documents-7w9u2Oig.js} +123 -122
- package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
- package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
- package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
- package/dist/generic-token-B_ptO5yb.js +4 -0
- package/dist/hoc/withThemeProvider.js +33 -32
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +63 -60
- package/dist/icons/buyIcon.d.ts +2 -0
- package/dist/icons/buyIcon.js +19 -0
- package/dist/icons/canceledBuyIcon.d.ts +2 -0
- package/dist/icons/canceledBuyIcon.js +34 -0
- package/dist/icons/canceledRedeemIcon.d.ts +2 -0
- package/dist/icons/canceledRedeemIcon.js +35 -0
- package/dist/icons/failedBuyIcon.d.ts +2 -0
- package/dist/icons/failedBuyIcon.js +48 -0
- package/dist/icons/failedRedeemIcon.d.ts +2 -0
- package/dist/icons/failedRedeemIcon.js +48 -0
- package/dist/icons/pendingBuyIcon.d.ts +2 -0
- package/dist/icons/pendingBuyIcon.js +38 -0
- package/dist/icons/pendingRedeemIcon.d.ts +2 -0
- package/dist/icons/pendingRedeemIcon.js +34 -0
- package/dist/icons/redeemIcon.d.ts +2 -0
- package/dist/icons/redeemIcon.js +19 -0
- package/dist/index-B8QKlEgj.js +37095 -0
- package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
- package/dist/index-BhmBCie8.js +796 -0
- package/dist/index-C3FYdQkQ.js +4050 -0
- package/dist/index-CrajlEO_.js +576 -0
- package/dist/index-TElEjliR.js +9 -0
- package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
- package/dist/index-ceeCtFuh.js +136 -0
- package/dist/index.esm-BsMAMhYW.js +237 -0
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/main.d.ts +99 -0
- package/dist/main.js +34 -12
- package/dist/moment-h96o7c8I.js +2578 -0
- package/dist/order-CO4ra5N-.js +27 -0
- package/dist/ownerWindow-C-760D__.js +7 -0
- package/dist/providers/metaMask.d.ts +6 -0
- package/dist/providers/metaMask.js +24 -0
- package/dist/react-redux-B4BZippc.js +255 -0
- package/dist/react-webcam-B3cXh1XT.js +267 -0
- package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
- package/dist/rr-primary-logo-CqI24c8v.js +4 -0
- package/dist/stake-DHpsHQbJ.js +17 -0
- package/dist/store.d.ts +66 -0
- package/dist/store.js +1 -0
- package/dist/styled-BTIMwpiX.js +5 -0
- package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
- package/dist/styles.module-O5VVND5e.js +22 -0
- package/dist/tokenRow-CgnPD-4U.js +206 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CfmEP6sW.js +18 -0
- package/dist/useSlot-DaP6eodX.js +50 -0
- package/dist/useTheme-BghcbbEW.js +9 -0
- package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
- package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
- package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
- package/dist/useTimeout-D29bZ7Gz.js +56 -0
- package/dist/user-CeKqBfJU.js +24 -0
- package/dist/util/constants.d.ts +48 -0
- package/dist/util/constants.js +69 -21
- package/dist/util/conversions.js +54 -22271
- package/dist/util/functions.d.ts +5 -0
- package/dist/util/functions.js +81 -24
- package/dist/util/regex.d.ts +3 -0
- package/dist/util/regex.js +6 -0
- package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
- package/dist/wallet-BtAQ78cv.js +35 -0
- package/dist/web3-u4qDZYpo.js +22328 -0
- package/package.json +8 -3
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-Cj5FKr_m.js +0 -19
- package/dist/axios-xPiQW9EP.js +0 -118114
- package/dist/defaultTheme-OIfL8Ia7.js +0 -5
- package/dist/dividerClasses-Z7VLlu5C.js +0 -10
- package/dist/index-DKTkUdik.js +0 -6
- package/dist/react-redux-VW99uJjf.js +0 -5908
- package/dist/react-webcam-Cov1TP0q.js +0 -639
- package/dist/styled-Da6GnxEE.js +0 -5
- package/dist/tokenRow-Cdd_jFjp.js +0 -206
- package/dist/useFormControl-Bo6Tf_xo.js +0 -46
- package/dist/useSlot-CURNJ3JC.js +0 -306
- package/dist/useTheme-DWRMvRU8.js +0 -9
- package/dist/useTimeout-lr7ryrda.js +0 -75
|
@@ -0,0 +1,2107 @@
|
|
|
1
|
+
import { jsx as re, jsxs as Et } from "react/jsx-runtime";
|
|
2
|
+
import * as C from "react";
|
|
3
|
+
import fo from "react";
|
|
4
|
+
import { g as Ht, a as Ut, s as Ie, u as Ft, m as lt, c as ze } from "../../DefaultPropsProvider-DmUB0SYC.js";
|
|
5
|
+
import { g as qt, P as r, f as zt, a as Yt } from "../../createTheme-F9Dk4FhK.js";
|
|
6
|
+
import { u as Xt } from "../../index-BJlsh9ro.js";
|
|
7
|
+
import { u as uo } from "../../useTheme-c0OHvtiA.js";
|
|
8
|
+
import { o as Rt, H as Ze, g as mo, e as vo } from "../../utils-EFg3So7T.js";
|
|
9
|
+
import { P as ho, u as go } from "../../Portal-DxdKGEvu.js";
|
|
10
|
+
import { c as yo, u as it } from "../../TransitionGroupContext-VwpFXTPO.js";
|
|
11
|
+
import { r as Gt, u as At, a as Ye, c as Ct, T as bo } from "../../useTimeout-D29bZ7Gz.js";
|
|
12
|
+
import { u as wo, G as Mt } from "../../Grow-dkRwE_ok.js";
|
|
13
|
+
import { u as Oo } from "../../useControlled-BYdyS7Pn.js";
|
|
14
|
+
import { a as Xe } from "../../resolveComponentProps-BdTgLKBb.js";
|
|
15
|
+
import { i as jt } from "../../isFocusVisible-CPZqtjv2.js";
|
|
16
|
+
var W = "top", z = "bottom", Y = "right", I = "left", ct = "auto", Ve = [W, z, Y, I], Oe = "start", Le = "end", xo = "clippingParents", Kt = "viewport", Se = "popper", To = "reference", $t = /* @__PURE__ */ Ve.reduce(function(t, e) {
|
|
17
|
+
return t.concat([e + "-" + Oe, e + "-" + Le]);
|
|
18
|
+
}, []), Jt = /* @__PURE__ */ [].concat(Ve, [ct]).reduce(function(t, e) {
|
|
19
|
+
return t.concat([e, e + "-" + Oe, e + "-" + Le]);
|
|
20
|
+
}, []), Po = "beforeRead", Eo = "read", Ro = "afterRead", Ao = "beforeMain", Co = "main", Mo = "afterMain", jo = "beforeWrite", $o = "write", Do = "afterWrite", So = [Po, Eo, Ro, Ao, Co, Mo, jo, $o, Do];
|
|
21
|
+
function ee(t) {
|
|
22
|
+
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
23
|
+
}
|
|
24
|
+
function V(t) {
|
|
25
|
+
if (t == null)
|
|
26
|
+
return window;
|
|
27
|
+
if (t.toString() !== "[object Window]") {
|
|
28
|
+
var e = t.ownerDocument;
|
|
29
|
+
return e && e.defaultView || window;
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
function ue(t) {
|
|
34
|
+
var e = V(t).Element;
|
|
35
|
+
return t instanceof e || t instanceof Element;
|
|
36
|
+
}
|
|
37
|
+
function q(t) {
|
|
38
|
+
var e = V(t).HTMLElement;
|
|
39
|
+
return t instanceof e || t instanceof HTMLElement;
|
|
40
|
+
}
|
|
41
|
+
function ft(t) {
|
|
42
|
+
if (typeof ShadowRoot > "u")
|
|
43
|
+
return !1;
|
|
44
|
+
var e = V(t).ShadowRoot;
|
|
45
|
+
return t instanceof e || t instanceof ShadowRoot;
|
|
46
|
+
}
|
|
47
|
+
function No(t) {
|
|
48
|
+
var e = t.state;
|
|
49
|
+
Object.keys(e.elements).forEach(function(o) {
|
|
50
|
+
var n = e.styles[o] || {}, a = e.attributes[o] || {}, p = e.elements[o];
|
|
51
|
+
!q(p) || !ee(p) || (Object.assign(p.style, n), Object.keys(a).forEach(function(c) {
|
|
52
|
+
var s = a[c];
|
|
53
|
+
s === !1 ? p.removeAttribute(c) : p.setAttribute(c, s === !0 ? "" : s);
|
|
54
|
+
}));
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function ko(t) {
|
|
58
|
+
var e = t.state, o = {
|
|
59
|
+
popper: {
|
|
60
|
+
position: e.options.strategy,
|
|
61
|
+
left: "0",
|
|
62
|
+
top: "0",
|
|
63
|
+
margin: "0"
|
|
64
|
+
},
|
|
65
|
+
arrow: {
|
|
66
|
+
position: "absolute"
|
|
67
|
+
},
|
|
68
|
+
reference: {}
|
|
69
|
+
};
|
|
70
|
+
return Object.assign(e.elements.popper.style, o.popper), e.styles = o, e.elements.arrow && Object.assign(e.elements.arrow.style, o.arrow), function() {
|
|
71
|
+
Object.keys(e.elements).forEach(function(n) {
|
|
72
|
+
var a = e.elements[n], p = e.attributes[n] || {}, c = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : o[n]), s = c.reduce(function(i, f) {
|
|
73
|
+
return i[f] = "", i;
|
|
74
|
+
}, {});
|
|
75
|
+
!q(a) || !ee(a) || (Object.assign(a.style, s), Object.keys(p).forEach(function(i) {
|
|
76
|
+
a.removeAttribute(i);
|
|
77
|
+
}));
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
const Bo = {
|
|
82
|
+
name: "applyStyles",
|
|
83
|
+
enabled: !0,
|
|
84
|
+
phase: "write",
|
|
85
|
+
fn: No,
|
|
86
|
+
effect: ko,
|
|
87
|
+
requires: ["computeStyles"]
|
|
88
|
+
};
|
|
89
|
+
function _(t) {
|
|
90
|
+
return t.split("-")[0];
|
|
91
|
+
}
|
|
92
|
+
var fe = Math.max, _e = Math.min, xe = Math.round;
|
|
93
|
+
function st() {
|
|
94
|
+
var t = navigator.userAgentData;
|
|
95
|
+
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
96
|
+
return e.brand + "/" + e.version;
|
|
97
|
+
}).join(" ") : navigator.userAgent;
|
|
98
|
+
}
|
|
99
|
+
function Qt() {
|
|
100
|
+
return !/^((?!chrome|android).)*safari/i.test(st());
|
|
101
|
+
}
|
|
102
|
+
function Te(t, e, o) {
|
|
103
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
104
|
+
var n = t.getBoundingClientRect(), a = 1, p = 1;
|
|
105
|
+
e && q(t) && (a = t.offsetWidth > 0 && xe(n.width) / t.offsetWidth || 1, p = t.offsetHeight > 0 && xe(n.height) / t.offsetHeight || 1);
|
|
106
|
+
var c = ue(t) ? V(t) : window, s = c.visualViewport, i = !Qt() && o, f = (n.left + (i && s ? s.offsetLeft : 0)) / a, l = (n.top + (i && s ? s.offsetTop : 0)) / p, g = n.width / a, x = n.height / p;
|
|
107
|
+
return {
|
|
108
|
+
width: g,
|
|
109
|
+
height: x,
|
|
110
|
+
top: l,
|
|
111
|
+
right: f + g,
|
|
112
|
+
bottom: l + x,
|
|
113
|
+
left: f,
|
|
114
|
+
x: f,
|
|
115
|
+
y: l
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function ut(t) {
|
|
119
|
+
var e = Te(t), o = t.offsetWidth, n = t.offsetHeight;
|
|
120
|
+
return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
|
|
121
|
+
x: t.offsetLeft,
|
|
122
|
+
y: t.offsetTop,
|
|
123
|
+
width: o,
|
|
124
|
+
height: n
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function Zt(t, e) {
|
|
128
|
+
var o = e.getRootNode && e.getRootNode();
|
|
129
|
+
if (t.contains(e))
|
|
130
|
+
return !0;
|
|
131
|
+
if (o && ft(o)) {
|
|
132
|
+
var n = e;
|
|
133
|
+
do {
|
|
134
|
+
if (n && t.isSameNode(n))
|
|
135
|
+
return !0;
|
|
136
|
+
n = n.parentNode || n.host;
|
|
137
|
+
} while (n);
|
|
138
|
+
}
|
|
139
|
+
return !1;
|
|
140
|
+
}
|
|
141
|
+
function ne(t) {
|
|
142
|
+
return V(t).getComputedStyle(t);
|
|
143
|
+
}
|
|
144
|
+
function Lo(t) {
|
|
145
|
+
return ["table", "td", "th"].indexOf(ee(t)) >= 0;
|
|
146
|
+
}
|
|
147
|
+
function se(t) {
|
|
148
|
+
return ((ue(t) ? t.ownerDocument : (
|
|
149
|
+
// $FlowFixMe[prop-missing]
|
|
150
|
+
t.document
|
|
151
|
+
)) || window.document).documentElement;
|
|
152
|
+
}
|
|
153
|
+
function tt(t) {
|
|
154
|
+
return ee(t) === "html" ? t : (
|
|
155
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
156
|
+
// $FlowFixMe[incompatible-return]
|
|
157
|
+
// $FlowFixMe[prop-missing]
|
|
158
|
+
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
159
|
+
t.parentNode || // DOM Element detected
|
|
160
|
+
(ft(t) ? t.host : null) || // ShadowRoot detected
|
|
161
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
162
|
+
se(t)
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
function Dt(t) {
|
|
166
|
+
return !q(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
167
|
+
ne(t).position === "fixed" ? null : t.offsetParent;
|
|
168
|
+
}
|
|
169
|
+
function Wo(t) {
|
|
170
|
+
var e = /firefox/i.test(st()), o = /Trident/i.test(st());
|
|
171
|
+
if (o && q(t)) {
|
|
172
|
+
var n = ne(t);
|
|
173
|
+
if (n.position === "fixed")
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
var a = tt(t);
|
|
177
|
+
for (ft(a) && (a = a.host); q(a) && ["html", "body"].indexOf(ee(a)) < 0; ) {
|
|
178
|
+
var p = ne(a);
|
|
179
|
+
if (p.transform !== "none" || p.perspective !== "none" || p.contain === "paint" || ["transform", "perspective"].indexOf(p.willChange) !== -1 || e && p.willChange === "filter" || e && p.filter && p.filter !== "none")
|
|
180
|
+
return a;
|
|
181
|
+
a = a.parentNode;
|
|
182
|
+
}
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
function He(t) {
|
|
186
|
+
for (var e = V(t), o = Dt(t); o && Lo(o) && ne(o).position === "static"; )
|
|
187
|
+
o = Dt(o);
|
|
188
|
+
return o && (ee(o) === "html" || ee(o) === "body" && ne(o).position === "static") ? e : o || Wo(t) || e;
|
|
189
|
+
}
|
|
190
|
+
function dt(t) {
|
|
191
|
+
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
192
|
+
}
|
|
193
|
+
function ke(t, e, o) {
|
|
194
|
+
return fe(t, _e(e, o));
|
|
195
|
+
}
|
|
196
|
+
function Io(t, e, o) {
|
|
197
|
+
var n = ke(t, e, o);
|
|
198
|
+
return n > o ? o : n;
|
|
199
|
+
}
|
|
200
|
+
function _t() {
|
|
201
|
+
return {
|
|
202
|
+
top: 0,
|
|
203
|
+
right: 0,
|
|
204
|
+
bottom: 0,
|
|
205
|
+
left: 0
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function eo(t) {
|
|
209
|
+
return Object.assign({}, _t(), t);
|
|
210
|
+
}
|
|
211
|
+
function to(t, e) {
|
|
212
|
+
return e.reduce(function(o, n) {
|
|
213
|
+
return o[n] = t, o;
|
|
214
|
+
}, {});
|
|
215
|
+
}
|
|
216
|
+
var Vo = function(e, o) {
|
|
217
|
+
return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
|
|
218
|
+
placement: o.placement
|
|
219
|
+
})) : e, eo(typeof e != "number" ? e : to(e, Ve));
|
|
220
|
+
};
|
|
221
|
+
function Ho(t) {
|
|
222
|
+
var e, o = t.state, n = t.name, a = t.options, p = o.elements.arrow, c = o.modifiersData.popperOffsets, s = _(o.placement), i = dt(s), f = [I, Y].indexOf(s) >= 0, l = f ? "height" : "width";
|
|
223
|
+
if (!(!p || !c)) {
|
|
224
|
+
var g = Vo(a.padding, o), x = ut(p), u = i === "y" ? W : I, T = i === "y" ? z : Y, m = o.rects.reference[l] + o.rects.reference[i] - c[i] - o.rects.popper[l], v = c[i] - o.rects.reference[i], w = He(p), E = w ? i === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = m / 2 - v / 2, d = g[u], y = E - x[l] - g[T], b = E / 2 - x[l] / 2 + O, R = ke(d, b, y), D = i;
|
|
225
|
+
o.modifiersData[n] = (e = {}, e[D] = R, e.centerOffset = R - b, e);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function Uo(t) {
|
|
229
|
+
var e = t.state, o = t.options, n = o.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
230
|
+
a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || Zt(e.elements.popper, a) && (e.elements.arrow = a));
|
|
231
|
+
}
|
|
232
|
+
const Fo = {
|
|
233
|
+
name: "arrow",
|
|
234
|
+
enabled: !0,
|
|
235
|
+
phase: "main",
|
|
236
|
+
fn: Ho,
|
|
237
|
+
effect: Uo,
|
|
238
|
+
requires: ["popperOffsets"],
|
|
239
|
+
requiresIfExists: ["preventOverflow"]
|
|
240
|
+
};
|
|
241
|
+
function Pe(t) {
|
|
242
|
+
return t.split("-")[1];
|
|
243
|
+
}
|
|
244
|
+
var qo = {
|
|
245
|
+
top: "auto",
|
|
246
|
+
right: "auto",
|
|
247
|
+
bottom: "auto",
|
|
248
|
+
left: "auto"
|
|
249
|
+
};
|
|
250
|
+
function zo(t, e) {
|
|
251
|
+
var o = t.x, n = t.y, a = e.devicePixelRatio || 1;
|
|
252
|
+
return {
|
|
253
|
+
x: xe(o * a) / a || 0,
|
|
254
|
+
y: xe(n * a) / a || 0
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
function St(t) {
|
|
258
|
+
var e, o = t.popper, n = t.popperRect, a = t.placement, p = t.variation, c = t.offsets, s = t.position, i = t.gpuAcceleration, f = t.adaptive, l = t.roundOffsets, g = t.isFixed, x = c.x, u = x === void 0 ? 0 : x, T = c.y, m = T === void 0 ? 0 : T, v = typeof l == "function" ? l({
|
|
259
|
+
x: u,
|
|
260
|
+
y: m
|
|
261
|
+
}) : {
|
|
262
|
+
x: u,
|
|
263
|
+
y: m
|
|
264
|
+
};
|
|
265
|
+
u = v.x, m = v.y;
|
|
266
|
+
var w = c.hasOwnProperty("x"), E = c.hasOwnProperty("y"), O = I, d = W, y = window;
|
|
267
|
+
if (f) {
|
|
268
|
+
var b = He(o), R = "clientHeight", D = "clientWidth";
|
|
269
|
+
if (b === V(o) && (b = se(o), ne(b).position !== "static" && s === "absolute" && (R = "scrollHeight", D = "scrollWidth")), b = b, a === W || (a === I || a === Y) && p === Le) {
|
|
270
|
+
d = z;
|
|
271
|
+
var A = g && b === y && y.visualViewport ? y.visualViewport.height : (
|
|
272
|
+
// $FlowFixMe[prop-missing]
|
|
273
|
+
b[R]
|
|
274
|
+
);
|
|
275
|
+
m -= A - n.height, m *= i ? 1 : -1;
|
|
276
|
+
}
|
|
277
|
+
if (a === I || (a === W || a === z) && p === Le) {
|
|
278
|
+
O = Y;
|
|
279
|
+
var P = g && b === y && y.visualViewport ? y.visualViewport.width : (
|
|
280
|
+
// $FlowFixMe[prop-missing]
|
|
281
|
+
b[D]
|
|
282
|
+
);
|
|
283
|
+
u -= P - n.width, u *= i ? 1 : -1;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
var M = Object.assign({
|
|
287
|
+
position: s
|
|
288
|
+
}, f && qo), k = l === !0 ? zo({
|
|
289
|
+
x: u,
|
|
290
|
+
y: m
|
|
291
|
+
}, V(o)) : {
|
|
292
|
+
x: u,
|
|
293
|
+
y: m
|
|
294
|
+
};
|
|
295
|
+
if (u = k.x, m = k.y, i) {
|
|
296
|
+
var j;
|
|
297
|
+
return Object.assign({}, M, (j = {}, j[d] = E ? "0" : "", j[O] = w ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", j));
|
|
298
|
+
}
|
|
299
|
+
return Object.assign({}, M, (e = {}, e[d] = E ? m + "px" : "", e[O] = w ? u + "px" : "", e.transform = "", e));
|
|
300
|
+
}
|
|
301
|
+
function Yo(t) {
|
|
302
|
+
var e = t.state, o = t.options, n = o.gpuAcceleration, a = n === void 0 ? !0 : n, p = o.adaptive, c = p === void 0 ? !0 : p, s = o.roundOffsets, i = s === void 0 ? !0 : s, f = {
|
|
303
|
+
placement: _(e.placement),
|
|
304
|
+
variation: Pe(e.placement),
|
|
305
|
+
popper: e.elements.popper,
|
|
306
|
+
popperRect: e.rects.popper,
|
|
307
|
+
gpuAcceleration: a,
|
|
308
|
+
isFixed: e.options.strategy === "fixed"
|
|
309
|
+
};
|
|
310
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, St(Object.assign({}, f, {
|
|
311
|
+
offsets: e.modifiersData.popperOffsets,
|
|
312
|
+
position: e.options.strategy,
|
|
313
|
+
adaptive: c,
|
|
314
|
+
roundOffsets: i
|
|
315
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, St(Object.assign({}, f, {
|
|
316
|
+
offsets: e.modifiersData.arrow,
|
|
317
|
+
position: "absolute",
|
|
318
|
+
adaptive: !1,
|
|
319
|
+
roundOffsets: i
|
|
320
|
+
})))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
321
|
+
"data-popper-placement": e.placement
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
const Xo = {
|
|
325
|
+
name: "computeStyles",
|
|
326
|
+
enabled: !0,
|
|
327
|
+
phase: "beforeWrite",
|
|
328
|
+
fn: Yo,
|
|
329
|
+
data: {}
|
|
330
|
+
};
|
|
331
|
+
var Ge = {
|
|
332
|
+
passive: !0
|
|
333
|
+
};
|
|
334
|
+
function Go(t) {
|
|
335
|
+
var e = t.state, o = t.instance, n = t.options, a = n.scroll, p = a === void 0 ? !0 : a, c = n.resize, s = c === void 0 ? !0 : c, i = V(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
336
|
+
return p && f.forEach(function(l) {
|
|
337
|
+
l.addEventListener("scroll", o.update, Ge);
|
|
338
|
+
}), s && i.addEventListener("resize", o.update, Ge), function() {
|
|
339
|
+
p && f.forEach(function(l) {
|
|
340
|
+
l.removeEventListener("scroll", o.update, Ge);
|
|
341
|
+
}), s && i.removeEventListener("resize", o.update, Ge);
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
const Ko = {
|
|
345
|
+
name: "eventListeners",
|
|
346
|
+
enabled: !0,
|
|
347
|
+
phase: "write",
|
|
348
|
+
fn: function() {
|
|
349
|
+
},
|
|
350
|
+
effect: Go,
|
|
351
|
+
data: {}
|
|
352
|
+
};
|
|
353
|
+
var Jo = {
|
|
354
|
+
left: "right",
|
|
355
|
+
right: "left",
|
|
356
|
+
bottom: "top",
|
|
357
|
+
top: "bottom"
|
|
358
|
+
};
|
|
359
|
+
function Qe(t) {
|
|
360
|
+
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
361
|
+
return Jo[e];
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
var Qo = {
|
|
365
|
+
start: "end",
|
|
366
|
+
end: "start"
|
|
367
|
+
};
|
|
368
|
+
function Nt(t) {
|
|
369
|
+
return t.replace(/start|end/g, function(e) {
|
|
370
|
+
return Qo[e];
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
function mt(t) {
|
|
374
|
+
var e = V(t), o = e.pageXOffset, n = e.pageYOffset;
|
|
375
|
+
return {
|
|
376
|
+
scrollLeft: o,
|
|
377
|
+
scrollTop: n
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
function vt(t) {
|
|
381
|
+
return Te(se(t)).left + mt(t).scrollLeft;
|
|
382
|
+
}
|
|
383
|
+
function Zo(t, e) {
|
|
384
|
+
var o = V(t), n = se(t), a = o.visualViewport, p = n.clientWidth, c = n.clientHeight, s = 0, i = 0;
|
|
385
|
+
if (a) {
|
|
386
|
+
p = a.width, c = a.height;
|
|
387
|
+
var f = Qt();
|
|
388
|
+
(f || !f && e === "fixed") && (s = a.offsetLeft, i = a.offsetTop);
|
|
389
|
+
}
|
|
390
|
+
return {
|
|
391
|
+
width: p,
|
|
392
|
+
height: c,
|
|
393
|
+
x: s + vt(t),
|
|
394
|
+
y: i
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function _o(t) {
|
|
398
|
+
var e, o = se(t), n = mt(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, p = fe(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = fe(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + vt(t), i = -n.scrollTop;
|
|
399
|
+
return ne(a || o).direction === "rtl" && (s += fe(o.clientWidth, a ? a.clientWidth : 0) - p), {
|
|
400
|
+
width: p,
|
|
401
|
+
height: c,
|
|
402
|
+
x: s,
|
|
403
|
+
y: i
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
function ht(t) {
|
|
407
|
+
var e = ne(t), o = e.overflow, n = e.overflowX, a = e.overflowY;
|
|
408
|
+
return /auto|scroll|overlay|hidden/.test(o + a + n);
|
|
409
|
+
}
|
|
410
|
+
function oo(t) {
|
|
411
|
+
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : q(t) && ht(t) ? t : oo(tt(t));
|
|
412
|
+
}
|
|
413
|
+
function Be(t, e) {
|
|
414
|
+
var o;
|
|
415
|
+
e === void 0 && (e = []);
|
|
416
|
+
var n = oo(t), a = n === ((o = t.ownerDocument) == null ? void 0 : o.body), p = V(n), c = a ? [p].concat(p.visualViewport || [], ht(n) ? n : []) : n, s = e.concat(c);
|
|
417
|
+
return a ? s : (
|
|
418
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
419
|
+
s.concat(Be(tt(c)))
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
function pt(t) {
|
|
423
|
+
return Object.assign({}, t, {
|
|
424
|
+
left: t.x,
|
|
425
|
+
top: t.y,
|
|
426
|
+
right: t.x + t.width,
|
|
427
|
+
bottom: t.y + t.height
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
function er(t, e) {
|
|
431
|
+
var o = Te(t, !1, e === "fixed");
|
|
432
|
+
return o.top = o.top + t.clientTop, o.left = o.left + t.clientLeft, o.bottom = o.top + t.clientHeight, o.right = o.left + t.clientWidth, o.width = t.clientWidth, o.height = t.clientHeight, o.x = o.left, o.y = o.top, o;
|
|
433
|
+
}
|
|
434
|
+
function kt(t, e, o) {
|
|
435
|
+
return e === Kt ? pt(Zo(t, o)) : ue(e) ? er(e, o) : pt(_o(se(t)));
|
|
436
|
+
}
|
|
437
|
+
function tr(t) {
|
|
438
|
+
var e = Be(tt(t)), o = ["absolute", "fixed"].indexOf(ne(t).position) >= 0, n = o && q(t) ? He(t) : t;
|
|
439
|
+
return ue(n) ? e.filter(function(a) {
|
|
440
|
+
return ue(a) && Zt(a, n) && ee(a) !== "body";
|
|
441
|
+
}) : [];
|
|
442
|
+
}
|
|
443
|
+
function or(t, e, o, n) {
|
|
444
|
+
var a = e === "clippingParents" ? tr(t) : [].concat(e), p = [].concat(a, [o]), c = p[0], s = p.reduce(function(i, f) {
|
|
445
|
+
var l = kt(t, f, n);
|
|
446
|
+
return i.top = fe(l.top, i.top), i.right = _e(l.right, i.right), i.bottom = _e(l.bottom, i.bottom), i.left = fe(l.left, i.left), i;
|
|
447
|
+
}, kt(t, c, n));
|
|
448
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
449
|
+
}
|
|
450
|
+
function ro(t) {
|
|
451
|
+
var e = t.reference, o = t.element, n = t.placement, a = n ? _(n) : null, p = n ? Pe(n) : null, c = e.x + e.width / 2 - o.width / 2, s = e.y + e.height / 2 - o.height / 2, i;
|
|
452
|
+
switch (a) {
|
|
453
|
+
case W:
|
|
454
|
+
i = {
|
|
455
|
+
x: c,
|
|
456
|
+
y: e.y - o.height
|
|
457
|
+
};
|
|
458
|
+
break;
|
|
459
|
+
case z:
|
|
460
|
+
i = {
|
|
461
|
+
x: c,
|
|
462
|
+
y: e.y + e.height
|
|
463
|
+
};
|
|
464
|
+
break;
|
|
465
|
+
case Y:
|
|
466
|
+
i = {
|
|
467
|
+
x: e.x + e.width,
|
|
468
|
+
y: s
|
|
469
|
+
};
|
|
470
|
+
break;
|
|
471
|
+
case I:
|
|
472
|
+
i = {
|
|
473
|
+
x: e.x - o.width,
|
|
474
|
+
y: s
|
|
475
|
+
};
|
|
476
|
+
break;
|
|
477
|
+
default:
|
|
478
|
+
i = {
|
|
479
|
+
x: e.x,
|
|
480
|
+
y: e.y
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
var f = a ? dt(a) : null;
|
|
484
|
+
if (f != null) {
|
|
485
|
+
var l = f === "y" ? "height" : "width";
|
|
486
|
+
switch (p) {
|
|
487
|
+
case Oe:
|
|
488
|
+
i[f] = i[f] - (e[l] / 2 - o[l] / 2);
|
|
489
|
+
break;
|
|
490
|
+
case Le:
|
|
491
|
+
i[f] = i[f] + (e[l] / 2 - o[l] / 2);
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return i;
|
|
496
|
+
}
|
|
497
|
+
function We(t, e) {
|
|
498
|
+
e === void 0 && (e = {});
|
|
499
|
+
var o = e, n = o.placement, a = n === void 0 ? t.placement : n, p = o.strategy, c = p === void 0 ? t.strategy : p, s = o.boundary, i = s === void 0 ? xo : s, f = o.rootBoundary, l = f === void 0 ? Kt : f, g = o.elementContext, x = g === void 0 ? Se : g, u = o.altBoundary, T = u === void 0 ? !1 : u, m = o.padding, v = m === void 0 ? 0 : m, w = eo(typeof v != "number" ? v : to(v, Ve)), E = x === Se ? To : Se, O = t.rects.popper, d = t.elements[T ? E : x], y = or(ue(d) ? d : d.contextElement || se(t.elements.popper), i, l, c), b = Te(t.elements.reference), R = ro({
|
|
500
|
+
reference: b,
|
|
501
|
+
element: O,
|
|
502
|
+
strategy: "absolute",
|
|
503
|
+
placement: a
|
|
504
|
+
}), D = pt(Object.assign({}, O, R)), A = x === Se ? D : b, P = {
|
|
505
|
+
top: y.top - A.top + w.top,
|
|
506
|
+
bottom: A.bottom - y.bottom + w.bottom,
|
|
507
|
+
left: y.left - A.left + w.left,
|
|
508
|
+
right: A.right - y.right + w.right
|
|
509
|
+
}, M = t.modifiersData.offset;
|
|
510
|
+
if (x === Se && M) {
|
|
511
|
+
var k = M[a];
|
|
512
|
+
Object.keys(P).forEach(function(j) {
|
|
513
|
+
var X = [Y, z].indexOf(j) >= 0 ? 1 : -1, G = [W, z].indexOf(j) >= 0 ? "y" : "x";
|
|
514
|
+
P[j] += k[G] * X;
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
return P;
|
|
518
|
+
}
|
|
519
|
+
function rr(t, e) {
|
|
520
|
+
e === void 0 && (e = {});
|
|
521
|
+
var o = e, n = o.placement, a = o.boundary, p = o.rootBoundary, c = o.padding, s = o.flipVariations, i = o.allowedAutoPlacements, f = i === void 0 ? Jt : i, l = Pe(n), g = l ? s ? $t : $t.filter(function(T) {
|
|
522
|
+
return Pe(T) === l;
|
|
523
|
+
}) : Ve, x = g.filter(function(T) {
|
|
524
|
+
return f.indexOf(T) >= 0;
|
|
525
|
+
});
|
|
526
|
+
x.length === 0 && (x = g);
|
|
527
|
+
var u = x.reduce(function(T, m) {
|
|
528
|
+
return T[m] = We(t, {
|
|
529
|
+
placement: m,
|
|
530
|
+
boundary: a,
|
|
531
|
+
rootBoundary: p,
|
|
532
|
+
padding: c
|
|
533
|
+
})[_(m)], T;
|
|
534
|
+
}, {});
|
|
535
|
+
return Object.keys(u).sort(function(T, m) {
|
|
536
|
+
return u[T] - u[m];
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
function nr(t) {
|
|
540
|
+
if (_(t) === ct)
|
|
541
|
+
return [];
|
|
542
|
+
var e = Qe(t);
|
|
543
|
+
return [Nt(t), e, Nt(e)];
|
|
544
|
+
}
|
|
545
|
+
function ar(t) {
|
|
546
|
+
var e = t.state, o = t.options, n = t.name;
|
|
547
|
+
if (!e.modifiersData[n]._skip) {
|
|
548
|
+
for (var a = o.mainAxis, p = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !0 : c, i = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, x = o.altBoundary, u = o.flipVariations, T = u === void 0 ? !0 : u, m = o.allowedAutoPlacements, v = e.options.placement, w = _(v), E = w === v, O = i || (E || !T ? [Qe(v)] : nr(v)), d = [v].concat(O).reduce(function(K, H) {
|
|
549
|
+
return K.concat(_(H) === ct ? rr(e, {
|
|
550
|
+
placement: H,
|
|
551
|
+
boundary: l,
|
|
552
|
+
rootBoundary: g,
|
|
553
|
+
padding: f,
|
|
554
|
+
flipVariations: T,
|
|
555
|
+
allowedAutoPlacements: m
|
|
556
|
+
}) : H);
|
|
557
|
+
}, []), y = e.rects.reference, b = e.rects.popper, R = /* @__PURE__ */ new Map(), D = !0, A = d[0], P = 0; P < d.length; P++) {
|
|
558
|
+
var M = d[P], k = _(M), j = Pe(M) === Oe, X = [W, z].indexOf(k) >= 0, G = X ? "width" : "height", N = We(e, {
|
|
559
|
+
placement: M,
|
|
560
|
+
boundary: l,
|
|
561
|
+
rootBoundary: g,
|
|
562
|
+
altBoundary: x,
|
|
563
|
+
padding: f
|
|
564
|
+
}), $ = X ? j ? Y : I : j ? z : W;
|
|
565
|
+
y[G] > b[G] && ($ = Qe($));
|
|
566
|
+
var L = Qe($), te = [];
|
|
567
|
+
if (p && te.push(N[k] <= 0), s && te.push(N[$] <= 0, N[L] <= 0), te.every(function(K) {
|
|
568
|
+
return K;
|
|
569
|
+
})) {
|
|
570
|
+
A = M, D = !1;
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
R.set(M, te);
|
|
574
|
+
}
|
|
575
|
+
if (D)
|
|
576
|
+
for (var B = T ? 3 : 1, de = function(H) {
|
|
577
|
+
var ae = d.find(function(ie) {
|
|
578
|
+
var U = R.get(ie);
|
|
579
|
+
if (U)
|
|
580
|
+
return U.slice(0, H).every(function(ve) {
|
|
581
|
+
return ve;
|
|
582
|
+
});
|
|
583
|
+
});
|
|
584
|
+
if (ae)
|
|
585
|
+
return A = ae, "break";
|
|
586
|
+
}, oe = B; oe > 0; oe--) {
|
|
587
|
+
var me = de(oe);
|
|
588
|
+
if (me === "break") break;
|
|
589
|
+
}
|
|
590
|
+
e.placement !== A && (e.modifiersData[n]._skip = !0, e.placement = A, e.reset = !0);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
const ir = {
|
|
594
|
+
name: "flip",
|
|
595
|
+
enabled: !0,
|
|
596
|
+
phase: "main",
|
|
597
|
+
fn: ar,
|
|
598
|
+
requiresIfExists: ["offset"],
|
|
599
|
+
data: {
|
|
600
|
+
_skip: !1
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
function Bt(t, e, o) {
|
|
604
|
+
return o === void 0 && (o = {
|
|
605
|
+
x: 0,
|
|
606
|
+
y: 0
|
|
607
|
+
}), {
|
|
608
|
+
top: t.top - e.height - o.y,
|
|
609
|
+
right: t.right - e.width + o.x,
|
|
610
|
+
bottom: t.bottom - e.height + o.y,
|
|
611
|
+
left: t.left - e.width - o.x
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
function Lt(t) {
|
|
615
|
+
return [W, Y, z, I].some(function(e) {
|
|
616
|
+
return t[e] >= 0;
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
function sr(t) {
|
|
620
|
+
var e = t.state, o = t.name, n = e.rects.reference, a = e.rects.popper, p = e.modifiersData.preventOverflow, c = We(e, {
|
|
621
|
+
elementContext: "reference"
|
|
622
|
+
}), s = We(e, {
|
|
623
|
+
altBoundary: !0
|
|
624
|
+
}), i = Bt(c, n), f = Bt(s, a, p), l = Lt(i), g = Lt(f);
|
|
625
|
+
e.modifiersData[o] = {
|
|
626
|
+
referenceClippingOffsets: i,
|
|
627
|
+
popperEscapeOffsets: f,
|
|
628
|
+
isReferenceHidden: l,
|
|
629
|
+
hasPopperEscaped: g
|
|
630
|
+
}, e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
631
|
+
"data-popper-reference-hidden": l,
|
|
632
|
+
"data-popper-escaped": g
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
const pr = {
|
|
636
|
+
name: "hide",
|
|
637
|
+
enabled: !0,
|
|
638
|
+
phase: "main",
|
|
639
|
+
requiresIfExists: ["preventOverflow"],
|
|
640
|
+
fn: sr
|
|
641
|
+
};
|
|
642
|
+
function lr(t, e, o) {
|
|
643
|
+
var n = _(t), a = [I, W].indexOf(n) >= 0 ? -1 : 1, p = typeof o == "function" ? o(Object.assign({}, e, {
|
|
644
|
+
placement: t
|
|
645
|
+
})) : o, c = p[0], s = p[1];
|
|
646
|
+
return c = c || 0, s = (s || 0) * a, [I, Y].indexOf(n) >= 0 ? {
|
|
647
|
+
x: s,
|
|
648
|
+
y: c
|
|
649
|
+
} : {
|
|
650
|
+
x: c,
|
|
651
|
+
y: s
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
function cr(t) {
|
|
655
|
+
var e = t.state, o = t.options, n = t.name, a = o.offset, p = a === void 0 ? [0, 0] : a, c = Jt.reduce(function(l, g) {
|
|
656
|
+
return l[g] = lr(g, e.rects, p), l;
|
|
657
|
+
}, {}), s = c[e.placement], i = s.x, f = s.y;
|
|
658
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += i, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = c;
|
|
659
|
+
}
|
|
660
|
+
const fr = {
|
|
661
|
+
name: "offset",
|
|
662
|
+
enabled: !0,
|
|
663
|
+
phase: "main",
|
|
664
|
+
requires: ["popperOffsets"],
|
|
665
|
+
fn: cr
|
|
666
|
+
};
|
|
667
|
+
function ur(t) {
|
|
668
|
+
var e = t.state, o = t.name;
|
|
669
|
+
e.modifiersData[o] = ro({
|
|
670
|
+
reference: e.rects.reference,
|
|
671
|
+
element: e.rects.popper,
|
|
672
|
+
strategy: "absolute",
|
|
673
|
+
placement: e.placement
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
const dr = {
|
|
677
|
+
name: "popperOffsets",
|
|
678
|
+
enabled: !0,
|
|
679
|
+
phase: "read",
|
|
680
|
+
fn: ur,
|
|
681
|
+
data: {}
|
|
682
|
+
};
|
|
683
|
+
function mr(t) {
|
|
684
|
+
return t === "x" ? "y" : "x";
|
|
685
|
+
}
|
|
686
|
+
function vr(t) {
|
|
687
|
+
var e = t.state, o = t.options, n = t.name, a = o.mainAxis, p = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !1 : c, i = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, x = o.tether, u = x === void 0 ? !0 : x, T = o.tetherOffset, m = T === void 0 ? 0 : T, v = We(e, {
|
|
688
|
+
boundary: i,
|
|
689
|
+
rootBoundary: f,
|
|
690
|
+
padding: g,
|
|
691
|
+
altBoundary: l
|
|
692
|
+
}), w = _(e.placement), E = Pe(e.placement), O = !E, d = dt(w), y = mr(d), b = e.modifiersData.popperOffsets, R = e.rects.reference, D = e.rects.popper, A = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
693
|
+
placement: e.placement
|
|
694
|
+
})) : m, P = typeof A == "number" ? {
|
|
695
|
+
mainAxis: A,
|
|
696
|
+
altAxis: A
|
|
697
|
+
} : Object.assign({
|
|
698
|
+
mainAxis: 0,
|
|
699
|
+
altAxis: 0
|
|
700
|
+
}, A), M = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, k = {
|
|
701
|
+
x: 0,
|
|
702
|
+
y: 0
|
|
703
|
+
};
|
|
704
|
+
if (b) {
|
|
705
|
+
if (p) {
|
|
706
|
+
var j, X = d === "y" ? W : I, G = d === "y" ? z : Y, N = d === "y" ? "height" : "width", $ = b[d], L = $ + v[X], te = $ - v[G], B = u ? -D[N] / 2 : 0, de = E === Oe ? R[N] : D[N], oe = E === Oe ? -D[N] : -R[N], me = e.elements.arrow, K = u && me ? ut(me) : {
|
|
707
|
+
width: 0,
|
|
708
|
+
height: 0
|
|
709
|
+
}, H = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _t(), ae = H[X], ie = H[G], U = ke(0, R[N], K[N]), ve = O ? R[N] / 2 - B - U - ae - P.mainAxis : de - U - ae - P.mainAxis, rt = O ? -R[N] / 2 + B + U + ie + P.mainAxis : oe + U + ie + P.mainAxis, he = e.elements.arrow && He(e.elements.arrow), J = he ? d === "y" ? he.clientTop || 0 : he.clientLeft || 0 : 0, ge = (j = M == null ? void 0 : M[d]) != null ? j : 0, pe = $ + ve - ge - J, ye = $ + rt - ge, Ee = ke(u ? _e(L, pe) : L, $, u ? fe(te, ye) : te);
|
|
710
|
+
b[d] = Ee, k[d] = Ee - $;
|
|
711
|
+
}
|
|
712
|
+
if (s) {
|
|
713
|
+
var le, be = d === "x" ? W : I, Re = d === "x" ? z : Y, Z = b[y], ce = y === "y" ? "height" : "width", Ae = Z + v[be], Ce = Z - v[Re], Me = [W, I].indexOf(w) !== -1, Ue = (le = M == null ? void 0 : M[y]) != null ? le : 0, Fe = Me ? Ae : Z - R[ce] - D[ce] - Ue + P.altAxis, we = Me ? Z + R[ce] + D[ce] - Ue - P.altAxis : Ce, qe = u && Me ? Io(Fe, Z, we) : ke(u ? Fe : Ae, Z, u ? we : Ce);
|
|
714
|
+
b[y] = qe, k[y] = qe - Z;
|
|
715
|
+
}
|
|
716
|
+
e.modifiersData[n] = k;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
const hr = {
|
|
720
|
+
name: "preventOverflow",
|
|
721
|
+
enabled: !0,
|
|
722
|
+
phase: "main",
|
|
723
|
+
fn: vr,
|
|
724
|
+
requiresIfExists: ["offset"]
|
|
725
|
+
};
|
|
726
|
+
function gr(t) {
|
|
727
|
+
return {
|
|
728
|
+
scrollLeft: t.scrollLeft,
|
|
729
|
+
scrollTop: t.scrollTop
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
function yr(t) {
|
|
733
|
+
return t === V(t) || !q(t) ? mt(t) : gr(t);
|
|
734
|
+
}
|
|
735
|
+
function br(t) {
|
|
736
|
+
var e = t.getBoundingClientRect(), o = xe(e.width) / t.offsetWidth || 1, n = xe(e.height) / t.offsetHeight || 1;
|
|
737
|
+
return o !== 1 || n !== 1;
|
|
738
|
+
}
|
|
739
|
+
function wr(t, e, o) {
|
|
740
|
+
o === void 0 && (o = !1);
|
|
741
|
+
var n = q(e), a = q(e) && br(e), p = se(e), c = Te(t, a, o), s = {
|
|
742
|
+
scrollLeft: 0,
|
|
743
|
+
scrollTop: 0
|
|
744
|
+
}, i = {
|
|
745
|
+
x: 0,
|
|
746
|
+
y: 0
|
|
747
|
+
};
|
|
748
|
+
return (n || !n && !o) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
749
|
+
ht(p)) && (s = yr(e)), q(e) ? (i = Te(e, !0), i.x += e.clientLeft, i.y += e.clientTop) : p && (i.x = vt(p))), {
|
|
750
|
+
x: c.left + s.scrollLeft - i.x,
|
|
751
|
+
y: c.top + s.scrollTop - i.y,
|
|
752
|
+
width: c.width,
|
|
753
|
+
height: c.height
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
function Or(t) {
|
|
757
|
+
var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), n = [];
|
|
758
|
+
t.forEach(function(p) {
|
|
759
|
+
e.set(p.name, p);
|
|
760
|
+
});
|
|
761
|
+
function a(p) {
|
|
762
|
+
o.add(p.name);
|
|
763
|
+
var c = [].concat(p.requires || [], p.requiresIfExists || []);
|
|
764
|
+
c.forEach(function(s) {
|
|
765
|
+
if (!o.has(s)) {
|
|
766
|
+
var i = e.get(s);
|
|
767
|
+
i && a(i);
|
|
768
|
+
}
|
|
769
|
+
}), n.push(p);
|
|
770
|
+
}
|
|
771
|
+
return t.forEach(function(p) {
|
|
772
|
+
o.has(p.name) || a(p);
|
|
773
|
+
}), n;
|
|
774
|
+
}
|
|
775
|
+
function xr(t) {
|
|
776
|
+
var e = Or(t);
|
|
777
|
+
return So.reduce(function(o, n) {
|
|
778
|
+
return o.concat(e.filter(function(a) {
|
|
779
|
+
return a.phase === n;
|
|
780
|
+
}));
|
|
781
|
+
}, []);
|
|
782
|
+
}
|
|
783
|
+
function Tr(t) {
|
|
784
|
+
var e;
|
|
785
|
+
return function() {
|
|
786
|
+
return e || (e = new Promise(function(o) {
|
|
787
|
+
Promise.resolve().then(function() {
|
|
788
|
+
e = void 0, o(t());
|
|
789
|
+
});
|
|
790
|
+
})), e;
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
function Pr(t) {
|
|
794
|
+
var e = t.reduce(function(o, n) {
|
|
795
|
+
var a = o[n.name];
|
|
796
|
+
return o[n.name] = a ? Object.assign({}, a, n, {
|
|
797
|
+
options: Object.assign({}, a.options, n.options),
|
|
798
|
+
data: Object.assign({}, a.data, n.data)
|
|
799
|
+
}) : n, o;
|
|
800
|
+
}, {});
|
|
801
|
+
return Object.keys(e).map(function(o) {
|
|
802
|
+
return e[o];
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
var Wt = {
|
|
806
|
+
placement: "bottom",
|
|
807
|
+
modifiers: [],
|
|
808
|
+
strategy: "absolute"
|
|
809
|
+
};
|
|
810
|
+
function It() {
|
|
811
|
+
for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
|
|
812
|
+
e[o] = arguments[o];
|
|
813
|
+
return !e.some(function(n) {
|
|
814
|
+
return !(n && typeof n.getBoundingClientRect == "function");
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
function Er(t) {
|
|
818
|
+
t === void 0 && (t = {});
|
|
819
|
+
var e = t, o = e.defaultModifiers, n = o === void 0 ? [] : o, a = e.defaultOptions, p = a === void 0 ? Wt : a;
|
|
820
|
+
return function(s, i, f) {
|
|
821
|
+
f === void 0 && (f = p);
|
|
822
|
+
var l = {
|
|
823
|
+
placement: "bottom",
|
|
824
|
+
orderedModifiers: [],
|
|
825
|
+
options: Object.assign({}, Wt, p),
|
|
826
|
+
modifiersData: {},
|
|
827
|
+
elements: {
|
|
828
|
+
reference: s,
|
|
829
|
+
popper: i
|
|
830
|
+
},
|
|
831
|
+
attributes: {},
|
|
832
|
+
styles: {}
|
|
833
|
+
}, g = [], x = !1, u = {
|
|
834
|
+
state: l,
|
|
835
|
+
setOptions: function(w) {
|
|
836
|
+
var E = typeof w == "function" ? w(l.options) : w;
|
|
837
|
+
m(), l.options = Object.assign({}, p, l.options, E), l.scrollParents = {
|
|
838
|
+
reference: ue(s) ? Be(s) : s.contextElement ? Be(s.contextElement) : [],
|
|
839
|
+
popper: Be(i)
|
|
840
|
+
};
|
|
841
|
+
var O = xr(Pr([].concat(n, l.options.modifiers)));
|
|
842
|
+
return l.orderedModifiers = O.filter(function(d) {
|
|
843
|
+
return d.enabled;
|
|
844
|
+
}), T(), u.update();
|
|
845
|
+
},
|
|
846
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
847
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
848
|
+
// logic.
|
|
849
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
850
|
+
// prefer the async Popper#update method
|
|
851
|
+
forceUpdate: function() {
|
|
852
|
+
if (!x) {
|
|
853
|
+
var w = l.elements, E = w.reference, O = w.popper;
|
|
854
|
+
if (It(E, O)) {
|
|
855
|
+
l.rects = {
|
|
856
|
+
reference: wr(E, He(O), l.options.strategy === "fixed"),
|
|
857
|
+
popper: ut(O)
|
|
858
|
+
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(P) {
|
|
859
|
+
return l.modifiersData[P.name] = Object.assign({}, P.data);
|
|
860
|
+
});
|
|
861
|
+
for (var d = 0; d < l.orderedModifiers.length; d++) {
|
|
862
|
+
if (l.reset === !0) {
|
|
863
|
+
l.reset = !1, d = -1;
|
|
864
|
+
continue;
|
|
865
|
+
}
|
|
866
|
+
var y = l.orderedModifiers[d], b = y.fn, R = y.options, D = R === void 0 ? {} : R, A = y.name;
|
|
867
|
+
typeof b == "function" && (l = b({
|
|
868
|
+
state: l,
|
|
869
|
+
options: D,
|
|
870
|
+
name: A,
|
|
871
|
+
instance: u
|
|
872
|
+
}) || l);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
878
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
879
|
+
update: Tr(function() {
|
|
880
|
+
return new Promise(function(v) {
|
|
881
|
+
u.forceUpdate(), v(l);
|
|
882
|
+
});
|
|
883
|
+
}),
|
|
884
|
+
destroy: function() {
|
|
885
|
+
m(), x = !0;
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
if (!It(s, i))
|
|
889
|
+
return u;
|
|
890
|
+
u.setOptions(f).then(function(v) {
|
|
891
|
+
!x && f.onFirstUpdate && f.onFirstUpdate(v);
|
|
892
|
+
});
|
|
893
|
+
function T() {
|
|
894
|
+
l.orderedModifiers.forEach(function(v) {
|
|
895
|
+
var w = v.name, E = v.options, O = E === void 0 ? {} : E, d = v.effect;
|
|
896
|
+
if (typeof d == "function") {
|
|
897
|
+
var y = d({
|
|
898
|
+
state: l,
|
|
899
|
+
name: w,
|
|
900
|
+
instance: u,
|
|
901
|
+
options: O
|
|
902
|
+
}), b = function() {
|
|
903
|
+
};
|
|
904
|
+
g.push(y || b);
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
function m() {
|
|
909
|
+
g.forEach(function(v) {
|
|
910
|
+
return v();
|
|
911
|
+
}), g = [];
|
|
912
|
+
}
|
|
913
|
+
return u;
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
var Rr = [Ko, dr, Xo, Bo, fr, ir, hr, Fo, pr], Ar = /* @__PURE__ */ Er({
|
|
917
|
+
defaultModifiers: Rr
|
|
918
|
+
});
|
|
919
|
+
function Cr(t) {
|
|
920
|
+
return qt("MuiPopper", t);
|
|
921
|
+
}
|
|
922
|
+
Ht("MuiPopper", ["root"]);
|
|
923
|
+
function Mr(t, e) {
|
|
924
|
+
if (e === "ltr")
|
|
925
|
+
return t;
|
|
926
|
+
switch (t) {
|
|
927
|
+
case "bottom-end":
|
|
928
|
+
return "bottom-start";
|
|
929
|
+
case "bottom-start":
|
|
930
|
+
return "bottom-end";
|
|
931
|
+
case "top-end":
|
|
932
|
+
return "top-start";
|
|
933
|
+
case "top-start":
|
|
934
|
+
return "top-end";
|
|
935
|
+
default:
|
|
936
|
+
return t;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
function et(t) {
|
|
940
|
+
return typeof t == "function" ? t() : t;
|
|
941
|
+
}
|
|
942
|
+
function ot(t) {
|
|
943
|
+
return t.nodeType !== void 0;
|
|
944
|
+
}
|
|
945
|
+
function jr(t) {
|
|
946
|
+
return !ot(t);
|
|
947
|
+
}
|
|
948
|
+
const $r = (t) => {
|
|
949
|
+
const {
|
|
950
|
+
classes: e
|
|
951
|
+
} = t;
|
|
952
|
+
return Ut({
|
|
953
|
+
root: ["root"]
|
|
954
|
+
}, Cr, e);
|
|
955
|
+
}, Dr = {}, Sr = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
956
|
+
const {
|
|
957
|
+
anchorEl: n,
|
|
958
|
+
children: a,
|
|
959
|
+
direction: p,
|
|
960
|
+
disablePortal: c,
|
|
961
|
+
modifiers: s,
|
|
962
|
+
open: i,
|
|
963
|
+
placement: f,
|
|
964
|
+
popperOptions: l,
|
|
965
|
+
popperRef: g,
|
|
966
|
+
slotProps: x = {},
|
|
967
|
+
slots: u = {},
|
|
968
|
+
TransitionProps: T,
|
|
969
|
+
// @ts-ignore internal logic
|
|
970
|
+
ownerState: m,
|
|
971
|
+
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
972
|
+
...v
|
|
973
|
+
} = e, w = C.useRef(null), E = it(w, o), O = C.useRef(null), d = it(O, g), y = C.useRef(d);
|
|
974
|
+
At(() => {
|
|
975
|
+
y.current = d;
|
|
976
|
+
}, [d]), C.useImperativeHandle(g, () => O.current, []);
|
|
977
|
+
const b = Mr(f, p), [R, D] = C.useState(b), [A, P] = C.useState(et(n));
|
|
978
|
+
C.useEffect(() => {
|
|
979
|
+
O.current && O.current.forceUpdate();
|
|
980
|
+
}), C.useEffect(() => {
|
|
981
|
+
n && P(et(n));
|
|
982
|
+
}, [n]), At(() => {
|
|
983
|
+
if (!A || !i)
|
|
984
|
+
return;
|
|
985
|
+
const G = (L) => {
|
|
986
|
+
D(L.placement);
|
|
987
|
+
};
|
|
988
|
+
if (process.env.NODE_ENV !== "production" && A && ot(A) && A.nodeType === 1) {
|
|
989
|
+
const L = A.getBoundingClientRect();
|
|
990
|
+
process.env.NODE_ENV !== "test" && L.top === 0 && L.left === 0 && L.right === 0 && L.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
991
|
+
`));
|
|
992
|
+
}
|
|
993
|
+
let N = [{
|
|
994
|
+
name: "preventOverflow",
|
|
995
|
+
options: {
|
|
996
|
+
altBoundary: c
|
|
997
|
+
}
|
|
998
|
+
}, {
|
|
999
|
+
name: "flip",
|
|
1000
|
+
options: {
|
|
1001
|
+
altBoundary: c
|
|
1002
|
+
}
|
|
1003
|
+
}, {
|
|
1004
|
+
name: "onUpdate",
|
|
1005
|
+
enabled: !0,
|
|
1006
|
+
phase: "afterWrite",
|
|
1007
|
+
fn: ({
|
|
1008
|
+
state: L
|
|
1009
|
+
}) => {
|
|
1010
|
+
G(L);
|
|
1011
|
+
}
|
|
1012
|
+
}];
|
|
1013
|
+
s != null && (N = N.concat(s)), l && l.modifiers != null && (N = N.concat(l.modifiers));
|
|
1014
|
+
const $ = Ar(A, w.current, {
|
|
1015
|
+
placement: b,
|
|
1016
|
+
...l,
|
|
1017
|
+
modifiers: N
|
|
1018
|
+
});
|
|
1019
|
+
return y.current($), () => {
|
|
1020
|
+
$.destroy(), y.current(null);
|
|
1021
|
+
};
|
|
1022
|
+
}, [A, c, s, i, l, b]);
|
|
1023
|
+
const M = {
|
|
1024
|
+
placement: R
|
|
1025
|
+
};
|
|
1026
|
+
T !== null && (M.TransitionProps = T);
|
|
1027
|
+
const k = $r(e), j = u.root ?? "div", X = wo({
|
|
1028
|
+
elementType: j,
|
|
1029
|
+
externalSlotProps: x.root,
|
|
1030
|
+
externalForwardedProps: v,
|
|
1031
|
+
additionalProps: {
|
|
1032
|
+
role: "tooltip",
|
|
1033
|
+
ref: E
|
|
1034
|
+
},
|
|
1035
|
+
ownerState: e,
|
|
1036
|
+
className: k.root
|
|
1037
|
+
});
|
|
1038
|
+
return /* @__PURE__ */ re(j, {
|
|
1039
|
+
...X,
|
|
1040
|
+
children: typeof a == "function" ? a(M) : a
|
|
1041
|
+
});
|
|
1042
|
+
}), no = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
1043
|
+
const {
|
|
1044
|
+
anchorEl: n,
|
|
1045
|
+
children: a,
|
|
1046
|
+
container: p,
|
|
1047
|
+
direction: c = "ltr",
|
|
1048
|
+
disablePortal: s = !1,
|
|
1049
|
+
keepMounted: i = !1,
|
|
1050
|
+
modifiers: f,
|
|
1051
|
+
open: l,
|
|
1052
|
+
placement: g = "bottom",
|
|
1053
|
+
popperOptions: x = Dr,
|
|
1054
|
+
popperRef: u,
|
|
1055
|
+
style: T,
|
|
1056
|
+
transition: m = !1,
|
|
1057
|
+
slotProps: v = {},
|
|
1058
|
+
slots: w = {},
|
|
1059
|
+
...E
|
|
1060
|
+
} = e, [O, d] = C.useState(!0), y = () => {
|
|
1061
|
+
d(!1);
|
|
1062
|
+
}, b = () => {
|
|
1063
|
+
d(!0);
|
|
1064
|
+
};
|
|
1065
|
+
if (!i && !l && (!m || O))
|
|
1066
|
+
return null;
|
|
1067
|
+
let R;
|
|
1068
|
+
if (p)
|
|
1069
|
+
R = p;
|
|
1070
|
+
else if (n) {
|
|
1071
|
+
const P = et(n);
|
|
1072
|
+
R = P && ot(P) ? Rt(P).body : Rt(null).body;
|
|
1073
|
+
}
|
|
1074
|
+
const D = !l && i && (!m || O) ? "none" : void 0, A = m ? {
|
|
1075
|
+
in: l,
|
|
1076
|
+
onEnter: y,
|
|
1077
|
+
onExited: b
|
|
1078
|
+
} : void 0;
|
|
1079
|
+
return /* @__PURE__ */ re(ho, {
|
|
1080
|
+
disablePortal: s,
|
|
1081
|
+
container: R,
|
|
1082
|
+
children: /* @__PURE__ */ re(Sr, {
|
|
1083
|
+
anchorEl: n,
|
|
1084
|
+
direction: c,
|
|
1085
|
+
disablePortal: s,
|
|
1086
|
+
modifiers: f,
|
|
1087
|
+
ref: o,
|
|
1088
|
+
open: m ? !O : l,
|
|
1089
|
+
placement: g,
|
|
1090
|
+
popperOptions: x,
|
|
1091
|
+
popperRef: u,
|
|
1092
|
+
slotProps: v,
|
|
1093
|
+
slots: w,
|
|
1094
|
+
...E,
|
|
1095
|
+
style: {
|
|
1096
|
+
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
1097
|
+
position: "fixed",
|
|
1098
|
+
// Fix Popper.js display issue
|
|
1099
|
+
top: 0,
|
|
1100
|
+
left: 0,
|
|
1101
|
+
display: D,
|
|
1102
|
+
...T
|
|
1103
|
+
},
|
|
1104
|
+
TransitionProps: A,
|
|
1105
|
+
children: a
|
|
1106
|
+
})
|
|
1107
|
+
});
|
|
1108
|
+
});
|
|
1109
|
+
process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
1110
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1111
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1112
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1113
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1114
|
+
/**
|
|
1115
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1116
|
+
* or a function that returns either.
|
|
1117
|
+
* It's used to set the position of the popper.
|
|
1118
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1119
|
+
*/
|
|
1120
|
+
anchorEl: yo(r.oneOfType([Ze, r.object, r.func]), (t) => {
|
|
1121
|
+
if (t.open) {
|
|
1122
|
+
const e = et(t.anchorEl);
|
|
1123
|
+
if (e && ot(e) && e.nodeType === 1) {
|
|
1124
|
+
const o = e.getBoundingClientRect();
|
|
1125
|
+
if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
|
|
1126
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1127
|
+
`));
|
|
1128
|
+
} else if (!e || typeof e.getBoundingClientRect != "function" || jr(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
|
|
1129
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
1130
|
+
`));
|
|
1131
|
+
}
|
|
1132
|
+
return null;
|
|
1133
|
+
}),
|
|
1134
|
+
/**
|
|
1135
|
+
* Popper render function or node.
|
|
1136
|
+
*/
|
|
1137
|
+
children: r.oneOfType([r.node, r.func]),
|
|
1138
|
+
/**
|
|
1139
|
+
* An HTML element or function that returns one.
|
|
1140
|
+
* The `container` will have the portal children appended to it.
|
|
1141
|
+
*
|
|
1142
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1143
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1144
|
+
*
|
|
1145
|
+
* By default, it uses the body of the top-level document object,
|
|
1146
|
+
* so it's simply `document.body` most of the time.
|
|
1147
|
+
*/
|
|
1148
|
+
container: r.oneOfType([Ze, r.func]),
|
|
1149
|
+
/**
|
|
1150
|
+
* Direction of the text.
|
|
1151
|
+
* @default 'ltr'
|
|
1152
|
+
*/
|
|
1153
|
+
direction: r.oneOf(["ltr", "rtl"]),
|
|
1154
|
+
/**
|
|
1155
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1156
|
+
* @default false
|
|
1157
|
+
*/
|
|
1158
|
+
disablePortal: r.bool,
|
|
1159
|
+
/**
|
|
1160
|
+
* Always keep the children in the DOM.
|
|
1161
|
+
* This prop can be useful in SEO situation or
|
|
1162
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1163
|
+
* @default false
|
|
1164
|
+
*/
|
|
1165
|
+
keepMounted: r.bool,
|
|
1166
|
+
/**
|
|
1167
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1168
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1169
|
+
*
|
|
1170
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1171
|
+
* compute the position of the popper.
|
|
1172
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1173
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1174
|
+
*/
|
|
1175
|
+
modifiers: r.arrayOf(r.shape({
|
|
1176
|
+
data: r.object,
|
|
1177
|
+
effect: r.func,
|
|
1178
|
+
enabled: r.bool,
|
|
1179
|
+
fn: r.func,
|
|
1180
|
+
name: r.any,
|
|
1181
|
+
options: r.object,
|
|
1182
|
+
phase: r.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1183
|
+
requires: r.arrayOf(r.string),
|
|
1184
|
+
requiresIfExists: r.arrayOf(r.string)
|
|
1185
|
+
})),
|
|
1186
|
+
/**
|
|
1187
|
+
* If `true`, the component is shown.
|
|
1188
|
+
*/
|
|
1189
|
+
open: r.bool.isRequired,
|
|
1190
|
+
/**
|
|
1191
|
+
* Popper placement.
|
|
1192
|
+
* @default 'bottom'
|
|
1193
|
+
*/
|
|
1194
|
+
placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1195
|
+
/**
|
|
1196
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1197
|
+
* @default {}
|
|
1198
|
+
*/
|
|
1199
|
+
popperOptions: r.shape({
|
|
1200
|
+
modifiers: r.array,
|
|
1201
|
+
onFirstUpdate: r.func,
|
|
1202
|
+
placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1203
|
+
strategy: r.oneOf(["absolute", "fixed"])
|
|
1204
|
+
}),
|
|
1205
|
+
/**
|
|
1206
|
+
* A ref that points to the used popper instance.
|
|
1207
|
+
*/
|
|
1208
|
+
popperRef: Gt,
|
|
1209
|
+
/**
|
|
1210
|
+
* The props used for each slot inside the Popper.
|
|
1211
|
+
* @default {}
|
|
1212
|
+
*/
|
|
1213
|
+
slotProps: r.shape({
|
|
1214
|
+
root: r.oneOfType([r.func, r.object])
|
|
1215
|
+
}),
|
|
1216
|
+
/**
|
|
1217
|
+
* The components used for each slot inside the Popper.
|
|
1218
|
+
* Either a string to use a HTML element or a component.
|
|
1219
|
+
* @default {}
|
|
1220
|
+
*/
|
|
1221
|
+
slots: r.shape({
|
|
1222
|
+
root: r.elementType
|
|
1223
|
+
}),
|
|
1224
|
+
/**
|
|
1225
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1226
|
+
* @default false
|
|
1227
|
+
*/
|
|
1228
|
+
transition: r.bool
|
|
1229
|
+
});
|
|
1230
|
+
const Nr = Ie(no, {
|
|
1231
|
+
name: "MuiPopper",
|
|
1232
|
+
slot: "Root",
|
|
1233
|
+
overridesResolver: (t, e) => e.root
|
|
1234
|
+
})({}), gt = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
1235
|
+
const n = Xt(), a = Ft({
|
|
1236
|
+
props: e,
|
|
1237
|
+
name: "MuiPopper"
|
|
1238
|
+
}), {
|
|
1239
|
+
anchorEl: p,
|
|
1240
|
+
component: c,
|
|
1241
|
+
components: s,
|
|
1242
|
+
componentsProps: i,
|
|
1243
|
+
container: f,
|
|
1244
|
+
disablePortal: l,
|
|
1245
|
+
keepMounted: g,
|
|
1246
|
+
modifiers: x,
|
|
1247
|
+
open: u,
|
|
1248
|
+
placement: T,
|
|
1249
|
+
popperOptions: m,
|
|
1250
|
+
popperRef: v,
|
|
1251
|
+
transition: w,
|
|
1252
|
+
slots: E,
|
|
1253
|
+
slotProps: O,
|
|
1254
|
+
...d
|
|
1255
|
+
} = a, y = (E == null ? void 0 : E.root) ?? (s == null ? void 0 : s.Root), b = {
|
|
1256
|
+
anchorEl: p,
|
|
1257
|
+
container: f,
|
|
1258
|
+
disablePortal: l,
|
|
1259
|
+
keepMounted: g,
|
|
1260
|
+
modifiers: x,
|
|
1261
|
+
open: u,
|
|
1262
|
+
placement: T,
|
|
1263
|
+
popperOptions: m,
|
|
1264
|
+
popperRef: v,
|
|
1265
|
+
transition: w,
|
|
1266
|
+
...d
|
|
1267
|
+
};
|
|
1268
|
+
return /* @__PURE__ */ re(Nr, {
|
|
1269
|
+
as: c,
|
|
1270
|
+
direction: n ? "rtl" : "ltr",
|
|
1271
|
+
slots: {
|
|
1272
|
+
root: y
|
|
1273
|
+
},
|
|
1274
|
+
slotProps: O ?? i,
|
|
1275
|
+
...b,
|
|
1276
|
+
ref: o
|
|
1277
|
+
});
|
|
1278
|
+
});
|
|
1279
|
+
process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
1280
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1281
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1282
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1283
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1284
|
+
/**
|
|
1285
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1286
|
+
* or a function that returns either.
|
|
1287
|
+
* It's used to set the position of the popper.
|
|
1288
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1289
|
+
*/
|
|
1290
|
+
anchorEl: r.oneOfType([Ze, r.object, r.func]),
|
|
1291
|
+
/**
|
|
1292
|
+
* Popper render function or node.
|
|
1293
|
+
*/
|
|
1294
|
+
children: r.oneOfType([r.node, r.func]),
|
|
1295
|
+
/**
|
|
1296
|
+
* The component used for the root node.
|
|
1297
|
+
* Either a string to use a HTML element or a component.
|
|
1298
|
+
*/
|
|
1299
|
+
component: r.elementType,
|
|
1300
|
+
/**
|
|
1301
|
+
* The components used for each slot inside the Popper.
|
|
1302
|
+
* Either a string to use a HTML element or a component.
|
|
1303
|
+
*
|
|
1304
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1305
|
+
* @default {}
|
|
1306
|
+
*/
|
|
1307
|
+
components: r.shape({
|
|
1308
|
+
Root: r.elementType
|
|
1309
|
+
}),
|
|
1310
|
+
/**
|
|
1311
|
+
* The props used for each slot inside the Popper.
|
|
1312
|
+
*
|
|
1313
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1314
|
+
* @default {}
|
|
1315
|
+
*/
|
|
1316
|
+
componentsProps: r.shape({
|
|
1317
|
+
root: r.oneOfType([r.func, r.object])
|
|
1318
|
+
}),
|
|
1319
|
+
/**
|
|
1320
|
+
* An HTML element or function that returns one.
|
|
1321
|
+
* The `container` will have the portal children appended to it.
|
|
1322
|
+
*
|
|
1323
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1324
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1325
|
+
*
|
|
1326
|
+
* By default, it uses the body of the top-level document object,
|
|
1327
|
+
* so it's simply `document.body` most of the time.
|
|
1328
|
+
*/
|
|
1329
|
+
container: r.oneOfType([Ze, r.func]),
|
|
1330
|
+
/**
|
|
1331
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1332
|
+
* @default false
|
|
1333
|
+
*/
|
|
1334
|
+
disablePortal: r.bool,
|
|
1335
|
+
/**
|
|
1336
|
+
* Always keep the children in the DOM.
|
|
1337
|
+
* This prop can be useful in SEO situation or
|
|
1338
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1339
|
+
* @default false
|
|
1340
|
+
*/
|
|
1341
|
+
keepMounted: r.bool,
|
|
1342
|
+
/**
|
|
1343
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1344
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1345
|
+
*
|
|
1346
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1347
|
+
* compute the position of the popper.
|
|
1348
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1349
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1350
|
+
*/
|
|
1351
|
+
modifiers: r.arrayOf(r.shape({
|
|
1352
|
+
data: r.object,
|
|
1353
|
+
effect: r.func,
|
|
1354
|
+
enabled: r.bool,
|
|
1355
|
+
fn: r.func,
|
|
1356
|
+
name: r.any,
|
|
1357
|
+
options: r.object,
|
|
1358
|
+
phase: r.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1359
|
+
requires: r.arrayOf(r.string),
|
|
1360
|
+
requiresIfExists: r.arrayOf(r.string)
|
|
1361
|
+
})),
|
|
1362
|
+
/**
|
|
1363
|
+
* If `true`, the component is shown.
|
|
1364
|
+
*/
|
|
1365
|
+
open: r.bool.isRequired,
|
|
1366
|
+
/**
|
|
1367
|
+
* Popper placement.
|
|
1368
|
+
* @default 'bottom'
|
|
1369
|
+
*/
|
|
1370
|
+
placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1371
|
+
/**
|
|
1372
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1373
|
+
* @default {}
|
|
1374
|
+
*/
|
|
1375
|
+
popperOptions: r.shape({
|
|
1376
|
+
modifiers: r.array,
|
|
1377
|
+
onFirstUpdate: r.func,
|
|
1378
|
+
placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1379
|
+
strategy: r.oneOf(["absolute", "fixed"])
|
|
1380
|
+
}),
|
|
1381
|
+
/**
|
|
1382
|
+
* A ref that points to the used popper instance.
|
|
1383
|
+
*/
|
|
1384
|
+
popperRef: Gt,
|
|
1385
|
+
/**
|
|
1386
|
+
* The props used for each slot inside the Popper.
|
|
1387
|
+
* @default {}
|
|
1388
|
+
*/
|
|
1389
|
+
slotProps: r.shape({
|
|
1390
|
+
root: r.oneOfType([r.func, r.object])
|
|
1391
|
+
}),
|
|
1392
|
+
/**
|
|
1393
|
+
* The components used for each slot inside the Popper.
|
|
1394
|
+
* Either a string to use a HTML element or a component.
|
|
1395
|
+
* @default {}
|
|
1396
|
+
*/
|
|
1397
|
+
slots: r.shape({
|
|
1398
|
+
root: r.elementType
|
|
1399
|
+
}),
|
|
1400
|
+
/**
|
|
1401
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1402
|
+
*/
|
|
1403
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
1404
|
+
/**
|
|
1405
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1406
|
+
* @default false
|
|
1407
|
+
*/
|
|
1408
|
+
transition: r.bool
|
|
1409
|
+
});
|
|
1410
|
+
function kr(t) {
|
|
1411
|
+
return qt("MuiTooltip", t);
|
|
1412
|
+
}
|
|
1413
|
+
const S = Ht("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
|
|
1414
|
+
function Br(t) {
|
|
1415
|
+
return Math.round(t * 1e5) / 1e5;
|
|
1416
|
+
}
|
|
1417
|
+
const Lr = (t) => {
|
|
1418
|
+
const {
|
|
1419
|
+
classes: e,
|
|
1420
|
+
disableInteractive: o,
|
|
1421
|
+
arrow: n,
|
|
1422
|
+
touch: a,
|
|
1423
|
+
placement: p
|
|
1424
|
+
} = t, c = {
|
|
1425
|
+
popper: ["popper", !o && "popperInteractive", n && "popperArrow"],
|
|
1426
|
+
tooltip: ["tooltip", n && "tooltipArrow", a && "touch", `tooltipPlacement${zt(p.split("-")[0])}`],
|
|
1427
|
+
arrow: ["arrow"]
|
|
1428
|
+
};
|
|
1429
|
+
return Ut(c, kr, e);
|
|
1430
|
+
}, Wr = Ie(gt, {
|
|
1431
|
+
name: "MuiTooltip",
|
|
1432
|
+
slot: "Popper",
|
|
1433
|
+
overridesResolver: (t, e) => {
|
|
1434
|
+
const {
|
|
1435
|
+
ownerState: o
|
|
1436
|
+
} = t;
|
|
1437
|
+
return [e.popper, !o.disableInteractive && e.popperInteractive, o.arrow && e.popperArrow, !o.open && e.popperClose];
|
|
1438
|
+
}
|
|
1439
|
+
})(lt(({
|
|
1440
|
+
theme: t
|
|
1441
|
+
}) => ({
|
|
1442
|
+
zIndex: (t.vars || t).zIndex.tooltip,
|
|
1443
|
+
pointerEvents: "none",
|
|
1444
|
+
variants: [{
|
|
1445
|
+
props: ({
|
|
1446
|
+
ownerState: e
|
|
1447
|
+
}) => !e.disableInteractive,
|
|
1448
|
+
style: {
|
|
1449
|
+
pointerEvents: "auto"
|
|
1450
|
+
}
|
|
1451
|
+
}, {
|
|
1452
|
+
props: ({
|
|
1453
|
+
open: e
|
|
1454
|
+
}) => !e,
|
|
1455
|
+
style: {
|
|
1456
|
+
pointerEvents: "none"
|
|
1457
|
+
}
|
|
1458
|
+
}, {
|
|
1459
|
+
props: ({
|
|
1460
|
+
ownerState: e
|
|
1461
|
+
}) => e.arrow,
|
|
1462
|
+
style: {
|
|
1463
|
+
[`&[data-popper-placement*="bottom"] .${S.arrow}`]: {
|
|
1464
|
+
top: 0,
|
|
1465
|
+
marginTop: "-0.71em",
|
|
1466
|
+
"&::before": {
|
|
1467
|
+
transformOrigin: "0 100%"
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
[`&[data-popper-placement*="top"] .${S.arrow}`]: {
|
|
1471
|
+
bottom: 0,
|
|
1472
|
+
marginBottom: "-0.71em",
|
|
1473
|
+
"&::before": {
|
|
1474
|
+
transformOrigin: "100% 0"
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
[`&[data-popper-placement*="right"] .${S.arrow}`]: {
|
|
1478
|
+
height: "1em",
|
|
1479
|
+
width: "0.71em",
|
|
1480
|
+
"&::before": {
|
|
1481
|
+
transformOrigin: "100% 100%"
|
|
1482
|
+
}
|
|
1483
|
+
},
|
|
1484
|
+
[`&[data-popper-placement*="left"] .${S.arrow}`]: {
|
|
1485
|
+
height: "1em",
|
|
1486
|
+
width: "0.71em",
|
|
1487
|
+
"&::before": {
|
|
1488
|
+
transformOrigin: "0 0"
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
}, {
|
|
1493
|
+
props: ({
|
|
1494
|
+
ownerState: e
|
|
1495
|
+
}) => e.arrow && !e.isRtl,
|
|
1496
|
+
style: {
|
|
1497
|
+
[`&[data-popper-placement*="right"] .${S.arrow}`]: {
|
|
1498
|
+
left: 0,
|
|
1499
|
+
marginLeft: "-0.71em"
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}, {
|
|
1503
|
+
props: ({
|
|
1504
|
+
ownerState: e
|
|
1505
|
+
}) => e.arrow && !!e.isRtl,
|
|
1506
|
+
style: {
|
|
1507
|
+
[`&[data-popper-placement*="right"] .${S.arrow}`]: {
|
|
1508
|
+
right: 0,
|
|
1509
|
+
marginRight: "-0.71em"
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}, {
|
|
1513
|
+
props: ({
|
|
1514
|
+
ownerState: e
|
|
1515
|
+
}) => e.arrow && !e.isRtl,
|
|
1516
|
+
style: {
|
|
1517
|
+
[`&[data-popper-placement*="left"] .${S.arrow}`]: {
|
|
1518
|
+
right: 0,
|
|
1519
|
+
marginRight: "-0.71em"
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
}, {
|
|
1523
|
+
props: ({
|
|
1524
|
+
ownerState: e
|
|
1525
|
+
}) => e.arrow && !!e.isRtl,
|
|
1526
|
+
style: {
|
|
1527
|
+
[`&[data-popper-placement*="left"] .${S.arrow}`]: {
|
|
1528
|
+
left: 0,
|
|
1529
|
+
marginLeft: "-0.71em"
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}]
|
|
1533
|
+
}))), Ir = Ie("div", {
|
|
1534
|
+
name: "MuiTooltip",
|
|
1535
|
+
slot: "Tooltip",
|
|
1536
|
+
overridesResolver: (t, e) => {
|
|
1537
|
+
const {
|
|
1538
|
+
ownerState: o
|
|
1539
|
+
} = t;
|
|
1540
|
+
return [e.tooltip, o.touch && e.touch, o.arrow && e.tooltipArrow, e[`tooltipPlacement${zt(o.placement.split("-")[0])}`]];
|
|
1541
|
+
}
|
|
1542
|
+
})(lt(({
|
|
1543
|
+
theme: t
|
|
1544
|
+
}) => ({
|
|
1545
|
+
backgroundColor: t.vars ? t.vars.palette.Tooltip.bg : Yt(t.palette.grey[700], 0.92),
|
|
1546
|
+
borderRadius: (t.vars || t).shape.borderRadius,
|
|
1547
|
+
color: (t.vars || t).palette.common.white,
|
|
1548
|
+
fontFamily: t.typography.fontFamily,
|
|
1549
|
+
padding: "4px 8px",
|
|
1550
|
+
fontSize: t.typography.pxToRem(11),
|
|
1551
|
+
maxWidth: 300,
|
|
1552
|
+
margin: 2,
|
|
1553
|
+
wordWrap: "break-word",
|
|
1554
|
+
fontWeight: t.typography.fontWeightMedium,
|
|
1555
|
+
[`.${S.popper}[data-popper-placement*="left"] &`]: {
|
|
1556
|
+
transformOrigin: "right center"
|
|
1557
|
+
},
|
|
1558
|
+
[`.${S.popper}[data-popper-placement*="right"] &`]: {
|
|
1559
|
+
transformOrigin: "left center"
|
|
1560
|
+
},
|
|
1561
|
+
[`.${S.popper}[data-popper-placement*="top"] &`]: {
|
|
1562
|
+
transformOrigin: "center bottom",
|
|
1563
|
+
marginBottom: "14px"
|
|
1564
|
+
},
|
|
1565
|
+
[`.${S.popper}[data-popper-placement*="bottom"] &`]: {
|
|
1566
|
+
transformOrigin: "center top",
|
|
1567
|
+
marginTop: "14px"
|
|
1568
|
+
},
|
|
1569
|
+
variants: [{
|
|
1570
|
+
props: ({
|
|
1571
|
+
ownerState: e
|
|
1572
|
+
}) => e.arrow,
|
|
1573
|
+
style: {
|
|
1574
|
+
position: "relative",
|
|
1575
|
+
margin: 0
|
|
1576
|
+
}
|
|
1577
|
+
}, {
|
|
1578
|
+
props: ({
|
|
1579
|
+
ownerState: e
|
|
1580
|
+
}) => e.touch,
|
|
1581
|
+
style: {
|
|
1582
|
+
padding: "8px 16px",
|
|
1583
|
+
fontSize: t.typography.pxToRem(14),
|
|
1584
|
+
lineHeight: `${Br(16 / 14)}em`,
|
|
1585
|
+
fontWeight: t.typography.fontWeightRegular
|
|
1586
|
+
}
|
|
1587
|
+
}, {
|
|
1588
|
+
props: ({
|
|
1589
|
+
ownerState: e
|
|
1590
|
+
}) => !e.isRtl,
|
|
1591
|
+
style: {
|
|
1592
|
+
[`.${S.popper}[data-popper-placement*="left"] &`]: {
|
|
1593
|
+
marginRight: "14px"
|
|
1594
|
+
},
|
|
1595
|
+
[`.${S.popper}[data-popper-placement*="right"] &`]: {
|
|
1596
|
+
marginLeft: "14px"
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
}, {
|
|
1600
|
+
props: ({
|
|
1601
|
+
ownerState: e
|
|
1602
|
+
}) => !e.isRtl && e.touch,
|
|
1603
|
+
style: {
|
|
1604
|
+
[`.${S.popper}[data-popper-placement*="left"] &`]: {
|
|
1605
|
+
marginRight: "24px"
|
|
1606
|
+
},
|
|
1607
|
+
[`.${S.popper}[data-popper-placement*="right"] &`]: {
|
|
1608
|
+
marginLeft: "24px"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}, {
|
|
1612
|
+
props: ({
|
|
1613
|
+
ownerState: e
|
|
1614
|
+
}) => !!e.isRtl,
|
|
1615
|
+
style: {
|
|
1616
|
+
[`.${S.popper}[data-popper-placement*="left"] &`]: {
|
|
1617
|
+
marginLeft: "14px"
|
|
1618
|
+
},
|
|
1619
|
+
[`.${S.popper}[data-popper-placement*="right"] &`]: {
|
|
1620
|
+
marginRight: "14px"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}, {
|
|
1624
|
+
props: ({
|
|
1625
|
+
ownerState: e
|
|
1626
|
+
}) => !!e.isRtl && e.touch,
|
|
1627
|
+
style: {
|
|
1628
|
+
[`.${S.popper}[data-popper-placement*="left"] &`]: {
|
|
1629
|
+
marginLeft: "24px"
|
|
1630
|
+
},
|
|
1631
|
+
[`.${S.popper}[data-popper-placement*="right"] &`]: {
|
|
1632
|
+
marginRight: "24px"
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}, {
|
|
1636
|
+
props: ({
|
|
1637
|
+
ownerState: e
|
|
1638
|
+
}) => e.touch,
|
|
1639
|
+
style: {
|
|
1640
|
+
[`.${S.popper}[data-popper-placement*="top"] &`]: {
|
|
1641
|
+
marginBottom: "24px"
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
}, {
|
|
1645
|
+
props: ({
|
|
1646
|
+
ownerState: e
|
|
1647
|
+
}) => e.touch,
|
|
1648
|
+
style: {
|
|
1649
|
+
[`.${S.popper}[data-popper-placement*="bottom"] &`]: {
|
|
1650
|
+
marginTop: "24px"
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
}]
|
|
1654
|
+
}))), Vr = Ie("span", {
|
|
1655
|
+
name: "MuiTooltip",
|
|
1656
|
+
slot: "Arrow",
|
|
1657
|
+
overridesResolver: (t, e) => e.arrow
|
|
1658
|
+
})(lt(({
|
|
1659
|
+
theme: t
|
|
1660
|
+
}) => ({
|
|
1661
|
+
overflow: "hidden",
|
|
1662
|
+
position: "absolute",
|
|
1663
|
+
width: "1em",
|
|
1664
|
+
height: "0.71em",
|
|
1665
|
+
boxSizing: "border-box",
|
|
1666
|
+
color: t.vars ? t.vars.palette.Tooltip.bg : Yt(t.palette.grey[700], 0.9),
|
|
1667
|
+
"&::before": {
|
|
1668
|
+
content: '""',
|
|
1669
|
+
margin: "auto",
|
|
1670
|
+
display: "block",
|
|
1671
|
+
width: "100%",
|
|
1672
|
+
height: "100%",
|
|
1673
|
+
backgroundColor: "currentColor",
|
|
1674
|
+
transform: "rotate(45deg)"
|
|
1675
|
+
}
|
|
1676
|
+
})));
|
|
1677
|
+
let Ke = !1;
|
|
1678
|
+
const Vt = new bo();
|
|
1679
|
+
let Ne = {
|
|
1680
|
+
x: 0,
|
|
1681
|
+
y: 0
|
|
1682
|
+
};
|
|
1683
|
+
function Je(t, e) {
|
|
1684
|
+
return (o, ...n) => {
|
|
1685
|
+
e && e(o, ...n), t(o, ...n);
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
const ao = /* @__PURE__ */ C.forwardRef(function(e, o) {
|
|
1689
|
+
var xt, Tt, Pt;
|
|
1690
|
+
const n = Ft({
|
|
1691
|
+
props: e,
|
|
1692
|
+
name: "MuiTooltip"
|
|
1693
|
+
}), {
|
|
1694
|
+
arrow: a = !1,
|
|
1695
|
+
children: p,
|
|
1696
|
+
classes: c,
|
|
1697
|
+
components: s = {},
|
|
1698
|
+
componentsProps: i = {},
|
|
1699
|
+
describeChild: f = !1,
|
|
1700
|
+
disableFocusListener: l = !1,
|
|
1701
|
+
disableHoverListener: g = !1,
|
|
1702
|
+
disableInteractive: x = !1,
|
|
1703
|
+
disableTouchListener: u = !1,
|
|
1704
|
+
enterDelay: T = 100,
|
|
1705
|
+
enterNextDelay: m = 0,
|
|
1706
|
+
enterTouchDelay: v = 700,
|
|
1707
|
+
followCursor: w = !1,
|
|
1708
|
+
id: E,
|
|
1709
|
+
leaveDelay: O = 0,
|
|
1710
|
+
leaveTouchDelay: d = 1500,
|
|
1711
|
+
onClose: y,
|
|
1712
|
+
onOpen: b,
|
|
1713
|
+
open: R,
|
|
1714
|
+
placement: D = "bottom",
|
|
1715
|
+
PopperComponent: A,
|
|
1716
|
+
PopperProps: P = {},
|
|
1717
|
+
slotProps: M = {},
|
|
1718
|
+
slots: k = {},
|
|
1719
|
+
title: j,
|
|
1720
|
+
TransitionComponent: X = Mt,
|
|
1721
|
+
TransitionProps: G,
|
|
1722
|
+
...N
|
|
1723
|
+
} = n, $ = /* @__PURE__ */ C.isValidElement(p) ? p : /* @__PURE__ */ re("span", {
|
|
1724
|
+
children: p
|
|
1725
|
+
}), L = uo(), te = Xt(), [B, de] = C.useState(), [oe, me] = C.useState(null), K = C.useRef(!1), H = x || w, ae = Ye(), ie = Ye(), U = Ye(), ve = Ye(), [rt, he] = Oo({
|
|
1726
|
+
controlled: R,
|
|
1727
|
+
default: !1,
|
|
1728
|
+
name: "Tooltip",
|
|
1729
|
+
state: "open"
|
|
1730
|
+
});
|
|
1731
|
+
let J = rt;
|
|
1732
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1733
|
+
const {
|
|
1734
|
+
current: h
|
|
1735
|
+
} = C.useRef(R !== void 0);
|
|
1736
|
+
C.useEffect(() => {
|
|
1737
|
+
B && B.disabled && !h && j !== "" && B.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
|
|
1738
|
+
`));
|
|
1739
|
+
}, [j, B, h]);
|
|
1740
|
+
}
|
|
1741
|
+
const ge = go(E), pe = C.useRef(), ye = Ct(() => {
|
|
1742
|
+
pe.current !== void 0 && (document.body.style.WebkitUserSelect = pe.current, pe.current = void 0), ve.clear();
|
|
1743
|
+
});
|
|
1744
|
+
C.useEffect(() => ye, [ye]);
|
|
1745
|
+
const Ee = (h) => {
|
|
1746
|
+
Vt.clear(), Ke = !0, he(!0), b && !J && b(h);
|
|
1747
|
+
}, le = Ct(
|
|
1748
|
+
/**
|
|
1749
|
+
* @param {React.SyntheticEvent | Event} event
|
|
1750
|
+
*/
|
|
1751
|
+
(h) => {
|
|
1752
|
+
Vt.start(800 + O, () => {
|
|
1753
|
+
Ke = !1;
|
|
1754
|
+
}), he(!1), y && J && y(h), ae.start(L.transitions.duration.shortest, () => {
|
|
1755
|
+
K.current = !1;
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
), be = (h) => {
|
|
1759
|
+
K.current && h.type !== "touchstart" || (B && B.removeAttribute("title"), ie.clear(), U.clear(), T || Ke && m ? ie.start(Ke ? m : T, () => {
|
|
1760
|
+
Ee(h);
|
|
1761
|
+
}) : Ee(h));
|
|
1762
|
+
}, Re = (h) => {
|
|
1763
|
+
ie.clear(), U.start(O, () => {
|
|
1764
|
+
le(h);
|
|
1765
|
+
});
|
|
1766
|
+
}, [, Z] = C.useState(!1), ce = (h) => {
|
|
1767
|
+
jt(h.target) || (Z(!1), Re(h));
|
|
1768
|
+
}, Ae = (h) => {
|
|
1769
|
+
B || de(h.currentTarget), jt(h.target) && (Z(!0), be(h));
|
|
1770
|
+
}, Ce = (h) => {
|
|
1771
|
+
K.current = !0;
|
|
1772
|
+
const Q = $.props;
|
|
1773
|
+
Q.onTouchStart && Q.onTouchStart(h);
|
|
1774
|
+
}, Me = (h) => {
|
|
1775
|
+
Ce(h), U.clear(), ae.clear(), ye(), pe.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ve.start(v, () => {
|
|
1776
|
+
document.body.style.WebkitUserSelect = pe.current, be(h);
|
|
1777
|
+
});
|
|
1778
|
+
}, Ue = (h) => {
|
|
1779
|
+
$.props.onTouchEnd && $.props.onTouchEnd(h), ye(), U.start(d, () => {
|
|
1780
|
+
le(h);
|
|
1781
|
+
});
|
|
1782
|
+
};
|
|
1783
|
+
C.useEffect(() => {
|
|
1784
|
+
if (!J)
|
|
1785
|
+
return;
|
|
1786
|
+
function h(Q) {
|
|
1787
|
+
Q.key === "Escape" && le(Q);
|
|
1788
|
+
}
|
|
1789
|
+
return document.addEventListener("keydown", h), () => {
|
|
1790
|
+
document.removeEventListener("keydown", h);
|
|
1791
|
+
};
|
|
1792
|
+
}, [le, J]);
|
|
1793
|
+
const Fe = it(mo($), de, o);
|
|
1794
|
+
!j && j !== 0 && (J = !1);
|
|
1795
|
+
const we = C.useRef(), qe = (h) => {
|
|
1796
|
+
const Q = $.props;
|
|
1797
|
+
Q.onMouseMove && Q.onMouseMove(h), Ne = {
|
|
1798
|
+
x: h.clientX,
|
|
1799
|
+
y: h.clientY
|
|
1800
|
+
}, we.current && we.current.update();
|
|
1801
|
+
}, je = {}, nt = typeof j == "string";
|
|
1802
|
+
f ? (je.title = !J && nt && !g ? j : null, je["aria-describedby"] = J ? ge : null) : (je["aria-label"] = nt ? j : null, je["aria-labelledby"] = J && !nt ? ge : null);
|
|
1803
|
+
const F = {
|
|
1804
|
+
...je,
|
|
1805
|
+
...N,
|
|
1806
|
+
...$.props,
|
|
1807
|
+
className: ze(N.className, $.props.className),
|
|
1808
|
+
onTouchStart: Ce,
|
|
1809
|
+
ref: Fe,
|
|
1810
|
+
...w ? {
|
|
1811
|
+
onMouseMove: qe
|
|
1812
|
+
} : {}
|
|
1813
|
+
};
|
|
1814
|
+
process.env.NODE_ENV !== "production" && (F["data-mui-internal-clone-element"] = !0, C.useEffect(() => {
|
|
1815
|
+
B && !B.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
1816
|
+
`));
|
|
1817
|
+
}, [B]));
|
|
1818
|
+
const $e = {};
|
|
1819
|
+
u || (F.onTouchStart = Me, F.onTouchEnd = Ue), g || (F.onMouseOver = Je(be, F.onMouseOver), F.onMouseLeave = Je(Re, F.onMouseLeave), H || ($e.onMouseOver = be, $e.onMouseLeave = Re)), l || (F.onFocus = Je(Ae, F.onFocus), F.onBlur = Je(ce, F.onBlur), H || ($e.onFocus = Ae, $e.onBlur = ce)), process.env.NODE_ENV !== "production" && $.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${$.props.title}\` or the Tooltip component.`].join(`
|
|
1820
|
+
`));
|
|
1821
|
+
const io = C.useMemo(() => {
|
|
1822
|
+
var Q;
|
|
1823
|
+
let h = [{
|
|
1824
|
+
name: "arrow",
|
|
1825
|
+
enabled: !!oe,
|
|
1826
|
+
options: {
|
|
1827
|
+
element: oe,
|
|
1828
|
+
padding: 4
|
|
1829
|
+
}
|
|
1830
|
+
}];
|
|
1831
|
+
return (Q = P.popperOptions) != null && Q.modifiers && (h = h.concat(P.popperOptions.modifiers)), {
|
|
1832
|
+
...P.popperOptions,
|
|
1833
|
+
modifiers: h
|
|
1834
|
+
};
|
|
1835
|
+
}, [oe, P]), De = {
|
|
1836
|
+
...n,
|
|
1837
|
+
isRtl: te,
|
|
1838
|
+
arrow: a,
|
|
1839
|
+
disableInteractive: H,
|
|
1840
|
+
placement: D,
|
|
1841
|
+
PopperComponentProp: A,
|
|
1842
|
+
touch: K.current
|
|
1843
|
+
}, at = Lr(De), yt = k.popper ?? s.Popper ?? Wr, bt = k.transition ?? s.Transition ?? X ?? Mt, wt = k.tooltip ?? s.Tooltip ?? Ir, Ot = k.arrow ?? s.Arrow ?? Vr, so = Xe(yt, {
|
|
1844
|
+
...P,
|
|
1845
|
+
...M.popper ?? i.popper,
|
|
1846
|
+
className: ze(at.popper, P == null ? void 0 : P.className, (xt = M.popper ?? i.popper) == null ? void 0 : xt.className)
|
|
1847
|
+
}, De), po = Xe(bt, {
|
|
1848
|
+
...G,
|
|
1849
|
+
...M.transition ?? i.transition
|
|
1850
|
+
}, De), lo = Xe(wt, {
|
|
1851
|
+
...M.tooltip ?? i.tooltip,
|
|
1852
|
+
className: ze(at.tooltip, (Tt = M.tooltip ?? i.tooltip) == null ? void 0 : Tt.className)
|
|
1853
|
+
}, De), co = Xe(Ot, {
|
|
1854
|
+
...M.arrow ?? i.arrow,
|
|
1855
|
+
className: ze(at.arrow, (Pt = M.arrow ?? i.arrow) == null ? void 0 : Pt.className)
|
|
1856
|
+
}, De);
|
|
1857
|
+
return /* @__PURE__ */ Et(C.Fragment, {
|
|
1858
|
+
children: [/* @__PURE__ */ C.cloneElement($, F), /* @__PURE__ */ re(yt, {
|
|
1859
|
+
as: A ?? gt,
|
|
1860
|
+
placement: D,
|
|
1861
|
+
anchorEl: w ? {
|
|
1862
|
+
getBoundingClientRect: () => ({
|
|
1863
|
+
top: Ne.y,
|
|
1864
|
+
left: Ne.x,
|
|
1865
|
+
right: Ne.x,
|
|
1866
|
+
bottom: Ne.y,
|
|
1867
|
+
width: 0,
|
|
1868
|
+
height: 0
|
|
1869
|
+
})
|
|
1870
|
+
} : B,
|
|
1871
|
+
popperRef: we,
|
|
1872
|
+
open: B ? J : !1,
|
|
1873
|
+
id: ge,
|
|
1874
|
+
transition: !0,
|
|
1875
|
+
...$e,
|
|
1876
|
+
...so,
|
|
1877
|
+
popperOptions: io,
|
|
1878
|
+
children: ({
|
|
1879
|
+
TransitionProps: h
|
|
1880
|
+
}) => /* @__PURE__ */ re(bt, {
|
|
1881
|
+
timeout: L.transitions.duration.shorter,
|
|
1882
|
+
...h,
|
|
1883
|
+
...po,
|
|
1884
|
+
children: /* @__PURE__ */ Et(wt, {
|
|
1885
|
+
...lo,
|
|
1886
|
+
children: [j, a ? /* @__PURE__ */ re(Ot, {
|
|
1887
|
+
...co,
|
|
1888
|
+
ref: me
|
|
1889
|
+
}) : null]
|
|
1890
|
+
})
|
|
1891
|
+
})
|
|
1892
|
+
})]
|
|
1893
|
+
});
|
|
1894
|
+
});
|
|
1895
|
+
process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
1896
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1897
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1898
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1899
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1900
|
+
/**
|
|
1901
|
+
* If `true`, adds an arrow to the tooltip.
|
|
1902
|
+
* @default false
|
|
1903
|
+
*/
|
|
1904
|
+
arrow: r.bool,
|
|
1905
|
+
/**
|
|
1906
|
+
* Tooltip reference element.
|
|
1907
|
+
*/
|
|
1908
|
+
children: vo.isRequired,
|
|
1909
|
+
/**
|
|
1910
|
+
* Override or extend the styles applied to the component.
|
|
1911
|
+
*/
|
|
1912
|
+
classes: r.object,
|
|
1913
|
+
/**
|
|
1914
|
+
* @ignore
|
|
1915
|
+
*/
|
|
1916
|
+
className: r.string,
|
|
1917
|
+
/**
|
|
1918
|
+
* The components used for each slot inside.
|
|
1919
|
+
*
|
|
1920
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1921
|
+
*
|
|
1922
|
+
* @default {}
|
|
1923
|
+
*/
|
|
1924
|
+
components: r.shape({
|
|
1925
|
+
Arrow: r.elementType,
|
|
1926
|
+
Popper: r.elementType,
|
|
1927
|
+
Tooltip: r.elementType,
|
|
1928
|
+
Transition: r.elementType
|
|
1929
|
+
}),
|
|
1930
|
+
/**
|
|
1931
|
+
* The extra props for the slot components.
|
|
1932
|
+
* You can override the existing props or add new ones.
|
|
1933
|
+
*
|
|
1934
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1935
|
+
*
|
|
1936
|
+
* @default {}
|
|
1937
|
+
*/
|
|
1938
|
+
componentsProps: r.shape({
|
|
1939
|
+
arrow: r.object,
|
|
1940
|
+
popper: r.object,
|
|
1941
|
+
tooltip: r.object,
|
|
1942
|
+
transition: r.object
|
|
1943
|
+
}),
|
|
1944
|
+
/**
|
|
1945
|
+
* Set to `true` if the `title` acts as an accessible description.
|
|
1946
|
+
* By default the `title` acts as an accessible label for the child.
|
|
1947
|
+
* @default false
|
|
1948
|
+
*/
|
|
1949
|
+
describeChild: r.bool,
|
|
1950
|
+
/**
|
|
1951
|
+
* Do not respond to focus-visible events.
|
|
1952
|
+
* @default false
|
|
1953
|
+
*/
|
|
1954
|
+
disableFocusListener: r.bool,
|
|
1955
|
+
/**
|
|
1956
|
+
* Do not respond to hover events.
|
|
1957
|
+
* @default false
|
|
1958
|
+
*/
|
|
1959
|
+
disableHoverListener: r.bool,
|
|
1960
|
+
/**
|
|
1961
|
+
* Makes a tooltip not interactive, i.e. it will close when the user
|
|
1962
|
+
* hovers over the tooltip before the `leaveDelay` is expired.
|
|
1963
|
+
* @default false
|
|
1964
|
+
*/
|
|
1965
|
+
disableInteractive: r.bool,
|
|
1966
|
+
/**
|
|
1967
|
+
* Do not respond to long press touch events.
|
|
1968
|
+
* @default false
|
|
1969
|
+
*/
|
|
1970
|
+
disableTouchListener: r.bool,
|
|
1971
|
+
/**
|
|
1972
|
+
* The number of milliseconds to wait before showing the tooltip.
|
|
1973
|
+
* This prop won't impact the enter touch delay (`enterTouchDelay`).
|
|
1974
|
+
* @default 100
|
|
1975
|
+
*/
|
|
1976
|
+
enterDelay: r.number,
|
|
1977
|
+
/**
|
|
1978
|
+
* The number of milliseconds to wait before showing the tooltip when one was already recently opened.
|
|
1979
|
+
* @default 0
|
|
1980
|
+
*/
|
|
1981
|
+
enterNextDelay: r.number,
|
|
1982
|
+
/**
|
|
1983
|
+
* The number of milliseconds a user must touch the element before showing the tooltip.
|
|
1984
|
+
* @default 700
|
|
1985
|
+
*/
|
|
1986
|
+
enterTouchDelay: r.number,
|
|
1987
|
+
/**
|
|
1988
|
+
* If `true`, the tooltip follow the cursor over the wrapped element.
|
|
1989
|
+
* @default false
|
|
1990
|
+
*/
|
|
1991
|
+
followCursor: r.bool,
|
|
1992
|
+
/**
|
|
1993
|
+
* This prop is used to help implement the accessibility logic.
|
|
1994
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
1995
|
+
*/
|
|
1996
|
+
id: r.string,
|
|
1997
|
+
/**
|
|
1998
|
+
* The number of milliseconds to wait before hiding the tooltip.
|
|
1999
|
+
* This prop won't impact the leave touch delay (`leaveTouchDelay`).
|
|
2000
|
+
* @default 0
|
|
2001
|
+
*/
|
|
2002
|
+
leaveDelay: r.number,
|
|
2003
|
+
/**
|
|
2004
|
+
* The number of milliseconds after the user stops touching an element before hiding the tooltip.
|
|
2005
|
+
* @default 1500
|
|
2006
|
+
*/
|
|
2007
|
+
leaveTouchDelay: r.number,
|
|
2008
|
+
/**
|
|
2009
|
+
* Callback fired when the component requests to be closed.
|
|
2010
|
+
*
|
|
2011
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
2012
|
+
*/
|
|
2013
|
+
onClose: r.func,
|
|
2014
|
+
/**
|
|
2015
|
+
* Callback fired when the component requests to be open.
|
|
2016
|
+
*
|
|
2017
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
2018
|
+
*/
|
|
2019
|
+
onOpen: r.func,
|
|
2020
|
+
/**
|
|
2021
|
+
* If `true`, the component is shown.
|
|
2022
|
+
*/
|
|
2023
|
+
open: r.bool,
|
|
2024
|
+
/**
|
|
2025
|
+
* Tooltip placement.
|
|
2026
|
+
* @default 'bottom'
|
|
2027
|
+
*/
|
|
2028
|
+
placement: r.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
2029
|
+
/**
|
|
2030
|
+
* The component used for the popper.
|
|
2031
|
+
* @default Popper
|
|
2032
|
+
*/
|
|
2033
|
+
PopperComponent: r.elementType,
|
|
2034
|
+
/**
|
|
2035
|
+
* Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.
|
|
2036
|
+
* @default {}
|
|
2037
|
+
*/
|
|
2038
|
+
PopperProps: r.object,
|
|
2039
|
+
/**
|
|
2040
|
+
* The extra props for the slot components.
|
|
2041
|
+
* You can override the existing props or add new ones.
|
|
2042
|
+
*
|
|
2043
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
2044
|
+
*
|
|
2045
|
+
* @default {}
|
|
2046
|
+
*/
|
|
2047
|
+
slotProps: r.shape({
|
|
2048
|
+
arrow: r.object,
|
|
2049
|
+
popper: r.object,
|
|
2050
|
+
tooltip: r.object,
|
|
2051
|
+
transition: r.object
|
|
2052
|
+
}),
|
|
2053
|
+
/**
|
|
2054
|
+
* The components used for each slot inside.
|
|
2055
|
+
*
|
|
2056
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
2057
|
+
*
|
|
2058
|
+
* @default {}
|
|
2059
|
+
*/
|
|
2060
|
+
slots: r.shape({
|
|
2061
|
+
arrow: r.elementType,
|
|
2062
|
+
popper: r.elementType,
|
|
2063
|
+
tooltip: r.elementType,
|
|
2064
|
+
transition: r.elementType
|
|
2065
|
+
}),
|
|
2066
|
+
/**
|
|
2067
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2068
|
+
*/
|
|
2069
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
2070
|
+
/**
|
|
2071
|
+
* Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
|
|
2072
|
+
*/
|
|
2073
|
+
title: r.node,
|
|
2074
|
+
/**
|
|
2075
|
+
* The component used for the transition.
|
|
2076
|
+
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
2077
|
+
* @default Grow
|
|
2078
|
+
*/
|
|
2079
|
+
TransitionComponent: r.elementType,
|
|
2080
|
+
/**
|
|
2081
|
+
* Props applied to the transition element.
|
|
2082
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
2083
|
+
*/
|
|
2084
|
+
TransitionProps: r.object
|
|
2085
|
+
});
|
|
2086
|
+
const tn = Ie(
|
|
2087
|
+
fo.forwardRef((t, e) => /* @__PURE__ */ re(
|
|
2088
|
+
ao,
|
|
2089
|
+
{
|
|
2090
|
+
enterTouchDelay: 0,
|
|
2091
|
+
...t,
|
|
2092
|
+
arrow: !0,
|
|
2093
|
+
ref: e,
|
|
2094
|
+
classes: { popper: t.className }
|
|
2095
|
+
}
|
|
2096
|
+
))
|
|
2097
|
+
)(({ theme: t }) => ({
|
|
2098
|
+
[`& .${S.arrow}`]: {
|
|
2099
|
+
color: t.palette.common.black
|
|
2100
|
+
},
|
|
2101
|
+
[`& .${S.tooltip}`]: {
|
|
2102
|
+
backgroundColor: t.palette.common.black
|
|
2103
|
+
}
|
|
2104
|
+
}));
|
|
2105
|
+
export {
|
|
2106
|
+
tn as default
|
|
2107
|
+
};
|