@ynput/ayon-frontend-shared 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- import { aj as as, aU as he, aO as P, ak as Ne, ab as O, bD as _s, aI as R, aE as yt, bv as F, az as le, a as Rs, bs as Gs, aQ as Cs, aJ as M, al as Le, an as Ns, ap as Qs, aq as Ms, as as Vs, bo as Os, au as Ds, aK as $s, aM as xs, bj as os, aR as Us, aT as Bs, aV as X, aY as qs, aZ as rt, a_ as Hs, af as de, aA as Ws, bk as zs, bl as Ks, b0 as Js } from "./searchTerms.es.js";
1
+ import { aj as os, aU as he, aO as P, ak as Ne, ab as O, bD as Rs, aI as R, aE as gt, bv as F, az as le, a as Gs, bs as Cs, aQ as Ns, aJ as M, al as Le, an as Qs, ap as Ms, aq as Vs, as as Os, bo as Ds, au as $s, aK as xs, aM as Us, bj as cs, aR as Bs, aT as qs, aV as X, aY as Hs, aZ as rt, a_ as Ws, af as de, aA as zs, bk as Ks, bl as Js, b0 as Ys } from "./searchTerms.es.js";
2
2
  import "lodash";
3
3
  import "primereact/confirmdialog";
4
- import { toast as cs } from "react-toastify";
5
- import { v4 as Ys } from "uuid";
6
- import { R as Zs, D as Xs, k as H, f as $, j as fe, c as Ve, a as re, w as K, i as en, g as ds } from "./realtimeUpdatesUtils.es.js";
7
- import { useMemo as tn } from "react";
4
+ import { toast as ds } from "react-toastify";
5
+ import { v4 as Zs } from "uuid";
6
+ import { R as Xs, D as en, k as H, f as $, j as fe, c as Ve, a as re, w as K, i as tn, g as us } from "./realtimeUpdatesUtils.es.js";
7
+ import { useMemo as sn } from "react";
8
8
  import "axios";
