pleasenobugs 0.3.0 → 0.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/README.md +85 -53
- package/dist/chunks/client-C6NaBcR4.js +363 -0
- package/dist/chunks/demo-pEOxDlaa.js +240 -0
- package/dist/chunks/index-DNGYeoDU.js +3179 -0
- package/dist/client.js +7 -326
- package/dist/index.js +6 -6
- package/dist/pleasenobugs.iife.js +2 -2
- package/dist/types/client.d.ts +13 -3
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/demo.d.ts +4 -2
- package/dist/types/demo.d.ts.map +1 -1
- package/dist/types/element.d.ts +12 -6
- package/dist/types/element.d.ts.map +1 -1
- package/dist/types/i18n.d.ts +41 -6
- package/dist/types/i18n.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/prefs.d.ts +10 -0
- package/dist/types/prefs.d.ts.map +1 -0
- package/dist/types/readonly.d.ts +3 -2
- package/dist/types/readonly.d.ts.map +1 -1
- package/dist/types/signer.d.ts +7 -0
- package/dist/types/signer.d.ts.map +1 -1
- package/dist/types/ui/App.d.ts +7 -2
- package/dist/types/ui/App.d.ts.map +1 -1
- package/dist/types/ui/Compose.d.ts +7 -9
- package/dist/types/ui/Compose.d.ts.map +1 -1
- package/dist/types/ui/Face.d.ts +17 -0
- package/dist/types/ui/Face.d.ts.map +1 -0
- package/dist/types/ui/PostCard.d.ts +6 -3
- package/dist/types/ui/PostCard.d.ts.map +1 -1
- package/dist/types/ui/Settings.d.ts +38 -0
- package/dist/types/ui/Settings.d.ts.map +1 -0
- package/dist/types/ui/Sheets.d.ts +49 -7
- package/dist/types/ui/Sheets.d.ts.map +1 -1
- package/dist/types/ui/icons.d.ts +11 -0
- package/dist/types/ui/icons.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunks/demo-CL3oK-zC.js +0 -212
- package/dist/chunks/index--SJW3aE-.js +0 -2749
|
@@ -0,0 +1,3179 @@
|
|
|
1
|
+
var oi = Object.defineProperty;
|
|
2
|
+
var St = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
|
+
};
|
|
5
|
+
var si = (e, n, a) => n in e ? oi(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a;
|
|
6
|
+
var Lt = (e, n, a) => si(e, typeof n != "symbol" ? n + "" : n, a), Un = (e, n, a) => n.has(e) || St("Cannot " + a);
|
|
7
|
+
var z = (e, n, a) => (Un(e, n, "read from private field"), a ? a.call(e) : n.get(e)), Q = (e, n, a) => n.has(e) ? St("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, a), R = (e, n, a, i) => (Un(e, n, "write to private field"), i ? i.call(e, a) : n.set(e, a), a), oe = (e, n, a) => (Un(e, n, "access private method"), a);
|
|
8
|
+
import { i as Qe, c as li, s as di, a as Mt } from "./client-C6NaBcR4.js";
|
|
9
|
+
const no = Object.freeze({
|
|
10
|
+
perDay: 5,
|
|
11
|
+
/** One field, and a short one: a wish needs more room than a title and
|
|
12
|
+
* still less than an essay. */
|
|
13
|
+
textMax: 200,
|
|
14
|
+
/** Longer than a post, because the reply is the one that has to explain. */
|
|
15
|
+
replyMax: 300,
|
|
16
|
+
kinds: ["bug", "idea", "review"],
|
|
17
|
+
screenshots: "board",
|
|
18
|
+
approve: !1
|
|
19
|
+
}), Jt = 24, ci = ["bug", "idea", "review"], pi = 1e6;
|
|
20
|
+
function bi(e) {
|
|
21
|
+
return e === "bug" || e === "idea";
|
|
22
|
+
}
|
|
23
|
+
const ui = 80, hi = 300, nt = 24, tt = 300;
|
|
24
|
+
function at(e) {
|
|
25
|
+
if (typeof e != "string")
|
|
26
|
+
return null;
|
|
27
|
+
const n = e.trim();
|
|
28
|
+
return n ? n.length <= nt && /^[0-9A-Za-z][0-9A-Za-z.+_-]*$/.test(n) ? n : null : "";
|
|
29
|
+
}
|
|
30
|
+
const fi = {
|
|
31
|
+
"github.com": "github.com",
|
|
32
|
+
"www.github.com": "github.com",
|
|
33
|
+
"gitlab.com": "gitlab.com",
|
|
34
|
+
"www.gitlab.com": "gitlab.com"
|
|
35
|
+
};
|
|
36
|
+
function He(e) {
|
|
37
|
+
if (typeof e != "string")
|
|
38
|
+
return null;
|
|
39
|
+
const n = e.trim();
|
|
40
|
+
if (!n)
|
|
41
|
+
return "";
|
|
42
|
+
if (n.length > tt)
|
|
43
|
+
return null;
|
|
44
|
+
let a;
|
|
45
|
+
try {
|
|
46
|
+
a = new URL(/^https?:\/\//i.test(n) ? n : `https://${n}`);
|
|
47
|
+
} catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
if (a.protocol !== "https:" && a.protocol !== "http:")
|
|
51
|
+
return null;
|
|
52
|
+
const i = fi[a.hostname];
|
|
53
|
+
return !i || a.username || a.password || a.port || a.pathname.length < 2 ? null : `https://${i}${a.pathname}${a.search}${a.hash}`;
|
|
54
|
+
}
|
|
55
|
+
function Qt(e) {
|
|
56
|
+
const n = He(e);
|
|
57
|
+
return n ? n.startsWith("https://gitlab.com/") ? "GitLab" : "GitHub" : null;
|
|
58
|
+
}
|
|
59
|
+
function to(e) {
|
|
60
|
+
if (!e || typeof e != "object" || Array.isArray(e))
|
|
61
|
+
return null;
|
|
62
|
+
const { version: n, link: a } = e, i = n === void 0 ? "" : at(n), o = a === void 0 ? "" : He(a);
|
|
63
|
+
return i === null || o === null ? null : { ...i ? { version: i } : {}, ...o ? { link: o } : {} };
|
|
64
|
+
}
|
|
65
|
+
function gi(e) {
|
|
66
|
+
return e === "bug" || e === "idea";
|
|
67
|
+
}
|
|
68
|
+
function gn(e) {
|
|
69
|
+
return e === "done" || e === "declined";
|
|
70
|
+
}
|
|
71
|
+
function on(e) {
|
|
72
|
+
return (e ?? []).filter((n) => !n.hidden);
|
|
73
|
+
}
|
|
74
|
+
function De(e) {
|
|
75
|
+
const n = on(e);
|
|
76
|
+
return n[n.length - 1];
|
|
77
|
+
}
|
|
78
|
+
function _i(e) {
|
|
79
|
+
return gi(e.kind) && !gn(e.status) && De(e.thread)?.from === "app";
|
|
80
|
+
}
|
|
81
|
+
function Wn(e) {
|
|
82
|
+
return De(e.thread)?.from === "author";
|
|
83
|
+
}
|
|
84
|
+
function ao(e) {
|
|
85
|
+
const n = on(e).filter((i) => i.from === "app"), a = n[n.length - 1];
|
|
86
|
+
return a ? { text: a.text, at: a.at } : void 0;
|
|
87
|
+
}
|
|
88
|
+
var mn, q, ea, ve, Tt, na, ta, Rn, bn, nn, aa, it, Yn, Zn, _n = {}, vn = [], vi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, wn = Array.isArray;
|
|
89
|
+
function _e(e, n) {
|
|
90
|
+
for (var a in n) e[a] = n[a];
|
|
91
|
+
return e;
|
|
92
|
+
}
|
|
93
|
+
function rt(e) {
|
|
94
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
95
|
+
}
|
|
96
|
+
function xi(e, n, a) {
|
|
97
|
+
var i, o, r, d = {};
|
|
98
|
+
for (r in n) r == "key" ? i = n[r] : r == "ref" ? o = n[r] : d[r] = n[r];
|
|
99
|
+
if (arguments.length > 2 && (d.children = arguments.length > 3 ? mn.call(arguments, 2) : a), typeof e == "function" && e.defaultProps != null) for (r in e.defaultProps) d[r] === void 0 && (d[r] = e.defaultProps[r]);
|
|
100
|
+
return un(e, d, i, o, null);
|
|
101
|
+
}
|
|
102
|
+
function un(e, n, a, i, o) {
|
|
103
|
+
var r = { type: e, props: n, key: a, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++ea, __i: -1, __u: 0 };
|
|
104
|
+
return o == null && q.vnode != null && q.vnode(r), r;
|
|
105
|
+
}
|
|
106
|
+
function F(e) {
|
|
107
|
+
return e.children;
|
|
108
|
+
}
|
|
109
|
+
function hn(e, n) {
|
|
110
|
+
this.props = e, this.context = n;
|
|
111
|
+
}
|
|
112
|
+
function Ce(e, n) {
|
|
113
|
+
if (n == null) return e.__ ? Ce(e.__, e.__i + 1) : null;
|
|
114
|
+
for (var a; n < e.__k.length; n++) if ((a = e.__k[n]) != null && a.__e != null) return a.__e;
|
|
115
|
+
return typeof e.type == "function" ? Ce(e) : null;
|
|
116
|
+
}
|
|
117
|
+
function mi(e) {
|
|
118
|
+
if (e.__P && e.__d) {
|
|
119
|
+
var n = e.__v, a = n.__e, i = [], o = [], r = _e({}, n);
|
|
120
|
+
r.__v = n.__v + 1, q.vnode && q.vnode(r), ot(e.__P, r, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [a] : null, i, a ?? Ce(n), !!(32 & n.__u), o), r.__v = n.__v, r.__.__k[r.__i] = r, la(i, r, o), n.__e = n.__ = null, r.__e != a && ia(r);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function ia(e) {
|
|
124
|
+
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(n) {
|
|
125
|
+
if (n != null && n.__e != null) return e.__e = e.__c.base = n.__e;
|
|
126
|
+
}), ia(e);
|
|
127
|
+
}
|
|
128
|
+
function At(e) {
|
|
129
|
+
(!e.__d && (e.__d = !0) && ve.push(e) && !xn.__r++ || Tt != q.debounceRendering) && ((Tt = q.debounceRendering) || na)(xn);
|
|
130
|
+
}
|
|
131
|
+
function xn() {
|
|
132
|
+
try {
|
|
133
|
+
for (var e, n = 1; ve.length; ) ve.length > n && ve.sort(ta), e = ve.shift(), n = ve.length, mi(e);
|
|
134
|
+
} finally {
|
|
135
|
+
ve.length = xn.__r = 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function ra(e, n, a, i, o, r, d, l, b, p, h) {
|
|
139
|
+
var f, c, g, v, w, _, x = i && i.__k || vn, m = n.length;
|
|
140
|
+
for (b = wi(a, n, x, b, m), f = 0; f < m; f++) (g = a.__k[f]) != null && (c = g.__i != -1 && x[g.__i] || _n, g.__i = f, _ = ot(e, g, c, o, r, d, l, b, p, h), v = g.__e, g.ref && c.ref != g.ref && (c.ref && st(c.ref, null, g), h.push(g.ref, g.__c || v, g)), w == null && v != null && (w = v), 4 & g.__u ? (b = oa(g, b, e), c.__e && (c.__e = null)) : typeof g.type == "function" && _ !== void 0 ? b = _ : v && (b = v.nextSibling), g.__u &= -7);
|
|
141
|
+
return a.__e = w, b;
|
|
142
|
+
}
|
|
143
|
+
function wi(e, n, a, i, o) {
|
|
144
|
+
var r, d, l, b, p, h = a.length, f = h, c = 0;
|
|
145
|
+
for (e.__k = new Array(o), r = 0; r < o; r++) (d = n[r]) != null && typeof d != "boolean" && typeof d != "function" ? (typeof d == "string" || typeof d == "number" || typeof d == "bigint" || d.constructor == String ? d = e.__k[r] = un(null, d, null, null, null) : wn(d) ? d = e.__k[r] = un(F, { children: d }, null, null, null) : d.constructor === void 0 && d.__b > 0 ? d = e.__k[r] = un(d.type, d.props, d.key, d.ref ? d.ref : null, d.__v) : e.__k[r] = d, b = r + c, d.__ = e, d.__b = e.__b + 1, l = null, (p = d.__i = ki(d, a, b, f)) != -1 && (f--, (l = a[p]) && (l.__u |= 2)), l == null || l.__v == null ? (p == -1 && (o > h ? c-- : o < h && c++), typeof d.type != "function" && (d.__u |= 4)) : p != b && (p == b - 1 ? c-- : p == b + 1 ? c++ : (p > b ? c-- : c++, d.__u |= 4))) : e.__k[r] = null;
|
|
146
|
+
if (f) for (r = 0; r < h; r++) (l = a[r]) != null && !(2 & l.__u) && (l.__e == i && (i = Ce(l)), ca(l, l));
|
|
147
|
+
return i;
|
|
148
|
+
}
|
|
149
|
+
function oa(e, n, a) {
|
|
150
|
+
var i, o;
|
|
151
|
+
if (typeof e.type == "function") {
|
|
152
|
+
for (i = e.__k, o = 0; i && o < i.length; o++) i[o] && (i[o].__ = e, n = oa(i[o], n, a));
|
|
153
|
+
return n;
|
|
154
|
+
}
|
|
155
|
+
e.__e != n && (n && e.type && !n.parentNode && (n = Ce(e)), n = a.insertBefore(e.__e, n || null));
|
|
156
|
+
do
|
|
157
|
+
n = n && n.nextSibling;
|
|
158
|
+
while (n != null && n.nodeType == 8);
|
|
159
|
+
return n;
|
|
160
|
+
}
|
|
161
|
+
function ki(e, n, a, i) {
|
|
162
|
+
var o, r, d, l = e.key, b = e.type, p = n[a], h = p != null && (2 & p.__u) == 0;
|
|
163
|
+
if (p === null && l == null || h && l == p.key && b == p.type) return a;
|
|
164
|
+
if (i > (h ? 1 : 0)) {
|
|
165
|
+
for (o = a - 1, r = a + 1; o >= 0 || r < n.length; ) if ((p = n[d = o >= 0 ? o-- : r++]) != null && !(2 & p.__u) && l == p.key && b == p.type) return d;
|
|
166
|
+
}
|
|
167
|
+
return -1;
|
|
168
|
+
}
|
|
169
|
+
function zt(e, n, a) {
|
|
170
|
+
n[0] == "-" ? e.setProperty(n, a ?? "") : e[n] = a == null ? "" : typeof a != "number" || vi.test(n) ? a : a + "px";
|
|
171
|
+
}
|
|
172
|
+
function cn(e, n, a, i, o) {
|
|
173
|
+
var r, d;
|
|
174
|
+
e: if (n == "style") if (typeof a == "string") e.style.cssText = a;
|
|
175
|
+
else {
|
|
176
|
+
if (typeof i == "string" && (e.style.cssText = i = ""), i) for (n in i) a && n in a || zt(e.style, n, "");
|
|
177
|
+
if (a) for (n in a) i && a[n] == i[n] || zt(e.style, n, a[n]);
|
|
178
|
+
}
|
|
179
|
+
else if (n[0] == "o" && n[1] == "n") r = n != (n = n.replace(aa, "$1")), d = n.toLowerCase(), n = d in e || n == "onFocusOut" || n == "onFocusIn" ? d.slice(2) : n.slice(2), e.l || (e.l = {}), e.l[n + r] = a, a ? i ? a[nn] = i[nn] : (a[nn] = it, e.addEventListener(n, r ? Zn : Yn, r)) : e.removeEventListener(n, r ? Zn : Yn, r);
|
|
180
|
+
else {
|
|
181
|
+
if (o == "http://www.w3.org/2000/svg") n = n.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
182
|
+
else if (n != "width" && n != "height" && n != "href" && n != "list" && n != "form" && n != "tabIndex" && n != "download" && n != "rowSpan" && n != "colSpan" && n != "role" && n != "popover" && n in e) try {
|
|
183
|
+
e[n] = a ?? "";
|
|
184
|
+
break e;
|
|
185
|
+
} catch {
|
|
186
|
+
}
|
|
187
|
+
typeof a == "function" || (a == null || a === !1 && n[4] != "-" ? e.removeAttribute(n) : e.setAttribute(n, n == "popover" && a == 1 ? "" : a));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
function Ot(e) {
|
|
191
|
+
return function(n) {
|
|
192
|
+
if (this.l) {
|
|
193
|
+
var a = this.l[n.type + e];
|
|
194
|
+
if (n[bn] == null) n[bn] = it++;
|
|
195
|
+
else if (n[bn] < a[nn]) return;
|
|
196
|
+
return a(q.event ? q.event(n) : n);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function ot(e, n, a, i, o, r, d, l, b, p) {
|
|
201
|
+
var h, f, c, g, v, w, _, x, m, y, S, M, O, L, D, Y, I = n.type;
|
|
202
|
+
if (n.constructor !== void 0) return null;
|
|
203
|
+
128 & a.__u && (b = !!(32 & a.__u), r = [l = n.__e = a.__e]), (h = q.__b) && h(n);
|
|
204
|
+
e: if (typeof I == "function") {
|
|
205
|
+
f = d.length;
|
|
206
|
+
try {
|
|
207
|
+
if (m = n.props, y = I.prototype && I.prototype.render, S = (h = I.contextType) && i[h.__c], M = h ? S ? S.props.value : h.__ : i, a.__c ? x = (c = n.__c = a.__c).__ = c.__E : (y ? n.__c = c = new I(m, M) : (n.__c = c = new hn(m, M), c.constructor = I, c.render = Ci), S && S.sub(c), c.state || (c.state = {}), c.__n = i, g = c.__d = !0, c.__h = [], c._sb = []), y && c.__s == null && (c.__s = c.state), y && I.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = _e({}, c.__s)), _e(c.__s, I.getDerivedStateFromProps(m, c.__s))), v = c.props, w = c.state, c.__v = n, g) y && I.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), y && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
208
|
+
else {
|
|
209
|
+
if (y && I.getDerivedStateFromProps == null && m !== v && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, M), n.__v == a.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, M) === !1) {
|
|
210
|
+
n.__v != a.__v && (c.props = m, c.state = c.__s, c.__d = !1), n.__e = a.__e, n.__k = a.__k, n.__k.some(function(Z) {
|
|
211
|
+
Z && (Z.__ = n);
|
|
212
|
+
}), vn.push.apply(c.__h, c._sb), c._sb = [], c.__h.length && d.push(c), l = Ce(a);
|
|
213
|
+
break e;
|
|
214
|
+
}
|
|
215
|
+
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, M), y && c.componentDidUpdate != null && c.__h.push(function() {
|
|
216
|
+
c.componentDidUpdate(v, w, _);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
if (c.context = M, c.props = m, c.__P = e, c.__e = !1, O = q.__r, L = 0, y) c.state = c.__s, c.__d = !1, O && O(n), h = c.render(c.props, c.state, c.context), vn.push.apply(c.__h, c._sb), c._sb = [];
|
|
220
|
+
else do
|
|
221
|
+
c.__d = !1, O && O(n), h = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
222
|
+
while (c.__d && ++L < 25);
|
|
223
|
+
c.state = c.__s, c.getChildContext != null && (i = _e(_e({}, i), c.getChildContext())), y && !g && c.getSnapshotBeforeUpdate != null && (_ = c.getSnapshotBeforeUpdate(v, w)), D = h != null && h.type === F && h.key == null ? da(h.props.children) : h, l = ra(e, wn(D) ? D : [D], n, a, i, o, r, d, l, b, p), c.base = n.__e, n.__u &= -161, c.__h.length && d.push(c), x && (c.__E = c.__ = null);
|
|
224
|
+
} catch (Z) {
|
|
225
|
+
if (d.length = f, n.__v = null, b || r != null) {
|
|
226
|
+
if (Z.then) {
|
|
227
|
+
for (n.__u |= b ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
|
|
228
|
+
r != null && (r[r.indexOf(l)] = null), n.__e = l;
|
|
229
|
+
} else if (r != null) for (Y = r.length; Y--; ) rt(r[Y]);
|
|
230
|
+
} else n.__e = a.__e;
|
|
231
|
+
n.__k == null && (n.__k = a.__k || []), Z.then || sa(n), q.__e(Z, n, a);
|
|
232
|
+
}
|
|
233
|
+
} else r == null && n.__v == a.__v ? (n.__k = a.__k, n.__e = a.__e) : l = n.__e = yi(a.__e, n, a, i, o, r, d, b, p);
|
|
234
|
+
return (h = q.diffed) && h(n), 128 & n.__u ? void 0 : l;
|
|
235
|
+
}
|
|
236
|
+
function sa(e) {
|
|
237
|
+
e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(sa));
|
|
238
|
+
}
|
|
239
|
+
function la(e, n, a) {
|
|
240
|
+
for (var i = 0; i < a.length; i++) st(a[i], a[++i], a[++i]);
|
|
241
|
+
q.__c && q.__c(n, e), e.some(function(o) {
|
|
242
|
+
try {
|
|
243
|
+
e = o.__h, o.__h = [], e.some(function(r) {
|
|
244
|
+
r.call(o);
|
|
245
|
+
});
|
|
246
|
+
} catch (r) {
|
|
247
|
+
q.__e(r, o.__v);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
function da(e) {
|
|
252
|
+
return typeof e != "object" || e == null || e.__b > 0 ? e : wn(e) ? e.map(da) : e.constructor !== void 0 ? null : _e({}, e);
|
|
253
|
+
}
|
|
254
|
+
function yi(e, n, a, i, o, r, d, l, b) {
|
|
255
|
+
var p, h, f, c, g, v, w, _ = a.props || _n, x = n.props, m = n.type;
|
|
256
|
+
if (m == "svg" ? o = "http://www.w3.org/2000/svg" : m == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), r != null) {
|
|
257
|
+
for (p = 0; p < r.length; p++) if ((g = r[p]) && "setAttribute" in g == !!m && (m ? g.localName == m : g.nodeType == 3)) {
|
|
258
|
+
e = g, r[p] = null;
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (e == null) {
|
|
263
|
+
if (m == null) return document.createTextNode(x);
|
|
264
|
+
e = document.createElementNS(o, m, x.is && x), l && (q.__m && q.__m(n, r), l = !1), r = null;
|
|
265
|
+
}
|
|
266
|
+
if (m == null) _ === x || l && e.data == x || (e.data = x);
|
|
267
|
+
else {
|
|
268
|
+
if (r = m == "textarea" && x.defaultValue != null ? null : r && mn.call(e.childNodes), !l && r != null) for (_ = {}, p = 0; p < e.attributes.length; p++) _[(g = e.attributes[p]).name] = g.value;
|
|
269
|
+
for (p in _) g = _[p], p == "dangerouslySetInnerHTML" ? f = g : p == "children" || p in x || p == "value" && "defaultValue" in x || p == "checked" && "defaultChecked" in x || cn(e, p, null, g, o);
|
|
270
|
+
for (p in x) g = x[p], p == "children" ? c = g : p == "dangerouslySetInnerHTML" ? h = g : p == "value" ? v = g : p == "checked" ? w = g : l && typeof g != "function" || _[p] === g || cn(e, p, g, _[p], o);
|
|
271
|
+
if (h) l || f && (h.__html == f.__html || h.__html == e.innerHTML) || (e.innerHTML = h.__html), n.__k = [];
|
|
272
|
+
else if (f && (e.innerHTML = ""), ra(n.type == "template" ? e.content : e, wn(c) ? c : [c], n, a, i, m == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, r, d, r ? r[0] : a.__k && Ce(a, 0), l, b), r != null) for (p = r.length; p--; ) rt(r[p]);
|
|
273
|
+
l && m != "textarea" || (p = "value", m == "progress" && v == null ? e.removeAttribute("value") : v != null && (v !== e[p] || m == "progress" && !v || m == "option" && v != _[p]) && cn(e, p, v, _[p], o), p = "checked", w != null && w != e[p] && cn(e, p, w, _[p], o));
|
|
274
|
+
}
|
|
275
|
+
return e;
|
|
276
|
+
}
|
|
277
|
+
function st(e, n, a) {
|
|
278
|
+
try {
|
|
279
|
+
if (typeof e == "function") {
|
|
280
|
+
var i = typeof e.__u == "function";
|
|
281
|
+
i && e.__u(), i && n == null || (e.__u = e(n));
|
|
282
|
+
} else e.current = n;
|
|
283
|
+
} catch (o) {
|
|
284
|
+
q.__e(o, a);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
function ca(e, n, a) {
|
|
288
|
+
var i, o;
|
|
289
|
+
if (q.unmount && q.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || st(i, null, n)), (i = e.__c) != null) {
|
|
290
|
+
if (i.componentWillUnmount) try {
|
|
291
|
+
i.componentWillUnmount();
|
|
292
|
+
} catch (r) {
|
|
293
|
+
q.__e(r, n);
|
|
294
|
+
}
|
|
295
|
+
i.base = i.__P = i.__n = null;
|
|
296
|
+
}
|
|
297
|
+
if (i = e.__k) for (o = 0; o < i.length; o++) i[o] && ca(i[o], n, a || typeof e.type != "function");
|
|
298
|
+
a || rt(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
299
|
+
}
|
|
300
|
+
function Ci(e, n, a) {
|
|
301
|
+
return this.constructor(e, a);
|
|
302
|
+
}
|
|
303
|
+
function en(e, n, a) {
|
|
304
|
+
var i, o, r, d;
|
|
305
|
+
n == document && (n = document.documentElement), q.__ && q.__(e, n), o = (i = !1) ? null : n.__k, r = [], d = [], ot(n, e = n.__k = xi(F, null, [e]), o || _n, _n, n.namespaceURI, o ? null : n.firstChild ? mn.call(n.childNodes) : null, r, o ? o.__e : n.firstChild, i, d), la(r, e, d), e.props.children = null;
|
|
306
|
+
}
|
|
307
|
+
mn = vn.slice, q = { __e: function(e, n, a, i) {
|
|
308
|
+
for (var o, r, d; n = n.__; ) if ((o = n.__c) && !o.__) try {
|
|
309
|
+
if ((r = o.constructor) && r.getDerivedStateFromError != null && (o.setState(r.getDerivedStateFromError(e)), d = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, i || {}), d = o.__d), d) return o.__E = o;
|
|
310
|
+
} catch (l) {
|
|
311
|
+
e = l;
|
|
312
|
+
}
|
|
313
|
+
throw e;
|
|
314
|
+
} }, ea = 0, hn.prototype.setState = function(e, n) {
|
|
315
|
+
var a;
|
|
316
|
+
a = this.__s != null && this.__s != this.state ? this.__s : this.__s = _e({}, this.state), typeof e == "function" && (e = e(_e({}, a), this.props)), e && _e(a, e), e != null && this.__v && (n && this._sb.push(n), At(this));
|
|
317
|
+
}, hn.prototype.forceUpdate = function(e) {
|
|
318
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), At(this));
|
|
319
|
+
}, hn.prototype.render = F, ve = [], na = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ta = function(e, n) {
|
|
320
|
+
return e.__v.__b - n.__v.__b;
|
|
321
|
+
}, xn.__r = 0, Rn = Math.random().toString(8), bn = "__d" + Rn, nn = "__a" + Rn, aa = /(PointerCapture)$|Capture$/i, it = 0, Yn = Ot(!1), Zn = Ot(!0);
|
|
322
|
+
var Si = 0;
|
|
323
|
+
function t(e, n, a, i, o, r) {
|
|
324
|
+
n || (n = {});
|
|
325
|
+
var d, l, b = n;
|
|
326
|
+
if ("ref" in b) for (l in b = {}, n) l == "ref" ? d = n[l] : b[l] = n[l];
|
|
327
|
+
var p = { type: e, props: b, key: a, ref: d, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Si, __i: -1, __u: 0, __source: o, __self: r };
|
|
328
|
+
if (typeof e == "function" && (d = e.defaultProps)) for (l in d) b[l] === void 0 && (b[l] = d[l]);
|
|
329
|
+
return q.vnode && q.vnode(p), p;
|
|
330
|
+
}
|
|
331
|
+
var Ue, P, Hn, Nt, tn = 0, pa = [], B = q, $t = B.__b, qt = B.__r, It = B.diffed, Pt = B.__c, Et = B.unmount, Bt = B.__;
|
|
332
|
+
function kn(e, n) {
|
|
333
|
+
B.__h && B.__h(P, e, tn || n), tn = 0;
|
|
334
|
+
var a = P.__H || (P.__H = { __: [], __h: [] });
|
|
335
|
+
return e >= a.__.length && a.__.push({}), a.__[e];
|
|
336
|
+
}
|
|
337
|
+
function k(e) {
|
|
338
|
+
return tn = 1, Li(ba, e);
|
|
339
|
+
}
|
|
340
|
+
function Li(e, n, a) {
|
|
341
|
+
var i = kn(Ue++, 2);
|
|
342
|
+
if (i.t = e, !i.__c && (i.__ = [ba(void 0, n), function(l) {
|
|
343
|
+
var b = i.__N ? i.__N[0] : i.__[0], p = i.t(b, l);
|
|
344
|
+
b !== p && (i.__N = [p, i.__[1]], i.__c.setState({}));
|
|
345
|
+
}], i.__c = P, !P.__f)) {
|
|
346
|
+
var o = function(l, b, p) {
|
|
347
|
+
if (!i.__c.__H) return !0;
|
|
348
|
+
var h = !1, f = i.__c.props !== l;
|
|
349
|
+
if (i.__c.__H.__.some(function(g) {
|
|
350
|
+
if (g.__N) {
|
|
351
|
+
h = !0;
|
|
352
|
+
var v = g.__[0];
|
|
353
|
+
g.__ = g.__N, g.__N = void 0, v !== g.__[0] && (f = !0);
|
|
354
|
+
}
|
|
355
|
+
}), r) {
|
|
356
|
+
var c = r.call(this, l, b, p);
|
|
357
|
+
return h ? c || f : c;
|
|
358
|
+
}
|
|
359
|
+
return !h || f;
|
|
360
|
+
};
|
|
361
|
+
P.__f = !0;
|
|
362
|
+
var r = P.shouldComponentUpdate, d = P.componentWillUpdate;
|
|
363
|
+
P.componentWillUpdate = function(l, b, p) {
|
|
364
|
+
if (this.__e) {
|
|
365
|
+
var h = r;
|
|
366
|
+
r = void 0, o(l, b, p), r = h;
|
|
367
|
+
}
|
|
368
|
+
d && d.call(this, l, b, p);
|
|
369
|
+
}, P.shouldComponentUpdate = o;
|
|
370
|
+
}
|
|
371
|
+
return i.__N || i.__;
|
|
372
|
+
}
|
|
373
|
+
function G(e, n) {
|
|
374
|
+
var a = kn(Ue++, 3);
|
|
375
|
+
!B.__s && lt(a.__H, n) && (a.__ = e, a.u = n, P.__H.__h.push(a));
|
|
376
|
+
}
|
|
377
|
+
function Mi(e, n) {
|
|
378
|
+
var a = kn(Ue++, 4);
|
|
379
|
+
!B.__s && lt(a.__H, n) && (a.__ = e, a.u = n, P.__h.push(a));
|
|
380
|
+
}
|
|
381
|
+
function Se(e) {
|
|
382
|
+
return tn = 5, de(function() {
|
|
383
|
+
return { current: e };
|
|
384
|
+
}, []);
|
|
385
|
+
}
|
|
386
|
+
function de(e, n) {
|
|
387
|
+
var a = kn(Ue++, 7);
|
|
388
|
+
return lt(a.__H, n) && (a.__ = e(), a.__H = n, a.__h = e), a.__;
|
|
389
|
+
}
|
|
390
|
+
function Ti(e, n) {
|
|
391
|
+
return tn = 8, de(function() {
|
|
392
|
+
return e;
|
|
393
|
+
}, n);
|
|
394
|
+
}
|
|
395
|
+
function Ai() {
|
|
396
|
+
for (var e; e = pa.shift(); ) {
|
|
397
|
+
var n = e.__H;
|
|
398
|
+
if (e.__P && n) try {
|
|
399
|
+
n.__h.some(fn), n.__h.some(Vn), n.__h = [];
|
|
400
|
+
} catch (a) {
|
|
401
|
+
n.__h = [], B.__e(a, e.__v);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
B.__b = function(e) {
|
|
406
|
+
P = null, $t && $t(e);
|
|
407
|
+
}, B.__ = function(e, n) {
|
|
408
|
+
e && n.__k && n.__k.__m && (e.__m = n.__k.__m), Bt && Bt(e, n);
|
|
409
|
+
}, B.__r = function(e) {
|
|
410
|
+
qt && qt(e), Ue = 0;
|
|
411
|
+
var n = (P = e.__c).__H;
|
|
412
|
+
n && (Hn === P ? (n.__h = [], P.__h = [], n.__.some(function(a) {
|
|
413
|
+
a.__N && (a.__ = a.__N), a.u = a.__N = void 0;
|
|
414
|
+
})) : (n.__h.some(fn), n.__h.some(Vn), n.__h = [], Ue = 0)), Hn = P;
|
|
415
|
+
}, B.diffed = function(e) {
|
|
416
|
+
It && It(e);
|
|
417
|
+
var n = e.__c;
|
|
418
|
+
n && n.__H && (n.__H.__h.length && (pa.push(n) !== 1 && Nt === B.requestAnimationFrame || ((Nt = B.requestAnimationFrame) || zi)(Ai)), n.__H.__.some(function(a) {
|
|
419
|
+
a.u && (a.__H = a.u, a.u = void 0);
|
|
420
|
+
})), Hn = P = null;
|
|
421
|
+
}, B.__c = function(e, n) {
|
|
422
|
+
n.some(function(a) {
|
|
423
|
+
try {
|
|
424
|
+
a.__h.some(fn), a.__h = a.__h.filter(function(i) {
|
|
425
|
+
return !i.__ || Vn(i);
|
|
426
|
+
});
|
|
427
|
+
} catch (i) {
|
|
428
|
+
n.some(function(o) {
|
|
429
|
+
o.__h && (o.__h = []);
|
|
430
|
+
}), n = [], B.__e(i, a.__v);
|
|
431
|
+
}
|
|
432
|
+
}), Pt && Pt(e, n);
|
|
433
|
+
}, B.unmount = function(e) {
|
|
434
|
+
Et && Et(e);
|
|
435
|
+
var n, a = e.__c;
|
|
436
|
+
a && a.__H && (a.__H.__.some(function(i) {
|
|
437
|
+
try {
|
|
438
|
+
fn(i);
|
|
439
|
+
} catch (o) {
|
|
440
|
+
n = o;
|
|
441
|
+
}
|
|
442
|
+
}), a.__H = void 0, n && B.__e(n, a.__v));
|
|
443
|
+
};
|
|
444
|
+
var Ft = typeof requestAnimationFrame == "function";
|
|
445
|
+
function zi(e) {
|
|
446
|
+
var n, a = function() {
|
|
447
|
+
clearTimeout(i), Ft && cancelAnimationFrame(n), setTimeout(e);
|
|
448
|
+
}, i = setTimeout(a, 35);
|
|
449
|
+
Ft && (n = requestAnimationFrame(a));
|
|
450
|
+
}
|
|
451
|
+
function fn(e) {
|
|
452
|
+
var n = P, a = e.__c;
|
|
453
|
+
typeof a == "function" && (e.__c = void 0, a()), P = n;
|
|
454
|
+
}
|
|
455
|
+
function Vn(e) {
|
|
456
|
+
var n = P;
|
|
457
|
+
e.__c = e.__(), P = n;
|
|
458
|
+
}
|
|
459
|
+
function lt(e, n) {
|
|
460
|
+
return !e || e.length !== n.length || n.some(function(a, i) {
|
|
461
|
+
return a !== e[i];
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
function ba(e, n) {
|
|
465
|
+
return typeof n == "function" ? n(e) : n;
|
|
466
|
+
}
|
|
467
|
+
const Oi = {
|
|
468
|
+
"board.title": "Feedback",
|
|
469
|
+
"board.open": "Feedback",
|
|
470
|
+
"board.close": "Close",
|
|
471
|
+
"board.back": "Back",
|
|
472
|
+
"board.top": "Top",
|
|
473
|
+
"board.new": "New",
|
|
474
|
+
"board.order": "Order",
|
|
475
|
+
"board.all": "All",
|
|
476
|
+
"board.bugs": "Bugs",
|
|
477
|
+
"board.ideas": "Ideas",
|
|
478
|
+
"board.reviews": "Reviews",
|
|
479
|
+
"board.kindBug": "Bug",
|
|
480
|
+
"board.kindIdea": "Idea",
|
|
481
|
+
"board.kindReview": "Review",
|
|
482
|
+
"board.statusOpen": "Open",
|
|
483
|
+
"board.statusPlanned": "Planned",
|
|
484
|
+
"board.statusDone": "Done",
|
|
485
|
+
// A bug is fixed, an idea done: 'done' says which by the kind (doneLabel in PostCard).
|
|
486
|
+
"board.statusFixed": "Fixed",
|
|
487
|
+
"board.statusFixedOrDone": "Fixed or done",
|
|
488
|
+
"board.statusFixedAndDone": "Fixed & done",
|
|
489
|
+
"board.statusDeclined": "Not doing",
|
|
490
|
+
"board.anon": "Anonymous",
|
|
491
|
+
"board.byYou": "You",
|
|
492
|
+
// Named rather than "the owner": a board that answers in the third person
|
|
493
|
+
// reads like a support desk.
|
|
494
|
+
"board.reply": "{app} says",
|
|
495
|
+
"board.upvote": "I want this too",
|
|
496
|
+
// On a review there is nothing to want: you agree with it, or it helped.
|
|
497
|
+
"board.helpful": "Helpful",
|
|
498
|
+
"board.stars": "{n} of 5 stars",
|
|
499
|
+
"board.ratingOne": "1 review",
|
|
500
|
+
"board.ratingMany": "{n} reviews",
|
|
501
|
+
"board.emptyTitle": "Nothing here yet. Tell us what is broken or what you miss.",
|
|
502
|
+
// A read-only board has no way to write, so it does not ask.
|
|
503
|
+
"board.emptyRead": "Nothing here yet.",
|
|
504
|
+
"board.votes": "{n} votes",
|
|
505
|
+
"board.voteOne": "1 vote",
|
|
506
|
+
"board.emptyFiltered": "Nothing of that kind yet.",
|
|
507
|
+
"board.write": "Write feedback",
|
|
508
|
+
"board.loadFailed": "Could not reach the board.",
|
|
509
|
+
"board.retry": "Try again",
|
|
510
|
+
"board.page": "Page {n}",
|
|
511
|
+
"board.signIn": "Sign in with your wallet",
|
|
512
|
+
// On top of the board where signing in is a step of its own (outside Nimiq
|
|
513
|
+
// Pay: a wallet window opens). Says what signing is not, before it is asked.
|
|
514
|
+
"board.signInTitle": "Sign in to post and vote",
|
|
515
|
+
"board.signInNote": "Use your Nimiq wallet. Signing only shows which wallet you are; it can’t move funds.",
|
|
516
|
+
"board.signInButton": "Sign in with Nimiq",
|
|
517
|
+
// Before the tiles, outside Nimiq Pay, for somebody not signed in yet.
|
|
518
|
+
"board.signInWrite": "Sign in to share feedback",
|
|
519
|
+
// Reading works anywhere; writing needs a wallet. Said when somebody tries,
|
|
520
|
+
// not up front, so a reader is never told off for reading. General on
|
|
521
|
+
// purpose: on a website it means its own login, in a mini app opened in a
|
|
522
|
+
// plain browser it means Nimiq Pay, and the widget cannot tell which.
|
|
523
|
+
"board.needWallet": "Sign in with your Nimiq wallet to post and vote.",
|
|
524
|
+
// The button at the foot of the board, where the + used to be.
|
|
525
|
+
"board.sendFeedback": "Send feedback",
|
|
526
|
+
// Top right, outside Nimiq Pay, before signing in.
|
|
527
|
+
"board.signInShort": "Sign in",
|
|
528
|
+
// The sheet that rises when somebody not signed in taps Send feedback or a vote.
|
|
529
|
+
"board.signInFeedback": "Sign in to send feedback",
|
|
530
|
+
"board.signInVote": "Sign in to vote",
|
|
531
|
+
"board.notNow": "Not now",
|
|
532
|
+
// The megaphone's dot: there is an update you have not seen.
|
|
533
|
+
"updates.new": "New updates",
|
|
534
|
+
// ---- Settings, behind your identicon ----
|
|
535
|
+
"settings.title": "Settings",
|
|
536
|
+
"settings.open": "Your settings",
|
|
537
|
+
"settings.profile": "Profile",
|
|
538
|
+
"settings.name": "Display name",
|
|
539
|
+
"settings.nameNote": "Leave it empty and others see a short address.",
|
|
540
|
+
"settings.nameOff": "Not used while you post anonymously.",
|
|
541
|
+
"settings.saved": "Saved",
|
|
542
|
+
"settings.anon": "Post anonymously",
|
|
543
|
+
"settings.anonNote": "Off: others see your identicon and your name. On: no name and no identicon on your posts.",
|
|
544
|
+
"settings.anonOnNote": "On: no name and no identicon on your posts. Your address is never shown.",
|
|
545
|
+
"settings.hidden": "Your name and identicon stay hidden",
|
|
546
|
+
"settings.namesOff": "On this board every post is anonymous.",
|
|
547
|
+
"settings.account": "Account",
|
|
548
|
+
"settings.logOut": "Log out",
|
|
549
|
+
"settings.logOutNote": "Signed in with your Nimiq wallet in this browser. Log out to switch wallets.",
|
|
550
|
+
"settings.logOutTitle": "Log out?",
|
|
551
|
+
"settings.logOutText": "You can sign in again any time with your Nimiq wallet.",
|
|
552
|
+
// ---- Once, on somebody's first post ----
|
|
553
|
+
"name.title": "How should others see you?",
|
|
554
|
+
"name.text": "Your first post. Pick a name, or skip and others see a short address. You can change it in Settings.",
|
|
555
|
+
"name.save": "Save and post",
|
|
556
|
+
"name.skip": "Skip",
|
|
557
|
+
// ---- Choosing what to write ----
|
|
558
|
+
"board.chooseTitle": "What do you want to share?",
|
|
559
|
+
"board.tileBug": "Report a bug",
|
|
560
|
+
"board.tileBugNote": "Something does not work",
|
|
561
|
+
"board.tileIdea": "Share an idea",
|
|
562
|
+
"board.tileIdeaNote": "Something you miss",
|
|
563
|
+
"board.tileReview": "Write a review",
|
|
564
|
+
"board.tileReviewNote": "What you think of {app}",
|
|
565
|
+
"board.seeBoard": "See the board",
|
|
566
|
+
"board.tileReviewDone": "You reviewed {app} already",
|
|
567
|
+
// ---- Writing one ----
|
|
568
|
+
"board.composeTitle": "Your feedback",
|
|
569
|
+
"board.whatKind": "What is it?",
|
|
570
|
+
// On a bug; an idea and a review each ask their own question.
|
|
571
|
+
"board.placeholder": "What’s broken?",
|
|
572
|
+
"board.placeholderIdea": "What’s missing?",
|
|
573
|
+
"board.placeholderReview": "What do you think of {app}?",
|
|
574
|
+
"board.yourRating": "Your rating",
|
|
575
|
+
"board.public": "Everyone using {app} can see this.",
|
|
576
|
+
"board.postAnon": "Post anonymously",
|
|
577
|
+
"board.namePlaceholder": "Your name",
|
|
578
|
+
// Under the name field: what others see, and that a new name reaches back.
|
|
579
|
+
"board.namedNote": "Others see your identicon and this name, never your address. Changing the name changes it on your earlier posts too.",
|
|
580
|
+
// The honest version. Anonymous means the name is not shown, never that the
|
|
581
|
+
// wallet is not known: the daily limit and one vote per wallet both have to
|
|
582
|
+
// ask who.
|
|
583
|
+
"board.anonNote": "Anonymous: no name, no identicon. Your address is never shown; the server uses it only to count votes and daily posts.",
|
|
584
|
+
// ---- A screenshot ----
|
|
585
|
+
"board.shotAdd": "Add screenshot",
|
|
586
|
+
"board.shotRemove": "Remove screenshot",
|
|
587
|
+
// Said before somebody picks one, because a screenshot of a wallet app is
|
|
588
|
+
// the easiest way to give away a balance without noticing. On a board that
|
|
589
|
+
// shows screenshots, and the one for `screenshots="owners"`. The address
|
|
590
|
+
// line is there because posting anonymously is undone by a picture of it.
|
|
591
|
+
"board.shotNoteBoard": "Screenshots are public. Hide personal info and wallet addresses.",
|
|
592
|
+
// Ticked under the picture itself, so the yes is about this one.
|
|
593
|
+
"board.shotAgree": "Checked: everyone may see this.",
|
|
594
|
+
"board.shotNote": "Only {app} sees it. Hide personal info and wallet addresses.",
|
|
595
|
+
"board.shotFailed": "That image could not be read. Try another one.",
|
|
596
|
+
"board.shot": "Screenshot",
|
|
597
|
+
"board.shotOpen": "Open the screenshot",
|
|
598
|
+
// In the owner's sheet: who sees it now, before what happens to it.
|
|
599
|
+
"board.shotForBoard": "On the board for everyone.",
|
|
600
|
+
"board.shotForOff": "Off the board: only you see it.",
|
|
601
|
+
"board.shotForOwners": "Only you see it: it was sent for your eyes only.",
|
|
602
|
+
"board.shotOff": "Take the screenshot off the board",
|
|
603
|
+
"board.shotOn": "Put the screenshot back",
|
|
604
|
+
"board.shotGoes": "Deleted by itself when you mark this Done or Not doing.",
|
|
605
|
+
"board.shotGone": "The screenshot could not be loaded.",
|
|
606
|
+
"board.send": "Put it on the board",
|
|
607
|
+
"board.left": "{n} of {max} left today",
|
|
608
|
+
"board.noneLeft": "That is today’s {max}. Back tomorrow.",
|
|
609
|
+
"board.likeThis": "Already on the board?",
|
|
610
|
+
"board.likeThisNote": "Vote instead of sending it again.",
|
|
611
|
+
// Seconding a lookalike instead of writing it again, which closes the form.
|
|
612
|
+
"board.meToo": "Me too",
|
|
613
|
+
"board.meTooDone": "Your vote is on it. Thank you.",
|
|
614
|
+
"board.voted": "Voted",
|
|
615
|
+
// Two ways a post can be refused, because the answer to one is "go again"
|
|
616
|
+
// and the answer to the other is "come back tomorrow".
|
|
617
|
+
"board.failed": "That did not go through. Try again.",
|
|
618
|
+
"board.failedFull": "Not posted: that was today’s {max}. Back tomorrow.",
|
|
619
|
+
"board.reviewed": "You reviewed {app} already. Throw yours away to write a new one.",
|
|
620
|
+
"board.sent": "Feedback sent!",
|
|
621
|
+
"board.sentNote": "Thank you. It is on the board now.",
|
|
622
|
+
// On a board that approves posts first: it did arrive, it is just not up yet.
|
|
623
|
+
"board.sentWaiting": "Thank you. It shows on the board once {app} approved it.",
|
|
624
|
+
"board.waiting": "Waiting for approval",
|
|
625
|
+
"board.sentBack": "Back to the board",
|
|
626
|
+
// ---- Throwing your own away ----
|
|
627
|
+
"board.delete": "Throw away",
|
|
628
|
+
"board.deleteTitle": "Throw this away?",
|
|
629
|
+
"board.deleteNote": "It leaves the board for everybody, with its votes.",
|
|
630
|
+
"board.cancel": "Cancel",
|
|
631
|
+
// ---- Answering one (owners only) ----
|
|
632
|
+
"board.manage": "Answer this",
|
|
633
|
+
"board.setStatus": "Where it stands",
|
|
634
|
+
"board.replyLabel": "Your answer",
|
|
635
|
+
"board.replyPlaceholder": "Say something back",
|
|
636
|
+
"board.hide": "Take off the board",
|
|
637
|
+
"board.unhide": "Put it back",
|
|
638
|
+
"board.hidden": "Off the board",
|
|
639
|
+
"board.approve": "Approve: put it on the board",
|
|
640
|
+
"board.unapprove": "Keep it waiting",
|
|
641
|
+
"board.save": "Save",
|
|
642
|
+
"board.context": "Sent with",
|
|
643
|
+
// ---- Where a fix is ----
|
|
644
|
+
// In the owner's sheet, once Done is picked. An idea is built, not fixed.
|
|
645
|
+
"fix.title": "Fixed in",
|
|
646
|
+
"fix.titleIdea": "Built in",
|
|
647
|
+
"fix.version": "Version",
|
|
648
|
+
"fix.versionBad": "Letters, numbers and dots only, like 1.4.2.",
|
|
649
|
+
"fix.link": "Link to the fix",
|
|
650
|
+
"fix.linkNote": "A commit, pull request or release on github.com or gitlab.com.",
|
|
651
|
+
"fix.linkBad": "That is not a link to a page on github.com or gitlab.com.",
|
|
652
|
+
"fix.who": "Whoever reported this sees it on their board.",
|
|
653
|
+
// On the card, for everybody.
|
|
654
|
+
"fix.in": "Fixed in {version}",
|
|
655
|
+
"fix.inIdea": "Built in {version}",
|
|
656
|
+
// {site} is GitHub or GitLab, whichever the link goes to.
|
|
657
|
+
"fix.view": "View on {site}",
|
|
658
|
+
// ---- The note for whoever reported it ----
|
|
659
|
+
"news.bug": "Your bug is fixed",
|
|
660
|
+
"news.bugIn": "Your bug is fixed in {version}",
|
|
661
|
+
"news.idea": "Your idea is built",
|
|
662
|
+
"news.ideaIn": "Your idea is in {version}",
|
|
663
|
+
"news.see": "See the fix",
|
|
664
|
+
// ---- The conversation under a post ----
|
|
665
|
+
"talk.title": "Conversation",
|
|
666
|
+
"talk.open": "Open the conversation",
|
|
667
|
+
"talk.count": "{n} messages",
|
|
668
|
+
"talk.you": "You say",
|
|
669
|
+
"talk.who": "{who} says",
|
|
670
|
+
"talk.edited": "edited",
|
|
671
|
+
"talk.answerLabel": "Your answer to {app}",
|
|
672
|
+
"talk.placeholder": "Write your answer…",
|
|
673
|
+
"talk.send": "Send",
|
|
674
|
+
"talk.edit": "Edit",
|
|
675
|
+
"talk.remove": "Remove",
|
|
676
|
+
"talk.save": "Save",
|
|
677
|
+
"talk.next": "{app} answers next.",
|
|
678
|
+
"talk.closedDone": "Closed: {app} marked this done.",
|
|
679
|
+
"talk.closedDeclined": "Closed: {app} is not doing this.",
|
|
680
|
+
// Said when what was on screen is no longer what is on the board.
|
|
681
|
+
"talk.moved": "Something changed in the meantime. Have a look first.",
|
|
682
|
+
"talk.hide": "Hide",
|
|
683
|
+
"talk.unhide": "Put back",
|
|
684
|
+
"talk.label": "Conversation",
|
|
685
|
+
"talk.writeTo": "Write to {who}…",
|
|
686
|
+
"talk.changeLast": "Change your last message",
|
|
687
|
+
"talk.gets": "{who} gets a note on the board.",
|
|
688
|
+
// How an owner's sheet names the author of an anonymous post.
|
|
689
|
+
"talk.author": "the author",
|
|
690
|
+
// ---- The note for whoever wrote it, once the app answered ----
|
|
691
|
+
"answered.bug": "{app} answered your bug",
|
|
692
|
+
"answered.idea": "{app} answered your idea",
|
|
693
|
+
"answered.review": "{app} answered your review",
|
|
694
|
+
"answered.see": "See the conversation",
|
|
695
|
+
// ---- For owners: answers waiting ----
|
|
696
|
+
"owner.newAnswer": "New answer",
|
|
697
|
+
"owner.waitingOne": "1 answer waits for you",
|
|
698
|
+
"owner.waitingMany": "{n} answers wait for you",
|
|
699
|
+
"owner.showThese": "Show only these",
|
|
700
|
+
// ---- Search and filter ----
|
|
701
|
+
"search.placeholder": "Search bugs and ideas",
|
|
702
|
+
"search.clear": "Clear the search",
|
|
703
|
+
"search.countOne": '1 post matches "{q}"',
|
|
704
|
+
"search.count": '{n} posts match "{q}"',
|
|
705
|
+
"search.inThread": "In the conversation:",
|
|
706
|
+
"filter.button": "Filter",
|
|
707
|
+
"filter.title": "Filter",
|
|
708
|
+
"filter.kind": "Kind",
|
|
709
|
+
"filter.status": "Status",
|
|
710
|
+
"filter.sort": "Sort",
|
|
711
|
+
"board.newest": "Newest",
|
|
712
|
+
"filter.statusNote": "Reviews have no status, so choosing one hides them.",
|
|
713
|
+
"filter.own": "Only for you",
|
|
714
|
+
"filter.waiting": "Waiting on you",
|
|
715
|
+
"filter.mine": "Only my posts",
|
|
716
|
+
"filter.reset": "Reset",
|
|
717
|
+
"filter.showOne": "Show 1 post",
|
|
718
|
+
"filter.show": "Show {n} posts",
|
|
719
|
+
"filter.on": "{n} filters on",
|
|
720
|
+
"filter.remove": "Turn off {label}",
|
|
721
|
+
"filter.clearAll": "Clear all",
|
|
722
|
+
"filter.none": "Nothing found",
|
|
723
|
+
"filter.noneNote": "Nothing matches your search and filters. Clear them to look everywhere.",
|
|
724
|
+
"filter.clear": "Clear search and filters",
|
|
725
|
+
// ---- Updates ----
|
|
726
|
+
"updates.title": "Updates",
|
|
727
|
+
"updates.intro": "What changed in {app}. Tap one to see the change itself.",
|
|
728
|
+
"updates.empty": "No updates yet.",
|
|
729
|
+
"updates.emptyOwner": "No updates yet. Write the first one with +.",
|
|
730
|
+
"updates.bugOne": "1 bug",
|
|
731
|
+
"updates.bugMany": "{n} bugs",
|
|
732
|
+
"updates.ideaOne": "1 idea",
|
|
733
|
+
"updates.ideaMany": "{n} ideas",
|
|
734
|
+
"updates.fromBoard": "{list} from this board",
|
|
735
|
+
"updates.write": "New update",
|
|
736
|
+
"updates.titleLabel": "Title",
|
|
737
|
+
"updates.titlePlaceholder": "What changed, in a few words",
|
|
738
|
+
"updates.link": "Link on GitHub or GitLab",
|
|
739
|
+
"updates.linkNote": "Only github.com and gitlab.com links: a release, pull request or commit.",
|
|
740
|
+
"updates.textLabel": "What changed",
|
|
741
|
+
"updates.textPlaceholder": "A few lines for the people using {app}",
|
|
742
|
+
"updates.fixes": "What it fixes",
|
|
743
|
+
"updates.fixesNote": "Open and planned bugs and ideas. Ticked ones go to Done, with this version and link.",
|
|
744
|
+
"updates.fixesNone": "No open bugs or ideas on the board.",
|
|
745
|
+
"updates.publish": "Publish update",
|
|
746
|
+
"updates.delete": "Delete update",
|
|
747
|
+
"updates.deleteTitle": "Delete this update?",
|
|
748
|
+
"updates.deleteNote": "It leaves the Updates page. The posts it fixed stay Done.",
|
|
749
|
+
"updates.deleteBtn": "Delete",
|
|
750
|
+
// ---- When ----
|
|
751
|
+
"time.now": "just now",
|
|
752
|
+
"time.min": "{n}m ago",
|
|
753
|
+
"time.hour": "{n}h ago",
|
|
754
|
+
"time.day": "{n}d ago"
|
|
755
|
+
};
|
|
756
|
+
function Ni(e = {}) {
|
|
757
|
+
return (n, a) => {
|
|
758
|
+
let i = e[n] ?? Oi[n];
|
|
759
|
+
if (a) for (const [o, r] of Object.entries(a)) i = i.split(`{${o}}`).join(String(r));
|
|
760
|
+
return i;
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
const Oe = Object.freeze({ kinds: [], statuses: [], mine: !1, own: [] });
|
|
764
|
+
function $i(e) {
|
|
765
|
+
return e.kinds.length + e.statuses.length + (e.mine ? 1 : 0) + e.own.length;
|
|
766
|
+
}
|
|
767
|
+
function Dt(e, n) {
|
|
768
|
+
return !(n.kinds.length && !n.kinds.includes(e.kind) || n.statuses.length && (e.kind === "review" || !n.statuses.includes(e.status)) || n.mine && !e.mine || n.own.length && !n.own.some((a) => a === "waiting" ? Wn(e) : a === "hidden" ? !!e.hidden : !!e.pending));
|
|
769
|
+
}
|
|
770
|
+
function dt(e) {
|
|
771
|
+
return e.toLowerCase().split(/\s+/).filter(Boolean);
|
|
772
|
+
}
|
|
773
|
+
function Ut(e, n) {
|
|
774
|
+
const a = dt(n);
|
|
775
|
+
if (!a.length) return { in: "text" };
|
|
776
|
+
const i = (l, b) => l.toLowerCase().includes(b);
|
|
777
|
+
if (a.every((l) => i(e.text, l))) return { in: "text" };
|
|
778
|
+
const o = on(e.thread);
|
|
779
|
+
if (!a.every((l) => i(e.text, l) || o.some((b) => i(b.text, l)))) return null;
|
|
780
|
+
const r = (l) => a.filter((b) => i(l.text, b)).length;
|
|
781
|
+
return { in: "thread", message: o.reduce((l, b) => r(b) > r(l) ? b : l, o[0]) };
|
|
782
|
+
}
|
|
783
|
+
function qi(e, n, a = 60) {
|
|
784
|
+
if (e.length <= a) return e;
|
|
785
|
+
const i = e.toLowerCase(), o = Math.min(...dt(n).map((l) => i.indexOf(l)).filter((l) => l >= 0), e.length);
|
|
786
|
+
let r = o === e.length ? 0 : Math.max(0, Math.min(o - 8, e.length - a));
|
|
787
|
+
if (r > 0 && e[r - 1] !== " ") {
|
|
788
|
+
const l = e.indexOf(" ", r);
|
|
789
|
+
l >= 0 && l < o && (r = l + 1);
|
|
790
|
+
}
|
|
791
|
+
const d = e.slice(r, r + a).trim();
|
|
792
|
+
return `${r > 0 ? "…" : ""}${d}${r + a < e.length ? "…" : ""}`;
|
|
793
|
+
}
|
|
794
|
+
function Ii(e, n) {
|
|
795
|
+
const a = dt(n);
|
|
796
|
+
if (!a.length) return [{ text: e, hit: !1 }];
|
|
797
|
+
const i = e.toLowerCase(), o = new Array(e.length).fill(!1);
|
|
798
|
+
for (const d of a)
|
|
799
|
+
for (let l = i.indexOf(d); l >= 0; l = i.indexOf(d, l + 1)) o.fill(!0, l, l + d.length);
|
|
800
|
+
const r = [];
|
|
801
|
+
for (let d = 0; d < e.length; d++) {
|
|
802
|
+
const l = r[r.length - 1];
|
|
803
|
+
l && l.hit === o[d] ? l.text += e[d] : r.push({ text: e[d], hit: o[d] });
|
|
804
|
+
}
|
|
805
|
+
return r;
|
|
806
|
+
}
|
|
807
|
+
const ua = /* @__PURE__ */ new Map();
|
|
808
|
+
function ha(e, n) {
|
|
809
|
+
return `pleasenobugs.${n}.${e}`;
|
|
810
|
+
}
|
|
811
|
+
const fa = (e) => e !== "demo";
|
|
812
|
+
function ct(e, n) {
|
|
813
|
+
const a = ha(e, n);
|
|
814
|
+
if (!fa(e)) return null;
|
|
815
|
+
try {
|
|
816
|
+
const i = globalThis.localStorage?.getItem(a);
|
|
817
|
+
if (i != null) return i;
|
|
818
|
+
} catch {
|
|
819
|
+
}
|
|
820
|
+
return ua.get(a) ?? null;
|
|
821
|
+
}
|
|
822
|
+
function pt(e, n, a) {
|
|
823
|
+
if (!fa(e)) return;
|
|
824
|
+
const i = ha(e, n);
|
|
825
|
+
ua.set(i, a);
|
|
826
|
+
try {
|
|
827
|
+
globalThis.localStorage?.setItem(i, a);
|
|
828
|
+
} catch {
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
function Pi(e) {
|
|
832
|
+
return ct(e, "anon") === "1";
|
|
833
|
+
}
|
|
834
|
+
function Ei(e, n) {
|
|
835
|
+
pt(e, "anon", n ? "1" : "0");
|
|
836
|
+
}
|
|
837
|
+
function Bi(e, n) {
|
|
838
|
+
return ct(e, `named.${n ?? ""}`) === "1";
|
|
839
|
+
}
|
|
840
|
+
function Rt(e, n) {
|
|
841
|
+
pt(e, `named.${n ?? ""}`, "1");
|
|
842
|
+
}
|
|
843
|
+
function Fi(e) {
|
|
844
|
+
return Number(ct(e, "updates") ?? 0) || 0;
|
|
845
|
+
}
|
|
846
|
+
function Di(e, n) {
|
|
847
|
+
pt(e, "updates", String(n));
|
|
848
|
+
}
|
|
849
|
+
function Ui(e) {
|
|
850
|
+
return {
|
|
851
|
+
project: e.project,
|
|
852
|
+
posts: e.posts.filter((n) => !n.hidden).map(({ who: n, face: a, shot: i, shotFor: o, context: r, hidden: d, thread: l, ...b }) => {
|
|
853
|
+
const p = on(l);
|
|
854
|
+
return { ...b, ...p.length ? { thread: p } : {}, mine: !1, voted: !1 };
|
|
855
|
+
}),
|
|
856
|
+
// The Updates page is public to begin with, so it comes along.
|
|
857
|
+
...e.updates ? { updates: e.updates } : {}
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
const Kn = 6e4, Gn = 60 * Kn, Xn = 24 * Gn, Ri = 7 * Xn, Ht = /* @__PURE__ */ new Map();
|
|
861
|
+
function ga(e, n, a = Date.now()) {
|
|
862
|
+
const i = Math.max(0, a - e);
|
|
863
|
+
if (i >= Ri) {
|
|
864
|
+
let o = Ht.get(n);
|
|
865
|
+
return o || (o = new Intl.DateTimeFormat(n, { day: "numeric", month: "short" }), Ht.set(n, o)), { date: o.format(new Date(e)).replace(".", "") };
|
|
866
|
+
}
|
|
867
|
+
return i < Kn ? { key: "time.now", vars: { n: "0" } } : i < Gn ? { key: "time.min", vars: { n: String(Math.floor(i / Kn)) } } : i < Xn ? { key: "time.hour", vars: { n: String(Math.floor(i / Gn)) } } : { key: "time.day", vars: { n: String(Math.floor(i / Xn)) } };
|
|
868
|
+
}
|
|
869
|
+
const V = (e, n, a = !1) => /* @__PURE__ */ t(
|
|
870
|
+
"svg",
|
|
871
|
+
{
|
|
872
|
+
width: e,
|
|
873
|
+
height: e,
|
|
874
|
+
viewBox: "0 0 24 24",
|
|
875
|
+
fill: a ? "currentColor" : "none",
|
|
876
|
+
stroke: a ? "none" : "currentColor",
|
|
877
|
+
"stroke-width": "2.25",
|
|
878
|
+
"stroke-linecap": "round",
|
|
879
|
+
"stroke-linejoin": "round",
|
|
880
|
+
"aria-hidden": "true",
|
|
881
|
+
children: n
|
|
882
|
+
}
|
|
883
|
+
), Le = ({ size: e = 22 }) => V(e, /* @__PURE__ */ t("path", { d: "M15 5l-7 7 7 7" })), ke = ({ size: e = 22 }) => V(e, /* @__PURE__ */ t("path", { d: "M6 6l12 12M18 6L6 18" })), Hi = ({ size: e = 20 }) => V(e, /* @__PURE__ */ t("path", { d: "M12 5v14M5 12h14" })), bt = ({ size: e = 18 }) => V(e, /* @__PURE__ */ t("path", { d: "M4 7h16M9 7V4.5h6V7M6.5 7l1 12.5h9l1-12.5M10 11v5M14 11v5" })), ut = ({ size: e = 14 }) => V(e, /* @__PURE__ */ t("path", { d: "M12 6.5l7.2 9a1 1 0 0 1-.78 1.6H5.58a1 1 0 0 1-.78-1.6L12 6.5z" }), !0), ji = ({ size: e = 24 }) => V(
|
|
884
|
+
e,
|
|
885
|
+
/* @__PURE__ */ t("path", { d: "M12 6C12 5.45 11.55 5 11 5H5.815L6.48 1.825c.015-.075.025-.155.025-.235 0-.31-.125-.59-.33-.795L5.38 0 .44 4.94C.17 5.21 0 5.585 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.155-.375 1.38-.915l2.265-5.29c.065-.17.105-.35.105-.545V6zm10.5 4h-6.75c-.62 0-1.155.375-1.38.915l-2.265 5.29c-.065.17-.105.35-.105.545V18c0 .55.45 1 1 1h5.185l-.665 3.175c-.015.075-.025.155-.025.235 0 .31.125.59.33.795L18.62 24l4.94-4.94c.27-.27.44-.645.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5z" }),
|
|
886
|
+
!0
|
|
887
|
+
), yn = (e, n, a) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: n, fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: a }) }), Wi = ({ size: e = 10 }) => yn(
|
|
888
|
+
e,
|
|
889
|
+
"32 24 28 28",
|
|
890
|
+
"M46.5 24C47.9547 24 49.125 25.1703 49.125 26.625V38.875C49.125 40.3297 47.9547 41.5 46.5 41.5C45.0453 41.5 43.875 40.3297 43.875 38.875V26.625C43.875 25.1703 45.0453 24 46.5 24ZM43 48.5C43 47.5717 43.3687 46.6815 44.0251 46.0251C44.6815 45.3687 45.5717 45 46.5 45C47.4283 45 48.3185 45.3687 48.9749 46.0251C49.6313 46.6815 50 47.5717 50 48.5C50 49.4283 49.6313 50.3185 48.9749 50.9749C48.3185 51.6313 47.4283 52 46.5 52C45.5717 52 44.6815 51.6313 44.0251 50.9749C43.3687 50.3185 43 49.4283 43 48.5Z"
|
|
891
|
+
), Yi = ({ size: e = 10 }) => yn(
|
|
892
|
+
e,
|
|
893
|
+
"32 24 27.18 27.18",
|
|
894
|
+
"M59.182 31.1652V34.6498C59.182 35.8396 58.9535 37.0177 58.5095 38.117C58.0656 39.2162 57.4149 40.2149 56.5947 41.0562C55.7744 41.8975 54.8006 42.5649 53.7289 43.0202C52.6572 43.4755 51.5085 43.7098 50.3485 43.7098H46.951V50.6791H44.233V40.9222L44.2588 39.5283C44.4299 37.2528 45.4321 35.1274 47.065 33.5769C48.6979 32.0264 50.8412 31.1651 53.0665 31.1652H59.182ZM37.438 25.5898C39.4348 25.59 41.3811 26.2343 43.0012 27.4315C44.6214 28.6287 45.8334 30.3181 46.4658 32.2608C45.4259 33.1646 44.5739 34.2738 43.9605 35.5224C43.3472 36.7709 42.9851 38.1333 42.8957 39.5283H41.515C38.9919 39.5283 36.5723 38.5003 34.7882 36.6706C33.0042 34.8408 32.002 32.3591 32.002 29.7714V25.5898H37.438Z"
|
|
895
|
+
), Zi = ({ size: e = 10 }) => yn(
|
|
896
|
+
e,
|
|
897
|
+
"32 24 27.188 27.188",
|
|
898
|
+
"M53.8936 40.0933C53.547 40.4266 53.387 40.9186 53.4683 41.3866L54.6536 47.9466C54.7483 48.5066 54.5216 49.0653 54.0536 49.3866C53.6003 49.7199 53.0003 49.7599 52.4936 49.4933L46.5883 46.4133C46.3736 46.3066 46.147 46.2386 45.9216 46.2386H45.5603C45.427 46.2519 45.3083 46.3066 45.2003 46.3586L39.2936 49.4533C39.0003 49.5999 38.667 49.6533 38.347 49.5999C37.547 49.4399 37.0283 48.6919 37.1603 47.9053L38.347 41.3453C38.427 40.8666 38.267 40.3866 37.9216 40.0399L33.107 35.3733C32.707 34.9733 32.5603 34.3986 32.7483 33.8666C32.9216 33.3453 33.3736 32.9586 33.9336 32.8666L40.5603 31.9053C41.067 31.8519 41.507 31.5466 41.7336 31.0933L44.6536 25.1066C44.7203 24.9733 44.8136 24.8519 44.9216 24.7466L45.0403 24.6533C45.0936 24.5853 45.1736 24.5333 45.255 24.4799L45.4003 24.4266L45.627 24.3333H46.1883C46.695 24.3866 47.135 24.6919 47.3616 25.1319L50.3203 31.0933C50.5336 31.5333 50.947 31.8266 51.427 31.9053L58.0536 32.8666C58.6136 32.9466 59.0816 33.3333 59.267 33.8666C59.4403 34.3986 59.2936 34.9866 58.8803 35.3733L53.8936 40.0933Z"
|
|
899
|
+
), Jn = ({ size: e = 16, filled: n = !1 }) => V(e, /* @__PURE__ */ t("path", { d: "M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8-4.3-4.1 5.9-.9L12 3.5z" }), n), Vi = ({ size: e = 22 }) => V(e, /* @__PURE__ */ t("path", { d: "M3 11l18-5v12L3 14v-3zM11.6 16.8a3 3 0 1 1-5.8-1.6" })), _a = ({ size: e = 12 }) => V(e, /* @__PURE__ */ t("path", { d: "M7 17L17 7M7 7h10v10" })), Ki = ({ size: e = 16 }) => V(e, /* @__PURE__ */ t("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })), Gi = ({ size: e = 14 }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "m23.6 9.593-.033-.086L20.3.98a.851.851 0 0 0-.336-.405.875.875 0 0 0-1 .054.875.875 0 0 0-.29.44L16.47 7.818H7.537L5.333 1.07a.857.857 0 0 0-.29-.441.875.875 0 0 0-1-.054.859.859 0 0 0-.336.405L.433 9.502l-.032.086a6.066 6.066 0 0 0 2.012 7.01l.011.009.03.021 4.976 3.727 2.462 1.863 1.5 1.132a1.009 1.009 0 0 0 1.22 0l1.499-1.132 2.461-1.863 5.006-3.75.013-.01a6.068 6.068 0 0 0 2.01-7.002z" }) }), Xi = ({ size: e = 14 }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z" }) }), Ji = ({ size: e = 16 }) => V(e, /* @__PURE__ */ t("path", { d: "M17.5 11a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0zM16 16l4 4" })), Qi = ({ size: e = 16 }) => V(e, /* @__PURE__ */ t("path", { d: "M4 7h9M19 7h1M4 17h3M13 17h7M18.5 7a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM12.5 17a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z" })), jt = ({ size: e = 16 }) => V(e, /* @__PURE__ */ t("path", { d: "M4 6.5A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5v7a2.5 2.5 0 0 1-2.5 2.5H11l-4.5 4v-4A2.5 2.5 0 0 1 4 13.5z" })), va = ({ size: e = 20 }) => V(e, /* @__PURE__ */ t("path", { d: "M4 5.5h16v13H4zM4 15.5l4.5-4.5 4 4 2.5-2.5 5 5M15.5 9.5h.01" })), xa = (e, n, a, i) => /* @__PURE__ */ t(
|
|
900
|
+
"svg",
|
|
901
|
+
{
|
|
902
|
+
width: e,
|
|
903
|
+
height: e,
|
|
904
|
+
viewBox: n,
|
|
905
|
+
fill: "none",
|
|
906
|
+
stroke: "currentColor",
|
|
907
|
+
"stroke-width": i,
|
|
908
|
+
"stroke-linecap": "round",
|
|
909
|
+
"stroke-linejoin": "round",
|
|
910
|
+
"aria-hidden": "true",
|
|
911
|
+
children: /* @__PURE__ */ t("path", { d: a })
|
|
912
|
+
}
|
|
913
|
+
), er = ({ size: e = 10 }) => yn(
|
|
914
|
+
e,
|
|
915
|
+
"0 0 10 10",
|
|
916
|
+
"M5 0C4.01109 0 3.0444 0.293245 2.22215 0.842652C1.3999 1.39206 0.759043 2.17295 0.380605 3.08658C0.00216642 4.00021 -0.0968502 5.00555 0.0960758 5.97545C0.289002 6.94536 0.765206 7.83627 1.46447 8.53553C2.16373 9.23479 3.05465 9.711 4.02455 9.90392C4.99445 10.0969 5.99979 9.99783 6.91342 9.6194C7.82705 9.24096 8.60794 8.60009 9.15735 7.77785C9.70676 6.9556 10 5.98891 10 5C9.9986 3.67435 9.47137 2.40339 8.53399 1.46601C7.59661 0.528633 6.32565 0.00139991 5 0ZM7.69231 5.38461H5C4.89799 5.38461 4.80017 5.34409 4.72804 5.27196C4.65591 5.19983 4.61539 5.10201 4.61539 5V2.30769C4.61539 2.20569 4.65591 2.10786 4.72804 2.03573C4.80017 1.9636 4.89799 1.92308 5 1.92308C5.10201 1.92308 5.19984 1.9636 5.27197 2.03573C5.34409 2.10786 5.38462 2.20569 5.38462 2.30769V4.61538H7.69231C7.79431 4.61538 7.89214 4.65591 7.96427 4.72803C8.0364 4.80016 8.07692 4.89799 8.07692 5C8.07692 5.10201 8.0364 5.19983 7.96427 5.27196C7.89214 5.34409 7.79431 5.38461 7.69231 5.38461Z"
|
|
917
|
+
), Cn = ({ size: e = 12 }) => xa(e, "-0.2 -1.8 12 12", "M0.803574 4.3749L4.01786 7.58918L10.8036 0.803467", 1.607), nr = ({ size: e = 12 }) => xa(e, "-1.7125 -1.7125 12 12", "M0.787506 0.787598L7.78751 7.7876M7.78751 0.787598L0.787506 7.7876", 1.575), tr = ({ size: e = 20 }) => V(e, /* @__PURE__ */ t("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9" })), ar = ({ size: e = 20 }) => /* @__PURE__ */ t("svg", { width: e, height: Math.round(e * 1.12 * 10) / 10, viewBox: "0 0 32 35.8", "aria-hidden": "true", children: [
|
|
918
|
+
/* @__PURE__ */ t("path", { d: "M14.285 0.385542C14.6449 0.412108 15.0806 0.580947 15.4116 0.72713C17.1115 1.47827 18.7384 2.72978 20.0315 4.05052C21.1249 5.16716 21.5905 6.04792 21.5674 7.59984C22.2965 7.62454 22.8529 7.73907 23.5144 8.05007C25.3014 8.89047 26.8077 10.6905 26.5641 12.7632C26.5001 13.3054 26.3752 13.6589 26.14 14.151C26.8057 14.4018 27.3759 14.7001 27.9329 15.1502C28.4623 15.5729 28.9028 16.096 29.2293 16.6895C29.519 17.219 29.7308 17.8412 29.8135 18.439C29.8495 18.6977 29.838 19.0639 29.9375 19.3006C30.0364 19.5358 30.2395 19.7715 30.3831 19.9844C30.7322 20.5018 31.9608 22.1932 31.9974 22.7335C32.0139 22.9779 31.9485 23.2436 31.886 23.4777C31.5675 24.6691 29.0134 31.8235 28.3463 32.5283C28.0145 32.8786 26.9015 33.4015 26.4406 33.6468C25.8213 33.9801 25.1978 34.3052 24.5704 34.6226C24.3111 34.7533 23.6901 35.0757 23.4451 35.1438C22.8814 35.3006 22.0026 35.3377 21.3995 35.3832C20.0217 35.4869 18.6426 35.5715 17.2623 35.6372C16.5726 35.702 15.8653 35.7087 15.1731 35.7366C14.0915 35.7805 12.9426 35.8579 11.866 35.7243C10.681 35.5774 9.48045 35.2385 8.32713 34.9357C7.8198 34.8025 6.84744 34.5944 6.42498 34.3561C6.23045 34.2463 6.05108 34.0915 5.89917 33.9287C5.01519 32.9814 0.673324 27.1332 0.407383 26.0672C0.357352 25.8667 0.400931 25.6516 0.461047 25.4574C0.586698 25.0518 0.811378 24.6682 1.00776 24.2931C1.24177 23.8355 1.48545 23.383 1.73865 22.9357C1.70057 22.6502 1.69558 22.3636 1.68435 22.0767C1.59641 19.8266 2.48552 18.253 4.49421 17.2173C4.44624 17.1035 4.40043 16.9887 4.35679 16.8732C3.74496 15.2041 4.3269 13.2186 5.55814 11.9879C6.28855 11.2578 7.01299 10.8592 7.97082 10.52C7.84391 10.2918 7.74955 10.0469 7.69044 9.7926C7.29868 8.07309 9.03234 6.42772 10.3952 5.70929C11.7264 5.00751 12.9599 4.94226 13.833 3.53266C14.1682 3.00952 14.3983 2.26361 14.1129 1.66468C13.9043 1.22703 13.4579 0.535301 14.285 0.385542Z", fill: "#000" }),
|
|
919
|
+
/* @__PURE__ */ t("path", { d: "M13.8995 0C14.2593 0.0265661 14.695 0.195405 15.0261 0.341588C16.7259 1.09273 18.3528 2.34424 19.646 3.66498C20.7393 4.78162 21.205 5.66238 21.1818 7.2143C21.9109 7.239 22.4674 7.35353 23.1289 7.66453C24.9159 8.50492 26.4221 10.3049 26.1785 12.3777C26.1146 12.9199 25.9897 13.2734 25.7545 13.7654C26.4202 14.0162 26.9903 14.3146 27.5473 14.7647C28.0767 15.1873 28.5172 15.7105 28.8438 16.3039C29.1335 16.8334 29.3452 17.4556 29.4279 18.0535C29.464 18.3122 29.4525 18.6784 29.552 18.915C29.6508 19.1502 29.8539 19.386 29.9975 19.5989C30.3467 20.1162 31.5753 21.8077 31.6119 22.3479C31.6284 22.5924 31.563 22.858 31.5004 23.0921C31.182 24.2835 28.6279 31.438 27.9608 32.1427C27.6289 32.493 26.516 33.016 26.0551 33.2613C25.4357 33.5945 24.8122 33.9197 24.1848 34.237C23.9256 34.3678 23.3046 34.6901 23.0596 34.7583C22.4959 34.915 21.617 34.9522 21.0139 34.9977C19.6362 35.1013 18.257 35.186 16.8768 35.2516C16.1871 35.3164 15.4797 35.3231 14.7876 35.3511C13.7059 35.3949 12.5571 35.4723 11.4805 35.3388C10.2955 35.1918 9.09491 34.853 7.94159 34.5502C7.43426 34.4169 6.4619 34.2088 6.03944 33.9705C5.8449 33.8607 5.66553 33.706 5.51362 33.5431C4.62965 32.5959 0.287782 26.7477 0.0218413 25.6817C-0.0281901 25.4811 0.0153889 25.266 0.0755049 25.0719C0.201156 24.6662 0.425836 24.2827 0.622219 23.9075C0.856229 23.45 1.09991 22.9974 1.35311 22.5502C1.31503 22.2647 1.31003 21.9781 1.2988 21.6912C1.21086 19.441 2.09998 17.8675 4.10866 16.8318C4.0607 16.7179 4.01489 16.6032 3.97125 16.4876C3.35942 14.8186 3.94136 12.833 5.17259 11.6023C5.90301 10.8722 6.62744 10.4736 7.58528 10.1345C7.45837 9.90625 7.364 9.6614 7.30489 9.40705C6.91313 7.68755 8.6468 6.04218 10.0096 5.32375C11.3409 4.62197 12.5743 4.55672 13.4474 3.14712C13.7827 2.62398 14.0128 1.87806 13.7273 1.27914C13.5187 0.841484 13.0724 0.149759 13.8995 0Z", fill: "#000" }),
|
|
920
|
+
/* @__PURE__ */ t("path", { d: "M25.0807 14.6205C25.2332 14.642 25.4081 14.697 25.5547 14.7478C27.0367 15.2498 28.1387 16.5043 28.4454 18.0387C28.5114 18.3656 28.5496 19.115 28.6901 19.3511C29.3005 20.3766 30.1456 21.38 30.6623 22.4566C30.6129 22.6815 30.5542 22.9041 30.4861 23.1243C29.8215 25.3353 28.9075 27.6145 28.0485 29.761C27.8691 30.2091 27.5417 31.0469 27.2786 31.4246C27.187 31.5561 26.3551 31.9919 26.1609 32.0961C25.3799 32.5191 24.5929 32.9317 23.8004 33.3331C23.632 33.4177 22.8677 33.8055 22.7135 33.832C21.9757 33.9574 21.024 34.0024 20.2787 34.0544C18.7232 34.1588 17.1667 34.2493 15.6096 34.3256C14.374 34.3907 12.9149 34.4594 11.6888 34.3767C11.2988 34.3502 10.2375 34.0982 9.85025 34.0066C8.84222 33.7708 7.84134 33.5054 6.84887 33.2107C6.73713 33.1769 6.62008 33.1454 6.51312 33.0984C5.87472 32.8182 1.34265 26.4103 0.951054 25.4716C1.15794 24.8722 1.58615 24.1741 1.88246 23.6039C2.26363 22.8706 2.37311 22.7955 2.28489 21.9429C2.21273 21.2456 2.28724 20.3959 2.55295 19.7394C3.02735 18.5678 3.9414 17.9502 5.07171 17.4806C5.96269 17.9451 7.16512 18.1158 8.15812 18.2298C12.97 18.7818 21.2156 17.737 25.0807 14.6205Z", fill: "#fff" }),
|
|
921
|
+
/* @__PURE__ */ t("path", { d: "M8.98326 22.2387C10.5052 22.0653 11.8798 23.1581 12.0536 24.6802C12.2274 26.2021 11.1346 27.5768 9.61263 27.7508C8.09046 27.9246 6.71551 26.8318 6.54169 25.3096C6.36788 23.7874 7.46106 22.4125 8.98326 22.2387Z", fill: "#000" }),
|
|
922
|
+
/* @__PURE__ */ t("path", { d: "M9.18321 22.9667C10.2958 22.9019 11.2536 23.7441 11.3315 24.8559C11.4093 25.9677 10.5783 26.9351 9.46753 27.0262C8.73731 27.0857 8.03134 26.7483 7.61922 26.1426C7.2071 25.537 7.15243 24.7562 7.47608 24.0992C7.79976 23.4419 8.45179 23.0092 9.18321 22.9667Z", fill: "#fff" }),
|
|
923
|
+
/* @__PURE__ */ t("path", { d: "M8.45008 24.8124C8.74982 24.7364 9.05389 24.9196 9.12714 25.2199C9.20038 25.5202 9.0147 25.8228 8.71373 25.8934C8.41631 25.9633 8.11818 25.7803 8.0458 25.4836C7.97343 25.1867 8.15389 24.8872 8.45008 24.8124Z", fill: "#000" }),
|
|
924
|
+
/* @__PURE__ */ t("path", { d: "M22.5989 21.1479C24.1135 20.9534 25.5 22.0208 25.6997 23.5346C25.8994 25.0484 24.8371 26.4387 23.3241 26.6438C21.8031 26.8499 20.4044 25.7811 20.2035 24.2595C20.0029 22.7382 21.0767 21.3431 22.5989 21.1479Z", fill: "#000" }),
|
|
925
|
+
/* @__PURE__ */ t("path", { d: "M22.7819 21.8753C23.9009 21.7798 24.8859 22.6086 24.9829 23.7274C25.0798 24.8462 24.2521 25.8323 23.1336 25.9306C22.0128 26.0289 21.0248 25.1995 20.9278 24.0788C20.8306 22.9583 21.6611 21.9711 22.7819 21.8753Z", fill: "#fff" }),
|
|
926
|
+
/* @__PURE__ */ t("path", { d: "M22.1132 23.6648C22.4112 23.6397 22.6749 23.8567 22.7073 24.1539C22.74 24.4512 22.5297 24.7202 22.2333 24.7604C22.035 24.7872 21.8375 24.7043 21.7176 24.5436C21.5978 24.3833 21.5746 24.1704 21.6567 23.9877C21.7388 23.805 21.9137 23.6816 22.1132 23.6648Z", fill: "#000" }),
|
|
927
|
+
/* @__PURE__ */ t("path", { d: "M17.9874 30.7494C18.1726 30.7597 18.4746 30.8645 18.4031 31.1173C18.317 31.4125 18.0016 31.5511 17.7377 31.6491C17.0926 31.8885 16.5205 31.8629 15.8716 31.6754C15.6319 31.6008 15.2191 31.374 15.5004 31.0226C15.6638 30.8686 15.9381 30.9256 16.1074 30.9896C16.8896 31.2868 17.2832 31.0228 17.9874 30.7494Z", fill: "#000" }),
|
|
928
|
+
/* @__PURE__ */ t("path", { d: "M14.7521 1.30984C16.3474 1.89823 18.5031 3.75971 19.589 5.0774C20.0077 5.58556 20.2541 6.3469 20.2072 6.98845C20.1865 7.269 20.0655 7.81231 20.2161 8.04453C20.3974 8.32458 20.9768 8.20043 21.2743 8.19708C21.4461 8.19655 21.6176 8.21133 21.7866 8.24125C23.6216 8.57513 25.6109 10.4973 25.1963 12.4885C25.0201 13.3344 24.691 13.7843 23.9552 14.2405C19.7929 16.8209 14.5411 17.3964 9.73846 17.4418C8.29389 17.4472 6.70587 17.2598 5.34005 16.9979C5.22247 16.776 5.06296 16.5761 4.9562 16.3354C4.55569 15.4323 4.62899 14.5829 4.95519 13.6857C5.02718 13.5072 5.11143 13.3338 5.2073 13.1669C5.93191 11.8949 7.05176 11.2908 8.41233 10.9258C8.87527 11.106 9.3381 11.219 9.83126 11.2818C12.3923 11.6082 17.5003 10.9528 19.5683 9.34713C19.8027 9.16517 20.2404 8.78615 20.2792 8.47939C20.2382 8.38268 20.2689 8.41939 20.1915 8.35933C19.9136 8.45556 19.6526 8.60488 19.3884 8.73287C19.1191 8.86333 18.8409 8.9794 18.5635 9.09161C17.4662 9.53539 16.2588 9.82164 15.0967 10.0351C13.7928 10.2747 9.83361 10.782 8.75046 10.0013C8.452 9.78616 8.27704 9.45608 8.22556 9.0962C8.16067 8.64242 8.33523 8.23133 8.57268 7.85686C9.14149 6.95971 10.115 6.30416 11.0824 5.90315C11.6452 5.66984 12.2226 5.48368 12.7487 5.16938C13.265 4.85931 13.7152 4.45065 14.0737 3.9667C14.6872 3.12614 14.9135 2.32815 14.7521 1.30984Z", fill: "#fff" }),
|
|
929
|
+
/* @__PURE__ */ t("path", { d: "M9.46477 29.1124C9.64828 29.0465 9.85084 29.1395 9.92051 29.3216C9.99015 29.5038 9.90131 29.708 9.72063 29.7814C9.60045 29.83 9.46332 29.8102 9.36209 29.7292C9.26085 29.6482 9.21135 29.5186 9.23266 29.3906C9.25395 29.2627 9.34273 29.1562 9.46477 29.1124Z", fill: "#000" }),
|
|
930
|
+
/* @__PURE__ */ t("path", { d: "M10.3005 30.2032C10.4842 30.1303 10.6922 30.2211 10.7638 30.4052C10.8354 30.5896 10.7432 30.7969 10.5584 30.8672C10.3754 30.9368 10.1705 30.8457 10.0997 30.6633C10.0288 30.4806 10.1184 30.2753 10.3005 30.2032Z", fill: "#000" }),
|
|
931
|
+
/* @__PURE__ */ t("path", { d: "M22.6972 29.2249C22.8892 29.1881 23.0752 29.3135 23.1126 29.5054C23.1503 29.6973 23.0255 29.8836 22.8336 29.9219C22.6408 29.9602 22.4536 29.8345 22.4159 29.6417C22.3782 29.449 22.5042 29.2621 22.6972 29.2249Z", fill: "#000" }),
|
|
932
|
+
/* @__PURE__ */ t("path", { d: "M11.0506 29.0023C11.244 28.9777 11.4204 29.1155 11.4437 29.309C11.4669 29.5024 11.3282 29.6781 11.1345 29.6999C10.9426 29.7216 10.7692 29.5845 10.7462 29.3929C10.7231 29.2012 10.859 29.0269 11.0506 29.0023Z", fill: "#000" }),
|
|
933
|
+
/* @__PURE__ */ t("path", { d: "M21.8732 28.1598C22.0612 28.1131 22.2512 28.2282 22.297 28.4165C22.3428 28.6045 22.2271 28.7939 22.0389 28.8392C21.8517 28.8839 21.6634 28.7688 21.6179 28.5819C21.5723 28.3947 21.6866 28.2062 21.8732 28.1598Z", fill: "#000" }),
|
|
934
|
+
/* @__PURE__ */ t("path", { d: "M23.4048 28.0246C23.5886 28.009 23.752 28.1411 23.7749 28.3243C23.7979 28.5073 23.6719 28.6758 23.4897 28.7059C23.3654 28.7263 23.24 28.6772 23.1626 28.5777C23.0855 28.4783 23.0688 28.3445 23.1193 28.2291C23.1699 28.1137 23.2794 28.0352 23.4048 28.0246Z", fill: "#000" }),
|
|
935
|
+
/* @__PURE__ */ t("path", { d: "M6.31167 19.7237C6.48316 19.6871 6.65225 19.7955 6.69027 19.9668C6.72829 20.138 6.62102 20.3079 6.45006 20.3472C6.27734 20.3869 6.1054 20.2782 6.06696 20.1053C6.02855 19.9321 6.13839 19.7612 6.31167 19.7237Z", fill: "#000" }),
|
|
936
|
+
/* @__PURE__ */ t("path", { d: "M4.9703 20.3422C5.13157 20.273 5.31848 20.3478 5.3874 20.5093C5.45632 20.6708 5.38106 20.8574 5.21943 20.9261C5.05835 20.9942 4.87239 20.9194 4.8037 20.7585C4.73501 20.5976 4.80954 20.4112 4.9703 20.3422Z", fill: "#000" }),
|
|
937
|
+
/* @__PURE__ */ t("path", { d: "M20.1178 12.2939C20.2874 12.2403 20.4684 12.3324 20.5248 12.501C20.5812 12.6695 20.4921 12.8521 20.3245 12.9113C20.2136 12.9504 20.0902 12.9267 20.0019 12.8493C19.9133 12.7719 19.8734 12.6527 19.8974 12.5376C19.9214 12.4225 20.0058 12.3294 20.1178 12.2939Z", fill: "#000" }),
|
|
938
|
+
/* @__PURE__ */ t("path", { d: "M11.4818 8.8322C11.6516 8.77991 11.8317 8.87489 11.8845 9.04456C11.9372 9.21424 11.8428 9.39459 11.6732 9.44783C11.503 9.50127 11.3218 9.40632 11.2689 9.236C11.2159 9.06568 11.3113 8.88472 11.4818 8.8322Z", fill: "#000" }),
|
|
939
|
+
/* @__PURE__ */ t("path", { d: "M10.1484 8.52396C10.3181 8.48644 10.4869 8.59081 10.5292 8.7594C10.5715 8.92801 10.4719 9.09964 10.3046 9.14669C10.192 9.17831 10.0712 9.14629 9.98913 9.06308C9.90703 8.97989 9.87661 8.85865 9.90971 8.74654C9.94284 8.63444 10.0342 8.54919 10.1484 8.52396Z", fill: "#000" }),
|
|
940
|
+
/* @__PURE__ */ t("path", { d: "M19.1241 13.2988C19.235 13.2642 19.356 13.2924 19.4401 13.3724C19.5244 13.4524 19.5588 13.5717 19.53 13.6843C19.501 13.7968 19.4135 13.885 19.3012 13.9146C19.1328 13.9591 18.9596 13.8609 18.9115 13.6934C18.8632 13.5259 18.9576 13.3506 19.1241 13.2988Z", fill: "#000" }),
|
|
941
|
+
/* @__PURE__ */ t("path", { d: "M20.9452 13.3003C21.1137 13.286 21.2637 13.4059 21.2869 13.5732C21.3101 13.7405 21.1983 13.8967 21.0324 13.9287C20.917 13.951 20.7989 13.9077 20.7251 13.8163C20.6511 13.7249 20.6338 13.6001 20.6801 13.4921C20.7262 13.384 20.8282 13.3102 20.9452 13.3003Z", fill: "#000" }),
|
|
942
|
+
/* @__PURE__ */ t("path", { d: "M11.2403 7.6863C11.3511 7.65928 11.4678 7.69384 11.546 7.77678C11.6242 7.85972 11.6519 7.97827 11.6184 8.08724C11.5849 8.19622 11.4955 8.27885 11.3842 8.3036C11.2146 8.34134 11.0462 8.23544 11.0068 8.06618C10.9673 7.89693 11.0715 7.72747 11.2403 7.6863Z", fill: "#000" }),
|
|
943
|
+
/* @__PURE__ */ t("path", { d: "M21.9799 12.3249C22.1475 12.279 22.3207 12.3772 22.3674 12.5445C22.414 12.7118 22.3165 12.8854 22.1495 12.9328C21.9813 12.9805 21.8064 12.8824 21.7595 12.714C21.7126 12.5456 21.8115 12.3711 21.9799 12.3249Z", fill: "#000" })
|
|
944
|
+
] }), ir = ({ size: e = 14 }) => V(e, /* @__PURE__ */ t("path", { d: "M20 6L9 17l-5-5" }));
|
|
945
|
+
function Re({ code: e, src: n, size: a = 20 }) {
|
|
946
|
+
const [i, o] = k(!1), [r, d] = k(!1), l = e ? or[Number(e[2]) % 10] : "var(--pnb-line)";
|
|
947
|
+
return /* @__PURE__ */ t("span", { class: "face", style: { width: `${a}px`, height: `${a}px` }, "aria-hidden": "true", children: [
|
|
948
|
+
!i && /* @__PURE__ */ t("svg", { class: "face__stand-in", viewBox: "0 0 160 160", width: a, height: a, children: /* @__PURE__ */ t("path", { fill: l, d: rr }) }),
|
|
949
|
+
n && !r && /* @__PURE__ */ t(
|
|
950
|
+
"img",
|
|
951
|
+
{
|
|
952
|
+
class: `face__img${i ? "" : " face__img--loading"}`,
|
|
953
|
+
src: n,
|
|
954
|
+
alt: "",
|
|
955
|
+
width: a,
|
|
956
|
+
height: a,
|
|
957
|
+
loading: "lazy",
|
|
958
|
+
onLoad: () => o(!0),
|
|
959
|
+
onError: () => d(!0)
|
|
960
|
+
}
|
|
961
|
+
)
|
|
962
|
+
] });
|
|
963
|
+
}
|
|
964
|
+
const rr = "M125.8 16.67l31.77 55.01c2.86 4.95 2.86 11.05 0 16L125.8 142.7c-2.85 4.95-8.14 8-13.85 8H48.42c-5.72 0-11-3.05-13.85-8L2.8 87.69c-2.85-4.95-2.85-11.05 0-16L34.57 16.67c2.86-4.95 8.14-8 13.85-8h63.53c5.72 0 11 3.05 13.85 8z", or = ["#FC8702", "#D94432", "#E9B213", "#1F2348", "#0582CA", "#5F4B8B", "#21BCA5", "#FA7268", "#88B04B", "#795548"], ue = {
|
|
965
|
+
bug: {
|
|
966
|
+
icon: (e) => /* @__PURE__ */ t(Wi, { size: e }),
|
|
967
|
+
label: "board.kindBug",
|
|
968
|
+
plural: "board.bugs",
|
|
969
|
+
tile: "board.tileBug",
|
|
970
|
+
note: "board.tileBugNote"
|
|
971
|
+
},
|
|
972
|
+
idea: {
|
|
973
|
+
icon: (e) => /* @__PURE__ */ t(Yi, { size: e }),
|
|
974
|
+
label: "board.kindIdea",
|
|
975
|
+
plural: "board.ideas",
|
|
976
|
+
tile: "board.tileIdea",
|
|
977
|
+
note: "board.tileIdeaNote"
|
|
978
|
+
},
|
|
979
|
+
review: {
|
|
980
|
+
icon: (e) => /* @__PURE__ */ t(Zi, { size: e }),
|
|
981
|
+
label: "board.kindReview",
|
|
982
|
+
plural: "board.reviews",
|
|
983
|
+
tile: "board.tileReview",
|
|
984
|
+
note: "board.tileReviewNote"
|
|
985
|
+
}
|
|
986
|
+
};
|
|
987
|
+
function ma({ n: e, t: n, size: a = 16 }) {
|
|
988
|
+
const i = Math.round(e * 2) / 2;
|
|
989
|
+
return /* @__PURE__ */ t("span", { class: "stars", role: "img", "aria-label": n("board.stars", { n: i }), children: [1, 2, 3, 4, 5].map((o) => {
|
|
990
|
+
const r = Math.max(0, Math.min(1, i - (o - 1)));
|
|
991
|
+
return /* @__PURE__ */ t("span", { class: "stars__one", children: [
|
|
992
|
+
/* @__PURE__ */ t(Jn, { size: a, filled: !0 }),
|
|
993
|
+
r > 0 && /* @__PURE__ */ t("span", { class: "stars__fill", style: { width: `${r * 100}%` }, children: /* @__PURE__ */ t(Jn, { size: a, filled: !0 }) })
|
|
994
|
+
] }, o);
|
|
995
|
+
}) });
|
|
996
|
+
}
|
|
997
|
+
const sr = {
|
|
998
|
+
planned: { icon: () => /* @__PURE__ */ t(er, {}), label: "board.statusPlanned" },
|
|
999
|
+
done: { icon: () => /* @__PURE__ */ t(Cn, {}), label: "board.statusDone" },
|
|
1000
|
+
declined: { icon: () => /* @__PURE__ */ t(nr, {}), label: "board.statusDeclined" }
|
|
1001
|
+
};
|
|
1002
|
+
function Sn(e) {
|
|
1003
|
+
const n = new Set(e.filter((a) => a !== "review"));
|
|
1004
|
+
return n.size === 1 && n.has("bug") ? "board.statusFixed" : n.size === 1 && n.has("idea") ? "board.statusDone" : "board.statusFixedOrDone";
|
|
1005
|
+
}
|
|
1006
|
+
function ht(e, n) {
|
|
1007
|
+
return e.status === "done" ? Sn([e.kind]) : n;
|
|
1008
|
+
}
|
|
1009
|
+
function an({ tone: e, icon: n, label: a }) {
|
|
1010
|
+
return /* @__PURE__ */ t("span", { class: "badge", children: [
|
|
1011
|
+
/* @__PURE__ */ t("span", { class: `badge__dot badge__dot--${e}`, children: n() }),
|
|
1012
|
+
a
|
|
1013
|
+
] });
|
|
1014
|
+
}
|
|
1015
|
+
function wa({ site: e, size: n = 14 }) {
|
|
1016
|
+
return e === "GitLab" ? /* @__PURE__ */ t(Gi, { size: n }) : /* @__PURE__ */ t(Xi, { size: n });
|
|
1017
|
+
}
|
|
1018
|
+
function ka({ href: e, t: n, label: a = "fix.view" }) {
|
|
1019
|
+
const i = He(e), o = Qt(e);
|
|
1020
|
+
return !i || !o ? null : /* @__PURE__ */ t(
|
|
1021
|
+
"a",
|
|
1022
|
+
{
|
|
1023
|
+
class: "code-link",
|
|
1024
|
+
href: i,
|
|
1025
|
+
target: "_blank",
|
|
1026
|
+
rel: "noopener noreferrer",
|
|
1027
|
+
onClick: (r) => r.stopPropagation(),
|
|
1028
|
+
children: [
|
|
1029
|
+
/* @__PURE__ */ t(wa, { site: o }),
|
|
1030
|
+
/* @__PURE__ */ t("span", { children: n(a, { site: o }) }),
|
|
1031
|
+
/* @__PURE__ */ t(_a, { size: 12 })
|
|
1032
|
+
]
|
|
1033
|
+
}
|
|
1034
|
+
);
|
|
1035
|
+
}
|
|
1036
|
+
function lr({ post: e, t: n }) {
|
|
1037
|
+
const a = e.status === "done" ? e.fix : void 0;
|
|
1038
|
+
return !a || !a.version && !a.link ? null : /* @__PURE__ */ t("div", { class: "fix", children: [
|
|
1039
|
+
a.version && /* @__PURE__ */ t("span", { class: "fix__version", children: n(e.kind === "idea" ? "fix.inIdea" : "fix.in", { version: a.version }) }),
|
|
1040
|
+
a.version && a.link && /* @__PURE__ */ t("span", { class: "fix__dot", "aria-hidden": "true", children: "·" }),
|
|
1041
|
+
a.link && /* @__PURE__ */ t(ka, { href: a.link, t: n })
|
|
1042
|
+
] });
|
|
1043
|
+
}
|
|
1044
|
+
function dr({
|
|
1045
|
+
votes: e,
|
|
1046
|
+
voted: n,
|
|
1047
|
+
onVote: a,
|
|
1048
|
+
t: i,
|
|
1049
|
+
label: o = "board.upvote"
|
|
1050
|
+
}) {
|
|
1051
|
+
return /* @__PURE__ */ t(
|
|
1052
|
+
"button",
|
|
1053
|
+
{
|
|
1054
|
+
type: "button",
|
|
1055
|
+
class: "vote",
|
|
1056
|
+
"aria-label": i(o),
|
|
1057
|
+
"aria-pressed": n,
|
|
1058
|
+
onClick: (r) => {
|
|
1059
|
+
r.stopPropagation(), a(!n);
|
|
1060
|
+
},
|
|
1061
|
+
children: [
|
|
1062
|
+
/* @__PURE__ */ t(ut, {}),
|
|
1063
|
+
/* @__PURE__ */ t("span", { children: e })
|
|
1064
|
+
]
|
|
1065
|
+
}
|
|
1066
|
+
);
|
|
1067
|
+
}
|
|
1068
|
+
function ft({
|
|
1069
|
+
post: e,
|
|
1070
|
+
t: n,
|
|
1071
|
+
locale: a,
|
|
1072
|
+
onVote: i,
|
|
1073
|
+
onDelete: o,
|
|
1074
|
+
onManage: r,
|
|
1075
|
+
onTalk: d,
|
|
1076
|
+
shotUrl: l,
|
|
1077
|
+
onShot: b,
|
|
1078
|
+
faceUrl: p,
|
|
1079
|
+
fresh: h,
|
|
1080
|
+
query: f = "",
|
|
1081
|
+
found: c,
|
|
1082
|
+
bare: g
|
|
1083
|
+
}) {
|
|
1084
|
+
const [v, w] = k(!1), _ = ue[e.kind], x = sr[e.status], m = ga(e.at, a), y = on(e.thread).length;
|
|
1085
|
+
return /* @__PURE__ */ t(
|
|
1086
|
+
"li",
|
|
1087
|
+
{
|
|
1088
|
+
class: `card${r ? " card--owner" : ""}${e.hidden || e.pending ? " card--hidden" : ""}`,
|
|
1089
|
+
onClick: r,
|
|
1090
|
+
role: r ? "button" : void 0,
|
|
1091
|
+
tabIndex: r ? 0 : void 0,
|
|
1092
|
+
"aria-label": r ? n("board.manage") : void 0,
|
|
1093
|
+
onKeyDown: r ? (S) => {
|
|
1094
|
+
S.target === S.currentTarget && (S.key === "Enter" || S.key === " ") && (S.preventDefault(), r());
|
|
1095
|
+
} : void 0,
|
|
1096
|
+
children: [
|
|
1097
|
+
/* @__PURE__ */ t("div", { class: "card__head", children: [
|
|
1098
|
+
/* @__PURE__ */ t(an, { tone: e.kind, icon: _.icon, label: n(_.label) }),
|
|
1099
|
+
x && /* @__PURE__ */ t(an, { tone: e.status, icon: x.icon, label: n(ht(e, x.label)) }),
|
|
1100
|
+
e.rating !== void 0 && /* @__PURE__ */ t(ma, { n: e.rating, t: n }),
|
|
1101
|
+
e.shot && !l && /* @__PURE__ */ t("span", { class: "card__shot", title: n("board.shot"), "aria-label": n("board.shot"), children: /* @__PURE__ */ t(va, { size: 16 }) }),
|
|
1102
|
+
e.hidden && /* @__PURE__ */ t("span", { class: "card__off", children: n("board.hidden") }),
|
|
1103
|
+
e.pending && /* @__PURE__ */ t("span", { class: "card__wait", children: n("board.waiting") }),
|
|
1104
|
+
h && /* @__PURE__ */ t("span", { class: "card__new", children: n("owner.newAnswer") }),
|
|
1105
|
+
/* @__PURE__ */ t("span", { class: "card__when", children: "date" in m ? m.date : n(m.key, m.vars) })
|
|
1106
|
+
] }),
|
|
1107
|
+
/* @__PURE__ */ t("p", { class: "card__text", children: /* @__PURE__ */ t(Wt, { text: e.text, query: f }) }),
|
|
1108
|
+
c && /* @__PURE__ */ t("p", { class: "card__found", children: [
|
|
1109
|
+
n("search.inThread"),
|
|
1110
|
+
" “",
|
|
1111
|
+
/* @__PURE__ */ t(Wt, { text: qi(c.text, f), query: f }),
|
|
1112
|
+
"”"
|
|
1113
|
+
] }),
|
|
1114
|
+
l && !v && !g && /* @__PURE__ */ t(
|
|
1115
|
+
"button",
|
|
1116
|
+
{
|
|
1117
|
+
type: "button",
|
|
1118
|
+
class: "card__pic",
|
|
1119
|
+
"aria-label": n("board.shotOpen"),
|
|
1120
|
+
onClick: (S) => {
|
|
1121
|
+
S.stopPropagation(), b?.();
|
|
1122
|
+
},
|
|
1123
|
+
children: /* @__PURE__ */ t("img", { src: l, alt: n("board.shot"), loading: "lazy", onError: () => w(!0) })
|
|
1124
|
+
}
|
|
1125
|
+
),
|
|
1126
|
+
/* @__PURE__ */ t(lr, { post: e, t: n }),
|
|
1127
|
+
!g && /* @__PURE__ */ t("div", { class: "card__foot", children: [
|
|
1128
|
+
/* @__PURE__ */ t("span", { class: "card__who", children: [
|
|
1129
|
+
e.face && /* @__PURE__ */ t(Re, { code: e.face, src: p }),
|
|
1130
|
+
/* @__PURE__ */ t("span", { class: "card__name", children: e.mine ? n("board.byYou") : e.who ?? e.short ?? (e.face ? "" : n("board.anon")) })
|
|
1131
|
+
] }),
|
|
1132
|
+
o && /* @__PURE__ */ t(
|
|
1133
|
+
"button",
|
|
1134
|
+
{
|
|
1135
|
+
type: "button",
|
|
1136
|
+
class: "icon-btn card__bin",
|
|
1137
|
+
"aria-label": n("board.delete"),
|
|
1138
|
+
onClick: (S) => {
|
|
1139
|
+
S.stopPropagation(), o();
|
|
1140
|
+
},
|
|
1141
|
+
children: /* @__PURE__ */ t(bt, {})
|
|
1142
|
+
}
|
|
1143
|
+
),
|
|
1144
|
+
y > 0 && (d ? /* @__PURE__ */ t(
|
|
1145
|
+
"button",
|
|
1146
|
+
{
|
|
1147
|
+
type: "button",
|
|
1148
|
+
class: "card__talk",
|
|
1149
|
+
"aria-label": `${n("talk.open")}: ${n("talk.count", { n: y })}`,
|
|
1150
|
+
onClick: (S) => {
|
|
1151
|
+
S.stopPropagation(), d();
|
|
1152
|
+
},
|
|
1153
|
+
children: [
|
|
1154
|
+
/* @__PURE__ */ t(jt, {}),
|
|
1155
|
+
/* @__PURE__ */ t("span", { children: y })
|
|
1156
|
+
]
|
|
1157
|
+
}
|
|
1158
|
+
) : /* @__PURE__ */ t("span", { class: "card__talk", role: "img", "aria-label": n("talk.count", { n: y }), children: [
|
|
1159
|
+
/* @__PURE__ */ t(jt, {}),
|
|
1160
|
+
/* @__PURE__ */ t("span", { children: y })
|
|
1161
|
+
] })),
|
|
1162
|
+
i ? /* @__PURE__ */ t(
|
|
1163
|
+
dr,
|
|
1164
|
+
{
|
|
1165
|
+
votes: e.votes,
|
|
1166
|
+
voted: e.voted,
|
|
1167
|
+
onVote: i,
|
|
1168
|
+
t: n,
|
|
1169
|
+
label: e.kind === "review" ? "board.helpful" : "board.upvote"
|
|
1170
|
+
}
|
|
1171
|
+
) : /* @__PURE__ */ t("span", { class: "vote vote--count", role: "img", "aria-label": n("board.votes", { n: e.votes }), children: [
|
|
1172
|
+
/* @__PURE__ */ t(ut, {}),
|
|
1173
|
+
/* @__PURE__ */ t("span", { children: e.votes })
|
|
1174
|
+
] })
|
|
1175
|
+
] })
|
|
1176
|
+
]
|
|
1177
|
+
}
|
|
1178
|
+
);
|
|
1179
|
+
}
|
|
1180
|
+
function Wt({ text: e, query: n }) {
|
|
1181
|
+
return n.trim() ? /* @__PURE__ */ t(F, { children: Ii(e, n).map((a, i) => a.hit ? /* @__PURE__ */ t("mark", { children: a.text }, i) : a.text) }) : /* @__PURE__ */ t(F, { children: e });
|
|
1182
|
+
}
|
|
1183
|
+
function cr({
|
|
1184
|
+
t: e,
|
|
1185
|
+
kinds: n,
|
|
1186
|
+
appName: a,
|
|
1187
|
+
reviewed: i,
|
|
1188
|
+
onPick: o,
|
|
1189
|
+
onBoard: r
|
|
1190
|
+
}) {
|
|
1191
|
+
return /* @__PURE__ */ t("div", { class: "choose", children: [
|
|
1192
|
+
/* @__PURE__ */ t("h3", { class: "choose__title", children: e("board.chooseTitle") }),
|
|
1193
|
+
/* @__PURE__ */ t("div", { class: `tiles${n.length % 2 ? " tiles--odd" : ""}`, children: n.map((d) => {
|
|
1194
|
+
const l = d === "review" && i;
|
|
1195
|
+
return /* @__PURE__ */ t("button", { type: "button", class: `tile tile--${d}`, disabled: l, onClick: () => o(d), children: [
|
|
1196
|
+
/* @__PURE__ */ t("span", { class: "tile__icon", children: ue[d].icon(28) }),
|
|
1197
|
+
/* @__PURE__ */ t("span", { class: "tile__label", children: e(ue[d].tile) }),
|
|
1198
|
+
/* @__PURE__ */ t("span", { class: "tile__note", children: l ? e("board.tileReviewDone", { app: a }) : e(ue[d].note, { app: a }) })
|
|
1199
|
+
] }, d);
|
|
1200
|
+
}) }),
|
|
1201
|
+
r && /* @__PURE__ */ t("div", { class: "choose__board", children: /* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: r, children: e("board.seeBoard") }) })
|
|
1202
|
+
] });
|
|
1203
|
+
}
|
|
1204
|
+
function pr({
|
|
1205
|
+
t: e,
|
|
1206
|
+
onBack: n,
|
|
1207
|
+
waiting: a,
|
|
1208
|
+
appName: i
|
|
1209
|
+
}) {
|
|
1210
|
+
return /* @__PURE__ */ t("div", { class: "sent", role: "status", children: [
|
|
1211
|
+
/* @__PURE__ */ t("span", { class: "sent__check", children: /* @__PURE__ */ t(Cn, { size: 44 }) }),
|
|
1212
|
+
/* @__PURE__ */ t("h3", { class: "sent__title", children: e("board.sent") }),
|
|
1213
|
+
/* @__PURE__ */ t("p", { class: "sent__note", children: a ? e("board.sentWaiting", { app: i ?? "" }) : e("board.sentNote") }),
|
|
1214
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn sent__back", onClick: n, children: e("board.sentBack") })
|
|
1215
|
+
] });
|
|
1216
|
+
}
|
|
1217
|
+
function br({
|
|
1218
|
+
t: e,
|
|
1219
|
+
kind: n,
|
|
1220
|
+
posts: a,
|
|
1221
|
+
likeThis: i,
|
|
1222
|
+
left: o,
|
|
1223
|
+
perDay: r,
|
|
1224
|
+
textMax: d,
|
|
1225
|
+
appName: l,
|
|
1226
|
+
screenshots: b,
|
|
1227
|
+
onMeToo: p,
|
|
1228
|
+
onSend: h
|
|
1229
|
+
}) {
|
|
1230
|
+
const f = n === "review", [c, g] = k(""), [v, w] = k(0), [_, x] = k(null), [m, y] = k(!1), S = b === "board", [M, O] = k(!1), [L, D] = k(!1), [Y, I] = k(null), Z = Se(null), xe = de(() => a.filter((T) => T.kind !== "review"), [a]), N = de(() => f ? [] : i(xe, c), [f, xe, c, i]), se = c.trim(), U = o !== null && o <= 0, Me = !!_ && S && !m;
|
|
1231
|
+
G(() => () => void (_ && URL.revokeObjectURL(_.preview)), [_]);
|
|
1232
|
+
const Te = async (T) => {
|
|
1233
|
+
if (!T) return;
|
|
1234
|
+
O(!0), I(null);
|
|
1235
|
+
const X = await fr(T);
|
|
1236
|
+
O(!1), X ? (x(X), y(!1)) : I({ key: "board.shotFailed" });
|
|
1237
|
+
}, We = async () => {
|
|
1238
|
+
D(!0), I(null);
|
|
1239
|
+
const T = await h({
|
|
1240
|
+
kind: n,
|
|
1241
|
+
text: se,
|
|
1242
|
+
...f ? { rating: v } : {},
|
|
1243
|
+
..._ ? { shot: { ..._, board: S && m } } : {}
|
|
1244
|
+
});
|
|
1245
|
+
T && (I(T.key ? { key: T.key, vars: T.vars } : null), D(!1));
|
|
1246
|
+
};
|
|
1247
|
+
return /* @__PURE__ */ t("div", { class: "compose", children: [
|
|
1248
|
+
/* @__PURE__ */ t("span", { class: `compose__kind compose__kind--${n}`, children: [
|
|
1249
|
+
/* @__PURE__ */ t("span", { class: `badge__dot badge__dot--${n}`, children: ue[n].icon() }),
|
|
1250
|
+
e(ue[n].tile)
|
|
1251
|
+
] }),
|
|
1252
|
+
f && /* @__PURE__ */ t(F, { children: [
|
|
1253
|
+
/* @__PURE__ */ t("span", { class: "label", children: e("board.yourRating") }),
|
|
1254
|
+
/* @__PURE__ */ t("div", { class: "rate", role: "radiogroup", "aria-label": e("board.yourRating"), children: [1, 2, 3, 4, 5].map((T) => /* @__PURE__ */ t(
|
|
1255
|
+
"button",
|
|
1256
|
+
{
|
|
1257
|
+
type: "button",
|
|
1258
|
+
role: "radio",
|
|
1259
|
+
class: `rate__star${T <= v ? " rate__star--on" : ""}`,
|
|
1260
|
+
"aria-checked": v === T,
|
|
1261
|
+
"aria-label": e("board.stars", { n: T }),
|
|
1262
|
+
onClick: () => w(T),
|
|
1263
|
+
children: /* @__PURE__ */ t(Jn, { size: 36, filled: T <= v })
|
|
1264
|
+
},
|
|
1265
|
+
T
|
|
1266
|
+
)) })
|
|
1267
|
+
] }),
|
|
1268
|
+
/* @__PURE__ */ t("p", { class: "public", children: e("board.public", { app: l }) }),
|
|
1269
|
+
/* @__PURE__ */ t(
|
|
1270
|
+
"textarea",
|
|
1271
|
+
{
|
|
1272
|
+
class: "field",
|
|
1273
|
+
value: c,
|
|
1274
|
+
maxLength: d,
|
|
1275
|
+
placeholder: e(Yt[n], { app: l }),
|
|
1276
|
+
"aria-label": e(Yt[n], { app: l }),
|
|
1277
|
+
onInput: (T) => {
|
|
1278
|
+
g(T.target.value), I(null);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
),
|
|
1282
|
+
/* @__PURE__ */ t("span", { class: "count", children: d - c.length }),
|
|
1283
|
+
N.length > 0 && /* @__PURE__ */ t("div", { class: "alike", children: [
|
|
1284
|
+
/* @__PURE__ */ t("span", { class: "label", children: [
|
|
1285
|
+
e("board.likeThis"),
|
|
1286
|
+
" ",
|
|
1287
|
+
e("board.likeThisNote")
|
|
1288
|
+
] }),
|
|
1289
|
+
/* @__PURE__ */ t("ul", { class: "alike__list", children: N.map((T) => /* @__PURE__ */ t("li", { class: "alike__row", children: [
|
|
1290
|
+
/* @__PURE__ */ t("span", { class: "alike__body", children: [
|
|
1291
|
+
/* @__PURE__ */ t("span", { class: "alike__text", children: T.text }),
|
|
1292
|
+
/* @__PURE__ */ t("span", { class: "alike__meta", children: [
|
|
1293
|
+
e(ue[T.kind].label),
|
|
1294
|
+
...T.status !== "open" ? [e(ht(T, ur[T.status]))] : [],
|
|
1295
|
+
T.votes === 1 ? e("board.voteOne") : e("board.votes", { n: T.votes })
|
|
1296
|
+
].join(" · ") })
|
|
1297
|
+
] }),
|
|
1298
|
+
/* @__PURE__ */ t(
|
|
1299
|
+
"button",
|
|
1300
|
+
{
|
|
1301
|
+
type: "button",
|
|
1302
|
+
class: "me-too",
|
|
1303
|
+
"aria-pressed": T.voted,
|
|
1304
|
+
disabled: T.voted,
|
|
1305
|
+
onClick: () => p(T.id),
|
|
1306
|
+
children: [
|
|
1307
|
+
/* @__PURE__ */ t(ut, {}),
|
|
1308
|
+
e(T.voted ? "board.voted" : "board.meToo")
|
|
1309
|
+
]
|
|
1310
|
+
}
|
|
1311
|
+
)
|
|
1312
|
+
] }, T.id)) })
|
|
1313
|
+
] }),
|
|
1314
|
+
b !== "off" && bi(n) && /* @__PURE__ */ t("div", { class: "shot", children: [
|
|
1315
|
+
_ ? /* @__PURE__ */ t("div", { class: "shot__preview", children: [
|
|
1316
|
+
/* @__PURE__ */ t("img", { src: _.preview, alt: e("board.shot") }),
|
|
1317
|
+
/* @__PURE__ */ t(
|
|
1318
|
+
"button",
|
|
1319
|
+
{
|
|
1320
|
+
type: "button",
|
|
1321
|
+
class: "icon-btn shot__remove",
|
|
1322
|
+
"aria-label": e("board.shotRemove"),
|
|
1323
|
+
onClick: () => x(null),
|
|
1324
|
+
children: /* @__PURE__ */ t(bt, {})
|
|
1325
|
+
}
|
|
1326
|
+
)
|
|
1327
|
+
] }) : /* @__PURE__ */ t(
|
|
1328
|
+
"button",
|
|
1329
|
+
{
|
|
1330
|
+
type: "button",
|
|
1331
|
+
class: "shot__add",
|
|
1332
|
+
"aria-busy": M,
|
|
1333
|
+
disabled: M,
|
|
1334
|
+
onClick: () => Z.current?.click(),
|
|
1335
|
+
children: [
|
|
1336
|
+
M ? /* @__PURE__ */ t("span", { class: "spinner" }) : /* @__PURE__ */ t(va, {}),
|
|
1337
|
+
e("board.shotAdd")
|
|
1338
|
+
]
|
|
1339
|
+
}
|
|
1340
|
+
),
|
|
1341
|
+
/* @__PURE__ */ t("p", { class: "note", children: e(S ? "board.shotNoteBoard" : "board.shotNote", { app: l }) }),
|
|
1342
|
+
_ && S && /* @__PURE__ */ t("label", { class: "check", children: [
|
|
1343
|
+
/* @__PURE__ */ t(
|
|
1344
|
+
"input",
|
|
1345
|
+
{
|
|
1346
|
+
type: "checkbox",
|
|
1347
|
+
checked: m,
|
|
1348
|
+
onChange: (T) => y(T.target.checked)
|
|
1349
|
+
}
|
|
1350
|
+
),
|
|
1351
|
+
/* @__PURE__ */ t("span", { children: e("board.shotAgree") })
|
|
1352
|
+
] }),
|
|
1353
|
+
/* @__PURE__ */ t(
|
|
1354
|
+
"input",
|
|
1355
|
+
{
|
|
1356
|
+
ref: Z,
|
|
1357
|
+
type: "file",
|
|
1358
|
+
accept: "image/*",
|
|
1359
|
+
hidden: !0,
|
|
1360
|
+
onChange: (T) => {
|
|
1361
|
+
const X = T.target;
|
|
1362
|
+
Te(X.files?.[0]), X.value = "";
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
)
|
|
1366
|
+
] }),
|
|
1367
|
+
/* @__PURE__ */ t("div", { class: "send", children: [
|
|
1368
|
+
/* @__PURE__ */ t(
|
|
1369
|
+
"button",
|
|
1370
|
+
{
|
|
1371
|
+
type: "button",
|
|
1372
|
+
class: "btn",
|
|
1373
|
+
disabled: !se || U || L || M || Me || f && !v,
|
|
1374
|
+
"aria-busy": L,
|
|
1375
|
+
onClick: () => void We(),
|
|
1376
|
+
children: L ? /* @__PURE__ */ t("span", { class: "spinner" }) : e("board.send")
|
|
1377
|
+
}
|
|
1378
|
+
),
|
|
1379
|
+
/* @__PURE__ */ t("span", { class: `left${Y ? " left--bad" : ""}`, role: "status", children: Y ? e(Y.key, Y.vars) : o === null ? "" : U ? e("board.noneLeft", { max: r }) : e("board.left", { n: o, max: r }) })
|
|
1380
|
+
] })
|
|
1381
|
+
] });
|
|
1382
|
+
}
|
|
1383
|
+
const ur = {
|
|
1384
|
+
open: "board.statusOpen",
|
|
1385
|
+
planned: "board.statusPlanned",
|
|
1386
|
+
done: "board.statusDone",
|
|
1387
|
+
declined: "board.statusDeclined"
|
|
1388
|
+
}, Yt = {
|
|
1389
|
+
bug: "board.placeholder",
|
|
1390
|
+
idea: "board.placeholderIdea",
|
|
1391
|
+
review: "board.placeholderReview"
|
|
1392
|
+
}, hr = 1600;
|
|
1393
|
+
async function fr(e) {
|
|
1394
|
+
const n = URL.createObjectURL(e);
|
|
1395
|
+
try {
|
|
1396
|
+
const a = new Image();
|
|
1397
|
+
a.src = n, await a.decode();
|
|
1398
|
+
for (const [i, o] of [
|
|
1399
|
+
[hr, 0.82],
|
|
1400
|
+
[1200, 0.7],
|
|
1401
|
+
[900, 0.6]
|
|
1402
|
+
]) {
|
|
1403
|
+
const r = Math.min(1, i / Math.max(a.naturalWidth, a.naturalHeight)), d = document.createElement("canvas");
|
|
1404
|
+
d.width = Math.max(1, Math.round(a.naturalWidth * r)), d.height = Math.max(1, Math.round(a.naturalHeight * r));
|
|
1405
|
+
const l = d.getContext("2d");
|
|
1406
|
+
if (!l) return null;
|
|
1407
|
+
l.fillStyle = "#ffffff", l.fillRect(0, 0, d.width, d.height), l.drawImage(a, 0, 0, d.width, d.height);
|
|
1408
|
+
const b = await new Promise((p) => d.toBlob(p, "image/jpeg", o));
|
|
1409
|
+
if (!b) return null;
|
|
1410
|
+
if (b.size <= pi)
|
|
1411
|
+
return { type: "image/jpeg", data: await gr(b), preview: URL.createObjectURL(b) };
|
|
1412
|
+
}
|
|
1413
|
+
return null;
|
|
1414
|
+
} catch {
|
|
1415
|
+
return null;
|
|
1416
|
+
} finally {
|
|
1417
|
+
URL.revokeObjectURL(n);
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
function gr(e) {
|
|
1421
|
+
return new Promise((n, a) => {
|
|
1422
|
+
const i = new FileReader();
|
|
1423
|
+
i.onload = () => n(String(i.result).split(",")[1] ?? ""), i.onerror = () => a(i.error), i.readAsDataURL(e);
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
function _r(e, n, a, i) {
|
|
1427
|
+
return e.from === "app" ? i("board.reply", { app: a }) : n.mine ? i("talk.you") : i("talk.who", { who: n.who ?? n.short ?? i("board.anon") });
|
|
1428
|
+
}
|
|
1429
|
+
function ya({
|
|
1430
|
+
post: e,
|
|
1431
|
+
thread: n,
|
|
1432
|
+
appName: a,
|
|
1433
|
+
t: i,
|
|
1434
|
+
actions: o
|
|
1435
|
+
}) {
|
|
1436
|
+
return /* @__PURE__ */ t("ol", { class: "thread", "aria-label": i("talk.label"), children: n.map((r) => {
|
|
1437
|
+
const d = o?.(r);
|
|
1438
|
+
return /* @__PURE__ */ t("li", { class: `msg msg--${r.from}${r.hidden ? " msg--hidden" : ""}`, children: [
|
|
1439
|
+
/* @__PURE__ */ t("span", { class: "msg__who", children: [
|
|
1440
|
+
_r(r, e, a, i),
|
|
1441
|
+
r.edited ? ` · ${i("talk.edited")}` : "",
|
|
1442
|
+
r.hidden ? /* @__PURE__ */ t("span", { class: "card__off", children: [
|
|
1443
|
+
" · ",
|
|
1444
|
+
i("board.hidden")
|
|
1445
|
+
] }) : null
|
|
1446
|
+
] }),
|
|
1447
|
+
/* @__PURE__ */ t("p", { class: "msg__text", children: r.text }),
|
|
1448
|
+
d && /* @__PURE__ */ t("div", { class: "msg__actions", children: d })
|
|
1449
|
+
] }, r.id);
|
|
1450
|
+
}) });
|
|
1451
|
+
}
|
|
1452
|
+
function Zt({
|
|
1453
|
+
t: e,
|
|
1454
|
+
label: n,
|
|
1455
|
+
placeholder: a,
|
|
1456
|
+
max: i,
|
|
1457
|
+
initial: o = "",
|
|
1458
|
+
action: r,
|
|
1459
|
+
onSend: d,
|
|
1460
|
+
onCancel: l
|
|
1461
|
+
}) {
|
|
1462
|
+
const [b, p] = k(o), [h, f] = k(!1), c = b.trim();
|
|
1463
|
+
return /* @__PURE__ */ t("div", { class: "answer", children: [
|
|
1464
|
+
/* @__PURE__ */ t("span", { class: "label", children: n }),
|
|
1465
|
+
/* @__PURE__ */ t(
|
|
1466
|
+
"textarea",
|
|
1467
|
+
{
|
|
1468
|
+
class: "field answer__field",
|
|
1469
|
+
value: b,
|
|
1470
|
+
maxLength: i,
|
|
1471
|
+
placeholder: a,
|
|
1472
|
+
"aria-label": n,
|
|
1473
|
+
onInput: (g) => p(g.target.value)
|
|
1474
|
+
}
|
|
1475
|
+
),
|
|
1476
|
+
/* @__PURE__ */ t("div", { class: "answer__row", children: [
|
|
1477
|
+
/* @__PURE__ */ t("span", { class: "count", children: [
|
|
1478
|
+
b.length,
|
|
1479
|
+
" / ",
|
|
1480
|
+
i
|
|
1481
|
+
] }),
|
|
1482
|
+
l && /* @__PURE__ */ t("button", { type: "button", class: "text-btn answer__cancel", onClick: l, children: e("board.cancel") }),
|
|
1483
|
+
/* @__PURE__ */ t(
|
|
1484
|
+
"button",
|
|
1485
|
+
{
|
|
1486
|
+
type: "button",
|
|
1487
|
+
class: "btn answer__send",
|
|
1488
|
+
disabled: !c || h || c === o.trim(),
|
|
1489
|
+
"aria-busy": h,
|
|
1490
|
+
onClick: async () => {
|
|
1491
|
+
f(!0);
|
|
1492
|
+
const g = await d(c);
|
|
1493
|
+
f(!1), g && p("");
|
|
1494
|
+
},
|
|
1495
|
+
children: h ? /* @__PURE__ */ t("span", { class: "spinner" }) : r
|
|
1496
|
+
}
|
|
1497
|
+
)
|
|
1498
|
+
] })
|
|
1499
|
+
] });
|
|
1500
|
+
}
|
|
1501
|
+
function vr({
|
|
1502
|
+
post: e,
|
|
1503
|
+
appName: n,
|
|
1504
|
+
t: a,
|
|
1505
|
+
locale: i,
|
|
1506
|
+
replyMax: o,
|
|
1507
|
+
onBack: r,
|
|
1508
|
+
onSay: d,
|
|
1509
|
+
onEdit: l,
|
|
1510
|
+
onUnsay: b
|
|
1511
|
+
}) {
|
|
1512
|
+
const [p, h] = k(null), f = e.thread ?? [], c = De(f), g = e.mine && c?.from === "author" && !gn(e.status) ? c : void 0, v = gn(e.status) && e.kind !== "review";
|
|
1513
|
+
return /* @__PURE__ */ t(F, { children: [
|
|
1514
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
1515
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": a("board.back"), onClick: r, children: /* @__PURE__ */ t(Le, {}) }),
|
|
1516
|
+
/* @__PURE__ */ t("h2", { class: "bar__title", children: a("talk.title") }),
|
|
1517
|
+
/* @__PURE__ */ t("span", {})
|
|
1518
|
+
] }),
|
|
1519
|
+
/* @__PURE__ */ t("div", { class: "scroll talk", style: { paddingBottom: "24px" }, children: [
|
|
1520
|
+
/* @__PURE__ */ t("ul", { class: "list", children: /* @__PURE__ */ t(ft, { post: e, appName: n, t: a, locale: i, bare: !0 }) }),
|
|
1521
|
+
f.length > 0 && /* @__PURE__ */ t(
|
|
1522
|
+
ya,
|
|
1523
|
+
{
|
|
1524
|
+
post: e,
|
|
1525
|
+
thread: f,
|
|
1526
|
+
appName: n,
|
|
1527
|
+
t: a,
|
|
1528
|
+
actions: (w) => w === g && !p ? /* @__PURE__ */ t(F, { children: [
|
|
1529
|
+
/* @__PURE__ */ t("button", { type: "button", class: "link-btn", onClick: () => h(w), children: a("talk.edit") }),
|
|
1530
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", children: "·" }),
|
|
1531
|
+
/* @__PURE__ */ t("button", { type: "button", class: "link-btn", onClick: () => void b(w), children: a("talk.remove") })
|
|
1532
|
+
] }) : null
|
|
1533
|
+
}
|
|
1534
|
+
),
|
|
1535
|
+
p ? /* @__PURE__ */ t(
|
|
1536
|
+
Zt,
|
|
1537
|
+
{
|
|
1538
|
+
t: a,
|
|
1539
|
+
label: a("talk.changeLast"),
|
|
1540
|
+
placeholder: a("talk.placeholder"),
|
|
1541
|
+
max: o,
|
|
1542
|
+
initial: p.text,
|
|
1543
|
+
action: a("talk.save"),
|
|
1544
|
+
onSend: async (w) => {
|
|
1545
|
+
const _ = await l(p, w);
|
|
1546
|
+
return _ && h(null), _;
|
|
1547
|
+
},
|
|
1548
|
+
onCancel: () => h(null)
|
|
1549
|
+
},
|
|
1550
|
+
p.id
|
|
1551
|
+
) : e.mine && _i(e) ? /* @__PURE__ */ t(
|
|
1552
|
+
Zt,
|
|
1553
|
+
{
|
|
1554
|
+
t: a,
|
|
1555
|
+
label: a("talk.answerLabel", { app: n }),
|
|
1556
|
+
placeholder: a("talk.placeholder"),
|
|
1557
|
+
max: o,
|
|
1558
|
+
action: a("talk.send"),
|
|
1559
|
+
onSend: d
|
|
1560
|
+
}
|
|
1561
|
+
) : g ? /* @__PURE__ */ t("p", { class: "note talk__next", children: a("talk.next", { app: n }) }) : v && f.length > 0 ? /* @__PURE__ */ t("p", { class: "note talk__next", children: a(e.status === "done" ? "talk.closedDone" : "talk.closedDeclined", { app: n }) }) : null
|
|
1562
|
+
] })
|
|
1563
|
+
] });
|
|
1564
|
+
}
|
|
1565
|
+
function xr(e) {
|
|
1566
|
+
const [n, a] = k(e ? "loading" : null);
|
|
1567
|
+
return G(() => {
|
|
1568
|
+
if (!e) return;
|
|
1569
|
+
let i = null, o = !1;
|
|
1570
|
+
return e().then((r) => {
|
|
1571
|
+
if (!o) {
|
|
1572
|
+
if (!r) return a("failed");
|
|
1573
|
+
i = URL.createObjectURL(r), a(i);
|
|
1574
|
+
}
|
|
1575
|
+
}), () => {
|
|
1576
|
+
o = !0, i && URL.revokeObjectURL(i);
|
|
1577
|
+
};
|
|
1578
|
+
}, []), n;
|
|
1579
|
+
}
|
|
1580
|
+
const mr = [
|
|
1581
|
+
{ status: "open", label: "board.statusOpen" },
|
|
1582
|
+
{ status: "planned", label: "board.statusPlanned" },
|
|
1583
|
+
{ status: "done", label: "board.statusDone" },
|
|
1584
|
+
{ status: "declined", label: "board.statusDeclined" }
|
|
1585
|
+
];
|
|
1586
|
+
function wr({
|
|
1587
|
+
t: e,
|
|
1588
|
+
post: n,
|
|
1589
|
+
appName: a,
|
|
1590
|
+
locale: i,
|
|
1591
|
+
replyMax: o,
|
|
1592
|
+
loadShot: r,
|
|
1593
|
+
onSave: d,
|
|
1594
|
+
onHideMessage: l,
|
|
1595
|
+
onBack: b
|
|
1596
|
+
}) {
|
|
1597
|
+
const [p, h] = k(n.status), f = n.thread ?? [], c = De(f), g = n.kind === "review" ? f.find(($) => $.from === "app" && !$.hidden) : c?.from === "app" ? c : void 0, [v, w] = k(n.kind === "review" ? g ?? null : null), [_, x] = k(v?.text ?? ""), m = n.who ?? n.short ?? e("talk.author"), [y, S] = k(!!n.hidden), [M, O] = k(n.shotFor === "off"), [L, D] = k(!1), [Y, I] = k(n.fix?.version ?? ""), [Z, xe] = k(n.fix?.link ?? ""), N = p === "done" && n.kind !== "review", se = at(Y), U = He(Z), Me = N && (se === null || U === null), Te = n.shot && (n.shotFor === "board" || n.shotFor === "off"), We = n.shotFor === "owners" ? "board.shotForOwners" : M ? "board.shotForOff" : "board.shotForBoard", T = n.context ? Object.entries(n.context) : [], X = xr(n.shot ? r : null);
|
|
1598
|
+
return /* @__PURE__ */ t(F, { children: [
|
|
1599
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
1600
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": e("board.back"), onClick: b, children: /* @__PURE__ */ t(Le, {}) }),
|
|
1601
|
+
/* @__PURE__ */ t("h2", { class: "bar__title", children: e("board.manage") }),
|
|
1602
|
+
/* @__PURE__ */ t("span", {})
|
|
1603
|
+
] }),
|
|
1604
|
+
/* @__PURE__ */ t("div", { class: "scroll talk manage", style: { paddingBottom: "24px" }, children: [
|
|
1605
|
+
/* @__PURE__ */ t("ul", { class: "list", children: /* @__PURE__ */ t(ft, { post: n, appName: a, t: e, locale: i, bare: !0 }) }),
|
|
1606
|
+
n.shot && /* @__PURE__ */ t("figure", { class: "sheet__shot", children: [
|
|
1607
|
+
X === "loading" ? /* @__PURE__ */ t("span", { class: "spinner" }) : X === "failed" ? /* @__PURE__ */ t("figcaption", { children: e("board.shotGone") }) : X && /* @__PURE__ */ t("a", { href: X, target: "_blank", rel: "noopener", children: /* @__PURE__ */ t("img", { src: X, alt: e("board.shot") }) }),
|
|
1608
|
+
X !== "failed" && /* @__PURE__ */ t("figcaption", { children: [
|
|
1609
|
+
e(We),
|
|
1610
|
+
" ",
|
|
1611
|
+
e("board.shotGoes")
|
|
1612
|
+
] }),
|
|
1613
|
+
Te && /* @__PURE__ */ t("button", { type: "button", class: "hide-btn", "aria-pressed": M, onClick: () => O(!M), children: e(M ? "board.shotOn" : "board.shotOff") })
|
|
1614
|
+
] }),
|
|
1615
|
+
T.length > 0 && /* @__PURE__ */ t("dl", { class: "context", "aria-label": e("board.context"), children: T.map(([$, he]) => /* @__PURE__ */ t("div", { children: [
|
|
1616
|
+
/* @__PURE__ */ t("dt", { children: $ }),
|
|
1617
|
+
/* @__PURE__ */ t("dd", { children: he })
|
|
1618
|
+
] }, $)) }),
|
|
1619
|
+
n.kind !== "review" && /* @__PURE__ */ t(F, { children: [
|
|
1620
|
+
/* @__PURE__ */ t("span", { class: "label", style: { display: "block", marginTop: "20px", marginBottom: "8px" }, children: e("board.setStatus") }),
|
|
1621
|
+
/* @__PURE__ */ t("div", { class: "states", role: "radiogroup", "aria-label": e("board.setStatus"), children: mr.map(($) => /* @__PURE__ */ t(
|
|
1622
|
+
"button",
|
|
1623
|
+
{
|
|
1624
|
+
type: "button",
|
|
1625
|
+
role: "radio",
|
|
1626
|
+
"aria-checked": p === $.status,
|
|
1627
|
+
class: "chip-pick",
|
|
1628
|
+
onClick: () => h($.status),
|
|
1629
|
+
children: e(ht({ kind: n.kind, status: $.status }, $.label))
|
|
1630
|
+
},
|
|
1631
|
+
$.status
|
|
1632
|
+
)) })
|
|
1633
|
+
] }),
|
|
1634
|
+
N && /* @__PURE__ */ t("div", { class: "fix-box", children: [
|
|
1635
|
+
/* @__PURE__ */ t("span", { class: "fix-box__head", children: [
|
|
1636
|
+
/* @__PURE__ */ t(Ki, { size: 16 }),
|
|
1637
|
+
e(n.kind === "idea" ? "fix.titleIdea" : "fix.title")
|
|
1638
|
+
] }),
|
|
1639
|
+
/* @__PURE__ */ t("label", { class: "fix-box__label", children: [
|
|
1640
|
+
e("fix.version"),
|
|
1641
|
+
/* @__PURE__ */ t(
|
|
1642
|
+
"input",
|
|
1643
|
+
{
|
|
1644
|
+
class: "input",
|
|
1645
|
+
value: Y,
|
|
1646
|
+
maxLength: nt,
|
|
1647
|
+
placeholder: "1.4.2",
|
|
1648
|
+
autocomplete: "off",
|
|
1649
|
+
"aria-invalid": se === null,
|
|
1650
|
+
onInput: ($) => I($.target.value)
|
|
1651
|
+
}
|
|
1652
|
+
)
|
|
1653
|
+
] }),
|
|
1654
|
+
se === null && /* @__PURE__ */ t("p", { class: "note note--bad", children: e("fix.versionBad") }),
|
|
1655
|
+
/* @__PURE__ */ t("label", { class: "fix-box__label", children: [
|
|
1656
|
+
e("fix.link"),
|
|
1657
|
+
/* @__PURE__ */ t(
|
|
1658
|
+
"input",
|
|
1659
|
+
{
|
|
1660
|
+
class: "input",
|
|
1661
|
+
type: "url",
|
|
1662
|
+
maxLength: tt,
|
|
1663
|
+
inputMode: "url",
|
|
1664
|
+
value: Z,
|
|
1665
|
+
placeholder: "github.com/…/pull/42",
|
|
1666
|
+
autocomplete: "off",
|
|
1667
|
+
"aria-invalid": U === null,
|
|
1668
|
+
onInput: ($) => xe($.target.value)
|
|
1669
|
+
}
|
|
1670
|
+
)
|
|
1671
|
+
] }),
|
|
1672
|
+
/* @__PURE__ */ t("p", { class: `note${U === null ? " note--bad" : ""}`, children: e(U === null ? "fix.linkBad" : "fix.linkNote") }),
|
|
1673
|
+
/* @__PURE__ */ t("p", { class: "note", children: e("fix.who") })
|
|
1674
|
+
] }),
|
|
1675
|
+
f.length > 0 && /* @__PURE__ */ t(F, { children: [
|
|
1676
|
+
/* @__PURE__ */ t("span", { class: "label", style: { display: "block", marginTop: "20px", marginBottom: "8px" }, children: e("talk.label") }),
|
|
1677
|
+
/* @__PURE__ */ t(
|
|
1678
|
+
ya,
|
|
1679
|
+
{
|
|
1680
|
+
post: n,
|
|
1681
|
+
thread: f,
|
|
1682
|
+
appName: a,
|
|
1683
|
+
t: e,
|
|
1684
|
+
actions: ($) => $.from === "author" ? /* @__PURE__ */ t("button", { type: "button", class: "link-btn", onClick: () => l($, !$.hidden), children: e($.hidden ? "talk.unhide" : "talk.hide") }) : $ === g && n.kind !== "review" ? /* @__PURE__ */ t(
|
|
1685
|
+
"button",
|
|
1686
|
+
{
|
|
1687
|
+
type: "button",
|
|
1688
|
+
class: "link-btn",
|
|
1689
|
+
"aria-pressed": v === $,
|
|
1690
|
+
onClick: () => {
|
|
1691
|
+
const he = v !== $;
|
|
1692
|
+
w(he ? $ : null), x(he ? $.text : "");
|
|
1693
|
+
},
|
|
1694
|
+
children: e(v === $ ? "board.cancel" : "talk.edit")
|
|
1695
|
+
}
|
|
1696
|
+
) : null
|
|
1697
|
+
}
|
|
1698
|
+
)
|
|
1699
|
+
] }),
|
|
1700
|
+
/* @__PURE__ */ t("span", { class: "label", style: { display: "block", marginTop: "20px", marginBottom: "8px" }, children: e(v && n.kind !== "review" ? "talk.changeLast" : "board.replyLabel") }),
|
|
1701
|
+
/* @__PURE__ */ t(
|
|
1702
|
+
"textarea",
|
|
1703
|
+
{
|
|
1704
|
+
class: "field",
|
|
1705
|
+
style: { minHeight: "96px" },
|
|
1706
|
+
value: _,
|
|
1707
|
+
maxLength: o,
|
|
1708
|
+
placeholder: n.mine ? e("board.replyPlaceholder") : e("talk.writeTo", { who: m }),
|
|
1709
|
+
"aria-label": e("board.replyLabel"),
|
|
1710
|
+
onInput: ($) => x($.target.value)
|
|
1711
|
+
}
|
|
1712
|
+
),
|
|
1713
|
+
n.kind !== "review" && !n.mine && /* @__PURE__ */ t("p", { class: "note", children: e("talk.gets", { who: n.who ?? n.short ?? e("board.anon") }) }),
|
|
1714
|
+
n.pending && /* @__PURE__ */ t("button", { type: "button", class: "approve-btn", "aria-pressed": L, onClick: () => D(!L), children: e(L ? "board.unapprove" : "board.approve") }),
|
|
1715
|
+
/* @__PURE__ */ t("button", { type: "button", class: "hide-btn", "aria-pressed": y, onClick: () => S(!y), children: e(y ? "board.unhide" : "board.hide") }),
|
|
1716
|
+
/* @__PURE__ */ t("div", { class: "manage__actions", children: /* @__PURE__ */ t(
|
|
1717
|
+
"button",
|
|
1718
|
+
{
|
|
1719
|
+
type: "button",
|
|
1720
|
+
class: "btn",
|
|
1721
|
+
disabled: Me,
|
|
1722
|
+
onClick: () => d({
|
|
1723
|
+
status: p,
|
|
1724
|
+
// Only what changes something: an empty box says nothing, and
|
|
1725
|
+
// the same words again are not a new message.
|
|
1726
|
+
..._.trim() && _.trim() !== v?.text ? { message: { text: _.trim(), ...v ? { edit: v.id } : {} } } : {},
|
|
1727
|
+
hidden: y,
|
|
1728
|
+
...Te ? { shotOff: M } : {},
|
|
1729
|
+
...n.pending && L ? { approved: !0 } : {},
|
|
1730
|
+
...N ? { fix: { ...se ? { version: se } : {}, ...U ? { link: U } : {} } } : {}
|
|
1731
|
+
}),
|
|
1732
|
+
children: e("board.save")
|
|
1733
|
+
}
|
|
1734
|
+
) })
|
|
1735
|
+
] })
|
|
1736
|
+
] });
|
|
1737
|
+
}
|
|
1738
|
+
function je({
|
|
1739
|
+
label: e,
|
|
1740
|
+
onClose: n,
|
|
1741
|
+
children: a
|
|
1742
|
+
}) {
|
|
1743
|
+
return G(() => {
|
|
1744
|
+
const i = (o) => {
|
|
1745
|
+
o.key === "Escape" && n();
|
|
1746
|
+
};
|
|
1747
|
+
return window.addEventListener("keydown", i), () => window.removeEventListener("keydown", i);
|
|
1748
|
+
}, [n]), /* @__PURE__ */ t("div", { class: "scrim", onClick: n, children: /* @__PURE__ */ t("div", { class: "sheet", role: "dialog", "aria-modal": "true", "aria-label": e, onClick: (i) => i.stopPropagation(), children: [
|
|
1749
|
+
/* @__PURE__ */ t("span", { class: "sheet__grip", "aria-hidden": "true" }),
|
|
1750
|
+
a
|
|
1751
|
+
] }) });
|
|
1752
|
+
}
|
|
1753
|
+
function kr({
|
|
1754
|
+
t: e,
|
|
1755
|
+
why: n,
|
|
1756
|
+
canSign: a,
|
|
1757
|
+
appName: i,
|
|
1758
|
+
onSignIn: o,
|
|
1759
|
+
onClose: r
|
|
1760
|
+
}) {
|
|
1761
|
+
const d = n === "vote" ? "board.signInVote" : "board.signInFeedback";
|
|
1762
|
+
return /* @__PURE__ */ t(je, { label: e(d), onClose: r, children: [
|
|
1763
|
+
/* @__PURE__ */ t("h2", { class: "sheet__title", children: e(d) }),
|
|
1764
|
+
/* @__PURE__ */ t("p", { class: "sheet__quote", children: a ? e("board.signInNote") : e("board.needWallet", { app: i }) }),
|
|
1765
|
+
/* @__PURE__ */ t("div", { class: "sheet__actions", children: [
|
|
1766
|
+
a && /* @__PURE__ */ t("button", { type: "button", class: "btn", onClick: o, children: e("board.signInButton") }),
|
|
1767
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: r, children: e(a ? "board.notNow" : "board.close") })
|
|
1768
|
+
] })
|
|
1769
|
+
] });
|
|
1770
|
+
}
|
|
1771
|
+
function yr({ t: e, onConfirm: n, onClose: a }) {
|
|
1772
|
+
return /* @__PURE__ */ t(je, { label: e("settings.logOutTitle"), onClose: a, children: [
|
|
1773
|
+
/* @__PURE__ */ t("h2", { class: "sheet__title", children: e("settings.logOutTitle") }),
|
|
1774
|
+
/* @__PURE__ */ t("p", { class: "sheet__quote", children: e("settings.logOutText") }),
|
|
1775
|
+
/* @__PURE__ */ t("div", { class: "sheet__actions", children: [
|
|
1776
|
+
/* @__PURE__ */ t("button", { type: "button", class: "btn btn--danger", onClick: n, children: e("settings.logOut") }),
|
|
1777
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: a, children: e("board.cancel") })
|
|
1778
|
+
] })
|
|
1779
|
+
] });
|
|
1780
|
+
}
|
|
1781
|
+
function Cr({
|
|
1782
|
+
t: e,
|
|
1783
|
+
face: n,
|
|
1784
|
+
faceUrl: a,
|
|
1785
|
+
suggest: i = "",
|
|
1786
|
+
onSave: o,
|
|
1787
|
+
onSkip: r,
|
|
1788
|
+
onClose: d
|
|
1789
|
+
}) {
|
|
1790
|
+
const [l, b] = k(i), p = n && a ? a(n) : void 0;
|
|
1791
|
+
return /* @__PURE__ */ t(je, { label: e("name.title"), onClose: d, children: [
|
|
1792
|
+
/* @__PURE__ */ t(Re, { code: n, src: p, size: 48 }),
|
|
1793
|
+
/* @__PURE__ */ t("h2", { class: "sheet__title sheet__title--under", children: e("name.title") }),
|
|
1794
|
+
/* @__PURE__ */ t("p", { class: "sheet__quote", children: e("name.text") }),
|
|
1795
|
+
/* @__PURE__ */ t("label", { class: "name-field sheet__field", children: [
|
|
1796
|
+
/* @__PURE__ */ t(Re, { code: n, src: p, size: 24 }),
|
|
1797
|
+
/* @__PURE__ */ t(
|
|
1798
|
+
"input",
|
|
1799
|
+
{
|
|
1800
|
+
class: "input",
|
|
1801
|
+
value: l,
|
|
1802
|
+
maxLength: Jt,
|
|
1803
|
+
placeholder: e("board.namePlaceholder"),
|
|
1804
|
+
"aria-label": e("board.namePlaceholder"),
|
|
1805
|
+
onInput: (h) => b(h.target.value),
|
|
1806
|
+
onKeyDown: (h) => {
|
|
1807
|
+
h.key === "Enter" && l.trim() && o(l.trim());
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
)
|
|
1811
|
+
] }),
|
|
1812
|
+
/* @__PURE__ */ t("div", { class: "sheet__actions", children: [
|
|
1813
|
+
/* @__PURE__ */ t("button", { type: "button", class: "btn", disabled: !l.trim(), onClick: () => o(l.trim()), children: e("name.save") }),
|
|
1814
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: r, children: e("name.skip") })
|
|
1815
|
+
] })
|
|
1816
|
+
] });
|
|
1817
|
+
}
|
|
1818
|
+
function Sr({ t: e, src: n, onClose: a }) {
|
|
1819
|
+
const [i, o] = k(!1);
|
|
1820
|
+
return /* @__PURE__ */ t(je, { label: e("board.shot"), onClose: a, children: [
|
|
1821
|
+
/* @__PURE__ */ t("figure", { class: "sheet__shot sheet__shot--whole", children: i ? /* @__PURE__ */ t("figcaption", { children: e("board.shotGone") }) : /* @__PURE__ */ t("img", { src: n, alt: e("board.shot"), onError: () => o(!0) }) }),
|
|
1822
|
+
/* @__PURE__ */ t("div", { class: "sheet__actions", children: /* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: a, children: e("board.close") }) })
|
|
1823
|
+
] });
|
|
1824
|
+
}
|
|
1825
|
+
function Ca({
|
|
1826
|
+
t: e,
|
|
1827
|
+
onConfirm: n,
|
|
1828
|
+
onClose: a,
|
|
1829
|
+
title: i = "board.deleteTitle",
|
|
1830
|
+
note: o = "board.deleteNote",
|
|
1831
|
+
confirm: r = "board.delete"
|
|
1832
|
+
}) {
|
|
1833
|
+
return /* @__PURE__ */ t(je, { label: e(i), onClose: a, children: [
|
|
1834
|
+
/* @__PURE__ */ t("h2", { class: "sheet__title", children: e(i) }),
|
|
1835
|
+
/* @__PURE__ */ t("p", { class: "sheet__quote", children: e(o) }),
|
|
1836
|
+
/* @__PURE__ */ t("div", { class: "sheet__actions", children: [
|
|
1837
|
+
/* @__PURE__ */ t("button", { type: "button", class: "btn btn--danger", onClick: n, children: e(r) }),
|
|
1838
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: a, children: e("board.cancel") })
|
|
1839
|
+
] })
|
|
1840
|
+
] });
|
|
1841
|
+
}
|
|
1842
|
+
const Lr = ["open", "planned", "done", "declined"], Mr = {
|
|
1843
|
+
open: "board.statusOpen",
|
|
1844
|
+
planned: "board.statusPlanned",
|
|
1845
|
+
done: "board.statusDone",
|
|
1846
|
+
declined: "board.statusDeclined"
|
|
1847
|
+
}, Tr = {
|
|
1848
|
+
waiting: "filter.waiting",
|
|
1849
|
+
hidden: "board.hidden",
|
|
1850
|
+
pending: "board.waiting"
|
|
1851
|
+
};
|
|
1852
|
+
function ye(e, n) {
|
|
1853
|
+
return n.kind ? e(ue[n.kind].plural) : n.status ? e(n.status === "done" && n.kinds ? Sn(n.kinds) : Mr[n.status]) : n.own ? e(Tr[n.own]) : e("filter.mine");
|
|
1854
|
+
}
|
|
1855
|
+
function Ar({
|
|
1856
|
+
t: e,
|
|
1857
|
+
kinds: n,
|
|
1858
|
+
owners: a,
|
|
1859
|
+
signedIn: i,
|
|
1860
|
+
value: o,
|
|
1861
|
+
sort: r,
|
|
1862
|
+
count: d,
|
|
1863
|
+
onApply: l,
|
|
1864
|
+
onClose: b
|
|
1865
|
+
}) {
|
|
1866
|
+
const [p, h] = k(o), [f, c] = k(r), g = d(p), v = (_, x) => h((m) => {
|
|
1867
|
+
const y = m[_];
|
|
1868
|
+
return { ...m, [_]: y.includes(x) ? y.filter((S) => S !== x) : [...y, x] };
|
|
1869
|
+
}), w = (_, x, m, y, S = !0) => /* @__PURE__ */ t("div", { class: "pick-group", role: "group", "aria-label": e(x), children: [
|
|
1870
|
+
/* @__PURE__ */ t("span", { class: "label", children: e(x) }),
|
|
1871
|
+
/* @__PURE__ */ t("div", { class: "states", children: [
|
|
1872
|
+
S && /* @__PURE__ */ t(
|
|
1873
|
+
"button",
|
|
1874
|
+
{
|
|
1875
|
+
type: "button",
|
|
1876
|
+
class: "chip-pick",
|
|
1877
|
+
"aria-pressed": !p[_].length,
|
|
1878
|
+
onClick: () => h((M) => ({ ...M, [_]: [] })),
|
|
1879
|
+
children: e("board.all")
|
|
1880
|
+
}
|
|
1881
|
+
),
|
|
1882
|
+
m.map((M) => /* @__PURE__ */ t(
|
|
1883
|
+
"button",
|
|
1884
|
+
{
|
|
1885
|
+
type: "button",
|
|
1886
|
+
class: "chip-pick",
|
|
1887
|
+
"aria-pressed": p[_].includes(M),
|
|
1888
|
+
onClick: () => v(_, M),
|
|
1889
|
+
children: y(M)
|
|
1890
|
+
},
|
|
1891
|
+
M
|
|
1892
|
+
))
|
|
1893
|
+
] })
|
|
1894
|
+
] });
|
|
1895
|
+
return /* @__PURE__ */ t(je, { label: e("filter.title"), onClose: b, children: [
|
|
1896
|
+
/* @__PURE__ */ t("div", { class: "sheet__head", children: [
|
|
1897
|
+
/* @__PURE__ */ t("h2", { class: "sheet__title", children: e("filter.title") }),
|
|
1898
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": e("board.close"), onClick: b, children: /* @__PURE__ */ t(ke, {}) })
|
|
1899
|
+
] }),
|
|
1900
|
+
/* @__PURE__ */ t("div", { class: "pick-group", role: "group", "aria-label": e("filter.sort"), children: [
|
|
1901
|
+
/* @__PURE__ */ t("span", { class: "label", children: e("filter.sort") }),
|
|
1902
|
+
/* @__PURE__ */ t("div", { class: "states", children: ["top", "new"].map((_) => /* @__PURE__ */ t("button", { type: "button", class: "chip-pick", "aria-pressed": f === _, onClick: () => c(_), children: e(_ === "top" ? "board.top" : "board.newest") }, _)) })
|
|
1903
|
+
] }),
|
|
1904
|
+
n.length > 1 && w("kinds", "filter.kind", n, (_) => ye(e, { kind: _ })),
|
|
1905
|
+
w("statuses", "filter.status", Lr, (_) => ye(e, { status: _, kinds: p.kinds.length ? p.kinds : n })),
|
|
1906
|
+
n.includes("review") && /* @__PURE__ */ t("p", { class: "note", children: e("filter.statusNote") }),
|
|
1907
|
+
a.length > 0 && /* @__PURE__ */ t("div", { class: "pick-own", children: w("own", "filter.own", a, (_) => ye(e, { own: _ }), !1) }),
|
|
1908
|
+
i && /* @__PURE__ */ t("div", { class: "switch-row switch-row--box", children: [
|
|
1909
|
+
/* @__PURE__ */ t("span", { class: "switch-row__label", id: "pnb-only-mine", children: e("filter.mine") }),
|
|
1910
|
+
/* @__PURE__ */ t(
|
|
1911
|
+
"button",
|
|
1912
|
+
{
|
|
1913
|
+
type: "button",
|
|
1914
|
+
role: "switch",
|
|
1915
|
+
class: "switch",
|
|
1916
|
+
"aria-checked": p.mine,
|
|
1917
|
+
"aria-labelledby": "pnb-only-mine",
|
|
1918
|
+
onClick: () => h((_) => ({ ..._, mine: !_.mine }))
|
|
1919
|
+
}
|
|
1920
|
+
)
|
|
1921
|
+
] }),
|
|
1922
|
+
/* @__PURE__ */ t("div", { class: "sheet__foot", children: [
|
|
1923
|
+
/* @__PURE__ */ t(
|
|
1924
|
+
"button",
|
|
1925
|
+
{
|
|
1926
|
+
type: "button",
|
|
1927
|
+
class: "text-btn filter-reset",
|
|
1928
|
+
onClick: () => {
|
|
1929
|
+
h(Oe), c("top");
|
|
1930
|
+
},
|
|
1931
|
+
children: e("filter.reset")
|
|
1932
|
+
}
|
|
1933
|
+
),
|
|
1934
|
+
/* @__PURE__ */ t("button", { type: "button", class: "btn", onClick: () => l(p, f), children: g === 1 ? e("filter.showOne") : e("filter.show", { n: g }) })
|
|
1935
|
+
] })
|
|
1936
|
+
] });
|
|
1937
|
+
}
|
|
1938
|
+
const zr = 700, Or = 2e3;
|
|
1939
|
+
function Nr({
|
|
1940
|
+
t: e,
|
|
1941
|
+
me: n,
|
|
1942
|
+
faceUrl: a,
|
|
1943
|
+
names: i,
|
|
1944
|
+
anon: o,
|
|
1945
|
+
canLogOut: r,
|
|
1946
|
+
onAnon: d,
|
|
1947
|
+
onName: l,
|
|
1948
|
+
onLogOut: b,
|
|
1949
|
+
onBack: p
|
|
1950
|
+
}) {
|
|
1951
|
+
const [h, f] = k(n.name ?? ""), [c, g] = k(!1), v = Se(n.name ?? ""), w = Se(), _ = o || !i, x = n.face && a ? a(n.face) : void 0, m = async (y = h) => {
|
|
1952
|
+
clearTimeout(w.current);
|
|
1953
|
+
const S = y.trim();
|
|
1954
|
+
S !== v.current && await l(S) && (v.current = S, g(!0));
|
|
1955
|
+
};
|
|
1956
|
+
return G(() => {
|
|
1957
|
+
if (!c) return;
|
|
1958
|
+
const y = setTimeout(() => g(!1), Or);
|
|
1959
|
+
return () => clearTimeout(y);
|
|
1960
|
+
}, [c]), G(() => () => clearTimeout(w.current), []), /* @__PURE__ */ t("div", { class: "app", children: [
|
|
1961
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
1962
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": e("board.back"), onClick: () => void m().then(p), children: /* @__PURE__ */ t(Le, {}) }),
|
|
1963
|
+
/* @__PURE__ */ t("h2", { class: "bar__title bar__title--write", children: e("settings.title") }),
|
|
1964
|
+
/* @__PURE__ */ t("span", {})
|
|
1965
|
+
] }),
|
|
1966
|
+
/* @__PURE__ */ t("div", { class: "scroll settings", style: { paddingBottom: "calc(24px + var(--_bottom))" }, children: [
|
|
1967
|
+
/* @__PURE__ */ t("div", { class: "settings__who", children: [
|
|
1968
|
+
/* @__PURE__ */ t("span", { class: _ ? "settings__face settings__face--off" : "settings__face", children: /* @__PURE__ */ t(Re, { code: n.face, src: x, size: 64 }) }),
|
|
1969
|
+
/* @__PURE__ */ t("strong", { class: "settings__name", children: _ ? e("board.anon") : v.current || n.short || "" }),
|
|
1970
|
+
/* @__PURE__ */ t("span", { class: "settings__sub", children: _ ? e(i ? "settings.hidden" : "settings.namesOff") : v.current ? n.short : "" })
|
|
1971
|
+
] }),
|
|
1972
|
+
i && /* @__PURE__ */ t("section", { class: "settings__group", "aria-labelledby": "pnb-set-profile", children: [
|
|
1973
|
+
/* @__PURE__ */ t("h3", { class: "settings__head", id: "pnb-set-profile", children: e("settings.profile") }),
|
|
1974
|
+
/* @__PURE__ */ t("div", { class: "settings__card", children: [
|
|
1975
|
+
/* @__PURE__ */ t("div", { class: `settings__block${o ? " settings__block--off" : ""}`, children: [
|
|
1976
|
+
/* @__PURE__ */ t("span", { class: "settings__label-row", children: [
|
|
1977
|
+
/* @__PURE__ */ t("label", { class: "settings__label", for: "pnb-set-name", children: e("settings.name") }),
|
|
1978
|
+
c && /* @__PURE__ */ t("span", { class: "settings__saved", role: "status", children: [
|
|
1979
|
+
/* @__PURE__ */ t(ir, {}),
|
|
1980
|
+
e("settings.saved")
|
|
1981
|
+
] })
|
|
1982
|
+
] }),
|
|
1983
|
+
/* @__PURE__ */ t("span", { class: "name-field", children: [
|
|
1984
|
+
/* @__PURE__ */ t(Re, { code: n.face, src: x, size: 24 }),
|
|
1985
|
+
/* @__PURE__ */ t(
|
|
1986
|
+
"input",
|
|
1987
|
+
{
|
|
1988
|
+
id: "pnb-set-name",
|
|
1989
|
+
class: "input",
|
|
1990
|
+
value: h,
|
|
1991
|
+
maxLength: Jt,
|
|
1992
|
+
disabled: o,
|
|
1993
|
+
placeholder: e("board.namePlaceholder"),
|
|
1994
|
+
onInput: (y) => {
|
|
1995
|
+
const S = y.target.value;
|
|
1996
|
+
f(S), clearTimeout(w.current), w.current = setTimeout(() => void m(S), zr);
|
|
1997
|
+
},
|
|
1998
|
+
onBlur: () => void m(),
|
|
1999
|
+
onKeyDown: (y) => {
|
|
2000
|
+
y.key === "Enter" && m();
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
)
|
|
2004
|
+
] }),
|
|
2005
|
+
/* @__PURE__ */ t("span", { class: "note", children: e(o ? "settings.nameOff" : "settings.nameNote") })
|
|
2006
|
+
] }),
|
|
2007
|
+
/* @__PURE__ */ t("div", { class: "settings__row", children: [
|
|
2008
|
+
/* @__PURE__ */ t("span", { class: "settings__row-label", id: "pnb-set-anon", children: e("settings.anon") }),
|
|
2009
|
+
/* @__PURE__ */ t(
|
|
2010
|
+
"button",
|
|
2011
|
+
{
|
|
2012
|
+
type: "button",
|
|
2013
|
+
role: "switch",
|
|
2014
|
+
class: "switch",
|
|
2015
|
+
"aria-checked": o,
|
|
2016
|
+
"aria-labelledby": "pnb-set-anon",
|
|
2017
|
+
onClick: () => d(!o)
|
|
2018
|
+
}
|
|
2019
|
+
)
|
|
2020
|
+
] })
|
|
2021
|
+
] }),
|
|
2022
|
+
/* @__PURE__ */ t("p", { class: "note settings__note", children: e(o ? "settings.anonOnNote" : "settings.anonNote") })
|
|
2023
|
+
] }),
|
|
2024
|
+
r && /* @__PURE__ */ t("section", { class: "settings__group", "aria-labelledby": "pnb-set-account", children: [
|
|
2025
|
+
/* @__PURE__ */ t("h3", { class: "settings__head", id: "pnb-set-account", children: e("settings.account") }),
|
|
2026
|
+
/* @__PURE__ */ t("div", { class: "settings__card", children: /* @__PURE__ */ t("button", { type: "button", class: "settings__row settings__row--danger", onClick: b, children: [
|
|
2027
|
+
/* @__PURE__ */ t(tr, {}),
|
|
2028
|
+
/* @__PURE__ */ t("span", { class: "settings__row-label", children: e("settings.logOut") })
|
|
2029
|
+
] }) }),
|
|
2030
|
+
/* @__PURE__ */ t("p", { class: "note settings__note", children: e("settings.logOutNote") })
|
|
2031
|
+
] })
|
|
2032
|
+
] })
|
|
2033
|
+
] });
|
|
2034
|
+
}
|
|
2035
|
+
function $r({
|
|
2036
|
+
client: e,
|
|
2037
|
+
t: n,
|
|
2038
|
+
locale: a,
|
|
2039
|
+
appName: i,
|
|
2040
|
+
owner: o,
|
|
2041
|
+
posts: r,
|
|
2042
|
+
onBack: d,
|
|
2043
|
+
onPublish: l,
|
|
2044
|
+
onFail: b
|
|
2045
|
+
}) {
|
|
2046
|
+
const [p, h] = k(null), [f, c] = k(!1), [g, v] = k(!1), [w, _] = k(null), x = async () => {
|
|
2047
|
+
const y = await e.updates();
|
|
2048
|
+
y.ok ? (h(y.data.updates), c(!1)) : c(!0);
|
|
2049
|
+
};
|
|
2050
|
+
G(() => {
|
|
2051
|
+
x();
|
|
2052
|
+
}, [e]);
|
|
2053
|
+
const m = async (y) => {
|
|
2054
|
+
_(null), h((M) => M && M.filter((O) => O.id !== y.id));
|
|
2055
|
+
const S = await e.removeUpdate(y.id);
|
|
2056
|
+
S.ok || b(S.error), x();
|
|
2057
|
+
};
|
|
2058
|
+
return g ? /* @__PURE__ */ t(
|
|
2059
|
+
Er,
|
|
2060
|
+
{
|
|
2061
|
+
t: n,
|
|
2062
|
+
appName: i,
|
|
2063
|
+
posts: r,
|
|
2064
|
+
onBack: () => v(!1),
|
|
2065
|
+
onPublish: async (y) => {
|
|
2066
|
+
await l(y) && (v(!1), await x());
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
) : /* @__PURE__ */ t(F, { children: [
|
|
2070
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
2071
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": n("board.back"), onClick: d, children: /* @__PURE__ */ t(Le, {}) }),
|
|
2072
|
+
/* @__PURE__ */ t("h2", { class: "bar__title", children: n("updates.title") }),
|
|
2073
|
+
o ? /* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": n("updates.write"), onClick: () => v(!0), children: /* @__PURE__ */ t(Hi, {}) }) : /* @__PURE__ */ t("span", {})
|
|
2074
|
+
] }),
|
|
2075
|
+
/* @__PURE__ */ t("div", { class: "scroll", style: { paddingBottom: "24px" }, children: f && !p ? /* @__PURE__ */ t("div", { class: "empty", children: [
|
|
2076
|
+
/* @__PURE__ */ t("p", { children: n("board.loadFailed") }),
|
|
2077
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: () => void x(), children: n("board.retry") })
|
|
2078
|
+
] }) : p ? p.length === 0 ? /* @__PURE__ */ t("p", { class: "empty", children: n(o ? "updates.emptyOwner" : "updates.empty") }) : /* @__PURE__ */ t(F, { children: [
|
|
2079
|
+
/* @__PURE__ */ t("p", { class: "updates__intro", children: n("updates.intro", { app: i }) }),
|
|
2080
|
+
/* @__PURE__ */ t("ul", { class: "list", children: p.map((y) => /* @__PURE__ */ t(
|
|
2081
|
+
Pr,
|
|
2082
|
+
{
|
|
2083
|
+
update: y,
|
|
2084
|
+
posts: r,
|
|
2085
|
+
t: n,
|
|
2086
|
+
locale: a,
|
|
2087
|
+
onDelete: o ? () => _(y) : void 0
|
|
2088
|
+
},
|
|
2089
|
+
y.id
|
|
2090
|
+
)) })
|
|
2091
|
+
] }) : /* @__PURE__ */ t("div", { class: "empty", "aria-busy": "true", children: /* @__PURE__ */ t("span", { class: "spinner", style: { display: "inline-block" } }) }) }),
|
|
2092
|
+
w && /* @__PURE__ */ t(
|
|
2093
|
+
Ca,
|
|
2094
|
+
{
|
|
2095
|
+
t: n,
|
|
2096
|
+
title: "updates.deleteTitle",
|
|
2097
|
+
note: "updates.deleteNote",
|
|
2098
|
+
confirm: "updates.deleteBtn",
|
|
2099
|
+
onConfirm: () => void m(w),
|
|
2100
|
+
onClose: () => _(null)
|
|
2101
|
+
}
|
|
2102
|
+
)
|
|
2103
|
+
] });
|
|
2104
|
+
}
|
|
2105
|
+
function qr(e, n, a) {
|
|
2106
|
+
const i = new Set(e.posts), o = (l) => n.filter((b) => b.kind === l && i.has(b.id)).length, r = [], d = (l, b, p) => {
|
|
2107
|
+
l && r.push(l === 1 ? a(b) : a(p, { n: l }));
|
|
2108
|
+
};
|
|
2109
|
+
return d(o("bug"), "updates.bugOne", "updates.bugMany"), d(o("idea"), "updates.ideaOne", "updates.ideaMany"), r.length ? a("updates.fromBoard", { list: r.join(", ") }) : null;
|
|
2110
|
+
}
|
|
2111
|
+
function Ir(e, n) {
|
|
2112
|
+
const a = new Set(e.posts), i = new Set(n.filter((o) => a.has(o.id)).map((o) => o.kind));
|
|
2113
|
+
return i.has("bug") && i.has("idea") ? "board.statusFixedAndDone" : Sn([...i]);
|
|
2114
|
+
}
|
|
2115
|
+
function Pr({
|
|
2116
|
+
update: e,
|
|
2117
|
+
posts: n,
|
|
2118
|
+
t: a,
|
|
2119
|
+
locale: i,
|
|
2120
|
+
onDelete: o
|
|
2121
|
+
}) {
|
|
2122
|
+
const r = ga(e.at, i), d = qr(e, n, a), l = Ir(e, n), b = He(e.link), p = Qt(e.link), h = /* @__PURE__ */ t(F, { children: [
|
|
2123
|
+
/* @__PURE__ */ t("div", { class: "update__head", children: [
|
|
2124
|
+
e.version && /* @__PURE__ */ t("span", { class: "update__version", children: e.version }),
|
|
2125
|
+
/* @__PURE__ */ t("span", { class: "card__when", children: "date" in r ? r.date : a(r.key, r.vars) })
|
|
2126
|
+
] }),
|
|
2127
|
+
/* @__PURE__ */ t("h3", { class: "update__title", children: e.title }),
|
|
2128
|
+
e.text && /* @__PURE__ */ t("p", { class: "update__text", children: e.text }),
|
|
2129
|
+
d && /* @__PURE__ */ t("div", { class: "update__fixed", children: [
|
|
2130
|
+
/* @__PURE__ */ t(an, { tone: "done", icon: () => /* @__PURE__ */ t(Cn, {}), label: a(l) }),
|
|
2131
|
+
/* @__PURE__ */ t("span", { children: d })
|
|
2132
|
+
] })
|
|
2133
|
+
] });
|
|
2134
|
+
return /* @__PURE__ */ t("li", { class: "update", children: [
|
|
2135
|
+
b && p ? /* @__PURE__ */ t("a", { class: "update__link", href: b, target: "_blank", rel: "noopener noreferrer", children: [
|
|
2136
|
+
h,
|
|
2137
|
+
/* @__PURE__ */ t("span", { class: "code-link", children: [
|
|
2138
|
+
/* @__PURE__ */ t(wa, { site: p }),
|
|
2139
|
+
/* @__PURE__ */ t("span", { children: a("fix.view", { site: p }) }),
|
|
2140
|
+
/* @__PURE__ */ t(_a, { size: 12 })
|
|
2141
|
+
] })
|
|
2142
|
+
] }) : /* @__PURE__ */ t("div", { class: "update__link", children: h }),
|
|
2143
|
+
o && /* @__PURE__ */ t("button", { type: "button", class: "icon-btn update__bin", "aria-label": a("updates.delete"), onClick: o, children: /* @__PURE__ */ t(bt, {}) })
|
|
2144
|
+
] });
|
|
2145
|
+
}
|
|
2146
|
+
function Er({
|
|
2147
|
+
t: e,
|
|
2148
|
+
appName: n,
|
|
2149
|
+
posts: a,
|
|
2150
|
+
onBack: i,
|
|
2151
|
+
onPublish: o
|
|
2152
|
+
}) {
|
|
2153
|
+
const [r, d] = k(""), [l, b] = k(""), [p, h] = k(""), [f, c] = k(""), [g, v] = k([]), [w, _] = k(!1), x = at(l), m = He(p), y = a.filter((L) => (L.kind === "bug" || L.kind === "idea") && (L.status === "open" || L.status === "planned")).filter((L) => !L.hidden && !L.pending).sort((L, D) => D.votes - L.votes), S = !!r.trim() && x !== null && !!m && !w, M = async () => {
|
|
2154
|
+
!S || !m || (_(!0), await o({
|
|
2155
|
+
title: r.trim(),
|
|
2156
|
+
...f.trim() ? { text: f.trim() } : {},
|
|
2157
|
+
...x ? { version: x } : {},
|
|
2158
|
+
link: m,
|
|
2159
|
+
posts: g
|
|
2160
|
+
}), _(!1));
|
|
2161
|
+
}, O = (L) => v((D) => D.includes(L) ? D.filter((Y) => Y !== L) : [...D, L]);
|
|
2162
|
+
return /* @__PURE__ */ t(F, { children: [
|
|
2163
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
2164
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": e("board.back"), onClick: i, children: /* @__PURE__ */ t(Le, {}) }),
|
|
2165
|
+
/* @__PURE__ */ t("h2", { class: "bar__title", children: e("updates.write") }),
|
|
2166
|
+
/* @__PURE__ */ t("span", {})
|
|
2167
|
+
] }),
|
|
2168
|
+
/* @__PURE__ */ t("div", { class: "scroll", style: { paddingBottom: "24px" }, children: /* @__PURE__ */ t("div", { class: "compose", children: [
|
|
2169
|
+
/* @__PURE__ */ t("p", { class: "public", style: { marginTop: 0 }, children: e("board.public", { app: n }) }),
|
|
2170
|
+
/* @__PURE__ */ t("label", { class: "label", for: "pnb-update-title", children: e("updates.titleLabel") }),
|
|
2171
|
+
/* @__PURE__ */ t(
|
|
2172
|
+
"input",
|
|
2173
|
+
{
|
|
2174
|
+
id: "pnb-update-title",
|
|
2175
|
+
class: "input",
|
|
2176
|
+
value: r,
|
|
2177
|
+
maxLength: ui,
|
|
2178
|
+
placeholder: e("updates.titlePlaceholder"),
|
|
2179
|
+
onInput: (L) => d(L.target.value)
|
|
2180
|
+
}
|
|
2181
|
+
),
|
|
2182
|
+
/* @__PURE__ */ t("label", { class: "label", for: "pnb-update-version", children: e("fix.version") }),
|
|
2183
|
+
/* @__PURE__ */ t(
|
|
2184
|
+
"input",
|
|
2185
|
+
{
|
|
2186
|
+
id: "pnb-update-version",
|
|
2187
|
+
class: "input",
|
|
2188
|
+
value: l,
|
|
2189
|
+
maxLength: nt,
|
|
2190
|
+
placeholder: "1.4.2",
|
|
2191
|
+
autocomplete: "off",
|
|
2192
|
+
"aria-invalid": x === null,
|
|
2193
|
+
onInput: (L) => b(L.target.value)
|
|
2194
|
+
}
|
|
2195
|
+
),
|
|
2196
|
+
x === null && /* @__PURE__ */ t("p", { class: "note note--bad", children: e("fix.versionBad") }),
|
|
2197
|
+
/* @__PURE__ */ t("label", { class: "label", for: "pnb-update-link", children: e("updates.link") }),
|
|
2198
|
+
/* @__PURE__ */ t(
|
|
2199
|
+
"input",
|
|
2200
|
+
{
|
|
2201
|
+
id: "pnb-update-link",
|
|
2202
|
+
class: "input",
|
|
2203
|
+
type: "url",
|
|
2204
|
+
inputMode: "url",
|
|
2205
|
+
value: p,
|
|
2206
|
+
maxLength: tt,
|
|
2207
|
+
placeholder: "github.com/…/releases/tag/v1.4.2",
|
|
2208
|
+
autocomplete: "off",
|
|
2209
|
+
"aria-invalid": m === null,
|
|
2210
|
+
onInput: (L) => h(L.target.value)
|
|
2211
|
+
}
|
|
2212
|
+
),
|
|
2213
|
+
/* @__PURE__ */ t("p", { class: `note${m === null ? " note--bad" : ""}`, children: e(m === null ? "fix.linkBad" : "updates.linkNote") }),
|
|
2214
|
+
/* @__PURE__ */ t("label", { class: "label", for: "pnb-update-text", children: e("updates.textLabel") }),
|
|
2215
|
+
/* @__PURE__ */ t(
|
|
2216
|
+
"textarea",
|
|
2217
|
+
{
|
|
2218
|
+
id: "pnb-update-text",
|
|
2219
|
+
class: "field",
|
|
2220
|
+
style: { minHeight: "96px" },
|
|
2221
|
+
value: f,
|
|
2222
|
+
maxLength: hi,
|
|
2223
|
+
placeholder: e("updates.textPlaceholder", { app: n }),
|
|
2224
|
+
onInput: (L) => c(L.target.value)
|
|
2225
|
+
}
|
|
2226
|
+
),
|
|
2227
|
+
/* @__PURE__ */ t("span", { class: "label", children: e("updates.fixes") }),
|
|
2228
|
+
y.length === 0 ? /* @__PURE__ */ t("p", { class: "note", children: e("updates.fixesNone") }) : /* @__PURE__ */ t(F, { children: [
|
|
2229
|
+
/* @__PURE__ */ t("ul", { class: "picks", children: y.map((L) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("label", { class: "pick", children: [
|
|
2230
|
+
/* @__PURE__ */ t("input", { type: "checkbox", checked: g.includes(L.id), onChange: () => O(L.id) }),
|
|
2231
|
+
/* @__PURE__ */ t(an, { tone: L.kind, icon: ue[L.kind].icon, label: e(ue[L.kind].label) }),
|
|
2232
|
+
/* @__PURE__ */ t("span", { class: "pick__text", children: L.text })
|
|
2233
|
+
] }) }, L.id)) }),
|
|
2234
|
+
/* @__PURE__ */ t("p", { class: "note", children: e("updates.fixesNote") })
|
|
2235
|
+
] }),
|
|
2236
|
+
/* @__PURE__ */ t("div", { class: "send", children: /* @__PURE__ */ t("button", { type: "button", class: "btn", disabled: !S, onClick: () => void M(), children: w ? /* @__PURE__ */ t("span", { class: "spinner" }) : e("updates.publish") }) })
|
|
2237
|
+
] }) })
|
|
2238
|
+
] });
|
|
2239
|
+
}
|
|
2240
|
+
const jn = 15, Br = (e) => !!e.shot && (e.shotFor ?? "board") === "board" && !e.hidden, Vt = 2600;
|
|
2241
|
+
function Sa({
|
|
2242
|
+
client: e,
|
|
2243
|
+
t: n,
|
|
2244
|
+
locale: a,
|
|
2245
|
+
appName: i,
|
|
2246
|
+
suggestName: o,
|
|
2247
|
+
context: r,
|
|
2248
|
+
noise: d,
|
|
2249
|
+
kinds: l,
|
|
2250
|
+
screenshots: b = "board",
|
|
2251
|
+
readonly: p = !1,
|
|
2252
|
+
names: h = !0,
|
|
2253
|
+
logo: f,
|
|
2254
|
+
onClose: c,
|
|
2255
|
+
onPosted: g,
|
|
2256
|
+
start: v = "board",
|
|
2257
|
+
screen: w
|
|
2258
|
+
}) {
|
|
2259
|
+
const _ = p || v === "choose" && !w && !Qe() && !e.address() ? "board" : v, [x, m] = k(null), [y, S] = k(!1), [M, O] = k(w ?? _), [L, D] = k(_ === "choose"), [Y, I] = k("bug"), [Z, xe] = k("top"), [N, se] = k(Oe), [U, Me] = k(""), [Te, We] = k(null), [T, X] = k(null), [$, he] = k(1), [ne, j] = k(null), [J, Ye] = k(null), [Ta, Ln] = k(!1), [Aa, za] = k(!1), [gt, Oa] = k(() => Pi(e.project)), [Na, $a] = k(() => Fi(e.project)), [Mn, qa] = k(() => Kt(e.project, "fixed")), [Tn, Ia] = k(() => Kt(e.project, "answered")), sn = Se(null), An = (d ?? []).join("|"), Pa = de(() => li(An ? An.split("|") : []), [An]), _t = Se(!1), E = Ti(async () => {
|
|
2260
|
+
const s = await e.board();
|
|
2261
|
+
if (s.ok) {
|
|
2262
|
+
_t.current = !0;
|
|
2263
|
+
const u = p ? Ui(s.data) : s.data;
|
|
2264
|
+
return m(u), S(!1), u;
|
|
2265
|
+
}
|
|
2266
|
+
return _t.current || S(!0), null;
|
|
2267
|
+
}, [e, p]);
|
|
2268
|
+
G(() => {
|
|
2269
|
+
E();
|
|
2270
|
+
}, [E]), G(() => {
|
|
2271
|
+
if (!J) return;
|
|
2272
|
+
const s = setTimeout(() => Ye(null), Vt);
|
|
2273
|
+
return () => clearTimeout(s);
|
|
2274
|
+
}, [J]), G(() => {
|
|
2275
|
+
w && O(w);
|
|
2276
|
+
}, [w]), G(() => {
|
|
2277
|
+
if (M !== "sent" || w === "sent") return;
|
|
2278
|
+
const s = setTimeout(() => {
|
|
2279
|
+
D(!1), O("board");
|
|
2280
|
+
}, Vt);
|
|
2281
|
+
return () => clearTimeout(s);
|
|
2282
|
+
}, [M, w]), G(() => {
|
|
2283
|
+
const s = sn.current;
|
|
2284
|
+
if (!s) return;
|
|
2285
|
+
let u = s.scrollTop, C = 0;
|
|
2286
|
+
const A = () => {
|
|
2287
|
+
const pe = s.scrollTop, ae = pe - u;
|
|
2288
|
+
if (u = pe, pe < 48) {
|
|
2289
|
+
C = 0, Ln(!1);
|
|
2290
|
+
return;
|
|
2291
|
+
}
|
|
2292
|
+
C = Math.sign(ae) === Math.sign(C) ? C + ae : ae, C > 24 ? Ln(!0) : C < -8 && Ln(!1);
|
|
2293
|
+
};
|
|
2294
|
+
return s.addEventListener("scroll", A, { passive: !0 }), () => s.removeEventListener("scroll", A);
|
|
2295
|
+
}, [M, x]);
|
|
2296
|
+
const te = i ?? x?.project.name ?? "", H = x?.project.rules, Ea = Fr(b, H?.screenshots ?? "board"), ie = !!x?.me?.owner, W = x?.posts ?? [], re = (H?.kinds ?? ["bug", "idea"]).filter((s) => !l || l.includes(s)), zn = re.join(",");
|
|
2297
|
+
G(() => {
|
|
2298
|
+
w && re.length && !re.includes(Y) && I(re[0]);
|
|
2299
|
+
}, [w, zn]);
|
|
2300
|
+
const Ze = (s) => {
|
|
2301
|
+
se(s), he(1);
|
|
2302
|
+
}, On = (s) => {
|
|
2303
|
+
Me(s), he(1);
|
|
2304
|
+
}, me = $i(N), Nn = !!U.trim(), Ae = de(
|
|
2305
|
+
() => W.filter((s) => (ie || !s.hidden) && zn.split(",").includes(s.kind)),
|
|
2306
|
+
[W, ie, zn]
|
|
2307
|
+
), $n = de(() => {
|
|
2308
|
+
const s = /* @__PURE__ */ new Map();
|
|
2309
|
+
for (const u of Ae) {
|
|
2310
|
+
if (!Dt(u, N)) continue;
|
|
2311
|
+
const C = Ut(u, U);
|
|
2312
|
+
C && s.set(u.id, C);
|
|
2313
|
+
}
|
|
2314
|
+
return s;
|
|
2315
|
+
}, [Ae, N, U]), ln = de(() => di(Ae.filter((s) => $n.has(s.id)), Z), [Ae, $n, Z]), Ba = (s) => Ae.filter((u) => Dt(u, s) && Ut(u, U)).length, Fa = ie ? ["waiting", "hidden", ...H?.approve || W.some((s) => s.pending) ? ["pending"] : []] : [], qn = ie ? Ae.filter((s) => !s.hidden && Wn(s)).length : 0, Ve = de(() => {
|
|
2316
|
+
const s = W.filter((u) => u.kind === "review" && !u.hidden && u.rating).map((u) => u.rating);
|
|
2317
|
+
return s.length ? { avg: s.reduce((u, C) => u + C, 0) / s.length, n: s.length } : null;
|
|
2318
|
+
}, [W]), ce = de(
|
|
2319
|
+
() => W.filter((s) => s.mine && s.status === "done" && (s.kind === "bug" || s.kind === "idea") && !Mn.includes(s.id)).sort((s, u) => u.at - s.at)[0],
|
|
2320
|
+
[W, Mn]
|
|
2321
|
+
), Da = (s) => {
|
|
2322
|
+
const u = [...Mn, s].slice(-200);
|
|
2323
|
+
qa(u), Gt(e.project, "fixed", u);
|
|
2324
|
+
}, Ke = de(() => W.map((u) => ({ p: u, last: De(u.thread) })).filter(
|
|
2325
|
+
({ p: u, last: C }) => u.mine && C?.from === "app" && (u.kind === "review" || !gn(u.status)) && !Tn.includes(`${u.id}@${C.at}`)
|
|
2326
|
+
).sort((u, C) => (C.last?.at ?? 0) - (u.last?.at ?? 0))[0]?.p, [W, Tn]), vt = (s) => {
|
|
2327
|
+
const u = De(s.thread);
|
|
2328
|
+
if (!u || u.from !== "app") return;
|
|
2329
|
+
const C = [...Tn.filter((A) => !A.startsWith(`${s.id}@`)), `${s.id}@${u.at}`].slice(-200);
|
|
2330
|
+
Ia(C), Gt(e.project, "answered", C);
|
|
2331
|
+
}, xt = (s) => {
|
|
2332
|
+
vt(s), We(s.id), O("talk");
|
|
2333
|
+
}, mt = (s) => {
|
|
2334
|
+
X(s.id), O("manage");
|
|
2335
|
+
}, Ua = !!H && (ie || (x?.updates ?? 0) > 0), wt = !ie && (x?.updates ?? 0) > Na, Ra = () => {
|
|
2336
|
+
const s = x?.updates ?? 0;
|
|
2337
|
+
$a(s), Di(e.project, s), O("updates");
|
|
2338
|
+
}, kt = !!x?.me, yt = !kt && !e.address() && !Qe(), In = Math.max(1, Math.ceil(ln.length / jn)), Pn = Math.min($, In), En = ln.slice((Pn - 1) * jn, Pn * jn), dn = (s, u) => m((C) => C && { ...C, posts: C.posts.map((A) => A.id === s ? { ...A, ...u } : A) }), fe = (s) => {
|
|
2339
|
+
s === "no_signer" ? Ye(n("board.needWallet", { app: te })) : s !== "declined" && Ye(n("board.failed"));
|
|
2340
|
+
}, Bn = async (s, u) => {
|
|
2341
|
+
const C = W.find((pe) => pe.id === s);
|
|
2342
|
+
if (!C) return;
|
|
2343
|
+
if (yt) {
|
|
2344
|
+
j({ kind: "signin", why: "vote", then: () => void Bn(s, u) });
|
|
2345
|
+
return;
|
|
2346
|
+
}
|
|
2347
|
+
dn(s, { votes: Math.max(0, C.votes + (u ? 1 : -1)), voted: u });
|
|
2348
|
+
const A = await e.vote(s, u);
|
|
2349
|
+
A.ok ? (dn(s, { votes: A.data.votes, voted: A.data.voted }), x?.me || E()) : (dn(s, { votes: C.votes, voted: C.voted }), fe(A.error));
|
|
2350
|
+
}, Ha = async (s) => {
|
|
2351
|
+
const u = !h || gt;
|
|
2352
|
+
let C;
|
|
2353
|
+
if (!u && !Bi(e.project, e.address())) {
|
|
2354
|
+
let Dn = x?.me;
|
|
2355
|
+
if (!Dn && Qe()) {
|
|
2356
|
+
const Je = await e.signIn();
|
|
2357
|
+
if (!Je.ok) return Je.error === "declined" ? { key: null } : { key: "board.needWallet", vars: { app: te } };
|
|
2358
|
+
Dn = (await E())?.me;
|
|
2359
|
+
}
|
|
2360
|
+
if (Dn?.name)
|
|
2361
|
+
Rt(e.project, e.address());
|
|
2362
|
+
else {
|
|
2363
|
+
const Je = await new Promise(
|
|
2364
|
+
(ri) => j({ kind: "name", answer: ri })
|
|
2365
|
+
);
|
|
2366
|
+
if (j(null), Je === void 0) return { key: null };
|
|
2367
|
+
Rt(e.project, e.address()), C = Je ?? void 0;
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
const A = pn(), pe = s.kind === "bug" ? { ...r, host: Qe() ? "nimiq-pay" : "browser" } : void 0, ae = await e.post({
|
|
2371
|
+
id: A,
|
|
2372
|
+
kind: s.kind,
|
|
2373
|
+
text: s.text,
|
|
2374
|
+
anon: u,
|
|
2375
|
+
context: pe,
|
|
2376
|
+
rating: s.rating,
|
|
2377
|
+
shot: s.shot ? { type: s.shot.type, data: s.shot.data, ...s.shot.board ? { board: !0 } : {} } : void 0
|
|
2378
|
+
});
|
|
2379
|
+
return ae.ok ? (C && await e.setName(C), za(!!ae.data.pending), O("sent"), xe("new"), se(Oe), Me(""), he(1), g?.({ id: A, kind: s.kind }), await E(), null) : ae.error === "declined" ? { key: null } : ae.error === "no_signer" ? { key: "board.needWallet", vars: { app: te } } : ae.error === "reviewed" ? (E(), { key: "board.reviewed", vars: { app: te } }) : ae.error === "too_many" ? (E(), { key: "board.failedFull", vars: { max: H?.perDay ?? 5 } }) : { key: "board.failed" };
|
|
2380
|
+
}, ja = async () => {
|
|
2381
|
+
const s = await e.signIn();
|
|
2382
|
+
s.ok ? await E() : fe(s.error);
|
|
2383
|
+
}, Wa = async (s) => {
|
|
2384
|
+
j(null), m((C) => C && { ...C, posts: C.posts.filter((A) => A.id !== s.id) });
|
|
2385
|
+
const u = await e.remove(s.id);
|
|
2386
|
+
u.ok || fe(u.error), E();
|
|
2387
|
+
}, Ya = async (s, u) => {
|
|
2388
|
+
O("board");
|
|
2389
|
+
const { message: C, ...A } = u;
|
|
2390
|
+
dn(s.id, {
|
|
2391
|
+
status: A.status,
|
|
2392
|
+
hidden: A.hidden || void 0,
|
|
2393
|
+
fix: A.status === "done" && (A.fix?.version || A.fix?.link) ? A.fix : void 0,
|
|
2394
|
+
...A.shotOff !== void 0 ? { shotFor: A.shotOff ? "off" : "board" } : {},
|
|
2395
|
+
...A.approved ? { pending: void 0 } : {}
|
|
2396
|
+
});
|
|
2397
|
+
const pe = await e.manage(s.id, A);
|
|
2398
|
+
if (!pe.ok) fe(pe.error);
|
|
2399
|
+
else if (C) {
|
|
2400
|
+
const ae = C.edit ? await e.editMessage(s.id, C.edit, { text: C.text }) : await e.say(s.id, { id: pn(), text: C.text });
|
|
2401
|
+
ae.ok || Ge(ae.error);
|
|
2402
|
+
}
|
|
2403
|
+
E();
|
|
2404
|
+
}, Ge = (s) => {
|
|
2405
|
+
s === "not_your_turn" || s === "closed" || s === "not_found" || s === "no_post" ? (Ye(n("talk.moved")), E()) : fe(s);
|
|
2406
|
+
}, Za = async (s, u) => {
|
|
2407
|
+
const C = await e.say(s.id, { id: pn(), text: u });
|
|
2408
|
+
return C.ok ? (await E(), !0) : (Ge(C.error), !1);
|
|
2409
|
+
}, Va = async (s, u, C) => {
|
|
2410
|
+
const A = await e.editMessage(s.id, u.id, { text: C });
|
|
2411
|
+
return A.ok ? (await E(), !0) : (Ge(A.error), !1);
|
|
2412
|
+
}, Ka = async (s, u) => {
|
|
2413
|
+
const C = await e.unsay(s.id, u.id);
|
|
2414
|
+
return C.ok ? (await E(), !0) : (Ge(C.error), !1);
|
|
2415
|
+
}, Ga = async (s, u, C) => {
|
|
2416
|
+
const A = await e.editMessage(s.id, u.id, { hidden: C });
|
|
2417
|
+
if (!A.ok) return Ge(A.error);
|
|
2418
|
+
await E();
|
|
2419
|
+
}, Xa = (s) => {
|
|
2420
|
+
const u = W.find((C) => C.id === s);
|
|
2421
|
+
u && !u.voted && Bn(s, !0), D(!1), O("board"), Ye(n("board.meTooDone"));
|
|
2422
|
+
}, Ja = async (s) => {
|
|
2423
|
+
const u = await e.postUpdate({ id: pn(), ...s });
|
|
2424
|
+
return u.ok ? (await E(), !0) : (fe(u.error), !1);
|
|
2425
|
+
}, Qa = W.some((s) => s.mine && s.kind === "review"), Ct = (s = !yt) => {
|
|
2426
|
+
s ? re.length === 1 ? (I(re[0]), O("compose")) : O("choose") : j({ kind: "signin", why: "feedback", then: () => Ct(!0) });
|
|
2427
|
+
}, we = () => {
|
|
2428
|
+
D(!1), O("board");
|
|
2429
|
+
}, ei = async (s) => {
|
|
2430
|
+
j(null);
|
|
2431
|
+
const u = await e.signIn();
|
|
2432
|
+
if (!u.ok) return fe(u.error);
|
|
2433
|
+
await E(), s();
|
|
2434
|
+
}, ni = (s) => {
|
|
2435
|
+
Oa(s), Ei(e.project, s);
|
|
2436
|
+
}, ti = async (s) => {
|
|
2437
|
+
const u = await e.setName(s);
|
|
2438
|
+
return u.ok ? (E(), !0) : (fe(u.error), !1);
|
|
2439
|
+
}, ai = async () => {
|
|
2440
|
+
j(null), e.signOut(), m((s) => s && { ...s, me: void 0 }), O("board"), await E();
|
|
2441
|
+
}, ii = !Qe(), Fn = /* @__PURE__ */ t(F, { children: [
|
|
2442
|
+
ne?.kind === "signin" && /* @__PURE__ */ t(
|
|
2443
|
+
kr,
|
|
2444
|
+
{
|
|
2445
|
+
t: n,
|
|
2446
|
+
why: ne.why,
|
|
2447
|
+
canSign: e.canSign,
|
|
2448
|
+
appName: te,
|
|
2449
|
+
onSignIn: () => void ei(ne.then),
|
|
2450
|
+
onClose: () => j(null)
|
|
2451
|
+
}
|
|
2452
|
+
),
|
|
2453
|
+
ne?.kind === "logout" && /* @__PURE__ */ t(yr, { t: n, onConfirm: () => void ai(), onClose: () => j(null) }),
|
|
2454
|
+
ne?.kind === "name" && /* @__PURE__ */ t(
|
|
2455
|
+
Cr,
|
|
2456
|
+
{
|
|
2457
|
+
t: n,
|
|
2458
|
+
face: x?.me?.face,
|
|
2459
|
+
faceUrl: e.faceUrl,
|
|
2460
|
+
suggest: o,
|
|
2461
|
+
onSave: (s) => ne.answer(s),
|
|
2462
|
+
onSkip: () => ne.answer(null),
|
|
2463
|
+
onClose: () => ne.answer(void 0)
|
|
2464
|
+
}
|
|
2465
|
+
)
|
|
2466
|
+
] });
|
|
2467
|
+
if (M === "sent")
|
|
2468
|
+
return /* @__PURE__ */ t("div", { class: "app", children: /* @__PURE__ */ t(pr, { t: n, onBack: we, waiting: Aa || w === "sent" && !!H?.approve, appName: te }) });
|
|
2469
|
+
if (M === "updates" && H)
|
|
2470
|
+
return /* @__PURE__ */ t("div", { class: "app", children: [
|
|
2471
|
+
/* @__PURE__ */ t(
|
|
2472
|
+
$r,
|
|
2473
|
+
{
|
|
2474
|
+
client: e,
|
|
2475
|
+
t: n,
|
|
2476
|
+
locale: a,
|
|
2477
|
+
appName: te,
|
|
2478
|
+
owner: ie,
|
|
2479
|
+
posts: W,
|
|
2480
|
+
onBack: we,
|
|
2481
|
+
onPublish: Ja,
|
|
2482
|
+
onFail: fe
|
|
2483
|
+
}
|
|
2484
|
+
),
|
|
2485
|
+
J && /* @__PURE__ */ t("div", { class: "toast", role: "status", children: J })
|
|
2486
|
+
] });
|
|
2487
|
+
const ze = M === "manage" && ie ? W.find((s) => s.id === T) : void 0;
|
|
2488
|
+
if (ze && H)
|
|
2489
|
+
return /* @__PURE__ */ t("div", { class: "app", children: [
|
|
2490
|
+
/* @__PURE__ */ t(
|
|
2491
|
+
wr,
|
|
2492
|
+
{
|
|
2493
|
+
t: n,
|
|
2494
|
+
post: ze,
|
|
2495
|
+
appName: te,
|
|
2496
|
+
locale: a,
|
|
2497
|
+
replyMax: H.replyMax,
|
|
2498
|
+
loadShot: async () => {
|
|
2499
|
+
const s = await e.shot(ze.id);
|
|
2500
|
+
return s.ok ? s.data : null;
|
|
2501
|
+
},
|
|
2502
|
+
onSave: (s) => void Ya(ze, s),
|
|
2503
|
+
onHideMessage: (s, u) => void Ga(ze, s, u),
|
|
2504
|
+
onBack: we
|
|
2505
|
+
},
|
|
2506
|
+
ze.id
|
|
2507
|
+
),
|
|
2508
|
+
J && /* @__PURE__ */ t("div", { class: "toast", role: "status", children: J })
|
|
2509
|
+
] });
|
|
2510
|
+
const Xe = M === "talk" ? W.find((s) => s.id === Te) : void 0;
|
|
2511
|
+
return Xe && H ? /* @__PURE__ */ t("div", { class: "app", children: [
|
|
2512
|
+
/* @__PURE__ */ t(
|
|
2513
|
+
vr,
|
|
2514
|
+
{
|
|
2515
|
+
post: Xe,
|
|
2516
|
+
appName: te,
|
|
2517
|
+
t: n,
|
|
2518
|
+
locale: a,
|
|
2519
|
+
replyMax: H.replyMax,
|
|
2520
|
+
onBack: we,
|
|
2521
|
+
onSay: (s) => Za(Xe, s),
|
|
2522
|
+
onEdit: (s, u) => Va(Xe, s, u),
|
|
2523
|
+
onUnsay: (s) => Ka(Xe, s)
|
|
2524
|
+
}
|
|
2525
|
+
),
|
|
2526
|
+
J && /* @__PURE__ */ t("div", { class: "toast", role: "status", children: J })
|
|
2527
|
+
] }) : M === "settings" && x?.me ? /* @__PURE__ */ t("div", { class: "app", children: [
|
|
2528
|
+
/* @__PURE__ */ t(
|
|
2529
|
+
Nr,
|
|
2530
|
+
{
|
|
2531
|
+
t: n,
|
|
2532
|
+
me: x.me,
|
|
2533
|
+
faceUrl: e.faceUrl,
|
|
2534
|
+
names: h,
|
|
2535
|
+
anon: gt,
|
|
2536
|
+
canLogOut: ii,
|
|
2537
|
+
onAnon: ni,
|
|
2538
|
+
onName: ti,
|
|
2539
|
+
onLogOut: () => j({ kind: "logout" }),
|
|
2540
|
+
onBack: we
|
|
2541
|
+
}
|
|
2542
|
+
),
|
|
2543
|
+
J && /* @__PURE__ */ t("div", { class: "toast", role: "status", children: J }),
|
|
2544
|
+
Fn
|
|
2545
|
+
] }) : M === "choose" && (H || L) ? /* @__PURE__ */ t("div", { class: "app", children: [
|
|
2546
|
+
L ? (
|
|
2547
|
+
// The first screen: nothing to go back to, only out.
|
|
2548
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
2549
|
+
/* @__PURE__ */ t("span", {}),
|
|
2550
|
+
/* @__PURE__ */ t("span", {}),
|
|
2551
|
+
c ? /* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": n("board.close"), onClick: c, children: /* @__PURE__ */ t(ke, {}) }) : /* @__PURE__ */ t("span", {})
|
|
2552
|
+
] })
|
|
2553
|
+
) : /* @__PURE__ */ t("header", { class: "bar", children: [
|
|
2554
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": n("board.back"), onClick: we, children: /* @__PURE__ */ t(Le, {}) }),
|
|
2555
|
+
/* @__PURE__ */ t("h2", { class: "bar__title bar__title--write", children: n("board.composeTitle") }),
|
|
2556
|
+
/* @__PURE__ */ t("span", {})
|
|
2557
|
+
] }),
|
|
2558
|
+
/* @__PURE__ */ t("div", { class: "scroll", style: { paddingBottom: "24px" }, children: H ? /* @__PURE__ */ t(
|
|
2559
|
+
cr,
|
|
2560
|
+
{
|
|
2561
|
+
t: n,
|
|
2562
|
+
kinds: re,
|
|
2563
|
+
appName: te,
|
|
2564
|
+
reviewed: Qa,
|
|
2565
|
+
onPick: (s) => {
|
|
2566
|
+
I(s), O("compose");
|
|
2567
|
+
},
|
|
2568
|
+
onBoard: L ? we : void 0
|
|
2569
|
+
}
|
|
2570
|
+
) : y ? /* @__PURE__ */ t("div", { class: "empty", children: [
|
|
2571
|
+
/* @__PURE__ */ t("p", { children: n("board.loadFailed") }),
|
|
2572
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: () => void E(), children: n("board.retry") })
|
|
2573
|
+
] }) : /* @__PURE__ */ t("div", { class: "empty", "aria-busy": "true", children: /* @__PURE__ */ t("span", { class: "spinner", style: { display: "inline-block" } }) }) })
|
|
2574
|
+
] }) : M === "compose" && H ? /* @__PURE__ */ t("div", { class: "app", children: [
|
|
2575
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
2576
|
+
/* @__PURE__ */ t(
|
|
2577
|
+
"button",
|
|
2578
|
+
{
|
|
2579
|
+
type: "button",
|
|
2580
|
+
class: "icon-btn",
|
|
2581
|
+
"aria-label": n("board.back"),
|
|
2582
|
+
onClick: () => O(re.length > 1 ? "choose" : "board"),
|
|
2583
|
+
children: /* @__PURE__ */ t(Le, {})
|
|
2584
|
+
}
|
|
2585
|
+
),
|
|
2586
|
+
/* @__PURE__ */ t("h2", { class: "bar__title bar__title--write", children: n("board.composeTitle") }),
|
|
2587
|
+
/* @__PURE__ */ t("span", {})
|
|
2588
|
+
] }),
|
|
2589
|
+
/* @__PURE__ */ t("div", { class: "scroll", ref: sn, style: { paddingBottom: "calc(12px + var(--_bottom))" }, children: /* @__PURE__ */ t(
|
|
2590
|
+
br,
|
|
2591
|
+
{
|
|
2592
|
+
t: n,
|
|
2593
|
+
kind: Y,
|
|
2594
|
+
posts: W,
|
|
2595
|
+
likeThis: Pa,
|
|
2596
|
+
left: x?.me ? x.me.left : null,
|
|
2597
|
+
perDay: H.perDay,
|
|
2598
|
+
textMax: H.textMax,
|
|
2599
|
+
appName: te,
|
|
2600
|
+
screenshots: Ea,
|
|
2601
|
+
onMeToo: Xa,
|
|
2602
|
+
onSend: Ha
|
|
2603
|
+
}
|
|
2604
|
+
) }),
|
|
2605
|
+
J && /* @__PURE__ */ t("div", { class: "toast", role: "status", children: J }),
|
|
2606
|
+
Fn
|
|
2607
|
+
] }) : /* @__PURE__ */ t("div", { class: "app", children: [
|
|
2608
|
+
/* @__PURE__ */ t("header", { class: "bar", children: [
|
|
2609
|
+
/* @__PURE__ */ t("div", { class: "bar__side", children: [
|
|
2610
|
+
c && /* @__PURE__ */ t("button", { type: "button", class: "icon-btn", "aria-label": n("board.close"), onClick: c, children: /* @__PURE__ */ t(ke, {}) }),
|
|
2611
|
+
Ua && /* @__PURE__ */ t(
|
|
2612
|
+
"button",
|
|
2613
|
+
{
|
|
2614
|
+
type: "button",
|
|
2615
|
+
class: "icon-btn bar__updates",
|
|
2616
|
+
"aria-label": wt ? `${n("updates.title")}: ${n("updates.new")}` : n("updates.title"),
|
|
2617
|
+
onClick: Ra,
|
|
2618
|
+
children: [
|
|
2619
|
+
/* @__PURE__ */ t(Vi, {}),
|
|
2620
|
+
wt && /* @__PURE__ */ t("span", { class: "dot", "aria-hidden": "true" })
|
|
2621
|
+
]
|
|
2622
|
+
}
|
|
2623
|
+
)
|
|
2624
|
+
] }),
|
|
2625
|
+
/* @__PURE__ */ t("h2", { class: "bar__title bar__title--board bar__brand", children: [
|
|
2626
|
+
f === void 0 ? /* @__PURE__ */ t(ar, {}) : f && f !== "none" ? /* @__PURE__ */ t("img", { class: "bar__logo", src: f, alt: "", height: 22 }) : null,
|
|
2627
|
+
/* @__PURE__ */ t("span", { class: "bar__name", children: n("board.title") })
|
|
2628
|
+
] }),
|
|
2629
|
+
p ? /* @__PURE__ */ t("span", {}) : kt ? (
|
|
2630
|
+
// Your identicon is the way to your settings: who you are here.
|
|
2631
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn me-btn", "aria-label": n("settings.open"), onClick: () => O("settings"), children: /* @__PURE__ */ t(Re, { code: x?.me?.face, src: x?.me?.face ? e.faceUrl(x.me.face) : void 0, size: 30 }) })
|
|
2632
|
+
) : x && e.canSign ? /* @__PURE__ */ t("button", { type: "button", class: "signin-btn", onClick: () => void ja(), children: n("board.signInShort") }) : /* @__PURE__ */ t("span", {})
|
|
2633
|
+
] }),
|
|
2634
|
+
/* @__PURE__ */ t("div", { class: "filters finder", children: [
|
|
2635
|
+
/* @__PURE__ */ t("label", { class: "search", children: [
|
|
2636
|
+
/* @__PURE__ */ t(Ji, {}),
|
|
2637
|
+
/* @__PURE__ */ t(
|
|
2638
|
+
"input",
|
|
2639
|
+
{
|
|
2640
|
+
class: "search__input",
|
|
2641
|
+
type: "search",
|
|
2642
|
+
value: U,
|
|
2643
|
+
placeholder: n("search.placeholder"),
|
|
2644
|
+
"aria-label": n("search.placeholder"),
|
|
2645
|
+
onInput: (s) => On(s.target.value)
|
|
2646
|
+
}
|
|
2647
|
+
),
|
|
2648
|
+
U && /* @__PURE__ */ t("button", { type: "button", class: "search__clear", "aria-label": n("search.clear"), onClick: () => On(""), children: /* @__PURE__ */ t(ke, { size: 16 }) })
|
|
2649
|
+
] }),
|
|
2650
|
+
/* @__PURE__ */ t(
|
|
2651
|
+
"button",
|
|
2652
|
+
{
|
|
2653
|
+
type: "button",
|
|
2654
|
+
class: "filter-btn",
|
|
2655
|
+
"aria-pressed": me > 0,
|
|
2656
|
+
"aria-label": me > 0 ? `${n("filter.button")}: ${n("filter.on", { n: me })}` : n("filter.button"),
|
|
2657
|
+
onClick: () => j({ kind: "filter" }),
|
|
2658
|
+
children: [
|
|
2659
|
+
/* @__PURE__ */ t(Qi, {}),
|
|
2660
|
+
/* @__PURE__ */ t("span", { children: n("filter.button") }),
|
|
2661
|
+
me > 0 && /* @__PURE__ */ t("span", { class: "filter-btn__n", children: me })
|
|
2662
|
+
]
|
|
2663
|
+
}
|
|
2664
|
+
)
|
|
2665
|
+
] }),
|
|
2666
|
+
me > 0 && /* @__PURE__ */ t("div", { class: "applied", children: [
|
|
2667
|
+
[
|
|
2668
|
+
...N.kinds.map((s) => ({ label: ye(n, { kind: s }), off: { ...N, kinds: N.kinds.filter((u) => u !== s) } })),
|
|
2669
|
+
...N.statuses.map((s) => ({
|
|
2670
|
+
label: ye(n, { status: s, kinds: N.kinds.length ? N.kinds : re }),
|
|
2671
|
+
off: { ...N, statuses: N.statuses.filter((u) => u !== s) }
|
|
2672
|
+
})),
|
|
2673
|
+
...N.own.map((s) => ({ label: ye(n, { own: s }), off: { ...N, own: N.own.filter((u) => u !== s) } })),
|
|
2674
|
+
...N.mine ? [{ label: ye(n, {}), off: { ...N, mine: !1 } }] : []
|
|
2675
|
+
].map((s) => /* @__PURE__ */ t(
|
|
2676
|
+
"button",
|
|
2677
|
+
{
|
|
2678
|
+
type: "button",
|
|
2679
|
+
class: "applied__chip",
|
|
2680
|
+
"aria-label": n("filter.remove", { label: s.label }),
|
|
2681
|
+
onClick: () => Ze(s.off),
|
|
2682
|
+
children: [
|
|
2683
|
+
/* @__PURE__ */ t("span", { children: s.label }),
|
|
2684
|
+
/* @__PURE__ */ t(ke, { size: 14 })
|
|
2685
|
+
]
|
|
2686
|
+
},
|
|
2687
|
+
s.label
|
|
2688
|
+
)),
|
|
2689
|
+
/* @__PURE__ */ t("button", { type: "button", class: "link-btn", onClick: () => Ze(Oe), children: n("filter.clearAll") })
|
|
2690
|
+
] }),
|
|
2691
|
+
/* @__PURE__ */ t("div", { class: "scroll", ref: sn, children: [
|
|
2692
|
+
ce && /* @__PURE__ */ t("div", { class: "news", role: "status", children: [
|
|
2693
|
+
/* @__PURE__ */ t(an, { tone: "done", icon: () => /* @__PURE__ */ t(Cn, {}), label: n(Sn([ce.kind])) }),
|
|
2694
|
+
/* @__PURE__ */ t("div", { class: "news__text", children: [
|
|
2695
|
+
/* @__PURE__ */ t("strong", { class: "news__title", children: ce.fix?.version ? n(ce.kind === "idea" ? "news.ideaIn" : "news.bugIn", { version: ce.fix.version }) : n(ce.kind === "idea" ? "news.idea" : "news.bug") }),
|
|
2696
|
+
/* @__PURE__ */ t("span", { class: "news__post", children: ce.text }),
|
|
2697
|
+
ce.fix?.link && /* @__PURE__ */ t(ka, { href: ce.fix.link, t: n, label: "news.see" })
|
|
2698
|
+
] }),
|
|
2699
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn news__close", "aria-label": n("board.close"), onClick: () => Da(ce.id), children: /* @__PURE__ */ t(ke, { size: 18 }) })
|
|
2700
|
+
] }),
|
|
2701
|
+
Ke && /* @__PURE__ */ t("div", { class: "news", role: "status", children: [
|
|
2702
|
+
/* @__PURE__ */ t("div", { class: "news__text", children: [
|
|
2703
|
+
/* @__PURE__ */ t("strong", { class: "news__title", children: n(Ke.kind === "idea" ? "answered.idea" : Ke.kind === "review" ? "answered.review" : "answered.bug", {
|
|
2704
|
+
app: te
|
|
2705
|
+
}) }),
|
|
2706
|
+
/* @__PURE__ */ t("button", { type: "button", class: "link-btn news__link", onClick: () => xt(Ke), children: n("answered.see") })
|
|
2707
|
+
] }),
|
|
2708
|
+
/* @__PURE__ */ t("button", { type: "button", class: "icon-btn news__close", "aria-label": n("board.close"), onClick: () => vt(Ke), children: /* @__PURE__ */ t(ke, { size: 18 }) })
|
|
2709
|
+
] }),
|
|
2710
|
+
qn > 0 && !N.own.includes("waiting") && /* @__PURE__ */ t("div", { class: "news news--owner", role: "status", children: [
|
|
2711
|
+
/* @__PURE__ */ t("strong", { class: "news__title news__grow", children: qn === 1 ? n("owner.waitingOne") : n("owner.waitingMany", { n: qn }) }),
|
|
2712
|
+
/* @__PURE__ */ t("button", { type: "button", class: "chip-btn", onClick: () => Ze({ ...Oe, own: ["waiting"] }), children: n("owner.showThese") })
|
|
2713
|
+
] }),
|
|
2714
|
+
Nn && x && /* @__PURE__ */ t("p", { class: "found-count", children: ln.length === 1 ? n("search.countOne", { q: U.trim() }) : n("search.count", { n: ln.length, q: U.trim() }) }),
|
|
2715
|
+
Ve && re.includes("review") && (!N.kinds.length || N.kinds.includes("review")) && !N.statuses.length && !N.mine && !N.own.length && !Nn && /* @__PURE__ */ t("div", { class: "rating", children: [
|
|
2716
|
+
/* @__PURE__ */ t("span", { class: "rating__avg", children: Ve.avg.toFixed(1) }),
|
|
2717
|
+
/* @__PURE__ */ t(ma, { n: Ve.avg, t: n, size: 18 }),
|
|
2718
|
+
/* @__PURE__ */ t("span", { class: "rating__n", children: Ve.n === 1 ? n("board.ratingOne") : n("board.ratingMany", { n: Ve.n }) })
|
|
2719
|
+
] }),
|
|
2720
|
+
y ? /* @__PURE__ */ t("div", { class: "empty", children: [
|
|
2721
|
+
/* @__PURE__ */ t("p", { children: n("board.loadFailed") }),
|
|
2722
|
+
/* @__PURE__ */ t("button", { type: "button", class: "text-btn", onClick: () => void E(), children: n("board.retry") })
|
|
2723
|
+
] }) : x ? En.length === 0 && (Nn || me > 0) ? /* @__PURE__ */ t("div", { class: "empty nothing", children: [
|
|
2724
|
+
/* @__PURE__ */ t("strong", { class: "nothing__title", children: n("filter.none") }),
|
|
2725
|
+
/* @__PURE__ */ t("p", { children: n("filter.noneNote") }),
|
|
2726
|
+
/* @__PURE__ */ t(
|
|
2727
|
+
"button",
|
|
2728
|
+
{
|
|
2729
|
+
type: "button",
|
|
2730
|
+
class: "outline-btn",
|
|
2731
|
+
onClick: () => {
|
|
2732
|
+
On(""), Ze(Oe);
|
|
2733
|
+
},
|
|
2734
|
+
children: n("filter.clear")
|
|
2735
|
+
}
|
|
2736
|
+
)
|
|
2737
|
+
] }) : En.length === 0 ? /* @__PURE__ */ t("p", { class: "empty", children: n(W.length > 0 ? "board.emptyFiltered" : p ? "board.emptyRead" : "board.emptyTitle") }) : /* @__PURE__ */ t("ul", { class: "list", children: En.map((s) => /* @__PURE__ */ t(
|
|
2738
|
+
ft,
|
|
2739
|
+
{
|
|
2740
|
+
post: s,
|
|
2741
|
+
appName: te,
|
|
2742
|
+
t: n,
|
|
2743
|
+
locale: a,
|
|
2744
|
+
onVote: p ? void 0 : (u) => void Bn(s.id, u),
|
|
2745
|
+
onDelete: s.mine || ie ? () => j({ kind: "delete", post: s }) : void 0,
|
|
2746
|
+
onManage: ie ? () => mt(s) : void 0,
|
|
2747
|
+
onTalk: ie ? () => mt(s) : () => xt(s),
|
|
2748
|
+
shotUrl: Br(s) ? e.shotUrl(s.id) : void 0,
|
|
2749
|
+
faceUrl: s.face ? e.faceUrl(s.face) : void 0,
|
|
2750
|
+
onShot: () => j({ kind: "shot", post: s }),
|
|
2751
|
+
fresh: ie && !s.hidden && Wn(s),
|
|
2752
|
+
query: U,
|
|
2753
|
+
found: (() => {
|
|
2754
|
+
const u = $n.get(s.id);
|
|
2755
|
+
return u?.in === "thread" ? u.message : void 0;
|
|
2756
|
+
})()
|
|
2757
|
+
},
|
|
2758
|
+
s.id
|
|
2759
|
+
)) }) : /* @__PURE__ */ t("div", { class: "empty", "aria-busy": "true", children: /* @__PURE__ */ t("span", { class: "spinner", style: { display: "inline-block" } }) }),
|
|
2760
|
+
In > 1 && /* @__PURE__ */ t("nav", { class: "pager", children: Array.from({ length: In }, (s, u) => u + 1).map((s) => /* @__PURE__ */ t(
|
|
2761
|
+
"button",
|
|
2762
|
+
{
|
|
2763
|
+
type: "button",
|
|
2764
|
+
"aria-current": s === Pn ? "page" : void 0,
|
|
2765
|
+
"aria-label": n("board.page", { n: s }),
|
|
2766
|
+
onClick: () => {
|
|
2767
|
+
he(s), sn.current?.scrollTo({ top: 0 });
|
|
2768
|
+
},
|
|
2769
|
+
children: s
|
|
2770
|
+
},
|
|
2771
|
+
s
|
|
2772
|
+
)) })
|
|
2773
|
+
] }),
|
|
2774
|
+
!p && /* @__PURE__ */ t("div", { class: `foot${Ta ? " foot--away" : ""}`, children: /* @__PURE__ */ t(
|
|
2775
|
+
"button",
|
|
2776
|
+
{
|
|
2777
|
+
type: "button",
|
|
2778
|
+
class: "send-fab",
|
|
2779
|
+
disabled: !H || !re.length,
|
|
2780
|
+
onClick: () => Ct(),
|
|
2781
|
+
children: n("board.sendFeedback")
|
|
2782
|
+
}
|
|
2783
|
+
) }),
|
|
2784
|
+
J && /* @__PURE__ */ t("div", { class: "toast", role: "status", children: J }),
|
|
2785
|
+
ne?.kind === "delete" && /* @__PURE__ */ t(Ca, { t: n, onConfirm: () => void Wa(ne.post), onClose: () => j(null) }),
|
|
2786
|
+
ne?.kind === "filter" && H && /* @__PURE__ */ t(
|
|
2787
|
+
Ar,
|
|
2788
|
+
{
|
|
2789
|
+
t: n,
|
|
2790
|
+
kinds: re,
|
|
2791
|
+
owners: Fa,
|
|
2792
|
+
signedIn: !!x?.me,
|
|
2793
|
+
value: N,
|
|
2794
|
+
sort: Z,
|
|
2795
|
+
count: Ba,
|
|
2796
|
+
onApply: (s, u) => {
|
|
2797
|
+
j(null), Ze(s), xe(u);
|
|
2798
|
+
},
|
|
2799
|
+
onClose: () => j(null)
|
|
2800
|
+
}
|
|
2801
|
+
),
|
|
2802
|
+
ne?.kind === "shot" && /* @__PURE__ */ t(Sr, { t: n, src: e.shotUrl(ne.post.id), onClose: () => j(null) }),
|
|
2803
|
+
Fn
|
|
2804
|
+
] });
|
|
2805
|
+
}
|
|
2806
|
+
function pn() {
|
|
2807
|
+
return typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : `p-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
2808
|
+
}
|
|
2809
|
+
function Kt(e, n) {
|
|
2810
|
+
try {
|
|
2811
|
+
const a = globalThis.localStorage?.getItem(`pleasenobugs.${n}.${e}`), i = a ? JSON.parse(a) : [];
|
|
2812
|
+
return Array.isArray(i) ? i.filter((o) => typeof o == "string") : [];
|
|
2813
|
+
} catch {
|
|
2814
|
+
return [];
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
function Gt(e, n, a) {
|
|
2818
|
+
try {
|
|
2819
|
+
globalThis.localStorage?.setItem(`pleasenobugs.${n}.${e}`, JSON.stringify(a));
|
|
2820
|
+
} catch {
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
function Fr(e, n) {
|
|
2824
|
+
const a = ["off", "owners", "board"];
|
|
2825
|
+
return a[Math.min(a.indexOf(e), a.indexOf(n))];
|
|
2826
|
+
}
|
|
2827
|
+
const Dr = ':host{--pnb-bg: #ffffff;--pnb-surface: #f4f4f5;--pnb-surface-2: #ececee;--pnb-sunken: #ececee;--pnb-line: #e4e4e7;--pnb-text: #111111;--pnb-text-quiet: #6b6b72;--pnb-accent: #111111;--pnb-accent-fill: var(--pnb-accent);--pnb-on-accent: #ffffff;--pnb-danger: #d23b2f;--pnb-bug: #e5484d;--pnb-idea: #8b5cf6;--pnb-review: #e9a00b;--pnb-planned: #8a8fb8;--pnb-done: #21bca5;--pnb-declined: #8a8fb8;--pnb-on-dot: #ffffff;--pnb-on-bug: var(--pnb-on-dot);--pnb-on-idea: var(--pnb-on-dot);--pnb-on-review: var(--pnb-on-dot);--pnb-on-planned: var(--pnb-on-dot);--pnb-on-done: var(--pnb-on-dot);--pnb-on-declined: var(--pnb-on-dot);--pnb-star: #f5a524;--pnb-filter: color-mix(in srgb, var(--pnb-text) 16%, var(--pnb-bg));--pnb-on-filter: var(--pnb-text);--pnb-choose-title: var(--pnb-text);--pnb-title-board: var(--pnb-text);--pnb-title-write: var(--pnb-text);--pnb-card: #ffffff;--pnb-card-text: var(--pnb-text);--pnb-card-quiet: var(--pnb-text-quiet);--pnb-field: var(--pnb-surface);--pnb-shot-line: var(--pnb-line);--pnb-field-in-card: var(--pnb-surface);--pnb-field-text: var(--pnb-text);--pnb-field-quiet: var(--pnb-text-quiet);--pnb-field-line: var(--pnb-line);--pnb-news: var(--pnb-surface-2);--pnb-news-line: var(--pnb-accent);--pnb-news-text: var(--pnb-text);--pnb-news-link: var(--pnb-accent);--pnb-news-quiet: var(--pnb-text-quiet);--pnb-filter-btn: #ffffff;--pnb-filter-btn-text: var(--pnb-text);--pnb-filter-btn-line: var(--pnb-line);--pnb-bar-icon: var(--pnb-text);--pnb-order: var(--pnb-sunken);--pnb-order-text: var(--pnb-text-quiet);--pnb-vote: var(--pnb-surface-2);--pnb-vote-text: var(--pnb-card-text);--pnb-vote-on: var(--pnb-accent);--pnb-on-vote-on: var(--pnb-on-accent);--pnb-choose-link: var(--pnb-text-quiet);--pnb-form-quiet: var(--pnb-text-quiet);--pnb-switch: var(--pnb-surface-2);--pnb-switch-line: var(--pnb-line);--pnb-switch-knob: var(--pnb-text-quiet);--pnb-switch-on: var(--pnb-accent);--pnb-on-switch-on: var(--pnb-on-accent);--pnb-tile-bug: var(--pnb-bug);--pnb-tile-idea: var(--pnb-idea);--pnb-tile-review: var(--pnb-review);--pnb-tile-ink: #ffffff;--pnb-tile-ink-bug: var(--pnb-tile-ink);--pnb-tile-ink-idea: var(--pnb-tile-ink);--pnb-tile-ink-review: var(--pnb-tile-ink);--pnb-tile-dot-bug: transparent;--pnb-tile-dot-idea: transparent;--pnb-tile-dot-review: transparent;--pnb-tile-glyph-bug: var(--pnb-tile-ink-bug);--pnb-tile-glyph-idea: var(--pnb-tile-ink-idea);--pnb-tile-glyph-review: var(--pnb-tile-ink-review);--pnb-tile-icon: 44px;--pnb-order-on: var(--pnb-surface);--pnb-on-order: var(--pnb-text);--pnb-sent: var(--pnb-bg);--pnb-sent-title: var(--pnb-text);--pnb-sent-note: var(--pnb-text-quiet);--pnb-sent-check: var(--pnb-done);--pnb-on-sent-check: #ffffff;--pnb-raise: none;--pnb-raise-pressed: none;--pnb-raise-sink: 0px;--pnb-fab: var(--pnb-accent-fill);--pnb-on-fab: #ffffff;--pnb-fab-shadow: 0 8px 24px rgba(0, 0, 0, .16);--pnb-fab-shadow-pressed: var(--pnb-fab-shadow);--pnb-fab-squeeze: .94;--pnb-radius: 10px;--pnb-radius-sheet: 16px;--pnb-radius-panel: 16px;--pnb-sheet-top: 48px;--pnb-radius-pill: 999px;--pnb-shadow: 0 8px 24px rgba(0, 0, 0, .12);--pnb-scrim: rgba(0, 0, 0, .4);--pnb-font: inherit;--pnb-z: 2147483000;--pnb-inset-top: env(safe-area-inset-top, 0px);--pnb-inset-bottom: env(safe-area-inset-bottom, 0px);display:block;font-family:var(--pnb-font);color:var(--pnb-text);-webkit-tap-highlight-color:transparent}:host([theme="dark"]){--pnb-bg: #111111;--pnb-surface: #1c1c1e;--pnb-surface-2: #2a2a2d;--pnb-sunken: #0a0a0a;--pnb-line: #2e2e32;--pnb-text: #ffffff;--pnb-text-quiet: #a1a1aa;--pnb-accent: #ffffff;--pnb-on-accent: #111111;--pnb-danger: #ff6b5e;--pnb-card: #1c1c1e;--pnb-field: #2a2a2d;--pnb-field-in-card: #111111;--pnb-filter-btn: #1c1c1e;--pnb-filter-btn-line: #3a3a3e;--pnb-on-fab: #111111;--pnb-fab-shadow: 0 8px 24px rgba(0, 0, 0, .5);--pnb-shadow: 0 8px 24px rgba(0, 0, 0, .45);--pnb-scrim: rgba(0, 0, 0, .6)}:host([theme="pleasenobugs"]){--pnb-bg: #292a56;--pnb-surface: #5656ac;--pnb-surface-2: #454689;--pnb-sunken: #1a1a32;--pnb-line: #6d6dc5;--pnb-text: #ffffff;--pnb-text-quiet: rgba(255, 255, 255, .78);--pnb-accent: #1fc7d4;--pnb-accent-fill: linear-gradient(var(--pnb-accent), color-mix(in srgb, var(--pnb-accent), #000 18%));--pnb-on-accent: #12132b;--pnb-danger: #ff7a6b;--pnb-card: var(--pnb-surface);--pnb-field: var(--pnb-surface);--pnb-field-in-card: var(--pnb-bg);--pnb-filter-btn: var(--pnb-surface);--pnb-raise: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .4), 0 4px 10px -4px rgba(0, 0, 0, .35);--pnb-raise-pressed: inset 0 2px 4px rgba(0, 0, 0, .27);--pnb-raise-sink: 1px;--pnb-on-fab: #ffffff;--pnb-fab-shadow: var(--pnb-raise), var(--pnb-shadow);--pnb-fab-shadow-pressed: var(--pnb-raise-pressed), var(--pnb-shadow);--pnb-fab-squeeze: 1;--pnb-radius: 8px;--pnb-shadow: 0 6px 16px rgba(0, 0, 0, .28);--pnb-scrim: rgba(10, 10, 30, .6)}:host([theme="nimiq"]),:host([theme="nimiq-dark"]){--pnb-bg: #ffffff;--pnb-surface: #fafaf8;--pnb-surface-2: #f2f3f4;--pnb-sunken: #f2f3f4;--pnb-line: #e6e6e9;--pnb-text: #040724;--pnb-text-quiet: #686a7c;--pnb-accent: #040724;--pnb-on-accent: #ffffff;--pnb-danger: #cb0015;--pnb-bug: #cb0015;--pnb-idea: #ffb700;--pnb-review: #4f5166;--pnb-planned: #ffc758;--pnb-done: #040724;--pnb-declined: #9b9ca7;--pnb-on-dot: #ffffff;--pnb-on-bug: var(--pnb-on-dot);--pnb-on-idea: #040724;--pnb-on-review: var(--pnb-on-dot);--pnb-on-planned: #040724;--pnb-on-done: var(--pnb-on-dot);--pnb-on-declined: var(--pnb-on-dot);--pnb-star: #ffb700;--pnb-filter: color-mix(in srgb, var(--pnb-text) 16%, var(--pnb-bg));--pnb-on-filter: var(--pnb-text);--pnb-choose-title: var(--pnb-text);--pnb-title-board: var(--pnb-text);--pnb-title-write: var(--pnb-text);--pnb-card: #ffffff;--pnb-card-text: var(--pnb-text);--pnb-card-quiet: var(--pnb-text-quiet);--pnb-field: #f2f3f4;--pnb-shot-line: var(--pnb-line);--pnb-field-in-card: var(--pnb-field);--pnb-field-text: var(--pnb-text);--pnb-field-quiet: var(--pnb-text-quiet);--pnb-field-line: var(--pnb-line);--pnb-news: var(--pnb-surface-2);--pnb-news-line: var(--pnb-accent);--pnb-news-text: var(--pnb-text);--pnb-news-link: var(--pnb-accent);--pnb-news-quiet: var(--pnb-text-quiet);--pnb-filter-btn: #ffffff;--pnb-filter-btn-text: var(--pnb-text);--pnb-filter-btn-line: #cdcdd3;--pnb-bar-icon: var(--pnb-text);--pnb-order: var(--pnb-sunken);--pnb-order-text: var(--pnb-text-quiet);--pnb-vote: #f2f3f4;--pnb-vote-text: var(--pnb-card-text);--pnb-vote-on: var(--pnb-accent);--pnb-on-vote-on: var(--pnb-on-accent);--pnb-choose-link: var(--pnb-text-quiet);--pnb-form-quiet: var(--pnb-text-quiet);--pnb-switch: var(--pnb-surface-2);--pnb-switch-line: var(--pnb-line);--pnb-switch-knob: var(--pnb-text-quiet);--pnb-switch-on: var(--pnb-accent);--pnb-on-switch-on: var(--pnb-on-accent);--pnb-tile-bug: var(--pnb-bug);--pnb-tile-idea: var(--pnb-idea);--pnb-tile-review: var(--pnb-review);--pnb-tile-ink: #ffffff;--pnb-tile-ink-bug: var(--pnb-tile-ink);--pnb-tile-ink-idea: #040724;--pnb-tile-ink-review: var(--pnb-tile-ink);--pnb-tile-dot-bug: transparent;--pnb-tile-dot-idea: transparent;--pnb-tile-dot-review: transparent;--pnb-tile-glyph-bug: var(--pnb-tile-ink-bug);--pnb-tile-glyph-idea: var(--pnb-tile-ink-idea);--pnb-tile-glyph-review: var(--pnb-tile-ink-review);--pnb-tile-icon: 44px;--pnb-order-on: var(--pnb-surface);--pnb-on-order: var(--pnb-text);--pnb-sent: var(--pnb-bg);--pnb-sent-title: var(--pnb-text);--pnb-sent-note: var(--pnb-text-quiet);--pnb-sent-check: #040724;--pnb-on-sent-check: #ffffff;--pnb-fab: #ffb700;--pnb-on-fab: #040724;--pnb-fab-shadow: var(--pnb-shadow);--pnb-fab-shadow-pressed: var(--pnb-fab-shadow);--pnb-fab-squeeze: .94;--pnb-radius: 10px;--pnb-radius-sheet: 16px;--pnb-radius-panel: 16px;--pnb-radius-pill: 999px;--pnb-shadow: 0 8px 24px rgba(4, 7, 36, .14);--pnb-scrim: rgba(4, 7, 36, .5);--pnb-accent-fill: var(--pnb-accent);--pnb-raise: none;--pnb-raise-pressed: none;--pnb-raise-sink: 0px}:host([theme="nimiq-dark"]){--pnb-bg: #040724;--pnb-surface: #1d203a;--pnb-surface-2: #363950;--pnb-sunken: #02030f;--pnb-line: #363950;--pnb-text: #ffffff;--pnb-text-quiet: #9b9ca7;--pnb-accent: #ffffff;--pnb-on-accent: #040724;--pnb-danger: #e93700;--pnb-bug: #e93700;--pnb-review: #b4b5bd;--pnb-on-review: #040724;--pnb-done: #ffffff;--pnb-on-done: #040724;--pnb-declined: #686a7c;--pnb-card: #1d203a;--pnb-field: #363950;--pnb-filter-btn: #1d203a;--pnb-filter-btn-line: #4f5166;--pnb-vote: #363950;--pnb-sent-check: #ffffff;--pnb-on-sent-check: #040724;--pnb-shadow: 0 8px 24px rgba(0, 0, 0, .45);--pnb-scrim: rgba(0, 0, 0, .6)}*,*:before,*:after{box-sizing:border-box}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;padding:0}:focus-visible{outline:2px solid var(--pnb-accent);outline-offset:2px}.app{--_top: 0px;--_bottom: 0px;position:relative;display:flex;flex-direction:column;height:100%;min-height:320px;background:var(--pnb-bg);overflow:hidden}.bar{display:grid;grid-template-columns:minmax(48px,1fr) auto minmax(48px,1fr);align-items:center;min-height:56px;padding:0 4px;padding-top:var(--_top);flex-shrink:0}.bar>:last-child{justify-self:end}.bar__side{display:flex;align-items:center}.bar__title--board{color:var(--pnb-title-board)}.bar__title--write{color:var(--pnb-title-write)}.bar__title{margin:0;text-align:center;font-size:18px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-btn{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--pnb-text)}.icon-btn:active{background:var(--pnb-surface)}.bar .icon-btn{color:var(--pnb-bar-icon)}.bar__brand{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0}.bar__brand>svg,.bar__logo{flex-shrink:0;display:block}.bar__logo{height:22px;width:auto;max-width:64px;object-fit:contain}.bar__name{overflow:hidden;text-overflow:ellipsis}.bar__updates{position:relative}.dot{position:absolute;top:10px;right:9px;width:9px;height:9px;border-radius:50%;background:var(--pnb-danger);box-shadow:0 0 0 2px var(--pnb-bg)}.me-btn{margin-right:4px}.signin-btn{margin-right:8px;padding:8px 14px;border-radius:var(--pnb-radius-pill);background:var(--pnb-surface-2);color:var(--pnb-text);font-size:14px;font-weight:700;white-space:nowrap}.filters{display:flex;gap:8px;padding:4px 16px 12px;flex-shrink:0;flex-wrap:wrap}.chip-pick{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:var(--pnb-radius-pill);background:var(--pnb-surface);color:var(--pnb-text);font-size:14px;font-weight:500}.chip-pick[aria-pressed=true],.chip-pick[aria-checked=true]{background:var(--pnb-filter);color:var(--pnb-on-filter);font-weight:700}.scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px calc(96px + var(--_bottom))}.scroll,.sheet{scrollbar-width:none}.scroll::-webkit-scrollbar,.sheet::-webkit-scrollbar{display:none}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.empty{margin:48px auto 0;max-width:280px;text-align:center;color:var(--pnb-text-quiet);line-height:1.45}.empty .text-btn{margin-top:12px}.card{position:relative;padding:16px;border-radius:var(--pnb-radius);background:var(--pnb-card);border:1px solid var(--pnb-line);color:var(--pnb-card-text)}.card--owner{cursor:pointer}.card--hidden{opacity:.6}.card__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:var(--pnb-radius-pill);background:var(--pnb-surface-2);font-size:12px;font-weight:800}.badge__dot{display:grid;place-items:center;width:20px;height:20px;border-radius:50%}.badge__dot--bug{background:var(--pnb-bug);color:var(--pnb-on-bug)}.badge__dot--idea{background:var(--pnb-idea);color:var(--pnb-on-idea)}.badge__dot--review{background:var(--pnb-review);color:var(--pnb-on-review)}.badge__dot--planned{background:var(--pnb-planned);color:var(--pnb-on-planned)}.badge__dot--done{background:var(--pnb-done);color:var(--pnb-on-done)}.badge__dot--declined{background:var(--pnb-declined);color:var(--pnb-on-declined)}.card__shot{display:grid;place-items:center;color:var(--pnb-text-quiet)}.stars{display:inline-flex;gap:1px;line-height:0}.stars__one{position:relative;color:var(--pnb-line)}.stars__fill{position:absolute;inset:0 auto 0 0;overflow:hidden;color:var(--pnb-star)}.rating{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:12px 16px;border-radius:var(--pnb-radius);background:var(--pnb-card);border:1px solid var(--pnb-line)}.rating__avg{font-size:22px;font-weight:700;color:var(--pnb-card-text)}.rating__n{margin-left:auto;font-size:14px;color:var(--pnb-card-quiet)}.card__off{font-size:12px;font-weight:700;color:var(--pnb-danger)}.card__wait{font-size:12px;font-weight:700;color:var(--pnb-text-quiet)}.card__when{margin-left:auto;font-size:12px;color:var(--pnb-card-quiet)}.card__text{margin:12px 0 0;color:var(--pnb-card-text);font-size:16px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}.card__pic{display:block;margin-top:10px;padding:0;border-radius:var(--pnb-radius);line-height:0}.card__pic img{display:block;max-width:100%;max-height:160px;border-radius:var(--pnb-radius);border:1px solid var(--pnb-line)}.card__reply{margin-top:12px;padding:10px 12px;border-radius:var(--pnb-radius);background:var(--pnb-bg);border-left:3px solid var(--pnb-accent)}.card__reply-who{font-size:12px;font-weight:700;color:var(--pnb-text-quiet)}.card__reply-text{margin:4px 0 0;font-size:14px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}.fix{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;font-size:13px;font-weight:800}.card__reply .fix{margin-top:8px}.fix__dot{color:var(--pnb-text-quiet)}.code-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:var(--pnb-accent);text-decoration:none}.code-link:hover span{text-decoration:underline;text-underline-offset:3px}.news{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:10px 6px 10px 12px;border-radius:var(--pnb-radius);background:var(--pnb-news);border:1.5px solid var(--pnb-news-line);color:var(--pnb-news-text)}.news__text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;width:0}.news__title{font-size:14px}.news__post{font-size:12px;color:var(--pnb-news-quiet);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.news__close{flex:none;width:36px;height:36px;color:var(--pnb-news-quiet)}.card__foot{display:flex;align-items:center;gap:8px;margin-top:12px}.card__who{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:14px;color:var(--pnb-card-quiet)}.card__name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.face{position:relative;display:inline-block;flex:none}.face__stand-in,.face__img{position:absolute;inset:0;width:100%;height:100%}.face__img--loading{opacity:0}.card__bin{width:36px;height:36px;color:var(--pnb-text-quiet)}.vote{display:inline-flex;align-items:center;gap:6px;min-width:56px;height:36px;padding:0 12px;border-radius:var(--pnb-radius-pill);background:var(--pnb-vote);color:var(--pnb-vote-text);font-size:14px;font-weight:700;justify-content:center}.vote--count{background:transparent;color:var(--pnb-card-quiet)}.vote[aria-pressed=true]{background:var(--pnb-vote-on);color:var(--pnb-on-vote-on)}.foot{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;padding:40px 16px calc(20px + var(--_bottom));background:linear-gradient(to bottom,transparent,var(--pnb-bg) 55%);pointer-events:none;transition:transform .22s ease,opacity .16s ease}.foot--away{transform:translateY(100%);opacity:0}.send-fab{pointer-events:auto;height:40px;padding:0 18px;border-radius:var(--pnb-radius-pill);background:var(--pnb-fab);color:var(--pnb-on-fab);box-shadow:var(--pnb-fab-shadow);font-size:14px;font-weight:700;transition:transform .12s ease,box-shadow .12s ease}.send-fab:active:not(:disabled){transform:scale(var(--pnb-fab-squeeze));box-shadow:var(--pnb-fab-shadow-pressed)}.send-fab:disabled{opacity:.45}.pager{display:flex;justify-content:center;gap:6px;margin-top:20px}.pager button{min-width:36px;height:36px;border-radius:var(--pnb-radius-pill);color:var(--pnb-text-quiet);font-weight:700}.pager button[aria-current=page]{background:var(--pnb-surface);color:var(--pnb-text)}.sign-in{display:flex;justify-content:center;margin-top:16px}.sign-in .text-btn{font-size:14px;text-decoration:underline;text-underline-offset:3px}.signin-note{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;padding:14px;border-radius:var(--pnb-radius);background:var(--pnb-news);border:1.5px solid var(--pnb-news-line);color:var(--pnb-news-text)}.signin-note__title{font-size:15px;font-weight:800}.signin-note__text{margin:0 0 6px;font-size:14px;line-height:1.45;opacity:.8}.signin-note .btn{height:44px}.signin-page{display:flex;flex-direction:column;gap:10px;padding:32px 4px 16px;text-align:center}.signin-page__title{font-size:20px;font-weight:800;letter-spacing:-.02em}.signin-page__text{margin:0 0 12px;font-size:14px;line-height:1.5;color:var(--pnb-text-quiet)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;padding:0 24px;border-radius:var(--pnb-radius-pill);background:var(--pnb-accent-fill);color:var(--pnb-on-accent);box-shadow:var(--pnb-raise);font-size:16px;font-weight:700;transition:translate .12s ease,box-shadow .12s ease}.btn:active:not(:disabled),.chip-btn:active{translate:0 var(--pnb-raise-sink);box-shadow:var(--pnb-raise-pressed)}.btn:disabled{opacity:.45;cursor:default}.btn--danger,.btn--danger:active:not(:disabled){background:var(--pnb-danger);color:#fff;box-shadow:none;translate:none}.text-btn{display:inline-block;padding:12px 16px;font-weight:700;color:var(--pnb-text-quiet)}.spinner{width:20px;height:20px;border-radius:50%;border:2.5px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.compose{display:flex;flex-direction:column;gap:8px;min-height:100%;padding-bottom:4px}.label{margin-top:12px;font-size:14px;font-weight:700}.compose__kind{display:inline-flex;align-items:center;gap:8px;margin-top:4px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.rate{display:flex;gap:4px}.rate__star{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:var(--pnb-line);transition:transform .12s ease}.rate__star--on{color:var(--pnb-star)}.rate__star:active{transform:scale(.9)}.shot{display:flex;flex-direction:column;gap:4px;margin-top:8px}.shot__add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:88px;border-radius:var(--pnb-radius);border:1.5px dashed var(--pnb-shot-line);color:var(--pnb-text-quiet);font-size:14px;font-weight:700}.shot__preview{position:relative;align-self:flex-start}.shot__preview img{display:block;max-width:100%;max-height:200px;border-radius:var(--pnb-radius);border:1px solid var(--pnb-line)}.check{display:flex;align-items:flex-start;gap:10px;margin-top:8px;font-size:14px;line-height:1.4;color:var(--pnb-text);cursor:pointer}.check input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--pnb-accent)}.shot__remove{position:absolute;top:6px;right:6px;width:36px;height:36px;background:var(--pnb-bg);box-shadow:var(--pnb-shadow)}.choose__title{margin:8px 0 16px;color:var(--pnb-choose-title);font-size:20px;font-weight:700;text-align:center}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tiles--odd .tile:first-child{grid-column:1 / -1;min-height:132px}.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:132px;padding:16px 12px;border-radius:var(--pnb-radius);color:var(--pnb-tile-ink);text-align:center;transition:transform .12s ease}.tile:active:not(:disabled){transform:scale(.97)}.tile:disabled{opacity:.55;cursor:default}.tile--bug{background:var(--pnb-tile-bug);color:var(--pnb-tile-ink-bug);--_dot: var(--pnb-tile-dot-bug);--_glyph: var(--pnb-tile-glyph-bug)}.tile--idea{background:var(--pnb-tile-idea);color:var(--pnb-tile-ink-idea);--_dot: var(--pnb-tile-dot-idea);--_glyph: var(--pnb-tile-glyph-idea)}.tile--review{background:var(--pnb-tile-review);color:var(--pnb-tile-ink-review);--_dot: var(--pnb-tile-dot-review);--_glyph: var(--pnb-tile-glyph-review)}.tile__icon{display:grid;place-items:center;width:var(--pnb-tile-icon);height:var(--pnb-tile-icon);border-radius:50%;background:var(--_dot);color:var(--_glyph);filter:drop-shadow(0 3px 3px rgba(0,0,0,.05)) drop-shadow(0 8px 16px rgba(0,0,0,.07))}.tile:not(:disabled) .tile__note{display:none}.tile__label{font-size:16px;font-weight:700}.tile__note{font-size:13px;line-height:1.35;opacity:.85}.choose__board{display:flex;justify-content:center;margin-top:16px}.choose__board .text-btn{color:var(--pnb-choose-link);font-size:14px;text-decoration:underline;text-underline-offset:3px}.sent{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:32px 24px calc(32px + var(--_bottom));background:var(--pnb-sent);text-align:center;animation:fade-in .2s ease}.sent__check{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;background:var(--pnb-sent-check);color:var(--pnb-on-sent-check);animation:pop .32s cubic-bezier(.2,.9,.3,1.3)}.sent__title{margin:12px 0 0;font-size:22px;font-weight:700;color:var(--pnb-sent-title)}.sent__note,.sent__back{color:var(--pnb-sent-note)}.sent__note{margin:0}@keyframes pop{0%{transform:scale(.4);opacity:0}}.public{margin:12px 0 0;font-size:14px;color:var(--pnb-form-quiet)}.field{width:100%;min-height:140px;padding:12px 14px;border-radius:var(--pnb-radius);border:1px solid var(--pnb-field-line);background:var(--pnb-field);color:var(--pnb-field-text);font-size:16px;line-height:1.4;resize:vertical}.field:focus{outline:none;border-color:var(--pnb-accent)}.field::placeholder,.input::placeholder{color:var(--pnb-field-quiet);opacity:1}.input{width:100%;height:44px;padding:0 14px;border-radius:var(--pnb-radius);border:1px solid var(--pnb-field-line);background:var(--pnb-field);color:var(--pnb-field-text);font-size:16px}.input:focus{outline:none;border-color:var(--pnb-accent)}.name-field{position:relative;display:block;margin-top:12px}.name-field .face{position:absolute;left:12px;top:10px}.name-field .input{padding-left:46px}.count{align-self:flex-end;font-size:12px;color:var(--pnb-form-quiet)}.alike{margin-top:8px;padding:12px;border-radius:var(--pnb-radius);background:var(--pnb-surface)}.alike__note{margin:4px 0 8px;font-size:13px;color:var(--pnb-text-quiet)}.alike__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.alike__row{display:flex;align-items:center;gap:12px}.alike__text{flex:1;min-width:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}.switch-row__label{font-weight:700}.switch{position:relative;flex-shrink:0;width:48px;height:28px;border-radius:999px;background:var(--pnb-switch);border:1px solid var(--pnb-switch-line);transition:background .16s ease}.switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--pnb-switch-knob);transition:transform .16s ease,background .16s ease}.switch[aria-checked=true]{background:var(--pnb-switch-on);border-color:var(--pnb-switch-on)}.switch[aria-checked=true]:after{transform:translate(20px);background:var(--pnb-on-switch-on)}.note{margin:4px 0 0;font-size:12px;line-height:1.45;color:var(--pnb-form-quiet)}.note--bad{color:var(--pnb-danger)}.updates__intro{margin:0 0 12px;font-size:13px;color:var(--pnb-text-quiet)}.update{position:relative}.update__link{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:var(--pnb-radius);background:var(--pnb-surface);border:1px solid var(--pnb-line);color:inherit;text-decoration:none}.update__head{display:flex;align-items:center;gap:8px}.update__version{padding:4px 10px;border-radius:var(--pnb-radius-pill);background:var(--pnb-surface-2);font-size:12px;font-weight:800}.update__title{margin:0;font-size:16px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.update__text{margin:0;font-size:14px;line-height:1.45;color:var(--pnb-text-quiet);overflow-wrap:anywhere;white-space:pre-wrap}.update__fixed{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:var(--pnb-text-quiet)}.update__link .code-link{margin-top:4px}.update__bin{position:absolute;right:6px;bottom:6px;width:36px;height:36px;color:var(--pnb-text-quiet)}.picks{list-style:none;margin:0;padding:6px;border-radius:var(--pnb-radius);background:var(--pnb-surface)}.pick{display:flex;align-items:center;gap:10px;padding:8px;cursor:pointer}.pick input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--pnb-accent)}.pick .badge{flex:none}.pick__text{flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.fix-box{display:flex;flex-direction:column;gap:8px;margin-top:16px;padding:14px;border-radius:var(--pnb-radius);background:var(--pnb-surface)}.fix-box__head{display:flex;align-items:center;gap:8px;font-weight:800}.fix-box__label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:var(--pnb-text-quiet)}.fix-box__label .input{font-weight:400;background:var(--pnb-field-in-card)}.input[aria-invalid=true]{border-color:var(--pnb-danger)}.send{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:20px}.compose .send{margin-top:auto;padding-top:20px}.left{font-size:13px;color:var(--pnb-form-quiet);text-align:center}.left--bad{color:var(--pnb-danger)}.scrim{position:absolute;inset:0;z-index:10;display:flex;align-items:flex-end;background:var(--pnb-scrim);animation:fade-in .18s ease}.sheet{width:100%;max-height:90%;overflow-y:auto;padding:24px 24px calc(24px + var(--_bottom));border-radius:var(--pnb-radius-sheet) var(--pnb-radius-sheet) 0 0;background:var(--pnb-bg);animation:rise .22s cubic-bezier(.2,.8,.2,1)}.sheet__title{margin:0;font-size:20px;font-weight:700}.sheet__grip{display:block;width:36px;height:4px;margin:-12px auto 16px;border-radius:2px;background:var(--pnb-line)}.sheet__title--under{margin-top:12px}.sheet__field{margin-top:16px}.settings__who{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 0 20px;text-align:center}.settings__face{margin-bottom:8px}.settings__face--off{opacity:.35}.settings__name{font-size:18px;font-weight:700}.settings__sub{font-size:14px;color:var(--pnb-text-quiet)}.settings__group{display:flex;flex-direction:column;gap:8px;margin-top:8px}.settings__head{margin:8px 0 0;font-size:14px;font-weight:700;color:var(--pnb-text-quiet)}.settings__card{display:flex;flex-direction:column;border-radius:var(--pnb-radius);background:var(--pnb-card);border:1px solid var(--pnb-line);overflow:hidden}.settings__card>*+*{border-top:1px solid var(--pnb-line)}.settings__block{display:flex;flex-direction:column;gap:8px;padding:14px 16px}.settings__block--off{opacity:.45}.settings__label-row{display:flex;align-items:center;justify-content:space-between}.settings__label{font-size:16px}.settings__saved{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--pnb-done)}.settings__row{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 16px;width:100%;text-align:left;color:var(--pnb-text)}.settings__row-label{flex:1;font-size:16px}.settings__row--danger{color:var(--pnb-danger);font-weight:700}.settings__note{margin:0}.sheet__quote{margin:8px 0 0;color:var(--pnb-text-quiet);overflow-wrap:anywhere}.sheet__actions,.manage__actions{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:24px}.states{display:flex;flex-wrap:wrap;gap:8px}.context{margin:12px 0 0;padding:10px 12px;border-radius:var(--pnb-radius);background:var(--pnb-surface);font-size:13px;line-height:1.5}.context dt{font-weight:700;display:inline}.context dd{display:inline;margin:0 0 0 4px;color:var(--pnb-text-quiet)}.sheet__shot{display:flex;flex-direction:column;gap:6px;margin:12px 0 0}.sheet__shot img{display:block;max-width:100%;max-height:200px;border-radius:var(--pnb-radius);border:1px solid var(--pnb-line)}.sheet__shot--whole img{max-height:70vh;align-self:center}.sheet__shot .hide-btn{align-self:flex-start;margin-top:4px}.sheet__shot figcaption{font-size:12px;color:var(--pnb-text-quiet)}.approve-btn{display:block;margin-top:16px;font-weight:700;color:var(--pnb-accent)}.approve-btn[aria-pressed=true]{color:var(--pnb-text-quiet)}.hide-btn{margin-top:16px;font-weight:700;color:var(--pnb-danger)}.toast{position:absolute;left:16px;right:16px;bottom:calc(84px + var(--_bottom));z-index:20;padding:14px 16px;border-radius:var(--pnb-radius);background:var(--pnb-text);color:var(--pnb-bg);font-weight:700;text-align:center;box-shadow:var(--pnb-shadow);animation:rise .22s cubic-bezier(.2,.8,.2,1)}.overlay{position:fixed;inset:calc(var(--pnb-inset-top) + var(--pnb-sheet-top)) 0 0 0;z-index:var(--pnb-z);border-radius:var(--pnb-radius-sheet) var(--pnb-radius-sheet) 0 0;overflow:hidden;box-shadow:0 -8px 32px #0000003d;animation:slide-up .28s cubic-bezier(.2,.8,.2,1)}.overlay .app{--_top: 0px;--_bottom: var(--pnb-inset-bottom)}.overlay--leaving{animation:slide-down .22s cubic-bezier(.4,0,1,1) forwards}.grip{position:absolute;top:6px;left:50%;z-index:2;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--pnb-text-quiet);opacity:.5;pointer-events:none}.overlay .app>.bar{touch-action:none}.overlay--dragging{transition:none}.backdrop{position:fixed;inset:0;z-index:calc(var(--pnb-z) - 1);background:var(--pnb-scrim);animation:fade-in .2s ease}.backdrop--leaving{animation:fade-out .2s ease forwards}@media (min-width: 640px){.grip{display:none}.overlay .app>.bar{touch-action:auto}.overlay{inset:auto 24px 24px auto;width:375px;max-height:min(640px,calc(100vh - 48px));border-radius:var(--pnb-radius-panel);box-shadow:0 16px 48px #0000003d;animation:panel-in .24s cubic-bezier(.2,.8,.2,1)}.overlay--leaving{animation:panel-out .18s cubic-bezier(.4,0,1,1) forwards}.overlay .app{--_top: 0px;--_bottom: 0px;height:auto;max-height:inherit}.overlay .scroll{min-height:0}.overlay .sent{min-height:420px}}.fab{position:fixed;right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + var(--pnb-inset-bottom));z-index:calc(var(--pnb-z) - 1);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--pnb-fab);color:var(--pnb-on-fab);box-shadow:var(--pnb-fab-shadow);transition:transform .12s ease,translate .12s ease,box-shadow .12s ease}.fab:hover{transform:scale(1.06)}.fab:active{transform:scale(var(--pnb-fab-squeeze));translate:0 var(--pnb-raise-sink);box-shadow:var(--pnb-fab-shadow-pressed)}.fab--away{visibility:hidden}.overlay.overlay--morph,.overlay.overlay--morph.overlay--leaving{animation:none}.overlay--morph{background:var(--pnb-bg)}@media (min-width: 640px){.fab{right:24px;bottom:24px}}@keyframes fade-in{0%{opacity:0}}@keyframes fade-out{to{opacity:0}}@keyframes panel-in{0%{transform:translateY(16px);opacity:0}}@keyframes panel-out{to{transform:translateY(16px);opacity:0}}@keyframes rise{0%{transform:translateY(24px);opacity:0}}@keyframes slide-up{0%{transform:translateY(100%)}}@keyframes slide-down{to{transform:translateY(100%)}}@media (prefers-reduced-motion: reduce){.overlay,.overlay--leaving,.scrim,.sheet,.toast,.sent,.sent__check,.backdrop{animation:none}.tile,.rate__star,.fab{transition:none}.foot{transition:opacity .16s ease}.foot--away{transform:none}.spinner{animation-duration:1.6s}}.finder{flex-wrap:nowrap;align-items:center;padding:4px 16px 10px}.search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 12px;border-radius:var(--pnb-radius);background:var(--pnb-field);border:1px solid var(--pnb-field-line);color:var(--pnb-field-quiet)}.search:focus-within{border-color:var(--pnb-accent)}.search__input{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;color:var(--pnb-field-text);font-size:15px;outline:none}.search__input::placeholder{color:var(--pnb-field-quiet);opacity:1}.search__input::-webkit-search-cancel-button{display:none}.search__clear{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;color:var(--pnb-text-quiet)}.filter-btn{flex:none;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:var(--pnb-radius);background:var(--pnb-filter-btn);border:1px solid var(--pnb-filter-btn-line);color:var(--pnb-filter-btn-text);font-size:14px;font-weight:700}.filter-btn[aria-pressed=true]{padding-right:8px;border-color:var(--pnb-accent)}.filter-btn__n{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--pnb-accent);color:var(--pnb-on-accent);font-size:11px;line-height:18px;text-align:center}.applied{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 16px 10px;flex-shrink:0}.applied__chip{display:inline-flex;align-items:center;gap:4px;padding:5px 8px 5px 12px;border-radius:var(--pnb-radius-pill);background:var(--pnb-surface);border:1px solid var(--pnb-accent);font-size:13px;font-weight:700}.link-btn{padding:4px 2px;font-size:12px;font-weight:700;color:var(--pnb-accent)}.found-count{margin:0 0 10px;font-size:12px;color:var(--pnb-text-quiet)}mark{background:transparent;color:var(--pnb-accent);font-weight:800}.nothing{display:flex;flex-direction:column;align-items:center;gap:8px}.nothing p{margin:0}.nothing__title{font-size:16px;color:var(--pnb-text)}.outline-btn{margin-top:4px;padding:10px 16px;border-radius:var(--pnb-radius);border:1.5px solid var(--pnb-accent);color:var(--pnb-accent);font-weight:700}.news--owner{padding-right:8px}.news__grow{flex:1;min-width:0}.news__link{align-self:flex-start;padding:0;color:var(--pnb-news-link)}.chip-btn{flex:none;padding:6px 12px;border-radius:var(--pnb-radius-pill);background:var(--pnb-accent-fill);color:var(--pnb-on-accent);box-shadow:var(--pnb-raise);font-size:13px;font-weight:700;transition:translate .12s ease,box-shadow .12s ease}.card__new{font-size:12px;font-weight:700;color:var(--pnb-accent)}.card__found{margin:8px 0 0;font-size:12px;color:var(--pnb-text-quiet);overflow-wrap:anywhere}.card__talk{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border-radius:var(--pnb-radius-pill);color:var(--pnb-text-quiet);font-size:14px;font-weight:700}button.card__talk:active{background:var(--pnb-surface-2)}.talk .list{margin-bottom:12px}.thread{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.msg{padding:10px 12px;border-radius:var(--pnb-radius);background:var(--pnb-bg);box-shadow:inset 0 0 0 1px var(--pnb-line);border-left:3px solid var(--pnb-accent)}.msg--author{background:var(--pnb-surface-2);box-shadow:none;border-left-color:var(--pnb-line)}.msg--hidden{opacity:.55}.msg__who{font-size:12px;font-weight:700;color:var(--pnb-text-quiet)}.msg__text{margin:4px 0 0;font-size:14px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}.msg__actions{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--pnb-text-quiet)}.answer{display:flex;flex-direction:column;gap:8px;margin-top:16px}.answer__field{min-height:96px}.answer__row{display:flex;align-items:center;gap:8px}.answer__row .count{flex:1;align-self:center}.answer__send{width:auto;height:36px;padding:0 18px;font-size:14px}.answer__cancel{padding:8px}.talk__next{margin-top:12px}.sheet__head{display:flex;align-items:center;justify-content:space-between;margin:-10px -12px 0 0}.pick-group{display:flex;flex-direction:column;gap:8px;margin-top:16px}.pick-own{margin-top:16px;padding:0 12px 12px;border:1px solid var(--pnb-line);border-radius:var(--pnb-radius)}.pick-own .pick-group{margin-top:12px}.switch-row--box{padding:12px 12px 12px 14px;border-radius:var(--pnb-radius);background:var(--pnb-surface)}.sheet__foot{display:flex;align-items:center;gap:12px;margin-top:20px}.sheet__foot .btn{flex:1}.filter-reset{padding:12px 4px;color:var(--pnb-accent)}.alike__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.alike__meta{font-size:12px;color:var(--pnb-text-quiet)}.me-too{flex:none;display:inline-flex;align-items:center;gap:6px;padding:7px 12px 7px 10px;border-radius:var(--pnb-radius-pill);border:1px solid var(--pnb-accent);background:var(--pnb-surface-2);font-size:13px;font-weight:700}.me-too:disabled{border-color:var(--pnb-line);color:var(--pnb-text-quiet)}', Qn = "please-no-bugs";
|
|
2828
|
+
var Ne, ee, ge, le, $e, qe, Ie, Pe, Ee, rn, Be, Fe, K, be, et;
|
|
2829
|
+
class La extends HTMLElement {
|
|
2830
|
+
constructor() {
|
|
2831
|
+
super(...arguments);
|
|
2832
|
+
Q(this, K);
|
|
2833
|
+
Q(this, Ne, null);
|
|
2834
|
+
Q(this, ee, null);
|
|
2835
|
+
Q(this, ge, null);
|
|
2836
|
+
Q(this, le, "");
|
|
2837
|
+
Q(this, $e);
|
|
2838
|
+
Q(this, qe);
|
|
2839
|
+
Q(this, Ie);
|
|
2840
|
+
Q(this, Pe);
|
|
2841
|
+
Q(this, Ee);
|
|
2842
|
+
Q(this, rn);
|
|
2843
|
+
Q(this, Be);
|
|
2844
|
+
/** The demo board's code, fetched the first time `demo` is set. */
|
|
2845
|
+
Q(this, Fe);
|
|
2846
|
+
}
|
|
2847
|
+
/** How to sign outside Nimiq Pay. Inside it the widget signs by itself. */
|
|
2848
|
+
get signer() {
|
|
2849
|
+
return z(this, $e);
|
|
2850
|
+
}
|
|
2851
|
+
set signer(a) {
|
|
2852
|
+
R(this, $e, a), R(this, le, ""), oe(this, K, be).call(this);
|
|
2853
|
+
}
|
|
2854
|
+
/**
|
|
2855
|
+
* Your app's own wallet login, so nobody signs twice: `{ address, publicKey,
|
|
2856
|
+
* signature, message }`. Needs the project to list that message. Set it to
|
|
2857
|
+
* null on logout.
|
|
2858
|
+
*/
|
|
2859
|
+
get appLogin() {
|
|
2860
|
+
return z(this, qe);
|
|
2861
|
+
}
|
|
2862
|
+
set appLogin(a) {
|
|
2863
|
+
R(this, qe, a), R(this, le, ""), oe(this, K, be).call(this);
|
|
2864
|
+
}
|
|
2865
|
+
/** Sent with every bug report, to owners only: `{ version: '1.4.0' }`. */
|
|
2866
|
+
get context() {
|
|
2867
|
+
return z(this, Ie);
|
|
2868
|
+
}
|
|
2869
|
+
set context(a) {
|
|
2870
|
+
R(this, Ie, a), oe(this, K, be).call(this);
|
|
2871
|
+
}
|
|
2872
|
+
/** Words common in your app, so "said already?" ignores them: `['nim', 'wallet']`. */
|
|
2873
|
+
get noise() {
|
|
2874
|
+
return z(this, Pe);
|
|
2875
|
+
}
|
|
2876
|
+
set noise(a) {
|
|
2877
|
+
R(this, Pe, a), oe(this, K, be).call(this);
|
|
2878
|
+
}
|
|
2879
|
+
/** Override any string, or put the whole board in your app's language: `{ 'board.title': 'Ideas box' }`. */
|
|
2880
|
+
get strings() {
|
|
2881
|
+
return z(this, Ee);
|
|
2882
|
+
}
|
|
2883
|
+
set strings(a) {
|
|
2884
|
+
R(this, Ee, a), oe(this, K, be).call(this);
|
|
2885
|
+
}
|
|
2886
|
+
/**
|
|
2887
|
+
* With `demo` only: the posts the demo board starts with, instead of its
|
|
2888
|
+
* own, and no updates: `[{ kind: 'idea', text: 'Pin my contacts', votes: 12 }]`.
|
|
2889
|
+
*/
|
|
2890
|
+
get samples() {
|
|
2891
|
+
return z(this, Be);
|
|
2892
|
+
}
|
|
2893
|
+
set samples(a) {
|
|
2894
|
+
R(this, Be, a), R(this, le, ""), oe(this, K, be).call(this);
|
|
2895
|
+
}
|
|
2896
|
+
connectedCallback() {
|
|
2897
|
+
if (!z(this, Ne)) {
|
|
2898
|
+
R(this, Ne, this.attachShadow({ mode: "open" }));
|
|
2899
|
+
const a = document.createElement("style");
|
|
2900
|
+
a.textContent = Dr, R(this, ee, document.createElement("div")), z(this, ee).style.height = "100%", z(this, Ne).append(a, z(this, ee));
|
|
2901
|
+
}
|
|
2902
|
+
oe(this, K, be).call(this);
|
|
2903
|
+
}
|
|
2904
|
+
disconnectedCallback() {
|
|
2905
|
+
z(this, ee) && en(null, z(this, ee));
|
|
2906
|
+
}
|
|
2907
|
+
attributeChangedCallback(a) {
|
|
2908
|
+
(a === "project" || a === "server" || a === "demo" || a === "readonly") && R(this, le, ""), oe(this, K, be).call(this);
|
|
2909
|
+
}
|
|
2910
|
+
/** Close an overlay: slide it away, then tell the page. */
|
|
2911
|
+
close() {
|
|
2912
|
+
this.dispatchEvent(new CustomEvent("pleasenobugs:close", { bubbles: !0, composed: !0 }));
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
Ne = new WeakMap(), ee = new WeakMap(), ge = new WeakMap(), le = new WeakMap(), $e = new WeakMap(), qe = new WeakMap(), Ie = new WeakMap(), Pe = new WeakMap(), Ee = new WeakMap(), rn = new WeakMap(), Be = new WeakMap(), Fe = new WeakMap(), K = new WeakSet(), be = function() {
|
|
2916
|
+
if (!z(this, ee) || !this.isConnected) return;
|
|
2917
|
+
const a = this.getAttribute("lang") || "en";
|
|
2918
|
+
if (this.hasAttribute("demo")) {
|
|
2919
|
+
if (!z(this, Fe)) {
|
|
2920
|
+
import("./demo-pEOxDlaa.js").then((h) => {
|
|
2921
|
+
R(this, Fe, h), oe(this, K, be).call(this);
|
|
2922
|
+
});
|
|
2923
|
+
return;
|
|
2924
|
+
}
|
|
2925
|
+
const l = this.getAttribute("demo") === "owner", b = this.getAttribute("server") || void 0, p = `demo|${l}|${b ?? ""}`;
|
|
2926
|
+
(!z(this, ge) || z(this, le) !== p) && (R(this, ge, z(this, Fe).createDemoClient({ owner: l, samples: z(this, Be), identicons: b })), R(this, le, p)), oe(this, K, et).call(this, z(this, ge), a);
|
|
2927
|
+
return;
|
|
2928
|
+
}
|
|
2929
|
+
const i = this.getAttribute("project"), o = this.getAttribute("server");
|
|
2930
|
+
if (!i || !o) {
|
|
2931
|
+
en(null, z(this, ee)), clearTimeout(z(this, rn)), R(this, rn, setTimeout(() => {
|
|
2932
|
+
(!this.getAttribute("project") || !this.getAttribute("server")) && console.warn("[pleasenobugs] <please-no-bugs> needs both a `project` and a `server` attribute.");
|
|
2933
|
+
}, 1e3));
|
|
2934
|
+
return;
|
|
2935
|
+
}
|
|
2936
|
+
const r = this.hasAttribute("readonly"), d = `${o}|${i}|${r}`;
|
|
2937
|
+
(!z(this, ge) || z(this, le) !== d) && (R(this, ge, r ? Mt({ server: o, project: i, signer: null, appLogin: null, storage: null }) : Mt({ server: o, project: i, signer: z(this, $e), appLogin: z(this, qe) })), R(this, le, d)), oe(this, K, et).call(this, z(this, ge), a);
|
|
2938
|
+
}, et = function(a, i) {
|
|
2939
|
+
if (!z(this, ee)) return;
|
|
2940
|
+
const o = this.getAttribute("mode") ?? "inline", r = {
|
|
2941
|
+
client: a,
|
|
2942
|
+
t: Ni(z(this, Ee)),
|
|
2943
|
+
locale: i,
|
|
2944
|
+
appName: this.getAttribute("app-name") ?? void 0,
|
|
2945
|
+
suggestName: this.getAttribute("name") ?? void 0,
|
|
2946
|
+
logo: this.hasAttribute("logo") ? this.getAttribute("logo") || "none" : void 0,
|
|
2947
|
+
context: z(this, Ie),
|
|
2948
|
+
noise: z(this, Pe),
|
|
2949
|
+
kinds: Xr(this.getAttribute("kinds")),
|
|
2950
|
+
screenshots: Gr(this.getAttribute("screenshots")),
|
|
2951
|
+
readonly: this.hasAttribute("readonly"),
|
|
2952
|
+
names: this.getAttribute("names") !== "off",
|
|
2953
|
+
onPosted: (p) => this.dispatchEvent(new CustomEvent("pleasenobugs:posted", { detail: p, bubbles: !0, composed: !0 }))
|
|
2954
|
+
}, d = this.hasAttribute("demo") && !r.readonly ? Ur(this.getAttribute("screen")) : void 0, l = d === "button" ? void 0 : d, b = this.getAttribute("start") === "board" ? "board" : "choose";
|
|
2955
|
+
o === "floating" ? en(/* @__PURE__ */ t(Yr, { app: r, label: r.t("board.open"), screen: d, start: b }), z(this, ee)) : o === "overlay" ? en(/* @__PURE__ */ t(Ma, { app: r, start: b, screen: l, onGone: () => this.close() }), z(this, ee)) : en(/* @__PURE__ */ t(Sa, { ...r, start: b, screen: l }), z(this, ee));
|
|
2956
|
+
}, Lt(La, "observedAttributes", [
|
|
2957
|
+
"project",
|
|
2958
|
+
"server",
|
|
2959
|
+
"mode",
|
|
2960
|
+
"start",
|
|
2961
|
+
"lang",
|
|
2962
|
+
"theme",
|
|
2963
|
+
"app-name",
|
|
2964
|
+
"name",
|
|
2965
|
+
"logo",
|
|
2966
|
+
"kinds",
|
|
2967
|
+
"screenshots",
|
|
2968
|
+
"readonly",
|
|
2969
|
+
"names",
|
|
2970
|
+
"demo",
|
|
2971
|
+
"screen"
|
|
2972
|
+
]);
|
|
2973
|
+
function Ur(e) {
|
|
2974
|
+
return e ? {
|
|
2975
|
+
button: "button",
|
|
2976
|
+
tiles: "choose",
|
|
2977
|
+
board: "board",
|
|
2978
|
+
write: "compose",
|
|
2979
|
+
sent: "sent",
|
|
2980
|
+
updates: "updates"
|
|
2981
|
+
}[e.trim().toLowerCase()] : void 0;
|
|
2982
|
+
}
|
|
2983
|
+
function Ma({
|
|
2984
|
+
app: e,
|
|
2985
|
+
onGone: n,
|
|
2986
|
+
start: a,
|
|
2987
|
+
screen: i,
|
|
2988
|
+
button: o,
|
|
2989
|
+
grow: r
|
|
2990
|
+
}) {
|
|
2991
|
+
const [d, l] = k(!1), b = Se(null), p = () => {
|
|
2992
|
+
if (d) return;
|
|
2993
|
+
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return n();
|
|
2994
|
+
l(!0);
|
|
2995
|
+
const f = o?.();
|
|
2996
|
+
f && b.current && Xt(b.current, f, "close").then(n);
|
|
2997
|
+
}, h = () => {
|
|
2998
|
+
if (d) return;
|
|
2999
|
+
l(!0);
|
|
3000
|
+
const f = b.current;
|
|
3001
|
+
if (!f || typeof f.animate != "function") return n();
|
|
3002
|
+
const c = getComputedStyle(f).transform;
|
|
3003
|
+
f.animate([{ transform: c === "none" ? "translateY(0)" : c }, { transform: "translateY(100%)" }], {
|
|
3004
|
+
duration: 200,
|
|
3005
|
+
easing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
3006
|
+
fill: "forwards"
|
|
3007
|
+
}).finished.then(n, n);
|
|
3008
|
+
};
|
|
3009
|
+
return G(() => b.current ? Wr(b.current, h) : void 0, []), Mi(() => {
|
|
3010
|
+
const f = o?.();
|
|
3011
|
+
r && f && b.current && !window.matchMedia("(prefers-reduced-motion: reduce)").matches && Xt(b.current, f, "open");
|
|
3012
|
+
}, []), G(() => {
|
|
3013
|
+
const f = (c) => {
|
|
3014
|
+
c.key === "Escape" && !b.current?.querySelector(".scrim") && p();
|
|
3015
|
+
};
|
|
3016
|
+
return window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f);
|
|
3017
|
+
}), /* @__PURE__ */ t(F, { children: [
|
|
3018
|
+
/* @__PURE__ */ t("div", { class: `backdrop${d ? " backdrop--leaving" : ""}`, onClick: p }),
|
|
3019
|
+
/* @__PURE__ */ t(
|
|
3020
|
+
"div",
|
|
3021
|
+
{
|
|
3022
|
+
ref: b,
|
|
3023
|
+
class: `overlay${o ? " overlay--morph" : ""}${d ? " overlay--leaving" : ""}`,
|
|
3024
|
+
role: "dialog",
|
|
3025
|
+
"aria-modal": "true",
|
|
3026
|
+
"aria-label": e.t("board.title"),
|
|
3027
|
+
onAnimationEnd: (f) => {
|
|
3028
|
+
d && f.target === f.currentTarget && n();
|
|
3029
|
+
},
|
|
3030
|
+
children: [
|
|
3031
|
+
/* @__PURE__ */ t(Sa, { ...e, onClose: p, start: a, screen: i }),
|
|
3032
|
+
/* @__PURE__ */ t("span", { class: "grip", "aria-hidden": "true" })
|
|
3033
|
+
]
|
|
3034
|
+
}
|
|
3035
|
+
)
|
|
3036
|
+
] });
|
|
3037
|
+
}
|
|
3038
|
+
const Rr = 96, Hr = 0.6, jr = 8;
|
|
3039
|
+
function Wr(e, n) {
|
|
3040
|
+
const a = window.matchMedia("(max-width: 639px)");
|
|
3041
|
+
let i = null, o = 0, r = 0, d = 0, l = 0, b = !1, p = !1;
|
|
3042
|
+
const h = (v) => {
|
|
3043
|
+
if (!a.matches || i !== null || v.button > 0) return;
|
|
3044
|
+
const w = v.composedPath()[0];
|
|
3045
|
+
!(w instanceof Element) || !w.closest(".bar, .grip") || w.closest(".scrim") || (i = v.pointerId, o = r = v.clientY, d = v.timeStamp, l = 0, b = !1);
|
|
3046
|
+
}, f = (v) => {
|
|
3047
|
+
if (v.pointerId !== i) return;
|
|
3048
|
+
const w = Math.max(0, v.clientY - o);
|
|
3049
|
+
if (!b) {
|
|
3050
|
+
if (w < jr) return;
|
|
3051
|
+
b = !0;
|
|
3052
|
+
try {
|
|
3053
|
+
e.setPointerCapture(v.pointerId);
|
|
3054
|
+
} catch {
|
|
3055
|
+
}
|
|
3056
|
+
e.classList.add("overlay--dragging");
|
|
3057
|
+
}
|
|
3058
|
+
const _ = Math.max(1, v.timeStamp - d);
|
|
3059
|
+
l = (v.clientY - r) / _, r = v.clientY, d = v.timeStamp, e.style.transform = `translateY(${w}px)`;
|
|
3060
|
+
}, c = (v) => {
|
|
3061
|
+
if (v.pointerId !== i || (i = null, !b)) return;
|
|
3062
|
+
b = !1, p = !0, setTimeout(() => p = !1, 0), e.classList.remove("overlay--dragging");
|
|
3063
|
+
const w = Math.max(0, v.clientY - o);
|
|
3064
|
+
if (w > Rr || l > Hr) return n();
|
|
3065
|
+
typeof e.animate == "function" && e.animate([{ transform: `translateY(${w}px)` }, { transform: "translateY(0)" }], {
|
|
3066
|
+
duration: 180,
|
|
3067
|
+
easing: "cubic-bezier(0.2, 0.8, 0.2, 1)"
|
|
3068
|
+
}), e.style.transform = "";
|
|
3069
|
+
}, g = (v) => {
|
|
3070
|
+
p && v.stopPropagation();
|
|
3071
|
+
};
|
|
3072
|
+
return e.addEventListener("pointerdown", h), e.addEventListener("pointermove", f), e.addEventListener("pointerup", c), e.addEventListener("pointercancel", c), e.addEventListener("click", g, !0), () => {
|
|
3073
|
+
e.removeEventListener("pointerdown", h), e.removeEventListener("pointermove", f), e.removeEventListener("pointerup", c), e.removeEventListener("pointercancel", c), e.removeEventListener("click", g, !0);
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3076
|
+
function Yr({
|
|
3077
|
+
app: e,
|
|
3078
|
+
label: n,
|
|
3079
|
+
screen: a,
|
|
3080
|
+
start: i
|
|
3081
|
+
}) {
|
|
3082
|
+
const [o, r] = k(!!a && a !== "button"), [d, l] = k(!1), b = Se(null);
|
|
3083
|
+
return G(() => {
|
|
3084
|
+
a && r(a !== "button");
|
|
3085
|
+
}, [a]), /* @__PURE__ */ t(F, { children: [
|
|
3086
|
+
/* @__PURE__ */ t(
|
|
3087
|
+
"button",
|
|
3088
|
+
{
|
|
3089
|
+
ref: b,
|
|
3090
|
+
type: "button",
|
|
3091
|
+
class: `fab${o ? " fab--away" : ""}`,
|
|
3092
|
+
"aria-label": n,
|
|
3093
|
+
title: n,
|
|
3094
|
+
"aria-hidden": o,
|
|
3095
|
+
tabIndex: o ? -1 : 0,
|
|
3096
|
+
onClick: () => {
|
|
3097
|
+
l(!0), r(!0);
|
|
3098
|
+
},
|
|
3099
|
+
children: /* @__PURE__ */ t(ji, {})
|
|
3100
|
+
}
|
|
3101
|
+
),
|
|
3102
|
+
o && /* @__PURE__ */ t(
|
|
3103
|
+
Ma,
|
|
3104
|
+
{
|
|
3105
|
+
app: e,
|
|
3106
|
+
start: i,
|
|
3107
|
+
screen: a === "button" ? void 0 : a,
|
|
3108
|
+
button: () => b.current,
|
|
3109
|
+
grow: d,
|
|
3110
|
+
onGone: () => {
|
|
3111
|
+
r(!1), l(!1);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
)
|
|
3115
|
+
] });
|
|
3116
|
+
}
|
|
3117
|
+
const Zr = 340, Vr = 260, Kr = 160;
|
|
3118
|
+
function Xt(e, n, a) {
|
|
3119
|
+
if (typeof e.animate != "function") return Promise.resolve();
|
|
3120
|
+
const i = e.getBoundingClientRect(), o = n.getBoundingClientRect(), r = o.width / 2, d = `inset(${o.top - i.top}px ${i.right - o.right}px ${i.bottom - o.bottom}px ${o.left - i.left}px round ${r}px)`, l = `inset(0px 0px 0px 0px round ${getComputedStyle(e).borderTopLeftRadius})`, b = a === "open", p = {
|
|
3121
|
+
duration: b ? Zr : Vr,
|
|
3122
|
+
easing: b ? "cubic-bezier(0.3, 0.9, 0.3, 1)" : "cubic-bezier(0.5, 0, 0.75, 0)",
|
|
3123
|
+
fill: b ? "none" : "forwards"
|
|
3124
|
+
}, h = e.firstElementChild;
|
|
3125
|
+
h && (h.style.transformOrigin = `${o.left + r - i.left}px ${o.top + r - i.top}px`);
|
|
3126
|
+
const f = b ? [{ clipPath: d }, { clipPath: l }] : [{ clipPath: l }, { clipPath: d }], c = [e.animate(f, p)];
|
|
3127
|
+
return h && c.push(
|
|
3128
|
+
h.animate(
|
|
3129
|
+
b ? [
|
|
3130
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 0 },
|
|
3131
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 0.15 },
|
|
3132
|
+
{ opacity: 1, transform: "scale(1)", offset: 0.8 },
|
|
3133
|
+
{ opacity: 1, transform: "scale(1)", offset: 1 }
|
|
3134
|
+
] : [
|
|
3135
|
+
{ opacity: 1, transform: "scale(1)", offset: 0 },
|
|
3136
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 0.55 },
|
|
3137
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 1 }
|
|
3138
|
+
],
|
|
3139
|
+
{ ...p, easing: b ? "ease-out" : "ease-in" }
|
|
3140
|
+
)
|
|
3141
|
+
), Promise.all(c.map((g) => g.finished)).catch(() => {
|
|
3142
|
+
}).then(() => {
|
|
3143
|
+
if (b) {
|
|
3144
|
+
h && (h.style.transformOrigin = "");
|
|
3145
|
+
return;
|
|
3146
|
+
}
|
|
3147
|
+
n.classList.remove("fab--away"), e.style.visibility = "hidden", typeof n.animate == "function" && n.animate([{ opacity: 0, transform: "scale(0.8)" }, { opacity: 1, transform: "scale(1)" }], {
|
|
3148
|
+
duration: Kr,
|
|
3149
|
+
easing: "ease-out"
|
|
3150
|
+
});
|
|
3151
|
+
});
|
|
3152
|
+
}
|
|
3153
|
+
function Gr(e) {
|
|
3154
|
+
return e === null || e === "" || e === "board" ? "board" : e === "off" ? "off" : "owners";
|
|
3155
|
+
}
|
|
3156
|
+
function Xr(e) {
|
|
3157
|
+
if (!(e === null || !e.trim()))
|
|
3158
|
+
return e.split(",").map((n) => n.trim().toLowerCase()).filter((n) => ci.includes(n));
|
|
3159
|
+
}
|
|
3160
|
+
function Jr() {
|
|
3161
|
+
typeof customElements < "u" && !customElements.get(Qn) && customElements.define(Qn, La);
|
|
3162
|
+
}
|
|
3163
|
+
Jr();
|
|
3164
|
+
function io(e) {
|
|
3165
|
+
const n = document.createElement(Qn);
|
|
3166
|
+
n.setAttribute("mode", "overlay"), n.setAttribute("project", e.project), n.setAttribute("server", e.server), e.lang && n.setAttribute("lang", e.lang), e.theme && n.setAttribute("theme", e.theme), e.appName && n.setAttribute("app-name", e.appName), e.name && n.setAttribute("name", e.name), e.kinds && n.setAttribute("kinds", e.kinds.join(",")), e.screenshots === !1 && n.setAttribute("screenshots", "off"), e.screenshots === "owners" && n.setAttribute("screenshots", "owners"), e.readonly && n.setAttribute("readonly", ""), e.names === !1 && n.setAttribute("names", "off"), n.signer = e.signer, n.appLogin = e.appLogin, n.context = e.context, n.noise = e.noise, n.strings = e.strings;
|
|
3167
|
+
const a = () => n.remove();
|
|
3168
|
+
return n.addEventListener("pleasenobugs:close", a, { once: !0 }), document.body.append(n), () => n.close();
|
|
3169
|
+
}
|
|
3170
|
+
export {
|
|
3171
|
+
no as D,
|
|
3172
|
+
La as P,
|
|
3173
|
+
_i as a,
|
|
3174
|
+
ao as b,
|
|
3175
|
+
to as c,
|
|
3176
|
+
gn as i,
|
|
3177
|
+
De as l,
|
|
3178
|
+
io as o
|
|
3179
|
+
};
|