@parallelworks/tandem-web 0.157.0 → 0.158.0

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.
@@ -16,56 +16,57 @@ import { assigneeKey as de, parseAssigneeKey as fe, useAssigneeOptions as pe } f
16
16
  import { issueURL as me, useIssueMenu as he } from "../../../lib/issueMenu.js";
17
17
  import { useLinkedIssues as ge } from "../../../lib/linkedIssues.js";
18
18
  import { issueScope as _e, useCan as ve, useCanTriage as ye } from "../../../lib/roles.js";
19
- import { customFieldsQuery as be, hasValue as xe } from "../../../lib/customFields.js";
20
- import { useConfirm as Se } from "../../../lib/confirm.js";
21
- import { issueTypesQuery as Ce, typeShows as we, typesFor as Te } from "../../../lib/issueTypes.js";
22
- import { TypeIcon as Ee } from "../../../components/IssueTypes.js";
23
- import { actorAvatar as De } from "../../../lib/avatar.js";
24
- import { IssueFields as Oe } from "../../../components/CustomFields.js";
25
- import { PersonHoverCard as ke } from "../../../components/PersonHoverCard.js";
26
- import { AttachButton as Ae, IssueAttachments as je, UploadStatus as Me, useAttachmentUpload as Ne } from "../../../components/Attachments.js";
19
+ import { IssueDesigns as be } from "../../../components/Figma.js";
20
+ import { customFieldsQuery as xe, hasValue as Se } from "../../../lib/customFields.js";
21
+ import { useConfirm as Ce } from "../../../lib/confirm.js";
22
+ import { issueTypesQuery as we, typeShows as Te, typesFor as Ee } from "../../../lib/issueTypes.js";
23
+ import { TypeIcon as De } from "../../../components/IssueTypes.js";
24
+ import { actorAvatar as Oe } from "../../../lib/avatar.js";
25
+ import { IssueFields as ke } from "../../../components/CustomFields.js";
26
+ import { PersonHoverCard as Ae } from "../../../components/PersonHoverCard.js";
27
+ import { AttachButton as je, IssueAttachments as Me, UploadStatus as Ne, useAttachmentUpload as Pe } from "../../../components/Attachments.js";
27
28
  import { Editor as R } from "../../../components/Editor.js";
28
- import { IssueCode as Pe } from "../../../components/IssueCode.js";
29
- import { AgentWork as Fe } from "../../../components/AgentWork.js";
30
- import { AreaLink as Ie } from "../../../components/AreaLink.js";
31
- import { useShortcuts as Le } from "../../../lib/shortcuts.js";
32
- import { Route as Re } from "./_identifier.js";
33
- import { rememberPage as ze } from "../../../lib/recent.js";
34
- import { useOthersOn as Be, useReportLocation as Ve } from "../../../lib/live.js";
35
- import { useReadIssueNotifications as He } from "../../../lib/notifications.js";
36
- import { FavoriteStar as Ue } from "../../../components/FavoriteStar.js";
37
- import { caretColor as We, useCollabSession as Ge } from "../../../lib/collab.js";
38
- import { CollabEditor as Ke } from "../../../components/CollabEditor.js";
39
- import { FieldNote as qe, Viewers as Je } from "../../../components/Presence.js";
40
- import { Timeline as Ye } from "../../../components/ActivityTimeline.js";
41
- import { CustomerRequests as Xe } from "../../../components/CustomerRequests.js";
42
- import { IssueLinkChips as Ze, IssueLinks as Qe, SharedThreadHeader as $e } from "../../../components/GitHub.js";
43
- import { EventLine as et } from "../../../components/IssueEvent.js";
44
- import { IssueIntercom as tt } from "../../../components/IssueIntercom.js";
45
- import { ParentProperty as nt, SubIssuesAndRelations as rt } from "../../../components/IssueRelations.js";
46
- import { IssueSentry as it } from "../../../components/IssueSentry.js";
47
- import { IssueZendesk as at } from "../../../components/IssueZendesk.js";
48
- import { Reactions as ot } from "../../../components/Reactions.js";
49
- import { TimeInStatus as st } from "../../../components/Reports.js";
50
- import { SubscribeButton as ct } from "../../../components/SubscribeButton.js";
51
- import { Widgets as lt } from "../../../components/Widgets.js";
52
- import { Avatar as ut, Button as z, Callout as dt, Card as ft, Combobox as B, CopyButton as pt, DatePicker as mt, ErrorText as ht, IconButton as gt, Kbd as _t, RelativeTime as vt, Select as V, TitleInput as yt, Tooltip as bt, buttonClasses as xt, menuDivider as St, toast as Ct, useOpenMenu as H } from "@parallelworks/ui";
53
- import { createContext as wt, useCallback as Tt, useContext as Et, useEffect as Dt, useMemo as Ot, useRef as U, useState as W } from "react";
54
- import { useErrorMessage as kt } from "@parallelworks/problem/react";
55
- import { useFormatter as At, useTranslations as G } from "use-intl";
29
+ import { IssueCode as Fe } from "../../../components/IssueCode.js";
30
+ import { AgentWork as Ie } from "../../../components/AgentWork.js";
31
+ import { AreaLink as Le } from "../../../components/AreaLink.js";
32
+ import { useShortcuts as Re } from "../../../lib/shortcuts.js";
33
+ import { Route as ze } from "./_identifier.js";
34
+ import { rememberPage as Be } from "../../../lib/recent.js";
35
+ import { useOthersOn as Ve, useReportLocation as He } from "../../../lib/live.js";
36
+ import { useReadIssueNotifications as Ue } from "../../../lib/notifications.js";
37
+ import { FavoriteStar as We } from "../../../components/FavoriteStar.js";
38
+ import { caretColor as Ge, useCollabSession as Ke } from "../../../lib/collab.js";
39
+ import { CollabEditor as qe } from "../../../components/CollabEditor.js";
40
+ import { FieldNote as Je, Viewers as Ye } from "../../../components/Presence.js";
41
+ import { Timeline as Xe } from "../../../components/ActivityTimeline.js";
42
+ import { CustomerRequests as Ze } from "../../../components/CustomerRequests.js";
43
+ import { IssueLinkChips as Qe, IssueLinks as $e, SharedThreadHeader as et } from "../../../components/GitHub.js";
44
+ import { EventLine as tt } from "../../../components/IssueEvent.js";
45
+ import { IssueIntercom as nt } from "../../../components/IssueIntercom.js";
46
+ import { ParentProperty as rt, SubIssuesAndRelations as it } from "../../../components/IssueRelations.js";
47
+ import { IssueSentry as at } from "../../../components/IssueSentry.js";
48
+ import { IssueZendesk as ot } from "../../../components/IssueZendesk.js";
49
+ import { Reactions as st } from "../../../components/Reactions.js";
50
+ import { TimeInStatus as ct } from "../../../components/Reports.js";
51
+ import { SubscribeButton as lt } from "../../../components/SubscribeButton.js";
52
+ import { Widgets as ut } from "../../../components/Widgets.js";
53
+ import { Avatar as dt, Button as z, Callout as ft, Card as pt, Combobox as B, CopyButton as mt, DatePicker as ht, ErrorText as gt, IconButton as _t, Kbd as vt, RelativeTime as yt, Select as V, TitleInput as bt, Tooltip as xt, buttonClasses as St, menuDivider as Ct, toast as wt, useOpenMenu as H } from "@parallelworks/ui";
54
+ import { createContext as Tt, useCallback as Et, useContext as Dt, useEffect as Ot, useMemo as kt, useRef as U, useState as W } from "react";
55
+ import { useErrorMessage as At } from "@parallelworks/problem/react";
56
+ import { useFormatter as jt, useTranslations as G } from "use-intl";
56
57
  import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
