@lokalise/harmony 1.5.6 → 1.6.0-exp-jwtutils.2

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.
Files changed (30) hide show
  1. package/dist/harmony.cjs +1 -1
  2. package/dist/harmony.mjs +685 -452
  3. package/dist/types/src/features/auth/core/jwtAuthAddon.d.ts +6 -0
  4. package/dist/types/src/features/auth/core/jwtTokenPayload.d.ts +48 -0
  5. package/dist/types/src/features/auth/core/jwtTokenPayload.test.d.ts +1 -0
  6. package/dist/types/src/features/auth/core/middleware/jwtAuthMiddleware.d.ts +7 -0
  7. package/dist/types/src/features/auth/core/middleware/jwtAuthMiddleware.test.d.ts +1 -0
  8. package/dist/types/src/features/auth/core/service/authService.d.ts +40 -0
  9. package/dist/types/src/features/auth/core/service/contributors.d.ts +205 -0
  10. package/dist/types/src/features/auth/core/service/teamUsersService.d.ts +128 -0
  11. package/dist/types/src/features/auth/core/types/teamRole.d.ts +3 -0
  12. package/dist/types/src/features/auth/core/utils/makeAuthHeader.d.ts +3 -0
  13. package/dist/types/src/features/auth/core/utils/makeAuthHeader.test.d.ts +1 -0
  14. package/dist/types/src/features/auth/frontend/addon/browserJwtAuthAddon.d.ts +15 -0
  15. package/dist/types/src/features/auth/frontend/events/NewJwtIssuedEvent.d.ts +17 -0
  16. package/dist/types/src/features/auth/frontend/hooks/services/useGetUserTokenQuery.d.ts +10 -0
  17. package/dist/types/src/features/auth/frontend/hooks/services/useRetrieveContributorQuery.d.ts +25 -0
  18. package/dist/types/src/features/auth/frontend/hooks/services/userGetTeamUsersQuery.d.ts +17 -0
  19. package/dist/types/src/features/auth/frontend/hooks/utility/useAuthenticatedProjectContributor.d.ts +23 -0
  20. package/dist/types/src/features/auth/frontend/hooks/utility/useAuthenticatedUser.d.ts +15 -0
  21. package/dist/types/src/features/auth/frontend/hooks/utility/useGetPromotedClassicSessionJwtQuery.d.ts +8 -0
  22. package/dist/types/src/features/auth/frontend/hooks/utility/useJwtTokenPayload.d.ts +16 -0
  23. package/dist/types/src/features/auth/frontend/middleware/promoteClassicSessionToJwtMiddleware.d.ts +6 -0
  24. package/dist/types/src/features/auth/frontend/middleware/promoteClassicSessionToJwtMiddleware.test.d.ts +1 -0
  25. package/dist/types/src/features/auth/frontend/utils/cookieToken.d.ts +2 -0
  26. package/dist/types/src/features/auth/frontend/utils/tokenStorage.d.ts +7 -0
  27. package/dist/types/src/node.d.ts +15 -0
  28. package/dist/types/src/utils/types/apiQueryOverrides.d.ts +2 -0
  29. package/dist/types/tests/utils.d.ts +6 -1
  30. package/package.json +14 -3
