@commentkit/comment-kit 2.1.0 → 2.1.2
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 +17 -0
- package/dist/npm/chunks/{AgentSend-pA7Ufvye.js → AgentSend-DhG61w_r.js} +3 -3
- package/dist/npm/chunks/{Checklist-Cn9skOYK.js → Checklist-C2q5KzWe.js} +9 -8
- package/dist/npm/chunks/{Composer-D7H-pzGa.js → Composer-Dj0YAYOR.js} +32 -31
- package/dist/npm/chunks/{DatePicker-Nta5a1xD.js → DatePicker-TshUaQHj.js} +3 -3
- package/dist/npm/chunks/{Guest-Bi7hlzhs.js → Guest-bAxvxjbL.js} +6 -5
- package/dist/npm/chunks/{MarkupEditor-WU3USeTk.js → MarkupEditor-DnViTOOC.js} +9 -8
- package/dist/npm/chunks/{Panel-DhAzbUbC.js → Panel-C3_NURrp.js} +287 -286
- package/dist/npm/chunks/{Settings-BmKqPX40.js → Settings-BM7pWbwd.js} +19 -18
- package/dist/npm/chunks/{Shortcuts-Bl-c0Sez.js → Shortcuts-CFDTnP5H.js} +6 -6
- package/dist/npm/chunks/SignInFirst-CeiPhLx0.js +36 -0
- package/dist/npm/chunks/{StyleEditor-D6fUnlwq.js → StyleEditor-BUZrhAY6.js} +4 -4
- package/dist/npm/chunks/{StylePanel-C-Gikxt1.js → StylePanel-CFp-U7qa.js} +3 -3
- package/dist/npm/chunks/TaskFields-C4GddJTi.js +652 -0
- package/dist/npm/chunks/{ThreadCard-d_3pUB5V.js → ThreadCard-CwClbMNh.js} +48 -47
- package/dist/npm/chunks/{Viewer-BULQsi9-.js → Viewer-oM3stPeq.js} +3 -3
- package/dist/npm/chunks/{agent-DHdhIJ3s.js → agent-DfUu5BAp.js} +12 -12
- package/dist/npm/chunks/{ar-B5UszrQp.js → ar-DtfC6tHi.js} +2 -0
- package/dist/npm/chunks/{card-bits-cV8GdFWX.js → card-bits-BXOCnmcQ.js} +5 -5
- package/dist/npm/chunks/{client-Cv8ddtuM.js → client-BqcfSisZ.js} +7 -7
- package/dist/npm/chunks/{confetti-B9zlyILU.js → confetti-CM1XHlrM.js} +1 -1
- package/dist/npm/chunks/{context-CsHnabaA.js → context-0MfEgoip.js} +1 -1
- package/dist/npm/chunks/{de-BE0Aaq8u.js → de-CSyX5Cz-.js} +2 -0
- package/dist/npm/chunks/{dpop-CwW9ifkq.js → dpop-CHzhM9ud.js} +1 -1
- package/dist/npm/chunks/{entrance-Bn_5M9uO.js → entrance-D7kmBxF3.js} +29 -29
- package/dist/npm/chunks/{es-BQviao4d.js → es-D7SAi7fz.js} +2 -0
- package/dist/npm/chunks/{extension-DXhz81XD.js → extension-PWW2UQD7.js} +1 -1
- package/dist/npm/chunks/{extension-CnQTDC1j.js → extension-TF7pIF_W.js} +2 -2
- package/dist/npm/chunks/{files-DLEr_wmh.js → files-BkHuRlcW.js} +2 -2
- package/dist/npm/chunks/{fr-C5gu6A06.js → fr-CIr2nUyu.js} +2 -0
- package/dist/npm/chunks/{hi-DXfQ5EvY.js → hi-BTocxOL5.js} +2 -0
- package/dist/npm/chunks/{i18n-Mgs9VOuk.js → i18n-CDw_D17c.js} +10 -10
- package/dist/npm/chunks/{icons-_C6ZWmBY.js → icons-BJLm_C0M.js} +1 -1
- package/dist/npm/chunks/{identify-BnQGJOa0.js → identify-CoQ4rxaI.js} +1 -1
- package/dist/npm/chunks/{it-BPHt13FV.js → it-DCExRo0r.js} +2 -0
- package/dist/npm/chunks/{ja-BkCqyKR0.js → ja-CgWpTdWi.js} +2 -0
- package/dist/npm/chunks/{late-words-D4Oo_yhJ.js → late-words-QnNheaDY.js} +2 -0
- package/dist/npm/chunks/{live-DXcxj_Af.js → live-HKWO5Tsg.js} +23 -21
- package/dist/npm/chunks/{nl-DZxdLLMU.js → nl-DhTQ8oJ_.js} +2 -0
- package/dist/npm/chunks/{page-key-UqAozdZi.js → page-key-z6o1r8Uu.js} +1 -1
- package/dist/npm/chunks/{pick-C20RVUas.js → pick-Bai3lMZX.js} +1 -1
- package/dist/npm/chunks/{pkce-BPvWoBrr.js → pkce-B6VU0dtv.js} +1 -1
- package/dist/npm/chunks/{pt-BR-lA9mJ05F.js → pt-BR-DrO6LV4n.js} +2 -0
- package/dist/npm/chunks/{report-BjUgUNnT.js → report-D-yxx5uK.js} +1 -1
- package/dist/npm/chunks/sheet-77GHVTpR.js +18 -0
- package/dist/npm/chunks/{show-BinoJyED.js → show-C3bJFyaD.js} +12 -10
- package/dist/npm/chunks/{signin-C2jjsxz9.js → signin-Bq2KYFLY.js} +3 -3
- package/dist/npm/chunks/{source-NuflODx3.js → source-W_nJm3Ym.js} +1 -1
- package/dist/npm/chunks/{src-9o2Ocq8d.js → src-BFu9DgRc.js} +57 -52
- package/dist/npm/chunks/{start-Cbx6rMrr.js → start-Dgw3mSp8.js} +524 -513
- package/dist/npm/chunks/{upload-C4NpM-jE.js → upload-b0nY04eW.js} +1 -1
- package/dist/npm/chunks/{uploads-CY4bDbaI.js → uploads-Df4mLJ9O.js} +199 -198
- package/dist/npm/chunks/waiting-BRtT3ZZT.js +54 -0
- package/dist/npm/chunks/wrap-BuWw3zAq.js +69 -0
- package/dist/npm/chunks/{zh-CN-yqaDHwBx.js → zh-CN-Bb8UzT1V.js} +2 -0
- package/dist/npm/element.js +1 -1
- package/dist/npm/headless.js +2 -2
- package/dist/npm/index.js +2 -2
- package/dist/npm/react.js +1 -1
- package/dist/npm/svelte.js +1 -1
- package/dist/npm/types/core/client.d.ts +2 -0
- package/dist/npm/vue.js +1 -1
- package/package.json +1 -1
- package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +0 -35
- package/dist/npm/chunks/TaskFields-CaKi523b.js +0 -617
- package/dist/npm/chunks/wrap-D-xTKIzj.js +0 -69
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { n as t } from "./src-
|
|
3
|
-
import { o as n, v as r } from "./client-
|
|
2
|
+
import { n as t } from "./src-BFu9DgRc.js";
|
|
3
|
+
import { o as n, v as r } from "./client-BqcfSisZ.js";
|
|
4
4
|
import { i, o as a, t as o } from "./anchor-BsQNVkHj.js";
|
|
5
|
-
import { _ as s, a as c, b as l, c as u, d, f, g as p, h as m, l as h, m as g, n as _, o as v, r as y, s as b, u as x, v as
|
|
6
|
-
import { a as
|
|
5
|
+
import { _ as s, a as c, b as l, c as u, d, f, g as p, h as m, l as h, m as g, n as _, o as v, r as y, s as b, u as x, v as S, x as C, y as w } from "./i18n-CDw_D17c.js";
|
|
6
|
+
import { a as T, i as E, n as D, r as O } from "./drafts-B0ctr1g9.js";
|
|
7
|
+
import { n as k } from "./sheet-77GHVTpR.js";
|
|
7
8
|
// src/capture/diagnostics.ts
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
9
|
+
var A = 20, j = /token|key|secret|passw|^pass$|auth|code|session|sig|credential|^x-amz-|ck_invite/i, M = /[\w.%+-]{1,64}@[A-Za-z0-9-]{1,63}(?:\.[A-Za-z0-9-]{1,63}){0,8}\.[A-Za-z]{2,24}/g, N = /(^|[^\w-])(\+?\d(?:[\s().-]{0,2}\d){8,})(?!\w)/g, P = (e) => e.replace(M, "[email]").replace(N, "$1[number]"), F = /eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+/, I = 1e3, L = [], R = [], z = !1, B = "";
|
|
10
|
+
function ee(e) {
|
|
11
|
+
if (z || !(e.console || e.network)) return () => void 0;
|
|
12
|
+
z = !0, B = `${new URL(e.endpoint ?? "https://commentkit.dev").origin}/api/v1/`;
|
|
12
13
|
let t, n = !1;
|
|
13
|
-
return import("./wrap-
|
|
14
|
-
n = !0, t?.(),
|
|
14
|
+
return import("./wrap-BuWw3zAq.js").then((r) => n || (t = r.wrap(e)), () => void 0), () => {
|
|
15
|
+
n = !0, t?.(), te(), z = !1;
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function V() {
|
|
18
19
|
return {
|
|
19
|
-
console:
|
|
20
|
-
network:
|
|
20
|
+
console: L.length ? [...L] : void 0,
|
|
21
|
+
network: R.length ? [...R] : void 0
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
24
|
+
function te() {
|
|
25
|
+
L.length = 0, R.length = 0;
|
|
25
26
|
}
|
|
26
27
|
function ne(e, t, n, r) {
|
|
27
28
|
try {
|
|
28
|
-
if (new URL(t, location.href).href.startsWith(
|
|
29
|
+
if (new URL(t, location.href).href.startsWith(B)) return;
|
|
29
30
|
} catch {}
|
|
30
|
-
re(
|
|
31
|
+
re(R, {
|
|
31
32
|
method: e.slice(0, 10),
|
|
32
|
-
url:
|
|
33
|
+
url: ie(t).slice(0, 2e3),
|
|
33
34
|
status: n,
|
|
34
35
|
duration_ms: Math.round(performance.now() - r)
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
function re(e, t) {
|
|
38
|
-
e.push(t), e.length >
|
|
39
|
+
e.push(t), e.length > A && e.shift();
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function H(e) {
|
|
41
42
|
if (e.length < 24 || !/^[\w~+/=.-]+$/.test(e) || !/\d/.test(e) || !/[a-z]/i.test(e) || /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)) return !1;
|
|
42
43
|
let t = /* @__PURE__ */ new Map();
|
|
43
44
|
for (let n of e) t.set(n, (t.get(n) ?? 0) + 1);
|
|
@@ -45,20 +46,20 @@ function V(e) {
|
|
|
45
46
|
for (let r of t.values()) n -= r / e.length * Math.log2(r / e.length);
|
|
46
47
|
return n >= 3.5;
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function ie(e) {
|
|
49
50
|
try {
|
|
50
51
|
let t = new URL(e, location.href);
|
|
51
|
-
t.username = "", t.password = "", t.pathname = t.pathname.split("/").map((e) =>
|
|
52
|
-
for (let [e, n] of [...t.searchParams])
|
|
53
|
-
return t.hash && (
|
|
52
|
+
t.username = "", t.password = "", t.pathname = t.pathname.split("/").map((e) => F.test(e) || H(e) && /[A-Za-z\d]{16}/.test(e) && !e.includes(".") ? "[redacted]" : P(W(e)) === W(e) ? e : P(W(e))).join("/");
|
|
53
|
+
for (let [e, n] of [...t.searchParams]) j.test(e) || H(n) ? t.searchParams.set(e, "[redacted]") : P(n) !== n && t.searchParams.set(e, P(n));
|
|
54
|
+
return t.hash && (j.test(t.hash) || t.hash.split(/[#&=/]/).some(H) || P(W(t.hash)) !== W(t.hash)) && (t.hash = "#[redacted]"), t.toString();
|
|
54
55
|
} catch {
|
|
55
56
|
return "[unparseable url]";
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
return e.replace(/Bearer\s+[A-Za-z0-9._~+/-]+=*/gi, "Bearer [redacted]").replace(new RegExp(
|
|
59
|
+
function U(e) {
|
|
60
|
+
return e.replace(/Bearer\s+[A-Za-z0-9._~+/-]+=*/gi, "Bearer [redacted]").replace(new RegExp(F.source, "g"), "[redacted-jwt]").replace(/https?:\/\/[^\s"'<>]+/g, (e) => ie(e)).replace(/\b((?:[\w-]*[_-])?(?:token|secret|password|passwd|pwd|api[_-]?key|access[_-]?key|private[_-]?key|session[_-]?id|signature|authorization|auth[_-]?code))(["']?\s*[:=]\s*["']?)(?!\[redacted)[^\s"'&,;]+/gi, "$1$2[redacted]").replace(/[\w~+=-]{24,}/g, (e) => H(e) ? "[redacted]" : e);
|
|
60
61
|
}
|
|
61
|
-
var
|
|
62
|
+
var W = (e) => {
|
|
62
63
|
try {
|
|
63
64
|
return decodeURIComponent(e);
|
|
64
65
|
} catch {
|
|
@@ -66,76 +67,76 @@ var U = (e) => {
|
|
|
66
67
|
}
|
|
67
68
|
};
|
|
68
69
|
function ae(e) {
|
|
69
|
-
return
|
|
70
|
+
return P(U(e.slice(0, I))).slice(0, I);
|
|
70
71
|
}
|
|
71
72
|
// src/ui/format.tsx
|
|
72
|
-
function
|
|
73
|
+
function oe(e, t = innerWidth) {
|
|
73
74
|
return !!e.breakpoint && Math.abs(e.breakpoint - t) > 200;
|
|
74
75
|
}
|
|
75
|
-
var
|
|
76
|
+
var se = (e) => e < 600 ? "phone" : e < 1024 ? "tablet" : "wide", G = (e) => `${Math.round(e * 100) / 100}px`, K = (e, t, n, r) => ({
|
|
76
77
|
left: G(e),
|
|
77
78
|
top: G(t),
|
|
78
79
|
...n === void 0 ? {} : { width: G(n) },
|
|
79
80
|
...r === void 0 ? {} : { height: G(r) }
|
|
80
81
|
});
|
|
81
|
-
function
|
|
82
|
-
let n =
|
|
83
|
-
for (let t of e.matchAll(
|
|
82
|
+
function ce({ text: e, people: t = [] }) {
|
|
83
|
+
let n = _e(t), r = [], i = 0;
|
|
84
|
+
for (let t of e.matchAll(q)) {
|
|
84
85
|
let a = t.index ?? 0;
|
|
85
|
-
a > i && r.push(
|
|
86
|
+
a > i && r.push(J(e.slice(i, a), n)), r.push(/* @__PURE__ */ x("pre", {
|
|
86
87
|
class: "ck-pre",
|
|
87
88
|
children: /* @__PURE__ */ x("code", { children: t[2].replace(/^\n|\n$/g, "") })
|
|
88
89
|
})), i = a + t[0].length;
|
|
89
90
|
}
|
|
90
|
-
return i < e.length && r.push(
|
|
91
|
+
return i < e.length && r.push(J(e.slice(i), n)), /* @__PURE__ */ x(l, { children: r });
|
|
91
92
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
93
|
+
var q = /```([\w-]*)\n?([\s\S]*?)```/g;
|
|
94
|
+
function J(e, t) {
|
|
94
95
|
let n = e.replace(/^\n/, "").split("\n");
|
|
95
|
-
return n.map((e, r) => /* @__PURE__ */ x(l, { children: [
|
|
96
|
+
return n.map((e, r) => /* @__PURE__ */ x(l, { children: [X(e, t), r < n.length - 1 ? /* @__PURE__ */ x("br", {}) : null] }));
|
|
96
97
|
}
|
|
97
|
-
var
|
|
98
|
-
function
|
|
99
|
-
|
|
98
|
+
var le = null;
|
|
99
|
+
function ue(e) {
|
|
100
|
+
le = e;
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function de(e) {
|
|
102
103
|
return [...e.includes("") ? e : e.replace(/\ufe0f/g, "")].map((e) => e.codePointAt(0).toString(16)).join("-");
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function fe({ char: e }) {
|
|
105
106
|
let [t, n] = s(!1);
|
|
106
|
-
return !
|
|
107
|
+
return !le || t ? /* @__PURE__ */ x(l, { children: e }) : /* @__PURE__ */ x("img", {
|
|
107
108
|
class: "ck-emoji",
|
|
108
|
-
src: `${
|
|
109
|
+
src: `${le}/emoji/${de(e)}.svg`,
|
|
109
110
|
alt: e,
|
|
110
111
|
draggable: !1,
|
|
111
112
|
loading: "lazy",
|
|
112
113
|
onError: () => n(!0)
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
|
-
var
|
|
116
|
-
function
|
|
117
|
-
let t = e.join("\0"), n =
|
|
116
|
+
var pe = String.raw`\p{Extended_Pictographic}(?:\ufe0f|\p{Emoji_Modifier}|\u200d\p{Extended_Pictographic}\ufe0f?)*`, me = String.raw`\*\*[^*\n]+\*\*|~~[^~\n]+~~|\x60[^\x60\n]+\x60|\*[^*\s][^*\n]*\*|(?:^|[\s(\[])_[^_\n]+_(?![\p{L}\p{N}_])`, he = String.raw`https?:\/\/[^\s<>"')\u200b-\u200f\u202a-\u202e\u2060-\u2069\ufeff]+`, ge = `${me}|${he}`, Y = /* @__PURE__ */ new Map();
|
|
117
|
+
function _e(e) {
|
|
118
|
+
let t = e.join("\0"), n = Y.get(t);
|
|
118
119
|
if (!n) {
|
|
119
120
|
let r = [...e].filter(Boolean).sort((e, t) => t.length - e.length).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")), i = `(?:^|[\\s(\\[])@(?:${r.length ? `${r.join("|")}|` : ""}[\\p{L}\\p{N}._-]+)`;
|
|
120
|
-
n = RegExp(`${
|
|
121
|
+
n = RegExp(`${ge}|${i}|${pe}`, "gu"), Y.set(t, n);
|
|
121
122
|
}
|
|
122
123
|
return n;
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
+
function X(e, t) {
|
|
125
126
|
let n = [], r = 0;
|
|
126
127
|
for (let i of e.matchAll(t)) {
|
|
127
128
|
let a = i[0], o = i.index ?? 0;
|
|
128
|
-
if (/^[\s(\[]/.test(a) && /[_@]/.test(a[1] ?? "") && (o += 1, a = a.slice(1)), o > r && n.push(e.slice(r, o)), a.startsWith("**")) n.push(/* @__PURE__ */ x("strong", { children:
|
|
129
|
-
else if (a.startsWith("~~")) n.push(/* @__PURE__ */ x("s", { children:
|
|
129
|
+
if (/^[\s(\[]/.test(a) && /[_@]/.test(a[1] ?? "") && (o += 1, a = a.slice(1)), o > r && n.push(e.slice(r, o)), a.startsWith("**")) n.push(/* @__PURE__ */ x("strong", { children: X(a.slice(2, -2), t) }));
|
|
130
|
+
else if (a.startsWith("~~")) n.push(/* @__PURE__ */ x("s", { children: X(a.slice(2, -2), t) }));
|
|
130
131
|
else if (a.startsWith("`")) n.push(/* @__PURE__ */ x("code", { children: a.slice(1, -1) }));
|
|
131
|
-
else if (a.startsWith("*") || a.startsWith("_")) n.push(/* @__PURE__ */ x("em", { children:
|
|
132
|
+
else if (a.startsWith("*") || a.startsWith("_")) n.push(/* @__PURE__ */ x("em", { children: X(a.slice(1, -1), t) }));
|
|
132
133
|
else if (a.startsWith("@")) n.push(/* @__PURE__ */ x("span", {
|
|
133
134
|
class: "ck-mention",
|
|
134
135
|
children: /* @__PURE__ */ x("bdi", { children: a })
|
|
135
136
|
}));
|
|
136
|
-
else if (/^\p{Extended_Pictographic}/u.test(a)) n.push(/* @__PURE__ */ x(
|
|
137
|
+
else if (/^\p{Extended_Pictographic}/u.test(a)) n.push(/* @__PURE__ */ x(fe, { char: a }));
|
|
137
138
|
else {
|
|
138
|
-
let e =
|
|
139
|
+
let e = ve(a);
|
|
139
140
|
n.push(e ? /* @__PURE__ */ x("a", {
|
|
140
141
|
href: e,
|
|
141
142
|
target: "_blank",
|
|
@@ -147,7 +148,7 @@ function ge(e, t) {
|
|
|
147
148
|
}
|
|
148
149
|
return r < e.length && n.push(e.slice(r)), n;
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function ve(e, t = "link") {
|
|
151
152
|
if (!e) return null;
|
|
152
153
|
try {
|
|
153
154
|
let n = new URL(e);
|
|
@@ -156,7 +157,7 @@ function _e(e, t = "link") {
|
|
|
156
157
|
return null;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
+
function ye({ person: e }) {
|
|
160
161
|
let [t, n] = s(!1), r = e.name.split(/\s+/).map((e) => [...e][0]).slice(0, 2).join("").toUpperCase() || "?";
|
|
161
162
|
return /* @__PURE__ */ x("span", {
|
|
162
163
|
class: "ck-avatar",
|
|
@@ -169,9 +170,9 @@ function ve({ person: e }) {
|
|
|
169
170
|
}) : r
|
|
170
171
|
});
|
|
171
172
|
}
|
|
172
|
-
var
|
|
173
|
-
function
|
|
174
|
-
let t =
|
|
173
|
+
var be = (e) => u(`status_${e}`);
|
|
174
|
+
function xe({ status: e }) {
|
|
175
|
+
let t = be(e);
|
|
175
176
|
return /* @__PURE__ */ x("span", {
|
|
176
177
|
class: "ck-status",
|
|
177
178
|
"data-status": e,
|
|
@@ -179,7 +180,7 @@ function be({ status: e }) {
|
|
|
179
180
|
children: t
|
|
180
181
|
});
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
+
function Se({ name: e, size: t = 18 }) {
|
|
183
184
|
return /* @__PURE__ */ x("svg", {
|
|
184
185
|
width: t,
|
|
185
186
|
height: t,
|
|
@@ -201,10 +202,10 @@ function xe({ name: e, size: t = 18 }) {
|
|
|
201
202
|
}[e] })
|
|
202
203
|
});
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function Ce(e) {
|
|
205
206
|
e?.focus({ preventScroll: !0 });
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function we(e) {
|
|
208
209
|
if (!e) return;
|
|
209
210
|
let t = e.getBoundingClientRect(), n = e.parentElement?.closest(".ck-panel, .ck-card")?.getBoundingClientRect() ?? {
|
|
210
211
|
left: 0,
|
|
@@ -217,7 +218,7 @@ function Z(e, t) {
|
|
|
217
218
|
let [n, r] = s(() => t(e.get()));
|
|
218
219
|
return d(() => (r(t(e.get())), e.subscribe((e) => r(() => t(e)))), [e]), n;
|
|
219
220
|
}
|
|
220
|
-
function
|
|
221
|
+
function Te(e) {
|
|
221
222
|
let [, t] = s(0), [n] = s(() => ({
|
|
222
223
|
version: 0,
|
|
223
224
|
watch: () => void 0
|
|
@@ -280,7 +281,7 @@ function we(e) {
|
|
|
280
281
|
};
|
|
281
282
|
}, [e]), n;
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
+
function Ee() {
|
|
284
285
|
let [e, t] = s(() => typeof navigator > "u" || navigator.onLine !== !1);
|
|
285
286
|
return d(() => {
|
|
286
287
|
let e = () => t(!0), n = () => t(!1);
|
|
@@ -289,7 +290,7 @@ function Te() {
|
|
|
289
290
|
};
|
|
290
291
|
}, []), e;
|
|
291
292
|
}
|
|
292
|
-
function
|
|
293
|
+
function De(e, t, n = !1) {
|
|
293
294
|
let r = !n && getComputedStyle(e.currentTarget).direction === "rtl", i = n ? [
|
|
294
295
|
"ArrowDown",
|
|
295
296
|
"j",
|
|
@@ -312,32 +313,32 @@ function Q(e, t, n) {
|
|
|
312
313
|
e && !r && t().then((e) => i(() => e), n);
|
|
313
314
|
}, [e]), r;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Oe(e, t, n) {
|
|
316
317
|
f(() => {
|
|
317
318
|
if (!e) return;
|
|
318
319
|
let r = (e) => t.current && !e.composedPath().includes(t.current) && n();
|
|
319
320
|
return addEventListener("pointerdown", r, !0), () => removeEventListener("pointerdown", r, !0);
|
|
320
321
|
}, [e]);
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
+
function ke(e) {
|
|
323
324
|
return e.composedPath().some((e) => e instanceof HTMLElement && (e.isContentEditable || [
|
|
324
325
|
"INPUT",
|
|
325
326
|
"TEXTAREA",
|
|
326
327
|
"SELECT"
|
|
327
328
|
].includes(e.tagName)));
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Ae(e) {
|
|
330
331
|
let t = e.target;
|
|
331
|
-
return (t === document.body || t === document.documentElement || t instanceof Element && t.hasAttribute("data-commentkit-host")) && !
|
|
332
|
+
return (t === document.body || t === document.documentElement || t instanceof Element && t.hasAttribute("data-commentkit-host")) && !ke(e);
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function je() {
|
|
334
335
|
return typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent);
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function Me() {
|
|
337
338
|
return matchMedia("(pointer: coarse)").matches && !matchMedia("(any-pointer: fine)").matches;
|
|
338
339
|
}
|
|
339
340
|
// src/ui/errors.ts
|
|
340
|
-
var
|
|
341
|
+
var Ne = {
|
|
341
342
|
network_error: "networkError",
|
|
342
343
|
upload_failed: "uploadFailed",
|
|
343
344
|
share_expired: "shareExpired",
|
|
@@ -355,56 +356,39 @@ var Me = {
|
|
|
355
356
|
edit_conflict: "editConflict",
|
|
356
357
|
internal_error: "serverError",
|
|
357
358
|
insecure_context: "insecureContext"
|
|
358
|
-
},
|
|
359
|
-
function
|
|
359
|
+
}, Pe = /* @__PURE__ */ new Set(["file_rejected", "thread_not_found"]);
|
|
360
|
+
function Fe(e) {
|
|
360
361
|
if (!(e instanceof r)) return u("errorGeneric");
|
|
361
|
-
if (
|
|
362
|
-
let t =
|
|
362
|
+
if (Pe.has(e.code)) return e.message;
|
|
363
|
+
let t = Ne[e.code] ?? (e.status === 410 ? "shareExpired" : e.status === 429 ? "tooFast" : null);
|
|
363
364
|
return t ? u(t) : _() === "en" && e.status >= 400 && e.message ? e.message : u("errorGeneric");
|
|
364
365
|
}
|
|
365
366
|
// src/ui/draft-key.ts
|
|
366
|
-
var
|
|
367
|
-
function
|
|
368
|
-
return
|
|
367
|
+
var Ie = "commentkit:pending-compose", Le = "commentkit:press-send", Re = "commentkit:comment-after-sign-in", ze = "commentkit:inbox-after-sign-in";
|
|
368
|
+
function Be(e, t, n = e.pageKey()) {
|
|
369
|
+
return D(e.options.project, n, t.type, t.selector, t.ck_id, t.source, t.quote);
|
|
369
370
|
}
|
|
370
371
|
// src/ui/privacy.ts
|
|
371
|
-
var
|
|
372
|
-
function
|
|
373
|
-
Ve = e, e && Be.forEach((t) => We(e, t));
|
|
374
|
-
}
|
|
375
|
-
function Ue(e) {
|
|
376
|
-
Be.includes(e) || (Be.push(e), Ve && We(Ve, e));
|
|
377
|
-
}
|
|
378
|
-
function We(e, t) {
|
|
379
|
-
if ("adoptedStyleSheets" in e && "replaceSync" in CSSStyleSheet.prototype) {
|
|
380
|
-
let n = new CSSStyleSheet();
|
|
381
|
-
n.replaceSync(t), e.adoptedStyleSheets = [...e.adoptedStyleSheets, n];
|
|
382
|
-
} else {
|
|
383
|
-
let n = document.createElement("style");
|
|
384
|
-
n.textContent = t, e.insertBefore(n, e.querySelector(".ck-root"));
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
// src/ui/deep-links.ts
|
|
388
|
-
var Ge = "commentkit:share";
|
|
389
|
-
function Ke(e, t) {
|
|
372
|
+
var Ve = (e, t) => e?.privacy?.mode === "strict" ? "strict" : t, He = "commentkit:share";
|
|
373
|
+
function Ue(e, t) {
|
|
390
374
|
let n = new URL(location.href).searchParams.get(e);
|
|
391
|
-
return !n || !t.test(n) ? null : (
|
|
375
|
+
return !n || !t.test(n) ? null : (qe(location.href.replace(/^[^#]*/, (t) => t.replace(RegExp(`([?&])${e}=[^&]*(&?)`), (e, t, n) => n ? t : ""))), n);
|
|
392
376
|
}
|
|
393
|
-
function
|
|
377
|
+
function We(e, t) {
|
|
394
378
|
let [, n = "", r = ""] = /^([^#]*)(.*)$/s.exec(e) ?? [];
|
|
395
379
|
return `${n}${n.includes("?") ? "&" : "?"}ck_thread=${encodeURIComponent(t)}${r}`;
|
|
396
380
|
}
|
|
397
|
-
function
|
|
398
|
-
let e =
|
|
399
|
-
return e &&
|
|
381
|
+
function Ge() {
|
|
382
|
+
let e = Ue("ck", /^[A-Za-z0-9]{16,128}$/);
|
|
383
|
+
return e && E(He, e), e ?? E(He);
|
|
400
384
|
}
|
|
401
|
-
var
|
|
402
|
-
function
|
|
385
|
+
var Ke = () => Ue("ck_thread", /^[0-9a-f-]{36}$/i);
|
|
386
|
+
function qe(e) {
|
|
403
387
|
try {
|
|
404
388
|
history.replaceState(history.state, "", e);
|
|
405
389
|
} catch {}
|
|
406
390
|
}
|
|
407
|
-
function
|
|
391
|
+
function Je(e, t = () => location.href) {
|
|
408
392
|
let n = location.href, r = t(), i = () => {
|
|
409
393
|
if (location.href !== n) {
|
|
410
394
|
n = location.href;
|
|
@@ -419,27 +403,27 @@ function Ze(e, t = () => location.href) {
|
|
|
419
403
|
};
|
|
420
404
|
}
|
|
421
405
|
// src/ui/prefs.ts
|
|
422
|
-
var
|
|
423
|
-
function
|
|
424
|
-
if (
|
|
406
|
+
var Ye = "commentkit:v1:prefs", Xe = /* @__PURE__ */ new Set(), Ze = null;
|
|
407
|
+
function Qe(e = !0) {
|
|
408
|
+
if (Ze !== null) return Ze;
|
|
425
409
|
try {
|
|
426
|
-
let t = JSON.parse(
|
|
410
|
+
let t = JSON.parse(O(Ye) ?? "{}")?.shortcuts;
|
|
427
411
|
return typeof t == "boolean" ? t : e;
|
|
428
412
|
} catch {
|
|
429
413
|
return e;
|
|
430
414
|
}
|
|
431
415
|
}
|
|
432
|
-
function
|
|
433
|
-
return e.options.shortcuts !== !1 &&
|
|
416
|
+
function $e(e) {
|
|
417
|
+
return e.options.shortcuts !== !1 && Qe(!!e.state.get().session?.capabilities.triage);
|
|
434
418
|
}
|
|
435
|
-
function
|
|
436
|
-
|
|
419
|
+
function et(e) {
|
|
420
|
+
Ze = e, O(Ye, JSON.stringify({ shortcuts: e })), Xe.forEach((e) => e());
|
|
437
421
|
}
|
|
438
|
-
function
|
|
439
|
-
return
|
|
422
|
+
function tt(e) {
|
|
423
|
+
return Xe.add(e), () => void Xe.delete(e);
|
|
440
424
|
}
|
|
441
425
|
// src/ui/Welcome.tsx
|
|
442
|
-
function
|
|
426
|
+
function nt({ id: e, position: t, title: n, body: r, primary: i, secondary: a, onPrimary: o, onSecondary: s }) {
|
|
443
427
|
return /* @__PURE__ */ x("div", {
|
|
444
428
|
class: "ck-welcome",
|
|
445
429
|
"data-pos": t,
|
|
@@ -467,8 +451,8 @@ function at({ id: e, position: t, title: n, body: r, primary: i, secondary: a, o
|
|
|
467
451
|
]
|
|
468
452
|
});
|
|
469
453
|
}
|
|
470
|
-
function
|
|
471
|
-
return /* @__PURE__ */ x(
|
|
454
|
+
function rt({ position: e, project: t, onStart: n, onDismiss: r }) {
|
|
455
|
+
return /* @__PURE__ */ x(nt, {
|
|
472
456
|
id: "ck-welcome-title",
|
|
473
457
|
position: e,
|
|
474
458
|
title: u("welcomeTitle", { project: t }),
|
|
@@ -479,8 +463,8 @@ function ot({ position: e, project: t, onStart: n, onDismiss: r }) {
|
|
|
479
463
|
onSecondary: r
|
|
480
464
|
});
|
|
481
465
|
}
|
|
482
|
-
function
|
|
483
|
-
return /* @__PURE__ */ x(
|
|
466
|
+
function it({ position: e, project: t, onContinue: n, onDismiss: r }) {
|
|
467
|
+
return /* @__PURE__ */ x(nt, {
|
|
484
468
|
id: "ck-signin-link-title",
|
|
485
469
|
position: e,
|
|
486
470
|
title: u("signInLinkTitle", { project: t }),
|
|
@@ -492,8 +476,8 @@ function st({ position: e, project: t, onContinue: n, onDismiss: r }) {
|
|
|
492
476
|
});
|
|
493
477
|
}
|
|
494
478
|
// src/ui/chunks.ts
|
|
495
|
-
function
|
|
496
|
-
let s = Q(a, () => t(() => import("./Settings-
|
|
479
|
+
function at(e, n, r, i, a, o) {
|
|
480
|
+
let s = Q(a, () => t(() => import("./Settings-BM7pWbwd.js")).then((e) => e.Settings), o), c = Q(i, () => t(() => import("./Shortcuts-CFDTnP5H.js")).then((e) => e.Shortcuts), o), l = Q(r.name === "commenting" || r.name === "composing", () => t(() => import("./Composer-Dj0YAYOR.js")).then((t) => (e.state.get().config?.features.screenshots !== !1 && t.warmCapture(), t.Composer)), o), u = Q(r.name === "verify", () => t(() => import("./Guest-bAxvxjbL.js")).then((e) => e.GuestVerify), o), d = Q(r.name === "panel", () => t(() => import("./Panel-C3_NURrp.js")).then((e) => e.Panel), o), p = Q(r.name === "thread" || r.name === "panel" ? r.threadId : null, () => t(() => import("./ThreadCard-CwClbMNh.js")).then((e) => e.ThreadCard), o), m = () => [[...e.state.get().config?.privacy?.redact_selectors ?? [], ...e.options.redact ?? []], Ve(e.state.get().config, e.options.privacy)], h = Q(!0, () => Promise.all([t(() => import("./context-BuMl7A07.js").then((e) => e.t)), t(() => import("./pick-Bai3lMZX.js"))]).then(([e, t]) => (e.install(), e.configurePrivacy(...m()), {
|
|
497
481
|
configurePrivacy: e.configurePrivacy,
|
|
498
482
|
picker: t
|
|
499
483
|
})), o);
|
|
@@ -508,81 +492,84 @@ function ct(e, n, r, i, a, o) {
|
|
|
508
492
|
};
|
|
509
493
|
}
|
|
510
494
|
// src/ui/dock.ts
|
|
511
|
-
var
|
|
512
|
-
function
|
|
495
|
+
var ot = "commentkit:dock";
|
|
496
|
+
function st(e, t) {
|
|
513
497
|
let [n, r] = s(() => {
|
|
514
|
-
let e =
|
|
498
|
+
let e = O(ot);
|
|
515
499
|
return e && /^(top|bottom)-(left|center|right)$/.test(e) ? e : null;
|
|
516
500
|
});
|
|
517
501
|
return [n ?? e.options.position ?? t?.appearance.position ?? "bottom-right", (e) => {
|
|
518
|
-
r(e),
|
|
502
|
+
r(e), O(ot, e);
|
|
519
503
|
}];
|
|
520
504
|
}
|
|
521
505
|
// src/ui/keys.ts
|
|
522
|
-
var
|
|
523
|
-
function
|
|
506
|
+
var ct = (e) => !e.metaKey && !e.ctrlKey && !e.altKey, lt = (e, t) => e.composedPath().some((e) => e instanceof HTMLElement && e.classList.contains(t));
|
|
507
|
+
function ut(e, t) {
|
|
524
508
|
let { key: n } = e;
|
|
525
|
-
if (e.defaultPrevented ||
|
|
509
|
+
if (e.defaultPrevented || ke(e) || lt(e, "ck-markup") || lt(e, "ck-pop") || n !== "Escape" && !(t.keys && Ae(e))) return null;
|
|
526
510
|
if (t.help) return n === "Escape" ? "closeHelp" : null;
|
|
527
511
|
let { view: r, threads: i } = t;
|
|
528
|
-
if (n === "?" &&
|
|
512
|
+
if (n === "?" && ct(e)) return "help";
|
|
529
513
|
if (n === "Escape" && r.name !== "idle") return "back";
|
|
530
|
-
if ((n === "c" || n === "C") &&
|
|
531
|
-
if ((n === "j" || n === "k") &&
|
|
532
|
-
if (!i.length ||
|
|
514
|
+
if ((n === "c" || n === "C") && ct(e) && r.name === "idle") return "comment";
|
|
515
|
+
if ((n === "j" || n === "k") && ct(e) && t.signedIn && (r.name === "idle" || r.name === "thread")) {
|
|
516
|
+
if (!i.length || lt(e, "ck-panel")) return null;
|
|
533
517
|
let t = r.name === "thread" ? i.findIndex((e) => e.id === r.threadId) : -1;
|
|
534
518
|
return i[(t + (n === "j" ? 1 : i.length - 1 + +(t < 0))) % i.length] ?? null;
|
|
535
519
|
}
|
|
536
520
|
return null;
|
|
537
521
|
}
|
|
538
|
-
function
|
|
522
|
+
function dt(e, t) {
|
|
539
523
|
f(() => {
|
|
540
524
|
let n = (n) => {
|
|
541
|
-
let r =
|
|
525
|
+
let r = ut(n, e());
|
|
542
526
|
r && (r !== "closeHelp" && n.preventDefault(), t(r));
|
|
543
527
|
};
|
|
544
528
|
return addEventListener("keydown", n, !0), () => removeEventListener("keydown", n, !0);
|
|
545
529
|
});
|
|
546
530
|
}
|
|
547
|
-
function
|
|
548
|
-
let
|
|
531
|
+
function ft(e, t, n) {
|
|
532
|
+
let r = t.name === "commenting", i = g(!1);
|
|
549
533
|
d(() => {
|
|
550
|
-
(
|
|
551
|
-
}, [
|
|
552
|
-
let
|
|
534
|
+
(i.current || r) && e.emit("mode", { commenting: r }), i.current = !0;
|
|
535
|
+
}, [r]);
|
|
536
|
+
let a = Z(e.state, (e) => e.request);
|
|
553
537
|
d(() => {
|
|
554
|
-
|
|
555
|
-
}, [
|
|
538
|
+
a && (e.state.set({ request: null }), a.kind === "comment" ? r || n.comment() : a.kind === "stop" ? n.go({ name: "stop" }) : n.inbox());
|
|
539
|
+
}, [a]);
|
|
556
540
|
}
|
|
557
541
|
// src/ui/Launcher.tsx
|
|
558
|
-
function
|
|
559
|
-
let
|
|
560
|
-
d(() => void (
|
|
561
|
-
let
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
542
|
+
function pt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, onComment: o, onPanel: c, onSignIn: p, onSignOut: m, onShortcuts: h, onApprove: _, onHide: v, onSettings: y, waiting: b, onCode: S, covered: C, entrance: w, ...T }) {
|
|
543
|
+
let E = Z(e.state, (e) => e.config?.read_only ?? !1), D = Z(e.state, (e) => e.session), O = Z(e.state, (e) => e.unread), [k, A] = s(!1), j = T.menu ?? k, M = T.onMenu ?? A, [N, P] = s(null), F = g(null), I = g(null), L = g(null);
|
|
544
|
+
d(() => void (j && I.current?.querySelector("[role=menuitem]")?.focus()), [j]), Oe(j, I, () => M(!1)), f(() => {
|
|
545
|
+
let n = I.current, r = () => {
|
|
546
|
+
let t = e.wait;
|
|
547
|
+
return e.wait = void 0, !!t?.();
|
|
548
|
+
};
|
|
549
|
+
if (!w || !n) return void r();
|
|
550
|
+
n.dataset.entering = "";
|
|
551
|
+
let i = () => void (r(), n.dataset.entering = "done"), a = setTimeout(() => i(), 1500);
|
|
552
|
+
return t(() => import("./entrance-D7kmBxF3.js")).then((e) => {
|
|
553
|
+
clearTimeout(a), n.dataset.entering === "" && (i = e.enter(n, w.key, w.say, r()).stop);
|
|
554
|
+
}, () => i()), () => (clearTimeout(a), i());
|
|
568
555
|
}, []);
|
|
569
|
-
let
|
|
556
|
+
let R = je();
|
|
570
557
|
return /* @__PURE__ */ x("div", {
|
|
571
558
|
class: "ck-launcher",
|
|
572
559
|
"data-pos": n,
|
|
573
|
-
"data-covered":
|
|
574
|
-
"data-dragging":
|
|
560
|
+
"data-covered": C,
|
|
561
|
+
"data-dragging": N ? "true" : void 0,
|
|
575
562
|
"data-commentkit-ui": !0,
|
|
576
|
-
ref:
|
|
577
|
-
style:
|
|
578
|
-
left: G(
|
|
579
|
-
top: G(
|
|
563
|
+
ref: I,
|
|
564
|
+
style: N ? {
|
|
565
|
+
left: G(N.x),
|
|
566
|
+
top: G(N.y),
|
|
580
567
|
right: "auto",
|
|
581
568
|
bottom: "auto",
|
|
582
569
|
translate: "none"
|
|
583
570
|
} : void 0,
|
|
584
571
|
children: [
|
|
585
|
-
|
|
572
|
+
j ? null : b ? /* @__PURE__ */ x("div", {
|
|
586
573
|
class: "ck-note ck-launcher-note",
|
|
587
574
|
role: "status",
|
|
588
575
|
children: [
|
|
@@ -590,11 +577,11 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
|
|
|
590
577
|
" ",
|
|
591
578
|
/* @__PURE__ */ x("button", {
|
|
592
579
|
class: "ck-btn",
|
|
593
|
-
onClick:
|
|
580
|
+
onClick: S,
|
|
594
581
|
children: u("enterCode")
|
|
595
582
|
})
|
|
596
583
|
]
|
|
597
|
-
}) :
|
|
584
|
+
}) : E ? /* @__PURE__ */ x("div", {
|
|
598
585
|
class: "ck-note ck-launcher-note",
|
|
599
586
|
role: "status",
|
|
600
587
|
children: u("readOnlyShort")
|
|
@@ -610,31 +597,31 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
|
|
|
610
597
|
onClick: o,
|
|
611
598
|
title: u("commentHint"),
|
|
612
599
|
"aria-keyshortcuts": h ? "C" : void 0,
|
|
613
|
-
children: [/* @__PURE__ */ x(
|
|
600
|
+
children: [/* @__PURE__ */ x(Se, { name: "comment" }), /* @__PURE__ */ x("span", {
|
|
614
601
|
class: "ck-label",
|
|
615
602
|
children: u("comment")
|
|
616
603
|
})]
|
|
617
604
|
}),
|
|
618
|
-
|
|
605
|
+
D ? /* @__PURE__ */ x("button", {
|
|
619
606
|
class: "ck-bar-btn ck-icon-btn",
|
|
620
607
|
"aria-pressed": a,
|
|
621
608
|
onClick: c,
|
|
622
609
|
title: u("inbox"),
|
|
623
|
-
"aria-label": `${u("inbox")}${
|
|
624
|
-
children: [/* @__PURE__ */ x(
|
|
610
|
+
"aria-label": `${u("inbox")}${O ? ` (${O})` : ""}`,
|
|
611
|
+
children: [/* @__PURE__ */ x(Se, { name: "inbox" }), O > 0 ? /* @__PURE__ */ x("span", {
|
|
625
612
|
class: "ck-badge",
|
|
626
|
-
children:
|
|
613
|
+
children: O > 99 ? "99+" : O
|
|
627
614
|
}) : null]
|
|
628
615
|
}) : null,
|
|
629
616
|
/* @__PURE__ */ x("button", {
|
|
630
617
|
class: "ck-bar-btn ck-icon-btn",
|
|
631
|
-
ref:
|
|
618
|
+
ref: L,
|
|
632
619
|
"aria-haspopup": "menu",
|
|
633
|
-
"aria-expanded":
|
|
634
|
-
onClick: () =>
|
|
620
|
+
"aria-expanded": j,
|
|
621
|
+
onClick: () => M(!j),
|
|
635
622
|
"aria-label": u("moreFeedback"),
|
|
636
623
|
title: u("moreFeedback"),
|
|
637
|
-
children: /* @__PURE__ */ x(
|
|
624
|
+
children: /* @__PURE__ */ x(Se, { name: "more" })
|
|
638
625
|
}),
|
|
639
626
|
/* @__PURE__ */ x("button", {
|
|
640
627
|
class: "ck-grip",
|
|
@@ -644,26 +631,26 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
|
|
|
644
631
|
onPointerDown: (e) => {
|
|
645
632
|
if (e.button !== 0) return;
|
|
646
633
|
let t = e.currentTarget.closest(".ck-launcher").getBoundingClientRect();
|
|
647
|
-
|
|
634
|
+
F.current = {
|
|
648
635
|
dx: e.clientX - t.left,
|
|
649
636
|
dy: e.clientY - t.top
|
|
650
637
|
}, e.currentTarget.setPointerCapture(e.pointerId);
|
|
651
638
|
},
|
|
652
639
|
onPointerMove: (e) => {
|
|
653
|
-
let t =
|
|
654
|
-
t &&
|
|
640
|
+
let t = F.current;
|
|
641
|
+
t && P({
|
|
655
642
|
x: e.clientX - t.dx,
|
|
656
643
|
y: e.clientY - t.dy
|
|
657
644
|
});
|
|
658
645
|
},
|
|
659
646
|
onPointerUp: (e) => {
|
|
660
|
-
let t =
|
|
661
|
-
if (
|
|
662
|
-
|
|
647
|
+
let t = F.current;
|
|
648
|
+
if (F.current = null, !t || !N) return P(null);
|
|
649
|
+
P(null), r(mt(e.clientX, e.clientY));
|
|
663
650
|
},
|
|
664
|
-
onPointerCancel: () => (
|
|
651
|
+
onPointerCancel: () => (F.current = null, P(null)),
|
|
665
652
|
onKeyDown: (e) => {
|
|
666
|
-
let t =
|
|
653
|
+
let t = ht(n, e.key);
|
|
667
654
|
t && (e.preventDefault(), r(t));
|
|
668
655
|
},
|
|
669
656
|
children: /* @__PURE__ */ x("svg", {
|
|
@@ -707,20 +694,20 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
|
|
|
707
694
|
})
|
|
708
695
|
]
|
|
709
696
|
}),
|
|
710
|
-
|
|
697
|
+
j ? /* @__PURE__ */ x("div", {
|
|
711
698
|
class: "ck-menu ck-pop",
|
|
712
699
|
role: "menu",
|
|
713
|
-
onClick: () => (
|
|
714
|
-
onKeyDown: (e) => e.key === "Escape" ? (e.stopPropagation(),
|
|
700
|
+
onClick: () => (M(!1), L.current?.focus()),
|
|
701
|
+
onKeyDown: (e) => e.key === "Escape" ? (e.stopPropagation(), M(!1), L.current?.focus()) : De(e, "[role=menuitem]", !0),
|
|
715
702
|
children: [
|
|
716
|
-
|
|
703
|
+
D ? /* @__PURE__ */ x(l, { children: [
|
|
717
704
|
/* @__PURE__ */ x("div", {
|
|
718
705
|
class: "ck-menu-head",
|
|
719
|
-
title: `${
|
|
706
|
+
title: `${D.person.name} · ${D.project.name}`,
|
|
720
707
|
children: [
|
|
721
|
-
/* @__PURE__ */ x("bdi", { children:
|
|
708
|
+
/* @__PURE__ */ x("bdi", { children: D.person.name }),
|
|
722
709
|
" · ",
|
|
723
|
-
/* @__PURE__ */ x("bdi", { children:
|
|
710
|
+
/* @__PURE__ */ x("bdi", { children: D.project.name })
|
|
724
711
|
]
|
|
725
712
|
}),
|
|
726
713
|
/* @__PURE__ */ x("button", {
|
|
@@ -747,14 +734,14 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
|
|
|
747
734
|
/* @__PURE__ */ x("button", {
|
|
748
735
|
role: "menuitem",
|
|
749
736
|
class: "ck-menu-two",
|
|
750
|
-
"aria-keyshortcuts":
|
|
737
|
+
"aria-keyshortcuts": R ? "Meta+Shift+K" : "Control+Shift+K",
|
|
751
738
|
onClick: v,
|
|
752
|
-
children: [u("hideWidget"),
|
|
739
|
+
children: [u("hideWidget"), Me() ? null : /* @__PURE__ */ x("span", {
|
|
753
740
|
class: "ck-muted",
|
|
754
|
-
children: u("hideWidgetHint", { keys:
|
|
741
|
+
children: u("hideWidgetHint", { keys: R ? "⌘ Shift K" : "Ctrl Shift K" })
|
|
755
742
|
})]
|
|
756
743
|
}),
|
|
757
|
-
|
|
744
|
+
D ? /* @__PURE__ */ x("button", {
|
|
758
745
|
role: "menuitem",
|
|
759
746
|
class: "ck-danger",
|
|
760
747
|
onClick: m,
|
|
@@ -765,10 +752,10 @@ function gt({ client: e, position: n, onMove: r, commenting: i, panelOpen: a, on
|
|
|
765
752
|
]
|
|
766
753
|
});
|
|
767
754
|
}
|
|
768
|
-
function
|
|
755
|
+
function mt(e, t) {
|
|
769
756
|
return `${t < innerHeight / 2 ? "top" : "bottom"}-${e < innerWidth / 3 ? "left" : e > innerWidth * 2 / 3 ? "right" : "center"}`;
|
|
770
757
|
}
|
|
771
|
-
function
|
|
758
|
+
function ht(e, t) {
|
|
772
759
|
let [n, r] = e.split("-"), i = [
|
|
773
760
|
"left",
|
|
774
761
|
"center",
|
|
@@ -776,11 +763,11 @@ function vt(e, t) {
|
|
|
776
763
|
], a = i.indexOf(r);
|
|
777
764
|
return t === "ArrowLeft" && a > 0 ? `${n}-${i[a - 1]}` : t === "ArrowRight" && a < 2 ? `${n}-${i[a + 1]}` : t === "ArrowUp" && n === "bottom" ? `top-${r}` : t === "ArrowDown" && n === "top" ? `bottom-${r}` : null;
|
|
778
765
|
}
|
|
779
|
-
function
|
|
766
|
+
function gt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = null }) {
|
|
780
767
|
let [p] = s(() => {
|
|
781
768
|
let e = document.activeElement;
|
|
782
769
|
return e && e !== document.body && e !== document.documentElement && !i(e) ? e : null;
|
|
783
|
-
}), m =
|
|
770
|
+
}), m = S(() => matchMedia("(pointer: coarse)").matches, []), [h, _] = s(null), v = g(c);
|
|
784
771
|
d(() => {
|
|
785
772
|
let e = !0, r = (r) => {
|
|
786
773
|
if (!e) return;
|
|
@@ -808,31 +795,31 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
808
795
|
});
|
|
809
796
|
}
|
|
810
797
|
};
|
|
811
|
-
return c ? r(c) : import("./pick-
|
|
798
|
+
return c ? r(c) : import("./pick-Bai3lMZX.js").then(r, () => {}), () => void (e = !1);
|
|
812
799
|
}, []);
|
|
813
800
|
let y = (e) => o({
|
|
814
801
|
...e,
|
|
815
802
|
extra: v.current?.extra
|
|
816
|
-
}), [b,
|
|
817
|
-
f(() =>
|
|
818
|
-
let
|
|
803
|
+
}), [b, C] = s(null), w = g(null), T = g(null), [E, D] = s([]), O = g(null), k = g(null);
|
|
804
|
+
f(() => k.current?.focus({ preventScroll: !0 }), []);
|
|
805
|
+
let A = g(null), j = g({
|
|
819
806
|
timer: null,
|
|
820
807
|
fired: !1
|
|
821
|
-
}),
|
|
822
|
-
|
|
808
|
+
}), M = () => {
|
|
809
|
+
j.current.timer && clearTimeout(j.current.timer), j.current.timer = null;
|
|
823
810
|
};
|
|
824
|
-
d(() =>
|
|
825
|
-
let
|
|
826
|
-
let n =
|
|
811
|
+
d(() => M, []);
|
|
812
|
+
let N = (e, t) => {
|
|
813
|
+
let n = O.current;
|
|
827
814
|
if (!n) return null;
|
|
828
815
|
let r = v.current;
|
|
829
816
|
n.style.pointerEvents = "none";
|
|
830
817
|
let a = r ? r.deepAt(e, t) : document.elementsFromPoint(e, t).find((e) => !i(e) && e !== document.documentElement && e !== document.body) ?? document.body;
|
|
831
818
|
return n.style.pointerEvents = "auto", r ? r.paintedAt(a, (n) => {
|
|
832
|
-
let i =
|
|
819
|
+
let i = I(e, t);
|
|
833
820
|
return !!i && n.contains(i.node) && r.overText(e, t, i);
|
|
834
821
|
}) : a;
|
|
835
|
-
},
|
|
822
|
+
}, P = (e) => {
|
|
836
823
|
if (!v.current) return;
|
|
837
824
|
let n = a(e), r = n.left + Math.min(n.width / 2, 24), i = n.top + Math.min(n.height / 2, 24);
|
|
838
825
|
t({
|
|
@@ -847,7 +834,7 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
847
834
|
},
|
|
848
835
|
region: null
|
|
849
836
|
});
|
|
850
|
-
},
|
|
837
|
+
}, F = () => {
|
|
851
838
|
t({
|
|
852
839
|
anchor: {
|
|
853
840
|
type: "page",
|
|
@@ -862,8 +849,8 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
862
849
|
},
|
|
863
850
|
region: null
|
|
864
851
|
});
|
|
865
|
-
},
|
|
866
|
-
let n =
|
|
852
|
+
}, I = (e, t) => {
|
|
853
|
+
let n = O.current, r = v.current;
|
|
867
854
|
if (!n || !r) return null;
|
|
868
855
|
n.style.pointerEvents = "none";
|
|
869
856
|
try {
|
|
@@ -878,8 +865,8 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
878
865
|
else if (r && t.key === "Enter") {
|
|
879
866
|
let e = document.activeElement;
|
|
880
867
|
if (!e || e === document.body || e.hasAttribute("data-commentkit-host")) return;
|
|
881
|
-
t.preventDefault(),
|
|
882
|
-
} else t.key === "Enter" && !t.composedPath().some((e) => e instanceof HTMLButtonElement) && (t.preventDefault(), p ?
|
|
868
|
+
t.preventDefault(), P(e);
|
|
869
|
+
} else t.key === "Enter" && !t.composedPath().some((e) => e instanceof HTMLButtonElement) && (t.preventDefault(), p ? P(p) : F());
|
|
883
870
|
};
|
|
884
871
|
return addEventListener("keydown", t), () => removeEventListener("keydown", t);
|
|
885
872
|
}, [e, r]), /* @__PURE__ */ x(l, { children: [
|
|
@@ -900,69 +887,69 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
900
887
|
}),
|
|
901
888
|
r ? null : p ? /* @__PURE__ */ x("button", {
|
|
902
889
|
class: "ck-chip",
|
|
903
|
-
ref:
|
|
904
|
-
onClick: () =>
|
|
890
|
+
ref: k,
|
|
891
|
+
onClick: () => P(p),
|
|
905
892
|
children: u("commentFocused")
|
|
906
893
|
}) : null,
|
|
907
894
|
r ? null : /* @__PURE__ */ x("button", {
|
|
908
895
|
class: "ck-chip",
|
|
909
|
-
ref: p ? void 0 :
|
|
910
|
-
onClick:
|
|
896
|
+
ref: p ? void 0 : k,
|
|
897
|
+
onClick: F,
|
|
911
898
|
children: u("commentOnPage")
|
|
912
899
|
}),
|
|
913
900
|
/* @__PURE__ */ x("button", {
|
|
914
901
|
class: "ck-chip",
|
|
915
|
-
ref: r ?
|
|
902
|
+
ref: r ? k : void 0,
|
|
916
903
|
onClick: e,
|
|
917
904
|
children: u("cancel")
|
|
918
905
|
})
|
|
919
906
|
]
|
|
920
907
|
}),
|
|
921
908
|
/* @__PURE__ */ x("div", {
|
|
922
|
-
ref:
|
|
909
|
+
ref: O,
|
|
923
910
|
class: "ck-catcher",
|
|
924
911
|
"data-commentkit-ui": !0,
|
|
925
912
|
onPointerMove: (e) => {
|
|
926
913
|
if (e.pointerType === "touch") {
|
|
927
|
-
let t =
|
|
928
|
-
t && (Math.abs(e.clientX - t.x) > 8 || Math.abs(e.clientY - t.y) > 8) &&
|
|
914
|
+
let t = A.current;
|
|
915
|
+
t && (Math.abs(e.clientX - t.x) > 8 || Math.abs(e.clientY - t.y) > 8) && M();
|
|
929
916
|
return;
|
|
930
917
|
}
|
|
931
|
-
if (
|
|
932
|
-
let t =
|
|
918
|
+
if (A.current && w.current) {
|
|
919
|
+
let t = I(e.clientX, e.clientY);
|
|
933
920
|
if (!t) return;
|
|
934
|
-
let n = v.current, r = n.between(
|
|
921
|
+
let n = v.current, r = n.between(w.current, t);
|
|
935
922
|
if (!r) return;
|
|
936
|
-
|
|
923
|
+
T.current = r, D(n.boxesOf(r).filter((e) => e.width > 0 && e.height > 0).slice(0, 200));
|
|
937
924
|
return;
|
|
938
925
|
}
|
|
939
|
-
if (
|
|
940
|
-
|
|
941
|
-
x:
|
|
942
|
-
y:
|
|
926
|
+
if (A.current) {
|
|
927
|
+
C({
|
|
928
|
+
x: A.current.x,
|
|
929
|
+
y: A.current.y,
|
|
943
930
|
x2: e.clientX,
|
|
944
931
|
y2: e.clientY
|
|
945
932
|
});
|
|
946
933
|
return;
|
|
947
934
|
}
|
|
948
|
-
let t =
|
|
935
|
+
let t = N(e.clientX, e.clientY);
|
|
949
936
|
_(t ? a(t) : null);
|
|
950
937
|
},
|
|
951
938
|
onPointerDown: (e) => {
|
|
952
939
|
if (e.button !== 0 || !v.current) return;
|
|
953
|
-
let r =
|
|
940
|
+
let r = N(e.clientX, e.clientY);
|
|
954
941
|
if (r) {
|
|
955
|
-
if (
|
|
942
|
+
if (A.current = {
|
|
956
943
|
x: e.clientX,
|
|
957
944
|
y: e.clientY,
|
|
958
945
|
target: r
|
|
959
|
-
},
|
|
960
|
-
let t =
|
|
961
|
-
t && v.current.overText(e.clientX, e.clientY, t) && (
|
|
946
|
+
}, j.current.fired = !1, w.current = null, T.current = null, n && e.pointerType !== "touch" && !e.shiftKey) {
|
|
947
|
+
let t = I(e.clientX, e.clientY);
|
|
948
|
+
t && v.current.overText(e.clientX, e.clientY, t) && (w.current = t);
|
|
962
949
|
}
|
|
963
|
-
e.pointerType === "touch" && (e.preventDefault(),
|
|
964
|
-
let e =
|
|
965
|
-
|
|
950
|
+
e.pointerType === "touch" && (e.preventDefault(), M(), j.current.timer = setTimeout(() => {
|
|
951
|
+
let e = A.current;
|
|
952
|
+
j.current.timer = null, e && (j.current.fired = !0, A.current = null, _t(e.x, e.y), t({
|
|
966
953
|
anchor: y({
|
|
967
954
|
element: e.target,
|
|
968
955
|
clientX: e.x,
|
|
@@ -974,15 +961,15 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
974
961
|
},
|
|
975
962
|
region: null
|
|
976
963
|
}));
|
|
977
|
-
}, 500)), e.pointerType !== "touch" &&
|
|
964
|
+
}, 500)), e.pointerType !== "touch" && O.current?.setPointerCapture(e.pointerId);
|
|
978
965
|
}
|
|
979
966
|
},
|
|
980
967
|
onPointerUp: (e) => {
|
|
981
|
-
|
|
982
|
-
let n =
|
|
983
|
-
if (
|
|
984
|
-
let r =
|
|
985
|
-
|
|
968
|
+
M();
|
|
969
|
+
let n = A.current;
|
|
970
|
+
if (A.current = null, C(null), D([]), !n) return;
|
|
971
|
+
let r = T.current;
|
|
972
|
+
w.current = null, T.current = null;
|
|
986
973
|
let i = r?.toString().trim();
|
|
987
974
|
if (r && i) {
|
|
988
975
|
let e = a(r.startContainer, r.getBoundingClientRect()), o = r.commonAncestorContainer.nodeType === 1 ? r.commonAncestorContainer : r.commonAncestorContainer.parentElement ?? n.target;
|
|
@@ -1008,8 +995,8 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
1008
995
|
}
|
|
1009
996
|
let o = Math.abs(e.clientX - n.x) > 8 || Math.abs(e.clientY - n.y) > 8;
|
|
1010
997
|
if (e.pointerType === "touch" && o) return;
|
|
1011
|
-
e.pointerType === "touch" &&
|
|
1012
|
-
let s = e.pointerType !== "touch" && Math.abs(e.clientX - n.x) > 8 && Math.abs(e.clientY - n.y) > 8, c = s ?
|
|
998
|
+
e.pointerType === "touch" && _t(e.clientX, e.clientY);
|
|
999
|
+
let s = e.pointerType !== "touch" && Math.abs(e.clientX - n.x) > 8 && Math.abs(e.clientY - n.y) > 8, c = s ? vt(n.target, N(e.clientX, e.clientY) ?? n.target) : n.target;
|
|
1013
1000
|
t({
|
|
1014
1001
|
anchor: y({
|
|
1015
1002
|
element: c,
|
|
@@ -1033,27 +1020,27 @@ function yt({ onCancel: e, onPick: t, quote: n = !0, move: r = !1, picker: c = n
|
|
|
1033
1020
|
});
|
|
1034
1021
|
},
|
|
1035
1022
|
onPointerCancel: () => {
|
|
1036
|
-
|
|
1023
|
+
M(), A.current = null, C(null);
|
|
1037
1024
|
},
|
|
1038
1025
|
onContextMenu: (t) => {
|
|
1039
|
-
t.preventDefault(),
|
|
1026
|
+
t.preventDefault(), j.current.timer || j.current.fired || m || e();
|
|
1040
1027
|
}
|
|
1041
1028
|
}),
|
|
1042
|
-
h && !b && !
|
|
1029
|
+
h && !b && !E.length ? /* @__PURE__ */ x("div", {
|
|
1043
1030
|
class: "ck-outline",
|
|
1044
1031
|
style: K(h.left - 2, h.top - 2, h.width + 4, h.height + 4)
|
|
1045
1032
|
}) : null,
|
|
1046
|
-
|
|
1033
|
+
E.map((e) => /* @__PURE__ */ x("div", {
|
|
1047
1034
|
class: "ck-text-box",
|
|
1048
1035
|
style: K(e.left, e.top, e.width, e.height)
|
|
1049
1036
|
})),
|
|
1050
|
-
b && !
|
|
1037
|
+
b && !w.current ? /* @__PURE__ */ x("div", {
|
|
1051
1038
|
class: "ck-region",
|
|
1052
1039
|
style: K(Math.min(b.x, b.x2), Math.min(b.y, b.y2), Math.abs(b.x2 - b.x), Math.abs(b.y2 - b.y))
|
|
1053
1040
|
}) : null
|
|
1054
1041
|
] });
|
|
1055
1042
|
}
|
|
1056
|
-
function
|
|
1043
|
+
function _t(e, t) {
|
|
1057
1044
|
$();
|
|
1058
1045
|
let n = (n) => {
|
|
1059
1046
|
Math.abs(n.clientX - e) > 24 || Math.abs(n.clientY - t) > 24 || (n.preventDefault(), n.stopPropagation(), $());
|
|
@@ -1065,18 +1052,18 @@ function bt(e, t) {
|
|
|
1065
1052
|
};
|
|
1066
1053
|
}
|
|
1067
1054
|
var $ = () => void 0;
|
|
1068
|
-
function
|
|
1055
|
+
function vt(e, t) {
|
|
1069
1056
|
if (e.contains(t)) return e;
|
|
1070
1057
|
for (let n = t; n; n = n.parentElement) if (n.contains(e)) return n;
|
|
1071
1058
|
return document.body;
|
|
1072
1059
|
}
|
|
1073
1060
|
// src/ui/nav.ts
|
|
1074
|
-
function
|
|
1075
|
-
let r =
|
|
1076
|
-
if (!r || !/^https?:$/.test(new URL(r).protocol) ||
|
|
1077
|
-
location.assign(
|
|
1061
|
+
function yt(e, t, n) {
|
|
1062
|
+
let r = ve(e);
|
|
1063
|
+
if (!r || !/^https?:$/.test(new URL(r).protocol) || bt(r)) return n(t);
|
|
1064
|
+
location.assign(We(r, t));
|
|
1078
1065
|
}
|
|
1079
|
-
function
|
|
1066
|
+
function bt(e) {
|
|
1080
1067
|
try {
|
|
1081
1068
|
let t = new URL(e), r = new URL(n());
|
|
1082
1069
|
return t.origin === r.origin && t.pathname === r.pathname && t.search === r.search && (t.hash === r.hash || !t.hash.startsWith("#/"));
|
|
@@ -1085,9 +1072,9 @@ function Ct(e) {
|
|
|
1085
1072
|
}
|
|
1086
1073
|
}
|
|
1087
1074
|
// src/ui/Pins.tsx
|
|
1088
|
-
var
|
|
1089
|
-
function
|
|
1090
|
-
let f = Z(e.state, (e) => e.threads), p = Z(e.state, (e) => !!e.session?.capabilities.triage && !e.config?.read_only), m =
|
|
1075
|
+
var xt = "M31.5 4.8C17.3 4.4 7 15.2 7 29c0 13 8.5 21.2 20.9 23 1.6.2 2.1 1.2 2.1 2.5v6.9c0 1.7 1.2 2.1 2.5.9 5.7-4.9 16-13.6 21.1-22.1 3.5-5.8 4.7-11.8 3.2-18.1C54.3 11.5 44.7 4.6 31.5 4.8Z", St = 6;
|
|
1076
|
+
function Ct({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
|
|
1077
|
+
let f = Z(e.state, (e) => e.threads), p = Z(e.state, (e) => !!e.session?.capabilities.triage && !e.config?.read_only), m = Te(f.length > 0), h = Q(!0, () => import("./placement-BF_HOUDD.js")), _ = S(() => h?.createPlacer(), [h]), [, v] = s(0), [y] = s(() => /* @__PURE__ */ new Map()), [b] = s(() => /* @__PURE__ */ new Map());
|
|
1091
1078
|
d(() => {
|
|
1092
1079
|
let e = new Set(f.map((e) => e.id));
|
|
1093
1080
|
_?.keep(e);
|
|
@@ -1098,10 +1085,10 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
|
|
|
1098
1085
|
let t = setTimeout(() => v((e) => e + 1), e);
|
|
1099
1086
|
return () => clearTimeout(t);
|
|
1100
1087
|
});
|
|
1101
|
-
let
|
|
1088
|
+
let C = g(null), w = g(null), T = typeof matchMedia == "function" && matchMedia("(hover: hover)").matches, E = f.map((e) => ({
|
|
1102
1089
|
thread: e,
|
|
1103
1090
|
at: _ ? _(e.id, e.anchor, m.version) : null
|
|
1104
|
-
})),
|
|
1091
|
+
})), D = (e) => {
|
|
1105
1092
|
let t = e?.getBoundingClientRect() ?? {
|
|
1106
1093
|
left: -scrollX,
|
|
1107
1094
|
top: -scrollY,
|
|
@@ -1111,11 +1098,11 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
|
|
|
1111
1098
|
x: (e - t.left) / (t.width / 100 || 1),
|
|
1112
1099
|
y: (n - t.top) / (t.width / 100 || 1)
|
|
1113
1100
|
});
|
|
1114
|
-
},
|
|
1101
|
+
}, O = D(C.current), k = D(w.current), A = E.flatMap(({ thread: e, at: t }) => {
|
|
1115
1102
|
let n = e.anchor.quote;
|
|
1116
1103
|
if (!t || e.anchor.type !== "text" || !n) return [];
|
|
1117
1104
|
let r = y.get(e.id);
|
|
1118
|
-
r?.[0] !== m.version && y.set(e.id, r = [m.version,
|
|
1105
|
+
r?.[0] !== m.version && y.set(e.id, r = [m.version, Ot(t.element, n)]);
|
|
1119
1106
|
let i = t.element.getBoundingClientRect(), o = a(t.element);
|
|
1120
1107
|
return [...r[1]?.getClientRects() ?? []].map((e) => new DOMRect(e.x + o.x - i.x, e.y + o.y - i.y, e.width, e.height)).filter((e) => e.width > 0 && e.height > 0 && t.inView(e.left + e.width / 2, e.top + e.height / 2)).slice(0, 50).map((n) => ({
|
|
1121
1108
|
id: e.id,
|
|
@@ -1125,52 +1112,52 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
|
|
|
1125
1112
|
w: n.width,
|
|
1126
1113
|
h: n.height
|
|
1127
1114
|
}));
|
|
1128
|
-
}),
|
|
1129
|
-
|
|
1130
|
-
if (!
|
|
1115
|
+
}), j = g(A);
|
|
1116
|
+
j.current = A, d(() => m.watch(E.flatMap(({ at: e }) => e?.element ? [e.element] : []))), d(() => {
|
|
1117
|
+
if (!T) return;
|
|
1131
1118
|
let e = 0, t = null, n = (n) => {
|
|
1132
1119
|
e || (e = requestAnimationFrame(() => {
|
|
1133
1120
|
e = 0;
|
|
1134
|
-
let r = n.clientX, i = n.clientY, a =
|
|
1135
|
-
a !== t && (t = a,
|
|
1121
|
+
let r = n.clientX, i = n.clientY, a = j.current.find((e) => r >= e.x && r <= e.x + e.w && i >= e.y && i <= e.y + e.h)?.id ?? null;
|
|
1122
|
+
a !== t && (t = a, z(a, a ? 250 : 120));
|
|
1136
1123
|
}));
|
|
1137
1124
|
};
|
|
1138
1125
|
return addEventListener("pointermove", n, { passive: !0 }), () => {
|
|
1139
1126
|
removeEventListener("pointermove", n), cancelAnimationFrame(e);
|
|
1140
1127
|
};
|
|
1141
|
-
}, [
|
|
1142
|
-
let [
|
|
1143
|
-
|
|
1128
|
+
}, [A.length > 0]);
|
|
1129
|
+
let [M, N] = s(null), [P, F] = s(null), I = g(null), L = g(!1), R = g(null), z = (e, t) => {
|
|
1130
|
+
R.current && clearTimeout(R.current), R.current = setTimeout(() => N(e), t);
|
|
1144
1131
|
};
|
|
1145
|
-
d(() => () => void (
|
|
1146
|
-
let
|
|
1132
|
+
d(() => () => void (R.current && clearTimeout(R.current)), []);
|
|
1133
|
+
let B = (t, n, a) => {
|
|
1147
1134
|
let s = document.elementsFromPoint(n, a).find((e) => !i(e) && e !== document.documentElement);
|
|
1148
|
-
s &&
|
|
1135
|
+
s && wt(e, t, o({
|
|
1149
1136
|
element: s,
|
|
1150
1137
|
clientX: n,
|
|
1151
1138
|
clientY: a
|
|
1152
1139
|
}), r, c);
|
|
1153
|
-
},
|
|
1154
|
-
e.style.translate = "",
|
|
1155
|
-
},
|
|
1140
|
+
}, ee = (e) => {
|
|
1141
|
+
e.style.translate = "", F(null);
|
|
1142
|
+
}, V = {
|
|
1156
1143
|
page: [],
|
|
1157
1144
|
fixed: []
|
|
1158
1145
|
};
|
|
1159
|
-
for (let e of
|
|
1160
|
-
let n = (e.fixed ?
|
|
1161
|
-
|
|
1146
|
+
for (let e of A) {
|
|
1147
|
+
let n = (e.fixed ? k : O)(e.x, e.y);
|
|
1148
|
+
V[e.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x("div", {
|
|
1162
1149
|
class: "ck-shade",
|
|
1163
|
-
"data-active": e.id === t || e.id ===
|
|
1150
|
+
"data-active": e.id === t || e.id === M || void 0,
|
|
1164
1151
|
style: K(n.x, n.y, e.w, e.h),
|
|
1165
1152
|
"aria-hidden": "true"
|
|
1166
1153
|
}));
|
|
1167
1154
|
}
|
|
1168
|
-
for (let { thread: e, at: r } of
|
|
1155
|
+
for (let { thread: e, at: r } of E) {
|
|
1169
1156
|
if (!r) continue;
|
|
1170
|
-
let i = r.fixed ?
|
|
1171
|
-
!c && !a && e.id !== t && (d = m.scrolling ? !!b.get(e.id) :
|
|
1172
|
-
let f = c || d, h =
|
|
1173
|
-
|
|
1157
|
+
let i = r.fixed ? k : O, a = P === e.id, { x: o, y: s } = r, c = !a && r.clipped, d = !1;
|
|
1158
|
+
!c && !a && e.id !== t && (d = m.scrolling ? !!b.get(e.id) : Tt(r.element, o, s), b.set(e.id, d));
|
|
1159
|
+
let f = c || d, h = M === e.id && !P && e.id !== t && !f, g = i(o, s), _ = r.resolved.rect && e.id === t && !c ? i(r.resolved.rect.x - scrollX, r.resolved.rect.y - scrollY) : null;
|
|
1160
|
+
V[r.fixed ? "fixed" : "page"].push(/* @__PURE__ */ x(l, { children: [
|
|
1174
1161
|
_ ? /* @__PURE__ */ x("div", {
|
|
1175
1162
|
class: "ck-pin-region",
|
|
1176
1163
|
style: K(_.x, _.y, r.resolved.rect.w, r.resolved.rect.h)
|
|
@@ -1188,14 +1175,14 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
|
|
|
1188
1175
|
"aria-expanded": e.id === t,
|
|
1189
1176
|
"aria-label": `${e.reference} · ${u(`status_${e.status}`)}: ${e.first_message?.body.slice(0, 80) ?? ""}`,
|
|
1190
1177
|
"aria-roledescription": p ? u("pinMovable") : void 0,
|
|
1191
|
-
onPointerEnter: () =>
|
|
1192
|
-
onPointerLeave: () =>
|
|
1193
|
-
onFocus: () =>
|
|
1194
|
-
onBlur: () =>
|
|
1178
|
+
onPointerEnter: () => T && z(e.id, 250),
|
|
1179
|
+
onPointerLeave: () => T && z(null, 120),
|
|
1180
|
+
onFocus: () => z(e.id, 0),
|
|
1181
|
+
onBlur: () => z(null, 0),
|
|
1195
1182
|
onPointerDown: (t) => {
|
|
1196
1183
|
if (!p || t.button !== 0) return;
|
|
1197
1184
|
let n = t.currentTarget.parentElement?.getBoundingClientRect().width;
|
|
1198
|
-
|
|
1185
|
+
I.current = {
|
|
1199
1186
|
id: e.id,
|
|
1200
1187
|
x: t.clientX,
|
|
1201
1188
|
y: t.clientY,
|
|
@@ -1204,37 +1191,37 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
|
|
|
1204
1191
|
}, t.currentTarget.setPointerCapture?.(t.pointerId);
|
|
1205
1192
|
},
|
|
1206
1193
|
onPointerMove: (t) => {
|
|
1207
|
-
let n =
|
|
1194
|
+
let n = I.current;
|
|
1208
1195
|
if (n && n.id === e.id) {
|
|
1209
1196
|
if (!n.moved) {
|
|
1210
|
-
if (Math.hypot(t.clientX - n.x, t.clientY - n.y) <
|
|
1211
|
-
n.moved = !0,
|
|
1197
|
+
if (Math.hypot(t.clientX - n.x, t.clientY - n.y) < St) return;
|
|
1198
|
+
n.moved = !0, N(null), F(e.id);
|
|
1212
1199
|
}
|
|
1213
1200
|
t.currentTarget.style.translate = `${(t.clientX - n.x) / n.scale}px ${(t.clientY - n.y) / n.scale}px`;
|
|
1214
1201
|
}
|
|
1215
1202
|
},
|
|
1216
1203
|
onPointerUp: (t) => {
|
|
1217
|
-
let n =
|
|
1218
|
-
|
|
1204
|
+
let n = I.current;
|
|
1205
|
+
I.current = null, n?.moved && (L.current = !0, ee(t.currentTarget), B(e, t.clientX, t.clientY));
|
|
1219
1206
|
},
|
|
1220
1207
|
onPointerCancel: (e) => {
|
|
1221
|
-
|
|
1208
|
+
I.current = null, ee(e.currentTarget);
|
|
1222
1209
|
},
|
|
1223
1210
|
onClick: () => {
|
|
1224
|
-
if (
|
|
1211
|
+
if (L.current) return void (L.current = !1);
|
|
1225
1212
|
n(e);
|
|
1226
1213
|
},
|
|
1227
|
-
onKeyDown: (e) => e.key === "Escape" &&
|
|
1214
|
+
onKeyDown: (e) => e.key === "Escape" && N(null),
|
|
1228
1215
|
children: [/* @__PURE__ */ x("svg", {
|
|
1229
1216
|
viewBox: "5 3 54 62",
|
|
1230
1217
|
"aria-hidden": "true",
|
|
1231
|
-
children: /* @__PURE__ */ x("path", { d:
|
|
1218
|
+
children: /* @__PURE__ */ x("path", { d: xt })
|
|
1232
1219
|
}), /* @__PURE__ */ x("span", {
|
|
1233
1220
|
"data-long": e.number > 999 || void 0,
|
|
1234
1221
|
children: e.number > 9999 ? `${e.number / 1e3 | 0}k` : e.number
|
|
1235
1222
|
})]
|
|
1236
1223
|
}),
|
|
1237
|
-
h ? /* @__PURE__ */ x(
|
|
1224
|
+
h ? /* @__PURE__ */ x(Dt, {
|
|
1238
1225
|
thread: e,
|
|
1239
1226
|
x: o,
|
|
1240
1227
|
y: s,
|
|
@@ -1244,18 +1231,18 @@ function Et({ client: e, activeId: t, onOpen: n, notify: r, onError: c }) {
|
|
|
1244
1231
|
}
|
|
1245
1232
|
return /* @__PURE__ */ x(l, { children: [/* @__PURE__ */ x("div", {
|
|
1246
1233
|
class: "ck-pins",
|
|
1247
|
-
ref:
|
|
1234
|
+
ref: C,
|
|
1248
1235
|
"data-commentkit-ui": !0,
|
|
1249
|
-
children:
|
|
1236
|
+
children: V.page
|
|
1250
1237
|
}), /* @__PURE__ */ x("div", {
|
|
1251
1238
|
class: "ck-pins",
|
|
1252
|
-
ref:
|
|
1239
|
+
ref: w,
|
|
1253
1240
|
"data-fixed": !0,
|
|
1254
1241
|
"data-commentkit-ui": !0,
|
|
1255
|
-
children:
|
|
1242
|
+
children: V.fixed
|
|
1256
1243
|
})] });
|
|
1257
1244
|
}
|
|
1258
|
-
function
|
|
1245
|
+
function wt(e, t, n, r, i) {
|
|
1259
1246
|
let a = t.anchor, o = (n) => e.state.set((e) => ({ threads: e.threads.map((e) => e.id === t.id ? {
|
|
1260
1247
|
...e,
|
|
1261
1248
|
anchor: n
|
|
@@ -1273,16 +1260,16 @@ function Dt(e, t, n, r, i) {
|
|
|
1273
1260
|
o(a), i(e);
|
|
1274
1261
|
});
|
|
1275
1262
|
}
|
|
1276
|
-
function
|
|
1263
|
+
function Tt(e, t, n) {
|
|
1277
1264
|
if (!e?.isConnected || t < 0 || n < 0 || t >= innerWidth || n >= innerHeight) return !1;
|
|
1278
|
-
let r = document.elementsFromPoint(t, n).find((e) => !i(e)), a =
|
|
1265
|
+
let r = document.elementsFromPoint(t, n).find((e) => !i(e)), a = Et(e), o = r && Et(r);
|
|
1279
1266
|
return !!o && o !== document.documentElement && o !== document.body && !a.contains(o) && !o.contains(a);
|
|
1280
1267
|
}
|
|
1281
|
-
function
|
|
1268
|
+
function Et(e) {
|
|
1282
1269
|
for (let t; t = e.getRootNode().host ?? (e.ownerDocument !== document && e.ownerDocument.defaultView?.frameElement);) e = t;
|
|
1283
1270
|
return e;
|
|
1284
1271
|
}
|
|
1285
|
-
function
|
|
1272
|
+
function Dt({ thread: e, x: t, y: n, to: r }) {
|
|
1286
1273
|
let i = n > 180, a = h() === "rtl" ? t - 18 - 260 : t + 18, o = r(Math.min(Math.max(8, a), innerWidth - 260 - 8), i ? n - 16 : n + 24);
|
|
1287
1274
|
return /* @__PURE__ */ x("div", {
|
|
1288
1275
|
class: "ck-peek",
|
|
@@ -1295,7 +1282,7 @@ function At({ thread: e, x: t, y: n, to: r }) {
|
|
|
1295
1282
|
/* @__PURE__ */ x("div", {
|
|
1296
1283
|
class: "ck-peek-top",
|
|
1297
1284
|
children: [
|
|
1298
|
-
/* @__PURE__ */ x(
|
|
1285
|
+
/* @__PURE__ */ x(ye, { person: e.author }),
|
|
1299
1286
|
/* @__PURE__ */ x("bdi", {
|
|
1300
1287
|
class: "ck-msg-name",
|
|
1301
1288
|
children: e.author.name
|
|
@@ -1317,7 +1304,7 @@ function At({ thread: e, x: t, y: n, to: r }) {
|
|
|
1317
1304
|
}),
|
|
1318
1305
|
/* @__PURE__ */ x("div", {
|
|
1319
1306
|
class: "ck-peek-foot",
|
|
1320
|
-
children: [/* @__PURE__ */ x(
|
|
1307
|
+
children: [/* @__PURE__ */ x(xe, { status: e.status }), /* @__PURE__ */ x("span", {
|
|
1321
1308
|
class: "ck-muted",
|
|
1322
1309
|
children: c("messageCount", e.message_count)
|
|
1323
1310
|
})]
|
|
@@ -1325,7 +1312,7 @@ function At({ thread: e, x: t, y: n, to: r }) {
|
|
|
1325
1312
|
]
|
|
1326
1313
|
});
|
|
1327
1314
|
}
|
|
1328
|
-
function
|
|
1315
|
+
function Ot(e, t) {
|
|
1329
1316
|
let n = t.replace(/\s+/g, " ").trim().toLowerCase();
|
|
1330
1317
|
if (!n) return null;
|
|
1331
1318
|
let r = [], i = "", a = e.ownerDocument, o = a.createTreeWalker(e, NodeFilter.SHOW_TEXT);
|
|
@@ -1345,24 +1332,24 @@ function jt(e, t) {
|
|
|
1345
1332
|
return u.setStart(c.node, c.offset), u.setEnd(l.node, l.offset + 1), u;
|
|
1346
1333
|
}
|
|
1347
1334
|
// src/ui/session.ts
|
|
1348
|
-
function
|
|
1335
|
+
function kt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportError: c }) {
|
|
1349
1336
|
let l = Z(e.state, (e) => e.opening), f = g(null), p = g(null);
|
|
1350
1337
|
p.current = n.name === "thread" ? n.threadId : n.name === "panel" ? n.threadId ?? null : null;
|
|
1351
1338
|
let [m, h] = s(0);
|
|
1352
1339
|
return d(() => () => f.current?.stop(), []), d(() => {
|
|
1353
1340
|
let n = () => {
|
|
1354
|
-
let e =
|
|
1341
|
+
let e = Ke();
|
|
1355
1342
|
e && (t ? r({
|
|
1356
1343
|
name: "thread",
|
|
1357
1344
|
threadId: e
|
|
1358
|
-
}) :
|
|
1345
|
+
}) : O("commentkit:pending-thread", e));
|
|
1359
1346
|
}, a = () => t && void e.loadPageThreads().catch(c);
|
|
1360
|
-
|
|
1347
|
+
jt(e, c) || a(), n();
|
|
1361
1348
|
let o, s = !1;
|
|
1362
1349
|
if (t) {
|
|
1363
1350
|
e.inbox().catch(() => void 0);
|
|
1364
1351
|
let t = e.state.get().config, n = () => h((e) => e + 1);
|
|
1365
|
-
import("./live-
|
|
1352
|
+
import("./live-HKWO5Tsg.js").then((r) => {
|
|
1366
1353
|
if (s) return;
|
|
1367
1354
|
o = r.catchUp(e, n);
|
|
1368
1355
|
let a = r.comeBack();
|
|
@@ -1375,10 +1362,10 @@ function Mt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
|
|
|
1375
1362
|
})), a.thread ? i({
|
|
1376
1363
|
name: "thread",
|
|
1377
1364
|
threadId: a.thread
|
|
1378
|
-
}) : a.comment && !a.draft
|
|
1365
|
+
}) : a.comment && !a.draft ? i({ name: "commenting" }) : a.inbox && !a.draft && i({ name: "panel" }), t?.features.realtime && t.realtime) return f.current ?? (f.current = r.liveUpdates(e, () => p.current, n)), e.connectRealtime((e) => f.current?.onPing(e));
|
|
1379
1366
|
}).catch(() => void 0);
|
|
1380
1367
|
}
|
|
1381
|
-
let l =
|
|
1368
|
+
let l = Je((e) => (e && a(), n()), () => e.pageKey());
|
|
1382
1369
|
return () => {
|
|
1383
1370
|
s = !0, o?.(), l();
|
|
1384
1371
|
};
|
|
@@ -1394,7 +1381,7 @@ function Mt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
|
|
|
1394
1381
|
draft: null
|
|
1395
1382
|
});
|
|
1396
1383
|
}, []), d(() => {
|
|
1397
|
-
l && t && (e.state.set({ opening: null }), import("./live-
|
|
1384
|
+
l && t && (e.state.set({ opening: null }), import("./live-HKWO5Tsg.js").then((t) => t.openReference(e, l, a, yt, () => o({
|
|
1398
1385
|
text: u("threadNotFound"),
|
|
1399
1386
|
tone: "error"
|
|
1400
1387
|
}), c), c));
|
|
@@ -1403,31 +1390,31 @@ function Mt(e, t, { view: n, open: r, go: i, openThread: a, notify: o, reportErr
|
|
|
1403
1390
|
openId: p.current
|
|
1404
1391
|
};
|
|
1405
1392
|
}
|
|
1406
|
-
var
|
|
1407
|
-
function
|
|
1408
|
-
let n = e.state.get().session, r = !n?.capabilities.triage, i = n && `${n.person.type}:${n.person.id}:${r}`, a = !!i && i !==
|
|
1409
|
-
return
|
|
1393
|
+
var At = null;
|
|
1394
|
+
function jt(e, t) {
|
|
1395
|
+
let n = e.state.get().session, r = !n?.capabilities.triage, i = n && `${n.person.type}:${n.person.id}:${r}`, a = !!i && i !== At && !!e.options.branch && r !== e.state.get().allBranches;
|
|
1396
|
+
return At = i, a && e.setAllBranches(r).catch(t), a;
|
|
1410
1397
|
}
|
|
1411
|
-
function
|
|
1398
|
+
function Mt(e, t, n, r) {
|
|
1412
1399
|
let i = async (n, i) => {
|
|
1413
1400
|
let a = null, o = e.on("error", ({ error: e }) => a = e), s = await e.signIn(t, n).finally(o);
|
|
1414
1401
|
return s !== "signed_in" && s !== "redirecting" && !n?.aborted && !(i && s === "cancelled") && r({
|
|
1415
|
-
text: s === "popup_blocked" ? u("popupBlocked") : a ?
|
|
1402
|
+
text: s === "popup_blocked" ? u("popupBlocked") : a ? Fe(a) : u("signInCancelled"),
|
|
1416
1403
|
tone: "error"
|
|
1417
1404
|
}), s;
|
|
1418
1405
|
}, a = g(n);
|
|
1419
1406
|
return d(() => {
|
|
1420
1407
|
let t = a.current;
|
|
1421
|
-
a.current = n, t && !n && import("./live-
|
|
1408
|
+
a.current = n, t && !n && import("./live-HKWO5Tsg.js").then((n) => n.forgetPerson(e.options.project, t)).catch(() => void 0);
|
|
1422
1409
|
}, [n]), {
|
|
1423
1410
|
signIn: i,
|
|
1424
1411
|
signOut: () => void e.signOut()
|
|
1425
1412
|
};
|
|
1426
1413
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1414
|
+
var Nt = /* @__PURE__ */ new WeakSet();
|
|
1415
|
+
function Pt() {
|
|
1429
1416
|
let e = g([]), [t, n] = s(e.current), r = p((t, r = !1) => {
|
|
1430
|
-
n(e.current = e.current.filter((e) => e !== t)), !
|
|
1417
|
+
n(e.current = e.current.filter((e) => e !== t)), !Nt.has(t) && (Nt.add(t), r || t.onExpire?.());
|
|
1431
1418
|
}, []);
|
|
1432
1419
|
d(() => {
|
|
1433
1420
|
let e = t.filter((e) => (e.tone === "error" || e.action) && !e.expires);
|
|
@@ -1456,7 +1443,7 @@ function Lt() {
|
|
|
1456
1443
|
region: i
|
|
1457
1444
|
};
|
|
1458
1445
|
}
|
|
1459
|
-
function
|
|
1446
|
+
function Ft({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
|
|
1460
1447
|
return /* @__PURE__ */ x("div", {
|
|
1461
1448
|
class: "ck-toast-region",
|
|
1462
1449
|
role: "status",
|
|
@@ -1471,7 +1458,7 @@ function Rt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
|
|
|
1471
1458
|
e.tone ? /* @__PURE__ */ x("span", {
|
|
1472
1459
|
class: "ck-toast-icon",
|
|
1473
1460
|
"aria-hidden": "true",
|
|
1474
|
-
children: /* @__PURE__ */ x(
|
|
1461
|
+
children: /* @__PURE__ */ x(Se, {
|
|
1475
1462
|
name: e.tone === "error" ? "alert" : e.tone === "success" ? "check" : "info",
|
|
1476
1463
|
size: 15
|
|
1477
1464
|
})
|
|
@@ -1486,7 +1473,7 @@ function Rt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
|
|
|
1486
1473
|
"aria-label": u("dismissMessage"),
|
|
1487
1474
|
title: u("dismissMessage"),
|
|
1488
1475
|
onClick: () => t(e),
|
|
1489
|
-
children: /* @__PURE__ */ x(
|
|
1476
|
+
children: /* @__PURE__ */ x(Se, {
|
|
1490
1477
|
name: "close",
|
|
1491
1478
|
size: 14
|
|
1492
1479
|
})
|
|
@@ -1496,11 +1483,11 @@ function Rt({ toasts: { toasts: e, dismiss: t, region: n }, children: r }) {
|
|
|
1496
1483
|
});
|
|
1497
1484
|
}
|
|
1498
1485
|
// src/ui/view.ts
|
|
1499
|
-
var
|
|
1500
|
-
function
|
|
1486
|
+
var It = { name: "idle" };
|
|
1487
|
+
function Lt(e, t) {
|
|
1501
1488
|
let n = e.name === "panel" && e.order || [];
|
|
1502
1489
|
switch (t.name) {
|
|
1503
|
-
case "stop": return e.name === "commenting" ?
|
|
1490
|
+
case "stop": return e.name === "commenting" ? It : e;
|
|
1504
1491
|
case "back": return e.name === "panel" ? {
|
|
1505
1492
|
name: "panel",
|
|
1506
1493
|
order: n
|
|
@@ -1520,8 +1507,8 @@ function Bt(e, t) {
|
|
|
1520
1507
|
default: return t;
|
|
1521
1508
|
}
|
|
1522
1509
|
}
|
|
1523
|
-
function
|
|
1524
|
-
let [e, t] = m(
|
|
1510
|
+
function Rt() {
|
|
1511
|
+
let [e, t] = m(Lt, It), n = g(null);
|
|
1525
1512
|
d(() => {
|
|
1526
1513
|
if (e.name === "idle") {
|
|
1527
1514
|
let e = n.current;
|
|
@@ -1530,9 +1517,9 @@ function Vt() {
|
|
|
1530
1517
|
}, [e.name]);
|
|
1531
1518
|
let [r, i] = s(!1), a = g(null), o = p((e) => {
|
|
1532
1519
|
if (!a.current) {
|
|
1533
|
-
if (e === !0 || matchMedia("(prefers-reduced-motion: reduce)").matches) return t(
|
|
1520
|
+
if (e === !0 || matchMedia("(prefers-reduced-motion: reduce)").matches) return t(It);
|
|
1534
1521
|
i(!0), a.current = setTimeout(() => {
|
|
1535
|
-
a.current = null, i(!1), t(
|
|
1522
|
+
a.current = null, i(!1), t(It);
|
|
1536
1523
|
}, 120);
|
|
1537
1524
|
}
|
|
1538
1525
|
}, []);
|
|
@@ -1551,180 +1538,198 @@ function Vt() {
|
|
|
1551
1538
|
};
|
|
1552
1539
|
}
|
|
1553
1540
|
// src/ui/App.tsx
|
|
1554
|
-
var
|
|
1555
|
-
function
|
|
1541
|
+
var zt = "commentkit:welcomed";
|
|
1542
|
+
function Bt({ client: e, onHide: t = () => void 0 }) {
|
|
1556
1543
|
let n = Z(e.state, ({ config: e }) => e?.enabled === !1 && (e.disabled_reason || "paused")[0]);
|
|
1557
1544
|
return n ? n == "v" ? null : /* @__PURE__ */ x("div", {
|
|
1558
1545
|
class: "ck-toast",
|
|
1559
1546
|
role: "status",
|
|
1560
1547
|
children: u(n == "n" ? "notLive" : "paused")
|
|
1561
|
-
}) : /* @__PURE__ */ x(
|
|
1548
|
+
}) : /* @__PURE__ */ x(Vt, {
|
|
1562
1549
|
client: e,
|
|
1563
1550
|
onHide: t
|
|
1564
1551
|
});
|
|
1565
1552
|
}
|
|
1566
|
-
function
|
|
1553
|
+
function Vt({ client: e, onHide: n }) {
|
|
1567
1554
|
let [i] = s(() => {
|
|
1568
1555
|
let t = e.entrance ?? (e.auth.hasSignInLink() || e.auth.finishLink || /[?&]ck(_thread)?=[^&#]/.test(location.href) ? "link" : null);
|
|
1569
1556
|
return e.entrance = void 0, t;
|
|
1570
|
-
}), [a, o] = s(""), c = Z(e.state, (e) => e.config),
|
|
1571
|
-
|
|
1572
|
-
let
|
|
1557
|
+
}), [a, o] = s(""), c = Z(e.state, (e) => e.config), m = Z(e.state, (e) => e.session), h = m && `${m.person.type}:${m.person.id}`;
|
|
1558
|
+
T(h);
|
|
1559
|
+
let _ = Pt(), { notify: v } = _, { view: y, go: b, open: S, close: C, closing: w } = Rt(), [E, D] = s(!1), [k, A] = s(!1), j = p((t) => {
|
|
1573
1560
|
let n = e.auth.pending();
|
|
1574
|
-
if (t instanceof r && t.code === "verification_required" && n) return
|
|
1561
|
+
if (t instanceof r && t.code === "verification_required" && n) return b({
|
|
1575
1562
|
name: "verify",
|
|
1576
1563
|
email: n.email,
|
|
1577
1564
|
draft: null
|
|
1578
1565
|
});
|
|
1579
|
-
|
|
1580
|
-
text:
|
|
1566
|
+
v({
|
|
1567
|
+
text: Fe(t),
|
|
1581
1568
|
tone: "error"
|
|
1582
1569
|
});
|
|
1583
|
-
}, [
|
|
1584
|
-
d(() =>
|
|
1585
|
-
let
|
|
1586
|
-
if (
|
|
1587
|
-
text:
|
|
1570
|
+
}, [v]), { Settings: M, Shortcuts: N, Composer: P, GuestVerify: F, Panel: I, ThreadCard: L, anchors: R } = at(e, c, y, E, k, j), z = Q(e.auth.finishLink, () => t(() => import("./Guest-bAxvxjbL.js")).then((e) => e.GuestFinish), j), [B] = s(Ge), [ee, V] = s(() => !!B && !O(zt)), [te, ne] = s(() => e.auth.hasSignInLink()), [re, H] = s(null), [, ie] = s(0);
|
|
1571
|
+
d(() => tt(() => ie((e) => e + 1)), []), d(() => () => $(), []);
|
|
1572
|
+
let U = $e(e), W = U && m?.capabilities.triage && !Me() ? () => D(!0) : null, ae = c?.read_only ?? !1, oe = u(m && m.role !== "guest" ? "readOnly" : "readOnlyGuest"), se = !m && y.name === "idle" ? e.auth.pending() : null, [G, K] = s(!1), ce = Q(G, () => t(() => import("./SignInFirst-CeiPhLx0.js")).then((e) => e.SignInFirst), j), q = () => {
|
|
1573
|
+
if (ae) return v({
|
|
1574
|
+
text: oe,
|
|
1588
1575
|
tone: "error"
|
|
1589
1576
|
});
|
|
1590
|
-
if (
|
|
1591
|
-
|
|
1592
|
-
}, J = (e) =>
|
|
1577
|
+
if (V(!1), !m && !B && !e.auth.pending() && !e.auth.hasSession()) return K("comment");
|
|
1578
|
+
S({ name: "commenting" });
|
|
1579
|
+
}, J = (e) => S({
|
|
1593
1580
|
name: "thread",
|
|
1594
1581
|
threadId: typeof e == "string" ? e : e.id
|
|
1595
|
-
}),
|
|
1582
|
+
}), le = () => y.name === "panel" ? C() : S({ name: "panel" }), ue = g(0), de = () => {
|
|
1583
|
+
if (m) return le();
|
|
1584
|
+
let t = e.auth.pending();
|
|
1585
|
+
if (t) return S({
|
|
1586
|
+
name: "verify",
|
|
1587
|
+
email: t.email,
|
|
1588
|
+
draft: re
|
|
1589
|
+
});
|
|
1590
|
+
if (e.auth.hasSession()) return void (ue.current = Date.now());
|
|
1591
|
+
K("inbox");
|
|
1592
|
+
}, fe = (t) => {
|
|
1596
1593
|
let n = e.state.get().threads.find((e) => e.id === t);
|
|
1597
|
-
return n ? () =>
|
|
1594
|
+
return n ? () => b({
|
|
1598
1595
|
name: "commenting",
|
|
1599
1596
|
move: n
|
|
1600
1597
|
}) : void 0;
|
|
1601
|
-
}, { signIn:
|
|
1602
|
-
d(() =>
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1598
|
+
}, { signIn: pe, signOut: me } = Mt(e, B, h, v);
|
|
1599
|
+
d(() => {
|
|
1600
|
+
m && (K(!1), Date.now() - ue.current < 6e4 && S({ name: "panel" }), ue.current = 0);
|
|
1601
|
+
}, [m]);
|
|
1602
|
+
let { cardVersion: he, openId: ge } = kt(e, m, {
|
|
1603
|
+
view: y,
|
|
1604
|
+
open: S,
|
|
1605
|
+
go: b,
|
|
1607
1606
|
openThread: J,
|
|
1608
|
-
notify:
|
|
1609
|
-
reportError:
|
|
1607
|
+
notify: v,
|
|
1608
|
+
reportError: j
|
|
1610
1609
|
});
|
|
1611
|
-
|
|
1612
|
-
view:
|
|
1613
|
-
help:
|
|
1614
|
-
keys:
|
|
1615
|
-
signedIn: !!
|
|
1610
|
+
dt(() => ({
|
|
1611
|
+
view: y,
|
|
1612
|
+
help: E,
|
|
1613
|
+
keys: U,
|
|
1614
|
+
signedIn: !!m,
|
|
1616
1615
|
threads: e.state.get().threads
|
|
1617
|
-
}), (e) => e === "help" ?
|
|
1616
|
+
}), (e) => e === "help" ? D(!0) : e === "closeHelp" ? D(!1) : e === "comment" ? q() : e === "back" ? y.name === "commenting" ? b({ name: "idle" }) : C(!0) : J(e)), ft(e, y, {
|
|
1618
1617
|
comment: q,
|
|
1619
|
-
go:
|
|
1620
|
-
|
|
1621
|
-
signIn: () => void Y()
|
|
1618
|
+
go: b,
|
|
1619
|
+
inbox: de
|
|
1622
1620
|
});
|
|
1623
|
-
let [
|
|
1621
|
+
let [Y, _e] = st(e, c), [X, ve] = s(!1);
|
|
1622
|
+
f(() => void ((y.name != "idle" || G || E || k) && ve(!1)), [
|
|
1623
|
+
y.name,
|
|
1624
|
+
G,
|
|
1625
|
+
E,
|
|
1626
|
+
k
|
|
1627
|
+
]);
|
|
1628
|
+
let ye = X ? "none" : "contents";
|
|
1624
1629
|
return /* @__PURE__ */ x(l, { children: [
|
|
1625
|
-
|
|
1630
|
+
m ? /* @__PURE__ */ x(Ct, {
|
|
1626
1631
|
client: e,
|
|
1627
|
-
activeId:
|
|
1632
|
+
activeId: ge,
|
|
1628
1633
|
onOpen: J,
|
|
1629
|
-
notify:
|
|
1630
|
-
onError:
|
|
1634
|
+
notify: v,
|
|
1635
|
+
onError: j
|
|
1631
1636
|
}) : null,
|
|
1632
|
-
|
|
1633
|
-
picker:
|
|
1634
|
-
quote: e.options.tools?.text !== !1 && !
|
|
1635
|
-
move: !!
|
|
1636
|
-
onCancel: () =>
|
|
1637
|
+
y.name === "commenting" && R ? /* @__PURE__ */ x(gt, {
|
|
1638
|
+
picker: R.picker,
|
|
1639
|
+
quote: e.options.tools?.text !== !1 && !y.move,
|
|
1640
|
+
move: !!y.move,
|
|
1641
|
+
onCancel: () => b({ name: "idle" }),
|
|
1637
1642
|
onPick: (t) => {
|
|
1638
|
-
let n =
|
|
1639
|
-
if (!n) return
|
|
1643
|
+
let n = y.move;
|
|
1644
|
+
if (!n) return b({
|
|
1640
1645
|
name: "composing",
|
|
1641
1646
|
draft: t
|
|
1642
1647
|
});
|
|
1643
|
-
|
|
1648
|
+
b({ name: "idle" }), wt(e, n, t.anchor, v, j);
|
|
1644
1649
|
}
|
|
1645
1650
|
}) : null,
|
|
1646
1651
|
/* @__PURE__ */ x("div", {
|
|
1647
1652
|
class: "ck-layer",
|
|
1648
|
-
"data-closing":
|
|
1649
|
-
"data-pos":
|
|
1653
|
+
"data-closing": w || void 0,
|
|
1654
|
+
"data-pos": Y,
|
|
1650
1655
|
children: [
|
|
1651
|
-
|
|
1656
|
+
y.name === "composing" && P ? /* @__PURE__ */ x(P, {
|
|
1652
1657
|
client: e,
|
|
1653
|
-
draft:
|
|
1654
|
-
signedIn: !!
|
|
1655
|
-
onSignIn:
|
|
1656
|
-
onCancel:
|
|
1657
|
-
share:
|
|
1658
|
-
onError:
|
|
1658
|
+
draft: y.draft,
|
|
1659
|
+
signedIn: !!m,
|
|
1660
|
+
onSignIn: pe,
|
|
1661
|
+
onCancel: C,
|
|
1662
|
+
share: B,
|
|
1663
|
+
onError: j,
|
|
1659
1664
|
onSent: (t, n) => {
|
|
1660
1665
|
let r = e.state.get().session;
|
|
1661
|
-
|
|
1666
|
+
v({
|
|
1662
1667
|
text: n ? u(n === "screenshot" ? "sentWithoutScreenshot" : "sentWithoutFiles") : r?.role === "guest" || !r ? u("sentGuest") : u("sent"),
|
|
1663
1668
|
tone: n ? "info" : "success"
|
|
1664
1669
|
}), J(t);
|
|
1665
1670
|
},
|
|
1666
1671
|
onPending: (e) => {
|
|
1667
|
-
|
|
1672
|
+
H(y.draft), b({
|
|
1668
1673
|
name: "verify",
|
|
1669
1674
|
email: e,
|
|
1670
|
-
draft:
|
|
1675
|
+
draft: y.draft
|
|
1671
1676
|
});
|
|
1672
1677
|
}
|
|
1673
1678
|
}) : null,
|
|
1674
|
-
|
|
1679
|
+
y.name === "verify" && F ? /* @__PURE__ */ x(F, {
|
|
1675
1680
|
client: e,
|
|
1676
|
-
email:
|
|
1677
|
-
onDifferentEmail: () =>
|
|
1678
|
-
onClose:
|
|
1681
|
+
email: y.email,
|
|
1682
|
+
onDifferentEmail: () => b({ name: "edit" }),
|
|
1683
|
+
onClose: C,
|
|
1679
1684
|
onDone: (t) => {
|
|
1680
|
-
if (
|
|
1681
|
-
let t =
|
|
1682
|
-
|
|
1685
|
+
if (y.draft) {
|
|
1686
|
+
let t = Be(e, y.draft.anchor);
|
|
1687
|
+
O(t, null), O(t.replace(/[^:]*~/, ""), null);
|
|
1683
1688
|
}
|
|
1684
|
-
|
|
1689
|
+
v({
|
|
1685
1690
|
text: u("sentGuest"),
|
|
1686
1691
|
tone: "success"
|
|
1687
|
-
}), t[0] ? J(t[0]) :
|
|
1692
|
+
}), t[0] ? J(t[0]) : b({ name: "idle" });
|
|
1688
1693
|
}
|
|
1689
1694
|
}) : null,
|
|
1690
|
-
|
|
1695
|
+
y.name === "thread" && L ? /* @__PURE__ */ x(L, {
|
|
1691
1696
|
client: e,
|
|
1692
|
-
threadId:
|
|
1693
|
-
version:
|
|
1694
|
-
onClose:
|
|
1695
|
-
onError:
|
|
1696
|
-
notify:
|
|
1697
|
-
onMovePin:
|
|
1697
|
+
threadId: y.threadId,
|
|
1698
|
+
version: he,
|
|
1699
|
+
onClose: C,
|
|
1700
|
+
onError: j,
|
|
1701
|
+
notify: v,
|
|
1702
|
+
onMovePin: fe(y.threadId)
|
|
1698
1703
|
}) : null,
|
|
1699
|
-
|
|
1704
|
+
y.name === "panel" && I ? /* @__PURE__ */ x(I, {
|
|
1700
1705
|
client: e,
|
|
1701
|
-
side:
|
|
1702
|
-
dock:
|
|
1703
|
-
onClose:
|
|
1704
|
-
version:
|
|
1705
|
-
onError:
|
|
1706
|
-
notify:
|
|
1707
|
-
reveal:
|
|
1708
|
-
onOpen: (e, t) =>
|
|
1706
|
+
side: Y.endsWith("left") ? "left" : "right",
|
|
1707
|
+
dock: Y.startsWith("top") ? "top" : "bottom",
|
|
1708
|
+
onClose: C,
|
|
1709
|
+
version: he,
|
|
1710
|
+
onError: j,
|
|
1711
|
+
notify: v,
|
|
1712
|
+
reveal: y.signOff,
|
|
1713
|
+
onOpen: (e, t) => b({
|
|
1709
1714
|
name: "panel",
|
|
1710
1715
|
threadId: typeof e == "string" ? e : e.id,
|
|
1711
1716
|
order: t
|
|
1712
1717
|
}),
|
|
1713
|
-
detail:
|
|
1714
|
-
let t =
|
|
1718
|
+
detail: y.threadId && L ? (() => {
|
|
1719
|
+
let t = y.order ?? [], n = t.indexOf(y.threadId), r = (e) => t.length > 1 && n >= 0 ? () => b({
|
|
1715
1720
|
name: "step",
|
|
1716
1721
|
by: e
|
|
1717
1722
|
}) : void 0;
|
|
1718
|
-
return /* @__PURE__ */ x(
|
|
1723
|
+
return /* @__PURE__ */ x(L, {
|
|
1719
1724
|
client: e,
|
|
1720
|
-
threadId:
|
|
1721
|
-
version:
|
|
1722
|
-
onClose:
|
|
1723
|
-
onError:
|
|
1724
|
-
notify:
|
|
1725
|
-
onMovePin:
|
|
1725
|
+
threadId: y.threadId,
|
|
1726
|
+
version: he,
|
|
1727
|
+
onClose: C,
|
|
1728
|
+
onError: j,
|
|
1729
|
+
notify: v,
|
|
1730
|
+
onMovePin: fe(y.threadId),
|
|
1726
1731
|
embedded: {
|
|
1727
|
-
onBack: () =>
|
|
1732
|
+
onBack: () => b({ name: "back" }),
|
|
1728
1733
|
onPrev: r(-1),
|
|
1729
1734
|
onNext: r(1),
|
|
1730
1735
|
position: n < 0 ? null : {
|
|
@@ -1732,7 +1737,7 @@ function Wt({ client: e, onHide: n }) {
|
|
|
1732
1737
|
total: t.length
|
|
1733
1738
|
},
|
|
1734
1739
|
onShow: (e) => {
|
|
1735
|
-
|
|
1740
|
+
b({ name: "idle" }), yt(e.page.url, e.id, J);
|
|
1736
1741
|
}
|
|
1737
1742
|
}
|
|
1738
1743
|
});
|
|
@@ -1740,74 +1745,80 @@ function Wt({ client: e, onHide: n }) {
|
|
|
1740
1745
|
}) : null
|
|
1741
1746
|
]
|
|
1742
1747
|
}),
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1748
|
+
/* @__PURE__ */ x("div", {
|
|
1749
|
+
style: { display: ye },
|
|
1750
|
+
children: z ? /* @__PURE__ */ x(z, {
|
|
1751
|
+
client: e,
|
|
1752
|
+
position: Y,
|
|
1753
|
+
notify: v,
|
|
1754
|
+
onOpen: J
|
|
1755
|
+
}) : G && ce && !m && y.name === "idle" ? /* @__PURE__ */ x(ce, {
|
|
1756
|
+
position: Y,
|
|
1757
|
+
website: c?.project.name ?? "",
|
|
1758
|
+
inbox: G === "inbox",
|
|
1759
|
+
signIn: () => pe(void 0, !0),
|
|
1760
|
+
onSignedIn: () => (K(!1), S({ name: G === "inbox" ? "panel" : "commenting" })),
|
|
1761
|
+
onDismiss: () => K(!1)
|
|
1762
|
+
}) : te && !m && !se && y.name === "idle" ? /* @__PURE__ */ x(it, {
|
|
1763
|
+
position: Y,
|
|
1764
|
+
project: c?.project.name ?? "",
|
|
1765
|
+
onContinue: () => {
|
|
1766
|
+
ne(!1), pe().then(() => ne(e.auth.hasSignInLink()));
|
|
1767
|
+
},
|
|
1768
|
+
onDismiss: () => ne(!1)
|
|
1769
|
+
}) : ee && !m && !ae && y.name === "idle" ? /* @__PURE__ */ x(rt, {
|
|
1770
|
+
position: Y,
|
|
1771
|
+
project: c?.project.name ?? "",
|
|
1772
|
+
onStart: q,
|
|
1773
|
+
onDismiss: () => {
|
|
1774
|
+
V(!1), O(zt, "1");
|
|
1775
|
+
}
|
|
1776
|
+
}) : null
|
|
1777
|
+
}),
|
|
1778
|
+
/* @__PURE__ */ x(pt, {
|
|
1770
1779
|
client: e,
|
|
1771
|
-
position:
|
|
1772
|
-
onMove:
|
|
1773
|
-
commenting:
|
|
1774
|
-
panelOpen:
|
|
1775
|
-
onComment: () =>
|
|
1776
|
-
onPanel:
|
|
1777
|
-
onSignIn: () => void
|
|
1778
|
-
onSignOut:
|
|
1779
|
-
onShortcuts:
|
|
1780
|
-
onApprove:
|
|
1780
|
+
position: Y,
|
|
1781
|
+
onMove: _e,
|
|
1782
|
+
commenting: y.name === "commenting",
|
|
1783
|
+
panelOpen: y.name === "panel",
|
|
1784
|
+
onComment: () => y.name === "commenting" ? b({ name: "idle" }) : q(),
|
|
1785
|
+
onPanel: le,
|
|
1786
|
+
onSignIn: () => void pe(),
|
|
1787
|
+
onSignOut: me,
|
|
1788
|
+
onShortcuts: W,
|
|
1789
|
+
onApprove: m?.capabilities.comment && !ae ? () => S({
|
|
1781
1790
|
name: "panel",
|
|
1782
1791
|
signOff: Date.now()
|
|
1783
1792
|
}) : null,
|
|
1784
|
-
onSettings: () =>
|
|
1793
|
+
onSettings: () => A(!0),
|
|
1785
1794
|
onHide: n,
|
|
1786
|
-
waiting:
|
|
1787
|
-
onCode: () =>
|
|
1795
|
+
waiting: se?.email ?? null,
|
|
1796
|
+
onCode: () => se && S({
|
|
1788
1797
|
name: "verify",
|
|
1789
|
-
email:
|
|
1790
|
-
draft:
|
|
1798
|
+
email: se.email,
|
|
1799
|
+
draft: re
|
|
1791
1800
|
}),
|
|
1792
|
-
covered:
|
|
1801
|
+
covered: y.name !== "idle" && y.name !== "commenting" || E || k,
|
|
1802
|
+
menu: X,
|
|
1803
|
+
onMenu: (e) => (ve(e), e && K(!1)),
|
|
1793
1804
|
entrance: i ? {
|
|
1794
1805
|
key: i === "key",
|
|
1795
|
-
say: () => o(u(
|
|
1806
|
+
say: () => o(u(U ? "shownAnnounce" : "shownAnnounceNoKeys"))
|
|
1796
1807
|
} : null
|
|
1797
1808
|
}),
|
|
1798
|
-
|
|
1799
|
-
|
|
1809
|
+
E && N ? /* @__PURE__ */ x(N, { onClose: () => D(!1) }) : null,
|
|
1810
|
+
k && M ? /* @__PURE__ */ x(M, {
|
|
1800
1811
|
client: e,
|
|
1801
|
-
onClose: () =>
|
|
1802
|
-
onShortcuts:
|
|
1812
|
+
onClose: () => A(!1),
|
|
1813
|
+
onShortcuts: W,
|
|
1803
1814
|
onHide: n,
|
|
1804
|
-
onSignOut:
|
|
1815
|
+
onSignOut: me
|
|
1805
1816
|
}) : null,
|
|
1806
|
-
/* @__PURE__ */ x(
|
|
1807
|
-
toasts:
|
|
1808
|
-
children: [
|
|
1817
|
+
/* @__PURE__ */ x(Ft, {
|
|
1818
|
+
toasts: _,
|
|
1819
|
+
children: [ae && y.name === "commenting" ? /* @__PURE__ */ x("div", {
|
|
1809
1820
|
class: "ck-toast",
|
|
1810
|
-
children:
|
|
1821
|
+
children: oe
|
|
1811
1822
|
}) : null, a ? /* @__PURE__ */ x("span", {
|
|
1812
1823
|
class: "ck-sr",
|
|
1813
1824
|
children: a
|
|
@@ -1816,9 +1827,9 @@ function Wt({ client: e, onHide: n }) {
|
|
|
1816
1827
|
] });
|
|
1817
1828
|
}
|
|
1818
1829
|
// src/ui/styles.css?inline
|
|
1819
|
-
var Gt = ":host{all:initial;--ck-accent:#c2341b;--ck-ix:var(--commentkit-inset-x,var(--ck-opt-ix,0px));--ck-iy:var(--commentkit-inset-y,var(--ck-opt-iy,0px));--ck-accent-ink:#fff;--ck-mark:#ff5733;--ck-mark-ink:#121316;--ck-accent-soft:color-mix(in srgb, var(--ck-accent) 12%, var(--ck-bg));--ck-bg:#fff;--ck-bg-muted:#f7f7f8;--ck-bg-hover:#eeeef0;--ck-border:#e3e3e7;--ck-control:#84858f;--ck-ring:#65677a;--ck-hairline:#12131614;--ck-text:#121316;--ck-text-muted:#5e5f6e;--ck-danger:#c10007;--ck-success:#16794c;--ck-warning:#a15c00;--ck-open:#a6a09b;--ck-review:#8e51ff;--ck-progress:#2563eb;--ck-shadow-sm:0 0 0 1px #1313161a, 0 2px 2px -1px #0000000f, 0 4px 4px -2px #0000000a;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 10px 32px #222a3526, 0 1px 1px #0000000d, 0 4px 6px #222a3514, 0 24px 68px #2f30371a;--ck-radius:12px;--ck-radius-sm:6px;--ck-radius-md:8px;--ck-ease:cubic-bezier(.2, .8, .2, 1);--ck-font:ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--ck-mono:ui-monospace, SFMono-Regular, Menlo, monospace;--ck-z:1000;--ck-fs-2xs:10px;--ck-fs-xs:11px;--ck-fs-sm:12px;--ck-fs-md:13px;--ck-fs:14px;--ck-fs-lg:16px;--ck-fs-xl:20px;--ck-radius-pill:999px;--ck-fast:.12s;--ck-dur:.2s;--ck-img-outline:#0000001a}@supports not (color:color-mix(in srgb, red, red)){:host{--ck-accent-soft:var(--ck-bg-muted)}}@media print{:host,.ck-root{display:none!important}}:host([data-theme=dark]){--ck-bg:#212126;--ck-bg-muted:#1a1a1e;--ck-bg-hover:#2a2a30;--ck-border:#36363c;--ck-control:#7c7d87;--ck-ring:#a1a2ae;--ck-hairline:#ffffff1a;--ck-text:#fff;--ck-text-muted:#9394a1;--ck-img-outline:#ffffff1a;--ck-danger:#ffa2a2;--ck-success:#4cc38a;--ck-warning:#e3a33f;--ck-shadow-sm:0 0 0 1px var(--ck-hairline), 0 2px 2px -1px #0000004d, 0 4px 4px -2px #0003;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 8px 24px #0006, 0 24px 68px #0000004d}.ck-root{all:initial;font-family:var(--ck-font);font-size:var(--ck-fs);color:var(--ck-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.45;display:block}*,:before,:after{box-sizing:border-box}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button:-webkit-any(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}button:is(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}::placeholder{color:var(--ck-text-muted);opacity:1}.ck-root *{scrollbar-width:thin;scrollbar-color:var(--ck-border) transparent}@keyframes ck-pop{0%{opacity:0;transform:translateY(6px)scale(.98)}}@keyframes ck-fade{0%{opacity:0}}@keyframes ck-sheet{0%{translate:0 100%}}.ck-bar-btn,.ck-btn,.ck-chip,.ck-ghost,.ck-input,.ck-grip,.ck-menu button,.ck-toast button,.ck-shade{transition:background-color var(--ck-fast), color var(--ck-fast), border-color var(--ck-fast), box-shadow var(--ck-fast), filter var(--ck-fast), opacity var(--ck-fast), scale var(--ck-fast) ease-out}.ck-bar-btn:active,.ck-btn:active,.ck-chip:active,.ck-ghost:active{scale:.96}.ck-launcher{z-index:var(--ck-z);align-items:center;gap:8px;display:flex;position:fixed}.ck-launcher[data-pos$=right],.ck-welcome[data-pos$=right]{right:calc(20px + var(--ck-ix))}.ck-launcher[data-pos$=left],.ck-welcome[data-pos$=left]{left:calc(20px + var(--ck-ix))}.ck-launcher[data-pos^=top]{top:calc(20px + var(--ck-iy))}.ck-launcher[data-pos^=bottom]{bottom:calc(20px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-launcher[data-pos$=center],.ck-welcome[data-pos$=center]{left:50%;translate:-50%}.ck-bar{background:var(--ck-bg);background:color-mix(in srgb, var(--ck-bg) 86%, transparent);-webkit-backdrop-filter:blur(14px)saturate(1.4);backdrop-filter:blur(14px)saturate(1.4);border-radius:var(--ck-radius-pill);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:2px;padding:4px;display:flex}.ck-bar-btn{border-radius:var(--ck-radius-pill);height:36px;font-size:var(--ck-fs-md);white-space:nowrap;background:0 0;border:0;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-bar-btn svg,.ck-btn svg,.ck-ghost svg{flex:none}.ck-bar-btn[aria-pressed=true],.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 1px 2px color-mix(in srgb, var(--ck-accent) 40%, transparent)}.ck-bar-btn[aria-expanded=true]{background:var(--ck-bg-hover)}.ck-icon-btn{width:36px;color:var(--ck-text-muted);justify-content:center;padding:0;position:relative}.ck-badge{border-radius:var(--ck-radius-pill);background:var(--ck-danger);min-width:16px;height:16px;color:var(--ck-bg);font-size:var(--ck-fs-2xs);box-shadow:0 0 0 2px var(--ck-bg);font-variant-numeric:tabular-nums;place-items:center;padding:0 4px;font-weight:700;line-height:1;display:grid;position:absolute;top:2px;right:2px}.ck-grip{border-radius:var(--ck-radius-pill);width:24px;height:32px;color:var(--ck-text-muted);cursor:grab;touch-action:none;opacity:.75;background:0 0;border:0;place-items:center;margin-inline-start:-4px;margin-inline-end:0;padding:0;display:grid}.ck-grip svg{fill:currentColor}.ck-launcher[data-dragging]{opacity:.92}.ck-launcher[data-entering=\"\"]{opacity:0}.ck-launcher[data-entering] .ck-bar{animation:none}.ck-launcher[data-dragging] .ck-grip{cursor:grabbing}.ck-mode-hint{z-index:var(--ck-z);padding:8px;border-radius:var(--ck-radius);background:var(--ck-text);background:color-mix(in srgb, var(--ck-text) 90%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);width:max-content;max-width:calc(100% - 24px);color:var(--ck-bg);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;padding-inline-start:16px;font-weight:600;display:flex;position:fixed;top:16px;left:50%;translate:-50%}.ck-mode-hint .ck-chip{background:color-mix(in srgb, currentColor 8%, transparent);color:inherit;border-color:color-mix(in srgb, currentColor 60%, transparent)}.ck-mode-frame{z-index:calc(var(--ck-z) - 1);pointer-events:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--ck-accent) 75%, transparent), inset 0 0 14px 2px color-mix(in srgb, var(--ck-accent) 16%, transparent);position:fixed;top:0;bottom:0;left:0;right:0}.ck-catcher{z-index:calc(var(--ck-z) - 2);cursor:crosshair;touch-action:pan-x pan-y pinch-zoom;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:0 0;position:fixed;top:0;bottom:0;left:0;right:0}.ck-outline{z-index:calc(var(--ck-z) - 1);pointer-events:none;border:2px solid var(--ck-accent);border-radius:var(--ck-radius-sm);background:color-mix(in srgb, var(--ck-accent) 8%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--ck-accent) 14%, transparent);position:fixed}.ck-region{z-index:calc(var(--ck-z) - 1);pointer-events:none;border-radius:var(--ck-radius-sm);position:fixed}.ck-region,.ck-pending-region{--ck-dash:linear-gradient(90deg, var(--ck-accent) 50%, transparent 0);--ck-dash-v:linear-gradient(0deg, var(--ck-accent) 50%, transparent 0);background:var(--ck-dash) 0 0 / 12px 2px repeat-x, var(--ck-dash) 0 100% / 12px 2px repeat-x, var(--ck-dash-v) 0 0 / 2px 12px repeat-y, var(--ck-dash-v) 100% 0 / 2px 12px repeat-y, color-mix(in srgb, var(--ck-accent) 8%, transparent);animation:.6s linear infinite ck-ants}@keyframes ck-ants{to{background-position:12px 0,-12px 100%,0 -12px,100% 12px,0 0}}.ck-text-box{z-index:var(--ck-z);pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 30%, transparent);border-radius:2px;position:fixed}.ck-pins{width:100px;height:0;z-index:calc(var(--ck-z) - 3);position:absolute;top:0;left:0}.ck-pins[data-fixed]{position:fixed}.ck-pin{--ck-pin:var(--ck-mark);transform-origin:49% 97%;width:28px;height:32px;color:var(--ck-mark-ink);font-size:var(--ck-fs-xs);font-variant-numeric:tabular-nums;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 0 .6px #fff)drop-shadow(0 3px 6px #12131647);transition:scale var(--ck-fast) var(--ck-ease), filter var(--ck-fast);animation:ck-fade var(--ck-dur) ease-out;background:0 0;border:0;padding:0;font-weight:700;position:absolute;transform:translate(-49%,-97%)}.ck-pin svg{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}.ck-pin path{fill:var(--ck-pin);stroke:#121316;stroke-width:2px;stroke-linejoin:round}.ck-pin>span{text-align:center;line-height:1;position:absolute;top:41%;left:0;right:0;translate:0 -50%}.ck-pin[data-status=in_review]{--ck-pin:color-mix(in srgb, var(--ck-review) 90%, #000);color:#fff}.ck-pin[data-status=in_progress]{--ck-pin:var(--ck-progress);color:#fff}.ck-pin[data-status=resolved]{--ck-pin:var(--ck-success);color:var(--ck-bg)}.ck-pin>span[data-long]{letter-spacing:-.08em;font-size:9px}.ck-pin[data-state=moved]{opacity:.85}.ck-pin[data-covered]{opacity:0;pointer-events:none;transition:opacity var(--ck-fast) ease-out}.ck-pin[data-clipped]{display:none}.ck-pin[aria-expanded=true]{filter:drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 0 5px color-mix(in srgb, var(--ck-pin) 60%, transparent)) drop-shadow(0 4px 8px #1213164d);scale:1.14}.ck-pin:focus-visible{border-radius:50%}.ck-pin-region{pointer-events:none;border:2px dashed var(--ck-accent);border-radius:var(--ck-radius-sm);position:absolute}.ck-pin[data-movable]{touch-action:none}.ck-pin[data-dragging]{cursor:grabbing;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 8px 14px #12131659);z-index:2;transition:none;scale:1.18}.ck-pin[aria-expanded=true]:before{content:\"\";width:28px;height:28px;box-shadow:0 0 0 2px var(--ck-pin);pointer-events:none;opacity:0;border-radius:50%;margin:-14px 0 0 -14px;animation:.9s ease-out 2 ck-ping;position:absolute;top:40%;left:50%}@keyframes ck-ping{0%{opacity:.8;scale:.6}to{opacity:0;scale:2.2}}.ck-peek{z-index:3;background:var(--ck-bg);border-radius:var(--ck-radius-md);box-shadow:var(--ck-shadow);pointer-events:none;animation:ck-fade var(--ck-fast) ease-out;font-size:var(--ck-fs-md);padding:12px;position:absolute}.ck-peek-top{align-items:center;gap:8px;display:flex}.ck-peek-top .ck-avatar{--ck-av:20px}.ck-peek-top .ck-time{color:var(--ck-text-muted);font-size:var(--ck-fs-sm);margin-inline-start:auto}.ck-peek-quote{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:8px 0 0;display:-webkit-box;overflow:hidden}.ck-peek-text{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:4px;line-height:1.45;display:-webkit-box;overflow:hidden}.ck-peek-foot{font-size:var(--ck-fs-sm);align-items:center;gap:8px;margin-top:8px;display:flex}@keyframes ck-pin-drop{0%{opacity:0;translate:0 -8px;scale:.4}}.ck-shade{pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 16%, transparent);box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--ck-accent) 55%, transparent);border-radius:2px;position:absolute}.ck-shade[data-active]{background:color-mix(in srgb, var(--ck-accent) 28%, transparent)}.ck-card{z-index:calc(var(--ck-z) + 1);width:min(380px,100vw - 24px);max-height:min(560px,100vh - 24px);background:var(--ck-bg);border-radius:var(--ck-radius);max-height:min(560px,100dvh - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;overflow:hidden}.ck-card-head{border-bottom:1px solid var(--ck-hairline);align-items:center;gap:4px;min-height:48px;padding:8px;padding-inline-start:16px;display:flex}.ck-card-title,.ck-peek-top bdi{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.ck-card h2.ck-card-title{font-size:var(--ck-fs);margin:0}.ck-card-body{background:linear-gradient(var(--ck-bg) 40%, #0000) top/100% 24px no-repeat local, linear-gradient(#0000, var(--ck-bg) 60%) bottom/100% 24px no-repeat local, linear-gradient(var(--ck-border), #0000) top/100% 8px no-repeat, linear-gradient(#0000, var(--ck-border)) bottom/100% 8px no-repeat;flex:1;min-height:0;padding:12px 16px;overflow:auto}.ck-card>:not(.ck-card-body){flex-shrink:0}.ck-card-foot{border-top:1px solid var(--ck-hairline);align-items:center;gap:8px;padding:12px;display:flex}.ck-card-body>p.ck-muted{margin:0 0 8px;line-height:1.4}.ck-ghost{border-radius:var(--ck-radius-sm);color:var(--ck-text-muted);background:0 0;border:0;padding:6px 8px;font-weight:600}.ck-card-head .ck-ghost{flex:none;place-items:center;width:32px;height:32px;padding:0;display:inline-grid}.ck-ghost-sm{min-height:24px;font-size:var(--ck-fs-sm);padding:0 4px}.ck-ghost.ck-danger{color:var(--ck-danger)}.ck-btn{border-radius:var(--ck-radius-sm);background:var(--ck-bg);height:32px;box-shadow:var(--ck-shadow-sm);font-size:var(--ck-fs-md);white-space:nowrap;border:0;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-btn.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 0 0 1px color-mix(in srgb, var(--ck-accent) 80%, #000), 0 2px 2px -1px #00000029}.ck-spacer{flex:1}.ck-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.ck-chip{border-radius:var(--ck-radius-pill);border:1px solid var(--ck-control);background:var(--ck-bg);height:28px;color:var(--ck-text-muted);font-size:var(--ck-fs-sm);cursor:pointer;white-space:nowrap;align-items:center;gap:4px;max-width:100%;padding:0 12px;font-weight:600;display:inline-flex;overflow:hidden}.ck-chip[aria-pressed=true],.ck-chip[aria-expanded=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text);border-color:var(--ck-accent);border-color:color-mix(in srgb, var(--ck-accent) 45%, var(--ck-border))}.ck-chip .ck-count{margin-inline-start:2px}.ck-input{border-radius:var(--ck-radius-sm);border:1px solid var(--ck-control);background:var(--ck-bg);width:100%;height:32px;padding:0 11px}.ck-input[aria-invalid=true]{border-color:var(--ck-danger)}.ck-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.ck-field{font-size:var(--ck-fs-md);color:var(--ck-text-muted);gap:4px;font-weight:500;display:grid}.ck-field .ck-input{color:var(--ck-text);font-weight:400;font-size:var(--ck-fs)}.ck-muted{color:var(--ck-text-muted);font-size:var(--ck-fs-sm)}.ck-note{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);font-size:var(--ck-fs-md);overflow-wrap:anywhere;margin:8px 0 0;padding:8px 12px;line-height:1.45}.ck-note[data-tone=warning]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-warning) 12%, var(--ck-bg))}.ck-note[data-tone=error]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-danger) 10%, var(--ck-bg));color:var(--ck-danger)}.ck-avatar{--ck-av:24px;width:var(--ck-av);height:var(--ck-av);background:var(--ck-bg-hover);color:var(--ck-text);font-size:max(8px, calc(var(--ck-av) * .4));box-shadow:0 0 0 1px var(--ck-hairline);border-radius:50%;flex:none;place-items:center;font-weight:600;display:grid;overflow:hidden}.ck-avatar img{object-fit:cover;outline:1px solid var(--ck-img-outline);outline-offset:-1px;width:100%;height:100%}.ck-msg-name{color:var(--ck-text);font-weight:600;font-size:var(--ck-fs-md)}.ck-status{--ck-tone:var(--ck-open);font-size:var(--ck-fs-sm);border-radius:var(--ck-radius-pill);background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-tone) 12%, var(--ck-bg));color:color-mix(in srgb, var(--ck-tone) 45%, var(--ck-text));white-space:nowrap;align-items:center;gap:6px;padding:2px 8px;font-weight:600;display:inline-flex}.ck-status:before{content:\"\";background:var(--ck-tone);border-radius:50%;width:8px;height:8px}.ck-status[data-status=in_progress]{--ck-tone:var(--ck-progress)}.ck-status[data-status=in_review]{--ck-tone:var(--ck-review)}.ck-status[data-status=resolved]{--ck-tone:var(--ck-success)}.ck-status[data-status=closed]{--ck-tone:var(--ck-text-muted)}.ck-mention{color:var(--ck-accent-text);font-weight:600}.ck-pre{overscroll-behavior-x:contain;border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);box-shadow:0 0 0 1px var(--ck-hairline);white-space:pre;margin:6px 0;padding:8px 12px;overflow-x:auto}.ck-quote{border-radius:var(--ck-radius-sm);border-inline-start:3px solid color-mix(in srgb, var(--ck-accent) 70%, var(--ck-border));background:var(--ck-bg-muted);color:var(--ck-text-muted);font-size:var(--ck-fs-sm);overflow-wrap:anywhere;margin:0 0 8px;padding:4px 8px;line-height:1.45;display:block}.ck-emoji{vertical-align:-.2em;width:1.15em;height:1.15em;margin:0 .04em;display:inline-block}.ck-time{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;line-height:1.67}.ck-menu{z-index:2;background:var(--ck-bg);border-radius:var(--ck-radius-md);min-width:210px;max-width:min(320px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:4px;position:absolute;top:48px}.ck-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:8px}.ck-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:8px}.ck-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:8px}.ck-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:8px}.ck-menu button{text-align:start;border-radius:var(--ck-radius-sm);width:100%;font-size:var(--ck-fs-md);background:0 0;border:0;align-items:center;gap:8px;padding:8px 12px;display:flex}.ck-menu .ck-danger{color:var(--ck-danger)}.ck-menu-head{border-bottom:1px solid var(--ck-hairline);font-size:var(--ck-fs-sm);color:var(--ck-text-muted);text-overflow:ellipsis;white-space:nowrap;margin-bottom:4px;padding:4px 12px 8px;overflow:hidden}.ck-menu-two{flex-direction:column;align-items:flex-start!important;gap:0!important}.ck-menu-two .ck-muted{font-size:var(--ck-fs-xs)}[dir=rtl] .ck-search .ck-ghost,[dir=rtl] .ck-badge{left:8px;right:auto}[dir=rtl] .ck-search .ck-ghost{left:4px}[dir=rtl] .ck-badge{left:2px}.ck-launcher .ck-menu{top:auto;bottom:52px;left:auto;right:0}.ck-launcher[data-pos^=top] .ck-menu{top:52px;bottom:auto}.ck-launcher[data-pos$=left] .ck-menu{left:0;right:auto}.ck-launcher-note{background:var(--ck-bg);width:max-content;max-width:min(300px,100vw - 40px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);margin:0;position:absolute;bottom:calc(100% + 8px);right:0}.ck-launcher[data-pos$=left] .ck-launcher-note{left:0;right:auto}.ck-launcher[data-pos^=top] .ck-launcher-note{top:calc(100% + 8px);bottom:auto}.ck-launcher[data-pos$=center] .ck-launcher-note,.ck-launcher[data-pos$=center] .ck-menu{left:50%;right:auto;translate:-50%}.ck-panel{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(400px,100vw - 24px);box-shadow:var(--ck-shadow);transform-origin:100% 100%;animation:ck-grow var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;top:12px;bottom:12px;overflow:hidden}.ck-panel[data-side=right]{right:12px}.ck-panel[data-side=left]{transform-origin:0 100%;left:12px}@media (min-width:521px) and (min-height:481px){.ck-panel[data-dock=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-panel[data-dock=top]{top:calc(76px + var(--ck-iy))}}.ck-panel[data-dock=top][data-side=right]{transform-origin:100% 0}.ck-panel[data-dock=top][data-side=left]{transform-origin:0 0}.ck-toast{z-index:calc(var(--ck-z) + 1);border-radius:var(--ck-radius-md);background:var(--ck-bg);max-width:min(360px,100vw - 24px);color:var(--ck-text);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:8px;padding:8px;padding-inline-start:12px;font-weight:500;line-height:1.4;display:flex;position:fixed;bottom:84px;left:50%;translate:-50%}.ck-toast>span{overflow-wrap:anywhere;min-width:0}.ck-toast-region{z-index:calc(var(--ck-z) + 1);left:50%;bottom:calc(84px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px));pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 24px);display:flex;position:fixed;translate:-50%}.ck-layer[data-pos^=bottom]~.ck-toast-region{bottom:calc(84px + var(--ck-iy) + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))}.ck-toast-region .ck-toast{pointer-events:auto;position:relative;bottom:auto;left:auto;translate:none}.ck-layer:has(.ck-card,.ck-panel)~.ck-toast-region{flex-direction:column-reverse;top:12px;bottom:auto}.ck-toast-icon{width:20px;height:20px;color:var(--ck-text-muted);border-radius:50%;flex:none;place-items:center;display:grid}.ck-toast[data-tone=success] .ck-toast-icon{color:var(--ck-success)}.ck-toast[data-tone=error] .ck-toast-icon{color:var(--ck-danger)}.ck-toast button{border-radius:var(--ck-radius-sm);min-height:24px;color:var(--ck-accent-text);background:0 0;border:0;flex:none;padding:4px 8px;font-weight:600}.ck-toast .ck-toast-close{width:24px;color:var(--ck-text-muted);place-items:center;padding:0;display:grid}.ck-welcome{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(340px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:16px;position:fixed}.ck-welcome[data-pos^=top]{top:calc(76px + var(--ck-iy))}.ck-welcome[data-pos^=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-welcome h2{font-size:var(--ck-fs-lg);overflow-wrap:anywhere;margin:0 0 4px;font-weight:600}.ck-welcome p{color:var(--ck-text-muted);margin:0 0 16px;line-height:1.5}.ck-welcome .ck-actions{justify-content:flex-end;margin:0}.ck-card:has(.ck-markup,.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-panel:has(.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-root :focus{outline:none}.ck-root :focus-visible{outline:2px solid var(--ck-ring);outline-offset:2px}.ck-mode-hint :focus-visible{outline-color:currentColor}.ck-card-body,.ck-menu,.ck-markup{overscroll-behavior:contain}.ck-card,.ck-panel,.ck-menu,.ck-bar,.ck-toast,.ck-welcome,.ck-btn,.ck-launcher-note,.ck-peek,.ck-mode-hint{border:1px solid #0000}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.ck-note,.ck-empty,.ck-toast span,.ck-welcome p{text-wrap:pretty}.ck-empty strong,.ck-welcome h2{text-wrap:balance}@keyframes ck-grow{0%{opacity:0;scale:.94}}@keyframes ck-panel-out{to{opacity:0;scale:.94}}@keyframes ck-out{to{opacity:0;translate:0 6px;scale:.97}}@keyframes ck-sheet-out{to{translate:0 100%}}.ck-layer[data-closing] .ck-panel{animation:ck-panel-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}@media (max-width:520px){.ck-launcher[data-covered=true]{display:none}.ck-card{width:auto;max-height:70vh;max-height:min(70dvh, calc(100dvh - 24px - var(--ck-kb,0px)));animation-name:ck-sheet;left:12px!important;right:12px!important;bottom:calc(12px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))!important;top:auto!important}.ck-panel{bottom:var(--ck-kb,0px);height:80vh;height:min(80dvh, calc(100dvh - 12px - var(--ck-kb,0px)));border-radius:var(--ck-radius) var(--ck-radius) 0 0;width:100%;padding-bottom:env(safe-area-inset-bottom,0px);animation-name:ck-sheet;top:auto;left:0!important;right:0!important}.ck-mode-hint{top:auto;bottom:calc(84px + env(safe-area-inset-bottom,0px))}.ck-root:has(>.ck-launcher[data-pos^=bottom]) .ck-mode-hint{bottom:calc(84px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-mode-hint~.ck-toast-region{top:12px;bottom:auto}.ck-root:has(.ck-toast) .ck-launcher-note{display:none}.ck-layer[data-closing] .ck-panel,.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-sheet-out var(--ck-fast) var(--ck-ease) forwards}}@media (pointer:coarse){.ck-bar-btn,.ck-btn,.ck-ghost,.ck-chip,.ck-menu button,.ck-toast button{min-width:44px;min-height:44px}.ck-search .ck-ghost{min-width:36px;min-height:36px}.ck-root .ck-input{font-size:var(--ck-fs-lg);min-height:44px}.ck-pin:after{content:\"\";position:absolute;top:-10px;bottom:-10px;left:-10px;right:-10px}.ck-grip{display:none}}@media (hover:hover){.ck-bar-btn:hover,.ck-ghost:hover,.ck-menu button:hover,.ck-toast button:hover{background:var(--ck-bg-hover)}.ck-bar-btn[aria-pressed=true]:hover,.ck-primary:hover,.ck-btn.ck-primary:hover{background:var(--ck-accent);filter:brightness(.96)}.ck-icon-btn:hover,.ck-ghost:hover,.ck-format .ck-ghost:hover,.ck-msg-actions .ck-ghost:hover,.ck-chip:hover{color:var(--ck-text)}.ck-mode-hint .ck-chip:hover{color:inherit;background:color-mix(in srgb, currentColor 16%, transparent)}.ck-pin:hover{scale:1.08}.ck-pin[data-movable]:hover{cursor:grab}.ck-btn:hover,.ck-chip:hover{background:var(--ck-bg-muted)}.ck-input:hover{border-color:var(--ck-text-muted)}.ck-grip:hover{opacity:1}}";
|
|
1830
|
+
var Ht = ":host{all:initial;--ck-accent:#c2341b;--ck-ix:var(--commentkit-inset-x,var(--ck-opt-ix,0px));--ck-iy:var(--commentkit-inset-y,var(--ck-opt-iy,0px));--ck-accent-ink:#fff;--ck-mark:#ff5733;--ck-mark-ink:#121316;--ck-accent-soft:color-mix(in srgb, var(--ck-accent) 12%, var(--ck-bg));--ck-bg:#fff;--ck-bg-muted:#f7f7f8;--ck-bg-hover:#eeeef0;--ck-border:#e3e3e7;--ck-control:#84858f;--ck-ring:#65677a;--ck-hairline:#12131614;--ck-text:#121316;--ck-text-muted:#5e5f6e;--ck-danger:#c10007;--ck-success:#16794c;--ck-warning:#a15c00;--ck-open:#a6a09b;--ck-review:#8e51ff;--ck-progress:#2563eb;--ck-shadow-sm:0 0 0 1px #1313161a, 0 2px 2px -1px #0000000f, 0 4px 4px -2px #0000000a;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 10px 32px #222a3526, 0 1px 1px #0000000d, 0 4px 6px #222a3514, 0 24px 68px #2f30371a;--ck-radius:12px;--ck-radius-sm:6px;--ck-radius-md:8px;--ck-ease:cubic-bezier(.2, .8, .2, 1);--ck-font:ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--ck-mono:ui-monospace, SFMono-Regular, Menlo, monospace;--ck-z:1000;--ck-fs-2xs:10px;--ck-fs-xs:11px;--ck-fs-sm:12px;--ck-fs-md:13px;--ck-fs:14px;--ck-fs-lg:16px;--ck-fs-xl:20px;--ck-radius-pill:999px;--ck-fast:.12s;--ck-dur:.2s;--ck-img-outline:#0000001a}@supports not (color:color-mix(in srgb, red, red)){:host{--ck-accent-soft:var(--ck-bg-muted)}}@media print{:host,.ck-root{display:none!important}}:host([data-theme=dark]){--ck-bg:#212126;--ck-bg-muted:#1a1a1e;--ck-bg-hover:#2a2a30;--ck-border:#36363c;--ck-control:#7c7d87;--ck-ring:#a1a2ae;--ck-hairline:#ffffff1a;--ck-text:#fff;--ck-text-muted:#9394a1;--ck-img-outline:#ffffff1a;--ck-danger:#ffa2a2;--ck-success:#4cc38a;--ck-warning:#e3a33f;--ck-shadow-sm:0 0 0 1px var(--ck-hairline), 0 2px 2px -1px #0000004d, 0 4px 4px -2px #0003;--ck-shadow:0 0 0 1px var(--ck-hairline), 0 8px 24px #0006, 0 24px 68px #0000004d}.ck-root{all:initial;font-family:var(--ck-font);font-size:var(--ck-fs);color:var(--ck-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.45;display:block}*,:before,:after{box-sizing:border-box}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button:-webkit-any(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}button:is(:disabled,[aria-disabled=true]){opacity:.5;cursor:default}::placeholder{color:var(--ck-text-muted);opacity:1}.ck-root *{scrollbar-width:thin;scrollbar-color:var(--ck-border) transparent}@keyframes ck-pop{0%{opacity:0;transform:translateY(6px)scale(.98)}}@keyframes ck-fade{0%{opacity:0}}@keyframes ck-sheet{0%{translate:0 100%}}.ck-bar-btn,.ck-btn,.ck-chip,.ck-ghost,.ck-input,.ck-grip,.ck-menu button,.ck-toast button,.ck-shade{transition:background-color var(--ck-fast), color var(--ck-fast), border-color var(--ck-fast), box-shadow var(--ck-fast), filter var(--ck-fast), opacity var(--ck-fast), scale var(--ck-fast) ease-out}.ck-bar-btn:active,.ck-btn:active,.ck-chip:active,.ck-ghost:active{scale:.96}.ck-launcher{z-index:var(--ck-z);align-items:center;gap:8px;display:flex;position:fixed}.ck-launcher[data-pos$=right],.ck-welcome[data-pos$=right]{right:calc(20px + var(--ck-ix))}.ck-launcher[data-pos$=left],.ck-welcome[data-pos$=left]{left:calc(20px + var(--ck-ix))}.ck-launcher[data-pos^=top]{top:calc(20px + var(--ck-iy))}.ck-launcher[data-pos^=bottom]{bottom:calc(20px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-launcher[data-pos$=center],.ck-welcome[data-pos$=center]{left:50%;translate:-50%}.ck-bar{background:var(--ck-bg);background:color-mix(in srgb, var(--ck-bg) 86%, transparent);-webkit-backdrop-filter:blur(14px)saturate(1.4);backdrop-filter:blur(14px)saturate(1.4);border-radius:var(--ck-radius-pill);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:2px;padding:4px;display:flex}.ck-bar-btn{border-radius:var(--ck-radius-pill);height:36px;font-size:var(--ck-fs-md);white-space:nowrap;background:0 0;border:0;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-bar-btn svg,.ck-btn svg,.ck-ghost svg{flex:none}.ck-bar-btn[aria-pressed=true],.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 1px 2px color-mix(in srgb, var(--ck-accent) 40%, transparent)}.ck-bar-btn[aria-expanded=true]{background:var(--ck-bg-hover)}.ck-icon-btn{width:36px;color:var(--ck-text-muted);justify-content:center;padding:0;position:relative}.ck-badge{border-radius:var(--ck-radius-pill);background:var(--ck-danger);min-width:16px;height:16px;color:var(--ck-bg);font-size:var(--ck-fs-2xs);box-shadow:0 0 0 2px var(--ck-bg);font-variant-numeric:tabular-nums;place-items:center;padding:0 4px;font-weight:700;line-height:1;display:grid;position:absolute;top:2px;right:2px}.ck-grip{border-radius:var(--ck-radius-pill);width:24px;height:32px;color:var(--ck-text-muted);cursor:grab;touch-action:none;opacity:.75;background:0 0;border:0;place-items:center;margin-inline-start:-4px;margin-inline-end:0;padding:0;display:grid}.ck-grip svg{fill:currentColor}.ck-launcher[data-dragging]{opacity:.92}.ck-launcher[data-entering=\"\"]{opacity:0}.ck-launcher[data-entering] .ck-bar{animation:none}.ck-launcher[data-dragging] .ck-grip{cursor:grabbing}.ck-mode-hint{z-index:var(--ck-z);padding:8px;border-radius:var(--ck-radius);background:var(--ck-text);background:color-mix(in srgb, var(--ck-text) 90%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);width:max-content;max-width:calc(100% - 24px);color:var(--ck-bg);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;padding-inline-start:16px;font-weight:600;display:flex;position:fixed;top:16px;left:50%;translate:-50%}.ck-mode-hint .ck-chip{background:color-mix(in srgb, currentColor 8%, transparent);color:inherit;border-color:color-mix(in srgb, currentColor 60%, transparent)}.ck-mode-frame{z-index:calc(var(--ck-z) - 1);pointer-events:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--ck-accent) 75%, transparent), inset 0 0 14px 2px color-mix(in srgb, var(--ck-accent) 16%, transparent);position:fixed;top:0;bottom:0;left:0;right:0}.ck-catcher{z-index:calc(var(--ck-z) - 2);cursor:crosshair;touch-action:pan-x pan-y pinch-zoom;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:0 0;position:fixed;top:0;bottom:0;left:0;right:0}.ck-outline{z-index:calc(var(--ck-z) - 1);pointer-events:none;border:2px solid var(--ck-accent);border-radius:var(--ck-radius-sm);background:color-mix(in srgb, var(--ck-accent) 8%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--ck-accent) 14%, transparent);position:fixed}.ck-region{z-index:calc(var(--ck-z) - 1);pointer-events:none;border-radius:var(--ck-radius-sm);position:fixed}.ck-region,.ck-pending-region{--ck-dash:linear-gradient(90deg, var(--ck-accent) 50%, transparent 0);--ck-dash-v:linear-gradient(0deg, var(--ck-accent) 50%, transparent 0);background:var(--ck-dash) 0 0 / 12px 2px repeat-x, var(--ck-dash) 0 100% / 12px 2px repeat-x, var(--ck-dash-v) 0 0 / 2px 12px repeat-y, var(--ck-dash-v) 100% 0 / 2px 12px repeat-y, color-mix(in srgb, var(--ck-accent) 8%, transparent);animation:.6s linear infinite ck-ants}@keyframes ck-ants{to{background-position:12px 0,-12px 100%,0 -12px,100% 12px,0 0}}.ck-text-box{z-index:var(--ck-z);pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 30%, transparent);border-radius:2px;position:fixed}.ck-pins{width:100px;height:0;z-index:calc(var(--ck-z) - 3);position:absolute;top:0;left:0}.ck-pins[data-fixed]{position:fixed}.ck-pin{--ck-pin:var(--ck-mark);transform-origin:49% 97%;width:28px;height:32px;color:var(--ck-mark-ink);font-size:var(--ck-fs-xs);font-variant-numeric:tabular-nums;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 0 .6px #fff)drop-shadow(0 3px 6px #12131647);transition:scale var(--ck-fast) var(--ck-ease), filter var(--ck-fast);animation:ck-fade var(--ck-dur) ease-out;background:0 0;border:0;padding:0;font-weight:700;position:absolute;transform:translate(-49%,-97%)}.ck-pin svg{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}.ck-pin path{fill:var(--ck-pin);stroke:#121316;stroke-width:2px;stroke-linejoin:round}.ck-pin>span{text-align:center;line-height:1;position:absolute;top:41%;left:0;right:0;translate:0 -50%}.ck-pin[data-status=in_review]{--ck-pin:color-mix(in srgb, var(--ck-review) 90%, #000);color:#fff}.ck-pin[data-status=in_progress]{--ck-pin:var(--ck-progress);color:#fff}.ck-pin[data-status=resolved]{--ck-pin:var(--ck-success);color:var(--ck-bg)}.ck-pin>span[data-long]{letter-spacing:-.08em;font-size:9px}.ck-pin[data-state=moved]{opacity:.85}.ck-pin[data-covered]{opacity:0;pointer-events:none;transition:opacity var(--ck-fast) ease-out}.ck-pin[data-clipped]{display:none}.ck-pin[aria-expanded=true]{filter:drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 0 5px color-mix(in srgb, var(--ck-pin) 60%, transparent)) drop-shadow(0 4px 8px #1213164d);scale:1.14}.ck-pin:focus-visible{border-radius:50%}.ck-pin-region{pointer-events:none;border:2px dashed var(--ck-accent);border-radius:var(--ck-radius-sm);position:absolute}.ck-pin[data-movable]{touch-action:none}.ck-pin[data-dragging]{cursor:grabbing;filter:drop-shadow(0 0 .6px #fff)drop-shadow(0 8px 14px #12131659);z-index:2;transition:none;scale:1.18}.ck-pin[aria-expanded=true]:before{content:\"\";width:28px;height:28px;box-shadow:0 0 0 2px var(--ck-pin);pointer-events:none;opacity:0;border-radius:50%;margin:-14px 0 0 -14px;animation:.9s ease-out 2 ck-ping;position:absolute;top:40%;left:50%}@keyframes ck-ping{0%{opacity:.8;scale:.6}to{opacity:0;scale:2.2}}.ck-peek{z-index:3;background:var(--ck-bg);border-radius:var(--ck-radius-md);box-shadow:var(--ck-shadow);pointer-events:none;animation:ck-fade var(--ck-fast) ease-out;font-size:var(--ck-fs-md);padding:12px;position:absolute}.ck-peek-top{align-items:center;gap:8px;display:flex}.ck-peek-top .ck-avatar{--ck-av:20px}.ck-peek-top .ck-time{color:var(--ck-text-muted);font-size:var(--ck-fs-sm);margin-inline-start:auto}.ck-peek-quote{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:8px 0 0;display:-webkit-box;overflow:hidden}.ck-peek-text{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:4px;line-height:1.45;display:-webkit-box;overflow:hidden}.ck-peek-foot{font-size:var(--ck-fs-sm);align-items:center;gap:8px;margin-top:8px;display:flex}@keyframes ck-pin-drop{0%{opacity:0;translate:0 -8px;scale:.4}}.ck-shade{pointer-events:none;background:color-mix(in srgb, var(--ck-accent) 16%, transparent);box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--ck-accent) 55%, transparent);border-radius:2px;position:absolute}.ck-shade[data-active]{background:color-mix(in srgb, var(--ck-accent) 28%, transparent)}.ck-card{z-index:calc(var(--ck-z) + 1);width:min(380px,100vw - 24px);max-height:min(560px,100vh - 24px);background:var(--ck-bg);border-radius:var(--ck-radius);max-height:min(560px,100dvh - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;overflow:hidden}.ck-card-head{border-bottom:1px solid var(--ck-hairline);align-items:center;gap:4px;min-height:48px;padding:8px;padding-inline-start:16px;display:flex}.ck-card-title,.ck-peek-top bdi{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.ck-card h2.ck-card-title{font-size:var(--ck-fs);margin:0}.ck-card-body{background:linear-gradient(var(--ck-bg) 40%, #0000) top/100% 24px no-repeat local, linear-gradient(#0000, var(--ck-bg) 60%) bottom/100% 24px no-repeat local, linear-gradient(var(--ck-border), #0000) top/100% 8px no-repeat, linear-gradient(#0000, var(--ck-border)) bottom/100% 8px no-repeat;flex:1;min-height:0;padding:12px 16px;overflow:auto}.ck-card>:not(.ck-card-body){flex-shrink:0}.ck-card-foot{border-top:1px solid var(--ck-hairline);align-items:center;gap:8px;padding:12px;display:flex}.ck-card-body>p.ck-muted{margin:0 0 8px;line-height:1.4}.ck-ghost{border-radius:var(--ck-radius-sm);color:var(--ck-text-muted);background:0 0;border:0;padding:6px 8px;font-weight:600}.ck-card-head .ck-ghost{flex:none;place-items:center;width:32px;height:32px;padding:0;display:inline-grid}.ck-ghost-sm{min-height:24px;font-size:var(--ck-fs-sm);padding:0 4px}.ck-ghost.ck-danger{color:var(--ck-danger)}.ck-btn{border-radius:var(--ck-radius-sm);background:var(--ck-bg);height:32px;box-shadow:var(--ck-shadow-sm);font-size:var(--ck-fs-md);white-space:nowrap;border:0;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:600;display:inline-flex}.ck-btn.ck-primary{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:inset 0 1px 0 #ffffff38, 0 0 0 1px color-mix(in srgb, var(--ck-accent) 80%, #000), 0 2px 2px -1px #00000029}.ck-spacer{flex:1}.ck-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.ck-chip{border-radius:var(--ck-radius-pill);border:1px solid var(--ck-control);background:var(--ck-bg);height:28px;color:var(--ck-text-muted);font-size:var(--ck-fs-sm);cursor:pointer;white-space:nowrap;align-items:center;gap:4px;max-width:100%;padding:0 12px;font-weight:600;display:inline-flex;overflow:hidden}.ck-chip[aria-pressed=true],.ck-chip[aria-expanded=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text);border-color:var(--ck-accent);border-color:color-mix(in srgb, var(--ck-accent) 45%, var(--ck-border))}.ck-chip .ck-count{margin-inline-start:2px}.ck-input{border-radius:var(--ck-radius-sm);border:1px solid var(--ck-control);background:var(--ck-bg);width:100%;height:32px;padding:0 11px}.ck-input[aria-invalid=true]{border-color:var(--ck-danger)}.ck-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.ck-field{font-size:var(--ck-fs-md);color:var(--ck-text-muted);gap:4px;font-weight:500;display:grid}.ck-field .ck-input{color:var(--ck-text);font-weight:400;font-size:var(--ck-fs)}.ck-muted{color:var(--ck-text-muted);font-size:var(--ck-fs-sm)}.ck-note{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);font-size:var(--ck-fs-md);overflow-wrap:anywhere;margin:8px 0 0;padding:8px 12px;line-height:1.45}.ck-note[data-tone=warning]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-warning) 12%, var(--ck-bg))}.ck-note[data-tone=error]{background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-danger) 10%, var(--ck-bg));color:var(--ck-danger)}.ck-avatar{--ck-av:24px;width:var(--ck-av);height:var(--ck-av);background:var(--ck-bg-hover);color:var(--ck-text);font-size:max(8px, calc(var(--ck-av) * .4));box-shadow:0 0 0 1px var(--ck-hairline);border-radius:50%;flex:none;place-items:center;font-weight:600;display:grid;overflow:hidden}.ck-avatar img{object-fit:cover;outline:1px solid var(--ck-img-outline);outline-offset:-1px;width:100%;height:100%}.ck-msg-name{color:var(--ck-text);font-weight:600;font-size:var(--ck-fs-md)}.ck-status{--ck-tone:var(--ck-open);font-size:var(--ck-fs-sm);border-radius:var(--ck-radius-pill);background:var(--ck-bg-muted);background:color-mix(in srgb, var(--ck-tone) 12%, var(--ck-bg));color:color-mix(in srgb, var(--ck-tone) 45%, var(--ck-text));white-space:nowrap;align-items:center;gap:6px;padding:2px 8px;font-weight:600;display:inline-flex}.ck-status:before{content:\"\";background:var(--ck-tone);border-radius:50%;width:8px;height:8px}.ck-status[data-status=in_progress]{--ck-tone:var(--ck-progress)}.ck-status[data-status=in_review]{--ck-tone:var(--ck-review)}.ck-status[data-status=resolved]{--ck-tone:var(--ck-success)}.ck-status[data-status=closed]{--ck-tone:var(--ck-text-muted)}.ck-mention{color:var(--ck-accent-text);font-weight:600}.ck-pre{overscroll-behavior-x:contain;border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);box-shadow:0 0 0 1px var(--ck-hairline);white-space:pre;margin:6px 0;padding:8px 12px;overflow-x:auto}.ck-quote{border-radius:var(--ck-radius-sm);border-inline-start:3px solid color-mix(in srgb, var(--ck-accent) 70%, var(--ck-border));background:var(--ck-bg-muted);color:var(--ck-text-muted);font-size:var(--ck-fs-sm);overflow-wrap:anywhere;margin:0 0 8px;padding:4px 8px;line-height:1.45;display:block}.ck-emoji{vertical-align:-.2em;width:1.15em;height:1.15em;margin:0 .04em;display:inline-block}.ck-time{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;line-height:1.67}.ck-menu{z-index:2;background:var(--ck-bg);border-radius:var(--ck-radius-md);min-width:210px;max-width:min(320px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:4px;position:absolute;top:48px}.ck-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:8px}.ck-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:8px}.ck-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:8px}.ck-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:8px}.ck-menu button{text-align:start;border-radius:var(--ck-radius-sm);width:100%;font-size:var(--ck-fs-md);background:0 0;border:0;align-items:center;gap:8px;padding:8px 12px;display:flex}.ck-menu .ck-danger{color:var(--ck-danger)}.ck-menu-head{border-bottom:1px solid var(--ck-hairline);font-size:var(--ck-fs-sm);color:var(--ck-text-muted);text-overflow:ellipsis;white-space:nowrap;margin-bottom:4px;padding:4px 12px 8px;overflow:hidden}.ck-menu-two{flex-direction:column;align-items:flex-start!important;gap:0!important}.ck-menu-two .ck-muted{font-size:var(--ck-fs-xs)}[dir=rtl] .ck-search .ck-ghost,[dir=rtl] .ck-badge{left:8px;right:auto}[dir=rtl] .ck-search .ck-ghost{left:4px}[dir=rtl] .ck-badge{left:2px}.ck-launcher .ck-menu{top:auto;bottom:52px;left:auto;right:0}.ck-launcher[data-pos^=top] .ck-menu{top:52px;bottom:auto}.ck-launcher[data-pos$=left] .ck-menu{left:0;right:auto}.ck-launcher-note{background:var(--ck-bg);width:max-content;max-width:min(300px,100vw - 40px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);margin:0;position:absolute;bottom:calc(100% + 8px);right:0}.ck-launcher[data-pos$=left] .ck-launcher-note{left:0;right:auto}.ck-launcher[data-pos^=top] .ck-launcher-note{top:calc(100% + 8px);bottom:auto}.ck-launcher[data-pos$=center] .ck-launcher-note,.ck-launcher[data-pos$=center] .ck-menu{left:50%;right:auto;translate:-50%}.ck-panel{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(400px,100vw - 24px);box-shadow:var(--ck-shadow);transform-origin:100% 100%;animation:ck-grow var(--ck-dur) var(--ck-ease);flex-direction:column;display:flex;position:fixed;top:12px;bottom:12px;overflow:hidden}.ck-panel[data-side=right]{right:12px}.ck-panel[data-side=left]{transform-origin:0 100%;left:12px}@media (min-width:521px) and (min-height:481px){.ck-panel[data-dock=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-panel[data-dock=top]{top:calc(76px + var(--ck-iy))}}.ck-panel[data-dock=top][data-side=right]{transform-origin:100% 0}.ck-panel[data-dock=top][data-side=left]{transform-origin:0 0}.ck-toast{z-index:calc(var(--ck-z) + 1);border-radius:var(--ck-radius-md);background:var(--ck-bg);max-width:min(360px,100vw - 24px);color:var(--ck-text);font-size:var(--ck-fs-md);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);align-items:center;gap:8px;padding:8px;padding-inline-start:12px;font-weight:500;line-height:1.4;display:flex;position:fixed;bottom:84px;left:50%;translate:-50%}.ck-toast>span{overflow-wrap:anywhere;min-width:0}.ck-toast-region{z-index:calc(var(--ck-z) + 1);left:50%;bottom:calc(84px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px));pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 24px);display:flex;position:fixed;translate:-50%}.ck-layer[data-pos^=bottom]~.ck-toast-region{bottom:calc(84px + var(--ck-iy) + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))}.ck-toast-region .ck-toast{pointer-events:auto;position:relative;bottom:auto;left:auto;translate:none}.ck-layer:has(.ck-card,.ck-panel)~.ck-toast-region{flex-direction:column-reverse;top:12px;bottom:auto}.ck-toast-icon{width:20px;height:20px;color:var(--ck-text-muted);border-radius:50%;flex:none;place-items:center;display:grid}.ck-toast[data-tone=success] .ck-toast-icon{color:var(--ck-success)}.ck-toast[data-tone=error] .ck-toast-icon{color:var(--ck-danger)}.ck-toast button{border-radius:var(--ck-radius-sm);min-height:24px;color:var(--ck-accent-text);background:0 0;border:0;flex:none;padding:4px 8px;font-weight:600}.ck-toast .ck-toast-close{width:24px;color:var(--ck-text-muted);place-items:center;padding:0;display:grid}.ck-welcome{z-index:var(--ck-z);background:var(--ck-bg);border-radius:var(--ck-radius);width:min(340px,100vw - 24px);box-shadow:var(--ck-shadow);animation:ck-pop var(--ck-dur) var(--ck-ease);padding:16px;position:fixed}.ck-welcome[data-pos^=top]{top:calc(76px + var(--ck-iy))}.ck-welcome[data-pos^=bottom]{bottom:calc(76px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-welcome h2{font-size:var(--ck-fs-lg);overflow-wrap:anywhere;margin:0 0 4px;font-weight:600}.ck-welcome p{color:var(--ck-text-muted);margin:0 0 16px;line-height:1.5}.ck-welcome .ck-actions{justify-content:flex-end;margin:0}.ck-card:has(.ck-markup,.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-panel:has(.ck-viewer){z-index:calc(var(--ck-z) + 3)}.ck-root :focus{outline:none}.ck-root :focus-visible{outline:2px solid var(--ck-ring);outline-offset:2px}.ck-mode-hint :focus-visible{outline-color:currentColor}.ck-card-body,.ck-menu,.ck-markup{overscroll-behavior:contain}.ck-card,.ck-panel,.ck-menu,.ck-bar,.ck-toast,.ck-welcome,.ck-btn,.ck-launcher-note,.ck-peek,.ck-mode-hint{border:1px solid #0000}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.ck-note,.ck-empty,.ck-toast span,.ck-welcome p{text-wrap:pretty}.ck-empty strong,.ck-welcome h2{text-wrap:balance}@keyframes ck-grow{0%{opacity:0;scale:.94}}@keyframes ck-panel-out{to{opacity:0;scale:.94}}@keyframes ck-out{to{opacity:0;translate:0 6px;scale:.97}}@keyframes ck-sheet-out{to{translate:0 100%}}.ck-layer[data-closing] .ck-panel{animation:ck-panel-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-out var(--ck-fast) var(--ck-ease) forwards;pointer-events:none}@media (max-width:520px){.ck-launcher[data-covered=true]{display:none}.ck-card{width:auto;max-height:70vh;max-height:min(70dvh, calc(100dvh - 24px - var(--ck-kb,0px)));animation-name:ck-sheet;left:12px!important;right:12px!important;bottom:calc(12px + var(--ck-kb,0px) + env(safe-area-inset-bottom,0px))!important;top:auto!important}.ck-panel{bottom:var(--ck-kb,0px);height:80vh;height:min(80dvh, calc(100dvh - 12px - var(--ck-kb,0px)));border-radius:var(--ck-radius) var(--ck-radius) 0 0;width:100%;padding-bottom:env(safe-area-inset-bottom,0px);animation-name:ck-sheet;top:auto;left:0!important;right:0!important}.ck-mode-hint{top:auto;bottom:calc(84px + env(safe-area-inset-bottom,0px))}.ck-root:has(>.ck-launcher[data-pos^=bottom]) .ck-mode-hint{bottom:calc(84px + var(--ck-iy) + env(safe-area-inset-bottom,0px))}.ck-mode-hint~.ck-toast-region{top:12px;bottom:auto}.ck-root:has(.ck-toast) .ck-launcher-note{display:none}.ck-layer[data-closing] .ck-panel,.ck-layer[data-closing] .ck-card:not(.ck-card-embedded){animation:ck-sheet-out var(--ck-fast) var(--ck-ease) forwards}}@media (pointer:coarse){.ck-bar-btn,.ck-btn,.ck-ghost,.ck-chip,.ck-menu button,.ck-toast button{min-width:44px;min-height:44px}.ck-search .ck-ghost{min-width:36px;min-height:36px}.ck-root .ck-input{font-size:var(--ck-fs-lg);min-height:44px}.ck-pin:after{content:\"\";position:absolute;top:-10px;bottom:-10px;left:-10px;right:-10px}.ck-grip{display:none}}@media (hover:hover){.ck-bar-btn:hover,.ck-ghost:hover,.ck-menu button:hover,.ck-toast button:hover{background:var(--ck-bg-hover)}.ck-bar-btn[aria-pressed=true]:hover,.ck-primary:hover,.ck-btn.ck-primary:hover{background:var(--ck-accent);filter:brightness(.96)}.ck-icon-btn:hover,.ck-ghost:hover,.ck-format .ck-ghost:hover,.ck-msg-actions .ck-ghost:hover,.ck-chip:hover{color:var(--ck-text)}.ck-mode-hint .ck-chip:hover{color:inherit;background:color-mix(in srgb, currentColor 16%, transparent)}.ck-pin:hover{scale:1.08}.ck-pin[data-movable]:hover{cursor:grab}.ck-btn:hover,.ck-chip:hover{background:var(--ck-bg-muted)}.ck-input:hover{border-color:var(--ck-text-muted)}.ck-grip:hover{opacity:1}}";
|
|
1820
1831
|
// src/ui/mount.tsx
|
|
1821
|
-
function
|
|
1832
|
+
function Ut(e, t = () => void 0, n = t) {
|
|
1822
1833
|
let r = document.createElement("div");
|
|
1823
1834
|
r.setAttribute("data-commentkit-host", ""), r.style.cssText = "display:block;position:absolute;top:0;left:0;width:0;height:0;z-index:2147483000;visibility:visible;".replace(/;/g, "!important;");
|
|
1824
1835
|
let i = r.attachShadow({ mode: "open" });
|
|
@@ -1828,13 +1839,13 @@ function Kt(e, t = () => void 0, n = t) {
|
|
|
1828
1839
|
}
|
|
1829
1840
|
if ("adoptedStyleSheets" in Document.prototype && "replaceSync" in CSSStyleSheet.prototype) {
|
|
1830
1841
|
let e = new CSSStyleSheet();
|
|
1831
|
-
e.replaceSync(
|
|
1842
|
+
e.replaceSync(Ht), i.adoptedStyleSheets = [e];
|
|
1832
1843
|
} else {
|
|
1833
1844
|
let e = document.createElement("style");
|
|
1834
|
-
e.textContent =
|
|
1845
|
+
e.textContent = Ht, i.appendChild(e);
|
|
1835
1846
|
}
|
|
1836
1847
|
let a = document.createElement("div");
|
|
1837
|
-
a.className = "ck-root", a.dir = h(), a.lang = _(), i.appendChild(a),
|
|
1848
|
+
a.className = "ck-root", a.dir = h(), a.lang = _(), i.appendChild(a), k(i), ue(e.assets);
|
|
1838
1849
|
let o = !1, s = () => o || r.isConnected || document.documentElement.appendChild(r), c = () => typeof requestIdleCallback == "function" ? requestIdleCallback(s, { timeout: 2e3 }) : setTimeout(s, 50);
|
|
1839
1850
|
"commentkitLoader" in document.documentElement.dataset && document.readyState !== "complete" ? addEventListener("load", c) : s();
|
|
1840
1851
|
let l = () => {
|
|
@@ -1842,40 +1853,40 @@ function Kt(e, t = () => void 0, n = t) {
|
|
|
1842
1853
|
(t.request || t.opening) && s();
|
|
1843
1854
|
let n = e.state.get().theme ?? e.options.theme ?? e.state.get().config?.appearance.theme ?? "auto", i = n === "dark" || n === "auto" && matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1844
1855
|
r.setAttribute("data-theme", i ? "dark" : "light");
|
|
1845
|
-
let a = e.state.get().config?.appearance.accent, o = !!a && /^#[0-9a-f]{6}$/i.test(a), c =
|
|
1856
|
+
let a = e.state.get().config?.appearance.accent, o = !!a && /^#[0-9a-f]{6}$/i.test(a), c = Wt(o ? a : "#c2341b");
|
|
1846
1857
|
if (o) {
|
|
1847
1858
|
let e = c;
|
|
1848
|
-
for (;
|
|
1859
|
+
for (; Kt(e) > .1833 && Kt(e) < .2047;) e = Gt(e, [
|
|
1849
1860
|
0,
|
|
1850
1861
|
0,
|
|
1851
1862
|
0
|
|
1852
1863
|
], .98).map(Math.round);
|
|
1853
|
-
let t = e === c ? a : `rgb(${e})`, n =
|
|
1864
|
+
let t = e === c ? a : `rgb(${e})`, n = Kt(e) > .194 ? "#121316" : "#ffffff";
|
|
1854
1865
|
r.style.setProperty("--ck-accent", t), r.style.setProperty("--ck-mark", t), r.style.setProperty("--ck-accent-ink", n), r.style.setProperty("--ck-mark-ink", n);
|
|
1855
1866
|
}
|
|
1856
|
-
let l =
|
|
1857
|
-
for (let e = 1, t; e > 0 && (t =
|
|
1867
|
+
let l = Kt(Gt(c, Wt(i ? "#212126" : "#ffffff"), .12)) + .05, u = Wt(i ? "#ffffff" : "#121316"), d = c;
|
|
1868
|
+
for (let e = 1, t; e > 0 && (t = Kt(d = Gt(c, u, e)) + .05) / l < 4.5 && l / t < 4.5; e -= .05);
|
|
1858
1869
|
r.style.setProperty("--ck-accent-text", `rgb(${d.map(Math.round)})`);
|
|
1859
1870
|
};
|
|
1860
1871
|
l();
|
|
1861
1872
|
let u = matchMedia("(prefers-color-scheme: dark)");
|
|
1862
1873
|
u.addEventListener?.("change", l);
|
|
1863
1874
|
let d = e.state.subscribe(l), f = window.visualViewport, p = () => f && r.style.setProperty("--ck-kb", G(f.scale > 1.01 ? 0 : Math.max(0, Math.round(innerHeight - f.height - f.offsetTop))));
|
|
1864
|
-
return f?.addEventListener("resize", p), f?.addEventListener("scroll", p),
|
|
1875
|
+
return f?.addEventListener("resize", p), f?.addEventListener("scroll", p), w(/* @__PURE__ */ x(Jt, {
|
|
1865
1876
|
onCrash: t,
|
|
1866
1877
|
onError: (t) => e.reportCrash(t),
|
|
1867
|
-
children: /* @__PURE__ */ x(
|
|
1878
|
+
children: /* @__PURE__ */ x(Bt, {
|
|
1868
1879
|
client: e,
|
|
1869
1880
|
onHide: n
|
|
1870
1881
|
})
|
|
1871
1882
|
}), a), Object.assign(() => {
|
|
1872
|
-
o = !0, removeEventListener("load", c),
|
|
1883
|
+
o = !0, removeEventListener("load", c), w(null, a), k(null), d(), u.removeEventListener?.("change", l), f?.removeEventListener("resize", p), f?.removeEventListener("scroll", p), r.remove();
|
|
1873
1884
|
}, { attach: s });
|
|
1874
1885
|
}
|
|
1875
|
-
var
|
|
1886
|
+
var Wt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Gt = (e, t, n) => e.map((e, r) => e * n + t[r] * (1 - n)), Kt = (e) => {
|
|
1876
1887
|
let [t, n, r] = e.map((e) => (e /= 255) <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
1877
1888
|
return .2126 * t + .7152 * n + .0722 * r;
|
|
1878
|
-
},
|
|
1889
|
+
}, qt = !1, Jt = class extends C {
|
|
1879
1890
|
constructor(...e) {
|
|
1880
1891
|
super(...e), this.state = { crashed: !1 };
|
|
1881
1892
|
}
|
|
@@ -1885,7 +1896,7 @@ var qt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Jt = (e, t,
|
|
|
1885
1896
|
try {
|
|
1886
1897
|
this.props.onError?.(e);
|
|
1887
1898
|
} catch {}
|
|
1888
|
-
|
|
1899
|
+
qt || (qt = !0, console.warn("[CommentKit] The widget stopped after an error and was removed. Your page is not affected.", e)), setTimeout(() => {
|
|
1889
1900
|
try {
|
|
1890
1901
|
this.props.onCrash();
|
|
1891
1902
|
} catch {}
|
|
@@ -1895,10 +1906,10 @@ var qt = (e) => e.slice(1).match(/../g).map((e) => parseInt(e, 16)), Jt = (e, t,
|
|
|
1895
1906
|
render() {
|
|
1896
1907
|
return this.state.crashed ? null : this.props.children;
|
|
1897
1908
|
}
|
|
1898
|
-
},
|
|
1909
|
+
}, Yt = /* @__PURE__ */ e({
|
|
1899
1910
|
en: () => y,
|
|
1900
|
-
installDiagnostics: () =>
|
|
1901
|
-
mountWidget: () =>
|
|
1911
|
+
installDiagnostics: () => ee,
|
|
1912
|
+
mountWidget: () => Ut,
|
|
1902
1913
|
setLocale: () => b
|
|
1903
1914
|
});
|
|
1904
|
-
export { K as A,
|
|
1915
|
+
export { K as A, re as B, ye as C, me as D, he as E, ve as F, U as H, se as I, be as L, we as M, oe as N, ce as O, G as P, L as R, Z as S, q as T, ae as U, ne as V, ie as W, je as _, et as a, Ee as b, Ve as c, Ie as d, y as en, Le as f, Ae as g, Fe as h, tt as i, ee as installDiagnostics, Ce as j, xe as k, Re as l, Ne as m, Ut as mountWidget, nt as n, Qe as o, Be as p, $e as r, We as s, b as setLocale, Yt as t, ze as u, De as v, fe as w, Oe as x, Q as y, V as z };
|