@parallelworks/tandem-web 0.194.2 → 0.194.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/pages/issues.js CHANGED
@@ -28,96 +28,96 @@ import { isViewAt as tt, viewRef as nt } from "../lib/refs.js";
28
28
  import { useCan as rt } from "../lib/roles.js";
29
29
  import { useNavigate as it } from "../lib/router.js";
30
30
  import { useShortcuts as at } from "../lib/shortcuts.js";
31
- import { issuesHref as ot } from "../lib/teamPaths.js";
32
- import { filtersOf as st, sameFilters as ct, useSavedViews as lt, useViewMenu as ut, viewSearch as dt } from "../lib/views.js";
33
- import { ActionMenu as ft, Button as u, ConfirmModal as pt, Field as mt, IconButton as ht, SearchInput as gt, Select as _t, Tabs as vt, useOpenMenu as yt } from "@parallelworks/ui";
34
- import { useParams as bt, useSearch as xt } from "@tanstack/react-router";
35
- import { memo as d, useCallback as St, useEffect as Ct, useMemo as f, useRef as p, useState as m, useSyncExternalStore as wt } from "react";
36
- import { useTranslations as h } from "use-intl";
37
- import { Fragment as Tt, jsx as g, jsxs as _ } from "react/jsx-runtime";
38
- import { keepPreviousData as Et, useInfiniteQuery as Dt, useQuery as v, useSuspenseQuery as Ot } from "@tanstack/react-query";
39
- import { ListFilterBar as kt, ListFilterMenu as At, ListSkeleton as jt, MoreButton as Mt } from "@parallelworks/ui/list";
31
+ import { issuesHref as u } from "../lib/teamPaths.js";
32
+ import { filtersOf as ot, sameFilters as st, useSavedViews as ct, useViewMenu as lt, viewSearch as ut } from "../lib/views.js";
33
+ import { ActionMenu as dt, Button as d, ConfirmModal as ft, Field as pt, IconButton as mt, SearchInput as ht, Select as gt, Tabs as _t, useOpenMenu as vt } from "@parallelworks/ui";
34
+ import { useParams as yt, useSearch as bt } from "@tanstack/react-router";
35
+ import { memo as f, useCallback as xt, useEffect as St, useMemo as p, useRef as m, useState as h, useSyncExternalStore as Ct } from "react";
36
+ import { useTranslations as g } from "use-intl";
37
+ import { Fragment as wt, jsx as _, jsxs as v } from "react/jsx-runtime";
38
+ import { keepPreviousData as Tt, useInfiniteQuery as Et, useQuery as y, useSuspenseQuery as Dt } from "@tanstack/react-query";
39
+ import { ListFilterBar as Ot, ListFilterMenu as kt, ListSkeleton as At, MoreButton as jt } from "@parallelworks/ui/list";
40
40
  // src/pages/issues.tsx
