@blocklet/ui-react 3.0.9 → 3.0.10

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 (51) hide show
  1. package/lib/BlockletStudio/index.js +70 -71
  2. package/lib/ComponentInstaller/index.js +85 -88
  3. package/lib/ComponentInstaller/installer-item.js +47 -53
  4. package/lib/ComponentInstaller/use-component-installed.js +32 -38
  5. package/lib/ComponentManager/components/add-component.js +47 -50
  6. package/lib/ComponentManager/components/publish-component.js +30 -31
  7. package/lib/ComponentManager/components/resource-dialog.js +28 -30
  8. package/lib/Dashboard/index.d.ts +1 -1
  9. package/lib/Dashboard/index.js +59 -61
  10. package/lib/Footer/index.js +51 -52
  11. package/lib/Footer/internal-footer.js +43 -47
  12. package/lib/Footer/layout/standard.js +11 -12
  13. package/lib/Footer/links.js +25 -28
  14. package/lib/Footer/social-media.js +17 -17
  15. package/lib/Header/index.js +81 -83
  16. package/lib/Notifications/Snackbar.js +76 -77
  17. package/lib/Notifications/hooks/use-title.js +34 -34
  18. package/lib/Notifications/utils.js +56 -60
  19. package/lib/UserCenter/components/config-inviter.js +17 -18
  20. package/lib/UserCenter/components/danger-zone.js +49 -52
  21. package/lib/UserCenter/components/nft.js +44 -45
  22. package/lib/UserCenter/components/notification.js +92 -99
  23. package/lib/UserCenter/components/passport.js +22 -22
  24. package/lib/UserCenter/components/privacy.js +6 -6
  25. package/lib/UserCenter/components/settings.js +40 -43
  26. package/lib/UserCenter/components/status-dialog/date-picker.js +7 -8
  27. package/lib/UserCenter/components/status-dialog/index.js +112 -114
  28. package/lib/UserCenter/components/status-selector/duration-menu.js +35 -36
  29. package/lib/UserCenter/components/status-selector/index.js +13 -13
  30. package/lib/UserCenter/components/storage/action.js +21 -22
  31. package/lib/UserCenter/components/storage/delete.js +24 -24
  32. package/lib/UserCenter/components/third-party-login/index.js +53 -53
  33. package/lib/UserCenter/components/third-party-login/third-party-item.js +87 -89
  34. package/lib/UserCenter/components/user-center.js +198 -207
  35. package/lib/UserCenter/components/user-info/metadata.js +343 -353
  36. package/lib/UserCenter/components/user-info/switch-role.js +17 -20
  37. package/lib/UserCenter/components/user-info/user-basic-info.js +79 -82
  38. package/lib/UserCenter/components/user-info/user-info.js +40 -40
  39. package/lib/UserCenter/components/user-info/user-status.js +97 -99
  40. package/lib/UserCenter/components/user-info/utils.js +34 -35
  41. package/lib/UserSessions/components/user-session-info.js +25 -28
  42. package/lib/UserSessions/components/user-sessions.js +169 -181
  43. package/lib/blocklets.js +62 -72
  44. package/lib/common/domain-warning.js +31 -31
  45. package/lib/common/header-addons.d.ts +1 -1
  46. package/lib/common/header-addons.js +49 -53
  47. package/lib/common/notification-addon.js +29 -32
  48. package/lib/common/ws.js +17 -18
  49. package/lib/contexts/config-user-space.js +16 -19
  50. package/lib/utils.js +44 -48
  51. package/package.json +6 -6
