@variamosple/variamos-components 0.0.23 → 0.0.24

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 (32) hide show
  1. package/dist/Components/AuthWrapper/index.js +18 -38
  2. package/dist/Components/ConfirmationModal/index.d.ts +1 -1
  3. package/dist/Components/ConfirmationModal/index.js +19 -280
  4. package/dist/Components/Footer/index.js +6 -6
  5. package/dist/Components/Header/HeaderOptions.js +16 -16
  6. package/dist/Components/Header/MenuItem.js +19 -20
  7. package/dist/Components/Header/SubHeader.js +35 -9
  8. package/dist/Components/Header/index.js +24 -25
  9. package/dist/Components/NotAuthorized/index.js +10 -11
  10. package/dist/Components/Paginator/index.js +56 -128
  11. package/dist/Components/ProtectedRoute/index.js +10 -10
  12. package/dist/Context/AnalyticsContext.js +7 -7
  13. package/dist/Context/MenuContext.js +16 -16
  14. package/dist/Context/SessionContext.js +35 -35
  15. package/dist/HOC/WithPageVisit.d.ts +1 -1
  16. package/dist/HOC/WithPageVisit.js +6 -6
  17. package/dist/assets/index.css +1 -1
  18. package/package.json +10 -7
  19. package/dist/AbstractModalHeader-UzCRSxIO.js +0 -1690
  20. package/dist/Anchor-DJG5WYYF.js +0 -40
  21. package/dist/Button-DWo2Fl71.js +0 -78
  22. package/dist/Button-GQJKgb76.js +0 -33
  23. package/dist/Container-BLjzOisH.js +0 -22
  24. package/dist/Nav-CdxSljzW.js +0 -144
  25. package/dist/NavDropdown-AuV3RgfC.js +0 -1764
  26. package/dist/NavLink-ebvp1HCw.js +0 -173
  27. package/dist/SubHeader-gTVD9DIX.js +0 -481
  28. package/dist/ThemeProvider-Q3gZ4GF2.js +0 -72
  29. package/dist/jsx-runtime-Drh4NO5G.js +0 -633
  30. package/dist/useEventCallback-Bfo0-hwZ.js +0 -16
  31. package/dist/useMergedRefs-BpAaCckn.js +0 -16
  32. package/dist/useWindow-rGE2GXIv.js +0 -118
