@ynput/ayon-frontend-shared 0.6.4 → 0.6.6

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 (55) hide show
  1. package/dist/DetailsPanel.es.js +480 -477
  2. package/dist/ListTable.es.js +24 -25
  3. package/dist/NewEntity.es.js +6 -7
  4. package/dist/ProjectTreeTable.es.js +2018 -2006
  5. package/dist/Views.es.js +28 -28
  6. package/dist/api.es.js +291 -289
  7. package/dist/chunks/Actions.es.js +12 -12
  8. package/dist/chunks/ColumnDropIndicator.es.js +8 -9
  9. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +31 -25
  10. package/dist/chunks/DeleteEntitiesContextInstance.es.js +1 -1
  11. package/dist/chunks/DetailsDialog.es.js +1 -1
  12. package/dist/chunks/EmptyPlaceholder.es.js +13 -12
  13. package/dist/chunks/EntityPath.es.js +67 -67
  14. package/dist/chunks/EntityPickerDialog.es.js +1 -1
  15. package/dist/chunks/EntityTooltip.es.js +8 -8
  16. package/dist/chunks/Feed.es.js +1742 -1734
  17. package/dist/chunks/Menu.es.js +168 -166
  18. package/dist/chunks/MenuItem.es.js +112 -77
  19. package/dist/chunks/MetaWidget.es.js +1283 -1279
  20. package/dist/chunks/PlayableIcon.es.js +458 -451
  21. package/dist/chunks/ProjectContext.es.js +20 -20
  22. package/dist/chunks/RepresentationsList.es.js +9 -9
  23. package/dist/chunks/ReviewablesSelector.es.js +1504 -1374
  24. package/dist/chunks/SimpleForm.es.js +78 -75
  25. package/dist/chunks/Slicer.es.js +68 -69
  26. package/dist/chunks/ThumbnailSimple.es.js +4 -4
  27. package/dist/chunks/Watchers.es.js +104 -105
  28. package/dist/chunks/activeEntities.es.js +58 -0
  29. package/dist/chunks/columnConfigConverter.es.js +57 -63
  30. package/dist/chunks/getUris.es.js +1014 -960
  31. package/dist/chunks/iconUtils.es.js +151 -0
  32. package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
  33. package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
  34. package/dist/chunks/searchTerms.es.js +332 -247
  35. package/dist/chunks/useAttributeEnums.es.js +34 -34
  36. package/dist/chunks/viewUpdateHelper.es.js +11 -11
  37. package/dist/components.es.js +340 -337
  38. package/dist/context.es.js +48 -48
  39. package/dist/hooks.es.js +34 -34
  40. package/dist/index.es.js +1 -1
  41. package/dist/types/ContextMenu.d.ts +1 -1
  42. package/dist/types/Feed.d.ts +2 -2
  43. package/dist/types/ListTable.d.ts +1 -1
  44. package/dist/types/ProjectTreeTable.d.ts +7 -6
  45. package/dist/types/SimpleTable.d.ts +1 -1
  46. package/dist/types/Slicer.d.ts +6 -6
  47. package/dist/types/Views.d.ts +6 -6
  48. package/dist/types/api.d.ts +554 -176
  49. package/dist/types/components.d.ts +73 -11
  50. package/dist/types/context.d.ts +7 -7
  51. package/dist/types/util.d.ts +238 -3
  52. package/dist/util.es.js +127 -114
  53. package/package.json +1 -1
  54. package/dist/chunks/extractEntityHierarchyFromParents.es.js +0 -28
  55. package/dist/chunks/parseHtmlToPlainTextWithLinks.es.js +0 -138
@@ -1,11 +1,12 @@
1
- import { ad as Xt, aL as Se, aF as L, ae as Ne, a5 as D, bj as Es, az as Q, av as pt, be as F, a as Ss, bi as Ps, aH as Ls, aA as V, aq as ue, af as Pe, ag as js, ai as Fs, aj as _s, al as Rs, bd as Gs, an as Cs, aB as Ns, aD as Qs, b9 as Zt, aI as Ms, aK as Vs, aM as X, aO as Ds, aP as rt, aQ as Os, a9 as ce, ar as $s, ba as xs, bb as Us, aS as qs } from "./searchTerms.es.js";
1
+ import { ad as Zt, aL as Se, aF as L, ae as Ne, a5 as D, bj as Ss, az as Q, av as yt, be as F, a as Ps, bi as Ls, aH as js, aA as M, aq as ue, af as Pe, ag as Fs, ai as _s, aj as Rs, al as Gs, bd as Cs, an as Ns, aB as Qs, aD as Ms, b9 as es, aI as Vs, aK as Ds, aM as X, aO as Os, aP as at, aQ as $s, a9 as ce, ar as xs, ba as Us, bb as qs, aS as Bs } from "./searchTerms.es.js";
2
2
  import "lodash";
3
3
  import "primereact/confirmdialog";
