@ynput/ayon-frontend-shared 0.6.0 → 0.6.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.
Files changed (89) hide show
  1. package/dist/ContextMenu.es.js +34 -16
  2. package/dist/DetailsPanel.es.js +292 -298
  3. package/dist/Feed.es.js +179 -50
  4. package/dist/ListTable.es.js +32 -35
  5. package/dist/NewEntity.es.js +1256 -11
  6. package/dist/ProjectTreeTable.es.js +4451 -2965
  7. package/dist/SimpleTable.es.js +8 -7
  8. package/dist/Slicer.es.js +451 -147
  9. package/dist/Views.es.js +918 -310
  10. package/dist/chunks/Actions.es.js +9 -4
  11. package/dist/chunks/ColumnDropIndicator.es.js +174 -328
  12. package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
  13. package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
  14. package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
  15. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
  16. package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
  17. package/dist/chunks/EmptyPlaceholder.es.js +4 -4
  18. package/dist/chunks/EntityPath.es.js +58 -53
  19. package/dist/chunks/EntityPickerDialog.es.js +24 -20
  20. package/dist/chunks/EntityTooltip.es.js +20 -13
  21. package/dist/chunks/EntityUpdatesContext.es.js +38 -96
  22. package/dist/chunks/Feed.es.js +1495 -1439
  23. package/dist/chunks/FilterErrorActions.es.js +25 -229
  24. package/dist/chunks/Menu.es.js +21 -17
  25. package/dist/chunks/MenuContext.es.js +14 -65
  26. package/dist/chunks/MenuItem.es.js +34 -24
  27. package/dist/chunks/MetaWidget.es.js +2835 -4301
  28. package/dist/chunks/NewEntityContextInstance.es.js +11 -0
  29. package/dist/chunks/PlayableIcon.es.js +1532 -1594
  30. package/dist/chunks/ProjectContext.es.js +102 -66
  31. package/dist/chunks/RepresentationsList.es.js +1 -1
  32. package/dist/chunks/ReviewablesSelector.es.js +457 -458
  33. package/dist/chunks/SimpleForm.es.js +9 -9
  34. package/dist/chunks/SimpleTable.es.js +15 -13
  35. package/dist/chunks/Slicer.es.js +163 -154
  36. package/dist/chunks/TableSettingsFallback.es.js +25 -13
  37. package/dist/chunks/ThumbnailSimple.es.js +150 -261
  38. package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
  39. package/dist/chunks/VideoPlayer.es.js +24 -28
  40. package/dist/chunks/Watchers.es.js +384 -389
  41. package/dist/chunks/entityDefinitions.es.js +2 -350
  42. package/dist/chunks/extractVersionFromFilename.es.js +28 -0
  43. package/dist/chunks/getBundleMode.es.js +61 -16
  44. package/dist/chunks/getUris.es.js +737 -712
  45. package/dist/chunks/searchTerms.es.js +57 -56
  46. package/dist/chunks/useAttributeEnums.es.js +4 -4
  47. package/dist/chunks/useCreateContextMenu.es.js +66 -90
  48. package/dist/chunks/useHierarchySelection.es.js +24 -0
  49. package/dist/chunks/useLoadModule.es.js +74 -0
  50. package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
  51. package/dist/chunks/versionUploadHelpers.es.js +16 -42
  52. package/dist/chunks/viewUpdateHelper.es.js +67 -50
  53. package/dist/components.es.js +1425 -999
  54. package/dist/context.es.js +791 -80
  55. package/dist/hooks.es.js +115 -120
  56. package/dist/index.es.js +19 -23
  57. package/dist/types/Actions.d.ts +7 -7
  58. package/dist/types/ContextMenu.d.ts +11 -8
  59. package/dist/types/DetailsPanel.d.ts +102 -9
  60. package/dist/types/EntityPickerDialog.d.ts +7 -7
  61. package/dist/types/Feed.d.ts +11 -8
  62. package/dist/types/ListTable.d.ts +7 -7
  63. package/dist/types/NewEntity.d.ts +16 -10
  64. package/dist/types/ProjectTreeTable.d.ts +22 -115
  65. package/dist/types/RepresentationsList.d.ts +7 -7
  66. package/dist/types/SimpleTable.d.ts +11 -8
  67. package/dist/types/Slicer.d.ts +10 -7
  68. package/dist/types/Views.d.ts +10 -7
  69. package/dist/types/api.d.ts +132 -120
  70. package/dist/types/components.d.ts +13 -8
  71. package/dist/types/context.d.ts +56 -16
  72. package/dist/types/hooks.d.ts +7 -7
  73. package/dist/types/index.d.ts +7 -7
  74. package/dist/types/util.d.ts +12 -7
  75. package/dist/util.es.js +72 -71
  76. package/package.json +1 -1
  77. package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
  78. package/dist/chunks/DetailsPanelContext.es.js +0 -155
  79. package/dist/chunks/GlobalContext.es.js +0 -52
  80. package/dist/chunks/NewEntityContext.es.js +0 -1242
  81. package/dist/chunks/ProjectFoldersContext.es.js +0 -134
  82. package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
  83. package/dist/chunks/VersionUploadContext.es.js +0 -232
  84. package/dist/chunks/ViewsContext.es.js +0 -878
  85. package/dist/chunks/uriUtils.es.js +0 -48
  86. package/dist/chunks/useColumnDragRestriction.es.js +0 -158
  87. package/dist/chunks/useLocalStorage.es.js +0 -355
  88. package/dist/chunks/useSessionStorage.es.js +0 -61
  89. /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
@@ -2,38 +2,47 @@ import { jsx as E, jsxs as G, Fragment as $e } from "react/jsx-runtime";
2
2
  import { useState as U, useCallback as A, useMemo as O, useContext as Ye, useEffect as se, forwardRef as Je, useRef as ye, useId as Xe, useImperativeHandle as Ze, useLayoutEffect as Te } from "react";
3
3
  import { Splitter as et, SplitterPanel as tt } from "primereact/splitter";
4
4
  import V from "styled-components";
