@commentkit/comment-kit 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +109 -13
  3. package/SECURITY.md +2 -2
  4. package/dist/node/cli/doctor.js +84 -20
  5. package/dist/node/cli/init.js +349 -35
  6. package/dist/node/cli/main.js +35 -17
  7. package/dist/node/cli/mcp.js +187 -6
  8. package/dist/node/shared/dashboard-places.js +33 -0
  9. package/dist/npm/chunks/{AgentSend-DxRJIYiz.js → AgentSend-DOy3jhyF.js} +16 -16
  10. package/dist/npm/chunks/{Checklist-CnlfeSbc.js → Checklist-CW_SwMpS.js} +70 -70
  11. package/dist/npm/chunks/{Composer-B1bBVszY.js → Composer-Bveq5QrK.js} +276 -274
  12. package/dist/npm/chunks/{Guest-vvNPz8h-.js → Guest-7hcN765o.js} +58 -55
  13. package/dist/npm/chunks/{MarkupEditor-VCOXh9d2.js → MarkupEditor-6bJGpWGO.js} +46 -39
  14. package/dist/npm/chunks/Panel-ChPUB68C.js +1211 -0
  15. package/dist/npm/chunks/{Settings-BGoZS2iV.js → Settings-CB5eEKnf.js} +77 -77
  16. package/dist/npm/chunks/{Shortcuts-B2OMvczr.js → Shortcuts-eAyjJ89P.js} +4 -4
  17. package/dist/npm/chunks/{StyleEditor-CJ_d8Huf.js → StyleEditor-CZTdAA5c.js} +10 -10
  18. package/dist/npm/chunks/{StylePanel-yQzHHlY7.js → StylePanel-B4pHQUL9.js} +61 -61
  19. package/dist/npm/chunks/{TaskFields-fmy6_HtK.js → TaskFields-C8BX0Sgg.js} +55 -55
  20. package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +1160 -0
  21. package/dist/npm/chunks/Viewer-DY6zb90M.js +114 -0
  22. package/dist/npm/chunks/{agent-C1OQzBAm.js → agent-MTQHr9ei.js} +1 -1
  23. package/dist/npm/chunks/{ar-CAJ3XT8e.js → ar-L5cQ-NPe.js} +2 -0
  24. package/dist/npm/chunks/{card-bits-CAnzrqx3.js → card-bits-CTdrkYn8.js} +16 -16
  25. package/dist/npm/chunks/{client-kNAo2TTG.js → client-7eVxvg5j.js} +7 -7
  26. package/dist/npm/chunks/{confetti-CkBdSu19.js → confetti-BIs5s14P.js} +1 -1
  27. package/dist/npm/chunks/{context-B8UAzve0.js → context-Cf6khm7A.js} +1 -1
  28. package/dist/npm/chunks/{de-Dl18G48t.js → de-D0C-v6tP.js} +2 -0
  29. package/dist/npm/chunks/{dialog-GO04oC3D.js → dialog-DvdIkCW0.js} +1 -1
  30. package/dist/npm/chunks/{dpop-U48QIQd7.js → dpop-0A76OPa9.js} +1 -1
  31. package/dist/npm/chunks/{es-Dxk79lS9.js → es-Bw4Dj9tN.js} +2 -0
  32. package/dist/npm/chunks/{extension-CKFpPWmi.js → extension-DFVOvciD.js} +1 -1
  33. package/dist/npm/chunks/{extension-E81hWyiT.js → extension-SmoH5AA4.js} +2 -2
  34. package/dist/npm/chunks/{files-DyD5BZgp.js → files-4lV9YQIX.js} +2 -2
  35. package/dist/npm/chunks/{fr-8BebGKYD.js → fr-TkuQaIAa.js} +2 -0
  36. package/dist/npm/chunks/{hi-BIN6Yy_p.js → hi-DXSH2U8d.js} +2 -0
  37. package/dist/npm/chunks/{i18n-DOBt8e9U.js → i18n-aVSu9TcJ.js} +56 -47
  38. package/dist/npm/chunks/{identify-CN-3xzqL.js → identify-BGYh2dVo.js} +4 -4
  39. package/dist/npm/chunks/{it-Cr6EwpPQ.js → it-CiWA_bch.js} +2 -0
  40. package/dist/npm/chunks/{ja-Iy3s5aur.js → ja-C-QmR3yz.js} +2 -0
  41. package/dist/npm/chunks/{late-words-B2bmZceJ.js → late-words-80_VWt8S.js} +3 -1
  42. package/dist/npm/chunks/{live-CelVeZfP.js → live-BExWHzQ7.js} +1 -1
  43. package/dist/npm/chunks/{nl-B84WHqqe.js → nl-CEmZRqjX.js} +2 -0
  44. package/dist/npm/chunks/{page-key-DepmJzC1.js → page-key-HSY3Lze5.js} +1 -1
  45. package/dist/npm/chunks/{pick-yTyqtxN0.js → pick-B3sR7jtS.js} +1 -1
  46. package/dist/npm/chunks/{pkce-ChKGSW_4.js → pkce-CfZhiNBi.js} +1 -1
  47. package/dist/npm/chunks/{pt-BR-DOkdlfoe.js → pt-BR-b-a8sxO8.js} +2 -0
  48. package/dist/npm/chunks/{report-CrIqQZDI.js → report-DaVuoRYS.js} +1 -1
  49. package/dist/npm/chunks/show-BoN8AC-F.js +97 -0
  50. package/dist/npm/chunks/{signin-Dd1rb2BP.js → signin-BOWr_WCo.js} +3 -3
  51. package/dist/npm/chunks/{source-pXVve2Cx.js → source-mk3rGBBQ.js} +1 -1
  52. package/dist/npm/chunks/{src-BTMy4Gyc.js → src-C8rZFyL_.js} +77 -70
  53. package/dist/npm/chunks/start-CV4j78_q.js +1894 -0
  54. package/dist/npm/chunks/{states-sfTbjZz8.js → states-b9Bv3Ci7.js} +1 -1
  55. package/dist/npm/chunks/{upload-MgPYqPyE.js → upload-B2mkgMeJ.js} +1 -1
  56. package/dist/npm/chunks/uploads-8AxyRq7g.js +1147 -0
  57. package/dist/npm/chunks/{wrap-Bl0gbnFa.js → wrap-DW6EFbVQ.js} +1 -1
  58. package/dist/npm/chunks/{zh-CN-Z5fQCb7G.js → zh-CN-JTscW8u8.js} +2 -0
  59. package/dist/npm/element.js +1 -1
  60. package/dist/npm/headless.js +2 -2
  61. package/dist/npm/index.js +2 -2
  62. package/dist/npm/react.js +1 -1
  63. package/dist/npm/svelte.js +1 -1
  64. package/dist/npm/types/core/types.d.ts +2 -2
  65. package/dist/npm/vue.js +1 -1
  66. package/package.json +3 -1
  67. package/dist/npm/chunks/Panel-F37vIL1K.js +0 -1206
  68. package/dist/npm/chunks/ThreadCard-D51slKST.js +0 -1113
  69. package/dist/npm/chunks/Viewer-BOBadqmC.js +0 -111
  70. package/dist/npm/chunks/show-BgVC8gWY.js +0 -97
  71. package/dist/npm/chunks/start-DtVlpt7p.js +0 -1878
  72. package/dist/npm/chunks/uploads-D49mywwz.js +0 -1146
