jcicl 0.0.151 → 0.0.155

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,239 +1,260 @@
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) {
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) {
11
12
  return Object.keys(n).length === 0;
12
13
  }
13
- function H(n = null) {
14
- const s = c.useContext($);
15
- return !s || G(s) ? n : s;
14
+ function bt(n = null) {
15
+ const s = p.useContext(vt);
16
+ return !s || yt(s) ? n : s;
16
17
  }
17
- const A = _();
18
- function X(n = A) {
19
- return H(n);
18
+ const Nt = ht();
19
+ function Dt(n = Nt) {
20
+ return bt(n);
20
21
  }
21
- function W(n) {
22
+ function Rt(n) {
22
23
  const {
23
24
  prototype: s = {}
24
25
  } = n;
25
26
  return !!s.isReactComponent;
26
27
  }
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.
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.
30
31
  // This is not an accurate check for SSR.
31
32
  // This is only in place for Emotion compat.
32
33
  // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
33
34
  typeof window > "u")
34
35
  return null;
35
36
  let u;
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;
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;
38
39
  }
39
- const B = I(i.element, w);
40
- B.isRequired = I(i.element.isRequired, w);
41
- const z = "exact-prop: ​";
42
- function J(n) {
40
+ const Q = K(e.element, J);
41
+ Q.isRequired = K(e.element.isRequired, J);
42
+ const Ot = "exact-prop: ​";
43
+ function St(n) {
43
44
  return process.env.NODE_ENV === "production" ? n : {
44
45
  ...n,
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;
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;
48
49
  }
49
50
  };
50
51
  }
51
- function K(n, s, a, o, t) {
52
+ function Pt(n, s, a, r, o) {
52
53
  if (process.env.NODE_ENV === "production")
53
54
  return 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;
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;
56
57
  }
57
- function ce(n) {
58
+ function Xt(n) {
58
59
  return n && n.ownerDocument || document;
59
60
  }
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;
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;
66
67
  }
67
- const Y = {
68
- ...c
69
- }, C = Y.useId;
70
- function pe(n) {
71
- if (C !== void 0) {
72
- const s = C();
68
+ const wt = {
69
+ ...p
70
+ }, W = wt.useId;
71
+ function zt(n) {
72
+ if (W !== void 0) {
73
+ const s = W();
73
74
  return n ?? s;
74
75
  }
75
- return Q(n);
76
+ return Ct(n);
76
77
  }
77
- function Z(n) {
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) {
78
99
  var s;
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;
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;
80
101
  }
81
- function fe() {
82
- const n = X(V);
83
- return process.env.NODE_ENV !== "production" && c.useDebugValue(n), n[L] || n;
102
+ function It() {
103
+ const n = Dt(gt);
104
+ return process.env.NODE_ENV !== "production" && p.useDebugValue(n), n[xt] || n;
84
105
  }
85
- const P = {
106
+ const X = {
86
107
  disabled: !1
87
108
  };
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
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
92
113
  }).isRequired]) : null;
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
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
104
125
  })]);
105
- var te = function(s) {
126
+ var kt = function(s) {
106
127
  return s.scrollTop;
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;
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;
116
137
  }
117
- s.getDerivedStateFromProps = function(t, e) {
118
- var r = t.in;
119
- return r && e.status === v ? {
120
- status: d
138
+ s.getDerivedStateFromProps = function(o, t) {
139
+ var i = o.in;
140
+ return i && t.status === S ? {
141
+ status: T
121
142
  } : null;
122
143
  };
123
144
  var a = s.prototype;
124
145
  return a.componentDidMount = function() {
125
146
  this.updateStatus(!0, this.appearStatus);
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);
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);
131
152
  }
132
- this.updateStatus(!1, e);
153
+ this.updateStatus(!1, t);
133
154
  }, a.componentWillUnmount = function() {
134
155
  this.cancelNextCallback();
135
156
  }, a.getTimeouts = function() {
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,
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,
140
161
  appear: u
141
162
  };
