@lokalise/harmony 1.20.2 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/harmony.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  var en = Object.defineProperty;
2
2
  var tn = (e, t, n) => t in e ? en(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => tn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as s, jsxs as f, Fragment as Ue } from "react/jsx-runtime";
4
+ import { jsx as s, jsxs as p, Fragment as Ue } from "react/jsx-runtime";
5
5
  import * as K from "react";
6
- import { useRef as Ct, useState as R, 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 B, Link as M, Menu as ce, MenuList as le, CaretUpIcon as an, UserIcon as kt, MenuItem as W, MenuDivider as It, ConfirmModal as on, Alert as sn, Tag as Ne, Button as Oe, Loading as cn, Popover as ln, JobIcon as dn } from "@lokalise/louis";
8
- import { format as Rt, parseISO as un, isThisSecond as mn } from "date-fns";
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 Rt, MenuItem as W, MenuDivider as kt, ConfirmModal as on, Alert as sn, Tag as Ne, 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 qe } from "@tanstack/react-query";
13
+ import { useQuery as $, useMutation as Be } from "@tanstack/react-query";
14
14
  import { buildGetRoute as Y, buildPayloadRoute as jt } from "@lokalise/universal-ts-utils/node";
15
15
  const xe = {
16
16
  Completed: "completed",
@@ -31,7 +31,7 @@ function Nt(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 Be() {
34
+ function qe() {
35
35
  if (Qe) return ge;
36
36
  Qe = 1;
37
37
  function e(t) {
@@ -40,22 +40,22 @@ function Be() {
40
40
  }
41
41
  return ge = e, ge;
42
42
  }
43
- var pe, Ye;
43
+ var fe, Ye;
44
44
  function gn() {
45
- if (Ye) return pe;
45
+ if (Ye) return fe;
46
46
  Ye = 1;
47
47
  var e = typeof ae == "object" && ae && ae.Object === Object && ae;
48
- return pe = e, pe;
48
+ return fe = e, fe;
49
49
  }
50
- var fe, Xe;
50
+ var pe, Xe;
51
51
  function Ot() {
52
- if (Xe) return fe;
52
+ if (Xe) return pe;
53
53
  Xe = 1;
54
54
  var e = gn(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
55
- return fe = n, fe;
55
+ return pe = n, pe;
56
56
  }
57
57
  var he, Ve;
58
- function pn() {
58
+ function fn() {
59
59
  if (Ve) return he;
60
60
  Ve = 1;
61
61
  var e = Ot(), t = function() {
@@ -64,7 +64,7 @@ function pn() {
64
64
  return he = t, he;
65
65
  }
66
66
  var be, Ze;
67
- function fn() {
67
+ function pn() {
68
68
  if (Ze) return be;
69
69
  Ze = 1;
70
70
  var e = /\s/;
@@ -75,22 +75,22 @@ function fn() {
75
75
  }
76
76
  return be = t, be;
77
77
  }
78
- var ve, et;
78
+ var Te, et;
79
79
  function hn() {
80
- if (et) return ve;
80
+ if (et) return Te;
81
81
  et = 1;
82
- var e = fn(), t = /^\s+/;
82
+ var e = pn(), t = /^\s+/;
83
83
  function n(a) {
84
84
  return a && a.slice(0, e(a) + 1).replace(t, "");
85
85
  }
86
- return ve = n, ve;
86
+ return Te = n, Te;
87
87
  }
88
- var Te, tt;
88
+ var ve, tt;
89
89
  function xt() {
90
- if (tt) return Te;
90
+ if (tt) return ve;
91
91
  tt = 1;
92
92
  var e = Ot(), t = e.Symbol;
93
- return Te = t, Te;
93
+ return ve = t, ve;
94
94
  }
95
95
  var ye, nt;
96
96
  function bn() {
@@ -109,25 +109,25 @@ function bn() {
109
109
  }
110
110
  return ye = i, ye;
111
111
  }
112
- var Se, rt;
113
- function vn() {
114
- if (rt) return Se;
112
+ var Ee, rt;
113
+ function Tn() {
114
+ if (rt) return Ee;
115
115
  rt = 1;
116
116
  var e = Object.prototype, t = e.toString;
117
117
  function n(a) {
118
118
  return t.call(a);
119
119
  }
120
- return Se = n, Se;
120
+ return Ee = n, Ee;
121
121
  }
122
- var Ee, at;
123
- function Tn() {
124
- if (at) return Ee;
122
+ var Se, at;
123
+ function vn() {
124
+ if (at) return Se;
125
125
  at = 1;
126
- var e = xt(), t = bn(), n = vn(), a = "[object Null]", o = "[object Undefined]", i = e ? e.toStringTag : void 0;
126
+ var e = xt(), t = bn(), n = Tn(), a = "[object Null]", o = "[object Undefined]", i = e ? e.toStringTag : void 0;
127
127
  function c(d) {
128
128
  return d == null ? d === void 0 ? o : a : i && i in Object(d) ? t(d) : n(d);
129
129
  }
130
- return Ee = c, Ee;
130
+ return Se = c, Se;
131
131
  }
132
132
  var Ce, ot;
133
133
  function yn() {
@@ -139,20 +139,20 @@ function yn() {
139
139
  return Ce = e, Ce;
140
140
  }
141
141
  var we, st;
142
- function Sn() {
142
+ function En() {
143
143
  if (st) return we;
144
144
  st = 1;
145
- var e = Tn(), t = yn(), n = "[object Symbol]";
145
+ var e = vn(), t = yn(), n = "[object Symbol]";
146
146
  function a(o) {
147
147
  return typeof o == "symbol" || t(o) && e(o) == n;
148
148
  }
149
149
  return we = a, we;
150
150
  }
151
151
  var Pe, it;
152
- function En() {
152
+ function Sn() {
153
153
  if (it) return Pe;
154
154
  it = 1;
155
- var e = hn(), t = Be(), n = Sn(), a = NaN, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, c = /^0o[0-7]+$/i, d = parseInt;
155
+ var e = hn(), t = qe(), n = En(), 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,49 +174,49 @@ var Ae, ct;
174
174
  function Lt() {
175
175
  if (ct) return Ae;
176
176
  ct = 1;
177
- var e = Be(), t = pn(), n = En(), a = "Expected a function", o = Math.max, i = Math.min;
177
+ var e = qe(), t = fn(), n = Sn(), a = "Expected a function", o = Math.max, i = Math.min;
178
178
  function c(d, u, l) {
179
- var m, g, T, y, _, E, b = 0, p = !1, h = !1, v = !0;
179
+ var m, g, v, y, _, S, b = 0, f = !1, h = !1, T = !0;
180
180
  if (typeof d != "function")
181
181
  throw new TypeError(a);
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
- function w(S) {
182
+ u = n(u) || 0, e(l) && (f = !!l.leading, h = "maxWait" in l, v = h ? o(n(l.maxWait) || 0, u) : v, T = "trailing" in l ? !!l.trailing : T);
183
+ function w(E) {
184
184
  var N = m, G = g;
185
- return m = g = void 0, b = S, y = d.apply(G, N), y;
185
+ return m = g = void 0, b = E, y = d.apply(G, N), y;
186
186
  }
187
- function C(S) {
188
- return b = S, _ = setTimeout(te, u), p ? w(S) : y;
187
+ function C(E) {
188
+ return b = E, _ = setTimeout(te, u), f ? w(E) : y;
189
189
  }
190
- function ee(S) {
191
- var N = S - E, G = S - b, Je = u - N;
192
- return h ? i(Je, T - G) : Je;
190
+ function ee(E) {
191
+ var N = E - S, G = E - b, Je = u - N;
192
+ return h ? i(Je, v - G) : Je;
193
193
  }
194
- function Ke(S) {
195
- var N = S - E, G = S - b;
196
- return E === void 0 || N >= u || N < 0 || h && G >= T;
194
+ function Ke(E) {
195
+ var N = E - S, G = E - b;
196
+ return S === void 0 || N >= u || N < 0 || h && G >= v;
197
197
  }
198
198
  function te() {
199
- var S = t();
200
- if (Ke(S))
201
- return ze(S);
202
- _ = setTimeout(te, ee(S));
199
+ var E = t();
200
+ if (Ke(E))
201
+ return ze(E);
202
+ _ = setTimeout(te, ee(E));
203
203
  }
204
- function ze(S) {
205
- return _ = void 0, v && m ? w(S) : (m = g = void 0, y);
204
+ function ze(E) {
205
+ return _ = void 0, T && m ? w(E) : (m = g = void 0, y);
206
206
  }
207
207
  function Vt() {
208
- _ !== void 0 && clearTimeout(_), b = 0, m = E = g = _ = void 0;
208
+ _ !== void 0 && clearTimeout(_), b = 0, m = S = g = _ = void 0;
209
209
  }
210
210
  function Zt() {
211
211
  return _ === void 0 ? y : ze(t());
212
212
  }
213
213
  function _e() {
214
- var S = t(), N = Ke(S);
215
- if (m = arguments, g = this, E = S, N) {
214
+ var E = t(), N = Ke(E);
215
+ if (m = arguments, g = this, S = E, N) {
216
216
  if (_ === void 0)
217
- return C(E);
217
+ return C(S);
218
218
  if (h)
219
- return clearTimeout(_), _ = setTimeout(te, u), w(E);
219
+ return clearTimeout(_), _ = setTimeout(te, u), w(S);
220
220
  }
221
221
  return _ === void 0 && (_ = setTimeout(te, u)), y;
222
222
  }
@@ -226,11 +226,11 @@ function Lt() {
226
226
  }
227
227
  var Cn = Lt();
228
228
  const wn = /* @__PURE__ */ Nt(Cn);
229
- var ke, lt;
229
+ var Re, lt;
230
230
  function Pn() {
231
- if (lt) return ke;
231
+ if (lt) return Re;
232
232
  lt = 1;
233
- var e = Lt(), t = Be(), n = "Expected a function";
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")
@@ -241,19 +241,19 @@ function Pn() {
241
241
  trailing: u
242
242
  });
243
243
  }
244
- return ke = a, ke;
244
+ return Re = a, Re;
245
245
  }
246
246
  var An = Pn();
247
- const kn = /* @__PURE__ */ Nt(An), In = (e, t, n, a) => {
247
+ const Rn = /* @__PURE__ */ Nt(An), kn = (e, t, n, a) => {
248
248
  switch (t) {
249
249
  case "debounce":
250
250
  return wn(e, n, a);
251
251
  case "throttle":
252
- return kn(e, n, a);
252
+ return Rn(e, n, a);
253
253
  default:
254
254
  return e;
255
255
  }
256
- }, Rn = (
256
+ }, In = (
257
257
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
258
258
  (e) => {
259
259
  const t = K.useRef(e);
@@ -292,26 +292,26 @@ 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 = Rn(u), [g, T] = R({
295
+ const l = Ct(e), m = In(u), [g, v] = I({
296
296
  width: void 0,
297
297
  height: void 0
298
- }), { refProxy: y, refElement: _ } = jn(c), { box: E } = d || {}, b = We((h) => {
298
+ }), { refProxy: y, refElement: _ } = jn(c), { box: S } = d || {}, b = We((h) => {
299
299
  if (!o && !i)
300
300
  return;
301
301
  if (l.current) {
302
302
  l.current = !1;
303
303
  return;
304
304
  }
305
- const v = (w, C) => o && w.width !== C.width || i && w.height !== C.height;
305
+ const T = (w, C) => o && w.width !== C.width || i && w.height !== C.height;
306
306
  h.forEach((w) => {
307
- const C = Nn(w, E);
308
- T((ee) => v(ee, C) ? (m == null || m({
307
+ const C = Nn(w, S);
308
+ v((ee) => T(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(In(b, t, n, a), [
314
+ }, [o, i, l, S]), f = We(kn(b, t, n, a), [
315
315
  b,
316
316
  t,
317
317
  n,
@@ -319,15 +319,15 @@ function On({ skipOnMount: e = !1, refreshMode: t, refreshRate: n = 1e3, refresh
319
319
  ]);
320
320
  return J(() => {
321
321
  let h;
322
- return _ ? (h = new window.ResizeObserver(p), h.observe(_, d)) : (g.width || g.height) && (m == null || m({
322
+ return _ ? (h = new window.ResizeObserver(f), h.observe(_, d)) : (g.width || g.height) && (m == null || m({
323
323
  width: null,
324
324
  height: null,
325
325
  entry: null
326
- }), T({ width: void 0, height: void 0 })), () => {
327
- var v, w, C;
328
- (v = h == null ? void 0 : h.disconnect) === null || v === void 0 || v.call(h), (C = (w = p).cancel) === null || C === void 0 || C.call(w);
326
+ }), v({ width: void 0, height: void 0 })), () => {
327
+ var T, w, C;
328
+ (T = h == null ? void 0 : h.disconnect) === null || T === void 0 || T.call(h), (C = (w = f).cancel) === null || C === void 0 || C.call(w);
329
329
  };
330
- }, [p, _]), Object.assign({ ref: y }, g);
330
+ }, [f, _]), Object.assign({ ref: y }, g);
331
331
  }
332
332
  function Mt(e) {
333
333
  var t, n, a = "";
@@ -342,30 +342,30 @@ function j() {
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", q = {
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
- }, qn = 77, oe = ({ sticky: e, children: t }) => {
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] = R(!1), c = () => o ? !e : !0;
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 || qn}px`;
363
- return /* @__PURE__ */ s("div", { style: { minHeight: d }, children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ f(
362
+ const d = `${a || Bn}px`;
363
+ return /* @__PURE__ */ s("div", { style: { minHeight: d }, children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ p(
364
364
  "div",
365
365
  {
366
366
  ref: n,
367
- className: j(q.headerContent, {
368
- [q.staticEnabled]: c()
367
+ className: j(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: q.headerContainer, children: e });
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 Bn = "_sidebarContainer_bmdti_1", Dn = {
381
- sidebarContainer: Bn
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,7 +389,7 @@ 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(B, { placement: "right", tooltip: e, children: /* @__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
395
  className: j(dt.link, {
@@ -404,7 +404,7 @@ 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(B, { placement: "right", tooltip: "Help", children: /* @__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",
@@ -454,7 +454,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
454
454
  return /* @__PURE__ */ s(
455
455
  ce,
456
456
  {
457
- menuButton: () => /* @__PURE__ */ f("button", { className: x.profileButton, "aria-label": "Profile menu", type: "button", children: [
457
+ menuButton: () => /* @__PURE__ */ p("button", { className: x.profileButton, "aria-label": "Profile menu", type: "button", children: [
458
458
  t != null && t.logoUrl ? /* @__PURE__ */ s(
459
459
  "img",
460
460
  {
@@ -470,7 +470,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
470
470
  className: j(x.userIconWrapper, "flex-row", "align-center", "items-center", {
471
471
  [x.profileImageHighlight]: a
472
472
  }),
473
- children: /* @__PURE__ */ s(kt, { size: "25px" })
473
+ children: /* @__PURE__ */ s(Rt, { size: "25px" })
474
474
  }
475
475
  ),
476
476
  a && /* @__PURE__ */ s(Ut, { className: x.profileImageUpgradeIcon })
@@ -487,7 +487,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
487
487
  }) })
488
488
  }
489
489
  );
490
- }, qt = 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], Bt = 9998, De = (e) => e === qt, Dt = (e) => e === sr, Bo = (e) => ir.includes(e), Do = (e) => cr.includes(e), $o = (e) => lr.includes(e), Go = (e) => dr.includes(e), Fo = (e) => e > qt && e < Bt, Ko = (e) => e === Bt, 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) => {
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, zo = (e) => ir.includes(e), Jo = (e) => cr.includes(e), Wo = (e) => lr.includes(e), Qo = (e) => dr.includes(e), Yo = (e) => e > Bt && e < qt, Xo = (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, fr = (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;
@@ -496,40 +496,40 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
496
496
  /* @__PURE__ */ s("a", { href: t, target: "_blank", rel: "noreferrer noopener", children: t }, t + n)
497
497
  ), o.push(a.join(t)), o.filter((i) => i !== "");
498
498
  }, gt = (e) => {
499
- const t = pr(e);
499
+ const t = fr(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") => Rt(e, t), zo = (e, t, n = "PP") => Rt(_n(e, t), n), $e = (e) => {
501
+ }, pr = (e) => typeof e == "string" ? gt(e) : e.flatMap((t) => typeof t == "string" ? gt(t) : t, e), hr = (e, t = "PP") => It(e, t), Vo = (e, t, n = "PP") => It(_n(e, t), n), $e = (e) => {
502
502
  J(e, []);
503
- }, pt = {
503
+ }, ft = {
504
504
  biller: "biller",
505
505
  owner: "owner"
506
- }, ft = [
507
- pt.biller,
508
- pt.owner
506
+ }, pt = [
507
+ ft.biller,
508
+ ft.owner
509
509
  ], br = ({ children: e, config: t }) => {
510
- const { teams: n, currentTeamId: a, planId: o, isEndOfTrialActive: i, isFullyAuthenticated: c, userTeamRole: d } = t, u = n.find((p) => p.id === a), l = n.filter((p) => p.id !== a), m = ft.includes(d), g = ft.includes(d), T = De(o) || Dt(o), b = {
510
+ const { teams: n, currentTeamId: a, planId: o, isEndOfTrialActive: i, isFullyAuthenticated: c, userTeamRole: d } = t, u = n.find((f) => f.id === a), l = n.filter((f) => f.id !== a), m = pt.includes(d), g = pt.includes(d), v = De(o) || Dt(o), b = {
511
511
  ...t,
512
512
  currentTeam: u,
513
513
  otherTeams: l,
514
514
  canChangeBilling: m,
515
515
  canAccessTeamSettings: g,
516
- isOnFreeOrTrialPlan: T,
517
- showUpgradeCta: c && T && m,
516
+ isOnFreeOrTrialPlan: v,
517
+ showUpgradeCta: c && v && m,
518
518
  showBillingButton: c && g && m,
519
519
  allowTeamCreation: c && !i
520
520
  };
521
521
  return /* @__PURE__ */ s(Ht.Provider, { value: b, children: e });
522
- }, vr = ({ config: e, children: t }) => /* @__PURE__ */ s(br, { config: e, children: /* @__PURE__ */ s(or, { children: t }) }), Tr = "_container_q5pot_1", yr = "_profileEmail_q5pot_5", ht = {
523
- container: Tr,
522
+ }, Tr = ({ config: e, children: t }) => /* @__PURE__ */ s(br, { config: e, children: /* @__PURE__ */ s(or, { children: t }) }), vr = "_container_q5pot_1", yr = "_profileEmail_q5pot_5", ht = {
523
+ container: vr,
524
524
  profileEmail: yr
525
- }, Sr = ({
525
+ }, Er = ({
526
526
  href: e,
527
527
  onClick: t,
528
528
  userEmail: n,
529
529
  hideBottomDivider: a
530
530
  }) => {
531
531
  const { isEndOfTrialActive: o, isTeamSuspended: i } = X();
532
- return o || i ? null : /* @__PURE__ */ f(Ue, { children: [
532
+ return o || i ? null : /* @__PURE__ */ p(Ue, { children: [
533
533
  /* @__PURE__ */ s(
534
534
  W,
535
535
  {
@@ -537,37 +537,37 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
537
537
  onClick: () => {
538
538
  t == null || t();
539
539
  },
540
- children: /* @__PURE__ */ f("div", { className: `flex-col ${ht.container}`, children: [
540
+ children: /* @__PURE__ */ p("div", { className: `flex-col ${ht.container}`, children: [
541
541
  /* @__PURE__ */ s("span", { children: "Profile Settings" }),
542
542
  /* @__PURE__ */ s("span", { className: ht.profileEmail, children: n })
543
543
  ] })
544
544
  }
545
545
  ),
546
- !a && /* @__PURE__ */ s(It, {})
546
+ !a && /* @__PURE__ */ s(kt, {})
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", Ir = "_membership_1in7x_53", Rr = "_defaultProfileImage_1in7x_59", O = {
549
- wrapper: Er,
548
+ }, Sr = "_wrapper_1in7x_5", Cr = "_profileImage_1in7x_11", wr = "_teamDetails_1in7x_19", Pr = "_planWrapper_1in7x_28", Ar = "_teamName_1in7x_36", Rr = "_planLabel_1in7x_45", kr = "_membership_1in7x_53", Ir = "_defaultProfileImage_1in7x_59", O = {
549
+ wrapper: Sr,
550
550
  profileImage: Cr,
551
551
  teamDetails: wr,
552
552
  planWrapper: Pr,
553
553
  teamName: Ar,
554
- planLabel: kr,
555
- membership: Ir,
556
- defaultProfileImage: Rr
554
+ planLabel: Rr,
555
+ membership: kr,
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)
560
560
  return null;
561
561
  const c = De(o) ? "Free" : Dt(o) ? "Trial" : void 0;
562
- return /* @__PURE__ */ f(
562
+ return /* @__PURE__ */ p(
563
563
  t ? W : "div",
564
564
  {
565
565
  className: O.wrapper,
566
566
  ...t && { onClick: () => t(i) },
567
567
  children: [
568
- i.logoUrl ? /* @__PURE__ */ s("img", { className: O.profileImage, src: i.logoUrl, alt: "" }) : /* @__PURE__ */ s("span", { className: `${O.defaultProfileImage}`, children: /* @__PURE__ */ s(kt, { size: "25px" }) }),
569
- /* @__PURE__ */ f("div", { className: O.teamDetails, children: [
570
- /* @__PURE__ */ f("div", { className: O.planWrapper, children: [
568
+ i.logoUrl ? /* @__PURE__ */ s("img", { className: O.profileImage, src: i.logoUrl, alt: "" }) : /* @__PURE__ */ s("span", { className: `${O.defaultProfileImage}`, children: /* @__PURE__ */ s(Rt, { size: "25px" }) }),
569
+ /* @__PURE__ */ p("div", { className: O.teamDetails, children: [
570
+ /* @__PURE__ */ p("div", { className: O.planWrapper, children: [
571
571
  /* @__PURE__ */ s("span", { className: O.teamName, children: i.name }),
572
572
  c && !n && /* @__PURE__ */ s("span", { className: `${O.planLabel}`, children: c })
573
573
  ] }),
@@ -588,7 +588,7 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
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", Ie = {
591
+ }, xr = "_container_1u995_1", Lr = "_planCta_1u995_15", Mr = "_upgradeIconWrapper_1u995_19", ke = {
592
592
  container: xr,
593
593
  planCta: Lr,
594
594
  upgradeIconWrapper: Mr
@@ -597,24 +597,24 @@ const Bn = "_sidebarContainer_bmdti_1", Dn = {
597
597
  if (!a)
598
598
  return null;
599
599
  const c = De(t) ? "Your team is currently on the Free plan" : `Free trial ends in ${n} ${n === 1 ? "day" : "days"}`;
600
- return /* @__PURE__ */ f(
600
+ return /* @__PURE__ */ p(
601
601
  W,
602
602
  {
603
603
  "data-testid": "sidebar-upgrade-menu-item",
604
604
  href: e,
605
- className: `flex-col gap-1 items-start ${Ie.container}`,
605
+ className: `flex-col gap-1 items-start ${ke.container}`,
606
606
  children: [
607
- /* @__PURE__ */ s("span", { className: Ie.planCta, children: c }),
608
- /* @__PURE__ */ f("div", { className: `flex-row items-center gap-1 ${Ie.upgradeIconWrapper}`, children: [
607
+ /* @__PURE__ */ s("span", { className: ke.planCta, children: c }),
608
+ /* @__PURE__ */ p("div", { className: `flex-row items-center gap-1 ${ke.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, qr = Math.max;
615
+ }, Hr = Math.min, Br = Math.max;
616
616
  function bt(e, t, n) {
617
- return qr(e, Hr(t, n));
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 Br(e) {
625
+ function qr(e) {
626
626
  return e === "x" ? "y" : "x";
627
627
  }
628
628
  function Dr(e) {
@@ -645,7 +645,7 @@ function Gr(e) {
645
645
  left: e
646
646
  };
647
647
  }
648
- function vt(e) {
648
+ function Tt(e) {
649
649
  const {
650
650
  x: t,
651
651
  y: n,
@@ -677,9 +677,9 @@ async function Fr(e, t) {
677
677
  boundary: l = "clippingAncestors",
678
678
  rootBoundary: m = "viewport",
679
679
  elementContext: g = "floating",
680
- altBoundary: T = !1,
680
+ altBoundary: v = !1,
681
681
  padding: y = 0
682
- } = Gt(t, e), _ = Gr(y), b = d[T ? g === "floating" ? "reference" : "floating" : g], p = vt(await i.getClippingRect({
682
+ } = Gt(t, e), _ = Gr(y), b = d[v ? g === "floating" ? "reference" : "floating" : g], f = Tt(await i.getClippingRect({
683
683
  element: (n = await (i.isElement == null ? void 0 : i.isElement(b))) == null || n ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(d.floating)),
684
684
  boundary: l,
685
685
  rootBoundary: m,
@@ -689,23 +689,23 @@ async function Fr(e, t) {
689
689
  y: o,
690
690
  width: c.floating.width,
691
691
  height: c.floating.height
692
- } : c.reference, v = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d.floating)), w = await (i.isElement == null ? void 0 : i.isElement(v)) ? await (i.getScale == null ? void 0 : i.getScale(v)) || {
692
+ } : c.reference, T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d.floating)), w = await (i.isElement == null ? void 0 : i.isElement(T)) ? await (i.getScale == null ? void 0 : i.getScale(T)) || {
693
693
  x: 1,
694
694
  y: 1
695
695
  } : {
696
696
  x: 1,
697
697
  y: 1
698
- }, C = vt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
698
+ }, C = Tt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
699
699
  elements: d,
700
700
  rect: h,
701
- offsetParent: v,
701
+ offsetParent: T,
702
702
  strategy: u
703
703
  }) : h);
704
704
  return {
705
- top: (p.top - C.top + _.top) / w.y,
706
- bottom: (C.bottom - p.bottom + _.bottom) / w.y,
707
- left: (p.left - C.left + _.left) / w.x,
708
- right: (C.right - p.right + _.right) / w.x
705
+ top: (f.top - C.top + _.top) / w.y,
706
+ bottom: (C.bottom - f.bottom + _.bottom) / w.y,
707
+ left: (f.left - C.left + _.left) / w.x,
708
+ right: (C.right - f.right + _.right) / w.x
709
709
  };
710
710
  }
711
711
  const Kr = function(e) {
@@ -723,11 +723,11 @@ const Kr = function(e) {
723
723
  limiter: d = {
724
724
  fn: (b) => {
725
725
  let {
726
- x: p,
726
+ x: f,
727
727
  y: h
728
728
  } = b;
729
729
  return {
730
- x: p,
730
+ x: f,
731
731
  y: h
732
732
  };
733
733
  }
@@ -736,35 +736,35 @@ 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 = Br(g);
740
- let y = l[T], _ = l[g];
739
+ }, m = await Fr(t, u), g = Dr(Ft(o)), v = qr(g);
740
+ let y = l[v], _ = l[g];
741
741
  if (i) {
742
- const b = T === "y" ? "top" : "left", p = T === "y" ? "bottom" : "right", h = y + m[b], v = y - m[p];
743
- y = bt(h, y, v);
742
+ const b = v === "y" ? "top" : "left", f = v === "y" ? "bottom" : "right", h = y + m[b], T = y - m[f];
743
+ y = bt(h, y, T);
744
744
  }
745
745
  if (c) {
746
- const b = g === "y" ? "top" : "left", p = g === "y" ? "bottom" : "right", h = _ + m[b], v = _ - m[p];
747
- _ = bt(h, _, v);
746
+ const b = g === "y" ? "top" : "left", f = g === "y" ? "bottom" : "right", h = _ + m[b], T = _ - m[f];
747
+ _ = bt(h, _, T);
748
748
  }
749
- const E = d.fn({
749
+ const S = d.fn({
750
750
  ...t,
751
- [T]: y,
751
+ [v]: y,
752
752
  [g]: _
753
753
  });
754
754
  return {
755
- ...E,
755
+ ...S,
756
756
  data: {
757
- x: E.x - n,
758
- y: E.y - a,
757
+ x: S.x - n,
758
+ y: S.y - a,
759
759
  enabled: {
760
- [T]: i,
760
+ [v]: i,
761
761
  [g]: c
762
762
  }
763
763
  }
764
764
  };
765
765
  }
766
766
  };
767
- }, zr = "_navItem_1dudv_1", Jr = "_activeNavItem_1dudv_18", Wr = "_badge_1dudv_23", Re = {
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
@@ -801,11 +801,11 @@ const Kr = function(e) {
801
801
  A.Completed
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
- }, 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] = R(!1), [o, i] = R(!1), { onLanguageCompleteConfirm: c, fetchTasks: d } = V(), u = () => {
804
+ }, vt = (e) => [xe.InProgress, xe.Created].includes(e), ea = (e, t) => vt(e.status) && vt(t.status) && (t.progress ?? 0) >= 100, ta = ({ task: e, language: t }) => {
805
+ const [n, a] = I(!1), [o, i] = I(!1), { onLanguageCompleteConfirm: c, fetchTasks: d } = V(), u = () => {
806
806
  i(!1);
807
807
  };
808
- return /* @__PURE__ */ f(Ue, { children: [
808
+ return /* @__PURE__ */ p(Ue, { children: [
809
809
  o && /* @__PURE__ */ s(
810
810
  on,
811
811
  {
@@ -818,7 +818,7 @@ const Kr = function(e) {
818
818
  onConfirm: async () => {
819
819
  a(!0), await c({ task: e, language: t, closePrompt: u }), d();
820
820
  },
821
- children: /* @__PURE__ */ f(sn, { status: "info", children: [
821
+ children: /* @__PURE__ */ p(sn, { status: "info", children: [
822
822
  "Make sure you are finished and ",
823
823
  /* @__PURE__ */ s("strong", { children: "mark it as done" }),
824
824
  " to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
@@ -842,14 +842,14 @@ const Kr = function(e) {
842
842
  langStatus: aa
843
843
  }, oa = ({ language: e, task: t }) => {
844
844
  const { getProjectUrl: n, langNameOnClick: a, langProgressOnClick: o } = V(), i = e.progress ?? 0, c = e.status === A.Completed, d = ea(t, e);
845
- return /* @__PURE__ */ f(
845
+ return /* @__PURE__ */ p(
846
846
  "tr",
847
847
  {
848
848
  className: j({
849
849
  [je.langRowCompleted]: d
850
850
  }),
851
851
  children: [
852
- /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(B, { tooltip: "Open in bilingual view", 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: je.langCellSecondary, children: d || c ? "0" : /* @__PURE__ */ s(B, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ s(
862
+ /* @__PURE__ */ s("td", { className: je.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 }),
@@ -869,7 +869,7 @@ const Kr = function(e) {
869
869
  children: e.base_words_total - e.base_words_done
870
870
  }
871
871
  ) }) }),
872
- /* @__PURE__ */ f("td", { children: [
872
+ /* @__PURE__ */ p("td", { children: [
873
873
  i,
874
874
  "%"
875
875
  ] }),
@@ -898,11 +898,11 @@ const Kr = function(e) {
898
898
  "noopener,noreferrer"
899
899
  );
900
900
  };
901
- return /* @__PURE__ */ f("div", { className: H.taskContainer, children: [
902
- /* @__PURE__ */ f("div", { className: "flex-row gap-1 items-center", children: [
903
- /* @__PURE__ */ f("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
901
+ return /* @__PURE__ */ p("div", { className: H.taskContainer, children: [
902
+ /* @__PURE__ */ p("div", { className: "flex-row gap-1 items-center", children: [
903
+ /* @__PURE__ */ p("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
904
904
  /* @__PURE__ */ s(Ne, { color: Vr[e.task_type], variant: "solid", children: e.task_type.toLocaleUpperCase() }),
905
- e.due_date && /* @__PURE__ */ f(Ne, { color: "#EAB308", children: [
905
+ e.due_date && /* @__PURE__ */ p(Ne, { color: "#EAB308", children: [
906
906
  "DUE ",
907
907
  hr(un(e.due_date), "yyyy-MM-dd")
908
908
  ] })
@@ -940,9 +940,9 @@ const Kr = function(e) {
940
940
  children: e.title
941
941
  }
942
942
  ) }),
943
- e.description && /* @__PURE__ */ s("div", { className: H.taskDescription, children: _r(fr(e.description)) }),
944
- /* @__PURE__ */ f("table", { className: H.languagesTable, children: [
945
- /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ f("tr", { children: [
943
+ e.description && /* @__PURE__ */ s("div", { className: H.taskDescription, children: _r(pr(e.description)) }),
944
+ /* @__PURE__ */ p("table", { className: H.languagesTable, children: [
945
+ /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ p("tr", { children: [
946
946
  /* @__PURE__ */ s("th", { children: "Languages" }),
947
947
  /* @__PURE__ */ s("th", { children: "Words to do" }),
948
948
  /* @__PURE__ */ s("th", { children: "Progress" }),
@@ -950,13 +950,13 @@ const Kr = function(e) {
950
950
  ] }) }),
951
951
  /* @__PURE__ */ s("tbody", { children: a.map((i) => /* @__PURE__ */ s(oa, { language: i, task: e }, i.lang_id)) })
952
952
  ] }),
953
- /* @__PURE__ */ f("div", { "data-testid": "sidebar-task-overview-metadata", className: H.metadata, children: [
954
- /* @__PURE__ */ f("span", { children: [
953
+ /* @__PURE__ */ p("div", { "data-testid": "sidebar-task-overview-metadata", className: H.metadata, children: [
954
+ /* @__PURE__ */ p("span", { children: [
955
955
  "Source: ",
956
956
  e.source_lang_name
957
957
  ] }),
958
958
  /* @__PURE__ */ s("span", { children: e.created_by_fullname }),
959
- /* @__PURE__ */ f("span", { children: [
959
+ /* @__PURE__ */ p("span", { children: [
960
960
  "In ",
961
961
  e.project_name,
962
962
  e.master_branching_enabled === "1" && /* @__PURE__ */ s("div", { className: H.tag, children: e.branch_name ? e.branch_name : "master" })
@@ -968,12 +968,12 @@ const Kr = function(e) {
968
968
  TaskClosed: "task_closed",
969
969
  Refresh: "refresh",
970
970
  ShowDialog: "show_dialog"
971
- }, ma = "_loadingContainer_19d6m_1", _a = "_noTasksContainer_19d6m_7", ga = "_noTasksHeading_19d6m_14", pa = "_noTasksText_19d6m_18", fa = "_tasksContainer_19d6m_23", F = {
971
+ }, ma = "_loadingContainer_19d6m_1", _a = "_noTasksContainer_19d6m_7", ga = "_noTasksHeading_19d6m_14", fa = "_noTasksText_19d6m_18", pa = "_tasksContainer_19d6m_23", F = {
972
972
  loadingContainer: ma,
973
973
  noTasksContainer: _a,
974
974
  noTasksHeading: ga,
975
- noTasksText: pa,
976
- tasksContainer: fa
975
+ noTasksText: fa,
976
+ tasksContainer: pa
977
977
  }, ha = () => {
978
978
  const { tasks: e, onTasksWidgetOpen: t, loadingTasks: n, fetchTasks: a } = V();
979
979
  return $e(() => ((async () => {
@@ -981,32 +981,32 @@ const Kr = function(e) {
981
981
  t == null || t({ tasks: i });
982
982
  })(), document.addEventListener(P.TaskCompleted, a), document.addEventListener(P.TaskClosed, a), document.addEventListener(P.Refresh, a), () => {
983
983
  document.removeEventListener(P.TaskCompleted, a), document.removeEventListener(P.TaskClosed, a), document.removeEventListener(P.Refresh, a);
984
- })), n ? /* @__PURE__ */ s("div", { "data-testid": "sidebar-tasks-loading-popover", className: F.loadingContainer, children: /* @__PURE__ */ s(cn, {}) }) : e.length === 0 ? /* @__PURE__ */ f("div", { "data-testid": "sidebar-no-tasks-popover", className: F.noTasksContainer, children: [
984
+ })), n ? /* @__PURE__ */ s("div", { "data-testid": "sidebar-tasks-loading-popover", className: F.loadingContainer, children: /* @__PURE__ */ s(cn, {}) }) : e.length === 0 ? /* @__PURE__ */ p("div", { "data-testid": "sidebar-no-tasks-popover", className: F.noTasksContainer, children: [
985
985
  /* @__PURE__ */ s("h3", { className: F.noTasksHeading, children: "No tasks" }),
986
- /* @__PURE__ */ f("div", { className: F.noTasksText, children: [
986
+ /* @__PURE__ */ p("div", { className: F.noTasksText, children: [
987
987
  "Your incoming tasks will appear here.",
988
988
  /* @__PURE__ */ s("br", {}),
989
989
  /* @__PURE__ */ s(M, { href: "https://docs.lokalise.com/translation-workflow/tasks", target: "_new", children: "Learn more" })
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] = R([]), [o, i] = R(!0), [c, d] = R(0), {
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,
997
997
  langNameOnClick: g,
998
- langProgressOnClick: T,
998
+ langProgressOnClick: v,
999
999
  taskTitleOnClick: y
1000
- } = t, { getTasks: _, getTasksCount: E } = t, b = async () => {
1000
+ } = t, { getTasks: _, getTasksCount: S } = t, b = async () => {
1001
1001
  i(!0);
1002
- const v = await _();
1003
- return a(v), i(!1), v;
1004
- }, p = async () => {
1005
- const v = await E();
1006
- d(v);
1002
+ const T = await _();
1003
+ return a(T), i(!1), T;
1004
+ }, f = async () => {
1005
+ const T = await S();
1006
+ d(T);
1007
1007
  };
1008
- $e(() => (p(), document.addEventListener(P.TaskCompleted, p), document.addEventListener(P.TaskClosed, p), document.addEventListener(P.Refresh, p), () => {
1009
- document.removeEventListener(P.TaskCompleted, p), document.removeEventListener(P.TaskClosed, p), document.removeEventListener(P.Refresh, p);
1008
+ $e(() => (f(), document.addEventListener(P.TaskCompleted, f), document.addEventListener(P.TaskClosed, f), document.addEventListener(P.Refresh, f), () => {
1009
+ document.removeEventListener(P.TaskCompleted, f), document.removeEventListener(P.TaskClosed, f), document.removeEventListener(P.Refresh, f);
1010
1010
  }));
1011
1011
  const h = {
1012
1012
  fetchTasks: b,
@@ -1017,15 +1017,15 @@ const Kr = function(e) {
1017
1017
  onLanguageCompleteConfirm: l,
1018
1018
  onTasksWidgetOpen: m,
1019
1019
  langNameOnClick: g,
1020
- langProgressOnClick: T,
1020
+ langProgressOnClick: v,
1021
1021
  taskTitleOnClick: y
1022
1022
  };
1023
1023
  return /* @__PURE__ */ s(Kt.Provider, { value: h, children: e });
1024
- }, va = (e) => function(n) {
1024
+ }, Ta = (e) => function(n) {
1025
1025
  const { config: a, ...o } = n;
1026
1026
  return /* @__PURE__ */ s(ba, { config: a, children: /* @__PURE__ */ s(e, { ...o }) });
1027
- }, Ta = va(() => {
1028
- const [e, t] = R(!1), { tasksCount: n } = V();
1027
+ }, va = Ta(() => {
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(B, { tooltip: "Tasks", placement: "right", children: /* @__PURE__ */ s(
1036
+ }), /* @__PURE__ */ s(q, { tooltip: "Tasks", placement: "right", children: /* @__PURE__ */ s(
1037
1037
  ln,
1038
1038
  {
1039
1039
  content: /* @__PURE__ */ s(ha, {}),
@@ -1050,60 +1050,60 @@ const Kr = function(e) {
1050
1050
  }
1051
1051
  })
1052
1052
  ],
1053
- children: (a) => /* @__PURE__ */ f(
1053
+ children: (a) => /* @__PURE__ */ p(
1054
1054
  Oe,
1055
1055
  {
1056
1056
  type: "button",
1057
1057
  "data-testid": "sidebar-tasks-widget-button",
1058
1058
  "aria-label": "Tasks",
1059
- className: j(Re.navItem, {
1060
- [Re.activeNavItem]: a
1059
+ className: j(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: Re.badge, "aria-label": `${n} items requiring attention`, children: n > 9 ? "9+" : n })
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
  )
1068
1068
  }
1069
1069
  ) });
1070
- }), k = ({ children: e, ...t }) => /* @__PURE__ */ s("nav", { ...t, className: Dn.sidebarContainer, children: e }), ya = ({ children: e }) => /* @__PURE__ */ s("div", { children: e });
1071
- k.Top = ya;
1072
- const Sa = ({ children: e }) => /* @__PURE__ */ s("div", { children: e });
1073
- k.Bottom = Sa;
1074
- k.Avatar = Fn;
1075
- k.IconLink = Jn;
1076
- k.Menu = Yn;
1077
- k.ProfileMenu = vr;
1078
- k.TeamSwitch = Or;
1079
- k.TeamMenuItem = $t;
1080
- k.UpgradeMenuItem = Ur;
1081
- k.ProfileSettingsMenuItem = Sr;
1082
- k.Tasks = Ta;
1083
- const Ea = "_breadcrumbsItem_1hm6a_1", Ca = "_breadcrumbs_1hm6a_1", yt = {
1084
- breadcrumbsItem: Ea,
1070
+ }), R = ({ children: e, ...t }) => /* @__PURE__ */ s("nav", { ...t, className: Dn.sidebarContainer, children: e }), ya = ({ children: e }) => /* @__PURE__ */ s("div", { children: e });
1071
+ R.Top = ya;
1072
+ const Ea = ({ children: e }) => /* @__PURE__ */ s("div", { children: e });
1073
+ R.Bottom = Ea;
1074
+ R.Avatar = Fn;
1075
+ R.IconLink = Jn;
1076
+ R.Menu = Yn;
1077
+ R.ProfileMenu = Tr;
1078
+ R.TeamSwitch = Or;
1079
+ R.TeamMenuItem = $t;
1080
+ R.UpgradeMenuItem = Ur;
1081
+ R.ProfileSettingsMenuItem = Er;
1082
+ R.Tasks = va;
1083
+ const Sa = "_breadcrumbsItem_1hm6a_1", Ca = "_breadcrumbs_1hm6a_1", yt = {
1084
+ breadcrumbsItem: Sa,
1085
1085
  breadcrumbs: Ca
1086
- }, Jo = ({ items: e }) => /* @__PURE__ */ s("nav", { "aria-label": "breadcrumb", className: yt.breadcrumbs, children: e.map((t, n) => /* @__PURE__ */ f(At, { children: [
1086
+ }, Zo = ({ items: e }) => /* @__PURE__ */ s("nav", { "aria-label": "breadcrumb", className: yt.breadcrumbs, children: e.map((t, n) => /* @__PURE__ */ p(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
- ] }, `${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(It, {}),
1089
+ ] }, `${t.link}-${t.name}`)) }), wa = ({ items: e }) => /* @__PURE__ */ s(Ue, { children: e.map((t, n) => /* @__PURE__ */ p(At, { children: [
1090
+ !!n && t.some((a) => a.visible) && /* @__PURE__ */ s(kt, {}),
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", Ia = "_disabled_1pc1v_57", Ra = "_projectNavigationItem_1pc1v_61", ja = "_projectNavigationItemDisabled_1pc1v_67", L = {
1092
+ ] }, t[0].label)) }), Pa = "_badge_1pc1v_1", Aa = "_tag_1pc1v_15", Ra = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", ka = "_disabled_1pc1v_57", Ia = "_projectNavigationItem_1pc1v_61", ja = "_projectNavigationItemDisabled_1pc1v_67", L = {
1093
1093
  badge: Pa,
1094
1094
  tag: Aa,
1095
- withNavLinkStyle: ka,
1096
- disabled: Ia,
1097
- projectNavigationItem: Ra,
1095
+ withNavLinkStyle: Ra,
1096
+ disabled: ka,
1097
+ projectNavigationItem: Ia,
1098
1098
  projectNavigationItemDisabled: ja
1099
- }, St = ({ label: e, badge: t, novel: n }) => /* @__PURE__ */ f("div", { className: "flex gap-1", children: [
1100
- /* @__PURE__ */ f("div", { children: [
1099
+ }, Et = ({ label: e, badge: t, novel: n }) => /* @__PURE__ */ p("div", { className: "flex gap-1", children: [
1100
+ /* @__PURE__ */ p("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
1104
  !!n && /* @__PURE__ */ s(Ne, { 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(B, { tooltip: "You do not have access to this function", show: n, children: /* @__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,
@@ -1117,19 +1117,19 @@ const Ea = "_breadcrumbsItem_1hm6a_1", Ca = "_breadcrumbs_1hm6a_1", yt = {
1117
1117
  }),
1118
1118
  disabled: n,
1119
1119
  onClick: o,
1120
- children: /* @__PURE__ */ s(St, { label: e, badge: a, novel: i })
1120
+ children: /* @__PURE__ */ s(Et, { label: e, badge: a, novel: i })
1121
1121
  }
1122
- ) : /* @__PURE__ */ s("a", { href: t, className: L.withNavLinkStyle, children: /* @__PURE__ */ s(St, { label: e, badge: a, novel: i }) })
1122
+ ) : /* @__PURE__ */ s("a", { href: t, className: L.withNavLinkStyle, children: /* @__PURE__ */ s(Et, { label: e, badge: a, novel: i }) })
1123
1123
  }
1124
1124
  ) })
1125
1125
  );
1126
1126
  Le.displayName = "NavigationTabsItem";
1127
- const Na = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible))) ?? !1, Oa = (e) => e.visible && (!e.dropdown || Na(e.dropdown)), Wo = ({ navigation: e, activeItem: t }) => /* @__PURE__ */ s("nav", { "aria-label": "Project", children: /* @__PURE__ */ s("ul", { className: q.navigationTabList, "aria-orientation": "horizontal", children: e.filter(Oa).map((n) => {
1127
+ const Na = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible))) ?? !1, Oa = (e) => e.visible && (!e.dropdown || Na(e.dropdown)), es = ({ 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: q.navigationTab,
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: q.navigationTab,
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 I {
1166
+ class k {
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 I([() => t]);
1178
+ return new k([() => 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 I([...this.factories, () => ({ [t]: n })]);
1198
+ return new k([...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 I([...this.factories, () => t]);
1222
+ return new k([...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 I([...this.factories, t]);
1243
+ return new k([...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 I([...this.factories, ...t.factories]);
1288
+ return new k([...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(I.create());
1315
+ const n = this.middleware(k.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 Qo(e) {
1355
+ function ts(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 Yo = zt(
1370
+ const ns = 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 Xo() {
1384
+ function rs() {
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
- ]), qa = r.union([
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(qa), Ba = r.object({
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: Ba
1426
+ successResponseBodySchema: qa
1427
1427
  });
1428
- function Vo(e, t, n) {
1428
+ function as(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 I.create().add("x-csrf-token", a).resolve()
1435
+ headers: await k.create().add("x-csrf-token", a).resolve()
1436
1436
  });
1437
1437
  };
1438
1438
  }
1439
- function Zo(e) {
1439
+ function os(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 I.create().add("authorization", `Bearer ${n}`).resolve()
1446
+ headers: await k.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 es(e, t, n) {
1467
+ function ss(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] = R();
1477
+ const [e, t] = I();
1478
1478
  return J(() => {
1479
1479
  const n = (o) => {
1480
1480
  t(o.detail.payload);
@@ -1492,79 +1492,92 @@ 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
- }), Wa = Y({
1500
+ }), Qa = Y({
1498
1501
  description: "Get the details of a team user",
1499
1502
  requestHeaderSchema: Ka,
1500
- requestPathParamsSchema: r.object({ teamId: r.number(), userId: r.number() }),
1503
+ requestPathParamsSchema: Ja,
1501
1504
  pathResolver: ({ teamId: e, userId: t }) => `/teams/${e}/users/${t}`,
1502
- successResponseBodySchema: Ja
1503
- }), Qa = {
1505
+ successResponseBodySchema: Wa
1506
+ }), Ya = {
1504
1507
  teamUserKey: (e, t) => ["GetTeamUsers", e, t]
1505
- }, Ya = (e, t, n) => $({
1508
+ }, Xa = (e, t, n) => $({
1506
1509
  ...n,
1507
- queryFn: async ({ queryKey: [a, o, i] }) => Q(e, Wa, {
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 ts(e, t) {
1515
+ function is(e, t) {
1513
1516
  const n = Yt();
1514
- return Ya(e, t, {
1515
- queryKey: Qa.teamUserKey((n == null ? void 0 : n.teamId) ?? 0, (n == null ? void 0 : n.userId) ?? 0),
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 ns = U, Xa = r.object({
1522
+ const cs = 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
- }), Va = r.object({
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(Xa),
1534
+ languages: r.array(Va),
1532
1535
  is_admin: r.boolean(),
1533
1536
  is_reviewer: r.boolean()
1534
- }), Za = r.object({
1537
+ }), eo = r.union([
1538
+ r.object({ uuid: r.string().uuid() }),
1539
+ r.object({ id: r.string() })
1540
+ ]), to = r.union([
1541
+ r.object({ authenticatedUser: r.literal(!0) }),
1542
+ r.object({ uuid: r.string().uuid() }),
1543
+ r.object({ id: r.number() })
1544
+ ]), no = r.object({
1545
+ project: eo,
1546
+ contributor: to
1547
+ }), ro = r.object({
1535
1548
  project_id: r.string(),
1536
- contributors: r.array(Va)
1537
- }), eo = Y({
1549
+ contributor: Za
1550
+ }), ao = (e) => "authenticatedUser" in e ? "me" : "uuid" in e ? e.uuid : `${e.id}`, oo = (e) => "uuid" in e ? e.uuid : e.id, so = Y({
1538
1551
  description: "Get the details of a project contributor",
1539
1552
  requestHeaderSchema: U,
1540
- requestPathParamsSchema: r.object({ projectId: r.string(), contributorId: r.number() }),
1541
- pathResolver: ({ projectId: e, contributorId: t }) => `/projects/${e}/contributors/${t}`,
1542
- successResponseBodySchema: Za
1543
- }), to = {
1544
- projectUserKey: (e, t) => ["RetrieveContributor", e, t]
1545
- }, no = (e, t, n) => $({
1553
+ requestPathParamsSchema: no,
1554
+ pathResolver: ({ project: e, contributor: t }) => `/projects/${oo(e)}/contributors/${ao(t)}`,
1555
+ successResponseBodySchema: ro
1556
+ }), io = {
1557
+ projectUserKey: (e) => ["RetrieveContributor", e]
1558
+ }, co = (e, t, n) => $({
1546
1559
  ...n,
1547
- queryFn: async ({ queryKey: [a, o, i] }) => Q(e, eo, {
1548
- pathParams: { projectId: o, contributorId: i },
1560
+ queryFn: async ({ queryKey: [a, o] }) => Q(e, so, {
1561
+ pathParams: o,
1549
1562
  headers: await t.resolve()
1550
1563
  })
1551
1564
  });
1552
- function rs(e, t, n) {
1553
- const a = Yt();
1554
- return no(e, t, {
1555
- queryKey: to.projectUserKey(n, (a == null ? void 0 : a.userId) ?? 0),
1565
+ function ls(e, t, n) {
1566
+ const a = Yt(), o = a != null && a.userId ? { id: a.userId } : { authenticatedUser: !0 };
1567
+ return co(e, t, {
1568
+ queryKey: io.projectUserKey({ project: { id: n }, contributor: o }),
1556
1569
  enabled: a !== void 0
1557
1570
  });
1558
1571
  }
1559
- const ro = r.object({
1572
+ const lo = r.object({
1560
1573
  lang_iso: r.string(),
1561
1574
  custom_iso: r.string().optional()
1562
- }), ao = r.object({
1575
+ }), uo = r.object({
1563
1576
  language_id: r.number(),
1564
1577
  language_iso: r.string(),
1565
1578
  progress: r.number(),
1566
1579
  words_to_do: r.number()
1567
- }), oo = r.object({
1580
+ }), mo = r.object({
1568
1581
  projectId: r.string()
1569
1582
  }), Xt = r.object({
1570
1583
  lang_id: r.number(),
@@ -1572,13 +1585,13 @@ const ro = r.object({
1572
1585
  lang_name: r.string(),
1573
1586
  is_rtl: r.boolean(),
1574
1587
  plural_forms: r.array(r.string().optional())
1575
- }), so = r.object({
1588
+ }), _o = r.object({
1576
1589
  project_id: r.string(),
1577
1590
  project_uuid: r.string().uuid(),
1578
1591
  languages: r.array(Xt)
1579
- }), io = r.object({
1592
+ }), go = r.object({
1580
1593
  projectId: r.string()
1581
- }), co = r.object({
1594
+ }), fo = r.object({
1582
1595
  languages: r.array(
1583
1596
  r.object({
1584
1597
  lang_iso: r.string(),
@@ -1587,7 +1600,7 @@ const ro = r.object({
1587
1600
  custom_plural_forms: r.array(r.string()).optional()
1588
1601
  })
1589
1602
  )
1590
- }), lo = r.object({
1603
+ }), po = r.object({
1591
1604
  project_id: r.string(),
1592
1605
  project_uuid: r.string().uuid(),
1593
1606
  languages: r.array(Xt),
@@ -1598,44 +1611,44 @@ const ro = r.object({
1598
1611
  lang_iso: r.string()
1599
1612
  })
1600
1613
  ).optional()
1601
- }), uo = r.object({
1614
+ }), ho = r.object({
1602
1615
  projectId: r.string()
1603
- }), mo = r.object({
1616
+ }), bo = r.object({
1604
1617
  langs: r.array(
1605
1618
  r.object({
1606
1619
  lang_iso: r.string(),
1607
1620
  base_lang: r.boolean()
1608
1621
  })
1609
1622
  )
1610
- }), _o = r.object({
1623
+ }), To = r.object({
1611
1624
  result: r.boolean()
1612
- }), go = Y({
1625
+ }), vo = Y({
1613
1626
  description: "List of project languages",
1614
1627
  requestHeaderSchema: U,
1615
- requestPathParamsSchema: oo,
1628
+ requestPathParamsSchema: mo,
1616
1629
  pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
1617
- successResponseBodySchema: so
1618
- }), as = jt({
1630
+ successResponseBodySchema: _o
1631
+ }), ds = jt({
1619
1632
  description: "Add languages to existing project",
1620
1633
  requestHeaderSchema: U,
1621
1634
  method: "post",
1622
- requestPathParamsSchema: io,
1635
+ requestPathParamsSchema: go,
1623
1636
  pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
1624
- requestBodySchema: co,
1625
- successResponseBodySchema: lo
1626
- }), po = jt({
1637
+ requestBodySchema: fo,
1638
+ successResponseBodySchema: po
1639
+ }), yo = jt({
1627
1640
  description: "Bulk update project languages",
1628
1641
  requestHeaderSchema: U,
1629
1642
  method: "put",
1630
- requestPathParamsSchema: uo,
1643
+ requestPathParamsSchema: ho,
1631
1644
  pathResolver: ({ projectId: e }) => `/projects/${e}/languages/bulk-update`,
1632
- requestBodySchema: mo,
1633
- successResponseBodySchema: _o
1645
+ requestBodySchema: bo,
1646
+ successResponseBodySchema: To
1634
1647
  }), de = U, Fe = r.union([
1635
1648
  r.literal("localization_files"),
1636
1649
  r.literal("paged_documents"),
1637
1650
  r.literal("marketing")
1638
- ]), fo = r.object({
1651
+ ]), Eo = r.object({
1639
1652
  per_platform_key_names: r.boolean(),
1640
1653
  reviewing: r.boolean(),
1641
1654
  auto_toggle_unverified: r.boolean(),
@@ -1646,7 +1659,7 @@ const ro = r.object({
1646
1659
  custom_translation_statuses_allow_multiple: r.boolean(),
1647
1660
  segmentation: r.boolean(),
1648
1661
  contributor_preview_download_enabled: r.boolean()
1649
- }), ho = r.object({
1662
+ }), So = r.object({
1650
1663
  not_reviewed: r.number(),
1651
1664
  unverified: r.number(),
1652
1665
  spelling_grammar: r.number(),
@@ -1663,14 +1676,14 @@ const ro = r.object({
1663
1676
  double_space: r.number(),
1664
1677
  special_placeholder: r.number(),
1665
1678
  unbalanced_brackets: r.number()
1666
- }), bo = r.object({
1679
+ }), Co = r.object({
1667
1680
  progress_total: r.number(),
1668
1681
  keys_total: r.number(),
1669
1682
  team: r.number(),
1670
1683
  base_words: r.number(),
1671
1684
  qa_issues_total: r.number(),
1672
- qa_issues: ho,
1673
- languages: r.array(ao)
1685
+ qa_issues: So,
1686
+ languages: r.array(uo)
1674
1687
  }), ue = r.object({
1675
1688
  project_id: r.string(),
1676
1689
  uuid: r.string().uuid(),
@@ -1684,119 +1697,119 @@ const ro = r.object({
1684
1697
  team_id: r.number(),
1685
1698
  base_language_id: r.number(),
1686
1699
  base_language_iso: r.string(),
1687
- settings: fo.optional(),
1688
- statistics: bo.optional()
1689
- }), vo = r.object({
1700
+ settings: Eo.optional(),
1701
+ statistics: Co.optional()
1702
+ }), wo = r.object({
1690
1703
  name: r.string(),
1691
1704
  team_id: r.string(),
1692
1705
  base_lang_iso: r.string(),
1693
- languages: r.array(ro),
1706
+ languages: r.array(lo),
1694
1707
  project_type: Fe,
1695
1708
  is_segmentation_enabled: r.boolean()
1696
- }), Et = r.union([r.literal(0), r.literal(1)]), To = r.object({
1709
+ }), St = r.union([r.literal(0), r.literal(1)]), Po = r.object({
1697
1710
  filter_type: Fe.optional(),
1698
1711
  filter_team_id: r.number().optional(),
1699
1712
  filter_names: r.string().optional(),
1700
- include_statistics: Et.optional(),
1701
- include_settings: Et.optional(),
1713
+ include_statistics: St.optional(),
1714
+ include_settings: St.optional(),
1702
1715
  limit: r.number().optional(),
1703
1716
  page: r.number().optional()
1704
- }), yo = r.object({
1717
+ }), Ao = r.object({
1705
1718
  projects: r.array(ue)
1706
- }), So = r.object({
1719
+ }), Ro = r.object({
1707
1720
  project_id: r.string()
1708
- }), Eo = r.object({
1721
+ }), ko = r.object({
1709
1722
  project_id: r.string()
1710
- }), Co = r.object({
1723
+ }), Io = r.object({
1711
1724
  name: r.string().min(1),
1712
1725
  description: r.string().optional()
1713
- }), me = () => "/projects", wo = He({
1726
+ }), me = () => "/projects", jo = He({
1714
1727
  description: "Create a new project",
1715
1728
  requestHeaderSchema: de,
1716
1729
  method: "post",
1717
1730
  pathResolver: me,
1718
- requestBodySchema: vo,
1731
+ requestBodySchema: wo,
1719
1732
  successResponseBodySchema: ue
1720
- }), Po = Y({
1733
+ }), No = Y({
1721
1734
  description: "List all projects",
1722
1735
  requestHeaderSchema: de,
1723
1736
  pathResolver: me,
1724
- requestQuerySchema: To,
1725
- successResponseBodySchema: yo
1726
- }), Ao = Y({
1737
+ requestQuerySchema: Po,
1738
+ successResponseBodySchema: Ao
1739
+ }), Oo = Y({
1727
1740
  description: "Retrieve a project",
1728
1741
  requestHeaderSchema: de,
1729
- requestPathParamsSchema: So,
1742
+ requestPathParamsSchema: Ro,
1730
1743
  pathResolver: ({ project_id: e }) => `${me()}/${e}`,
1731
1744
  successResponseBodySchema: ue
1732
- }), ko = He({
1745
+ }), xo = He({
1733
1746
  description: "Update a project",
1734
1747
  requestHeaderSchema: de,
1735
1748
  method: "put",
1736
- requestPathParamsSchema: Eo,
1749
+ requestPathParamsSchema: ko,
1737
1750
  pathResolver: ({ project_id: e }) => `${me()}/${e}`,
1738
- requestBodySchema: Co,
1751
+ requestBodySchema: Io,
1739
1752
  successResponseBodySchema: ue
1740
1753
  });
1741
- function os(e, t, n = {}) {
1742
- return qe({
1754
+ function us(e, t, n = {}) {
1755
+ return Be({
1743
1756
  ...n,
1744
- mutationFn: async (a) => D(e, wo, {
1757
+ mutationFn: async (a) => D(e, jo, {
1745
1758
  headers: await t.resolve(),
1746
1759
  body: a
1747
1760
  })
1748
1761
  });
1749
1762
  }
1750
- const ss = {
1763
+ const ms = {
1751
1764
  projectIdKey: (e) => ["listProjectLanguages", e]
1752
1765
  };
1753
- function is(e, t, n) {
1766
+ function _s(e, t, n) {
1754
1767
  return $({
1755
1768
  ...n,
1756
- queryFn: async ({ queryKey: [a, o] }) => Q(e, go, {
1769
+ queryFn: async ({ queryKey: [a, o] }) => Q(e, vo, {
1757
1770
  headers: await t.resolve(),
1758
1771
  pathParams: { projectId: o }
1759
1772
  })
1760
1773
  });
1761
1774
  }
1762
- const cs = {
1775
+ const gs = {
1763
1776
  paramsKey: (e) => ["listProjects", e]
1764
1777
  };
1765
- function ls(e, t, n) {
1778
+ function fs(e, t, n) {
1766
1779
  return $({
1767
1780
  ...n,
1768
- queryFn: async ({ queryKey: [a, o] }) => Q(e, Po, {
1781
+ queryFn: async ({ queryKey: [a, o] }) => Q(e, No, {
1769
1782
  headers: await t.resolve(),
1770
1783
  queryParams: o
1771
1784
  })
1772
1785
  });
1773
1786
  }
1774
- const ds = {
1787
+ const ps = {
1775
1788
  projectIdKey: (e) => ["retrieveProject", e]
1776
1789
  };
1777
- function us(e, t, n) {
1790
+ function hs(e, t, n) {
1778
1791
  return $({
1779
1792
  ...n,
1780
- queryFn: async ({ queryKey: [a, o] }) => Q(e, Ao, {
1793
+ queryFn: async ({ queryKey: [a, o] }) => Q(e, Oo, {
1781
1794
  headers: await t.resolve(),
1782
1795
  pathParams: { project_id: o }
1783
1796
  })
1784
1797
  });
1785
1798
  }
1786
- function ms(e, t, n, a = {}) {
1787
- return qe({
1799
+ function bs(e, t, n, a = {}) {
1800
+ return Be({
1788
1801
  ...a,
1789
- mutationFn: async (o) => D(e, ko, {
1802
+ mutationFn: async (o) => D(e, xo, {
1790
1803
  headers: await t.resolve(),
1791
1804
  body: o,
1792
1805
  pathParams: n
1793
1806
  })
1794
1807
  });
1795
1808
  }
1796
- function _s(e, t, n, a = {}) {
1797
- return qe({
1809
+ function Ts(e, t, n, a = {}) {
1810
+ return Be({
1798
1811
  ...a,
1799
- mutationFn: async (o) => D(e, po, {
1812
+ mutationFn: async (o) => D(e, yo, {
1800
1813
  pathParams: t,
1801
1814
  headers: await n.resolve(),
1802
1815
  body: o
@@ -1804,104 +1817,106 @@ function _s(e, t, n, a = {}) {
1804
1817
  });
1805
1818
  }
1806
1819
  export {
1807
- io as ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA,
1808
- co as ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
1809
- lo as ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA,
1810
- uo as BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
1811
- mo as BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA,
1812
- _o as BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
1813
- Jo as Breadcrumbs,
1814
- ns as CONTRIBUTOR_API_BASE_HEADER_SCHEMA,
1815
- Xa as CONTRIBUTOR_LANGUAGE_SCHEMA,
1816
- Va as CONTRIBUTOR_SCHEMA,
1817
- vo as CREATE_PROJECT_REQUEST_BODY_SCHEMA,
1818
- Bt as ENTERPRISE_OPENSOURCE_PLAN_ID,
1820
+ go as ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA,
1821
+ fo as ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
1822
+ po as ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA,
1823
+ ho as BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
1824
+ bo as BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA,
1825
+ To as BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
1826
+ Zo as Breadcrumbs,
1827
+ cs as CONTRIBUTOR_API_BASE_HEADER_SCHEMA,
1828
+ Va as CONTRIBUTOR_LANGUAGE_SCHEMA,
1829
+ Za as CONTRIBUTOR_SCHEMA,
1830
+ wo as CREATE_PROJECT_REQUEST_BODY_SCHEMA,
1831
+ qt as ENTERPRISE_OPENSOURCE_PLAN_ID,
1819
1832
  dr as ENTERPRISE_PLAN_IDS,
1820
1833
  cr as ESSENTIAL_PLAN_IDS,
1821
- qt as FREE_PLAN_ID,
1822
- I as HeaderBuilder,
1823
- Ba as JWT_TOKEN_SCHEMA,
1824
- Qo as JwtAuthHeaderBuilderMiddleware,
1825
- ro as LANGUAGE_ISO_SCHEMA,
1834
+ Bt as FREE_PLAN_ID,
1835
+ k as HeaderBuilder,
1836
+ qa as JWT_TOKEN_SCHEMA,
1837
+ ts as JwtAuthHeaderBuilderMiddleware,
1838
+ lo as LANGUAGE_ISO_SCHEMA,
1826
1839
  Xt as LANGUAGE_SCHEMA,
1827
- ao as LANGUAGE_STATISTICS_SCHEMA,
1828
- To as LIST_PROJECTS_REQUEST_QUERY_SCHEMA,
1829
- yo as LIST_PROJECTS_SUCCESS_RESPONSE_BODY,
1830
- oo as LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
1831
- so as LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
1840
+ uo as LANGUAGE_STATISTICS_SCHEMA,
1841
+ Po as LIST_PROJECTS_REQUEST_QUERY_SCHEMA,
1842
+ Ao as LIST_PROJECTS_SUCCESS_RESPONSE_BODY,
1843
+ mo as LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
1844
+ _o as LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
1832
1845
  oe as NavigationPanel,
1833
- Wo as NavigationTabs,
1846
+ es as NavigationTabs,
1834
1847
  de as PROJECT_API_BASE_HEADERS_SCHEMA,
1835
- ho as PROJECT_QA_ISSUES_SCHEMA,
1848
+ So as PROJECT_QA_ISSUES_SCHEMA,
1836
1849
  ue as PROJECT_SCHEMA,
1837
- fo as PROJECT_SETTINGS_SCHEMA,
1838
- bo as PROJECT_STATISTICS_SCHEMA,
1850
+ Eo as PROJECT_SETTINGS_SCHEMA,
1851
+ Co as PROJECT_STATISTICS_SCHEMA,
1839
1852
  Fe as PROJECT_TYPE_SCHEMA,
1840
1853
  lr as PRO_PLAN_IDS,
1841
- Yo as PublicApiHeaderBuilderMiddleware,
1842
- Za as RETRIEVE_CONTRIBUTORS_RESPONSE_SCHEMA,
1843
- So as RETRIEVE_PROJECT_PATH_PARAM_SCHEMA,
1854
+ ns as PublicApiHeaderBuilderMiddleware,
1855
+ no as RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA,
1856
+ ro as RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA,
1857
+ Ro as RETRIEVE_PROJECT_PATH_PARAM_SCHEMA,
1844
1858
  ir as START_PLAN_IDS,
1845
- k as Sidebar,
1859
+ R as Sidebar,
1846
1860
  A as SidebarTaskLanguageStatuses,
1847
1861
  xe as SidebarTaskStatuses,
1848
1862
  re as SidebarTaskTypeOptions,
1849
1863
  Jt as TEAM_ROLE_SCHEMA,
1850
1864
  Ka as TEAM_USER_API_BASE_HEADERS_SCHEMA,
1851
- Ja as TEAM_USER_RESPONSE_SCHEMA,
1865
+ Ja as TEAM_USER_PATH_PARAMS_SCHEMA,
1866
+ Wa as TEAM_USER_RESPONSE_SCHEMA,
1852
1867
  za as TEAM_USER_SCHEMA,
1853
1868
  sr as TRIAL_PLAN_ID,
1854
- Eo as UPDATE_PROJECT_PATH_PARAMS_SCHEMA,
1855
- Co as UPDATE_PROJECT_REQUEST_BODY_SCHEMA,
1869
+ ko as UPDATE_PROJECT_PATH_PARAMS_SCHEMA,
1870
+ Io as UPDATE_PROJECT_REQUEST_BODY_SCHEMA,
1856
1871
  $a as USER_TOKEN_REQUEST_HEADER_SCHEMA,
1857
1872
  se as UnauthorizedError,
1858
- as as addLanguagesToProject,
1859
- po as bulkUpdateProjectLanguages,
1873
+ ds as addLanguagesToProject,
1874
+ yo as bulkUpdateProjectLanguages,
1860
1875
  _r as convertNewLineToBreakTag,
1861
1876
  zt as createHeaderBuilderMiddleware,
1862
- wo as createProject,
1877
+ jo as createProject,
1863
1878
  hr as formatDate,
1864
- zo as formatDateTz,
1865
- Vo as generateTokenFromClassicSession,
1866
- Xo as getAuthenticatedSessionDetailFromRequest,
1879
+ Vo as formatDateTz,
1880
+ as as generateTokenFromClassicSession,
1881
+ rs as getAuthenticatedSessionDetailFromRequest,
1867
1882
  Ma as getCsrfTokenFromCookie,
1868
1883
  Wt as getJwtTokenFromCookie,
1869
- Wa as getTeamUser,
1870
- Qa as getTeamUsersQueryKey,
1884
+ Qa as getTeamUser,
1885
+ Ya as getTeamUsersQueryKey,
1871
1886
  Ge as getUserToken,
1872
1887
  Ga as getUserTokenKey,
1873
- Ko as isEnterpriseOpenSourcePlan,
1874
- Go as isEnterprisePlan,
1875
- Do as isEssentialPlan,
1888
+ Xo as isEnterpriseOpenSourcePlan,
1889
+ Qo as isEnterprisePlan,
1890
+ Jo as isEssentialPlan,
1876
1891
  De as isFreePlan,
1877
- Fo as isPaidPlan,
1878
- $o as isProPlan,
1879
- Bo as isStartPlan,
1892
+ Yo as isPaidPlan,
1893
+ Wo as isProPlan,
1894
+ zo as isStartPlan,
1880
1895
  Dt as isTrialPlan,
1881
- go as listProjectLanguages,
1882
- ss as listProjectLanguagesKey,
1883
- Po as listProjects,
1884
- cs as listProjectsKey,
1885
- fr as makeUrlClickable,
1896
+ vo as listProjectLanguages,
1897
+ ms as listProjectLanguagesKey,
1898
+ No as listProjects,
1899
+ gs as listProjectsKey,
1900
+ pr as makeUrlClickable,
1886
1901
  Z as parseJwtTokenPayload,
1887
- Zo as refreshExpiredToken,
1888
- eo as retrieveContributor,
1889
- to as retrieveContributorKeys,
1890
- Ao as retrieveProject,
1891
- ds as retrieveProjectQueryKey,
1892
- ko as updateProject,
1893
- rs as useAuthenticatedProjectContributor,
1902
+ os as refreshExpiredToken,
1903
+ so as retrieveContributor,
1904
+ io as retrieveContributorKeys,
1905
+ Oo as retrieveProject,
1906
+ ps as retrieveProjectQueryKey,
1907
+ xo as updateProject,
1908
+ ls as useAuthenticatedProjectContributor,
1894
1909
  Yt as useAuthenticatedSessionPayload,
1895
- ts as useAuthenticatedUser,
1896
- _s as useBulkUpdateProjectLanguagesMutation,
1897
- os as useCreateProjectMutation,
1910
+ is as useAuthenticatedUser,
1911
+ Ts as useBulkUpdateProjectLanguagesMutation,
1912
+ us as useCreateProjectMutation,
1898
1913
  $e as useEffectOnce,
1899
- es as useGetPromotedClassicSessionJwtQuery,
1900
- Ya as useGetTeamUsersQuery,
1914
+ ss as useGetPromotedClassicSessionJwtQuery,
1915
+ Xa as useGetTeamUsersQuery,
1901
1916
  Fa as useGetUserTokenQuery,
1902
- is as useListProjectLanguagesQuery,
1903
- ls as useListProjectsQuery,
1904
- no as useRetrieveContributorQuery,
1905
- us as useRetrieveProjectQuery,
1906
- ms as useUpdateProjectMutation
1917
+ _s as useListProjectLanguagesQuery,
1918
+ fs as useListProjectsQuery,
1919
+ co as useRetrieveContributorQuery,
1920
+ hs as useRetrieveProjectQuery,
1921
+ bs as useUpdateProjectMutation
1907
1922
  };