@notificationapi/react 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/assets/Badge.js +1 -1
  2. package/dist/assets/Box.js +13 -13
  3. package/dist/assets/Button.js +781 -0
  4. package/dist/assets/ButtonBase.js +409 -622
  5. package/dist/assets/DefaultPropsProvider.js +220 -215
  6. package/dist/assets/Divider.js +105 -154
  7. package/dist/assets/Grow.js +201 -0
  8. package/dist/assets/IconButton.js +1 -1
  9. package/dist/assets/List.js +142 -0
  10. package/dist/assets/Modal.js +1094 -0
  11. package/dist/assets/Notification.js +71 -71
  12. package/dist/assets/Paper.js +1 -1
  13. package/dist/assets/Popover.js +8 -6
  14. package/dist/assets/Portal.js +2 -2
  15. package/dist/assets/Stack.js +216 -0
  16. package/dist/assets/Typography.js +193 -117
  17. package/dist/assets/WebPushOptInMessage.js +40 -814
  18. package/dist/assets/createSvgIcon.js +5 -5
  19. package/dist/assets/dividerClasses.js +56 -0
  20. package/dist/assets/index.js +151 -0
  21. package/dist/assets/useTheme2.js +253 -11
  22. package/dist/assets/utils.js +4 -4
  23. package/dist/components/Notifications/Inbox.js +2927 -9
  24. package/dist/components/Notifications/InboxHeader.js +2146 -7
  25. package/dist/components/Notifications/NotificationFeed.js +13 -13
  26. package/dist/components/Notifications/NotificationLauncher.js +2 -2
  27. package/dist/components/Notifications/NotificationPopup.js +7 -7
  28. package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
  29. package/dist/components/Preferences/PreferenceInput.js +1451 -6
  30. package/dist/components/Preferences/Preferences.js +368 -515
  31. package/dist/components/Preferences/index.js +1 -1
  32. package/dist/components/Provider/index.js +226 -202
  33. package/dist/components/Slack/SlackConnect.d.ts +12 -0
  34. package/dist/components/Slack/SlackConnect.js +4826 -0
  35. package/dist/components/Slack/index.d.ts +1 -0
  36. package/dist/components/Slack/index.js +4 -0
  37. package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
  38. package/dist/main.d.ts +1 -0
  39. package/dist/main.js +5 -3
  40. package/package.json +4 -4
  41. package/dist/assets/Inbox.js +0 -3061
  42. package/dist/assets/InboxHeader.js +0 -2338
  43. package/dist/assets/NotificationPreferencesPopup.js +0 -1694
  44. package/dist/assets/PreferenceInput.js +0 -1657