@@ -1,1764 +0,0 @@
1
- import { g as dr, u as Q, c as Z, a as vr } from "./ThemeProvider-Q3gZ4GF2.js";
2
- import * as F from "react";
3
- import ie, { useState as Ne, useEffect as ue, useRef as K, useCallback as X, useMemo as Re, useContext as W } from "react";
4
- import { g as mr, i as pt, o as gr, l as Pe, d as Rt, f as hr, h as wr, q as dt, e as yr, u as Xe, b as br } from "./useWindow-rGE2GXIv.js";
5
- import { S as Ue, a as xr, m as vt, u as Or, i as mt, d as $r, e as Dr, c as Er, b as Cr } from "./NavLink-ebvp1HCw.js";
6
- import { u as ne } from "./useEventCallback-Bfo0-hwZ.js";
7
- import { j as S } from "./jsx-runtime-Drh4NO5G.js";
8
- import { B as Ar } from "./Button-DWo2Fl71.js";
9
- import { A as jr } from "./Anchor-DJG5WYYF.js";
10
- import { B as Pr } from "./Button-GQJKgb76.js";
11
- function Sr() {
12
- return Ne(null);
13
- }
14
- function Mr(e, t, r, n = !1) {
15
- const o = ne(r);
16
- ue(() => {
17
- const i = typeof e == "function" ? e() : e;
18
- return i.addEventListener(t, o, n), () => i.removeEventListener(t, o, n);
19
- }, [e]);
20
- }
21
- function Rr(e, t, r) {
22
- const n = K(e !== void 0), [o, i] = Ne(t), u = e !== void 0, a = n.current;
23
- return n.current = u, !u && a && o !== t && i(t), [u ? e : o, X((...s) => {
24
- const [l, ...c] = s;
25
- let f = r == null ? void 0 : r(l, ...c);
26
- return i(l), f;
27
- }, [r])];
28
- }
29
- const Be = /* @__PURE__ */ F.createContext(null);
30
- var gt = Object.prototype.hasOwnProperty;
31
- function ht(e, t, r) {
32
- for (r of e.keys())
33
- if (we(r, t)) return r;
34
- }
35
- function we(e, t) {
36
- var r, n, o;
37
- if (e === t) return !0;
38
- if (e && t && (r = e.constructor) === t.constructor) {
39
- if (r === Date) return e.getTime() === t.getTime();
40
- if (r === RegExp) return e.toString() === t.toString();
41
- if (r === Array) {
42
- if ((n = e.length) === t.length)
43
- for (; n-- && we(e[n], t[n]); ) ;
44
- return n === -1;
45
- }
46
- if (r === Set) {
47
- if (e.size !== t.size)
48
- return !1;
49
- for (n of e)
50
- if (o = n, o && typeof o == "object" && (o = ht(t, o), !o) || !t.has(o)) return !1;
51
- return !0;
52
- }
53
- if (r === Map) {
54
- if (e.size !== t.size)
55
- return !1;
56
- for (n of e)
57
- if (o = n[0], o && typeof o == "object" && (o = ht(t, o), !o) || !we(n[1], t.get(o)))
58
- return !1;
59
- return !0;
60
- }
61
- if (r === ArrayBuffer)
62
- e = new Uint8Array(e), t = new Uint8Array(t);
63
- else if (r === DataView) {
64
- if ((n = e.byteLength) === t.byteLength)
65
- for (; n-- && e.getInt8(n) === t.getInt8(n); ) ;
66
- return n === -1;
67
- }
68
- if (ArrayBuffer.isView(e)) {
69
- if ((n = e.byteLength) === t.byteLength)
70
- for (; n-- && e[n] === t[n]; ) ;
71
- return n === -1;
72
- }
73
- if (!r || typeof e == "object") {
74
- n = 0;
75
- for (r in e)
76
- if (gt.call(e, r) && ++n && !gt.call(t, r) || !(r in t) || !we(e[r], t[r])) return !1;
77
- return Object.keys(t).length === n;
78
- }
79
- }
80
- return e !== e && t !== t;
81
- }
82
- function kr(e) {
83
- const t = mr();
84
- return [e[0], X((r) => {
85
- if (t())
86
- return e[1](r);
87
- }, [t, e[1]])];
88
- }
89
- var N = "top", H = "bottom", V = "right", B = "left", Ye = "auto", $e = [N, H, V, B], le = "start", xe = "end", Tr = "clippingParents", kt = "viewport", he = "popper", Nr = "reference", wt = /* @__PURE__ */ $e.reduce(function(e, t) {
90
- return e.concat([t + "-" + le, t + "-" + xe]);
91
- }, []), Tt = /* @__PURE__ */ [].concat($e, [Ye]).reduce(function(e, t) {
92
- return e.concat([t, t + "-" + le, t + "-" + xe]);
93
- }, []), Br = "beforeRead", Ir = "read", Wr = "afterRead", Lr = "beforeMain", Hr = "main", Vr = "afterMain", Fr = "beforeWrite", qr = "write", Ur = "afterWrite", zr = [Br, Ir, Wr, Lr, Hr, Vr, Fr, qr, Ur];
94
- function U(e) {
95
- return e.split("-")[0];
96
- }
97
- function L(e) {
98
- if (e == null)
99
- return window;
100
- if (e.toString() !== "[object Window]") {
101
- var t = e.ownerDocument;
102
- return t && t.defaultView || window;
103
- }
104
- return e;
105
- }
106
- function ae(e) {
107
- var t = L(e).Element;
108
- return e instanceof t || e instanceof Element;
109
- }
110
- function z(e) {
111
- var t = L(e).HTMLElement;
112
- return e instanceof t || e instanceof HTMLElement;
113
- }
114
- function Ge(e) {
115
- if (typeof ShadowRoot > "u")
116
- return !1;
117
- var t = L(e).ShadowRoot;
118
- return e instanceof t || e instanceof ShadowRoot;
119
- }
120
- var oe = Math.max, ke = Math.min, fe = Math.round;
121
- function ze() {
122
- var e = navigator.userAgentData;
123
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
124
- return t.brand + "/" + t.version;
125
- }).join(" ") : navigator.userAgent;
126
- }
127
- function Nt() {
128
- return !/^((?!chrome|android).)*safari/i.test(ze());
129
- }
130
- function pe(e, t, r) {
131
- t === void 0 && (t = !1), r === void 0 && (r = !1);
132
- var n = e.getBoundingClientRect(), o = 1, i = 1;
133
- t && z(e) && (o = e.offsetWidth > 0 && fe(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && fe(n.height) / e.offsetHeight || 1);
134
- var u = ae(e) ? L(e) : window, a = u.visualViewport, s = !Nt() && r, l = (n.left + (s && a ? a.offsetLeft : 0)) / o, c = (n.top + (s && a ? a.offsetTop : 0)) / i, f = n.width / o, m = n.height / i;
135
- return {
136
- width: f,
137
- height: m,
138
- top: c,
139
- right: l + f,
140
- bottom: c + m,
141
- left: l,
142
- x: l,
143
- y: c
144
- };
145
- }
146
- function Je(e) {
147
- var t = pe(e), r = e.offsetWidth, n = e.offsetHeight;
148
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
149
- x: e.offsetLeft,
150
- y: e.offsetTop,
151
- width: r,
152
- height: n
153
- };
154
- }
155
- function Bt(e, t) {
156
- var r = t.getRootNode && t.getRootNode();
157
- if (e.contains(t))
158
- return !0;
159
- if (r && Ge(r)) {
160
- var n = t;
161
- do {
162
- if (n && e.isSameNode(n))
163
- return !0;
164
- n = n.parentNode || n.host;
165
- } while (n);
166
- }
167
- return !1;
168
- }
169
- function J(e) {
170
- return e ? (e.nodeName || "").toLowerCase() : null;
171
- }
172
- function Y(e) {
173
- return L(e).getComputedStyle(e);
174
- }
175
- function Kr(e) {
176
- return ["table", "td", "th"].indexOf(J(e)) >= 0;
177
- }
178
- function _(e) {
179
- return ((ae(e) ? e.ownerDocument : (
180
- // $FlowFixMe[prop-missing]
181
- e.document
182
- )) || window.document).documentElement;
183
- }
184
- function Ie(e) {
185
- return J(e) === "html" ? e : (
186
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
187
- // $FlowFixMe[incompatible-return]
188
- // $FlowFixMe[prop-missing]
189
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
190
- e.parentNode || // DOM Element detected
191
- (Ge(e) ? e.host : null) || // ShadowRoot detected
192
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
193
- _(e)
194
- );
195
- }
196
- function yt(e) {
197
- return !z(e) || // https://github.com/popperjs/popper-core/issues/837
198
- Y(e).position === "fixed" ? null : e.offsetParent;
199
- }
200
- function Xr(e) {
201
- var t = /firefox/i.test(ze()), r = /Trident/i.test(ze());
202
- if (r && z(e)) {
203
- var n = Y(e);
204
- if (n.position === "fixed")
205
- return null;
206
- }
207
- var o = Ie(e);
208
- for (Ge(o) && (o = o.host); z(o) && ["html", "body"].indexOf(J(o)) < 0; ) {
209
- var i = Y(o);
210
- if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
211
- return o;
212
- o = o.parentNode;
213
- }
214
- return null;
215
- }
216
- function De(e) {
217
- for (var t = L(e), r = yt(e); r && Kr(r) && Y(r).position === "static"; )
218
- r = yt(r);
219
- return r && (J(r) === "html" || J(r) === "body" && Y(r).position === "static") ? t : r || Xr(e) || t;
220
- }
221
- function Qe(e) {
222
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
223
- }
224
- function ye(e, t, r) {
225
- return oe(e, ke(t, r));
226
- }
227
- function Yr(e, t, r) {
228
- var n = ye(e, t, r);
229
- return n > r ? r : n;
230
- }
231
- function It() {
232
- return {
233
- top: 0,
234
- right: 0,
235
- bottom: 0,
236
- left: 0
237
- };
238
- }
239
- function Wt(e) {
240
- return Object.assign({}, It(), e);
241
- }
242
- function Lt(e, t) {
243
- return t.reduce(function(r, n) {
244
- return r[n] = e, r;
245
- }, {});
246
- }
247
- var Gr = function(t, r) {
248
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
249
- placement: r.placement
250
- })) : t, Wt(typeof t != "number" ? t : Lt(t, $e));
251
- };
252
- function Jr(e) {
253
- var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, u = r.modifiersData.popperOffsets, a = U(r.placement), s = Qe(a), l = [B, V].indexOf(a) >= 0, c = l ? "height" : "width";
254
- if (!(!i || !u)) {
255
- var f = Gr(o.padding, r), m = Je(i), p = s === "y" ? N : B, v = s === "y" ? H : V, g = r.rects.reference[c] + r.rects.reference[s] - u[s] - r.rects.popper[c], d = u[s] - r.rects.reference[s], x = De(i), y = x ? s === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, b = g / 2 - d / 2, h = f[p], w = y - m[c] - f[v], $ = y / 2 - m[c] / 2 + b, D = ye(h, $, w), E = s;
256
- r.modifiersData[n] = (t = {}, t[E] = D, t.centerOffset = D - $, t);
257
- }
258
- }
259
- function Qr(e) {
260
- var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
261
- o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || Bt(t.elements.popper, o) && (t.elements.arrow = o));
262
- }
263
- const Zr = {
264
- name: "arrow",
265
- enabled: !0,
266
- phase: "main",
267
- fn: Jr,
268
- effect: Qr,
269
- requires: ["popperOffsets"],
270
- requiresIfExists: ["preventOverflow"]
271
- };
272
- function de(e) {
273
- return e.split("-")[1];
274
- }
275
- var _r = {
276
- top: "auto",
277
- right: "auto",
278
- bottom: "auto",
279
- left: "auto"
280
- };
281
- function en(e, t) {
282
- var r = e.x, n = e.y, o = t.devicePixelRatio || 1;
283
- return {
284
- x: fe(r * o) / o || 0,
285
- y: fe(n * o) / o || 0
286
- };
287
- }
288
- function bt(e) {
289
- var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, u = e.offsets, a = e.position, s = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, f = e.isFixed, m = u.x, p = m === void 0 ? 0 : m, v = u.y, g = v === void 0 ? 0 : v, d = typeof c == "function" ? c({
290
- x: p,
291
- y: g
292
- }) : {
293
- x: p,
294
- y: g
295
- };
296
- p = d.x, g = d.y;
297
- var x = u.hasOwnProperty("x"), y = u.hasOwnProperty("y"), b = B, h = N, w = window;
298
- if (l) {
299
- var $ = De(r), D = "clientHeight", E = "clientWidth";
300
- if ($ === L(r) && ($ = _(r), Y($).position !== "static" && a === "absolute" && (D = "scrollHeight", E = "scrollWidth")), $ = $, o === N || (o === B || o === V) && i === xe) {
301
- h = H;
302
- var j = f && $ === w && w.visualViewport ? w.visualViewport.height : (
303
- // $FlowFixMe[prop-missing]
304
- $[D]
305
- );
306
- g -= j - n.height, g *= s ? 1 : -1;
307
- }
308
- if (o === B || (o === N || o === H) && i === xe) {
309
- b = V;
310
- var P = f && $ === w && w.visualViewport ? w.visualViewport.width : (
311
- // $FlowFixMe[prop-missing]
312
- $[E]
313
- );
314
- p -= P - n.width, p *= s ? 1 : -1;
315
- }
316
- }
317
- var O = Object.assign({
318
- position: a
319
- }, l && _r), C = c === !0 ? en({
320
- x: p,
321
- y: g
322
- }, L(r)) : {
323
- x: p,
324
- y: g
325
- };
326
- if (p = C.x, g = C.y, s) {
327
- var A;
328
- return Object.assign({}, O, (A = {}, A[h] = y ? "0" : "", A[b] = x ? "0" : "", A.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + g + "px)" : "translate3d(" + p + "px, " + g + "px, 0)", A));
329
- }
330
- return Object.assign({}, O, (t = {}, t[h] = y ? g + "px" : "", t[b] = x ? p + "px" : "", t.transform = "", t));
331
- }
332
- function tn(e) {
333
- var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, u = i === void 0 ? !0 : i, a = r.roundOffsets, s = a === void 0 ? !0 : a, l = {
334
- placement: U(t.placement),
335
- variation: de(t.placement),
336
- popper: t.elements.popper,
337
- popperRect: t.rects.popper,
338
- gpuAcceleration: o,
339
- isFixed: t.options.strategy === "fixed"
340
- };
341
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, bt(Object.assign({}, l, {
342
- offsets: t.modifiersData.popperOffsets,
343
- position: t.options.strategy,
344
- adaptive: u,
345
- roundOffsets: s
346
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, bt(Object.assign({}, l, {
347
- offsets: t.modifiersData.arrow,
348
- position: "absolute",
349
- adaptive: !1,
350
- roundOffsets: s
351
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
352
- "data-popper-placement": t.placement
353
- });
354
- }
355
- const rn = {
356
- name: "computeStyles",
357
- enabled: !0,
358
- phase: "beforeWrite",
359
- fn: tn,
360
- data: {}
361
- };
362
- var Se = {
363
- passive: !0
364
- };
365
- function nn(e) {
366
- var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, u = n.resize, a = u === void 0 ? !0 : u, s = L(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
367
- return i && l.forEach(function(c) {
368
- c.addEventListener("scroll", r.update, Se);
369
- }), a && s.addEventListener("resize", r.update, Se), function() {
370
- i && l.forEach(function(c) {
371
- c.removeEventListener("scroll", r.update, Se);
372
- }), a && s.removeEventListener("resize", r.update, Se);
373
- };
374
- }
375
- const on = {
376
- name: "eventListeners",
377
- enabled: !0,
378
- phase: "write",
379
- fn: function() {
380
- },
381
- effect: nn,
382
- data: {}
383
- };
384
- var an = {
385
- left: "right",
386
- right: "left",
387
- bottom: "top",
388
- top: "bottom"
389
- };
390
- function Me(e) {
391
- return e.replace(/left|right|bottom|top/g, function(t) {
392
- return an[t];
393
- });
394
- }
395
- var sn = {
396
- start: "end",
397
- end: "start"
398
- };
399
- function xt(e) {
400
- return e.replace(/start|end/g, function(t) {
401
- return sn[t];
402
- });
403
- }
404
- function Ze(e) {
405
- var t = L(e), r = t.pageXOffset, n = t.pageYOffset;
406
- return {
407
- scrollLeft: r,
408
- scrollTop: n
409
- };
410
- }
411
- function _e(e) {
412
- return pe(_(e)).left + Ze(e).scrollLeft;
413
- }
414
- function cn(e, t) {
415
- var r = L(e), n = _(e), o = r.visualViewport, i = n.clientWidth, u = n.clientHeight, a = 0, s = 0;
416
- if (o) {
417
- i = o.width, u = o.height;
418
- var l = Nt();
419
- (l || !l && t === "fixed") && (a = o.offsetLeft, s = o.offsetTop);
420
- }
421
- return {
422
- width: i,
423
- height: u,
424
- x: a + _e(e),
425
- y: s
426
- };
427
- }
428
- function un(e) {
429
- var t, r = _(e), n = Ze(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = oe(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), u = oe(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -n.scrollLeft + _e(e), s = -n.scrollTop;
430
- return Y(o || r).direction === "rtl" && (a += oe(r.clientWidth, o ? o.clientWidth : 0) - i), {
431
- width: i,
432
- height: u,
433
- x: a,
434
- y: s
435
- };
436
- }
437
- function et(e) {
438
- var t = Y(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
439
- return /auto|scroll|overlay|hidden/.test(r + o + n);
440
- }
441
- function Ht(e) {
442
- return ["html", "body", "#document"].indexOf(J(e)) >= 0 ? e.ownerDocument.body : z(e) && et(e) ? e : Ht(Ie(e));
443
- }
444
- function be(e, t) {
445
- var r;
446
- t === void 0 && (t = []);
447
- var n = Ht(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = L(n), u = o ? [i].concat(i.visualViewport || [], et(n) ? n : []) : n, a = t.concat(u);
448
- return o ? a : (
449
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
450
- a.concat(be(Ie(u)))
451
- );
452
- }
453
- function Ke(e) {
454
- return Object.assign({}, e, {
455
- left: e.x,
456
- top: e.y,
457
- right: e.x + e.width,
458
- bottom: e.y + e.height
459
- });
460
- }
461
- function ln(e, t) {
462
- var r = pe(e, !1, t === "fixed");
463
- 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;
464
- }
465
- function Ot(e, t, r) {
466
- return t === kt ? Ke(cn(e, r)) : ae(t) ? ln(t, r) : Ke(un(_(e)));
467
- }
468
- function fn(e) {
469
- var t = be(Ie(e)), r = ["absolute", "fixed"].indexOf(Y(e).position) >= 0, n = r && z(e) ? De(e) : e;
470
- return ae(n) ? t.filter(function(o) {
471
- return ae(o) && Bt(o, n) && J(o) !== "body";
472
- }) : [];
473
- }
474
- function pn(e, t, r, n) {
475
- var o = t === "clippingParents" ? fn(e) : [].concat(t), i = [].concat(o, [r]), u = i[0], a = i.reduce(function(s, l) {
476
- var c = Ot(e, l, n);
477
- return s.top = oe(c.top, s.top), s.right = ke(c.right, s.right), s.bottom = ke(c.bottom, s.bottom), s.left = oe(c.left, s.left), s;
478
- }, Ot(e, u, n));
479
- return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
480
- }
481
- function Vt(e) {
482
- var t = e.reference, r = e.element, n = e.placement, o = n ? U(n) : null, i = n ? de(n) : null, u = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, s;
483
- switch (o) {
484
- case N:
485
- s = {
486
- x: u,
487
- y: t.y - r.height
488
- };
489
- break;
490
- case H:
491
- s = {
492
- x: u,
493
- y: t.y + t.height
494
- };
495
- break;
496
- case V:
497
- s = {
498
- x: t.x + t.width,
499
- y: a
500
- };
501
- break;
502
- case B:
503
- s = {
504
- x: t.x - r.width,
505
- y: a
506
- };
507
- break;
508
- default:
509
- s = {
510
- x: t.x,
511
- y: t.y
512
- };
513
- }
514
- var l = o ? Qe(o) : null;
515
- if (l != null) {
516
- var c = l === "y" ? "height" : "width";
517
- switch (i) {
518
- case le:
519
- s[l] = s[l] - (t[c] / 2 - r[c] / 2);
520
- break;
521
- case xe:
522
- s[l] = s[l] + (t[c] / 2 - r[c] / 2);
523
- break;
524
- }
525
- }
526
- return s;
527
- }
528
- function Oe(e, t) {
529
- t === void 0 && (t = {});
530
- var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, u = i === void 0 ? e.strategy : i, a = r.boundary, s = a === void 0 ? Tr : a, l = r.rootBoundary, c = l === void 0 ? kt : l, f = r.elementContext, m = f === void 0 ? he : f, p = r.altBoundary, v = p === void 0 ? !1 : p, g = r.padding, d = g === void 0 ? 0 : g, x = Wt(typeof d != "number" ? d : Lt(d, $e)), y = m === he ? Nr : he, b = e.rects.popper, h = e.elements[v ? y : m], w = pn(ae(h) ? h : h.contextElement || _(e.elements.popper), s, c, u), $ = pe(e.elements.reference), D = Vt({
531
- reference: $,
532
- element: b,
533
- placement: o
534
- }), E = Ke(Object.assign({}, b, D)), j = m === he ? E : $, P = {
535
- top: w.top - j.top + x.top,
536
- bottom: j.bottom - w.bottom + x.bottom,
537
- left: w.left - j.left + x.left,
538
- right: j.right - w.right + x.right
539
- }, O = e.modifiersData.offset;
540
- if (m === he && O) {
541
- var C = O[o];
542
- Object.keys(P).forEach(function(A) {
543
- var M = [V, H].indexOf(A) >= 0 ? 1 : -1, T = [N, H].indexOf(A) >= 0 ? "y" : "x";
544
- P[A] += C[T] * M;
545
- });
546
- }
547
- return P;
548
- }
549
- function dn(e, t) {
550
- t === void 0 && (t = {});
551
- var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, u = r.padding, a = r.flipVariations, s = r.allowedAutoPlacements, l = s === void 0 ? Tt : s, c = de(n), f = c ? a ? wt : wt.filter(function(v) {
552
- return de(v) === c;
553
- }) : $e, m = f.filter(function(v) {
554
- return l.indexOf(v) >= 0;
555
- });
556
- m.length === 0 && (m = f);
557
- var p = m.reduce(function(v, g) {
558
- return v[g] = Oe(e, {
559
- placement: g,
560
- boundary: o,
561
- rootBoundary: i,
562
- padding: u
563
- })[U(g)], v;
564
- }, {});
565
- return Object.keys(p).sort(function(v, g) {
566
- return p[v] - p[g];
567
- });
568
- }
569
- function vn(e) {
570
- if (U(e) === Ye)
571
- return [];
572
- var t = Me(e);
573
- return [xt(e), t, xt(t)];
574
- }
575
- function mn(e) {
576
- var t = e.state, r = e.options, n = e.name;
577
- if (!t.modifiersData[n]._skip) {
578
- for (var o = r.mainAxis, i = o === void 0 ? !0 : o, u = r.altAxis, a = u === void 0 ? !0 : u, s = r.fallbackPlacements, l = r.padding, c = r.boundary, f = r.rootBoundary, m = r.altBoundary, p = r.flipVariations, v = p === void 0 ? !0 : p, g = r.allowedAutoPlacements, d = t.options.placement, x = U(d), y = x === d, b = s || (y || !v ? [Me(d)] : vn(d)), h = [d].concat(b).reduce(function(ce, G) {
579
- return ce.concat(U(G) === Ye ? dn(t, {
580
- placement: G,
581
- boundary: c,
582
- rootBoundary: f,
583
- padding: l,
584
- flipVariations: v,
585
- allowedAutoPlacements: g
586
- }) : G);
587
- }, []), w = t.rects.reference, $ = t.rects.popper, D = /* @__PURE__ */ new Map(), E = !0, j = h[0], P = 0; P < h.length; P++) {
588
- var O = h[P], C = U(O), A = de(O) === le, M = [N, H].indexOf(C) >= 0, T = M ? "width" : "height", R = Oe(t, {
589
- placement: O,
590
- boundary: c,
591
- rootBoundary: f,
592
- altBoundary: m,
593
- padding: l
594
- }), I = M ? A ? V : B : A ? H : N;
595
- w[T] > $[T] && (I = Me(I));
596
- var ve = Me(I), q = [];
597
- if (i && q.push(R[C] <= 0), a && q.push(R[I] <= 0, R[ve] <= 0), q.every(function(ce) {
598
- return ce;
599
- })) {
600
- j = O, E = !1;
601
- break;
602
- }
603
- D.set(O, q);
604
- }
605
- if (E)
606
- for (var k = v ? 3 : 1, se = function(G) {
607
- var ge = h.find(function(Ae) {
608
- var ee = D.get(Ae);
609
- if (ee)
610
- return ee.slice(0, G).every(function(We) {
611
- return We;
612
- });
613
- });
614
- if (ge)
615
- return j = ge, "break";
616
- }, me = k; me > 0; me--) {
617
- var Ce = se(me);
618
- if (Ce === "break") break;
619
- }
620
- t.placement !== j && (t.modifiersData[n]._skip = !0, t.placement = j, t.reset = !0);
621
- }
622
- }
623
- const gn = {
624
- name: "flip",
625
- enabled: !0,
626
- phase: "main",
627
- fn: mn,
628
- requiresIfExists: ["offset"],
629
- data: {
630
- _skip: !1
631
- }
632
- };
633
- function $t(e, t, r) {
634
- return r === void 0 && (r = {
635
- x: 0,
636
- y: 0
637
- }), {
638
- top: e.top - t.height - r.y,
639
- right: e.right - t.width + r.x,
640
- bottom: e.bottom - t.height + r.y,
641
- left: e.left - t.width - r.x
642
- };
643
- }
644
- function Dt(e) {
645
- return [N, V, H, B].some(function(t) {
646
- return e[t] >= 0;
647
- });
648
- }
649
- function hn(e) {
650
- var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, u = Oe(t, {
651
- elementContext: "reference"
652
- }), a = Oe(t, {
653
- altBoundary: !0
654
- }), s = $t(u, n), l = $t(a, o, i), c = Dt(s), f = Dt(l);
655
- t.modifiersData[r] = {
656
- referenceClippingOffsets: s,
657
- popperEscapeOffsets: l,
658
- isReferenceHidden: c,
659
- hasPopperEscaped: f
660
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
661
- "data-popper-reference-hidden": c,
662
- "data-popper-escaped": f
663
- });
664
- }
665
- const wn = {
666
- name: "hide",
667
- enabled: !0,
668
- phase: "main",
669
- requiresIfExists: ["preventOverflow"],
670
- fn: hn
671
- };
672
- function yn(e, t, r) {
673
- var n = U(e), o = [B, N].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
674
- placement: e
675
- })) : r, u = i[0], a = i[1];
676
- return u = u || 0, a = (a || 0) * o, [B, V].indexOf(n) >= 0 ? {
677
- x: a,
678
- y: u
679
- } : {
680
- x: u,
681
- y: a
682
- };
683
- }
684
- function bn(e) {
685
- var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, u = Tt.reduce(function(c, f) {
686
- return c[f] = yn(f, t.rects, i), c;
687
- }, {}), a = u[t.placement], s = a.x, l = a.y;
688
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += l), t.modifiersData[n] = u;
689
- }
690
- const xn = {
691
- name: "offset",
692
- enabled: !0,
693
- phase: "main",
694
- requires: ["popperOffsets"],
695
- fn: bn
696
- };
697
- function On(e) {
698
- var t = e.state, r = e.name;
699
- t.modifiersData[r] = Vt({
700
- reference: t.rects.reference,
701
- element: t.rects.popper,
702
- placement: t.placement
703
- });
704
- }
705
- const $n = {
706
- name: "popperOffsets",
707
- enabled: !0,
708
- phase: "read",
709
- fn: On,
710
- data: {}
711
- };
712
- function Dn(e) {
713
- return e === "x" ? "y" : "x";
714
- }
715
- function En(e) {
716
- var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, u = r.altAxis, a = u === void 0 ? !1 : u, s = r.boundary, l = r.rootBoundary, c = r.altBoundary, f = r.padding, m = r.tether, p = m === void 0 ? !0 : m, v = r.tetherOffset, g = v === void 0 ? 0 : v, d = Oe(t, {
717
- boundary: s,
718
- rootBoundary: l,
719
- padding: f,
720
- altBoundary: c
721
- }), x = U(t.placement), y = de(t.placement), b = !y, h = Qe(x), w = Dn(h), $ = t.modifiersData.popperOffsets, D = t.rects.reference, E = t.rects.popper, j = typeof g == "function" ? g(Object.assign({}, t.rects, {
722
- placement: t.placement
723
- })) : g, P = typeof j == "number" ? {
724
- mainAxis: j,
725
- altAxis: j
726
- } : Object.assign({
727
- mainAxis: 0,
728
- altAxis: 0
729
- }, j), O = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, C = {
730
- x: 0,
731
- y: 0
732
- };
733
- if ($) {
734
- if (i) {
735
- var A, M = h === "y" ? N : B, T = h === "y" ? H : V, R = h === "y" ? "height" : "width", I = $[h], ve = I + d[M], q = I - d[T], k = p ? -E[R] / 2 : 0, se = y === le ? D[R] : E[R], me = y === le ? -E[R] : -D[R], Ce = t.elements.arrow, ce = p && Ce ? Je(Ce) : {
736
- width: 0,
737
- height: 0
738
- }, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : It(), ge = G[M], Ae = G[T], ee = ye(0, D[R], ce[R]), We = b ? D[R] / 2 - k - ee - ge - P.mainAxis : se - ee - ge - P.mainAxis, sr = b ? -D[R] / 2 + k + ee + Ae + P.mainAxis : me + ee + Ae + P.mainAxis, Le = t.elements.arrow && De(t.elements.arrow), cr = Le ? h === "y" ? Le.clientTop || 0 : Le.clientLeft || 0 : 0, nt = (A = O == null ? void 0 : O[h]) != null ? A : 0, ur = I + We - nt - cr, lr = I + sr - nt, ot = ye(p ? ke(ve, ur) : ve, I, p ? oe(q, lr) : q);
739
- $[h] = ot, C[h] = ot - I;
740
- }
741
- if (a) {
742
- var it, fr = h === "x" ? N : B, pr = h === "x" ? H : V, te = $[w], je = w === "y" ? "height" : "width", at = te + d[fr], st = te - d[pr], He = [N, B].indexOf(x) !== -1, ct = (it = O == null ? void 0 : O[w]) != null ? it : 0, ut = He ? at : te - D[je] - E[je] - ct + P.altAxis, lt = He ? te + D[je] + E[je] - ct - P.altAxis : st, ft = p && He ? Yr(ut, te, lt) : ye(p ? ut : at, te, p ? lt : st);
743
- $[w] = ft, C[w] = ft - te;
744
- }
745
- t.modifiersData[n] = C;
746
- }
747
- }
748
- const Cn = {
749
- name: "preventOverflow",
750
- enabled: !0,
751
- phase: "main",
752
- fn: En,
753
- requiresIfExists: ["offset"]
754
- };
755
- function An(e) {
756
- return {
757
- scrollLeft: e.scrollLeft,
758
- scrollTop: e.scrollTop
759
- };
760
- }
761
- function jn(e) {
762
- return e === L(e) || !z(e) ? Ze(e) : An(e);
763
- }
764
- function Pn(e) {
765
- var t = e.getBoundingClientRect(), r = fe(t.width) / e.offsetWidth || 1, n = fe(t.height) / e.offsetHeight || 1;
766
- return r !== 1 || n !== 1;
767
- }
768
- function Sn(e, t, r) {
769
- r === void 0 && (r = !1);
770
- var n = z(t), o = z(t) && Pn(t), i = _(t), u = pe(e, o, r), a = {
771
- scrollLeft: 0,
772
- scrollTop: 0
773
- }, s = {
774
- x: 0,
775
- y: 0
776
- };
777
- return (n || !n && !r) && ((J(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
778
- et(i)) && (a = jn(t)), z(t) ? (s = pe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = _e(i))), {
779
- x: u.left + a.scrollLeft - s.x,
780
- y: u.top + a.scrollTop - s.y,
781
- width: u.width,
782
- height: u.height
783
- };
784
- }
785
- function Mn(e) {
786
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
787
- e.forEach(function(i) {
788
- t.set(i.name, i);
789
- });
790
- function o(i) {
791
- r.add(i.name);
792
- var u = [].concat(i.requires || [], i.requiresIfExists || []);
793
- u.forEach(function(a) {
794
- if (!r.has(a)) {
795
- var s = t.get(a);
796
- s && o(s);
797
- }
798
- }), n.push(i);
799
- }
800
- return e.forEach(function(i) {
801
- r.has(i.name) || o(i);
802
- }), n;
803
- }
804
- function Rn(e) {
805
- var t = Mn(e);
806
- return zr.reduce(function(r, n) {
807
- return r.concat(t.filter(function(o) {
808
- return o.phase === n;
809
- }));
810
- }, []);
811
- }
812
- function kn(e) {
813
- var t;
814
- return function() {
815
- return t || (t = new Promise(function(r) {
816
- Promise.resolve().then(function() {
817
- t = void 0, r(e());
818
- });
819
- })), t;
820
- };
821
- }
822
- function Tn(e) {
823
- var t = e.reduce(function(r, n) {
824
- var o = r[n.name];
825
- return r[n.name] = o ? Object.assign({}, o, n, {
826
- options: Object.assign({}, o.options, n.options),
827
- data: Object.assign({}, o.data, n.data)
828
- }) : n, r;
829
- }, {});
830
- return Object.keys(t).map(function(r) {
831
- return t[r];
832
- });
833
- }
834
- var Et = {
835
- placement: "bottom",
836
- modifiers: [],
837
- strategy: "absolute"
838
- };
839
- function Ct() {
840
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
841
- t[r] = arguments[r];
842
- return !t.some(function(n) {
843
- return !(n && typeof n.getBoundingClientRect == "function");
844
- });
845
- }
846
- function Nn(e) {
847
- e === void 0 && (e = {});
848
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, i = o === void 0 ? Et : o;
849
- return function(a, s, l) {
850
- l === void 0 && (l = i);
851
- var c = {
852
- placement: "bottom",
853
- orderedModifiers: [],
854
- options: Object.assign({}, Et, i),
855
- modifiersData: {},
856
- elements: {
857
- reference: a,
858
- popper: s
859
- },
860
- attributes: {},
861
- styles: {}
862
- }, f = [], m = !1, p = {
863
- state: c,
864
- setOptions: function(x) {
865
- var y = typeof x == "function" ? x(c.options) : x;
866
- g(), c.options = Object.assign({}, i, c.options, y), c.scrollParents = {
867
- reference: ae(a) ? be(a) : a.contextElement ? be(a.contextElement) : [],
868
- popper: be(s)
869
- };
870
- var b = Rn(Tn([].concat(n, c.options.modifiers)));
871
- return c.orderedModifiers = b.filter(function(h) {
872
- return h.enabled;
873
- }), v(), p.update();
874
- },
875
- // Sync update – it will always be executed, even if not necessary. This
876
- // is useful for low frequency updates where sync behavior simplifies the
877
- // logic.
878
- // For high frequency updates (e.g. `resize` and `scroll` events), always
879
- // prefer the async Popper#update method
880
- forceUpdate: function() {
881
- if (!m) {
882
- var x = c.elements, y = x.reference, b = x.popper;
883
- if (Ct(y, b)) {
884
- c.rects = {
885
- reference: Sn(y, De(b), c.options.strategy === "fixed"),
886
- popper: Je(b)
887
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
888
- return c.modifiersData[P.name] = Object.assign({}, P.data);
889
- });
890
- for (var h = 0; h < c.orderedModifiers.length; h++) {
891
- if (c.reset === !0) {
892
- c.reset = !1, h = -1;
893
- continue;
894
- }
895
- var w = c.orderedModifiers[h], $ = w.fn, D = w.options, E = D === void 0 ? {} : D, j = w.name;
896
- typeof $ == "function" && (c = $({
897
- state: c,
898
- options: E,
899
- name: j,
900
- instance: p
901
- }) || c);
902
- }
903
- }
904
- }
905
- },
906
- // Async and optimistically optimized update – it will not be executed if
907
- // not necessary (debounced to run at most once-per-tick)
908
- update: kn(function() {
909
- return new Promise(function(d) {
910
- p.forceUpdate(), d(c);
911
- });
912
- }),
913
- destroy: function() {
914
- g(), m = !0;
915
- }
916
- };
917
- if (!Ct(a, s))
918
- return p;
919
- p.setOptions(l).then(function(d) {
920
- !m && l.onFirstUpdate && l.onFirstUpdate(d);
921
- });
922
- function v() {
923
- c.orderedModifiers.forEach(function(d) {
924
- var x = d.name, y = d.options, b = y === void 0 ? {} : y, h = d.effect;
925
- if (typeof h == "function") {
926
- var w = h({
927
- state: c,
928
- name: x,
929
- instance: p,
930
- options: b
931
- }), $ = function() {
932
- };
933
- f.push(w || $);
934
- }
935
- });
936
- }
937
- function g() {
938
- f.forEach(function(d) {
939
- return d();
940
- }), f = [];
941
- }
942
- return p;
943
- };
944
- }
945
- const Bn = Nn({
946
- defaultModifiers: [wn, $n, rn, on, xn, gn, Cn, Zr]
947
- }), In = ["enabled", "placement", "strategy", "modifiers"];
948
- function Wn(e, t) {
949
- if (e == null) return {};
950
- var r = {};
951
- for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
952
- if (t.indexOf(n) >= 0) continue;
953
- r[n] = e[n];
954
- }
955
- return r;
956
- }
957
- const Ln = {
958
- name: "applyStyles",
959
- enabled: !1,
960
- phase: "afterWrite",
961
- fn: () => {
962
- }
963
- }, Hn = {
964
- name: "ariaDescribedBy",
965
- enabled: !0,
966
- phase: "afterWrite",
967
- effect: ({
968
- state: e
969
- }) => () => {
970
- const {
971
- reference: t,
972
- popper: r
973
- } = e.elements;
974
- if ("removeAttribute" in t) {
975
- const n = (t.getAttribute("aria-describedby") || "").split(",").filter((o) => o.trim() !== r.id);
976
- n.length ? t.setAttribute("aria-describedby", n.join(",")) : t.removeAttribute("aria-describedby");
977
- }
978
- },
979
- fn: ({
980
- state: e
981
- }) => {
982
- var t;
983
- const {
984
- popper: r,
985
- reference: n
986
- } = e.elements, o = (t = r.getAttribute("role")) == null ? void 0 : t.toLowerCase();
987
- if (r.id && o === "tooltip" && "setAttribute" in n) {
988
- const i = n.getAttribute("aria-describedby");
989
- if (i && i.split(",").indexOf(r.id) !== -1)
990
- return;
991
- n.setAttribute("aria-describedby", i ? `${i},${r.id}` : r.id);
992
- }
993
- }
994
- }, Vn = [];
995
- function Fn(e, t, r = {}) {
996
- let {
997
- enabled: n = !0,
998
- placement: o = "bottom",
999
- strategy: i = "absolute",
1000
- modifiers: u = Vn
1001
- } = r, a = Wn(r, In);
1002
- const s = K(u), l = K(), c = X(() => {
1003
- var d;
1004
- (d = l.current) == null || d.update();
1005
- }, []), f = X(() => {
1006
- var d;
1007
- (d = l.current) == null || d.forceUpdate();
1008
- }, []), [m, p] = kr(Ne({
1009
- placement: o,
1010
- update: c,
1011
- forceUpdate: f,
1012
- attributes: {},
1013
- styles: {
1014
- popper: {},
1015
- arrow: {}
1016
- }
1017
- })), v = Re(() => ({
1018
- name: "updateStateModifier",
1019
- enabled: !0,
1020
- phase: "write",
1021
- requires: ["computeStyles"],
1022
- fn: ({
1023
- state: d
1024
- }) => {
1025
- const x = {}, y = {};
1026
- Object.keys(d.elements).forEach((b) => {
1027
- x[b] = d.styles[b], y[b] = d.attributes[b];
1028
- }), p({
1029
- state: d,
1030
- styles: x,
1031
- attributes: y,
1032
- update: c,
1033
- forceUpdate: f,
1034
- placement: d.placement
1035
- });
1036
- }
1037
- }), [c, f, p]), g = Re(() => (we(s.current, u) || (s.current = u), s.current), [u]);
1038
- return ue(() => {
1039
- !l.current || !n || l.current.setOptions({
1040
- placement: o,
1041
- strategy: i,
1042
- modifiers: [...g, v, Ln]
1043
- });
1044
- }, [i, o, v, n, g]), ue(() => {
1045
- if (!(!n || e == null || t == null))
1046
- return l.current = Bn(e, t, Object.assign({}, a, {
1047
- placement: o,
1048
- strategy: i,
1049
- modifiers: [...g, Hn, v]
1050
- })), () => {
1051
- l.current != null && (l.current.destroy(), l.current = void 0, p((d) => Object.assign({}, d, {
1052
- attributes: {},
1053
- styles: {
1054
- popper: {}
1055
- }
1056
- })));
1057
- };
1058
- }, [n, e, t]), m;
1059
- }
1060
- var Ve, At;
1061
- function qn() {
1062
- if (At) return Ve;
1063
- At = 1;
1064
- var e = process.env.NODE_ENV !== "production", t = function() {
1065
- };
1066
- if (e) {
1067
- var r = function(o, i) {
1068
- var u = arguments.length;
1069
- i = new Array(u > 1 ? u - 1 : 0);
1070
- for (var a = 1; a < u; a++)
1071
- i[a - 1] = arguments[a];
1072
- var s = 0, l = "Warning: " + o.replace(/%s/g, function() {
1073
- return i[s++];
1074
- });
1075
- typeof console < "u" && console.error(l);
1076
- try {
1077
- throw new Error(l);
1078
- } catch {
1079
- }
1080
- };
1081
- t = function(n, o, i) {
1082
- var u = arguments.length;
1083
- i = new Array(u > 2 ? u - 2 : 0);
1084
- for (var a = 2; a < u; a++)
1085
- i[a - 2] = arguments[a];
1086
- if (o === void 0)
1087
- throw new Error(
1088
- "`warning(condition, format, ...args)` requires a warning message argument"
1089
- );
1090
- n || r.apply(null, [o].concat(i));
1091
- };
1092
- }
1093
- return Ve = t, Ve;
1094
- }
1095
- var Un = qn();
1096
- const Ft = /* @__PURE__ */ dr(Un), jt = () => {
1097
- };
1098
- function zn(e) {
1099
- return e.button === 0;
1100
- }
1101
- function Kn(e) {
1102
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1103
- }
1104
- const Fe = (e) => e && ("current" in e ? e.current : e), Pt = {
1105
- click: "mousedown",
1106
- mouseup: "mousedown",
1107
- pointerup: "pointerdown"
1108
- };
1109
- function Xn(e, t = jt, {
1110
- disabled: r,
1111
- clickTrigger: n = "click"
1112
- } = {}) {
1113
- const o = K(!1), i = K(!1), u = X((l) => {
1114
- const c = Fe(e);
1115
- Ft(!!c, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), o.current = !c || Kn(l) || !zn(l) || !!pt(c, l.target) || i.current, i.current = !1;
1116
- }, [e]), a = ne((l) => {
1117
- const c = Fe(e);
1118
- c && pt(c, l.target) ? i.current = !0 : i.current = !1;
1119
- }), s = ne((l) => {
1120
- o.current || t(l);
1121
- });
1122
- ue(() => {
1123
- var l, c;
1124
- if (r || e == null) return;
1125
- const f = gr(Fe(e)), m = f.defaultView || window;
1126
- let p = (l = m.event) != null ? l : (c = m.parent) == null ? void 0 : c.event, v = null;
1127
- Pt[n] && (v = Pe(f, Pt[n], a, !0));
1128
- const g = Pe(f, n, u, !0), d = Pe(f, n, (y) => {
1129
- if (y === p) {
1130
- p = void 0;
1131
- return;
1132
- }
1133
- s(y);
1134
- });
1135
- let x = [];
1136
- return "ontouchstart" in f.documentElement && (x = [].slice.call(f.body.children).map((y) => Pe(y, "mousemove", jt))), () => {
1137
- v == null || v(), g(), d(), x.forEach((y) => y());
1138
- };
1139
- }, [e, r, n, u, a, s]);
1140
- }
1141
- function Yn(e) {
1142
- const t = {};
1143
- return Array.isArray(e) ? (e == null || e.forEach((r) => {
1144
- t[r.name] = r;
1145
- }), t) : e || t;
1146
- }
1147
- function Gn(e = {}) {
1148
- return Array.isArray(e) ? e : Object.keys(e).map((t) => (e[t].name = t, e[t]));
1149
- }
1150
- function Jn({
1151
- enabled: e,
1152
- enableEvents: t,
1153
- placement: r,
1154
- flip: n,
1155
- offset: o,
1156
- fixed: i,
1157
- containerPadding: u,
1158
- arrowElement: a,
1159
- popperConfig: s = {}
1160
- }) {
1161
- var l, c, f, m, p;
1162
- const v = Yn(s.modifiers);
1163
- return Object.assign({}, s, {
1164
- placement: r,
1165
- enabled: e,
1166
- strategy: i ? "fixed" : s.strategy,
1167
- modifiers: Gn(Object.assign({}, v, {
1168
- eventListeners: {
1169
- enabled: t,
1170
- options: (l = v.eventListeners) == null ? void 0 : l.options
1171
- },
1172
- preventOverflow: Object.assign({}, v.preventOverflow, {
1173
- options: u ? Object.assign({
1174
- padding: u
1175
- }, (c = v.preventOverflow) == null ? void 0 : c.options) : (f = v.preventOverflow) == null ? void 0 : f.options
1176
- }),
1177
- offset: {
1178
- options: Object.assign({
1179
- offset: o
1180
- }, (m = v.offset) == null ? void 0 : m.options)
1181
- },
1182
- arrow: Object.assign({}, v.arrow, {
1183
- enabled: !!a,
1184
- options: Object.assign({}, (p = v.arrow) == null ? void 0 : p.options, {
1185
- element: a
1186
- })
1187
- }),
1188
- flip: Object.assign({
1189
- enabled: !!n
1190
- }, v.flip)
1191
- }))
1192
- });
1193
- }
1194
- const Qn = ["children", "usePopper"];
1195
- function Zn(e, t) {
1196
- if (e == null) return {};
1197
- var r = {};
1198
- for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
1199
- if (t.indexOf(n) >= 0) continue;
1200
- r[n] = e[n];
1201
- }
1202
- return r;
1203
- }
1204
- const _n = () => {
1205
- };
1206
- function qt(e = {}) {
1207
- const t = W(Be), [r, n] = Sr(), o = K(!1), {
1208
- flip: i,
1209
- offset: u,
1210
- rootCloseEvent: a,
1211
- fixed: s = !1,
1212
- placement: l,
1213
- popperConfig: c = {},
1214
- enableEventListeners: f = !0,
1215
- usePopper: m = !!t
1216
- } = e, p = (t == null ? void 0 : t.show) == null ? !!e.show : t.show;
1217
- p && !o.current && (o.current = !0);
1218
- const v = ($) => {
1219
- t == null || t.toggle(!1, $);
1220
- }, {
1221
- placement: g,
1222
- setMenu: d,
1223
- menuElement: x,
1224
- toggleElement: y
1225
- } = t || {}, b = Fn(y, x, Jn({
1226
- placement: l || g || "bottom-start",
1227
- enabled: m,
1228
- enableEvents: f ?? p,
1229
- offset: u,
1230
- flip: i,
1231
- fixed: s,
1232
- arrowElement: r,
1233
- popperConfig: c
1234
- })), h = Object.assign({
1235
- ref: d || _n,
1236
- "aria-labelledby": y == null ? void 0 : y.id
1237
- }, b.attributes.popper, {
1238
- style: b.styles.popper
1239
- }), w = {
1240
- show: p,
1241
- placement: g,
1242
- hasShown: o.current,
1243
- toggle: t == null ? void 0 : t.toggle,
1244
- popper: m ? b : null,
1245
- arrowProps: m ? Object.assign({
1246
- ref: n
1247
- }, b.attributes.arrow, {
1248
- style: b.styles.arrow
1249
- }) : {}
1250
- };
1251
- return Xn(x, v, {
1252
- clickTrigger: a,
1253
- disabled: !p
1254
- }), [h, w];
1255
- }
1256
- function Ut(e) {
1257
- let {
1258
- children: t,
1259
- usePopper: r = !0
1260
- } = e, n = Zn(e, Qn);
1261
- const [o, i] = qt(Object.assign({}, n, {
1262
- usePopper: r
1263
- }));
1264
- return /* @__PURE__ */ S.jsx(S.Fragment, {
1265
- children: t(o, i)
1266
- });
1267
- }
1268
- Ut.displayName = "DropdownMenu";
1269
- const Te = {
1270
- prefix: String(Math.round(Math.random() * 1e10)),
1271
- current: 0
1272
- }, zt = /* @__PURE__ */ ie.createContext(Te), eo = /* @__PURE__ */ ie.createContext(!1);
1273
- let to = !!(typeof window < "u" && window.document && window.document.createElement), qe = /* @__PURE__ */ new WeakMap();
1274
- function ro(e = !1) {
1275
- let t = W(zt), r = K(null);
1276
- if (r.current === null && !e) {
1277
- var n, o;
1278
- let i = (o = ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (n = o.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
1279
- if (i) {
1280
- let u = qe.get(i);
1281
- u == null ? qe.set(i, {
1282
- id: t.current,
1283
- state: i.memoizedState
1284
- }) : i.memoizedState !== u.state && (t.current = u.id, qe.delete(i));
1285
- }
1286
- r.current = ++t.current;
1287
- }
1288
- return r.current;
1289
- }
1290
- function no(e) {
1291
- let t = W(zt);
1292
- t === Te && !to && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
1293
- let r = ro(!!e), n = t === Te && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
1294
- return e || `${n}-${r}`;
1295
- }
1296
- function oo(e) {
1297
- let t = ie.useId(), [r] = Ne(uo()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Te.prefix}`;
1298
- return e || `${n}-${t}`;
1299
- }
1300
- const io = typeof ie.useId == "function" ? oo : no;
1301
- function ao() {
1302
- return !1;
1303
- }
1304
- function so() {
1305
- return !0;
1306
- }
1307
- function co(e) {
1308
- return () => {
1309
- };
1310
- }
1311
- function uo() {
1312
- return typeof ie.useSyncExternalStore == "function" ? ie.useSyncExternalStore(co, ao, so) : W(eo);
1313
- }
1314
- const Kt = (e) => {
1315
- var t;
1316
- return ((t = e.getAttribute("role")) == null ? void 0 : t.toLowerCase()) === "menu";
1317
- }, St = () => {
1318
- };
1319
- function Xt() {
1320
- const e = io(), {
1321
- show: t = !1,
1322
- toggle: r = St,
1323
- setToggle: n,
1324
- menuElement: o
1325
- } = W(Be) || {}, i = X((a) => {
1326
- r(!t, a);
1327
- }, [t, r]), u = {
1328
- id: e,
1329
- ref: n || St,
1330
- onClick: i,
1331
- "aria-expanded": !!t
1332
- };
1333
- return o && Kt(o) && (u["aria-haspopup"] = !0), [u, {
1334
- show: t,
1335
- toggle: r
1336
- }];
1337
- }
1338
- function Yt({
1339
- children: e
1340
- }) {
1341
- const [t, r] = Xt();
1342
- return /* @__PURE__ */ S.jsx(S.Fragment, {
1343
- children: e(t, r)
1344
- });
1345
- }
1346
- Yt.displayName = "DropdownToggle";
1347
- const lo = ["eventKey", "disabled", "onClick", "active", "as"];
1348
- function fo(e, t) {
1349
- if (e == null) return {};
1350
- var r = {};
1351
- for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
1352
- if (t.indexOf(n) >= 0) continue;
1353
- r[n] = e[n];
1354
- }
1355
- return r;
1356
- }
1357
- function Gt({
1358
- key: e,
1359
- href: t,
1360
- active: r,
1361
- disabled: n,
1362
- onClick: o
1363
- }) {
1364
- const i = W(Ue), u = W(xr), {
1365
- activeKey: a
1366
- } = u || {}, s = vt(e, t), l = r == null && e != null ? vt(a) === s : r;
1367
- return [{
1368
- onClick: ne((f) => {
1369
- n || (o == null || o(f), i && !f.isPropagationStopped() && i(s, f));
1370
- }),
1371
- "aria-disabled": n || void 0,
1372
- "aria-selected": l,
1373
- [Rt("dropdown-item")]: ""
1374
- }, {
1375
- isActive: l
1376
- }];
1377
- }
1378
- const Jt = /* @__PURE__ */ F.forwardRef((e, t) => {
1379
- let {
1380
- eventKey: r,
1381
- disabled: n,
1382
- onClick: o,
1383
- active: i,
1384
- as: u = Ar
1385
- } = e, a = fo(e, lo);
1386
- const [s] = Gt({
1387
- key: r,
1388
- href: a.href,
1389
- disabled: n,
1390
- onClick: o,
1391
- active: i
1392
- });
1393
- return /* @__PURE__ */ S.jsx(u, Object.assign({}, a, {
1394
- ref: t
1395
- }, s));
1396
- });
1397
- Jt.displayName = "DropdownItem";
1398
- function Mt() {
1399
- const e = Or(), t = K(null), r = X((n) => {
1400
- t.current = n, e();
1401
- }, [e]);
1402
- return [t, r];
1403
- }
1404
- function Ee({
1405
- defaultShow: e,
1406
- show: t,
1407
- onSelect: r,
1408
- onToggle: n,
1409
- itemSelector: o = `* [${Rt("dropdown-item")}]`,
1410
- focusFirstItemOnShow: i,
1411
- placement: u = "bottom-start",
1412
- children: a
1413
- }) {
1414
- const s = hr(), [l, c] = Rr(t, e, n), [f, m] = Mt(), p = f.current, [v, g] = Mt(), d = v.current, x = wr(l), y = K(null), b = K(!1), h = W(Ue), w = X((O, C, A = C == null ? void 0 : C.type) => {
1415
- c(O, {
1416
- originalEvent: C,
1417
- source: A
1418
- });
1419
- }, [c]), $ = ne((O, C) => {
1420
- r == null || r(O, C), w(!1, C, "select"), C.isPropagationStopped() || h == null || h(O, C);
1421
- }), D = Re(() => ({
1422
- toggle: w,
1423
- placement: u,
1424
- show: l,
1425
- menuElement: p,
1426
- toggleElement: d,
1427
- setMenu: m,
1428
- setToggle: g
1429
- }), [w, u, l, p, d, m, g]);
1430
- p && x && !l && (b.current = p.contains(p.ownerDocument.activeElement));
1431
- const E = ne(() => {
1432
- d && d.focus && d.focus();
1433
- }), j = ne(() => {
1434
- const O = y.current;
1435
- let C = i;
1436
- if (C == null && (C = f.current && Kt(f.current) ? "keyboard" : !1), C === !1 || C === "keyboard" && !/^key.+$/.test(O))
1437
- return;
1438
- const A = dt(f.current, o)[0];
1439
- A && A.focus && A.focus();
1440
- });
1441
- ue(() => {
1442
- l ? j() : b.current && (b.current = !1, E());
1443
- }, [l, b, E, j]), ue(() => {
1444
- y.current = null;
1445
- });
1446
- const P = (O, C) => {
1447
- if (!f.current) return null;
1448
- const A = dt(f.current, o);
1449
- let M = A.indexOf(O) + C;
1450
- return M = Math.max(0, Math.min(M, A.length)), A[M];
1451
- };
1452
- return Mr(X(() => s.document, [s]), "keydown", (O) => {
1453
- var C, A;
1454
- const {
1455
- key: M
1456
- } = O, T = O.target, R = (C = f.current) == null ? void 0 : C.contains(T), I = (A = v.current) == null ? void 0 : A.contains(T);
1457
- if (/input|textarea/i.test(T.tagName) && (M === " " || M !== "Escape" && R || M === "Escape" && T.type === "search") || !R && !I || M === "Tab" && (!f.current || !l))
1458
- return;
1459
- y.current = O.type;
1460
- const q = {
1461
- originalEvent: O,
1462
- source: O.type
1463
- };
1464
- switch (M) {
1465
- case "ArrowUp": {
1466
- const k = P(T, -1);
1467
- k && k.focus && k.focus(), O.preventDefault();
1468
- return;
1469
- }
1470
- case "ArrowDown":
1471
- if (O.preventDefault(), !l)
1472
- c(!0, q);
1473
- else {
1474
- const k = P(T, 1);
1475
- k && k.focus && k.focus();
1476
- }
1477
- return;
1478
- case "Tab":
1479
- yr(T.ownerDocument, "keyup", (k) => {
1480
- var se;
1481
- (k.key === "Tab" && !k.target || !((se = f.current) != null && se.contains(k.target))) && c(!1, q);
1482
- }, {
1483
- once: !0
1484
- });
1485
- break;
1486
- case "Escape":
1487
- M === "Escape" && (O.preventDefault(), O.stopPropagation()), c(!1, q);
1488
- break;
1489
- }
1490
- }), /* @__PURE__ */ S.jsx(Ue.Provider, {
1491
- value: $,
1492
- children: /* @__PURE__ */ S.jsx(Be.Provider, {
1493
- value: D,
1494
- children: a
1495
- })
1496
- });
1497
- }
1498
- Ee.displayName = "Dropdown";
1499
- Ee.Menu = Ut;
1500
- Ee.Toggle = Yt;
1501
- Ee.Item = Jt;
1502
- const tt = /* @__PURE__ */ F.createContext({});
1503
- tt.displayName = "DropdownContext";
1504
- const Qt = /* @__PURE__ */ F.forwardRef(({
1505
- className: e,
1506
- bsPrefix: t,
1507
- as: r = "hr",
1508
- role: n = "separator",
1509
- ...o
1510
- }, i) => (t = Q(t, "dropdown-divider"), /* @__PURE__ */ S.jsx(r, {
1511
- ref: i,
1512
- className: Z(e, t),
1513
- role: n,
1514
- ...o
1515
- })));
1516
- Qt.displayName = "DropdownDivider";
1517
- const Zt = /* @__PURE__ */ F.forwardRef(({
1518
- className: e,
1519
- bsPrefix: t,
1520
- as: r = "div",
1521
- role: n = "heading",
1522
- ...o
1523
- }, i) => (t = Q(t, "dropdown-header"), /* @__PURE__ */ S.jsx(r, {
1524
- ref: i,
1525
- className: Z(e, t),
1526
- role: n,
1527
- ...o
1528
- })));
1529
- Zt.displayName = "DropdownHeader";
1530
- const _t = /* @__PURE__ */ F.forwardRef(({
1531
- bsPrefix: e,
1532
- className: t,
1533
- eventKey: r,
1534
- disabled: n = !1,
1535
- onClick: o,
1536
- active: i,
1537
- as: u = jr,
1538
- ...a
1539
- }, s) => {
1540
- const l = Q(e, "dropdown-item"), [c, f] = Gt({
1541
- key: r,
1542
- href: a.href,
1543
- disabled: n,
1544
- onClick: o,
1545
- active: i
1546
- });
1547
- return /* @__PURE__ */ S.jsx(u, {
1548
- ...a,
1549
- ...c,
1550
- ref: s,
1551
- className: Z(t, l, f.isActive && "active", n && "disabled")
1552
- });
1553
- });
1554
- _t.displayName = "DropdownItem";
1555
- const er = /* @__PURE__ */ F.forwardRef(({
1556
- className: e,
1557
- bsPrefix: t,
1558
- as: r = "span",
1559
- ...n
1560
- }, o) => (t = Q(t, "dropdown-item-text"), /* @__PURE__ */ S.jsx(r, {
1561
- ref: o,
1562
- className: Z(e, t),
1563
- ...n
1564
- })));
1565
- er.displayName = "DropdownItemText";
1566
- const rt = /* @__PURE__ */ F.createContext(null);
1567
- rt.displayName = "InputGroupContext";
1568
- function tr(e, t) {
1569
- if (process.env.NODE_ENV === "production") return e;
1570
- const r = X((n) => {
1571
- n == null || !n.isReactComponent || (process.env.NODE_ENV !== "production" ? mt(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : mt(!1));
1572
- }, [t]);
1573
- return Xe(r, e);
1574
- }
1575
- function rr(e, t, r) {
1576
- const n = r ? "top-end" : "top-start", o = r ? "top-start" : "top-end", i = r ? "bottom-end" : "bottom-start", u = r ? "bottom-start" : "bottom-end", a = r ? "right-start" : "left-start", s = r ? "right-end" : "left-end", l = r ? "left-start" : "right-start", c = r ? "left-end" : "right-end";
1577
- let f = e ? u : i;
1578
- return t === "up" ? f = e ? o : n : t === "end" ? f = e ? c : l : t === "start" ? f = e ? s : a : t === "down-centered" ? f = "bottom" : t === "up-centered" && (f = "top"), f;
1579
- }
1580
- const nr = /* @__PURE__ */ F.forwardRef(({
1581
- bsPrefix: e,
1582
- className: t,
1583
- align: r,
1584
- rootCloseEvent: n,
1585
- flip: o = !0,
1586
- show: i,
1587
- renderOnMount: u,
1588
- // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
1589
- as: a = "div",
1590
- popperConfig: s,
1591
- variant: l,
1592
- ...c
1593
- }, f) => {
1594
- let m = !1;
1595
- const p = W($r), v = Q(e, "dropdown-menu"), {
1596
- align: g,
1597
- drop: d,
1598
- isRTL: x
1599
- } = W(tt);
1600
- r = r || g;
1601
- const y = W(rt), b = [];
1602
- if (r)
1603
- if (typeof r == "object") {
1604
- const O = Object.keys(r);
1605
- if (process.env.NODE_ENV !== "production" && Ft(O.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), O.length) {
1606
- const C = O[0], A = r[C];
1607
- m = A === "start", b.push(`${v}-${C}-${A}`);
1608
- }
1609
- } else r === "end" && (m = !0);
1610
- const h = rr(m, d, x), [w, {
1611
- hasShown: $,
1612
- popper: D,
1613
- show: E,
1614
- toggle: j
1615
- }] = qt({
1616
- flip: o,
1617
- rootCloseEvent: n,
1618
- show: i,
1619
- usePopper: !p && b.length === 0,
1620
- offset: [0, 2],
1621
- popperConfig: s,
1622
- placement: h
1623
- });
1624
- if (w.ref = Xe(tr(f, "DropdownMenu"), w.ref), Dr(() => {
1625
- E && (D == null || D.update());
1626
- }, [E]), !$ && !u && !y) return null;
1627
- typeof a != "string" && (w.show = E, w.close = () => j == null ? void 0 : j(!1), w.align = r);
1628
- let P = c.style;
1629
- return D != null && D.placement && (P = {
1630
- ...c.style,
1631
- ...w.style
1632
- }, c["x-placement"] = D.placement), /* @__PURE__ */ S.jsx(a, {
1633
- ...c,
1634
- ...w,
1635
- style: P,
1636
- ...(b.length || p) && {
1637
- "data-bs-popper": "static"
1638
- },
1639
- className: Z(t, v, E && "show", m && `${v}-end`, l && `${v}-${l}`, ...b)
1640
- });
1641
- });
1642
- nr.displayName = "DropdownMenu";
1643
- const or = /* @__PURE__ */ F.forwardRef(({
1644
- bsPrefix: e,
1645
- split: t,
1646
- className: r,
1647
- childBsPrefix: n,
1648
- // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
1649
- as: o = Pr,
1650
- ...i
1651
- }, u) => {
1652
- const a = Q(e, "dropdown-toggle"), s = W(Be);
1653
- n !== void 0 && (i.bsPrefix = n);
1654
- const [l] = Xt();
1655
- return l.ref = Xe(l.ref, tr(u, "DropdownToggle")), /* @__PURE__ */ S.jsx(o, {
1656
- className: Z(r, a, t && `${a}-split`, (s == null ? void 0 : s.show) && "show"),
1657
- ...l,
1658
- ...i
1659
- });
1660
- });
1661
- or.displayName = "DropdownToggle";
1662
- const ir = /* @__PURE__ */ F.forwardRef((e, t) => {
1663
- const {
1664
- bsPrefix: r,
1665
- drop: n = "down",
1666
- show: o,
1667
- className: i,
1668
- align: u = "start",
1669
- onSelect: a,
1670
- onToggle: s,
1671
- focusFirstItemOnShow: l,
1672
- // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
1673
- as: c = "div",
1674
- navbar: f,
1675
- autoClose: m = !0,
1676
- ...p
1677
- } = Er(e, {
1678
- show: "onToggle"
1679
- }), v = W(rt), g = Q(r, "dropdown"), d = vr(), x = (D) => m === !1 ? D === "click" : m === "inside" ? D !== "rootClose" : m === "outside" ? D !== "select" : !0, y = br((D, E) => {
1680
- var j;
1681
- !((j = E.originalEvent) == null || (j = j.target) == null) && j.classList.contains("dropdown-toggle") && E.source === "mousedown" || (E.originalEvent.currentTarget === document && (E.source !== "keydown" || E.originalEvent.key === "Escape") && (E.source = "rootClose"), x(E.source) && (s == null || s(D, E)));
1682
- }), h = rr(u === "end", n, d), w = Re(() => ({
1683
- align: u,
1684
- drop: n,
1685
- isRTL: d
1686
- }), [u, n, d]), $ = {
1687
- down: g,
1688
- "down-centered": `${g}-center`,
1689
- up: "dropup",
1690
- "up-centered": "dropup-center dropup",
1691
- end: "dropend",
1692
- start: "dropstart"
1693
- };
1694
- return /* @__PURE__ */ S.jsx(tt.Provider, {
1695
- value: w,
1696
- children: /* @__PURE__ */ S.jsx(Ee, {
1697
- placement: h,
1698
- show: o,
1699
- onSelect: a,
1700
- onToggle: y,
1701
- focusFirstItemOnShow: l,
1702
- itemSelector: `.${g}-item:not(.disabled):not(:disabled)`,
1703
- children: v ? p.children : /* @__PURE__ */ S.jsx(c, {
1704
- ...p,
1705
- ref: t,
1706
- className: Z(i, o && "show", $[n])
1707
- })
1708
- })
1709
- });
1710
- });
1711
- ir.displayName = "Dropdown";
1712
- const re = Object.assign(ir, {
1713
- Toggle: or,
1714
- Menu: nr,
1715
- Item: _t,
1716
- ItemText: er,
1717
- Divider: Qt,
1718
- Header: Zt
1719
- }), ar = /* @__PURE__ */ F.forwardRef(({
1720
- id: e,
1721
- title: t,
1722
- children: r,
1723
- bsPrefix: n,
1724
- className: o,
1725
- rootCloseEvent: i,
1726
- menuRole: u,
1727
- disabled: a,
1728
- active: s,
1729
- renderMenuOnMount: l,
1730
- menuVariant: c,
1731
- ...f
1732
- }, m) => {
1733
- const p = Q(void 0, "nav-item");
1734
- return /* @__PURE__ */ S.jsxs(re, {
1735
- ref: m,
1736
- ...f,
1737
- className: Z(o, p),
1738
- children: [/* @__PURE__ */ S.jsx(re.Toggle, {
1739
- id: e,
1740
- eventKey: null,
1741
- active: s,
1742
- disabled: a,
1743
- childBsPrefix: n,
1744
- as: Cr,
1745
- children: t
1746
- }), /* @__PURE__ */ S.jsx(re.Menu, {
1747
- role: u,
1748
- renderOnMount: l,
1749
- rootCloseEvent: i,
1750
- variant: c,
1751
- children: r
1752
- })]
1753
- });
1754
- });
1755
- ar.displayName = "NavDropdown";
1756
- const Oo = Object.assign(ar, {
1757
- Item: re.Item,
1758
- ItemText: re.ItemText,
1759
- Divider: re.Divider,
1760
- Header: re.Header
1761
- });
1762
- export {
1763
- Oo as N
1764
- };