jcicl 0.0.147 → 0.0.151

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/.chunks/Portal.js CHANGED
@@ -1,260 +1,239 @@
1
- import * as p from "react";
2
- import w from "react";
3
- import { r as lt, m as pt, a as ft } from "./index.js";
4
- import { u as H, _ as dt, c as Et, T as B, d as mt, a as F, s as U } from "./TransitionGroupContext.js";
5
- import { h as ht, P as e, T as xt, i as gt } from "./DefaultPropsProvider.js";
6
- import { T as vt } from "./emotion-styled.browser.esm.js";
7
- import { jsx as $ } from "react/jsx-runtime";
8
- import { c as K } from "./chainPropTypes.js";
9
- import * as Tt from "react-dom";
10
- import I from "react-dom";
11
- function yt(n) {
1
+ import { i as _, P as i, T as L, j as V } from "./DefaultPropsProvider.js";
2
+ import { c as I } from "./chainPropTypes.js";
3
+ import * as c from "react";
4
+ import T from "react";
5
+ import { T as $ } from "./emotion-styled.browser.esm.js";
6
+ import { _ as U, b as j, T as k, u as q, a as D, s as O } from "./TransitionGroupContext.js";
7
+ import * as F from "react-dom";
8
+ import b from "react-dom";
9
+ import { jsx as R } from "react/jsx-runtime";
10
+ function G(n) {
12
11
  return Object.keys(n).length === 0;
13
12
  }
14
- function bt(n = null) {
15
- const s = p.useContext(vt);
16
- return !s || yt(s) ? n : s;
13
+ function H(n = null) {
14
+ const s = c.useContext($);
15
+ return !s || G(s) ? n : s;
17
16
  }
18
- const Nt = ht();
19
- function Dt(n = Nt) {
20
- return bt(n);
17
+ const A = _();
18
+ function X(n = A) {
19
+ return H(n);
21
20
  }
22
- function Rt(n) {
21
+ function W(n) {
23
22
  const {
24
23
  prototype: s = {}
25
24
  } = n;
26
25
  return !!s.isReactComponent;
27
26
  }
28
- function J(n, s, a, r, o) {
29
- const t = n[s], i = o || s;
30
- if (t == null || // When server-side rendering React doesn't warn either.
27
+ function w(n, s, a, o, t) {
28
+ const e = n[s], r = t || s;
29
+ if (e == null || // When server-side rendering React doesn't warn either.
31
30
  // This is not an accurate check for SSR.
32
31
  // This is only in place for Emotion compat.
33
32
  // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
34
33
  typeof window > "u")
35
34
  return null;
36
35
  let u;
37
- const c = t.type;
38
- return typeof c == "function" && !Rt(c) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
36
+ const l = e.type;
37
+ return typeof l == "function" && !W(l) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${o} \`${r}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
39
38
  }
40
- const Q = K(e.element, J);
41
- Q.isRequired = K(e.element.isRequired, J);
42
- const Ot = "exact-prop: ​";
43
- function St(n) {
39
+ const B = I(i.element, w);
40
+ B.isRequired = I(i.element.isRequired, w);
41
+ const z = "exact-prop: ​";
42
+ function J(n) {
44
43
  return process.env.NODE_ENV === "production" ? n : {
45
44
  ...n,
46
- [Ot]: (s) => {
47
- const a = Object.keys(s).filter((r) => !n.hasOwnProperty(r));
48
- return a.length > 0 ? new Error(`The following props are not supported: ${a.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
45
+ [z]: (s) => {
46
+ const a = Object.keys(s).filter((o) => !n.hasOwnProperty(o));
47
+ return a.length > 0 ? new Error(`The following props are not supported: ${a.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
49
48
  }
50
49
  };
51
50
  }
52
- function Pt(n, s, a, r, o) {
51
+ function K(n, s, a, o, t) {
53
52
  if (process.env.NODE_ENV === "production")
54
53
  return null;
55
- const t = n[s], i = o || s;
56
- return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an HTMLElement.`) : null;
54
+ const e = n[s], r = t || s;
55
+ return e == null ? null : e && e.nodeType !== 1 ? new Error(`Invalid ${o} \`${r}\` supplied to \`${a}\`. Expected an HTMLElement.`) : null;
57
56
  }
58
- function Xt(n) {
57
+ function ce(n) {
59
58
  return n && n.ownerDocument || document;
60
59
  }
61
- let q = 0;
62
- function Ct(n) {
63
- const [s, a] = p.useState(n), r = n || s;
64
- return p.useEffect(() => {
65
- s == null && (q += 1, a(`mui-${q}`));
66
- }, [s]), r;
60
+ let S = 0;
61
+ function Q(n) {
62
+ const [s, a] = c.useState(n), o = n || s;
63
+ return c.useEffect(() => {
64
+ s == null && (S += 1, a(`mui-${S}`));
65
+ }, [s]), o;
67
66
  }
68
- const wt = {
69
- ...p
70
- }, W = wt.useId;
71
- function zt(n) {
72
- if (W !== void 0) {
73
- const s = W();
67
+ const Y = {
68
+ ...c
69
+ }, C = Y.useId;
70
+ function pe(n) {
71
+ if (C !== void 0) {
72
+ const s = C();
74
73
  return n ?? s;
75
74
  }
76
- return Ct(n);
75
+ return Q(n);
77
76
  }
78
- function Bt(n) {
79
- var h;
80
- const {
81
- elementType: s,
82
- externalSlotProps: a,
83
- ownerState: r,
84
- skipResolvingSlotProps: o = !1,
85
- ...t
86
- } = n, i = o ? {} : lt(a, r), {
87
- props: u,
88
- internalRef: c
89
- } = pt({
90
- ...t,
91
- externalSlotProps: i
92
- }), f = H(c, i == null ? void 0 : i.ref, (h = n.additionalProps) == null ? void 0 : h.ref);
93
- return ft(s, {
94
- ...u,
95
- ref: f
96
- }, r);
97
- }
98
- function Y(n) {
77
+ function Z(n) {
99
78
  var s;
100
- return parseInt(p.version, 10) >= 19 ? ((s = n == null ? void 0 : n.props) == null ? void 0 : s.ref) || null : (n == null ? void 0 : n.ref) || null;
79
+ return parseInt(c.version, 10) >= 19 ? ((s = n == null ? void 0 : n.props) == null ? void 0 : s.ref) || null : (n == null ? void 0 : n.ref) || null;
101
80
  }
102
- function It() {
103
- const n = Dt(gt);
104
- return process.env.NODE_ENV !== "production" && p.useDebugValue(n), n[xt] || n;
81
+ function fe() {
82
+ const n = X(V);
83
+ return process.env.NODE_ENV !== "production" && c.useDebugValue(n), n[L] || n;
105
84
  }
106
- const X = {
85
+ const P = {
107
86
  disabled: !1
108
87
  };
109
- var _t = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
110
- enter: e.number,
111
- exit: e.number,
112
- appear: e.number
88
+ var ee = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
89
+ enter: i.number,
90
+ exit: i.number,
91
+ appear: i.number
113
92
  }).isRequired]) : null;
114
- process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
115
- enter: e.string,
116
- exit: e.string,
117
- active: e.string
118
- }), e.shape({
119
- enter: e.string,
120
- enterDone: e.string,
121
- enterActive: e.string,
122
- exit: e.string,
123
- exitDone: e.string,
124
- exitActive: e.string
93
+ process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
94
+ enter: i.string,
95
+ exit: i.string,
96
+ active: i.string
97
+ }), i.shape({
98
+ enter: i.string,
99
+ enterDone: i.string,
100
+ enterActive: i.string,
101
+ exit: i.string,
102
+ exitDone: i.string,
103
+ exitActive: i.string
125
104
  })]);
126
- var kt = function(s) {
105
+ var te = function(s) {
127
106
  return s.scrollTop;
128
- }, S = "unmounted", T = "exited", y = "entering", O = "entered", V = "exiting", E = /* @__PURE__ */ function(n) {
129
- dt(s, n);
130
- function s(r, o) {
131
- var t;
132
- t = n.call(this, r, o) || this;
133
- var i = o, u = i && !i.isMounting ? r.enter : r.appear, c;
134
- return t.appearStatus = null, r.in ? u ? (c = T, t.appearStatus = y) : c = O : r.unmountOnExit || r.mountOnEnter ? c = S : c = T, t.state = {
135
- status: c
136
- }, t.nextCallback = null, t;
107
+ }, v = "unmounted", d = "exited", E = "entering", h = "entered", g = "exiting", f = /* @__PURE__ */ function(n) {
108
+ U(s, n);
109
+ function s(o, t) {
110
+ var e;
111
+ e = n.call(this, o, t) || this;
112
+ var r = t, u = r && !r.isMounting ? o.enter : o.appear, l;
113
+ return e.appearStatus = null, o.in ? u ? (l = d, e.appearStatus = E) : l = h : o.unmountOnExit || o.mountOnEnter ? l = v : l = d, e.state = {
114
+ status: l
115
+ }, e.nextCallback = null, e;
137
116
  }
138
- s.getDerivedStateFromProps = function(o, t) {
139
- var i = o.in;
140
- return i && t.status === S ? {
141
- status: T
117
+ s.getDerivedStateFromProps = function(t, e) {
118
+ var r = t.in;
119
+ return r && e.status === v ? {
120
+ status: d
142
121
  } : null;
143
122
  };
144
123
  var a = s.prototype;
145
124
  return a.componentDidMount = function() {
146
125
  this.updateStatus(!0, this.appearStatus);
147
- }, a.componentDidUpdate = function(o) {
148
- var t = null;
149
- if (o !== this.props) {
150
- var i = this.state.status;
151
- this.props.in ? i !== y && i !== O && (t = y) : (i === y || i === O) && (t = V);
126
+ }, a.componentDidUpdate = function(t) {
127
+ var e = null;
128
+ if (t !== this.props) {
129
+ var r = this.state.status;
130
+ this.props.in ? r !== E && r !== h && (e = E) : (r === E || r === h) && (e = g);
152
131
  }
153
- this.updateStatus(!1, t);
132
+ this.updateStatus(!1, e);
154
133
  }, a.componentWillUnmount = function() {
155
134
  this.cancelNextCallback();
156
135
  }, a.getTimeouts = function() {
157
- var o = this.props.timeout, t, i, u;
158
- return t = i = u = o, o != null && typeof o != "number" && (t = o.exit, i = o.enter, u = o.appear !== void 0 ? o.appear : i), {
159
- exit: t,
160
- enter: i,
136
+ var t = this.props.timeout, e, r, u;
137
+ return e = r = u = t, t != null && typeof t != "number" && (e = t.exit, r = t.enter, u = t.appear !== void 0 ? t.appear : r), {
138
+ exit: e,
139
+ enter: r,
161
140
  appear: u
162
141
  };
163
- }, a.updateStatus = function(o, t) {
164
- if (o === void 0 && (o = !1), t !== null)
165
- if (this.cancelNextCallback(), t === y) {
142
+ }, a.updateStatus = function(t, e) {
143
+ if (t === void 0 && (t = !1), e !== null)
144
+ if (this.cancelNextCallback(), e === E) {
166
145
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
167
- var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this);
168
- i && kt(i);
146
+ var r = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
147
+ r && te(r);
169
148
  }
170
- this.performEnter(o);
149
+ this.performEnter(t);
171
150
  } else
172
151
  this.performExit();
173
- else this.props.unmountOnExit && this.state.status === T && this.setState({
174
- status: S
152
+ else this.props.unmountOnExit && this.state.status === d && this.setState({
153
+ status: v
175
154
  });
176
- }, a.performEnter = function(o) {
177
- var t = this, i = this.props.enter, u = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [u] : [I.findDOMNode(this), u], f = c[0], m = c[1], h = this.getTimeouts(), _ = u ? h.appear : h.enter;
178
- if (!o && !i || X.disabled) {
155
+ }, a.performEnter = function(t) {
156
+ var e = this, r = this.props.enter, u = this.context ? this.context.isMounting : t, l = this.props.nodeRef ? [u] : [b.findDOMNode(this), u], p = l[0], x = l[1], y = this.getTimeouts(), M = u ? y.appear : y.enter;
157
+ if (!t && !r || P.disabled) {
179
158
  this.safeSetState({
180
- status: O
159
+ status: h
181
160
  }, function() {
182
- t.props.onEntered(f);
161
+ e.props.onEntered(p);
183
162
  });
184
163
  return;
185
164
  }
186
- this.props.onEnter(f, m), this.safeSetState({
187
- status: y
165
+ this.props.onEnter(p, x), this.safeSetState({
166
+ status: E
188
167
  }, function() {
189
- t.props.onEntering(f, m), t.onTransitionEnd(_, function() {
190
- t.safeSetState({
191
- status: O
168
+ e.props.onEntering(p, x), e.onTransitionEnd(M, function() {
169
+ e.safeSetState({
170
+ status: h
192
171
  }, function() {
193
- t.props.onEntered(f, m);
172
+ e.props.onEntered(p, x);
194
173
  });
195
174
  });
196
175
  });
197
176
  }, a.performExit = function() {
198
- var o = this, t = this.props.exit, i = this.getTimeouts(), u = this.props.nodeRef ? void 0 : I.findDOMNode(this);
199
- if (!t || X.disabled) {
177
+ var t = this, e = this.props.exit, r = this.getTimeouts(), u = this.props.nodeRef ? void 0 : b.findDOMNode(this);
178
+ if (!e || P.disabled) {
200
179
  this.safeSetState({
201
- status: T
180
+ status: d
202
181
  }, function() {
203
- o.props.onExited(u);
182
+ t.props.onExited(u);
204
183
  });
205
184
  return;
206
185
  }
207
186
  this.props.onExit(u), this.safeSetState({
208
- status: V
187
+ status: g
209
188
  }, function() {
210
- o.props.onExiting(u), o.onTransitionEnd(i.exit, function() {
211
- o.safeSetState({
212
- status: T
189
+ t.props.onExiting(u), t.onTransitionEnd(r.exit, function() {
190
+ t.safeSetState({
191
+ status: d
213
192
  }, function() {
214
- o.props.onExited(u);
193
+ t.props.onExited(u);
215
194
  });
216
195
  });
217
196
  });
218
197
  }, a.cancelNextCallback = function() {
219
198
  this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
220
- }, a.safeSetState = function(o, t) {
221
- t = this.setNextCallback(t), this.setState(o, t);
222
- }, a.setNextCallback = function(o) {
223
- var t = this, i = !0;
199
+ }, a.safeSetState = function(t, e) {
200
+ e = this.setNextCallback(e), this.setState(t, e);
201
+ }, a.setNextCallback = function(t) {
202
+ var e = this, r = !0;
224
203
  return this.nextCallback = function(u) {
225
- i && (i = !1, t.nextCallback = null, o(u));
204
+ r && (r = !1, e.nextCallback = null, t(u));
226
205
  }, this.nextCallback.cancel = function() {
227
- i = !1;
206
+ r = !1;
228
207
  }, this.nextCallback;
229
- }, a.onTransitionEnd = function(o, t) {
230
- this.setNextCallback(t);
231
- var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this), u = o == null && !this.props.addEndListener;
232
- if (!i || u) {
208
+ }, a.onTransitionEnd = function(t, e) {
209
+ this.setNextCallback(e);
210
+ var r = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), u = t == null && !this.props.addEndListener;
211
+ if (!r || u) {
233
212
  setTimeout(this.nextCallback, 0);
234
213
  return;
235
214
  }
236
215
  if (this.props.addEndListener) {
237
- var c = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], f = c[0], m = c[1];
238
- this.props.addEndListener(f, m);
216
+ var l = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback], p = l[0], x = l[1];
217
+ this.props.addEndListener(p, x);
239
218
  }
240
- o != null && setTimeout(this.nextCallback, o);
219
+ t != null && setTimeout(this.nextCallback, t);
241
220
  }, a.render = function() {
242
- var o = this.state.status;
243
- if (o === S)
221
+ var t = this.state.status;
222
+ if (t === v)
244
223
  return null;
245
- var t = this.props, i = t.children;
246
- t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
247
- var u = Et(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
224
+ var e = this.props, r = e.children;
225
+ e.in, e.mountOnEnter, e.unmountOnExit, e.appear, e.enter, e.exit, e.timeout, e.addEndListener, e.onEnter, e.onEntering, e.onEntered, e.onExit, e.onExiting, e.onExited, e.nodeRef;
226
+ var u = j(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
248
227
  return (
249
228
  // allows for nested Transitions
250
- /* @__PURE__ */ w.createElement(B.Provider, {
229
+ /* @__PURE__ */ T.createElement(k.Provider, {
251
230
  value: null
252
- }, typeof i == "function" ? i(o, u) : w.cloneElement(w.Children.only(i), u))
231
+ }, typeof r == "function" ? r(t, u) : T.cloneElement(T.Children.only(r), u))
253
232
  );
254
233
  }, s;
255
- }(w.Component);
256
- E.contextType = B;
257
- E.propTypes = process.env.NODE_ENV !== "production" ? {
234
+ }(T.Component);
235
+ f.contextType = k;
236
+ f.propTypes = process.env.NODE_ENV !== "production" ? {
258
237
  /**
259
238
  * A React reference to DOM element that need to transition:
260
239
  * https://stackoverflow.com/a/51127130/4671932
@@ -266,10 +245,10 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
266
245
  * (see
267
246
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
268
247
  */
269
- nodeRef: e.shape({
270
- current: typeof Element > "u" ? e.any : function(n, s, a, r, o, t) {
271
- var i = n[s];
272
- return e.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(n, s, a, r, o, t);
248
+ nodeRef: i.shape({
249
+ current: typeof Element > "u" ? i.any : function(n, s, a, o, t, e) {
250
+ var r = n[s];
251
+ return i.instanceOf(r && "ownerDocument" in r ? r.ownerDocument.defaultView.Element : Element)(n, s, a, o, t, e);
273
252
  }
274
253
  }),
275
254
  /**
@@ -286,23 +265,23 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
286
265
  * </Transition>
287
266
  * ```
288
267
  */
289
- children: e.oneOfType([e.func.isRequired, e.element.isRequired]).isRequired,
268
+ children: i.oneOfType([i.func.isRequired, i.element.isRequired]).isRequired,
290
269
  /**
291
270
  * Show the component; triggers the enter or exit states
292
271
  */
293
- in: e.bool,
272
+ in: i.bool,
294
273
  /**
295
274
  * By default the child component is mounted immediately along with
296
275
  * the parent `Transition` component. If you want to "lazy mount" the component on the
297
276
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
298
277
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
299
278
  */
300
- mountOnEnter: e.bool,
279
+ mountOnEnter: i.bool,
301
280
  /**
302
281
  * By default the child component stays mounted after it reaches the `'exited'` state.
303
282
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
304
283
  */
305
- unmountOnExit: e.bool,
284
+ unmountOnExit: i.bool,
306
285
  /**
307
286
  * By default the child component does not perform the enter transition when
308
287
  * it first mounts, regardless of the value of `in`. If you want this
@@ -314,15 +293,15 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
314
293
  * > additional `.appear-*` classes, that way you can choose to style it
315
294
  * > differently.
316
295
  */
317
- appear: e.bool,
296
+ appear: i.bool,
318
297
  /**
319
298
  * Enable or disable enter transitions.
320
299
  */
321
- enter: e.bool,
300
+ enter: i.bool,
322
301
  /**
323
302
  * Enable or disable exit transitions.
324
303
  */
325
- exit: e.bool,
304
+ exit: i.bool,
326
305
  /**
327
306
  * The duration of the transition, in milliseconds.
328
307
  * Required unless `addEndListener` is provided.
@@ -350,11 +329,11 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
350
329
  * @type {number | { enter?: number, exit?: number, appear?: number }}
351
330
  */
352
331
  timeout: function(s) {
353
- var a = _t;
332
+ var a = ee;
354
333
  s.addEndListener || (a = a.isRequired);
355
- for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
356
- o[t - 1] = arguments[t];
357
- return a.apply(void 0, [s].concat(o));
334
+ for (var o = arguments.length, t = new Array(o > 1 ? o - 1 : 0), e = 1; e < o; e++)
335
+ t[e - 1] = arguments[e];
336
+ return a.apply(void 0, [s].concat(t));
358
337
  },
359
338
  /**
360
339
  * Add a custom transition end trigger. Called with the transitioning
@@ -370,7 +349,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
370
349
  * }}
371
350
  * ```
372
351
  */
373
- addEndListener: e.func,
352
+ addEndListener: i.func,
374
353
  /**
375
354
  * Callback fired before the "entering" status is applied. An extra parameter
376
355
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -379,7 +358,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
379
358
  *
380
359
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
381
360
  */
382
- onEnter: e.func,
361
+ onEnter: i.func,
383
362
  /**
384
363
  * Callback fired after the "entering" status is applied. An extra parameter
385
364
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -388,7 +367,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
388
367
  *
389
368
  * @type Function(node: HtmlElement, isAppearing: bool)
390
369
  */
391
- onEntering: e.func,
370
+ onEntering: i.func,
392
371
  /**
393
372
  * Callback fired after the "entered" status is applied. An extra parameter
394
373
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -397,7 +376,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
397
376
  *
398
377
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
399
378
  */
400
- onEntered: e.func,
379
+ onEntered: i.func,
401
380
  /**
402
381
  * Callback fired before the "exiting" status is applied.
403
382
  *
@@ -405,7 +384,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
405
384
  *
406
385
  * @type Function(node: HtmlElement) -> void
407
386
  */
408
- onExit: e.func,
387
+ onExit: i.func,
409
388
  /**
410
389
  * Callback fired after the "exiting" status is applied.
411
390
  *
@@ -413,7 +392,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
413
392
  *
414
393
  * @type Function(node: HtmlElement) -> void
415
394
  */
416
- onExiting: e.func,
395
+ onExiting: i.func,
417
396
  /**
418
397
  * Callback fired after the "exited" status is applied.
419
398
  *
@@ -421,257 +400,74 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
421
400
  *
422
401
  * @type Function(node: HtmlElement) -> void
423
402
  */
424
- onExited: e.func
403
+ onExited: i.func
425
404
  } : {};
426
- function R() {
405
+ function m() {
427
406
  }
428
- E.defaultProps = {
407
+ f.defaultProps = {
429
408
  in: !1,
430
409
  mountOnEnter: !1,
431
410
  unmountOnExit: !1,
432
411
  appear: !1,
433
412
  enter: !0,
434
413
  exit: !0,
435
- onEnter: R,
436
- onEntering: R,
437
- onEntered: R,
438
- onExit: R,
439
- onExiting: R,
440
- onExited: R
414
+ onEnter: m,
415
+ onEntering: m,
416
+ onEntered: m,
417
+ onExit: m,
418
+ onExiting: m,
419
+ onExited: m
441
420
  };
442
- E.UNMOUNTED = S;
443
- E.EXITED = T;
444
- E.ENTERING = y;
445
- E.ENTERED = O;
446
- E.EXITING = V;
447
- const Lt = (n) => n.scrollTop;
448
- function z(n, s) {
421
+ f.UNMOUNTED = v;
422
+ f.EXITED = d;
423
+ f.ENTERING = E;
424
+ f.ENTERED = h;
425
+ f.EXITING = g;
426
+ const de = (n) => n.scrollTop;
427
+ function Ee(n, s) {
449
428
  const {
450
429
  timeout: a,
451
- easing: r,
452
- style: o = {}
430
+ easing: o,
431
+ style: t = {}
453
432
  } = n;
454
433
  return {
455
- duration: o.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
456
- easing: o.transitionTimingFunction ?? (typeof r == "object" ? r[s.mode] : r),
457
- delay: o.transitionDelay
434
+ duration: t.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
435
+ easing: t.transitionTimingFunction ?? (typeof o == "object" ? o[s.mode] : o),
436
+ delay: t.transitionDelay
458
437
  };
459
438
  }
460
- function A(n) {
461
- return `scale(${n}, ${n ** 2})`;
462
- }
463
- const Mt = {
464
- entering: {
465
- opacity: 1,
466
- transform: A(1)
467
- },
468
- entered: {
469
- opacity: 1,
470
- transform: "none"
471
- }
472
- }, M = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), j = /* @__PURE__ */ p.forwardRef(function(s, a) {
473
- const {
474
- addEndListener: r,
475
- appear: o = !0,
476
- children: t,
477
- easing: i,
478
- in: u,
479
- onEnter: c,
480
- onEntered: f,
481
- onEntering: m,
482
- onExit: h,
483
- onExited: _,
484
- onExiting: Z,
485
- style: k,
486
- timeout: v = "auto",
487
- // eslint-disable-next-line react/prop-types
488
- TransitionComponent: tt = E,
489
- ...et
490
- } = s, nt = mt(), L = p.useRef(), b = It(), P = p.useRef(null), ot = H(P, Y(t), a), N = (l) => (x) => {
491
- if (l) {
492
- const g = P.current;
493
- x === void 0 ? l(g) : l(g, x);
494
- }
495
- }, it = N(m), rt = N((l, x) => {
496
- Lt(l);
497
- const {
498
- duration: g,
499
- delay: C,
500
- easing: d
501
- } = z({
502
- style: k,
503
- timeout: v,
504
- easing: i
505
- }, {
506
- mode: "enter"
507
- });
508
- let D;
509
- v === "auto" ? (D = b.transitions.getAutoHeightDuration(l.clientHeight), L.current = D) : D = g, l.style.transition = [b.transitions.create("opacity", {
510
- duration: D,
511
- delay: C
512
- }), b.transitions.create("transform", {
513
- duration: M ? D : D * 0.666,
514
- delay: C,
515
- easing: d
516
- })].join(","), c && c(l, x);
517
- }), st = N(f), at = N(Z), ut = N((l) => {
518
- const {
519
- duration: x,
520
- delay: g,
521
- easing: C
522
- } = z({
523
- style: k,
524
- timeout: v,
525
- easing: i
526
- }, {
527
- mode: "exit"
528
- });
529
- let d;
530
- v === "auto" ? (d = b.transitions.getAutoHeightDuration(l.clientHeight), L.current = d) : d = x, l.style.transition = [b.transitions.create("opacity", {
531
- duration: d,
532
- delay: g
533
- }), b.transitions.create("transform", {
534
- duration: M ? d : d * 0.666,
535
- delay: M ? g : g || d * 0.333,
536
- easing: C
537
- })].join(","), l.style.opacity = 0, l.style.transform = A(0.75), h && h(l);
538
- }), ct = N(_);
539
- return /* @__PURE__ */ $(tt, {
540
- appear: o,
541
- in: u,
542
- nodeRef: P,
543
- onEnter: rt,
544
- onEntered: st,
545
- onEntering: it,
546
- onExit: ut,
547
- onExited: ct,
548
- onExiting: at,
549
- addEndListener: (l) => {
550
- v === "auto" && nt.start(L.current || 0, l), r && r(P.current, l);
551
- },
552
- timeout: v === "auto" ? null : v,
553
- ...et,
554
- children: (l, x) => /* @__PURE__ */ p.cloneElement(t, {
555
- style: {
556
- opacity: 0,
557
- transform: A(0.75),
558
- visibility: l === "exited" && !u ? "hidden" : void 0,
559
- ...Mt[l],
560
- ...k,
561
- ...t.props.style
562
- },
563
- ref: ot,
564
- ...x
565
- })
566
- });
567
- });
568
- process.env.NODE_ENV !== "production" && (j.propTypes = {
569
- // ┌────────────────────────────── Warning ──────────────────────────────┐
570
- // │ These PropTypes are generated from the TypeScript type definitions. │
571
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
572
- // └─────────────────────────────────────────────────────────────────────┘
573
- /**
574
- * Add a custom transition end trigger. Called with the transitioning DOM
575
- * node and a done callback. Allows for more fine grained transition end
576
- * logic. Note: Timeouts are still used as a fallback if provided.
577
- */
578
- addEndListener: e.func,
579
- /**
580
- * Perform the enter transition when it first mounts if `in` is also `true`.
581
- * Set this to `false` to disable this behavior.
582
- * @default true
583
- */
584
- appear: e.bool,
585
- /**
586
- * A single child content element.
587
- */
588
- children: Q.isRequired,
589
- /**
590
- * The transition timing function.
591
- * You may specify a single easing or a object containing enter and exit values.
592
- */
593
- easing: e.oneOfType([e.shape({
594
- enter: e.string,
595
- exit: e.string
596
- }), e.string]),
597
- /**
598
- * If `true`, the component will transition in.
599
- */
600
- in: e.bool,
601
- /**
602
- * @ignore
603
- */
604
- onEnter: e.func,
605
- /**
606
- * @ignore
607
- */
608
- onEntered: e.func,
609
- /**
610
- * @ignore
611
- */
612
- onEntering: e.func,
613
- /**
614
- * @ignore
615
- */
616
- onExit: e.func,
617
- /**
618
- * @ignore
619
- */
620
- onExited: e.func,
621
- /**
622
- * @ignore
623
- */
624
- onExiting: e.func,
625
- /**
626
- * @ignore
627
- */
628
- style: e.object,
629
- /**
630
- * The duration for the transition, in milliseconds.
631
- * You may specify a single timeout for all transitions, or individually with an object.
632
- *
633
- * Set to 'auto' to automatically calculate transition time based on height.
634
- * @default 'auto'
635
- */
636
- timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
637
- appear: e.number,
638
- enter: e.number,
639
- exit: e.number
640
- })])
641
- });
642
- j && (j.muiSupportAuto = !0);
643
- function $t(n) {
439
+ function ne(n) {
644
440
  return typeof n == "function" ? n() : n;
645
441
  }
646
- const G = /* @__PURE__ */ p.forwardRef(function(s, a) {
442
+ const N = /* @__PURE__ */ c.forwardRef(function(s, a) {
647
443
  const {
648
- children: r,
649
- container: o,
650
- disablePortal: t = !1
651
- } = s, [i, u] = p.useState(null), c = H(/* @__PURE__ */ p.isValidElement(r) ? Y(r) : null, a);
652
- if (F(() => {
653
- t || u($t(o) || document.body);
654
- }, [o, t]), F(() => {
655
- if (i && !t)
656
- return U(a, i), () => {
657
- U(a, null);
444
+ children: o,
445
+ container: t,
446
+ disablePortal: e = !1
447
+ } = s, [r, u] = c.useState(null), l = q(/* @__PURE__ */ c.isValidElement(o) ? Z(o) : null, a);
448
+ if (D(() => {
449
+ e || u(ne(t) || document.body);
450
+ }, [t, e]), D(() => {
451
+ if (r && !e)
452
+ return O(a, r), () => {
453
+ O(a, null);
658
454
  };
659
- }, [a, i, t]), t) {
660
- if (/* @__PURE__ */ p.isValidElement(r)) {
661
- const f = {
662
- ref: c
455
+ }, [a, r, e]), e) {
456
+ if (/* @__PURE__ */ c.isValidElement(o)) {
457
+ const p = {
458
+ ref: l
663
459
  };
664
- return /* @__PURE__ */ p.cloneElement(r, f);
460
+ return /* @__PURE__ */ c.cloneElement(o, p);
665
461
  }
666
- return /* @__PURE__ */ $(p.Fragment, {
667
- children: r
462
+ return /* @__PURE__ */ R(c.Fragment, {
463
+ children: o
668
464
  });
669
465
  }
670
- return /* @__PURE__ */ $(p.Fragment, {
671
- children: i && /* @__PURE__ */ Tt.createPortal(r, i)
466
+ return /* @__PURE__ */ R(c.Fragment, {
467
+ children: r && /* @__PURE__ */ F.createPortal(o, r)
672
468
  });
673
469
  });
674
- process.env.NODE_ENV !== "production" && (G.propTypes = {
470
+ process.env.NODE_ENV !== "production" && (N.propTypes = {
675
471
  // ┌────────────────────────────── Warning ──────────────────────────────┐
676
472
  // │ These PropTypes are generated from the TypeScript type definitions. │
677
473
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -679,7 +475,7 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
679
475
  /**
680
476
  * The children to render into the `container`.
681
477
  */
682
- children: e.node,
478
+ children: i.node,
683
479
  /**
684
480
  * An HTML element or function that returns one.
685
481
  * The `container` will have the portal children appended to it.
@@ -690,28 +486,26 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
690
486
  * By default, it uses the body of the top-level document object,
691
487
  * so it's simply `document.body` most of the time.
692
488
  */
693
- container: e.oneOfType([Pt, e.func]),
489
+ container: i.oneOfType([K, i.func]),
694
490
  /**
695
491
  * The `children` will be under the DOM hierarchy of the parent component.
696
492
  * @default false
697
493
  */
698
- disablePortal: e.bool
494
+ disablePortal: i.bool
699
495
  });
700
- process.env.NODE_ENV !== "production" && (G.propTypes = St(G.propTypes));
496
+ process.env.NODE_ENV !== "production" && (N.propTypes = J(N.propTypes));
701
497
  export {
702
- j as G,
703
- Pt as H,
704
- G as P,
705
- E as T,
706
- It as a,
707
- z as b,
708
- Bt as c,
709
- zt as d,
710
- Q as e,
711
- Dt as f,
712
- Y as g,
713
- St as h,
714
- Xt as o,
715
- Lt as r,
716
- bt as u
498
+ K as H,
499
+ N as P,
500
+ f as T,
501
+ Ee as a,
502
+ pe as b,
503
+ H as c,
504
+ J as d,
505
+ B as e,
506
+ X as f,
507
+ Z as g,
508
+ ce as o,
509
+ de as r,
510
+ fe as u
717
511
  };