@@ -1,139 +1,137 @@
1
- import { jsxs as E, jsx as l } from "react/jsx-runtime";
2
- import { Tooltip as H, Box as z, Badge as B } from "@mui/material";
3
- import U from "@emotion/styled";
4
- import { lazy as d, useState as C, useEffect as q, useCallback as A, useMemo as F, Suspense as L } from "react";
5
- import { useMemoizedFn as T, useInterval as Q, useUnmount as G, useCreation as J } from "ahooks";
6
- import { useLocaleContext as K } from "@arcblock/ux/lib/Locale/context";
7
- import { translate as P } from "@arcblock/ux/lib/Locale/util";
8
- import { formatToDatetime as V } from "@arcblock/ux/lib/Util";
9
- import { StatusEnum as t, DurationEnum as c } from "../../../@types/index.js";
10
- import X from "../status-dialog/index.js";
11
- import { translations as Y } from "../../libs/locales.js";
12
- import { isNotClear as $, isWithinTimeRange as Z, getTimeRemaining as _ } from "./utils.js";
13
- const ee = d(() => import("@arcblock/icons/lib/Meeting")), oe = d(() => import("@arcblock/icons/lib/Community")), ne = d(() => import("@arcblock/icons/lib/Holiday")), te = d(() => import("@arcblock/icons/lib/OffSick")), ie = d(() => import("@arcblock/icons/lib/WorkingRemotely")), I = {
14
- [t.Meeting]: ee,
15
- [t.Community]: oe,
16
- [t.Holiday]: ne,
17
- [t.OffSick]: te,
18
- [t.WorkingRemotely]: ie
19
- }, re = {
20
- [t.Meeting]: {
21
- duration: c.OneHour,
1
+ import { jsxs as w, jsx as s } from "react/jsx-runtime";
2
+ import { Tooltip as E, Box as H, Badge as z } from "@mui/material";
3
+ import B from "@emotion/styled";
4
+ import { lazy as c, useState as k, useEffect as U, useCallback as q, useMemo as A, Suspense as F } from "react";
5
+ import { useMemoizedFn as C, useInterval as L, useUnmount as Q, useCreation as G } from "ahooks";
6
+ import { useLocaleContext as J } from "@arcblock/ux/lib/Locale/context";
7
+ import { translate as K } from "@arcblock/ux/lib/Locale/util";
8
+ import { formatToDatetime as P } from "@arcblock/ux/lib/Util";
9
+ import { StatusEnum as o, DurationEnum as a } from "../../../@types/index.js";
10
+ import V from "../status-dialog/index.js";
11
+ import { translations as X } from "../../libs/locales.js";
12
+ import { isNotClear as T, isWithinTimeRange as Y, getTimeRemaining as Z } from "./utils.js";
13
+ const _ = c(() => import("@arcblock/icons/lib/Meeting")), tt = c(() => import("@arcblock/icons/lib/Community")), et = c(() => import("@arcblock/icons/lib/Holiday")), ot = c(() => import("@arcblock/icons/lib/OffSick")), nt = c(() => import("@arcblock/icons/lib/WorkingRemotely")), $ = {
14
+ [o.Meeting]: _,
15
+ [o.Community]: tt,
16
+ [o.Holiday]: et,
17
+ [o.OffSick]: ot,
18
+ [o.WorkingRemotely]: nt
19
+ }, it = {
20
+ [o.Meeting]: {
21
+ duration: a.OneHour,
22
22
  durationName: "userStatus.duration.OneHour"
23
23
  },
24
- [t.Community]: {
25
- duration: c.ThirtyMinutes,
24
+ [o.Community]: {
25
+ duration: a.ThirtyMinutes,
26
26
  durationName: "userStatus.duration.ThirtyMinutes"
27
27
  },
28
- [t.Holiday]: {
29
- duration: c.ThisWeek,
28
+ [o.Holiday]: {
29
+ duration: a.ThisWeek,
30
30
  durationName: "userStatus.duration.ThisWeek"
31
31
  },
32
- [t.OffSick]: {
33
- duration: c.Today,
32
+ [o.OffSick]: {
33
+ duration: a.Today,
34
34
  durationName: "userStatus.duration.Today"
35
35
  },
36
- [t.WorkingRemotely]: {
37
- duration: c.ThisWeek,
36
+ [o.WorkingRemotely]: {
37
+ duration: a.ThisWeek,
38
38
  durationName: "userStatus.duration.ThisWeek"
39
39
  }
40
40
  };
41
- function ye({
42
- isMobile: o = void 0,
43
- size: R,
44
- isMyself: g,
45
- status: e,
46
- onChange: s,
47
- timezone: W = void 0
41
+ function vt({
42
+ isMobile: t = void 0,
43
+ size: I,
44
+ isMyself: h,
45
+ status: i,
46
+ onChange: d,
47
+ timezone: R = void 0
48
48
  }) {
49
- const { locale: m } = K(), u = T((n, i = {}) => P(Y, n, m, "en", i)), [b, p] = C(void 0), f = T(() => {
50
- p(void 0);
49
+ const { locale: l } = J(), u = C((n, e = {}) => K(X, n, l, "en", e)), [W, m] = k(void 0), p = C(() => {
50
+ m(void 0);
51
51
  });
52
- q(() => {
53
- p(1e3);
54
- }, [e]);
55
- const N = Q(() => {
56
- var n;
57
- if (e != null && e.value && ((n = e == null ? void 0 : e.dateRange) == null ? void 0 : n.length) === 2) {
58
- if ($(e))
52
+ U(() => {
53
+ m(1e3);
54
+ }, [i]);
55
+ const b = L(() => {
56
+ if (i?.value && i?.dateRange?.length === 2) {
57
+ if (T(i))
59
58
  return;
60
- if (!Z(e.dateRange))
61
- f(), s(void 0);
59
+ if (!Y(i.dateRange))
60
+ p(), d(void 0);
62
61
  else {
63
- const a = _(e.dateRange[1]);
64
- a > 0 ? p(a) : (f(), s(void 0));
62
+ const r = Z(i.dateRange[1]);
63
+ r > 0 ? m(r) : (p(), d(void 0));
65
64
  }
66
65
  } else
67
- f();
68
- }, b);
69
- G(() => {
70
- N();
66
+ p();
67
+ }, W);
68
+ Q(() => {
69
+ b();
71
70
  });
72
- const [O, S] = C(null), x = A(() => Object.keys(c).map((i) => ({
73
- id: c[i],
74
- name: u(`userStatus.duration.${i}`)
75
- })), [u]), h = J(() => {
76
- const n = x();
77
- return Object.keys(t).map((i) => {
78
- const r = re[t[i]];
71
+ const [N, g] = k(null), S = q(() => Object.keys(a).map((e) => ({
72
+ id: a[e],
73
+ name: u(`userStatus.duration.${e}`)
74
+ })), [u]), f = G(() => {
75
+ const n = S();
76
+ return Object.keys(o).map((e) => {
77
+ const r = it[o[e]];
79
78
  return {
80
- id: t[i],
81
- name: u(`userStatus.${i}`),
82
- icon: I[t[i]],
79
+ id: o[e],
80
+ name: u(`userStatus.${e}`),
81
+ icon: $[o[e]],
83
82
  ...r ? { duration: r.duration, durationName: u(r.durationName) } : {},
84
83
  children: n
85
84
  };
86
85
  });
87
- }, [u, x, m]), D = (n) => {
88
- g && S(n.currentTarget);
89
- }, v = () => {
90
- S(null);
91
- }, j = (n) => {
92
- g && (s(n), v());
93
- }, y = I[e == null ? void 0 : e.value], M = F(() => {
94
- var i;
95
- const n = h.find((r) => r.id === (e == null ? void 0 : e.value));
86
+ }, [u, S, l]), O = (n) => {
87
+ h && g(n.currentTarget);
88
+ }, x = () => {
89
+ g(null);
90
+ }, D = (n) => {
91
+ h && (d(n), x());
92
+ }, v = $[i?.value], j = A(() => {
93
+ const n = f.find((e) => e.id === i?.value);
96
94
  if (n) {
97
- const r = m === "zh" ? "zh-cn" : "en-us";
98
- let a;
99
- return $(e) || (a = (i = e == null ? void 0 : e.dateRange) == null ? void 0 : i.map((w) => V(w, { locale: r }))), a && a.length > 0 ? `${n.name}: ${a.join("~")}` : n.name;
95
+ const e = l === "zh" ? "zh-cn" : "en-us";
96
+ let r;
97
+ return T(i) || (r = i?.dateRange?.map((M) => P(M, { locale: e }))), r && r.length > 0 ? `${n.name}: ${r.join("~")}` : n.name;
100
98
  }
101
99
  return null;
102
- }, [e, h, m]), k = !!O;
103
- return /* @__PURE__ */ E(ae, { size: R, isMobile: o, children: [
104
- /* @__PURE__ */ l(H, { title: M, children: /* @__PURE__ */ l(
105
- z,
100
+ }, [i, f, l]), y = !!N;
101
+ return /* @__PURE__ */ w(rt, { size: I, isMobile: t, children: [
102
+ /* @__PURE__ */ s(E, { title: j, children: /* @__PURE__ */ s(
103
+ H,
106
104
  {
107
105
  className: "status-icon",
108
- onClick: D,
106
+ onClick: O,
109
107
  sx: {
110
108
  display: "flex",
111
109
  alignItems: "center",
112
110
  justifyContent: "center"
113
111
  },
114
- children: y ? /* @__PURE__ */ l(L, { fallback: null, children: /* @__PURE__ */ l(y, { style: { width: 16, height: 16 } }) }) : /* @__PURE__ */ l(B, { color: "success", variant: "dot" })
112
+ children: v ? /* @__PURE__ */ s(F, { fallback: null, children: /* @__PURE__ */ s(v, { style: { width: 16, height: 16 } }) }) : /* @__PURE__ */ s(z, { color: "success", variant: "dot" })
115
113
  }
116
114
  ) }),
117
- k && /* @__PURE__ */ l(
118
- X,
115
+ y && /* @__PURE__ */ s(
116
+ V,
119
117
  {
120
- selected: e,
121
- data: h,
122
- open: k,
123
- onSelect: j,
124
- onClose: v,
125
- timezone: W
118
+ selected: i,
119
+ data: f,
120
+ open: y,
121
+ onSelect: D,
122
+ onClose: x,
123
+ timezone: R
126
124
  }
127
125
  )
128
126
  ] });
129
127
  }
130
- const ae = U("div")`
128
+ const rt = B("div")`
131
129
  position: absolute;
132
- left: ${({ size: o }) => `${o * 3 / 4}px`};
133
- top: ${({ size: o }) => `${o * 0.65}px`};
134
- width: ${({ isMobile: o }) => o ? "22px" : "32px"};
135
- height: ${({ isMobile: o }) => o ? "22px" : "32px"};
136
- border-radius: ${({ isMobile: o }) => o ? "11px" : "16px"};
130
+ left: ${({ size: t }) => `${t * 3 / 4}px`};
131
+ top: ${({ size: t }) => `${t * 0.65}px`};
132
+ width: ${({ isMobile: t }) => t ? "22px" : "32px"};
133
+ height: ${({ isMobile: t }) => t ? "22px" : "32px"};
134
+ border-radius: ${({ isMobile: t }) => t ? "11px" : "16px"};
137
135
  display: flex;
138
136
  align-items: center;
139
137
  justify-content: center;
@@ -144,12 +142,12 @@ const ae = U("div")`
144
142
 
145
143
  .status-icon {
146
144
  flex-shrink: 0;
147
- width: ${({ isMobile: o }) => o ? "16px" : "26px"};
148
- height: ${({ isMobile: o }) => o ? "16px" : "26px"};
149
- border-radius: ${({ isMobile: o }) => o ? "8px" : "13px"};
145
+ width: ${({ isMobile: t }) => t ? "16px" : "26px"};
146
+ height: ${({ isMobile: t }) => t ? "16px" : "26px"};
147
+ border-radius: ${({ isMobile: t }) => t ? "8px" : "13px"};
150
148
  background-color: #eff1f5;
151
149
  }
152
150
  `;
153
151
  export {
154
- ye as default
152
+ vt as default
155
153
  };
@@ -1,10 +1,10 @@
1
- import a from "dayjs";
1
+ import n from "dayjs";
2
2
  import T from "dayjs/plugin/timezone";
3
3
  import g from "dayjs/plugin/utc";
4
- import { DurationEnum as i } from "../../../@types/index.js";
5
- a.extend(g);
6
- a.extend(T);
7
- const l = 3600, u = 1800, m = 600, d = 300, f = 60, p = 1, M = a.tz.guess(), A = [
4
+ import { DurationEnum as s } from "../../../@types/index.js";
5
+ n.extend(g);
6
+ n.extend(T);
7
+ const u = 3600, l = 1800, m = 600, d = 300, f = 60, p = 1, M = n.tz.guess(), A = [
8
8
  "America/New_York",
9
9
  "America/Chicago",
10
10
  "America/Denver",
@@ -43,51 +43,50 @@ const l = 3600, u = 1800, m = 600, d = 300, f = 60, p = 1, M = a.tz.guess(), A =
43
43
  return A;
44
44
  }, I = () => h().map((e) => {
45
45
  try {
46
- const t = a.tz(a(), e).utcOffset() / 60, n = Math.floor(t), s = t % 1 * 60;
47
- return { label: `GMT${n >= 0 ? "+" : ""}${n}:${s === 30 ? "30" : "00"}`, value: e };
46
+ const t = n.tz(n(), e).utcOffset() / 60, a = Math.floor(t), i = t % 1 * 60;
47
+ return { label: `GMT${a >= 0 ? "+" : ""}${a}:${i === 30 ? "30" : "00"}`, value: e };
48
48
  } catch {
49
49
  return console.warn(`Timezone ${e} not supported, skipping`), null;
50
50
  }
51
51
  }).filter((e) => e !== null).sort((e, t) => {
52
- const [n, s] = e.label.replace("GMT", "").split(":").map(Number), [c, b] = t.label.replace("GMT", "").split(":").map(Number), y = n * 60 + s;
52
+ const [a, i] = e.label.replace("GMT", "").split(":").map(Number), [c, b] = t.label.replace("GMT", "").split(":").map(Number), y = a * 60 + i;
53
53
  return c * 60 + b - y;
54
54
  }).map((e) => ({
55
55
  label: `(${e.label}) ${e.value}`,
56
56
  value: e.value
57
- })), N = (r) => /^(https?:\/\/)?((([a-zA-Z\d]([a-zA-Z\d-]*[a-zA-Z\d])*)\.)+[a-zA-Z]{2,}|((\d{1,3}\.){3}\d{1,3}))(:\d+)?(\/[-a-zA-Z\d%_.~+]*)*(\?[;&a-zA-Z\d%_.~+=-]*)?(#[a-zA-Z\d_]*)?$/.test(r), _ = (r) => {
58
- var t;
59
- let o = ((t = r == null ? void 0 : r.dateRange) == null ? void 0 : t.map((n) => a(n))) ?? [];
60
- const e = a();
61
- switch (r == null ? void 0 : r.duration) {
62
- case i.ThirtyMinutes:
63
- o = [e, e.add(30, "minutes")];
57
+ })), N = (o) => /^(https?:\/\/)?((([a-zA-Z\d]([a-zA-Z\d-]*[a-zA-Z\d])*)\.)+[a-zA-Z]{2,}|((\d{1,3}\.){3}\d{1,3}))(:\d+)?(\/[-a-zA-Z\d%_.~+]*)*(\?[;&a-zA-Z\d%_.~+=-]*)?(#[a-zA-Z\d_]*)?$/.test(o), _ = (o) => {
58
+ let r = o?.dateRange?.map((t) => n(t)) ?? [];
59
+ const e = n();
60
+ switch (o?.duration) {
61
+ case s.ThirtyMinutes:
62
+ r = [e, e.add(30, "minutes")];
64
63
  break;
65
- case i.OneHour:
66
- o = [e, e.add(1, "hour")];
64
+ case s.OneHour:
65
+ r = [e, e.add(1, "hour")];
67
66
  break;
68
- case i.FourHours:
69
- o = [e, e.add(4, "hours")];
67
+ case s.FourHours:
68
+ r = [e, e.add(4, "hours")];
70
69
  break;
71
- case i.Today:
72
- o = [e, e.endOf("day")];
70
+ case s.Today:
71
+ r = [e, e.endOf("day")];
73
72
  break;
74
- case i.ThisWeek:
75
- o = [e, e.endOf("week")];
73
+ case s.ThisWeek:
74
+ r = [e, e.endOf("week")];
76
75
  break;
77
- case i.NoClear:
78
- o = [e, e];
76
+ case s.NoClear:
77
+ r = [e, e];
79
78
  break;
80
79
  }
81
- return o.map((n) => n.toDate());
82
- }, E = (r) => {
83
- const o = a();
84
- return o.isAfter(a(r[0])) && o.isBefore(a(r[1]));
85
- }, Z = (r) => {
86
- const { duration: o, dateRange: e } = r ?? {};
87
- return !o || !e ? !1 : o === i.NoClear || a(e == null ? void 0 : e[0]).isSame(a(e == null ? void 0 : e[1]));
88
- }, v = (r) => {
89
- const o = a(), t = a(r).diff(o, "seconds"), n = (s) => s * 1e3;
90
- return t >= l ? n(l) : t >= u ? n(u) : t >= m ? n(m) : t >= d ? n(d) : t >= f ? n(f) : t >= p ? n(p) : 0;
80
+ return r.map((t) => t.toDate());
81
+ }, E = (o) => {
82
+ const r = n();
83
+ return r.isAfter(n(o[0])) && r.isBefore(n(o[1]));
84
+ }, Z = (o) => {
85
+ const { duration: r, dateRange: e } = o ?? {};
86
+ return !r || !e ? !1 : r === s.NoClear || n(e?.[0]).isSame(n(e?.[1]));
87
+ }, v = (o) => {
88
+ const r = n(), t = n(o).diff(r, "seconds"), a = (i) => i * 1e3;
89
+ return t >= u ? a(u) : t >= l ? a(l) : t >= m ? a(m) : t >= d ? a(d) : t >= f ? a(f) : t >= p ? a(p) : 0;
91
90
  }, w = {
92
91
  color: "text.primary",
93
92
  borderColor: "grey.100",
@@ -1,14 +1,11 @@
1
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
- import { Box as e, Tooltip as p, Typography as d, Chip as f } from "@mui/material";
3
- import x from "@arcblock/ux/lib/Avatar";
4
- import { useCreation as h } from "ahooks";
5
- function w({ user: t, sessionUser: l }) {
6
- const a = h(() => {
7
- var o;
8
- return (o = (t == null ? void 0 : t.passports) || []) == null ? void 0 : o.find((n) => n.name === l.role);
9
- }, [t == null ? void 0 : t.passports, l == null ? void 0 : l.role]);
10
- return /* @__PURE__ */ r(
11
- e,
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { Box as t, Tooltip as o, Typography as n, Chip as d } from "@mui/material";
3
+ import f from "@arcblock/ux/lib/Avatar";
4
+ import { useCreation as c } from "ahooks";
5
+ function g({ user: i, sessionUser: e }) {
6
+ const a = c(() => (i?.passports || [])?.find((p) => p.name === e.role), [i?.passports, e?.role]);
7
+ return /* @__PURE__ */ l(
8
+ t,
12
9
  {
13
10
  sx: {
14
11
  display: "flex",
@@ -16,20 +13,20 @@ function w({ user: t, sessionUser: l }) {
16
13
  gap: 1
17
14
  },
18
15
  children: [
19
- /* @__PURE__ */ i(
20
- x,
16
+ /* @__PURE__ */ r(
17
+ f,
21
18
  {
22
19
  size: 40,
23
20
  variant: "circle",
24
21
  shape: "circle",
25
- src: l.avatar,
26
- did: l.did,
22
+ src: e.avatar,
23
+ did: e.did,
27
24
  sx: { flexShrink: 0 }
28
25
  }
29
26
  ),
30
- /* @__PURE__ */ r(e, { sx: { flex: 1, overflow: "hidden" }, children: [
31
- /* @__PURE__ */ r(
32
- e,
27
+ /* @__PURE__ */ l(t, { sx: { flex: 1, overflow: "hidden" }, children: [
28
+ /* @__PURE__ */ l(
29
+ t,
33
30
  {
34
31
  sx: {
35
32
  display: "flex",
@@ -37,8 +34,8 @@ function w({ user: t, sessionUser: l }) {
37
34
  gap: 1
38
35
  },
39
36
  children: [
40
- /* @__PURE__ */ i(p, { title: l.fullName, children: /* @__PURE__ */ i(
41
- d,
37
+ /* @__PURE__ */ r(o, { title: e.fullName, children: /* @__PURE__ */ r(
38
+ n,
42
39
  {
43
40
  sx: {
44
41
  whiteSpace: "nowrap",
@@ -46,13 +43,13 @@ function w({ user: t, sessionUser: l }) {
46
43
  textOverflow: "ellipsis",
47
44
  flex: 1
48
45
  },
49
- children: l.fullName
46
+ children: e.fullName
50
47
  }
51
48
  ) }),
52
- /* @__PURE__ */ i(
53
- f,
49
+ /* @__PURE__ */ r(
50
+ d,
54
51
  {
55
- label: (a == null ? void 0 : a.title) || (a == null ? void 0 : a.name) || "Guest",
52
+ label: a?.title || a?.name || "Guest",
56
53
  size: "small",
57
54
  variant: "outlined",
58
55
  sx: {
@@ -72,8 +69,8 @@ function w({ user: t, sessionUser: l }) {
72
69
  ]
73
70
  }
74
71
  ),
75
- /* @__PURE__ */ i(p, { title: l.email, children: /* @__PURE__ */ i(
76
- d,
72
+ /* @__PURE__ */ r(o, { title: e.email, children: /* @__PURE__ */ r(
73
+ n,
77
74
  {
78
75
  variant: "body2",
79
76
  color: "grey",
@@ -82,7 +79,7 @@ function w({ user: t, sessionUser: l }) {
82
79
  overflow: "hidden",
83
80
  textOverflow: "ellipsis"
84
81
  },
85
- children: l.email
82
+ children: e.email
86
83
  }
87
84
  ) })
88
85
  ] })
@@ -91,5 +88,5 @@ function w({ user: t, sessionUser: l }) {
91
88
  );
92
89
  }
93
90
  export {
94
- w as default
91
+ g as default
95
92
  };