@ynput/ayon-frontend-shared 0.6.7 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/DetailsPanel.es.js +3 -3
  2. package/dist/Feed.es.js +64 -58
  3. package/dist/ListTable.es.js +5 -5
  4. package/dist/NewEntity.es.js +38 -38
  5. package/dist/ProjectTreeTable.es.js +1314 -1314
  6. package/dist/Slicer.es.js +21 -21
  7. package/dist/Views.es.js +1 -1
  8. package/dist/api.es.js +362 -360
  9. package/dist/chunks/Actions.es.js +21 -21
  10. package/dist/chunks/ColumnDropIndicator.es.js +7 -7
  11. package/dist/chunks/DeleteEntitiesContextInstance.es.js +22 -22
  12. package/dist/chunks/EmptyPlaceholder.es.js +9 -9
  13. package/dist/chunks/EntityPath.es.js +1 -1
  14. package/dist/chunks/EntityUpdatesContext.es.js +1 -1
  15. package/dist/chunks/Feed.es.js +1843 -1830
  16. package/dist/chunks/MetaWidget.es.js +816 -827
  17. package/dist/chunks/PlayableIcon.es.js +124 -85
  18. package/dist/chunks/ProjectContext.es.js +11 -11
  19. package/dist/chunks/ReviewablesSelector.es.js +572 -484
  20. package/dist/chunks/SimpleForm.es.js +6 -5
  21. package/dist/chunks/SimpleTable.es.js +1 -1
  22. package/dist/chunks/Slicer.es.js +75 -75
  23. package/dist/chunks/ThumbnailSimple.es.js +15 -15
  24. package/dist/chunks/Watchers.es.js +35 -35
  25. package/dist/chunks/getBundleMode.es.js +33 -25
  26. package/dist/chunks/getUris.es.js +236 -229
  27. package/dist/chunks/searchTerms.es.js +352 -333
  28. package/dist/chunks/useAttributeEnums.es.js +16 -16
  29. package/dist/chunks/useDateRangeFilter.es.js +85 -59
  30. package/dist/chunks/viewUpdateHelper.es.js +36 -36
  31. package/dist/components.es.js +793 -754
  32. package/dist/context.es.js +121 -120
  33. package/dist/hooks.es.js +15 -15
  34. package/dist/index.es.js +2 -2
  35. package/dist/types/Feed.d.ts +54 -0
  36. package/dist/types/ProjectTreeTable.d.ts +5 -2
  37. package/dist/types/api.d.ts +372 -0
  38. package/dist/types/components.d.ts +516 -0
  39. package/dist/types/util.d.ts +4 -0
  40. package/dist/util.es.js +68 -66
  41. package/package.json +1 -1
@@ -1,24 +1,25 @@
1
- import { jsx as F, jsxs as ge } from "react/jsx-runtime";
2
- import { useState as w, useRef as re, useEffect as _, useCallback as E, useMemo as T } from "react";
1
+ import { jsx as j, jsxs as ge } from "react/jsx-runtime";
2
+ import { useState as w, useRef as re, useEffect as $, useCallback as E, useMemo as T } from "react";
3
3
  import { registerRemotes as me } from "@module-federation/enhanced/runtime";
4
4
  import { toast as M } from "react-toastify";
