@lokalise/harmony 1.12.6 → 1.13.0-exp-updateProjectApiHelpers.1
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 +386 -373
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +70 -0
- package/dist/types/src/features/publicApi/projects.d.ts +315 -0
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +19 -0
- package/package.json +1 -1
package/dist/harmony.mjs
CHANGED
@@ -1,87 +1,87 @@
|
|
1
1
|
var Ct = Object.defineProperty;
|
2
|
-
var
|
3
|
-
var
|
4
|
-
import { jsx as i, jsxs as p, Fragment as
|
5
|
-
import * as
|
6
|
-
import { useRef as
|
7
|
-
import { Tooltip as
|
8
|
-
import { format as
|
9
|
-
import { toZonedTime as
|
2
|
+
var Rt = (e, t, n) => t in e ? Ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
|
+
var Ae = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
|
4
|
+
import { jsx as i, jsxs as p, Fragment as ot } from "react/jsx-runtime";
|
5
|
+
import * as U from "react";
|
6
|
+
import { useRef as it, useState as he, useCallback as Ne, useEffect as q, useContext as At, createContext as Nt, cloneElement as kt, Fragment as st, forwardRef as Ot } from "react";
|
7
|
+
import { Tooltip as pe, Link as ct, Menu as Te, MenuList as ve, CaretUpIcon as Lt, UserIcon as lt, MenuItem as K, MenuDivider as ut, Tag as Mt } from "@lokalise/louis";
|
8
|
+
import { format as dt } from "date-fns";
|
9
|
+
import { toZonedTime as Ut } from "date-fns-tz";
|
10
10
|
import { z as r } from "zod";
|
11
11
|
import { sendByPayloadRoute as W, sendByGetRoute as x } from "@lokalise/frontend-http-client";
|
12
|
-
import { buildPayloadRoute as
|
13
|
-
import { useQuery as
|
12
|
+
import { buildPayloadRoute as ye } from "@lokalise/universal-ts-utils/api-contracts/apiContracts";
|
13
|
+
import { useQuery as L, useMutation as qt } from "@tanstack/react-query";
|
14
14
|
import { buildGetRoute as B } from "@lokalise/universal-ts-utils/node";
|
15
|
-
var
|
15
|
+
var G = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
16
16
|
function mt(e) {
|
17
17
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
18
18
|
}
|
19
|
-
var
|
20
|
-
function
|
21
|
-
if (ke) return
|
19
|
+
var X, ke;
|
20
|
+
function Se() {
|
21
|
+
if (ke) return X;
|
22
22
|
ke = 1;
|
23
23
|
function e(t) {
|
24
24
|
var n = typeof t;
|
25
25
|
return t != null && (n == "object" || n == "function");
|
26
26
|
}
|
27
|
-
return
|
27
|
+
return X = e, X;
|
28
28
|
}
|
29
|
-
var
|
29
|
+
var ee, Oe;
|
30
30
|
function xt() {
|
31
|
-
if (
|
32
|
-
|
33
|
-
var e = typeof
|
34
|
-
return
|
31
|
+
if (Oe) return ee;
|
32
|
+
Oe = 1;
|
33
|
+
var e = typeof G == "object" && G && G.Object === Object && G;
|
34
|
+
return ee = e, ee;
|
35
35
|
}
|
36
|
-
var
|
36
|
+
var te, Le;
|
37
37
|
function ft() {
|
38
|
-
if (Le) return
|
38
|
+
if (Le) return te;
|
39
39
|
Le = 1;
|
40
40
|
var e = xt(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
41
|
-
return
|
41
|
+
return te = n, te;
|
42
42
|
}
|
43
|
-
var
|
43
|
+
var ne, Me;
|
44
44
|
function Bt() {
|
45
|
-
if (
|
46
|
-
|
45
|
+
if (Me) return ne;
|
46
|
+
Me = 1;
|
47
47
|
var e = ft(), t = function() {
|
48
48
|
return e.Date.now();
|
49
49
|
};
|
50
|
-
return
|
50
|
+
return ne = t, ne;
|
51
51
|
}
|
52
|
-
var
|
52
|
+
var re, Ue;
|
53
53
|
function Ht() {
|
54
|
-
if (
|
55
|
-
|
54
|
+
if (Ue) return re;
|
55
|
+
Ue = 1;
|
56
56
|
var e = /\s/;
|
57
57
|
function t(n) {
|
58
58
|
for (var a = n.length; a-- && e.test(n.charAt(a)); )
|
59
59
|
;
|
60
60
|
return a;
|
61
61
|
}
|
62
|
-
return
|
62
|
+
return re = t, re;
|
63
63
|
}
|
64
|
-
var
|
64
|
+
var ae, qe;
|
65
65
|
function $t() {
|
66
|
-
if (qe) return
|
66
|
+
if (qe) return ae;
|
67
67
|
qe = 1;
|
68
68
|
var e = Ht(), t = /^\s+/;
|
69
69
|
function n(a) {
|
70
70
|
return a && a.slice(0, e(a) + 1).replace(t, "");
|
71
71
|
}
|
72
|
-
return
|
72
|
+
return ae = n, ae;
|
73
73
|
}
|
74
|
-
var
|
74
|
+
var oe, xe;
|
75
75
|
function _t() {
|
76
|
-
if (
|
77
|
-
|
76
|
+
if (xe) return oe;
|
77
|
+
xe = 1;
|
78
78
|
var e = ft(), t = e.Symbol;
|
79
|
-
return
|
79
|
+
return oe = t, oe;
|
80
80
|
}
|
81
|
-
var
|
82
|
-
function
|
83
|
-
if (
|
84
|
-
|
81
|
+
var ie, Be;
|
82
|
+
function Dt() {
|
83
|
+
if (Be) return ie;
|
84
|
+
Be = 1;
|
85
85
|
var e = _t(), t = Object.prototype, n = t.hasOwnProperty, a = t.toString, o = e ? e.toStringTag : void 0;
|
86
86
|
function s(c) {
|
87
87
|
var u = n.call(c, o), d = c[o];
|
@@ -93,52 +93,52 @@ function Gt() {
|
|
93
93
|
var m = a.call(c);
|
94
94
|
return l && (u ? c[o] = d : delete c[o]), m;
|
95
95
|
}
|
96
|
-
return
|
96
|
+
return ie = s, ie;
|
97
97
|
}
|
98
|
-
var
|
99
|
-
function
|
100
|
-
if (
|
101
|
-
|
98
|
+
var se, He;
|
99
|
+
function Gt() {
|
100
|
+
if (He) return se;
|
101
|
+
He = 1;
|
102
102
|
var e = Object.prototype, t = e.toString;
|
103
103
|
function n(a) {
|
104
104
|
return t.call(a);
|
105
105
|
}
|
106
|
-
return
|
106
|
+
return se = n, se;
|
107
107
|
}
|
108
|
-
var
|
108
|
+
var ce, $e;
|
109
109
|
function Ft() {
|
110
|
-
if (
|
111
|
-
|
112
|
-
var e = _t(), t =
|
110
|
+
if ($e) return ce;
|
111
|
+
$e = 1;
|
112
|
+
var e = _t(), t = Dt(), n = Gt(), a = "[object Null]", o = "[object Undefined]", s = e ? e.toStringTag : void 0;
|
113
113
|
function c(u) {
|
114
114
|
return u == null ? u === void 0 ? o : a : s && s in Object(u) ? t(u) : n(u);
|
115
115
|
}
|
116
|
-
return
|
116
|
+
return ce = c, ce;
|
117
117
|
}
|
118
|
-
var
|
118
|
+
var le, De;
|
119
119
|
function zt() {
|
120
|
-
if (
|
121
|
-
|
120
|
+
if (De) return le;
|
121
|
+
De = 1;
|
122
122
|
function e(t) {
|
123
123
|
return t != null && typeof t == "object";
|
124
124
|
}
|
125
|
-
return
|
125
|
+
return le = e, le;
|
126
126
|
}
|
127
|
-
var
|
128
|
-
function
|
129
|
-
if (Ge) return
|
127
|
+
var ue, Ge;
|
128
|
+
function Jt() {
|
129
|
+
if (Ge) return ue;
|
130
130
|
Ge = 1;
|
131
131
|
var e = Ft(), t = zt(), n = "[object Symbol]";
|
132
132
|
function a(o) {
|
133
133
|
return typeof o == "symbol" || t(o) && e(o) == n;
|
134
134
|
}
|
135
|
-
return
|
135
|
+
return ue = a, ue;
|
136
136
|
}
|
137
|
-
var
|
138
|
-
function
|
139
|
-
if (
|
140
|
-
|
141
|
-
var e = $t(), t =
|
137
|
+
var de, Fe;
|
138
|
+
function Kt() {
|
139
|
+
if (Fe) return de;
|
140
|
+
Fe = 1;
|
141
|
+
var e = $t(), t = Se(), n = Jt(), a = NaN, o = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, c = /^0o[0-7]+$/i, u = parseInt;
|
142
142
|
function d(l) {
|
143
143
|
if (typeof l == "number")
|
144
144
|
return l;
|
@@ -154,69 +154,69 @@ function Jt() {
|
|
154
154
|
var b = s.test(l);
|
155
155
|
return b || c.test(l) ? u(l.slice(2), b ? 2 : 8) : o.test(l) ? a : +l;
|
156
156
|
}
|
157
|
-
return
|
157
|
+
return de = d, de;
|
158
158
|
}
|
159
|
-
var
|
159
|
+
var me, ze;
|
160
160
|
function bt() {
|
161
|
-
if (
|
162
|
-
|
163
|
-
var e =
|
161
|
+
if (ze) return me;
|
162
|
+
ze = 1;
|
163
|
+
var e = Se(), t = Bt(), n = Kt(), a = "Expected a function", o = Math.max, s = Math.min;
|
164
164
|
function c(u, d, l) {
|
165
|
-
var m, b, y, I, _,
|
165
|
+
var m, b, y, I, _, v, S = 0, E = !1, g = !1, P = !0;
|
166
166
|
if (typeof u != "function")
|
167
167
|
throw new TypeError(a);
|
168
|
-
d = n(d) || 0, e(l) && (
|
169
|
-
function
|
170
|
-
var
|
171
|
-
return m = b = void 0, S = f, I = u.apply(M,
|
168
|
+
d = n(d) || 0, e(l) && (E = !!l.leading, g = "maxWait" in l, y = g ? o(n(l.maxWait) || 0, d) : y, P = "trailing" in l ? !!l.trailing : P);
|
169
|
+
function T(f) {
|
170
|
+
var j = m, M = b;
|
171
|
+
return m = b = void 0, S = f, I = u.apply(M, j), I;
|
172
172
|
}
|
173
173
|
function h(f) {
|
174
|
-
return S = f, _ = setTimeout(
|
174
|
+
return S = f, _ = setTimeout(D, d), E ? T(f) : I;
|
175
175
|
}
|
176
176
|
function $(f) {
|
177
|
-
var
|
178
|
-
return g ? s(
|
177
|
+
var j = f - v, M = f - S, Re = d - j;
|
178
|
+
return g ? s(Re, y - M) : Re;
|
179
179
|
}
|
180
180
|
function je(f) {
|
181
|
-
var
|
182
|
-
return
|
181
|
+
var j = f - v, M = f - S;
|
182
|
+
return v === void 0 || j >= d || j < 0 || g && M >= y;
|
183
183
|
}
|
184
|
-
function
|
184
|
+
function D() {
|
185
185
|
var f = t();
|
186
186
|
if (je(f))
|
187
|
-
return
|
188
|
-
_ = setTimeout(
|
187
|
+
return Ce(f);
|
188
|
+
_ = setTimeout(D, $(f));
|
189
189
|
}
|
190
|
-
function
|
191
|
-
return _ = void 0,
|
192
|
-
}
|
193
|
-
function jt() {
|
194
|
-
_ !== void 0 && clearTimeout(_), S = 0, m = T = b = _ = void 0;
|
190
|
+
function Ce(f) {
|
191
|
+
return _ = void 0, P && m ? T(f) : (m = b = void 0, I);
|
195
192
|
}
|
196
193
|
function Pt() {
|
197
|
-
|
194
|
+
_ !== void 0 && clearTimeout(_), S = 0, m = v = b = _ = void 0;
|
198
195
|
}
|
199
|
-
function
|
200
|
-
|
201
|
-
|
196
|
+
function jt() {
|
197
|
+
return _ === void 0 ? I : Ce(t());
|
198
|
+
}
|
199
|
+
function Z() {
|
200
|
+
var f = t(), j = je(f);
|
201
|
+
if (m = arguments, b = this, v = f, j) {
|
202
202
|
if (_ === void 0)
|
203
|
-
return h(
|
203
|
+
return h(v);
|
204
204
|
if (g)
|
205
|
-
return clearTimeout(_), _ = setTimeout(
|
205
|
+
return clearTimeout(_), _ = setTimeout(D, d), T(v);
|
206
206
|
}
|
207
|
-
return _ === void 0 && (_ = setTimeout(
|
207
|
+
return _ === void 0 && (_ = setTimeout(D, d)), I;
|
208
208
|
}
|
209
|
-
return
|
209
|
+
return Z.cancel = Pt, Z.flush = jt, Z;
|
210
210
|
}
|
211
|
-
return
|
211
|
+
return me = c, me;
|
212
212
|
}
|
213
213
|
var Wt = bt();
|
214
214
|
const Qt = /* @__PURE__ */ mt(Wt);
|
215
|
-
var
|
215
|
+
var fe, Je;
|
216
216
|
function Yt() {
|
217
|
-
if (
|
218
|
-
|
219
|
-
var e = bt(), t =
|
217
|
+
if (Je) return fe;
|
218
|
+
Je = 1;
|
219
|
+
var e = bt(), t = Se(), n = "Expected a function";
|
220
220
|
function a(o, s, c) {
|
221
221
|
var u = !0, d = !0;
|
222
222
|
if (typeof o != "function")
|
@@ -227,7 +227,7 @@ function Yt() {
|
|
227
227
|
trailing: d
|
228
228
|
});
|
229
229
|
}
|
230
|
-
return
|
230
|
+
return fe = a, fe;
|
231
231
|
}
|
232
232
|
var Vt = Yt();
|
233
233
|
const Zt = /* @__PURE__ */ mt(Vt), Xt = (e, t, n, a) => {
|
@@ -242,10 +242,10 @@ const Zt = /* @__PURE__ */ mt(Vt), Xt = (e, t, n, a) => {
|
|
242
242
|
}, en = (
|
243
243
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
244
244
|
(e) => {
|
245
|
-
const t =
|
246
|
-
return
|
245
|
+
const t = U.useRef(e);
|
246
|
+
return U.useEffect(() => {
|
247
247
|
t.current = e;
|
248
|
-
}),
|
248
|
+
}), U.useMemo(() => (...n) => {
|
249
249
|
var a;
|
250
250
|
return (a = t.current) === null || a === void 0 ? void 0 : a.call(t, ...n);
|
251
251
|
}, []);
|
@@ -253,10 +253,10 @@ const Zt = /* @__PURE__ */ mt(Vt), Xt = (e, t, n, a) => {
|
|
253
253
|
), tn = (
|
254
254
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
255
255
|
(e) => {
|
256
|
-
const [t, n] =
|
256
|
+
const [t, n] = U.useState((e == null ? void 0 : e.current) || null);
|
257
257
|
return e && setTimeout(() => {
|
258
258
|
e.current !== t && n(e.current);
|
259
|
-
}, 0), { refProxy:
|
259
|
+
}, 0), { refProxy: U.useMemo(() => new Proxy((o) => {
|
260
260
|
o !== t && n(o);
|
261
261
|
}, {
|
262
262
|
get(o, s) {
|
@@ -278,42 +278,42 @@ const Zt = /* @__PURE__ */ mt(Vt), Xt = (e, t, n, a) => {
|
|
278
278
|
height: e.contentRect.height
|
279
279
|
};
|
280
280
|
function rn({ skipOnMount: e = !1, refreshMode: t, refreshRate: n = 1e3, refreshOptions: a, handleWidth: o = !0, handleHeight: s = !0, targetRef: c, observerOptions: u, onResize: d } = {}) {
|
281
|
-
const l =
|
281
|
+
const l = it(e), m = en(d), [b, y] = he({
|
282
282
|
width: void 0,
|
283
283
|
height: void 0
|
284
|
-
}), { refProxy: I, refElement: _ } = tn(c), { box:
|
284
|
+
}), { refProxy: I, refElement: _ } = tn(c), { box: v } = u || {}, S = Ne((g) => {
|
285
285
|
if (!o && !s)
|
286
286
|
return;
|
287
287
|
if (l.current) {
|
288
288
|
l.current = !1;
|
289
289
|
return;
|
290
290
|
}
|
291
|
-
const
|
292
|
-
g.forEach((
|
293
|
-
const h = nn(
|
294
|
-
y(($) =>
|
291
|
+
const P = (T, h) => o && T.width !== h.width || s && T.height !== h.height;
|
292
|
+
g.forEach((T) => {
|
293
|
+
const h = nn(T, v);
|
294
|
+
y(($) => P($, h) ? (m == null || m({
|
295
295
|
width: h.width,
|
296
296
|
height: h.height,
|
297
|
-
entry:
|
297
|
+
entry: T
|
298
298
|
}), h) : $);
|
299
299
|
});
|
300
|
-
}, [o, s, l,
|
300
|
+
}, [o, s, l, v]), E = Ne(Xt(S, t, n, a), [
|
301
301
|
S,
|
302
302
|
t,
|
303
303
|
n,
|
304
304
|
a
|
305
305
|
]);
|
306
|
-
return
|
306
|
+
return q(() => {
|
307
307
|
let g;
|
308
|
-
return _ ? (g = new window.ResizeObserver(
|
308
|
+
return _ ? (g = new window.ResizeObserver(E), g.observe(_, u)) : (b.width || b.height) && (m == null || m({
|
309
309
|
width: null,
|
310
310
|
height: null,
|
311
311
|
entry: null
|
312
312
|
}), y({ width: void 0, height: void 0 })), () => {
|
313
|
-
var
|
314
|
-
(
|
313
|
+
var P, T, h;
|
314
|
+
(P = g == null ? void 0 : g.disconnect) === null || P === void 0 || P.call(g), (h = (T = E).cancel) === null || h === void 0 || h.call(T);
|
315
315
|
};
|
316
|
-
}, [
|
316
|
+
}, [E, _]), Object.assign({ ref: I }, b);
|
317
317
|
}
|
318
318
|
function gt(e) {
|
319
319
|
var t, n, a = "";
|
@@ -324,11 +324,11 @@ function gt(e) {
|
|
324
324
|
} else for (n in e) e[n] && (a && (a += " "), a += n);
|
325
325
|
return a;
|
326
326
|
}
|
327
|
-
function
|
327
|
+
function A() {
|
328
328
|
for (var e, t, n = 0, a = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = gt(e)) && (a && (a += " "), a += t);
|
329
329
|
return a;
|
330
330
|
}
|
331
|
-
const an = "_headerContainer_1cubo_1", on = "_navigationTabList_1cubo_8", sn = "_navigationTab_1cubo_8", cn = "_headerContent_1cubo_34", ln = "_staticEnabled_1cubo_50",
|
331
|
+
const an = "_headerContainer_1cubo_1", on = "_navigationTabList_1cubo_8", sn = "_navigationTab_1cubo_8", cn = "_headerContent_1cubo_34", ln = "_staticEnabled_1cubo_50", k = {
|
332
332
|
headerContainer: an,
|
333
333
|
navigationTabList: on,
|
334
334
|
navigationTab: sn,
|
@@ -338,8 +338,8 @@ const an = "_headerContainer_1cubo_1", on = "_navigationTabList_1cubo_8", sn = "
|
|
338
338
|
const { ref: n, height: a } = rn({
|
339
339
|
refreshMode: "debounce",
|
340
340
|
refreshRate: 0
|
341
|
-
}), [o, s] =
|
342
|
-
|
341
|
+
}), [o, s] = he(!1), c = () => o ? !e : !0;
|
342
|
+
q(() => {
|
343
343
|
const d = () => {
|
344
344
|
s(window.scrollY > 0);
|
345
345
|
};
|
@@ -350,8 +350,8 @@ const an = "_headerContainer_1cubo_1", on = "_navigationTabList_1cubo_8", sn = "
|
|
350
350
|
"div",
|
351
351
|
{
|
352
352
|
ref: n,
|
353
|
-
className:
|
354
|
-
[
|
353
|
+
className: A(k.headerContent, {
|
354
|
+
[k.staticEnabled]: c()
|
355
355
|
}),
|
356
356
|
children: [
|
357
357
|
/* @__PURE__ */ i(z.Header, {}),
|
@@ -361,7 +361,7 @@ const an = "_headerContainer_1cubo_1", on = "_navigationTabList_1cubo_8", sn = "
|
|
361
361
|
}
|
362
362
|
) }) });
|
363
363
|
};
|
364
|
-
z.Header = ({ children: e }) => /* @__PURE__ */ i("div", { className:
|
364
|
+
z.Header = ({ children: e }) => /* @__PURE__ */ i("div", { className: k.headerContainer, children: e });
|
365
365
|
z.Tabs = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex justify-between gap-2 nowrap", children: e });
|
366
366
|
const dn = "_sidebarContainer_bmdti_1", mn = {
|
367
367
|
sidebarContainer: dn
|
@@ -370,56 +370,56 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
370
370
|
}, bn = ({ src: e, href: t = "/", ariaLabel: n = "Home", alt: a = "Lokalise" }) => /* @__PURE__ */ i("a", { className: _n.logoLink, href: t, "aria-label": n, children: /* @__PURE__ */ i("img", { src: e, alt: a }) }), gn = "_link_18vhx_1", hn = "_active_18vhx_18", Ke = {
|
371
371
|
link: gn,
|
372
372
|
active: hn
|
373
|
-
}, pn = ({ label: e, to: t, icon: n }) => /* @__PURE__ */ i(
|
374
|
-
|
373
|
+
}, pn = ({ label: e, to: t, icon: n }) => /* @__PURE__ */ i(pe, { placement: "right", tooltip: e, children: /* @__PURE__ */ i(
|
374
|
+
ct,
|
375
375
|
{
|
376
|
-
className:
|
376
|
+
className: A(Ke.link, {
|
377
377
|
[Ke.active]: window.location.pathname.startsWith(t)
|
378
378
|
}),
|
379
379
|
href: t,
|
380
380
|
children: /* @__PURE__ */ i(n, { size: "25px" })
|
381
381
|
}
|
382
|
-
) }),
|
383
|
-
dropdownButton:
|
384
|
-
dropdownButtonActive:
|
382
|
+
) }), Tn = "_dropdownButton_13l5r_1", vn = "_dropdownButtonActive_13l5r_18", We = {
|
383
|
+
dropdownButton: Tn,
|
384
|
+
dropdownButtonActive: vn
|
385
385
|
}, yn = ({ children: e, icon: t }) => /* @__PURE__ */ i(
|
386
|
-
|
386
|
+
Te,
|
387
387
|
{
|
388
|
-
menuButton: ({ opened: n }) => /* @__PURE__ */ i(
|
388
|
+
menuButton: ({ opened: n }) => /* @__PURE__ */ i(pe, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ i(
|
389
389
|
"button",
|
390
390
|
{
|
391
391
|
type: "button",
|
392
|
-
className:
|
393
|
-
[
|
392
|
+
className: A(We.dropdownButton, {
|
393
|
+
[We.dropdownButtonActive]: n
|
394
394
|
}),
|
395
395
|
children: /* @__PURE__ */ i(t, { size: "25px" })
|
396
396
|
}
|
397
397
|
) }),
|
398
|
-
children: /* @__PURE__ */ i(
|
398
|
+
children: /* @__PURE__ */ i(ve, { placement: "right-start", children: e })
|
399
399
|
}
|
400
|
-
), Sn = "_iconContainer_nz34m_1",
|
400
|
+
), Sn = "_iconContainer_nz34m_1", En = {
|
401
401
|
iconContainer: Sn
|
402
402
|
}, ht = ({ className: e = "" }) => /* @__PURE__ */ i(
|
403
403
|
"div",
|
404
404
|
{
|
405
405
|
"aria-label": "Upgrade Icon",
|
406
|
-
className:
|
407
|
-
|
406
|
+
className: A(
|
407
|
+
En.iconContainer,
|
408
408
|
"flex-row",
|
409
409
|
"items-center",
|
410
410
|
"justify-center",
|
411
411
|
e
|
412
412
|
),
|
413
|
-
children: /* @__PURE__ */ i(
|
413
|
+
children: /* @__PURE__ */ i(Lt, {})
|
414
414
|
}
|
415
|
-
),
|
416
|
-
menuContainer:
|
415
|
+
), wn = "_menuContainer_wbu3u_5", In = "_profileButton_wbu3u_16", Pn = "_profileImage_wbu3u_29", jn = "_profileImageHighlight_wbu3u_37", Cn = "_profileImageUpgradeIcon_wbu3u_41", Rn = "_userIconWrapper_wbu3u_47", C = {
|
416
|
+
menuContainer: wn,
|
417
417
|
profileButton: In,
|
418
|
-
profileImage:
|
419
|
-
profileImageHighlight:
|
418
|
+
profileImage: Pn,
|
419
|
+
profileImageHighlight: jn,
|
420
420
|
profileImageUpgradeIcon: Cn,
|
421
|
-
userIconWrapper:
|
422
|
-
}, pt =
|
421
|
+
userIconWrapper: Rn
|
422
|
+
}, pt = Nt({}), H = () => At(pt), An = ({ children: e }) => {
|
423
423
|
const {
|
424
424
|
currentTeam: t,
|
425
425
|
otherTeams: n,
|
@@ -433,14 +433,14 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
433
433
|
isFullyAuthenticated: m
|
434
434
|
} = H();
|
435
435
|
return /* @__PURE__ */ i(
|
436
|
-
|
436
|
+
Te,
|
437
437
|
{
|
438
438
|
menuButton: () => /* @__PURE__ */ p("button", { className: C.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
439
439
|
t != null && t.logoUrl ? /* @__PURE__ */ i(
|
440
440
|
"img",
|
441
441
|
{
|
442
442
|
src: t.logoUrl,
|
443
|
-
className:
|
443
|
+
className: A(C.profileImage, {
|
444
444
|
[C.profileImageHighlight]: a
|
445
445
|
}),
|
446
446
|
alt: "Team Logo"
|
@@ -448,15 +448,15 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
448
448
|
) : /* @__PURE__ */ i(
|
449
449
|
"div",
|
450
450
|
{
|
451
|
-
className:
|
451
|
+
className: A(C.userIconWrapper, "flex-row", "align-center", "items-center", {
|
452
452
|
[C.profileImageHighlight]: a
|
453
453
|
}),
|
454
|
-
children: /* @__PURE__ */ i(
|
454
|
+
children: /* @__PURE__ */ i(lt, { size: "25px" })
|
455
455
|
}
|
456
456
|
),
|
457
457
|
a && /* @__PURE__ */ i(ht, { className: C.profileImageUpgradeIcon })
|
458
458
|
] }),
|
459
|
-
children: /* @__PURE__ */ i(
|
459
|
+
children: /* @__PURE__ */ i(ve, { placement: "right-end", className: C.menuContainer, children: e({
|
460
460
|
allowTeamCreation: s,
|
461
461
|
otherTeams: n,
|
462
462
|
canAccessTeamSettings: u,
|
@@ -468,7 +468,7 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
468
468
|
}) })
|
469
469
|
}
|
470
470
|
);
|
471
|
-
},
|
471
|
+
}, Tt = 0, Nn = 9999, kn = [150, 151, 250, 251], On = [152, 153, 252, 253], Ln = [154, 155, 157, 158, 254, 255, 258, 354, 355, 358], Mn = [156, 159, 160, 256, 259, 260], vt = 9998, Ee = (e) => e === Tt, yt = (e) => e === Nn, da = (e) => kn.includes(e), ma = (e) => On.includes(e), fa = (e) => Ln.includes(e), _a = (e) => Mn.includes(e), ba = (e) => e > Tt && e < vt, ga = (e) => e === vt, Un = /\n/, Qe = (e, t, n) => e.split(t).flatMap((a, o) => o !== 0 ? [kt(n, { key: Math.random().toString(32).slice(0, 10) }), a] : a), qn = (e, t, n) => typeof e == "string" ? Qe(e, t, n) : e.flatMap((a) => typeof a == "string" ? Qe(a, t, n) : a), ha = (e) => qn(e, Un, /* @__PURE__ */ i("br", {})), xn = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi, Bn = (e) => e.match(xn) ?? [], Ye = (e, t, n) => {
|
472
472
|
const a = e.split(t);
|
473
473
|
if (a.length === 1)
|
474
474
|
return e;
|
@@ -476,19 +476,19 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
476
476
|
return a[0] !== "" && o.push(a[0]), a.shift(), a[a.length - 1] === "" && a.pop(), o.push(
|
477
477
|
/* @__PURE__ */ i("a", { href: t, target: "_blank", rel: "noreferrer noopener", children: t }, t + n)
|
478
478
|
), o.push(a.join(t)), o.filter((s) => s !== "");
|
479
|
-
},
|
479
|
+
}, Ve = (e) => {
|
480
480
|
const t = Bn(e);
|
481
|
-
return t != null && t.length ? t.reduce((n, a, o) => typeof n == "string" ?
|
482
|
-
},
|
483
|
-
|
484
|
-
},
|
481
|
+
return t != null && t.length ? t.reduce((n, a, o) => typeof n == "string" ? Ye(n, a, o) : n.flatMap((s) => typeof s == "string" ? Ye(s, a, o) : s), e) : e;
|
482
|
+
}, pa = (e) => typeof e == "string" ? Ve(e) : e.flatMap((t) => typeof t == "string" ? Ve(t) : t, e), Ta = (e, t = "PP") => dt(e, t), va = (e, t, n = "PP") => dt(Ut(e, t), n), ya = (e) => {
|
483
|
+
q(e, []);
|
484
|
+
}, Ze = {
|
485
485
|
biller: "biller",
|
486
486
|
owner: "owner"
|
487
|
-
},
|
488
|
-
|
489
|
-
|
487
|
+
}, Xe = [
|
488
|
+
Ze.biller,
|
489
|
+
Ze.owner
|
490
490
|
], Hn = ({ children: e, config: t }) => {
|
491
|
-
const { teams: n, currentTeamId: a, planId: o, isEndOfTrialActive: s, isFullyAuthenticated: c, userTeamRole: u } = t, d = n.find((
|
491
|
+
const { teams: n, currentTeamId: a, planId: o, isEndOfTrialActive: s, isFullyAuthenticated: c, userTeamRole: u } = t, d = n.find((E) => E.id === a), l = n.filter((E) => E.id !== a), m = Xe.includes(u), b = Xe.includes(u), y = Ee(o) || yt(o), S = {
|
492
492
|
...t,
|
493
493
|
currentTeam: d,
|
494
494
|
otherTeams: l,
|
@@ -500,9 +500,9 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
500
500
|
allowTeamCreation: c && !s
|
501
501
|
};
|
502
502
|
return /* @__PURE__ */ i(pt.Provider, { value: S, children: e });
|
503
|
-
}, $n = ({ config: e, children: t }) => /* @__PURE__ */ i(Hn, { config: e, children: /* @__PURE__ */ i(
|
504
|
-
container:
|
505
|
-
profileEmail:
|
503
|
+
}, $n = ({ config: e, children: t }) => /* @__PURE__ */ i(Hn, { config: e, children: /* @__PURE__ */ i(An, { children: t }) }), Dn = "_container_q5pot_1", Gn = "_profileEmail_q5pot_5", et = {
|
504
|
+
container: Dn,
|
505
|
+
profileEmail: Gn
|
506
506
|
}, Fn = ({
|
507
507
|
href: e,
|
508
508
|
onClick: t,
|
@@ -510,26 +510,26 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
510
510
|
hideBottomDivider: a
|
511
511
|
}) => {
|
512
512
|
const { isEndOfTrialActive: o, isTeamSuspended: s } = H();
|
513
|
-
return o || s ? null : /* @__PURE__ */ p(
|
513
|
+
return o || s ? null : /* @__PURE__ */ p(ot, { children: [
|
514
514
|
/* @__PURE__ */ i(
|
515
|
-
|
515
|
+
K,
|
516
516
|
{
|
517
517
|
href: e,
|
518
518
|
onClick: () => {
|
519
519
|
t == null || t();
|
520
520
|
},
|
521
|
-
children: /* @__PURE__ */ p("div", { className: `flex-col ${
|
521
|
+
children: /* @__PURE__ */ p("div", { className: `flex-col ${et.container}`, children: [
|
522
522
|
/* @__PURE__ */ i("span", { children: "Profile Settings" }),
|
523
|
-
/* @__PURE__ */ i("span", { className:
|
523
|
+
/* @__PURE__ */ i("span", { className: et.profileEmail, children: n })
|
524
524
|
] })
|
525
525
|
}
|
526
526
|
),
|
527
|
-
!a && /* @__PURE__ */ i(
|
527
|
+
!a && /* @__PURE__ */ i(ut, {})
|
528
528
|
] });
|
529
|
-
}, zn = "_wrapper_15d85_1",
|
529
|
+
}, zn = "_wrapper_15d85_1", Jn = "_profileImage_15d85_14", Kn = "_teamName_15d85_22", Wn = "_planLabel_15d85_29", Qn = "_membership_15d85_38", Yn = "_defaultProfileImage_15d85_44", N = {
|
530
530
|
wrapper: zn,
|
531
|
-
profileImage:
|
532
|
-
teamName:
|
531
|
+
profileImage: Jn,
|
532
|
+
teamName: Kn,
|
533
533
|
planLabel: Wn,
|
534
534
|
membership: Qn,
|
535
535
|
defaultProfileImage: Yn
|
@@ -537,20 +537,20 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
537
537
|
const { currentTeam: a, planId: o } = H(), s = e || a;
|
538
538
|
if (!s)
|
539
539
|
return null;
|
540
|
-
const c =
|
540
|
+
const c = Ee(o) ? "Free" : yt(o) ? "Trial" : void 0;
|
541
541
|
return /* @__PURE__ */ p(
|
542
|
-
t ?
|
542
|
+
t ? K : "div",
|
543
543
|
{
|
544
|
-
className: `flex-row gap-2 flex-nowrap items-center ${
|
544
|
+
className: `flex-row gap-2 flex-nowrap items-center ${N.wrapper}`,
|
545
545
|
...t && { onClick: () => t(s) },
|
546
546
|
children: [
|
547
|
-
s.logoUrl ? /* @__PURE__ */ i("img", { className:
|
547
|
+
s.logoUrl ? /* @__PURE__ */ i("img", { className: N.profileImage, src: s.logoUrl, alt: "Team Logo" }) : /* @__PURE__ */ i("span", { className: `flex-row justify-center items-center ${N.defaultProfileImage}`, children: /* @__PURE__ */ i(lt, { size: "25px" }) }),
|
548
548
|
/* @__PURE__ */ p("div", { className: "flex-col items-start", children: [
|
549
549
|
/* @__PURE__ */ p("div", { className: "flex-row items-center flex-nowrap gap-2", children: [
|
550
|
-
/* @__PURE__ */ i("span", { title: s.name, className:
|
551
|
-
c && !n && /* @__PURE__ */ i("span", { className: `flex-row justify-center items-center ${
|
550
|
+
/* @__PURE__ */ i("span", { title: s.name, className: N.teamName, children: s.name }),
|
551
|
+
c && !n && /* @__PURE__ */ i("span", { className: `flex-row justify-center items-center ${N.planLabel}`, children: c })
|
552
552
|
] }),
|
553
|
-
/* @__PURE__ */ i("span", { className:
|
553
|
+
/* @__PURE__ */ i("span", { className: N.membership, children: s.role })
|
554
554
|
] })
|
555
555
|
]
|
556
556
|
}
|
@@ -560,7 +560,7 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
560
560
|
}, Xn = ({ onSwitchTeam: e }) => {
|
561
561
|
const { otherTeams: t } = H();
|
562
562
|
return t.length === 0 ? null : /* @__PURE__ */ i("div", { className: `flex-col items-stretch ${Zn.teamsContainer}`, children: t.map((n) => /* @__PURE__ */ i(St, { team: n, onClick: e, hidePlanLabel: !0 }, n.id)) });
|
563
|
-
}, er = "_container_1u995_1", tr = "_planCta_1u995_15", nr = "_upgradeIconWrapper_1u995_19",
|
563
|
+
}, er = "_container_1u995_1", tr = "_planCta_1u995_15", nr = "_upgradeIconWrapper_1u995_19", _e = {
|
564
564
|
container: er,
|
565
565
|
planCta: tr,
|
566
566
|
upgradeIconWrapper: nr
|
@@ -568,83 +568,83 @@ const dn = "_sidebarContainer_bmdti_1", mn = {
|
|
568
568
|
const { planId: t, trialDaysLeft: n, showUpgradeCta: a } = H();
|
569
569
|
if (!a)
|
570
570
|
return null;
|
571
|
-
const c =
|
572
|
-
return /* @__PURE__ */ p(
|
573
|
-
/* @__PURE__ */ i("span", { className:
|
574
|
-
/* @__PURE__ */ p("div", { className: `flex-row items-center gap-1 ${
|
571
|
+
const c = Ee(t) ? "Your team is currently on the Free plan" : `Free trial ends in ${n} ${n === 1 ? "day" : "days"}`;
|
572
|
+
return /* @__PURE__ */ p(K, { href: e, className: `flex-col gap-1 items-start ${_e.container}`, children: [
|
573
|
+
/* @__PURE__ */ i("span", { className: _e.planCta, children: c }),
|
574
|
+
/* @__PURE__ */ p("div", { className: `flex-row items-center gap-1 ${_e.upgradeIconWrapper}`, children: [
|
575
575
|
/* @__PURE__ */ i(ht, {}),
|
576
576
|
/* @__PURE__ */ i("span", { children: "See upgrade options" })
|
577
577
|
] })
|
578
578
|
] });
|
579
|
-
},
|
580
|
-
|
579
|
+
}, w = ({ children: e, ...t }) => /* @__PURE__ */ i("nav", { ...t, className: mn.sidebarContainer, children: e }), ar = ({ children: e }) => /* @__PURE__ */ i("div", { children: e });
|
580
|
+
w.Top = ar;
|
581
581
|
const or = ({ children: e }) => /* @__PURE__ */ i("div", { children: e });
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
const ir = "_breadcrumbsItem_1hm6a_1", sr = "_breadcrumbs_1hm6a_1",
|
582
|
+
w.Bottom = or;
|
583
|
+
w.Avatar = bn;
|
584
|
+
w.IconLink = pn;
|
585
|
+
w.Menu = yn;
|
586
|
+
w.ProfileMenu = $n;
|
587
|
+
w.TeamSwitch = Xn;
|
588
|
+
w.TeamMenuItem = St;
|
589
|
+
w.UpgradeMenuItem = rr;
|
590
|
+
w.ProfileSettingsMenuItem = Fn;
|
591
|
+
const ir = "_breadcrumbsItem_1hm6a_1", sr = "_breadcrumbs_1hm6a_1", tt = {
|
592
592
|
breadcrumbsItem: ir,
|
593
593
|
breadcrumbs: sr
|
594
|
-
},
|
595
|
-
/* @__PURE__ */ i(
|
594
|
+
}, Sa = ({ items: e }) => /* @__PURE__ */ i("nav", { "aria-label": "breadcrumb", className: tt.breadcrumbs, children: e.map((t, n) => /* @__PURE__ */ p(st, { children: [
|
595
|
+
/* @__PURE__ */ i(ct, { className: tt.breadcrumbsItem, href: t.link, rel: "noreferrer", children: t.name }),
|
596
596
|
n < e.length - 1 && /* @__PURE__ */ i("span", { children: " — " })
|
597
|
-
] }, `${t.link}-${t.name}`)) }), cr = ({ items: e }) => /* @__PURE__ */ i(
|
598
|
-
!!n && t.some((a) => a.visible) && /* @__PURE__ */ i(
|
599
|
-
t.filter(({ visible: a }) => a).map(({ link: a, label: o, onClick: s }) => /* @__PURE__ */ i(
|
600
|
-
] }, t[0].label)) }), lr = "_badge_1pc1v_1", ur = "_tag_1pc1v_15", dr = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", mr = "_disabled_1pc1v_57", fr = "_projectNavigationItem_1pc1v_61", _r = "_projectNavigationItemDisabled_1pc1v_67",
|
597
|
+
] }, `${t.link}-${t.name}`)) }), cr = ({ items: e }) => /* @__PURE__ */ i(ot, { children: e.map((t, n) => /* @__PURE__ */ p(st, { children: [
|
598
|
+
!!n && t.some((a) => a.visible) && /* @__PURE__ */ i(ut, {}),
|
599
|
+
t.filter(({ visible: a }) => a).map(({ link: a, label: o, onClick: s }) => /* @__PURE__ */ i(K, { href: a || "#", "aria-label": o, onClick: s, children: o }, o))
|
600
|
+
] }, t[0].label)) }), lr = "_badge_1pc1v_1", ur = "_tag_1pc1v_15", dr = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", mr = "_disabled_1pc1v_57", fr = "_projectNavigationItem_1pc1v_61", _r = "_projectNavigationItemDisabled_1pc1v_67", R = {
|
601
601
|
badge: lr,
|
602
602
|
tag: ur,
|
603
603
|
withNavLinkStyle: dr,
|
604
604
|
disabled: mr,
|
605
605
|
projectNavigationItem: fr,
|
606
606
|
projectNavigationItemDisabled: _r
|
607
|
-
},
|
607
|
+
}, nt = ({ label: e, badge: t, novel: n }) => /* @__PURE__ */ p("div", { className: "flex gap-1", children: [
|
608
608
|
/* @__PURE__ */ p("div", { children: [
|
609
609
|
/* @__PURE__ */ i("span", { children: e }),
|
610
|
-
!!t && /* @__PURE__ */ i("div", { className:
|
610
|
+
!!t && /* @__PURE__ */ i("div", { className: R.badge, "aria-label": `${t} items requiring attention`, children: t > 9 ? "9+" : t })
|
611
611
|
] }),
|
612
|
-
!!n && /* @__PURE__ */ i(Mt, { className:
|
613
|
-
] }),
|
614
|
-
({ label: e, href: t = "", disabled: n = !1, badge: a, onClick: o, novel: s }, c) => /* @__PURE__ */ i(
|
612
|
+
!!n && /* @__PURE__ */ i(Mt, { className: R.tag, children: n })
|
613
|
+
] }), be = Ot(
|
614
|
+
({ label: e, href: t = "", disabled: n = !1, badge: a, onClick: o, novel: s }, c) => /* @__PURE__ */ i(pe, { tooltip: "You do not have access to this function", show: n, children: /* @__PURE__ */ i(
|
615
615
|
"div",
|
616
616
|
{
|
617
|
-
className: n ?
|
617
|
+
className: n ? R.projectNavigationItemDisabled : R.projectNavigationItem,
|
618
618
|
children: o || n || !t ? /* @__PURE__ */ i(
|
619
619
|
"button",
|
620
620
|
{
|
621
621
|
type: "button",
|
622
622
|
ref: c,
|
623
|
-
className: R
|
624
|
-
[
|
623
|
+
className: A(R.withNavLinkStyle, {
|
624
|
+
[R.disabled]: n
|
625
625
|
}),
|
626
626
|
disabled: n,
|
627
627
|
onClick: o,
|
628
|
-
children: /* @__PURE__ */ i(
|
628
|
+
children: /* @__PURE__ */ i(nt, { label: e, badge: a, novel: s })
|
629
629
|
}
|
630
|
-
) : /* @__PURE__ */ i("a", { href: t, className:
|
630
|
+
) : /* @__PURE__ */ i("a", { href: t, className: R.withNavLinkStyle, children: /* @__PURE__ */ i(nt, { label: e, badge: a, novel: s }) })
|
631
631
|
}
|
632
632
|
) })
|
633
633
|
);
|
634
|
-
|
635
|
-
const br = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible))) ?? !1, gr = (e) => e.visible && (!e.dropdown || br(e.dropdown)),
|
634
|
+
be.displayName = "NavigationTabsItem";
|
635
|
+
const br = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible))) ?? !1, gr = (e) => e.visible && (!e.dropdown || br(e.dropdown)), Ea = ({ navigation: e, activeItem: t }) => /* @__PURE__ */ i("nav", { "aria-label": "Project", children: /* @__PURE__ */ i("ul", { className: k.navigationTabList, "aria-orientation": "horizontal", children: e.filter(gr).map((n) => {
|
636
636
|
var a, o, s;
|
637
637
|
return n.dropdown ? /* @__PURE__ */ i(
|
638
638
|
"li",
|
639
639
|
{
|
640
|
-
className:
|
640
|
+
className: k.navigationTab,
|
641
641
|
"data-testid": n.key,
|
642
642
|
"aria-selected": (a = n.isActive) == null ? void 0 : a.call(n, t),
|
643
643
|
children: /* @__PURE__ */ i(
|
644
|
-
|
644
|
+
Te,
|
645
645
|
{
|
646
|
-
menuButton: ({ opened: c }) => /* @__PURE__ */ i(
|
647
|
-
children: /* @__PURE__ */ i(
|
646
|
+
menuButton: ({ opened: c }) => /* @__PURE__ */ i(be, { label: n.label, disabled: n.disabled, active: c }),
|
647
|
+
children: /* @__PURE__ */ i(ve, { children: /* @__PURE__ */ i(cr, { items: n.dropdown }) })
|
648
648
|
}
|
649
649
|
)
|
650
650
|
},
|
@@ -652,11 +652,11 @@ const br = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible)))
|
|
652
652
|
) : /* @__PURE__ */ i(
|
653
653
|
"li",
|
654
654
|
{
|
655
|
-
className:
|
655
|
+
className: k.navigationTab,
|
656
656
|
"data-testid": n.key,
|
657
657
|
"aria-selected": (o = n.isActive) == null ? void 0 : o.call(n, t),
|
658
658
|
children: /* @__PURE__ */ i(
|
659
|
-
|
659
|
+
be,
|
660
660
|
{
|
661
661
|
label: n.label,
|
662
662
|
href: n.link,
|
@@ -676,7 +676,7 @@ const br = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible)))
|
|
676
676
|
}), pr = r.union([
|
677
677
|
r.object({ Authorization: r.string().startsWith("Bearer ") }),
|
678
678
|
r.object({ "x-csrf-token": r.string() })
|
679
|
-
]),
|
679
|
+
]), we = ye({
|
680
680
|
description: "Takes a teamId and returns a JWT token access and refresh token for the user",
|
681
681
|
method: "post",
|
682
682
|
requestPathParamsSchema: r.object({ teamId: r.number() }),
|
@@ -684,16 +684,16 @@ const br = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible)))
|
|
684
684
|
requestHeaderSchema: pr,
|
685
685
|
requestBodySchema: r.undefined(),
|
686
686
|
successResponseBodySchema: hr
|
687
|
-
}),
|
687
|
+
}), Tr = {
|
688
688
|
teamKeyCsrf: (e, t) => ["getUserToken", "x-csrf-token", t, e],
|
689
689
|
teamKeyJwt: (e, t) => ["getUserToken", "Authorization", `Bearer ${t}`, e]
|
690
|
-
},
|
690
|
+
}, vr = (e, t) => L({
|
691
691
|
...t,
|
692
|
-
queryFn: ({ queryKey: [n, a, o, s] }) => W(e,
|
692
|
+
queryFn: ({ queryKey: [n, a, o, s] }) => W(e, we, {
|
693
693
|
pathParams: { teamId: s },
|
694
694
|
headers: a === "x-csrf-token" ? { "x-csrf-token": o } : { Authorization: o }
|
695
695
|
})
|
696
|
-
}),
|
696
|
+
}), Et = r.union([
|
697
697
|
r.literal("owner"),
|
698
698
|
r.literal("admin"),
|
699
699
|
r.literal("biller"),
|
@@ -702,7 +702,7 @@ const br = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible)))
|
|
702
702
|
userId: r.number(),
|
703
703
|
userUuid: r.string(),
|
704
704
|
teamId: r.number(),
|
705
|
-
userTeamRole:
|
705
|
+
userTeamRole: Et,
|
706
706
|
userEmail: r.string().email(),
|
707
707
|
userName: r.string(),
|
708
708
|
userCurrentTeamId: r.number(),
|
@@ -720,44 +720,44 @@ function Q(e) {
|
|
720
720
|
return;
|
721
721
|
}
|
722
722
|
}
|
723
|
-
const
|
723
|
+
const J = class J extends CustomEvent {
|
724
724
|
constructor(t) {
|
725
|
-
super(
|
725
|
+
super(J.eventName, {
|
726
726
|
detail: { token: t, payload: Q(t.accessToken) }
|
727
727
|
});
|
728
728
|
}
|
729
729
|
};
|
730
|
-
|
731
|
-
let
|
732
|
-
function
|
733
|
-
const e =
|
730
|
+
Ae(J, "eventName", "new-jwt-issued");
|
731
|
+
let O = J;
|
732
|
+
function Ie() {
|
733
|
+
const e = ge(document.cookie, "accessToken"), t = ge(document.cookie, "refreshToken");
|
734
734
|
if (!(!e || !t))
|
735
735
|
return { accessToken: e, refreshToken: t };
|
736
736
|
}
|
737
|
-
function
|
738
|
-
return
|
737
|
+
function wt() {
|
738
|
+
return ge(document.cookie, "csrf_token");
|
739
739
|
}
|
740
|
-
function
|
740
|
+
function ge(e, t) {
|
741
741
|
var n, a;
|
742
742
|
return (a = (n = e.split(";").find((o) => o.trim().startsWith(`${t}=`))) == null ? void 0 : n.trim()) == null ? void 0 : a.substring(t.length + 1);
|
743
743
|
}
|
744
|
-
function
|
745
|
-
const n =
|
746
|
-
queryKey:
|
744
|
+
function wa(e, t) {
|
745
|
+
const n = wt(), a = vr(e, {
|
746
|
+
queryKey: Tr.teamKeyCsrf(t, n ?? ""),
|
747
747
|
enabled: n !== void 0
|
748
|
-
}), o =
|
749
|
-
return
|
750
|
-
a.data && a.data.accessToken !== o.current && (window.dispatchEvent(new
|
748
|
+
}), o = it();
|
749
|
+
return q(() => {
|
750
|
+
a.data && a.data.accessToken !== o.current && (window.dispatchEvent(new O(a.data)), o.current = a.data.accessToken);
|
751
751
|
}, [a.data]), a;
|
752
752
|
}
|
753
753
|
function It() {
|
754
|
-
const [e, t] =
|
755
|
-
return
|
754
|
+
const [e, t] = he();
|
755
|
+
return q(() => {
|
756
756
|
const n = (o) => {
|
757
757
|
t(o.detail.payload);
|
758
|
-
}, a =
|
759
|
-
return t(a && Q(a.accessToken)), window.addEventListener(
|
760
|
-
window.removeEventListener(
|
758
|
+
}, a = Ie();
|
759
|
+
return t(a && Q(a.accessToken)), window.addEventListener(O.eventName, n), () => {
|
760
|
+
window.removeEventListener(O.eventName, n);
|
761
761
|
};
|
762
762
|
}, []), e;
|
763
763
|
}
|
@@ -767,29 +767,29 @@ const Sr = r.object({
|
|
767
767
|
fullname: r.string(),
|
768
768
|
created_at: r.string(),
|
769
769
|
created_at_timestamp: r.number(),
|
770
|
-
role:
|
771
|
-
}),
|
770
|
+
role: Et
|
771
|
+
}), Er = r.object({
|
772
772
|
team_id: r.number(),
|
773
773
|
team_user: Sr
|
774
|
-
}),
|
774
|
+
}), wr = B({
|
775
775
|
description: "Get the details of a team user",
|
776
776
|
requestPathParamsSchema: r.object({ teamId: r.number(), userId: r.number() }),
|
777
777
|
pathResolver: ({ teamId: e, userId: t }) => `/teams/${e}/users/${t}`,
|
778
|
-
successResponseBodySchema:
|
778
|
+
successResponseBodySchema: Er
|
779
779
|
}), Ir = {
|
780
780
|
teamUserKey: (e, t) => ["GetTeamUsers", e, t]
|
781
|
-
},
|
781
|
+
}, Pr = (e, t) => L({
|
782
782
|
...t,
|
783
|
-
queryFn: ({ queryKey: [n, a, o] }) => x(e,
|
783
|
+
queryFn: ({ queryKey: [n, a, o] }) => x(e, wr, { pathParams: { teamId: a, userId: o } })
|
784
784
|
});
|
785
|
-
function
|
785
|
+
function Ia(e) {
|
786
786
|
const t = It();
|
787
|
-
return
|
787
|
+
return Pr(e, {
|
788
788
|
queryKey: Ir.teamUserKey((t == null ? void 0 : t.teamId) ?? 0, (t == null ? void 0 : t.userId) ?? 0),
|
789
789
|
enabled: (t == null ? void 0 : t.userId) !== void 0 && t.teamId !== void 0
|
790
790
|
});
|
791
791
|
}
|
792
|
-
const
|
792
|
+
const jr = r.object({
|
793
793
|
lang_id: r.number(),
|
794
794
|
lang_iso: r.string(),
|
795
795
|
lang_name: r.string(),
|
@@ -801,41 +801,41 @@ const Pr = r.object({
|
|
801
801
|
created_at: r.string(),
|
802
802
|
created_at_timestamp: r.number(),
|
803
803
|
admin_rights: r.array(r.string()),
|
804
|
-
languages: r.array(
|
804
|
+
languages: r.array(jr),
|
805
805
|
is_admin: r.boolean(),
|
806
806
|
is_reviewer: r.boolean()
|
807
|
-
}),
|
807
|
+
}), Rr = r.object({
|
808
808
|
project_id: r.string(),
|
809
809
|
contributors: r.array(Cr)
|
810
|
-
}),
|
810
|
+
}), Ar = B({
|
811
811
|
description: "Get the details of a project contributor",
|
812
812
|
requestPathParamsSchema: r.object({ projectId: r.string(), contributorId: r.number() }),
|
813
813
|
pathResolver: ({ projectId: e, contributorId: t }) => `/projects/${e}/contributors/${t}`,
|
814
|
-
successResponseBodySchema:
|
815
|
-
}),
|
814
|
+
successResponseBodySchema: Rr
|
815
|
+
}), Nr = {
|
816
816
|
projectUserKey: (e, t) => ["RetrieveContributor", e, t]
|
817
|
-
},
|
817
|
+
}, kr = (e, t) => L({
|
818
818
|
...t,
|
819
|
-
queryFn: ({ queryKey: [n, a, o] }) => x(e,
|
819
|
+
queryFn: ({ queryKey: [n, a, o] }) => x(e, Ar, {
|
820
820
|
pathParams: { projectId: a, contributorId: o }
|
821
821
|
})
|
822
822
|
});
|
823
|
-
function
|
823
|
+
function Pa(e, t) {
|
824
824
|
const n = It();
|
825
|
-
return
|
826
|
-
queryKey:
|
825
|
+
return kr(e, {
|
826
|
+
queryKey: Nr.projectUserKey(t, (n == null ? void 0 : n.userId) ?? 0),
|
827
827
|
enabled: n !== void 0
|
828
828
|
});
|
829
829
|
}
|
830
|
-
function
|
831
|
-
const e =
|
830
|
+
function ja() {
|
831
|
+
const e = Ie();
|
832
832
|
if (!e)
|
833
833
|
return;
|
834
834
|
const t = Q(e.accessToken);
|
835
835
|
if (t)
|
836
836
|
return { ...e, payload: t };
|
837
837
|
}
|
838
|
-
function
|
838
|
+
function Ca() {
|
839
839
|
return (e) => (t, n) => e(t, {
|
840
840
|
...n,
|
841
841
|
headers: {
|
@@ -848,7 +848,7 @@ function ja() {
|
|
848
848
|
function F(e) {
|
849
849
|
return { Authorization: `Bearer ${e}` };
|
850
850
|
}
|
851
|
-
function
|
851
|
+
function Or(e, t) {
|
852
852
|
return (n) => async (a, o) => {
|
853
853
|
var u;
|
854
854
|
const s = await t.getCachedJwtToken();
|
@@ -862,7 +862,7 @@ function Lr(e, t) {
|
|
862
862
|
const d = Q(s.accessToken);
|
863
863
|
if (!d)
|
864
864
|
return c;
|
865
|
-
const l = await W(e,
|
865
|
+
const l = await W(e, we, {
|
866
866
|
pathParams: { teamId: d.teamId },
|
867
867
|
headers: F(s.refreshToken)
|
868
868
|
});
|
@@ -874,10 +874,10 @@ function Lr(e, t) {
|
|
874
874
|
return c;
|
875
875
|
};
|
876
876
|
}
|
877
|
-
const
|
877
|
+
const Lr = {
|
878
878
|
wretch: {
|
879
879
|
lokaliseAuth(e) {
|
880
|
-
return this.middlewares([
|
880
|
+
return this.middlewares([Or(this, e)]);
|
881
881
|
}
|
882
882
|
}
|
883
883
|
};
|
@@ -889,7 +889,7 @@ function Mr(e, t) {
|
|
889
889
|
const c = await t.getCsrfToken();
|
890
890
|
if (c === void 0)
|
891
891
|
return n(a, o);
|
892
|
-
const u = await W(e,
|
892
|
+
const u = await W(e, we, {
|
893
893
|
pathParams: { teamId: await t.getTeamId() },
|
894
894
|
headers: { "x-csrf-token": c }
|
895
895
|
});
|
@@ -899,32 +899,32 @@ function Mr(e, t) {
|
|
899
899
|
});
|
900
900
|
};
|
901
901
|
}
|
902
|
-
const
|
902
|
+
const Ra = {
|
903
903
|
wretch: {
|
904
904
|
lokaliseAuth(e = {}) {
|
905
|
-
return this.addon(
|
905
|
+
return this.addon(Lr).lokaliseAuth(rt(e));
|
906
906
|
},
|
907
907
|
promoteClassicSession(e) {
|
908
|
-
const t =
|
908
|
+
const t = rt(e);
|
909
909
|
return this.middlewares([Mr(this, t)]);
|
910
910
|
}
|
911
911
|
}
|
912
912
|
};
|
913
|
-
function
|
913
|
+
function rt(e) {
|
914
914
|
return {
|
915
915
|
...e,
|
916
|
-
getCachedJwtToken: e.getCachedJwtToken ?? (async () =>
|
917
|
-
getCsrfToken: "getCsrfToken" in e ? e.getCsrfToken : async () =>
|
916
|
+
getCachedJwtToken: e.getCachedJwtToken ?? (async () => Ie()),
|
917
|
+
getCsrfToken: "getCsrfToken" in e ? e.getCsrfToken : async () => wt(),
|
918
918
|
onNewJwtTokenIssued: (t) => {
|
919
919
|
var n;
|
920
|
-
return window.dispatchEvent(new
|
920
|
+
return window.dispatchEvent(new O(t)), ((n = e.onNewJwtTokenIssued) == null ? void 0 : n.call(e, t)) ?? Promise.resolve();
|
921
921
|
}
|
922
922
|
};
|
923
923
|
}
|
924
|
-
const
|
924
|
+
const Ur = r.object({
|
925
925
|
lang_iso: r.string(),
|
926
926
|
custom_iso: r.string().optional()
|
927
|
-
}),
|
927
|
+
}), qr = r.object({
|
928
928
|
language_id: r.number(),
|
929
929
|
language_iso: r.string(),
|
930
930
|
progress: r.number(),
|
@@ -941,7 +941,7 @@ const qr = r.object({
|
|
941
941
|
project_id: r.string(),
|
942
942
|
project_uuid: r.string().uuid(),
|
943
943
|
languages: r.array(Br)
|
944
|
-
}),
|
944
|
+
}), Pe = r.union([
|
945
945
|
r.literal("localization_files"),
|
946
946
|
r.literal("paged_documents"),
|
947
947
|
r.literal("marketing")
|
@@ -956,7 +956,7 @@ const qr = r.object({
|
|
956
956
|
custom_translation_statuses_allow_multiple: r.boolean(),
|
957
957
|
segmentation: r.boolean(),
|
958
958
|
contributor_preview_download_enabled: r.boolean()
|
959
|
-
}),
|
959
|
+
}), Dr = r.object({
|
960
960
|
not_reviewed: r.number(),
|
961
961
|
unverified: r.number(),
|
962
962
|
spelling_grammar: r.number(),
|
@@ -973,18 +973,18 @@ const qr = r.object({
|
|
973
973
|
double_space: r.number(),
|
974
974
|
special_placeholder: r.number(),
|
975
975
|
unbalanced_brackets: r.number()
|
976
|
-
}),
|
976
|
+
}), Gr = r.object({
|
977
977
|
progress_total: r.number(),
|
978
978
|
keys_total: r.number(),
|
979
979
|
team: r.number(),
|
980
980
|
base_words: r.number(),
|
981
981
|
qa_issues_total: r.number(),
|
982
|
-
qa_issues:
|
983
|
-
languages: r.array(
|
984
|
-
}),
|
982
|
+
qa_issues: Dr,
|
983
|
+
languages: r.array(qr)
|
984
|
+
}), Y = r.object({
|
985
985
|
project_id: r.string(),
|
986
986
|
uuid: r.string().uuid(),
|
987
|
-
project_type:
|
987
|
+
project_type: Pe,
|
988
988
|
name: r.string(),
|
989
989
|
description: r.string(),
|
990
990
|
created_at: r.string(),
|
@@ -995,140 +995,153 @@ const qr = r.object({
|
|
995
995
|
base_language_id: r.number(),
|
996
996
|
base_language_iso: r.string(),
|
997
997
|
settings: $r.optional(),
|
998
|
-
statistics:
|
998
|
+
statistics: Gr.optional()
|
999
999
|
}), Fr = r.object({
|
1000
1000
|
name: r.string(),
|
1001
1001
|
team_id: r.string(),
|
1002
1002
|
base_lang_iso: r.string(),
|
1003
|
-
languages: r.array(
|
1004
|
-
project_type:
|
1003
|
+
languages: r.array(Ur),
|
1004
|
+
project_type: Pe,
|
1005
1005
|
is_segmentation_enabled: r.boolean()
|
1006
|
-
}),
|
1007
|
-
filter_type:
|
1006
|
+
}), at = r.union([r.literal(0), r.literal(1)]), zr = r.object({
|
1007
|
+
filter_type: Pe.optional(),
|
1008
1008
|
filter_team_id: r.number().optional(),
|
1009
1009
|
filter_names: r.string().optional(),
|
1010
|
-
include_statistics:
|
1011
|
-
include_settings:
|
1010
|
+
include_statistics: at.optional(),
|
1011
|
+
include_settings: at.optional(),
|
1012
1012
|
limit: r.number().optional(),
|
1013
1013
|
page: r.number().optional()
|
1014
|
-
}), Kr = r.object({
|
1015
|
-
projects: r.array(Ee)
|
1016
1014
|
}), Jr = r.object({
|
1015
|
+
projects: r.array(Y)
|
1016
|
+
}), Kr = r.object({
|
1017
1017
|
project_id: r.string()
|
1018
|
-
}),
|
1018
|
+
}), Wr = r.object({
|
1019
|
+
project_id: r.string()
|
1020
|
+
}), Qr = r.object({
|
1021
|
+
name: r.string().min(1),
|
1022
|
+
description: r.string().optional()
|
1023
|
+
}), V = () => "/projects", Yr = ye({
|
1019
1024
|
description: "Create a new project",
|
1020
1025
|
method: "post",
|
1021
|
-
pathResolver:
|
1026
|
+
pathResolver: V,
|
1022
1027
|
requestBodySchema: Fr,
|
1023
|
-
successResponseBodySchema:
|
1024
|
-
}),
|
1028
|
+
successResponseBodySchema: Y
|
1029
|
+
}), Vr = B({
|
1025
1030
|
description: "List all projects",
|
1026
|
-
pathResolver:
|
1031
|
+
pathResolver: V,
|
1027
1032
|
requestQuerySchema: zr,
|
1028
|
-
successResponseBodySchema:
|
1029
|
-
}),
|
1033
|
+
successResponseBodySchema: Jr
|
1034
|
+
}), Zr = B({
|
1030
1035
|
description: "Retrieve a project",
|
1031
|
-
pathResolver:
|
1032
|
-
requestQuerySchema:
|
1033
|
-
successResponseBodySchema:
|
1036
|
+
pathResolver: V,
|
1037
|
+
requestQuerySchema: Kr,
|
1038
|
+
successResponseBodySchema: Y
|
1039
|
+
}), Aa = ye({
|
1040
|
+
description: "Update a project",
|
1041
|
+
method: "put",
|
1042
|
+
requestPathParamsSchema: Wr,
|
1043
|
+
pathResolver: ({ project_id: e }) => `${V()}/${e}`,
|
1044
|
+
requestBodySchema: Qr,
|
1045
|
+
successResponseBodySchema: Y
|
1034
1046
|
});
|
1035
|
-
function
|
1036
|
-
return
|
1047
|
+
function Na(e, t = {}) {
|
1048
|
+
return qt({
|
1037
1049
|
...t,
|
1038
|
-
mutationFn: (n) => W(e,
|
1050
|
+
mutationFn: (n) => W(e, Yr, {
|
1039
1051
|
body: n
|
1040
1052
|
})
|
1041
1053
|
});
|
1042
1054
|
}
|
1043
|
-
const
|
1055
|
+
const Xr = B({
|
1044
1056
|
description: "List of project languages",
|
1045
1057
|
requestPathParamsSchema: xr,
|
1046
1058
|
pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
|
1047
1059
|
successResponseBodySchema: Hr
|
1048
|
-
}),
|
1060
|
+
}), ka = {
|
1049
1061
|
projectIdKey: (e) => ["listProjectLanguages", e]
|
1050
1062
|
};
|
1051
|
-
function
|
1052
|
-
return
|
1063
|
+
function Oa(e, t) {
|
1064
|
+
return L({
|
1053
1065
|
...t,
|
1054
|
-
queryFn: ({ queryKey: [n, a] }) => x(e,
|
1066
|
+
queryFn: ({ queryKey: [n, a] }) => x(e, Xr, {
|
1055
1067
|
pathParams: { projectId: a }
|
1056
1068
|
})
|
1057
1069
|
});
|
1058
1070
|
}
|
1059
|
-
const
|
1071
|
+
const La = {
|
1060
1072
|
paramsKey: (e) => ["listProjects", e]
|
1061
1073
|
};
|
1062
|
-
function
|
1063
|
-
return
|
1074
|
+
function Ma(e, t) {
|
1075
|
+
return L({
|
1064
1076
|
...t,
|
1065
|
-
queryFn: ({ queryKey: [n, a] }) => x(e,
|
1077
|
+
queryFn: ({ queryKey: [n, a] }) => x(e, Vr, {
|
1066
1078
|
queryParams: a
|
1067
1079
|
})
|
1068
1080
|
});
|
1069
1081
|
}
|
1070
|
-
const
|
1082
|
+
const Ua = {
|
1071
1083
|
projectIdKey: (e) => ["retrieveProject", e]
|
1072
1084
|
};
|
1073
|
-
function
|
1074
|
-
return
|
1085
|
+
function qa(e, t) {
|
1086
|
+
return L({
|
1075
1087
|
...t,
|
1076
|
-
queryFn: ({ queryKey: [n, a] }) => x(e,
|
1088
|
+
queryFn: ({ queryKey: [n, a] }) => x(e, Zr, {
|
1077
1089
|
queryParams: { project_id: a }
|
1078
1090
|
})
|
1079
1091
|
});
|
1080
1092
|
}
|
1081
1093
|
export {
|
1082
|
-
|
1083
|
-
|
1094
|
+
Sa as Breadcrumbs,
|
1095
|
+
vt as ENTERPRISE_OPENSOURCE_PLAN_ID,
|
1084
1096
|
Mn as ENTERPRISE_PLAN_IDS,
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1097
|
+
On as ESSENTIAL_PLAN_IDS,
|
1098
|
+
Tt as FREE_PLAN_ID,
|
1099
|
+
Lr as LokaliseAuthAddon,
|
1100
|
+
Ra as LokaliseAuthBrowserAddon,
|
1089
1101
|
z as NavigationPanel,
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1102
|
+
Ea as NavigationTabs,
|
1103
|
+
Ln as PRO_PLAN_IDS,
|
1104
|
+
kn as START_PLAN_IDS,
|
1105
|
+
w as Sidebar,
|
1106
|
+
Nn as TRIAL_PLAN_ID,
|
1107
|
+
ha as convertNewLineToBreakTag,
|
1108
|
+
Yr as createProject,
|
1109
|
+
Ta as formatDate,
|
1110
|
+
va as formatDateTz,
|
1111
|
+
ja as getAuthenticatedSessionDetailFromRequest,
|
1112
|
+
wr as getTeamUser,
|
1101
1113
|
Ir as getTeamUsersQueryKey,
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1114
|
+
we as getUserToken,
|
1115
|
+
Tr as getUserTokenKey,
|
1116
|
+
ga as isEnterpriseOpenSourcePlan,
|
1117
|
+
_a as isEnterprisePlan,
|
1118
|
+
ma as isEssentialPlan,
|
1119
|
+
Ee as isFreePlan,
|
1120
|
+
ba as isPaidPlan,
|
1121
|
+
fa as isProPlan,
|
1122
|
+
da as isStartPlan,
|
1111
1123
|
yt as isTrialPlan,
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1124
|
+
ka as listProjectLanguagesKey,
|
1125
|
+
Vr as listProjects,
|
1126
|
+
La as listProjectsKey,
|
1127
|
+
pa as makeUrlClickable,
|
1116
1128
|
Q as parseJwtTokenPayload,
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1129
|
+
Ca as publicApiHeadersMiddleware,
|
1130
|
+
Ar as retrieveContributor,
|
1131
|
+
Nr as retrieveContributorKeys,
|
1132
|
+
Zr as retrieveProject,
|
1133
|
+
Ua as retrieveProjectQueryKey,
|
1134
|
+
Aa as updateProject,
|
1135
|
+
Pa as useAuthenticatedProjectContributor,
|
1123
1136
|
It as useAuthenticatedSessionPayload,
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1137
|
+
Ia as useAuthenticatedUser,
|
1138
|
+
Na as useCreateProjectMutation,
|
1139
|
+
ya as useEffectOnce,
|
1140
|
+
wa as useGetPromotedClassicSessionJwtQuery,
|
1141
|
+
Pr as useGetTeamUsersQuery,
|
1142
|
+
vr as useGetUserTokenQuery,
|
1143
|
+
Oa as useListProjectLanguagesQuery,
|
1144
|
+
Ma as useListProjectsQuery,
|
1145
|
+
kr as useRetrieveContributorQuery,
|
1146
|
+
qa as useRetrieveProjectQuery
|
1134
1147
|
};
|