@lokalise/harmony 1.20.2 → 1.20.3
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 +268 -260
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +3 -3
- package/dist/types/src/features/publicApi/contributors.d.ts +57 -58
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +5 -5
- package/dist/types/src/features/publicApi/teamUsers.d.ts +42 -43
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +21 -10
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +11 -0
- package/package.json +1 -1
package/dist/harmony.mjs
CHANGED
@@ -3,15 +3,15 @@ var tn = (e, t, n) => t in e ? en(e, t, { enumerable: !0, configurable: !0, writ
|
|
3
3
|
var ne = (e, t, n) => tn(e, typeof t != "symbol" ? t + "" : t, n);
|
4
4
|
import { jsx as s, jsxs as f, Fragment as Ue } from "react/jsx-runtime";
|
5
5
|
import * as K from "react";
|
6
|
-
import { useRef as Ct, useState as
|
7
|
-
import { Tooltip as
|
8
|
-
import { format as
|
6
|
+
import { useRef as Ct, useState as I, useCallback as We, useEffect as J, useContext as wt, createContext as Pt, cloneElement as nn, Fragment as At, forwardRef as rn } from "react";
|
7
|
+
import { Tooltip as q, Link as M, Menu as ce, MenuList as le, CaretUpIcon as an, UserIcon as kt, MenuItem as W, MenuDivider as Rt, ConfirmModal as on, Alert as sn, Tag as je, Button as Oe, Loading as cn, Popover as ln, JobIcon as dn } from "@lokalise/louis";
|
8
|
+
import { format as It, parseISO as un, isThisSecond as mn } from "date-fns";
|
9
9
|
import { toZonedTime as _n } from "date-fns-tz";
|
10
10
|
import { z as r } from "zod";
|
11
11
|
import { buildPayloadRoute as He } from "@lokalise/universal-ts-utils/api-contracts/apiContracts";
|
12
12
|
import { sendByPayloadRoute as D, sendByGetRoute as Q } from "@lokalise/frontend-http-client";
|
13
|
-
import { useQuery as $, useMutation as
|
14
|
-
import { buildGetRoute as Y, buildPayloadRoute as
|
13
|
+
import { useQuery as $, useMutation as Be } from "@tanstack/react-query";
|
14
|
+
import { buildGetRoute as Y, buildPayloadRoute as Nt } from "@lokalise/universal-ts-utils/node";
|
15
15
|
const xe = {
|
16
16
|
Completed: "completed",
|
17
17
|
InProgress: "in_progress",
|
@@ -27,11 +27,11 @@ const xe = {
|
|
27
27
|
automatic_translation: "automatic_translation"
|
28
28
|
};
|
29
29
|
var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
30
|
-
function
|
30
|
+
function jt(e) {
|
31
31
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
32
32
|
}
|
33
33
|
var ge, Qe;
|
34
|
-
function
|
34
|
+
function qe() {
|
35
35
|
if (Qe) return ge;
|
36
36
|
Qe = 1;
|
37
37
|
function e(t) {
|
@@ -152,7 +152,7 @@ var Pe, it;
|
|
152
152
|
function En() {
|
153
153
|
if (it) return Pe;
|
154
154
|
it = 1;
|
155
|
-
var e = hn(), t =
|
155
|
+
var e = hn(), t = qe(), n = Sn(), a = NaN, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, c = /^0o[0-7]+$/i, d = parseInt;
|
156
156
|
function u(l) {
|
157
157
|
if (typeof l == "number")
|
158
158
|
return l;
|
@@ -174,26 +174,26 @@ var Ae, ct;
|
|
174
174
|
function Lt() {
|
175
175
|
if (ct) return Ae;
|
176
176
|
ct = 1;
|
177
|
-
var e =
|
177
|
+
var e = qe(), t = pn(), n = En(), a = "Expected a function", o = Math.max, i = Math.min;
|
178
178
|
function c(d, u, l) {
|
179
179
|
var m, g, T, y, _, E, b = 0, p = !1, h = !1, v = !0;
|
180
180
|
if (typeof d != "function")
|
181
181
|
throw new TypeError(a);
|
182
182
|
u = n(u) || 0, e(l) && (p = !!l.leading, h = "maxWait" in l, T = h ? o(n(l.maxWait) || 0, u) : T, v = "trailing" in l ? !!l.trailing : v);
|
183
183
|
function w(S) {
|
184
|
-
var
|
185
|
-
return m = g = void 0, b = S, y = d.apply(G,
|
184
|
+
var j = m, G = g;
|
185
|
+
return m = g = void 0, b = S, y = d.apply(G, j), y;
|
186
186
|
}
|
187
187
|
function C(S) {
|
188
188
|
return b = S, _ = setTimeout(te, u), p ? w(S) : y;
|
189
189
|
}
|
190
190
|
function ee(S) {
|
191
|
-
var
|
191
|
+
var j = S - E, G = S - b, Je = u - j;
|
192
192
|
return h ? i(Je, T - G) : Je;
|
193
193
|
}
|
194
194
|
function Ke(S) {
|
195
|
-
var
|
196
|
-
return E === void 0 ||
|
195
|
+
var j = S - E, G = S - b;
|
196
|
+
return E === void 0 || j >= u || j < 0 || h && G >= T;
|
197
197
|
}
|
198
198
|
function te() {
|
199
199
|
var S = t();
|
@@ -211,8 +211,8 @@ function Lt() {
|
|
211
211
|
return _ === void 0 ? y : ze(t());
|
212
212
|
}
|
213
213
|
function _e() {
|
214
|
-
var S = t(),
|
215
|
-
if (m = arguments, g = this, E = S,
|
214
|
+
var S = t(), j = Ke(S);
|
215
|
+
if (m = arguments, g = this, E = S, j) {
|
216
216
|
if (_ === void 0)
|
217
217
|
return C(E);
|
218
218
|
if (h)
|
@@ -225,12 +225,12 @@ function Lt() {
|
|
225
225
|
return Ae = c, Ae;
|
226
226
|
}
|
227
227
|
var Cn = Lt();
|
228
|
-
const wn = /* @__PURE__ */
|
228
|
+
const wn = /* @__PURE__ */ jt(Cn);
|
229
229
|
var ke, lt;
|
230
230
|
function Pn() {
|
231
231
|
if (lt) return ke;
|
232
232
|
lt = 1;
|
233
|
-
var e = Lt(), t =
|
233
|
+
var e = Lt(), t = qe(), n = "Expected a function";
|
234
234
|
function a(o, i, c) {
|
235
235
|
var d = !0, u = !0;
|
236
236
|
if (typeof o != "function")
|
@@ -244,7 +244,7 @@ function Pn() {
|
|
244
244
|
return ke = a, ke;
|
245
245
|
}
|
246
246
|
var An = Pn();
|
247
|
-
const kn = /* @__PURE__ */
|
247
|
+
const kn = /* @__PURE__ */ jt(An), Rn = (e, t, n, a) => {
|
248
248
|
switch (t) {
|
249
249
|
case "debounce":
|
250
250
|
return wn(e, n, a);
|
@@ -253,7 +253,7 @@ const kn = /* @__PURE__ */ Nt(An), In = (e, t, n, a) => {
|
|
253
253
|
default:
|
254
254
|
return e;
|
255
255
|
}
|
256
|
-
},
|
256
|
+
}, In = (
|
257
257
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
258
258
|
(e) => {
|
259
259
|
const t = K.useRef(e);
|
@@ -264,7 +264,7 @@ const kn = /* @__PURE__ */ Nt(An), In = (e, t, n, a) => {
|
|
264
264
|
return (a = t.current) === null || a === void 0 ? void 0 : a.call(t, ...n);
|
265
265
|
}, []);
|
266
266
|
}
|
267
|
-
),
|
267
|
+
), Nn = (
|
268
268
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
269
269
|
(e) => {
|
270
270
|
const [t, n] = K.useState((e == null ? void 0 : e.current) || null);
|
@@ -281,7 +281,7 @@ const kn = /* @__PURE__ */ Nt(An), In = (e, t, n, a) => {
|
|
281
281
|
}
|
282
282
|
}), [t]), refElement: t, setRefElement: n };
|
283
283
|
}
|
284
|
-
),
|
284
|
+
), jn = (e, t) => t === "border-box" ? {
|
285
285
|
width: e.borderBoxSize[0].inlineSize,
|
286
286
|
height: e.borderBoxSize[0].blockSize
|
287
287
|
} : t === "content-box" ? {
|
@@ -292,10 +292,10 @@ const kn = /* @__PURE__ */ Nt(An), In = (e, t, n, a) => {
|
|
292
292
|
height: e.contentRect.height
|
293
293
|
};
|
294
294
|
function On({ skipOnMount: e = !1, refreshMode: t, refreshRate: n = 1e3, refreshOptions: a, handleWidth: o = !0, handleHeight: i = !0, targetRef: c, observerOptions: d, onResize: u } = {}) {
|
295
|
-
const l = Ct(e), m =
|
295
|
+
const l = Ct(e), m = In(u), [g, T] = I({
|
296
296
|
width: void 0,
|
297
297
|
height: void 0
|
298
|
-
}), { refProxy: y, refElement: _ } =
|
298
|
+
}), { refProxy: y, refElement: _ } = Nn(c), { box: E } = d || {}, b = We((h) => {
|
299
299
|
if (!o && !i)
|
300
300
|
return;
|
301
301
|
if (l.current) {
|
@@ -304,14 +304,14 @@ function On({ skipOnMount: e = !1, refreshMode: t, refreshRate: n = 1e3, refresh
|
|
304
304
|
}
|
305
305
|
const v = (w, C) => o && w.width !== C.width || i && w.height !== C.height;
|
306
306
|
h.forEach((w) => {
|
307
|
-
const C =
|
307
|
+
const C = jn(w, E);
|
308
308
|
T((ee) => v(ee, C) ? (m == null || m({
|
309
309
|
width: C.width,
|
310
310
|
height: C.height,
|
311
311
|
entry: w
|
312
312
|
}), C) : ee);
|
313
313
|
});
|
314
|
-
}, [o, i, l, E]), p = We(
|
314
|
+
}, [o, i, l, E]), p = We(Rn(b, t, n, a), [
|
315
315
|
b,
|
316
316
|
t,
|
317
317
|
n,
|
@@ -338,34 +338,34 @@ function Mt(e) {
|
|
338
338
|
} else for (n in e) e[n] && (a && (a += " "), a += n);
|
339
339
|
return a;
|
340
340
|
}
|
341
|
-
function
|
341
|
+
function N() {
|
342
342
|
for (var e, t, n = 0, a = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Mt(e)) && (a && (a += " "), a += t);
|
343
343
|
return a;
|
344
344
|
}
|
345
|
-
const xn = "_headerContainer_1cubo_1", Ln = "_navigationTabList_1cubo_8", Mn = "_navigationTab_1cubo_8", Un = "_headerContent_1cubo_34", Hn = "_staticEnabled_1cubo_50",
|
345
|
+
const xn = "_headerContainer_1cubo_1", Ln = "_navigationTabList_1cubo_8", Mn = "_navigationTab_1cubo_8", Un = "_headerContent_1cubo_34", Hn = "_staticEnabled_1cubo_50", B = {
|
346
346
|
headerContainer: xn,
|
347
347
|
navigationTabList: Ln,
|
348
348
|
navigationTab: Mn,
|
349
349
|
headerContent: Un,
|
350
350
|
staticEnabled: Hn
|
351
|
-
},
|
351
|
+
}, Bn = 77, oe = ({ sticky: e, children: t }) => {
|
352
352
|
const { ref: n, height: a } = On({
|
353
353
|
refreshMode: "debounce",
|
354
354
|
refreshRate: 0
|
355
|
-
}), [o, i] =
|
355
|
+
}), [o, i] = I(!1), c = () => o ? !e : !0;
|
356
356
|
J(() => {
|
357
357
|
const u = () => {
|
358
358
|
i(window.scrollY > 0);
|
359
359
|
};
|
360
360
|
return window.addEventListener("scroll", u), () => window.removeEventListener("scroll", u);
|
361
361
|
}, []);
|
362
|
-
const d = `${a ||
|
362
|
+
const d = `${a || Bn}px`;
|
363
363
|
return /* @__PURE__ */ s("div", { style: { minHeight: d }, children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ f(
|
364
364
|
"div",
|
365
365
|
{
|
366
366
|
ref: n,
|
367
|
-
className:
|
368
|
-
[
|
367
|
+
className: N(B.headerContent, {
|
368
|
+
[B.staticEnabled]: c()
|
369
369
|
}),
|
370
370
|
children: [
|
371
371
|
/* @__PURE__ */ s(oe.Header, {}),
|
@@ -375,10 +375,10 @@ const xn = "_headerContainer_1cubo_1", Ln = "_navigationTabList_1cubo_8", Mn = "
|
|
375
375
|
}
|
376
376
|
) }) });
|
377
377
|
};
|
378
|
-
oe.Header = ({ children: e }) => /* @__PURE__ */ s("div", { className:
|
378
|
+
oe.Header = ({ children: e }) => /* @__PURE__ */ s("div", { className: B.headerContainer, children: e });
|
379
379
|
oe.Tabs = ({ children: e }) => /* @__PURE__ */ s("div", { className: "flex justify-between gap-2 nowrap", children: e });
|
380
|
-
const
|
381
|
-
sidebarContainer:
|
380
|
+
const qn = "_sidebarContainer_bmdti_1", Dn = {
|
381
|
+
sidebarContainer: qn
|
382
382
|
}, $n = "_logoLink_1baxb_1", Gn = {
|
383
383
|
logoLink: $n
|
384
384
|
}, Fn = ({
|
@@ -389,10 +389,10 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
389
389
|
}) => /* @__PURE__ */ s("a", { className: Gn.logoLink, href: t, "aria-label": n, children: /* @__PURE__ */ s("img", { src: e, alt: a }) }), Kn = "_link_18vhx_1", zn = "_active_18vhx_18", dt = {
|
390
390
|
link: Kn,
|
391
391
|
active: zn
|
392
|
-
}, Jn = ({ label: e, to: t, icon: n }) => /* @__PURE__ */ s(
|
392
|
+
}, Jn = ({ label: e, to: t, icon: n }) => /* @__PURE__ */ s(q, { placement: "right", tooltip: e, children: /* @__PURE__ */ s(
|
393
393
|
M,
|
394
394
|
{
|
395
|
-
className:
|
395
|
+
className: N(dt.link, {
|
396
396
|
[dt.active]: window.location.pathname.startsWith(t)
|
397
397
|
}),
|
398
398
|
href: t,
|
@@ -404,11 +404,11 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
404
404
|
}, Yn = ({ children: e, icon: t }) => /* @__PURE__ */ s(
|
405
405
|
ce,
|
406
406
|
{
|
407
|
-
menuButton: ({ opened: n }) => /* @__PURE__ */ s(
|
407
|
+
menuButton: ({ opened: n }) => /* @__PURE__ */ s(q, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ s(
|
408
408
|
"button",
|
409
409
|
{
|
410
410
|
type: "button",
|
411
|
-
className:
|
411
|
+
className: N(ut.dropdownButton, {
|
412
412
|
[ut.dropdownButtonActive]: n
|
413
413
|
}),
|
414
414
|
children: /* @__PURE__ */ s(t, { size: "25px" })
|
@@ -422,7 +422,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
422
422
|
"div",
|
423
423
|
{
|
424
424
|
"aria-label": "Upgrade Icon",
|
425
|
-
className:
|
425
|
+
className: N(
|
426
426
|
Vn.iconContainer,
|
427
427
|
"flex-row",
|
428
428
|
"items-center",
|
@@ -459,7 +459,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
459
459
|
"img",
|
460
460
|
{
|
461
461
|
src: t.logoUrl,
|
462
|
-
className:
|
462
|
+
className: N(x.profileImage, {
|
463
463
|
[x.profileImageHighlight]: a
|
464
464
|
}),
|
465
465
|
alt: "Team Logo"
|
@@ -467,7 +467,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
467
467
|
) : /* @__PURE__ */ s(
|
468
468
|
"div",
|
469
469
|
{
|
470
|
-
className:
|
470
|
+
className: N(x.userIconWrapper, "flex-row", "align-center", "items-center", {
|
471
471
|
[x.profileImageHighlight]: a
|
472
472
|
}),
|
473
473
|
children: /* @__PURE__ */ s(kt, { size: "25px" })
|
@@ -487,7 +487,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
487
487
|
}) })
|
488
488
|
}
|
489
489
|
);
|
490
|
-
},
|
490
|
+
}, Bt = 0, sr = 9999, ir = [150, 151, 250, 251], cr = [152, 153, 252, 253], lr = [154, 155, 157, 158, 254, 255, 258, 354, 355, 358], dr = [156, 159, 160, 256, 259, 260], qt = 9998, De = (e) => e === Bt, Dt = (e) => e === sr, $o = (e) => ir.includes(e), Go = (e) => cr.includes(e), Fo = (e) => lr.includes(e), Ko = (e) => dr.includes(e), zo = (e) => e > Bt && e < qt, Jo = (e) => e === qt, ur = /\n/, mt = (e, t, n) => e.split(t).flatMap((a, o) => o !== 0 ? [nn(n, { key: Math.random().toString(32).slice(0, 10) }), a] : a), mr = (e, t, n) => typeof e == "string" ? mt(e, t, n) : e.flatMap((a) => typeof a == "string" ? mt(a, t, n) : a), _r = (e) => mr(e, ur, /* @__PURE__ */ s("br", {})), gr = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi, pr = (e) => e.match(gr) ?? [], _t = (e, t, n) => {
|
491
491
|
const a = e.split(t);
|
492
492
|
if (a.length === 1)
|
493
493
|
return e;
|
@@ -498,7 +498,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
498
498
|
}, gt = (e) => {
|
499
499
|
const t = pr(e);
|
500
500
|
return t != null && t.length ? t.reduce((n, a, o) => typeof n == "string" ? _t(n, a, o) : n.flatMap((i) => typeof i == "string" ? _t(i, a, o) : i), e) : e;
|
501
|
-
}, fr = (e) => typeof e == "string" ? gt(e) : e.flatMap((t) => typeof t == "string" ? gt(t) : t, e), hr = (e, t = "PP") =>
|
501
|
+
}, fr = (e) => typeof e == "string" ? gt(e) : e.flatMap((t) => typeof t == "string" ? gt(t) : t, e), hr = (e, t = "PP") => It(e, t), Wo = (e, t, n = "PP") => It(_n(e, t), n), $e = (e) => {
|
502
502
|
J(e, []);
|
503
503
|
}, pt = {
|
504
504
|
biller: "biller",
|
@@ -543,17 +543,17 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
543
543
|
] })
|
544
544
|
}
|
545
545
|
),
|
546
|
-
!a && /* @__PURE__ */ s(
|
546
|
+
!a && /* @__PURE__ */ s(Rt, {})
|
547
547
|
] });
|
548
|
-
}, Er = "_wrapper_1in7x_5", Cr = "_profileImage_1in7x_11", wr = "_teamDetails_1in7x_19", Pr = "_planWrapper_1in7x_28", Ar = "_teamName_1in7x_36", kr = "_planLabel_1in7x_45",
|
548
|
+
}, Er = "_wrapper_1in7x_5", Cr = "_profileImage_1in7x_11", wr = "_teamDetails_1in7x_19", Pr = "_planWrapper_1in7x_28", Ar = "_teamName_1in7x_36", kr = "_planLabel_1in7x_45", Rr = "_membership_1in7x_53", Ir = "_defaultProfileImage_1in7x_59", O = {
|
549
549
|
wrapper: Er,
|
550
550
|
profileImage: Cr,
|
551
551
|
teamDetails: wr,
|
552
552
|
planWrapper: Pr,
|
553
553
|
teamName: Ar,
|
554
554
|
planLabel: kr,
|
555
|
-
membership:
|
556
|
-
defaultProfileImage:
|
555
|
+
membership: Rr,
|
556
|
+
defaultProfileImage: Ir
|
557
557
|
}, $t = ({ team: e, onClick: t, hidePlanLabel: n }) => {
|
558
558
|
const { currentTeam: a, planId: o } = X(), i = e || a;
|
559
559
|
if (!i)
|
@@ -576,19 +576,19 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
576
576
|
]
|
577
577
|
}
|
578
578
|
);
|
579
|
-
},
|
580
|
-
teamsContainer:
|
579
|
+
}, Nr = "_teamsContainer_1ncrr_5", jr = {
|
580
|
+
teamsContainer: Nr
|
581
581
|
}, Or = ({ onSwitchTeam: e }) => {
|
582
582
|
const { otherTeams: t } = X();
|
583
583
|
return t.length === 0 ? null : /* @__PURE__ */ s(
|
584
584
|
"div",
|
585
585
|
{
|
586
586
|
"data-testid": "sidebar-team-switch",
|
587
|
-
className: `flex-col items-stretch ${
|
587
|
+
className: `flex-col items-stretch ${jr.teamsContainer}`,
|
588
588
|
children: t.map((n) => /* @__PURE__ */ s($t, { team: n, onClick: e, hidePlanLabel: !0 }, n.id))
|
589
589
|
}
|
590
590
|
);
|
591
|
-
}, xr = "_container_1u995_1", Lr = "_planCta_1u995_15", Mr = "_upgradeIconWrapper_1u995_19",
|
591
|
+
}, xr = "_container_1u995_1", Lr = "_planCta_1u995_15", Mr = "_upgradeIconWrapper_1u995_19", Re = {
|
592
592
|
container: xr,
|
593
593
|
planCta: Lr,
|
594
594
|
upgradeIconWrapper: Mr
|
@@ -602,19 +602,19 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
|
|
602
602
|
{
|
603
603
|
"data-testid": "sidebar-upgrade-menu-item",
|
604
604
|
href: e,
|
605
|
-
className: `flex-col gap-1 items-start ${
|
605
|
+
className: `flex-col gap-1 items-start ${Re.container}`,
|
606
606
|
children: [
|
607
|
-
/* @__PURE__ */ s("span", { className:
|
608
|
-
/* @__PURE__ */ f("div", { className: `flex-row items-center gap-1 ${
|
607
|
+
/* @__PURE__ */ s("span", { className: Re.planCta, children: c }),
|
608
|
+
/* @__PURE__ */ f("div", { className: `flex-row items-center gap-1 ${Re.upgradeIconWrapper}`, children: [
|
609
609
|
/* @__PURE__ */ s(Ut, {}),
|
610
610
|
/* @__PURE__ */ s("span", { children: "See upgrade options" })
|
611
611
|
] })
|
612
612
|
]
|
613
613
|
}
|
614
614
|
);
|
615
|
-
}, Hr = Math.min,
|
615
|
+
}, Hr = Math.min, Br = Math.max;
|
616
616
|
function bt(e, t, n) {
|
617
|
-
return
|
617
|
+
return Br(e, Hr(t, n));
|
618
618
|
}
|
619
619
|
function Gt(e, t) {
|
620
620
|
return typeof e == "function" ? e(t) : e;
|
@@ -622,7 +622,7 @@ function Gt(e, t) {
|
|
622
622
|
function Ft(e) {
|
623
623
|
return e.split("-")[0];
|
624
624
|
}
|
625
|
-
function
|
625
|
+
function qr(e) {
|
626
626
|
return e === "x" ? "y" : "x";
|
627
627
|
}
|
628
628
|
function Dr(e) {
|
@@ -736,7 +736,7 @@ const Kr = function(e) {
|
|
736
736
|
} = Gt(e, t), l = {
|
737
737
|
x: n,
|
738
738
|
y: a
|
739
|
-
}, m = await Fr(t, u), g = Dr(Ft(o)), T =
|
739
|
+
}, m = await Fr(t, u), g = Dr(Ft(o)), T = qr(g);
|
740
740
|
let y = l[T], _ = l[g];
|
741
741
|
if (i) {
|
742
742
|
const b = T === "y" ? "top" : "left", p = T === "y" ? "bottom" : "right", h = y + m[b], v = y - m[p];
|
@@ -764,7 +764,7 @@ const Kr = function(e) {
|
|
764
764
|
};
|
765
765
|
}
|
766
766
|
};
|
767
|
-
}, zr = "_navItem_1dudv_1", Jr = "_activeNavItem_1dudv_18", Wr = "_badge_1dudv_23",
|
767
|
+
}, zr = "_navItem_1dudv_1", Jr = "_activeNavItem_1dudv_18", Wr = "_badge_1dudv_23", Ie = {
|
768
768
|
navItem: zr,
|
769
769
|
activeNavItem: Jr,
|
770
770
|
badge: Wr
|
@@ -802,7 +802,7 @@ const Kr = function(e) {
|
|
802
802
|
];
|
803
803
|
return e.filter((n) => n.status !== "queued").map((n) => ({ ...n, status: Xr(n) })).sort((n, a) => n.status === A.InProgress && n.progress === 100 ? -1 : a.status === A.InProgress && a.progress === 100 ? 1 : n.status === a.status ? n.name < a.name ? 1 : -1 : t.indexOf(n.status) - t.indexOf(a.status));
|
804
804
|
}, Tt = (e) => [xe.InProgress, xe.Created].includes(e), ea = (e, t) => Tt(e.status) && Tt(t.status) && (t.progress ?? 0) >= 100, ta = ({ task: e, language: t }) => {
|
805
|
-
const [n, a] =
|
805
|
+
const [n, a] = I(!1), [o, i] = I(!1), { onLanguageCompleteConfirm: c, fetchTasks: d } = V(), u = () => {
|
806
806
|
i(!1);
|
807
807
|
};
|
808
808
|
return /* @__PURE__ */ f(Ue, { children: [
|
@@ -836,7 +836,7 @@ const Kr = function(e) {
|
|
836
836
|
}
|
837
837
|
)
|
838
838
|
] });
|
839
|
-
}, na = "_langRowCompleted_vpgdi_1", ra = "_langCellSecondary_vpgdi_15", aa = "_langStatus_vpgdi_20",
|
839
|
+
}, na = "_langRowCompleted_vpgdi_1", ra = "_langCellSecondary_vpgdi_15", aa = "_langStatus_vpgdi_20", Ne = {
|
840
840
|
langRowCompleted: na,
|
841
841
|
langCellSecondary: ra,
|
842
842
|
langStatus: aa
|
@@ -845,11 +845,11 @@ const Kr = function(e) {
|
|
845
845
|
return /* @__PURE__ */ f(
|
846
846
|
"tr",
|
847
847
|
{
|
848
|
-
className:
|
849
|
-
[
|
848
|
+
className: N({
|
849
|
+
[Ne.langRowCompleted]: d
|
850
850
|
}),
|
851
851
|
children: [
|
852
|
-
/* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(
|
852
|
+
/* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(q, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ s(
|
853
853
|
M,
|
854
854
|
{
|
855
855
|
href: n({ task: t, language: e }),
|
@@ -859,7 +859,7 @@ const Kr = function(e) {
|
|
859
859
|
children: e.name
|
860
860
|
}
|
861
861
|
) }) }),
|
862
|
-
/* @__PURE__ */ s("td", { className:
|
862
|
+
/* @__PURE__ */ s("td", { className: Ne.langCellSecondary, children: d || c ? "0" : /* @__PURE__ */ s(q, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ s(
|
863
863
|
M,
|
864
864
|
{
|
865
865
|
href: n({ task: t, language: e, taskUncompleted: !0 }),
|
@@ -876,7 +876,7 @@ const Kr = function(e) {
|
|
876
876
|
/* @__PURE__ */ s("td", { children: d ? /* @__PURE__ */ s(ta, { task: t, language: e }) : /* @__PURE__ */ s(
|
877
877
|
"span",
|
878
878
|
{
|
879
|
-
className: `${
|
879
|
+
className: `${Ne.langStatus} flex-row items-center justify-start`,
|
880
880
|
"data-status": e.status,
|
881
881
|
children: Yr(e.status, i)
|
882
882
|
}
|
@@ -901,8 +901,8 @@ const Kr = function(e) {
|
|
901
901
|
return /* @__PURE__ */ f("div", { className: H.taskContainer, children: [
|
902
902
|
/* @__PURE__ */ f("div", { className: "flex-row gap-1 items-center", children: [
|
903
903
|
/* @__PURE__ */ f("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
|
904
|
-
/* @__PURE__ */ s(
|
905
|
-
e.due_date && /* @__PURE__ */ f(
|
904
|
+
/* @__PURE__ */ s(je, { color: Vr[e.task_type], variant: "solid", children: e.task_type.toLocaleUpperCase() }),
|
905
|
+
e.due_date && /* @__PURE__ */ f(je, { color: "#EAB308", children: [
|
906
906
|
"DUE ",
|
907
907
|
hr(un(e.due_date), "yyyy-MM-dd")
|
908
908
|
] })
|
@@ -990,7 +990,7 @@ const Kr = function(e) {
|
|
990
990
|
] })
|
991
991
|
] }) : /* @__PURE__ */ s("div", { "data-testid": "sidebar-tasks-popover", className: F.tasksContainer, children: e.map((o) => /* @__PURE__ */ s(ua, { task: o }, o.id)) });
|
992
992
|
}, ba = ({ children: e, config: t }) => {
|
993
|
-
const [n, a] =
|
993
|
+
const [n, a] = I([]), [o, i] = I(!0), [c, d] = I(0), {
|
994
994
|
getProjectUrl: u,
|
995
995
|
onLanguageCompleteConfirm: l,
|
996
996
|
onTasksWidgetOpen: m,
|
@@ -1025,7 +1025,7 @@ const Kr = function(e) {
|
|
1025
1025
|
const { config: a, ...o } = n;
|
1026
1026
|
return /* @__PURE__ */ s(ba, { config: a, children: /* @__PURE__ */ s(e, { ...o }) });
|
1027
1027
|
}, Ta = va(() => {
|
1028
|
-
const [e, t] =
|
1028
|
+
const [e, t] = I(!1), { tasksCount: n } = V();
|
1029
1029
|
return $e(() => {
|
1030
1030
|
const a = () => {
|
1031
1031
|
t(!0);
|
@@ -1033,7 +1033,7 @@ const Kr = function(e) {
|
|
1033
1033
|
return document.addEventListener(P.ShowDialog, a), () => {
|
1034
1034
|
document.removeEventListener(P.ShowDialog, a);
|
1035
1035
|
};
|
1036
|
-
}), /* @__PURE__ */ s(
|
1036
|
+
}), /* @__PURE__ */ s(q, { tooltip: "Tasks", placement: "right", children: /* @__PURE__ */ s(
|
1037
1037
|
ln,
|
1038
1038
|
{
|
1039
1039
|
content: /* @__PURE__ */ s(ha, {}),
|
@@ -1056,12 +1056,12 @@ const Kr = function(e) {
|
|
1056
1056
|
type: "button",
|
1057
1057
|
"data-testid": "sidebar-tasks-widget-button",
|
1058
1058
|
"aria-label": "Tasks",
|
1059
|
-
className:
|
1060
|
-
[
|
1059
|
+
className: N(Ie.navItem, {
|
1060
|
+
[Ie.activeNavItem]: a
|
1061
1061
|
}),
|
1062
1062
|
children: [
|
1063
1063
|
/* @__PURE__ */ s(dn, { size: "25px" }),
|
1064
|
-
n > 0 && /* @__PURE__ */ s("div", { className:
|
1064
|
+
n > 0 && /* @__PURE__ */ s("div", { className: Ie.badge, "aria-label": `${n} items requiring attention`, children: n > 9 ? "9+" : n })
|
1065
1065
|
]
|
1066
1066
|
}
|
1067
1067
|
)
|
@@ -1083,27 +1083,27 @@ k.Tasks = Ta;
|
|
1083
1083
|
const Ea = "_breadcrumbsItem_1hm6a_1", Ca = "_breadcrumbs_1hm6a_1", yt = {
|
1084
1084
|
breadcrumbsItem: Ea,
|
1085
1085
|
breadcrumbs: Ca
|
1086
|
-
},
|
1086
|
+
}, Qo = ({ items: e }) => /* @__PURE__ */ s("nav", { "aria-label": "breadcrumb", className: yt.breadcrumbs, children: e.map((t, n) => /* @__PURE__ */ f(At, { children: [
|
1087
1087
|
/* @__PURE__ */ s(M, { className: yt.breadcrumbsItem, href: t.link, rel: "noreferrer", children: t.name }),
|
1088
1088
|
n < e.length - 1 && /* @__PURE__ */ s("span", { children: " — " })
|
1089
1089
|
] }, `${t.link}-${t.name}`)) }), wa = ({ items: e }) => /* @__PURE__ */ s(Ue, { children: e.map((t, n) => /* @__PURE__ */ f(At, { children: [
|
1090
|
-
!!n && t.some((a) => a.visible) && /* @__PURE__ */ s(
|
1090
|
+
!!n && t.some((a) => a.visible) && /* @__PURE__ */ s(Rt, {}),
|
1091
1091
|
t.filter(({ visible: a }) => a).map(({ link: a, label: o, onClick: i }) => /* @__PURE__ */ s(W, { href: a || "#", "aria-label": o, onClick: i, children: o }, o))
|
1092
|
-
] }, t[0].label)) }), Pa = "_badge_1pc1v_1", Aa = "_tag_1pc1v_15", ka = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21",
|
1092
|
+
] }, t[0].label)) }), Pa = "_badge_1pc1v_1", Aa = "_tag_1pc1v_15", ka = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", Ra = "_disabled_1pc1v_57", Ia = "_projectNavigationItem_1pc1v_61", Na = "_projectNavigationItemDisabled_1pc1v_67", L = {
|
1093
1093
|
badge: Pa,
|
1094
1094
|
tag: Aa,
|
1095
1095
|
withNavLinkStyle: ka,
|
1096
|
-
disabled:
|
1097
|
-
projectNavigationItem:
|
1098
|
-
projectNavigationItemDisabled:
|
1096
|
+
disabled: Ra,
|
1097
|
+
projectNavigationItem: Ia,
|
1098
|
+
projectNavigationItemDisabled: Na
|
1099
1099
|
}, St = ({ label: e, badge: t, novel: n }) => /* @__PURE__ */ f("div", { className: "flex gap-1", children: [
|
1100
1100
|
/* @__PURE__ */ f("div", { children: [
|
1101
1101
|
/* @__PURE__ */ s("span", { children: e }),
|
1102
1102
|
!!t && /* @__PURE__ */ s("div", { className: L.badge, "aria-label": `${t} items requiring attention`, children: t > 9 ? "9+" : t })
|
1103
1103
|
] }),
|
1104
|
-
!!n && /* @__PURE__ */ s(
|
1104
|
+
!!n && /* @__PURE__ */ s(je, { className: L.tag, children: n })
|
1105
1105
|
] }), Le = rn(
|
1106
|
-
({ label: e, href: t = "", disabled: n = !1, badge: a, onClick: o, novel: i }, c) => /* @__PURE__ */ s(
|
1106
|
+
({ label: e, href: t = "", disabled: n = !1, badge: a, onClick: o, novel: i }, c) => /* @__PURE__ */ s(q, { tooltip: "You do not have access to this function", show: n, children: /* @__PURE__ */ s(
|
1107
1107
|
"div",
|
1108
1108
|
{
|
1109
1109
|
className: n ? L.projectNavigationItemDisabled : L.projectNavigationItem,
|
@@ -1112,7 +1112,7 @@ const Ea = "_breadcrumbsItem_1hm6a_1", Ca = "_breadcrumbs_1hm6a_1", yt = {
|
|
1112
1112
|
{
|
1113
1113
|
type: "button",
|
1114
1114
|
ref: c,
|
1115
|
-
className:
|
1115
|
+
className: N(L.withNavLinkStyle, {
|
1116
1116
|
[L.disabled]: n
|
1117
1117
|
}),
|
1118
1118
|
disabled: n,
|
@@ -1124,12 +1124,12 @@ const Ea = "_breadcrumbsItem_1hm6a_1", Ca = "_breadcrumbs_1hm6a_1", yt = {
|
|
1124
1124
|
) })
|
1125
1125
|
);
|
1126
1126
|
Le.displayName = "NavigationTabsItem";
|
1127
|
-
const
|
1127
|
+
const ja = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible))) ?? !1, Oa = (e) => e.visible && (!e.dropdown || ja(e.dropdown)), Yo = ({ navigation: e, activeItem: t }) => /* @__PURE__ */ s("nav", { "aria-label": "Project", children: /* @__PURE__ */ s("ul", { className: B.navigationTabList, "aria-orientation": "horizontal", children: e.filter(Oa).map((n) => {
|
1128
1128
|
var a, o, i;
|
1129
1129
|
return n.dropdown ? /* @__PURE__ */ s(
|
1130
1130
|
"li",
|
1131
1131
|
{
|
1132
|
-
className:
|
1132
|
+
className: B.navigationTab,
|
1133
1133
|
"data-testid": n.key,
|
1134
1134
|
"aria-selected": (a = n.isActive) == null ? void 0 : a.call(n, t),
|
1135
1135
|
children: /* @__PURE__ */ s(
|
@@ -1144,7 +1144,7 @@ const Na = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible)))
|
|
1144
1144
|
) : /* @__PURE__ */ s(
|
1145
1145
|
"li",
|
1146
1146
|
{
|
1147
|
-
className:
|
1147
|
+
className: B.navigationTab,
|
1148
1148
|
"data-testid": n.key,
|
1149
1149
|
"aria-selected": (o = n.isActive) == null ? void 0 : o.call(n, t),
|
1150
1150
|
children: /* @__PURE__ */ s(
|
@@ -1163,7 +1163,7 @@ const Na = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible)))
|
|
1163
1163
|
n.key
|
1164
1164
|
);
|
1165
1165
|
}) }) });
|
1166
|
-
class
|
1166
|
+
class R {
|
1167
1167
|
/**
|
1168
1168
|
* This constructor is private to prevent the creation of a HeaderBuilder, it's an implementation detail
|
1169
1169
|
* that users of this class should not be aware of. The only way to create a HeaderBuilder is through the
|
@@ -1175,7 +1175,7 @@ class I {
|
|
1175
1175
|
this.factories = t;
|
1176
1176
|
}
|
1177
1177
|
static create(t = {}) {
|
1178
|
-
return new
|
1178
|
+
return new R([() => t]);
|
1179
1179
|
}
|
1180
1180
|
/**
|
1181
1181
|
* Adds a single header to the builder by providing a key and a value.
|
@@ -1195,7 +1195,7 @@ class I {
|
|
1195
1195
|
* @param value - The value of the header
|
1196
1196
|
*/
|
1197
1197
|
add(t, n) {
|
1198
|
-
return new
|
1198
|
+
return new R([...this.factories, () => ({ [t]: n })]);
|
1199
1199
|
}
|
1200
1200
|
/**
|
1201
1201
|
* Adds multiple headers to the builder by providing an object or a promise of an object with the headers.
|
@@ -1219,7 +1219,7 @@ class I {
|
|
1219
1219
|
* @param extension - An object with the headers to add
|
1220
1220
|
*/
|
1221
1221
|
and(t) {
|
1222
|
-
return new
|
1222
|
+
return new R([...this.factories, () => t]);
|
1223
1223
|
}
|
1224
1224
|
/**
|
1225
1225
|
* Adds a factory function that returns a promise of headers to the builder.
|
@@ -1240,7 +1240,7 @@ class I {
|
|
1240
1240
|
* @param factory - A function that returns a promise of headers
|
1241
1241
|
*/
|
1242
1242
|
from(t) {
|
1243
|
-
return new
|
1243
|
+
return new R([...this.factories, t]);
|
1244
1244
|
}
|
1245
1245
|
/**
|
1246
1246
|
* Takes a middleware function that receives the current builder and returns a new, modified, builder.
|
@@ -1285,7 +1285,7 @@ class I {
|
|
1285
1285
|
* @param builder - The builder to merge with
|
1286
1286
|
*/
|
1287
1287
|
merge(t) {
|
1288
|
-
return new
|
1288
|
+
return new R([...this.factories, ...t.factories]);
|
1289
1289
|
}
|
1290
1290
|
/**
|
1291
1291
|
* Resolves the headers by waiting for all the promises to resolve and merging them together.
|
@@ -1312,7 +1312,7 @@ class xa {
|
|
1312
1312
|
}
|
1313
1313
|
apply(t) {
|
1314
1314
|
return t.from(async () => {
|
1315
|
-
const n = this.middleware(
|
1315
|
+
const n = this.middleware(R.create());
|
1316
1316
|
return n instanceof Promise ? n.then((a) => a.resolve()) : n.resolve();
|
1317
1317
|
});
|
1318
1318
|
}
|
@@ -1352,7 +1352,7 @@ class se extends Error {
|
|
1352
1352
|
ne(this, "status", 401);
|
1353
1353
|
}
|
1354
1354
|
}
|
1355
|
-
function
|
1355
|
+
function Xo(e) {
|
1356
1356
|
return zt(async (t) => {
|
1357
1357
|
var i, c;
|
1358
1358
|
const n = e.getCurrentToken() ?? await ((i = e.generateNewToken) == null ? void 0 : i.call(e));
|
@@ -1367,7 +1367,7 @@ function Qo(e) {
|
|
1367
1367
|
return (c = e.onNewTokenIssued) == null || c.call(e, o), t.add("authorization", `Bearer ${o.accessToken}`);
|
1368
1368
|
});
|
1369
1369
|
}
|
1370
|
-
const
|
1370
|
+
const Vo = zt(
|
1371
1371
|
(e) => e.and({ "x-lokalise-plugin": "true" })
|
1372
1372
|
);
|
1373
1373
|
function Wt() {
|
@@ -1381,7 +1381,7 @@ function Me(e, t) {
|
|
1381
1381
|
var n, a;
|
1382
1382
|
return (a = (n = e.split(";").find((o) => o.trim().startsWith(`${t}=`))) == null ? void 0 : n.trim()) == null ? void 0 : a.substring(t.length + 1);
|
1383
1383
|
}
|
1384
|
-
function
|
1384
|
+
function Zo() {
|
1385
1385
|
const e = Wt();
|
1386
1386
|
if (!e)
|
1387
1387
|
return;
|
@@ -1400,11 +1400,11 @@ const Qt = r.union([
|
|
1400
1400
|
]), Ha = r.union([
|
1401
1401
|
Qt,
|
1402
1402
|
Ua
|
1403
|
-
]),
|
1403
|
+
]), Ba = r.union([
|
1404
1404
|
r.object({ "X-Lokalise-Plugin": r.string() }),
|
1405
1405
|
r.object({ "x-lokalise-plugin": r.string() }),
|
1406
1406
|
r.object({ "X-LOKALISE-PLUGIN": r.string() })
|
1407
|
-
]), U = Ha.and(
|
1407
|
+
]), U = Ha.and(Ba), qa = r.object({
|
1408
1408
|
accessToken: r.string(),
|
1409
1409
|
refreshToken: r.string()
|
1410
1410
|
}), Da = r.union([
|
@@ -1423,27 +1423,27 @@ const Qt = r.union([
|
|
1423
1423
|
requestHeaderSchema: $a,
|
1424
1424
|
requestBodySchema: r.undefined(),
|
1425
1425
|
isEmptyResponseExpected: !0,
|
1426
|
-
successResponseBodySchema:
|
1426
|
+
successResponseBodySchema: qa
|
1427
1427
|
});
|
1428
|
-
function
|
1428
|
+
function es(e, t, n) {
|
1429
1429
|
return async () => {
|
1430
1430
|
const a = t();
|
1431
1431
|
if (!a)
|
1432
1432
|
throw new se();
|
1433
1433
|
return D(e, Ge, {
|
1434
1434
|
pathParams: { teamId: Number(await n()) },
|
1435
|
-
headers: await
|
1435
|
+
headers: await R.create().add("x-csrf-token", a).resolve()
|
1436
1436
|
});
|
1437
1437
|
};
|
1438
1438
|
}
|
1439
|
-
function
|
1439
|
+
function ts(e) {
|
1440
1440
|
return async ({ accessToken: t, refreshToken: n }) => {
|
1441
1441
|
const a = Z(t);
|
1442
1442
|
if (!a)
|
1443
1443
|
throw new se();
|
1444
1444
|
return D(e, Ge, {
|
1445
1445
|
pathParams: { teamId: a.teamId },
|
1446
|
-
headers: await
|
1446
|
+
headers: await R.create().add("authorization", `Bearer ${n}`).resolve()
|
1447
1447
|
});
|
1448
1448
|
};
|
1449
1449
|
}
|
@@ -1464,7 +1464,7 @@ const Ga = {
|
|
1464
1464
|
};
|
1465
1465
|
ne(ie, "eventName", "new-jwt-issued");
|
1466
1466
|
let z = ie;
|
1467
|
-
function
|
1467
|
+
function ns(e, t, n) {
|
1468
1468
|
const a = Ma(), o = Fa(e, t.add("x-csrf-token", a ?? ""), {
|
1469
1469
|
queryKey: Ga.teamKey(n),
|
1470
1470
|
enabled: a !== void 0
|
@@ -1474,7 +1474,7 @@ function es(e, t, n) {
|
|
1474
1474
|
}, [o.data]), o;
|
1475
1475
|
}
|
1476
1476
|
function Yt() {
|
1477
|
-
const [e, t] =
|
1477
|
+
const [e, t] = I();
|
1478
1478
|
return J(() => {
|
1479
1479
|
const n = (o) => {
|
1480
1480
|
t(o.detail.payload);
|
@@ -1492,79 +1492,85 @@ const Ka = U, za = r.object({
|
|
1492
1492
|
created_at_timestamp: r.number(),
|
1493
1493
|
role: Jt
|
1494
1494
|
}), Ja = r.object({
|
1495
|
+
teamId: r.number(),
|
1496
|
+
userId: r.number()
|
1497
|
+
}), Wa = r.object({
|
1495
1498
|
team_id: r.number(),
|
1496
1499
|
team_user: za
|
1497
|
-
}),
|
1500
|
+
}), Qa = Y({
|
1498
1501
|
description: "Get the details of a team user",
|
1499
1502
|
requestHeaderSchema: Ka,
|
1500
|
-
requestPathParamsSchema:
|
1503
|
+
requestPathParamsSchema: Ja,
|
1501
1504
|
pathResolver: ({ teamId: e, userId: t }) => `/teams/${e}/users/${t}`,
|
1502
|
-
successResponseBodySchema:
|
1503
|
-
}),
|
1505
|
+
successResponseBodySchema: Wa
|
1506
|
+
}), Ya = {
|
1504
1507
|
teamUserKey: (e, t) => ["GetTeamUsers", e, t]
|
1505
|
-
},
|
1508
|
+
}, Xa = (e, t, n) => $({
|
1506
1509
|
...n,
|
1507
|
-
queryFn: async ({ queryKey: [a, o, i] }) => Q(e,
|
1510
|
+
queryFn: async ({ queryKey: [a, o, i] }) => Q(e, Qa, {
|
1508
1511
|
headers: await t.resolve(),
|
1509
1512
|
pathParams: { teamId: o, userId: i }
|
1510
1513
|
})
|
1511
1514
|
});
|
1512
|
-
function
|
1515
|
+
function rs(e, t) {
|
1513
1516
|
const n = Yt();
|
1514
|
-
return
|
1515
|
-
queryKey:
|
1517
|
+
return Xa(e, t, {
|
1518
|
+
queryKey: Ya.teamUserKey((n == null ? void 0 : n.teamId) ?? 0, (n == null ? void 0 : n.userId) ?? 0),
|
1516
1519
|
enabled: (n == null ? void 0 : n.userId) !== void 0 && n.teamId !== void 0
|
1517
1520
|
});
|
1518
1521
|
}
|
1519
|
-
const
|
1522
|
+
const as = U, Va = r.object({
|
1520
1523
|
lang_id: r.number(),
|
1521
1524
|
lang_iso: r.string(),
|
1522
1525
|
lang_name: r.string(),
|
1523
1526
|
is_writable: r.union([r.literal(0), r.literal(1)])
|
1524
|
-
}),
|
1527
|
+
}), Za = r.object({
|
1525
1528
|
user_id: r.number(),
|
1526
1529
|
email: r.string().email(),
|
1527
1530
|
fullname: r.string(),
|
1528
1531
|
created_at: r.string(),
|
1529
1532
|
created_at_timestamp: r.number(),
|
1530
1533
|
admin_rights: r.array(r.string()),
|
1531
|
-
languages: r.array(
|
1534
|
+
languages: r.array(Va),
|
1532
1535
|
is_admin: r.boolean(),
|
1533
1536
|
is_reviewer: r.boolean()
|
1534
|
-
}),
|
1537
|
+
}), eo = r.object({
|
1538
|
+
projectId: r.string(),
|
1539
|
+
contributorId: r.number()
|
1540
|
+
}), to = r.object({
|
1535
1541
|
project_id: r.string(),
|
1536
|
-
|
1537
|
-
}),
|
1542
|
+
contributor: Za
|
1543
|
+
}), no = Y({
|
1538
1544
|
description: "Get the details of a project contributor",
|
1539
1545
|
requestHeaderSchema: U,
|
1540
|
-
requestPathParamsSchema:
|
1546
|
+
requestPathParamsSchema: eo,
|
1541
1547
|
pathResolver: ({ projectId: e, contributorId: t }) => `/projects/${e}/contributors/${t}`,
|
1542
|
-
successResponseBodySchema:
|
1543
|
-
}),
|
1548
|
+
successResponseBodySchema: to
|
1549
|
+
}), ro = {
|
1544
1550
|
projectUserKey: (e, t) => ["RetrieveContributor", e, t]
|
1545
|
-
},
|
1551
|
+
}, ao = (e, t, n) => $({
|
1546
1552
|
...n,
|
1547
|
-
queryFn: async ({ queryKey: [a, o, i] }) => Q(e,
|
1553
|
+
queryFn: async ({ queryKey: [a, o, i] }) => Q(e, no, {
|
1548
1554
|
pathParams: { projectId: o, contributorId: i },
|
1549
1555
|
headers: await t.resolve()
|
1550
1556
|
})
|
1551
1557
|
});
|
1552
|
-
function
|
1558
|
+
function os(e, t, n) {
|
1553
1559
|
const a = Yt();
|
1554
|
-
return
|
1555
|
-
queryKey:
|
1560
|
+
return ao(e, t, {
|
1561
|
+
queryKey: ro.projectUserKey(n, (a == null ? void 0 : a.userId) ?? 0),
|
1556
1562
|
enabled: a !== void 0
|
1557
1563
|
});
|
1558
1564
|
}
|
1559
|
-
const
|
1565
|
+
const oo = r.object({
|
1560
1566
|
lang_iso: r.string(),
|
1561
1567
|
custom_iso: r.string().optional()
|
1562
|
-
}),
|
1568
|
+
}), so = r.object({
|
1563
1569
|
language_id: r.number(),
|
1564
1570
|
language_iso: r.string(),
|
1565
1571
|
progress: r.number(),
|
1566
1572
|
words_to_do: r.number()
|
1567
|
-
}),
|
1573
|
+
}), io = r.object({
|
1568
1574
|
projectId: r.string()
|
1569
1575
|
}), Xt = r.object({
|
1570
1576
|
lang_id: r.number(),
|
@@ -1572,13 +1578,13 @@ const ro = r.object({
|
|
1572
1578
|
lang_name: r.string(),
|
1573
1579
|
is_rtl: r.boolean(),
|
1574
1580
|
plural_forms: r.array(r.string().optional())
|
1575
|
-
}),
|
1581
|
+
}), co = r.object({
|
1576
1582
|
project_id: r.string(),
|
1577
1583
|
project_uuid: r.string().uuid(),
|
1578
1584
|
languages: r.array(Xt)
|
1579
|
-
}),
|
1585
|
+
}), lo = r.object({
|
1580
1586
|
projectId: r.string()
|
1581
|
-
}),
|
1587
|
+
}), uo = r.object({
|
1582
1588
|
languages: r.array(
|
1583
1589
|
r.object({
|
1584
1590
|
lang_iso: r.string(),
|
@@ -1587,7 +1593,7 @@ const ro = r.object({
|
|
1587
1593
|
custom_plural_forms: r.array(r.string()).optional()
|
1588
1594
|
})
|
1589
1595
|
)
|
1590
|
-
}),
|
1596
|
+
}), mo = r.object({
|
1591
1597
|
project_id: r.string(),
|
1592
1598
|
project_uuid: r.string().uuid(),
|
1593
1599
|
languages: r.array(Xt),
|
@@ -1598,44 +1604,44 @@ const ro = r.object({
|
|
1598
1604
|
lang_iso: r.string()
|
1599
1605
|
})
|
1600
1606
|
).optional()
|
1601
|
-
}),
|
1607
|
+
}), _o = r.object({
|
1602
1608
|
projectId: r.string()
|
1603
|
-
}),
|
1609
|
+
}), go = r.object({
|
1604
1610
|
langs: r.array(
|
1605
1611
|
r.object({
|
1606
1612
|
lang_iso: r.string(),
|
1607
1613
|
base_lang: r.boolean()
|
1608
1614
|
})
|
1609
1615
|
)
|
1610
|
-
}),
|
1616
|
+
}), po = r.object({
|
1611
1617
|
result: r.boolean()
|
1612
|
-
}),
|
1618
|
+
}), fo = Y({
|
1613
1619
|
description: "List of project languages",
|
1614
1620
|
requestHeaderSchema: U,
|
1615
|
-
requestPathParamsSchema:
|
1621
|
+
requestPathParamsSchema: io,
|
1616
1622
|
pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
|
1617
|
-
successResponseBodySchema:
|
1618
|
-
}),
|
1623
|
+
successResponseBodySchema: co
|
1624
|
+
}), ss = Nt({
|
1619
1625
|
description: "Add languages to existing project",
|
1620
1626
|
requestHeaderSchema: U,
|
1621
1627
|
method: "post",
|
1622
|
-
requestPathParamsSchema:
|
1628
|
+
requestPathParamsSchema: lo,
|
1623
1629
|
pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
|
1624
|
-
requestBodySchema:
|
1625
|
-
successResponseBodySchema:
|
1626
|
-
}),
|
1630
|
+
requestBodySchema: uo,
|
1631
|
+
successResponseBodySchema: mo
|
1632
|
+
}), ho = Nt({
|
1627
1633
|
description: "Bulk update project languages",
|
1628
1634
|
requestHeaderSchema: U,
|
1629
1635
|
method: "put",
|
1630
|
-
requestPathParamsSchema:
|
1636
|
+
requestPathParamsSchema: _o,
|
1631
1637
|
pathResolver: ({ projectId: e }) => `/projects/${e}/languages/bulk-update`,
|
1632
|
-
requestBodySchema:
|
1633
|
-
successResponseBodySchema:
|
1638
|
+
requestBodySchema: go,
|
1639
|
+
successResponseBodySchema: po
|
1634
1640
|
}), de = U, Fe = r.union([
|
1635
1641
|
r.literal("localization_files"),
|
1636
1642
|
r.literal("paged_documents"),
|
1637
1643
|
r.literal("marketing")
|
1638
|
-
]),
|
1644
|
+
]), bo = r.object({
|
1639
1645
|
per_platform_key_names: r.boolean(),
|
1640
1646
|
reviewing: r.boolean(),
|
1641
1647
|
auto_toggle_unverified: r.boolean(),
|
@@ -1646,7 +1652,7 @@ const ro = r.object({
|
|
1646
1652
|
custom_translation_statuses_allow_multiple: r.boolean(),
|
1647
1653
|
segmentation: r.boolean(),
|
1648
1654
|
contributor_preview_download_enabled: r.boolean()
|
1649
|
-
}),
|
1655
|
+
}), vo = r.object({
|
1650
1656
|
not_reviewed: r.number(),
|
1651
1657
|
unverified: r.number(),
|
1652
1658
|
spelling_grammar: r.number(),
|
@@ -1663,14 +1669,14 @@ const ro = r.object({
|
|
1663
1669
|
double_space: r.number(),
|
1664
1670
|
special_placeholder: r.number(),
|
1665
1671
|
unbalanced_brackets: r.number()
|
1666
|
-
}),
|
1672
|
+
}), To = r.object({
|
1667
1673
|
progress_total: r.number(),
|
1668
1674
|
keys_total: r.number(),
|
1669
1675
|
team: r.number(),
|
1670
1676
|
base_words: r.number(),
|
1671
1677
|
qa_issues_total: r.number(),
|
1672
|
-
qa_issues:
|
1673
|
-
languages: r.array(
|
1678
|
+
qa_issues: vo,
|
1679
|
+
languages: r.array(so)
|
1674
1680
|
}), ue = r.object({
|
1675
1681
|
project_id: r.string(),
|
1676
1682
|
uuid: r.string().uuid(),
|
@@ -1684,16 +1690,16 @@ const ro = r.object({
|
|
1684
1690
|
team_id: r.number(),
|
1685
1691
|
base_language_id: r.number(),
|
1686
1692
|
base_language_iso: r.string(),
|
1687
|
-
settings:
|
1688
|
-
statistics:
|
1689
|
-
}),
|
1693
|
+
settings: bo.optional(),
|
1694
|
+
statistics: To.optional()
|
1695
|
+
}), yo = r.object({
|
1690
1696
|
name: r.string(),
|
1691
1697
|
team_id: r.string(),
|
1692
1698
|
base_lang_iso: r.string(),
|
1693
|
-
languages: r.array(
|
1699
|
+
languages: r.array(oo),
|
1694
1700
|
project_type: Fe,
|
1695
1701
|
is_segmentation_enabled: r.boolean()
|
1696
|
-
}), Et = r.union([r.literal(0), r.literal(1)]),
|
1702
|
+
}), Et = r.union([r.literal(0), r.literal(1)]), So = r.object({
|
1697
1703
|
filter_type: Fe.optional(),
|
1698
1704
|
filter_team_id: r.number().optional(),
|
1699
1705
|
filter_names: r.string().optional(),
|
@@ -1701,102 +1707,102 @@ const ro = r.object({
|
|
1701
1707
|
include_settings: Et.optional(),
|
1702
1708
|
limit: r.number().optional(),
|
1703
1709
|
page: r.number().optional()
|
1704
|
-
}),
|
1710
|
+
}), Eo = r.object({
|
1705
1711
|
projects: r.array(ue)
|
1706
|
-
}),
|
1712
|
+
}), Co = r.object({
|
1707
1713
|
project_id: r.string()
|
1708
|
-
}),
|
1714
|
+
}), wo = r.object({
|
1709
1715
|
project_id: r.string()
|
1710
|
-
}),
|
1716
|
+
}), Po = r.object({
|
1711
1717
|
name: r.string().min(1),
|
1712
1718
|
description: r.string().optional()
|
1713
|
-
}), me = () => "/projects",
|
1719
|
+
}), me = () => "/projects", Ao = He({
|
1714
1720
|
description: "Create a new project",
|
1715
1721
|
requestHeaderSchema: de,
|
1716
1722
|
method: "post",
|
1717
1723
|
pathResolver: me,
|
1718
|
-
requestBodySchema:
|
1724
|
+
requestBodySchema: yo,
|
1719
1725
|
successResponseBodySchema: ue
|
1720
|
-
}),
|
1726
|
+
}), ko = Y({
|
1721
1727
|
description: "List all projects",
|
1722
1728
|
requestHeaderSchema: de,
|
1723
1729
|
pathResolver: me,
|
1724
|
-
requestQuerySchema:
|
1725
|
-
successResponseBodySchema:
|
1726
|
-
}),
|
1730
|
+
requestQuerySchema: So,
|
1731
|
+
successResponseBodySchema: Eo
|
1732
|
+
}), Ro = Y({
|
1727
1733
|
description: "Retrieve a project",
|
1728
1734
|
requestHeaderSchema: de,
|
1729
|
-
requestPathParamsSchema:
|
1735
|
+
requestPathParamsSchema: Co,
|
1730
1736
|
pathResolver: ({ project_id: e }) => `${me()}/${e}`,
|
1731
1737
|
successResponseBodySchema: ue
|
1732
|
-
}),
|
1738
|
+
}), Io = He({
|
1733
1739
|
description: "Update a project",
|
1734
1740
|
requestHeaderSchema: de,
|
1735
1741
|
method: "put",
|
1736
|
-
requestPathParamsSchema:
|
1742
|
+
requestPathParamsSchema: wo,
|
1737
1743
|
pathResolver: ({ project_id: e }) => `${me()}/${e}`,
|
1738
|
-
requestBodySchema:
|
1744
|
+
requestBodySchema: Po,
|
1739
1745
|
successResponseBodySchema: ue
|
1740
1746
|
});
|
1741
|
-
function
|
1742
|
-
return
|
1747
|
+
function is(e, t, n = {}) {
|
1748
|
+
return Be({
|
1743
1749
|
...n,
|
1744
|
-
mutationFn: async (a) => D(e,
|
1750
|
+
mutationFn: async (a) => D(e, Ao, {
|
1745
1751
|
headers: await t.resolve(),
|
1746
1752
|
body: a
|
1747
1753
|
})
|
1748
1754
|
});
|
1749
1755
|
}
|
1750
|
-
const
|
1756
|
+
const cs = {
|
1751
1757
|
projectIdKey: (e) => ["listProjectLanguages", e]
|
1752
1758
|
};
|
1753
|
-
function
|
1759
|
+
function ls(e, t, n) {
|
1754
1760
|
return $({
|
1755
1761
|
...n,
|
1756
|
-
queryFn: async ({ queryKey: [a, o] }) => Q(e,
|
1762
|
+
queryFn: async ({ queryKey: [a, o] }) => Q(e, fo, {
|
1757
1763
|
headers: await t.resolve(),
|
1758
1764
|
pathParams: { projectId: o }
|
1759
1765
|
})
|
1760
1766
|
});
|
1761
1767
|
}
|
1762
|
-
const
|
1768
|
+
const ds = {
|
1763
1769
|
paramsKey: (e) => ["listProjects", e]
|
1764
1770
|
};
|
1765
|
-
function
|
1771
|
+
function us(e, t, n) {
|
1766
1772
|
return $({
|
1767
1773
|
...n,
|
1768
|
-
queryFn: async ({ queryKey: [a, o] }) => Q(e,
|
1774
|
+
queryFn: async ({ queryKey: [a, o] }) => Q(e, ko, {
|
1769
1775
|
headers: await t.resolve(),
|
1770
1776
|
queryParams: o
|
1771
1777
|
})
|
1772
1778
|
});
|
1773
1779
|
}
|
1774
|
-
const
|
1780
|
+
const ms = {
|
1775
1781
|
projectIdKey: (e) => ["retrieveProject", e]
|
1776
1782
|
};
|
1777
|
-
function
|
1783
|
+
function _s(e, t, n) {
|
1778
1784
|
return $({
|
1779
1785
|
...n,
|
1780
|
-
queryFn: async ({ queryKey: [a, o] }) => Q(e,
|
1786
|
+
queryFn: async ({ queryKey: [a, o] }) => Q(e, Ro, {
|
1781
1787
|
headers: await t.resolve(),
|
1782
1788
|
pathParams: { project_id: o }
|
1783
1789
|
})
|
1784
1790
|
});
|
1785
1791
|
}
|
1786
|
-
function
|
1787
|
-
return
|
1792
|
+
function gs(e, t, n, a = {}) {
|
1793
|
+
return Be({
|
1788
1794
|
...a,
|
1789
|
-
mutationFn: async (o) => D(e,
|
1795
|
+
mutationFn: async (o) => D(e, Io, {
|
1790
1796
|
headers: await t.resolve(),
|
1791
1797
|
body: o,
|
1792
1798
|
pathParams: n
|
1793
1799
|
})
|
1794
1800
|
});
|
1795
1801
|
}
|
1796
|
-
function
|
1797
|
-
return
|
1802
|
+
function ps(e, t, n, a = {}) {
|
1803
|
+
return Be({
|
1798
1804
|
...a,
|
1799
|
-
mutationFn: async (o) => D(e,
|
1805
|
+
mutationFn: async (o) => D(e, ho, {
|
1800
1806
|
pathParams: t,
|
1801
1807
|
headers: await n.resolve(),
|
1802
1808
|
body: o
|
@@ -1804,43 +1810,44 @@ function _s(e, t, n, a = {}) {
|
|
1804
1810
|
});
|
1805
1811
|
}
|
1806
1812
|
export {
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1813
|
+
lo as ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA,
|
1814
|
+
uo as ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
|
1815
|
+
mo as ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA,
|
1816
|
+
_o as BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
|
1817
|
+
go as BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA,
|
1818
|
+
po as BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
|
1819
|
+
Qo as Breadcrumbs,
|
1820
|
+
as as CONTRIBUTOR_API_BASE_HEADER_SCHEMA,
|
1821
|
+
Va as CONTRIBUTOR_LANGUAGE_SCHEMA,
|
1822
|
+
Za as CONTRIBUTOR_SCHEMA,
|
1823
|
+
yo as CREATE_PROJECT_REQUEST_BODY_SCHEMA,
|
1824
|
+
qt as ENTERPRISE_OPENSOURCE_PLAN_ID,
|
1819
1825
|
dr as ENTERPRISE_PLAN_IDS,
|
1820
1826
|
cr as ESSENTIAL_PLAN_IDS,
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1827
|
+
Bt as FREE_PLAN_ID,
|
1828
|
+
R as HeaderBuilder,
|
1829
|
+
qa as JWT_TOKEN_SCHEMA,
|
1830
|
+
Xo as JwtAuthHeaderBuilderMiddleware,
|
1831
|
+
oo as LANGUAGE_ISO_SCHEMA,
|
1826
1832
|
Xt as LANGUAGE_SCHEMA,
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1833
|
+
so as LANGUAGE_STATISTICS_SCHEMA,
|
1834
|
+
So as LIST_PROJECTS_REQUEST_QUERY_SCHEMA,
|
1835
|
+
Eo as LIST_PROJECTS_SUCCESS_RESPONSE_BODY,
|
1836
|
+
io as LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
|
1837
|
+
co as LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
|
1832
1838
|
oe as NavigationPanel,
|
1833
|
-
|
1839
|
+
Yo as NavigationTabs,
|
1834
1840
|
de as PROJECT_API_BASE_HEADERS_SCHEMA,
|
1835
|
-
|
1841
|
+
vo as PROJECT_QA_ISSUES_SCHEMA,
|
1836
1842
|
ue as PROJECT_SCHEMA,
|
1837
|
-
|
1838
|
-
|
1843
|
+
bo as PROJECT_SETTINGS_SCHEMA,
|
1844
|
+
To as PROJECT_STATISTICS_SCHEMA,
|
1839
1845
|
Fe as PROJECT_TYPE_SCHEMA,
|
1840
1846
|
lr as PRO_PLAN_IDS,
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1847
|
+
Vo as PublicApiHeaderBuilderMiddleware,
|
1848
|
+
eo as RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA,
|
1849
|
+
to as RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA,
|
1850
|
+
Co as RETRIEVE_PROJECT_PATH_PARAM_SCHEMA,
|
1844
1851
|
ir as START_PLAN_IDS,
|
1845
1852
|
k as Sidebar,
|
1846
1853
|
A as SidebarTaskLanguageStatuses,
|
@@ -1848,60 +1855,61 @@ export {
|
|
1848
1855
|
re as SidebarTaskTypeOptions,
|
1849
1856
|
Jt as TEAM_ROLE_SCHEMA,
|
1850
1857
|
Ka as TEAM_USER_API_BASE_HEADERS_SCHEMA,
|
1851
|
-
Ja as
|
1858
|
+
Ja as TEAM_USER_PATH_PARAMS_SCHEMA,
|
1859
|
+
Wa as TEAM_USER_RESPONSE_SCHEMA,
|
1852
1860
|
za as TEAM_USER_SCHEMA,
|
1853
1861
|
sr as TRIAL_PLAN_ID,
|
1854
|
-
|
1855
|
-
|
1862
|
+
wo as UPDATE_PROJECT_PATH_PARAMS_SCHEMA,
|
1863
|
+
Po as UPDATE_PROJECT_REQUEST_BODY_SCHEMA,
|
1856
1864
|
$a as USER_TOKEN_REQUEST_HEADER_SCHEMA,
|
1857
1865
|
se as UnauthorizedError,
|
1858
|
-
|
1859
|
-
|
1866
|
+
ss as addLanguagesToProject,
|
1867
|
+
ho as bulkUpdateProjectLanguages,
|
1860
1868
|
_r as convertNewLineToBreakTag,
|
1861
1869
|
zt as createHeaderBuilderMiddleware,
|
1862
|
-
|
1870
|
+
Ao as createProject,
|
1863
1871
|
hr as formatDate,
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1872
|
+
Wo as formatDateTz,
|
1873
|
+
es as generateTokenFromClassicSession,
|
1874
|
+
Zo as getAuthenticatedSessionDetailFromRequest,
|
1867
1875
|
Ma as getCsrfTokenFromCookie,
|
1868
1876
|
Wt as getJwtTokenFromCookie,
|
1869
|
-
|
1870
|
-
|
1877
|
+
Qa as getTeamUser,
|
1878
|
+
Ya as getTeamUsersQueryKey,
|
1871
1879
|
Ge as getUserToken,
|
1872
1880
|
Ga as getUserTokenKey,
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1881
|
+
Jo as isEnterpriseOpenSourcePlan,
|
1882
|
+
Ko as isEnterprisePlan,
|
1883
|
+
Go as isEssentialPlan,
|
1876
1884
|
De as isFreePlan,
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1885
|
+
zo as isPaidPlan,
|
1886
|
+
Fo as isProPlan,
|
1887
|
+
$o as isStartPlan,
|
1880
1888
|
Dt as isTrialPlan,
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1889
|
+
fo as listProjectLanguages,
|
1890
|
+
cs as listProjectLanguagesKey,
|
1891
|
+
ko as listProjects,
|
1892
|
+
ds as listProjectsKey,
|
1885
1893
|
fr as makeUrlClickable,
|
1886
1894
|
Z as parseJwtTokenPayload,
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1895
|
+
ts as refreshExpiredToken,
|
1896
|
+
no as retrieveContributor,
|
1897
|
+
ro as retrieveContributorKeys,
|
1898
|
+
Ro as retrieveProject,
|
1899
|
+
ms as retrieveProjectQueryKey,
|
1900
|
+
Io as updateProject,
|
1901
|
+
os as useAuthenticatedProjectContributor,
|
1894
1902
|
Yt as useAuthenticatedSessionPayload,
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1903
|
+
rs as useAuthenticatedUser,
|
1904
|
+
ps as useBulkUpdateProjectLanguagesMutation,
|
1905
|
+
is as useCreateProjectMutation,
|
1898
1906
|
$e as useEffectOnce,
|
1899
|
-
|
1900
|
-
|
1907
|
+
ns as useGetPromotedClassicSessionJwtQuery,
|
1908
|
+
Xa as useGetTeamUsersQuery,
|
1901
1909
|
Fa as useGetUserTokenQuery,
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1910
|
+
ls as useListProjectLanguagesQuery,
|
1911
|
+
us as useListProjectsQuery,
|
1912
|
+
ao as useRetrieveContributorQuery,
|
1913
|
+
_s as useRetrieveProjectQuery,
|
1914
|
+
gs as useUpdateProjectMutation
|
1907
1915
|
};
|