@burdenoff/microfe-workspaces 2026.510.50 → 2026.512.1
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/dist/generated/wspace-operations.d.ts +91 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +79 -51
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/hooks/useMemberMutations.d.ts.map +1 -1
- package/dist/hooks/useMemberMutations.js +141 -60
- package/dist/hooks/useMemberMutations.js.map +1 -1
- package/dist/hooks/useProjectMutations.d.ts.map +1 -1
- package/dist/hooks/useProjectMutations.js +84 -44
- package/dist/hooks/useProjectMutations.js.map +1 -1
- package/dist/hooks/useWorkspaceMutations.d.ts.map +1 -1
- package/dist/hooks/useWorkspaceMutations.js +64 -29
- package/dist/hooks/useWorkspaceMutations.js.map +1 -1
- package/dist/hooks/useWorkspacesEventEmitter.d.ts +5 -1
- package/dist/hooks/useWorkspacesEventEmitter.d.ts.map +1 -1
- package/dist/hooks/useWorkspacesEventEmitter.js +8 -7
- package/dist/hooks/useWorkspacesEventEmitter.js.map +1 -1
- package/dist/hooks/useWorkspacesPageView.d.ts +27 -0
- package/dist/hooks/useWorkspacesPageView.d.ts.map +1 -0
- package/dist/hooks/useWorkspacesPageView.js +29 -0
- package/dist/hooks/useWorkspacesPageView.js.map +1 -0
- package/dist/pages/ActivityListPage.d.ts.map +1 -1
- package/dist/pages/ActivityListPage.js +59 -56
- package/dist/pages/ActivityListPage.js.map +1 -1
- package/dist/pages/CreateWorkspacePage.d.ts.map +1 -1
- package/dist/pages/CreateWorkspacePage.js +104 -104
- package/dist/pages/CreateWorkspacePage.js.map +1 -1
- package/dist/pages/InviteAcceptancePage.d.ts.map +1 -1
- package/dist/pages/InviteAcceptancePage.js +197 -216
- package/dist/pages/InviteAcceptancePage.js.map +1 -1
- package/dist/pages/MembersListPage.d.ts.map +1 -1
- package/dist/pages/MembersListPage.js +142 -138
- package/dist/pages/MembersListPage.js.map +1 -1
- package/dist/pages/ProjectDetailPage.d.ts.map +1 -1
- package/dist/pages/ProjectDetailPage.js +181 -176
- package/dist/pages/ProjectDetailPage.js.map +1 -1
- package/dist/pages/ProjectsListPage.d.ts.map +1 -1
- package/dist/pages/ProjectsListPage.js +175 -171
- package/dist/pages/ProjectsListPage.js.map +1 -1
- package/dist/pages/WorkspaceDetailPage.d.ts.map +1 -1
- package/dist/pages/WorkspaceDetailPage.js +104 -101
- package/dist/pages/WorkspaceDetailPage.js.map +1 -1
- package/dist/pages/WorkspaceSettingsPage.d.ts.map +1 -1
- package/dist/pages/WorkspaceSettingsPage.js +182 -137
- package/dist/pages/WorkspaceSettingsPage.js.map +1 -1
- package/dist/pages/WorkspacesListPage.d.ts.map +1 -1
- package/dist/pages/WorkspacesListPage.js +77 -77
- package/dist/pages/WorkspacesListPage.js.map +1 -1
- package/dist/pages/dashboard/DashboardCustomizer.d.ts.map +1 -1
- package/dist/pages/dashboard/DashboardCustomizer.js +53 -55
- package/dist/pages/dashboard/DashboardCustomizer.js.map +1 -1
- package/dist/pages/dashboard/DashboardGrid.d.ts.map +1 -1
- package/dist/pages/dashboard/DashboardGrid.js +33 -36
- package/dist/pages/dashboard/DashboardGrid.js.map +1 -1
- package/dist/pages/dashboard/DashboardPage.d.ts.map +1 -1
- package/dist/pages/dashboard/DashboardPage.js +67 -65
- package/dist/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/pages/dashboard/WidgetWrapper.d.ts.map +1 -1
- package/dist/pages/dashboard/WidgetWrapper.js +3 -6
- package/dist/pages/dashboard/WidgetWrapper.js.map +1 -1
- package/dist/utils/i18n.d.ts +13 -0
- package/dist/utils/i18n.d.ts.map +1 -0
- package/dist/utils/i18n.js +12 -0
- package/dist/utils/i18n.js.map +1 -0
- package/dist/utils/telemetryError.d.ts +2 -0
- package/dist/utils/telemetryError.d.ts.map +1 -0
- package/dist/utils/telemetryError.js +28 -0
- package/dist/utils/telemetryError.js.map +1 -0
- package/package.json +9 -4
|
@@ -1,58 +1,57 @@
|
|
|
1
1
|
import { useWorkspacesContext as e } from "../providers/WorkspacesProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { tWithFallback as t } from "../utils/i18n.js";
|
|
3
|
+
import { useWorkspacesPageView as n } from "../hooks/useWorkspacesPageView.js";
|
|
4
|
+
import { useInvitation as r } from "../hooks/useWorkspaceMembers.js";
|
|
5
|
+
import { useAcceptInvitation as i, useRejectInvitation as a } from "../hooks/useMemberMutations.js";
|
|
6
|
+
import { AlertTriangle as o, Ban as s, CheckCircle as c, Clock as l, Home as u, Mail as d, RefreshCw as f, XCircle as p } from "lucide-react";
|
|
7
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
|
+
import { Badge as _, Button as v, Card as y, CardContent as b, CardDescription as x, CardHeader as S, CardTitle as C, Skeleton as w } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { useLocation as T, useNavigate as E, useParams as D } from "react-router-dom";
|
|
10
|
+
import { useI18n as O } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
10
11
|
//#region src/pages/InviteAcceptancePage.tsx
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return n === e ? t : n;
|
|
15
|
-
}, [a]), { invitationId: C } = E(), O = w(), I = T(), { authToken: L } = e(), R = C || O.pathname.split("/").filter(Boolean).at(-1) || "", z = !!L, B = R ? `/auth/login?returnTo=${encodeURIComponent(`/workspaces/invite/${R}`)}` : "/auth/login?returnTo=%2Fworkspaces%2Flist", { data: V, isLoading: H, error: U, refetch: W } = t(R || "", z), { mutate: G, isPending: K } = n(), { mutate: q, isPending: J } = r(), Y = () => {
|
|
12
|
+
function k() {
|
|
13
|
+
n("workspaces.invite");
|
|
14
|
+
let { t: o } = O(), { invitationId: s } = D(), w = T(), k = E(), { authToken: L } = e(), R = s || w.pathname.split("/").filter(Boolean).at(-1) || "", z = !!L, B = R ? `/auth/login?returnTo=${encodeURIComponent(`/workspaces/invite/${R}`)}` : "/auth/login?returnTo=%2Fworkspaces%2Flist", { data: V, isLoading: H, error: U, refetch: W } = r(R || "", z), { mutate: G, isPending: K } = i(), { mutate: q, isPending: J } = a(), Y = () => {
|
|
16
15
|
R && G(R, {
|
|
17
16
|
onSuccess: (e) => {
|
|
18
17
|
let t = e.workspaceId || V?.workspaceId;
|
|
19
|
-
|
|
18
|
+
k(t ? `/workspaces/${t}/members` : "/workspaces/list");
|
|
20
19
|
},
|
|
21
20
|
onError: (e) => {
|
|
22
21
|
console.error("Failed to accept invitation:", e);
|
|
23
22
|
}
|
|
24
23
|
});
|
|
25
24
|
};
|
|
26
|
-
if (!z) return /* @__PURE__ */
|
|
25
|
+
if (!z) return /* @__PURE__ */ h("div", {
|
|
27
26
|
className: "min-h-screen flex items-center justify-center bg-muted/30 p-4",
|
|
28
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ g(y, {
|
|
29
28
|
className: "max-w-xl w-full",
|
|
30
|
-
children: [/* @__PURE__ */
|
|
29
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
31
30
|
className: "flex items-center gap-3",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
31
|
+
children: [/* @__PURE__ */ h("div", {
|
|
33
32
|
className: "rounded-lg bg-primary/10 p-3",
|
|
34
|
-
children: /* @__PURE__ */
|
|
33
|
+
children: /* @__PURE__ */ h(d, {
|
|
35
34
|
className: "text-primary",
|
|
36
35
|
size: 24
|
|
37
36
|
})
|
|
38
|
-
}), /* @__PURE__ */
|
|
39
|
-
}) }), /* @__PURE__ */
|
|
37
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(C, { children: t(o, "inviteAcceptance.signInRequired", "Sign in to view your invitation") }), /* @__PURE__ */ h(x, { children: t(o, "inviteAcceptance.signInDescription", "Workspace invitations require an authenticated Burdenoff account before you can review or accept them.") })] })]
|
|
38
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
40
39
|
className: "space-y-4",
|
|
41
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ h("p", {
|
|
42
41
|
className: "text-sm text-muted-foreground",
|
|
43
|
-
children: o
|
|
44
|
-
}), /* @__PURE__ */
|
|
42
|
+
children: t(o, "inviteAcceptance.signInHint", "Use the same email address that received the invitation, then come back here to accept or reject it.")
|
|
43
|
+
}), /* @__PURE__ */ g("div", {
|
|
45
44
|
className: "flex flex-col gap-3 sm:flex-row",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
45
|
+
children: [/* @__PURE__ */ h(v, {
|
|
47
46
|
asChild: !0,
|
|
48
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ h("a", {
|
|
49
48
|
href: B,
|
|
50
|
-
children: o
|
|
49
|
+
children: t(o, "inviteAcceptance.signInButton", "Sign In")
|
|
51
50
|
})
|
|
52
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ g(v, {
|
|
53
52
|
variant: "outline",
|
|
54
|
-
onClick: () =>
|
|
55
|
-
children: [/* @__PURE__ */
|
|
53
|
+
onClick: () => k("/workspaces/list"),
|
|
54
|
+
children: [/* @__PURE__ */ h(u, { className: "mr-2 h-4 w-4" }), t(o, "inviteAcceptance.backToWorkspaces", "Back to Workspaces")]
|
|
56
55
|
})]
|
|
57
56
|
})]
|
|
58
57
|
})]
|
|
@@ -61,58 +60,58 @@ function O() {
|
|
|
61
60
|
let X = () => {
|
|
62
61
|
R && q(R, {
|
|
63
62
|
onSuccess: () => {
|
|
64
|
-
|
|
63
|
+
k("/workspaces/list");
|
|
65
64
|
},
|
|
66
65
|
onError: (e) => {
|
|
67
66
|
console.error("Failed to reject invitation:", e);
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
};
|
|
71
|
-
if (H) return /* @__PURE__ */
|
|
72
|
-
if (U) return /* @__PURE__ */
|
|
70
|
+
if (H) return /* @__PURE__ */ h(A, {});
|
|
71
|
+
if (U) return /* @__PURE__ */ h(j, {
|
|
73
72
|
error: U,
|
|
74
73
|
onRetry: () => W()
|
|
75
74
|
});
|
|
76
|
-
if (!V) return /* @__PURE__ */
|
|
75
|
+
if (!V) return /* @__PURE__ */ h(M, {});
|
|
77
76
|
switch (V.status) {
|
|
78
|
-
case "ACCEPTED": return /* @__PURE__ */
|
|
79
|
-
case "REJECTED": return /* @__PURE__ */
|
|
80
|
-
case "EXPIRED": return /* @__PURE__ */
|
|
81
|
-
case "CANCELLED": return /* @__PURE__ */
|
|
82
|
-
case "PENDING": return V.expiresAt && new Date(V.expiresAt) < /* @__PURE__ */ new Date() ? /* @__PURE__ */
|
|
77
|
+
case "ACCEPTED": return /* @__PURE__ */ h(N, { invitation: V });
|
|
78
|
+
case "REJECTED": return /* @__PURE__ */ h(P, { invitation: V });
|
|
79
|
+
case "EXPIRED": return /* @__PURE__ */ h(F, { invitation: V });
|
|
80
|
+
case "CANCELLED": return /* @__PURE__ */ h(I, { invitation: V });
|
|
81
|
+
case "PENDING": return V.expiresAt && new Date(V.expiresAt) < /* @__PURE__ */ new Date() ? /* @__PURE__ */ h(F, { invitation: V }) : /* @__PURE__ */ h("div", {
|
|
83
82
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
84
|
-
children: /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ g(y, {
|
|
85
84
|
className: "max-w-2xl w-full",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
87
86
|
className: "flex items-center gap-3",
|
|
88
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ h("div", {
|
|
89
88
|
className: "p-3 rounded-lg bg-primary/10",
|
|
90
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ h(d, {
|
|
91
90
|
className: "text-primary",
|
|
92
91
|
size: 24
|
|
93
92
|
})
|
|
94
|
-
}), /* @__PURE__ */
|
|
93
|
+
}), /* @__PURE__ */ g("div", {
|
|
95
94
|
className: "flex-1",
|
|
96
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ h(C, { children: t(o, "inviteAcceptance.pageTitle", "Workspace Invitation") }), /* @__PURE__ */ h(x, { children: t(o, "inviteAcceptance.pageSubtitle", "You've been invited to join a workspace") })]
|
|
97
96
|
})]
|
|
98
|
-
}) }), /* @__PURE__ */
|
|
97
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
99
98
|
className: "space-y-6",
|
|
100
|
-
children: [/* @__PURE__ */
|
|
99
|
+
children: [/* @__PURE__ */ g("div", {
|
|
101
100
|
className: "space-y-4 p-4 rounded-lg bg-muted/50",
|
|
102
101
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
104
103
|
className: "text-sm font-medium text-muted-foreground",
|
|
105
|
-
children: o
|
|
106
|
-
}), /* @__PURE__ */
|
|
104
|
+
children: t(o, "inviteAcceptance.emailAddressLabel", "Email Address")
|
|
105
|
+
}), /* @__PURE__ */ h("p", {
|
|
107
106
|
className: "text-lg font-medium mt-1",
|
|
108
107
|
children: V.email
|
|
109
108
|
})] }),
|
|
110
|
-
V.expiresAt && /* @__PURE__ */
|
|
109
|
+
V.expiresAt && /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
111
110
|
className: "text-sm font-medium text-muted-foreground",
|
|
112
|
-
children: o
|
|
113
|
-
}), /* @__PURE__ */
|
|
111
|
+
children: t(o, "inviteAcceptance.expiresLabel", "Expires")
|
|
112
|
+
}), /* @__PURE__ */ g("p", {
|
|
114
113
|
className: "text-lg font-medium mt-1 flex items-center gap-2",
|
|
115
|
-
children: [/* @__PURE__ */
|
|
114
|
+
children: [/* @__PURE__ */ h(l, {
|
|
116
115
|
size: 16,
|
|
117
116
|
className: "text-muted-foreground"
|
|
118
117
|
}), new Date(V.expiresAt).toLocaleDateString("en-US", {
|
|
@@ -123,302 +122,287 @@ function O() {
|
|
|
123
122
|
minute: "2-digit"
|
|
124
123
|
})]
|
|
125
124
|
})] }),
|
|
126
|
-
V.roleIds && V.roleIds.length > 0 && /* @__PURE__ */
|
|
125
|
+
V.roleIds && V.roleIds.length > 0 && /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
127
126
|
className: "text-sm font-medium text-muted-foreground mb-2",
|
|
128
|
-
children: o
|
|
129
|
-
}), /* @__PURE__ */
|
|
127
|
+
children: t(o, "inviteAcceptance.rolesLabel", "Roles")
|
|
128
|
+
}), /* @__PURE__ */ h("div", {
|
|
130
129
|
className: "flex flex-wrap gap-2",
|
|
131
|
-
children: V.roleIds.map((e) => /* @__PURE__ */
|
|
130
|
+
children: V.roleIds.map((e) => /* @__PURE__ */ h(_, {
|
|
132
131
|
variant: "secondary",
|
|
133
132
|
children: e
|
|
134
133
|
}, e))
|
|
135
134
|
})] }),
|
|
136
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
137
136
|
className: "text-sm font-medium text-muted-foreground",
|
|
138
|
-
children: o
|
|
139
|
-
}), /* @__PURE__ */
|
|
137
|
+
children: t(o, "inviteAcceptance.invitationIdLabel", "Invitation ID")
|
|
138
|
+
}), /* @__PURE__ */ h("p", {
|
|
140
139
|
className: "text-sm font-mono mt-1 text-muted-foreground",
|
|
141
140
|
children: V.id
|
|
142
141
|
})] })
|
|
143
142
|
]
|
|
144
|
-
}), /* @__PURE__ */
|
|
143
|
+
}), /* @__PURE__ */ g("div", {
|
|
145
144
|
className: "flex flex-col sm:flex-row gap-3 pt-4 border-t",
|
|
146
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ h(v, {
|
|
147
146
|
onClick: Y,
|
|
148
147
|
disabled: K || J,
|
|
149
148
|
className: "flex-1",
|
|
150
149
|
size: "lg",
|
|
151
|
-
children: K ? /* @__PURE__ */
|
|
152
|
-
}), /* @__PURE__ */
|
|
150
|
+
children: K ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(f, { className: "mr-2 h-4 w-4 animate-spin" }), t(o, "inviteAcceptance.accepting", "Accepting...")] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(c, { className: "mr-2 h-4 w-4" }), t(o, "inviteAcceptance.acceptButton", "Accept Invitation")] })
|
|
151
|
+
}), /* @__PURE__ */ h(v, {
|
|
153
152
|
variant: "outline",
|
|
154
153
|
onClick: X,
|
|
155
154
|
disabled: K || J,
|
|
156
155
|
className: "flex-1",
|
|
157
156
|
size: "lg",
|
|
158
|
-
children: J ? /* @__PURE__ */
|
|
157
|
+
children: J ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(f, { className: "mr-2 h-4 w-4 animate-spin" }), t(o, "inviteAcceptance.rejecting", "Rejecting...")] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(p, { className: "mr-2 h-4 w-4" }), t(o, "inviteAcceptance.rejectButton", "Reject")] })
|
|
159
158
|
})]
|
|
160
159
|
})]
|
|
161
160
|
})]
|
|
162
161
|
})
|
|
163
162
|
});
|
|
164
|
-
default: return /* @__PURE__ */
|
|
163
|
+
default: return /* @__PURE__ */ h(M, {});
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
|
-
function
|
|
168
|
-
return /* @__PURE__ */
|
|
166
|
+
function A() {
|
|
167
|
+
return /* @__PURE__ */ h("div", {
|
|
169
168
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
170
|
-
children: /* @__PURE__ */
|
|
169
|
+
children: /* @__PURE__ */ g(y, {
|
|
171
170
|
className: "max-w-2xl w-full",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
173
172
|
className: "flex items-center gap-3",
|
|
174
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ h(w, { className: "h-12 w-12 rounded-lg" }), /* @__PURE__ */ g("div", {
|
|
175
174
|
className: "flex-1 space-y-2",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
175
|
+
children: [/* @__PURE__ */ h(w, { className: "h-6 w-48" }), /* @__PURE__ */ h(w, { className: "h-4 w-64" })]
|
|
177
176
|
})]
|
|
178
|
-
}) }), /* @__PURE__ */
|
|
177
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
179
178
|
className: "space-y-6",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ g("div", {
|
|
181
180
|
className: "space-y-4 p-4 rounded-lg bg-muted/50",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ g("div", {
|
|
183
182
|
className: "space-y-2",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
185
|
-
}), /* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ h(w, { className: "h-4 w-24" }), /* @__PURE__ */ h(w, { className: "h-6 w-48" })]
|
|
184
|
+
}), /* @__PURE__ */ g("div", {
|
|
186
185
|
className: "space-y-2",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ h(w, { className: "h-4 w-24" }), /* @__PURE__ */ h(w, { className: "h-6 w-64" })]
|
|
188
187
|
})]
|
|
189
|
-
}), /* @__PURE__ */
|
|
188
|
+
}), /* @__PURE__ */ g("div", {
|
|
190
189
|
className: "flex gap-3 pt-4",
|
|
191
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ h(w, { className: "h-12 flex-1" }), /* @__PURE__ */ h(w, { className: "h-12 flex-1" })]
|
|
192
191
|
})]
|
|
193
192
|
})]
|
|
194
193
|
})
|
|
195
194
|
});
|
|
196
195
|
}
|
|
197
|
-
function
|
|
198
|
-
let { t:
|
|
199
|
-
|
|
200
|
-
return r === e ? t : r;
|
|
201
|
-
}, [n]);
|
|
202
|
-
return /* @__PURE__ */ m("div", {
|
|
196
|
+
function j({ error: e, onRetry: n }) {
|
|
197
|
+
let { t: r } = O();
|
|
198
|
+
return /* @__PURE__ */ h("div", {
|
|
203
199
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
204
|
-
children: /* @__PURE__ */
|
|
200
|
+
children: /* @__PURE__ */ g(y, {
|
|
205
201
|
className: "max-w-2xl w-full",
|
|
206
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
207
203
|
className: "flex items-center gap-3",
|
|
208
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ h("div", {
|
|
209
205
|
className: "p-3 rounded-lg bg-destructive/10",
|
|
210
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ h(o, {
|
|
211
207
|
className: "text-destructive",
|
|
212
208
|
size: 24
|
|
213
209
|
})
|
|
214
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ g("div", {
|
|
215
211
|
className: "flex-1",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
212
|
+
children: [/* @__PURE__ */ h(C, { children: t(r, "inviteAcceptance.errorTitle", "Error Loading Invitation") }), /* @__PURE__ */ h(x, { children: t(r, "inviteAcceptance.errorDescription", "We couldn't load this invitation. Please try again.") })]
|
|
217
213
|
})]
|
|
218
|
-
}) }), /* @__PURE__ */
|
|
214
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
219
215
|
className: "space-y-4",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ g("div", {
|
|
221
217
|
className: "flex gap-3 p-4 rounded-lg border border-destructive/50 bg-destructive/10",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
218
|
+
children: [/* @__PURE__ */ h(o, { className: "h-5 w-5 text-destructive flex-shrink-0 mt-0.5" }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
223
219
|
className: "font-medium text-destructive",
|
|
224
|
-
children: r
|
|
225
|
-
}), /* @__PURE__ */
|
|
220
|
+
children: t(r, "inviteAcceptance.errorDetailsLabel", "Error Details")
|
|
221
|
+
}), /* @__PURE__ */ h("p", {
|
|
226
222
|
className: "text-sm mt-1 text-destructive/90",
|
|
227
223
|
children: e.message
|
|
228
224
|
})] })]
|
|
229
|
-
}), /* @__PURE__ */
|
|
225
|
+
}), /* @__PURE__ */ g("div", {
|
|
230
226
|
className: "flex gap-3",
|
|
231
|
-
children: [/* @__PURE__ */
|
|
232
|
-
onClick:
|
|
227
|
+
children: [/* @__PURE__ */ g(v, {
|
|
228
|
+
onClick: n,
|
|
233
229
|
className: "flex-1",
|
|
234
|
-
children: [/* @__PURE__ */
|
|
235
|
-
}), /* @__PURE__ */
|
|
230
|
+
children: [/* @__PURE__ */ h(f, { className: "mr-2 h-4 w-4" }), t(r, "inviteAcceptance.tryAgain", "Try Again")]
|
|
231
|
+
}), /* @__PURE__ */ g(v, {
|
|
236
232
|
variant: "outline",
|
|
237
233
|
onClick: () => window.location.href = "/workspaces/list",
|
|
238
234
|
className: "flex-1",
|
|
239
|
-
children: [/* @__PURE__ */
|
|
235
|
+
children: [/* @__PURE__ */ h(u, { className: "mr-2 h-4 w-4" }), t(r, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
|
|
240
236
|
})]
|
|
241
237
|
})]
|
|
242
238
|
})]
|
|
243
239
|
})
|
|
244
240
|
});
|
|
245
241
|
}
|
|
246
|
-
function
|
|
247
|
-
let { t: e } =
|
|
248
|
-
|
|
249
|
-
return r === t ? n : r;
|
|
250
|
-
}, [e]);
|
|
251
|
-
return /* @__PURE__ */ m("div", {
|
|
242
|
+
function M() {
|
|
243
|
+
let { t: e } = O();
|
|
244
|
+
return /* @__PURE__ */ h("div", {
|
|
252
245
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
253
|
-
children: /* @__PURE__ */
|
|
246
|
+
children: /* @__PURE__ */ g(y, {
|
|
254
247
|
className: "max-w-2xl w-full",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
256
249
|
className: "flex items-center gap-3",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ h("div", {
|
|
258
251
|
className: "p-3 rounded-lg bg-muted",
|
|
259
|
-
children: /* @__PURE__ */
|
|
252
|
+
children: /* @__PURE__ */ h(o, {
|
|
260
253
|
className: "text-muted-foreground",
|
|
261
254
|
size: 24
|
|
262
255
|
})
|
|
263
|
-
}), /* @__PURE__ */
|
|
256
|
+
}), /* @__PURE__ */ g("div", {
|
|
264
257
|
className: "flex-1",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ h(C, { children: t(e, "inviteAcceptance.notFoundTitle", "Invitation Not Found") }), /* @__PURE__ */ h(x, { children: t(e, "inviteAcceptance.notFoundDescription", "This invitation link is invalid or has been removed") })]
|
|
266
259
|
})]
|
|
267
|
-
}) }), /* @__PURE__ */
|
|
260
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
268
261
|
className: "space-y-4",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ g("div", {
|
|
270
263
|
className: "flex gap-3 p-4 rounded-lg border border-border bg-muted/50",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ h(o, { className: "h-5 w-5 text-muted-foreground flex-shrink-0 mt-0.5" }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
272
265
|
className: "font-medium",
|
|
273
|
-
children: t("inviteAcceptance.invalidLinkHeading", "Invalid Invitation Link")
|
|
274
|
-
}), /* @__PURE__ */
|
|
266
|
+
children: t(e, "inviteAcceptance.invalidLinkHeading", "Invalid Invitation Link")
|
|
267
|
+
}), /* @__PURE__ */ h("p", {
|
|
275
268
|
className: "text-sm mt-1 text-muted-foreground",
|
|
276
|
-
children: t("inviteAcceptance.invalidLinkBody", "The invitation you're trying to access doesn't exist. It may have been deleted or the link is incorrect.")
|
|
269
|
+
children: t(e, "inviteAcceptance.invalidLinkBody", "The invitation you're trying to access doesn't exist. It may have been deleted or the link is incorrect.")
|
|
277
270
|
})] })]
|
|
278
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ g(v, {
|
|
279
272
|
onClick: () => window.location.href = "/workspaces/list",
|
|
280
273
|
className: "w-full",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ h(u, { className: "mr-2 h-4 w-4" }), t(e, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
|
|
282
275
|
})]
|
|
283
276
|
})]
|
|
284
277
|
})
|
|
285
278
|
});
|
|
286
279
|
}
|
|
287
|
-
function
|
|
288
|
-
let { t } =
|
|
289
|
-
|
|
290
|
-
return r === e ? n : r;
|
|
291
|
-
}, [t]);
|
|
292
|
-
return /* @__PURE__ */ m("div", {
|
|
280
|
+
function N({ invitation: e }) {
|
|
281
|
+
let { t: n } = O();
|
|
282
|
+
return /* @__PURE__ */ h("div", {
|
|
293
283
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
294
|
-
children: /* @__PURE__ */
|
|
284
|
+
children: /* @__PURE__ */ g(y, {
|
|
295
285
|
className: "max-w-2xl w-full",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
286
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
297
287
|
className: "flex items-center gap-3",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ h("div", {
|
|
299
289
|
className: "p-3 rounded-lg bg-status-success/10 transition-colors",
|
|
300
|
-
children: /* @__PURE__ */
|
|
290
|
+
children: /* @__PURE__ */ h(c, {
|
|
301
291
|
className: "text-status-success",
|
|
302
292
|
size: 24
|
|
303
293
|
})
|
|
304
|
-
}), /* @__PURE__ */
|
|
294
|
+
}), /* @__PURE__ */ g("div", {
|
|
305
295
|
className: "flex-1",
|
|
306
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ h(C, { children: t(n, "inviteAcceptance.alreadyAcceptedTitle", "Invitation Already Accepted") }), /* @__PURE__ */ h(x, { children: t(n, "inviteAcceptance.alreadyAcceptedDescription", "This invitation has already been accepted") })]
|
|
307
297
|
})]
|
|
308
|
-
}) }), /* @__PURE__ */
|
|
298
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
309
299
|
className: "space-y-4",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ g("div", {
|
|
311
301
|
className: "flex gap-3 p-4 rounded-lg border border-status-success/30 bg-status-success/10 transition-colors",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ h(c, { className: "h-5 w-5 text-status-success flex-shrink-0 mt-0.5" }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
313
303
|
className: "font-medium text-status-success",
|
|
314
|
-
children: n
|
|
315
|
-
}), /* @__PURE__ */
|
|
304
|
+
children: t(n, "inviteAcceptance.alreadyMember", "You're already a member")
|
|
305
|
+
}), /* @__PURE__ */ g("p", {
|
|
316
306
|
className: "text-sm mt-1 text-status-success/80",
|
|
317
307
|
children: [
|
|
318
|
-
n
|
|
319
|
-
/* @__PURE__ */
|
|
308
|
+
t(n, "inviteAcceptance.alreadyAcceptedPrefix", "This invitation to "),
|
|
309
|
+
/* @__PURE__ */ h("span", {
|
|
320
310
|
className: "font-medium",
|
|
321
311
|
children: e.email
|
|
322
312
|
}),
|
|
323
|
-
n
|
|
313
|
+
t(n, "inviteAcceptance.alreadyAcceptedSuffix", " has already been accepted.")
|
|
324
314
|
]
|
|
325
315
|
})] })]
|
|
326
|
-
}), /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ h(v, {
|
|
327
317
|
onClick: () => window.location.href = `/workspaces/${e.workspaceId}/members`,
|
|
328
318
|
className: "w-full",
|
|
329
|
-
children: n
|
|
319
|
+
children: t(n, "inviteAcceptance.goToWorkspace", "Go to Workspace")
|
|
330
320
|
})]
|
|
331
321
|
})]
|
|
332
322
|
})
|
|
333
323
|
});
|
|
334
324
|
}
|
|
335
|
-
function
|
|
336
|
-
let { t } =
|
|
337
|
-
|
|
338
|
-
return r === e ? n : r;
|
|
339
|
-
}, [t]);
|
|
340
|
-
return /* @__PURE__ */ m("div", {
|
|
325
|
+
function P({ invitation: e }) {
|
|
326
|
+
let { t: n } = O();
|
|
327
|
+
return /* @__PURE__ */ h("div", {
|
|
341
328
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
342
|
-
children: /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ g(y, {
|
|
343
330
|
className: "max-w-2xl w-full",
|
|
344
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
345
332
|
className: "flex items-center gap-3",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
333
|
+
children: [/* @__PURE__ */ h("div", {
|
|
347
334
|
className: "p-3 rounded-lg bg-muted",
|
|
348
|
-
children: /* @__PURE__ */
|
|
335
|
+
children: /* @__PURE__ */ h(p, {
|
|
349
336
|
className: "text-muted-foreground",
|
|
350
337
|
size: 24
|
|
351
338
|
})
|
|
352
|
-
}), /* @__PURE__ */
|
|
339
|
+
}), /* @__PURE__ */ g("div", {
|
|
353
340
|
className: "flex-1",
|
|
354
|
-
children: [/* @__PURE__ */
|
|
341
|
+
children: [/* @__PURE__ */ h(C, { children: t(n, "inviteAcceptance.rejectedTitle", "Invitation Rejected") }), /* @__PURE__ */ h(x, { children: t(n, "inviteAcceptance.rejectedDescription", "You've already declined this invitation") })]
|
|
355
342
|
})]
|
|
356
|
-
}) }), /* @__PURE__ */
|
|
343
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
357
344
|
className: "space-y-4",
|
|
358
|
-
children: [/* @__PURE__ */
|
|
345
|
+
children: [/* @__PURE__ */ g("div", {
|
|
359
346
|
className: "flex gap-3 p-4 rounded-lg border border-border bg-muted/50",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
347
|
+
children: [/* @__PURE__ */ h(p, { className: "h-5 w-5 text-muted-foreground flex-shrink-0 mt-0.5" }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
361
348
|
className: "font-medium",
|
|
362
|
-
children: n
|
|
363
|
-
}), /* @__PURE__ */
|
|
349
|
+
children: t(n, "inviteAcceptance.invitationDeclined", "Invitation Declined")
|
|
350
|
+
}), /* @__PURE__ */ g("p", {
|
|
364
351
|
className: "text-sm mt-1 text-muted-foreground",
|
|
365
352
|
children: [
|
|
366
|
-
n
|
|
367
|
-
/* @__PURE__ */
|
|
353
|
+
t(n, "inviteAcceptance.rejectedPrefix", "This invitation to "),
|
|
354
|
+
/* @__PURE__ */ h("span", {
|
|
368
355
|
className: "font-medium",
|
|
369
356
|
children: e.email
|
|
370
357
|
}),
|
|
371
|
-
n
|
|
358
|
+
t(n, "inviteAcceptance.rejectedSuffix", " was previously rejected.")
|
|
372
359
|
]
|
|
373
360
|
})] })]
|
|
374
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ g(v, {
|
|
375
362
|
onClick: () => window.location.href = "/workspaces/list",
|
|
376
363
|
className: "w-full",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
364
|
+
children: [/* @__PURE__ */ h(u, { className: "mr-2 h-4 w-4" }), t(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
|
|
378
365
|
})]
|
|
379
366
|
})]
|
|
380
367
|
})
|
|
381
368
|
});
|
|
382
369
|
}
|
|
383
|
-
function
|
|
384
|
-
let { t } =
|
|
385
|
-
|
|
386
|
-
return r === e ? n : r;
|
|
387
|
-
}, [t]);
|
|
388
|
-
return /* @__PURE__ */ m("div", {
|
|
370
|
+
function F({ invitation: e }) {
|
|
371
|
+
let { t: n } = O();
|
|
372
|
+
return /* @__PURE__ */ h("div", {
|
|
389
373
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
390
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ g(y, {
|
|
391
375
|
className: "max-w-2xl w-full",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
393
377
|
className: "flex items-center gap-3",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ h("div", {
|
|
395
379
|
className: "p-3 rounded-lg bg-status-warning/10 transition-colors",
|
|
396
|
-
children: /* @__PURE__ */
|
|
380
|
+
children: /* @__PURE__ */ h(l, {
|
|
397
381
|
className: "text-status-warning",
|
|
398
382
|
size: 24
|
|
399
383
|
})
|
|
400
|
-
}), /* @__PURE__ */
|
|
384
|
+
}), /* @__PURE__ */ g("div", {
|
|
401
385
|
className: "flex-1",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ h(C, { children: t(n, "inviteAcceptance.expiredTitle", "Invitation Expired") }), /* @__PURE__ */ h(x, { children: t(n, "inviteAcceptance.expiredDescription", "This invitation has expired") })]
|
|
403
387
|
})]
|
|
404
|
-
}) }), /* @__PURE__ */
|
|
388
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
405
389
|
className: "space-y-4",
|
|
406
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ g("div", {
|
|
407
391
|
className: "flex gap-3 p-4 rounded-lg border border-status-warning/30 bg-status-warning/10 transition-colors",
|
|
408
|
-
children: [/* @__PURE__ */
|
|
409
|
-
/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ h(l, { className: "h-5 w-5 text-status-warning flex-shrink-0 mt-0.5" }), /* @__PURE__ */ g("div", { children: [
|
|
393
|
+
/* @__PURE__ */ h("p", {
|
|
410
394
|
className: "font-medium text-status-warning",
|
|
411
|
-
children: n
|
|
395
|
+
children: t(n, "inviteAcceptance.expiredHeading", "Invitation No Longer Valid")
|
|
412
396
|
}),
|
|
413
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ g("p", {
|
|
414
398
|
className: "text-sm mt-1 text-status-warning/80",
|
|
415
399
|
children: [
|
|
416
|
-
n
|
|
417
|
-
/* @__PURE__ */
|
|
400
|
+
t(n, "inviteAcceptance.expiredPrefix", "This invitation to "),
|
|
401
|
+
/* @__PURE__ */ h("span", {
|
|
418
402
|
className: "font-medium",
|
|
419
403
|
children: e.email
|
|
420
404
|
}),
|
|
421
|
-
n
|
|
405
|
+
t(n, "inviteAcceptance.expiredMiddle", " expired on "),
|
|
422
406
|
e.expiresAt && new Date(e.expiresAt).toLocaleDateString("en-US", {
|
|
423
407
|
year: "numeric",
|
|
424
408
|
month: "long",
|
|
@@ -427,69 +411,66 @@ function P({ invitation: e }) {
|
|
|
427
411
|
"."
|
|
428
412
|
]
|
|
429
413
|
}),
|
|
430
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ h("p", {
|
|
431
415
|
className: "text-sm mt-2 text-status-warning/80",
|
|
432
|
-
children: n
|
|
416
|
+
children: t(n, "inviteAcceptance.expiredContactAdmin", "Please contact the workspace admin to request a new invitation.")
|
|
433
417
|
})
|
|
434
418
|
] })]
|
|
435
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ g(v, {
|
|
436
420
|
onClick: () => window.location.href = "/workspaces/list",
|
|
437
421
|
className: "w-full",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
422
|
+
children: [/* @__PURE__ */ h(u, { className: "mr-2 h-4 w-4" }), t(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
|
|
439
423
|
})]
|
|
440
424
|
})]
|
|
441
425
|
})
|
|
442
426
|
});
|
|
443
427
|
}
|
|
444
|
-
function
|
|
445
|
-
let { t } =
|
|
446
|
-
|
|
447
|
-
return r === e ? n : r;
|
|
448
|
-
}, [t]);
|
|
449
|
-
return /* @__PURE__ */ m("div", {
|
|
428
|
+
function I({ invitation: e }) {
|
|
429
|
+
let { t: n } = O();
|
|
430
|
+
return /* @__PURE__ */ h("div", {
|
|
450
431
|
className: "min-h-screen flex items-center justify-center p-4 bg-muted/30",
|
|
451
|
-
children: /* @__PURE__ */
|
|
432
|
+
children: /* @__PURE__ */ g(y, {
|
|
452
433
|
className: "max-w-2xl w-full",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
434
|
+
children: [/* @__PURE__ */ h(S, { children: /* @__PURE__ */ g("div", {
|
|
454
435
|
className: "flex items-center gap-3",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
436
|
+
children: [/* @__PURE__ */ h("div", {
|
|
456
437
|
className: "p-3 rounded-lg bg-destructive/10",
|
|
457
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ h(s, {
|
|
458
439
|
className: "text-destructive",
|
|
459
440
|
size: 24
|
|
460
441
|
})
|
|
461
|
-
}), /* @__PURE__ */
|
|
442
|
+
}), /* @__PURE__ */ g("div", {
|
|
462
443
|
className: "flex-1",
|
|
463
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ h(C, { children: t(n, "inviteAcceptance.cancelledTitle", "Invitation Cancelled") }), /* @__PURE__ */ h(x, { children: t(n, "inviteAcceptance.cancelledDescription", "This invitation has been cancelled by the sender") })]
|
|
464
445
|
})]
|
|
465
|
-
}) }), /* @__PURE__ */
|
|
446
|
+
}) }), /* @__PURE__ */ g(b, {
|
|
466
447
|
className: "space-y-4",
|
|
467
|
-
children: [/* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ g("div", {
|
|
468
449
|
className: "flex gap-3 p-4 rounded-lg border border-destructive/50 bg-destructive/10",
|
|
469
|
-
children: [/* @__PURE__ */
|
|
450
|
+
children: [/* @__PURE__ */ h(s, { className: "h-5 w-5 text-destructive flex-shrink-0 mt-0.5" }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
470
451
|
className: "font-medium text-destructive",
|
|
471
|
-
children: n
|
|
472
|
-
}), /* @__PURE__ */
|
|
452
|
+
children: t(n, "inviteAcceptance.cancelledHeading", "Invitation No Longer Available")
|
|
453
|
+
}), /* @__PURE__ */ g("p", {
|
|
473
454
|
className: "text-sm mt-1 text-destructive/90",
|
|
474
455
|
children: [
|
|
475
|
-
n
|
|
476
|
-
/* @__PURE__ */
|
|
456
|
+
t(n, "inviteAcceptance.cancelledPrefix", "This invitation to "),
|
|
457
|
+
/* @__PURE__ */ h("span", {
|
|
477
458
|
className: "font-medium",
|
|
478
459
|
children: e.email
|
|
479
460
|
}),
|
|
480
|
-
n
|
|
461
|
+
t(n, "inviteAcceptance.cancelledSuffix", " was cancelled by the workspace admin and is no longer valid.")
|
|
481
462
|
]
|
|
482
463
|
})] })]
|
|
483
|
-
}), /* @__PURE__ */
|
|
464
|
+
}), /* @__PURE__ */ g(v, {
|
|
484
465
|
onClick: () => window.location.href = "/workspaces/list",
|
|
485
466
|
className: "w-full",
|
|
486
|
-
children: [/* @__PURE__ */
|
|
467
|
+
children: [/* @__PURE__ */ h(u, { className: "mr-2 h-4 w-4" }), t(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
|
|
487
468
|
})]
|
|
488
469
|
})]
|
|
489
470
|
})
|
|
490
471
|
});
|
|
491
472
|
}
|
|
492
473
|
//#endregion
|
|
493
|
-
export {
|
|
474
|
+
export { k as InviteAcceptancePage };
|
|
494
475
|
|
|
495
476
|
//# sourceMappingURL=InviteAcceptancePage.js.map
|