@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143
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/Backdrop-DqUdx8FP.cjs +1 -0
- package/dist/Backdrop-ZqzrnV2E.js +360 -0
- package/dist/Box-Be6jhcmK.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
- package/dist/Button-C6UXybBV.cjs +1 -0
- package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
- package/dist/ButtonBase-DzK1n18b.cjs +74 -0
- package/dist/Card-DO4cAmNC.js +74 -0
- package/dist/Card-DsmqVSx1.cjs +1 -0
- package/dist/Checkbox-Btg05OjV.cjs +1 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
- package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
- package/dist/DatePicker-BXTOQETi.cjs +14 -0
- package/dist/DatePicker-D9suyaUZ.js +10846 -0
- package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
- package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
- package/dist/Delete-CpADFuIX.cjs +1 -0
- package/dist/Delete-DWXEW4-c.js +8 -0
- package/dist/DialogContent-D_JmqJt6.js +603 -0
- package/dist/DialogContent-gRISmOoj.cjs +1 -0
- package/dist/DialogTitle-CID6RFNo.js +134 -0
- package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
- package/dist/Divider-BjxxEFnr.cjs +1 -0
- package/dist/Divider-HhF8ckeh.js +296 -0
- package/dist/FormControlLabel-0-cflTuo.js +262 -0
- package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
- package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
- package/dist/FormGroup-DIP4u-gv.js +95 -0
- package/dist/FormLabel-Ch103TK-.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
- package/dist/Grow-BgMSa0P2.js +193 -0
- package/dist/Grow-D7OAahbU.cjs +1 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
- package/dist/IconButton-DbWtCGLB.cjs +2 -0
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
- package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
- package/dist/InputBase-BuVAuMNp.cjs +3 -0
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
- package/dist/Link-AXhb0uJT.cjs +1 -0
- package/dist/Link-Bdupo_fW.js +267 -0
- package/dist/Menu-DR-xtxpt.js +966 -0
- package/dist/Menu-_chQG-Za.cjs +7 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
- package/dist/MenuItem-De6eStq9.cjs +1 -0
- package/dist/Modal-C4Jb6sd1.js +750 -0
- package/dist/Modal-GXSEk85U.cjs +2 -0
- package/dist/Paper-CH4BABUB.cjs +2 -0
- package/dist/Paper-nlWPEgQh.js +185 -0
- package/dist/Popper-CjTplNLW.cjs +4 -0
- package/dist/Popper-CkAj_qw_.js +1407 -0
- package/dist/Portal-BcFwfiTx.js +86 -0
- package/dist/Portal-BruYsISj.cjs +1 -0
- package/dist/Radio-B0v6nDvz.js +313 -0
- package/dist/Radio-BbZnB74m.cjs +1 -0
- package/dist/Select-BFGwwKap.cjs +3 -0
- package/dist/Select-D9fwtA9U.js +2604 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
- package/dist/Stack-DMNZvXss.cjs +1 -0
- package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
- package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
- package/dist/Tabs-DEvwJheI.cjs +4 -0
- package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
- package/dist/TextField-waKWSLD4.cjs +1 -0
- package/dist/Tooltip-CFyOA9CT.cjs +4 -0
- package/dist/Tooltip-tgkiC77d.js +721 -0
- package/dist/Typography-B6KFjCtE.cjs +1 -0
- package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/capitalize-DASFtB-F.cjs +1 -0
- package/dist/capitalize-NmHVRYy8.js +9 -0
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +28 -27
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -22
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.es.js +276 -262
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +140 -90
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
- package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CSD96RzX.cjs +1 -0
- package/dist/dividerClasses-DrJ5oIdP.js +9 -0
- package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
- package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
- package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
- package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
- package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
- package/dist/index-BGCIdIru.js +2152 -0
- package/dist/index-BoQHt8iN.cjs +1 -0
- package/dist/index-CRdsZkOC.cjs +17 -0
- package/dist/index-CmEzEdk2.cjs +5 -0
- package/dist/index-XYfXmNqA.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +276 -262
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
- package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/useEnhancedEffect-C9MKL5N4.cjs +1 -0
- package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useSlot-DsW0udy9.cjs +1 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
- package/dist/useSlotProps--FPRW1CI.cjs +1 -0
- package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
- package/dist/useTheme-B1YEBlI0.cjs +1 -0
- package/dist/useTheme-BXzyKigM.js +11 -0
- package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
- package/dist/useTheme-DFJNv-zn.cjs +1 -0
- package/dist/useThemeProps-BwyYDczI.cjs +1 -0
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
- package/dist/useTimeout-NIA-3R5R.cjs +1 -0
- package/dist/utils-70jLtOQP.js +391 -0
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-DlWHEABQ.cjs +1 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/Box-H49yQEt_.cjs +0 -1
- package/dist/Button-qc45QbX6.cjs +0 -1
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/Checkbox-CuYTY0gd.cjs +0 -1
- package/dist/CircularProgress-BPHINMQw.cjs +0 -28
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Stack-CEjx3KHM.cjs +0 -1
- package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/TextField-BVAkADOb.cjs +0 -1
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/Typography-5OodZ94T.cjs +0 -1
- package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
- package/dist/extendSxProp-D11-pC6h.cjs +0 -1
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/identifier-BQH88SE0.cjs +0 -59
- package/dist/index-CNv8ppur.cjs +0 -1
- package/dist/index-D7nFYLYq.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useSlot-42jgZftI.cjs +0 -1
- package/dist/useTheme-CtT7O-Wk.js +0 -11
- package/dist/useTheme-cVN-YQNB.cjs +0 -1
- package/dist/useTheme-tZYpFplW.cjs +0 -1
- package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
- package/dist/useTimeout-DWEGwfTA.cjs +0 -1
|
@@ -0,0 +1,1407 @@
|
|
|
1
|
+
import { a as xt, u as Pt } from "./useSlotProps-C7zjg7t9.js";
|
|
2
|
+
import { I as Et, H as Rt, P as i } from "./generateUtilityClasses--6MLb_cS.js";
|
|
3
|
+
import * as L from "react";
|
|
4
|
+
import { jsx as be } from "react/jsx-runtime";
|
|
5
|
+
import { o as ze } from "./ownerDocument-CUrv0DIK.js";
|
|
6
|
+
import { P as Tt, H as we } from "./Portal-BcFwfiTx.js";
|
|
7
|
+
import { c as At } from "./chainPropTypes-D9lkm76m.js";
|
|
8
|
+
import { r as at, u as Ge } from "./useEnhancedEffect-DlS7O_-p.js";
|
|
9
|
+
import { u as Je } from "./useForkRef-C_4o__cU.js";
|
|
10
|
+
import { c as jt, s as Dt, u as Mt } from "./DefaultPropsProvider-DUWovK-8.js";
|
|
11
|
+
var B = "top", N = "bottom", V = "right", $ = "left", Ce = "auto", le = [B, N, V, $], ee = "start", fe = "end", Ct = "clippingParents", it = "viewport", ie = "popper", Bt = "reference", Ke = /* @__PURE__ */ le.reduce(function(e, t) {
|
|
12
|
+
return e.concat([t + "-" + ee, t + "-" + fe]);
|
|
13
|
+
}, []), st = /* @__PURE__ */ [].concat(le, [Ce]).reduce(function(e, t) {
|
|
14
|
+
return e.concat([t, t + "-" + ee, t + "-" + fe]);
|
|
15
|
+
}, []), $t = "beforeRead", kt = "read", St = "afterRead", Wt = "beforeMain", Lt = "main", Ht = "afterMain", Nt = "beforeWrite", Vt = "write", Ut = "afterWrite", qt = [$t, kt, St, Wt, Lt, Ht, Nt, Vt, Ut];
|
|
16
|
+
function q(e) {
|
|
17
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
18
|
+
}
|
|
19
|
+
function W(e) {
|
|
20
|
+
if (e == null)
|
|
21
|
+
return window;
|
|
22
|
+
if (e.toString() !== "[object Window]") {
|
|
23
|
+
var t = e.ownerDocument;
|
|
24
|
+
return t && t.defaultView || window;
|
|
25
|
+
}
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
function Z(e) {
|
|
29
|
+
var t = W(e).Element;
|
|
30
|
+
return e instanceof t || e instanceof Element;
|
|
31
|
+
}
|
|
32
|
+
function H(e) {
|
|
33
|
+
var t = W(e).HTMLElement;
|
|
34
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
35
|
+
}
|
|
36
|
+
function Be(e) {
|
|
37
|
+
if (typeof ShadowRoot > "u")
|
|
38
|
+
return !1;
|
|
39
|
+
var t = W(e).ShadowRoot;
|
|
40
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
41
|
+
}
|
|
42
|
+
function It(e) {
|
|
43
|
+
var t = e.state;
|
|
44
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
45
|
+
var o = t.styles[r] || {}, n = t.attributes[r] || {}, s = t.elements[r];
|
|
46
|
+
!H(s) || !q(s) || (Object.assign(s.style, o), Object.keys(n).forEach(function(c) {
|
|
47
|
+
var a = n[c];
|
|
48
|
+
a === !1 ? s.removeAttribute(c) : s.setAttribute(c, a === !0 ? "" : a);
|
|
49
|
+
}));
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function Ft(e) {
|
|
53
|
+
var t = e.state, r = {
|
|
54
|
+
popper: {
|
|
55
|
+
position: t.options.strategy,
|
|
56
|
+
left: "0",
|
|
57
|
+
top: "0",
|
|
58
|
+
margin: "0"
|
|
59
|
+
},
|
|
60
|
+
arrow: {
|
|
61
|
+
position: "absolute"
|
|
62
|
+
},
|
|
63
|
+
reference: {}
|
|
64
|
+
};
|
|
65
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
66
|
+
Object.keys(t.elements).forEach(function(o) {
|
|
67
|
+
var n = t.elements[o], s = t.attributes[o] || {}, c = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : r[o]), a = c.reduce(function(p, l) {
|
|
68
|
+
return p[l] = "", p;
|
|
69
|
+
}, {});
|
|
70
|
+
!H(n) || !q(n) || (Object.assign(n.style, a), Object.keys(s).forEach(function(p) {
|
|
71
|
+
n.removeAttribute(p);
|
|
72
|
+
}));
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
const Xt = {
|
|
77
|
+
name: "applyStyles",
|
|
78
|
+
enabled: !0,
|
|
79
|
+
phase: "write",
|
|
80
|
+
fn: It,
|
|
81
|
+
effect: Ft,
|
|
82
|
+
requires: ["computeStyles"]
|
|
83
|
+
};
|
|
84
|
+
function U(e) {
|
|
85
|
+
return e.split("-")[0];
|
|
86
|
+
}
|
|
87
|
+
var Q = Math.max, Oe = Math.min, te = Math.round;
|
|
88
|
+
function De() {
|
|
89
|
+
var e = navigator.userAgentData;
|
|
90
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
91
|
+
return t.brand + "/" + t.version;
|
|
92
|
+
}).join(" ") : navigator.userAgent;
|
|
93
|
+
}
|
|
94
|
+
function pt() {
|
|
95
|
+
return !/^((?!chrome|android).)*safari/i.test(De());
|
|
96
|
+
}
|
|
97
|
+
function re(e, t, r) {
|
|
98
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
99
|
+
var o = e.getBoundingClientRect(), n = 1, s = 1;
|
|
100
|
+
t && H(e) && (n = e.offsetWidth > 0 && te(o.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && te(o.height) / e.offsetHeight || 1);
|
|
101
|
+
var c = Z(e) ? W(e) : window, a = c.visualViewport, p = !pt() && r, l = (o.left + (p && a ? a.offsetLeft : 0)) / n, f = (o.top + (p && a ? a.offsetTop : 0)) / s, h = o.width / n, b = o.height / s;
|
|
102
|
+
return {
|
|
103
|
+
width: h,
|
|
104
|
+
height: b,
|
|
105
|
+
top: f,
|
|
106
|
+
right: l + h,
|
|
107
|
+
bottom: f + b,
|
|
108
|
+
left: l,
|
|
109
|
+
x: l,
|
|
110
|
+
y: f
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function $e(e) {
|
|
114
|
+
var t = re(e), r = e.offsetWidth, o = e.offsetHeight;
|
|
115
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
|
|
116
|
+
x: e.offsetLeft,
|
|
117
|
+
y: e.offsetTop,
|
|
118
|
+
width: r,
|
|
119
|
+
height: o
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function ft(e, t) {
|
|
123
|
+
var r = t.getRootNode && t.getRootNode();
|
|
124
|
+
if (e.contains(t))
|
|
125
|
+
return !0;
|
|
126
|
+
if (r && Be(r)) {
|
|
127
|
+
var o = t;
|
|
128
|
+
do {
|
|
129
|
+
if (o && e.isSameNode(o))
|
|
130
|
+
return !0;
|
|
131
|
+
o = o.parentNode || o.host;
|
|
132
|
+
} while (o);
|
|
133
|
+
}
|
|
134
|
+
return !1;
|
|
135
|
+
}
|
|
136
|
+
function X(e) {
|
|
137
|
+
return W(e).getComputedStyle(e);
|
|
138
|
+
}
|
|
139
|
+
function Yt(e) {
|
|
140
|
+
return ["table", "td", "th"].indexOf(q(e)) >= 0;
|
|
141
|
+
}
|
|
142
|
+
function z(e) {
|
|
143
|
+
return ((Z(e) ? e.ownerDocument : (
|
|
144
|
+
// $FlowFixMe[prop-missing]
|
|
145
|
+
e.document
|
|
146
|
+
)) || window.document).documentElement;
|
|
147
|
+
}
|
|
148
|
+
function Pe(e) {
|
|
149
|
+
return q(e) === "html" ? e : (
|
|
150
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
151
|
+
// $FlowFixMe[incompatible-return]
|
|
152
|
+
// $FlowFixMe[prop-missing]
|
|
153
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
154
|
+
e.parentNode || // DOM Element detected
|
|
155
|
+
(Be(e) ? e.host : null) || // ShadowRoot detected
|
|
156
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
157
|
+
z(e)
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
function Qe(e) {
|
|
161
|
+
return !H(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
162
|
+
X(e).position === "fixed" ? null : e.offsetParent;
|
|
163
|
+
}
|
|
164
|
+
function zt(e) {
|
|
165
|
+
var t = /firefox/i.test(De()), r = /Trident/i.test(De());
|
|
166
|
+
if (r && H(e)) {
|
|
167
|
+
var o = X(e);
|
|
168
|
+
if (o.position === "fixed")
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
var n = Pe(e);
|
|
172
|
+
for (Be(n) && (n = n.host); H(n) && ["html", "body"].indexOf(q(n)) < 0; ) {
|
|
173
|
+
var s = X(n);
|
|
174
|
+
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
|
|
175
|
+
return n;
|
|
176
|
+
n = n.parentNode;
|
|
177
|
+
}
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
function ue(e) {
|
|
181
|
+
for (var t = W(e), r = Qe(e); r && Yt(r) && X(r).position === "static"; )
|
|
182
|
+
r = Qe(r);
|
|
183
|
+
return r && (q(r) === "html" || q(r) === "body" && X(r).position === "static") ? t : r || zt(e) || t;
|
|
184
|
+
}
|
|
185
|
+
function ke(e) {
|
|
186
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
187
|
+
}
|
|
188
|
+
function se(e, t, r) {
|
|
189
|
+
return Q(e, Oe(t, r));
|
|
190
|
+
}
|
|
191
|
+
function Gt(e, t, r) {
|
|
192
|
+
var o = se(e, t, r);
|
|
193
|
+
return o > r ? r : o;
|
|
194
|
+
}
|
|
195
|
+
function ct() {
|
|
196
|
+
return {
|
|
197
|
+
top: 0,
|
|
198
|
+
right: 0,
|
|
199
|
+
bottom: 0,
|
|
200
|
+
left: 0
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function lt(e) {
|
|
204
|
+
return Object.assign({}, ct(), e);
|
|
205
|
+
}
|
|
206
|
+
function ut(e, t) {
|
|
207
|
+
return t.reduce(function(r, o) {
|
|
208
|
+
return r[o] = e, r;
|
|
209
|
+
}, {});
|
|
210
|
+
}
|
|
211
|
+
var Jt = function(t, r) {
|
|
212
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
213
|
+
placement: r.placement
|
|
214
|
+
})) : t, lt(typeof t != "number" ? t : ut(t, le));
|
|
215
|
+
};
|
|
216
|
+
function Kt(e) {
|
|
217
|
+
var t, r = e.state, o = e.name, n = e.options, s = r.elements.arrow, c = r.modifiersData.popperOffsets, a = U(r.placement), p = ke(a), l = [$, V].indexOf(a) >= 0, f = l ? "height" : "width";
|
|
218
|
+
if (!(!s || !c)) {
|
|
219
|
+
var h = Jt(n.padding, r), b = $e(s), u = p === "y" ? B : $, x = p === "y" ? N : V, v = r.rects.reference[f] + r.rects.reference[p] - c[p] - r.rects.popper[f], m = c[p] - r.rects.reference[p], w = ue(s), P = w ? p === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = v / 2 - m / 2, d = h[u], y = P - b[f] - h[x], g = P / 2 - b[f] / 2 + O, E = se(d, g, y), A = p;
|
|
220
|
+
r.modifiersData[o] = (t = {}, t[A] = E, t.centerOffset = E - g, t);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function Qt(e) {
|
|
224
|
+
var t = e.state, r = e.options, o = r.element, n = o === void 0 ? "[data-popper-arrow]" : o;
|
|
225
|
+
n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || ft(t.elements.popper, n) && (t.elements.arrow = n));
|
|
226
|
+
}
|
|
227
|
+
const Zt = {
|
|
228
|
+
name: "arrow",
|
|
229
|
+
enabled: !0,
|
|
230
|
+
phase: "main",
|
|
231
|
+
fn: Kt,
|
|
232
|
+
effect: Qt,
|
|
233
|
+
requires: ["popperOffsets"],
|
|
234
|
+
requiresIfExists: ["preventOverflow"]
|
|
235
|
+
};
|
|
236
|
+
function oe(e) {
|
|
237
|
+
return e.split("-")[1];
|
|
238
|
+
}
|
|
239
|
+
var _t = {
|
|
240
|
+
top: "auto",
|
|
241
|
+
right: "auto",
|
|
242
|
+
bottom: "auto",
|
|
243
|
+
left: "auto"
|
|
244
|
+
};
|
|
245
|
+
function er(e, t) {
|
|
246
|
+
var r = e.x, o = e.y, n = t.devicePixelRatio || 1;
|
|
247
|
+
return {
|
|
248
|
+
x: te(r * n) / n || 0,
|
|
249
|
+
y: te(o * n) / n || 0
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
function Ze(e) {
|
|
253
|
+
var t, r = e.popper, o = e.popperRect, n = e.placement, s = e.variation, c = e.offsets, a = e.position, p = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, h = e.isFixed, b = c.x, u = b === void 0 ? 0 : b, x = c.y, v = x === void 0 ? 0 : x, m = typeof f == "function" ? f({
|
|
254
|
+
x: u,
|
|
255
|
+
y: v
|
|
256
|
+
}) : {
|
|
257
|
+
x: u,
|
|
258
|
+
y: v
|
|
259
|
+
};
|
|
260
|
+
u = m.x, v = m.y;
|
|
261
|
+
var w = c.hasOwnProperty("x"), P = c.hasOwnProperty("y"), O = $, d = B, y = window;
|
|
262
|
+
if (l) {
|
|
263
|
+
var g = ue(r), E = "clientHeight", A = "clientWidth";
|
|
264
|
+
if (g === W(r) && (g = z(r), X(g).position !== "static" && a === "absolute" && (E = "scrollHeight", A = "scrollWidth")), g = g, n === B || (n === $ || n === V) && s === fe) {
|
|
265
|
+
d = N;
|
|
266
|
+
var R = h && g === y && y.visualViewport ? y.visualViewport.height : (
|
|
267
|
+
// $FlowFixMe[prop-missing]
|
|
268
|
+
g[E]
|
|
269
|
+
);
|
|
270
|
+
v -= R - o.height, v *= p ? 1 : -1;
|
|
271
|
+
}
|
|
272
|
+
if (n === $ || (n === B || n === N) && s === fe) {
|
|
273
|
+
O = V;
|
|
274
|
+
var T = h && g === y && y.visualViewport ? y.visualViewport.width : (
|
|
275
|
+
// $FlowFixMe[prop-missing]
|
|
276
|
+
g[A]
|
|
277
|
+
);
|
|
278
|
+
u -= T - o.width, u *= p ? 1 : -1;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
var j = Object.assign({
|
|
282
|
+
position: a
|
|
283
|
+
}, l && _t), k = f === !0 ? er({
|
|
284
|
+
x: u,
|
|
285
|
+
y: v
|
|
286
|
+
}, W(r)) : {
|
|
287
|
+
x: u,
|
|
288
|
+
y: v
|
|
289
|
+
};
|
|
290
|
+
if (u = k.x, v = k.y, p) {
|
|
291
|
+
var M;
|
|
292
|
+
return Object.assign({}, j, (M = {}, M[d] = P ? "0" : "", M[O] = w ? "0" : "", M.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + v + "px)" : "translate3d(" + u + "px, " + v + "px, 0)", M));
|
|
293
|
+
}
|
|
294
|
+
return Object.assign({}, j, (t = {}, t[d] = P ? v + "px" : "", t[O] = w ? u + "px" : "", t.transform = "", t));
|
|
295
|
+
}
|
|
296
|
+
function tr(e) {
|
|
297
|
+
var t = e.state, r = e.options, o = r.gpuAcceleration, n = o === void 0 ? !0 : o, s = r.adaptive, c = s === void 0 ? !0 : s, a = r.roundOffsets, p = a === void 0 ? !0 : a, l = {
|
|
298
|
+
placement: U(t.placement),
|
|
299
|
+
variation: oe(t.placement),
|
|
300
|
+
popper: t.elements.popper,
|
|
301
|
+
popperRect: t.rects.popper,
|
|
302
|
+
gpuAcceleration: n,
|
|
303
|
+
isFixed: t.options.strategy === "fixed"
|
|
304
|
+
};
|
|
305
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ze(Object.assign({}, l, {
|
|
306
|
+
offsets: t.modifiersData.popperOffsets,
|
|
307
|
+
position: t.options.strategy,
|
|
308
|
+
adaptive: c,
|
|
309
|
+
roundOffsets: p
|
|
310
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ze(Object.assign({}, l, {
|
|
311
|
+
offsets: t.modifiersData.arrow,
|
|
312
|
+
position: "absolute",
|
|
313
|
+
adaptive: !1,
|
|
314
|
+
roundOffsets: p
|
|
315
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
316
|
+
"data-popper-placement": t.placement
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
const rr = {
|
|
320
|
+
name: "computeStyles",
|
|
321
|
+
enabled: !0,
|
|
322
|
+
phase: "beforeWrite",
|
|
323
|
+
fn: tr,
|
|
324
|
+
data: {}
|
|
325
|
+
};
|
|
326
|
+
var ye = {
|
|
327
|
+
passive: !0
|
|
328
|
+
};
|
|
329
|
+
function or(e) {
|
|
330
|
+
var t = e.state, r = e.instance, o = e.options, n = o.scroll, s = n === void 0 ? !0 : n, c = o.resize, a = c === void 0 ? !0 : c, p = W(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
331
|
+
return s && l.forEach(function(f) {
|
|
332
|
+
f.addEventListener("scroll", r.update, ye);
|
|
333
|
+
}), a && p.addEventListener("resize", r.update, ye), function() {
|
|
334
|
+
s && l.forEach(function(f) {
|
|
335
|
+
f.removeEventListener("scroll", r.update, ye);
|
|
336
|
+
}), a && p.removeEventListener("resize", r.update, ye);
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
const nr = {
|
|
340
|
+
name: "eventListeners",
|
|
341
|
+
enabled: !0,
|
|
342
|
+
phase: "write",
|
|
343
|
+
fn: function() {
|
|
344
|
+
},
|
|
345
|
+
effect: or,
|
|
346
|
+
data: {}
|
|
347
|
+
};
|
|
348
|
+
var ar = {
|
|
349
|
+
left: "right",
|
|
350
|
+
right: "left",
|
|
351
|
+
bottom: "top",
|
|
352
|
+
top: "bottom"
|
|
353
|
+
};
|
|
354
|
+
function ge(e) {
|
|
355
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
356
|
+
return ar[t];
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
var ir = {
|
|
360
|
+
start: "end",
|
|
361
|
+
end: "start"
|
|
362
|
+
};
|
|
363
|
+
function _e(e) {
|
|
364
|
+
return e.replace(/start|end/g, function(t) {
|
|
365
|
+
return ir[t];
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
function Se(e) {
|
|
369
|
+
var t = W(e), r = t.pageXOffset, o = t.pageYOffset;
|
|
370
|
+
return {
|
|
371
|
+
scrollLeft: r,
|
|
372
|
+
scrollTop: o
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function We(e) {
|
|
376
|
+
return re(z(e)).left + Se(e).scrollLeft;
|
|
377
|
+
}
|
|
378
|
+
function sr(e, t) {
|
|
379
|
+
var r = W(e), o = z(e), n = r.visualViewport, s = o.clientWidth, c = o.clientHeight, a = 0, p = 0;
|
|
380
|
+
if (n) {
|
|
381
|
+
s = n.width, c = n.height;
|
|
382
|
+
var l = pt();
|
|
383
|
+
(l || !l && t === "fixed") && (a = n.offsetLeft, p = n.offsetTop);
|
|
384
|
+
}
|
|
385
|
+
return {
|
|
386
|
+
width: s,
|
|
387
|
+
height: c,
|
|
388
|
+
x: a + We(e),
|
|
389
|
+
y: p
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
function pr(e) {
|
|
393
|
+
var t, r = z(e), o = Se(e), n = (t = e.ownerDocument) == null ? void 0 : t.body, s = Q(r.scrollWidth, r.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), c = Q(r.scrollHeight, r.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), a = -o.scrollLeft + We(e), p = -o.scrollTop;
|
|
394
|
+
return X(n || r).direction === "rtl" && (a += Q(r.clientWidth, n ? n.clientWidth : 0) - s), {
|
|
395
|
+
width: s,
|
|
396
|
+
height: c,
|
|
397
|
+
x: a,
|
|
398
|
+
y: p
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
function Le(e) {
|
|
402
|
+
var t = X(e), r = t.overflow, o = t.overflowX, n = t.overflowY;
|
|
403
|
+
return /auto|scroll|overlay|hidden/.test(r + n + o);
|
|
404
|
+
}
|
|
405
|
+
function dt(e) {
|
|
406
|
+
return ["html", "body", "#document"].indexOf(q(e)) >= 0 ? e.ownerDocument.body : H(e) && Le(e) ? e : dt(Pe(e));
|
|
407
|
+
}
|
|
408
|
+
function pe(e, t) {
|
|
409
|
+
var r;
|
|
410
|
+
t === void 0 && (t = []);
|
|
411
|
+
var o = dt(e), n = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = W(o), c = n ? [s].concat(s.visualViewport || [], Le(o) ? o : []) : o, a = t.concat(c);
|
|
412
|
+
return n ? a : (
|
|
413
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
414
|
+
a.concat(pe(Pe(c)))
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
function Me(e) {
|
|
418
|
+
return Object.assign({}, e, {
|
|
419
|
+
left: e.x,
|
|
420
|
+
top: e.y,
|
|
421
|
+
right: e.x + e.width,
|
|
422
|
+
bottom: e.y + e.height
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
function fr(e, t) {
|
|
426
|
+
var r = re(e, !1, t === "fixed");
|
|
427
|
+
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
428
|
+
}
|
|
429
|
+
function et(e, t, r) {
|
|
430
|
+
return t === it ? Me(sr(e, r)) : Z(t) ? fr(t, r) : Me(pr(z(e)));
|
|
431
|
+
}
|
|
432
|
+
function cr(e) {
|
|
433
|
+
var t = pe(Pe(e)), r = ["absolute", "fixed"].indexOf(X(e).position) >= 0, o = r && H(e) ? ue(e) : e;
|
|
434
|
+
return Z(o) ? t.filter(function(n) {
|
|
435
|
+
return Z(n) && ft(n, o) && q(n) !== "body";
|
|
436
|
+
}) : [];
|
|
437
|
+
}
|
|
438
|
+
function lr(e, t, r, o) {
|
|
439
|
+
var n = t === "clippingParents" ? cr(e) : [].concat(t), s = [].concat(n, [r]), c = s[0], a = s.reduce(function(p, l) {
|
|
440
|
+
var f = et(e, l, o);
|
|
441
|
+
return p.top = Q(f.top, p.top), p.right = Oe(f.right, p.right), p.bottom = Oe(f.bottom, p.bottom), p.left = Q(f.left, p.left), p;
|
|
442
|
+
}, et(e, c, o));
|
|
443
|
+
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
444
|
+
}
|
|
445
|
+
function vt(e) {
|
|
446
|
+
var t = e.reference, r = e.element, o = e.placement, n = o ? U(o) : null, s = o ? oe(o) : null, c = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, p;
|
|
447
|
+
switch (n) {
|
|
448
|
+
case B:
|
|
449
|
+
p = {
|
|
450
|
+
x: c,
|
|
451
|
+
y: t.y - r.height
|
|
452
|
+
};
|
|
453
|
+
break;
|
|
454
|
+
case N:
|
|
455
|
+
p = {
|
|
456
|
+
x: c,
|
|
457
|
+
y: t.y + t.height
|
|
458
|
+
};
|
|
459
|
+
break;
|
|
460
|
+
case V:
|
|
461
|
+
p = {
|
|
462
|
+
x: t.x + t.width,
|
|
463
|
+
y: a
|
|
464
|
+
};
|
|
465
|
+
break;
|
|
466
|
+
case $:
|
|
467
|
+
p = {
|
|
468
|
+
x: t.x - r.width,
|
|
469
|
+
y: a
|
|
470
|
+
};
|
|
471
|
+
break;
|
|
472
|
+
default:
|
|
473
|
+
p = {
|
|
474
|
+
x: t.x,
|
|
475
|
+
y: t.y
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
var l = n ? ke(n) : null;
|
|
479
|
+
if (l != null) {
|
|
480
|
+
var f = l === "y" ? "height" : "width";
|
|
481
|
+
switch (s) {
|
|
482
|
+
case ee:
|
|
483
|
+
p[l] = p[l] - (t[f] / 2 - r[f] / 2);
|
|
484
|
+
break;
|
|
485
|
+
case fe:
|
|
486
|
+
p[l] = p[l] + (t[f] / 2 - r[f] / 2);
|
|
487
|
+
break;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return p;
|
|
491
|
+
}
|
|
492
|
+
function ce(e, t) {
|
|
493
|
+
t === void 0 && (t = {});
|
|
494
|
+
var r = t, o = r.placement, n = o === void 0 ? e.placement : o, s = r.strategy, c = s === void 0 ? e.strategy : s, a = r.boundary, p = a === void 0 ? Ct : a, l = r.rootBoundary, f = l === void 0 ? it : l, h = r.elementContext, b = h === void 0 ? ie : h, u = r.altBoundary, x = u === void 0 ? !1 : u, v = r.padding, m = v === void 0 ? 0 : v, w = lt(typeof m != "number" ? m : ut(m, le)), P = b === ie ? Bt : ie, O = e.rects.popper, d = e.elements[x ? P : b], y = lr(Z(d) ? d : d.contextElement || z(e.elements.popper), p, f, c), g = re(e.elements.reference), E = vt({
|
|
495
|
+
reference: g,
|
|
496
|
+
element: O,
|
|
497
|
+
strategy: "absolute",
|
|
498
|
+
placement: n
|
|
499
|
+
}), A = Me(Object.assign({}, O, E)), R = b === ie ? A : g, T = {
|
|
500
|
+
top: y.top - R.top + w.top,
|
|
501
|
+
bottom: R.bottom - y.bottom + w.bottom,
|
|
502
|
+
left: y.left - R.left + w.left,
|
|
503
|
+
right: R.right - y.right + w.right
|
|
504
|
+
}, j = e.modifiersData.offset;
|
|
505
|
+
if (b === ie && j) {
|
|
506
|
+
var k = j[n];
|
|
507
|
+
Object.keys(T).forEach(function(M) {
|
|
508
|
+
var I = [V, N].indexOf(M) >= 0 ? 1 : -1, F = [B, N].indexOf(M) >= 0 ? "y" : "x";
|
|
509
|
+
T[M] += k[F] * I;
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
return T;
|
|
513
|
+
}
|
|
514
|
+
function ur(e, t) {
|
|
515
|
+
t === void 0 && (t = {});
|
|
516
|
+
var r = t, o = r.placement, n = r.boundary, s = r.rootBoundary, c = r.padding, a = r.flipVariations, p = r.allowedAutoPlacements, l = p === void 0 ? st : p, f = oe(o), h = f ? a ? Ke : Ke.filter(function(x) {
|
|
517
|
+
return oe(x) === f;
|
|
518
|
+
}) : le, b = h.filter(function(x) {
|
|
519
|
+
return l.indexOf(x) >= 0;
|
|
520
|
+
});
|
|
521
|
+
b.length === 0 && (b = h);
|
|
522
|
+
var u = b.reduce(function(x, v) {
|
|
523
|
+
return x[v] = ce(e, {
|
|
524
|
+
placement: v,
|
|
525
|
+
boundary: n,
|
|
526
|
+
rootBoundary: s,
|
|
527
|
+
padding: c
|
|
528
|
+
})[U(v)], x;
|
|
529
|
+
}, {});
|
|
530
|
+
return Object.keys(u).sort(function(x, v) {
|
|
531
|
+
return u[x] - u[v];
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
function dr(e) {
|
|
535
|
+
if (U(e) === Ce)
|
|
536
|
+
return [];
|
|
537
|
+
var t = ge(e);
|
|
538
|
+
return [_e(e), t, _e(t)];
|
|
539
|
+
}
|
|
540
|
+
function vr(e) {
|
|
541
|
+
var t = e.state, r = e.options, o = e.name;
|
|
542
|
+
if (!t.modifiersData[o]._skip) {
|
|
543
|
+
for (var n = r.mainAxis, s = n === void 0 ? !0 : n, c = r.altAxis, a = c === void 0 ? !0 : c, p = r.fallbackPlacements, l = r.padding, f = r.boundary, h = r.rootBoundary, b = r.altBoundary, u = r.flipVariations, x = u === void 0 ? !0 : u, v = r.allowedAutoPlacements, m = t.options.placement, w = U(m), P = w === m, O = p || (P || !x ? [ge(m)] : dr(m)), d = [m].concat(O).reduce(function(_, Y) {
|
|
544
|
+
return _.concat(U(Y) === Ce ? ur(t, {
|
|
545
|
+
placement: Y,
|
|
546
|
+
boundary: f,
|
|
547
|
+
rootBoundary: h,
|
|
548
|
+
padding: l,
|
|
549
|
+
flipVariations: x,
|
|
550
|
+
allowedAutoPlacements: v
|
|
551
|
+
}) : Y);
|
|
552
|
+
}, []), y = t.rects.reference, g = t.rects.popper, E = /* @__PURE__ */ new Map(), A = !0, R = d[0], T = 0; T < d.length; T++) {
|
|
553
|
+
var j = d[T], k = U(j), M = oe(j) === ee, I = [B, N].indexOf(k) >= 0, F = I ? "width" : "height", D = ce(t, {
|
|
554
|
+
placement: j,
|
|
555
|
+
boundary: f,
|
|
556
|
+
rootBoundary: h,
|
|
557
|
+
altBoundary: b,
|
|
558
|
+
padding: l
|
|
559
|
+
}), C = I ? M ? V : $ : M ? N : B;
|
|
560
|
+
y[F] > g[F] && (C = ge(C));
|
|
561
|
+
var S = ge(C), G = [];
|
|
562
|
+
if (s && G.push(D[k] <= 0), a && G.push(D[C] <= 0, D[S] <= 0), G.every(function(_) {
|
|
563
|
+
return _;
|
|
564
|
+
})) {
|
|
565
|
+
R = j, A = !1;
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
E.set(j, G);
|
|
569
|
+
}
|
|
570
|
+
if (A)
|
|
571
|
+
for (var de = x ? 3 : 1, Re = function(Y) {
|
|
572
|
+
var ae = d.find(function(me) {
|
|
573
|
+
var J = E.get(me);
|
|
574
|
+
if (J)
|
|
575
|
+
return J.slice(0, Y).every(function(Te) {
|
|
576
|
+
return Te;
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
if (ae)
|
|
580
|
+
return R = ae, "break";
|
|
581
|
+
}, ne = de; ne > 0; ne--) {
|
|
582
|
+
var ve = Re(ne);
|
|
583
|
+
if (ve === "break") break;
|
|
584
|
+
}
|
|
585
|
+
t.placement !== R && (t.modifiersData[o]._skip = !0, t.placement = R, t.reset = !0);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
const mr = {
|
|
589
|
+
name: "flip",
|
|
590
|
+
enabled: !0,
|
|
591
|
+
phase: "main",
|
|
592
|
+
fn: vr,
|
|
593
|
+
requiresIfExists: ["offset"],
|
|
594
|
+
data: {
|
|
595
|
+
_skip: !1
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
function tt(e, t, r) {
|
|
599
|
+
return r === void 0 && (r = {
|
|
600
|
+
x: 0,
|
|
601
|
+
y: 0
|
|
602
|
+
}), {
|
|
603
|
+
top: e.top - t.height - r.y,
|
|
604
|
+
right: e.right - t.width + r.x,
|
|
605
|
+
bottom: e.bottom - t.height + r.y,
|
|
606
|
+
left: e.left - t.width - r.x
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
function rt(e) {
|
|
610
|
+
return [B, V, N, $].some(function(t) {
|
|
611
|
+
return e[t] >= 0;
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
function hr(e) {
|
|
615
|
+
var t = e.state, r = e.name, o = t.rects.reference, n = t.rects.popper, s = t.modifiersData.preventOverflow, c = ce(t, {
|
|
616
|
+
elementContext: "reference"
|
|
617
|
+
}), a = ce(t, {
|
|
618
|
+
altBoundary: !0
|
|
619
|
+
}), p = tt(c, o), l = tt(a, n, s), f = rt(p), h = rt(l);
|
|
620
|
+
t.modifiersData[r] = {
|
|
621
|
+
referenceClippingOffsets: p,
|
|
622
|
+
popperEscapeOffsets: l,
|
|
623
|
+
isReferenceHidden: f,
|
|
624
|
+
hasPopperEscaped: h
|
|
625
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
626
|
+
"data-popper-reference-hidden": f,
|
|
627
|
+
"data-popper-escaped": h
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
const yr = {
|
|
631
|
+
name: "hide",
|
|
632
|
+
enabled: !0,
|
|
633
|
+
phase: "main",
|
|
634
|
+
requiresIfExists: ["preventOverflow"],
|
|
635
|
+
fn: hr
|
|
636
|
+
};
|
|
637
|
+
function gr(e, t, r) {
|
|
638
|
+
var o = U(e), n = [$, B].indexOf(o) >= 0 ? -1 : 1, s = typeof r == "function" ? r(Object.assign({}, t, {
|
|
639
|
+
placement: e
|
|
640
|
+
})) : r, c = s[0], a = s[1];
|
|
641
|
+
return c = c || 0, a = (a || 0) * n, [$, V].indexOf(o) >= 0 ? {
|
|
642
|
+
x: a,
|
|
643
|
+
y: c
|
|
644
|
+
} : {
|
|
645
|
+
x: c,
|
|
646
|
+
y: a
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
function br(e) {
|
|
650
|
+
var t = e.state, r = e.options, o = e.name, n = r.offset, s = n === void 0 ? [0, 0] : n, c = st.reduce(function(f, h) {
|
|
651
|
+
return f[h] = gr(h, t.rects, s), f;
|
|
652
|
+
}, {}), a = c[t.placement], p = a.x, l = a.y;
|
|
653
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += p, t.modifiersData.popperOffsets.y += l), t.modifiersData[o] = c;
|
|
654
|
+
}
|
|
655
|
+
const wr = {
|
|
656
|
+
name: "offset",
|
|
657
|
+
enabled: !0,
|
|
658
|
+
phase: "main",
|
|
659
|
+
requires: ["popperOffsets"],
|
|
660
|
+
fn: br
|
|
661
|
+
};
|
|
662
|
+
function Or(e) {
|
|
663
|
+
var t = e.state, r = e.name;
|
|
664
|
+
t.modifiersData[r] = vt({
|
|
665
|
+
reference: t.rects.reference,
|
|
666
|
+
element: t.rects.popper,
|
|
667
|
+
strategy: "absolute",
|
|
668
|
+
placement: t.placement
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
const xr = {
|
|
672
|
+
name: "popperOffsets",
|
|
673
|
+
enabled: !0,
|
|
674
|
+
phase: "read",
|
|
675
|
+
fn: Or,
|
|
676
|
+
data: {}
|
|
677
|
+
};
|
|
678
|
+
function Pr(e) {
|
|
679
|
+
return e === "x" ? "y" : "x";
|
|
680
|
+
}
|
|
681
|
+
function Er(e) {
|
|
682
|
+
var t = e.state, r = e.options, o = e.name, n = r.mainAxis, s = n === void 0 ? !0 : n, c = r.altAxis, a = c === void 0 ? !1 : c, p = r.boundary, l = r.rootBoundary, f = r.altBoundary, h = r.padding, b = r.tether, u = b === void 0 ? !0 : b, x = r.tetherOffset, v = x === void 0 ? 0 : x, m = ce(t, {
|
|
683
|
+
boundary: p,
|
|
684
|
+
rootBoundary: l,
|
|
685
|
+
padding: h,
|
|
686
|
+
altBoundary: f
|
|
687
|
+
}), w = U(t.placement), P = oe(t.placement), O = !P, d = ke(w), y = Pr(d), g = t.modifiersData.popperOffsets, E = t.rects.reference, A = t.rects.popper, R = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
688
|
+
placement: t.placement
|
|
689
|
+
})) : v, T = typeof R == "number" ? {
|
|
690
|
+
mainAxis: R,
|
|
691
|
+
altAxis: R
|
|
692
|
+
} : Object.assign({
|
|
693
|
+
mainAxis: 0,
|
|
694
|
+
altAxis: 0
|
|
695
|
+
}, R), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, k = {
|
|
696
|
+
x: 0,
|
|
697
|
+
y: 0
|
|
698
|
+
};
|
|
699
|
+
if (g) {
|
|
700
|
+
if (s) {
|
|
701
|
+
var M, I = d === "y" ? B : $, F = d === "y" ? N : V, D = d === "y" ? "height" : "width", C = g[d], S = C + m[I], G = C - m[F], de = u ? -A[D] / 2 : 0, Re = P === ee ? E[D] : A[D], ne = P === ee ? -A[D] : -E[D], ve = t.elements.arrow, _ = u && ve ? $e(ve) : {
|
|
702
|
+
width: 0,
|
|
703
|
+
height: 0
|
|
704
|
+
}, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ct(), ae = Y[I], me = Y[F], J = se(0, E[D], _[D]), Te = O ? E[D] / 2 - de - J - ae - T.mainAxis : Re - J - ae - T.mainAxis, ht = O ? -E[D] / 2 + de + J + me + T.mainAxis : ne + J + me + T.mainAxis, Ae = t.elements.arrow && ue(t.elements.arrow), yt = Ae ? d === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, He = (M = j == null ? void 0 : j[d]) != null ? M : 0, gt = C + Te - He - yt, bt = C + ht - He, Ne = se(u ? Oe(S, gt) : S, C, u ? Q(G, bt) : G);
|
|
705
|
+
g[d] = Ne, k[d] = Ne - C;
|
|
706
|
+
}
|
|
707
|
+
if (a) {
|
|
708
|
+
var Ve, wt = d === "x" ? B : $, Ot = d === "x" ? N : V, K = g[y], he = y === "y" ? "height" : "width", Ue = K + m[wt], qe = K - m[Ot], je = [B, $].indexOf(w) !== -1, Ie = (Ve = j == null ? void 0 : j[y]) != null ? Ve : 0, Fe = je ? Ue : K - E[he] - A[he] - Ie + T.altAxis, Xe = je ? K + E[he] + A[he] - Ie - T.altAxis : qe, Ye = u && je ? Gt(Fe, K, Xe) : se(u ? Fe : Ue, K, u ? Xe : qe);
|
|
709
|
+
g[y] = Ye, k[y] = Ye - K;
|
|
710
|
+
}
|
|
711
|
+
t.modifiersData[o] = k;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
const Rr = {
|
|
715
|
+
name: "preventOverflow",
|
|
716
|
+
enabled: !0,
|
|
717
|
+
phase: "main",
|
|
718
|
+
fn: Er,
|
|
719
|
+
requiresIfExists: ["offset"]
|
|
720
|
+
};
|
|
721
|
+
function Tr(e) {
|
|
722
|
+
return {
|
|
723
|
+
scrollLeft: e.scrollLeft,
|
|
724
|
+
scrollTop: e.scrollTop
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
function Ar(e) {
|
|
728
|
+
return e === W(e) || !H(e) ? Se(e) : Tr(e);
|
|
729
|
+
}
|
|
730
|
+
function jr(e) {
|
|
731
|
+
var t = e.getBoundingClientRect(), r = te(t.width) / e.offsetWidth || 1, o = te(t.height) / e.offsetHeight || 1;
|
|
732
|
+
return r !== 1 || o !== 1;
|
|
733
|
+
}
|
|
734
|
+
function Dr(e, t, r) {
|
|
735
|
+
r === void 0 && (r = !1);
|
|
736
|
+
var o = H(t), n = H(t) && jr(t), s = z(t), c = re(e, n, r), a = {
|
|
737
|
+
scrollLeft: 0,
|
|
738
|
+
scrollTop: 0
|
|
739
|
+
}, p = {
|
|
740
|
+
x: 0,
|
|
741
|
+
y: 0
|
|
742
|
+
};
|
|
743
|
+
return (o || !o && !r) && ((q(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
744
|
+
Le(s)) && (a = Ar(t)), H(t) ? (p = re(t, !0), p.x += t.clientLeft, p.y += t.clientTop) : s && (p.x = We(s))), {
|
|
745
|
+
x: c.left + a.scrollLeft - p.x,
|
|
746
|
+
y: c.top + a.scrollTop - p.y,
|
|
747
|
+
width: c.width,
|
|
748
|
+
height: c.height
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
function Mr(e) {
|
|
752
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), o = [];
|
|
753
|
+
e.forEach(function(s) {
|
|
754
|
+
t.set(s.name, s);
|
|
755
|
+
});
|
|
756
|
+
function n(s) {
|
|
757
|
+
r.add(s.name);
|
|
758
|
+
var c = [].concat(s.requires || [], s.requiresIfExists || []);
|
|
759
|
+
c.forEach(function(a) {
|
|
760
|
+
if (!r.has(a)) {
|
|
761
|
+
var p = t.get(a);
|
|
762
|
+
p && n(p);
|
|
763
|
+
}
|
|
764
|
+
}), o.push(s);
|
|
765
|
+
}
|
|
766
|
+
return e.forEach(function(s) {
|
|
767
|
+
r.has(s.name) || n(s);
|
|
768
|
+
}), o;
|
|
769
|
+
}
|
|
770
|
+
function Cr(e) {
|
|
771
|
+
var t = Mr(e);
|
|
772
|
+
return qt.reduce(function(r, o) {
|
|
773
|
+
return r.concat(t.filter(function(n) {
|
|
774
|
+
return n.phase === o;
|
|
775
|
+
}));
|
|
776
|
+
}, []);
|
|
777
|
+
}
|
|
778
|
+
function Br(e) {
|
|
779
|
+
var t;
|
|
780
|
+
return function() {
|
|
781
|
+
return t || (t = new Promise(function(r) {
|
|
782
|
+
Promise.resolve().then(function() {
|
|
783
|
+
t = void 0, r(e());
|
|
784
|
+
});
|
|
785
|
+
})), t;
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
function $r(e) {
|
|
789
|
+
var t = e.reduce(function(r, o) {
|
|
790
|
+
var n = r[o.name];
|
|
791
|
+
return r[o.name] = n ? Object.assign({}, n, o, {
|
|
792
|
+
options: Object.assign({}, n.options, o.options),
|
|
793
|
+
data: Object.assign({}, n.data, o.data)
|
|
794
|
+
}) : o, r;
|
|
795
|
+
}, {});
|
|
796
|
+
return Object.keys(t).map(function(r) {
|
|
797
|
+
return t[r];
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
var ot = {
|
|
801
|
+
placement: "bottom",
|
|
802
|
+
modifiers: [],
|
|
803
|
+
strategy: "absolute"
|
|
804
|
+
};
|
|
805
|
+
function nt() {
|
|
806
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
807
|
+
t[r] = arguments[r];
|
|
808
|
+
return !t.some(function(o) {
|
|
809
|
+
return !(o && typeof o.getBoundingClientRect == "function");
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
function kr(e) {
|
|
813
|
+
e === void 0 && (e = {});
|
|
814
|
+
var t = e, r = t.defaultModifiers, o = r === void 0 ? [] : r, n = t.defaultOptions, s = n === void 0 ? ot : n;
|
|
815
|
+
return function(a, p, l) {
|
|
816
|
+
l === void 0 && (l = s);
|
|
817
|
+
var f = {
|
|
818
|
+
placement: "bottom",
|
|
819
|
+
orderedModifiers: [],
|
|
820
|
+
options: Object.assign({}, ot, s),
|
|
821
|
+
modifiersData: {},
|
|
822
|
+
elements: {
|
|
823
|
+
reference: a,
|
|
824
|
+
popper: p
|
|
825
|
+
},
|
|
826
|
+
attributes: {},
|
|
827
|
+
styles: {}
|
|
828
|
+
}, h = [], b = !1, u = {
|
|
829
|
+
state: f,
|
|
830
|
+
setOptions: function(w) {
|
|
831
|
+
var P = typeof w == "function" ? w(f.options) : w;
|
|
832
|
+
v(), f.options = Object.assign({}, s, f.options, P), f.scrollParents = {
|
|
833
|
+
reference: Z(a) ? pe(a) : a.contextElement ? pe(a.contextElement) : [],
|
|
834
|
+
popper: pe(p)
|
|
835
|
+
};
|
|
836
|
+
var O = Cr($r([].concat(o, f.options.modifiers)));
|
|
837
|
+
return f.orderedModifiers = O.filter(function(d) {
|
|
838
|
+
return d.enabled;
|
|
839
|
+
}), x(), u.update();
|
|
840
|
+
},
|
|
841
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
842
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
843
|
+
// logic.
|
|
844
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
845
|
+
// prefer the async Popper#update method
|
|
846
|
+
forceUpdate: function() {
|
|
847
|
+
if (!b) {
|
|
848
|
+
var w = f.elements, P = w.reference, O = w.popper;
|
|
849
|
+
if (nt(P, O)) {
|
|
850
|
+
f.rects = {
|
|
851
|
+
reference: Dr(P, ue(O), f.options.strategy === "fixed"),
|
|
852
|
+
popper: $e(O)
|
|
853
|
+
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(T) {
|
|
854
|
+
return f.modifiersData[T.name] = Object.assign({}, T.data);
|
|
855
|
+
});
|
|
856
|
+
for (var d = 0; d < f.orderedModifiers.length; d++) {
|
|
857
|
+
if (f.reset === !0) {
|
|
858
|
+
f.reset = !1, d = -1;
|
|
859
|
+
continue;
|
|
860
|
+
}
|
|
861
|
+
var y = f.orderedModifiers[d], g = y.fn, E = y.options, A = E === void 0 ? {} : E, R = y.name;
|
|
862
|
+
typeof g == "function" && (f = g({
|
|
863
|
+
state: f,
|
|
864
|
+
options: A,
|
|
865
|
+
name: R,
|
|
866
|
+
instance: u
|
|
867
|
+
}) || f);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
873
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
874
|
+
update: Br(function() {
|
|
875
|
+
return new Promise(function(m) {
|
|
876
|
+
u.forceUpdate(), m(f);
|
|
877
|
+
});
|
|
878
|
+
}),
|
|
879
|
+
destroy: function() {
|
|
880
|
+
v(), b = !0;
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
if (!nt(a, p))
|
|
884
|
+
return u;
|
|
885
|
+
u.setOptions(l).then(function(m) {
|
|
886
|
+
!b && l.onFirstUpdate && l.onFirstUpdate(m);
|
|
887
|
+
});
|
|
888
|
+
function x() {
|
|
889
|
+
f.orderedModifiers.forEach(function(m) {
|
|
890
|
+
var w = m.name, P = m.options, O = P === void 0 ? {} : P, d = m.effect;
|
|
891
|
+
if (typeof d == "function") {
|
|
892
|
+
var y = d({
|
|
893
|
+
state: f,
|
|
894
|
+
name: w,
|
|
895
|
+
instance: u,
|
|
896
|
+
options: O
|
|
897
|
+
}), g = function() {
|
|
898
|
+
};
|
|
899
|
+
h.push(y || g);
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
function v() {
|
|
904
|
+
h.forEach(function(m) {
|
|
905
|
+
return m();
|
|
906
|
+
}), h = [];
|
|
907
|
+
}
|
|
908
|
+
return u;
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
var Sr = [nr, xr, rr, Xt, wr, mr, Rr, Zt, yr], Wr = /* @__PURE__ */ kr({
|
|
912
|
+
defaultModifiers: Sr
|
|
913
|
+
});
|
|
914
|
+
function Lr(e) {
|
|
915
|
+
return Rt("MuiPopper", e);
|
|
916
|
+
}
|
|
917
|
+
Et("MuiPopper", ["root"]);
|
|
918
|
+
function Hr(e, t) {
|
|
919
|
+
if (t === "ltr")
|
|
920
|
+
return e;
|
|
921
|
+
switch (e) {
|
|
922
|
+
case "bottom-end":
|
|
923
|
+
return "bottom-start";
|
|
924
|
+
case "bottom-start":
|
|
925
|
+
return "bottom-end";
|
|
926
|
+
case "top-end":
|
|
927
|
+
return "top-start";
|
|
928
|
+
case "top-start":
|
|
929
|
+
return "top-end";
|
|
930
|
+
default:
|
|
931
|
+
return e;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
function xe(e) {
|
|
935
|
+
return typeof e == "function" ? e() : e;
|
|
936
|
+
}
|
|
937
|
+
function Ee(e) {
|
|
938
|
+
return e.nodeType !== void 0;
|
|
939
|
+
}
|
|
940
|
+
function Nr(e) {
|
|
941
|
+
return !Ee(e);
|
|
942
|
+
}
|
|
943
|
+
const Vr = (e) => {
|
|
944
|
+
const {
|
|
945
|
+
classes: t
|
|
946
|
+
} = e;
|
|
947
|
+
return jt({
|
|
948
|
+
root: ["root"]
|
|
949
|
+
}, Lr, t);
|
|
950
|
+
}, Ur = {}, qr = /* @__PURE__ */ L.forwardRef(function(t, r) {
|
|
951
|
+
const {
|
|
952
|
+
anchorEl: o,
|
|
953
|
+
children: n,
|
|
954
|
+
direction: s,
|
|
955
|
+
disablePortal: c,
|
|
956
|
+
modifiers: a,
|
|
957
|
+
open: p,
|
|
958
|
+
placement: l,
|
|
959
|
+
popperOptions: f,
|
|
960
|
+
popperRef: h,
|
|
961
|
+
slotProps: b = {},
|
|
962
|
+
slots: u = {},
|
|
963
|
+
TransitionProps: x,
|
|
964
|
+
// @ts-ignore internal logic
|
|
965
|
+
ownerState: v,
|
|
966
|
+
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
967
|
+
...m
|
|
968
|
+
} = t, w = L.useRef(null), P = Je(w, r), O = L.useRef(null), d = Je(O, h), y = L.useRef(d);
|
|
969
|
+
Ge(() => {
|
|
970
|
+
y.current = d;
|
|
971
|
+
}, [d]), L.useImperativeHandle(h, () => O.current, []);
|
|
972
|
+
const g = Hr(l, s), [E, A] = L.useState(g), [R, T] = L.useState(xe(o));
|
|
973
|
+
L.useEffect(() => {
|
|
974
|
+
O.current && O.current.forceUpdate();
|
|
975
|
+
}), L.useEffect(() => {
|
|
976
|
+
o && T(xe(o));
|
|
977
|
+
}, [o]), Ge(() => {
|
|
978
|
+
if (!R || !p)
|
|
979
|
+
return;
|
|
980
|
+
const F = (S) => {
|
|
981
|
+
A(S.placement);
|
|
982
|
+
};
|
|
983
|
+
if (process.env.NODE_ENV !== "production" && R && Ee(R) && R.nodeType === 1) {
|
|
984
|
+
const S = R.getBoundingClientRect();
|
|
985
|
+
process.env.NODE_ENV !== "test" && S.top === 0 && S.left === 0 && S.right === 0 && S.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(`
|
|
986
|
+
`));
|
|
987
|
+
}
|
|
988
|
+
let D = [{
|
|
989
|
+
name: "preventOverflow",
|
|
990
|
+
options: {
|
|
991
|
+
altBoundary: c
|
|
992
|
+
}
|
|
993
|
+
}, {
|
|
994
|
+
name: "flip",
|
|
995
|
+
options: {
|
|
996
|
+
altBoundary: c
|
|
997
|
+
}
|
|
998
|
+
}, {
|
|
999
|
+
name: "onUpdate",
|
|
1000
|
+
enabled: !0,
|
|
1001
|
+
phase: "afterWrite",
|
|
1002
|
+
fn: ({
|
|
1003
|
+
state: S
|
|
1004
|
+
}) => {
|
|
1005
|
+
F(S);
|
|
1006
|
+
}
|
|
1007
|
+
}];
|
|
1008
|
+
a != null && (D = D.concat(a)), f && f.modifiers != null && (D = D.concat(f.modifiers));
|
|
1009
|
+
const C = Wr(R, w.current, {
|
|
1010
|
+
placement: g,
|
|
1011
|
+
...f,
|
|
1012
|
+
modifiers: D
|
|
1013
|
+
});
|
|
1014
|
+
return y.current(C), () => {
|
|
1015
|
+
C.destroy(), y.current(null);
|
|
1016
|
+
};
|
|
1017
|
+
}, [R, c, a, p, f, g]);
|
|
1018
|
+
const j = {
|
|
1019
|
+
placement: E
|
|
1020
|
+
};
|
|
1021
|
+
x !== null && (j.TransitionProps = x);
|
|
1022
|
+
const k = Vr(t), M = u.root ?? "div", I = xt({
|
|
1023
|
+
elementType: M,
|
|
1024
|
+
externalSlotProps: b.root,
|
|
1025
|
+
externalForwardedProps: m,
|
|
1026
|
+
additionalProps: {
|
|
1027
|
+
role: "tooltip",
|
|
1028
|
+
ref: P
|
|
1029
|
+
},
|
|
1030
|
+
ownerState: t,
|
|
1031
|
+
className: k.root
|
|
1032
|
+
});
|
|
1033
|
+
return /* @__PURE__ */ be(M, {
|
|
1034
|
+
...I,
|
|
1035
|
+
children: typeof n == "function" ? n(j) : n
|
|
1036
|
+
});
|
|
1037
|
+
}), mt = /* @__PURE__ */ L.forwardRef(function(t, r) {
|
|
1038
|
+
const {
|
|
1039
|
+
anchorEl: o,
|
|
1040
|
+
children: n,
|
|
1041
|
+
container: s,
|
|
1042
|
+
direction: c = "ltr",
|
|
1043
|
+
disablePortal: a = !1,
|
|
1044
|
+
keepMounted: p = !1,
|
|
1045
|
+
modifiers: l,
|
|
1046
|
+
open: f,
|
|
1047
|
+
placement: h = "bottom",
|
|
1048
|
+
popperOptions: b = Ur,
|
|
1049
|
+
popperRef: u,
|
|
1050
|
+
style: x,
|
|
1051
|
+
transition: v = !1,
|
|
1052
|
+
slotProps: m = {},
|
|
1053
|
+
slots: w = {},
|
|
1054
|
+
...P
|
|
1055
|
+
} = t, [O, d] = L.useState(!0), y = () => {
|
|
1056
|
+
d(!1);
|
|
1057
|
+
}, g = () => {
|
|
1058
|
+
d(!0);
|
|
1059
|
+
};
|
|
1060
|
+
if (!p && !f && (!v || O))
|
|
1061
|
+
return null;
|
|
1062
|
+
let E;
|
|
1063
|
+
if (s)
|
|
1064
|
+
E = s;
|
|
1065
|
+
else if (o) {
|
|
1066
|
+
const T = xe(o);
|
|
1067
|
+
E = T && Ee(T) ? ze(T).body : ze(null).body;
|
|
1068
|
+
}
|
|
1069
|
+
const A = !f && p && (!v || O) ? "none" : void 0, R = v ? {
|
|
1070
|
+
in: f,
|
|
1071
|
+
onEnter: y,
|
|
1072
|
+
onExited: g
|
|
1073
|
+
} : void 0;
|
|
1074
|
+
return /* @__PURE__ */ be(Tt, {
|
|
1075
|
+
disablePortal: a,
|
|
1076
|
+
container: E,
|
|
1077
|
+
children: /* @__PURE__ */ be(qr, {
|
|
1078
|
+
anchorEl: o,
|
|
1079
|
+
direction: c,
|
|
1080
|
+
disablePortal: a,
|
|
1081
|
+
modifiers: l,
|
|
1082
|
+
ref: r,
|
|
1083
|
+
open: v ? !O : f,
|
|
1084
|
+
placement: h,
|
|
1085
|
+
popperOptions: b,
|
|
1086
|
+
popperRef: u,
|
|
1087
|
+
slotProps: m,
|
|
1088
|
+
slots: w,
|
|
1089
|
+
...P,
|
|
1090
|
+
style: {
|
|
1091
|
+
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
1092
|
+
position: "fixed",
|
|
1093
|
+
// Fix Popper.js display issue
|
|
1094
|
+
top: 0,
|
|
1095
|
+
left: 0,
|
|
1096
|
+
display: A,
|
|
1097
|
+
...x
|
|
1098
|
+
},
|
|
1099
|
+
TransitionProps: R,
|
|
1100
|
+
children: n
|
|
1101
|
+
})
|
|
1102
|
+
});
|
|
1103
|
+
});
|
|
1104
|
+
process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
1105
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1106
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1107
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1108
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1109
|
+
/**
|
|
1110
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1111
|
+
* or a function that returns either.
|
|
1112
|
+
* It's used to set the position of the popper.
|
|
1113
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1114
|
+
*/
|
|
1115
|
+
anchorEl: At(i.oneOfType([we, i.object, i.func]), (e) => {
|
|
1116
|
+
if (e.open) {
|
|
1117
|
+
const t = xe(e.anchorEl);
|
|
1118
|
+
if (t && Ee(t) && t.nodeType === 1) {
|
|
1119
|
+
const r = t.getBoundingClientRect();
|
|
1120
|
+
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1121
|
+
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(`
|
|
1122
|
+
`));
|
|
1123
|
+
} else if (!t || typeof t.getBoundingClientRect != "function" || Nr(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
|
|
1124
|
+
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(`
|
|
1125
|
+
`));
|
|
1126
|
+
}
|
|
1127
|
+
return null;
|
|
1128
|
+
}),
|
|
1129
|
+
/**
|
|
1130
|
+
* Popper render function or node.
|
|
1131
|
+
*/
|
|
1132
|
+
children: i.oneOfType([i.node, i.func]),
|
|
1133
|
+
/**
|
|
1134
|
+
* An HTML element or function that returns one.
|
|
1135
|
+
* The `container` will have the portal children appended to it.
|
|
1136
|
+
*
|
|
1137
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1138
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1139
|
+
*
|
|
1140
|
+
* By default, it uses the body of the top-level document object,
|
|
1141
|
+
* so it's simply `document.body` most of the time.
|
|
1142
|
+
*/
|
|
1143
|
+
container: i.oneOfType([we, i.func]),
|
|
1144
|
+
/**
|
|
1145
|
+
* Direction of the text.
|
|
1146
|
+
* @default 'ltr'
|
|
1147
|
+
*/
|
|
1148
|
+
direction: i.oneOf(["ltr", "rtl"]),
|
|
1149
|
+
/**
|
|
1150
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1151
|
+
* @default false
|
|
1152
|
+
*/
|
|
1153
|
+
disablePortal: i.bool,
|
|
1154
|
+
/**
|
|
1155
|
+
* Always keep the children in the DOM.
|
|
1156
|
+
* This prop can be useful in SEO situation or
|
|
1157
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1158
|
+
* @default false
|
|
1159
|
+
*/
|
|
1160
|
+
keepMounted: i.bool,
|
|
1161
|
+
/**
|
|
1162
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1163
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1164
|
+
*
|
|
1165
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1166
|
+
* compute the position of the popper.
|
|
1167
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1168
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1169
|
+
*/
|
|
1170
|
+
modifiers: i.arrayOf(i.shape({
|
|
1171
|
+
data: i.object,
|
|
1172
|
+
effect: i.func,
|
|
1173
|
+
enabled: i.bool,
|
|
1174
|
+
fn: i.func,
|
|
1175
|
+
name: i.any,
|
|
1176
|
+
options: i.object,
|
|
1177
|
+
phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1178
|
+
requires: i.arrayOf(i.string),
|
|
1179
|
+
requiresIfExists: i.arrayOf(i.string)
|
|
1180
|
+
})),
|
|
1181
|
+
/**
|
|
1182
|
+
* If `true`, the component is shown.
|
|
1183
|
+
*/
|
|
1184
|
+
open: i.bool.isRequired,
|
|
1185
|
+
/**
|
|
1186
|
+
* Popper placement.
|
|
1187
|
+
* @default 'bottom'
|
|
1188
|
+
*/
|
|
1189
|
+
placement: i.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"]),
|
|
1190
|
+
/**
|
|
1191
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1192
|
+
* @default {}
|
|
1193
|
+
*/
|
|
1194
|
+
popperOptions: i.shape({
|
|
1195
|
+
modifiers: i.array,
|
|
1196
|
+
onFirstUpdate: i.func,
|
|
1197
|
+
placement: i.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
|
+
strategy: i.oneOf(["absolute", "fixed"])
|
|
1199
|
+
}),
|
|
1200
|
+
/**
|
|
1201
|
+
* A ref that points to the used popper instance.
|
|
1202
|
+
*/
|
|
1203
|
+
popperRef: at,
|
|
1204
|
+
/**
|
|
1205
|
+
* The props used for each slot inside the Popper.
|
|
1206
|
+
* @default {}
|
|
1207
|
+
*/
|
|
1208
|
+
slotProps: i.shape({
|
|
1209
|
+
root: i.oneOfType([i.func, i.object])
|
|
1210
|
+
}),
|
|
1211
|
+
/**
|
|
1212
|
+
* The components used for each slot inside the Popper.
|
|
1213
|
+
* Either a string to use a HTML element or a component.
|
|
1214
|
+
* @default {}
|
|
1215
|
+
*/
|
|
1216
|
+
slots: i.shape({
|
|
1217
|
+
root: i.elementType
|
|
1218
|
+
}),
|
|
1219
|
+
/**
|
|
1220
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1221
|
+
* @default false
|
|
1222
|
+
*/
|
|
1223
|
+
transition: i.bool
|
|
1224
|
+
});
|
|
1225
|
+
const Ir = Dt(mt, {
|
|
1226
|
+
name: "MuiPopper",
|
|
1227
|
+
slot: "Root",
|
|
1228
|
+
overridesResolver: (e, t) => t.root
|
|
1229
|
+
})({}), Fr = /* @__PURE__ */ L.forwardRef(function(t, r) {
|
|
1230
|
+
const o = Pt(), n = Mt({
|
|
1231
|
+
props: t,
|
|
1232
|
+
name: "MuiPopper"
|
|
1233
|
+
}), {
|
|
1234
|
+
anchorEl: s,
|
|
1235
|
+
component: c,
|
|
1236
|
+
components: a,
|
|
1237
|
+
componentsProps: p,
|
|
1238
|
+
container: l,
|
|
1239
|
+
disablePortal: f,
|
|
1240
|
+
keepMounted: h,
|
|
1241
|
+
modifiers: b,
|
|
1242
|
+
open: u,
|
|
1243
|
+
placement: x,
|
|
1244
|
+
popperOptions: v,
|
|
1245
|
+
popperRef: m,
|
|
1246
|
+
transition: w,
|
|
1247
|
+
slots: P,
|
|
1248
|
+
slotProps: O,
|
|
1249
|
+
...d
|
|
1250
|
+
} = n, y = (P == null ? void 0 : P.root) ?? (a == null ? void 0 : a.Root), g = {
|
|
1251
|
+
anchorEl: s,
|
|
1252
|
+
container: l,
|
|
1253
|
+
disablePortal: f,
|
|
1254
|
+
keepMounted: h,
|
|
1255
|
+
modifiers: b,
|
|
1256
|
+
open: u,
|
|
1257
|
+
placement: x,
|
|
1258
|
+
popperOptions: v,
|
|
1259
|
+
popperRef: m,
|
|
1260
|
+
transition: w,
|
|
1261
|
+
...d
|
|
1262
|
+
};
|
|
1263
|
+
return /* @__PURE__ */ be(Ir, {
|
|
1264
|
+
as: c,
|
|
1265
|
+
direction: o ? "rtl" : "ltr",
|
|
1266
|
+
slots: {
|
|
1267
|
+
root: y
|
|
1268
|
+
},
|
|
1269
|
+
slotProps: O ?? p,
|
|
1270
|
+
...g,
|
|
1271
|
+
ref: r
|
|
1272
|
+
});
|
|
1273
|
+
});
|
|
1274
|
+
process.env.NODE_ENV !== "production" && (Fr.propTypes = {
|
|
1275
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1276
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1277
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1278
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1279
|
+
/**
|
|
1280
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1281
|
+
* or a function that returns either.
|
|
1282
|
+
* It's used to set the position of the popper.
|
|
1283
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1284
|
+
*/
|
|
1285
|
+
anchorEl: i.oneOfType([we, i.object, i.func]),
|
|
1286
|
+
/**
|
|
1287
|
+
* Popper render function or node.
|
|
1288
|
+
*/
|
|
1289
|
+
children: i.oneOfType([i.node, i.func]),
|
|
1290
|
+
/**
|
|
1291
|
+
* The component used for the root node.
|
|
1292
|
+
* Either a string to use a HTML element or a component.
|
|
1293
|
+
*/
|
|
1294
|
+
component: i.elementType,
|
|
1295
|
+
/**
|
|
1296
|
+
* The components used for each slot inside the Popper.
|
|
1297
|
+
* Either a string to use a HTML element or a component.
|
|
1298
|
+
*
|
|
1299
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1300
|
+
* @default {}
|
|
1301
|
+
*/
|
|
1302
|
+
components: i.shape({
|
|
1303
|
+
Root: i.elementType
|
|
1304
|
+
}),
|
|
1305
|
+
/**
|
|
1306
|
+
* The props used for each slot inside the Popper.
|
|
1307
|
+
*
|
|
1308
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
1309
|
+
* @default {}
|
|
1310
|
+
*/
|
|
1311
|
+
componentsProps: i.shape({
|
|
1312
|
+
root: i.oneOfType([i.func, i.object])
|
|
1313
|
+
}),
|
|
1314
|
+
/**
|
|
1315
|
+
* An HTML element or function that returns one.
|
|
1316
|
+
* The `container` will have the portal children appended to it.
|
|
1317
|
+
*
|
|
1318
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1319
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1320
|
+
*
|
|
1321
|
+
* By default, it uses the body of the top-level document object,
|
|
1322
|
+
* so it's simply `document.body` most of the time.
|
|
1323
|
+
*/
|
|
1324
|
+
container: i.oneOfType([we, i.func]),
|
|
1325
|
+
/**
|
|
1326
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1327
|
+
* @default false
|
|
1328
|
+
*/
|
|
1329
|
+
disablePortal: i.bool,
|
|
1330
|
+
/**
|
|
1331
|
+
* Always keep the children in the DOM.
|
|
1332
|
+
* This prop can be useful in SEO situation or
|
|
1333
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1334
|
+
* @default false
|
|
1335
|
+
*/
|
|
1336
|
+
keepMounted: i.bool,
|
|
1337
|
+
/**
|
|
1338
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1339
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1340
|
+
*
|
|
1341
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1342
|
+
* compute the position of the popper.
|
|
1343
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1344
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1345
|
+
*/
|
|
1346
|
+
modifiers: i.arrayOf(i.shape({
|
|
1347
|
+
data: i.object,
|
|
1348
|
+
effect: i.func,
|
|
1349
|
+
enabled: i.bool,
|
|
1350
|
+
fn: i.func,
|
|
1351
|
+
name: i.any,
|
|
1352
|
+
options: i.object,
|
|
1353
|
+
phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1354
|
+
requires: i.arrayOf(i.string),
|
|
1355
|
+
requiresIfExists: i.arrayOf(i.string)
|
|
1356
|
+
})),
|
|
1357
|
+
/**
|
|
1358
|
+
* If `true`, the component is shown.
|
|
1359
|
+
*/
|
|
1360
|
+
open: i.bool.isRequired,
|
|
1361
|
+
/**
|
|
1362
|
+
* Popper placement.
|
|
1363
|
+
* @default 'bottom'
|
|
1364
|
+
*/
|
|
1365
|
+
placement: i.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"]),
|
|
1366
|
+
/**
|
|
1367
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1368
|
+
* @default {}
|
|
1369
|
+
*/
|
|
1370
|
+
popperOptions: i.shape({
|
|
1371
|
+
modifiers: i.array,
|
|
1372
|
+
onFirstUpdate: i.func,
|
|
1373
|
+
placement: i.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
|
+
strategy: i.oneOf(["absolute", "fixed"])
|
|
1375
|
+
}),
|
|
1376
|
+
/**
|
|
1377
|
+
* A ref that points to the used popper instance.
|
|
1378
|
+
*/
|
|
1379
|
+
popperRef: at,
|
|
1380
|
+
/**
|
|
1381
|
+
* The props used for each slot inside the Popper.
|
|
1382
|
+
* @default {}
|
|
1383
|
+
*/
|
|
1384
|
+
slotProps: i.shape({
|
|
1385
|
+
root: i.oneOfType([i.func, i.object])
|
|
1386
|
+
}),
|
|
1387
|
+
/**
|
|
1388
|
+
* The components used for each slot inside the Popper.
|
|
1389
|
+
* Either a string to use a HTML element or a component.
|
|
1390
|
+
* @default {}
|
|
1391
|
+
*/
|
|
1392
|
+
slots: i.shape({
|
|
1393
|
+
root: i.elementType
|
|
1394
|
+
}),
|
|
1395
|
+
/**
|
|
1396
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1397
|
+
*/
|
|
1398
|
+
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
|
1399
|
+
/**
|
|
1400
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1401
|
+
* @default false
|
|
1402
|
+
*/
|
|
1403
|
+
transition: i.bool
|
|
1404
|
+
});
|
|
1405
|
+
export {
|
|
1406
|
+
Fr as P
|
|
1407
|
+
};
|