@parallelworks/tandem-web 0.150.2 → 0.151.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.
Files changed (110) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +32 -3
  2. package/_virtual/_virtual_i18n/es/common.js +32 -3
  3. package/_virtual/_virtual_i18n/ja/common.js +32 -3
  4. package/_virtual/_virtual_i18n/ko/common.js +32 -3
  5. package/_virtual/_virtual_i18n/zh/common.js +32 -3
  6. package/api/queries.js +88 -77
  7. package/components/AccessGrants.js +6 -6
  8. package/components/ActivityTimeline.js +4 -4
  9. package/components/AgentWork.js +111 -111
  10. package/components/AreaLink.js +32 -0
  11. package/components/AreaTiles.js +10 -13
  12. package/components/AreaWork.js +25 -1
  13. package/components/BugRotation.js +3 -3
  14. package/components/CodeHostSettings.js +30 -30
  15. package/components/CommandPalette.js +53 -53
  16. package/components/CustomFields.js +116 -116
  17. package/components/DateChip.js +11 -11
  18. package/components/DocButton.js +6 -6
  19. package/components/DocHistory.js +4 -4
  20. package/components/DocLinkPicker.js +8 -8
  21. package/components/DocProperties.js +15 -15
  22. package/components/DocTable.js +15 -15
  23. package/components/DocsTree.js +80 -80
  24. package/components/Editor.js +35 -35
  25. package/components/FavoritesNav.js +53 -53
  26. package/components/GitHub.js +18 -18
  27. package/components/Graph.js +15 -15
  28. package/components/HostActions.js +21 -21
  29. package/components/HostPanel.js +6 -6
  30. package/components/HoverCards.js +38 -38
  31. package/components/IssueBoard.js +4 -4
  32. package/components/IssueCode.js +14 -14
  33. package/components/IssueEvent.js +3 -3
  34. package/components/IssueFilters.js +71 -71
  35. package/components/IssueListBlock.js +32 -32
  36. package/components/IssueRow.js +21 -21
  37. package/components/IssueTemplates.js +118 -118
  38. package/components/IssueTypes.js +40 -40
  39. package/components/NewIssueDialog.js +76 -76
  40. package/components/NewProjectDialog.js +145 -145
  41. package/components/PersonActivity.js +4 -4
  42. package/components/SharedViewer.js +5 -5
  43. package/components/SlashMenu.js +29 -29
  44. package/components/TeamRepositories.js +51 -51
  45. package/components/TeamWorkflow.js +6 -6
  46. package/components/UnlinkedMentions.js +20 -20
  47. package/components/Updates.js +3 -3
  48. package/components/Widgets.js +20 -20
  49. package/components/columns.js +17 -17
  50. package/components/editorPlugins.js +80 -80
  51. package/components/mathDiagrams.js +17 -17
  52. package/lib/boardMove.js +5 -5
  53. package/lib/issueList.js +58 -58
  54. package/lib/issueMenu.js +27 -27
  55. package/lib/knowledge.js +106 -106
  56. package/lib/views.js +9 -9
  57. package/package.json +2 -2
  58. package/pages/area.js +291 -0
  59. package/pages/areas.js +258 -287
  60. package/pages/decisions.js +21 -21
  61. package/pages/issues.js +52 -52
  62. package/pages/projects.js +125 -125
  63. package/pages/triage.js +12 -12
  64. package/routeTree.gen.js +186 -180
  65. package/routes/_workspace/agents/_slug2.js +11 -11
  66. package/routes/_workspace/agents/index2.js +10 -10
  67. package/routes/_workspace/areas/_area.js +7 -8
  68. package/routes/_workspace/areas/_area2.js +3 -290
  69. package/routes/_workspace/areas/_area3.js +7 -8
  70. package/routes/_workspace/docs/_doc2.js +230 -230
  71. package/routes/_workspace/docs/space2._space.js +27 -27
  72. package/routes/_workspace/issues/_identifier2.js +222 -224
  73. package/routes/_workspace/knowledge/_term2.js +43 -43
  74. package/routes/_workspace/knowledge/index.js +6 -6
  75. package/routes/_workspace/knowledge/index2.js +15 -15
  76. package/routes/_workspace/measures3.js +70 -72
  77. package/routes/_workspace/notifications2.js +150 -150
  78. package/routes/_workspace/people/_username2.js +10 -10
  79. package/routes/_workspace/projects/_projectId3.js +276 -276
  80. package/routes/_workspace/settings/audit-log3.js +136 -138
  81. package/routes/_workspace/settings/fields2.js +11 -11
  82. package/routes/_workspace/settings/github2.js +6 -6
  83. package/routes/_workspace/settings/groups2.js +26 -26
  84. package/routes/_workspace/settings/import2.js +398 -147
  85. package/routes/_workspace/settings/import3.js +7 -3
  86. package/routes/_workspace/settings/index2.js +6 -6
  87. package/routes/_workspace/settings/labels2.js +21 -21
  88. package/routes/_workspace/settings/members2.js +27 -27
  89. package/routes/_workspace/settings/notifications2.js +8 -8
  90. package/routes/_workspace/settings/parallelworks2.js +32 -32
  91. package/routes/_workspace/settings/roles2.js +24 -24
  92. package/routes/_workspace/settings/runners2.js +15 -15
  93. package/routes/_workspace/settings/sessions2.js +17 -17
  94. package/routes/_workspace/settings/slack2.js +7 -7
  95. package/routes/_workspace/settings/sso2.js +31 -31
  96. package/routes/_workspace/settings/teams2.js +25 -25
  97. package/routes/_workspace/settings/tokens2.js +12 -12
  98. package/routes/_workspace/settings/webhooks2.js +13 -13
  99. package/routes/_workspace/teams/_key/areas/_area.js +8 -0
  100. package/routes/_workspace/teams/_key/areas/_area2.js +4 -0
  101. package/routes/_workspace/teams/_key/areas/_area3.js +9 -0
  102. package/routes/_workspace/teams/_key/areas/index.js +6 -0
  103. package/routes/_workspace/teams/_key/areas/index2.js +4 -0
  104. package/routes/_workspace/teams/_key/{areas3.js → areas/index3.js} +2 -2
  105. package/routes/_workspace/teams/_key/cycles/_number2.js +27 -27
  106. package/routes/_workspace/teams/_key/cycles/index2.js +24 -24
  107. package/routes/_workspace/teams/_key/settings2.js +29 -29
  108. package/routes/_workspace2.js +368 -368
  109. package/routes/_workspace/teams/_key/areas.js +0 -6
  110. package/routes/_workspace/teams/_key/areas2.js +0 -4
@@ -3,34 +3,35 @@ import { branchName as n } from "../../../lib/branch.js";
3
3
  import { usePageTitle as r } from "../../../lib/pageTitle.js";
4
4
  import { Link as i, useNavigate as a } from "../../../lib/router.js";
5
5
  import { areasQuery as o, attachmentsQuery as s, commentsQuery as c, cyclesQuery as l, eventsQuery as u, issueDocsQuery as d, issueLinksQuery as f, issueQuery as p, labelsQuery as m, meQuery as h, projectsQuery as g, reactionsQuery as _, statusesQuery as v, teamsQuery as y } from "../../../api/queries.js";
6
- import { useConfirm as b } from "../../../lib/confirm.js";
7
- import { customFieldsQuery as x, hasValue as S } from "../../../lib/customFields.js";
8
- import { issueTypesQuery as C, typeShows as w, typesFor as T } from "../../../lib/issueTypes.js";
9
- import { AreaIcon as E, BranchIcon as D, CalendarIcon as O, CloseIcon as k, CycleIcon as A, EstimateIcon as j, FileTextIcon as M, InboxIcon as N, PriorityIcon as P, ProjectIcon as F, StatusIcon as ee, TriageIcon as I, usePriorityNames as te } from "../../../components/icons.js";
10
- import { TypeIcon as ne } from "../../../components/IssueTypes.js";
11
- import { Route as re } from "./_identifier.js";
12
- import { copyItem as ie } from "../../../lib/menus.js";
13
- import { docRef as ae, useDocMenu as oe } from "../../../lib/docs.js";
14
- import { invalidateIssueViews as se, useUpdateIssue as ce } from "../../../api/mutations.js";
15
- import { useTime as le } from "../../../lib/time.js";
16
- import { DueDate as ue, ProjectStatusIcon as de, SlaBadge as fe, scalePoints as pe, useEstimateLabel as me } from "../../../components/Planning.js";
17
- import { connectorActor as he, usePeople as ge } from "../../../lib/people.js";
18
- import { PickManyBox as _e, usePickMany as ve } from "../../../lib/pickMany.js";
19
- import { assigneeKey as ye, parseAssigneeKey as be, useAssigneeOptions as xe } from "../../../lib/assignees.js";
20
- import { issueURL as Se, useIssueMenu as Ce } from "../../../lib/issueMenu.js";
21
- import { rememberPage as we } from "../../../lib/recent.js";
22
- import { issueScope as Te, useCan as Ee, useCanTriage as De } from "../../../lib/roles.js";
23
- import { useLinkedIssues as Oe } from "../../../lib/linkedIssues.js";
6
+ import { invalidateIssueViews as b, useUpdateIssue as x } from "../../../api/mutations.js";
7
+ import { copyItem as S } from "../../../lib/menus.js";
8
+ import { docRef as C, useDocMenu as w } from "../../../lib/docs.js";
9
+ import { AreaIcon as T, BranchIcon as E, CalendarIcon as D, CloseIcon as O, CycleIcon as k, EstimateIcon as A, FileTextIcon as j, InboxIcon as M, PriorityIcon as N, ProjectIcon as P, StatusIcon as F, TriageIcon as I, usePriorityNames as ee } from "../../../components/icons.js";
10
+ import { connectorActor as L, usePeople as te } from "../../../lib/people.js";
11
+ import { useTime as ne } from "../../../lib/time.js";
12
+ import { AgentPage as re } from "../../../components/AgentPage.js";
13
+ import { DueDate as ie, ProjectStatusIcon as ae, SlaBadge as oe, scalePoints as se, useEstimateLabel as ce } from "../../../components/Planning.js";
14
+ import { PickManyBox as le, usePickMany as ue } from "../../../lib/pickMany.js";
15
+ import { assigneeKey as de, parseAssigneeKey as fe, useAssigneeOptions as pe } from "../../../lib/assignees.js";
16
+ import { issueURL as me, useIssueMenu as he } from "../../../lib/issueMenu.js";
17
+ import { useLinkedIssues as ge } from "../../../lib/linkedIssues.js";
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";
24
25
  import { PersonHoverCard as ke } from "../../../components/PersonHoverCard.js";
