@commentkit/comment-kit 1.5.1 → 2.0.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.
- package/CHANGELOG.md +281 -582
- package/README.md +334 -154
- package/SECURITY.md +47 -46
- package/dist/node/THIRD_PARTY_NOTICES.txt +56 -0
- package/dist/node/browser.js +17 -0
- package/dist/node/cli/api.js +226 -0
- package/dist/node/cli/bin.js +18 -0
- package/dist/node/cli/credentials.js +268 -0
- package/dist/node/cli/doctor.js +725 -0
- package/dist/node/cli/format.js +54 -0
- package/dist/node/cli/init.js +372 -0
- package/dist/node/cli/main.js +519 -0
- package/dist/node/cli/mcp.js +114 -0
- package/dist/node/cli/open.js +20 -0
- package/dist/node/plugins/astro-B5y1Gtbf.js +31 -0
- package/dist/node/plugins/astro.js +26 -0
- package/dist/node/plugins/git-BIXLbL3f.js +92 -0
- package/dist/node/plugins/jsx-Bg4BdSph.js +7958 -0
- package/dist/node/plugins/next.js +48 -0
- package/dist/node/plugins/options-THop1K92.js +71 -0
- package/dist/node/plugins/transform-CKiAuSbk.js +1155 -0
- package/dist/node/plugins/vite-BdAYUW10.js +74 -0
- package/dist/node/plugins/vite.js +1 -0
- package/dist/node/plugins/webpack-R2U2DLlY.js +35 -0
- package/dist/node/plugins/webpack-loader.cjs +21 -0
- package/dist/node/plugins/webpack-loader.js +18 -0
- package/dist/node/plugins/webpack.js +1 -0
- package/dist/node/shared/endpoint.js +26 -0
- package/dist/node/shared/format.js +63 -0
- package/dist/node/types/astro.d.ts +11 -0
- package/dist/node/types/next.d.ts +34 -0
- package/dist/node/types/options.d.ts +59 -0
- package/dist/node/types/vite.d.ts +11 -0
- package/dist/node/types/webpack-loader.d.ts +22 -0
- package/dist/node/types/webpack.d.ts +27 -0
- package/dist/npm/THIRD_PARTY_NOTICES.txt +6 -6
- package/dist/npm/chunks/AgentSend-DxRJIYiz.js +68 -0
- package/dist/npm/chunks/Checklist-CnlfeSbc.js +282 -0
- package/dist/npm/chunks/Composer-B1bBVszY.js +725 -0
- package/dist/npm/chunks/Guest-vvNPz8h-.js +267 -0
- package/dist/npm/chunks/MarkupEditor-VCOXh9d2.js +338 -0
- package/dist/npm/chunks/Panel-F37vIL1K.js +1206 -0
- package/dist/npm/chunks/Settings-BGoZS2iV.js +231 -0
- package/dist/npm/chunks/Shortcuts-B2OMvczr.js +62 -0
- package/dist/npm/chunks/StyleEditor-CJ_d8Huf.js +46 -0
- package/dist/npm/chunks/StylePanel-yQzHHlY7.js +199 -0
- package/dist/npm/chunks/TaskFields-fmy6_HtK.js +289 -0
- package/dist/npm/chunks/ThreadCard-D51slKST.js +1113 -0
- package/dist/npm/chunks/Viewer-BOBadqmC.js +111 -0
- package/dist/npm/chunks/{agent-CqDO3JMA.js → agent-C1OQzBAm.js} +20 -21
- package/dist/npm/chunks/{anchor-OCQnjp_6.js → anchor-BsQNVkHj.js} +109 -87
- package/dist/npm/chunks/{ar-BQ9K9Oqf.js → ar-CAJ3XT8e.js} +73 -20
- package/dist/npm/chunks/card-bits-CAnzrqx3.js +53 -0
- package/dist/npm/chunks/{client-dZeNdizE.js → client-kNAo2TTG.js} +292 -285
- package/dist/npm/chunks/{colors-CAjY4jxf.js → colors-CWAn_swA.js} +1 -2
- package/dist/npm/chunks/confetti-CkBdSu19.js +49 -0
- package/dist/npm/chunks/context-B8UAzve0.js +20 -0
- package/dist/npm/chunks/context-BuMl7A07.js +48 -0
- package/dist/npm/chunks/{de-CcPi8xdC.js → de-Dl18G48t.js} +64 -19
- package/dist/npm/chunks/dialog-GO04oC3D.js +3 -0
- package/dist/npm/chunks/dpop-U48QIQd7.js +96 -0
- package/dist/npm/chunks/drafts-B0ctr1g9.js +21 -0
- package/dist/npm/chunks/{es-DXgkjDCG.js → es-Dxk79lS9.js} +64 -19
- package/dist/npm/chunks/extension-CKFpPWmi.js +62 -0
- package/dist/npm/chunks/{extension-BFkXOmX5.js → extension-E81hWyiT.js} +21 -14
- package/dist/npm/chunks/files-DyD5BZgp.js +114 -0
- package/dist/npm/chunks/{fr-IjJaUbWh.js → fr-8BebGKYD.js} +121 -76
- package/dist/npm/chunks/{hi-BhKQK2MU.js → hi-BIN6Yy_p.js} +65 -20
- package/dist/npm/chunks/{html2canvas-pro.esm-lgs6tb4C.js → html2canvas-pro.esm-B7b8p5Wr.js} +608 -528
- package/dist/npm/chunks/i18n-DOBt8e9U.js +936 -0
- package/dist/npm/chunks/identify-CN-3xzqL.js +106 -0
- package/dist/npm/chunks/{it-DKiSCkiD.js → it-Cr6EwpPQ.js} +83 -38
- package/dist/npm/chunks/{ja-BI1WagDg.js → ja-Iy3s5aur.js} +62 -17
- package/dist/npm/chunks/late-words-B2bmZceJ.js +12 -0
- package/dist/npm/chunks/live-CelVeZfP.js +85 -0
- package/dist/npm/chunks/locale-D8Q4Q2Nt.js +26 -0
- package/dist/npm/chunks/{lock-C82sC17d.js → lock-B1JLlOhz.js} +0 -1
- package/dist/npm/chunks/{nl-CJw3VUQ5.js → nl-B84WHqqe.js} +65 -20
- package/dist/npm/chunks/page-key-DepmJzC1.js +62 -0
- package/dist/npm/chunks/{pick-dDDLxCDI.js → pick-yTyqtxN0.js} +46 -46
- package/dist/npm/chunks/pkce-ChKGSW_4.js +8 -0
- package/dist/npm/chunks/placement-BF_HOUDD.js +74 -0
- package/dist/npm/chunks/privacy-BWUGlHw5.js +57 -0
- package/dist/npm/chunks/{pt-BR-CjBolC5g.js → pt-BR-DOkdlfoe.js} +64 -19
- package/dist/npm/chunks/{realtime-D22tI_AS.js → realtime-C79zF50C.js} +16 -15
- package/dist/npm/chunks/report-CrIqQZDI.js +44 -0
- package/dist/npm/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/npm/chunks/show-BgVC8gWY.js +97 -0
- package/dist/npm/chunks/signin-Dd1rb2BP.js +75 -0
- package/dist/npm/chunks/{source-BQS2_xfB.js → source-pXVve2Cx.js} +2 -3
- package/dist/npm/chunks/src-BTMy4Gyc.js +208 -0
- package/dist/npm/chunks/start-DtVlpt7p.js +1878 -0
- package/dist/npm/chunks/states-sfTbjZz8.js +3 -0
- package/dist/npm/chunks/upload-MgPYqPyE.js +42 -0
- package/dist/npm/chunks/uploads-D49mywwz.js +1146 -0
- package/dist/npm/chunks/wrap-Bl0gbnFa.js +69 -0
- package/dist/npm/chunks/{zh-CN-BrZGx2S0.js → zh-CN-Z5fQCb7G.js} +63 -18
- package/dist/npm/element.js +59 -23
- package/dist/npm/headless.js +7 -3
- package/dist/npm/index.js +3 -3
- package/dist/npm/react.js +19 -13
- package/dist/npm/svelte.js +29 -14
- package/dist/npm/types/adapters/react.d.ts +4 -1
- package/dist/npm/types/adapters/svelte.d.ts +4 -1
- package/dist/npm/types/adapters/vue.d.ts +35 -2
- package/dist/npm/types/anchor/index.d.ts +19 -0
- package/dist/npm/types/capture/privacy.d.ts +14 -0
- package/dist/npm/types/core/api.d.ts +20 -1
- package/dist/npm/types/core/auth.d.ts +47 -14
- package/dist/npm/types/core/client.d.ts +60 -4
- package/dist/npm/types/core/page-key.d.ts +42 -0
- package/dist/npm/types/core/types.d.ts +87 -4
- package/dist/npm/types/element.d.ts +17 -7
- package/dist/npm/types/headless.d.ts +2 -1
- package/dist/npm/types/index.d.ts +16 -6
- package/dist/npm/vue.js +45 -11
- package/package.json +95 -21
- package/dist/npm/chunks/AgentSend-DjFZSC0S.js +0 -64
- package/dist/npm/chunks/Checklist-BEz4IZdT.js +0 -259
- package/dist/npm/chunks/Composer-D1wbmdjF.js +0 -681
- package/dist/npm/chunks/Guest-CtyRy8Kz.js +0 -170
- package/dist/npm/chunks/MarkupEditor-CPH4yKx4.js +0 -334
- package/dist/npm/chunks/Panel-DSoUAlbQ.js +0 -863
- package/dist/npm/chunks/Settings-C_qV4n7J.js +0 -206
- package/dist/npm/chunks/Shortcuts-ChnaribX.js +0 -60
- package/dist/npm/chunks/StyleEditor-DqZd6C5o.js +0 -44
- package/dist/npm/chunks/StylePanel-DMC3riYK.js +0 -199
- package/dist/npm/chunks/TaskFields-BfjjllMx.js +0 -272
- package/dist/npm/chunks/ThreadCard-DmKAelSL.js +0 -1026
- package/dist/npm/chunks/Viewer-mw69qSI5.js +0 -110
- package/dist/npm/chunks/card-bits-C7bIk5KX.js +0 -126
- package/dist/npm/chunks/confetti-DKeKR7-6.js +0 -41
- package/dist/npm/chunks/drafts-CpQdHhcK.js +0 -51
- package/dist/npm/chunks/extension-Gvei3opb.js +0 -54
- package/dist/npm/chunks/i18n-DAJGndZ2.js +0 -904
- package/dist/npm/chunks/live-MvvBdoGd.js +0 -34
- package/dist/npm/chunks/report-DoDVi1qT.js +0 -28
- package/dist/npm/chunks/src-C_oUnL0i.js +0 -150
- package/dist/npm/chunks/start-C5-rebEU.js +0 -1783
- package/dist/npm/chunks/upload-CzPAjktW.js +0 -42
- package/dist/npm/chunks/uploads-tpLjiJdH.js +0 -541
|
@@ -0,0 +1,1206 @@
|
|
|
1
|
+
import { o as e, p as t, v as n } from "./client-kNAo2TTG.js";
|
|
2
|
+
import { s as r } from "./anchor-BsQNVkHj.js";
|
|
3
|
+
import { a as i, c as a, d as o, f as s, g as c, i as l, n as u, o as d, p as f, t as p, u as m, y as h } from "./i18n-DOBt8e9U.js";
|
|
4
|
+
import { i as ee } from "./card-bits-CAnzrqx3.js";
|
|
5
|
+
import { r as g } from "./drafts-B0ctr1g9.js";
|
|
6
|
+
import { t as _ } from "./states-sfTbjZz8.js";
|
|
7
|
+
import { n as te, r as v, t as y } from "./context-B8UAzve0.js";
|
|
8
|
+
import { n as b, r as x } from "./Checklist-CnlfeSbc.js";
|
|
9
|
+
import { C as S, D as C, M as ne, N as w, _ as re, b as ie, g as T, h as E, j as D, k as O, o as ae, s as k, v as A, x as oe, y as j } from "./start-DtVlpt7p.js";
|
|
10
|
+
// src/ui/Notifications.tsx
|
|
11
|
+
function se({ items: e, onOpen: t, more: n, loadingMore: r, onMore: i, unread: o, onMarkAll: s }) {
|
|
12
|
+
let c = e.map((e) => e.thread_id);
|
|
13
|
+
return /* @__PURE__ */ m(h, { children: [/* @__PURE__ */ m("ul", {
|
|
14
|
+
class: "ck-list",
|
|
15
|
+
onKeyDown: (e) => E(e, ".ck-item", !0),
|
|
16
|
+
children: e.map((e) => /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m("button", {
|
|
17
|
+
class: "ck-item",
|
|
18
|
+
"data-id": e.thread_id,
|
|
19
|
+
"data-unread": !e.read,
|
|
20
|
+
onClick: () => t(e.thread_id, c),
|
|
21
|
+
children: [/* @__PURE__ */ m("div", {
|
|
22
|
+
class: "ck-item-top",
|
|
23
|
+
children: [
|
|
24
|
+
e.read ? null : /* @__PURE__ */ m("span", {
|
|
25
|
+
class: "ck-unread",
|
|
26
|
+
children: /* @__PURE__ */ m("span", {
|
|
27
|
+
class: "ck-sr",
|
|
28
|
+
children: a("unread")
|
|
29
|
+
})
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ m("span", {
|
|
32
|
+
class: "ck-item-tags",
|
|
33
|
+
children: /* @__PURE__ */ m("span", { children: [/* @__PURE__ */ m(M, { item: e }), e.reference ? ` · ${e.reference}` : ""] })
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ m("time", {
|
|
36
|
+
class: "ck-time",
|
|
37
|
+
dateTime: e.created_at,
|
|
38
|
+
title: l(e.created_at),
|
|
39
|
+
children: d(e.created_at)
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
}), e.excerpt ? /* @__PURE__ */ m("div", {
|
|
43
|
+
class: "ck-item-text",
|
|
44
|
+
dir: "auto",
|
|
45
|
+
children: e.excerpt
|
|
46
|
+
}) : null]
|
|
47
|
+
}) }))
|
|
48
|
+
}), n || o ? /* @__PURE__ */ m("div", {
|
|
49
|
+
class: "ck-pad ck-list-foot",
|
|
50
|
+
children: [o ? /* @__PURE__ */ m("button", {
|
|
51
|
+
class: "ck-btn",
|
|
52
|
+
onClick: s,
|
|
53
|
+
children: a("markAllRead")
|
|
54
|
+
}) : null, n ? /* @__PURE__ */ m("button", {
|
|
55
|
+
class: "ck-btn",
|
|
56
|
+
"aria-disabled": r || void 0,
|
|
57
|
+
"aria-busy": r,
|
|
58
|
+
onClick: () => !r && i(),
|
|
59
|
+
children: a("showMore")
|
|
60
|
+
}) : null]
|
|
61
|
+
}) : null] });
|
|
62
|
+
}
|
|
63
|
+
function M({ item: e }) {
|
|
64
|
+
let t = `kind_${e.kind}`, [n, r] = p(t in N ? t : "otherKind", "actor"), { type: i, name: o } = e.actor;
|
|
65
|
+
return /* @__PURE__ */ m(h, { children: [
|
|
66
|
+
n,
|
|
67
|
+
/* @__PURE__ */ m("strong", { children: /* @__PURE__ */ m("bdi", { children: i === "agent" || i === "integration" || i === "system" ? o : a("personName", { name: o }) }) }),
|
|
68
|
+
r
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
var N = {
|
|
72
|
+
kind_mention: !0,
|
|
73
|
+
kind_reply: !0,
|
|
74
|
+
kind_assigned: !0,
|
|
75
|
+
kind_ready_for_review: !0,
|
|
76
|
+
kind_reopened: !0,
|
|
77
|
+
kind_resolved: !0,
|
|
78
|
+
kind_closed: !0,
|
|
79
|
+
kind_new_feedback: !0,
|
|
80
|
+
kind_due_soon: !0,
|
|
81
|
+
kind_overdue: !0,
|
|
82
|
+
kind_agent_request: !0
|
|
83
|
+
};
|
|
84
|
+
// src/ui/panel-parts.tsx
|
|
85
|
+
k(_);
|
|
86
|
+
function P(e) {
|
|
87
|
+
let t = e.getBoundingClientRect(), n = e.closest(".ck-panel")?.getBoundingClientRect();
|
|
88
|
+
if (!n) return !1;
|
|
89
|
+
let r = t.left + t.width / 2 > n.left + n.width / 2;
|
|
90
|
+
return getComputedStyle(e).direction === "rtl" ? !r : r;
|
|
91
|
+
}
|
|
92
|
+
function F(e, t, n) {
|
|
93
|
+
return A(e, t, n), (e) => {
|
|
94
|
+
let r = e.relatedTarget;
|
|
95
|
+
r && t.current && !t.current.contains(r) && n();
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function I({ label: e, value: t, options: n, onChange: r, compact: i = !1 }) {
|
|
99
|
+
let [a, o] = c(!1), [l, u] = c(!1), d = f(null), p = () => d.current?.querySelector(".ck-choose-btn"), h = n.find(([e]) => e === t)?.[1] ?? n[0]?.[1] ?? "", ee = F(a, d, () => o(!1));
|
|
100
|
+
s(() => {
|
|
101
|
+
a && d.current?.querySelector("[aria-selected=true]")?.focus();
|
|
102
|
+
}, [a]);
|
|
103
|
+
let g = () => (o(!1), p()?.focus());
|
|
104
|
+
return /* @__PURE__ */ m("div", {
|
|
105
|
+
class: "ck-choose",
|
|
106
|
+
ref: d,
|
|
107
|
+
"data-compact": i || void 0,
|
|
108
|
+
onFocusOut: ee,
|
|
109
|
+
children: [/* @__PURE__ */ m("button", {
|
|
110
|
+
class: "ck-input ck-choose-btn",
|
|
111
|
+
"aria-haspopup": "listbox",
|
|
112
|
+
"aria-expanded": a,
|
|
113
|
+
"aria-label": `${e}: ${h}`,
|
|
114
|
+
onClick: () => {
|
|
115
|
+
!a && d.current && u(P(d.current)), o(!a);
|
|
116
|
+
},
|
|
117
|
+
children: [/* @__PURE__ */ m("bdi", {
|
|
118
|
+
title: h,
|
|
119
|
+
children: h
|
|
120
|
+
}), /* @__PURE__ */ m(S, {
|
|
121
|
+
name: "chevron",
|
|
122
|
+
size: 12
|
|
123
|
+
})]
|
|
124
|
+
}), a ? /* @__PURE__ */ m("div", {
|
|
125
|
+
class: "ck-choose-menu",
|
|
126
|
+
role: "listbox",
|
|
127
|
+
"aria-label": e,
|
|
128
|
+
"data-end": l || void 0,
|
|
129
|
+
onKeyDown: (e) => {
|
|
130
|
+
e.key === "Escape" ? (e.stopPropagation(), g()) : E(e, "[role=option]", !0);
|
|
131
|
+
},
|
|
132
|
+
children: n.map(([e, n]) => /* @__PURE__ */ m("button", {
|
|
133
|
+
role: "option",
|
|
134
|
+
"aria-selected": e === t,
|
|
135
|
+
title: n,
|
|
136
|
+
onClick: () => (r(e), g()),
|
|
137
|
+
children: /* @__PURE__ */ m("bdi", { children: n })
|
|
138
|
+
}))
|
|
139
|
+
}) : null]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function ce({ value: e, people: t, onChange: n }) {
|
|
143
|
+
let [r, i] = c(!1), [o, l] = c(!1), u = f(null), d = F(r, u, () => i(!1));
|
|
144
|
+
s(() => {
|
|
145
|
+
r && u.current && l(P(u.current));
|
|
146
|
+
}, [r, e.join()]);
|
|
147
|
+
let p = [
|
|
148
|
+
["me", a("assignedToMe")],
|
|
149
|
+
["none", a("unassigned")],
|
|
150
|
+
...t.map((e) => [String(e.id), e.name])
|
|
151
|
+
], h = e.length ? L(e, t) : a("anyone");
|
|
152
|
+
return /* @__PURE__ */ m("div", {
|
|
153
|
+
class: "ck-people-pick",
|
|
154
|
+
ref: u,
|
|
155
|
+
onFocusOut: d,
|
|
156
|
+
children: [/* @__PURE__ */ m("button", {
|
|
157
|
+
class: "ck-input ck-choose-btn ck-people-btn",
|
|
158
|
+
"aria-expanded": r,
|
|
159
|
+
"aria-haspopup": "true",
|
|
160
|
+
"aria-label": `${a("assigneeFilter")}: ${h}`,
|
|
161
|
+
onClick: () => i(!r),
|
|
162
|
+
children: [/* @__PURE__ */ m("bdi", {
|
|
163
|
+
title: h,
|
|
164
|
+
children: h
|
|
165
|
+
}), /* @__PURE__ */ m(S, {
|
|
166
|
+
name: "chevron",
|
|
167
|
+
size: 12
|
|
168
|
+
})]
|
|
169
|
+
}), r ? /* @__PURE__ */ m("div", {
|
|
170
|
+
class: "ck-people-menu",
|
|
171
|
+
"data-end": o || void 0,
|
|
172
|
+
role: "group",
|
|
173
|
+
"aria-label": a("assigneeFilter"),
|
|
174
|
+
onKeyDown: (e) => {
|
|
175
|
+
e.key === "Escape" && (e.stopPropagation(), i(!1), u.current?.querySelector(".ck-people-btn")?.focus());
|
|
176
|
+
},
|
|
177
|
+
children: p.map(([t, r]) => /* @__PURE__ */ m("label", {
|
|
178
|
+
class: "ck-check",
|
|
179
|
+
children: [/* @__PURE__ */ m("input", {
|
|
180
|
+
type: "checkbox",
|
|
181
|
+
checked: e.includes(t),
|
|
182
|
+
onChange: (r) => {
|
|
183
|
+
let i = r.target.checked;
|
|
184
|
+
n(i ? t === "none" ? ["none"] : [...e.filter((e) => e !== "none"), t] : e.filter((e) => e !== t));
|
|
185
|
+
}
|
|
186
|
+
}), /* @__PURE__ */ m("bdi", { children: r })]
|
|
187
|
+
}))
|
|
188
|
+
}) : null]
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
function L(e, t) {
|
|
192
|
+
let n = e.map((e) => e === "me" ? a("assignedToMe") : e === "none" ? a("unassigned") : t.find((t) => String(t.id) === e)?.name ?? "").filter(Boolean);
|
|
193
|
+
return n.length > 1 ? `${n[0]} +${n.length - 1}` : n[0] ?? a("anyone");
|
|
194
|
+
}
|
|
195
|
+
function le({ load: e, onRetry: t, art: n, empty: r, children: i }) {
|
|
196
|
+
return e.state === "loading" ? /* @__PURE__ */ m("div", {
|
|
197
|
+
class: "ck-loading",
|
|
198
|
+
role: "status",
|
|
199
|
+
children: [/* @__PURE__ */ m("span", {
|
|
200
|
+
class: "ck-sr",
|
|
201
|
+
children: a("loadingEarlier")
|
|
202
|
+
}), [
|
|
203
|
+
0,
|
|
204
|
+
1,
|
|
205
|
+
2
|
|
206
|
+
].map(() => /* @__PURE__ */ m("div", {
|
|
207
|
+
class: "ck-loading-row",
|
|
208
|
+
children: [
|
|
209
|
+
/* @__PURE__ */ m("div", { class: "ck-skeleton" }),
|
|
210
|
+
/* @__PURE__ */ m("div", { class: "ck-skeleton" }),
|
|
211
|
+
/* @__PURE__ */ m("div", { class: "ck-skeleton" })
|
|
212
|
+
]
|
|
213
|
+
}))]
|
|
214
|
+
}) : e.state === "error" ? /* @__PURE__ */ m("div", {
|
|
215
|
+
class: "ck-empty",
|
|
216
|
+
role: "alert",
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ m(x, { name: "error" }),
|
|
219
|
+
a("loadFailed"),
|
|
220
|
+
/* @__PURE__ */ m("button", {
|
|
221
|
+
class: "ck-btn",
|
|
222
|
+
onClick: t,
|
|
223
|
+
children: a("retry")
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
}) : e.data.length ? /* @__PURE__ */ m(h, { children: i(e.data) }) : /* @__PURE__ */ m("div", {
|
|
227
|
+
class: "ck-empty",
|
|
228
|
+
children: [/* @__PURE__ */ m(x, { name: n }), r]
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
// src/ui/PickBar.tsx
|
|
232
|
+
function ue({ threads: e, onCancel: t, onDone: n }, r) {
|
|
233
|
+
let { client: o, reportError: s } = v(r), [l, u] = c(!1), d = T(l, () => import("./AgentSend-DxRJIYiz.js").then((e) => e.AgentSend), (e) => (s(e), u(!1))), p = f(null);
|
|
234
|
+
return /* @__PURE__ */ m("div", {
|
|
235
|
+
class: "ck-pickbar",
|
|
236
|
+
role: "group",
|
|
237
|
+
"aria-label": a("sendToAgent"),
|
|
238
|
+
children: [
|
|
239
|
+
l && d ? /* @__PURE__ */ m(d, {
|
|
240
|
+
client: o,
|
|
241
|
+
threads: e,
|
|
242
|
+
onError: s,
|
|
243
|
+
onClose: () => (u(!1), p.current?.focus()),
|
|
244
|
+
onDone: n
|
|
245
|
+
}, e.map((e) => e.id).join()) : null,
|
|
246
|
+
/* @__PURE__ */ m("span", {
|
|
247
|
+
class: "ck-muted",
|
|
248
|
+
role: "status",
|
|
249
|
+
children: i("selectedCount", e.length)
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ m("button", {
|
|
252
|
+
class: "ck-btn",
|
|
253
|
+
onClick: t,
|
|
254
|
+
children: a("cancel")
|
|
255
|
+
}),
|
|
256
|
+
/* @__PURE__ */ m("button", {
|
|
257
|
+
class: "ck-btn ck-primary",
|
|
258
|
+
ref: p,
|
|
259
|
+
"aria-disabled": !e.length || void 0,
|
|
260
|
+
"aria-expanded": l,
|
|
261
|
+
"aria-haspopup": "menu",
|
|
262
|
+
onClick: () => e.length && u(!l),
|
|
263
|
+
children: [/* @__PURE__ */ m(S, {
|
|
264
|
+
name: "agent",
|
|
265
|
+
size: 14
|
|
266
|
+
}), a("sendToAgent")]
|
|
267
|
+
})
|
|
268
|
+
]
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
var R = "/pages/sign-off", z = (e) => t(e.options.branch, e.options.commit);
|
|
272
|
+
function de(t) {
|
|
273
|
+
return t.api.request(R, { query: {
|
|
274
|
+
page_url: e(),
|
|
275
|
+
commit_sha: z(t).commit
|
|
276
|
+
} }).then((e) => e.data);
|
|
277
|
+
}
|
|
278
|
+
function B(t, n) {
|
|
279
|
+
let r = z(t), i = n?.trim().slice(0, 280);
|
|
280
|
+
return t.api.request(R, {
|
|
281
|
+
method: "POST",
|
|
282
|
+
idempotent: !0,
|
|
283
|
+
body: {
|
|
284
|
+
page: {
|
|
285
|
+
url: e(),
|
|
286
|
+
title: document.title.slice(0, 500) || null,
|
|
287
|
+
branch: r.branch,
|
|
288
|
+
commit_sha: r.commit
|
|
289
|
+
},
|
|
290
|
+
note: i || null
|
|
291
|
+
}
|
|
292
|
+
}).then((e) => e.data);
|
|
293
|
+
}
|
|
294
|
+
function fe(t, n = e()) {
|
|
295
|
+
return t.api.request(R, {
|
|
296
|
+
method: "DELETE",
|
|
297
|
+
query: { page_url: n }
|
|
298
|
+
}).then((e) => e.data);
|
|
299
|
+
}
|
|
300
|
+
// src/ui/SignOff.tsx
|
|
301
|
+
var pe = [
|
|
302
|
+
401,
|
|
303
|
+
402,
|
|
304
|
+
403,
|
|
305
|
+
404,
|
|
306
|
+
503
|
|
307
|
+
];
|
|
308
|
+
function me(e) {
|
|
309
|
+
let t = e.approvals.find((e) => e.mine) ?? null, n = e.approvals.filter((e) => !e.mine && !e.stale), r = t?.stale ? t : e.status === "outdated" && !n.length ? e.approvals.find((e) => e.stale) ?? null : null;
|
|
310
|
+
return {
|
|
311
|
+
state: r ? "outdated" : t ? "mine" : n.length ? "others" : "none",
|
|
312
|
+
mine: t && !t.stale ? t : null,
|
|
313
|
+
others: n,
|
|
314
|
+
reason: r ? r.stale_reason ?? "new_feedback" : null,
|
|
315
|
+
open: e.active_threads
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
function he(e) {
|
|
319
|
+
let t = e[0]?.person.name ?? "";
|
|
320
|
+
return e.length > 1 ? i("signOffByMore", e.length - 1, { name: t }) : a("signOffBy", { name: t });
|
|
321
|
+
}
|
|
322
|
+
var V = (e) => {
|
|
323
|
+
try {
|
|
324
|
+
return new Date(e).toLocaleDateString(u(), {
|
|
325
|
+
day: "numeric",
|
|
326
|
+
month: "short",
|
|
327
|
+
year: "numeric"
|
|
328
|
+
});
|
|
329
|
+
} catch {
|
|
330
|
+
return e.slice(0, 10);
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
function ge({ version: t = 0, reveal: r = 0 }, s) {
|
|
334
|
+
let { client: u, caps: d, notify: p, reportError: h } = v(s), ee = j(u.state, (e) => e.config?.read_only ?? !1), g = j(u.state, (e) => e.threads), _ = re(), [te, y] = c(null), [b, x] = c(!1), [S, C] = c(!1), [ne, w] = c(null), [ie, T] = c(""), E = f(null), D = f(!0);
|
|
335
|
+
o(() => () => void (D.current = !1), []);
|
|
336
|
+
let ae = !!d?.comment && !ee, k = u.pageKey(), A = te?.page === k ? te.data : null, oe = g.filter((e) => e.status !== "resolved" && e.status !== "closed").map((e) => `${e.id}:${e.status}`).join(), se = f(0);
|
|
337
|
+
o(() => {
|
|
338
|
+
if (!ae || b) return;
|
|
339
|
+
let e = ++se.current;
|
|
340
|
+
de(u).then((t) => {
|
|
341
|
+
e === se.current && D.current && (Array.isArray(t?.approvals) ? y({
|
|
342
|
+
page: k,
|
|
343
|
+
data: t
|
|
344
|
+
}) : x(!0));
|
|
345
|
+
}, (t) => {
|
|
346
|
+
e === se.current && D.current && (!(t instanceof n) || pe.includes(t.status)) && x(!0);
|
|
347
|
+
});
|
|
348
|
+
}, [
|
|
349
|
+
ae,
|
|
350
|
+
b,
|
|
351
|
+
k,
|
|
352
|
+
oe,
|
|
353
|
+
t
|
|
354
|
+
]);
|
|
355
|
+
let M = f(0);
|
|
356
|
+
if (o(() => {
|
|
357
|
+
r && A && M.current !== r && (M.current = r, E.current?.scrollIntoView?.({ block: "nearest" }), E.current?.querySelector(".ck-signoff-text")?.focus({ preventScroll: !0 }));
|
|
358
|
+
}, [r, A]), !ae || b || !A) return null;
|
|
359
|
+
let N = me(A), P = (e) => {
|
|
360
|
+
h(e), e instanceof n && [
|
|
361
|
+
402,
|
|
362
|
+
403,
|
|
363
|
+
503
|
|
364
|
+
].includes(e.status) && e.code !== "verification_required" && x(!0);
|
|
365
|
+
}, F = (e, t) => {
|
|
366
|
+
se.current++, D.current && y({
|
|
367
|
+
page: t,
|
|
368
|
+
data: e
|
|
369
|
+
});
|
|
370
|
+
}, I = () => queueMicrotask(() => E.current?.querySelector(".ck-signoff-text")?.focus({ preventScroll: !0 })), ce = () => {
|
|
371
|
+
if (S) return;
|
|
372
|
+
C(!0);
|
|
373
|
+
let e = u.pageKey();
|
|
374
|
+
fe(u).then((t) => (F(t, e), I()), P).finally(() => D.current && C(!1));
|
|
375
|
+
}, L = (t = ie) => {
|
|
376
|
+
if (S || !_) return;
|
|
377
|
+
C(!0);
|
|
378
|
+
let n = u.pageKey(), r = e();
|
|
379
|
+
B(u, t).then((e) => {
|
|
380
|
+
F(e, n), w(null), T(""), I(), p({
|
|
381
|
+
text: a("signOffDone"),
|
|
382
|
+
tone: "success",
|
|
383
|
+
action: {
|
|
384
|
+
label: a("undo"),
|
|
385
|
+
run: () => void fe(u, r).then((e) => F(e, n), h)
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}, P).finally(() => D.current && C(!1));
|
|
389
|
+
}, le = N.state === "mine" ? a("signOffMine", { date: V(N.mine.approved_at) }) : N.state === "outdated" ? a(N.reason === "new_commit" ? "signOffNewCommit" : "signOffNewFeedback") : N.state === "others" ? he(N.others) : a("signOffAsk"), ue = [N.state === "mine" && N.others.length ? he(N.others) : "", N.state !== "mine" && N.open ? i("signOffOpen", N.open) : ""].filter(Boolean), R = N.mine ?? N.others[0];
|
|
390
|
+
return /* @__PURE__ */ m("section", {
|
|
391
|
+
class: "ck-signoff",
|
|
392
|
+
ref: E,
|
|
393
|
+
role: "region",
|
|
394
|
+
"aria-label": a("signOff"),
|
|
395
|
+
"data-state": N.state,
|
|
396
|
+
"aria-busy": S || void 0,
|
|
397
|
+
children: [/* @__PURE__ */ m("div", {
|
|
398
|
+
class: "ck-signoff-text",
|
|
399
|
+
role: "status",
|
|
400
|
+
tabIndex: -1,
|
|
401
|
+
title: R && N.state !== "outdated" ? l(R.approved_at) : void 0,
|
|
402
|
+
children: [
|
|
403
|
+
/* @__PURE__ */ m("strong", { children: le }),
|
|
404
|
+
ue.map((e) => /* @__PURE__ */ m("span", {
|
|
405
|
+
class: "ck-signoff-sub",
|
|
406
|
+
children: e
|
|
407
|
+
})),
|
|
408
|
+
N.mine?.note ? /* @__PURE__ */ m("span", {
|
|
409
|
+
class: "ck-signoff-sub ck-signoff-note",
|
|
410
|
+
children: /* @__PURE__ */ m("bdi", { children: N.mine.note })
|
|
411
|
+
}) : null
|
|
412
|
+
]
|
|
413
|
+
}), ne === k ? /* @__PURE__ */ m("div", {
|
|
414
|
+
class: "ck-signoff-form",
|
|
415
|
+
children: [
|
|
416
|
+
/* @__PURE__ */ m("input", {
|
|
417
|
+
class: "ck-input",
|
|
418
|
+
type: "text",
|
|
419
|
+
maxLength: 280,
|
|
420
|
+
value: ie,
|
|
421
|
+
placeholder: a("signOffNote"),
|
|
422
|
+
"aria-label": a("signOffNote"),
|
|
423
|
+
ref: O,
|
|
424
|
+
onInput: (e) => T(e.target.value),
|
|
425
|
+
onKeyDown: (e) => {
|
|
426
|
+
e.key === "Enter" ? (e.preventDefault(), L(e.target.value)) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), w(null), T(""), I());
|
|
427
|
+
}
|
|
428
|
+
}),
|
|
429
|
+
/* @__PURE__ */ m("button", {
|
|
430
|
+
class: "ck-btn",
|
|
431
|
+
onClick: () => (w(null), T(""), I()),
|
|
432
|
+
children: a("cancel")
|
|
433
|
+
}),
|
|
434
|
+
/* @__PURE__ */ m("button", {
|
|
435
|
+
class: "ck-btn ck-primary",
|
|
436
|
+
"aria-disabled": S || !_ || void 0,
|
|
437
|
+
onClick: () => L(),
|
|
438
|
+
children: a(N.state === "outdated" ? "signOffAgain" : "signOffApprove")
|
|
439
|
+
})
|
|
440
|
+
]
|
|
441
|
+
}) : N.state === "mine" ? /* @__PURE__ */ m("button", {
|
|
442
|
+
class: "ck-chip ck-chip-quiet",
|
|
443
|
+
"aria-disabled": S || !_ || void 0,
|
|
444
|
+
onClick: () => _ && ce(),
|
|
445
|
+
children: a("signOffWithdraw")
|
|
446
|
+
}) : /* @__PURE__ */ m("button", {
|
|
447
|
+
class: N.state === "others" ? "ck-btn" : "ck-btn ck-primary",
|
|
448
|
+
"aria-disabled": !_ || void 0,
|
|
449
|
+
onClick: () => _ && (T(""), w(k)),
|
|
450
|
+
children: a(N.state === "outdated" ? "signOffAgain" : "signOffApprove")
|
|
451
|
+
})]
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
// src/ui/ThreadRow.tsx
|
|
455
|
+
var H = {
|
|
456
|
+
element: "pin",
|
|
457
|
+
region: "area",
|
|
458
|
+
text: "quote",
|
|
459
|
+
page: "page"
|
|
460
|
+
};
|
|
461
|
+
function _e({ thread: e, tab: t, triager: n, picked: o, branch: s, allBranches: c, canResolve: u, onOpen: f, onToggle: p, onResolve: ee, onCopyLink: g }) {
|
|
462
|
+
let _ = o !== void 0, te = t === "page" && r(e.anchor).state === "detached", v = te ? ne(e.capture?.screenshot?.thumbnail_url, "image") : null, y = e.assignees ?? (e.assignee ? [e.assignee] : []), x = (e.first_message?.reactions ?? []).slice().sort((e, t) => t.count - e.count).slice(0, 3), re = b(e), T = e.status === "resolved" || e.status === "closed", E = a(`spot_${e.anchor.type}`), O = e.priority === "none" ? null : `${a("priority")}: ${a(`priority_${e.priority}`)}`;
|
|
463
|
+
return /* @__PURE__ */ m("li", {
|
|
464
|
+
"data-done": T || void 0,
|
|
465
|
+
"data-picking": _ || void 0,
|
|
466
|
+
children: [
|
|
467
|
+
_ ? /* @__PURE__ */ m("input", {
|
|
468
|
+
type: "checkbox",
|
|
469
|
+
class: "ck-pick",
|
|
470
|
+
checked: o,
|
|
471
|
+
"aria-label": a("selectThread", { ref: e.reference }),
|
|
472
|
+
onChange: p
|
|
473
|
+
}) : null,
|
|
474
|
+
/* @__PURE__ */ m("button", {
|
|
475
|
+
class: "ck-item",
|
|
476
|
+
"data-id": e.id,
|
|
477
|
+
"data-shot": v ? "true" : void 0,
|
|
478
|
+
"aria-pressed": _ ? o : void 0,
|
|
479
|
+
onClick: _ ? p : f,
|
|
480
|
+
children: [/* @__PURE__ */ m("div", {
|
|
481
|
+
class: "ck-item-main",
|
|
482
|
+
children: [
|
|
483
|
+
/* @__PURE__ */ m("div", {
|
|
484
|
+
class: "ck-item-top",
|
|
485
|
+
children: [/* @__PURE__ */ m("span", {
|
|
486
|
+
class: "ck-item-tags",
|
|
487
|
+
children: [
|
|
488
|
+
/* @__PURE__ */ m("span", {
|
|
489
|
+
class: "ck-kind",
|
|
490
|
+
title: E,
|
|
491
|
+
"aria-label": E,
|
|
492
|
+
children: /* @__PURE__ */ m(S, {
|
|
493
|
+
name: H[e.anchor.type] ?? "comment",
|
|
494
|
+
size: 12
|
|
495
|
+
})
|
|
496
|
+
}),
|
|
497
|
+
/* @__PURE__ */ m("strong", { children: n ? e.reference : a("feedbackRef", { ref: e.reference }) }),
|
|
498
|
+
/* @__PURE__ */ m(C, { status: e.status }),
|
|
499
|
+
O ? /* @__PURE__ */ m("span", {
|
|
500
|
+
class: "ck-flag",
|
|
501
|
+
"data-priority": e.priority,
|
|
502
|
+
title: O,
|
|
503
|
+
"aria-label": O,
|
|
504
|
+
children: /* @__PURE__ */ m(S, {
|
|
505
|
+
name: "flag",
|
|
506
|
+
size: 12
|
|
507
|
+
})
|
|
508
|
+
}) : null,
|
|
509
|
+
D(e) ? /* @__PURE__ */ m("span", {
|
|
510
|
+
class: "ck-tag",
|
|
511
|
+
title: `${a(`screen_${w(e.breakpoint)}`)} (${e.breakpoint}px)`,
|
|
512
|
+
children: a(`size_${w(e.breakpoint)}`)
|
|
513
|
+
}) : null,
|
|
514
|
+
te ? /* @__PURE__ */ m("span", {
|
|
515
|
+
class: "ck-tag ck-badge-soft",
|
|
516
|
+
title: a("detached"),
|
|
517
|
+
children: a("notOnPage")
|
|
518
|
+
}) : null
|
|
519
|
+
]
|
|
520
|
+
}), /* @__PURE__ */ m("time", {
|
|
521
|
+
class: "ck-time",
|
|
522
|
+
dateTime: e.last_activity_at,
|
|
523
|
+
title: l(e.last_activity_at),
|
|
524
|
+
children: d(e.last_activity_at)
|
|
525
|
+
})]
|
|
526
|
+
}),
|
|
527
|
+
/* @__PURE__ */ m("div", {
|
|
528
|
+
class: "ck-item-text",
|
|
529
|
+
dir: "auto",
|
|
530
|
+
children: e.first_message?.body
|
|
531
|
+
}),
|
|
532
|
+
/* @__PURE__ */ m("div", {
|
|
533
|
+
class: "ck-muted ck-item-meta",
|
|
534
|
+
children: [
|
|
535
|
+
/* @__PURE__ */ m(ie, { person: e.author }),
|
|
536
|
+
/* @__PURE__ */ m("bdi", {
|
|
537
|
+
title: e.author.name,
|
|
538
|
+
children: ve(e.author.name)
|
|
539
|
+
}),
|
|
540
|
+
t === "all" ? /* @__PURE__ */ m(h, { children: [" · ", /* @__PURE__ */ m("bdi", {
|
|
541
|
+
class: "ck-item-page",
|
|
542
|
+
title: e.page.title || e.page.path,
|
|
543
|
+
children: e.page.title || e.page.path
|
|
544
|
+
})] }) : null,
|
|
545
|
+
/* @__PURE__ */ m("span", {
|
|
546
|
+
class: "ck-item-sep",
|
|
547
|
+
children: [" · ", i("messageCount", e.message_count)]
|
|
548
|
+
}),
|
|
549
|
+
c && e.page.branch && e.page.branch !== s ? /* @__PURE__ */ m("span", {
|
|
550
|
+
class: "ck-item-sep",
|
|
551
|
+
title: e.page.branch,
|
|
552
|
+
children: [" · ", a("onBranch", { branch: ye(e.page.branch) })]
|
|
553
|
+
}) : null,
|
|
554
|
+
re ? /* @__PURE__ */ m("span", {
|
|
555
|
+
class: "ck-item-check",
|
|
556
|
+
children: [
|
|
557
|
+
" · ",
|
|
558
|
+
/* @__PURE__ */ m(S, {
|
|
559
|
+
name: "check",
|
|
560
|
+
size: 12
|
|
561
|
+
}),
|
|
562
|
+
re
|
|
563
|
+
]
|
|
564
|
+
}) : null,
|
|
565
|
+
x.length ? /* @__PURE__ */ m("span", {
|
|
566
|
+
class: "ck-item-reactions",
|
|
567
|
+
"aria-label": x.map((e) => i("reactionLabel", e.count, { emoji: e.emoji })).join(", "),
|
|
568
|
+
children: x.map((e) => /* @__PURE__ */ m("span", { children: [/* @__PURE__ */ m(oe, { char: e.emoji }), e.count] }))
|
|
569
|
+
}) : null,
|
|
570
|
+
y.length ? /* @__PURE__ */ m("span", {
|
|
571
|
+
class: "ck-faces ck-item-faces",
|
|
572
|
+
title: `${a("assigneeFilter")}: ${y.map((e) => e.name).join(", ")}`,
|
|
573
|
+
children: y.slice(0, 3).map((e) => /* @__PURE__ */ m(ie, { person: e }))
|
|
574
|
+
}) : null
|
|
575
|
+
]
|
|
576
|
+
})
|
|
577
|
+
]
|
|
578
|
+
}), v ? /* @__PURE__ */ m("img", {
|
|
579
|
+
class: "ck-item-thumb",
|
|
580
|
+
src: v,
|
|
581
|
+
alt: a("screenshot"),
|
|
582
|
+
loading: "lazy"
|
|
583
|
+
}) : null]
|
|
584
|
+
}),
|
|
585
|
+
_ ? null : /* @__PURE__ */ m("span", {
|
|
586
|
+
class: "ck-item-actions",
|
|
587
|
+
children: [u && !T ? /* @__PURE__ */ m("button", {
|
|
588
|
+
class: "ck-ghost ck-ghost-sm",
|
|
589
|
+
"aria-label": a("resolveRef", { ref: e.reference }),
|
|
590
|
+
title: a("resolve"),
|
|
591
|
+
onClick: ee,
|
|
592
|
+
children: /* @__PURE__ */ m(S, {
|
|
593
|
+
name: "check",
|
|
594
|
+
size: 14
|
|
595
|
+
})
|
|
596
|
+
}) : null, /* @__PURE__ */ m("button", {
|
|
597
|
+
class: "ck-ghost ck-ghost-sm",
|
|
598
|
+
"aria-label": a("copyLinkRef", { ref: e.reference }),
|
|
599
|
+
title: a("copyLink"),
|
|
600
|
+
onClick: g,
|
|
601
|
+
children: /* @__PURE__ */ m(S, {
|
|
602
|
+
name: "link",
|
|
603
|
+
size: 14
|
|
604
|
+
})
|
|
605
|
+
})]
|
|
606
|
+
})
|
|
607
|
+
]
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
function ve(e) {
|
|
611
|
+
return e.trim().split(/\s+/)[0] || e;
|
|
612
|
+
}
|
|
613
|
+
function ye(e) {
|
|
614
|
+
return e.length > 28 ? `${e.slice(0, 27)}…` : e;
|
|
615
|
+
}
|
|
616
|
+
// src/ui/Panel.tsx
|
|
617
|
+
k(".ck-live-note .ck-btn{flex:none;margin-inline-start:auto}.ck-item-meta .ck-avatar{--ck-av:16px;margin-inline-end:2px}.ck-panel-list,.ck-panel-detail{flex-direction:column;flex:1;min-height:0;display:flex}.ck-panel-list[data-back]{animation:ck-slide-back var(--ck-dur) var(--ck-ease)}.ck-root[dir=rtl] .ck-panel-list[data-back]{animation-name:ck-slide-back-rtl}@keyframes ck-slide-back{0%{opacity:.4;translate:-16px}}@keyframes ck-slide-back-rtl{0%{opacity:.4;translate:16px}}.ck-panel-list>.ck-card-body{padding:0}.ck-here{font-size:var(--ck-fs-sm);color:var(--ck-text-muted);white-space:nowrap;font-variant-numeric:tabular-nums;align-items:center;gap:8px;display:inline-flex}.ck-dot{background:var(--ck-success);border-radius:50%;width:8px;height:8px}.ck-faces{display:inline-flex}.ck-faces .ck-avatar{--ck-av:24px;box-shadow:0 0 0 2px var(--ck-bg);margin-inline-start:-6px}.ck-faces .ck-avatar:first-child{margin-inline-start:0}.ck-faces-more{font-size:var(--ck-fs-sm);color:var(--ck-text-muted);font-variant-numeric:tabular-nums;margin-inline-start:4px}.ck-agent-chip{flex:0 auto;gap:4px;min-width:0}.ck-agent-chip>span{text-overflow:ellipsis;min-width:0;overflow:hidden}.ck-tabs{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);gap:2px;margin:8px 16px 0;padding:4px;display:flex}.ck-tab{border-radius:var(--ck-radius-xs);min-width:0;min-height:32px;font-size:var(--ck-fs-md);color:var(--ck-text-muted);white-space:nowrap;transition:background-color var(--ck-fast), color var(--ck-fast);background:0 0;border:0;flex:1;justify-content:center;align-items:center;gap:4px;padding:4px 8px;font-weight:600;display:inline-flex}.ck-tab[aria-selected=true]{color:var(--ck-text);background:var(--ck-bg);box-shadow:var(--ck-shadow-sm)}.ck-tab:focus-visible{outline-offset:-2px}.ck-tab-label{text-overflow:ellipsis;min-width:0;overflow:hidden}.ck-tab .ck-count{flex:none}.ck-count{border-radius:var(--ck-radius-pill);background:var(--ck-bg-hover);min-width:18px;height:18px;color:var(--ck-text-muted);font-size:var(--ck-fs-xs);text-align:center;font-variant-numeric:tabular-nums;padding:0 4px;font-weight:700;line-height:18px;display:inline-block}.ck-tab[aria-selected=true] .ck-count{background:var(--ck-accent-soft);color:var(--ck-accent-text)}.ck-chip .ck-count{min-width:16px;height:16px;margin-inline-start:2px;padding:0 4px;line-height:16px}.ck-pad-x{margin:8px 16px 0}.ck-live-note{align-items:center;gap:8px;display:flex}.ck-filters{gap:8px;padding:8px 16px;display:flex}.ck-filters+.ck-filters{padding-top:0}#ck-more-filters{flex-wrap:wrap}.ck-filters .ck-choose,.ck-filters .ck-people-pick{flex:none}#ck-more-filters .ck-choose-btn{height:32px;font-size:var(--ck-fs-md);padding-block-start:0;padding-block-end:0}.ck-search{flex:1;align-items:center;min-width:0;display:flex;position:relative}.ck-search>svg{color:var(--ck-text-muted);pointer-events:none;position:absolute}.ck-search>svg: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:12px}.ck-search>svg: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:12px}.ck-search>svg:-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:12px}.ck-search>svg: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:12px}.ck-search .ck-input{padding-inline-start:32px;padding-inline-end:32px}.ck-search .ck-ghost{place-items:center;width:24px;height:24px;padding:0;display:grid;position:absolute;right:4px}.ck-branchbar{flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px 0;display:flex}.ck-quick-filters{padding-top:0}.ck-chip-quiet{background:0 0;border-color:#0000}.ck-result-count{font-size:var(--ck-fs-sm);font-variant-numeric:tabular-nums;white-space:nowrap;margin-inline-start:auto}.ck-choose,.ck-people-pick{position:relative}.ck-choose-btn{text-align:start;white-space:nowrap;cursor:pointer;align-items:center;gap:8px;width:auto;max-width:180px;padding-inline-start:12px;padding-inline-end:8px;display:inline-flex}.ck-choose-btn bdi{text-overflow:ellipsis;min-width:0;overflow:hidden}.ck-choose-btn svg{color:var(--ck-text-muted);transition:rotate var(--ck-dur) var(--ck-ease);flex:none;rotate:90deg}.ck-choose-btn[aria-expanded=true] svg{rotate:-90deg}.ck-choose[data-compact] .ck-choose-btn{height:28px;font-size:var(--ck-fs-sm);color:var(--ck-text-muted);border-radius:var(--ck-radius-pill);padding-block-start:0;padding-block-end:0;font-weight:600}.ck-choose-menu,.ck-people-menu{z-index:4;top:calc(100% + 4px);overscroll-behavior:contain;background:var(--ck-bg);border-radius:var(--ck-radius-md);width:max-content;max-width:280px;max-height:260px;box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);border:1px solid #0000;gap:2px;padding:4px;display:grid;position:absolute;overflow:hidden auto}.ck-choose-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-choose-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-people-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-people-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-choose-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-choose-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-people-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-people-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-choose-menu{min-width:180px}.ck-people-menu{min-width:200px;max-height:240px}.ck-choose-menu[data-end]: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:auto;right:0}.ck-choose-menu[data-end]: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:auto;right:0}.ck-people-menu[data-end]: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:auto;right:0}.ck-people-menu[data-end]: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:auto;right:0}.ck-choose-menu[data-end]:-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;right:auto}.ck-choose-menu[data-end]: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;right:auto}.ck-people-menu[data-end]:-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;right:auto}.ck-people-menu[data-end]: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;right:auto}.ck-people-btn{max-width:180px}.ck-choose-menu button{border-radius:var(--ck-radius-xs);text-align:start;width:100%;min-height:32px;font-size:var(--ck-fs-md);white-space:nowrap;text-overflow:ellipsis;transition:background-color var(--ck-fast);background:0 0;border:0;padding:4px 8px;display:block;overflow:hidden}.ck-choose-menu button[aria-selected=true]{background:var(--ck-accent-soft);font-weight:600}.ck-choose-menu button:focus-visible{outline-offset:-2px}.ck-people-menu .ck-check{border-radius:var(--ck-radius-xs);min-width:0;min-height:32px;font-size:var(--ck-fs-md);transition:background-color var(--ck-fast);align-items:center;margin:0;padding:4px 8px}.ck-people-menu .ck-check input{margin:0}.ck-people-menu .ck-check bdi{overflow-wrap:anywhere;min-width:0}.ck-people-menu .ck-check:has(:focus-visible){outline:2px solid var(--ck-accent-text);outline-offset:-2px}.ck-people-menu .ck-check input:focus-visible{outline:none}.ck-list{margin:0;padding:4px 8px;list-style:none}.ck-list>li{position:relative}.ck-list>li+li{border-top:1px solid var(--ck-hairline)}.ck-item{text-align:start;border-radius:var(--ck-radius-sm);width:100%;transition:background-color var(--ck-fast);background:0 0;border:0;padding:12px 8px;display:block}.ck-item:focus-visible{outline-offset:-2px}.ck-item:active{background:var(--ck-bg-hover)}.ck-item[data-unread=true]{background:var(--ck-accent-soft)}.ck-item[data-shot]{grid-template-columns:minmax(0,1fr) 64px;align-items:start;gap:12px;display:grid}.ck-item-main{min-width:0}.ck-list>li[data-done] .ck-item-main{opacity:.6}.ck-item-top{font-size:var(--ck-fs-sm);color:var(--ck-text-muted);align-items:flex-start;gap:8px;line-height:1.67;display:flex}.ck-item-tags{flex-wrap:wrap;flex:1;align-items:center;gap:4px 8px;min-width:0;display:flex}.ck-item-tags>span:not([class]){overflow-wrap:anywhere;min-width:0}.ck-item-tags>.ck-tag{text-overflow:ellipsis;min-width:0;max-width:100%;overflow:hidden}.ck-item-tags>.ck-status{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;display:block;overflow:hidden}.ck-item-tags>.ck-status:before{vertical-align:middle;margin-inline-end:6px;display:inline-block}.ck-item-tags>strong{color:var(--ck-text);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.ck-item-tags strong{color:var(--ck-text)}.ck-item-text{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:4px;line-height:1.45;display:-webkit-box;overflow:hidden}.ck-item-meta{white-space:nowrap;align-items:center;gap:4px;min-width:0;margin-top:4px;display:flex;overflow:hidden}.ck-item-meta .ck-avatar{--ck-av:16px}.ck-item-meta bdi,.ck-item-sep{text-overflow:ellipsis;min-width:0;overflow:hidden}.ck-item-meta>:-webkit-any(.ck-avatar,.ck-item-check,.ck-item-reactions,.ck-item-faces){flex:none}.ck-item-meta>:is(.ck-avatar,.ck-item-check,.ck-item-reactions,.ck-item-faces){flex:none}.ck-item-thumb{object-fit:cover;object-position:top;border-radius:var(--ck-radius-xs);background:var(--ck-bg-muted);outline:1px solid var(--ck-img-outline);outline-offset:-1px;width:64px;height:44px;margin-top:2px}.ck-kind,.ck-flag{color:var(--ck-text-muted);place-items:center;display:inline-grid}.ck-flag[data-priority=urgent]{color:var(--ck-danger)}.ck-flag[data-priority=high]{color:color-mix(in srgb, var(--ck-danger) 50%, var(--ck-warning))}.ck-flag[data-priority=medium]{color:color-mix(in srgb, var(--ck-review) 70%, var(--ck-text))}.ck-tag{border-radius:var(--ck-radius-pill);font-size:var(--ck-fs-xs);background:var(--ck-bg-hover);color:var(--ck-text-muted);white-space:nowrap;padding:0 8px;font-weight:600;line-height:18px}.ck-badge-soft{background:color-mix(in srgb, var(--ck-warning) 14%, transparent);color:color-mix(in srgb, var(--ck-warning) 80%, var(--ck-text))}.ck-item-check{font-variant-numeric:tabular-nums;align-items:center;gap:2px;display:inline-flex}.ck-item-reactions{font-variant-numeric:tabular-nums;gap:8px;margin-inline-start:4px;display:inline-flex}.ck-item-reactions>span{align-items:center;gap:2px;display:inline-flex}.ck-item-reactions .ck-emoji{width:12px;height:12px}.ck-item-faces{margin-inline-start:auto;padding-inline-start:4px}.ck-item-faces .ck-avatar{--ck-av:16px;margin-inline-start:-4px;margin-inline-end:0}.ck-item-actions{top:8px;border-radius:var(--ck-radius-sm);background:var(--ck-bg);box-shadow:var(--ck-shadow-sm);opacity:0;pointer-events:none;transition:opacity var(--ck-fast);gap:2px;padding:2px;display:flex;position:absolute}.ck-item-actions: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))){right:8px}.ck-item-actions: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))){right:8px}.ck-item-actions:-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:8px}.ck-item-actions: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:8px}.ck-list>li:has(:focus-visible) .ck-item-actions{opacity:1;pointer-events:auto}.ck-item-actions .ck-ghost{border-radius:var(--ck-radius-xs);place-items:center;width:28px;height:28px;padding:0;display:grid}.ck-pad{padding:8px 16px}.ck-list-foot{flex-wrap:wrap;gap:8px;display:flex}.ck-loading{padding:4px 16px}.ck-loading-row{padding:12px 0}.ck-loading-row+.ck-loading-row{border-top:1px solid var(--ck-hairline)}.ck-list>li[data-picking] .ck-item{padding-inline-start:36px}.ck-list>li[data-picking] .ck-item[aria-pressed=true]{background:color-mix(in srgb, var(--ck-accent) 8%, transparent)}.ck-pick{z-index:1;width:16px;height:16px;accent-color:var(--ck-accent);cursor:pointer;margin:0;position:absolute;top:14px}.ck-pick: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:12px}.ck-pick: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:12px}.ck-pick:-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:12px}.ck-pick: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:12px}.ck-pickbar{border-top:1px solid var(--ck-hairline);background:var(--ck-bg);align-items:center;gap:8px;padding:8px 16px;display:flex;position:relative}.ck-pickbar>.ck-muted{min-width:0;font-size:var(--ck-fs-md);font-variant-numeric:tabular-nums;flex:1}.ck-agent-menu{top:auto;right:auto;bottom:calc(100% + 8px)}.ck-agent-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))){right:12px}.ck-agent-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))){right:12px}.ck-agent-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)){left:12px}.ck-agent-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)){left:12px}.ck-agent-menu button[aria-disabled=true]{opacity:.5;cursor:default}.ck-agent-note{font-size:var(--ck-fs-sm);margin:4px 8px}.ck-unread{background:var(--ck-accent-text);border-radius:50%;flex:none;width:8px;height:8px;margin-block-start:6px;margin-block-end:6px}.ck-sr{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ck-grabber{display:none}@media (max-width:520px){.ck-grabber{touch-action:none;flex:none;place-items:center;height:16px;display:grid}.ck-grabber:before{content:\"\";background:var(--ck-border);border-radius:2px;width:36px;height:4px}.ck-panel .ck-card-head{touch-action:none}.ck-panel-list>:not(:-webkit-any(.ck-card-body,.ck-card-head)){touch-action:pan-x}.ck-panel-list>:not(:is(.ck-card-body,.ck-card-head)){touch-action:pan-x}}@media (max-width:400px){.ck-agent-chip>span{display:none}}@media (max-height:480px){.ck-panel-list{overflow-y:auto}.ck-panel-list>.ck-card-body{flex:none;overflow:visible}.ck-root:has(.ck-panel) .ck-launcher[data-covered=true]{display:none}}.ck-signoff{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);font-size:var(--ck-fs-md);flex-wrap:wrap;align-items:center;gap:8px 12px;margin:8px 16px 4px;padding:8px 12px;line-height:1.45;display:flex}.ck-signoff[data-state=mine],.ck-signoff[data-state=others]{background:color-mix(in srgb, var(--ck-success) 10%, var(--ck-bg))}.ck-signoff[data-state=outdated]{background:color-mix(in srgb, var(--ck-review) 16%, var(--ck-bg))}.ck-signoff-text{overflow-wrap:anywhere;text-wrap:pretty;flex:180px;min-width:0}.ck-signoff-text strong{color:var(--ck-text);font-weight:600}.ck-signoff-sub{color:var(--ck-text-muted);font-size:var(--ck-fs-sm);margin-top:2px;display:block}.ck-signoff-note:before{content:\"“\"}.ck-signoff-note:after{content:\"”\"}.ck-signoff>.ck-btn,.ck-signoff>.ck-chip{flex:none}.ck-signoff-form{flex-wrap:wrap;flex:100%;gap:8px;display:flex}.ck-signoff-form .ck-input{flex:160px;min-width:0}@media (hover:hover){.ck-tab:hover{color:var(--ck-text)}.ck-list>li:hover .ck-item-actions{opacity:1;pointer-events:auto}.ck-item:hover{background:var(--ck-bg-muted)}.ck-item[data-unread=true]:hover{background:color-mix(in srgb, var(--ck-accent) 18%, var(--ck-bg))}.ck-choose-menu button:hover,.ck-people-menu .ck-check:hover{background:var(--ck-bg-hover)}.ck-choose-menu button[aria-selected=true]:hover{background:color-mix(in srgb, var(--ck-accent) 18%, var(--ck-bg))}.ck-agent-menu button[aria-disabled=true]:hover{background:0 0}}@media (pointer:coarse){.ck-tab{min-height:44px}.ck-item{min-height:48px}.ck-choose-btn,.ck-choose-menu button,.ck-people-menu .ck-check{min-height:44px}.ck-choose[data-compact] .ck-choose-btn{height:36px;min-height:36px}.ck-item-actions{display:none}.ck-pick{width:20px;height:20px;top:12px}.ck-list>li[data-picking] .ck-item{padding-inline-start:44px}}@media (forced-colors:active){.ck-tab[aria-selected=true],.ck-choose-menu button[aria-selected=true],.ck-chip[aria-pressed=true]{color:highlighttext;background:highlight}.ck-unread{background:canvastext}}@media (prefers-reduced-motion:reduce){.ck-panel-list[data-back],.ck-choose-menu,.ck-people-menu{animation:none}.ck-choose-btn svg{transition:none}.ck-grabber{display:none}}");
|
|
618
|
+
var be = {
|
|
619
|
+
urgent: 4,
|
|
620
|
+
high: 3,
|
|
621
|
+
medium: 2,
|
|
622
|
+
low: 1,
|
|
623
|
+
none: 0
|
|
624
|
+
};
|
|
625
|
+
function U({ client: t, side: n, dock: r = "bottom", onClose: l, onOpen: u, onError: d, detail: p, notify: _ = () => void 0, version: v, reveal: b }) {
|
|
626
|
+
let x = j(t.state, (e) => e.session), C = j(t.state, (e) => e.threads), w = j(t.state, (e) => e.moreThreads), T = j(t.state, (e) => e.unread), D = j(t.state, (e) => e.allBranches), O = j(t.state, (e) => e.here), k = j(t.state, (e) => e.config?.read_only ?? !1), A = t.options.branch, oe = re(), [M, N] = c(T > 0 && !b ? "inbox" : "page"), [P, F] = c({ state: "loading" }), [L, R] = c(null), [z, de] = c(!1), B = f(0), [fe, pe] = c({ state: "loading" }), [me, he] = c(null), V = f(0), [H, ve] = c(""), [U, Ce] = c("active"), [we, De] = c(0), [W, Oe] = c([]), [ke, Ae] = c(""), [G, je] = c(!1), [K, Me] = c(null), [Ne, Pe] = c([]), q = j(t.state, (e) => e.team), Fe = !!x?.capabilities.export_for_agents, [J, Ie] = c(null), Le = (e) => Ie((t) => {
|
|
627
|
+
let n = new Set(t);
|
|
628
|
+
return n.delete(e) || n.add(e), n;
|
|
629
|
+
}), Re = () => Ie(null);
|
|
630
|
+
o(Re, [M]), o(() => void (b && N("page")), [b]);
|
|
631
|
+
let [Y, ze] = c(null), [X, Be] = c(!1), [Z, Ve] = c("recent"), He = j(t.state, (e) => e.live), [Ue, We] = c(!1);
|
|
632
|
+
o(() => {
|
|
633
|
+
if (He !== "lost") return We(!1);
|
|
634
|
+
let e = setTimeout(() => We(!0), 4e3);
|
|
635
|
+
return () => clearTimeout(e);
|
|
636
|
+
}, [He]);
|
|
637
|
+
let Ge = f(null), [Ke, qe] = c({
|
|
638
|
+
people: [],
|
|
639
|
+
labels: []
|
|
640
|
+
}), Je = f(null), Ye = f(null), Xe = f(null), Ze = f(!1), Qe = Ze.current && !p;
|
|
641
|
+
Ze.current = !!p, s(() => {
|
|
642
|
+
if (p || !Xe.current) return;
|
|
643
|
+
let e = Xe.current;
|
|
644
|
+
Xe.current = null, [...Ye.current?.querySelectorAll(".ck-item[data-id]") ?? []].find((t) => t.dataset.id === e)?.focus();
|
|
645
|
+
}, [!!p]);
|
|
646
|
+
let $e = (e, t) => {
|
|
647
|
+
Xe.current = typeof e == "string" ? e : e.id, u(e, t);
|
|
648
|
+
};
|
|
649
|
+
s(() => {
|
|
650
|
+
matchMedia("(pointer: fine)").matches && Ge.current ? Ge.current.focus({ preventScroll: !0 }) : Je.current?.querySelector("[aria-selected=true]")?.focus({ preventScroll: !0 });
|
|
651
|
+
}, []);
|
|
652
|
+
let et = !!(H || W.length || Y || ke || G || U !== "active" || K), tt = et, nt = () => {
|
|
653
|
+
ve(""), Ce("active"), Oe([]), ze(null), Ve("recent"), Ae(""), je(!1), Me(null);
|
|
654
|
+
}, rt = [
|
|
655
|
+
W.length > 0,
|
|
656
|
+
Y !== null,
|
|
657
|
+
U !== "active",
|
|
658
|
+
Z !== "recent",
|
|
659
|
+
!!ke,
|
|
660
|
+
G,
|
|
661
|
+
!!K
|
|
662
|
+
].filter(Boolean).length, it = W.includes("none") ? "none" : W.join(","), Q = !!x?.capabilities.triage, at = () => ({
|
|
663
|
+
q: H || void 0,
|
|
664
|
+
status: U,
|
|
665
|
+
branch: K ?? t.branchFilter(),
|
|
666
|
+
page_url: M === "page" ? e() : void 0,
|
|
667
|
+
assignee: it || void 0,
|
|
668
|
+
label: Y ?? void 0,
|
|
669
|
+
priority: ke || void 0,
|
|
670
|
+
author: G ? "me" : void 0,
|
|
671
|
+
sort: Z
|
|
672
|
+
}), ot = (e) => e.filter((e) => Ee(e, W, Y, x));
|
|
673
|
+
o(() => {
|
|
674
|
+
if (M === "inbox" || M === "page" && !et) return;
|
|
675
|
+
let e = ++B.current;
|
|
676
|
+
F({ state: "loading" }), R(null);
|
|
677
|
+
let n = setTimeout(() => {
|
|
678
|
+
t.listThreads(at()).then((t) => {
|
|
679
|
+
e === B.current && (F({
|
|
680
|
+
state: "ready",
|
|
681
|
+
data: ot(t.data)
|
|
682
|
+
}), R(t.next_cursor ?? null));
|
|
683
|
+
}, () => e === B.current && F({ state: "error" }));
|
|
684
|
+
}, H ? 250 : 0);
|
|
685
|
+
return () => clearTimeout(n);
|
|
686
|
+
}, [
|
|
687
|
+
M,
|
|
688
|
+
H,
|
|
689
|
+
U,
|
|
690
|
+
we,
|
|
691
|
+
D,
|
|
692
|
+
it,
|
|
693
|
+
Y,
|
|
694
|
+
et,
|
|
695
|
+
Z,
|
|
696
|
+
ke,
|
|
697
|
+
G,
|
|
698
|
+
K
|
|
699
|
+
]);
|
|
700
|
+
let st = () => {
|
|
701
|
+
if (!L || z) return;
|
|
702
|
+
let e = B.current;
|
|
703
|
+
de(!0), t.listThreads({
|
|
704
|
+
...at(),
|
|
705
|
+
cursor: L
|
|
706
|
+
}).then((t) => {
|
|
707
|
+
e === B.current && (F((e) => e.state === "ready" ? {
|
|
708
|
+
state: "ready",
|
|
709
|
+
data: [...e.data, ...ot(t.data).filter((t) => !e.data.some((e) => e.id === t.id))]
|
|
710
|
+
} : e), R(t.next_cursor ?? null));
|
|
711
|
+
}, d).finally(() => de(!1));
|
|
712
|
+
};
|
|
713
|
+
o(() => {
|
|
714
|
+
A && Q && t.branches().then(Pe);
|
|
715
|
+
}, []), o(() => {
|
|
716
|
+
!X || Ke.people.length || Ke.labels.length || Promise.all([t.people().catch(() => []), t.labels().catch(() => [])]).then(([e, t]) => qe({
|
|
717
|
+
people: e.filter((e) => e.assignable && e.id !== null),
|
|
718
|
+
labels: t
|
|
719
|
+
}));
|
|
720
|
+
}, [X]), o(() => {
|
|
721
|
+
if (M !== "inbox") return;
|
|
722
|
+
let e = ++V.current;
|
|
723
|
+
t.inboxPage().then((t) => e === V.current && (pe({
|
|
724
|
+
state: "ready",
|
|
725
|
+
data: t.data
|
|
726
|
+
}), he(t.next_cursor)), () => e === V.current && pe({ state: "error" }));
|
|
727
|
+
}, [
|
|
728
|
+
M,
|
|
729
|
+
T,
|
|
730
|
+
we
|
|
731
|
+
]);
|
|
732
|
+
let ct = () => {
|
|
733
|
+
if (!me || z) return;
|
|
734
|
+
let e = V.current;
|
|
735
|
+
de(!0), t.inboxPage(me).then((t) => {
|
|
736
|
+
e === V.current && (pe((e) => e.state === "ready" ? {
|
|
737
|
+
state: "ready",
|
|
738
|
+
data: [...e.data, ...t.data.filter((t) => !e.data.some((e) => e.id === t.id))]
|
|
739
|
+
} : e), he(t.next_cursor));
|
|
740
|
+
}, d).finally(() => de(!1));
|
|
741
|
+
}, lt = () => De((e) => e + 1), ut = Te(Ye, l);
|
|
742
|
+
o(() => {
|
|
743
|
+
let e = (e) => !e.composedPath().some((e) => e instanceof HTMLElement && e.hasAttribute("data-commentkit-ui")), t = (t) => e(t) && l(), n = (t) => {
|
|
744
|
+
t.pointerType === "mouse" && e(t) && t.button === 0 && !g(xe) && (g(xe, "1"), _({
|
|
745
|
+
text: a("doubleClickHint"),
|
|
746
|
+
tone: "info"
|
|
747
|
+
}));
|
|
748
|
+
};
|
|
749
|
+
return addEventListener("dblclick", t, !0), addEventListener("pointerdown", n, !0), () => {
|
|
750
|
+
removeEventListener("dblclick", t, !0), removeEventListener("pointerdown", n, !0);
|
|
751
|
+
};
|
|
752
|
+
}, []);
|
|
753
|
+
let dt = (e) => e && F((t) => t.state === "ready" ? {
|
|
754
|
+
...t,
|
|
755
|
+
data: t.data.map((t) => t.id === e.id ? e : t)
|
|
756
|
+
} : t), ft = async (e) => {
|
|
757
|
+
try {
|
|
758
|
+
dt(await t.updateThread(e.id, { status: "resolved" })), _({
|
|
759
|
+
text: a("resolvedToast", { ref: e.reference }),
|
|
760
|
+
tone: "success",
|
|
761
|
+
action: {
|
|
762
|
+
label: a("undo"),
|
|
763
|
+
run: () => void ee(t, e, _, d).then(dt)
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
} catch (e) {
|
|
767
|
+
d(e);
|
|
768
|
+
}
|
|
769
|
+
}, pt = async (e) => {
|
|
770
|
+
let t = ne(e.page.url);
|
|
771
|
+
if (t) try {
|
|
772
|
+
await navigator.clipboard.writeText(ae(t, e.id)), _({ text: a("copied") });
|
|
773
|
+
} catch {
|
|
774
|
+
d(Error(a("errorGeneric")));
|
|
775
|
+
}
|
|
776
|
+
}, mt = Z === "recent" ? C : [...C].sort((e, t) => Z === "oldest" ? e.created_at.localeCompare(t.created_at) : (be[t.priority] ?? 0) - (be[e.priority] ?? 0) || t.last_activity_at.localeCompare(e.last_activity_at)), $ = M === "page" && !et ? {
|
|
777
|
+
state: "ready",
|
|
778
|
+
data: mt
|
|
779
|
+
} : P, ht = $.state === "ready" ? $.data.length : null, gt = $ === P ? L : null, _t = ht === null || M === "inbox" ? null : gt ? a("resultsMore", { n: ht }) : M === "page" && et ? a("countOf", {
|
|
780
|
+
n: ht,
|
|
781
|
+
total: C.length
|
|
782
|
+
}) : tt || M === "all" ? i("results", ht) : null, vt = [
|
|
783
|
+
[
|
|
784
|
+
"page",
|
|
785
|
+
"thisPage",
|
|
786
|
+
C.length
|
|
787
|
+
],
|
|
788
|
+
[
|
|
789
|
+
"all",
|
|
790
|
+
"allPages",
|
|
791
|
+
null
|
|
792
|
+
],
|
|
793
|
+
[
|
|
794
|
+
"inbox",
|
|
795
|
+
"notifications",
|
|
796
|
+
T || null
|
|
797
|
+
]
|
|
798
|
+
], yt = J && $.state === "ready" ? $.data.filter((e) => J.has(e.id)) : [], bt = (e) => {
|
|
799
|
+
e.stopPropagation(), e.key === "Escape" && H ? (e.preventDefault(), ve("")) : e.key === "Escape" && l(!0);
|
|
800
|
+
};
|
|
801
|
+
return /* @__PURE__ */ m(y, {
|
|
802
|
+
value: te(t, _, d, x),
|
|
803
|
+
children: /* @__PURE__ */ m("aside", {
|
|
804
|
+
class: "ck-panel",
|
|
805
|
+
ref: Ye,
|
|
806
|
+
"data-side": n,
|
|
807
|
+
"data-dock": r,
|
|
808
|
+
"aria-label": a("inbox"),
|
|
809
|
+
"data-commentkit-ui": !0,
|
|
810
|
+
...ut,
|
|
811
|
+
onKeyDown: (e) => {
|
|
812
|
+
if (!(e.key !== "Escape" || p)) {
|
|
813
|
+
if (J) return void (e.stopPropagation(), Re());
|
|
814
|
+
l(!0);
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
children: [/* @__PURE__ */ m("div", {
|
|
818
|
+
class: "ck-grabber",
|
|
819
|
+
"aria-hidden": "true"
|
|
820
|
+
}), p ? /* @__PURE__ */ m("div", {
|
|
821
|
+
class: "ck-panel-detail",
|
|
822
|
+
children: p
|
|
823
|
+
}) : /* @__PURE__ */ m("div", {
|
|
824
|
+
class: "ck-panel-list",
|
|
825
|
+
"data-back": Qe || void 0,
|
|
826
|
+
children: [
|
|
827
|
+
/* @__PURE__ */ m("div", {
|
|
828
|
+
class: "ck-card-head",
|
|
829
|
+
children: [
|
|
830
|
+
/* @__PURE__ */ m("span", {
|
|
831
|
+
class: "ck-card-title",
|
|
832
|
+
children: a("inbox")
|
|
833
|
+
}),
|
|
834
|
+
q.length > 1 ? /* @__PURE__ */ m("span", {
|
|
835
|
+
class: "ck-here",
|
|
836
|
+
role: "status",
|
|
837
|
+
"aria-label": a("teamHere", { names: q.map((e) => e.name).join(", ") }),
|
|
838
|
+
title: q.map((e) => e.name).join(", "),
|
|
839
|
+
children: [/* @__PURE__ */ m("span", {
|
|
840
|
+
class: "ck-faces",
|
|
841
|
+
"aria-hidden": "true",
|
|
842
|
+
children: q.slice(0, 4).map((e) => /* @__PURE__ */ m(ie, { person: e }))
|
|
843
|
+
}), q.length > 4 ? /* @__PURE__ */ m("span", {
|
|
844
|
+
class: "ck-faces-more",
|
|
845
|
+
children: ["+", q.length - 4]
|
|
846
|
+
}) : null]
|
|
847
|
+
}) : O > 1 ? /* @__PURE__ */ m("span", {
|
|
848
|
+
class: "ck-here",
|
|
849
|
+
role: "status",
|
|
850
|
+
children: [/* @__PURE__ */ m("span", {
|
|
851
|
+
"aria-hidden": "true",
|
|
852
|
+
class: "ck-dot"
|
|
853
|
+
}), i("peopleHere", O)]
|
|
854
|
+
}) : null,
|
|
855
|
+
Fe && M !== "inbox" && ht && !J ? /* @__PURE__ */ m("button", {
|
|
856
|
+
class: "ck-chip ck-agent-chip",
|
|
857
|
+
"aria-label": a("sendToAgent"),
|
|
858
|
+
title: a("sendToAgent"),
|
|
859
|
+
onClick: () => $.state === "ready" && Ie(new Set($.data.map((e) => e.id))),
|
|
860
|
+
children: [/* @__PURE__ */ m(S, {
|
|
861
|
+
name: "agent",
|
|
862
|
+
size: 14
|
|
863
|
+
}), /* @__PURE__ */ m("span", { children: a("sendToAgent") })]
|
|
864
|
+
}) : null,
|
|
865
|
+
/* @__PURE__ */ m("button", {
|
|
866
|
+
class: "ck-ghost",
|
|
867
|
+
onClick: () => l(),
|
|
868
|
+
"aria-label": a("close"),
|
|
869
|
+
title: a("close"),
|
|
870
|
+
children: /* @__PURE__ */ m(S, { name: "close" })
|
|
871
|
+
})
|
|
872
|
+
]
|
|
873
|
+
}),
|
|
874
|
+
/* @__PURE__ */ m("div", {
|
|
875
|
+
class: "ck-tabs",
|
|
876
|
+
role: "tablist",
|
|
877
|
+
ref: Je,
|
|
878
|
+
onKeyDown: (e) => E(e, "[role=tab]"),
|
|
879
|
+
children: vt.map(([e, t, n]) => /* @__PURE__ */ m("button", {
|
|
880
|
+
role: "tab",
|
|
881
|
+
id: `ck-tab-${e}`,
|
|
882
|
+
"aria-controls": "ck-tabpanel",
|
|
883
|
+
class: "ck-tab",
|
|
884
|
+
"aria-selected": M === e,
|
|
885
|
+
tabIndex: M === e ? 0 : -1,
|
|
886
|
+
onClick: () => N(e),
|
|
887
|
+
onFocus: () => N(e),
|
|
888
|
+
title: a(t),
|
|
889
|
+
children: [/* @__PURE__ */ m("span", {
|
|
890
|
+
class: "ck-tab-label",
|
|
891
|
+
children: a(t)
|
|
892
|
+
}), n ? /* @__PURE__ */ m("span", {
|
|
893
|
+
class: "ck-count",
|
|
894
|
+
children: [
|
|
895
|
+
/* @__PURE__ */ m("span", {
|
|
896
|
+
class: "ck-sr",
|
|
897
|
+
children: " ("
|
|
898
|
+
}),
|
|
899
|
+
Se(n),
|
|
900
|
+
/* @__PURE__ */ m("span", {
|
|
901
|
+
class: "ck-sr",
|
|
902
|
+
children: ")"
|
|
903
|
+
})
|
|
904
|
+
]
|
|
905
|
+
}) : null]
|
|
906
|
+
}))
|
|
907
|
+
}),
|
|
908
|
+
oe ? Ue ? /* @__PURE__ */ m("div", {
|
|
909
|
+
class: "ck-note ck-pad-x ck-live-note",
|
|
910
|
+
role: "status",
|
|
911
|
+
children: [
|
|
912
|
+
a("livePaused"),
|
|
913
|
+
" ",
|
|
914
|
+
/* @__PURE__ */ m("button", {
|
|
915
|
+
class: "ck-btn",
|
|
916
|
+
onClick: () => t.reconnectRealtime(),
|
|
917
|
+
children: a("retry")
|
|
918
|
+
})
|
|
919
|
+
]
|
|
920
|
+
}) : null : /* @__PURE__ */ m("div", {
|
|
921
|
+
class: "ck-note ck-pad-x",
|
|
922
|
+
"data-tone": "warning",
|
|
923
|
+
role: "status",
|
|
924
|
+
children: a("offline")
|
|
925
|
+
}),
|
|
926
|
+
k ? /* @__PURE__ */ m("div", {
|
|
927
|
+
class: "ck-note ck-pad-x",
|
|
928
|
+
role: "status",
|
|
929
|
+
children: a("readOnlyShort")
|
|
930
|
+
}) : null,
|
|
931
|
+
A && Q && M !== "inbox" ? /* @__PURE__ */ m("div", {
|
|
932
|
+
class: "ck-branchbar",
|
|
933
|
+
role: "group",
|
|
934
|
+
"aria-label": a("branchFilter"),
|
|
935
|
+
children: [
|
|
936
|
+
/* @__PURE__ */ m("button", {
|
|
937
|
+
class: "ck-chip",
|
|
938
|
+
"aria-pressed": !D && !K,
|
|
939
|
+
onClick: () => (Me(null), void t.setAllBranches(!1).catch(() => void 0)),
|
|
940
|
+
title: A,
|
|
941
|
+
children: a("thisBranch", { branch: ye(A) })
|
|
942
|
+
}),
|
|
943
|
+
/* @__PURE__ */ m("button", {
|
|
944
|
+
class: "ck-chip",
|
|
945
|
+
"aria-pressed": D && !K,
|
|
946
|
+
onClick: () => (Me(null), void t.setAllBranches(!0).catch(() => void 0)),
|
|
947
|
+
children: a("allBranches")
|
|
948
|
+
}),
|
|
949
|
+
Ne.some((e) => e.name !== A) ? /* @__PURE__ */ m(I, {
|
|
950
|
+
label: a("otherBranch"),
|
|
951
|
+
value: K ?? "",
|
|
952
|
+
onChange: (e) => Me(e || null),
|
|
953
|
+
compact: !0,
|
|
954
|
+
options: [["", a("otherBranch")], ...Ne.filter((e) => e.name !== A).map((e) => [e.name, `${ye(e.name)} (${e.open})`])]
|
|
955
|
+
}) : null
|
|
956
|
+
]
|
|
957
|
+
}) : null,
|
|
958
|
+
M === "inbox" ? null : /* @__PURE__ */ m(h, { children: [
|
|
959
|
+
/* @__PURE__ */ m("div", {
|
|
960
|
+
class: "ck-filters",
|
|
961
|
+
children: [/* @__PURE__ */ m("div", {
|
|
962
|
+
class: "ck-search",
|
|
963
|
+
children: [
|
|
964
|
+
/* @__PURE__ */ m(S, {
|
|
965
|
+
name: "search",
|
|
966
|
+
size: 16
|
|
967
|
+
}),
|
|
968
|
+
/* @__PURE__ */ m("input", {
|
|
969
|
+
ref: Ge,
|
|
970
|
+
class: "ck-input",
|
|
971
|
+
type: "text",
|
|
972
|
+
role: "searchbox",
|
|
973
|
+
"aria-label": a("search"),
|
|
974
|
+
placeholder: a("search"),
|
|
975
|
+
value: H,
|
|
976
|
+
onInput: (e) => ve(e.target.value),
|
|
977
|
+
onKeyDown: bt
|
|
978
|
+
}),
|
|
979
|
+
H ? /* @__PURE__ */ m("button", {
|
|
980
|
+
class: "ck-ghost ck-ghost-sm",
|
|
981
|
+
"aria-label": a("clearSearch"),
|
|
982
|
+
onClick: () => (ve(""), Ge.current?.focus()),
|
|
983
|
+
children: /* @__PURE__ */ m(S, {
|
|
984
|
+
name: "close",
|
|
985
|
+
size: 14
|
|
986
|
+
})
|
|
987
|
+
}) : null
|
|
988
|
+
]
|
|
989
|
+
}), /* @__PURE__ */ m(I, {
|
|
990
|
+
label: a("statusFilter"),
|
|
991
|
+
value: U,
|
|
992
|
+
onChange: Ce,
|
|
993
|
+
options: [
|
|
994
|
+
["active", a("status_open")],
|
|
995
|
+
["in_review", a("status_in_review")],
|
|
996
|
+
["resolved,closed", a("status_resolved")],
|
|
997
|
+
["all", a("allStatuses")]
|
|
998
|
+
]
|
|
999
|
+
})]
|
|
1000
|
+
}),
|
|
1001
|
+
/* @__PURE__ */ m("div", {
|
|
1002
|
+
class: "ck-branchbar ck-quick-filters",
|
|
1003
|
+
children: [
|
|
1004
|
+
Q ? /* @__PURE__ */ m("button", {
|
|
1005
|
+
class: "ck-chip",
|
|
1006
|
+
"aria-pressed": W.length === 1 && W[0] === "me",
|
|
1007
|
+
onClick: () => Oe(W.length === 1 && W[0] === "me" ? [] : ["me"]),
|
|
1008
|
+
children: a("assignedToMe")
|
|
1009
|
+
}) : null,
|
|
1010
|
+
x ? /* @__PURE__ */ m("button", {
|
|
1011
|
+
class: "ck-chip",
|
|
1012
|
+
"aria-pressed": G,
|
|
1013
|
+
onClick: () => je(!G),
|
|
1014
|
+
children: a("createdByMe")
|
|
1015
|
+
}) : null,
|
|
1016
|
+
Q ? /* @__PURE__ */ m("button", {
|
|
1017
|
+
class: "ck-chip",
|
|
1018
|
+
"aria-expanded": X,
|
|
1019
|
+
"aria-controls": X ? "ck-more-filters" : void 0,
|
|
1020
|
+
onClick: () => Be(!X),
|
|
1021
|
+
children: [a("filters"), rt ? /* @__PURE__ */ m("span", {
|
|
1022
|
+
class: "ck-count",
|
|
1023
|
+
"aria-label": i("filtersOn", rt),
|
|
1024
|
+
children: rt
|
|
1025
|
+
}) : null]
|
|
1026
|
+
}) : null,
|
|
1027
|
+
tt || Z !== "recent" ? /* @__PURE__ */ m("button", {
|
|
1028
|
+
class: "ck-chip ck-chip-quiet",
|
|
1029
|
+
onClick: nt,
|
|
1030
|
+
children: a("resetFilters")
|
|
1031
|
+
}) : null,
|
|
1032
|
+
/* @__PURE__ */ m("span", {
|
|
1033
|
+
class: "ck-muted ck-result-count",
|
|
1034
|
+
role: "status",
|
|
1035
|
+
children: _t ?? ""
|
|
1036
|
+
})
|
|
1037
|
+
]
|
|
1038
|
+
}),
|
|
1039
|
+
X && Q ? /* @__PURE__ */ m("div", {
|
|
1040
|
+
class: "ck-filters",
|
|
1041
|
+
id: "ck-more-filters",
|
|
1042
|
+
children: [
|
|
1043
|
+
/* @__PURE__ */ m(I, {
|
|
1044
|
+
label: a("sortBy"),
|
|
1045
|
+
value: Z,
|
|
1046
|
+
onChange: (e) => Ve(e),
|
|
1047
|
+
options: [
|
|
1048
|
+
["recent", a("sortRecent")],
|
|
1049
|
+
["oldest", a("sortOldest")],
|
|
1050
|
+
["priority", a("sortPriority")]
|
|
1051
|
+
]
|
|
1052
|
+
}),
|
|
1053
|
+
/* @__PURE__ */ m(I, {
|
|
1054
|
+
label: a("priority"),
|
|
1055
|
+
value: ke,
|
|
1056
|
+
onChange: Ae,
|
|
1057
|
+
options: [
|
|
1058
|
+
["", a("anyPriority")],
|
|
1059
|
+
["urgent,high", a("priorityImportant")],
|
|
1060
|
+
...[
|
|
1061
|
+
"urgent",
|
|
1062
|
+
"high",
|
|
1063
|
+
"medium",
|
|
1064
|
+
"low"
|
|
1065
|
+
].map((e) => [e, a(`priority_${e}`)])
|
|
1066
|
+
]
|
|
1067
|
+
}),
|
|
1068
|
+
/* @__PURE__ */ m(ce, {
|
|
1069
|
+
value: W,
|
|
1070
|
+
people: Ke.people,
|
|
1071
|
+
onChange: Oe
|
|
1072
|
+
}),
|
|
1073
|
+
/* @__PURE__ */ m(I, {
|
|
1074
|
+
label: a("labelFilter"),
|
|
1075
|
+
value: Y === null ? "" : String(Y),
|
|
1076
|
+
onChange: (e) => ze(e ? Number(e) : null),
|
|
1077
|
+
options: [["", a("anyLabel")], ...Ke.labels.map((e) => [String(e.id), e.name])]
|
|
1078
|
+
})
|
|
1079
|
+
]
|
|
1080
|
+
}) : null
|
|
1081
|
+
] }),
|
|
1082
|
+
/* @__PURE__ */ m("div", {
|
|
1083
|
+
class: "ck-card-body",
|
|
1084
|
+
id: "ck-tabpanel",
|
|
1085
|
+
role: "tabpanel",
|
|
1086
|
+
"aria-labelledby": `ck-tab-${M}`,
|
|
1087
|
+
"aria-busy": (M === "inbox" ? fe : $).state === "loading",
|
|
1088
|
+
children: [M === "page" ? /* @__PURE__ */ m(ge, {
|
|
1089
|
+
version: v,
|
|
1090
|
+
reveal: b
|
|
1091
|
+
}) : null, M === "inbox" ? /* @__PURE__ */ m(le, {
|
|
1092
|
+
load: fe,
|
|
1093
|
+
onRetry: lt,
|
|
1094
|
+
art: "caughtUp",
|
|
1095
|
+
empty: /* @__PURE__ */ m("strong", { children: a("allCaughtUp") }),
|
|
1096
|
+
children: (e) => /* @__PURE__ */ m(se, {
|
|
1097
|
+
items: e,
|
|
1098
|
+
onOpen: $e,
|
|
1099
|
+
more: !!me,
|
|
1100
|
+
loadingMore: z,
|
|
1101
|
+
onMore: ct,
|
|
1102
|
+
unread: T,
|
|
1103
|
+
onMarkAll: () => void t.markRead({ all: !0 }).catch(d)
|
|
1104
|
+
})
|
|
1105
|
+
}) : /* @__PURE__ */ m(le, {
|
|
1106
|
+
load: $,
|
|
1107
|
+
onRetry: lt,
|
|
1108
|
+
art: tt ? "noMatch" : "noFeedback",
|
|
1109
|
+
empty: tt ? /* @__PURE__ */ m(h, { children: [/* @__PURE__ */ m("strong", { children: a("noMatch") }), /* @__PURE__ */ m("button", {
|
|
1110
|
+
class: "ck-btn",
|
|
1111
|
+
onClick: nt,
|
|
1112
|
+
children: a("clearFilters")
|
|
1113
|
+
})] }) : /* @__PURE__ */ m(h, { children: [/* @__PURE__ */ m("strong", { children: a(M === "all" ? "nothingAnywhere" : "nothingHere") }), /* @__PURE__ */ m("span", {
|
|
1114
|
+
class: "ck-hint",
|
|
1115
|
+
children: a(matchMedia("(pointer: coarse)").matches ? "nothingHereHintTouch" : "nothingHereHint")
|
|
1116
|
+
})] }),
|
|
1117
|
+
children: (e) => /* @__PURE__ */ m(h, { children: [
|
|
1118
|
+
/* @__PURE__ */ m("ul", {
|
|
1119
|
+
class: "ck-list",
|
|
1120
|
+
onKeyDown: (e) => E(e, ".ck-item", !0),
|
|
1121
|
+
children: e.map((t) => /* @__PURE__ */ m(_e, {
|
|
1122
|
+
thread: t,
|
|
1123
|
+
tab: M === "all" ? "all" : "page",
|
|
1124
|
+
triager: Q,
|
|
1125
|
+
picked: J ? J.has(t.id) : void 0,
|
|
1126
|
+
branch: A,
|
|
1127
|
+
allBranches: D,
|
|
1128
|
+
canResolve: !!x?.capabilities.comment && !k,
|
|
1129
|
+
onOpen: () => $e(t, e.map((e) => e.id)),
|
|
1130
|
+
onToggle: () => Le(t.id),
|
|
1131
|
+
onResolve: () => void ft(t),
|
|
1132
|
+
onCopyLink: () => void pt(t)
|
|
1133
|
+
}))
|
|
1134
|
+
}),
|
|
1135
|
+
M === "page" && w ? /* @__PURE__ */ m("p", {
|
|
1136
|
+
class: "ck-pad ck-hint",
|
|
1137
|
+
role: "note",
|
|
1138
|
+
children: a("firstPageThreads", { n: 500 })
|
|
1139
|
+
}) : null,
|
|
1140
|
+
gt ? /* @__PURE__ */ m("div", {
|
|
1141
|
+
class: "ck-pad",
|
|
1142
|
+
children: /* @__PURE__ */ m("button", {
|
|
1143
|
+
class: "ck-btn",
|
|
1144
|
+
"aria-disabled": z || void 0,
|
|
1145
|
+
"aria-busy": z,
|
|
1146
|
+
onClick: () => !z && st(),
|
|
1147
|
+
children: a("showMore")
|
|
1148
|
+
})
|
|
1149
|
+
}) : null
|
|
1150
|
+
] })
|
|
1151
|
+
})]
|
|
1152
|
+
}),
|
|
1153
|
+
J ? /* @__PURE__ */ m(ue, {
|
|
1154
|
+
threads: yt,
|
|
1155
|
+
onCancel: Re,
|
|
1156
|
+
onDone: (e) => (_({
|
|
1157
|
+
text: e,
|
|
1158
|
+
tone: "success"
|
|
1159
|
+
}), Re())
|
|
1160
|
+
}) : null
|
|
1161
|
+
]
|
|
1162
|
+
})]
|
|
1163
|
+
})
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
var xe = "commentkit:dblclick-hint", Se = (e) => e > 99 ? "99+" : String(e), Ce = .4, we = .11;
|
|
1167
|
+
function Te(e, t) {
|
|
1168
|
+
let n = f(null), r = (r, i) => {
|
|
1169
|
+
let a = n.current, o = e.current;
|
|
1170
|
+
if (!a || !o || r.pointerId !== a.id) return;
|
|
1171
|
+
n.current = null, o.hasPointerCapture?.(r.pointerId) && o.releasePointerCapture(r.pointerId);
|
|
1172
|
+
let [s, c] = a.samples.filter(([e]) => r.timeStamp - e <= 100)[0] ?? [r.timeStamp, a.dy], l = r.timeStamp > s ? (a.dy - c) / (r.timeStamp - s) : 0;
|
|
1173
|
+
if (!i && a.dy > 0 && (a.dy > Ce * o.offsetHeight || l > we)) return t();
|
|
1174
|
+
o.style.transition = "transform var(--ck-dur) var(--ck-ease)", o.style.transform = "";
|
|
1175
|
+
};
|
|
1176
|
+
return {
|
|
1177
|
+
onPointerDown(t) {
|
|
1178
|
+
let r = e.current, i = t.target;
|
|
1179
|
+
if (!r || t.button !== 0 || !i.closest?.(".ck-grabber, .ck-card-head") || i.closest("button, a, input, select, textarea, [role=tab]") || !matchMedia("(max-width: 520px)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
1180
|
+
let a = getComputedStyle(r).transform, o = a && a !== "none" && typeof DOMMatrix == "function" ? new DOMMatrix(a).m42 : 0;
|
|
1181
|
+
r.style.transition = "none", r.style.transform = o ? `translateY(${o}px)` : "", n.current = {
|
|
1182
|
+
id: t.pointerId,
|
|
1183
|
+
y0: t.clientY - o,
|
|
1184
|
+
dy: o,
|
|
1185
|
+
samples: [[t.timeStamp, o]]
|
|
1186
|
+
}, r.setPointerCapture?.(t.pointerId);
|
|
1187
|
+
},
|
|
1188
|
+
onPointerMove(t) {
|
|
1189
|
+
let r = n.current, i = e.current;
|
|
1190
|
+
if (!r || !i || t.pointerId !== r.id) return;
|
|
1191
|
+
let a = t.clientY - r.y0;
|
|
1192
|
+
r.dy = a >= 0 ? a : -Math.sqrt(-a), r.samples.push([t.timeStamp, r.dy]), r.samples.length > 12 && r.samples.shift(), i.style.transform = `translateY(${r.dy}px)`;
|
|
1193
|
+
},
|
|
1194
|
+
onPointerUp: (e) => r(e, !1),
|
|
1195
|
+
onPointerCancel: (e) => r(e, !0),
|
|
1196
|
+
onTransitionEnd(t) {
|
|
1197
|
+
let n = e.current;
|
|
1198
|
+
n && t.target === n && t.propertyName === "transform" && (n.style.transition = "");
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
function Ee(e, t, n, r) {
|
|
1203
|
+
let i = e.assignees ?? (e.assignee ? [e.assignee] : []);
|
|
1204
|
+
return n !== null && e.labels && !e.labels.some((e) => e.id === n) ? !1 : t.length ? t.includes("none") ? !i.length : t.some((e) => e === "me" ? i.some((e) => !!r && e.id === r.person.id && e.type === r.person.type) : i.some((t) => t.id === e)) : !0;
|
|
1205
|
+
}
|
|
1206
|
+
export { U as Panel };
|