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