25
26
  import { AttachButton as Ae, IssueAttachments as je, UploadStatus as Me, useAttachmentUpload as Ne } from "../../../components/Attachments.js";
26
- import { IssueFields as Pe } from "../../../components/CustomFields.js";
27
- import { actorAvatar as Fe } from "../../../lib/avatar.js";
28
- import { Editor as L } from "../../../components/Editor.js";
29
- import { useOthersOn as Ie, useReportLocation as Le } from "../../../lib/live.js";
30
- import { useReadIssueNotifications as Re } from "../../../lib/notifications.js";
31
- import { useShortcuts as ze } from "../../../lib/shortcuts.js";
32
- import { AgentPage as Be } from "../../../components/AgentPage.js";
33
- import { AgentWork as Ve } from "../../../components/AgentWork.js";
27
+ import { Editor as R } from "../../../components/Editor.js";
28
+ import { AgentWork as Pe } from "../../../components/AgentWork.js";
29
+ import { AreaLink as Fe } from "../../../components/AreaLink.js";
30
+ import { useShortcuts as Ie } from "../../../lib/shortcuts.js";
31
+ import { Route as Le } from "./_identifier.js";
32
+ import { rememberPage as Re } from "../../../lib/recent.js";
33
+ import { useOthersOn as ze, useReportLocation as Be } from "../../../lib/live.js";
34
+ import { useReadIssueNotifications as Ve } from "../../../lib/notifications.js";
34
35
  import { FavoriteStar as He } from "../../../components/FavoriteStar.js";
35
36
  import { caretColor as Ue, useCollabSession as We } from "../../../lib/collab.js";
36
37
  import { CollabEditor as Ge } from "../../../components/CollabEditor.js";
@@ -45,24 +46,24 @@ import { Reactions as rt } from "../../../components/Reactions.js";
45
46
  import { TimeInStatus as it } from "../../../components/Reports.js";
46
47
  import { SubscribeButton as at } from "../../../components/SubscribeButton.js";
47
48
  import { Widgets as ot } from "../../../components/Widgets.js";
48
- import { Avatar as st, Button as R, Callout as ct, Card as lt, Combobox as z, CopyButton as ut, DatePicker as dt, ErrorText as ft, IconButton as pt, Kbd as mt, RelativeTime as ht, Select as B, TitleInput as gt, Tooltip as _t, buttonClasses as vt, menuDivider as yt, toast as bt, useOpenMenu as V } from "@parallelworks/ui";
49
- import { createContext as xt, useCallback as St, useContext as Ct, useEffect as wt, useMemo as Tt, useRef as H, useState as U } from "react";
50
- import { useErrorMessage as Et } from "@parallelworks/problem/react";
51
- import { useFormatter as Dt, useTranslations as W } from "use-intl";
49
+ import { Avatar as st, Button as z, Callout as ct, Card as lt, Combobox as B, CopyButton as ut, DatePicker as dt, ErrorText as ft, IconButton as pt, Kbd as mt, RelativeTime as ht, Select as V, TitleInput as gt, Tooltip as _t, buttonClasses as vt, menuDivider as yt, toast as bt, useOpenMenu as H } from "@parallelworks/ui";
50
+ import { createContext as xt, useCallback as St, useContext as Ct, useEffect as wt, useMemo as Tt, useRef as Et, useState as U } from "react";
51
+ import { useErrorMessage as Dt } from "@parallelworks/problem/react";
52
+ import { useFormatter as Ot, useTranslations as W } from "use-intl";
52
53
  import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
53
54
  import { useMutation as J, useQuery as Y, useQueryClient as X, useSuspenseQuery as Z } from "@tanstack/react-query";
54
- import { ArchiveIcon as Ot } from "@parallelworks/ui/icons";
55
55
  import { MoreButton as kt } from "@parallelworks/ui/list";
56
+ import { ArchiveIcon as At } from "@parallelworks/ui/icons";
56
57
  // src/routes/$workspace/issues/$identifier.tsx?tsr-split=component
57
- function At() {
58
- let o = W("issue"), s = le(), c = Et(), l = W("common"), { workspace: u, identifier: d } = re.useParams(), { data: m } = Z(p(u, d)), { data: g } = Z(y(u)), { data: _ } = Z(h), { data: v = [] } = Y(f(u, d)), [x, S] = U();
59
- Le({
58
+ function jt() {
59
+ let o = W("issue"), s = ne(), c = Dt(), l = W("common"), { workspace: u, identifier: d } = Le.useParams(), { data: m } = Z(p(u, d)), { data: g } = Z(y(u)), { data: _ } = Z(h), { data: v = [] } = Y(f(u, d)), [S, C] = U();
60
+ Be({
60
61
  identifier: m.identifier,
61
- ...x && { field: x }
62
- }), r(`${m.identifier} ${m.title}`), Re(u, m.identifier);
63
- let C = a(), w = n(m.identifier, m.title);
62
+ ...S && { field: S }
63
+ }), r(`${m.identifier} ${m.title}`), Ve(u, m.identifier);
64
+ let w = a(), T = n(m.identifier, m.title);
64
65
  wt(() => {
65
- window.location.pathname.endsWith(`/issues/${w}`) || C({
66
+ window.location.pathname.endsWith(`/issues/${T}`) || w({
66
67
  to: "/$workspace/issues/$identifier",
67
68
  params: {
68
69
  workspace: u,
@@ -73,28 +74,28 @@ function At() {
73
74
  replace: !0
74
75
  });
75
76
  }, [
77
+ T,
76
78
  w,
77
- C,
78
79
  u,
79
80
  m.identifier
80
81
  ]);
81
- let T = Ee(u, "delete_issues", Te(m)), E = X(), { confirm: O, dialog: k } = b(), A = J({
82
+ let D = ve(u, "delete_issues", _e(m)), O = X(), { confirm: k, dialog: A } = Se(), j = J({
82
83
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/restore", { params: { path: {
83
84
  workspace: u,
84
85
  identifier: m.identifier
85
86
  } } })),
86
87
  onSuccess: (e) => {
87
- E.setQueryData(p(u, m.identifier).queryKey, e), se(E, u, m.identifier);
88
+ O.setQueryData(p(u, m.identifier).queryKey, e), b(O, u, m.identifier);
88
89
  }
89
- }), j = J({
90
+ }), M = J({
90
91
  mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/issues/{identifier}", { params: { path: {
91
92
  workspace: u,
92
93
  identifier: m.identifier
93
94
  } } })),