142
- }, a.updateStatus = function(t, e) {
143
- if (t === void 0 && (t = !1), e !== null)
144
- if (this.cancelNextCallback(), e === E) {
163
+ }, a.updateStatus = function(o, t) {
164
+ if (o === void 0 && (o = !1), t !== null)
165
+ if (this.cancelNextCallback(), t === y) {
145
166
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
146
- var r = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
147
- r && te(r);
167
+ var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this);
168
+ i && kt(i);
148
169
  }
149
- this.performEnter(t);
170
+ this.performEnter(o);
150
171
  } else
151
172
  this.performExit();
152
- else this.props.unmountOnExit && this.state.status === d && this.setState({
153
- status: v
173
+ else this.props.unmountOnExit && this.state.status === T && this.setState({
174
+ status: S
154
175
  });
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) {
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) {
158
179
  this.safeSetState({
159
- status: h
180
+ status: O
160
181
  }, function() {
161
- e.props.onEntered(p);
182
+ t.props.onEntered(f);
162
183
  });
163
184
  return;
164
185
  }
165
- this.props.onEnter(p, x), this.safeSetState({
166
- status: E
186
+ this.props.onEnter(f, m), this.safeSetState({
187
+ status: y
167
188
  }, function() {
168
- e.props.onEntering(p, x), e.onTransitionEnd(M, function() {
169
- e.safeSetState({
170
- status: h
189
+ t.props.onEntering(f, m), t.onTransitionEnd(_, function() {
190
+ t.safeSetState({
191
+ status: O
171
192
  }, function() {
172
- e.props.onEntered(p, x);
193
+ t.props.onEntered(f, m);
173
194
  });
174
195
  });
175
196
  });
176
197
  }, a.performExit = function() {
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) {
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) {
179
200
  this.safeSetState({
180
- status: d
201
+ status: T
181
202
  }, function() {
182
- t.props.onExited(u);
203
+ o.props.onExited(u);
183
204
  });
184
205
  return;
185
206
  }
186
207
  this.props.onExit(u), this.safeSetState({
187
- status: g
208
+ status: V
188
209
  }, function() {
189
- t.props.onExiting(u), t.onTransitionEnd(r.exit, function() {
190
- t.safeSetState({
191
- status: d
210
+ o.props.onExiting(u), o.onTransitionEnd(i.exit, function() {
211
+ o.safeSetState({
212
+ status: T
192
213
  }, function() {
193
- t.props.onExited(u);
214
+ o.props.onExited(u);
194
215
  });
195
216
  });
196
217
  });
197
218
  }, a.cancelNextCallback = function() {
198
219
  this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
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;
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;
203
224
  return this.nextCallback = function(u) {
204
- r && (r = !1, e.nextCallback = null, t(u));
225
+ i && (i = !1, t.nextCallback = null, o(u));
205
226
  }, this.nextCallback.cancel = function() {
206
- r = !1;
227
+ i = !1;
207
228
  }, this.nextCallback;
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) {
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) {
212
233
  setTimeout(this.nextCallback, 0);
213
234
  return;
214
235
  }
215
236
  if (this.props.addEndListener) {
216
- var l = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback], p = l[0], x = l[1];
217
- this.props.addEndListener(p, x);
237
+ var c = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], f = c[0], m = c[1];
238
+ this.props.addEndListener(f, m);
218
239
  }
219
- t != null && setTimeout(this.nextCallback, t);
240
+ o != null && setTimeout(this.nextCallback, o);
220
241
  }, a.render = function() {
221
- var t = this.state.status;
222
- if (t === v)
242
+ var o = this.state.status;
243
+ if (o === S)
223
244
  return null;
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"]);
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"]);
227
248
  return (
228
249
  // allows for nested Transitions
229
- /* @__PURE__ */ T.createElement(k.Provider, {
250
+ /* @__PURE__ */ w.createElement(B.Provider, {
230
251
  value: null
231
- }, typeof r == "function" ? r(t, u) : T.cloneElement(T.Children.only(r), u))
252
+ }, typeof i == "function" ? i(o, u) : w.cloneElement(w.Children.only(i), u))
232
253
  );
233
254
  }, s;
234
- }(T.Component);
235
- f.contextType = k;
236
- f.propTypes = process.env.NODE_ENV !== "production" ? {
255
+ }(w.Component);
256
+ E.contextType = B;
257
+ E.propTypes = process.env.NODE_ENV !== "production" ? {
237
258
  /**
238
259
  * A React reference to DOM element that need to transition:
239
260
  * https://stackoverflow.com/a/51127130/4671932
@@ -245,10 +266,10 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
245
266
  * (see
246
267
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
247
268
  */
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);
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);
252
273
  }
253
274
  }),
254
275
  /**
@@ -265,23 +286,23 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
265
286
  * </Transition>
266
287
  * ```
267
288
  */
268
- children: i.oneOfType([i.func.isRequired, i.element.isRequired]).isRequired,
289
+ children: e.oneOfType([e.func.isRequired, e.element.isRequired]).isRequired,
269
290
  /**
270
291
  * Show the component; triggers the enter or exit states
271
292
  */
272
- in: i.bool,
293
+ in: e.bool,
273
294
  /**
274
295
  * By default the child component is mounted immediately along with
275
296
  * the parent `Transition` component. If you want to "lazy mount" the component on the
276
297
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
277
298
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
278
299
  */
279
- mountOnEnter: i.bool,
300
+ mountOnEnter: e.bool,
280
301
  /**
281
302
  * By default the child component stays mounted after it reaches the `'exited'` state.
282
303
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
283
304
  */
284
- unmountOnExit: i.bool,
305
+ unmountOnExit: e.bool,
285
306
  /**
286
307
  * By default the child component does not perform the enter transition when
287
308
  * it first mounts, regardless of the value of `in`. If you want this
@@ -293,15 +314,15 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
293
314
  * > additional `.appear-*` classes, that way you can choose to style it
294
315
  * > differently.
295
316
  */
296
- appear: i.bool,
317
+ appear: e.bool,
297
318
  /**
298
319
  * Enable or disable enter transitions.
299
320
  */
300
- enter: i.bool,
321
+ enter: e.bool,
301
322
  /**
302
323
  * Enable or disable exit transitions.
303
324
  */
304
- exit: i.bool,
325
+ exit: e.bool,
305
326
  /**
306
327
  * The duration of the transition, in milliseconds.
307
328
  * Required unless `addEndListener` is provided.
@@ -329,11 +350,11 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
329
350
  * @type {number | { enter?: number, exit?: number, appear?: number }}
330
351
  */
331
352
  timeout: function(s) {
332
- var a = ee;
353
+ var a = _t;
333
354
  s.addEndListener || (a = a.isRequired);
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));
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));
337
358
  },