5
- import { d as ie, z as he, R as ye, a as ae, p as Pe, A as ve, B as be, G as we, H as Ce, I as Se, J as Ie, K as ke, L as Le, N as xe, O as Ee, Q as De, U as Fe, V as je, W as Te } from "./chunks/DeleteEntitiesContextInstance.es.js";
6
- import { E as Rt, M as At, X as Mt, P as Ut, Y as Nt, Z as _t, T as Gt, _ as $t, $ as Bt, g as Wt, a0 as Qt, m as qt, c as Vt, a1 as zt, t as Ht, a2 as Yt, a3 as Kt, a4 as Jt, a5 as Xt, a6 as Zt, o as en, u as tn, n as nn, a7 as on, x as sn, y as rn, b as an, a8 as ln, a9 as cn, aa as dn, ab as un, ac as pn, ad as fn } from "./chunks/DeleteEntitiesContextInstance.es.js";
7
- import { ay as Oe, bi as Re } from "./chunks/searchTerms.es.js";
8
- import { cS as Ae, c4 as Me, ci as Ue, bq as Ne, cU as _e, cD as Ge, bK as $e, c_ as Be, dn as We, cK as Qe } from "./chunks/getUris.es.js";
5
+ import { d as ie, z as he, R as ye, a as ae, p as Pe, A as ve, B as be, G as we, H as Ce, I as Se, J as Ie, K as ke, L as Le, N as xe, O as Ee, Q as Fe, U as je, V as De, W as Te } from "./chunks/DeleteEntitiesContextInstance.es.js";
6
+ import { E as Rt, M as At, X as Mt, P as Ut, Y as Nt, Z as $t, T as Gt, _ as _t, $ as Bt, g as Wt, a0 as Qt, m as Vt, c as qt, a1 as zt, t as Ht, a2 as Yt, a3 as Kt, a4 as Jt, a5 as Xt, a6 as Zt, o as en, u as tn, n as nn, a7 as on, x as sn, y as rn, b as an, a8 as ln, a9 as cn, aa as dn, ab as un, ac as pn, ad as fn } from "./chunks/DeleteEntitiesContextInstance.es.js";
7
+ import { az as Oe, bj as Re } from "./chunks/searchTerms.es.js";
8
+ import { cT as Ae, c4 as Me, ci as Ue, bq as Ne, cV as $e, cE as Ge, bK as _e, c$ as Be, dp as We, cL as Qe } from "./chunks/getUris.es.js";
9
9
  import "primereact/confirmdialog";
10
10
  import "lodash";
11
11
  import { v4 as J } from "uuid";
12
- import { g as qe, p as Ve, b as ze } from "./chunks/getBundleMode.es.js";
12
+ import { g as Ve, c as qe, p as ze, b as He } from "./chunks/getBundleMode.es.js";
13
+ import { U as mn } from "./chunks/getBundleMode.es.js";
13
14
  import { u as le } from "./chunks/useLoadModule.es.js";
14
- import { P as mn, T as hn } from "./chunks/ProjectContext.es.js";
15
+ import { P as yn, T as Pn } from "./chunks/ProjectContext.es.js";
15
16
  import "react-dom";