94
95
  onSuccess: () => {
95
- bt.success(o("deleted", { identifier: m.identifier })), se(E, u);
96
+ bt.success(o("deleted", { identifier: m.identifier })), b(O, u);
96
97
  let e = g.find((e) => e.id === m.teamId)?.key;
97
- C(e ? {
98
+ w(e ? {
98
99
  to: "/$workspace/teams/$key/issues",
99
100
  params: {
100
101
  workspace: u,
@@ -105,15 +106,15 @@ function At() {
105
106
  params: { workspace: u }
106
107
  });
107
108
  }
108
- }), M = St((e) => C({
109
+ }), N = St((e) => w({
109
110
  to: "/$workspace/issues/$identifier",
110
111
  params: {
111
112
  workspace: u,
112
113
  identifier: e
113
114
  }
114
- }), [C, u]);
115
- Oe(u, m.body, M), wt(() => {
116
- we(u, {
115
+ }), [w, u]);
116
+ ge(u, m.body, N), wt(() => {
117
+ Re(u, {
117
118
  kind: "issue",
118
119
  href: `/${u}/issues/${m.identifier}`,
119
120
  label: `${m.identifier} ${m.title}`
@@ -123,13 +124,13 @@ function At() {
123
124
  m.identifier,
124
125
  m.title
125
126
  ]);
126
- let N = Ie({ issue: m.identifier }, _?.user.username), P = g.find((e) => e.id === m.teamId), F = ce(u, d), [ee, I] = U(null), te = V(), ne = Ce(u);
127
- return ze({
128
- s: () => I("status"),
129
- p: () => I("priority"),
130
- a: () => I("assignees"),
131
- l: () => I("labels"),
132
- Escape: () => C({
127
+ let P = ze({ issue: m.identifier }, _?.user.username), F = g.find((e) => e.id === m.teamId), I = x(u, d), [ee, L] = U(null), te = H(), re = he(u);
128
+ return Ie({
129
+ s: () => L("status"),
130
+ p: () => L("priority"),
131
+ a: () => L("assignees"),
132
+ l: () => L("labels"),
133
+ Escape: () => w({
133
134
  to: "/$workspace/issues",
134
135
  params: { workspace: u }
135
136
  })
@@ -138,16 +139,16 @@ function At() {
138
139
  children: [
139
140
  /* @__PURE__ */ q("header", {
140
141
  className: "flex h-12 shrink-0 items-center gap-2 border-b border-border px-4 text-sm md:px-5",
141
- onContextMenu: (e) => te(e, ne([m])),
142
+ onContextMenu: (e) => te(e, re([m])),
142
143
  children: [
143
144
  /* @__PURE__ */ K(i, {
144
- to: P ? "/$workspace/teams/$key/issues" : "/$workspace/issues",
145
+ to: F ? "/$workspace/teams/$key/issues" : "/$workspace/issues",
145
146
  params: {
146
147
  workspace: u,
147
- key: P?.key ?? ""
148
+ key: F?.key ?? ""
148
149
  },
149
150
  className: "text-muted-foreground hover:text-foreground",
150
- children: P?.name ?? o("issues")
151
+ children: F?.name ?? o("issues")
151
152
  }),
152
153
  /* @__PURE__ */ K("span", {
153
154
  className: "text-muted-foreground",
@@ -170,7 +171,7 @@ function At() {
170
171
  /* @__PURE__ */ K(ut, {
171
172
  text: n(m.identifier, m.title),
172
173
  label: o("copyBranchName"),
173
- icon: /* @__PURE__ */ K(D, {}),
174
+ icon: /* @__PURE__ */ K(E, {}),
174
175
  size: "sm",
175
176
  variant: "ghost",
176
177
  success: o("copiedBranchName", { name: n(m.identifier, m.title) }),
@@ -181,23 +182,23 @@ function At() {
181
182
  /* @__PURE__ */ q("span", {
182
183
  className: "ml-auto flex items-center gap-3",
183
184
  children: [
184
- F.isPending && /* @__PURE__ */ K("span", {
185
+ I.isPending && /* @__PURE__ */ K("span", {
185
186
  className: "text-xs text-muted-foreground",
186
187
  children: l("saving")
187
188
  }),
188
189
  /* @__PURE__ */ K(qe, {
189
190
  workspace: u,
190
- others: N
191
+ others: P
191
192
  }),
192
193
  /* @__PURE__ */ K(kt, {
193
- items: () => [...ne([m]), ...T ? [{
194
+ items: () => [...re([m]), ...D ? [{
194
195
  label: o("deleteIssue"),
195
196
  destructive: !0,
196
- onClick: () => O({
197
+ onClick: () => k({
197
198
  title: o("deleteTitle", { identifier: m.identifier }),
198
199
  description: o("deleteDescription"),
199
200
  confirmLabel: o("deleteIssue"),
200
- onConfirm: () => j.mutateAsync()
201
+ onConfirm: () => M.mutateAsync()
201
202
  })
202
203
  }] : []],
203
204
  label: l("moreActionsFor", { name: m.identifier }),
@@ -205,14 +206,14 @@ function At() {
205
206
  })
206
207
  ]
207
208
  }),
208
- F.isError && /* @__PURE__ */ K(ft, {
209
+ I.isError && /* @__PURE__ */ K(ft, {
209
210
  inline: !0,
210
211
  className: "ml-auto text-xs",
211
- children: c(F.error)
212
+ children: c(I.error)
212
213
  })
213
214
  ]
214
215
  }),
215
- k,
216
+ A,
216
217
  /* @__PURE__ */ q("div", {
217
218
  className: "flex min-h-0 flex-1 flex-col overflow-y-auto md:flex-row md:overflow-hidden",
218
219
  children: [/* @__PURE__ */ K("div", {
@@ -221,43 +222,43 @@ function At() {
221
222
  className: "w-full px-4 pt-6 pb-24 md:px-8 md:pt-8",
222
223
  children: [
223
224
  /* @__PURE__ */ q($.Provider, {
224
- value: S,
225
+ value: C,
225
226
  children: [
226
- m.triage && /* @__PURE__ */ K(jt, {
227
+ m.triage && /* @__PURE__ */ K(Mt, {
227
228
  workspace: u,
228
229
  issue: m
229
230
  }),
230
231
  m.archivedAt && /* @__PURE__ */ K(ct, {
231
232
  tone: "muted",
232
- icon: /* @__PURE__ */ K(Ot, {}),
233
+ icon: /* @__PURE__ */ K(At, {}),
233
234
  className: "mb-5",
234
235
  children: /* @__PURE__ */ q("span", {
235
236
  className: "flex flex-wrap items-center gap-x-3 gap-y-1",
236
- children: [o("archivedNote", { when: s.day(m.archivedAt.slice(0, 10)) }), /* @__PURE__ */ K(R, {
237
+ children: [o("archivedNote", { when: s.day(m.archivedAt.slice(0, 10)) }), /* @__PURE__ */ K(z, {
237
238
  type: "button",
238
239
  size: "sm",
239
- onClick: () => A.mutate(),
240
- loading: A.isPending,
240
+ onClick: () => j.mutate(),
241
+ loading: j.isPending,
241
242
  children: o("restore")
242
243
  })]
243
244
  })
244
245
  }),
245
- /* @__PURE__ */ K(Mt, {
246
+ /* @__PURE__ */ K(Nt, {
246
247
  issue: m,
247
- onSave: (e) => F.mutate({ title: e })
248
+ onSave: (e) => I.mutate({ title: e })
248
249
  }),
249
250
  /* @__PURE__ */ K(Ke, {
250
251
  workspace: u,
251
- others: N,
252
+ others: P,
252
253
  field: "title"
253
254
  }),
254
- /* @__PURE__ */ K(Nt, {
255
+ /* @__PURE__ */ K(Pt, {
255
256
  workspace: u,
256
257
  issue: m
257
258
  }),
258
259
  /* @__PURE__ */ K(Ke, {
259
260
  workspace: u,
260
- others: N,
261
+ others: P,
261
262
  field: "body"
262
263
  }),
263
264
  /* @__PURE__ */ K(nt, {
@@ -267,9 +268,9 @@ function At() {
267
268
  /* @__PURE__ */ K(Ye, {
268
269
  workspace: u,
269
270
  identifier: m.identifier,
270
- enabled: !!P?.customerRequestsEnabled
271
+ enabled: !!F?.customerRequestsEnabled
271
272
  }),
272
- /* @__PURE__ */ K(Pt, {
273
+ /* @__PURE__ */ K(Ft, {
273
274
  workspace: u,
274
275
  identifier: d
275
276
  }),
@@ -278,18 +279,18 @@ function At() {
278
279
  identifier: d,
279
280
  title: m.title
280
281
  }),
281
- /* @__PURE__ */ K(Ve, {
282
+ /* @__PURE__ */ K(Pe, {
282
283
  workspace: u,
283
284
  identifier: d
284
285
  }),
285
- /* @__PURE__ */ K(Vt, {
286
+ /* @__PURE__ */ K(Ht, {
286
287
  workspace: u,
287
288
  identifier: d,
288
- others: N
289
+ others: P
289
290
  })
290
291
  ]
291
292
  }),
292
- /* @__PURE__ */ K(Bt, {
293
+ /* @__PURE__ */ K(Vt, {
293
294
  workspace: u,
294
295
  identifier: d
295
296
  }),
@@ -299,20 +300,20 @@ function At() {
299
300
  })
300
301
  ]
301
302
  })
302
- }), /* @__PURE__ */ K(Ft, {
303
+ }), /* @__PURE__ */ K(It, {
303
304
  workspace: u,
304
305
  issue: m,
305
- team: P,
306
+ team: F,
306
307
  open: ee,
307
- setOpen: I,
308
- update: (e) => F.mutate(e)
308
+ setOpen: L,
309
+ update: (e) => I.mutate(e)
309
310
  })]
310
311
  })
311
312
  ]
312
313
  });
313
314
  }
314
- function jt({ workspace: n, issue: r }) {
315
- let i = W("triage"), a = Et(), o = X(), s = De(n, r.teamId), c = J({
315
+ function Mt({ workspace: n, issue: r }) {
316
+ let i = W("triage"), a = Dt(), o = X(), s = ye(n, r.teamId), c = J({
316
317
  mutationFn: async (i) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
317
318
  params: { path: {
318
319
  workspace: n,
@@ -340,13 +341,13 @@ function jt({ workspace: n, issue: r }) {
340
341
  }),
341
342
  s && /* @__PURE__ */ q("span", {
342
343
  className: "flex gap-2",
343
- children: [/* @__PURE__ */ K(R, {
344
+ children: [/* @__PURE__ */ K(z, {
344
345
  variant: "outline",
345
346
  size: "sm",
346
347
  disabled: c.isPending,
347
348
  onClick: () => c.mutate("decline"),
348
349
  children: i("decline")
349
- }), /* @__PURE__ */ K(R, {
350
+ }), /* @__PURE__ */ K(z, {
350
351
  variant: "primary",
351
352
  size: "sm",
352
353
  loading: c.isPending && c.variables === "accept",
@@ -357,7 +358,7 @@ function jt({ workspace: n, issue: r }) {
357
358
  ]
358
359
  });
359
360
  }
360
- function Mt({ issue: e, onSave: t }) {
361
+ function Nt({ issue: e, onSave: t }) {
361
362
  let n = W("issue"), r = Ct($);
362
363
  return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("h1", {
363
364
  className: "sr-only",
@@ -370,8 +371,8 @@ function Mt({ issue: e, onSave: t }) {
370
371
  "aria-label": n("title")
371
372
  })] });
372
373
  }
373
- function Nt({ workspace: e, issue: t }) {
374
- let n = W("issue"), r = W("common"), i = Ct($), { data: a } = Z(h), o = H(null), s = Tt(() => ({
374
+ function Pt({ workspace: e, issue: t }) {
375
+ let n = W("issue"), r = W("common"), i = Ct($), { data: a } = Z(h), o = Et(null), s = Tt(() => ({
375
376
  name: a?.user.name ?? n("someone"),
376
377
  color: Ue(a?.user.username ?? "")
377
378
  }), [
@@ -383,7 +384,7 @@ function Nt({ workspace: e, issue: t }) {
383
384
  target: { issue: t.identifier },
384
385
  user: s,
385
386
  getMarkdown: o
386
- }), u = H(null), d = Ne(e, t.identifier), { data: f = [] } = Y(_(e, t.identifier)), p = Ee(e, "comment", Te(t));
387
+ }), u = Et(null), d = Ne(e, t.identifier), { data: f = [] } = Y(_(e, t.identifier)), p = ve(e, "comment", _e(t));
387
388
  return /* @__PURE__ */ q("div", {
388
389
  className: "group mt-4 min-h-32",
389
390
  children: [
@@ -400,7 +401,7 @@ function Nt({ workspace: e, issue: t }) {
400
401
  placeholder: n("addDescription"),
401
402
  label: r("description"),
402
403
  className: "min-h-32"
403
- }, `${c.generation}:${c.doc.guid}`) : /* @__PURE__ */ K(L, {
404
+ }, `${c.generation}:${c.doc.guid}`) : /* @__PURE__ */ K(R, {
404
405
  value: t.body,
405
406
  editable: !1,
406
407
  className: "min-h-32"
@@ -426,8 +427,8 @@ function Nt({ workspace: e, issue: t }) {
426
427
  ]
427
428
  });
428
429
  }
429
- function Pt({ workspace: e, identifier: t }) {
430
- let n = W("issue"), { data: r } = Z(d(e, t)), a = V(), o = oe(e);
430
+ function Ft({ workspace: e, identifier: t }) {
431
+ let n = W("issue"), { data: r } = Z(d(e, t)), a = H(), o = w(e);
431
432
  return r.length === 0 ? null : /* @__PURE__ */ q("section", {
432
433
  className: "mt-6",
433
434
  "aria-label": n("docs"),
@@ -440,11 +441,11 @@ function Pt({ workspace: e, identifier: t }) {
440
441
  to: "/$workspace/docs/$doc",
441
442
  params: {
442
443
  workspace: e,
443
- doc: ae(t)
444
+ doc: C(t)
444
445
  },
445
446
  onContextMenu: (e) => a(e, o(t)),
446
447
  className: `${vt({ size: "sm" })} max-w-72`,
447
- children: [/* @__PURE__ */ K(M, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ K("span", {
448
+ children: [/* @__PURE__ */ K(j, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ K("span", {
448
449
  className: "truncate",
449
450
  children: t.title
450
451
  })]
@@ -452,22 +453,22 @@ function Pt({ workspace: e, identifier: t }) {
452
453
  })]
453
454
  });
454
455
  }
455
- function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c }) {
456
- let l = W("relations"), u = i?.key, d = W("issue.properties"), p = W("common"), h = te(), { data: g = [] } = Y({
456
+ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c }) {
457
+ let l = W("relations"), u = i?.key, d = W("issue.properties"), p = W("common"), h = ee(), { data: g = [] } = Y({
457
458
  ...v(n, u ?? ""),
458
459
  enabled: !!u
459
- }), { data: _ = [] } = Y(m(n)), { data: y = [] } = Y(f(n, r.identifier)), { nameOf: b, actorName: x, avatarOf: S } = ge(n), C = X(), w = J({
460
+ }), { data: _ = [] } = Y(m(n)), { data: y = [] } = Y(f(n, r.identifier)), { nameOf: b, actorName: x, avatarOf: S } = te(n), C = X(), w = J({
460
461
  mutationFn: async (r) => t(await e.POST("/api/v1/workspaces/{workspace}/labels", {
461
462
  params: { path: { workspace: n } },
462
463
  body: {
463
464
  name: r,
464
- color: It[_.length % It.length] ?? "#d73a4a"
465
+ color: Lt[_.length % Lt.length] ?? "#d73a4a"
465
466
  }
466
467
  })),
467
468
  onSuccess: (e) => {
468
469
  C.invalidateQueries({ queryKey: m(n).queryKey }), c({ addLabels: [e.id] });
469
470
  }
470
- }), T = r.assignees.map(ye), E = xe(n, !0), D = (e) => (t) => s(t ? e : null), O = ve(o === "assignees", () => s(null)), k = ve(o === "labels", () => s(null)), A = "flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm hover:bg-muted", j = V(), M = Ce(n), N = a(), F = (e, t) => {
471
+ }), T = r.assignees.map(de), E = pe(n, !0), D = (e) => (t) => s(t ? e : null), O = ue(o === "assignees", () => s(null)), k = ue(o === "labels", () => s(null)), A = "flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm hover:bg-muted", j = H(), M = he(n), P = a(), I = (e, t) => {
471
472
  e.stopPropagation(), j(e, t);
472
473
  };
473
474
  return /* @__PURE__ */ q("aside", {
@@ -478,14 +479,14 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
478
479
  /* @__PURE__ */ K(Q, {
479
480
  label: p("status"),
480
481
  shortcut: "S",
481
- children: /* @__PURE__ */ K(z, {
482
+ children: /* @__PURE__ */ K(B, {
482
483
  "aria-label": p("status"),
483
484
  open: o === "status",
484
485
  onOpenChange: D("status"),
485
486
  items: g.map((e) => ({
486
487
  value: e.id,
487
488
  label: e.name,
488
- icon: /* @__PURE__ */ K(ee, { category: e.category })
489
+ icon: /* @__PURE__ */ K(F, { category: e.category })
489
490
  })),
490
491
  value: r.status.id,
491
492
  onValueChange: (e) => e !== null && e !== r.status.id && c({ statusId: e }),
@@ -493,11 +494,11 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
493
494
  trigger: /* @__PURE__ */ q("button", {
494
495
  type: "button",
495
496
  className: A,
496
- children: [/* @__PURE__ */ K(ee, { category: r.status.category }), r.status.name]
497
+ children: [/* @__PURE__ */ K(F, { category: r.status.category }), r.status.name]
497
498
  })
498
499
  })
499
500
  }),
500
- /* @__PURE__ */ K(zt, {
501
+ /* @__PURE__ */ K(Bt, {
501
502
  workspace: n,
502
503
  issue: r,
503
504
  update: c,
@@ -506,7 +507,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
506
507
  /* @__PURE__ */ K(Q, {
507
508
  label: p("priority"),
508
509
  shortcut: "P",
509
- children: /* @__PURE__ */ K(z, {
510
+ children: /* @__PURE__ */ K(B, {
510
511
  "aria-label": p("priority"),
511
512
  open: o === "priority",
512
513
  onOpenChange: D("priority"),
@@ -519,7 +520,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
519
520
  ].map((e) => ({
520
521
  value: String(e),
521
522
  label: h[e] ?? "",
522
- icon: /* @__PURE__ */ K(P, { priority: e })
523
+ icon: /* @__PURE__ */ K(N, { priority: e })
523
524
  })),
524
525
  value: String(r.priority),
525
526
  onValueChange: (e) => e !== null && c({ priority: Number(e) }),
@@ -527,14 +528,14 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
527
528
  trigger: /* @__PURE__ */ q("button", {
528
529
  type: "button",
529
530
  className: A,
530
- children: [/* @__PURE__ */ K(P, { priority: r.priority }), h[r.priority]]
531
+ children: [/* @__PURE__ */ K(N, { priority: r.priority }), h[r.priority]]
531
532
  })
532
533
  })
533
534
  }),
534
535
  /* @__PURE__ */ K(Q, {
535
536
  label: d("assignees"),
536
537
  shortcut: "A",
537
- children: /* @__PURE__ */ K(z, {
538
+ children: /* @__PURE__ */ K(B, {
538
539
  "aria-label": d("assignees"),
539
540
  multiple: !0,
540
541
  open: o === "assignees",
@@ -544,8 +545,8 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
544
545
  onValueChange: (e) => {
545
546
  let t = e.filter((e) => !T.includes(e)), n = T.filter((t) => !e.includes(t));
546
547
  c({
547
- ...t.length > 0 && { addAssignees: t.map(be) },
548
- ...n.length > 0 && { removeAssignees: n.map(be) }
548
+ ...t.length > 0 && { addAssignees: t.map(fe) },
549
+ ...n.length > 0 && { removeAssignees: n.map(fe) }
549
550
  }), O();
550
551
  },
551
552
  placeholder: d("assignTo"),
@@ -558,7 +559,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
558
559
  }), r.assignees.map((e) => {
559
560
  let t = b(e.kind, e.handle);
560
561
  return /* @__PURE__ */ K("span", {
561
- onContextMenu: (r) => F(r, [{
562
+ onContextMenu: (r) => I(r, [{
562
563
  label: d("unassign", { name: t }),
563
564
  onClick: () => c({ removeAssignees: [{
564
565
  kind: e.kind,
@@ -566,7 +567,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
566
567
  }] })
567
568
  }, {
568
569
  label: d("viewTheirIssues"),
569
- onClick: () => N({
570
+ onClick: () => P({
570
571
  to: "/$workspace/issues",
571
572
  params: { workspace: n },
572
573
  search: {
@@ -582,7 +583,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
582
583
  handle: e.handle,
583
584
  className: "flex items-center gap-1.5",
584
585
  children: [/* @__PURE__ */ K(st, {
585
- ...Fe(e.kind),
586
+ ...De(e.kind),
586
587
  name: t,
587
588
  src: S(e.kind, e.handle),
588
589
  size: "xs",
@@ -597,7 +598,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
597
598
  /* @__PURE__ */ K(Q, {
598
599
  label: p("labels"),
599
600
  shortcut: "L",
600
- children: /* @__PURE__ */ K(z, {
601
+ children: /* @__PURE__ */ K(B, {
601
602
  "aria-label": p("labels"),
602
603
  multiple: !0,
603
604
  open: o === "labels",
@@ -607,7 +608,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
607
608
  label: e.name,
608
609
  icon: /* @__PURE__ */ q("span", {
609
610
  className: "flex items-center gap-2",
610
- children: [/* @__PURE__ */ K(_e, {}), /* @__PURE__ */ K("span", {
611
+ children: [/* @__PURE__ */ K(le, {}), /* @__PURE__ */ K("span", {
611
612
  className: "size-2.5 rounded-full",
612
613
  style: { background: e.color }
613
614
  })]
@@ -631,12 +632,12 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
631
632
  className: "text-muted-foreground",
632
633
  children: d("noLabels")
633
634
  }), r.labels.map((e) => /* @__PURE__ */ q("span", {
634
- onContextMenu: (t) => F(t, [{
635
+ onContextMenu: (t) => I(t, [{
635
636
  label: d("removeLabel", { name: e.name }),
636
637
  onClick: () => c({ removeLabels: [e.id] })
637
638
  }, {
638
639
  label: d("viewLabelIssues"),
639
- onClick: () => N({
640
+ onClick: () => P({
640
641
  to: "/$workspace/issues",
641
642
  params: { workspace: n },
642
643
  search: { label: e.name }
@@ -663,7 +664,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
663
664
  row: A
664
665
  })
665
666
  }),
666
- /* @__PURE__ */ K(Rt, {
667
+ /* @__PURE__ */ K(zt, {
667
668
  workspace: n,
668
669
  issue: r,
669
670
  team: i,
@@ -679,7 +680,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
679
680
  kind: r.creator.kind,
680
681
  handle: r.creator.handle,
681
682
  children: /* @__PURE__ */ K(st, {
682
- ...Fe(r.creator.kind),
683
+ ...De(r.creator.kind),
683
684
  name: x(r.creator),
684
685
  src: S(r.creator.kind, r.creator.handle),
685
686
  size: "xs",
@@ -698,7 +699,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
698
699
  identifier: r.identifier
699
700
  })
700
701
  }),
701
- /* @__PURE__ */ K(Pe, {
702
+ /* @__PURE__ */ K(Oe, {
702
703
  workspace: n,
703
704
  issue: r,
704
705
  label: (e, t, n) => /* @__PURE__ */ K(Q, {
@@ -713,7 +714,7 @@ function Ft({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
713
714
  ]
714
715
  });
715
716
  }
716
- var It = [
717
+ var Lt = [
717
718
  "#d73a4a",
718
719
  "#2f8a57",
719
720
  "#8250df",
@@ -722,7 +723,7 @@ var It = [
722
723
  "#57606a",
723
724
  "#1a7f37"
724
725
  ];
725
- function Lt({ workspace: e, origin: t, className: n }) {
726
+ function Rt({ workspace: e, origin: t, className: n }) {
726
727
  let r = "size-3.5 shrink-0 text-muted-foreground", a = t.title.replace(/[*_`#>[\]]/g, "").replace(/\s+/g, " ").trim();
727
728
  switch (t.kind) {
728
729
  case "decision": return /* @__PURE__ */ q(i, {
@@ -732,7 +733,7 @@ function Lt({ workspace: e, origin: t, className: n }) {
732
733
  identifier: t.key
733
734
  },
734
735
  className: n,
735
- children: [/* @__PURE__ */ K(N, { className: r }), /* @__PURE__ */ K(_t, {
736
+ children: [/* @__PURE__ */ K(M, { className: r }), /* @__PURE__ */ K(_t, {
736
737
  content: a,
737
738
  overflowOnly: !0,
738
739
  children: /* @__PURE__ */ K("span", {
@@ -741,14 +742,11 @@ function Lt({ workspace: e, origin: t, className: n }) {
741
742
  })
742
743
  })]
743
744
  });
744
- case "area": return /* @__PURE__ */ q(i, {
745
- to: "/$workspace/areas/$area",
746
- params: {
747
- workspace: e,
748
- area: t.key
749
- },
745
+ case "area": return /* @__PURE__ */ q(Fe, {
746
+ workspace: e,
747
+ area: { key: t.key },
750
748
  className: n,
751
- children: [/* @__PURE__ */ K(E, { className: r }), /* @__PURE__ */ K("span", {
749
+ children: [/* @__PURE__ */ K(T, { className: r }), /* @__PURE__ */ K("span", {
752
750
  className: "truncate",
753
751
  children: a
754
752
  })]
@@ -760,15 +758,15 @@ function Lt({ workspace: e, origin: t, className: n }) {
760
758
  doc: t.key
761
759
  },
762
760
  className: n,
763
- children: [/* @__PURE__ */ K(M, { className: r }), /* @__PURE__ */ K("span", {
761
+ children: [/* @__PURE__ */ K(j, { className: r }), /* @__PURE__ */ K("span", {
764
762
  className: "truncate",
765
763
  children: a
766
764
  })]
767
765
  });
768
766
  }
769
767
  }
770
- function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
771
- let a = W("planning"), s = W("flow"), c = le(), u = me(), { data: d = [] } = Y(g(e)), f = d.find((e) => e.id === t.project?.id), { data: p = [] } = Y({
768
+ function zt({ workspace: e, issue: t, team: n, update: r, row: i }) {
769
+ let a = W("planning"), s = W("flow"), c = ne(), u = ce(), { data: d = [] } = Y(g(e)), f = d.find((e) => e.id === t.project?.id), { data: p = [] } = Y({
772
770
  ...l(e, n?.key ?? ""),
773
771
  enabled: !!n?.cyclesEnabled
774
772
  }), m = n?.estimateScale ?? "none", h = t.status.category === "completed" || t.status.category === "canceled", _ = (e) => e.name ? a("cycleNamed", {
@@ -778,7 +776,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
778
776
  return /* @__PURE__ */ q(G, { children: [
779
777
  n && n.flow.length > 0 && /* @__PURE__ */ K(Q, {
780
778
  label: s("stage"),
781
- children: /* @__PURE__ */ K(B, {
779
+ children: /* @__PURE__ */ K(V, {
782
780
  "aria-label": s("stage"),
783
781
  value: t.stage ?? "",
784
782
  onValueChange: (e) => r({ stage: e ?? "" }),
@@ -792,7 +790,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
792
790
  trigger: /* @__PURE__ */ q("button", {
793
791
  type: "button",
794
792
  className: i,
795
- children: [/* @__PURE__ */ K(A, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.stage ? /* @__PURE__ */ K("span", {
793
+ children: [/* @__PURE__ */ K(k, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.stage ? /* @__PURE__ */ K("span", {
796
794
  className: "truncate",
797
795
  children: s(`stages.${t.stage}`)
798
796
  }) : /* @__PURE__ */ K("span", {
@@ -804,7 +802,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
804
802
  }),
805
803
  /* @__PURE__ */ K(Q, {
806
804
  label: a("area"),
807
- children: /* @__PURE__ */ K(B, {
805
+ children: /* @__PURE__ */ K(V, {
808
806
  "aria-label": a("area"),
809
807
  value: t.area?.key ?? "",
810
808
  onValueChange: (e) => r({ area: e ?? "" }),
@@ -819,7 +817,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
819
817
  trigger: /* @__PURE__ */ q("button", {
820
818
  type: "button",
821
819
  className: i,
822
- children: [/* @__PURE__ */ K(E, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.area ? /* @__PURE__ */ K("span", {
820
+ children: [/* @__PURE__ */ K(T, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.area ? /* @__PURE__ */ K("span", {
823
821
  className: "truncate",
824
822
  children: t.area.title
825
823
  }) : /* @__PURE__ */ K("span", {
@@ -831,7 +829,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
831
829
  }),
832
830
  t.origin && /* @__PURE__ */ K(Q, {
833
831
  label: a("startedFrom"),
834
- children: /* @__PURE__ */ K(Lt, {
832
+ children: /* @__PURE__ */ K(Rt, {
835
833
  workspace: e,
836
834
  origin: t.origin,
837
835
  className: i
@@ -839,7 +837,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
839
837
  }),
840
838
  /* @__PURE__ */ K(Q, {
841
839
  label: a("project"),
842
- children: /* @__PURE__ */ K(B, {
840
+ children: /* @__PURE__ */ K(V, {
843
841
  "aria-label": a("project"),
844
842
  value: t.project?.id ?? "",
845
843
  onValueChange: (e) => r({ projectId: e ?? "" }),
@@ -849,12 +847,12 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
849
847
  }, ...d.map((e) => ({
850
848
  value: e.id,
851
849
  label: e.name,
852
- icon: /* @__PURE__ */ K(de, { status: e.status })
850
+ icon: /* @__PURE__ */ K(ae, { status: e.status })
853
851
  }))],
854
852
  trigger: /* @__PURE__ */ q("button", {
855
853
  type: "button",
856
854
  className: i,
857
- children: [/* @__PURE__ */ K(F, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.project ? /* @__PURE__ */ K("span", {
855
+ children: [/* @__PURE__ */ K(P, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.project ? /* @__PURE__ */ K("span", {
858
856
  className: "truncate",
859
857
  children: t.project.name
860
858
  }) : /* @__PURE__ */ K("span", {
@@ -866,7 +864,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
866
864
  }),
867
865
  t.project && /* @__PURE__ */ K(Q, {
868
866
  label: a("milestone"),
869
- children: /* @__PURE__ */ K(B, {
867
+ children: /* @__PURE__ */ K(V, {
870
868
  "aria-label": a("milestone"),
871
869
  value: t.milestone?.id ?? "",
872
870
  onValueChange: (e) => r({ milestoneId: e ?? "" }),
@@ -893,7 +891,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
893
891
  }),
894
892
  n?.cyclesEnabled && /* @__PURE__ */ K(Q, {
895
893
  label: a("cycleLabel"),
896
- children: /* @__PURE__ */ K(B, {
894
+ children: /* @__PURE__ */ K(V, {
897
895
  "aria-label": a("cycleLabel"),
898
896
  value: t.cycle?.id ?? "",
899
897
  onValueChange: (e) => r({ cycleId: e ?? "" }),
@@ -911,7 +909,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
911
909
  trigger: /* @__PURE__ */ q("button", {
912
910
  type: "button",
913
911
  className: i,
914
- children: [/* @__PURE__ */ K(A, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.cycle ? /* @__PURE__ */ K("span", {
912
+ children: [/* @__PURE__ */ K(k, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.cycle ? /* @__PURE__ */ K("span", {
915
913
  className: "truncate",
916
914
  children: _(t.cycle)
917
915
  }) : /* @__PURE__ */ K("span", {
@@ -923,21 +921,21 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
923
921
  }),
924
922
  (m !== "none" || !!t.estimate) && /* @__PURE__ */ K(Q, {
925
923
  label: a("estimate"),
926
- children: /* @__PURE__ */ K(B, {
924
+ children: /* @__PURE__ */ K(V, {
927
925
  "aria-label": a("estimate"),
928
926
  value: t.estimate ?? 0,
929
927
  onValueChange: (e) => r({ estimate: e ?? 0 }),
930
928
  items: [{
931
929
  value: 0,
932
930
  label: a("noEstimate")
933
- }, ...pe(m).map((e) => ({
931
+ }, ...se(m).map((e) => ({
934
932
  value: e,
935
933
  label: u(e, m)
936
934
  }))],
937
935
  trigger: /* @__PURE__ */ q("button", {
938
936
  type: "button",
939
937
  className: i,
940
- children: [/* @__PURE__ */ K(j, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.estimate ? u(t.estimate, m) : /* @__PURE__ */ K("span", {
938
+ children: [/* @__PURE__ */ K(A, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.estimate ? u(t.estimate, m) : /* @__PURE__ */ K("span", {
941
939
  className: "text-muted-foreground",
942
940
  children: a("noEstimate")
943
941
  })]
@@ -956,17 +954,17 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
956
954
  trigger: /* @__PURE__ */ K("button", {
957
955
  type: "button",
958
956
  className: i,
959
- children: t.dueDate ? /* @__PURE__ */ K(ue, {
957
+ children: t.dueDate ? /* @__PURE__ */ K(ie, {
960
958
  date: t.dueDate,
961
959
  closed: h
962
- }) : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(O, { className: "size-3.5 shrink-0 text-muted-foreground" }), /* @__PURE__ */ K("span", {
960
+ }) : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(D, { className: "size-3.5 shrink-0 text-muted-foreground" }), /* @__PURE__ */ K("span", {
963
961
  className: "text-muted-foreground",
964
962
  children: a("noDueDate")
965
963
  })] })
966
964
  })
967
965
  }), t.dueDate && /* @__PURE__ */ K(pt, {
968
966
  variant: "ghost",
969
- icon: /* @__PURE__ */ K(k, { className: "size-3.5" }),
967
+ icon: /* @__PURE__ */ K(O, { className: "size-3.5" }),
970
968
  label: a("clearDueDate"),
971
969
  onClick: () => r({ dueDate: "" })
972
970
  })]
@@ -976,7 +974,7 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
976
974
  label: a("sla.label"),
977
975
  children: /* @__PURE__ */ K("span", {
978
976
  className: "flex h-7 items-center px-2",
979
- children: /* @__PURE__ */ K(fe, {
977
+ children: /* @__PURE__ */ K(oe, {
980
978
  issue: t,
981
979
  team: n
982
980
  })
@@ -984,11 +982,11 @@ function Rt({ workspace: e, issue: t, team: n, update: r, row: i }) {
984
982
  })
985
983
  ] });
986
984
  }
987
- function zt({ workspace: e, issue: t, update: n, row: r }) {
988
- let i = W("issueTypes"), a = Dt(), { data: o } = Y(C(e)), { data: s } = Y(x(e)), { confirm: c, dialog: l } = b(), [u, d] = U(!1), f = T(o, t.teamId);
985
+ function Bt({ workspace: e, issue: t, update: n, row: r }) {
986
+ let i = W("issueTypes"), a = Ot(), { data: o } = Y(Ce(e)), { data: s } = Y(be(e)), { confirm: c, dialog: l } = Se(), [u, d] = U(!1), f = Te(o, t.teamId);
989
987
  if (f.length === 0 && !t.type) return null;
990
988
  let p = (e) => {
991
- let r = f.find((t) => t.id === e), o = (s ?? []).filter((e) => S(t.fields[e.id]) && !w(r, e.id));
989
+ let r = f.find((t) => t.id === e), o = (s ?? []).filter((e) => xe(t.fields[e.id]) && !we(r, e.id));
992
990
  if (!r || o.length === 0) return n({ typeId: e });
993
991
  c({
994
992
  title: i("hiddenTitle"),
@@ -1003,7 +1001,7 @@ function zt({ workspace: e, issue: t, update: n, row: r }) {
1003
1001
  };
1004
1002
  return /* @__PURE__ */ q(Q, {
1005
1003
  label: i("type"),
1006
- children: [/* @__PURE__ */ K(z, {
1004
+ children: [/* @__PURE__ */ K(B, {
1007
1005
  "aria-label": i("type"),
1008
1006
  open: u,
1009
1007
  onOpenChange: d,
@@ -1013,7 +1011,7 @@ function zt({ workspace: e, issue: t, update: n, row: r }) {
1013
1011
  }, ...f.map((e) => ({
1014
1012
  value: e.id,
1015
1013
  label: e.name,
1016
- icon: /* @__PURE__ */ K(ne, { type: e })
1014
+ icon: /* @__PURE__ */ K(Ee, { type: e })
1017
1015
  }))],
1018
1016
  value: t.type?.id ?? "",
1019
1017
  onValueChange: (e) => e !== null && e !== (t.type?.id ?? "") && p(e),
@@ -1021,7 +1019,7 @@ function zt({ workspace: e, issue: t, update: n, row: r }) {
1021
1019
  trigger: /* @__PURE__ */ K("button", {
1022
1020
  type: "button",
1023
1021
  className: r,
1024
- children: t.type ? /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(ne, { type: t.type }), t.type.name] }) : /* @__PURE__ */ K("span", {
1022
+ children: t.type ? /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(Ee, { type: t.type }), t.type.name] }) : /* @__PURE__ */ K("span", {
1025
1023
  className: "text-muted-foreground",
1026
1024
  children: i("noType")
1027
1025
  })
@@ -1039,7 +1037,7 @@ function Q({ label: e, shortcut: t, children: n }) {
1039
1037
  })]
1040
1038
  }), n] });
1041
1039
  }
1042
- function Bt({ workspace: e, identifier: t }) {
1040
+ function Vt({ workspace: e, identifier: t }) {
1043
1041
  let n = W("issue.activity"), { data: r } = Z(u(e, t)), [i, a] = U(!1), o = Tt(() => {
1044
1042
  let e = [];
1045
1043
  for (let t of r) {
@@ -1073,14 +1071,14 @@ function Bt({ workspace: e, identifier: t }) {
1073
1071
  ]
1074
1072
  });
1075
1073
  }
1076
- function Vt({ workspace: e, identifier: t, others: n }) {
1074
+ function Ht({ workspace: e, identifier: t, others: n }) {
1077
1075
  let r = W("issue.comments"), { data: i } = Z(c(e, t)), { data: a = [] } = Y(f(e, t)), o = Tt(() => {
1078
1076
  let e = i.filter((e) => !e.parentId);
1079
- return e.sort((e, t) => Number(Ht(t)) - Number(Ht(e))), e.map((e) => ({
1077
+ return e.sort((e, t) => Number(Ut(t)) - Number(Ut(e))), e.map((e) => ({
1080
1078
  root: e,
1081
1079
  replies: i.filter((t) => t.parentId === e.id)
1082
1080
  }));
1083
- }, [i]), [s, l] = U(null), u = i.filter((e) => !e.deletedAt && !Ht(e)).length;
1081
+ }, [i]), [s, l] = U(null), u = i.filter((e) => !e.deletedAt && !Ut(e)).length;
1084
1082
  return /* @__PURE__ */ q("section", {
1085
1083
  className: "mt-12 border-t border-border pt-6",
1086
1084
  "aria-label": r("title"),
@@ -1099,7 +1097,7 @@ function Vt({ workspace: e, identifier: t, others: n }) {
1099
1097
  /* @__PURE__ */ K("div", {
1100
1098
  className: "mt-4 space-y-3",
1101
1099
  children: o.map(({ root: n, replies: i }) => {
1102
- let o = Ht(n) ? n.sharedWith : void 0, c = o ? he(o).source : void 0;
1100
+ let o = Ut(n) ? n.sharedWith : void 0, c = o ? L(o).source : void 0;
1103
1101
  return /* @__PURE__ */ q(lt, {
1104
1102
  size: "fill",
1105
1103
  padding: "none",
@@ -1112,7 +1110,7 @@ function Vt({ workspace: e, identifier: t, others: n }) {
1112
1110
  o && c ? /* @__PURE__ */ K(Qe, {
1113
1111
  source: c,
1114
1112
  link: a.find((e) => e.connector === o)
1115
- }) : /* @__PURE__ */ K(Wt, {
1113
+ }) : /* @__PURE__ */ K(Gt, {
1116
1114
  workspace: e,
1117
1115
  identifier: t,
1118
1116
  comment: n,
@@ -1123,7 +1121,7 @@ function Vt({ workspace: e, identifier: t, others: n }) {
1123
1121
  children: i.map((r) => /* @__PURE__ */ K("li", {
1124
1122
  id: `comment-${r.id}`,
1125
1123
  className: "border-b border-border/50 last:border-b-0",
1126
- children: /* @__PURE__ */ K(Wt, {
1124
+ children: /* @__PURE__ */ K(Gt, {
1127
1125
  workspace: e,
1128
1126
  identifier: t,
1129
1127
  comment: r,
@@ -1133,7 +1131,7 @@ function Vt({ workspace: e, identifier: t, others: n }) {
1133
1131
  }),
1134
1132
  /* @__PURE__ */ K("div", {
1135
1133
  className: "border-t border-border/70 px-3 py-2",
1136
- children: s === n.id ? /* @__PURE__ */ K(Kt, {
1134
+ children: s === n.id ? /* @__PURE__ */ K(qt, {
1137
1135
  workspace: e,
1138
1136
  identifier: t,
1139
1137
  parentId: n.id,
@@ -1156,7 +1154,7 @@ function Vt({ workspace: e, identifier: t, others: n }) {
1156
1154
  padding: "sm",
1157
1155
  focusWithin: !0,
1158
1156
  className: "mt-4",
1159
- children: /* @__PURE__ */ K(Kt, {
1157
+ children: /* @__PURE__ */ K(qt, {
1160
1158
  workspace: e,
1161
1159
  identifier: t
1162
1160
  })
@@ -1172,60 +1170,60 @@ function Vt({ workspace: e, identifier: t, others: n }) {
1172
1170
  ]
1173
1171
  });
1174
1172
  }
1175
- var Ht = (e) => !!e.sharedWith && !e.parentId;
1176
- function Ut({ comment: e }) {
1173
+ var Ut = (e) => !!e.sharedWith && !e.parentId;
1174
+ function Wt({ comment: e }) {
1177
1175
  let t = W("issue.comments");
1178
1176
  return e.author.kind === "connector" ? /* @__PURE__ */ K("span", {
1179
1177
  className: "rounded border border-border px-1.5 py-px text-[10px] text-muted-foreground",
1180
- children: t("via", { source: he(e.author.handle).source })
1178
+ children: t("via", { source: L(e.author.handle).source })
1181
1179
  }) : null;
1182
1180
  }
1183
- function Wt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1184
- let o = W("issue.comments"), s = W("common"), { actorName: c, avatarOf: l } = ge(n), { data: u } = Z(h), { data: d = [] } = Y(_(n, r)), f = Ee(n, "comment", { team: r.slice(0, r.lastIndexOf("-")) }), p = X(), m = V(), [g, v] = U(!1), [y, b] = U(i.body), [x, S] = U(!1), C = H(null), w = Ne(n, r), T = i.author.kind === "user" && i.author.handle === u?.user.username, E = { path: {
1181
+ function Gt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1182
+ let o = W("issue.comments"), s = W("common"), { actorName: c, avatarOf: l } = te(n), { data: u } = Z(h), { data: d = [] } = Y(_(n, r)), f = ve(n, "comment", { team: r.slice(0, r.lastIndexOf("-")) }), p = X(), m = H(), [g, v] = U(!1), [y, x] = U(i.body), [C, w] = U(!1), T = Et(null), E = Ne(n, r), D = i.author.kind === "user" && i.author.handle === u?.user.username, O = { path: {
1185
1183
  workspace: n,
1186
1184
  identifier: r,
1187
1185
  commentId: i.id
1188
- } }, D = () => se(p, n, r), O = J({
1186
+ } }, k = () => b(p, n, r), A = J({
1189
1187
  mutationFn: async () => t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}/comments/{commentId}", {
1190
- params: E,
1188
+ params: O,
1191
1189
  body: { body: y }
1192
1190
  })),
1193
1191
  onSuccess: () => {
1194
- v(!1), D();
1192
+ v(!1), k();
1195
1193
  }
1196
- }), k = J({
1197
- mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/issues/{identifier}/comments/{commentId}", { params: E })),
1198
- onSuccess: D
1194
+ }), j = J({
1195
+ mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/issues/{identifier}/comments/{commentId}", { params: O })),
1196
+ onSuccess: k
1199
1197
  });
1200
1198
  if (i.deletedAt) return /* @__PURE__ */ K("p", {
1201
1199
  className: "px-3 py-2.5 text-xs text-muted-foreground italic",
1202
1200
  children: o("deleted")
1203
1201
  });
1204
- let A = `${Se(n, r)}#comment-${i.id}`, j = [
1202
+ let M = `${me(n, r)}#comment-${i.id}`, N = [
1205
1203
  {
1206
1204
  label: o("reply"),
1207
1205
  onClick: a
1208
1206
  },
1209
- ie(s("copyLink"), A),
1210
- ie(o("copyText"), i.body),
1211
- ...T ? [
1207
+ S(s("copyLink"), M),
1208
+ S(o("copyText"), i.body),
1209
+ ...D ? [
1212
1210
  yt,
1213
1211
  {
1214
1212
  label: o("edit"),
1215
1213
  onClick: () => {
1216
- b(i.body), v(!0);
1214
+ x(i.body), v(!0);
1217
1215
  }
1218
1216
  },
1219
1217
  {
1220
1218
  label: s("delete"),
1221
1219
  destructive: !0,
1222
- onClick: () => S(!0)
1220
+ onClick: () => w(!0)
1223
1221
  }
1224
1222
  ] : []
1225
1223
  ];
1226
1224
  return /* @__PURE__ */ q("div", {
1227
1225
  className: "group px-3 py-2.5",
1228
- onContextMenu: (e) => !g && m(e, j),
1226
+ onContextMenu: (e) => !g && m(e, N),
1229
1227
  children: [/* @__PURE__ */ q("div", {
1230
1228
  className: "flex items-center gap-2 text-xs",
1231
1229
  children: [
@@ -1235,7 +1233,7 @@ function Wt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1235
1233
  handle: i.author.handle,
1236
1234
  className: "flex items-center gap-2",
1237
1235
  children: [/* @__PURE__ */ K(st, {
1238
- ...Fe(i.author.kind),
1236
+ ...De(i.author.kind),
1239
1237
  name: c(i.author),
1240
1238
  src: l(i.author.kind, i.author.handle),
1241
1239
  size: "xs",
@@ -1245,7 +1243,7 @@ function Wt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1245
1243
  children: c(i.author)
1246
1244
  })]
1247
1245
  }),
1248
- /* @__PURE__ */ K(Ut, { comment: i }),
1246
+ /* @__PURE__ */ K(Wt, { comment: i }),
1249
1247
  /* @__PURE__ */ q("span", {
1250
1248
  className: "text-muted-foreground",
1251
1249
  children: [/* @__PURE__ */ K(ht, {
@@ -1253,24 +1251,24 @@ function Wt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1253
1251
  exact: "medium"
1254
1252
  }), i.updatedAt !== i.createdAt && /* @__PURE__ */ q(G, { children: [" ", o("edited")] })]
1255
1253
  }),
1256
- !x && !g && /* @__PURE__ */ K(kt, {
1257
- items: j,
1254
+ !C && !g && /* @__PURE__ */ K(kt, {
1255
+ items: N,
1258
1256
  className: "ml-auto"
1259
1257
  }),
1260
- x && /* @__PURE__ */ q("span", {
1258
+ C && /* @__PURE__ */ q("span", {
1261
1259
  className: "ml-auto flex gap-2 text-muted-foreground",
1262
1260
  children: [
1263
1261
  /* @__PURE__ */ K("span", { children: o("confirmDelete") }),
1264
1262
  /* @__PURE__ */ K("button", {
1265
1263
  type: "button",
1266
1264
  className: "text-danger hover:underline",
1267
- onClick: () => k.mutate(),
1265
+ onClick: () => j.mutate(),
1268
1266
  children: s("delete")
1269
1267
  }),
1270
1268
  /* @__PURE__ */ K("button", {
1271
1269
  type: "button",
1272
1270
  className: "hover:underline",
1273
- onClick: () => S(!1),
1271
+ onClick: () => w(!1),
1274
1272
  children: o("keep")
1275
1273
  })
1276
1274
  ]
@@ -1279,40 +1277,40 @@ function Wt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1279
1277
  }), /* @__PURE__ */ K("div", {
1280
1278
  className: "mt-1",
1281
1279
  children: g ? /* @__PURE__ */ q(G, { children: [
1282
- /* @__PURE__ */ K(L, {
1280
+ /* @__PURE__ */ K(R, {
1283
1281
  value: y,
1284
- onChange: b,
1285
- onSubmit: () => O.mutate(),
1282
+ onChange: x,
1283
+ onSubmit: () => A.mutate(),
1286
1284
  autofocus: !0,
1287
1285
  label: o("editLabel"),
1288
1286
  onEditor: (e) => {
1289
- C.current = e;
1287
+ T.current = e;
1290
1288
  },
1291
- onFiles: (e, t) => w.upload(C.current, e, t)
1289
+ onFiles: (e, t) => E.upload(T.current, e, t)
1292
1290
  }),
1293
1291
  /* @__PURE__ */ K(Me, {
1294
- pending: w.pending,
1295
- error: w.error
1292
+ pending: E.pending,
1293
+ error: E.error
1296
1294
  }),
1297
1295
  /* @__PURE__ */ q("div", {
1298
1296
  className: "mt-2 flex justify-end gap-2",
1299
- children: [/* @__PURE__ */ K(R, {
1297
+ children: [/* @__PURE__ */ K(z, {
1300
1298
  type: "button",
1301
1299
  variant: "ghost",
1302
1300
  size: "sm",
1303
1301
  onClick: () => v(!1),
1304
1302
  children: s("cancel")
1305
- }), /* @__PURE__ */ K(R, {
1303
+ }), /* @__PURE__ */ K(z, {
1306
1304
  type: "button",
1307
1305
  variant: "primary",
1308
1306
  size: "sm",
1309
- onClick: () => O.mutate(),
1310
- disabled: !y.trim() || w.pending > 0,
1307
+ onClick: () => A.mutate(),
1308
+ disabled: !y.trim() || E.pending > 0,
1311
1309
  children: s("save")
1312
1310
  })]
1313
1311
  })
1314
1312
  ] }) : /* @__PURE__ */ q(G, { children: [
1315
- /* @__PURE__ */ K(L, {
1313
+ /* @__PURE__ */ K(R, {
1316
1314
  value: i.body,
1317
1315
  editable: !1
1318
1316
  }),
@@ -1320,7 +1318,7 @@ function Wt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1320
1318
  workspace: n,
1321
1319
  widgets: i.widgets
1322
1320
  }),
1323
- /* @__PURE__ */ K(Gt, {
1321
+ /* @__PURE__ */ K(Kt, {
1324
1322
  workspace: n,
1325
1323
  identifier: r,
1326
1324
  comment: i
@@ -1337,19 +1335,19 @@ function Wt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1337
1335
  })]
1338
1336
  });
1339
1337
  }
1340
- function Gt({ workspace: e, identifier: t, comment: n }) {
1341
- let { data: r = [] } = Y(s(e, t)), { actorName: i } = ge(e), a = r.filter((e) => e.page && e.commentId === n.id);
1338
+ function Kt({ workspace: e, identifier: t, comment: n }) {
1339
+ let { data: r = [] } = Y(s(e, t)), { actorName: i } = te(e), a = r.filter((e) => e.page && e.commentId === n.id);
1342
1340
  return a.length === 0 ? null : /* @__PURE__ */ K("div", {
1343
1341
  className: "mt-2 space-y-2",
1344
- children: a.map((e) => /* @__PURE__ */ K(Be, {
1342
+ children: a.map((e) => /* @__PURE__ */ K(re, {
1345
1343
  attachmentId: e.id,
1346
1344
  name: e.name,
1347
1345
  agent: i(n.author)
1348
1346
  }, e.id))
1349
1347
  });
1350
1348
  }
1351
- function Kt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus: o = !1, onDone: s }) {
1352
- let c = W("issue.comments"), l = Et(), u = W("common"), d = Ct($), f = X(), [p, m] = U(""), [h, g] = U(0), _ = H(null), v = Ne(n, r), y = J({
1349
+ function qt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus: o = !1, onDone: s }) {
1350
+ let c = W("issue.comments"), l = Dt(), u = W("common"), d = Ct($), f = X(), [p, m] = U(""), [h, g] = U(0), _ = Et(null), v = Ne(n, r), y = J({
1353
1351
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/comments", {
1354
1352
  params: { path: {
1355
1353
  workspace: n,
@@ -1361,13 +1359,13 @@ function Kt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
1361
1359
  }
1362
1360
  })),
1363
1361
  onSuccess: () => {
1364
- m(""), g((e) => e + 1), se(f, n, r), s?.();
1362
+ m(""), g((e) => e + 1), b(f, n, r), s?.();
1365
1363
  }
1366
- }), b = () => p.trim() && !y.isPending && v.pending === 0 && y.mutate();
1367
- return /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(L, {
1364
+ }), x = () => p.trim() && !y.isPending && v.pending === 0 && y.mutate();
1365
+ return /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(R, {
1368
1366
  value: "",
1369
1367
  onChange: m,
1370
- onSubmit: b,
1368
+ onSubmit: x,
1371
1369
  onFocus: () => d("comment"),
1372
1370
  onBlur: () => d(void 0),
1373
1371
  autofocus: o,
@@ -1393,18 +1391,18 @@ function Kt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
1393
1391
  className: "text-xs",
1394
1392
  children: l(y.error)
1395
1393
  }),
1396
- s && /* @__PURE__ */ K(R, {
1394
+ s && /* @__PURE__ */ K(z, {
1397
1395
  type: "button",
1398
1396
  variant: "ghost",
1399
1397
  size: "sm",
1400
1398
  onClick: s,
1401
1399
  children: u("cancel")
1402
1400
  }),
1403
- /* @__PURE__ */ K(R, {
1401
+ /* @__PURE__ */ K(z, {
1404
1402
  type: "button",
1405
1403
  variant: "primary",
1406
1404
  size: "sm",
1407
- onClick: b,
1405
+ onClick: x,
1408
1406
  disabled: !p.trim() || v.pending > 0,
1409
1407
  loading: y.isPending,
1410
1408
  children: a ? c("replyPublicButton", { source: a }) : c(i ? "reply" : "submit")
@@ -1413,4 +1411,4 @@ function Kt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
1413
1411
  })] });
1414
1412
  }
1415
1413
  var $ = xt(() => {});
1416
- export { At as component };
1414
+ export { jt as component };