@pismo/marola 2.0.2 → 2.1.1

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