@lokalise/harmony 1.24.1 → 1.25.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/dist/harmony.cjs +1 -1
- package/dist/harmony.mjs +720 -708
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +1 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +186 -14
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +40 -0
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +5 -5
- package/dist/types/src/features/publicApi/score.d.ts +5 -5
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +124 -10
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +9 -9
- package/package.json +1 -1
package/dist/harmony.mjs
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var re = (e, t, r) =>
|
1
|
+
var rn = Object.defineProperty;
|
2
|
+
var sn = (e, t, r) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var re = (e, t, r) => sn(e, typeof t != "symbol" ? t + "" : t, r);
|
4
4
|
import { jsx as o, jsxs as p, Fragment as He } from "react/jsx-runtime";
|
5
|
-
import * as
|
6
|
-
import { useRef as Ct, useState as
|
7
|
-
import { Tooltip as D, Link as U, Menu as le, MenuList as ue, CaretUpIcon as
|
8
|
-
import { format as
|
9
|
-
import { toZonedTime as
|
5
|
+
import * as J from "react";
|
6
|
+
import { useRef as Ct, useState as k, useCallback as Qe, useEffect as W, useContext as Pt, createContext as At, cloneElement as an, Fragment as Rt, forwardRef as on } from "react";
|
7
|
+
import { Tooltip as D, Link as U, Menu as le, MenuList as ue, CaretUpIcon as cn, UserIcon as wt, MenuItem as Y, MenuDivider as It, ConfirmModal as ln, Alert as un, Tag as Oe, Button as xe, Loading as dn, Popover as mn, JobIcon as _n } from "@lokalise/louis";
|
8
|
+
import { format as kt, parseISO as gn, isThisSecond as hn } from "date-fns";
|
9
|
+
import { toZonedTime as pn } from "date-fns-tz";
|
10
10
|
import { z as n } from "zod";
|
11
|
-
import { buildPayloadRoute as
|
12
|
-
import { sendByPayloadRoute as
|
13
|
-
import { useQuery as H, useMutation as
|
11
|
+
import { buildPayloadRoute as X, buildGetRoute as $ } from "@lokalise/api-contracts";
|
12
|
+
import { sendByPayloadRoute as G, sendByGetRoute as F } from "@lokalise/frontend-http-client";
|
13
|
+
import { useQuery as H, useMutation as Be } from "@tanstack/react-query";
|
14
14
|
const Le = {
|
15
15
|
Completed: "completed",
|
16
16
|
InProgress: "in_progress",
|
17
17
|
Created: "created",
|
18
18
|
Queued: "queued"
|
19
|
-
},
|
19
|
+
}, R = {
|
20
20
|
...Le,
|
21
21
|
NotStarted: "not_started"
|
22
|
-
},
|
22
|
+
}, se = {
|
23
23
|
translation: "translation",
|
24
24
|
review: "review",
|
25
25
|
lqa_by_ai: "lqa_by_ai",
|
26
26
|
automatic_translation: "automatic_translation"
|
27
27
|
};
|
28
|
-
var
|
28
|
+
var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
29
29
|
function jt(e) {
|
30
30
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
31
31
|
}
|
32
32
|
var he, We;
|
33
|
-
function
|
33
|
+
function qe() {
|
34
34
|
if (We) return he;
|
35
35
|
We = 1;
|
36
36
|
function e(t) {
|
@@ -40,21 +40,21 @@ function Be() {
|
|
40
40
|
return he = e, he;
|
41
41
|
}
|
42
42
|
var pe, Ye;
|
43
|
-
function
|
43
|
+
function fn() {
|
44
44
|
if (Ye) return pe;
|
45
45
|
Ye = 1;
|
46
|
-
var e = typeof
|
46
|
+
var e = typeof ae == "object" && ae && ae.Object === Object && ae;
|
47
47
|
return pe = e, pe;
|
48
48
|
}
|
49
49
|
var fe, Xe;
|
50
50
|
function Nt() {
|
51
51
|
if (Xe) return fe;
|
52
52
|
Xe = 1;
|
53
|
-
var e =
|
53
|
+
var e = fn(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
|
54
54
|
return fe = r, fe;
|
55
55
|
}
|
56
56
|
var be, Ve;
|
57
|
-
function
|
57
|
+
function bn() {
|
58
58
|
if (Ve) return be;
|
59
59
|
Ve = 1;
|
60
60
|
var e = Nt(), t = function() {
|
@@ -63,24 +63,24 @@ function gn() {
|
|
63
63
|
return be = t, be;
|
64
64
|
}
|
65
65
|
var Te, Ze;
|
66
|
-
function
|
66
|
+
function Tn() {
|
67
67
|
if (Ze) return Te;
|
68
68
|
Ze = 1;
|
69
69
|
var e = /\s/;
|
70
70
|
function t(r) {
|
71
|
-
for (var
|
71
|
+
for (var s = r.length; s-- && e.test(r.charAt(s)); )
|
72
72
|
;
|
73
|
-
return
|
73
|
+
return s;
|
74
74
|
}
|
75
75
|
return Te = t, Te;
|
76
76
|
}
|
77
77
|
var ve, et;
|
78
|
-
function
|
78
|
+
function vn() {
|
79
79
|
if (et) return ve;
|
80
80
|
et = 1;
|
81
|
-
var e =
|
82
|
-
function r(
|
83
|
-
return
|
81
|
+
var e = Tn(), t = /^\s+/;
|
82
|
+
function r(s) {
|
83
|
+
return s && s.slice(0, e(s) + 1).replace(t, "");
|
84
84
|
}
|
85
85
|
return ve = r, ve;
|
86
86
|
}
|
@@ -91,72 +91,72 @@ function Ot() {
|
|
91
91
|
var e = Nt(), t = e.Symbol;
|
92
92
|
return Se = t, Se;
|
93
93
|
}
|
94
|
-
var
|
95
|
-
function
|
96
|
-
if (nt) return
|
94
|
+
var Ee, nt;
|
95
|
+
function Sn() {
|
96
|
+
if (nt) return Ee;
|
97
97
|
nt = 1;
|
98
|
-
var e = Ot(), t = Object.prototype, r = t.hasOwnProperty,
|
98
|
+
var e = Ot(), t = Object.prototype, r = t.hasOwnProperty, s = t.toString, a = e ? e.toStringTag : void 0;
|
99
99
|
function i(c) {
|
100
|
-
var u = r.call(c,
|
100
|
+
var u = r.call(c, a), d = c[a];
|
101
101
|
try {
|
102
|
-
c[
|
102
|
+
c[a] = void 0;
|
103
103
|
var l = !0;
|
104
104
|
} catch {
|
105
105
|
}
|
106
|
-
var m =
|
107
|
-
return l && (u ? c[
|
106
|
+
var m = s.call(c);
|
107
|
+
return l && (u ? c[a] = d : delete c[a]), m;
|
108
108
|
}
|
109
|
-
return
|
109
|
+
return Ee = i, Ee;
|
110
110
|
}
|
111
|
-
var
|
112
|
-
function
|
113
|
-
if (rt) return
|
111
|
+
var ye, rt;
|
112
|
+
function En() {
|
113
|
+
if (rt) return ye;
|
114
114
|
rt = 1;
|
115
115
|
var e = Object.prototype, t = e.toString;
|
116
|
-
function r(
|
117
|
-
return t.call(
|
116
|
+
function r(s) {
|
117
|
+
return t.call(s);
|
118
118
|
}
|
119
|
-
return
|
119
|
+
return ye = r, ye;
|
120
120
|
}
|
121
|
-
var Ce,
|
122
|
-
function
|
123
|
-
if (
|
124
|
-
|
125
|
-
var e = Ot(), t =
|
121
|
+
var Ce, st;
|
122
|
+
function yn() {
|
123
|
+
if (st) return Ce;
|
124
|
+
st = 1;
|
125
|
+
var e = Ot(), t = Sn(), r = En(), s = "[object Null]", a = "[object Undefined]", i = e ? e.toStringTag : void 0;
|
126
126
|
function c(u) {
|
127
|
-
return u == null ? u === void 0 ?
|
127
|
+
return u == null ? u === void 0 ? a : s : i && i in Object(u) ? t(u) : r(u);
|
128
128
|
}
|
129
129
|
return Ce = c, Ce;
|
130
130
|
}
|
131
|
-
var Pe,
|
132
|
-
function
|
133
|
-
if (
|
134
|
-
|
131
|
+
var Pe, at;
|
132
|
+
function Cn() {
|
133
|
+
if (at) return Pe;
|
134
|
+
at = 1;
|
135
135
|
function e(t) {
|
136
136
|
return t != null && typeof t == "object";
|
137
137
|
}
|
138
138
|
return Pe = e, Pe;
|
139
139
|
}
|
140
|
-
var
|
141
|
-
function
|
142
|
-
if (ot) return
|
140
|
+
var Ae, ot;
|
141
|
+
function Pn() {
|
142
|
+
if (ot) return Ae;
|
143
143
|
ot = 1;
|
144
|
-
var e =
|
145
|
-
function a
|
146
|
-
return typeof
|
144
|
+
var e = yn(), t = Cn(), r = "[object Symbol]";
|
145
|
+
function s(a) {
|
146
|
+
return typeof a == "symbol" || t(a) && e(a) == r;
|
147
147
|
}
|
148
|
-
return
|
148
|
+
return Ae = s, Ae;
|
149
149
|
}
|
150
|
-
var
|
151
|
-
function
|
152
|
-
if (it) return
|
150
|
+
var Re, it;
|
151
|
+
function An() {
|
152
|
+
if (it) return Re;
|
153
153
|
it = 1;
|
154
|
-
var e =
|
154
|
+
var e = vn(), t = qe(), r = Pn(), s = NaN, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, c = /^0o[0-7]+$/i, u = parseInt;
|
155
155
|
function d(l) {
|
156
156
|
if (typeof l == "number")
|
157
157
|
return l;
|
158
158
|
if (r(l))
|
159
|
-
return
|
159
|
+
return s;
|
160
160
|
if (t(l)) {
|
161
161
|
var m = typeof l.valueOf == "function" ? l.valueOf() : l;
|
162
162
|
l = t(m) ? m + "" : m;
|
@@ -165,122 +165,122 @@ function yn() {
|
|
165
165
|
return l === 0 ? l : +l;
|
166
166
|
l = e(l);
|
167
167
|
var g = i.test(l);
|
168
|
-
return g || c.test(l) ? u(l.slice(2), g ? 2 : 8) :
|
168
|
+
return g || c.test(l) ? u(l.slice(2), g ? 2 : 8) : a.test(l) ? s : +l;
|
169
169
|
}
|
170
|
-
return
|
170
|
+
return Re = d, Re;
|
171
171
|
}
|
172
|
-
var
|
172
|
+
var we, ct;
|
173
173
|
function xt() {
|
174
|
-
if (ct) return
|
174
|
+
if (ct) return we;
|
175
175
|
ct = 1;
|
176
|
-
var e =
|
176
|
+
var e = qe(), t = bn(), r = An(), s = "Expected a function", a = Math.max, i = Math.min;
|
177
177
|
function c(u, d, l) {
|
178
|
-
var m, g, v, S, _,
|
178
|
+
var m, g, v, S, _, y, b = 0, h = !1, f = !1, T = !0;
|
179
179
|
if (typeof u != "function")
|
180
|
-
throw new TypeError(
|
181
|
-
d = r(d) || 0, e(l) && (h = !!l.leading, f = "maxWait" in l, v = f ?
|
182
|
-
function P(
|
183
|
-
var
|
184
|
-
return m = g = void 0, b =
|
180
|
+
throw new TypeError(s);
|
181
|
+
d = r(d) || 0, e(l) && (h = !!l.leading, f = "maxWait" in l, v = f ? a(r(l.maxWait) || 0, d) : v, T = "trailing" in l ? !!l.trailing : T);
|
182
|
+
function P(E) {
|
183
|
+
var O = m, K = g;
|
184
|
+
return m = g = void 0, b = E, S = u.apply(K, O), S;
|
185
185
|
}
|
186
|
-
function C(
|
187
|
-
return b =
|
186
|
+
function C(E) {
|
187
|
+
return b = E, _ = setTimeout(ne, d), h ? P(E) : S;
|
188
188
|
}
|
189
|
-
function te(
|
190
|
-
var
|
191
|
-
return f ? i(Je, v -
|
189
|
+
function te(E) {
|
190
|
+
var O = E - y, K = E - b, Je = d - O;
|
191
|
+
return f ? i(Je, v - K) : Je;
|
192
192
|
}
|
193
|
-
function Ke(
|
194
|
-
var
|
195
|
-
return
|
193
|
+
function Ke(E) {
|
194
|
+
var O = E - y, K = E - b;
|
195
|
+
return y === void 0 || O >= d || O < 0 || f && K >= v;
|
196
196
|
}
|
197
197
|
function ne() {
|
198
|
-
var
|
199
|
-
if (Ke(
|
200
|
-
return ze(
|
201
|
-
_ = setTimeout(ne, te(
|
198
|
+
var E = t();
|
199
|
+
if (Ke(E))
|
200
|
+
return ze(E);
|
201
|
+
_ = setTimeout(ne, te(E));
|
202
202
|
}
|
203
|
-
function ze(
|
204
|
-
return _ = void 0, T && m ? P(
|
203
|
+
function ze(E) {
|
204
|
+
return _ = void 0, T && m ? P(E) : (m = g = void 0, S);
|
205
205
|
}
|
206
|
-
function
|
207
|
-
_ !== void 0 && clearTimeout(_), b = 0, m =
|
206
|
+
function tn() {
|
207
|
+
_ !== void 0 && clearTimeout(_), b = 0, m = y = g = _ = void 0;
|
208
208
|
}
|
209
|
-
function
|
209
|
+
function nn() {
|
210
210
|
return _ === void 0 ? S : ze(t());
|
211
211
|
}
|
212
212
|
function ge() {
|
213
|
-
var
|
214
|
-
if (m = arguments, g = this,
|
213
|
+
var E = t(), O = Ke(E);
|
214
|
+
if (m = arguments, g = this, y = E, O) {
|
215
215
|
if (_ === void 0)
|
216
|
-
return C(
|
216
|
+
return C(y);
|
217
217
|
if (f)
|
218
|
-
return clearTimeout(_), _ = setTimeout(ne, d), P(
|
218
|
+
return clearTimeout(_), _ = setTimeout(ne, d), P(y);
|
219
219
|
}
|
220
220
|
return _ === void 0 && (_ = setTimeout(ne, d)), S;
|
221
221
|
}
|
222
|
-
return ge.cancel =
|
222
|
+
return ge.cancel = tn, ge.flush = nn, ge;
|
223
223
|
}
|
224
|
-
return
|
224
|
+
return we = c, we;
|
225
225
|
}
|
226
|
-
var
|
227
|
-
const
|
228
|
-
var
|
229
|
-
function
|
230
|
-
if (lt) return
|
226
|
+
var Rn = xt();
|
227
|
+
const wn = /* @__PURE__ */ jt(Rn);
|
228
|
+
var Ie, lt;
|
229
|
+
function In() {
|
230
|
+
if (lt) return Ie;
|
231
231
|
lt = 1;
|
232
|
-
var e = xt(), t =
|
233
|
-
function a
|
232
|
+
var e = xt(), t = qe(), r = "Expected a function";
|
233
|
+
function s(a, i, c) {
|
234
234
|
var u = !0, d = !0;
|
235
|
-
if (typeof
|
235
|
+
if (typeof a != "function")
|
236
236
|
throw new TypeError(r);
|
237
|
-
return t(c) && (u = "leading" in c ? !!c.leading : u, d = "trailing" in c ? !!c.trailing : d), e(
|
237
|
+
return t(c) && (u = "leading" in c ? !!c.leading : u, d = "trailing" in c ? !!c.trailing : d), e(a, i, {
|
238
238
|
leading: u,
|
239
239
|
maxWait: i,
|
240
240
|
trailing: d
|
241
241
|
});
|
242
242
|
}
|
243
|
-
return
|
243
|
+
return Ie = s, Ie;
|
244
244
|
}
|
245
|
-
var
|
246
|
-
const
|
245
|
+
var kn = In();
|
246
|
+
const jn = /* @__PURE__ */ jt(kn), Nn = (e, t, r, s) => {
|
247
247
|
switch (t) {
|
248
248
|
case "debounce":
|
249
|
-
return
|
249
|
+
return wn(e, r, s);
|
250
250
|
case "throttle":
|
251
|
-
return
|
251
|
+
return jn(e, r, s);
|
252
252
|
default:
|
253
253
|
return e;
|
254
254
|
}
|
255
|
-
},
|
255
|
+
}, On = (
|
256
256
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
257
257
|
(e) => {
|
258
|
-
const t =
|
259
|
-
return
|
258
|
+
const t = J.useRef(e);
|
259
|
+
return J.useEffect(() => {
|
260
260
|
t.current = e;
|
261
|
-
}),
|
262
|
-
var
|
263
|
-
return (
|
261
|
+
}), J.useMemo(() => (...r) => {
|
262
|
+
var s;
|
263
|
+
return (s = t.current) === null || s === void 0 ? void 0 : s.call(t, ...r);
|
264
264
|
}, []);
|
265
265
|
}
|
266
|
-
),
|
266
|
+
), xn = (
|
267
267
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
268
268
|
(e) => {
|
269
|
-
const [t, r] =
|
269
|
+
const [t, r] = J.useState((e == null ? void 0 : e.current) || null);
|
270
270
|
return e && setTimeout(() => {
|
271
271
|
e.current !== t && r(e.current);
|
272
|
-
}, 0), { refProxy:
|
273
|
-
|
272
|
+
}, 0), { refProxy: J.useMemo(() => new Proxy((a) => {
|
273
|
+
a !== t && r(a);
|
274
274
|
}, {
|
275
|
-
get(
|
276
|
-
return i === "current" ? t :
|
275
|
+
get(a, i) {
|
276
|
+
return i === "current" ? t : a[i];
|
277
277
|
},
|
278
|
-
set(
|
279
|
-
return i === "current" ? r(c) :
|
278
|
+
set(a, i, c) {
|
279
|
+
return i === "current" ? r(c) : a[i] = c, !0;
|
280
280
|
}
|
281
281
|
}), [t]), refElement: t, setRefElement: r };
|
282
282
|
}
|
283
|
-
),
|
283
|
+
), Ln = (e, t) => t === "border-box" ? {
|
284
284
|
width: e.borderBoxSize[0].inlineSize,
|
285
285
|
height: e.borderBoxSize[0].blockSize
|
286
286
|
} : t === "content-box" ? {
|
@@ -290,33 +290,33 @@ const An = /* @__PURE__ */ jt(wn), Rn = (e, t, r, a) => {
|
|
290
290
|
width: e.contentRect.width,
|
291
291
|
height: e.contentRect.height
|
292
292
|
};
|
293
|
-
function
|
294
|
-
const l = Ct(e), m =
|
293
|
+
function Mn({ skipOnMount: e = !1, refreshMode: t, refreshRate: r = 1e3, refreshOptions: s, handleWidth: a = !0, handleHeight: i = !0, targetRef: c, observerOptions: u, onResize: d } = {}) {
|
294
|
+
const l = Ct(e), m = On(d), [g, v] = k({
|
295
295
|
width: void 0,
|
296
296
|
height: void 0
|
297
|
-
}), { refProxy: S, refElement: _ } =
|
298
|
-
if (!
|
297
|
+
}), { refProxy: S, refElement: _ } = xn(c), { box: y } = u || {}, b = Qe((f) => {
|
298
|
+
if (!a && !i)
|
299
299
|
return;
|
300
300
|
if (l.current) {
|
301
301
|
l.current = !1;
|
302
302
|
return;
|
303
303
|
}
|
304
|
-
const T = (P, C) =>
|
304
|
+
const T = (P, C) => a && P.width !== C.width || i && P.height !== C.height;
|
305
305
|
f.forEach((P) => {
|
306
|
-
const C =
|
306
|
+
const C = Ln(P, y);
|
307
307
|
v((te) => T(te, C) ? (m == null || m({
|
308
308
|
width: C.width,
|
309
309
|
height: C.height,
|
310
310
|
entry: P
|
311
311
|
}), C) : te);
|
312
312
|
});
|
313
|
-
}, [
|
313
|
+
}, [a, i, l, y]), h = Qe(Nn(b, t, r, s), [
|
314
314
|
b,
|
315
315
|
t,
|
316
316
|
r,
|
317
|
-
|
317
|
+
s
|
318
318
|
]);
|
319
|
-
return
|
319
|
+
return W(() => {
|
320
320
|
let f;
|
321
321
|
return _ ? (f = new window.ResizeObserver(h), f.observe(_, u)) : (g.width || g.height) && (m == null || m({
|
322
322
|
width: null,
|
@@ -329,42 +329,42 @@ function Nn({ skipOnMount: e = !1, refreshMode: t, refreshRate: r = 1e3, refresh
|
|
329
329
|
}, [h, _]), Object.assign({ ref: S }, g);
|
330
330
|
}
|
331
331
|
function Lt(e) {
|
332
|
-
var t, r,
|
333
|
-
if (typeof e == "string" || typeof e == "number")
|
332
|
+
var t, r, s = "";
|
333
|
+
if (typeof e == "string" || typeof e == "number") s += e;
|
334
334
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
335
|
-
var
|
336
|
-
for (t = 0; t <
|
337
|
-
} else for (r in e) e[r] && (
|
338
|
-
return
|
335
|
+
var a = e.length;
|
336
|
+
for (t = 0; t < a; t++) e[t] && (r = Lt(e[t])) && (s && (s += " "), s += r);
|
337
|
+
} else for (r in e) e[r] && (s && (s += " "), s += r);
|
338
|
+
return s;
|
339
339
|
}
|
340
340
|
function j() {
|
341
|
-
for (var e, t, r = 0,
|
342
|
-
return
|
341
|
+
for (var e, t, r = 0, s = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = Lt(e)) && (s && (s += " "), s += t);
|
342
|
+
return s;
|
343
343
|
}
|
344
|
-
const
|
345
|
-
headerContainer:
|
346
|
-
navigationTabList:
|
347
|
-
navigationTab:
|
348
|
-
headerContent:
|
349
|
-
staticEnabled:
|
350
|
-
},
|
351
|
-
const { ref: r, height:
|
344
|
+
const Un = "_headerContainer_1cubo_1", Hn = "_navigationTabList_1cubo_8", Bn = "_navigationTab_1cubo_8", qn = "_headerContent_1cubo_34", Dn = "_staticEnabled_1cubo_50", q = {
|
345
|
+
headerContainer: Un,
|
346
|
+
navigationTabList: Hn,
|
347
|
+
navigationTab: Bn,
|
348
|
+
headerContent: qn,
|
349
|
+
staticEnabled: Dn
|
350
|
+
}, $n = 77, oe = ({ sticky: e, children: t }) => {
|
351
|
+
const { ref: r, height: s } = Mn({
|
352
352
|
refreshMode: "debounce",
|
353
353
|
refreshRate: 0
|
354
|
-
}), [
|
355
|
-
|
354
|
+
}), [a, i] = k(!1), c = () => a ? !e : !0;
|
355
|
+
W(() => {
|
356
356
|
const d = () => {
|
357
357
|
i(window.scrollY > 0);
|
358
358
|
};
|
359
359
|
return window.addEventListener("scroll", d), () => window.removeEventListener("scroll", d);
|
360
360
|
}, []);
|
361
|
-
const u = `${
|
361
|
+
const u = `${s || $n}px`;
|
362
362
|
return /* @__PURE__ */ o("div", { style: { minHeight: u }, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ p(
|
363
363
|
"div",
|
364
364
|
{
|
365
365
|
ref: r,
|
366
|
-
className: j(
|
367
|
-
[
|
366
|
+
className: j(q.headerContent, {
|
367
|
+
[q.staticEnabled]: c()
|
368
368
|
}),
|
369
369
|
children: [
|
370
370
|
/* @__PURE__ */ o(oe.Header, {}),
|
@@ -374,21 +374,21 @@ const On = "_headerContainer_1cubo_1", xn = "_navigationTabList_1cubo_8", Ln = "
|
|
374
374
|
}
|
375
375
|
) }) });
|
376
376
|
};
|
377
|
-
oe.Header = ({ children: e }) => /* @__PURE__ */ o("div", { className:
|
377
|
+
oe.Header = ({ children: e }) => /* @__PURE__ */ o("div", { className: q.headerContainer, children: e });
|
378
378
|
oe.Tabs = ({ children: e }) => /* @__PURE__ */ o("div", { className: "flex justify-between gap-2 nowrap", children: e });
|
379
|
-
const
|
380
|
-
sidebarContainer:
|
381
|
-
},
|
382
|
-
logoLink:
|
383
|
-
},
|
379
|
+
const Gn = "_sidebarContainer_bmdti_1", Fn = {
|
380
|
+
sidebarContainer: Gn
|
381
|
+
}, Kn = "_logoLink_1baxb_1", zn = {
|
382
|
+
logoLink: Kn
|
383
|
+
}, Jn = ({
|
384
384
|
src: e,
|
385
385
|
href: t = "/",
|
386
386
|
ariaLabel: r = "Lokalise App Home",
|
387
|
-
alt:
|
388
|
-
}) => /* @__PURE__ */ o("a", { className:
|
389
|
-
link:
|
390
|
-
active:
|
391
|
-
},
|
387
|
+
alt: s = "Lokalise Logo"
|
388
|
+
}) => /* @__PURE__ */ o("a", { className: zn.logoLink, href: t, "aria-label": r, children: /* @__PURE__ */ o("img", { src: e, alt: s }) }), Qn = "_link_18vhx_1", Wn = "_active_18vhx_18", ut = {
|
389
|
+
link: Qn,
|
390
|
+
active: Wn
|
391
|
+
}, Yn = ({ label: e, to: t, icon: r }) => /* @__PURE__ */ o(D, { placement: "right", tooltip: e, children: /* @__PURE__ */ o(
|
392
392
|
U,
|
393
393
|
{
|
394
394
|
"aria-label": e,
|
@@ -398,10 +398,10 @@ const qn = "_sidebarContainer_bmdti_1", Bn = {
|
|
398
398
|
href: t,
|
399
399
|
children: /* @__PURE__ */ o(r, { size: "25px" })
|
400
400
|
}
|
401
|
-
) }),
|
402
|
-
dropdownButton:
|
403
|
-
dropdownButtonActive:
|
404
|
-
},
|
401
|
+
) }), Xn = "_dropdownButton_13l5r_1", Vn = "_dropdownButtonActive_13l5r_18", dt = {
|
402
|
+
dropdownButton: Xn,
|
403
|
+
dropdownButtonActive: Vn
|
404
|
+
}, Zn = ({ children: e, icon: t }) => /* @__PURE__ */ o(
|
405
405
|
le,
|
406
406
|
{
|
407
407
|
menuButton: ({ opened: r }) => /* @__PURE__ */ o(D, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ o(
|
@@ -416,34 +416,34 @@ const qn = "_sidebarContainer_bmdti_1", Bn = {
|
|
416
416
|
) }),
|
417
417
|
children: /* @__PURE__ */ o(ue, { placement: "right-start", children: e })
|
418
418
|
}
|
419
|
-
),
|
420
|
-
iconContainer:
|
419
|
+
), er = "_iconContainer_nz34m_1", tr = {
|
420
|
+
iconContainer: er
|
421
421
|
}, Mt = ({ className: e = "" }) => /* @__PURE__ */ o(
|
422
422
|
"div",
|
423
423
|
{
|
424
424
|
"aria-label": "Upgrade Icon",
|
425
425
|
className: j(
|
426
|
-
|
426
|
+
tr.iconContainer,
|
427
427
|
"flex-row",
|
428
428
|
"items-center",
|
429
429
|
"justify-center",
|
430
430
|
e
|
431
431
|
),
|
432
|
-
children: /* @__PURE__ */ o(
|
432
|
+
children: /* @__PURE__ */ o(cn, {})
|
433
433
|
}
|
434
|
-
),
|
435
|
-
menuContainer:
|
436
|
-
profileButton:
|
437
|
-
profileImage:
|
438
|
-
profileImageHighlight:
|
439
|
-
profileImageUpgradeIcon:
|
440
|
-
userIconWrapper:
|
441
|
-
}, Ut =
|
434
|
+
), nr = "_menuContainer_1phdw_10", rr = "_profileButton_1phdw_20", sr = "_profileImage_1phdw_33", ar = "_profileImageHighlight_1phdw_41", or = "_profileImageUpgradeIcon_1phdw_45", ir = "_userIconWrapper_1phdw_51", L = {
|
435
|
+
menuContainer: nr,
|
436
|
+
profileButton: rr,
|
437
|
+
profileImage: sr,
|
438
|
+
profileImageHighlight: ar,
|
439
|
+
profileImageUpgradeIcon: or,
|
440
|
+
userIconWrapper: ir
|
441
|
+
}, Ut = At({}), V = () => Pt(Ut), cr = ({ children: e }) => {
|
442
442
|
const {
|
443
443
|
currentTeam: t,
|
444
444
|
otherTeams: r,
|
445
|
-
showUpgradeCta:
|
446
|
-
showBillingButton:
|
445
|
+
showUpgradeCta: s,
|
446
|
+
showBillingButton: a,
|
447
447
|
allowTeamCreation: i,
|
448
448
|
isProviderAlpha: c,
|
449
449
|
canAccessTeamSettings: u,
|
@@ -460,7 +460,7 @@ const qn = "_sidebarContainer_bmdti_1", Bn = {
|
|
460
460
|
{
|
461
461
|
src: t.logoUrl,
|
462
462
|
className: j(L.profileImage, {
|
463
|
-
[L.profileImageHighlight]:
|
463
|
+
[L.profileImageHighlight]: s
|
464
464
|
}),
|
465
465
|
alt: "Team Logo"
|
466
466
|
}
|
@@ -468,12 +468,12 @@ const qn = "_sidebarContainer_bmdti_1", Bn = {
|
|
468
468
|
"div",
|
469
469
|
{
|
470
470
|
className: j(L.userIconWrapper, "flex-row", "align-center", "items-center", {
|
471
|
-
[L.profileImageHighlight]:
|
471
|
+
[L.profileImageHighlight]: s
|
472
472
|
}),
|
473
|
-
children: /* @__PURE__ */ o(
|
473
|
+
children: /* @__PURE__ */ o(wt, { size: "25px" })
|
474
474
|
}
|
475
475
|
),
|
476
|
-
|
476
|
+
s && /* @__PURE__ */ o(Mt, { className: L.profileImageUpgradeIcon })
|
477
477
|
] }),
|
478
478
|
children: /* @__PURE__ */ o(ue, { placement: "right-end", className: L.menuContainer, children: e({
|
479
479
|
allowTeamCreation: i,
|
@@ -481,33 +481,33 @@ const qn = "_sidebarContainer_bmdti_1", Bn = {
|
|
481
481
|
canAccessTeamSettings: u,
|
482
482
|
isEndOfTrialActive: d,
|
483
483
|
isTeamSuspended: l,
|
484
|
-
showBillingButton:
|
484
|
+
showBillingButton: a,
|
485
485
|
isProviderAlpha: c,
|
486
486
|
isFullyAuthenticated: m
|
487
487
|
}) })
|
488
488
|
}
|
489
489
|
);
|
490
|
-
}, Ht = 0,
|
491
|
-
const
|
492
|
-
if (
|
490
|
+
}, Ht = 0, lr = 9999, ur = [150, 151, 250, 251], dr = [152, 153, 252, 253], mr = [154, 155, 157, 158, 254, 255, 258, 354, 355, 358], _r = [156, 159, 160, 256, 259, 260], Bt = 9998, De = (e) => e === Ht, qt = (e) => e === lr, Za = (e) => ur.includes(e), eo = (e) => dr.includes(e), to = (e) => mr.includes(e), no = (e) => _r.includes(e), ro = (e) => e > Ht && e < Bt, so = (e) => e === Bt, gr = /\n/, mt = (e, t, r) => e.split(t).flatMap((s, a) => a !== 0 ? [an(r, { key: Math.random().toString(32).slice(0, 10) }), s] : s), hr = (e, t, r) => typeof e == "string" ? mt(e, t, r) : e.flatMap((s) => typeof s == "string" ? mt(s, t, r) : s), pr = (e) => hr(e, gr, /* @__PURE__ */ o("br", {})), fr = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi, br = (e) => e.match(fr) ?? [], _t = (e, t, r) => {
|
491
|
+
const s = e.split(t);
|
492
|
+
if (s.length === 1)
|
493
493
|
return e;
|
494
|
-
const
|
495
|
-
return
|
494
|
+
const a = [];
|
495
|
+
return s[0] !== "" && a.push(s[0]), s.shift(), s[s.length - 1] === "" && s.pop(), a.push(
|
496
496
|
/* @__PURE__ */ o("a", { href: t, target: "_blank", rel: "noreferrer noopener", children: t }, t + r)
|
497
|
-
),
|
497
|
+
), a.push(s.join(t)), a.filter((i) => i !== "");
|
498
498
|
}, gt = (e) => {
|
499
|
-
const t =
|
500
|
-
return t != null && t.length ? t.reduce((r,
|
501
|
-
},
|
502
|
-
|
499
|
+
const t = br(e);
|
500
|
+
return t != null && t.length ? t.reduce((r, s, a) => typeof r == "string" ? _t(r, s, a) : r.flatMap((i) => typeof i == "string" ? _t(i, s, a) : i), e) : e;
|
501
|
+
}, Tr = (e) => typeof e == "string" ? gt(e) : e.flatMap((t) => typeof t == "string" ? gt(t) : t, e), vr = (e, t = "PP") => kt(e, t), ao = (e, t, r = "PP") => kt(pn(e, t), r), $e = (e) => {
|
502
|
+
W(e, []);
|
503
503
|
}, ht = {
|
504
504
|
biller: "biller",
|
505
505
|
owner: "owner"
|
506
506
|
}, pt = [
|
507
507
|
ht.biller,
|
508
508
|
ht.owner
|
509
|
-
],
|
510
|
-
const { teams: r, currentTeamId:
|
509
|
+
], Sr = ({ children: e, config: t }) => {
|
510
|
+
const { teams: r, currentTeamId: s, planId: a, isEndOfTrialActive: i, isFullyAuthenticated: c, userTeamRole: u } = t, d = r.find((h) => h.id === s), l = r.filter((h) => h.id !== s), m = pt.includes(u), g = pt.includes(u), v = De(a) || qt(a), b = {
|
511
511
|
...t,
|
512
512
|
currentTeam: d,
|
513
513
|
otherTeams: l,
|
@@ -519,19 +519,19 @@ const qn = "_sidebarContainer_bmdti_1", Bn = {
|
|
519
519
|
allowTeamCreation: c && !i
|
520
520
|
};
|
521
521
|
return /* @__PURE__ */ o(Ut.Provider, { value: b, children: e });
|
522
|
-
},
|
523
|
-
container:
|
524
|
-
profileEmail:
|
525
|
-
},
|
522
|
+
}, Er = ({ config: e, children: t }) => /* @__PURE__ */ o(Sr, { config: e, children: /* @__PURE__ */ o(cr, { children: t }) }), yr = "_container_q5pot_1", Cr = "_profileEmail_q5pot_5", ft = {
|
523
|
+
container: yr,
|
524
|
+
profileEmail: Cr
|
525
|
+
}, Pr = ({
|
526
526
|
href: e,
|
527
527
|
onClick: t,
|
528
528
|
userEmail: r,
|
529
|
-
hideBottomDivider:
|
529
|
+
hideBottomDivider: s
|
530
530
|
}) => {
|
531
|
-
const { isEndOfTrialActive:
|
532
|
-
return
|
531
|
+
const { isEndOfTrialActive: a, isTeamSuspended: i } = V();
|
532
|
+
return a || i ? null : /* @__PURE__ */ p(He, { children: [
|
533
533
|
/* @__PURE__ */ o(
|
534
|
-
|
534
|
+
Y,
|
535
535
|
{
|
536
536
|
href: e,
|
537
537
|
onClick: () => {
|
@@ -543,77 +543,77 @@ const qn = "_sidebarContainer_bmdti_1", Bn = {
|
|
543
543
|
] })
|
544
544
|
}
|
545
545
|
),
|
546
|
-
!
|
546
|
+
!s && /* @__PURE__ */ o(It, {})
|
547
547
|
] });
|
548
|
-
},
|
549
|
-
wrapper:
|
550
|
-
profileImage:
|
551
|
-
teamDetails:
|
552
|
-
planWrapper:
|
553
|
-
teamName:
|
554
|
-
membership:
|
555
|
-
defaultProfileImage:
|
548
|
+
}, Ar = "_wrapper_1in7x_5", Rr = "_profileImage_1in7x_11", wr = "_teamDetails_1in7x_19", Ir = "_planWrapper_1in7x_28", kr = "_teamName_1in7x_36", jr = "_membership_1in7x_53", Nr = "_defaultProfileImage_1in7x_59", x = {
|
549
|
+
wrapper: Ar,
|
550
|
+
profileImage: Rr,
|
551
|
+
teamDetails: wr,
|
552
|
+
planWrapper: Ir,
|
553
|
+
teamName: kr,
|
554
|
+
membership: jr,
|
555
|
+
defaultProfileImage: Nr
|
556
556
|
}, Dt = ({ team: e, onClick: t, hidePlanLabel: r }) => {
|
557
|
-
const { currentTeam:
|
557
|
+
const { currentTeam: s, planId: a } = V(), i = e || s;
|
558
558
|
if (!i)
|
559
559
|
return null;
|
560
|
-
const c = De(
|
560
|
+
const c = De(a) ? "Free" : qt(a) ? "Trial" : void 0;
|
561
561
|
return /* @__PURE__ */ p(
|
562
|
-
t ?
|
562
|
+
t ? Y : "div",
|
563
563
|
{
|
564
|
-
className:
|
564
|
+
className: x.wrapper,
|
565
565
|
...t && { onClick: () => t(i) },
|
566
566
|
children: [
|
567
|
-
i.logoUrl ? /* @__PURE__ */ o("img", { className:
|
568
|
-
/* @__PURE__ */ p("div", { className:
|
569
|
-
/* @__PURE__ */ p("div", { className:
|
570
|
-
/* @__PURE__ */ o("span", { title: i.name, className:
|
571
|
-
c && !r && /* @__PURE__ */ o("span", { className:
|
567
|
+
i.logoUrl ? /* @__PURE__ */ o("img", { className: x.profileImage, src: i.logoUrl, alt: "Team logo" }) : /* @__PURE__ */ o("span", { className: `${x.defaultProfileImage}`, children: /* @__PURE__ */ o(wt, { size: "25px" }) }),
|
568
|
+
/* @__PURE__ */ p("div", { className: x.teamDetails, children: [
|
569
|
+
/* @__PURE__ */ p("div", { className: x.planWrapper, children: [
|
570
|
+
/* @__PURE__ */ o("span", { title: i.name, className: x.teamName, children: i.name }),
|
571
|
+
c && !r && /* @__PURE__ */ o("span", { className: x.teamName, children: c })
|
572
572
|
] }),
|
573
|
-
/* @__PURE__ */ o("span", { className:
|
573
|
+
/* @__PURE__ */ o("span", { className: x.membership, children: i.role })
|
574
574
|
] })
|
575
575
|
]
|
576
576
|
}
|
577
577
|
);
|
578
|
-
},
|
579
|
-
teamsContainer:
|
580
|
-
},
|
578
|
+
}, Or = "_teamsContainer_1ncrr_5", xr = {
|
579
|
+
teamsContainer: Or
|
580
|
+
}, Lr = ({ onSwitchTeam: e }) => {
|
581
581
|
const { otherTeams: t } = V();
|
582
582
|
return t.length === 0 ? null : /* @__PURE__ */ o(
|
583
583
|
"div",
|
584
584
|
{
|
585
585
|
"data-testid": "sidebar-team-switch",
|
586
|
-
className: `flex-col items-stretch ${
|
586
|
+
className: `flex-col items-stretch ${xr.teamsContainer}`,
|
587
587
|
children: t.map((r) => /* @__PURE__ */ o(Dt, { team: r, onClick: e, hidePlanLabel: !0 }, r.id))
|
588
588
|
}
|
589
589
|
);
|
590
|
-
},
|
591
|
-
container:
|
592
|
-
planCta:
|
593
|
-
upgradeIconWrapper:
|
594
|
-
},
|
595
|
-
const { planId: t, trialDaysLeft: r, showUpgradeCta:
|
596
|
-
if (!
|
590
|
+
}, Mr = "_container_1u995_1", Ur = "_planCta_1u995_15", Hr = "_upgradeIconWrapper_1u995_19", ke = {
|
591
|
+
container: Mr,
|
592
|
+
planCta: Ur,
|
593
|
+
upgradeIconWrapper: Hr
|
594
|
+
}, Br = ({ upgradeOptionHref: e }) => {
|
595
|
+
const { planId: t, trialDaysLeft: r, showUpgradeCta: s } = V();
|
596
|
+
if (!s)
|
597
597
|
return null;
|
598
598
|
const c = De(t) ? "Your team is currently on the Free plan" : `Free trial ends in ${r} ${r === 1 ? "day" : "days"}`;
|
599
599
|
return /* @__PURE__ */ p(
|
600
|
-
|
600
|
+
Y,
|
601
601
|
{
|
602
602
|
"data-testid": "sidebar-upgrade-menu-item",
|
603
603
|
href: e,
|
604
|
-
className: `flex-col gap-1 items-start ${
|
604
|
+
className: `flex-col gap-1 items-start ${ke.container}`,
|
605
605
|
children: [
|
606
|
-
/* @__PURE__ */ o("span", { className:
|
607
|
-
/* @__PURE__ */ p("div", { className: `flex-row items-center gap-1 ${
|
606
|
+
/* @__PURE__ */ o("span", { className: ke.planCta, children: c }),
|
607
|
+
/* @__PURE__ */ p("div", { className: `flex-row items-center gap-1 ${ke.upgradeIconWrapper}`, children: [
|
608
608
|
/* @__PURE__ */ o(Mt, {}),
|
609
609
|
/* @__PURE__ */ o("span", { children: "See upgrade options" })
|
610
610
|
] })
|
611
611
|
]
|
612
612
|
}
|
613
613
|
);
|
614
|
-
},
|
614
|
+
}, qr = Math.min, Dr = Math.max;
|
615
615
|
function bt(e, t, r) {
|
616
|
-
return
|
616
|
+
return Dr(e, qr(t, r));
|
617
617
|
}
|
618
618
|
function $t(e, t) {
|
619
619
|
return typeof e == "function" ? e(t) : e;
|
@@ -621,13 +621,13 @@ function $t(e, t) {
|
|
621
621
|
function Gt(e) {
|
622
622
|
return e.split("-")[0];
|
623
623
|
}
|
624
|
-
function
|
624
|
+
function $r(e) {
|
625
625
|
return e === "x" ? "y" : "x";
|
626
626
|
}
|
627
|
-
function
|
627
|
+
function Gr(e) {
|
628
628
|
return ["top", "bottom"].includes(Gt(e)) ? "y" : "x";
|
629
629
|
}
|
630
|
-
function
|
630
|
+
function Fr(e) {
|
631
631
|
return {
|
632
632
|
top: 0,
|
633
633
|
right: 0,
|
@@ -636,8 +636,8 @@ function Br(e) {
|
|
636
636
|
...e
|
637
637
|
};
|
638
638
|
}
|
639
|
-
function
|
640
|
-
return typeof e != "number" ?
|
639
|
+
function Kr(e) {
|
640
|
+
return typeof e != "number" ? Fr(e) : {
|
641
641
|
top: e,
|
642
642
|
right: e,
|
643
643
|
bottom: e,
|
@@ -648,26 +648,26 @@ function Tt(e) {
|
|
648
648
|
const {
|
649
649
|
x: t,
|
650
650
|
y: r,
|
651
|
-
width:
|
652
|
-
height:
|
651
|
+
width: s,
|
652
|
+
height: a
|
653
653
|
} = e;
|
654
654
|
return {
|
655
|
-
width:
|
656
|
-
height:
|
655
|
+
width: s,
|
656
|
+
height: a,
|
657
657
|
top: r,
|
658
658
|
left: t,
|
659
|
-
right: t +
|
660
|
-
bottom: r +
|
659
|
+
right: t + s,
|
660
|
+
bottom: r + a,
|
661
661
|
x: t,
|
662
662
|
y: r
|
663
663
|
};
|
664
664
|
}
|
665
|
-
async function
|
665
|
+
async function zr(e, t) {
|
666
666
|
var r;
|
667
667
|
t === void 0 && (t = {});
|
668
668
|
const {
|
669
|
-
x:
|
670
|
-
y:
|
669
|
+
x: s,
|
670
|
+
y: a,
|
671
671
|
platform: i,
|
672
672
|
rects: c,
|
673
673
|
elements: u,
|
@@ -678,14 +678,14 @@ async function $r(e, t) {
|
|
678
678
|
elementContext: g = "floating",
|
679
679
|
altBoundary: v = !1,
|
680
680
|
padding: S = 0
|
681
|
-
} = $t(t, e), _ =
|
681
|
+
} = $t(t, e), _ = Kr(S), b = u[v ? g === "floating" ? "reference" : "floating" : g], h = Tt(await i.getClippingRect({
|
682
682
|
element: (r = await (i.isElement == null ? void 0 : i.isElement(b))) == null || r ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(u.floating)),
|
683
683
|
boundary: l,
|
684
684
|
rootBoundary: m,
|
685
685
|
strategy: d
|
686
686
|
})), f = g === "floating" ? {
|
687
|
-
x:
|
688
|
-
y:
|
687
|
+
x: s,
|
688
|
+
y: a,
|
689
689
|
width: c.floating.width,
|
690
690
|
height: c.floating.height
|
691
691
|
} : c.reference, T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u.floating)), P = await (i.isElement == null ? void 0 : i.isElement(T)) ? await (i.getScale == null ? void 0 : i.getScale(T)) || {
|
@@ -707,15 +707,15 @@ async function $r(e, t) {
|
|
707
707
|
right: (C.right - h.right + _.right) / P.x
|
708
708
|
};
|
709
709
|
}
|
710
|
-
const
|
710
|
+
const Jr = function(e) {
|
711
711
|
return e === void 0 && (e = {}), {
|
712
712
|
name: "shift",
|
713
713
|
options: e,
|
714
714
|
async fn(t) {
|
715
715
|
const {
|
716
716
|
x: r,
|
717
|
-
y:
|
718
|
-
placement:
|
717
|
+
y: s,
|
718
|
+
placement: a
|
719
719
|
} = t, {
|
720
720
|
mainAxis: i = !0,
|
721
721
|
crossAxis: c = !1,
|
@@ -734,8 +734,8 @@ const Gr = function(e) {
|
|
734
734
|
...d
|
735
735
|
} = $t(e, t), l = {
|
736
736
|
x: r,
|
737
|
-
y:
|
738
|
-
}, m = await
|
737
|
+
y: s
|
738
|
+
}, m = await zr(t, d), g = Gr(Gt(a)), v = $r(g);
|
739
739
|
let S = l[v], _ = l[g];
|
740
740
|
if (i) {
|
741
741
|
const b = v === "y" ? "top" : "left", h = v === "y" ? "bottom" : "right", f = S + m[b], T = S - m[h];
|
@@ -745,16 +745,16 @@ const Gr = function(e) {
|
|
745
745
|
const b = g === "y" ? "top" : "left", h = g === "y" ? "bottom" : "right", f = _ + m[b], T = _ - m[h];
|
746
746
|
_ = bt(f, _, T);
|
747
747
|
}
|
748
|
-
const
|
748
|
+
const y = u.fn({
|
749
749
|
...t,
|
750
750
|
[v]: S,
|
751
751
|
[g]: _
|
752
752
|
});
|
753
753
|
return {
|
754
|
-
...
|
754
|
+
...y,
|
755
755
|
data: {
|
756
|
-
x:
|
757
|
-
y:
|
756
|
+
x: y.x - r,
|
757
|
+
y: y.y - s,
|
758
758
|
enabled: {
|
759
759
|
[v]: i,
|
760
760
|
[g]: c
|
@@ -763,50 +763,50 @@ const Gr = function(e) {
|
|
763
763
|
};
|
764
764
|
}
|
765
765
|
};
|
766
|
-
},
|
767
|
-
navItem:
|
768
|
-
activeNavItem:
|
769
|
-
badge:
|
770
|
-
}, Ft =
|
771
|
-
const t = e.lastIndexOf("."), r = e.slice(0, t),
|
772
|
-
return { name: r, extension:
|
773
|
-
},
|
766
|
+
}, Qr = "_navItem_1dudv_1", Wr = "_activeNavItem_1dudv_18", Yr = "_badge_1dudv_23", je = {
|
767
|
+
navItem: Qr,
|
768
|
+
activeNavItem: Wr,
|
769
|
+
badge: Yr
|
770
|
+
}, Ft = At({}), Z = () => Pt(Ft), Xr = (e) => {
|
771
|
+
const t = e.lastIndexOf("."), r = e.slice(0, t), s = e.slice(t + 1);
|
772
|
+
return { name: r, extension: s };
|
773
|
+
}, Vr = (e, t) => {
|
774
774
|
switch (e) {
|
775
|
-
case
|
775
|
+
case R.Completed:
|
776
776
|
return t < 100 ? "Closed" : "Completed";
|
777
|
-
case
|
777
|
+
case R.Created:
|
778
778
|
return t > 0 ? "In progress" : "Not started";
|
779
|
-
case
|
779
|
+
case R.InProgress:
|
780
780
|
return "In progress";
|
781
|
-
case
|
781
|
+
case R.Queued:
|
782
782
|
return "Queued";
|
783
|
-
case
|
783
|
+
case R.NotStarted:
|
784
784
|
return "Not started";
|
785
785
|
default:
|
786
786
|
return "-";
|
787
787
|
}
|
788
|
-
},
|
788
|
+
}, Zr = (e) => {
|
789
789
|
const t = e.progress ?? 0;
|
790
|
-
return e.status ===
|
791
|
-
},
|
792
|
-
[
|
793
|
-
[
|
794
|
-
[
|
795
|
-
[
|
796
|
-
},
|
790
|
+
return e.status === R.Created && t > 0 ? R.InProgress : e.status;
|
791
|
+
}, es = {
|
792
|
+
[se.translation]: "#0891B2",
|
793
|
+
[se.review]: "#16922D",
|
794
|
+
[se.lqa_by_ai]: "#8B5CF6",
|
795
|
+
[se.automatic_translation]: "#60A5FA"
|
796
|
+
}, ts = (e) => {
|
797
797
|
const t = [
|
798
|
-
|
799
|
-
|
800
|
-
|
798
|
+
R.InProgress,
|
799
|
+
R.Created,
|
800
|
+
R.Completed
|
801
801
|
];
|
802
|
-
return e.filter((r) => r.status !== "queued").map((r) => ({ ...r, status:
|
803
|
-
}, vt = (e) => [Le.InProgress, Le.Created].includes(e),
|
804
|
-
const [r,
|
802
|
+
return e.filter((r) => r.status !== "queued").map((r) => ({ ...r, status: Zr(r) })).sort((r, s) => r.status === R.InProgress && r.progress === 100 ? -1 : s.status === R.InProgress && s.progress === 100 ? 1 : r.status === s.status ? r.name < s.name ? 1 : -1 : t.indexOf(r.status) - t.indexOf(s.status));
|
803
|
+
}, vt = (e) => [Le.InProgress, Le.Created].includes(e), ns = (e, t) => vt(e.status) && vt(t.status) && (t.progress ?? 0) >= 100, rs = ({ task: e, language: t }) => {
|
804
|
+
const [r, s] = k(!1), [a, i] = k(!1), { onLanguageCompleteConfirm: c, fetchTasks: u } = Z(), d = () => {
|
805
805
|
i(!1);
|
806
806
|
};
|
807
807
|
return /* @__PURE__ */ p(He, { children: [
|
808
|
-
|
809
|
-
|
808
|
+
a && /* @__PURE__ */ o(
|
809
|
+
ln,
|
810
810
|
{
|
811
811
|
opened: !0,
|
812
812
|
loading: r,
|
@@ -815,9 +815,9 @@ const Gr = function(e) {
|
|
815
815
|
closeText: "Cancel",
|
816
816
|
onClose: d,
|
817
817
|
onConfirm: async () => {
|
818
|
-
|
818
|
+
s(!0), await c({ task: e, language: t, closePrompt: d }), u();
|
819
819
|
},
|
820
|
-
children: /* @__PURE__ */ p(
|
820
|
+
children: /* @__PURE__ */ p(un, { status: "info", children: [
|
821
821
|
"Make sure you are finished and ",
|
822
822
|
/* @__PURE__ */ o("strong", { children: "mark it as done" }),
|
823
823
|
" to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
|
@@ -835,12 +835,12 @@ const Gr = function(e) {
|
|
835
835
|
}
|
836
836
|
)
|
837
837
|
] });
|
838
|
-
},
|
839
|
-
langRowCompleted:
|
840
|
-
langCellSecondary:
|
841
|
-
langStatus:
|
842
|
-
},
|
843
|
-
const { getProjectUrl: r, langNameOnClick:
|
838
|
+
}, ss = "_langRowCompleted_vpgdi_1", as = "_langCellSecondary_vpgdi_15", os = "_langStatus_vpgdi_20", Ne = {
|
839
|
+
langRowCompleted: ss,
|
840
|
+
langCellSecondary: as,
|
841
|
+
langStatus: os
|
842
|
+
}, is = ({ language: e, task: t }) => {
|
843
|
+
const { getProjectUrl: r, langNameOnClick: s, langProgressOnClick: a } = Z(), i = e.progress ?? 0, c = e.status === R.Completed, u = ns(t, e);
|
844
844
|
return /* @__PURE__ */ p(
|
845
845
|
"tr",
|
846
846
|
{
|
@@ -853,7 +853,7 @@ const Gr = function(e) {
|
|
853
853
|
{
|
854
854
|
href: r({ task: t, language: e }),
|
855
855
|
onClick: () => {
|
856
|
-
|
856
|
+
s == null || s({ task: t, language: e });
|
857
857
|
},
|
858
858
|
children: e.name
|
859
859
|
}
|
@@ -863,7 +863,7 @@ const Gr = function(e) {
|
|
863
863
|
{
|
864
864
|
href: r({ task: t, language: e, taskUncompleted: !0 }),
|
865
865
|
onClick: () => {
|
866
|
-
|
866
|
+
a == null || a({ task: t, language: e });
|
867
867
|
},
|
868
868
|
children: e.base_words_total - e.base_words_done
|
869
869
|
}
|
@@ -872,38 +872,38 @@ const Gr = function(e) {
|
|
872
872
|
i,
|
873
873
|
"%"
|
874
874
|
] }),
|
875
|
-
/* @__PURE__ */ o("td", { children: u ? /* @__PURE__ */ o(
|
875
|
+
/* @__PURE__ */ o("td", { children: u ? /* @__PURE__ */ o(rs, { task: t, language: e }) : /* @__PURE__ */ o(
|
876
876
|
"span",
|
877
877
|
{
|
878
878
|
className: `${Ne.langStatus} flex-row items-center justify-start`,
|
879
879
|
"data-status": e.status,
|
880
|
-
children:
|
880
|
+
children: Vr(e.status, i)
|
881
881
|
}
|
882
882
|
) })
|
883
883
|
]
|
884
884
|
}
|
885
885
|
);
|
886
|
-
},
|
887
|
-
taskContainer:
|
888
|
-
taskTitle:
|
889
|
-
taskDescription:
|
890
|
-
languagesTable:
|
891
|
-
metadata:
|
892
|
-
},
|
893
|
-
const { getProjectUrl: t, taskTitleOnClick: r } = Z(),
|
886
|
+
}, cs = "_taskContainer_mt2or_1", ls = "_taskTitle_mt2or_21", us = "_taskDescription_mt2or_28", ds = "_languagesTable_mt2or_35", ms = "_metadata_mt2or_87", B = {
|
887
|
+
taskContainer: cs,
|
888
|
+
taskTitle: ls,
|
889
|
+
taskDescription: us,
|
890
|
+
languagesTable: ds,
|
891
|
+
metadata: ms
|
892
|
+
}, _s = ({ task: e }) => {
|
893
|
+
const { getProjectUrl: t, taskTitleOnClick: r } = Z(), s = ts(e.langs), a = (i) => {
|
894
894
|
window.open(
|
895
895
|
`/style-guide/${e.team_id}/download/${i.id}/link`,
|
896
896
|
"_blank",
|
897
897
|
"noopener,noreferrer"
|
898
898
|
);
|
899
899
|
};
|
900
|
-
return /* @__PURE__ */ p("div", { className:
|
900
|
+
return /* @__PURE__ */ p("div", { className: B.taskContainer, children: [
|
901
901
|
/* @__PURE__ */ p("div", { className: "flex-row gap-1 items-center", children: [
|
902
902
|
/* @__PURE__ */ p("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
|
903
|
-
/* @__PURE__ */ o(Oe, { color:
|
903
|
+
/* @__PURE__ */ o(Oe, { color: es[e.task_type], variant: "solid", children: e.task_type.toLocaleUpperCase() }),
|
904
904
|
e.due_date && /* @__PURE__ */ p(Oe, { color: "#EAB308", children: [
|
905
905
|
"DUE ",
|
906
|
-
|
906
|
+
vr(gn(e.due_date), "yyyy-MM-dd")
|
907
907
|
] })
|
908
908
|
] }),
|
909
909
|
e.style_guides.length > 0 && /* @__PURE__ */ o("div", { className: "flex-row", children: e.style_guides.length === 1 ? /* @__PURE__ */ o(
|
@@ -911,7 +911,7 @@ const Gr = function(e) {
|
|
911
911
|
{
|
912
912
|
size: "sm",
|
913
913
|
variant: "secondary",
|
914
|
-
onClick: () =>
|
914
|
+
onClick: () => a(e.style_guides[0]),
|
915
915
|
children: "Download style guide"
|
916
916
|
}
|
917
917
|
) : /* @__PURE__ */ o(
|
@@ -919,17 +919,17 @@ const Gr = function(e) {
|
|
919
919
|
{
|
920
920
|
menuButton: /* @__PURE__ */ o(xe, { variant: "secondary", size: "sm", children: "Download style guide" }),
|
921
921
|
children: /* @__PURE__ */ o(ue, { children: e.style_guides.map((i) => /* @__PURE__ */ o(
|
922
|
-
|
922
|
+
Y,
|
923
923
|
{
|
924
|
-
onClick: () =>
|
925
|
-
children:
|
924
|
+
onClick: () => a(i),
|
925
|
+
children: Xr(i.name).name
|
926
926
|
},
|
927
927
|
i.id
|
928
928
|
)) })
|
929
929
|
}
|
930
930
|
) })
|
931
931
|
] }),
|
932
|
-
/* @__PURE__ */ o("h4", { className:
|
932
|
+
/* @__PURE__ */ o("h4", { className: B.taskTitle, children: /* @__PURE__ */ o(
|
933
933
|
U,
|
934
934
|
{
|
935
935
|
href: t({ task: e, view: "multi" }),
|
@@ -939,17 +939,17 @@ const Gr = function(e) {
|
|
939
939
|
children: e.title
|
940
940
|
}
|
941
941
|
) }),
|
942
|
-
e.description && /* @__PURE__ */ o("div", { className:
|
943
|
-
/* @__PURE__ */ p("table", { className:
|
942
|
+
e.description && /* @__PURE__ */ o("div", { className: B.taskDescription, children: pr(Tr(e.description)) }),
|
943
|
+
/* @__PURE__ */ p("table", { className: B.languagesTable, children: [
|
944
944
|
/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ p("tr", { children: [
|
945
945
|
/* @__PURE__ */ o("th", { children: "Languages" }),
|
946
946
|
/* @__PURE__ */ o("th", { children: "Words to do" }),
|
947
947
|
/* @__PURE__ */ o("th", { children: "Progress" }),
|
948
948
|
/* @__PURE__ */ o("th", { children: "Status" })
|
949
949
|
] }) }),
|
950
|
-
/* @__PURE__ */ o("tbody", { children:
|
950
|
+
/* @__PURE__ */ o("tbody", { children: s.map((i) => /* @__PURE__ */ o(is, { language: i, task: e }, i.lang_id)) })
|
951
951
|
] }),
|
952
|
-
/* @__PURE__ */ p("div", { "data-testid": "sidebar-task-overview-metadata", className:
|
952
|
+
/* @__PURE__ */ p("div", { "data-testid": "sidebar-task-overview-metadata", className: B.metadata, children: [
|
953
953
|
/* @__PURE__ */ p("span", { children: [
|
954
954
|
"Source: ",
|
955
955
|
e.source_lang_name
|
@@ -958,60 +958,60 @@ const Gr = function(e) {
|
|
958
958
|
/* @__PURE__ */ p("span", { children: [
|
959
959
|
"In ",
|
960
960
|
e.project_name,
|
961
|
-
e.master_branching_enabled === "1" && /* @__PURE__ */ o("div", { className:
|
961
|
+
e.master_branching_enabled === "1" && /* @__PURE__ */ o("div", { className: B.tag, children: e.branch_name ? e.branch_name : "master" })
|
962
962
|
] })
|
963
963
|
] })
|
964
964
|
] });
|
965
|
-
},
|
965
|
+
}, A = {
|
966
966
|
TaskCompleted: "task_completed",
|
967
967
|
TaskClosed: "task_closed",
|
968
968
|
Refresh: "refresh",
|
969
969
|
ShowDialog: "show_dialog"
|
970
|
-
},
|
971
|
-
loadingContainer:
|
972
|
-
noTasksContainer:
|
973
|
-
noTasksHeading:
|
974
|
-
noTasksText:
|
975
|
-
tasksContainer:
|
976
|
-
},
|
977
|
-
const { tasks: e, onTasksWidgetOpen: t, loadingTasks: r, fetchTasks:
|
970
|
+
}, gs = "_loadingContainer_19d6m_1", hs = "_noTasksContainer_19d6m_7", ps = "_noTasksHeading_19d6m_14", fs = "_noTasksText_19d6m_18", bs = "_tasksContainer_19d6m_23", z = {
|
971
|
+
loadingContainer: gs,
|
972
|
+
noTasksContainer: hs,
|
973
|
+
noTasksHeading: ps,
|
974
|
+
noTasksText: fs,
|
975
|
+
tasksContainer: bs
|
976
|
+
}, Ts = () => {
|
977
|
+
const { tasks: e, onTasksWidgetOpen: t, loadingTasks: r, fetchTasks: s } = Z();
|
978
978
|
return $e(() => ((async () => {
|
979
|
-
const i = await
|
979
|
+
const i = await s();
|
980
980
|
t == null || t({ tasks: i });
|
981
|
-
})(), document.addEventListener(
|
982
|
-
document.removeEventListener(
|
983
|
-
})), r ? /* @__PURE__ */ o("div", { "data-testid": "sidebar-tasks-loading-popover", className:
|
984
|
-
/* @__PURE__ */ o("h3", { className:
|
985
|
-
/* @__PURE__ */ p("div", { className:
|
981
|
+
})(), document.addEventListener(A.TaskCompleted, s), document.addEventListener(A.TaskClosed, s), document.addEventListener(A.Refresh, s), () => {
|
982
|
+
document.removeEventListener(A.TaskCompleted, s), document.removeEventListener(A.TaskClosed, s), document.removeEventListener(A.Refresh, s);
|
983
|
+
})), r ? /* @__PURE__ */ o("div", { "data-testid": "sidebar-tasks-loading-popover", className: z.loadingContainer, children: /* @__PURE__ */ o(dn, {}) }) : e.length === 0 ? /* @__PURE__ */ p("div", { "data-testid": "sidebar-no-tasks-popover", className: z.noTasksContainer, children: [
|
984
|
+
/* @__PURE__ */ o("h3", { className: z.noTasksHeading, children: "No tasks" }),
|
985
|
+
/* @__PURE__ */ p("div", { className: z.noTasksText, children: [
|
986
986
|
"Your incoming tasks will appear here.",
|
987
987
|
/* @__PURE__ */ o("br", {}),
|
988
988
|
/* @__PURE__ */ o(U, { href: "https://docs.lokalise.com/translation-workflow/tasks", target: "_new", children: "Learn more" })
|
989
989
|
] })
|
990
|
-
] }) : /* @__PURE__ */ o("div", { "data-testid": "sidebar-tasks-popover", className:
|
991
|
-
},
|
992
|
-
const [r,
|
990
|
+
] }) : /* @__PURE__ */ o("div", { "data-testid": "sidebar-tasks-popover", className: z.tasksContainer, children: e.map((a) => /* @__PURE__ */ o(_s, { task: a }, a.id)) });
|
991
|
+
}, vs = ({ children: e, config: t }) => {
|
992
|
+
const [r, s] = k([]), [a, i] = k(!0), [c, u] = k(0), {
|
993
993
|
getProjectUrl: d,
|
994
994
|
onLanguageCompleteConfirm: l,
|
995
995
|
onTasksWidgetOpen: m,
|
996
996
|
langNameOnClick: g,
|
997
997
|
langProgressOnClick: v,
|
998
998
|
taskTitleOnClick: S
|
999
|
-
} = t, { getTasks: _, getTasksCount:
|
999
|
+
} = t, { getTasks: _, getTasksCount: y } = t, b = async () => {
|
1000
1000
|
i(!0);
|
1001
1001
|
const T = await _();
|
1002
|
-
return
|
1002
|
+
return s(T), i(!1), T;
|
1003
1003
|
}, h = async () => {
|
1004
|
-
const T = await
|
1004
|
+
const T = await y();
|
1005
1005
|
u(T);
|
1006
1006
|
};
|
1007
|
-
$e(() => (h(), document.addEventListener(
|
1008
|
-
document.removeEventListener(
|
1007
|
+
$e(() => (h(), document.addEventListener(A.TaskCompleted, h), document.addEventListener(A.TaskClosed, h), document.addEventListener(A.Refresh, h), () => {
|
1008
|
+
document.removeEventListener(A.TaskCompleted, h), document.removeEventListener(A.TaskClosed, h), document.removeEventListener(A.Refresh, h);
|
1009
1009
|
}));
|
1010
1010
|
const f = {
|
1011
1011
|
fetchTasks: b,
|
1012
1012
|
tasks: r,
|
1013
1013
|
tasksCount: c,
|
1014
|
-
loadingTasks:
|
1014
|
+
loadingTasks: a,
|
1015
1015
|
getProjectUrl: d,
|
1016
1016
|
onLanguageCompleteConfirm: l,
|
1017
1017
|
onTasksWidgetOpen: m,
|
@@ -1020,27 +1020,27 @@ const Gr = function(e) {
|
|
1020
1020
|
taskTitleOnClick: S
|
1021
1021
|
};
|
1022
1022
|
return /* @__PURE__ */ o(Ft.Provider, { value: f, children: e });
|
1023
|
-
},
|
1024
|
-
const { config:
|
1025
|
-
return /* @__PURE__ */ o(
|
1026
|
-
},
|
1027
|
-
const [e, t] =
|
1023
|
+
}, Ss = (e) => function(r) {
|
1024
|
+
const { config: s, ...a } = r;
|
1025
|
+
return /* @__PURE__ */ o(vs, { config: s, children: /* @__PURE__ */ o(e, { ...a }) });
|
1026
|
+
}, Es = Ss(() => {
|
1027
|
+
const [e, t] = k(!1), { tasksCount: r } = Z();
|
1028
1028
|
return $e(() => {
|
1029
|
-
const
|
1029
|
+
const s = () => {
|
1030
1030
|
t(!0);
|
1031
1031
|
};
|
1032
|
-
return document.addEventListener(
|
1033
|
-
document.removeEventListener(
|
1032
|
+
return document.addEventListener(A.ShowDialog, s), () => {
|
1033
|
+
document.removeEventListener(A.ShowDialog, s);
|
1034
1034
|
};
|
1035
1035
|
}), /* @__PURE__ */ o(D, { tooltip: "Tasks", placement: "right", children: /* @__PURE__ */ o(
|
1036
|
-
|
1036
|
+
mn,
|
1037
1037
|
{
|
1038
|
-
content: /* @__PURE__ */ o(
|
1038
|
+
content: /* @__PURE__ */ o(Ts, {}),
|
1039
1039
|
placement: "right",
|
1040
1040
|
open: e,
|
1041
1041
|
onOpenChange: t,
|
1042
1042
|
middlewares: [
|
1043
|
-
|
1043
|
+
Jr({
|
1044
1044
|
// Adding some spacing to the top and bottom so the popover
|
1045
1045
|
// doesn't extend to the edges of the screen.
|
1046
1046
|
padding: {
|
@@ -1049,64 +1049,64 @@ const Gr = function(e) {
|
|
1049
1049
|
}
|
1050
1050
|
})
|
1051
1051
|
],
|
1052
|
-
children: (
|
1052
|
+
children: (s) => /* @__PURE__ */ p(
|
1053
1053
|
xe,
|
1054
1054
|
{
|
1055
1055
|
type: "button",
|
1056
1056
|
"data-testid": "sidebar-tasks-widget-button",
|
1057
1057
|
"aria-label": "Tasks",
|
1058
1058
|
className: j(je.navItem, {
|
1059
|
-
[je.activeNavItem]:
|
1059
|
+
[je.activeNavItem]: s
|
1060
1060
|
}),
|
1061
1061
|
children: [
|
1062
|
-
/* @__PURE__ */ o(
|
1062
|
+
/* @__PURE__ */ o(_n, { size: "25px" }),
|
1063
1063
|
r > 0 && /* @__PURE__ */ o("div", { className: je.badge, "aria-label": `${r} items requiring attention`, children: r > 9 ? "9+" : r })
|
1064
1064
|
]
|
1065
1065
|
}
|
1066
1066
|
)
|
1067
1067
|
}
|
1068
1068
|
) });
|
1069
|
-
}),
|
1070
|
-
|
1071
|
-
const
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
const
|
1083
|
-
breadcrumbsItem:
|
1084
|
-
breadcrumbs:
|
1085
|
-
},
|
1069
|
+
}), w = ({ children: e, ...t }) => /* @__PURE__ */ o("nav", { ...t, className: Fn.sidebarContainer, children: e }), ys = ({ children: e }) => /* @__PURE__ */ o("div", { children: e });
|
1070
|
+
w.Top = ys;
|
1071
|
+
const Cs = ({ children: e }) => /* @__PURE__ */ o("div", { children: e });
|
1072
|
+
w.Bottom = Cs;
|
1073
|
+
w.Avatar = Jn;
|
1074
|
+
w.IconLink = Yn;
|
1075
|
+
w.Menu = Zn;
|
1076
|
+
w.ProfileMenu = Er;
|
1077
|
+
w.TeamSwitch = Lr;
|
1078
|
+
w.TeamMenuItem = Dt;
|
1079
|
+
w.UpgradeMenuItem = Br;
|
1080
|
+
w.ProfileSettingsMenuItem = Pr;
|
1081
|
+
w.Tasks = Es;
|
1082
|
+
const Ps = "_breadcrumbsItem_1hm6a_1", As = "_breadcrumbs_1hm6a_1", St = {
|
1083
|
+
breadcrumbsItem: Ps,
|
1084
|
+
breadcrumbs: As
|
1085
|
+
}, oo = ({ items: e }) => /* @__PURE__ */ o("nav", { "aria-label": "breadcrumb", className: St.breadcrumbs, children: e.map((t, r) => /* @__PURE__ */ p(Rt, { children: [
|
1086
1086
|
/* @__PURE__ */ o(U, { className: St.breadcrumbsItem, href: t.link, rel: "noreferrer", children: t.name }),
|
1087
1087
|
r < e.length - 1 && /* @__PURE__ */ o("span", { children: " — " })
|
1088
|
-
] }, `${t.link}-${t.name}`)) }),
|
1089
|
-
!!r && t.some((
|
1090
|
-
t.filter(({ visible:
|
1091
|
-
] }, t[0].label)) }),
|
1092
|
-
badge:
|
1093
|
-
tag:
|
1094
|
-
withNavLinkStyle:
|
1095
|
-
disabled:
|
1096
|
-
projectNavigationItem:
|
1097
|
-
projectNavigationItemDisabled:
|
1098
|
-
},
|
1088
|
+
] }, `${t.link}-${t.name}`)) }), Rs = ({ items: e }) => /* @__PURE__ */ o(He, { children: e.map((t, r) => /* @__PURE__ */ p(Rt, { children: [
|
1089
|
+
!!r && t.some((s) => s.visible) && /* @__PURE__ */ o(It, {}),
|
1090
|
+
t.filter(({ visible: s }) => s).map(({ link: s, label: a, onClick: i }) => /* @__PURE__ */ o(Y, { href: s || "#", "aria-label": a, onClick: i, children: a }, a))
|
1091
|
+
] }, t[0].label)) }), ws = "_badge_1pc1v_1", Is = "_tag_1pc1v_15", ks = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", js = "_disabled_1pc1v_57", Ns = "_projectNavigationItem_1pc1v_61", Os = "_projectNavigationItemDisabled_1pc1v_67", M = {
|
1092
|
+
badge: ws,
|
1093
|
+
tag: Is,
|
1094
|
+
withNavLinkStyle: ks,
|
1095
|
+
disabled: js,
|
1096
|
+
projectNavigationItem: Ns,
|
1097
|
+
projectNavigationItemDisabled: Os
|
1098
|
+
}, Et = ({ label: e, badge: t, novel: r }) => /* @__PURE__ */ p("div", { className: "flex gap-1", children: [
|
1099
1099
|
/* @__PURE__ */ p("div", { children: [
|
1100
1100
|
/* @__PURE__ */ o("span", { children: e }),
|
1101
1101
|
!!t && /* @__PURE__ */ o("div", { className: M.badge, "aria-label": `${t} items requiring attention`, children: t > 9 ? "9+" : t })
|
1102
1102
|
] }),
|
1103
1103
|
!!r && /* @__PURE__ */ o(Oe, { className: M.tag, children: r })
|
1104
|
-
] }), Me =
|
1105
|
-
({ label: e, href: t = "", disabled: r = !1, badge:
|
1104
|
+
] }), Me = on(
|
1105
|
+
({ label: e, href: t = "", disabled: r = !1, badge: s, onClick: a, novel: i }, c) => /* @__PURE__ */ o(D, { tooltip: "You do not have access to this function", show: r, children: /* @__PURE__ */ o(
|
1106
1106
|
"div",
|
1107
1107
|
{
|
1108
1108
|
className: r ? M.projectNavigationItemDisabled : M.projectNavigationItem,
|
1109
|
-
children:
|
1109
|
+
children: a || r || !t ? /* @__PURE__ */ o(
|
1110
1110
|
"button",
|
1111
1111
|
{
|
1112
1112
|
type: "button",
|
@@ -1115,27 +1115,27 @@ const Sa = "_breadcrumbsItem_1hm6a_1", ya = "_breadcrumbs_1hm6a_1", St = {
|
|
1115
1115
|
[M.disabled]: r
|
1116
1116
|
}),
|
1117
1117
|
disabled: r,
|
1118
|
-
onClick:
|
1119
|
-
children: /* @__PURE__ */ o(
|
1118
|
+
onClick: a,
|
1119
|
+
children: /* @__PURE__ */ o(Et, { label: e, badge: s, novel: i })
|
1120
1120
|
}
|
1121
|
-
) : /* @__PURE__ */ o("a", { href: t, className: M.withNavLinkStyle, children: /* @__PURE__ */ o(
|
1121
|
+
) : /* @__PURE__ */ o("a", { href: t, className: M.withNavLinkStyle, children: /* @__PURE__ */ o(Et, { label: e, badge: s, novel: i }) })
|
1122
1122
|
}
|
1123
1123
|
) })
|
1124
1124
|
);
|
1125
1125
|
Me.displayName = "NavigationTabsItem";
|
1126
|
-
const
|
1127
|
-
var
|
1126
|
+
const xs = (e) => (e == null ? void 0 : e.some((t) => t.some((r) => r.visible))) ?? !1, Ls = (e) => e.visible && (!e.dropdown || xs(e.dropdown)), io = ({ navigation: e, activeItem: t }) => /* @__PURE__ */ o("nav", { "aria-label": "Project", children: /* @__PURE__ */ o("ul", { className: q.navigationTabList, "aria-orientation": "horizontal", children: e.filter(Ls).map((r) => {
|
1127
|
+
var s, a, i;
|
1128
1128
|
return r.dropdown ? /* @__PURE__ */ o(
|
1129
1129
|
"li",
|
1130
1130
|
{
|
1131
|
-
className:
|
1131
|
+
className: q.navigationTab,
|
1132
1132
|
"data-testid": r.key,
|
1133
|
-
"aria-selected": (
|
1133
|
+
"aria-selected": (s = r.isActive) == null ? void 0 : s.call(r, t),
|
1134
1134
|
children: /* @__PURE__ */ o(
|
1135
1135
|
le,
|
1136
1136
|
{
|
1137
1137
|
menuButton: ({ opened: c }) => /* @__PURE__ */ o(Me, { label: r.label, disabled: r.disabled, active: c }),
|
1138
|
-
children: /* @__PURE__ */ o(ue, { children: /* @__PURE__ */ o(
|
1138
|
+
children: /* @__PURE__ */ o(ue, { children: /* @__PURE__ */ o(Rs, { items: r.dropdown }) })
|
1139
1139
|
}
|
1140
1140
|
)
|
1141
1141
|
},
|
@@ -1143,9 +1143,9 @@ const Ia = (e) => (e == null ? void 0 : e.some((t) => t.some((r) => r.visible)))
|
|
1143
1143
|
) : /* @__PURE__ */ o(
|
1144
1144
|
"li",
|
1145
1145
|
{
|
1146
|
-
className:
|
1146
|
+
className: q.navigationTab,
|
1147
1147
|
"data-testid": r.key,
|
1148
|
-
"aria-selected": (
|
1148
|
+
"aria-selected": (a = r.isActive) == null ? void 0 : a.call(r, t),
|
1149
1149
|
children: /* @__PURE__ */ o(
|
1150
1150
|
Me,
|
1151
1151
|
{
|
@@ -1162,7 +1162,7 @@ const Ia = (e) => (e == null ? void 0 : e.some((t) => t.some((r) => r.visible)))
|
|
1162
1162
|
r.key
|
1163
1163
|
);
|
1164
1164
|
}) }) });
|
1165
|
-
class
|
1165
|
+
class I {
|
1166
1166
|
/**
|
1167
1167
|
* This constructor is private to prevent the creation of a HeaderBuilder, it's an implementation detail
|
1168
1168
|
* that users of this class should not be aware of. The only way to create a HeaderBuilder is through the
|
@@ -1174,7 +1174,7 @@ class k {
|
|
1174
1174
|
this.factories = t;
|
1175
1175
|
}
|
1176
1176
|
static create(t = {}) {
|
1177
|
-
return new
|
1177
|
+
return new I([() => t]);
|
1178
1178
|
}
|
1179
1179
|
/**
|
1180
1180
|
* Adds a single header to the builder by providing a key and a value.
|
@@ -1194,7 +1194,7 @@ class k {
|
|
1194
1194
|
* @param value - The value of the header
|
1195
1195
|
*/
|
1196
1196
|
add(t, r) {
|
1197
|
-
return new
|
1197
|
+
return new I([...this.factories, () => ({ [t]: r })]);
|
1198
1198
|
}
|
1199
1199
|
/**
|
1200
1200
|
* Adds multiple headers to the builder by providing an object or a promise of an object with the headers.
|
@@ -1218,7 +1218,7 @@ class k {
|
|
1218
1218
|
* @param extension - An object with the headers to add
|
1219
1219
|
*/
|
1220
1220
|
and(t) {
|
1221
|
-
return new
|
1221
|
+
return new I([...this.factories, () => t]);
|
1222
1222
|
}
|
1223
1223
|
/**
|
1224
1224
|
* Adds a factory function that returns a promise of headers to the builder.
|
@@ -1239,7 +1239,7 @@ class k {
|
|
1239
1239
|
* @param factory - A function that returns a promise of headers
|
1240
1240
|
*/
|
1241
1241
|
from(t) {
|
1242
|
-
return new
|
1242
|
+
return new I([...this.factories, t]);
|
1243
1243
|
}
|
1244
1244
|
/**
|
1245
1245
|
* Takes a middleware function that receives the current builder and returns a new, modified, builder.
|
@@ -1284,7 +1284,7 @@ class k {
|
|
1284
1284
|
* @param builder - The builder to merge with
|
1285
1285
|
*/
|
1286
1286
|
merge(t) {
|
1287
|
-
return new
|
1287
|
+
return new I([...this.factories, ...t.factories]);
|
1288
1288
|
}
|
1289
1289
|
/**
|
1290
1290
|
* Resolves the headers by waiting for all the promises to resolve and merging them together.
|
@@ -1298,21 +1298,21 @@ class k {
|
|
1298
1298
|
* console.log(headers) // { 'Content-Type': 'application/json' }
|
1299
1299
|
*/
|
1300
1300
|
async resolve() {
|
1301
|
-
const t = this.factories.map((
|
1301
|
+
const t = this.factories.map((s) => s()), r = await Promise.all(t);
|
1302
1302
|
return Object.assign({}, ...r);
|
1303
1303
|
}
|
1304
1304
|
}
|
1305
1305
|
function Kt(e) {
|
1306
|
-
return new
|
1306
|
+
return new Ms(e);
|
1307
1307
|
}
|
1308
|
-
class
|
1308
|
+
class Ms {
|
1309
1309
|
constructor(t) {
|
1310
1310
|
this.middleware = t;
|
1311
1311
|
}
|
1312
1312
|
apply(t) {
|
1313
1313
|
return t.from(async () => {
|
1314
|
-
const r = this.middleware(
|
1315
|
-
return r instanceof Promise ? r.then((
|
1314
|
+
const r = this.middleware(I.create());
|
1315
|
+
return r instanceof Promise ? r.then((s) => s.resolve()) : r.resolve();
|
1316
1316
|
});
|
1317
1317
|
}
|
1318
1318
|
}
|
@@ -1321,7 +1321,7 @@ const zt = n.union([
|
|
1321
1321
|
n.literal("admin"),
|
1322
1322
|
n.literal("biller"),
|
1323
1323
|
n.literal("member")
|
1324
|
-
]),
|
1324
|
+
]), Us = n.object({
|
1325
1325
|
userId: n.number(),
|
1326
1326
|
userUuid: n.string().uuid(),
|
1327
1327
|
teamId: n.number(),
|
@@ -1339,7 +1339,7 @@ const zt = n.union([
|
|
1339
1339
|
function ee(e) {
|
1340
1340
|
try {
|
1341
1341
|
const t = e.split(".")[1], r = atob(t);
|
1342
|
-
return
|
1342
|
+
return Us.parse(JSON.parse(r));
|
1343
1343
|
} catch {
|
1344
1344
|
return;
|
1345
1345
|
}
|
@@ -1351,36 +1351,36 @@ class ie extends Error {
|
|
1351
1351
|
re(this, "status", 401);
|
1352
1352
|
}
|
1353
1353
|
}
|
1354
|
-
function
|
1354
|
+
function co(e) {
|
1355
1355
|
return Kt(async (t) => {
|
1356
1356
|
var i, c;
|
1357
1357
|
const r = e.getCurrentToken() ?? await ((i = e.generateNewToken) == null ? void 0 : i.call(e));
|
1358
1358
|
if (!r)
|
1359
1359
|
throw new ie();
|
1360
|
-
const { exp:
|
1361
|
-
if (!
|
1360
|
+
const { exp: s } = ee(r.accessToken) ?? { exp: 0 };
|
1361
|
+
if (!hn(new Date(s)))
|
1362
1362
|
return t.add("authorization", `Bearer ${r.accessToken}`);
|
1363
|
-
const
|
1364
|
-
if (!
|
1363
|
+
const a = await e.refreshToken(r);
|
1364
|
+
if (!a)
|
1365
1365
|
throw new ie();
|
1366
|
-
return (c = e.onNewTokenIssued) == null || c.call(e,
|
1366
|
+
return (c = e.onNewTokenIssued) == null || c.call(e, a), t.add("authorization", `Bearer ${a.accessToken}`);
|
1367
1367
|
});
|
1368
1368
|
}
|
1369
|
-
const
|
1369
|
+
const lo = Kt(
|
1370
1370
|
(e) => e.and({ "x-lokalise-plugin": "true" })
|
1371
1371
|
);
|
1372
1372
|
function Jt() {
|
1373
1373
|
const e = Ue(document.cookie, "accessToken"), t = Ue(document.cookie, "refreshToken");
|
1374
1374
|
return !e || !t ? null : { accessToken: e, refreshToken: t };
|
1375
1375
|
}
|
1376
|
-
function
|
1376
|
+
function Hs() {
|
1377
1377
|
return Ue(document.cookie, "csrf_token") ?? null;
|
1378
1378
|
}
|
1379
1379
|
function Ue(e, t) {
|
1380
|
-
var r,
|
1381
|
-
return (
|
1380
|
+
var r, s;
|
1381
|
+
return (s = (r = e.split(";").find((a) => a.trim().startsWith(`${t}=`))) == null ? void 0 : r.trim()) == null ? void 0 : s.substring(t.length + 1);
|
1382
1382
|
}
|
1383
|
-
function
|
1383
|
+
function uo() {
|
1384
1384
|
const e = Jt();
|
1385
1385
|
if (!e)
|
1386
1386
|
return;
|
@@ -1391,68 +1391,68 @@ function so() {
|
|
1391
1391
|
const Qt = n.union([
|
1392
1392
|
n.object({ authorization: n.string() }),
|
1393
1393
|
n.object({ AUTHORIZATION: n.string() })
|
1394
|
-
]),
|
1394
|
+
]), Bs = n.union([
|
1395
1395
|
n.object({ "X-API-Token": n.string() }),
|
1396
1396
|
n.object({ "X-Api-Token": n.string() }),
|
1397
1397
|
n.object({ "x-api-token": n.string() }),
|
1398
1398
|
n.object({ "X-API-TOKEN": n.string() })
|
1399
|
-
]),
|
1399
|
+
]), qs = n.union([
|
1400
1400
|
Qt,
|
1401
|
-
|
1402
|
-
]),
|
1401
|
+
Bs
|
1402
|
+
]), Ds = n.union([
|
1403
1403
|
n.object({ "X-Lokalise-Plugin": n.string() }),
|
1404
1404
|
n.object({ "x-lokalise-plugin": n.string() }),
|
1405
1405
|
n.object({ "X-LOKALISE-PLUGIN": n.string() })
|
1406
|
-
]),
|
1406
|
+
]), N = qs.and(Ds), $s = n.object({
|
1407
1407
|
accessToken: n.string(),
|
1408
1408
|
refreshToken: n.string()
|
1409
|
-
}),
|
1409
|
+
}), Gs = n.union([
|
1410
1410
|
n.object({ "X-Csrf-Token": n.string() }),
|
1411
1411
|
n.object({ "X-CSRF-Token": n.string() }),
|
1412
1412
|
n.object({ "x-csrf-token": n.string() }),
|
1413
1413
|
n.object({ "X-CSRF-TOKEN": n.string() })
|
1414
|
-
]),
|
1414
|
+
]), Fs = n.union([
|
1415
1415
|
Qt,
|
1416
|
-
|
1417
|
-
]), Ge =
|
1416
|
+
Gs
|
1417
|
+
]), Ge = X({
|
1418
1418
|
description: "Takes a teamId and returns a JWT token access and refresh token for the user",
|
1419
1419
|
method: "post",
|
1420
1420
|
requestPathParamsSchema: n.object({ teamId: n.number() }),
|
1421
1421
|
pathResolver: (e) => `/team/${e.teamId}/actions/get-user-token`,
|
1422
|
-
requestHeaderSchema:
|
1422
|
+
requestHeaderSchema: Fs,
|
1423
1423
|
requestBodySchema: n.undefined(),
|
1424
1424
|
isEmptyResponseExpected: !0,
|
1425
|
-
successResponseBodySchema:
|
1425
|
+
successResponseBodySchema: $s
|
1426
1426
|
});
|
1427
|
-
function
|
1427
|
+
function mo(e, t, r) {
|
1428
1428
|
return async () => {
|
1429
|
-
const
|
1430
|
-
if (!
|
1429
|
+
const s = t();
|
1430
|
+
if (!s)
|
1431
1431
|
throw new ie();
|
1432
|
-
return
|
1432
|
+
return G(e, Ge, {
|
1433
1433
|
pathParams: { teamId: Number(await r()) },
|
1434
|
-
headers: await
|
1434
|
+
headers: await I.create().add("x-csrf-token", s).resolve()
|
1435
1435
|
});
|
1436
1436
|
};
|
1437
1437
|
}
|
1438
|
-
function
|
1438
|
+
function _o(e) {
|
1439
1439
|
return async ({ accessToken: t, refreshToken: r }) => {
|
1440
|
-
const
|
1441
|
-
if (!
|
1440
|
+
const s = ee(t);
|
1441
|
+
if (!s)
|
1442
1442
|
throw new ie();
|
1443
|
-
return
|
1444
|
-
pathParams: { teamId:
|
1445
|
-
headers: await
|
1443
|
+
return G(e, Ge, {
|
1444
|
+
pathParams: { teamId: s.teamId },
|
1445
|
+
headers: await I.create().add("authorization", `Bearer ${r}`).resolve()
|
1446
1446
|
});
|
1447
1447
|
};
|
1448
1448
|
}
|
1449
|
-
const
|
1449
|
+
const Ks = {
|
1450
1450
|
teamKey: (e) => ["getUserToken", e]
|
1451
|
-
},
|
1451
|
+
}, zs = (e, t, r) => H({
|
1452
1452
|
...r,
|
1453
|
-
queryFn: async ({ queryKey: [
|
1453
|
+
queryFn: async ({ queryKey: [s, a] }) => G(e, Ge, {
|
1454
1454
|
headers: await t.resolve(),
|
1455
|
-
pathParams: { teamId:
|
1455
|
+
pathParams: { teamId: a }
|
1456
1456
|
})
|
1457
1457
|
}), ce = class ce extends CustomEvent {
|
1458
1458
|
constructor(t) {
|
@@ -1462,125 +1462,134 @@ const Da = {
|
|
1462
1462
|
}
|
1463
1463
|
};
|
1464
1464
|
re(ce, "eventName", "new-jwt-issued");
|
1465
|
-
let
|
1466
|
-
function
|
1467
|
-
const
|
1468
|
-
queryKey:
|
1469
|
-
enabled:
|
1465
|
+
let Q = ce;
|
1466
|
+
function go(e, t, r) {
|
1467
|
+
const s = Hs(), a = zs(e, t.add("x-csrf-token", s ?? ""), {
|
1468
|
+
queryKey: Ks.teamKey(r),
|
1469
|
+
enabled: s !== void 0
|
1470
1470
|
}), i = Ct();
|
1471
|
-
return
|
1472
|
-
|
1473
|
-
}, [
|
1471
|
+
return W(() => {
|
1472
|
+
a.data && a.data.accessToken !== i.current && (window.dispatchEvent(new Q(a.data)), i.current = a.data.accessToken);
|
1473
|
+
}, [a.data]), a;
|
1474
1474
|
}
|
1475
1475
|
function Wt() {
|
1476
|
-
const [e, t] =
|
1477
|
-
return
|
1478
|
-
const r = (
|
1479
|
-
t(
|
1480
|
-
},
|
1481
|
-
return t(
|
1482
|
-
window.removeEventListener(
|
1476
|
+
const [e, t] = k();
|
1477
|
+
return W(() => {
|
1478
|
+
const r = (a) => {
|
1479
|
+
t(a.detail.payload);
|
1480
|
+
}, s = Jt();
|
1481
|
+
return t(s ? ee(s.accessToken) : void 0), window.addEventListener(Q.eventName, r), () => {
|
1482
|
+
window.removeEventListener(Q.eventName, r);
|
1483
1483
|
};
|
1484
1484
|
}, []), e;
|
1485
1485
|
}
|
1486
|
-
const
|
1486
|
+
const Js = N, Qs = n.object({
|
1487
1487
|
user_id: n.number(),
|
1488
1488
|
email: n.string().email(),
|
1489
1489
|
fullname: n.string(),
|
1490
1490
|
created_at: n.string(),
|
1491
1491
|
created_at_timestamp: n.number(),
|
1492
1492
|
role: zt
|
1493
|
-
}),
|
1493
|
+
}), Ws = n.object({
|
1494
1494
|
teamId: n.number(),
|
1495
1495
|
userId: n.number()
|
1496
|
-
}),
|
1496
|
+
}), Ys = n.object({
|
1497
1497
|
team_id: n.number(),
|
1498
|
-
team_user:
|
1499
|
-
}),
|
1498
|
+
team_user: Qs
|
1499
|
+
}), Xs = $({
|
1500
1500
|
description: "Get the details of a team user",
|
1501
|
-
requestHeaderSchema:
|
1502
|
-
requestPathParamsSchema:
|
1501
|
+
requestHeaderSchema: Js,
|
1502
|
+
requestPathParamsSchema: Ws,
|
1503
1503
|
pathResolver: ({ teamId: e, userId: t }) => `/teams/${e}/users/${t}`,
|
1504
|
-
successResponseBodySchema:
|
1505
|
-
}),
|
1504
|
+
successResponseBodySchema: Ys
|
1505
|
+
}), Vs = {
|
1506
1506
|
teamUserKey: (e, t) => ["GetTeamUsers", e, t]
|
1507
|
-
},
|
1507
|
+
}, Zs = (e, t, r) => H({
|
1508
1508
|
...r,
|
1509
|
-
queryFn: async ({ queryKey: [
|
1509
|
+
queryFn: async ({ queryKey: [s, a, i] }) => F(e, Xs, {
|
1510
1510
|
headers: await t.resolve(),
|
1511
|
-
pathParams: { teamId:
|
1511
|
+
pathParams: { teamId: a, userId: i }
|
1512
1512
|
})
|
1513
1513
|
});
|
1514
|
-
function
|
1514
|
+
function ho(e, t) {
|
1515
1515
|
const r = Wt();
|
1516
|
-
return
|
1517
|
-
queryKey:
|
1516
|
+
return Zs(e, t, {
|
1517
|
+
queryKey: Vs.teamUserKey((r == null ? void 0 : r.teamId) ?? 0, (r == null ? void 0 : r.userId) ?? 0),
|
1518
1518
|
enabled: (r == null ? void 0 : r.userId) !== void 0 && r.teamId !== void 0
|
1519
1519
|
});
|
1520
1520
|
}
|
1521
|
-
const
|
1521
|
+
const po = N, ea = n.object({
|
1522
1522
|
lang_id: n.number(),
|
1523
1523
|
lang_iso: n.string(),
|
1524
1524
|
lang_name: n.string(),
|
1525
1525
|
is_writable: n.union([n.literal(0), n.literal(1)])
|
1526
|
-
}),
|
1526
|
+
}), Yt = n.object({
|
1527
1527
|
user_id: n.number(),
|
1528
1528
|
email: n.string().email(),
|
1529
1529
|
fullname: n.string(),
|
1530
1530
|
created_at: n.string(),
|
1531
1531
|
created_at_timestamp: n.number(),
|
1532
1532
|
admin_rights: n.array(n.string()),
|
1533
|
-
languages: n.array(
|
1533
|
+
languages: n.array(ea),
|
1534
1534
|
is_admin: n.boolean(),
|
1535
1535
|
is_reviewer: n.boolean()
|
1536
|
-
}),
|
1537
|
-
n.object({ uuid: n.string().uuid() }),
|
1538
|
-
n.object({ id: n.string() })
|
1539
|
-
]), Za = n.union([
|
1536
|
+
}), Xt = n.object({ id: n.string() }), ta = n.object({ id: n.number() }), Vt = n.object({ uuid: n.string().uuid() }), na = n.union([Vt, Xt]), ra = n.union([
|
1540
1537
|
n.object({ authenticatedUser: n.literal(!0) }),
|
1541
|
-
|
1542
|
-
|
1543
|
-
]),
|
1544
|
-
project
|
1545
|
-
|
1546
|
-
}),
|
1538
|
+
Vt,
|
1539
|
+
ta
|
1540
|
+
]), sa = n.object({
|
1541
|
+
// Ideally this would use the PROJECT_TARGET_SCHEMA, but the API only supports project ID at the moment
|
1542
|
+
project: Xt
|
1543
|
+
}), aa = n.object({
|
1547
1544
|
project_id: n.string(),
|
1548
|
-
|
1549
|
-
}),
|
1545
|
+
contributors: n.array(Yt)
|
1546
|
+
}), oa = n.object({
|
1547
|
+
project: na,
|
1548
|
+
contributor: ra
|
1549
|
+
}), ia = n.object({
|
1550
|
+
project_id: n.string(),
|
1551
|
+
contributor: Yt
|
1552
|
+
}), ca = (e) => "authenticatedUser" in e ? "me" : "uuid" in e ? e.uuid : `${e.id}`, Zt = (e) => "uuid" in e ? e.uuid : e.id, fo = $({
|
1553
|
+
description: "List all contributors for a project",
|
1554
|
+
requestHeaderSchema: N,
|
1555
|
+
requestPathParamsSchema: sa,
|
1556
|
+
pathResolver: ({ project: e }) => `/projects/${Zt(e)}/contributors`,
|
1557
|
+
successResponseBodySchema: aa
|
1558
|
+
}), la = $({
|
1550
1559
|
description: "Get the details of a project contributor",
|
1551
|
-
requestHeaderSchema:
|
1552
|
-
requestPathParamsSchema:
|
1553
|
-
pathResolver: ({ project: e, contributor: t }) => `/projects/${
|
1554
|
-
successResponseBodySchema:
|
1555
|
-
}),
|
1560
|
+
requestHeaderSchema: N,
|
1561
|
+
requestPathParamsSchema: oa,
|
1562
|
+
pathResolver: ({ project: e, contributor: t }) => `/projects/${Zt(e)}/contributors/${ca(t)}`,
|
1563
|
+
successResponseBodySchema: ia
|
1564
|
+
}), ua = {
|
1556
1565
|
projectUserKey: (e) => ["RetrieveContributor", e]
|
1557
|
-
},
|
1566
|
+
}, da = (e, t, r) => H({
|
1558
1567
|
...r,
|
1559
|
-
queryFn: async ({ queryKey: [
|
1560
|
-
pathParams:
|
1568
|
+
queryFn: async ({ queryKey: [s, a] }) => F(e, la, {
|
1569
|
+
pathParams: a,
|
1561
1570
|
headers: await t.resolve()
|
1562
1571
|
})
|
1563
1572
|
});
|
1564
|
-
function
|
1565
|
-
const
|
1566
|
-
return
|
1567
|
-
queryKey:
|
1568
|
-
enabled:
|
1573
|
+
function bo(e, t, r) {
|
1574
|
+
const s = Wt(), a = s != null && s.userId ? { id: s.userId } : { authenticatedUser: !0 };
|
1575
|
+
return da(e, t, {
|
1576
|
+
queryKey: ua.projectUserKey({ project: { id: r }, contributor: a }),
|
1577
|
+
enabled: s !== void 0
|
1569
1578
|
});
|
1570
1579
|
}
|
1571
|
-
const
|
1580
|
+
const ma = n.object({
|
1572
1581
|
lang_iso: n.string(),
|
1573
1582
|
custom_iso: n.string().optional()
|
1574
|
-
}),
|
1583
|
+
}), _a = n.object({
|
1575
1584
|
language_id: n.number(),
|
1576
1585
|
language_iso: n.string(),
|
1577
1586
|
progress: n.number(),
|
1578
1587
|
words_to_do: n.number(),
|
1579
1588
|
project_language_id: n.number(),
|
1580
1589
|
project_language_uuid: n.string().uuid()
|
1581
|
-
}),
|
1590
|
+
}), ga = n.object({
|
1582
1591
|
projectId: n.string()
|
1583
|
-
}),
|
1592
|
+
}), en = n.object({
|
1584
1593
|
lang_id: n.number(),
|
1585
1594
|
lang_iso: n.string(),
|
1586
1595
|
lang_name: n.string(),
|
@@ -1588,13 +1597,13 @@ const is = n.object({
|
|
1588
1597
|
plural_forms: n.array(n.string().optional()),
|
1589
1598
|
project_language_id: n.string(),
|
1590
1599
|
project_language_uuid: n.string().uuid()
|
1591
|
-
}),
|
1600
|
+
}), ha = n.object({
|
1592
1601
|
project_id: n.string(),
|
1593
1602
|
project_uuid: n.string().uuid(),
|
1594
|
-
languages: n.array(
|
1595
|
-
}),
|
1603
|
+
languages: n.array(en)
|
1604
|
+
}), pa = n.object({
|
1596
1605
|
projectId: n.string()
|
1597
|
-
}),
|
1606
|
+
}), fa = n.object({
|
1598
1607
|
languages: n.array(
|
1599
1608
|
n.object({
|
1600
1609
|
lang_iso: n.string(),
|
@@ -1603,10 +1612,10 @@ const is = n.object({
|
|
1603
1612
|
custom_plural_forms: n.array(n.string()).optional()
|
1604
1613
|
})
|
1605
1614
|
)
|
1606
|
-
}),
|
1615
|
+
}), ba = n.object({
|
1607
1616
|
project_id: n.string(),
|
1608
1617
|
project_uuid: n.string().uuid(),
|
1609
|
-
languages: n.array(
|
1618
|
+
languages: n.array(en),
|
1610
1619
|
errors: n.array(
|
1611
1620
|
n.object({
|
1612
1621
|
message: n.string(),
|
@@ -1614,44 +1623,44 @@ const is = n.object({
|
|
1614
1623
|
lang_iso: n.string()
|
1615
1624
|
})
|
1616
1625
|
).optional()
|
1617
|
-
}),
|
1626
|
+
}), Ta = n.object({
|
1618
1627
|
projectId: n.string()
|
1619
|
-
}),
|
1628
|
+
}), va = n.object({
|
1620
1629
|
langs: n.array(
|
1621
1630
|
n.object({
|
1622
1631
|
lang_iso: n.string(),
|
1623
1632
|
base_lang: n.boolean()
|
1624
1633
|
})
|
1625
1634
|
)
|
1626
|
-
}),
|
1635
|
+
}), Sa = n.object({
|
1627
1636
|
result: n.boolean()
|
1628
|
-
}),
|
1637
|
+
}), Ea = $({
|
1629
1638
|
description: "List of project languages",
|
1630
|
-
requestHeaderSchema:
|
1631
|
-
requestPathParamsSchema:
|
1639
|
+
requestHeaderSchema: N,
|
1640
|
+
requestPathParamsSchema: ga,
|
1632
1641
|
pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
|
1633
|
-
successResponseBodySchema:
|
1634
|
-
}),
|
1642
|
+
successResponseBodySchema: ha
|
1643
|
+
}), To = X({
|
1635
1644
|
description: "Add languages to existing project",
|
1636
|
-
requestHeaderSchema:
|
1645
|
+
requestHeaderSchema: N,
|
1637
1646
|
method: "post",
|
1638
|
-
requestPathParamsSchema:
|
1647
|
+
requestPathParamsSchema: pa,
|
1639
1648
|
pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
|
1640
|
-
requestBodySchema:
|
1641
|
-
successResponseBodySchema:
|
1642
|
-
}),
|
1649
|
+
requestBodySchema: fa,
|
1650
|
+
successResponseBodySchema: ba
|
1651
|
+
}), ya = X({
|
1643
1652
|
description: "Bulk update project languages",
|
1644
|
-
requestHeaderSchema:
|
1653
|
+
requestHeaderSchema: N,
|
1645
1654
|
method: "put",
|
1646
|
-
requestPathParamsSchema:
|
1655
|
+
requestPathParamsSchema: Ta,
|
1647
1656
|
pathResolver: ({ projectId: e }) => `/projects/${e}/languages/bulk-update`,
|
1648
|
-
requestBodySchema:
|
1649
|
-
successResponseBodySchema:
|
1650
|
-
}), de =
|
1657
|
+
requestBodySchema: va,
|
1658
|
+
successResponseBodySchema: Sa
|
1659
|
+
}), de = N, Fe = n.union([
|
1651
1660
|
n.literal("localization_files"),
|
1652
1661
|
n.literal("paged_documents"),
|
1653
1662
|
n.literal("marketing")
|
1654
|
-
]),
|
1663
|
+
]), Ca = n.object({
|
1655
1664
|
per_platform_key_names: n.boolean(),
|
1656
1665
|
reviewing: n.boolean(),
|
1657
1666
|
auto_toggle_unverified: n.boolean(),
|
@@ -1662,7 +1671,7 @@ const is = n.object({
|
|
1662
1671
|
custom_translation_statuses_allow_multiple: n.boolean(),
|
1663
1672
|
segmentation: n.boolean(),
|
1664
1673
|
contributor_preview_download_enabled: n.boolean()
|
1665
|
-
}),
|
1674
|
+
}), Pa = n.object({
|
1666
1675
|
not_reviewed: n.number(),
|
1667
1676
|
unverified: n.number(),
|
1668
1677
|
spelling_grammar: n.number(),
|
@@ -1679,14 +1688,14 @@ const is = n.object({
|
|
1679
1688
|
double_space: n.number(),
|
1680
1689
|
special_placeholder: n.number(),
|
1681
1690
|
unbalanced_brackets: n.number()
|
1682
|
-
}),
|
1691
|
+
}), Aa = n.object({
|
1683
1692
|
progress_total: n.number(),
|
1684
1693
|
keys_total: n.number(),
|
1685
1694
|
team: n.number(),
|
1686
1695
|
base_words: n.number(),
|
1687
1696
|
qa_issues_total: n.number(),
|
1688
|
-
qa_issues:
|
1689
|
-
languages: n.array(
|
1697
|
+
qa_issues: Pa,
|
1698
|
+
languages: n.array(_a)
|
1690
1699
|
}), me = n.object({
|
1691
1700
|
project_id: n.string(),
|
1692
1701
|
uuid: n.string().uuid(),
|
@@ -1703,138 +1712,138 @@ const is = n.object({
|
|
1703
1712
|
base_language_iso: n.string(),
|
1704
1713
|
base_project_language_id: n.number(),
|
1705
1714
|
base_project_language_uuid: n.string().uuid(),
|
1706
|
-
settings:
|
1707
|
-
statistics:
|
1708
|
-
}),
|
1715
|
+
settings: Ca.optional(),
|
1716
|
+
statistics: Aa.optional()
|
1717
|
+
}), Ra = n.object({
|
1709
1718
|
name: n.string(),
|
1710
1719
|
team_id: n.string(),
|
1711
1720
|
base_lang_iso: n.string(),
|
1712
|
-
languages: n.array(
|
1721
|
+
languages: n.array(ma),
|
1713
1722
|
project_type: Fe,
|
1714
1723
|
is_segmentation_enabled: n.boolean()
|
1715
|
-
}),
|
1724
|
+
}), yt = n.union([n.literal(0), n.literal(1)]), wa = n.object({
|
1716
1725
|
filter_type: Fe.optional(),
|
1717
1726
|
filter_team_id: n.number().optional(),
|
1718
1727
|
filter_names: n.string().optional(),
|
1719
|
-
include_statistics:
|
1720
|
-
include_settings:
|
1728
|
+
include_statistics: yt.optional(),
|
1729
|
+
include_settings: yt.optional(),
|
1721
1730
|
limit: n.number().optional(),
|
1722
1731
|
page: n.number().optional()
|
1723
|
-
}),
|
1732
|
+
}), Ia = n.object({
|
1724
1733
|
projects: n.array(me)
|
1725
|
-
}),
|
1734
|
+
}), ka = n.object({
|
1726
1735
|
project_id: n.string()
|
1727
|
-
}),
|
1736
|
+
}), ja = n.object({
|
1728
1737
|
project_id: n.string()
|
1729
|
-
}),
|
1738
|
+
}), Na = n.object({
|
1730
1739
|
name: n.string().min(1),
|
1731
1740
|
description: n.string().optional()
|
1732
|
-
}), _e = () => "/projects",
|
1741
|
+
}), _e = () => "/projects", Oa = X({
|
1733
1742
|
description: "Create a new project",
|
1734
1743
|
requestHeaderSchema: de,
|
1735
1744
|
method: "post",
|
1736
1745
|
pathResolver: _e,
|
1737
|
-
requestBodySchema:
|
1746
|
+
requestBodySchema: Ra,
|
1738
1747
|
successResponseBodySchema: me
|
1739
|
-
}),
|
1748
|
+
}), xa = $({
|
1740
1749
|
description: "List all projects",
|
1741
1750
|
requestHeaderSchema: de,
|
1742
1751
|
pathResolver: _e,
|
1743
|
-
requestQuerySchema:
|
1744
|
-
successResponseBodySchema:
|
1745
|
-
}),
|
1752
|
+
requestQuerySchema: wa,
|
1753
|
+
successResponseBodySchema: Ia
|
1754
|
+
}), La = $({
|
1746
1755
|
description: "Retrieve a project",
|
1747
1756
|
requestHeaderSchema: de,
|
1748
|
-
requestPathParamsSchema:
|
1757
|
+
requestPathParamsSchema: ka,
|
1749
1758
|
pathResolver: ({ project_id: e }) => `${_e()}/${e}`,
|
1750
1759
|
successResponseBodySchema: me
|
1751
|
-
}),
|
1760
|
+
}), Ma = X({
|
1752
1761
|
description: "Update a project",
|
1753
1762
|
requestHeaderSchema: de,
|
1754
1763
|
method: "put",
|
1755
|
-
requestPathParamsSchema:
|
1764
|
+
requestPathParamsSchema: ja,
|
1756
1765
|
pathResolver: ({ project_id: e }) => `${_e()}/${e}`,
|
1757
|
-
requestBodySchema:
|
1766
|
+
requestBodySchema: Na,
|
1758
1767
|
successResponseBodySchema: me
|
1759
|
-
}),
|
1768
|
+
}), Ua = n.object({
|
1760
1769
|
projectId: n.string(),
|
1761
1770
|
translationId: n.number()
|
1762
|
-
}),
|
1771
|
+
}), Ha = n.enum(["critical", "major", "minor", "neutral"]), Ba = n.object({
|
1763
1772
|
category: n.string(),
|
1764
1773
|
comment: n.string(),
|
1765
|
-
severity:
|
1766
|
-
}),
|
1774
|
+
severity: Ha
|
1775
|
+
}), qa = n.object({
|
1767
1776
|
score: n.number(),
|
1768
1777
|
hasMajorIssue: n.boolean(),
|
1769
1778
|
hasCriticalIssue: n.boolean(),
|
1770
|
-
issues: n.array(
|
1779
|
+
issues: n.array(Ba)
|
1771
1780
|
});
|
1772
|
-
function
|
1773
|
-
return
|
1781
|
+
function vo(e, t, r = {}) {
|
1782
|
+
return Be({
|
1774
1783
|
...r,
|
1775
|
-
mutationFn: async (
|
1784
|
+
mutationFn: async (s) => G(e, Oa, {
|
1776
1785
|
headers: await t.resolve(),
|
1777
|
-
body:
|
1786
|
+
body: s
|
1778
1787
|
})
|
1779
1788
|
});
|
1780
1789
|
}
|
1781
|
-
const
|
1790
|
+
const So = {
|
1782
1791
|
projectIdKey: (e) => ["listProjectLanguages", e]
|
1783
1792
|
};
|
1784
|
-
function
|
1793
|
+
function Eo(e, t, r) {
|
1785
1794
|
return H({
|
1786
1795
|
...r,
|
1787
|
-
queryFn: async ({ queryKey: [
|
1796
|
+
queryFn: async ({ queryKey: [s, a] }) => F(e, Ea, {
|
1788
1797
|
headers: await t.resolve(),
|
1789
|
-
pathParams: { projectId:
|
1798
|
+
pathParams: { projectId: a }
|
1790
1799
|
})
|
1791
1800
|
});
|
1792
1801
|
}
|
1793
|
-
const
|
1802
|
+
const yo = {
|
1794
1803
|
paramsKey: (e) => ["listProjects", e]
|
1795
1804
|
};
|
1796
|
-
function
|
1805
|
+
function Co(e, t, r) {
|
1797
1806
|
return H({
|
1798
1807
|
...r,
|
1799
|
-
queryFn: async ({ queryKey: [
|
1808
|
+
queryFn: async ({ queryKey: [s, a] }) => F(e, xa, {
|
1800
1809
|
headers: await t.resolve(),
|
1801
|
-
queryParams:
|
1810
|
+
queryParams: a
|
1802
1811
|
})
|
1803
1812
|
});
|
1804
1813
|
}
|
1805
|
-
const
|
1814
|
+
const Po = {
|
1806
1815
|
projectIdKey: (e) => ["retrieveProject", e]
|
1807
1816
|
};
|
1808
|
-
function
|
1817
|
+
function Ao(e, t, r) {
|
1809
1818
|
return H({
|
1810
1819
|
...r,
|
1811
|
-
queryFn: async ({ queryKey: [
|
1820
|
+
queryFn: async ({ queryKey: [s, a] }) => F(e, La, {
|
1812
1821
|
headers: await t.resolve(),
|
1813
|
-
pathParams: { project_id:
|
1822
|
+
pathParams: { project_id: a }
|
1814
1823
|
})
|
1815
1824
|
});
|
1816
1825
|
}
|
1817
|
-
function
|
1818
|
-
return
|
1819
|
-
...
|
1820
|
-
mutationFn: async (
|
1826
|
+
function Ro(e, t, r, s = {}) {
|
1827
|
+
return Be({
|
1828
|
+
...s,
|
1829
|
+
mutationFn: async (a) => G(e, Ma, {
|
1821
1830
|
headers: await t.resolve(),
|
1822
|
-
body:
|
1831
|
+
body: a,
|
1823
1832
|
pathParams: r
|
1824
1833
|
})
|
1825
1834
|
});
|
1826
1835
|
}
|
1827
|
-
function
|
1828
|
-
return
|
1829
|
-
...
|
1830
|
-
mutationFn: async (
|
1836
|
+
function wo(e, t, r, s = {}) {
|
1837
|
+
return Be({
|
1838
|
+
...s,
|
1839
|
+
mutationFn: async (a) => G(e, ya, {
|
1831
1840
|
pathParams: t,
|
1832
1841
|
headers: await r.resolve(),
|
1833
|
-
body:
|
1842
|
+
body: a
|
1834
1843
|
})
|
1835
1844
|
});
|
1836
1845
|
}
|
1837
|
-
function
|
1846
|
+
function Da(e) {
|
1838
1847
|
return {
|
1839
1848
|
isEmptyResponseExpected: e.isEmptyResponseExpected ?? !1,
|
1840
1849
|
isNonJSONResponseExpected: e.isNonJSONResponseExpected ?? !1,
|
@@ -1849,131 +1858,134 @@ function Ms(e) {
|
|
1849
1858
|
metadata: e.metadata
|
1850
1859
|
};
|
1851
1860
|
}
|
1852
|
-
const
|
1861
|
+
const $a = Da({
|
1853
1862
|
description: "Generate translation quality score",
|
1854
|
-
requestHeaderSchema:
|
1855
|
-
requestPathParamsSchema:
|
1863
|
+
requestHeaderSchema: N,
|
1864
|
+
requestPathParamsSchema: Ua,
|
1856
1865
|
pathResolver: ({ projectId: e, translationId: t }) => `/projects/${e}/translations/${t}/scoring-guidance`,
|
1857
|
-
successResponseBodySchema:
|
1858
|
-
}),
|
1866
|
+
successResponseBodySchema: qa
|
1867
|
+
}), Io = {
|
1859
1868
|
paramsKey: (e) => ["getScore", e]
|
1860
1869
|
};
|
1861
|
-
function
|
1870
|
+
function ko(e, t, r) {
|
1862
1871
|
return H({
|
1863
1872
|
...r,
|
1864
|
-
queryFn: async ({ queryKey: [
|
1873
|
+
queryFn: async ({ queryKey: [s, a] }) => F(e, $a, {
|
1865
1874
|
headers: await t.resolve(),
|
1866
|
-
pathParams:
|
1875
|
+
pathParams: a
|
1867
1876
|
})
|
1868
1877
|
});
|
1869
1878
|
}
|
1870
1879
|
export {
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1880
|
+
pa as ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA,
|
1881
|
+
fa as ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
|
1882
|
+
ba as ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA,
|
1883
|
+
Ta as BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
|
1884
|
+
va as BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA,
|
1885
|
+
Sa as BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
|
1886
|
+
oo as Breadcrumbs,
|
1887
|
+
po as CONTRIBUTOR_API_BASE_HEADER_SCHEMA,
|
1888
|
+
ea as CONTRIBUTOR_LANGUAGE_SCHEMA,
|
1889
|
+
Yt as CONTRIBUTOR_SCHEMA,
|
1890
|
+
Ra as CREATE_PROJECT_REQUEST_BODY_SCHEMA,
|
1891
|
+
Bt as ENTERPRISE_OPENSOURCE_PLAN_ID,
|
1892
|
+
_r as ENTERPRISE_PLAN_IDS,
|
1893
|
+
dr as ESSENTIAL_PLAN_IDS,
|
1885
1894
|
Ht as FREE_PLAN_ID,
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1895
|
+
Ua as GET_SCORE_REQUEST_QUERY_SCHEMA,
|
1896
|
+
qa as GET_SCORE_RESPONSE_SCHEMA,
|
1897
|
+
I as HeaderBuilder,
|
1898
|
+
Ba as ISSUE_SCHEMA,
|
1899
|
+
$s as JWT_TOKEN_SCHEMA,
|
1900
|
+
co as JwtAuthHeaderBuilderMiddleware,
|
1901
|
+
ma as LANGUAGE_ISO_SCHEMA,
|
1902
|
+
en as LANGUAGE_SCHEMA,
|
1903
|
+
_a as LANGUAGE_STATISTICS_SCHEMA,
|
1904
|
+
sa as LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA,
|
1905
|
+
aa as LIST_CONTRIBUTORS_RESPONSE_SCHEMA,
|
1906
|
+
wa as LIST_PROJECTS_REQUEST_QUERY_SCHEMA,
|
1907
|
+
Ia as LIST_PROJECTS_SUCCESS_RESPONSE_BODY,
|
1908
|
+
ga as LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
|
1909
|
+
ha as LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
|
1899
1910
|
oe as NavigationPanel,
|
1900
|
-
|
1911
|
+
io as NavigationTabs,
|
1901
1912
|
de as PROJECT_API_BASE_HEADERS_SCHEMA,
|
1902
|
-
|
1913
|
+
Pa as PROJECT_QA_ISSUES_SCHEMA,
|
1903
1914
|
me as PROJECT_SCHEMA,
|
1904
|
-
|
1905
|
-
|
1915
|
+
Ca as PROJECT_SETTINGS_SCHEMA,
|
1916
|
+
Aa as PROJECT_STATISTICS_SCHEMA,
|
1906
1917
|
Fe as PROJECT_TYPE_SCHEMA,
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1918
|
+
mr as PRO_PLAN_IDS,
|
1919
|
+
lo as PublicApiHeaderBuilderMiddleware,
|
1920
|
+
oa as RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA,
|
1921
|
+
ia as RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA,
|
1922
|
+
ka as RETRIEVE_PROJECT_PATH_PARAM_SCHEMA,
|
1923
|
+
Ha as SEVERITY_ENUM,
|
1924
|
+
ur as START_PLAN_IDS,
|
1925
|
+
w as Sidebar,
|
1926
|
+
R as SidebarTaskLanguageStatuses,
|
1916
1927
|
Le as SidebarTaskStatuses,
|
1917
|
-
|
1928
|
+
se as SidebarTaskTypeOptions,
|
1918
1929
|
zt as TEAM_ROLE_SCHEMA,
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1930
|
+
Js as TEAM_USER_API_BASE_HEADERS_SCHEMA,
|
1931
|
+
Ws as TEAM_USER_PATH_PARAMS_SCHEMA,
|
1932
|
+
Ys as TEAM_USER_RESPONSE_SCHEMA,
|
1933
|
+
Qs as TEAM_USER_SCHEMA,
|
1934
|
+
lr as TRIAL_PLAN_ID,
|
1935
|
+
ja as UPDATE_PROJECT_PATH_PARAMS_SCHEMA,
|
1936
|
+
Na as UPDATE_PROJECT_REQUEST_BODY_SCHEMA,
|
1937
|
+
Fs as USER_TOKEN_REQUEST_HEADER_SCHEMA,
|
1927
1938
|
ie as UnauthorizedError,
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1939
|
+
To as addLanguagesToProject,
|
1940
|
+
ya as bulkUpdateProjectLanguages,
|
1941
|
+
pr as convertNewLineToBreakTag,
|
1931
1942
|
Kt as createHeaderBuilderMiddleware,
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1943
|
+
Oa as createProject,
|
1944
|
+
vr as formatDate,
|
1945
|
+
ao as formatDateTz,
|
1946
|
+
mo as generateTokenFromClassicSession,
|
1947
|
+
uo as getAuthenticatedSessionDetailFromRequest,
|
1948
|
+
Hs as getCsrfTokenFromCookie,
|
1938
1949
|
Jt as getJwtTokenFromCookie,
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1950
|
+
Io as getScoreKey,
|
1951
|
+
Xs as getTeamUser,
|
1952
|
+
Vs as getTeamUsersQueryKey,
|
1942
1953
|
Ge as getUserToken,
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1954
|
+
Ks as getUserTokenKey,
|
1955
|
+
so as isEnterpriseOpenSourcePlan,
|
1956
|
+
no as isEnterprisePlan,
|
1957
|
+
eo as isEssentialPlan,
|
1947
1958
|
De as isFreePlan,
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1959
|
+
ro as isPaidPlan,
|
1960
|
+
to as isProPlan,
|
1961
|
+
Za as isStartPlan,
|
1962
|
+
qt as isTrialPlan,
|
1963
|
+
fo as listContributors,
|
1964
|
+
Ea as listProjectLanguages,
|
1965
|
+
So as listProjectLanguagesKey,
|
1966
|
+
xa as listProjects,
|
1967
|
+
yo as listProjectsKey,
|
1968
|
+
Tr as makeUrlClickable,
|
1957
1969
|
ee as parseJwtTokenPayload,
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1970
|
+
_o as refreshExpiredToken,
|
1971
|
+
la as retrieveContributor,
|
1972
|
+
ua as retrieveContributorKeys,
|
1973
|
+
La as retrieveProject,
|
1974
|
+
Po as retrieveProjectQueryKey,
|
1975
|
+
Ma as updateProject,
|
1976
|
+
bo as useAuthenticatedProjectContributor,
|
1965
1977
|
Wt as useAuthenticatedSessionPayload,
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1978
|
+
ho as useAuthenticatedUser,
|
1979
|
+
wo as useBulkUpdateProjectLanguagesMutation,
|
1980
|
+
vo as useCreateProjectMutation,
|
1969
1981
|
$e as useEffectOnce,
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1982
|
+
go as useGetPromotedClassicSessionJwtQuery,
|
1983
|
+
ko as useGetScoreQuery,
|
1984
|
+
Zs as useGetTeamUsersQuery,
|
1985
|
+
zs as useGetUserTokenQuery,
|
1986
|
+
Eo as useListProjectLanguagesQuery,
|
1987
|
+
Co as useListProjectsQuery,
|
1988
|
+
da as useRetrieveContributorQuery,
|
1989
|
+
Ao as useRetrieveProjectQuery,
|
1990
|
+
Ro as useUpdateProjectMutation
|
1979
1991
|
};
|