57
58
  import { useMutation as Y, useQuery as X, useQueryClient as Z, useSuspenseQuery as Q } from "@tanstack/react-query";
58
- import { MoreButton as jt } from "@parallelworks/ui/list";
59
- import { ArchiveIcon as Mt } from "@parallelworks/ui/icons";
59
+ import { MoreButton as Mt } from "@parallelworks/ui/list";
60
+ import { ArchiveIcon as Nt } from "@parallelworks/ui/icons";
60
61
  // src/routes/$workspace/issues/$identifier.tsx?tsr-split=component
61
- function Nt() {
62
- let o = G("issue"), s = ne(), c = kt(), l = G("common"), { workspace: u, identifier: d } = Re.useParams(), { data: m } = Q(p(u, d)), { data: g } = Q(y(u)), { data: _ } = Q(h), { data: v = [] } = X(f(u, d)), [S, C] = W();
63
- Ve({
62
+ function Pt() {
63
+ let o = G("issue"), s = ne(), c = At(), l = G("common"), { workspace: u, identifier: d } = ze.useParams(), { data: m } = Q(p(u, d)), { data: g } = Q(y(u)), { data: _ } = Q(h), { data: v = [] } = X(f(u, d)), [S, C] = W();
64
+ He({
64
65
  identifier: m.identifier,
65
66
  ...S && { field: S }
66
- }), r(`${m.identifier} ${m.title}`), He(u, m.identifier);
67
+ }), r(`${m.identifier} ${m.title}`), Ue(u, m.identifier);
67
68
  let w = a(), T = n(m.identifier, m.title);
68
- Dt(() => {
69
+ Ot(() => {
69
70
  window.location.pathname.endsWith(`/issues/${T}`) || w({
70
71
  to: "/$workspace/issues/$identifier",
71
72
  params: {
@@ -82,7 +83,7 @@ function Nt() {
82
83
  u,
83
84
  m.identifier
84
85
  ]);
85
- let D = ve(u, "delete_issues", _e(m)), O = Z(), { confirm: k, dialog: A } = Se(), j = Y({
86
+ let D = ve(u, "delete_issues", _e(m)), O = Z(), { confirm: k, dialog: A } = Ce(), j = Y({
86
87
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/restore", { params: { path: {
87
88
  workspace: u,
88
89
  identifier: m.identifier
@@ -96,7 +97,7 @@ function Nt() {
96
97
  identifier: m.identifier
97
98
  } } })),
98
99
  onSuccess: () => {
99
- Ct.success(o("deleted", { identifier: m.identifier })), b(O, u);
100
+ wt.success(o("deleted", { identifier: m.identifier })), b(O, u);
100
101
  let e = g.find((e) => e.id === m.teamId)?.key;
101
102
  w(e ? {
102
103
  to: "/$workspace/teams/$key/issues",
@@ -109,15 +110,15 @@ function Nt() {
109
110
  params: { workspace: u }
110
111
  });
111
112
  }
112
- }), N = Tt((e) => w({
113
+ }), N = Et((e) => w({
113
114
  to: "/$workspace/issues/$identifier",
114
115
  params: {
115
116
  workspace: u,
116
117
  identifier: e
117
118
  }
118
119
  }), [w, u]);
119
- ge(u, m.body, N), Dt(() => {
120
- ze(u, {
120
+ ge(u, m.body, N), Ot(() => {
121
+ Be(u, {
121
122
  kind: "issue",
122
123
  href: `/${u}/issues/${m.identifier}`,
123
124
  label: `${m.identifier} ${m.title}`
@@ -127,8 +128,8 @@ function Nt() {
127
128
  m.identifier,
128
129
  m.title
129
130
  ]);
130
- let P = Be({ issue: m.identifier }, _?.user.username), F = g.find((e) => e.id === m.teamId), I = x(u, d), [ee, L] = W(null), te = H(), re = he(u);
131
- return Le({
131
+ let P = Ve({ issue: m.identifier }, _?.user.username), F = g.find((e) => e.id === m.teamId), I = x(u, d), [ee, L] = W(null), te = H(), re = he(u);
132
+ return Re({
132
133
  s: () => L("status"),
133
134
  p: () => L("priority"),
134
135
  a: () => L("assignees"),
@@ -162,16 +163,16 @@ function Nt() {
162
163
  className: "shrink-0 font-medium whitespace-nowrap",
163
164
  children: m.identifier
164
165
  }),
165
- /* @__PURE__ */ q(Ue, {
166
+ /* @__PURE__ */ q(We, {
166
167
  workspace: u,
167
168
  kind: "issue",
168
169
  target: m.id
169
170
  }),
170
- /* @__PURE__ */ q(ct, {
171
+ /* @__PURE__ */ q(lt, {
171
172
  workspace: u,
172
173
  identifier: m.identifier
173
174
  }),
174
- /* @__PURE__ */ q(pt, {
175
+ /* @__PURE__ */ q(mt, {
175
176
  text: n(m.identifier, m.title),
176
177
  label: o("copyBranchName"),
177
178
  icon: /* @__PURE__ */ q(E, {}),
@@ -181,7 +182,7 @@ function Nt() {
181
182
  failure: o("copyFailed"),
182
183
  className: "max-sm:hidden"
183
184
  }),
184
- /* @__PURE__ */ q(Ze, { links: v }),
185
+ /* @__PURE__ */ q(Qe, { links: v }),
185
186
  /* @__PURE__ */ J("span", {
186
187
  className: "ml-auto flex items-center gap-3",
187
188
  children: [
@@ -189,11 +190,11 @@ function Nt() {
189
190
  className: "text-xs text-muted-foreground",
190
191
  children: l("saving")
191
192
  }),
192
- /* @__PURE__ */ q(Je, {
193
+ /* @__PURE__ */ q(Ye, {
193
194
  workspace: u,
194
195
  others: P
195
196
  }),
196
- /* @__PURE__ */ q(jt, {
197
+ /* @__PURE__ */ q(Mt, {
197
198
  items: () => [...re([m]), ...D ? [{
198
199
  label: o("deleteIssue"),
199
200
  destructive: !0,
@@ -209,7 +210,7 @@ function Nt() {
209
210
  })
210
211
  ]
211
212
  }),
212
- I.isError && /* @__PURE__ */ q(ht, {
213
+ I.isError && /* @__PURE__ */ q(gt, {
213
214
  inline: !0,
214
215
  className: "ml-auto text-xs",
215
216
  children: c(I.error)
@@ -224,16 +225,16 @@ function Nt() {
224
225
  children: /* @__PURE__ */ J("article", {
225
226
  className: "w-full px-4 pt-6 pb-24 md:px-8 md:pt-8",
226
227
  children: [
227
- /* @__PURE__ */ J(Xt.Provider, {
228
+ /* @__PURE__ */ J(Zt.Provider, {
228
229
  value: C,
229
230
  children: [
230
- m.triage && /* @__PURE__ */ q(Pt, {
231
+ m.triage && /* @__PURE__ */ q(Ft, {
231
232
  workspace: u,
232
233
  issue: m
233
234
  }),
234
- m.archivedAt && /* @__PURE__ */ q(dt, {
235
+ m.archivedAt && /* @__PURE__ */ q(ft, {
235
236
  tone: "muted",
236
- icon: /* @__PURE__ */ q(Mt, {}),
237
+ icon: /* @__PURE__ */ q(Nt, {}),
237
238
  className: "mb-5",
238
239
  children: /* @__PURE__ */ J("span", {
239
240
  className: "flex flex-wrap items-center gap-x-3 gap-y-1",
@@ -246,76 +247,80 @@ function Nt() {
246
247
  })]
247
248
  })
248
249
  }),
249
- /* @__PURE__ */ q(Ft, {
250
+ /* @__PURE__ */ q(It, {
250
251
  issue: m,
251
252
  onSave: (e) => I.mutate({ title: e })
252
253
  }),
253
- /* @__PURE__ */ q(qe, {
254
+ /* @__PURE__ */ q(Je, {
254
255
  workspace: u,
255
256
  others: P,
256
257
  field: "title"
257
258
  }),
258
- /* @__PURE__ */ q(It, {
259
+ /* @__PURE__ */ q(Lt, {
259
260
  workspace: u,
260
261
  issue: m
261
262
  }),
262
- /* @__PURE__ */ q(qe, {
263
+ /* @__PURE__ */ q(Je, {
263
264
  workspace: u,
264
265
  others: P,
265
266
  field: "body"
266
267
  }),
267
- /* @__PURE__ */ q(rt, {
268
+ /* @__PURE__ */ q(it, {
268
269
  workspace: u,
269
270
  issue: m
270
271
  }),
271
- /* @__PURE__ */ q(Xe, {
272
+ /* @__PURE__ */ q(Ze, {
272
273
  workspace: u,
273
274
  identifier: m.identifier,
274
275
  enabled: !!F?.customerRequestsEnabled
275
276
  }),
276
- /* @__PURE__ */ q(Lt, {
277
+ /* @__PURE__ */ q(Rt, {
277
278
  workspace: u,
278
279
  identifier: d
279
280
  }),
280
- /* @__PURE__ */ q(Pe, {
281
+ /* @__PURE__ */ q(be, {
282
+ workspace: u,
283
+ identifier: d
284
+ }),
285
+ /* @__PURE__ */ q(Fe, {
281
286
  workspace: u,
282
287
  identifier: d,
283
288
  title: m.title
284
289
  }),
285
- /* @__PURE__ */ q(at, {
290
+ /* @__PURE__ */ q(ot, {
286
291
  workspace: u,
287
292
  identifier: d
288
293
  }),
289
- /* @__PURE__ */ q(it, {
294
+ /* @__PURE__ */ q(at, {
290
295
  workspace: u,
291
296
  identifier: d
292
297
  }),
293
- /* @__PURE__ */ q(tt, {
298
+ /* @__PURE__ */ q(nt, {
294
299
  workspace: u,
295
300
  identifier: d
296
301
  }),
297
- /* @__PURE__ */ q(Fe, {
302
+ /* @__PURE__ */ q(Ie, {
298
303
  workspace: u,
299
304
  identifier: d
300
305
  }),
301
- /* @__PURE__ */ q(Wt, {
306
+ /* @__PURE__ */ q(Gt, {
302
307
  workspace: u,
303
308
  identifier: d,
304
309
  others: P
305
310
  })
306
311
  ]
307
312
  }),
308
- /* @__PURE__ */ q(Ut, {
313
+ /* @__PURE__ */ q(Wt, {
309
314
  workspace: u,
310
315
  identifier: d
311
316
  }),
312
- /* @__PURE__ */ q(je, {
317
+ /* @__PURE__ */ q(Me, {
313
318
  workspace: u,
314
319
  identifier: d
315
320
  })
316
321
  ]
317
322
  })
318
- }), /* @__PURE__ */ q(Rt, {
323
+ }), /* @__PURE__ */ q(zt, {
319
324
  workspace: u,
320
325
  issue: m,
321
326
  team: F,
@@ -327,8 +332,8 @@ function Nt() {
327
332
  ]
328
333
  });
329
334
  }
330
- function Pt({ workspace: n, issue: r }) {
331
- let i = G("triage"), a = kt(), o = Z(), s = ye(n, r.teamId), c = Y({
335
+ function Ft({ workspace: n, issue: r }) {
336
+ let i = G("triage"), a = At(), o = Z(), s = ye(n, r.teamId), c = Y({
332
337
  mutationFn: async (i) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
333
338
  params: { path: {
334
339
  workspace: n,
@@ -373,12 +378,12 @@ function Pt({ workspace: n, issue: r }) {
373
378
  ]
374
379
  });
375
380
  }
376
- function Ft({ issue: e, onSave: t }) {
377
- let n = G("issue"), r = Et(Xt);
381
+ function It({ issue: e, onSave: t }) {
382
+ let n = G("issue"), r = Dt(Zt);
378
383
  return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("h1", {
379
384
  className: "sr-only",
380
385
  children: e.title
381
- }), /* @__PURE__ */ q(yt, {
386
+ }), /* @__PURE__ */ q(bt, {
382
387
  value: e.title,
383
388
  onCommit: t,
384
389
  onFocus: () => r("title"),
@@ -386,24 +391,24 @@ function Ft({ issue: e, onSave: t }) {
386
391
  "aria-label": n("title")
387
392
  })] });
388
393
  }
389
- function It({ workspace: e, issue: t }) {
390
- let n = G("issue"), r = G("common"), i = Et(Xt), { data: a } = Q(h), o = U(null), s = Ot(() => ({
394
+ function Lt({ workspace: e, issue: t }) {
395
+ let n = G("issue"), r = G("common"), i = Dt(Zt), { data: a } = Q(h), o = U(null), s = kt(() => ({
391
396
  name: a?.user.name ?? n("someone"),
392
- color: We(a?.user.username ?? "")
397
+ color: Ge(a?.user.username ?? "")
393
398
  }), [
394
399
  a?.user.name,
395
400
  a?.user.username,
396
401
  n
397
- ]), { session: c, error: l } = Ge({
402
+ ]), { session: c, error: l } = Ke({
398
403
  workspace: e,
399
404
  target: { issue: t.identifier },
400
405
  user: s,
401
406
  getMarkdown: o
402
- }), u = U(null), d = Ne(e, t.identifier), { data: f = [] } = X(_(e, t.identifier)), p = ve(e, "comment", _e(t));
407
+ }), u = U(null), d = Pe(e, t.identifier), { data: f = [] } = X(_(e, t.identifier)), p = ve(e, "comment", _e(t));
403
408
  return /* @__PURE__ */ J("div", {
404
409
  className: "group mt-4 min-h-32",
405
410
  children: [
406
- c ? /* @__PURE__ */ q(Ke, {
411
+ c ? /* @__PURE__ */ q(qe, {
407
412
  session: c,
408
413
  user: s,
409
414
  getMarkdown: o,
@@ -421,18 +426,18 @@ function It({ workspace: e, issue: t }) {
421
426
  editable: !1,
422
427
  className: "min-h-32"
423
428
  }),
424
- /* @__PURE__ */ q(ht, {
429
+ /* @__PURE__ */ q(gt, {
425
430
  className: "mt-1",
426
431
  children: l
427
432
  }),
428
433
  c && /* @__PURE__ */ J("div", {
429
434
  className: "mt-1 flex items-center justify-end gap-2",
430
- children: [/* @__PURE__ */ q(Me, {
435
+ children: [/* @__PURE__ */ q(Ne, {
431
436
  pending: d.pending,
432
437
  error: d.error
433
- }), /* @__PURE__ */ q(Ae, { onFiles: (e) => d.upload(u.current, e) })]
438
+ }), /* @__PURE__ */ q(je, { onFiles: (e) => d.upload(u.current, e) })]
434
439
  }),
435
- /* @__PURE__ */ q(ot, {
440
+ /* @__PURE__ */ q(st, {
436
441
  workspace: e,
437
442
  identifier: t.identifier,
438
443
  reactions: f,
@@ -442,7 +447,7 @@ function It({ workspace: e, issue: t }) {
442
447
  ]
443
448
  });
444
449
  }
445
- function Lt({ workspace: e, identifier: t }) {
450
+ function Rt({ workspace: e, identifier: t }) {
446
451
  let n = G("issue"), { data: r } = Q(d(e, t)), a = H(), o = w(e);
447
452
  return r.length === 0 ? null : /* @__PURE__ */ J("section", {
448
453
  className: "mt-6",
@@ -459,7 +464,7 @@ function Lt({ workspace: e, identifier: t }) {
459
464
  doc: C(t)
460
465
  },
461
466
  onContextMenu: (e) => a(e, o(t)),
462
- className: `${xt({ size: "sm" })} max-w-72`,
467
+ className: `${St({ size: "sm" })} max-w-72`,
463
468
  children: [/* @__PURE__ */ q(j, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ q("span", {
464
469
  className: "truncate",
465
470
  children: t.title
@@ -468,7 +473,7 @@ function Lt({ workspace: e, identifier: t }) {
468
473
  })]
469
474
  });
470
475
  }
471
- function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c }) {
476
+ function zt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c }) {
472
477
  let l = G("relations"), u = i?.key, d = G("issue.properties"), p = G("common"), h = ee(), { data: g = [] } = X({
473
478
  ...v(n, u ?? ""),
474
479
  enabled: !!u
@@ -477,7 +482,7 @@ function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
477
482
  params: { path: { workspace: n } },
478
483
  body: {
479
484
  name: r,
480
- color: zt[_.length % zt.length] ?? "#d73a4a"
485
+ color: Bt[_.length % Bt.length] ?? "#d73a4a"
481
486
  }
482
487
  })),
483
488
  onSuccess: (e) => {
@@ -513,7 +518,7 @@ function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
513
518
  })
514
519
  })
515
520
  }),
516
- /* @__PURE__ */ q(Ht, {
521
+ /* @__PURE__ */ q(Ut, {
517
522
  workspace: n,
518
523
  issue: r,
519
524
  update: c,
@@ -592,13 +597,13 @@ function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
592
597
  })
593
598
  }]),
594
599
  className: "flex items-center gap-1.5",
595
- children: /* @__PURE__ */ J(ke, {
600
+ children: /* @__PURE__ */ J(Ae, {
596
601
  workspace: n,
597
602
  kind: e.kind,
598
603
  handle: e.handle,
599
604
  className: "flex items-center gap-1.5",
600
- children: [/* @__PURE__ */ q(ut, {
601
- ...De(e.kind),
605
+ children: [/* @__PURE__ */ q(dt, {
606
+ ...Oe(e.kind),
602
607
  name: t,
603
608
  src: S(e.kind, e.handle),
604
609
  size: "xs",
@@ -673,13 +678,13 @@ function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
673
678
  }),
674
679
  /* @__PURE__ */ q($, {
675
680
  label: l("parent"),
676
- children: /* @__PURE__ */ q(nt, {
681
+ children: /* @__PURE__ */ q(rt, {
677
682
  workspace: n,
678
683
  issue: r,
679
684
  row: A
680
685
  })
681
686
  }),
682
- /* @__PURE__ */ q(Vt, {
687
+ /* @__PURE__ */ q(Ht, {
683
688
  workspace: n,
684
689
  issue: r,
685
690
  team: i,
@@ -690,18 +695,18 @@ function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
690
695
  label: d("created"),
691
696
  children: /* @__PURE__ */ J("p", {
692
697
  className: "flex items-center gap-2 px-2 text-sm",
693
- children: [/* @__PURE__ */ q(ke, {
698
+ children: [/* @__PURE__ */ q(Ae, {
694
699
  workspace: n,
695
700
  kind: r.creator.kind,
696
701
  handle: r.creator.handle,
697
- children: /* @__PURE__ */ q(ut, {
698
- ...De(r.creator.kind),
702
+ children: /* @__PURE__ */ q(dt, {
703
+ ...Oe(r.creator.kind),
699
704
  name: x(r.creator),
700
705
  src: S(r.creator.kind, r.creator.handle),
701
706
  size: "xs",
702
707
  tooltip: r.creator.kind !== "user"
703
708
  })
704
- }), /* @__PURE__ */ q(vt, {
709
+ }), /* @__PURE__ */ q(yt, {
705
710
  value: r.createdAt,
706
711
  exact: "medium"
707
712
  })]
@@ -709,12 +714,12 @@ function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
709
714
  }),
710
715
  /* @__PURE__ */ q($, {
711
716
  label: d("timeInStatus"),
712
- children: /* @__PURE__ */ q(st, {
717
+ children: /* @__PURE__ */ q(ct, {
713
718
  workspace: n,
714
719
  identifier: r.identifier
715
720
  })
716
721
  }),
717
- /* @__PURE__ */ q(Oe, {
722
+ /* @__PURE__ */ q(ke, {
718
723
  workspace: n,
719
724
  issue: r,
720
725
  label: (e, t, n) => /* @__PURE__ */ q($, {
@@ -724,12 +729,12 @@ function Rt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
724
729
  }),
725
730
  y.length > 0 && /* @__PURE__ */ q($, {
726
731
  label: d("syncedWith"),
727
- children: /* @__PURE__ */ q(Qe, { links: y })
732
+ children: /* @__PURE__ */ q($e, { links: y })
728
733
  })
729
734
  ]
730
735
  });
731
736
  }
732
- var zt = [
737
+ var Bt = [
733
738
  "#d73a4a",
734
739
  "#2f8a57",
735
740
  "#8250df",
@@ -738,7 +743,7 @@ var zt = [
738
743
  "#57606a",
739
744
  "#1a7f37"
740
745
  ];
741
- function Bt({ workspace: e, origin: t, className: n }) {
746
+ function Vt({ workspace: e, origin: t, className: n }) {
742
747
  let r = "size-3.5 shrink-0 text-muted-foreground", a = t.title.replace(/[*_`#>[\]]/g, "").replace(/\s+/g, " ").trim();
743
748
  switch (t.kind) {
744
749
  case "decision": return /* @__PURE__ */ J(i, {
@@ -748,7 +753,7 @@ function Bt({ workspace: e, origin: t, className: n }) {
748
753
  identifier: t.key
749
754
  },
750
755
  className: n,
751
- children: [/* @__PURE__ */ q(M, { className: r }), /* @__PURE__ */ q(bt, {
756
+ children: [/* @__PURE__ */ q(M, { className: r }), /* @__PURE__ */ q(xt, {
752
757
  content: a,
753
758
  overflowOnly: !0,
754
759
  children: /* @__PURE__ */ q("span", {
@@ -757,7 +762,7 @@ function Bt({ workspace: e, origin: t, className: n }) {
757
762
  })
758
763
  })]
759
764
  });
760
- case "area": return /* @__PURE__ */ J(Ie, {
765
+ case "area": return /* @__PURE__ */ J(Le, {
761
766
  workspace: e,
762
767
  area: { key: t.key },
763
768
  className: n,
@@ -780,7 +785,7 @@ function Bt({ workspace: e, origin: t, className: n }) {
780
785
  });
781
786
  }
782
787
  }
783
- function Vt({ workspace: e, issue: t, team: n, update: r, row: i }) {
788
+ function Ht({ workspace: e, issue: t, team: n, update: r, row: i }) {
784
789
  let a = G("planning"), s = G("flow"), c = ne(), u = ce(), { data: d = [] } = X(g(e)), f = d.find((e) => e.id === t.project?.id), { data: p = [] } = X({
785
790
  ...l(e, n?.key ?? ""),
786
791
  enabled: !!n?.cyclesEnabled
@@ -844,7 +849,7 @@ function Vt({ workspace: e, issue: t, team: n, update: r, row: i }) {
844
849
  }),
845
850
  t.origin && /* @__PURE__ */ q($, {
846
851
  label: a("startedFrom"),
847
- children: /* @__PURE__ */ q(Bt, {
852
+ children: /* @__PURE__ */ q(Vt, {
848
853
  workspace: e,
849
854
  origin: t.origin,
850
855
  className: i
@@ -961,7 +966,7 @@ function Vt({ workspace: e, issue: t, team: n, update: r, row: i }) {
961
966
  label: a("dueDate"),
962
967
  children: /* @__PURE__ */ J("div", {
963
968
  className: "flex items-center",
964
- children: [/* @__PURE__ */ q(mt, {
969
+ children: [/* @__PURE__ */ q(ht, {
965
970
  value: t.dueDate ?? "",
966
971
  onValueChange: (e) => r({ dueDate: e }),
967
972
  "aria-label": a("dueDate"),
@@ -977,7 +982,7 @@ function Vt({ workspace: e, issue: t, team: n, update: r, row: i }) {
977
982
  children: a("noDueDate")
978
983
  })] })
979
984
  })
980
- }), t.dueDate && /* @__PURE__ */ q(gt, {
985
+ }), t.dueDate && /* @__PURE__ */ q(_t, {
981
986
  variant: "ghost",
982
987
  icon: /* @__PURE__ */ q(O, { className: "size-3.5" }),
983
988
  label: a("clearDueDate"),
@@ -997,11 +1002,11 @@ function Vt({ workspace: e, issue: t, team: n, update: r, row: i }) {
997
1002
  })
998
1003
  ] });
999
1004
  }
1000
- function Ht({ workspace: e, issue: t, update: n, row: r }) {
1001
- let i = G("issueTypes"), a = At(), { data: o } = X(Ce(e)), { data: s } = X(be(e)), { confirm: c, dialog: l } = Se(), [u, d] = W(!1), f = Te(o, t.teamId);
1005
+ function Ut({ workspace: e, issue: t, update: n, row: r }) {
1006
+ let i = G("issueTypes"), a = jt(), { data: o } = X(we(e)), { data: s } = X(xe(e)), { confirm: c, dialog: l } = Ce(), [u, d] = W(!1), f = Ee(o, t.teamId);
1002
1007
  if (f.length === 0 && !t.type) return null;
1003
1008
  let p = (e) => {
1004
- let r = f.find((t) => t.id === e), o = (s ?? []).filter((e) => xe(t.fields[e.id]) && !we(r, e.id));
1009
+ let r = f.find((t) => t.id === e), o = (s ?? []).filter((e) => Se(t.fields[e.id]) && !Te(r, e.id));
1005
1010
  if (!r || o.length === 0) return n({ typeId: e });
1006
1011
  c({
1007
1012
  title: i("hiddenTitle"),
@@ -1026,7 +1031,7 @@ function Ht({ workspace: e, issue: t, update: n, row: r }) {
1026
1031
  }, ...f.map((e) => ({
1027
1032
  value: e.id,
1028
1033
  label: e.name,
1029
- icon: /* @__PURE__ */ q(Ee, { type: e })
1034
+ icon: /* @__PURE__ */ q(De, { type: e })
1030
1035
  }))],
1031
1036
  value: t.type?.id ?? "",
1032
1037
  onValueChange: (e) => e !== null && e !== (t.type?.id ?? "") && p(e),
@@ -1034,7 +1039,7 @@ function Ht({ workspace: e, issue: t, update: n, row: r }) {
1034
1039
  trigger: /* @__PURE__ */ q("button", {
1035
1040
  type: "button",
1036
1041
  className: r,
1037
- children: t.type ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ee, { type: t.type }), t.type.name] }) : /* @__PURE__ */ q("span", {
1042
+ children: t.type ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(De, { type: t.type }), t.type.name] }) : /* @__PURE__ */ q("span", {
1038
1043
  className: "text-muted-foreground",
1039
1044
  children: i("noType")
1040
1045
  })
@@ -1045,15 +1050,15 @@ function Ht({ workspace: e, issue: t, update: n, row: r }) {
1045
1050
  function $({ label: e, shortcut: t, children: n }) {
1046
1051
  return /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ J("p", {
1047
1052
  className: "mb-1 flex items-center justify-between px-2 text-xs text-muted-foreground",
1048
- children: [e, t && /* @__PURE__ */ q(_t, {
1053
+ children: [e, t && /* @__PURE__ */ q(vt, {
1049
1054
  keys: t,
1050
1055
  size: "xs",
1051
1056
  className: "hidden md:inline-flex"
1052
1057
  })]
1053
1058
  }), n] });
1054
1059
  }
1055
- function Ut({ workspace: e, identifier: t }) {
1056
- let n = G("issue.activity"), { data: r } = Q(u(e, t)), [i, a] = W(!1), o = Ot(() => {
1060
+ function Wt({ workspace: e, identifier: t }) {
1061
+ let n = G("issue.activity"), { data: r } = Q(u(e, t)), [i, a] = W(!1), o = kt(() => {
1057
1062
  let e = [];
1058
1063
  for (let t of r) {
1059
1064
  if (t.type.startsWith("comment.") || t.type.startsWith("issue.reaction_")) continue;
@@ -1076,9 +1081,9 @@ function Ut({ workspace: e, identifier: t }) {
1076
1081
  className: "mt-3 text-xs text-muted-foreground hover:text-foreground",
1077
1082
  children: n("showEarlier", { count: s })
1078
1083
  }),
1079
- /* @__PURE__ */ q(Ye, {
1084
+ /* @__PURE__ */ q(Xe, {
1080
1085
  className: "mt-3",
1081
- children: o.slice(s).map((t) => /* @__PURE__ */ q(et, {
1086
+ children: o.slice(s).map((t) => /* @__PURE__ */ q(tt, {
1082
1087
  workspace: e,
1083
1088
  event: t
1084
1089
  }, t.id))
@@ -1086,14 +1091,14 @@ function Ut({ workspace: e, identifier: t }) {
1086
1091
  ]
1087
1092
  });
1088
1093
  }
1089
- function Wt({ workspace: e, identifier: t, others: n }) {
1090
- let r = G("issue.comments"), { data: i } = Q(c(e, t)), { data: a = [] } = X(f(e, t)), o = Ot(() => {
1094
+ function Gt({ workspace: e, identifier: t, others: n }) {
1095
+ let r = G("issue.comments"), { data: i } = Q(c(e, t)), { data: a = [] } = X(f(e, t)), o = kt(() => {
1091
1096
  let e = i.filter((e) => !e.parentId);
1092
- return e.sort((e, t) => Number(Gt(t)) - Number(Gt(e))), e.map((e) => ({
1097
+ return e.sort((e, t) => Number(Kt(t)) - Number(Kt(e))), e.map((e) => ({
1093
1098
  root: e,
1094
1099
  replies: i.filter((t) => t.parentId === e.id)
1095
1100
  }));
1096
- }, [i]), [s, l] = W(null), u = i.filter((e) => !e.deletedAt && !Gt(e)).length;
1101
+ }, [i]), [s, l] = W(null), u = i.filter((e) => !e.deletedAt && !Kt(e)).length;
1097
1102
  return /* @__PURE__ */ J("section", {
1098
1103
  className: "mt-12 border-t border-border pt-6",
1099
1104
  "aria-label": r("title"),
@@ -1112,8 +1117,8 @@ function Wt({ workspace: e, identifier: t, others: n }) {
1112
1117
  /* @__PURE__ */ q("div", {
1113
1118
  className: "mt-4 space-y-3",
1114
1119
  children: o.map(({ root: n, replies: i }) => {
1115
- let o = Gt(n) ? n.sharedWith : void 0, c = o ? L(o).source : void 0;
1116
- return /* @__PURE__ */ J(ft, {
1120
+ let o = Kt(n) ? n.sharedWith : void 0, c = o ? L(o).source : void 0;
1121
+ return /* @__PURE__ */ J(pt, {
1117
1122
  size: "fill",
1118
1123
  padding: "none",
1119
1124
  highlight: !!o,
@@ -1122,10 +1127,10 @@ function Wt({ workspace: e, identifier: t, others: n }) {
1122
1127
  "aria-label": c && r("sharedThreadLabel", { source: c })
1123
1128
  }),
1124
1129
  children: [
1125
- o && c ? /* @__PURE__ */ q($e, {
1130
+ o && c ? /* @__PURE__ */ q(et, {
1126
1131
  source: c,
1127
1132
  link: a.find((e) => e.connector === o)
1128
- }) : /* @__PURE__ */ q(qt, {
1133
+ }) : /* @__PURE__ */ q(Jt, {
1129
1134
  workspace: e,
1130
1135
  identifier: t,
1131
1136
  comment: n,
@@ -1136,7 +1141,7 @@ function Wt({ workspace: e, identifier: t, others: n }) {
1136
1141
  children: i.map((r) => /* @__PURE__ */ q("li", {
1137
1142
  id: `comment-${r.id}`,
1138
1143
  className: "border-b border-border/50 last:border-b-0",
1139
- children: /* @__PURE__ */ q(qt, {
1144
+ children: /* @__PURE__ */ q(Jt, {
1140
1145
  workspace: e,
1141
1146
  identifier: t,
1142
1147
  comment: r,
@@ -1146,7 +1151,7 @@ function Wt({ workspace: e, identifier: t, others: n }) {
1146
1151
  }),
1147
1152
  /* @__PURE__ */ q("div", {
1148
1153
  className: "border-t border-border/70 px-3 py-2",
1149
- children: s === n.id ? /* @__PURE__ */ q(Yt, {
1154
+ children: s === n.id ? /* @__PURE__ */ q(Xt, {
1150
1155
  workspace: e,
1151
1156
  identifier: t,
1152
1157
  parentId: n.id,
@@ -1164,19 +1169,19 @@ function Wt({ workspace: e, identifier: t, others: n }) {
1164
1169
  }, n.id);
1165
1170
  })
1166
1171
  }),
1167
- /* @__PURE__ */ q(ft, {
1172
+ /* @__PURE__ */ q(pt, {
1168
1173
  size: "fill",
1169
1174
  padding: "sm",
1170
1175
  focusWithin: !0,
1171
1176
  className: "mt-4",
1172
- children: /* @__PURE__ */ q(Yt, {
1177
+ children: /* @__PURE__ */ q(Xt, {
1173
1178
  workspace: e,
1174
1179
  identifier: t
1175
1180
  })
1176
1181
  }),
1177
1182
  /* @__PURE__ */ q("div", {
1178
1183
  className: "mt-2",
1179
- children: /* @__PURE__ */ q(qe, {
1184
+ children: /* @__PURE__ */ q(Je, {
1180
1185
  workspace: e,
1181
1186
  others: n,
1182
1187
  field: "comment"
@@ -1185,16 +1190,16 @@ function Wt({ workspace: e, identifier: t, others: n }) {
1185
1190
  ]
1186
1191
  });
1187
1192
  }
1188
- var Gt = (e) => !!e.sharedWith && !e.parentId;
1189
- function Kt({ comment: e }) {
1193
+ var Kt = (e) => !!e.sharedWith && !e.parentId;
1194
+ function qt({ comment: e }) {
1190
1195
  let t = G("issue.comments");
1191
1196
  return e.author.kind === "connector" ? /* @__PURE__ */ q("span", {
1192
1197
  className: "rounded border border-border px-1.5 py-px text-[10px] text-muted-foreground",
1193
1198
  children: t("via", { source: L(e.author.handle).source })
1194
1199
  }) : null;
1195
1200
  }
1196
- function qt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1197
- let o = G("issue.comments"), s = G("common"), { actorName: c, avatarOf: l } = te(n), { data: u } = Q(h), { data: d = [] } = X(_(n, r)), f = ve(n, "comment", { team: r.slice(0, r.lastIndexOf("-")) }), p = Z(), m = H(), [g, v] = W(!1), [y, x] = W(i.body), [C, w] = W(!1), T = U(null), E = Ne(n, r), D = i.author.kind === "user" && i.author.handle === u?.user.username, O = { path: {
1201
+ function Jt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1202
+ let o = G("issue.comments"), s = G("common"), { actorName: c, avatarOf: l } = te(n), { data: u } = Q(h), { data: d = [] } = X(_(n, r)), f = ve(n, "comment", { team: r.slice(0, r.lastIndexOf("-")) }), p = Z(), m = H(), [g, v] = W(!1), [y, x] = W(i.body), [C, w] = W(!1), T = U(null), E = Pe(n, r), D = i.author.kind === "user" && i.author.handle === u?.user.username, O = { path: {
1198
1203
  workspace: n,
1199
1204
  identifier: r,
1200
1205
  commentId: i.id
@@ -1222,7 +1227,7 @@ function qt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1222
1227
  S(s("copyLink"), M),
1223
1228
  S(o("copyText"), i.body),
1224
1229
  ...D ? [
1225
- St,
1230
+ Ct,
1226
1231
  {
1227
1232
  label: o("edit"),
1228
1233
  onClick: () => {
@@ -1242,13 +1247,13 @@ function qt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1242
1247
  children: [/* @__PURE__ */ J("div", {
1243
1248
  className: "flex items-center gap-2 text-xs",
1244
1249
  children: [
1245
- /* @__PURE__ */ J(ke, {
1250
+ /* @__PURE__ */ J(Ae, {
1246
1251
  workspace: n,
1247
1252
  kind: i.author.kind,
1248
1253
  handle: i.author.handle,
1249
1254
  className: "flex items-center gap-2",
1250
- children: [/* @__PURE__ */ q(ut, {
1251
- ...De(i.author.kind),
1255
+ children: [/* @__PURE__ */ q(dt, {
1256
+ ...Oe(i.author.kind),
1252
1257
  name: c(i.author),
1253
1258
  src: l(i.author.kind, i.author.handle),
1254
1259
  size: "xs",
@@ -1258,15 +1263,15 @@ function qt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1258
1263
  children: c(i.author)
1259
1264
  })]
1260
1265
  }),
1261
- /* @__PURE__ */ q(Kt, { comment: i }),
1266
+ /* @__PURE__ */ q(qt, { comment: i }),
1262
1267
  /* @__PURE__ */ J("span", {
1263
1268
  className: "text-muted-foreground",
1264
- children: [/* @__PURE__ */ q(vt, {
1269
+ children: [/* @__PURE__ */ q(yt, {
1265
1270
  value: i.createdAt,
1266
1271
  exact: "medium"
1267
1272
  }), i.updatedAt !== i.createdAt && /* @__PURE__ */ J(K, { children: [" ", o("edited")] })]
1268
1273
  }),
1269
- !C && !g && /* @__PURE__ */ q(jt, {
1274
+ !C && !g && /* @__PURE__ */ q(Mt, {
1270
1275
  items: N,
1271
1276
  className: "ml-auto"
1272
1277
  }),
@@ -1303,7 +1308,7 @@ function qt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1303
1308
  },
1304
1309
  onFiles: (e, t) => E.upload(T.current, e, t)
1305
1310
  }),
1306
- /* @__PURE__ */ q(Me, {
1311
+ /* @__PURE__ */ q(Ne, {
1307
1312
  pending: E.pending,
1308
1313
  error: E.error
1309
1314
  }),
@@ -1329,16 +1334,16 @@ function qt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1329
1334
  value: i.body,
1330
1335
  editable: !1
1331
1336
  }),
1332
- /* @__PURE__ */ q(lt, {
1337
+ /* @__PURE__ */ q(ut, {
1333
1338
  workspace: n,
1334
1339
  widgets: i.widgets
1335
1340
  }),
1336
- /* @__PURE__ */ q(Jt, {
1341
+ /* @__PURE__ */ q(Yt, {
1337
1342
  workspace: n,
1338
1343
  identifier: r,
1339
1344
  comment: i
1340
1345
  }),
1341
- /* @__PURE__ */ q(ot, {
1346
+ /* @__PURE__ */ q(st, {
1342
1347
  workspace: n,
1343
1348
  identifier: r,
1344
1349
  commentId: i.id,
@@ -1350,7 +1355,7 @@ function qt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1350
1355
  })]
1351
1356
  });
1352
1357
  }
1353
- function Jt({ workspace: e, identifier: t, comment: n }) {
1358
+ function Yt({ workspace: e, identifier: t, comment: n }) {
1354
1359
  let { data: r = [] } = X(s(e, t)), { actorName: i } = te(e), a = r.filter((e) => e.page && e.commentId === n.id);
1355
1360
  return a.length === 0 ? null : /* @__PURE__ */ q("div", {
1356
1361
  className: "mt-2 space-y-2",
@@ -1361,8 +1366,8 @@ function Jt({ workspace: e, identifier: t, comment: n }) {
1361
1366
  }, e.id))
1362
1367
  });
1363
1368
  }
1364
- function Yt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus: o = !1, onDone: s }) {
1365
- let c = G("issue.comments"), l = kt(), u = G("common"), d = Et(Xt), f = Z(), [p, m] = W(""), [h, g] = W(0), _ = U(null), v = Ne(n, r), y = Y({
1369
+ function Xt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus: o = !1, onDone: s }) {
1370
+ let c = G("issue.comments"), l = At(), u = G("common"), d = Dt(Zt), f = Z(), [p, m] = W(""), [h, g] = W(0), _ = U(null), v = Pe(n, r), y = Y({
1366
1371
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/comments", {
1367
1372
  params: { path: {
1368
1373
  workspace: n,
@@ -1396,12 +1401,12 @@ function Yt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
1396
1401
  children: [
1397
1402
  /* @__PURE__ */ J("span", {
1398
1403
  className: "mr-auto flex min-w-0 items-center gap-2",
1399
- children: [/* @__PURE__ */ q(Ae, { onFiles: (e) => v.upload(_.current, e) }), /* @__PURE__ */ q(Me, {
1404
+ children: [/* @__PURE__ */ q(je, { onFiles: (e) => v.upload(_.current, e) }), /* @__PURE__ */ q(Ne, {
1400
1405
  pending: v.pending,
1401
1406
  error: v.error
1402
1407
  })]
1403
1408
  }),
1404
- y.isError && /* @__PURE__ */ q(ht, {
1409
+ y.isError && /* @__PURE__ */ q(gt, {
1405
1410
  inline: !0,
1406
1411
  className: "text-xs",
1407
1412
  children: l(y.error)
@@ -1425,5 +1430,5 @@ function Yt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
1425
1430
  ]
1426
1431
  })] });
1427
1432
  }
1428
- var Xt = wt(() => {});
1429
- export { Nt as component };
1433
+ var Zt = Tt(() => {});
1434
+ export { Pt as component };