pleasenobugs 0.1.1 → 0.3.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 +156 -20
- package/dist/chunks/demo-CL3oK-zC.js +212 -0
- package/dist/chunks/index--SJW3aE-.js +2749 -0
- package/dist/client.js +165 -116
- package/dist/index.js +10 -1151
- package/dist/pleasenobugs.iife.js +2 -2
- package/dist/types/client.d.ts +81 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/demo.d.ts +53 -0
- package/dist/types/demo.d.ts.map +1 -0
- package/dist/types/element.d.ts +43 -10
- package/dist/types/element.d.ts.map +1 -1
- package/dist/types/filter.d.ts +66 -0
- package/dist/types/filter.d.ts.map +1 -0
- package/dist/types/i18n.d.ts +212 -321
- package/dist/types/i18n.d.ts.map +1 -1
- package/dist/types/index.d.ts +13 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/readonly.d.ts +17 -0
- package/dist/types/readonly.d.ts.map +1 -0
- package/dist/types/ui/App.d.ts +27 -2
- package/dist/types/ui/App.d.ts.map +1 -1
- package/dist/types/ui/Choose.d.ts +37 -0
- package/dist/types/ui/Choose.d.ts.map +1 -0
- package/dist/types/ui/Compose.d.ts +46 -18
- package/dist/types/ui/Compose.d.ts.map +1 -1
- package/dist/types/ui/Manage.d.ts +60 -0
- package/dist/types/ui/Manage.d.ts.map +1 -0
- package/dist/types/ui/PostCard.d.ts +79 -9
- package/dist/types/ui/PostCard.d.ts.map +1 -1
- package/dist/types/ui/Sheets.d.ts +41 -16
- package/dist/types/ui/Sheets.d.ts.map +1 -1
- package/dist/types/ui/Talk.d.ts +57 -0
- package/dist/types/ui/Talk.d.ts.map +1 -0
- package/dist/types/ui/Updates.d.ts +37 -0
- package/dist/types/ui/Updates.d.ts.map +1 -0
- package/dist/types/ui/icons.d.ts +29 -2
- package/dist/types/ui/icons.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,2749 @@
|
|
|
1
|
+
var Pa = Object.defineProperty;
|
|
2
|
+
var bn = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
|
+
};
|
|
5
|
+
var qa = (e, t, a) => t in e ? Pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
6
|
+
var hn = (e, t, a) => qa(e, typeof t != "symbol" ? t + "" : t, a), Nt = (e, t, a) => t.has(e) || bn("Cannot " + a);
|
|
7
|
+
var z = (e, t, a) => (Nt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), Z = (e, t, a) => t.has(e) ? bn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), B = (e, t, a, i) => (Nt(e, t, "write to private field"), i ? i.call(e, a) : t.set(e, a), a), te = (e, t, a) => (Nt(e, t, "access private method"), a);
|
|
8
|
+
import { createMatcher as Fa, sortPosts as Ba, insideNimiqPay as Ia, createClient as fn } from "../client.js";
|
|
9
|
+
const cr = 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
|
+
}), Da = 24, Ea = ["bug", "idea", "review"], Ra = 1e6;
|
|
20
|
+
function Ha(e) {
|
|
21
|
+
return e === "bug" || e === "idea";
|
|
22
|
+
}
|
|
23
|
+
const Ua = 80, ja = 300, Yt = 24, Gt = 300;
|
|
24
|
+
function Kt(e) {
|
|
25
|
+
if (typeof e != "string")
|
|
26
|
+
return null;
|
|
27
|
+
const t = e.trim();
|
|
28
|
+
return t ? t.length <= Yt && /^[0-9A-Za-z][0-9A-Za-z.+_-]*$/.test(t) ? t : null : "";
|
|
29
|
+
}
|
|
30
|
+
const Wa = {
|
|
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 je(e) {
|
|
37
|
+
if (typeof e != "string")
|
|
38
|
+
return null;
|
|
39
|
+
const t = e.trim();
|
|
40
|
+
if (!t)
|
|
41
|
+
return "";
|
|
42
|
+
if (t.length > Gt)
|
|
43
|
+
return null;
|
|
44
|
+
let a;
|
|
45
|
+
try {
|
|
46
|
+
a = new URL(/^https?:\/\//i.test(t) ? t : `https://${t}`);
|
|
47
|
+
} catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
if (a.protocol !== "https:" && a.protocol !== "http:")
|
|
51
|
+
return null;
|
|
52
|
+
const i = Wa[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 Dn(e) {
|
|
56
|
+
const t = je(e);
|
|
57
|
+
return t ? t.startsWith("https://gitlab.com/") ? "GitLab" : "GitHub" : null;
|
|
58
|
+
}
|
|
59
|
+
function pr(e) {
|
|
60
|
+
if (!e || typeof e != "object" || Array.isArray(e))
|
|
61
|
+
return null;
|
|
62
|
+
const { version: t, link: a } = e, i = t === void 0 ? "" : Kt(t), o = a === void 0 ? "" : je(a);
|
|
63
|
+
return i === null || o === null ? null : { ...i ? { version: i } : {}, ...o ? { link: o } : {} };
|
|
64
|
+
}
|
|
65
|
+
function Va(e) {
|
|
66
|
+
return e === "bug" || e === "idea";
|
|
67
|
+
}
|
|
68
|
+
function ut(e) {
|
|
69
|
+
return e === "done" || e === "declined";
|
|
70
|
+
}
|
|
71
|
+
function nt(e) {
|
|
72
|
+
return (e ?? []).filter((t) => !t.hidden);
|
|
73
|
+
}
|
|
74
|
+
function Re(e) {
|
|
75
|
+
const t = nt(e);
|
|
76
|
+
return t[t.length - 1];
|
|
77
|
+
}
|
|
78
|
+
function Ya(e) {
|
|
79
|
+
return Va(e.kind) && !ut(e.status) && Re(e.thread)?.from === "app";
|
|
80
|
+
}
|
|
81
|
+
function Bt(e) {
|
|
82
|
+
return Re(e.thread)?.from === "author";
|
|
83
|
+
}
|
|
84
|
+
function ur(e) {
|
|
85
|
+
const t = nt(e).filter((i) => i.from === "app"), a = t[t.length - 1];
|
|
86
|
+
return a ? { text: a.text, at: a.at } : void 0;
|
|
87
|
+
}
|
|
88
|
+
var _t, N, En, ve, _n, Rn, Hn, Pt, lt, Xe, Un, Zt, It, Dt, bt = {}, ht = [], Ga = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, gt = Array.isArray;
|
|
89
|
+
function _e(e, t) {
|
|
90
|
+
for (var a in t) e[a] = t[a];
|
|
91
|
+
return e;
|
|
92
|
+
}
|
|
93
|
+
function Xt(e) {
|
|
94
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
95
|
+
}
|
|
96
|
+
function Ka(e, t, a) {
|
|
97
|
+
var i, o, r, l = {};
|
|
98
|
+
for (r in t) r == "key" ? i = t[r] : r == "ref" ? o = t[r] : l[r] = t[r];
|
|
99
|
+
if (arguments.length > 2 && (l.children = arguments.length > 3 ? _t.call(arguments, 2) : a), typeof e == "function" && e.defaultProps != null) for (r in e.defaultProps) l[r] === void 0 && (l[r] = e.defaultProps[r]);
|
|
100
|
+
return dt(e, l, i, o, null);
|
|
101
|
+
}
|
|
102
|
+
function dt(e, t, a, i, o) {
|
|
103
|
+
var r = { type: e, props: t, key: a, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++En, __i: -1, __u: 0 };
|
|
104
|
+
return o == null && N.vnode != null && N.vnode(r), r;
|
|
105
|
+
}
|
|
106
|
+
function I(e) {
|
|
107
|
+
return e.children;
|
|
108
|
+
}
|
|
109
|
+
function ct(e, t) {
|
|
110
|
+
this.props = e, this.context = t;
|
|
111
|
+
}
|
|
112
|
+
function Se(e, t) {
|
|
113
|
+
if (t == null) return e.__ ? Se(e.__, e.__i + 1) : null;
|
|
114
|
+
for (var a; t < e.__k.length; t++) if ((a = e.__k[t]) != null && a.__e != null) return a.__e;
|
|
115
|
+
return typeof e.type == "function" ? Se(e) : null;
|
|
116
|
+
}
|
|
117
|
+
function Za(e) {
|
|
118
|
+
if (e.__P && e.__d) {
|
|
119
|
+
var t = e.__v, a = t.__e, i = [], o = [], r = _e({}, t);
|
|
120
|
+
r.__v = t.__v + 1, N.vnode && N.vnode(r), Jt(e.__P, r, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [a] : null, i, a ?? Se(t), !!(32 & t.__u), o), r.__v = t.__v, r.__.__k[r.__i] = r, Gn(i, r, o), t.__e = t.__ = null, r.__e != a && jn(r);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function jn(e) {
|
|
124
|
+
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
|
|
125
|
+
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
|
|
126
|
+
}), jn(e);
|
|
127
|
+
}
|
|
128
|
+
function gn(e) {
|
|
129
|
+
(!e.__d && (e.__d = !0) && ve.push(e) && !ft.__r++ || _n != N.debounceRendering) && ((_n = N.debounceRendering) || Rn)(ft);
|
|
130
|
+
}
|
|
131
|
+
function ft() {
|
|
132
|
+
try {
|
|
133
|
+
for (var e, t = 1; ve.length; ) ve.length > t && ve.sort(Hn), e = ve.shift(), t = ve.length, Za(e);
|
|
134
|
+
} finally {
|
|
135
|
+
ve.length = ft.__r = 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function Wn(e, t, a, i, o, r, l, d, u, p, h) {
|
|
139
|
+
var x, c, b, v, L, _, y = i && i.__k || ht, g = t.length;
|
|
140
|
+
for (u = Xa(a, t, y, u, g), x = 0; x < g; x++) (b = a.__k[x]) != null && (c = b.__i != -1 && y[b.__i] || bt, b.__i = x, _ = Jt(e, b, c, o, r, l, d, u, p, h), v = b.__e, b.ref && c.ref != b.ref && (c.ref && Qt(c.ref, null, b), h.push(b.ref, b.__c || v, b)), L == null && v != null && (L = v), 4 & b.__u ? (u = Vn(b, u, e), c.__e && (c.__e = null)) : typeof b.type == "function" && _ !== void 0 ? u = _ : v && (u = v.nextSibling), b.__u &= -7);
|
|
141
|
+
return a.__e = L, u;
|
|
142
|
+
}
|
|
143
|
+
function Xa(e, t, a, i, o) {
|
|
144
|
+
var r, l, d, u, p, h = a.length, x = h, c = 0;
|
|
145
|
+
for (e.__k = new Array(o), r = 0; r < o; r++) (l = t[r]) != null && typeof l != "boolean" && typeof l != "function" ? (typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? l = e.__k[r] = dt(null, l, null, null, null) : gt(l) ? l = e.__k[r] = dt(I, { children: l }, null, null, null) : l.constructor === void 0 && l.__b > 0 ? l = e.__k[r] = dt(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : e.__k[r] = l, u = r + c, l.__ = e, l.__b = e.__b + 1, d = null, (p = l.__i = Ja(l, a, u, x)) != -1 && (x--, (d = a[p]) && (d.__u |= 2)), d == null || d.__v == null ? (p == -1 && (o > h ? c-- : o < h && c++), typeof l.type != "function" && (l.__u |= 4)) : p != u && (p == u - 1 ? c-- : p == u + 1 ? c++ : (p > u ? c-- : c++, l.__u |= 4))) : e.__k[r] = null;
|
|
146
|
+
if (x) for (r = 0; r < h; r++) (d = a[r]) != null && !(2 & d.__u) && (d.__e == i && (i = Se(d)), Zn(d, d));
|
|
147
|
+
return i;
|
|
148
|
+
}
|
|
149
|
+
function Vn(e, t, 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, t = Vn(i[o], t, a));
|
|
153
|
+
return t;
|
|
154
|
+
}
|
|
155
|
+
e.__e != t && (t && e.type && !t.parentNode && (t = Se(e)), t = a.insertBefore(e.__e, t || null));
|
|
156
|
+
do
|
|
157
|
+
t = t && t.nextSibling;
|
|
158
|
+
while (t != null && t.nodeType == 8);
|
|
159
|
+
return t;
|
|
160
|
+
}
|
|
161
|
+
function Ja(e, t, a, i) {
|
|
162
|
+
var o, r, l, d = e.key, u = e.type, p = t[a], h = p != null && (2 & p.__u) == 0;
|
|
163
|
+
if (p === null && d == null || h && d == p.key && u == p.type) return a;
|
|
164
|
+
if (i > (h ? 1 : 0)) {
|
|
165
|
+
for (o = a - 1, r = a + 1; o >= 0 || r < t.length; ) if ((p = t[l = o >= 0 ? o-- : r++]) != null && !(2 & p.__u) && d == p.key && u == p.type) return l;
|
|
166
|
+
}
|
|
167
|
+
return -1;
|
|
168
|
+
}
|
|
169
|
+
function vn(e, t, a) {
|
|
170
|
+
t[0] == "-" ? e.setProperty(t, a ?? "") : e[t] = a == null ? "" : typeof a != "number" || Ga.test(t) ? a : a + "px";
|
|
171
|
+
}
|
|
172
|
+
function ot(e, t, a, i, o) {
|
|
173
|
+
var r, l;
|
|
174
|
+
e: if (t == "style") if (typeof a == "string") e.style.cssText = a;
|
|
175
|
+
else {
|
|
176
|
+
if (typeof i == "string" && (e.style.cssText = i = ""), i) for (t in i) a && t in a || vn(e.style, t, "");
|
|
177
|
+
if (a) for (t in a) i && a[t] == i[t] || vn(e.style, t, a[t]);
|
|
178
|
+
}
|
|
179
|
+
else if (t[0] == "o" && t[1] == "n") r = t != (t = t.replace(Un, "$1")), l = t.toLowerCase(), t = l in e || t == "onFocusOut" || t == "onFocusIn" ? l.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + r] = a, a ? i ? a[Xe] = i[Xe] : (a[Xe] = Zt, e.addEventListener(t, r ? Dt : It, r)) : e.removeEventListener(t, r ? Dt : It, r);
|
|
180
|
+
else {
|
|
181
|
+
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
182
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
183
|
+
e[t] = a ?? "";
|
|
184
|
+
break e;
|
|
185
|
+
} catch {
|
|
186
|
+
}
|
|
187
|
+
typeof a == "function" || (a == null || a === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && a == 1 ? "" : a));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
function xn(e) {
|
|
191
|
+
return function(t) {
|
|
192
|
+
if (this.l) {
|
|
193
|
+
var a = this.l[t.type + e];
|
|
194
|
+
if (t[lt] == null) t[lt] = Zt++;
|
|
195
|
+
else if (t[lt] < a[Xe]) return;
|
|
196
|
+
return a(N.event ? N.event(t) : t);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function Jt(e, t, a, i, o, r, l, d, u, p) {
|
|
201
|
+
var h, x, c, b, v, L, _, y, g, k, O, A, F, C, D, E, R = t.type;
|
|
202
|
+
if (t.constructor !== void 0) return null;
|
|
203
|
+
128 & a.__u && (u = !!(32 & a.__u), r = [d = t.__e = a.__e]), (h = N.__b) && h(t);
|
|
204
|
+
e: if (typeof R == "function") {
|
|
205
|
+
x = l.length;
|
|
206
|
+
try {
|
|
207
|
+
if (g = t.props, k = R.prototype && R.prototype.render, O = (h = R.contextType) && i[h.__c], A = h ? O ? O.props.value : h.__ : i, a.__c ? y = (c = t.__c = a.__c).__ = c.__E : (k ? t.__c = c = new R(g, A) : (t.__c = c = new ct(g, A), c.constructor = R, c.render = ei), O && O.sub(c), c.state || (c.state = {}), c.__n = i, b = c.__d = !0, c.__h = [], c._sb = []), k && c.__s == null && (c.__s = c.state), k && R.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = _e({}, c.__s)), _e(c.__s, R.getDerivedStateFromProps(g, c.__s))), v = c.props, L = c.state, c.__v = t, b) k && R.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), k && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
208
|
+
else {
|
|
209
|
+
if (k && R.getDerivedStateFromProps == null && g !== v && c.componentWillReceiveProps != null && c.componentWillReceiveProps(g, A), t.__v == a.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(g, c.__s, A) === !1) {
|
|
210
|
+
t.__v != a.__v && (c.props = g, c.state = c.__s, c.__d = !1), t.__e = a.__e, t.__k = a.__k, t.__k.some(function(V) {
|
|
211
|
+
V && (V.__ = t);
|
|
212
|
+
}), ht.push.apply(c.__h, c._sb), c._sb = [], c.__h.length && l.push(c), d = Se(a);
|
|
213
|
+
break e;
|
|
214
|
+
}
|
|
215
|
+
c.componentWillUpdate != null && c.componentWillUpdate(g, c.__s, A), k && c.componentDidUpdate != null && c.__h.push(function() {
|
|
216
|
+
c.componentDidUpdate(v, L, _);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
if (c.context = A, c.props = g, c.__P = e, c.__e = !1, F = N.__r, C = 0, k) c.state = c.__s, c.__d = !1, F && F(t), h = c.render(c.props, c.state, c.context), ht.push.apply(c.__h, c._sb), c._sb = [];
|
|
220
|
+
else do
|
|
221
|
+
c.__d = !1, F && F(t), h = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
222
|
+
while (c.__d && ++C < 25);
|
|
223
|
+
c.state = c.__s, c.getChildContext != null && (i = _e(_e({}, i), c.getChildContext())), k && !b && c.getSnapshotBeforeUpdate != null && (_ = c.getSnapshotBeforeUpdate(v, L)), D = h != null && h.type === I && h.key == null ? Kn(h.props.children) : h, d = Wn(e, gt(D) ? D : [D], t, a, i, o, r, l, d, u, p), c.base = t.__e, t.__u &= -161, c.__h.length && l.push(c), y && (c.__E = c.__ = null);
|
|
224
|
+
} catch (V) {
|
|
225
|
+
if (l.length = x, t.__v = null, u || r != null) {
|
|
226
|
+
if (V.then) {
|
|
227
|
+
for (t.__u |= u ? 160 : 128; d && d.nodeType == 8 && d.nextSibling; ) d = d.nextSibling;
|
|
228
|
+
r != null && (r[r.indexOf(d)] = null), t.__e = d;
|
|
229
|
+
} else if (r != null) for (E = r.length; E--; ) Xt(r[E]);
|
|
230
|
+
} else t.__e = a.__e;
|
|
231
|
+
t.__k == null && (t.__k = a.__k || []), V.then || Yn(t), N.__e(V, t, a);
|
|
232
|
+
}
|
|
233
|
+
} else r == null && t.__v == a.__v ? (t.__k = a.__k, t.__e = a.__e) : d = t.__e = Qa(a.__e, t, a, i, o, r, l, u, p);
|
|
234
|
+
return (h = N.diffed) && h(t), 128 & t.__u ? void 0 : d;
|
|
235
|
+
}
|
|
236
|
+
function Yn(e) {
|
|
237
|
+
e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(Yn));
|
|
238
|
+
}
|
|
239
|
+
function Gn(e, t, a) {
|
|
240
|
+
for (var i = 0; i < a.length; i++) Qt(a[i], a[++i], a[++i]);
|
|
241
|
+
N.__c && N.__c(t, 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
|
+
N.__e(r, o.__v);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
function Kn(e) {
|
|
252
|
+
return typeof e != "object" || e == null || e.__b > 0 ? e : gt(e) ? e.map(Kn) : e.constructor !== void 0 ? null : _e({}, e);
|
|
253
|
+
}
|
|
254
|
+
function Qa(e, t, a, i, o, r, l, d, u) {
|
|
255
|
+
var p, h, x, c, b, v, L, _ = a.props || bt, y = t.props, g = t.type;
|
|
256
|
+
if (g == "svg" ? o = "http://www.w3.org/2000/svg" : g == "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 ((b = r[p]) && "setAttribute" in b == !!g && (g ? b.localName == g : b.nodeType == 3)) {
|
|
258
|
+
e = b, r[p] = null;
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (e == null) {
|
|
263
|
+
if (g == null) return document.createTextNode(y);
|
|
264
|
+
e = document.createElementNS(o, g, y.is && y), d && (N.__m && N.__m(t, r), d = !1), r = null;
|
|
265
|
+
}
|
|
266
|
+
if (g == null) _ === y || d && e.data == y || (e.data = y);
|
|
267
|
+
else {
|
|
268
|
+
if (r = g == "textarea" && y.defaultValue != null ? null : r && _t.call(e.childNodes), !d && r != null) for (_ = {}, p = 0; p < e.attributes.length; p++) _[(b = e.attributes[p]).name] = b.value;
|
|
269
|
+
for (p in _) b = _[p], p == "dangerouslySetInnerHTML" ? x = b : p == "children" || p in y || p == "value" && "defaultValue" in y || p == "checked" && "defaultChecked" in y || ot(e, p, null, b, o);
|
|
270
|
+
for (p in y) b = y[p], p == "children" ? c = b : p == "dangerouslySetInnerHTML" ? h = b : p == "value" ? v = b : p == "checked" ? L = b : d && typeof b != "function" || _[p] === b || ot(e, p, b, _[p], o);
|
|
271
|
+
if (h) d || x && (h.__html == x.__html || h.__html == e.innerHTML) || (e.innerHTML = h.__html), t.__k = [];
|
|
272
|
+
else if (x && (e.innerHTML = ""), Wn(t.type == "template" ? e.content : e, gt(c) ? c : [c], t, a, i, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, r, l, r ? r[0] : a.__k && Se(a, 0), d, u), r != null) for (p = r.length; p--; ) Xt(r[p]);
|
|
273
|
+
d && g != "textarea" || (p = "value", g == "progress" && v == null ? e.removeAttribute("value") : v != null && (v !== e[p] || g == "progress" && !v || g == "option" && v != _[p]) && ot(e, p, v, _[p], o), p = "checked", L != null && L != e[p] && ot(e, p, L, _[p], o));
|
|
274
|
+
}
|
|
275
|
+
return e;
|
|
276
|
+
}
|
|
277
|
+
function Qt(e, t, a) {
|
|
278
|
+
try {
|
|
279
|
+
if (typeof e == "function") {
|
|
280
|
+
var i = typeof e.__u == "function";
|
|
281
|
+
i && e.__u(), i && t == null || (e.__u = e(t));
|
|
282
|
+
} else e.current = t;
|
|
283
|
+
} catch (o) {
|
|
284
|
+
N.__e(o, a);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
function Zn(e, t, a) {
|
|
288
|
+
var i, o;
|
|
289
|
+
if (N.unmount && N.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || Qt(i, null, t)), (i = e.__c) != null) {
|
|
290
|
+
if (i.componentWillUnmount) try {
|
|
291
|
+
i.componentWillUnmount();
|
|
292
|
+
} catch (r) {
|
|
293
|
+
N.__e(r, t);
|
|
294
|
+
}
|
|
295
|
+
i.base = i.__P = i.__n = null;
|
|
296
|
+
}
|
|
297
|
+
if (i = e.__k) for (o = 0; o < i.length; o++) i[o] && Zn(i[o], t, a || typeof e.type != "function");
|
|
298
|
+
a || Xt(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
299
|
+
}
|
|
300
|
+
function ei(e, t, a) {
|
|
301
|
+
return this.constructor(e, a);
|
|
302
|
+
}
|
|
303
|
+
function Ze(e, t, a) {
|
|
304
|
+
var i, o, r, l;
|
|
305
|
+
t == document && (t = document.documentElement), N.__ && N.__(e, t), o = (i = !1) ? null : t.__k, r = [], l = [], Jt(t, e = t.__k = Ka(I, null, [e]), o || bt, bt, t.namespaceURI, o ? null : t.firstChild ? _t.call(t.childNodes) : null, r, o ? o.__e : t.firstChild, i, l), Gn(r, e, l), e.props.children = null;
|
|
306
|
+
}
|
|
307
|
+
_t = ht.slice, N = { __e: function(e, t, a, i) {
|
|
308
|
+
for (var o, r, l; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
309
|
+
if ((r = o.constructor) && r.getDerivedStateFromError != null && (o.setState(r.getDerivedStateFromError(e)), l = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, i || {}), l = o.__d), l) return o.__E = o;
|
|
310
|
+
} catch (d) {
|
|
311
|
+
e = d;
|
|
312
|
+
}
|
|
313
|
+
throw e;
|
|
314
|
+
} }, En = 0, ct.prototype.setState = function(e, t) {
|
|
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 && (t && this._sb.push(t), gn(this));
|
|
317
|
+
}, ct.prototype.forceUpdate = function(e) {
|
|
318
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), gn(this));
|
|
319
|
+
}, ct.prototype.render = I, ve = [], Rn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Hn = function(e, t) {
|
|
320
|
+
return e.__v.__b - t.__v.__b;
|
|
321
|
+
}, ft.__r = 0, Pt = Math.random().toString(8), lt = "__d" + Pt, Xe = "__a" + Pt, Un = /(PointerCapture)$|Capture$/i, Zt = 0, It = xn(!1), Dt = xn(!0);
|
|
322
|
+
var ti = 0;
|
|
323
|
+
function n(e, t, a, i, o, r) {
|
|
324
|
+
t || (t = {});
|
|
325
|
+
var l, d, u = t;
|
|
326
|
+
if ("ref" in u) for (d in u = {}, t) d == "ref" ? l = t[d] : u[d] = t[d];
|
|
327
|
+
var p = { type: e, props: u, key: a, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ti, __i: -1, __u: 0, __source: o, __self: r };
|
|
328
|
+
if (typeof e == "function" && (l = e.defaultProps)) for (d in l) u[d] === void 0 && (u[d] = l[d]);
|
|
329
|
+
return N.vnode && N.vnode(p), p;
|
|
330
|
+
}
|
|
331
|
+
var He, P, qt, mn, Je = 0, Xn = [], q = N, wn = q.__b, kn = q.__r, yn = q.diffed, Cn = q.__c, Ln = q.unmount, Sn = q.__;
|
|
332
|
+
function vt(e, t) {
|
|
333
|
+
q.__h && q.__h(P, e, Je || t), Je = 0;
|
|
334
|
+
var a = P.__H || (P.__H = { __: [], __h: [] });
|
|
335
|
+
return e >= a.__.length && a.__.push({}), a.__[e];
|
|
336
|
+
}
|
|
337
|
+
function w(e) {
|
|
338
|
+
return Je = 1, ni(Jn, e);
|
|
339
|
+
}
|
|
340
|
+
function ni(e, t, a) {
|
|
341
|
+
var i = vt(He++, 2);
|
|
342
|
+
if (i.t = e, !i.__c && (i.__ = [Jn(void 0, t), function(d) {
|
|
343
|
+
var u = i.__N ? i.__N[0] : i.__[0], p = i.t(u, d);
|
|
344
|
+
u !== p && (i.__N = [p, i.__[1]], i.__c.setState({}));
|
|
345
|
+
}], i.__c = P, !P.__f)) {
|
|
346
|
+
var o = function(d, u, p) {
|
|
347
|
+
if (!i.__c.__H) return !0;
|
|
348
|
+
var h = !1, x = i.__c.props !== d;
|
|
349
|
+
if (i.__c.__H.__.some(function(b) {
|
|
350
|
+
if (b.__N) {
|
|
351
|
+
h = !0;
|
|
352
|
+
var v = b.__[0];
|
|
353
|
+
b.__ = b.__N, b.__N = void 0, v !== b.__[0] && (x = !0);
|
|
354
|
+
}
|
|
355
|
+
}), r) {
|
|
356
|
+
var c = r.call(this, d, u, p);
|
|
357
|
+
return h ? c || x : c;
|
|
358
|
+
}
|
|
359
|
+
return !h || x;
|
|
360
|
+
};
|
|
361
|
+
P.__f = !0;
|
|
362
|
+
var r = P.shouldComponentUpdate, l = P.componentWillUpdate;
|
|
363
|
+
P.componentWillUpdate = function(d, u, p) {
|
|
364
|
+
if (this.__e) {
|
|
365
|
+
var h = r;
|
|
366
|
+
r = void 0, o(d, u, p), r = h;
|
|
367
|
+
}
|
|
368
|
+
l && l.call(this, d, u, p);
|
|
369
|
+
}, P.shouldComponentUpdate = o;
|
|
370
|
+
}
|
|
371
|
+
return i.__N || i.__;
|
|
372
|
+
}
|
|
373
|
+
function ne(e, t) {
|
|
374
|
+
var a = vt(He++, 3);
|
|
375
|
+
!q.__s && en(a.__H, t) && (a.__ = e, a.u = t, P.__H.__h.push(a));
|
|
376
|
+
}
|
|
377
|
+
function ai(e, t) {
|
|
378
|
+
var a = vt(He++, 4);
|
|
379
|
+
!q.__s && en(a.__H, t) && (a.__ = e, a.u = t, P.__h.push(a));
|
|
380
|
+
}
|
|
381
|
+
function Qe(e) {
|
|
382
|
+
return Je = 5, se(function() {
|
|
383
|
+
return { current: e };
|
|
384
|
+
}, []);
|
|
385
|
+
}
|
|
386
|
+
function se(e, t) {
|
|
387
|
+
var a = vt(He++, 7);
|
|
388
|
+
return en(a.__H, t) && (a.__ = e(), a.__H = t, a.__h = e), a.__;
|
|
389
|
+
}
|
|
390
|
+
function ii(e, t) {
|
|
391
|
+
return Je = 8, se(function() {
|
|
392
|
+
return e;
|
|
393
|
+
}, t);
|
|
394
|
+
}
|
|
395
|
+
function ri() {
|
|
396
|
+
for (var e; e = Xn.shift(); ) {
|
|
397
|
+
var t = e.__H;
|
|
398
|
+
if (e.__P && t) try {
|
|
399
|
+
t.__h.some(pt), t.__h.some(Et), t.__h = [];
|
|
400
|
+
} catch (a) {
|
|
401
|
+
t.__h = [], q.__e(a, e.__v);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
q.__b = function(e) {
|
|
406
|
+
P = null, wn && wn(e);
|
|
407
|
+
}, q.__ = function(e, t) {
|
|
408
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Sn && Sn(e, t);
|
|
409
|
+
}, q.__r = function(e) {
|
|
410
|
+
kn && kn(e), He = 0;
|
|
411
|
+
var t = (P = e.__c).__H;
|
|
412
|
+
t && (qt === P ? (t.__h = [], P.__h = [], t.__.some(function(a) {
|
|
413
|
+
a.__N && (a.__ = a.__N), a.u = a.__N = void 0;
|
|
414
|
+
})) : (t.__h.some(pt), t.__h.some(Et), t.__h = [], He = 0)), qt = P;
|
|
415
|
+
}, q.diffed = function(e) {
|
|
416
|
+
yn && yn(e);
|
|
417
|
+
var t = e.__c;
|
|
418
|
+
t && t.__H && (t.__H.__h.length && (Xn.push(t) !== 1 && mn === q.requestAnimationFrame || ((mn = q.requestAnimationFrame) || oi)(ri)), t.__H.__.some(function(a) {
|
|
419
|
+
a.u && (a.__H = a.u, a.u = void 0);
|
|
420
|
+
})), qt = P = null;
|
|
421
|
+
}, q.__c = function(e, t) {
|
|
422
|
+
t.some(function(a) {
|
|
423
|
+
try {
|
|
424
|
+
a.__h.some(pt), a.__h = a.__h.filter(function(i) {
|
|
425
|
+
return !i.__ || Et(i);
|
|
426
|
+
});
|
|
427
|
+
} catch (i) {
|
|
428
|
+
t.some(function(o) {
|
|
429
|
+
o.__h && (o.__h = []);
|
|
430
|
+
}), t = [], q.__e(i, a.__v);
|
|
431
|
+
}
|
|
432
|
+
}), Cn && Cn(e, t);
|
|
433
|
+
}, q.unmount = function(e) {
|
|
434
|
+
Ln && Ln(e);
|
|
435
|
+
var t, a = e.__c;
|
|
436
|
+
a && a.__H && (a.__H.__.some(function(i) {
|
|
437
|
+
try {
|
|
438
|
+
pt(i);
|
|
439
|
+
} catch (o) {
|
|
440
|
+
t = o;
|
|
441
|
+
}
|
|
442
|
+
}), a.__H = void 0, t && q.__e(t, a.__v));
|
|
443
|
+
};
|
|
444
|
+
var Tn = typeof requestAnimationFrame == "function";
|
|
445
|
+
function oi(e) {
|
|
446
|
+
var t, a = function() {
|
|
447
|
+
clearTimeout(i), Tn && cancelAnimationFrame(t), setTimeout(e);
|
|
448
|
+
}, i = setTimeout(a, 35);
|
|
449
|
+
Tn && (t = requestAnimationFrame(a));
|
|
450
|
+
}
|
|
451
|
+
function pt(e) {
|
|
452
|
+
var t = P, a = e.__c;
|
|
453
|
+
typeof a == "function" && (e.__c = void 0, a()), P = t;
|
|
454
|
+
}
|
|
455
|
+
function Et(e) {
|
|
456
|
+
var t = P;
|
|
457
|
+
e.__c = e.__(), P = t;
|
|
458
|
+
}
|
|
459
|
+
function en(e, t) {
|
|
460
|
+
return !e || e.length !== t.length || t.some(function(a, i) {
|
|
461
|
+
return a !== e[i];
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
function Jn(e, t) {
|
|
465
|
+
return typeof t == "function" ? t(e) : t;
|
|
466
|
+
}
|
|
467
|
+
const si = {
|
|
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
|
+
// Reading works anywhere; writing needs a wallet. Said when somebody tries,
|
|
513
|
+
// not up front, so a reader is never told off for reading.
|
|
514
|
+
"board.needWallet": "Open {app} in Nimiq Pay to post and vote.",
|
|
515
|
+
// ---- Choosing what to write ----
|
|
516
|
+
"board.chooseTitle": "What do you want to share?",
|
|
517
|
+
"board.tileBug": "Report a bug",
|
|
518
|
+
"board.tileBugNote": "Something does not work",
|
|
519
|
+
"board.tileIdea": "Share an idea",
|
|
520
|
+
"board.tileIdeaNote": "Something you miss",
|
|
521
|
+
"board.tileReview": "Write a review",
|
|
522
|
+
"board.tileReviewNote": "What you think of {app}",
|
|
523
|
+
"board.seeBoard": "See the board",
|
|
524
|
+
"board.tileReviewDone": "You reviewed {app} already",
|
|
525
|
+
// ---- Writing one ----
|
|
526
|
+
"board.composeTitle": "Your feedback",
|
|
527
|
+
"board.whatKind": "What is it?",
|
|
528
|
+
// On a bug; an idea and a review each ask their own question.
|
|
529
|
+
"board.placeholder": "What’s broken?",
|
|
530
|
+
"board.placeholderIdea": "What’s missing?",
|
|
531
|
+
"board.placeholderReview": "What do you think of {app}?",
|
|
532
|
+
"board.yourRating": "Your rating",
|
|
533
|
+
"board.public": "Everyone using {app} can see this.",
|
|
534
|
+
"board.showName": "Show my name",
|
|
535
|
+
"board.namePlaceholder": "Your name",
|
|
536
|
+
// The honest version. Anonymous means the name is not shown, never that the
|
|
537
|
+
// wallet is not known: the daily limit and one vote per wallet both have to
|
|
538
|
+
// ask who.
|
|
539
|
+
"board.anonNote": "Your wallet address is never public, but the server uses it to track votes and daily limits.",
|
|
540
|
+
// ---- A screenshot ----
|
|
541
|
+
"board.shotAdd": "Add screenshot",
|
|
542
|
+
"board.shotRemove": "Remove screenshot",
|
|
543
|
+
// Said before somebody picks one, because a screenshot of a wallet app is
|
|
544
|
+
// the easiest way to give away a balance without noticing. On a board that
|
|
545
|
+
// shows screenshots, and the one for `screenshots="owners"`. The address
|
|
546
|
+
// line is there because posting anonymously is undone by a picture of it.
|
|
547
|
+
"board.shotNoteBoard": "Screenshots are public. Hide personal info and wallet addresses.",
|
|
548
|
+
// Ticked under the picture itself, so the yes is about this one.
|
|
549
|
+
"board.shotAgree": "Checked: everyone may see this.",
|
|
550
|
+
"board.shotNote": "Only {app} sees it. Hide personal info and wallet addresses.",
|
|
551
|
+
"board.shotFailed": "That image could not be read. Try another one.",
|
|
552
|
+
"board.shot": "Screenshot",
|
|
553
|
+
"board.shotOpen": "Open the screenshot",
|
|
554
|
+
// In the owner's sheet: who sees it now, before what happens to it.
|
|
555
|
+
"board.shotForBoard": "On the board for everyone.",
|
|
556
|
+
"board.shotForOff": "Off the board: only you see it.",
|
|
557
|
+
"board.shotForOwners": "Only you see it: it was sent for your eyes only.",
|
|
558
|
+
"board.shotOff": "Take the screenshot off the board",
|
|
559
|
+
"board.shotOn": "Put the screenshot back",
|
|
560
|
+
"board.shotGoes": "Deleted by itself when you mark this Done or Not doing.",
|
|
561
|
+
"board.shotGone": "The screenshot could not be loaded.",
|
|
562
|
+
"board.send": "Put it on the board",
|
|
563
|
+
"board.left": "{n} of {max} left today",
|
|
564
|
+
"board.noneLeft": "That is today’s {max}. Back tomorrow.",
|
|
565
|
+
"board.likeThis": "Already on the board?",
|
|
566
|
+
"board.likeThisNote": "Vote instead of sending it again.",
|
|
567
|
+
// Seconding a lookalike instead of writing it again, which closes the form.
|
|
568
|
+
"board.meToo": "Me too",
|
|
569
|
+
"board.meTooDone": "Your vote is on it. Thank you.",
|
|
570
|
+
"board.voted": "Voted",
|
|
571
|
+
// Two ways a post can be refused, because the answer to one is "go again"
|
|
572
|
+
// and the answer to the other is "come back tomorrow".
|
|
573
|
+
"board.failed": "That did not go through. Try again.",
|
|
574
|
+
"board.failedFull": "Not posted: that was today’s {max}. Back tomorrow.",
|
|
575
|
+
"board.reviewed": "You reviewed {app} already. Throw yours away to write a new one.",
|
|
576
|
+
"board.sent": "Feedback sent!",
|
|
577
|
+
"board.sentNote": "Thank you. It is on the board now.",
|
|
578
|
+
// On a board that approves posts first: it did arrive, it is just not up yet.
|
|
579
|
+
"board.sentWaiting": "Thank you. It shows on the board once {app} approved it.",
|
|
580
|
+
"board.waiting": "Waiting for approval",
|
|
581
|
+
"board.sentBack": "Back to the board",
|
|
582
|
+
// ---- Throwing your own away ----
|
|
583
|
+
"board.delete": "Throw away",
|
|
584
|
+
"board.deleteTitle": "Throw this away?",
|
|
585
|
+
"board.deleteNote": "It leaves the board for everybody, with its votes.",
|
|
586
|
+
"board.cancel": "Cancel",
|
|
587
|
+
// ---- Answering one (owners only) ----
|
|
588
|
+
"board.manage": "Answer this",
|
|
589
|
+
"board.setStatus": "Where it stands",
|
|
590
|
+
"board.replyLabel": "Your answer",
|
|
591
|
+
"board.replyPlaceholder": "Say something back",
|
|
592
|
+
"board.hide": "Take off the board",
|
|
593
|
+
"board.unhide": "Put it back",
|
|
594
|
+
"board.hidden": "Off the board",
|
|
595
|
+
"board.approve": "Approve: put it on the board",
|
|
596
|
+
"board.unapprove": "Keep it waiting",
|
|
597
|
+
"board.save": "Save",
|
|
598
|
+
"board.context": "Sent with",
|
|
599
|
+
// ---- Where a fix is ----
|
|
600
|
+
// In the owner's sheet, once Done is picked. An idea is built, not fixed.
|
|
601
|
+
"fix.title": "Fixed in",
|
|
602
|
+
"fix.titleIdea": "Built in",
|
|
603
|
+
"fix.version": "Version",
|
|
604
|
+
"fix.versionBad": "Letters, numbers and dots only, like 1.4.2.",
|
|
605
|
+
"fix.link": "Link to the fix",
|
|
606
|
+
"fix.linkNote": "A commit, pull request or release on github.com or gitlab.com.",
|
|
607
|
+
"fix.linkBad": "That is not a link to a page on github.com or gitlab.com.",
|
|
608
|
+
"fix.who": "Whoever reported this sees it on their board.",
|
|
609
|
+
// On the card, for everybody.
|
|
610
|
+
"fix.in": "Fixed in {version}",
|
|
611
|
+
"fix.inIdea": "Built in {version}",
|
|
612
|
+
// {site} is GitHub or GitLab, whichever the link goes to.
|
|
613
|
+
"fix.view": "View on {site}",
|
|
614
|
+
// ---- The note for whoever reported it ----
|
|
615
|
+
"news.bug": "Your bug is fixed",
|
|
616
|
+
"news.bugIn": "Your bug is fixed in {version}",
|
|
617
|
+
"news.idea": "Your idea is built",
|
|
618
|
+
"news.ideaIn": "Your idea is in {version}",
|
|
619
|
+
"news.see": "See the fix",
|
|
620
|
+
// ---- The conversation under a post ----
|
|
621
|
+
"talk.title": "Conversation",
|
|
622
|
+
"talk.open": "Open the conversation",
|
|
623
|
+
"talk.count": "{n} messages",
|
|
624
|
+
"talk.you": "You say",
|
|
625
|
+
"talk.who": "{who} says",
|
|
626
|
+
"talk.edited": "edited",
|
|
627
|
+
"talk.answerLabel": "Your answer to {app}",
|
|
628
|
+
"talk.placeholder": "Write your answer…",
|
|
629
|
+
"talk.send": "Send",
|
|
630
|
+
"talk.edit": "Edit",
|
|
631
|
+
"talk.remove": "Remove",
|
|
632
|
+
"talk.save": "Save",
|
|
633
|
+
"talk.next": "{app} answers next.",
|
|
634
|
+
"talk.closedDone": "Closed: {app} marked this done.",
|
|
635
|
+
"talk.closedDeclined": "Closed: {app} is not doing this.",
|
|
636
|
+
// Said when what was on screen is no longer what is on the board.
|
|
637
|
+
"talk.moved": "Something changed in the meantime. Have a look first.",
|
|
638
|
+
"talk.hide": "Hide",
|
|
639
|
+
"talk.unhide": "Put back",
|
|
640
|
+
"talk.label": "Conversation",
|
|
641
|
+
"talk.writeTo": "Write to {who}…",
|
|
642
|
+
"talk.changeLast": "Change your last message",
|
|
643
|
+
"talk.gets": "{who} gets a note on the board.",
|
|
644
|
+
// How an owner's sheet names the author of an anonymous post.
|
|
645
|
+
"talk.author": "the author",
|
|
646
|
+
// ---- The note for whoever wrote it, once the app answered ----
|
|
647
|
+
"answered.bug": "{app} answered your bug",
|
|
648
|
+
"answered.idea": "{app} answered your idea",
|
|
649
|
+
"answered.review": "{app} answered your review",
|
|
650
|
+
"answered.see": "See the conversation",
|
|
651
|
+
// ---- For owners: answers waiting ----
|
|
652
|
+
"owner.newAnswer": "New answer",
|
|
653
|
+
"owner.waitingOne": "1 answer waits for you",
|
|
654
|
+
"owner.waitingMany": "{n} answers wait for you",
|
|
655
|
+
"owner.showThese": "Show only these",
|
|
656
|
+
// ---- Search and filter ----
|
|
657
|
+
"search.placeholder": "Search bugs and ideas",
|
|
658
|
+
"search.clear": "Clear the search",
|
|
659
|
+
"search.countOne": '1 post matches "{q}"',
|
|
660
|
+
"search.count": '{n} posts match "{q}"',
|
|
661
|
+
"search.inThread": "In the conversation:",
|
|
662
|
+
"filter.button": "Filter",
|
|
663
|
+
"filter.title": "Filter",
|
|
664
|
+
"filter.kind": "Kind",
|
|
665
|
+
"filter.status": "Status",
|
|
666
|
+
"filter.statusNote": "Reviews have no status, so choosing one hides them.",
|
|
667
|
+
"filter.own": "Only for you",
|
|
668
|
+
"filter.waiting": "Waiting on you",
|
|
669
|
+
"filter.mine": "Only my posts",
|
|
670
|
+
"filter.reset": "Reset",
|
|
671
|
+
"filter.showOne": "Show 1 post",
|
|
672
|
+
"filter.show": "Show {n} posts",
|
|
673
|
+
"filter.on": "{n} filters on",
|
|
674
|
+
"filter.remove": "Turn off {label}",
|
|
675
|
+
"filter.clearAll": "Clear all",
|
|
676
|
+
"filter.none": "Nothing found",
|
|
677
|
+
"filter.noneNote": "Nothing matches your search and filters. Clear them to look everywhere.",
|
|
678
|
+
"filter.clear": "Clear search and filters",
|
|
679
|
+
// ---- Updates ----
|
|
680
|
+
"updates.title": "Updates",
|
|
681
|
+
"updates.intro": "What changed in {app}. Tap one to see the change itself.",
|
|
682
|
+
"updates.empty": "No updates yet.",
|
|
683
|
+
"updates.emptyOwner": "No updates yet. Write the first one with +.",
|
|
684
|
+
"updates.bugOne": "1 bug",
|
|
685
|
+
"updates.bugMany": "{n} bugs",
|
|
686
|
+
"updates.ideaOne": "1 idea",
|
|
687
|
+
"updates.ideaMany": "{n} ideas",
|
|
688
|
+
"updates.fromBoard": "{list} from this board",
|
|
689
|
+
"updates.write": "New update",
|
|
690
|
+
"updates.titleLabel": "Title",
|
|
691
|
+
"updates.titlePlaceholder": "What changed, in a few words",
|
|
692
|
+
"updates.link": "Link on GitHub or GitLab",
|
|
693
|
+
"updates.linkNote": "Only github.com and gitlab.com links: a release, pull request or commit.",
|
|
694
|
+
"updates.textLabel": "What changed",
|
|
695
|
+
"updates.textPlaceholder": "A few lines for the people using {app}",
|
|
696
|
+
"updates.fixes": "What it fixes",
|
|
697
|
+
"updates.fixesNote": "Open and planned bugs and ideas. Ticked ones go to Done, with this version and link.",
|
|
698
|
+
"updates.fixesNone": "No open bugs or ideas on the board.",
|
|
699
|
+
"updates.publish": "Publish update",
|
|
700
|
+
"updates.delete": "Delete update",
|
|
701
|
+
"updates.deleteTitle": "Delete this update?",
|
|
702
|
+
"updates.deleteNote": "It leaves the Updates page. The posts it fixed stay Done.",
|
|
703
|
+
"updates.deleteBtn": "Delete",
|
|
704
|
+
// ---- When ----
|
|
705
|
+
"time.now": "just now",
|
|
706
|
+
"time.min": "{n}m ago",
|
|
707
|
+
"time.hour": "{n}h ago",
|
|
708
|
+
"time.day": "{n}d ago"
|
|
709
|
+
};
|
|
710
|
+
function li(e = {}) {
|
|
711
|
+
return (t, a) => {
|
|
712
|
+
let i = e[t] ?? si[t];
|
|
713
|
+
if (a) for (const [o, r] of Object.entries(a)) i = i.split(`{${o}}`).join(String(r));
|
|
714
|
+
return i;
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
const $e = Object.freeze({ kinds: [], statuses: [], mine: !1, own: [] });
|
|
718
|
+
function di(e) {
|
|
719
|
+
return e.kinds.length + e.statuses.length + (e.mine ? 1 : 0) + e.own.length;
|
|
720
|
+
}
|
|
721
|
+
function Mn(e, t) {
|
|
722
|
+
return !(t.kinds.length && !t.kinds.includes(e.kind) || t.statuses.length && (e.kind === "review" || !t.statuses.includes(e.status)) || t.mine && !e.mine || t.own.length && !t.own.some((a) => a === "waiting" ? Bt(e) : a === "hidden" ? !!e.hidden : !!e.pending));
|
|
723
|
+
}
|
|
724
|
+
function tn(e) {
|
|
725
|
+
return e.toLowerCase().split(/\s+/).filter(Boolean);
|
|
726
|
+
}
|
|
727
|
+
function An(e, t) {
|
|
728
|
+
const a = tn(t);
|
|
729
|
+
if (!a.length) return { in: "text" };
|
|
730
|
+
const i = (d, u) => d.toLowerCase().includes(u);
|
|
731
|
+
if (a.every((d) => i(e.text, d))) return { in: "text" };
|
|
732
|
+
const o = nt(e.thread);
|
|
733
|
+
if (!a.every((d) => i(e.text, d) || o.some((u) => i(u.text, d)))) return null;
|
|
734
|
+
const r = (d) => a.filter((u) => i(d.text, u)).length;
|
|
735
|
+
return { in: "thread", message: o.reduce((d, u) => r(u) > r(d) ? u : d, o[0]) };
|
|
736
|
+
}
|
|
737
|
+
function ci(e, t, a = 60) {
|
|
738
|
+
if (e.length <= a) return e;
|
|
739
|
+
const i = e.toLowerCase(), o = Math.min(...tn(t).map((d) => i.indexOf(d)).filter((d) => d >= 0), e.length);
|
|
740
|
+
let r = o === e.length ? 0 : Math.max(0, Math.min(o - 8, e.length - a));
|
|
741
|
+
if (r > 0 && e[r - 1] !== " ") {
|
|
742
|
+
const d = e.indexOf(" ", r);
|
|
743
|
+
d >= 0 && d < o && (r = d + 1);
|
|
744
|
+
}
|
|
745
|
+
const l = e.slice(r, r + a).trim();
|
|
746
|
+
return `${r > 0 ? "…" : ""}${l}${r + a < e.length ? "…" : ""}`;
|
|
747
|
+
}
|
|
748
|
+
function pi(e, t) {
|
|
749
|
+
const a = tn(t);
|
|
750
|
+
if (!a.length) return [{ text: e, hit: !1 }];
|
|
751
|
+
const i = e.toLowerCase(), o = new Array(e.length).fill(!1);
|
|
752
|
+
for (const l of a)
|
|
753
|
+
for (let d = i.indexOf(l); d >= 0; d = i.indexOf(l, d + 1)) o.fill(!0, d, d + l.length);
|
|
754
|
+
const r = [];
|
|
755
|
+
for (let l = 0; l < e.length; l++) {
|
|
756
|
+
const d = r[r.length - 1];
|
|
757
|
+
d && d.hit === o[l] ? d.text += e[l] : r.push({ text: e[l], hit: o[l] });
|
|
758
|
+
}
|
|
759
|
+
return r;
|
|
760
|
+
}
|
|
761
|
+
function ui(e) {
|
|
762
|
+
return {
|
|
763
|
+
project: e.project,
|
|
764
|
+
posts: e.posts.filter((t) => !t.hidden).map(({ who: t, shot: a, shotFor: i, context: o, hidden: r, thread: l, ...d }) => {
|
|
765
|
+
const u = nt(l);
|
|
766
|
+
return { ...d, ...u.length ? { thread: u } : {}, mine: !1, voted: !1 };
|
|
767
|
+
}),
|
|
768
|
+
// The Updates page is public to begin with, so it comes along.
|
|
769
|
+
...e.updates ? { updates: e.updates } : {}
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
const Rt = 6e4, Ht = 60 * Rt, Ut = 24 * Ht, bi = 7 * Ut, zn = /* @__PURE__ */ new Map();
|
|
773
|
+
function Qn(e, t, a = Date.now()) {
|
|
774
|
+
const i = Math.max(0, a - e);
|
|
775
|
+
if (i >= bi) {
|
|
776
|
+
let o = zn.get(t);
|
|
777
|
+
return o || (o = new Intl.DateTimeFormat(t, { day: "numeric", month: "short" }), zn.set(t, o)), { date: o.format(new Date(e)).replace(".", "") };
|
|
778
|
+
}
|
|
779
|
+
return i < Rt ? { key: "time.now", vars: { n: "0" } } : i < Ht ? { key: "time.min", vars: { n: String(Math.floor(i / Rt)) } } : i < Ut ? { key: "time.hour", vars: { n: String(Math.floor(i / Ht)) } } : { key: "time.day", vars: { n: String(Math.floor(i / Ut)) } };
|
|
780
|
+
}
|
|
781
|
+
const J = (e, t, a = !1) => /* @__PURE__ */ n(
|
|
782
|
+
"svg",
|
|
783
|
+
{
|
|
784
|
+
width: e,
|
|
785
|
+
height: e,
|
|
786
|
+
viewBox: "0 0 24 24",
|
|
787
|
+
fill: a ? "currentColor" : "none",
|
|
788
|
+
stroke: a ? "none" : "currentColor",
|
|
789
|
+
"stroke-width": "2.25",
|
|
790
|
+
"stroke-linecap": "round",
|
|
791
|
+
"stroke-linejoin": "round",
|
|
792
|
+
"aria-hidden": "true",
|
|
793
|
+
children: t
|
|
794
|
+
}
|
|
795
|
+
), Ue = ({ size: e = 22 }) => J(e, /* @__PURE__ */ n("path", { d: "M15 5l-7 7 7 7" })), Ce = ({ size: e = 22 }) => J(e, /* @__PURE__ */ n("path", { d: "M6 6l12 12M18 6L6 18" })), ea = ({ size: e = 20 }) => J(e, /* @__PURE__ */ n("path", { d: "M12 5v14M5 12h14" })), nn = ({ size: e = 18 }) => J(e, /* @__PURE__ */ n("path", { d: "M4 7h16M9 7V4.5h6V7M6.5 7l1 12.5h9l1-12.5M10 11v5M14 11v5" })), an = ({ size: e = 14 }) => J(e, /* @__PURE__ */ n("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), hi = ({ size: e = 24 }) => J(
|
|
796
|
+
e,
|
|
797
|
+
/* @__PURE__ */ n("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" }),
|
|
798
|
+
!0
|
|
799
|
+
), xt = (e, t, a) => /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: t, fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: a }) }), fi = ({ size: e = 10 }) => xt(
|
|
800
|
+
e,
|
|
801
|
+
"32 24 28 28",
|
|
802
|
+
"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"
|
|
803
|
+
), _i = ({ size: e = 10 }) => xt(
|
|
804
|
+
e,
|
|
805
|
+
"32 24 27.18 27.18",
|
|
806
|
+
"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"
|
|
807
|
+
), gi = ({ size: e = 10 }) => xt(
|
|
808
|
+
e,
|
|
809
|
+
"32 24 27.188 27.188",
|
|
810
|
+
"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"
|
|
811
|
+
), jt = ({ size: e = 16, filled: t = !1 }) => J(e, /* @__PURE__ */ n("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" }), t), vi = ({ size: e = 22 }) => J(e, /* @__PURE__ */ n("path", { d: "M3 11l18-5v12L3 14v-3zM11.6 16.8a3 3 0 1 1-5.8-1.6" })), ta = ({ size: e = 12 }) => J(e, /* @__PURE__ */ n("path", { d: "M7 17L17 7M7 7h10v10" })), xi = ({ size: e = 16 }) => J(e, /* @__PURE__ */ n("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" })), mi = ({ size: e = 14 }) => /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ n("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" }) }), wi = ({ size: e = 14 }) => /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ n("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" }) }), ki = ({ size: e = 16 }) => J(e, /* @__PURE__ */ n("path", { d: "M17.5 11a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0zM16 16l4 4" })), yi = ({ size: e = 16 }) => J(e, /* @__PURE__ */ n("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" })), On = ({ size: e = 16 }) => J(e, /* @__PURE__ */ n("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" })), na = ({ size: e = 20 }) => J(e, /* @__PURE__ */ n("path", { d: "M4 5.5h16v13H4zM4 15.5l4.5-4.5 4 4 2.5-2.5 5 5M15.5 9.5h.01" })), aa = (e, t, a, i) => /* @__PURE__ */ n(
|
|
812
|
+
"svg",
|
|
813
|
+
{
|
|
814
|
+
width: e,
|
|
815
|
+
height: e,
|
|
816
|
+
viewBox: t,
|
|
817
|
+
fill: "none",
|
|
818
|
+
stroke: "currentColor",
|
|
819
|
+
"stroke-width": i,
|
|
820
|
+
"stroke-linecap": "round",
|
|
821
|
+
"stroke-linejoin": "round",
|
|
822
|
+
"aria-hidden": "true",
|
|
823
|
+
children: /* @__PURE__ */ n("path", { d: a })
|
|
824
|
+
}
|
|
825
|
+
), Ci = ({ size: e = 10 }) => xt(
|
|
826
|
+
e,
|
|
827
|
+
"0 0 10 10",
|
|
828
|
+
"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"
|
|
829
|
+
), mt = ({ size: e = 12 }) => aa(e, "-0.2 -1.8 12 12", "M0.803574 4.3749L4.01786 7.58918L10.8036 0.803467", 1.607), Li = ({ size: e = 12 }) => aa(e, "-1.7125 -1.7125 12 12", "M0.787506 0.787598L7.78751 7.7876M7.78751 0.787598L0.787506 7.7876", 1.575), ue = {
|
|
830
|
+
bug: {
|
|
831
|
+
icon: (e) => /* @__PURE__ */ n(fi, { size: e }),
|
|
832
|
+
label: "board.kindBug",
|
|
833
|
+
plural: "board.bugs",
|
|
834
|
+
tile: "board.tileBug",
|
|
835
|
+
note: "board.tileBugNote"
|
|
836
|
+
},
|
|
837
|
+
idea: {
|
|
838
|
+
icon: (e) => /* @__PURE__ */ n(_i, { size: e }),
|
|
839
|
+
label: "board.kindIdea",
|
|
840
|
+
plural: "board.ideas",
|
|
841
|
+
tile: "board.tileIdea",
|
|
842
|
+
note: "board.tileIdeaNote"
|
|
843
|
+
},
|
|
844
|
+
review: {
|
|
845
|
+
icon: (e) => /* @__PURE__ */ n(gi, { size: e }),
|
|
846
|
+
label: "board.kindReview",
|
|
847
|
+
plural: "board.reviews",
|
|
848
|
+
tile: "board.tileReview",
|
|
849
|
+
note: "board.tileReviewNote"
|
|
850
|
+
}
|
|
851
|
+
};
|
|
852
|
+
function ia({ n: e, t, size: a = 16 }) {
|
|
853
|
+
const i = Math.round(e * 2) / 2;
|
|
854
|
+
return /* @__PURE__ */ n("span", { class: "stars", role: "img", "aria-label": t("board.stars", { n: i }), children: [1, 2, 3, 4, 5].map((o) => {
|
|
855
|
+
const r = Math.max(0, Math.min(1, i - (o - 1)));
|
|
856
|
+
return /* @__PURE__ */ n("span", { class: "stars__one", children: [
|
|
857
|
+
/* @__PURE__ */ n(jt, { size: a, filled: !0 }),
|
|
858
|
+
r > 0 && /* @__PURE__ */ n("span", { class: "stars__fill", style: { width: `${r * 100}%` }, children: /* @__PURE__ */ n(jt, { size: a, filled: !0 }) })
|
|
859
|
+
] }, o);
|
|
860
|
+
}) });
|
|
861
|
+
}
|
|
862
|
+
const Si = {
|
|
863
|
+
planned: { icon: () => /* @__PURE__ */ n(Ci, {}), label: "board.statusPlanned" },
|
|
864
|
+
done: { icon: () => /* @__PURE__ */ n(mt, {}), label: "board.statusDone" },
|
|
865
|
+
declined: { icon: () => /* @__PURE__ */ n(Li, {}), label: "board.statusDeclined" }
|
|
866
|
+
};
|
|
867
|
+
function wt(e) {
|
|
868
|
+
const t = new Set(e.filter((a) => a !== "review"));
|
|
869
|
+
return t.size === 1 && t.has("bug") ? "board.statusFixed" : t.size === 1 && t.has("idea") ? "board.statusDone" : "board.statusFixedOrDone";
|
|
870
|
+
}
|
|
871
|
+
function rn(e, t) {
|
|
872
|
+
return e.status === "done" ? wt([e.kind]) : t;
|
|
873
|
+
}
|
|
874
|
+
function et({ tone: e, icon: t, label: a }) {
|
|
875
|
+
return /* @__PURE__ */ n("span", { class: "badge", children: [
|
|
876
|
+
/* @__PURE__ */ n("span", { class: `badge__dot badge__dot--${e}`, children: t() }),
|
|
877
|
+
a
|
|
878
|
+
] });
|
|
879
|
+
}
|
|
880
|
+
function ra({ site: e, size: t = 14 }) {
|
|
881
|
+
return e === "GitLab" ? /* @__PURE__ */ n(mi, { size: t }) : /* @__PURE__ */ n(wi, { size: t });
|
|
882
|
+
}
|
|
883
|
+
function oa({ href: e, t, label: a = "fix.view" }) {
|
|
884
|
+
const i = je(e), o = Dn(e);
|
|
885
|
+
return !i || !o ? null : /* @__PURE__ */ n(
|
|
886
|
+
"a",
|
|
887
|
+
{
|
|
888
|
+
class: "code-link",
|
|
889
|
+
href: i,
|
|
890
|
+
target: "_blank",
|
|
891
|
+
rel: "noopener noreferrer",
|
|
892
|
+
onClick: (r) => r.stopPropagation(),
|
|
893
|
+
children: [
|
|
894
|
+
/* @__PURE__ */ n(ra, { site: o }),
|
|
895
|
+
/* @__PURE__ */ n("span", { children: t(a, { site: o }) }),
|
|
896
|
+
/* @__PURE__ */ n(ta, { size: 12 })
|
|
897
|
+
]
|
|
898
|
+
}
|
|
899
|
+
);
|
|
900
|
+
}
|
|
901
|
+
function Ti({ post: e, t }) {
|
|
902
|
+
const a = e.status === "done" ? e.fix : void 0;
|
|
903
|
+
return !a || !a.version && !a.link ? null : /* @__PURE__ */ n("div", { class: "fix", children: [
|
|
904
|
+
a.version && /* @__PURE__ */ n("span", { class: "fix__version", children: t(e.kind === "idea" ? "fix.inIdea" : "fix.in", { version: a.version }) }),
|
|
905
|
+
a.version && a.link && /* @__PURE__ */ n("span", { class: "fix__dot", "aria-hidden": "true", children: "·" }),
|
|
906
|
+
a.link && /* @__PURE__ */ n(oa, { href: a.link, t })
|
|
907
|
+
] });
|
|
908
|
+
}
|
|
909
|
+
function Mi({
|
|
910
|
+
votes: e,
|
|
911
|
+
voted: t,
|
|
912
|
+
onVote: a,
|
|
913
|
+
t: i,
|
|
914
|
+
label: o = "board.upvote"
|
|
915
|
+
}) {
|
|
916
|
+
return /* @__PURE__ */ n(
|
|
917
|
+
"button",
|
|
918
|
+
{
|
|
919
|
+
type: "button",
|
|
920
|
+
class: "vote",
|
|
921
|
+
"aria-label": i(o),
|
|
922
|
+
"aria-pressed": t,
|
|
923
|
+
onClick: (r) => {
|
|
924
|
+
r.stopPropagation(), a(!t);
|
|
925
|
+
},
|
|
926
|
+
children: [
|
|
927
|
+
/* @__PURE__ */ n(an, {}),
|
|
928
|
+
/* @__PURE__ */ n("span", { children: e })
|
|
929
|
+
]
|
|
930
|
+
}
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
function on({
|
|
934
|
+
post: e,
|
|
935
|
+
t,
|
|
936
|
+
locale: a,
|
|
937
|
+
onVote: i,
|
|
938
|
+
onDelete: o,
|
|
939
|
+
onManage: r,
|
|
940
|
+
onTalk: l,
|
|
941
|
+
shotUrl: d,
|
|
942
|
+
onShot: u,
|
|
943
|
+
fresh: p,
|
|
944
|
+
query: h = "",
|
|
945
|
+
found: x,
|
|
946
|
+
bare: c
|
|
947
|
+
}) {
|
|
948
|
+
const [b, v] = w(!1), L = ue[e.kind], _ = Si[e.status], y = Qn(e.at, a), g = nt(e.thread).length;
|
|
949
|
+
return /* @__PURE__ */ n(
|
|
950
|
+
"li",
|
|
951
|
+
{
|
|
952
|
+
class: `card${r ? " card--owner" : ""}${e.hidden || e.pending ? " card--hidden" : ""}`,
|
|
953
|
+
onClick: r,
|
|
954
|
+
role: r ? "button" : void 0,
|
|
955
|
+
tabIndex: r ? 0 : void 0,
|
|
956
|
+
"aria-label": r ? t("board.manage") : void 0,
|
|
957
|
+
onKeyDown: r ? (k) => {
|
|
958
|
+
k.target === k.currentTarget && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), r());
|
|
959
|
+
} : void 0,
|
|
960
|
+
children: [
|
|
961
|
+
/* @__PURE__ */ n("div", { class: "card__head", children: [
|
|
962
|
+
/* @__PURE__ */ n(et, { tone: e.kind, icon: L.icon, label: t(L.label) }),
|
|
963
|
+
_ && /* @__PURE__ */ n(et, { tone: e.status, icon: _.icon, label: t(rn(e, _.label)) }),
|
|
964
|
+
e.rating !== void 0 && /* @__PURE__ */ n(ia, { n: e.rating, t }),
|
|
965
|
+
e.shot && !d && /* @__PURE__ */ n("span", { class: "card__shot", title: t("board.shot"), "aria-label": t("board.shot"), children: /* @__PURE__ */ n(na, { size: 16 }) }),
|
|
966
|
+
e.hidden && /* @__PURE__ */ n("span", { class: "card__off", children: t("board.hidden") }),
|
|
967
|
+
e.pending && /* @__PURE__ */ n("span", { class: "card__wait", children: t("board.waiting") }),
|
|
968
|
+
p && /* @__PURE__ */ n("span", { class: "card__new", children: t("owner.newAnswer") }),
|
|
969
|
+
/* @__PURE__ */ n("span", { class: "card__when", children: "date" in y ? y.date : t(y.key, y.vars) })
|
|
970
|
+
] }),
|
|
971
|
+
/* @__PURE__ */ n("p", { class: "card__text", children: /* @__PURE__ */ n($n, { text: e.text, query: h }) }),
|
|
972
|
+
x && /* @__PURE__ */ n("p", { class: "card__found", children: [
|
|
973
|
+
t("search.inThread"),
|
|
974
|
+
" “",
|
|
975
|
+
/* @__PURE__ */ n($n, { text: ci(x.text, h), query: h }),
|
|
976
|
+
"”"
|
|
977
|
+
] }),
|
|
978
|
+
d && !b && !c && /* @__PURE__ */ n(
|
|
979
|
+
"button",
|
|
980
|
+
{
|
|
981
|
+
type: "button",
|
|
982
|
+
class: "card__pic",
|
|
983
|
+
"aria-label": t("board.shotOpen"),
|
|
984
|
+
onClick: (k) => {
|
|
985
|
+
k.stopPropagation(), u?.();
|
|
986
|
+
},
|
|
987
|
+
children: /* @__PURE__ */ n("img", { src: d, alt: t("board.shot"), loading: "lazy", onError: () => v(!0) })
|
|
988
|
+
}
|
|
989
|
+
),
|
|
990
|
+
/* @__PURE__ */ n(Ti, { post: e, t }),
|
|
991
|
+
!c && /* @__PURE__ */ n("div", { class: "card__foot", children: [
|
|
992
|
+
/* @__PURE__ */ n("span", { class: "card__who", children: e.mine ? t("board.byYou") : e.who ?? t("board.anon") }),
|
|
993
|
+
o && /* @__PURE__ */ n(
|
|
994
|
+
"button",
|
|
995
|
+
{
|
|
996
|
+
type: "button",
|
|
997
|
+
class: "icon-btn card__bin",
|
|
998
|
+
"aria-label": t("board.delete"),
|
|
999
|
+
onClick: (k) => {
|
|
1000
|
+
k.stopPropagation(), o();
|
|
1001
|
+
},
|
|
1002
|
+
children: /* @__PURE__ */ n(nn, {})
|
|
1003
|
+
}
|
|
1004
|
+
),
|
|
1005
|
+
g > 0 && (l ? /* @__PURE__ */ n(
|
|
1006
|
+
"button",
|
|
1007
|
+
{
|
|
1008
|
+
type: "button",
|
|
1009
|
+
class: "card__talk",
|
|
1010
|
+
"aria-label": `${t("talk.open")}: ${t("talk.count", { n: g })}`,
|
|
1011
|
+
onClick: (k) => {
|
|
1012
|
+
k.stopPropagation(), l();
|
|
1013
|
+
},
|
|
1014
|
+
children: [
|
|
1015
|
+
/* @__PURE__ */ n(On, {}),
|
|
1016
|
+
/* @__PURE__ */ n("span", { children: g })
|
|
1017
|
+
]
|
|
1018
|
+
}
|
|
1019
|
+
) : /* @__PURE__ */ n("span", { class: "card__talk", role: "img", "aria-label": t("talk.count", { n: g }), children: [
|
|
1020
|
+
/* @__PURE__ */ n(On, {}),
|
|
1021
|
+
/* @__PURE__ */ n("span", { children: g })
|
|
1022
|
+
] })),
|
|
1023
|
+
i ? /* @__PURE__ */ n(
|
|
1024
|
+
Mi,
|
|
1025
|
+
{
|
|
1026
|
+
votes: e.votes,
|
|
1027
|
+
voted: e.voted,
|
|
1028
|
+
onVote: i,
|
|
1029
|
+
t,
|
|
1030
|
+
label: e.kind === "review" ? "board.helpful" : "board.upvote"
|
|
1031
|
+
}
|
|
1032
|
+
) : /* @__PURE__ */ n("span", { class: "vote vote--count", role: "img", "aria-label": t("board.votes", { n: e.votes }), children: [
|
|
1033
|
+
/* @__PURE__ */ n(an, {}),
|
|
1034
|
+
/* @__PURE__ */ n("span", { children: e.votes })
|
|
1035
|
+
] })
|
|
1036
|
+
] })
|
|
1037
|
+
]
|
|
1038
|
+
}
|
|
1039
|
+
);
|
|
1040
|
+
}
|
|
1041
|
+
function $n({ text: e, query: t }) {
|
|
1042
|
+
return t.trim() ? /* @__PURE__ */ n(I, { children: pi(e, t).map((a, i) => a.hit ? /* @__PURE__ */ n("mark", { children: a.text }, i) : a.text) }) : /* @__PURE__ */ n(I, { children: e });
|
|
1043
|
+
}
|
|
1044
|
+
function Ai({
|
|
1045
|
+
t: e,
|
|
1046
|
+
kinds: t,
|
|
1047
|
+
appName: a,
|
|
1048
|
+
reviewed: i,
|
|
1049
|
+
onPick: o,
|
|
1050
|
+
onBoard: r
|
|
1051
|
+
}) {
|
|
1052
|
+
return /* @__PURE__ */ n("div", { class: "choose", children: [
|
|
1053
|
+
/* @__PURE__ */ n("h3", { class: "choose__title", children: e("board.chooseTitle") }),
|
|
1054
|
+
/* @__PURE__ */ n("div", { class: `tiles${t.length % 2 ? " tiles--odd" : ""}`, children: t.map((l) => {
|
|
1055
|
+
const d = l === "review" && i;
|
|
1056
|
+
return /* @__PURE__ */ n("button", { type: "button", class: `tile tile--${l}`, disabled: d, onClick: () => o(l), children: [
|
|
1057
|
+
/* @__PURE__ */ n("span", { class: "tile__icon", children: ue[l].icon(28) }),
|
|
1058
|
+
/* @__PURE__ */ n("span", { class: "tile__label", children: e(ue[l].tile) }),
|
|
1059
|
+
/* @__PURE__ */ n("span", { class: "tile__note", children: d ? e("board.tileReviewDone", { app: a }) : e(ue[l].note, { app: a }) })
|
|
1060
|
+
] }, l);
|
|
1061
|
+
}) }),
|
|
1062
|
+
r && /* @__PURE__ */ n("div", { class: "choose__board", children: /* @__PURE__ */ n("button", { type: "button", class: "text-btn", onClick: r, children: e("board.seeBoard") }) })
|
|
1063
|
+
] });
|
|
1064
|
+
}
|
|
1065
|
+
function zi({
|
|
1066
|
+
t: e,
|
|
1067
|
+
onBack: t,
|
|
1068
|
+
waiting: a,
|
|
1069
|
+
appName: i
|
|
1070
|
+
}) {
|
|
1071
|
+
return /* @__PURE__ */ n("div", { class: "sent", role: "status", children: [
|
|
1072
|
+
/* @__PURE__ */ n("span", { class: "sent__check", children: /* @__PURE__ */ n(mt, { size: 44 }) }),
|
|
1073
|
+
/* @__PURE__ */ n("h3", { class: "sent__title", children: e("board.sent") }),
|
|
1074
|
+
/* @__PURE__ */ n("p", { class: "sent__note", children: a ? e("board.sentWaiting", { app: i ?? "" }) : e("board.sentNote") }),
|
|
1075
|
+
/* @__PURE__ */ n("button", { type: "button", class: "text-btn sent__back", onClick: t, children: e("board.sentBack") })
|
|
1076
|
+
] });
|
|
1077
|
+
}
|
|
1078
|
+
function Oi({
|
|
1079
|
+
t: e,
|
|
1080
|
+
kind: t,
|
|
1081
|
+
posts: a,
|
|
1082
|
+
likeThis: i,
|
|
1083
|
+
left: o,
|
|
1084
|
+
perDay: r,
|
|
1085
|
+
textMax: l,
|
|
1086
|
+
name: d,
|
|
1087
|
+
appName: u,
|
|
1088
|
+
screenshots: p,
|
|
1089
|
+
names: h = !0,
|
|
1090
|
+
onMeToo: x,
|
|
1091
|
+
onSend: c
|
|
1092
|
+
}) {
|
|
1093
|
+
const b = t === "review", [v, L] = w(""), [_, y] = w(0), [g, k] = w(null), [O, A] = w(!1), F = p === "board", [C, D] = w(!1), [E, R] = w(!1), [V, $] = w(d), [le, H] = w(!1), [G, be] = w(null), xe = Qe(null), Te = se(() => a.filter((S) => S.kind !== "review"), [a]), me = se(() => b ? [] : i(Te, v), [b, Te, v, i]), ae = v.trim(), M = o !== null && o <= 0, Q = E && !V.trim(), de = !!g && F && !O;
|
|
1094
|
+
ne(() => () => void (g && URL.revokeObjectURL(g.preview)), [g]);
|
|
1095
|
+
const K = async (S) => {
|
|
1096
|
+
if (!S) return;
|
|
1097
|
+
D(!0), be(null);
|
|
1098
|
+
const he = await Pi(S);
|
|
1099
|
+
D(!1), he ? (k(he), A(!1)) : be({ key: "board.shotFailed" });
|
|
1100
|
+
}, we = async () => {
|
|
1101
|
+
H(!0), be(null);
|
|
1102
|
+
const S = await c({
|
|
1103
|
+
kind: t,
|
|
1104
|
+
text: ae,
|
|
1105
|
+
anon: !E,
|
|
1106
|
+
name: V.trim(),
|
|
1107
|
+
...b ? { rating: _ } : {},
|
|
1108
|
+
...g ? { shot: { ...g, board: F && O } } : {}
|
|
1109
|
+
});
|
|
1110
|
+
S && (be(S.key ? { key: S.key, vars: S.vars } : null), H(!1));
|
|
1111
|
+
};
|
|
1112
|
+
return /* @__PURE__ */ n("div", { class: "compose", children: [
|
|
1113
|
+
/* @__PURE__ */ n("span", { class: `compose__kind compose__kind--${t}`, children: [
|
|
1114
|
+
/* @__PURE__ */ n("span", { class: `badge__dot badge__dot--${t}`, children: ue[t].icon() }),
|
|
1115
|
+
e(ue[t].tile)
|
|
1116
|
+
] }),
|
|
1117
|
+
b && /* @__PURE__ */ n(I, { children: [
|
|
1118
|
+
/* @__PURE__ */ n("span", { class: "label", children: e("board.yourRating") }),
|
|
1119
|
+
/* @__PURE__ */ n("div", { class: "rate", role: "radiogroup", "aria-label": e("board.yourRating"), children: [1, 2, 3, 4, 5].map((S) => /* @__PURE__ */ n(
|
|
1120
|
+
"button",
|
|
1121
|
+
{
|
|
1122
|
+
type: "button",
|
|
1123
|
+
role: "radio",
|
|
1124
|
+
class: `rate__star${S <= _ ? " rate__star--on" : ""}`,
|
|
1125
|
+
"aria-checked": _ === S,
|
|
1126
|
+
"aria-label": e("board.stars", { n: S }),
|
|
1127
|
+
onClick: () => y(S),
|
|
1128
|
+
children: /* @__PURE__ */ n(jt, { size: 36, filled: S <= _ })
|
|
1129
|
+
},
|
|
1130
|
+
S
|
|
1131
|
+
)) })
|
|
1132
|
+
] }),
|
|
1133
|
+
/* @__PURE__ */ n("p", { class: "public", children: e("board.public", { app: u }) }),
|
|
1134
|
+
/* @__PURE__ */ n(
|
|
1135
|
+
"textarea",
|
|
1136
|
+
{
|
|
1137
|
+
class: "field",
|
|
1138
|
+
value: v,
|
|
1139
|
+
maxLength: l,
|
|
1140
|
+
placeholder: e(Nn[t], { app: u }),
|
|
1141
|
+
"aria-label": e(Nn[t], { app: u }),
|
|
1142
|
+
onInput: (S) => {
|
|
1143
|
+
L(S.target.value), be(null);
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
),
|
|
1147
|
+
/* @__PURE__ */ n("span", { class: "count", children: l - v.length }),
|
|
1148
|
+
me.length > 0 && /* @__PURE__ */ n("div", { class: "alike", children: [
|
|
1149
|
+
/* @__PURE__ */ n("span", { class: "label", children: [
|
|
1150
|
+
e("board.likeThis"),
|
|
1151
|
+
" ",
|
|
1152
|
+
e("board.likeThisNote")
|
|
1153
|
+
] }),
|
|
1154
|
+
/* @__PURE__ */ n("ul", { class: "alike__list", children: me.map((S) => /* @__PURE__ */ n("li", { class: "alike__row", children: [
|
|
1155
|
+
/* @__PURE__ */ n("span", { class: "alike__body", children: [
|
|
1156
|
+
/* @__PURE__ */ n("span", { class: "alike__text", children: S.text }),
|
|
1157
|
+
/* @__PURE__ */ n("span", { class: "alike__meta", children: [
|
|
1158
|
+
e(ue[S.kind].label),
|
|
1159
|
+
...S.status !== "open" ? [e(rn(S, $i[S.status]))] : [],
|
|
1160
|
+
S.votes === 1 ? e("board.voteOne") : e("board.votes", { n: S.votes })
|
|
1161
|
+
].join(" · ") })
|
|
1162
|
+
] }),
|
|
1163
|
+
/* @__PURE__ */ n(
|
|
1164
|
+
"button",
|
|
1165
|
+
{
|
|
1166
|
+
type: "button",
|
|
1167
|
+
class: "me-too",
|
|
1168
|
+
"aria-pressed": S.voted,
|
|
1169
|
+
disabled: S.voted,
|
|
1170
|
+
onClick: () => x(S.id),
|
|
1171
|
+
children: [
|
|
1172
|
+
/* @__PURE__ */ n(an, {}),
|
|
1173
|
+
e(S.voted ? "board.voted" : "board.meToo")
|
|
1174
|
+
]
|
|
1175
|
+
}
|
|
1176
|
+
)
|
|
1177
|
+
] }, S.id)) })
|
|
1178
|
+
] }),
|
|
1179
|
+
p !== "off" && Ha(t) && /* @__PURE__ */ n("div", { class: "shot", children: [
|
|
1180
|
+
g ? /* @__PURE__ */ n("div", { class: "shot__preview", children: [
|
|
1181
|
+
/* @__PURE__ */ n("img", { src: g.preview, alt: e("board.shot") }),
|
|
1182
|
+
/* @__PURE__ */ n(
|
|
1183
|
+
"button",
|
|
1184
|
+
{
|
|
1185
|
+
type: "button",
|
|
1186
|
+
class: "icon-btn shot__remove",
|
|
1187
|
+
"aria-label": e("board.shotRemove"),
|
|
1188
|
+
onClick: () => k(null),
|
|
1189
|
+
children: /* @__PURE__ */ n(nn, {})
|
|
1190
|
+
}
|
|
1191
|
+
)
|
|
1192
|
+
] }) : /* @__PURE__ */ n(
|
|
1193
|
+
"button",
|
|
1194
|
+
{
|
|
1195
|
+
type: "button",
|
|
1196
|
+
class: "shot__add",
|
|
1197
|
+
"aria-busy": C,
|
|
1198
|
+
disabled: C,
|
|
1199
|
+
onClick: () => xe.current?.click(),
|
|
1200
|
+
children: [
|
|
1201
|
+
C ? /* @__PURE__ */ n("span", { class: "spinner" }) : /* @__PURE__ */ n(na, {}),
|
|
1202
|
+
e("board.shotAdd")
|
|
1203
|
+
]
|
|
1204
|
+
}
|
|
1205
|
+
),
|
|
1206
|
+
/* @__PURE__ */ n("p", { class: "note", children: e(F ? "board.shotNoteBoard" : "board.shotNote", { app: u }) }),
|
|
1207
|
+
g && F && /* @__PURE__ */ n("label", { class: "check", children: [
|
|
1208
|
+
/* @__PURE__ */ n(
|
|
1209
|
+
"input",
|
|
1210
|
+
{
|
|
1211
|
+
type: "checkbox",
|
|
1212
|
+
checked: O,
|
|
1213
|
+
onChange: (S) => A(S.target.checked)
|
|
1214
|
+
}
|
|
1215
|
+
),
|
|
1216
|
+
/* @__PURE__ */ n("span", { children: e("board.shotAgree") })
|
|
1217
|
+
] }),
|
|
1218
|
+
/* @__PURE__ */ n(
|
|
1219
|
+
"input",
|
|
1220
|
+
{
|
|
1221
|
+
ref: xe,
|
|
1222
|
+
type: "file",
|
|
1223
|
+
accept: "image/*",
|
|
1224
|
+
hidden: !0,
|
|
1225
|
+
onChange: (S) => {
|
|
1226
|
+
const he = S.target;
|
|
1227
|
+
K(he.files?.[0]), he.value = "";
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
)
|
|
1231
|
+
] }),
|
|
1232
|
+
h && /* @__PURE__ */ n("div", { class: "switch-row", children: [
|
|
1233
|
+
/* @__PURE__ */ n("span", { class: "switch-row__label", id: "pnb-show-name", children: e("board.showName") }),
|
|
1234
|
+
/* @__PURE__ */ n(
|
|
1235
|
+
"button",
|
|
1236
|
+
{
|
|
1237
|
+
type: "button",
|
|
1238
|
+
role: "switch",
|
|
1239
|
+
class: "switch",
|
|
1240
|
+
"aria-checked": E,
|
|
1241
|
+
"aria-labelledby": "pnb-show-name",
|
|
1242
|
+
onClick: () => R(!E)
|
|
1243
|
+
}
|
|
1244
|
+
)
|
|
1245
|
+
] }),
|
|
1246
|
+
h && E && /* @__PURE__ */ n(
|
|
1247
|
+
"input",
|
|
1248
|
+
{
|
|
1249
|
+
class: "input",
|
|
1250
|
+
value: V,
|
|
1251
|
+
maxLength: Da,
|
|
1252
|
+
placeholder: e("board.namePlaceholder"),
|
|
1253
|
+
"aria-label": e("board.namePlaceholder"),
|
|
1254
|
+
onInput: (S) => $(S.target.value)
|
|
1255
|
+
}
|
|
1256
|
+
),
|
|
1257
|
+
/* @__PURE__ */ n("p", { class: "note", children: e("board.anonNote") }),
|
|
1258
|
+
/* @__PURE__ */ n("div", { class: "send", children: [
|
|
1259
|
+
/* @__PURE__ */ n(
|
|
1260
|
+
"button",
|
|
1261
|
+
{
|
|
1262
|
+
type: "button",
|
|
1263
|
+
class: "btn",
|
|
1264
|
+
disabled: !ae || M || le || C || Q || de || b && !_,
|
|
1265
|
+
"aria-busy": le,
|
|
1266
|
+
onClick: () => void we(),
|
|
1267
|
+
children: le ? /* @__PURE__ */ n("span", { class: "spinner" }) : e("board.send")
|
|
1268
|
+
}
|
|
1269
|
+
),
|
|
1270
|
+
/* @__PURE__ */ n("span", { class: `left${G ? " left--bad" : ""}`, role: "status", children: G ? e(G.key, G.vars) : o === null ? "" : M ? e("board.noneLeft", { max: r }) : e("board.left", { n: o, max: r }) })
|
|
1271
|
+
] })
|
|
1272
|
+
] });
|
|
1273
|
+
}
|
|
1274
|
+
const $i = {
|
|
1275
|
+
open: "board.statusOpen",
|
|
1276
|
+
planned: "board.statusPlanned",
|
|
1277
|
+
done: "board.statusDone",
|
|
1278
|
+
declined: "board.statusDeclined"
|
|
1279
|
+
}, Nn = {
|
|
1280
|
+
bug: "board.placeholder",
|
|
1281
|
+
idea: "board.placeholderIdea",
|
|
1282
|
+
review: "board.placeholderReview"
|
|
1283
|
+
}, Ni = 1600;
|
|
1284
|
+
async function Pi(e) {
|
|
1285
|
+
const t = URL.createObjectURL(e);
|
|
1286
|
+
try {
|
|
1287
|
+
const a = new Image();
|
|
1288
|
+
a.src = t, await a.decode();
|
|
1289
|
+
for (const [i, o] of [
|
|
1290
|
+
[Ni, 0.82],
|
|
1291
|
+
[1200, 0.7],
|
|
1292
|
+
[900, 0.6]
|
|
1293
|
+
]) {
|
|
1294
|
+
const r = Math.min(1, i / Math.max(a.naturalWidth, a.naturalHeight)), l = document.createElement("canvas");
|
|
1295
|
+
l.width = Math.max(1, Math.round(a.naturalWidth * r)), l.height = Math.max(1, Math.round(a.naturalHeight * r));
|
|
1296
|
+
const d = l.getContext("2d");
|
|
1297
|
+
if (!d) return null;
|
|
1298
|
+
d.fillStyle = "#ffffff", d.fillRect(0, 0, l.width, l.height), d.drawImage(a, 0, 0, l.width, l.height);
|
|
1299
|
+
const u = await new Promise((p) => l.toBlob(p, "image/jpeg", o));
|
|
1300
|
+
if (!u) return null;
|
|
1301
|
+
if (u.size <= Ra)
|
|
1302
|
+
return { type: "image/jpeg", data: await qi(u), preview: URL.createObjectURL(u) };
|
|
1303
|
+
}
|
|
1304
|
+
return null;
|
|
1305
|
+
} catch {
|
|
1306
|
+
return null;
|
|
1307
|
+
} finally {
|
|
1308
|
+
URL.revokeObjectURL(t);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
function qi(e) {
|
|
1312
|
+
return new Promise((t, a) => {
|
|
1313
|
+
const i = new FileReader();
|
|
1314
|
+
i.onload = () => t(String(i.result).split(",")[1] ?? ""), i.onerror = () => a(i.error), i.readAsDataURL(e);
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
function Fi(e, t, a, i) {
|
|
1318
|
+
return e.from === "app" ? i("board.reply", { app: a }) : t.mine ? i("talk.you") : i("talk.who", { who: t.who ?? i("board.anon") });
|
|
1319
|
+
}
|
|
1320
|
+
function sa({
|
|
1321
|
+
post: e,
|
|
1322
|
+
thread: t,
|
|
1323
|
+
appName: a,
|
|
1324
|
+
t: i,
|
|
1325
|
+
actions: o
|
|
1326
|
+
}) {
|
|
1327
|
+
return /* @__PURE__ */ n("ol", { class: "thread", "aria-label": i("talk.label"), children: t.map((r) => {
|
|
1328
|
+
const l = o?.(r);
|
|
1329
|
+
return /* @__PURE__ */ n("li", { class: `msg msg--${r.from}${r.hidden ? " msg--hidden" : ""}`, children: [
|
|
1330
|
+
/* @__PURE__ */ n("span", { class: "msg__who", children: [
|
|
1331
|
+
Fi(r, e, a, i),
|
|
1332
|
+
r.edited ? ` · ${i("talk.edited")}` : "",
|
|
1333
|
+
r.hidden ? /* @__PURE__ */ n("span", { class: "card__off", children: [
|
|
1334
|
+
" · ",
|
|
1335
|
+
i("board.hidden")
|
|
1336
|
+
] }) : null
|
|
1337
|
+
] }),
|
|
1338
|
+
/* @__PURE__ */ n("p", { class: "msg__text", children: r.text }),
|
|
1339
|
+
l && /* @__PURE__ */ n("div", { class: "msg__actions", children: l })
|
|
1340
|
+
] }, r.id);
|
|
1341
|
+
}) });
|
|
1342
|
+
}
|
|
1343
|
+
function Pn({
|
|
1344
|
+
t: e,
|
|
1345
|
+
label: t,
|
|
1346
|
+
placeholder: a,
|
|
1347
|
+
max: i,
|
|
1348
|
+
initial: o = "",
|
|
1349
|
+
action: r,
|
|
1350
|
+
onSend: l,
|
|
1351
|
+
onCancel: d
|
|
1352
|
+
}) {
|
|
1353
|
+
const [u, p] = w(o), [h, x] = w(!1), c = u.trim();
|
|
1354
|
+
return /* @__PURE__ */ n("div", { class: "answer", children: [
|
|
1355
|
+
/* @__PURE__ */ n("span", { class: "label", children: t }),
|
|
1356
|
+
/* @__PURE__ */ n(
|
|
1357
|
+
"textarea",
|
|
1358
|
+
{
|
|
1359
|
+
class: "field answer__field",
|
|
1360
|
+
value: u,
|
|
1361
|
+
maxLength: i,
|
|
1362
|
+
placeholder: a,
|
|
1363
|
+
"aria-label": t,
|
|
1364
|
+
onInput: (b) => p(b.target.value)
|
|
1365
|
+
}
|
|
1366
|
+
),
|
|
1367
|
+
/* @__PURE__ */ n("div", { class: "answer__row", children: [
|
|
1368
|
+
/* @__PURE__ */ n("span", { class: "count", children: [
|
|
1369
|
+
u.length,
|
|
1370
|
+
" / ",
|
|
1371
|
+
i
|
|
1372
|
+
] }),
|
|
1373
|
+
d && /* @__PURE__ */ n("button", { type: "button", class: "text-btn answer__cancel", onClick: d, children: e("board.cancel") }),
|
|
1374
|
+
/* @__PURE__ */ n(
|
|
1375
|
+
"button",
|
|
1376
|
+
{
|
|
1377
|
+
type: "button",
|
|
1378
|
+
class: "btn answer__send",
|
|
1379
|
+
disabled: !c || h || c === o.trim(),
|
|
1380
|
+
"aria-busy": h,
|
|
1381
|
+
onClick: async () => {
|
|
1382
|
+
x(!0);
|
|
1383
|
+
const b = await l(c);
|
|
1384
|
+
x(!1), b && p("");
|
|
1385
|
+
},
|
|
1386
|
+
children: h ? /* @__PURE__ */ n("span", { class: "spinner" }) : r
|
|
1387
|
+
}
|
|
1388
|
+
)
|
|
1389
|
+
] })
|
|
1390
|
+
] });
|
|
1391
|
+
}
|
|
1392
|
+
function Bi({
|
|
1393
|
+
post: e,
|
|
1394
|
+
appName: t,
|
|
1395
|
+
t: a,
|
|
1396
|
+
locale: i,
|
|
1397
|
+
replyMax: o,
|
|
1398
|
+
onBack: r,
|
|
1399
|
+
onSay: l,
|
|
1400
|
+
onEdit: d,
|
|
1401
|
+
onUnsay: u
|
|
1402
|
+
}) {
|
|
1403
|
+
const [p, h] = w(null), x = e.thread ?? [], c = Re(x), b = e.mine && c?.from === "author" && !ut(e.status) ? c : void 0, v = ut(e.status) && e.kind !== "review";
|
|
1404
|
+
return /* @__PURE__ */ n(I, { children: [
|
|
1405
|
+
/* @__PURE__ */ n("header", { class: "bar", children: [
|
|
1406
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": a("board.back"), onClick: r, children: /* @__PURE__ */ n(Ue, {}) }),
|
|
1407
|
+
/* @__PURE__ */ n("h2", { class: "bar__title", children: a("talk.title") }),
|
|
1408
|
+
/* @__PURE__ */ n("span", {})
|
|
1409
|
+
] }),
|
|
1410
|
+
/* @__PURE__ */ n("div", { class: "scroll talk", style: { paddingBottom: "24px" }, children: [
|
|
1411
|
+
/* @__PURE__ */ n("ul", { class: "list", children: /* @__PURE__ */ n(on, { post: e, appName: t, t: a, locale: i, bare: !0 }) }),
|
|
1412
|
+
x.length > 0 && /* @__PURE__ */ n(
|
|
1413
|
+
sa,
|
|
1414
|
+
{
|
|
1415
|
+
post: e,
|
|
1416
|
+
thread: x,
|
|
1417
|
+
appName: t,
|
|
1418
|
+
t: a,
|
|
1419
|
+
actions: (L) => L === b && !p ? /* @__PURE__ */ n(I, { children: [
|
|
1420
|
+
/* @__PURE__ */ n("button", { type: "button", class: "link-btn", onClick: () => h(L), children: a("talk.edit") }),
|
|
1421
|
+
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: "·" }),
|
|
1422
|
+
/* @__PURE__ */ n("button", { type: "button", class: "link-btn", onClick: () => void u(L), children: a("talk.remove") })
|
|
1423
|
+
] }) : null
|
|
1424
|
+
}
|
|
1425
|
+
),
|
|
1426
|
+
p ? /* @__PURE__ */ n(
|
|
1427
|
+
Pn,
|
|
1428
|
+
{
|
|
1429
|
+
t: a,
|
|
1430
|
+
label: a("talk.changeLast"),
|
|
1431
|
+
placeholder: a("talk.placeholder"),
|
|
1432
|
+
max: o,
|
|
1433
|
+
initial: p.text,
|
|
1434
|
+
action: a("talk.save"),
|
|
1435
|
+
onSend: async (L) => {
|
|
1436
|
+
const _ = await d(p, L);
|
|
1437
|
+
return _ && h(null), _;
|
|
1438
|
+
},
|
|
1439
|
+
onCancel: () => h(null)
|
|
1440
|
+
},
|
|
1441
|
+
p.id
|
|
1442
|
+
) : e.mine && Ya(e) ? /* @__PURE__ */ n(
|
|
1443
|
+
Pn,
|
|
1444
|
+
{
|
|
1445
|
+
t: a,
|
|
1446
|
+
label: a("talk.answerLabel", { app: t }),
|
|
1447
|
+
placeholder: a("talk.placeholder"),
|
|
1448
|
+
max: o,
|
|
1449
|
+
action: a("talk.send"),
|
|
1450
|
+
onSend: l
|
|
1451
|
+
}
|
|
1452
|
+
) : b ? /* @__PURE__ */ n("p", { class: "note talk__next", children: a("talk.next", { app: t }) }) : v && x.length > 0 ? /* @__PURE__ */ n("p", { class: "note talk__next", children: a(e.status === "done" ? "talk.closedDone" : "talk.closedDeclined", { app: t }) }) : null
|
|
1453
|
+
] })
|
|
1454
|
+
] });
|
|
1455
|
+
}
|
|
1456
|
+
function Ii(e) {
|
|
1457
|
+
const [t, a] = w(e ? "loading" : null);
|
|
1458
|
+
return ne(() => {
|
|
1459
|
+
if (!e) return;
|
|
1460
|
+
let i = null, o = !1;
|
|
1461
|
+
return e().then((r) => {
|
|
1462
|
+
if (!o) {
|
|
1463
|
+
if (!r) return a("failed");
|
|
1464
|
+
i = URL.createObjectURL(r), a(i);
|
|
1465
|
+
}
|
|
1466
|
+
}), () => {
|
|
1467
|
+
o = !0, i && URL.revokeObjectURL(i);
|
|
1468
|
+
};
|
|
1469
|
+
}, []), t;
|
|
1470
|
+
}
|
|
1471
|
+
const Di = [
|
|
1472
|
+
{ status: "open", label: "board.statusOpen" },
|
|
1473
|
+
{ status: "planned", label: "board.statusPlanned" },
|
|
1474
|
+
{ status: "done", label: "board.statusDone" },
|
|
1475
|
+
{ status: "declined", label: "board.statusDeclined" }
|
|
1476
|
+
];
|
|
1477
|
+
function Ei({
|
|
1478
|
+
t: e,
|
|
1479
|
+
post: t,
|
|
1480
|
+
appName: a,
|
|
1481
|
+
locale: i,
|
|
1482
|
+
replyMax: o,
|
|
1483
|
+
loadShot: r,
|
|
1484
|
+
onSave: l,
|
|
1485
|
+
onHideMessage: d,
|
|
1486
|
+
onBack: u
|
|
1487
|
+
}) {
|
|
1488
|
+
const [p, h] = w(t.status), x = t.thread ?? [], c = Re(x), b = t.kind === "review" ? x.find((M) => M.from === "app" && !M.hidden) : c?.from === "app" ? c : void 0, [v, L] = w(t.kind === "review" ? b ?? null : null), [_, y] = w(v?.text ?? ""), g = t.who ?? e("talk.author"), [k, O] = w(!!t.hidden), [A, F] = w(t.shotFor === "off"), [C, D] = w(!1), [E, R] = w(t.fix?.version ?? ""), [V, $] = w(t.fix?.link ?? ""), le = p === "done" && t.kind !== "review", H = Kt(E), G = je(V), be = le && (H === null || G === null), xe = t.shot && (t.shotFor === "board" || t.shotFor === "off"), Te = t.shotFor === "owners" ? "board.shotForOwners" : A ? "board.shotForOff" : "board.shotForBoard", me = t.context ? Object.entries(t.context) : [], ae = Ii(t.shot ? r : null);
|
|
1489
|
+
return /* @__PURE__ */ n(I, { children: [
|
|
1490
|
+
/* @__PURE__ */ n("header", { class: "bar", children: [
|
|
1491
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": e("board.back"), onClick: u, children: /* @__PURE__ */ n(Ue, {}) }),
|
|
1492
|
+
/* @__PURE__ */ n("h2", { class: "bar__title", children: e("board.manage") }),
|
|
1493
|
+
/* @__PURE__ */ n("span", {})
|
|
1494
|
+
] }),
|
|
1495
|
+
/* @__PURE__ */ n("div", { class: "scroll talk manage", style: { paddingBottom: "24px" }, children: [
|
|
1496
|
+
/* @__PURE__ */ n("ul", { class: "list", children: /* @__PURE__ */ n(on, { post: t, appName: a, t: e, locale: i, bare: !0 }) }),
|
|
1497
|
+
t.shot && /* @__PURE__ */ n("figure", { class: "sheet__shot", children: [
|
|
1498
|
+
ae === "loading" ? /* @__PURE__ */ n("span", { class: "spinner" }) : ae === "failed" ? /* @__PURE__ */ n("figcaption", { children: e("board.shotGone") }) : ae && /* @__PURE__ */ n("a", { href: ae, target: "_blank", rel: "noopener", children: /* @__PURE__ */ n("img", { src: ae, alt: e("board.shot") }) }),
|
|
1499
|
+
ae !== "failed" && /* @__PURE__ */ n("figcaption", { children: [
|
|
1500
|
+
e(Te),
|
|
1501
|
+
" ",
|
|
1502
|
+
e("board.shotGoes")
|
|
1503
|
+
] }),
|
|
1504
|
+
xe && /* @__PURE__ */ n("button", { type: "button", class: "hide-btn", "aria-pressed": A, onClick: () => F(!A), children: e(A ? "board.shotOn" : "board.shotOff") })
|
|
1505
|
+
] }),
|
|
1506
|
+
me.length > 0 && /* @__PURE__ */ n("dl", { class: "context", "aria-label": e("board.context"), children: me.map(([M, Q]) => /* @__PURE__ */ n("div", { children: [
|
|
1507
|
+
/* @__PURE__ */ n("dt", { children: M }),
|
|
1508
|
+
/* @__PURE__ */ n("dd", { children: Q })
|
|
1509
|
+
] }, M)) }),
|
|
1510
|
+
t.kind !== "review" && /* @__PURE__ */ n(I, { children: [
|
|
1511
|
+
/* @__PURE__ */ n("span", { class: "label", style: { display: "block", marginTop: "20px", marginBottom: "8px" }, children: e("board.setStatus") }),
|
|
1512
|
+
/* @__PURE__ */ n("div", { class: "states", role: "radiogroup", "aria-label": e("board.setStatus"), children: Di.map((M) => /* @__PURE__ */ n(
|
|
1513
|
+
"button",
|
|
1514
|
+
{
|
|
1515
|
+
type: "button",
|
|
1516
|
+
role: "radio",
|
|
1517
|
+
"aria-checked": p === M.status,
|
|
1518
|
+
class: "chip-pick",
|
|
1519
|
+
onClick: () => h(M.status),
|
|
1520
|
+
children: e(rn({ kind: t.kind, status: M.status }, M.label))
|
|
1521
|
+
},
|
|
1522
|
+
M.status
|
|
1523
|
+
)) })
|
|
1524
|
+
] }),
|
|
1525
|
+
le && /* @__PURE__ */ n("div", { class: "fix-box", children: [
|
|
1526
|
+
/* @__PURE__ */ n("span", { class: "fix-box__head", children: [
|
|
1527
|
+
/* @__PURE__ */ n(xi, { size: 16 }),
|
|
1528
|
+
e(t.kind === "idea" ? "fix.titleIdea" : "fix.title")
|
|
1529
|
+
] }),
|
|
1530
|
+
/* @__PURE__ */ n("label", { class: "fix-box__label", children: [
|
|
1531
|
+
e("fix.version"),
|
|
1532
|
+
/* @__PURE__ */ n(
|
|
1533
|
+
"input",
|
|
1534
|
+
{
|
|
1535
|
+
class: "input",
|
|
1536
|
+
value: E,
|
|
1537
|
+
maxLength: Yt,
|
|
1538
|
+
placeholder: "1.4.2",
|
|
1539
|
+
autocomplete: "off",
|
|
1540
|
+
"aria-invalid": H === null,
|
|
1541
|
+
onInput: (M) => R(M.target.value)
|
|
1542
|
+
}
|
|
1543
|
+
)
|
|
1544
|
+
] }),
|
|
1545
|
+
H === null && /* @__PURE__ */ n("p", { class: "note note--bad", children: e("fix.versionBad") }),
|
|
1546
|
+
/* @__PURE__ */ n("label", { class: "fix-box__label", children: [
|
|
1547
|
+
e("fix.link"),
|
|
1548
|
+
/* @__PURE__ */ n(
|
|
1549
|
+
"input",
|
|
1550
|
+
{
|
|
1551
|
+
class: "input",
|
|
1552
|
+
type: "url",
|
|
1553
|
+
maxLength: Gt,
|
|
1554
|
+
inputMode: "url",
|
|
1555
|
+
value: V,
|
|
1556
|
+
placeholder: "github.com/…/pull/42",
|
|
1557
|
+
autocomplete: "off",
|
|
1558
|
+
"aria-invalid": G === null,
|
|
1559
|
+
onInput: (M) => $(M.target.value)
|
|
1560
|
+
}
|
|
1561
|
+
)
|
|
1562
|
+
] }),
|
|
1563
|
+
/* @__PURE__ */ n("p", { class: `note${G === null ? " note--bad" : ""}`, children: e(G === null ? "fix.linkBad" : "fix.linkNote") }),
|
|
1564
|
+
/* @__PURE__ */ n("p", { class: "note", children: e("fix.who") })
|
|
1565
|
+
] }),
|
|
1566
|
+
x.length > 0 && /* @__PURE__ */ n(I, { children: [
|
|
1567
|
+
/* @__PURE__ */ n("span", { class: "label", style: { display: "block", marginTop: "20px", marginBottom: "8px" }, children: e("talk.label") }),
|
|
1568
|
+
/* @__PURE__ */ n(
|
|
1569
|
+
sa,
|
|
1570
|
+
{
|
|
1571
|
+
post: t,
|
|
1572
|
+
thread: x,
|
|
1573
|
+
appName: a,
|
|
1574
|
+
t: e,
|
|
1575
|
+
actions: (M) => M.from === "author" ? /* @__PURE__ */ n("button", { type: "button", class: "link-btn", onClick: () => d(M, !M.hidden), children: e(M.hidden ? "talk.unhide" : "talk.hide") }) : M === b && t.kind !== "review" ? /* @__PURE__ */ n(
|
|
1576
|
+
"button",
|
|
1577
|
+
{
|
|
1578
|
+
type: "button",
|
|
1579
|
+
class: "link-btn",
|
|
1580
|
+
"aria-pressed": v === M,
|
|
1581
|
+
onClick: () => {
|
|
1582
|
+
const Q = v !== M;
|
|
1583
|
+
L(Q ? M : null), y(Q ? M.text : "");
|
|
1584
|
+
},
|
|
1585
|
+
children: e(v === M ? "board.cancel" : "talk.edit")
|
|
1586
|
+
}
|
|
1587
|
+
) : null
|
|
1588
|
+
}
|
|
1589
|
+
)
|
|
1590
|
+
] }),
|
|
1591
|
+
/* @__PURE__ */ n("span", { class: "label", style: { display: "block", marginTop: "20px", marginBottom: "8px" }, children: e(v && t.kind !== "review" ? "talk.changeLast" : "board.replyLabel") }),
|
|
1592
|
+
/* @__PURE__ */ n(
|
|
1593
|
+
"textarea",
|
|
1594
|
+
{
|
|
1595
|
+
class: "field",
|
|
1596
|
+
style: { minHeight: "96px" },
|
|
1597
|
+
value: _,
|
|
1598
|
+
maxLength: o,
|
|
1599
|
+
placeholder: t.mine ? e("board.replyPlaceholder") : e("talk.writeTo", { who: g }),
|
|
1600
|
+
"aria-label": e("board.replyLabel"),
|
|
1601
|
+
onInput: (M) => y(M.target.value)
|
|
1602
|
+
}
|
|
1603
|
+
),
|
|
1604
|
+
t.kind !== "review" && !t.mine && /* @__PURE__ */ n("p", { class: "note", children: e("talk.gets", { who: t.who ?? e("board.anon") }) }),
|
|
1605
|
+
t.pending && /* @__PURE__ */ n("button", { type: "button", class: "approve-btn", "aria-pressed": C, onClick: () => D(!C), children: e(C ? "board.unapprove" : "board.approve") }),
|
|
1606
|
+
/* @__PURE__ */ n("button", { type: "button", class: "hide-btn", "aria-pressed": k, onClick: () => O(!k), children: e(k ? "board.unhide" : "board.hide") }),
|
|
1607
|
+
/* @__PURE__ */ n("div", { class: "manage__actions", children: /* @__PURE__ */ n(
|
|
1608
|
+
"button",
|
|
1609
|
+
{
|
|
1610
|
+
type: "button",
|
|
1611
|
+
class: "btn",
|
|
1612
|
+
disabled: be,
|
|
1613
|
+
onClick: () => l({
|
|
1614
|
+
status: p,
|
|
1615
|
+
// Only what changes something: an empty box says nothing, and
|
|
1616
|
+
// the same words again are not a new message.
|
|
1617
|
+
..._.trim() && _.trim() !== v?.text ? { message: { text: _.trim(), ...v ? { edit: v.id } : {} } } : {},
|
|
1618
|
+
hidden: k,
|
|
1619
|
+
...xe ? { shotOff: A } : {},
|
|
1620
|
+
...t.pending && C ? { approved: !0 } : {},
|
|
1621
|
+
...le ? { fix: { ...H ? { version: H } : {}, ...G ? { link: G } : {} } } : {}
|
|
1622
|
+
}),
|
|
1623
|
+
children: e("board.save")
|
|
1624
|
+
}
|
|
1625
|
+
) })
|
|
1626
|
+
] })
|
|
1627
|
+
] });
|
|
1628
|
+
}
|
|
1629
|
+
function sn({
|
|
1630
|
+
label: e,
|
|
1631
|
+
onClose: t,
|
|
1632
|
+
children: a
|
|
1633
|
+
}) {
|
|
1634
|
+
return ne(() => {
|
|
1635
|
+
const i = (o) => {
|
|
1636
|
+
o.key === "Escape" && t();
|
|
1637
|
+
};
|
|
1638
|
+
return window.addEventListener("keydown", i), () => window.removeEventListener("keydown", i);
|
|
1639
|
+
}, [t]), /* @__PURE__ */ n("div", { class: "scrim", onClick: t, children: /* @__PURE__ */ n("div", { class: "sheet", role: "dialog", "aria-modal": "true", "aria-label": e, onClick: (i) => i.stopPropagation(), children: a }) });
|
|
1640
|
+
}
|
|
1641
|
+
function Ri({ t: e, src: t, onClose: a }) {
|
|
1642
|
+
const [i, o] = w(!1);
|
|
1643
|
+
return /* @__PURE__ */ n(sn, { label: e("board.shot"), onClose: a, children: [
|
|
1644
|
+
/* @__PURE__ */ n("figure", { class: "sheet__shot sheet__shot--whole", children: i ? /* @__PURE__ */ n("figcaption", { children: e("board.shotGone") }) : /* @__PURE__ */ n("img", { src: t, alt: e("board.shot"), onError: () => o(!0) }) }),
|
|
1645
|
+
/* @__PURE__ */ n("div", { class: "sheet__actions", children: /* @__PURE__ */ n("button", { type: "button", class: "text-btn", onClick: a, children: e("board.close") }) })
|
|
1646
|
+
] });
|
|
1647
|
+
}
|
|
1648
|
+
function la({
|
|
1649
|
+
t: e,
|
|
1650
|
+
onConfirm: t,
|
|
1651
|
+
onClose: a,
|
|
1652
|
+
title: i = "board.deleteTitle",
|
|
1653
|
+
note: o = "board.deleteNote",
|
|
1654
|
+
confirm: r = "board.delete"
|
|
1655
|
+
}) {
|
|
1656
|
+
return /* @__PURE__ */ n(sn, { label: e(i), onClose: a, children: [
|
|
1657
|
+
/* @__PURE__ */ n("h2", { class: "sheet__title", children: e(i) }),
|
|
1658
|
+
/* @__PURE__ */ n("p", { class: "sheet__quote", children: e(o) }),
|
|
1659
|
+
/* @__PURE__ */ n("div", { class: "sheet__actions", children: [
|
|
1660
|
+
/* @__PURE__ */ n("button", { type: "button", class: "btn btn--danger", onClick: t, children: e(r) }),
|
|
1661
|
+
/* @__PURE__ */ n("button", { type: "button", class: "text-btn", onClick: a, children: e("board.cancel") })
|
|
1662
|
+
] })
|
|
1663
|
+
] });
|
|
1664
|
+
}
|
|
1665
|
+
const Hi = ["open", "planned", "done", "declined"], Ui = {
|
|
1666
|
+
open: "board.statusOpen",
|
|
1667
|
+
planned: "board.statusPlanned",
|
|
1668
|
+
done: "board.statusDone",
|
|
1669
|
+
declined: "board.statusDeclined"
|
|
1670
|
+
}, ji = {
|
|
1671
|
+
waiting: "filter.waiting",
|
|
1672
|
+
hidden: "board.hidden",
|
|
1673
|
+
pending: "board.waiting"
|
|
1674
|
+
};
|
|
1675
|
+
function Le(e, t) {
|
|
1676
|
+
return t.kind ? e(ue[t.kind].plural) : t.status ? e(t.status === "done" && t.kinds ? wt(t.kinds) : Ui[t.status]) : t.own ? e(ji[t.own]) : e("filter.mine");
|
|
1677
|
+
}
|
|
1678
|
+
function Wi({
|
|
1679
|
+
t: e,
|
|
1680
|
+
kinds: t,
|
|
1681
|
+
owners: a,
|
|
1682
|
+
signedIn: i,
|
|
1683
|
+
value: o,
|
|
1684
|
+
count: r,
|
|
1685
|
+
onApply: l,
|
|
1686
|
+
onClose: d
|
|
1687
|
+
}) {
|
|
1688
|
+
const [u, p] = w(o), h = r(u), x = (b, v) => p((L) => {
|
|
1689
|
+
const _ = L[b];
|
|
1690
|
+
return { ...L, [b]: _.includes(v) ? _.filter((y) => y !== v) : [..._, v] };
|
|
1691
|
+
}), c = (b, v, L, _, y = !0) => /* @__PURE__ */ n("div", { class: "pick-group", role: "group", "aria-label": e(v), children: [
|
|
1692
|
+
/* @__PURE__ */ n("span", { class: "label", children: e(v) }),
|
|
1693
|
+
/* @__PURE__ */ n("div", { class: "states", children: [
|
|
1694
|
+
y && /* @__PURE__ */ n(
|
|
1695
|
+
"button",
|
|
1696
|
+
{
|
|
1697
|
+
type: "button",
|
|
1698
|
+
class: "chip-pick",
|
|
1699
|
+
"aria-pressed": !u[b].length,
|
|
1700
|
+
onClick: () => p((g) => ({ ...g, [b]: [] })),
|
|
1701
|
+
children: e("board.all")
|
|
1702
|
+
}
|
|
1703
|
+
),
|
|
1704
|
+
L.map((g) => /* @__PURE__ */ n(
|
|
1705
|
+
"button",
|
|
1706
|
+
{
|
|
1707
|
+
type: "button",
|
|
1708
|
+
class: "chip-pick",
|
|
1709
|
+
"aria-pressed": u[b].includes(g),
|
|
1710
|
+
onClick: () => x(b, g),
|
|
1711
|
+
children: _(g)
|
|
1712
|
+
},
|
|
1713
|
+
g
|
|
1714
|
+
))
|
|
1715
|
+
] })
|
|
1716
|
+
] });
|
|
1717
|
+
return /* @__PURE__ */ n(sn, { label: e("filter.title"), onClose: d, children: [
|
|
1718
|
+
/* @__PURE__ */ n("div", { class: "sheet__head", children: [
|
|
1719
|
+
/* @__PURE__ */ n("h2", { class: "sheet__title", children: e("filter.title") }),
|
|
1720
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": e("board.close"), onClick: d, children: /* @__PURE__ */ n(Ce, {}) })
|
|
1721
|
+
] }),
|
|
1722
|
+
t.length > 1 && c("kinds", "filter.kind", t, (b) => Le(e, { kind: b })),
|
|
1723
|
+
c("statuses", "filter.status", Hi, (b) => Le(e, { status: b, kinds: u.kinds.length ? u.kinds : t })),
|
|
1724
|
+
t.includes("review") && /* @__PURE__ */ n("p", { class: "note", children: e("filter.statusNote") }),
|
|
1725
|
+
a.length > 0 && /* @__PURE__ */ n("div", { class: "pick-own", children: c("own", "filter.own", a, (b) => Le(e, { own: b }), !1) }),
|
|
1726
|
+
i && /* @__PURE__ */ n("div", { class: "switch-row switch-row--box", children: [
|
|
1727
|
+
/* @__PURE__ */ n("span", { class: "switch-row__label", id: "pnb-only-mine", children: e("filter.mine") }),
|
|
1728
|
+
/* @__PURE__ */ n(
|
|
1729
|
+
"button",
|
|
1730
|
+
{
|
|
1731
|
+
type: "button",
|
|
1732
|
+
role: "switch",
|
|
1733
|
+
class: "switch",
|
|
1734
|
+
"aria-checked": u.mine,
|
|
1735
|
+
"aria-labelledby": "pnb-only-mine",
|
|
1736
|
+
onClick: () => p((b) => ({ ...b, mine: !b.mine }))
|
|
1737
|
+
}
|
|
1738
|
+
)
|
|
1739
|
+
] }),
|
|
1740
|
+
/* @__PURE__ */ n("div", { class: "sheet__foot", children: [
|
|
1741
|
+
/* @__PURE__ */ n("button", { type: "button", class: "text-btn filter-reset", onClick: () => p($e), children: e("filter.reset") }),
|
|
1742
|
+
/* @__PURE__ */ n("button", { type: "button", class: "btn", onClick: () => l(u), children: h === 1 ? e("filter.showOne") : e("filter.show", { n: h }) })
|
|
1743
|
+
] })
|
|
1744
|
+
] });
|
|
1745
|
+
}
|
|
1746
|
+
function Vi({
|
|
1747
|
+
client: e,
|
|
1748
|
+
t,
|
|
1749
|
+
locale: a,
|
|
1750
|
+
appName: i,
|
|
1751
|
+
owner: o,
|
|
1752
|
+
posts: r,
|
|
1753
|
+
onBack: l,
|
|
1754
|
+
onPublish: d,
|
|
1755
|
+
onFail: u
|
|
1756
|
+
}) {
|
|
1757
|
+
const [p, h] = w(null), [x, c] = w(!1), [b, v] = w(!1), [L, _] = w(null), y = async () => {
|
|
1758
|
+
const k = await e.updates();
|
|
1759
|
+
k.ok ? (h(k.data.updates), c(!1)) : c(!0);
|
|
1760
|
+
};
|
|
1761
|
+
ne(() => {
|
|
1762
|
+
y();
|
|
1763
|
+
}, [e]);
|
|
1764
|
+
const g = async (k) => {
|
|
1765
|
+
_(null), h((A) => A && A.filter((F) => F.id !== k.id));
|
|
1766
|
+
const O = await e.removeUpdate(k.id);
|
|
1767
|
+
O.ok || u(O.error), y();
|
|
1768
|
+
};
|
|
1769
|
+
return b ? /* @__PURE__ */ n(
|
|
1770
|
+
Zi,
|
|
1771
|
+
{
|
|
1772
|
+
t,
|
|
1773
|
+
appName: i,
|
|
1774
|
+
posts: r,
|
|
1775
|
+
onBack: () => v(!1),
|
|
1776
|
+
onPublish: async (k) => {
|
|
1777
|
+
await d(k) && (v(!1), await y());
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
) : /* @__PURE__ */ n(I, { children: [
|
|
1781
|
+
/* @__PURE__ */ n("header", { class: "bar", children: [
|
|
1782
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": t("board.back"), onClick: l, children: /* @__PURE__ */ n(Ue, {}) }),
|
|
1783
|
+
/* @__PURE__ */ n("h2", { class: "bar__title", children: t("updates.title") }),
|
|
1784
|
+
o ? /* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": t("updates.write"), onClick: () => v(!0), children: /* @__PURE__ */ n(ea, {}) }) : /* @__PURE__ */ n("span", {})
|
|
1785
|
+
] }),
|
|
1786
|
+
/* @__PURE__ */ n("div", { class: "scroll", style: { paddingBottom: "24px" }, children: x && !p ? /* @__PURE__ */ n("div", { class: "empty", children: [
|
|
1787
|
+
/* @__PURE__ */ n("p", { children: t("board.loadFailed") }),
|
|
1788
|
+
/* @__PURE__ */ n("button", { type: "button", class: "text-btn", onClick: () => void y(), children: t("board.retry") })
|
|
1789
|
+
] }) : p ? p.length === 0 ? /* @__PURE__ */ n("p", { class: "empty", children: t(o ? "updates.emptyOwner" : "updates.empty") }) : /* @__PURE__ */ n(I, { children: [
|
|
1790
|
+
/* @__PURE__ */ n("p", { class: "updates__intro", children: t("updates.intro", { app: i }) }),
|
|
1791
|
+
/* @__PURE__ */ n("ul", { class: "list", children: p.map((k) => /* @__PURE__ */ n(
|
|
1792
|
+
Ki,
|
|
1793
|
+
{
|
|
1794
|
+
update: k,
|
|
1795
|
+
posts: r,
|
|
1796
|
+
t,
|
|
1797
|
+
locale: a,
|
|
1798
|
+
onDelete: o ? () => _(k) : void 0
|
|
1799
|
+
},
|
|
1800
|
+
k.id
|
|
1801
|
+
)) })
|
|
1802
|
+
] }) : /* @__PURE__ */ n("div", { class: "empty", "aria-busy": "true", children: /* @__PURE__ */ n("span", { class: "spinner", style: { display: "inline-block" } }) }) }),
|
|
1803
|
+
L && /* @__PURE__ */ n(
|
|
1804
|
+
la,
|
|
1805
|
+
{
|
|
1806
|
+
t,
|
|
1807
|
+
title: "updates.deleteTitle",
|
|
1808
|
+
note: "updates.deleteNote",
|
|
1809
|
+
confirm: "updates.deleteBtn",
|
|
1810
|
+
onConfirm: () => void g(L),
|
|
1811
|
+
onClose: () => _(null)
|
|
1812
|
+
}
|
|
1813
|
+
)
|
|
1814
|
+
] });
|
|
1815
|
+
}
|
|
1816
|
+
function Yi(e, t, a) {
|
|
1817
|
+
const i = new Set(e.posts), o = (d) => t.filter((u) => u.kind === d && i.has(u.id)).length, r = [], l = (d, u, p) => {
|
|
1818
|
+
d && r.push(d === 1 ? a(u) : a(p, { n: d }));
|
|
1819
|
+
};
|
|
1820
|
+
return l(o("bug"), "updates.bugOne", "updates.bugMany"), l(o("idea"), "updates.ideaOne", "updates.ideaMany"), r.length ? a("updates.fromBoard", { list: r.join(", ") }) : null;
|
|
1821
|
+
}
|
|
1822
|
+
function Gi(e, t) {
|
|
1823
|
+
const a = new Set(e.posts), i = new Set(t.filter((o) => a.has(o.id)).map((o) => o.kind));
|
|
1824
|
+
return i.has("bug") && i.has("idea") ? "board.statusFixedAndDone" : wt([...i]);
|
|
1825
|
+
}
|
|
1826
|
+
function Ki({
|
|
1827
|
+
update: e,
|
|
1828
|
+
posts: t,
|
|
1829
|
+
t: a,
|
|
1830
|
+
locale: i,
|
|
1831
|
+
onDelete: o
|
|
1832
|
+
}) {
|
|
1833
|
+
const r = Qn(e.at, i), l = Yi(e, t, a), d = Gi(e, t), u = je(e.link), p = Dn(e.link), h = /* @__PURE__ */ n(I, { children: [
|
|
1834
|
+
/* @__PURE__ */ n("div", { class: "update__head", children: [
|
|
1835
|
+
e.version && /* @__PURE__ */ n("span", { class: "update__version", children: e.version }),
|
|
1836
|
+
/* @__PURE__ */ n("span", { class: "card__when", children: "date" in r ? r.date : a(r.key, r.vars) })
|
|
1837
|
+
] }),
|
|
1838
|
+
/* @__PURE__ */ n("h3", { class: "update__title", children: e.title }),
|
|
1839
|
+
e.text && /* @__PURE__ */ n("p", { class: "update__text", children: e.text }),
|
|
1840
|
+
l && /* @__PURE__ */ n("div", { class: "update__fixed", children: [
|
|
1841
|
+
/* @__PURE__ */ n(et, { tone: "done", icon: () => /* @__PURE__ */ n(mt, {}), label: a(d) }),
|
|
1842
|
+
/* @__PURE__ */ n("span", { children: l })
|
|
1843
|
+
] })
|
|
1844
|
+
] });
|
|
1845
|
+
return /* @__PURE__ */ n("li", { class: "update", children: [
|
|
1846
|
+
u && p ? /* @__PURE__ */ n("a", { class: "update__link", href: u, target: "_blank", rel: "noopener noreferrer", children: [
|
|
1847
|
+
h,
|
|
1848
|
+
/* @__PURE__ */ n("span", { class: "code-link", children: [
|
|
1849
|
+
/* @__PURE__ */ n(ra, { site: p }),
|
|
1850
|
+
/* @__PURE__ */ n("span", { children: a("fix.view", { site: p }) }),
|
|
1851
|
+
/* @__PURE__ */ n(ta, { size: 12 })
|
|
1852
|
+
] })
|
|
1853
|
+
] }) : /* @__PURE__ */ n("div", { class: "update__link", children: h }),
|
|
1854
|
+
o && /* @__PURE__ */ n("button", { type: "button", class: "icon-btn update__bin", "aria-label": a("updates.delete"), onClick: o, children: /* @__PURE__ */ n(nn, {}) })
|
|
1855
|
+
] });
|
|
1856
|
+
}
|
|
1857
|
+
function Zi({
|
|
1858
|
+
t: e,
|
|
1859
|
+
appName: t,
|
|
1860
|
+
posts: a,
|
|
1861
|
+
onBack: i,
|
|
1862
|
+
onPublish: o
|
|
1863
|
+
}) {
|
|
1864
|
+
const [r, l] = w(""), [d, u] = w(""), [p, h] = w(""), [x, c] = w(""), [b, v] = w([]), [L, _] = w(!1), y = Kt(d), g = je(p), k = a.filter((C) => (C.kind === "bug" || C.kind === "idea") && (C.status === "open" || C.status === "planned")).filter((C) => !C.hidden && !C.pending).sort((C, D) => D.votes - C.votes), O = !!r.trim() && y !== null && !!g && !L, A = async () => {
|
|
1865
|
+
!O || !g || (_(!0), await o({
|
|
1866
|
+
title: r.trim(),
|
|
1867
|
+
...x.trim() ? { text: x.trim() } : {},
|
|
1868
|
+
...y ? { version: y } : {},
|
|
1869
|
+
link: g,
|
|
1870
|
+
posts: b
|
|
1871
|
+
}), _(!1));
|
|
1872
|
+
}, F = (C) => v((D) => D.includes(C) ? D.filter((E) => E !== C) : [...D, C]);
|
|
1873
|
+
return /* @__PURE__ */ n(I, { children: [
|
|
1874
|
+
/* @__PURE__ */ n("header", { class: "bar", children: [
|
|
1875
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": e("board.back"), onClick: i, children: /* @__PURE__ */ n(Ue, {}) }),
|
|
1876
|
+
/* @__PURE__ */ n("h2", { class: "bar__title", children: e("updates.write") }),
|
|
1877
|
+
/* @__PURE__ */ n("span", {})
|
|
1878
|
+
] }),
|
|
1879
|
+
/* @__PURE__ */ n("div", { class: "scroll", style: { paddingBottom: "24px" }, children: /* @__PURE__ */ n("div", { class: "compose", children: [
|
|
1880
|
+
/* @__PURE__ */ n("p", { class: "public", style: { marginTop: 0 }, children: e("board.public", { app: t }) }),
|
|
1881
|
+
/* @__PURE__ */ n("label", { class: "label", for: "pnb-update-title", children: e("updates.titleLabel") }),
|
|
1882
|
+
/* @__PURE__ */ n(
|
|
1883
|
+
"input",
|
|
1884
|
+
{
|
|
1885
|
+
id: "pnb-update-title",
|
|
1886
|
+
class: "input",
|
|
1887
|
+
value: r,
|
|
1888
|
+
maxLength: Ua,
|
|
1889
|
+
placeholder: e("updates.titlePlaceholder"),
|
|
1890
|
+
onInput: (C) => l(C.target.value)
|
|
1891
|
+
}
|
|
1892
|
+
),
|
|
1893
|
+
/* @__PURE__ */ n("label", { class: "label", for: "pnb-update-version", children: e("fix.version") }),
|
|
1894
|
+
/* @__PURE__ */ n(
|
|
1895
|
+
"input",
|
|
1896
|
+
{
|
|
1897
|
+
id: "pnb-update-version",
|
|
1898
|
+
class: "input",
|
|
1899
|
+
value: d,
|
|
1900
|
+
maxLength: Yt,
|
|
1901
|
+
placeholder: "1.4.2",
|
|
1902
|
+
autocomplete: "off",
|
|
1903
|
+
"aria-invalid": y === null,
|
|
1904
|
+
onInput: (C) => u(C.target.value)
|
|
1905
|
+
}
|
|
1906
|
+
),
|
|
1907
|
+
y === null && /* @__PURE__ */ n("p", { class: "note note--bad", children: e("fix.versionBad") }),
|
|
1908
|
+
/* @__PURE__ */ n("label", { class: "label", for: "pnb-update-link", children: e("updates.link") }),
|
|
1909
|
+
/* @__PURE__ */ n(
|
|
1910
|
+
"input",
|
|
1911
|
+
{
|
|
1912
|
+
id: "pnb-update-link",
|
|
1913
|
+
class: "input",
|
|
1914
|
+
type: "url",
|
|
1915
|
+
inputMode: "url",
|
|
1916
|
+
value: p,
|
|
1917
|
+
maxLength: Gt,
|
|
1918
|
+
placeholder: "github.com/…/releases/tag/v1.4.2",
|
|
1919
|
+
autocomplete: "off",
|
|
1920
|
+
"aria-invalid": g === null,
|
|
1921
|
+
onInput: (C) => h(C.target.value)
|
|
1922
|
+
}
|
|
1923
|
+
),
|
|
1924
|
+
/* @__PURE__ */ n("p", { class: `note${g === null ? " note--bad" : ""}`, children: e(g === null ? "fix.linkBad" : "updates.linkNote") }),
|
|
1925
|
+
/* @__PURE__ */ n("label", { class: "label", for: "pnb-update-text", children: e("updates.textLabel") }),
|
|
1926
|
+
/* @__PURE__ */ n(
|
|
1927
|
+
"textarea",
|
|
1928
|
+
{
|
|
1929
|
+
id: "pnb-update-text",
|
|
1930
|
+
class: "field",
|
|
1931
|
+
style: { minHeight: "96px" },
|
|
1932
|
+
value: x,
|
|
1933
|
+
maxLength: ja,
|
|
1934
|
+
placeholder: e("updates.textPlaceholder", { app: t }),
|
|
1935
|
+
onInput: (C) => c(C.target.value)
|
|
1936
|
+
}
|
|
1937
|
+
),
|
|
1938
|
+
/* @__PURE__ */ n("span", { class: "label", children: e("updates.fixes") }),
|
|
1939
|
+
k.length === 0 ? /* @__PURE__ */ n("p", { class: "note", children: e("updates.fixesNone") }) : /* @__PURE__ */ n(I, { children: [
|
|
1940
|
+
/* @__PURE__ */ n("ul", { class: "picks", children: k.map((C) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n("label", { class: "pick", children: [
|
|
1941
|
+
/* @__PURE__ */ n("input", { type: "checkbox", checked: b.includes(C.id), onChange: () => F(C.id) }),
|
|
1942
|
+
/* @__PURE__ */ n(et, { tone: C.kind, icon: ue[C.kind].icon, label: e(ue[C.kind].label) }),
|
|
1943
|
+
/* @__PURE__ */ n("span", { class: "pick__text", children: C.text })
|
|
1944
|
+
] }) }, C.id)) }),
|
|
1945
|
+
/* @__PURE__ */ n("p", { class: "note", children: e("updates.fixesNote") })
|
|
1946
|
+
] }),
|
|
1947
|
+
/* @__PURE__ */ n("div", { class: "send", children: /* @__PURE__ */ n("button", { type: "button", class: "btn", disabled: !O, onClick: () => void A(), children: L ? /* @__PURE__ */ n("span", { class: "spinner" }) : e("updates.publish") }) })
|
|
1948
|
+
] }) })
|
|
1949
|
+
] });
|
|
1950
|
+
}
|
|
1951
|
+
const Ft = 15, Xi = (e) => !!e.shot && (e.shotFor ?? "board") === "board" && !e.hidden, qn = 2600;
|
|
1952
|
+
function da({
|
|
1953
|
+
client: e,
|
|
1954
|
+
t,
|
|
1955
|
+
locale: a,
|
|
1956
|
+
appName: i,
|
|
1957
|
+
suggestName: o,
|
|
1958
|
+
context: r,
|
|
1959
|
+
noise: l,
|
|
1960
|
+
kinds: d,
|
|
1961
|
+
screenshots: u = "board",
|
|
1962
|
+
readonly: p = !1,
|
|
1963
|
+
names: h = !0,
|
|
1964
|
+
onClose: x,
|
|
1965
|
+
onPosted: c,
|
|
1966
|
+
start: b = "board",
|
|
1967
|
+
screen: v
|
|
1968
|
+
}) {
|
|
1969
|
+
const L = p ? "board" : b, [_, y] = w(null), [g, k] = w(!1), [O, A] = w(v ?? L), [F, C] = w(L === "choose"), [D, E] = w("bug"), [R, V] = w("top"), [$, le] = w($e), [H, G] = w(""), [be, xe] = w(null), [Te, me] = w(null), [ae, M] = w(1), [Q, de] = w(null), [K, we] = w(null), [S, he] = w(!1), [ua, ba] = w(!1), [kt, ha] = w(() => Fn(e.project, "fixed")), [yt, fa] = w(() => Fn(e.project, "answered")), at = Qe(null), Ct = (l ?? []).join("|"), _a = se(() => Fa(Ct ? Ct.split("|") : []), [Ct]), ln = Qe(!1), j = ii(async () => {
|
|
1970
|
+
const s = await e.board();
|
|
1971
|
+
if (s.ok) {
|
|
1972
|
+
ln.current = !0;
|
|
1973
|
+
const f = p ? ui(s.data) : s.data;
|
|
1974
|
+
return y(f), k(!1), f;
|
|
1975
|
+
}
|
|
1976
|
+
return ln.current || k(!0), null;
|
|
1977
|
+
}, [e, p]);
|
|
1978
|
+
ne(() => {
|
|
1979
|
+
j();
|
|
1980
|
+
}, [j]), ne(() => {
|
|
1981
|
+
if (!K) return;
|
|
1982
|
+
const s = setTimeout(() => we(null), qn);
|
|
1983
|
+
return () => clearTimeout(s);
|
|
1984
|
+
}, [K]), ne(() => {
|
|
1985
|
+
v && A(v);
|
|
1986
|
+
}, [v]), ne(() => {
|
|
1987
|
+
if (O !== "sent" || v === "sent") return;
|
|
1988
|
+
const s = setTimeout(() => {
|
|
1989
|
+
C(!1), A("board");
|
|
1990
|
+
}, qn);
|
|
1991
|
+
return () => clearTimeout(s);
|
|
1992
|
+
}, [O, v]), ne(() => {
|
|
1993
|
+
const s = at.current;
|
|
1994
|
+
if (!s) return;
|
|
1995
|
+
let f = s.scrollTop, m = 0;
|
|
1996
|
+
const T = () => {
|
|
1997
|
+
const ge = s.scrollTop, Oe = ge - f;
|
|
1998
|
+
if (f = ge, ge < 48) {
|
|
1999
|
+
m = 0, he(!1);
|
|
2000
|
+
return;
|
|
2001
|
+
}
|
|
2002
|
+
m = Math.sign(Oe) === Math.sign(m) ? m + Oe : Oe, m > 24 ? he(!0) : m < -8 && he(!1);
|
|
2003
|
+
};
|
|
2004
|
+
return s.addEventListener("scroll", T, { passive: !0 }), () => s.removeEventListener("scroll", T);
|
|
2005
|
+
}, [O, _]);
|
|
2006
|
+
const ie = i ?? _?.project.name ?? "", U = _?.project.rules, ga = Ji(u, U?.screenshots ?? "board"), re = !!_?.me?.owner, W = _?.posts ?? [], ee = (U?.kinds ?? ["bug", "idea"]).filter((s) => !d || d.includes(s)), Lt = ee.join(",");
|
|
2007
|
+
ne(() => {
|
|
2008
|
+
v && ee.length && !ee.includes(D) && E(ee[0]);
|
|
2009
|
+
}, [v, Lt]);
|
|
2010
|
+
const We = (s) => {
|
|
2011
|
+
le(s), M(1);
|
|
2012
|
+
}, St = (s) => {
|
|
2013
|
+
G(s), M(1);
|
|
2014
|
+
}, ke = di($), Tt = !!H.trim(), Me = se(
|
|
2015
|
+
() => W.filter((s) => (re || !s.hidden) && Lt.split(",").includes(s.kind)),
|
|
2016
|
+
[W, re, Lt]
|
|
2017
|
+
), Mt = se(() => {
|
|
2018
|
+
const s = /* @__PURE__ */ new Map();
|
|
2019
|
+
for (const f of Me) {
|
|
2020
|
+
if (!Mn(f, $)) continue;
|
|
2021
|
+
const m = An(f, H);
|
|
2022
|
+
m && s.set(f.id, m);
|
|
2023
|
+
}
|
|
2024
|
+
return s;
|
|
2025
|
+
}, [Me, $, H]), it = se(() => Ba(Me.filter((s) => Mt.has(s.id)), R), [Me, Mt, R]), va = (s) => Me.filter((f) => Mn(f, s) && An(f, H)).length, xa = re ? ["waiting", "hidden", ...U?.approve || W.some((s) => s.pending) ? ["pending"] : []] : [], At = re ? Me.filter((s) => !s.hidden && Bt(s)).length : 0, Ve = se(() => {
|
|
2026
|
+
const s = W.filter((f) => f.kind === "review" && !f.hidden && f.rating).map((f) => f.rating);
|
|
2027
|
+
return s.length ? { avg: s.reduce((f, m) => f + m, 0) / s.length, n: s.length } : null;
|
|
2028
|
+
}, [W]), ce = se(
|
|
2029
|
+
() => W.filter((s) => s.mine && s.status === "done" && (s.kind === "bug" || s.kind === "idea") && !kt.includes(s.id)).sort((s, f) => f.at - s.at)[0],
|
|
2030
|
+
[W, kt]
|
|
2031
|
+
), ma = (s) => {
|
|
2032
|
+
const f = [...kt, s].slice(-200);
|
|
2033
|
+
ha(f), Bn(e.project, "fixed", f);
|
|
2034
|
+
}, Ye = se(() => W.map((f) => ({ p: f, last: Re(f.thread) })).filter(
|
|
2035
|
+
({ p: f, last: m }) => f.mine && m?.from === "app" && (f.kind === "review" || !ut(f.status)) && !yt.includes(`${f.id}@${m.at}`)
|
|
2036
|
+
).sort((f, m) => (m.last?.at ?? 0) - (f.last?.at ?? 0))[0]?.p, [W, yt]), dn = (s) => {
|
|
2037
|
+
const f = Re(s.thread);
|
|
2038
|
+
if (!f || f.from !== "app") return;
|
|
2039
|
+
const m = [...yt.filter((T) => !T.startsWith(`${s.id}@`)), `${s.id}@${f.at}`].slice(-200);
|
|
2040
|
+
fa(m), Bn(e.project, "answered", m);
|
|
2041
|
+
}, cn = (s) => {
|
|
2042
|
+
dn(s), xe(s.id), A("talk");
|
|
2043
|
+
}, pn = (s) => {
|
|
2044
|
+
me(s.id), A("manage");
|
|
2045
|
+
}, wa = !!U && (re || (_?.updates ?? 0) > 0), zt = Math.max(1, Math.ceil(it.length / Ft)), Ot = Math.min(ae, zt), $t = it.slice((Ot - 1) * Ft, Ot * Ft), rt = (s, f) => y((m) => m && { ...m, posts: m.posts.map((T) => T.id === s ? { ...T, ...f } : T) }), ye = (s) => {
|
|
2046
|
+
s === "no_signer" ? we(t("board.needWallet", { app: ie })) : s !== "declined" && we(t("board.failed"));
|
|
2047
|
+
}, un = async (s, f) => {
|
|
2048
|
+
const m = W.find((ge) => ge.id === s);
|
|
2049
|
+
if (!m) return;
|
|
2050
|
+
rt(s, { votes: Math.max(0, m.votes + (f ? 1 : -1)), voted: f });
|
|
2051
|
+
const T = await e.vote(s, f);
|
|
2052
|
+
T.ok ? (rt(s, { votes: T.data.votes, voted: T.data.voted }), _?.me || j()) : (rt(s, { votes: m.votes, voted: m.voted }), ye(T.error));
|
|
2053
|
+
}, ka = async (s) => {
|
|
2054
|
+
const f = st(), m = s.kind === "bug" ? { ...r, host: Ia() ? "nimiq-pay" : "browser" } : void 0, T = await e.post({
|
|
2055
|
+
id: f,
|
|
2056
|
+
kind: s.kind,
|
|
2057
|
+
text: s.text,
|
|
2058
|
+
anon: s.anon,
|
|
2059
|
+
context: m,
|
|
2060
|
+
rating: s.rating,
|
|
2061
|
+
shot: s.shot ? { type: s.shot.type, data: s.shot.data, ...s.shot.board ? { board: !0 } : {} } : void 0
|
|
2062
|
+
});
|
|
2063
|
+
return T.ok ? (!s.anon && s.name && s.name !== _?.me?.name && await e.setName(s.name), ba(!!T.data.pending), A("sent"), V("new"), le($e), G(""), M(1), c?.({ id: f, kind: s.kind }), await j(), null) : T.error === "declined" ? { key: null } : T.error === "no_signer" ? { key: "board.needWallet", vars: { app: ie } } : T.error === "reviewed" ? (j(), { key: "board.reviewed", vars: { app: ie } }) : T.error === "too_many" ? (j(), { key: "board.failedFull", vars: { max: U?.perDay ?? 5 } }) : { key: "board.failed" };
|
|
2064
|
+
}, ya = async () => {
|
|
2065
|
+
const s = await e.signIn();
|
|
2066
|
+
s.ok ? await j() : ye(s.error);
|
|
2067
|
+
}, Ca = async (s) => {
|
|
2068
|
+
de(null), y((m) => m && { ...m, posts: m.posts.filter((T) => T.id !== s.id) });
|
|
2069
|
+
const f = await e.remove(s.id);
|
|
2070
|
+
f.ok || ye(f.error), j();
|
|
2071
|
+
}, La = async (s, f) => {
|
|
2072
|
+
A("board");
|
|
2073
|
+
const { message: m, ...T } = f;
|
|
2074
|
+
rt(s.id, {
|
|
2075
|
+
status: T.status,
|
|
2076
|
+
hidden: T.hidden || void 0,
|
|
2077
|
+
fix: T.status === "done" && (T.fix?.version || T.fix?.link) ? T.fix : void 0,
|
|
2078
|
+
...T.shotOff !== void 0 ? { shotFor: T.shotOff ? "off" : "board" } : {},
|
|
2079
|
+
...T.approved ? { pending: void 0 } : {}
|
|
2080
|
+
});
|
|
2081
|
+
const ge = await e.manage(s.id, T);
|
|
2082
|
+
if (!ge.ok) ye(ge.error);
|
|
2083
|
+
else if (m) {
|
|
2084
|
+
const Oe = m.edit ? await e.editMessage(s.id, m.edit, { text: m.text }) : await e.say(s.id, { id: st(), text: m.text });
|
|
2085
|
+
Oe.ok || Ge(Oe.error);
|
|
2086
|
+
}
|
|
2087
|
+
j();
|
|
2088
|
+
}, Ge = (s) => {
|
|
2089
|
+
s === "not_your_turn" || s === "closed" || s === "not_found" || s === "no_post" ? (we(t("talk.moved")), j()) : ye(s);
|
|
2090
|
+
}, Sa = async (s, f) => {
|
|
2091
|
+
const m = await e.say(s.id, { id: st(), text: f });
|
|
2092
|
+
return m.ok ? (await j(), !0) : (Ge(m.error), !1);
|
|
2093
|
+
}, Ta = async (s, f, m) => {
|
|
2094
|
+
const T = await e.editMessage(s.id, f.id, { text: m });
|
|
2095
|
+
return T.ok ? (await j(), !0) : (Ge(T.error), !1);
|
|
2096
|
+
}, Ma = async (s, f) => {
|
|
2097
|
+
const m = await e.unsay(s.id, f.id);
|
|
2098
|
+
return m.ok ? (await j(), !0) : (Ge(m.error), !1);
|
|
2099
|
+
}, Aa = async (s, f, m) => {
|
|
2100
|
+
const T = await e.editMessage(s.id, f.id, { hidden: m });
|
|
2101
|
+
if (!T.ok) return Ge(T.error);
|
|
2102
|
+
await j();
|
|
2103
|
+
}, za = (s) => {
|
|
2104
|
+
const f = W.find((m) => m.id === s);
|
|
2105
|
+
f && !f.voted && un(s, !0), C(!1), A("board"), we(t("board.meTooDone"));
|
|
2106
|
+
}, Oa = async (s) => {
|
|
2107
|
+
const f = await e.postUpdate({ id: st(), ...s });
|
|
2108
|
+
return f.ok ? (await j(), !0) : (ye(f.error), !1);
|
|
2109
|
+
}, $a = W.some((s) => s.mine && s.kind === "review"), Na = () => {
|
|
2110
|
+
ee.length === 1 ? (E(ee[0]), A("compose")) : A("choose");
|
|
2111
|
+
}, Ae = () => {
|
|
2112
|
+
C(!1), A("board");
|
|
2113
|
+
};
|
|
2114
|
+
if (O === "sent")
|
|
2115
|
+
return /* @__PURE__ */ n("div", { class: "app", children: /* @__PURE__ */ n(zi, { t, onBack: Ae, waiting: ua || v === "sent" && !!U?.approve, appName: ie }) });
|
|
2116
|
+
if (O === "updates" && U)
|
|
2117
|
+
return /* @__PURE__ */ n("div", { class: "app", children: [
|
|
2118
|
+
/* @__PURE__ */ n(
|
|
2119
|
+
Vi,
|
|
2120
|
+
{
|
|
2121
|
+
client: e,
|
|
2122
|
+
t,
|
|
2123
|
+
locale: a,
|
|
2124
|
+
appName: ie,
|
|
2125
|
+
owner: re,
|
|
2126
|
+
posts: W,
|
|
2127
|
+
onBack: Ae,
|
|
2128
|
+
onPublish: Oa,
|
|
2129
|
+
onFail: ye
|
|
2130
|
+
}
|
|
2131
|
+
),
|
|
2132
|
+
K && /* @__PURE__ */ n("div", { class: "toast", role: "status", children: K })
|
|
2133
|
+
] });
|
|
2134
|
+
const ze = O === "manage" && re ? W.find((s) => s.id === Te) : void 0;
|
|
2135
|
+
if (ze && U)
|
|
2136
|
+
return /* @__PURE__ */ n("div", { class: "app", children: [
|
|
2137
|
+
/* @__PURE__ */ n(
|
|
2138
|
+
Ei,
|
|
2139
|
+
{
|
|
2140
|
+
t,
|
|
2141
|
+
post: ze,
|
|
2142
|
+
appName: ie,
|
|
2143
|
+
locale: a,
|
|
2144
|
+
replyMax: U.replyMax,
|
|
2145
|
+
loadShot: async () => {
|
|
2146
|
+
const s = await e.shot(ze.id);
|
|
2147
|
+
return s.ok ? s.data : null;
|
|
2148
|
+
},
|
|
2149
|
+
onSave: (s) => void La(ze, s),
|
|
2150
|
+
onHideMessage: (s, f) => void Aa(ze, s, f),
|
|
2151
|
+
onBack: Ae
|
|
2152
|
+
},
|
|
2153
|
+
ze.id
|
|
2154
|
+
),
|
|
2155
|
+
K && /* @__PURE__ */ n("div", { class: "toast", role: "status", children: K })
|
|
2156
|
+
] });
|
|
2157
|
+
const Ke = O === "talk" ? W.find((s) => s.id === be) : void 0;
|
|
2158
|
+
return Ke && U ? /* @__PURE__ */ n("div", { class: "app", children: [
|
|
2159
|
+
/* @__PURE__ */ n(
|
|
2160
|
+
Bi,
|
|
2161
|
+
{
|
|
2162
|
+
post: Ke,
|
|
2163
|
+
appName: ie,
|
|
2164
|
+
t,
|
|
2165
|
+
locale: a,
|
|
2166
|
+
replyMax: U.replyMax,
|
|
2167
|
+
onBack: Ae,
|
|
2168
|
+
onSay: (s) => Sa(Ke, s),
|
|
2169
|
+
onEdit: (s, f) => Ta(Ke, s, f),
|
|
2170
|
+
onUnsay: (s) => Ma(Ke, s)
|
|
2171
|
+
}
|
|
2172
|
+
),
|
|
2173
|
+
K && /* @__PURE__ */ n("div", { class: "toast", role: "status", children: K })
|
|
2174
|
+
] }) : O === "choose" && (U || F) ? /* @__PURE__ */ n("div", { class: "app", children: [
|
|
2175
|
+
F ? (
|
|
2176
|
+
// The first screen: nothing to go back to, only out.
|
|
2177
|
+
/* @__PURE__ */ n("header", { class: "bar", children: [
|
|
2178
|
+
/* @__PURE__ */ n("span", {}),
|
|
2179
|
+
/* @__PURE__ */ n("span", {}),
|
|
2180
|
+
x ? /* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": t("board.close"), onClick: x, children: /* @__PURE__ */ n(Ce, {}) }) : /* @__PURE__ */ n("span", {})
|
|
2181
|
+
] })
|
|
2182
|
+
) : /* @__PURE__ */ n("header", { class: "bar", children: [
|
|
2183
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": t("board.back"), onClick: Ae, children: /* @__PURE__ */ n(Ue, {}) }),
|
|
2184
|
+
/* @__PURE__ */ n("h2", { class: "bar__title bar__title--write", children: t("board.composeTitle") }),
|
|
2185
|
+
/* @__PURE__ */ n("span", {})
|
|
2186
|
+
] }),
|
|
2187
|
+
/* @__PURE__ */ n("div", { class: "scroll", style: { paddingBottom: "24px" }, children: U ? /* @__PURE__ */ n(
|
|
2188
|
+
Ai,
|
|
2189
|
+
{
|
|
2190
|
+
t,
|
|
2191
|
+
kinds: ee,
|
|
2192
|
+
appName: ie,
|
|
2193
|
+
reviewed: $a,
|
|
2194
|
+
onPick: (s) => {
|
|
2195
|
+
E(s), A("compose");
|
|
2196
|
+
},
|
|
2197
|
+
onBoard: F ? Ae : void 0
|
|
2198
|
+
}
|
|
2199
|
+
) : g ? /* @__PURE__ */ n("div", { class: "empty", children: [
|
|
2200
|
+
/* @__PURE__ */ n("p", { children: t("board.loadFailed") }),
|
|
2201
|
+
/* @__PURE__ */ n("button", { type: "button", class: "text-btn", onClick: () => void j(), children: t("board.retry") })
|
|
2202
|
+
] }) : /* @__PURE__ */ n("div", { class: "empty", "aria-busy": "true", children: /* @__PURE__ */ n("span", { class: "spinner", style: { display: "inline-block" } }) }) })
|
|
2203
|
+
] }) : O === "compose" && U ? /* @__PURE__ */ n("div", { class: "app", children: [
|
|
2204
|
+
/* @__PURE__ */ n("header", { class: "bar", children: [
|
|
2205
|
+
/* @__PURE__ */ n(
|
|
2206
|
+
"button",
|
|
2207
|
+
{
|
|
2208
|
+
type: "button",
|
|
2209
|
+
class: "icon-btn",
|
|
2210
|
+
"aria-label": t("board.back"),
|
|
2211
|
+
onClick: () => A(ee.length > 1 ? "choose" : "board"),
|
|
2212
|
+
children: /* @__PURE__ */ n(Ue, {})
|
|
2213
|
+
}
|
|
2214
|
+
),
|
|
2215
|
+
/* @__PURE__ */ n("h2", { class: "bar__title bar__title--write", children: t("board.composeTitle") }),
|
|
2216
|
+
/* @__PURE__ */ n("span", {})
|
|
2217
|
+
] }),
|
|
2218
|
+
/* @__PURE__ */ n("div", { class: "scroll", ref: at, style: { paddingBottom: "calc(12px + var(--_bottom))" }, children: /* @__PURE__ */ n(
|
|
2219
|
+
Oi,
|
|
2220
|
+
{
|
|
2221
|
+
t,
|
|
2222
|
+
kind: D,
|
|
2223
|
+
posts: W,
|
|
2224
|
+
likeThis: _a,
|
|
2225
|
+
left: _?.me ? _.me.left : null,
|
|
2226
|
+
perDay: U.perDay,
|
|
2227
|
+
textMax: U.textMax,
|
|
2228
|
+
name: _?.me?.name ?? o ?? "",
|
|
2229
|
+
appName: ie,
|
|
2230
|
+
screenshots: ga,
|
|
2231
|
+
names: h,
|
|
2232
|
+
onMeToo: za,
|
|
2233
|
+
onSend: ka
|
|
2234
|
+
}
|
|
2235
|
+
) }),
|
|
2236
|
+
K && /* @__PURE__ */ n("div", { class: "toast", role: "status", children: K })
|
|
2237
|
+
] }) : /* @__PURE__ */ n("div", { class: "app", children: [
|
|
2238
|
+
/* @__PURE__ */ n("header", { class: "bar", children: [
|
|
2239
|
+
/* @__PURE__ */ n("div", { class: "bar__side", children: [
|
|
2240
|
+
x && /* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": t("board.close"), onClick: x, children: /* @__PURE__ */ n(Ce, {}) }),
|
|
2241
|
+
wa && /* @__PURE__ */ n("button", { type: "button", class: "icon-btn", "aria-label": t("updates.title"), onClick: () => A("updates"), children: /* @__PURE__ */ n(vi, {}) })
|
|
2242
|
+
] }),
|
|
2243
|
+
/* @__PURE__ */ n("h2", { class: "bar__title bar__title--board", children: t("board.title") }),
|
|
2244
|
+
p ? /* @__PURE__ */ n("span", {}) : /* @__PURE__ */ n(
|
|
2245
|
+
"button",
|
|
2246
|
+
{
|
|
2247
|
+
type: "button",
|
|
2248
|
+
class: "icon-btn",
|
|
2249
|
+
"aria-label": t("board.write"),
|
|
2250
|
+
disabled: !U || !ee.length,
|
|
2251
|
+
onClick: Na,
|
|
2252
|
+
children: /* @__PURE__ */ n(ea, {})
|
|
2253
|
+
}
|
|
2254
|
+
)
|
|
2255
|
+
] }),
|
|
2256
|
+
/* @__PURE__ */ n("div", { class: "filters finder", children: [
|
|
2257
|
+
/* @__PURE__ */ n("label", { class: "search", children: [
|
|
2258
|
+
/* @__PURE__ */ n(ki, {}),
|
|
2259
|
+
/* @__PURE__ */ n(
|
|
2260
|
+
"input",
|
|
2261
|
+
{
|
|
2262
|
+
class: "search__input",
|
|
2263
|
+
type: "search",
|
|
2264
|
+
value: H,
|
|
2265
|
+
placeholder: t("search.placeholder"),
|
|
2266
|
+
"aria-label": t("search.placeholder"),
|
|
2267
|
+
onInput: (s) => St(s.target.value)
|
|
2268
|
+
}
|
|
2269
|
+
),
|
|
2270
|
+
H && /* @__PURE__ */ n("button", { type: "button", class: "search__clear", "aria-label": t("search.clear"), onClick: () => St(""), children: /* @__PURE__ */ n(Ce, { size: 16 }) })
|
|
2271
|
+
] }),
|
|
2272
|
+
/* @__PURE__ */ n(
|
|
2273
|
+
"button",
|
|
2274
|
+
{
|
|
2275
|
+
type: "button",
|
|
2276
|
+
class: "filter-btn",
|
|
2277
|
+
"aria-pressed": ke > 0,
|
|
2278
|
+
"aria-label": ke > 0 ? `${t("filter.button")}: ${t("filter.on", { n: ke })}` : t("filter.button"),
|
|
2279
|
+
onClick: () => de({ kind: "filter" }),
|
|
2280
|
+
children: [
|
|
2281
|
+
/* @__PURE__ */ n(yi, {}),
|
|
2282
|
+
/* @__PURE__ */ n("span", { children: t("filter.button") }),
|
|
2283
|
+
ke > 0 && /* @__PURE__ */ n("span", { class: "filter-btn__n", children: ke })
|
|
2284
|
+
]
|
|
2285
|
+
}
|
|
2286
|
+
)
|
|
2287
|
+
] }),
|
|
2288
|
+
ke > 0 && /* @__PURE__ */ n("div", { class: "applied", children: [
|
|
2289
|
+
[
|
|
2290
|
+
...$.kinds.map((s) => ({ label: Le(t, { kind: s }), off: { ...$, kinds: $.kinds.filter((f) => f !== s) } })),
|
|
2291
|
+
...$.statuses.map((s) => ({
|
|
2292
|
+
label: Le(t, { status: s, kinds: $.kinds.length ? $.kinds : ee }),
|
|
2293
|
+
off: { ...$, statuses: $.statuses.filter((f) => f !== s) }
|
|
2294
|
+
})),
|
|
2295
|
+
...$.own.map((s) => ({ label: Le(t, { own: s }), off: { ...$, own: $.own.filter((f) => f !== s) } })),
|
|
2296
|
+
...$.mine ? [{ label: Le(t, {}), off: { ...$, mine: !1 } }] : []
|
|
2297
|
+
].map((s) => /* @__PURE__ */ n(
|
|
2298
|
+
"button",
|
|
2299
|
+
{
|
|
2300
|
+
type: "button",
|
|
2301
|
+
class: "applied__chip",
|
|
2302
|
+
"aria-label": t("filter.remove", { label: s.label }),
|
|
2303
|
+
onClick: () => We(s.off),
|
|
2304
|
+
children: [
|
|
2305
|
+
/* @__PURE__ */ n("span", { children: s.label }),
|
|
2306
|
+
/* @__PURE__ */ n(Ce, { size: 14 })
|
|
2307
|
+
]
|
|
2308
|
+
},
|
|
2309
|
+
s.label
|
|
2310
|
+
)),
|
|
2311
|
+
/* @__PURE__ */ n("button", { type: "button", class: "link-btn", onClick: () => We($e), children: t("filter.clearAll") })
|
|
2312
|
+
] }),
|
|
2313
|
+
/* @__PURE__ */ n("div", { class: "scroll", ref: at, children: [
|
|
2314
|
+
ce && /* @__PURE__ */ n("div", { class: "news", role: "status", children: [
|
|
2315
|
+
/* @__PURE__ */ n(et, { tone: "done", icon: () => /* @__PURE__ */ n(mt, {}), label: t(wt([ce.kind])) }),
|
|
2316
|
+
/* @__PURE__ */ n("div", { class: "news__text", children: [
|
|
2317
|
+
/* @__PURE__ */ n("strong", { class: "news__title", children: ce.fix?.version ? t(ce.kind === "idea" ? "news.ideaIn" : "news.bugIn", { version: ce.fix.version }) : t(ce.kind === "idea" ? "news.idea" : "news.bug") }),
|
|
2318
|
+
/* @__PURE__ */ n("span", { class: "news__post", children: ce.text }),
|
|
2319
|
+
ce.fix?.link && /* @__PURE__ */ n(oa, { href: ce.fix.link, t, label: "news.see" })
|
|
2320
|
+
] }),
|
|
2321
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn news__close", "aria-label": t("board.close"), onClick: () => ma(ce.id), children: /* @__PURE__ */ n(Ce, { size: 18 }) })
|
|
2322
|
+
] }),
|
|
2323
|
+
Ye && /* @__PURE__ */ n("div", { class: "news", role: "status", children: [
|
|
2324
|
+
/* @__PURE__ */ n("div", { class: "news__text", children: [
|
|
2325
|
+
/* @__PURE__ */ n("strong", { class: "news__title", children: t(Ye.kind === "idea" ? "answered.idea" : Ye.kind === "review" ? "answered.review" : "answered.bug", {
|
|
2326
|
+
app: ie
|
|
2327
|
+
}) }),
|
|
2328
|
+
/* @__PURE__ */ n("button", { type: "button", class: "link-btn news__link", onClick: () => cn(Ye), children: t("answered.see") })
|
|
2329
|
+
] }),
|
|
2330
|
+
/* @__PURE__ */ n("button", { type: "button", class: "icon-btn news__close", "aria-label": t("board.close"), onClick: () => dn(Ye), children: /* @__PURE__ */ n(Ce, { size: 18 }) })
|
|
2331
|
+
] }),
|
|
2332
|
+
At > 0 && !$.own.includes("waiting") && /* @__PURE__ */ n("div", { class: "news news--owner", role: "status", children: [
|
|
2333
|
+
/* @__PURE__ */ n("strong", { class: "news__title news__grow", children: At === 1 ? t("owner.waitingOne") : t("owner.waitingMany", { n: At }) }),
|
|
2334
|
+
/* @__PURE__ */ n("button", { type: "button", class: "chip-btn", onClick: () => We({ ...$e, own: ["waiting"] }), children: t("owner.showThese") })
|
|
2335
|
+
] }),
|
|
2336
|
+
Tt && _ && /* @__PURE__ */ n("p", { class: "found-count", children: it.length === 1 ? t("search.countOne", { q: H.trim() }) : t("search.count", { n: it.length, q: H.trim() }) }),
|
|
2337
|
+
Ve && ee.includes("review") && (!$.kinds.length || $.kinds.includes("review")) && !$.statuses.length && !$.mine && !$.own.length && !Tt && /* @__PURE__ */ n("div", { class: "rating", children: [
|
|
2338
|
+
/* @__PURE__ */ n("span", { class: "rating__avg", children: Ve.avg.toFixed(1) }),
|
|
2339
|
+
/* @__PURE__ */ n(ia, { n: Ve.avg, t, size: 18 }),
|
|
2340
|
+
/* @__PURE__ */ n("span", { class: "rating__n", children: Ve.n === 1 ? t("board.ratingOne") : t("board.ratingMany", { n: Ve.n }) })
|
|
2341
|
+
] }),
|
|
2342
|
+
g ? /* @__PURE__ */ n("div", { class: "empty", children: [
|
|
2343
|
+
/* @__PURE__ */ n("p", { children: t("board.loadFailed") }),
|
|
2344
|
+
/* @__PURE__ */ n("button", { type: "button", class: "text-btn", onClick: () => void j(), children: t("board.retry") })
|
|
2345
|
+
] }) : _ ? $t.length === 0 && (Tt || ke > 0) ? /* @__PURE__ */ n("div", { class: "empty nothing", children: [
|
|
2346
|
+
/* @__PURE__ */ n("strong", { class: "nothing__title", children: t("filter.none") }),
|
|
2347
|
+
/* @__PURE__ */ n("p", { children: t("filter.noneNote") }),
|
|
2348
|
+
/* @__PURE__ */ n(
|
|
2349
|
+
"button",
|
|
2350
|
+
{
|
|
2351
|
+
type: "button",
|
|
2352
|
+
class: "outline-btn",
|
|
2353
|
+
onClick: () => {
|
|
2354
|
+
St(""), We($e);
|
|
2355
|
+
},
|
|
2356
|
+
children: t("filter.clear")
|
|
2357
|
+
}
|
|
2358
|
+
)
|
|
2359
|
+
] }) : $t.length === 0 ? /* @__PURE__ */ n("p", { class: "empty", children: t(W.length > 0 ? "board.emptyFiltered" : p ? "board.emptyRead" : "board.emptyTitle") }) : /* @__PURE__ */ n("ul", { class: "list", children: $t.map((s) => /* @__PURE__ */ n(
|
|
2360
|
+
on,
|
|
2361
|
+
{
|
|
2362
|
+
post: s,
|
|
2363
|
+
appName: ie,
|
|
2364
|
+
t,
|
|
2365
|
+
locale: a,
|
|
2366
|
+
onVote: p ? void 0 : (f) => void un(s.id, f),
|
|
2367
|
+
onDelete: s.mine || re ? () => de({ kind: "delete", post: s }) : void 0,
|
|
2368
|
+
onManage: re ? () => pn(s) : void 0,
|
|
2369
|
+
onTalk: re ? () => pn(s) : () => cn(s),
|
|
2370
|
+
shotUrl: Xi(s) ? e.shotUrl(s.id) : void 0,
|
|
2371
|
+
onShot: () => de({ kind: "shot", post: s }),
|
|
2372
|
+
fresh: re && !s.hidden && Bt(s),
|
|
2373
|
+
query: H,
|
|
2374
|
+
found: (() => {
|
|
2375
|
+
const f = Mt.get(s.id);
|
|
2376
|
+
return f?.in === "thread" ? f.message : void 0;
|
|
2377
|
+
})()
|
|
2378
|
+
},
|
|
2379
|
+
s.id
|
|
2380
|
+
)) }) : /* @__PURE__ */ n("div", { class: "empty", "aria-busy": "true", children: /* @__PURE__ */ n("span", { class: "spinner", style: { display: "inline-block" } }) }),
|
|
2381
|
+
zt > 1 && /* @__PURE__ */ n("nav", { class: "pager", children: Array.from({ length: zt }, (s, f) => f + 1).map((s) => /* @__PURE__ */ n(
|
|
2382
|
+
"button",
|
|
2383
|
+
{
|
|
2384
|
+
type: "button",
|
|
2385
|
+
"aria-current": s === Ot ? "page" : void 0,
|
|
2386
|
+
"aria-label": t("board.page", { n: s }),
|
|
2387
|
+
onClick: () => {
|
|
2388
|
+
M(s), at.current?.scrollTo({ top: 0 });
|
|
2389
|
+
},
|
|
2390
|
+
children: s
|
|
2391
|
+
},
|
|
2392
|
+
s
|
|
2393
|
+
)) }),
|
|
2394
|
+
_ && !_.me && e.canSign && !p && /* @__PURE__ */ n("div", { class: "sign-in", children: /* @__PURE__ */ n("button", { type: "button", class: "text-btn", onClick: () => void ya(), children: t("board.signIn") }) })
|
|
2395
|
+
] }),
|
|
2396
|
+
/* @__PURE__ */ n("div", { class: `order${S ? " order--away" : ""}`, children: /* @__PURE__ */ n("div", { class: "order__pill", role: "tablist", "aria-label": t("board.order"), children: ["top", "new"].map((s) => /* @__PURE__ */ n(
|
|
2397
|
+
"button",
|
|
2398
|
+
{
|
|
2399
|
+
type: "button",
|
|
2400
|
+
role: "tab",
|
|
2401
|
+
class: "order__tab",
|
|
2402
|
+
"aria-selected": R === s,
|
|
2403
|
+
onClick: () => {
|
|
2404
|
+
V(s), M(1);
|
|
2405
|
+
},
|
|
2406
|
+
children: t(s === "top" ? "board.top" : "board.new")
|
|
2407
|
+
},
|
|
2408
|
+
s
|
|
2409
|
+
)) }) }),
|
|
2410
|
+
K && /* @__PURE__ */ n("div", { class: "toast", role: "status", children: K }),
|
|
2411
|
+
Q?.kind === "delete" && /* @__PURE__ */ n(la, { t, onConfirm: () => void Ca(Q.post), onClose: () => de(null) }),
|
|
2412
|
+
Q?.kind === "filter" && U && /* @__PURE__ */ n(
|
|
2413
|
+
Wi,
|
|
2414
|
+
{
|
|
2415
|
+
t,
|
|
2416
|
+
kinds: ee,
|
|
2417
|
+
owners: xa,
|
|
2418
|
+
signedIn: !!_?.me,
|
|
2419
|
+
value: $,
|
|
2420
|
+
count: va,
|
|
2421
|
+
onApply: (s) => {
|
|
2422
|
+
de(null), We(s);
|
|
2423
|
+
},
|
|
2424
|
+
onClose: () => de(null)
|
|
2425
|
+
}
|
|
2426
|
+
),
|
|
2427
|
+
Q?.kind === "shot" && /* @__PURE__ */ n(Ri, { t, src: e.shotUrl(Q.post.id), onClose: () => de(null) })
|
|
2428
|
+
] });
|
|
2429
|
+
}
|
|
2430
|
+
function st() {
|
|
2431
|
+
return typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : `p-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
2432
|
+
}
|
|
2433
|
+
function Fn(e, t) {
|
|
2434
|
+
try {
|
|
2435
|
+
const a = globalThis.localStorage?.getItem(`pleasenobugs.${t}.${e}`), i = a ? JSON.parse(a) : [];
|
|
2436
|
+
return Array.isArray(i) ? i.filter((o) => typeof o == "string") : [];
|
|
2437
|
+
} catch {
|
|
2438
|
+
return [];
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
function Bn(e, t, a) {
|
|
2442
|
+
try {
|
|
2443
|
+
globalThis.localStorage?.setItem(`pleasenobugs.${t}.${e}`, JSON.stringify(a));
|
|
2444
|
+
} catch {
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
function Ji(e, t) {
|
|
2448
|
+
const a = ["off", "owners", "board"];
|
|
2449
|
+
return a[Math.min(a.indexOf(e), a.indexOf(t))];
|
|
2450
|
+
}
|
|
2451
|
+
const Qi = ':host{--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: var(--pnb-text);--pnb-on-filter: var(--pnb-bg);--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-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-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="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)}.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-quiet);font-size:14px;font-weight:700}.chip-pick[aria-pressed=true],.chip-pick[aria-checked=true]{background:var(--pnb-filter);color:var(--pnb-on-filter)}.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{flex:1;min-width:0;font-size:14px;color:var(--pnb-card-quiet);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.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)}.order{position:absolute;left:0;right:0;bottom:calc(20px + var(--_bottom));display:flex;justify-content:center;pointer-events:none;transition:transform .22s ease,opacity .16s ease}.order--away{transform:translateY(80px);opacity:0}.order__pill{pointer-events:auto;display:grid;grid-template-columns:1fr 1fr;width:min(240px,calc(100% - 32px));height:48px;padding:4px;border-radius:var(--pnb-radius-pill);background:var(--pnb-order);box-shadow:var(--pnb-shadow)}.order__tab{border-radius:max(0px,calc(var(--pnb-radius-pill) - 4px));font-weight:700;font-size:15px;color:var(--pnb-order-text)}.order__tab[aria-selected=true]{background:var(--pnb-order-on);color:var(--pnb-on-order)}.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}.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);color:var(--pnb-on-accent);font-size:16px;font-weight:700}.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)}.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}.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__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:0;z-index:var(--pnb-z);animation:slide-up .28s cubic-bezier(.2,.8,.2,1)}.overlay .app{--_top: var(--pnb-inset-top);--_bottom: var(--pnb-inset-bottom)}.overlay--leaving{animation:slide-down .22s cubic-bezier(.4,0,1,1) forwards}.backdrop{display:none}@media (min-width: 640px){.backdrop{display:block;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}.overlay{inset:auto 24px 24px auto;width:375px;max-height:min(640px,calc(100vh - 48px));border-radius:var(--pnb-radius-panel);overflow:hidden;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));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}.order{transition:opacity .16s ease}.order--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);color:var(--pnb-on-accent);font-size:13px;font-weight:700}.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)}', Wt = "please-no-bugs";
|
|
2452
|
+
var Ne, X, fe, oe, Pe, qe, Fe, Be, Ie, tt, De, Ee, Y, pe, Vt;
|
|
2453
|
+
class ca extends HTMLElement {
|
|
2454
|
+
constructor() {
|
|
2455
|
+
super(...arguments);
|
|
2456
|
+
Z(this, Y);
|
|
2457
|
+
Z(this, Ne, null);
|
|
2458
|
+
Z(this, X, null);
|
|
2459
|
+
Z(this, fe, null);
|
|
2460
|
+
Z(this, oe, "");
|
|
2461
|
+
Z(this, Pe);
|
|
2462
|
+
Z(this, qe);
|
|
2463
|
+
Z(this, Fe);
|
|
2464
|
+
Z(this, Be);
|
|
2465
|
+
Z(this, Ie);
|
|
2466
|
+
Z(this, tt);
|
|
2467
|
+
Z(this, De);
|
|
2468
|
+
/** The demo board's code, fetched the first time `demo` is set. */
|
|
2469
|
+
Z(this, Ee);
|
|
2470
|
+
}
|
|
2471
|
+
/** How to sign outside Nimiq Pay. Inside it the widget signs by itself. */
|
|
2472
|
+
get signer() {
|
|
2473
|
+
return z(this, Pe);
|
|
2474
|
+
}
|
|
2475
|
+
set signer(a) {
|
|
2476
|
+
B(this, Pe, a), B(this, oe, ""), te(this, Y, pe).call(this);
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* Your app's own wallet login, so nobody signs twice: `{ address, publicKey,
|
|
2480
|
+
* signature, message }`. Needs the project to list that message. Set it to
|
|
2481
|
+
* null on logout.
|
|
2482
|
+
*/
|
|
2483
|
+
get appLogin() {
|
|
2484
|
+
return z(this, qe);
|
|
2485
|
+
}
|
|
2486
|
+
set appLogin(a) {
|
|
2487
|
+
B(this, qe, a), B(this, oe, ""), te(this, Y, pe).call(this);
|
|
2488
|
+
}
|
|
2489
|
+
/** Sent with every bug report, to owners only: `{ version: '1.4.0' }`. */
|
|
2490
|
+
get context() {
|
|
2491
|
+
return z(this, Fe);
|
|
2492
|
+
}
|
|
2493
|
+
set context(a) {
|
|
2494
|
+
B(this, Fe, a), te(this, Y, pe).call(this);
|
|
2495
|
+
}
|
|
2496
|
+
/** Words common in your app, so "said already?" ignores them: `['nim', 'wallet']`. */
|
|
2497
|
+
get noise() {
|
|
2498
|
+
return z(this, Be);
|
|
2499
|
+
}
|
|
2500
|
+
set noise(a) {
|
|
2501
|
+
B(this, Be, a), te(this, Y, pe).call(this);
|
|
2502
|
+
}
|
|
2503
|
+
/** Override any string, or put the whole board in your app's language: `{ 'board.title': 'Ideas box' }`. */
|
|
2504
|
+
get strings() {
|
|
2505
|
+
return z(this, Ie);
|
|
2506
|
+
}
|
|
2507
|
+
set strings(a) {
|
|
2508
|
+
B(this, Ie, a), te(this, Y, pe).call(this);
|
|
2509
|
+
}
|
|
2510
|
+
/**
|
|
2511
|
+
* With `demo` only: the posts the demo board starts with, instead of its
|
|
2512
|
+
* own, and no updates: `[{ kind: 'idea', text: 'Pin my contacts', votes: 12 }]`.
|
|
2513
|
+
*/
|
|
2514
|
+
get samples() {
|
|
2515
|
+
return z(this, De);
|
|
2516
|
+
}
|
|
2517
|
+
set samples(a) {
|
|
2518
|
+
B(this, De, a), B(this, oe, ""), te(this, Y, pe).call(this);
|
|
2519
|
+
}
|
|
2520
|
+
connectedCallback() {
|
|
2521
|
+
if (!z(this, Ne)) {
|
|
2522
|
+
B(this, Ne, this.attachShadow({ mode: "open" }));
|
|
2523
|
+
const a = document.createElement("style");
|
|
2524
|
+
a.textContent = Qi, B(this, X, document.createElement("div")), z(this, X).style.height = "100%", z(this, Ne).append(a, z(this, X));
|
|
2525
|
+
}
|
|
2526
|
+
te(this, Y, pe).call(this);
|
|
2527
|
+
}
|
|
2528
|
+
disconnectedCallback() {
|
|
2529
|
+
z(this, X) && Ze(null, z(this, X));
|
|
2530
|
+
}
|
|
2531
|
+
attributeChangedCallback(a) {
|
|
2532
|
+
(a === "project" || a === "server" || a === "demo" || a === "readonly") && B(this, oe, ""), te(this, Y, pe).call(this);
|
|
2533
|
+
}
|
|
2534
|
+
/** Close an overlay: slide it away, then tell the page. */
|
|
2535
|
+
close() {
|
|
2536
|
+
this.dispatchEvent(new CustomEvent("pleasenobugs:close", { bubbles: !0, composed: !0 }));
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
Ne = new WeakMap(), X = new WeakMap(), fe = new WeakMap(), oe = new WeakMap(), Pe = new WeakMap(), qe = new WeakMap(), Fe = new WeakMap(), Be = new WeakMap(), Ie = new WeakMap(), tt = new WeakMap(), De = new WeakMap(), Ee = new WeakMap(), Y = new WeakSet(), pe = function() {
|
|
2540
|
+
if (!z(this, X) || !this.isConnected) return;
|
|
2541
|
+
const a = this.getAttribute("lang") || "en";
|
|
2542
|
+
if (this.hasAttribute("demo")) {
|
|
2543
|
+
if (!z(this, Ee)) {
|
|
2544
|
+
import("./demo-CL3oK-zC.js").then((p) => {
|
|
2545
|
+
B(this, Ee, p), te(this, Y, pe).call(this);
|
|
2546
|
+
});
|
|
2547
|
+
return;
|
|
2548
|
+
}
|
|
2549
|
+
const d = this.getAttribute("demo") === "owner", u = `demo|${d}`;
|
|
2550
|
+
(!z(this, fe) || z(this, oe) !== u) && (B(this, fe, z(this, Ee).createDemoClient({ owner: d, samples: z(this, De) })), B(this, oe, u)), te(this, Y, Vt).call(this, z(this, fe), a);
|
|
2551
|
+
return;
|
|
2552
|
+
}
|
|
2553
|
+
const i = this.getAttribute("project"), o = this.getAttribute("server");
|
|
2554
|
+
if (!i || !o) {
|
|
2555
|
+
Ze(null, z(this, X)), clearTimeout(z(this, tt)), B(this, tt, setTimeout(() => {
|
|
2556
|
+
(!this.getAttribute("project") || !this.getAttribute("server")) && console.warn("[pleasenobugs] <please-no-bugs> needs both a `project` and a `server` attribute.");
|
|
2557
|
+
}, 1e3));
|
|
2558
|
+
return;
|
|
2559
|
+
}
|
|
2560
|
+
const r = this.hasAttribute("readonly"), l = `${o}|${i}|${r}`;
|
|
2561
|
+
(!z(this, fe) || z(this, oe) !== l) && (B(this, fe, r ? fn({ server: o, project: i, signer: null, appLogin: null, storage: null }) : fn({ server: o, project: i, signer: z(this, Pe), appLogin: z(this, qe) })), B(this, oe, l)), te(this, Y, Vt).call(this, z(this, fe), a);
|
|
2562
|
+
}, Vt = function(a, i) {
|
|
2563
|
+
if (!z(this, X)) return;
|
|
2564
|
+
const o = this.getAttribute("mode") ?? "inline", r = {
|
|
2565
|
+
client: a,
|
|
2566
|
+
t: li(z(this, Ie)),
|
|
2567
|
+
locale: i,
|
|
2568
|
+
appName: this.getAttribute("app-name") ?? void 0,
|
|
2569
|
+
suggestName: this.getAttribute("name") ?? void 0,
|
|
2570
|
+
context: z(this, Fe),
|
|
2571
|
+
noise: z(this, Be),
|
|
2572
|
+
kinds: or(this.getAttribute("kinds")),
|
|
2573
|
+
screenshots: rr(this.getAttribute("screenshots")),
|
|
2574
|
+
readonly: this.hasAttribute("readonly"),
|
|
2575
|
+
names: this.getAttribute("names") !== "off",
|
|
2576
|
+
onPosted: (p) => this.dispatchEvent(new CustomEvent("pleasenobugs:posted", { detail: p, bubbles: !0, composed: !0 }))
|
|
2577
|
+
}, l = this.hasAttribute("demo") && !r.readonly ? er(this.getAttribute("screen")) : void 0, d = l === "button" ? void 0 : l, u = this.getAttribute("start") === "board" ? "board" : "choose";
|
|
2578
|
+
o === "floating" ? Ze(/* @__PURE__ */ n(tr, { app: r, label: r.t("board.open"), screen: l, start: u }), z(this, X)) : o === "overlay" ? Ze(/* @__PURE__ */ n(pa, { app: r, start: u, screen: d, onGone: () => this.close() }), z(this, X)) : Ze(/* @__PURE__ */ n(da, { ...r, start: u, screen: d }), z(this, X));
|
|
2579
|
+
}, hn(ca, "observedAttributes", [
|
|
2580
|
+
"project",
|
|
2581
|
+
"server",
|
|
2582
|
+
"mode",
|
|
2583
|
+
"start",
|
|
2584
|
+
"lang",
|
|
2585
|
+
"theme",
|
|
2586
|
+
"app-name",
|
|
2587
|
+
"name",
|
|
2588
|
+
"kinds",
|
|
2589
|
+
"screenshots",
|
|
2590
|
+
"readonly",
|
|
2591
|
+
"names",
|
|
2592
|
+
"demo",
|
|
2593
|
+
"screen"
|
|
2594
|
+
]);
|
|
2595
|
+
function er(e) {
|
|
2596
|
+
return e ? {
|
|
2597
|
+
button: "button",
|
|
2598
|
+
tiles: "choose",
|
|
2599
|
+
board: "board",
|
|
2600
|
+
write: "compose",
|
|
2601
|
+
sent: "sent",
|
|
2602
|
+
updates: "updates"
|
|
2603
|
+
}[e.trim().toLowerCase()] : void 0;
|
|
2604
|
+
}
|
|
2605
|
+
function pa({
|
|
2606
|
+
app: e,
|
|
2607
|
+
onGone: t,
|
|
2608
|
+
start: a,
|
|
2609
|
+
screen: i,
|
|
2610
|
+
button: o,
|
|
2611
|
+
grow: r
|
|
2612
|
+
}) {
|
|
2613
|
+
const [l, d] = w(!1), u = Qe(null), p = () => {
|
|
2614
|
+
if (l) return;
|
|
2615
|
+
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return t();
|
|
2616
|
+
d(!0);
|
|
2617
|
+
const h = o?.();
|
|
2618
|
+
h && u.current && In(u.current, h, "close").then(t);
|
|
2619
|
+
};
|
|
2620
|
+
return ai(() => {
|
|
2621
|
+
const h = o?.();
|
|
2622
|
+
r && h && u.current && !window.matchMedia("(prefers-reduced-motion: reduce)").matches && In(u.current, h, "open");
|
|
2623
|
+
}, []), ne(() => {
|
|
2624
|
+
const h = (x) => {
|
|
2625
|
+
x.key === "Escape" && !u.current?.querySelector(".scrim") && p();
|
|
2626
|
+
};
|
|
2627
|
+
return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
|
|
2628
|
+
}), /* @__PURE__ */ n(I, { children: [
|
|
2629
|
+
/* @__PURE__ */ n("div", { class: `backdrop${l ? " backdrop--leaving" : ""}`, onClick: p }),
|
|
2630
|
+
/* @__PURE__ */ n(
|
|
2631
|
+
"div",
|
|
2632
|
+
{
|
|
2633
|
+
ref: u,
|
|
2634
|
+
class: `overlay${o ? " overlay--morph" : ""}${l ? " overlay--leaving" : ""}`,
|
|
2635
|
+
role: "dialog",
|
|
2636
|
+
"aria-modal": "true",
|
|
2637
|
+
"aria-label": e.t("board.title"),
|
|
2638
|
+
onAnimationEnd: (h) => {
|
|
2639
|
+
l && h.target === h.currentTarget && t();
|
|
2640
|
+
},
|
|
2641
|
+
children: /* @__PURE__ */ n(da, { ...e, onClose: p, start: a, screen: i })
|
|
2642
|
+
}
|
|
2643
|
+
)
|
|
2644
|
+
] });
|
|
2645
|
+
}
|
|
2646
|
+
function tr({
|
|
2647
|
+
app: e,
|
|
2648
|
+
label: t,
|
|
2649
|
+
screen: a,
|
|
2650
|
+
start: i
|
|
2651
|
+
}) {
|
|
2652
|
+
const [o, r] = w(!!a && a !== "button"), [l, d] = w(!1), u = Qe(null);
|
|
2653
|
+
return ne(() => {
|
|
2654
|
+
a && r(a !== "button");
|
|
2655
|
+
}, [a]), /* @__PURE__ */ n(I, { children: [
|
|
2656
|
+
/* @__PURE__ */ n(
|
|
2657
|
+
"button",
|
|
2658
|
+
{
|
|
2659
|
+
ref: u,
|
|
2660
|
+
type: "button",
|
|
2661
|
+
class: `fab${o ? " fab--away" : ""}`,
|
|
2662
|
+
"aria-label": t,
|
|
2663
|
+
title: t,
|
|
2664
|
+
"aria-hidden": o,
|
|
2665
|
+
tabIndex: o ? -1 : 0,
|
|
2666
|
+
onClick: () => {
|
|
2667
|
+
d(!0), r(!0);
|
|
2668
|
+
},
|
|
2669
|
+
children: /* @__PURE__ */ n(hi, {})
|
|
2670
|
+
}
|
|
2671
|
+
),
|
|
2672
|
+
o && /* @__PURE__ */ n(
|
|
2673
|
+
pa,
|
|
2674
|
+
{
|
|
2675
|
+
app: e,
|
|
2676
|
+
start: i,
|
|
2677
|
+
screen: a === "button" ? void 0 : a,
|
|
2678
|
+
button: () => u.current,
|
|
2679
|
+
grow: l,
|
|
2680
|
+
onGone: () => {
|
|
2681
|
+
r(!1), d(!1);
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
)
|
|
2685
|
+
] });
|
|
2686
|
+
}
|
|
2687
|
+
const nr = 340, ar = 260, ir = 160;
|
|
2688
|
+
function In(e, t, a) {
|
|
2689
|
+
if (typeof e.animate != "function") return Promise.resolve();
|
|
2690
|
+
const i = e.getBoundingClientRect(), o = t.getBoundingClientRect(), r = o.width / 2, l = `inset(${o.top - i.top}px ${i.right - o.right}px ${i.bottom - o.bottom}px ${o.left - i.left}px round ${r}px)`, d = `inset(0px 0px 0px 0px round ${getComputedStyle(e).borderTopLeftRadius})`, u = a === "open", p = {
|
|
2691
|
+
duration: u ? nr : ar,
|
|
2692
|
+
easing: u ? "cubic-bezier(0.3, 0.9, 0.3, 1)" : "cubic-bezier(0.5, 0, 0.75, 0)",
|
|
2693
|
+
fill: u ? "none" : "forwards"
|
|
2694
|
+
}, h = e.firstElementChild;
|
|
2695
|
+
h && (h.style.transformOrigin = `${o.left + r - i.left}px ${o.top + r - i.top}px`);
|
|
2696
|
+
const x = u ? [{ clipPath: l }, { clipPath: d }] : [{ clipPath: d }, { clipPath: l }], c = [e.animate(x, p)];
|
|
2697
|
+
return h && c.push(
|
|
2698
|
+
h.animate(
|
|
2699
|
+
u ? [
|
|
2700
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 0 },
|
|
2701
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 0.15 },
|
|
2702
|
+
{ opacity: 1, transform: "scale(1)", offset: 0.8 },
|
|
2703
|
+
{ opacity: 1, transform: "scale(1)", offset: 1 }
|
|
2704
|
+
] : [
|
|
2705
|
+
{ opacity: 1, transform: "scale(1)", offset: 0 },
|
|
2706
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 0.55 },
|
|
2707
|
+
{ opacity: 0, transform: "scale(0.96)", offset: 1 }
|
|
2708
|
+
],
|
|
2709
|
+
{ ...p, easing: u ? "ease-out" : "ease-in" }
|
|
2710
|
+
)
|
|
2711
|
+
), Promise.all(c.map((b) => b.finished)).catch(() => {
|
|
2712
|
+
}).then(() => {
|
|
2713
|
+
if (u) {
|
|
2714
|
+
h && (h.style.transformOrigin = "");
|
|
2715
|
+
return;
|
|
2716
|
+
}
|
|
2717
|
+
t.classList.remove("fab--away"), e.style.visibility = "hidden", typeof t.animate == "function" && t.animate([{ opacity: 0, transform: "scale(0.8)" }, { opacity: 1, transform: "scale(1)" }], {
|
|
2718
|
+
duration: ir,
|
|
2719
|
+
easing: "ease-out"
|
|
2720
|
+
});
|
|
2721
|
+
});
|
|
2722
|
+
}
|
|
2723
|
+
function rr(e) {
|
|
2724
|
+
return e === null || e === "" || e === "board" ? "board" : e === "off" ? "off" : "owners";
|
|
2725
|
+
}
|
|
2726
|
+
function or(e) {
|
|
2727
|
+
if (!(e === null || !e.trim()))
|
|
2728
|
+
return e.split(",").map((t) => t.trim().toLowerCase()).filter((t) => Ea.includes(t));
|
|
2729
|
+
}
|
|
2730
|
+
function sr() {
|
|
2731
|
+
typeof customElements < "u" && !customElements.get(Wt) && customElements.define(Wt, ca);
|
|
2732
|
+
}
|
|
2733
|
+
sr();
|
|
2734
|
+
function br(e) {
|
|
2735
|
+
const t = document.createElement(Wt);
|
|
2736
|
+
t.setAttribute("mode", "overlay"), t.setAttribute("project", e.project), t.setAttribute("server", e.server), e.lang && t.setAttribute("lang", e.lang), e.theme && t.setAttribute("theme", e.theme), e.appName && t.setAttribute("app-name", e.appName), e.name && t.setAttribute("name", e.name), e.kinds && t.setAttribute("kinds", e.kinds.join(",")), e.screenshots === !1 && t.setAttribute("screenshots", "off"), e.screenshots === "owners" && t.setAttribute("screenshots", "owners"), e.readonly && t.setAttribute("readonly", ""), e.names === !1 && t.setAttribute("names", "off"), t.signer = e.signer, t.appLogin = e.appLogin, t.context = e.context, t.noise = e.noise, t.strings = e.strings;
|
|
2737
|
+
const a = () => t.remove();
|
|
2738
|
+
return t.addEventListener("pleasenobugs:close", a, { once: !0 }), document.body.append(t), () => t.close();
|
|
2739
|
+
}
|
|
2740
|
+
export {
|
|
2741
|
+
cr as D,
|
|
2742
|
+
ca as P,
|
|
2743
|
+
Ya as a,
|
|
2744
|
+
ur as b,
|
|
2745
|
+
pr as c,
|
|
2746
|
+
ut as i,
|
|
2747
|
+
Re as l,
|
|
2748
|
+
br as o
|
|
2749
|
+
};
|