16
- import { p as He, c as Ye, d as Ke, e as Je, b as oe } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
17
- import { a as Pn } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
18
- import { M as bn } from "./chunks/MenuContext.es.js";
19
- import { u as Xe } from "./chunks/useQueryArgumentChangeLoading.es.js";
20
- import { E as Cn, F as Sn } from "./chunks/EntityUpdatesContext.es.js";
21
- const vt = ({ children: d, skip: i }) => {
17
+ import { p as Ye, c as Ke, d as Je, e as Xe, b as oe } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
18
+ import { a as bn } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
19
+ import { M as Cn } from "./chunks/MenuContext.es.js";
20
+ import { u as Ze } from "./chunks/useQueryArgumentChangeLoading.es.js";
21
+ import { E as In, F as kn } from "./chunks/EntityUpdatesContext.es.js";
22
+ const bt = ({ children: d, skip: i }) => {
22
23
  const {
23
24
  data: r = [],
24
25
  isLoading: t,
@@ -29,7 +30,7 @@ const vt = ({ children: d, skip: i }) => {
29
30
  siteInfo: c,
30
31
  isLoading: { siteInfo: f }
31
32
  } = ie(), [y, P] = w(!1), C = re({});
32
- return _(() => {
33
+ return $(() => {
33
34
  if (!y || a) return;
34
35
  const l = r.filter(({ addonName: p, addonVersion: b }) => {
35
36
  const h = C.current[p];
@@ -39,9 +40,9 @@ const vt = ({ children: d, skip: i }) => {
39
40
  M.dismiss(e);
40
41
  return;
41
42
  }
42
- const n = l.map((p) => `${p.addonName} ${p.addonVersion}`).join(", "), u = /* @__PURE__ */ F(ye, { message: `Addons updated (${n}). Refresh to load them.` });
43
+ const n = l.map((p) => `${p.addonName} ${p.addonVersion}`).join(", "), u = /* @__PURE__ */ j(ye, { message: `Addons updated (${n}). Refresh to load them.` });
43
44
  M.isActive(e) ? M.update(e, { render: u }) : M.info(u, { toastId: e, autoClose: !1, closeOnClick: !1 });
44
- }, [r, a, y]), _(() => {
45
+ }, [r, a, y]), $(() => {
45
46
  if (t || f || y) return;
46
47
  if (!r.length) {
47
48
  P(!0);
@@ -66,7 +67,7 @@ const vt = ({ children: d, skip: i }) => {
66
67
  type: "module"
67
68
  }))
68
69
  ), P(!0);
69
- }, [r, t, f, y]), /* @__PURE__ */ F(
70
+ }, [r, t, f, y]), /* @__PURE__ */ j(
70
71
  he.Provider,
71
72
  {
72
73
  value: {
@@ -77,7 +78,7 @@ const vt = ({ children: d, skip: i }) => {
77
78
  children: d
78
79
  }
79
80
  );
80
- }, Ze = {
81
+ }, et = {
81
82
  planner: {
82
83
  label: "Planner",
83
84
  icon: "calendar_month",
@@ -122,17 +123,17 @@ const vt = ({ children: d, skip: i }) => {
122
123
  "dataPortability"
123
124
  ]
124
125
  }
125
- }, bt = ({
126
+ }, wt = ({
126
127
  children: d,
127
128
  defaultTab: i = "feed",
128
129
  hasLicense: r,
129
130
  debug: t = {},
130
131
  ...a
131
132
  }) => {
132
- const c = a.user, f = qe(c), y = "isGuest" in t ? t.isGuest : c?.data?.isGuest, { powerLicense: P, setPowerpackDialog: C } = ae(), l = "hasLicense" in t ? t.hasLicense : !!P || r, [e, n] = w({}), [u, p] = w([]), [b, h] = w([]), x = E(
133
+ const c = a.user, f = Ve(c), y = "isGuest" in t ? t.isGuest : c?.data?.isGuest, { powerLicense: P, setPowerpackDialog: C } = ae(), l = "hasLicense" in t ? t.hasLicense : !!P || r, [e, n] = w({}), [u, p] = w([]), [b, h] = w([]), x = E(
133
134
  (S) => e[S] ? e[S] : !1,
134
135
  [e]
135
- ), D = E(
136
+ ), F = E(
136
137
  (S, G) => {
137
138
  const A = { ...e };
138
139
  A[S] = G, n(A);
@@ -146,19 +147,19 @@ const vt = ({ children: d, skip: i }) => {
146
147
  [g, i]
147
148
  ), [v, I] = w(null), O = E((S) => {
148
149
  I(S);
149
- }, []), j = E(() => {
150
+ }, []), D = E(() => {
150
151
  I(null), v && N([]);
151
152
  }, []);
152
- _(() => {
153
- j();
153
+ $(() => {
154
+ D();
154
155
  }, [a.useLocation().pathname]);
155
156
  const [s, k] = w(null), L = E((S) => {
156
157
  k(S);
157
158
  }, []), R = E(() => {
158
159
  k(null);
159
- }, []), [U, $] = w(null), [H, N] = w([]), { uriType: Y, uri: de, entity: B, getUriEntities: ue } = be(), [W] = a.useSearchParams(), Q = W.get("project"), q = W.get("type"), V = W.get("id"), X = W.get("activity");
160
- _(() => {
161
- if (!(!Q && !q && !V)) {
160
+ }, []), [U, _] = w(null), [H, N] = w([]), { uriType: Y, uri: de, entity: B, getUriEntities: ue } = be(), [W] = a.useSearchParams(), Q = W.get("project"), V = W.get("type"), q = W.get("id"), X = W.get("activity");
161
+ $(() => {
162
+ if (!(!Q && !V && !q)) {
162
163
  if (Y === "entity" && B && B.entityType !== "product") {
163
164
  ue().then((S) => {
164
165
  if (S.length === 0) return;
@@ -176,17 +177,17 @@ const vt = ({ children: d, skip: i }) => {
176
177
  ],
177
178
  source: "uri"
178
179
  };
179
- $(pe);
180
+ _(pe);
180
181
  }).catch((S) => {
181
182
  console.warn("Failed to get URI entities:", S);
182
183
  });
183
184
  return;
184
185
  }
185
- Q && q && V && ($({
186
- entityType: q,
186
+ Q && V && q && (_({
187
+ entityType: V,
187
188
  entities: [
188
189
  {
189
- id: V,
190
+ id: q,
190
191
  projectName: Q
191
192
  }
192
193
  ],
@@ -196,12 +197,12 @@ const vt = ({ children: d, skip: i }) => {
196
197
  overview: "feed"
197
198
  })));
198
199
  }
199
- }, [Q, q, V]);
200
+ }, [Q, V, q]);
200
201
  const z = {
201
202
  // open state for the panel by scope
202
203
  panelOpenByScope: e,
203
204
  getOpenForScope: x,
204
- setPanelOpen: D,
205
+ setPanelOpen: F,
205
206
  setPanelOpenByScope: n,
206
207
  // tab preferences
207
208
  tabsByScope: g,
@@ -209,7 +210,7 @@ const vt = ({ children: d, skip: i }) => {
209
210
  // slide out state
210
211
  slideOut: v,
211
212
  openSlideOut: O,
212
- closeSlideOut: j,
213
+ closeSlideOut: D,
213
214
  // highlighted activities
214
215
  highlightedActivities: H,
215
216
  setHighlightedActivities: N,
@@ -219,7 +220,7 @@ const vt = ({ children: d, skip: i }) => {
219
220
  closePip: R,
220
221
  // entities state
221
222
  entities: U,
222
- setEntities: $,
223
+ setEntities: _,
223
224
  feedAnnotations: u,
224
225
  setFeedAnnotations: p,
225
226
  feedFrameLinks: b,
@@ -230,27 +231,27 @@ const vt = ({ children: d, skip: i }) => {
230
231
  onPowerFeature: C,
231
232
  ...a
232
233
  }, K = re(z), Z = K.current, ee = Object.keys(z);
233
- return (ee.length !== Object.keys(Z).length || ee.some((S) => Z[S] !== z[S])) && (K.current = z), /* @__PURE__ */ F(we.Provider, { value: K.current, children: d });
234
- }, et = (d) => {
234
+ return (ee.length !== Object.keys(Z).length || ee.some((S) => Z[S] !== z[S])) && (K.current = z), /* @__PURE__ */ j(we.Provider, { value: K.current, children: d });
235
+ }, tt = (d) => {
235
236
  const { setPowerpackDialog: i } = ae();
236
- return _(() => {
237
+ return $(() => {
237
238
  i({ addon: "planner", feature: "subtasks" }), d?.onNotFound?.();
238
239
  }, [i, d.onNotFound]), null;
239
- }, wt = ({ children: d }) => {
240
+ }, Ct = ({ children: d }) => {
240
241
  const [i, { outdated: r, isLoading: t }] = le({
241
242
  addon: "planner",
242
243
  remote: "planner",
243
244
  module: "SubtasksManager",
244
- fallback: et
245
+ fallback: tt
245
246
  });
246
- return /* @__PURE__ */ F(
247
+ return /* @__PURE__ */ j(
247
248
  Se.Provider,
248
249
  {
249
250
  value: { SubtasksManager: i, requiredVersion: r?.required, isLoading: t },
250
251
  children: d
251
252
  }
252
253
  );
253
- }, Ct = ({ children: d }) => {
254
+ }, St = ({ children: d }) => {
254
255
  const [i, r] = w(!1), [t, a] = w(null), [c, f] = w(null), y = () => {
255
256
  r(!0), a(null);
256
257
  }, P = () => {
@@ -262,7 +263,7 @@ const vt = ({ children: d, skip: i }) => {
262
263
  }, e = () => {
263
264
  a(null), f(null);
264
265
  };
265
- return /* @__PURE__ */ F(
266
+ return /* @__PURE__ */ j(
266
267
  Ie.Provider,
267
268
  {
268
269
  value: {
@@ -280,7 +281,7 @@ const vt = ({ children: d, skip: i }) => {
280
281
  }
281
282
  );
282
283
  };
283
- function St({ children: d }) {
284
+ function It({ children: d }) {
284
285
  const i = window.location.protocol === "https:" || window.location.hostname === "localhost", r = "documentPictureInPicture" in window && i, [t, a] = w(null), [c, f] = w(null), y = E(() => {
285
286
  f(null), t != null && (t.close(), a(null));
286
287
  }, [t, c]), P = E(
@@ -303,7 +304,7 @@ function St({ children: d }) {
303
304
  },
304
305
  [t, c]
305
306
  );
306
- _(() => {
307
+ $(() => {
307
308
  [...document.styleSheets].forEach((l) => {
308
309
  try {
309
310
  const e = [...l.cssRules].map((p) => p.cssText).join(""), n = document.createElement("style");
@@ -331,9 +332,9 @@ function St({ children: d }) {
331
332
  requestPipWindow: P,
332
333
  closePipWindow: y
333
334
  }), [y, r, t, P]);
334
- return /* @__PURE__ */ F(ke.Provider, { value: C, children: d });
335
+ return /* @__PURE__ */ j(ke.Provider, { value: C, children: d });
335
336
  }
336
- const It = ({
337
+ const kt = ({
337
338
  children: d,
338
339
  projectName: i,
339
340
  // utils
@@ -344,7 +345,7 @@ const It = ({
344
345
  { projectName: i },
345
346
  { skip: !i }
346
347
  ), { user: c } = ie();
347
- return /* @__PURE__ */ F(
348
+ return /* @__PURE__ */ j(
348
349
  Le.Provider,
349
350
  {
350
351
  value: {
@@ -357,42 +358,42 @@ const It = ({
357
358
  children: d
358
359
  }
359
360
  );
360
- }, kt = ({ children: d, ...i }) => /* @__PURE__ */ F(xe.Provider, { value: { ...i }, children: d }), ce = "powerpack-license", tt = () => {
361
+ }, Lt = ({ children: d, ...i }) => /* @__PURE__ */ j(xe.Provider, { value: { ...i }, children: d }), ce = "powerpack-license", nt = () => {
361
362
  try {
362
363
  const d = localStorage.getItem(ce);
363
364
  return d === null ? null : d === "true";
364
365
  } catch {
365
366
  return null;
366
367
  }
367
- }, nt = (d) => {
368
+ }, ot = (d) => {
368
369
  try {
369
370
  localStorage.setItem(ce, String(d));
370
371
  } catch {
371
372
  }
372
- }, Lt = ({
373
+ }, xt = ({
373
374
  children: d,
374
375
  debug: i
375
376
  }) => {
376
377
  const [r, t] = w(null), [a, c] = w(null), f = (o) => o !== null && typeof o == "object" && "addon" in o, y = E((o) => {
377
378
  o === null ? (t(null), c(null)) : f(o) ? (t(null), c(o)) : (c(null), t(o));
378
- }, []), P = (o) => o ? He[o] : null, C = (o) => {
379
+ }, []), P = (o) => o ? Ye[o] : null, C = (o) => {
379
380
  if (!o) return null;
380
- const m = Ze[o.addon];
381
+ const m = et[o.addon];
381
382
  return m ? { ...m, selectedFeature: o.feature } : null;
382
- }, [l, e] = w(!1), [n] = w(tt), [u, p] = w(!0), b = async () => !1, [h, { isLoaded: x, isLoading: D }] = le({
383
+ }, [l, e] = w(!1), [n] = w(nt), [u, p] = w(!0), b = async () => !1, [h, { isLoaded: x, isLoading: F }] = le({
383
384
  addon: "powerpack",
384
385
  remote: "license",
385
386
  module: "checkPowerLicense",
386
387
  fallback: b
387
388
  });
388
- _(() => {
389
+ $(() => {
389
390
  (async () => {
390
391
  if (i?.powerLicense !== void 0)
391
392
  console.warn("Using debug power license:", i.powerLicense), e(i.powerLicense), p(!1);
392
- else if (x || !D) {
393
+ else if (x || !F) {
393
394
  try {
394
395
  const m = await h();
395
- e(m), nt(m);
396
+ e(m), ot(m);
396
397
  } catch (m) {
397
398
  console.error("Error checking power license:", m), e(!1);
398
399
  } finally {
@@ -401,7 +402,7 @@ const It = ({
401
402
  p(!1);
402
403
  }
403
404
  })();
404
- }, [i, x, D, h]);
405
+ }, [i, x, F, h]);
405
406
  const g = T(
406
407
  () => ({
407
408
  powerLicense: l,
@@ -415,8 +416,8 @@ const It = ({
415
416
  }),
416
417
  [l, r, a, y, u, n]
417
418
  );
418
- return /* @__PURE__ */ F(Ee.Provider, { value: g, children: d });
419
- }, xt = ({ children: d, skip: i = !1 }) => {
419
+ return /* @__PURE__ */ j(Ee.Provider, { value: g, children: d });
420
+ }, Et = ({ children: d, skip: i = !1 }) => {
420
421
  const {
421
422
  data: r = {},
422
423
  isLoading: t,
@@ -425,13 +426,13 @@ const It = ({
425
426
  data: P = [],
426
427
  isLoading: C,
427
428
  error: l
428
- } = _e({}, { skip: i }), e = T(() => P.filter((b) => b.active), [P]), {
429
+ } = $e({}, { skip: i }), e = T(() => P.filter((b) => b.active), [P]), {
429
430
  data: n,
430
431
  isLoading: u,
431
432
  error: p
432
433
  } = Ge(void 0, { skip: !c?.name });
433
- return /* @__PURE__ */ F(
434
- De.Provider,
434
+ return /* @__PURE__ */ j(
435
+ Fe.Provider,
435
436
  {
436
437
  value: {
437
438
  siteInfo: r,
@@ -458,7 +459,7 @@ const It = ({
458
459
  children: d
459
460
  }
460
461
  );
461
- }, Et = ({
462
+ }, Ft = ({
462
463
  projectName: d,
463
464
  children: i
464
465
  }) => {
@@ -470,7 +471,7 @@ const It = ({
470
471
  isUninitialized: f,
471
472
  error: y,
472
473
  refetch: P
473
- } = $e({ projectName: d, attrib: !0 }), C = Xe({ projectName: d }, a || t), l = T(() => {
474
+ } = _e({ projectName: d, attrib: !0 }), C = Ze({ projectName: d }, a || t), l = T(() => {
474
475
  const g = /* @__PURE__ */ new Map();
475
476
  for (const o of r)
476
477
  g.set(o.id, o);
@@ -479,17 +480,17 @@ const It = ({
479
480
  () => (g, o, m = {}) => {
480
481
  if (!o.length) return {};
481
482
  const v = {}, I = new Set(o), O = /* @__PURE__ */ new Set();
482
- let j = g;
483
- for (; I.size > 0 && j && !O.has(j); ) {
484
- O.add(j);
485
- const s = l.get(j);
483
+ let D = g;
484
+ for (; I.size > 0 && D && !O.has(D); ) {
485
+ O.add(D);
486
+ const s = l.get(D);
486
487
  if (!s) break;
487
488
  const k = s.attrib || {};
488
489
  for (const L of Array.from(I))
489
490
  s.ownAttrib?.includes(L) && L in k && (v[L] = Object.entries(k).find(
490
491
  ([R]) => R === L
491
492
  )?.[1], I.delete(L));
492
- j = s.parentId;
493
+ D = s.parentId;
493
494
  }
494
495
  for (const s of Array.from(I))
495
496
  s in m && (v[s] = m[s], I.delete(s));
@@ -536,7 +537,7 @@ const It = ({
536
537
  return m;
537
538
  },
538
539
  [b]
539
- ), x = () => P().unwrap(), D = T(
540
+ ), x = () => P().unwrap(), F = T(
540
541
  () => ({
541
542
  folders: r,
542
543
  getFolderById: e,
@@ -568,15 +569,15 @@ const It = ({
568
569
  x
569
570
  ]
570
571
  );
571
- return /* @__PURE__ */ F(Fe.Provider, { value: D, children: i });
572
- }, Dt = "uri", Ft = ({ children: d }) => {
573
- const i = location.pathname, [r, t] = w(""), a = ["projects", "settings", "dashboard/tasks"];
574
- _(() => {
572
+ return /* @__PURE__ */ j(je.Provider, { value: F, children: i });
573
+ }, jt = ({ children: d }) => {
574
+ const i = location.pathname, [r, t] = w(qe), a = ["projects", "settings", "manageProjects", "dashboard/tasks"];
575
+ $(() => {
575
576
  a.some((u) => i.startsWith(`/${u}`)) || t("");
576
577
  }, [i, t]);
577
- const { type: c, entity: f, settings: y } = Ve(r), P = E(
578
+ const { type: c, entity: f, settings: y } = ze(r), P = E(
578
579
  ({ projectName: n, folderPath: u, taskName: p, productName: b, versionName: h }) => {
579
- const x = ze({ projectName: n, folderPath: u, taskName: p, productName: b, versionName: h });
580
+ const x = He({ projectName: n, folderPath: u, taskName: p, productName: b, versionName: h });
580
581
  t(x);
581
582
  },
582
583
  [t]
@@ -597,7 +598,7 @@ const It = ({
597
598
  setEntityUri: P,
598
599
  getUriEntities: l
599
600
  };
600
- return /* @__PURE__ */ F(je.Provider, { value: e, children: d });
601
+ return /* @__PURE__ */ j(De.Provider, { value: e, children: d });
601
602
  }, se = [
602
603
  "representation",
603
604
  "version",
@@ -605,7 +606,7 @@ const It = ({
605
606
  "product",
606
607
  "task",
607
608
  "folder"
608
- ], ot = "delete-folder-with-children", jt = ({ children: d }) => {
609
+ ], st = "delete-folder-with-children", Dt = ({ children: d }) => {
609
610
  const [i] = We(), [r] = Qe(), [t, a] = w(null), [c, f] = w(null), y = E(
610
611
  (e) => new Promise((n) => f({ payload: e, resolve: n })),
611
612
  []
@@ -643,7 +644,7 @@ const It = ({
643
644
  }).unwrap();
644
645
  })
645
646
  );
646
- }, D = async () => {
647
+ }, F = async () => {
647
648
  try {
648
649
  await x(h, !1), n?.onSuccess?.();
649
650
  } catch (s) {
@@ -673,20 +674,20 @@ const It = ({
673
674
  console.warn("Failed to fetch folder delete info, falling back to local data", k);
674
675
  }
675
676
  }
676
- const v = Ye(o, m), I = h.filter((s) => s.entityType === "product").length;
677
+ const v = Ke(o, m), I = h.filter((s) => s.entityType === "product").length;
677
678
  I > 0 && v.push(
678
679
  I > 1 ? "Deleting these products also deletes all their versions" : "Deleting this product also deletes all its versions"
679
680
  );
680
- const O = Ke(h), j = h.length === 1 ? h[0] : void 0;
681
+ const O = Je(h), D = h.length === 1 ? h[0] : void 0;
681
682
  a({
682
683
  payload: {
683
684
  entityLabel: O,
684
685
  childrenDetails: v,
685
- expectedCounts: Je(h, m),
686
- expectedName: j && (j.label || j.name || j.id)
686
+ expectedCounts: Xe(h, m),
687
+ expectedName: D && (D.label || D.name || D.id)
687
688
  },
688
- accept: D,
689
- recover: async (s) => Oe(s).includes(ot) ? await y({
689
+ accept: F,
690
+ recover: async (s) => Oe(s).includes(st) ? await y({
690
691
  entityLabel: O,
691
692
  message: `Are you really sure you want to delete ${O} and all of its dependencies? This cannot be undone. (NOT RECOMMENDED)`,
692
693
  childrenDetails: [],
@@ -709,7 +710,7 @@ const It = ({
709
710
  try {
710
711
  await n(), h();
711
712
  } catch (x) {
712
- let D = x;
713
+ let F = x;
713
714
  try {
714
715
  const o = await u(x);
715
716
  if (o === "recovered") return h();
@@ -721,9 +722,9 @@ const It = ({
721
722
  isLoading: !1
722
723
  });
723
724
  } catch (o) {
724
- D = o;
725
+ F = o;
725
726
  }
726
- const g = typeof D == "string" ? D : D?.message || D?.error || `Error deleting ${p}`;
727
+ const g = typeof F == "string" ? F : F?.message || F?.error || `Error deleting ${p}`;
727
728
  M.update(b, {
728
729
  render: g,
729
730
  type: "error",
@@ -734,7 +735,7 @@ const It = ({
734
735
  }, [t]), l = T(() => ({ deleteEntities: P }), [P]);
735
736
  return /* @__PURE__ */ ge(Te.Provider, { value: l, children: [
736
737
  d,
737
- t && /* @__PURE__ */ F(
738
+ t && /* @__PURE__ */ j(
738
739
  oe,
739
740
  {
740
741
  payload: t.payload,
@@ -742,7 +743,7 @@ const It = ({
742
743
  onCancel: () => a(null)
743
744
  }
744
745
  ),
745
- c && /* @__PURE__ */ F(
746
+ c && /* @__PURE__ */ j(
746
747
  oe,
747
748
  {
748
749
  payload: c.payload,
@@ -759,52 +760,52 @@ const It = ({
759
760
  export {
760
761
  xe as AddonContext,
761
762
  Le as AddonProjectContext,
762
- It as AddonProjectProvider,
763
- kt as AddonProvider,
763
+ kt as AddonProjectProvider,
764
+ Lt as AddonProvider,
764
765
  Te as DeleteEntitiesContext,
765
- jt as DeleteEntitiesProvider,
766
+ Dt as DeleteEntitiesProvider,
766
767
  we as DetailsPanelContext,
767
- bt as DetailsPanelProvider,
768
+ wt as DetailsPanelProvider,
768
769
  Rt as EntityUpdatesContext,
769
- Cn as EntityUpdatesProvider,
770
- Sn as FORCE_AUTO_SYNC,
771
- De as GlobalContext,
772
- xt as GlobalProvider,
770
+ In as EntityUpdatesProvider,
771
+ kn as FORCE_AUTO_SYNC,
772
+ Fe as GlobalContext,
773
+ Et as GlobalProvider,
773
774
  At as MenuContext,
774
- bn as MenuProvider,
775
+ Cn as MenuProvider,
775
776
  ke as PiPContext,
776
- St as PiPProvider,
777
+ It as PiPProvider,
777
778
  Mt as PiPWrapper,
778
779
  Ee as PowerpackContext,
779
- Lt as PowerpackProvider,
780
+ xt as PowerpackProvider,
780
781
  Ut as ProjectContext,
781
- mn as ProjectContextProvider,
782
- Fe as ProjectFoldersContext,
783
- Et as ProjectFoldersContextProvider,
782
+ yn as ProjectContextProvider,
783
+ je as ProjectFoldersContext,
784
+ Ft as ProjectFoldersContextProvider,
784
785
  he as RemoteModulesContext,
785
- vt as RemoteModulesProvider,
786
+ bt as RemoteModulesProvider,
786
787
  Ie as SettingsPanelContext,
787
- Ct as SettingsPanelProvider,
788
+ St as SettingsPanelProvider,
788
789
  Nt as SocketContext,
789
- _t as SocketProvider,
790
+ $t as SocketProvider,
790
791
  Se as SubtasksModulesContext,
791
- wt as SubtasksModulesProvider,
792
+ Ct as SubtasksModulesProvider,
792
793
  Ce as TABS_BY_SCOPE_KEY,
793
794
  Gt as ThumbnailUploadContext,
794
- hn as ThumbnailUploadProvider,
795
- je as URIContext,
796
- Ft as URIProvider,
797
- Dt as URL_PARAM_ID,
798
- Ze as addonConfigs,
799
- $t as getActivityFrameLink,
795
+ Pn as ThumbnailUploadProvider,
796
+ De as URIContext,
797
+ jt as URIProvider,
798
+ mn as URL_PARAM_ID,
799
+ et as addonConfigs,
800
+ _t as getActivityFrameLink,
800
801
  Bt as getAutoSyncForTopic,
801
802
  Wt as getUpdateType,
802
803
  Qt as isDeletableEntityType,
803
804
  ve as isDetailsPanelTab,
804
- qt as matchesProject,
805
- Vt as matchesTopic,
806
- Pn as powerpackFeatureOrder,
807
- He as powerpackFeatures,
805
+ Vt as matchesProject,
806
+ qt as matchesTopic,
807
+ bn as powerpackFeatureOrder,
808
+ Ye as powerpackFeatures,
808
809
  zt as setDetailsPanelTabForScope,
809
810
  Ht as toggleSyncAll,
810
811
  Yt as useAddonContext,