jcicl 0.0.143 → 0.0.145

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