@@ -1,192 +1,45 @@
1
- import { jsx as m, jsxs as G, Fragment as Ce } from "react/jsx-runtime";
2
- import * as C from "react";
3
- import { useContext as Re } from "react";
4
- import { NotificationAPIContext as xe } from "../Provider/context.js";
5
- import { P as ce } from "../../assets/PreferenceInput.js";
6
- import { g as X, a as Z, s as w, m as $, u as J, c as k, P as t, f as K, x as Se } from "../../assets/DefaultPropsProvider.js";
7
- import { d as ve, e as Ae, u as le, c as _e, B as Pe } from "../../assets/ButtonBase.js";
8
- import { P as we } from "../../assets/Paper.js";
9
- import { u as Ne } from "../../assets/Divider.js";
10
- import { u as Ie } from "../../assets/useTheme.js";
11
- import { T as $e, g as de } from "../../assets/utils.js";
12
- import { u as Me } from "../../assets/resolveComponentProps.js";
13
- import { c as Oe } from "../../assets/createSvgIcon.js";
14
- import { T as ue } from "../../assets/Typography.js";
15
- import { B as De } from "../../assets/Box.js";
16
- var te = { exports: {} }, l = {};
17
- /**
18
- * @license React
19
- * react-is.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */
26
- var pe;
27
- function Fe() {
28
- if (pe) return l;
29
- pe = 1;
30
- var o = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.for("react.client.reference");
31
- function g(e) {
32
- if (typeof e == "object" && e !== null) {
33
- var h = e.$$typeof;
34
- switch (h) {
35
- case o:
36
- switch (e = e.type, e) {
37
- case n:
38
- case c:
39
- case s:
40
- case E:
41
- case a:
42
- return e;
43
- default:
44
- switch (e = e && e.$$typeof, e) {
45
- case f:
46
- case u:
47
- case T:
48
- case y:
49
- return e;
50
- case p:
51
- return e;
52
- default:
53
- return h;
54
- }
55
- }
56
- case r:
57
- return h;
58
- }
59
- }
60
- }
61
- return l.ContextConsumer = p, l.ContextProvider = f, l.Element = o, l.ForwardRef = u, l.Fragment = n, l.Lazy = T, l.Memo = y, l.Portal = r, l.Profiler = c, l.StrictMode = s, l.Suspense = E, l.SuspenseList = a, l.isContextConsumer = function(e) {
62
- return g(e) === p;
63
- }, l.isContextProvider = function(e) {
64
- return g(e) === f;
65
- }, l.isElement = function(e) {
66
- return typeof e == "object" && e !== null && e.$$typeof === o;
67
- }, l.isForwardRef = function(e) {
68
- return g(e) === u;
69
- }, l.isFragment = function(e) {
70
- return g(e) === n;
71
- }, l.isLazy = function(e) {
72
- return g(e) === T;
73
- }, l.isMemo = function(e) {
74
- return g(e) === y;
75
- }, l.isPortal = function(e) {
76
- return g(e) === r;
77
- }, l.isProfiler = function(e) {
78
- return g(e) === c;
79
- }, l.isStrictMode = function(e) {
80
- return g(e) === s;
81
- }, l.isSuspense = function(e) {
82
- return g(e) === E;
83
- }, l.isSuspenseList = function(e) {
84
- return g(e) === a;
85
- }, l.isValidElementType = function(e) {
86
- return typeof e == "string" || typeof e == "function" || e === n || e === c || e === s || e === E || e === a || e === b || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === y || e.$$typeof === f || e.$$typeof === p || e.$$typeof === u || e.$$typeof === x || e.getModuleId !== void 0);
87
- }, l.typeOf = g, l;
88
- }
89
- var d = {};
90
- /**
91
- * @license React
92
- * react-is.development.js
93
- *
94
- * Copyright (c) Meta Platforms, Inc. and affiliates.
95
- *
96
- * This source code is licensed under the MIT license found in the
97
- * LICENSE file in the root directory of this source tree.
98
- */
99
- var fe;
100
- function Le() {
101
- return fe || (fe = 1, process.env.NODE_ENV !== "production" && function() {
102
- function o(e) {
103
- if (typeof e == "object" && e !== null) {
104
- var h = e.$$typeof;
105
- switch (h) {
106
- case r:
107
- switch (e = e.type, e) {
108
- case s:
109
- case p:
110
- case c:
111
- case a:
112
- case y:
113
- return e;
114
- default:
115
- switch (e = e && e.$$typeof, e) {
116
- case u:
117
- case E:
118
- case b:
119
- case T:
120
- return e;
121
- case f:
122
- return e;
123
- default:
124
- return h;
125
- }
126
- }
127
- case n:
128
- return h;
129
- }
130
- }
131
- }
132
- var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), u = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), g = Symbol.for("react.client.reference");
133
- d.ContextConsumer = f, d.ContextProvider = u, d.Element = r, d.ForwardRef = E, d.Fragment = s, d.Lazy = b, d.Memo = T, d.Portal = n, d.Profiler = p, d.StrictMode = c, d.Suspense = a, d.SuspenseList = y, d.isContextConsumer = function(e) {
134
- return o(e) === f;
135
- }, d.isContextProvider = function(e) {
136
- return o(e) === u;
137
- }, d.isElement = function(e) {
138
- return typeof e == "object" && e !== null && e.$$typeof === r;
139
- }, d.isForwardRef = function(e) {
140
- return o(e) === E;
141
- }, d.isFragment = function(e) {
142
- return o(e) === s;
143
- }, d.isLazy = function(e) {
144
- return o(e) === b;
145
- }, d.isMemo = function(e) {
146
- return o(e) === T;
147
- }, d.isPortal = function(e) {
148
- return o(e) === n;
149
- }, d.isProfiler = function(e) {
150
- return o(e) === p;
151
- }, d.isStrictMode = function(e) {
152
- return o(e) === c;
153
- }, d.isSuspense = function(e) {
154
- return o(e) === a;
155
- }, d.isSuspenseList = function(e) {
156
- return o(e) === y;
157
- }, d.isValidElementType = function(e) {
158
- return typeof e == "string" || typeof e == "function" || e === s || e === p || e === c || e === a || e === y || e === x || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === T || e.$$typeof === u || e.$$typeof === f || e.$$typeof === E || e.$$typeof === g || e.getModuleId !== void 0);
159
- }, d.typeOf = o;
160
- }()), d;
161
- }
162
- process.env.NODE_ENV === "production" ? te.exports = Fe() : te.exports = Le();
163
- var Ye = te.exports;
164
- function ze(o) {
165
- return Z("MuiCollapse", o);
1
+ import { jsx as i, jsxs as G, Fragment as he } from "react/jsx-runtime";
2
+ import * as p from "react";
3
+ import { useContext as ye } from "react";
4
+ import { NotificationAPIContext as be } from "../Provider/context.js";
5
+ import { PreferenceInput as ie } from "./PreferenceInput.js";
6
+ import { r as xe } from "../../assets/index.js";
7
+ import { g as q, e as _, s as T, m as I, u as J, c as U, P as e, b as K, L as ve } from "../../assets/DefaultPropsProvider.js";
8
+ import { u as Ce, e as Te, a as se, c as we, B as Ee } from "../../assets/ButtonBase.js";
9
+ import { P as Re } from "../../assets/Paper.js";
10
+ import { a as Ae } from "../../assets/dividerClasses.js";
11
+ import { u as Se } from "../../assets/useTheme.js";
12
+ import { T as Ne, g as ae } from "../../assets/utils.js";
13
+ import { u as Ie } from "../../assets/resolveComponentProps.js";
14
+ import { c as De } from "../../assets/createSvgIcon.js";
15
+ import { T as ce } from "../../assets/Typography.js";
16
+ import { B as Me } from "../../assets/Box.js";
17
+ function Pe(o) {
18
+ return _("MuiCollapse", o);
166
19
  }
167
- X("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
168
- const Ve = (o) => {
20
+ q("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
21
+ const Oe = (o) => {
169
22
  const {
170
- orientation: r,
23
+ orientation: t,
171
24
  classes: n
172
25
  } = o, s = {
173
- root: ["root", `${r}`],
26
+ root: ["root", `${t}`],
174
27
  entered: ["entered"],
175
28
  hidden: ["hidden"],
176
- wrapper: ["wrapper", `${r}`],
177
- wrapperInner: ["wrapperInner", `${r}`]
29
+ wrapper: ["wrapper", `${t}`],
30
+ wrapperInner: ["wrapperInner", `${t}`]
178
31
  };
179
- return K(s, ze, n);
180
- }, Ue = w("div", {
32
+ return K(s, Pe, n);
33
+ }, $e = T("div", {
181
34
  name: "MuiCollapse",
182
35
  slot: "Root",
183
- overridesResolver: (o, r) => {
36
+ overridesResolver: (o, t) => {
184
37
  const {
185
38
  ownerState: n
186
39
  } = o;
187
- return [r.root, r[n.orientation], n.state === "entered" && r.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && r.hidden];
40
+ return [t.root, t[n.orientation], n.state === "entered" && t.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && t.hidden];
188
41
  }
189
- })($(({
42
+ })(I(({
190
43
  theme: o
191
44
  }) => ({
192
45
  height: 0,
@@ -219,16 +72,16 @@ const Ve = (o) => {
219
72
  }
220
73
  }, {
221
74
  props: ({
222
- ownerState: r
223
- }) => r.state === "exited" && !r.in && r.collapsedSize === "0px",
75
+ ownerState: t
76
+ }) => t.state === "exited" && !t.in && t.collapsedSize === "0px",
224
77
  style: {
225
78
  visibility: "hidden"
226
79
  }
227
80
  }]
228
- }))), We = w("div", {
81
+ }))), ze = T("div", {
229
82
  name: "MuiCollapse",
230
83
  slot: "Wrapper",
231
- overridesResolver: (o, r) => r.wrapper
84
+ overridesResolver: (o, t) => t.wrapper
232
85
  })({
233
86
  // Hack to get children with a negative margin to not falsify the height computation.
234
87
  display: "flex",
@@ -242,10 +95,10 @@ const Ve = (o) => {
242
95
  height: "100%"
243
96
  }
244
97
  }]
245
- }), Ge = w("div", {
98
+ }), je = T("div", {
246
99
  name: "MuiCollapse",
247
100
  slot: "WrapperInner",
248
- overridesResolver: (o, r) => r.wrapperInner
101
+ overridesResolver: (o, t) => t.wrapperInner
249
102
  })({
250
103
  width: "100%",
251
104
  variants: [{
@@ -257,135 +110,135 @@ const Ve = (o) => {
257
110
  height: "100%"
258
111
  }
259
112
  }]
260
- }), H = /* @__PURE__ */ C.forwardRef(function(r, n) {
113
+ }), L = /* @__PURE__ */ p.forwardRef(function(t, n) {
261
114
  const s = J({
262
- props: r,
115
+ props: t,
263
116
  name: "MuiCollapse"
264
117
  }), {
265
118
  addEndListener: c,
266
- children: p,
267
- className: f,
268
- collapsedSize: u = "0px",
269
- component: E,
119
+ children: l,
120
+ className: u,
121
+ collapsedSize: d = "0px",
122
+ component: m,
270
123
  easing: a,
271
- in: y,
272
- onEnter: T,
273
- onEntered: b,
274
- onEntering: x,
275
- onExit: g,
276
- onExited: e,
277
- onExiting: h,
278
- orientation: R = "vertical",
124
+ in: g,
125
+ onEnter: E,
126
+ onEntered: R,
127
+ onEntering: A,
128
+ onExit: D,
129
+ onExited: w,
130
+ onExiting: v,
131
+ orientation: f = "vertical",
279
132
  style: M,
280
- timeout: A = Se.standard,
133
+ timeout: b = ve.standard,
281
134
  // eslint-disable-next-line react/prop-types
282
- TransitionComponent: U = $e,
135
+ TransitionComponent: k = Ne,
283
136
  ...Q
284
- } = s, O = {
137
+ } = s, P = {
285
138
  ...s,
286
- orientation: R,
287
- collapsedSize: u
288
- }, _ = Ve(O), D = Ie(), j = ve(), P = C.useRef(null), F = C.useRef(), L = typeof u == "number" ? `${u}px` : u, N = R === "horizontal", I = N ? "width" : "height", Y = C.useRef(null), ee = Me(n, Y), z = (i) => (S) => {
289
- if (i) {
290
- const v = Y.current;
291
- S === void 0 ? i(v) : i(v, S);
139
+ orientation: f,
140
+ collapsedSize: d
141
+ }, x = Oe(P), O = Se(), X = Ce(), C = p.useRef(null), $ = p.useRef(), z = typeof d == "number" ? `${d}px` : d, S = f === "horizontal", N = S ? "width" : "height", j = p.useRef(null), Y = Ie(n, j), V = (r) => (h) => {
142
+ if (r) {
143
+ const y = j.current;
144
+ h === void 0 ? r(y) : r(y, h);
292
145
  }
293
- }, oe = () => P.current ? P.current[N ? "clientWidth" : "clientHeight"] : 0, Ee = z((i, S) => {
294
- P.current && N && (P.current.style.position = "absolute"), i.style[I] = L, T && T(i, S);
295
- }), ye = z((i, S) => {
296
- const v = oe();
297
- P.current && N && (P.current.style.position = "");
146
+ }, Z = () => C.current ? C.current[S ? "clientWidth" : "clientHeight"] : 0, le = V((r, h) => {
147
+ C.current && S && (C.current.style.position = "absolute"), r.style[N] = z, E && E(r, h);
148
+ }), pe = V((r, h) => {
149
+ const y = Z();
150
+ C.current && S && (C.current.style.position = "");
298
151
  const {
299
- duration: W,
300
- easing: B
301
- } = de({
152
+ duration: B,
153
+ easing: H
154
+ } = ae({
302
155
  style: M,
303
- timeout: A,
156
+ timeout: b,
304
157
  easing: a
305
158
  }, {
306
159
  mode: "enter"
307
160
  });
308
- if (A === "auto") {
309
- const ae = D.transitions.getAutoHeightDuration(v);
310
- i.style.transitionDuration = `${ae}ms`, F.current = ae;
161
+ if (b === "auto") {
162
+ const re = O.transitions.getAutoHeightDuration(y);
163
+ r.style.transitionDuration = `${re}ms`, $.current = re;
311
164
  } else
312
- i.style.transitionDuration = typeof W == "string" ? W : `${W}ms`;
313
- i.style[I] = `${v}px`, i.style.transitionTimingFunction = B, x && x(i, S);
314
- }), ge = z((i, S) => {
315
- i.style[I] = "auto", b && b(i, S);
316
- }), Te = z((i) => {
317
- i.style[I] = `${oe()}px`, g && g(i);
318
- }), he = z(e), be = z((i) => {
319
- const S = oe(), {
320
- duration: v,
321
- easing: W
322
- } = de({
165
+ r.style.transitionDuration = typeof B == "string" ? B : `${B}ms`;
166
+ r.style[N] = `${y}px`, r.style.transitionTimingFunction = H, A && A(r, h);
167
+ }), ue = V((r, h) => {
168
+ r.style[N] = "auto", R && R(r, h);
169
+ }), fe = V((r) => {
170
+ r.style[N] = `${Z()}px`, D && D(r);
171
+ }), me = V(w), ge = V((r) => {
172
+ const h = Z(), {
173
+ duration: y,
174
+ easing: B
175
+ } = ae({
323
176
  style: M,
324
- timeout: A,
177
+ timeout: b,
325
178
  easing: a
326
179
  }, {
327
180
  mode: "exit"
328
181
  });
329
- if (A === "auto") {
330
- const B = D.transitions.getAutoHeightDuration(S);
331
- i.style.transitionDuration = `${B}ms`, F.current = B;
182
+ if (b === "auto") {
183
+ const H = O.transitions.getAutoHeightDuration(h);
184
+ r.style.transitionDuration = `${H}ms`, $.current = H;
332
185
  } else
333
- i.style.transitionDuration = typeof v == "string" ? v : `${v}ms`;
334
- i.style[I] = L, i.style.transitionTimingFunction = W, h && h(i);
186
+ r.style.transitionDuration = typeof y == "string" ? y : `${y}ms`;
187
+ r.style[N] = z, r.style.transitionTimingFunction = B, v && v(r);
335
188
  });
336
- return /* @__PURE__ */ m(U, {
337
- in: y,
338
- onEnter: Ee,
339
- onEntered: ge,
340
- onEntering: ye,
341
- onExit: Te,
342
- onExited: he,
343
- onExiting: be,
344
- addEndListener: (i) => {
345
- A === "auto" && j.start(F.current || 0, i), c && c(Y.current, i);
189
+ return /* @__PURE__ */ i(k, {
190
+ in: g,
191
+ onEnter: le,
192
+ onEntered: ue,
193
+ onEntering: pe,
194
+ onExit: fe,
195
+ onExited: me,
196
+ onExiting: ge,
197
+ addEndListener: (r) => {
198
+ b === "auto" && X.start($.current || 0, r), c && c(j.current, r);
346
199
  },
347
- nodeRef: Y,
348
- timeout: A === "auto" ? null : A,
200
+ nodeRef: j,
201
+ timeout: b === "auto" ? null : b,
349
202
  ...Q,
350
- children: (i, {
351
- ownerState: S,
352
- ...v
353
- }) => /* @__PURE__ */ m(Ue, {
354
- as: E,
355
- className: k(_.root, f, {
356
- entered: _.entered,
357
- exited: !y && L === "0px" && _.hidden
358
- }[i]),
203
+ children: (r, {
204
+ ownerState: h,
205
+ ...y
206
+ }) => /* @__PURE__ */ i($e, {
207
+ as: m,
208
+ className: U(x.root, u, {
209
+ entered: x.entered,
210
+ exited: !g && z === "0px" && x.hidden
211
+ }[r]),
359
212
  style: {
360
- [N ? "minWidth" : "minHeight"]: L,
213
+ [S ? "minWidth" : "minHeight"]: z,
361
214
  ...M
362
215
  },
363
- ref: ee,
216
+ ref: Y,
364
217
  ownerState: {
365
- ...O,
366
- state: i
218
+ ...P,
219
+ state: r
367
220
  },
368
- ...v,
369
- children: /* @__PURE__ */ m(We, {
221
+ ...y,
222
+ children: /* @__PURE__ */ i(ze, {
370
223
  ownerState: {
371
- ...O,
372
- state: i
224
+ ...P,
225
+ state: r
373
226
  },
374
- className: _.wrapper,
375
- ref: P,
376
- children: /* @__PURE__ */ m(Ge, {
227
+ className: x.wrapper,
228
+ ref: C,
229
+ children: /* @__PURE__ */ i(je, {
377
230
  ownerState: {
378
- ...O,
379
- state: i
231
+ ...P,
232
+ state: r
380
233
  },
381
- className: _.wrapperInner,
382
- children: p
234
+ className: x.wrapperInner,
235
+ children: l
383
236
  })
384
237
  })
385
238
  })
386
239
  });
387
240
  });
388
- process.env.NODE_ENV !== "production" && (H.propTypes = {
241
+ process.env.NODE_ENV !== "production" && (L.propTypes = {
389
242
  // ┌────────────────────────────── Warning ──────────────────────────────┐
390
243
  // │ These PropTypes are generated from the TypeScript type definitions. │
391
244
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -395,78 +248,78 @@ process.env.NODE_ENV !== "production" && (H.propTypes = {
395
248
  * node and a done callback. Allows for more fine grained transition end
396
249
  * logic. Note: Timeouts are still used as a fallback if provided.
397
250
  */
398
- addEndListener: t.func,
251
+ addEndListener: e.func,
399
252
  /**
400
253
  * The content node to be collapsed.
401
254
  */
402
- children: t.node,
255
+ children: e.node,
403
256
  /**
404
257
  * Override or extend the styles applied to the component.
405
258
  */
406
- classes: t.object,
259
+ classes: e.object,
407
260
  /**
408
261
  * @ignore
409
262
  */
410
- className: t.string,
263
+ className: e.string,
411
264
  /**
412
265
  * The width (horizontal) or height (vertical) of the container when collapsed.
413
266
  * @default '0px'
414
267
  */
415
- collapsedSize: t.oneOfType([t.number, t.string]),
268
+ collapsedSize: e.oneOfType([e.number, e.string]),
416
269
  /**
417
270
  * The component used for the root node.
418
271
  * Either a string to use a HTML element or a component.
419
272
  */
420
- component: Ae,
273
+ component: Te,
421
274
  /**
422
275
  * The transition timing function.
423
276
  * You may specify a single easing or a object containing enter and exit values.
424
277
  */
425
- easing: t.oneOfType([t.shape({
426
- enter: t.string,
427
- exit: t.string
428
- }), t.string]),
278
+ easing: e.oneOfType([e.shape({
279
+ enter: e.string,
280
+ exit: e.string
281
+ }), e.string]),
429
282
  /**
430
283
  * If `true`, the component will transition in.
431
284
  */
432
- in: t.bool,
285
+ in: e.bool,
433
286
  /**
434
287
  * @ignore
435
288
  */
436
- onEnter: t.func,
289
+ onEnter: e.func,
437
290
  /**
438
291
  * @ignore
439
292
  */
440
- onEntered: t.func,
293
+ onEntered: e.func,
441
294
  /**
442
295
  * @ignore
443
296
  */
444
- onEntering: t.func,
297
+ onEntering: e.func,
445
298
  /**
446
299
  * @ignore
447
300
  */
448
- onExit: t.func,
301
+ onExit: e.func,
449
302
  /**
450
303
  * @ignore
451
304
  */
452
- onExited: t.func,
305
+ onExited: e.func,
453
306
  /**
454
307
  * @ignore
455
308
  */
456
- onExiting: t.func,
309
+ onExiting: e.func,
457
310
  /**
458
311
  * The transition orientation.
459
312
  * @default 'vertical'
460
313
  */
461
- orientation: t.oneOf(["horizontal", "vertical"]),
314
+ orientation: e.oneOf(["horizontal", "vertical"]),
462
315
  /**
463
316
  * @ignore
464
317
  */
465
- style: t.object,
318
+ style: e.object,
466
319
  /**
467
320
  * The system prop that allows defining system overrides as well as additional CSS styles.
468
321
  */
469
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
322
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
470
323
  /**
471
324
  * The duration for the transition, in milliseconds.
472
325
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -474,51 +327,51 @@ process.env.NODE_ENV !== "production" && (H.propTypes = {
474
327
  * Set to 'auto' to automatically calculate transition time based on height.
475
328
  * @default duration.standard
476
329
  */
477
- timeout: t.oneOfType([t.oneOf(["auto"]), t.number, t.shape({
478
- appear: t.number,
479
- enter: t.number,
480
- exit: t.number
330
+ timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
331
+ appear: e.number,
332
+ enter: e.number,
333
+ exit: e.number
481
334
  })])
482
335
  });
483
- H && (H.muiSupportAuto = !0);
484
- const se = /* @__PURE__ */ C.createContext({});
485
- process.env.NODE_ENV !== "production" && (se.displayName = "AccordionContext");
486
- function ke(o) {
487
- return Z("MuiAccordion", o);
336
+ L && (L.muiSupportAuto = !0);
337
+ const ne = /* @__PURE__ */ p.createContext({});
338
+ process.env.NODE_ENV !== "production" && (ne.displayName = "AccordionContext");
339
+ function Ve(o) {
340
+ return _("MuiAccordion", o);
488
341
  }
489
- const q = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), Be = (o) => {
342
+ const F = q("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), We = (o) => {
490
343
  const {
491
- classes: r,
344
+ classes: t,
492
345
  square: n,
493
346
  expanded: s,
494
347
  disabled: c,
495
- disableGutters: p
348
+ disableGutters: l
496
349
  } = o;
497
350
  return K({
498
- root: ["root", !n && "rounded", s && "expanded", c && "disabled", !p && "gutters"],
351
+ root: ["root", !n && "rounded", s && "expanded", c && "disabled", !l && "gutters"],
499
352
  heading: ["heading"],
500
353
  region: ["region"]
501
- }, ke, r);
502
- }, qe = w(we, {
354
+ }, Ve, t);
355
+ }, ke = T(Re, {
503
356
  name: "MuiAccordion",
504
357
  slot: "Root",
505
- overridesResolver: (o, r) => {
358
+ overridesResolver: (o, t) => {
506
359
  const {
507
360
  ownerState: n
508
361
  } = o;
509
362
  return [{
510
- [`& .${q.region}`]: r.region
511
- }, r.root, !n.square && r.rounded, !n.disableGutters && r.gutters];
363
+ [`& .${F.region}`]: t.region
364
+ }, t.root, !n.square && t.rounded, !n.disableGutters && t.gutters];
512
365
  }
513
- })($(({
366
+ })(I(({
514
367
  theme: o
515
368
  }) => {
516
- const r = {
369
+ const t = {
517
370
  duration: o.transitions.duration.shortest
518
371
  };
519
372
  return {
520
373
  position: "relative",
521
- transition: o.transitions.create(["margin"], r),
374
+ transition: o.transitions.create(["margin"], t),
522
375
  overflowAnchor: "none",
523
376
  // Keep the same scrolling position
524
377
  "&::before": {
@@ -530,14 +383,14 @@ const q = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
530
383
  content: '""',
531
384
  opacity: 1,
532
385
  backgroundColor: (o.vars || o).palette.divider,
533
- transition: o.transitions.create(["opacity", "background-color"], r)
386
+ transition: o.transitions.create(["opacity", "background-color"], t)
534
387
  },
535
388
  "&:first-of-type": {
536
389
  "&::before": {
537
390
  display: "none"
538
391
  }
539
392
  },
540
- [`&.${q.expanded}`]: {
393
+ [`&.${F.expanded}`]: {
541
394
  "&::before": {
542
395
  opacity: 0
543
396
  },
@@ -553,15 +406,15 @@ const q = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
553
406
  }
554
407
  }
555
408
  },
556
- [`&.${q.disabled}`]: {
409
+ [`&.${F.disabled}`]: {
557
410
  backgroundColor: (o.vars || o).palette.action.disabledBackground
558
411
  }
559
412
  };
560
- }), $(({
413
+ }), I(({
561
414
  theme: o
562
415
  }) => ({
563
416
  variants: [{
564
- props: (r) => !r.square,
417
+ props: (t) => !t.square,
565
418
  style: {
566
419
  borderRadius: 0,
567
420
  "&:first-of-type": {
@@ -579,101 +432,101 @@ const q = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
579
432
  }
580
433
  }
581
434
  }, {
582
- props: (r) => !r.disableGutters,
435
+ props: (t) => !t.disableGutters,
583
436
  style: {
584
- [`&.${q.expanded}`]: {
437
+ [`&.${F.expanded}`]: {
585
438
  margin: "16px 0"
586
439
  }
587
440
  }
588
441
  }]
589
- }))), He = w("h3", {
442
+ }))), Be = T("h3", {
590
443
  name: "MuiAccordion",
591
444
  slot: "Heading",
592
- overridesResolver: (o, r) => r.heading
445
+ overridesResolver: (o, t) => t.heading
593
446
  })({
594
447
  all: "unset"
595
- }), re = /* @__PURE__ */ C.forwardRef(function(r, n) {
448
+ }), ee = /* @__PURE__ */ p.forwardRef(function(t, n) {
596
449
  const s = J({
597
- props: r,
450
+ props: t,
598
451
  name: "MuiAccordion"
599
452
  }), {
600
453
  children: c,
601
- className: p,
602
- defaultExpanded: f = !1,
603
- disabled: u = !1,
604
- disableGutters: E = !1,
454
+ className: l,
455
+ defaultExpanded: u = !1,
456
+ disabled: d = !1,
457
+ disableGutters: m = !1,
605
458
  expanded: a,
606
- onChange: y,
607
- square: T = !1,
608
- slots: b = {},
609
- slotProps: x = {},
610
- TransitionComponent: g,
611
- TransitionProps: e,
612
- ...h
613
- } = s, [R, M] = Ne({
459
+ onChange: g,
460
+ square: E = !1,
461
+ slots: R = {},
462
+ slotProps: A = {},
463
+ TransitionComponent: D,
464
+ TransitionProps: w,
465
+ ...v
466
+ } = s, [f, M] = Ae({
614
467
  controlled: a,
615
- default: f,
468
+ default: u,
616
469
  name: "Accordion",
617
470
  state: "expanded"
618
- }), A = C.useCallback((ee) => {
619
- M(!R), y && y(ee, !R);
620
- }, [R, y, M]), [U, ...Q] = C.Children.toArray(c), O = C.useMemo(() => ({
621
- expanded: R,
622
- disabled: u,
623
- disableGutters: E,
624
- toggle: A
625
- }), [R, u, E, A]), _ = {
471
+ }), b = p.useCallback((Y) => {
472
+ M(!f), g && g(Y, !f);
473
+ }, [f, g, M]), [k, ...Q] = p.Children.toArray(c), P = p.useMemo(() => ({
474
+ expanded: f,
475
+ disabled: d,
476
+ disableGutters: m,
477
+ toggle: b
478
+ }), [f, d, m, b]), x = {
626
479
  ...s,
627
- square: T,
628
- disabled: u,
629
- disableGutters: E,
630
- expanded: R
631
- }, D = Be(_), j = {
632
- transition: g,
633
- ...b
634
- }, P = {
635
- transition: e,
636
- ...x
637
- }, F = {
638
- slots: j,
639
- slotProps: P
640
- }, [L, N] = le("heading", {
641
- elementType: He,
642
- externalForwardedProps: F,
643
- className: D.heading,
644
- ownerState: _
645
- }), [I, Y] = le("transition", {
646
- elementType: H,
647
- externalForwardedProps: F,
648
- ownerState: _
480
+ square: E,
481
+ disabled: d,
482
+ disableGutters: m,
483
+ expanded: f
484
+ }, O = We(x), X = {
485
+ transition: D,
486
+ ...R
487
+ }, C = {
488
+ transition: w,
489
+ ...A
490
+ }, $ = {
491
+ slots: X,
492
+ slotProps: C
493
+ }, [z, S] = se("heading", {
494
+ elementType: Be,
495
+ externalForwardedProps: $,
496
+ className: O.heading,
497
+ ownerState: x
498
+ }), [N, j] = se("transition", {
499
+ elementType: L,
500
+ externalForwardedProps: $,
501
+ ownerState: x
649
502
  });
650
- return /* @__PURE__ */ G(qe, {
651
- className: k(D.root, p),
503
+ return /* @__PURE__ */ G(ke, {
504
+ className: U(O.root, l),
652
505
  ref: n,
653
- ownerState: _,
654
- square: T,
655
- ...h,
656
- children: [/* @__PURE__ */ m(L, {
657
- ...N,
658
- children: /* @__PURE__ */ m(se.Provider, {
659
- value: O,
660
- children: U
506
+ ownerState: x,
507
+ square: E,
508
+ ...v,
509
+ children: [/* @__PURE__ */ i(z, {
510
+ ...S,
511
+ children: /* @__PURE__ */ i(ne.Provider, {
512
+ value: P,
513
+ children: k
661
514
  })
662
- }), /* @__PURE__ */ m(I, {
663
- in: R,
515
+ }), /* @__PURE__ */ i(N, {
516
+ in: f,
664
517
  timeout: "auto",
665
- ...Y,
666
- children: /* @__PURE__ */ m("div", {
667
- "aria-labelledby": U.props.id,
668
- id: U.props["aria-controls"],
518
+ ...j,
519
+ children: /* @__PURE__ */ i("div", {
520
+ "aria-labelledby": k.props.id,
521
+ id: k.props["aria-controls"],
669
522
  role: "region",
670
- className: D.region,
523
+ className: O.region,
671
524
  children: Q
672
525
  })
673
526
  })]
674
527
  });
675
528
  });
676
- process.env.NODE_ENV !== "production" && (re.propTypes = {
529
+ process.env.NODE_ENV !== "production" && (ee.propTypes = {
677
530
  // ┌────────────────────────────── Warning ──────────────────────────────┐
678
531
  // │ These PropTypes are generated from the TypeScript type definitions. │
679
532
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -681,118 +534,118 @@ process.env.NODE_ENV !== "production" && (re.propTypes = {
681
534
  /**
682
535
  * The content of the component.
683
536
  */
684
- children: _e(t.node.isRequired, (o) => {
685
- const r = C.Children.toArray(o.children)[0];
686
- return Ye.isFragment(r) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ C.isValidElement(r) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
537
+ children: we(e.node.isRequired, (o) => {
538
+ const t = p.Children.toArray(o.children)[0];
539
+ return xe.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ p.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
687
540
  }),
688
541
  /**
689
542
  * Override or extend the styles applied to the component.
690
543
  */
691
- classes: t.object,
544
+ classes: e.object,
692
545
  /**
693
546
  * @ignore
694
547
  */
695
- className: t.string,
548
+ className: e.string,
696
549
  /**
697
550
  * If `true`, expands the accordion by default.
698
551
  * @default false
699
552
  */
700
- defaultExpanded: t.bool,
553
+ defaultExpanded: e.bool,
701
554
  /**
702
555
  * If `true`, the component is disabled.
703
556
  * @default false
704
557
  */
705
- disabled: t.bool,
558
+ disabled: e.bool,
706
559
  /**
707
560
  * If `true`, it removes the margin between two expanded accordion items and the increase of height.
708
561
  * @default false
709
562
  */
710
- disableGutters: t.bool,
563
+ disableGutters: e.bool,
711
564
  /**
712
565
  * If `true`, expands the accordion, otherwise collapse it.
713
566
  * Setting this prop enables control over the accordion.
714
567
  */
715
- expanded: t.bool,
568
+ expanded: e.bool,
716
569
  /**
717
570
  * Callback fired when the expand/collapse state is changed.
718
571
  *
719
572
  * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
720
573
  * @param {boolean} expanded The `expanded` state of the accordion.
721
574
  */
722
- onChange: t.func,
575
+ onChange: e.func,
723
576
  /**
724
577
  * The props used for each slot inside.
725
578
  * @default {}
726
579
  */
727
- slotProps: t.shape({
728
- heading: t.oneOfType([t.func, t.object]),
729
- transition: t.oneOfType([t.func, t.object])
580
+ slotProps: e.shape({
581
+ heading: e.oneOfType([e.func, e.object]),
582
+ transition: e.oneOfType([e.func, e.object])
730
583
  }),
731
584
  /**
732
585
  * The components used for each slot inside.
733
586
  * @default {}
734
587
  */
735
- slots: t.shape({
736
- heading: t.elementType,
737
- transition: t.elementType
588
+ slots: e.shape({
589
+ heading: e.elementType,
590
+ transition: e.elementType
738
591
  }),
739
592
  /**
740
593
  * If `true`, rounded corners are disabled.
741
594
  * @default false
742
595
  */
743
- square: t.bool,
596
+ square: e.bool,
744
597
  /**
745
598
  * The system prop that allows defining system overrides as well as additional CSS styles.
746
599
  */
747
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
600
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
748
601
  /**
749
602
  * The component used for the transition.
750
603
  * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
751
604
  * @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
752
605
  */
753
- TransitionComponent: t.elementType,
606
+ TransitionComponent: e.elementType,
754
607
  /**
755
608
  * Props applied to the transition element.
756
609
  * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
757
610
  * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
758
611
  */
759
- TransitionProps: t.object
612
+ TransitionProps: e.object
760
613
  });
761
- function Xe(o) {
762
- return Z("MuiAccordionDetails", o);
614
+ function Ge(o) {
615
+ return _("MuiAccordionDetails", o);
763
616
  }
764
- X("MuiAccordionDetails", ["root"]);
765
- const Ze = (o) => {
617
+ q("MuiAccordionDetails", ["root"]);
618
+ const Ue = (o) => {
766
619
  const {
767
- classes: r
620
+ classes: t
768
621
  } = o;
769
622
  return K({
770
623
  root: ["root"]
771
- }, Xe, r);
772
- }, Je = w("div", {
624
+ }, Ge, t);
625
+ }, He = T("div", {
773
626
  name: "MuiAccordionDetails",
774
627
  slot: "Root",
775
- overridesResolver: (o, r) => r.root
776
- })($(({
628
+ overridesResolver: (o, t) => t.root
629
+ })(I(({
777
630
  theme: o
778
631
  }) => ({
779
632
  padding: o.spacing(1, 2, 2)
780
- }))), ne = /* @__PURE__ */ C.forwardRef(function(r, n) {
633
+ }))), oe = /* @__PURE__ */ p.forwardRef(function(t, n) {
781
634
  const s = J({
782
- props: r,
635
+ props: t,
783
636
  name: "MuiAccordionDetails"
784
637
  }), {
785
638
  className: c,
786
- ...p
787
- } = s, f = s, u = Ze(f);
788
- return /* @__PURE__ */ m(Je, {
789
- className: k(u.root, c),
639
+ ...l
640
+ } = s, u = s, d = Ue(u);
641
+ return /* @__PURE__ */ i(He, {
642
+ className: U(d.root, c),
790
643
  ref: n,
791
- ownerState: f,
792
- ...p
644
+ ownerState: u,
645
+ ...l
793
646
  });
794
647
  });
795
- process.env.NODE_ENV !== "production" && (ne.propTypes = {
648
+ process.env.NODE_ENV !== "production" && (oe.propTypes = {
796
649
  // ┌────────────────────────────── Warning ──────────────────────────────┐
797
650
  // │ These PropTypes are generated from the TypeScript type definitions. │
798
651
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -800,26 +653,26 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
800
653
  /**
801
654
  * The content of the component.
802
655
  */
803
- children: t.node,
656
+ children: e.node,
804
657
  /**
805
658
  * Override or extend the styles applied to the component.
806
659
  */
807
- classes: t.object,
660
+ classes: e.object,
808
661
  /**
809
662
  * @ignore
810
663
  */
811
- className: t.string,
664
+ className: e.string,
812
665
  /**
813
666
  * The system prop that allows defining system overrides as well as additional CSS styles.
814
667
  */
815
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
668
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
816
669
  });
817
- function Ke(o) {
818
- return Z("MuiAccordionSummary", o);
670
+ function Fe(o) {
671
+ return _("MuiAccordionSummary", o);
819
672
  }
820
- const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Qe = (o) => {
673
+ const W = q("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Le = (o) => {
821
674
  const {
822
- classes: r,
675
+ classes: t,
823
676
  expanded: n,
824
677
  disabled: s,
825
678
  disableGutters: c
@@ -829,15 +682,15 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
829
682
  focusVisible: ["focusVisible"],
830
683
  content: ["content", n && "expanded", !c && "contentGutters"],
831
684
  expandIconWrapper: ["expandIconWrapper", n && "expanded"]
832
- }, Ke, r);
833
- }, je = w(Pe, {
685
+ }, Fe, t);
686
+ }, qe = T(Ee, {
834
687
  name: "MuiAccordionSummary",
835
688
  slot: "Root",
836
- overridesResolver: (o, r) => r.root
837
- })($(({
689
+ overridesResolver: (o, t) => t.root
690
+ })(I(({
838
691
  theme: o
839
692
  }) => {
840
- const r = {
693
+ const t = {
841
694
  duration: o.transitions.duration.shortest
842
695
  };
843
696
  return {
@@ -845,30 +698,30 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
845
698
  width: "100%",
846
699
  minHeight: 48,
847
700
  padding: o.spacing(0, 2),
848
- transition: o.transitions.create(["min-height", "background-color"], r),
849
- [`&.${V.focusVisible}`]: {
701
+ transition: o.transitions.create(["min-height", "background-color"], t),
702
+ [`&.${W.focusVisible}`]: {
850
703
  backgroundColor: (o.vars || o).palette.action.focus
851
704
  },
852
- [`&.${V.disabled}`]: {
705
+ [`&.${W.disabled}`]: {
853
706
  opacity: (o.vars || o).palette.action.disabledOpacity
854
707
  },
855
- [`&:hover:not(.${V.disabled})`]: {
708
+ [`&:hover:not(.${W.disabled})`]: {
856
709
  cursor: "pointer"
857
710
  },
858
711
  variants: [{
859
712
  props: (n) => !n.disableGutters,
860
713
  style: {
861
- [`&.${V.expanded}`]: {
714
+ [`&.${W.expanded}`]: {
862
715
  minHeight: 64
863
716
  }
864
717
  }
865
718
  }]
866
719
  };
867
- })), eo = w("span", {
720
+ })), _e = T("span", {
868
721
  name: "MuiAccordionSummary",
869
722
  slot: "Content",
870
- overridesResolver: (o, r) => r.content
871
- })($(({
723
+ overridesResolver: (o, t) => t.content
724
+ })(I(({
872
725
  theme: o
873
726
  }) => ({
874
727
  display: "flex",
@@ -876,21 +729,21 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
876
729
  flexGrow: 1,
877
730
  margin: "12px 0",
878
731
  variants: [{
879
- props: (r) => !r.disableGutters,
732
+ props: (t) => !t.disableGutters,
880
733
  style: {
881
734
  transition: o.transitions.create(["margin"], {
882
735
  duration: o.transitions.duration.shortest
883
736
  }),
884
- [`&.${V.expanded}`]: {
737
+ [`&.${W.expanded}`]: {
885
738
  margin: "20px 0"
886
739
  }
887
740
  }
888
741
  }]
889
- }))), oo = w("span", {
742
+ }))), Je = T("span", {
890
743
  name: "MuiAccordionSummary",
891
744
  slot: "ExpandIconWrapper",
892
- overridesResolver: (o, r) => r.expandIconWrapper
893
- })($(({
745
+ overridesResolver: (o, t) => t.expandIconWrapper
746
+ })(I(({
894
747
  theme: o
895
748
  }) => ({
896
749
  display: "flex",
@@ -899,56 +752,56 @@ const V = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
899
752
  transition: o.transitions.create("transform", {
900
753
  duration: o.transitions.duration.shortest
901
754
  }),
902
- [`&.${V.expanded}`]: {
755
+ [`&.${W.expanded}`]: {
903
756
  transform: "rotate(180deg)"
904
757
  }
905
- }))), ie = /* @__PURE__ */ C.forwardRef(function(r, n) {
758
+ }))), te = /* @__PURE__ */ p.forwardRef(function(t, n) {
906
759
  const s = J({
907
- props: r,
760
+ props: t,
908
761
  name: "MuiAccordionSummary"
909
762
  }), {
910
763
  children: c,
911
- className: p,
912
- expandIcon: f,
913
- focusVisibleClassName: u,
914
- onClick: E,
764
+ className: l,
765
+ expandIcon: u,
766
+ focusVisibleClassName: d,
767
+ onClick: m,
915
768
  ...a
916
769
  } = s, {
917
- disabled: y = !1,
918
- disableGutters: T,
919
- expanded: b,
920
- toggle: x
921
- } = C.useContext(se), g = (R) => {
922
- x && x(R), E && E(R);
923
- }, e = {
770
+ disabled: g = !1,
771
+ disableGutters: E,
772
+ expanded: R,
773
+ toggle: A
774
+ } = p.useContext(ne), D = (f) => {
775
+ A && A(f), m && m(f);
776
+ }, w = {
924
777
  ...s,
925
- expanded: b,
926
- disabled: y,
927
- disableGutters: T
928
- }, h = Qe(e);
929
- return /* @__PURE__ */ G(je, {
778
+ expanded: R,
779
+ disabled: g,
780
+ disableGutters: E
781
+ }, v = Le(w);
782
+ return /* @__PURE__ */ G(qe, {
930
783
  focusRipple: !1,
931
784
  disableRipple: !0,
932
- disabled: y,
933
- "aria-expanded": b,
934
- className: k(h.root, p),
935
- focusVisibleClassName: k(h.focusVisible, u),
936
- onClick: g,
785
+ disabled: g,
786
+ "aria-expanded": R,
787
+ className: U(v.root, l),
788
+ focusVisibleClassName: U(v.focusVisible, d),
789
+ onClick: D,
937
790
  ref: n,
938
- ownerState: e,
791
+ ownerState: w,
939
792
  ...a,
940
- children: [/* @__PURE__ */ m(eo, {
941
- className: h.content,
942
- ownerState: e,
793
+ children: [/* @__PURE__ */ i(_e, {
794
+ className: v.content,
795
+ ownerState: w,
943
796
  children: c
944
- }), f && /* @__PURE__ */ m(oo, {
945
- className: h.expandIconWrapper,
946
- ownerState: e,
947
- children: f
797
+ }), u && /* @__PURE__ */ i(Je, {
798
+ className: v.expandIconWrapper,
799
+ ownerState: w,
800
+ children: u
948
801
  })]
949
802
  });
950
803
  });
951
- process.env.NODE_ENV !== "production" && (ie.propTypes = {
804
+ process.env.NODE_ENV !== "production" && (te.propTypes = {
952
805
  // ┌────────────────────────────── Warning ──────────────────────────────┐
953
806
  // │ These PropTypes are generated from the TypeScript type definitions. │
954
807
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -956,19 +809,19 @@ process.env.NODE_ENV !== "production" && (ie.propTypes = {
956
809
  /**
957
810
  * The content of the component.
958
811
  */
959
- children: t.node,
812
+ children: e.node,
960
813
  /**
961
814
  * Override or extend the styles applied to the component.
962
815
  */
963
- classes: t.object,
816
+ classes: e.object,
964
817
  /**
965
818
  * @ignore
966
819
  */
967
- className: t.string,
820
+ className: e.string,
968
821
  /**
969
822
  * The icon to display as the expand indicator.
970
823
  */
971
- expandIcon: t.node,
824
+ expandIcon: e.node,
972
825
  /**
973
826
  * This prop can help identify which element has keyboard focus.
974
827
  * The class name will be applied when the element gains the focus through keyboard interaction.
@@ -977,57 +830,57 @@ process.env.NODE_ENV !== "production" && (ie.propTypes = {
977
830
  * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
978
831
  * if needed.
979
832
  */
980
- focusVisibleClassName: t.string,
833
+ focusVisibleClassName: e.string,
981
834
  /**
982
835
  * @ignore
983
836
  */
984
- onClick: t.func,
837
+ onClick: e.func,
985
838
  /**
986
839
  * The system prop that allows defining system overrides as well as additional CSS styles.
987
840
  */
988
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
841
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
989
842
  });
990
- const me = Oe(/* @__PURE__ */ m("path", {
843
+ const de = De(/* @__PURE__ */ i("path", {
991
844
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
992
845
  }), "ExpandMore");
993
- function To() {
994
- const o = Re(xe);
846
+ function uo() {
847
+ const o = ye(be);
995
848
  if (!o || !o.preferences)
996
849
  return null;
997
- const r = o.preferences.notifications.sort((n, s) => n.title.localeCompare(s.title)).map((n) => {
998
- var f, u, E;
999
- const s = (f = o.preferences) == null ? void 0 : f.preferences.filter(
850
+ const t = o.preferences.notifications.sort((n, s) => n.title.localeCompare(s.title)).map((n) => {
851
+ var u, d, m;
852
+ const s = (u = o.preferences) == null ? void 0 : u.preferences.filter(
1000
853
  (a) => a.notificationId === n.notificationId && !a.subNotificationId
1001
- ), c = (u = o.preferences) == null ? void 0 : u.preferences.filter(
854
+ ), c = (d = o.preferences) == null ? void 0 : d.preferences.filter(
1002
855
  (a) => a.notificationId === n.notificationId && a.subNotificationId
1003
- ), p = (E = o.preferences) == null ? void 0 : E.subNotifications.filter(
856
+ ), l = (m = o.preferences) == null ? void 0 : m.subNotifications.filter(
1004
857
  (a) => c == null ? void 0 : c.find(
1005
- (y) => y.subNotificationId === a.subNotificationId
858
+ (g) => g.subNotificationId === a.subNotificationId
1006
859
  )
1007
860
  );
1008
861
  return /* @__PURE__ */ G(
1009
- re,
862
+ ee,
1010
863
  {
1011
864
  style: {
1012
865
  marginBottom: 0,
1013
866
  marginTop: 0
1014
867
  },
1015
868
  children: [
1016
- /* @__PURE__ */ m(
1017
- ie,
869
+ /* @__PURE__ */ i(
870
+ te,
1018
871
  {
1019
- expandIcon: /* @__PURE__ */ m(me, {}),
872
+ expandIcon: /* @__PURE__ */ i(de, {}),
1020
873
  style: {
1021
874
  backgroundColor: "#f0f0f0",
1022
875
  flexDirection: "row-reverse",
1023
876
  gap: 16
1024
877
  },
1025
- children: /* @__PURE__ */ m(ue, { variant: "body1", children: n.title })
878
+ children: /* @__PURE__ */ i(ce, { variant: "body1", children: n.title })
1026
879
  }
1027
880
  ),
1028
- /* @__PURE__ */ m(ne, { children: /* @__PURE__ */ G(Ce, { children: [
1029
- /* @__PURE__ */ m(
1030
- ce,
881
+ /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ G(he, { children: [
882
+ /* @__PURE__ */ i(
883
+ ie,
1031
884
  {
1032
885
  notification: n,
1033
886
  preferences: s || [],
@@ -1035,26 +888,26 @@ function To() {
1035
888
  },
1036
889
  n.notificationId
1037
890
  ),
1038
- p == null ? void 0 : p.map((a) => /* @__PURE__ */ G(
1039
- re,
891
+ l == null ? void 0 : l.map((a) => /* @__PURE__ */ G(
892
+ ee,
1040
893
  {
1041
894
  style: {
1042
895
  marginTop: 12
1043
896
  },
1044
897
  children: [
1045
- /* @__PURE__ */ m(
1046
- ie,
898
+ /* @__PURE__ */ i(
899
+ te,
1047
900
  {
1048
- expandIcon: /* @__PURE__ */ m(me, {}),
901
+ expandIcon: /* @__PURE__ */ i(de, {}),
1049
902
  style: {
1050
903
  flexDirection: "row-reverse",
1051
904
  gap: 16
1052
905
  },
1053
- children: /* @__PURE__ */ m(ue, { variant: "body1", children: a.title })
906
+ children: /* @__PURE__ */ i(ce, { variant: "body1", children: a.title })
1054
907
  }
1055
908
  ),
1056
- /* @__PURE__ */ m(ne, { children: /* @__PURE__ */ m(
1057
- ce,
909
+ /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ i(
910
+ ie,
1058
911
  {
1059
912
  notification: n,
1060
913
  preferences: c || [],
@@ -1073,8 +926,8 @@ function To() {
1073
926
  n.notificationId
1074
927
  );
1075
928
  });
1076
- return /* @__PURE__ */ m(De, { sx: { borderRadius: 2, overflow: "hidden" }, children: r });
929
+ return /* @__PURE__ */ i(Me, { sx: { borderRadius: 2, overflow: "hidden" }, children: t });
1077
930
  }
1078
931
  export {
1079
- To as Preferences
932
+ uo as Preferences
1080
933
  };