338
359
  /**
339
360
  * Add a custom transition end trigger. Called with the transitioning
@@ -349,7 +370,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
349
370
  * }}
350
371
  * ```
351
372
  */
352
- addEndListener: i.func,
373
+ addEndListener: e.func,
353
374
  /**
354
375
  * Callback fired before the "entering" status is applied. An extra parameter
355
376
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -358,7 +379,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
358
379
  *
359
380
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
360
381
  */
361
- onEnter: i.func,
382
+ onEnter: e.func,
362
383
  /**
363
384
  * Callback fired after the "entering" status is applied. An extra parameter
364
385
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -367,7 +388,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
367
388
  *
368
389
  * @type Function(node: HtmlElement, isAppearing: bool)
369
390
  */
370
- onEntering: i.func,
391
+ onEntering: e.func,
371
392
  /**
372
393
  * Callback fired after the "entered" status is applied. An extra parameter
373
394
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -376,7 +397,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
376
397
  *
377
398
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
378
399
  */
379
- onEntered: i.func,
400
+ onEntered: e.func,
380
401
  /**
381
402
  * Callback fired before the "exiting" status is applied.
382
403
  *
@@ -384,7 +405,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
384
405
  *
385
406
  * @type Function(node: HtmlElement) -> void
386
407
  */
387
- onExit: i.func,
408
+ onExit: e.func,
388
409
  /**
389
410
  * Callback fired after the "exiting" status is applied.
390
411
  *
@@ -392,7 +413,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
392
413
  *
393
414
  * @type Function(node: HtmlElement) -> void
394
415
  */