9
- import { current as sn } from "@reduxjs/toolkit";
10
- const Oe = as.injectEndpoints({
9
+ import { current as nn } from "@reduxjs/toolkit";
10
+ const Oe = os.injectEndpoints({
11
11
  endpoints: (t) => ({
12
12
  getProjectsAccess: t.query({
13
13
  async queryFn({ projects: e = [] }, { dispatch: s, forced: n }) {
@@ -61,12 +61,12 @@ Oe.enhanceEndpoints({
61
61
  }
62
62
  });
63
63
  const {
64
- useGetStudioAccessGroupsQuery: xr,
65
- useGetAccessGroupsQuery: Ur,
66
- useGetAccessGroupQuery: Br,
67
- useGetAccessGroupSchemaQuery: qr,
68
- useGetProjectsAccessQuery: Hr
69
- } = Oe, nn = Oe.enhanceEndpoints({
64
+ useGetStudioAccessGroupsQuery: Br,
65
+ useGetAccessGroupsQuery: qr,
66
+ useGetAccessGroupQuery: Hr,
67
+ useGetAccessGroupSchemaQuery: Wr,
68
+ useGetProjectsAccessQuery: zr
69
+ } = Oe, rn = Oe.enhanceEndpoints({
70
70
  endpoints: {
71
71
  setProjectsAccess: {
72
72
  async onQueryStarted({ payload: t }, { dispatch: e, queryFulfilled: s }) {
@@ -118,15 +118,15 @@ const {
118
118
  }
119
119
  }
120
120
  }), {
121
- useSetProjectsAccessMutation: Wr,
122
- useSaveAccessGroupMutation: zr,
123
- useDeleteAccessGroupMutation: Kr
124
- } = nn, rn = Ne.enhanceEndpoints({
121
+ useSetProjectsAccessMutation: Kr,
122
+ useSaveAccessGroupMutation: Jr,
123
+ useDeleteAccessGroupMutation: Yr
124
+ } = rn, an = Ne.enhanceEndpoints({
125
125
  endpoints: {
126
126
  executeAction: {},
127
127
  listAvailableActionsForContext: {}
128
128
  }
129
- }), an = rn.injectEndpoints({
129
+ }), on = an.injectEndpoints({
130
130
  endpoints: (t) => ({
131
131
  getActionsFromContext: t.query({
132
132
  queryFn: async (e, { dispatch: s }) => {
@@ -158,30 +158,30 @@ const {
158
158
  // End of endpoints
159
159
  })
160
160
  }), {
161
- useGetActionsFromContextQuery: Jr,
162
- useLazyGetActionsFromContextQuery: Yr,
163
- useExecuteActionMutation: Zr,
164
- useGetActionConfigQuery: Xr,
165
- useSetActionConfigMutation: ea
166
- } = an, on = (t, e) => e.split(".").reduce((s, n) => s && s[n] !== void 0 ? s[n] : void 0, t), cn = (t, e) => {
161
+ useGetActionsFromContextQuery: Zr,
162
+ useLazyGetActionsFromContextQuery: Xr,
163
+ useExecuteActionMutation: ea,
164
+ useGetActionConfigQuery: ta,
165
+ useSetActionConfigMutation: sa
166
+ } = on, cn = (t, e) => e.split(".").reduce((s, n) => s && s[n] !== void 0 ? s[n] : void 0, t), dn = (t, e) => {
167
167
  const s = e.split("."), n = s.pop(), i = s.reduce((r, a) => r && r[a] !== void 0 ? r[a] : void 0, t);
168
168
  i && n && delete i[n];
169
169
  };
170
- function dn(t, e) {
170
+ function un(t, e) {
171
171
  const s = { ...t };
172
172
  for (const [n, i] of Object.entries(e)) {
173
- const r = on(s, n);
174
- r !== void 0 && (s[i] = r, cn(s, n));
173
+ const r = cn(s, n);
174
+ r !== void 0 && (s[i] = r, dn(s, n));
175
175
  }
176
176
  return s;
177
177
  }
178
- const Tt = (t = [], e) => {
178
+ const kt = (t = [], e) => {
179
179
  const s = [];
180
180
  return t.forEach((n) => {
181
181
  const i = n.node;
182
182
  if (!i)
183
183
  return;
184
- const r = i, c = dn(
184
+ const r = i, c = un(
185
185
  r,
186
186
  {
187
187
  "author.name": "authorName",
@@ -197,7 +197,7 @@ const Tt = (t = [], e) => {
197
197
  }
198
198
  s.push(c);
199
199
  }), { activities: s, pageInfo: e };
200
- }, un = (t) => {
200
+ }, ln = (t) => {
201
201
  const {
202
202
  id: e,
203
203
  label: s,
@@ -224,7 +224,7 @@ const Tt = (t = [], e) => {
224
224
  users: c?.map((l) => ({ name: l, avatarUrl: `/api/users/${l}/avatar` })) || [],
225
225
  path: o?.path.split("/").splice(-2, 1).join("")
226
226
  };
227
- }, ln = (t) => {
227
+ }, pn = (t) => {
228
228
  const { id: e, name: s, status: n, thumbnailId: i, author: r, updatedAt: a, product: c } = t;
229
229
  return {
230
230
  id: e,
@@ -239,7 +239,7 @@ const Tt = (t = [], e) => {
239
239
  productType: c?.productType,
240
240
  path: c?.folder?.path?.split("/").pop()
241
241
  };
242
- }, pn = (t) => {
242
+ }, fn = (t) => {
243
243
  const { id: e, name: s, label: n, status: i, thumbnailId: r, thumbnailHash: a, updatedAt: c, folderType: u, parents: d } = t || {};
244
244
  return {
245
245
  id: e,
@@ -255,7 +255,7 @@ const Tt = (t = [], e) => {
255
255
  users: [],
256
256
  path: d?.[d.length - 2]
257
257
  };
258
- }, fn = (t) => {
258
+ }, yn = (t) => {
259
259
  const { id: e, name: s, status: n, thumbnailId: i, thumbnailHash: r, updatedAt: a, task: c } = t || {};
260
260
  return {
261
261
  id: e,
@@ -271,20 +271,20 @@ const Tt = (t = [], e) => {
271
271
  users: [],
272
272
  path: c?.folder?.path?.split("/").pop()
273
273
  };
274
- }, yn = (t, e) => {
274
+ }, gn = (t, e) => {
275
275
  switch (e) {
276
276
  case "task":
277
- return un(t.task);
277
+ return ln(t.task);
278
278
  case "version":
279
- return ln(t.version);
279
+ return pn(t.version);
280
280
  case "folder":
281
- return pn(t.folder);
281
+ return fn(t.folder);
282
282
  case "workfile":
283
- return fn(t.workfile);
283
+ return yn(t.workfile);
284
284
  default:
285
285
  return {};
286
286
  }
287
- }, gn = (t) => {
287
+ }, hn = (t) => {
288
288
  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) => {
289
289
  if (!c) return a;
290
290
  const u = c.match(/\*\s\[\s\]/g);
@@ -295,21 +295,21 @@ const Tt = (t = [], e) => {
295
295
  return a + (u ? u.length : 0);
296
296
  }, 0);
297
297
  return { total: i + r, checked: r, unChecked: i, ids: n };
298
- }, hn = (t, e = "task", s = "task") => t?.length ? [
298
+ }, mn = (t, e = "task", s = "task") => t?.length ? [
299
299
  ...t.map(({ id: n }) => ({ type: e, id: n })),
300
300
  { type: e, id: s.toUpperCase() + "S" },
301
301
  {
302
302
  type: `kanBan${s.charAt(0).toUpperCase() + s.slice(1)}`,
303
303
  id: s.toUpperCase() + "S"
304
304
  }
305
- ] : [{ type: e, id: s.toUpperCase() + "S" }], us = (t) => {
305
+ ] : [{ type: e, id: s.toUpperCase() + "S" }], ls = (t) => {
306
306
  if (typeof t == "string") return t;
307
307
  try {
308
308
  return JSON.stringify(t) ?? "";
309
309
  } catch {
310
310
  return "";
311
311
  }
312
- }, ls = (t, e, s) => {
312
+ }, ps = (t, e, s) => {
313
313
  if (!t)
314
314
  return [{ type: "activity", id: "LIST" }];
315
315
  const { entityIds: n, activityTypes: i, filter: r } = s, a = (o) => (Array.isArray(o) ? o : [o]).filter(Boolean), c = a(n), u = a(i), d = t.pages ? t.pages.flatMap((o) => o.activities) : t.activities || [];
@@ -325,7 +325,7 @@ const Tt = (t = [], e) => {
325
325
  // Filtered Entity Activity Tags
326
326
  ...c.map((o) => ({
327
327
  type: "entityActivities",
328
- id: `${o}-${us(r)}`
328
+ id: `${o}-${ls(r)}`
329
329
  })),
330
330
  // Published Version Tags
331
331
  ...d.filter((o) => o.activityType === "version.publish").map((o) => ({
@@ -356,7 +356,7 @@ const Tt = (t = [], e) => {
356
356
  "subtype.change"
357
357
  ],
358
358
  checklists: ["checklist"]
359
- }, ta = (t) => {
359
+ }, na = (t) => {
360
360
  if (typeof t == "string")
361
361
  return t in se ? se[t] : null;
362
362
  if (t && typeof t == "object" && t.conditions) {
@@ -367,7 +367,7 @@ const Tt = (t = [], e) => {
367
367
  }), s ? Array.from(new Set(e)) : se.activity;
368
368
  }
369
369
  return se.activity;
370
- }, mn = (t) => {
370
+ }, vn = (t) => {
371
371
  switch (t) {
372
372
  case "task":
373
373
  return `
@@ -411,7 +411,7 @@ const Tt = (t = [], e) => {
411
411
  default:
412
412
  return "";
413
413
  }
414
- }, vn = (t) => `
414
+ }, bn = (t) => `
415
415
  query EntityTooltip($projectName: String!, $entityId: String!) {
416
416
  project(name: $projectName) {
417
417
  ${t}(id: $entityId) {
@@ -421,15 +421,23 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
421
421
  thumbnailId
422
422
  updatedAt
423
423
  thumbnailHash
424
- ${mn(t)}
424
+ ${vn(t)}
425
425
  }
426
426
  }
427
427
  }
428
- `, bn = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), kt = {
428
+ `, In = (t, e) => {
429
+ if (typeof t != "number" || !Number.isFinite(t)) return null;
430
+ const s = typeof e == "number" && Number.isFinite(e) ? e : 0;
431
+ return t - s;
432
+ }, at = (t) => typeof t == "number" && Number.isFinite(t) ? t - 1 : 0, ia = (t, e) => String(t + at(e)), ra = (t, e) => {
433
+ if (!t) return null;
434
+ const s = t.startFrame - at(e), n = t.endFrame - at(e);
435
+ return s > 0 ? { startFrame: s, endFrame: n } : null;
436
+ }, Tn = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), wt = {
429
437
  task_type: "subType",
430
438
  folder_type: "subType",
431
439
  product_type: "subType"
432
- }, ye = (t) => t in kt ? kt[t] : t.startsWith("project_attributes_") ? "attrib_" + t.slice(19) : t.startsWith("inherited_attributes_") ? "attrib_" + t.slice(21) : t.startsWith("attrib_") ? t : bn(t), In = (t) => {
440
+ }, ye = (t) => t in wt ? wt[t] : t.startsWith("project_attributes_") ? "attrib_" + t.slice(19) : t.startsWith("inherited_attributes_") ? "attrib_" + t.slice(21) : t.startsWith("attrib_") ? t : Tn(t), kn = (t) => {
433
441
  if (Array.isArray(t)) return t;
434
442
  if (typeof t == "string") {
435
443
  const e = t.trim();
@@ -441,7 +449,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
441
449
  }
442
450
  }
443
451
  return [t];
444
- }, Tn = (t) => {
452
+ }, wn = (t) => {
445
453
  if (t == null) return;
446
454
  let e = t;
447
455
  if (typeof e == "string")
@@ -454,7 +462,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
454
462
  const s = /* @__PURE__ */ new Map();
455
463
  for (const n of e) {
456
464
  if (!n || n.value == null) continue;
457
- const i = In(n.value);
465
+ const i = kn(n.value);
458
466
  for (const r of i) {
459
467
  const a = String(r), c = s.get(a);
460
468
  s.set(a, { ...n, value: a, count: (c?.count ?? 0) + (Number(n.count) || 0) });
@@ -467,7 +475,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
467
475
  value: s,
468
476
  count: Number(n) || 0
469
477
  }));
470
- }, me = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0), kn = (t, e) => t == null ? e ?? void 0 : e == null || t < e ? t : e, wn = (t, e) => t == null ? e ?? void 0 : e == null || t > e ? t : e, Pe = (t, e) => t != null && e != null && t + e > 0 ? Math.round(t / (t + e) * 1e4) / 100 : void 0, An = (t, e) => {
478
+ }, me = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0), An = (t, e) => t == null ? e ?? void 0 : e == null || t < e ? t : e, En = (t, e) => t == null ? e ?? void 0 : e == null || t > e ? t : e, Pe = (t, e) => t != null && e != null && t + e > 0 ? Math.round(t / (t + e) * 1e4) / 100 : void 0, Sn = (t, e) => {
471
479
  const s = me(t.valueFilledCount, e.valueFilledCount), n = me(t.valueNotFilledCount, e.valueNotFilledCount), i = me(t.checkedCount, e.checkedCount), r = me(t.notCheckedCount, e.notCheckedCount);
472
480
  let a;
473
481
  if (t.avg != null && e.avg != null) {
@@ -486,8 +494,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
486
494
  }
487
495
  return {
488
496
  columnName: t.columnName,
489
- min: kn(t.min, e.min),
490
- max: wn(t.max, e.max),
497
+ min: An(t.min, e.min),
498
+ max: En(t.max, e.max),
491
499
  avg: a,
492
500
  sum: me(t.sum, e.sum),
493
501
  valueFilledCount: s,
@@ -505,7 +513,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
505
513
  }, we = (t) => t.map((e) => ({
506
514
  ...e,
507
515
  columnName: ye(e.columnName),
508
- distribution: Tn(e.distribution)
516
+ distribution: wn(e.distribution)
509
517
  })), Ae = (t = [], e = []) => {
510
518
  const s = /* @__PURE__ */ new Map();
511
519
  for (const n of e) s.set(ye(n.columnName), { ...n });
@@ -516,20 +524,20 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
516
524
  s.set(i, r);
517
525
  }
518
526
  return [...s.values()];
519
- }, sa = (t) => t.reduce(
527
+ }, aa = (t) => t.reduce(
520
528
  (e, s) => Math.max(e, (s.valueFilledCount ?? 0) + (s.valueNotFilledCount ?? 0)),
521
529
  0
522
- ), na = (t, e = []) => {
530
+ ), oa = (t, e = []) => {
523
531
  const s = /* @__PURE__ */ new Map();
524
532
  for (const i of t) s.set(ye(i.columnName), i);
525
533
  const n = new Map(s);
526
534
  for (const i of e) {
527
535
  const r = ye(i.columnName), a = s.get(r);
528
- n.set(r, a ? An(a, i) : i);
536
+ n.set(r, a ? Sn(a, i) : i);
529
537
  }
530
538
  return [...n.values()];
531
- }, ps = [Zs, Xs], gt = (t, e, s) => {
532
- if (ps.includes(e))
539
+ }, fs = [Xs, en], ht = (t, e, s) => {
540
+ if (fs.includes(e))
533
541
  return !0;
534
542
  if (t[e] !== void 0 && t[e] !== null)
535
543
  return t[e];
@@ -552,37 +560,37 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
552
560
  return s[r];
553
561
  }
554
562
  return !1;
555
- }, En = (t, e) => e.filter(
556
- (n) => !ps.includes(n) && t[n]
563
+ }, Ln = (t, e) => e.filter(
564
+ (n) => !fs.includes(n) && t[n]
557
565
  ).length === 0 && e.includes("name") ? {
558
566
  ...t,
559
567
  name: !0
560
- } : t, ia = (t, e, s, n = {}) => {
568
+ } : t, ca = (t, e, s, n = {}) => {
561
569
  const i = { ...t };
562
570
  for (const r of e)
563
- i[r] === void 0 && (i[r] = n[r] ?? gt({}, r, s));
564
- return En(i, e);
565
- }, wt = (t) => {
571
+ i[r] === void 0 && (i[r] = n[r] ?? ht({}, r, s));
572
+ return Ln(i, e);
573
+ }, At = (t) => {
566
574
  const e = t?.targets;
567
575
  return Array.isArray(e) ? e : e ? [e] : [];
568
- }, at = (t, e, s) => {
576
+ }, ot = (t, e, s) => {
569
577
  const n = e?.[t], i = s?.[t];
570
578
  return n === "none" || i === "none" ? !1 : n != null || i != null;
571
- }, Sn = (t, e, s, n) => {
579
+ }, Pn = (t, e, s, n) => {
572
580
  const i = /* @__PURE__ */ new Set([
573
581
  ...Object.keys(t ?? {}),
574
582
  ...Object.keys(e ?? {})
575
583
  ]);
576
584
  for (const r of i)
577
- if (!(s && !gt(s, r, n)) && at(r, t, e))
585
+ if (!(s && !ht(s, r, n)) && ot(r, t, e))
578
586
  return !0;
579
587
  return !1;
580
- }, ra = (t, e, s, n) => e?.name === "none" && !Sn(t, e, s, n), Ee = (t, e) => {
588
+ }, da = (t, e, s, n) => e?.name === "none" && !Pn(t, e, s, n), Ee = (t, e) => {
581
589
  if (!t) return !1;
582
590
  if (!e) return !0;
583
- const s = new Set(wt(e).map((n) => n.field));
584
- return wt(t).some((n) => !s.has(n.field));
585
- }, qe = [O.Filled, O.NotFilled], At = [
591
+ const s = new Set(At(e).map((n) => n.field));
592
+ return At(t).some((n) => !s.has(n.field));
593
+ }, qe = [O.Filled, O.NotFilled], Et = [
586
594
  O.Min,
587
595
  O.Max,
588
596
  O.Avg,
@@ -593,12 +601,12 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
593
601
  O.Filled,
594
602
  O.NotFilled,
595
603
  O.Distribution
596
- ], Ln = {
604
+ ], jn = {
597
605
  folder: "folder_type",
598
606
  task: "task_type",
599
607
  product: "product_type",
600
608
  version: "product_type"
601
- }, aa = ({
609
+ }, ua = ({
602
610
  entity: t,
603
611
  attribs: e,
604
612
  columnVisibility: s,
@@ -607,9 +615,9 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
607
615
  columnSummaryScopes: r,
608
616
  extraFields: a = []
609
617
  }) => {
610
- const c = (y) => gt(s, y, n), u = (y) => c(y) && at(y, i, r), d = [];
611
- t === "version" ? d.push({ field: "status", aggregations: u("status") ? J : qe }) : (d.push({ field: "name", aggregations: qe }), u("status") && d.push({ field: "status", aggregations: J })), u("tags") && d.push({ field: "tags", aggregations: J }), t === "task" && u("assignees") && d.push({ field: "assignees", aggregations: J }), t === "version" && (u("version") && d.push({ field: "version", aggregations: At }), u("author") && d.push({ field: "author", aggregations: J }));
612
- const o = r?.name ?? "all", p = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", l = i?.name === "breakdown" && at("name", i, r) && p, f = Ln[t];
618
+ const c = (y) => ht(s, y, n), u = (y) => c(y) && ot(y, i, r), d = [];
619
+ t === "version" ? d.push({ field: "status", aggregations: u("status") ? J : qe }) : (d.push({ field: "name", aggregations: qe }), u("status") && d.push({ field: "status", aggregations: J })), u("tags") && d.push({ field: "tags", aggregations: J }), t === "task" && u("assignees") && d.push({ field: "assignees", aggregations: J }), t === "version" && (u("version") && d.push({ field: "version", aggregations: Et }), u("author") && d.push({ field: "author", aggregations: J }));
620
+ const o = r?.name ?? "all", p = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", l = i?.name === "breakdown" && ot("name", i, r) && p, f = jn[t];
613
621
  (u("subType") || l) && d.push({ field: f, aggregations: J });
614
622
  for (const y of a)
615
623
  d.push({ field: y, aggregations: J });
@@ -618,39 +626,39 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
618
626
  let h = `attrib.${y.name}`;
619
627
  ["folder", "task"].includes(t) && (h = `inherited_attributes.${y.name}`);
620
628
  const g = y.data?.type;
621
- g === "integer" || g === "float" ? d.push({ field: h, aggregations: At }) : g === "string" ? d.push({ field: h, aggregations: _s(y.data) ? J : qe }) : (g === "list_of_strings" || g === "list_of_integers") && d.push({ field: h, aggregations: J });
629
+ g === "integer" || g === "float" ? d.push({ field: h, aggregations: Et }) : g === "string" ? d.push({ field: h, aggregations: Rs(y.data) ? J : qe }) : (g === "list_of_strings" || g === "list_of_integers") && d.push({ field: h, aggregations: J });
622
630
  }
623
631
  return d;
624
- }, Et = [
632
+ }, St = [
625
633
  O.Distribution,
626
634
  O.Filled,
627
635
  O.NotFilled
628
- ], Pn = {
636
+ ], Fn = {
629
637
  status: "status",
630
638
  assignees: "assignees",
631
639
  tags: "tags",
632
640
  taskType: "task_type"
633
- }, jn = {
641
+ }, _n = {
634
642
  status: "status",
635
643
  tags: "tags",
636
644
  author: "author",
637
645
  productType: "product_type",
638
646
  folderId: "folder_id"
639
- }, oa = (t, e) => {
640
- const n = (e === "version" || e === "product" ? jn : Pn)[t.id];
641
- if (n) return { field: n, aggregations: Et };
647
+ }, la = (t, e) => {
648
+ const n = (e === "version" || e === "product" ? _n : Fn)[t.id];
649
+ if (n) return { field: n, aggregations: St };
642
650
  if (t.id.startsWith("attrib.")) {
643
651
  const i = t.id.slice(7);
644
- return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: Et };
652
+ return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: St };
645
653
  }
646
654
  return null;
647
- }, Fn = (t) => {
655
+ }, Rn = (t) => {
648
656
  const e = t.indexOf(".");
649
657
  return e !== -1 ? "attrib_" + t.slice(e + 1) : ye(t);
650
- }, ca = (t, e) => {
658
+ }, pa = (t, e) => {
651
659
  const s = /* @__PURE__ */ new Map(), n = { count: 0, percentage: 0 };
652
660
  if (!e) return { counts: s, total: 0, ungrouped: n, complete: !1 };
653
- const i = Fn(e.field), r = t.find((f) => f.columnName === i), a = r?.distribution || [], c = r?.valueNotFilledCount ?? 0, u = r?.valueFilledCount ?? 0, d = !!r && (a.length > 0 || u === 0), o = a.reduce((f, y) => f + (y.count || 0), 0), p = u ? u + c : o + c;
661
+ const i = Rn(e.field), r = t.find((f) => f.columnName === i), a = r?.distribution || [], c = r?.valueNotFilledCount ?? 0, u = r?.valueFilledCount ?? 0, d = !!r && (a.length > 0 || u === 0), o = a.reduce((f, y) => f + (y.count || 0), 0), p = u ? u + c : o + c;
654
662
  for (const f of a) {
655
663
  const y = f.count || 0, h = p > 0 ? Math.round(y / p * 100) : 0;
656
664
  s.set(String(f.value), { count: y, percentage: h });
@@ -668,7 +676,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
668
676
  } catch {
669
677
  return {};
670
678
  }
671
- }, da = G, St = (t) => {
679
+ }, fa = G, Lt = (t) => {
672
680
  if (!t.project)
673
681
  return [];
674
682
  const e = [];
@@ -702,14 +710,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
702
710
  GetTasksByParent: {
703
711
  transformResponse: (t) => ({
704
712
  pageInfo: t?.project?.tasks?.pageInfo ?? { hasNextPage: !1, endCursor: null },
705
- tasks: St(t)
713
+ tasks: Lt(t)
706
714
  }),
707
715
  providesTags: (t, e, { parentIds: s, projectName: n }) => Ie(t?.tasks || [], n, s),
708
716
  keepUnusedDataFor: ee
709
717
  },
710
718
  GetTasksList: {
711
719
  transformResponse: (t) => ({
712
- tasks: St(t),
720
+ tasks: Lt(t),
713
721
  pageInfo: t.project.tasks.pageInfo
714
722
  }),
715
723
  providesTags: (t, e, { projectName: s }) => Ie(t?.tasks || [], s),
@@ -734,13 +742,13 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
734
742
  keepUnusedDataFor: ee
735
743
  }
736
744
  }
737
- }), _n = yt.enhanceEndpoints({
745
+ }), Gn = gt.enhanceEndpoints({
738
746
  endpoints: {
739
747
  searchFolders: {}
740
748
  }
741
- }), He = 100, Te = {}, We = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), Rn = (t, e) => {
749
+ }), He = 100, Te = {}, We = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), Cn = (t, e) => {
742
750
  Te[t] || (Te[t] = /* @__PURE__ */ new Set()), e.forEach((s) => Te[t].add(s));
743
- }, Lt = (t) => Te[t] || /* @__PURE__ */ new Set(), D = ae.injectEndpoints({
751
+ }, Pt = (t) => Te[t] || /* @__PURE__ */ new Set(), D = ae.injectEndpoints({
744
752
  endpoints: (t) => ({
745
753
  // Each project has one cache for all the tasks of the expanded folders
746
754
  // Changing the expanded folders will trigger a refetch but not a new cache
@@ -752,7 +760,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
752
760
  try {
753
761
  const o = u(), p = { projectName: e, filter: n, folderFilter: i, search: r, showComments: a }, f = D.endpoints.getOverviewTasksByFolders.select(
754
762
  p
755
- )(o)?.data || [], y = We(e, n, i, r, a), h = Lt(y), g = d ? s : s.filter((A) => !h.has(A));
763
+ )(o)?.data || [], y = We(e, n, i, r, a), h = Pt(y), g = d ? s : s.filter((A) => !h.has(A));
756
764
  if (g.length === 0)
757
765
  return { data: f };
758
766
  const m = [], b = 100, v = 20, T = 10, k = 1e3, I = b * v;
@@ -790,7 +798,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
790
798
  S = N?.hasNextPage || !1, j = N?.endCursor || void 0;
791
799
  }
792
800
  }
793
- Rn(y, g);
801
+ Cn(y, g);
794
802
  const w = [...f, ...m], E = new Map(w.map((A) => [A.id, A]));
795
803
  return {
796
804
  data: Array.from(E.values())
@@ -812,7 +820,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
812
820
  let l;
813
821
  const y = $(
814
822
  async (m, b) => {
815
- const v = Lt(
823
+ const v = Pt(
816
824
  We(e, n, i, r, a)
817
825
  ), T = new Set(
818
826
  p().data?.map((E) => E.id) || []
@@ -903,7 +911,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
903
911
  async queryFn({ projectName: e, folderSearchRequest: s }, { dispatch: n }) {
904
912
  try {
905
913
  const i = await n(
906
- _n.endpoints.searchFolders.initiate({
914
+ Gn.endpoints.searchFolders.initiate({
907
915
  projectName: e,
908
916
  folderSearchRequest: s
909
917
  })
@@ -1167,30 +1175,30 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1167
1175
  })
1168
1176
  })
1169
1177
  }), {
1170
- useGetOverviewTasksByFoldersQuery: ua,
1171
- useGetSearchFoldersQuery: la,
1172
- useGetTasksListQuery: pa,
1173
- useGetTasksListInfiniteInfiniteQuery: fa,
1174
- useLazyGetTasksByParentQuery: ya,
1175
- useGetGroupedTasksListQuery: ga,
1176
- useGetFolderColumnStatsQuery: ha,
1177
- useGetTaskColumnStatsQuery: ma
1178
- } = D, ne = 10, Pt = (t) => {
1178
+ useGetOverviewTasksByFoldersQuery: ya,
1179
+ useGetSearchFoldersQuery: ga,
1180
+ useGetTasksListQuery: ha,
1181
+ useGetTasksListInfiniteInfiniteQuery: ma,
1182
+ useLazyGetTasksByParentQuery: va,
1183
+ useGetGroupedTasksListQuery: ba,
1184
+ useGetFolderColumnStatsQuery: Ia,
1185
+ useGetTaskColumnStatsQuery: Ta
1186
+ } = D, ne = 10, jt = (t) => {
1179
1187
  if (!t) return {};
1180
1188
  try {
1181
1189
  return typeof t != "string" ? t ?? {} : JSON.parse(t);
1182
1190
  } catch (e) {
1183
1191
  return console.warn("Failed to parse entity list data field:", e, t), {};
1184
1192
  }
1185
- }, jt = 1e4, ze = 100, je = R.enhanceEndpoints({
1193
+ }, Ft = 1e4, ze = 100, je = R.enhanceEndpoints({
1186
1194
  endpoints: {
1187
1195
  GetLists: {
1188
1196
  transformResponse: (t) => ({
1189
1197
  // @ts-expect-error - entityType is string
1190
1198
  lists: t.project.entityLists.edges.map((e) => ({
1191
1199
  ...e.node,
1192
- data: Pt(e.node.data),
1193
- attrib: Pt(e.node.allAttrib)
1200
+ data: jt(e.node.data),
1201
+ attrib: jt(e.node.allAttrib)
1194
1202
  })),
1195
1203
  pageInfo: t.project.entityLists.pageInfo
1196
1204
  }),
@@ -1255,7 +1263,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1255
1263
  try {
1256
1264
  const { cursor: i } = s, r = {
1257
1265
  ...e,
1258
- first: jt,
1266
+ first: Ft,
1259
1267
  after: i || void 0
1260
1268
  }, a = await n.dispatch(
1261
1269
  je.endpoints.GetLists.initiate(r, { forceRefetch: !0 })
@@ -1461,7 +1469,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1461
1469
  try {
1462
1470
  const { cursor: i } = s, r = {
1463
1471
  ...e,
1464
- first: jt,
1472
+ first: Ft,
1465
1473
  after: i || void 0
1466
1474
  }, a = await n.dispatch(
1467
1475
  je.endpoints.GetListsItemsForReviewSession.initiate(r, {
@@ -1493,7 +1501,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1493
1501
  keepUnusedDataFor: ne
1494
1502
  })
1495
1503
  })
1496
- }), Gn = le.enhanceEndpoints({
1504
+ }), Nn = le.enhanceEndpoints({
1497
1505
  endpoints: {
1498
1506
  getEntityList: {
1499
1507
  providesTags: (t, e, { entityListId: s, projectName: n }) => [
@@ -1511,21 +1519,21 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1511
1519
  }
1512
1520
  }
1513
1521
  }), {
1514
- useGetListsInfiniteInfiniteQuery: va,
1515
- useGetListItemsInfiniteInfiniteQuery: ba,
1516
- useGetListsItemsForReviewSessionInfiniteQuery: Ia,
1517
- useLazyGetListsItemsForReviewSessionQuery: Ta,
1518
- useGetListItemsQuery: ka,
1519
- useLazyGetListItemsQuery: wa
1520
- } = U, { useGetEntityListQuery: Aa } = Gn, Ft = (t, e) => {
1522
+ useGetListsInfiniteInfiniteQuery: ka,
1523
+ useGetListItemsInfiniteInfiniteQuery: wa,
1524
+ useGetListsItemsForReviewSessionInfiniteQuery: Aa,
1525
+ useLazyGetListsItemsForReviewSessionQuery: Ea,
1526
+ useGetListItemsQuery: Sa,
1527
+ useLazyGetListItemsQuery: La
1528
+ } = U, { useGetEntityListQuery: Pa } = Nn, _t = (t, e) => {
1521
1529
  if (!e) return;
1522
1530
  const s = { ...t.listAttrib };
1523
1531
  for (const [n, i] of Object.entries(e))
1524
1532
  i == null ? delete s[n] : s[n] = i;
1525
1533
  t.listAttrib = s;
1526
- }, Cn = (t, e) => {
1534
+ }, Qn = (t, e) => {
1527
1535
  e && (t.entityAttrib = { ...t.entityAttrib, ...e });
1528
- }, Nn = le.enhanceEndpoints({
1536
+ }, Mn = le.enhanceEndpoints({
1529
1537
  endpoints: {
1530
1538
  // LIST MUTATIONS
1531
1539
  createEntityList: {
@@ -1609,7 +1617,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1609
1617
  ...y.data || {}
1610
1618
  }
1611
1619
  };
1612
- Ft(v, m), Object.assign(f.items[h], v), y.position !== void 0 && (l = !0);
1620
+ _t(v, m), Object.assign(f.items[h], v), y.position !== void 0 && (l = !0);
1613
1621
  }
1614
1622
  });
1615
1623
  if (l) {
@@ -1667,7 +1675,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1667
1675
  ...e.data
1668
1676
  }
1669
1677
  };
1670
- Ft(m, h), Object.assign(y, m);
1678
+ _t(m, h), Object.assign(y, m);
1671
1679
  break;
1672
1680
  }
1673
1681
  }
@@ -1704,7 +1712,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1704
1712
  ]
1705
1713
  }
1706
1714
  }
1707
- }), Qn = Nn.injectEndpoints({
1715
+ }), Vn = Mn.injectEndpoints({
1708
1716
  endpoints: (t) => ({
1709
1717
  createSessionFromList: t.mutation({
1710
1718
  query: (e) => ({
@@ -1717,18 +1725,18 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1717
1725
  })
1718
1726
  }), {
1719
1727
  // LIST MUTATIONS
1720
- useCreateEntityListMutation: Ea,
1721
- useUpdateEntityListMutation: Sa,
1722
- useDeleteEntityListMutation: La,
1723
- useDuplicateEntityListMutation: Pa,
1728
+ useCreateEntityListMutation: ja,
1729
+ useUpdateEntityListMutation: Fa,
1730
+ useDeleteEntityListMutation: _a,
1731
+ useDuplicateEntityListMutation: Ra,
1724
1732
  // LIST ITEM MUTATIONS
1725
- useUpdateEntityListItemsMutation: ja,
1726
- useUpdateEntityListItemMutation: Fa,
1727
- useCreateEntityListItemMutation: _a,
1728
- useDeleteEntityListItemMutation: Ra,
1733
+ useUpdateEntityListItemsMutation: Ga,
1734
+ useUpdateEntityListItemMutation: Ca,
1735
+ useCreateEntityListItemMutation: Na,
1736
+ useDeleteEntityListItemMutation: Qa,
1729
1737
  // REVIEW SESSION MUTATIONS
1730
- useCreateSessionFromListMutation: Ga
1731
- } = Qn, Mn = R.enhanceEndpoints({
1738
+ useCreateSessionFromListMutation: Ma
1739
+ } = Vn, On = R.enhanceEndpoints({
1732
1740
  endpoints: {
1733
1741
  GetUpdatedAndNewFolders: {
1734
1742
  transformResponse: (t) => t.project.folders.edges.map(({ node: e }) => ({
@@ -1743,7 +1751,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1743
1751
  }))
1744
1752
  }
1745
1753
  }
1746
- }), Vn = re, De = yt.enhanceEndpoints({
1754
+ }), Dn = re, De = gt.enhanceEndpoints({
1747
1755
  endpoints: {
1748
1756
  getFolderHierarchy: {
1749
1757
  providesTags: ["hierarchy"]
@@ -1798,10 +1806,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1798
1806
  });
1799
1807
  });
1800
1808
  const k = [...v.keys()];
1801
- if (!(k.length > Vn) && k.length) {
1809
+ if (!(k.length > Dn) && k.length) {
1802
1810
  await K();
1803
1811
  const I = await r(
1804
- Mn.endpoints.GetUpdatedAndNewFolders.initiate({
1812
+ On.endpoints.GetUpdatedAndNewFolders.initiate({
1805
1813
  projectName: a,
1806
1814
  folderIds: k,
1807
1815
  first: k.length
@@ -1852,7 +1860,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1852
1860
  }
1853
1861
  }
1854
1862
  }
1855
- }), { useGetFolderHierarchyQuery: Ca, useGetFolderListQuery: Na } = De, On = R.enhanceEndpoints({
1863
+ }), { useGetFolderHierarchyQuery: Va, useGetFolderListQuery: Oa } = De, $n = R.enhanceEndpoints({
1856
1864
  endpoints: {
1857
1865
  GetFolderDeleteInfo: {
1858
1866
  transformResponse: (t) => (t?.project?.folders?.edges || []).map((s) => ({
@@ -1870,7 +1878,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
1870
1878
  ] : [{ type: "folder", id: "DELETE_INFO" }]
1871
1879
  }
1872
1880
  }
1873
- }), { useGetFolderDeleteInfoQuery: Qa, useLazyGetFolderDeleteInfoQuery: Ma } = On, Dn = ["task", "version", "folder", "representation"], Fe = ({
1881
+ }), { useGetFolderDeleteInfoQuery: Da, useLazyGetFolderDeleteInfoQuery: $a } = $n, xn = ["task", "version", "folder", "representation"], Fe = ({
1874
1882
  entity: t,
1875
1883
  entityType: e,
1876
1884
  projectName: s
@@ -2052,7 +2060,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
2052
2060
  }
2053
2061
  }
2054
2062
  }
2055
- }), _t = (t) => {
2063
+ }), Rt = (t) => {
2056
2064
  switch (t) {
2057
2065
  case "task":
2058
2066
  return "GetDetailsPanelTask";
@@ -2067,11 +2075,11 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
2067
2075
  endpoints: (t) => ({
2068
2076
  getEntitiesDetailsPanel: t.query({
2069
2077
  async queryFn({ entities: e = [], entityType: s }, { dispatch: n }) {
2070
- if (!Dn.includes(s))
2078
+ if (!xn.includes(s))
2071
2079
  return { error: P("Entity type not supported", 400) };
2072
2080
  try {
2073
2081
  const i = e.map((c) => n(
2074
- Ke.endpoints[_t(s)].initiate(
2082
+ Ke.endpoints[Rt(s)].initiate(
2075
2083
  {
2076
2084
  projectName: c.projectName,
2077
2085
  entityId: c.id
@@ -2126,7 +2134,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
2126
2134
  m.map(async (v) => {
2127
2135
  try {
2128
2136
  const T = await r(
2129
- Ke.endpoints[_t(e)].initiate(
2137
+ Ke.endpoints[Rt(e)].initiate(
2130
2138
  {
2131
2139
  projectName: v.projectName,
2132
2140
  entityId: v.id
@@ -2193,7 +2201,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
2193
2201
  ]
2194
2202
  })
2195
2203
  })
2196
- }), { useGetEntitiesDetailsPanelQuery: Va, useLazyGetEntitiesDetailsPanelQuery: Oa } = ue, $n = `
2204
+ }), { useGetEntitiesDetailsPanelQuery: xa, useLazyGetEntitiesDetailsPanelQuery: Ua } = ue, Un = `
2197
2205
  fragment taskTileFragment on TaskNode {
2198
2206
  id
2199
2207
  name
@@ -2210,7 +2218,7 @@ fragment taskTileFragment on TaskNode {
2210
2218
  path
2211
2219
  }
2212
2220
  }
2213
- `, xn = `
2221
+ `, Bn = `
2214
2222
  fragment versionTileFragment on VersionNode {
2215
2223
  id
2216
2224
  name: product {
@@ -2234,7 +2242,7 @@ fragment versionTileFragment on VersionNode {
2234
2242
  }
2235
2243
  version
2236
2244
  }
2237
- `, Un = `
2245
+ `, qn = `
2238
2246
  fragment productTileFragment on ProductNode {
2239
2247
  id
2240
2248
  name
@@ -2250,7 +2258,7 @@ fragment productTileFragment on ProductNode {
2250
2258
  path
2251
2259
  }
2252
2260
  }
2253
- `, Bn = `
2261
+ `, Hn = `
2254
2262
  fragment folderTileFragment on FolderNode {
2255
2263
  id
2256
2264
  name
@@ -2263,7 +2271,7 @@ fragment folderTileFragment on FolderNode {
2263
2271
  path: parent {
2264
2272
  path
2265
2273
  }
2266
- }`, qn = (t) => `
2274
+ }`, Wn = (t) => `
2267
2275
  query EventTile($projectName: String!, $id: String!) {
2268
2276
  project(name: $projectName) {
2269
2277
  ${t}(id: $id) {
@@ -2274,7 +2282,7 @@ fragment folderTileFragment on FolderNode {
2274
2282
  }
2275
2283
  }
2276
2284
  }
2277
- `, Hn = (t) => {
2285
+ `, zn = (t) => {
2278
2286
  let s = `
2279
2287
  query EntityTiles($projectName: String!) {
2280
2288
  project(name: $projectName) {
@@ -2293,23 +2301,23 @@ fragment folderTileFragment on FolderNode {
2293
2301
  }
2294
2302
  `;
2295
2303
  const n = {
2296
- folder: Bn,
2297
- product: Un,
2298
- version: xn,
2299
- task: $n
2304
+ folder: Hn,
2305
+ product: qn,
2306
+ version: Bn,
2307
+ task: Un
2300
2308
  };
2301
2309
  for (const i in t)
2302
2310
  s += n[i];
2303
2311
  return s;
2304
2312
  };
2305
- function fs(t) {
2313
+ function ys(t) {
2306
2314
  if (typeof t != "object" || t === null)
2307
2315
  return t;
2308
2316
  let e = Object.keys(t);
2309
2317
  if (e.length > 0)
2310
- return fs(t[e[0]]);
2318
+ return ys(t[e[0]]);
2311
2319
  }
2312
- const Wn = (t, e) => {
2320
+ const Kn = (t, e) => {
2313
2321
  if (Array.isArray(e)) {
2314
2322
  const n = {};
2315
2323
  for (const i of e)
@@ -2324,18 +2332,18 @@ const Wn = (t, e) => {
2324
2332
  }
2325
2333
  for (const n of s) {
2326
2334
  for (const i in n)
2327
- n[i] && (Array.isArray(n[i]) ? n[i] = n[i][0] : typeof n[i] == "object" && (n[i] = fs(Object.values(n[i])[0])), n.type === "version" && i === "version" && (n[i] = "v" + n[i].toString().padStart(3, "0")));
2335
+ n[i] && (Array.isArray(n[i]) ? n[i] = n[i][0] : typeof n[i] == "object" && (n[i] = ys(Object.values(n[i])[0])), n.type === "version" && i === "version" && (n[i] = "v" + n[i].toString().padStart(3, "0")));
2328
2336
  n.thumbnailEntityType = n.type, n.type === "product" && (n.thumbnailEntityId = n.latestVersion.thumbnailEntityId, n.thumbnailId = n.latestVersion.thumbnailId, n.thumbnailEntityType = "version");
2329
2337
  }
2330
2338
  return s;
2331
- }, zn = R.injectEndpoints({
2339
+ }, Jn = R.injectEndpoints({
2332
2340
  endpoints: (t) => ({
2333
2341
  getEventTile: t.query({
2334
2342
  query: ({ projectName: e, id: s, type: n }) => ({
2335
2343
  url: "/graphql",
2336
2344
  method: "POST",
2337
2345
  body: {
2338
- query: qn(n),
2346
+ query: Wn(n),
2339
2347
  variables: { projectName: e, id: s }
2340
2348
  }
2341
2349
  }),
@@ -2346,11 +2354,11 @@ const Wn = (t, e) => {
2346
2354
  url: "/graphql",
2347
2355
  method: "POST",
2348
2356
  body: {
2349
- query: Hn(s),
2357
+ query: zn(s),
2350
2358
  variables: { projectName: e }
2351
2359
  }
2352
2360
  }),
2353
- transformResponse: (e, s, { entities: n }) => Wn(e.data?.project, n)
2361
+ transformResponse: (e, s, { entities: n }) => Kn(e.data?.project, n)
2354
2362
  }),
2355
2363
  getEntity: t.query({
2356
2364
  query: ({ projectName: e, entityType: s, entityId: n }) => ({
@@ -2360,17 +2368,17 @@ const Wn = (t, e) => {
2360
2368
  })
2361
2369
  }),
2362
2370
  overrideExisting: !0
2363
- }), be = zn.enhanceEndpoints({
2371
+ }), be = Jn.enhanceEndpoints({
2364
2372
  endpoints: {
2365
2373
  GetProductVersions: {}
2366
2374
  }
2367
2375
  }), {
2368
- useGetEventTileQuery: Da,
2369
- useGetEntityTilesQuery: $a,
2370
- useGetEntityQuery: xa,
2371
- useLazyGetEntityQuery: Ua,
2372
- useGetProductVersionsQuery: Ba,
2373
- useGetSearchedEntitiesInfiniteQuery: qa
2376
+ useGetEventTileQuery: Ba,
2377
+ useGetEntityTilesQuery: qa,
2378
+ useGetEntityQuery: Ha,
2379
+ useLazyGetEntityQuery: Wa,
2380
+ useGetProductVersionsQuery: za,
2381
+ useGetSearchedEntitiesInfiniteQuery: Ka
2374
2382
  } = be, B = he.enhanceEndpoints({
2375
2383
  endpoints: {
2376
2384
  getProject: {
@@ -2388,7 +2396,7 @@ const Wn = (t, e) => {
2388
2396
  providesTags: (t, e, { projectName: s }) => [{ type: "project", id: s }]
2389
2397
  }
2390
2398
  }
2391
- }), { useGetProjectQuery: Ha, useListProjectsQuery: Wa, useGetProjectAnatomyQuery: za } = B, Rt = 2e3, Gt = R.enhanceEndpoints({
2399
+ }), { useGetProjectQuery: Ja, useListProjectsQuery: Ya, useGetProjectAnatomyQuery: Za } = B, Gt = 2e3, Ct = R.enhanceEndpoints({
2392
2400
  endpoints: {
2393
2401
  GetProjects: {
2394
2402
  transformResponse: (t) => ({
@@ -2400,17 +2408,17 @@ const Wn = (t, e) => {
2400
2408
  })
2401
2409
  }
2402
2410
  }
2403
- }), ht = Gt.injectEndpoints({
2411
+ }), mt = Ct.injectEndpoints({
2404
2412
  endpoints: (t) => ({
2405
2413
  getProjectsInfinite: t.infiniteQuery({
2406
2414
  infiniteQueryOptions: {
2407
- initialPageParam: { cursor: "", first: Rt },
2415
+ initialPageParam: { cursor: "", first: Gt },
2408
2416
  getNextPageParam: (e) => {
2409
2417
  const { pageInfo: s } = e;
2410
2418
  if (!(!s.hasNextPage || !s.endCursor))
2411
2419
  return {
2412
2420
  cursor: s.endCursor,
2413
- first: Rt
2421
+ first: Gt
2414
2422
  };
2415
2423
  }
2416
2424
  },
@@ -2421,7 +2429,7 @@ const Wn = (t, e) => {
2421
2429
  after: s?.cursor || void 0,
2422
2430
  first: s?.first
2423
2431
  }, r = await n.dispatch(
2424
- Gt.endpoints.GetProjects.initiate(i, { forceRefetch: !0 })
2432
+ Ct.endpoints.GetProjects.initiate(i, { forceRefetch: !0 })
2425
2433
  );
2426
2434
  if (r.error) throw r.error;
2427
2435
  return {
@@ -2449,7 +2457,7 @@ const Wn = (t, e) => {
2449
2457
  })
2450
2458
  }),
2451
2459
  overrideExisting: !0
2452
- }), { useGetProjectsInfiniteInfiniteQuery: Ka } = ht, Je = (t, e) => {
2460
+ }), { useGetProjectsInfiniteInfiniteQuery: Xa } = mt, Je = (t, e) => {
2453
2461
  for (const [s, n] of Object.entries(e)) {
2454
2462
  if (s === "attrib" && n && typeof n == "object" && !Array.isArray(n)) {
2455
2463
  t.attrib = {
@@ -2460,7 +2468,7 @@ const Wn = (t, e) => {
2460
2468
  }
2461
2469
  t[s] = n;
2462
2470
  }
2463
- }, Kn = B.enhanceEndpoints({
2471
+ }, Yn = B.enhanceEndpoints({
2464
2472
  endpoints: {
2465
2473
  deployProject: {
2466
2474
  invalidatesTags: () => [
@@ -2510,7 +2518,7 @@ const Wn = (t, e) => {
2510
2518
  })
2511
2519
  ),
2512
2520
  s(
2513
- ht.util.updateQueryData("getProjectsInfinite", {}, (r) => {
2521
+ mt.util.updateQueryData("getProjectsInfinite", {}, (r) => {
2514
2522
  for (const a of r.pages) {
2515
2523
  const c = a.projects.find((u) => u.name === t);
2516
2524
  c && Je(c, e);
@@ -2533,21 +2541,21 @@ const Wn = (t, e) => {
2533
2541
  }
2534
2542
  }
2535
2543
  }), {
2536
- useDeployProjectMutation: Ja,
2537
- useDeleteProjectMutation: Ya,
2538
- useSetProjectAnatomyMutation: Za,
2539
- useUpdateProjectMutation: Xa,
2540
- useSetProjectBundleMutation: eo
2541
- } = Kn, Jn = (t) => {
2544
+ useDeployProjectMutation: eo,
2545
+ useDeleteProjectMutation: to,
2546
+ useSetProjectAnatomyMutation: so,
2547
+ useUpdateProjectMutation: no,
2548
+ useSetProjectBundleMutation: io
2549
+ } = Yn, Zn = (t) => {
2542
2550
  try {
2543
2551
  return JSON.parse(t);
2544
2552
  } catch {
2545
2553
  return {};
2546
2554
  }
2547
- }, Yn = (t) => Object.keys(t), Ct = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
2555
+ }, Xn = (t) => Object.keys(t), Nt = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
2548
2556
  const n = e.label || e.name, i = s.label || s.name;
2549
2557
  return n.localeCompare(i);
2550
- }), Nt = (t, e, s) => t?.length ? [
2558
+ }), Qt = (t, e, s) => t?.length ? [
2551
2559
  { type: "kanBanTask", id: "LIST" },
2552
2560
  ...t.flatMap(({ id: n, projectName: i, assignees: r = [] }) => [
2553
2561
  { type: "task", id: n },
@@ -2559,14 +2567,14 @@ const Wn = (t, e) => {
2559
2567
  })),
2560
2568
  { type: "kanban", id: JSON.stringify(s) }
2561
2569
  ])
2562
- ] : [{ type: "kanBanTask", id: "LIST" }], ys = async ({
2570
+ ] : [{ type: "kanBanTask", id: "LIST" }], gs = async ({
2563
2571
  projects: t = [],
2564
2572
  taskIds: e = []
2565
2573
  }, s) => {
2566
2574
  try {
2567
2575
  t = t ?? [], e = e ?? [];
2568
2576
  const n = await s(
2569
- mt.endpoints.GetKanbanTasks.initiate(
2577
+ vt.endpoints.GetKanbanTasks.initiate(
2570
2578
  { projects: t, taskIds: e },
2571
2579
  { forceRefetch: !0 }
2572
2580
  )
@@ -2577,11 +2585,11 @@ const Wn = (t, e) => {
2577
2585
  } catch (n) {
2578
2586
  return console.error(n), [];
2579
2587
  }
2580
- }, mt = R.enhanceEndpoints({
2588
+ }, vt = R.enhanceEndpoints({
2581
2589
  endpoints: {
2582
2590
  GetKanban: {
2583
- transformResponse: Ct,
2584
- providesTags: Nt,
2591
+ transformResponse: Nt,
2592
+ providesTags: Qt,
2585
2593
  async onCacheEntryAdded(t = {}, { updateCachedData: e, cacheDataLoaded: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) {
2586
2594
  let a, c;
2587
2595
  const d = $(
@@ -2625,7 +2633,7 @@ const Wn = (t, e) => {
2625
2633
  const b = Array.from(g.values());
2626
2634
  if (!b.length || b.length > re) return;
2627
2635
  await K();
2628
- const v = await ys(
2636
+ const v = await gs(
2629
2637
  {
2630
2638
  projects: [...new Set(b.map(({ project: I }) => I))],
2631
2639
  taskIds: [...new Set(b.map(({ taskId: I }) => I))]
@@ -2691,14 +2699,14 @@ const Wn = (t, e) => {
2691
2699
  // same query as GetKanban but for specific tasks
2692
2700
  // used mainly for patching tasks into the kanban cache
2693
2701
  GetKanbanTasks: {
2694
- transformResponse: Ct,
2695
- providesTags: Nt
2702
+ transformResponse: Nt,
2703
+ providesTags: Qt
2696
2704
  },
2697
2705
  // get all users on all selected projects
2698
2706
  GetKanbanProjectUsers: {
2699
2707
  transformResponse: (t, e, { projects: s } = {}) => t.users.edges.map(({ node: n }) => {
2700
- const i = Jn(n.accessGroups);
2701
- let a = !n.isManager && !n.isAdmin ? Yn(i) : s;
2708
+ const i = Zn(n.accessGroups);
2709
+ let a = !n.isManager && !n.isAdmin ? Xn(i) : s;
2702
2710
  (typeof a == "string" || !a) && (a = []);
2703
2711
  const c = `/api/users/${n.name}/avatar`;
2704
2712
  return {
@@ -2715,7 +2723,7 @@ const Wn = (t, e) => {
2715
2723
  ] : [{ type: "user", id: "LIST" }]
2716
2724
  }
2717
2725
  }
2718
- }), { useGetKanbanQuery: to, useGetKanbanProjectUsersQuery: so } = mt, ie = mt.injectEndpoints({
2726
+ }), { useGetKanbanQuery: ro, useGetKanbanProjectUsersQuery: ao } = vt, ie = vt.injectEndpoints({
2719
2727
  endpoints: (t) => ({
2720
2728
  getProjectsInfo: t.query({
2721
2729
  async queryFn({ projects: e = [], anatomy: s = !0 }, { dispatch: n }) {
@@ -2743,7 +2751,7 @@ const Wn = (t, e) => {
2743
2751
  providesTags: (e, s, { projects: n }) => n.map((i) => ({ type: "project", id: i }))
2744
2752
  })
2745
2753
  })
2746
- }), { useGetProjectsInfoQuery: no } = ie, Zn = (t, e) => {
2754
+ }), { useGetProjectsInfoQuery: oo } = ie, ei = (t, e) => {
2747
2755
  const s = {
2748
2756
  name: t.name,
2749
2757
  attrib: t.attrib,
@@ -2790,11 +2798,11 @@ const Wn = (t, e) => {
2790
2798
  ...s
2791
2799
  };
2792
2800
  }
2793
- }, gs = (t = [], e) => {
2801
+ }, hs = (t = [], e) => {
2794
2802
  const s = t.find((c) => c.entityId === e.id), n = s?.data;
2795
2803
  if (!n || s.entityType === "product" || s.entityType === "workfile")
2796
2804
  return console.warn("No operation data found or entity type not supported");
2797
- const i = Zn(n, s.entityType);
2805
+ const i = ei(n, s.entityType);
2798
2806
  if (s.entityType === "folder" && n.name && e.path) {
2799
2807
  const c = e.path.split("/");
2800
2808
  c[c.length - 1] = n.name, i.path = c.join("/");
@@ -2826,14 +2834,14 @@ const Wn = (t, e) => {
2826
2834
  }
2827
2835
  };
2828
2836
  Object.assign(e, a);
2829
- }, hs = (t, {
2837
+ }, ms = (t, {
2830
2838
  state: e,
2831
2839
  dispatch: s
2832
2840
  }, n) => {
2833
2841
  const i = t.map((a) => ({
2834
2842
  type: "entities",
2835
2843
  id: a.entityId
2836
- })), r = Rs.util.selectInvalidatedBy(e, i);
2844
+ })), r = Gs.util.selectInvalidatedBy(e, i);
2837
2845
  for (const a of r)
2838
2846
  if (a.endpointName === "getEntitiesDetailsPanel") {
2839
2847
  const c = s(
@@ -2842,7 +2850,7 @@ const Wn = (t, e) => {
2842
2850
  a.originalArgs,
2843
2851
  (u) => {
2844
2852
  for (const d of u)
2845
- gs(t, d);
2853
+ hs(t, d);
2846
2854
  }
2847
2855
  )
2848
2856
  );
@@ -2865,7 +2873,7 @@ const Wn = (t, e) => {
2865
2873
  }
2866
2874
  )
2867
2875
  ), c];
2868
- }, Xn = ({
2876
+ }, ti = ({
2869
2877
  operations: t,
2870
2878
  state: e,
2871
2879
  dispatch: s,
@@ -2908,7 +2916,7 @@ const Wn = (t, e) => {
2908
2916
  } catch (a) {
2909
2917
  return console.error(a), s(R.util.invalidateTags(i)), [];
2910
2918
  }
2911
- }, ms = be.injectEndpoints({
2919
+ }, vs = be.injectEndpoints({
2912
2920
  endpoints: (t) => ({
2913
2921
  updateEntity: t.mutation({
2914
2922
  query: ({ projectName: e, entityId: s, data: n, entityType: i }) => ({
@@ -2931,7 +2939,7 @@ const Wn = (t, e) => {
2931
2939
  { newAssignees: g, taskId: s, data: n },
2932
2940
  { dispatch: a }
2933
2941
  );
2934
- j && o.push(S), j || ys({ projects: [e], taskIds: [s] }, a).then(
2942
+ j && o.push(S), j || gs({ projects: [e], taskIds: [s] }, a).then(
2935
2943
  // use .then so that the rest of the code can run
2936
2944
  (_) => {
2937
2945
  let C = _.find((W) => W.id === s);
@@ -2989,11 +2997,11 @@ const Wn = (t, e) => {
2989
2997
  }));
2990
2998
  p.push(...L);
2991
2999
  }
2992
- hs([{ entityId: s, data: n, entityType: r }], { state: d, dispatch: a }, o);
3000
+ ms([{ entityId: s, data: n, entityType: r }], { state: d, dispatch: a }, o);
2993
3001
  try {
2994
3002
  await c, p.length && a(ie.util.invalidateTags(p));
2995
3003
  } catch (l) {
2996
- cs.error(Gs(l) || "Failed to update task"), o.forEach((f) => f?.undo());
3004
+ ds.error(Cs(l) || "Failed to update task"), o.forEach((f) => f?.undo());
2997
3005
  }
2998
3006
  }
2999
3007
  }),
@@ -3003,7 +3011,7 @@ const Wn = (t, e) => {
3003
3011
  const r = i(), a = [];
3004
3012
  for (const { projectName: l, data: f, id: y, currentAssignees: h = [] } of e) {
3005
3013
  const g = n(
3006
- ms.endpoints.updateEntity.initiate({
3014
+ vs.endpoints.updateEntity.initiate({
3007
3015
  projectName: l,
3008
3016
  entityId: y,
3009
3017
  data: f,
@@ -3014,7 +3022,7 @@ const Wn = (t, e) => {
3014
3022
  a.push(g);
3015
3023
  }
3016
3024
  let c = [];
3017
- (s === "task" || s === "folder") && (c = Xn({ operations: e, state: r, dispatch: n, entityType: s }));
3025
+ (s === "task" || s === "folder") && (c = ti({ operations: e, state: r, dispatch: n, entityType: s }));
3018
3026
  const u = [], d = e.map((l) => ({ ...l, entityId: l.id }));
3019
3027
  return (s === "task" || s === "folder") && (s === "task" && Se(d, { state: r, dispatch: n }, u), s === "folder" && (xe(d, { state: r, dispatch: n }, u), console.log("invalidate overview folders"), n(be.util.invalidateTags([{ type: "folder", id: "LIST" }])), n(
3020
3028
  be.util.invalidateTags(
@@ -3040,7 +3048,7 @@ const Wn = (t, e) => {
3040
3048
  })
3041
3049
  }),
3042
3050
  overrideExisting: !0
3043
- }), { useUpdateEntitiesMutation: io, useUpdateEntityMutation: ro } = ms, Qt = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], ei = async ({
3051
+ }), { useUpdateEntitiesMutation: co, useUpdateEntityMutation: uo } = vs, Mt = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], si = async ({
3044
3052
  dispatch: t,
3045
3053
  projectName: e,
3046
3054
  updatedTaskIds: s,
@@ -3078,7 +3086,7 @@ const Wn = (t, e) => {
3078
3086
  } catch (i) {
3079
3087
  return console.error("Background entity refetch failed:", i), null;
3080
3088
  }
3081
- }, ti = async ({
3089
+ }, ni = async ({
3082
3090
  dispatch: t,
3083
3091
  projectName: e,
3084
3092
  updatedTaskIds: s,
@@ -3117,7 +3125,7 @@ const Wn = (t, e) => {
3117
3125
  } catch (i) {
3118
3126
  return console.error("Background overview tasks refetch failed:", i), null;
3119
3127
  }
3120
- }, Mt = (t) => [
3128
+ }, Vt = (t) => [
3121
3129
  { type: "version", id: "LIST" },
3122
3130
  ...t.map((e) => ({ type: "version", id: e.entityId }))
3123
3131
  ], _e = (t, e) => {
@@ -3128,26 +3136,26 @@ const Wn = (t, e) => {
3128
3136
  ...s.attrib,
3129
3137
  ...e.attrib
3130
3138
  }), s;
3131
- }, vs = (t, e) => {
3139
+ }, bs = (t, e) => {
3132
3140
  e.data && (Object.entries(e.data).forEach(([s, n]) => {
3133
3141
  s !== "attrib" && (t[s] = n);
3134
3142
  }), e.data.attrib && (t.attrib = { ...t.attrib, ...e.data.attrib }));
3135
- }, Vt = (t, e) => {
3143
+ }, Ot = (t, e) => {
3136
3144
  t.forEach((s) => {
3137
3145
  [s.task, s.product, s.product?.folder].forEach((i) => {
3138
3146
  if (!i) return;
3139
3147
  const r = e.get(i.id);
3140
- r && vs(i, r);
3148
+ r && bs(i, r);
3141
3149
  });
3142
3150
  });
3143
- }, Ot = (t, e) => {
3151
+ }, Dt = (t, e) => {
3144
3152
  t.forEach((s) => {
3145
3153
  const n = s.folder;
3146
3154
  if (!n) return;
3147
3155
  const i = e.get(n.id);
3148
- i && vs(n, i);
3156
+ i && bs(n, i);
3149
3157
  });
3150
- }, si = (t, {
3158
+ }, ii = (t, {
3151
3159
  state: e,
3152
3160
  dispatch: s
3153
3161
  }, n) => {
@@ -3169,7 +3177,7 @@ const Wn = (t, e) => {
3169
3177
  a.originalArgs,
3170
3178
  (u) => {
3171
3179
  for (const d of u.pages)
3172
- Vt(d.versions, i);
3180
+ Ot(d.versions, i);
3173
3181
  }
3174
3182
  )
3175
3183
  );
@@ -3181,7 +3189,7 @@ const Wn = (t, e) => {
3181
3189
  a.originalArgs,
3182
3190
  (u) => {
3183
3191
  for (const d of u.pages)
3184
- Ot(d.products, i);
3192
+ Dt(d.products, i);
3185
3193
  }
3186
3194
  )
3187
3195
  );
@@ -3191,7 +3199,7 @@ const Wn = (t, e) => {
3191
3199
  Q.util.updateQueryData(
3192
3200
  a.endpointName,
3193
3201
  a.originalArgs,
3194
- (u) => Vt(u.versions, i)
3202
+ (u) => Ot(u.versions, i)
3195
3203
  )
3196
3204
  );
3197
3205
  n?.push(c);
@@ -3200,17 +3208,17 @@ const Wn = (t, e) => {
3200
3208
  Q.util.updateQueryData(
3201
3209
  a.endpointName,
3202
3210
  a.originalArgs,
3203
- (u) => Ot(u.products, i)
3211
+ (u) => Dt(u.products, i)
3204
3212
  )
3205
3213
  );
3206
3214
  n?.push(c);
3207
3215
  }
3208
- }, ni = (t, {
3216
+ }, ri = (t, {
3209
3217
  state: e,
3210
3218
  dispatch: s
3211
3219
  }, n) => {
3212
3220
  if (!t.length) return;
3213
- const i = Mt(t), r = Q.util.selectInvalidatedBy(e, i), a = new Set(t.filter((u) => u.type === "delete").map((u) => u.entityId));
3221
+ const i = Vt(t), r = Q.util.selectInvalidatedBy(e, i), a = new Set(t.filter((u) => u.type === "delete").map((u) => u.entityId));
3214
3222
  for (const u of r)
3215
3223
  if (u.endpointName === "getVersionsInfinite") {
3216
3224
  const d = s(
@@ -3297,11 +3305,11 @@ const Wn = (t, e) => {
3297
3305
  n?.push(d);
3298
3306
  }
3299
3307
  const c = t.filter((u) => u.type !== "delete");
3300
- c.length > 0 && s(Q.util.invalidateTags(Mt(c)));
3301
- }, Dt = (t) => [
3308
+ c.length > 0 && s(Q.util.invalidateTags(Vt(c)));
3309
+ }, $t = (t) => [
3302
3310
  { type: "product", id: "LIST" },
3303
3311
  ...t.map((e) => ({ type: "product", id: e.entityId }))
3304
- ], ii = (t, e) => {
3312
+ ], ai = (t, e) => {
3305
3313
  const s = { ...t };
3306
3314
  return Object.keys(e).forEach((n) => {
3307
3315
  n !== "attrib" && e[n] !== void 0 && (s[n] = e[n]);
@@ -3309,12 +3317,12 @@ const Wn = (t, e) => {
3309
3317
  ...s.attrib,
3310
3318
  ...e.attrib
3311
3319
  }), s;
3312
- }, ri = (t, {
3320
+ }, oi = (t, {
3313
3321
  state: e,
3314
3322
  dispatch: s
3315
3323
  }, n) => {
3316
3324
  if (!t.length) return;
3317
- const i = Dt(t), r = Q.util.selectInvalidatedBy(e, i), a = new Set(t.filter((d) => d.type === "delete").map((d) => d.entityId)), c = (d) => {
3325
+ const i = $t(t), r = Q.util.selectInvalidatedBy(e, i), a = new Set(t.filter((d) => d.type === "delete").map((d) => d.entityId)), c = (d) => {
3318
3326
  for (let o = d.length - 1; o >= 0; o--)
3319
3327
  a.has(d[o].product?.id) && d.splice(o, 1);
3320
3328
  };
@@ -3332,7 +3340,7 @@ const Wn = (t, e) => {
3332
3340
  const y = l.products[f], h = t.find(
3333
3341
  (g) => g.entityId === y.id && g.type !== "delete"
3334
3342
  );
3335
- h?.data && (l.products[f] = ii(y, h.data));
3343
+ h?.data && (l.products[f] = ai(y, h.data));
3336
3344
  }
3337
3345
  }
3338
3346
  }
@@ -3364,7 +3372,7 @@ const Wn = (t, e) => {
3364
3372
  n?.push(o);
3365
3373
  }
3366
3374
  const u = t.filter((d) => d.type !== "delete");
3367
- u.length > 0 && s(Q.util.invalidateTags(Dt(u)));
3375
+ u.length > 0 && s(Q.util.invalidateTags($t(u)));
3368
3376
  }, $e = (t, e) => {
3369
3377
  if (Object.keys(e).forEach((s) => {
3370
3378
  s === "attrib" || s === "links" || s === "deleteLinks" || (t[s] = e[s]);
@@ -3384,7 +3392,7 @@ const Wn = (t, e) => {
3384
3392
  t.links = t.links.filter((i) => i.id !== n);
3385
3393
  });
3386
3394
  }
3387
- }, ai = (t) => [
3395
+ }, ci = (t) => [
3388
3396
  { type: "overviewTask", id: "LIST" },
3389
3397
  ...t.map((e) => ({ type: "overviewTask", id: e.entityId })),
3390
3398
  // we also add the projectName so that tasks that do not exist in the cache can still invalidate
@@ -3392,21 +3400,21 @@ const Wn = (t, e) => {
3392
3400
  type: "overviewTask",
3393
3401
  id: e.data?.projectName
3394
3402
  }))
3395
- ], oi = (t) => [
3403
+ ], di = (t) => [
3396
3404
  ...t.map((e) => ({ type: "folder", id: e.entityId })),
3397
3405
  // we also add the projectName so that tasks that do not exist in the cache can still invalidate
3398
3406
  ...t.filter((e) => e.data?.projectName).map((e) => ({
3399
3407
  type: "folder",
3400
3408
  id: e.data?.projectName
3401
3409
  }))
3402
- ], ci = (t, e, s) => ({
3410
+ ], ui = (t, e, s) => ({
3403
3411
  entityId: t,
3404
3412
  entityType: e,
3405
3413
  type: "update",
3406
3414
  data: { deleteLinks: s }
3407
- }), ao = (t, e) => t.map(
3408
- (s) => ci(s.entityId, s.entityType, e)
3409
- ), oo = (t, {
3415
+ }), lo = (t, e) => t.map(
3416
+ (s) => ui(s.entityId, s.entityType, e)
3417
+ ), po = (t, {
3410
3418
  state: e,
3411
3419
  dispatch: s
3412
3420
  }, n) => {
@@ -3416,7 +3424,7 @@ const Wn = (t, e) => {
3416
3424
  state: e,
3417
3425
  dispatch: s
3418
3426
  }, n) => {
3419
- const i = ai(t), r = D.util.selectInvalidatedBy(e, i), a = new Set(
3427
+ const i = ci(t), r = D.util.selectInvalidatedBy(e, i), a = new Set(
3420
3428
  t.filter((u) => u.type === "delete" && u.entityId).map((u) => u.entityId)
3421
3429
  ), c = (u) => {
3422
3430
  for (let d = u.length - 1; d >= 0; d--)
@@ -3462,7 +3470,7 @@ const Wn = (t, e) => {
3462
3470
  );
3463
3471
  n?.push(d);
3464
3472
  }
3465
- }, Ze = /* @__PURE__ */ new Map(), $t = (t, e, s) => {
3473
+ }, Ze = /* @__PURE__ */ new Map(), xt = (t, e, s) => {
3466
3474
  const n = `${e}:${s.join()}`, i = Ze.get(n);
3467
3475
  i && clearTimeout(i), Ze.set(
3468
3476
  n,
@@ -3476,7 +3484,7 @@ const Wn = (t, e) => {
3476
3484
  state: e,
3477
3485
  dispatch: s
3478
3486
  }, n) => {
3479
- const i = De.util.selectInvalidatedBy(e, oi(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
3487
+ const i = De.util.selectInvalidatedBy(e, di(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
3480
3488
  t.filter((a) => a.type === "delete" && a.entityId).map((a) => a.entityId)
3481
3489
  );
3482
3490
  for (const a of i) {
@@ -3504,7 +3512,7 @@ const Wn = (t, e) => {
3504
3512
  );
3505
3513
  n?.push(c);
3506
3514
  }
3507
- }, di = (t, {
3515
+ }, li = (t, {
3508
3516
  state: e,
3509
3517
  dispatch: s
3510
3518
  }, n) => {
@@ -3524,7 +3532,7 @@ const Wn = (t, e) => {
3524
3532
  const l = p.items.find((f) => f.entityId === o.entityId);
3525
3533
  if (l) {
3526
3534
  const { attrib: f, ...y } = o.data;
3527
- $e(l, y), Cn(l, f);
3535
+ $e(l, y), Qn(l, f);
3528
3536
  }
3529
3537
  }
3530
3538
  if (a.size > 0)
@@ -3536,23 +3544,23 @@ const Wn = (t, e) => {
3536
3544
  );
3537
3545
  n?.push(u);
3538
3546
  }
3539
- }, xt = (t) => t.reduce(
3547
+ }, Ut = (t) => t.reduce(
3540
3548
  (e, s) => (e[s.type].push(s), e),
3541
3549
  {
3542
3550
  create: [],
3543
3551
  update: [],
3544
3552
  delete: []
3545
3553
  }
3546
- ), Ut = Cs.enhanceEndpoints({
3554
+ ), Bt = Ns.enhanceEndpoints({
3547
3555
  endpoints: {
3548
3556
  operations: {}
3549
3557
  }
3550
- }), ui = Ut.injectEndpoints({
3558
+ }), pi = Bt.injectEndpoints({
3551
3559
  endpoints: (t) => ({
3552
3560
  updateOverviewEntities: t.mutation({
3553
3561
  async queryFn(e, { dispatch: s }) {
3554
3562
  try {
3555
- const n = await s(Ut.endpoints.operations.initiate(e));
3563
+ const n = await s(Bt.endpoints.operations.initiate(e));
3556
3564
  if (n.error)
3557
3565
  return { error: P(n.error) };
3558
3566
  const i = n.data, r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
@@ -3590,23 +3598,23 @@ const Wn = (t, e) => {
3590
3598
  }
3591
3599
  ), d = a(), o = [];
3592
3600
  if (u.task?.length) {
3593
- const { delete: b, update: v } = xt(u.task), T = v.filter(
3601
+ const { delete: b, update: v } = Ut(u.task), T = v.filter(
3594
3602
  (k) => !s.some((I) => I.entityId === k.entityId)
3595
3603
  );
3596
3604
  Se([...T, ...b], { state: d, dispatch: i }, o);
3597
3605
  }
3598
3606
  if (u.folder?.length) {
3599
- const { delete: b, update: v } = xt(u.folder), T = v.filter(
3607
+ const { delete: b, update: v } = Ut(u.folder), T = v.filter(
3600
3608
  (k) => !s.some((I) => I.entityId === k.entityId)
3601
3609
  );
3602
3610
  xe([...T, ...b], { state: d, dispatch: i }, o);
3603
3611
  }
3604
3612
  const p = s.filter((b) => b.entityType === "task"), l = s.filter((b) => b.entityType === "folder");
3605
- p.length && Se(p, { state: d, dispatch: i }, o), l.length && xe(l, { state: d, dispatch: i }, o), si(
3613
+ p.length && Se(p, { state: d, dispatch: i }, o), l.length && xe(l, { state: d, dispatch: i }, o), ii(
3606
3614
  [...c, ...s],
3607
3615
  { state: d, dispatch: i },
3608
3616
  o
3609
- ), di([...c, ...s], { state: d, dispatch: i }, o), u.version?.length && ni(u.version, { state: d, dispatch: i }, o), u.product?.length && ri(u.product, { state: d, dispatch: i }, o);
3617
+ ), li([...c, ...s], { state: d, dispatch: i }, o), u.version?.length && ri(u.version, { state: d, dispatch: i }, o), u.product?.length && oi(u.product, { state: d, dispatch: i }, o);
3610
3618
  const f = c.map((b) => ({
3611
3619
  id: b.entityId,
3612
3620
  type: b.entityType
@@ -3628,7 +3636,7 @@ const Wn = (t, e) => {
3628
3636
  b.originalArgs,
3629
3637
  (T) => {
3630
3638
  for (const k of T)
3631
- gs(c, k);
3639
+ hs(c, k);
3632
3640
  }
3633
3641
  )
3634
3642
  );
@@ -3637,24 +3645,24 @@ const Wn = (t, e) => {
3637
3645
  try {
3638
3646
  await r;
3639
3647
  const b = u.task || [], v = u.folder || [], T = u.version || [], k = u.product || [];
3640
- if (n && ((b.length || v.length) && $t(i, n, [
3648
+ if (n && ((b.length || v.length) && xt(i, n, [
3641
3649
  "folderColumnStats",
3642
3650
  "taskColumnStats",
3643
3651
  "entityListItemsColumnStats"
3644
- ]), (T.length || k.length) && $t(i, n, [
3652
+ ]), (T.length || k.length) && xt(i, n, [
3645
3653
  "productColumnStats",
3646
3654
  "versionColumnStats",
3647
3655
  "entityListItemsColumnStats"
3648
3656
  ])), b.length === 0 && v.length === 0)
3649
3657
  return;
3650
- const I = Qt(b), w = Qt(v), E = a(), A = I.map((S) => ({ type: "overviewTask", id: S })), L = new Map(
3658
+ const I = Mt(b), w = Mt(v), E = a(), A = I.map((S) => ({ type: "overviewTask", id: S })), L = new Map(
3651
3659
  [d, E].flatMap(
3652
3660
  (S) => D.util.selectInvalidatedBy(S, A)
3653
3661
  ).filter((S) => S.endpointName === "getTasksListInfinite").map((S) => [S.queryCacheKey, S])
3654
3662
  );
3655
3663
  if (I.length > 0 && n) {
3656
3664
  for (const j of L.values())
3657
- await ei({
3665
+ await si({
3658
3666
  dispatch: i,
3659
3667
  projectName: n,
3660
3668
  updatedTaskIds: I,
@@ -3662,7 +3670,7 @@ const Wn = (t, e) => {
3662
3670
  });
3663
3671
  const S = D.util.selectCachedArgsForQuery(a(), "getOverviewTasksByFolders").filter((j) => j.projectName === n);
3664
3672
  for (const j of S)
3665
- await ti({
3673
+ await ni({
3666
3674
  dispatch: i,
3667
3675
  projectName: n,
3668
3676
  updatedTaskIds: I,
@@ -3701,24 +3709,24 @@ const Wn = (t, e) => {
3701
3709
  }
3702
3710
  })
3703
3711
  })
3704
- }), { useUpdateOverviewEntitiesMutation: co } = ui, ot = (t) => {
3712
+ }), { useUpdateOverviewEntitiesMutation: fo } = pi, ct = (t) => {
3705
3713
  if (t)
3706
3714
  return t.label;
3707
- }, Bt = {
3715
+ }, qt = {
3708
3716
  folder: "GetFoldersLinks",
3709
3717
  task: "GetTasksLinks",
3710
3718
  product: "GetProductsLinks",
3711
3719
  version: "GetVersionsLinks",
3712
3720
  representation: "GetRepresentationsLinks",
3713
3721
  workfile: "GetWorkfilesLinks"
3714
- }, qt = {
3722
+ }, Ht = {
3715
3723
  folder: "folders",
3716
3724
  task: "tasks",
3717
3725
  product: "products",
3718
3726
  version: "versions",
3719
3727
  representation: "representations",
3720
3728
  workfile: "workfiles"
3721
- }, pe = yt.injectEndpoints({
3729
+ }, pe = gt.injectEndpoints({
3722
3730
  endpoints: (t) => ({
3723
3731
  getEntityLinks: t.query({
3724
3732
  queryFn: async ({ projectName: e, entityIds: s, entityType: n }, { getState: i, dispatch: r, queryCacheKey: a, forced: c }) => {
@@ -3726,7 +3734,7 @@ const Wn = (t, e) => {
3726
3734
  const u = i(), d = JSON.stringify({ projectName: e, entityType: n }), p = u.restApi?.queries?.[a || `getEntityLinks(${d})`]?.data || [], l = new Set(p.map((b) => b.id)), f = s.filter((b) => !l?.has(b) || c);
3727
3735
  if (f.length === 0)
3728
3736
  return { data: p };
3729
- const y = Bt[n], h = qt[n];
3737
+ const y = qt[n], h = Ht[n];
3730
3738
  return { data: (await r(
3731
3739
  M.endpoints[y].initiate(
3732
3740
  { projectName: e, entityIds: f },
@@ -3750,7 +3758,7 @@ const Wn = (t, e) => {
3750
3758
  node: {
3751
3759
  id: T.node.id,
3752
3760
  name: T.node.name,
3753
- label: ot(T.node),
3761
+ label: ct(T.node),
3754
3762
  parents: T.node.parents || [],
3755
3763
  subType: "subType" in T.node ? T.node.subType : void 0
3756
3764
  },
@@ -3764,7 +3772,7 @@ const Wn = (t, e) => {
3764
3772
  };
3765
3773
  }) || [] };
3766
3774
  } catch (u) {
3767
- return console.error(`Error in getEntityLinks queryFn for ${n}:`, u), cs.error(`Error fetching ${n} links`), { error: P(u) };
3775
+ return console.error(`Error in getEntityLinks queryFn for ${n}:`, u), ds.error(`Error fetching ${n} links`), { error: P(u) };
3768
3776
  }
3769
3777
  },
3770
3778
  // 2. We should not create new caches when the entityIds argument changes.
@@ -3799,7 +3807,7 @@ const Wn = (t, e) => {
3799
3807
  let c;
3800
3808
  const u = $(
3801
3809
  async (d, o) => {
3802
- const p = Bt[s], l = qt[s];
3810
+ const p = qt[s], l = Ht[s];
3803
3811
  try {
3804
3812
  await K();
3805
3813
  const f = await a(
@@ -3816,7 +3824,7 @@ const Wn = (t, e) => {
3816
3824
  node: {
3817
3825
  id: g.node.id,
3818
3826
  name: g.node.name,
3819
- label: ot(g.node),
3827
+ label: ct(g.node),
3820
3828
  parents: g.node.parents || [],
3821
3829
  subType: "subType" in g.node ? g.node.subType : void 0
3822
3830
  },
@@ -3853,40 +3861,40 @@ const Wn = (t, e) => {
3853
3861
  }
3854
3862
  })
3855
3863
  })
3856
- }), { useGetEntityLinksQuery: uo } = pe, bs = "version", li = { type: bs, id: "LIST" }, Is = "product", vt = { type: Is, id: "LIST" }, Xe = {
3857
- version: { type: bs, list: li },
3858
- product: { type: Is, list: vt }
3864
+ }), { useGetEntityLinksQuery: yo } = pe, Is = "version", fi = { type: Is, id: "LIST" }, Ts = "product", bt = { type: Ts, id: "LIST" }, Xe = {
3865
+ version: { type: Is, list: fi },
3866
+ product: { type: Ts, list: bt }
3859
3867
  }, z = (t, e) => t ? [
3860
3868
  ...t.map(
3861
3869
  (s) => ({ type: Xe[e].type, id: s.id })
3862
3870
  ),
3863
3871
  Xe[e].list
3864
- ] : [Xe[e].list], Ts = (t) => {
3872
+ ] : [Xe[e].list], ks = (t) => {
3865
3873
  const e = z(t, "version"), s = z(
3866
3874
  t.map((n) => n.product).filter((n) => !!n),
3867
3875
  "product"
3868
3876
  );
3869
3877
  return [...e, ...s];
3870
- }, Ue = (t) => t ? Ts(t.versions) : z(void 0, "version"), pi = (t) => t ? Ts(hi(t)) : z(void 0, "version"), fi = (t) => {
3871
- if (!t) return [vt, ...z(void 0, "product")];
3872
- const e = mi(t), s = z(e, "product"), n = z(
3878
+ }, Ue = (t) => t ? ks(t.versions) : z(void 0, "version"), yi = (t) => t ? ks(vi(t)) : z(void 0, "version"), gi = (t) => {
3879
+ if (!t) return [bt, ...z(void 0, "product")];
3880
+ const e = bi(t), s = z(e, "product"), n = z(
3873
3881
  e.map((i) => i.featuredVersion).filter((i) => !!i),
3874
3882
  "version"
3875
3883
  );
3876
3884
  return [...s, ...n];
3877
- }, yi = (t) => {
3878
- if (!t) return [vt, ...z(void 0, "product")];
3885
+ }, hi = (t) => {
3886
+ if (!t) return [bt, ...z(void 0, "product")];
3879
3887
  const e = z(t.products, "product"), s = z(
3880
3888
  t.products.map((n) => n.featuredVersion).filter((n) => !!n),
3881
3889
  "version"
3882
3890
  );
3883
3891
  return [...e, ...s];
3884
- }, gi = (t) => {
3892
+ }, mi = (t) => {
3885
3893
  const e = [];
3886
3894
  for (const { node: s } of t)
3887
3895
  Math.sign(s.version) !== -1 && e.push(s);
3888
3896
  return e;
3889
- }, hi = (t) => t ? t.pages.flatMap((e) => e.versions) : [], mi = (t) => t ? t.pages.flatMap((e) => e.products) : [], ks = (t) => {
3897
+ }, vi = (t) => t ? t.pages.flatMap((e) => e.versions) : [], bi = (t) => t ? t.pages.flatMap((e) => e.products) : [], ws = (t) => {
3890
3898
  const e = G(t.allAttrib), s = t.task ? {
3891
3899
  ...t.task,
3892
3900
  attrib: G(t.task.allAttrib),
@@ -3905,10 +3913,10 @@ const Wn = (t, e) => {
3905
3913
  task: s,
3906
3914
  product: n
3907
3915
  };
3908
- }, Ht = (t) => {
3909
- const e = t.project.versions.pageInfo, n = gi(t.project.versions.edges).map((i) => ks(i));
3916
+ }, Wt = (t) => {
3917
+ const e = t.project.versions.pageInfo, n = mi(t.project.versions.edges).map((i) => ws(i));
3910
3918
  return { pageInfo: e, versions: n };
3911
- }, vi = (t) => t.featuredVersion ? ks({
3919
+ }, Ii = (t) => t.featuredVersion ? ws({
3912
3920
  ...t.featuredVersion,
3913
3921
  product: {
3914
3922
  id: t.id,
@@ -3919,7 +3927,7 @@ const Wn = (t, e) => {
3919
3927
  allAttrib: t.folder.allAttrib
3920
3928
  }
3921
3929
  }
3922
- }) : null, bi = (t) => {
3930
+ }) : null, Ti = (t) => {
3923
3931
  const e = t.project.products.pageInfo, s = t.project.products.edges.map((n) => {
3924
3932
  const i = n.node, r = G(i.allAttrib), a = {
3925
3933
  ...i.folder,
@@ -3933,11 +3941,11 @@ const Wn = (t, e) => {
3933
3941
  attrib: r,
3934
3942
  folder: a,
3935
3943
  versions: u,
3936
- featuredVersion: vi(i)
3944
+ featuredVersion: Ii(i)
3937
3945
  };
3938
3946
  });
3939
3947
  return { pageInfo: e, products: s };
3940
- }, Wt = (t) => {
3948
+ }, zt = (t) => {
3941
3949
  try {
3942
3950
  const e = t.match(/:\s*({.*})$/);
3943
3951
  if (!e)
@@ -3952,7 +3960,7 @@ const Wn = (t, e) => {
3952
3960
  return t.split(":")[0] || t;
3953
3961
  }
3954
3962
  }, Z = 10;
3955
- function Ii(t, e, s, n) {
3963
+ function ki(t, e, s, n) {
3956
3964
  for (let i = 0; i < t.length; i++) {
3957
3965
  const r = e[s], a = t[i][s];
3958
3966
  if (n ? r > a : r < a)
@@ -3960,7 +3968,7 @@ function Ii(t, e, s, n) {
3960
3968
  }
3961
3969
  return t.length;
3962
3970
  }
3963
- function Ti(t, e, s, n, i, r) {
3971
+ function wi(t, e, s, n, i, r) {
3964
3972
  for (const a of t) {
3965
3973
  const c = a[n], u = c.findIndex((d) => d.id === e);
3966
3974
  if (u !== -1) {
@@ -3969,11 +3977,11 @@ function Ti(t, e, s, n, i, r) {
3969
3977
  }
3970
3978
  }
3971
3979
  if (s && t.length > 0) {
3972
- const a = t[0][n], c = Ii(a, s, i, r);
3980
+ const a = t[0][n], c = ki(a, s, i, r);
3973
3981
  a.splice(c, 0, s);
3974
3982
  }
3975
3983
  }
3976
- function zt(t, e) {
3984
+ function Kt(t, e) {
3977
3985
  const s = t.findIndex((n) => n.id === e.id);
3978
3986
  s !== -1 && (t[s] = e);
3979
3987
  }
@@ -3981,20 +3989,20 @@ const Y = R.enhanceEndpoints({
3981
3989
  endpoints: {
3982
3990
  // used by both stacked and non-stacked views
3983
3991
  GetVersions: {
3984
- transformResponse: Ht,
3992
+ transformResponse: Wt,
3985
3993
  providesTags: Ue,
3986
3994
  keepUnusedDataFor: Z
3987
3995
  },
3988
3996
  // used by getVersionsByProducts only
3989
3997
  GetVersionsByProductId: {
3990
- transformResponse: Ht,
3998
+ transformResponse: Wt,
3991
3999
  providesTags: Ue,
3992
4000
  keepUnusedDataFor: Z
3993
4001
  },
3994
4002
  // used by getProductsInfinite only
3995
4003
  GetProducts: {
3996
- transformResponse: bi,
3997
- providesTags: yi,
4004
+ transformResponse: Ti,
4005
+ providesTags: hi,
3998
4006
  keepUnusedDataFor: Z
3999
4007
  },
4000
4008
  // footer stats: `targets` excluded from cache key + responses merged,
@@ -4016,7 +4024,7 @@ const Y = R.enhanceEndpoints({
4016
4024
  keepUnusedDataFor: Z
4017
4025
  }
4018
4026
  }
4019
- }), oe = 250, Kt = 1e3, ki = 10, wi = ["status", "tags"];
4027
+ }), oe = 250, Jt = 1e3, Ai = 10, Ei = ["status", "tags"];
4020
4028
  function Re(t, e, s) {
4021
4029
  const i = $(
4022
4030
  async (a, c) => {
@@ -4033,7 +4041,7 @@ function Re(t, e, s) {
4033
4041
  o.add(h);
4034
4042
  continue;
4035
4043
  }
4036
- const v = fe(b, y.summary, wi);
4044
+ const v = fe(b, y.summary, Ei);
4037
4045
  if (!v) {
4038
4046
  p.add(h);
4039
4047
  continue;
@@ -4138,7 +4146,7 @@ const Q = Y.injectEndpoints({
4138
4146
  return console.error("Error in getVersionsInfiniteQuery queryFn:", i), { error: P(i) };
4139
4147
  }
4140
4148
  },
4141
- providesTags: pi,
4149
+ providesTags: yi,
4142
4150
  // Subscribes to version entity changes and updates cache accordingly
4143
4151
  // Handles: update, delete operations
4144
4152
  onCacheEntryAdded: async (e, { getCacheEntry: s, updateCachedData: n, cacheEntryRemoved: i, dispatch: r }) => {
@@ -4200,7 +4208,7 @@ const Q = Y.injectEndpoints({
4200
4208
  }
4201
4209
  if (l)
4202
4210
  for (const h of l)
4203
- zt(y.versions, h);
4211
+ Kt(y.versions, h);
4204
4212
  }
4205
4213
  });
4206
4214
  }
@@ -4218,7 +4226,7 @@ const Q = Y.injectEndpoints({
4218
4226
  ...a,
4219
4227
  productIds: [l]
4220
4228
  };
4221
- return r ? (f && (y.before = f), y.last = Kt) : (f && (y.after = f), y.first = Kt), s(
4229
+ return r ? (f && (y.before = f), y.last = Jt) : (f && (y.after = f), y.first = Jt), s(
4222
4230
  Y.endpoints.GetVersionsByProductId.initiate(y, {
4223
4231
  forceRefetch: n
4224
4232
  })
@@ -4227,7 +4235,7 @@ const Q = Y.injectEndpoints({
4227
4235
  for (let l = 0; l < d.length; l++) {
4228
4236
  const f = d[l], y = i[l];
4229
4237
  if (f.status === "rejected") {
4230
- console.error(`Error fetching versions for product ${y}:`, f.reason), p.push({ productId: y, error: Wt(f.reason) });
4238
+ console.error(`Error fetching versions for product ${y}:`, f.reason), p.push({ productId: y, error: zt(f.reason) });
4231
4239
  continue;
4232
4240
  }
4233
4241
  const h = f.value;
@@ -4235,14 +4243,14 @@ const Q = Y.injectEndpoints({
4235
4243
  console.error(`Error fetching versions for product ${y}:`, h.error), p.push({
4236
4244
  productId: y,
4237
4245
  // @ts-expect-error - message
4238
- error: Wt(h.error?.message || "Unknown error")
4246
+ error: zt(h.error?.message || "Unknown error")
4239
4247
  });
4240
4248
  continue;
4241
4249
  }
4242
4250
  if (!h.data) continue;
4243
4251
  o.push(...h.data.versions);
4244
4252
  let g = h.data.pageInfo, m = 1;
4245
- for (; g && m < ki; ) {
4253
+ for (; g && m < Ai; ) {
4246
4254
  const b = r ? g.hasPreviousPage : g.hasNextPage, v = g.endCursor;
4247
4255
  if (!b || !v) break;
4248
4256
  const T = await c(y, v);
@@ -4322,7 +4330,7 @@ const Q = Y.injectEndpoints({
4322
4330
  }
4323
4331
  if (p)
4324
4332
  for (const f of p)
4325
- zt(l.versions, f);
4333
+ Kt(l.versions, f);
4326
4334
  });
4327
4335
  }
4328
4336
  }), c = F.subscribe("entity.version", a.handle);
@@ -4373,7 +4381,7 @@ const Q = Y.injectEndpoints({
4373
4381
  return console.error("Error in getProductsInfiniteQuery queryFn:", r), { error: P(r) };
4374
4382
  }
4375
4383
  },
4376
- providesTags: fi,
4384
+ providesTags: gi,
4377
4385
  // Subscribes to product entity changes and updates cache accordingly
4378
4386
  // Handles: update, delete operations
4379
4387
  onCacheEntryAdded: async (e, { updateCachedData: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) => {
@@ -4423,12 +4431,12 @@ const Q = Y.injectEndpoints({
4423
4431
  let E = k.featuredVersion;
4424
4432
  T.featuredVersion === null ? E = null : T.featuredVersion && I.has(T.featuredVersion.id) ? E = T.featuredVersion : (!E || !w.some(({ id: A }) => A === E?.id)) && (E = null), T = { ...T, versions: w, featuredVersion: E };
4425
4433
  }
4426
- Ti(
4434
+ wi(
4427
4435
  m.pages,
4428
4436
  v,
4429
4437
  T,
4430
4438
  "products",
4431
- en(e.sortBy) || "createdAt",
4439
+ tn(e.sortBy) || "createdAt",
4432
4440
  e.desc || !1
4433
4441
  );
4434
4442
  });
@@ -4644,19 +4652,19 @@ const Q = Y.injectEndpoints({
4644
4652
  })
4645
4653
  })
4646
4654
  }), {
4647
- useGetVersionsQuery: lo,
4648
- useGetProductsColumnStatsQuery: po,
4649
- useGetVersionsColumnStatsQuery: fo
4655
+ useGetVersionsQuery: go,
4656
+ useGetProductsColumnStatsQuery: ho,
4657
+ useGetVersionsColumnStatsQuery: mo
4650
4658
  } = Y, {
4651
- useGetVersionsInfiniteInfiniteQuery: yo,
4652
- useGetVersionsByProductsQuery: go,
4653
- useGetProductsInfiniteInfiniteQuery: ho,
4654
- useGetGroupedVersionsListQuery: mo
4655
- } = Q, Jt = 5, ke = (t) => (t || "").replace(/-/g, ""), Ai = (t, e, s) => {
4659
+ useGetVersionsInfiniteInfiniteQuery: vo,
4660
+ useGetVersionsByProductsQuery: bo,
4661
+ useGetProductsInfiniteInfiniteQuery: Io,
4662
+ useGetGroupedVersionsListQuery: To
4663
+ } = Q, Yt = 5, ke = (t) => (t || "").replace(/-/g, ""), Si = (t, e, s) => {
4656
4664
  Array.isArray(t.latestComments) || (t.latestComments = []);
4657
4665
  const n = t.latestComments, i = ke(e.activityId), r = n.findIndex((a) => ke(a.activityId) === i);
4658
- 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 > Jt && n.splice(Jt));
4659
- }, Ei = [
4666
+ 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 > Yt && n.splice(Yt));
4667
+ }, Li = [
4660
4668
  {
4661
4669
  api: D,
4662
4670
  tag: "overviewTask",
@@ -4683,7 +4691,7 @@ const Q = Y.injectEndpoints({
4683
4691
  getProductsInfinite: (t) => (t?.pages?.flatMap((e) => e.products ?? []) ?? []).map((e) => e.featuredVersion).filter(Boolean)
4684
4692
  }
4685
4693
  }
4686
- ], Si = (t, { dispatch: e, getState: s }, n) => {
4694
+ ], Pi = (t, { dispatch: e, getState: s }, n) => {
4687
4695
  const { patch: i } = t, r = t.entityId ?? i?.entityId, a = i?.activityId ?? t.activityId;
4688
4696
  if (!r || !a) return [];
4689
4697
  if (n === "create" && !(i?.activityType === "comment" && i?.referenceType === "origin"))
@@ -4696,7 +4704,7 @@ const Q = Y.injectEndpoints({
4696
4704
  author: i?.authorName ?? null,
4697
4705
  createdAt: i?.createdAt ?? ""
4698
4706
  }, u = s(), d = ke(r), o = [];
4699
- for (const { api: p, tag: l, selectors: f } of Ei) {
4707
+ for (const { api: p, tag: l, selectors: f } of Li) {
4700
4708
  const y = p.util.selectInvalidatedBy(u, [{ type: l, id: r }]);
4701
4709
  for (const { endpointName: h, originalArgs: g } of y) {
4702
4710
  const m = f[h];
@@ -4704,14 +4712,14 @@ const Q = Y.injectEndpoints({
4704
4712
  e(
4705
4713
  p.util.updateQueryData(h, g, (b) => {
4706
4714
  for (const v of m(b))
4707
- (ke(v?.id) === d || ke(v?.entityId) === d) && Ai(v, c, n);
4715
+ (ke(v?.id) === d || ke(v?.entityId) === d) && Si(v, c, n);
4708
4716
  })
4709
4717
  )
4710
4718
  );
4711
4719
  }
4712
4720
  }
4713
4721
  return o;
4714
- }, Li = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, Pi = async (t, {
4722
+ }, ji = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, Fi = async (t, {
4715
4723
  updateCachedData: e,
4716
4724
  cacheDataLoaded: s,
4717
4725
  cacheEntryRemoved: n,
@@ -4763,12 +4771,12 @@ const Q = Y.injectEndpoints({
4763
4771
  e((A) => {
4764
4772
  E.forEach((L, S) => {
4765
4773
  const j = [L.activityType];
4766
- if (L.activityType === "comment" && Li(L.body || "") && j.push("checklist"), h.length > 0 && !h.some((x) => j.includes(x)))
4774
+ if (L.activityType === "comment" && ji(L.body || "") && j.push("checklist"), h.length > 0 && !h.some((x) => j.includes(x)))
4767
4775
  return;
4768
4776
  let _ = !1;
4769
4777
  if (A.pages?.forEach((x) => {
4770
4778
  const N = x.activities?.findIndex(
4771
- (Fs) => Fs.activityId === S
4779
+ (_s) => _s.activityId === S
4772
4780
  );
4773
4781
  N !== void 0 && N !== -1 && x.activities && (x.activities[N] = L, _ = !0);
4774
4782
  }), !_ && m.get(S) === "activity.created" && A.pages?.[0]?.activities?.unshift(L), L.activityType !== "status.change" || L.origin?.type !== "version")
@@ -4826,22 +4834,22 @@ const Q = Y.injectEndpoints({
4826
4834
  endpoints: {
4827
4835
  // Only used by the infinite query below
4828
4836
  GetActivities: {
4829
- transformResponse: (t) => Tt(t.project.activities.edges, t.project.activities.pageInfo),
4830
- providesTags: ls
4837
+ transformResponse: (t) => kt(t.project.activities.edges, t.project.activities.pageInfo),
4838
+ providesTags: ps
4831
4839
  },
4832
4840
  GetActivitiesById: {
4833
- transformResponse: (t) => Tt(t.project.activities.edges, t.project.activities.pageInfo)
4841
+ transformResponse: (t) => kt(t.project.activities.edges, t.project.activities.pageInfo)
4834
4842
  },
4835
4843
  GetVersionsFrameStart: {
4836
4844
  transformResponse: (t) => Object.fromEntries(
4837
- t.project.versions.edges.map(({ node: e }) => [
4838
- e.id,
4839
- e.attrib.frameStart
4840
- ])
4845
+ t.project.versions.edges.map(({ node: e }) => {
4846
+ const s = e.attrib;
4847
+ return [e.id, In(s.frameStart, s.handleStart)];
4848
+ })
4841
4849
  )
4842
4850
  },
4843
4851
  GetEntitiesChecklists: {
4844
- transformResponse: (t) => gn(t),
4852
+ transformResponse: (t) => hn(t),
4845
4853
  providesTags: (t, e, { entityIds: s }) => t ? [
4846
4854
  { type: "activity", id: "LIST" },
4847
4855
  ...t.ids.map((n) => ({ type: "activity", id: "checklist-" + n })),
@@ -4856,18 +4864,18 @@ const Q = Y.injectEndpoints({
4856
4864
  providesTags: (t) => t?.length ? [{ type: "user", id: "LIST" }, ...t.map(({ name: e }) => ({ type: "user", id: e }))] : [{ type: "user", id: "LIST" }]
4857
4865
  }
4858
4866
  }
4859
- }), Yt = 30, ge = et.injectEndpoints({
4867
+ }), Zt = 30, ge = et.injectEndpoints({
4860
4868
  endpoints: (t) => ({
4861
4869
  getActivitiesInfinite: t.infiniteQuery({
4862
4870
  infiniteQueryOptions: {
4863
- initialPageParam: { cursor: "", last: Yt },
4871
+ initialPageParam: { cursor: "", last: Zt },
4864
4872
  // Calculate the next page param based on current page response and params
4865
4873
  getNextPageParam: (e) => {
4866
4874
  const s = e.pageInfo;
4867
4875
  if (!(!s.hasPreviousPage || !s.endCursor))
4868
4876
  return {
4869
4877
  cursor: s.endCursor,
4870
- last: Yt
4878
+ last: Zt
4871
4879
  };
4872
4880
  }
4873
4881
  },
@@ -4900,7 +4908,7 @@ const Q = Y.injectEndpoints({
4900
4908
  }
4901
4909
  },
4902
4910
  async onCacheEntryAdded(e, { updateCachedData: s, cacheDataLoaded: n, cacheEntryRemoved: i, dispatch: r, getCacheEntry: a }) {
4903
- await Pi(e, {
4911
+ await Fi(e, {
4904
4912
  updateCachedData: s,
4905
4913
  cacheDataLoaded: n,
4906
4914
  cacheEntryRemoved: i,
@@ -4909,7 +4917,7 @@ const Q = Y.injectEndpoints({
4909
4917
  gqlApi: et
4910
4918
  });
4911
4919
  },
4912
- providesTags: ls
4920
+ providesTags: ps
4913
4921
  }),
4914
4922
  // get data for a reference tooltip based on type,id and projectName
4915
4923
  getEntityTooltip: t.query({
@@ -4917,25 +4925,25 @@ const Q = Y.injectEndpoints({
4917
4925
  url: "/graphql",
4918
4926
  method: "POST",
4919
4927
  body: {
4920
- query: vn(n),
4928
+ query: bn(n),
4921
4929
  variables: { projectName: e, entityId: s }
4922
4930
  }
4923
4931
  }),
4924
- transformResponse: (e, s, { entityType: n }) => yn(e?.data?.project, n),
4925
- providesTags: (e, s, { entityType: n }) => hn([e], "task", n)
4932
+ transformResponse: (e, s, { entityType: n }) => gn(e?.data?.project, n),
4933
+ providesTags: (e, s, { entityType: n }) => mn([e], "task", n)
4926
4934
  })
4927
4935
  }),
4928
4936
  overrideExisting: !0
4929
4937
  }), {
4930
- useGetEntityTooltipQuery: vo,
4931
- useGetActivitiesByIdQuery: bo,
4932
- useLazyGetActivitiesByIdQuery: Io,
4933
- useGetEntitiesChecklistsQuery: To,
4934
- useGetActivitiesQuery: ko,
4935
- useGetActivitiesInfiniteInfiniteQuery: wo,
4936
- useGetActivityUsersQuery: Ao,
4937
- useGetVersionsFrameStartQuery: Eo
4938
- } = ge, ji = (t, e, s) => {
4938
+ useGetEntityTooltipQuery: ko,
4939
+ useGetActivitiesByIdQuery: wo,
4940
+ useLazyGetActivitiesByIdQuery: Ao,
4941
+ useGetEntitiesChecklistsQuery: Eo,
4942
+ useGetActivitiesQuery: So,
4943
+ useGetActivitiesInfiniteInfiniteQuery: Lo,
4944
+ useGetActivityUsersQuery: Po,
4945
+ useGetVersionsFrameStartQuery: jo
4946
+ } = ge, _i = (t, e, s) => {
4939
4947
  if (s)
4940
4948
  for (const n of t.pages) {
4941
4949
  const i = n.activities.findIndex((r) => r.activityId === e.activityId);
@@ -4955,12 +4963,12 @@ const Q = Y.injectEndpoints({
4955
4963
  }
4956
4964
  !n && t.pages.length > 0 && t.pages[0].activities.unshift(e);
4957
4965
  }
4958
- }, Fi = (t) => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), tt = async ({ patch: t, entityIds: e = [], filter: s, refs: n = [], ...i }, r, a) => {
4966
+ }, Ri = (t) => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), tt = async ({ patch: t, entityIds: e = [], filter: s, refs: n = [], ...i }, r, a) => {
4959
4967
  const { dispatch: c, queryFulfilled: u, getState: d } = r, o = n.map((g) => g.id) || [];
4960
- Fi(s);
4968
+ Ri(s);
4961
4969
  const p = [...e, ...o].map((g) => ({
4962
4970
  type: "entityActivities",
4963
- id: g + "-" + us(s)
4971
+ id: g + "-" + ls(s)
4964
4972
  })), l = d(), f = ge.util.selectInvalidatedBy(l, p);
4965
4973
  a !== "delete" && t.data && (t.activityData = { ...t.activityData, ...t.data });
4966
4974
  const y = f.map(
@@ -4968,10 +4976,10 @@ const Q = Y.injectEndpoints({
4968
4976
  ge.util.updateQueryData(
4969
4977
  "getActivitiesInfinite",
4970
4978
  g,
4971
- (m) => ji(m, t, a === "delete")
4979
+ (m) => _i(m, t, a === "delete")
4972
4980
  )
4973
4981
  )
4974
- ), h = Si(
4982
+ ), h = Pi(
4975
4983
  { patch: t, ...i },
4976
4984
  r,
4977
4985
  a
@@ -4988,7 +4996,7 @@ const Q = Y.injectEndpoints({
4988
4996
  id: t + "-" + i
4989
4997
  }));
4990
4998
  return n.push({ type: "activity", id: "LIST" }), n.push({ type: "watchers", id: t }), n;
4991
- }, _i = ge.injectEndpoints({
4999
+ }, Gi = ge.injectEndpoints({
4992
5000
  endpoints: (t) => ({
4993
5001
  createEntityActivity: t.mutation({
4994
5002
  query: ({ projectName: e, entityType: s, entityId: n, data: i = {} }) => ({
@@ -5029,10 +5037,10 @@ const Q = Y.injectEndpoints({
5029
5037
  }),
5030
5038
  overrideExisting: !0
5031
5039
  }), {
5032
- useCreateEntityActivityMutation: So,
5033
- useDeleteActivityMutation: Lo,
5034
- useUpdateActivityMutation: Po
5035
- } = _i, Zt = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
5040
+ useCreateEntityActivityMutation: Fo,
5041
+ useDeleteActivityMutation: _o,
5042
+ useUpdateActivityMutation: Ro
5043
+ } = Gi, Xt = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
5036
5044
  const a = [{ type: "activity", id: t }];
5037
5045
  return ge.util.selectInvalidatedBy(n(), a).map((u) => i(
5038
5046
  // @ts-ignore
@@ -5070,11 +5078,11 @@ const Q = Y.injectEndpoints({
5070
5078
  }
5071
5079
  )
5072
5080
  ));
5073
- }, Ri = Le.enhanceEndpoints({
5081
+ }, Ci = Le.enhanceEndpoints({
5074
5082
  endpoints: {
5075
5083
  createReactionToActivity: {
5076
5084
  async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
5077
- const i = Zt(
5085
+ const i = Xt(
5078
5086
  {
5079
5087
  activityId: t.activityId,
5080
5088
  // @ts-ignore
@@ -5094,7 +5102,7 @@ const Q = Y.injectEndpoints({
5094
5102
  },
5095
5103
  deleteReactionToActivity: {
5096
5104
  async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
5097
- const i = Zt(
5105
+ const i = Xt(
5098
5106
  // @ts-ignore
5099
5107
  { activityId: t.activityId, userName: t.userName, reaction: t.reaction },
5100
5108
  { getState: e, dispatch: s },
@@ -5109,34 +5117,34 @@ const Q = Y.injectEndpoints({
5109
5117
  }
5110
5118
  }
5111
5119
  }
5112
- }), { useCreateReactionToActivityMutation: jo, useDeleteReactionToActivityMutation: Fo } = Ri, Xt = Le.enhanceEndpoints({
5120
+ }), { useCreateReactionToActivityMutation: Go, useDeleteReactionToActivityMutation: Co } = Ci, es = Le.enhanceEndpoints({
5113
5121
  endpoints: {
5114
5122
  suggestEntityMention: {}
5115
5123
  }
5116
- }), Gi = Xt.injectEndpoints({
5124
+ }), Ni = es.injectEndpoints({
5117
5125
  endpoints: (t) => ({
5118
5126
  getEntityMentions: t.query({
5119
5127
  queryFn: async (e, { dispatch: s }) => {
5120
5128
  const n = await s(
5121
- Xt.endpoints.suggestEntityMention.initiate(e)
5129
+ es.endpoints.suggestEntityMention.initiate(e)
5122
5130
  );
5123
5131
  return n.error ? { error: P(n.error) } : { data: n.data };
5124
5132
  },
5125
5133
  providesTags: [{ type: "team", id: "LIST" }]
5126
5134
  })
5127
5135
  })
5128
- }), { useGetEntityMentionsQuery: _o } = Gi, ct = { type: "category", id: "LIST" }, dt = { type: "addonSettings", id: "powerpack" }, ut = Le.enhanceEndpoints({
5136
+ }), { useGetEntityMentionsQuery: No } = Ni, dt = { type: "category", id: "LIST" }, ut = { type: "addonSettings", id: "powerpack" }, lt = Le.enhanceEndpoints({
5129
5137
  endpoints: {
5130
5138
  getActivityCategories: {
5131
5139
  transformResponse: (t) => t.categories,
5132
5140
  providesTags: (t) => t ? [
5133
5141
  ...t.map(({ name: e }) => ({ type: "category", id: e })),
5134
- ct,
5135
- dt
5136
- ] : [ct, dt]
5142
+ dt,
5143
+ ut
5144
+ ] : [dt, ut]
5137
5145
  }
5138
5146
  }
5139
- }), Ci = ut.injectEndpoints({
5147
+ }), Qi = lt.injectEndpoints({
5140
5148
  endpoints: (t) => ({
5141
5149
  getProjectsCategories: t.query({
5142
5150
  async queryFn({ projects: e = [] }, { dispatch: s }) {
@@ -5144,7 +5152,7 @@ const Q = Y.injectEndpoints({
5144
5152
  e.map(async (i) => {
5145
5153
  try {
5146
5154
  const r = await s(
5147
- ut.endpoints.getActivityCategories.initiate({ projectName: i })
5155
+ lt.endpoints.getActivityCategories.initiate({ projectName: i })
5148
5156
  ).unwrap();
5149
5157
  return [i, r];
5150
5158
  } catch {
@@ -5154,16 +5162,16 @@ const Q = Y.injectEndpoints({
5154
5162
  );
5155
5163
  return { data: Object.fromEntries(n) };
5156
5164
  },
5157
- providesTags: [ct, dt]
5165
+ providesTags: [dt, ut]
5158
5166
  })
5159
5167
  })
5160
- }), { useGetActivityCategoriesQuery: Ro } = ut, { useGetProjectsCategoriesQuery: Go } = Ci, ws = Ns.enhanceEndpoints({
5168
+ }), { useGetActivityCategoriesQuery: Qo } = lt, { useGetProjectsCategoriesQuery: Mo } = Qi, As = Qs.enhanceEndpoints({
5161
5169
  endpoints: {
5162
5170
  listAddons: {
5163
5171
  providesTags: ["addonList"]
5164
5172
  }
5165
5173
  }
5166
- }), { useListAddonsQuery: Ni } = ws, Qi = (t, e, s) => {
5174
+ }), { useListAddonsQuery: Mi } = As, Vi = (t, e, s) => {
5167
5175
  const n = [];
5168
5176
  for (const i of t.addons) {
5169
5177
  const r = s ? s(i.name) : i.productionVersion, a = r ? i.versions[r] : void 0;
@@ -5177,13 +5185,13 @@ const Q = Y.injectEndpoints({
5177
5185
  });
5178
5186
  }
5179
5187
  return n;
5180
- }, bt = (t) => ({ getVersion: e } = {}, s) => {
5181
- const n = Ni({}, s), i = tn(
5182
- () => n.data ? Qi(n.data, t, e) : void 0,
5188
+ }, It = (t) => ({ getVersion: e } = {}, s) => {
5189
+ const n = Mi({}, s), i = sn(
5190
+ () => n.data ? Vi(n.data, t, e) : void 0,
5183
5191
  [n.data, e]
5184
5192
  );
5185
5193
  return { ...n, data: i };
5186
- }, Co = bt("project"), No = bt("settings"), Qo = bt("dashboard"), nt = ws.enhanceEndpoints({
5194
+ }, Vo = It("project"), Oo = It("settings"), Do = It("dashboard"), nt = As.enhanceEndpoints({
5187
5195
  endpoints: {
5188
5196
  deleteAddonVersion: {
5189
5197
  invalidatesTags: ["addonList"]
@@ -5199,7 +5207,7 @@ const Q = Y.injectEndpoints({
5199
5207
  ]
5200
5208
  }
5201
5209
  }
5202
- }), As = nt.injectEndpoints({
5210
+ }), Es = nt.injectEndpoints({
5203
5211
  endpoints: (t) => ({
5204
5212
  // delete multiple addon versions at once
5205
5213
  deleteAddonVersions: t.mutation({
@@ -5247,7 +5255,7 @@ const Q = Y.injectEndpoints({
5247
5255
  }),
5248
5256
  // endpoints
5249
5257
  overrideExisting: !0
5250
- }), { useDeleteAddonVersionsMutation: Mo, useDownloadAddonsMutation: Vo } = As, Es = Qs.enhanceEndpoints({
5258
+ }), { useDeleteAddonVersionsMutation: $o, useDownloadAddonsMutation: xo } = Es, Ss = Ms.enhanceEndpoints({
5251
5259
  endpoints: {
5252
5260
  getAttributeList: {
5253
5261
  transformResponse: (t) => t.attributes || [],
@@ -5260,7 +5268,7 @@ const Q = Y.injectEndpoints({
5260
5268
  ]
5261
5269
  }
5262
5270
  }
5263
- }), { useGetAttributeListQuery: Oo, useGetAttributeConfigQuery: Do } = Es, Mi = Es.enhanceEndpoints({
5271
+ }), { useGetAttributeListQuery: Uo, useGetAttributeConfigQuery: Bo } = Ss, Oi = Ss.enhanceEndpoints({
5264
5272
  endpoints: {
5265
5273
  setAttributeList: {
5266
5274
  invalidatesTags: ["attribute"]
@@ -5272,21 +5280,21 @@ const Q = Y.injectEndpoints({
5272
5280
  invalidatesTags: (t, e, { attributeName: s }) => [{ type: "attribute", id: s }]
5273
5281
  }
5274
5282
  }
5275
- }), { useSetAttributeListMutation: $o, usePatchAttributeConfigMutation: xo } = Mi, Vi = Ms.enhanceEndpoints({
5283
+ }), { useSetAttributeListMutation: qo, usePatchAttributeConfigMutation: Ho } = Oi, Di = Vs.enhanceEndpoints({
5276
5284
  endpoints: {
5277
5285
  createSession: {},
5278
5286
  getUserPools: {
5279
5287
  providesTags: [{ type: "userPool", id: "LIST" }]
5280
5288
  }
5281
5289
  }
5282
- }), { useCreateSessionMutation: Uo, useGetUserPoolsQuery: Bo } = Vi, lt = Vs.enhanceEndpoints({
5290
+ }), { useCreateSessionMutation: Wo, useGetUserPoolsQuery: zo } = Di, pt = Os.enhanceEndpoints({
5283
5291
  endpoints: {
5284
5292
  listBundles: {
5285
5293
  providesTags: () => [{ type: "bundleList" }]
5286
5294
  },
5287
5295
  checkBundleCompatibility: {}
5288
5296
  }
5289
- }), Oi = he.enhanceEndpoints({
5297
+ }), $i = he.enhanceEndpoints({
5290
5298
  endpoints: {
5291
5299
  getProjectBundleInfo: {
5292
5300
  providesTags: (t, e, { projectName: s }) => [
@@ -5295,10 +5303,10 @@ const Q = Y.injectEndpoints({
5295
5303
  ]
5296
5304
  }
5297
5305
  }
5298
- }), { useListBundlesQuery: qo, useLazyListBundlesQuery: Ho, useCheckBundleCompatibilityQuery: Wo } = lt, { useGetProjectBundleInfoQuery: zo } = Oi, Di = (t = {}) => {
5306
+ }), { useListBundlesQuery: Ko, useLazyListBundlesQuery: Jo, useCheckBundleCompatibilityQuery: Yo } = pt, { useGetProjectBundleInfoQuery: Zo } = $i, xi = (t = {}) => {
5299
5307
  const e = Object.keys(t);
5300
5308
  return e.length === 1 && e[0] === "description";
5301
- }, $i = lt.enhanceEndpoints({
5309
+ }, Ui = pt.enhanceEndpoints({
5302
5310
  endpoints: {
5303
5311
  migrateSettingsByBundle: {
5304
5312
  invalidatesTags: () => [
@@ -5311,7 +5319,7 @@ const Q = Y.injectEndpoints({
5311
5319
  // optimisticUpdate bundleList to update bundle
5312
5320
  onQueryStarted: async ({ bundleName: t, archived: e = !0, patch: s }, { dispatch: n, queryFulfilled: i }) => {
5313
5321
  const r = n(
5314
- lt.util.updateQueryData("listBundles", { archived: e }, (a) => {
5322
+ pt.util.updateQueryData("listBundles", { archived: e }, (a) => {
5315
5323
  if (!s || !a?.bundles) return;
5316
5324
  const c = a.bundles.findIndex((u) => u.name === t);
5317
5325
  if (c === -1) throw new Error("bundle not found");
@@ -5324,7 +5332,7 @@ const Q = Y.injectEndpoints({
5324
5332
  r.undo();
5325
5333
  }
5326
5334
  },
5327
- invalidatesTags: (t, e, { bundlePatchModel: s }) => Di(s) ? [{ type: "bundleList" }] : [
5335
+ invalidatesTags: (t, e, { bundlePatchModel: s }) => xi(s) ? [{ type: "bundleList" }] : [
5328
5336
  { type: "bundleList" },
5329
5337
  { type: "addonList" },
5330
5338
  { type: "addonSettingsList" },
@@ -5333,7 +5341,7 @@ const Q = Y.injectEndpoints({
5333
5341
  ]
5334
5342
  }
5335
5343
  }
5336
- }), xi = he.enhanceEndpoints({
5344
+ }), Bi = he.enhanceEndpoints({
5337
5345
  endpoints: {
5338
5346
  unsetProjectBundle: {
5339
5347
  invalidatesTags: (t, e, { projectName: s }) => [
@@ -5346,7 +5354,7 @@ const Q = Y.injectEndpoints({
5346
5354
  ]
5347
5355
  }
5348
5356
  }
5349
- }), Ui = $i.injectEndpoints({
5357
+ }), qi = Ui.injectEndpoints({
5350
5358
  endpoints: (t) => ({
5351
5359
  deleteBundle: t.mutation({
5352
5360
  query: ({ name: e }) => ({
@@ -5403,12 +5411,12 @@ const Q = Y.injectEndpoints({
5403
5411
  // endpoints
5404
5412
  overrideExisting: !0
5405
5413
  }), {
5406
- useDeleteBundleMutation: Ko,
5407
- useCreateBundleMutation: Jo,
5408
- usePromoteBundleMutation: Yo,
5409
- useMigrateSettingsByBundleMutation: Zo,
5410
- useUpdateBundleMutation: Xo
5411
- } = Ui, { useUnsetProjectBundleMutation: ec } = xi, Bi = Os.enhanceEndpoints({
5414
+ useDeleteBundleMutation: Xo,
5415
+ useCreateBundleMutation: ec,
5416
+ usePromoteBundleMutation: tc,
5417
+ useMigrateSettingsByBundleMutation: sc,
5418
+ useUpdateBundleMutation: nc
5419
+ } = qi, { useUnsetProjectBundleMutation: ic } = Bi, Hi = Ds.enhanceEndpoints({
5412
5420
  endpoints: {
5413
5421
  getYnputCloudInfo: {
5414
5422
  providesTags: ["connections"]
@@ -5424,11 +5432,11 @@ const Q = Y.injectEndpoints({
5424
5432
  }
5425
5433
  }
5426
5434
  }), {
5427
- useGetYnputCloudInfoQuery: tc,
5428
- useSetYnputCloudKeyMutation: sc,
5429
- useDeleteYnputCloudKeyMutation: nc,
5430
- useGetFeedbackVerificationQuery: ic
5431
- } = Bi, Ss = Ds.enhanceEndpoints({
5435
+ useGetYnputCloudInfoQuery: rc,
5436
+ useSetYnputCloudKeyMutation: ac,
5437
+ useDeleteYnputCloudKeyMutation: oc,
5438
+ useGetFeedbackVerificationQuery: cc
5439
+ } = Hi, Ls = $s.enhanceEndpoints({
5432
5440
  endpoints: {
5433
5441
  getServerConfig: {
5434
5442
  providesTags: ["config"]
@@ -5442,21 +5450,21 @@ const Q = Y.injectEndpoints({
5442
5450
  }
5443
5451
  }
5444
5452
  }), {
5445
- useGetServerConfigQuery: rc,
5446
- useGetServerConfigOverridesQuery: ac,
5447
- useGetServerConfigSchemaQuery: oc,
5448
- useGetConfigValueQuery: cc
5449
- } = Ss, qi = Ss.enhanceEndpoints({
5453
+ useGetServerConfigQuery: dc,
5454
+ useGetServerConfigOverridesQuery: uc,
5455
+ useGetServerConfigSchemaQuery: lc,
5456
+ useGetConfigValueQuery: pc
5457
+ } = Ls, Wi = Ls.enhanceEndpoints({
5450
5458
  endpoints: {
5451
5459
  setServerConfig: {
5452
5460
  invalidatesTags: ["config"]
5453
5461
  }
5454
5462
  }
5455
- }), { useSetServerConfigMutation: dc } = qi, uc = [
5463
+ }), { useSetServerConfigMutation: fc } = Wi, yc = [
5456
5464
  "folder",
5457
5465
  "task",
5458
5466
  "version"
5459
- ], es = 500, Hi = 3e4, it = async (t, { projectName: e, entityType: s, entityIds: n }) => {
5467
+ ], ts = 500, zi = 3e4, it = async (t, { projectName: e, entityType: s, entityIds: n }) => {
5460
5468
  const i = { forceRefetch: !0, subscribe: !1 }, r = async (d) => {
5461
5469
  const o = { projectName: e, entityIds: d };
5462
5470
  return s === "folder" ? (await t(
@@ -5467,13 +5475,13 @@ const Q = Y.injectEndpoints({
5467
5475
  R.endpoints.GetVersionsListsMembership.initiate(o, i)
5468
5476
  ).unwrap()).project.versions.edges.map(({ node: l }) => l);
5469
5477
  }, a = [];
5470
- for (let d = 0; d < n.length; d += es)
5471
- a.push(n.slice(d, d + es));
5478
+ for (let d = 0; d < n.length; d += ts)
5479
+ a.push(n.slice(d, d + ts));
5472
5480
  const c = (await Promise.all(a.map(r))).flat(), u = {};
5473
5481
  for (const d of n) u[d] = [];
5474
5482
  for (const d of c) u[d.id] = d.entityLists;
5475
5483
  return u;
5476
- }, ts = (t, e) => e && t()[R.reducerPath]?.queries?.[e]?.data || {}, pt = R.injectEndpoints({
5484
+ }, ss = (t, e) => e && t()[R.reducerPath]?.queries?.[e]?.data || {}, ft = R.injectEndpoints({
5477
5485
  endpoints: (t) => ({
5478
5486
  // One cache per project and entity type. Each call only fetches the ids that are not cached yet.
5479
5487
  // The query returns the whole map instead of using `merge`: RTK builds `providesTags` from the
@@ -5482,10 +5490,10 @@ const Q = Y.injectEndpoints({
5482
5490
  queryFn: async (e, { dispatch: s, getState: n, queryCacheKey: i, forced: r }) => {
5483
5491
  try {
5484
5492
  if (r) return { data: await it(s, e) };
5485
- const a = ts(n, i), c = e.entityIds.filter((d) => !a[d]);
5493
+ const a = ss(n, i), c = e.entityIds.filter((d) => !a[d]);
5486
5494
  if (!c.length) return { data: a };
5487
5495
  const u = await it(s, { ...e, entityIds: c });
5488
- return { data: { ...ts(n, i), ...u } };
5496
+ return { data: { ...ss(n, i), ...u } };
5489
5497
  } catch (a) {
5490
5498
  return { error: P(a) };
5491
5499
  }
@@ -5525,7 +5533,7 @@ const Q = Y.injectEndpoints({
5525
5533
  });
5526
5534
  },
5527
5535
  () => "membership",
5528
- Hi
5536
+ zi
5529
5537
  );
5530
5538
  try {
5531
5539
  await n, u = F.subscribe("entity_list", (o, p) => {
@@ -5538,16 +5546,16 @@ const Q = Y.injectEndpoints({
5538
5546
  }
5539
5547
  })
5540
5548
  })
5541
- }), { useGetListsMembershipQuery: lc } = pt, pc = (t) => (e, s) => Promise.all(
5542
- pt.util.selectCachedArgsForQuery(s(), "getListsMembership").filter((n) => n.projectName === t).map(
5549
+ }), { useGetListsMembershipQuery: gc } = ft, hc = (t) => (e, s) => Promise.all(
5550
+ ft.util.selectCachedArgsForQuery(s(), "getListsMembership").filter((n) => n.projectName === t).map(
5543
5551
  (n) => e(
5544
- pt.endpoints.getListsMembership.initiate(n, {
5552
+ ft.endpoints.getListsMembership.initiate(n, {
5545
5553
  forceRefetch: !0,
5546
5554
  subscribe: !1
5547
5555
  })
5548
5556
  )
5549
5557
  )
5550
- ), ft = le.enhanceEndpoints({
5558
+ ), yt = le.enhanceEndpoints({
5551
5559
  endpoints: {
5552
5560
  getEntityListAttributesDefinition: {
5553
5561
  providesTags: (t, e, { entityListId: s }) => t ? [
@@ -5556,7 +5564,7 @@ const Q = Y.injectEndpoints({
5556
5564
  ] : [{ type: "entityListAttribute", id: "LIST" }]
5557
5565
  }
5558
5566
  }
5559
- }), { useGetEntityListAttributesDefinitionQuery: fc } = ft, Wi = (t, e) => e === "version" && t === "product_type" ? "_parent_product_type" : t.startsWith("attrib.") ? `_all_attrib.${t.slice(7)}` : t.startsWith("inherited_attributes.") ? `_all_attrib.${t.slice(21)}` : `_entity_${t}`, zi = (t) => t.startsWith("_all_attrib_") ? `attrib_${t.slice(12)}` : t.startsWith("_entity_") ? t.slice(8) : t === "_parent_product_type" ? "product_type" : t, yc = (t, e) => t.map((s) => ({ ...s, field: Wi(s.field, e) })), Ki = R.enhanceEndpoints({
5567
+ }), { useGetEntityListAttributesDefinitionQuery: mc } = yt, Ki = (t, e) => e === "version" && t === "product_type" ? "_parent_product_type" : t.startsWith("attrib.") ? `_all_attrib.${t.slice(7)}` : t.startsWith("inherited_attributes.") ? `_all_attrib.${t.slice(21)}` : `_entity_${t}`, Ji = (t) => t.startsWith("_all_attrib_") ? `attrib_${t.slice(12)}` : t.startsWith("_entity_") ? t.slice(8) : t === "_parent_product_type" ? "product_type" : t, vc = (t, e) => t.map((s) => ({ ...s, field: Ki(s.field, e) })), Yi = R.enhanceEndpoints({
5560
5568
  endpoints: {
5561
5569
  // same caching as the other column stats endpoints: `targets` excluded
5562
5570
  // from the cache key, responses merged, only added targets refetch
@@ -5564,7 +5572,7 @@ const Q = Y.injectEndpoints({
5564
5572
  transformResponse: (t) => {
5565
5573
  const e = t?.project?.entityLists?.edges?.[0]?.node?.items?.fieldStats ?? [];
5566
5574
  return we(
5567
- e.map((s) => ({ ...s, columnName: zi(s.columnName) }))
5575
+ e.map((s) => ({ ...s, columnName: Ji(s.columnName) }))
5568
5576
  );
5569
5577
  },
5570
5578
  serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
@@ -5576,12 +5584,12 @@ const Q = Y.injectEndpoints({
5576
5584
  ]
5577
5585
  }
5578
5586
  }
5579
- }), { useGetListItemsColumnStatsQuery: gc } = Ki, Ji = ft.enhanceEndpoints({
5587
+ }), { useGetListItemsColumnStatsQuery: bc } = Yi, Zi = yt.enhanceEndpoints({
5580
5588
  endpoints: {
5581
5589
  setEntityListAttributesDefinition: {
5582
5590
  onQueryStarted: async (t, { dispatch: e, queryFulfilled: s }) => {
5583
5591
  const { entityListId: n, projectName: i, payload: r } = t, a = e(
5584
- ft.util.updateQueryData(
5592
+ yt.util.updateQueryData(
5585
5593
  "getEntityListAttributesDefinition",
5586
5594
  { entityListId: n, projectName: i },
5587
5595
  (c) => r
@@ -5598,7 +5606,7 @@ const Q = Y.injectEndpoints({
5598
5606
  ]
5599
5607
  }
5600
5608
  }
5601
- }), { useSetEntityListAttributesDefinitionMutation: hc } = Ji, Ge = { type: "entityListFolder", id: "LIST" }, Qe = le.enhanceEndpoints({
5609
+ }), { useSetEntityListAttributesDefinitionMutation: Ic } = Zi, Ge = { type: "entityListFolder", id: "LIST" }, Qe = le.enhanceEndpoints({
5602
5610
  endpoints: {
5603
5611
  getEntityListFolders: {
5604
5612
  transformResponse: (t) => t.folders || [],
@@ -5616,7 +5624,7 @@ const Q = Y.injectEndpoints({
5616
5624
  (r) => {
5617
5625
  const a = {
5618
5626
  ...e,
5619
- id: e.id || ds()
5627
+ id: e.id || us()
5620
5628
  };
5621
5629
  r.push(a);
5622
5630
  }
@@ -5686,15 +5694,15 @@ const Q = Y.injectEndpoints({
5686
5694
  }
5687
5695
  }
5688
5696
  }), {
5689
- useGetEntityListFoldersQuery: mc,
5690
- useCreateEntityListFolderMutation: vc,
5691
- useDeleteEntityListFolderMutation: bc,
5692
- useUpdateEntityListFolderMutation: Ic
5693
- } = Qe, Yi = $s.enhanceEndpoints({
5697
+ useGetEntityListFoldersQuery: Tc,
5698
+ useCreateEntityListFolderMutation: kc,
5699
+ useDeleteEntityListFolderMutation: wc,
5700
+ useUpdateEntityListFolderMutation: Ac
5701
+ } = Qe, Xi = xs.enhanceEndpoints({
5694
5702
  endpoints: {
5695
5703
  getEntityGroups: {}
5696
5704
  }
5697
- }), { useGetEntityGroupsQuery: Tc } = Yi, ss = async (t, e, s, n) => {
5705
+ }), { useGetEntityGroupsQuery: Ec } = Xi, ns = async (t, e, s, n) => {
5698
5706
  switch (t) {
5699
5707
  case "task":
5700
5708
  return (await n(
@@ -5741,7 +5749,7 @@ const Q = Y.injectEndpoints({
5741
5749
  default:
5742
5750
  throw new Error(`Unknown entity type: ${t}`);
5743
5751
  }
5744
- }, ns = ({
5752
+ }, is = ({
5745
5753
  projectName: t,
5746
5754
  sourceEntity: e,
5747
5755
  targetEntity: s,
@@ -5791,7 +5799,7 @@ const Q = Y.injectEndpoints({
5791
5799
  w !== -1 ? k.links[w] = I : (console.log(
5792
5800
  `Adding new link to ${l.entityType} links cache`,
5793
5801
  I,
5794
- sn(k)
5802
+ nn(k)
5795
5803
  ), k.links.push(I));
5796
5804
  }
5797
5805
  }
@@ -5812,7 +5820,7 @@ const Q = Y.injectEndpoints({
5812
5820
  ));
5813
5821
  };
5814
5822
  o(e, s, r), o(s, e, r === "in" ? "out" : "in");
5815
- }, Zi = xs.enhanceEndpoints({
5823
+ }, er = Us.enhanceEndpoints({
5816
5824
  endpoints: {
5817
5825
  deleteEntityLink: {
5818
5826
  async onQueryStarted({ linkId: t, projectName: e, patch: s }, { dispatch: n, getState: i, queryFulfilled: r }) {
@@ -5821,7 +5829,7 @@ const Q = Y.injectEndpoints({
5821
5829
  const u = s?.source, d = s?.target, o = s?.linkType || "", p = s?.direction || "out";
5822
5830
  if (u && d)
5823
5831
  try {
5824
- ns(
5832
+ is(
5825
5833
  {
5826
5834
  projectName: e,
5827
5835
  sourceEntity: u,
@@ -5856,12 +5864,12 @@ const Q = Y.injectEndpoints({
5856
5864
  const o = s?.source, p = o?.entityType, l = o?.entityId, f = s?.target, y = f?.entityType, h = f?.entityId, g = s?.direction || "out", m = a?.split("|")[0];
5857
5865
  try {
5858
5866
  if (o && o.entityType && f) {
5859
- const b = ss(
5867
+ const b = ns(
5860
5868
  p,
5861
5869
  l,
5862
5870
  t,
5863
5871
  n
5864
- ), v = ss(
5872
+ ), v = ns(
5865
5873
  y,
5866
5874
  h,
5867
5875
  t,
@@ -5886,7 +5894,7 @@ const Q = Y.injectEndpoints({
5886
5894
  parents: I.parents || [],
5887
5895
  subType: "subType" in I ? I.subType : void 0
5888
5896
  };
5889
- ns(
5897
+ is(
5890
5898
  {
5891
5899
  projectName: t,
5892
5900
  sourceEntity: w,
@@ -5914,7 +5922,7 @@ const Q = Y.injectEndpoints({
5914
5922
  }
5915
5923
  }
5916
5924
  }
5917
- }), { useDeleteEntityLinkMutation: kc, useCreateEntityLinkMutation: wc } = Zi, Xi = 50, ve = (t, e) => e ? { entityType: t, entityId: e.id, thumbnailHash: e.thumbnailHash || void 0 } : void 0, er = M.injectEndpoints({
5925
+ }), { useDeleteEntityLinkMutation: Sc, useCreateEntityLinkMutation: Lc } = er, tr = 50, ve = (t, e) => e ? { entityType: t, entityId: e.id, thumbnailHash: e.thumbnailHash || void 0 } : void 0, sr = M.injectEndpoints({
5918
5926
  endpoints: (t) => ({
5919
5927
  getSearchedEntitiesLinks: t.infiniteQuery({
5920
5928
  infiniteQueryOptions: {
@@ -5931,7 +5939,7 @@ const Q = Y.injectEndpoints({
5931
5939
  try {
5932
5940
  const { projectName: i, entityType: r, search: a, parentIds: c, hasReviewables: u, includeTask: d } = e, { cursor: o } = s, p = {
5933
5941
  projectName: i,
5934
- first: Xi
5942
+ first: tr
5935
5943
  };
5936
5944
  o && (p.after = o), p.search = a || "", p.parentIds = c, p.hasReviewables = u, p.includeTask = !!d;
5937
5945
  let l;
@@ -6069,7 +6077,7 @@ const Q = Y.injectEndpoints({
6069
6077
  }
6070
6078
  })
6071
6079
  })
6072
- }), { useGetSearchedEntitiesLinksInfiniteQuery: Ac } = er, tr = 5e3, sr = 5e4, nr = M.injectEndpoints({
6080
+ }), { useGetSearchedEntitiesLinksInfiniteQuery: Pc } = sr, nr = 5e3, ir = 5e4, rr = M.injectEndpoints({
6073
6081
  endpoints: (t) => ({
6074
6082
  /**
6075
6083
  * All links into or out of a set of entities, grouped by entity like
@@ -6086,7 +6094,7 @@ const Q = Y.injectEndpoints({
6086
6094
  do {
6087
6095
  const o = await i(
6088
6096
  M.endpoints[r].initiate(
6089
- { projectName: e, entityIds: s, first: tr, after: c },
6097
+ { projectName: e, entityIds: s, first: nr, after: c },
6090
6098
  { forceRefetch: !0, subscribe: !1 }
6091
6099
  )
6092
6100
  ).unwrap(), { edges: p, pageInfo: l } = o.project.links;
@@ -6100,14 +6108,14 @@ const Q = Y.injectEndpoints({
6100
6108
  // a node the user may not see is null
6101
6109
  node: g && {
6102
6110
  ...g,
6103
- label: ot(g),
6111
+ label: ct(g),
6104
6112
  parents: g.parents || [],
6105
6113
  subType: "subType" in g ? g.subType : void 0
6106
6114
  },
6107
6115
  isRestricted: !g
6108
6116
  });
6109
6117
  }
6110
- u += p.length, c = l.hasNextPage ? l.endCursor : void 0, d = !!c && u >= sr;
6118
+ u += p.length, c = l.hasNextPage ? l.endCursor : void 0, d = !!c && u >= ir;
6111
6119
  } while (c && !d);
6112
6120
  } catch (o) {
6113
6121
  return { error: P(o) };
@@ -6121,7 +6129,7 @@ const Q = Y.injectEndpoints({
6121
6129
  }
6122
6130
  })
6123
6131
  })
6124
- }), { useGetLinksOfEntitiesQuery: Ec } = nr, ir = os.enhanceEndpoints({
6132
+ }), { useGetLinksOfEntitiesQuery: jc } = rr, ar = cs.enhanceEndpoints({
6125
6133
  endpoints: {
6126
6134
  getMyPermissions: {
6127
6135
  providesTags: (t) => [{ type: "userPermissions" }]
@@ -6130,13 +6138,13 @@ const Q = Y.injectEndpoints({
6130
6138
  providesTags: (t, e, s) => [{ type: "userProjectPermissions" }]
6131
6139
  }
6132
6140
  }
6133
- }), { useGetMyPermissionsQuery: Sc, useGetMyProjectPermissionsQuery: Lc } = ir, Ls = Us.enhanceEndpoints({
6141
+ }), { useGetMyPermissionsQuery: Fc, useGetMyProjectPermissionsQuery: _c } = ar, Ps = Bs.enhanceEndpoints({
6134
6142
  endpoints: {
6135
6143
  getProductTypes: {
6136
6144
  providesTags: (t, e, s) => [{ type: "productType", id: "LIST" }]
6137
6145
  }
6138
6146
  }
6139
- }), { useGetProductTypesQuery: Pc } = Ls, rr = Ls.enhanceEndpoints({
6147
+ }), { useGetProductTypesQuery: Rc } = Ps, or = Ps.enhanceEndpoints({
6140
6148
  endpoints: {
6141
6149
  createProduct: {
6142
6150
  invalidatesTags: (t, e, { productPostModel: s }) => [
@@ -6144,7 +6152,7 @@ const Q = Y.injectEndpoints({
6144
6152
  ]
6145
6153
  }
6146
6154
  }
6147
- }), { useCreateProductMutation: jc } = rr, ar = R.enhanceEndpoints({
6155
+ }), { useCreateProductMutation: Gc } = or, cr = R.enhanceEndpoints({
6148
6156
  endpoints: {
6149
6157
  GetFolderProducts: {
6150
6158
  transformResponse: (t) => (t?.project?.products?.edges || []).map((s) => ({
@@ -6168,7 +6176,7 @@ const Q = Y.injectEndpoints({
6168
6176
  ] : [{ type: "product", id: s }]
6169
6177
  }
6170
6178
  }
6171
- }), { useGetFolderProductsQuery: Fc } = ar, ce = { type: "projectFolder", id: "LIST" }, Me = Bs.enhanceEndpoints({
6179
+ }), { useGetFolderProductsQuery: Cc } = cr, ce = { type: "projectFolder", id: "LIST" }, Me = qs.enhanceEndpoints({
6172
6180
  endpoints: {
6173
6181
  getProjectFolders: {
6174
6182
  transformResponse: (t) => t.folders || [],
@@ -6186,7 +6194,7 @@ const Q = Y.injectEndpoints({
6186
6194
  (i) => {
6187
6195
  const r = {
6188
6196
  ...t,
6189
- id: t.id || ds()
6197
+ id: t.id || us()
6190
6198
  };
6191
6199
  i.push(r);
6192
6200
  }
@@ -6275,7 +6283,7 @@ const Q = Y.injectEndpoints({
6275
6283
  })
6276
6284
  ),
6277
6285
  e(
6278
- ht.util.updateQueryData("getProjectsInfinite", {}, (a) => {
6286
+ mt.util.updateQueryData("getProjectsInfinite", {}, (a) => {
6279
6287
  for (const c of a.pages)
6280
6288
  c.projects.forEach((u) => {
6281
6289
  n.includes(u.name) && (u.projectFolder = i || void 0);
@@ -6297,13 +6305,13 @@ const Q = Y.injectEndpoints({
6297
6305
  }
6298
6306
  }
6299
6307
  }), {
6300
- useGetProjectFoldersQuery: _c,
6301
- useCreateProjectFolderMutation: Rc,
6302
- useDeleteProjectFolderMutation: Gc,
6303
- useUpdateProjectFolderMutation: Cc,
6304
- useSetProjectFoldersOrderMutation: Nc,
6305
- useAssignProjectsToFolderMutation: Qc
6306
- } = Me, or = (t, e, s, n) => {
6308
+ useGetProjectFoldersQuery: Nc,
6309
+ useCreateProjectFolderMutation: Qc,
6310
+ useDeleteProjectFolderMutation: Mc,
6311
+ useUpdateProjectFolderMutation: Vc,
6312
+ useSetProjectFoldersOrderMutation: Oc,
6313
+ useAssignProjectsToFolderMutation: Dc
6314
+ } = Me, dr = (t, e, s, n) => {
6307
6315
  const i = [
6308
6316
  s(
6309
6317
  B.util.updateQueryData("getProject", { projectName: t }, (a) => {
@@ -6326,7 +6334,7 @@ const Q = Y.injectEndpoints({
6326
6334
  )
6327
6335
  );
6328
6336
  return i;
6329
- }, cr = "#cacaca", dr = B.injectEndpoints({
6337
+ }, ur = "#cacaca", lr = B.injectEndpoints({
6330
6338
  endpoints: (t) => ({
6331
6339
  // adds the tags to the project anatomy, and sets the colours of the ones given with a colour
6332
6340
  saveProjectTags: t.mutation({
@@ -6339,10 +6347,10 @@ const Q = Y.injectEndpoints({
6339
6347
  let c = !1;
6340
6348
  for (const o of s) {
6341
6349
  const p = a.findIndex((l) => l.name === o.name);
6342
- p === -1 ? (a.push({ name: o.name, color: o.color || cr }), c = !0) : o.color && a[p].color !== o.color && (a[p] = { ...a[p], color: o.color }, c = !0);
6350
+ p === -1 ? (a.push({ name: o.name, color: o.color || ur }), c = !0) : o.color && a[p].color !== o.color && (a[p] = { ...a[p], color: o.color }, c = !0);
6343
6351
  }
6344
6352
  if (!c) return { data: void 0 };
6345
- const u = or(e, a, n, i), d = await n(
6353
+ const u = dr(e, a, n, i), d = await n(
6346
6354
  he.endpoints.updateProject.initiate(
6347
6355
  {
6348
6356
  projectName: e,
@@ -6357,7 +6365,7 @@ const Q = Y.injectEndpoints({
6357
6365
  }
6358
6366
  })
6359
6367
  })
6360
- }), { useSaveProjectTagsMutation: Mc } = dr, Ps = (t, {
6368
+ }), { useSaveProjectTagsMutation: $c } = lr, js = (t, {
6361
6369
  productId: e,
6362
6370
  taskId: s,
6363
6371
  folderId: n,
@@ -6392,11 +6400,11 @@ const Q = Y.injectEndpoints({
6392
6400
  a.push(...d);
6393
6401
  }
6394
6402
  return a;
6395
- }, ur = X.enhanceEndpoints({
6403
+ }, pr = X.enhanceEndpoints({
6396
6404
  endpoints: {
6397
6405
  getReviewablesForVersion: {
6398
6406
  keepUnusedDataFor: 1,
6399
- providesTags: (t, e, { versionId: s }) => Ps([t], { versionId: s, productId: t?.productId }),
6407
+ providesTags: (t, e, { versionId: s }) => js([t], { versionId: s, productId: t?.productId }),
6400
6408
  async onCacheEntryAdded({ versionId: t }, { updateCachedData: e, cacheDataLoaded: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) {
6401
6409
  let a;
6402
6410
  const c = $(
@@ -6455,7 +6463,7 @@ const Q = Y.injectEndpoints({
6455
6463
  }
6456
6464
  }
6457
6465
  }
6458
- }), It = ur.injectEndpoints({
6466
+ }), Tt = pr.injectEndpoints({
6459
6467
  endpoints: (t) => ({
6460
6468
  // custom endpoint to get reviewables from product/task/folder
6461
6469
  // utilizes getReviewablesForProduct, getReviewablesForTask, getReviewablesForFolder
@@ -6490,7 +6498,7 @@ const Q = Y.injectEndpoints({
6490
6498
  const c = await r(a);
6491
6499
  return c.error ? { error: P(c.error) } : { data: c.data };
6492
6500
  },
6493
- providesTags: (e, s, n) => Ps(e, n, !0),
6501
+ providesTags: (e, s, n) => js(e, n, !0),
6494
6502
  async onCacheEntryAdded({ productId: e, taskId: s, folderId: n }, { cacheDataLoaded: i, cacheEntryRemoved: r, dispatch: a, getCacheEntry: c }) {
6495
6503
  let u;
6496
6504
  const d = $(
@@ -6516,16 +6524,16 @@ const Q = Y.injectEndpoints({
6516
6524
  }),
6517
6525
  hasTranscoder: t.query({
6518
6526
  queryFn: async (e, { dispatch: s }) => {
6519
- const n = await s(As.endpoints.listAddons.initiate({ details: !1 }));
6527
+ const n = await s(Es.endpoints.listAddons.initiate({ details: !1 }));
6520
6528
  return n.data ? { data: n.data.addons.some((r) => r.name === "transcoder") } : n.error ? { data: !1 } : { data: !1 };
6521
6529
  }
6522
6530
  })
6523
6531
  })
6524
6532
  }), {
6525
- useGetViewerReviewablesQuery: Vc,
6526
- useGetReviewablesForVersionQuery: Oc,
6527
- useHasTranscoderQuery: Dc
6528
- } = It, lr = It.injectEndpoints({
6533
+ useGetViewerReviewablesQuery: xc,
6534
+ useGetReviewablesForVersionQuery: Uc,
6535
+ useHasTranscoderQuery: Bc
6536
+ } = Tt, fr = Tt.injectEndpoints({
6529
6537
  endpoints: (t) => ({
6530
6538
  deleteReviewable: t.mutation(
6531
6539
  {
@@ -6543,13 +6551,13 @@ const Q = Y.injectEndpoints({
6543
6551
  }
6544
6552
  )
6545
6553
  })
6546
- }), pr = lr.enhanceEndpoints({
6554
+ }), yr = fr.enhanceEndpoints({
6547
6555
  endpoints: {
6548
6556
  // reviewables list is updated optimistically
6549
6557
  sortVersionReviewables: {
6550
6558
  async onQueryStarted({ projectName: t, versionId: e, sortReviewablesRequest: s }, { dispatch: n, queryFulfilled: i }) {
6551
6559
  const r = n(
6552
- It.util.updateQueryData(
6560
+ Tt.util.updateQueryData(
6553
6561
  "getReviewablesForVersion",
6554
6562
  { projectName: t, versionId: e },
6555
6563
  (a) => {
@@ -6576,16 +6584,16 @@ const Q = Y.injectEndpoints({
6576
6584
  }
6577
6585
  }
6578
6586
  }), {
6579
- useDeleteReviewableMutation: $c,
6580
- useSortVersionReviewablesMutation: xc,
6581
- useUpdateReviewableMutation: Uc
6582
- } = pr, is = (t) => {
6587
+ useDeleteReviewableMutation: qc,
6588
+ useSortVersionReviewablesMutation: Hc,
6589
+ useUpdateReviewableMutation: Wc
6590
+ } = yr, rs = (t) => {
6583
6591
  const e = [{ type: "shared", id: "LIST" }];
6584
6592
  return t && e.push({
6585
6593
  type: "shared",
6586
6594
  id: t.toUpperCase()
6587
6595
  }), e;
6588
- }, fr = (t) => {
6596
+ }, gr = (t) => {
6589
6597
  const e = [];
6590
6598
  for (const s of t) {
6591
6599
  const n = { type: "shared", id: s.value };
@@ -6611,14 +6619,14 @@ const Q = Y.injectEndpoints({
6611
6619
  }
6612
6620
  }
6613
6621
  return e;
6614
- }, yr = as.enhanceEndpoints({
6622
+ }, hr = os.enhanceEndpoints({
6615
6623
  endpoints: {
6616
6624
  getShareOptions: {
6617
6625
  transformResponse: (t) => t?.options || [],
6618
- providesTags: (t, e, { projectName: s }) => t ? [...fr(t), ...is(s)] : is(s)
6626
+ providesTags: (t, e, { projectName: s }) => t ? [...gr(t), ...rs(s)] : rs(s)
6619
6627
  }
6620
6628
  }
6621
- }), { useGetShareOptionsQuery: Bc } = yr, js = qs.enhanceEndpoints({
6629
+ }), { useGetShareOptionsQuery: zc } = hr, Fs = Hs.enhanceEndpoints({
6622
6630
  endpoints: {
6623
6631
  getSiteInfo: {
6624
6632
  providesTags: (t) => t ? [
@@ -6640,7 +6648,7 @@ const Q = Y.injectEndpoints({
6640
6648
  let i;
6641
6649
  try {
6642
6650
  await s, i = F.subscribe("bundle", () => {
6643
- e(js.util.invalidateTags(["frontendModules", "addonList", "bundleList"]));
6651
+ e(Fs.util.invalidateTags(["frontendModules", "addonList", "bundleList"]));
6644
6652
  });
6645
6653
  } catch {
6646
6654
  }
@@ -6648,7 +6656,7 @@ const Q = Y.injectEndpoints({
6648
6656
  }
6649
6657
  }
6650
6658
  }
6651
- }), { useGetSiteInfoQuery: qc, useLazyGetSiteInfoQuery: Hc, useListFrontendModulesQuery: Wc } = js, gr = rt.enhanceEndpoints({
6659
+ }), { useGetSiteInfoQuery: Kc, useLazyGetSiteInfoQuery: Jc, useListFrontendModulesQuery: Yc } = Fs, mr = rt.enhanceEndpoints({
6652
6660
  endpoints: {
6653
6661
  getTask: {
6654
6662
  providesTags: (t, e, { taskId: s }) => [
@@ -6656,7 +6664,7 @@ const Q = Y.injectEndpoints({
6656
6664
  ]
6657
6665
  }
6658
6666
  }
6659
- }), { useGetTaskQuery: zc } = gr, hr = (t, e, { state: s, dispatch: n }, i) => {
6667
+ }), { useGetTaskQuery: Zc } = mr, vr = (t, e, { state: s, dispatch: n }, i) => {
6660
6668
  const r = [{ type: "entityListItem", id: t }], a = U.util.selectInvalidatedBy(s, r).filter((c) => c.endpointName === "getListItemsInfinite");
6661
6669
  for (const c of a) {
6662
6670
  const u = n(
@@ -6672,7 +6680,7 @@ const Q = Y.injectEndpoints({
6672
6680
  );
6673
6681
  i.push(u);
6674
6682
  }
6675
- }, mr = rt.injectEndpoints({
6683
+ }, br = rt.injectEndpoints({
6676
6684
  endpoints: (t) => ({
6677
6685
  updateSubtasks: t.mutation({
6678
6686
  queryFn: async ({ projectName: e, taskId: s, subtasks: n }, { dispatch: i }) => {
@@ -6698,7 +6706,7 @@ const Q = Y.injectEndpoints({
6698
6706
  data: { subtasks: s }
6699
6707
  }
6700
6708
  ];
6701
- Se(u, { state: a, dispatch: n }, c), hs(u, { state: a, dispatch: n }, c), hr(e, s, { state: a, dispatch: n }, c);
6709
+ Se(u, { state: a, dispatch: n }, c), ms(u, { state: a, dispatch: n }, c), vr(e, s, { state: a, dispatch: n }, c);
6702
6710
  try {
6703
6711
  await i;
6704
6712
  } catch {
@@ -6707,7 +6715,7 @@ const Q = Y.injectEndpoints({
6707
6715
  }
6708
6716
  })
6709
6717
  })
6710
- }), { useUpdateSubtasksMutation: Kc } = mr, te = { type: "team", id: "LIST" }, vr = Hs.enhanceEndpoints({
6718
+ }), { useUpdateSubtasksMutation: Xc } = br, te = { type: "team", id: "LIST" }, Ir = Ws.enhanceEndpoints({
6711
6719
  endpoints: {
6712
6720
  getTeams: {
6713
6721
  providesTags: (t) => t ? [te, ...t.map((e) => ({ type: "team", id: e.name }))] : [te]
@@ -6745,13 +6753,13 @@ const Q = Y.injectEndpoints({
6745
6753
  }
6746
6754
  }
6747
6755
  }), {
6748
- useGetTeamsQuery: Jc,
6749
- useUpdateTeamsMutation: Yc,
6750
- useSaveTeamMutation: Zc,
6751
- useDeleteTeamMutation: Xc,
6752
- useSaveTeamMemberMutation: ed,
6753
- useDeleteTeamMemberMutation: td
6754
- } = vr, br = `
6756
+ useGetTeamsQuery: ed,
6757
+ useUpdateTeamsMutation: td,
6758
+ useSaveTeamMutation: sd,
6759
+ useDeleteTeamMutation: nd,
6760
+ useSaveTeamMemberMutation: id,
6761
+ useDeleteTeamMemberMutation: rd
6762
+ } = Ir, Tr = `
6755
6763
  query UserList($name:String!) {
6756
6764
  users(name: $name) {
6757
6765
  edges {
@@ -6773,7 +6781,7 @@ const Q = Y.injectEndpoints({
6773
6781
  }
6774
6782
  }
6775
6783
  }
6776
- `, Ir = `
6784
+ `, kr = `
6777
6785
  query UserList {
6778
6786
  users(last: 5000, isSupport: false) {
6779
6787
  edges {
@@ -6801,7 +6809,7 @@ const Q = Y.injectEndpoints({
6801
6809
  }
6802
6810
  }
6803
6811
  }
6804
- `, Tr = `
6812
+ `, wr = `
6805
6813
  query Assignees($names: [String!]!){
6806
6814
  users(names: $names, isSupport: false) {
6807
6815
  edges {
@@ -6811,7 +6819,7 @@ query Assignees($names: [String!]!){
6811
6819
  }
6812
6820
  }
6813
6821
  }
6814
- }`, kr = `
6822
+ }`, Ar = `
6815
6823
  query Assignees($projectName: String) {
6816
6824
  users(last: 5000, projectName: $projectName, isSupport: false) {
6817
6825
  edges {
@@ -6821,7 +6829,7 @@ query Assignees($projectName: String) {
6821
6829
  }
6822
6830
  }
6823
6831
  }
6824
- }`, wr = (t) => {
6832
+ }`, Er = (t) => {
6825
6833
  const e = String(t.value);
6826
6834
  return {
6827
6835
  name: e,
@@ -6829,7 +6837,7 @@ query Assignees($projectName: String) {
6829
6837
  avatarUrl: `/api/users/${e}/avatar`,
6830
6838
  hidden: t.hidden
6831
6839
  };
6832
- }, Ar = os.enhanceEndpoints({
6840
+ }, Sr = cs.enhanceEndpoints({
6833
6841
  endpoints: {
6834
6842
  getCurrentUser: {
6835
6843
  providesTags: [{ type: "user", id: "LIST" }]
@@ -6842,14 +6850,14 @@ query Assignees($projectName: String) {
6842
6850
  providesTags: (t, e, { userName: s }) => [{ type: "session", id: s }]
6843
6851
  }
6844
6852
  }
6845
- }), Er = R.injectEndpoints({
6853
+ }), Lr = R.injectEndpoints({
6846
6854
  endpoints: (t) => ({
6847
6855
  getUsers: t.query({
6848
6856
  query: () => ({
6849
6857
  url: "/graphql",
6850
6858
  method: "POST",
6851
6859
  body: {
6852
- query: Ir,
6860
+ query: kr,
6853
6861
  variables: {}
6854
6862
  }
6855
6863
  }),
@@ -6871,7 +6879,7 @@ query Assignees($projectName: String) {
6871
6879
  url: "/graphql",
6872
6880
  method: "POST",
6873
6881
  body: {
6874
- query: br,
6882
+ query: Tr,
6875
6883
  variables: { name: e }
6876
6884
  }
6877
6885
  }),
@@ -6886,7 +6894,7 @@ query Assignees($projectName: String) {
6886
6894
  async queryFn({ names: e, projectName: s }, n, i, r) {
6887
6895
  if (!e && s) {
6888
6896
  const u = await n.dispatch(
6889
- Ws.endpoints.getEnumOptions.initiate(
6897
+ zs.endpoints.getEnumOptions.initiate(
6890
6898
  {
6891
6899
  enumName: "users",
6892
6900
  params: { project_name: s, mode: "users", hide_inactive: !0 }
@@ -6894,13 +6902,13 @@ query Assignees($projectName: String) {
6894
6902
  { subscribe: !1, forceRefetch: n.forced }
6895
6903
  )
6896
6904
  ).unwrap();
6897
- return u.error ? { error: P(u.error) } : { data: u.items.map(wr) };
6905
+ return u.error ? { error: P(u.error) } : { data: u.items.map(Er) };
6898
6906
  }
6899
6907
  const a = await r({
6900
6908
  url: "/graphql",
6901
6909
  method: "POST",
6902
6910
  body: {
6903
- query: e ? Tr : kr,
6911
+ query: e ? wr : Ar,
6904
6912
  variables: { names: e, projectName: s }
6905
6913
  }
6906
6914
  });
@@ -6924,7 +6932,7 @@ query Assignees($projectName: String) {
6924
6932
  })
6925
6933
  }),
6926
6934
  overrideExisting: !0
6927
- }), Sr = Er.enhanceEndpoints({
6935
+ }), Pr = Lr.enhanceEndpoints({
6928
6936
  endpoints: {
6929
6937
  GetAllProjectUsersAsAssignee: {
6930
6938
  transformResponse: (t) => t.users.edges.map((e) => ({
@@ -6948,14 +6956,14 @@ query Assignees($projectName: String) {
6948
6956
  }
6949
6957
  }
6950
6958
  }), {
6951
- useGetAllProjectUsersAsAssigneeQuery: sd,
6952
- useLazyGetAllProjectUsersAsAssigneeQuery: nd,
6953
- useGetActiveUsersCountQuery: id,
6954
- useGetAllAssigneesQuery: rd,
6955
- useGetUsersQuery: ad,
6956
- useGetUserByNameQuery: od,
6957
- useGetUsersAssigneeQuery: cd
6958
- } = Sr, { useGetUserSessionsQuery: dd, useGetCurrentUserQuery: ud, useGetUserQuery: ld } = Ar, Lr = he.enhanceEndpoints({
6959
+ useGetAllProjectUsersAsAssigneeQuery: ad,
6960
+ useLazyGetAllProjectUsersAsAssigneeQuery: od,
6961
+ useGetActiveUsersCountQuery: cd,
6962
+ useGetAllAssigneesQuery: dd,
6963
+ useGetUsersQuery: ud,
6964
+ useGetUserByNameQuery: ld,
6965
+ useGetUsersAssigneeQuery: pd
6966
+ } = Pr, { useGetUserSessionsQuery: fd, useGetCurrentUserQuery: yd, useGetUserQuery: gd } = Sr, jr = he.enhanceEndpoints({
6959
6967
  endpoints: {
6960
6968
  listGuestUsers: {
6961
6969
  providesTags: (t) => t?.users ? [
@@ -6970,7 +6978,7 @@ query Assignees($projectName: String) {
6970
6978
  invalidatesTags: (t, e, s) => [{ type: "guest", id: s.email }]
6971
6979
  }
6972
6980
  }
6973
- }), { useListGuestUsersQuery: pd, useAddGuestUserMutation: fd, useRemoveGuestUserMutation: yd } = Lr, Pr = R.enhanceEndpoints({
6981
+ }), { useListGuestUsersQuery: hd, useAddGuestUserMutation: md, useRemoveGuestUserMutation: vd } = jr, Fr = R.enhanceEndpoints({
6974
6982
  endpoints: {
6975
6983
  GetLatestProductVersion: {
6976
6984
  transformResponse: (t) => t.project.versions.edges[0]?.node,
@@ -6980,7 +6988,7 @@ query Assignees($projectName: String) {
6980
6988
  ] : [{ type: "product", id: s }]
6981
6989
  }
6982
6990
  }
6983
- }), { useGetLatestProductVersionQuery: gd } = Pr, jr = zs.enhanceEndpoints({
6991
+ }), { useGetLatestProductVersionQuery: bd } = Fr, _r = Ks.enhanceEndpoints({
6984
6992
  endpoints: {
6985
6993
  getVersion: {},
6986
6994
  createVersion: {
@@ -6999,10 +7007,10 @@ query Assignees($projectName: String) {
6999
7007
  ]
7000
7008
  }
7001
7009
  }
7002
- }), { useGetVersionQuery: hd, useCreateVersionMutation: md, useDeleteVersionMutation: vd } = jr, q = (t, e) => ({
7010
+ }), { useGetVersionQuery: Id, useCreateVersionMutation: Td, useDeleteVersionMutation: kd } = _r, q = (t, e) => ({
7003
7011
  type: "view",
7004
7012
  id: `${t.toUpperCase()}${e ? `:${e.toUpperCase()}` : ""}`
7005
- }), Ce = { type: "view", id: "LIST" }, V = Ks.enhanceEndpoints({
7013
+ }), Ce = { type: "view", id: "LIST" }, V = Js.enhanceEndpoints({
7006
7014
  endpoints: {
7007
7015
  listViews: {
7008
7016
  transformResponse: (t) => t?.views || [],
@@ -7030,12 +7038,12 @@ query Assignees($projectName: String) {
7030
7038
  }
7031
7039
  }
7032
7040
  }), {
7033
- useListViewsQuery: bd,
7034
- useGetWorkingViewQuery: Id,
7035
- useGetViewQuery: Td,
7036
- useGetDefaultViewQuery: kd,
7037
- useGetBaseViewQuery: wd
7038
- } = V, Fr = V.enhanceEndpoints({
7041
+ useListViewsQuery: wd,
7042
+ useGetWorkingViewQuery: Ad,
7043
+ useGetViewQuery: Ed,
7044
+ useGetDefaultViewQuery: Sd,
7045
+ useGetBaseViewQuery: Ld
7046
+ } = V, Rr = V.enhanceEndpoints({
7039
7047
  endpoints: {
7040
7048
  createView: {
7041
7049
  onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
@@ -7089,7 +7097,7 @@ query Assignees($projectName: String) {
7089
7097
  let d;
7090
7098
  if (i.label === "__base__") {
7091
7099
  const o = {
7092
- id: Ys(),
7100
+ id: Zs(),
7093
7101
  ...i,
7094
7102
  working: !1,
7095
7103
  scope: t.projectName ? "project" : "studio",
@@ -7268,16 +7276,16 @@ query Assignees($projectName: String) {
7268
7276
  }
7269
7277
  }
7270
7278
  }), {
7271
- useCreateViewMutation: Ad,
7272
- useUpdateViewMutation: Ed,
7273
- useDeleteViewMutation: Sd,
7274
- useSetDefaultViewMutation: Ld
7275
- } = Fr, Be = Le.enhanceEndpoints({
7279
+ useCreateViewMutation: Pd,
7280
+ useUpdateViewMutation: jd,
7281
+ useDeleteViewMutation: Fd,
7282
+ useSetDefaultViewMutation: _d
7283
+ } = Rr, Be = Le.enhanceEndpoints({
7276
7284
  endpoints: {
7277
7285
  getEntityWatchers: {},
7278
7286
  setEntityWatchers: {}
7279
7287
  }
7280
- }), rs = Be.injectEndpoints({
7288
+ }), as = Be.injectEndpoints({
7281
7289
  endpoints: (t) => ({
7282
7290
  getEntitiesWatchers: t.query({
7283
7291
  async queryFn({ entities: e = [] }, { dispatch: s }) {
@@ -7304,7 +7312,7 @@ query Assignees($projectName: String) {
7304
7312
  ])
7305
7313
  })
7306
7314
  })
7307
- }), _r = rs.injectEndpoints({
7315
+ }), Gr = as.injectEndpoints({
7308
7316
  endpoints: (t) => ({
7309
7317
  setEntitiesWatchers: t.mutation({
7310
7318
  async queryFn({ entities: e = [] }, { dispatch: s }) {
@@ -7331,7 +7339,7 @@ query Assignees($projectName: String) {
7331
7339
  try {
7332
7340
  c.forEach((d) => {
7333
7341
  const o = s(
7334
- rs.util.updateQueryData(
7342
+ as.util.updateQueryData(
7335
7343
  "getEntitiesWatchers",
7336
7344
  d.originalArgs,
7337
7345
  (p) => {
@@ -7356,305 +7364,308 @@ query Assignees($projectName: String) {
7356
7364
  invalidatesTags: (e, s, { entities: n }) => n.some((i) => i.entityType === "task") ? [{ type: "watchers", id: "VERSION-LIST" }] : []
7357
7365
  })
7358
7366
  })
7359
- }), { useGetEntitiesWatchersQuery: Pd, useSetEntitiesWatchersMutation: jd } = _r, Rr = Js.enhanceEndpoints({
7367
+ }), { useGetEntitiesWatchersQuery: Rd, useSetEntitiesWatchersMutation: Gd } = Gr, Cr = Ys.enhanceEndpoints({
7360
7368
  endpoints: {
7361
7369
  resolveUris: {}
7362
7370
  }
7363
- }), { useResolveUrisMutation: Fd } = Rr;
7371
+ }), { useResolveUrisMutation: Cd } = Cr;
7364
7372
  export {
7365
7373
  Ee as $,
7366
- Ji as A,
7374
+ Zi as A,
7367
7375
  U as B,
7368
- Qn as C,
7369
- cr as D,
7370
- Xi as E,
7371
- Bn as F,
7372
- gi as G,
7376
+ Vn as C,
7377
+ ur as D,
7378
+ tr as E,
7379
+ Hn as F,
7380
+ mi as G,
7373
7381
  se as H,
7374
- mi as I,
7375
- hi as J,
7382
+ bi as I,
7383
+ vi as J,
7376
7384
  De as K,
7377
- uc as L,
7378
- Vn as M,
7379
- Wn as N,
7385
+ yc as L,
7386
+ Dn as M,
7387
+ Kn as N,
7380
7388
  ge as O,
7381
- Un as P,
7382
- ta as Q,
7383
- ys as R,
7384
- Gn as S,
7389
+ qn as P,
7390
+ na as Q,
7391
+ gs as R,
7392
+ Nn as S,
7385
7393
  He as T,
7386
- ht as U,
7387
- xn as V,
7388
- It as W,
7394
+ mt as U,
7395
+ Bn as V,
7396
+ Tt as W,
7389
7397
  q as X,
7390
7398
  V as Y,
7391
- oa as Z,
7392
- Yi as _,
7393
- jt as a,
7394
- Ra as a$,
7399
+ la as Z,
7400
+ Xi as _,
7401
+ Ft as a,
7402
+ Qa as a$,
7395
7403
  Q as a0,
7396
- at as a1,
7397
- pt as a2,
7398
- Gi as a3,
7404
+ ot as a1,
7405
+ ft as a2,
7406
+ Ni as a3,
7399
7407
  Ae as a4,
7400
7408
  we as a5,
7401
- da as a6,
7402
- Wt as a7,
7409
+ fa as a6,
7410
+ zt as a7,
7403
7411
  G as a8,
7404
- hs as a9,
7405
- sa as aA,
7412
+ ms as a9,
7413
+ aa as aA,
7406
7414
  Fe as aB,
7407
- bi as aC,
7408
- ks as aD,
7409
- Ht as aE,
7410
- fd as aF,
7411
- Qc as aG,
7412
- Wo as aH,
7413
- Jo as aI,
7414
- So as aJ,
7415
- wc as aK,
7416
- vc as aL,
7417
- _a as aM,
7418
- Ea as aN,
7419
- jc as aO,
7420
- Rc as aP,
7421
- jo as aQ,
7422
- Ga as aR,
7423
- Uo as aS,
7424
- md as aT,
7425
- Ad as aU,
7426
- Kr as aV,
7427
- Lo as aW,
7428
- Mo as aX,
7429
- Ko as aY,
7430
- kc as aZ,
7431
- bc as a_,
7432
- gs as aa,
7433
- hr as ab,
7434
- oo as ac,
7415
+ Ti as aC,
7416
+ ws as aD,
7417
+ Wt as aE,
7418
+ md as aF,
7419
+ Dc as aG,
7420
+ Yo as aH,
7421
+ ec as aI,
7422
+ Fo as aJ,
7423
+ Lc as aK,
7424
+ kc as aL,
7425
+ Na as aM,
7426
+ ja as aN,
7427
+ Gc as aO,
7428
+ Qc as aP,
7429
+ Go as aQ,
7430
+ Ma as aR,
7431
+ Wo as aS,
7432
+ Td as aT,
7433
+ Pd as aU,
7434
+ Yr as aV,
7435
+ _o as aW,
7436
+ $o as aX,
7437
+ Xo as aY,
7438
+ Sc as aZ,
7439
+ wc as a_,
7440
+ hs as aa,
7441
+ vr as ab,
7442
+ po as ac,
7435
7443
  xe as ad,
7436
7444
  Se as ae,
7437
- si as af,
7438
- ri as ag,
7439
- ni as ah,
7440
- ir as ai,
7441
- vt as aj,
7445
+ ii as af,
7446
+ oi as ag,
7447
+ ri as ah,
7448
+ ar as ai,
7449
+ bt as aj,
7442
7450
  B as ak,
7443
7451
  z as al,
7444
- fi as am,
7445
- yi as an,
7446
- pi as ao,
7452
+ gi as am,
7453
+ hi as an,
7454
+ yi as ao,
7447
7455
  Ue as ap,
7448
- Ri as aq,
7449
- pc as ar,
7450
- pr as as,
7451
- ca as at,
7452
- yr as au,
7453
- ra as av,
7454
- js as aw,
7455
- Fn as ax,
7456
- vr as ay,
7457
- yc as az,
7456
+ Ci as aq,
7457
+ hc as ar,
7458
+ yr as as,
7459
+ pa as at,
7460
+ hr as au,
7461
+ da as av,
7462
+ Fs as aw,
7463
+ Rn as ax,
7464
+ Ir as ay,
7465
+ vc as az,
7458
7466
  ze as b,
7459
- Ia as b$,
7460
- La as b0,
7461
- Gc as b1,
7462
- Ya as b2,
7463
- Fo as b3,
7464
- $c as b4,
7465
- td as b5,
7466
- Xc as b6,
7467
- vd as b7,
7468
- Sd as b8,
7469
- nc as b9,
7470
- Pd as bA,
7471
- Tc as bB,
7472
- uo as bC,
7473
- fc as bD,
7474
- mc as bE,
7475
- Aa as bF,
7476
- _o as bG,
7477
- xa as bH,
7478
- $a as bI,
7479
- vo as bJ,
7480
- Da as bK,
7481
- ic as bL,
7482
- ha as bM,
7483
- Qa as bN,
7484
- Ca as bO,
7485
- Na as bP,
7486
- Fc as bQ,
7487
- ga as bR,
7488
- mo as bS,
7489
- so as bT,
7490
- to as bU,
7491
- gd as bV,
7492
- Ec as bW,
7493
- gc as bX,
7494
- ba as bY,
7495
- ka as bZ,
7496
- va as b_,
7497
- Ja as ba,
7498
- Vo as bb,
7499
- Pa as bc,
7500
- Zr as bd,
7501
- Br as be,
7502
- qr as bf,
7503
- Ur as bg,
7504
- Xr as bh,
7505
- Jr as bi,
7506
- id as bj,
7507
- bo as bk,
7508
- wo as bl,
7509
- ko as bm,
7510
- Ro as bn,
7511
- Ao as bo,
7512
- rd as bp,
7513
- sd as bq,
7514
- Do as br,
7515
- Oo as bs,
7516
- wd as bt,
7517
- cc as bu,
7518
- ud as bv,
7519
- Qo as bw,
7520
- kd as bx,
7521
- To as by,
7522
- Va as bz,
7523
- sr as c,
7524
- pd as c$,
7525
- lc as c0,
7526
- Sc as c1,
7527
- Lc as c2,
7528
- ua as c3,
7529
- Ba as c4,
7530
- po as c5,
7531
- ho as c6,
7532
- Co as c7,
7533
- za as c8,
7534
- zo as c9,
7535
- cd as cA,
7536
- ad as cB,
7537
- hd as cC,
7538
- go as cD,
7539
- fo as cE,
7540
- Eo as cF,
7541
- yo as cG,
7542
- lo as cH,
7543
- Td as cI,
7544
- Vc as cJ,
7545
- Id as cK,
7546
- tc as cL,
7547
- Dc as cM,
7548
- Yr as cN,
7549
- Io as cO,
7550
- nd as cP,
7551
- Oa as cQ,
7552
- Ua as cR,
7553
- Ma as cS,
7554
- wa as cT,
7555
- Ta as cU,
7556
- Hc as cV,
7557
- ya as cW,
7558
- Ho as cX,
7559
- Ni as cY,
7560
- qo as cZ,
7561
- Wc as c_,
7562
- _c as ca,
7563
- Ha as cb,
7564
- Hr as cc,
7565
- Go as cd,
7566
- Ka as ce,
7567
- no as cf,
7568
- Oc as cg,
7569
- la as ch,
7570
- qa as ci,
7571
- Ac as cj,
7572
- ac as ck,
7573
- rc as cl,
7574
- oc as cm,
7575
- No as cn,
7576
- Bc as co,
7577
- qc as cp,
7578
- xr as cq,
7579
- ma as cr,
7580
- zc as cs,
7581
- fa as ct,
7582
- pa as cu,
7583
- Jc as cv,
7584
- od as cw,
7585
- Bo as cx,
7586
- ld as cy,
7587
- dd as cz,
7588
- Rt as d,
7589
- Wa as d0,
7590
- bd as d1,
7591
- Zo as d2,
7592
- xo as d3,
7593
- Yo as d4,
7594
- yd as d5,
7595
- Fd as d6,
7596
- zr as d7,
7597
- Mc as d8,
7598
- ed as d9,
7599
- Uc as dA,
7600
- Kc as dB,
7601
- Yc as dC,
7602
- Ed as dD,
7603
- li as dE,
7604
- jr as dF,
7605
- Fr as dG,
7606
- _r as dH,
7607
- Bi as dI,
7608
- Pc as dJ,
7609
- gt as dK,
7610
- En as dL,
7611
- ia as dM,
7612
- ps as dN,
7613
- Zc as da,
7614
- ea as db,
7615
- $o as dc,
7616
- Ld as dd,
7617
- jd as de,
7618
- hc as df,
7619
- Za as dg,
7620
- eo as dh,
7621
- Nc as di,
7622
- Wr as dj,
7623
- dc as dk,
7624
- sc as dl,
7625
- xc as dm,
7626
- ec as dn,
7627
- Po as dp,
7628
- Xo as dq,
7629
- io as dr,
7630
- Ic as ds,
7631
- Fa as dt,
7632
- ja as du,
7633
- Sa as dv,
7634
- ro as dw,
7635
- co as dx,
7636
- Cc as dy,
7637
- Xa as dz,
7638
- $n as e,
7467
+ Aa as b$,
7468
+ _a as b0,
7469
+ Mc as b1,
7470
+ to as b2,
7471
+ Co as b3,
7472
+ qc as b4,
7473
+ rd as b5,
7474
+ nd as b6,
7475
+ kd as b7,
7476
+ Fd as b8,
7477
+ oc as b9,
7478
+ Rd as bA,
7479
+ Ec as bB,
7480
+ yo as bC,
7481
+ mc as bD,
7482
+ Tc as bE,
7483
+ Pa as bF,
7484
+ No as bG,
7485
+ Ha as bH,
7486
+ qa as bI,
7487
+ ko as bJ,
7488
+ Ba as bK,
7489
+ cc as bL,
7490
+ Ia as bM,
7491
+ Da as bN,
7492
+ Va as bO,
7493
+ Oa as bP,
7494
+ Cc as bQ,
7495
+ ba as bR,
7496
+ To as bS,
7497
+ ao as bT,
7498
+ ro as bU,
7499
+ bd as bV,
7500
+ jc as bW,
7501
+ bc as bX,
7502
+ wa as bY,
7503
+ Sa as bZ,
7504
+ ka as b_,
7505
+ eo as ba,
7506
+ xo as bb,
7507
+ Ra as bc,
7508
+ ea as bd,
7509
+ Hr as be,
7510
+ Wr as bf,
7511
+ qr as bg,
7512
+ ta as bh,
7513
+ Zr as bi,
7514
+ cd as bj,
7515
+ wo as bk,
7516
+ Lo as bl,
7517
+ So as bm,
7518
+ Qo as bn,
7519
+ Po as bo,
7520
+ dd as bp,
7521
+ ad as bq,
7522
+ Bo as br,
7523
+ Uo as bs,
7524
+ Ld as bt,
7525
+ pc as bu,
7526
+ yd as bv,
7527
+ Do as bw,
7528
+ Sd as bx,
7529
+ Eo as by,
7530
+ xa as bz,
7531
+ ir as c,
7532
+ hd as c$,
7533
+ gc as c0,
7534
+ Fc as c1,
7535
+ _c as c2,
7536
+ ya as c3,
7537
+ za as c4,
7538
+ ho as c5,
7539
+ Io as c6,
7540
+ Vo as c7,
7541
+ Za as c8,
7542
+ Zo as c9,
7543
+ pd as cA,
7544
+ ud as cB,
7545
+ Id as cC,
7546
+ bo as cD,
7547
+ mo as cE,
7548
+ jo as cF,
7549
+ vo as cG,
7550
+ go as cH,
7551
+ Ed as cI,
7552
+ xc as cJ,
7553
+ Ad as cK,
7554
+ rc as cL,
7555
+ Bc as cM,
7556
+ Xr as cN,
7557
+ Ao as cO,
7558
+ od as cP,
7559
+ Ua as cQ,
7560
+ Wa as cR,
7561
+ $a as cS,
7562
+ La as cT,
7563
+ Ea as cU,
7564
+ Jc as cV,
7565
+ va as cW,
7566
+ Jo as cX,
7567
+ Mi as cY,
7568
+ Ko as cZ,
7569
+ Yc as c_,
7570
+ Nc as ca,
7571
+ Ja as cb,
7572
+ zr as cc,
7573
+ Mo as cd,
7574
+ Xa as ce,
7575
+ oo as cf,
7576
+ Uc as cg,
7577
+ ga as ch,
7578
+ Ka as ci,
7579
+ Pc as cj,
7580
+ uc as ck,
7581
+ dc as cl,
7582
+ lc as cm,
7583
+ Oo as cn,
7584
+ zc as co,
7585
+ Kc as cp,
7586
+ Br as cq,
7587
+ Ta as cr,
7588
+ Zc as cs,
7589
+ ma as ct,
7590
+ ha as cu,
7591
+ ed as cv,
7592
+ ld as cw,
7593
+ zo as cx,
7594
+ gd as cy,
7595
+ fd as cz,
7596
+ Gt as d,
7597
+ Ya as d0,
7598
+ wd as d1,
7599
+ sc as d2,
7600
+ Ho as d3,
7601
+ tc as d4,
7602
+ vd as d5,
7603
+ Cd as d6,
7604
+ Jr as d7,
7605
+ $c as d8,
7606
+ id as d9,
7607
+ Wc as dA,
7608
+ Xc as dB,
7609
+ td as dC,
7610
+ jd as dD,
7611
+ fi as dE,
7612
+ _r as dF,
7613
+ Rr as dG,
7614
+ Gr as dH,
7615
+ Hi as dI,
7616
+ Rc as dJ,
7617
+ ht as dK,
7618
+ Ln as dL,
7619
+ ca as dM,
7620
+ fs as dN,
7621
+ In as dO,
7622
+ ia as dP,
7623
+ ra as dQ,
7624
+ sd as da,
7625
+ sa as db,
7626
+ qo as dc,
7627
+ _d as dd,
7628
+ Gd as de,
7629
+ Ic as df,
7630
+ so as dg,
7631
+ io as dh,
7632
+ Oc as di,
7633
+ Kr as dj,
7634
+ fc as dk,
7635
+ ac as dl,
7636
+ Hc as dm,
7637
+ ic as dn,
7638
+ Ro as dp,
7639
+ nc as dq,
7640
+ co as dr,
7641
+ Ac as ds,
7642
+ Ca as dt,
7643
+ Ga as du,
7644
+ Fa as dv,
7645
+ uo as dw,
7646
+ fo as dx,
7647
+ Vc as dy,
7648
+ no as dz,
7649
+ Un as e,
7639
7650
  oe as f,
7640
- _i as g,
7641
- As as h,
7642
- an as i,
7643
- Sn as j,
7644
- Mi as k,
7645
- Vi as l,
7646
- aa as m,
7647
- Ui as n,
7651
+ Gi as g,
7652
+ Es as h,
7653
+ on as i,
7654
+ Pn as j,
7655
+ Oi as k,
7656
+ Di as l,
7657
+ ua as m,
7658
+ qi as n,
7648
7659
  ye as o,
7649
- na as p,
7650
- qi as q,
7651
- ci as r,
7660
+ oa as p,
7661
+ Wi as q,
7662
+ ui as r,
7652
7663
  ie as s,
7653
- ao as t,
7654
- nn as u,
7655
- Dn as v,
7664
+ lo as t,
7665
+ rn as u,
7666
+ xn as v,
7656
7667
  ue as w,
7657
7668
  Y as x,
7658
- ms as y,
7669
+ vs as y,
7659
7670
  pe as z
7660
7671
  };