react-ecosistema-unp 1.1.0 → 1.2.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.
- package/dist/{NotificacionUsuario-xD2pyELE.js → NotificacionUsuario-B0uOnywk.js} +147 -151
- package/dist/Table-dmTfkFLf.js +32 -0
- package/dist/assets/IconosSistema.css +1 -1
- package/dist/cards/tarjeta/Tarjeta.js +4 -3
- package/dist/cards/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js +5 -4
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +2 -2
- package/dist/cards/tarjeta-lectura/TarjetaLectura.js +16 -15
- package/dist/cards/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js +7 -6
- package/dist/index-COVtBfm6.js +11 -0
- package/dist/{index-B8_x9tRA.js → index-CcQhl4DX.js} +3 -3
- package/dist/lib/utils/unp-historico/FetchHistorico.d.ts +2 -0
- package/dist/lib/utils/unp-historico/UnpHistorico.d.ts +7 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/shared/iconos-sistema/IconosSistema.js +7 -5
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +2 -1
- package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
- package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
- package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +2 -2
- package/dist/tables/tabla-registros/tabla/Tabla.js +43 -69
- package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +1 -1
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/dist/ui/logo/Logo.js +3 -2
- package/dist/utils/unp-historico/FetchHistorico.js +12 -0
- package/dist/utils/unp-historico/UnpHistorico.js +145 -0
- package/dist/utils.js +6 -4
- package/package.json +1 -1
- /package/dist/assets/{TarjetaInfo.css → UnpHistorico.css} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as j, Fragment as Nt, jsxs as bn } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as xn } from "./index-COVtBfm6.js";
|
|
3
3
|
import { g as On, u as G, c as J, a as En } from "./ThemeProvider-CFCmmLJC.js";
|
|
4
4
|
import * as S from "react";
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { _ as $n, o as An, l as Ae, $ as Rn, S as Te, m as Ne, c as jn, a as Mn, b as Tn, u as
|
|
5
|
+
import { useRef as F, useState as Ke, useCallback as _, useEffect as z, useReducer as Dn, useMemo as Me, useContext as k, createContext as Pn, useLayoutEffect as Cn } from "react";
|
|
6
|
+
import { _ as $n, o as An, l as Ae, $ as Rn, S as Te, m as Ne, c as jn, a as Mn, b as Tn, u as Xe, T as Nn } from "./TabContext-CdjYJzMB.js";
|
|
7
7
|
import { u as Z } from "./useEventCallback-Bfo0-hwZ.js";
|
|
8
8
|
import { w as St } from "./warning-BMiIoRBk.js";
|
|
9
9
|
import { B as It } from "./Button-DD8y8HBa.js";
|
|
@@ -18,9 +18,9 @@ import './assets/NotificacionUsuario.css';function Ve() {
|
|
|
18
18
|
return e;
|
|
19
19
|
}, Ve.apply(null, arguments);
|
|
20
20
|
}
|
|
21
|
-
var
|
|
21
|
+
var He, pt;
|
|
22
22
|
function In() {
|
|
23
|
-
if (pt) return
|
|
23
|
+
if (pt) return He;
|
|
24
24
|
pt = 1;
|
|
25
25
|
var e = function(t, n, r, o, i, f, s, u) {
|
|
26
26
|
if (process.env.NODE_ENV !== "production" && n === void 0)
|
|
@@ -42,7 +42,7 @@ function In() {
|
|
|
42
42
|
throw c.framesToPop = 1, c;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
return
|
|
45
|
+
return He = e, He;
|
|
46
46
|
}
|
|
47
47
|
var kn = In();
|
|
48
48
|
const vt = /* @__PURE__ */ On(kn);
|
|
@@ -64,27 +64,27 @@ function Ln(e, t) {
|
|
|
64
64
|
return String(e);
|
|
65
65
|
}
|
|
66
66
|
function Wn(e, t, n) {
|
|
67
|
-
var r =
|
|
67
|
+
var r = F(e !== void 0), o = Ke(t), i = o[0], f = o[1], s = e !== void 0, u = r.current;
|
|
68
68
|
return r.current = s, !s && u && i !== t && f(t), [s ? e : i, _(function(c) {
|
|
69
69
|
for (var a = arguments.length, l = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
|
|
70
70
|
l[v - 1] = arguments[v];
|
|
71
71
|
n && n.apply(void 0, [c].concat(l)), f(c);
|
|
72
72
|
}, [n])];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Fn(e, t) {
|
|
75
75
|
return Object.keys(t).reduce(function(n, r) {
|
|
76
76
|
var o, i = n, f = i[mt(r)], s = i[r], u = $n(i, [mt(r), r].map(Bn)), c = t[r], a = Wn(s, f, e[c]), l = a[0], v = a[1];
|
|
77
77
|
return Ve({}, u, (o = {}, o[r] = l, o[c] = v, o));
|
|
78
78
|
}, e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
const t =
|
|
82
|
-
return
|
|
80
|
+
function Hn(e) {
|
|
81
|
+
const t = F(e);
|
|
82
|
+
return z(() => {
|
|
83
83
|
t.current = e;
|
|
84
84
|
}, [e]), t;
|
|
85
85
|
}
|
|
86
86
|
function Un(e) {
|
|
87
|
-
const t =
|
|
87
|
+
const t = Hn(e);
|
|
88
88
|
return _(function(...n) {
|
|
89
89
|
return t.current && t.current(...n);
|
|
90
90
|
}, [t]);
|
|
@@ -94,28 +94,28 @@ function Vn() {
|
|
|
94
94
|
}
|
|
95
95
|
function qn(e, t, n, r = !1) {
|
|
96
96
|
const o = Z(n);
|
|
97
|
-
|
|
97
|
+
z(() => {
|
|
98
98
|
const i = typeof e == "function" ? e() : e;
|
|
99
99
|
return i.addEventListener(t, o, r), () => i.removeEventListener(t, o, r);
|
|
100
100
|
}, [e]);
|
|
101
101
|
}
|
|
102
102
|
function _n() {
|
|
103
|
-
const e =
|
|
104
|
-
return
|
|
103
|
+
const e = F(!0), t = F(() => e.current);
|
|
104
|
+
return z(() => (e.current = !0, () => {
|
|
105
105
|
e.current = !1;
|
|
106
106
|
}), []), t.current;
|
|
107
107
|
}
|
|
108
108
|
function Kn(e) {
|
|
109
|
-
const t =
|
|
110
|
-
return
|
|
109
|
+
const t = F(null);
|
|
110
|
+
return z(() => {
|
|
111
111
|
t.current = e;
|
|
112
112
|
}), t.current;
|
|
113
113
|
}
|
|
114
|
-
var
|
|
114
|
+
var Xn = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
115
115
|
function gt(e, t) {
|
|
116
|
-
return
|
|
116
|
+
return Xn(e.querySelectorAll(t));
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function zn() {
|
|
119
119
|
const [, e] = Dn((t) => t + 1, 0);
|
|
120
120
|
return e;
|
|
121
121
|
}
|
|
@@ -179,15 +179,15 @@ function Yn(e) {
|
|
|
179
179
|
return e[1](n);
|
|
180
180
|
}, [t, e[1]])];
|
|
181
181
|
}
|
|
182
|
-
var B = "top", U = "bottom", V = "right", L = "left",
|
|
182
|
+
var B = "top", U = "bottom", V = "right", L = "left", ze = "auto", Oe = [B, U, V, L], ce = "start", be = "end", Gn = "clippingParents", Bt = "viewport", ge = "popper", Jn = "reference", yt = /* @__PURE__ */ Oe.reduce(function(e, t) {
|
|
183
183
|
return e.concat([t + "-" + ce, t + "-" + be]);
|
|
184
|
-
}, []), Lt = /* @__PURE__ */ [].concat(Oe, [
|
|
184
|
+
}, []), Lt = /* @__PURE__ */ [].concat(Oe, [ze]).reduce(function(e, t) {
|
|
185
185
|
return e.concat([t, t + "-" + ce, t + "-" + be]);
|
|
186
186
|
}, []), Qn = "beforeRead", Zn = "read", er = "afterRead", tr = "beforeMain", nr = "main", rr = "afterMain", or = "beforeWrite", ir = "write", ar = "afterWrite", sr = [Qn, Zn, er, tr, nr, rr, or, ir, ar];
|
|
187
187
|
function K(e) {
|
|
188
188
|
return e.split("-")[0];
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function H(e) {
|
|
191
191
|
if (e == null)
|
|
192
192
|
return window;
|
|
193
193
|
if (e.toString() !== "[object Window]") {
|
|
@@ -197,17 +197,17 @@ function F(e) {
|
|
|
197
197
|
return e;
|
|
198
198
|
}
|
|
199
199
|
function ae(e) {
|
|
200
|
-
var t =
|
|
200
|
+
var t = H(e).Element;
|
|
201
201
|
return e instanceof t || e instanceof Element;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
var t =
|
|
203
|
+
function X(e) {
|
|
204
|
+
var t = H(e).HTMLElement;
|
|
205
205
|
return e instanceof t || e instanceof HTMLElement;
|
|
206
206
|
}
|
|
207
207
|
function Ye(e) {
|
|
208
208
|
if (typeof ShadowRoot > "u")
|
|
209
209
|
return !1;
|
|
210
|
-
var t =
|
|
210
|
+
var t = H(e).ShadowRoot;
|
|
211
211
|
return e instanceof t || e instanceof ShadowRoot;
|
|
212
212
|
}
|
|
213
213
|
var ie = Math.max, Se = Math.min, fe = Math.round;
|
|
@@ -223,8 +223,8 @@ function Wt() {
|
|
|
223
223
|
function le(e, t, n) {
|
|
224
224
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
225
225
|
var r = e.getBoundingClientRect(), o = 1, i = 1;
|
|
226
|
-
t &&
|
|
227
|
-
var f = ae(e) ?
|
|
226
|
+
t && X(e) && (o = e.offsetWidth > 0 && fe(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && fe(r.height) / e.offsetHeight || 1);
|
|
227
|
+
var f = ae(e) ? H(e) : window, s = f.visualViewport, u = !Wt() && n, c = (r.left + (u && s ? s.offsetLeft : 0)) / o, a = (r.top + (u && s ? s.offsetTop : 0)) / i, l = r.width / o, v = r.height / i;
|
|
228
228
|
return {
|
|
229
229
|
width: l,
|
|
230
230
|
height: v,
|
|
@@ -245,7 +245,7 @@ function Ge(e) {
|
|
|
245
245
|
height: r
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function Ft(e, t) {
|
|
249
249
|
var n = t.getRootNode && t.getRootNode();
|
|
250
250
|
if (e.contains(t))
|
|
251
251
|
return !0;
|
|
@@ -263,7 +263,7 @@ function ee(e) {
|
|
|
263
263
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
264
264
|
}
|
|
265
265
|
function Y(e) {
|
|
266
|
-
return
|
|
266
|
+
return H(e).getComputedStyle(e);
|
|
267
267
|
}
|
|
268
268
|
function ur(e) {
|
|
269
269
|
return ["table", "td", "th"].indexOf(ee(e)) >= 0;
|
|
@@ -287,18 +287,18 @@ function ke(e) {
|
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
289
|
function bt(e) {
|
|
290
|
-
return !
|
|
290
|
+
return !X(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
291
291
|
Y(e).position === "fixed" ? null : e.offsetParent;
|
|
292
292
|
}
|
|
293
293
|
function cr(e) {
|
|
294
294
|
var t = /firefox/i.test(qe()), n = /Trident/i.test(qe());
|
|
295
|
-
if (n &&
|
|
295
|
+
if (n && X(e)) {
|
|
296
296
|
var r = Y(e);
|
|
297
297
|
if (r.position === "fixed")
|
|
298
298
|
return null;
|
|
299
299
|
}
|
|
300
300
|
var o = ke(e);
|
|
301
|
-
for (Ye(o) && (o = o.host);
|
|
301
|
+
for (Ye(o) && (o = o.host); X(o) && ["html", "body"].indexOf(ee(o)) < 0; ) {
|
|
302
302
|
var i = Y(o);
|
|
303
303
|
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")
|
|
304
304
|
return o;
|
|
@@ -307,7 +307,7 @@ function cr(e) {
|
|
|
307
307
|
return null;
|
|
308
308
|
}
|
|
309
309
|
function Ee(e) {
|
|
310
|
-
for (var t =
|
|
310
|
+
for (var t = H(e), n = bt(e); n && ur(n) && Y(n).position === "static"; )
|
|
311
311
|
n = bt(n);
|
|
312
312
|
return n && (ee(n) === "html" || ee(n) === "body" && Y(n).position === "static") ? t : n || cr(e) || t;
|
|
313
313
|
}
|
|
@@ -321,7 +321,7 @@ function fr(e, t, n) {
|
|
|
321
321
|
var r = we(e, t, n);
|
|
322
322
|
return r > n ? n : r;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ht() {
|
|
325
325
|
return {
|
|
326
326
|
top: 0,
|
|
327
327
|
right: 0,
|
|
@@ -330,7 +330,7 @@ function Ft() {
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
function Ut(e) {
|
|
333
|
-
return Object.assign({},
|
|
333
|
+
return Object.assign({}, Ht(), e);
|
|
334
334
|
}
|
|
335
335
|
function Vt(e, t) {
|
|
336
336
|
return t.reduce(function(n, r) {
|
|
@@ -345,13 +345,13 @@ var lr = function(t, n) {
|
|
|
345
345
|
function dr(e) {
|
|
346
346
|
var t, n = e.state, r = e.name, o = e.options, i = n.elements.arrow, f = n.modifiersData.popperOffsets, s = K(n.placement), u = Je(s), c = [L, V].indexOf(s) >= 0, a = c ? "height" : "width";
|
|
347
347
|
if (!(!i || !f)) {
|
|
348
|
-
var l = lr(o.padding, n), v = Ge(i), d = u === "y" ? B : L, m = u === "y" ? U : V, g = n.rects.reference[a] + n.rects.reference[u] - f[u] - n.rects.popper[a], p = f[u] - n.rects.reference[u], x = Ee(i), y = x ? u === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, b = g / 2 - p / 2, h = l[d], w = y - v[a] - l[m], E = y / 2 - v[a] / 2 + b, D = we(h, E, w),
|
|
349
|
-
n.modifiersData[r] = (t = {}, t[
|
|
348
|
+
var l = lr(o.padding, n), v = Ge(i), d = u === "y" ? B : L, m = u === "y" ? U : V, g = n.rects.reference[a] + n.rects.reference[u] - f[u] - n.rects.popper[a], p = f[u] - n.rects.reference[u], x = Ee(i), y = x ? u === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, b = g / 2 - p / 2, h = l[d], w = y - v[a] - l[m], E = y / 2 - v[a] / 2 + b, D = we(h, E, w), P = u;
|
|
349
|
+
n.modifiersData[r] = (t = {}, t[P] = D, t.centerOffset = D - E, t);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
function pr(e) {
|
|
353
353
|
var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
354
|
-
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) ||
|
|
354
|
+
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || Ft(t.elements.popper, o) && (t.elements.arrow = o));
|
|
355
355
|
}
|
|
356
356
|
const vr = {
|
|
357
357
|
name: "arrow",
|
|
@@ -389,8 +389,8 @@ function xt(e) {
|
|
|
389
389
|
d = p.x, g = p.y;
|
|
390
390
|
var x = f.hasOwnProperty("x"), y = f.hasOwnProperty("y"), b = L, h = B, w = window;
|
|
391
391
|
if (c) {
|
|
392
|
-
var E = Ee(n), D = "clientHeight",
|
|
393
|
-
if (E ===
|
|
392
|
+
var E = Ee(n), D = "clientHeight", P = "clientWidth";
|
|
393
|
+
if (E === H(n) && (E = te(n), Y(E).position !== "static" && s === "absolute" && (D = "scrollHeight", P = "scrollWidth")), E = E, o === B || (o === L || o === V) && i === be) {
|
|
394
394
|
h = U;
|
|
395
395
|
var A = l && E === w && w.visualViewport ? w.visualViewport.height : (
|
|
396
396
|
// $FlowFixMe[prop-missing]
|
|
@@ -402,21 +402,21 @@ function xt(e) {
|
|
|
402
402
|
b = V;
|
|
403
403
|
var R = l && E === w && w.visualViewport ? w.visualViewport.width : (
|
|
404
404
|
// $FlowFixMe[prop-missing]
|
|
405
|
-
E[
|
|
405
|
+
E[P]
|
|
406
406
|
);
|
|
407
407
|
d -= R - r.width, d *= u ? 1 : -1;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
var O = Object.assign({
|
|
411
411
|
position: s
|
|
412
|
-
}, c && mr),
|
|
412
|
+
}, c && mr), C = a === !0 ? gr({
|
|
413
413
|
x: d,
|
|
414
414
|
y: g
|
|
415
|
-
},
|
|
415
|
+
}, H(n)) : {
|
|
416
416
|
x: d,
|
|
417
417
|
y: g
|
|
418
418
|
};
|
|
419
|
-
if (d =
|
|
419
|
+
if (d = C.x, g = C.y, u) {
|
|
420
420
|
var $;
|
|
421
421
|
return Object.assign({}, O, ($ = {}, $[h] = y ? "0" : "", $[b] = x ? "0" : "", $.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + g + "px)" : "translate3d(" + d + "px, " + g + "px, 0)", $));
|
|
422
422
|
}
|
|
@@ -456,7 +456,7 @@ var Re = {
|
|
|
456
456
|
passive: !0
|
|
457
457
|
};
|
|
458
458
|
function yr(e) {
|
|
459
|
-
var t = e.state, n = e.instance, r = e.options, o = r.scroll, i = o === void 0 ? !0 : o, f = r.resize, s = f === void 0 ? !0 : f, u =
|
|
459
|
+
var t = e.state, n = e.instance, r = e.options, o = r.scroll, i = o === void 0 ? !0 : o, f = r.resize, s = f === void 0 ? !0 : f, u = H(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
460
460
|
return i && c.forEach(function(a) {
|
|
461
461
|
a.addEventListener("scroll", n.update, Re);
|
|
462
462
|
}), s && u.addEventListener("resize", n.update, Re), function() {
|
|
@@ -495,7 +495,7 @@ function Ot(e) {
|
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
function Qe(e) {
|
|
498
|
-
var t =
|
|
498
|
+
var t = H(e), n = t.pageXOffset, r = t.pageYOffset;
|
|
499
499
|
return {
|
|
500
500
|
scrollLeft: n,
|
|
501
501
|
scrollTop: r
|
|
@@ -505,7 +505,7 @@ function Ze(e) {
|
|
|
505
505
|
return le(te(e)).left + Qe(e).scrollLeft;
|
|
506
506
|
}
|
|
507
507
|
function Er(e, t) {
|
|
508
|
-
var n =
|
|
508
|
+
var n = H(e), r = te(e), o = n.visualViewport, i = r.clientWidth, f = r.clientHeight, s = 0, u = 0;
|
|
509
509
|
if (o) {
|
|
510
510
|
i = o.width, f = o.height;
|
|
511
511
|
var c = Wt();
|
|
@@ -532,12 +532,12 @@ function et(e) {
|
|
|
532
532
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
533
533
|
}
|
|
534
534
|
function qt(e) {
|
|
535
|
-
return ["html", "body", "#document"].indexOf(ee(e)) >= 0 ? e.ownerDocument.body :
|
|
535
|
+
return ["html", "body", "#document"].indexOf(ee(e)) >= 0 ? e.ownerDocument.body : X(e) && et(e) ? e : qt(ke(e));
|
|
536
536
|
}
|
|
537
537
|
function ye(e, t) {
|
|
538
538
|
var n;
|
|
539
539
|
t === void 0 && (t = []);
|
|
540
|
-
var r = qt(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), i =
|
|
540
|
+
var r = qt(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), i = H(r), f = o ? [i].concat(i.visualViewport || [], et(r) ? r : []) : r, s = t.concat(f);
|
|
541
541
|
return o ? s : (
|
|
542
542
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
543
543
|
s.concat(ye(ke(f)))
|
|
@@ -551,21 +551,21 @@ function _e(e) {
|
|
|
551
551
|
bottom: e.y + e.height
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Pr(e, t) {
|
|
555
555
|
var n = le(e, !1, t === "fixed");
|
|
556
556
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
557
557
|
}
|
|
558
558
|
function Et(e, t, n) {
|
|
559
|
-
return t === Bt ? _e(Er(e, n)) : ae(t) ?
|
|
559
|
+
return t === Bt ? _e(Er(e, n)) : ae(t) ? Pr(t, n) : _e(Dr(te(e)));
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
var t = ye(ke(e)), n = ["absolute", "fixed"].indexOf(Y(e).position) >= 0, r = n &&
|
|
561
|
+
function Cr(e) {
|
|
562
|
+
var t = ye(ke(e)), n = ["absolute", "fixed"].indexOf(Y(e).position) >= 0, r = n && X(e) ? Ee(e) : e;
|
|
563
563
|
return ae(r) ? t.filter(function(o) {
|
|
564
|
-
return ae(o) &&
|
|
564
|
+
return ae(o) && Ft(o, r) && ee(o) !== "body";
|
|
565
565
|
}) : [];
|
|
566
566
|
}
|
|
567
567
|
function $r(e, t, n, r) {
|
|
568
|
-
var o = t === "clippingParents" ?
|
|
568
|
+
var o = t === "clippingParents" ? Cr(e) : [].concat(t), i = [].concat(o, [n]), f = i[0], s = i.reduce(function(u, c) {
|
|
569
569
|
var a = Et(e, c, r);
|
|
570
570
|
return u.top = ie(a.top, u.top), u.right = Se(a.right, u.right), u.bottom = Se(a.bottom, u.bottom), u.left = ie(a.left, u.left), u;
|
|
571
571
|
}, Et(e, f, r));
|
|
@@ -625,17 +625,17 @@ function xe(e, t) {
|
|
|
625
625
|
element: b,
|
|
626
626
|
strategy: "absolute",
|
|
627
627
|
placement: o
|
|
628
|
-
}),
|
|
628
|
+
}), P = _e(Object.assign({}, b, D)), A = v === ge ? P : E, R = {
|
|
629
629
|
top: w.top - A.top + x.top,
|
|
630
630
|
bottom: A.bottom - w.bottom + x.bottom,
|
|
631
631
|
left: w.left - A.left + x.left,
|
|
632
632
|
right: A.right - w.right + x.right
|
|
633
633
|
}, O = e.modifiersData.offset;
|
|
634
634
|
if (v === ge && O) {
|
|
635
|
-
var
|
|
635
|
+
var C = O[o];
|
|
636
636
|
Object.keys(R).forEach(function($) {
|
|
637
637
|
var M = [V, U].indexOf($) >= 0 ? 1 : -1, I = [B, U].indexOf($) >= 0 ? "y" : "x";
|
|
638
|
-
R[$] +=
|
|
638
|
+
R[$] += C[I] * M;
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
641
|
return R;
|
|
@@ -661,7 +661,7 @@ function Ar(e, t) {
|
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
function Rr(e) {
|
|
664
|
-
if (K(e) ===
|
|
664
|
+
if (K(e) === ze)
|
|
665
665
|
return [];
|
|
666
666
|
var t = je(e);
|
|
667
667
|
return [Ot(e), t, Ot(t)];
|
|
@@ -670,7 +670,7 @@ function jr(e) {
|
|
|
670
670
|
var t = e.state, n = e.options, r = e.name;
|
|
671
671
|
if (!t.modifiersData[r]._skip) {
|
|
672
672
|
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, f = n.altAxis, s = f === void 0 ? !0 : f, u = n.fallbackPlacements, c = n.padding, a = n.boundary, l = n.rootBoundary, v = n.altBoundary, d = n.flipVariations, m = d === void 0 ? !0 : d, g = n.allowedAutoPlacements, p = t.options.placement, x = K(p), y = x === p, b = u || (y || !m ? [je(p)] : Rr(p)), h = [p].concat(b).reduce(function(ue, Q) {
|
|
673
|
-
return ue.concat(K(Q) ===
|
|
673
|
+
return ue.concat(K(Q) === ze ? Ar(t, {
|
|
674
674
|
placement: Q,
|
|
675
675
|
boundary: a,
|
|
676
676
|
rootBoundary: l,
|
|
@@ -678,8 +678,8 @@ function jr(e) {
|
|
|
678
678
|
flipVariations: m,
|
|
679
679
|
allowedAutoPlacements: g
|
|
680
680
|
}) : Q);
|
|
681
|
-
}, []), w = t.rects.reference, E = t.rects.popper, D = /* @__PURE__ */ new Map(),
|
|
682
|
-
var O = h[R],
|
|
681
|
+
}, []), w = t.rects.reference, E = t.rects.popper, D = /* @__PURE__ */ new Map(), P = !0, A = h[0], R = 0; R < h.length; R++) {
|
|
682
|
+
var O = h[R], C = K(O), $ = de(O) === ce, M = [B, U].indexOf(C) >= 0, I = M ? "width" : "height", T = xe(t, {
|
|
683
683
|
placement: O,
|
|
684
684
|
boundary: a,
|
|
685
685
|
rootBoundary: l,
|
|
@@ -688,18 +688,18 @@ function jr(e) {
|
|
|
688
688
|
}), W = M ? $ ? V : L : $ ? U : B;
|
|
689
689
|
w[I] > E[I] && (W = je(W));
|
|
690
690
|
var pe = je(W), q = [];
|
|
691
|
-
if (i && q.push(T[
|
|
691
|
+
if (i && q.push(T[C] <= 0), s && q.push(T[W] <= 0, T[pe] <= 0), q.every(function(ue) {
|
|
692
692
|
return ue;
|
|
693
693
|
})) {
|
|
694
|
-
A = O,
|
|
694
|
+
A = O, P = !1;
|
|
695
695
|
break;
|
|
696
696
|
}
|
|
697
697
|
D.set(O, q);
|
|
698
698
|
}
|
|
699
|
-
if (
|
|
699
|
+
if (P)
|
|
700
700
|
for (var N = m ? 3 : 1, se = function(Q) {
|
|
701
|
-
var me = h.find(function(
|
|
702
|
-
var ne = D.get(
|
|
701
|
+
var me = h.find(function(Ce) {
|
|
702
|
+
var ne = D.get(Ce);
|
|
703
703
|
if (ne)
|
|
704
704
|
return ne.slice(0, Q).every(function(Le) {
|
|
705
705
|
return Le;
|
|
@@ -708,8 +708,8 @@ function jr(e) {
|
|
|
708
708
|
if (me)
|
|
709
709
|
return A = me, "break";
|
|
710
710
|
}, ve = N; ve > 0; ve--) {
|
|
711
|
-
var
|
|
712
|
-
if (
|
|
711
|
+
var Pe = se(ve);
|
|
712
|
+
if (Pe === "break") break;
|
|
713
713
|
}
|
|
714
714
|
t.placement !== A && (t.modifiersData[r]._skip = !0, t.placement = A, t.reset = !0);
|
|
715
715
|
}
|
|
@@ -735,7 +735,7 @@ function Dt(e, t, n) {
|
|
|
735
735
|
left: e.left - t.width - n.x
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Pt(e) {
|
|
739
739
|
return [B, V, U, L].some(function(t) {
|
|
740
740
|
return e[t] >= 0;
|
|
741
741
|
});
|
|
@@ -745,7 +745,7 @@ function Tr(e) {
|
|
|
745
745
|
elementContext: "reference"
|
|
746
746
|
}), s = xe(t, {
|
|
747
747
|
altBoundary: !0
|
|
748
|
-
}), u = Dt(f, r), c = Dt(s, o, i), a =
|
|
748
|
+
}), u = Dt(f, r), c = Dt(s, o, i), a = Pt(u), l = Pt(c);
|
|
749
749
|
t.modifiersData[n] = {
|
|
750
750
|
referenceClippingOffsets: u,
|
|
751
751
|
popperEscapeOffsets: c,
|
|
@@ -807,13 +807,13 @@ const Lr = {
|
|
|
807
807
|
function Wr(e) {
|
|
808
808
|
return e === "x" ? "y" : "x";
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function Fr(e) {
|
|
811
811
|
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, i = o === void 0 ? !0 : o, f = n.altAxis, s = f === void 0 ? !1 : f, u = n.boundary, c = n.rootBoundary, a = n.altBoundary, l = n.padding, v = n.tether, d = v === void 0 ? !0 : v, m = n.tetherOffset, g = m === void 0 ? 0 : m, p = xe(t, {
|
|
812
812
|
boundary: u,
|
|
813
813
|
rootBoundary: c,
|
|
814
814
|
padding: l,
|
|
815
815
|
altBoundary: a
|
|
816
|
-
}), x = K(t.placement), y = de(t.placement), b = !y, h = Je(x), w = Wr(h), E = t.modifiersData.popperOffsets, D = t.rects.reference,
|
|
816
|
+
}), x = K(t.placement), y = de(t.placement), b = !y, h = Je(x), w = Wr(h), E = t.modifiersData.popperOffsets, D = t.rects.reference, P = t.rects.popper, A = typeof g == "function" ? g(Object.assign({}, t.rects, {
|
|
817
817
|
placement: t.placement
|
|
818
818
|
})) : g, R = typeof A == "number" ? {
|
|
819
819
|
mainAxis: A,
|
|
@@ -821,30 +821,30 @@ function Hr(e) {
|
|
|
821
821
|
} : Object.assign({
|
|
822
822
|
mainAxis: 0,
|
|
823
823
|
altAxis: 0
|
|
824
|
-
}, A), O = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null,
|
|
824
|
+
}, A), O = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, C = {
|
|
825
825
|
x: 0,
|
|
826
826
|
y: 0
|
|
827
827
|
};
|
|
828
828
|
if (E) {
|
|
829
829
|
if (i) {
|
|
830
|
-
var $, M = h === "y" ? B : L, I = h === "y" ? U : V, T = h === "y" ? "height" : "width", W = E[h], pe = W + p[M], q = W - p[I], N = d ? -
|
|
830
|
+
var $, M = h === "y" ? B : L, I = h === "y" ? U : V, T = h === "y" ? "height" : "width", W = E[h], pe = W + p[M], q = W - p[I], N = d ? -P[T] / 2 : 0, se = y === ce ? D[T] : P[T], ve = y === ce ? -P[T] : -D[T], Pe = t.elements.arrow, ue = d && Pe ? Ge(Pe) : {
|
|
831
831
|
width: 0,
|
|
832
832
|
height: 0
|
|
833
|
-
}, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
834
|
-
E[h] = it,
|
|
833
|
+
}, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ht(), me = Q[M], Ce = Q[I], ne = we(0, D[T], ue[T]), Le = b ? D[T] / 2 - N - ne - me - R.mainAxis : se - ne - me - R.mainAxis, vn = b ? -D[T] / 2 + N + ne + Ce + R.mainAxis : ve + ne + Ce + R.mainAxis, We = t.elements.arrow && Ee(t.elements.arrow), mn = We ? h === "y" ? We.clientTop || 0 : We.clientLeft || 0 : 0, ot = ($ = O == null ? void 0 : O[h]) != null ? $ : 0, gn = W + Le - ot - mn, hn = W + vn - ot, it = we(d ? Se(pe, gn) : pe, W, d ? ie(q, hn) : q);
|
|
834
|
+
E[h] = it, C[h] = it - W;
|
|
835
835
|
}
|
|
836
836
|
if (s) {
|
|
837
|
-
var at, wn = h === "x" ? B : L, yn = h === "x" ? U : V, re = E[w], $e = w === "y" ? "height" : "width", st = re + p[wn], ut = re - p[yn],
|
|
838
|
-
E[w] = dt,
|
|
837
|
+
var at, wn = h === "x" ? B : L, yn = h === "x" ? U : V, re = E[w], $e = w === "y" ? "height" : "width", st = re + p[wn], ut = re - p[yn], Fe = [B, L].indexOf(x) !== -1, ct = (at = O == null ? void 0 : O[w]) != null ? at : 0, ft = Fe ? st : re - D[$e] - P[$e] - ct + R.altAxis, lt = Fe ? re + D[$e] + P[$e] - ct - R.altAxis : ut, dt = d && Fe ? fr(ft, re, lt) : we(d ? ft : st, re, d ? lt : ut);
|
|
838
|
+
E[w] = dt, C[w] = dt - re;
|
|
839
839
|
}
|
|
840
|
-
t.modifiersData[r] =
|
|
840
|
+
t.modifiersData[r] = C;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
const
|
|
843
|
+
const Hr = {
|
|
844
844
|
name: "preventOverflow",
|
|
845
845
|
enabled: !0,
|
|
846
846
|
phase: "main",
|
|
847
|
-
fn:
|
|
847
|
+
fn: Fr,
|
|
848
848
|
requiresIfExists: ["offset"]
|
|
849
849
|
};
|
|
850
850
|
function Ur(e) {
|
|
@@ -854,7 +854,7 @@ function Ur(e) {
|
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
function Vr(e) {
|
|
857
|
-
return e ===
|
|
857
|
+
return e === H(e) || !X(e) ? Qe(e) : Ur(e);
|
|
858
858
|
}
|
|
859
859
|
function qr(e) {
|
|
860
860
|
var t = e.getBoundingClientRect(), n = fe(t.width) / e.offsetWidth || 1, r = fe(t.height) / e.offsetHeight || 1;
|
|
@@ -862,7 +862,7 @@ function qr(e) {
|
|
|
862
862
|
}
|
|
863
863
|
function _r(e, t, n) {
|
|
864
864
|
n === void 0 && (n = !1);
|
|
865
|
-
var r =
|
|
865
|
+
var r = X(t), o = X(t) && qr(t), i = te(t), f = le(e, o, n), s = {
|
|
866
866
|
scrollLeft: 0,
|
|
867
867
|
scrollTop: 0
|
|
868
868
|
}, u = {
|
|
@@ -870,7 +870,7 @@ function _r(e, t, n) {
|
|
|
870
870
|
y: 0
|
|
871
871
|
};
|
|
872
872
|
return (r || !r && !n) && ((ee(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
873
|
-
et(i)) && (s = Vr(t)),
|
|
873
|
+
et(i)) && (s = Vr(t)), X(t) ? (u = le(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : i && (u.x = Ze(i))), {
|
|
874
874
|
x: f.left + s.scrollLeft - u.x,
|
|
875
875
|
y: f.top + s.scrollTop - u.y,
|
|
876
876
|
width: f.width,
|
|
@@ -896,7 +896,7 @@ function Kr(e) {
|
|
|
896
896
|
n.has(i.name) || o(i);
|
|
897
897
|
}), r;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Xr(e) {
|
|
900
900
|
var t = Kr(e);
|
|
901
901
|
return sr.reduce(function(n, r) {
|
|
902
902
|
return n.concat(t.filter(function(o) {
|
|
@@ -904,7 +904,7 @@ function zr(e) {
|
|
|
904
904
|
}));
|
|
905
905
|
}, []);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function zr(e) {
|
|
908
908
|
var t;
|
|
909
909
|
return function() {
|
|
910
910
|
return t || (t = new Promise(function(n) {
|
|
@@ -926,7 +926,7 @@ function Yr(e) {
|
|
|
926
926
|
return t[n];
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
|
-
var
|
|
929
|
+
var Ct = {
|
|
930
930
|
placement: "bottom",
|
|
931
931
|
modifiers: [],
|
|
932
932
|
strategy: "absolute"
|
|
@@ -940,13 +940,13 @@ function $t() {
|
|
|
940
940
|
}
|
|
941
941
|
function Gr(e) {
|
|
942
942
|
e === void 0 && (e = {});
|
|
943
|
-
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, i = o === void 0 ?
|
|
943
|
+
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, i = o === void 0 ? Ct : o;
|
|
944
944
|
return function(s, u, c) {
|
|
945
945
|
c === void 0 && (c = i);
|
|
946
946
|
var a = {
|
|
947
947
|
placement: "bottom",
|
|
948
948
|
orderedModifiers: [],
|
|
949
|
-
options: Object.assign({},
|
|
949
|
+
options: Object.assign({}, Ct, i),
|
|
950
950
|
modifiersData: {},
|
|
951
951
|
elements: {
|
|
952
952
|
reference: s,
|
|
@@ -962,7 +962,7 @@ function Gr(e) {
|
|
|
962
962
|
reference: ae(s) ? ye(s) : s.contextElement ? ye(s.contextElement) : [],
|
|
963
963
|
popper: ye(u)
|
|
964
964
|
};
|
|
965
|
-
var b =
|
|
965
|
+
var b = Xr(Yr([].concat(r, a.options.modifiers)));
|
|
966
966
|
return a.orderedModifiers = b.filter(function(h) {
|
|
967
967
|
return h.enabled;
|
|
968
968
|
}), m(), d.update();
|
|
@@ -987,10 +987,10 @@ function Gr(e) {
|
|
|
987
987
|
a.reset = !1, h = -1;
|
|
988
988
|
continue;
|
|
989
989
|
}
|
|
990
|
-
var w = a.orderedModifiers[h], E = w.fn, D = w.options,
|
|
990
|
+
var w = a.orderedModifiers[h], E = w.fn, D = w.options, P = D === void 0 ? {} : D, A = w.name;
|
|
991
991
|
typeof E == "function" && (a = E({
|
|
992
992
|
state: a,
|
|
993
|
-
options:
|
|
993
|
+
options: P,
|
|
994
994
|
name: A,
|
|
995
995
|
instance: d
|
|
996
996
|
}) || a);
|
|
@@ -1000,7 +1000,7 @@ function Gr(e) {
|
|
|
1000
1000
|
},
|
|
1001
1001
|
// Async and optimistically optimized update – it will not be executed if
|
|
1002
1002
|
// not necessary (debounced to run at most once-per-tick)
|
|
1003
|
-
update:
|
|
1003
|
+
update: zr(function() {
|
|
1004
1004
|
return new Promise(function(p) {
|
|
1005
1005
|
d.forceUpdate(), p(a);
|
|
1006
1006
|
});
|
|
@@ -1038,7 +1038,7 @@ function Gr(e) {
|
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
1040
|
const Jr = Gr({
|
|
1041
|
-
defaultModifiers: [Nr, Lr, wr, br, kr, Mr,
|
|
1041
|
+
defaultModifiers: [Nr, Lr, wr, br, kr, Mr, Hr, vr]
|
|
1042
1042
|
}), Qr = ["enabled", "placement", "strategy", "modifiers"];
|
|
1043
1043
|
function Zr(e, t) {
|
|
1044
1044
|
if (e == null) return {};
|
|
@@ -1094,7 +1094,7 @@ function ro(e, t, n = {}) {
|
|
|
1094
1094
|
strategy: i = "absolute",
|
|
1095
1095
|
modifiers: f = no
|
|
1096
1096
|
} = n, s = Zr(n, Qr);
|
|
1097
|
-
const u =
|
|
1097
|
+
const u = F(f), c = F(), a = _(() => {
|
|
1098
1098
|
var p;
|
|
1099
1099
|
(p = c.current) == null || p.update();
|
|
1100
1100
|
}, []), l = _(() => {
|
|
@@ -1130,13 +1130,13 @@ function ro(e, t, n = {}) {
|
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
1132
|
}), [a, l, d]), g = Me(() => (he(u.current, f) || (u.current = f), u.current), [f]);
|
|
1133
|
-
return
|
|
1133
|
+
return z(() => {
|
|
1134
1134
|
!c.current || !r || c.current.setOptions({
|
|
1135
1135
|
placement: o,
|
|
1136
1136
|
strategy: i,
|
|
1137
1137
|
modifiers: [...g, m, eo]
|
|
1138
1138
|
});
|
|
1139
|
-
}, [i, o, m, r, g]),
|
|
1139
|
+
}, [i, o, m, r, g]), z(() => {
|
|
1140
1140
|
if (!(!r || e == null || t == null))
|
|
1141
1141
|
return c.current = Jr(e, t, Object.assign({}, s, {
|
|
1142
1142
|
placement: o,
|
|
@@ -1173,7 +1173,7 @@ function ao(e, t = Rt, {
|
|
|
1173
1173
|
disabled: n,
|
|
1174
1174
|
clickTrigger: r = "click"
|
|
1175
1175
|
} = {}) {
|
|
1176
|
-
const o =
|
|
1176
|
+
const o = F(!1), i = F(!1), f = _((c) => {
|
|
1177
1177
|
const a = Ue(e);
|
|
1178
1178
|
St(!!a, "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 = !a || io(c) || !oo(c) || !!At(a, c.target) || i.current, i.current = !1;
|
|
1179
1179
|
}, [e]), s = Z((c) => {
|
|
@@ -1182,7 +1182,7 @@ function ao(e, t = Rt, {
|
|
|
1182
1182
|
}), u = Z((c) => {
|
|
1183
1183
|
o.current || t(c);
|
|
1184
1184
|
});
|
|
1185
|
-
|
|
1185
|
+
z(() => {
|
|
1186
1186
|
var c, a;
|
|
1187
1187
|
if (n || e == null) return;
|
|
1188
1188
|
const l = An(Ue(e)), v = l.defaultView || window;
|
|
@@ -1267,7 +1267,7 @@ function lo(e, t) {
|
|
|
1267
1267
|
const po = () => {
|
|
1268
1268
|
};
|
|
1269
1269
|
function Kt(e = {}) {
|
|
1270
|
-
const t = k(Ie), [n, r] = Vn(), o =
|
|
1270
|
+
const t = k(Ie), [n, r] = Vn(), o = F(!1), {
|
|
1271
1271
|
flip: i,
|
|
1272
1272
|
offset: f,
|
|
1273
1273
|
rootCloseEvent: s,
|
|
@@ -1316,7 +1316,7 @@ function Kt(e = {}) {
|
|
|
1316
1316
|
disabled: !d
|
|
1317
1317
|
}), [h, w];
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Xt(e) {
|
|
1320
1320
|
let {
|
|
1321
1321
|
children: t,
|
|
1322
1322
|
usePopper: n = !0
|
|
@@ -1328,8 +1328,8 @@ function zt(e) {
|
|
|
1328
1328
|
children: t(o, i)
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
1331
|
-
|
|
1332
|
-
const
|
|
1331
|
+
Xt.displayName = "DropdownMenu";
|
|
1332
|
+
const zt = (e) => {
|
|
1333
1333
|
var t;
|
|
1334
1334
|
return ((t = e.getAttribute("role")) == null ? void 0 : t.toLowerCase()) === "menu";
|
|
1335
1335
|
}, Mt = () => {
|
|
@@ -1348,7 +1348,7 @@ function Yt() {
|
|
|
1348
1348
|
onClick: i,
|
|
1349
1349
|
"aria-expanded": !!t
|
|
1350
1350
|
};
|
|
1351
|
-
return o &&
|
|
1351
|
+
return o && zt(o) && (f["aria-haspopup"] = !0), [f, {
|
|
1352
1352
|
show: t,
|
|
1353
1353
|
toggle: n
|
|
1354
1354
|
}];
|
|
@@ -1368,7 +1368,7 @@ const vo = "data-rr-ui-", mo = "rrUi";
|
|
|
1368
1368
|
function Be(e) {
|
|
1369
1369
|
return `${vo}${e}`;
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function ko(e) {
|
|
1372
1372
|
return `${mo}${e}`;
|
|
1373
1373
|
}
|
|
1374
1374
|
const go = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
@@ -1422,13 +1422,13 @@ const Qt = /* @__PURE__ */ S.forwardRef((e, t) => {
|
|
|
1422
1422
|
}, u));
|
|
1423
1423
|
});
|
|
1424
1424
|
Qt.displayName = "DropdownItem";
|
|
1425
|
-
const Zt = /* @__PURE__ */
|
|
1425
|
+
const Zt = /* @__PURE__ */ Pn(jn ? window : void 0);
|
|
1426
1426
|
Zt.Provider;
|
|
1427
1427
|
function wo() {
|
|
1428
1428
|
return k(Zt);
|
|
1429
1429
|
}
|
|
1430
1430
|
function Tt() {
|
|
1431
|
-
const e =
|
|
1431
|
+
const e = zn(), t = F(null), n = _((r) => {
|
|
1432
1432
|
t.current = r, e();
|
|
1433
1433
|
}, [e]);
|
|
1434
1434
|
return [t, n];
|
|
@@ -1443,13 +1443,13 @@ function De({
|
|
|
1443
1443
|
placement: f = "bottom-start",
|
|
1444
1444
|
children: s
|
|
1445
1445
|
}) {
|
|
1446
|
-
const u = wo(), [c, a] = Mn(t, e, r), [l, v] = Tt(), d = l.current, [m, g] = Tt(), p = m.current, x = Kn(c), y =
|
|
1446
|
+
const u = wo(), [c, a] = Mn(t, e, r), [l, v] = Tt(), d = l.current, [m, g] = Tt(), p = m.current, x = Kn(c), y = F(null), b = F(!1), h = k(Te), w = _((O, C, $ = C == null ? void 0 : C.type) => {
|
|
1447
1447
|
a(O, {
|
|
1448
|
-
originalEvent:
|
|
1448
|
+
originalEvent: C,
|
|
1449
1449
|
source: $
|
|
1450
1450
|
});
|
|
1451
|
-
}, [a]), E = Z((O,
|
|
1452
|
-
n == null || n(O,
|
|
1451
|
+
}, [a]), E = Z((O, C) => {
|
|
1452
|
+
n == null || n(O, C), w(!1, C, "select"), C.isPropagationStopped() || h == null || h(O, C);
|
|
1453
1453
|
}), D = Me(() => ({
|
|
1454
1454
|
toggle: w,
|
|
1455
1455
|
placement: f,
|
|
@@ -1460,32 +1460,32 @@ function De({
|
|
|
1460
1460
|
setToggle: g
|
|
1461
1461
|
}), [w, f, c, d, p, v, g]);
|
|
1462
1462
|
d && x && !c && (b.current = d.contains(d.ownerDocument.activeElement));
|
|
1463
|
-
const
|
|
1463
|
+
const P = Z(() => {
|
|
1464
1464
|
p && p.focus && p.focus();
|
|
1465
1465
|
}), A = Z(() => {
|
|
1466
1466
|
const O = y.current;
|
|
1467
|
-
let
|
|
1468
|
-
if (
|
|
1467
|
+
let C = i;
|
|
1468
|
+
if (C == null && (C = l.current && zt(l.current) ? "keyboard" : !1), C === !1 || C === "keyboard" && !/^key.+$/.test(O))
|
|
1469
1469
|
return;
|
|
1470
1470
|
const $ = gt(l.current, o)[0];
|
|
1471
1471
|
$ && $.focus && $.focus();
|
|
1472
1472
|
});
|
|
1473
|
-
|
|
1474
|
-
c ? A() : b.current && (b.current = !1,
|
|
1475
|
-
}, [c, b,
|
|
1473
|
+
z(() => {
|
|
1474
|
+
c ? A() : b.current && (b.current = !1, P());
|
|
1475
|
+
}, [c, b, P, A]), z(() => {
|
|
1476
1476
|
y.current = null;
|
|
1477
1477
|
});
|
|
1478
|
-
const R = (O,
|
|
1478
|
+
const R = (O, C) => {
|
|
1479
1479
|
if (!l.current) return null;
|
|
1480
1480
|
const $ = gt(l.current, o);
|
|
1481
|
-
let M = $.indexOf(O) +
|
|
1481
|
+
let M = $.indexOf(O) + C;
|
|
1482
1482
|
return M = Math.max(0, Math.min(M, $.length)), $[M];
|
|
1483
1483
|
};
|
|
1484
1484
|
return qn(_(() => u.document, [u]), "keydown", (O) => {
|
|
1485
|
-
var
|
|
1485
|
+
var C, $;
|
|
1486
1486
|
const {
|
|
1487
1487
|
key: M
|
|
1488
|
-
} = O, I = O.target, T = (
|
|
1488
|
+
} = O, I = O.target, T = (C = l.current) == null ? void 0 : C.contains(I), W = ($ = m.current) == null ? void 0 : $.contains(I);
|
|
1489
1489
|
if (/input|textarea/i.test(I.tagName) && (M === " " || M !== "Escape" && T || M === "Escape" && I.type === "search") || !T && !W || M === "Tab" && (!l.current || !c))
|
|
1490
1490
|
return;
|
|
1491
1491
|
y.current = O.type;
|
|
@@ -1528,7 +1528,7 @@ function De({
|
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
1530
|
De.displayName = "Dropdown";
|
|
1531
|
-
De.Menu =
|
|
1531
|
+
De.Menu = Xt;
|
|
1532
1532
|
De.Toggle = Gt;
|
|
1533
1533
|
De.Item = Qt;
|
|
1534
1534
|
const nt = /* @__PURE__ */ S.createContext({});
|
|
@@ -1597,7 +1597,7 @@ const rn = /* @__PURE__ */ S.forwardRef(({
|
|
|
1597
1597
|
rn.displayName = "DropdownItemText";
|
|
1598
1598
|
const yo = typeof global < "u" && // @ts-ignore
|
|
1599
1599
|
global.navigator && // @ts-ignore
|
|
1600
|
-
global.navigator.product === "ReactNative", bo = typeof document < "u", xo = bo || yo ?
|
|
1600
|
+
global.navigator.product === "ReactNative", bo = typeof document < "u", xo = bo || yo ? Cn : z, rt = /* @__PURE__ */ S.createContext(null);
|
|
1601
1601
|
rt.displayName = "InputGroupContext";
|
|
1602
1602
|
const on = /* @__PURE__ */ S.createContext(null);
|
|
1603
1603
|
on.displayName = "NavbarContext";
|
|
@@ -1606,7 +1606,7 @@ function an(e, t) {
|
|
|
1606
1606
|
const n = _((r) => {
|
|
1607
1607
|
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? vt(!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`) : vt(!1));
|
|
1608
1608
|
}, [t]);
|
|
1609
|
-
return
|
|
1609
|
+
return Xe(n, e);
|
|
1610
1610
|
}
|
|
1611
1611
|
function sn(e, t, n) {
|
|
1612
1612
|
const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", i = n ? "bottom-end" : "bottom-start", f = n ? "bottom-start" : "bottom-end", s = n ? "right-start" : "left-start", u = n ? "right-end" : "left-end", c = n ? "left-start" : "right-start", a = n ? "left-end" : "right-end";
|
|
@@ -1639,14 +1639,14 @@ const un = /* @__PURE__ */ S.forwardRef(({
|
|
|
1639
1639
|
if (typeof n == "object") {
|
|
1640
1640
|
const O = Object.keys(n);
|
|
1641
1641
|
if (process.env.NODE_ENV !== "production" && St(O.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), O.length) {
|
|
1642
|
-
const
|
|
1643
|
-
v = $ === "start", b.push(`${m}-${
|
|
1642
|
+
const C = O[0], $ = n[C];
|
|
1643
|
+
v = $ === "start", b.push(`${m}-${C}-${$}`);
|
|
1644
1644
|
}
|
|
1645
1645
|
} else n === "end" && (v = !0);
|
|
1646
1646
|
const h = sn(v, p, x), [w, {
|
|
1647
1647
|
hasShown: E,
|
|
1648
1648
|
popper: D,
|
|
1649
|
-
show:
|
|
1649
|
+
show: P,
|
|
1650
1650
|
toggle: A
|
|
1651
1651
|
}] = Kt({
|
|
1652
1652
|
flip: o,
|
|
@@ -1657,10 +1657,10 @@ const un = /* @__PURE__ */ S.forwardRef(({
|
|
|
1657
1657
|
popperConfig: u,
|
|
1658
1658
|
placement: h
|
|
1659
1659
|
});
|
|
1660
|
-
if (w.ref =
|
|
1661
|
-
|
|
1662
|
-
}, [
|
|
1663
|
-
typeof s != "string" && (w.show =
|
|
1660
|
+
if (w.ref = Xe(an(l, "DropdownMenu"), w.ref), xo(() => {
|
|
1661
|
+
P && (D == null || D.update());
|
|
1662
|
+
}, [P]), !E && !f && !y) return null;
|
|
1663
|
+
typeof s != "string" && (w.show = P, w.close = () => A == null ? void 0 : A(!1), w.align = n);
|
|
1664
1664
|
let R = a.style;
|
|
1665
1665
|
return D != null && D.placement && (R = {
|
|
1666
1666
|
...a.style,
|
|
@@ -1672,7 +1672,7 @@ const un = /* @__PURE__ */ S.forwardRef(({
|
|
|
1672
1672
|
...(b.length || d) && {
|
|
1673
1673
|
"data-bs-popper": "static"
|
|
1674
1674
|
},
|
|
1675
|
-
className: J(t, m,
|
|
1675
|
+
className: J(t, m, P && "show", v && `${m}-end`, c && `${m}-${c}`, ...b)
|
|
1676
1676
|
});
|
|
1677
1677
|
});
|
|
1678
1678
|
un.displayName = "DropdownMenu";
|
|
@@ -1688,7 +1688,7 @@ const cn = /* @__PURE__ */ S.forwardRef(({
|
|
|
1688
1688
|
const s = G(e, "dropdown-toggle"), u = k(Ie);
|
|
1689
1689
|
r !== void 0 && (i.bsPrefix = r);
|
|
1690
1690
|
const [c] = Yt();
|
|
1691
|
-
return c.ref =
|
|
1691
|
+
return c.ref = Xe(c.ref, an(f, "DropdownToggle")), /* @__PURE__ */ j(o, {
|
|
1692
1692
|
className: J(n, s, t && `${s}-split`, (u == null ? void 0 : u.show) && "show"),
|
|
1693
1693
|
...c,
|
|
1694
1694
|
...i
|
|
@@ -1710,11 +1710,11 @@ const fn = /* @__PURE__ */ S.forwardRef((e, t) => {
|
|
|
1710
1710
|
navbar: l,
|
|
1711
1711
|
autoClose: v = !0,
|
|
1712
1712
|
...d
|
|
1713
|
-
} =
|
|
1713
|
+
} = Fn(e, {
|
|
1714
1714
|
show: "onToggle"
|
|
1715
|
-
}), m = k(rt), g = G(n, "dropdown"), p = En(), x = (D) => v === !1 ? D === "click" : v === "inside" ? D !== "rootClose" : v === "outside" ? D !== "select" : !0, y = Un((D,
|
|
1715
|
+
}), m = k(rt), g = G(n, "dropdown"), p = En(), x = (D) => v === !1 ? D === "click" : v === "inside" ? D !== "rootClose" : v === "outside" ? D !== "select" : !0, y = Un((D, P) => {
|
|
1716
1716
|
var A;
|
|
1717
|
-
!((A =
|
|
1717
|
+
!((A = P.originalEvent) == null || (A = A.target) == null) && A.classList.contains("dropdown-toggle") && P.source === "mousedown" || (P.originalEvent.currentTarget === document && (P.source !== "keydown" || P.originalEvent.key === "Escape") && (P.source = "rootClose"), x(P.source) && (u == null || u(D, P)));
|
|
1718
1718
|
}), h = sn(f === "end", r, p), w = Me(() => ({
|
|
1719
1719
|
align: f,
|
|
1720
1720
|
drop: r,
|
|
@@ -1863,19 +1863,15 @@ const pn = /* @__PURE__ */ S.forwardRef(({
|
|
|
1863
1863
|
});
|
|
1864
1864
|
});
|
|
1865
1865
|
pn.displayName = "NavDropdown";
|
|
1866
|
-
const
|
|
1866
|
+
const Po = Object.assign(pn, {
|
|
1867
1867
|
Item: oe.Item,
|
|
1868
1868
|
ItemText: oe.ItemText,
|
|
1869
1869
|
Divider: oe.Divider,
|
|
1870
1870
|
Header: oe.Header
|
|
1871
|
-
})
|
|
1872
|
-
|
|
1873
|
-
return xn({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z" }, child: [] }] })(e);
|
|
1874
|
-
}
|
|
1875
|
-
const Lo = () => /* @__PURE__ */ j(
|
|
1876
|
-
Co,
|
|
1871
|
+
}), Bo = () => /* @__PURE__ */ j(
|
|
1872
|
+
Po,
|
|
1877
1873
|
{
|
|
1878
|
-
title: /* @__PURE__ */ j(
|
|
1874
|
+
title: /* @__PURE__ */ j(xn, { className: "icono-notificaciones" }),
|
|
1879
1875
|
align: "end",
|
|
1880
1876
|
children: /* @__PURE__ */ j("div", { style: {
|
|
1881
1877
|
fontWeight: "400",
|
|
@@ -1884,14 +1880,14 @@ const Lo = () => /* @__PURE__ */ j(
|
|
|
1884
1880
|
}
|
|
1885
1881
|
);
|
|
1886
1882
|
export {
|
|
1887
|
-
|
|
1883
|
+
Bo as N,
|
|
1888
1884
|
Do as a,
|
|
1889
1885
|
tt as b,
|
|
1890
|
-
|
|
1886
|
+
ko as c,
|
|
1891
1887
|
Be as d,
|
|
1892
1888
|
dn as e,
|
|
1893
|
-
|
|
1889
|
+
Fn as f,
|
|
1894
1890
|
on as g,
|
|
1895
1891
|
gt as q,
|
|
1896
|
-
|
|
1892
|
+
zn as u
|
|
1897
1893
|
};
|