@pismo/marola 2.1.64 → 2.1.66
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/Button-CJaBSdv1.js +135 -0
- package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
- package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
- package/dist/Popup-D267EI4e.js +1338 -0
- package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
- package/dist/RadioOption-DyRY8xlF.js +1094 -0
- package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/DropdownMenu.css +1 -1
- package/dist/assets/ToastCard.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
- package/dist/components/Alert/Alert.stories.d.ts +6 -6
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +311 -320
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
- package/dist/components/BankingCard/BankingCard.d.ts +0 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +56 -56
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Chip/Chip.js +3 -3
- package/dist/components/DatePicker/DatePicker.js +742 -639
- package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
- package/dist/components/DatePicker/dateUtils.d.ts +2 -2
- package/dist/components/DatePicker/dateUtils.js +1 -1
- package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +372 -352
- package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
- package/dist/components/Draggable/Draggable.d.ts +0 -1
- package/dist/components/Draggable/Draggable.js +1 -1
- package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
- package/dist/components/Draggable/useDraggable.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +335 -320
- package/dist/components/InputSearch/InputSearch.d.ts +31 -31
- package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverBody.d.ts +0 -1
- package/dist/components/Popover/PopoverFooter.d.ts +0 -1
- package/dist/components/Popover/PopoverHeader.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.js +684 -769
- package/dist/components/RadioButton/RadioOption.d.ts +0 -1
- package/dist/components/RadioButton/RadioOption.js +3 -3
- package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
- package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +625 -591
- package/dist/components/Skeleton/Skeleton.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +295 -239
- package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
- package/dist/components/Table/Table.stories.d.ts +5 -5
- package/dist/components/Tabs/Tab.js +107 -98
- package/dist/components/Tabs/TabPanel.js +58 -55
- package/dist/components/Tabs/Tabs.js +246 -231
- package/dist/components/ToastCard/ToastCard.js +31 -31
- package/dist/components/Toggle/Toggle.js +147 -137
- package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +266 -325
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
- package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
- package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
- package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
- package/dist/getReactElementRef-iorwYm2A.js +19 -0
- package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
- package/dist/react-BTbo_5A3.js +526 -0
- package/dist/setRef-Bo0HEdBB.js +6 -0
- package/dist/useButton-C2E_LFJp.js +90 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useList-BLW78Lq7.js +446 -0
- package/dist/utils/draggable.d.ts +2 -2
- package/dist/utils/iconsList.js +118 -112
- package/package.json +1 -1
- package/dist/Button-BrEDdtHO.js +0 -130
- package/dist/Popup-Dffqo7wT.js +0 -1246
- package/dist/RadioOption-DYovqiwF.js +0 -720
- package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
- package/dist/exactProp-SYjL19cU.js +0 -13
- package/dist/react-BvI-Sw9b.js +0 -509
- package/dist/useButton-CezPDte8.js +0 -105
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-nqLfZem8.js +0 -435
- package/dist/useSlotProps-CYHDC4TN.js +0 -834
- package/dist/useTimeout-DxF9kiZL.js +0 -36
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as N, jsxs as Le } from "react/jsx-runtime";
|
|
2
2
|
import * as X from "react";
|
|
3
|
-
import { useState as se, useRef as dt, useEffect as
|
|
3
|
+
import { useState as se, useRef as dt, useEffect as Je, useCallback as Xt } from "react";
|
|
4
4
|
import { c as vt } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import { r as
|
|
5
|
+
import { r as Jt, d as Z } from "../../dayjs.min-BtgZiFZY.js";
|
|
6
6
|
import { g as Ve } from "../../_commonjsHelpers-C6fGbg64.js";
|
|
7
|
-
import { DoubleInput as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { Input as
|
|
10
|
-
import { isDisabled as
|
|
11
|
-
import { handleDatePickerKeyDown as
|
|
12
|
-
import { renderCalendarDays as
|
|
13
|
-
import { renderDualCalendarHeader as
|
|
14
|
-
import { renderHeader as
|
|
15
|
-
import { renderNavigatorInput as
|
|
16
|
-
import { renderPeriodSelection as
|
|
7
|
+
import { DoubleInput as Kt } from "../DoubleInput/DoubleInput.js";
|
|
8
|
+
import { Icon as Ke } from "../Icon/Icon.js";
|
|
9
|
+
import { Input as Gt } from "../Input/Input.js";
|
|
10
|
+
import { isDisabled as Zt, getPreviousMonth as Qt, getNextMonth as er } from "./dateUtils.js";
|
|
11
|
+
import { handleDatePickerKeyDown as tr } from "./keyboardNavigation.js";
|
|
12
|
+
import { renderCalendarDays as rr } from "./renderCalendarDays.js";
|
|
13
|
+
import { renderDualCalendarHeader as nr } from "./renderDualCalendarHeader.js";
|
|
14
|
+
import { renderHeader as or } from "./renderHeader.js";
|
|
15
|
+
import { renderNavigatorInput as ar } from "./renderNavigatorInput.js";
|
|
16
|
+
import { renderPeriodSelection as ir } from "./renderPeriodSelection.js";
|
|
17
17
|
import { s as le } from "../../DatePicker.module-DgXp-rJ0.js";
|
|
18
|
-
import { P as
|
|
19
|
-
import { o as ht, c as
|
|
20
|
-
import { P as
|
|
21
|
-
import { u as
|
|
22
|
-
import { C as
|
|
23
|
-
const
|
|
24
|
-
var
|
|
25
|
-
return t.concat([e + "-" + me, e + "-" +
|
|
26
|
-
}, []),
|
|
27
|
-
return t.concat([e, e + "-" + me, e + "-" +
|
|
28
|
-
}, []), hr = "beforeRead", yr = "read", gr = "afterRead", br = "beforeMain", xr = "main", wr = "afterMain", Or = "beforeWrite",
|
|
18
|
+
import { P as f, g as sr, a as lr, u as mt, b as cr, c as fr, d as pr } from "../../ClassNameConfigurator-CVRWfyIa.js";
|
|
19
|
+
import { o as ht, c as $t } from "../../ownerDocument-CU-LCrtd.js";
|
|
20
|
+
import { P as ur, H as Ze } from "../../Portal-BrGvxB96.js";
|
|
21
|
+
import { u as yt } from "../../useEnhancedEffect-CJGo-L3B.js";
|
|
22
|
+
import { C as dr } from "../../ClickAwayListener-BnYMO5Ki.js";
|
|
23
|
+
const St = f.oneOfType([f.func, f.object]);
|
|
24
|
+
var H = "top", V = "bottom", U = "right", I = "left", tt = "auto", Re = [H, V, U, I], me = "start", Pe = "end", vr = "clippingParents", Lt = "viewport", Oe = "popper", mr = "reference", gt = /* @__PURE__ */ Re.reduce(function(t, e) {
|
|
25
|
+
return t.concat([e + "-" + me, e + "-" + Pe]);
|
|
26
|
+
}, []), _t = /* @__PURE__ */ [].concat(Re, [tt]).reduce(function(t, e) {
|
|
27
|
+
return t.concat([e, e + "-" + me, e + "-" + Pe]);
|
|
28
|
+
}, []), hr = "beforeRead", yr = "read", gr = "afterRead", br = "beforeMain", xr = "main", wr = "afterMain", Or = "beforeWrite", Er = "write", Mr = "afterWrite", Pr = [hr, yr, gr, br, xr, wr, Or, Er, Mr];
|
|
29
29
|
function ee(t) {
|
|
30
30
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function q(t) {
|
|
33
33
|
if (t == null)
|
|
34
34
|
return window;
|
|
35
35
|
if (t.toString() !== "[object Window]") {
|
|
@@ -38,31 +38,31 @@ function W(t) {
|
|
|
38
38
|
}
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
var e =
|
|
41
|
+
function fe(t) {
|
|
42
|
+
var e = q(t).Element;
|
|
43
43
|
return t instanceof e || t instanceof Element;
|
|
44
44
|
}
|
|
45
45
|
function F(t) {
|
|
46
|
-
var e =
|
|
46
|
+
var e = q(t).HTMLElement;
|
|
47
47
|
return t instanceof e || t instanceof HTMLElement;
|
|
48
48
|
}
|
|
49
49
|
function rt(t) {
|
|
50
50
|
if (typeof ShadowRoot > "u")
|
|
51
51
|
return !1;
|
|
52
|
-
var e =
|
|
52
|
+
var e = q(t).ShadowRoot;
|
|
53
53
|
return t instanceof e || t instanceof ShadowRoot;
|
|
54
54
|
}
|
|
55
55
|
function Dr(t) {
|
|
56
56
|
var e = t.state;
|
|
57
57
|
Object.keys(e.elements).forEach(function(r) {
|
|
58
|
-
var n = e.styles[r] || {}, o = e.attributes[r] || {},
|
|
59
|
-
!F(
|
|
60
|
-
var
|
|
61
|
-
|
|
58
|
+
var n = e.styles[r] || {}, o = e.attributes[r] || {}, i = e.elements[r];
|
|
59
|
+
!F(i) || !ee(i) || (Object.assign(i.style, n), Object.keys(o).forEach(function(c) {
|
|
60
|
+
var a = o[c];
|
|
61
|
+
a === !1 ? i.removeAttribute(c) : i.setAttribute(c, a === !0 ? "" : a);
|
|
62
62
|
}));
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Tr(t) {
|
|
66
66
|
var e = t.state, r = {
|
|
67
67
|
popper: {
|
|
68
68
|
position: e.options.strategy,
|
|
@@ -77,50 +77,50 @@ function Rr(t) {
|
|
|
77
77
|
};
|
|
78
78
|
return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
|
|
79
79
|
Object.keys(e.elements).forEach(function(n) {
|
|
80
|
-
var o = e.elements[n],
|
|
80
|
+
var o = e.elements[n], i = e.attributes[n] || {}, c = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), a = c.reduce(function(s, p) {
|
|
81
81
|
return s[p] = "", s;
|
|
82
82
|
}, {});
|
|
83
|
-
!F(o) || !ee(o) || (Object.assign(o.style,
|
|
83
|
+
!F(o) || !ee(o) || (Object.assign(o.style, a), Object.keys(i).forEach(function(s) {
|
|
84
84
|
o.removeAttribute(s);
|
|
85
85
|
}));
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const Rr = {
|
|
90
90
|
name: "applyStyles",
|
|
91
91
|
enabled: !0,
|
|
92
92
|
phase: "write",
|
|
93
93
|
fn: Dr,
|
|
94
|
-
effect:
|
|
94
|
+
effect: Tr,
|
|
95
95
|
requires: ["computeStyles"]
|
|
96
96
|
};
|
|
97
97
|
function Q(t) {
|
|
98
98
|
return t.split("-")[0];
|
|
99
99
|
}
|
|
100
|
-
var ce = Math.max,
|
|
100
|
+
var ce = Math.max, Fe = Math.min, he = Math.round;
|
|
101
101
|
function Qe() {
|
|
102
102
|
var t = navigator.userAgentData;
|
|
103
103
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
104
104
|
return e.brand + "/" + e.version;
|
|
105
105
|
}).join(" ") : navigator.userAgent;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Yt() {
|
|
108
108
|
return !/^((?!chrome|android).)*safari/i.test(Qe());
|
|
109
109
|
}
|
|
110
110
|
function ye(t, e, r) {
|
|
111
111
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
112
|
-
var n = t.getBoundingClientRect(), o = 1,
|
|
113
|
-
e && F(t) && (o = t.offsetWidth > 0 && he(n.width) / t.offsetWidth || 1,
|
|
114
|
-
var
|
|
112
|
+
var n = t.getBoundingClientRect(), o = 1, i = 1;
|
|
113
|
+
e && F(t) && (o = t.offsetWidth > 0 && he(n.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && he(n.height) / t.offsetHeight || 1);
|
|
114
|
+
var c = fe(t) ? q(t) : window, a = c.visualViewport, s = !Yt() && r, p = (n.left + (s && a ? a.offsetLeft : 0)) / o, l = (n.top + (s && a ? a.offsetTop : 0)) / i, y = n.width / o, h = n.height / i;
|
|
115
115
|
return {
|
|
116
|
-
width:
|
|
117
|
-
height:
|
|
118
|
-
top:
|
|
119
|
-
right: p +
|
|
120
|
-
bottom:
|
|
116
|
+
width: y,
|
|
117
|
+
height: h,
|
|
118
|
+
top: l,
|
|
119
|
+
right: p + y,
|
|
120
|
+
bottom: l + h,
|
|
121
121
|
left: p,
|
|
122
122
|
x: p,
|
|
123
|
-
y:
|
|
123
|
+
y: l
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function nt(t) {
|
|
@@ -147,13 +147,13 @@ function Bt(t, e) {
|
|
|
147
147
|
return !1;
|
|
148
148
|
}
|
|
149
149
|
function ne(t) {
|
|
150
|
-
return
|
|
150
|
+
return q(t).getComputedStyle(t);
|
|
151
151
|
}
|
|
152
152
|
function Ar(t) {
|
|
153
153
|
return ["table", "td", "th"].indexOf(ee(t)) >= 0;
|
|
154
154
|
}
|
|
155
155
|
function ie(t) {
|
|
156
|
-
return ((
|
|
156
|
+
return ((fe(t) ? t.ownerDocument : (
|
|
157
157
|
// $FlowFixMe[prop-missing]
|
|
158
158
|
t.document
|
|
159
159
|
)) || window.document).documentElement;
|
|
@@ -170,7 +170,7 @@ function Ue(t) {
|
|
|
170
170
|
ie(t)
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function bt(t) {
|
|
174
174
|
return !F(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
175
175
|
ne(t).position === "fixed" ? null : t.offsetParent;
|
|
176
176
|
}
|
|
@@ -183,29 +183,29 @@ function kr(t) {
|
|
|
183
183
|
}
|
|
184
184
|
var o = Ue(t);
|
|
185
185
|
for (rt(o) && (o = o.host); F(o) && ["html", "body"].indexOf(ee(o)) < 0; ) {
|
|
186
|
-
var
|
|
187
|
-
if (
|
|
186
|
+
var i = ne(o);
|
|
187
|
+
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
|
|
188
188
|
return o;
|
|
189
189
|
o = o.parentNode;
|
|
190
190
|
}
|
|
191
191
|
return null;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
for (var e =
|
|
195
|
-
r =
|
|
193
|
+
function Ae(t) {
|
|
194
|
+
for (var e = q(t), r = bt(t); r && Ar(r) && ne(r).position === "static"; )
|
|
195
|
+
r = bt(r);
|
|
196
196
|
return r && (ee(r) === "html" || ee(r) === "body" && ne(r).position === "static") ? e : r || kr(t) || e;
|
|
197
197
|
}
|
|
198
198
|
function ot(t) {
|
|
199
199
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return ce(t,
|
|
201
|
+
function Ee(t, e, r) {
|
|
202
|
+
return ce(t, Fe(e, r));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
var n =
|
|
204
|
+
function jr(t, e, r) {
|
|
205
|
+
var n = Ee(t, e, r);
|
|
206
206
|
return n > r ? r : n;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Nt() {
|
|
209
209
|
return {
|
|
210
210
|
top: 0,
|
|
211
211
|
right: 0,
|
|
@@ -213,101 +213,101 @@ function Ht() {
|
|
|
213
213
|
left: 0
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
return Object.assign({},
|
|
216
|
+
function Ht(t) {
|
|
217
|
+
return Object.assign({}, Nt(), t);
|
|
218
218
|
}
|
|
219
219
|
function It(t, e) {
|
|
220
220
|
return e.reduce(function(r, n) {
|
|
221
221
|
return r[n] = t, r;
|
|
222
222
|
}, {});
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var Cr = function(e, r) {
|
|
225
225
|
return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
|
|
226
226
|
placement: r.placement
|
|
227
|
-
})) : e,
|
|
227
|
+
})) : e, Ht(typeof e != "number" ? e : It(e, Re));
|
|
228
228
|
};
|
|
229
|
-
function
|
|
230
|
-
var e, r = t.state, n = t.name, o = t.options,
|
|
231
|
-
if (!(!
|
|
232
|
-
var
|
|
233
|
-
r.modifiersData[n] = (e = {}, e[
|
|
229
|
+
function $r(t) {
|
|
230
|
+
var e, r = t.state, n = t.name, o = t.options, i = r.elements.arrow, c = r.modifiersData.popperOffsets, a = Q(r.placement), s = ot(a), p = [I, U].indexOf(a) >= 0, l = p ? "height" : "width";
|
|
231
|
+
if (!(!i || !c)) {
|
|
232
|
+
var y = Cr(o.padding, r), h = nt(i), u = s === "y" ? H : I, b = s === "y" ? V : U, d = r.rects.reference[l] + r.rects.reference[s] - c[s] - r.rects.popper[l], m = c[s] - r.rects.reference[s], M = Ae(i), R = M ? s === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, E = d / 2 - m / 2, v = y[u], g = R - h[l] - y[b], x = R / 2 - h[l] / 2 + E, O = Ee(v, x, g), $ = s;
|
|
233
|
+
r.modifiersData[n] = (e = {}, e[$] = O, e.centerOffset = O - x, e);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Sr(t) {
|
|
237
237
|
var e = t.state, r = t.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
238
238
|
o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Bt(e.elements.popper, o) && (e.elements.arrow = o));
|
|
239
239
|
}
|
|
240
|
-
const
|
|
240
|
+
const Lr = {
|
|
241
241
|
name: "arrow",
|
|
242
242
|
enabled: !0,
|
|
243
243
|
phase: "main",
|
|
244
|
-
fn:
|
|
245
|
-
effect:
|
|
244
|
+
fn: $r,
|
|
245
|
+
effect: Sr,
|
|
246
246
|
requires: ["popperOffsets"],
|
|
247
247
|
requiresIfExists: ["preventOverflow"]
|
|
248
248
|
};
|
|
249
249
|
function ge(t) {
|
|
250
250
|
return t.split("-")[1];
|
|
251
251
|
}
|
|
252
|
-
var
|
|
252
|
+
var _r = {
|
|
253
253
|
top: "auto",
|
|
254
254
|
right: "auto",
|
|
255
255
|
bottom: "auto",
|
|
256
256
|
left: "auto"
|
|
257
257
|
};
|
|
258
|
-
function
|
|
258
|
+
function Yr(t, e) {
|
|
259
259
|
var r = t.x, n = t.y, o = e.devicePixelRatio || 1;
|
|
260
260
|
return {
|
|
261
261
|
x: he(r * o) / o || 0,
|
|
262
262
|
y: he(n * o) / o || 0
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var e, r = t.popper, n = t.popperRect, o = t.placement,
|
|
265
|
+
function xt(t) {
|
|
266
|
+
var e, r = t.popper, n = t.popperRect, o = t.placement, i = t.variation, c = t.offsets, a = t.position, s = t.gpuAcceleration, p = t.adaptive, l = t.roundOffsets, y = t.isFixed, h = c.x, u = h === void 0 ? 0 : h, b = c.y, d = b === void 0 ? 0 : b, m = typeof l == "function" ? l({
|
|
267
267
|
x: u,
|
|
268
|
-
y:
|
|
268
|
+
y: d
|
|
269
269
|
}) : {
|
|
270
270
|
x: u,
|
|
271
|
-
y:
|
|
271
|
+
y: d
|
|
272
272
|
};
|
|
273
|
-
u =
|
|
274
|
-
var
|
|
273
|
+
u = m.x, d = m.y;
|
|
274
|
+
var M = c.hasOwnProperty("x"), R = c.hasOwnProperty("y"), E = I, v = H, g = window;
|
|
275
275
|
if (p) {
|
|
276
|
-
var x =
|
|
277
|
-
if (x ===
|
|
278
|
-
|
|
279
|
-
var
|
|
276
|
+
var x = Ae(r), O = "clientHeight", $ = "clientWidth";
|
|
277
|
+
if (x === q(r) && (x = ie(r), ne(x).position !== "static" && a === "absolute" && (O = "scrollHeight", $ = "scrollWidth")), x = x, o === H || (o === I || o === U) && i === Pe) {
|
|
278
|
+
v = V;
|
|
279
|
+
var P = y && x === g && g.visualViewport ? g.visualViewport.height : (
|
|
280
280
|
// $FlowFixMe[prop-missing]
|
|
281
281
|
x[O]
|
|
282
282
|
);
|
|
283
|
-
|
|
283
|
+
d -= P - n.height, d *= s ? 1 : -1;
|
|
284
284
|
}
|
|
285
|
-
if (o === I || (o ===
|
|
286
|
-
|
|
287
|
-
var A =
|
|
285
|
+
if (o === I || (o === H || o === V) && i === Pe) {
|
|
286
|
+
E = U;
|
|
287
|
+
var A = y && x === g && g.visualViewport ? g.visualViewport.width : (
|
|
288
288
|
// $FlowFixMe[prop-missing]
|
|
289
|
-
x[
|
|
289
|
+
x[$]
|
|
290
290
|
);
|
|
291
291
|
u -= A - n.width, u *= s ? 1 : -1;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
var k = Object.assign({
|
|
295
|
-
position:
|
|
296
|
-
}, p &&
|
|
295
|
+
position: a
|
|
296
|
+
}, p && _r), _ = l === !0 ? Yr({
|
|
297
297
|
x: u,
|
|
298
|
-
y:
|
|
299
|
-
},
|
|
298
|
+
y: d
|
|
299
|
+
}, q(r)) : {
|
|
300
300
|
x: u,
|
|
301
|
-
y:
|
|
301
|
+
y: d
|
|
302
302
|
};
|
|
303
|
-
if (u =
|
|
303
|
+
if (u = _.x, d = _.y, s) {
|
|
304
304
|
var w;
|
|
305
|
-
return Object.assign({}, k, (w = {}, w[
|
|
305
|
+
return Object.assign({}, k, (w = {}, w[v] = R ? "0" : "", w[E] = M ? "0" : "", w.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + d + "px)" : "translate3d(" + u + "px, " + d + "px, 0)", w));
|
|
306
306
|
}
|
|
307
|
-
return Object.assign({}, k, (e = {}, e[
|
|
307
|
+
return Object.assign({}, k, (e = {}, e[v] = R ? d + "px" : "", e[E] = M ? u + "px" : "", e.transform = "", e));
|
|
308
308
|
}
|
|
309
309
|
function Br(t) {
|
|
310
|
-
var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n,
|
|
310
|
+
var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, c = i === void 0 ? !0 : i, a = r.roundOffsets, s = a === void 0 ? !0 : a, p = {
|
|
311
311
|
placement: Q(e.placement),
|
|
312
312
|
variation: ge(e.placement),
|
|
313
313
|
popper: e.elements.popper,
|
|
@@ -315,12 +315,12 @@ function Br(t) {
|
|
|
315
315
|
gpuAcceleration: o,
|
|
316
316
|
isFixed: e.options.strategy === "fixed"
|
|
317
317
|
};
|
|
318
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
318
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, xt(Object.assign({}, p, {
|
|
319
319
|
offsets: e.modifiersData.popperOffsets,
|
|
320
320
|
position: e.options.strategy,
|
|
321
|
-
adaptive:
|
|
321
|
+
adaptive: c,
|
|
322
322
|
roundOffsets: s
|
|
323
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
323
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, xt(Object.assign({}, p, {
|
|
324
324
|
offsets: e.modifiersData.arrow,
|
|
325
325
|
position: "absolute",
|
|
326
326
|
adaptive: !1,
|
|
@@ -329,24 +329,24 @@ function Br(t) {
|
|
|
329
329
|
"data-popper-placement": e.placement
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
const
|
|
332
|
+
const Nr = {
|
|
333
333
|
name: "computeStyles",
|
|
334
334
|
enabled: !0,
|
|
335
335
|
phase: "beforeWrite",
|
|
336
336
|
fn: Br,
|
|
337
337
|
data: {}
|
|
338
338
|
};
|
|
339
|
-
var
|
|
339
|
+
var _e = {
|
|
340
340
|
passive: !0
|
|
341
341
|
};
|
|
342
|
-
function
|
|
343
|
-
var e = t.state, r = t.instance, n = t.options, o = n.scroll,
|
|
344
|
-
return
|
|
345
|
-
|
|
346
|
-
}),
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}),
|
|
342
|
+
function Hr(t) {
|
|
343
|
+
var e = t.state, r = t.instance, n = t.options, o = n.scroll, i = o === void 0 ? !0 : o, c = n.resize, a = c === void 0 ? !0 : c, s = q(e.elements.popper), p = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
344
|
+
return i && p.forEach(function(l) {
|
|
345
|
+
l.addEventListener("scroll", r.update, _e);
|
|
346
|
+
}), a && s.addEventListener("resize", r.update, _e), function() {
|
|
347
|
+
i && p.forEach(function(l) {
|
|
348
|
+
l.removeEventListener("scroll", r.update, _e);
|
|
349
|
+
}), a && s.removeEventListener("resize", r.update, _e);
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
const Ir = {
|
|
@@ -355,31 +355,31 @@ const Ir = {
|
|
|
355
355
|
phase: "write",
|
|
356
356
|
fn: function() {
|
|
357
357
|
},
|
|
358
|
-
effect:
|
|
358
|
+
effect: Hr,
|
|
359
359
|
data: {}
|
|
360
360
|
};
|
|
361
|
-
var
|
|
361
|
+
var qr = {
|
|
362
362
|
left: "right",
|
|
363
363
|
right: "left",
|
|
364
364
|
bottom: "top",
|
|
365
365
|
top: "bottom"
|
|
366
366
|
};
|
|
367
|
-
function
|
|
367
|
+
function Ye(t) {
|
|
368
368
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
369
|
-
return
|
|
369
|
+
return qr[e];
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var Wr = {
|
|
373
373
|
start: "end",
|
|
374
374
|
end: "start"
|
|
375
375
|
};
|
|
376
|
-
function
|
|
376
|
+
function wt(t) {
|
|
377
377
|
return t.replace(/start|end/g, function(e) {
|
|
378
|
-
return
|
|
378
|
+
return Wr[e];
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
function at(t) {
|
|
382
|
-
var e =
|
|
382
|
+
var e = q(t), r = e.pageXOffset, n = e.pageYOffset;
|
|
383
383
|
return {
|
|
384
384
|
scrollLeft: r,
|
|
385
385
|
scrollTop: n
|
|
@@ -389,25 +389,25 @@ function it(t) {
|
|
|
389
389
|
return ye(ie(t)).left + at(t).scrollLeft;
|
|
390
390
|
}
|
|
391
391
|
function Fr(t, e) {
|
|
392
|
-
var r =
|
|
392
|
+
var r = q(t), n = ie(t), o = r.visualViewport, i = n.clientWidth, c = n.clientHeight, a = 0, s = 0;
|
|
393
393
|
if (o) {
|
|
394
|
-
|
|
395
|
-
var p =
|
|
396
|
-
(p || !p && e === "fixed") && (
|
|
394
|
+
i = o.width, c = o.height;
|
|
395
|
+
var p = Yt();
|
|
396
|
+
(p || !p && e === "fixed") && (a = o.offsetLeft, s = o.offsetTop);
|
|
397
397
|
}
|
|
398
398
|
return {
|
|
399
|
-
width:
|
|
400
|
-
height:
|
|
401
|
-
x:
|
|
399
|
+
width: i,
|
|
400
|
+
height: c,
|
|
401
|
+
x: a + it(t),
|
|
402
402
|
y: s
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
405
|
function Vr(t) {
|
|
406
|
-
var e, r = ie(t), n = at(t), o = (e = t.ownerDocument) == null ? void 0 : e.body,
|
|
407
|
-
return ne(o || r).direction === "rtl" && (
|
|
408
|
-
width:
|
|
409
|
-
height:
|
|
410
|
-
x:
|
|
406
|
+
var e, r = ie(t), n = at(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = ce(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = ce(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -n.scrollLeft + it(t), s = -n.scrollTop;
|
|
407
|
+
return ne(o || r).direction === "rtl" && (a += ce(r.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
408
|
+
width: i,
|
|
409
|
+
height: c,
|
|
410
|
+
x: a,
|
|
411
411
|
y: s
|
|
412
412
|
};
|
|
413
413
|
}
|
|
@@ -415,16 +415,16 @@ function st(t) {
|
|
|
415
415
|
var e = ne(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
|
|
416
416
|
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : F(t) && st(t) ? t :
|
|
418
|
+
function qt(t) {
|
|
419
|
+
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : F(t) && st(t) ? t : qt(Ue(t));
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Me(t, e) {
|
|
422
422
|
var r;
|
|
423
423
|
e === void 0 && (e = []);
|
|
424
|
-
var n =
|
|
425
|
-
return o ?
|
|
424
|
+
var n = qt(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), i = q(n), c = o ? [i].concat(i.visualViewport || [], st(n) ? n : []) : n, a = e.concat(c);
|
|
425
|
+
return o ? a : (
|
|
426
426
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
427
|
-
|
|
427
|
+
a.concat(Me(Ue(c)))
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
function et(t) {
|
|
@@ -439,47 +439,47 @@ function Ur(t, e) {
|
|
|
439
439
|
var r = ye(t, !1, e === "fixed");
|
|
440
440
|
return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
return e ===
|
|
442
|
+
function Ot(t, e, r) {
|
|
443
|
+
return e === Lt ? et(Fr(t, r)) : fe(e) ? Ur(e, r) : et(Vr(ie(t)));
|
|
444
444
|
}
|
|
445
445
|
function zr(t) {
|
|
446
|
-
var e =
|
|
447
|
-
return
|
|
448
|
-
return
|
|
446
|
+
var e = Me(Ue(t)), r = ["absolute", "fixed"].indexOf(ne(t).position) >= 0, n = r && F(t) ? Ae(t) : t;
|
|
447
|
+
return fe(n) ? e.filter(function(o) {
|
|
448
|
+
return fe(o) && Bt(o, n) && ee(o) !== "body";
|
|
449
449
|
}) : [];
|
|
450
450
|
}
|
|
451
451
|
function Xr(t, e, r, n) {
|
|
452
|
-
var o = e === "clippingParents" ? zr(t) : [].concat(e),
|
|
453
|
-
var
|
|
454
|
-
return s.top = ce(
|
|
455
|
-
},
|
|
456
|
-
return
|
|
452
|
+
var o = e === "clippingParents" ? zr(t) : [].concat(e), i = [].concat(o, [r]), c = i[0], a = i.reduce(function(s, p) {
|
|
453
|
+
var l = Ot(t, p, n);
|
|
454
|
+
return s.top = ce(l.top, s.top), s.right = Fe(l.right, s.right), s.bottom = Fe(l.bottom, s.bottom), s.left = ce(l.left, s.left), s;
|
|
455
|
+
}, Ot(t, c, n));
|
|
456
|
+
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
var e = t.reference, r = t.element, n = t.placement, o = n ? Q(n) : null,
|
|
458
|
+
function Wt(t) {
|
|
459
|
+
var e = t.reference, r = t.element, n = t.placement, o = n ? Q(n) : null, i = n ? ge(n) : null, c = e.x + e.width / 2 - r.width / 2, a = e.y + e.height / 2 - r.height / 2, s;
|
|
460
460
|
switch (o) {
|
|
461
|
-
case
|
|
461
|
+
case H:
|
|
462
462
|
s = {
|
|
463
|
-
x:
|
|
463
|
+
x: c,
|
|
464
464
|
y: e.y - r.height
|
|
465
465
|
};
|
|
466
466
|
break;
|
|
467
467
|
case V:
|
|
468
468
|
s = {
|
|
469
|
-
x:
|
|
469
|
+
x: c,
|
|
470
470
|
y: e.y + e.height
|
|
471
471
|
};
|
|
472
472
|
break;
|
|
473
473
|
case U:
|
|
474
474
|
s = {
|
|
475
475
|
x: e.x + e.width,
|
|
476
|
-
y:
|
|
476
|
+
y: a
|
|
477
477
|
};
|
|
478
478
|
break;
|
|
479
479
|
case I:
|
|
480
480
|
s = {
|
|
481
481
|
x: e.x - r.width,
|
|
482
|
-
y:
|
|
482
|
+
y: a
|
|
483
483
|
};
|
|
484
484
|
break;
|
|
485
485
|
default:
|
|
@@ -490,13 +490,13 @@ function qt(t) {
|
|
|
490
490
|
}
|
|
491
491
|
var p = o ? ot(o) : null;
|
|
492
492
|
if (p != null) {
|
|
493
|
-
var
|
|
494
|
-
switch (
|
|
493
|
+
var l = p === "y" ? "height" : "width";
|
|
494
|
+
switch (i) {
|
|
495
495
|
case me:
|
|
496
|
-
s[p] = s[p] - (e[
|
|
496
|
+
s[p] = s[p] - (e[l] / 2 - r[l] / 2);
|
|
497
497
|
break;
|
|
498
|
-
case
|
|
499
|
-
s[p] = s[p] + (e[
|
|
498
|
+
case Pe:
|
|
499
|
+
s[p] = s[p] + (e[l] / 2 - r[l] / 2);
|
|
500
500
|
break;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
@@ -504,84 +504,84 @@ function qt(t) {
|
|
|
504
504
|
}
|
|
505
505
|
function De(t, e) {
|
|
506
506
|
e === void 0 && (e = {});
|
|
507
|
-
var r = e, n = r.placement, o = n === void 0 ? t.placement : n,
|
|
507
|
+
var r = e, n = r.placement, o = n === void 0 ? t.placement : n, i = r.strategy, c = i === void 0 ? t.strategy : i, a = r.boundary, s = a === void 0 ? vr : a, p = r.rootBoundary, l = p === void 0 ? Lt : p, y = r.elementContext, h = y === void 0 ? Oe : y, u = r.altBoundary, b = u === void 0 ? !1 : u, d = r.padding, m = d === void 0 ? 0 : d, M = Ht(typeof m != "number" ? m : It(m, Re)), R = h === Oe ? mr : Oe, E = t.rects.popper, v = t.elements[b ? R : h], g = Xr(fe(v) ? v : v.contextElement || ie(t.elements.popper), s, l, c), x = ye(t.elements.reference), O = Wt({
|
|
508
508
|
reference: x,
|
|
509
|
-
element:
|
|
509
|
+
element: E,
|
|
510
510
|
placement: o
|
|
511
|
-
}),
|
|
512
|
-
top:
|
|
513
|
-
bottom:
|
|
514
|
-
left:
|
|
515
|
-
right:
|
|
511
|
+
}), $ = et(Object.assign({}, E, O)), P = h === Oe ? $ : x, A = {
|
|
512
|
+
top: g.top - P.top + M.top,
|
|
513
|
+
bottom: P.bottom - g.bottom + M.bottom,
|
|
514
|
+
left: g.left - P.left + M.left,
|
|
515
|
+
right: P.right - g.right + M.right
|
|
516
516
|
}, k = t.modifiersData.offset;
|
|
517
|
-
if (
|
|
518
|
-
var
|
|
517
|
+
if (h === Oe && k) {
|
|
518
|
+
var _ = k[o];
|
|
519
519
|
Object.keys(A).forEach(function(w) {
|
|
520
|
-
var B = [U, V].indexOf(w) >= 0 ? 1 : -1,
|
|
521
|
-
A[w] +=
|
|
520
|
+
var B = [U, V].indexOf(w) >= 0 ? 1 : -1, S = [H, V].indexOf(w) >= 0 ? "y" : "x";
|
|
521
|
+
A[w] += _[S] * B;
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
524
|
return A;
|
|
525
525
|
}
|
|
526
526
|
function Jr(t, e) {
|
|
527
527
|
e === void 0 && (e = {});
|
|
528
|
-
var r = e, n = r.placement, o = r.boundary,
|
|
529
|
-
return ge(b) ===
|
|
530
|
-
}) : Re,
|
|
528
|
+
var r = e, n = r.placement, o = r.boundary, i = r.rootBoundary, c = r.padding, a = r.flipVariations, s = r.allowedAutoPlacements, p = s === void 0 ? _t : s, l = ge(n), y = l ? a ? gt : gt.filter(function(b) {
|
|
529
|
+
return ge(b) === l;
|
|
530
|
+
}) : Re, h = y.filter(function(b) {
|
|
531
531
|
return p.indexOf(b) >= 0;
|
|
532
532
|
});
|
|
533
|
-
|
|
534
|
-
var u =
|
|
535
|
-
return b[
|
|
536
|
-
placement:
|
|
533
|
+
h.length === 0 && (h = y);
|
|
534
|
+
var u = h.reduce(function(b, d) {
|
|
535
|
+
return b[d] = De(t, {
|
|
536
|
+
placement: d,
|
|
537
537
|
boundary: o,
|
|
538
|
-
rootBoundary:
|
|
539
|
-
padding:
|
|
540
|
-
})[Q(
|
|
538
|
+
rootBoundary: i,
|
|
539
|
+
padding: c
|
|
540
|
+
})[Q(d)], b;
|
|
541
541
|
}, {});
|
|
542
|
-
return Object.keys(u).sort(function(b,
|
|
543
|
-
return u[b] - u[
|
|
542
|
+
return Object.keys(u).sort(function(b, d) {
|
|
543
|
+
return u[b] - u[d];
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
546
|
function Kr(t) {
|
|
547
547
|
if (Q(t) === tt)
|
|
548
548
|
return [];
|
|
549
|
-
var e =
|
|
550
|
-
return [
|
|
549
|
+
var e = Ye(t);
|
|
550
|
+
return [wt(t), e, wt(e)];
|
|
551
551
|
}
|
|
552
552
|
function Gr(t) {
|
|
553
553
|
var e = t.state, r = t.options, n = t.name;
|
|
554
554
|
if (!e.modifiersData[n]._skip) {
|
|
555
|
-
for (var o = r.mainAxis,
|
|
555
|
+
for (var o = r.mainAxis, i = o === void 0 ? !0 : o, c = r.altAxis, a = c === void 0 ? !0 : c, s = r.fallbackPlacements, p = r.padding, l = r.boundary, y = r.rootBoundary, h = r.altBoundary, u = r.flipVariations, b = u === void 0 ? !0 : u, d = r.allowedAutoPlacements, m = e.options.placement, M = Q(m), R = M === m, E = s || (R || !b ? [Ye(m)] : Kr(m)), v = [m].concat(E).reduce(function(K, z) {
|
|
556
556
|
return K.concat(Q(z) === tt ? Jr(e, {
|
|
557
557
|
placement: z,
|
|
558
|
-
boundary:
|
|
559
|
-
rootBoundary:
|
|
558
|
+
boundary: l,
|
|
559
|
+
rootBoundary: y,
|
|
560
560
|
padding: p,
|
|
561
561
|
flipVariations: b,
|
|
562
|
-
allowedAutoPlacements:
|
|
562
|
+
allowedAutoPlacements: d
|
|
563
563
|
}) : z);
|
|
564
|
-
}, []),
|
|
565
|
-
var k =
|
|
564
|
+
}, []), g = e.rects.reference, x = e.rects.popper, O = /* @__PURE__ */ new Map(), $ = !0, P = v[0], A = 0; A < v.length; A++) {
|
|
565
|
+
var k = v[A], _ = Q(k), w = ge(k) === me, B = [H, V].indexOf(_) >= 0, S = B ? "width" : "height", D = De(e, {
|
|
566
566
|
placement: k,
|
|
567
|
-
boundary:
|
|
568
|
-
rootBoundary:
|
|
569
|
-
altBoundary:
|
|
567
|
+
boundary: l,
|
|
568
|
+
rootBoundary: y,
|
|
569
|
+
altBoundary: h,
|
|
570
570
|
padding: p
|
|
571
|
-
}),
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
if (
|
|
571
|
+
}), T = B ? w ? U : I : w ? V : H;
|
|
572
|
+
g[S] > x[S] && (T = Ye(T));
|
|
573
|
+
var C = Ye(T), W = [];
|
|
574
|
+
if (i && W.push(D[_] <= 0), a && W.push(D[T] <= 0, D[C] <= 0), W.every(function(K) {
|
|
575
575
|
return K;
|
|
576
576
|
})) {
|
|
577
|
-
|
|
577
|
+
P = k, $ = !1;
|
|
578
578
|
break;
|
|
579
579
|
}
|
|
580
|
-
O.set(k,
|
|
580
|
+
O.set(k, W);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
for (var oe = b ? 3 : 1,
|
|
584
|
-
var te =
|
|
582
|
+
if ($)
|
|
583
|
+
for (var oe = b ? 3 : 1, Y = function(z) {
|
|
584
|
+
var te = v.find(function(ue) {
|
|
585
585
|
var re = O.get(ue);
|
|
586
586
|
if (re)
|
|
587
587
|
return re.slice(0, z).every(function(de) {
|
|
@@ -589,12 +589,12 @@ function Gr(t) {
|
|
|
589
589
|
});
|
|
590
590
|
});
|
|
591
591
|
if (te)
|
|
592
|
-
return
|
|
592
|
+
return P = te, "break";
|
|
593
593
|
}, J = oe; J > 0; J--) {
|
|
594
|
-
var
|
|
595
|
-
if (
|
|
594
|
+
var pe = Y(J);
|
|
595
|
+
if (pe === "break") break;
|
|
596
596
|
}
|
|
597
|
-
e.placement !==
|
|
597
|
+
e.placement !== P && (e.modifiersData[n]._skip = !0, e.placement = P, e.reset = !0);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
const Zr = {
|
|
@@ -619,24 +619,24 @@ function Et(t, e, r) {
|
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
function Mt(t) {
|
|
622
|
-
return [
|
|
622
|
+
return [H, U, V, I].some(function(e) {
|
|
623
623
|
return t[e] >= 0;
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
626
|
function Qr(t) {
|
|
627
|
-
var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper,
|
|
627
|
+
var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, c = De(e, {
|
|
628
628
|
elementContext: "reference"
|
|
629
|
-
}),
|
|
629
|
+
}), a = De(e, {
|
|
630
630
|
altBoundary: !0
|
|
631
|
-
}), s = Et(
|
|
631
|
+
}), s = Et(c, n), p = Et(a, o, i), l = Mt(s), y = Mt(p);
|
|
632
632
|
e.modifiersData[r] = {
|
|
633
633
|
referenceClippingOffsets: s,
|
|
634
634
|
popperEscapeOffsets: p,
|
|
635
|
-
isReferenceHidden:
|
|
636
|
-
hasPopperEscaped:
|
|
635
|
+
isReferenceHidden: l,
|
|
636
|
+
hasPopperEscaped: y
|
|
637
637
|
}, e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
638
|
-
"data-popper-reference-hidden":
|
|
639
|
-
"data-popper-escaped":
|
|
638
|
+
"data-popper-reference-hidden": l,
|
|
639
|
+
"data-popper-escaped": y
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
const en = {
|
|
@@ -647,22 +647,22 @@ const en = {
|
|
|
647
647
|
fn: Qr
|
|
648
648
|
};
|
|
649
649
|
function tn(t, e, r) {
|
|
650
|
-
var n = Q(t), o = [I,
|
|
650
|
+
var n = Q(t), o = [I, H].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
|
|
651
651
|
placement: t
|
|
652
|
-
})) : r,
|
|
653
|
-
return
|
|
654
|
-
x:
|
|
655
|
-
y:
|
|
652
|
+
})) : r, c = i[0], a = i[1];
|
|
653
|
+
return c = c || 0, a = (a || 0) * o, [I, U].indexOf(n) >= 0 ? {
|
|
654
|
+
x: a,
|
|
655
|
+
y: c
|
|
656
656
|
} : {
|
|
657
|
-
x:
|
|
658
|
-
y:
|
|
657
|
+
x: c,
|
|
658
|
+
y: a
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
function rn(t) {
|
|
662
|
-
var e = t.state, r = t.options, n = t.name, o = r.offset,
|
|
663
|
-
return
|
|
664
|
-
}, {}),
|
|
665
|
-
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += p), e.modifiersData[n] =
|
|
662
|
+
var e = t.state, r = t.options, n = t.name, o = r.offset, i = o === void 0 ? [0, 0] : o, c = _t.reduce(function(l, y) {
|
|
663
|
+
return l[y] = tn(y, e.rects, i), l;
|
|
664
|
+
}, {}), a = c[e.placement], s = a.x, p = a.y;
|
|
665
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += p), e.modifiersData[n] = c;
|
|
666
666
|
}
|
|
667
667
|
const nn = {
|
|
668
668
|
name: "offset",
|
|
@@ -673,7 +673,7 @@ const nn = {
|
|
|
673
673
|
};
|
|
674
674
|
function on(t) {
|
|
675
675
|
var e = t.state, r = t.name;
|
|
676
|
-
e.modifiersData[r] =
|
|
676
|
+
e.modifiersData[r] = Wt({
|
|
677
677
|
reference: e.rects.reference,
|
|
678
678
|
element: e.rects.popper,
|
|
679
679
|
placement: e.placement
|
|
@@ -690,36 +690,36 @@ function sn(t) {
|
|
|
690
690
|
return t === "x" ? "y" : "x";
|
|
691
691
|
}
|
|
692
692
|
function ln(t) {
|
|
693
|
-
var e = t.state, r = t.options, n = t.name, o = r.mainAxis,
|
|
693
|
+
var e = t.state, r = t.options, n = t.name, o = r.mainAxis, i = o === void 0 ? !0 : o, c = r.altAxis, a = c === void 0 ? !1 : c, s = r.boundary, p = r.rootBoundary, l = r.altBoundary, y = r.padding, h = r.tether, u = h === void 0 ? !0 : h, b = r.tetherOffset, d = b === void 0 ? 0 : b, m = De(e, {
|
|
694
694
|
boundary: s,
|
|
695
695
|
rootBoundary: p,
|
|
696
|
-
padding:
|
|
697
|
-
altBoundary:
|
|
698
|
-
}),
|
|
696
|
+
padding: y,
|
|
697
|
+
altBoundary: l
|
|
698
|
+
}), M = Q(e.placement), R = ge(e.placement), E = !R, v = ot(M), g = sn(v), x = e.modifiersData.popperOffsets, O = e.rects.reference, $ = e.rects.popper, P = typeof d == "function" ? d(Object.assign({}, e.rects, {
|
|
699
699
|
placement: e.placement
|
|
700
|
-
})) :
|
|
701
|
-
mainAxis:
|
|
702
|
-
altAxis:
|
|
700
|
+
})) : d, A = typeof P == "number" ? {
|
|
701
|
+
mainAxis: P,
|
|
702
|
+
altAxis: P
|
|
703
703
|
} : Object.assign({
|
|
704
704
|
mainAxis: 0,
|
|
705
705
|
altAxis: 0
|
|
706
|
-
},
|
|
706
|
+
}, P), k = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, _ = {
|
|
707
707
|
x: 0,
|
|
708
708
|
y: 0
|
|
709
709
|
};
|
|
710
710
|
if (x) {
|
|
711
|
-
if (
|
|
712
|
-
var w, B =
|
|
711
|
+
if (i) {
|
|
712
|
+
var w, B = v === "y" ? H : I, S = v === "y" ? V : U, D = v === "y" ? "height" : "width", T = x[v], C = T + m[B], W = T - m[S], oe = u ? -$[D] / 2 : 0, Y = R === me ? O[D] : $[D], J = R === me ? -$[D] : -O[D], pe = e.elements.arrow, K = u && pe ? nt(pe) : {
|
|
713
713
|
width: 0,
|
|
714
714
|
height: 0
|
|
715
|
-
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding :
|
|
716
|
-
x[
|
|
715
|
+
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Nt(), te = z[B], ue = z[S], re = Ee(0, O[D], K[D]), de = E ? O[D] / 2 - oe - re - te - A.mainAxis : Y - re - te - A.mainAxis, ae = E ? -O[D] / 2 + oe + re + ue + A.mainAxis : J + re + ue + A.mainAxis, ve = e.elements.arrow && Ae(e.elements.arrow), je = ve ? v === "y" ? ve.clientTop || 0 : ve.clientLeft || 0 : 0, be = (w = k == null ? void 0 : k[v]) != null ? w : 0, ze = T + de - be - je, xe = T + ae - be, Ce = Ee(u ? Fe(C, ze) : C, T, u ? ce(W, xe) : W);
|
|
716
|
+
x[v] = Ce, _[v] = Ce - T;
|
|
717
717
|
}
|
|
718
|
-
if (
|
|
719
|
-
var
|
|
720
|
-
x[
|
|
718
|
+
if (a) {
|
|
719
|
+
var $e, Se = v === "x" ? H : I, j = v === "x" ? V : U, L = x[g], G = g === "y" ? "height" : "width", we = L + m[Se], lt = L - m[j], Xe = [H, I].indexOf(M) !== -1, ct = ($e = k == null ? void 0 : k[g]) != null ? $e : 0, ft = Xe ? we : L - O[G] - $[G] - ct + A.altAxis, pt = Xe ? L + O[G] + $[G] - ct - A.altAxis : lt, ut = u && Xe ? jr(ft, L, pt) : Ee(u ? ft : we, L, u ? pt : lt);
|
|
720
|
+
x[g] = ut, _[g] = ut - L;
|
|
721
721
|
}
|
|
722
|
-
e.modifiersData[n] =
|
|
722
|
+
e.modifiersData[n] = _;
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
const cn = {
|
|
@@ -729,14 +729,14 @@ const cn = {
|
|
|
729
729
|
fn: ln,
|
|
730
730
|
requiresIfExists: ["offset"]
|
|
731
731
|
};
|
|
732
|
-
function
|
|
732
|
+
function fn(t) {
|
|
733
733
|
return {
|
|
734
734
|
scrollLeft: t.scrollLeft,
|
|
735
735
|
scrollTop: t.scrollTop
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
return t ===
|
|
738
|
+
function pn(t) {
|
|
739
|
+
return t === q(t) || !F(t) ? at(t) : fn(t);
|
|
740
740
|
}
|
|
741
741
|
function un(t) {
|
|
742
742
|
var e = t.getBoundingClientRect(), r = he(e.width) / t.offsetWidth || 1, n = he(e.height) / t.offsetHeight || 1;
|
|
@@ -744,7 +744,7 @@ function un(t) {
|
|
|
744
744
|
}
|
|
745
745
|
function dn(t, e, r) {
|
|
746
746
|
r === void 0 && (r = !1);
|
|
747
|
-
var n = F(e), o = F(e) && un(e),
|
|
747
|
+
var n = F(e), o = F(e) && un(e), i = ie(e), c = ye(t, o, r), a = {
|
|
748
748
|
scrollLeft: 0,
|
|
749
749
|
scrollTop: 0
|
|
750
750
|
}, s = {
|
|
@@ -752,35 +752,35 @@ function dn(t, e, r) {
|
|
|
752
752
|
y: 0
|
|
753
753
|
};
|
|
754
754
|
return (n || !n && !r) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
755
|
-
st(
|
|
756
|
-
x:
|
|
757
|
-
y:
|
|
758
|
-
width:
|
|
759
|
-
height:
|
|
755
|
+
st(i)) && (a = pn(e)), F(e) ? (s = ye(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : i && (s.x = it(i))), {
|
|
756
|
+
x: c.left + a.scrollLeft - s.x,
|
|
757
|
+
y: c.top + a.scrollTop - s.y,
|
|
758
|
+
width: c.width,
|
|
759
|
+
height: c.height
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
762
|
function vn(t) {
|
|
763
763
|
var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
764
|
-
t.forEach(function(
|
|
765
|
-
e.set(
|
|
764
|
+
t.forEach(function(i) {
|
|
765
|
+
e.set(i.name, i);
|
|
766
766
|
});
|
|
767
|
-
function o(
|
|
768
|
-
r.add(
|
|
769
|
-
var
|
|
770
|
-
|
|
771
|
-
if (!r.has(
|
|
772
|
-
var s = e.get(
|
|
767
|
+
function o(i) {
|
|
768
|
+
r.add(i.name);
|
|
769
|
+
var c = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
770
|
+
c.forEach(function(a) {
|
|
771
|
+
if (!r.has(a)) {
|
|
772
|
+
var s = e.get(a);
|
|
773
773
|
s && o(s);
|
|
774
774
|
}
|
|
775
|
-
}), n.push(
|
|
775
|
+
}), n.push(i);
|
|
776
776
|
}
|
|
777
|
-
return t.forEach(function(
|
|
778
|
-
r.has(
|
|
777
|
+
return t.forEach(function(i) {
|
|
778
|
+
r.has(i.name) || o(i);
|
|
779
779
|
}), n;
|
|
780
780
|
}
|
|
781
781
|
function mn(t) {
|
|
782
782
|
var e = vn(t);
|
|
783
|
-
return
|
|
783
|
+
return Pr.reduce(function(r, n) {
|
|
784
784
|
return r.concat(e.filter(function(o) {
|
|
785
785
|
return o.phase === n;
|
|
786
786
|
}));
|
|
@@ -808,12 +808,12 @@ function yn(t) {
|
|
|
808
808
|
return e[r];
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
|
-
var
|
|
811
|
+
var Pt = {
|
|
812
812
|
placement: "bottom",
|
|
813
813
|
modifiers: [],
|
|
814
814
|
strategy: "absolute"
|
|
815
815
|
};
|
|
816
|
-
function
|
|
816
|
+
function Dt() {
|
|
817
817
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
818
818
|
e[r] = arguments[r];
|
|
819
819
|
return !e.some(function(n) {
|
|
@@ -822,31 +822,31 @@ function Rt() {
|
|
|
822
822
|
}
|
|
823
823
|
function gn(t) {
|
|
824
824
|
t === void 0 && (t = {});
|
|
825
|
-
var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions,
|
|
826
|
-
return function(
|
|
827
|
-
p === void 0 && (p =
|
|
828
|
-
var
|
|
825
|
+
var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, i = o === void 0 ? Pt : o;
|
|
826
|
+
return function(a, s, p) {
|
|
827
|
+
p === void 0 && (p = i);
|
|
828
|
+
var l = {
|
|
829
829
|
placement: "bottom",
|
|
830
830
|
orderedModifiers: [],
|
|
831
|
-
options: Object.assign({},
|
|
831
|
+
options: Object.assign({}, Pt, i),
|
|
832
832
|
modifiersData: {},
|
|
833
833
|
elements: {
|
|
834
|
-
reference:
|
|
834
|
+
reference: a,
|
|
835
835
|
popper: s
|
|
836
836
|
},
|
|
837
837
|
attributes: {},
|
|
838
838
|
styles: {}
|
|
839
|
-
},
|
|
840
|
-
state:
|
|
841
|
-
setOptions: function(
|
|
842
|
-
var
|
|
843
|
-
|
|
844
|
-
reference:
|
|
845
|
-
popper:
|
|
839
|
+
}, y = [], h = !1, u = {
|
|
840
|
+
state: l,
|
|
841
|
+
setOptions: function(M) {
|
|
842
|
+
var R = typeof M == "function" ? M(l.options) : M;
|
|
843
|
+
d(), l.options = Object.assign({}, i, l.options, R), l.scrollParents = {
|
|
844
|
+
reference: fe(a) ? Me(a) : a.contextElement ? Me(a.contextElement) : [],
|
|
845
|
+
popper: Me(s)
|
|
846
846
|
};
|
|
847
|
-
var
|
|
848
|
-
return
|
|
849
|
-
return
|
|
847
|
+
var E = mn(yn([].concat(n, l.options.modifiers)));
|
|
848
|
+
return l.orderedModifiers = E.filter(function(v) {
|
|
849
|
+
return v.enabled;
|
|
850
850
|
}), b(), u.update();
|
|
851
851
|
},
|
|
852
852
|
// Sync update – it will always be executed, even if not necessary. This
|
|
@@ -855,27 +855,27 @@ function gn(t) {
|
|
|
855
855
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
856
856
|
// prefer the async Popper#update method
|
|
857
857
|
forceUpdate: function() {
|
|
858
|
-
if (!
|
|
859
|
-
var
|
|
860
|
-
if (
|
|
861
|
-
|
|
862
|
-
reference: dn(
|
|
863
|
-
popper: nt(
|
|
864
|
-
},
|
|
865
|
-
return
|
|
858
|
+
if (!h) {
|
|
859
|
+
var M = l.elements, R = M.reference, E = M.popper;
|
|
860
|
+
if (Dt(R, E)) {
|
|
861
|
+
l.rects = {
|
|
862
|
+
reference: dn(R, Ae(E), l.options.strategy === "fixed"),
|
|
863
|
+
popper: nt(E)
|
|
864
|
+
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(A) {
|
|
865
|
+
return l.modifiersData[A.name] = Object.assign({}, A.data);
|
|
866
866
|
});
|
|
867
|
-
for (var
|
|
868
|
-
if (
|
|
869
|
-
|
|
867
|
+
for (var v = 0; v < l.orderedModifiers.length; v++) {
|
|
868
|
+
if (l.reset === !0) {
|
|
869
|
+
l.reset = !1, v = -1;
|
|
870
870
|
continue;
|
|
871
871
|
}
|
|
872
|
-
var
|
|
873
|
-
typeof x == "function" && (
|
|
874
|
-
state:
|
|
875
|
-
options:
|
|
876
|
-
name:
|
|
872
|
+
var g = l.orderedModifiers[v], x = g.fn, O = g.options, $ = O === void 0 ? {} : O, P = g.name;
|
|
873
|
+
typeof x == "function" && (l = x({
|
|
874
|
+
state: l,
|
|
875
|
+
options: $,
|
|
876
|
+
name: P,
|
|
877
877
|
instance: u
|
|
878
|
-
}) ||
|
|
878
|
+
}) || l);
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
}
|
|
@@ -883,52 +883,51 @@ function gn(t) {
|
|
|
883
883
|
// Async and optimistically optimized update – it will not be executed if
|
|
884
884
|
// not necessary (debounced to run at most once-per-tick)
|
|
885
885
|
update: hn(function() {
|
|
886
|
-
return new Promise(function(
|
|
887
|
-
u.forceUpdate(),
|
|
886
|
+
return new Promise(function(m) {
|
|
887
|
+
u.forceUpdate(), m(l);
|
|
888
888
|
});
|
|
889
889
|
}),
|
|
890
890
|
destroy: function() {
|
|
891
|
-
|
|
891
|
+
d(), h = !0;
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
if (!
|
|
894
|
+
if (!Dt(a, s))
|
|
895
895
|
return u;
|
|
896
|
-
u.setOptions(p).then(function(
|
|
897
|
-
!
|
|
896
|
+
u.setOptions(p).then(function(m) {
|
|
897
|
+
!h && p.onFirstUpdate && p.onFirstUpdate(m);
|
|
898
898
|
});
|
|
899
899
|
function b() {
|
|
900
|
-
|
|
901
|
-
var
|
|
902
|
-
if (typeof
|
|
903
|
-
var
|
|
904
|
-
state:
|
|
905
|
-
name:
|
|
900
|
+
l.orderedModifiers.forEach(function(m) {
|
|
901
|
+
var M = m.name, R = m.options, E = R === void 0 ? {} : R, v = m.effect;
|
|
902
|
+
if (typeof v == "function") {
|
|
903
|
+
var g = v({
|
|
904
|
+
state: l,
|
|
905
|
+
name: M,
|
|
906
906
|
instance: u,
|
|
907
|
-
options:
|
|
907
|
+
options: E
|
|
908
908
|
}), x = function() {
|
|
909
909
|
};
|
|
910
|
-
|
|
910
|
+
y.push(g || x);
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
|
|
916
|
-
return
|
|
917
|
-
}),
|
|
914
|
+
function d() {
|
|
915
|
+
y.forEach(function(m) {
|
|
916
|
+
return m();
|
|
917
|
+
}), y = [];
|
|
918
918
|
}
|
|
919
919
|
return u;
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
|
-
var bn = [Ir, an,
|
|
922
|
+
var bn = [Ir, an, Nr, Rr, nn, Zr, cn, Lr, en], xn = /* @__PURE__ */ gn({
|
|
923
923
|
defaultModifiers: bn
|
|
924
924
|
});
|
|
925
925
|
const Ft = "Popper";
|
|
926
926
|
function wn(t) {
|
|
927
|
-
return
|
|
927
|
+
return sr(Ft, t);
|
|
928
928
|
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
function En(t, e) {
|
|
929
|
+
lr(Ft, ["root"]);
|
|
930
|
+
function On(t, e) {
|
|
932
931
|
if (e === "ltr")
|
|
933
932
|
return t;
|
|
934
933
|
switch (t) {
|
|
@@ -944,168 +943,272 @@ function En(t, e) {
|
|
|
944
943
|
return t;
|
|
945
944
|
}
|
|
946
945
|
}
|
|
947
|
-
function
|
|
946
|
+
function Te(t) {
|
|
948
947
|
return typeof t == "function" ? t() : t;
|
|
949
948
|
}
|
|
950
|
-
function
|
|
949
|
+
function ke(t) {
|
|
951
950
|
return t.nodeType !== void 0;
|
|
952
951
|
}
|
|
953
|
-
function
|
|
954
|
-
return !
|
|
952
|
+
function Vt(t) {
|
|
953
|
+
return !ke(t);
|
|
955
954
|
}
|
|
956
|
-
const
|
|
955
|
+
const En = () => fr({
|
|
957
956
|
root: ["root"]
|
|
958
|
-
},
|
|
959
|
-
var n;
|
|
957
|
+
}, pr(wn)), Mn = {}, Ut = /* @__PURE__ */ X.forwardRef(function(e, r) {
|
|
960
958
|
const {
|
|
961
|
-
anchorEl:
|
|
962
|
-
children:
|
|
963
|
-
direction:
|
|
964
|
-
disablePortal:
|
|
965
|
-
modifiers:
|
|
966
|
-
open:
|
|
967
|
-
placement:
|
|
968
|
-
popperOptions:
|
|
969
|
-
popperRef:
|
|
970
|
-
slotProps:
|
|
971
|
-
slots:
|
|
972
|
-
TransitionProps:
|
|
959
|
+
anchorEl: n,
|
|
960
|
+
children: o,
|
|
961
|
+
direction: i,
|
|
962
|
+
disablePortal: c,
|
|
963
|
+
modifiers: a,
|
|
964
|
+
open: s,
|
|
965
|
+
placement: p,
|
|
966
|
+
popperOptions: l,
|
|
967
|
+
popperRef: y,
|
|
968
|
+
slotProps: h = {},
|
|
969
|
+
slots: u = {},
|
|
970
|
+
TransitionProps: b,
|
|
973
971
|
// @ts-ignore internal logic
|
|
972
|
+
ownerState: d,
|
|
974
973
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
974
|
+
...m
|
|
975
|
+
} = e, M = X.useRef(null), R = mt(M, r), E = X.useRef(null), v = mt(E, y), g = X.useRef(v);
|
|
976
|
+
yt(() => {
|
|
977
|
+
g.current = v;
|
|
978
|
+
}, [v]), X.useImperativeHandle(y, () => E.current, []);
|
|
979
|
+
const x = On(p, i), [O, $] = X.useState(x), [P, A] = X.useState(Te(n));
|
|
980
980
|
X.useEffect(() => {
|
|
981
|
-
|
|
981
|
+
E.current && E.current.forceUpdate();
|
|
982
982
|
}), X.useEffect(() => {
|
|
983
|
-
|
|
984
|
-
}, [
|
|
985
|
-
if (!
|
|
983
|
+
n && A(Te(n));
|
|
984
|
+
}, [n]), yt(() => {
|
|
985
|
+
if (!P || !s)
|
|
986
986
|
return;
|
|
987
|
-
const
|
|
988
|
-
|
|
987
|
+
const S = (C) => {
|
|
988
|
+
$(C.placement);
|
|
989
989
|
};
|
|
990
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
991
|
-
const
|
|
992
|
-
process.env.NODE_ENV !== "test" &&
|
|
990
|
+
if (process.env.NODE_ENV !== "production" && P && ke(P) && P.nodeType === 1) {
|
|
991
|
+
const C = P.getBoundingClientRect();
|
|
992
|
+
process.env.NODE_ENV !== "test" && C.top === 0 && C.left === 0 && C.right === 0 && C.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(`
|
|
993
993
|
`));
|
|
994
994
|
}
|
|
995
995
|
let D = [{
|
|
996
996
|
name: "preventOverflow",
|
|
997
997
|
options: {
|
|
998
|
-
altBoundary:
|
|
998
|
+
altBoundary: c
|
|
999
999
|
}
|
|
1000
1000
|
}, {
|
|
1001
1001
|
name: "flip",
|
|
1002
1002
|
options: {
|
|
1003
|
-
altBoundary:
|
|
1003
|
+
altBoundary: c
|
|
1004
1004
|
}
|
|
1005
1005
|
}, {
|
|
1006
1006
|
name: "onUpdate",
|
|
1007
1007
|
enabled: !0,
|
|
1008
1008
|
phase: "afterWrite",
|
|
1009
1009
|
fn: ({
|
|
1010
|
-
state:
|
|
1010
|
+
state: C
|
|
1011
1011
|
}) => {
|
|
1012
|
-
|
|
1012
|
+
S(C);
|
|
1013
1013
|
}
|
|
1014
1014
|
}];
|
|
1015
|
-
|
|
1016
|
-
const
|
|
1017
|
-
placement: x
|
|
1018
|
-
|
|
1015
|
+
a != null && (D = D.concat(a)), l && l.modifiers != null && (D = D.concat(l.modifiers));
|
|
1016
|
+
const T = xn(P, M.current, {
|
|
1017
|
+
placement: x,
|
|
1018
|
+
...l,
|
|
1019
1019
|
modifiers: D
|
|
1020
|
-
})
|
|
1021
|
-
return
|
|
1022
|
-
|
|
1020
|
+
});
|
|
1021
|
+
return g.current(T), () => {
|
|
1022
|
+
T.destroy(), g.current(null);
|
|
1023
1023
|
};
|
|
1024
|
-
}, [
|
|
1024
|
+
}, [P, c, a, s, l, x]);
|
|
1025
1025
|
const k = {
|
|
1026
1026
|
placement: O
|
|
1027
1027
|
};
|
|
1028
|
-
|
|
1029
|
-
const
|
|
1028
|
+
b !== null && (k.TransitionProps = b);
|
|
1029
|
+
const _ = En(), w = u.root ?? "div", B = cr({
|
|
1030
1030
|
elementType: w,
|
|
1031
|
-
externalSlotProps:
|
|
1032
|
-
externalForwardedProps:
|
|
1031
|
+
externalSlotProps: h.root,
|
|
1032
|
+
externalForwardedProps: m,
|
|
1033
1033
|
additionalProps: {
|
|
1034
1034
|
role: "tooltip",
|
|
1035
|
-
ref:
|
|
1035
|
+
ref: R
|
|
1036
1036
|
},
|
|
1037
1037
|
ownerState: e,
|
|
1038
|
-
className:
|
|
1038
|
+
className: _.root
|
|
1039
1039
|
});
|
|
1040
|
-
return /* @__PURE__ */
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
})
|
|
1040
|
+
return /* @__PURE__ */ N(w, {
|
|
1041
|
+
...B,
|
|
1042
|
+
children: typeof o == "function" ? o(k) : o
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
process.env.NODE_ENV !== "production" && (Ut.propTypes = {
|
|
1046
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1047
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1048
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1049
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1050
|
+
/**
|
|
1051
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1052
|
+
* or a function that returns either.
|
|
1053
|
+
* It's used to set the position of the popper.
|
|
1054
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1055
|
+
*/
|
|
1056
|
+
anchorEl: $t(f.oneOfType([Ze, f.object, f.func]), (t) => {
|
|
1057
|
+
if (t.open) {
|
|
1058
|
+
const e = Te(t.anchorEl);
|
|
1059
|
+
if (e && ke(e) && e.nodeType === 1) {
|
|
1060
|
+
const r = e.getBoundingClientRect();
|
|
1061
|
+
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1062
|
+
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(`
|
|
1063
|
+
`));
|
|
1064
|
+
} else if (!e || typeof e.getBoundingClientRect != "function" || Vt(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
|
|
1065
|
+
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(`
|
|
1066
|
+
`));
|
|
1067
|
+
}
|
|
1068
|
+
return null;
|
|
1069
|
+
}),
|
|
1070
|
+
/**
|
|
1071
|
+
* Popper render function or node.
|
|
1072
|
+
*/
|
|
1073
|
+
children: f.oneOfType([f.node, f.func]),
|
|
1074
|
+
/**
|
|
1075
|
+
* Direction of the text.
|
|
1076
|
+
* @default 'ltr'
|
|
1077
|
+
*/
|
|
1078
|
+
direction: f.oneOf(["ltr", "rtl"]),
|
|
1079
|
+
/**
|
|
1080
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1081
|
+
* @default false
|
|
1082
|
+
*/
|
|
1083
|
+
disablePortal: f.bool,
|
|
1084
|
+
/**
|
|
1085
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1086
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1087
|
+
*
|
|
1088
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1089
|
+
* compute the position of the popper.
|
|
1090
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1091
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1092
|
+
*/
|
|
1093
|
+
modifiers: f.arrayOf(f.shape({
|
|
1094
|
+
data: f.object,
|
|
1095
|
+
effect: f.func,
|
|
1096
|
+
enabled: f.bool,
|
|
1097
|
+
fn: f.func,
|
|
1098
|
+
name: f.any,
|
|
1099
|
+
options: f.object,
|
|
1100
|
+
phase: f.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1101
|
+
requires: f.arrayOf(f.string),
|
|
1102
|
+
requiresIfExists: f.arrayOf(f.string)
|
|
1103
|
+
})),
|
|
1104
|
+
/**
|
|
1105
|
+
* If `true`, the component is shown.
|
|
1106
|
+
*/
|
|
1107
|
+
open: f.bool.isRequired,
|
|
1108
|
+
/**
|
|
1109
|
+
* Popper placement.
|
|
1110
|
+
* @default 'bottom'
|
|
1111
|
+
*/
|
|
1112
|
+
placement: f.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"]),
|
|
1113
|
+
/**
|
|
1114
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1115
|
+
* @default {}
|
|
1116
|
+
*/
|
|
1117
|
+
popperOptions: f.shape({
|
|
1118
|
+
modifiers: f.array,
|
|
1119
|
+
onFirstUpdate: f.func,
|
|
1120
|
+
placement: f.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"]),
|
|
1121
|
+
strategy: f.oneOf(["absolute", "fixed"])
|
|
1122
|
+
}),
|
|
1123
|
+
/**
|
|
1124
|
+
* A ref that points to the used popper instance.
|
|
1125
|
+
*/
|
|
1126
|
+
popperRef: St,
|
|
1127
|
+
/**
|
|
1128
|
+
* The props used for each slot inside the Popper.
|
|
1129
|
+
* @default {}
|
|
1130
|
+
*/
|
|
1131
|
+
slotProps: f.shape({
|
|
1132
|
+
root: f.oneOfType([f.func, f.object])
|
|
1133
|
+
}),
|
|
1134
|
+
/**
|
|
1135
|
+
* The components used for each slot inside the Popper.
|
|
1136
|
+
* Either a string to use a HTML element or a component.
|
|
1137
|
+
* @default {}
|
|
1138
|
+
*/
|
|
1139
|
+
slots: f.shape({
|
|
1140
|
+
root: f.elementType
|
|
1141
|
+
}),
|
|
1142
|
+
TransitionProps: f.object
|
|
1143
|
+
});
|
|
1144
|
+
const zt = /* @__PURE__ */ X.forwardRef(function(e, r) {
|
|
1044
1145
|
const {
|
|
1045
1146
|
anchorEl: n,
|
|
1046
1147
|
children: o,
|
|
1047
|
-
container:
|
|
1048
|
-
direction:
|
|
1049
|
-
disablePortal:
|
|
1148
|
+
container: i,
|
|
1149
|
+
direction: c = "ltr",
|
|
1150
|
+
disablePortal: a = !1,
|
|
1050
1151
|
keepMounted: s = !1,
|
|
1051
1152
|
modifiers: p,
|
|
1052
|
-
open:
|
|
1053
|
-
placement:
|
|
1054
|
-
popperOptions:
|
|
1153
|
+
open: l,
|
|
1154
|
+
placement: y = "bottom",
|
|
1155
|
+
popperOptions: h = Mn,
|
|
1055
1156
|
popperRef: u,
|
|
1056
1157
|
style: b,
|
|
1057
|
-
transition:
|
|
1058
|
-
slotProps:
|
|
1059
|
-
slots:
|
|
1060
|
-
|
|
1061
|
-
|
|
1158
|
+
transition: d = !1,
|
|
1159
|
+
slotProps: m = {},
|
|
1160
|
+
slots: M = {},
|
|
1161
|
+
...R
|
|
1162
|
+
} = e, [E, v] = X.useState(!0), g = () => {
|
|
1163
|
+
v(!1);
|
|
1062
1164
|
}, x = () => {
|
|
1063
|
-
|
|
1165
|
+
v(!0);
|
|
1064
1166
|
};
|
|
1065
|
-
if (!s && !
|
|
1167
|
+
if (!s && !l && (!d || E))
|
|
1066
1168
|
return null;
|
|
1067
1169
|
let O;
|
|
1068
|
-
if (
|
|
1069
|
-
O =
|
|
1170
|
+
if (i)
|
|
1171
|
+
O = i;
|
|
1070
1172
|
else if (n) {
|
|
1071
|
-
const A =
|
|
1072
|
-
O = A &&
|
|
1173
|
+
const A = Te(n);
|
|
1174
|
+
O = A && ke(A) ? ht(A).body : ht(null).body;
|
|
1073
1175
|
}
|
|
1074
|
-
const
|
|
1075
|
-
in:
|
|
1076
|
-
onEnter:
|
|
1176
|
+
const $ = !l && s && (!d || E) ? "none" : void 0, P = d ? {
|
|
1177
|
+
in: l,
|
|
1178
|
+
onEnter: g,
|
|
1077
1179
|
onExited: x
|
|
1078
1180
|
} : void 0;
|
|
1079
|
-
return /* @__PURE__ */
|
|
1080
|
-
disablePortal:
|
|
1181
|
+
return /* @__PURE__ */ N(ur, {
|
|
1182
|
+
disablePortal: a,
|
|
1081
1183
|
container: O,
|
|
1082
|
-
children: /* @__PURE__ */
|
|
1184
|
+
children: /* @__PURE__ */ N(Ut, {
|
|
1083
1185
|
anchorEl: n,
|
|
1084
|
-
direction:
|
|
1085
|
-
disablePortal:
|
|
1186
|
+
direction: c,
|
|
1187
|
+
disablePortal: a,
|
|
1086
1188
|
modifiers: p,
|
|
1087
1189
|
ref: r,
|
|
1088
|
-
open:
|
|
1089
|
-
placement:
|
|
1090
|
-
popperOptions:
|
|
1190
|
+
open: d ? !E : l,
|
|
1191
|
+
placement: y,
|
|
1192
|
+
popperOptions: h,
|
|
1091
1193
|
popperRef: u,
|
|
1092
|
-
slotProps:
|
|
1093
|
-
slots:
|
|
1094
|
-
|
|
1095
|
-
style:
|
|
1194
|
+
slotProps: m,
|
|
1195
|
+
slots: M,
|
|
1196
|
+
...R,
|
|
1197
|
+
style: {
|
|
1096
1198
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
1097
1199
|
position: "fixed",
|
|
1098
1200
|
// Fix Popper.js display issue
|
|
1099
1201
|
top: 0,
|
|
1100
1202
|
left: 0,
|
|
1101
|
-
display:
|
|
1102
|
-
|
|
1103
|
-
|
|
1203
|
+
display: $,
|
|
1204
|
+
...b
|
|
1205
|
+
},
|
|
1206
|
+
TransitionProps: P,
|
|
1104
1207
|
children: o
|
|
1105
|
-
})
|
|
1208
|
+
})
|
|
1106
1209
|
});
|
|
1107
1210
|
});
|
|
1108
|
-
process.env.NODE_ENV !== "production" && (
|
|
1211
|
+
process.env.NODE_ENV !== "production" && (zt.propTypes = {
|
|
1109
1212
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1110
1213
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1111
1214
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1116,15 +1219,15 @@ process.env.NODE_ENV !== "production" && (Vt.propTypes = {
|
|
|
1116
1219
|
* It's used to set the position of the popper.
|
|
1117
1220
|
* The return value will passed as the reference object of the Popper instance.
|
|
1118
1221
|
*/
|
|
1119
|
-
anchorEl:
|
|
1222
|
+
anchorEl: $t(f.oneOfType([Ze, f.object, f.func]), (t) => {
|
|
1120
1223
|
if (t.open) {
|
|
1121
|
-
const e =
|
|
1122
|
-
if (e &&
|
|
1224
|
+
const e = Te(t.anchorEl);
|
|
1225
|
+
if (e && ke(e) && e.nodeType === 1) {
|
|
1123
1226
|
const r = e.getBoundingClientRect();
|
|
1124
1227
|
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1125
1228
|
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(`
|
|
1126
1229
|
`));
|
|
1127
|
-
} else if (!e || typeof e.getBoundingClientRect != "function" ||
|
|
1230
|
+
} else if (!e || typeof e.getBoundingClientRect != "function" || Vt(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
|
|
1128
1231
|
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(`
|
|
1129
1232
|
`));
|
|
1130
1233
|
}
|
|
@@ -1133,7 +1236,7 @@ process.env.NODE_ENV !== "production" && (Vt.propTypes = {
|
|
|
1133
1236
|
/**
|
|
1134
1237
|
* Popper render function or node.
|
|
1135
1238
|
*/
|
|
1136
|
-
children:
|
|
1239
|
+
children: f.oneOfType([f.node, f.func]),
|
|
1137
1240
|
/**
|
|
1138
1241
|
* An HTML element or function that returns one.
|
|
1139
1242
|
* The `container` will have the portal children appended to it.
|
|
@@ -1144,24 +1247,24 @@ process.env.NODE_ENV !== "production" && (Vt.propTypes = {
|
|
|
1144
1247
|
* By default, it uses the body of the top-level document object,
|
|
1145
1248
|
* so it's simply `document.body` most of the time.
|
|
1146
1249
|
*/
|
|
1147
|
-
container:
|
|
1250
|
+
container: f.oneOfType([Ze, f.func]),
|
|
1148
1251
|
/**
|
|
1149
1252
|
* Direction of the text.
|
|
1150
1253
|
* @default 'ltr'
|
|
1151
1254
|
*/
|
|
1152
|
-
direction:
|
|
1255
|
+
direction: f.oneOf(["ltr", "rtl"]),
|
|
1153
1256
|
/**
|
|
1154
1257
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1155
1258
|
* @default false
|
|
1156
1259
|
*/
|
|
1157
|
-
disablePortal:
|
|
1260
|
+
disablePortal: f.bool,
|
|
1158
1261
|
/**
|
|
1159
1262
|
* Always keep the children in the DOM.
|
|
1160
1263
|
* This prop can be useful in SEO situation or
|
|
1161
1264
|
* when you want to maximize the responsiveness of the Popper.
|
|
1162
1265
|
* @default false
|
|
1163
1266
|
*/
|
|
1164
|
-
keepMounted:
|
|
1267
|
+
keepMounted: f.bool,
|
|
1165
1268
|
/**
|
|
1166
1269
|
* Popper.js is based on a "plugin-like" architecture,
|
|
1167
1270
|
* most of its features are fully encapsulated "modifiers".
|
|
@@ -1171,409 +1274,409 @@ process.env.NODE_ENV !== "production" && (Vt.propTypes = {
|
|
|
1171
1274
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1172
1275
|
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1173
1276
|
*/
|
|
1174
|
-
modifiers:
|
|
1175
|
-
data:
|
|
1176
|
-
effect:
|
|
1177
|
-
enabled:
|
|
1178
|
-
fn:
|
|
1179
|
-
name:
|
|
1180
|
-
options:
|
|
1181
|
-
phase:
|
|
1182
|
-
requires:
|
|
1183
|
-
requiresIfExists:
|
|
1277
|
+
modifiers: f.arrayOf(f.shape({
|
|
1278
|
+
data: f.object,
|
|
1279
|
+
effect: f.func,
|
|
1280
|
+
enabled: f.bool,
|
|
1281
|
+
fn: f.func,
|
|
1282
|
+
name: f.any,
|
|
1283
|
+
options: f.object,
|
|
1284
|
+
phase: f.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1285
|
+
requires: f.arrayOf(f.string),
|
|
1286
|
+
requiresIfExists: f.arrayOf(f.string)
|
|
1184
1287
|
})),
|
|
1185
1288
|
/**
|
|
1186
1289
|
* If `true`, the component is shown.
|
|
1187
1290
|
*/
|
|
1188
|
-
open:
|
|
1291
|
+
open: f.bool.isRequired,
|
|
1189
1292
|
/**
|
|
1190
1293
|
* Popper placement.
|
|
1191
1294
|
* @default 'bottom'
|
|
1192
1295
|
*/
|
|
1193
|
-
placement:
|
|
1296
|
+
placement: f.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"]),
|
|
1194
1297
|
/**
|
|
1195
1298
|
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1196
1299
|
* @default {}
|
|
1197
1300
|
*/
|
|
1198
|
-
popperOptions:
|
|
1199
|
-
modifiers:
|
|
1200
|
-
onFirstUpdate:
|
|
1201
|
-
placement:
|
|
1202
|
-
strategy:
|
|
1301
|
+
popperOptions: f.shape({
|
|
1302
|
+
modifiers: f.array,
|
|
1303
|
+
onFirstUpdate: f.func,
|
|
1304
|
+
placement: f.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"]),
|
|
1305
|
+
strategy: f.oneOf(["absolute", "fixed"])
|
|
1203
1306
|
}),
|
|
1204
1307
|
/**
|
|
1205
1308
|
* A ref that points to the used popper instance.
|
|
1206
1309
|
*/
|
|
1207
|
-
popperRef:
|
|
1310
|
+
popperRef: St,
|
|
1208
1311
|
/**
|
|
1209
1312
|
* The props used for each slot inside the Popper.
|
|
1210
1313
|
* @default {}
|
|
1211
1314
|
*/
|
|
1212
|
-
slotProps:
|
|
1213
|
-
root:
|
|
1315
|
+
slotProps: f.shape({
|
|
1316
|
+
root: f.oneOfType([f.func, f.object])
|
|
1214
1317
|
}),
|
|
1215
1318
|
/**
|
|
1216
1319
|
* The components used for each slot inside the Popper.
|
|
1217
1320
|
* Either a string to use a HTML element or a component.
|
|
1218
1321
|
* @default {}
|
|
1219
1322
|
*/
|
|
1220
|
-
slots:
|
|
1221
|
-
root:
|
|
1323
|
+
slots: f.shape({
|
|
1324
|
+
root: f.elementType
|
|
1222
1325
|
}),
|
|
1223
1326
|
/**
|
|
1224
1327
|
* Help supporting a react-transition-group/Transition component.
|
|
1225
1328
|
* @default false
|
|
1226
1329
|
*/
|
|
1227
|
-
transition:
|
|
1330
|
+
transition: f.bool
|
|
1228
1331
|
});
|
|
1229
|
-
var
|
|
1230
|
-
function
|
|
1231
|
-
return Tt || (Tt = 1, function(t, e) {
|
|
1332
|
+
var Be = { exports: {} }, Pn = Be.exports, Tt;
|
|
1333
|
+
function Dn() {
|
|
1334
|
+
return Tt || (Tt = 1, (function(t, e) {
|
|
1232
1335
|
(function(r, n) {
|
|
1233
1336
|
t.exports = n();
|
|
1234
|
-
})(
|
|
1337
|
+
})(Pn, (function() {
|
|
1235
1338
|
return function(r, n, o) {
|
|
1236
|
-
n.prototype.isBetween = function(
|
|
1237
|
-
var p = o(
|
|
1238
|
-
return (
|
|
1339
|
+
n.prototype.isBetween = function(i, c, a, s) {
|
|
1340
|
+
var p = o(i), l = o(c), y = (s = s || "()")[0] === "(", h = s[1] === ")";
|
|
1341
|
+
return (y ? this.isAfter(p, a) : !this.isBefore(p, a)) && (h ? this.isBefore(l, a) : !this.isAfter(l, a)) || (y ? this.isBefore(p, a) : !this.isAfter(p, a)) && (h ? this.isAfter(l, a) : !this.isBefore(l, a));
|
|
1239
1342
|
};
|
|
1240
1343
|
};
|
|
1241
|
-
});
|
|
1242
|
-
}(
|
|
1344
|
+
}));
|
|
1345
|
+
})(Be)), Be.exports;
|
|
1243
1346
|
}
|
|
1244
|
-
var
|
|
1245
|
-
const
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1248
|
-
return
|
|
1347
|
+
var Tn = Dn();
|
|
1348
|
+
const Rn = /* @__PURE__ */ Ve(Tn);
|
|
1349
|
+
var Ne = { exports: {} }, An = Ne.exports, Rt;
|
|
1350
|
+
function kn() {
|
|
1351
|
+
return Rt || (Rt = 1, (function(t, e) {
|
|
1249
1352
|
(function(r, n) {
|
|
1250
1353
|
t.exports = n();
|
|
1251
|
-
})(
|
|
1354
|
+
})(An, (function() {
|
|
1252
1355
|
return function(r, n, o) {
|
|
1253
1356
|
n.prototype.isToday = function() {
|
|
1254
|
-
var
|
|
1255
|
-
return this.format(
|
|
1357
|
+
var i = "YYYY-MM-DD", c = o();
|
|
1358
|
+
return this.format(i) === c.format(i);
|
|
1256
1359
|
};
|
|
1257
1360
|
};
|
|
1258
|
-
});
|
|
1259
|
-
}(
|
|
1361
|
+
}));
|
|
1362
|
+
})(Ne)), Ne.exports;
|
|
1260
1363
|
}
|
|
1261
|
-
var
|
|
1262
|
-
const
|
|
1263
|
-
var
|
|
1264
|
-
function
|
|
1265
|
-
return
|
|
1364
|
+
var jn = kn();
|
|
1365
|
+
const Cn = /* @__PURE__ */ Ve(jn);
|
|
1366
|
+
var He = { exports: {} }, $n = He.exports, At;
|
|
1367
|
+
function Sn() {
|
|
1368
|
+
return At || (At = 1, (function(t, e) {
|
|
1266
1369
|
(function(r, n) {
|
|
1267
1370
|
t.exports = n();
|
|
1268
|
-
})($n, function() {
|
|
1371
|
+
})($n, (function() {
|
|
1269
1372
|
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
1270
|
-
return function(n, o,
|
|
1271
|
-
var
|
|
1272
|
-
|
|
1373
|
+
return function(n, o, i) {
|
|
1374
|
+
var c = o.prototype, a = c.format;
|
|
1375
|
+
i.en.formats = r, c.format = function(s) {
|
|
1273
1376
|
s === void 0 && (s = "YYYY-MM-DDTHH:mm:ssZ");
|
|
1274
|
-
var p = this.$locale().formats,
|
|
1275
|
-
return
|
|
1276
|
-
var
|
|
1277
|
-
return b ||
|
|
1278
|
-
return
|
|
1279
|
-
});
|
|
1280
|
-
});
|
|
1281
|
-
}(s, p === void 0 ? {} : p);
|
|
1282
|
-
return
|
|
1377
|
+
var p = this.$locale().formats, l = (function(y, h) {
|
|
1378
|
+
return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(u, b, d) {
|
|
1379
|
+
var m = d && d.toUpperCase();
|
|
1380
|
+
return b || h[d] || r[d] || h[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(M, R, E) {
|
|
1381
|
+
return R || E.slice(1);
|
|
1382
|
+
}));
|
|
1383
|
+
}));
|
|
1384
|
+
})(s, p === void 0 ? {} : p);
|
|
1385
|
+
return a.call(this, l);
|
|
1283
1386
|
};
|
|
1284
1387
|
};
|
|
1285
|
-
});
|
|
1286
|
-
}(
|
|
1388
|
+
}));
|
|
1389
|
+
})(He)), He.exports;
|
|
1287
1390
|
}
|
|
1288
|
-
var
|
|
1289
|
-
const
|
|
1290
|
-
var
|
|
1291
|
-
function
|
|
1292
|
-
return
|
|
1391
|
+
var Ln = Sn();
|
|
1392
|
+
const _n = /* @__PURE__ */ Ve(Ln);
|
|
1393
|
+
var Ie = { exports: {} }, Yn = Ie.exports, kt;
|
|
1394
|
+
function Bn() {
|
|
1395
|
+
return kt || (kt = 1, (function(t, e) {
|
|
1293
1396
|
(function(r, n) {
|
|
1294
1397
|
t.exports = n();
|
|
1295
|
-
})(
|
|
1398
|
+
})(Yn, (function() {
|
|
1296
1399
|
return function(r, n) {
|
|
1297
1400
|
n.prototype.weekday = function(o) {
|
|
1298
|
-
var
|
|
1299
|
-
return this.$utils().u(o) ?
|
|
1401
|
+
var i = this.$locale().weekStart || 0, c = this.$W, a = (c < i ? c + 7 : c) - i;
|
|
1402
|
+
return this.$utils().u(o) ? a : this.subtract(a, "day").add(o, "day");
|
|
1300
1403
|
};
|
|
1301
1404
|
};
|
|
1302
|
-
});
|
|
1303
|
-
}(
|
|
1405
|
+
}));
|
|
1406
|
+
})(Ie)), Ie.exports;
|
|
1304
1407
|
}
|
|
1305
|
-
var
|
|
1306
|
-
const
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1309
|
-
return
|
|
1408
|
+
var Nn = Bn();
|
|
1409
|
+
const Hn = /* @__PURE__ */ Ve(Nn);
|
|
1410
|
+
var qe = { exports: {} }, In = qe.exports, jt;
|
|
1411
|
+
function qn() {
|
|
1412
|
+
return jt || (jt = 1, (function(t, e) {
|
|
1310
1413
|
(function(r, n) {
|
|
1311
1414
|
t.exports = n();
|
|
1312
|
-
})(
|
|
1415
|
+
})(In, (function() {
|
|
1313
1416
|
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(r) {
|
|
1314
1417
|
var n = ["th", "st", "nd", "rd"], o = r % 100;
|
|
1315
1418
|
return "[" + r + (n[(o - 20) % 10] || n[o] || n[0]) + "]";
|
|
1316
1419
|
} };
|
|
1317
|
-
});
|
|
1318
|
-
}(
|
|
1420
|
+
}));
|
|
1421
|
+
})(qe)), qe.exports;
|
|
1319
1422
|
}
|
|
1320
|
-
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1323
|
-
return
|
|
1423
|
+
qn();
|
|
1424
|
+
var We = { exports: {} }, Wn = We.exports, Ct;
|
|
1425
|
+
function Fn() {
|
|
1426
|
+
return Ct || (Ct = 1, (function(t, e) {
|
|
1324
1427
|
(function(r, n) {
|
|
1325
|
-
t.exports = n(
|
|
1326
|
-
})(
|
|
1327
|
-
function n(
|
|
1328
|
-
return
|
|
1428
|
+
t.exports = n(Jt());
|
|
1429
|
+
})(Wn, (function(r) {
|
|
1430
|
+
function n(c) {
|
|
1431
|
+
return c && typeof c == "object" && "default" in c ? c : { default: c };
|
|
1329
1432
|
}
|
|
1330
|
-
var o = n(r),
|
|
1331
|
-
return
|
|
1433
|
+
var o = n(r), i = { name: "pt", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sab".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(c) {
|
|
1434
|
+
return c + "º";
|
|
1332
1435
|
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "alguns segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } };
|
|
1333
|
-
return o.default.locale(
|
|
1334
|
-
});
|
|
1335
|
-
}(
|
|
1436
|
+
return o.default.locale(i, null, !0), i;
|
|
1437
|
+
}));
|
|
1438
|
+
})(We)), We.exports;
|
|
1336
1439
|
}
|
|
1337
|
-
|
|
1440
|
+
Fn();
|
|
1441
|
+
Z.extend(Rn);
|
|
1442
|
+
Z.extend(Hn);
|
|
1338
1443
|
Z.extend(_n);
|
|
1339
|
-
Z.extend(
|
|
1340
|
-
|
|
1341
|
-
Z.extend(Yn);
|
|
1342
|
-
const Ze = (t) => {
|
|
1444
|
+
Z.extend(Cn);
|
|
1445
|
+
const Ge = (t) => {
|
|
1343
1446
|
switch (t) {
|
|
1344
1447
|
case "pt":
|
|
1345
1448
|
return "Selecionar data";
|
|
1346
1449
|
default:
|
|
1347
1450
|
return "Select date";
|
|
1348
1451
|
}
|
|
1349
|
-
},
|
|
1452
|
+
}, uo = (t) => {
|
|
1350
1453
|
const {
|
|
1351
1454
|
mode: e,
|
|
1352
1455
|
viewMode: r,
|
|
1353
1456
|
locale: n = "en",
|
|
1354
1457
|
format: o = "YYYY-MM-DD",
|
|
1355
|
-
minDate:
|
|
1356
|
-
maxDate:
|
|
1357
|
-
disableDates:
|
|
1458
|
+
minDate: i,
|
|
1459
|
+
maxDate: c,
|
|
1460
|
+
disableDates: a,
|
|
1358
1461
|
onChange: s,
|
|
1359
1462
|
placement: p = "bottom-start",
|
|
1360
|
-
navigatorInput:
|
|
1361
|
-
className:
|
|
1362
|
-
"data-testid":
|
|
1463
|
+
navigatorInput: l = !1,
|
|
1464
|
+
className: y,
|
|
1465
|
+
"data-testid": h = "date-picker",
|
|
1363
1466
|
error: u,
|
|
1364
1467
|
disabled: b = !1
|
|
1365
|
-
} = t,
|
|
1366
|
-
|
|
1367
|
-
), [
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
}, [
|
|
1371
|
-
|
|
1372
|
-
}, [
|
|
1373
|
-
const ue = (
|
|
1374
|
-
if (e === "range" &&
|
|
1468
|
+
} = t, d = e === "single" ? t.value : void 0, m = e === "range" ? t.values : void 0, M = e === "single" ? t.placeholder : void 0, R = e === "range" ? t.placeholders : void 0, E = e === "range" ? t.limit : void 0, v = e === "single" ? t.infoMessage : void 0, g = e === "range" ? t.infoMessages : void 0, x = e === "single" ? t.errorMessage : void 0, O = e === "range" ? t.errorMessages : void 0, $ = d ? Z(d).locale(n) : m ? Z(m[1]).locale(n) : Z().locale(n), P = M || Ge(n), A = R || [Ge(n), Ge(n)], [k, _] = se(d ? Z(d) : null), [w, B] = se(
|
|
1469
|
+
m ? [Z(m[0]), Z(m[1])] : [null, null]
|
|
1470
|
+
), [S, D] = se($), [T, C] = se(!1), [W, oe] = se(!1), [Y, J] = se(r), [pe, K] = se(null), z = dt(null), te = dt(null);
|
|
1471
|
+
Je(() => {
|
|
1472
|
+
T || J(r);
|
|
1473
|
+
}, [T, r]), Je(() => {
|
|
1474
|
+
T || K(null);
|
|
1475
|
+
}, [T]);
|
|
1476
|
+
const ue = (j) => {
|
|
1477
|
+
if (e === "range" && W && j.key === "Escape") {
|
|
1375
1478
|
B([null, null]), oe(!1);
|
|
1376
1479
|
return;
|
|
1377
1480
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1481
|
+
tr(
|
|
1482
|
+
j,
|
|
1483
|
+
T,
|
|
1484
|
+
Y,
|
|
1485
|
+
S,
|
|
1383
1486
|
D,
|
|
1384
1487
|
e,
|
|
1385
1488
|
de,
|
|
1386
|
-
|
|
1489
|
+
C
|
|
1387
1490
|
);
|
|
1388
|
-
}, re =
|
|
1389
|
-
(
|
|
1390
|
-
if (!
|
|
1391
|
-
B([
|
|
1491
|
+
}, re = Xt(
|
|
1492
|
+
(j) => {
|
|
1493
|
+
if (!W) {
|
|
1494
|
+
B([j, null]), oe(!0);
|
|
1392
1495
|
return;
|
|
1393
1496
|
}
|
|
1394
1497
|
if (!w[0]) {
|
|
1395
|
-
B([
|
|
1498
|
+
B([j, null]);
|
|
1396
1499
|
return;
|
|
1397
1500
|
}
|
|
1398
|
-
if (
|
|
1399
|
-
const [
|
|
1400
|
-
B([
|
|
1501
|
+
if (j.isSame(w[0], "day")) return;
|
|
1502
|
+
const [L, G] = j.isAfter(w[0]) ? [w[0], j] : [j, w[0]];
|
|
1503
|
+
B([L, G]), oe(!1), K(null), s([L, G]), C(!1);
|
|
1401
1504
|
},
|
|
1402
|
-
[
|
|
1403
|
-
), de = (
|
|
1404
|
-
|
|
1505
|
+
[W, w, s]
|
|
1506
|
+
), de = (j) => {
|
|
1507
|
+
Zt(j, i, c, a, e, w) || (e === "single" ? (_(j), D(j), s(j), C(!1)) : re(j));
|
|
1405
1508
|
}, ae = () => {
|
|
1406
|
-
var
|
|
1407
|
-
return e === "single" ? k ? r === "month" && !
|
|
1408
|
-
((
|
|
1509
|
+
var j, L, G, we;
|
|
1510
|
+
return e === "single" ? k ? r === "month" && !l ? k.locale(n).format("MMM") : r === "year" && !l ? k.locale(n).format("YYYY") : k.locale(n).format(o) : "" : e === "range" ? w[0] && w[1] && w[0].isSame(w[1], "day") ? w[0].locale(n).format(o) : [
|
|
1511
|
+
((L = (j = w[0]) == null ? void 0 : j.locale(n)) == null ? void 0 : L.format(o)) || "",
|
|
1409
1512
|
((we = (G = w[1]) == null ? void 0 : G.locale(n)) == null ? void 0 : we.format(o)) || ""
|
|
1410
1513
|
] : w[0] ? w[0].locale(n).format(o) : "";
|
|
1411
1514
|
}, ve = () => {
|
|
1412
|
-
D(
|
|
1413
|
-
},
|
|
1414
|
-
D(
|
|
1415
|
-
}, be = () =>
|
|
1416
|
-
currentViewMode:
|
|
1417
|
-
currentMonth:
|
|
1515
|
+
D(Y === "day" ? Qt(S) : Y === "month" ? S.subtract(1, "year") : S.subtract(12, "years"));
|
|
1516
|
+
}, je = () => {
|
|
1517
|
+
D(Y === "day" ? er(S) : Y === "month" ? S.add(1, "year") : S.add(12, "years"));
|
|
1518
|
+
}, be = () => or({
|
|
1519
|
+
currentViewMode: Y,
|
|
1520
|
+
currentMonth: S,
|
|
1418
1521
|
locale: n,
|
|
1419
1522
|
navigateToPrevious: ve,
|
|
1420
|
-
navigateToNext:
|
|
1523
|
+
navigateToNext: je,
|
|
1421
1524
|
setCurrentViewMode: J
|
|
1422
|
-
}),
|
|
1423
|
-
currentMonth:
|
|
1525
|
+
}), ze = () => nr({
|
|
1526
|
+
currentMonth: S,
|
|
1424
1527
|
locale: n,
|
|
1425
1528
|
setCurrentMonth: D
|
|
1426
|
-
}), xe = (
|
|
1427
|
-
currentMonth:
|
|
1529
|
+
}), xe = (j = 0) => rr({
|
|
1530
|
+
currentMonth: j === 0 ? S : S.add(1, "month"),
|
|
1428
1531
|
selectedDate: k,
|
|
1429
1532
|
selectedRange: w,
|
|
1430
1533
|
locale: n,
|
|
1431
1534
|
mode: e,
|
|
1432
|
-
isSelectingRange:
|
|
1433
|
-
hoverDate:
|
|
1434
|
-
minDate:
|
|
1435
|
-
maxDate:
|
|
1436
|
-
disableDates:
|
|
1535
|
+
isSelectingRange: W,
|
|
1536
|
+
hoverDate: pe,
|
|
1537
|
+
minDate: i,
|
|
1538
|
+
maxDate: c,
|
|
1539
|
+
disableDates: a,
|
|
1437
1540
|
handleSelect: de,
|
|
1438
1541
|
setHoverDate: K,
|
|
1439
|
-
limit:
|
|
1440
|
-
}),
|
|
1542
|
+
limit: E
|
|
1543
|
+
}), Ce = () => /* @__PURE__ */ Le(
|
|
1441
1544
|
"div",
|
|
1442
1545
|
{
|
|
1443
1546
|
ref: te,
|
|
1444
1547
|
className: vt(le["datepicker-container"], e === "range" && le["range-mode"]),
|
|
1445
|
-
"data-testid": `${
|
|
1548
|
+
"data-testid": `${h}-content`,
|
|
1446
1549
|
children: [
|
|
1447
1550
|
e === "single" && be(),
|
|
1448
|
-
e === "range" &&
|
|
1449
|
-
e === "range" &&
|
|
1450
|
-
|
|
1451
|
-
(
|
|
1452
|
-
currentViewMode:
|
|
1453
|
-
currentMonth:
|
|
1551
|
+
e === "range" && Y === "day" && ze(),
|
|
1552
|
+
e === "range" && Y !== "day" && be(),
|
|
1553
|
+
Y === "day" && e === "single" && xe(),
|
|
1554
|
+
(Y === "month" || Y === "year") && ir({
|
|
1555
|
+
currentViewMode: Y,
|
|
1556
|
+
currentMonth: S,
|
|
1454
1557
|
selectedDate: k,
|
|
1455
1558
|
locale: n,
|
|
1456
1559
|
mode: e,
|
|
1457
1560
|
initialViewMode: r,
|
|
1458
|
-
navigatorInput:
|
|
1561
|
+
navigatorInput: l,
|
|
1459
1562
|
setCurrentMonth: D,
|
|
1460
|
-
setSelectedDate:
|
|
1563
|
+
setSelectedDate: _,
|
|
1461
1564
|
onChange: s,
|
|
1462
1565
|
setCurrentViewMode: J,
|
|
1463
|
-
setIsOpen:
|
|
1566
|
+
setIsOpen: C
|
|
1464
1567
|
}),
|
|
1465
|
-
e === "range" &&
|
|
1568
|
+
e === "range" && Y === "day" && /* @__PURE__ */ Le("div", { className: le["dual-calendar-container"], children: [
|
|
1466
1569
|
xe(0),
|
|
1467
1570
|
xe(1)
|
|
1468
1571
|
] })
|
|
1469
1572
|
]
|
|
1470
1573
|
}
|
|
1471
|
-
),
|
|
1472
|
-
e === "range" ? (B([null, null]), s([null, null])) : (
|
|
1473
|
-
},
|
|
1474
|
-
|
|
1574
|
+
), $e = () => {
|
|
1575
|
+
e === "range" ? (B([null, null]), s([null, null])) : (_(null), s(null));
|
|
1576
|
+
}, Se = (j) => /* @__PURE__ */ Le("span", { className: le["datepicker-buttons-container"], children: [
|
|
1577
|
+
j && /* @__PURE__ */ N(
|
|
1475
1578
|
"button",
|
|
1476
1579
|
{
|
|
1477
1580
|
type: "button",
|
|
1478
|
-
onClick: (
|
|
1479
|
-
|
|
1581
|
+
onClick: (L) => {
|
|
1582
|
+
L.preventDefault(), L.stopPropagation(), $e();
|
|
1480
1583
|
},
|
|
1481
|
-
"data-testid": `${
|
|
1584
|
+
"data-testid": `${h}-toggle-icon-remove`,
|
|
1482
1585
|
disabled: b,
|
|
1483
|
-
children: /* @__PURE__ */
|
|
1586
|
+
children: /* @__PURE__ */ N(Ke, { icon: "circle-xmark" })
|
|
1484
1587
|
}
|
|
1485
1588
|
),
|
|
1486
|
-
/* @__PURE__ */
|
|
1589
|
+
/* @__PURE__ */ N(
|
|
1487
1590
|
"button",
|
|
1488
1591
|
{
|
|
1489
1592
|
type: "button",
|
|
1490
|
-
onClick: (
|
|
1491
|
-
|
|
1593
|
+
onClick: (L) => {
|
|
1594
|
+
L.preventDefault(), L.stopPropagation(), C(!T);
|
|
1492
1595
|
},
|
|
1493
|
-
"data-testid": `${
|
|
1596
|
+
"data-testid": `${h}-toggle-icon`,
|
|
1494
1597
|
disabled: b,
|
|
1495
|
-
children: /* @__PURE__ */
|
|
1598
|
+
children: /* @__PURE__ */ N(Ke, { icon: "calendar-days" })
|
|
1496
1599
|
}
|
|
1497
1600
|
)
|
|
1498
1601
|
] });
|
|
1499
|
-
return
|
|
1500
|
-
if (
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1602
|
+
return Je(() => {
|
|
1603
|
+
if (T && te.current) {
|
|
1604
|
+
const j = te.current.querySelector("button");
|
|
1605
|
+
j && j.focus();
|
|
1503
1606
|
}
|
|
1504
|
-
}, [
|
|
1607
|
+
}, [T]), /* @__PURE__ */ N(dr, { onClickAway: () => C(!1), children: /* @__PURE__ */ Le(
|
|
1505
1608
|
"div",
|
|
1506
1609
|
{
|
|
1507
1610
|
ref: z,
|
|
1508
1611
|
onKeyDown: ue,
|
|
1509
|
-
className: vt(le["datepicker-wrapper"],
|
|
1510
|
-
"data-testid":
|
|
1612
|
+
className: vt(le["datepicker-wrapper"], y),
|
|
1613
|
+
"data-testid": h,
|
|
1511
1614
|
children: [
|
|
1512
|
-
|
|
1615
|
+
l ? ar({
|
|
1513
1616
|
navigateToPrevious: ve,
|
|
1514
|
-
navigateToNext:
|
|
1515
|
-
currentMonth:
|
|
1617
|
+
navigateToNext: je,
|
|
1618
|
+
currentMonth: S,
|
|
1516
1619
|
selectedDate: k,
|
|
1517
1620
|
locale: n,
|
|
1518
|
-
currentViewMode:
|
|
1621
|
+
currentViewMode: Y,
|
|
1519
1622
|
mode: e,
|
|
1520
1623
|
setCurrentViewMode: J,
|
|
1521
|
-
setIsOpen:
|
|
1522
|
-
setSelectedDate:
|
|
1624
|
+
setIsOpen: C,
|
|
1625
|
+
setSelectedDate: _,
|
|
1523
1626
|
onChange: s
|
|
1524
|
-
}) : /* @__PURE__ */
|
|
1525
|
-
|
|
1627
|
+
}) : /* @__PURE__ */ N("div", { className: le["datepicker-input-container"], "data-testid": `${h}-input-container`, children: e === "range" ? /* @__PURE__ */ N("div", { style: { display: "flex" }, children: /* @__PURE__ */ N(
|
|
1628
|
+
Kt,
|
|
1526
1629
|
{
|
|
1527
1630
|
leftInputProps: {
|
|
1528
1631
|
value: ae()[0],
|
|
1529
|
-
onFocus: () =>
|
|
1632
|
+
onFocus: () => C(!T),
|
|
1530
1633
|
placeholder: A[0],
|
|
1531
|
-
infoMessage:
|
|
1634
|
+
infoMessage: g == null ? void 0 : g[0],
|
|
1532
1635
|
errorMessage: O == null ? void 0 : O[0],
|
|
1533
1636
|
error: u,
|
|
1534
1637
|
disabled: b,
|
|
1535
1638
|
"aria-label": "Date Picker Input",
|
|
1536
1639
|
"aria-haspopup": "dialog",
|
|
1537
|
-
"aria-expanded":
|
|
1640
|
+
"aria-expanded": T,
|
|
1538
1641
|
"aria-controls": "date-picker-calendar"
|
|
1539
1642
|
},
|
|
1540
1643
|
rightInputProps: {
|
|
1541
1644
|
value: ae()[1],
|
|
1542
|
-
rightIcon:
|
|
1543
|
-
onFocus: () =>
|
|
1645
|
+
rightIcon: Se(!!(ae()[0] && ae()[1])),
|
|
1646
|
+
onFocus: () => C(!T),
|
|
1544
1647
|
placeholder: A[1],
|
|
1545
|
-
infoMessage:
|
|
1648
|
+
infoMessage: g == null ? void 0 : g[1],
|
|
1546
1649
|
errorMessage: O == null ? void 0 : O[1],
|
|
1547
1650
|
error: u,
|
|
1548
1651
|
disabled: b,
|
|
1549
1652
|
"aria-label": "Date Picker Input",
|
|
1550
1653
|
"aria-haspopup": "dialog",
|
|
1551
|
-
"aria-expanded":
|
|
1654
|
+
"aria-expanded": T,
|
|
1552
1655
|
"aria-controls": "date-picker-calendar"
|
|
1553
1656
|
},
|
|
1554
|
-
separator: /* @__PURE__ */
|
|
1657
|
+
separator: /* @__PURE__ */ N(Ke, { icon: "arrow-right" })
|
|
1555
1658
|
}
|
|
1556
|
-
) }) : /* @__PURE__ */
|
|
1557
|
-
|
|
1659
|
+
) }) : /* @__PURE__ */ N(
|
|
1660
|
+
Gt,
|
|
1558
1661
|
{
|
|
1559
|
-
placeholder:
|
|
1662
|
+
placeholder: P,
|
|
1560
1663
|
value: ae(),
|
|
1561
|
-
onFocus: () =>
|
|
1664
|
+
onFocus: () => C(!T),
|
|
1562
1665
|
"aria-label": "Date Picker Input",
|
|
1563
1666
|
"aria-haspopup": "dialog",
|
|
1564
|
-
"aria-expanded":
|
|
1667
|
+
"aria-expanded": T,
|
|
1565
1668
|
"aria-controls": "date-picker-calendar",
|
|
1566
|
-
rightIcon:
|
|
1567
|
-
infoMessage:
|
|
1669
|
+
rightIcon: Se(!!ae()),
|
|
1670
|
+
infoMessage: v,
|
|
1568
1671
|
errorMessage: x,
|
|
1569
1672
|
error: u,
|
|
1570
1673
|
disabled: b
|
|
1571
1674
|
}
|
|
1572
1675
|
) }),
|
|
1573
|
-
/* @__PURE__ */
|
|
1574
|
-
|
|
1676
|
+
/* @__PURE__ */ N(
|
|
1677
|
+
zt,
|
|
1575
1678
|
{
|
|
1576
|
-
open:
|
|
1679
|
+
open: T,
|
|
1577
1680
|
anchorEl: z.current,
|
|
1578
1681
|
placement: p,
|
|
1579
1682
|
id: "date-picker-calendar",
|
|
@@ -1581,8 +1684,8 @@ const Ze = (t) => {
|
|
|
1581
1684
|
role: "dialog",
|
|
1582
1685
|
"aria-modal": "true",
|
|
1583
1686
|
"aria-label": "Date selection calendar",
|
|
1584
|
-
"data-testid": `${
|
|
1585
|
-
children:
|
|
1687
|
+
"data-testid": `${h}-popper`,
|
|
1688
|
+
children: Ce()
|
|
1586
1689
|
}
|
|
1587
1690
|
)
|
|
1588
1691
|
]
|
|
@@ -1590,6 +1693,6 @@ const Ze = (t) => {
|
|
|
1590
1693
|
) });
|
|
1591
1694
|
};
|
|
1592
1695
|
export {
|
|
1593
|
-
|
|
1594
|
-
|
|
1696
|
+
uo as DatePicker,
|
|
1697
|
+
uo as default
|
|
1595
1698
|
};
|