@burdenoff/microfe-workspaces 2026.1110.2 → 2026.1114.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.
Files changed (51) hide show
  1. package/dist/WorkspacesRoot.js +31 -25
  2. package/dist/components/CreateProjectDialog.js +81 -78
  3. package/dist/components/CreateWorkspaceDialog.js +41 -41
  4. package/dist/components/InviteMemberDialog.js +54 -54
  5. package/dist/components/MemberListItem.js +53 -53
  6. package/dist/components/ProjectCard.js +82 -82
  7. package/dist/components/ProjectMemberPickerDialog.js +46 -46
  8. package/dist/components/RenameProjectDialog.js +16 -16
  9. package/dist/components/WorkspaceCard.js +18 -18
  10. package/dist/components/WorkspacesErrorBoundary.js +25 -25
  11. package/dist/components/tags/ProjectTagsWidget.js +50 -50
  12. package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +15 -14
  15. package/dist/pages/ActivityListPage.js +30 -30
  16. package/dist/pages/CreateWorkspacePage.js +205 -173
  17. package/dist/pages/InviteAcceptancePage.js +201 -201
  18. package/dist/pages/MembersListPage.js +165 -164
  19. package/dist/pages/PendingInvitesPage.js +67 -67
  20. package/dist/pages/ProjectDetailPage.js +297 -272
  21. package/dist/pages/ProjectMembersPage.js +59 -59
  22. package/dist/pages/ProjectsListPage.js +275 -244
  23. package/dist/pages/WorkspaceDetailPage.js +175 -172
  24. package/dist/pages/WorkspaceInvitePage.js +298 -298
  25. package/dist/pages/WorkspaceSettingsPage.js +48 -48
  26. package/dist/pages/WorkspacesListPage.js +55 -55
  27. package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
  28. package/dist/pages/dashboard/DashboardPage.js +35 -35
  29. package/dist/pages/dashboard/WidgetWrapper.js +21 -21
  30. package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
  31. package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
  32. package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
  33. package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
  34. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
  35. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
  36. package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
  37. package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
  38. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
  39. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
  40. package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
  41. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
  42. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
  43. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
  44. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
  45. package/dist/providers/WorkspacesProvider.d.ts +5 -0
  46. package/dist/providers/WorkspacesProvider.js +2 -2
  47. package/dist/types/index.d.ts +11 -1
  48. package/dist/utils/createForms.d.ts +21 -0
  49. package/dist/utils/createForms.js +20 -0
  50. package/dist/utils/index.d.ts +1 -0
  51. package/package.json +4 -4
@@ -12,13 +12,13 @@ import { useWorkspacesPageView as se } from "../hooks/useWorkspacesPageView.js";
12
12
  import { downloadWorkspaceBulkInviteTemplate as ce, parseWorkspaceBulkInviteCsv as le } from "../utils/workspaceBulkInviteCsv.js";
13
13
  import { useMemo as s, useRef as ue, useState as c } from "react";
14
14
  import { AlertCircle as l, ArrowLeft as de, CheckCircle2 as u, Download as fe, Loader2 as d, Mail as pe, RefreshCw as me, Send as f, Upload as he, UserPlus as ge, XCircle as p } from "lucide-react";
15
- import { PermissionProvider as _e } from "@burdenoff/fe-libs/shared/providers/shell";
16
- import { Fragment as ve, jsx as m, jsxs as h } from "react/jsx-runtime";
17
- import { AlertDialog as ye, AlertDialogAction as be, AlertDialogCancel as xe, AlertDialogContent as Se, AlertDialogDescription as Ce, AlertDialogFooter as we, AlertDialogHeader as Te, AlertDialogTitle as Ee, Badge as g, Button as _, CardContent as v, CardHeader as y, CardTitle as b, Checkbox as x, GlassCard as S, IllustratedEmptyState as De, Input as Oe, NextSteps as ke, PagePurpose as Ae, ResponsiveTable as je, Skeleton as C, Tabs as Me, TabsContent as Ne, TabsList as Pe, TabsTrigger as Fe, Tooltip as w, TooltipContent as T, TooltipProvider as Ie, TooltipTrigger as E } from "@burdenoff/fe-libs/ui";
18
- import { useI18n as Le } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
19
- import { useNavigate as Re, useParams as ze } from "react-router";
15
+ import { AlertDialog as _e, AlertDialogAction as ve, AlertDialogCancel as ye, AlertDialogContent as be, AlertDialogDescription as xe, AlertDialogFooter as Se, AlertDialogHeader as Ce, AlertDialogTitle as we, Badge as m, Button as h, CardContent as g, CardHeader as _, CardTitle as v, Checkbox as y, GlassCard as b, IllustratedEmptyState as Te, Input as Ee, NextSteps as De, PagePurpose as Oe, ResponsiveTable as ke, Skeleton as x, Tabs as Ae, TabsContent as je, TabsList as Me, TabsTrigger as Ne, Tooltip as S, TooltipContent as C, TooltipProvider as w, TooltipTrigger as Pe } from "@burdenoff/fe-libs/ui";
16
+ import { PermissionProvider as T } from "@burdenoff/fe-libs/shared/providers/shell";
17
+ import { Fragment as Fe, jsx as E, jsxs as D } from "react/jsx-runtime";
18
+ import { useI18n as Ie } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
19
+ import { useNavigate as Le, useParams as Re } from "react-router";
20
20
  // src/pages/WorkspaceInvitePage.tsx