41
- var Nt = {
41
+ var Mt = {
42
42
  status: "status",
43
43
  priority: "priority",
44
44
  project: "project",
45
45
  type: "type"
46
- }, Pt = [];
47
- function Ft({ team: e, ...t }) {
46
+ }, Nt = [];
47
+ function Pt({ team: e, ...t }) {
48
48
  return t;
49
49
  }
50
- var It = 3, Lt = "(max-width: 639px)", Rt = () => globalThis.matchMedia?.(Lt).matches ?? !1, zt = (e) => {
51
- let t = globalThis.matchMedia?.(Lt);
50
+ var Ft = 3, It = "(max-width: 639px)", Lt = () => globalThis.matchMedia?.(It).matches ?? !1, Rt = (e) => {
51
+ let t = globalThis.matchMedia?.(It);
52
52
  return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
53
- }, Bt = (e) => `saved:${nt(e)}`;
54
- function Vt(e, t, n) {
53
+ }, zt = (e) => `saved:${nt(e)}`;
54
+ function Bt(e, t, n) {
55
55
  let r = t && !e.some((e) => e.id === t.id) ? [...e, t] : e, i = r.slice(0, n);
56
56
  return t && !i.some((e) => e.id === t.id) && (i = [...i.slice(0, n - 1), t]), {
57
57
  shown: i,
58
58
  more: r.filter((e) => !i.some((t) => t.id === e.id))
59
59
  };
60
60
  }
61
- function Ht(e) {
61
+ function Vt(e) {
62
62
  let { assignee: t, creator: n, ...r } = e;
63
63
  return n ? {
64
64
  ...r,
65
65
  creator: n
66
66
  } : r;
67
67
  }
68
- function Ut({ person: c } = {}) {
69
- let d = h("issues"), Lt = h("planning"), Ut = h("common"), { workspace: y, key: b } = bt({ strict: !1 }), x = xt({ strict: !1 }), S = b ? {
70
- ...x,
71
- team: b
72
- } : c ? x.creator ? {
73
- ...Ht(x),
68
+ function Ht({ person: c } = {}) {
69
+ let f = g("issues"), It = g("planning"), Ht = g("common"), { workspace: b, key: x } = yt({ strict: !1 }), S = bt({ strict: !1 }), C = x ? {
70
+ ...S,
71
+ team: x
72
+ } : c ? S.creator ? {
73
+ ...Vt(S),
74
74
  creator: c
75
75
  } : {
76
- ...x,
76
+ ...S,
77
77
  assignee: c
78
- } : x, Kt = it(), qt = (e) => c ? ot(y, { ...Ht(e) }).replace(`/${y}/issues`, `/${y}/people/${encodeURIComponent(c)}`) : ot(y, { ...e }), C = (e, t) => {
78
+ } : S, Gt = it(), Kt = (e) => c ? u(b, { ...Vt(e) }).replace(`/${b}/issues`, `/${b}/people/${encodeURIComponent(c)}`) : u(b, { ...e }), w = (e, t) => {
79
79
  let { team: n, ...r } = e;
80
- return Kt(c ? {
80
+ return Gt(c ? {
81
81
  to: "/$workspace/people/$username",
82
82
  params: {
83
- workspace: y,
83
+ workspace: b,
84
84
  username: c
85
85
  },
86
- search: Ht(r),
86
+ search: Vt(r),
87
87
  ...t && { replace: t }
88
88
  } : n ? {
89
89
  to: "/$workspace/teams/$key/issues",
90
90
  params: {
91
- workspace: y,
91
+ workspace: b,
92
92
  key: n
93
93
  },
94
94
  search: r,
95
95
  ...t && { replace: t }
96
96
  } : {
97
97
  to: "/$workspace/issues",
98
- params: { workspace: y },
98
+ params: { workspace: b },
99
99
  search: r,
100
100
  ...t && { replace: t }
101
101
  });
102
- }, Jt = p((e) => C(e, !0));
103
- Jt.current = (e) => C(e, !0);
104
- let Yt = p((e) => C(l(S, "q", e), !0));
105
- Yt.current = (e) => C(l(S, "q", e), !0);
106
- let { data: Xt } = Ot(a), { data: w } = Ot(te(y)), Zt = Je(), T = S.view ?? "active", [Qt, $t] = m(S.q ?? ""), en = p(null);
107
- Ct(() => {
102
+ }, qt = m((e) => w(e, !0));
103
+ qt.current = (e) => w(e, !0);
104
+ let Jt = m((e) => w(l(C, "q", e), !0));
105
+ Jt.current = (e) => w(l(C, "q", e), !0);
106
+ let { data: Yt } = Dt(a), { data: T } = Dt(te(b)), Xt = Je(), E = C.view ?? "active", [Zt, Qt] = h(C.q ?? ""), $t = m(null);
107
+ St(() => {
108
108
  let e = setTimeout(() => {
109
- (S.q ?? "") !== Qt && Yt.current(Qt);
109
+ (C.q ?? "") !== Zt && Jt.current(Zt);
110
110
  }, 250);
111
111
  return () => clearTimeout(e);
112
- }, [Qt, S.q]);
113
- let { data: tn } = v({
114
- ...ee(y, S.team ?? ""),
115
- enabled: !!S.status && !!S.team
116
- }), nn = Ve(S, tn), rn = !S.status || !S.team || !!tn, an = be(), { nameOf: on, avatarOf: sn } = $e(y), E = S.saved ? {} : Ie(), { data: cn } = v(Te(y)), D = w.find((e) => e.key === S.team), O = f(() => De(cn, D ? [D.id] : w.map((e) => e.id)), [
112
+ }, [Zt, C.q]);
113
+ let { data: en } = y({
114
+ ...ee(b, C.team ?? ""),
115
+ enabled: !!C.status && !!C.team
116
+ }), tn = Ve(C, en), nn = !C.status || !C.team || !!en, rn = be(), { nameOf: an, avatarOf: on } = $e(b), sn = C.saved ? {} : Ie(), { data: cn } = y(Te(b)), D = T.find((e) => e.key === C.team), O = p(() => De(cn, D ? [D.id] : T.map((e) => e.id)), [
117
117
  cn,
118
118
  D,
119
- w
120
- ]), k = h("customFields"), ln = h("issueTypes"), { data: un } = v(Ke(y)), dn = f(() => (un ?? []).filter((e) => !e.archivedAt && (!D || e.teamIds.length === 0 || e.teamIds.includes(D.id))), [un, D]), A = Be(S.order, O) ? S.order : Be(E.order, O) ? E.order : "updated", j = ze(S.group, O) ? S.group : ze(E.group, O) ? E.group : "status", fn = O.find((e) => e.id === Ee(j)), [pn, mn] = m(() => Ne(y)), hn = f(() => O.filter((e) => pn.includes(e.id)), [O, pn]), M = S.layout === "board" || !S.layout && E.layout === "board", [N, gn] = m(() => {
119
+ T
120
+ ]), k = g("customFields"), ln = g("issueTypes"), { data: un } = y(Ke(b)), dn = p(() => (un ?? []).filter((e) => !e.archivedAt && (!D || e.teamIds.length === 0 || e.teamIds.includes(D.id))), [un, D]), A = Be(C.order, O) ? C.order : Be(sn.order, O) ? sn.order : "updated", j = ze(C.group, O) ? C.group : ze(sn.group, O) ? sn.group : "status", fn = O.find((e) => e.id === Ee(j)), [pn, mn] = h(() => Ne(b)), hn = p(() => O.filter((e) => pn.includes(e.id)), [O, pn]), M = C.layout === "board" || !C.layout && sn.layout === "board", [N, gn] = h(() => {
121
121
  try {
122
122
  return localStorage.getItem(Me) !== "hidden";
123
123
  } catch {
@@ -128,7 +128,7 @@ function Ut({ person: c } = {}) {
128
128
  localStorage.setItem(Me, e ? "hidden" : "shown");
129
129
  } catch {}
130
130
  return !e;
131
- }), [vn, yn] = m(() => {
131
+ }), [vn, yn] = h(() => {
132
132
  try {
133
133
  return localStorage.getItem(Ae) === "shown";
134
134
  } catch {
@@ -139,12 +139,12 @@ function Ut({ person: c } = {}) {
139
139
  localStorage.setItem(Ae, e ? "hidden" : "shown");
140
140
  } catch {}
141
141
  return !e;
142
- }), [xn, Sn] = m("assignees"), Cn = f(() => ue(S.breakdown), [S.breakdown]), wn = (e) => C(l(S, "breakdown", ce(e) ?? ""), !0), Tn = se(Cn) > 0, P = !M && !Tn && !S.status && Ye.includes(j) && n.includes(A) ? j : void 0, F = Dt({
143
- ...r(y, nn),
144
- placeholderData: Et,
145
- enabled: rn && (!P || N)
142
+ }), [xn, Sn] = h("assignees"), Cn = p(() => ue(C.breakdown), [C.breakdown]), wn = (e) => w(l(C, "breakdown", ce(e) ?? ""), !0), Tn = se(Cn) > 0, P = !M && !Tn && !C.status && Ye.includes(j) && n.includes(A) ? j : void 0, F = Et({
143
+ ...r(b, tn),
144
+ placeholderData: Tt,
145
+ enabled: nn && (!P || N)
146
146
  }), { hasNextPage: En, isFetchingNextPage: Dn, fetchNextPage: On } = F, kn = !P || N;
147
- Ct(() => {
147
+ St(() => {
148
148
  kn && En && !Dn && !F.error && On();
149
149
  }, [
150
150
  kn,
@@ -153,27 +153,27 @@ function Ut({ person: c } = {}) {
153
153
  F.error,
154
154
  On
155
155
  ]);
156
- let I = v({
157
- ...t(y, st(S), P ?? "status"),
158
- placeholderData: Et,
159
- enabled: rn && !!P
160
- }), L = Xe(y, nn, P ?? "status", A, I.data?.byKey, rn && !!P), R = P ? I.data : F.data, An = P ? I.error ?? L.error : F.error, jn = P ? I.isFetching : F.isFetching, z = P ? L.fetching : !!En, B = P ? L.complete : !En, Mn = f(() => F.data?.pages.flatMap((e) => e.issues) ?? [], [F.data]), V = f(() => P ? [...L.issues.values()].flat() : Mn, [
156
+ let I = y({
157
+ ...t(b, ot(C), P ?? "status"),
158
+ placeholderData: Tt,
159
+ enabled: nn && !!P
160
+ }), L = Xe(b, tn, P ?? "status", A, I.data?.byKey, nn && !!P), R = P ? I.data : F.data, An = P ? I.error ?? L.error : F.error, jn = P ? I.isFetching : F.isFetching, z = P ? L.fetching : !!En, B = P ? L.complete : !En, Mn = p(() => F.data?.pages.flatMap((e) => e.issues) ?? [], [F.data]), V = p(() => P ? [...L.issues.values()].flat() : Mn, [
161
161
  P,
162
162
  L.issues,
163
163
  Mn
164
- ]), { data: Nn } = v({
165
- ...o(y),
164
+ ]), { data: Nn } = y({
165
+ ...o(b),
166
166
  enabled: P === "project"
167
- }), Pn = Tn ? V.filter((e) => le(e, Cn)) : V, Fn = f(() => Le(Ue(Pn, A, O), j, {
168
- status: (e) => d(`groups.${e}`),
169
- priority: (e) => an[e] ?? "",
170
- person: on,
171
- avatar: sn,
167
+ }), Pn = Tn ? V.filter((e) => le(e, Cn)) : V, Fn = p(() => Le(Ue(Pn, A, O), j, {
168
+ status: (e) => f(`groups.${e}`),
169
+ priority: (e) => rn[e] ?? "",
170
+ person: an,
171
+ avatar: on,
172
172
  none: {
173
- assignee: d("noAssignee"),
174
- project: d("noProject"),
175
- label: d("noLabel"),
176
- all: d("all")
173
+ assignee: f("noAssignee"),
174
+ project: f("noProject"),
175
+ label: f("noLabel"),
176
+ all: f("all")
177
177
  },
178
178
  noField: (e) => k("noField", { name: e }),
179
179
  yes: k("yes"),
@@ -183,16 +183,16 @@ function Ut({ person: c } = {}) {
183
183
  Pn,
184
184
  A,
185
185
  j,
186
- d,
186
+ f,
187
187
  k,
188
188
  ln,
189
+ rn,
189
190
  an,
190
191
  on,
191
- sn,
192
192
  M,
193
193
  O,
194
194
  dn
195
- ]), H = f(() => {
195
+ ]), H = p(() => {
196
196
  if (!P) return Fn;
197
197
  let e = I.data?.byKey, t = Fn;
198
198
  if (P === "project") {
@@ -213,23 +213,23 @@ function Ut({ person: c } = {}) {
213
213
  I.data,
214
214
  Nn,
215
215
  L.more
216
- ]), U = f(() => H.flatMap((e) => e.issues), [H]), In = f(() => new Map(U.map((e, t) => [e.id, t])), [U]), Ln = !Tn && !S.status ? Nt[j] : void 0, { data: Rn } = v({
217
- ...t(y, st(S), Ln ?? "status"),
216
+ ]), U = p(() => H.flatMap((e) => e.issues), [H]), In = p(() => new Map(U.map((e, t) => [e.id, t])), [U]), Ln = !Tn && !C.status ? Mt[j] : void 0, { data: Rn } = y({
217
+ ...t(b, ot(C), Ln ?? "status"),
218
218
  enabled: z && !!Ln
219
- }), zn = St((e) => P ? I.data?.byKey.get(e.key) ?? e.issues.length : z && Rn?.byKey.get(e.key) || e.issues.length, [
219
+ }), zn = xt((e) => P ? I.data?.byKey.get(e.key) ?? e.issues.length : z && Rn?.byKey.get(e.key) || e.issues.length, [
220
220
  P,
221
221
  I.data,
222
222
  z,
223
223
  Rn
224
- ]), Bn = f(() => new Map(w.map((e) => [e.id, e])), [w]), [Vn, Hn] = m(0), W = U[Math.min(Vn, U.length - 1)], [G, K] = m(/* @__PURE__ */ new Set()), Un = p(null), Wn = Ge(y), Gn = Ce(y, w), { people: Kn } = qe(), qn = f(() => {
224
+ ]), Bn = p(() => new Map(T.map((e) => [e.id, e])), [T]), [Vn, Hn] = h(0), W = U[Math.min(Vn, U.length - 1)], [G, K] = h(/* @__PURE__ */ new Set()), Un = m(null), Wn = Ge(b), Gn = Ce(b, T), { people: Kn } = qe(), qn = p(() => {
225
225
  let e = /* @__PURE__ */ new Map();
226
226
  for (let t of Kn) {
227
- if (!t.identifier || t.username === Xt?.user.username) continue;
227
+ if (!t.identifier || t.username === Yt?.user.username) continue;
228
228
  let n = e.get(t.identifier) ?? /* @__PURE__ */ new Set();
229
229
  n.add(t.username), e.set(t.identifier, n);
230
230
  }
231
231
  return new Map([...e].map(([e, t]) => [e, [...t]]));
232
- }, [Kn, Xt?.user.username]), Jn = yt(), Yn = f(() => U.filter((e) => G.has(e.id)), [U, G]);
232
+ }, [Kn, Yt?.user.username]), Jn = vt(), Yn = p(() => U.filter((e) => G.has(e.id)), [U, G]);
233
233
  Qe(Yn);
234
234
  let Xn = (e) => K((t) => {
235
235
  let n = new Set(t);
@@ -252,7 +252,7 @@ function Ut({ person: c } = {}) {
252
252
  }, er = (e, t) => {
253
253
  let n = G.has(t.id) ? U.filter((e) => G.has(e.id)) : [t];
254
254
  G.has(t.id) || K(/* @__PURE__ */ new Set()), Jn(e, Wn(n));
255
- }, tr = p({
255
+ }, tr = m({
256
256
  pick: Qn,
257
257
  select: Hn,
258
258
  click: $n,
@@ -264,8 +264,8 @@ function Ut({ person: c } = {}) {
264
264
  click: $n,
265
265
  menu: er
266
266
  };
267
- let [J, nr] = m(!1);
268
- Ct(() => {
267
+ let [J, nr] = h(!1);
268
+ St(() => {
269
269
  J && (B || An) && (K(new Set(U.map((e) => e.id))), nr(!1));
270
270
  }, [
271
271
  J,
@@ -273,14 +273,14 @@ function Ut({ person: c } = {}) {
273
273
  An,
274
274
  U
275
275
  ]);
276
- let { data: rr } = v({
277
- ...t(y, st(S), "status"),
276
+ let { data: rr } = y({
277
+ ...t(b, ot(C), "status"),
278
278
  enabled: J
279
279
  }), ir = () => {
280
280
  K(new Set(U.map((e) => e.id))), P && L.loadAll(), nr(!B);
281
281
  }, ar = () => {
282
282
  K(/* @__PURE__ */ new Set()), nr(!1);
283
- }, or = p(null), sr = (e) => {
283
+ }, or = m(null), sr = (e) => {
284
284
  if (J) return;
285
285
  let t = G.size > 0 ? Yn : W ? [W] : [];
286
286
  if (t.length === 0) return;
@@ -289,7 +289,7 @@ function Ut({ person: c } = {}) {
289
289
  }, Y = (e) => () => {
290
290
  let t = sr(e), n = G.size > 0 && or.current || W && document.getElementById(`row-${W.id}`);
291
291
  t && "items" in t && t.items && n && Jn(n, t.items);
292
- }, [cr, lr] = m(null), ur = () => {
292
+ }, [cr, lr] = h(null), ur = () => {
293
293
  let e = sr("⌫");
294
294
  e && "onClick" in e && lr(() => e.onClick);
295
295
  };
@@ -313,37 +313,32 @@ function Ut({ person: c } = {}) {
313
313
  d: Y("D"),
314
314
  Backspace: ur,
315
315
  Delete: ur,
316
- Enter: () => W && Kt({
316
+ Enter: () => W && Gt({
317
317
  to: "/$workspace/issues/$identifier",
318
318
  params: {
319
- workspace: y,
319
+ workspace: b,
320
320
  identifier: W.identifier
321
321
  }
322
322
  })
323
323
  },
324
324
  Escape: ar,
325
- "/": () => en.current?.focus()
326
- }), Ct(() => {
327
- let e = (e) => {
328
- (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === "f" && (e.preventDefault(), en.current?.focus(), en.current?.select());
329
- };
330
- return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
331
- }, []);
332
- let dr = p(null), X = w.find((e) => e.key === S.team), fr = de(y, S, (e) => C(fe(S, e), !0), !!b && !S.assignee && !S.creator && !S.saved && !S.scope), pr = ot(y, { ...l(S, "q", void 0) }), { views: mr, create: hr, update: gr } = lt(y), Z = mr.find((e) => tt(e, S.saved)), { data: _r = [] } = v({
333
- ...s(y, S.team ?? ""),
334
- enabled: !!b && !c
335
- }), vr = ut(y), { data: yr } = v(i(y)), { data: br } = v(o(y)), { data: xr } = v({
336
- ...e(y, X?.key ?? ""),
325
+ "/": () => $t.current?.focus()
326
+ });
327
+ let dr = m(null), X = T.find((e) => e.key === C.team), fr = de(b, C, (e) => w(fe(C, e), !0), !!x && !C.assignee && !C.creator && !C.saved && !C.scope), pr = u(b, { ...l(C, "q", void 0) }), { views: mr, create: hr, update: gr } = ct(b), Z = mr.find((e) => tt(e, C.saved)), { data: _r = [] } = y({
328
+ ...s(b, C.team ?? ""),
329
+ enabled: !!x && !c
330
+ }), vr = lt(b), { data: yr } = y(i(b)), { data: br } = y(o(b)), { data: xr } = y({
331
+ ...e(b, X?.key ?? ""),
337
332
  enabled: !!X
338
333
  });
339
- Ct(() => {
340
- let e = /^[0-9a-f]{8}-[0-9a-f]{4}-/i, t = { ...S }, n = yr?.find((e) => e.id === S.label);
341
- S.label && e.test(S.label) && n && (t.label = n.name);
342
- let r = br?.find((e) => e.id === S.project);
343
- S.project && e.test(S.project) && r && (t.project = et(r));
344
- let i = xr?.find((e) => String(e.number) === S.cycle);
345
- i && (t.cycle = i.id), S.saved && e.test(S.saved) && Z && (t.saved = nt(Z));
346
- let a = ue(S.breakdown), o = we(a, {
334
+ St(() => {
335
+ let e = /^[0-9a-f]{8}-[0-9a-f]{4}-/i, t = { ...C }, n = yr?.find((e) => e.id === C.label);
336
+ C.label && e.test(C.label) && n && (t.label = n.name);
337
+ let r = br?.find((e) => e.id === C.project);
338
+ C.project && e.test(C.project) && r && (t.project = et(r));
339
+ let i = xr?.find((e) => String(e.number) === C.cycle);
340
+ i && (t.cycle = i.id), C.saved && e.test(C.saved) && Z && (t.saved = nt(Z));
341
+ let a = ue(C.breakdown), o = we(a, {
347
342
  ...yr && { labels: new Set(yr.map((e) => e.id)) },
348
343
  ...br && { projects: new Set(br.map((e) => e.id)) }
349
344
  });
@@ -351,185 +346,185 @@ function Ut({ person: c } = {}) {
351
346
  let e = ce(o);
352
347
  e ? t.breakdown = e : delete t.breakdown;
353
348
  }
354
- JSON.stringify(t) !== JSON.stringify(S) && Jt.current(t);
349
+ JSON.stringify(t) !== JSON.stringify(C) && qt.current(t);
355
350
  }, [
356
- S,
351
+ C,
357
352
  yr,
358
353
  br,
359
354
  xr,
360
355
  Z
361
356
  ]);
362
- let Sr = st({
363
- ...S,
357
+ let Sr = ot({
358
+ ...C,
364
359
  ...A !== "updated" && { order: A },
365
360
  ...j !== "status" && { group: j },
366
361
  ...M && { layout: "board" }
367
362
  }), Cr = Z && {
368
- ...S.team && { team: S.team },
363
+ ...C.team && { team: C.team },
369
364
  ...Z.filters
370
- }, wr = Cr ? !ct(Cr, Sr) : Object.keys(Sr).length > 0, Tr = rt(y, "save_views"), [Er, Dr] = m(!1), Q = h("savedViews"), $ = Xt?.user.username, Or = !Z && !X && (!S.assigneeKind && S.assignee === $ && !S.creator || S.creator === $ && !S.assignee), kr = c ?? (Or ? $ : void 0), Ar = Z?.name ?? X?.name ?? (c && c !== $ ? d("personIssues", { name: on("user", c) }) : !S.assigneeKind && S.assignee === $ || S.creator === $ ? d("mine") : d("all")), jr = h("workspace");
365
+ }, wr = Cr ? !st(Cr, Sr) : Object.keys(Sr).length > 0, Tr = rt(b, "save_views"), [Er, Dr] = h(!1), Q = g("savedViews"), $ = Yt?.user.username, Or = !Z && !X && (!C.assigneeKind && C.assignee === $ && !C.creator || C.creator === $ && !C.assignee), kr = c ?? (Or ? $ : void 0), Ar = Z?.name ?? X?.name ?? (c && c !== $ ? f("personIssues", { name: an("user", c) }) : !C.assigneeKind && C.assignee === $ || C.creator === $ ? f("mine") : f("all")), jr = g("workspace");
371
366
  Ze(...X && !Z ? [jr("issues"), X.name] : [Ar]);
372
- let Mr = wt(zt, Rt), Nr = Vt(b && !c ? _r : [], Z, Mr ? +!!Z : It), Pr = wr && /* @__PURE__ */ _(Tt, { children: [Z?.canEdit && /* @__PURE__ */ g(u, {
367
+ let Mr = Ct(Rt, Lt), Nr = Bt(x && !c ? _r : [], Z, Mr ? +!!Z : Ft), Pr = wr && /* @__PURE__ */ v(wt, { children: [Z?.canEdit && /* @__PURE__ */ _(d, {
373
368
  type: "button",
374
369
  size: "sm",
375
370
  loading: gr.isPending,
376
371
  onClick: () => gr.mutate({
377
372
  id: Z.id,
378
- filters: Z.filters.team ? Sr : Ft(Sr)
373
+ filters: Z.filters.team ? Sr : Pt(Sr)
379
374
  }),
380
375
  children: Q("update")
381
- }), /* @__PURE__ */ g(u, {
376
+ }), /* @__PURE__ */ _(d, {
382
377
  type: "button",
383
378
  size: "sm",
384
379
  onClick: () => Dr(!0),
385
380
  children: Q(Z ? "saveAsNew" : "save")
386
381
  })] });
387
- return /* @__PURE__ */ _("div", {
382
+ return /* @__PURE__ */ v("div", {
388
383
  className: "flex h-full flex-col",
389
384
  children: [
390
- /* @__PURE__ */ _("header", {
385
+ /* @__PURE__ */ v("header", {
391
386
  className: "flex min-h-12 shrink-0 flex-wrap items-center gap-x-3 gap-y-2 border-b border-border px-4 py-2 md:px-5",
392
387
  children: [
393
- /* @__PURE__ */ g("h1", {
388
+ /* @__PURE__ */ _("h1", {
394
389
  className: "text-sm font-semibold whitespace-nowrap",
395
390
  children: Ar
396
391
  }),
397
- /* @__PURE__ */ g(re, {
398
- workspace: y,
392
+ /* @__PURE__ */ _(re, {
393
+ workspace: b,
399
394
  kind: "view",
400
395
  target: pr,
401
- label: T === "active" ? Ar : d("favoriteLabel", {
396
+ label: E === "active" ? Ar : f("favoriteLabel", {
402
397
  title: Ar,
403
- view: d(`views.${T}`)
398
+ view: f(`views.${E}`)
404
399
  })
405
400
  }),
406
- kr && /* @__PURE__ */ g(vt, {
401
+ kr && /* @__PURE__ */ _(_t, {
407
402
  variant: "segmented",
408
403
  size: "sm",
409
- label: d("mineScope"),
404
+ label: f("mineScope"),
410
405
  items: ["assigned", "created"].map((e) => ({
411
406
  value: e,
412
- label: d(`mineScopes.${e}`),
413
- href: qt({
414
- ...S.view && { view: S.view },
407
+ label: f(`mineScopes.${e}`),
408
+ href: Kt({
409
+ ...C.view && { view: C.view },
415
410
  ...e === "assigned" ? { assignee: kr } : { creator: kr }
416
411
  })
417
412
  })),
418
- value: S.creator ? "created" : "assigned"
413
+ value: C.creator ? "created" : "assigned"
419
414
  }),
420
- Z && /* @__PURE__ */ g(Mt, {
415
+ Z && /* @__PURE__ */ _(jt, {
421
416
  visible: !0,
422
417
  items: () => vr.menu(Z),
423
- label: Ut("moreActionsFor", { name: Z.name })
418
+ label: Ht("moreActionsFor", { name: Z.name })
424
419
  }),
425
- /* @__PURE__ */ g(vt, {
420
+ /* @__PURE__ */ _(_t, {
426
421
  variant: "segmented",
427
422
  size: "sm",
428
- label: d("view"),
423
+ label: f("view"),
429
424
  items: [...Object.keys(We).map((e) => ({
430
425
  value: e,
431
- label: d(`views.${e}`),
432
- href: qt(Z ? {
433
- ...S.team && { team: S.team },
426
+ label: f(`views.${e}`),
427
+ href: Kt(Z ? {
428
+ ...C.team && { team: C.team },
434
429
  ...e !== "active" && { view: e }
435
- } : l(S, "view", e === "active" ? void 0 : e))
430
+ } : l(C, "view", e === "active" ? void 0 : e))
436
431
  })), ...Nr.shown.map((e) => ({
437
- value: Bt(e),
432
+ value: zt(e),
438
433
  label: e.name,
439
- href: ot(y, {
440
- ...dt(e),
441
- team: e.filters.team ?? S.team
434
+ href: u(b, {
435
+ ...ut(e),
436
+ team: e.filters.team ?? C.team
442
437
  })
443
438
  }))],
444
- value: Z ? Bt(Z) : T,
439
+ value: Z ? zt(Z) : E,
445
440
  className: "max-w-full flex-wrap",
446
- end: Nr.more.length > 0 && /* @__PURE__ */ g(ft, {
441
+ end: Nr.more.length > 0 && /* @__PURE__ */ _(dt, {
447
442
  label: Q("title"),
448
443
  items: Nr.more.map((e) => ({
449
444
  label: e.name,
450
- href: ot(y, {
451
- ...dt(e),
452
- team: e.filters.team ?? S.team
445
+ href: u(b, {
446
+ ...ut(e),
447
+ team: e.filters.team ?? C.team
453
448
  })
454
449
  })),
455
- trigger: /* @__PURE__ */ g(u, {
450
+ trigger: /* @__PURE__ */ _(d, {
456
451
  size: "sm",
457
452
  variant: "ghost",
458
453
  children: Q("more", { count: Nr.more.length })
459
454
  })
460
455
  })
461
456
  }),
462
- /* @__PURE__ */ _("div", {
457
+ /* @__PURE__ */ v("div", {
463
458
  className: "flex w-full min-w-0 flex-wrap items-center gap-2 md:ml-auto md:w-auto md:flex-nowrap",
464
459
  children: [
465
460
  fr.count === 0 && Pr,
466
- /* @__PURE__ */ g(gt, {
467
- ref: en,
468
- value: Qt,
469
- onValueChange: $t,
470
- onKeyDown: (e) => e.key === "Escape" && !Qt && e.currentTarget.blur(),
471
- placeholder: d("search"),
472
- label: d("search"),
473
- "aria-keyshortcuts": "/ Meta+F Control+F",
461
+ /* @__PURE__ */ _(ht, {
462
+ ref: $t,
463
+ value: Zt,
464
+ onValueChange: Qt,
465
+ onKeyDown: (e) => e.key === "Escape" && !Zt && e.currentTarget.blur(),
466
+ placeholder: f("search"),
467
+ label: f("search"),
468
+ "aria-keyshortcuts": "/",
474
469
  size: "sm",
475
470
  className: "min-w-0 flex-1 max-md:order-first max-md:basis-full md:w-56 md:flex-initial"
476
471
  }),
477
- /* @__PURE__ */ g(At, { filters: fr }),
478
- /* @__PURE__ */ _(ne, {
472
+ /* @__PURE__ */ _(kt, { filters: fr }),
473
+ /* @__PURE__ */ v(ne, {
479
474
  layouts: [{
480
475
  value: "list",
481
- label: d("layouts.list"),
482
- icon: /* @__PURE__ */ g(ve, {})
476
+ label: f("layouts.list"),
477
+ icon: /* @__PURE__ */ _(ve, {})
483
478
  }, {
484
479
  value: "board",
485
- label: d("layouts.board"),
486
- icon: /* @__PURE__ */ g(he, {})
480
+ label: f("layouts.board"),
481
+ icon: /* @__PURE__ */ _(he, {})
487
482
  }],
488
483
  layout: M ? "board" : "list",
489
484
  onLayoutChange: (e) => {
490
- Pe({ layout: e }), C(l(S, "layout", e === "board" ? "board" : void 0));
485
+ Pe({ layout: e }), w(l(C, "layout", e === "board" ? "board" : void 0));
491
486
  },
492
487
  changed: A !== "updated" || j !== "status" || M,
493
488
  children: [
494
- /* @__PURE__ */ g(mt, {
495
- label: d("orderBy"),
496
- children: /* @__PURE__ */ g(_t, {
489
+ /* @__PURE__ */ _(pt, {
490
+ label: f("orderBy"),
491
+ children: /* @__PURE__ */ _(gt, {
497
492
  value: A,
498
493
  items: [...He.map((e) => ({
499
494
  value: e,
500
- label: d(`order.${e}`)
495
+ label: f(`order.${e}`)
501
496
  })), ...O.filter((e) => ke.includes(e.kind)).map((e) => ({
502
497
  value: `field:${e.id}`,
503
498
  label: e.name
504
499
  }))],
505
500
  onValueChange: (e) => {
506
- Pe({ order: e }), C(l(S, "order", e === "updated" ? void 0 : e));
501
+ Pe({ order: e }), w(l(C, "order", e === "updated" ? void 0 : e));
507
502
  },
508
- "aria-label": d("orderBy"),
503
+ "aria-label": f("orderBy"),
509
504
  size: "sm"
510
505
  })
511
506
  }),
512
- /* @__PURE__ */ g(mt, {
513
- label: d("groupBy"),
514
- children: /* @__PURE__ */ g(_t, {
507
+ /* @__PURE__ */ _(pt, {
508
+ label: f("groupBy"),
509
+ children: /* @__PURE__ */ _(gt, {
515
510
  value: j,
516
511
  items: [...Re.map((e) => ({
517
512
  value: e,
518
- label: d(`grouping.${e}`)
513
+ label: f(`grouping.${e}`)
519
514
  })), ...O.filter((e) => Oe.includes(e.kind)).map((e) => ({
520
515
  value: `field:${e.id}`,
521
516
  label: e.name
522
517
  }))],
523
518
  onValueChange: (e) => {
524
- Pe({ group: e }), C(l(S, "group", e === "status" ? void 0 : e));
519
+ Pe({ group: e }), w(l(C, "group", e === "status" ? void 0 : e));
525
520
  },
526
- "aria-label": d("groupBy"),
521
+ "aria-label": f("groupBy"),
527
522
  size: "sm"
528
523
  })
529
524
  }),
530
- O.length > 0 && /* @__PURE__ */ g(mt, {
525
+ O.length > 0 && /* @__PURE__ */ _(pt, {
531
526
  label: k("onRows"),
532
- children: /* @__PURE__ */ g(_t, {
527
+ children: /* @__PURE__ */ _(gt, {
533
528
  multiple: !0,
534
529
  value: pn.filter((e) => O.some((t) => t.id === e)),
535
530
  items: O.map((e) => ({
@@ -537,7 +532,7 @@ function Ut({ person: c } = {}) {
537
532
  label: e.name
538
533
  })),
539
534
  onValueChange: (e) => {
540
- Fe(y, e), mn(e);
535
+ Fe(b, e), mn(e);
541
536
  },
542
537
  placeholder: k("noneOnRows"),
543
538
  "aria-label": k("onRows"),
@@ -546,20 +541,20 @@ function Ut({ person: c } = {}) {
546
541
  })
547
542
  ]
548
543
  }),
549
- /* @__PURE__ */ g(ht, {
544
+ /* @__PURE__ */ _(mt, {
550
545
  variant: "secondary",
551
546
  size: "sm",
552
- icon: /* @__PURE__ */ g(ye, { className: "size-3.5" }),
553
- label: d(N ? "hidePanel" : "showPanel"),
547
+ icon: /* @__PURE__ */ _(ye, { className: "size-3.5" }),
548
+ label: f(N ? "hidePanel" : "showPanel"),
554
549
  "aria-pressed": N,
555
550
  onClick: _n,
556
551
  className: "max-xl:hidden"
557
552
  }),
558
- /* @__PURE__ */ g(ht, {
553
+ /* @__PURE__ */ _(mt, {
559
554
  variant: "secondary",
560
555
  size: "sm",
561
- icon: /* @__PURE__ */ g(ge, { className: "size-3.5" }),
562
- label: d(vn ? "hideInsights" : "showInsights"),
556
+ icon: /* @__PURE__ */ _(ge, { className: "size-3.5" }),
557
+ label: f(vn ? "hideInsights" : "showInsights"),
563
558
  "aria-pressed": vn,
564
559
  onClick: bn
565
560
  })
@@ -567,16 +562,16 @@ function Ut({ person: c } = {}) {
567
562
  })
568
563
  ]
569
564
  }),
570
- /* @__PURE__ */ g(kt, {
565
+ /* @__PURE__ */ _(Ot, {
571
566
  filters: fr,
572
567
  trailing: Pr,
573
568
  className: "shrink-0 border-b border-border px-4 py-2 md:px-5"
574
569
  }),
575
- vn && /* @__PURE__ */ g(me, {
576
- workspace: y,
570
+ vn && /* @__PURE__ */ _(me, {
571
+ workspace: b,
577
572
  issues: Pn
578
573
  }),
579
- Er && /* @__PURE__ */ g(Se, {
574
+ Er && /* @__PURE__ */ _(Se, {
580
575
  title: Q("saveTitle"),
581
576
  submitLabel: Q("save"),
582
577
  share: { allowed: Tr },
@@ -587,119 +582,119 @@ function Ut({ person: c } = {}) {
587
582
  shared: t,
588
583
  filters: Sr
589
584
  });
590
- C(dt(n), !0);
585
+ w(ut(n), !0);
591
586
  }
592
587
  }),
593
- /* @__PURE__ */ g(pt, {
588
+ /* @__PURE__ */ _(ft, {
594
589
  open: !!cr,
595
590
  onClose: () => lr(null),
596
591
  onConfirm: () => {
597
592
  cr?.(), lr(null), ar();
598
593
  },
599
- title: d("archiveTitle", { count: G.size || 1 }),
600
- description: d("archiveDescription"),
601
- confirmLabel: d("archiveConfirm"),
594
+ title: f("archiveTitle", { count: G.size || 1 }),
595
+ description: f("archiveDescription"),
596
+ confirmLabel: f("archiveConfirm"),
602
597
  destructive: !0
603
598
  }),
604
- /* @__PURE__ */ _("div", {
599
+ /* @__PURE__ */ v("div", {
605
600
  className: "relative flex min-h-0 flex-1",
606
601
  children: [
607
- G.size > 0 && /* @__PURE__ */ _("div", {
602
+ G.size > 0 && /* @__PURE__ */ v("div", {
608
603
  ref: or,
609
604
  role: "toolbar",
610
- "aria-label": d("selected", { count: G.size }),
605
+ "aria-label": f("selected", { count: G.size }),
611
606
  className: "absolute bottom-4 left-1/2 z-10 flex max-w-[calc(100%-2rem)] -translate-x-1/2 items-center gap-1 rounded-xl border border-border bg-popover py-1 pr-1 pl-3 text-sm shadow-md",
612
607
  children: [
613
- /* @__PURE__ */ g("span", {
608
+ /* @__PURE__ */ _("span", {
614
609
  className: "whitespace-nowrap tabular-nums",
615
- children: J ? rr ? d("selectingAll", { count: rr.total }) : d("selectingAllUncounted") : d("selected", { count: G.size })
610
+ children: J ? rr ? f("selectingAll", { count: rr.total }) : f("selectingAllUncounted") : f("selected", { count: G.size })
616
611
  }),
617
- !J && (G.size < U.length || !B) && /* @__PURE__ */ g(u, {
612
+ !J && (G.size < U.length || !B) && /* @__PURE__ */ _(d, {
618
613
  size: "sm",
619
614
  variant: "ghost",
620
615
  className: "shrink-0",
621
616
  onClick: ir,
622
- children: B ? d("selectAll", { count: U.length }) : d("selectAllMatching")
617
+ children: B ? f("selectAll", { count: U.length }) : f("selectAllMatching")
623
618
  }),
624
- /* @__PURE__ */ g(ft, {
625
- label: d("actions"),
619
+ /* @__PURE__ */ _(dt, {
620
+ label: f("actions"),
626
621
  items: Wn(Yn),
627
622
  side: "top",
628
- trigger: /* @__PURE__ */ g(u, {
623
+ trigger: /* @__PURE__ */ _(d, {
629
624
  size: "sm",
630
625
  variant: "outline",
631
626
  className: "shrink-0",
632
- children: d("actions")
627
+ children: f("actions")
633
628
  })
634
629
  }),
635
- /* @__PURE__ */ g(ht, {
630
+ /* @__PURE__ */ _(mt, {
636
631
  size: "sm",
637
632
  variant: "ghost",
638
- icon: /* @__PURE__ */ g(_e, {}),
639
- label: d("clear"),
633
+ icon: /* @__PURE__ */ _(_e, {}),
634
+ label: f("clear"),
640
635
  onClick: ar
641
636
  })
642
637
  ]
643
638
  }),
644
- /* @__PURE__ */ _("div", {
639
+ /* @__PURE__ */ v("div", {
645
640
  ref: dr,
646
641
  className: `min-h-0 min-w-0 flex-1 ${M ? "overflow-hidden" : "overflow-y-auto"} ${G.size > 0 ? "pb-16" : ""} transition-opacity ${jn && !R ? "opacity-50" : ""}`,
647
642
  children: [
648
- /* @__PURE__ */ g(ae, {
649
- workspace: y,
643
+ /* @__PURE__ */ _(ae, {
644
+ workspace: b,
650
645
  issues: Mn,
651
646
  tabs: je,
652
647
  focus: Cn,
653
648
  onFocus: wn,
654
649
  className: "border-b border-border px-5 py-1.5"
655
650
  }),
656
- M && R && /* @__PURE__ */ g(ie, {
657
- workspace: y,
658
- columns: j === "status" && We[T].categories.length > 0 ? H.filter((e) => e.issues.length > 0 || e.key === "completed" || We[T].categories.includes(e.key)) : H,
651
+ M && R && /* @__PURE__ */ _(ie, {
652
+ workspace: b,
653
+ columns: j === "status" && We[E].categories.length > 0 ? H.filter((e) => e.issues.length > 0 || e.key === "completed" || We[E].categories.includes(e.key)) : H,
659
654
  onMove: j === "none" ? void 0 : (e, t, n) => Gn(e, j, t, n, H.find((e) => e.key === n)?.issues[0], fn),
660
655
  onContextMenu: er
661
656
  }),
662
- !M && /* @__PURE__ */ g(pe, {
657
+ !M && /* @__PURE__ */ _(pe, {
663
658
  groups: H,
664
659
  count: zn,
665
660
  scrollRef: dr,
666
661
  keepInView: W?.id,
667
662
  onMore: L.loadMore,
668
- moreLabel: Ut("loading"),
669
- renderRow: (e, t) => /* @__PURE__ */ g(Wt, {
663
+ moreLabel: Ht("loading"),
664
+ renderRow: (e, t) => /* @__PURE__ */ _(Ut, {
670
665
  issue: e,
671
666
  index: In.get(e.id) ?? -1,
672
667
  place: t,
673
668
  team: Bn.get(e.teamId),
674
- workspace: y,
669
+ workspace: b,
675
670
  selected: e.id === W?.id,
676
671
  picked: G.has(e.id),
677
- viewers: qn.get(e.identifier) ?? Pt,
672
+ viewers: qn.get(e.identifier) ?? Nt,
678
673
  fields: hn,
679
674
  actions: tr
680
675
  }, e.id)
681
676
  }),
682
- R && z && /* @__PURE__ */ g("p", {
677
+ R && z && /* @__PURE__ */ _("p", {
683
678
  className: "flex h-10 items-center gap-2 px-5 text-xs text-muted-foreground",
684
679
  role: "status",
685
- children: Rn ? d("loadingCount", {
680
+ children: Rn ? f("loadingCount", {
686
681
  loaded: V.length,
687
682
  total: Rn.total
688
- }) : d("loadingMore", { loaded: V.length })
683
+ }) : f("loadingMore", { loaded: V.length })
689
684
  }),
690
- !R && (An ? /* @__PURE__ */ g(xe, { error: An }) : /* @__PURE__ */ g(jt, { rows: 8 })),
691
- R && !z && V.length === 0 && /* @__PURE__ */ g(Gt, {
692
- workspace: y,
693
- filtered: !!S.q || T !== "active" || fr.count > +!!b,
694
- onCreate: () => Zt(S.team ? { team: S.team } : void 0)
685
+ !R && (An ? /* @__PURE__ */ _(xe, { error: An }) : /* @__PURE__ */ _(At, { rows: 8 })),
686
+ R && !z && V.length === 0 && /* @__PURE__ */ _(Wt, {
687
+ workspace: b,
688
+ filtered: !!C.q || E !== "active" || fr.count > +!!x,
689
+ onCreate: () => Xt(C.team ? { team: C.team } : void 0)
695
690
  })
696
691
  ]
697
692
  }),
698
- N && F.data && /* @__PURE__ */ g("aside", {
699
- "aria-label": Lt("issueBreakdown.label"),
693
+ N && F.data && /* @__PURE__ */ _("aside", {
694
+ "aria-label": It("issueBreakdown.label"),
700
695
  className: "hidden w-80 shrink-0 overflow-y-auto border-l border-border px-4 py-4 xl:block",
701
- children: /* @__PURE__ */ g(oe, {
702
- workspace: y,
696
+ children: /* @__PURE__ */ _(oe, {
697
+ workspace: b,
703
698
  issues: Mn,
704
699
  tabs: je,
705
700
  tab: xn,
@@ -714,8 +709,8 @@ function Ut({ person: c } = {}) {
714
709
  ]
715
710
  });
716
711
  }
717
- var Wt = d(function({ issue: e, index: t, place: n, team: r, workspace: i, selected: a, picked: o, viewers: ee, fields: te, actions: s }) {
718
- return /* @__PURE__ */ g(c, {
712
+ var Ut = f(function({ issue: e, index: t, place: n, team: r, workspace: i, selected: a, picked: o, viewers: ee, fields: te, actions: s }) {
713
+ return /* @__PURE__ */ _(c, {
719
714
  ref: n.ref,
720
715
  style: n.style,
721
716
  index: n.index,
@@ -732,20 +727,20 @@ var Wt = d(function({ issue: e, index: t, place: n, team: r, workspace: i, selec
732
727
  onContextMenu: (t) => s.current.menu(t, e)
733
728
  });
734
729
  });
735
- function Gt({ workspace: e, filtered: t, onCreate: n }) {
736
- let r = h("issues.empty"), { data: i = [] } = v(te(e)), a = rt(e, "manage_teams");
737
- return i.some((e) => !e.archivedAt) ? /* @__PURE__ */ _("div", {
730
+ function Wt({ workspace: e, filtered: t, onCreate: n }) {
731
+ let r = g("issues.empty"), { data: i = [] } = y(te(e)), a = rt(e, "manage_teams");
732
+ return i.some((e) => !e.archivedAt) ? /* @__PURE__ */ v("div", {
738
733
  className: "mx-auto max-w-sm px-4 py-24 text-center",
739
734
  children: [
740
- /* @__PURE__ */ g("p", {
735
+ /* @__PURE__ */ _("p", {
741
736
  className: "text-sm font-medium",
742
737
  children: r(t ? "noMatch" : "nothingInProgress")
743
738
  }),
744
- /* @__PURE__ */ g("p", {
739
+ /* @__PURE__ */ _("p", {
745
740
  className: "mt-1 text-sm text-muted-foreground",
746
741
  children: r(t ? "tryAnother" : "pressC")
747
742
  }),
748
- !t && /* @__PURE__ */ g(u, {
743
+ !t && /* @__PURE__ */ _(d, {
749
744
  type: "button",
750
745
  variant: "primary",
751
746
  onClick: n,
@@ -753,18 +748,18 @@ function Gt({ workspace: e, filtered: t, onCreate: n }) {
753
748
  children: r("create")
754
749
  })
755
750
  ]
756
- }) : /* @__PURE__ */ _("div", {
751
+ }) : /* @__PURE__ */ v("div", {
757
752
  className: "mx-auto max-w-sm px-4 py-24 text-center",
758
753
  children: [
759
- /* @__PURE__ */ g("p", {
754
+ /* @__PURE__ */ _("p", {
760
755
  className: "text-sm font-medium",
761
756
  children: r("noTeamsTitle")
762
757
  }),
763
- /* @__PURE__ */ g("p", {
758
+ /* @__PURE__ */ _("p", {
764
759
  className: "mt-1 text-sm text-muted-foreground",
765
760
  children: r(a ? "noTeamsDescription" : "noTeamsAskAdmin")
766
761
  }),
767
- a && /* @__PURE__ */ g(u, {
762
+ a && /* @__PURE__ */ _(d, {
768
763
  type: "button",
769
764
  variant: "primary",
770
765
  onClick: n,
@@ -774,4 +769,4 @@ function Gt({ workspace: e, filtered: t, onCreate: n }) {
774
769
  ]
775
770
  });
776
771
  }
777
- export { Ut as IssueList };
772
+ export { Ht as IssueList };