@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,55 +2,49 @@ import { jsxs as k, jsx as i, Fragment as Ne } from "react/jsx-runtime";
2
2
  import { Toolbar as Me, Panel as gt, Button as X, Spacer as He, Icon as fe, getTextColor as Be, Dialog as ft, SEARCH_FILTER_ID as We, buildFilterId as ke, getFilterFromId as bt, SearchFilter as vt, AssigneeField as yt } from "@ynput/ayon-react-components";
3
3
  import { useEffect as W, useRef as Y, useMemo as P, useState as K, useContext as kt, useId as wt } from "react";
4
4
  import S, { keyframes as xt } from "styled-components";
5
- import "./chunks/searchTerms.es.js";
6
- import { bl as St, bJ as Ct, bX as Tt, cr as ze, bt as Ge, s as Nt, bN as Dt, c6 as Pt } from "./chunks/getUris.es.js";
5
+ import { bo as St } from "./chunks/searchTerms.es.js";
6
+ import { bl as Ct, bJ as Tt, bX as Nt, cr as ze, bt as Ge, s as Dt, bN as Pt, c6 as It } from "./chunks/getUris.es.js";
7
7
  import "primereact/confirmdialog";
8
- import { c as It, a as Et, H as Ft, G as jt, y as At, w as Qe, z as Ot, A as Rt, B as Ut, E as Vt, I as Lt, J as $t, W as _t, s as Mt } from "./chunks/Watchers.es.js";
9
- import { K as Sa, N as Ca, O as Ta, Q as Na, T as Da } from "./chunks/Watchers.es.js";
10
- import { E as Ht, R as Bt, a as Wt } from "./chunks/EntityPath.es.js";
11
- import { T as zt, h as Gt, i as Qt, j as qt, e as Kt, b as Jt } from "./chunks/DeleteEntitiesContext.es.js";
8
+ import { c as Et, a as Ft, H as At, G as Ot, y as jt, w as Qe, z as Rt, A as Ut, B as Vt, E as Lt, I as $t, J as _t, W as Mt, s as Ht } from "./chunks/Watchers.es.js";
9
+ import { K as va, N as ya, O as ka, Q as wa, T as xa } from "./chunks/Watchers.es.js";
10
+ import { E as Bt, R as Wt, a as zt } from "./chunks/EntityPath.es.js";
12
11
  import { union as we, upperFirst as qe } from "lodash";
13
12
  import "react-toastify";
14
13
  import "uuid";
15
- import { g as Xt, e as Yt } from "./chunks/extractEntityHierarchyFromParents.es.js";
16
- import { P as Ke } from "./chunks/ProjectContext.es.js";
17
- import { u as G, a as Zt } from "./chunks/DetailsPanelContext.es.js";
18
- import { u as en, c as tn } from "./chunks/MenuContext.es.js";
19
- import oe from "clsx";
20
- import { A as nn } from "./chunks/Actions.es.js";
21
- import { g as xe } from "./chunks/getEntityTypeIcon.es.js";
22
- import { P as sn } from "./chunks/PlayableIcon.es.js";
23
- import { R as an } from "./chunks/RepresentationsList.es.js";
24
- import { I as on } from "./chunks/InfoMessage.es.js";
25
- import { M as rn, a as ln } from "./chunks/Menu.es.js";
26
- import { D as cn } from "./chunks/DetailsDialog.es.js";
27
- import { u as dn } from "./chunks/VersionUploadContext.es.js";
28
- import { p as un } from "./chunks/pluralize.es.js";
29
- import { c as pn } from "./chunks/copyToClipboard.es.js";
30
- import { a as mn } from "./chunks/ProjectFoldersContext.es.js";
31
- import { F as hn } from "./chunks/Feed.es.js";
32
- import { a as Je, A as gn, C as fn } from "./chunks/ThumbnailSimple.es.js";
33
- import { j as bn, d as vn } from "./chunks/MetaWidget.es.js";
34
- import { t as yn, c as kn } from "./chunks/queryFilterToClientFilter.es.js";
35
- import { u as wn } from "./chunks/useDateRangeFilter.es.js";
36
- import { e as xn } from "./chunks/expandRelativeDates.es.js";
37
- import "./chunks/useLocalStorage.es.js";
14
+ import { g as Gt, e as Qt } from "./chunks/extractEntityHierarchyFromParents.es.js";
38
15
  import "@module-federation/enhanced/runtime";
16
+ import { v as G, u as qt, T as Kt, a6 as Jt, a0 as Xt, a8 as Yt, B as Zt, a7 as en, X as tn } from "./chunks/DeleteEntitiesContextInstance.es.js";
39
17
  import "semver";
18
+ import { T as nn, P as Ke } from "./chunks/ProjectContext.es.js";
40
19
  import "react-dom";
41
- import "./chunks/GlobalContext.es.js";
42
- import "./chunks/ProjectFoldersContextInstance.es.js";
43
20
  import "react-redux";
44
- import "./chunks/ViewsContext.es.js";
21
+ import oe from "clsx";
22
+ import { A as sn } from "./chunks/Actions.es.js";
23
+ import "./chunks/ContextMenuContextInstance.es.js";
24
+ import { g as xe } from "./chunks/getEntityTypeIcon.es.js";
25
+ import { P as an } from "./chunks/PlayableIcon.es.js";
26
+ import { R as on } from "./chunks/RepresentationsList.es.js";
27
+ import { I as rn } from "./chunks/InfoMessage.es.js";
28
+ import { M as ln, a as cn } from "./chunks/Menu.es.js";
29
+ import { D as dn } from "./chunks/DetailsDialog.es.js";
30
+ import { u as un } from "./chunks/VersionUploadContextInstance.es.js";
31
+ import { p as pn } from "./chunks/pluralize.es.js";
32
+ import { c as mn } from "./chunks/copyToClipboard.es.js";
33
+ import { u as hn } from "./chunks/useQueryArgumentChangeLoading.es.js";
34
+ import { c as Je, b as gn } from "./chunks/Feed.es.js";
35
+ import { A as fn, C as bn } from "./chunks/ThumbnailSimple.es.js";
36
+ import { m as vn, k as yn } from "./chunks/MetaWidget.es.js";
37
+ import { t as kn, c as wn } from "./chunks/queryFilterToClientFilter.es.js";
38
+ import { u as xn } from "./chunks/useDateRangeFilter.es.js";
39
+ import { e as Sn } from "./chunks/expandRelativeDates.es.js";
45
40
  import "axios";
46
41
  import "@dnd-kit/core";
47
42
  import "@dnd-kit/sortable";
48
43
  import "@dnd-kit/utilities";
49
- import "./chunks/useCreateContextMenu.es.js";
50
44
  import "custom-protocol-check";
51
45
  import "./chunks/SimpleForm.es.js";