21
- var Be = 1048576, D = 500, Ve = [
21
+ var ze = 1048576, O = 500, Be = [
22
22
  {
23
23
  key: "rowNumber",
24
24
  header: "#",
@@ -33,7 +33,7 @@ var Be = 1048576, D = 500, Ve = [
33
33
  priority: "primary",
34
34
  headerClassName: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
35
35
  cellClassName: "text-sm",
36
- cell: (e) => e.email || /* @__PURE__ */ m("span", {
36
+ cell: (e) => e.email || /* @__PURE__ */ E("span", {
37
37
  className: "italic text-text-secondary",
38
38
  children: "(empty)"
39
39
  })
@@ -44,34 +44,34 @@ var Be = 1048576, D = 500, Ve = [
44
44
  priority: "secondary",
45
45
  headerClassName: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
46
46
  cellClassName: "text-xs",
47
- cell: (e) => e.errors.length > 0 ? /* @__PURE__ */ m("div", {
47
+ cell: (e) => e.errors.length > 0 ? /* @__PURE__ */ E("div", {
48
48
  className: "space-y-1 text-status-error-text",
49
- children: e.errors.map((t) => /* @__PURE__ */ h("span", {
49
+ children: e.errors.map((t) => /* @__PURE__ */ D("span", {
50
50
  className: "inline-flex items-center gap-1 pr-3",
51
- children: [/* @__PURE__ */ m(p, { size: 14 }), t]
51
+ children: [/* @__PURE__ */ E(p, { size: 14 }), t]
52
52
  }, `${e.rowNumber}-${t}`))
53
- }) : e.status.kind === "sending" ? /* @__PURE__ */ h("span", {
53
+ }) : e.status.kind === "sending" ? /* @__PURE__ */ D("span", {
54
54
  className: "inline-flex items-center gap-1 text-text-secondary",
55
- children: [/* @__PURE__ */ m(d, {
55
+ children: [/* @__PURE__ */ E(d, {
56
56
  size: 14,
57
57
  className: "animate-spin"
58
58
  }), "Sending..."]
59
- }) : e.status.kind === "invited" ? /* @__PURE__ */ h("span", {
59
+ }) : e.status.kind === "invited" ? /* @__PURE__ */ D("span", {
60
60
  className: "inline-flex items-center gap-1 text-status-success-text",
61
- children: [/* @__PURE__ */ m(u, { size: 14 }), "Invited"]
62
- }) : e.status.kind === "failed" ? /* @__PURE__ */ h("span", {
61
+ children: [/* @__PURE__ */ E(u, { size: 14 }), "Invited"]
62
+ }) : e.status.kind === "failed" ? /* @__PURE__ */ D("span", {
63
63
  className: "inline-flex items-center gap-1 text-status-error-text",
64
- children: [/* @__PURE__ */ m(p, { size: 14 }), e.status.message]
65
- }) : /* @__PURE__ */ m("span", {
64
+ children: [/* @__PURE__ */ E(p, { size: 14 }), e.status.message]
65
+ }) : /* @__PURE__ */ E("span", {
66
66
  className: "text-text-secondary",
67
67
  children: "Ready"
68
68
  })
69
69
  }
70
70
  ];
71
- function He(e) {
71
+ function Ve(e) {
72
72
  return e.type === "text/csv" || e.name.toLowerCase().endsWith(".csv");
73
73
  }
74
- function Ue(e) {
74
+ function He(e) {
75
75
  if (!e) return null;
76
76
  let t = new Date(e);
77
77
  return Number.isNaN(t.getTime()) ? null : t.toLocaleDateString(void 0, {
@@ -82,14 +82,14 @@ function Ue(e) {
82
82
  minute: "2-digit"
83
83
  });
84
84
  }
85
- function O(e) {
85
+ function k(e) {
86
86
  let t = e instanceof Error ? e.message : String(e);
87
87
  return t.includes("CONFLICT") ? "An invite already exists for this email address." : t.includes("already a member") ? "This user is already a member of the workspace." : "Something went wrong. Please try again or contact support.";
88
88
  }
89
- function We(e, t, n) {
89
+ function Ue(e, t, n) {
90
90
  return e.length === 0 ? t : e.map((e) => n ? n(e) : e).join(", ");
91
91
  }
92
- function Ge(e, t, n, r) {
92
+ function We(e, t, n, r) {
93
93
  return {
94
94
  email: t,
95
95
  workspaceId: e,
@@ -100,62 +100,62 @@ function Ge(e, t, n, r) {
100
100
  } } : {}
101
101
  };
102
102
  }
103
- function Ke({ selectedRoleIds: e, onRoleToggle: t, selectedProjectIds: n, onProjectToggle: r, availableRoles: i, availableProjects: a, isLoadingRoles: ee, isLoadingProjects: te, disabled: o }) {
104
- return /* @__PURE__ */ h("div", {
103
+ function Ge({ selectedRoleIds: e, onRoleToggle: t, selectedProjectIds: n, onProjectToggle: r, availableRoles: i, availableProjects: a, isLoadingRoles: ee, isLoadingProjects: te, disabled: o }) {
104
+ return /* @__PURE__ */ D("div", {
105
105
  className: "space-y-6",
106
- children: [/* @__PURE__ */ h("div", {
106
+ children: [/* @__PURE__ */ D("div", {
107
107
  className: "space-y-3",
108
- children: [/* @__PURE__ */ h("div", {
108
+ children: [/* @__PURE__ */ D("div", {
109
109
  className: "flex flex-wrap items-center justify-between gap-2",
110
- children: [/* @__PURE__ */ h("div", {
110
+ children: [/* @__PURE__ */ D("div", {
111
111
  className: "space-y-1",
112
- children: [/* @__PURE__ */ m("h3", {
112
+ children: [/* @__PURE__ */ E("h3", {
113
113
  className: "text-base font-semibold",
114
114
  children: "Roles (Optional)"
115
- }), /* @__PURE__ */ m("p", {
115
+ }), /* @__PURE__ */ E("p", {
116
116
  className: "text-sm text-text-secondary",
117
117
  children: "Choose roles. Hover any role to preview its full description."
118
118
  })]
119
- }), e.length > 0 ? /* @__PURE__ */ h(g, {
119
+ }), e.length > 0 ? /* @__PURE__ */ D(m, {
120
120
  variant: "secondary",
121
121
  children: [e.length, " selected"]
122
122
  }) : null]
123
- }), /* @__PURE__ */ m(Ie, { children: /* @__PURE__ */ m("div", {
123
+ }), /* @__PURE__ */ E(w, { children: /* @__PURE__ */ E("div", {
124
124
  className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
125
- children: ee ? /* @__PURE__ */ m("p", {
125
+ children: ee ? /* @__PURE__ */ E("p", {
126
126
  className: "text-sm text-text-secondary",
127
127
  children: "Loading roles…"
128
- }) : i.length === 0 ? /* @__PURE__ */ m("p", {
128
+ }) : i.length === 0 ? /* @__PURE__ */ E("p", {
129
129
  className: "text-sm text-text-secondary",
130
130
  children: "No assignable roles were returned for this workspace."
131
131
  }) : i.map((n) => {
132
132
  let r = e.includes(n.id);
133
- return /* @__PURE__ */ h(w, { children: [/* @__PURE__ */ m(E, {
133
+ return /* @__PURE__ */ D(S, { children: [/* @__PURE__ */ E(Pe, {
134
134
  asChild: !0,
135
- children: /* @__PURE__ */ h("label", {
135
+ children: /* @__PURE__ */ D("label", {
136
136
  className: `flex cursor-pointer items-center justify-between gap-3 rounded-lg border px-3 py-3 text-left text-sm font-medium transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${r ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"} ${o ? "opacity-70" : ""}`,
137
- children: [/* @__PURE__ */ m("span", {
137
+ children: [/* @__PURE__ */ E("span", {
138
138
  className: "min-w-0 flex-1 truncate",
139
139
  children: n.name
140
- }), /* @__PURE__ */ m(x, {
140
+ }), /* @__PURE__ */ E(y, {
141
141
  checked: r,
142
142
  disabled: o,
143
143
  onCheckedChange: (e) => t(n.id, !!e),
144
144
  "aria-label": `Select ${n.name}`
145
145
  })]
146
146
  })
147
- }), /* @__PURE__ */ h(T, {
147
+ }), /* @__PURE__ */ D(C, {
148
148
  className: "max-w-xs text-sm leading-6",
149
149
  children: [
150
- /* @__PURE__ */ m("p", {
150
+ /* @__PURE__ */ E("p", {
151
151
  className: "font-medium",
152
152
  children: n.name
153
153
  }),
154
- /* @__PURE__ */ m("p", {
154
+ /* @__PURE__ */ E("p", {
155
155
  className: "mt-1 text-text-secondary",
156
156
  children: n.description || "No description available for this role."
157
157
  }),
158
- n.isSystem ? /* @__PURE__ */ m("p", {
158
+ n.isSystem ? /* @__PURE__ */ E("p", {
159
159
  className: "mt-2 text-xs",
160
160
  children: "System role"
161
161
  }) : null
@@ -163,51 +163,51 @@ function Ke({ selectedRoleIds: e, onRoleToggle: t, selectedProjectIds: n, onProj
163
163
  })] }, n.id);
164
164
  })
165
165
  }) })]
166
- }), /* @__PURE__ */ h("div", {
166
+ }), /* @__PURE__ */ D("div", {
167
167
  className: "space-y-3",
168
- children: [/* @__PURE__ */ h("div", {
168
+ children: [/* @__PURE__ */ D("div", {
169
169
  className: "flex flex-wrap items-center justify-between gap-2",
170
- children: [/* @__PURE__ */ h("div", {
170
+ children: [/* @__PURE__ */ D("div", {
171
171
  className: "space-y-1",
172
- children: [/* @__PURE__ */ m("h3", {
172
+ children: [/* @__PURE__ */ E("h3", {
173
173
  className: "text-base font-semibold",
174
174
  children: "Projects to add on acceptance (Optional)"
175
- }), /* @__PURE__ */ m("p", {
175
+ }), /* @__PURE__ */ E("p", {
176
176
  className: "text-sm text-text-secondary",
177
177
  children: "The invited user will be added to these projects automatically after they accept."
178
178
  })]
179
- }), n.length > 0 ? /* @__PURE__ */ h(g, {
179
+ }), n.length > 0 ? /* @__PURE__ */ D(m, {
180
180
  variant: "secondary",
181
181
  children: [n.length, " selected"]
182
182
  }) : null]
183
- }), /* @__PURE__ */ m("div", {
183
+ }), /* @__PURE__ */ E("div", {
184
184
  className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
185
- children: te ? /* @__PURE__ */ m("p", {
185
+ children: te ? /* @__PURE__ */ E("p", {
186
186
  className: "text-sm text-text-secondary",
187
187
  children: "Loading projects…"
188
- }) : a.length === 0 ? /* @__PURE__ */ m("p", {
188
+ }) : a.length === 0 ? /* @__PURE__ */ E("p", {
189
189
  className: "text-sm text-text-secondary",
190
190
  children: "No active projects are available in this workspace yet."
191
191
  }) : a.map((e) => {
192
192
  let t = n.includes(e.id);
193
- return /* @__PURE__ */ h("label", {
193
+ return /* @__PURE__ */ D("label", {
194
194
  className: `flex cursor-pointer items-start justify-between gap-3 rounded-lg border px-3 py-3 transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${t ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"} ${o ? "opacity-70" : ""}`,
195
- children: [/* @__PURE__ */ h("div", {
195
+ children: [/* @__PURE__ */ D("div", {
196
196
  className: "min-w-0 flex-1 space-y-1",
197
- children: [/* @__PURE__ */ m("p", {
197
+ children: [/* @__PURE__ */ E("p", {
198
198
  className: "truncate text-sm font-semibold leading-tight",
199
199
  children: e.name
200
- }), /* @__PURE__ */ h("div", {
200
+ }), /* @__PURE__ */ D("div", {
201
201
  className: "flex items-center gap-2 text-xs text-text-secondary",
202
- children: [/* @__PURE__ */ m("span", {
202
+ children: [/* @__PURE__ */ E("span", {
203
203
  className: "truncate font-mono",
204
204
  children: e.key
205
- }), /* @__PURE__ */ m(g, {
205
+ }), /* @__PURE__ */ E(m, {
206
206
  variant: "outline",
207
207
  children: e.status
208
208
  })]
209
209
  })]
210
- }), /* @__PURE__ */ m(x, {
210
+ }), /* @__PURE__ */ E(y, {
211
211
  checked: t,
212
212
  disabled: o,
213
213
  onCheckedChange: (t) => r(e.id, !!t),
@@ -219,207 +219,207 @@ function Ke({ selectedRoleIds: e, onRoleToggle: t, selectedProjectIds: n, onProj
219
219
  })]
220
220
  });
221
221
  }
222
- function k() {
223
- let { workspaceId: _e } = ze(), { t: x } = Le(), w = Re(), { basePath: T = "/workspaces", workspaceId: Ie } = i(), { withCurrentSearch: E } = r(), k = _e || Ie || "";
224
- se("workspaces.invite", { workspaceId: k || void 0 });
225
- let { canInviteMember: qe, isLoading: Je } = ee(), { data: Ye, isLoading: Xe, error: Ze } = a(k), { data: A = [], isLoading: Qe } = te(k), { data: j, isLoading: $e } = o({ archived: !1 }, { limit: 100 }, k), { data: et, isLoading: tt, isFetching: M, error: nt, refetch: rt } = ne(k, "PENDING", { limit: 50 }, { retry: !1 }), N = s(() => (j?.items ?? []).filter((e) => !e.archived), [j?.items]), [it, at] = c("single"), [P, ot] = c(""), [F, st] = c([]), [I, ct] = c([]), [lt, L] = c(null), [ut, dt] = c(null), [ft, R] = c(null), [pt, z] = c(null), [B, V] = c(null), [H, U] = c([]), [mt, ht] = c(null), [gt, _t] = c(!1), [W, vt] = c(!1), yt = ue(null), [G, bt] = c(null), { mutateAsync: xt, isPending: K } = ae(k), { mutateAsync: St, isPending: q } = re(), { mutate: Ct, isPending: J } = oe(k), { mutate: wt, isPending: Y } = ie(k), [Tt, X] = c(null), Z = et?.items ?? [], Et = K || q || W, Dt = s(() => A.filter((e) => F.includes(e.id)).map((e) => e.name), [A, F]), Ot = s(() => N.filter((e) => I.includes(e.id)).map((e) => e.name), [N, I]), Q = s(() => H.filter((e) => e.errors.length === 0 && e.status.kind !== "invited"), [H]), $ = s(() => H.filter((e) => e.errors.length > 0), [H]);
226
- if (!k) return /* @__PURE__ */ m("div", {
222
+ function A() {
223
+ let { workspaceId: y } = Re(), { t: S } = Ie(), C = Le(), { basePath: w = "/workspaces", workspaceId: Pe } = i(), { withCurrentSearch: T } = r(), A = y || Pe || "";
224
+ se("workspaces.invite", { workspaceId: A || void 0 });
225
+ let { canInviteMember: Ke, isLoading: qe } = ee(), { data: Je, isLoading: Ye, error: Xe } = a(A), { data: j = [], isLoading: Ze } = te(A), { data: M, isLoading: Qe } = o({ archived: !1 }, { limit: 100 }, A), { data: $e, isLoading: et, isFetching: N, error: tt, refetch: nt } = ne(A, "PENDING", { limit: 50 }, { retry: !1 }), P = s(() => (M?.items ?? []).filter((e) => !e.archived), [M?.items]), [rt, it] = c("single"), [F, at] = c(""), [I, ot] = c([]), [L, st] = c([]), [ct, R] = c(null), [lt, ut] = c(null), [dt, z] = c(null), [ft, B] = c(null), [V, H] = c(null), [U, W] = c([]), [pt, mt] = c(null), [ht, gt] = c(!1), [G, _t] = c(!1), vt = ue(null), [K, yt] = c(null), { mutateAsync: bt, isPending: q } = ae(A), { mutateAsync: xt, isPending: St } = re(), { mutate: Ct, isPending: J } = oe(A), { mutate: wt, isPending: Y } = ie(A), [Tt, X] = c(null), Z = $e?.items ?? [], Et = q || St || G, Dt = s(() => j.filter((e) => I.includes(e.id)).map((e) => e.name), [j, I]), Ot = s(() => P.filter((e) => L.includes(e.id)).map((e) => e.name), [P, L]), Q = s(() => U.filter((e) => e.errors.length === 0 && e.status.kind !== "invited"), [U]), $ = s(() => U.filter((e) => e.errors.length > 0), [U]);
226
+ if (!A) return /* @__PURE__ */ E("div", {
227
227
  className: "space-y-4 p-6",
228
- children: /* @__PURE__ */ h("div", {
228
+ children: /* @__PURE__ */ D("div", {
229
229
  className: "rounded-xl border bg-bg-surface p-8 text-center",
230
230
  children: [
231
- /* @__PURE__ */ m("h1", {
231
+ /* @__PURE__ */ E("h1", {
232
232
  className: "text-2xl font-bold",
233
- children: e(x, "workspaceInvite.noWorkspaceTitle", "Select a workspace first")
233
+ children: e(S, "workspaceInvite.noWorkspaceTitle", "Select a workspace first")
234
234
  }),
235
- /* @__PURE__ */ m("p", {
235
+ /* @__PURE__ */ E("p", {
236
236
  className: "mt-2 text-text-secondary",
237
- children: e(x, "workspaceInvite.noWorkspaceDescription", "Choose a current workspace from the header or open a workspace detail page before inviting members.")
237
+ children: e(S, "workspaceInvite.noWorkspaceDescription", "Choose a current workspace from the header or open a workspace detail page before inviting members.")
238
238
  }),
239
- /* @__PURE__ */ m("div", {
239
+ /* @__PURE__ */ E("div", {
240
240
  className: "mt-4",
241
- children: /* @__PURE__ */ m(_, {
242
- onClick: () => w(E(`${T}/list`)),
241
+ children: /* @__PURE__ */ E(h, {
242
+ onClick: () => C(T(`${w}/list`)),
243
243
  variant: "outline",
244
- children: e(x, "workspaceInvite.backToWorkspaces", "Back to Workspaces")
244
+ children: e(S, "workspaceInvite.backToWorkspaces", "Back to Workspaces")
245
245
  })
246
246
  })
247
247
  ]
248
248
  })
249
249
  });
250
- if (Je || Xe) return /* @__PURE__ */ h("div", {
250
+ if (qe || Ye) return /* @__PURE__ */ D("div", {
251
251
  className: "space-y-6 p-6",
252
252
  children: [
253
- /* @__PURE__ */ m(C, { className: "h-10 w-48" }),
254
- /* @__PURE__ */ m(C, { className: "h-40 w-full" }),
255
- /* @__PURE__ */ m(C, { className: "h-80 w-full" })
253
+ /* @__PURE__ */ E(x, { className: "h-10 w-48" }),
254
+ /* @__PURE__ */ E(x, { className: "h-40 w-full" }),
255
+ /* @__PURE__ */ E(x, { className: "h-80 w-full" })
256
256
  ]
257
257
  });
258
- if (!qe) return /* @__PURE__ */ m("div", {
258
+ if (!Ke) return /* @__PURE__ */ E("div", {
259
259
  className: "flex min-h-[400px] items-center justify-center",
260
- children: /* @__PURE__ */ h("div", {
260
+ children: /* @__PURE__ */ D("div", {
261
261
  className: "space-y-2 text-center",
262
- children: [/* @__PURE__ */ m("h2", {
262
+ children: [/* @__PURE__ */ E("h2", {
263
263
  className: "text-lg font-semibold",
264
- children: e(x, "workspaceInvite.accessDenied", "Access Denied")
265
- }), /* @__PURE__ */ m("p", {
264
+ children: e(S, "workspaceInvite.accessDenied", "Access Denied")
265
+ }), /* @__PURE__ */ E("p", {
266
266
  className: "text-sm text-text-secondary",
267
- children: e(x, "workspaceInvite.accessDeniedDescription", "You don't have permission to invite members into this workspace.")
267
+ children: e(S, "workspaceInvite.accessDeniedDescription", "You don't have permission to invite members into this workspace.")
268
268
  })]
269
269
  })
270
270
  });
271
- if (Ze || !Ye) return /* @__PURE__ */ h("div", {
271
+ if (Xe || !Je) return /* @__PURE__ */ D("div", {
272
272
  className: "space-y-4 p-6",
273
- children: [/* @__PURE__ */ h(_, {
273
+ children: [/* @__PURE__ */ D(h, {
274
274
  variant: "ghost",
275
- onClick: () => w(E(`${T}/list`)),
275
+ onClick: () => C(T(`${w}/list`)),
276
276
  className: "gap-2",
277
- children: [/* @__PURE__ */ m(de, { size: 18 }), e(x, "workspaceInvite.backToWorkspaces", "Back to Workspaces")]
278
- }), /* @__PURE__ */ m("div", {
277
+ children: [/* @__PURE__ */ E(de, { size: 18 }), e(S, "workspaceInvite.backToWorkspaces", "Back to Workspaces")]
278
+ }), /* @__PURE__ */ E("div", {
279
279
  className: "rounded-xl border bg-bg-surface p-8 text-center text-status-error-text",
280
- children: e(x, "workspaceInvite.workspaceLoadError", "Unable to load workspace invite details.")
280
+ children: e(S, "workspaceInvite.workspaceLoadError", "Unable to load workspace invite details.")
281
281
  })]
282
282
  });
283
283
  let kt = (e, t) => {
284
- st((n) => t ? [...n, e].filter((e, t, n) => n.indexOf(e) === t) : n.filter((t) => t !== e));
284
+ ot((n) => t ? [...n, e].filter((e, t, n) => n.indexOf(e) === t) : n.filter((t) => t !== e));
285
285
  }, At = (e, t) => {
286
- ct((n) => t ? [...n, e].filter((e, t, n) => n.indexOf(e) === t) : n.filter((t) => t !== e));
286
+ st((n) => t ? [...n, e].filter((e, t, n) => n.indexOf(e) === t) : n.filter((t) => t !== e));
287
287
  }, jt = async (e) => {
288
- if (e.preventDefault(), L(null), dt(null), V(null), !P.trim()) L("Email is required.");
288
+ if (e.preventDefault(), R(null), ut(null), H(null), !F.trim()) R("Email is required.");
289
289
  else try {
290
- await xt(Ge(k, P.trim().toLowerCase(), F, I)), ot(""), dt(`Invitation sent to ${P.trim().toLowerCase()}.`);
290
+ await bt(We(A, F.trim().toLowerCase(), I, L)), at(""), ut(`Invitation sent to ${F.trim().toLowerCase()}.`);
291
291
  } catch (e) {
292
- L(O(e));
292
+ R(k(e));
293
293
  }
294
294
  }, Mt = (e) => {
295
- if (!He(e)) {
296
- R("Please upload a .csv file.");
295
+ if (!Ve(e)) {
296
+ z("Please upload a .csv file.");
297
297
  return;
298
298
  }
299
- if (e.size > Be) {
300
- R("CSV file is too large (max 1 MB).");
299
+ if (e.size > ze) {
300
+ z("CSV file is too large (max 1 MB).");
301
301
  return;
302
302
  }
303
303
  let t = new FileReader();
304
304
  t.onload = () => {
305
- let n = typeof t.result == "string" ? t.result : "", r = le(n), i = r.slice(0, D);
306
- U(i.map((e) => ({
305
+ let n = typeof t.result == "string" ? t.result : "", r = le(n), i = r.slice(0, O);
306
+ W(i.map((e) => ({
307
307
  ...e,
308
308
  status: { kind: "idle" }
309
- }))), ht(e.name), R(r.length > D ? `Only the first ${D} rows were loaded. Split larger CSV files into smaller batches.` : null), z(null), V(null);
309
+ }))), mt(e.name), z(r.length > O ? `Only the first ${O} rows were loaded. Split larger CSV files into smaller batches.` : null), B(null), H(null);
310
310
  }, t.onerror = () => {
311
- R("Failed to read CSV file.");
311
+ z("Failed to read CSV file.");
312
312
  }, t.readAsText(e);
313
313
  }, Nt = async () => {
314
- if (!(Q.length === 0 || W)) {
315
- R(null), z(null), V(null), vt(!0), U((e) => e.map((e) => e.errors.length === 0 && e.status.kind !== "invited" ? {
314
+ if (!(Q.length === 0 || G)) {
315
+ z(null), B(null), H(null), _t(!0), W((e) => e.map((e) => e.errors.length === 0 && e.status.kind !== "invited" ? {
316
316
  ...e,
317
317
  status: { kind: "sending" }
318
318
  } : e));
319
319
  try {
320
- await St(Q.map((e) => Ge(k, e.email, F, I))), U((e) => e.map((e) => e.status.kind === "sending" ? {
320
+ await xt(Q.map((e) => We(A, e.email, I, L))), W((e) => e.map((e) => e.status.kind === "sending" ? {
321
321
  ...e,
322
322
  status: { kind: "invited" }
323
- } : e)), z(`Sent ${Q.length} workspace invitation${Q.length === 1 ? "" : "s"}.`);
323
+ } : e)), B(`Sent ${Q.length} workspace invitation${Q.length === 1 ? "" : "s"}.`);
324
324
  } catch (e) {
325
- let t = O(e);
326
- U((e) => e.map((e) => e.status.kind === "sending" ? {
325
+ let t = k(e);
326
+ W((e) => e.map((e) => e.status.kind === "sending" ? {
327
327
  ...e,
328
328
  status: {
329
329
  kind: "failed",
330
330
  message: t
331
331
  }
332
- } : e)), R(t);
332
+ } : e)), z(t);
333
333
  } finally {
334
- vt(!1);
334
+ _t(!1);
335
335
  }
336
336
  }
337
337
  }, Pt = (e) => {
338
- V(null), X(e.id), Ct(e.id, {
338
+ H(null), X(e.id), Ct(e.id, {
339
339
  onSuccess: () => {
340
- V({
340
+ H({
341
341
  tone: "success",
342
342
  message: `Invitation resent to ${e.email}.`
343
343
  });
344
344
  },
345
345
  onError: (e) => {
346
- V({
346
+ H({
347
347
  tone: "error",
348
- message: O(e)
348
+ message: k(e)
349
349
  });
350
350
  },
351
351
  onSettled: () => X(null)
352
352
  });
353
353
  };
354
- return /* @__PURE__ */ h(ve, { children: [/* @__PURE__ */ m(ye, {
355
- open: !!G,
356
- onOpenChange: (e) => !e && bt(null),
357
- children: /* @__PURE__ */ h(Se, { children: [/* @__PURE__ */ h(Te, { children: [/* @__PURE__ */ m(Ee, { children: "Cancel pending invitation?" }), /* @__PURE__ */ m(Ce, { children: G ? `This will revoke the pending invite for ${G.email}. They will need a new invitation to join later.` : "This will revoke the pending invitation." })] }), /* @__PURE__ */ h(we, { children: [/* @__PURE__ */ m(xe, {
354
+ return /* @__PURE__ */ D(Fe, { children: [/* @__PURE__ */ E(_e, {
355
+ open: !!K,
356
+ onOpenChange: (e) => !e && yt(null),
357
+ children: /* @__PURE__ */ D(be, { children: [/* @__PURE__ */ D(Ce, { children: [/* @__PURE__ */ E(we, { children: "Cancel pending invitation?" }), /* @__PURE__ */ E(xe, { children: K ? `This will revoke the pending invite for ${K.email}. They will need a new invitation to join later.` : "This will revoke the pending invitation." })] }), /* @__PURE__ */ D(Se, { children: [/* @__PURE__ */ E(ye, {
358
358
  disabled: Y,
359
359
  children: "Keep invitation"
360
- }), /* @__PURE__ */ h(be, {
360
+ }), /* @__PURE__ */ D(ve, {
361
361
  onClick: () => {
362
- G && (V(null), X(G.id), wt(G.id, {
362
+ K && (H(null), X(K.id), wt(K.id, {
363
363
  onSuccess: () => {
364
- V({
364
+ H({
365
365
  tone: "success",
366
- message: `Invitation cancelled for ${G.email}.`
367
- }), bt(null);
366
+ message: `Invitation cancelled for ${K.email}.`
367
+ }), yt(null);
368
368
  },
369
369
  onError: (e) => {
370
- V({
370
+ H({
371
371
  tone: "error",
372
- message: O(e)
372
+ message: k(e)
373
373
  });
374
374
  },
375
375
  onSettled: () => X(null)
376
376
  }));
377
377
  },
378
378
  disabled: Y,
379
- children: [Y ? /* @__PURE__ */ m(d, { className: "size-4 animate-spin" }) : null, "Cancel invitation"]
379
+ children: [Y ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : null, "Cancel invitation"]
380
380
  })] })] })
381
- }), /* @__PURE__ */ h("div", {
381
+ }), /* @__PURE__ */ D("div", {
382
382
  className: "space-y-6 p-3 sm:p-6",
383
383
  children: [
384
- /* @__PURE__ */ m("div", {
384
+ /* @__PURE__ */ E("div", {
385
385
  className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
386
- children: /* @__PURE__ */ h("div", { children: [
387
- /* @__PURE__ */ h(_, {
386
+ children: /* @__PURE__ */ D("div", { children: [
387
+ /* @__PURE__ */ D(h, {
388
388
  variant: "ghost",
389
- onClick: () => w(E(`${T}/${k}`)),
389
+ onClick: () => C(T(`${w}/${A}`)),
390
390
  className: "-ml-2 mb-2 gap-2",
391
- children: [/* @__PURE__ */ m(de, { size: 18 }), e(x, "workspaceInvite.backToWorkspace", "Back to Workspace")]
391
+ children: [/* @__PURE__ */ E(de, { size: 18 }), e(S, "workspaceInvite.backToWorkspace", "Back to Workspace")]
392
392
  }),
393
- /* @__PURE__ */ h("div", {
393
+ /* @__PURE__ */ D("div", {
394
394
  className: "flex items-center gap-2",
395
- children: [/* @__PURE__ */ m(ge, {
395
+ children: [/* @__PURE__ */ E(ge, {
396
396
  className: "text-primary",
397
397
  size: 24
398
- }), /* @__PURE__ */ m("h1", {
398
+ }), /* @__PURE__ */ E("h1", {
399
399
  className: "text-2xl font-bold sm:text-3xl",
400
- children: e(x, "workspaceInvite.title", "Invite Members")
400
+ children: e(S, "workspaceInvite.title", "Invite Members")
401
401
  })]
402
402
  }),
403
- /* @__PURE__ */ h("p", {
403
+ /* @__PURE__ */ D("p", {
404
404
  className: "mt-2 text-sm text-text-secondary sm:text-base",
405
405
  children: [
406
- Ye.name,
406
+ Je.name,
407
407
  " —",
408
408
  " ",
409
- e(x, "workspaceInvite.subtitle", "Invite people into this workspace and optionally grant project access.")
409
+ e(S, "workspaceInvite.subtitle", "Invite people into this workspace and optionally grant project access.")
410
410
  ]
411
411
  })
412
412
  ] })
413
413
  }),
414
- /* @__PURE__ */ m(Ae, { children: e(x, "workspaceInvite.purpose", "Use this page to bring new people into the workspace. First choose the roles and projects they should get the moment they accept, then send a single invitation by email or upload a CSV to invite many people at once. Invitations you have already sent appear at the bottom, where you can resend or cancel them.") }),
415
- /* @__PURE__ */ m(ke, {
414
+ /* @__PURE__ */ E(Oe, { children: e(S, "workspaceInvite.purpose", "Use this page to bring new people into the workspace. First choose the roles and projects they should get the moment they accept, then send a single invitation by email or upload a CSV to invite many people at once. Invitations you have already sent appear at the bottom, where you can resend or cancel them.") }),
415
+ /* @__PURE__ */ E(De, {
416
416
  storageKey: "workspaces-workspace-invite",
417
417
  steps: [
418
418
  {
419
419
  id: "pick-access",
420
- label: e(x, "workspaceInvite.stepAccess", "Pick the roles and projects to grant"),
421
- description: e(x, "workspaceInvite.stepAccessDesc", "These are applied automatically when each person accepts."),
422
- icon: /* @__PURE__ */ m(ge, { size: 16 }),
420
+ label: e(S, "workspaceInvite.stepAccess", "Pick the roles and projects to grant"),
421
+ description: e(S, "workspaceInvite.stepAccessDesc", "These are applied automatically when each person accepts."),
422
+ icon: /* @__PURE__ */ E(ge, { size: 16 }),
423
423
  onClick: () => document.getElementById("invite-access-section")?.scrollIntoView({
424
424
  behavior: "smooth",
425
425
  block: "start"
@@ -427,9 +427,9 @@ function k() {
427
427
  },
428
428
  {
429
429
  id: "send-invite",
430
- label: e(x, "workspaceInvite.stepSend", "Send the invitation"),
431
- description: e(x, "workspaceInvite.stepSendDesc", "Enter one email, or switch to the Bulk CSV tab to invite many at once."),
432
- icon: /* @__PURE__ */ m(f, { size: 16 }),
430
+ label: e(S, "workspaceInvite.stepSend", "Send the invitation"),
431
+ description: e(S, "workspaceInvite.stepSendDesc", "Enter one email, or switch to the Bulk CSV tab to invite many at once."),
432
+ icon: /* @__PURE__ */ E(f, { size: 16 }),
433
433
  onClick: () => document.getElementById("invite-send-section")?.scrollIntoView({
434
434
  behavior: "smooth",
435
435
  block: "start"
@@ -437,9 +437,9 @@ function k() {
437
437
  },
438
438
  {
439
439
  id: "review-pending",
440
- label: e(x, "workspaceInvite.stepPending", "Track your pending invitations"),
441
- description: e(x, "workspaceInvite.stepPendingDesc", "Resend or cancel invitations that have not been accepted yet."),
442
- icon: /* @__PURE__ */ m(pe, { size: 16 }),
440
+ label: e(S, "workspaceInvite.stepPending", "Track your pending invitations"),
441
+ description: e(S, "workspaceInvite.stepPendingDesc", "Resend or cancel invitations that have not been accepted yet."),
442
+ icon: /* @__PURE__ */ E(pe, { size: 16 }),
443
443
  onClick: () => document.getElementById("invite-pending-section")?.scrollIntoView({
444
444
  behavior: "smooth",
445
445
  block: "start"
@@ -447,147 +447,147 @@ function k() {
447
447
  }
448
448
  ]
449
449
  }),
450
- /* @__PURE__ */ h(S, {
450
+ /* @__PURE__ */ D(b, {
451
451
  treatment: "plain",
452
452
  id: "invite-access-section",
453
453
  className: "border-border-seam",
454
- children: [/* @__PURE__ */ m(y, { children: /* @__PURE__ */ m(b, { children: e(x, "workspaceInvite.setupTitle", "Access to grant on acceptance") }) }), /* @__PURE__ */ m(v, { children: /* @__PURE__ */ m(Ke, {
455
- selectedRoleIds: F,
454
+ children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ E(v, { children: e(S, "workspaceInvite.setupTitle", "Access to grant on acceptance") }) }), /* @__PURE__ */ E(g, { children: /* @__PURE__ */ E(Ge, {
455
+ selectedRoleIds: I,
456
456
  onRoleToggle: kt,
457
- selectedProjectIds: I,
457
+ selectedProjectIds: L,
458
458
  onProjectToggle: At,
459
- availableRoles: A,
460
- availableProjects: N,
461
- isLoadingRoles: Qe,
462
- isLoadingProjects: $e,
459
+ availableRoles: j,
460
+ availableProjects: P,
461
+ isLoadingRoles: Ze,
462
+ isLoadingProjects: Qe,
463
463
  disabled: Et
464
464
  }) })]
465
465
  }),
466
- /* @__PURE__ */ h(S, {
466
+ /* @__PURE__ */ D(b, {
467
467
  treatment: "metric",
468
468
  glow: !0,
469
469
  className: "border-border-seam",
470
- children: [/* @__PURE__ */ m(y, { children: /* @__PURE__ */ m(b, { children: "Selection summary" }) }), /* @__PURE__ */ h(v, {
470
+ children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ E(v, { children: "Selection summary" }) }), /* @__PURE__ */ D(g, {
471
471
  className: "grid gap-4 md:grid-cols-2",
472
- children: [/* @__PURE__ */ h("div", {
472
+ children: [/* @__PURE__ */ D("div", {
473
473
  className: "space-y-2 rounded-lg border border-border-seam bg-bg-surface p-4",
474
- children: [/* @__PURE__ */ h("div", {
474
+ children: [/* @__PURE__ */ D("div", {
475
475
  className: "flex items-center justify-between gap-2",
476
- children: [/* @__PURE__ */ m("p", {
476
+ children: [/* @__PURE__ */ E("p", {
477
477
  className: "text-sm font-medium",
478
478
  children: "Roles"
479
- }), /* @__PURE__ */ m(g, {
479
+ }), /* @__PURE__ */ E(m, {
480
480
  variant: "secondary",
481
481
  className: "tabular-nums",
482
482
  children: Dt.length
483
483
  })]
484
- }), /* @__PURE__ */ m("p", {
484
+ }), /* @__PURE__ */ E("p", {
485
485
  className: "text-sm text-text-muted",
486
- children: We(Dt, "No roles selected")
486
+ children: Ue(Dt, "No roles selected")
487
487
  })]
488
- }), /* @__PURE__ */ h("div", {
488
+ }), /* @__PURE__ */ D("div", {
489
489
  className: "space-y-2 rounded-lg border border-border-seam bg-bg-surface p-4",
490
- children: [/* @__PURE__ */ h("div", {
490
+ children: [/* @__PURE__ */ D("div", {
491
491
  className: "flex items-center justify-between gap-2",
492
- children: [/* @__PURE__ */ m("p", {
492
+ children: [/* @__PURE__ */ E("p", {
493
493
  className: "text-sm font-medium",
494
494
  children: "Projects"
495
- }), /* @__PURE__ */ m(g, {
495
+ }), /* @__PURE__ */ E(m, {
496
496
  variant: "secondary",
497
497
  className: "tabular-nums",
498
498
  children: Ot.length
499
499
  })]
500
- }), /* @__PURE__ */ m("p", {
500
+ }), /* @__PURE__ */ E("p", {
501
501
  className: "text-sm text-text-muted",
502
- children: We(Ot, "No project access will be granted automatically")
502
+ children: Ue(Ot, "No project access will be granted automatically")
503
503
  })]
504
504
  })]
505
505
  })]
506
506
  }),
507
- /* @__PURE__ */ h(S, {
507
+ /* @__PURE__ */ D(b, {
508
508
  treatment: "plain",
509
509
  id: "invite-send-section",
510
510
  className: "border-border-seam",
511
- children: [/* @__PURE__ */ m(y, { children: /* @__PURE__ */ m(b, { children: e(x, "workspaceInvite.sendTitle", "Send invitations") }) }), /* @__PURE__ */ m(v, { children: /* @__PURE__ */ h(Me, {
512
- value: it,
513
- onValueChange: (e) => at(e),
511
+ children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ E(v, { children: e(S, "workspaceInvite.sendTitle", "Send invitations") }) }), /* @__PURE__ */ E(g, { children: /* @__PURE__ */ D(Ae, {
512
+ value: rt,
513
+ onValueChange: (e) => it(e),
514
514
  className: "space-y-5",
515
515
  children: [
516
- /* @__PURE__ */ h(Pe, { children: [/* @__PURE__ */ m(Fe, {
516
+ /* @__PURE__ */ D(Me, { children: [/* @__PURE__ */ E(Ne, {
517
517
  value: "single",
518
- children: e(x, "workspaceInvite.modeSingle", "Single")
519
- }), /* @__PURE__ */ m(Fe, {
518
+ children: e(S, "workspaceInvite.modeSingle", "Single")
519
+ }), /* @__PURE__ */ E(Ne, {
520
520
  value: "bulk",
521
- children: e(x, "workspaceInvite.modeBulk", "Bulk CSV")
521
+ children: e(S, "workspaceInvite.modeBulk", "Bulk CSV")
522
522
  })] }),
523
- /* @__PURE__ */ h(Ne, {
523
+ /* @__PURE__ */ D(je, {
524
524
  value: "single",
525
525
  className: "space-y-4",
526
526
  children: [
527
- lt ? /* @__PURE__ */ h("div", {
527
+ ct ? /* @__PURE__ */ D("div", {
528
528
  className: "flex items-center gap-2 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
529
- children: [/* @__PURE__ */ m(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ m("span", { children: lt })]
529
+ children: [/* @__PURE__ */ E(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: ct })]
530
530
  }) : null,
531
- ut ? /* @__PURE__ */ h("div", {
531
+ lt ? /* @__PURE__ */ D("div", {
532
532
  className: "flex items-center gap-2 rounded-md border border-status-success/30 bg-status-success/10 p-3 text-sm text-status-success-text",
533
- children: [/* @__PURE__ */ m(u, { className: "size-4 shrink-0" }), /* @__PURE__ */ m("span", { children: ut })]
533
+ children: [/* @__PURE__ */ E(u, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: lt })]
534
534
  }) : null,
535
- /* @__PURE__ */ h("form", {
535
+ /* @__PURE__ */ D("form", {
536
536
  onSubmit: jt,
537
537
  className: "space-y-4",
538
- children: [/* @__PURE__ */ h("div", {
538
+ children: [/* @__PURE__ */ D("div", {
539
539
  className: "space-y-2",
540
- children: [/* @__PURE__ */ m("label", {
540
+ children: [/* @__PURE__ */ E("label", {
541
541
  htmlFor: "workspace-invite-email",
542
542
  className: "text-sm font-medium",
543
- children: e(x, "workspaceInvite.emailLabel", "Email Address")
544
- }), /* @__PURE__ */ m(Oe, {
543
+ children: e(S, "workspaceInvite.emailLabel", "Email Address")
544
+ }), /* @__PURE__ */ E(Ee, {
545
545
  id: "workspace-invite-email",
546
546
  type: "email",
547
- placeholder: e(x, "workspaceInvite.emailPlaceholder", "member@example.com"),
548
- value: P,
549
- onChange: (e) => ot(e.target.value),
550
- disabled: K
547
+ placeholder: e(S, "workspaceInvite.emailPlaceholder", "member@example.com"),
548
+ value: F,
549
+ onChange: (e) => at(e.target.value),
550
+ disabled: q
551
551
  })]
552
- }), /* @__PURE__ */ m("div", {
552
+ }), /* @__PURE__ */ E("div", {
553
553
  className: "flex justify-end",
554
- children: /* @__PURE__ */ h(_, {
554
+ children: /* @__PURE__ */ D(h, {
555
555
  type: "submit",
556
- disabled: K,
556
+ disabled: q,
557
557
  className: "gap-2",
558
- children: [K ? /* @__PURE__ */ m(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ m(f, { className: "size-4" }), e(x, "workspaceInvite.sendSingleButton", "Send Invitation")]
558
+ children: [q ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(f, { className: "size-4" }), e(S, "workspaceInvite.sendSingleButton", "Send Invitation")]
559
559
  })
560
560
  })]
561
561
  })
562
562
  ]
563
563
  }),
564
- /* @__PURE__ */ h(Ne, {
564
+ /* @__PURE__ */ D(je, {
565
565
  value: "bulk",
566
566
  className: "space-y-5",
567
567
  children: [
568
- ft ? /* @__PURE__ */ h("div", {
568
+ dt ? /* @__PURE__ */ D("div", {
569
569
  className: "flex items-center gap-2 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
570
- children: [/* @__PURE__ */ m(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ m("span", { children: ft })]
570
+ children: [/* @__PURE__ */ E(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: dt })]
571
571
  }) : null,
572
- pt ? /* @__PURE__ */ h("div", {
572
+ ft ? /* @__PURE__ */ D("div", {
573
573
  className: "flex items-center gap-2 rounded-md border border-status-success/30 bg-status-success/10 p-3 text-sm text-status-success-text",
574
- children: [/* @__PURE__ */ m(u, { className: "size-4 shrink-0" }), /* @__PURE__ */ m("span", { children: pt })]
574
+ children: [/* @__PURE__ */ E(u, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: ft })]
575
575
  }) : null,
576
- /* @__PURE__ */ h("div", {
576
+ /* @__PURE__ */ D("div", {
577
577
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
578
- children: [/* @__PURE__ */ h("div", {
578
+ children: [/* @__PURE__ */ D("div", {
579
579
  className: "space-y-1",
580
580
  children: [
581
- /* @__PURE__ */ m("p", {
581
+ /* @__PURE__ */ E("p", {
582
582
  className: "text-sm text-text-secondary",
583
- children: e(x, "workspaceInvite.bulkDescription", "Upload a CSV with one email column. All valid rows will receive the currently selected roles and projects.")
583
+ children: e(S, "workspaceInvite.bulkDescription", "Upload a CSV with one email column. All valid rows will receive the currently selected roles and projects.")
584
584
  }),
585
- /* @__PURE__ */ h("div", {
585
+ /* @__PURE__ */ D("div", {
586
586
  className: "rounded-md border bg-bg-sunken/30 px-3 py-2 text-xs text-text-secondary",
587
- children: [/* @__PURE__ */ m("p", {
587
+ children: [/* @__PURE__ */ E("p", {
588
588
  className: "font-medium text-text-primary",
589
589
  children: "Sample format"
590
- }), /* @__PURE__ */ h("pre", {
590
+ }), /* @__PURE__ */ D("pre", {
591
591
  className: "mt-1 whitespace-pre-wrap",
592
592
  children: [
593
593
  "email",
@@ -598,51 +598,51 @@ function k() {
598
598
  ]
599
599
  })]
600
600
  }),
601
- (j?.total ?? 0) > N.length ? /* @__PURE__ */ h("p", {
601
+ (M?.total ?? 0) > P.length ? /* @__PURE__ */ D("p", {
602
602
  className: "text-xs text-text-secondary",
603
603
  children: [
604
604
  "Showing the first ",
605
- N.length,
605
+ P.length,
606
606
  " active projects. Narrow the workspace project list if you need to invite into more."
607
607
  ]
608
608
  }) : null
609
609
  ]
610
- }), /* @__PURE__ */ h(_, {
610
+ }), /* @__PURE__ */ D(h, {
611
611
  type: "button",
612
612
  variant: "outline",
613
613
  onClick: ce,
614
614
  className: "gap-2",
615
- children: [/* @__PURE__ */ m(fe, { size: 16 }), e(x, "workspaceInvite.downloadTemplate", "Download template")]
615
+ children: [/* @__PURE__ */ E(fe, { size: 16 }), e(S, "workspaceInvite.downloadTemplate", "Download template")]
616
616
  })]
617
617
  }),
618
- /* @__PURE__ */ h("div", {
618
+ /* @__PURE__ */ D("div", {
619
619
  onDragOver: (e) => {
620
- e.preventDefault(), _t(!0);
620
+ e.preventDefault(), gt(!0);
621
621
  },
622
- onDragLeave: () => _t(!1),
622
+ onDragLeave: () => gt(!1),
623
623
  onDrop: (e) => {
624
- e.preventDefault(), _t(!1);
624
+ e.preventDefault(), gt(!1);
625
625
  let t = e.dataTransfer.files?.[0];
626
- t ? Mt(t) : R("Please upload a .csv file.");
626
+ t ? Mt(t) : z("Please upload a .csv file.");
627
627
  },
628
- className: `flex flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed p-8 transition-colors ${gt ? "border-primary bg-action-primary-bg/5" : "border-border-subtle bg-bg-surface"}`,
628
+ className: `flex flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed p-8 transition-colors ${ht ? "border-primary bg-action-primary-bg/5" : "border-border-subtle bg-bg-surface"}`,
629
629
  children: [
630
- /* @__PURE__ */ m(he, {
630
+ /* @__PURE__ */ E(he, {
631
631
  size: 28,
632
632
  className: "text-text-secondary"
633
633
  }),
634
- /* @__PURE__ */ h("div", {
634
+ /* @__PURE__ */ D("div", {
635
635
  className: "text-center",
636
- children: [/* @__PURE__ */ m("p", {
636
+ children: [/* @__PURE__ */ E("p", {
637
637
  className: "text-sm font-medium",
638
- children: mt || "Drop a CSV file here or click to browse"
639
- }), /* @__PURE__ */ m("p", {
638
+ children: pt || "Drop a CSV file here or click to browse"
639
+ }), /* @__PURE__ */ E("p", {
640
640
  className: "mt-1 text-xs text-text-secondary",
641
641
  children: "CSV files only. Required column: email."
642
642
  })]
643
643
  }),
644
- /* @__PURE__ */ m("input", {
645
- ref: yt,
644
+ /* @__PURE__ */ E("input", {
645
+ ref: vt,
646
646
  type: "file",
647
647
  accept: ".csv,text/csv",
648
648
  onChange: (e) => {
@@ -650,29 +650,29 @@ function k() {
650
650
  t && Mt(t), e.target.value = "";
651
651
  },
652
652
  className: "hidden",
653
- "aria-label": e(x, "workspaceInvite.chooseCsvFileAriaLabel", "Choose CSV file")
653
+ "aria-label": e(S, "workspaceInvite.chooseCsvFileAriaLabel", "Choose CSV file")
654
654
  }),
655
- /* @__PURE__ */ m(_, {
655
+ /* @__PURE__ */ E(h, {
656
656
  type: "button",
657
- onClick: () => yt.current?.click(),
658
- children: e(x, "workspaceInvite.chooseFile", "Choose file")
657
+ onClick: () => vt.current?.click(),
658
+ children: e(S, "workspaceInvite.chooseFile", "Choose file")
659
659
  })
660
660
  ]
661
661
  }),
662
- H.length > 0 ? /* @__PURE__ */ h(ve, { children: [
663
- /* @__PURE__ */ h("div", {
662
+ U.length > 0 ? /* @__PURE__ */ D(Fe, { children: [
663
+ /* @__PURE__ */ D("div", {
664
664
  className: "flex flex-wrap gap-4 text-xs text-text-secondary",
665
665
  children: [
666
- /* @__PURE__ */ h("span", { children: ["Total rows: ", H.length] }),
667
- /* @__PURE__ */ h("span", { children: ["Ready: ", Q.length] }),
668
- /* @__PURE__ */ h("span", { children: ["With errors: ", $.length] }),
669
- $.length > 0 ? /* @__PURE__ */ m(g, {
666
+ /* @__PURE__ */ D("span", { children: ["Total rows: ", U.length] }),
667
+ /* @__PURE__ */ D("span", { children: ["Ready: ", Q.length] }),
668
+ /* @__PURE__ */ D("span", { children: ["With errors: ", $.length] }),
669
+ $.length > 0 ? /* @__PURE__ */ E(m, {
670
670
  variant: "destructive",
671
671
  children: "Invalid rows will be skipped"
672
672
  }) : null
673
673
  ]
674
674
  }),
675
- $.length > 0 ? /* @__PURE__ */ h("div", {
675
+ $.length > 0 ? /* @__PURE__ */ D("div", {
676
676
  className: "rounded-md border border-status-error-border/20 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
677
677
  children: [
678
678
  $.length,
@@ -681,26 +681,26 @@ function k() {
681
681
  " need attention. Only valid rows can be invited."
682
682
  ]
683
683
  }) : null,
684
- /* @__PURE__ */ m("div", {
684
+ /* @__PURE__ */ E("div", {
685
685
  className: "overflow-hidden rounded-xl border",
686
- children: /* @__PURE__ */ m(je, {
687
- columns: Ve,
688
- data: H,
686
+ children: /* @__PURE__ */ E(ke, {
687
+ columns: Be,
688
+ data: U,
689
689
  rowKey: (e) => `${e.rowNumber}-${e.email}`
690
690
  })
691
691
  })
692
- ] }) : /* @__PURE__ */ m("div", {
692
+ ] }) : /* @__PURE__ */ E("div", {
693
693
  className: "rounded-xl border border-dashed p-6 text-center text-sm text-text-secondary",
694
694
  children: "Upload a CSV to preview invite rows here before sending."
695
695
  }),
696
- /* @__PURE__ */ m("div", {
696
+ /* @__PURE__ */ E("div", {
697
697
  className: "flex justify-end",
698
- children: /* @__PURE__ */ h(_, {
698
+ children: /* @__PURE__ */ D(h, {
699
699
  type: "button",
700
700
  onClick: Nt,
701
- disabled: Q.length === 0 || q || W,
701
+ disabled: Q.length === 0 || St || G,
702
702
  className: "gap-2",
703
- children: [q || W ? /* @__PURE__ */ m(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ m(f, { className: "size-4" }), e(x, "workspaceInvite.sendBulkButton", "Send Bulk Invites")]
703
+ children: [St || G ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(f, { className: "size-4" }), e(S, "workspaceInvite.sendBulkButton", "Send Bulk Invites")]
704
704
  })
705
705
  })
706
706
  ]
@@ -708,133 +708,133 @@ function k() {
708
708
  ]
709
709
  }) })]
710
710
  }),
711
- /* @__PURE__ */ h(S, {
711
+ /* @__PURE__ */ D(b, {
712
712
  treatment: "plain",
713
713
  id: "invite-pending-section",
714
714
  className: "border-border-seam",
715
- children: [/* @__PURE__ */ m(y, { children: /* @__PURE__ */ h(b, {
715
+ children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ D(v, {
716
716
  className: "flex items-center gap-2",
717
717
  children: [
718
- /* @__PURE__ */ m(pe, { className: "size-5 text-primary" }),
719
- e(x, "workspaceInvite.pendingTitle", "Pending Invitations"),
720
- /* @__PURE__ */ m(g, {
718
+ /* @__PURE__ */ E(pe, { className: "size-5 text-primary" }),
719
+ e(S, "workspaceInvite.pendingTitle", "Pending Invitations"),
720
+ /* @__PURE__ */ E(m, {
721
721
  variant: "secondary",
722
722
  className: "tabular-nums",
723
723
  children: Z.length
724
724
  })
725
725
  ]
726
- }) }), /* @__PURE__ */ h(v, { children: [B ? /* @__PURE__ */ h("div", {
727
- className: `mb-4 flex items-center gap-2 rounded-md border p-3 text-sm ${B.tone === "success" ? "border-status-success/30 bg-status-success/10 text-status-success-text" : "border-status-error-border/20 bg-status-error-bg/10 text-status-error-text"}`,
728
- children: [B.tone === "success" ? /* @__PURE__ */ m(u, { className: "size-4 shrink-0" }) : /* @__PURE__ */ m(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ m("span", { children: B.message })]
729
- }) : null, tt ? /* @__PURE__ */ h("div", {
726
+ }) }), /* @__PURE__ */ D(g, { children: [V ? /* @__PURE__ */ D("div", {
727
+ className: `mb-4 flex items-center gap-2 rounded-md border p-3 text-sm ${V.tone === "success" ? "border-status-success/30 bg-status-success/10 text-status-success-text" : "border-status-error-border/20 bg-status-error-bg/10 text-status-error-text"}`,
728
+ children: [V.tone === "success" ? /* @__PURE__ */ E(u, { className: "size-4 shrink-0" }) : /* @__PURE__ */ E(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: V.message })]
729
+ }) : null, et ? /* @__PURE__ */ D("div", {
730
730
  className: "space-y-3",
731
- children: [/* @__PURE__ */ m(C, { className: "h-20 w-full" }), /* @__PURE__ */ m(C, { className: "h-20 w-full" })]
732
- }) : nt && Z.length === 0 ? /* @__PURE__ */ h("div", {
731
+ children: [/* @__PURE__ */ E(x, { className: "h-20 w-full" }), /* @__PURE__ */ E(x, { className: "h-20 w-full" })]
732
+ }) : tt && Z.length === 0 ? /* @__PURE__ */ D("div", {
733
733
  role: "alert",
734
734
  className: "space-y-3 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
735
- children: [/* @__PURE__ */ m("p", { children: e(x, "workspaceInvite.pendingLoadFailed", "Failed to load pending invitations for this workspace.") }), /* @__PURE__ */ m(_, {
735
+ children: [/* @__PURE__ */ E("p", { children: e(S, "workspaceInvite.pendingLoadFailed", "Failed to load pending invitations for this workspace.") }), /* @__PURE__ */ E(h, {
736
736
  type: "button",
737
737
  variant: "outline",
738
738
  size: "sm",
739
739
  className: "w-fit",
740
- disabled: M,
740
+ disabled: N,
741
741
  onClick: () => {
742
- rt();
742
+ nt();
743
743
  },
744
- children: M ? e(x, "workspaceInvite.retrying", "Retrying…") : e(x, "workspaceInvite.tryAgain", "Try again")
744
+ children: N ? e(S, "workspaceInvite.retrying", "Retrying…") : e(S, "workspaceInvite.tryAgain", "Try again")
745
745
  })]
746
- }) : Z.length === 0 ? /* @__PURE__ */ m(De, {
746
+ }) : Z.length === 0 ? /* @__PURE__ */ E(Te, {
747
747
  illustration: "empty-notifications",
748
- title: e(x, "workspaceInvite.pendingEmptyTitle", "No pending invitations"),
749
- description: e(x, "workspaceInvite.pendingEmpty", "Invitations you send for this workspace will show up here until they are accepted, so you can resend or cancel them.")
750
- }) : /* @__PURE__ */ h("div", {
748
+ title: e(S, "workspaceInvite.pendingEmptyTitle", "No pending invitations"),
749
+ description: e(S, "workspaceInvite.pendingEmpty", "Invitations you send for this workspace will show up here until they are accepted, so you can resend or cancel them.")
750
+ }) : /* @__PURE__ */ D("div", {
751
751
  className: "space-y-3",
752
- children: [nt ? /* @__PURE__ */ h("div", {
752
+ children: [tt ? /* @__PURE__ */ D("div", {
753
753
  role: "alert",
754
754
  className: "flex flex-wrap items-center justify-between gap-3 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
755
- children: [/* @__PURE__ */ m("span", { children: e(x, "workspaceInvite.pendingStaleWarning", "Pending invitations may be outdated. Try again to refresh this list.") }), /* @__PURE__ */ m(_, {
755
+ children: [/* @__PURE__ */ E("span", { children: e(S, "workspaceInvite.pendingStaleWarning", "Pending invitations may be outdated. Try again to refresh this list.") }), /* @__PURE__ */ E(h, {
756
756
  type: "button",
757
757
  variant: "outline",
758
758
  size: "sm",
759
759
  className: "w-fit",
760
- disabled: M,
760
+ disabled: N,
761
761
  onClick: () => {
762
- rt();
762
+ nt();
763
763
  },
764
- children: M ? e(x, "workspaceInvite.retrying", "Retrying…") : e(x, "workspaceInvite.tryAgain", "Try again")
764
+ children: N ? e(S, "workspaceInvite.retrying", "Retrying…") : e(S, "workspaceInvite.tryAgain", "Try again")
765
765
  })]
766
766
  }) : null, Z.map((e) => {
767
767
  let r = n(e), i = t(e), a = Tt === e.id && (J || Y);
768
- return /* @__PURE__ */ m("div", {
768
+ return /* @__PURE__ */ E("div", {
769
769
  className: "rounded-lg border p-4",
770
- children: /* @__PURE__ */ h("div", {
770
+ children: /* @__PURE__ */ D("div", {
771
771
  className: "flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",
772
- children: [/* @__PURE__ */ h("div", {
772
+ children: [/* @__PURE__ */ D("div", {
773
773
  className: "space-y-3",
774
774
  children: [
775
- /* @__PURE__ */ h("div", {
775
+ /* @__PURE__ */ D("div", {
776
776
  className: "flex flex-wrap items-center gap-2",
777
- children: [/* @__PURE__ */ m("p", {
777
+ children: [/* @__PURE__ */ E("p", {
778
778
  className: "font-semibold",
779
779
  children: e.email
780
- }), /* @__PURE__ */ m(g, {
780
+ }), /* @__PURE__ */ E(m, {
781
781
  variant: "outline",
782
782
  children: e.status
783
783
  })]
784
784
  }),
785
- /* @__PURE__ */ h("div", {
785
+ /* @__PURE__ */ D("div", {
786
786
  className: "grid gap-3 text-sm text-text-secondary sm:grid-cols-2",
787
- children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
787
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
788
788
  className: "font-medium text-text-primary",
789
789
  children: "Received"
790
- }), /* @__PURE__ */ m("p", { children: Ue(e.createdAt) ?? "—" })] }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
790
+ }), /* @__PURE__ */ E("p", { children: He(e.createdAt) ?? "—" })] }), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
791
791
  className: "font-medium text-text-primary",
792
792
  children: "Expires"
793
- }), /* @__PURE__ */ m("p", { children: Ue(e.expiresAt) ?? "—" })] })]
793
+ }), /* @__PURE__ */ E("p", { children: He(e.expiresAt) ?? "—" })] })]
794
794
  }),
795
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
795
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
796
796
  className: "mb-2 text-sm font-medium text-text-primary",
797
797
  children: "Roles"
798
- }), /* @__PURE__ */ m("div", {
798
+ }), /* @__PURE__ */ E("div", {
799
799
  className: "flex flex-wrap gap-2",
800
- children: r.length > 0 ? r.map((t, n) => /* @__PURE__ */ m(g, {
800
+ children: r.length > 0 ? r.map((t, n) => /* @__PURE__ */ E(m, {
801
801
  variant: "outline",
802
802
  children: t
803
- }, `${e.id}-${e.roleIds[n] ?? t}`)) : /* @__PURE__ */ m("span", {
803
+ }, `${e.id}-${e.roleIds[n] ?? t}`)) : /* @__PURE__ */ E("span", {
804
804
  className: "text-sm text-text-secondary",
805
805
  children: "No roles selected"
806
806
  })
807
807
  })] }),
808
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
808
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
809
809
  className: "mb-2 text-sm font-medium text-text-primary",
810
810
  children: "Projects"
811
- }), /* @__PURE__ */ m("div", {
811
+ }), /* @__PURE__ */ E("div", {
812
812
  className: "flex flex-wrap gap-2",
813
- children: i.length > 0 ? i.map((t, n) => /* @__PURE__ */ m(g, {
813
+ children: i.length > 0 ? i.map((t, n) => /* @__PURE__ */ E(m, {
814
814
  variant: "secondary",
815
815
  children: t
816
- }, `${e.id}-project-${t}-${n}`)) : /* @__PURE__ */ m("span", {
816
+ }, `${e.id}-project-${t}-${n}`)) : /* @__PURE__ */ E("span", {
817
817
  className: "text-sm text-text-secondary",
818
818
  children: "No project access will be granted automatically"
819
819
  })
820
820
  })] })
821
821
  ]
822
- }), /* @__PURE__ */ h("div", {
822
+ }), /* @__PURE__ */ D("div", {
823
823
  className: "flex gap-2",
824
- children: [/* @__PURE__ */ h(_, {
824
+ children: [/* @__PURE__ */ D(h, {
825
825
  type: "button",
826
826
  variant: "outline",
827
827
  disabled: J || Y,
828
828
  onClick: () => Pt(e),
829
829
  className: "gap-2",
830
- children: [a && J ? /* @__PURE__ */ m(me, { className: "size-4 animate-spin" }) : /* @__PURE__ */ m(me, { className: "size-4" }), "Resend"]
831
- }), /* @__PURE__ */ h(_, {
830
+ children: [a && J ? /* @__PURE__ */ E(me, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(me, { className: "size-4" }), "Resend"]
831
+ }), /* @__PURE__ */ D(h, {
832
832
  type: "button",
833
833
  variant: "outline",
834
834
  disabled: J || Y,
835
- onClick: () => bt(e),
835
+ onClick: () => yt(e),
836
836
  className: "gap-2",
837
- children: [a && Y ? /* @__PURE__ */ m(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ m(p, { className: "size-4" }), "Cancel"]
837
+ children: [a && Y ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(p, { className: "size-4" }), "Cancel"]
838
838
  })]
839
839
  })]
840
840
  })
@@ -845,13 +845,13 @@ function k() {
845
845
  ]
846
846
  })] });
847
847
  }
848
- function qe() {
849
- let { workspaceId: e } = ze(), { workspaceId: t } = i();
850
- return /* @__PURE__ */ m(_e, {
848
+ function Ke() {
849
+ let { workspaceId: e } = Re(), { workspaceId: t } = i();
850
+ return /* @__PURE__ */ E(T, {
851
851
  scopeId: e || t || null,
852
852
  gateway: "workspace",
853
853
  debug: !1,
854
- children: /* @__PURE__ */ m(k, {})
854
+ children: /* @__PURE__ */ E(A, {})
855
855
  });
856
856
  }
857
- export { qe as WorkspaceInvitePage };
857
+ export { Ke as WorkspaceInvitePage };