@blocklet/ui-react 3.0.9 → 3.0.11
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/lib/BlockletStudio/index.js +70 -71
- package/lib/ComponentInstaller/index.js +85 -88
- package/lib/ComponentInstaller/installer-item.js +47 -53
- package/lib/ComponentInstaller/use-component-installed.js +32 -38
- package/lib/ComponentManager/components/add-component.js +47 -50
- package/lib/ComponentManager/components/publish-component.js +30 -31
- package/lib/ComponentManager/components/resource-dialog.js +28 -30
- package/lib/Dashboard/index.d.ts +1 -1
- package/lib/Dashboard/index.js +59 -61
- package/lib/Footer/index.js +51 -52
- package/lib/Footer/internal-footer.js +43 -47
- package/lib/Footer/layout/standard.js +11 -12
- package/lib/Footer/links.js +25 -28
- package/lib/Footer/social-media.js +17 -17
- package/lib/Header/index.js +81 -83
- package/lib/Notifications/Snackbar.js +76 -77
- package/lib/Notifications/hooks/use-title.js +34 -34
- package/lib/Notifications/utils.js +56 -60
- package/lib/UserCenter/components/config-inviter.js +17 -18
- package/lib/UserCenter/components/danger-zone.js +49 -52
- package/lib/UserCenter/components/nft.js +44 -45
- package/lib/UserCenter/components/notification.js +92 -99
- package/lib/UserCenter/components/passport.js +22 -22
- package/lib/UserCenter/components/privacy.js +6 -6
- package/lib/UserCenter/components/settings.js +40 -43
- package/lib/UserCenter/components/status-dialog/date-picker.js +7 -8
- package/lib/UserCenter/components/status-dialog/index.js +112 -114
- package/lib/UserCenter/components/status-selector/duration-menu.js +35 -36
- package/lib/UserCenter/components/status-selector/index.js +13 -13
- package/lib/UserCenter/components/storage/action.js +21 -22
- package/lib/UserCenter/components/storage/delete.js +24 -24
- package/lib/UserCenter/components/third-party-login/index.js +53 -53
- package/lib/UserCenter/components/third-party-login/third-party-item.js +87 -89
- package/lib/UserCenter/components/user-center.js +198 -207
- package/lib/UserCenter/components/user-info/metadata.js +343 -353
- package/lib/UserCenter/components/user-info/switch-role.js +17 -20
- package/lib/UserCenter/components/user-info/user-basic-info.js +79 -82
- package/lib/UserCenter/components/user-info/user-info.js +40 -40
- package/lib/UserCenter/components/user-info/user-status.js +97 -99
- package/lib/UserCenter/components/user-info/utils.js +34 -35
- package/lib/UserSessions/components/user-session-info.js +25 -28
- package/lib/UserSessions/components/user-sessions.js +169 -181
- package/lib/blocklets.js +62 -72
- package/lib/common/domain-warning.js +31 -31
- package/lib/common/header-addons.d.ts +1 -1
- package/lib/common/header-addons.js +49 -53
- package/lib/common/notification-addon.js +29 -32
- package/lib/common/ws.js +17 -18
- package/lib/contexts/config-user-space.js +16 -19
- package/lib/utils.js +44 -48
- package/package.json +11 -11
|
@@ -1,139 +1,137 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import
|
|
4
|
-
import { lazy as
|
|
5
|
-
import { useMemoizedFn as
|
|
6
|
-
import { useLocaleContext as
|
|
7
|
-
import { translate as
|
|
8
|
-
import { formatToDatetime as
|
|
9
|
-
import { StatusEnum as
|
|
10
|
-
import
|
|
11
|
-
import { translations as
|
|
12
|
-
import { isNotClear as
|
|
13
|
-
const
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
},
|
|
20
|
-
[
|
|
21
|
-
duration:
|
|
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
|
-
[
|
|
25
|
-
duration:
|
|
24
|
+
[o.Community]: {
|
|
25
|
+
duration: a.ThirtyMinutes,
|
|
26
26
|
durationName: "userStatus.duration.ThirtyMinutes"
|
|
27
27
|
},
|
|
28
|
-
[
|
|
29
|
-
duration:
|
|
28
|
+
[o.Holiday]: {
|
|
29
|
+
duration: a.ThisWeek,
|
|
30
30
|
durationName: "userStatus.duration.ThisWeek"
|
|
31
31
|
},
|
|
32
|
-
[
|
|
33
|
-
duration:
|
|
32
|
+
[o.OffSick]: {
|
|
33
|
+
duration: a.Today,
|
|
34
34
|
durationName: "userStatus.duration.Today"
|
|
35
35
|
},
|
|
36
|
-
[
|
|
37
|
-
duration:
|
|
36
|
+
[o.WorkingRemotely]: {
|
|
37
|
+
duration: a.ThisWeek,
|
|
38
38
|
durationName: "userStatus.duration.ThisWeek"
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
function
|
|
42
|
-
isMobile:
|
|
43
|
-
size:
|
|
44
|
-
isMyself:
|
|
45
|
-
status:
|
|
46
|
-
onChange:
|
|
47
|
-
timezone:
|
|
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:
|
|
50
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
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 (!
|
|
61
|
-
|
|
59
|
+
if (!Y(i.dateRange))
|
|
60
|
+
p(), d(void 0);
|
|
62
61
|
else {
|
|
63
|
-
const
|
|
64
|
-
|
|
62
|
+
const r = Z(i.dateRange[1]);
|
|
63
|
+
r > 0 ? m(r) : (p(), d(void 0));
|
|
65
64
|
}
|
|
66
65
|
} else
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
p();
|
|
67
|
+
}, W);
|
|
68
|
+
Q(() => {
|
|
69
|
+
b();
|
|
71
70
|
});
|
|
72
|
-
const [
|
|
73
|
-
id:
|
|
74
|
-
name: u(`userStatus.duration.${
|
|
75
|
-
})), [u]),
|
|
76
|
-
const n =
|
|
77
|
-
return Object.keys(
|
|
78
|
-
const r =
|
|
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:
|
|
81
|
-
name: u(`userStatus.${
|
|
82
|
-
icon:
|
|
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,
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
|
|
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
|
|
98
|
-
let
|
|
99
|
-
return
|
|
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
|
-
}, [
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
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:
|
|
106
|
+
onClick: O,
|
|
109
107
|
sx: {
|
|
110
108
|
display: "flex",
|
|
111
109
|
alignItems: "center",
|
|
112
110
|
justifyContent: "center"
|
|
113
111
|
},
|
|
114
|
-
children:
|
|
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
|
-
|
|
118
|
-
|
|
115
|
+
y && /* @__PURE__ */ s(
|
|
116
|
+
V,
|
|
119
117
|
{
|
|
120
|
-
selected:
|
|
121
|
-
data:
|
|
122
|
-
open:
|
|
123
|
-
onSelect:
|
|
124
|
-
onClose:
|
|
125
|
-
timezone:
|
|
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
|
|
128
|
+
const rt = B("div")`
|
|
131
129
|
position: absolute;
|
|
132
|
-
left: ${({ size:
|
|
133
|
-
top: ${({ size:
|
|
134
|
-
width: ${({ isMobile:
|
|
135
|
-
height: ${({ isMobile:
|
|
136
|
-
border-radius: ${({ isMobile:
|
|
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:
|
|
148
|
-
height: ${({ isMobile:
|
|
149
|
-
border-radius: ${({ isMobile:
|
|
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
|
-
|
|
152
|
+
vt as default
|
|
155
153
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
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 =
|
|
47
|
-
return { label: `GMT${
|
|
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 [
|
|
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 = (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
|
66
|
-
|
|
64
|
+
case s.OneHour:
|
|
65
|
+
r = [e, e.add(1, "hour")];
|
|
67
66
|
break;
|
|
68
|
-
case
|
|
69
|
-
|
|
67
|
+
case s.FourHours:
|
|
68
|
+
r = [e, e.add(4, "hours")];
|
|
70
69
|
break;
|
|
71
|
-
case
|
|
72
|
-
|
|
70
|
+
case s.Today:
|
|
71
|
+
r = [e, e.endOf("day")];
|
|
73
72
|
break;
|
|
74
|
-
case
|
|
75
|
-
|
|
73
|
+
case s.ThisWeek:
|
|
74
|
+
r = [e, e.endOf("week")];
|
|
76
75
|
break;
|
|
77
|
-
case
|
|
78
|
-
|
|
76
|
+
case s.NoClear:
|
|
77
|
+
r = [e, e];
|
|
79
78
|
break;
|
|
80
79
|
}
|
|
81
|
-
return
|
|
82
|
-
}, E = (
|
|
83
|
-
const
|
|
84
|
-
return
|
|
85
|
-
}, Z = (
|
|
86
|
-
const { duration:
|
|
87
|
-
return !
|
|
88
|
-
}, v = (
|
|
89
|
-
const
|
|
90
|
-
return t >=
|
|
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
|
|
2
|
-
import { Box as
|
|
3
|
-
import
|
|
4
|
-
import { useCreation as
|
|
5
|
-
function
|
|
6
|
-
const a =
|
|
7
|
-
|
|
8
|
-
|
|
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__ */
|
|
20
|
-
|
|
16
|
+
/* @__PURE__ */ r(
|
|
17
|
+
f,
|
|
21
18
|
{
|
|
22
19
|
size: 40,
|
|
23
20
|
variant: "circle",
|
|
24
21
|
shape: "circle",
|
|
25
|
-
src:
|
|
26
|
-
did:
|
|
22
|
+
src: e.avatar,
|
|
23
|
+
did: e.did,
|
|
27
24
|
sx: { flexShrink: 0 }
|
|
28
25
|
}
|
|
29
26
|
),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
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__ */
|
|
41
|
-
|
|
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:
|
|
46
|
+
children: e.fullName
|
|
50
47
|
}
|
|
51
48
|
) }),
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
49
|
+
/* @__PURE__ */ r(
|
|
50
|
+
d,
|
|
54
51
|
{
|
|
55
|
-
label:
|
|
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__ */
|
|
76
|
-
|
|
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:
|
|
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
|
-
|
|
91
|
+
g as default
|
|
95
92
|
};
|