52
- import { Dialog as Sn } from "primereact/dialog";
53
- function Cn({
46
+ import { Dialog as Cn } from "primereact/dialog";
47
+ function Tn({
54
48
  entityData: e,
55
49
  project: n,
56
50
  activeEntityType: t,
@@ -66,7 +60,7 @@ function Cn({
66
60
  window.history.replaceState({}, "", c);
67
61
  }, [e, n, t, o]);
68
62
  }
69
- const Tn = S(Me)`
63
+ const Nn = S(Me)`
70
64
  display: flex;
71
65
  justify-content: space-between;
72
66
  align-items: flex-start;
@@ -78,7 +72,7 @@ const Tn = S(Me)`
78
72
  & > * {
79
73
  min-width: max-content;
80
74
  }
81
- `, Nn = S.div`
75
+ `, Dn = S.div`
82
76
  display: flex;
83
77
  align-items: flex-start;
84
78
  gap: 4px;
@@ -87,26 +81,26 @@ const Tn = S(Me)`
87
81
  right: 0;
88
82
  padding: var(--padding-m);
89
83
  background-color: var(--md-sys-color-surface-container-low);
90
- `, Dn = S(gt)`
84
+ `, Pn = S(gt)`
91
85
  gap: 0px;
92
86
  height: 100%;
93
87
  padding: 0px;
94
88
  box-shadow: -2px 0 6px #00000047;
95
89
  z-index: 300;
96
- `, Pn = S(Me)`
90
+ `, In = S(Me)`
97
91
  border-radius: 8px 8px 0 0;
98
92
  gap: var(--base-gap-small) !important;
99
93
  position: relative;
100
94
  z-index: 100;
101
95
  grid-column: span 2;
102
- `, In = ["product", "representation"], En = ["task"], Fn = ({
96
+ `, En = ["product", "representation"], Fn = ["task"], An = ({
103
97
  entityType: e,
104
98
  currentTab: n,
105
99
  onTabChange: t,
106
100
  isLoading: o
107
101
  }) => {
108
- const s = !In.includes(e), a = En.includes(e);
109
- return /* @__PURE__ */ k(Pn, { className: o ? "loading" : "", children: [
102
+ const s = !En.includes(e), a = Fn.includes(e);
103
+ return /* @__PURE__ */ k(In, { className: o ? "loading" : "", children: [
110
104
  s && /* @__PURE__ */ i(
111
105
  X,
112
106
  {
@@ -152,12 +146,12 @@ const Tn = S(Me)`
152
146
  }
153
147
  )
154
148
  ] });
155
- }, jn = S.div`
149
+ }, On = S.div`
156
150
  display: flex;
157
151
  align-items: center;
158
152
  gap: var(--base-gap-small);
159
153
  overflow: hidden;
160
- `, An = S.button`
154
+ `, jn = S.button`
161
155
  display: inline-flex;
162
156
  align-items: center;
163
157
  gap: var(--base-gap-small);
@@ -179,14 +173,14 @@ const Tn = S(Me)`
179
173
  text-overflow: ellipsis;
180
174
  white-space: nowrap;
181
175
  }
182
- `, On = ({ entity: e, taskTypes: n }) => {
176
+ `, Rn = ({ entity: e, taskTypes: n }) => {
183
177
  const { openSlideOut: t } = G(), { projectName: o } = e, s = e.task?.name ? e.task : void 0;
184
178
  if (!s?.id) return null;
185
179
  const a = n.find((r) => r.name === s.taskType);
186
- return /* @__PURE__ */ k(jn, { className: "linked-task", children: [
180
+ return /* @__PURE__ */ k(On, { className: "linked-task", children: [
187
181
  /* @__PURE__ */ i("span", { children: "Task" }),
188
182
  /* @__PURE__ */ k(
189
- An,
183
+ jn,
190
184
  {
191
185
  onClick: () => t({ entityId: s.id, entityType: "task", projectName: o }),
192
186
  children: [
@@ -255,7 +249,7 @@ const Tn = S(Me)`
255
249
  subTitle: o.entityType || "Unknown Type"
256
250
  };
257
251
  }
258
- }, Rn = ({
252
+ }, Un = ({
259
253
  entityType: e,
260
254
  entitySubTypes: n,
261
255
  entities: t = [],
@@ -270,15 +264,15 @@ const Tn = S(Me)`
270
264
  projectInfo: g,
271
265
  onOpenViewer: f,
272
266
  onEntityFocus: x,
273
- thumbnailInputRef: A,
267
+ thumbnailInputRef: j,
274
268
  versionsInputRef: R
275
269
  }) => {
276
- const { useSearchParams: E, useNavigate: l, bundleMode: d } = G(), h = l(), [C, j] = E(), T = Y(null), v = P(() => Ye(g), [g]), w = It(
277
- t.map((m) => m.projectName),
270
+ const { useSearchParams: E, useNavigate: l, bundleMode: d } = G(), m = l(), [C, A] = E(), T = Y(null), v = P(() => Ye(g), [g]), w = Et(
271
+ t.map((h) => h.projectName),
278
272
  [e]
279
- ), O = P(() => e === "task" ? we(...t.map((m) => m.task?.assignees || [])) : e === "version" ? we(
280
- ...t.map((m) => {
281
- const D = m.version?.author;
273
+ ), O = P(() => e === "task" ? we(...t.map((h) => h.task?.assignees || [])) : e === "version" ? we(
274
+ ...t.map((h) => {
275
+ const D = h.version?.author;
282
276
  return Array.isArray(D) ? D : D ? [D] : [];
283
277
  })
284
278
  ) : [], [t, e]);
@@ -300,47 +294,47 @@ const Tn = S(Me)`
300
294
  path: ""
301
295
  });
302
296
  const Z = t.length > 1 ? void 0 : U?.projectName;
303
- t.filter((m) => m.projectName === U?.projectName && m.id).map((m) => m.id);
304
- const { data: ee } = St({ attributeName: "priority" }), te = Xt(ee, e), ne = P(
297
+ t.filter((h) => h.projectName === U?.projectName && h.id).map((h) => h.id);
298
+ const { data: ee } = Ct({ attributeName: "priority" }), te = Gt(ee, e), ne = P(
305
299
  () => Xe(t, e, v),
306
300
  [t, e, v]
307
- ), I = P(() => t.map((m) => m.status), [t]), se = P(() => t.map((m) => m.attrib?.priority), [t]), ie = P(() => t.map((m) => m.tags), [t]), le = P(
308
- () => r.reduce((m, D) => (m[D.name] = D, m), {}),
301
+ ), I = P(() => t.map((h) => h.status), [t]), se = P(() => t.map((h) => h.attrib?.priority), [t]), ie = P(() => t.map((h) => h.tags), [t]), le = P(
302
+ () => r.reduce((h, D) => (h[D.name] = D, h), {}),
309
303
  [r]
310
- ), Q = t.length > 1, re = !Q && !!U?.hasReviewables, L = ne.length === 1, { updateEntity: V } = Et({
311
- entities: t.map((m) => ({
312
- id: m.id,
313
- projectName: m.projectName,
314
- users: m.task?.assignees || [],
315
- folderId: m.folder?.id,
316
- productId: m.product?.id
304
+ ), Q = t.length > 1, re = !Q && !!U?.hasReviewables, L = ne.length === 1, { updateEntity: V } = Ft({
305
+ entities: t.map((h) => ({
306
+ id: h.id,
307
+ projectName: h.projectName,
308
+ users: h.task?.assignees || [],
309
+ folderId: h.folder?.id,
310
+ productId: h.product?.id
317
311
  })),
318
312
  entityType: e
319
- }), q = (m, D) => D == null ? console.error("value is null or undefined") : V(m, D), ce = () => {
320
- let m, D = U.id, H = e + "Id";
321
- e === "version" && U.product?.id && (m = [U.id], D = U.product?.id, H = "productId"), D && f({
313
+ }), q = (h, D) => D == null ? console.error("value is null or undefined") : V(h, D), ce = () => {
314
+ let h, D = U.id, H = e + "Id";
315
+ e === "version" && U.product?.id && (h = [U.id], D = U.product?.id, H = "productId"), D && f({
322
316
  [H]: D,
323
317
  projectName: Z,
324
- versionIds: m
318
+ versionIds: h
325
319
  });
326
- }, pe = (e === "task" || e === "version") && (O.length > 0 || e === "task"), de = s.map((m) => m);
320
+ }, pe = (e === "task" || e === "version") && (O.length > 0 || e === "task"), de = [...St(s, O)];
327
321
  if (pe) {
328
- const m = s.map((H) => H.name), D = O.filter((H) => !m.includes(H));
322
+ const h = s.map((H) => H.name), D = O.filter((H) => !h.includes(H));
329
323
  D.length && de.push(...D.map((H) => ({ name: H, fullName: H })));
330
324
  }
331
- const { title: N, subTitle: me } = Ze(t, e), he = w?.length !== 0 && w?.find((m) => m.name === I[0]);
332
- return /* @__PURE__ */ i(Ft, { children: /* @__PURE__ */ i(
333
- Ht,
325
+ const { title: N, subTitle: me } = Ze(t, e), he = w?.length !== 0 && w?.find((h) => h.name === I[0]);
326
+ return /* @__PURE__ */ i(At, { children: /* @__PURE__ */ i(
327
+ Bt,
334
328
  {
335
329
  entities: t,
336
330
  entityType: e,
337
331
  projectName: Z,
338
- thumbnailInputRef: A,
332
+ thumbnailInputRef: j,
339
333
  versionsInputRef: R,
340
- onVersionCreated: (m) => x?.(m, "version"),
341
- children: /* @__PURE__ */ k(jt, { className: oe("details-panel-header", { isCompact: p }), children: [
334
+ onVersionCreated: (h) => x?.(h, "version"),
335
+ children: /* @__PURE__ */ k(Ot, { className: oe("details-panel-header", { isCompact: p }), children: [
342
336
  /* @__PURE__ */ k(
343
- At,
337
+ jt,
344
338
  {
345
339
  className: oe("titles", { isCompact: p, loading: _ }, "no-shimmer"),
346
340
  children: [
@@ -355,13 +349,13 @@ const Tn = S(Me)`
355
349
  hoverIcon: re ? "play_circle" : void 0
356
350
  }
357
351
  ),
358
- re && /* @__PURE__ */ i(sn, {})
352
+ re && /* @__PURE__ */ i(an, {})
359
353
  ] }),
360
- /* @__PURE__ */ k(Ot, { className: oe({ loading: _ }), children: [
361
- /* @__PURE__ */ k(Rt, { children: [
354
+ /* @__PURE__ */ k(Rt, { className: oe({ loading: _ }), children: [
355
+ /* @__PURE__ */ k(Ut, { children: [
362
356
  /* @__PURE__ */ i("h2", { children: N }),
363
357
  /* @__PURE__ */ i(
364
- Ut,
358
+ Vt,
365
359
  {
366
360
  ref: T,
367
361
  value: we(...ie),
@@ -369,7 +363,7 @@ const Tn = S(Me)`
369
363
  options: [],
370
364
  editable: !0,
371
365
  editor: !0,
372
- onChange: (m) => q("tags", m),
366
+ onChange: (h) => q("tags", h),
373
367
  align: "right",
374
368
  styleDropdown: { display: _ ? "none" : "unset" },
375
369
  className: "tags-select",
@@ -385,7 +379,7 @@ const Tn = S(Me)`
385
379
  /* @__PURE__ */ i("h3", { children: me })
386
380
  ] }),
387
381
  e === "version" && !Q && !_ && U && /* @__PURE__ */ i(
388
- On,
382
+ Rn,
389
383
  {
390
384
  entity: U,
391
385
  taskTypes: g.taskTypes
@@ -397,36 +391,36 @@ const Tn = S(Me)`
397
391
  }
398
392
  ),
399
393
  /* @__PURE__ */ i(
400
- Vt,
394
+ Lt,
401
395
  {
402
396
  value: I,
403
397
  options: w || [],
404
398
  disabledValues: a,
405
399
  invert: !0,
406
400
  style: { maxWidth: "unset" },
407
- onChange: (m) => q("status", m),
401
+ onChange: (h) => q("status", h),
408
402
  className: oe("status-select", { loading: _ }),
409
403
  align: p ? "right" : "left",
410
404
  $textColor: Be(he !== void 0 ? he.color : "#OOO")
411
405
  }
412
406
  ),
413
407
  !p && (!pe || _ ? /* @__PURE__ */ i("div", {}) : /* @__PURE__ */ i(
414
- Lt,
408
+ $t,
415
409
  {
416
410
  value: O,
417
411
  options: de,
418
- disabledValues: o.map((m) => m.name),
412
+ disabledValues: o.map((h) => h.name),
419
413
  isMultiple: Q && O.length > 1 && e === "task",
420
414
  readOnly: e !== "task",
421
415
  emptyMessage: e === "task" ? "Assign user" : "",
422
416
  align: "right",
423
- onChange: (m) => q("assignees", m),
417
+ onChange: (h) => q("assignees", h),
424
418
  className: "assignee-select",
425
419
  "data-tooltip": O.length ? e === "task" ? "Assigned users" : "Author" : ""
426
420
  }
427
421
  )),
428
422
  /* @__PURE__ */ i(
429
- nn,
423
+ sn,
430
424
  {
431
425
  entities: t,
432
426
  entityType: e,
@@ -434,22 +428,22 @@ const Tn = S(Me)`
434
428
  isLoadingEntity: !!c || !!_,
435
429
  searchParams: C,
436
430
  bundleMode: d,
437
- onSetSearchParams: j,
438
- onNavigate: h
431
+ onSetSearchParams: A,
432
+ onNavigate: m
439
433
  }
440
434
  ),
441
435
  te ? /* @__PURE__ */ i(
442
- $t,
436
+ _t,
443
437
  {
444
438
  options: te,
445
439
  placeholder: "No priority",
446
440
  value: se,
447
- onChange: (m) => q("attrib", { priority: m[0] }),
441
+ onChange: (h) => q("attrib", { priority: h[0] }),
448
442
  align: "right"
449
443
  }
450
444
  ) : /* @__PURE__ */ i("div", { style: { height: 32 } }),
451
445
  /* @__PURE__ */ i(
452
- Fn,
446
+ An,
453
447
  {
454
448
  entityType: e,
455
449
  currentTab: b,
@@ -460,7 +454,7 @@ const Tn = S(Me)`
460
454
  ] })
461
455
  }
462
456
  ) });
463
- }, Un = S.div`
457
+ }, Vn = S.div`
464
458
  display: flex;
465
459
  flex-direction: column;
466
460
 
@@ -480,7 +474,7 @@ const Tn = S(Me)`
480
474
  &:first-child {
481
475
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
482
476
  }
483
- `, Vn = ({
477
+ `, Ln = ({
484
478
  entities: e = [],
485
479
  scope: n,
486
480
  isLoadingVersion: t
@@ -488,11 +482,11 @@ const Tn = S(Me)`
488
482
  const o = e[0];
489
483
  if (!o) return null;
490
484
  let s = "Reviewables";
491
- return e.length > 1 && (s += ` (${o.name})`), e.some((a) => a.entityType !== "version") ? null : /* @__PURE__ */ k(Un, { children: [
485
+ return e.length > 1 && (s += ` (${o.name})`), e.some((a) => a.entityType !== "version") ? null : /* @__PURE__ */ k(Vn, { children: [
492
486
  /* @__PURE__ */ k(Ve, { children: [
493
487
  /* @__PURE__ */ i("h4", { children: s }),
494
488
  /* @__PURE__ */ i(
495
- Bt,
489
+ Wt,
496
490
  {
497
491
  projectName: o.projectName,
498
492
  productId: o.product?.id,
@@ -504,20 +498,16 @@ const Tn = S(Me)`
504
498
  ] }),
505
499
  /* @__PURE__ */ k(Ve, { children: [
506
500
  /* @__PURE__ */ i("h4", { children: "Representations" }),
507
- /* @__PURE__ */ i(an, { entities: e })
501
+ /* @__PURE__ */ i(on, { entities: e })
508
502
  ] })
509
503
  ] });
510
- }, Ln = (e) => {
511
- const n = e?.version?.version, t = e?.product?.latestVersion;
512
- if (!(e?.entityType !== "version" || !n || n <= 0 || !t?.active))
513
- return t.version > n ? t : void 0;
514
504
  }, $n = ({
515
505
  latestVersion: e,
516
506
  resolveVersionJump: n
517
507
  }) => {
518
508
  const t = n?.(e.id);
519
509
  return /* @__PURE__ */ i(
520
- on,
510
+ rn,
521
511
  {
522
512
  variant: "info",
523
513
  compact: !0,
@@ -531,12 +521,16 @@ const Tn = S(Me)`
531
521
  } : void 0
532
522
  }
533
523
  );
534
- }, _n = () => ({
535
- onOpenVersionUpload: dn()?.onOpenVersionUpload ?? null
536
- }), Mn = (e, n, t) => {
524
+ }, _n = (e) => {
525
+ const n = e?.version?.version, t = e?.product?.latestVersion;
526
+ if (!(e?.entityType !== "version" || !n || n <= 0 || !t?.active))
527
+ return t.version > n ? t : void 0;
528
+ }, Mn = () => ({
529
+ onOpenVersionUpload: un()?.onOpenVersionUpload ?? null
530
+ }), Hn = (e, n, t) => {
537
531
  const o = e === "folder" || e === "task" ? "overview" : e === "product" || e === "version" || e === "representation" ? "products" : null;
538
532
  return o ? `${typeof window < "u" ? window.location.origin : ""}/projects/${t}/${o}?project=${t}&type=${e}&id=${n}` : null;
539
- }, Hn = ({
533
+ }, Bn = ({
540
534
  entityType: e,
541
535
  entityId: n,
542
536
  projectName: t,
@@ -551,48 +545,48 @@ const Tn = S(Me)`
551
545
  onPip: g,
552
546
  onOpenViewer: f,
553
547
  onUploadThumbnail: x,
554
- onUploadVersion: A,
548
+ onUploadVersion: j,
555
549
  onShare: R,
556
550
  onViewData: E,
557
551
  onDelete: l
558
552
  }) => {
559
- const d = P(() => o.length ? o.filter((h) => !!h?.entityId).map((h) => ({
560
- entityId: h.entityId,
561
- entityType: h.entityType || e,
562
- hasReviewables: h.hasReviewables
553
+ const d = P(() => o.length ? o.filter((m) => !!m?.entityId).map((m) => ({
554
+ entityId: m.entityId,
555
+ entityType: m.entityType || e,
556
+ hasReviewables: m.hasReviewables
563
557
  })) : n ? [{ entityId: n, entityType: e }] : [], [o, n, e]);
564
558
  return P(() => {
565
- const h = [];
566
- if (p && h.push({
559
+ const m = [];
560
+ if (p && m.push({
567
561
  id: "open-in-viewer",
568
562
  label: "Open in viewer",
569
563
  icon: "play_circle",
570
564
  onClick: f
571
- }), c && h.push({
565
+ }), c && m.push({
572
566
  id: "picture-in-picture",
573
567
  label: "Picture in picture",
574
568
  icon: "picture_in_picture",
575
569
  onClick: g
576
- }), a && h.push({
570
+ }), a && m.push({
577
571
  id: "upload-thumbnail",
578
572
  label: "Upload thumbnail",
579
573
  icon: "add_photo_alternate",
580
574
  onClick: x
581
- }), r && h.push({
575
+ }), r && m.push({
582
576
  id: "upload-version",
583
577
  label: "Upload version",
584
578
  icon: "upload",
585
- onClick: A
579
+ onClick: j
586
580
  }), u?.openAddToListDialog && t && d.length) {
587
581
  const T = d[0]?.entityType || e, v = u.openAddToListDialog;
588
- if (h.push({
582
+ if (m.push({
589
583
  id: "add-to-list",
590
584
  label: "Add to list",
591
585
  icon: "list_alt_add",
592
586
  onClick: () => v(T, d)
593
587
  }), (T === "version" || T === "representation") && u.hasReviewAddon) {
594
588
  const O = d.some((U) => U.hasReviewables === !0);
595
- h.push({
589
+ m.push({
596
590
  id: "add-to-review-list",
597
591
  label: "Add to session",
598
592
  icon: "list_alt_add",
@@ -602,24 +596,24 @@ const Tn = S(Me)`
602
596
  });
603
597
  }
604
598
  }
605
- const C = d[0], j = C?.entityId && t ? Mn(
599
+ const C = d[0], A = C?.entityId && t ? Hn(
606
600
  C.entityType || e,
607
601
  C.entityId,
608
602
  t
609
603
  ) : null;
610
- if (j && h.push({
604
+ if (A && m.push({
611
605
  id: "share",
612
606
  label: "Share",
613
607
  icon: "share",
614
- onClick: () => R(j)
615
- }), h.push({
608
+ onClick: () => R(A)
609
+ }), m.push({
616
610
  id: "view-data",
617
611
  label: "View data",
618
612
  icon: "database",
619
613
  onClick: E
620
614
  }), b && s.length > 0) {
621
- const T = new Set(s.map((O) => O.entityType)), v = T.size === 1 ? [...T][0] : "item", w = s.length === 1 ? `Delete ${v}` : `Delete ${un(s.length, v)}`;
622
- h.push({
615
+ const T = new Set(s.map((O) => O.entityType)), v = T.size === 1 ? [...T][0] : "item", w = s.length === 1 ? `Delete ${v}` : `Delete ${pn(s.length, v)}`;
616
+ m.push({
623
617
  id: "delete",
624
618
  label: w,
625
619
  icon: "delete",
@@ -627,7 +621,7 @@ const Tn = S(Me)`
627
621
  onClick: l
628
622
  });
629
623
  }
630
- return { items: h, shareLink: j };
624
+ return { items: m, shareLink: A };
631
625
  }, [
632
626
  c,
633
627
  p,
@@ -642,12 +636,12 @@ const Tn = S(Me)`
642
636
  g,
643
637
  f,
644
638
  x,
645
- A,
639
+ j,
646
640
  R,
647
641
  E,
648
642
  l
649
643
  ]);
650
- }, Bn = S.div`
644
+ }, Wn = S.div`
651
645
  display: flex;
652
646
  flex-direction: column;
653
647
  gap: 16px;
@@ -687,12 +681,12 @@ const Tn = S(Me)`
687
681
  text-overflow: ellipsis;
688
682
  white-space: nowrap;
689
683
  }
690
- `, Wn = ({ link: e, entityLabel: n, visible: t, onHide: o }) => {
684
+ `, zn = ({ link: e, entityLabel: n, visible: t, onHide: o }) => {
691
685
  if (!t) return null;
692
686
  const s = `[${n}](${e})`, a = (r) => {
693
- pn(r, !0), o();
687
+ mn(r, !0), o();
694
688
  };
695
- return /* @__PURE__ */ i(ft, { isOpen: !0, onClose: o, size: "sm", header: "Share", children: /* @__PURE__ */ k(Bn, { children: [
689
+ return /* @__PURE__ */ i(ft, { isOpen: !0, onClose: o, size: "sm", header: "Share", children: /* @__PURE__ */ k(Wn, { children: [
696
690
  /* @__PURE__ */ k(Le, { children: [
697
691
  /* @__PURE__ */ i($e, { children: "Link" }),
698
692
  /* @__PURE__ */ k(_e, { type: "button", onClick: () => a(e), "aria-label": "Copy link", children: [
@@ -708,7 +702,7 @@ const Tn = S(Me)`
708
702
  ] })
709
703
  ] })
710
704
  ] }) });
711
- }, zn = (e, n, t, o) => {
705
+ }, Gn = (e, n, t, o) => {
712
706
  const s = { projectName: t, quickView: !0 };
713
707
  switch (e) {
714
708
  case "folder":
@@ -722,7 +716,7 @@ const Tn = S(Me)`
722
716
  default:
723
717
  return null;
724
718
  }
725
- }, Gn = ({
719
+ }, Qn = ({
726
720
  entityType: e,
727
721
  entityId: n,
728
722
  entityIds: t,
@@ -736,14 +730,14 @@ const Tn = S(Me)`
736
730
  taskId: u,
737
731
  folderId: g
738
732
  }) => {
739
- const f = Y(null), [x, A] = K(!1), [R, E] = K(null), { menuOpen: l, toggleMenuOpen: d, setMenuOpen: h } = en(), { triggerThumbnailUpload: C, canUploadVersion: j } = kt(zt), { onOpenVersionUpload: T } = _n(), v = wt(), w = P(() => {
733
+ const f = Y(null), [x, j] = K(!1), [R, E] = K(null), { menuOpen: l, toggleMenuOpen: d, setMenuOpen: m } = qt(), { triggerThumbnailUpload: C, canUploadVersion: A } = kt(Kt), { onOpenVersionUpload: T } = Mn(), v = wt(), w = P(() => {
740
734
  const L = n || t?.[0] || "noentity";
741
735
  return `details-more-menu-${v}-${L}-${s || "noproject"}`;
742
- }, [v, n, t, s]), O = l === w, U = !!n && !!s && !!C, _ = !!j && !!T, Z = () => {
736
+ }, [v, n, t, s]), O = l === w, U = !!n && !!s && !!C, _ = !!A && !!T, Z = () => {
743
737
  T?.({ productId: b, taskId: u, folderId: g });
744
- }, ee = n && s ? zn(e, n, s, b) : null, te = !!p && !!ee, ne = Gt(), I = P(() => (a.length ? a : n ? [{ entityId: n, entityType: e, projectName: s }] : []).map((V) => {
738
+ }, ee = n && s ? Gn(e, n, s, b) : null, te = !!p && !!ee, ne = Jt(), I = P(() => (a.length ? a : n ? [{ entityId: n, entityType: e, projectName: s }] : []).map((V) => {
745
739
  const q = V.entityType || e, ce = V.projectName || s;
746
- return !Qt(q) || !V.entityId || !ce ? null : {
740
+ return !Xt(q) || !V.entityId || !ce ? null : {
747
741
  id: V.entityId,
748
742
  entityType: q,
749
743
  name: V.name,
@@ -753,8 +747,8 @@ const Tn = S(Me)`
753
747
  parentId: V.parentId
754
748
  };
755
749
  }).filter((V) => V !== null), [a, n, e, s]), se = !!ne && I.length > 0, ie = () => {
756
- h(!1), ne?.deleteEntities(I);
757
- }, { items: le } = Hn({
750
+ m(!1), ne?.deleteEntities(I);
751
+ }, { items: le } = Bn({
758
752
  entityType: e,
759
753
  entityId: n,
760
754
  projectName: s,
@@ -771,7 +765,7 @@ const Tn = S(Me)`
771
765
  onUploadThumbnail: () => C?.(),
772
766
  onUploadVersion: Z,
773
767
  onShare: (L) => E(L),
774
- onViewData: () => A(!0),
768
+ onViewData: () => j(!0),
775
769
  onDelete: ie
776
770
  }), Q = t?.length ? t : n ? [n] : [], re = o || n || "";
777
771
  return /* @__PURE__ */ k(Ne, { children: [
@@ -787,19 +781,19 @@ const Tn = S(Me)`
787
781
  onClick: () => d(w)
788
782
  }
789
783
  ),
790
- /* @__PURE__ */ i(rn, { id: w, target: f.current, align: "right", children: /* @__PURE__ */ i(ln, { menu: le, onClose: () => h(!1) }) }),
784
+ /* @__PURE__ */ i(ln, { id: w, target: f.current, align: "right", children: /* @__PURE__ */ i(cn, { menu: le, onClose: () => m(!1) }) }),
791
785
  x && s && Q.length > 0 && /* @__PURE__ */ i(
792
- cn,
786
+ dn,
793
787
  {
794
788
  projectName: s,
795
789
  entityType: e,
796
790
  entityIds: Q,
797
791
  visible: x,
798
- onHide: () => A(!1)
792
+ onHide: () => j(!1)
799
793
  }
800
794
  ),
801
795
  R && /* @__PURE__ */ i(
802
- Wn,
796
+ zn,
803
797
  {
804
798
  link: R,
805
799
  entityLabel: re,
@@ -808,7 +802,7 @@ const Tn = S(Me)`
808
802
  }
809
803
  )
810
804
  ] });
811
- }, Qn = (e, n) => {
805
+ }, qn = (e, n) => {
812
806
  const t = [e];
813
807
  let o = e;
814
808
  for (; o.parentId && o.parentId !== "root"; ) {
@@ -818,32 +812,32 @@ const Tn = S(Me)`
818
812
  t.unshift(s), o = s;
819
813
  }
820
814
  return t;
821
- }, qn = (e, n) => {
815
+ }, Kn = (e, n) => {
822
816
  const t = [];
823
817
  let o = n.get(e.folder?.id || "");
824
- if ((o ? Qn(o, n) : []).forEach((a) => {
818
+ if ((o ? qn(o, n) : []).forEach((a) => {
825
819
  t.push({ type: "folder", label: a.label || a.name, id: a.id });
826
820
  }), e.entityType === "version") {
827
821
  const a = `${e.product?.name} - ${e.name}`;
828
822
  t.push({ type: "version", label: a, id: e.id });
829
823
  }
830
824
  return e.entityType === "task" && t.push({ type: "task", label: e.label || e.name, id: e.id }), t;
831
- }, Kn = ({
825
+ }, Jn = ({
832
826
  entity: e,
833
827
  entityType: n,
834
828
  projectName: t,
835
829
  isLoading: o
836
830
  }) => {
837
- const { data: { folders: s = [] } = {}, isFetching: a } = Ct(
831
+ const { data: { folders: s = [] } = {}, isFetching: a } = Tt(
838
832
  // TODO: this is major overkill, we are only using label, name and id
839
833
  // We add a patch field that allows us to specify what ws message changes should cause an update to this query
840
834
  // @ts-expect-error - patch is not part of the query args
841
835
  { projectName: t, patch: ["id", "name", "label"] },
842
836
  { skip: !t || o }
843
- ), r = mn(
837
+ ), r = hn(
844
838
  { projectName: t || "", isLoading: o },
845
839
  a
846
- ), { data: c } = Tt(
840
+ ), { data: c } = Nt(
847
841
  { productId: e.product?.id || "", projectName: t },
848
842
  { skip: n !== "version" || !e.product?.id }
849
843
  ), p = P(
@@ -858,7 +852,7 @@ const Tn = S(Me)`
858
852
  [s]
859
853
  );
860
854
  return [P(
861
- () => r ? [] : qn(e, b),
855
+ () => r ? [] : Kn(e, b),
862
856
  [r, s, e]
863
857
  ), p];
864
858
  }, et = (e, n) => {
@@ -891,12 +885,12 @@ const Tn = S(Me)`
891
885
  ...u,
892
886
  ...b,
893
887
  children: [
894
- /* @__PURE__ */ i(hn, { ...b, statuses: b.statuses }),
895
- /* @__PURE__ */ i(gn, {})
888
+ /* @__PURE__ */ i(gn, { ...b, statuses: b.statuses }),
889
+ /* @__PURE__ */ i(fn, {})
896
890
  ]
897
891
  }
898
892
  );
899
- }, Jn = ({
893
+ }, Xn = ({
900
894
  children: e,
901
895
  scope: n = "dashboard",
902
896
  entities: t,
@@ -908,7 +902,7 @@ const Tn = S(Me)`
908
902
  exportAnnotationComposite: p,
909
903
  ...b
910
904
  }) => {
911
- const u = { annotations: r, removeAnnotation: c, exportAnnotationComposite: p }, { user: g } = G(), f = g?.name ?? "", x = g?.attrib?.fullName ?? "", [A, R] = K(null);
905
+ const u = { annotations: r, removeAnnotation: c, exportAnnotationComposite: p }, { user: g } = G(), f = g?.name ?? "", x = g?.attrib?.fullName ?? "", [j, R] = K(null);
912
906
  return /* @__PURE__ */ i(
913
907
  Je,
914
908
  {
@@ -920,7 +914,7 @@ const Tn = S(Me)`
920
914
  userName: f,
921
915
  userFullName: x,
922
916
  ...u,
923
- editingId: A,
917
+ editingId: j,
924
918
  setEditingId: R,
925
919
  ...b,
926
920
  children: e
@@ -970,15 +964,15 @@ const Tn = S(Me)`
970
964
  }), Object.keys(s).forEach((a) => {
971
965
  (a === "productTypes" || s[a].length > 0) && (t[a] = o(s[a]));
972
966
  }), t;
973
- }, Xn = S.div`
967
+ }, Yn = S.div`
974
968
  display: flex;
975
969
  align-items: center;
976
970
  padding: 4px 8px;
977
971
  gap: var(--base-gap-small);
978
- `, Yn = S.span`
972
+ `, Zn = S.span`
979
973
  font-weight: 600;
980
974
  user-select: none;
981
- `, Zn = S.div`
975
+ `, es = S.div`
982
976
  display: flex;
983
977
  gap: var(--base-gap-small);
984
978
  `, Ce = S(X)`
@@ -986,7 +980,7 @@ const Tn = S(Me)`
986
980
  &.hasIcon {
987
981
  padding: 4px;
988
982
  }
989
- `, es = S.div`
983
+ `, ts = S.div`
990
984
  display: flex;
991
985
  align-items: center;
992
986
  gap: var(--base-gap-small);
@@ -1003,10 +997,10 @@ const Tn = S(Me)`
1003
997
  box-shadow: 0 0 0 1px var(--md-sys-color-primary-container);
1004
998
  background-color: var(--md-sys-color-surface-container-lowest);
1005
999
  }
1006
- `, ts = S(bn)`
1000
+ `, ns = S(vn)`
1007
1001
  width: 28px;
1008
1002
  height: 28px;
1009
- `, ns = S.input`
1003
+ `, ss = S.input`
1010
1004
  flex: 1;
1011
1005
  min-width: 0;
1012
1006
  border: none;
@@ -1019,7 +1013,7 @@ const Tn = S(Me)`
1019
1013
  &::placeholder {
1020
1014
  color: var(--md-sys-color-outline);
1021
1015
  }
1022
- `, ss = S(X)`
1016
+ `, as = S(X)`
1023
1017
  background-color: unset;
1024
1018
  min-width: unset;
1025
1019
  &.hasIcon {
@@ -1056,7 +1050,7 @@ const Tn = S(Me)`
1056
1050
  operator: t,
1057
1051
  value: a[0] || ""
1058
1052
  };
1059
- }, as = ({
1053
+ }, os = ({
1060
1054
  label: e,
1061
1055
  filters: n,
1062
1056
  currentFilter: t,
@@ -1078,56 +1072,56 @@ const Tn = S(Me)`
1078
1072
  o(l.id);
1079
1073
  return;
1080
1074
  }
1081
- const h = t.conditions ? [...t.conditions] : [], C = {
1075
+ const m = t.conditions ? [...t.conditions] : [], C = {
1082
1076
  ...t,
1083
- conditions: h,
1077
+ conditions: m,
1084
1078
  operator: t.operator || "and"
1085
- }, j = String(l.id), T = h.findIndex((w) => ue(w, j)), v = l.type || "boolean";
1079
+ }, A = String(l.id), T = m.findIndex((w) => ue(w, A)), v = l.type || "boolean";
1086
1080
  if (v === "boolean")
1087
- T > -1 ? h.splice(T, 1) : h.push({ key: j, operator: l.operator || "eq", value: !0 });
1081
+ T > -1 ? m.splice(T, 1) : m.push({ key: A, operator: l.operator || "eq", value: !0 });
1088
1082
  else if (v === "enum") {
1089
1083
  const w = Array.isArray(d) ? d : [d];
1090
1084
  if (w.length === 0 || w.length === 1 && w[0] === void 0)
1091
- T > -1 && h.splice(T, 1);
1085
+ T > -1 && m.splice(T, 1);
1092
1086
  else {
1093
1087
  const O = {
1094
- key: j,
1088
+ key: A,
1095
1089
  operator: l.operator || "in",
1096
1090
  value: w
1097
1091
  };
1098
- T > -1 ? h[T] = O : h.push(O);
1092
+ T > -1 ? m[T] = O : m.push(O);
1099
1093
  }
1100
1094
  } else if (v === "search") {
1101
1095
  const w = typeof d == "string" ? d : "";
1102
1096
  if (!w)
1103
- T > -1 && h.splice(T, 1);
1097
+ T > -1 && m.splice(T, 1);
1104
1098
  else {
1105
- const O = st(w, j, l.operator || "like");
1106
- T > -1 ? h[T] = O : h.push(O);
1099
+ const O = st(w, A, l.operator || "like");
1100
+ T > -1 ? m[T] = O : m.push(O);
1107
1101
  }
1108
1102
  }
1109
1103
  o(C);
1110
1104
  }, f = (l) => {
1111
1105
  const d = String(l.id);
1112
1106
  if (a !== d && (r(d), u(t))) {
1113
- const h = t.conditions?.find((C) => ue(C, d));
1114
- p(h ? Te(h) : "");
1107
+ const m = t.conditions?.find((C) => ue(C, d));
1108
+ p(m ? Te(m) : "");
1115
1109
  }
1116
1110
  }, x = (l, d) => {
1117
1111
  p(d), g(l, d);
1118
- }, A = (l) => {
1112
+ }, j = (l) => {
1119
1113
  p(""), r(null), g(l, "");
1120
1114
  }, R = (l) => u(t) ? t.conditions?.some((d) => ue(d, String(l.id))) : l.id === t, E = (l) => u(t) ? t.conditions?.find(
1121
- (h) => De(h) && h.key === String(l.id)
1115
+ (m) => De(m) && m.key === String(l.id)
1122
1116
  )?.value || [] : [];
1123
- return /* @__PURE__ */ k(Xn, { className: oe("panel-tabs", { loading: s }), children: [
1124
- /* @__PURE__ */ i(Yn, { className: "panel-header-label", children: e }),
1117
+ return /* @__PURE__ */ k(Yn, { className: oe("panel-tabs", { loading: s }), children: [
1118
+ /* @__PURE__ */ i(Zn, { className: "panel-header-label", children: e }),
1125
1119
  /* @__PURE__ */ i(He, {}),
1126
- /* @__PURE__ */ i(Zn, { className: "panel-header-filters", children: n.map((l) => {
1127
- const d = R(l), h = l.type || "boolean";
1128
- if (h === "enum")
1120
+ /* @__PURE__ */ i(es, { className: "panel-header-filters", children: n.map((l) => {
1121
+ const d = R(l), m = l.type || "boolean";
1122
+ if (m === "enum")
1129
1123
  return /* @__PURE__ */ i(
1130
- ts,
1124
+ ns,
1131
1125
  {
1132
1126
  options: l.options || [],
1133
1127
  value: E(l),
@@ -1150,10 +1144,10 @@ const Tn = S(Me)`
1150
1144
  },
1151
1145
  String(l.id)
1152
1146
  );
1153
- if (h === "search") {
1147
+ if (m === "search") {
1154
1148
  const C = a === String(l.id);
1155
1149
  return /* @__PURE__ */ k(
1156
- es,
1150
+ ts,
1157
1151
  {
1158
1152
  className: oe("panel-filter", "panel-filter-search", { expanded: C }),
1159
1153
  children: [
@@ -1169,22 +1163,22 @@ const Tn = S(Me)`
1169
1163
  ),
1170
1164
  C && /* @__PURE__ */ k(Ne, { children: [
1171
1165
  /* @__PURE__ */ i(
1172
- ns,
1166
+ ss,
1173
1167
  {
1174
1168
  ref: b,
1175
1169
  value: c,
1176
- onChange: (j) => x(l, j.target.value),
1177
- onKeyDown: (j) => {
1178
- j.key === "Escape" && A(l);
1170
+ onChange: (A) => x(l, A.target.value),
1171
+ onKeyDown: (A) => {
1172
+ A.key === "Escape" && j(l);
1179
1173
  },
1180
1174
  placeholder: l.placeholder || "Search..."
1181
1175
  }
1182
1176
  ),
1183
1177
  /* @__PURE__ */ i(
1184
- ss,
1178
+ as,
1185
1179
  {
1186
1180
  icon: "close",
1187
- onClick: () => A(l),
1181
+ onClick: () => j(l),
1188
1182
  "data-tooltip": "Clear",
1189
1183
  "data-tooltip-delay": 0
1190
1184
  }
@@ -1209,10 +1203,10 @@ const Tn = S(Me)`
1209
1203
  );
1210
1204
  }) })
1211
1205
  ] });
1212
- }, at = ["done", "isDone"], os = (e) => !!e && "key" in e, is = (e, n) => {
1206
+ }, at = ["done", "isDone"], is = (e) => !!e && "key" in e, rs = (e, n) => {
1213
1207
  const t = [], o = [], s = (a) => {
1214
1208
  if (!a) return;
1215
- if (os(a)) {
1209
+ if (is(a)) {
1216
1210
  const c = a.key;
1217
1211
  if (c === "search") {
1218
1212
  const u = String(a.value ?? "");
@@ -1264,7 +1258,7 @@ const Tn = S(Me)`
1264
1258
  });
1265
1259
  return;
1266
1260
  }
1267
- const r = yn(a, n);
1261
+ const r = kn(a, n);
1268
1262
  if (r) {
1269
1263
  t.push(r);
1270
1264
  return;
@@ -1272,7 +1266,7 @@ const Tn = S(Me)`
1272
1266
  a.conditions?.forEach(s);
1273
1267
  };
1274
1268
  return e?.conditions?.forEach(s), o.length && t.push({ id: We, label: "", values: o }), t;
1275
- }, rs = (e) => {
1269
+ }, ls = (e) => {
1276
1270
  const n = [], t = [];
1277
1271
  return e.forEach((o) => {
1278
1272
  const s = bt(o.id), a = (o.values || []).map((r) => r.id);
@@ -1285,12 +1279,12 @@ const Tn = S(Me)`
1285
1279
  const r = a[0] === "true";
1286
1280
  n.push({ key: s, operator: "eq", value: r });
1287
1281
  } else if (o.type === "datetime") {
1288
- const r = kn(s, o);
1282
+ const r = wn(s, o);
1289
1283
  r && n.push(r);
1290
1284
  } else
1291
1285
  n.push({ key: s, operator: "in", value: a.map(String) });
1292
1286
  }), t.length === 1 ? n.push(t[0]) : t.length > 1 && n.push({ operator: "or", conditions: t }), { operator: "and", conditions: n };
1293
- }, ls = S.div`
1287
+ }, cs = S.div`
1294
1288
  padding: 4px 8px;
1295
1289
  padding-bottom: 0;
1296
1290
 
@@ -1298,7 +1292,7 @@ const Tn = S(Me)`
1298
1292
  opacity: 0.5;
1299
1293
  pointer-events: none;
1300
1294
  }
1301
- `, cs = ({
1295
+ `, ds = ({
1302
1296
  subtasksFilter: e,
1303
1297
  setSubtasksFilter: n,
1304
1298
  users: t,
@@ -1351,17 +1345,17 @@ const Tn = S(Me)`
1351
1345
  // },
1352
1346
  ],
1353
1347
  [t]
1354
- ), p = P(() => is(e, c), [e, c]), [b, u] = K(p), g = Y(null), f = wn();
1348
+ ), p = P(() => rs(e, c), [e, c]), [b, u] = K(p), g = Y(null), f = xn();
1355
1349
  W(() => {
1356
1350
  u(p);
1357
1351
  }, [JSON.stringify(p)]);
1358
1352
  const x = (d) => {
1359
- const h = rs(d);
1360
- n(h), r?.("");
1361
- }, A = (d) => {
1353
+ const m = ls(d);
1354
+ n(m), r?.("");
1355
+ }, j = (d) => {
1362
1356
  f.wrapFilterChange(d, b, u);
1363
- }, R = (d, h) => {
1364
- h || r?.(d);
1357
+ }, R = (d, m) => {
1358
+ m || r?.(d);
1365
1359
  };
1366
1360
  let E = "";
1367
1361
  s > 0 && (E = `${a}/${s}`);
@@ -1369,7 +1363,7 @@ const Tn = S(Me)`
1369
1363
  () => [{ id: "isDone", label: E, tooltip: "Status" }],
1370
1364
  [E]
1371
1365
  );
1372
- return /* @__PURE__ */ k(ls, { className: o ? "loading" : void 0, children: [
1366
+ return /* @__PURE__ */ k(cs, { className: o ? "loading" : void 0, children: [
1373
1367
  /* @__PURE__ */ i(
1374
1368
  vt,
1375
1369
  {
@@ -1377,7 +1371,7 @@ const Tn = S(Me)`
1377
1371
  compact: !0,
1378
1372
  options: c,
1379
1373
  filters: b,
1380
- onChange: A,
1374
+ onChange: j,
1381
1375
  onFinish: x,
1382
1376
  enableGlobalSearch: !0,
1383
1377
  enableMultipleSameFilters: !1,
@@ -1400,7 +1394,7 @@ const Tn = S(Me)`
1400
1394
  }
1401
1395
  ),
1402
1396
  /* @__PURE__ */ i(
1403
- fn,
1397
+ bn,
1404
1398
  {
1405
1399
  isOpen: !!f.customRangeFilterId,
1406
1400
  header: c.find((d) => d.id === f.customRangeFilterId?.split("__")[0])?.label ?? "Custom range",
@@ -1413,7 +1407,7 @@ const Tn = S(Me)`
1413
1407
  }
1414
1408
  )
1415
1409
  ] });
1416
- }, ds = ({ ...e }) => {
1410
+ }, us = ({ ...e }) => {
1417
1411
  const [n, t] = K({}), [o, s] = K(""), [a, r] = K([]), { dispatch: c } = G(), { data: p = [] } = ze({ projectName: e.projectName }), b = e.subtasks?.length || 0, u = e.subtasks?.filter((f) => f.isDone).length || 0, g = P(() => {
1418
1412
  let f = n;
1419
1413
  if (o) {
@@ -1424,11 +1418,11 @@ const Tn = S(Me)`
1424
1418
  operator: "and"
1425
1419
  };
1426
1420
  }
1427
- return xn(f);
1421
+ return Sn(f);
1428
1422
  }, [n, o]);
1429
1423
  return /* @__PURE__ */ k(Ne, { children: [
1430
1424
  /* @__PURE__ */ i(
1431
- as,
1425
+ os,
1432
1426
  {
1433
1427
  label: `Subtasks (${b})`,
1434
1428
  filters: [],
@@ -1437,7 +1431,7 @@ const Tn = S(Me)`
1437
1431
  }
1438
1432
  ),
1439
1433
  /* @__PURE__ */ i(
1440
- cs,
1434
+ ds,
1441
1435
  {
1442
1436
  subtasksFilter: n,
1443
1437
  setSubtasksFilter: t,
@@ -1448,7 +1442,7 @@ const Tn = S(Me)`
1448
1442
  }
1449
1443
  ),
1450
1444
  /* @__PURE__ */ i(
1451
- vn,
1445
+ yn,
1452
1446
  {
1453
1447
  ...e,
1454
1448
  style: { padding: 8, height: "unset" },
@@ -1461,7 +1455,7 @@ const Tn = S(Me)`
1461
1455
  }
1462
1456
  )
1463
1457
  ] });
1464
- }, us = ["product", "representation"], ps = ({
1458
+ }, ps = ["product", "representation"], ms = ({
1465
1459
  entityType: e,
1466
1460
  entitySubTypes: n = [],
1467
1461
  // entities is data we already have from kanban
@@ -1478,16 +1472,16 @@ const Tn = S(Me)`
1478
1472
  isSlideOut: g = !1,
1479
1473
  style: f = {},
1480
1474
  scope: x,
1481
- isCompact: A = !1,
1475
+ isCompact: j = !1,
1482
1476
  onClose: R,
1483
1477
  onWatchersUpdate: E,
1484
1478
  onOpenViewer: l,
1485
1479
  onEntityFocus: d,
1486
- onOpen: h,
1480
+ onOpen: m,
1487
1481
  onUriOpen: C,
1488
1482
  // when the details panel is opened from uri
1489
1483
  // annotations
1490
- annotations: j,
1484
+ annotations: A,
1491
1485
  removeAnnotation: T,
1492
1486
  exportAnnotationComposite: v,
1493
1487
  entityListId: w,
@@ -1506,11 +1500,11 @@ const Tn = S(Me)`
1506
1500
  useSearchParams: le,
1507
1501
  SubtasksManager: Q,
1508
1502
  useNavigate: re
1509
- } = G(), { currentTab: L, setTab: V, isFeed: q } = Zt(x), [ce, pe] = le(), de = Y(!1), N = I?.entityType ?? e, me = I?.entities ?? o, he = I?.entitySubTypes ?? n, m = I?.entities ? [] : t, D = I?.entities ? I.entities.map((y) => y.projectName) : u;
1503
+ } = G(), { currentTab: L, setTab: V, isFeed: q } = Yt(x), [ce, pe] = le(), de = Y(!1), N = I?.entityType ?? e, me = I?.entities ?? o, he = I?.entitySubTypes ?? n, h = I?.entities ? [] : t, D = I?.entities ? I.entities.map((y) => y.projectName) : u;
1510
1504
  W(() => {
1511
- h && !de.current && (de.current = !0, h());
1505
+ m && !de.current && (de.current = !0, m());
1512
1506
  }, []), W(() => {
1513
- us.includes(N) && L !== "details" && V("details");
1507
+ ps.includes(N) && L !== "details" && V("details");
1514
1508
  }, [N, L, V]), W(() => {
1515
1509
  o.length && I && se(null);
1516
1510
  }, [o, I, se]);
@@ -1523,7 +1517,7 @@ const Tn = S(Me)`
1523
1517
  }, [N, L, x]);
1524
1518
  let J = me.length ? me.map((y) => ({ id: y.id, projectName: y.projectName })) : (
1525
1519
  // @ts-expect-error = not sure what's going on with activeEntitiesData, we should try and remove it
1526
- m.map((y) => ({ id: y.id, projectName: y.projectName }))
1520
+ h.map((y) => ({ id: y.id, projectName: y.projectName }))
1527
1521
  );
1528
1522
  J = J.filter((y) => y.id);
1529
1523
  const {
@@ -1534,7 +1528,7 @@ const Tn = S(Me)`
1534
1528
  } = Ge(
1535
1529
  { entityType: N, entities: J },
1536
1530
  {
1537
- skip: !J.length || !Nt.includes(N)
1531
+ skip: !J.length || !Dt.includes(N)
1538
1532
  }
1539
1533
  );
1540
1534
  W(() => {
@@ -1552,15 +1546,15 @@ const Tn = S(Me)`
1552
1546
  be.current = y, C(F, I.source);
1553
1547
  }
1554
1548
  }, [$, ae, I, C]);
1555
- const Pe = et(b), z = D[0], Ie = b[z] || {}, M = $[0] || {}, ge = $[$.length - 1], ve = D[D.length - 1], Ee = x === "inbox" && N === "version" && $.length === 1 ? Ln($[0]) : void 0, [Fe, lt] = Kn({
1549
+ const Pe = et(b), z = D[0], Ie = b[z] || {}, M = $[0] || {}, ge = $[$.length - 1], ve = D[D.length - 1], Ee = x === "inbox" && N === "version" && $.length === 1 ? _n($[0]) : void 0, [Fe, lt] = Jn({
1556
1550
  entity: M,
1557
1551
  entityType: N,
1558
1552
  projectName: z,
1559
1553
  isLoading: ae
1560
- }), { setEntityUri: ct, setUri: je } = tn();
1554
+ }), { setEntityUri: ct, setUri: Ae } = Zt();
1561
1555
  W(() => {
1562
1556
  if (!ge?.parents || !ve) return;
1563
- const { folderPath: y, taskName: F, versionName: B, productName: Ue } = Yt(
1557
+ const { folderPath: y, taskName: F, versionName: B, productName: Ue } = Qt(
1564
1558
  ge.parents,
1565
1559
  N,
1566
1560
  ge.name
@@ -1572,9 +1566,9 @@ const Tn = S(Me)`
1572
1566
  productName: Ue,
1573
1567
  versionName: B
1574
1568
  }), () => {
1575
- je("");
1569
+ Ae("");
1576
1570
  };
1577
- }, [$, D, N]), Cn({
1571
+ }, [$, D, N]), Tn({
1578
1572
  entityData: ge,
1579
1573
  project: ve,
1580
1574
  activeEntityType: N,
@@ -1589,7 +1583,7 @@ const Tn = S(Me)`
1589
1583
  { replace: !0 }
1590
1584
  );
1591
1585
  }, ye = () => {
1592
- R?.(), se(null), je(""), dt(), Z();
1586
+ R?.(), se(null), Ae(""), dt(), Z();
1593
1587
  };
1594
1588
  W(() => {
1595
1589
  const y = (F) => {
@@ -1601,7 +1595,7 @@ const Tn = S(Me)`
1601
1595
  };
1602
1596
  return window.addEventListener("keydown", y), () => window.removeEventListener("keydown", y);
1603
1597
  }, [ye, g, ie]);
1604
- const { requestPipWindow: ut } = qt(), Ae = Y(null), Oe = Y(null), pt = $.length === 1 && N !== "representation", mt = P(() => {
1598
+ const { requestPipWindow: ut } = en(), Oe = Y(null), je = Y(null), pt = $.length === 1 && N !== "representation", mt = P(() => {
1605
1599
  const y = M?.label || M?.name || "", F = M?.parents || [], B = [z];
1606
1600
  switch (N) {
1607
1601
  case "folder":
@@ -1630,15 +1624,15 @@ const Tn = S(Me)`
1630
1624
  te.attrib?.email || ""
1631
1625
  )));
1632
1626
  return /* @__PURE__ */ i(
1633
- Kt,
1627
+ nn,
1634
1628
  {
1635
- thumbnailInputRef: Ae,
1636
- versionsInputRef: Oe,
1629
+ thumbnailInputRef: Oe,
1630
+ versionsInputRef: je,
1637
1631
  canUploadVersion: pt,
1638
- children: /* @__PURE__ */ k(Dn, { className: "details-panel", children: [
1639
- /* @__PURE__ */ k(Tn, { children: [
1632
+ children: /* @__PURE__ */ k(Pn, { className: "details-panel", children: [
1633
+ /* @__PURE__ */ k(Nn, { children: [
1640
1634
  /* @__PURE__ */ i(
1641
- Wt,
1635
+ zt,
1642
1636
  {
1643
1637
  segments: Fe,
1644
1638
  versions: lt,
@@ -1650,9 +1644,9 @@ const Tn = S(Me)`
1650
1644
  entityTypeIcons: ot
1651
1645
  }
1652
1646
  ),
1653
- /* @__PURE__ */ k(Nn, { className: "right-tools", children: [
1647
+ /* @__PURE__ */ k(Dn, { className: "right-tools", children: [
1654
1648
  /* @__PURE__ */ i(
1655
- Gn,
1649
+ Qn,
1656
1650
  {
1657
1651
  entityType: N,
1658
1652
  entityId: M?.id,
@@ -1680,7 +1674,7 @@ const Tn = S(Me)`
1680
1674
  }
1681
1675
  ),
1682
1676
  /* @__PURE__ */ i(
1683
- _t,
1677
+ Mt,
1684
1678
  {
1685
1679
  entities: J,
1686
1680
  entityType: N,
@@ -1708,7 +1702,7 @@ const Tn = S(Me)`
1708
1702
  }
1709
1703
  ),
1710
1704
  /* @__PURE__ */ i(
1711
- Rn,
1705
+ Un,
1712
1706
  {
1713
1707
  entityType: N,
1714
1708
  entitySubTypes: he,
@@ -1718,14 +1712,14 @@ const Tn = S(Me)`
1718
1712
  disabledStatuses: a,
1719
1713
  tagsOptions: s,
1720
1714
  isFetching: ae,
1721
- isCompact: A,
1715
+ isCompact: j,
1722
1716
  currentTab: L,
1723
1717
  onTabChange: V,
1724
1718
  projectInfo: H,
1725
1719
  onOpenViewer: (y) => l?.(y),
1726
1720
  onEntityFocus: d,
1727
- thumbnailInputRef: Ae,
1728
- versionsInputRef: Oe
1721
+ thumbnailInputRef: Oe,
1722
+ versionsInputRef: je
1729
1723
  }
1730
1724
  ),
1731
1725
  /* @__PURE__ */ k(Ke, { projectName: z, children: [
@@ -1742,14 +1736,14 @@ const Tn = S(Me)`
1742
1736
  statuses: Pe,
1743
1737
  readOnly: !1,
1744
1738
  entityListId: w,
1745
- annotations: j,
1739
+ annotations: A,
1746
1740
  removeAnnotation: T,
1747
1741
  exportAnnotationComposite: v,
1748
1742
  isSlideOut: g
1749
1743
  }
1750
1744
  ),
1751
1745
  L === "subtasks" && N === "task" && M?.id && Q && /* @__PURE__ */ i(
1752
- ds,
1746
+ us,
1753
1747
  {
1754
1748
  projectName: z,
1755
1749
  taskId: M.id,
@@ -1762,7 +1756,7 @@ const Tn = S(Me)`
1762
1756
  }
1763
1757
  ),
1764
1758
  L === "files" && /* @__PURE__ */ i(
1765
- Vn,
1759
+ Ln,
1766
1760
  {
1767
1761
  entities: $,
1768
1762
  scope: x,
@@ -1770,7 +1764,7 @@ const Tn = S(Me)`
1770
1764
  }
1771
1765
  ),
1772
1766
  L === "details" && /* @__PURE__ */ i(
1773
- Jn,
1767
+ Xn,
1774
1768
  {
1775
1769
  entityType: N,
1776
1770
  entities: $,
@@ -1781,11 +1775,11 @@ const Tn = S(Me)`
1781
1775
  scope: x,
1782
1776
  statuses: Pe,
1783
1777
  readOnly: !1,
1784
- annotations: j,
1778
+ annotations: A,
1785
1779
  removeAnnotation: T,
1786
1780
  exportAnnotationComposite: v,
1787
1781
  children: /* @__PURE__ */ i(
1788
- Mt,
1782
+ Ht,
1789
1783
  {
1790
1784
  entities: $,
1791
1785
  isLoading: ae
@@ -1797,14 +1791,14 @@ const Tn = S(Me)`
1797
1791
  ] })
1798
1792
  }
1799
1793
  );
1800
- }, ms = ({
1794
+ }, hs = ({
1801
1795
  isOpen: e,
1802
1796
  entityType: n,
1803
1797
  ...t
1804
1798
  }) => {
1805
1799
  const { entities: o } = G();
1806
- return !e && !o || !n && !o ? null : /* @__PURE__ */ i(ps, { ...t, entityType: n || o?.entityType });
1807
- }, hs = xt`
1800
+ return !e && !o || !n && !o ? null : /* @__PURE__ */ i(ms, { ...t, entityType: n || o?.entityType });
1801
+ }, gs = xt`
1808
1802
  from {
1809
1803
  translate: 0 0;
1810
1804
  }
@@ -1812,7 +1806,7 @@ to {
1812
1806
  translate: calc(-100% - 8px) 0;
1813
1807
 
1814
1808
  }
1815
- `, gs = S.div`
1809
+ `, fs = S.div`
1816
1810
  position: absolute;
1817
1811
  left: 0;
1818
1812
  top: 0;
@@ -1821,11 +1815,11 @@ to {
1821
1815
  width: 100%;
1822
1816
  max-width: 533px;
1823
1817
 
1824
- animation: ${hs} 0.2s ease forwards;
1825
- `, ya = ({ projectsInfo: e, scope: n }) => {
1826
- const { slideOut: t, onOpenViewer: o } = G(), { entityType: s, entityId: a, projectName: r } = t || {}, c = !!s && !!a && !!r, { data: p } = ze({ projectName: r }, { skip: !r }), b = e[r || ""] || {}, { tags: u = [] } = b, { closeSlideOut: g } = G(), f = () => g(), x = (A) => o?.(A);
1827
- return c ? /* @__PURE__ */ i(gs, { children: /* @__PURE__ */ i(
1828
- ms,
1818
+ animation: ${gs} 0.2s ease forwards;
1819
+ `, ha = ({ projectsInfo: e, scope: n }) => {
1820
+ const { slideOut: t, onOpenViewer: o } = G(), { entityType: s, entityId: a, projectName: r } = t || {}, c = !!s && !!a && !!r, { data: p } = ze({ projectName: r }, { skip: !r }), b = e[r || ""] || {}, { tags: u = [] } = b, { closeSlideOut: g } = G(), f = () => g(), x = (j) => o?.(j);
1821
+ return c ? /* @__PURE__ */ i(fs, { children: /* @__PURE__ */ i(
1822
+ hs,
1829
1823
  {
1830
1824
  isOpen: !0,
1831
1825
  entityType: s,
@@ -1843,20 +1837,20 @@ to {
1843
1837
  }
1844
1838
  ) }) : null;
1845
1839
  };
1846
- S(Sn)`
1840
+ S(Cn)`
1847
1841
  .p-dialog-header-icons {
1848
1842
  display: none;
1849
1843
  }
1850
1844
  .p-dialog-content {
1851
1845
  }
1852
1846
  `;
1853
- const fs = S.div`
1847
+ const bs = S.div`
1854
1848
  display: flex;
1855
1849
  flex-direction: column;
1856
1850
  margin: -8px;
1857
1851
  width: calc(100% + 16px);
1858
1852
  height: calc(100% + 16px);
1859
- `, bs = S.header`
1853
+ `, vs = S.header`
1860
1854
  display: flex;
1861
1855
  align-items: flex-start;
1862
1856
  gap: var(--base-gap-large);
@@ -1868,7 +1862,7 @@ const fs = S.div`
1868
1862
  display: none;
1869
1863
  }
1870
1864
  }
1871
- `, vs = S.div`
1865
+ `, ys = S.div`
1872
1866
  display: flex;
1873
1867
  flex-direction: column;
1874
1868
  height: 100%;
@@ -1905,12 +1899,12 @@ const fs = S.div`
1905
1899
  align-items: center;
1906
1900
  gap: var(--base-gap-medium);
1907
1901
  }
1908
- `, ys = S.div`
1902
+ `, ks = S.div`
1909
1903
  display: flex;
1910
1904
  justify-content: space-between;
1911
1905
  padding: 8px;
1912
1906
  padding-top: 0;
1913
- `, ks = S.div`
1907
+ `, ws = S.div`
1914
1908
  border-top: solid 1px var(--md-sys-color-outline-variant);
1915
1909
  height: 100%;
1916
1910
  overflow: hidden;
@@ -1929,7 +1923,7 @@ const fs = S.div`
1929
1923
  display: none;
1930
1924
  }
1931
1925
  }
1932
- `, ws = S.div`
1926
+ `, xs = S.div`
1933
1927
  display: flex;
1934
1928
  align-items: center;
1935
1929
  gap: var(--base-gap-small);
@@ -1940,8 +1934,8 @@ const fs = S.div`
1940
1934
  .icon {
1941
1935
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 300, 'opsz' 20;
1942
1936
  }
1943
- `, ka = () => {
1944
- const { pip: e } = G(), n = e?.entityType, t = e?.entities || [], o = e?.scope || "", s = t.length > 0 && !!n, a = t.map((v) => v.projectName), { data: r = [] } = Dt({ projects: a }, { skip: !s }), { data: c = {}, isFetching: p } = Pt(
1937
+ `, ga = () => {
1938
+ const { pip: e } = G(), n = e?.entityType, t = e?.entities || [], o = e?.scope || "", s = t.length > 0 && !!n, a = t.map((v) => v.projectName), { data: r = [] } = Pt({ projects: a }, { skip: !s }), { data: c = {}, isFetching: p } = It(
1945
1939
  {
1946
1940
  projects: a
1947
1941
  },
@@ -1965,7 +1959,7 @@ const fs = S.div`
1965
1959
  product: f.productTypes.filter((v) => !!v.icon).reduce((v, w) => ({ ...v, [w.name]: w.icon }), {})
1966
1960
  }),
1967
1961
  [f]
1968
- ), A = P(
1962
+ ), j = P(
1969
1963
  () => n ? Xe(u, n, x) : [],
1970
1964
  [u, n]
1971
1965
  ), R = P(() => r.filter((v) => u.some((w) => w?.task?.assignees?.includes(v.name))).map((v) => ({ ...v, avatarUrl: `/api/users/${v.name}/avatar` })), [r, t]), E = u[0];
@@ -1981,12 +1975,12 @@ const fs = S.div`
1981
1975
  name: "None"
1982
1976
  };
1983
1977
  if (!n) return null;
1984
- const { title: j, subTitle: T } = Ze(u, n);
1985
- return /* @__PURE__ */ i(Jt, { children: /* @__PURE__ */ i(Ke, { projectName: l, children: /* @__PURE__ */ k(fs, { children: [
1986
- /* @__PURE__ */ k(bs, { children: [
1987
- /* @__PURE__ */ i(Qe, { thumbnails: A }),
1988
- /* @__PURE__ */ k(vs, { children: [
1989
- /* @__PURE__ */ i("h2", { children: j }),
1978
+ const { title: A, subTitle: T } = Ze(u, n);
1979
+ return /* @__PURE__ */ i(tn, { children: /* @__PURE__ */ i(Ke, { projectName: l, children: /* @__PURE__ */ k(bs, { children: [
1980
+ /* @__PURE__ */ k(vs, { children: [
1981
+ /* @__PURE__ */ i(Qe, { thumbnails: j }),
1982
+ /* @__PURE__ */ k(ys, { children: [
1983
+ /* @__PURE__ */ i("h2", { children: A }),
1990
1984
  /* @__PURE__ */ k("div", { className: "sub-title", children: [
1991
1985
  /* @__PURE__ */ k("span", { children: [
1992
1986
  qe(n),
@@ -1996,9 +1990,9 @@ const fs = S.div`
1996
1990
  ] })
1997
1991
  ] })
1998
1992
  ] }),
1999
- /* @__PURE__ */ k(ys, { children: [
1993
+ /* @__PURE__ */ k(ks, { children: [
2000
1994
  /* @__PURE__ */ k(
2001
- ws,
1995
+ xs,
2002
1996
  {
2003
1997
  style: {
2004
1998
  backgroundColor: C?.color,
@@ -2012,7 +2006,7 @@ const fs = S.div`
2012
2006
  ),
2013
2007
  /* @__PURE__ */ i(yt, { users: R, style: { pointerEvents: "none" } })
2014
2008
  ] }),
2015
- /* @__PURE__ */ i(ks, { children: /* @__PURE__ */ i(
2009
+ /* @__PURE__ */ i(ws, { children: /* @__PURE__ */ i(
2016
2010
  tt,
2017
2011
  {
2018
2012
  entityType: n,
@@ -2030,22 +2024,22 @@ const fs = S.div`
2030
2024
  ] }) }) });
2031
2025
  };
2032
2026
  export {
2033
- Lt as AssigneeSelect,
2034
- Sa as CloseButton,
2035
- Ot as Content,
2036
- Ca as ContentRow,
2037
- ms as DetailsPanel,
2038
- ka as DetailsPanelFloating,
2039
- ya as DetailsPanelSlideOut,
2040
- Ta as Footer,
2041
- jt as Grid,
2042
- At as Header,
2043
- Ft as HeaderContainer,
2044
- Na as LabelWrapper,
2045
- $t as PriorityEnumDropdown,
2046
- Vt as StatusSelect,
2047
- Ut as TagsSelect,
2048
- Da as ThumbnailWrapper,
2049
- Rt as Title,
2050
- us as entitiesWithoutFeed
2027
+ $t as AssigneeSelect,
2028
+ va as CloseButton,
2029
+ Rt as Content,
2030
+ ya as ContentRow,
2031
+ hs as DetailsPanel,
2032
+ ga as DetailsPanelFloating,
2033
+ ha as DetailsPanelSlideOut,
2034
+ ka as Footer,
2035
+ Ot as Grid,
2036
+ jt as Header,
2037
+ At as HeaderContainer,
2038
+ wa as LabelWrapper,
2039
+ _t as PriorityEnumDropdown,
2040
+ Lt as StatusSelect,
2041
+ Vt as TagsSelect,
2042
+ xa as ThumbnailWrapper,
2043
+ Ut as Title,
2044
+ ps as entitiesWithoutFeed
2051
2045
  };