package/dist/harmony.mjs CHANGED
@@ -1,691 +1,924 @@
1
- import { jsx as i, jsxs as b, Fragment as Be } from "react/jsx-runtime";
2
- import * as k from "react";
3
- import { useRef as rn, useState as Me, useCallback as me, useEffect as ie, useContext as an, createContext as on, cloneElement as sn, Fragment as $e, forwardRef as cn } from "react";
4
- import { Tooltip as ae, Link as Ue, Menu as oe, MenuList as se, CaretUpIcon as ln, UserIcon as De, MenuItem as $, MenuDivider as ze, Tag as un } from "@lokalise/louis";
5
- import { format as We } from "date-fns";
6
- import { toZonedTime as dn } from "date-fns-tz";
7
- var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
- function Fe(e) {
1
+ var yt = Object.defineProperty;
2
+ var It = (e, t, n) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var we = (e, t, n) => It(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { jsx as i, jsxs as _, Fragment as Je } from "react/jsx-runtime";
5
+ import * as x from "react";
6
+ import { useRef as Qe, useState as le, useCallback as ye, useEffect as q, useContext as Nt, createContext as St, cloneElement as Et, Fragment as Ve, forwardRef as Pt } from "react";
7
+ import { Tooltip as ue, Link as Ye, Menu as de, MenuList as me, CaretUpIcon as jt, UserIcon as Ze, MenuItem as F, MenuDivider as Xe, Tag as kt } from "@lokalise/louis";
8
+ import { z as s } from "zod";
9
+ import { sendByPayloadRoute as fe, sendByGetRoute as et } from "@lokalise/frontend-http-client";
10
+ import { useQuery as he } from "@tanstack/react-query";
11
+ import { buildPayloadRoute as Ct } from "@lokalise/universal-ts-utils/api-contracts/apiContracts";
12
+ import { buildGetRoute as tt } from "@lokalise/universal-ts-utils/node";
13
+ import { format as nt } from "date-fns";
14
+ import { toZonedTime as Rt } from "date-fns-tz";
15
+ var $ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
16
+ function rt(e) {
9
17
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
18
  }
11
- var D, ge;
12
- function ce() {
13
- if (ge) return D;
14
- ge = 1;
15
- function e(n) {
16
- var t = typeof n;
17
- return n != null && (t == "object" || t == "function");
19
+ var W, Ie;
20
+ function be() {
21
+ if (Ie) return W;
22
+ Ie = 1;
23
+ function e(t) {
24
+ var n = typeof t;
25
+ return t != null && (n == "object" || n == "function");
18
26
  }
19
- return D = e, D;
27
+ return W = e, W;
20
28
  }
21
- var z, he;
22
- function fn() {
23
- if (he) return z;
24
- he = 1;
25
- var e = typeof B == "object" && B && B.Object === Object && B;
26
- return z = e, z;
29
+ var K, Ne;
30
+ function At() {
31
+ if (Ne) return K;
32
+ Ne = 1;
33
+ var e = typeof $ == "object" && $ && $.Object === Object && $;
34
+ return K = e, K;
27
35
  }
28
- var W, pe;
29
- function He() {
30
- if (pe) return W;
31
- pe = 1;
32
- var e = fn(), n = typeof self == "object" && self && self.Object === Object && self, t = e || n || Function("return this")();
33
- return W = t, W;
36
+ var J, Se;
37
+ function at() {
38
+ if (Se) return J;
39
+ Se = 1;
40
+ var e = At(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
41
+ return J = n, J;
34
42
  }
35
- var F, be;
36
- function mn() {
37
- if (be) return F;
38
- be = 1;
39
- var e = He(), n = function() {
43
+ var Q, Ee;
44
+ function Lt() {
45
+ if (Ee) return Q;
46
+ Ee = 1;
47
+ var e = at(), t = function() {
40
48
  return e.Date.now();
41
49
  };
42
- return F = n, F;
50
+ return Q = t, Q;
43
51
  }
44
- var H, _e;
45
- function gn() {
46
- if (_e) return H;
47
- _e = 1;
52
+ var V, Pe;
53
+ function Ot() {
54
+ if (Pe) return V;
55
+ Pe = 1;
48
56
  var e = /\s/;
49
- function n(t) {
50
- for (var r = t.length; r-- && e.test(t.charAt(r)); )
57
+ function t(n) {
58
+ for (var r = n.length; r-- && e.test(n.charAt(r)); )
51
59
  ;
52
60
  return r;
53
61
  }
54
- return H = n, H;
62
+ return V = t, V;
55
63
  }
56
- var G, ve;
57
- function hn() {
58
- if (ve) return G;
59
- ve = 1;
60
- var e = gn(), n = /^\s+/;
61
- function t(r) {
62
- return r && r.slice(0, e(r) + 1).replace(n, "");
64
+ var Y, je;
65
+ function xt() {
66
+ if (je) return Y;
67
+ je = 1;
68
+ var e = Ot(), t = /^\s+/;
69
+ function n(r) {
70
+ return r && r.slice(0, e(r) + 1).replace(t, "");
63
71
  }
64
- return G = t, G;
72
+ return Y = n, Y;
65
73
  }
66
- var V, Te;
67
- function Ge() {
68
- if (Te) return V;
69
- Te = 1;
70
- var e = He(), n = e.Symbol;
71
- return V = n, V;
74
+ var Z, ke;
75
+ function it() {
76
+ if (ke) return Z;
77
+ ke = 1;
78
+ var e = at(), t = e.Symbol;
79
+ return Z = t, Z;
72
80
  }
73
- var Y, we;
74
- function pn() {
75
- if (we) return Y;
76
- we = 1;
77
- var e = Ge(), n = Object.prototype, t = n.hasOwnProperty, r = n.toString, a = e ? e.toStringTag : void 0;
81
+ var X, Ce;
82
+ function qt() {
83
+ if (Ce) return X;
84
+ Ce = 1;
85
+ var e = it(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, a = e ? e.toStringTag : void 0;
78
86
  function o(c) {
79
- var l = t.call(c, a), u = c[a];
87
+ var u = n.call(c, a), d = c[a];
80
88
  try {
81
89
  c[a] = void 0;
82
- var s = !0;
90
+ var l = !0;
83
91
  } catch {
84
92
  }
85
- var d = r.call(c);
86
- return s && (l ? c[a] = u : delete c[a]), d;
93
+ var m = r.call(c);
94
+ return l && (u ? c[a] = d : delete c[a]), m;
87
95
  }
88
- return Y = o, Y;
96
+ return X = o, X;
89
97
  }
90
- var Z, Ie;
91
- function bn() {
92
- if (Ie) return Z;
93
- Ie = 1;
94
- var e = Object.prototype, n = e.toString;
95
- function t(r) {
96
- return n.call(r);
98
+ var ee, Re;
99
+ function Ut() {
100
+ if (Re) return ee;
101
+ Re = 1;
102
+ var e = Object.prototype, t = e.toString;
103
+ function n(r) {
104
+ return t.call(r);
97
105
  }
98
- return Z = t, Z;
106
+ return ee = n, ee;
99
107
  }
100
- var X, ye;
101
- function _n() {
102
- if (ye) return X;
103
- ye = 1;
104
- var e = Ge(), n = pn(), t = bn(), r = "[object Null]", a = "[object Undefined]", o = e ? e.toStringTag : void 0;
105
- function c(l) {
106
- return l == null ? l === void 0 ? a : r : o && o in Object(l) ? n(l) : t(l);
108
+ var te, Ae;
109
+ function Mt() {
110
+ if (Ae) return te;
111
+ Ae = 1;
112
+ var e = it(), t = qt(), n = Ut(), r = "[object Null]", a = "[object Undefined]", o = e ? e.toStringTag : void 0;
113
+ function c(u) {
114
+ return u == null ? u === void 0 ? a : r : o && o in Object(u) ? t(u) : n(u);
107
115
  }
108
- return X = c, X;
116
+ return te = c, te;
109
117
  }
110
- var J, Ne;
111
- function vn() {
112
- if (Ne) return J;
113
- Ne = 1;
114
- function e(n) {
115
- return n != null && typeof n == "object";
118
+ var ne, Le;
119
+ function Bt() {
120
+ if (Le) return ne;
121
+ Le = 1;
122
+ function e(t) {
123
+ return t != null && typeof t == "object";
116
124
  }
117
- return J = e, J;
125
+ return ne = e, ne;
118
126
  }
119
- var K, Se;
120
- function Tn() {
121
- if (Se) return K;
122
- Se = 1;
123
- var e = _n(), n = vn(), t = "[object Symbol]";
127
+ var re, Oe;
128
+ function $t() {
129
+ if (Oe) return re;
130
+ Oe = 1;
131
+ var e = Mt(), t = Bt(), n = "[object Symbol]";
124
132
  function r(a) {
125
- return typeof a == "symbol" || n(a) && e(a) == t;
133
+ return typeof a == "symbol" || t(a) && e(a) == n;
126
134
  }
127
- return K = r, K;
135
+ return re = r, re;
128
136
  }
129
- var Q, Ee;
130
- function wn() {
131
- if (Ee) return Q;
132
- Ee = 1;
133
- var e = hn(), n = ce(), t = Tn(), r = NaN, a = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, l = parseInt;
134
- function u(s) {
135
- if (typeof s == "number")
136
- return s;
137
- if (t(s))
137
+ var ae, xe;
138
+ function zt() {
139
+ if (xe) return ae;
140
+ xe = 1;
141
+ var e = xt(), t = be(), n = $t(), r = NaN, a = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, u = parseInt;
142
+ function d(l) {
143
+ if (typeof l == "number")
144
+ return l;
145
+ if (n(l))
138
146
  return r;
139
- if (n(s)) {
140
- var d = typeof s.valueOf == "function" ? s.valueOf() : s;
141
- s = n(d) ? d + "" : d;
147
+ if (t(l)) {
148
+ var m = typeof l.valueOf == "function" ? l.valueOf() : l;
149
+ l = t(m) ? m + "" : m;
142
150
  }
143
- if (typeof s != "string")
144
- return s === 0 ? s : +s;
145
- s = e(s);
146
- var h = o.test(s);
147
- return h || c.test(s) ? l(s.slice(2), h ? 2 : 8) : a.test(s) ? r : +s;
151
+ if (typeof l != "string")
152
+ return l === 0 ? l : +l;
153
+ l = e(l);
154
+ var g = o.test(l);
155
+ return g || c.test(l) ? u(l.slice(2), g ? 2 : 8) : a.test(l) ? r : +l;
148
156
  }
149
- return Q = u, Q;
157
+ return ae = d, ae;
150
158
  }
151
- var ee, Pe;
152
- function Ve() {
153
- if (Pe) return ee;
154
- Pe = 1;
155
- var e = ce(), n = mn(), t = wn(), r = "Expected a function", a = Math.max, o = Math.min;
156
- function c(l, u, s) {
157
- var d, h, v, T, g, w, y = 0, S = !1, m = !1, N = !0;
158
- if (typeof l != "function")
159
+ var ie, qe;
160
+ function ot() {
161
+ if (qe) return ie;
162
+ qe = 1;
163
+ var e = be(), t = Lt(), n = zt(), r = "Expected a function", a = Math.max, o = Math.min;
164
+ function c(u, d, l) {
165
+ var m, g, T, w, b, y, N = 0, E = !1, h = !1, S = !0;
166
+ if (typeof u != "function")
159
167
  throw new TypeError(r);
160
- u = t(u) || 0, e(s) && (S = !!s.leading, m = "maxWait" in s, v = m ? a(t(s.maxWait) || 0, u) : v, N = "trailing" in s ? !!s.trailing : N);
161
- function _(f) {
162
- var E = d, R = h;
163
- return d = h = void 0, y = f, T = l.apply(R, E), T;
168
+ d = n(d) || 0, e(l) && (E = !!l.leading, h = "maxWait" in l, T = h ? a(n(l.maxWait) || 0, d) : T, S = "trailing" in l ? !!l.trailing : S);
169
+ function v(f) {
170
+ var P = m, O = g;
171
+ return m = g = void 0, N = f, w = u.apply(O, P), w;
164
172
  }
165
173
  function p(f) {
166
- return y = f, g = setTimeout(q, u), S ? _(f) : T;
174
+ return N = f, b = setTimeout(B, d), E ? v(f) : w;
167
175
  }
168
- function A(f) {
169
- var E = f - w, R = f - y, fe = u - E;
170
- return m ? o(fe, v - R) : fe;
176
+ function M(f) {
177
+ var P = f - y, O = f - N, Te = d - P;
178
+ return h ? o(Te, T - O) : Te;
171
179
  }
172
- function ue(f) {
173
- var E = f - w, R = f - y;
174
- return w === void 0 || E >= u || E < 0 || m && R >= v;
180
+ function _e(f) {
181
+ var P = f - y, O = f - N;
182
+ return y === void 0 || P >= d || P < 0 || h && O >= T;
175
183
  }
176
- function q() {
177
- var f = n();
178
- if (ue(f))
179
- return de(f);
180
- g = setTimeout(q, A(f));
184
+ function B() {
185
+ var f = t();
186
+ if (_e(f))
187
+ return ve(f);
188
+ b = setTimeout(B, M(f));
181
189
  }
182
- function de(f) {
183
- return g = void 0, N && d ? _(f) : (d = h = void 0, T);
190
+ function ve(f) {
191
+ return b = void 0, S && m ? v(f) : (m = g = void 0, w);
184
192
  }
185
- function nn() {
186
- g !== void 0 && clearTimeout(g), y = 0, d = w = h = g = void 0;
193
+ function Tt() {
194
+ b !== void 0 && clearTimeout(b), N = 0, m = y = g = b = void 0;
187
195
  }
188
- function tn() {
189
- return g === void 0 ? T : de(n());
196
+ function wt() {
197
+ return b === void 0 ? w : ve(t());
190
198
  }
191
- function U() {
192
- var f = n(), E = ue(f);
193
- if (d = arguments, h = this, w = f, E) {
194
- if (g === void 0)
195
- return p(w);
196
- if (m)
197
- return clearTimeout(g), g = setTimeout(q, u), _(w);
199
+ function G() {
200
+ var f = t(), P = _e(f);
201
+ if (m = arguments, g = this, y = f, P) {
202
+ if (b === void 0)
203
+ return p(y);
204
+ if (h)
205
+ return clearTimeout(b), b = setTimeout(B, d), v(y);
198
206
  }
199
- return g === void 0 && (g = setTimeout(q, u)), T;
207
+ return b === void 0 && (b = setTimeout(B, d)), w;
200
208
  }
201
- return U.cancel = nn, U.flush = tn, U;
209
+ return G.cancel = Tt, G.flush = wt, G;
202
210
  }
203
- return ee = c, ee;
211
+ return ie = c, ie;
204
212
  }
205
- var In = Ve();
206
- const yn = /* @__PURE__ */ Fe(In);
207
- var ne, je;
208
- function Nn() {
209
- if (je) return ne;
210
- je = 1;
211
- var e = Ve(), n = ce(), t = "Expected a function";
213
+ var Dt = ot();
214
+ const Ht = /* @__PURE__ */ rt(Dt);
215
+ var oe, Ue;
216
+ function Ft() {
217
+ if (Ue) return oe;
218
+ Ue = 1;
219
+ var e = ot(), t = be(), n = "Expected a function";
212
220
  function r(a, o, c) {
213
- var l = !0, u = !0;
221
+ var u = !0, d = !0;
214
222
  if (typeof a != "function")
215
- throw new TypeError(t);
216
- return n(c) && (l = "leading" in c ? !!c.leading : l, u = "trailing" in c ? !!c.trailing : u), e(a, o, {
217
- leading: l,
223
+ throw new TypeError(n);
224
+ return t(c) && (u = "leading" in c ? !!c.leading : u, d = "trailing" in c ? !!c.trailing : d), e(a, o, {
225
+ leading: u,
218
226
  maxWait: o,
219
- trailing: u
227
+ trailing: d
220
228
  });
221
229
  }
222
- return ne = r, ne;
230
+ return oe = r, oe;
223
231
  }
224
- var Sn = Nn();
225
- const En = /* @__PURE__ */ Fe(Sn), Pn = (e, n, t, r) => {
226
- switch (n) {
232
+ var Gt = Ft();
233
+ const Wt = /* @__PURE__ */ rt(Gt), Kt = (e, t, n, r) => {
234
+ switch (t) {
227
235
  case "debounce":
228
- return yn(e, t, r);
236
+ return Ht(e, n, r);
229
237
  case "throttle":
230
- return En(e, t, r);
238
+ return Wt(e, n, r);
231
239
  default:
232
240
  return e;
233
241
  }
234
- }, jn = (
242
+ }, Jt = (
235
243
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
244
  (e) => {
237
- const n = k.useRef(e);
238
- return k.useEffect(() => {
239
- n.current = e;
240
- }), k.useMemo(() => (...t) => {
245
+ const t = x.useRef(e);
246
+ return x.useEffect(() => {
247
+ t.current = e;
248
+ }), x.useMemo(() => (...n) => {
241
249
  var r;
242
- return (r = n.current) === null || r === void 0 ? void 0 : r.call(n, ...t);
250
+ return (r = t.current) === null || r === void 0 ? void 0 : r.call(t, ...n);
243
251
  }, []);
244
252
  }
245
- ), Ln = (
253
+ ), Qt = (
246
254
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
247
255
  (e) => {
248
- const [n, t] = k.useState((e == null ? void 0 : e.current) || null);
256
+ const [t, n] = x.useState((e == null ? void 0 : e.current) || null);
249
257
  return e && setTimeout(() => {
250
- e.current !== n && t(e.current);
251
- }, 0), { refProxy: k.useMemo(() => new Proxy((a) => {
252
- a !== n && t(a);
258
+ e.current !== t && n(e.current);
259
+ }, 0), { refProxy: x.useMemo(() => new Proxy((a) => {
260
+ a !== t && n(a);
253
261
  }, {
254
262
  get(a, o) {
255
- return o === "current" ? n : a[o];
263
+ return o === "current" ? t : a[o];
256
264
  },
257
265
  set(a, o, c) {
258
- return o === "current" ? t(c) : a[o] = c, !0;
266
+ return o === "current" ? n(c) : a[o] = c, !0;
259
267
  }
260
- }), [n]), refElement: n, setRefElement: t };
268
+ }), [t]), refElement: t, setRefElement: n };
261
269
  }
262
- ), xn = (e, n) => n === "border-box" ? {
270
+ ), Vt = (e, t) => t === "border-box" ? {
263
271
  width: e.borderBoxSize[0].inlineSize,
264
272
  height: e.borderBoxSize[0].blockSize
265
- } : n === "content-box" ? {
273
+ } : t === "content-box" ? {
266
274
  width: e.contentBoxSize[0].inlineSize,
267
275
  height: e.contentBoxSize[0].blockSize
268
276
  } : {
269
277
  width: e.contentRect.width,
270
278
  height: e.contentRect.height
271
279
  };
272
- function Cn({ skipOnMount: e = !1, refreshMode: n, refreshRate: t = 1e3, refreshOptions: r, handleWidth: a = !0, handleHeight: o = !0, targetRef: c, observerOptions: l, onResize: u } = {}) {
273
- const s = rn(e), d = jn(u), [h, v] = Me({
280
+ function Yt({ skipOnMount: e = !1, refreshMode: t, refreshRate: n = 1e3, refreshOptions: r, handleWidth: a = !0, handleHeight: o = !0, targetRef: c, observerOptions: u, onResize: d } = {}) {
281
+ const l = Qe(e), m = Jt(d), [g, T] = le({
274
282
  width: void 0,
275
283
  height: void 0
276
- }), { refProxy: T, refElement: g } = Ln(c), { box: w } = l || {}, y = me((m) => {
284
+ }), { refProxy: w, refElement: b } = Qt(c), { box: y } = u || {}, N = ye((h) => {
277
285
  if (!a && !o)
278
286
  return;
279
- if (s.current) {
280
- s.current = !1;
287
+ if (l.current) {
288
+ l.current = !1;
281
289
  return;
282
290
  }
283
- const N = (_, p) => a && _.width !== p.width || o && _.height !== p.height;
284
- m.forEach((_) => {
285
- const p = xn(_, w);
286
- v((A) => N(A, p) ? (d == null || d({
291
+ const S = (v, p) => a && v.width !== p.width || o && v.height !== p.height;
292
+ h.forEach((v) => {
293
+ const p = Vt(v, y);
294
+ T((M) => S(M, p) ? (m == null || m({
287
295
  width: p.width,
288
296
  height: p.height,
289
- entry: _
290
- }), p) : A);
297
+ entry: v
298
+ }), p) : M);
291
299
  });
292
- }, [a, o, s, w]), S = me(Pn(y, n, t, r), [
293
- y,
294
- n,
300
+ }, [a, o, l, y]), E = ye(Kt(N, t, n, r), [
301
+ N,
295
302
  t,
303
+ n,
296
304
  r
297
305
  ]);
298
- return ie(() => {
299
- let m;
300
- return g ? (m = new window.ResizeObserver(S), m.observe(g, l)) : (h.width || h.height) && (d == null || d({
306
+ return q(() => {
307
+ let h;
308
+ return b ? (h = new window.ResizeObserver(E), h.observe(b, u)) : (g.width || g.height) && (m == null || m({
301
309
  width: null,
302
310
  height: null,
303
311
  entry: null
304
- }), v({ width: void 0, height: void 0 })), () => {
305
- var N, _, p;
306
- (N = m == null ? void 0 : m.disconnect) === null || N === void 0 || N.call(m), (p = (_ = S).cancel) === null || p === void 0 || p.call(_);
312
+ }), T({ width: void 0, height: void 0 })), () => {
313
+ var S, v, p;
314
+ (S = h == null ? void 0 : h.disconnect) === null || S === void 0 || S.call(h), (p = (v = E).cancel) === null || p === void 0 || p.call(v);
307
315
  };
308
- }, [S, g]), Object.assign({ ref: T }, h);
316
+ }, [E, b]), Object.assign({ ref: w }, g);
309
317
  }
310
- function Ye(e) {
311
- var n, t, r = "";
318
+ function st(e) {
319
+ var t, n, r = "";
312
320
  if (typeof e == "string" || typeof e == "number") r += e;
313
321
  else if (typeof e == "object") if (Array.isArray(e)) {
314
322
  var a = e.length;
315
- for (n = 0; n < a; n++) e[n] && (t = Ye(e[n])) && (r && (r += " "), r += t);
316
- } else for (t in e) e[t] && (r && (r += " "), r += t);
323
+ for (t = 0; t < a; t++) e[t] && (n = st(e[t])) && (r && (r += " "), r += n);
324
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
317
325
  return r;
318
326
  }
319
- function L() {
320
- for (var e, n, t = 0, r = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (n = Ye(e)) && (r && (r += " "), r += n);
327
+ function C() {
328
+ for (var e, t, n = 0, r = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = st(e)) && (r && (r += " "), r += t);
321
329
  return r;
322
330
  }
323
- const Rn = "_headerContainer_1cubo_1", kn = "_navigationTabList_1cubo_8", On = "_navigationTab_1cubo_8", An = "_headerContent_1cubo_34", qn = "_staticEnabled_1cubo_50", C = {
324
- headerContainer: Rn,
325
- navigationTabList: kn,
326
- navigationTab: On,
327
- headerContent: An,
328
- staticEnabled: qn
329
- }, Bn = 77, M = ({ sticky: e, children: n }) => {
330
- const { ref: t, height: r } = Cn({
331
+ const Zt = "_headerContainer_1cubo_1", Xt = "_navigationTabList_1cubo_8", en = "_navigationTab_1cubo_8", tn = "_headerContent_1cubo_34", nn = "_staticEnabled_1cubo_50", A = {
332
+ headerContainer: Zt,
333
+ navigationTabList: Xt,
334
+ navigationTab: en,
335
+ headerContent: tn,
336
+ staticEnabled: nn
337
+ }, rn = 77, D = ({ sticky: e, children: t }) => {
338
+ const { ref: n, height: r } = Yt({
331
339
  refreshMode: "debounce",
332
340
  refreshRate: 0
333
- }), [a, o] = Me(!1), c = () => a ? !e : !0;
334
- ie(() => {
335
- const u = () => {
341
+ }), [a, o] = le(!1), c = () => a ? !e : !0;
342
+ q(() => {
343
+ const d = () => {
336
344
  o(window.scrollY > 0);
337
345
  };
338
- return window.addEventListener("scroll", u), () => window.removeEventListener("scroll", u);
346
+ return window.addEventListener("scroll", d), () => window.removeEventListener("scroll", d);
339
347
  }, []);
340
- const l = `${r || Bn}px`;
341
- return /* @__PURE__ */ i("div", { style: { minHeight: l }, children: /* @__PURE__ */ i("div", { children: /* @__PURE__ */ b(
348
+ const u = `${r || rn}px`;
349
+ return /* @__PURE__ */ i("div", { style: { minHeight: u }, children: /* @__PURE__ */ i("div", { children: /* @__PURE__ */ _(
342
350
  "div",
343
351
  {
344
- ref: t,
345
- className: L(C.headerContent, {
346
- [C.staticEnabled]: c()
352
+ ref: n,
353
+ className: C(A.headerContent, {
354
+ [A.staticEnabled]: c()
347
355
  }),
348
356
  children: [
349
- /* @__PURE__ */ i(M.Header, {}),
350
- /* @__PURE__ */ i(M.Tabs, {}),
351
- n
357
+ /* @__PURE__ */ i(D.Header, {}),
358
+ /* @__PURE__ */ i(D.Tabs, {}),
359
+ t
352
360
  ]
353
361
  }
354
362
  ) }) });
355
363
  };
356
- M.Header = ({ children: e }) => /* @__PURE__ */ i("div", { className: C.headerContainer, children: e });
357
- M.Tabs = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex justify-between gap-2 nowrap", children: e });
358
- const Mn = "_sidebarContainer_bmdti_1", $n = {
359
- sidebarContainer: Mn
360
- }, Un = "_logoLink_1baxb_1", Dn = {
361
- logoLink: Un
362
- }, zn = ({ src: e, href: n = "/", ariaLabel: t = "Home", alt: r = "Lokalise" }) => /* @__PURE__ */ i("a", { className: Dn.logoLink, href: n, "aria-label": t, children: /* @__PURE__ */ i("img", { src: e, alt: r }) }), Wn = "_link_1weq1_1", Fn = "_active_1weq1_18", Le = {
363
- link: Wn,
364
- active: Fn
365
- }, Hn = ({ label: e, to: n, icon: t }) => /* @__PURE__ */ i(ae, { placement: "right", tooltip: e, children: /* @__PURE__ */ i(
366
- Ue,
364
+ D.Header = ({ children: e }) => /* @__PURE__ */ i("div", { className: A.headerContainer, children: e });
365
+ D.Tabs = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex justify-between gap-2 nowrap", children: e });
366
+ const an = "_sidebarContainer_bmdti_1", on = {
367
+ sidebarContainer: an
368
+ }, sn = "_logoLink_1baxb_1", cn = {
369
+ logoLink: sn
370
+ }, ln = ({ src: e, href: t = "/", ariaLabel: n = "Home", alt: r = "Lokalise" }) => /* @__PURE__ */ i("a", { className: cn.logoLink, href: t, "aria-label": n, children: /* @__PURE__ */ i("img", { src: e, alt: r }) }), un = "_link_1weq1_1", dn = "_active_1weq1_18", Me = {
371
+ link: un,
372
+ active: dn
373
+ }, mn = ({ label: e, to: t, icon: n }) => /* @__PURE__ */ i(ue, { placement: "right", tooltip: e, children: /* @__PURE__ */ i(
374
+ Ye,
367
375
  {
368
- className: L(Le.link, {
369
- [Le.active]: window.location.pathname.startsWith(n)
376
+ className: C(Me.link, {
377
+ [Me.active]: window.location.pathname.startsWith(t)
370
378
  }),
371
- href: n,
372
- children: /* @__PURE__ */ i(t, { size: "25px" })
379
+ href: t,
380
+ children: /* @__PURE__ */ i(n, { size: "25px" })
373
381
  }
374
- ) }), Gn = "_dropdownButton_hwh0c_1", Vn = "_dropdownButtonActive_hwh0c_18", xe = {
375
- dropdownButton: Gn,
376
- dropdownButtonActive: Vn
377
- }, Yn = ({ children: e, icon: n }) => /* @__PURE__ */ i(
378
- oe,
382
+ ) }), fn = "_dropdownButton_hwh0c_1", hn = "_dropdownButtonActive_hwh0c_18", Be = {
383
+ dropdownButton: fn,
384
+ dropdownButtonActive: hn
385
+ }, bn = ({ children: e, icon: t }) => /* @__PURE__ */ i(
386
+ de,
379
387
  {
380
- menuButton: ({ opened: t }) => /* @__PURE__ */ i(ae, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ i(
388
+ menuButton: ({ opened: n }) => /* @__PURE__ */ i(ue, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ i(
381
389
  "button",
382
390
  {
383
391
  type: "button",
384
- className: L(xe.dropdownButton, {
385
- [xe.dropdownButtonActive]: t
392
+ className: C(Be.dropdownButton, {
393
+ [Be.dropdownButtonActive]: n
386
394
  }),
387
- children: /* @__PURE__ */ i(n, { size: "25px" })
395
+ children: /* @__PURE__ */ i(t, { size: "25px" })
388
396
  }
389
397
  ) }),
390
- children: /* @__PURE__ */ i(se, { placement: "right-start", children: e })
398
+ children: /* @__PURE__ */ i(me, { placement: "right-start", children: e })
391
399
  }
392
- ), Zn = "_iconContainer_nz34m_1", Xn = {
393
- iconContainer: Zn
394
- }, Ze = ({ className: e = "" }) => /* @__PURE__ */ i(
400
+ ), gn = "_iconContainer_nz34m_1", pn = {
401
+ iconContainer: gn
402
+ }, ct = ({ className: e = "" }) => /* @__PURE__ */ i(
395
403
  "div",
396
404
  {
397
405
  "aria-label": "Upgrade Icon",
398
- className: L(
399
- Xn.iconContainer,
406
+ className: C(
407
+ pn.iconContainer,
400
408
  "flex-row",
401
409
  "items-center",
402
410
  "justify-center",
403
411
  e
404
412
  ),
405
- children: /* @__PURE__ */ i(ln, {})
413
+ children: /* @__PURE__ */ i(jt, {})
406
414
  }
407
- ), Jn = "_menuContainer_wbu3u_5", Kn = "_profileButton_wbu3u_16", Qn = "_profileImage_wbu3u_29", et = "_profileImageHighlight_wbu3u_37", nt = "_profileImageUpgradeIcon_wbu3u_41", tt = "_userIconWrapper_wbu3u_47", P = {
408
- menuContainer: Jn,
409
- profileButton: Kn,
410
- profileImage: Qn,
411
- profileImageHighlight: et,
412
- profileImageUpgradeIcon: nt,
413
- userIconWrapper: tt
414
- }, Xe = on({}), O = () => an(Xe), rt = ({ children: e }) => {
415
+ ), _n = "_menuContainer_wbu3u_5", vn = "_profileButton_wbu3u_16", Tn = "_profileImage_wbu3u_29", wn = "_profileImageHighlight_wbu3u_37", yn = "_profileImageUpgradeIcon_wbu3u_41", In = "_userIconWrapper_wbu3u_47", j = {
416
+ menuContainer: _n,
417
+ profileButton: vn,
418
+ profileImage: Tn,
419
+ profileImageHighlight: wn,
420
+ profileImageUpgradeIcon: yn,
421
+ userIconWrapper: In
422
+ }, lt = St({}), U = () => Nt(lt), Nn = ({ children: e }) => {
415
423
  const {
416
- currentTeam: n,
417
- otherTeams: t,
424
+ currentTeam: t,
425
+ otherTeams: n,
418
426
  showUpgradeCta: r,
419
427
  showBillingButton: a,
420
428
  allowTeamCreation: o,
421
429
  isLimitedView: c,
422
- isProviderAlpha: l,
423
- canAccessTeamSettings: u,
424
- isEndOfTrialActive: s,
425
- isTeamSuspended: d
426
- } = O();
430
+ isProviderAlpha: u,
431
+ canAccessTeamSettings: d,
432
+ isEndOfTrialActive: l,
433
+ isTeamSuspended: m
434
+ } = U();
427
435
  return /* @__PURE__ */ i(
428
- oe,
436
+ de,
429
437
  {
430
- menuButton: () => /* @__PURE__ */ b("button", { className: P.profileButton, "aria-label": "Profile menu", type: "button", children: [
431
- n != null && n.logoUrl ? /* @__PURE__ */ i(
438
+ menuButton: () => /* @__PURE__ */ _("button", { className: j.profileButton, "aria-label": "Profile menu", type: "button", children: [
439
+ t != null && t.logoUrl ? /* @__PURE__ */ i(
432
440
  "img",
433
441
  {
434
- src: n.logoUrl,
435
- className: L(P.profileImage, {
436
- [P.profileImageHighlight]: r
442
+ src: t.logoUrl,
443
+ className: C(j.profileImage, {
444
+ [j.profileImageHighlight]: r
437
445
  }),
438
446
  alt: "Team Logo"
439
447
  }
440
448
  ) : /* @__PURE__ */ i(
441
449
  "div",
442
450
  {
443
- className: L(P.userIconWrapper, "flex-row", "align-center", "items-center", {
444
- [P.profileImageHighlight]: r
451
+ className: C(j.userIconWrapper, "flex-row", "align-center", "items-center", {
452
+ [j.profileImageHighlight]: r
445
453
  }),
446
- children: /* @__PURE__ */ i(De, { size: "25px" })
454
+ children: /* @__PURE__ */ i(Ze, { size: "25px" })
447
455
  }
448
456
  ),
449
- r && /* @__PURE__ */ i(Ze, { className: P.profileImageUpgradeIcon })
457
+ r && /* @__PURE__ */ i(ct, { className: j.profileImageUpgradeIcon })
450
458
  ] }),
451
- children: /* @__PURE__ */ i(se, { placement: "right-end", className: P.menuContainer, children: e({
459
+ children: /* @__PURE__ */ i(me, { placement: "right-end", className: j.menuContainer, children: e({
452
460
  allowTeamCreation: o,
453
- otherTeams: t,
461
+ otherTeams: n,
454
462
  isLimitedView: c,
455
- canAccessTeamSettings: u,
456
- isEndOfTrialActive: s,
457
- isTeamSuspended: d,
463
+ canAccessTeamSettings: d,
464
+ isEndOfTrialActive: l,
465
+ isTeamSuspended: m,
458
466
  showBillingButton: a,
459
- isProviderAlpha: l
467
+ isProviderAlpha: u
460
468
  }) })
461
469
  }
462
470
  );
463
- }, Je = 0, it = 9999, at = [150, 151, 250, 251], ot = [152, 153, 252, 253], st = [154, 155, 157, 158, 254, 255, 258, 354, 355, 358], ct = [156, 159, 160, 256, 259, 260], Ke = 9998, le = (e) => e === Je, Qe = (e) => e === it, Vt = (e) => at.includes(e), Yt = (e) => ot.includes(e), Zt = (e) => st.includes(e), Xt = (e) => ct.includes(e), Jt = (e) => e > Je && e < Ke, Kt = (e) => e === Ke, lt = /\n/, Ce = (e, n, t) => e.split(n).flatMap((r, a) => a !== 0 ? [sn(t, { key: Math.random().toString(32).slice(0, 10) }), r] : r), ut = (e, n, t) => typeof e == "string" ? Ce(e, n, t) : e.flatMap((r) => typeof r == "string" ? Ce(r, n, t) : r), Qt = (e) => ut(e, lt, /* @__PURE__ */ i("br", {})), dt = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi, ft = (e) => e.match(dt) ?? [], Re = (e, n, t) => {
464
- const r = e.split(n);
471
+ }, ut = 0, Sn = 9999, En = [150, 151, 250, 251], Pn = [152, 153, 252, 253], jn = [154, 155, 157, 158, 254, 255, 258, 354, 355, 358], kn = [156, 159, 160, 256, 259, 260], dt = 9998, ge = (e) => e === ut, mt = (e) => e === Sn, xr = (e) => En.includes(e), qr = (e) => Pn.includes(e), Ur = (e) => jn.includes(e), Mr = (e) => kn.includes(e), Br = (e) => e > ut && e < dt, $r = (e) => e === dt, Cn = /\n/, $e = (e, t, n) => e.split(t).flatMap((r, a) => a !== 0 ? [Et(n, { key: Math.random().toString(32).slice(0, 10) }), r] : r), Rn = (e, t, n) => typeof e == "string" ? $e(e, t, n) : e.flatMap((r) => typeof r == "string" ? $e(r, t, n) : r), zr = (e) => Rn(e, Cn, /* @__PURE__ */ i("br", {})), An = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi, Ln = (e) => e.match(An) ?? [], ze = (e, t, n) => {
472
+ const r = e.split(t);
465
473
  if (r.length === 1)
466
474
  return e;
467
475
  const a = [];
468
476
  return r[0] !== "" && a.push(r[0]), r.shift(), r[r.length - 1] === "" && r.pop(), a.push(
469
- /* @__PURE__ */ i("a", { href: n, target: "_blank", rel: "noreferrer noopener", children: n }, n + t)
470
- ), a.push(r.join(n)), a.filter((o) => o !== "");
471
- }, ke = (e) => {
472
- const n = ft(e);
473
- return n != null && n.length ? n.reduce((t, r, a) => typeof t == "string" ? Re(t, r, a) : t.flatMap((o) => typeof o == "string" ? Re(o, r, a) : o), e) : e;
474
- }, er = (e) => typeof e == "string" ? ke(e) : e.flatMap((n) => typeof n == "string" ? ke(n) : n, e), nr = (e, n = "PP") => We(e, n), tr = (e, n, t = "PP") => We(dn(e, n), t), rr = (e) => {
475
- ie(e, []);
476
- }, mt = ({ children: e, config: n }) => {
477
+ /* @__PURE__ */ i("a", { href: t, target: "_blank", rel: "noreferrer noopener", children: t }, t + n)
478
+ ), a.push(r.join(t)), a.filter((o) => o !== "");
479
+ }, De = (e) => {
480
+ const t = Ln(e);
481
+ return t != null && t.length ? t.reduce((n, r, a) => typeof n == "string" ? ze(n, r, a) : n.flatMap((o) => typeof o == "string" ? ze(o, r, a) : o), e) : e;
482
+ }, Dr = (e) => typeof e == "string" ? De(e) : e.flatMap((t) => typeof t == "string" ? De(t) : t, e), Hr = (e, t = "PP") => nt(e, t), Fr = (e, t, n = "PP") => nt(Rt(e, t), n), Gr = (e) => {
483
+ q(e, []);
484
+ }, On = ({ children: e, config: t }) => {
477
485
  const {
478
- teams: t,
486
+ teams: n,
479
487
  currentTeamId: r,
480
488
  planId: a,
481
489
  isLimitedView: o,
482
490
  isTeamSuspended: c,
483
- canAccessTeamSettings: l,
484
- isEndOfTrialActive: u
485
- } = n, s = t.find((m) => m.id === r), d = t.filter((m) => m.id !== r), h = (s == null ? void 0 : s.role) ?? "", v = ["biller", "owner"].includes(h), T = le(a) || Qe(a), S = {
486
- ...n,
487
- currentTeam: s,
488
- otherTeams: d,
489
- canChangeBilling: v,
490
- isOnFreeOrTrialPlan: T,
491
- showUpgradeCta: !o && T && v && !c,
492
- showBillingButton: !o && l && v,
493
- allowTeamCreation: !o && !u
491
+ canAccessTeamSettings: u,
492
+ isEndOfTrialActive: d
493
+ } = t, l = n.find((h) => h.id === r), m = n.filter((h) => h.id !== r), g = (l == null ? void 0 : l.role) ?? "", T = ["biller", "owner"].includes(g), w = ge(a) || mt(a), E = {
494
+ ...t,
495
+ currentTeam: l,
496
+ otherTeams: m,
497
+ canChangeBilling: T,
498
+ isOnFreeOrTrialPlan: w,
499
+ showUpgradeCta: !o && w && T && !c,
500
+ showBillingButton: !o && u && T,
501
+ allowTeamCreation: !o && !d
494
502
  };
495
- return /* @__PURE__ */ i(Xe.Provider, { value: S, children: e });
496
- }, gt = ({ config: e, children: n }) => /* @__PURE__ */ i(mt, { config: e, children: /* @__PURE__ */ i(rt, { children: n }) }), ht = "_container_q5pot_1", pt = "_profileEmail_q5pot_5", Oe = {
497
- container: ht,
498
- profileEmail: pt
499
- }, bt = ({
503
+ return /* @__PURE__ */ i(lt.Provider, { value: E, children: e });
504
+ }, xn = ({ config: e, children: t }) => /* @__PURE__ */ i(On, { config: e, children: /* @__PURE__ */ i(Nn, { children: t }) }), qn = "_container_q5pot_1", Un = "_profileEmail_q5pot_5", He = {
505
+ container: qn,
506
+ profileEmail: Un
507
+ }, Mn = ({
500
508
  href: e,
501
- onClick: n,
502
- userEmail: t,
509
+ onClick: t,
510
+ userEmail: n,
503
511
  hideBottomDivider: r
504
512
  }) => {
505
- const { isEndOfTrialActive: a, isTeamSuspended: o } = O();
506
- return a || o ? null : /* @__PURE__ */ b(Be, { children: [
513
+ const { isEndOfTrialActive: a, isTeamSuspended: o } = U();
514
+ return a || o ? null : /* @__PURE__ */ _(Je, { children: [
507
515
  /* @__PURE__ */ i(
508
- $,
516
+ F,
509
517
  {
510
518
  href: e,
511
519
  onClick: () => {
512
- n == null || n();
520
+ t == null || t();
513
521
  },
514
- children: /* @__PURE__ */ b("div", { className: `flex-col ${Oe.container}`, children: [
522
+ children: /* @__PURE__ */ _("div", { className: `flex-col ${He.container}`, children: [
515
523
  /* @__PURE__ */ i("span", { children: "Profile Settings" }),
516
- /* @__PURE__ */ i("span", { className: Oe.profileEmail, children: t })
524
+ /* @__PURE__ */ i("span", { className: He.profileEmail, children: n })
517
525
  ] })
518
526
  }
519
527
  ),
520
- !r && /* @__PURE__ */ i(ze, {})
528
+ !r && /* @__PURE__ */ i(Xe, {})
521
529
  ] });
522
- }, _t = "_wrapper_15d85_1", vt = "_profileImage_15d85_14", Tt = "_teamName_15d85_22", wt = "_planLabel_15d85_29", It = "_membership_15d85_38", yt = "_defaultProfileImage_15d85_44", x = {
523
- wrapper: _t,
524
- profileImage: vt,
525
- teamName: Tt,
526
- planLabel: wt,
527
- membership: It,
528
- defaultProfileImage: yt
529
- }, en = ({ team: e, onClick: n, hidePlanLabel: t }) => {
530
- const { currentTeam: r, planId: a } = O(), o = e || r;
530
+ }, Bn = "_wrapper_15d85_1", $n = "_profileImage_15d85_14", zn = "_teamName_15d85_22", Dn = "_planLabel_15d85_29", Hn = "_membership_15d85_38", Fn = "_defaultProfileImage_15d85_44", R = {
531
+ wrapper: Bn,
532
+ profileImage: $n,
533
+ teamName: zn,
534
+ planLabel: Dn,
535
+ membership: Hn,
536
+ defaultProfileImage: Fn
537
+ }, ft = ({ team: e, onClick: t, hidePlanLabel: n }) => {
538
+ const { currentTeam: r, planId: a } = U(), o = e || r;
531
539
  if (!o)
532
540
  return null;
533
- const c = le(a) ? "Free" : Qe(a) ? "Trial" : void 0;
534
- return /* @__PURE__ */ b(
535
- n ? $ : "div",
541
+ const c = ge(a) ? "Free" : mt(a) ? "Trial" : void 0;
542
+ return /* @__PURE__ */ _(
543
+ t ? F : "div",
536
544
  {
537
- className: `flex-row gap-2 flex-nowrap items-center ${x.wrapper}`,
538
- ...n && { onClick: () => n(o) },
545
+ className: `flex-row gap-2 flex-nowrap items-center ${R.wrapper}`,
546
+ ...t && { onClick: () => t(o) },
539
547
  children: [
540
- o.logoUrl ? /* @__PURE__ */ i("img", { className: x.profileImage, src: o.logoUrl, alt: "Team Logo" }) : /* @__PURE__ */ i("span", { className: `flex-row justify-center items-center ${x.defaultProfileImage}`, children: /* @__PURE__ */ i(De, { size: "25px" }) }),
541
- /* @__PURE__ */ b("div", { className: "flex-col items-start", children: [
542
- /* @__PURE__ */ b("div", { className: "flex-row items-center flex-nowrap gap-2", children: [
543
- /* @__PURE__ */ i("span", { title: o.name, className: x.teamName, children: o.name }),
544
- c && !t && /* @__PURE__ */ i("span", { className: `flex-row justify-center items-center ${x.planLabel}`, children: c })
548
+ o.logoUrl ? /* @__PURE__ */ i("img", { className: R.profileImage, src: o.logoUrl, alt: "Team Logo" }) : /* @__PURE__ */ i("span", { className: `flex-row justify-center items-center ${R.defaultProfileImage}`, children: /* @__PURE__ */ i(Ze, { size: "25px" }) }),
549
+ /* @__PURE__ */ _("div", { className: "flex-col items-start", children: [
550
+ /* @__PURE__ */ _("div", { className: "flex-row items-center flex-nowrap gap-2", children: [
551
+ /* @__PURE__ */ i("span", { title: o.name, className: R.teamName, children: o.name }),
552
+ c && !n && /* @__PURE__ */ i("span", { className: `flex-row justify-center items-center ${R.planLabel}`, children: c })
545
553
  ] }),
546
- /* @__PURE__ */ i("span", { className: x.membership, children: o.role })
554
+ /* @__PURE__ */ i("span", { className: R.membership, children: o.role })
547
555
  ] })
548
556
  ]
549
557
  }
550
558
  );
551
- }, Nt = "_teamsContainer_1t68g_1", St = {
552
- teamsContainer: Nt
553
- }, Et = ({ onSwitchTeam: e }) => {
554
- const { otherTeams: n } = O();
555
- return n.length === 0 ? null : /* @__PURE__ */ i("div", { className: `flex-col items-stretch ${St.teamsContainer}`, children: n.map((t) => /* @__PURE__ */ i(en, { team: t, onClick: e, hidePlanLabel: !0 }, t.id)) });
556
- }, Pt = "_container_1u995_1", jt = "_planCta_1u995_15", Lt = "_upgradeIconWrapper_1u995_19", te = {
557
- container: Pt,
558
- planCta: jt,
559
- upgradeIconWrapper: Lt
560
- }, xt = ({ upgradeOptionHref: e }) => {
561
- const { planId: n, trialDaysLeft: t, showUpgradeCta: r } = O();
559
+ }, Gn = "_teamsContainer_1t68g_1", Wn = {
560
+ teamsContainer: Gn
561
+ }, Kn = ({ onSwitchTeam: e }) => {
562
+ const { otherTeams: t } = U();
563
+ return t.length === 0 ? null : /* @__PURE__ */ i("div", { className: `flex-col items-stretch ${Wn.teamsContainer}`, children: t.map((n) => /* @__PURE__ */ i(ft, { team: n, onClick: e, hidePlanLabel: !0 }, n.id)) });
564
+ }, Jn = "_container_1u995_1", Qn = "_planCta_1u995_15", Vn = "_upgradeIconWrapper_1u995_19", se = {
565
+ container: Jn,
566
+ planCta: Qn,
567
+ upgradeIconWrapper: Vn
568
+ }, Yn = ({ upgradeOptionHref: e }) => {
569
+ const { planId: t, trialDaysLeft: n, showUpgradeCta: r } = U();
562
570
  if (!r)
563
571
  return null;
564
- const c = le(n) ? "Your team is currently on the Free plan" : `Free trial ends in ${t} ${t === 1 ? "day" : "days"}`;
565
- return /* @__PURE__ */ b($, { href: e, className: `flex-col gap-1 items-start ${te.container}`, children: [
566
- /* @__PURE__ */ i("span", { className: te.planCta, children: c }),
567
- /* @__PURE__ */ b("div", { className: `flex-row items-center gap-1 ${te.upgradeIconWrapper}`, children: [
568
- /* @__PURE__ */ i(Ze, {}),
572
+ const c = ge(t) ? "Your team is currently on the Free plan" : `Free trial ends in ${n} ${n === 1 ? "day" : "days"}`;
573
+ return /* @__PURE__ */ _(F, { href: e, className: `flex-col gap-1 items-start ${se.container}`, children: [
574
+ /* @__PURE__ */ i("span", { className: se.planCta, children: c }),
575
+ /* @__PURE__ */ _("div", { className: `flex-row items-center gap-1 ${se.upgradeIconWrapper}`, children: [
576
+ /* @__PURE__ */ i(ct, {}),
569
577
  /* @__PURE__ */ i("span", { children: "See upgrade options" })
570
578
  ] })
571
579
  ] });
572
- }, I = ({ children: e, ...n }) => /* @__PURE__ */ i("nav", { ...n, className: $n.sidebarContainer, children: e });
580
+ }, I = ({ children: e, ...t }) => /* @__PURE__ */ i("nav", { ...t, className: on.sidebarContainer, children: e });
573
581
  I.Top = ({ children: e }) => /* @__PURE__ */ i("div", { children: e });
574
582
  I.Bottom = ({ children: e }) => /* @__PURE__ */ i("div", { children: e });
575
- I.Avatar = zn;
576
- I.IconLink = Hn;
577
- I.Menu = Yn;
578
- I.ProfileMenu = gt;
579
- I.TeamSwitch = Et;
580
- I.TeamMenuItem = en;
581
- I.UpgradeMenuItem = xt;
582
- I.ProfileSettingsMenuItem = bt;
583
- const Ct = "_breadcrumbsItem_1hm6a_1", Rt = "_breadcrumbs_1hm6a_1", Ae = {
584
- breadcrumbsItem: Ct,
585
- breadcrumbs: Rt
586
- }, ir = ({ items: e }) => /* @__PURE__ */ i("nav", { "aria-label": "breadcrumb", className: Ae.breadcrumbs, children: e.map((n, t) => /* @__PURE__ */ b($e, { children: [
587
- /* @__PURE__ */ i(Ue, { className: Ae.breadcrumbsItem, href: n.link, rel: "noreferrer", children: n.name }),
588
- t < e.length - 1 && /* @__PURE__ */ i("span", { children: " — " })
589
- ] }, `${n.link}-${n.name}`)) }), kt = ({ items: e }) => /* @__PURE__ */ i(Be, { children: e.map((n, t) => /* @__PURE__ */ b($e, { children: [
590
- !!t && n.some((r) => r.visible) && /* @__PURE__ */ i(ze, {}),
591
- n.filter(({ visible: r }) => r).map(({ link: r, label: a, onClick: o }) => /* @__PURE__ */ i($, { href: r || "#", "aria-label": a, onClick: o, children: a }, a))
592
- ] }, n[0].label)) }), Ot = "_badge_1pc1v_1", At = "_tag_1pc1v_15", qt = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", Bt = "_disabled_1pc1v_57", Mt = "_projectNavigationItem_1pc1v_61", $t = "_projectNavigationItemDisabled_1pc1v_67", j = {
593
- badge: Ot,
594
- tag: At,
595
- withNavLinkStyle: qt,
596
- disabled: Bt,
597
- projectNavigationItem: Mt,
598
- projectNavigationItemDisabled: $t
599
- }, qe = ({ label: e, badge: n, novel: t }) => /* @__PURE__ */ b("div", { className: "flex gap-1", children: [
600
- /* @__PURE__ */ b("div", { children: [
583
+ I.Avatar = ln;
584
+ I.IconLink = mn;
585
+ I.Menu = bn;
586
+ I.ProfileMenu = xn;
587
+ I.TeamSwitch = Kn;
588
+ I.TeamMenuItem = ft;
589
+ I.UpgradeMenuItem = Yn;
590
+ I.ProfileSettingsMenuItem = Mn;
591
+ const Zn = "_breadcrumbsItem_1hm6a_1", Xn = "_breadcrumbs_1hm6a_1", Fe = {
592
+ breadcrumbsItem: Zn,
593
+ breadcrumbs: Xn
594
+ }, Wr = ({ items: e }) => /* @__PURE__ */ i("nav", { "aria-label": "breadcrumb", className: Fe.breadcrumbs, children: e.map((t, n) => /* @__PURE__ */ _(Ve, { children: [
595
+ /* @__PURE__ */ i(Ye, { className: Fe.breadcrumbsItem, href: t.link, rel: "noreferrer", children: t.name }),
596
+ n < e.length - 1 && /* @__PURE__ */ i("span", { children: " — " })
597
+ ] }, `${t.link}-${t.name}`)) }), er = ({ items: e }) => /* @__PURE__ */ i(Je, { children: e.map((t, n) => /* @__PURE__ */ _(Ve, { children: [
598
+ !!n && t.some((r) => r.visible) && /* @__PURE__ */ i(Xe, {}),
599
+ t.filter(({ visible: r }) => r).map(({ link: r, label: a, onClick: o }) => /* @__PURE__ */ i(F, { href: r || "#", "aria-label": a, onClick: o, children: a }, a))
600
+ ] }, t[0].label)) }), tr = "_badge_1pc1v_1", nr = "_tag_1pc1v_15", rr = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", ar = "_disabled_1pc1v_57", ir = "_projectNavigationItem_1pc1v_61", or = "_projectNavigationItemDisabled_1pc1v_67", k = {
601
+ badge: tr,
602
+ tag: nr,
603
+ withNavLinkStyle: rr,
604
+ disabled: ar,
605
+ projectNavigationItem: ir,
606
+ projectNavigationItemDisabled: or
607
+ }, Ge = ({ label: e, badge: t, novel: n }) => /* @__PURE__ */ _("div", { className: "flex gap-1", children: [
608
+ /* @__PURE__ */ _("div", { children: [
601
609
  /* @__PURE__ */ i("span", { children: e }),
602
- !!n && /* @__PURE__ */ i("div", { className: j.badge, "aria-label": `${n} items requiring attention`, children: n > 9 ? "9+" : n })
610
+ !!t && /* @__PURE__ */ i("div", { className: k.badge, "aria-label": `${t} items requiring attention`, children: t > 9 ? "9+" : t })
603
611
  ] }),
604
- !!t && /* @__PURE__ */ i(un, { className: j.tag, children: t })
605
- ] }), re = cn(
606
- ({ label: e, href: n = "", disabled: t = !1, badge: r, onClick: a, novel: o }, c) => /* @__PURE__ */ i(ae, { tooltip: "You do not have access to this function", show: t, children: /* @__PURE__ */ i(
612
+ !!n && /* @__PURE__ */ i(kt, { className: k.tag, children: n })
613
+ ] }), ce = Pt(
614
+ ({ label: e, href: t = "", disabled: n = !1, badge: r, onClick: a, novel: o }, c) => /* @__PURE__ */ i(ue, { tooltip: "You do not have access to this function", show: n, children: /* @__PURE__ */ i(
607
615
  "div",
608
616
  {
609
- className: t ? j.projectNavigationItemDisabled : j.projectNavigationItem,
610
- children: a || t || !n ? /* @__PURE__ */ i(
617
+ className: n ? k.projectNavigationItemDisabled : k.projectNavigationItem,
618
+ children: a || n || !t ? /* @__PURE__ */ i(
611
619
  "button",
612
620
  {
613
621
  type: "button",
614
622
  ref: c,
615
- className: L(j.withNavLinkStyle, {
616
- [j.disabled]: t
623
+ className: C(k.withNavLinkStyle, {
624
+ [k.disabled]: n
617
625
  }),
618
- disabled: t,
626
+ disabled: n,
619
627
  onClick: a,
620
- children: /* @__PURE__ */ i(qe, { label: e, badge: r, novel: o })
628
+ children: /* @__PURE__ */ i(Ge, { label: e, badge: r, novel: o })
621
629
  }
622
- ) : /* @__PURE__ */ i("a", { href: n, className: j.withNavLinkStyle, children: /* @__PURE__ */ i(qe, { label: e, badge: r, novel: o }) })
630
+ ) : /* @__PURE__ */ i("a", { href: t, className: k.withNavLinkStyle, children: /* @__PURE__ */ i(Ge, { label: e, badge: r, novel: o }) })
623
631
  }
624
632
  ) })
625
633
  );
626
- re.displayName = "NavigationTabsItem";
627
- const Ut = (e) => (e == null ? void 0 : e.some((n) => n.some((t) => t.visible))) ?? !1, Dt = (e) => e.visible && (!e.dropdown || Ut(e.dropdown)), ar = ({ navigation: e, activeItem: n }) => /* @__PURE__ */ i("nav", { "aria-label": "Project", children: /* @__PURE__ */ i("ul", { className: C.navigationTabList, "aria-orientation": "horizontal", children: e.filter(Dt).map((t) => {
634
+ ce.displayName = "NavigationTabsItem";
635
+ const sr = (e) => (e == null ? void 0 : e.some((t) => t.some((n) => n.visible))) ?? !1, cr = (e) => e.visible && (!e.dropdown || sr(e.dropdown)), Kr = ({ navigation: e, activeItem: t }) => /* @__PURE__ */ i("nav", { "aria-label": "Project", children: /* @__PURE__ */ i("ul", { className: A.navigationTabList, "aria-orientation": "horizontal", children: e.filter(cr).map((n) => {
628
636
  var r, a, o;
629
- return t.dropdown ? /* @__PURE__ */ i(
637
+ return n.dropdown ? /* @__PURE__ */ i(
630
638
  "li",
631
639
  {
632
- className: C.navigationTab,
633
- "data-testid": t.key,
634
- "aria-selected": (r = t.isActive) == null ? void 0 : r.call(t, n),
640
+ className: A.navigationTab,
641
+ "data-testid": n.key,
642
+ "aria-selected": (r = n.isActive) == null ? void 0 : r.call(n, t),
635
643
  children: /* @__PURE__ */ i(
636
- oe,
644
+ de,
637
645
  {
638
- menuButton: ({ opened: c }) => /* @__PURE__ */ i(re, { label: t.label, disabled: t.disabled, active: c }),
639
- children: /* @__PURE__ */ i(se, { children: /* @__PURE__ */ i(kt, { items: t.dropdown }) })
646
+ menuButton: ({ opened: c }) => /* @__PURE__ */ i(ce, { label: n.label, disabled: n.disabled, active: c }),
647
+ children: /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(er, { items: n.dropdown }) })
640
648
  }
641
649
  )
642
650
  },
643
- t.key
651
+ n.key
644
652
  ) : /* @__PURE__ */ i(
645
653
  "li",
646
654
  {
647
- className: C.navigationTab,
648
- "data-testid": t.key,
649
- "aria-selected": (a = t.isActive) == null ? void 0 : a.call(t, n),
655
+ className: A.navigationTab,
656
+ "data-testid": n.key,
657
+ "aria-selected": (a = n.isActive) == null ? void 0 : a.call(n, t),
650
658
  children: /* @__PURE__ */ i(
651
- re,
659
+ ce,
652
660
  {
653
- label: t.label,
654
- href: t.link,
655
- onClick: t.onClick,
656
- disabled: t.disabled,
657
- badge: t.badge,
658
- novel: t.novel,
659
- active: (o = t.isActive) == null ? void 0 : o.call(t, n)
661
+ label: n.label,
662
+ href: n.link,
663
+ onClick: n.onClick,
664
+ disabled: n.disabled,
665
+ badge: n.badge,
666
+ novel: n.novel,
667
+ active: (o = n.isActive) == null ? void 0 : o.call(n, t)
660
668
  }
661
669
  )
662
670
  },
663
- t.key
671
+ n.key
664
672
  );
665
- }) }) });
673
+ }) }) }), ht = s.union([
674
+ s.literal("owner"),
675
+ s.literal("admin"),
676
+ s.literal("biller"),
677
+ s.literal("member")
678
+ ]), lr = s.object({
679
+ userId: s.number(),
680
+ teamId: s.number(),
681
+ userTeamRole: ht,
682
+ userEmail: s.string().email(),
683
+ userCurrentTeamId: s.number(),
684
+ planId: s.number(),
685
+ planName: s.string(),
686
+ isProviderAlpha: s.boolean(),
687
+ isFullyAuthenticated: s.boolean(),
688
+ exp: s.number()
689
+ });
690
+ function bt(e) {
691
+ try {
692
+ const t = e.split(".")[1], n = atob(t);
693
+ return lr.parse(JSON.parse(n));
694
+ } catch {
695
+ return;
696
+ }
697
+ }
698
+ const H = class H extends CustomEvent {
699
+ constructor(t) {
700
+ super(H.eventName, { detail: { token: t, payload: bt(t.accessToken) } });
701
+ }
702
+ };
703
+ we(H, "eventName", "new-jwt-issued");
704
+ let L = H;
705
+ const ur = s.object({
706
+ accessToken: s.string(),
707
+ refreshToken: s.string()
708
+ }), pe = Ct({
709
+ description: "Takes a teamId and returns a JWT token access and refresh token for the user",
710
+ method: "post",
711
+ requestPathParamsSchema: s.object({ teamId: s.number() }),
712
+ pathResolver: (e) => `/team/${e.teamId}/actions/get-user-token`,
713
+ requestHeaderSchema: s.object({ Authorization: s.string().optional() }),
714
+ requestBodySchema: s.undefined(),
715
+ successResponseBodySchema: ur
716
+ }), gt = {
717
+ teamKey: (e) => ["getUserToken", e]
718
+ }, dr = (e, t, n) => he({
719
+ ...n,
720
+ queryFn: ({ queryKey: [r, a] }) => fe(e, pe, {
721
+ pathParams: { teamId: a },
722
+ headers: {}
723
+ }),
724
+ queryKey: gt.teamKey(t)
725
+ }), Jr = gt;
726
+ function Qr(e, t) {
727
+ const n = dr(e, t), r = Qe();
728
+ return q(() => {
729
+ n.data && n.data.accessToken !== r.current && (window.dispatchEvent(new L(n.data)), r.current = n.data.accessToken);
730
+ }, [n.data]), n;
731
+ }
732
+ function pt() {
733
+ const [e, t] = le();
734
+ return q(() => {
735
+ const n = (r) => {
736
+ t(r.detail.payload);
737
+ };
738
+ return window.addEventListener(L.eventName, n), () => {
739
+ window.removeEventListener(L.eventName, n);
740
+ };
741
+ }, []), e;
742
+ }
743
+ const mr = s.object({
744
+ user_id: s.number(),
745
+ email: s.string().email(),
746
+ fullname: s.string(),
747
+ created_at: s.string(),
748
+ created_at_timestamp: s.number(),
749
+ role: ht
750
+ }), fr = s.object({
751
+ team_id: s.number(),
752
+ team_user: mr
753
+ }), hr = tt({
754
+ description: "Get the details of a team user",
755
+ requestPathParamsSchema: s.object({ teamId: s.number(), userId: s.number() }),
756
+ pathResolver: ({ teamId: e, userId: t }) => `/teams/${e}/users/${t}`,
757
+ successResponseBodySchema: fr
758
+ }), _t = {
759
+ teamUserKey: (e, t) => ["GetTeamUsers", e, t]
760
+ }, br = (e, t, n, r) => he({
761
+ ...r,
762
+ queryKey: _t.teamUserKey(t, n),
763
+ queryFn: ({ queryKey: [a, o, c] }) => et(e, hr, { pathParams: { teamId: o, userId: c } })
764
+ }), Vr = _t;
765
+ function Yr(e) {
766
+ const t = pt();
767
+ return br(e, (t == null ? void 0 : t.teamId) ?? 0, (t == null ? void 0 : t.userId) ?? 0, {
768
+ enabled: t !== void 0
769
+ });
770
+ }
771
+ const gr = s.object({
772
+ lang_id: s.number(),
773
+ lang_iso: s.string(),
774
+ lang_name: s.string(),
775
+ is_writable: s.union([s.literal(0), s.literal(1)])
776
+ }), pr = s.object({
777
+ user_id: s.number(),
778
+ email: s.string().email(),
779
+ fullname: s.string(),
780
+ created_at: s.string(),
781
+ created_at_timestamp: s.number(),
782
+ admin_rights: s.array(s.string()),
783
+ languages: s.array(gr),
784
+ // TODO nic: Do I need this?
785
+ is_admin: s.boolean(),
786
+ is_reviewer: s.boolean()
787
+ }), _r = s.object({
788
+ project_id: s.string(),
789
+ contributors: s.array(pr)
790
+ }), vr = tt({
791
+ description: "Get the details of a project contributor",
792
+ requestPathParamsSchema: s.object({ projectId: s.string(), contributorId: s.number() }),
793
+ pathResolver: ({ projectId: e, contributorId: t }) => `/projects/${e}/contributors/${t}`,
794
+ successResponseBodySchema: _r
795
+ }), vt = {
796
+ projectUserKey: (e, t) => ["RetrieveContributor", e, t]
797
+ }, Tr = (e, t, n, r) => he({
798
+ ...r,
799
+ queryKey: vt.projectUserKey(n, t),
800
+ queryFn: ({ queryKey: [a, o, c] }) => et(e, vr, {
801
+ pathParams: { projectId: o, contributorId: c }
802
+ })
803
+ }), Zr = vt;
804
+ function Xr(e, t) {
805
+ const n = pt();
806
+ return Tr(e, (n == null ? void 0 : n.userId) ?? 0, t, {
807
+ enabled: n !== void 0
808
+ });
809
+ }
810
+ function z(e) {
811
+ return { Authorization: `Bearer ${e}` };
812
+ }
813
+ function wr(e, t) {
814
+ return (n) => async (r, a) => {
815
+ var u;
816
+ const o = await t.getCachedJwtToken();
817
+ if (o === void 0)
818
+ return n(r, a);
819
+ const c = await n(r, {
820
+ ...a,
821
+ headers: { ...a.headers, ...z(o.accessToken) }
822
+ });
823
+ if (o && (c.status === 401 || c.status === 403)) {
824
+ const d = bt(o.accessToken);
825
+ if (!d)
826
+ return c;
827
+ const l = await fe(e, pe, {
828
+ pathParams: { teamId: d.teamId },
829
+ headers: z(o.refreshToken)
830
+ });
831
+ return await ((u = t.onNewJwtTokenIssued) == null ? void 0 : u.call(t, l)), n(r, {
832
+ ...a,
833
+ headers: { ...a.headers, ...z(l.accessToken) }
834
+ });
835
+ }
836
+ return c;
837
+ };
838
+ }
839
+ const We = {
840
+ wretch: {
841
+ jwtAuth(e) {
842
+ return this.middlewares([wr(this, e)]);
843
+ }
844
+ }
845
+ };
846
+ function yr(e, t) {
847
+ return (n) => async (r, a) => {
848
+ var u;
849
+ if (await t.getCachedJwtToken() !== void 0)
850
+ return n(r, a);
851
+ const c = await fe(e, pe, {
852
+ pathParams: { teamId: await t.getTeamId() },
853
+ headers: {}
854
+ });
855
+ return await ((u = t.onNewJwtTokenIssued) == null ? void 0 : u.call(t, c)), n(r, {
856
+ ...a,
857
+ headers: { ...a.headers, ...z(c.accessToken) }
858
+ });
859
+ };
860
+ }
861
+ async function Ir() {
862
+ }
863
+ const ea = {
864
+ wretch: {
865
+ jwtAuth(e) {
866
+ return this.addon(We).jwtAuth(Ke(e));
867
+ },
868
+ jwtAuthWithClassicSessionPromotion(e) {
869
+ const t = Ke(e);
870
+ return this.addon(We).jwtAuth(t).middlewares([yr(this, t)]);
871
+ }
872
+ }
873
+ };
874
+ function Ke(e) {
875
+ return {
876
+ ...e,
877
+ getCachedJwtToken: e.getCachedJwtToken ?? Ir,
878
+ onNewJwtTokenIssued: async (t) => {
879
+ var n;
880
+ return window.dispatchEvent(new L(t)), (n = e.onNewJwtTokenIssued) == null ? void 0 : n.call(e, t);
881
+ }
882
+ };
883
+ }
666
884
  export {
667
- ir as Breadcrumbs,
668
- Ke as ENTERPRISE_OPENSOURCE_PLAN_ID,
669
- ct as ENTERPRISE_PLAN_IDS,
670
- ot as ESSENTIAL_PLAN_IDS,
671
- Je as FREE_PLAN_ID,
672
- M as NavigationPanel,
673
- ar as NavigationTabs,
674
- st as PRO_PLAN_IDS,
675
- at as START_PLAN_IDS,
885
+ Wr as Breadcrumbs,
886
+ ea as BrowserJwtAuthAddon,
887
+ dt as ENTERPRISE_OPENSOURCE_PLAN_ID,
888
+ kn as ENTERPRISE_PLAN_IDS,
889
+ Pn as ESSENTIAL_PLAN_IDS,
890
+ ut as FREE_PLAN_ID,
891
+ We as JwtAuthAddon,
892
+ D as NavigationPanel,
893
+ Kr as NavigationTabs,
894
+ jn as PRO_PLAN_IDS,
895
+ En as START_PLAN_IDS,
676
896
  I as Sidebar,
677
- it as TRIAL_PLAN_ID,
678
- Qt as convertNewLineToBreakTag,
679
- nr as formatDate,
680
- tr as formatDateTz,
681
- Kt as isEnterpriseOpenSourcePlan,
682
- Xt as isEnterprisePlan,
683
- Yt as isEssentialPlan,
684
- le as isFreePlan,
685
- Jt as isPaidPlan,
686
- Zt as isProPlan,
687
- Vt as isStartPlan,
688
- Qe as isTrialPlan,
689
- er as makeUrlClickable,
690
- rr as useEffectOnce
897
+ Sn as TRIAL_PLAN_ID,
898
+ Zr as authenticatedContributorKeys,
899
+ Vr as authenticatedUserKeys,
900
+ zr as convertNewLineToBreakTag,
901
+ Hr as formatDate,
902
+ Fr as formatDateTz,
903
+ Jr as getPromotedClassicSessionJwtKey,
904
+ _t as getTeamUsersQueryKey,
905
+ gt as getUserTokenKey,
906
+ $r as isEnterpriseOpenSourcePlan,
907
+ Mr as isEnterprisePlan,
908
+ qr as isEssentialPlan,
909
+ ge as isFreePlan,
910
+ Br as isPaidPlan,
911
+ Ur as isProPlan,
912
+ xr as isStartPlan,
913
+ mt as isTrialPlan,
914
+ Dr as makeUrlClickable,
915
+ vt as retrieveContributorKeys,
916
+ Xr as useAuthenticatedProjectContributor,
917
+ Yr as useAuthenticatedUser,
918
+ Gr as useEffectOnce,
919
+ Qr as useGetPromotedClassicSessionJwtQuery,
920
+ dr as useGetUserTokenQuery,
921
+ pt as useJwtTokenPayload,
922
+ Tr as useRetrieveContributorQuery,
923
+ br as userGetTeamUsersQuery
691
924
  };