@ynput/ayon-frontend-shared 0.6.6 → 0.6.8

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 (53) hide show
  1. package/dist/DetailsPanel.es.js +4 -4
  2. package/dist/ListTable.es.js +2 -2
  3. package/dist/NewEntity.es.js +49 -49
  4. package/dist/ProjectTreeTable.es.js +501 -496
  5. package/dist/Slicer.es.js +27 -27
  6. package/dist/Views.es.js +213 -206
  7. package/dist/api.es.js +362 -360
  8. package/dist/chunks/Actions.es.js +21 -21
  9. package/dist/chunks/CodeEditor.es.js +30 -0
  10. package/dist/chunks/ColumnDropIndicator.es.js +5 -5
  11. package/dist/chunks/ColumnDropIndicator.styled.es.js +24 -24
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
  13. package/dist/chunks/DeleteEntitiesContextInstance.es.js +96 -96
  14. package/dist/chunks/EmptyPlaceholder.es.js +9 -9
  15. package/dist/chunks/EntityPath.es.js +3 -3
  16. package/dist/chunks/EntityTooltip.es.js +1 -1
  17. package/dist/chunks/EntityUpdatesContext.es.js +1 -1
  18. package/dist/chunks/Feed.es.js +1625 -1573
  19. package/dist/chunks/JsonViewer.es.js +1 -1
  20. package/dist/chunks/Menu.es.js +1 -1
  21. package/dist/chunks/MenuItem.es.js +25 -25
  22. package/dist/chunks/MetaWidget.es.js +1537 -1516
  23. package/dist/chunks/PlayableIcon.es.js +128 -128
  24. package/dist/chunks/ProjectContext.es.js +11 -11
  25. package/dist/chunks/ReviewablesSelector.es.js +553 -462
  26. package/dist/chunks/SimpleForm.es.js +7 -7
  27. package/dist/chunks/SimpleTable.es.js +110 -110
  28. package/dist/chunks/Slicer.es.js +80 -80
  29. package/dist/chunks/TableSettingsFallback.es.js +1 -1
  30. package/dist/chunks/ThumbnailSimple.es.js +17 -17
  31. package/dist/chunks/VideoPlayer.es.js +1 -1
  32. package/dist/chunks/Watchers.es.js +50 -50
  33. package/dist/chunks/afterStartup.es.js +13 -0
  34. package/dist/chunks/getBundleMode.es.js +1 -1
  35. package/dist/chunks/getUris.es.js +797 -827
  36. package/dist/chunks/searchTerms.es.js +353 -336
  37. package/dist/chunks/useAttributeEnums.es.js +16 -16
  38. package/dist/chunks/useHierarchySelection.es.js +2 -2
  39. package/dist/chunks/useLoadModule.es.js +24 -23
  40. package/dist/chunks/viewUpdateHelper.es.js +8 -8
  41. package/dist/components.es.js +205 -202
  42. package/dist/context.es.js +525 -496
  43. package/dist/hooks.es.js +190 -166
  44. package/dist/types/ContextMenu.d.ts +1 -0
  45. package/dist/types/ProjectTreeTable.d.ts +1 -0
  46. package/dist/types/Views.d.ts +11 -0
  47. package/dist/types/api.d.ts +823 -1427
  48. package/dist/types/components.d.ts +9 -1
  49. package/dist/types/context.d.ts +1 -0
  50. package/dist/types/hooks.d.ts +25 -1
  51. package/dist/types/util.d.ts +10 -0
  52. package/dist/util.es.js +45 -42
  53. package/package.json +2 -2
@@ -1,12 +1,12 @@
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";
1
+ import { ae as es, aM as Se, aG as L, af as Ne, a6 as D, bk as Ps, aA as Q, aw as yt, bf as F, a as Ls, bj as js, aI as Fs, aB as M, ar as ue, ag as Pe, ah as _s, aj as Rs, ak as Gs, am as Cs, be as Ns, ao as Qs, aC as Ms, aE as Vs, ba as ts, aJ as Ds, aL as Os, aN as X, aP as $s, aQ as at, aR as xs, aa as ce, as as Us, bb as Bs, bc as qs, aT as Hs } from "./searchTerms.es.js";
2
2
  import "lodash";