5
- import { u as xe, n as me } from "./entityDefinitions.es.js";
6
- import { u as ze } from "./useSessionStorage.es.js";
7
- import { a as Ce } from "./useLocalStorage.es.js";
8
- import { u as we } from "./ProjectFoldersContext.es.js";
9
- import { E as nt, u as st } from "./EntityPickerDialog.es.js";
10
- import { toast as De } from "react-toastify";
11
- import { be as Re, bq as ot, bg as Ue, bo as at } from "./searchTerms.es.js";
5
+ import { h as nt, P as st, d as Ie, U as ze } from "./MetaWidget.es.js";
6
+ import "@module-federation/enhanced/runtime";
7
+ import { bi as De, br as ot, bj as Ue, bp as at } from "./searchTerms.es.js";
12
8
  import { dl as Ve, cF as it, bS as rt, by as lt } from "./getUris.es.js";
13
9
  import "primereact/confirmdialog";
14
- import { g as ct, P as dt, U as He } from "./MetaWidget.es.js";
10
+ import { q as He, y as Ce, x as ue, d as ct, a as we, v as dt, a5 as ut, a4 as pt, u as ft, ac as mt } from "./DeleteEntitiesContextInstance.es.js";
15
11
  import "lodash";
12
+ import { toast as Re } from "react-toastify";
16
13
  import "uuid";
17
- import { b as he, H as ut, a as pt, d as ft, S as mt } from "./SimpleTable.es.js";
18
- import { a as ue } from "./ProjectContext.es.js";
19
- import { u as ht } from "./GlobalContext.es.js";
20
- import { u as gt, a as yt } from "./useAttributeEnums.es.js";
21
- import { g as ge } from "./getEntityTypeIcon.es.js";
22
- import { b as bt, s as St } from "./buildHierarchicalTableRows.es.js";
23
- import { g as Tt } from "./parseHtmlToPlainTextWithLinks.es.js";
24
- import { InputText as vt, Button as It, Icon as xt } from "@ynput/ayon-react-components";
25
- import W from "clsx";
26
- import { u as Ct } from "./NewEntityContext.es.js";
27
- import { a as wt, K as Lt } from "./platform.es.js";
28
- import { u as Et } from "./DetailsPanelContext.es.js";
29
- import { g as kt } from "./DeleteEntitiesContext.es.js";
30
- import { u as Dt } from "./VersionUploadContext.es.js";
31
- import { u as Rt, b as Pt, F as Pe } from "./EntityUpdatesContext.es.js";
32
- import "./MenuItem.es.js";
33
- import "@module-federation/enhanced/runtime";
34
14
  import "semver";
35
- import { u as Mt } from "./MenuContext.es.js";
15
+ import { InputText as ht, Button as gt, Icon as yt } from "@ynput/ayon-react-components";
16
+ import "./ContextMenuContextInstance.es.js";
17
+ import W from "clsx";
36
18
  import "react-dom";
19
+ import "react-redux";
20
+ import { E as bt, u as St } from "./EntityPickerDialog.es.js";
21
+ import "./PlayableIcon.es.js";
22
+ import "date-fns";
23
+ import "lexical";
24
+ import "@lexical/markdown";
25
+ import "@lexical/react/LexicalBlockWithAlignableContents";
26
+ import "@lexical/react/LexicalDecoratorBlockNode";
27
+ import "match-sorter";
28
+ import "@lexical/code";
29
+ import "@lexical/list";
30
+ import "@lexical/rich-text";
31
+ import "@lexical/selection";
32
+ import "@lexical/utils";
33
+ import "react-router-dom";
34
+ import "@tanstack/react-table";
35
+ import { b as he, H as Tt, a as vt, e as xt, S as It } from "./SimpleTable.es.js";
36
+ import { g as ge } from "./getEntityTypeIcon.es.js";
37
+ import { g as Ct } from "./parseHtmlToPlainTextWithLinks.es.js";
38
+ import { u as wt, a as Lt } from "./useAttributeEnums.es.js";
39
+ import { b as Et, s as kt } from "./buildHierarchicalTableRows.es.js";
40
+ import { n as me } from "./entityDefinitions.es.js";
41
+ import { a as Dt, K as Rt } from "./platform.es.js";
42
+ import { u as Pt } from "./NewEntityContextInstance.es.js";
43
+ import { u as Mt } from "./VersionUploadContextInstance.es.js";
44
+ import { F as Pe } from "./EntityUpdatesContext.es.js";
45
+ import "./MenuItem.es.js";
37
46
  const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.includes(r) ? Ge : a), Ot = (e, t, a, r) => {
38
47
  const d = e.reduce((p, g) => p + g, 0), l = r.filter(Boolean).length;
39
48
  if (!l || d === a) return e;
@@ -65,7 +74,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
65
74
  minSize: 2,
66
75
  height: u
67
76
  };
