@burdenoff/microfe-workspaces 2026.1114.1 → 2026.1114.2

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