3
3
  import "primereact/confirmdialog";
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({
4
+ import { toast as ss } from "react-toastify";
5
+ import { v4 as Ws } from "uuid";
6
+ import { R as zs, D as Ks, j as H, c as U, i as pe, d as De, a as ie, w as J, h as He, g as ns } from "./realtimeUpdatesUtils.es.js";
7
+ import { useMemo as Js } from "react";
8
+ import { current as Ys } from "@reduxjs/toolkit";
9
+ const Oe = es.injectEndpoints({
10
10
  endpoints: (t) => ({
11
11
  getProjectsAccess: t.query({
12
12
  async queryFn({ projects: e = [] }, { dispatch: s, forced: n }) {
@@ -60,12 +60,12 @@ Oe.enhanceEndpoints({
60
60
  }
61
61
  });
62
62
  const {
63
- useGetStudioAccessGroupsQuery: Pr,
64
- useGetAccessGroupsQuery: Lr,
65
- useGetAccessGroupQuery: jr,
66
- useGetAccessGroupSchemaQuery: Fr,
67
- useGetProjectsAccessQuery: _r
68
- } = Oe, Js = Oe.enhanceEndpoints({
63
+ useGetStudioAccessGroupsQuery: Fr,
64
+ useGetAccessGroupsQuery: _r,
65
+ useGetAccessGroupQuery: Rr,
66
+ useGetAccessGroupSchemaQuery: Gr,
67
+ useGetProjectsAccessQuery: Cr
68
+ } = Oe, Xs = Oe.enhanceEndpoints({
69
69
  endpoints: {
70
70
  setProjectsAccess: {
71
71
  async onQueryStarted({ payload: t }, { dispatch: e, queryFulfilled: s }) {
@@ -117,15 +117,15 @@ const {
117
117
  }
118
118
  }
119
119
  }), {
120
- useSetProjectsAccessMutation: Rr,
121
- useSaveAccessGroupMutation: Gr,
122
- useDeleteAccessGroupMutation: Cr
123
- } = Js, Ys = Ne.enhanceEndpoints({
120
+ useSetProjectsAccessMutation: Nr,
121
+ useSaveAccessGroupMutation: Qr,
122
+ useDeleteAccessGroupMutation: Mr
123
+ } = Xs, Zs = Ne.enhanceEndpoints({
124
124
  endpoints: {
125
125
  executeAction: {},
126
126
  listAvailableActionsForContext: {}
127
127
  }
128
- }), Xs = Ys.injectEndpoints({
128
+ }), en = Zs.injectEndpoints({
129
129
  endpoints: (t) => ({
130
130
  getActionsFromContext: t.query({
131
131
  queryFn: async (e, { dispatch: s }) => {
@@ -157,30 +157,30 @@ const {
157
157
  // End of endpoints
158
158
  })
159
159
  }), {
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) => {
160
+ useGetActionsFromContextQuery: Vr,
161
+ useLazyGetActionsFromContextQuery: Dr,
162
+ useExecuteActionMutation: Or,
163
+ useGetActionConfigQuery: $r,
164
+ useSetActionConfigMutation: xr
165
+ } = en, tn = (t, e) => e.split(".").reduce((s, n) => s && s[n] !== void 0 ? s[n] : void 0, t), sn = (t, e) => {
166
166
  const s = e.split("."), n = s.pop(), i = s.reduce((r, a) => r && r[a] !== void 0 ? r[a] : void 0, t);
167
167
  i && n && delete i[n];
168
168
  };
169
- function tn(t, e) {
169
+ function nn(t, e) {
170
170
  const s = { ...t };
171
171
  for (const [n, i] of Object.entries(e)) {
172
- const r = Zs(s, n);
173
- r !== void 0 && (s[i] = r, en(s, n));
172
+ const r = tn(s, n);
173
+ r !== void 0 && (s[i] = r, sn(s, n));
174
174
  }
175
175
  return s;
176
176
  }
177
- const bt = (t = [], e) => {
177
+ const It = (t = [], e) => {
178
178
  const s = [];
179
179
  return t.forEach((n) => {
180
180
  const i = n.node;
181
181
  if (!i)
182
182
  return;
183
- const r = i, c = tn(
183
+ const r = i, c = nn(
184
184
  r,
185
185
  {
186
186
  "author.name": "authorName",
@@ -196,7 +196,7 @@ const bt = (t = [], e) => {
196
196
  }
197
197
  s.push(c);
198
198
  }), { activities: s, pageInfo: e };
199
- }, sn = (t) => {
199
+ }, rn = (t) => {
200
200
  const {
201
201
  id: e,
202
202
  label: s,
@@ -223,7 +223,7 @@ const bt = (t = [], e) => {
223
223
  users: c?.map((p) => ({ name: p, avatarUrl: `/api/users/${p}/avatar` })) || [],
224
224
  path: o?.path.split("/").splice(-2, 1).join("")
225
225
  };
226
- }, nn = (t) => {
226
+ }, an = (t) => {
227
227
  const { id: e, name: s, status: n, thumbnailId: i, author: r, updatedAt: a, product: c } = t;
228
228
  return {
229
229
  id: e,
@@ -238,7 +238,7 @@ const bt = (t = [], e) => {
238
238
  productType: c?.productType,
239
239
  path: c?.folder?.path?.split("/").pop()
240
240
  };
241
- }, rn = (t) => {
241
+ }, on = (t) => {
242
242
  const { id: e, name: s, label: n, status: i, thumbnailId: r, thumbnailHash: a, updatedAt: c, folderType: d, parents: u } = t || {};
243
243
  return {
244
244
  id: e,
@@ -254,7 +254,7 @@ const bt = (t = [], e) => {
254
254
  users: [],
255
255
  path: u?.[u.length - 2]
256
256
  };
257
- }, an = (t) => {
257
+ }, cn = (t) => {
258
258
  const { id: e, name: s, status: n, thumbnailId: i, thumbnailHash: r, updatedAt: a, task: c } = t || {};
259
259
  return {
260
260
  id: e,
@@ -270,20 +270,20 @@ const bt = (t = [], e) => {
270
270
  users: [],
271
271
  path: c?.folder?.path?.split("/").pop()
272
272
  };
273
- }, on = (t, e) => {
273
+ }, dn = (t, e) => {
274
274
  switch (e) {
275
275
  case "task":
276
- return sn(t.task);
276
+ return rn(t.task);
277
277
  case "version":
278
- return nn(t.version);
278
+ return an(t.version);
279
279
  case "folder":
280
- return rn(t.folder);
280
+ return on(t.folder);
281
281
  case "workfile":
282
- return an(t.workfile);
282
+ return cn(t.workfile);
283
283
  default:
284
284
  return {};
285
285
  }
286
- }, cn = (t) => {
286
+ }, un = (t) => {
287
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) => {
288
288
  if (!c) return a;
289
289
  const d = c.match(/\*\s\[\s\]/g);
@@ -294,21 +294,21 @@ const bt = (t = [], e) => {
294
294
  return a + (d ? d.length : 0);
295
295
  }, 0);
296
296
  return { total: i + r, checked: r, unChecked: i, ids: n };
297
- }, dn = (t, e = "task", s = "task") => t?.length ? [
297
+ }, ln = (t, e = "task", s = "task") => t?.length ? [
298
298
  ...t.map(({ id: n }) => ({ type: e, id: n })),
299
299
  { type: e, id: s.toUpperCase() + "S" },
300
300
  {
301
301
  type: `kanBan${s.charAt(0).toUpperCase() + s.slice(1)}`,
302
302
  id: s.toUpperCase() + "S"
303
303
  }
304
- ] : [{ type: e, id: s.toUpperCase() + "S" }], ns = (t) => {
304
+ ] : [{ type: e, id: s.toUpperCase() + "S" }], is = (t) => {
305
305
  if (typeof t == "string") return t;
306
306
  try {
307
307
  return JSON.stringify(t) ?? "";
308
308
  } catch {
309
309
  return "";
310
310
  }
311
- }, is = (t, e, s) => {
311
+ }, rs = (t, e, s) => {
312
312
  if (!t)
313
313
  return [{ type: "activity", id: "LIST" }];
314
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 || [];
@@ -324,7 +324,7 @@ const bt = (t = [], e) => {
324
324
  // Filtered Entity Activity Tags
325
325
  ...c.map((o) => ({
326
326
  type: "entityActivities",
327
- id: `${o}-${ns(r)}`
327
+ id: `${o}-${is(r)}`
328
328
  })),
329
329
  // Published Version Tags
330
330
  ...u.filter((o) => o.activityType === "version.publish").map((o) => ({
@@ -355,7 +355,7 @@ const bt = (t = [], e) => {
355
355
  "subtype.change"
356
356
  ],
357
357
  checklists: ["checklist"]
358
- }, Or = (t) => {
358
+ }, Ur = (t) => {
359
359
  if (typeof t == "string")
360
360
  return t in se ? se[t] : null;
361
361
  if (t && typeof t == "object" && t.conditions) {
@@ -366,7 +366,7 @@ const bt = (t = [], e) => {
366
366
  }), s ? Array.from(new Set(e)) : se.activity;
367
367
  }
368
368
  return se.activity;
369
- }, un = (t) => {
369
+ }, pn = (t) => {
370
370
  switch (t) {
371
371
  case "task":
372
372
  return `
@@ -410,7 +410,7 @@ const bt = (t = [], e) => {
410
410
  default:
411
411
  return "";
412
412
  }
413
- }, ln = (t) => `
413
+ }, fn = (t) => `
414
414
  query EntityTooltip($projectName: String!, $entityId: String!) {
415
415
  project(name: $projectName) {
416
416
  ${t}(id: $entityId) {
@@ -420,15 +420,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
420
420
  thumbnailId
421
421
  updatedAt
422
422
  thumbnailHash
423
- ${un(t)}
423
+ ${pn(t)}
424
424
  }
425
425
  }
426
426
  }
427
- `, pn = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), It = {
427
+ `, yn = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), Tt = {
428
428
  task_type: "subType",
429
429
  folder_type: "subType",
430
430
  product_type: "subType"
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
+ }, fe = (t) => t in Tt ? Tt[t] : t.startsWith("project_attributes_") ? "attrib_" + t.slice(19) : t.startsWith("inherited_attributes_") ? "attrib_" + t.slice(21) : t.startsWith("attrib_") ? t : yn(t), gn = (t) => {
432
432
  if (Array.isArray(t)) return t;
433
433
  if (typeof t == "string") {
434
434
  const e = t.trim();
@@ -440,7 +440,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
440
440
  }
441
441
  }
442
442
  return [t];
443
- }, yn = (t) => {
443
+ }, hn = (t) => {
444
444
  if (t == null) return;
445
445
  let e = t;
446
446
  if (typeof e == "string")
@@ -453,7 +453,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
453
453
  const s = /* @__PURE__ */ new Map();
454
454
  for (const n of e) {
455
455
  if (!n || n.value == null) continue;
456
- const i = fn(n.value);
456
+ const i = gn(n.value);
457
457
  for (const r of i) {
458
458
  const a = String(r), c = s.get(a);
459
459
  s.set(a, { ...n, value: a, count: (c?.count ?? 0) + (Number(n.count) || 0) });
@@ -466,7 +466,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
466
466
  value: s,
467
467
  count: Number(n) || 0
468
468
  }));
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
+ }, ge = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0), mn = (t, e) => t == null ? e ?? void 0 : e == null || t < e ? t : e, vn = (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, bn = (t, e) => {
470
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);
471
471
  let a;
472
472
  if (t.avg != null && e.avg != null) {
@@ -485,8 +485,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
485
485
  }
486
486
  return {
487
487
  columnName: t.columnName,
488
- min: gn(t.min, e.min),
489
- max: hn(t.max, e.max),
488
+ min: mn(t.min, e.min),
489
+ max: vn(t.max, e.max),
490
490
  avg: a,
491
491
  sum: ge(t.sum, e.sum),
492
492
  valueFilledCount: s,
@@ -504,7 +504,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
504
504
  }, ke = (t) => t.map((e) => ({
505
505
  ...e,
506
506
  columnName: fe(e.columnName),
507
- distribution: yn(e.distribution)
507
+ distribution: hn(e.distribution)
508
508
  })), we = (t = [], e = []) => {
509
509
  const s = /* @__PURE__ */ new Map();
510
510
  for (const n of e) s.set(fe(n.columnName), { ...n });
@@ -515,20 +515,20 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
515
515
  s.set(i, r);
516
516
  }
517
517
  return [...s.values()];
518
- }, $r = (t) => t.reduce(
518
+ }, Br = (t) => t.reduce(
519
519
  (e, s) => Math.max(e, (s.valueFilledCount ?? 0) + (s.valueNotFilledCount ?? 0)),
520
520
  0
521
- ), xr = (t, e = []) => {
521
+ ), qr = (t, e = []) => {
522
522
  const s = /* @__PURE__ */ new Map();
523
523
  for (const i of t) s.set(fe(i.columnName), i);
524
524
  const n = new Map(s);
525
525
  for (const i of e) {
526
526
  const r = fe(i.columnName), a = s.get(r);
527
- n.set(r, a ? mn(a, i) : i);
527
+ n.set(r, a ? bn(a, i) : i);
528
528
  }
529
529
  return [...n.values()];
530
- }, rs = [Ws, zs], as = (t, e, s) => {
531
- if (rs.includes(e))
530
+ }, as = [zs, Ks], os = (t, e, s) => {
531
+ if (as.includes(e))
532
532
  return !0;
533
533
  if (t[e] !== void 0 && t[e] !== null)
534
534
  return t[e];
@@ -551,32 +551,32 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
551
551
  return s[r];
552
552
  }
553
553
  return !1;
554
- }, Ur = (t, e) => e.filter(
555
- (n) => !rs.includes(n) && t[n]
554
+ }, Hr = (t, e) => e.filter(
555
+ (n) => !as.includes(n) && t[n]
556
556
  ).length === 0 && e.includes("name") ? {
557
557
  ...t,
558
558
  name: !0
559
- } : t, Tt = (t) => {
559
+ } : t, kt = (t) => {
560
560
  const e = t?.targets;
561
561
  return Array.isArray(e) ? e : e ? [e] : [];
562
562
  }, ot = (t, e, s) => {
563
563
  const n = e?.[t], i = s?.[t];
564
564
  return n === "none" || i === "none" ? !1 : n != null || i != null;
565
- }, vn = (t, e, s, n) => {
565
+ }, In = (t, e, s, n) => {
566
566
  const i = /* @__PURE__ */ new Set([
567
567
  ...Object.keys(t ?? {}),
568
568
  ...Object.keys(e ?? {})
569
569
  ]);
570
570
  for (const r of i)
571
- if (!(s && !as(s, r, n)) && ot(r, t, e))
571
+ if (!(s && !os(s, r, n)) && ot(r, t, e))
572
572
  return !0;
573
573
  return !1;
574
- }, qr = (t, e, s, n) => e?.name === "none" && !vn(t, e, s, n), Ae = (t, e) => {
574
+ }, Wr = (t, e, s, n) => e?.name === "none" && !In(t, e, s, n), Ae = (t, e) => {
575
575
  if (!t) return !1;
576
576
  if (!e) return !0;
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 = [
577
+ const s = new Set(kt(e).map((n) => n.field));
578
+ return kt(t).some((n) => !s.has(n.field));
579
+ }, We = [D.Filled, D.NotFilled], Tn = [
580
580
  D.Min,
581
581
  D.Max,
582
582
  D.Avg,
@@ -587,12 +587,12 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
587
587
  D.Filled,
588
588
  D.NotFilled,
589
589
  D.Distribution
590
- ], In = {
590
+ ], kn = {
591
591
  folder: "folder_type",
592
592
  task: "task_type",
593
593
  product: "product_type",
594
594
  version: null
595
- }, Br = ({
595
+ }, zr = ({
596
596
  entity: t,
597
597
  attribs: e,
598
598
  columnVisibility: s,
@@ -601,9 +601,9 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
601
601
  columnSummaryScopes: r,
602
602
  extraFields: a = []
603
603
  }) => {
604
- const c = (y) => as(s, y, n), d = (y) => c(y) && ot(y, i, r), u = [];
604
+ const c = (y) => os(s, y, n), d = (y) => c(y) && ot(y, i, r), u = [];
605
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
+ 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 = kn[t];
607
607
  f && (d("subType") || p) && u.push({ field: f, aggregations: Y });
608
608
  for (const y of a)
609
609
  u.push({ field: y, aggregations: Y });
@@ -612,38 +612,38 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
612
612
  let h = `attrib.${y.name}`;
613
613
  ["folder", "task"].includes(t) && (h = `inherited_attributes.${y.name}`);
614
614
  const g = y.data?.type;
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
+ g === "integer" || g === "float" ? u.push({ field: h, aggregations: Tn }) : g === "string" ? u.push({ field: h, aggregations: Ps(y.data) ? Y : We }) : (g === "list_of_strings" || g === "list_of_integers") && u.push({ field: h, aggregations: Y });
616
616
  }
617
617
  return u;
618
- }, kt = [
618
+ }, wt = [
619
619
  D.Distribution,
620
620
  D.Filled,
621
621
  D.NotFilled
622
- ], Tn = {
622
+ ], wn = {
623
623
  status: "status",
624
624
  assignees: "assignees",
625
625
  tags: "tags",
626
626
  taskType: "task_type"
627
- }, kn = {
627
+ }, An = {
628
628
  status: "status",
629
629
  tags: "tags",
630
630
  author: "author",
631
631
  productType: "product_type"
632
- }, Hr = (t, e) => {
633
- const n = (e === "version" || e === "product" ? kn : Tn)[t.id];
634
- if (n) return { field: n, aggregations: kt };
632
+ }, Kr = (t, e) => {
633
+ const n = (e === "version" || e === "product" ? An : wn)[t.id];
634
+ if (n) return { field: n, aggregations: wt };
635
635
  if (t.id.startsWith("attrib.")) {
636
636
  const i = t.id.slice(7);
637
- return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: kt };
637
+ return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: wt };
638
638
  }
639
639
  return null;
640
- }, wn = (t) => {
640
+ }, En = (t) => {
641
641
  const e = t.indexOf(".");
642
642
  return e !== -1 ? "attrib_" + t.slice(e + 1) : fe(t);
643
- }, Wr = (t, e) => {
643
+ }, Jr = (t, e) => {
644
644
  const s = /* @__PURE__ */ new Map(), n = { count: 0, percentage: 0 };
645
645
  if (!e) return { counts: s, total: 0, ungrouped: n, complete: !1 };
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
+ const i = En(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;
647
647
  for (const f of a) {
648
648
  const y = f.count || 0, h = l > 0 ? Math.round(y / l * 100) : 0;
649
649
  s.set(String(f.value), { count: y, percentage: h });
@@ -661,7 +661,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
661
661
  } catch {
662
662
  return {};
663
663
  }
664
- }, zr = R, wt = (t) => {
664
+ }, Yr = R, At = (t) => {
665
665
  if (!t.project)
666
666
  return [];
667
667
  const e = [];
@@ -695,14 +695,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
695
695
  GetTasksByParent: {
696
696
  transformResponse: (t) => ({
697
697
  pageInfo: t?.project?.tasks?.pageInfo ?? { hasNextPage: !1, endCursor: null },
698
- tasks: wt(t)
698
+ tasks: At(t)
699
699
  }),
700
700
  providesTags: (t, e, { parentIds: s, projectName: n }) => ve(t?.tasks || [], n, s),
701
701
  keepUnusedDataFor: Z
702
702
  },
703
703
  GetTasksList: {
704
704
  transformResponse: (t) => ({
705
- tasks: wt(t),
705
+ tasks: At(t),
706
706
  pageInfo: t.project.tasks.pageInfo
707
707
  }),
708
708
  providesTags: (t, e, { projectName: s }) => ve(t?.tasks || [], s),
@@ -727,13 +727,13 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
727
727
  keepUnusedDataFor: Z
728
728
  }
729
729
  }
730
- }), An = yt.enhanceEndpoints({
730
+ }), Sn = yt.enhanceEndpoints({
731
731
  endpoints: {
732
732
  searchFolders: {}
733
733
  }
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
+ }), ze = 100, be = {}, Ke = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), Pn = (t, e) => {
735
735
  be[t] || (be[t] = /* @__PURE__ */ new Set()), e.forEach((s) => be[t].add(s));
736
- }, At = (t) => be[t] || /* @__PURE__ */ new Set(), x = re.injectEndpoints({
736
+ }, Et = (t) => be[t] || /* @__PURE__ */ new Set(), x = re.injectEndpoints({
737
737
  endpoints: (t) => ({
738
738
  // Each project has one cache for all the tasks of the expanded folders
739
739
  // Changing the expanded folders will trigger a refetch but not a new cache
@@ -745,7 +745,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
745
745
  try {
746
746
  const o = d(), l = { projectName: e, filter: n, folderFilter: i, search: r, showComments: a }, f = x.endpoints.getOverviewTasksByFolders.select(
747
747
  l
748
- )(o)?.data || [], y = Ke(e, n, i, r, a), h = At(y), g = u ? s : s.filter((E) => !h.has(E));
748
+ )(o)?.data || [], y = Ke(e, n, i, r, a), h = Et(y), g = u ? s : s.filter((E) => !h.has(E));
749
749
  if (g.length === 0)
750
750
  return { data: f };
751
751
  const m = [], v = 100, b = 20, I = 10, k = 1e3, T = v * b;
@@ -783,7 +783,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
783
783
  S = C?.hasNextPage || !1, j = C?.endCursor || void 0;
784
784
  }
785
785
  }
786
- En(y, g);
786
+ Pn(y, g);
787
787
  const w = [...f, ...m], A = new Map(w.map((E) => [E.id, E]));
788
788
  return {
789
789
  data: Array.from(A.values())
@@ -805,7 +805,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
805
805
  let p;
806
806
  const y = U(
807
807
  async (m, v) => {
808
- const b = At(
808
+ const b = Et(
809
809
  Ke(e, n, i, r, a)
810
810
  ), I = new Set(
811
811
  l().data?.map((A) => A.id) || []
@@ -896,7 +896,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
896
896
  async queryFn({ projectName: e, folderSearchRequest: s }, { dispatch: n }) {
897
897
  try {
898
898
  const i = await n(
899
- An.endpoints.searchFolders.initiate({
899
+ Sn.endpoints.searchFolders.initiate({
900
900
  projectName: e,
901
901
  folderSearchRequest: s
902
902
  })
@@ -1160,15 +1160,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1160
1160
  })
1161
1161
  })
1162
1162
  }), {
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({
1163
+ useGetOverviewTasksByFoldersQuery: Xr,
1164
+ useGetSearchFoldersQuery: Zr,
1165
+ useGetTasksListQuery: ea,
1166
+ useGetTasksListInfiniteInfiniteQuery: ta,
1167
+ useLazyGetTasksByParentQuery: sa,
1168
+ useGetGroupedTasksListQuery: na,
1169
+ useGetFolderColumnStatsQuery: ia,
1170
+ useGetTaskColumnStatsQuery: ra
1171
+ } = x, Ln = Q.enhanceEndpoints({
1172
1172
  endpoints: {
1173
1173
  GetUpdatedAndNewFolders: {
1174
1174
  transformResponse: (t) => t.project.folders.edges.map(({ node: e }) => ({
@@ -1183,7 +1183,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1183
1183
  }))
1184
1184
  }
1185
1185
  }
1186
- }), Pn = ie, $e = yt.enhanceEndpoints({
1186
+ }), jn = ie, $e = yt.enhanceEndpoints({
1187
1187
  endpoints: {
1188
1188
  getFolderHierarchy: {
1189
1189
  providesTags: ["hierarchy"]
@@ -1242,10 +1242,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1242
1242
  });
1243
1243
  });
1244
1244
  const T = [.../* @__PURE__ */ new Set([...b, ...I.keys()])];
1245
- if (!(T.length > Pn) && T.length) {
1245
+ if (!(T.length > jn) && T.length) {
1246
1246
  await J();
1247
1247
  const w = await r(
1248
- Sn.endpoints.GetUpdatedAndNewFolders.initiate({
1248
+ Ln.endpoints.GetUpdatedAndNewFolders.initiate({
1249
1249
  projectName: a,
1250
1250
  folderIds: T,
1251
1251
  first: T.length
@@ -1298,7 +1298,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1298
1298
  }
1299
1299
  }
1300
1300
  }
1301
- }), { useGetFolderHierarchyQuery: na, useGetFolderListQuery: ia } = $e, Ln = Q.enhanceEndpoints({
1301
+ }), { useGetFolderHierarchyQuery: aa, useGetFolderListQuery: oa } = $e, Fn = Q.enhanceEndpoints({
1302
1302
  endpoints: {
1303
1303
  GetFolderDeleteInfo: {
1304
1304
  transformResponse: (t) => (t?.project?.folders?.edges || []).map((s) => ({
@@ -1316,7 +1316,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1316
1316
  ] : [{ type: "folder", id: "DELETE_INFO" }]
1317
1317
  }
1318
1318
  }
1319
- }), { useGetFolderDeleteInfoQuery: ra, useLazyGetFolderDeleteInfoQuery: aa } = Ln, jn = ["task", "version", "folder", "representation"], je = ({
1319
+ }), { useGetFolderDeleteInfoQuery: ca, useLazyGetFolderDeleteInfoQuery: da } = Fn, _n = ["task", "version", "folder", "representation"], je = ({
1320
1320
  entity: t,
1321
1321
  entityType: e,
1322
1322
  projectName: s
@@ -1492,7 +1492,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1492
1492
  }
1493
1493
  }
1494
1494
  }
1495
- }), Et = (t) => {
1495
+ }), St = (t) => {
1496
1496
  switch (t) {
1497
1497
  case "task":
1498
1498
  return "GetDetailsPanelTask";
@@ -1507,11 +1507,11 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1507
1507
  endpoints: (t) => ({
1508
1508
  getEntitiesDetailsPanel: t.query({
1509
1509
  async queryFn({ entities: e = [], entityType: s }, { dispatch: n }) {
1510
- if (!jn.includes(s))
1510
+ if (!_n.includes(s))
1511
1511
  return { error: L("Entity type not supported", 400) };
1512
1512
  try {
1513
1513
  const i = e.map((c) => n(
1514
- Je.endpoints[Et(s)].initiate(
1514
+ Je.endpoints[St(s)].initiate(
1515
1515
  {
1516
1516
  projectName: c.projectName,
1517
1517
  entityId: c.id
@@ -1566,7 +1566,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1566
1566
  m.map(async (b) => {
1567
1567
  try {
1568
1568
  const I = await r(
1569
- Je.endpoints[Et(e)].initiate(
1569
+ Je.endpoints[St(e)].initiate(
1570
1570
  {
1571
1571
  projectName: b.projectName,
1572
1572
  entityId: b.id
@@ -1633,7 +1633,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1633
1633
  ]
1634
1634
  })
1635
1635
  })
1636
- }), { useGetEntitiesDetailsPanelQuery: oa, useLazyGetEntitiesDetailsPanelQuery: ca } = de, Fn = `
1636
+ }), { useGetEntitiesDetailsPanelQuery: ua, useLazyGetEntitiesDetailsPanelQuery: la } = de, Rn = `
1637
1637
  fragment taskTileFragment on TaskNode {
1638
1638
  id
1639
1639
  name
@@ -1650,7 +1650,7 @@ fragment taskTileFragment on TaskNode {
1650
1650
  path
1651
1651
  }
1652
1652
  }
1653
- `, _n = `
1653
+ `, Gn = `
1654
1654
  fragment versionTileFragment on VersionNode {
1655
1655
  id
1656
1656
  name: product {
@@ -1674,7 +1674,7 @@ fragment versionTileFragment on VersionNode {
1674
1674
  }
1675
1675
  version
1676
1676
  }
1677
- `, Rn = `
1677
+ `, Cn = `
1678
1678
  fragment productTileFragment on ProductNode {
1679
1679
  id
1680
1680
  name
@@ -1690,7 +1690,7 @@ fragment productTileFragment on ProductNode {
1690
1690
  path
1691
1691
  }
1692
1692
  }
1693
- `, Gn = `
1693
+ `, Nn = `
1694
1694
  fragment folderTileFragment on FolderNode {
1695
1695
  id
1696
1696
  name
@@ -1703,7 +1703,7 @@ fragment folderTileFragment on FolderNode {
1703
1703
  path: parent {
1704
1704
  path
1705
1705
  }
1706
- }`, Cn = (t) => `
1706
+ }`, Qn = (t) => `
1707
1707
  query EventTile($projectName: String!, $id: String!) {
1708
1708
  project(name: $projectName) {
1709
1709
  ${t}(id: $id) {
@@ -1714,7 +1714,7 @@ fragment folderTileFragment on FolderNode {
1714
1714
  }
1715
1715
  }
1716
1716
  }
1717
- `, Nn = (t) => {
1717
+ `, Mn = (t) => {
1718
1718
  let s = `
1719
1719
  query EntityTiles($projectName: String!) {
1720
1720
  project(name: $projectName) {
@@ -1733,23 +1733,23 @@ fragment folderTileFragment on FolderNode {
1733
1733
  }
1734
1734
  `;
1735
1735
  const n = {
1736
- folder: Gn,
1737
- product: Rn,
1738
- version: _n,
1739
- task: Fn
1736
+ folder: Nn,
1737
+ product: Cn,
1738
+ version: Gn,
1739
+ task: Rn
1740
1740
  };
1741
1741
  for (const i in t)
1742
1742
  s += n[i];
1743
1743
  return s;
1744
1744
  };
1745
- function os(t) {
1745
+ function cs(t) {
1746
1746
  if (typeof t != "object" || t === null)
1747
1747
  return t;
1748
1748
  let e = Object.keys(t);
1749
1749
  if (e.length > 0)
1750
- return os(t[e[0]]);
1750
+ return cs(t[e[0]]);
1751
1751
  }
1752
- const Qn = (t, e) => {
1752
+ const Vn = (t, e) => {
1753
1753
  if (Array.isArray(e)) {
1754
1754
  const n = {};
1755
1755
  for (const i of e)
@@ -1764,18 +1764,18 @@ const Qn = (t, e) => {
1764
1764
  }
1765
1765
  for (const n of s) {
1766
1766
  for (const i in n)
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
+ n[i] && (Array.isArray(n[i]) ? n[i] = n[i][0] : typeof n[i] == "object" && (n[i] = cs(Object.values(n[i])[0])), n.type === "version" && i === "version" && (n[i] = "v" + n[i].toString().padStart(3, "0")));
1768
1768
  n.thumbnailEntityType = n.type, n.type === "product" && (n.thumbnailEntityId = n.latestVersion.thumbnailEntityId, n.thumbnailId = n.latestVersion.thumbnailId, n.thumbnailEntityType = "version");
1769
1769
  }
1770
1770
  return s;
1771
- }, Mn = Q.injectEndpoints({
1771
+ }, Dn = Q.injectEndpoints({
1772
1772
  endpoints: (t) => ({
1773
1773
  getEventTile: t.query({
1774
1774
  query: ({ projectName: e, id: s, type: n }) => ({
1775
1775
  url: "/graphql",
1776
1776
  method: "POST",
1777
1777
  body: {
1778
- query: Cn(n),
1778
+ query: Qn(n),
1779
1779
  variables: { projectName: e, id: s }
1780
1780
  }
1781
1781
  }),
@@ -1786,11 +1786,11 @@ const Qn = (t, e) => {
1786
1786
  url: "/graphql",
1787
1787
  method: "POST",
1788
1788
  body: {
1789
- query: Nn(s),
1789
+ query: Mn(s),
1790
1790
  variables: { projectName: e }
1791
1791
  }
1792
1792
  }),
1793
- transformResponse: (e, s, { entities: n }) => Qn(e.data?.project, n)
1793
+ transformResponse: (e, s, { entities: n }) => Vn(e.data?.project, n)
1794
1794
  }),
1795
1795
  getEntity: t.query({
1796
1796
  query: ({ projectName: e, entityType: s, entityId: n }) => ({
@@ -1800,17 +1800,17 @@ const Qn = (t, e) => {
1800
1800
  })
1801
1801
  }),
1802
1802
  overrideExisting: !0
1803
- }), me = Mn.enhanceEndpoints({
1803
+ }), me = Dn.enhanceEndpoints({
1804
1804
  endpoints: {
1805
1805
  GetProductVersions: {}
1806
1806
  }
1807
1807
  }), {
1808
- useGetEventTileQuery: da,
1809
- useGetEntityTilesQuery: ua,
1810
- useGetEntityQuery: la,
1811
- useLazyGetEntityQuery: pa,
1812
- useGetProductVersionsQuery: fa,
1813
- useGetSearchedEntitiesInfiniteQuery: ya
1808
+ useGetEventTileQuery: pa,
1809
+ useGetEntityTilesQuery: fa,
1810
+ useGetEntityQuery: ya,
1811
+ useLazyGetEntityQuery: ga,
1812
+ useGetProductVersionsQuery: ha,
1813
+ useGetSearchedEntitiesInfiniteQuery: ma
1814
1814
  } = me, ee = Se.enhanceEndpoints({
1815
1815
  endpoints: {
1816
1816
  getProject: {
@@ -1828,7 +1828,7 @@ const Qn = (t, e) => {
1828
1828
  providesTags: (t, e, { projectName: s }) => [{ type: "project", id: s }]
1829
1829
  }
1830
1830
  }
1831
- }), { useGetProjectQuery: ga, useListProjectsQuery: ha, useGetProjectAnatomyQuery: ma } = ee, St = 2e3, Pt = Q.enhanceEndpoints({
1831
+ }), { useGetProjectQuery: va, useListProjectsQuery: ba, useGetProjectAnatomyQuery: Ia } = ee, Pt = 2e3, Lt = Q.enhanceEndpoints({
1832
1832
  endpoints: {
1833
1833
  GetProjects: {
1834
1834
  transformResponse: (t) => ({
@@ -1840,17 +1840,17 @@ const Qn = (t, e) => {
1840
1840
  })
1841
1841
  }
1842
1842
  }
1843
- }), gt = Pt.injectEndpoints({
1843
+ }), gt = Lt.injectEndpoints({
1844
1844
  endpoints: (t) => ({
1845
1845
  getProjectsInfinite: t.infiniteQuery({
1846
1846
  infiniteQueryOptions: {
1847
- initialPageParam: { cursor: "", first: St },
1847
+ initialPageParam: { cursor: "", first: Pt },
1848
1848
  getNextPageParam: (e) => {
1849
1849
  const { pageInfo: s } = e;
1850
1850
  if (!(!s.hasNextPage || !s.endCursor))
1851
1851
  return {
1852
1852
  cursor: s.endCursor,
1853
- first: St
1853
+ first: Pt
1854
1854
  };
1855
1855
  }
1856
1856
  },
@@ -1861,7 +1861,7 @@ const Qn = (t, e) => {
1861
1861
  after: s?.cursor || void 0,
1862
1862
  first: s?.first
1863
1863
  }, r = await n.dispatch(
1864
- Pt.endpoints.GetProjects.initiate(i, { forceRefetch: !0 })
1864
+ Lt.endpoints.GetProjects.initiate(i, { forceRefetch: !0 })
1865
1865
  );
1866
1866
  if (r.error) throw r.error;
1867
1867
  return {
@@ -1889,7 +1889,7 @@ const Qn = (t, e) => {
1889
1889
  })
1890
1890
  }),
1891
1891
  overrideExisting: !0
1892
- }), { useGetProjectsInfiniteInfiniteQuery: va } = gt, Ye = (t, e) => {
1892
+ }), { useGetProjectsInfiniteInfiniteQuery: Ta } = gt, Ye = (t, e) => {
1893
1893
  for (const [s, n] of Object.entries(e)) {
1894
1894
  if (s === "attrib" && n && typeof n == "object" && !Array.isArray(n)) {
1895
1895
  t.attrib = {
@@ -1900,7 +1900,7 @@ const Qn = (t, e) => {
1900
1900
  }
1901
1901
  t[s] = n;
1902
1902
  }
1903
- }, Vn = ee.enhanceEndpoints({
1903
+ }, On = ee.enhanceEndpoints({
1904
1904
  endpoints: {
1905
1905
  deployProject: {
1906
1906
  invalidatesTags: () => [
@@ -1968,21 +1968,21 @@ const Qn = (t, e) => {
1968
1968
  }
1969
1969
  }
1970
1970
  }), {
1971
- useDeployProjectMutation: ba,
1972
- useDeleteProjectMutation: Ia,
1973
- useSetProjectAnatomyMutation: Ta,
1974
- useUpdateProjectMutation: ka,
1975
- useSetProjectBundleMutation: wa
1976
- } = Vn, Dn = (t) => {
1971
+ useDeployProjectMutation: ka,
1972
+ useDeleteProjectMutation: wa,
1973
+ useSetProjectAnatomyMutation: Aa,
1974
+ useUpdateProjectMutation: Ea,
1975
+ useSetProjectBundleMutation: Sa
1976
+ } = On, $n = (t) => {
1977
1977
  try {
1978
1978
  return JSON.parse(t);
1979
1979
  } catch {
1980
1980
  return {};
1981
1981
  }
1982
- }, On = (t) => Object.keys(t), Lt = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
1982
+ }, xn = (t) => Object.keys(t), jt = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
1983
1983
  const n = e.label || e.name, i = s.label || s.name;
1984
1984
  return n.localeCompare(i);
1985
- }), jt = (t, e, s) => t?.length ? [
1985
+ }), Ft = (t, e, s) => t?.length ? [
1986
1986
  { type: "kanBanTask", id: "LIST" },
1987
1987
  ...t.flatMap(({ id: n, projectName: i, assignees: r = [] }) => [
1988
1988
  { type: "task", id: n },
@@ -1994,7 +1994,7 @@ const Qn = (t, e) => {
1994
1994
  })),
1995
1995
  { type: "kanban", id: JSON.stringify(s) }
1996
1996
  ])
1997
- ] : [{ type: "kanBanTask", id: "LIST" }], cs = async ({
1997
+ ] : [{ type: "kanBanTask", id: "LIST" }], ds = async ({
1998
1998
  projects: t = [],
1999
1999
  taskIds: e = []
2000
2000
  }, s) => {
@@ -2015,8 +2015,8 @@ const Qn = (t, e) => {
2015
2015
  }, ht = Q.enhanceEndpoints({
2016
2016
  endpoints: {
2017
2017
  GetKanban: {
2018
- transformResponse: Lt,
2019
- providesTags: jt,
2018
+ transformResponse: jt,
2019
+ providesTags: Ft,
2020
2020
  async onCacheEntryAdded(t = {}, { updateCachedData: e, cacheDataLoaded: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) {
2021
2021
  let a, c;
2022
2022
  const u = U(
@@ -2060,7 +2060,7 @@ const Qn = (t, e) => {
2060
2060
  const v = Array.from(g.values());
2061
2061
  if (!v.length || v.length > ie) return;
2062
2062
  await J();
2063
- const b = await cs(
2063
+ const b = await ds(
2064
2064
  {
2065
2065
  projects: [...new Set(v.map(({ project: T }) => T))],
2066
2066
  taskIds: [...new Set(v.map(({ taskId: T }) => T))]
@@ -2126,14 +2126,14 @@ const Qn = (t, e) => {
2126
2126
  // same query as GetKanban but for specific tasks
2127
2127
  // used mainly for patching tasks into the kanban cache
2128
2128
  GetKanbanTasks: {
2129
- transformResponse: Lt,
2130
- providesTags: jt
2129
+ transformResponse: jt,
2130
+ providesTags: Ft
2131
2131
  },
2132
2132
  // get all users on all selected projects
2133
2133
  GetKanbanProjectUsers: {
2134
2134
  transformResponse: (t, e, { projects: s } = {}) => t.users.edges.map(({ node: n }) => {
2135
- const i = Dn(n.accessGroups);
2136
- let a = !n.isManager && !n.isAdmin ? On(i) : s;
2135
+ const i = $n(n.accessGroups);
2136
+ let a = !n.isManager && !n.isAdmin ? xn(i) : s;
2137
2137
  (typeof a == "string" || !a) && (a = []);
2138
2138
  const c = `/api/users/${n.name}/avatar`;
2139
2139
  return {
@@ -2149,7 +2149,7 @@ const Qn = (t, e) => {
2149
2149
  ] : [{ type: "user", id: "LIST" }]
2150
2150
  }
2151
2151
  }
2152
- }), { useGetKanbanQuery: Aa, useGetKanbanProjectUsersQuery: Ea } = ht, Ie = ht.injectEndpoints({
2152
+ }), { useGetKanbanQuery: Pa, useGetKanbanProjectUsersQuery: La } = ht, Ie = ht.injectEndpoints({
2153
2153
  endpoints: (t) => ({
2154
2154
  getProjectsInfo: t.query({
2155
2155
  async queryFn({ projects: e = [], anatomy: s = !0 }, { dispatch: n }) {
@@ -2177,7 +2177,7 @@ const Qn = (t, e) => {
2177
2177
  providesTags: (e, s, { projects: n }) => n.map((i) => ({ type: "project", id: i }))
2178
2178
  })
2179
2179
  })
2180
- }), { useGetProjectsInfoQuery: Sa } = Ie, $n = (t, e) => {
2180
+ }), { useGetProjectsInfoQuery: ja } = Ie, Un = (t, e) => {
2181
2181
  const s = {
2182
2182
  name: t.name,
2183
2183
  attrib: t.attrib,
@@ -2224,11 +2224,11 @@ const Qn = (t, e) => {
2224
2224
  ...s
2225
2225
  };
2226
2226
  }
2227
- }, ds = (t = [], e) => {
2227
+ }, us = (t = [], e) => {
2228
2228
  const s = t.find((c) => c.entityId === e.id), n = s?.data;
2229
2229
  if (!n || s.entityType === "product" || s.entityType === "workfile")
2230
2230
  return console.warn("No operation data found or entity type not supported");
2231
- const i = $n(n, s.entityType);
2231
+ const i = Un(n, s.entityType);
2232
2232
  if (s.entityType === "folder" && n.name && e.path) {
2233
2233
  const c = e.path.split("/");
2234
2234
  c[c.length - 1] = n.name, i.path = c.join("/");
@@ -2260,14 +2260,14 @@ const Qn = (t, e) => {
2260
2260
  }
2261
2261
  };
2262
2262
  Object.assign(e, a);
2263
- }, us = (t, {
2263
+ }, ls = (t, {
2264
2264
  state: e,
2265
2265
  dispatch: s
2266
2266
  }, n) => {
2267
2267
  const i = t.map((a) => ({
2268
2268
  type: "entities",
2269
2269
  id: a.entityId
2270
- })), r = Ps.util.selectInvalidatedBy(e, i);
2270
+ })), r = Ls.util.selectInvalidatedBy(e, i);
2271
2271
  for (const a of r)
2272
2272
  if (a.endpointName === "getEntitiesDetailsPanel") {
2273
2273
  const c = s(
@@ -2276,7 +2276,7 @@ const Qn = (t, e) => {
2276
2276
  a.originalArgs,
2277
2277
  (d) => {
2278
2278
  for (const u of d)
2279
- ds(t, u);
2279
+ us(t, u);
2280
2280
  }
2281
2281
  )
2282
2282
  );
@@ -2299,7 +2299,7 @@ const Qn = (t, e) => {
2299
2299
  }
2300
2300
  )
2301
2301
  ), c];
2302
- }, xn = ({
2302
+ }, Bn = ({
2303
2303
  operations: t,
2304
2304
  state: e,
2305
2305
  dispatch: s,
@@ -2342,7 +2342,7 @@ const Qn = (t, e) => {
2342
2342
  } catch (a) {
2343
2343
  return console.error(a), s(Q.util.invalidateTags(i)), [];
2344
2344
  }
2345
- }, ls = me.injectEndpoints({
2345
+ }, ps = me.injectEndpoints({
2346
2346
  endpoints: (t) => ({
2347
2347
  updateEntity: t.mutation({
2348
2348
  query: ({ projectName: e, entityId: s, data: n, entityType: i }) => ({
@@ -2365,7 +2365,7 @@ const Qn = (t, e) => {
2365
2365
  { newAssignees: g, taskId: s, data: n },
2366
2366
  { dispatch: a }
2367
2367
  );
2368
- j && o.push(S), j || cs({ projects: [e], taskIds: [s] }, a).then(
2368
+ j && o.push(S), j || ds({ projects: [e], taskIds: [s] }, a).then(
2369
2369
  // use .then so that the rest of the code can run
2370
2370
  (_) => {
2371
2371
  let G = _.find((O) => O.id === s);
@@ -2423,11 +2423,11 @@ const Qn = (t, e) => {
2423
2423
  }));
2424
2424
  l.push(...P);
2425
2425
  }
2426
- us([{ entityId: s, data: n, entityType: r }], { state: u, dispatch: a }, o);
2426
+ ls([{ entityId: s, data: n, entityType: r }], { state: u, dispatch: a }, o);
2427
2427
  try {
2428
2428
  await c, l.length && a(Ie.util.invalidateTags(l));
2429
2429
  } catch (p) {
2430
- ts.error(Ls(p) || "Failed to update task"), o.forEach((f) => f?.undo());
2430
+ ss.error(js(p) || "Failed to update task"), o.forEach((f) => f?.undo());
2431
2431
  }
2432
2432
  }
2433
2433
  }),
@@ -2437,7 +2437,7 @@ const Qn = (t, e) => {
2437
2437
  const r = i(), a = [];
2438
2438
  for (const { projectName: p, data: f, id: y, currentAssignees: h = [] } of e) {
2439
2439
  const g = n(
2440
- ls.endpoints.updateEntity.initiate({
2440
+ ps.endpoints.updateEntity.initiate({
2441
2441
  projectName: p,
2442
2442
  entityId: y,
2443
2443
  data: f,
@@ -2448,9 +2448,9 @@ const Qn = (t, e) => {
2448
2448
  a.push(g);
2449
2449
  }
2450
2450
  let c = [];
2451
- (s === "task" || s === "folder") && (c = xn({ operations: e, state: r, dispatch: n, entityType: s }));
2451
+ (s === "task" || s === "folder") && (c = Bn({ operations: e, state: r, dispatch: n, entityType: s }));
2452
2452
  const d = [], u = e.map((p) => ({ ...p, entityId: p.id }));
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
+ return (s === "task" || s === "folder") && (s === "task" && Ee(u, { state: r, dispatch: n }, d), s === "folder" && (Be(u, { state: r, dispatch: n }, d), console.log("invalidate overview folders"), n(me.util.invalidateTags([{ type: "folder", id: "LIST" }])), n(
2454
2454
  me.util.invalidateTags(
2455
2455
  u.map((p) => ({ type: "overviewTask", id: p.entityId }))
2456
2456
  )
@@ -2474,7 +2474,7 @@ const Qn = (t, e) => {
2474
2474
  })
2475
2475
  }),
2476
2476
  overrideExisting: !0
2477
- }), { useUpdateEntitiesMutation: Pa, useUpdateEntityMutation: La } = ls, Ft = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], Un = async ({
2477
+ }), { useUpdateEntitiesMutation: Fa, useUpdateEntityMutation: _a } = ps, _t = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], qn = async ({
2478
2478
  dispatch: t,
2479
2479
  projectName: e,
2480
2480
  updatedTaskIds: s,
@@ -2512,7 +2512,7 @@ const Qn = (t, e) => {
2512
2512
  } catch (i) {
2513
2513
  return console.error("Background entity refetch failed:", i), null;
2514
2514
  }
2515
- }, qn = async ({
2515
+ }, Hn = async ({
2516
2516
  dispatch: t,
2517
2517
  projectName: e,
2518
2518
  updatedTaskIds: s,
@@ -2544,40 +2544,40 @@ const Qn = (t, e) => {
2544
2544
  } catch (i) {
2545
2545
  return console.error("Background overview tasks refetch failed:", i), null;
2546
2546
  }
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 }
2547
+ }, fs = "version", Wn = { type: fs, id: "LIST" }, ys = "product", mt = { type: ys, id: "LIST" }, Ze = {
2548
+ version: { type: fs, list: Wn },
2549
+ product: { type: ys, list: mt }
2550
2550
  }, W = (t, e) => t ? [
2551
2551
  ...t.map(
2552
2552
  (s) => ({ type: Ze[e].type, id: s.id })
2553
2553
  ),
2554
2554
  Ze[e].list
2555
- ] : [Ze[e].list], ys = (t) => {
2555
+ ] : [Ze[e].list], gs = (t) => {
2556
2556
  const e = W(t, "version"), s = W(
2557
2557
  t.map((n) => n.product).filter((n) => !!n),
2558
2558
  "product"
2559
2559
  );
2560
2560
  return [...e, ...s];
2561
- }, xe = (t) => t ? ys(t.versions) : W(void 0, "version"), Hn = (t) => t ? ys(Jn(t)) : W(void 0, "version"), Wn = (t) => {
2561
+ }, xe = (t) => t ? gs(t.versions) : W(void 0, "version"), zn = (t) => t ? gs(Xn(t)) : W(void 0, "version"), Kn = (t) => {
2562
2562
  if (!t) return [mt, ...W(void 0, "product")];
2563
- const e = Yn(t), s = W(e, "product"), n = W(
2563
+ const e = Zn(t), s = W(e, "product"), n = W(
2564
2564
  e.map((i) => i.featuredVersion).filter((i) => !!i),
2565
2565
  "version"
2566
2566
  );
2567
2567
  return [...s, ...n];
2568
- }, zn = (t) => {
2568
+ }, Jn = (t) => {
2569
2569
  if (!t) return [mt, ...W(void 0, "product")];
2570
2570
  const e = W(t.products, "product"), s = W(
2571
2571
  t.products.map((n) => n.featuredVersion).filter((n) => !!n),
2572
2572
  "version"
2573
2573
  );
2574
2574
  return [...e, ...s];
2575
- }, Kn = (t) => {
2575
+ }, Yn = (t) => {
2576
2576
  const e = [];
2577
2577
  for (const { node: s } of t)
2578
2578
  Math.sign(s.version) !== -1 && e.push(s);
2579
2579
  return e;
2580
- }, Jn = (t) => t ? t.pages.flatMap((e) => e.versions) : [], Yn = (t) => t ? t.pages.flatMap((e) => e.products) : [], gs = (t) => {
2580
+ }, Xn = (t) => t ? t.pages.flatMap((e) => e.versions) : [], Zn = (t) => t ? t.pages.flatMap((e) => e.products) : [], hs = (t) => {
2581
2581
  const e = R(t.allAttrib), s = t.task ? {
2582
2582
  ...t.task,
2583
2583
  attrib: R(t.task.allAttrib),
@@ -2596,10 +2596,10 @@ const Qn = (t, e) => {
2596
2596
  task: s,
2597
2597
  product: n
2598
2598
  };
2599
- }, _t = (t) => {
2600
- const e = t.project.versions.pageInfo, n = Kn(t.project.versions.edges).map((i) => gs(i));
2599
+ }, Rt = (t) => {
2600
+ const e = t.project.versions.pageInfo, n = Yn(t.project.versions.edges).map((i) => hs(i));
2601
2601
  return { pageInfo: e, versions: n };
2602
- }, Xn = (t) => t.featuredVersion ? gs({
2602
+ }, ei = (t) => t.featuredVersion ? hs({
2603
2603
  ...t.featuredVersion,
2604
2604
  product: {
2605
2605
  id: t.id,
@@ -2610,7 +2610,7 @@ const Qn = (t, e) => {
2610
2610
  allAttrib: t.folder.allAttrib
2611
2611
  }
2612
2612
  }
2613
- }) : null, Zn = (t) => {
2613
+ }) : null, ti = (t) => {
2614
2614
  const e = t.project.products.pageInfo, s = t.project.products.edges.map((n) => {
2615
2615
  const i = n.node, r = R(i.allAttrib), a = {
2616
2616
  ...i.folder,
@@ -2624,11 +2624,11 @@ const Qn = (t, e) => {
2624
2624
  attrib: r,
2625
2625
  folder: a,
2626
2626
  versions: d,
2627
- featuredVersion: Xn(i)
2627
+ featuredVersion: ei(i)
2628
2628
  };
2629
2629
  });
2630
2630
  return { pageInfo: e, products: s };
2631
- }, Rt = (t) => {
2631
+ }, Gt = (t) => {
2632
2632
  try {
2633
2633
  const e = t.match(/:\s*({.*})$/);
2634
2634
  if (!e)
@@ -2643,7 +2643,7 @@ const Qn = (t, e) => {
2643
2643
  return t.split(":")[0] || t;
2644
2644
  }
2645
2645
  }, K = 10;
2646
- function hs(t, e, s, n) {
2646
+ function ms(t, e, s, n) {
2647
2647
  for (let i = 0; i < t.length; i++) {
2648
2648
  const r = e[s], a = t[i][s];
2649
2649
  if (n ? r > a : r < a)
@@ -2651,7 +2651,7 @@ function hs(t, e, s, n) {
2651
2651
  }
2652
2652
  return t.length;
2653
2653
  }
2654
- function ei(t, e, s, n, i, r) {
2654
+ function si(t, e, s, n, i, r) {
2655
2655
  for (const a of t) {
2656
2656
  const c = a[n], d = c.findIndex((u) => u.id === e);
2657
2657
  if (d !== -1) {
@@ -2660,7 +2660,7 @@ function ei(t, e, s, n, i, r) {
2660
2660
  }
2661
2661
  }
2662
2662
  if (s && t.length > 0) {
2663
- const a = t[0][n], c = hs(a, s, i, r);
2663
+ const a = t[0][n], c = ms(a, s, i, r);
2664
2664
  a.splice(c, 0, s);
2665
2665
  }
2666
2666
  }
@@ -2679,10 +2679,10 @@ function Qe(t, e, s, n, i, r = !0) {
2679
2679
  return t[c] = e, !0;
2680
2680
  if (!r) return !1;
2681
2681
  }
2682
- const a = hs(t, e, n, i);
2682
+ const a = ms(t, e, n, i);
2683
2683
  return t.splice(a, 0, e), !0;
2684
2684
  }
2685
- function ti(t, e, s, n, i) {
2685
+ function ni(t, e, s, n, i) {
2686
2686
  if (s)
2687
2687
  for (const r of t)
2688
2688
  Qe(r.versions, e, !0, n, i, !1);
@@ -2696,20 +2696,20 @@ const z = Q.enhanceEndpoints({
2696
2696
  endpoints: {
2697
2697
  // used by both stacked and non-stacked views
2698
2698
  GetVersions: {
2699
- transformResponse: _t,
2699
+ transformResponse: Rt,
2700
2700
  providesTags: xe,
2701
2701
  keepUnusedDataFor: K
2702
2702
  },
2703
2703
  // used by getVersionsByProducts only
2704
2704
  GetVersionsByProductId: {
2705
- transformResponse: _t,
2705
+ transformResponse: Rt,
2706
2706
  providesTags: xe,
2707
2707
  keepUnusedDataFor: K
2708
2708
  },
2709
2709
  // used by getProductsInfinite only
2710
2710
  GetProducts: {
2711
- transformResponse: Zn,
2712
- providesTags: zn,
2711
+ transformResponse: ti,
2712
+ providesTags: Jn,
2713
2713
  keepUnusedDataFor: K
2714
2714
  },
2715
2715
  // footer stats: `targets` excluded from cache key + responses merged,
@@ -2731,7 +2731,7 @@ const z = Q.enhanceEndpoints({
2731
2731
  keepUnusedDataFor: K
2732
2732
  }
2733
2733
  }
2734
- }), ae = 250, Gt = 1e3, si = 10, ni = ["status", "tags"];
2734
+ }), ae = 250, Ct = 1e3, ii = 10, ri = ["status", "tags"];
2735
2735
  function Fe(t, e, s) {
2736
2736
  const i = U(
2737
2737
  async (a, c) => {
@@ -2750,7 +2750,7 @@ function Fe(t, e, s) {
2750
2750
  o.add(g);
2751
2751
  continue;
2752
2752
  }
2753
- const I = pe(b, h.summary, ni);
2753
+ const I = pe(b, h.summary, ri);
2754
2754
  if (!I) {
2755
2755
  l.add(g);
2756
2756
  continue;
@@ -2855,7 +2855,7 @@ const N = z.injectEndpoints({
2855
2855
  return console.error("Error in getVersionsInfiniteQuery queryFn:", i), { error: L(i) };
2856
2856
  }
2857
2857
  },
2858
- providesTags: Hn,
2858
+ providesTags: zn,
2859
2859
  // Subscribes to version entity changes and updates cache accordingly
2860
2860
  // Handles: create, update, delete operations
2861
2861
  onCacheEntryAdded: async (e, { getCacheEntry: s, updateCachedData: n, cacheEntryRemoved: i, dispatch: r }) => {
@@ -2922,7 +2922,7 @@ const N = z.injectEndpoints({
2922
2922
  }
2923
2923
  if (p)
2924
2924
  for (const g of p)
2925
- ti(
2925
+ ni(
2926
2926
  y.pages,
2927
2927
  g,
2928
2928
  e.latestPerFolder === !0 && f?.has(g.id) === !0,
@@ -2946,7 +2946,7 @@ const N = z.injectEndpoints({
2946
2946
  ...a,
2947
2947
  productIds: [p]
2948
2948
  };
2949
- return r ? (f && (y.before = f), y.last = Gt) : (f && (y.after = f), y.first = Gt), s(
2949
+ return r ? (f && (y.before = f), y.last = Ct) : (f && (y.after = f), y.first = Ct), s(
2950
2950
  z.endpoints.GetVersionsByProductId.initiate(y, {
2951
2951
  forceRefetch: n
2952
2952
  })
@@ -2955,7 +2955,7 @@ const N = z.injectEndpoints({
2955
2955
  for (let p = 0; p < u.length; p++) {
2956
2956
  const f = u[p], y = i[p];
2957
2957
  if (f.status === "rejected") {
2958
- console.error(`Error fetching versions for product ${y}:`, f.reason), l.push({ productId: y, error: Rt(f.reason) });
2958
+ console.error(`Error fetching versions for product ${y}:`, f.reason), l.push({ productId: y, error: Gt(f.reason) });
2959
2959
  continue;
2960
2960
  }
2961
2961
  const h = f.value;
@@ -2963,14 +2963,14 @@ const N = z.injectEndpoints({
2963
2963
  console.error(`Error fetching versions for product ${y}:`, h.error), l.push({
2964
2964
  productId: y,
2965
2965
  // @ts-expect-error - message
2966
- error: Rt(h.error?.message || "Unknown error")
2966
+ error: Gt(h.error?.message || "Unknown error")
2967
2967
  });
2968
2968
  continue;
2969
2969
  }
2970
2970
  if (!h.data) continue;
2971
2971
  o.push(...h.data.versions);
2972
2972
  let g = h.data.pageInfo, m = 1;
2973
- for (; g && m < si; ) {
2973
+ for (; g && m < ii; ) {
2974
2974
  const v = r ? g.hasPreviousPage : g.hasNextPage, b = g.endCursor;
2975
2975
  if (!v || !b) break;
2976
2976
  const I = await c(y, b);
@@ -3106,7 +3106,7 @@ const N = z.injectEndpoints({
3106
3106
  return console.error("Error in getProductsInfiniteQuery queryFn:", r), { error: L(r) };
3107
3107
  }
3108
3108
  },
3109
- providesTags: Wn,
3109
+ providesTags: Kn,
3110
3110
  // Subscribes to product entity changes and updates cache accordingly
3111
3111
  // Handles: create, update, delete operations
3112
3112
  // Often triggered together with version changes (new product + version)
@@ -3146,7 +3146,7 @@ const N = z.injectEndpoints({
3146
3146
  (g.data?.products || []).map((b) => [b.id, b])
3147
3147
  );
3148
3148
  f.forEach((b) => {
3149
- ei(
3149
+ si(
3150
3150
  m.pages,
3151
3151
  b,
3152
3152
  v.get(b),
@@ -3368,15 +3368,15 @@ const N = z.injectEndpoints({
3368
3368
  })
3369
3369
  })
3370
3370
  }), {
3371
- useGetVersionsQuery: ja,
3372
- useGetProductsColumnStatsQuery: Fa,
3373
- useGetVersionsColumnStatsQuery: _a
3371
+ useGetVersionsQuery: Ra,
3372
+ useGetProductsColumnStatsQuery: Ga,
3373
+ useGetVersionsColumnStatsQuery: Ca
3374
3374
  } = z, {
3375
- useGetVersionsInfiniteInfiniteQuery: Ra,
3376
- useGetVersionsByProductsQuery: Ga,
3377
- useGetProductsInfiniteInfiniteQuery: Ca,
3378
- useGetGroupedVersionsListQuery: Na
3379
- } = N, Ct = (t) => [
3375
+ useGetVersionsInfiniteInfiniteQuery: Na,
3376
+ useGetVersionsByProductsQuery: Qa,
3377
+ useGetProductsInfiniteInfiniteQuery: Ma,
3378
+ useGetGroupedVersionsListQuery: Va
3379
+ } = N, Nt = (t) => [
3380
3380
  { type: "version", id: "LIST" },
3381
3381
  ...t.map((e) => ({ type: "version", id: e.entityId }))
3382
3382
  ], _e = (t, e) => {
@@ -3387,26 +3387,26 @@ const N = z.injectEndpoints({
3387
3387
  ...s.attrib,
3388
3388
  ...e.attrib
3389
3389
  }), s;
3390
- }, ms = (t, e) => {
3390
+ }, vs = (t, e) => {
3391
3391
  e.data && (Object.entries(e.data).forEach(([s, n]) => {
3392
3392
  s !== "attrib" && (t[s] = n);
3393
3393
  }), e.data.attrib && (t.attrib = { ...t.attrib, ...e.data.attrib }));
3394
- }, Nt = (t, e) => {
3394
+ }, Qt = (t, e) => {
3395
3395
  t.forEach((s) => {
3396
3396
  [s.task, s.product, s.product?.folder].forEach((i) => {
3397
3397
  if (!i) return;
3398
3398
  const r = e.get(i.id);
3399
- r && ms(i, r);
3399
+ r && vs(i, r);
3400
3400
  });
3401
3401
  });
3402
- }, Qt = (t, e) => {
3402
+ }, Mt = (t, e) => {
3403
3403
  t.forEach((s) => {
3404
3404
  const n = s.folder;
3405
3405
  if (!n) return;
3406
3406
  const i = e.get(n.id);
3407
- i && ms(n, i);
3407
+ i && vs(n, i);
3408
3408
  });
3409
- }, ii = (t, {
3409
+ }, ai = (t, {
3410
3410
  state: e,
3411
3411
  dispatch: s
3412
3412
  }, n) => {
@@ -3428,7 +3428,7 @@ const N = z.injectEndpoints({
3428
3428
  a.originalArgs,
3429
3429
  (d) => {
3430
3430
  for (const u of d.pages)
3431
- Nt(u.versions, i);
3431
+ Qt(u.versions, i);
3432
3432
  }
3433
3433
  )
3434
3434
  );
@@ -3440,7 +3440,7 @@ const N = z.injectEndpoints({
3440
3440
  a.originalArgs,
3441
3441
  (d) => {
3442
3442
  for (const u of d.pages)
3443
- Qt(u.products, i);
3443
+ Mt(u.products, i);
3444
3444
  }
3445
3445
  )
3446
3446
  );
@@ -3450,7 +3450,7 @@ const N = z.injectEndpoints({
3450
3450
  N.util.updateQueryData(
3451
3451
  a.endpointName,
3452
3452
  a.originalArgs,
3453
- (d) => Nt(d.versions, i)
3453
+ (d) => Qt(d.versions, i)
3454
3454
  )
3455
3455
  );
3456
3456
  n?.push(c);
@@ -3459,17 +3459,17 @@ const N = z.injectEndpoints({
3459
3459
  N.util.updateQueryData(
3460
3460
  a.endpointName,
3461
3461
  a.originalArgs,
3462
- (d) => Qt(d.products, i)
3462
+ (d) => Mt(d.products, i)
3463
3463
  )
3464
3464
  );
3465
3465
  n?.push(c);
3466
3466
  }
3467
- }, ri = (t, {
3467
+ }, oi = (t, {
3468
3468
  state: e,
3469
3469
  dispatch: s
3470
3470
  }, n) => {
3471
3471
  if (!t.length) return;
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
+ const i = Nt(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((d) => d.type === "delete").map((d) => d.entityId));
3473
3473
  for (const d of r)
3474
3474
  if (d.endpointName === "getVersionsInfinite") {
3475
3475
  const u = s(
@@ -3556,11 +3556,11 @@ const N = z.injectEndpoints({
3556
3556
  n?.push(u);
3557
3557
  }
3558
3558
  const c = t.filter((d) => d.type !== "delete");
3559
- c.length > 0 && s(N.util.invalidateTags(Ct(c)));
3560
- }, Mt = (t) => [
3559
+ c.length > 0 && s(N.util.invalidateTags(Nt(c)));
3560
+ }, Vt = (t) => [
3561
3561
  { type: "product", id: "LIST" },
3562
3562
  ...t.map((e) => ({ type: "product", id: e.entityId }))
3563
- ], ai = (t, e) => {
3563
+ ], ci = (t, e) => {
3564
3564
  const s = { ...t };
3565
3565
  return Object.keys(e).forEach((n) => {
3566
3566
  n !== "attrib" && e[n] !== void 0 && (s[n] = e[n]);
@@ -3568,12 +3568,12 @@ const N = z.injectEndpoints({
3568
3568
  ...s.attrib,
3569
3569
  ...e.attrib
3570
3570
  }), s;
3571
- }, oi = (t, {
3571
+ }, di = (t, {
3572
3572
  state: e,
3573
3573
  dispatch: s
3574
3574
  }, n) => {
3575
3575
  if (!t.length) return;
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
+ const i = Vt(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((u) => u.type === "delete").map((u) => u.entityId)), c = (u) => {
3577
3577
  for (let o = u.length - 1; o >= 0; o--)
3578
3578
  a.has(u[o].product?.id) && u.splice(o, 1);
3579
3579
  };
@@ -3591,7 +3591,7 @@ const N = z.injectEndpoints({
3591
3591
  const y = p.products[f], h = t.find(
3592
3592
  (g) => g.entityId === y.id && g.type !== "delete"
3593
3593
  );
3594
- h?.data && (p.products[f] = ai(y, h.data));
3594
+ h?.data && (p.products[f] = ci(y, h.data));
3595
3595
  }
3596
3596
  }
3597
3597
  }
@@ -3623,7 +3623,7 @@ const N = z.injectEndpoints({
3623
3623
  n?.push(o);
3624
3624
  }
3625
3625
  const d = t.filter((u) => u.type !== "delete");
3626
- d.length > 0 && s(N.util.invalidateTags(Mt(d)));
3626
+ d.length > 0 && s(N.util.invalidateTags(Vt(d)));
3627
3627
  }, Ue = (t, e) => {
3628
3628
  if (Object.keys(e).forEach((s) => {
3629
3629
  s === "attrib" || s === "links" || s === "deleteLinks" || (t[s] = e[s]);
@@ -3643,7 +3643,7 @@ const N = z.injectEndpoints({
3643
3643
  t.links = t.links.filter((i) => i.id !== n);
3644
3644
  });
3645
3645
  }
3646
- }, ci = (t) => [
3646
+ }, ui = (t) => [
3647
3647
  { type: "overviewTask", id: "LIST" },
3648
3648
  ...t.map((e) => ({ type: "overviewTask", id: e.entityId })),
3649
3649
  // we also add the projectName so that tasks that do not exist in the cache can still invalidate
@@ -3651,31 +3651,31 @@ const N = z.injectEndpoints({
3651
3651
  type: "overviewTask",
3652
3652
  id: e.data?.projectName
3653
3653
  }))
3654
- ], di = (t) => [
3654
+ ], li = (t) => [
3655
3655
  ...t.map((e) => ({ type: "folder", id: e.entityId })),
3656
3656
  // we also add the projectName so that tasks that do not exist in the cache can still invalidate
3657
3657
  ...t.filter((e) => e.data?.projectName).map((e) => ({
3658
3658
  type: "folder",
3659
3659
  id: e.data?.projectName
3660
3660
  }))
3661
- ], ui = (t, e, s) => ({
3661
+ ], pi = (t, e, s) => ({
3662
3662
  entityId: t,
3663
3663
  entityType: e,
3664
3664
  type: "update",
3665
3665
  data: { deleteLinks: s }
3666
- }), Qa = (t, e) => t.map(
3667
- (s) => ui(s.entityId, s.entityType, e)
3668
- ), Ma = (t, {
3666
+ }), Da = (t, e) => t.map(
3667
+ (s) => pi(s.entityId, s.entityType, e)
3668
+ ), Oa = (t, {
3669
3669
  state: e,
3670
3670
  dispatch: s
3671
3671
  }, n) => {
3672
3672
  const i = t.reduce((r, a) => (r[a.entityType] || (r[a.entityType] = []), r[a.entityType].push(a), r), {});
3673
- i.task && Ee(i.task, { state: e, dispatch: s }, n), i.folder && qe(i.folder, { state: e, dispatch: s }, n);
3673
+ i.task && Ee(i.task, { state: e, dispatch: s }, n), i.folder && Be(i.folder, { state: e, dispatch: s }, n);
3674
3674
  }, Ee = (t, {
3675
3675
  state: e,
3676
3676
  dispatch: s
3677
3677
  }, n) => {
3678
- const i = ci(t), r = x.util.selectInvalidatedBy(e, i), a = new Set(
3678
+ const i = ui(t), r = x.util.selectInvalidatedBy(e, i), a = new Set(
3679
3679
  t.filter((d) => d.type === "delete" && d.entityId).map((d) => d.entityId)
3680
3680
  ), c = (d) => {
3681
3681
  for (let u = d.length - 1; u >= 0; u--)
@@ -3721,7 +3721,7 @@ const N = z.injectEndpoints({
3721
3721
  );
3722
3722
  n?.push(u);
3723
3723
  }
3724
- }, et = /* @__PURE__ */ new Map(), Vt = (t, e, s) => {
3724
+ }, et = /* @__PURE__ */ new Map(), Dt = (t, e, s) => {
3725
3725
  const n = `${e}:${s.join()}`, i = et.get(n);
3726
3726
  i && clearTimeout(i), et.set(
3727
3727
  n,
@@ -3731,11 +3731,11 @@ const N = z.injectEndpoints({
3731
3731
  );
3732
3732
  }, 500)
3733
3733
  );
3734
- }, qe = (t, {
3734
+ }, Be = (t, {
3735
3735
  state: e,
3736
3736
  dispatch: s
3737
3737
  }, n) => {
3738
- const i = $e.util.selectInvalidatedBy(e, di(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
3738
+ const i = $e.util.selectInvalidatedBy(e, li(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
3739
3739
  t.filter((a) => a.type === "delete" && a.entityId).map((a) => a.entityId)
3740
3740
  );
3741
3741
  for (const a of i) {
@@ -3763,17 +3763,17 @@ const N = z.injectEndpoints({
3763
3763
  );
3764
3764
  n?.push(c);
3765
3765
  }
3766
- }, li = (t, {
3766
+ }, fi = (t, {
3767
3767
  state: e,
3768
3768
  dispatch: s
3769
3769
  }, n) => {
3770
- const i = t.map((c) => ({ type: "entityListItem", id: c.entityId })), r = q.util.selectInvalidatedBy(e, i), a = new Set(
3770
+ const i = t.map((c) => ({ type: "entityListItem", id: c.entityId })), r = B.util.selectInvalidatedBy(e, i), a = new Set(
3771
3771
  t.filter((c) => c.type === "delete" && c.entityId).map((c) => c.entityId)
3772
3772
  );
3773
3773
  for (const c of r)
3774
3774
  if (c.endpointName === "getListItemsInfinite") {
3775
3775
  const d = s(
3776
- q.util.updateQueryData(
3776
+ B.util.updateQueryData(
3777
3777
  "getListItemsInfinite",
3778
3778
  c.originalArgs,
3779
3779
  (u) => {
@@ -3792,23 +3792,23 @@ const N = z.injectEndpoints({
3792
3792
  );
3793
3793
  n?.push(d);
3794
3794
  }
3795
- }, Dt = (t) => t.reduce(
3795
+ }, Ot = (t) => t.reduce(
3796
3796
  (e, s) => (e[s.type].push(s), e),
3797
3797
  {
3798
3798
  create: [],
3799
3799
  update: [],
3800
3800
  delete: []
3801
3801
  }
3802
- ), Ot = js.enhanceEndpoints({
3802
+ ), $t = Fs.enhanceEndpoints({
3803
3803
  endpoints: {
3804
3804
  operations: {}
3805
3805
  }
3806
- }), pi = Ot.injectEndpoints({
3806
+ }), yi = $t.injectEndpoints({
3807
3807
  endpoints: (t) => ({
3808
3808
  updateOverviewEntities: t.mutation({
3809
3809
  async queryFn(e, { dispatch: s }) {
3810
3810
  try {
3811
- const n = await s(Ot.endpoints.operations.initiate(e));
3811
+ const n = await s($t.endpoints.operations.initiate(e));
3812
3812
  if (n.error)
3813
3813
  return { error: L(n.error) };
3814
3814
  const i = n.data, r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
@@ -3846,23 +3846,23 @@ const N = z.injectEndpoints({
3846
3846
  }
3847
3847
  ), u = a(), o = [];
3848
3848
  if (d.task?.length) {
3849
- const { delete: v, update: b } = Dt(d.task), I = b.filter(
3849
+ const { delete: v, update: b } = Ot(d.task), I = b.filter(
3850
3850
  (k) => !s.some((T) => T.entityId === k.entityId)
3851
3851
  );
3852
3852
  Ee([...I, ...v], { state: u, dispatch: i }, o);
3853
3853
  }
3854
3854
  if (d.folder?.length) {
3855
- const { delete: v, update: b } = Dt(d.folder), I = b.filter(
3855
+ const { delete: v, update: b } = Ot(d.folder), I = b.filter(
3856
3856
  (k) => !s.some((T) => T.entityId === k.entityId)
3857
3857
  );
3858
- qe([...I, ...v], { state: u, dispatch: i }, o);
3858
+ Be([...I, ...v], { state: u, dispatch: i }, o);
3859
3859
  }
3860
3860
  const l = s.filter((v) => v.entityType === "task"), p = s.filter((v) => v.entityType === "folder");
3861
- l.length && Ee(l, { state: u, dispatch: i }, o), p.length && qe(p, { state: u, dispatch: i }, o), ii(
3861
+ l.length && Ee(l, { state: u, dispatch: i }, o), p.length && Be(p, { state: u, dispatch: i }, o), ai(
3862
3862
  [...c, ...s],
3863
3863
  { state: u, dispatch: i },
3864
3864
  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
+ ), fi([...c, ...s], { state: u, dispatch: i }, o), d.version?.length && oi(d.version, { state: u, dispatch: i }, o), d.product?.length && di(d.product, { state: u, dispatch: i }, o);
3866
3866
  const f = c.map((v) => ({
3867
3867
  id: v.entityId,
3868
3868
  type: v.entityType
@@ -3884,7 +3884,7 @@ const N = z.injectEndpoints({
3884
3884
  v.originalArgs,
3885
3885
  (I) => {
3886
3886
  for (const k of I)
3887
- ds(c, k);
3887
+ us(c, k);
3888
3888
  }
3889
3889
  )
3890
3890
  );
@@ -3893,20 +3893,20 @@ const N = z.injectEndpoints({
3893
3893
  try {
3894
3894
  await r;
3895
3895
  const v = d.task || [], b = d.folder || [], I = d.version || [], k = d.product || [];
3896
- if (n && ((v.length || b.length) && Vt(i, n, [
3896
+ if (n && ((v.length || b.length) && Dt(i, n, [
3897
3897
  "folderColumnStats",
3898
3898
  "taskColumnStats",
3899
3899
  "entityListItemsColumnStats"
3900
- ]), (I.length || k.length) && Vt(i, n, [
3900
+ ]), (I.length || k.length) && Dt(i, n, [
3901
3901
  "productColumnStats",
3902
3902
  "versionColumnStats",
3903
3903
  "entityListItemsColumnStats"
3904
3904
  ])), v.length === 0 && b.length === 0)
3905
3905
  return;
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
+ const T = _t(v), w = _t(b), A = T.map((P) => ({ type: "overviewTask", id: P })), E = x.util.selectInvalidatedBy(u, A).filter((P) => P.endpointName === "getTasksListInfinite");
3907
3907
  if (T.length > 0 && n) {
3908
3908
  for (const S of E)
3909
- await Un({
3909
+ await qn({
3910
3910
  dispatch: i,
3911
3911
  projectName: n,
3912
3912
  updatedTaskIds: T,
@@ -3914,7 +3914,7 @@ const N = z.injectEndpoints({
3914
3914
  });
3915
3915
  const P = x.util.selectInvalidatedBy(u, A).filter((S) => S.endpointName === "getOverviewTasksByFolders");
3916
3916
  for (const S of P)
3917
- await qn({
3917
+ await Hn({
3918
3918
  dispatch: i,
3919
3919
  projectName: n,
3920
3920
  updatedTaskIds: T,
@@ -3953,17 +3953,17 @@ const N = z.injectEndpoints({
3953
3953
  }
3954
3954
  })
3955
3955
  })
3956
- }), { useUpdateOverviewEntitiesMutation: Va } = pi, ct = (t) => {
3956
+ }), { useUpdateOverviewEntitiesMutation: $a } = yi, ct = (t) => {
3957
3957
  if (t)
3958
3958
  return t.label;
3959
- }, $t = {
3959
+ }, xt = {
3960
3960
  folder: "GetFoldersLinks",
3961
3961
  task: "GetTasksLinks",
3962
3962
  product: "GetProductsLinks",
3963
3963
  version: "GetVersionsLinks",
3964
3964
  representation: "GetRepresentationsLinks",
3965
3965
  workfile: "GetWorkfilesLinks"
3966
- }, xt = {
3966
+ }, Ut = {
3967
3967
  folder: "folders",
3968
3968
  task: "tasks",
3969
3969
  product: "products",
@@ -3978,7 +3978,7 @@ const N = z.injectEndpoints({
3978
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);
3979
3979
  if (f.length === 0)
3980
3980
  return { data: l };
3981
- const y = $t[n], h = xt[n];
3981
+ const y = xt[n], h = Ut[n];
3982
3982
  return { data: (await r(
3983
3983
  M.endpoints[y].initiate(
3984
3984
  { projectName: e, entityIds: f },
@@ -4016,7 +4016,7 @@ const N = z.injectEndpoints({
4016
4016
  };
4017
4017
  }) || [] };
4018
4018
  } catch (d) {
4019
- return console.error(`Error in getEntityLinks queryFn for ${n}:`, d), ts.error(`Error fetching ${n} links`), { error: L(d) };
4019
+ return console.error(`Error in getEntityLinks queryFn for ${n}:`, d), ss.error(`Error fetching ${n} links`), { error: L(d) };
4020
4020
  }
4021
4021
  },
4022
4022
  // 2. We should not create new caches when the entityIds argument changes.
@@ -4051,7 +4051,7 @@ const N = z.injectEndpoints({
4051
4051
  let c;
4052
4052
  const d = U(
4053
4053
  async (u, o) => {
4054
- const l = $t[s], p = xt[s];
4054
+ const l = xt[s], p = Ut[s];
4055
4055
  try {
4056
4056
  await J();
4057
4057
  const f = await a(
@@ -4105,7 +4105,7 @@ const N = z.injectEndpoints({
4105
4105
  }
4106
4106
  })
4107
4107
  })
4108
- }), { useGetEntityLinksQuery: Da } = le, ne = 10, Ut = (t) => {
4108
+ }), { useGetEntityLinksQuery: xa } = le, ne = 10, Bt = (t) => {
4109
4109
  if (!t) return {};
4110
4110
  try {
4111
4111
  return typeof t != "string" ? t ?? {} : JSON.parse(t);
@@ -4119,8 +4119,8 @@ const N = z.injectEndpoints({
4119
4119
  // @ts-expect-error - entityType is string
4120
4120
  lists: t.project.entityLists.edges.map((e) => ({
4121
4121
  ...e.node,
4122
- data: Ut(e.node.data),
4123
- attrib: Ut(e.node.allAttrib)
4122
+ data: Bt(e.node.data),
4123
+ attrib: Bt(e.node.allAttrib)
4124
4124
  })),
4125
4125
  pageInfo: t.project.entityLists.pageInfo
4126
4126
  }),
@@ -4152,7 +4152,7 @@ const N = z.injectEndpoints({
4152
4152
  keepUnusedDataFor: ne
4153
4153
  }
4154
4154
  }
4155
- }), q = Re.injectEndpoints({
4155
+ }), B = Re.injectEndpoints({
4156
4156
  endpoints: (t) => ({
4157
4157
  getListsInfinite: t.infiniteQuery({
4158
4158
  infiniteQueryOptions: {
@@ -4402,7 +4402,7 @@ const N = z.injectEndpoints({
4402
4402
  keepUnusedDataFor: ne
4403
4403
  })
4404
4404
  })
4405
- }), fi = ue.enhanceEndpoints({
4405
+ }), gi = 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: Oa,
4424
- useGetListItemsInfiniteInfiniteQuery: $a,
4425
- useGetListsItemsForReviewSessionInfiniteQuery: xa,
4426
- useLazyGetListsItemsForReviewSessionQuery: Ua,
4427
- useLazyGetListItemsQuery: qa
4428
- } = q, { useGetEntityListQuery: Ba } = fi, yi = ue.enhanceEndpoints({
4423
+ useGetListsInfiniteInfiniteQuery: Ua,
4424
+ useGetListItemsInfiniteInfiniteQuery: Ba,
4425
+ useGetListsItemsForReviewSessionInfiniteQuery: qa,
4426
+ useLazyGetListsItemsForReviewSessionQuery: Ha,
4427
+ useLazyGetListItemsQuery: Wa
4428
+ } = B, { useGetEntityListQuery: za } = gi, hi = ue.enhanceEndpoints({
4429
4429
  endpoints: {
4430
4430
  // LIST MUTATIONS
4431
4431
  createEntityList: {
@@ -4433,11 +4433,11 @@ const N = z.injectEndpoints({
4433
4433
  },
4434
4434
  updateEntityList: {
4435
4435
  async onQueryStarted({ listId: t, entityListPatchModel: e }, { dispatch: s, queryFulfilled: n, getState: i }) {
4436
- const r = i(), a = [{ type: "entityList", id: t }], c = q.util.selectInvalidatedBy(r, a).filter((o) => o.endpointName === "getListsInfinite");
4436
+ const r = i(), a = [{ type: "entityList", id: t }], c = B.util.selectInvalidatedBy(r, a).filter((o) => o.endpointName === "getListsInfinite");
4437
4437
  let d = [];
4438
4438
  for (const o of c) {
4439
4439
  const l = s(
4440
- q.util.updateQueryData("getListsInfinite", o.originalArgs, (p) => {
4440
+ B.util.updateQueryData("getListsInfinite", o.originalArgs, (p) => {
4441
4441
  for (const f of p.pages) {
4442
4442
  const y = f.lists.findIndex((h) => h.id === t);
4443
4443
  if (y !== -1) {
@@ -4478,7 +4478,7 @@ const N = z.injectEndpoints({
4478
4478
  // LIST ITEM MUTATIONS
4479
4479
  updateEntityListItems: {
4480
4480
  async onQueryStarted({ listId: t, entityListMultiPatchModel: e }, { dispatch: s, queryFulfilled: n, getState: i }) {
4481
- const r = i(), a = [{ type: "entityListItem", id: t }], c = q.util.selectInvalidatedBy(r, a).filter((u) => u.endpointName === "getListItemsInfinite");
4481
+ const r = i(), a = [{ type: "entityListItem", id: t }], c = B.util.selectInvalidatedBy(r, a).filter((u) => u.endpointName === "getListItemsInfinite");
4482
4482
  let d = [];
4483
4483
  if (!e.items || e.items.length === 0) {
4484
4484
  await n;
@@ -4487,7 +4487,7 @@ const N = z.injectEndpoints({
4487
4487
  for (const u of c) {
4488
4488
  if (u.originalArgs.listId !== t) continue;
4489
4489
  const o = s(
4490
- q.util.updateQueryData("getListItemsInfinite", u.originalArgs, (l) => {
4490
+ B.util.updateQueryData("getListItemsInfinite", u.originalArgs, (l) => {
4491
4491
  let p = !1;
4492
4492
  for (const f of l.pages)
4493
4493
  e.items?.forEach((y) => {
@@ -4551,11 +4551,11 @@ const N = z.injectEndpoints({
4551
4551
  },
4552
4552
  updateEntityListItem: {
4553
4553
  async onQueryStarted({ listItemId: t, entityListItemPatchModel: e }, { dispatch: s, queryFulfilled: n, getState: i }) {
4554
- const r = i(), a = [{ type: "entityListItem", id: t }], c = q.util.selectInvalidatedBy(r, a).filter((u) => u.endpointName === "getListItemsInfinite");
4554
+ const r = i(), a = [{ type: "entityListItem", id: t }], c = B.util.selectInvalidatedBy(r, a).filter((u) => u.endpointName === "getListItemsInfinite");
4555
4555
  let d = [];
4556
4556
  for (const u of c) {
4557
4557
  const o = s(
4558
- q.util.updateQueryData("getListItemsInfinite", u.originalArgs, (l) => {
4558
+ B.util.updateQueryData("getListItemsInfinite", u.originalArgs, (l) => {
4559
4559
  for (const p of l.pages) {
4560
4560
  const f = p.items.findIndex((y) => y.id === t);
4561
4561
  if (f !== -1) {
@@ -4608,7 +4608,7 @@ const N = z.injectEndpoints({
4608
4608
  ]
4609
4609
  }
4610
4610
  }
4611
- }), gi = yi.injectEndpoints({
4611
+ }), mi = hi.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: Ha,
4625
- useUpdateEntityListMutation: Wa,
4626
- useDeleteEntityListMutation: za,
4624
+ useCreateEntityListMutation: Ka,
4625
+ useUpdateEntityListMutation: Ja,
4626
+ useDeleteEntityListMutation: Ya,
4627
4627
  // LIST ITEM MUTATIONS
4628
- useUpdateEntityListItemsMutation: Ka,
4629
- useUpdateEntityListItemMutation: Ja,
4630
- useCreateEntityListItemMutation: Ya,
4631
- useDeleteEntityListItemMutation: Xa,
4628
+ useUpdateEntityListItemsMutation: Xa,
4629
+ useUpdateEntityListItemMutation: Za,
4630
+ useCreateEntityListItemMutation: eo,
4631
+ useDeleteEntityListItemMutation: to,
4632
4632
  // REVIEW SESSION MUTATIONS
4633
- useCreateSessionFromListMutation: Za
4634
- } = gi, Bt = 5, Te = (t) => (t || "").replace(/-/g, ""), hi = (t, e, s) => {
4633
+ useCreateSessionFromListMutation: so
4634
+ } = mi, Ht = 5, Te = (t) => (t || "").replace(/-/g, ""), vi = (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 > Bt && n.splice(Bt));
4638
- }, mi = [
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 > Ht && n.splice(Ht));
4638
+ }, bi = [
4639
4639
  {
4640
4640
  api: x,
4641
4641
  tag: "overviewTask",
@@ -4646,7 +4646,7 @@ const N = z.injectEndpoints({
4646
4646
  }
4647
4647
  },
4648
4648
  {
4649
- api: q,
4649
+ api: B,
4650
4650
  tag: "entityListItem",
4651
4651
  selectors: {
4652
4652
  getListItemsInfinite: (t) => t?.pages?.flatMap((e) => e.items ?? []) ?? []
@@ -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
- ], vi = (t, { dispatch: e, getState: s }, n) => {
4665
+ ], Ii = (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 mi) {
4678
+ for (const { api: l, tag: p, selectors: f } of bi) {
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) && hi(b, c, n);
4686
+ (Te(b?.id) === u || Te(b?.entityId) === u) && vi(b, c, n);
4687
4687
  })
4688
4688
  )
4689
4689
  );
4690
4690
  }
4691
4691
  }
4692
4692
  return o;
4693
- }, bi = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, Ii = async (t, {
4693
+ }, Ti = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, ki = async (t, {
4694
4694
  updateCachedData: e,
4695
4695
  cacheDataLoaded: s,
4696
4696
  cacheEntryRemoved: n,
@@ -4742,12 +4742,12 @@ const N = z.injectEndpoints({
4742
4742
  e((E) => {
4743
4743
  A.forEach((P, S) => {
4744
4744
  const j = [P.activityType];
4745
- if (P.activityType === "comment" && bi(P.body || "") && j.push("checklist"), h.length > 0 && !h.some(($) => j.includes($)))
4745
+ if (P.activityType === "comment" && Ti(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
- (Es) => Es.activityId === S
4750
+ (Ss) => Ss.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")
@@ -4805,14 +4805,19 @@ const N = z.injectEndpoints({
4805
4805
  endpoints: {
4806
4806
  // Only used by the infinite query below
4807
4807
  GetActivities: {
4808
- transformResponse: (t) => bt(t.project.activities.edges, t.project.activities.pageInfo),
4809
- providesTags: is
4808
+ transformResponse: (t) => It(t.project.activities.edges, t.project.activities.pageInfo),
4809
+ providesTags: rs
4810
4810
  },
4811
4811
  GetActivitiesById: {
4812
- transformResponse: (t) => bt(t.project.activities.edges, t.project.activities.pageInfo)
4812
+ transformResponse: (t) => It(t.project.activities.edges, t.project.activities.pageInfo)
4813
+ },
4814
+ GetVersionsFrameStart: {
4815
+ transformResponse: (t) => Object.fromEntries(
4816
+ t.project.versions.edges.map(({ node: e }) => [e.id, e.attrib.frameStart])
4817
+ )
4813
4818
  },
4814
4819
  GetEntitiesChecklists: {
4815
- transformResponse: (t) => cn(t),
4820
+ transformResponse: (t) => un(t),
4816
4821
  providesTags: (t, e, { entityIds: s }) => t ? [
4817
4822
  { type: "activity", id: "LIST" },
4818
4823
  ...t.ids.map((n) => ({ type: "activity", id: "checklist-" + n })),
@@ -4827,18 +4832,18 @@ const N = z.injectEndpoints({
4827
4832
  providesTags: (t) => t?.length ? [{ type: "user", id: "LIST" }, ...t.map(({ name: e }) => ({ type: "user", id: e }))] : [{ type: "user", id: "LIST" }]
4828
4833
  }
4829
4834
  }
4830
- }), Ht = 30, ye = st.injectEndpoints({
4835
+ }), Wt = 30, ye = st.injectEndpoints({
4831
4836
  endpoints: (t) => ({
4832
4837
  getActivitiesInfinite: t.infiniteQuery({
4833
4838
  infiniteQueryOptions: {
4834
- initialPageParam: { cursor: "", last: Ht },
4839
+ initialPageParam: { cursor: "", last: Wt },
4835
4840
  // Calculate the next page param based on current page response and params
4836
4841
  getNextPageParam: (e) => {
4837
4842
  const s = e.pageInfo;
4838
4843
  if (!(!s.hasPreviousPage || !s.endCursor))
4839
4844
  return {
4840
4845
  cursor: s.endCursor,
4841
- last: Ht
4846
+ last: Wt
4842
4847
  };
4843
4848
  }
4844
4849
  },
@@ -4871,7 +4876,7 @@ const N = z.injectEndpoints({
4871
4876
  }
4872
4877
  },
4873
4878
  async onCacheEntryAdded(e, { updateCachedData: s, cacheDataLoaded: n, cacheEntryRemoved: i, dispatch: r, getCacheEntry: a }) {
4874
- await Ii(e, {
4879
+ await ki(e, {
4875
4880
  updateCachedData: s,
4876
4881
  cacheDataLoaded: n,
4877
4882
  cacheEntryRemoved: i,
@@ -4880,7 +4885,7 @@ const N = z.injectEndpoints({
4880
4885
  gqlApi: st
4881
4886
  });
4882
4887
  },
4883
- providesTags: is
4888
+ providesTags: rs
4884
4889
  }),
4885
4890
  // get data for a reference tooltip based on type,id and projectName
4886
4891
  getEntityTooltip: t.query({
@@ -4888,24 +4893,25 @@ const N = z.injectEndpoints({
4888
4893
  url: "/graphql",
4889
4894
  method: "POST",
4890
4895
  body: {
4891
- query: ln(n),
4896
+ query: fn(n),
4892
4897
  variables: { projectName: e, entityId: s }
4893
4898
  }
4894
4899
  }),
4895
- transformResponse: (e, s, { entityType: n }) => on(e?.data?.project, n),
4896
- providesTags: (e, s, { entityType: n }) => dn([e], "task", n)
4900
+ transformResponse: (e, s, { entityType: n }) => dn(e?.data?.project, n),
4901
+ providesTags: (e, s, { entityType: n }) => ln([e], "task", n)
4897
4902
  })
4898
4903
  }),
4899
4904
  overrideExisting: !0
4900
4905
  }), {
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) => {
4906
+ useGetEntityTooltipQuery: no,
4907
+ useGetActivitiesByIdQuery: io,
4908
+ useLazyGetActivitiesByIdQuery: ro,
4909
+ useGetEntitiesChecklistsQuery: ao,
4910
+ useGetActivitiesQuery: oo,
4911
+ useGetActivitiesInfiniteInfiniteQuery: co,
4912
+ useGetActivityUsersQuery: uo,
4913
+ useGetVersionsFrameStartQuery: lo
4914
+ } = ye, wi = (t, e, s) => {
4909
4915
  if (s)
4910
4916
  for (const n of t.pages) {
4911
4917
  const i = n.activities.findIndex((r) => r.activityId === e.activityId);
@@ -4925,12 +4931,12 @@ const N = z.injectEndpoints({
4925
4931
  }
4926
4932
  !n && t.pages.length > 0 && t.pages[0].activities.unshift(e);
4927
4933
  }
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) => {
4934
+ }, Ai = (t) => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), nt = async ({ patch: t, entityIds: e = [], filter: s, refs: n = [], ...i }, r, a) => {
4929
4935
  const { dispatch: c, queryFulfilled: d, getState: u } = r, o = n.map((g) => g.id) || [];
4930
- ki(s);
4936
+ Ai(s);
4931
4937
  const l = [...e, ...o].map((g) => ({
4932
4938
  type: "entityActivities",
4933
- id: g + "-" + ns(s)
4939
+ id: g + "-" + is(s)
4934
4940
  })), p = u(), f = ye.util.selectInvalidatedBy(p, l);
4935
4941
  a !== "delete" && t.data && (t.activityData = { ...t.activityData, ...t.data });
4936
4942
  const y = f.map(
@@ -4938,10 +4944,10 @@ const N = z.injectEndpoints({
4938
4944
  ye.util.updateQueryData(
4939
4945
  "getActivitiesInfinite",
4940
4946
  g,
4941
- (m) => Ti(m, t, a === "delete")
4947
+ (m) => wi(m, t, a === "delete")
4942
4948
  )
4943
4949
  )
4944
- ), h = vi(
4950
+ ), h = Ii(
4945
4951
  { patch: t, ...i },
4946
4952
  r,
4947
4953
  a
@@ -4958,7 +4964,7 @@ const N = z.injectEndpoints({
4958
4964
  id: t + "-" + i
4959
4965
  }));
4960
4966
  return n.push({ type: "activity", id: "LIST" }), n.push({ type: "watchers", id: t }), n;
4961
- }, wi = ye.injectEndpoints({
4967
+ }, Ei = ye.injectEndpoints({
4962
4968
  endpoints: (t) => ({
4963
4969
  createEntityActivity: t.mutation({
4964
4970
  query: ({ projectName: e, entityType: s, entityId: n, data: i = {} }) => ({
@@ -4999,10 +5005,10 @@ const N = z.injectEndpoints({
4999
5005
  }),
5000
5006
  overrideExisting: !0
5001
5007
  }), {
5002
- useCreateEntityActivityMutation: oo,
5003
- useDeleteActivityMutation: co,
5004
- useUpdateActivityMutation: uo
5005
- } = wi, Wt = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
5008
+ useCreateEntityActivityMutation: po,
5009
+ useDeleteActivityMutation: fo,
5010
+ useUpdateActivityMutation: yo
5011
+ } = Ei, zt = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
5006
5012
  const a = [{ type: "activity", id: t }];
5007
5013
  return ye.util.selectInvalidatedBy(n(), a).map((d) => i(
5008
5014
  // @ts-ignore
@@ -5040,11 +5046,11 @@ const N = z.injectEndpoints({
5040
5046
  }
5041
5047
  )
5042
5048
  ));
5043
- }, Ai = Pe.enhanceEndpoints({
5049
+ }, Si = Pe.enhanceEndpoints({
5044
5050
  endpoints: {
5045
5051
  createReactionToActivity: {
5046
5052
  async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
5047
- const i = Wt(
5053
+ const i = zt(
5048
5054
  {
5049
5055
  activityId: t.activityId,
5050
5056
  // @ts-ignore
@@ -5064,7 +5070,7 @@ const N = z.injectEndpoints({
5064
5070
  },
5065
5071
  deleteReactionToActivity: {
5066
5072
  async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
5067
- const i = Wt(
5073
+ const i = zt(
5068
5074
  // @ts-ignore
5069
5075
  { activityId: t.activityId, userName: t.userName, reaction: t.reaction },
5070
5076
  { getState: e, dispatch: s },
@@ -5079,23 +5085,23 @@ const N = z.injectEndpoints({
5079
5085
  }
5080
5086
  }
5081
5087
  }
5082
- }), { useCreateReactionToActivityMutation: lo, useDeleteReactionToActivityMutation: po } = Ai, zt = Pe.enhanceEndpoints({
5088
+ }), { useCreateReactionToActivityMutation: go, useDeleteReactionToActivityMutation: ho } = Si, Kt = Pe.enhanceEndpoints({
5083
5089
  endpoints: {
5084
5090
  suggestEntityMention: {}
5085
5091
  }
5086
- }), Ei = zt.injectEndpoints({
5092
+ }), Pi = Kt.injectEndpoints({
5087
5093
  endpoints: (t) => ({
5088
5094
  getEntityMentions: t.query({
5089
5095
  queryFn: async (e, { dispatch: s }) => {
5090
5096
  const n = await s(
5091
- zt.endpoints.suggestEntityMention.initiate(e)
5097
+ Kt.endpoints.suggestEntityMention.initiate(e)
5092
5098
  );
5093
5099
  return n.error ? { error: L(n.error) } : { data: n.data };
5094
5100
  },
5095
5101
  providesTags: [{ type: "team", id: "LIST" }]
5096
5102
  })
5097
5103
  })
5098
- }), { useGetEntityMentionsQuery: fo } = Ei, dt = { type: "category", id: "LIST" }, ut = { type: "addonSettings", id: "powerpack" }, lt = Pe.enhanceEndpoints({
5104
+ }), { useGetEntityMentionsQuery: mo } = Pi, dt = { type: "category", id: "LIST" }, ut = { type: "addonSettings", id: "powerpack" }, lt = Pe.enhanceEndpoints({
5099
5105
  endpoints: {
5100
5106
  getActivityCategories: {
5101
5107
  transformResponse: (t) => t.categories,
@@ -5106,7 +5112,7 @@ const N = z.injectEndpoints({
5106
5112
  ] : [dt, ut]
5107
5113
  }
5108
5114
  }
5109
- }), Si = lt.injectEndpoints({
5115
+ }), Li = lt.injectEndpoints({
5110
5116
  endpoints: (t) => ({
5111
5117
  getProjectsCategories: t.query({
5112
5118
  async queryFn({ projects: e = [] }, { dispatch: s }) {
@@ -5127,86 +5133,33 @@ const N = z.injectEndpoints({
5127
5133
  providesTags: [dt, ut]
5128
5134
  })
5129
5135
  })
5130
- }), { useGetActivityCategoriesQuery: yo } = lt, { useGetProjectsCategoriesQuery: go } = Si, vs = Fs.enhanceEndpoints({
5136
+ }), { useGetActivityCategoriesQuery: vo } = lt, { useGetProjectsCategoriesQuery: bo } = Li, bs = _s.enhanceEndpoints({
5131
5137
  endpoints: {
5132
5138
  listAddons: {
5133
5139
  providesTags: ["addonList"]
5134
5140
  }
5135
5141
  }
5136
- }), { useListAddonsQuery: ho } = vs, bs = vs.injectEndpoints({
5137
- endpoints: (t) => ({
5138
- // Return a list of addons which have project-scoped frontend
5139
- getProjectAddons: t.query({
5140
- query: () => ({
5141
- url: "/api/addons",
5142
- method: "GET"
5143
- }),
5144
- providesTags: ["projectAddons"],
5145
- transformResponse: (e) => {
5146
- let s = [];
5147
- for (const n of e.addons) {
5148
- const i = n.versions[n.productionVersion];
5149
- if (!i) continue;
5150
- const r = i.frontendScopes.project;
5151
- r && s.push({
5152
- name: n.name,
5153
- title: n.title,
5154
- version: n.productionVersion,
5155
- settings: r
5156
- });
5157
- }
5158
- return s;
5159
- }
5160
- }),
5161
- // Return a list of addons with settings-scoped frontend
5162
- getSettingsAddons: t.query({
5163
- query: () => ({
5164
- url: "/api/addons",
5165
- method: "GET"
5166
- }),
5167
- providesTags: ["settingsAddons"],
5168
- transformResponse: (e) => {
5169
- let s = [];
5170
- for (const n of e.addons) {
5171
- const i = n.versions[n.productionVersion];
5172
- if (!i) continue;
5173
- const r = i.frontendScopes.settings;
5174
- r && s.push({
5175
- name: n.name,
5176
- title: n.title,
5177
- version: n.productionVersion,
5178
- settings: r
5179
- });
5180
- }
5181
- return s;
5182
- }
5183
- }),
5184
- // Return a list of addons with dashboard-scoped frontend
5185
- getDashboardAddons: t.query({
5186
- query: () => ({
5187
- url: "/api/addons",
5188
- method: "GET"
5189
- }),
5190
- providesTags: ["dashboardAddons"],
5191
- transformResponse: (e) => {
5192
- let s = [];
5193
- for (const n of e.addons) {
5194
- const i = n.versions[n.productionVersion];
5195
- if (!i) continue;
5196
- const r = i.frontendScopes.dashboard;
5197
- r && s.push({
5198
- name: n.name,
5199
- title: n.title,
5200
- version: n.productionVersion,
5201
- settings: r
5202
- });
5203
- }
5204
- return s;
5205
- }
5206
- })
5207
- }),
5208
- overrideExisting: !0
5209
- }), { useGetProjectAddonsQuery: mo, useGetSettingsAddonsQuery: vo, useGetDashboardAddonsQuery: bo } = bs, rt = bs.enhanceEndpoints({
5142
+ }), { useListAddonsQuery: ji } = bs, Fi = (t, e) => {
5143
+ const s = [];
5144
+ for (const n of t.addons) {
5145
+ const i = n.versions[n.productionVersion];
5146
+ if (!i) continue;
5147
+ const r = i.frontendScopes?.[e];
5148
+ r && s.push({
5149
+ name: n.name,
5150
+ title: n.title,
5151
+ version: n.productionVersion,
5152
+ settings: r
5153
+ });
5154
+ }
5155
+ return s;
5156
+ }, vt = (t) => (e, s) => {
5157
+ const n = ji({}, s), i = Js(
5158
+ () => n.data ? Fi(n.data, t) : void 0,
5159
+ [n.data]
5160
+ );
5161
+ return { ...n, data: i };
5162
+ }, Io = vt("project"), To = vt("settings"), ko = vt("dashboard"), rt = bs.enhanceEndpoints({
5210
5163
  endpoints: {
5211
5164
  deleteAddonVersion: {
5212
5165
  invalidatesTags: ["addonList"]
@@ -5270,7 +5223,7 @@ const N = z.injectEndpoints({
5270
5223
  }),
5271
5224
  // endpoints
5272
5225
  overrideExisting: !0
5273
- }), { useDeleteAddonVersionsMutation: Io, useDownloadAddonsMutation: To } = Is, Ts = _s.enhanceEndpoints({
5226
+ }), { useDeleteAddonVersionsMutation: wo, useDownloadAddonsMutation: Ao } = Is, Ts = Rs.enhanceEndpoints({
5274
5227
  endpoints: {
5275
5228
  getAttributeList: {
5276
5229
  transformResponse: (t) => t.attributes || [],
@@ -5283,7 +5236,7 @@ const N = z.injectEndpoints({
5283
5236
  ]
5284
5237
  }
5285
5238
  }
5286
- }), { useGetAttributeListQuery: ko, useGetAttributeConfigQuery: wo } = Ts, Pi = Ts.enhanceEndpoints({
5239
+ }), { useGetAttributeListQuery: Eo, useGetAttributeConfigQuery: So } = Ts, _i = Ts.enhanceEndpoints({
5287
5240
  endpoints: {
5288
5241
  setAttributeList: {
5289
5242
  invalidatesTags: ["attribute"]
@@ -5295,21 +5248,21 @@ const N = z.injectEndpoints({
5295
5248
  invalidatesTags: (t, e, { attributeName: s }) => [{ type: "attribute", id: s }]
5296
5249
  }
5297
5250
  }
5298
- }), { useSetAttributeListMutation: Ao, usePatchAttributeConfigMutation: Eo } = Pi, Li = Rs.enhanceEndpoints({
5251
+ }), { useSetAttributeListMutation: Po, usePatchAttributeConfigMutation: Lo } = _i, Ri = Gs.enhanceEndpoints({
5299
5252
  endpoints: {
5300
5253
  createSession: {},
5301
5254
  getUserPools: {
5302
5255
  providesTags: [{ type: "userPool", id: "LIST" }]
5303
5256
  }
5304
5257
  }
5305
- }), { useCreateSessionMutation: So, useGetUserPoolsQuery: Po } = Li, pt = Gs.enhanceEndpoints({
5258
+ }), { useCreateSessionMutation: jo, useGetUserPoolsQuery: Fo } = Ri, pt = Cs.enhanceEndpoints({
5306
5259
  endpoints: {
5307
5260
  listBundles: {
5308
5261
  providesTags: () => [{ type: "bundleList" }]
5309
5262
  },
5310
5263
  checkBundleCompatibility: {}
5311
5264
  }
5312
- }), ji = Se.enhanceEndpoints({
5265
+ }), Gi = Se.enhanceEndpoints({
5313
5266
  endpoints: {
5314
5267
  getProjectBundleInfo: {
5315
5268
  providesTags: (t, e, { projectName: s }) => [
@@ -5318,7 +5271,7 @@ const N = z.injectEndpoints({
5318
5271
  ]
5319
5272
  }
5320
5273
  }
5321
- }), { useListBundlesQuery: Lo, useLazyListBundlesQuery: jo, useCheckBundleCompatibilityQuery: Fo } = pt, { useGetProjectBundleInfoQuery: _o } = ji, Fi = pt.enhanceEndpoints({
5274
+ }), { useListBundlesQuery: _o, useLazyListBundlesQuery: Ro, useCheckBundleCompatibilityQuery: Go } = pt, { useGetProjectBundleInfoQuery: Co } = Gi, Ci = pt.enhanceEndpoints({
5322
5275
  endpoints: {
5323
5276
  migrateSettingsByBundle: {
5324
5277
  invalidatesTags: () => [
@@ -5349,11 +5302,12 @@ const N = z.injectEndpoints({
5349
5302
  { type: "bundleList" },
5350
5303
  { type: "addonList" },
5351
5304
  { type: "addonSettingsList" },
5352
- { type: "marketAddon" }
5305
+ { type: "marketAddon" },
5306
+ { type: "frontendModules" }
5353
5307
  ]
5354
5308
  }
5355
5309
  }
5356
- }), _i = Se.enhanceEndpoints({
5310
+ }), Ni = Se.enhanceEndpoints({
5357
5311
  endpoints: {
5358
5312
  unsetProjectBundle: {
5359
5313
  invalidatesTags: (t, e, { projectName: s }) => [
@@ -5366,7 +5320,7 @@ const N = z.injectEndpoints({
5366
5320
  ]
5367
5321
  }
5368
5322
  }
5369
- }), Ri = Fi.injectEndpoints({
5323
+ }), Qi = Ci.injectEndpoints({
5370
5324
  endpoints: (t) => ({
5371
5325
  deleteBundle: t.mutation({
5372
5326
  query: ({ name: e }) => ({
@@ -5377,7 +5331,8 @@ const N = z.injectEndpoints({
5377
5331
  invalidatesTags: () => [
5378
5332
  { type: "bundleList" },
5379
5333
  { type: "addonList" },
5380
- { type: "addonSettingsList" }
5334
+ { type: "addonSettingsList" },
5335
+ { type: "frontendModules" }
5381
5336
  ]
5382
5337
  }),
5383
5338
  promoteBundle: t.mutation({
@@ -5393,7 +5348,8 @@ const N = z.injectEndpoints({
5393
5348
  { type: "addonSettingsList" },
5394
5349
  { type: "addonSettings" },
5395
5350
  { type: "addonSettingsOverrides" },
5396
- { type: "marketAddon" }
5351
+ { type: "marketAddon" },
5352
+ { type: "frontendModules" }
5397
5353
  ]
5398
5354
  }),
5399
5355
  createBundle: t.mutation({
@@ -5413,19 +5369,20 @@ const N = z.injectEndpoints({
5413
5369
  // TODO: invalidate settings
5414
5370
  { type: "addonSettings" },
5415
5371
  { type: "addonSettingsOverrides" },
5416
- { type: "addonSettingsList" }
5372
+ { type: "addonSettingsList" },
5373
+ { type: "frontendModules" }
5417
5374
  ]
5418
5375
  })
5419
5376
  }),
5420
5377
  // endpoints
5421
5378
  overrideExisting: !0
5422
5379
  }), {
5423
- useDeleteBundleMutation: Ro,
5424
- useCreateBundleMutation: Go,
5425
- usePromoteBundleMutation: Co,
5426
- useMigrateSettingsByBundleMutation: No,
5427
- useUpdateBundleMutation: Qo
5428
- } = Ri, { useUnsetProjectBundleMutation: Mo } = _i, Gi = Cs.enhanceEndpoints({
5380
+ useDeleteBundleMutation: No,
5381
+ useCreateBundleMutation: Qo,
5382
+ usePromoteBundleMutation: Mo,
5383
+ useMigrateSettingsByBundleMutation: Vo,
5384
+ useUpdateBundleMutation: Do
5385
+ } = Qi, { useUnsetProjectBundleMutation: Oo } = Ni, Mi = Ns.enhanceEndpoints({
5429
5386
  endpoints: {
5430
5387
  getYnputCloudInfo: {
5431
5388
  providesTags: ["connections"]
@@ -5441,11 +5398,11 @@ const N = z.injectEndpoints({
5441
5398
  }
5442
5399
  }
5443
5400
  }), {
5444
- useGetYnputCloudInfoQuery: Vo,
5445
- useSetYnputCloudKeyMutation: Do,
5446
- useDeleteYnputCloudKeyMutation: Oo,
5447
- useGetFeedbackVerificationQuery: $o
5448
- } = Gi, ks = Ns.enhanceEndpoints({
5401
+ useGetYnputCloudInfoQuery: $o,
5402
+ useSetYnputCloudKeyMutation: xo,
5403
+ useDeleteYnputCloudKeyMutation: Uo,
5404
+ useGetFeedbackVerificationQuery: Bo
5405
+ } = Mi, ks = Qs.enhanceEndpoints({
5449
5406
  endpoints: {
5450
5407
  getServerConfig: {
5451
5408
  providesTags: ["config"]
@@ -5459,17 +5416,17 @@ const N = z.injectEndpoints({
5459
5416
  }
5460
5417
  }
5461
5418
  }), {
5462
- useGetServerConfigQuery: xo,
5463
- useGetServerConfigOverridesQuery: Uo,
5464
- useGetServerConfigSchemaQuery: qo,
5465
- useGetConfigValueQuery: Bo
5466
- } = ks, Ci = ks.enhanceEndpoints({
5419
+ useGetServerConfigQuery: qo,
5420
+ useGetServerConfigOverridesQuery: Ho,
5421
+ useGetServerConfigSchemaQuery: Wo,
5422
+ useGetConfigValueQuery: zo
5423
+ } = ks, Vi = ks.enhanceEndpoints({
5467
5424
  endpoints: {
5468
5425
  setServerConfig: {
5469
5426
  invalidatesTags: ["config"]
5470
5427
  }
5471
5428
  }
5472
- }), { useSetServerConfigMutation: Ho } = Ci, ft = ue.enhanceEndpoints({
5429
+ }), { useSetServerConfigMutation: Ko } = Vi, ft = ue.enhanceEndpoints({
5473
5430
  endpoints: {
5474
5431
  getEntityListAttributesDefinition: {
5475
5432
  providesTags: (t, e, { listId: s }) => t ? [
@@ -5478,7 +5435,7 @@ const N = z.injectEndpoints({
5478
5435
  ] : [{ type: "entityListAttribute", id: "LIST" }]
5479
5436
  }
5480
5437
  }
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({
5438
+ }), { useGetEntityListAttributesDefinitionQuery: Jo } = ft, Di = (t) => t.startsWith("attrib.") ? `_all_attrib.${t.slice(7)}` : t.startsWith("inherited_attributes.") ? `_all_attrib.${t.slice(21)}` : `_entity_${t}`, Oi = (t) => t.startsWith("_all_attrib_") ? `attrib_${t.slice(12)}` : t.startsWith("_entity_") ? t.slice(8) : t, Yo = (t) => t.map((e) => ({ ...e, field: Di(e.field) })), $i = Q.enhanceEndpoints({
5482
5439
  endpoints: {
5483
5440
  // same caching as the other column stats endpoints: `targets` excluded
5484
5441
  // from the cache key, responses merged, only added targets refetch
@@ -5486,7 +5443,7 @@ const N = z.injectEndpoints({
5486
5443
  transformResponse: (t) => {
5487
5444
  const e = t?.project?.entityLists?.edges?.[0]?.node?.items?.fieldStats ?? [];
5488
5445
  return ke(
5489
- e.map((s) => ({ ...s, columnName: Qi(s.columnName) }))
5446
+ e.map((s) => ({ ...s, columnName: Oi(s.columnName) }))
5490
5447
  );
5491
5448
  },
5492
5449
  serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
@@ -5498,7 +5455,7 @@ const N = z.injectEndpoints({
5498
5455
  ]
5499
5456
  }
5500
5457
  }
5501
- }), { useGetListItemsColumnStatsQuery: Ko } = Mi, Vi = ft.enhanceEndpoints({
5458
+ }), { useGetListItemsColumnStatsQuery: Xo } = $i, xi = ft.enhanceEndpoints({
5502
5459
  endpoints: {
5503
5460
  setEntityListAttributesDefinition: {
5504
5461
  onQueryStarted: async (t, { dispatch: e, queryFulfilled: s }) => {
@@ -5518,7 +5475,7 @@ const N = z.injectEndpoints({
5518
5475
  invalidatesTags: (t, e, { listId: s }) => [{ type: "entityListAttribute", id: s }]
5519
5476
  }
5520
5477
  }
5521
- }), { useSetEntityListAttributesDefinitionMutation: Jo } = Vi, Ge = { type: "entityListFolder", id: "LIST" }, Me = ue.enhanceEndpoints({
5478
+ }), { useSetEntityListAttributesDefinitionMutation: Zo } = xi, Ge = { type: "entityListFolder", id: "LIST" }, Me = ue.enhanceEndpoints({
5522
5479
  endpoints: {
5523
5480
  getEntityListFolders: {
5524
5481
  transformResponse: (t) => t.folders || [],
@@ -5536,7 +5493,7 @@ const N = z.injectEndpoints({
5536
5493
  (r) => {
5537
5494
  const a = {
5538
5495
  ...e,
5539
- id: e.id || ss()
5496
+ id: e.id || ns()
5540
5497
  };
5541
5498
  r.push(a);
5542
5499
  }
@@ -5606,15 +5563,15 @@ const N = z.injectEndpoints({
5606
5563
  }
5607
5564
  }
5608
5565
  }), {
5609
- useGetEntityListFoldersQuery: Yo,
5610
- useCreateEntityListFolderMutation: Xo,
5611
- useDeleteEntityListFolderMutation: Zo,
5612
- useUpdateEntityListFolderMutation: ec
5613
- } = Me, Di = Qs.enhanceEndpoints({
5566
+ useGetEntityListFoldersQuery: ec,
5567
+ useCreateEntityListFolderMutation: tc,
5568
+ useDeleteEntityListFolderMutation: sc,
5569
+ useUpdateEntityListFolderMutation: nc
5570
+ } = Me, Ui = Ms.enhanceEndpoints({
5614
5571
  endpoints: {
5615
5572
  getEntityGroups: {}
5616
5573
  }
5617
- }), { useGetEntityGroupsQuery: tc } = Di, Kt = async (t, e, s, n) => {
5574
+ }), { useGetEntityGroupsQuery: ic } = Ui, Jt = async (t, e, s, n) => {
5618
5575
  switch (t) {
5619
5576
  case "task":
5620
5577
  return (await n(
@@ -5661,7 +5618,7 @@ const N = z.injectEndpoints({
5661
5618
  default:
5662
5619
  throw new Error(`Unknown entity type: ${t}`);
5663
5620
  }
5664
- }, Jt = ({
5621
+ }, Yt = ({
5665
5622
  projectName: t,
5666
5623
  sourceEntity: e,
5667
5624
  targetEntity: s,
@@ -5711,7 +5668,7 @@ const N = z.injectEndpoints({
5711
5668
  w !== -1 ? k.links[w] = T : (console.log(
5712
5669
  `Adding new link to ${p.entityType} links cache`,
5713
5670
  T,
5714
- Ks(k)
5671
+ Ys(k)
5715
5672
  ), k.links.push(T));
5716
5673
  }
5717
5674
  }
@@ -5732,7 +5689,7 @@ const N = z.injectEndpoints({
5732
5689
  ));
5733
5690
  };
5734
5691
  o(e, s, r), o(s, e, r === "in" ? "out" : "in");
5735
- }, Oi = Ms.enhanceEndpoints({
5692
+ }, Bi = Vs.enhanceEndpoints({
5736
5693
  endpoints: {
5737
5694
  deleteEntityLink: {
5738
5695
  async onQueryStarted({ linkId: t, projectName: e, patch: s }, { dispatch: n, getState: i, queryFulfilled: r }) {
@@ -5741,7 +5698,7 @@ const N = z.injectEndpoints({
5741
5698
  const d = s?.source, u = s?.target, o = s?.linkType || "", l = s?.direction || "out";
5742
5699
  if (d && u)
5743
5700
  try {
5744
- Jt(
5701
+ Yt(
5745
5702
  {
5746
5703
  projectName: e,
5747
5704
  sourceEntity: d,
@@ -5776,12 +5733,12 @@ const N = z.injectEndpoints({
5776
5733
  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
5734
  try {
5778
5735
  if (o && o.entityType && f) {
5779
- const v = Kt(
5736
+ const v = Jt(
5780
5737
  l,
5781
5738
  p,
5782
5739
  t,
5783
5740
  n
5784
- ), b = Kt(
5741
+ ), b = Jt(
5785
5742
  y,
5786
5743
  h,
5787
5744
  t,
@@ -5806,7 +5763,7 @@ const N = z.injectEndpoints({
5806
5763
  parents: T.parents || [],
5807
5764
  subType: "subType" in T ? T.subType : void 0
5808
5765
  };
5809
- Jt(
5766
+ Yt(
5810
5767
  {
5811
5768
  projectName: t,
5812
5769
  sourceEntity: w,
@@ -5834,7 +5791,7 @@ const N = z.injectEndpoints({
5834
5791
  }
5835
5792
  }
5836
5793
  }
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({
5794
+ }), { useDeleteEntityLinkMutation: rc, useCreateEntityLinkMutation: ac } = Bi, qi = 50, he = (t, e) => e ? { entityType: t, entityId: e.id, thumbnailHash: e.thumbnailHash || void 0 } : void 0, Hi = M.injectEndpoints({
5838
5795
  endpoints: (t) => ({
5839
5796
  getSearchedEntitiesLinks: t.infiniteQuery({
5840
5797
  infiniteQueryOptions: {
@@ -5851,7 +5808,7 @@ const N = z.injectEndpoints({
5851
5808
  try {
5852
5809
  const { projectName: i, entityType: r, search: a, parentIds: c, hasReviewables: d, includeTask: u } = e, { cursor: o } = s, l = {
5853
5810
  projectName: i,
5854
- first: $i
5811
+ first: qi
5855
5812
  };
5856
5813
  o && (l.after = o), l.search = a || "", l.parentIds = c, l.hasReviewables = d, l.includeTask = !!u;
5857
5814
  let p;
@@ -5989,7 +5946,7 @@ const N = z.injectEndpoints({
5989
5946
  }
5990
5947
  })
5991
5948
  })
5992
- }), { useGetSearchedEntitiesLinksInfiniteQuery: ic } = xi, Ui = 5e3, qi = 5e4, Bi = M.injectEndpoints({
5949
+ }), { useGetSearchedEntitiesLinksInfiniteQuery: oc } = Hi, Wi = 5e3, zi = 5e4, Ki = M.injectEndpoints({
5993
5950
  endpoints: (t) => ({
5994
5951
  /**
5995
5952
  * All links into or out of a set of entities, grouped by entity like
@@ -6006,7 +5963,7 @@ const N = z.injectEndpoints({
6006
5963
  do {
6007
5964
  const o = await i(
6008
5965
  M.endpoints[r].initiate(
6009
- { projectName: e, entityIds: s, first: Ui, after: c },
5966
+ { projectName: e, entityIds: s, first: Wi, after: c },
6010
5967
  { forceRefetch: !0, subscribe: !1 }
6011
5968
  )
6012
5969
  ).unwrap(), { edges: l, pageInfo: p } = o.project.links;
@@ -6027,7 +5984,7 @@ const N = z.injectEndpoints({
6027
5984
  isRestricted: !g
6028
5985
  });
6029
5986
  }
6030
- d += l.length, c = p.hasNextPage ? p.endCursor : void 0, u = !!c && d >= qi;
5987
+ d += l.length, c = p.hasNextPage ? p.endCursor : void 0, u = !!c && d >= zi;
6031
5988
  } while (c && !u);
6032
5989
  } catch (o) {
6033
5990
  return { error: L(o) };
@@ -6041,7 +5998,7 @@ const N = z.injectEndpoints({
6041
5998
  }
6042
5999
  })
6043
6000
  })
6044
- }), { useGetLinksOfEntitiesQuery: rc } = Bi, Hi = es.enhanceEndpoints({
6001
+ }), { useGetLinksOfEntitiesQuery: cc } = Ki, Ji = ts.enhanceEndpoints({
6045
6002
  endpoints: {
6046
6003
  getMyPermissions: {
6047
6004
  providesTags: (t) => [{ type: "userPermissions" }]
@@ -6050,13 +6007,13 @@ const N = z.injectEndpoints({
6050
6007
  providesTags: (t, e, s) => [{ type: "userProjectPermissions" }]
6051
6008
  }
6052
6009
  }
6053
- }), { useGetMyPermissionsQuery: ac, useGetMyProjectPermissionsQuery: oc } = Hi, ws = Vs.enhanceEndpoints({
6010
+ }), { useGetMyPermissionsQuery: dc, useGetMyProjectPermissionsQuery: uc } = Ji, ws = Ds.enhanceEndpoints({
6054
6011
  endpoints: {
6055
6012
  getProductTypes: {
6056
6013
  providesTags: (t, e, s) => [{ type: "productType", id: "LIST" }]
6057
6014
  }
6058
6015
  }
6059
- }), { useGetProductTypesQuery: cc } = ws, Wi = ws.enhanceEndpoints({
6016
+ }), { useGetProductTypesQuery: lc } = ws, Yi = ws.enhanceEndpoints({
6060
6017
  endpoints: {
6061
6018
  createProduct: {
6062
6019
  invalidatesTags: (t, e, { productPostModel: s }) => [
@@ -6064,7 +6021,7 @@ const N = z.injectEndpoints({
6064
6021
  ]
6065
6022
  }
6066
6023
  }
6067
- }), { useCreateProductMutation: dc } = Wi, zi = Q.enhanceEndpoints({
6024
+ }), { useCreateProductMutation: pc } = Yi, Xi = Q.enhanceEndpoints({
6068
6025
  endpoints: {
6069
6026
  GetFolderProducts: {
6070
6027
  transformResponse: (t) => (t?.project?.products?.edges || []).map((s) => ({
@@ -6088,7 +6045,7 @@ const N = z.injectEndpoints({
6088
6045
  ] : [{ type: "product", id: s }]
6089
6046
  }
6090
6047
  }
6091
- }), { useGetFolderProductsQuery: uc } = zi, oe = { type: "projectFolder", id: "LIST" }, Ve = Ds.enhanceEndpoints({
6048
+ }), { useGetFolderProductsQuery: fc } = Xi, oe = { type: "projectFolder", id: "LIST" }, Ve = Os.enhanceEndpoints({
6092
6049
  endpoints: {
6093
6050
  getProjectFolders: {
6094
6051
  transformResponse: (t) => t.folders || [],
@@ -6106,7 +6063,7 @@ const N = z.injectEndpoints({
6106
6063
  (i) => {
6107
6064
  const r = {
6108
6065
  ...t,
6109
- id: t.id || ss()
6066
+ id: t.id || ns()
6110
6067
  };
6111
6068
  i.push(r);
6112
6069
  }
@@ -6217,12 +6174,12 @@ const N = z.injectEndpoints({
6217
6174
  }
6218
6175
  }
6219
6176
  }), {
6220
- useGetProjectFoldersQuery: lc,
6221
- useCreateProjectFolderMutation: pc,
6222
- useDeleteProjectFolderMutation: fc,
6223
- useUpdateProjectFolderMutation: yc,
6224
- useSetProjectFoldersOrderMutation: gc,
6225
- useAssignProjectsToFolderMutation: hc
6177
+ useGetProjectFoldersQuery: yc,
6178
+ useCreateProjectFolderMutation: gc,
6179
+ useDeleteProjectFolderMutation: hc,
6180
+ useUpdateProjectFolderMutation: mc,
6181
+ useSetProjectFoldersOrderMutation: vc,
6182
+ useAssignProjectsToFolderMutation: bc
6226
6183
  } = Ve, As = (t, {
6227
6184
  productId: e,
6228
6185
  taskId: s,
@@ -6258,7 +6215,7 @@ const N = z.injectEndpoints({
6258
6215
  a.push(...u);
6259
6216
  }
6260
6217
  return a;
6261
- }, Ki = X.enhanceEndpoints({
6218
+ }, Zi = X.enhanceEndpoints({
6262
6219
  endpoints: {
6263
6220
  getReviewablesForVersion: {
6264
6221
  keepUnusedDataFor: 1,
@@ -6321,7 +6278,7 @@ const N = z.injectEndpoints({
6321
6278
  }
6322
6279
  }
6323
6280
  }
6324
- }), vt = Ki.injectEndpoints({
6281
+ }), bt = Zi.injectEndpoints({
6325
6282
  endpoints: (t) => ({
6326
6283
  // custom endpoint to get reviewables from product/task/folder
6327
6284
  // utilizes getReviewablesForProduct, getReviewablesForTask, getReviewablesForFolder
@@ -6388,10 +6345,10 @@ const N = z.injectEndpoints({
6388
6345
  })
6389
6346
  })
6390
6347
  }), {
6391
- useGetViewerReviewablesQuery: mc,
6392
- useGetReviewablesForVersionQuery: vc,
6393
- useHasTranscoderQuery: bc
6394
- } = vt, Ji = vt.injectEndpoints({
6348
+ useGetViewerReviewablesQuery: Ic,
6349
+ useGetReviewablesForVersionQuery: Tc,
6350
+ useHasTranscoderQuery: kc
6351
+ } = bt, er = bt.injectEndpoints({
6395
6352
  endpoints: (t) => ({
6396
6353
  deleteReviewable: t.mutation(
6397
6354
  {
@@ -6409,13 +6366,13 @@ const N = z.injectEndpoints({
6409
6366
  }
6410
6367
  )
6411
6368
  })
6412
- }), Yi = Ji.enhanceEndpoints({
6369
+ }), tr = er.enhanceEndpoints({
6413
6370
  endpoints: {
6414
6371
  // reviewables list is updated optimistically
6415
6372
  sortVersionReviewables: {
6416
6373
  async onQueryStarted({ projectName: t, versionId: e, sortReviewablesRequest: s }, { dispatch: n, queryFulfilled: i }) {
6417
6374
  const r = n(
6418
- vt.util.updateQueryData(
6375
+ bt.util.updateQueryData(
6419
6376
  "getReviewablesForVersion",
6420
6377
  { projectName: t, versionId: e },
6421
6378
  (a) => {
@@ -6442,16 +6399,16 @@ const N = z.injectEndpoints({
6442
6399
  }
6443
6400
  }
6444
6401
  }), {
6445
- useDeleteReviewableMutation: Ic,
6446
- useSortVersionReviewablesMutation: Tc,
6447
- useUpdateReviewableMutation: kc
6448
- } = Yi, Yt = (t) => {
6402
+ useDeleteReviewableMutation: wc,
6403
+ useSortVersionReviewablesMutation: Ac,
6404
+ useUpdateReviewableMutation: Ec
6405
+ } = tr, Xt = (t) => {
6449
6406
  const e = [{ type: "shared", id: "LIST" }];
6450
6407
  return t && e.push({
6451
6408
  type: "shared",
6452
6409
  id: t.toUpperCase()
6453
6410
  }), e;
6454
- }, Xi = (t) => {
6411
+ }, sr = (t) => {
6455
6412
  const e = [];
6456
6413
  for (const s of t) {
6457
6414
  const n = { type: "shared", id: s.value };
@@ -6477,14 +6434,14 @@ const N = z.injectEndpoints({
6477
6434
  }
6478
6435
  }
6479
6436
  return e;
6480
- }, Zi = Zt.enhanceEndpoints({
6437
+ }, nr = es.enhanceEndpoints({
6481
6438
  endpoints: {
6482
6439
  getShareOptions: {
6483
6440
  transformResponse: (t) => t?.options || [],
6484
- providesTags: (t, e, { projectName: s }) => t ? [...Xi(t), ...Yt(s)] : Yt(s)
6441
+ providesTags: (t, e, { projectName: s }) => t ? [...sr(t), ...Xt(s)] : Xt(s)
6485
6442
  }
6486
6443
  }
6487
- }), { useGetShareOptionsQuery: wc } = Zi, er = Os.enhanceEndpoints({
6444
+ }), { useGetShareOptionsQuery: Sc } = nr, Es = $s.enhanceEndpoints({
6488
6445
  endpoints: {
6489
6446
  getSiteInfo: {
6490
6447
  providesTags: (t) => t ? [
@@ -6498,10 +6455,22 @@ const N = z.injectEndpoints({
6498
6455
  ] : ["info", "attribute"]
6499
6456
  },
6500
6457
  listFrontendModules: {
6501
- providesTags: ["info"]
6458
+ providesTags: ["info", "frontendModules"],
6459
+ // production addon versions can change without a server restart (bundle edits),
6460
+ // so refetch on bundle events to pick up the new versions
6461
+ async onCacheEntryAdded(t, { dispatch: e, cacheDataLoaded: s, cacheEntryRemoved: n }) {
6462
+ let i;
6463
+ try {
6464
+ await s, i = F.subscribe("bundle", () => {
6465
+ e(Es.util.invalidateTags(["frontendModules"]));
6466
+ });
6467
+ } catch {
6468
+ }
6469
+ await n, F.unsubscribe(i);
6470
+ }
6502
6471
  }
6503
6472
  }
6504
- }), { useGetSiteInfoQuery: Ac, useLazyGetSiteInfoQuery: Ec, useListFrontendModulesQuery: Sc } = er, tr = at.enhanceEndpoints({
6473
+ }), { useGetSiteInfoQuery: Pc, useLazyGetSiteInfoQuery: Lc, useListFrontendModulesQuery: jc } = Es, ir = at.enhanceEndpoints({
6505
6474
  endpoints: {
6506
6475
  getTask: {
6507
6476
  providesTags: (t, e, { taskId: s }) => [
@@ -6509,11 +6478,11 @@ const N = z.injectEndpoints({
6509
6478
  ]
6510
6479
  }
6511
6480
  }
6512
- }), { useGetTaskQuery: Pc } = tr, sr = (t, e, { state: s, dispatch: n }, i) => {
6513
- const r = [{ type: "entityListItem", id: t }], a = q.util.selectInvalidatedBy(s, r).filter((c) => c.endpointName === "getListItemsInfinite");
6481
+ }), { useGetTaskQuery: Fc } = ir, rr = (t, e, { state: s, dispatch: n }, i) => {
6482
+ const r = [{ type: "entityListItem", id: t }], a = B.util.selectInvalidatedBy(s, r).filter((c) => c.endpointName === "getListItemsInfinite");
6514
6483
  for (const c of a) {
6515
6484
  const d = n(
6516
- q.util.updateQueryData("getListItemsInfinite", c.originalArgs, (u) => {
6485
+ B.util.updateQueryData("getListItemsInfinite", c.originalArgs, (u) => {
6517
6486
  for (const o of u.pages) {
6518
6487
  const l = o.items.findIndex((p) => p.entityId === t);
6519
6488
  if (l !== -1) {
@@ -6525,7 +6494,7 @@ const N = z.injectEndpoints({
6525
6494
  );
6526
6495
  i.push(d);
6527
6496
  }
6528
- }, nr = at.injectEndpoints({
6497
+ }, ar = at.injectEndpoints({
6529
6498
  endpoints: (t) => ({
6530
6499
  updateSubtasks: t.mutation({
6531
6500
  queryFn: async ({ projectName: e, taskId: s, subtasks: n }, { dispatch: i }) => {
@@ -6551,7 +6520,7 @@ const N = z.injectEndpoints({
6551
6520
  data: { subtasks: s }
6552
6521
  }
6553
6522
  ];
6554
- Ee(d, { state: a, dispatch: n }, c), us(d, { state: a, dispatch: n }, c), sr(e, s, { state: a, dispatch: n }, c);
6523
+ Ee(d, { state: a, dispatch: n }, c), ls(d, { state: a, dispatch: n }, c), rr(e, s, { state: a, dispatch: n }, c);
6555
6524
  try {
6556
6525
  await i;
6557
6526
  } catch {
@@ -6560,7 +6529,7 @@ const N = z.injectEndpoints({
6560
6529
  }
6561
6530
  })
6562
6531
  })
6563
- }), { useUpdateSubtasksMutation: Lc } = nr, te = { type: "team", id: "LIST" }, ir = $s.enhanceEndpoints({
6532
+ }), { useUpdateSubtasksMutation: _c } = ar, te = { type: "team", id: "LIST" }, or = xs.enhanceEndpoints({
6564
6533
  endpoints: {
6565
6534
  getTeams: {
6566
6535
  providesTags: (t) => t ? [te, ...t.map((e) => ({ type: "team", id: e.name }))] : [te]
@@ -6598,13 +6567,13 @@ const N = z.injectEndpoints({
6598
6567
  }
6599
6568
  }
6600
6569
  }), {
6601
- useGetTeamsQuery: jc,
6602
- useUpdateTeamsMutation: Fc,
6603
- useSaveTeamMutation: _c,
6604
- useDeleteTeamMutation: Rc,
6605
- useSaveTeamMemberMutation: Gc,
6606
- useDeleteTeamMemberMutation: Cc
6607
- } = ir, rr = `
6570
+ useGetTeamsQuery: Rc,
6571
+ useUpdateTeamsMutation: Gc,
6572
+ useSaveTeamMutation: Cc,
6573
+ useDeleteTeamMutation: Nc,
6574
+ useSaveTeamMemberMutation: Qc,
6575
+ useDeleteTeamMemberMutation: Mc
6576
+ } = or, cr = `
6608
6577
  query UserList($name:String!) {
6609
6578
  users(name: $name) {
6610
6579
  edges {
@@ -6626,7 +6595,7 @@ const N = z.injectEndpoints({
6626
6595
  }
6627
6596
  }
6628
6597
  }
6629
- `, ar = `
6598
+ `, dr = `
6630
6599
  query UserList {
6631
6600
  users(last: 5000, isSupport: false) {
6632
6601
  edges {
@@ -6654,7 +6623,7 @@ const N = z.injectEndpoints({
6654
6623
  }
6655
6624
  }
6656
6625
  }
6657
- `, or = `
6626
+ `, ur = `
6658
6627
  query Assignees($names: [String!]!){
6659
6628
  users(names: $names, isSupport: false) {
6660
6629
  edges {
@@ -6666,7 +6635,7 @@ query Assignees($names: [String!]!){
6666
6635
  }
6667
6636
  }
6668
6637
  }
6669
- }`, cr = `
6638
+ }`, lr = `
6670
6639
  query Assignees($projectName: String) {
6671
6640
  users(last: 5000, projectName: $projectName, isSupport: false) {
6672
6641
  edges {
@@ -6678,7 +6647,7 @@ query Assignees($projectName: String) {
6678
6647
  }
6679
6648
  }
6680
6649
  }
6681
- }`, dr = (t) => {
6650
+ }`, pr = (t) => {
6682
6651
  const e = String(t.value);
6683
6652
  return {
6684
6653
  name: e,
@@ -6686,7 +6655,7 @@ query Assignees($projectName: String) {
6686
6655
  avatarUrl: `/api/users/${e}/avatar`,
6687
6656
  hidden: t.hidden
6688
6657
  };
6689
- }, ur = es.enhanceEndpoints({
6658
+ }, fr = ts.enhanceEndpoints({
6690
6659
  endpoints: {
6691
6660
  getCurrentUser: {
6692
6661
  providesTags: [{ type: "user", id: "LIST" }]
@@ -6699,14 +6668,14 @@ query Assignees($projectName: String) {
6699
6668
  providesTags: (t, e, { userName: s }) => [{ type: "session", id: s }]
6700
6669
  }
6701
6670
  }
6702
- }), lr = Q.injectEndpoints({
6671
+ }), yr = Q.injectEndpoints({
6703
6672
  endpoints: (t) => ({
6704
6673
  getUsers: t.query({
6705
6674
  query: () => ({
6706
6675
  url: "/graphql",
6707
6676
  method: "POST",
6708
6677
  body: {
6709
- query: ar,
6678
+ query: dr,
6710
6679
  variables: {}
6711
6680
  }
6712
6681
  }),
@@ -6728,7 +6697,7 @@ query Assignees($projectName: String) {
6728
6697
  url: "/graphql",
6729
6698
  method: "POST",
6730
6699
  body: {
6731
- query: rr,
6700
+ query: cr,
6732
6701
  variables: { name: e }
6733
6702
  }
6734
6703
  }),
@@ -6743,7 +6712,7 @@ query Assignees($projectName: String) {
6743
6712
  async queryFn({ names: e, projectName: s }, n, i, r) {
6744
6713
  if (!e && s) {
6745
6714
  const d = await n.dispatch(
6746
- xs.endpoints.getEnumOptions.initiate(
6715
+ Us.endpoints.getEnumOptions.initiate(
6747
6716
  {
6748
6717
  enumName: "users",
6749
6718
  params: { project_name: s, mode: "users", hide_inactive: !0 }
@@ -6751,13 +6720,13 @@ query Assignees($projectName: String) {
6751
6720
  { subscribe: !1, forceRefetch: n.forced }
6752
6721
  )
6753
6722
  ).unwrap();
6754
- return d.error ? { error: L(d.error) } : { data: d.items.map(dr) };
6723
+ return d.error ? { error: L(d.error) } : { data: d.items.map(pr) };
6755
6724
  }
6756
6725
  const a = await r({
6757
6726
  url: "/graphql",
6758
6727
  method: "POST",
6759
6728
  body: {
6760
- query: e ? or : cr,
6729
+ query: e ? ur : lr,
6761
6730
  variables: { names: e, projectName: s }
6762
6731
  }
6763
6732
  });
@@ -6781,7 +6750,7 @@ query Assignees($projectName: String) {
6781
6750
  })
6782
6751
  }),
6783
6752
  overrideExisting: !0
6784
- }), pr = lr.enhanceEndpoints({
6753
+ }), gr = yr.enhanceEndpoints({
6785
6754
  endpoints: {
6786
6755
  GetAllProjectUsersAsAssignee: {
6787
6756
  transformResponse: (t) => t.users.edges.map((e) => ({
@@ -6805,14 +6774,14 @@ query Assignees($projectName: String) {
6805
6774
  }
6806
6775
  }
6807
6776
  }), {
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({
6777
+ useGetAllProjectUsersAsAssigneeQuery: Vc,
6778
+ useLazyGetAllProjectUsersAsAssigneeQuery: Dc,
6779
+ useGetActiveUsersCountQuery: Oc,
6780
+ useGetAllAssigneesQuery: $c,
6781
+ useGetUsersQuery: xc,
6782
+ useGetUserByNameQuery: Uc,
6783
+ useGetUsersAssigneeQuery: Bc
6784
+ } = gr, { useGetUserSessionsQuery: qc, useGetCurrentUserQuery: Hc, useGetUserQuery: Wc } = fr, hr = Se.enhanceEndpoints({
6816
6785
  endpoints: {
6817
6786
  listGuestUsers: {
6818
6787
  providesTags: (t) => t?.users ? [
@@ -6827,7 +6796,7 @@ query Assignees($projectName: String) {
6827
6796
  invalidatesTags: (t, e, s) => [{ type: "guest", id: s.email }]
6828
6797
  }
6829
6798
  }
6830
- }), { useListGuestUsersQuery: Bc, useAddGuestUserMutation: Hc, useRemoveGuestUserMutation: Wc } = fr, yr = Q.enhanceEndpoints({
6799
+ }), { useListGuestUsersQuery: zc, useAddGuestUserMutation: Kc, useRemoveGuestUserMutation: Jc } = hr, mr = Q.enhanceEndpoints({
6831
6800
  endpoints: {
6832
6801
  GetLatestProductVersion: {
6833
6802
  transformResponse: (t) => t.project.versions.edges[0]?.node,
@@ -6837,7 +6806,7 @@ query Assignees($projectName: String) {
6837
6806
  ] : [{ type: "product", id: s }]
6838
6807
  }
6839
6808
  }
6840
- }), { useGetLatestProductVersionQuery: zc } = yr, gr = Us.enhanceEndpoints({
6809
+ }), { useGetLatestProductVersionQuery: Yc } = mr, vr = Bs.enhanceEndpoints({
6841
6810
  endpoints: {
6842
6811
  getVersion: {},
6843
6812
  createVersion: {
@@ -6856,7 +6825,7 @@ query Assignees($projectName: String) {
6856
6825
  ]
6857
6826
  }
6858
6827
  }
6859
- }), { useGetVersionQuery: Kc, useCreateVersionMutation: Jc, useDeleteVersionMutation: Yc } = gr, B = (t, e) => ({
6828
+ }), { useGetVersionQuery: Xc, useCreateVersionMutation: Zc, useDeleteVersionMutation: ed } = vr, q = (t, e) => ({
6860
6829
  type: "view",
6861
6830
  id: `${t.toUpperCase()}${e ? `:${e.toUpperCase()}` : ""}`
6862
6831
  }), Ce = { type: "view", id: "LIST" }, V = qs.enhanceEndpoints({
@@ -6865,14 +6834,14 @@ query Assignees($projectName: String) {
6865
6834
  transformResponse: (t) => t?.views || [],
6866
6835
  providesTags: (t, e, { viewType: s, projectName: n }) => t ? [
6867
6836
  Ce,
6868
- B(s, n),
6837
+ q(s, n),
6869
6838
  ...t.filter((i) => i.id != null).map((i) => ({ type: "view", id: i.id }))
6870
6839
  ] : [Ce]
6871
6840
  },
6872
6841
  getWorkingView: {
6873
6842
  providesTags: (t, e, { viewType: s, projectName: n }) => [
6874
6843
  { type: "view", id: t?.id },
6875
- B(s, n),
6844
+ q(s, n),
6876
6845
  Ce
6877
6846
  ]
6878
6847
  },
@@ -6880,19 +6849,19 @@ query Assignees($projectName: String) {
6880
6849
  providesTags: (t, e, s) => [{ type: "view", id: s.viewId }, Ce]
6881
6850
  },
6882
6851
  getDefaultView: {
6883
- providesTags: (t, e, { viewType: s, projectName: n }) => t ? [{ type: "view", id: t.id }, B(s, n)] : [B(s, n)]
6852
+ providesTags: (t, e, { viewType: s, projectName: n }) => t ? [{ type: "view", id: t.id }, q(s, n)] : [q(s, n)]
6884
6853
  },
6885
6854
  getBaseView: {
6886
- providesTags: (t, e, { viewType: s, projectName: n }) => t ? [{ type: "view", id: t.id }, B(s, n)] : [B(s, n)]
6855
+ providesTags: (t, e, { viewType: s, projectName: n }) => t ? [{ type: "view", id: t.id }, q(s, n)] : [q(s, n)]
6887
6856
  }
6888
6857
  }
6889
6858
  }), {
6890
- useListViewsQuery: Xc,
6891
- useGetWorkingViewQuery: Zc,
6892
- useGetViewQuery: ed,
6893
- useGetDefaultViewQuery: td,
6894
- useGetBaseViewQuery: sd
6895
- } = V, hr = V.enhanceEndpoints({
6859
+ useListViewsQuery: td,
6860
+ useGetWorkingViewQuery: sd,
6861
+ useGetViewQuery: nd,
6862
+ useGetDefaultViewQuery: id,
6863
+ useGetBaseViewQuery: rd
6864
+ } = V, br = V.enhanceEndpoints({
6896
6865
  endpoints: {
6897
6866
  createView: {
6898
6867
  onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
@@ -6946,7 +6915,7 @@ query Assignees($projectName: String) {
6946
6915
  let u;
6947
6916
  if (i.label === "__base__") {
6948
6917
  const o = {
6949
- id: Hs(),
6918
+ id: Ws(),
6950
6919
  ...i,
6951
6920
  working: !1,
6952
6921
  scope: t.projectName ? "project" : "studio",
@@ -6980,7 +6949,7 @@ query Assignees($projectName: String) {
6980
6949
  // updates the view list cache for a specific view type and project
6981
6950
  invalidatesTags: (t, e, { viewType: s, projectName: n, payload: i }) => [
6982
6951
  { type: "view", id: i.id },
6983
- B(s, n)
6952
+ q(s, n)
6984
6953
  ]
6985
6954
  },
6986
6955
  updateView: {
@@ -7040,7 +7009,7 @@ query Assignees($projectName: String) {
7040
7009
  "accessLevel",
7041
7010
  "working"
7042
7011
  ];
7043
- return Object.keys(r).some((u) => c.includes(u)) && (a.push({ type: "view", id: i }), a.push(B(s, n))), a;
7012
+ return Object.keys(r).some((u) => c.includes(u)) && (a.push({ type: "view", id: i }), a.push(q(s, n))), a;
7044
7013
  }
7045
7014
  },
7046
7015
  deleteView: {
@@ -7081,8 +7050,8 @@ query Assignees($projectName: String) {
7081
7050
  // updates the view list cache for a specific view type and project
7082
7051
  invalidatesTags: (t, e, { viewType: s, projectName: n, viewId: i }) => [
7083
7052
  { type: "view", id: i },
7084
- B(s, n),
7085
- B(s, void 0)
7053
+ q(s, n),
7054
+ q(s, void 0)
7086
7055
  ]
7087
7056
  },
7088
7057
  setDefaultView: {
@@ -7120,21 +7089,21 @@ query Assignees($projectName: String) {
7120
7089
  // updates the default view cache for a specific view type and project
7121
7090
  invalidatesTags: (t, e, { viewType: s, projectName: n, setDefaultViewRequestModel: i }) => [
7122
7091
  { type: "view", id: i.viewId },
7123
- B(s, n)
7092
+ q(s, n)
7124
7093
  ]
7125
7094
  }
7126
7095
  }
7127
7096
  }), {
7128
- useCreateViewMutation: nd,
7129
- useUpdateViewMutation: id,
7130
- useDeleteViewMutation: rd,
7131
- useSetDefaultViewMutation: ad
7132
- } = hr, Be = Pe.enhanceEndpoints({
7097
+ useCreateViewMutation: ad,
7098
+ useUpdateViewMutation: od,
7099
+ useDeleteViewMutation: cd,
7100
+ useSetDefaultViewMutation: dd
7101
+ } = br, qe = Pe.enhanceEndpoints({
7133
7102
  endpoints: {
7134
7103
  getEntityWatchers: {},
7135
7104
  setEntityWatchers: {}
7136
7105
  }
7137
- }), Xt = Be.injectEndpoints({
7106
+ }), Zt = qe.injectEndpoints({
7138
7107
  endpoints: (t) => ({
7139
7108
  getEntitiesWatchers: t.query({
7140
7109
  async queryFn({ entities: e = [] }, { dispatch: s }) {
@@ -7142,7 +7111,7 @@ query Assignees($projectName: String) {
7142
7111
  return { data: await Promise.all(
7143
7112
  e.map(async (i) => {
7144
7113
  const r = await s(
7145
- Be.endpoints.getEntityWatchers.initiate(i, { forceRefetch: !0 })
7114
+ qe.endpoints.getEntityWatchers.initiate(i, { forceRefetch: !0 })
7146
7115
  );
7147
7116
  if (r.error) throw r.error;
7148
7117
  return {
@@ -7161,13 +7130,13 @@ query Assignees($projectName: String) {
7161
7130
  ])
7162
7131
  })
7163
7132
  })
7164
- }), mr = Xt.injectEndpoints({
7133
+ }), Ir = Zt.injectEndpoints({
7165
7134
  endpoints: (t) => ({
7166
7135
  setEntitiesWatchers: t.mutation({
7167
7136
  async queryFn({ entities: e = [] }, { dispatch: s }) {
7168
7137
  const n = e.map(async (i) => {
7169
7138
  const r = await s(
7170
- Be.endpoints.setEntityWatchers.initiate({
7139
+ qe.endpoints.setEntityWatchers.initiate({
7171
7140
  entityId: i.entityId,
7172
7141
  entityType: i.entityType,
7173
7142
  projectName: i.projectName,
@@ -7183,12 +7152,12 @@ query Assignees($projectName: String) {
7183
7152
  }
7184
7153
  },
7185
7154
  async onQueryStarted({ entities: e }, { dispatch: s, queryFulfilled: n, getState: i }) {
7186
- const r = i(), a = e.map((u) => ({ type: "watchers", id: u.entityId })), c = Be.util.selectInvalidatedBy(r, a);
7155
+ const r = i(), a = e.map((u) => ({ type: "watchers", id: u.entityId })), c = qe.util.selectInvalidatedBy(r, a);
7187
7156
  let d = [];
7188
7157
  try {
7189
7158
  c.forEach((u) => {
7190
7159
  const o = s(
7191
- Xt.util.updateQueryData(
7160
+ Zt.util.updateQueryData(
7192
7161
  "getEntitiesWatchers",
7193
7162
  u.originalArgs,
7194
7163
  (l) => {
@@ -7213,295 +7182,296 @@ query Assignees($projectName: String) {
7213
7182
  invalidatesTags: (e, s, { entities: n }) => n.some((i) => i.entityType === "task") ? [{ type: "watchers", id: "VERSION-LIST" }] : []
7214
7183
  })
7215
7184
  })
7216
- }), { useGetEntitiesWatchersQuery: od, useSetEntitiesWatchersMutation: cd } = mr, vr = Bs.enhanceEndpoints({
7185
+ }), { useGetEntitiesWatchersQuery: ud, useSetEntitiesWatchersMutation: ld } = Ir, Tr = Hs.enhanceEndpoints({
7217
7186
  endpoints: {
7218
7187
  resolveUris: {}
7219
7188
  }
7220
- }), { useResolveUrisMutation: dd } = vr;
7189
+ }), { useResolveUrisMutation: pd } = Tr;
7221
7190
  export {
7222
7191
  ot as $,
7223
- q as A,
7224
- gi as B,
7225
- Kn as C,
7192
+ B as A,
7193
+ mi as B,
7194
+ Yn as C,
7226
7195
  se as D,
7227
- $i as E,
7228
- Gn as F,
7229
- Yn as G,
7230
- Jn as H,
7196
+ qi as E,
7197
+ Nn as F,
7198
+ Zn as G,
7199
+ Xn as H,
7231
7200
  $e as I,
7232
- Qn as J,
7201
+ Vn as J,
7233
7202
  ye as K,
7234
7203
  qt as L,
7235
- Pn as M,
7236
- Or as N,
7237
- cs as O,
7238
- Rn as P,
7239
- fi as Q,
7204
+ jn as M,
7205
+ Ur as N,
7206
+ ds as O,
7207
+ Cn as P,
7208
+ gi as Q,
7240
7209
  gt as R,
7241
- vt as S,
7210
+ bt as S,
7242
7211
  ze as T,
7243
- B as U,
7244
- _n as V,
7212
+ q as U,
7213
+ Gn as V,
7245
7214
  V as W,
7246
- Hr as X,
7247
- Di as Y,
7215
+ Kr as X,
7216
+ Ui as Y,
7248
7217
  Ae as Z,
7249
7218
  N as _,
7250
7219
  tt as a,
7251
- po as a$,
7252
- Ei as a0,
7220
+ ho as a$,
7221
+ Pi as a0,
7253
7222
  we as a1,
7254
7223
  ke as a2,
7255
- zr as a3,
7256
- Rt as a4,
7224
+ Yr as a3,
7225
+ Gt as a4,
7257
7226
  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,
7227
+ ls as a6,
7228
+ us as a7,
7229
+ rr as a8,
7230
+ Oa as a9,
7231
+ Rt as aA,
7232
+ Kc as aB,
7233
+ bc as aC,
7234
+ Go as aD,
7235
+ Qo as aE,
7236
+ po as aF,
7237
+ ac as aG,
7238
+ tc as aH,
7239
+ eo as aI,
7240
+ Ka as aJ,
7241
+ pc as aK,
7242
+ gc as aL,
7243
+ go as aM,
7244
+ so as aN,
7245
+ jo as aO,
7246
+ Zc as aP,
7247
+ ad as aQ,
7248
+ Mr as aR,
7249
+ fo as aS,
7250
+ wo as aT,
7251
+ No as aU,
7252
+ rc as aV,
7253
+ sc as aW,
7254
+ to as aX,
7255
+ Ya as aY,
7256
+ hc as aZ,
7257
+ wa as a_,
7258
+ Be as aa,
7290
7259
  Ee as ab,
7291
- ii as ac,
7292
- oi as ad,
7293
- ri as ae,
7294
- Hi as af,
7260
+ ai as ac,
7261
+ di as ad,
7262
+ oi as ae,
7263
+ Ji as af,
7295
7264
  mt as ag,
7296
7265
  ee as ah,
7297
7266
  W as ai,
7298
- Wn as aj,
7299
- zn as ak,
7300
- Hn as al,
7267
+ Kn as aj,
7268
+ Jn as ak,
7269
+ zn as al,
7301
7270
  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,
7271
+ Si as an,
7272
+ tr as ao,
7273
+ Jr as ap,
7274
+ nr as aq,
7275
+ Wr as ar,
7276
+ Es as as,
7277
+ En as at,
7278
+ or as au,
7279
+ Yo as av,
7280
+ Br as aw,
7312
7281
  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,
7282
+ ti as ay,
7283
+ hs as az,
7284
+ zi as b,
7285
+ Ma as b$,
7286
+ wc as b0,
7287
+ Mc as b1,
7288
+ Nc as b2,
7289
+ ed as b3,
7290
+ cd as b4,
7291
+ Uo as b5,
7292
+ ka as b6,
7293
+ Ao as b7,
7294
+ Or as b8,
7295
+ Rr as b9,
7296
+ za as bA,
7297
+ mo as bB,
7298
+ ya as bC,
7299
+ fa as bD,
7300
+ no as bE,
7301
+ pa as bF,
7302
+ Bo as bG,
7303
+ ia as bH,
7304
+ ca as bI,
7305
+ aa as bJ,
7306
+ oa as bK,
7307
+ fc as bL,
7308
+ na as bM,
7309
+ Va as bN,
7310
+ La as bO,
7311
+ Pa as bP,
7312
+ Yc as bQ,
7313
+ cc as bR,
7314
+ Xo as bS,
7315
+ Ba as bT,
7316
+ Ua as bU,
7317
+ qa as bV,
7318
+ dc as bW,
7319
+ uc as bX,
7320
+ Xr as bY,
7321
+ ha as bZ,
7322
+ Ga as b_,
7323
+ Gr as ba,
7324
+ _r as bb,
7325
+ $r as bc,
7326
+ Vr as bd,
7327
+ Oc as be,
7328
+ io as bf,
7329
+ co as bg,
7330
+ oo as bh,
7331
+ vo as bi,
7332
+ uo as bj,
7333
+ $c as bk,
7334
+ Vc as bl,
7335
+ So as bm,
7336
+ Eo as bn,
7337
+ rd as bo,
7338
+ zo as bp,
7339
+ Hc as bq,
7340
+ ko as br,
7341
+ id as bs,
7342
+ ao as bt,
7343
+ ua as bu,
7344
+ ud as bv,
7345
+ ic as bw,
7346
+ xa as bx,
7347
+ Jo as by,
7348
+ ec as bz,
7349
+ Pt as c,
7350
+ pd as c$,
7351
+ Io as c0,
7352
+ Ia as c1,
7353
+ Co as c2,
7354
+ yc as c3,
7355
+ va as c4,
7356
+ Cr as c5,
7357
+ bo as c6,
7358
+ Ta as c7,
7359
+ ja as c8,
7360
+ Tc as c9,
7361
+ Ra as cA,
7362
+ nd as cB,
7363
+ Ic as cC,
7364
+ sd as cD,
7365
+ $o as cE,
7366
+ kc as cF,
7367
+ Dr as cG,
7368
+ ro as cH,
7369
+ Dc as cI,
7370
+ la as cJ,
7371
+ ga as cK,
7372
+ da as cL,
7373
+ Wa as cM,
7374
+ Ha as cN,
7375
+ Lc as cO,
7376
+ sa as cP,
7377
+ Ro as cQ,
7378
+ ji as cR,
7379
+ _o as cS,
7380
+ jc as cT,
7381
+ zc as cU,
7382
+ ba as cV,
7383
+ td as cW,
7384
+ Vo as cX,
7385
+ Lo as cY,
7386
+ Mo as cZ,
7387
+ Jc as c_,
7388
+ Zr as ca,
7389
+ ma as cb,
7390
+ oc as cc,
7391
+ Ho as cd,
7392
+ qo as ce,
7393
+ Wo as cf,
7394
+ To as cg,
7395
+ Sc as ch,
7396
+ Pc as ci,
7397
+ Fr as cj,
7398
+ ra as ck,
7399
+ Fc as cl,
7400
+ ta as cm,
7401
+ ea as cn,
7402
+ Rc as co,
7403
+ Uc as cp,
7404
+ Fo as cq,
7405
+ Wc as cr,
7406
+ qc as cs,
7407
+ Bc as ct,
7408
+ xc as cu,
7409
+ Xc as cv,
7410
+ Qa as cw,
7411
+ Ca as cx,
7412
+ lo as cy,
7413
+ Na as cz,
7414
+ Rn as d,
7415
+ Qr as d0,
7416
+ Qc as d1,
7417
+ Cc as d2,
7418
+ xr as d3,
7419
+ Po as d4,
7420
+ dd as d5,
7421
+ ld as d6,
7422
+ Zo as d7,
7423
+ Aa as d8,
7424
+ Sa as d9,
7425
+ Mi as dA,
7426
+ lc as dB,
7427
+ os as dC,
7428
+ Hr as dD,
7429
+ as as dE,
7430
+ vc as da,
7431
+ Nr as db,
7432
+ Ko as dc,
7433
+ xo as dd,
7434
+ Ac as de,
7435
+ Oo as df,
7436
+ yo as dg,
7437
+ Do as dh,
7438
+ Fa as di,
7439
+ nc as dj,
7440
+ Za as dk,
7441
+ Xa as dl,
7442
+ Ja as dm,
7443
+ _a as dn,
7444
+ $a as dp,
7445
+ mc as dq,
7446
+ Ea as dr,
7447
+ Ec as ds,
7448
+ _c as dt,
7449
+ Gc as du,
7450
+ od as dv,
7451
+ Wn as dw,
7452
+ vr as dx,
7453
+ br as dy,
7454
+ Ir as dz,
7485
7455
  ae as e,
7486
- wi as f,
7456
+ Ei as f,
7487
7457
  Is as g,
7488
- vn as h,
7489
- Xs as i,
7490
- Pi as j,
7491
- Li as k,
7492
- Br as l,
7493
- Ri as m,
7458
+ In as h,
7459
+ en as i,
7460
+ _i as j,
7461
+ Ri as k,
7462
+ zr as l,
7463
+ Qi as m,
7494
7464
  fe as n,
7495
- xr as o,
7496
- Ci as p,
7497
- ui as q,
7465
+ qr as o,
7466
+ Vi as p,
7467
+ pi as q,
7498
7468
  Ie as r,
7499
- Qa as s,
7500
- jn as t,
7501
- Js as u,
7469
+ Da as s,
7470
+ _n as t,
7471
+ Xs as u,
7502
7472
  de as v,
7503
7473
  z as w,
7504
- ls as x,
7474
+ ps as x,
7505
7475
  le as y,
7506
- Vi as z
7476
+ xi as z
7507
7477
  };