68
- }, Ft = (e, t, a) => {
77
+ }, jt = (e, t, a) => {
69
78
  const r = e.map((m, p) => Math.max(m / 100 * t, a[p])), d = Math.max(
70
79
  t,
71
80
  a.reduce((m, p) => m + p, 0)
@@ -73,11 +82,11 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
73
82
  if (l <= 0) return r;
74
83
  const f = r.map((m, p) => m - a[p]), S = f.reduce((m, p) => m + p, 0);
75
84
  return S ? r.map((m, p) => m - l * (f[p] / S)) : r;
76
- }, jt = "slicer-splitter", Me = {
85
+ }, Ft = "slicer-splitter", Me = {
77
86
  minSize: 2,
78
87
  size: 12
79
- }, Xn = () => {
80
- const [e, t] = ze(jt, [
88
+ }, rs = () => {
89
+ const [e, t] = He(Ft, [
81
90
  Me.size,
82
91
  100 - Me.size
83
92
  ]);
@@ -85,7 +94,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
85
94
  t(r.sizes);
86
95
  }];
87
96
  }, $t = (e, t, a = [], r = 0) => {
88
- const [d, l] = ze(
97
+ const [d, l] = He(
89
98
  `slicer-panel-heights-${e}`,
90
99
  {}
91
100
  ), [f, S] = U(0), m = Array.isArray(d) ? {} : d, {
@@ -95,7 +104,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
95
104
  height: u,
96
105
  heights: b
97
106
  } = Nt(m, t, a, r), h = (i) => {
98
- const c = Ft(i.sizes, u, g);
107
+ const c = jt(i.sizes, u, g);
99
108
  l({
100
109
  ...m,
101
110
  ...Object.fromEntries(
@@ -119,7 +128,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
119
128
  onClose: a,
120
129
  onMoveComplete: r
121
130
  }) => {
122
- const [d] = Ve(), l = ct(), { folders: f } = we(), S = l?.tableData || [], m = A(
131
+ const [d] = Ve(), l = nt(), { folders: f } = Ce(), S = l?.tableData || [], m = A(
123
132
  (h) => l?.getEntityById(h) || f.find((i) => i.id === h),
124
133
  [f, l]
125
134
  ), p = A(
@@ -147,7 +156,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
147
156
  }
148
157
  r?.(i);
149
158
  } catch (c) {
150
- let s = Re(c) || "Failed to move entities";
159
+ let s = De(c) || "Failed to move entities";
151
160
  if (s.includes("already exists"))
152
161
  if (t.entities.length > 1)
153
162
  s = "Cannot move some entities - one or more entities with the same name already exist in the target location";
@@ -158,7 +167,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
158
167
  const y = s.match(/name '.*?, (.+?)' already exists/);
159
168
  s = `Cannot move "${y ? y[1] : "this folder"}" - a folder with this name already exists in the target location`;
160
169
  }
161
- De.error(s);
170
+ Re.error(s);
162
171
  } finally {
163
172
  a();
164
173
  }
@@ -186,8 +195,8 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
186
195
  throw new Error(s || "Some move operations failed");
187
196
  }
188
197
  } catch (h) {
189
- let i = Re(h) || "Failed to move entities to root";
190
- De.error(i);
198
+ let i = De(h) || "Failed to move entities to root";
199
+ Re.error(i);
191
200
  } finally {
192
201
  a();
193
202
  }
@@ -218,9 +227,9 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
218
227
  const s = f.find((y) => y.id === h);
219
228
  if (s) {
220
229
  const y = t.entities.find((n) => {
221
- const I = m(n.entityId);
222
- return I?.name ? S.filter((v) => n.entityType === "folder" ? v.entityType === "folder" && v.parentId === s.id : n.entityType === "task" ? v.entityType === "task" && v.folderId === s.id : !1).some(
223
- (v) => v.name === I.name && v.entityId !== n.entityId
230
+ const x = m(n.entityId);
231
+ return x?.name ? S.filter((v) => n.entityType === "folder" ? v.entityType === "folder" && v.parentId === s.id : n.entityType === "task" ? v.entityType === "task" && v.folderId === s.id : !1).some(
232
+ (v) => v.name === x.name && v.entityId !== n.entityId
224
233
  ) : !1;
225
234
  });
226
235
  if (y)
@@ -252,7 +261,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
252
261
  onMoveComplete: r
253
262
  });
254
263
  return t?.entities.length ? /* @__PURE__ */ E(
255
- nt,
264
+ bt,
256
265
  {
257
266
  projectName: e,
258
267
  entityType: "folder",
@@ -284,8 +293,8 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
284
293
  const {
285
294
  attributes: a,
286
295
  isLoading: { siteInfo: r }
287
- } = ht(), d = Ye(dt), l = d?.attribFields?.length ? d.attribFields : a, { projectName: f } = ue();
288
- return { attributes: gt(l, { projectName: f, request: t ?? [] }).filter((p) => Ue(p.data)).filter((p) => e.some((g) => p.scope?.includes(g))).map(
296
+ } = ct(), d = Ye(st), l = d?.attribFields?.length ? d.attribFields : a, { projectName: f } = ue();
297
+ return { attributes: wt(l, { projectName: f, request: t ?? [] }).filter((p) => Ue(p.data)).filter((p) => e.some((g) => p.scope?.includes(g))).map(
289
298
  (p) => p.data.enum?.some((g) => g.hidden) ? { ...p, data: { ...p.data, enum: at(p.data.enum) } } : p
290
299
  ), isLoading: r };
291
300
  }, Gt = "snippet_folder", de = "folder", Kt = (e) => `${de}-${e}`, _e = (e) => e.entityListType === "review-session" ? "subscriptions" : ge(e.entityType), ve = (e) => [...e].sort((t, a) => {
@@ -294,7 +303,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
294
303
  const r = new Date(t.createdAt || 0);
295
304
  return new Date(a.createdAt || 0).getTime() - r.getTime();
296
305
  }), Wt = (e = !0) => {
297
- const { projectName: t } = ue(), { powerLicense: a } = Ce(), {
306
+ const { projectName: t } = ue(), { powerLicense: a } = we(), {
298
307
  data: r,
299
308
  isLoading: d,
300
309
  isFetching: l
@@ -322,30 +331,30 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
322
331
  }), n.parentId || b.add(n.id);
323
332
  for (const n of f)
324
333
  if (n.parentId && u.has(n.parentId)) {
325
- const I = u.get(n.parentId), T = u.get(n.id);
326
- I.children.set(n.id, T);
334
+ const x = u.get(n.parentId), T = u.get(n.id);
335
+ x.children.set(n.id, T);
327
336
  }
328
337
  const h = [];
329
338
  for (const n of L) {
330
- const I = n.entityListFolderId;
331
- if (I && u.has(I)) {
332
- const T = u.get(I);
339
+ const x = n.entityListFolderId;
340
+ if (x && u.has(x)) {
341
+ const T = u.get(x);
333
342
  T.items.push(n), T.hasAnyItems = !0;
334
343
  } else
335
344
  h.push(n);
336
345
  }
337
346
  for (const n of u.values())
338
347
  if (n.hasAnyItems) {
339
- let I = n.folder;
340
- for (; I.parentId; ) {
341
- const T = u.get(I.parentId);
348
+ let x = n.folder;
349
+ for (; x.parentId; ) {
350
+ const T = u.get(x.parentId);
342
351
  if (T)
343
- T.hasAnyItems = !0, I = T.folder;
352
+ T.hasAnyItems = !0, x = T.folder;
344
353
  else
345
354
  break;
346
355
  }
347
356
  }
348
- const i = (n, I, T = []) => ({
357
+ const i = (n, x, T = []) => ({
349
358
  id: n.id,
350
359
  name: n.label,
351
360
  label: n.label,
@@ -359,15 +368,15 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
359
368
  entityType: n.entityType,
360
369
  listId: n.id
361
370
  }
362
- }), c = (n) => n.sort((I, T) => {
363
- const v = f.findIndex((H) => H.id === I.id), k = f.findIndex((H) => H.id === T.id);
364
- return v === -1 && k === -1 ? I.folder.label.localeCompare(T.folder.label) : v === -1 ? 1 : k === -1 ? -1 : v - k;
371
+ }), c = (n) => n.sort((x, T) => {
372
+ const v = f.findIndex((H) => H.id === x.id), k = f.findIndex((H) => H.id === T.id);
373
+ return v === -1 && k === -1 ? x.folder.label.localeCompare(T.folder.label) : v === -1 ? 1 : k === -1 ? -1 : v - k;
365
374
  }), s = (n) => {
366
- const I = n.items.map((T) => T.id);
375
+ const x = n.items.map((T) => T.id);
367
376
  for (const T of n.children.values())
368
- I.push(...s(T));
369
- return I;
370
- }, o = bt({
377
+ x.push(...s(T));
378
+ return x;
379
+ }, o = Et({
371
380
  folderNodes: u,
372
381
  rootFolderIds: b,
373
382
  showEmptyFolders: !1,
@@ -378,21 +387,21 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
378
387
  getFolderLabel: (n) => n.label,
379
388
  getFolderIcon: (n) => n.data?.icon || Gt,
380
389
  getFolderColor: (n) => n.data?.color,
381
- getItemCount: (n) => n.items.length + Array.from(n.children.values()).reduce((I, T) => I + T.items.length, 0)
390
+ getItemCount: (n) => n.items.length + Array.from(n.children.values()).reduce((x, T) => x + T.items.length, 0)
382
391
  });
383
392
  for (const n of o) {
384
393
  if (n.id.startsWith(de + "-")) {
385
394
  const T = n.id.substring((de + "-").length), v = u.get(T);
386
395
  v && (n.data = { ...n.data, childListIds: s(v) });
387
396
  }
388
- const I = [...n.subRows || []];
389
- for (; I.length > 0; ) {
390
- const T = I.shift();
397
+ const x = [...n.subRows || []];
398
+ for (; x.length > 0; ) {
399
+ const T = x.shift();
391
400
  if (T.id.startsWith(de + "-")) {
392
401
  const v = T.id.substring((de + "-").length), k = u.get(v);
393
402
  k && (T.data = { ...T.data, childListIds: s(k) });
394
403
  }
395
- T.subRows && I.push(...T.subRows);
404
+ T.subRows && x.push(...T.subRows);
396
405
  }
397
406
  }
398
407
  const y = ve(h).map((n) => i(n));
@@ -418,7 +427,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
418
427
  isLoading: d || l || S,
419
428
  isExpandable: p
420
429
  };
421
- }, qt = (e, t, a, r) => e.id === "noValue" ? t.get(He)?.count ?? (r ? 0 : void 0) : e.id === "hasValue" ? r ? a : void 0 : t.get(e.id)?.count ?? (e.name ? t.get(e.name)?.count : void 0) ?? (r ? 0 : void 0), Ke = (e, t, a, r) => t ? e.map((d) => {
430
+ }, qt = (e, t, a, r) => e.id === "noValue" ? t.get(ze)?.count ?? (r ? 0 : void 0) : e.id === "hasValue" ? r ? a : void 0 : t.get(e.id)?.count ?? (e.name ? t.get(e.name)?.count : void 0) ?? (r ? 0 : void 0), Ke = (e, t, a, r) => t ? e.map((d) => {
422
431
  const l = qt(d, t, a, r);
423
432
  return {
424
433
  ...d,
@@ -499,13 +508,13 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
499
508
  onSliceTypeChange: p,
500
509
  useExtraSlices: g,
501
510
  isLoadingExtraSlices: L
502
- } = xe(), u = f ?? m, b = S ?? p, { projectName: h } = ue(), { formatAttribute: i } = g(), c = e.filter((C) => Ae.some((R) => R.value === C.value)).map((C) => ({
511
+ } = Ie(), u = f ?? m, b = S ?? p, { projectName: h } = ue(), { formatAttribute: i } = g(), c = e.filter((C) => Ae.some((R) => R.value === C.value)).map((C) => ({
503
512
  ...Ae.find((_) => _.value === C.value),
504
513
  ...C
505
514
  })), s = e.some((C) => C.value === "attributes"), o = u?.startsWith("attrib.") ? u.slice(7) : void 0, y = O(
506
515
  () => o ? [o] : [],
507
516
  [o]
508
- ), { attributes: n, isLoading: I } = Bt({
517
+ ), { attributes: n, isLoading: x } = Bt({
509
518
  entityTypes: a,
510
519
  request: y
511
520
  });
@@ -513,7 +522,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
513
522
  (C) => c.push({
514
523
  label: C.data.title || C.name,
515
524
  value: "attrib." + C.name,
516
- icon: Tt(C.name, C.data.type, Ue(C.data))
525
+ icon: Ct(C.name, C.data.type, Ue(C.data))
517
526
  })
518
527
  );
519
528
  const [T, v] = U(!1), H = !!n.find((C) => C.name === o)?.enumIsLoading, {
@@ -528,32 +537,32 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
528
537
  data: te,
529
538
  getData: Q,
530
539
  isFetching: Y
531
- } = st({
540
+ } = St({
532
541
  projectName: h || "",
533
542
  folderTypes: oe?.folderTypes || [],
534
543
  includeColors: !0
535
- }), { getData: x, isLoading: D } = Vt({
544
+ }), { getData: I, isLoading: D } = Vt({
536
545
  projectName: h,
537
546
  useExtraSlices: g
538
547
  }), {
539
548
  getData: P,
540
549
  isLoading: K,
541
550
  isExpandable: re
542
- } = Wt(u === "entityList"), j = Y || B || D || L && u !== "hierarchy" || K && u === "entityList" || I || H, N = {
551
+ } = Wt(u === "entityList"), F = Y || B || D || L && u !== "hierarchy" || K && u === "entityList" || x || H, N = {
543
552
  hierarchy: {
544
553
  getData: Q,
545
554
  isLoading: Y,
546
555
  isExpandable: !0
547
556
  },
548
557
  assignees: {
549
- getData: x,
558
+ getData: I,
550
559
  isLoading: D,
551
560
  isExpandable: !1,
552
561
  noValue: !0,
553
562
  hasValue: !0
554
563
  },
555
564
  author: {
556
- getData: x,
565
+ getData: I,
557
566
  isLoading: D,
558
567
  isExpandable: !1
559
568
  },
@@ -586,7 +595,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
586
595
  for (const C of n)
587
596
  N["attrib." + C.name] = {
588
597
  getData: () => ee(C),
589
- isLoading: I || !!C.enumIsLoading,
598
+ isLoading: x || !!C.enumIsLoading,
590
599
  isExpandable: !1,
591
600
  isAttribute: !0
592
601
  };
@@ -594,8 +603,8 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
594
603
  (C) => N[C.value] && !t.includes(C.value)
595
604
  )?.value;
596
605
  se(() => {
597
- j || $ || !ne || b(ne, !1);
598
- }, [j, $, ne]);
606
+ F || $ || !ne || b(ne, !1);
607
+ }, [F, $, ne]);
599
608
  const z = (C, R) => {
600
609
  const _ = N[C];
601
610
  if (!_) {
@@ -605,7 +614,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
605
614
  (_.isAttribute && s || e.some((ce) => ce.value === C)) && b(C, R);
606
615
  };
607
616
  se(() => {
608
- if (j) return;
617
+ if (F) return;
609
618
  (async () => {
610
619
  try {
611
620
  if (!$) return;
@@ -625,12 +634,12 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
625
634
  v(!1);
626
635
  }
627
636
  })();
628
- }, [u, h, j, u === "hierarchy" ? te : null]);
629
- const F = O(
637
+ }, [u, h, F, u === "hierarchy" ? te : null]);
638
+ const j = O(
630
639
  () => Ke(le.data, r, d, l),
631
640
  [le.data, r, d, l]
632
641
  ), Le = O(() => {
633
- const C = /* @__PURE__ */ new Map(), R = [...F];
642
+ const C = /* @__PURE__ */ new Map(), R = [...j];
634
643
  for (; R.length > 0; ) {
635
644
  const _ = R.shift();
636
645
  if (_ && (C.set(_.id, _), _.subRows && _.subRows.length > 0))
@@ -638,12 +647,12 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
638
647
  R.push(ce);
639
648
  }
640
649
  return C;
641
- }, [F]);
650
+ }, [j]);
642
651
  return {
643
652
  sliceOptions: c,
644
- table: { ...le, data: F },
653
+ table: { ...le, data: j },
645
654
  sliceMap: Le,
646
- isLoading: N[u] && N[u].isLoading || T || j,
655
+ isLoading: N[u] && N[u].isLoading || T || F,
647
656
  sliceType: u,
648
657
  handleSliceTypeChange: z
649
658
  };
@@ -657,7 +666,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
657
666
  extraGroupBys: l,
658
667
  args: e?.args ?? { projectName: "" },
659
668
  skip: f
660
- }, { counts: m, total: p, complete: g } = yt(S), L = m?.get(He)?.count ?? 0, u = Math.max(p - L, 0);
669
+ }, { counts: m, total: p, complete: g } = Lt(S), L = m?.get(ze)?.count ?? 0, u = Math.max(p - L, 0);
661
670
  return {
662
671
  counts: f ? void 0 : m ?? (g ? Xt : void 0),
663
672
  total: p,
@@ -672,7 +681,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
672
681
  flex: 1;
673
682
  min-width: 0;
674
683
  }
675
- `, tn = V(vt)`
684
+ `, tn = V(ht)`
676
685
  flex: 1;
677
686
  min-width: 0;
678
687
  height: 28px;
@@ -702,10 +711,10 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
702
711
  }
703
712
  )
704
713
  ] });
705
- }, Ie = (e, t) => {
706
- e.toggleExpanded(t), e.subRows?.forEach((a) => Ie(a, t));
714
+ }, xe = (e, t) => {
715
+ e.toggleExpanded(t), e.subRows?.forEach((a) => xe(a, t));
707
716
  }, Oe = (e) => e.map((t) => t.id).filter(Boolean), sn = (e, t, a, r) => {
708
- const { onOpenNew: d } = Ct(), { projectName: l } = ue(), { setEntities: f } = Et(), S = Dt(), [m] = Ve(), { deleteEntities: p } = kt(), [g, L] = U(null), u = A(
717
+ const { onOpenNew: d } = Pt(), { projectName: l } = ue(), { setEntities: f } = dt(), S = Mt(), [m] = Ve(), { deleteEntities: p } = ut(), [g, L] = U(null), u = A(
709
718
  (c, s) => s.map((o) => t?.get(o) || (o === c.id ? c : void 0)).filter((o) => !!o),
710
719
  [t]
711
720
  ), b = O(
@@ -784,7 +793,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
784
793
  (c, { row: s, selectedRows: o }) => ({
785
794
  label: "Show details",
786
795
  icon: "dock_to_left",
787
- shortcut: wt("click", [Lt.Alt]),
796
+ shortcut: Dt("click", [Rt.Alt]),
788
797
  command: () => b.onShowDetails(s.original, o)
789
798
  }),
790
799
  (c, { row: s }) => ({
@@ -802,7 +811,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
802
811
  (c, { selectedTableRows: s }) => ({
803
812
  label: "Expand all children",
804
813
  icon: "expand_all",
805
- command: () => s.filter((o) => o.getCanExpand() && !o.getIsExpanded()).forEach((o) => Ie(o, !0)),
814
+ command: () => s.filter((o) => o.getCanExpand() && !o.getIsExpanded()).forEach((o) => xe(o, !0)),
806
815
  hidden: !s.some(
807
816
  (o) => o.getCanExpand() && !o.getIsExpanded()
808
817
  )
@@ -810,7 +819,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
810
819
  (c, { selectedTableRows: s }) => ({
811
820
  label: "Collapse all children",
812
821
  icon: "collapse_all",
813
- command: () => s.filter((o) => o.getCanExpand() && o.getIsExpanded()).forEach((o) => Ie(o, !1)),
822
+ command: () => s.filter((o) => o.getCanExpand() && o.getIsExpanded()).forEach((o) => xe(o, !1)),
814
823
  hidden: !s.some(
815
824
  (o) => o.getCanExpand() && o.getIsExpanded()
816
825
  )
@@ -864,7 +873,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
864
873
  onSubmitRename: h,
865
874
  onCancelRename: () => L(null)
866
875
  };
867
- }, on = V(It)`
876
+ }, on = V(gt)`
868
877
  /* put above the menu so it's still clickable */
869
878
  /* NOTE: this will need fixing as this also puts it above dialogs */
870
879
  /* z-index: 1001; */
@@ -936,7 +945,7 @@ const an = (e, t, a) => {
936
945
  ).join(", ")} since last sync`;
937
946
  }, ln = Je(
938
947
  ({ projectNames: e, topics: t, onSync: a, shouldSyncOnUpdate: r, hideWhenNoUpdates: d = !1, ...l }, f) => {
939
- const [S, m] = U(!1), [p, g] = Rt(), { setMenuOpen: L } = Mt(), u = ye(null), b = ye(), h = Xe();
948
+ const [S, m] = U(!1), [p, g] = pt(), { setMenuOpen: L } = ft(), u = ye(null), b = ye(), h = Xe();
940
949
  se(() => () => {
941
950
  const v = b.current;
942
951
  b.current = void 0, v !== void 0 && clearTimeout(v);
@@ -948,7 +957,7 @@ const an = (e, t, a) => {
948
957
  } finally {
949
958
  m(!1);
950
959
  }
951
- }, { updates: c, hasUpdates: s } = Pt({
960
+ }, { updates: c, hasUpdates: s } = mt({
952
961
  projectNames: e,
953
962
  topics: t,
954
963
  isSyncing: S,
@@ -956,7 +965,7 @@ const an = (e, t, a) => {
956
965
  });
957
966
  if (se(() => {
958
967
  const v = (k) => {
959
- k.repeat || !k.shiftKey || k.ctrlKey || k.metaKey || k.key.toLowerCase() !== "r" || St(k) || (k.preventDefault(), k.stopPropagation(), i());
968
+ k.repeat || !k.shiftKey || k.ctrlKey || k.metaKey || k.key.toLowerCase() !== "r" || kt(k) || (k.preventDefault(), k.stopPropagation(), i());
960
969
  };
961
970
  return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
962
971
  }, [i]), d && !s) return null;
@@ -1034,7 +1043,7 @@ const an = (e, t, a) => {
1034
1043
  }
1035
1044
  const y = c[c.length - 1];
1036
1045
  if (y && o(y, i.clientWidth)) return;
1037
- const n = i.clientWidth - s, I = c.filter((v) => o(v, n)).length, T = Math.max(1, I);
1046
+ const n = i.clientWidth - s, x = c.filter((v) => o(v, n)).length, T = Math.max(1, x);
1038
1047
  T !== g && L(T);
1039
1048
  }), !l.length) return /* @__PURE__ */ E(Ne, { ref: a });
1040
1049
  const b = l.slice(0, g), h = l.length - b.length;
@@ -1046,7 +1055,7 @@ const an = (e, t, a) => {
1046
1055
  title: i.label || i.name,
1047
1056
  "aria-label": i.label || i.name,
1048
1057
  children: [
1049
- i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(xt, { icon: i.icon, style: { color: i.iconColor } })),
1058
+ i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(yt, { icon: i.icon, style: { color: i.iconColor } })),
1050
1059
  !(p && f(i)) && /* @__PURE__ */ E("span", { children: i.label || i.name })
1051
1060
  ]
1052
1061
  },
@@ -1074,7 +1083,7 @@ const an = (e, t, a) => {
1074
1083
  flex: 1;
1075
1084
  min-width: 0;
1076
1085
  }
1077
- `, fn = V(ut)`
1086
+ `, fn = V(Tt)`
1078
1087
  .slicer-dropdown {
1079
1088
  flex: 0 1 auto;
1080
1089
  min-width: 48px;
@@ -1108,7 +1117,7 @@ const an = (e, t, a) => {
1108
1117
  text-overflow: ellipsis;
1109
1118
  white-space: nowrap;
1110
1119
  }
1111
- `, Fe = "__splitSlicer__", je = ({
1120
+ `, je = "__splitSlicer__", Fe = ({
1112
1121
  panel: e,
1113
1122
  visibleSlices: t,
1114
1123
  sliceFields: a,
@@ -1132,13 +1141,13 @@ const an = (e, t, a) => {
1132
1141
  setPanelSliceType: o,
1133
1142
  getPanelSelection: y,
1134
1143
  setPanelSelection: n,
1135
- getPanelExpanded: I,
1144
+ getPanelExpanded: x,
1136
1145
  setPanelExpanded: T,
1137
1146
  onSliceTypeChange: v,
1138
1147
  isViewSyncPending: k,
1139
1148
  onOpenViewer: H,
1140
1149
  onAddToList: oe
1141
- } = xe(), { refetch: ae } = we(), { powerLicense: q, setPowerpackDialog: ie } = Ce(), Z = y(e.id), ee = I(e.id), B = (w) => {
1150
+ } = Ie(), { refetch: ae } = Ce(), { powerLicense: q, setPowerpackDialog: ie } = we(), Z = y(e.id), ee = x(e.id), B = (w) => {
1142
1151
  n(e.id, w);
1143
1152
  }, te = A(
1144
1153
  (w) => T(e.id, w),
@@ -1151,7 +1160,7 @@ const an = (e, t, a) => {
1151
1160
  if (typeof l != "function") return w;
1152
1161
  const M = (X) => JSON.stringify([X?.entity, X?.args]), Qe = M(Q);
1153
1162
  return w.filter((X) => X === e.sliceType || M(l(X)) === Qe);
1154
- }, [l, Q, t, e.sliceType]), { counts: x, filled: D, complete: P } = Zt(
1163
+ }, [l, Q, t, e.sliceType]), { counts: I, filled: D, complete: P } = Zt(
1155
1164
  Q,
1156
1165
  e.sliceType,
1157
1166
  Y
@@ -1164,7 +1173,7 @@ const an = (e, t, a) => {
1164
1173
  () => t.filter((w) => w.id !== e.id).map((w) => w.sliceType),
1165
1174
  [t, e.id]
1166
1175
  ), {
1167
- sliceOptions: j,
1176
+ sliceOptions: F,
1168
1177
  sliceType: N,
1169
1178
  handleSliceTypeChange: pe,
1170
1179
  table: { data: le, isExpandable: fe },
@@ -1174,53 +1183,53 @@ const an = (e, t, a) => {
1174
1183
  sliceFields: a,
1175
1184
  usedSliceTypes: re,
1176
1185
  entityTypes: r,
1177
- counts: x,
1186
+ counts: I,
1178
1187
  filled: D,
1179
1188
  countsComplete: P,
1180
1189
  sliceType: e.sliceType,
1181
1190
  onSliceTypeChange: K
1182
- }), z = N === "hierarchy", F = !!p && c.includes(e.id), C = j.find((w) => w.value === N)?.label || N, R = L !== void 0, _ = L ?? "", ce = z ? "Folders" : C, J = sn(
1191
+ }), z = N === "hierarchy", j = !!p && c.includes(e.id), C = F.find((w) => w.value === N)?.label || N, R = L !== void 0, _ = L ?? "", ce = z ? "Folders" : C, J = sn(
1183
1192
  f || oe,
1184
1193
  $,
1185
1194
  H,
1186
1195
  S
1187
1196
  ), We = z ? J.rowContextMenuBuilders : [], Ee = O(
1188
- () => j.map((w) => w.value).filter((w) => !t.some((M) => M.sliceType === w)),
1189
- [j, t]
1197
+ () => F.map((w) => w.value).filter((w) => !t.some((M) => M.sliceType === w)),
1198
+ [F, t]
1190
1199
  ), be = !!m && Ee.length > 0, Se = O(() => {
1191
- const w = j.map(
1200
+ const w = F.map(
1192
1201
  (M) => re.includes(M.value) ? { ...M, disabled: !0, disabledMessage: "Already used by another panel" } : M
1193
1202
  );
1194
- return be && w.push({ label: "Split slicer", value: Fe, icon: "splitscreen_add" }), w;
1195
- }, [j, re, be]), ke = () => {
1203
+ return be && w.push({ label: "Split slicer", value: je, icon: "splitscreen_add" }), w;
1204
+ }, [F, re, be]), ke = () => {
1196
1205
  if (!q) return ie("slicer");
1197
1206
  h(Ee[0]);
1198
1207
  }, qe = (w) => {
1199
1208
  const M = String(w[0]);
1200
- if (M === Fe) {
1209
+ if (M === je) {
1201
1210
  ke();
1202
1211
  return;
1203
1212
  }
1204
1213
  pe(M, !!g && d === N);
1205
1214
  };
1206
- return /* @__PURE__ */ G(pt, { children: [
1215
+ return /* @__PURE__ */ G(vt, { children: [
1207
1216
  /* @__PURE__ */ G(
1208
1217
  fn,
1209
1218
  {
1210
- className: W({ collapsed: F }),
1211
- onClick: F ? () => s(e.id) : void 0,
1219
+ className: W({ collapsed: j }),
1220
+ onClick: j ? () => s(e.id) : void 0,
1212
1221
  children: [
1213
1222
  p && /* @__PURE__ */ E(
1214
1223
  he,
1215
1224
  {
1216
1225
  icon: "expand_more",
1217
- className: W("collapse-toggle", { collapsed: F }),
1218
- "data-tooltip": F ? "Expand panel" : "Collapse panel",
1226
+ className: W("collapse-toggle", { collapsed: j }),
1227
+ "data-tooltip": j ? "Expand panel" : "Collapse panel",
1219
1228
  "data-tooltip-delay": 0,
1220
1229
  onClick: () => s(e.id)
1221
1230
  }
1222
1231
  ),
1223
- F ? (
1232
+ j ? (
1224
1233
  // the dropdown cannot be used from a collapsed panel, but the dimension it
1225
1234
  // shows has to read the same as the dropdown does when open
1226
1235
  /* @__PURE__ */ E(mn, { children: /* @__PURE__ */ E("span", { children: C }) })
@@ -1235,14 +1244,14 @@ const an = (e, t, a) => {
1235
1244
  disableOpen: Se.length === 1
1236
1245
  }
1237
1246
  ),
1238
- F && /* @__PURE__ */ E(dn, { rowSelection: Z, sliceMap: $ }),
1247
+ j && /* @__PURE__ */ E(dn, { rowSelection: Z, sliceMap: $ }),
1239
1248
  /* @__PURE__ */ G(
1240
1249
  pn,
1241
1250
  {
1242
1251
  className: W({ searching: R }),
1243
1252
  onClick: (w) => w.stopPropagation(),
1244
1253
  children: [
1245
- !F && /* @__PURE__ */ E(
1254
+ !j && /* @__PURE__ */ E(
1246
1255
  nn,
1247
1256
  {
1248
1257
  open: R,
@@ -1286,8 +1295,8 @@ const an = (e, t, a) => {
1286
1295
  ]
1287
1296
  }
1288
1297
  ),
1289
- !F && /* @__PURE__ */ E(
1290
- ft,
1298
+ !j && /* @__PURE__ */ E(
1299
+ xt,
1291
1300
  {
1292
1301
  rowSelection: Z,
1293
1302
  onRowSelectionChange: B,
@@ -1295,7 +1304,7 @@ const an = (e, t, a) => {
1295
1304
  setExpanded: te,
1296
1305
  data: $,
1297
1306
  children: /* @__PURE__ */ E(
1298
- mt,
1307
+ It,
1299
1308
  {
1300
1309
  data: le,
1301
1310
  isExpandable: fe,
@@ -1329,7 +1338,7 @@ const an = (e, t, a) => {
1329
1338
  }
1330
1339
  `
1331
1340
  ).join("")}
1332
- `, Zn = ({
1341
+ `, ls = ({
1333
1342
  sliceFields: e = [],
1334
1343
  entityTypes: t = ["task"],
1335
1344
  pinnedSliceType: a,
@@ -1337,13 +1346,13 @@ const an = (e, t, a) => {
1337
1346
  onAddToList: d,
1338
1347
  enableSplit: l
1339
1348
  }) => {
1340
- const { slices: f, page: S, setPanelExpanded: m, projectName: p, collapsedPanels: g } = xe(), { powerLicense: L } = Ce(), u = !!l, b = u && L ? f : f.slice(0, 1), [h, i] = U(null), c = A((x) => {
1341
- i("entities" in x ? x : { entities: [x] });
1349
+ const { slices: f, page: S, setPanelExpanded: m, projectName: p, collapsedPanels: g } = Ie(), { powerLicense: L } = we(), u = !!l, b = u && L ? f : f.slice(0, 1), [h, i] = U(null), c = A((I) => {
1350
+ i("entities" in I ? I : { entities: [I] });
1342
1351
  }, []), s = A(() => {
1343
1352
  i(null);
1344
- }, []), { getParentFolderIds: o } = we(), y = A(
1345
- (x) => {
1346
- const D = [x, ...o(x)];
1353
+ }, []), { getParentFolderIds: o } = Ce(), y = A(
1354
+ (I) => {
1355
+ const D = [I, ...o(I)];
1347
1356
  m(
1348
1357
  "hierarchy",
1349
1358
  (P) => typeof P == "boolean" ? P || Object.fromEntries(D.map((K) => [K, !0])) : {
@@ -1353,29 +1362,29 @@ const an = (e, t, a) => {
1353
1362
  );
1354
1363
  },
1355
1364
  [o, m]
1356
- ), n = ye(null), [I, T] = U(0);
1365
+ ), n = ye(null), [x, T] = U(0);
1357
1366
  se(() => {
1358
- const x = n.current;
1359
- if (!x) return;
1367
+ const I = n.current;
1368
+ if (!I) return;
1360
1369
  const D = new ResizeObserver(([P]) => T(P.contentRect.height));
1361
- return D.observe(x), () => D.disconnect();
1370
+ return D.observe(I), () => D.disconnect();
1362
1371
  }, [b.length]);
1363
- const v = b.map((x) => x.id), k = b.length > 1, {
1372
+ const v = b.map((I) => I.id), k = b.length > 1, {
1364
1373
  sizes: H,
1365
1374
  minSize: oe,
1366
1375
  height: ae,
1367
1376
  layoutKey: q,
1368
1377
  handleResizeEnd: ie
1369
- } = $t(S, v, k ? g : [], I), Z = v.slice(0, -1).map(
1370
- (x, D) => k && (g.includes(x) || g.includes(v[D + 1])) ? D : -1
1371
- ).filter((x) => x >= 0), [ee, B] = U({}), te = A(
1372
- (x, D) => B((P) => ({ ...P, [x]: D })),
1378
+ } = $t(S, v, k ? g : [], x), Z = v.slice(0, -1).map(
1379
+ (I, D) => k && (g.includes(I) || g.includes(v[D + 1])) ? D : -1
1380
+ ).filter((I) => I >= 0), [ee, B] = U({}), te = A(
1381
+ (I, D) => B((P) => ({ ...P, [I]: D })),
1373
1382
  []
1374
1383
  ), Q = v.join("|");
1375
1384
  se(() => {
1376
- B((x) => {
1377
- const D = Object.keys(x).filter((P) => v.includes(P));
1378
- return D.length === Object.keys(x).length ? x : Object.fromEntries(D.map((P) => [P, x[P]]));
1385
+ B((I) => {
1386
+ const D = Object.keys(I).filter((P) => v.includes(P));
1387
+ return D.length === Object.keys(I).length ? I : Object.fromEntries(D.map((P) => [P, I[P]]));
1379
1388
  });
1380
1389
  }, [Q]);
1381
1390
  const Y = {
@@ -1391,12 +1400,12 @@ const an = (e, t, a) => {
1391
1400
  };
1392
1401
  return /* @__PURE__ */ G($e, { children: [
1393
1402
  b.length === 1 ? /* @__PURE__ */ E(
1394
- je,
1403
+ Fe,
1395
1404
  {
1396
1405
  panel: b[0],
1397
1406
  isPrimary: !0,
1398
1407
  search: ee[b[0].id],
1399
- onSearchChange: (x) => te(b[0].id, x),
1408
+ onSearchChange: (I) => te(b[0].id, I),
1400
1409
  ...Y
1401
1410
  }
1402
1411
  ) : /* @__PURE__ */ E(hn, { ref: n, $deadGutters: Z, children: /* @__PURE__ */ E(
@@ -1409,24 +1418,24 @@ const an = (e, t, a) => {
1409
1418
  height: ae,
1410
1419
  overflow: "hidden"
1411
1420
  },
1412
- children: b.map((x, D) => /* @__PURE__ */ E(
1421
+ children: b.map((I, D) => /* @__PURE__ */ E(
1413
1422
  tt,
1414
1423
  {
1415
1424
  size: H[D],
1416
1425
  minSize: oe,
1417
1426
  style: { overflow: "hidden" },
1418
1427
  children: /* @__PURE__ */ E(
1419
- je,
1428
+ Fe,
1420
1429
  {
1421
- panel: x,
1430
+ panel: I,
1422
1431
  isPrimary: D === 0,
1423
- search: ee[x.id],
1424
- onSearchChange: (P) => te(x.id, P),
1432
+ search: ee[I.id],
1433
+ onSearchChange: (P) => te(I.id, P),
1425
1434
  ...Y
1426
1435
  }
1427
1436
  )
1428
1437
  },
1429
- x.id
1438
+ I.id
1430
1439
  ))
1431
1440
  },
1432
1441
  q
@@ -1446,15 +1455,15 @@ export {
1446
1455
  _t as S,
1447
1456
  Be as a,
1448
1457
  Me as b,
1449
- jt as c,
1450
- Zn as d,
1458
+ Ft as c,
1459
+ ls as d,
1451
1460
  Kt as e,
1452
- Ft as f,
1461
+ jt as f,
1453
1462
  Ae as g,
1454
1463
  sn as h,
1455
1464
  Zt as i,
1456
1465
  $t as j,
1457
- Xn as k,
1466
+ rs as k,
1458
1467
  ln as l,
1459
1468
  Nt as r,
1460
1469
  Wt as u