@@ -1,8 +1,8 @@
1
- import { c as e, d as t, g as n, n as r, p as i, u as a } from "./i18n-DOBt8e9U.js";
2
- import { r as o } from "./context-B8UAzve0.js";
3
- import { s, v as c } from "./start-DtVlpt7p.js";
1
+ import { _ as e, c as t, d as n, m as r, n as i, u as a } from "./i18n-aVSu9TcJ.js";
2
+ import { r as o } from "./context-Cf6khm7A.js";
3
+ import { s, v as c } from "./start-CV4j78_q.js";
4
4
  // src/ui/TaskFields.tsx
5
- s(".ck-task .ck-chip{cursor:default}.ck-task button.ck-chip{cursor:pointer}.ck-root .ck-date-input:focus-visible{outline:none}.ck-task{flex-wrap:wrap;gap:8px;padding:8px 16px 0;display:flex}.ck-task .ck-chip>bdi{text-overflow:ellipsis;min-width:0;overflow:hidden}.ck-card>.ck-task[data-read]{overscroll-behavior:contain;max-height:72px;overflow-y:auto}.ck-date{position:relative}.ck-date[data-set]{color:var(--ck-text)}.ck-date-input{opacity:0;cursor:pointer;border:0;width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;bottom:0;left:0;right:0}.ck-date:focus-within{outline:2px solid var(--ck-accent-text);outline-offset:1px}.ck-task-pick{min-width:0;max-width:100%;position:relative}.ck-task-menu{z-index:2;top:calc(100% + 4px);overscroll-behavior:contain;border-radius:var(--ck-radius-md);background:var(--ck-bg);min-width:180px;max-width:min(280px,100vw - 48px);max-height:220px;box-shadow:var(--ck-shadow-sm);animation:ck-pop var(--ck-fast) var(--ck-ease);border:1px solid #0000;padding:4px;position:absolute;overflow:auto}.ck-task-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-task-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-task-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-task-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-task-menu .ck-check{border-radius:var(--ck-radius-xs);min-height:32px;color:var(--ck-text);transition:background-color var(--ck-fast);align-items:center;margin:0;padding:4px 8px}.ck-task-menu .ck-check input{margin:0}.ck-task-menu .ck-check bdi{overflow-wrap:anywhere;min-width:0}.ck-task-menu .ck-check:has(input:focus-visible){background:var(--ck-bg-hover)}.ck-swatch{border-radius:50%;flex:none;width:8px;height:8px}.ck-task-draft{border:0;margin-top:8px;padding:0}@media (hover:hover){.ck-task-menu .ck-check:hover{background:var(--ck-bg-hover)}}@media (pointer:coarse){.ck-task-menu .ck-check{min-height:44px}.ck-date-input{font-size:var(--ck-fs-lg)}}");
5
+ s(".ck-task .ck-chip{cursor:default}.ck-task button.ck-chip{cursor:pointer}.ck-root .ck-date-input:focus-visible{outline:none}.ck-task{flex-wrap:wrap;gap:8px;padding:8px 16px 0;display:flex}.ck-task .ck-chip>bdi{text-overflow:ellipsis;min-width:0;overflow:hidden}.ck-card>.ck-task[data-read]{overscroll-behavior:contain;max-height:72px;overflow-y:auto}.ck-date{position:relative}.ck-date[data-set]{color:var(--ck-text)}.ck-date-input{opacity:0;cursor:pointer;border:0;width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;bottom:0;left:0;right:0}.ck-date:focus-within{outline:2px solid var(--ck-ring);outline-offset:1px}.ck-task-pick{min-width:0;max-width:100%;position:relative}.ck-task-menu{z-index:2;top:calc(100% + 4px);overscroll-behavior:contain;border-radius:var(--ck-radius-md);background:var(--ck-bg);min-width:180px;max-width:min(280px,100vw - 48px);max-height:220px;box-shadow:var(--ck-shadow-sm);animation:ck-pop var(--ck-fast) var(--ck-ease);border:1px solid #0000;padding:4px;position:absolute;overflow:auto}.ck-task-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-task-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-task-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-task-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-task-menu .ck-check{border-radius:var(--ck-radius-sm);min-height:32px;color:var(--ck-text);transition:background-color var(--ck-fast);align-items:center;margin:0;padding:4px 8px}.ck-task-menu .ck-check input{margin:0}.ck-task-menu .ck-check bdi{overflow-wrap:anywhere;min-width:0}.ck-task-menu .ck-check:has(input:focus-visible){background:var(--ck-bg-hover)}.ck-swatch{border-radius:50%;flex:none;width:8px;height:8px}.ck-task-draft{border:0;margin-top:8px;padding:0}@media (hover:hover){.ck-task-menu .ck-check:hover{background:var(--ck-bg-hover)}}@media (pointer:coarse){.ck-task-menu .ck-check{min-height:44px}.ck-date-input{font-size:var(--ck-fs-lg)}}");
6
6
  var l = [
7
7
  "none",
8
8
  "low",
@@ -21,9 +21,9 @@ function f(e) {
21
21
  return /^\d{4}-\d{2}-\d{2}/.exec(e ?? "")?.[0] ?? "";
22
22
  }
23
23
  function p(e) {
24
- let [t, n, i] = e.split("-").map(Number);
24
+ let [t, n, r] = e.split("-").map(Number);
25
25
  try {
26
- return new Date(t, n - 1, i).toLocaleDateString(r(), {
26
+ return new Date(t, n - 1, r).toLocaleDateString(i(), {
27
27
  day: "numeric",
28
28
  month: "short",
29
29
  year: "numeric"
@@ -34,25 +34,25 @@ function p(e) {
34
34
  }
35
35
  var m = (e) => /^#[0-9a-f]{6}$/i.test(e) ? e : "transparent";
36
36
  function h({ thread: r, editable: i, onChange: s }, c) {
37
- let { client: u, reportError: h } = o(c), [_, b] = n(null), [x, S] = n(!1);
38
- t(() => {
37
+ let { client: u, reportError: h } = o(c), [_, b] = e(null), [x, S] = e(!1);
38
+ n(() => {
39
39
  i && d(u).then(b);
40
40
  }, [i]);
41
41
  let C = r.labels ?? [], w = f(r.due_at), T = r.assignees ?? (r.assignee ? [r.assignee] : []);
42
42
  if (!i) {
43
- let t = [
43
+ let e = [
44
44
  r.priority === "none" ? null : /* @__PURE__ */ a("span", {
45
45
  class: "ck-chip",
46
46
  children: [
47
- e("priority"),
47
+ t("priority"),
48
48
  ": ",
49
- e(`priority_${r.priority}`)
49
+ t(`priority_${r.priority}`)
50
50
  ]
51
51
  }),
52
52
  T.length ? /* @__PURE__ */ a("span", {
53
53
  class: "ck-chip",
54
54
  children: [
55
- e("assigneeFilter"),
55
+ t("assigneeFilter"),
56
56
  ": ",
57
57
  /* @__PURE__ */ a("bdi", {
58
58
  title: T.map((e) => e.name).join(", "),
@@ -62,7 +62,7 @@ function h({ thread: r, editable: i, onChange: s }, c) {
62
62
  }) : null,
63
63
  w ? /* @__PURE__ */ a("span", {
64
64
  class: "ck-chip",
65
- children: e("dueOn", { date: p(w) })
65
+ children: t("dueOn", { date: p(w) })
66
66
  }) : null,
67
67
  ...C.map((e) => /* @__PURE__ */ a("span", {
68
68
  class: "ck-chip",
@@ -75,12 +75,12 @@ function h({ thread: r, editable: i, onChange: s }, c) {
75
75
  })]
76
76
  }))
77
77
  ].filter(Boolean);
78
- return t.length ? /* @__PURE__ */ a("div", {
78
+ return e.length ? /* @__PURE__ */ a("div", {
79
79
  class: "ck-task",
80
80
  "data-read": !0,
81
81
  role: "group",
82
- "aria-label": e("taskDetails"),
83
- children: t
82
+ "aria-label": t("taskDetails"),
83
+ children: e
84
84
  }) : null;
85
85
  }
86
86
  let E = (e, t = {}) => {
@@ -101,27 +101,27 @@ function h({ thread: r, editable: i, onChange: s }, c) {
101
101
  }, j = new Set(C.map((e) => e.id)), M = (e, t) => {
102
102
  let n = [...j].filter((t) => t !== e).concat(t ? [e] : []), r = [...C, ..._?.labels ?? []];
103
103
  E({ label_ids: n }, { labels: n.map((e) => r.find((t) => t.id === e)).filter(Boolean) });
104
- }, N = e(`priority_${r.priority}`);
104
+ }, N = t(`priority_${r.priority}`);
105
105
  return /* @__PURE__ */ a("div", {
106
106
  class: "ck-task",
107
107
  role: "group",
108
- "aria-label": e("taskDetails"),
108
+ "aria-label": t("taskDetails"),
109
109
  "aria-busy": x || void 0,
110
110
  children: [
111
111
  /* @__PURE__ */ a(v, {
112
- label: e("priority"),
112
+ label: t("priority"),
113
113
  summary: N,
114
- children: l.map((t) => /* @__PURE__ */ a(y, {
114
+ children: l.map((e) => /* @__PURE__ */ a(y, {
115
115
  type: "radio",
116
116
  name: `ck-priority-${r.id}`,
117
- checked: r.priority === t,
117
+ checked: r.priority === e,
118
118
  busy: x,
119
- onPick: () => E({ priority: t }, { priority: t }),
120
- children: e(`priority_${t}`)
119
+ onPick: () => E({ priority: e }, { priority: e }),
120
+ children: t(`priority_${e}`)
121
121
  }))
122
122
  }),
123
123
  /* @__PURE__ */ a(v, {
124
- label: e("assigneeFilter"),
124
+ label: t("assigneeFilter"),
125
125
  summary: g(T),
126
126
  keepOpen: !0,
127
127
  children: O.map((e) => /* @__PURE__ */ a(y, {
@@ -136,12 +136,12 @@ function h({ thread: r, editable: i, onChange: s }, c) {
136
136
  class: "ck-chip ck-date",
137
137
  "data-set": w ? "true" : void 0,
138
138
  children: [/* @__PURE__ */ a("bdi", {
139
- title: w ? e("dueOn", { date: p(w) }) : void 0,
140
- children: w ? e("dueOn", { date: p(w) }) : e("dueDate")
139
+ title: w ? t("dueOn", { date: p(w) }) : void 0,
140
+ children: w ? t("dueOn", { date: p(w) }) : t("dueDate")
141
141
  }), /* @__PURE__ */ a("input", {
142
142
  class: "ck-date-input",
143
143
  type: "date",
144
- "aria-label": e("dueDate"),
144
+ "aria-label": t("dueDate"),
145
145
  value: w,
146
146
  onClick: (e) => {
147
147
  try {
@@ -157,8 +157,8 @@ function h({ thread: r, editable: i, onChange: s }, c) {
157
157
  })]
158
158
  }),
159
159
  _?.labels.length || C.length ? /* @__PURE__ */ a(v, {
160
- label: e("labels"),
161
- summary: C.length ? C.map((e) => e.name).join(", ") : e("noLabels"),
160
+ label: t("labels"),
161
+ summary: C.length ? C.map((e) => e.name).join(", ") : t("noLabels"),
162
162
  keepOpen: !0,
163
163
  children: (_?.labels.length ? _.labels : C).map((e) => /* @__PURE__ */ a(y, {
164
164
  type: "checkbox",
@@ -174,36 +174,36 @@ function h({ thread: r, editable: i, onChange: s }, c) {
174
174
  ]
175
175
  });
176
176
  }
177
- function g(t) {
178
- return t.length ? t.length === 1 ? t[0].name : `${t[0].name} +${t.length - 1}` : e("unassigned");
177
+ function g(e) {
178
+ return e.length ? e.length === 1 ? e[0].name : `${e[0].name} +${e.length - 1}` : t("unassigned");
179
179
  }
180
180
  function _(e) {
181
181
  e?.scrollIntoView({ block: "nearest" });
182
182
  }
183
- function v({ label: e, summary: t, spoken: r = t, keepOpen: o = !1, children: s }) {
184
- let [l, u] = n(!1), d = i(null), f = i(null), p = () => {
183
+ function v({ label: t, summary: n, spoken: i = n, keepOpen: o = !1, children: s }) {
184
+ let [l, u] = e(!1), d = r(null), f = r(null), p = () => {
185
185
  u(!1), f.current?.focus();
186
186
  };
187
187
  return c(l, d, () => u(!1)), /* @__PURE__ */ a("div", {
188
- class: "ck-task-pick",
188
+ class: l ? "ck-task-pick ck-pop" : "ck-task-pick",
189
189
  ref: d,
190
190
  onChange: () => !o && p(),
191
+ onKeyDown: (e) => l && e.key === "Escape" && (e.stopPropagation(), p()),
191
192
  children: [/* @__PURE__ */ a("button", {
192
193
  ref: f,
193
194
  class: "ck-chip",
194
195
  "aria-expanded": l,
195
- "aria-label": x(t, `${e}: ${r}`, r),
196
+ "aria-label": x(n, `${t}: ${i}`, i),
196
197
  onClick: () => u(!l),
197
198
  children: /* @__PURE__ */ a("bdi", {
198
- title: t,
199
- children: t
199
+ title: n,
200
+ children: n
200
201
  })
201
202
  }), l ? /* @__PURE__ */ a("div", {
202
203
  class: "ck-task-menu",
203
204
  role: "group",
204
- "aria-label": e,
205
+ "aria-label": t,
205
206
  ref: _,
206
- onKeyDown: (e) => e.key === "Escape" && (e.stopPropagation(), p()),
207
207
  children: s
208
208
  }) : null]
209
209
  });
@@ -224,33 +224,33 @@ function y({ type: e, name: t, checked: n, busy: r = !1, onPick: i, children: o
224
224
  });
225
225
  }
226
226
  function b({ client: r, value: i, onChange: o }) {
227
- let [s, c] = n(null);
228
- t(() => void d(r).then(c), []);
227
+ let [s, c] = e(null);
228
+ n(() => void d(r).then(c), []);
229
229
  let u = i.priority ?? "none", f = i.assignee_ids ?? [], p = f.map((e) => s?.people.find((t) => Number(t.id) === e)).filter((e) => !!e), h = new Set(i.label_ids ?? []), _ = (s?.labels ?? []).filter((e) => h.has(e.id));
230
230
  return /* @__PURE__ */ a("div", {
231
231
  class: "ck-task ck-task-draft",
232
232
  role: "group",
233
- "aria-label": e("taskDetails"),
233
+ "aria-label": t("taskDetails"),
234
234
  children: [
235
235
  /* @__PURE__ */ a(v, {
236
- label: e("priority"),
237
- summary: e(u === "none" ? "priority" : `priority_${u}`),
238
- spoken: e(`priority_${u}`),
239
- children: l.map((t) => /* @__PURE__ */ a(y, {
236
+ label: t("priority"),
237
+ summary: t(u === "none" ? "priority" : `priority_${u}`),
238
+ spoken: t(`priority_${u}`),
239
+ children: l.map((e) => /* @__PURE__ */ a(y, {
240
240
  type: "radio",
241
241
  name: "ck-draft-priority",
242
- checked: u === t,
242
+ checked: u === e,
243
243
  onPick: () => o({
244
244
  ...i,
245
- priority: t
245
+ priority: e
246
246
  }),
247
- children: e(`priority_${t}`)
247
+ children: t(`priority_${e}`)
248
248
  }))
249
249
  }),
250
250
  /* @__PURE__ */ a(v, {
251
- label: e("assigneeFilter"),
252
- summary: p.length ? g(p) : e("assign"),
253
- spoken: p.length ? g(p) : e("unassigned"),
251
+ label: t("assigneeFilter"),
252
+ summary: p.length ? g(p) : t("assign"),
253
+ spoken: p.length ? g(p) : t("unassigned"),
254
254
  keepOpen: !0,
255
255
  children: (s?.people ?? []).map((e) => /* @__PURE__ */ a(y, {
256
256
  type: "checkbox",
@@ -263,9 +263,9 @@ function b({ client: r, value: i, onChange: o }) {
263
263
  }))
264
264
  }),
265
265
  s?.labels.length ? /* @__PURE__ */ a(v, {
266
- label: e("labels"),
267
- summary: _.length ? _.map((e) => e.name).join(", ") : e("labels"),
268
- spoken: _.length ? _.map((e) => e.name).join(", ") : e("noLabels"),
266
+ label: t("labels"),
267
+ summary: _.length ? _.map((e) => e.name).join(", ") : t("labels"),
268
+ spoken: _.length ? _.map((e) => e.name).join(", ") : t("noLabels"),
269
269
  keepOpen: !0,
270
270
  children: s.labels.map((e) => /* @__PURE__ */ a(y, {
271
271
  type: "checkbox",