@commentkit/comment-kit 1.0.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -1
- package/README.md +12 -5
- package/SECURITY.md +3 -1
- package/dist/npm/THIRD_PARTY_NOTICES.txt +22 -23
- package/dist/npm/chunks/AgentSend-DyWxNQ0p.js +64 -0
- package/dist/npm/chunks/Checklist-VYkSl6Q9.js +259 -0
- package/dist/npm/chunks/Composer-CnsGQirF.js +679 -0
- package/dist/npm/chunks/Guest-DkIvY5zt.js +170 -0
- package/dist/npm/chunks/MarkupEditor-DxTI9nJH.js +334 -0
- package/dist/npm/chunks/Panel-riaMYxt-.js +863 -0
- package/dist/npm/chunks/Settings-CB4zxQAL.js +206 -0
- package/dist/npm/chunks/{Shortcuts-3AOERWBh.js → Shortcuts-D1cbajg_.js} +21 -17
- package/dist/npm/chunks/StyleEditor-BtTv3I8_.js +44 -0
- package/dist/npm/chunks/StylePanel-BI-n5Me1.js +199 -0
- package/dist/npm/chunks/TaskFields-HwrD0FrH.js +272 -0
- package/dist/npm/chunks/ThreadCard-CjaC8BTa.js +1026 -0
- package/dist/npm/chunks/Viewer-BnWshSXb.js +110 -0
- package/dist/npm/chunks/agent-Cr6NB6We.js +146 -0
- package/dist/npm/chunks/anchor-OCQnjp_6.js +294 -0
- package/dist/npm/chunks/{ar-BVQ4ToG2.js → ar-BQ9K9Oqf.js} +188 -7
- package/dist/npm/chunks/card-bits-CxteYiZ9.js +126 -0
- package/dist/npm/chunks/client-CJ1tpI62.js +754 -0
- package/dist/npm/chunks/colors-0Ied7PE2.js +101 -0
- package/dist/npm/chunks/confetti-DKeKR7-6.js +41 -0
- package/dist/npm/chunks/{de-CamSq76K.js → de-CcPi8xdC.js} +159 -7
- package/dist/npm/chunks/drafts-CpQdHhcK.js +51 -0
- package/dist/npm/chunks/{es-BBIlcnsU.js → es-DXgkjDCG.js} +159 -7
- package/dist/npm/chunks/extension-BIGfr4Gh.js +50 -0
- package/dist/npm/chunks/{extension-CLm_T7Vj.js → extension-DkDSW4qw.js} +2 -2
- package/dist/npm/chunks/{fr-BXsff0Zz.js → fr-IjJaUbWh.js} +159 -7
- package/dist/npm/chunks/{hi-y-APBuxh.js → hi-BhKQK2MU.js} +159 -7
- package/dist/npm/chunks/html2canvas-pro.esm-lgs6tb4C.js +8378 -0
- package/dist/npm/chunks/i18n-DAJGndZ2.js +904 -0
- package/dist/npm/chunks/{it-C5MH_Ktv.js → it-DKiSCkiD.js} +159 -7
- package/dist/npm/chunks/{ja-s1JJld2J.js → ja-BI1WagDg.js} +159 -7
- package/dist/npm/chunks/{live-CkVrNM1-.js → live-B-mo27Qq.js} +1 -1
- package/dist/npm/chunks/lock-C82sC17d.js +30 -0
- package/dist/npm/chunks/{nl-CFzRMEfl.js → nl-CJw3VUQ5.js} +159 -7
- package/dist/npm/chunks/pick-CYPkLLFJ.js +120 -0
- package/dist/npm/chunks/{pt-BR-DE_r-5UM.js → pt-BR-CjBolC5g.js} +159 -7
- package/dist/npm/chunks/{pusher-BSsQoE1K.js → realtime-D22tI_AS.js} +58 -4
- package/dist/npm/chunks/source-CTQmAh0Y.js +146 -0
- package/dist/npm/chunks/src-CgBEoWl0.js +150 -0
- package/dist/npm/chunks/start-DW9_DKmf.js +1783 -0
- package/dist/npm/chunks/upload-BmrpZE5G.js +42 -0
- package/dist/npm/chunks/uploads-CipONvCy.js +541 -0
- package/dist/npm/chunks/{zh-CN--gibO2l7.js → zh-CN-BrZGx2S0.js} +159 -7
- package/dist/npm/element.js +4 -5
- package/dist/npm/headless.js +3 -3
- 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/adapters/vue.d.ts +14 -0
- package/dist/npm/types/anchor/index.d.ts +22 -1
- package/dist/npm/types/core/api.d.ts +3 -0
- package/dist/npm/types/core/auth.d.ts +11 -0
- package/dist/npm/types/core/client.d.ts +128 -6
- package/dist/npm/types/core/types.d.ts +78 -4
- package/dist/npm/types/headless.d.ts +1 -1
- package/dist/npm/types/index.d.ts +6 -1
- package/dist/npm/vue.js +5 -1
- package/package.json +6 -3
- package/dist/npm/chunks/Guest-CdfnuD8T.js +0 -157
- package/dist/npm/chunks/MarkupEditor-Clb17Tse.js +0 -199
- package/dist/npm/chunks/Panel-CgvEbZXr.js +0 -438
- package/dist/npm/chunks/ThreadCard-DuGKe-gE.js +0 -817
- package/dist/npm/chunks/anchor-DT-Ynhh1.js +0 -270
- package/dist/npm/chunks/art-Bn9_ANNS.js +0 -155
- package/dist/npm/chunks/client-CS5oL_LQ.js +0 -620
- package/dist/npm/chunks/colors-CX-IPjvb.js +0 -86
- package/dist/npm/chunks/extension-DWHHer7j.js +0 -26
- package/dist/npm/chunks/format-CP2xZaec.js +0 -524
- package/dist/npm/chunks/html2canvas-DfGb8yka.js +0 -4024
- package/dist/npm/chunks/mount-VmnAiANB.js +0 -1507
- package/dist/npm/chunks/privacy-DLhezjyi.js +0 -30
- package/dist/npm/chunks/realtime-CBRW9BB3.js +0 -34
- package/dist/npm/chunks/src-DG8ehgE9.js +0 -549
|
@@ -0,0 +1,904 @@
|
|
|
1
|
+
//#region node_modules/preact/dist/preact.mjs
|
|
2
|
+
var e, t, n, r, i, a, o, s, c, l, u = {}, d = [], f = /^m(i|n|o|s|text|space)$/, p = Array.isArray, m = d.slice, h = Object.assign;
|
|
3
|
+
function g(e) {
|
|
4
|
+
e && e.parentNode && e.remove();
|
|
5
|
+
}
|
|
6
|
+
function _(n, r, i, a, o) {
|
|
7
|
+
var s = {
|
|
8
|
+
type: n,
|
|
9
|
+
props: r,
|
|
10
|
+
key: i,
|
|
11
|
+
ref: a,
|
|
12
|
+
__k: null,
|
|
13
|
+
__: null,
|
|
14
|
+
__b: 0,
|
|
15
|
+
__e: null,
|
|
16
|
+
__c: null,
|
|
17
|
+
constructor: void 0,
|
|
18
|
+
__v: o || ++t,
|
|
19
|
+
__i: -1,
|
|
20
|
+
__u: 0
|
|
21
|
+
};
|
|
22
|
+
return !o && e.vnode && e.vnode(s), s;
|
|
23
|
+
}
|
|
24
|
+
function v(e) {
|
|
25
|
+
return e.children;
|
|
26
|
+
}
|
|
27
|
+
function y(e, t) {
|
|
28
|
+
this.props = e, this.context = t, this.__g = 0;
|
|
29
|
+
}
|
|
30
|
+
function b(e, t) {
|
|
31
|
+
if (t == null) return e.__ ? b(e.__, e.__i + 1) : null;
|
|
32
|
+
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) && n.__e) return n.__e;
|
|
33
|
+
return typeof e.type != "function" || e.props.__P ? null : b(e);
|
|
34
|
+
}
|
|
35
|
+
function x(e) {
|
|
36
|
+
if ((e = e.__) && e.__c && !e.props.__P) return e.__e = null, e.__k.some(function(t) {
|
|
37
|
+
return t && (e.__e = t.__e);
|
|
38
|
+
}), x(e);
|
|
39
|
+
}
|
|
40
|
+
function S(t) {
|
|
41
|
+
(8 & t.__g || !(t.__g |= 8) || !n.push(t) || i++) && r == e.debounceRendering || ((r = e.debounceRendering) || queueMicrotask)(C);
|
|
42
|
+
}
|
|
43
|
+
function C() {
|
|
44
|
+
var t, r, o, s, c, l, u, d, f;
|
|
45
|
+
try {
|
|
46
|
+
for (r = 1; n.length;) n.length > r && n.sort(a), t = n.shift(), r = n.length, 8 & t.__g && (s = void 0, c = void 0, l = (c = (o = t).__v).__e, u = [], d = [], (f = o.__P) && ((s = h({ constructor: void 0 }, c)).__v = c.__v + 1, e.vnode && e.vnode(s), A(f, s, c, o.__n, f.namespaceURI, 32 & c.__u ? [l] : null, u, l || b(c), 32 & c.__u, d), s.__v = c.__v, s.__.__k[s.__i] = s, j(u, s, d), c.__ = c.__e = null, s.__e != l && x(s)));
|
|
47
|
+
} finally {
|
|
48
|
+
n.length = i = 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function ee(e, t, n, r, i, a, o, s, c, l, f) {
|
|
52
|
+
var p, m, h, g, _, v, y = r.__k || d, b = t.length;
|
|
53
|
+
for (c = w(n, t, y, c, b), p = 0; p < b; p++) (h = n.__k[p]) != null && (m = ~h.__i && y[h.__i] || u, h.__i = p, v = A(e, h, m, i, a, o, s, c, l, f), g = h.__e, (m.ref != h.ref || 8 & m.__u) && (m.ref && M(m.ref, null, h, m), h.ref && f.push(h.ref, h.__c || g, h)), _ = _ || g, 4 & h.__u ? (c = T(h, c, e, !m.__v), m.__e && (m.__e = null)) : typeof h.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), h.__u &= -7);
|
|
54
|
+
return n.__e = _, c;
|
|
55
|
+
}
|
|
56
|
+
function w(e, t, n, r, i) {
|
|
57
|
+
var a, o, s, c, l, u, d, f, m, h, g = n.length, y = g, x = 0, S = !1, C = e.__k = Array(i);
|
|
58
|
+
for (a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o != "object" || o.constructor == String ? o = C[a] = _(null, o) : p(o) ? o = C[a] = _(v, { children: o }) : o.constructor === void 0 && o.__b ? o = C[a] = _(o.type, o.props, o.key, o.ref, o.__v) : C[a] = o, c = a + x, o.__ = e, o.__b = e.__b + 1, s = null, ~(l = o.__i = E(o, n, c, y)) && (y--, (s = n[l]) && (s.__u |= 2)), s && s.__v ? (o.__u |= 2, l == c - 1 ? x-- : l == c + 1 ? x++ : l != c && (l > c ? x-- : x++, S = !0)) : (~l || (i > g ? x-- : i < g && x++), typeof o.type != "function" && (o.__u |= 4))) : C[a] = null;
|
|
59
|
+
if (S) {
|
|
60
|
+
for (u = [], d = [], a = 0; a < i; a++) if ((o = C[a]) && 2 & o.__u) {
|
|
61
|
+
for (f = 0, m = u.length; f < m;) u[h = f + m >> 1] < o.__i ? f = h + 1 : m = h;
|
|
62
|
+
u[f] = o.__i, d[a] = f + 1;
|
|
63
|
+
}
|
|
64
|
+
for (x = u.length; a--;) d[a] && (d[a] == x ? x-- : C[a].__u |= 4);
|
|
65
|
+
}
|
|
66
|
+
if (y) for (a = 0; a < g; a++) !(s = n[a]) || 2 & s.__u || (s.__e == r && (r = b(s)), N(s, s));
|
|
67
|
+
return r;
|
|
68
|
+
}
|
|
69
|
+
function T(e, t, n, r) {
|
|
70
|
+
var i, a, o;
|
|
71
|
+
if (typeof e.type == "function") {
|
|
72
|
+
if (e.props.__P) return t;
|
|
73
|
+
if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && (i[a].__ = e, t = T(i[a], t, n, !1));
|
|
74
|
+
return t;
|
|
75
|
+
}
|
|
76
|
+
for (t && !t.parentNode && (t = b(e)) && !t.parentNode && (t = null), o = t; o && o.nodeType == 8;) o = o.nextSibling;
|
|
77
|
+
for (e.__e != o && (!r && n.moveBefore && e.__e.parentNode ? n.moveBefore(e.__e, t) : n.insertBefore(e.__e, t || null)), t = e.__e; (t = t && t.nextSibling) && t.nodeType == 8;);
|
|
78
|
+
return t;
|
|
79
|
+
}
|
|
80
|
+
function E(e, t, n, r) {
|
|
81
|
+
var i, a, o, s = e.key, c = e.type, l = t[n], u = l && !(2 & l.__u);
|
|
82
|
+
if (l === null && s == null || u && s == l.key && c == l.type) return n;
|
|
83
|
+
if (r > +!!u) {
|
|
84
|
+
for (i = n - 1, a = n + 1; i >= 0 || a < t.length;) if ((l = t[o = i >= 0 ? i-- : a++]) && !(2 & l.__u) && s == l.key && c == l.type) return o;
|
|
85
|
+
}
|
|
86
|
+
return -1;
|
|
87
|
+
}
|
|
88
|
+
function D(e, t, n) {
|
|
89
|
+
n ?? (n = ""), t[0] == "-" ? e.setProperty(t, n) : e[t] = n;
|
|
90
|
+
}
|
|
91
|
+
function O(e, t, n, r, i) {
|
|
92
|
+
var a, o;
|
|
93
|
+
n: if (t == "style") {
|
|
94
|
+
if (typeof n == "string") e.style.cssText = n;
|
|
95
|
+
else {
|
|
96
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || D(e.style, t, "");
|
|
97
|
+
if (n) for (t in n) r && n[t] == r[t] || D(e.style, t, n[t]);
|
|
98
|
+
}
|
|
99
|
+
} else if (t[0] == "o" && t[1] == "n") (e.__e || (e.__e = {}))[t] = n, n && r || (o = l[t] || (l[t] = k(t)), (e.__a || (e.__a = {}))[t] = c, a = t != (t = t.replace(s, "$1")), (t = t.slice(2))[0] < "a" && (t = t.toLowerCase()), n ? e.addEventListener(t, o, a) : e.removeEventListener(t, o, a));
|
|
100
|
+
else {
|
|
101
|
+
if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
102
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
103
|
+
e[t] = n ?? "";
|
|
104
|
+
break n;
|
|
105
|
+
} catch {}
|
|
106
|
+
typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function k(t) {
|
|
110
|
+
return function(n) {
|
|
111
|
+
if (this.__e) {
|
|
112
|
+
var r = this.__e[t];
|
|
113
|
+
if (n[o] == null) n[o] = c++;
|
|
114
|
+
else if (n[o] < this.__a[t]) return;
|
|
115
|
+
return r(e.event ? e.event(n) : n);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function A(t, n, r, i, a, o, s, c, l, u) {
|
|
120
|
+
var f, m, _, x, S, C, w, T, E, D, O, k, A, j, M, P, F, I, L, R, z = n.type;
|
|
121
|
+
if (n.constructor !== void 0) return null;
|
|
122
|
+
if (128 & r.__u && (l = 32 & r.__u, f = r.__c.__z)) {
|
|
123
|
+
if (n.__u |= l, m = o = [], f.nodeType == 8) for (_ = 1, x = f.nextSibling; x; x = x.nextSibling) {
|
|
124
|
+
if (x.nodeType == 8) {
|
|
125
|
+
if (x.data.startsWith("$s")) _++;
|
|
126
|
+
else if (x.data.startsWith("/$s") && !--_) break;
|
|
127
|
+
}
|
|
128
|
+
o.push(x);
|
|
129
|
+
}
|
|
130
|
+
else o.push(f);
|
|
131
|
+
c = o[0];
|
|
132
|
+
}
|
|
133
|
+
(f = e.__b) && f(n);
|
|
134
|
+
n: if (typeof z == "function") {
|
|
135
|
+
S = s.length;
|
|
136
|
+
try {
|
|
137
|
+
if (D = n.props, O = (f = z.prototype) && f.render, k = (f = z.contextType) && i[f.__c], A = f ? k ? k.props.value : f.__ : i, r.__c ? 2 & (C = n.__c = r.__c).__g && (C.__g |= 1) : (O ? n.__c = C = new z(D, A) : (n.__c = C = new y(D, A), C.constructor = z, C.render = re), k && k.sub(C), C.state || (C.state = {}), C.__n = i, C.__g |= 8, C.__h = [], C.__k = []), O && (C.__s || (C.__s = C.state), z.getDerivedStateFromProps && (C.__s == C.state && (C.__s = h({}, C.__s)), h(C.__s, z.getDerivedStateFromProps(D, C.__s)))), w = C.props, T = C.state, C.__v = n, r.__c) {
|
|
138
|
+
if (O && !z.getDerivedStateFromProps && D !== w && C.componentWillReceiveProps && C.componentWillReceiveProps(D, A), n.__v == r.__v && !(8 & C.__g) || !(4 & C.__g) && C.shouldComponentUpdate && !1 === C.shouldComponentUpdate(D, C.__s, A)) {
|
|
139
|
+
n.__v != r.__v && (C.props = D, C.state = C.__s, C.__g &= -9), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
|
|
140
|
+
e && (e.__ = n);
|
|
141
|
+
}), d.push.apply(C.__h, C.__k), C.__k = [], C.__h.length && s.push(C), c = b(r);
|
|
142
|
+
break n;
|
|
143
|
+
}
|
|
144
|
+
C.componentWillUpdate && C.componentWillUpdate(D, C.__s, A), O && C.componentDidUpdate && C.__h.push(function() {
|
|
145
|
+
C.componentDidUpdate(w, T, E);
|
|
146
|
+
});
|
|
147
|
+
} else O && !z.getDerivedStateFromProps && C.componentWillMount && C.componentWillMount(), O && C.componentDidMount && C.__h.push(C.componentDidMount);
|
|
148
|
+
if (C.context = A, C.props = D, C.__P = t, C.__g &= -5, j = e.__r, M = 0, O) C.state = C.__s, C.__g &= -9, j && j(n), f = C.render(C.props, C.state, C.context), d.push.apply(C.__h, C.__k), C.__k = [];
|
|
149
|
+
else do
|
|
150
|
+
C.__g &= -9, j && j(n), f = C.render(C.props, C.state, C.context), C.state = C.__s;
|
|
151
|
+
while (8 & C.__g && ++M < 25);
|
|
152
|
+
C.state = C.__s, C.getChildContext && (i = h({}, i, C.getChildContext())), O && r.__c && C.getSnapshotBeforeUpdate && (E = C.getSnapshotBeforeUpdate(w, T)), P = f && f.type === v && f.key == null ? f.props.children : f, D.__P && (f = c, a = (t = D.__P).namespaceURI, l = o = null, r.props && r.props.__P != t && (r.__k.some(function(e) {
|
|
153
|
+
e && N(e, e);
|
|
154
|
+
}), r.__k = null), c = r.__k ? b(r, 0) : null), c = ee(t, p(P) ? P : [P], n, r, i, a, o, s, c, l, u), D.__P && (n.__e = null, c = f), n.__u &= -161, 128 & r.__u && (C.__z = null), m && m.some(g), C.__h.length && s.push(C), 1 & C.__g && (C.__g &= -4);
|
|
155
|
+
} catch (t) {
|
|
156
|
+
if (s.length = S, n.__v = null, l || o) {
|
|
157
|
+
if (t.then) {
|
|
158
|
+
if (F = 0, n.__u |= l ? 160 : 128, o) {
|
|
159
|
+
for (~(L = o.indexOf(c || void 0)) || (L = o.length); (R = o[L - 1]) && R.nodeType == 8;) L--;
|
|
160
|
+
for (; L < o.length; L++) if (R = o[L]) {
|
|
161
|
+
if (o[L] = null, R.nodeType == 8) {
|
|
162
|
+
if (R.data.startsWith("$s")) F++ || (I = R);
|
|
163
|
+
else if (F && R.data.startsWith("/$s") && !--F) {
|
|
164
|
+
c = R;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
} else if (!F) break;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (!I) {
|
|
171
|
+
for (; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
|
|
172
|
+
I = c;
|
|
173
|
+
}
|
|
174
|
+
n.__c.__z || (n.__c.__z = I), n.__e = c;
|
|
175
|
+
} else o && o.some(g);
|
|
176
|
+
} else n.__e = r.__e;
|
|
177
|
+
n.__k || (n.__k = r.__k || []), t.then || te(n), e.__e(t, n, r);
|
|
178
|
+
}
|
|
179
|
+
} else c = n.__e = ne(r.__e, n, r, i, a, o, s, l, u, t);
|
|
180
|
+
return (f = e.diffed) && f(n), 128 & n.__u ? void 0 : c;
|
|
181
|
+
}
|
|
182
|
+
function te(e) {
|
|
183
|
+
e && (e.__c && (e.__c.__g |= 4), e.__k && e.__k.some(te));
|
|
184
|
+
}
|
|
185
|
+
function j(t, n, r) {
|
|
186
|
+
for (var i = 0; i < r.length;) M(r[i++], r[i++], r[i++]);
|
|
187
|
+
e.__c && e.__c(n, t), t.some(function(n) {
|
|
188
|
+
try {
|
|
189
|
+
t = n.__h, n.__h = [], t.some(function(e) {
|
|
190
|
+
e.call(n);
|
|
191
|
+
});
|
|
192
|
+
} catch (t) {
|
|
193
|
+
e.__e(t, n.__v);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function ne(t, n, r, i, a, o, s, c, l, d) {
|
|
198
|
+
var h, _, v, y, x, S, C, w, T, E = r.props || u, D = n.props, k = n.type;
|
|
199
|
+
if (k == "svg" ? a = "http://www.w3.org/2000/svg" : k == "math" ? a = "http://www.w3.org/1998/Math/MathML" : a || (a = "http://www.w3.org/1999/xhtml"), o) {
|
|
200
|
+
for (h = 0; h < o.length; h++) if ((x = o[h]) && (k ? x.localName == k : x.nodeType == 3)) {
|
|
201
|
+
t = x, o[h] = null;
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (!t) {
|
|
206
|
+
if (w = d.ownerDocument || document, !k) return w.createTextNode(D);
|
|
207
|
+
t = w.createElementNS(a, k, D.is && D), c && (e.__m && e.__m(n, o), c = !1), o = null;
|
|
208
|
+
}
|
|
209
|
+
if (k) {
|
|
210
|
+
if (d = k == "template" ? t.content : t, o = k == "textarea" && D.defaultValue != null ? null : o && m.call(d.childNodes), !c && o) for (E = {}, h = 0; h < t.attributes.length; h++) E[(x = t.attributes[h]).name] = x.value;
|
|
211
|
+
for (h in E) x = E[h], h == "dangerouslySetInnerHTML" ? v = x : h == "children" || h in D || h == "value" && "defaultValue" in D || h == "checked" && "defaultChecked" in D || O(t, h, null, x, a);
|
|
212
|
+
for (h in T = 1 & r.__u, D) x = D[h], h == "children" ? y = x : h == "dangerouslySetInnerHTML" ? _ = x : h == "value" ? S = x : h == "checked" ? C = x : c && typeof x != "function" || !(E[h] !== x || T && x != null) || O(t, h, x, E[h], a);
|
|
213
|
+
_ ? (c || v && (_.__html == v.__html || _.__html == t.innerHTML) || (t.innerHTML = _.__html), n.__k = []) : (v && (t.textContent = ""), (k == "foreignObject" || a == "http://www.w3.org/1998/Math/MathML" && f.test(k)) && (a = "http://www.w3.org/1999/xhtml"), ee(d, p(y) ? y : [y], n, r, i, a, o, s, o ? o[0] : r.__k && b(r, 0), c, l), o && o.some(g)), c && k != "textarea" || (h = "value", k == "progress" && S == null ? t.removeAttribute(h) : S == null || S === t[h] && (k != "progress" || S) || O(t, h, S, E[h], a), h = "checked", C != null && C != t[h] && O(t, h, C, E[h], a));
|
|
214
|
+
} else E === D || c && t.data == D || (t.data = D);
|
|
215
|
+
return t;
|
|
216
|
+
}
|
|
217
|
+
function M(t, n, r, i) {
|
|
218
|
+
try {
|
|
219
|
+
typeof t == "function" ? n ? n.__x = t(n) || 1 : i && (i = i.__c || i.__e) && (n = i.__x) && (i.__x = null, typeof n == "function" ? n() : t(null)) : t.current = n;
|
|
220
|
+
} catch (t) {
|
|
221
|
+
e.__e(t, r);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function N(t, n, r) {
|
|
225
|
+
var i, a;
|
|
226
|
+
if (e.unmount && e.unmount(t), !(i = t.ref) || i.current && i.current != t.__e || M(i, null, n, t), i = t.__c) {
|
|
227
|
+
if (i.componentWillUnmount) try {
|
|
228
|
+
i.componentWillUnmount();
|
|
229
|
+
} catch (t) {
|
|
230
|
+
e.__e(t, n);
|
|
231
|
+
}
|
|
232
|
+
i.__P = i.__n = null;
|
|
233
|
+
}
|
|
234
|
+
if (i = t.__k) for (a = 0; a < i.length; a++) i[a] && N(i[a], n, typeof t.type != "function" || r && !t.props.__P);
|
|
235
|
+
(i = t.__e) && (r || g(i), i.__e && (i.__e = null)), t.__e = t.__c = t.__ = null;
|
|
236
|
+
}
|
|
237
|
+
function re(e, t, n) {
|
|
238
|
+
return this.constructor(e, n);
|
|
239
|
+
}
|
|
240
|
+
function P(t, n) {
|
|
241
|
+
var r, i, a, o;
|
|
242
|
+
e.__ && e.__(t, n), n.nodeType == 9 && (n = n.documentElement), i = (r = t && 32 & t.__u) ? null : n.__k, n.__k = _(v, { children: [t] }), a = [], o = [], A(n, n.__k, i || u, u, n.namespaceURI, i ? null : n.firstChild ? m.call(n.childNodes) : null, a, i ? i.__e : n.firstChild, r, o), j(a, n.__k, o), n.__k.props.children = null;
|
|
243
|
+
}
|
|
244
|
+
e = { __e: function(e, t, n, r) {
|
|
245
|
+
for (var a, o, s; t = t.__;) if ((a = t.__c) && !(1 & a.__g)) {
|
|
246
|
+
a.__g |= 4;
|
|
247
|
+
try {
|
|
248
|
+
if ((o = a.constructor) && o.getDerivedStateFromError && (a.setState(o.getDerivedStateFromError(e)), s = 8 & a.__g), a.componentDidCatch && (a.componentDidCatch(e, r || {}), s = 8 & a.__g), s) return void (a.__g |= 2);
|
|
249
|
+
} catch (t) {
|
|
250
|
+
e = t, s = 0;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
throw i = 0, e;
|
|
254
|
+
} }, t = 0, y.prototype.setState = function(e, t) {
|
|
255
|
+
var n = this.__s;
|
|
256
|
+
n && n != this.state || (n = this.__s = h({}, this.state)), typeof e == "function" && (e = e(h({}, n), this.props)), e && (h(n, e), this.__v && (t && this.__k.push(t), S(this)));
|
|
257
|
+
}, y.prototype.forceUpdate = function(e) {
|
|
258
|
+
this.__v && (this.__g |= 4, e && this.__h.push(e), S(this));
|
|
259
|
+
}, y.prototype.render = v, n = [], i = 0, a = function(e, t) {
|
|
260
|
+
return e.__v.__b - t.__v.__b;
|
|
261
|
+
}, o = Symbol(), s = /(PointerCapture)$|Capture$/i, c = 0, l = {};
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region node_modules/preact/hooks/dist/hooks.mjs
|
|
264
|
+
var F, I, L, R, z = Object.is, B = 0, ie = [], V = [], H = e, ae = H.__b, oe = H.__r, se = H.diffed, ce = H.__c, le = H.unmount, ue = H.__;
|
|
265
|
+
function U(e, t) {
|
|
266
|
+
H.__h && H.__h(I, e, B || t), B = 0;
|
|
267
|
+
var n = I.__H || (I.__H = {
|
|
268
|
+
__: [],
|
|
269
|
+
__h: []
|
|
270
|
+
});
|
|
271
|
+
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
272
|
+
}
|
|
273
|
+
function de(e) {
|
|
274
|
+
return B = 1, fe(xe, e);
|
|
275
|
+
}
|
|
276
|
+
function fe(e, t, n) {
|
|
277
|
+
var r = U(F++, 2);
|
|
278
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : xe(void 0, t), function(e) {
|
|
279
|
+
var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
|
|
280
|
+
z(t, n) || (r.__N = [n, r.__[1]], r.__c.setState({}));
|
|
281
|
+
}], r.__c = I, !I.__f)) {
|
|
282
|
+
I.__f = !0;
|
|
283
|
+
var i = I.shouldComponentUpdate;
|
|
284
|
+
I.shouldComponentUpdate = function(e, t, n) {
|
|
285
|
+
var r = this.__H;
|
|
286
|
+
if (!r) return !0;
|
|
287
|
+
var a = !1, o = this.props != e;
|
|
288
|
+
if (r.__.some(function(e) {
|
|
289
|
+
e.__N && (a = !0, z(e.__[0], e.__N[0]) || (o = !0));
|
|
290
|
+
}), i) {
|
|
291
|
+
var s = i.call(this, e, t, n);
|
|
292
|
+
return a ? s || o : s;
|
|
293
|
+
}
|
|
294
|
+
return !a || o;
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
return r.__;
|
|
298
|
+
}
|
|
299
|
+
function pe(e, t) {
|
|
300
|
+
var n = U(F++, 3);
|
|
301
|
+
!H.__s && q(n.__H, t) && (n.__P = !0, n.__ = e, n.u = t, I.__H.__h.push(n));
|
|
302
|
+
}
|
|
303
|
+
function me(e, t) {
|
|
304
|
+
var n = U(F++, 4);
|
|
305
|
+
!H.__s && q(n.__H, t) && (n.__P = !1, n.__ = e, n.u = t, I.__h.push(n));
|
|
306
|
+
}
|
|
307
|
+
function he(e) {
|
|
308
|
+
return B = 5, W(function() {
|
|
309
|
+
return { current: e };
|
|
310
|
+
}, []);
|
|
311
|
+
}
|
|
312
|
+
function W(e, t) {
|
|
313
|
+
var n = U(F++, 7);
|
|
314
|
+
return q(n.__H, t) && (n.__ = e(), n.__H = t), n.__;
|
|
315
|
+
}
|
|
316
|
+
function ge(e, t) {
|
|
317
|
+
return B = 8, W(function() {
|
|
318
|
+
return e;
|
|
319
|
+
}, t);
|
|
320
|
+
}
|
|
321
|
+
function _e() {
|
|
322
|
+
var e;
|
|
323
|
+
do {
|
|
324
|
+
for (; e = V.shift();) try {
|
|
325
|
+
G(e);
|
|
326
|
+
} catch (t) {
|
|
327
|
+
H.__e(t, { __: (e = e.__P) && e.__v });
|
|
328
|
+
}
|
|
329
|
+
for (; e = ie.shift();) {
|
|
330
|
+
var t = e.__H;
|
|
331
|
+
if (e.__P && t) try {
|
|
332
|
+
t.__h.some(G), t.__h.some(K), t.__h = [];
|
|
333
|
+
} catch (n) {
|
|
334
|
+
t.__h = [], H.__e(n, e.__v);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
} while (V.length);
|
|
338
|
+
}
|
|
339
|
+
H.__b = function(e) {
|
|
340
|
+
I = null, ae && ae(e);
|
|
341
|
+
}, H.__ = function(e, t) {
|
|
342
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), ue && ue(e, t);
|
|
343
|
+
}, H.__r = function(e) {
|
|
344
|
+
oe && oe(e), F = 0;
|
|
345
|
+
var t = (I = e.__c).__H;
|
|
346
|
+
t && (L == I ? I.__h = [] : (t.__h.some(G), t.__h.some(K), F = 0), t.__h = [], t.__.some(function(e) {
|
|
347
|
+
e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
|
|
348
|
+
})), L = I;
|
|
349
|
+
}, H.diffed = function(e) {
|
|
350
|
+
se && se(e);
|
|
351
|
+
var t = e.__c;
|
|
352
|
+
t && t.__H && (t.__H.__h.length && be(ie.push(t)), t.__H.__.some(function(e) {
|
|
353
|
+
e.u && (e.__H = e.u);
|
|
354
|
+
})), L = I = null;
|
|
355
|
+
}, H.__c = function(e, t) {
|
|
356
|
+
t.some(function(e) {
|
|
357
|
+
try {
|
|
358
|
+
e.__h.some(G), e.__h = e.__h.filter(function(e) {
|
|
359
|
+
return !e.__ || K(e);
|
|
360
|
+
});
|
|
361
|
+
} catch (n) {
|
|
362
|
+
t.some(function(e) {
|
|
363
|
+
e.__h && (e.__h = []);
|
|
364
|
+
}), t = [], H.__e(n, e.__v);
|
|
365
|
+
}
|
|
366
|
+
}), ce && ce(e, t);
|
|
367
|
+
}, H.unmount = function(e) {
|
|
368
|
+
le && le(e);
|
|
369
|
+
var t, n, r = e.__c;
|
|
370
|
+
r && r.__H && (r.__H.__.some(function(r) {
|
|
371
|
+
try {
|
|
372
|
+
if (r.__P && r.__c) {
|
|
373
|
+
if (n === void 0) {
|
|
374
|
+
for (n = e.__; n && (!n.__c || !n.__c.__P);) n = n.__;
|
|
375
|
+
n = n && n.__c;
|
|
376
|
+
}
|
|
377
|
+
r.__P = n, be(V.push(r));
|
|
378
|
+
} else G(r);
|
|
379
|
+
} catch (e) {
|
|
380
|
+
t = e;
|
|
381
|
+
}
|
|
382
|
+
}), r.__H = void 0, t && H.__e(t, r.__v));
|
|
383
|
+
};
|
|
384
|
+
var ve = typeof requestAnimationFrame == "function";
|
|
385
|
+
function ye(e) {
|
|
386
|
+
var t, n = function() {
|
|
387
|
+
clearTimeout(r), ve && cancelAnimationFrame(t), setTimeout(e);
|
|
388
|
+
}, r = setTimeout(n, 35);
|
|
389
|
+
ve && (t = requestAnimationFrame(n));
|
|
390
|
+
}
|
|
391
|
+
function be(e) {
|
|
392
|
+
e != 1 && R == H.requestAnimationFrame || ((R = H.requestAnimationFrame) || ye)(_e);
|
|
393
|
+
}
|
|
394
|
+
function G(e) {
|
|
395
|
+
var t = I, n = e.__c;
|
|
396
|
+
typeof n == "function" && (e.__c = void 0, n()), I = t;
|
|
397
|
+
}
|
|
398
|
+
function K(e) {
|
|
399
|
+
var t = I;
|
|
400
|
+
e.__c = e.__(), I = t;
|
|
401
|
+
}
|
|
402
|
+
function q(e, t) {
|
|
403
|
+
return !e || e.length != t.length || t.some(function(t, n) {
|
|
404
|
+
return !z(t, e[n]);
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
function xe(e, t) {
|
|
408
|
+
return typeof t == "function" ? t(e) : t;
|
|
409
|
+
}
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
|
|
412
|
+
var Se = 0;
|
|
413
|
+
Array.isArray;
|
|
414
|
+
function Ce(t, n, r, i, a, o) {
|
|
415
|
+
n || (n = {});
|
|
416
|
+
var s, c, l = n;
|
|
417
|
+
if ("ref" in l && typeof t != "function") for (c in l = {}, n) c == "ref" ? s = n[c] : l[c] = n[c];
|
|
418
|
+
var u = {
|
|
419
|
+
type: t,
|
|
420
|
+
props: l,
|
|
421
|
+
key: r,
|
|
422
|
+
ref: s,
|
|
423
|
+
__k: null,
|
|
424
|
+
__: null,
|
|
425
|
+
__b: 0,
|
|
426
|
+
__e: null,
|
|
427
|
+
__c: null,
|
|
428
|
+
constructor: void 0,
|
|
429
|
+
__v: --Se,
|
|
430
|
+
__i: -1,
|
|
431
|
+
__u: 0
|
|
432
|
+
};
|
|
433
|
+
return (a || o) && (u.__source = a, u.__self = o), e.vnode && e.vnode(u), u;
|
|
434
|
+
}
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/ui/i18n.ts
|
|
437
|
+
var J = {
|
|
438
|
+
comment: "Comment",
|
|
439
|
+
commentHint: "Click anything on the page to comment on it",
|
|
440
|
+
inbox: "Inbox",
|
|
441
|
+
close: "Close",
|
|
442
|
+
cancel: "Cancel",
|
|
443
|
+
send: "Send",
|
|
444
|
+
sending: "Sending…",
|
|
445
|
+
reply: "Reply",
|
|
446
|
+
replyPlaceholder: "Write a reply…",
|
|
447
|
+
composerPlaceholder: "What should change here? Be as specific as you like.",
|
|
448
|
+
modeBar: "Click to comment · Drag to quote text or mark an area · Esc to stop",
|
|
449
|
+
modeBarTouch: "Tap anything to comment · Scroll as usual · Select text first to quote it",
|
|
450
|
+
commentOnPage: "Comment on the whole page",
|
|
451
|
+
commentFocused: "Comment on the selected part",
|
|
452
|
+
attach: "Attach a file",
|
|
453
|
+
screenshot: "Screenshot",
|
|
454
|
+
screenshotIncluded: "A screenshot of what you see is included automatically.",
|
|
455
|
+
screenshotRemove: "Don't include screenshot",
|
|
456
|
+
screenshotAdd: "Include screenshot",
|
|
457
|
+
markup: "Draw on screenshot",
|
|
458
|
+
markupDone: "Done drawing",
|
|
459
|
+
markupEmpty: "Draw something first",
|
|
460
|
+
tool_arrow: "Arrow",
|
|
461
|
+
tool_rect: "Box",
|
|
462
|
+
tool_pen: "Pen",
|
|
463
|
+
tool_blur: "Blur",
|
|
464
|
+
tool_text: "Text",
|
|
465
|
+
markupTextPrompt: "What should the note say?",
|
|
466
|
+
undo: "Undo",
|
|
467
|
+
color_red: "Red",
|
|
468
|
+
color_orange: "Orange",
|
|
469
|
+
color_green: "Green",
|
|
470
|
+
color_blue: "Blue",
|
|
471
|
+
capturing: "Taking screenshot…",
|
|
472
|
+
capturingFailed: "No screenshot of this page, but your comment still marks the spot.",
|
|
473
|
+
uploadFailed: "The file could not be attached. You can still send your comment.",
|
|
474
|
+
signInToSend: "One last step: tell us who you are",
|
|
475
|
+
signInExplain: "We open a small window so you can confirm your email. You only do this once on this device.",
|
|
476
|
+
signIn: "Continue",
|
|
477
|
+
signInMember: "Sign in",
|
|
478
|
+
signOut: "Sign out",
|
|
479
|
+
popupBlocked: "Your browser blocked the sign-in window. Click the button again, or allow pop-ups for this site.",
|
|
480
|
+
signInCancelled: "Sign-in was closed before it finished. Your comment is still here.",
|
|
481
|
+
sent: "Sent! The team has been notified.",
|
|
482
|
+
sentGuest: "Sent! We'll email you when someone replies.",
|
|
483
|
+
thisPage: "This page",
|
|
484
|
+
allPages: "All pages",
|
|
485
|
+
notifications: "Notifications",
|
|
486
|
+
nothingHere: "No feedback on this page yet.",
|
|
487
|
+
nothingHereHint: "Click Comment, then click anything on the page.",
|
|
488
|
+
nothingAnywhere: "No feedback on this site yet.",
|
|
489
|
+
noMatch: "No feedback matches your search or filters.",
|
|
490
|
+
clearFilters: "Clear filters",
|
|
491
|
+
allCaughtUp: "You're all caught up.",
|
|
492
|
+
search: "Search feedback",
|
|
493
|
+
detached: "We can't find this spot on the page anymore. It may have changed since the comment was left.",
|
|
494
|
+
moved: "This part of the page changed since the comment was left.",
|
|
495
|
+
screen_phone: "Left on a phone-sized screen",
|
|
496
|
+
screen_tablet: "Left on a tablet-sized screen",
|
|
497
|
+
screen_wide: "Left on a wider screen",
|
|
498
|
+
size_phone: "Phone",
|
|
499
|
+
size_tablet: "Tablet",
|
|
500
|
+
size_wide: "Wide screen",
|
|
501
|
+
status_open: "Open",
|
|
502
|
+
status_in_progress: "In progress",
|
|
503
|
+
status_in_review: "Ready for review",
|
|
504
|
+
status_resolved: "Resolved",
|
|
505
|
+
status_closed: "Closed",
|
|
506
|
+
resolve: "Resolve",
|
|
507
|
+
resolveHint: "Mark this as fixed",
|
|
508
|
+
resolvedToast: "Resolved {ref}.",
|
|
509
|
+
undoTooLate: "It's too late to undo this. Reopen {ref} if it still needs work.",
|
|
510
|
+
reopen: "Reopen",
|
|
511
|
+
markInProgress: "Start working",
|
|
512
|
+
markInReview: "Ready for review",
|
|
513
|
+
closeThread: "Close without changes",
|
|
514
|
+
reviewAsk: "The team thinks this is fixed. Does it look right to you?",
|
|
515
|
+
looksGood: "Looks good — resolve",
|
|
516
|
+
notYet: "Not yet — reply",
|
|
517
|
+
notYetPlaceholder: "What still needs to change?",
|
|
518
|
+
copyLink: "Copy link",
|
|
519
|
+
copied: "Copied",
|
|
520
|
+
copyForAgent: "Copy for AI agent",
|
|
521
|
+
sendToAgent: "Send to agent",
|
|
522
|
+
selectedCount: "{n} selected",
|
|
523
|
+
selectedCount_one: "{n} selected",
|
|
524
|
+
agentPreparing: "Getting the conversations…",
|
|
525
|
+
agentReady: "{n} comments ready",
|
|
526
|
+
agentReady_one: "1 comment ready",
|
|
527
|
+
openIn: "Open in {agent}",
|
|
528
|
+
copyPrompt: "Copy prompt",
|
|
529
|
+
agentOpened: "Opening {agent} with the prompt filled in. It's on your clipboard too.",
|
|
530
|
+
agentOpenedShort: "Opening {agent} with a short version. The full prompt is on your clipboard.",
|
|
531
|
+
agentCopied: "Copied {n} comments for your agent.",
|
|
532
|
+
agentCopied_one: "Copied 1 comment for your agent.",
|
|
533
|
+
agentFirstOnly: "The first {max} are included.",
|
|
534
|
+
selectThread: "Select {ref}",
|
|
535
|
+
copiedForAgent: "Copied. Paste it into your AI coding agent.",
|
|
536
|
+
delete: "Delete",
|
|
537
|
+
edit: "Edit",
|
|
538
|
+
edited: "edited",
|
|
539
|
+
save: "Save",
|
|
540
|
+
saving: "Saving…",
|
|
541
|
+
mute: "Turn off notifications",
|
|
542
|
+
unmute: "Turn on notifications",
|
|
543
|
+
muted: "You won't get emails about {ref} anymore.",
|
|
544
|
+
followed: "We'll email you about {ref} again.",
|
|
545
|
+
unassigned: "Unassigned",
|
|
546
|
+
readOnly: "Feedback is read-only right now because your team's subscription has ended. You can still read everything.",
|
|
547
|
+
readOnlyGuest: "New feedback is paused on this site right now. You can still read everything.",
|
|
548
|
+
paused: "Feedback is paused on this site right now. Check back later.",
|
|
549
|
+
offline: "You're offline. We'll keep your draft until you're back.",
|
|
550
|
+
offlineSend: "You're offline. Your comment is saved here; send it when you're back online.",
|
|
551
|
+
errorGeneric: "That didn't work. Check your connection and try again.",
|
|
552
|
+
loadFailed: "We couldn't load the feedback. Check your connection and try again.",
|
|
553
|
+
sendFailed: "Your comment wasn't sent yet. It's still here, so you can try again.",
|
|
554
|
+
savedHere: "Your comment is saved on this device.",
|
|
555
|
+
retry: "Try again",
|
|
556
|
+
loadingThread: "Loading the conversation…",
|
|
557
|
+
readOnlyReply: "You can read this conversation, but replies are turned off right now.",
|
|
558
|
+
noReplyAccess: "You can read this feedback, but you don't have permission to reply.",
|
|
559
|
+
notOnPage: "Not found on this page",
|
|
560
|
+
more: "More",
|
|
561
|
+
allStatuses: "All",
|
|
562
|
+
statusFilter: "Status",
|
|
563
|
+
markAllRead: "Mark all as read",
|
|
564
|
+
messageCount: "{n} messages",
|
|
565
|
+
messageCount_one: "{n} message",
|
|
566
|
+
kind_mention: "{actor} mentioned you",
|
|
567
|
+
kind_reply: "{actor} replied",
|
|
568
|
+
kind_assigned: "{actor} assigned you",
|
|
569
|
+
kind_ready_for_review: "{actor} asked you to check a fix",
|
|
570
|
+
kind_reopened: "{actor} reopened",
|
|
571
|
+
kind_resolved: "{actor} resolved",
|
|
572
|
+
kind_closed: "{actor} closed",
|
|
573
|
+
kind_new_feedback: "{actor} left feedback",
|
|
574
|
+
kind_due_soon: "{actor} reminds you this is due soon",
|
|
575
|
+
kind_overdue: "{actor} reminds you this is overdue",
|
|
576
|
+
kind_agent_request: "{actor} wants your approval",
|
|
577
|
+
personName: "{name}",
|
|
578
|
+
branchFilter: "Which version of the site to show",
|
|
579
|
+
thisBranch: "This version ({branch})",
|
|
580
|
+
allBranches: "All versions",
|
|
581
|
+
onBranch: "on version {branch}",
|
|
582
|
+
leftOnBranch: "Left on version {branch}{commit}",
|
|
583
|
+
welcomeTitle: "Leave feedback on {project}",
|
|
584
|
+
welcomeBody: "Click Comment, then click the spot that should change. No account needed.",
|
|
585
|
+
welcomeBodyTouch: "Tap Comment, then tap the spot that should change. No account needed.",
|
|
586
|
+
gotIt: "Got it",
|
|
587
|
+
justNow: "just now",
|
|
588
|
+
loadingEarlier: "Loading…",
|
|
589
|
+
reactWith: "React with {emoji}",
|
|
590
|
+
shortcutsTitle: "Keyboard shortcuts",
|
|
591
|
+
shortcutComment: "Comment on something on the page",
|
|
592
|
+
shortcutNext: "Go to the next or previous comment",
|
|
593
|
+
shortcutResolve: "Resolve the open comment",
|
|
594
|
+
shortcutClose: "Close or go back",
|
|
595
|
+
shortcutSend: "Send what you wrote",
|
|
596
|
+
shortcutToggle: "Open or close the inbox (also brings back a hidden CommentKit)",
|
|
597
|
+
shortcutHelp: "Show this list",
|
|
598
|
+
replyDeleted: "Reply deleted",
|
|
599
|
+
peopleHere: "{n} people here",
|
|
600
|
+
peopleHere_one: "{n} person here",
|
|
601
|
+
markupTextAdd: "Add note",
|
|
602
|
+
includeDiagnostics: "Include technical details to help the developer",
|
|
603
|
+
filters: "Filters",
|
|
604
|
+
assignedToMe: "Assigned to me",
|
|
605
|
+
assigneeFilter: "Assigned to",
|
|
606
|
+
anyone: "Anyone",
|
|
607
|
+
labelFilter: "Label",
|
|
608
|
+
anyLabel: "Any label",
|
|
609
|
+
fileNotAllowed: "{name} can't be attached. You can attach images, PDFs, text, video and Office files.",
|
|
610
|
+
fileTooBig: "{name} is too big to attach. The limit is {size}.",
|
|
611
|
+
tooManyFiles: "You can attach up to {n} files.",
|
|
612
|
+
tooManyFiles_one: "You can attach up to {n} file.",
|
|
613
|
+
removeFile: "Remove {name}",
|
|
614
|
+
threadNotFound: "This feedback was deleted, or you no longer have access to it.",
|
|
615
|
+
readOnlyShort: "Read-only: you can read feedback, but not add to it right now.",
|
|
616
|
+
guestExplain: "We'll email you a 6-digit code. Your comment is published as soon as you enter the code.",
|
|
617
|
+
guestName: "Your name",
|
|
618
|
+
guestEmail: "Your email",
|
|
619
|
+
guestIntro: "Your name and email, so the team can reply. No account needed.",
|
|
620
|
+
guestPrivacy: "Your name, email and comments go to the team that runs this website, and to CommentKit, which runs this comment tool for them.",
|
|
621
|
+
guestPrivacyLink: "Privacy notice",
|
|
622
|
+
guestNameMissing: "Add your name so the team knows who wrote this.",
|
|
623
|
+
guestEmailInvalid: "Check your email address, for example name@company.com.",
|
|
624
|
+
shareExpired: "This client link has expired. Ask the team for a new one.",
|
|
625
|
+
verifyTitle: "Check your email",
|
|
626
|
+
verifyBody: "Enter the 6-digit code to publish your comment. We sent it to {email}.",
|
|
627
|
+
verifyCode: "6-digit code",
|
|
628
|
+
verifyPublish: "Publish comment",
|
|
629
|
+
verifyResend: "Send a new code",
|
|
630
|
+
verifyResent: "We sent a new code. It can take a minute to arrive.",
|
|
631
|
+
verifyWait: "Wait a minute before asking for another code.",
|
|
632
|
+
verifyWrong: "That code isn't right. Check the email, or send a new code.",
|
|
633
|
+
verifyDifferent: "Use a different email",
|
|
634
|
+
verifyExpired: "This code can no longer be used. Your comment is still saved on this device.",
|
|
635
|
+
verifyLinkExpired: "This client link has expired. Ask the person who sent it for a new one. Your comment is saved on this device.",
|
|
636
|
+
verifyRemoved: "The team removed your access to this site. Ask them to add you again.",
|
|
637
|
+
writeAgain: "Write it again",
|
|
638
|
+
pendingNote: "Your comment is waiting for the code we emailed to {email}.",
|
|
639
|
+
enterCode: "Enter code",
|
|
640
|
+
feedbackRef: "Feedback {ref}",
|
|
641
|
+
networkError: "Couldn't reach CommentKit. Check your connection and try again.",
|
|
642
|
+
serverError: "Something went wrong on CommentKit's side. Try again in a moment.",
|
|
643
|
+
noAccess: "You don't have access to feedback on this site. Ask the team to invite you again.",
|
|
644
|
+
originNotAllowed: "Feedback can't be sent from this web address yet. Ask the team to add it to the project.",
|
|
645
|
+
forbidden: "You don't have permission to do that.",
|
|
646
|
+
tooFast: "That was a lot at once. Wait a moment, then try again.",
|
|
647
|
+
sentWithoutScreenshot: "Sent, but without the screenshot: it couldn't be uploaded.",
|
|
648
|
+
sentWithoutFiles: "Sent, but some files couldn't be attached. You can add them in a reply.",
|
|
649
|
+
replyFailed: "Your reply wasn't sent yet. It's still here, so you can try again.",
|
|
650
|
+
taskDetails: "Task details",
|
|
651
|
+
priority: "Priority",
|
|
652
|
+
priority_none: "No priority",
|
|
653
|
+
priority_low: "Low",
|
|
654
|
+
priority_medium: "Medium",
|
|
655
|
+
priority_high: "High",
|
|
656
|
+
priority_urgent: "Urgent",
|
|
657
|
+
dueDate: "Due date",
|
|
658
|
+
dueOn: "Due {date}",
|
|
659
|
+
labels: "Labels",
|
|
660
|
+
noLabels: "No labels",
|
|
661
|
+
mentionList: "People you can mention",
|
|
662
|
+
formatting: "Formatting",
|
|
663
|
+
formatBold: "Bold",
|
|
664
|
+
formatItalic: "Italic",
|
|
665
|
+
formatStrike: "Strikethrough",
|
|
666
|
+
formatCode: "Code",
|
|
667
|
+
reopenedToast: "{ref} is open again.",
|
|
668
|
+
editedToast: "Comment updated.",
|
|
669
|
+
editConflict: "Someone changed this a moment ago — refreshed.",
|
|
670
|
+
threadDeleted: "{ref} deleted.",
|
|
671
|
+
detailCreated: "Left",
|
|
672
|
+
detailResolved: "Resolved",
|
|
673
|
+
detailPage: "Page",
|
|
674
|
+
detailBrowser: "Browser",
|
|
675
|
+
detailWindow: "Window",
|
|
676
|
+
details: "Info",
|
|
677
|
+
quotedText: "Selected text",
|
|
678
|
+
replyTo: "Reply to {name}",
|
|
679
|
+
quoteReply: "Reply with a quote",
|
|
680
|
+
copyText: "Copy text",
|
|
681
|
+
copiedText: "Copied the message.",
|
|
682
|
+
reactionLabel_one: "{n} reaction: {emoji}",
|
|
683
|
+
reactionLabel: "{n} reactions: {emoji}",
|
|
684
|
+
youReacted: "including you",
|
|
685
|
+
noReplies: "No replies yet. Be the first to respond.",
|
|
686
|
+
jumpToLatest: "Jump to latest",
|
|
687
|
+
replyToReopen: "Reply to reopen…",
|
|
688
|
+
quoteCancel: "Don't quote this message",
|
|
689
|
+
hideWidget: "Hide CommentKit",
|
|
690
|
+
hideWidgetHint: "{keys} brings it back",
|
|
691
|
+
shortcutNewLine: "New line",
|
|
692
|
+
shortcutFormat: "Bold, italic, code (Shift + X: strikethrough)",
|
|
693
|
+
countOf: "{n} of {total}",
|
|
694
|
+
results_one: "{n} result",
|
|
695
|
+
results: "{n} results",
|
|
696
|
+
resultsMore: "{n}+ results",
|
|
697
|
+
showMore: "Show more",
|
|
698
|
+
livePaused: "Live updates paused. New feedback shows up when you reconnect or reload.",
|
|
699
|
+
clearSearch: "Clear search",
|
|
700
|
+
filtersOn_one: "{n} filter on",
|
|
701
|
+
filtersOn: "{n} filters on",
|
|
702
|
+
resetFilters: "Reset",
|
|
703
|
+
sortBy: "Sort by",
|
|
704
|
+
sortRecent: "Latest activity",
|
|
705
|
+
sortOldest: "Oldest first",
|
|
706
|
+
sortPriority: "Highest priority",
|
|
707
|
+
pinMoved: "{ref} moved here.",
|
|
708
|
+
pinMovable: "pin, drag to move",
|
|
709
|
+
assign: "Assign",
|
|
710
|
+
modeBarNoText: "Click to comment · Drag to mark an area · Esc to stop",
|
|
711
|
+
modeBarTouchNoText: "Tap anything to comment · Scroll as usual",
|
|
712
|
+
verifyResendIn: "New code in {n}s",
|
|
713
|
+
tool_line: "Line",
|
|
714
|
+
tool_ellipse: "Circle",
|
|
715
|
+
color_yellow: "Yellow",
|
|
716
|
+
color_purple: "Purple",
|
|
717
|
+
color_pink: "Pink",
|
|
718
|
+
markupTools: "Tools",
|
|
719
|
+
markupColors: "Colours",
|
|
720
|
+
markupSize: "Line thickness",
|
|
721
|
+
markupHistory: "History",
|
|
722
|
+
redo: "Redo",
|
|
723
|
+
clearAll: "Clear all",
|
|
724
|
+
imageViewer: "Image viewer",
|
|
725
|
+
download: "Download",
|
|
726
|
+
openInTab: "Open in a new tab",
|
|
727
|
+
previousImage: "Previous image",
|
|
728
|
+
nextImage: "Next image",
|
|
729
|
+
attachments: "Attachments",
|
|
730
|
+
openImage: "Open {name}",
|
|
731
|
+
uploading: "Uploading {name}",
|
|
732
|
+
retryUpload: "Try uploading {name} again",
|
|
733
|
+
uploadFailedShort: "This file didn't upload.",
|
|
734
|
+
moreReactions: "More reactions",
|
|
735
|
+
settings: "Settings",
|
|
736
|
+
account: "Your account",
|
|
737
|
+
appearance: "Appearance",
|
|
738
|
+
appearanceHint: "Only on this device.",
|
|
739
|
+
themeSystem: "System",
|
|
740
|
+
themeLight: "Light",
|
|
741
|
+
themeDark: "Dark",
|
|
742
|
+
openDashboard: "Open the dashboard",
|
|
743
|
+
role_admin: "Admin",
|
|
744
|
+
role_member: "Member",
|
|
745
|
+
role_reviewer: "Reviewer",
|
|
746
|
+
role_guest: "Guest",
|
|
747
|
+
checklist: "Checklist",
|
|
748
|
+
description: "Description",
|
|
749
|
+
checklistProgress: "{n} of {total} done",
|
|
750
|
+
checklistAdd: "Add an item and press Enter",
|
|
751
|
+
removeItem: "Remove {item}",
|
|
752
|
+
addChecklist: "Add a checklist",
|
|
753
|
+
checklistShort_one: "{done}/{n} done",
|
|
754
|
+
checklistShort: "{done}/{n} done",
|
|
755
|
+
teamHere: "Here now: {names}",
|
|
756
|
+
otherBranch: "Another version…",
|
|
757
|
+
createdByMe: "Created by me",
|
|
758
|
+
anyPriority: "Any priority",
|
|
759
|
+
priorityImportant: "Urgent and high",
|
|
760
|
+
team: "Team",
|
|
761
|
+
online: "Online now",
|
|
762
|
+
you: "you",
|
|
763
|
+
role_owner: "Owner",
|
|
764
|
+
storage: "Storage",
|
|
765
|
+
storageUsed: "{used} of {limit} used for this project",
|
|
766
|
+
storageUsedOnly: "{used} used for this project",
|
|
767
|
+
backToList: "Back to the list",
|
|
768
|
+
previousThread: "Previous",
|
|
769
|
+
nextThread: "Next",
|
|
770
|
+
showOnPage: "Show on the page",
|
|
771
|
+
doubleClickHint: "Double-click outside the inbox to close it, or press Esc.",
|
|
772
|
+
spot_element: "On an element",
|
|
773
|
+
spot_region: "On an area",
|
|
774
|
+
spot_text: "On selected text",
|
|
775
|
+
spot_page: "On the whole page",
|
|
776
|
+
resolveRef: "Resolve {ref}",
|
|
777
|
+
copyLinkRef: "Copy link to {ref}",
|
|
778
|
+
moveToolbar: "Move the toolbar (drag, or use the arrow keys)",
|
|
779
|
+
adjustStyle: "Adjust style",
|
|
780
|
+
adjustStyleHint: "Try new values: they show on the page while this is open. Nothing on the website changes.",
|
|
781
|
+
styleChanges: "Style changes",
|
|
782
|
+
styleSuggested: "Suggested style changes",
|
|
783
|
+
stylePreview: "Preview on page",
|
|
784
|
+
styleRemoved: "removed",
|
|
785
|
+
styleNotSet: "not set",
|
|
786
|
+
styleRemoveValue: "Remove {property}",
|
|
787
|
+
styleReset: "Undo the change to {property}",
|
|
788
|
+
styleRemoveChange: "Remove change: {change}",
|
|
789
|
+
styleIncrease: "Increase {property}",
|
|
790
|
+
styleDecrease: "Decrease {property}",
|
|
791
|
+
styleInvalid: "Use a plain CSS value, such as 16px, bold or #1a73e8.",
|
|
792
|
+
styleDone: "Done",
|
|
793
|
+
stylePrevious: "Previous value for {property}",
|
|
794
|
+
styleNext: "Next value for {property}",
|
|
795
|
+
styleEdit: "Edit the suggested style changes"
|
|
796
|
+
}, we = [
|
|
797
|
+
"en",
|
|
798
|
+
"es",
|
|
799
|
+
"fr",
|
|
800
|
+
"de",
|
|
801
|
+
"pt-BR",
|
|
802
|
+
"it",
|
|
803
|
+
"nl",
|
|
804
|
+
"ja",
|
|
805
|
+
"zh-CN",
|
|
806
|
+
"hi",
|
|
807
|
+
"ar"
|
|
808
|
+
], Te = {
|
|
809
|
+
es: () => import("./es-DXgkjDCG.js"),
|
|
810
|
+
fr: () => import("./fr-IjJaUbWh.js"),
|
|
811
|
+
de: () => import("./de-CcPi8xdC.js"),
|
|
812
|
+
"pt-BR": () => import("./pt-BR-CjBolC5g.js"),
|
|
813
|
+
it: () => import("./it-DKiSCkiD.js"),
|
|
814
|
+
nl: () => import("./nl-CJw3VUQ5.js"),
|
|
815
|
+
ja: () => import("./ja-BI1WagDg.js"),
|
|
816
|
+
"zh-CN": () => import("./zh-CN-BrZGx2S0.js"),
|
|
817
|
+
hi: () => import("./hi-BhKQK2MU.js"),
|
|
818
|
+
ar: () => import("./ar-BQ9K9Oqf.js")
|
|
819
|
+
}, Y = /^(ar|he|iw|fa|ur|ps|yi|ckb|sd|ug|dv)(-|$)/i, X = "en", Z = J, Q = Promise.resolve();
|
|
820
|
+
function Ee(e) {
|
|
821
|
+
let t = (e ?? "").trim().replace(/_/g, "-").toLowerCase();
|
|
822
|
+
if (!/^[a-z]{2,3}(-[a-z0-9]{1,8})*$/.test(t)) return null;
|
|
823
|
+
let n = we.find((e) => e.toLowerCase() === t);
|
|
824
|
+
if (n) return n;
|
|
825
|
+
let r = t.split("-")[0];
|
|
826
|
+
return we.find((e) => e.toLowerCase().split("-")[0] === r) ?? null;
|
|
827
|
+
}
|
|
828
|
+
function De(e) {
|
|
829
|
+
let t = [e];
|
|
830
|
+
typeof document < "u" && t.push(document.documentElement.lang), typeof navigator < "u" && t.push(...navigator.languages ?? [], navigator.language);
|
|
831
|
+
for (let e of t) {
|
|
832
|
+
let t = Ee(e);
|
|
833
|
+
if (t) return t;
|
|
834
|
+
}
|
|
835
|
+
return "en";
|
|
836
|
+
}
|
|
837
|
+
function Oe(e) {
|
|
838
|
+
let t = De(e);
|
|
839
|
+
return X = t, t === "en" ? (Z = J, Q = Promise.resolve(), Q) : (Q = Te[t]().then((e) => {
|
|
840
|
+
X === t && (Z = e.default);
|
|
841
|
+
}, () => {
|
|
842
|
+
X === t && (X = "en", Z = J);
|
|
843
|
+
}), Q);
|
|
844
|
+
}
|
|
845
|
+
function ke() {
|
|
846
|
+
return X;
|
|
847
|
+
}
|
|
848
|
+
function Ae(e, t) {
|
|
849
|
+
let n = Y.test(X);
|
|
850
|
+
return e.replace(/\{(\w+)\}/g, (e, r) => {
|
|
851
|
+
let i = String(t[r] ?? "");
|
|
852
|
+
return n && i ? `\u2068${i}\u2069` : i;
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
function $(e, t = {}) {
|
|
856
|
+
return Ae(Z[e] ?? J[e], t);
|
|
857
|
+
}
|
|
858
|
+
function je(e, t) {
|
|
859
|
+
let [n = "", r = ""] = (Z[e] ?? J[e]).split(`{${t}}`);
|
|
860
|
+
return [n, r];
|
|
861
|
+
}
|
|
862
|
+
function Me(e, t, n = {}) {
|
|
863
|
+
let r = "other", i = String(t);
|
|
864
|
+
try {
|
|
865
|
+
r = new Intl.PluralRules(X).select(t), i = new Intl.NumberFormat(X).format(t);
|
|
866
|
+
} catch {}
|
|
867
|
+
let a = J;
|
|
868
|
+
return Ae(Z[`${e}_${r}`] ?? Z[e] ?? a[`${e}_${r}`] ?? J[e], {
|
|
869
|
+
...n,
|
|
870
|
+
n: i
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
function Ne() {
|
|
874
|
+
if (Y.test(X)) return "rtl";
|
|
875
|
+
let e = document.documentElement.dir || document.body?.dir;
|
|
876
|
+
return e === "rtl" || e === "ltr" ? e : Y.test(document.documentElement.lang || "") ? "rtl" : "ltr";
|
|
877
|
+
}
|
|
878
|
+
function Pe(e) {
|
|
879
|
+
let t = e ? new Date(e).getTime() : NaN;
|
|
880
|
+
if (!Number.isFinite(t)) return "";
|
|
881
|
+
try {
|
|
882
|
+
return new Date(t).toLocaleString(X, {
|
|
883
|
+
dateStyle: "medium",
|
|
884
|
+
timeStyle: "short"
|
|
885
|
+
});
|
|
886
|
+
} catch {
|
|
887
|
+
return new Date(t).toLocaleString();
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
function Fe(e, t = Date.now()) {
|
|
891
|
+
let n = new Date(e).getTime();
|
|
892
|
+
if (!Number.isFinite(n)) return "";
|
|
893
|
+
let r = Math.max(0, (t - n) / 1e3);
|
|
894
|
+
if (r < 60) return $("justNow");
|
|
895
|
+
if (r >= 2592e3) return new Date(n).toLocaleDateString(X);
|
|
896
|
+
let [i, a] = r < 3600 ? ["minute", 60] : r < 86400 ? ["hour", 3600] : ["day", 86400], o = Math.floor(r / a);
|
|
897
|
+
try {
|
|
898
|
+
return new Intl.RelativeTimeFormat(X, { numeric: "auto" }).format(-o, i);
|
|
899
|
+
} catch {
|
|
900
|
+
return `${o} ${i}`;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
//#endregion
|
|
904
|
+
export { P as _, Fe as a, Ne as c, me as d, he as f, y as g, ge as h, Me as i, Ce as l, de as m, ke as n, Oe as o, W as p, Pe as r, $ as s, je as t, pe as u, v };
|