4
- import { toast as es } from "react-toastify";
5
- import { v4 as Bs } from "uuid";
6
- import { R as Hs, D as Ws, s as H, c as U, f as pe, d as De, a as ie, w as J, g as ts } from "./realtimeUpdatesUtils.es.js";
7
- import { current as zs } from "@reduxjs/toolkit";
8
- const Oe = Xt.injectEndpoints({
4
+ import { toast as ts } from "react-toastify";
5
+ import { v4 as Hs } from "uuid";
6
+ import { R as Ws, D as zs, j as H, c as U, i as pe, d as De, a as ie, w as J, h as He, g as ss } from "./realtimeUpdatesUtils.es.js";
7
+ import "react";
8
+ import { current as Ks } from "@reduxjs/toolkit";
9
+ const Oe = Zt.injectEndpoints({
9
10
  endpoints: (t) => ({
10
11
  getProjectsAccess: t.query({
11
12
  async queryFn({ projects: e = [] }, { dispatch: s, forced: n }) {
@@ -59,12 +60,12 @@ Oe.enhanceEndpoints({
59
60
  }
60
61
  });
61
62
  const {
62
- useGetStudioAccessGroupsQuery: kr,
63
- useGetAccessGroupsQuery: Ar,
64
- useGetAccessGroupQuery: wr,
65
- useGetAccessGroupSchemaQuery: Er,
66
- useGetProjectsAccessQuery: Sr
67
- } = Oe, Ks = Oe.enhanceEndpoints({
63
+ useGetStudioAccessGroupsQuery: Pr,
64
+ useGetAccessGroupsQuery: Lr,
65
+ useGetAccessGroupQuery: jr,
66
+ useGetAccessGroupSchemaQuery: Fr,
67
+ useGetProjectsAccessQuery: _r
68
+ } = Oe, Js = Oe.enhanceEndpoints({
68
69
  endpoints: {
69
70
  setProjectsAccess: {
70
71
  async onQueryStarted({ payload: t }, { dispatch: e, queryFulfilled: s }) {
@@ -116,15 +117,15 @@ const {
116
117
  }
117
118
  }
118
119
  }), {
119
- useSetProjectsAccessMutation: Pr,
120
- useSaveAccessGroupMutation: Lr,
121
- useDeleteAccessGroupMutation: jr
122
- } = Ks, Js = Ne.enhanceEndpoints({
120
+ useSetProjectsAccessMutation: Rr,
121
+ useSaveAccessGroupMutation: Gr,
122
+ useDeleteAccessGroupMutation: Cr
123
+ } = Js, Ys = Ne.enhanceEndpoints({
123
124
  endpoints: {
124
125
  executeAction: {},
125
126
  listAvailableActionsForContext: {}
126
127
  }
127
- }), Ys = Js.injectEndpoints({
128
+ }), Xs = Ys.injectEndpoints({
128
129
  endpoints: (t) => ({
129
130
  getActionsFromContext: t.query({
130
131
  queryFn: async (e, { dispatch: s }) => {
@@ -156,30 +157,30 @@ const {
156
157
  // End of endpoints
157
158
  })
158
159
  }), {
159
- useGetActionsFromContextQuery: Fr,
160
- useLazyGetActionsFromContextQuery: _r,
161
- useExecuteActionMutation: Rr,
162
- useGetActionConfigQuery: Gr,
163
- useSetActionConfigMutation: Cr
164
- } = Ys, Xs = (t, e) => e.split(".").reduce((s, n) => s && s[n] !== void 0 ? s[n] : void 0, t), Zs = (t, e) => {
160
+ useGetActionsFromContextQuery: Nr,
161
+ useLazyGetActionsFromContextQuery: Qr,
162
+ useExecuteActionMutation: Mr,
163
+ useGetActionConfigQuery: Vr,
164
+ useSetActionConfigMutation: Dr
165
+ } = Xs, Zs = (t, e) => e.split(".").reduce((s, n) => s && s[n] !== void 0 ? s[n] : void 0, t), en = (t, e) => {
165
166
  const s = e.split("."), n = s.pop(), i = s.reduce((r, a) => r && r[a] !== void 0 ? r[a] : void 0, t);
166
167
  i && n && delete i[n];
167
168
  };
168
- function en(t, e) {
169
+ function tn(t, e) {
169
170
  const s = { ...t };
170
171
  for (const [n, i] of Object.entries(e)) {
171
- const r = Xs(s, n);
172
- r !== void 0 && (s[i] = r, Zs(s, n));
172
+ const r = Zs(s, n);
173
+ r !== void 0 && (s[i] = r, en(s, n));
173
174
  }
174
175
  return s;
175
176
  }
176
- const mt = (t = [], e) => {
177
+ const bt = (t = [], e) => {
177
178
  const s = [];
178
179
  return t.forEach((n) => {
179
180
  const i = n.node;
180
181
  if (!i)
181
182
  return;
182
- const r = i, c = en(
183
+ const r = i, c = tn(
183
184
  r,
184
185
  {
185
186
  "author.name": "authorName",
@@ -195,7 +196,7 @@ const mt = (t = [], e) => {
195
196
  }
196
197
  s.push(c);
197
198
  }), { activities: s, pageInfo: e };
198
- }, tn = (t) => {
199
+ }, sn = (t) => {
199
200
  const {
200
201
  id: e,
201
202
  label: s,
@@ -222,7 +223,7 @@ const mt = (t = [], e) => {
222
223
  users: c?.map((p) => ({ name: p, avatarUrl: `/api/users/${p}/avatar` })) || [],
223
224
  path: o?.path.split("/").splice(-2, 1).join("")
224
225
  };
225
- }, sn = (t) => {
226
+ }, nn = (t) => {
226
227
  const { id: e, name: s, status: n, thumbnailId: i, author: r, updatedAt: a, product: c } = t;
227
228
  return {
228
229
  id: e,
@@ -237,7 +238,7 @@ const mt = (t = [], e) => {
237
238
  productType: c?.productType,
238
239
  path: c?.folder?.path?.split("/").pop()
239
240
  };
240
- }, nn = (t) => {
241
+ }, rn = (t) => {
241
242
  const { id: e, name: s, label: n, status: i, thumbnailId: r, thumbnailHash: a, updatedAt: c, folderType: d, parents: u } = t || {};
242
243
  return {
243
244
  id: e,
@@ -253,7 +254,7 @@ const mt = (t = [], e) => {
253
254
  users: [],
254
255
  path: u?.[u.length - 2]
255
256
  };
256
- }, rn = (t) => {
257
+ }, an = (t) => {
257
258
  const { id: e, name: s, status: n, thumbnailId: i, thumbnailHash: r, updatedAt: a, task: c } = t || {};
258
259
  return {
259
260
  id: e,
@@ -269,20 +270,20 @@ const mt = (t = [], e) => {
269
270
  users: [],
270
271
  path: c?.folder?.path?.split("/").pop()
271
272
  };
272
- }, an = (t, e) => {
273
+ }, on = (t, e) => {
273
274
  switch (e) {
274
275
  case "task":
275
- return tn(t.task);
276
+ return sn(t.task);
276
277
  case "version":
277
- return sn(t.version);
278
+ return nn(t.version);
278
279
  case "folder":
279
- return nn(t.folder);
280
+ return rn(t.folder);
280
281
  case "workfile":
281
- return rn(t.workfile);
282
+ return an(t.workfile);
282
283
  default:
283
284
  return {};
284
285
  }
285
- }, on = (t) => {
286
+ }, cn = (t) => {
286
287
  const e = t?.project?.activities?.edges?.map((a) => a?.node), s = e.map((a) => a.body), n = e.map((a) => a.activityId), i = s.reduce((a, c) => {
287
288
  if (!c) return a;
288
289
  const d = c.match(/\*\s\[\s\]/g);
@@ -293,21 +294,21 @@ const mt = (t = [], e) => {
293
294
  return a + (d ? d.length : 0);
294
295
  }, 0);
295
296
  return { total: i + r, checked: r, unChecked: i, ids: n };
296
- }, cn = (t, e = "task", s = "task") => t?.length ? [
297
+ }, dn = (t, e = "task", s = "task") => t?.length ? [
297
298
  ...t.map(({ id: n }) => ({ type: e, id: n })),
298
299
  { type: e, id: s.toUpperCase() + "S" },
299
300
  {
300
301
  type: `kanBan${s.charAt(0).toUpperCase() + s.slice(1)}`,
301
302
  id: s.toUpperCase() + "S"
302
303
  }
303
- ] : [{ type: e, id: s.toUpperCase() + "S" }], ss = (t) => {
304
+ ] : [{ type: e, id: s.toUpperCase() + "S" }], ns = (t) => {
304
305
  if (typeof t == "string") return t;
305
306
  try {
306
307
  return JSON.stringify(t) ?? "";
307
308
  } catch {
308
309
  return "";
309
310
  }
310
- }, ns = (t, e, s) => {
311
+ }, is = (t, e, s) => {
311
312
  if (!t)
312
313
  return [{ type: "activity", id: "LIST" }];
313
314
  const { entityIds: n, activityTypes: i, filter: r } = s, a = (o) => (Array.isArray(o) ? o : [o]).filter(Boolean), c = a(n), d = a(i), u = t.pages ? t.pages.flatMap((o) => o.activities) : t.activities || [];
@@ -323,7 +324,7 @@ const mt = (t = [], e) => {
323
324
  // Filtered Entity Activity Tags
324
325
  ...c.map((o) => ({
325
326
  type: "entityActivities",
326
- id: `${o}-${ss(r)}`
327
+ id: `${o}-${ns(r)}`
327
328
  })),
328
329
  // Published Version Tags
329
330
  ...u.filter((o) => o.activityType === "version.publish").map((o) => ({
@@ -354,7 +355,7 @@ const mt = (t = [], e) => {
354
355
  "subtype.change"
355
356
  ],
356
357
  checklists: ["checklist"]
357
- }, Nr = (t) => {
358
+ }, Or = (t) => {
358
359
  if (typeof t == "string")
359
360
  return t in se ? se[t] : null;
360
361
  if (t && typeof t == "object" && t.conditions) {
@@ -365,7 +366,7 @@ const mt = (t = [], e) => {
365
366
  }), s ? Array.from(new Set(e)) : se.activity;
366
367
  }
367
368
  return se.activity;
368
- }, dn = (t) => {
369
+ }, un = (t) => {
369
370
  switch (t) {
370
371
  case "task":
371
372
  return `
@@ -409,7 +410,7 @@ const mt = (t = [], e) => {
409
410
  default:
410
411
  return "";
411
412
  }
412
- }, un = (t) => `
413
+ }, ln = (t) => `
413
414
  query EntityTooltip($projectName: String!, $entityId: String!) {
414
415
  project(name: $projectName) {
415
416
  ${t}(id: $entityId) {
@@ -419,15 +420,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
419
420
  thumbnailId
420
421
  updatedAt
421
422
  thumbnailHash
422
- ${dn(t)}
423
+ ${un(t)}
423
424
  }
424
425
  }
425
426
  }
426
- `, ln = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), vt = {
427
+ `, pn = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), It = {
427
428
  task_type: "subType",
428
429
  folder_type: "subType",
429
430
  product_type: "subType"
430
- }, fe = (t) => t in vt ? vt[t] : t.startsWith("project_attributes_") ? "attrib_" + t.slice(19) : t.startsWith("inherited_attributes_") ? "attrib_" + t.slice(21) : t.startsWith("attrib_") ? t : ln(t), pn = (t) => {
431
+ }, fe = (t) => t in It ? It[t] : t.startsWith("project_attributes_") ? "attrib_" + t.slice(19) : t.startsWith("inherited_attributes_") ? "attrib_" + t.slice(21) : t.startsWith("attrib_") ? t : pn(t), fn = (t) => {
431
432
  if (Array.isArray(t)) return t;
432
433
  if (typeof t == "string") {
433
434
  const e = t.trim();
@@ -439,7 +440,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
439
440
  }
440
441
  }
441
442
  return [t];
442
- }, fn = (t) => {
443
+ }, yn = (t) => {
443
444
  if (t == null) return;
444
445
  let e = t;
445
446
  if (typeof e == "string")
@@ -452,7 +453,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
452
453
  const s = /* @__PURE__ */ new Map();
453
454
  for (const n of e) {
454
455
  if (!n || n.value == null) continue;
455
- const i = pn(n.value);
456
+ const i = fn(n.value);
456
457
  for (const r of i) {
457
458
  const a = String(r), c = s.get(a);
458
459
  s.set(a, { ...n, value: a, count: (c?.count ?? 0) + (Number(n.count) || 0) });
@@ -465,7 +466,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
465
466
  value: s,
466
467
  count: Number(n) || 0
467
468
  }));
468
- }, ge = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0), yn = (t, e) => t == null ? e ?? void 0 : e == null || t < e ? t : e, gn = (t, e) => t == null ? e ?? void 0 : e == null || t > e ? t : e, Le = (t, e) => t != null && e != null && t + e > 0 ? Math.round(t / (t + e) * 1e4) / 100 : void 0, hn = (t, e) => {
469
+ }, ge = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0), gn = (t, e) => t == null ? e ?? void 0 : e == null || t < e ? t : e, hn = (t, e) => t == null ? e ?? void 0 : e == null || t > e ? t : e, Le = (t, e) => t != null && e != null && t + e > 0 ? Math.round(t / (t + e) * 1e4) / 100 : void 0, mn = (t, e) => {
469
470
  const s = ge(t.valueFilledCount, e.valueFilledCount), n = ge(t.valueNotFilledCount, e.valueNotFilledCount), i = ge(t.checkedCount, e.checkedCount), r = ge(t.notCheckedCount, e.notCheckedCount);
470
471
  let a;
471
472
  if (t.avg != null && e.avg != null) {
@@ -484,8 +485,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
484
485
  }
485
486
  return {
486
487
  columnName: t.columnName,
487
- min: yn(t.min, e.min),
488
- max: gn(t.max, e.max),
488
+ min: gn(t.min, e.min),
489
+ max: hn(t.max, e.max),
489
490
  avg: a,
490
491
  sum: ge(t.sum, e.sum),
491
492
  valueFilledCount: s,
@@ -503,8 +504,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
503
504
  }, ke = (t) => t.map((e) => ({
504
505
  ...e,
505
506
  columnName: fe(e.columnName),
506
- distribution: fn(e.distribution)
507
- })), Ae = (t = [], e = []) => {
507
+ distribution: yn(e.distribution)
508
+ })), we = (t = [], e = []) => {
508
509
  const s = /* @__PURE__ */ new Map();
509
510
  for (const n of e) s.set(fe(n.columnName), { ...n });
510
511
  for (const n of t) {
@@ -514,20 +515,20 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
514
515
  s.set(i, r);
515
516
  }
516
517
  return [...s.values()];
517
- }, Qr = (t) => t.reduce(
518
+ }, $r = (t) => t.reduce(
518
519
  (e, s) => Math.max(e, (s.valueFilledCount ?? 0) + (s.valueNotFilledCount ?? 0)),
519
520
  0
520
- ), Mr = (t, e = []) => {
521
+ ), xr = (t, e = []) => {
521
522
  const s = /* @__PURE__ */ new Map();
522
523
  for (const i of t) s.set(fe(i.columnName), i);
523
524
  const n = new Map(s);
524
525
  for (const i of e) {
525
526
  const r = fe(i.columnName), a = s.get(r);
526
- n.set(r, a ? hn(a, i) : i);
527
+ n.set(r, a ? mn(a, i) : i);
527
528
  }
528
529
  return [...n.values()];
529
- }, is = [Hs, Ws], rs = (t, e, s) => {
530
- if (is.includes(e))
530
+ }, rs = [Ws, zs], as = (t, e, s) => {
531
+ if (rs.includes(e))
531
532
  return !0;
532
533
  if (t[e] !== void 0 && t[e] !== null)
533
534
  return t[e];
@@ -550,32 +551,32 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
550
551
  return s[r];
551
552
  }
552
553
  return !1;
553
- }, Vr = (t, e) => e.filter(
554
- (n) => !is.includes(n) && t[n]
554
+ }, Ur = (t, e) => e.filter(
555
+ (n) => !rs.includes(n) && t[n]
555
556
  ).length === 0 && e.includes("name") ? {
556
557
  ...t,
557
558
  name: !0
558
- } : t, bt = (t) => {
559
+ } : t, Tt = (t) => {
559
560
  const e = t?.targets;
560
561
  return Array.isArray(e) ? e : e ? [e] : [];
561
- }, at = (t, e, s) => {
562
+ }, ot = (t, e, s) => {
562
563
  const n = e?.[t], i = s?.[t];
563
564
  return n === "none" || i === "none" ? !1 : n != null || i != null;
564
- }, mn = (t, e, s, n) => {
565
+ }, vn = (t, e, s, n) => {
565
566
  const i = /* @__PURE__ */ new Set([
566
567
  ...Object.keys(t ?? {}),
567
568
  ...Object.keys(e ?? {})
568
569
  ]);
569
570
  for (const r of i)
570
- if (!(s && !rs(s, r, n)) && at(r, t, e))
571
+ if (!(s && !as(s, r, n)) && ot(r, t, e))
571
572
  return !0;
572
573
  return !1;
573
- }, Dr = (t, e, s, n) => e?.name === "none" && !mn(t, e, s, n), we = (t, e) => {
574
+ }, qr = (t, e, s, n) => e?.name === "none" && !vn(t, e, s, n), Ae = (t, e) => {
574
575
  if (!t) return !1;
575
576
  if (!e) return !0;
576
- const s = new Set(bt(e).map((n) => n.field));
577
- return bt(t).some((n) => !s.has(n.field));
578
- }, He = [D.Filled, D.NotFilled], vn = [
577
+ const s = new Set(Tt(e).map((n) => n.field));
578
+ return Tt(t).some((n) => !s.has(n.field));
579
+ }, We = [D.Filled, D.NotFilled], bn = [
579
580
  D.Min,
580
581
  D.Max,
581
582
  D.Avg,
@@ -586,12 +587,12 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
586
587
  D.Filled,
587
588
  D.NotFilled,
588
589
  D.Distribution
589
- ], bn = {
590
+ ], In = {
590
591
  folder: "folder_type",
591
592
  task: "task_type",
592
593
  product: "product_type",
593
594
  version: null
594
- }, Or = ({
595
+ }, Br = ({
595
596
  entity: t,
596
597
  attribs: e,
597
598
  columnVisibility: s,
@@ -600,9 +601,9 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
600
601
  columnSummaryScopes: r,
601
602
  extraFields: a = []
602
603
  }) => {
603
- const c = (y) => rs(s, y, n), d = (y) => c(y) && at(y, i, r), u = [];
604
- t === "version" ? u.push({ field: "status", aggregations: d("status") ? Y : He }) : (u.push({ field: "name", aggregations: He }), d("status") && u.push({ field: "status", aggregations: Y })), d("tags") && u.push({ field: "tags", aggregations: Y }), t === "task" && d("assignees") && u.push({ field: "assignees", aggregations: Y });
605
- const o = r?.name ?? "all", l = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", p = i?.name === "breakdown" && at("name", i, r) && l, f = bn[t];
604
+ const c = (y) => as(s, y, n), d = (y) => c(y) && ot(y, i, r), u = [];
605
+ t === "version" ? u.push({ field: "status", aggregations: d("status") ? Y : We }) : (u.push({ field: "name", aggregations: We }), d("status") && u.push({ field: "status", aggregations: Y })), d("tags") && u.push({ field: "tags", aggregations: Y }), t === "task" && d("assignees") && u.push({ field: "assignees", aggregations: Y });
606
+ const o = r?.name ?? "all", l = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", p = i?.name === "breakdown" && ot("name", i, r) && l, f = In[t];
606
607
  f && (d("subType") || p) && u.push({ field: f, aggregations: Y });
607
608
  for (const y of a)
608
609
  u.push({ field: y, aggregations: Y });
@@ -611,38 +612,38 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
611
612
  let h = `attrib.${y.name}`;
612
613
  ["folder", "task"].includes(t) && (h = `inherited_attributes.${y.name}`);
613
614
  const g = y.data?.type;
614
- g === "integer" || g === "float" ? u.push({ field: h, aggregations: vn }) : g === "string" ? u.push({ field: h, aggregations: Es(y.data) ? Y : He }) : (g === "list_of_strings" || g === "list_of_integers") && u.push({ field: h, aggregations: Y });
615
+ g === "integer" || g === "float" ? u.push({ field: h, aggregations: bn }) : g === "string" ? u.push({ field: h, aggregations: Ss(y.data) ? Y : We }) : (g === "list_of_strings" || g === "list_of_integers") && u.push({ field: h, aggregations: Y });
615
616
  }
616
617
  return u;
617
- }, It = [
618
+ }, kt = [
618
619
  D.Distribution,
619
620
  D.Filled,
620
621
  D.NotFilled
621
- ], In = {
622
+ ], Tn = {
622
623
  status: "status",
623
624
  assignees: "assignees",
624
625
  tags: "tags",
625
626
  taskType: "task_type"
626
- }, Tn = {
627
+ }, kn = {
627
628
  status: "status",
628
629
  tags: "tags",
629
630
  author: "author",
630
631
  productType: "product_type"
631
- }, $r = (t, e) => {
632
- const n = (e === "version" || e === "product" ? Tn : In)[t.id];
633
- if (n) return { field: n, aggregations: It };
632
+ }, Hr = (t, e) => {
633
+ const n = (e === "version" || e === "product" ? kn : Tn)[t.id];
634
+ if (n) return { field: n, aggregations: kt };
634
635
  if (t.id.startsWith("attrib.")) {
635
636
  const i = t.id.slice(7);
636
- return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: It };
637
+ return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: kt };
637
638
  }
638
639
  return null;
639
- }, kn = (t) => {
640
+ }, wn = (t) => {
640
641
  const e = t.indexOf(".");
641
642
  return e !== -1 ? "attrib_" + t.slice(e + 1) : fe(t);
642
- }, xr = (t, e) => {
643
+ }, Wr = (t, e) => {
643
644
  const s = /* @__PURE__ */ new Map(), n = { count: 0, percentage: 0 };
644
645
  if (!e) return { counts: s, total: 0, ungrouped: n, complete: !1 };
645
- const i = kn(e.field), r = t.find((f) => f.columnName === i), a = r?.distribution || [], c = r?.valueNotFilledCount ?? 0, d = r?.valueFilledCount ?? 0, u = !!r && (a.length > 0 || d === 0), o = a.reduce((f, y) => f + (y.count || 0), 0), l = d ? d + c : o + c;
646
+ const i = wn(e.field), r = t.find((f) => f.columnName === i), a = r?.distribution || [], c = r?.valueNotFilledCount ?? 0, d = r?.valueFilledCount ?? 0, u = !!r && (a.length > 0 || d === 0), o = a.reduce((f, y) => f + (y.count || 0), 0), l = d ? d + c : o + c;
646
647
  for (const f of a) {
647
648
  const y = f.count || 0, h = l > 0 ? Math.round(y / l * 100) : 0;
648
649
  s.set(String(f.value), { count: y, percentage: h });
@@ -660,7 +661,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
660
661
  } catch {
661
662
  return {};
662
663
  }
663
- }, Ur = R, Tt = (t) => {
664
+ }, zr = R, wt = (t) => {
664
665
  if (!t.project)
665
666
  return [];
666
667
  const e = [];
@@ -694,14 +695,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
694
695
  GetTasksByParent: {
695
696
  transformResponse: (t) => ({
696
697
  pageInfo: t?.project?.tasks?.pageInfo ?? { hasNextPage: !1, endCursor: null },
697
- tasks: Tt(t)
698
+ tasks: wt(t)
698
699
  }),
699
700
  providesTags: (t, e, { parentIds: s, projectName: n }) => ve(t?.tasks || [], n, s),
700
701
  keepUnusedDataFor: Z
701
702
  },
702
703
  GetTasksList: {
703
704
  transformResponse: (t) => ({
704
- tasks: Tt(t),
705
+ tasks: wt(t),
705
706
  pageInfo: t.project.tasks.pageInfo
706
707
  }),
707
708
  providesTags: (t, e, { projectName: s }) => ve(t?.tasks || [], s),
@@ -712,27 +713,27 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
712
713
  GetFolderColumnStats: {
713
714
  transformResponse: (t) => ke(t?.project?.folders?.fieldStats ?? []),
714
715
  serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
715
- merge: (t, e) => Ae(e, t),
716
- forceRefetch: ({ currentArg: t, previousArg: e }) => we(t, e),
716
+ merge: (t, e) => we(e, t),
717
+ forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
717
718
  providesTags: (t, e, { projectName: s }) => [{ type: "folderColumnStats", id: s }],
718
719
  keepUnusedDataFor: Z
719
720
  },
720
721
  GetTaskColumnStats: {
721
722
  transformResponse: (t) => ke(t?.project?.tasks?.fieldStats ?? []),
722
723
  serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
723
- merge: (t, e) => Ae(e, t),
724
- forceRefetch: ({ currentArg: t, previousArg: e }) => we(t, e),
724
+ merge: (t, e) => we(e, t),
725
+ forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
725
726
  providesTags: (t, e, { projectName: s }) => [{ type: "taskColumnStats", id: s }],
726
727
  keepUnusedDataFor: Z
727
728
  }
728
729
  }
729
- }), An = pt.enhanceEndpoints({
730
+ }), An = yt.enhanceEndpoints({
730
731
  endpoints: {
731
732
  searchFolders: {}
732
733
  }
733
- }), We = 100, be = {}, ze = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), wn = (t, e) => {
734
+ }), ze = 100, be = {}, Ke = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), En = (t, e) => {
734
735
  be[t] || (be[t] = /* @__PURE__ */ new Set()), e.forEach((s) => be[t].add(s));
735
- }, kt = (t) => be[t] || /* @__PURE__ */ new Set(), x = re.injectEndpoints({
736
+ }, At = (t) => be[t] || /* @__PURE__ */ new Set(), x = re.injectEndpoints({
736
737
  endpoints: (t) => ({
737
738
  // Each project has one cache for all the tasks of the expanded folders
738
739
  // Changing the expanded folders will trigger a refetch but not a new cache
@@ -744,7 +745,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
744
745
  try {
745
746
  const o = d(), l = { projectName: e, filter: n, folderFilter: i, search: r, showComments: a }, f = x.endpoints.getOverviewTasksByFolders.select(
746
747
  l
747
- )(o)?.data || [], y = ze(e, n, i, r, a), h = kt(y), g = u ? s : s.filter((E) => !h.has(E));
748
+ )(o)?.data || [], y = Ke(e, n, i, r, a), h = At(y), g = u ? s : s.filter((E) => !h.has(E));
748
749
  if (g.length === 0)
749
750
  return { data: f };
750
751
  const m = [], v = 100, b = 20, I = 10, k = 1e3, T = v * b;
@@ -782,10 +783,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
782
783
  S = C?.hasNextPage || !1, j = C?.endCursor || void 0;
783
784
  }
784
785
  }
785
- wn(y, g);
786
- const A = [...f, ...m], w = new Map(A.map((E) => [E.id, E]));
786
+ En(y, g);
787
+ const w = [...f, ...m], A = new Map(w.map((E) => [E.id, E]));
787
788
  return {
788
- data: Array.from(w.values())
789
+ data: Array.from(A.values())
789
790
  };
790
791
  } catch (o) {
791
792
  return console.error(o), { error: L(o) };
@@ -804,17 +805,17 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
804
805
  let p;
805
806
  const y = U(
806
807
  async (m, v) => {
807
- const b = kt(
808
- ze(e, n, i, r, a)
808
+ const b = At(
809
+ Ke(e, n, i, r, a)
809
810
  ), I = new Set(
810
- l().data?.map((w) => w.id) || []
811
+ l().data?.map((A) => A.id) || []
811
812
  ), k = /* @__PURE__ */ new Set(), T = [];
812
- m.filter((w) => w.project === e).filter((w) => b.has(w.summary?.parentId)).forEach((w) => {
813
- const E = w.summary?.entityId;
813
+ m.filter((A) => A.project === e).filter((A) => b.has(A.summary?.parentId)).forEach((A) => {
814
+ const E = A.summary?.entityId;
814
815
  if (!E || !I.has(E)) return;
815
- const P = w.topic?.split(".")[2]?.replace("_changed", ""), S = pe(
816
+ const P = A.topic?.split(".")[2]?.replace("_changed", ""), S = pe(
816
817
  P,
817
- w.summary,
818
+ A.summary,
818
819
  De
819
820
  );
820
821
  S ? T.push({
@@ -822,21 +823,21 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
822
823
  field: S.field,
823
824
  value: S.value
824
825
  }) : k.add(E);
825
- }), T.length && u((w) => {
826
+ }), T.length && u((A) => {
826
827
  T.forEach(({ taskId: E, field: P, value: S }) => {
827
- const j = w.find((_) => _.id === E);
828
+ const j = A.find((_) => _.id === E);
828
829
  j && Object.assign(j, { [P === "type" ? "taskType" : P]: S });
829
830
  });
830
831
  });
831
- const A = Array.from(k);
832
- if (!(!A.length || A.length > ie))
832
+ const w = Array.from(k);
833
+ if (!(!w.length || w.length > ie))
833
834
  try {
834
835
  await J();
835
836
  const E = (await o(
836
837
  re.endpoints.GetTasksList.initiate(
837
838
  {
838
839
  projectName: e,
839
- taskIds: A,
840
+ taskIds: w,
840
841
  showComments: !!a
841
842
  },
842
843
  { forceRefetch: !0 }
@@ -849,14 +850,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
849
850
  const _ = S.findIndex((G) => G.id === j.id);
850
851
  _ > -1 ? S[_] = j : S.push(j);
851
852
  }
852
- for (const j of A)
853
+ for (const j of w)
853
854
  if (!P.has(j)) {
854
855
  const _ = S.findIndex((G) => G.id === j);
855
856
  _ > -1 && S.splice(_, 1);
856
857
  }
857
858
  });
858
- } catch (w) {
859
- console.error("Realtime overview batch update failed", w);
859
+ } catch (A) {
860
+ console.error("Realtime overview batch update failed", A);
860
861
  }
861
862
  },
862
863
  (m) => `${m.project ?? e}:${m.summary?.entityId}:${m.topic}`
@@ -884,7 +885,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
884
885
  } catch {
885
886
  }
886
887
  await d, y.clear();
887
- const g = ze(e, n, i, r, a);
888
+ const g = Ke(e, n, i, r, a);
888
889
  delete be[g], p && F.unsubscribe(p), h && h();
889
890
  },
890
891
  keepUnusedDataFor: Z
@@ -946,7 +947,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
946
947
  includeFolderChildren: f !== !1
947
948
  // default to true
948
949
  };
949
- o ? (h.sortBy = o, l ? (h.before = y || void 0, h.last = We) : (h.after = y || void 0, h.first = We)) : (h.after = y || void 0, h.first = We);
950
+ o ? (h.sortBy = o, l ? (h.before = y || void 0, h.last = ze) : (h.after = y || void 0, h.first = ze)) : (h.after = y || void 0, h.first = ze);
950
951
  const g = await n.dispatch(
951
952
  re.endpoints.GetTasksList.initiate(h, { forceRefetch: !0 })
952
953
  );
@@ -993,7 +994,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
993
994
  }), h.length && i((m) => {
994
995
  h.forEach(({ taskId: v, field: b, value: I }) => {
995
996
  for (const k of m.pages) {
996
- const T = k.tasks.find((A) => A.id === v);
997
+ const T = k.tasks.find((w) => w.id === v);
997
998
  if (T) {
998
999
  Object.assign(T, { [b === "type" ? "taskType" : b]: I });
999
1000
  break;
@@ -1021,10 +1022,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1021
1022
  i((I) => {
1022
1023
  for (const k of v) {
1023
1024
  let T = !1;
1024
- for (const A of I.pages) {
1025
- const w = A.tasks.findIndex((E) => E.id === k.id);
1026
- if (w !== -1) {
1027
- A.tasks[w] = k, T = !0;
1025
+ for (const w of I.pages) {
1026
+ const A = w.tasks.findIndex((E) => E.id === k.id);
1027
+ if (A !== -1) {
1028
+ w.tasks[A] = k, T = !0;
1028
1029
  break;
1029
1030
  }
1030
1031
  }
@@ -1041,9 +1042,9 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1041
1042
  for (const k of g)
1042
1043
  if (!b.has(k))
1043
1044
  for (const T of I.pages) {
1044
- const A = T.tasks.findIndex((w) => w.id === k);
1045
- if (A !== -1) {
1046
- T.tasks.splice(A, 1);
1045
+ const w = T.tasks.findIndex((A) => A.id === k);
1046
+ if (w !== -1) {
1047
+ T.tasks.splice(w, 1);
1047
1048
  break;
1048
1049
  }
1049
1050
  }
@@ -1103,10 +1104,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1103
1104
  let m = h.filter, v = i;
1104
1105
  if (h.filter)
1105
1106
  try {
1106
- const k = JSON.parse(h.filter), T = k.conditions || [], A = T.filter((E) => !p.has(E.key)), w = T.filter((E) => p.has(E.key));
1107
- if (w.length > 0) {
1108
- m = A.length ? JSON.stringify({ ...k, conditions: A }) : void 0;
1109
- const E = i ? JSON.parse(i) : null, S = [...E && Array.isArray(E.conditions) ? E.conditions : [], ...w];
1107
+ const k = JSON.parse(h.filter), T = k.conditions || [], w = T.filter((E) => !p.has(E.key)), A = T.filter((E) => p.has(E.key));
1108
+ if (A.length > 0) {
1109
+ m = w.length ? JSON.stringify({ ...k, conditions: w }) : void 0;
1110
+ const E = i ? JSON.parse(i) : null, S = [...E && Array.isArray(E.conditions) ? E.conditions : [], ...A];
1110
1111
  v = JSON.stringify(
1111
1112
  E ? { ...E, conditions: S } : { conditions: S }
1112
1113
  );
@@ -1159,15 +1160,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1159
1160
  })
1160
1161
  })
1161
1162
  }), {
1162
- useGetOverviewTasksByFoldersQuery: qr,
1163
- useGetSearchFoldersQuery: Br,
1164
- useGetTasksListQuery: Hr,
1165
- useGetTasksListInfiniteInfiniteQuery: Wr,
1166
- useLazyGetTasksByParentQuery: zr,
1167
- useGetGroupedTasksListQuery: Kr,
1168
- useGetFolderColumnStatsQuery: Jr,
1169
- useGetTaskColumnStatsQuery: Yr
1170
- } = x, En = Q.enhanceEndpoints({
1163
+ useGetOverviewTasksByFoldersQuery: Kr,
1164
+ useGetSearchFoldersQuery: Jr,
1165
+ useGetTasksListQuery: Yr,
1166
+ useGetTasksListInfiniteInfiniteQuery: Xr,
1167
+ useLazyGetTasksByParentQuery: Zr,
1168
+ useGetGroupedTasksListQuery: ea,
1169
+ useGetFolderColumnStatsQuery: ta,
1170
+ useGetTaskColumnStatsQuery: sa
1171
+ } = x, Sn = Q.enhanceEndpoints({
1171
1172
  endpoints: {
1172
1173
  GetUpdatedAndNewFolders: {
1173
1174
  transformResponse: (t) => t.project.folders.edges.map(({ node: e }) => ({
@@ -1182,7 +1183,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1182
1183
  }))
1183
1184
  }
1184
1185
  }
1185
- }), Sn = ie, $e = pt.enhanceEndpoints({
1186
+ }), Pn = ie, $e = yt.enhanceEndpoints({
1186
1187
  endpoints: {
1187
1188
  getFolderHierarchy: {
1188
1189
  providesTags: ["hierarchy"]
@@ -1206,64 +1207,64 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1206
1207
  async (y, h) => {
1207
1208
  if (!a) return;
1208
1209
  const g = /* @__PURE__ */ new Set(), m = i().data;
1209
- m && Array.isArray(m.folders) && m.folders.forEach((A) => g.add(A.id));
1210
+ m && Array.isArray(m.folders) && m.folders.forEach((w) => g.add(w.id));
1210
1211
  const v = [], b = [], I = /* @__PURE__ */ new Map(), k = [];
1211
- y.forEach((A) => {
1212
- const w = A.summary?.entityId;
1213
- if (!w) return;
1214
- if (A.topic === "entity.folder.deleted") {
1215
- v.push(w);
1212
+ y.forEach((w) => {
1213
+ const A = w.summary?.entityId;
1214
+ if (!A) return;
1215
+ if (w.topic === "entity.folder.deleted") {
1216
+ v.push(A);
1216
1217
  return;
1217
1218
  }
1218
- if (A.topic === "entity.folder.created") {
1219
- b.push(w);
1219
+ if (w.topic === "entity.folder.created") {
1220
+ b.push(A);
1220
1221
  return;
1221
1222
  }
1222
- if (!g.has(w)) return;
1223
+ if (!g.has(A)) return;
1223
1224
  const E = pe(
1224
- d[A.topic],
1225
- A.summary,
1225
+ d[w.topic],
1226
+ w.summary,
1226
1227
  c
1227
1228
  );
1228
- if (E) k.push({ folderId: w, ...E });
1229
+ if (E) k.push({ folderId: A, ...E });
1229
1230
  else {
1230
- const P = d[A.topic];
1231
+ const P = d[w.topic];
1231
1232
  if (!P) return;
1232
- const S = I.get(w) || /* @__PURE__ */ new Set();
1233
- S.add(P), I.set(w, S);
1233
+ const S = I.get(A) || /* @__PURE__ */ new Set();
1234
+ S.add(P), I.set(A, S);
1234
1235
  }
1235
- }), v.length && n((A) => {
1236
- !A || !Array.isArray(A.folders) || (A.folders = A.folders.filter((w) => !v.includes(w.id)));
1237
- }), k.length && n((A) => {
1238
- !A || !Array.isArray(A.folders) || k.forEach(({ folderId: w, field: E, value: P }) => {
1239
- const S = A.folders.find((j) => j.id === w);
1236
+ }), v.length && n((w) => {
1237
+ !w || !Array.isArray(w.folders) || (w.folders = w.folders.filter((A) => !v.includes(A.id)));
1238
+ }), k.length && n((w) => {
1239
+ !w || !Array.isArray(w.folders) || k.forEach(({ folderId: A, field: E, value: P }) => {
1240
+ const S = w.folders.find((j) => j.id === A);
1240
1241
  S && (S[E] = P);
1241
1242
  });
1242
1243
  });
1243
1244
  const T = [.../* @__PURE__ */ new Set([...b, ...I.keys()])];
1244
- if (!(T.length > Sn) && T.length) {
1245
+ if (!(T.length > Pn) && T.length) {
1245
1246
  await J();
1246
- const A = await r(
1247
- En.endpoints.GetUpdatedAndNewFolders.initiate({
1247
+ const w = await r(
1248
+ Sn.endpoints.GetUpdatedAndNewFolders.initiate({
1248
1249
  projectName: a,
1249
1250
  folderIds: T,
1250
1251
  first: T.length
1251
1252
  })
1252
1253
  ).unwrap().catch(() => []);
1253
1254
  if (!h()) return;
1254
- const w = new Set(b);
1255
+ const A = new Set(b);
1255
1256
  n((E) => {
1256
1257
  if (!E || !Array.isArray(E.folders)) return;
1257
1258
  const P = new Map(
1258
- A.filter(Boolean).map((S) => [S.id, S])
1259
+ w.filter(Boolean).map((S) => [S.id, S])
1259
1260
  );
1260
1261
  E.folders.forEach((S, j) => {
1261
1262
  const _ = P.get(S.id);
1262
- _ && (w.has(S.id) ? E.folders[j] = { ...S, ..._ } : (I.get(S.id) || /* @__PURE__ */ new Set()).forEach((O) => {
1263
+ _ && (A.has(S.id) ? E.folders[j] = { ...S, ..._ } : (I.get(S.id) || /* @__PURE__ */ new Set()).forEach((O) => {
1263
1264
  S[O] = _[O];
1264
1265
  }), P.delete(S.id));
1265
1266
  }), P.forEach((S, j) => {
1266
- w.has(j) && E.folders.push(S);
1267
+ A.has(j) && E.folders.push(S);
1267
1268
  });
1268
1269
  });
1269
1270
  }
@@ -1297,7 +1298,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1297
1298
  }
1298
1299
  }
1299
1300
  }
1300
- }), { useGetFolderHierarchyQuery: Xr, useGetFolderListQuery: Zr } = $e, Pn = Q.enhanceEndpoints({
1301
+ }), { useGetFolderHierarchyQuery: na, useGetFolderListQuery: ia } = $e, Ln = Q.enhanceEndpoints({
1301
1302
  endpoints: {
1302
1303
  GetFolderDeleteInfo: {
1303
1304
  transformResponse: (t) => (t?.project?.folders?.edges || []).map((s) => ({
@@ -1315,7 +1316,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1315
1316
  ] : [{ type: "folder", id: "DELETE_INFO" }]
1316
1317
  }
1317
1318
  }
1318
- }), { useGetFolderDeleteInfoQuery: ea, useLazyGetFolderDeleteInfoQuery: ta } = Pn, Ln = ["task", "version", "folder", "representation"], je = ({
1319
+ }), { useGetFolderDeleteInfoQuery: ra, useLazyGetFolderDeleteInfoQuery: aa } = Ln, jn = ["task", "version", "folder", "representation"], je = ({
1319
1320
  entity: t,
1320
1321
  entityType: e,
1321
1322
  projectName: s
@@ -1448,7 +1449,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1448
1449
  representations: void 0
1449
1450
  };
1450
1451
  }
1451
- }, Ke = Q.enhanceEndpoints({
1452
+ }, Je = Q.enhanceEndpoints({
1452
1453
  endpoints: {
1453
1454
  GetDetailsPanelFolder: {
1454
1455
  transformResponse: (t, e, s) => {
@@ -1491,7 +1492,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1491
1492
  }
1492
1493
  }
1493
1494
  }
1494
- }), At = (t) => {
1495
+ }), Et = (t) => {
1495
1496
  switch (t) {
1496
1497
  case "task":
1497
1498
  return "GetDetailsPanelTask";
@@ -1502,15 +1503,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1502
1503
  case "representation":
1503
1504
  return "GetDetailsPanelRepresentation";
1504
1505
  }
1505
- }, de = Ke.injectEndpoints({
1506
+ }, de = Je.injectEndpoints({
1506
1507
  endpoints: (t) => ({
1507
1508
  getEntitiesDetailsPanel: t.query({
1508
1509
  async queryFn({ entities: e = [], entityType: s }, { dispatch: n }) {
1509
- if (!Ln.includes(s))
1510
+ if (!jn.includes(s))
1510
1511
  return { error: L("Entity type not supported", 400) };
1511
1512
  try {
1512
1513
  const i = e.map((c) => n(
1513
- Ke.endpoints[At(s)].initiate(
1514
+ Je.endpoints[Et(s)].initiate(
1514
1515
  {
1515
1516
  projectName: c.projectName,
1516
1517
  entityId: c.id
@@ -1533,10 +1534,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1533
1534
  l.forEach(({ topic: b, message: I }) => {
1534
1535
  const k = I.summary?.entityId, T = I.project;
1535
1536
  if (!k || !T) return;
1536
- const A = `${T}:${k}`;
1537
- if (!y.has(A)) return;
1538
- const w = b.split(".")[2]?.replace("_changed", ""), E = pe(
1539
- w,
1537
+ const w = `${T}:${k}`;
1538
+ if (!y.has(w)) return;
1539
+ const A = b.split(".")[2]?.replace("_changed", ""), E = pe(
1540
+ A,
1540
1541
  I.summary,
1541
1542
  De
1542
1543
  );
@@ -1545,16 +1546,16 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1545
1546
  projectName: T,
1546
1547
  field: E.field,
1547
1548
  value: E.value
1548
- }) : h.set(A, { id: k, projectName: T });
1549
+ }) : h.set(w, { id: k, projectName: T });
1549
1550
  }), g.length && s((b) => {
1550
- g.forEach(({ id: I, projectName: k, field: T, value: A }) => {
1551
- const w = b.find(
1551
+ g.forEach(({ id: I, projectName: k, field: T, value: w }) => {
1552
+ const A = b.find(
1552
1553
  (E) => E.id === I && E.projectName === k
1553
1554
  );
1554
- w && (Object.assign(w, {
1555
- ...T === "status" || T === "tags" ? { [T]: A } : {},
1556
- ...T === "type" ? { entitySubType: A } : {}
1557
- }), T === "assignees" && w.task && (w.task.assignees = A), T === "type" && w.task && (w.task.taskType = A));
1555
+ A && (Object.assign(A, {
1556
+ ...T === "status" || T === "tags" ? { [T]: w } : {},
1557
+ ...T === "type" ? { entitySubType: w } : {}
1558
+ }), T === "assignees" && A.task && (A.task.assignees = w), T === "type" && A.task && (A.task.taskType = w));
1558
1559
  });
1559
1560
  });
1560
1561
  const m = Array.from(h.values());
@@ -1565,7 +1566,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1565
1566
  m.map(async (b) => {
1566
1567
  try {
1567
1568
  const I = await r(
1568
- Ke.endpoints[At(e)].initiate(
1569
+ Je.endpoints[Et(e)].initiate(
1569
1570
  {
1570
1571
  projectName: b.projectName,
1571
1572
  entityId: b.id
@@ -1632,7 +1633,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1632
1633
  ]
1633
1634
  })
1634
1635
  })
1635
- }), { useGetEntitiesDetailsPanelQuery: sa, useLazyGetEntitiesDetailsPanelQuery: na } = de, jn = `
1636
+ }), { useGetEntitiesDetailsPanelQuery: oa, useLazyGetEntitiesDetailsPanelQuery: ca } = de, Fn = `
1636
1637
  fragment taskTileFragment on TaskNode {
1637
1638
  id
1638
1639
  name
@@ -1649,7 +1650,7 @@ fragment taskTileFragment on TaskNode {
1649
1650
  path
1650
1651
  }
1651
1652
  }
1652
- `, Fn = `
1653
+ `, _n = `
1653
1654
  fragment versionTileFragment on VersionNode {
1654
1655
  id
1655
1656
  name: product {
@@ -1673,7 +1674,7 @@ fragment versionTileFragment on VersionNode {
1673
1674
  }
1674
1675
  version
1675
1676
  }
1676
- `, _n = `
1677
+ `, Rn = `
1677
1678
  fragment productTileFragment on ProductNode {
1678
1679
  id
1679
1680
  name
@@ -1689,7 +1690,7 @@ fragment productTileFragment on ProductNode {
1689
1690
  path
1690
1691
  }
1691
1692
  }
1692
- `, Rn = `
1693
+ `, Gn = `
1693
1694
  fragment folderTileFragment on FolderNode {
1694
1695
  id
1695
1696
  name
@@ -1702,7 +1703,7 @@ fragment folderTileFragment on FolderNode {
1702
1703
  path: parent {
1703
1704
  path
1704
1705
  }
1705
- }`, Gn = (t) => `
1706
+ }`, Cn = (t) => `
1706
1707
  query EventTile($projectName: String!, $id: String!) {
1707
1708
  project(name: $projectName) {
1708
1709
  ${t}(id: $id) {
@@ -1713,7 +1714,7 @@ fragment folderTileFragment on FolderNode {
1713
1714
  }
1714
1715
  }
1715
1716
  }
1716
- `, Cn = (t) => {
1717
+ `, Nn = (t) => {
1717
1718
  let s = `
1718
1719
  query EntityTiles($projectName: String!) {
1719
1720
  project(name: $projectName) {
@@ -1732,23 +1733,23 @@ fragment folderTileFragment on FolderNode {
1732
1733
  }
1733
1734
  `;
1734
1735
  const n = {
1735
- folder: Rn,
1736
- product: _n,
1737
- version: Fn,
1738
- task: jn
1736
+ folder: Gn,
1737
+ product: Rn,
1738
+ version: _n,
1739
+ task: Fn
1739
1740
  };
1740
1741
  for (const i in t)
1741
1742
  s += n[i];
1742
1743
  return s;
1743
1744
  };
1744
- function as(t) {
1745
+ function os(t) {
1745
1746
  if (typeof t != "object" || t === null)
1746
1747
  return t;
1747
1748
  let e = Object.keys(t);
1748
1749
  if (e.length > 0)
1749
- return as(t[e[0]]);
1750
+ return os(t[e[0]]);
1750
1751
  }
1751
- const Nn = (t, e) => {
1752
+ const Qn = (t, e) => {
1752
1753
  if (Array.isArray(e)) {
1753
1754
  const n = {};
1754
1755
  for (const i of e)
@@ -1763,18 +1764,18 @@ const Nn = (t, e) => {
1763
1764
  }
1764
1765
  for (const n of s) {
1765
1766
  for (const i in n)
1766
- n[i] && (Array.isArray(n[i]) ? n[i] = n[i][0] : typeof n[i] == "object" && (n[i] = as(Object.values(n[i])[0])), n.type === "version" && i === "version" && (n[i] = "v" + n[i].toString().padStart(3, "0")));
1767
+ n[i] && (Array.isArray(n[i]) ? n[i] = n[i][0] : typeof n[i] == "object" && (n[i] = os(Object.values(n[i])[0])), n.type === "version" && i === "version" && (n[i] = "v" + n[i].toString().padStart(3, "0")));
1767
1768
  n.thumbnailEntityType = n.type, n.type === "product" && (n.thumbnailEntityId = n.latestVersion.thumbnailEntityId, n.thumbnailId = n.latestVersion.thumbnailId, n.thumbnailEntityType = "version");
1768
1769
  }
1769
1770
  return s;
1770
- }, Qn = Q.injectEndpoints({
1771
+ }, Mn = Q.injectEndpoints({
1771
1772
  endpoints: (t) => ({
1772
1773
  getEventTile: t.query({
1773
1774
  query: ({ projectName: e, id: s, type: n }) => ({
1774
1775
  url: "/graphql",
1775
1776
  method: "POST",
1776
1777
  body: {
1777
- query: Gn(n),
1778
+ query: Cn(n),
1778
1779
  variables: { projectName: e, id: s }
1779
1780
  }
1780
1781
  }),
@@ -1785,11 +1786,11 @@ const Nn = (t, e) => {
1785
1786
  url: "/graphql",
1786
1787
  method: "POST",
1787
1788
  body: {
1788
- query: Cn(s),
1789
+ query: Nn(s),
1789
1790
  variables: { projectName: e }
1790
1791
  }
1791
1792
  }),
1792
- transformResponse: (e, s, { entities: n }) => Nn(e.data?.project, n)
1793
+ transformResponse: (e, s, { entities: n }) => Qn(e.data?.project, n)
1793
1794
  }),
1794
1795
  getEntity: t.query({
1795
1796
  query: ({ projectName: e, entityType: s, entityId: n }) => ({
@@ -1799,17 +1800,17 @@ const Nn = (t, e) => {
1799
1800
  })
1800
1801
  }),
1801
1802
  overrideExisting: !0
1802
- }), me = Qn.enhanceEndpoints({
1803
+ }), me = Mn.enhanceEndpoints({
1803
1804
  endpoints: {
1804
1805
  GetProductVersions: {}
1805
1806
  }
1806
1807
  }), {
1807
- useGetEventTileQuery: ia,
1808
- useGetEntityTilesQuery: ra,
1809
- useGetEntityQuery: aa,
1810
- useLazyGetEntityQuery: oa,
1811
- useGetProductVersionsQuery: ca,
1812
- useGetSearchedEntitiesInfiniteQuery: da
1808
+ useGetEventTileQuery: da,
1809
+ useGetEntityTilesQuery: ua,
1810
+ useGetEntityQuery: la,
1811
+ useLazyGetEntityQuery: pa,
1812
+ useGetProductVersionsQuery: fa,
1813
+ useGetSearchedEntitiesInfiniteQuery: ya
1813
1814
  } = me, ee = Se.enhanceEndpoints({
1814
1815
  endpoints: {
1815
1816
  getProject: {
@@ -1827,7 +1828,7 @@ const Nn = (t, e) => {
1827
1828
  providesTags: (t, e, { projectName: s }) => [{ type: "project", id: s }]
1828
1829
  }
1829
1830
  }
1830
- }), { useGetProjectQuery: ua, useListProjectsQuery: la, useGetProjectAnatomyQuery: pa } = ee, wt = 2e3, Et = Q.enhanceEndpoints({
1831
+ }), { useGetProjectQuery: ga, useListProjectsQuery: ha, useGetProjectAnatomyQuery: ma } = ee, St = 2e3, Pt = Q.enhanceEndpoints({
1831
1832
  endpoints: {
1832
1833
  GetProjects: {
1833
1834
  transformResponse: (t) => ({
@@ -1839,17 +1840,17 @@ const Nn = (t, e) => {
1839
1840
  })
1840
1841
  }
1841
1842
  }
1842
- }), ft = Et.injectEndpoints({
1843
+ }), gt = Pt.injectEndpoints({
1843
1844
  endpoints: (t) => ({
1844
1845
  getProjectsInfinite: t.infiniteQuery({
1845
1846
  infiniteQueryOptions: {
1846
- initialPageParam: { cursor: "", first: wt },
1847
+ initialPageParam: { cursor: "", first: St },
1847
1848
  getNextPageParam: (e) => {
1848
1849
  const { pageInfo: s } = e;
1849
1850
  if (!(!s.hasNextPage || !s.endCursor))
1850
1851
  return {
1851
1852
  cursor: s.endCursor,
1852
- first: wt
1853
+ first: St
1853
1854
  };
1854
1855
  }
1855
1856
  },
@@ -1860,7 +1861,7 @@ const Nn = (t, e) => {
1860
1861
  after: s?.cursor || void 0,
1861
1862
  first: s?.first
1862
1863
  }, r = await n.dispatch(
1863
- Et.endpoints.GetProjects.initiate(i, { forceRefetch: !0 })
1864
+ Pt.endpoints.GetProjects.initiate(i, { forceRefetch: !0 })
1864
1865
  );
1865
1866
  if (r.error) throw r.error;
1866
1867
  return {
@@ -1888,7 +1889,7 @@ const Nn = (t, e) => {
1888
1889
  })
1889
1890
  }),
1890
1891
  overrideExisting: !0
1891
- }), { useGetProjectsInfiniteInfiniteQuery: fa } = ft, Je = (t, e) => {
1892
+ }), { useGetProjectsInfiniteInfiniteQuery: va } = gt, Ye = (t, e) => {
1892
1893
  for (const [s, n] of Object.entries(e)) {
1893
1894
  if (s === "attrib" && n && typeof n == "object" && !Array.isArray(n)) {
1894
1895
  t.attrib = {
@@ -1899,7 +1900,7 @@ const Nn = (t, e) => {
1899
1900
  }
1900
1901
  t[s] = n;
1901
1902
  }
1902
- }, Mn = ee.enhanceEndpoints({
1903
+ }, Vn = ee.enhanceEndpoints({
1903
1904
  endpoints: {
1904
1905
  deployProject: {
1905
1906
  invalidatesTags: () => [
@@ -1934,20 +1935,20 @@ const Nn = (t, e) => {
1934
1935
  s(
1935
1936
  ee.util.updateQueryData("listProjects", { active: !0 }, (r) => {
1936
1937
  const a = r.find((c) => c.name === t);
1937
- a && Je(a, e);
1938
+ a && Ye(a, e);
1938
1939
  })
1939
1940
  ),
1940
1941
  s(
1941
1942
  ee.util.updateQueryData("listProjects", { active: void 0 }, (r) => {
1942
1943
  const a = r.find((c) => c.name === t);
1943
- a && Je(a, e);
1944
+ a && Ye(a, e);
1944
1945
  })
1945
1946
  ),
1946
1947
  s(
1947
- ft.util.updateQueryData("getProjectsInfinite", {}, (r) => {
1948
+ gt.util.updateQueryData("getProjectsInfinite", {}, (r) => {
1948
1949
  for (const a of r.pages) {
1949
1950
  const c = a.projects.find((d) => d.name === t);
1950
- c && Je(c, e);
1951
+ c && Ye(c, e);
1951
1952
  }
1952
1953
  })
1953
1954
  )
@@ -1967,21 +1968,21 @@ const Nn = (t, e) => {
1967
1968
  }
1968
1969
  }
1969
1970
  }), {
1970
- useDeployProjectMutation: ya,
1971
- useDeleteProjectMutation: ga,
1972
- useSetProjectAnatomyMutation: ha,
1973
- useUpdateProjectMutation: ma,
1974
- useSetProjectBundleMutation: va
1975
- } = Mn, Vn = (t) => {
1971
+ useDeployProjectMutation: ba,
1972
+ useDeleteProjectMutation: Ia,
1973
+ useSetProjectAnatomyMutation: Ta,
1974
+ useUpdateProjectMutation: ka,
1975
+ useSetProjectBundleMutation: wa
1976
+ } = Vn, Dn = (t) => {
1976
1977
  try {
1977
1978
  return JSON.parse(t);
1978
1979
  } catch {
1979
1980
  return {};
1980
1981
  }
1981
- }, Dn = (t) => Object.keys(t), St = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
1982
+ }, On = (t) => Object.keys(t), Lt = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
1982
1983
  const n = e.label || e.name, i = s.label || s.name;
1983
1984
  return n.localeCompare(i);
1984
- }), Pt = (t, e, s) => t?.length ? [
1985
+ }), jt = (t, e, s) => t?.length ? [
1985
1986
  { type: "kanBanTask", id: "LIST" },
1986
1987
  ...t.flatMap(({ id: n, projectName: i, assignees: r = [] }) => [
1987
1988
  { type: "task", id: n },
@@ -1993,14 +1994,14 @@ const Nn = (t, e) => {
1993
1994
  })),
1994
1995
  { type: "kanban", id: JSON.stringify(s) }
1995
1996
  ])
1996
- ] : [{ type: "kanBanTask", id: "LIST" }], os = async ({
1997
+ ] : [{ type: "kanBanTask", id: "LIST" }], cs = async ({
1997
1998
  projects: t = [],
1998
1999
  taskIds: e = []
1999
2000
  }, s) => {
2000
2001
  try {
2001
2002
  t = t ?? [], e = e ?? [];
2002
2003
  const n = await s(
2003
- yt.endpoints.GetKanbanTasks.initiate(
2004
+ ht.endpoints.GetKanbanTasks.initiate(
2004
2005
  { projects: t, taskIds: e },
2005
2006
  { forceRefetch: !0 }
2006
2007
  )
@@ -2011,44 +2012,44 @@ const Nn = (t, e) => {
2011
2012
  } catch (n) {
2012
2013
  return console.error(n), [];
2013
2014
  }
2014
- }, yt = Q.enhanceEndpoints({
2015
+ }, ht = Q.enhanceEndpoints({
2015
2016
  endpoints: {
2016
2017
  GetKanban: {
2017
- transformResponse: St,
2018
- providesTags: Pt,
2018
+ transformResponse: Lt,
2019
+ providesTags: jt,
2019
2020
  async onCacheEntryAdded(t = {}, { updateCachedData: e, cacheDataLoaded: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) {
2020
2021
  let a, c;
2021
2022
  const u = U(
2022
2023
  async (o, l) => {
2023
2024
  const p = Array.isArray(t?.projects) ? t.projects : [], f = Array.isArray(t?.assignees) ? t.assignees : [], y = r().data ?? [], h = new Set(y.map((T) => `${T.projectName}:${T.id}`)), g = /* @__PURE__ */ new Map(), m = [];
2024
- o.forEach(({ topic: T, message: A }) => {
2025
- const w = A.project;
2026
- if (!w || !p.includes(w)) return;
2027
- const E = A.summary?.entityId;
2025
+ o.forEach(({ topic: T, message: w }) => {
2026
+ const A = w.project;
2027
+ if (!A || !p.includes(A)) return;
2028
+ const E = w.summary?.entityId;
2028
2029
  if (!E) return;
2029
2030
  const P = T.split(".")[2]?.replace("_changed", ""), S = pe(
2030
2031
  P,
2031
- A.summary,
2032
+ w.summary,
2032
2033
  De
2033
2034
  );
2034
2035
  if (!S) return;
2035
- const j = `${w}:${E}`, _ = h.has(j), G = S.value, O = S.field === "assignees" && G.some(($) => f.includes($));
2036
+ const j = `${A}:${E}`, _ = h.has(j), G = S.value, O = S.field === "assignees" && G.some(($) => f.includes($));
2036
2037
  if (!(!_ && !O)) {
2037
2038
  if (!_) {
2038
- g.set(j, { taskId: E, project: w });
2039
+ g.set(j, { taskId: E, project: A });
2039
2040
  return;
2040
2041
  }
2041
2042
  m.push({
2042
2043
  taskId: E,
2043
- project: w,
2044
+ project: A,
2044
2045
  field: S.field,
2045
2046
  value: S.value
2046
2047
  });
2047
2048
  }
2048
2049
  }), m.length && e((T) => {
2049
- m.forEach(({ taskId: A, project: w, field: E, value: P }) => {
2050
+ m.forEach(({ taskId: w, project: A, field: E, value: P }) => {
2050
2051
  const S = T.find(
2051
- (j) => j.id === A && j.projectName === w
2052
+ (j) => j.id === w && j.projectName === A
2052
2053
  );
2053
2054
  if (S && (Object.assign(S, { [E === "type" ? "taskType" : E]: P }), E === "assignees" && f.length > 0 && !P.some((j) => f.includes(j)))) {
2054
2055
  const j = T.indexOf(S);
@@ -2059,7 +2060,7 @@ const Nn = (t, e) => {
2059
2060
  const v = Array.from(g.values());
2060
2061
  if (!v.length || v.length > ie) return;
2061
2062
  await J();
2062
- const b = await os(
2063
+ const b = await cs(
2063
2064
  {
2064
2065
  projects: [...new Set(v.map(({ project: T }) => T))],
2065
2066
  taskIds: [...new Set(v.map(({ taskId: T }) => T))]
@@ -2068,17 +2069,17 @@ const Nn = (t, e) => {
2068
2069
  );
2069
2070
  if (!l()) return;
2070
2071
  const I = b.filter(
2071
- (T) => !f.length || (T.assignees ?? []).some((A) => f.includes(A))
2072
+ (T) => !f.length || (T.assignees ?? []).some((w) => f.includes(w))
2072
2073
  ), k = b.filter(
2073
- (T) => f.length > 0 && !(T.assignees ?? []).some((A) => f.includes(A))
2074
+ (T) => f.length > 0 && !(T.assignees ?? []).some((w) => f.includes(w))
2074
2075
  );
2075
2076
  e((T) => {
2076
- I.forEach((A) => {
2077
- const w = T.findIndex((E) => E.id === A.id);
2078
- w === -1 ? T.push(A) : T[w] = A;
2079
- }), k.forEach((A) => {
2080
- const w = T.findIndex((E) => E.id === A.id);
2081
- w !== -1 && T.splice(w, 1);
2077
+ I.forEach((w) => {
2078
+ const A = T.findIndex((E) => E.id === w.id);
2079
+ A === -1 ? T.push(w) : T[A] = w;
2080
+ }), k.forEach((w) => {
2081
+ const A = T.findIndex((E) => E.id === w.id);
2082
+ A !== -1 && T.splice(A, 1);
2082
2083
  });
2083
2084
  });
2084
2085
  },
@@ -2125,14 +2126,14 @@ const Nn = (t, e) => {
2125
2126
  // same query as GetKanban but for specific tasks
2126
2127
  // used mainly for patching tasks into the kanban cache
2127
2128
  GetKanbanTasks: {
2128
- transformResponse: St,
2129
- providesTags: Pt
2129
+ transformResponse: Lt,
2130
+ providesTags: jt
2130
2131
  },
2131
2132
  // get all users on all selected projects
2132
2133
  GetKanbanProjectUsers: {
2133
2134
  transformResponse: (t, e, { projects: s } = {}) => t.users.edges.map(({ node: n }) => {
2134
- const i = Vn(n.accessGroups);
2135
- let a = !n.isManager && !n.isAdmin ? Dn(i) : s;
2135
+ const i = Dn(n.accessGroups);
2136
+ let a = !n.isManager && !n.isAdmin ? On(i) : s;
2136
2137
  (typeof a == "string" || !a) && (a = []);
2137
2138
  const c = `/api/users/${n.name}/avatar`;
2138
2139
  return {
@@ -2148,7 +2149,7 @@ const Nn = (t, e) => {
2148
2149
  ] : [{ type: "user", id: "LIST" }]
2149
2150
  }
2150
2151
  }
2151
- }), { useGetKanbanQuery: ba, useGetKanbanProjectUsersQuery: Ia } = yt, Ie = yt.injectEndpoints({
2152
+ }), { useGetKanbanQuery: Aa, useGetKanbanProjectUsersQuery: Ea } = ht, Ie = ht.injectEndpoints({
2152
2153
  endpoints: (t) => ({
2153
2154
  getProjectsInfo: t.query({
2154
2155
  async queryFn({ projects: e = [], anatomy: s = !0 }, { dispatch: n }) {
@@ -2176,7 +2177,7 @@ const Nn = (t, e) => {
2176
2177
  providesTags: (e, s, { projects: n }) => n.map((i) => ({ type: "project", id: i }))
2177
2178
  })
2178
2179
  })
2179
- }), { useGetProjectsInfoQuery: Ta } = Ie, On = (t, e) => {
2180
+ }), { useGetProjectsInfoQuery: Sa } = Ie, $n = (t, e) => {
2180
2181
  const s = {
2181
2182
  name: t.name,
2182
2183
  attrib: t.attrib,
@@ -2223,11 +2224,11 @@ const Nn = (t, e) => {
2223
2224
  ...s
2224
2225
  };
2225
2226
  }
2226
- }, cs = (t = [], e) => {
2227
+ }, ds = (t = [], e) => {
2227
2228
  const s = t.find((c) => c.entityId === e.id), n = s?.data;
2228
2229
  if (!n || s.entityType === "product" || s.entityType === "workfile")
2229
2230
  return console.warn("No operation data found or entity type not supported");
2230
- const i = On(n, s.entityType);
2231
+ const i = $n(n, s.entityType);
2231
2232
  if (s.entityType === "folder" && n.name && e.path) {
2232
2233
  const c = e.path.split("/");
2233
2234
  c[c.length - 1] = n.name, i.path = c.join("/");
@@ -2259,14 +2260,14 @@ const Nn = (t, e) => {
2259
2260
  }
2260
2261
  };
2261
2262
  Object.assign(e, a);
2262
- }, ds = (t, {
2263
+ }, us = (t, {
2263
2264
  state: e,
2264
2265
  dispatch: s
2265
2266
  }, n) => {
2266
2267
  const i = t.map((a) => ({
2267
2268
  type: "entities",
2268
2269
  id: a.entityId
2269
- })), r = Ss.util.selectInvalidatedBy(e, i);
2270
+ })), r = Ps.util.selectInvalidatedBy(e, i);
2270
2271
  for (const a of r)
2271
2272
  if (a.endpointName === "getEntitiesDetailsPanel") {
2272
2273
  const c = s(
@@ -2275,13 +2276,13 @@ const Nn = (t, e) => {
2275
2276
  a.originalArgs,
2276
2277
  (d) => {
2277
2278
  for (const u of d)
2278
- cs(t, u);
2279
+ ds(t, u);
2279
2280
  }
2280
2281
  )
2281
2282
  );
2282
2283
  c && n?.push(c);
2283
2284
  }
2284
- }, Ye = ({ assignees: t, projects: e }, { newAssignees: s, taskId: n, data: i, taskData: r }, { dispatch: a }) => {
2285
+ }, Xe = ({ assignees: t, projects: e }, { newAssignees: s, taskId: n, data: i, taskData: r }, { dispatch: a }) => {
2285
2286
  let c = !1;
2286
2287
  return [a(
2287
2288
  Ie.util.updateQueryData(
@@ -2298,7 +2299,7 @@ const Nn = (t, e) => {
2298
2299
  }
2299
2300
  )
2300
2301
  ), c];
2301
- }, $n = ({
2302
+ }, xn = ({
2302
2303
  operations: t,
2303
2304
  state: e,
2304
2305
  dispatch: s,
@@ -2341,7 +2342,7 @@ const Nn = (t, e) => {
2341
2342
  } catch (a) {
2342
2343
  return console.error(a), s(Q.util.invalidateTags(i)), [];
2343
2344
  }
2344
- }, us = me.injectEndpoints({
2345
+ }, ls = me.injectEndpoints({
2345
2346
  endpoints: (t) => ({
2346
2347
  updateEntity: t.mutation({
2347
2348
  query: ({ projectName: e, entityId: s, data: n, entityType: i }) => ({
@@ -2359,16 +2360,16 @@ const Nn = (t, e) => {
2359
2360
  if (r === "task") {
2360
2361
  const p = d(), f = p.dashboard?.selectedProjects || [], y = p.dashboard?.tasks?.assignees || [], h = p.dashboard?.tasks?.assigneesFilter === "me", g = n.assignees, m = h ? p.user?.name ? [p.user.name] : [] : y, b = [.../* @__PURE__ */ new Set([...i, ...g || []])].some((S) => m.includes(S)), I = f.some((S) => S === e);
2361
2362
  if (b && I) {
2362
- const [S, j] = Ye(
2363
+ const [S, j] = Xe(
2363
2364
  { assignees: m, projects: f },
2364
2365
  { newAssignees: g, taskId: s, data: n },
2365
2366
  { dispatch: a }
2366
2367
  );
2367
- j && o.push(S), j || os({ projects: [e], taskIds: [s] }, a).then(
2368
+ j && o.push(S), j || cs({ projects: [e], taskIds: [s] }, a).then(
2368
2369
  // use .then so that the rest of the code can run
2369
2370
  (_) => {
2370
2371
  let G = _.find((O) => O.id === s);
2371
- G && (G = { ...G, assignees: g ?? G.assignees }, Ye(
2372
+ G && (G = { ...G, assignees: g ?? G.assignees }, Xe(
2372
2373
  { assignees: m, projects: f },
2373
2374
  { newAssignees: g, taskId: s, taskData: G },
2374
2375
  { dispatch: a }
@@ -2395,10 +2396,10 @@ const Nn = (t, e) => {
2395
2396
  ])
2396
2397
  );
2397
2398
  }
2398
- const A = Ie.util.selectInvalidatedBy(u, T).filter((S) => S.endpointName === "GetKanban");
2399
- let w = [];
2400
- for (const S of A) {
2401
- const [j, _] = Ye(
2399
+ const w = Ie.util.selectInvalidatedBy(u, T).filter((S) => S.endpointName === "GetKanban");
2400
+ let A = [];
2401
+ for (const S of w) {
2402
+ const [j, _] = Xe(
2402
2403
  {
2403
2404
  assignees: S.originalArgs.assignees,
2404
2405
  projects: S.originalArgs.projects
@@ -2410,23 +2411,23 @@ const Nn = (t, e) => {
2410
2411
  },
2411
2412
  { dispatch: a }
2412
2413
  );
2413
- _ ? o.push(j) : w.push(S);
2414
+ _ ? o.push(j) : A.push(S);
2414
2415
  }
2415
2416
  const E = { projects: f, assignees: m };
2416
- w = w.filter(
2417
+ A = A.filter(
2417
2418
  (S) => JSON.stringify(S.originalArgs) !== JSON.stringify(E)
2418
2419
  );
2419
- const P = A.map((S) => ({
2420
+ const P = w.map((S) => ({
2420
2421
  type: "kanban",
2421
2422
  id: JSON.stringify(S.originalArgs)
2422
2423
  }));
2423
2424
  l.push(...P);
2424
2425
  }
2425
- ds([{ entityId: s, data: n, entityType: r }], { state: u, dispatch: a }, o);
2426
+ us([{ entityId: s, data: n, entityType: r }], { state: u, dispatch: a }, o);
2426
2427
  try {
2427
2428
  await c, l.length && a(Ie.util.invalidateTags(l));
2428
2429
  } catch (p) {
2429
- es.error(Ps(p) || "Failed to update task"), o.forEach((f) => f?.undo());
2430
+ ts.error(Ls(p) || "Failed to update task"), o.forEach((f) => f?.undo());
2430
2431
  }
2431
2432
  }
2432
2433
  }),
@@ -2436,7 +2437,7 @@ const Nn = (t, e) => {
2436
2437
  const r = i(), a = [];
2437
2438
  for (const { projectName: p, data: f, id: y, currentAssignees: h = [] } of e) {
2438
2439
  const g = n(
2439
- us.endpoints.updateEntity.initiate({
2440
+ ls.endpoints.updateEntity.initiate({
2440
2441
  projectName: p,
2441
2442
  entityId: y,
2442
2443
  data: f,
@@ -2447,7 +2448,7 @@ const Nn = (t, e) => {
2447
2448
  a.push(g);
2448
2449
  }
2449
2450
  let c = [];
2450
- (s === "task" || s === "folder") && (c = $n({ operations: e, state: r, dispatch: n, entityType: s }));
2451
+ (s === "task" || s === "folder") && (c = xn({ operations: e, state: r, dispatch: n, entityType: s }));
2451
2452
  const d = [], u = e.map((p) => ({ ...p, entityId: p.id }));
2452
2453
  return (s === "task" || s === "folder") && (s === "task" && Ee(u, { state: r, dispatch: n }, d), s === "folder" && (qe(u, { state: r, dispatch: n }, d), console.log("invalidate overview folders"), n(me.util.invalidateTags([{ type: "folder", id: "LIST" }])), n(
2453
2454
  me.util.invalidateTags(
@@ -2473,7 +2474,7 @@ const Nn = (t, e) => {
2473
2474
  })
2474
2475
  }),
2475
2476
  overrideExisting: !0
2476
- }), { useUpdateEntitiesMutation: ka, useUpdateEntityMutation: Aa } = us, Lt = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], xn = async ({
2477
+ }), { useUpdateEntitiesMutation: Pa, useUpdateEntityMutation: La } = ls, Ft = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], Un = async ({
2477
2478
  dispatch: t,
2478
2479
  projectName: e,
2479
2480
  updatedTaskIds: s,
@@ -2511,7 +2512,7 @@ const Nn = (t, e) => {
2511
2512
  } catch (i) {
2512
2513
  return console.error("Background entity refetch failed:", i), null;
2513
2514
  }
2514
- }, Un = async ({
2515
+ }, qn = async ({
2515
2516
  dispatch: t,
2516
2517
  projectName: e,
2517
2518
  updatedTaskIds: s,
@@ -2543,40 +2544,40 @@ const Nn = (t, e) => {
2543
2544
  } catch (i) {
2544
2545
  return console.error("Background overview tasks refetch failed:", i), null;
2545
2546
  }
2546
- }, ls = "version", qn = { type: ls, id: "LIST" }, ps = "product", gt = { type: ps, id: "LIST" }, Xe = {
2547
- version: { type: ls, list: qn },
2548
- product: { type: ps, list: gt }
2547
+ }, ps = "version", Bn = { type: ps, id: "LIST" }, fs = "product", mt = { type: fs, id: "LIST" }, Ze = {
2548
+ version: { type: ps, list: Bn },
2549
+ product: { type: fs, list: mt }
2549
2550
  }, W = (t, e) => t ? [
2550
2551
  ...t.map(
2551
- (s) => ({ type: Xe[e].type, id: s.id })
2552
+ (s) => ({ type: Ze[e].type, id: s.id })
2552
2553
  ),
2553
- Xe[e].list
2554
- ] : [Xe[e].list], fs = (t) => {
2554
+ Ze[e].list
2555
+ ] : [Ze[e].list], ys = (t) => {
2555
2556
  const e = W(t, "version"), s = W(
2556
2557
  t.map((n) => n.product).filter((n) => !!n),
2557
2558
  "product"
2558
2559
  );
2559
2560
  return [...e, ...s];
2560
- }, xe = (t) => t ? fs(t.versions) : W(void 0, "version"), Bn = (t) => t ? fs(Kn(t)) : W(void 0, "version"), Hn = (t) => {
2561
- if (!t) return [gt, ...W(void 0, "product")];
2562
- const e = Jn(t), s = W(e, "product"), n = W(
2561
+ }, xe = (t) => t ? ys(t.versions) : W(void 0, "version"), Hn = (t) => t ? ys(Jn(t)) : W(void 0, "version"), Wn = (t) => {
2562
+ if (!t) return [mt, ...W(void 0, "product")];
2563
+ const e = Yn(t), s = W(e, "product"), n = W(
2563
2564
  e.map((i) => i.featuredVersion).filter((i) => !!i),
2564
2565
  "version"
2565
2566
  );
2566
2567
  return [...s, ...n];
2567
- }, Wn = (t) => {
2568
- if (!t) return [gt, ...W(void 0, "product")];
2568
+ }, zn = (t) => {
2569
+ if (!t) return [mt, ...W(void 0, "product")];
2569
2570
  const e = W(t.products, "product"), s = W(
2570
2571
  t.products.map((n) => n.featuredVersion).filter((n) => !!n),
2571
2572
  "version"
2572
2573
  );
2573
2574
  return [...e, ...s];
2574
- }, zn = (t) => {
2575
+ }, Kn = (t) => {
2575
2576
  const e = [];
2576
2577
  for (const { node: s } of t)
2577
2578
  Math.sign(s.version) !== -1 && e.push(s);
2578
2579
  return e;
2579
- }, Kn = (t) => t ? t.pages.flatMap((e) => e.versions) : [], Jn = (t) => t ? t.pages.flatMap((e) => e.products) : [], ys = (t) => {
2580
+ }, Jn = (t) => t ? t.pages.flatMap((e) => e.versions) : [], Yn = (t) => t ? t.pages.flatMap((e) => e.products) : [], gs = (t) => {
2580
2581
  const e = R(t.allAttrib), s = t.task ? {
2581
2582
  ...t.task,
2582
2583
  attrib: R(t.task.allAttrib),
@@ -2595,10 +2596,10 @@ const Nn = (t, e) => {
2595
2596
  task: s,
2596
2597
  product: n
2597
2598
  };
2598
- }, jt = (t) => {
2599
- const e = t.project.versions.pageInfo, n = zn(t.project.versions.edges).map((i) => ys(i));
2599
+ }, _t = (t) => {
2600
+ const e = t.project.versions.pageInfo, n = Kn(t.project.versions.edges).map((i) => gs(i));
2600
2601
  return { pageInfo: e, versions: n };
2601
- }, Yn = (t) => t.featuredVersion ? ys({
2602
+ }, Xn = (t) => t.featuredVersion ? gs({
2602
2603
  ...t.featuredVersion,
2603
2604
  product: {
2604
2605
  id: t.id,
@@ -2609,7 +2610,7 @@ const Nn = (t, e) => {
2609
2610
  allAttrib: t.folder.allAttrib
2610
2611
  }
2611
2612
  }
2612
- }) : null, Xn = (t) => {
2613
+ }) : null, Zn = (t) => {
2613
2614
  const e = t.project.products.pageInfo, s = t.project.products.edges.map((n) => {
2614
2615
  const i = n.node, r = R(i.allAttrib), a = {
2615
2616
  ...i.folder,
@@ -2623,11 +2624,11 @@ const Nn = (t, e) => {
2623
2624
  attrib: r,
2624
2625
  folder: a,
2625
2626
  versions: d,
2626
- featuredVersion: Yn(i)
2627
+ featuredVersion: Xn(i)
2627
2628
  };
2628
2629
  });
2629
2630
  return { pageInfo: e, products: s };
2630
- }, Ft = (t) => {
2631
+ }, Rt = (t) => {
2631
2632
  try {
2632
2633
  const e = t.match(/:\s*({.*})$/);
2633
2634
  if (!e)
@@ -2642,7 +2643,7 @@ const Nn = (t, e) => {
2642
2643
  return t.split(":")[0] || t;
2643
2644
  }
2644
2645
  }, K = 10;
2645
- function gs(t, e, s, n) {
2646
+ function hs(t, e, s, n) {
2646
2647
  for (let i = 0; i < t.length; i++) {
2647
2648
  const r = e[s], a = t[i][s];
2648
2649
  if (n ? r > a : r < a)
@@ -2650,7 +2651,7 @@ function gs(t, e, s, n) {
2650
2651
  }
2651
2652
  return t.length;
2652
2653
  }
2653
- function Zn(t, e, s, n, i, r) {
2654
+ function ei(t, e, s, n, i, r) {
2654
2655
  for (const a of t) {
2655
2656
  const c = a[n], d = c.findIndex((u) => u.id === e);
2656
2657
  if (d !== -1) {
@@ -2659,7 +2660,7 @@ function Zn(t, e, s, n, i, r) {
2659
2660
  }
2660
2661
  }
2661
2662
  if (s && t.length > 0) {
2662
- const a = t[0][n], c = gs(a, s, i, r);
2663
+ const a = t[0][n], c = hs(a, s, i, r);
2663
2664
  a.splice(c, 0, s);
2664
2665
  }
2665
2666
  }
@@ -2678,10 +2679,10 @@ function Qe(t, e, s, n, i, r = !0) {
2678
2679
  return t[c] = e, !0;
2679
2680
  if (!r) return !1;
2680
2681
  }
2681
- const a = gs(t, e, n, i);
2682
+ const a = hs(t, e, n, i);
2682
2683
  return t.splice(a, 0, e), !0;
2683
2684
  }
2684
- function ei(t, e, s, n, i) {
2685
+ function ti(t, e, s, n, i) {
2685
2686
  if (s)
2686
2687
  for (const r of t)
2687
2688
  Qe(r.versions, e, !0, n, i, !1);
@@ -2695,20 +2696,20 @@ const z = Q.enhanceEndpoints({
2695
2696
  endpoints: {
2696
2697
  // used by both stacked and non-stacked views
2697
2698
  GetVersions: {
2698
- transformResponse: jt,
2699
+ transformResponse: _t,
2699
2700
  providesTags: xe,
2700
2701
  keepUnusedDataFor: K
2701
2702
  },
2702
2703
  // used by getVersionsByProducts only
2703
2704
  GetVersionsByProductId: {
2704
- transformResponse: jt,
2705
+ transformResponse: _t,
2705
2706
  providesTags: xe,
2706
2707
  keepUnusedDataFor: K
2707
2708
  },
2708
2709
  // used by getProductsInfinite only
2709
2710
  GetProducts: {
2710
- transformResponse: Xn,
2711
- providesTags: Wn,
2711
+ transformResponse: Zn,
2712
+ providesTags: zn,
2712
2713
  keepUnusedDataFor: K
2713
2714
  },
2714
2715
  // footer stats: `targets` excluded from cache key + responses merged,
@@ -2716,21 +2717,21 @@ const z = Q.enhanceEndpoints({
2716
2717
  GetProductsColumnStats: {
2717
2718
  transformResponse: (t) => ke(t?.project?.products?.fieldStats ?? []),
2718
2719
  serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
2719
- merge: (t, e) => Ae(e, t),
2720
- forceRefetch: ({ currentArg: t, previousArg: e }) => we(t, e),
2720
+ merge: (t, e) => we(e, t),
2721
+ forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
2721
2722
  providesTags: (t, e, { projectName: s }) => [{ type: "productColumnStats", id: s }],
2722
2723
  keepUnusedDataFor: K
2723
2724
  },
2724
2725
  GetVersionsColumnStats: {
2725
2726
  transformResponse: (t) => ke(t?.project?.versions?.fieldStats ?? []),
2726
2727
  serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
2727
- merge: (t, e) => Ae(e, t),
2728
- forceRefetch: ({ currentArg: t, previousArg: e }) => we(t, e),
2728
+ merge: (t, e) => we(e, t),
2729
+ forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
2729
2730
  providesTags: (t, e, { projectName: s }) => [{ type: "versionColumnStats", id: s }],
2730
2731
  keepUnusedDataFor: K
2731
2732
  }
2732
2733
  }
2733
- }), ae = 250, _t = 1e3, ti = 10, si = ["status", "tags"];
2734
+ }), ae = 250, Gt = 1e3, si = 10, ni = ["status", "tags"];
2734
2735
  function Fe(t, e, s) {
2735
2736
  const i = U(
2736
2737
  async (a, c) => {
@@ -2749,7 +2750,7 @@ function Fe(t, e, s) {
2749
2750
  o.add(g);
2750
2751
  continue;
2751
2752
  }
2752
- const I = pe(b, h.summary, si);
2753
+ const I = pe(b, h.summary, ni);
2753
2754
  if (!I) {
2754
2755
  l.add(g);
2755
2756
  continue;
@@ -2854,7 +2855,7 @@ const N = z.injectEndpoints({
2854
2855
  return console.error("Error in getVersionsInfiniteQuery queryFn:", i), { error: L(i) };
2855
2856
  }
2856
2857
  },
2857
- providesTags: Bn,
2858
+ providesTags: Hn,
2858
2859
  // Subscribes to version entity changes and updates cache accordingly
2859
2860
  // Handles: create, update, delete operations
2860
2861
  onCacheEntryAdded: async (e, { getCacheEntry: s, updateCachedData: n, cacheEntryRemoved: i, dispatch: r }) => {
@@ -2921,11 +2922,11 @@ const N = z.injectEndpoints({
2921
2922
  }
2922
2923
  if (p)
2923
2924
  for (const g of p)
2924
- ei(
2925
+ ti(
2925
2926
  y.pages,
2926
2927
  g,
2927
2928
  e.latestPerFolder === !0 && f?.has(g.id) === !0,
2928
- e.sortBy || "createdAt",
2929
+ He(e.sortBy) || "createdAt",
2929
2930
  e.desc || !1
2930
2931
  );
2931
2932
  }
@@ -2945,7 +2946,7 @@ const N = z.injectEndpoints({
2945
2946
  ...a,
2946
2947
  productIds: [p]
2947
2948
  };
2948
- return r ? (f && (y.before = f), y.last = _t) : (f && (y.after = f), y.first = _t), s(
2949
+ return r ? (f && (y.before = f), y.last = Gt) : (f && (y.after = f), y.first = Gt), s(
2949
2950
  z.endpoints.GetVersionsByProductId.initiate(y, {
2950
2951
  forceRefetch: n
2951
2952
  })
@@ -2954,7 +2955,7 @@ const N = z.injectEndpoints({
2954
2955
  for (let p = 0; p < u.length; p++) {
2955
2956
  const f = u[p], y = i[p];
2956
2957
  if (f.status === "rejected") {
2957
- console.error(`Error fetching versions for product ${y}:`, f.reason), l.push({ productId: y, error: Ft(f.reason) });
2958
+ console.error(`Error fetching versions for product ${y}:`, f.reason), l.push({ productId: y, error: Rt(f.reason) });
2958
2959
  continue;
2959
2960
  }
2960
2961
  const h = f.value;
@@ -2962,14 +2963,14 @@ const N = z.injectEndpoints({
2962
2963
  console.error(`Error fetching versions for product ${y}:`, h.error), l.push({
2963
2964
  productId: y,
2964
2965
  // @ts-expect-error - message
2965
- error: Ft(h.error?.message || "Unknown error")
2966
+ error: Rt(h.error?.message || "Unknown error")
2966
2967
  });
2967
2968
  continue;
2968
2969
  }
2969
2970
  if (!h.data) continue;
2970
2971
  o.push(...h.data.versions);
2971
2972
  let g = h.data.pageInfo, m = 1;
2972
- for (; g && m < ti; ) {
2973
+ for (; g && m < si; ) {
2973
2974
  const v = r ? g.hasPreviousPage : g.hasNextPage, b = g.endCursor;
2974
2975
  if (!v || !b) break;
2975
2976
  const I = await c(y, b);
@@ -3052,7 +3053,7 @@ const N = z.injectEndpoints({
3052
3053
  f.versions,
3053
3054
  y,
3054
3055
  e.latestPerFolder === !0 && p?.has(y.id) === !0,
3055
- e.sortBy || "createdAt",
3056
+ He(e.sortBy) || "createdAt",
3056
3057
  e.desc || !1
3057
3058
  );
3058
3059
  });
@@ -3105,7 +3106,7 @@ const N = z.injectEndpoints({
3105
3106
  return console.error("Error in getProductsInfiniteQuery queryFn:", r), { error: L(r) };
3106
3107
  }
3107
3108
  },
3108
- providesTags: Hn,
3109
+ providesTags: Wn,
3109
3110
  // Subscribes to product entity changes and updates cache accordingly
3110
3111
  // Handles: create, update, delete operations
3111
3112
  // Often triggered together with version changes (new product + version)
@@ -3145,12 +3146,12 @@ const N = z.injectEndpoints({
3145
3146
  (g.data?.products || []).map((b) => [b.id, b])
3146
3147
  );
3147
3148
  f.forEach((b) => {
3148
- Zn(
3149
+ ei(
3149
3150
  m.pages,
3150
3151
  b,
3151
3152
  v.get(b),
3152
3153
  "products",
3153
- e.sortBy || "createdAt",
3154
+ He(e.sortBy) || "createdAt",
3154
3155
  e.desc || !1
3155
3156
  );
3156
3157
  });
@@ -3195,11 +3196,11 @@ const N = z.injectEndpoints({
3195
3196
  const I = b.featuredVersion?.id;
3196
3197
  if (I) {
3197
3198
  if (f && f.some((k) => k.entityId === I && k.parentId === b.id) && p.add(b.id), y)
3198
- for (const { entityId: k, field: T, value: A, parentId: w } of y)
3199
- b.id === w && I === k && b.featuredVersion && (b.featuredVersion[T] = A);
3199
+ for (const { entityId: k, field: T, value: w, parentId: A } of y)
3200
+ b.id === A && I === k && b.featuredVersion && (b.featuredVersion[T] = w);
3200
3201
  if (h)
3201
- for (const { entityId: k, allAttrib: T, parsedAttrib: A } of h)
3202
- I === k && b.featuredVersion && (b.featuredVersion.allAttrib = T, b.featuredVersion.attrib = A);
3202
+ for (const { entityId: k, allAttrib: T, parsedAttrib: w } of h)
3203
+ I === k && b.featuredVersion && (b.featuredVersion.allAttrib = T, b.featuredVersion.attrib = w);
3203
3204
  if (g)
3204
3205
  for (const k of g)
3205
3206
  I === k.id && b.featuredVersion && (b.featuredVersion = k);
@@ -3242,7 +3243,7 @@ const N = z.injectEndpoints({
3242
3243
  try {
3243
3244
  const v = [];
3244
3245
  for (const k of s) {
3245
- const T = k.count || 500, A = {
3246
+ const T = k.count || 500, w = {
3246
3247
  projectName: e,
3247
3248
  // base filters
3248
3249
  productFilter: r,
@@ -3261,30 +3262,30 @@ const N = z.injectEndpoints({
3261
3262
  hasReviewables: g,
3262
3263
  group: k.value
3263
3264
  };
3264
- l ? A.last = T : A.first = T;
3265
- const w = m.dispatch(
3265
+ l ? w.last = T : w.first = T;
3266
+ const A = m.dispatch(
3266
3267
  z.endpoints.GetVersions.initiate(
3267
- A,
3268
+ w,
3268
3269
  {
3269
3270
  forceRefetch: !0
3270
3271
  }
3271
3272
  )
3272
3273
  );
3273
- v.push(w);
3274
+ v.push(A);
3274
3275
  }
3275
3276
  const b = await Promise.all(v), I = [];
3276
3277
  for (const k of b) {
3277
3278
  if (k.error) throw k.error;
3278
- const T = k.originalArgs?.group, A = k.data?.pageInfo?.hasNextPage || k.data?.pageInfo?.hasPreviousPage || !1, w = k.data?.versions.map((E, P, S) => ({
3279
+ const T = k.originalArgs?.group, w = k.data?.pageInfo?.hasNextPage || k.data?.pageInfo?.hasPreviousPage || !1, A = k.data?.versions.map((E, P, S) => ({
3279
3280
  ...E,
3280
3281
  groups: [
3281
3282
  {
3282
3283
  value: T,
3283
- hasNextPage: P === S.length - 1 && A ? T : void 0
3284
+ hasNextPage: P === S.length - 1 && w ? T : void 0
3284
3285
  }
3285
3286
  ]
3286
3287
  })) || [];
3287
- I.push(...w);
3288
+ I.push(...A);
3288
3289
  }
3289
3290
  return {
3290
3291
  data: {
@@ -3367,15 +3368,15 @@ const N = z.injectEndpoints({
3367
3368
  })
3368
3369
  })
3369
3370
  }), {
3370
- useGetVersionsQuery: wa,
3371
- useGetProductsColumnStatsQuery: Ea,
3372
- useGetVersionsColumnStatsQuery: Sa
3371
+ useGetVersionsQuery: ja,
3372
+ useGetProductsColumnStatsQuery: Fa,
3373
+ useGetVersionsColumnStatsQuery: _a
3373
3374
  } = z, {
3374
- useGetVersionsInfiniteInfiniteQuery: Pa,
3375
- useGetVersionsByProductsQuery: La,
3376
- useGetProductsInfiniteInfiniteQuery: ja,
3377
- useGetGroupedVersionsListQuery: Fa
3378
- } = N, Rt = (t) => [
3375
+ useGetVersionsInfiniteInfiniteQuery: Ra,
3376
+ useGetVersionsByProductsQuery: Ga,
3377
+ useGetProductsInfiniteInfiniteQuery: Ca,
3378
+ useGetGroupedVersionsListQuery: Na
3379
+ } = N, Ct = (t) => [
3379
3380
  { type: "version", id: "LIST" },
3380
3381
  ...t.map((e) => ({ type: "version", id: e.entityId }))
3381
3382
  ], _e = (t, e) => {
@@ -3386,26 +3387,26 @@ const N = z.injectEndpoints({
3386
3387
  ...s.attrib,
3387
3388
  ...e.attrib
3388
3389
  }), s;
3389
- }, hs = (t, e) => {
3390
+ }, ms = (t, e) => {
3390
3391
  e.data && (Object.entries(e.data).forEach(([s, n]) => {
3391
3392
  s !== "attrib" && (t[s] = n);
3392
3393
  }), e.data.attrib && (t.attrib = { ...t.attrib, ...e.data.attrib }));
3393
- }, Gt = (t, e) => {
3394
+ }, Nt = (t, e) => {
3394
3395
  t.forEach((s) => {
3395
3396
  [s.task, s.product, s.product?.folder].forEach((i) => {
3396
3397
  if (!i) return;
3397
3398
  const r = e.get(i.id);
3398
- r && hs(i, r);
3399
+ r && ms(i, r);
3399
3400
  });
3400
3401
  });
3401
- }, Ct = (t, e) => {
3402
+ }, Qt = (t, e) => {
3402
3403
  t.forEach((s) => {
3403
3404
  const n = s.folder;
3404
3405
  if (!n) return;
3405
3406
  const i = e.get(n.id);
3406
- i && hs(n, i);
3407
+ i && ms(n, i);
3407
3408
  });
3408
- }, ni = (t, {
3409
+ }, ii = (t, {
3409
3410
  state: e,
3410
3411
  dispatch: s
3411
3412
  }, n) => {
@@ -3427,7 +3428,7 @@ const N = z.injectEndpoints({
3427
3428
  a.originalArgs,
3428
3429
  (d) => {
3429
3430
  for (const u of d.pages)
3430
- Gt(u.versions, i);
3431
+ Nt(u.versions, i);
3431
3432
  }
3432
3433
  )
3433
3434
  );
@@ -3439,7 +3440,7 @@ const N = z.injectEndpoints({
3439
3440
  a.originalArgs,
3440
3441
  (d) => {
3441
3442
  for (const u of d.pages)
3442
- Ct(u.products, i);
3443
+ Qt(u.products, i);
3443
3444
  }
3444
3445
  )
3445
3446
  );
@@ -3449,7 +3450,7 @@ const N = z.injectEndpoints({
3449
3450
  N.util.updateQueryData(
3450
3451
  a.endpointName,
3451
3452
  a.originalArgs,
3452
- (d) => Gt(d.versions, i)
3453
+ (d) => Nt(d.versions, i)
3453
3454
  )
3454
3455
  );
3455
3456
  n?.push(c);
@@ -3458,17 +3459,17 @@ const N = z.injectEndpoints({
3458
3459
  N.util.updateQueryData(
3459
3460
  a.endpointName,
3460
3461
  a.originalArgs,
3461
- (d) => Ct(d.products, i)
3462
+ (d) => Qt(d.products, i)
3462
3463
  )
3463
3464
  );
3464
3465
  n?.push(c);
3465
3466
  }
3466
- }, ii = (t, {
3467
+ }, ri = (t, {
3467
3468
  state: e,
3468
3469
  dispatch: s
3469
3470
  }, n) => {
3470
3471
  if (!t.length) return;
3471
- const i = Rt(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((d) => d.type === "delete").map((d) => d.entityId));
3472
+ const i = Ct(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((d) => d.type === "delete").map((d) => d.entityId));
3472
3473
  for (const d of r)
3473
3474
  if (d.endpointName === "getVersionsInfinite") {
3474
3475
  const u = s(
@@ -3555,11 +3556,11 @@ const N = z.injectEndpoints({
3555
3556
  n?.push(u);
3556
3557
  }
3557
3558
  const c = t.filter((d) => d.type !== "delete");
3558
- c.length > 0 && s(N.util.invalidateTags(Rt(c)));
3559
- }, Nt = (t) => [
3559
+ c.length > 0 && s(N.util.invalidateTags(Ct(c)));
3560
+ }, Mt = (t) => [
3560
3561
  { type: "product", id: "LIST" },
3561
3562
  ...t.map((e) => ({ type: "product", id: e.entityId }))
3562
- ], ri = (t, e) => {
3563
+ ], ai = (t, e) => {
3563
3564
  const s = { ...t };
3564
3565
  return Object.keys(e).forEach((n) => {
3565
3566
  n !== "attrib" && e[n] !== void 0 && (s[n] = e[n]);
@@ -3567,12 +3568,12 @@ const N = z.injectEndpoints({
3567
3568
  ...s.attrib,
3568
3569
  ...e.attrib
3569
3570
  }), s;
3570
- }, ai = (t, {
3571
+ }, oi = (t, {
3571
3572
  state: e,
3572
3573
  dispatch: s
3573
3574
  }, n) => {
3574
3575
  if (!t.length) return;
3575
- const i = Nt(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((u) => u.type === "delete").map((u) => u.entityId)), c = (u) => {
3576
+ const i = Mt(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((u) => u.type === "delete").map((u) => u.entityId)), c = (u) => {
3576
3577
  for (let o = u.length - 1; o >= 0; o--)
3577
3578
  a.has(u[o].product?.id) && u.splice(o, 1);
3578
3579
  };
@@ -3590,7 +3591,7 @@ const N = z.injectEndpoints({
3590
3591
  const y = p.products[f], h = t.find(
3591
3592
  (g) => g.entityId === y.id && g.type !== "delete"
3592
3593
  );
3593
- h?.data && (p.products[f] = ri(y, h.data));
3594
+ h?.data && (p.products[f] = ai(y, h.data));
3594
3595
  }
3595
3596
  }
3596
3597
  }
@@ -3622,7 +3623,7 @@ const N = z.injectEndpoints({
3622
3623
  n?.push(o);
3623
3624
  }
3624
3625
  const d = t.filter((u) => u.type !== "delete");
3625
- d.length > 0 && s(N.util.invalidateTags(Nt(d)));
3626
+ d.length > 0 && s(N.util.invalidateTags(Mt(d)));
3626
3627
  }, Ue = (t, e) => {
3627
3628
  if (Object.keys(e).forEach((s) => {
3628
3629
  s === "attrib" || s === "links" || s === "deleteLinks" || (t[s] = e[s]);
@@ -3642,7 +3643,7 @@ const N = z.injectEndpoints({
3642
3643
  t.links = t.links.filter((i) => i.id !== n);
3643
3644
  });
3644
3645
  }
3645
- }, oi = (t) => [
3646
+ }, ci = (t) => [
3646
3647
  { type: "overviewTask", id: "LIST" },
3647
3648
  ...t.map((e) => ({ type: "overviewTask", id: e.entityId })),
3648
3649
  // we also add the projectName so that tasks that do not exist in the cache can still invalidate
@@ -3650,21 +3651,21 @@ const N = z.injectEndpoints({
3650
3651
  type: "overviewTask",
3651
3652
  id: e.data?.projectName
3652
3653
  }))
3653
- ], ci = (t) => [
3654
+ ], di = (t) => [
3654
3655
  ...t.map((e) => ({ type: "folder", id: e.entityId })),
3655
3656
  // we also add the projectName so that tasks that do not exist in the cache can still invalidate
3656
3657
  ...t.filter((e) => e.data?.projectName).map((e) => ({
3657
3658
  type: "folder",
3658
3659
  id: e.data?.projectName
3659
3660
  }))
3660
- ], di = (t, e, s) => ({
3661
+ ], ui = (t, e, s) => ({
3661
3662
  entityId: t,
3662
3663
  entityType: e,
3663
3664
  type: "update",
3664
3665
  data: { deleteLinks: s }
3665
- }), _a = (t, e) => t.map(
3666
- (s) => di(s.entityId, s.entityType, e)
3667
- ), Ra = (t, {
3666
+ }), Qa = (t, e) => t.map(
3667
+ (s) => ui(s.entityId, s.entityType, e)
3668
+ ), Ma = (t, {
3668
3669
  state: e,
3669
3670
  dispatch: s
3670
3671
  }, n) => {
@@ -3674,7 +3675,7 @@ const N = z.injectEndpoints({
3674
3675
  state: e,
3675
3676
  dispatch: s
3676
3677
  }, n) => {
3677
- const i = oi(t), r = x.util.selectInvalidatedBy(e, i), a = new Set(
3678
+ const i = ci(t), r = x.util.selectInvalidatedBy(e, i), a = new Set(
3678
3679
  t.filter((d) => d.type === "delete" && d.entityId).map((d) => d.entityId)
3679
3680
  ), c = (d) => {
3680
3681
  for (let u = d.length - 1; u >= 0; u--)
@@ -3720,12 +3721,12 @@ const N = z.injectEndpoints({
3720
3721
  );
3721
3722
  n?.push(u);
3722
3723
  }
3723
- }, Ze = /* @__PURE__ */ new Map(), Qt = (t, e, s) => {
3724
- const n = `${e}:${s.join()}`, i = Ze.get(n);
3725
- i && clearTimeout(i), Ze.set(
3724
+ }, et = /* @__PURE__ */ new Map(), Vt = (t, e, s) => {
3725
+ const n = `${e}:${s.join()}`, i = et.get(n);
3726
+ i && clearTimeout(i), et.set(
3726
3727
  n,
3727
3728
  setTimeout(() => {
3728
- Ze.delete(n), t(
3729
+ et.delete(n), t(
3729
3730
  x.util.invalidateTags(s.map((r) => ({ type: r, id: e })))
3730
3731
  );
3731
3732
  }, 500)
@@ -3734,7 +3735,7 @@ const N = z.injectEndpoints({
3734
3735
  state: e,
3735
3736
  dispatch: s
3736
3737
  }, n) => {
3737
- const i = $e.util.selectInvalidatedBy(e, ci(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
3738
+ const i = $e.util.selectInvalidatedBy(e, di(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
3738
3739
  t.filter((a) => a.type === "delete" && a.entityId).map((a) => a.entityId)
3739
3740
  );
3740
3741
  for (const a of i) {
@@ -3762,7 +3763,7 @@ const N = z.injectEndpoints({
3762
3763
  );
3763
3764
  n?.push(c);
3764
3765
  }
3765
- }, ui = (t, {
3766
+ }, li = (t, {
3766
3767
  state: e,
3767
3768
  dispatch: s
3768
3769
  }, n) => {
@@ -3791,23 +3792,23 @@ const N = z.injectEndpoints({
3791
3792
  );
3792
3793
  n?.push(d);
3793
3794
  }
3794
- }, Mt = (t) => t.reduce(
3795
+ }, Dt = (t) => t.reduce(
3795
3796
  (e, s) => (e[s.type].push(s), e),
3796
3797
  {
3797
3798
  create: [],
3798
3799
  update: [],
3799
3800
  delete: []
3800
3801
  }
3801
- ), Vt = Ls.enhanceEndpoints({
3802
+ ), Ot = js.enhanceEndpoints({
3802
3803
  endpoints: {
3803
3804
  operations: {}
3804
3805
  }
3805
- }), li = Vt.injectEndpoints({
3806
+ }), pi = Ot.injectEndpoints({
3806
3807
  endpoints: (t) => ({
3807
3808
  updateOverviewEntities: t.mutation({
3808
3809
  async queryFn(e, { dispatch: s }) {
3809
3810
  try {
3810
- const n = await s(Vt.endpoints.operations.initiate(e));
3811
+ const n = await s(Ot.endpoints.operations.initiate(e));
3811
3812
  if (n.error)
3812
3813
  return { error: L(n.error) };
3813
3814
  const i = n.data, r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
@@ -3845,23 +3846,23 @@ const N = z.injectEndpoints({
3845
3846
  }
3846
3847
  ), u = a(), o = [];
3847
3848
  if (d.task?.length) {
3848
- const { delete: v, update: b } = Mt(d.task), I = b.filter(
3849
+ const { delete: v, update: b } = Dt(d.task), I = b.filter(
3849
3850
  (k) => !s.some((T) => T.entityId === k.entityId)
3850
3851
  );
3851
3852
  Ee([...I, ...v], { state: u, dispatch: i }, o);
3852
3853
  }
3853
3854
  if (d.folder?.length) {
3854
- const { delete: v, update: b } = Mt(d.folder), I = b.filter(
3855
+ const { delete: v, update: b } = Dt(d.folder), I = b.filter(
3855
3856
  (k) => !s.some((T) => T.entityId === k.entityId)
3856
3857
  );
3857
3858
  qe([...I, ...v], { state: u, dispatch: i }, o);
3858
3859
  }
3859
3860
  const l = s.filter((v) => v.entityType === "task"), p = s.filter((v) => v.entityType === "folder");
3860
- l.length && Ee(l, { state: u, dispatch: i }, o), p.length && qe(p, { state: u, dispatch: i }, o), ni(
3861
+ l.length && Ee(l, { state: u, dispatch: i }, o), p.length && qe(p, { state: u, dispatch: i }, o), ii(
3861
3862
  [...c, ...s],
3862
3863
  { state: u, dispatch: i },
3863
3864
  o
3864
- ), ui([...c, ...s], { state: u, dispatch: i }, o), d.version?.length && ii(d.version, { state: u, dispatch: i }, o), d.product?.length && ai(d.product, { state: u, dispatch: i }, o);
3865
+ ), li([...c, ...s], { state: u, dispatch: i }, o), d.version?.length && ri(d.version, { state: u, dispatch: i }, o), d.product?.length && oi(d.product, { state: u, dispatch: i }, o);
3865
3866
  const f = c.map((v) => ({
3866
3867
  id: v.entityId,
3867
3868
  type: v.entityType
@@ -3883,7 +3884,7 @@ const N = z.injectEndpoints({
3883
3884
  v.originalArgs,
3884
3885
  (I) => {
3885
3886
  for (const k of I)
3886
- cs(c, k);
3887
+ ds(c, k);
3887
3888
  }
3888
3889
  )
3889
3890
  );
@@ -3892,35 +3893,35 @@ const N = z.injectEndpoints({
3892
3893
  try {
3893
3894
  await r;
3894
3895
  const v = d.task || [], b = d.folder || [], I = d.version || [], k = d.product || [];
3895
- if (n && ((v.length || b.length) && Qt(i, n, [
3896
+ if (n && ((v.length || b.length) && Vt(i, n, [
3896
3897
  "folderColumnStats",
3897
3898
  "taskColumnStats",
3898
3899
  "entityListItemsColumnStats"
3899
- ]), (I.length || k.length) && Qt(i, n, [
3900
+ ]), (I.length || k.length) && Vt(i, n, [
3900
3901
  "productColumnStats",
3901
3902
  "versionColumnStats",
3902
3903
  "entityListItemsColumnStats"
3903
3904
  ])), v.length === 0 && b.length === 0)
3904
3905
  return;
3905
- const T = Lt(v), A = Lt(b), w = T.map((P) => ({ type: "overviewTask", id: P })), E = x.util.selectInvalidatedBy(u, w).filter((P) => P.endpointName === "getTasksListInfinite");
3906
+ const T = Ft(v), w = Ft(b), A = T.map((P) => ({ type: "overviewTask", id: P })), E = x.util.selectInvalidatedBy(u, A).filter((P) => P.endpointName === "getTasksListInfinite");
3906
3907
  if (T.length > 0 && n) {
3907
3908
  for (const S of E)
3908
- await xn({
3909
+ await Un({
3909
3910
  dispatch: i,
3910
3911
  projectName: n,
3911
3912
  updatedTaskIds: T,
3912
3913
  cacheEntry: S
3913
3914
  });
3914
- const P = x.util.selectInvalidatedBy(u, w).filter((S) => S.endpointName === "getOverviewTasksByFolders");
3915
+ const P = x.util.selectInvalidatedBy(u, A).filter((S) => S.endpointName === "getOverviewTasksByFolders");
3915
3916
  for (const S of P)
3916
- await Un({
3917
+ await qn({
3917
3918
  dispatch: i,
3918
3919
  projectName: n,
3919
3920
  updatedTaskIds: T,
3920
3921
  cacheEntry: S
3921
3922
  });
3922
3923
  }
3923
- A.length > 0 && n && i($e.util.invalidateTags([{ type: "folder", id: "LIST" }]));
3924
+ w.length > 0 && n && i($e.util.invalidateTags([{ type: "folder", id: "LIST" }]));
3924
3925
  } catch {
3925
3926
  for (const b of o)
3926
3927
  b.undo();
@@ -3952,24 +3953,24 @@ const N = z.injectEndpoints({
3952
3953
  }
3953
3954
  })
3954
3955
  })
3955
- }), { useUpdateOverviewEntitiesMutation: Ga } = li, Dt = (t) => {
3956
+ }), { useUpdateOverviewEntitiesMutation: Va } = pi, ct = (t) => {
3956
3957
  if (t)
3957
3958
  return t.label;
3958
- }, Ot = {
3959
+ }, $t = {
3959
3960
  folder: "GetFoldersLinks",
3960
3961
  task: "GetTasksLinks",
3961
3962
  product: "GetProductsLinks",
3962
3963
  version: "GetVersionsLinks",
3963
3964
  representation: "GetRepresentationsLinks",
3964
3965
  workfile: "GetWorkfilesLinks"
3965
- }, $t = {
3966
+ }, xt = {
3966
3967
  folder: "folders",
3967
3968
  task: "tasks",
3968
3969
  product: "products",
3969
3970
  version: "versions",
3970
3971
  representation: "representations",
3971
3972
  workfile: "workfiles"
3972
- }, le = pt.injectEndpoints({
3973
+ }, le = yt.injectEndpoints({
3973
3974
  endpoints: (t) => ({
3974
3975
  getEntityLinks: t.query({
3975
3976
  queryFn: async ({ projectName: e, entityIds: s, entityType: n }, { getState: i, dispatch: r, queryCacheKey: a, forced: c }) => {
@@ -3977,9 +3978,9 @@ const N = z.injectEndpoints({
3977
3978
  const d = i(), u = JSON.stringify({ projectName: e, entityType: n }), l = d.restApi?.queries?.[a || `getEntityLinks(${u})`]?.data || [], p = new Set(l.map((v) => v.id)), f = s.filter((v) => !p?.has(v) || c);
3978
3979
  if (f.length === 0)
3979
3980
  return { data: l };
3980
- const y = Ot[n], h = $t[n];
3981
+ const y = $t[n], h = xt[n];
3981
3982
  return { data: (await r(
3982
- V.endpoints[y].initiate(
3983
+ M.endpoints[y].initiate(
3983
3984
  { projectName: e, entityIds: f },
3984
3985
  { forceRefetch: !0 }
3985
3986
  )
@@ -4001,7 +4002,7 @@ const N = z.injectEndpoints({
4001
4002
  node: {
4002
4003
  id: I.node.id,
4003
4004
  name: I.node.name,
4004
- label: Dt(I.node),
4005
+ label: ct(I.node),
4005
4006
  parents: I.node.parents || [],
4006
4007
  subType: "subType" in I.node ? I.node.subType : void 0
4007
4008
  },
@@ -4015,7 +4016,7 @@ const N = z.injectEndpoints({
4015
4016
  };
4016
4017
  }) || [] };
4017
4018
  } catch (d) {
4018
- return console.error(`Error in getEntityLinks queryFn for ${n}:`, d), es.error(`Error fetching ${n} links`), { error: L(d) };
4019
+ return console.error(`Error in getEntityLinks queryFn for ${n}:`, d), ts.error(`Error fetching ${n} links`), { error: L(d) };
4019
4020
  }
4020
4021
  },
4021
4022
  // 2. We should not create new caches when the entityIds argument changes.
@@ -4050,11 +4051,11 @@ const N = z.injectEndpoints({
4050
4051
  let c;
4051
4052
  const d = U(
4052
4053
  async (u, o) => {
4053
- const l = Ot[s], p = $t[s];
4054
+ const l = $t[s], p = xt[s];
4054
4055
  try {
4055
4056
  await J();
4056
4057
  const f = await a(
4057
- V.endpoints[l].initiate(
4058
+ M.endpoints[l].initiate(
4058
4059
  { projectName: e, entityIds: u.map(({ entityId: h }) => h) },
4059
4060
  { forceRefetch: !0 }
4060
4061
  )
@@ -4067,7 +4068,7 @@ const N = z.injectEndpoints({
4067
4068
  node: {
4068
4069
  id: g.node.id,
4069
4070
  name: g.node.name,
4070
- label: Dt(g.node),
4071
+ label: ct(g.node),
4071
4072
  parents: g.node.parents || [],
4072
4073
  subType: "subType" in g.node ? g.node.subType : void 0
4073
4074
  },
@@ -4104,22 +4105,22 @@ const N = z.injectEndpoints({
4104
4105
  }
4105
4106
  })
4106
4107
  })
4107
- }), { useGetEntityLinksQuery: Ca } = le, ne = 10, xt = (t) => {
4108
+ }), { useGetEntityLinksQuery: Da } = le, ne = 10, Ut = (t) => {
4108
4109
  if (!t) return {};
4109
4110
  try {
4110
4111
  return typeof t != "string" ? t ?? {} : JSON.parse(t);
4111
4112
  } catch (e) {
4112
4113
  return console.warn("Failed to parse entity list data field:", e, t), {};
4113
4114
  }
4114
- }, Ut = 1e4, et = 100, Re = Q.enhanceEndpoints({
4115
+ }, qt = 1e4, tt = 100, Re = Q.enhanceEndpoints({
4115
4116
  endpoints: {
4116
4117
  GetLists: {
4117
4118
  transformResponse: (t) => ({
4118
4119
  // @ts-expect-error - entityType is string
4119
4120
  lists: t.project.entityLists.edges.map((e) => ({
4120
4121
  ...e.node,
4121
- data: xt(e.node.data),
4122
- attrib: xt(e.node.allAttrib)
4122
+ data: Ut(e.node.data),
4123
+ attrib: Ut(e.node.allAttrib)
4123
4124
  })),
4124
4125
  pageInfo: t.project.entityLists.pageInfo
4125
4126
  }),
@@ -4168,7 +4169,7 @@ const N = z.injectEndpoints({
4168
4169
  try {
4169
4170
  const { cursor: i } = s, r = {
4170
4171
  ...e,
4171
- first: Ut,
4172
+ first: qt,
4172
4173
  after: i || void 0
4173
4174
  }, a = await n.dispatch(
4174
4175
  Re.endpoints.GetLists.initiate(r, { forceRefetch: !0 })
@@ -4219,7 +4220,6 @@ const N = z.injectEndpoints({
4219
4220
  allAttrib: "",
4220
4221
  attrib: {},
4221
4222
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
4222
- updatedAt: "",
4223
4223
  active: !0,
4224
4224
  access: "",
4225
4225
  accessLevel: 30,
@@ -4230,8 +4230,8 @@ const N = z.injectEndpoints({
4230
4230
  entityListType: p.entity_list_type,
4231
4231
  count: p.count,
4232
4232
  entityListFolderId: p.entity_list_folder_id ?? null,
4233
- updatedBy: l.createdAt,
4234
- // estimate the event creation time is about the same as list updated at
4233
+ // the event's own timestamps have no timezone, so the client clock is the closer estimate
4234
+ updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
4235
4235
  owner: h?.owner || ""
4236
4236
  // mainly to shut up typescript
4237
4237
  });
@@ -4274,10 +4274,10 @@ const N = z.injectEndpoints({
4274
4274
  try {
4275
4275
  const { sortBy: i, desc: r, ...a } = e, { cursor: c } = s, d = {
4276
4276
  ...a,
4277
- first: et,
4277
+ first: tt,
4278
4278
  after: c || void 0
4279
4279
  };
4280
- d.after = c || void 0, d.first = et, i && (d.sortBy = i, r && (d.before = c || void 0, d.after = void 0, d.last = et, d.first = void 0));
4280
+ d.after = c || void 0, d.first = tt, i && (d.sortBy = i, r && (d.before = c || void 0, d.after = void 0, d.last = tt, d.first = void 0));
4281
4281
  const u = await n.dispatch(
4282
4282
  Re.endpoints.GetListItems.initiate(d, {
4283
4283
  forceRefetch: !0
@@ -4331,8 +4331,8 @@ const N = z.injectEndpoints({
4331
4331
  r((b) => {
4332
4332
  b?.pages && v.forEach((I) => {
4333
4333
  b.pages.forEach((k) => {
4334
- (k.items || []).forEach((A) => {
4335
- A.entityId === I.summary.entityId && A.entityType === I.summary.entityType && I.summary.thumbnailHash && (A.thumbnailHash = I.summary.thumbnailHash);
4334
+ (k.items || []).forEach((w) => {
4335
+ w.entityId === I.summary.entityId && w.entityType === I.summary.entityType && I.summary.thumbnailHash && (w.thumbnailHash = I.summary.thumbnailHash);
4336
4336
  });
4337
4337
  });
4338
4338
  });
@@ -4370,7 +4370,7 @@ const N = z.injectEndpoints({
4370
4370
  try {
4371
4371
  const { cursor: i } = s, r = {
4372
4372
  ...e,
4373
- first: Ut,
4373
+ first: qt,
4374
4374
  after: i || void 0
4375
4375
  }, a = await n.dispatch(
4376
4376
  Re.endpoints.GetListsItemsForReviewSession.initiate(r, {
@@ -4402,7 +4402,7 @@ const N = z.injectEndpoints({
4402
4402
  keepUnusedDataFor: ne
4403
4403
  })
4404
4404
  })
4405
- }), pi = ue.enhanceEndpoints({
4405
+ }), fi = ue.enhanceEndpoints({
4406
4406
  endpoints: {
4407
4407
  getEntityList: {
4408
4408
  providesTags: (t, e, { listId: s, projectName: n }) => [
@@ -4420,12 +4420,12 @@ const N = z.injectEndpoints({
4420
4420
  }
4421
4421
  }
4422
4422
  }), {
4423
- useGetListsInfiniteInfiniteQuery: Na,
4424
- useGetListItemsInfiniteInfiniteQuery: Qa,
4425
- useGetListsItemsForReviewSessionInfiniteQuery: Ma,
4426
- useLazyGetListsItemsForReviewSessionQuery: Va,
4427
- useLazyGetListItemsQuery: Da
4428
- } = q, { useGetEntityListQuery: Oa } = pi, fi = ue.enhanceEndpoints({
4423
+ useGetListsInfiniteInfiniteQuery: Oa,
4424
+ useGetListItemsInfiniteInfiniteQuery: $a,
4425
+ useGetListsItemsForReviewSessionInfiniteQuery: xa,
4426
+ useLazyGetListsItemsForReviewSessionQuery: Ua,
4427
+ useLazyGetListItemsQuery: qa
4428
+ } = q, { useGetEntityListQuery: Ba } = fi, yi = ue.enhanceEndpoints({
4429
4429
  endpoints: {
4430
4430
  // LIST MUTATIONS
4431
4431
  createEntityList: {
@@ -4608,7 +4608,7 @@ const N = z.injectEndpoints({
4608
4608
  ]
4609
4609
  }
4610
4610
  }
4611
- }), yi = fi.injectEndpoints({
4611
+ }), gi = yi.injectEndpoints({
4612
4612
  endpoints: (t) => ({
4613
4613
  createSessionFromList: t.mutation({
4614
4614
  query: (e) => ({
@@ -4621,21 +4621,21 @@ const N = z.injectEndpoints({
4621
4621
  })
4622
4622
  }), {
4623
4623
  // LIST MUTATIONS
4624
- useCreateEntityListMutation: $a,
4625
- useUpdateEntityListMutation: xa,
4626
- useDeleteEntityListMutation: Ua,
4624
+ useCreateEntityListMutation: Ha,
4625
+ useUpdateEntityListMutation: Wa,
4626
+ useDeleteEntityListMutation: za,
4627
4627
  // LIST ITEM MUTATIONS
4628
- useUpdateEntityListItemsMutation: qa,
4629
- useUpdateEntityListItemMutation: Ba,
4630
- useCreateEntityListItemMutation: Ha,
4631
- useDeleteEntityListItemMutation: Wa,
4628
+ useUpdateEntityListItemsMutation: Ka,
4629
+ useUpdateEntityListItemMutation: Ja,
4630
+ useCreateEntityListItemMutation: Ya,
4631
+ useDeleteEntityListItemMutation: Xa,
4632
4632
  // REVIEW SESSION MUTATIONS
4633
- useCreateSessionFromListMutation: za
4634
- } = yi, qt = 5, Te = (t) => (t || "").replace(/-/g, ""), gi = (t, e, s) => {
4633
+ useCreateSessionFromListMutation: Za
4634
+ } = gi, Bt = 5, Te = (t) => (t || "").replace(/-/g, ""), hi = (t, e, s) => {
4635
4635
  Array.isArray(t.latestComments) || (t.latestComments = []);
4636
4636
  const n = t.latestComments, i = Te(e.activityId), r = n.findIndex((a) => Te(a.activityId) === i);
4637
- s === "delete" ? r !== -1 && n.splice(r, 1) : s === "update" ? r !== -1 && (n[r].body = e.body) : (r !== -1 && n.splice(r, 1), n.unshift(e), n.length > qt && n.splice(qt));
4638
- }, hi = [
4637
+ s === "delete" ? r !== -1 && n.splice(r, 1) : s === "update" ? r !== -1 && (n[r].body = e.body) : (r !== -1 && n.splice(r, 1), n.unshift(e), n.length > Bt && n.splice(Bt));
4638
+ }, mi = [
4639
4639
  {
4640
4640
  api: x,
4641
4641
  tag: "overviewTask",
@@ -4662,7 +4662,7 @@ const N = z.injectEndpoints({
4662
4662
  getProductsInfinite: (t) => (t?.pages?.flatMap((e) => e.products ?? []) ?? []).map((e) => e.featuredVersion).filter(Boolean)
4663
4663
  }
4664
4664
  }
4665
- ], mi = (t, { dispatch: e, getState: s }, n) => {
4665
+ ], vi = (t, { dispatch: e, getState: s }, n) => {
4666
4666
  const { patch: i } = t, r = t.entityId ?? i?.entityId, a = i?.activityId ?? t.activityId;
4667
4667
  if (!r || !a) return [];
4668
4668
  if (n === "create" && !(i?.activityType === "comment" && i?.referenceType === "origin"))
@@ -4675,7 +4675,7 @@ const N = z.injectEndpoints({
4675
4675
  author: i?.authorName ?? null,
4676
4676
  createdAt: i?.createdAt ?? ""
4677
4677
  }, d = s(), u = Te(r), o = [];
4678
- for (const { api: l, tag: p, selectors: f } of hi) {
4678
+ for (const { api: l, tag: p, selectors: f } of mi) {
4679
4679
  const y = l.util.selectInvalidatedBy(d, [{ type: p, id: r }]);
4680
4680
  for (const { endpointName: h, originalArgs: g } of y) {
4681
4681
  const m = f[h];
@@ -4683,14 +4683,14 @@ const N = z.injectEndpoints({
4683
4683
  e(
4684
4684
  l.util.updateQueryData(h, g, (v) => {
4685
4685
  for (const b of m(v))
4686
- (Te(b?.id) === u || Te(b?.entityId) === u) && gi(b, c, n);
4686
+ (Te(b?.id) === u || Te(b?.entityId) === u) && hi(b, c, n);
4687
4687
  })
4688
4688
  )
4689
4689
  );
4690
4690
  }
4691
4691
  }
4692
4692
  return o;
4693
- }, vi = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, bi = async (t, {
4693
+ }, bi = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, Ii = async (t, {
4694
4694
  updateCachedData: e,
4695
4695
  cacheDataLoaded: s,
4696
4696
  cacheEntryRemoved: n,
@@ -4703,20 +4703,20 @@ const N = z.injectEndpoints({
4703
4703
  async (o, l) => {
4704
4704
  const p = Array.isArray(t.entityIds) ? t.entityIds : [t.entityIds], f = ["origin", "mention", "relation"], y = t.activityTypes, h = Array.isArray(y) ? y : y ? [y] : [], g = [], m = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set();
4705
4705
  o.forEach(({ topic: k, message: T }) => {
4706
- const A = T.summary?.activity_id;
4707
- if (!A) return;
4708
- const w = (T.summary?.references || []).filter((P) => f.includes(P.reference_type)).map((P) => P.entity_id);
4709
- if (!(!p.some((P) => w.includes(P)) && p.length > 0)) {
4706
+ const w = T.summary?.activity_id;
4707
+ if (!w) return;
4708
+ const A = (T.summary?.references || []).filter((P) => f.includes(P.reference_type)).map((P) => P.entity_id);
4709
+ if (!(!p.some((P) => A.includes(P)) && p.length > 0)) {
4710
4710
  if (k === "activity.deleted") {
4711
- g.push(A);
4711
+ g.push(w);
4712
4712
  return;
4713
4713
  }
4714
- T.summary?.activity_type && (v.add(A), m.set(A, k), w.forEach((P) => b.add(P)));
4714
+ T.summary?.activity_type && (v.add(w), m.set(w, k), A.forEach((P) => b.add(P)));
4715
4715
  }
4716
4716
  }), g.length && e((k) => {
4717
4717
  k.pages?.forEach((T) => {
4718
4718
  T.activities = T.activities?.filter(
4719
- (A) => !g.includes(A.activityId)
4719
+ (w) => !g.includes(w.activityId)
4720
4720
  );
4721
4721
  });
4722
4722
  });
@@ -4736,18 +4736,18 @@ const N = z.injectEndpoints({
4736
4736
  );
4737
4737
  if ("error" in T && T.error) throw new Error("Failed to fetch activities");
4738
4738
  if (!l()) return;
4739
- const A = T.data?.activities || [], w = new Map(
4740
- A.map((E) => [E.activityId, E])
4739
+ const w = T.data?.activities || [], A = new Map(
4740
+ w.map((E) => [E.activityId, E])
4741
4741
  );
4742
4742
  e((E) => {
4743
- w.forEach((P, S) => {
4743
+ A.forEach((P, S) => {
4744
4744
  const j = [P.activityType];
4745
- if (P.activityType === "comment" && vi(P.body || "") && j.push("checklist"), h.length > 0 && !h.some(($) => j.includes($)))
4745
+ if (P.activityType === "comment" && bi(P.body || "") && j.push("checklist"), h.length > 0 && !h.some(($) => j.includes($)))
4746
4746
  return;
4747
4747
  let _ = !1;
4748
4748
  if (E.pages?.forEach(($) => {
4749
4749
  const C = $.activities?.findIndex(
4750
- (ws) => ws.activityId === S
4750
+ (Es) => Es.activityId === S
4751
4751
  );
4752
4752
  C !== void 0 && C !== -1 && $.activities && ($.activities[C] = P, _ = !0);
4753
4753
  }), !_ && m.get(S) === "activity.created" && E.pages?.[0]?.activities?.unshift(P), P.activityType !== "status.change" || P.origin?.type !== "version")
@@ -4801,18 +4801,18 @@ const N = z.injectEndpoints({
4801
4801
  console.error("[Activity RT] Error in activity real-time handler setup:", o);
4802
4802
  }
4803
4803
  await n, c && F.unsubscribe(c), d && d(), u.clear();
4804
- }, tt = Q.enhanceEndpoints({
4804
+ }, st = Q.enhanceEndpoints({
4805
4805
  endpoints: {
4806
4806
  // Only used by the infinite query below
4807
4807
  GetActivities: {
4808
- transformResponse: (t) => mt(t.project.activities.edges, t.project.activities.pageInfo),
4809
- providesTags: ns
4808
+ transformResponse: (t) => bt(t.project.activities.edges, t.project.activities.pageInfo),
4809
+ providesTags: is
4810
4810
  },
4811
4811
  GetActivitiesById: {
4812
- transformResponse: (t) => mt(t.project.activities.edges, t.project.activities.pageInfo)
4812
+ transformResponse: (t) => bt(t.project.activities.edges, t.project.activities.pageInfo)
4813
4813
  },
4814
4814
  GetEntitiesChecklists: {
4815
- transformResponse: (t) => on(t),
4815
+ transformResponse: (t) => cn(t),
4816
4816
  providesTags: (t, e, { entityIds: s }) => t ? [
4817
4817
  { type: "activity", id: "LIST" },
4818
4818
  ...t.ids.map((n) => ({ type: "activity", id: "checklist-" + n })),
@@ -4827,18 +4827,18 @@ const N = z.injectEndpoints({
4827
4827
  providesTags: (t) => t?.length ? [{ type: "user", id: "LIST" }, ...t.map(({ name: e }) => ({ type: "user", id: e }))] : [{ type: "user", id: "LIST" }]
4828
4828
  }
4829
4829
  }
4830
- }), Bt = 30, ye = tt.injectEndpoints({
4830
+ }), Ht = 30, ye = st.injectEndpoints({
4831
4831
  endpoints: (t) => ({
4832
4832
  getActivitiesInfinite: t.infiniteQuery({
4833
4833
  infiniteQueryOptions: {
4834
- initialPageParam: { cursor: "", last: Bt },
4834
+ initialPageParam: { cursor: "", last: Ht },
4835
4835
  // Calculate the next page param based on current page response and params
4836
4836
  getNextPageParam: (e) => {
4837
4837
  const s = e.pageInfo;
4838
4838
  if (!(!s.hasPreviousPage || !s.endCursor))
4839
4839
  return {
4840
4840
  cursor: s.endCursor,
4841
- last: Bt
4841
+ last: Ht
4842
4842
  };
4843
4843
  }
4844
4844
  },
@@ -4849,7 +4849,7 @@ const N = z.injectEndpoints({
4849
4849
  before: s?.cursor,
4850
4850
  last: s?.last
4851
4851
  }, c = await n.dispatch(
4852
- tt.endpoints.GetActivities.initiate(a, {
4852
+ st.endpoints.GetActivities.initiate(a, {
4853
4853
  forceRefetch: !0
4854
4854
  })
4855
4855
  );
@@ -4871,16 +4871,16 @@ const N = z.injectEndpoints({
4871
4871
  }
4872
4872
  },
4873
4873
  async onCacheEntryAdded(e, { updateCachedData: s, cacheDataLoaded: n, cacheEntryRemoved: i, dispatch: r, getCacheEntry: a }) {
4874
- await bi(e, {
4874
+ await Ii(e, {
4875
4875
  updateCachedData: s,
4876
4876
  cacheDataLoaded: n,
4877
4877
  cacheEntryRemoved: i,
4878
4878
  dispatch: r,
4879
4879
  getCacheEntry: a,
4880
- gqlApi: tt
4880
+ gqlApi: st
4881
4881
  });
4882
4882
  },
4883
- providesTags: ns
4883
+ providesTags: is
4884
4884
  }),
4885
4885
  // get data for a reference tooltip based on type,id and projectName
4886
4886
  getEntityTooltip: t.query({
@@ -4888,24 +4888,24 @@ const N = z.injectEndpoints({
4888
4888
  url: "/graphql",
4889
4889
  method: "POST",
4890
4890
  body: {
4891
- query: un(n),
4891
+ query: ln(n),
4892
4892
  variables: { projectName: e, entityId: s }
4893
4893
  }
4894
4894
  }),
4895
- transformResponse: (e, s, { entityType: n }) => an(e?.data?.project, n),
4896
- providesTags: (e, s, { entityType: n }) => cn([e], "task", n)
4895
+ transformResponse: (e, s, { entityType: n }) => on(e?.data?.project, n),
4896
+ providesTags: (e, s, { entityType: n }) => dn([e], "task", n)
4897
4897
  })
4898
4898
  }),
4899
4899
  overrideExisting: !0
4900
4900
  }), {
4901
- useGetEntityTooltipQuery: Ka,
4902
- useGetActivitiesByIdQuery: Ja,
4903
- useLazyGetActivitiesByIdQuery: Ya,
4904
- useGetEntitiesChecklistsQuery: Xa,
4905
- useGetActivitiesQuery: Za,
4906
- useGetActivitiesInfiniteInfiniteQuery: eo,
4907
- useGetActivityUsersQuery: to
4908
- } = ye, Ii = (t, e, s) => {
4901
+ useGetEntityTooltipQuery: eo,
4902
+ useGetActivitiesByIdQuery: to,
4903
+ useLazyGetActivitiesByIdQuery: so,
4904
+ useGetEntitiesChecklistsQuery: no,
4905
+ useGetActivitiesQuery: io,
4906
+ useGetActivitiesInfiniteInfiniteQuery: ro,
4907
+ useGetActivityUsersQuery: ao
4908
+ } = ye, Ti = (t, e, s) => {
4909
4909
  if (s)
4910
4910
  for (const n of t.pages) {
4911
4911
  const i = n.activities.findIndex((r) => r.activityId === e.activityId);
@@ -4925,12 +4925,12 @@ const N = z.injectEndpoints({
4925
4925
  }
4926
4926
  !n && t.pages.length > 0 && t.pages[0].activities.unshift(e);
4927
4927
  }
4928
- }, Ti = (t) => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), st = async ({ patch: t, entityIds: e = [], filter: s, refs: n = [], ...i }, r, a) => {
4928
+ }, ki = (t) => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), nt = async ({ patch: t, entityIds: e = [], filter: s, refs: n = [], ...i }, r, a) => {
4929
4929
  const { dispatch: c, queryFulfilled: d, getState: u } = r, o = n.map((g) => g.id) || [];
4930
- Ti(s);
4930
+ ki(s);
4931
4931
  const l = [...e, ...o].map((g) => ({
4932
4932
  type: "entityActivities",
4933
- id: g + "-" + ss(s)
4933
+ id: g + "-" + ns(s)
4934
4934
  })), p = u(), f = ye.util.selectInvalidatedBy(p, l);
4935
4935
  a !== "delete" && t.data && (t.activityData = { ...t.activityData, ...t.data });
4936
4936
  const y = f.map(
@@ -4938,10 +4938,10 @@ const N = z.injectEndpoints({
4938
4938
  ye.util.updateQueryData(
4939
4939
  "getActivitiesInfinite",
4940
4940
  g,
4941
- (m) => Ii(m, t, a === "delete")
4941
+ (m) => Ti(m, t, a === "delete")
4942
4942
  )
4943
4943
  )
4944
- ), h = mi(
4944
+ ), h = vi(
4945
4945
  { patch: t, ...i },
4946
4946
  r,
4947
4947
  a
@@ -4952,13 +4952,13 @@ const N = z.injectEndpoints({
4952
4952
  for (const m of [...y, ...h])
4953
4953
  m?.undo();
4954
4954
  }
4955
- }, nt = ({ entityId: t, filter: e }) => {
4955
+ }, it = ({ entityId: t, filter: e }) => {
4956
4956
  const n = Object.keys(se).filter((i) => i !== e).map((i) => ({
4957
4957
  type: "entityActivities",
4958
4958
  id: t + "-" + i
4959
4959
  }));
4960
4960
  return n.push({ type: "activity", id: "LIST" }), n.push({ type: "watchers", id: t }), n;
4961
- }, ki = ye.injectEndpoints({
4961
+ }, wi = ye.injectEndpoints({
4962
4962
  endpoints: (t) => ({
4963
4963
  createEntityActivity: t.mutation({
4964
4964
  query: ({ projectName: e, entityType: s, entityId: n, data: i = {} }) => ({
@@ -4968,10 +4968,10 @@ const N = z.injectEndpoints({
4968
4968
  body: i
4969
4969
  }),
4970
4970
  async onQueryStarted(e, s) {
4971
- st(e, s, "create");
4971
+ nt(e, s, "create");
4972
4972
  },
4973
4973
  // invalidate other filters that might be affected by this new activity (comments, checklists, etc)
4974
- invalidatesTags: (e, s, { entityId: n, filter: i }) => nt({ entityId: n, filter: i })
4974
+ invalidatesTags: (e, s, { entityId: n, filter: i }) => it({ entityId: n, filter: i })
4975
4975
  }),
4976
4976
  updateActivity: t.mutation({
4977
4977
  query: ({ projectName: e, activityId: s, data: n }) => ({
@@ -4980,10 +4980,10 @@ const N = z.injectEndpoints({
4980
4980
  body: n
4981
4981
  }),
4982
4982
  async onQueryStarted(e, s) {
4983
- st(e, s, "update");
4983
+ nt(e, s, "update");
4984
4984
  },
4985
4985
  // invalidate other filters that might be affected by this new activity (comments, checklists, etc)
4986
- invalidatesTags: (e, s, { entityId: n, filter: i }) => nt({ entityId: n, filter: i })
4986
+ invalidatesTags: (e, s, { entityId: n, filter: i }) => it({ entityId: n, filter: i })
4987
4987
  }),
4988
4988
  deleteActivity: t.mutation({
4989
4989
  query: ({ projectName: e, activityId: s }) => ({
@@ -4991,18 +4991,18 @@ const N = z.injectEndpoints({
4991
4991
  method: "DELETE"
4992
4992
  }),
4993
4993
  async onQueryStarted(e, s) {
4994
- st(e, s, "delete");
4994
+ nt(e, s, "delete");
4995
4995
  },
4996
4996
  // invalidate other filters that might be affected by this new activity (comments, checklists, etc)
4997
- invalidatesTags: (e, s, { entityId: n, filter: i }) => nt({ entityId: n, filter: i })
4997
+ invalidatesTags: (e, s, { entityId: n, filter: i }) => it({ entityId: n, filter: i })
4998
4998
  })
4999
4999
  }),
5000
5000
  overrideExisting: !0
5001
5001
  }), {
5002
- useCreateEntityActivityMutation: so,
5003
- useDeleteActivityMutation: no,
5004
- useUpdateActivityMutation: io
5005
- } = ki, Ht = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
5002
+ useCreateEntityActivityMutation: oo,
5003
+ useDeleteActivityMutation: co,
5004
+ useUpdateActivityMutation: uo
5005
+ } = wi, Wt = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
5006
5006
  const a = [{ type: "activity", id: t }];
5007
5007
  return ye.util.selectInvalidatedBy(n(), a).map((d) => i(
5008
5008
  // @ts-ignore
@@ -5044,7 +5044,7 @@ const N = z.injectEndpoints({
5044
5044
  endpoints: {
5045
5045
  createReactionToActivity: {
5046
5046
  async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
5047
- const i = Ht(
5047
+ const i = Wt(
5048
5048
  {
5049
5049
  activityId: t.activityId,
5050
5050
  // @ts-ignore
@@ -5064,7 +5064,7 @@ const N = z.injectEndpoints({
5064
5064
  },
5065
5065
  deleteReactionToActivity: {
5066
5066
  async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
5067
- const i = Ht(
5067
+ const i = Wt(
5068
5068
  // @ts-ignore
5069
5069
  { activityId: t.activityId, userName: t.userName, reaction: t.reaction },
5070
5070
  { getState: e, dispatch: s },
@@ -5079,34 +5079,34 @@ const N = z.injectEndpoints({
5079
5079
  }
5080
5080
  }
5081
5081
  }
5082
- }), { useCreateReactionToActivityMutation: ro, useDeleteReactionToActivityMutation: ao } = Ai, Wt = Pe.enhanceEndpoints({
5082
+ }), { useCreateReactionToActivityMutation: lo, useDeleteReactionToActivityMutation: po } = Ai, zt = Pe.enhanceEndpoints({
5083
5083
  endpoints: {
5084
5084
  suggestEntityMention: {}
5085
5085
  }
5086
- }), wi = Wt.injectEndpoints({
5086
+ }), Ei = zt.injectEndpoints({
5087
5087
  endpoints: (t) => ({
5088
5088
  getEntityMentions: t.query({
5089
5089
  queryFn: async (e, { dispatch: s }) => {
5090
5090
  const n = await s(
5091
- Wt.endpoints.suggestEntityMention.initiate(e)
5091
+ zt.endpoints.suggestEntityMention.initiate(e)
5092
5092
  );
5093
5093
  return n.error ? { error: L(n.error) } : { data: n.data };
5094
5094
  },
5095
5095
  providesTags: [{ type: "team", id: "LIST" }]
5096
5096
  })
5097
5097
  })
5098
- }), { useGetEntityMentionsQuery: oo } = wi, ot = { type: "category", id: "LIST" }, ct = { type: "addonSettings", id: "powerpack" }, dt = Pe.enhanceEndpoints({
5098
+ }), { useGetEntityMentionsQuery: fo } = Ei, dt = { type: "category", id: "LIST" }, ut = { type: "addonSettings", id: "powerpack" }, lt = Pe.enhanceEndpoints({
5099
5099
  endpoints: {
5100
5100
  getActivityCategories: {
5101
5101
  transformResponse: (t) => t.categories,
5102
5102
  providesTags: (t) => t ? [
5103
5103
  ...t.map(({ name: e }) => ({ type: "category", id: e })),
5104
- ot,
5105
- ct
5106
- ] : [ot, ct]
5104
+ dt,
5105
+ ut
5106
+ ] : [dt, ut]
5107
5107
  }
5108
5108
  }
5109
- }), Ei = dt.injectEndpoints({
5109
+ }), Si = lt.injectEndpoints({
5110
5110
  endpoints: (t) => ({
5111
5111
  getProjectsCategories: t.query({
5112
5112
  async queryFn({ projects: e = [] }, { dispatch: s }) {
@@ -5114,7 +5114,7 @@ const N = z.injectEndpoints({
5114
5114
  e.map(async (i) => {
5115
5115
  try {
5116
5116
  const r = await s(
5117
- dt.endpoints.getActivityCategories.initiate({ projectName: i })
5117
+ lt.endpoints.getActivityCategories.initiate({ projectName: i })
5118
5118
  ).unwrap();
5119
5119
  return [i, r];
5120
5120
  } catch {
@@ -5124,16 +5124,16 @@ const N = z.injectEndpoints({
5124
5124
  );
5125
5125
  return { data: Object.fromEntries(n) };
5126
5126
  },
5127
- providesTags: [ot, ct]
5127
+ providesTags: [dt, ut]
5128
5128
  })
5129
5129
  })
5130
- }), { useGetActivityCategoriesQuery: co } = dt, { useGetProjectsCategoriesQuery: uo } = Ei, ms = js.enhanceEndpoints({
5130
+ }), { useGetActivityCategoriesQuery: yo } = lt, { useGetProjectsCategoriesQuery: go } = Si, vs = Fs.enhanceEndpoints({
5131
5131
  endpoints: {
5132
5132
  listAddons: {
5133
5133
  providesTags: ["addonList"]
5134
5134
  }
5135
5135
  }
5136
- }), { useListAddonsQuery: lo } = ms, vs = ms.injectEndpoints({
5136
+ }), { useListAddonsQuery: ho } = vs, bs = vs.injectEndpoints({
5137
5137
  endpoints: (t) => ({
5138
5138
  // Return a list of addons which have project-scoped frontend
5139
5139
  getProjectAddons: t.query({
@@ -5206,7 +5206,7 @@ const N = z.injectEndpoints({
5206
5206
  })
5207
5207
  }),
5208
5208
  overrideExisting: !0
5209
- }), { useGetProjectAddonsQuery: po, useGetSettingsAddonsQuery: fo, useGetDashboardAddonsQuery: yo } = vs, it = vs.enhanceEndpoints({
5209
+ }), { useGetProjectAddonsQuery: mo, useGetSettingsAddonsQuery: vo, useGetDashboardAddonsQuery: bo } = bs, rt = bs.enhanceEndpoints({
5210
5210
  endpoints: {
5211
5211
  deleteAddonVersion: {
5212
5212
  invalidatesTags: ["addonList"]
@@ -5222,7 +5222,7 @@ const N = z.injectEndpoints({
5222
5222
  ]
5223
5223
  }
5224
5224
  }
5225
- }), bs = it.injectEndpoints({
5225
+ }), Is = rt.injectEndpoints({
5226
5226
  endpoints: (t) => ({
5227
5227
  // delete multiple addon versions at once
5228
5228
  deleteAddonVersions: t.mutation({
@@ -5231,7 +5231,7 @@ const N = z.injectEndpoints({
5231
5231
  for (const i of e)
5232
5232
  !i.name || !i.version || n.push(
5233
5233
  s(
5234
- it.endpoints.deleteAddonVersion.initiate({
5234
+ rt.endpoints.deleteAddonVersion.initiate({
5235
5235
  addonName: i.name,
5236
5236
  addonVersion: i.version
5237
5237
  })
@@ -5251,7 +5251,7 @@ const N = z.injectEndpoints({
5251
5251
  for (const r of n)
5252
5252
  !r.url || !r.name || !r.version || i.push(
5253
5253
  s(
5254
- it.endpoints.uploadAddonZipFile.initiate({
5254
+ rt.endpoints.uploadAddonZipFile.initiate({
5255
5255
  url: r.url,
5256
5256
  addonName: r.name,
5257
5257
  addonVersion: r.version
@@ -5270,7 +5270,7 @@ const N = z.injectEndpoints({
5270
5270
  }),
5271
5271
  // endpoints
5272
5272
  overrideExisting: !0
5273
- }), { useDeleteAddonVersionsMutation: go, useDownloadAddonsMutation: ho } = bs, Is = Fs.enhanceEndpoints({
5273
+ }), { useDeleteAddonVersionsMutation: Io, useDownloadAddonsMutation: To } = Is, Ts = _s.enhanceEndpoints({
5274
5274
  endpoints: {
5275
5275
  getAttributeList: {
5276
5276
  transformResponse: (t) => t.attributes || [],
@@ -5283,7 +5283,7 @@ const N = z.injectEndpoints({
5283
5283
  ]
5284
5284
  }
5285
5285
  }
5286
- }), { useGetAttributeListQuery: mo, useGetAttributeConfigQuery: vo } = Is, Si = Is.enhanceEndpoints({
5286
+ }), { useGetAttributeListQuery: ko, useGetAttributeConfigQuery: wo } = Ts, Pi = Ts.enhanceEndpoints({
5287
5287
  endpoints: {
5288
5288
  setAttributeList: {
5289
5289
  invalidatesTags: ["attribute"]
@@ -5295,21 +5295,21 @@ const N = z.injectEndpoints({
5295
5295
  invalidatesTags: (t, e, { attributeName: s }) => [{ type: "attribute", id: s }]
5296
5296
  }
5297
5297
  }
5298
- }), { useSetAttributeListMutation: bo, usePatchAttributeConfigMutation: Io } = Si, Pi = _s.enhanceEndpoints({
5298
+ }), { useSetAttributeListMutation: Ao, usePatchAttributeConfigMutation: Eo } = Pi, Li = Rs.enhanceEndpoints({
5299
5299
  endpoints: {
5300
5300
  createSession: {},
5301
5301
  getUserPools: {
5302
5302
  providesTags: [{ type: "userPool", id: "LIST" }]
5303
5303
  }
5304
5304
  }
5305
- }), { useCreateSessionMutation: To, useGetUserPoolsQuery: ko } = Pi, ut = Rs.enhanceEndpoints({
5305
+ }), { useCreateSessionMutation: So, useGetUserPoolsQuery: Po } = Li, pt = Gs.enhanceEndpoints({
5306
5306
  endpoints: {
5307
5307
  listBundles: {
5308
5308
  providesTags: () => [{ type: "bundleList" }]
5309
5309
  },
5310
5310
  checkBundleCompatibility: {}
5311
5311
  }
5312
- }), Li = Se.enhanceEndpoints({
5312
+ }), ji = Se.enhanceEndpoints({
5313
5313
  endpoints: {
5314
5314
  getProjectBundleInfo: {
5315
5315
  providesTags: (t, e, { projectName: s }) => [
@@ -5318,7 +5318,7 @@ const N = z.injectEndpoints({
5318
5318
  ]
5319
5319
  }
5320
5320
  }
5321
- }), { useListBundlesQuery: Ao, useLazyListBundlesQuery: wo, useCheckBundleCompatibilityQuery: Eo } = ut, { useGetProjectBundleInfoQuery: So } = Li, ji = ut.enhanceEndpoints({
5321
+ }), { useListBundlesQuery: Lo, useLazyListBundlesQuery: jo, useCheckBundleCompatibilityQuery: Fo } = pt, { useGetProjectBundleInfoQuery: _o } = ji, Fi = pt.enhanceEndpoints({
5322
5322
  endpoints: {
5323
5323
  migrateSettingsByBundle: {
5324
5324
  invalidatesTags: () => [
@@ -5331,7 +5331,7 @@ const N = z.injectEndpoints({
5331
5331
  // optimisticUpdate bundleList to update bundle
5332
5332
  onQueryStarted: async ({ bundleName: t, archived: e = !0, patch: s }, { dispatch: n, queryFulfilled: i }) => {
5333
5333
  const r = n(
5334
- ut.util.updateQueryData("listBundles", { archived: e }, (a) => {
5334
+ pt.util.updateQueryData("listBundles", { archived: e }, (a) => {
5335
5335
  if (!s || !a?.bundles) return;
5336
5336
  const c = a.bundles.findIndex((d) => d.name === t);
5337
5337
  if (c === -1) throw new Error("bundle not found");
@@ -5353,7 +5353,7 @@ const N = z.injectEndpoints({
5353
5353
  ]
5354
5354
  }
5355
5355
  }
5356
- }), Fi = Se.enhanceEndpoints({
5356
+ }), _i = Se.enhanceEndpoints({
5357
5357
  endpoints: {
5358
5358
  unsetProjectBundle: {
5359
5359
  invalidatesTags: (t, e, { projectName: s }) => [
@@ -5366,7 +5366,7 @@ const N = z.injectEndpoints({
5366
5366
  ]
5367
5367
  }
5368
5368
  }
5369
- }), _i = ji.injectEndpoints({
5369
+ }), Ri = Fi.injectEndpoints({
5370
5370
  endpoints: (t) => ({
5371
5371
  deleteBundle: t.mutation({
5372
5372
  query: ({ name: e }) => ({
@@ -5420,12 +5420,12 @@ const N = z.injectEndpoints({
5420
5420
  // endpoints
5421
5421
  overrideExisting: !0
5422
5422
  }), {
5423
- useDeleteBundleMutation: Po,
5424
- useCreateBundleMutation: Lo,
5425
- usePromoteBundleMutation: jo,
5426
- useMigrateSettingsByBundleMutation: Fo,
5427
- useUpdateBundleMutation: _o
5428
- } = _i, { useUnsetProjectBundleMutation: Ro } = Fi, Ri = Gs.enhanceEndpoints({
5423
+ useDeleteBundleMutation: Ro,
5424
+ useCreateBundleMutation: Go,
5425
+ usePromoteBundleMutation: Co,
5426
+ useMigrateSettingsByBundleMutation: No,
5427
+ useUpdateBundleMutation: Qo
5428
+ } = Ri, { useUnsetProjectBundleMutation: Mo } = _i, Gi = Cs.enhanceEndpoints({
5429
5429
  endpoints: {
5430
5430
  getYnputCloudInfo: {
5431
5431
  providesTags: ["connections"]
@@ -5441,11 +5441,11 @@ const N = z.injectEndpoints({
5441
5441
  }
5442
5442
  }
5443
5443
  }), {
5444
- useGetYnputCloudInfoQuery: Go,
5445
- useSetYnputCloudKeyMutation: Co,
5446
- useDeleteYnputCloudKeyMutation: No,
5447
- useGetFeedbackVerificationQuery: Qo
5448
- } = Ri, Ts = Cs.enhanceEndpoints({
5444
+ useGetYnputCloudInfoQuery: Vo,
5445
+ useSetYnputCloudKeyMutation: Do,
5446
+ useDeleteYnputCloudKeyMutation: Oo,
5447
+ useGetFeedbackVerificationQuery: $o
5448
+ } = Gi, ks = Ns.enhanceEndpoints({
5449
5449
  endpoints: {
5450
5450
  getServerConfig: {
5451
5451
  providesTags: ["config"]
@@ -5459,17 +5459,17 @@ const N = z.injectEndpoints({
5459
5459
  }
5460
5460
  }
5461
5461
  }), {
5462
- useGetServerConfigQuery: Mo,
5463
- useGetServerConfigOverridesQuery: Vo,
5464
- useGetServerConfigSchemaQuery: Do,
5465
- useGetConfigValueQuery: Oo
5466
- } = Ts, Gi = Ts.enhanceEndpoints({
5462
+ useGetServerConfigQuery: xo,
5463
+ useGetServerConfigOverridesQuery: Uo,
5464
+ useGetServerConfigSchemaQuery: qo,
5465
+ useGetConfigValueQuery: Bo
5466
+ } = ks, Ci = ks.enhanceEndpoints({
5467
5467
  endpoints: {
5468
5468
  setServerConfig: {
5469
5469
  invalidatesTags: ["config"]
5470
5470
  }
5471
5471
  }
5472
- }), { useSetServerConfigMutation: $o } = Gi, lt = ue.enhanceEndpoints({
5472
+ }), { useSetServerConfigMutation: Ho } = Ci, ft = ue.enhanceEndpoints({
5473
5473
  endpoints: {
5474
5474
  getEntityListAttributesDefinition: {
5475
5475
  providesTags: (t, e, { listId: s }) => t ? [
@@ -5478,7 +5478,7 @@ const N = z.injectEndpoints({
5478
5478
  ] : [{ type: "entityListAttribute", id: "LIST" }]
5479
5479
  }
5480
5480
  }
5481
- }), { useGetEntityListAttributesDefinitionQuery: xo } = lt, Ci = (t) => t.startsWith("attrib.") ? `_all_attrib.${t.slice(7)}` : t.startsWith("inherited_attributes.") ? `_all_attrib.${t.slice(21)}` : `_entity_${t}`, Ni = (t) => t.startsWith("_all_attrib_") ? `attrib_${t.slice(12)}` : t.startsWith("_entity_") ? t.slice(8) : t, Uo = (t) => t.map((e) => ({ ...e, field: Ci(e.field) })), Qi = Q.enhanceEndpoints({
5481
+ }), { useGetEntityListAttributesDefinitionQuery: Wo } = ft, Ni = (t) => t.startsWith("attrib.") ? `_all_attrib.${t.slice(7)}` : t.startsWith("inherited_attributes.") ? `_all_attrib.${t.slice(21)}` : `_entity_${t}`, Qi = (t) => t.startsWith("_all_attrib_") ? `attrib_${t.slice(12)}` : t.startsWith("_entity_") ? t.slice(8) : t, zo = (t) => t.map((e) => ({ ...e, field: Ni(e.field) })), Mi = Q.enhanceEndpoints({
5482
5482
  endpoints: {
5483
5483
  // same caching as the other column stats endpoints: `targets` excluded
5484
5484
  // from the cache key, responses merged, only added targets refetch
@@ -5486,24 +5486,24 @@ const N = z.injectEndpoints({
5486
5486
  transformResponse: (t) => {
5487
5487
  const e = t?.project?.entityLists?.edges?.[0]?.node?.items?.fieldStats ?? [];
5488
5488
  return ke(
5489
- e.map((s) => ({ ...s, columnName: Ni(s.columnName) }))
5489
+ e.map((s) => ({ ...s, columnName: Qi(s.columnName) }))
5490
5490
  );
5491
5491
  },
5492
5492
  serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
5493
- merge: (t, e) => Ae(e, t),
5494
- forceRefetch: ({ currentArg: t, previousArg: e }) => we(t, e),
5493
+ merge: (t, e) => we(e, t),
5494
+ forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
5495
5495
  providesTags: (t, e, { listId: s, projectName: n }) => [
5496
5496
  { type: "entityListItemsColumnStats", id: s },
5497
5497
  { type: "entityListItemsColumnStats", id: n }
5498
5498
  ]
5499
5499
  }
5500
5500
  }
5501
- }), { useGetListItemsColumnStatsQuery: qo } = Qi, Mi = lt.enhanceEndpoints({
5501
+ }), { useGetListItemsColumnStatsQuery: Ko } = Mi, Vi = ft.enhanceEndpoints({
5502
5502
  endpoints: {
5503
5503
  setEntityListAttributesDefinition: {
5504
5504
  onQueryStarted: async (t, { dispatch: e, queryFulfilled: s }) => {
5505
5505
  const { listId: n, projectName: i, payload: r } = t, a = e(
5506
- lt.util.updateQueryData(
5506
+ ft.util.updateQueryData(
5507
5507
  "getEntityListAttributesDefinition",
5508
5508
  { listId: n, projectName: i },
5509
5509
  (c) => r
@@ -5518,7 +5518,7 @@ const N = z.injectEndpoints({
5518
5518
  invalidatesTags: (t, e, { listId: s }) => [{ type: "entityListAttribute", id: s }]
5519
5519
  }
5520
5520
  }
5521
- }), { useSetEntityListAttributesDefinitionMutation: Bo } = Mi, Ge = { type: "entityListFolder", id: "LIST" }, Me = ue.enhanceEndpoints({
5521
+ }), { useSetEntityListAttributesDefinitionMutation: Jo } = Vi, Ge = { type: "entityListFolder", id: "LIST" }, Me = ue.enhanceEndpoints({
5522
5522
  endpoints: {
5523
5523
  getEntityListFolders: {
5524
5524
  transformResponse: (t) => t.folders || [],
@@ -5536,7 +5536,7 @@ const N = z.injectEndpoints({
5536
5536
  (r) => {
5537
5537
  const a = {
5538
5538
  ...e,
5539
- id: e.id || ts()
5539
+ id: e.id || ss()
5540
5540
  };
5541
5541
  r.push(a);
5542
5542
  }
@@ -5606,54 +5606,54 @@ const N = z.injectEndpoints({
5606
5606
  }
5607
5607
  }
5608
5608
  }), {
5609
- useGetEntityListFoldersQuery: Ho,
5610
- useCreateEntityListFolderMutation: Wo,
5611
- useDeleteEntityListFolderMutation: zo,
5612
- useUpdateEntityListFolderMutation: Ko
5613
- } = Me, Vi = Ns.enhanceEndpoints({
5609
+ useGetEntityListFoldersQuery: Yo,
5610
+ useCreateEntityListFolderMutation: Xo,
5611
+ useDeleteEntityListFolderMutation: Zo,
5612
+ useUpdateEntityListFolderMutation: ec
5613
+ } = Me, Di = Qs.enhanceEndpoints({
5614
5614
  endpoints: {
5615
5615
  getEntityGroups: {}
5616
5616
  }
5617
- }), { useGetEntityGroupsQuery: Jo } = Vi, zt = async (t, e, s, n) => {
5617
+ }), { useGetEntityGroupsQuery: tc } = Di, Kt = async (t, e, s, n) => {
5618
5618
  switch (t) {
5619
5619
  case "task":
5620
5620
  return (await n(
5621
- V.endpoints.GetTaskLinkData.initiate({
5621
+ M.endpoints.GetTaskLinkData.initiate({
5622
5622
  projectName: s,
5623
5623
  taskId: e
5624
5624
  })
5625
5625
  ).unwrap())?.project.task;
5626
5626
  case "folder":
5627
5627
  return (await n(
5628
- V.endpoints.GetFolderLinkData.initiate({
5628
+ M.endpoints.GetFolderLinkData.initiate({
5629
5629
  projectName: s,
5630
5630
  folderId: e
5631
5631
  })
5632
5632
  ).unwrap())?.project.folder;
5633
5633
  case "product":
5634
5634
  return (await n(
5635
- V.endpoints.GetProductLinkData.initiate({
5635
+ M.endpoints.GetProductLinkData.initiate({
5636
5636
  projectName: s,
5637
5637
  productId: e
5638
5638
  })
5639
5639
  ).unwrap())?.project.product;
5640
5640
  case "version":
5641
5641
  return (await n(
5642
- V.endpoints.GetVersionLinkData.initiate({
5642
+ M.endpoints.GetVersionLinkData.initiate({
5643
5643
  projectName: s,
5644
5644
  versionId: e
5645
5645
  })
5646
5646
  ).unwrap())?.project.version;
5647
5647
  case "representation":
5648
5648
  return (await n(
5649
- V.endpoints.GetRepresentationLinkData.initiate({
5649
+ M.endpoints.GetRepresentationLinkData.initiate({
5650
5650
  projectName: s,
5651
5651
  representationId: e
5652
5652
  })
5653
5653
  ).unwrap())?.project.representation;
5654
5654
  case "workfile":
5655
5655
  return (await n(
5656
- V.endpoints.GetWorkfileLinkData.initiate({
5656
+ M.endpoints.GetWorkfileLinkData.initiate({
5657
5657
  projectName: s,
5658
5658
  workfileId: e
5659
5659
  })
@@ -5661,7 +5661,7 @@ const N = z.injectEndpoints({
5661
5661
  default:
5662
5662
  throw new Error(`Unknown entity type: ${t}`);
5663
5663
  }
5664
- }, Kt = ({
5664
+ }, Jt = ({
5665
5665
  projectName: t,
5666
5666
  sourceEntity: e,
5667
5667
  targetEntity: s,
@@ -5705,13 +5705,13 @@ const N = z.injectEndpoints({
5705
5705
  parents: f.parents,
5706
5706
  subType: f.subType
5707
5707
  }
5708
- }, A = k.links.findIndex(
5709
- (w) => w.id === n
5708
+ }, w = k.links.findIndex(
5709
+ (A) => A.id === n
5710
5710
  );
5711
- A !== -1 ? k.links[A] = T : (console.log(
5711
+ w !== -1 ? k.links[w] = T : (console.log(
5712
5712
  `Adding new link to ${p.entityType} links cache`,
5713
5713
  T,
5714
- zs(k)
5714
+ Ks(k)
5715
5715
  ), k.links.push(T));
5716
5716
  }
5717
5717
  }
@@ -5732,7 +5732,7 @@ const N = z.injectEndpoints({
5732
5732
  ));
5733
5733
  };
5734
5734
  o(e, s, r), o(s, e, r === "in" ? "out" : "in");
5735
- }, Di = Qs.enhanceEndpoints({
5735
+ }, Oi = Ms.enhanceEndpoints({
5736
5736
  endpoints: {
5737
5737
  deleteEntityLink: {
5738
5738
  async onQueryStarted({ linkId: t, projectName: e, patch: s }, { dispatch: n, getState: i, queryFulfilled: r }) {
@@ -5741,7 +5741,7 @@ const N = z.injectEndpoints({
5741
5741
  const d = s?.source, u = s?.target, o = s?.linkType || "", l = s?.direction || "out";
5742
5742
  if (d && u)
5743
5743
  try {
5744
- Kt(
5744
+ Jt(
5745
5745
  {
5746
5746
  projectName: e,
5747
5747
  sourceEntity: d,
@@ -5776,12 +5776,12 @@ const N = z.injectEndpoints({
5776
5776
  const o = s?.source, l = o?.entityType, p = o?.entityId, f = s?.target, y = f?.entityType, h = f?.entityId, g = s?.direction || "out", m = a?.split("|")[0];
5777
5777
  try {
5778
5778
  if (o && o.entityType && f) {
5779
- const v = zt(
5779
+ const v = Kt(
5780
5780
  l,
5781
5781
  p,
5782
5782
  t,
5783
5783
  n
5784
- ), b = zt(
5784
+ ), b = Kt(
5785
5785
  y,
5786
5786
  h,
5787
5787
  t,
@@ -5791,14 +5791,14 @@ const N = z.injectEndpoints({
5791
5791
  throw new Error("Source or target entity data not found");
5792
5792
  if (!c)
5793
5793
  throw new Error("Link ID not found in cache entry");
5794
- const A = {
5794
+ const w = {
5795
5795
  entityType: l,
5796
5796
  entityId: p,
5797
5797
  name: k.name,
5798
5798
  label: "label" in k ? k.label : void 0,
5799
5799
  parents: k.parents || [],
5800
5800
  subType: "subType" in k ? k.subType : void 0
5801
- }, w = {
5801
+ }, A = {
5802
5802
  entityType: y,
5803
5803
  entityId: h,
5804
5804
  name: T.name,
@@ -5806,11 +5806,11 @@ const N = z.injectEndpoints({
5806
5806
  parents: T.parents || [],
5807
5807
  subType: "subType" in T ? T.subType : void 0
5808
5808
  };
5809
- Kt(
5809
+ Jt(
5810
5810
  {
5811
5811
  projectName: t,
5812
- sourceEntity: A,
5813
- targetEntity: w,
5812
+ sourceEntity: w,
5813
+ targetEntity: A,
5814
5814
  linkId: c,
5815
5815
  linkType: m,
5816
5816
  direction: g,
@@ -5834,7 +5834,7 @@ const N = z.injectEndpoints({
5834
5834
  }
5835
5835
  }
5836
5836
  }
5837
- }), { useDeleteEntityLinkMutation: Yo, useCreateEntityLinkMutation: Xo } = Di, Oi = 50, he = (t, e) => e ? { entityType: t, entityId: e.id, thumbnailHash: e.thumbnailHash || void 0 } : void 0, $i = V.injectEndpoints({
5837
+ }), { useDeleteEntityLinkMutation: sc, useCreateEntityLinkMutation: nc } = Oi, $i = 50, he = (t, e) => e ? { entityType: t, entityId: e.id, thumbnailHash: e.thumbnailHash || void 0 } : void 0, xi = M.injectEndpoints({
5838
5838
  endpoints: (t) => ({
5839
5839
  getSearchedEntitiesLinks: t.infiniteQuery({
5840
5840
  infiniteQueryOptions: {
@@ -5851,49 +5851,49 @@ const N = z.injectEndpoints({
5851
5851
  try {
5852
5852
  const { projectName: i, entityType: r, search: a, parentIds: c, hasReviewables: d, includeTask: u } = e, { cursor: o } = s, l = {
5853
5853
  projectName: i,
5854
- first: Oi
5854
+ first: $i
5855
5855
  };
5856
5856
  o && (l.after = o), l.search = a || "", l.parentIds = c, l.hasReviewables = d, l.includeTask = !!u;
5857
5857
  let p;
5858
5858
  switch (r) {
5859
5859
  case "folder":
5860
5860
  p = await n.dispatch(
5861
- V.endpoints.GetSearchedFolders.initiate(l, {
5861
+ M.endpoints.GetSearchedFolders.initiate(l, {
5862
5862
  forceRefetch: !0
5863
5863
  })
5864
5864
  ).unwrap();
5865
5865
  break;
5866
5866
  case "product":
5867
5867
  p = await n.dispatch(
5868
- V.endpoints.GetSearchedProducts.initiate(l, {
5868
+ M.endpoints.GetSearchedProducts.initiate(l, {
5869
5869
  forceRefetch: !0
5870
5870
  })
5871
5871
  ).unwrap();
5872
5872
  break;
5873
5873
  case "task":
5874
5874
  p = await n.dispatch(
5875
- V.endpoints.GetSearchedTasks.initiate(l, {
5875
+ M.endpoints.GetSearchedTasks.initiate(l, {
5876
5876
  forceRefetch: !0
5877
5877
  })
5878
5878
  ).unwrap();
5879
5879
  break;
5880
5880
  case "version":
5881
5881
  p = await n.dispatch(
5882
- V.endpoints.GetSearchedVersions.initiate(l, {
5882
+ M.endpoints.GetSearchedVersions.initiate(l, {
5883
5883
  forceRefetch: !0
5884
5884
  })
5885
5885
  ).unwrap();
5886
5886
  break;
5887
5887
  case "representation":
5888
5888
  p = await n.dispatch(
5889
- V.endpoints.GetSearchedRepresentations.initiate(l, {
5889
+ M.endpoints.GetSearchedRepresentations.initiate(l, {
5890
5890
  forceRefetch: !0
5891
5891
  })
5892
5892
  ).unwrap();
5893
5893
  break;
5894
5894
  case "workfile":
5895
5895
  p = await n.dispatch(
5896
- V.endpoints.GetSearchedWorkfiles.initiate(l, {
5896
+ M.endpoints.GetSearchedWorkfiles.initiate(l, {
5897
5897
  forceRefetch: !0
5898
5898
  })
5899
5899
  ).unwrap();
@@ -5989,7 +5989,59 @@ const N = z.injectEndpoints({
5989
5989
  }
5990
5990
  })
5991
5991
  })
5992
- }), { useGetSearchedEntitiesLinksInfiniteQuery: Zo } = $i, xi = Zt.enhanceEndpoints({
5992
+ }), { useGetSearchedEntitiesLinksInfiniteQuery: ic } = xi, Ui = 5e3, qi = 5e4, Bi = M.injectEndpoints({
5993
+ endpoints: (t) => ({
5994
+ /**
5995
+ * All links into or out of a set of entities, grouped by entity like
5996
+ * getEntityLinks. Uses the project-level links query, so it is one request
5997
+ * for any number of entities and not limited to 100 links per entity.
5998
+ * Cached per set of arguments, no realtime updates.
5999
+ */
6000
+ getLinksOfEntities: t.query({
6001
+ queryFn: async ({ projectName: e, entityIds: s, direction: n }, { dispatch: i }) => {
6002
+ if (!s.length) return { data: { entities: [], truncated: !1 } };
6003
+ const r = n === "in" ? "GetLinksIntoEntities" : "GetLinksFromEntities", a = new Map(s.map((o) => [o, []]));
6004
+ let c, d = 0, u = !1;
6005
+ try {
6006
+ do {
6007
+ const o = await i(
6008
+ M.endpoints[r].initiate(
6009
+ { projectName: e, entityIds: s, first: Ui, after: c },
6010
+ { forceRefetch: !0, subscribe: !1 }
6011
+ )
6012
+ ).unwrap(), { edges: l, pageInfo: p } = o.project.links;
6013
+ for (const f of l) {
6014
+ const y = n === "in" ? f.outputId : f.inputId, h = n === "in" ? f.inputType : f.outputType, g = f.node;
6015
+ a.get(y)?.push({
6016
+ id: f.id,
6017
+ direction: n,
6018
+ linkType: f.linkType,
6019
+ entityType: h,
6020
+ // a node the user may not see is null
6021
+ node: g && {
6022
+ ...g,
6023
+ label: ct(g),
6024
+ parents: g.parents || [],
6025
+ subType: "subType" in g ? g.subType : void 0
6026
+ },
6027
+ isRestricted: !g
6028
+ });
6029
+ }
6030
+ d += l.length, c = p.hasNextPage ? p.endCursor : void 0, u = !!c && d >= qi;
6031
+ } while (c && !u);
6032
+ } catch (o) {
6033
+ return { error: L(o) };
6034
+ }
6035
+ return {
6036
+ data: {
6037
+ entities: [...a].map(([o, l]) => ({ id: o, links: l })),
6038
+ truncated: u
6039
+ }
6040
+ };
6041
+ }
6042
+ })
6043
+ })
6044
+ }), { useGetLinksOfEntitiesQuery: rc } = Bi, Hi = es.enhanceEndpoints({
5993
6045
  endpoints: {
5994
6046
  getMyPermissions: {
5995
6047
  providesTags: (t) => [{ type: "userPermissions" }]
@@ -5998,13 +6050,13 @@ const N = z.injectEndpoints({
5998
6050
  providesTags: (t, e, s) => [{ type: "userProjectPermissions" }]
5999
6051
  }
6000
6052
  }
6001
- }), { useGetMyPermissionsQuery: ec, useGetMyProjectPermissionsQuery: tc } = xi, ks = Ms.enhanceEndpoints({
6053
+ }), { useGetMyPermissionsQuery: ac, useGetMyProjectPermissionsQuery: oc } = Hi, ws = Vs.enhanceEndpoints({
6002
6054
  endpoints: {
6003
6055
  getProductTypes: {
6004
6056
  providesTags: (t, e, s) => [{ type: "productType", id: "LIST" }]
6005
6057
  }
6006
6058
  }
6007
- }), { useGetProductTypesQuery: sc } = ks, Ui = ks.enhanceEndpoints({
6059
+ }), { useGetProductTypesQuery: cc } = ws, Wi = ws.enhanceEndpoints({
6008
6060
  endpoints: {
6009
6061
  createProduct: {
6010
6062
  invalidatesTags: (t, e, { productPostModel: s }) => [
@@ -6012,7 +6064,7 @@ const N = z.injectEndpoints({
6012
6064
  ]
6013
6065
  }
6014
6066
  }
6015
- }), { useCreateProductMutation: nc } = Ui, qi = Q.enhanceEndpoints({
6067
+ }), { useCreateProductMutation: dc } = Wi, zi = Q.enhanceEndpoints({
6016
6068
  endpoints: {
6017
6069
  GetFolderProducts: {
6018
6070
  transformResponse: (t) => (t?.project?.products?.edges || []).map((s) => ({
@@ -6036,7 +6088,7 @@ const N = z.injectEndpoints({
6036
6088
  ] : [{ type: "product", id: s }]
6037
6089
  }
6038
6090
  }
6039
- }), { useGetFolderProductsQuery: ic } = qi, oe = { type: "projectFolder", id: "LIST" }, Ve = Vs.enhanceEndpoints({
6091
+ }), { useGetFolderProductsQuery: uc } = zi, oe = { type: "projectFolder", id: "LIST" }, Ve = Ds.enhanceEndpoints({
6040
6092
  endpoints: {
6041
6093
  getProjectFolders: {
6042
6094
  transformResponse: (t) => t.folders || [],
@@ -6054,7 +6106,7 @@ const N = z.injectEndpoints({
6054
6106
  (i) => {
6055
6107
  const r = {
6056
6108
  ...t,
6057
- id: t.id || ts()
6109
+ id: t.id || ss()
6058
6110
  };
6059
6111
  i.push(r);
6060
6112
  }
@@ -6143,7 +6195,7 @@ const N = z.injectEndpoints({
6143
6195
  })
6144
6196
  ),
6145
6197
  e(
6146
- ft.util.updateQueryData("getProjectsInfinite", {}, (a) => {
6198
+ gt.util.updateQueryData("getProjectsInfinite", {}, (a) => {
6147
6199
  for (const c of a.pages)
6148
6200
  c.projects.forEach((d) => {
6149
6201
  n.includes(d.name) && (d.projectFolder = i || void 0);
@@ -6165,12 +6217,12 @@ const N = z.injectEndpoints({
6165
6217
  }
6166
6218
  }
6167
6219
  }), {
6168
- useGetProjectFoldersQuery: rc,
6169
- useCreateProjectFolderMutation: ac,
6170
- useDeleteProjectFolderMutation: oc,
6171
- useUpdateProjectFolderMutation: cc,
6172
- useSetProjectFoldersOrderMutation: dc,
6173
- useAssignProjectsToFolderMutation: uc
6220
+ useGetProjectFoldersQuery: lc,
6221
+ useCreateProjectFolderMutation: pc,
6222
+ useDeleteProjectFolderMutation: fc,
6223
+ useUpdateProjectFolderMutation: yc,
6224
+ useSetProjectFoldersOrderMutation: gc,
6225
+ useAssignProjectsToFolderMutation: hc
6174
6226
  } = Ve, As = (t, {
6175
6227
  productId: e,
6176
6228
  taskId: s,
@@ -6206,7 +6258,7 @@ const N = z.injectEndpoints({
6206
6258
  a.push(...u);
6207
6259
  }
6208
6260
  return a;
6209
- }, Bi = X.enhanceEndpoints({
6261
+ }, Ki = X.enhanceEndpoints({
6210
6262
  endpoints: {
6211
6263
  getReviewablesForVersion: {
6212
6264
  keepUnusedDataFor: 1,
@@ -6269,7 +6321,7 @@ const N = z.injectEndpoints({
6269
6321
  }
6270
6322
  }
6271
6323
  }
6272
- }), ht = Bi.injectEndpoints({
6324
+ }), vt = Ki.injectEndpoints({
6273
6325
  endpoints: (t) => ({
6274
6326
  // custom endpoint to get reviewables from product/task/folder
6275
6327
  // utilizes getReviewablesForProduct, getReviewablesForTask, getReviewablesForFolder
@@ -6330,16 +6382,16 @@ const N = z.injectEndpoints({
6330
6382
  }),
6331
6383
  hasTranscoder: t.query({
6332
6384
  queryFn: async (e, { dispatch: s }) => {
6333
- const n = await s(bs.endpoints.listAddons.initiate({ details: !1 }));
6385
+ const n = await s(Is.endpoints.listAddons.initiate({ details: !1 }));
6334
6386
  return n.data ? { data: n.data.addons.some((r) => r.name === "transcoder") } : n.error ? { data: !1 } : { data: !1 };
6335
6387
  }
6336
6388
  })
6337
6389
  })
6338
6390
  }), {
6339
- useGetViewerReviewablesQuery: lc,
6340
- useGetReviewablesForVersionQuery: pc,
6341
- useHasTranscoderQuery: fc
6342
- } = ht, Hi = ht.injectEndpoints({
6391
+ useGetViewerReviewablesQuery: mc,
6392
+ useGetReviewablesForVersionQuery: vc,
6393
+ useHasTranscoderQuery: bc
6394
+ } = vt, Ji = vt.injectEndpoints({
6343
6395
  endpoints: (t) => ({
6344
6396
  deleteReviewable: t.mutation(
6345
6397
  {
@@ -6357,13 +6409,13 @@ const N = z.injectEndpoints({
6357
6409
  }
6358
6410
  )
6359
6411
  })
6360
- }), Wi = Hi.enhanceEndpoints({
6412
+ }), Yi = Ji.enhanceEndpoints({
6361
6413
  endpoints: {
6362
6414
  // reviewables list is updated optimistically
6363
6415
  sortVersionReviewables: {
6364
6416
  async onQueryStarted({ projectName: t, versionId: e, sortReviewablesRequest: s }, { dispatch: n, queryFulfilled: i }) {
6365
6417
  const r = n(
6366
- ht.util.updateQueryData(
6418
+ vt.util.updateQueryData(
6367
6419
  "getReviewablesForVersion",
6368
6420
  { projectName: t, versionId: e },
6369
6421
  (a) => {
@@ -6390,16 +6442,16 @@ const N = z.injectEndpoints({
6390
6442
  }
6391
6443
  }
6392
6444
  }), {
6393
- useDeleteReviewableMutation: yc,
6394
- useSortVersionReviewablesMutation: gc,
6395
- useUpdateReviewableMutation: hc
6396
- } = Wi, Jt = (t) => {
6445
+ useDeleteReviewableMutation: Ic,
6446
+ useSortVersionReviewablesMutation: Tc,
6447
+ useUpdateReviewableMutation: kc
6448
+ } = Yi, Yt = (t) => {
6397
6449
  const e = [{ type: "shared", id: "LIST" }];
6398
6450
  return t && e.push({
6399
6451
  type: "shared",
6400
6452
  id: t.toUpperCase()
6401
6453
  }), e;
6402
- }, zi = (t) => {
6454
+ }, Xi = (t) => {
6403
6455
  const e = [];
6404
6456
  for (const s of t) {
6405
6457
  const n = { type: "shared", id: s.value };
@@ -6425,14 +6477,14 @@ const N = z.injectEndpoints({
6425
6477
  }
6426
6478
  }
6427
6479
  return e;
6428
- }, Ki = Xt.enhanceEndpoints({
6480
+ }, Zi = Zt.enhanceEndpoints({
6429
6481
  endpoints: {
6430
6482
  getShareOptions: {
6431
6483
  transformResponse: (t) => t?.options || [],
6432
- providesTags: (t, e, { projectName: s }) => t ? [...zi(t), ...Jt(s)] : Jt(s)
6484
+ providesTags: (t, e, { projectName: s }) => t ? [...Xi(t), ...Yt(s)] : Yt(s)
6433
6485
  }
6434
6486
  }
6435
- }), { useGetShareOptionsQuery: mc } = Ki, Ji = Ds.enhanceEndpoints({
6487
+ }), { useGetShareOptionsQuery: wc } = Zi, er = Os.enhanceEndpoints({
6436
6488
  endpoints: {
6437
6489
  getSiteInfo: {
6438
6490
  providesTags: (t) => t ? [
@@ -6449,7 +6501,7 @@ const N = z.injectEndpoints({
6449
6501
  providesTags: ["info"]
6450
6502
  }
6451
6503
  }
6452
- }), { useGetSiteInfoQuery: vc, useLazyGetSiteInfoQuery: bc, useListFrontendModulesQuery: Ic } = Ji, Yi = rt.enhanceEndpoints({
6504
+ }), { useGetSiteInfoQuery: Ac, useLazyGetSiteInfoQuery: Ec, useListFrontendModulesQuery: Sc } = er, tr = at.enhanceEndpoints({
6453
6505
  endpoints: {
6454
6506
  getTask: {
6455
6507
  providesTags: (t, e, { taskId: s }) => [
@@ -6457,7 +6509,7 @@ const N = z.injectEndpoints({
6457
6509
  ]
6458
6510
  }
6459
6511
  }
6460
- }), { useGetTaskQuery: Tc } = Yi, Xi = (t, e, { state: s, dispatch: n }, i) => {
6512
+ }), { useGetTaskQuery: Pc } = tr, sr = (t, e, { state: s, dispatch: n }, i) => {
6461
6513
  const r = [{ type: "entityListItem", id: t }], a = q.util.selectInvalidatedBy(s, r).filter((c) => c.endpointName === "getListItemsInfinite");
6462
6514
  for (const c of a) {
6463
6515
  const d = n(
@@ -6473,13 +6525,13 @@ const N = z.injectEndpoints({
6473
6525
  );
6474
6526
  i.push(d);
6475
6527
  }
6476
- }, Zi = rt.injectEndpoints({
6528
+ }, nr = at.injectEndpoints({
6477
6529
  endpoints: (t) => ({
6478
6530
  updateSubtasks: t.mutation({
6479
6531
  queryFn: async ({ projectName: e, taskId: s, subtasks: n }, { dispatch: i }) => {
6480
6532
  try {
6481
6533
  return await i(
6482
- rt.endpoints.updateTask.initiate({
6534
+ at.endpoints.updateTask.initiate({
6483
6535
  projectName: e,
6484
6536
  taskId: s,
6485
6537
  taskPatchModel: {
@@ -6499,7 +6551,7 @@ const N = z.injectEndpoints({
6499
6551
  data: { subtasks: s }
6500
6552
  }
6501
6553
  ];
6502
- Ee(d, { state: a, dispatch: n }, c), ds(d, { state: a, dispatch: n }, c), Xi(e, s, { state: a, dispatch: n }, c);
6554
+ Ee(d, { state: a, dispatch: n }, c), us(d, { state: a, dispatch: n }, c), sr(e, s, { state: a, dispatch: n }, c);
6503
6555
  try {
6504
6556
  await i;
6505
6557
  } catch {
@@ -6508,7 +6560,7 @@ const N = z.injectEndpoints({
6508
6560
  }
6509
6561
  })
6510
6562
  })
6511
- }), { useUpdateSubtasksMutation: kc } = Zi, te = { type: "team", id: "LIST" }, er = Os.enhanceEndpoints({
6563
+ }), { useUpdateSubtasksMutation: Lc } = nr, te = { type: "team", id: "LIST" }, ir = $s.enhanceEndpoints({
6512
6564
  endpoints: {
6513
6565
  getTeams: {
6514
6566
  providesTags: (t) => t ? [te, ...t.map((e) => ({ type: "team", id: e.name }))] : [te]
@@ -6546,13 +6598,13 @@ const N = z.injectEndpoints({
6546
6598
  }
6547
6599
  }
6548
6600
  }), {
6549
- useGetTeamsQuery: Ac,
6550
- useUpdateTeamsMutation: wc,
6551
- useSaveTeamMutation: Ec,
6552
- useDeleteTeamMutation: Sc,
6553
- useSaveTeamMemberMutation: Pc,
6554
- useDeleteTeamMemberMutation: Lc
6555
- } = er, tr = `
6601
+ useGetTeamsQuery: jc,
6602
+ useUpdateTeamsMutation: Fc,
6603
+ useSaveTeamMutation: _c,
6604
+ useDeleteTeamMutation: Rc,
6605
+ useSaveTeamMemberMutation: Gc,
6606
+ useDeleteTeamMemberMutation: Cc
6607
+ } = ir, rr = `
6556
6608
  query UserList($name:String!) {
6557
6609
  users(name: $name) {
6558
6610
  edges {
@@ -6574,7 +6626,7 @@ const N = z.injectEndpoints({
6574
6626
  }
6575
6627
  }
6576
6628
  }
6577
- `, sr = `
6629
+ `, ar = `
6578
6630
  query UserList {
6579
6631
  users(last: 5000, isSupport: false) {
6580
6632
  edges {
@@ -6602,7 +6654,7 @@ const N = z.injectEndpoints({
6602
6654
  }
6603
6655
  }
6604
6656
  }
6605
- `, nr = `
6657
+ `, or = `
6606
6658
  query Assignees($names: [String!]!){
6607
6659
  users(names: $names, isSupport: false) {
6608
6660
  edges {
@@ -6614,7 +6666,7 @@ query Assignees($names: [String!]!){
6614
6666
  }
6615
6667
  }
6616
6668
  }
6617
- }`, ir = `
6669
+ }`, cr = `
6618
6670
  query Assignees($projectName: String) {
6619
6671
  users(last: 5000, projectName: $projectName, isSupport: false) {
6620
6672
  edges {
@@ -6626,7 +6678,7 @@ query Assignees($projectName: String) {
6626
6678
  }
6627
6679
  }
6628
6680
  }
6629
- }`, rr = (t) => {
6681
+ }`, dr = (t) => {
6630
6682
  const e = String(t.value);
6631
6683
  return {
6632
6684
  name: e,
@@ -6634,7 +6686,7 @@ query Assignees($projectName: String) {
6634
6686
  avatarUrl: `/api/users/${e}/avatar`,
6635
6687
  hidden: t.hidden
6636
6688
  };
6637
- }, ar = Zt.enhanceEndpoints({
6689
+ }, ur = es.enhanceEndpoints({
6638
6690
  endpoints: {
6639
6691
  getCurrentUser: {
6640
6692
  providesTags: [{ type: "user", id: "LIST" }]
@@ -6647,14 +6699,14 @@ query Assignees($projectName: String) {
6647
6699
  providesTags: (t, e, { userName: s }) => [{ type: "session", id: s }]
6648
6700
  }
6649
6701
  }
6650
- }), or = Q.injectEndpoints({
6702
+ }), lr = Q.injectEndpoints({
6651
6703
  endpoints: (t) => ({
6652
6704
  getUsers: t.query({
6653
6705
  query: () => ({
6654
6706
  url: "/graphql",
6655
6707
  method: "POST",
6656
6708
  body: {
6657
- query: sr,
6709
+ query: ar,
6658
6710
  variables: {}
6659
6711
  }
6660
6712
  }),
@@ -6676,7 +6728,7 @@ query Assignees($projectName: String) {
6676
6728
  url: "/graphql",
6677
6729
  method: "POST",
6678
6730
  body: {
6679
- query: tr,
6731
+ query: rr,
6680
6732
  variables: { name: e }
6681
6733
  }
6682
6734
  }),
@@ -6691,7 +6743,7 @@ query Assignees($projectName: String) {
6691
6743
  async queryFn({ names: e, projectName: s }, n, i, r) {
6692
6744
  if (!e && s) {
6693
6745
  const d = await n.dispatch(
6694
- $s.endpoints.getEnumOptions.initiate(
6746
+ xs.endpoints.getEnumOptions.initiate(
6695
6747
  {
6696
6748
  enumName: "users",
6697
6749
  params: { project_name: s, mode: "users", hide_inactive: !0 }
@@ -6699,13 +6751,13 @@ query Assignees($projectName: String) {
6699
6751
  { subscribe: !1, forceRefetch: n.forced }
6700
6752
  )
6701
6753
  ).unwrap();
6702
- return d.error ? { error: L(d.error) } : { data: d.items.map(rr) };
6754
+ return d.error ? { error: L(d.error) } : { data: d.items.map(dr) };
6703
6755
  }
6704
6756
  const a = await r({
6705
6757
  url: "/graphql",
6706
6758
  method: "POST",
6707
6759
  body: {
6708
- query: e ? nr : ir,
6760
+ query: e ? or : cr,
6709
6761
  variables: { names: e, projectName: s }
6710
6762
  }
6711
6763
  });
@@ -6729,7 +6781,7 @@ query Assignees($projectName: String) {
6729
6781
  })
6730
6782
  }),
6731
6783
  overrideExisting: !0
6732
- }), cr = or.enhanceEndpoints({
6784
+ }), pr = lr.enhanceEndpoints({
6733
6785
  endpoints: {
6734
6786
  GetAllProjectUsersAsAssignee: {
6735
6787
  transformResponse: (t) => t.users.edges.map((e) => ({
@@ -6753,14 +6805,14 @@ query Assignees($projectName: String) {
6753
6805
  }
6754
6806
  }
6755
6807
  }), {
6756
- useGetAllProjectUsersAsAssigneeQuery: jc,
6757
- useLazyGetAllProjectUsersAsAssigneeQuery: Fc,
6758
- useGetActiveUsersCountQuery: _c,
6759
- useGetAllAssigneesQuery: Rc,
6760
- useGetUsersQuery: Gc,
6761
- useGetUserByNameQuery: Cc,
6762
- useGetUsersAssigneeQuery: Nc
6763
- } = cr, { useGetUserSessionsQuery: Qc, useGetCurrentUserQuery: Mc, useGetUserQuery: Vc } = ar, dr = Se.enhanceEndpoints({
6808
+ useGetAllProjectUsersAsAssigneeQuery: Nc,
6809
+ useLazyGetAllProjectUsersAsAssigneeQuery: Qc,
6810
+ useGetActiveUsersCountQuery: Mc,
6811
+ useGetAllAssigneesQuery: Vc,
6812
+ useGetUsersQuery: Dc,
6813
+ useGetUserByNameQuery: Oc,
6814
+ useGetUsersAssigneeQuery: $c
6815
+ } = pr, { useGetUserSessionsQuery: xc, useGetCurrentUserQuery: Uc, useGetUserQuery: qc } = ur, fr = Se.enhanceEndpoints({
6764
6816
  endpoints: {
6765
6817
  listGuestUsers: {
6766
6818
  providesTags: (t) => t?.users ? [
@@ -6775,7 +6827,7 @@ query Assignees($projectName: String) {
6775
6827
  invalidatesTags: (t, e, s) => [{ type: "guest", id: s.email }]
6776
6828
  }
6777
6829
  }
6778
- }), { useListGuestUsersQuery: Dc, useAddGuestUserMutation: Oc, useRemoveGuestUserMutation: $c } = dr, ur = Q.enhanceEndpoints({
6830
+ }), { useListGuestUsersQuery: Bc, useAddGuestUserMutation: Hc, useRemoveGuestUserMutation: Wc } = fr, yr = Q.enhanceEndpoints({
6779
6831
  endpoints: {
6780
6832
  GetLatestProductVersion: {
6781
6833
  transformResponse: (t) => t.project.versions.edges[0]?.node,
@@ -6785,7 +6837,7 @@ query Assignees($projectName: String) {
6785
6837
  ] : [{ type: "product", id: s }]
6786
6838
  }
6787
6839
  }
6788
- }), { useGetLatestProductVersionQuery: xc } = ur, lr = xs.enhanceEndpoints({
6840
+ }), { useGetLatestProductVersionQuery: zc } = yr, gr = Us.enhanceEndpoints({
6789
6841
  endpoints: {
6790
6842
  getVersion: {},
6791
6843
  createVersion: {
@@ -6804,10 +6856,10 @@ query Assignees($projectName: String) {
6804
6856
  ]
6805
6857
  }
6806
6858
  }
6807
- }), { useGetVersionQuery: Uc, useCreateVersionMutation: qc, useDeleteVersionMutation: Bc } = lr, B = (t, e) => ({
6859
+ }), { useGetVersionQuery: Kc, useCreateVersionMutation: Jc, useDeleteVersionMutation: Yc } = gr, B = (t, e) => ({
6808
6860
  type: "view",
6809
6861
  id: `${t.toUpperCase()}${e ? `:${e.toUpperCase()}` : ""}`
6810
- }), Ce = { type: "view", id: "LIST" }, M = Us.enhanceEndpoints({
6862
+ }), Ce = { type: "view", id: "LIST" }, V = qs.enhanceEndpoints({
6811
6863
  endpoints: {
6812
6864
  listViews: {
6813
6865
  transformResponse: (t) => t?.views || [],
@@ -6835,17 +6887,17 @@ query Assignees($projectName: String) {
6835
6887
  }
6836
6888
  }
6837
6889
  }), {
6838
- useListViewsQuery: Hc,
6839
- useGetWorkingViewQuery: Wc,
6840
- useGetViewQuery: zc,
6841
- useGetDefaultViewQuery: Kc,
6842
- useGetBaseViewQuery: Jc
6843
- } = M, pr = M.enhanceEndpoints({
6890
+ useListViewsQuery: Xc,
6891
+ useGetWorkingViewQuery: Zc,
6892
+ useGetViewQuery: ed,
6893
+ useGetDefaultViewQuery: td,
6894
+ useGetBaseViewQuery: sd
6895
+ } = V, hr = V.enhanceEndpoints({
6844
6896
  endpoints: {
6845
6897
  createView: {
6846
6898
  onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
6847
6899
  const { payload: i } = t, a = n().user?.name, c = e(
6848
- M.util.updateQueryData(
6900
+ V.util.updateQueryData(
6849
6901
  "listViews",
6850
6902
  { viewType: t.viewType, projectName: t.projectName },
6851
6903
  (o) => {
@@ -6874,7 +6926,7 @@ query Assignees($projectName: String) {
6874
6926
  );
6875
6927
  let d;
6876
6928
  i.working && (d = e(
6877
- M.util.updateQueryData(
6929
+ V.util.updateQueryData(
6878
6930
  "getWorkingView",
6879
6931
  { viewType: t.viewType, projectName: t.projectName },
6880
6932
  (o) => {
@@ -6894,7 +6946,7 @@ query Assignees($projectName: String) {
6894
6946
  let u;
6895
6947
  if (i.label === "__base__") {
6896
6948
  const o = {
6897
- id: Bs(),
6949
+ id: Hs(),
6898
6950
  ...i,
6899
6951
  working: !1,
6900
6952
  scope: t.projectName ? "project" : "studio",
@@ -6904,7 +6956,7 @@ query Assignees($projectName: String) {
6904
6956
  position: 0
6905
6957
  };
6906
6958
  u = e(
6907
- M.util.updateQueryData(
6959
+ V.util.updateQueryData(
6908
6960
  "getBaseView",
6909
6961
  { viewType: t.viewType, projectName: t.projectName },
6910
6962
  (l) => {
@@ -6912,7 +6964,7 @@ query Assignees($projectName: String) {
6912
6964
  }
6913
6965
  )
6914
6966
  ), u?.patches?.length || e(
6915
- M.util.upsertQueryData(
6967
+ V.util.upsertQueryData(
6916
6968
  "getBaseView",
6917
6969
  { viewType: t.viewType, projectName: t.projectName },
6918
6970
  o
@@ -6936,14 +6988,14 @@ query Assignees($projectName: String) {
6936
6988
  const { viewId: n, payload: i, viewType: r, projectName: a } = t, c = [];
6937
6989
  c.push(
6938
6990
  e(
6939
- M.util.updateQueryData("listViews", { viewType: r, projectName: a }, (d) => {
6991
+ V.util.updateQueryData("listViews", { viewType: r, projectName: a }, (d) => {
6940
6992
  const u = d.find((o) => o.id === n);
6941
6993
  u && Object.assign(u, i);
6942
6994
  })
6943
6995
  )
6944
6996
  ), c.push(
6945
6997
  e(
6946
- M.util.updateQueryData(
6998
+ V.util.updateQueryData(
6947
6999
  "getWorkingView",
6948
7000
  { viewType: r, projectName: a },
6949
7001
  (d) => {
@@ -6953,7 +7005,7 @@ query Assignees($projectName: String) {
6953
7005
  )
6954
7006
  ), c.push(
6955
7007
  e(
6956
- M.util.updateQueryData(
7008
+ V.util.updateQueryData(
6957
7009
  "getDefaultView",
6958
7010
  { viewType: r, projectName: a },
6959
7011
  (d) => {
@@ -6963,7 +7015,7 @@ query Assignees($projectName: String) {
6963
7015
  )
6964
7016
  ), c.push(
6965
7017
  e(
6966
- M.util.updateQueryData(
7018
+ V.util.updateQueryData(
6967
7019
  "getView",
6968
7020
  { viewType: r, viewId: n, projectName: a },
6969
7021
  (d) => {
@@ -6996,7 +7048,7 @@ query Assignees($projectName: String) {
6996
7048
  const { viewId: i, projectName: r, viewType: a } = t, c = n(), d = [];
6997
7049
  d.push(
6998
7050
  e(
6999
- M.util.updateQueryData("listViews", { viewType: a, projectName: r }, (l) => l.filter((p) => p.id !== i))
7051
+ V.util.updateQueryData("listViews", { viewType: a, projectName: r }, (l) => l.filter((p) => p.id !== i))
7000
7052
  )
7001
7053
  );
7002
7054
  const u = [
@@ -7006,13 +7058,13 @@ query Assignees($projectName: String) {
7006
7058
  ], o = ["getBaseView", "getDefaultView"];
7007
7059
  for (const l of u)
7008
7060
  for (const p of o) {
7009
- const f = M.endpoints[p].select({
7061
+ const f = V.endpoints[p].select({
7010
7062
  viewType: a,
7011
7063
  projectName: l.projectName
7012
7064
  })(c);
7013
7065
  f?.isSuccess && f.data?.id === i && d.push(
7014
7066
  e(
7015
- M.util.updateQueryData(
7067
+ V.util.updateQueryData(
7016
7068
  p,
7017
7069
  { viewType: a, projectName: l.projectName },
7018
7070
  () => null
@@ -7035,18 +7087,18 @@ query Assignees($projectName: String) {
7035
7087
  },
7036
7088
  setDefaultView: {
7037
7089
  onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
7038
- const { setDefaultViewRequestModel: i, projectName: r, viewType: a } = t, { viewId: c } = i, d = n(), u = M.endpoints.getDefaultView.select({
7090
+ const { setDefaultViewRequestModel: i, projectName: r, viewType: a } = t, { viewId: c } = i, d = n(), u = V.endpoints.getDefaultView.select({
7039
7091
  viewType: a,
7040
7092
  projectName: r
7041
7093
  })(d);
7042
7094
  if (u?.isSuccess && u.data?.id) {
7043
7095
  const o = e(
7044
- M.util.updateQueryData(
7096
+ V.util.updateQueryData(
7045
7097
  "getDefaultView",
7046
7098
  { viewType: a, projectName: r },
7047
7099
  (l) => {
7048
7100
  if (l) {
7049
- const f = M.endpoints.listViews.select({
7101
+ const f = V.endpoints.listViews.select({
7050
7102
  viewType: a,
7051
7103
  projectName: r
7052
7104
  })(d)?.data?.find((y) => y.id === c);
@@ -7073,16 +7125,16 @@ query Assignees($projectName: String) {
7073
7125
  }
7074
7126
  }
7075
7127
  }), {
7076
- useCreateViewMutation: Yc,
7077
- useUpdateViewMutation: Xc,
7078
- useDeleteViewMutation: Zc,
7079
- useSetDefaultViewMutation: ed
7080
- } = pr, Be = Pe.enhanceEndpoints({
7128
+ useCreateViewMutation: nd,
7129
+ useUpdateViewMutation: id,
7130
+ useDeleteViewMutation: rd,
7131
+ useSetDefaultViewMutation: ad
7132
+ } = hr, Be = Pe.enhanceEndpoints({
7081
7133
  endpoints: {
7082
7134
  getEntityWatchers: {},
7083
7135
  setEntityWatchers: {}
7084
7136
  }
7085
- }), Yt = Be.injectEndpoints({
7137
+ }), Xt = Be.injectEndpoints({
7086
7138
  endpoints: (t) => ({
7087
7139
  getEntitiesWatchers: t.query({
7088
7140
  async queryFn({ entities: e = [] }, { dispatch: s }) {
@@ -7109,7 +7161,7 @@ query Assignees($projectName: String) {
7109
7161
  ])
7110
7162
  })
7111
7163
  })
7112
- }), fr = Yt.injectEndpoints({
7164
+ }), mr = Xt.injectEndpoints({
7113
7165
  endpoints: (t) => ({
7114
7166
  setEntitiesWatchers: t.mutation({
7115
7167
  async queryFn({ entities: e = [] }, { dispatch: s }) {
@@ -7136,7 +7188,7 @@ query Assignees($projectName: String) {
7136
7188
  try {
7137
7189
  c.forEach((u) => {
7138
7190
  const o = s(
7139
- Yt.util.updateQueryData(
7191
+ Xt.util.updateQueryData(
7140
7192
  "getEntitiesWatchers",
7141
7193
  u.originalArgs,
7142
7194
  (l) => {
@@ -7161,293 +7213,295 @@ query Assignees($projectName: String) {
7161
7213
  invalidatesTags: (e, s, { entities: n }) => n.some((i) => i.entityType === "task") ? [{ type: "watchers", id: "VERSION-LIST" }] : []
7162
7214
  })
7163
7215
  })
7164
- }), { useGetEntitiesWatchersQuery: td, useSetEntitiesWatchersMutation: sd } = fr, yr = qs.enhanceEndpoints({
7216
+ }), { useGetEntitiesWatchersQuery: od, useSetEntitiesWatchersMutation: cd } = mr, vr = Bs.enhanceEndpoints({
7165
7217
  endpoints: {
7166
7218
  resolveUris: {}
7167
7219
  }
7168
- }), { useResolveUrisMutation: nd } = yr;
7220
+ }), { useResolveUrisMutation: dd } = vr;
7169
7221
  export {
7170
- wi as $,
7171
- yi as A,
7172
- zn as B,
7173
- se as C,
7174
- Jn as D,
7175
- Oi as E,
7176
- Rn as F,
7177
- Kn as G,
7178
- $e as H,
7179
- Nn as I,
7180
- ye as J,
7181
- Nr as K,
7182
- Ut as L,
7183
- Sn as M,
7184
- os as N,
7185
- pi as O,
7186
- _n as P,
7187
- ft as Q,
7188
- ht as R,
7189
- B as S,
7190
- We as T,
7191
- M as U,
7192
- Fn as V,
7193
- $r as W,
7194
- Vi as X,
7195
- we as Y,
7196
- N as Z,
7197
- at as _,
7198
- et as a,
7199
- yc as a$,
7200
- Ae as a0,
7201
- ke as a1,
7202
- Ur as a2,
7203
- Ft as a3,
7204
- R as a4,
7205
- ds as a5,
7206
- cs as a6,
7207
- Xi as a7,
7208
- Ra as a8,
7209
- qe as a9,
7210
- Oc as aA,
7211
- uc as aB,
7212
- Eo as aC,
7213
- Lo as aD,
7214
- so as aE,
7215
- Xo as aF,
7216
- Wo as aG,
7217
- Ha as aH,
7218
- $a as aI,
7219
- nc as aJ,
7220
- ac as aK,
7221
- ro as aL,
7222
- za as aM,
7223
- To as aN,
7224
- qc as aO,
7225
- Yc as aP,
7226
- jr as aQ,
7227
- no as aR,
7228
- go as aS,
7229
- Po as aT,
7230
- Yo as aU,
7231
- zo as aV,
7232
- Wa as aW,
7233
- Ua as aX,
7234
- oc as aY,
7235
- ga as aZ,
7236
- ao as a_,
7237
- Ee as aa,
7238
- ni as ab,
7239
- ai as ac,
7240
- ii as ad,
7241
- xi as ae,
7242
- gt as af,
7243
- ee as ag,
7244
- W as ah,
7245
- Hn as ai,
7222
+ ot as $,
7223
+ q as A,
7224
+ gi as B,
7225
+ Kn as C,
7226
+ se as D,
7227
+ $i as E,
7228
+ Gn as F,
7229
+ Yn as G,
7230
+ Jn as H,
7231
+ $e as I,
7232
+ Qn as J,
7233
+ ye as K,
7234
+ qt as L,
7235
+ Pn as M,
7236
+ Or as N,
7237
+ cs as O,
7238
+ Rn as P,
7239
+ fi as Q,
7240
+ gt as R,
7241
+ vt as S,
7242
+ ze as T,
7243
+ B as U,
7244
+ _n as V,
7245
+ V as W,
7246
+ Hr as X,
7247
+ Di as Y,
7248
+ Ae as Z,
7249
+ N as _,
7250
+ tt as a,
7251
+ po as a$,
7252
+ Ei as a0,
7253
+ we as a1,
7254
+ ke as a2,
7255
+ zr as a3,
7256
+ Rt as a4,
7257
+ R as a5,
7258
+ us as a6,
7259
+ ds as a7,
7260
+ sr as a8,
7261
+ Ma as a9,
7262
+ _t as aA,
7263
+ Hc as aB,
7264
+ hc as aC,
7265
+ Fo as aD,
7266
+ Go as aE,
7267
+ oo as aF,
7268
+ nc as aG,
7269
+ Xo as aH,
7270
+ Ya as aI,
7271
+ Ha as aJ,
7272
+ dc as aK,
7273
+ pc as aL,
7274
+ lo as aM,
7275
+ Za as aN,
7276
+ So as aO,
7277
+ Jc as aP,
7278
+ nd as aQ,
7279
+ Cr as aR,
7280
+ co as aS,
7281
+ Io as aT,
7282
+ Ro as aU,
7283
+ sc as aV,
7284
+ Zo as aW,
7285
+ Xa as aX,
7286
+ za as aY,
7287
+ fc as aZ,
7288
+ Ia as a_,
7289
+ qe as aa,
7290
+ Ee as ab,
7291
+ ii as ac,
7292
+ oi as ad,
7293
+ ri as ae,
7294
+ Hi as af,
7295
+ mt as ag,
7296
+ ee as ah,
7297
+ W as ai,
7246
7298
  Wn as aj,
7247
- Bn as ak,
7248
- xe as al,
7249
- Ai as am,
7250
- Wi as an,
7251
- xr as ao,
7252
- Ki as ap,
7253
- Dr as aq,
7254
- Ji as ar,
7255
- kn as as,
7256
- er as at,
7257
- Uo as au,
7258
- Qr as av,
7259
- je as aw,
7260
- Xn as ax,
7261
- ys as ay,
7262
- jt as az,
7263
- wt as b,
7264
- pa as b$,
7265
- Lc as b0,
7266
- Sc as b1,
7267
- Bc as b2,
7268
- Zc as b3,
7269
- No as b4,
7270
- ya as b5,
7271
- ho as b6,
7272
- Rr as b7,
7273
- wr as b8,
7274
- Er as b9,
7275
- oo as bA,
7276
- aa as bB,
7277
- ra as bC,
7278
- Ka as bD,
7279
- ia as bE,
7280
- Qo as bF,
7281
- Jr as bG,
7282
- ea as bH,
7283
- Xr as bI,
7284
- Zr as bJ,
7285
- ic as bK,
7286
- Kr as bL,
7287
- Fa as bM,
7288
- Ia as bN,
7289
- ba as bO,
7290
- xc as bP,
7291
- qo as bQ,
7292
- Qa as bR,
7293
- Na as bS,
7294
- Ma as bT,
7295
- ec as bU,
7296
- tc as bV,
7297
- qr as bW,
7298
- ca as bX,
7299
- Ea as bY,
7300
- ja as bZ,
7301
- po as b_,
7302
- Ar as ba,
7303
- Gr as bb,
7304
- Fr as bc,
7305
- _c as bd,
7306
- Ja as be,
7307
- eo as bf,
7308
- Za as bg,
7309
- co as bh,
7310
- to as bi,
7311
- Rc as bj,
7312
- jc as bk,
7313
- vo as bl,
7314
- mo as bm,
7315
- Jc as bn,
7316
- Oo as bo,
7317
- Mc as bp,
7318
- yo as bq,
7319
- Kc as br,
7320
- Xa as bs,
7321
- sa as bt,
7322
- td as bu,
7323
- Jo as bv,
7324
- Ca as bw,
7325
- xo as bx,
7326
- Ho as by,
7327
- Oa as bz,
7328
- jn as c,
7329
- Ec as c$,
7330
- So as c0,
7331
- rc as c1,
7332
- ua as c2,
7333
- Sr as c3,
7334
- uo as c4,
7335
- fa as c5,
7336
- Ta as c6,
7337
- pc as c7,
7338
- Br as c8,
7339
- da as c9,
7340
- Wc as cA,
7341
- Go as cB,
7342
- fc as cC,
7343
- _r as cD,
7344
- Ya as cE,
7345
- Fc as cF,
7346
- na as cG,
7347
- oa as cH,
7348
- ta as cI,
7349
- Da as cJ,
7350
- Va as cK,
7351
- bc as cL,
7352
- zr as cM,
7353
- wo as cN,
7354
- lo as cO,
7355
- Ao as cP,
7356
- Ic as cQ,
7357
- Dc as cR,
7358
- la as cS,
7359
- Hc as cT,
7360
- Fo as cU,
7361
- Io as cV,
7362
- jo as cW,
7363
- $c as cX,
7364
- nd as cY,
7365
- Lr as cZ,
7366
- Pc as c_,
7367
- Zo as ca,
7368
- Vo as cb,
7369
- Mo as cc,
7370
- Do as cd,
7371
- fo as ce,
7372
- mc as cf,
7373
- vc as cg,
7374
- kr as ch,
7375
- Yr as ci,
7376
- Tc as cj,
7377
- Wr as ck,
7378
- Hr as cl,
7379
- Ac as cm,
7380
- Cc as cn,
7381
- ko as co,
7382
- Vc as cp,
7383
- Qc as cq,
7384
- Nc as cr,
7385
- Gc as cs,
7386
- Uc as ct,
7387
- La as cu,
7388
- Sa as cv,
7389
- Pa as cw,
7390
- wa as cx,
7391
- zc as cy,
7392
- lc as cz,
7393
- ae as d,
7394
- Cr as d0,
7395
- bo as d1,
7396
- ed as d2,
7397
- sd as d3,
7398
- Bo as d4,
7399
- ha as d5,
7400
- va as d6,
7401
- dc as d7,
7402
- Pr as d8,
7403
- $o as d9,
7404
- Vr as dA,
7405
- is as dB,
7406
- Co as da,
7407
- gc as db,
7408
- Ro as dc,
7409
- io as dd,
7410
- _o as de,
7411
- ka as df,
7412
- Ko as dg,
7413
- Ba as dh,
7414
- qa as di,
7415
- xa as dj,
7416
- Aa as dk,
7417
- Ga as dl,
7418
- cc as dm,
7419
- ma as dn,
7420
- hc as dp,
7421
- kc as dq,
7422
- wc as dr,
7423
- Xc as ds,
7424
- qn as dt,
7425
- lr as du,
7426
- pr as dv,
7427
- fr as dw,
7428
- Ri as dx,
7429
- sc as dy,
7430
- rs as dz,
7431
- ki as e,
7432
- bs as f,
7433
- mn as g,
7434
- Si as h,
7435
- Ys as i,
7299
+ zn as ak,
7300
+ Hn as al,
7301
+ xe as am,
7302
+ Ai as an,
7303
+ Yi as ao,
7304
+ Wr as ap,
7305
+ Zi as aq,
7306
+ qr as ar,
7307
+ er as as,
7308
+ wn as at,
7309
+ ir as au,
7310
+ zo as av,
7311
+ $r as aw,
7312
+ je as ax,
7313
+ Zn as ay,
7314
+ gs as az,
7315
+ qi as b,
7316
+ Ca as b$,
7317
+ Ic as b0,
7318
+ Cc as b1,
7319
+ Rc as b2,
7320
+ Yc as b3,
7321
+ rd as b4,
7322
+ Oo as b5,
7323
+ ba as b6,
7324
+ To as b7,
7325
+ Mr as b8,
7326
+ jr as b9,
7327
+ Ba as bA,
7328
+ fo as bB,
7329
+ la as bC,
7330
+ ua as bD,
7331
+ eo as bE,
7332
+ da as bF,
7333
+ $o as bG,
7334
+ ta as bH,
7335
+ ra as bI,
7336
+ na as bJ,
7337
+ ia as bK,
7338
+ uc as bL,
7339
+ ea as bM,
7340
+ Na as bN,
7341
+ Ea as bO,
7342
+ Aa as bP,
7343
+ zc as bQ,
7344
+ rc as bR,
7345
+ Ko as bS,
7346
+ $a as bT,
7347
+ Oa as bU,
7348
+ xa as bV,
7349
+ ac as bW,
7350
+ oc as bX,
7351
+ Kr as bY,
7352
+ fa as bZ,
7353
+ Fa as b_,
7354
+ Fr as ba,
7355
+ Lr as bb,
7356
+ Vr as bc,
7357
+ Nr as bd,
7358
+ Mc as be,
7359
+ to as bf,
7360
+ ro as bg,
7361
+ io as bh,
7362
+ yo as bi,
7363
+ ao as bj,
7364
+ Vc as bk,
7365
+ Nc as bl,
7366
+ wo as bm,
7367
+ ko as bn,
7368
+ sd as bo,
7369
+ Bo as bp,
7370
+ Uc as bq,
7371
+ bo as br,
7372
+ td as bs,
7373
+ no as bt,
7374
+ oa as bu,
7375
+ od as bv,
7376
+ tc as bw,
7377
+ Da as bx,
7378
+ Wo as by,
7379
+ Yo as bz,
7380
+ St as c,
7381
+ Gr as c$,
7382
+ mo as c0,
7383
+ ma as c1,
7384
+ _o as c2,
7385
+ lc as c3,
7386
+ ga as c4,
7387
+ _r as c5,
7388
+ go as c6,
7389
+ va as c7,
7390
+ Sa as c8,
7391
+ vc as c9,
7392
+ ed as cA,
7393
+ mc as cB,
7394
+ Zc as cC,
7395
+ Vo as cD,
7396
+ bc as cE,
7397
+ Qr as cF,
7398
+ so as cG,
7399
+ Qc as cH,
7400
+ ca as cI,
7401
+ pa as cJ,
7402
+ aa as cK,
7403
+ qa as cL,
7404
+ Ua as cM,
7405
+ Ec as cN,
7406
+ Zr as cO,
7407
+ jo as cP,
7408
+ ho as cQ,
7409
+ Lo as cR,
7410
+ Sc as cS,
7411
+ Bc as cT,
7412
+ ha as cU,
7413
+ Xc as cV,
7414
+ No as cW,
7415
+ Eo as cX,
7416
+ Co as cY,
7417
+ Wc as cZ,
7418
+ dd as c_,
7419
+ Jr as ca,
7420
+ ya as cb,
7421
+ ic as cc,
7422
+ Uo as cd,
7423
+ xo as ce,
7424
+ qo as cf,
7425
+ vo as cg,
7426
+ wc as ch,
7427
+ Ac as ci,
7428
+ Pr as cj,
7429
+ sa as ck,
7430
+ Pc as cl,
7431
+ Xr as cm,
7432
+ Yr as cn,
7433
+ jc as co,
7434
+ Oc as cp,
7435
+ Po as cq,
7436
+ qc as cr,
7437
+ xc as cs,
7438
+ $c as ct,
7439
+ Dc as cu,
7440
+ Kc as cv,
7441
+ Ga as cw,
7442
+ _a as cx,
7443
+ Ra as cy,
7444
+ ja as cz,
7445
+ Fn as d,
7446
+ Gc as d0,
7447
+ _c as d1,
7448
+ Dr as d2,
7449
+ Ao as d3,
7450
+ ad as d4,
7451
+ cd as d5,
7452
+ Jo as d6,
7453
+ Ta as d7,
7454
+ wa as d8,
7455
+ gc as d9,
7456
+ cc as dA,
7457
+ as as dB,
7458
+ Ur as dC,
7459
+ rs as dD,
7460
+ Rr as da,
7461
+ Ho as db,
7462
+ Do as dc,
7463
+ Tc as dd,
7464
+ Mo as de,
7465
+ uo as df,
7466
+ Qo as dg,
7467
+ Pa as dh,
7468
+ ec as di,
7469
+ Ja as dj,
7470
+ Ka as dk,
7471
+ Wa as dl,
7472
+ La as dm,
7473
+ Va as dn,
7474
+ yc as dp,
7475
+ ka as dq,
7476
+ kc as dr,
7477
+ Lc as ds,
7478
+ Fc as dt,
7479
+ id as du,
7480
+ Bn as dv,
7481
+ gr as dw,
7482
+ hr as dx,
7483
+ mr as dy,
7484
+ Gi as dz,
7485
+ ae as e,
7486
+ wi as f,
7487
+ Is as g,
7488
+ vn as h,
7489
+ Xs as i,
7436
7490
  Pi as j,
7437
- Or as k,
7438
- _i as l,
7439
- fe as m,
7440
- Mr as n,
7441
- Gi as o,
7442
- di as p,
7443
- Ie as q,
7444
- _a as r,
7445
- Ln as s,
7446
- de as t,
7447
- Ks as u,
7448
- z as v,
7449
- us as w,
7450
- le as x,
7451
- Mi as y,
7452
- q as z
7491
+ Li as k,
7492
+ Br as l,
7493
+ Ri as m,
7494
+ fe as n,
7495
+ xr as o,
7496
+ Ci as p,
7497
+ ui as q,
7498
+ Ie as r,
7499
+ Qa as s,
7500
+ jn as t,
7501
+ Js as u,
7502
+ de as v,
7503
+ z as w,
7504
+ ls as x,
7505
+ le as y,
7506
+ Vi as z
7453
7507
  };