395
- onExiting: i.func,
416
+ onExiting: e.func,
396
417
  /**
397
418
  * Callback fired after the "exited" status is applied.
398
419
  *
@@ -400,74 +421,257 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
400
421
  *
401
422
  * @type Function(node: HtmlElement) -> void
402
423
  */
403
- onExited: i.func
424
+ onExited: e.func
404
425
  } : {};
405
- function m() {
426
+ function R() {
406
427
  }
407
- f.defaultProps = {
428
+ E.defaultProps = {
408
429
  in: !1,
409
430
  mountOnEnter: !1,
410
431
  unmountOnExit: !1,
411
432
  appear: !1,
412
433
  enter: !0,
413
434
  exit: !0,
414
- onEnter: m,
415
- onEntering: m,
416
- onEntered: m,
417
- onExit: m,
418
- onExiting: m,
419
- onExited: m
435
+ onEnter: R,
436
+ onEntering: R,
437
+ onEntered: R,
438
+ onExit: R,
439
+ onExiting: R,
440
+ onExited: R
420
441
  };
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) {
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) {
428
449
  const {
429
450
  timeout: a,
430
- easing: o,
431
- style: t = {}
451
+ easing: r,
452
+ style: o = {}
432
453
  } = n;
433
454
  return {
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
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
437
458
  };
438
459
  }
439
- function ne(n) {
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) {
440
644
  return typeof n == "function" ? n() : n;
441
645
  }
442
- const N = /* @__PURE__ */ c.forwardRef(function(s, a) {
646
+ const G = /* @__PURE__ */ p.forwardRef(function(s, a) {
443
647
  const {
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);
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);
454
658
  };
455
- }, [a, r, e]), e) {
456
- if (/* @__PURE__ */ c.isValidElement(o)) {
457
- const p = {
458
- ref: l
659
+ }, [a, i, t]), t) {
660
+ if (/* @__PURE__ */ p.isValidElement(r)) {
661
+ const f = {
662
+ ref: c
459
663
  };
460
- return /* @__PURE__ */ c.cloneElement(o, p);
664
+ return /* @__PURE__ */ p.cloneElement(r, f);
461
665
  }
462
- return /* @__PURE__ */ R(c.Fragment, {
463
- children: o
666
+ return /* @__PURE__ */ $(p.Fragment, {
667
+ children: r
464
668
  });
465
669
  }
466
- return /* @__PURE__ */ R(c.Fragment, {
467
- children: r && /* @__PURE__ */ F.createPortal(o, r)
670
+ return /* @__PURE__ */ $(p.Fragment, {
671
+ children: i && /* @__PURE__ */ Tt.createPortal(r, i)
468
672
  });
469
673
  });
470
- process.env.NODE_ENV !== "production" && (N.propTypes = {
674
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
471
675
  // ┌────────────────────────────── Warning ──────────────────────────────┐
472
676
  // │ These PropTypes are generated from the TypeScript type definitions. │
473
677
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -475,7 +679,7 @@ process.env.NODE_ENV !== "production" && (N.propTypes = {
475
679
  /**
476
680
  * The children to render into the `container`.
477
681
  */
478
- children: i.node,
682
+ children: e.node,
479
683
  /**
480
684
  * An HTML element or function that returns one.
481
685
  * The `container` will have the portal children appended to it.
@@ -486,26 +690,28 @@ process.env.NODE_ENV !== "production" && (N.propTypes = {
486
690
  * By default, it uses the body of the top-level document object,
487
691
  * so it's simply `document.body` most of the time.
488
692
  */
489
- container: i.oneOfType([K, i.func]),
693
+ container: e.oneOfType([Pt, e.func]),
490
694
  /**
491
695
  * The `children` will be under the DOM hierarchy of the parent component.
492
696
  * @default false
493
697
  */
494
- disablePortal: i.bool
698
+ disablePortal: e.bool
495
699
  });
496
- process.env.NODE_ENV !== "production" && (N.propTypes = J(N.propTypes));
700
+ process.env.NODE_ENV !== "production" && (G.propTypes = St(G.propTypes));
497
701
  export {
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
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
511
717
  };