react-ecosistema-unp 1.7.1 → 1.7.2-pre.0
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/TabPane-BiwPZSbT.js +752 -0
- package/dist/assets/EcoModalStyles.css +1 -0
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
- package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
- package/dist/{index-Cpp73e44.js → index-069JzHFQ.js} +23 -15
- package/dist/index-BrykDZgK.js +390 -0
- package/dist/lib/tables/tabla-registros/modal-test/EcoModal.d.ts +19 -0
- package/dist/lib/ui.d.ts +1 -0
- package/dist/lib/utils/websocket-manager/websocket.d.ts +1 -1
- package/dist/shared/app-list/AppList.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/shared/menu-lateral/MenuLateral.js +5 -3
- package/dist/shared/tab-ventana/TabVentana.js +1 -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 +5 -3
- package/dist/tables/tabla-registros/modal-test/EcoModal.js +101 -0
- package/dist/tables/tabla-registros/tabla/Tabla.js +1 -1
- 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 +5 -5
- package/dist/ui.js +17 -15
- package/dist/utils/unp-historico/UnpHistorico.js +5 -3
- package/dist/utils/websocket-manager/useWebSocket.js +10 -10
- package/package.json +1 -1
- package/dist/TabPane-DtFCEmIj.js +0 -1136
|
@@ -0,0 +1,752 @@
|
|
|
1
|
+
import * as S from "react";
|
|
2
|
+
import C, { useRef as j, useCallback as g, useMemo as $, useEffect as it, cloneElement as ot, useContext as st } from "react";
|
|
3
|
+
import { o as at, _ as ut, l as Y, u as lt, T as k, m as W, S as F, a as ct, $ as ft } from "./TabContext-CdjYJzMB.js";
|
|
4
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
5
|
+
import { c as V, u as Z } from "./ThemeProvider-Bs1j1Nwi.js";
|
|
6
|
+
import { u as dt } from "./useEventCallback-Bfo0-hwZ.js";
|
|
7
|
+
import { P as u } from "./index-sDUMSncV.js";
|
|
8
|
+
import { R as w } from "./index-BrykDZgK.js";
|
|
9
|
+
function A(t, r) {
|
|
10
|
+
return A = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, i) {
|
|
11
|
+
return o.__proto__ = i, o;
|
|
12
|
+
}, A(t, r);
|
|
13
|
+
}
|
|
14
|
+
function pt(t, r) {
|
|
15
|
+
t.prototype = Object.create(r.prototype), t.prototype.constructor = t, A(t, r);
|
|
16
|
+
}
|
|
17
|
+
function Et(t) {
|
|
18
|
+
var r = at(t);
|
|
19
|
+
return r && r.defaultView || window;
|
|
20
|
+
}
|
|
21
|
+
function mt(t, r) {
|
|
22
|
+
return Et(t).getComputedStyle(t, r);
|
|
23
|
+
}
|
|
24
|
+
var ht = /([A-Z])/g;
|
|
25
|
+
function xt(t) {
|
|
26
|
+
return t.replace(ht, "-$1").toLowerCase();
|
|
27
|
+
}
|
|
28
|
+
var vt = /^ms-/;
|
|
29
|
+
function L(t) {
|
|
30
|
+
return xt(t).replace(vt, "-ms-");
|
|
31
|
+
}
|
|
32
|
+
var gt = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
|
33
|
+
function bt(t) {
|
|
34
|
+
return !!(t && gt.test(t));
|
|
35
|
+
}
|
|
36
|
+
function z(t, r) {
|
|
37
|
+
var o = "", i = "";
|
|
38
|
+
if (typeof r == "string")
|
|
39
|
+
return t.style.getPropertyValue(L(r)) || mt(t).getPropertyValue(L(r));
|
|
40
|
+
Object.keys(r).forEach(function(e) {
|
|
41
|
+
var n = r[e];
|
|
42
|
+
!n && n !== 0 ? t.style.removeProperty(L(e)) : bt(e) ? i += e + "(" + n + ") " : o += L(e) + ": " + n + ";";
|
|
43
|
+
}), i && (o += "transform: " + i + ";"), t.style.cssText += ";" + o;
|
|
44
|
+
}
|
|
45
|
+
const X = {
|
|
46
|
+
disabled: !1
|
|
47
|
+
};
|
|
48
|
+
var Ot = process.env.NODE_ENV !== "production" ? u.oneOfType([u.number, u.shape({
|
|
49
|
+
enter: u.number,
|
|
50
|
+
exit: u.number,
|
|
51
|
+
appear: u.number
|
|
52
|
+
}).isRequired]) : null;
|
|
53
|
+
process.env.NODE_ENV !== "production" && u.oneOfType([u.string, u.shape({
|
|
54
|
+
enter: u.string,
|
|
55
|
+
exit: u.string,
|
|
56
|
+
active: u.string
|
|
57
|
+
}), u.shape({
|
|
58
|
+
enter: u.string,
|
|
59
|
+
enterDone: u.string,
|
|
60
|
+
enterActive: u.string,
|
|
61
|
+
exit: u.string,
|
|
62
|
+
exitDone: u.string,
|
|
63
|
+
exitActive: u.string
|
|
64
|
+
})]);
|
|
65
|
+
const B = C.createContext(null);
|
|
66
|
+
var Tt = function(r) {
|
|
67
|
+
return r.scrollTop;
|
|
68
|
+
}, I = "unmounted", T = "exited", b = "entering", y = "entered", U = "exiting", v = /* @__PURE__ */ function(t) {
|
|
69
|
+
pt(r, t);
|
|
70
|
+
function r(i, e) {
|
|
71
|
+
var n;
|
|
72
|
+
n = t.call(this, i, e) || this;
|
|
73
|
+
var s = e, a = s && !s.isMounting ? i.enter : i.appear, l;
|
|
74
|
+
return n.appearStatus = null, i.in ? a ? (l = T, n.appearStatus = b) : l = y : i.unmountOnExit || i.mountOnEnter ? l = I : l = T, n.state = {
|
|
75
|
+
status: l
|
|
76
|
+
}, n.nextCallback = null, n;
|
|
77
|
+
}
|
|
78
|
+
r.getDerivedStateFromProps = function(e, n) {
|
|
79
|
+
var s = e.in;
|
|
80
|
+
return s && n.status === I ? {
|
|
81
|
+
status: T
|
|
82
|
+
} : null;
|
|
83
|
+
};
|
|
84
|
+
var o = r.prototype;
|
|
85
|
+
return o.componentDidMount = function() {
|
|
86
|
+
this.updateStatus(!0, this.appearStatus);
|
|
87
|
+
}, o.componentDidUpdate = function(e) {
|
|
88
|
+
var n = null;
|
|
89
|
+
if (e !== this.props) {
|
|
90
|
+
var s = this.state.status;
|
|
91
|
+
this.props.in ? s !== b && s !== y && (n = b) : (s === b || s === y) && (n = U);
|
|
92
|
+
}
|
|
93
|
+
this.updateStatus(!1, n);
|
|
94
|
+
}, o.componentWillUnmount = function() {
|
|
95
|
+
this.cancelNextCallback();
|
|
96
|
+
}, o.getTimeouts = function() {
|
|
97
|
+
var e = this.props.timeout, n, s, a;
|
|
98
|
+
return n = s = a = e, e != null && typeof e != "number" && (n = e.exit, s = e.enter, a = e.appear !== void 0 ? e.appear : s), {
|
|
99
|
+
exit: n,
|
|
100
|
+
enter: s,
|
|
101
|
+
appear: a
|
|
102
|
+
};
|
|
103
|
+
}, o.updateStatus = function(e, n) {
|
|
104
|
+
if (e === void 0 && (e = !1), n !== null)
|
|
105
|
+
if (this.cancelNextCallback(), n === b) {
|
|
106
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
107
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : w.findDOMNode(this);
|
|
108
|
+
s && Tt(s);
|
|
109
|
+
}
|
|
110
|
+
this.performEnter(e);
|
|
111
|
+
} else
|
|
112
|
+
this.performExit();
|
|
113
|
+
else this.props.unmountOnExit && this.state.status === T && this.setState({
|
|
114
|
+
status: I
|
|
115
|
+
});
|
|
116
|
+
}, o.performEnter = function(e) {
|
|
117
|
+
var n = this, s = this.props.enter, a = this.context ? this.context.isMounting : e, l = this.props.nodeRef ? [a] : [w.findDOMNode(this), a], c = l[0], d = l[1], f = this.getTimeouts(), E = a ? f.appear : f.enter;
|
|
118
|
+
if (!e && !s || X.disabled) {
|
|
119
|
+
this.safeSetState({
|
|
120
|
+
status: y
|
|
121
|
+
}, function() {
|
|
122
|
+
n.props.onEntered(c);
|
|
123
|
+
});
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
this.props.onEnter(c, d), this.safeSetState({
|
|
127
|
+
status: b
|
|
128
|
+
}, function() {
|
|
129
|
+
n.props.onEntering(c, d), n.onTransitionEnd(E, function() {
|
|
130
|
+
n.safeSetState({
|
|
131
|
+
status: y
|
|
132
|
+
}, function() {
|
|
133
|
+
n.props.onEntered(c, d);
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
}, o.performExit = function() {
|
|
138
|
+
var e = this, n = this.props.exit, s = this.getTimeouts(), a = this.props.nodeRef ? void 0 : w.findDOMNode(this);
|
|
139
|
+
if (!n || X.disabled) {
|
|
140
|
+
this.safeSetState({
|
|
141
|
+
status: T
|
|
142
|
+
}, function() {
|
|
143
|
+
e.props.onExited(a);
|
|
144
|
+
});
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
this.props.onExit(a), this.safeSetState({
|
|
148
|
+
status: U
|
|
149
|
+
}, function() {
|
|
150
|
+
e.props.onExiting(a), e.onTransitionEnd(s.exit, function() {
|
|
151
|
+
e.safeSetState({
|
|
152
|
+
status: T
|
|
153
|
+
}, function() {
|
|
154
|
+
e.props.onExited(a);
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
}, o.cancelNextCallback = function() {
|
|
159
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
160
|
+
}, o.safeSetState = function(e, n) {
|
|
161
|
+
n = this.setNextCallback(n), this.setState(e, n);
|
|
162
|
+
}, o.setNextCallback = function(e) {
|
|
163
|
+
var n = this, s = !0;
|
|
164
|
+
return this.nextCallback = function(a) {
|
|
165
|
+
s && (s = !1, n.nextCallback = null, e(a));
|
|
166
|
+
}, this.nextCallback.cancel = function() {
|
|
167
|
+
s = !1;
|
|
168
|
+
}, this.nextCallback;
|
|
169
|
+
}, o.onTransitionEnd = function(e, n) {
|
|
170
|
+
this.setNextCallback(n);
|
|
171
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : w.findDOMNode(this), a = e == null && !this.props.addEndListener;
|
|
172
|
+
if (!s || a) {
|
|
173
|
+
setTimeout(this.nextCallback, 0);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (this.props.addEndListener) {
|
|
177
|
+
var l = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], c = l[0], d = l[1];
|
|
178
|
+
this.props.addEndListener(c, d);
|
|
179
|
+
}
|
|
180
|
+
e != null && setTimeout(this.nextCallback, e);
|
|
181
|
+
}, o.render = function() {
|
|
182
|
+
var e = this.state.status;
|
|
183
|
+
if (e === I)
|
|
184
|
+
return null;
|
|
185
|
+
var n = this.props, s = n.children;
|
|
186
|
+
n.in, n.mountOnEnter, n.unmountOnExit, n.appear, n.enter, n.exit, n.timeout, n.addEndListener, n.onEnter, n.onEntering, n.onEntered, n.onExit, n.onExiting, n.onExited, n.nodeRef;
|
|
187
|
+
var a = ut(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
188
|
+
return (
|
|
189
|
+
// allows for nested Transitions
|
|
190
|
+
/* @__PURE__ */ C.createElement(B.Provider, {
|
|
191
|
+
value: null
|
|
192
|
+
}, typeof s == "function" ? s(e, a) : C.cloneElement(C.Children.only(s), a))
|
|
193
|
+
);
|
|
194
|
+
}, r;
|
|
195
|
+
}(C.Component);
|
|
196
|
+
v.contextType = B;
|
|
197
|
+
v.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
198
|
+
/**
|
|
199
|
+
* A React reference to DOM element that need to transition:
|
|
200
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
201
|
+
*
|
|
202
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
203
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
204
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
205
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
206
|
+
* (see
|
|
207
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
208
|
+
*/
|
|
209
|
+
nodeRef: u.shape({
|
|
210
|
+
current: typeof Element > "u" ? u.any : function(t, r, o, i, e, n) {
|
|
211
|
+
var s = t[r];
|
|
212
|
+
return u.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(t, r, o, i, e, n);
|
|
213
|
+
}
|
|
214
|
+
}),
|
|
215
|
+
/**
|
|
216
|
+
* A `function` child can be used instead of a React element. This function is
|
|
217
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
218
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
219
|
+
* specific props to a component.
|
|
220
|
+
*
|
|
221
|
+
* ```jsx
|
|
222
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
223
|
+
* {state => (
|
|
224
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
225
|
+
* )}
|
|
226
|
+
* </Transition>
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
children: u.oneOfType([u.func.isRequired, u.element.isRequired]).isRequired,
|
|
230
|
+
/**
|
|
231
|
+
* Show the component; triggers the enter or exit states
|
|
232
|
+
*/
|
|
233
|
+
in: u.bool,
|
|
234
|
+
/**
|
|
235
|
+
* By default the child component is mounted immediately along with
|
|
236
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
237
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
238
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
239
|
+
*/
|
|
240
|
+
mountOnEnter: u.bool,
|
|
241
|
+
/**
|
|
242
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
243
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
244
|
+
*/
|
|
245
|
+
unmountOnExit: u.bool,
|
|
246
|
+
/**
|
|
247
|
+
* By default the child component does not perform the enter transition when
|
|
248
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
249
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
250
|
+
*
|
|
251
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
252
|
+
* > only adds an additional enter transition. However, in the
|
|
253
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
254
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
255
|
+
* > differently.
|
|
256
|
+
*/
|
|
257
|
+
appear: u.bool,
|
|
258
|
+
/**
|
|
259
|
+
* Enable or disable enter transitions.
|
|
260
|
+
*/
|
|
261
|
+
enter: u.bool,
|
|
262
|
+
/**
|
|
263
|
+
* Enable or disable exit transitions.
|
|
264
|
+
*/
|
|
265
|
+
exit: u.bool,
|
|
266
|
+
/**
|
|
267
|
+
* The duration of the transition, in milliseconds.
|
|
268
|
+
* Required unless `addEndListener` is provided.
|
|
269
|
+
*
|
|
270
|
+
* You may specify a single timeout for all transitions:
|
|
271
|
+
*
|
|
272
|
+
* ```jsx
|
|
273
|
+
* timeout={500}
|
|
274
|
+
* ```
|
|
275
|
+
*
|
|
276
|
+
* or individually:
|
|
277
|
+
*
|
|
278
|
+
* ```jsx
|
|
279
|
+
* timeout={{
|
|
280
|
+
* appear: 500,
|
|
281
|
+
* enter: 300,
|
|
282
|
+
* exit: 500,
|
|
283
|
+
* }}
|
|
284
|
+
* ```
|
|
285
|
+
*
|
|
286
|
+
* - `appear` defaults to the value of `enter`
|
|
287
|
+
* - `enter` defaults to `0`
|
|
288
|
+
* - `exit` defaults to `0`
|
|
289
|
+
*
|
|
290
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
291
|
+
*/
|
|
292
|
+
timeout: function(r) {
|
|
293
|
+
var o = Ot;
|
|
294
|
+
r.addEndListener || (o = o.isRequired);
|
|
295
|
+
for (var i = arguments.length, e = new Array(i > 1 ? i - 1 : 0), n = 1; n < i; n++)
|
|
296
|
+
e[n - 1] = arguments[n];
|
|
297
|
+
return o.apply(void 0, [r].concat(e));
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
301
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
302
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
303
|
+
*
|
|
304
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
305
|
+
*
|
|
306
|
+
* ```jsx
|
|
307
|
+
* addEndListener={(node, done) => {
|
|
308
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
309
|
+
* node.addEventListener('transitionend', done, false);
|
|
310
|
+
* }}
|
|
311
|
+
* ```
|
|
312
|
+
*/
|
|
313
|
+
addEndListener: u.func,
|
|
314
|
+
/**
|
|
315
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
316
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
317
|
+
*
|
|
318
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
319
|
+
*
|
|
320
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
321
|
+
*/
|
|
322
|
+
onEnter: u.func,
|
|
323
|
+
/**
|
|
324
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
325
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
326
|
+
*
|
|
327
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
328
|
+
*
|
|
329
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
330
|
+
*/
|
|
331
|
+
onEntering: u.func,
|
|
332
|
+
/**
|
|
333
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
334
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
335
|
+
*
|
|
336
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
337
|
+
*
|
|
338
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
339
|
+
*/
|
|
340
|
+
onEntered: u.func,
|
|
341
|
+
/**
|
|
342
|
+
* Callback fired before the "exiting" status is applied.
|
|
343
|
+
*
|
|
344
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
345
|
+
*
|
|
346
|
+
* @type Function(node: HtmlElement) -> void
|
|
347
|
+
*/
|
|
348
|
+
onExit: u.func,
|
|
349
|
+
/**
|
|
350
|
+
* Callback fired after the "exiting" status is applied.
|
|
351
|
+
*
|
|
352
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
353
|
+
*
|
|
354
|
+
* @type Function(node: HtmlElement) -> void
|
|
355
|
+
*/
|
|
356
|
+
onExiting: u.func,
|
|
357
|
+
/**
|
|
358
|
+
* Callback fired after the "exited" status is applied.
|
|
359
|
+
*
|
|
360
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
361
|
+
*
|
|
362
|
+
* @type Function(node: HtmlElement) -> void
|
|
363
|
+
*/
|
|
364
|
+
onExited: u.func
|
|
365
|
+
} : {};
|
|
366
|
+
function R() {
|
|
367
|
+
}
|
|
368
|
+
v.defaultProps = {
|
|
369
|
+
in: !1,
|
|
370
|
+
mountOnEnter: !1,
|
|
371
|
+
unmountOnExit: !1,
|
|
372
|
+
appear: !1,
|
|
373
|
+
enter: !0,
|
|
374
|
+
exit: !0,
|
|
375
|
+
onEnter: R,
|
|
376
|
+
onEntering: R,
|
|
377
|
+
onEntered: R,
|
|
378
|
+
onExit: R,
|
|
379
|
+
onExiting: R,
|
|
380
|
+
onExited: R
|
|
381
|
+
};
|
|
382
|
+
v.UNMOUNTED = I;
|
|
383
|
+
v.EXITED = T;
|
|
384
|
+
v.ENTERING = b;
|
|
385
|
+
v.ENTERED = y;
|
|
386
|
+
v.EXITING = U;
|
|
387
|
+
function yt() {
|
|
388
|
+
const t = S.version.split(".");
|
|
389
|
+
return {
|
|
390
|
+
major: +t[0],
|
|
391
|
+
minor: +t[1],
|
|
392
|
+
patch: +t[2]
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function J(t) {
|
|
396
|
+
if (!t || typeof t == "function")
|
|
397
|
+
return null;
|
|
398
|
+
const {
|
|
399
|
+
major: r
|
|
400
|
+
} = yt();
|
|
401
|
+
return r >= 19 ? t.props.ref : t.ref;
|
|
402
|
+
}
|
|
403
|
+
function Ct(t, r, o, i) {
|
|
404
|
+
if (i === void 0 && (i = !0), t) {
|
|
405
|
+
var e = document.createEvent("HTMLEvents");
|
|
406
|
+
e.initEvent(r, o, i), t.dispatchEvent(e);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
function Nt(t) {
|
|
410
|
+
var r = z(t, "transitionDuration") || "", o = r.indexOf("ms") === -1 ? 1e3 : 1;
|
|
411
|
+
return parseFloat(r) * o;
|
|
412
|
+
}
|
|
413
|
+
function Rt(t, r, o) {
|
|
414
|
+
o === void 0 && (o = 5);
|
|
415
|
+
var i = !1, e = setTimeout(function() {
|
|
416
|
+
i || Ct(t, "transitionend", !0);
|
|
417
|
+
}, r + o), n = Y(t, "transitionend", function() {
|
|
418
|
+
i = !0;
|
|
419
|
+
}, {
|
|
420
|
+
once: !0
|
|
421
|
+
});
|
|
422
|
+
return function() {
|
|
423
|
+
clearTimeout(e), n();
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
function St(t, r, o, i) {
|
|
427
|
+
o == null && (o = Nt(t) || 0);
|
|
428
|
+
var e = Rt(t, o, i), n = Y(t, "transitionend", r);
|
|
429
|
+
return function() {
|
|
430
|
+
e(), n();
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
function q(t, r) {
|
|
434
|
+
const o = z(t, r) || "", i = o.indexOf("ms") === -1 ? 1e3 : 1;
|
|
435
|
+
return parseFloat(o) * i;
|
|
436
|
+
}
|
|
437
|
+
function Dt(t, r) {
|
|
438
|
+
const o = q(t, "transitionDuration"), i = q(t, "transitionDelay"), e = St(t, (n) => {
|
|
439
|
+
n.target === t && (e(), r(n));
|
|
440
|
+
}, o + i);
|
|
441
|
+
}
|
|
442
|
+
function Pt(t) {
|
|
443
|
+
t.offsetHeight;
|
|
444
|
+
}
|
|
445
|
+
function wt(t) {
|
|
446
|
+
return t && "setState" in t ? w.findDOMNode(t) : t ?? null;
|
|
447
|
+
}
|
|
448
|
+
const It = /* @__PURE__ */ C.forwardRef(({
|
|
449
|
+
onEnter: t,
|
|
450
|
+
onEntering: r,
|
|
451
|
+
onEntered: o,
|
|
452
|
+
onExit: i,
|
|
453
|
+
onExiting: e,
|
|
454
|
+
onExited: n,
|
|
455
|
+
addEndListener: s,
|
|
456
|
+
children: a,
|
|
457
|
+
childRef: l,
|
|
458
|
+
...c
|
|
459
|
+
}, d) => {
|
|
460
|
+
const f = j(null), E = lt(f, l), m = (N) => {
|
|
461
|
+
E(wt(N));
|
|
462
|
+
}, p = (N) => (_) => {
|
|
463
|
+
N && f.current && N(f.current, _);
|
|
464
|
+
}, x = g(p(t), [t]), O = g(p(r), [r]), D = g(p(o), [o]), P = g(p(i), [i]), M = g(p(e), [e]), et = g(p(n), [n]), rt = g(p(s), [s]);
|
|
465
|
+
return /* @__PURE__ */ h(v, {
|
|
466
|
+
ref: d,
|
|
467
|
+
...c,
|
|
468
|
+
onEnter: x,
|
|
469
|
+
onEntered: D,
|
|
470
|
+
onEntering: O,
|
|
471
|
+
onExit: P,
|
|
472
|
+
onExited: et,
|
|
473
|
+
onExiting: M,
|
|
474
|
+
addEndListener: rt,
|
|
475
|
+
nodeRef: f,
|
|
476
|
+
children: typeof a == "function" ? (N, _) => (
|
|
477
|
+
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
478
|
+
a(N, {
|
|
479
|
+
..._,
|
|
480
|
+
ref: m
|
|
481
|
+
})
|
|
482
|
+
) : /* @__PURE__ */ C.cloneElement(a, {
|
|
483
|
+
ref: m
|
|
484
|
+
})
|
|
485
|
+
});
|
|
486
|
+
}), Mt = {
|
|
487
|
+
[b]: "show",
|
|
488
|
+
[y]: "show"
|
|
489
|
+
}, G = /* @__PURE__ */ S.forwardRef(({
|
|
490
|
+
className: t,
|
|
491
|
+
children: r,
|
|
492
|
+
transitionClasses: o = {},
|
|
493
|
+
onEnter: i,
|
|
494
|
+
...e
|
|
495
|
+
}, n) => {
|
|
496
|
+
const s = {
|
|
497
|
+
in: !1,
|
|
498
|
+
timeout: 300,
|
|
499
|
+
mountOnEnter: !1,
|
|
500
|
+
unmountOnExit: !1,
|
|
501
|
+
appear: !1,
|
|
502
|
+
...e
|
|
503
|
+
}, a = g((l, c) => {
|
|
504
|
+
Pt(l), i == null || i(l, c);
|
|
505
|
+
}, [i]);
|
|
506
|
+
return /* @__PURE__ */ h(It, {
|
|
507
|
+
ref: n,
|
|
508
|
+
addEndListener: Dt,
|
|
509
|
+
...s,
|
|
510
|
+
onEnter: a,
|
|
511
|
+
childRef: J(r),
|
|
512
|
+
children: (l, c) => /* @__PURE__ */ S.cloneElement(r, {
|
|
513
|
+
...c,
|
|
514
|
+
className: V("fade", t, r.props.className, Mt[l], o[l])
|
|
515
|
+
})
|
|
516
|
+
});
|
|
517
|
+
});
|
|
518
|
+
G.displayName = "Fade";
|
|
519
|
+
const H = (t) => !t || typeof t == "function" ? t : (r) => {
|
|
520
|
+
t.current = r;
|
|
521
|
+
};
|
|
522
|
+
function Lt(t, r) {
|
|
523
|
+
const o = H(t), i = H(r);
|
|
524
|
+
return (e) => {
|
|
525
|
+
o && o(e), i && i(e);
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
function kt(t, r) {
|
|
529
|
+
return $(() => Lt(t, r), [t, r]);
|
|
530
|
+
}
|
|
531
|
+
function Q({
|
|
532
|
+
children: t,
|
|
533
|
+
in: r,
|
|
534
|
+
onExited: o,
|
|
535
|
+
mountOnEnter: i,
|
|
536
|
+
unmountOnExit: e
|
|
537
|
+
}) {
|
|
538
|
+
const n = j(null), s = j(r), a = dt(o);
|
|
539
|
+
it(() => {
|
|
540
|
+
r ? s.current = !0 : a(n.current);
|
|
541
|
+
}, [r, a]);
|
|
542
|
+
const l = kt(n, J(t)), c = /* @__PURE__ */ ot(t, {
|
|
543
|
+
ref: l
|
|
544
|
+
});
|
|
545
|
+
return r ? c : e || !s.current && i ? null : c;
|
|
546
|
+
}
|
|
547
|
+
const _t = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"], jt = ["activeKey", "getControlledId", "getControllerId"], $t = ["as"];
|
|
548
|
+
function K(t, r) {
|
|
549
|
+
if (t == null) return {};
|
|
550
|
+
var o = {};
|
|
551
|
+
for (var i in t) if ({}.hasOwnProperty.call(t, i)) {
|
|
552
|
+
if (r.indexOf(i) >= 0) continue;
|
|
553
|
+
o[i] = t[i];
|
|
554
|
+
}
|
|
555
|
+
return o;
|
|
556
|
+
}
|
|
557
|
+
function tt(t) {
|
|
558
|
+
let {
|
|
559
|
+
active: r,
|
|
560
|
+
eventKey: o,
|
|
561
|
+
mountOnEnter: i,
|
|
562
|
+
transition: e,
|
|
563
|
+
unmountOnExit: n,
|
|
564
|
+
role: s = "tabpanel",
|
|
565
|
+
onEnter: a,
|
|
566
|
+
onEntering: l,
|
|
567
|
+
onEntered: c,
|
|
568
|
+
onExit: d,
|
|
569
|
+
onExiting: f,
|
|
570
|
+
onExited: E
|
|
571
|
+
} = t, m = K(t, _t);
|
|
572
|
+
const p = st(k);
|
|
573
|
+
if (!p) return [Object.assign({}, m, {
|
|
574
|
+
role: s
|
|
575
|
+
}), {
|
|
576
|
+
eventKey: o,
|
|
577
|
+
isActive: r,
|
|
578
|
+
mountOnEnter: i,
|
|
579
|
+
transition: e,
|
|
580
|
+
unmountOnExit: n,
|
|
581
|
+
onEnter: a,
|
|
582
|
+
onEntering: l,
|
|
583
|
+
onEntered: c,
|
|
584
|
+
onExit: d,
|
|
585
|
+
onExiting: f,
|
|
586
|
+
onExited: E
|
|
587
|
+
}];
|
|
588
|
+
const {
|
|
589
|
+
activeKey: x,
|
|
590
|
+
getControlledId: O,
|
|
591
|
+
getControllerId: D
|
|
592
|
+
} = p, P = K(p, jt), M = W(o);
|
|
593
|
+
return [Object.assign({}, m, {
|
|
594
|
+
role: s,
|
|
595
|
+
id: O(o),
|
|
596
|
+
"aria-labelledby": D(o)
|
|
597
|
+
}), {
|
|
598
|
+
eventKey: o,
|
|
599
|
+
isActive: r == null && M != null ? W(x) === M : r,
|
|
600
|
+
transition: e || P.transition,
|
|
601
|
+
mountOnEnter: i ?? P.mountOnEnter,
|
|
602
|
+
unmountOnExit: n ?? P.unmountOnExit,
|
|
603
|
+
onEnter: a,
|
|
604
|
+
onEntering: l,
|
|
605
|
+
onEntered: c,
|
|
606
|
+
onExit: d,
|
|
607
|
+
onExiting: f,
|
|
608
|
+
onExited: E
|
|
609
|
+
}];
|
|
610
|
+
}
|
|
611
|
+
const nt = /* @__PURE__ */ S.forwardRef(
|
|
612
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
613
|
+
(t, r) => {
|
|
614
|
+
let {
|
|
615
|
+
as: o = "div"
|
|
616
|
+
} = t, i = K(t, $t);
|
|
617
|
+
const [e, {
|
|
618
|
+
isActive: n,
|
|
619
|
+
onEnter: s,
|
|
620
|
+
onEntering: a,
|
|
621
|
+
onEntered: l,
|
|
622
|
+
onExit: c,
|
|
623
|
+
onExiting: d,
|
|
624
|
+
onExited: f,
|
|
625
|
+
mountOnEnter: E,
|
|
626
|
+
unmountOnExit: m,
|
|
627
|
+
transition: p = Q
|
|
628
|
+
}] = tt(i);
|
|
629
|
+
return /* @__PURE__ */ h(k.Provider, {
|
|
630
|
+
value: null,
|
|
631
|
+
children: /* @__PURE__ */ h(F.Provider, {
|
|
632
|
+
value: null,
|
|
633
|
+
children: /* @__PURE__ */ h(p, {
|
|
634
|
+
in: n,
|
|
635
|
+
onEnter: s,
|
|
636
|
+
onEntering: a,
|
|
637
|
+
onEntered: l,
|
|
638
|
+
onExit: c,
|
|
639
|
+
onExiting: d,
|
|
640
|
+
onExited: f,
|
|
641
|
+
mountOnEnter: E,
|
|
642
|
+
unmountOnExit: m,
|
|
643
|
+
children: /* @__PURE__ */ h(o, Object.assign({}, e, {
|
|
644
|
+
ref: r,
|
|
645
|
+
hidden: !n,
|
|
646
|
+
"aria-hidden": !n
|
|
647
|
+
}))
|
|
648
|
+
})
|
|
649
|
+
})
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
);
|
|
653
|
+
nt.displayName = "TabPanel";
|
|
654
|
+
const At = (t) => {
|
|
655
|
+
const {
|
|
656
|
+
id: r,
|
|
657
|
+
generateChildId: o,
|
|
658
|
+
onSelect: i,
|
|
659
|
+
activeKey: e,
|
|
660
|
+
defaultActiveKey: n,
|
|
661
|
+
transition: s,
|
|
662
|
+
mountOnEnter: a,
|
|
663
|
+
unmountOnExit: l,
|
|
664
|
+
children: c
|
|
665
|
+
} = t, [d, f] = ct(e, n, i), E = ft(r), m = $(() => o || ((x, O) => E ? `${E}-${O}-${x}` : null), [E, o]), p = $(() => ({
|
|
666
|
+
onSelect: f,
|
|
667
|
+
activeKey: d,
|
|
668
|
+
transition: s,
|
|
669
|
+
mountOnEnter: a || !1,
|
|
670
|
+
unmountOnExit: l || !1,
|
|
671
|
+
getControlledId: (x) => m(x, "tabpane"),
|
|
672
|
+
getControllerId: (x) => m(x, "tab")
|
|
673
|
+
}), [f, d, s, a, l, m]);
|
|
674
|
+
return /* @__PURE__ */ h(k.Provider, {
|
|
675
|
+
value: p,
|
|
676
|
+
children: /* @__PURE__ */ h(F.Provider, {
|
|
677
|
+
value: f || null,
|
|
678
|
+
children: c
|
|
679
|
+
})
|
|
680
|
+
});
|
|
681
|
+
};
|
|
682
|
+
At.Panel = nt;
|
|
683
|
+
function Ut(t) {
|
|
684
|
+
return typeof t == "boolean" ? t ? G : Q : t;
|
|
685
|
+
}
|
|
686
|
+
const Kt = /* @__PURE__ */ S.forwardRef(({
|
|
687
|
+
className: t,
|
|
688
|
+
bsPrefix: r,
|
|
689
|
+
as: o = "div",
|
|
690
|
+
...i
|
|
691
|
+
}, e) => (r = Z(r, "tab-content"), /* @__PURE__ */ h(o, {
|
|
692
|
+
ref: e,
|
|
693
|
+
className: V(t, r),
|
|
694
|
+
...i
|
|
695
|
+
})));
|
|
696
|
+
Kt.displayName = "TabContent";
|
|
697
|
+
const Ft = /* @__PURE__ */ S.forwardRef(({
|
|
698
|
+
bsPrefix: t,
|
|
699
|
+
transition: r,
|
|
700
|
+
...o
|
|
701
|
+
}, i) => {
|
|
702
|
+
const [{
|
|
703
|
+
className: e,
|
|
704
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
705
|
+
as: n = "div",
|
|
706
|
+
...s
|
|
707
|
+
}, {
|
|
708
|
+
isActive: a,
|
|
709
|
+
onEnter: l,
|
|
710
|
+
onEntering: c,
|
|
711
|
+
onEntered: d,
|
|
712
|
+
onExit: f,
|
|
713
|
+
onExiting: E,
|
|
714
|
+
onExited: m,
|
|
715
|
+
mountOnEnter: p,
|
|
716
|
+
unmountOnExit: x,
|
|
717
|
+
transition: O = G
|
|
718
|
+
}] = tt({
|
|
719
|
+
...o,
|
|
720
|
+
transition: Ut(r)
|
|
721
|
+
}), D = Z(t, "tab-pane");
|
|
722
|
+
return /* @__PURE__ */ h(k.Provider, {
|
|
723
|
+
value: null,
|
|
724
|
+
children: /* @__PURE__ */ h(F.Provider, {
|
|
725
|
+
value: null,
|
|
726
|
+
children: /* @__PURE__ */ h(O, {
|
|
727
|
+
in: a,
|
|
728
|
+
onEnter: l,
|
|
729
|
+
onEntering: c,
|
|
730
|
+
onEntered: d,
|
|
731
|
+
onExit: f,
|
|
732
|
+
onExiting: E,
|
|
733
|
+
onExited: m,
|
|
734
|
+
mountOnEnter: p,
|
|
735
|
+
unmountOnExit: x,
|
|
736
|
+
children: /* @__PURE__ */ h(n, {
|
|
737
|
+
...s,
|
|
738
|
+
ref: i,
|
|
739
|
+
className: V(e, D, a && "active")
|
|
740
|
+
})
|
|
741
|
+
})
|
|
742
|
+
})
|
|
743
|
+
});
|
|
744
|
+
});
|
|
745
|
+
Ft.displayName = "TabPane";
|
|
746
|
+
export {
|
|
747
|
+
At as T,
|
|
748
|
+
Kt as a,
|
|
749
|
+
Ft as b,
|
|
750
|
+
Ut as g,
|
|
751
|
+
kt as u
|
|
752
|
+
};
|