@ynput/ayon-frontend-shared 0.8.0 → 0.9.0

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 (43) hide show
  1. package/dist/DetailsPanel.es.js +2 -2
  2. package/dist/ListTable.es.js +1 -1
  3. package/dist/NewEntity.es.js +5 -3
  4. package/dist/ProjectTreeTable.es.js +4153 -4130
  5. package/dist/ProjectsTable.es.js +5 -4
  6. package/dist/Slicer.es.js +326 -293
  7. package/dist/Views.es.js +724 -714
  8. package/dist/chunks/ColumnDropIndicator.es.js +10 -10
  9. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +44 -38
  10. package/dist/chunks/EntityPickerDialog.es.js +1 -1
  11. package/dist/chunks/Feed.es.js +41 -39
  12. package/dist/chunks/FilmstripEntityCard.es.js +1 -1
  13. package/dist/chunks/GroupSettingsFallback.es.js +3 -2
  14. package/dist/chunks/MetaWidget.es.js +425 -411
  15. package/dist/chunks/NewEntityContextInstance.es.js +6 -5
  16. package/dist/chunks/ReviewablesSelector.es.js +76 -76
  17. package/dist/chunks/SimpleTable.es.js +151 -149
  18. package/dist/chunks/Slicer.es.js +637 -617
  19. package/dist/chunks/TableExportContextInstance.es.js +141 -136
  20. package/dist/chunks/ThumbnailSimple.es.js +11 -11
  21. package/dist/chunks/Watchers.es.js +46 -46
  22. package/dist/chunks/getUris.es.js +1 -1
  23. package/dist/chunks/searchTerms.es.js +618 -581
  24. package/dist/chunks/useCreateContextMenu.es.js +15 -13
  25. package/dist/components.es.js +1393 -1314
  26. package/dist/context.es.js +1 -1
  27. package/dist/hooks.es.js +2 -2
  28. package/dist/index.es.js +11 -10
  29. package/dist/types/ContextMenu.d.ts +1 -1
  30. package/dist/types/Feed.d.ts +1 -1
  31. package/dist/types/ListTable.d.ts +1 -1
  32. package/dist/types/NewEntity.d.ts +2 -0
  33. package/dist/types/ProjectTreeTable.d.ts +121 -3
  34. package/dist/types/ProjectsTable.d.ts +1 -1
  35. package/dist/types/SimpleTable.d.ts +1 -1
  36. package/dist/types/Slicer.d.ts +7 -1
  37. package/dist/types/Views.d.ts +5 -0
  38. package/dist/types/api.d.ts +1 -0
  39. package/dist/types/components.d.ts +164 -1
  40. package/dist/types/context.d.ts +2 -1
  41. package/dist/types/util.d.ts +21 -0
  42. package/dist/util.es.js +116 -113
  43. package/package.json +2 -2
@@ -1,11 +1,12 @@
1
- import { createContext as e, useContext as n } from "react";
2
- const o = e(void 0), i = () => {
3
- const t = n(o);
1
+ import { createContext as o, useContext as e } from "react";
2
+ const n = o(void 0), i = () => {
3
+ const t = e(n);
4
4
  if (!t)
5
5
  throw new Error("useNewEntityContext must be used within a NewEntityProvider");
6
6
  return t;
7
- };
7
+ }, r = () => e(n);
8
8
  export {
9
- o as N,
9
+ n as N,
10
+ r as a,
10
11
  i as u
11
12
  };
@@ -1,17 +1,17 @@
1
1
  import { jsxs as S, jsx as o, Fragment as pe } from "react/jsx-runtime";
2
2
  import u, { css as Ye, keyframes as Qo, createGlobalStyle as Zo } from "styled-components";
3
3
  import { forwardRef as ce, useRef as H, useState as U, useEffect as Y, useMemo as Z, Fragment as Jo, useCallback as te, useImperativeHandle as er } from "react";
4
- import { Icon as q, InputNumber as po, Button as B, IconSelect as tr, InputText as De, Dialog as We, FormLayout as Et, FormRow as oe, Dropdown as me, LockedInput as or, InputSwitch as _e, Spacer as go, SaveButton as mo, theme as se } from "@ynput/ayon-react-components";
4
+ import { Icon as G, InputNumber as po, Button as B, IconSelect as tr, InputText as De, Dialog as We, FormLayout as Et, FormRow as oe, Dropdown as me, LockedInput as or, InputSwitch as _e, Spacer as go, SaveButton as mo, theme as se } from "@ynput/ayon-react-components";
5
5
  import { U as rr } from "./FilmstripEntityCard.es.js";
6
6
  import J from "clsx";
7
- import { kebabCase as $e, isEqual as Bt, uniqueId as qe, startCase as Tt, camelCase as pt, upperFirst as nr } from "lodash";
7
+ import { kebabCase as $e, isEqual as Bt, uniqueId as Ge, startCase as Tt, camelCase as pt, upperFirst as nr } from "lodash";
8
8
  import { createPortal as ho } from "react-dom";
9
9
  import { DndContext as Xe, closestCenter as Qe, DragOverlay as Nt, useSensors as Pt, useSensor as At, PointerSensor as _t } from "@dnd-kit/core";
10
10
  import { useSortable as Ze, SortableContext as Le, verticalListSortingStrategy as Re, arrayMove as Dt } from "@dnd-kit/sortable";
11
11
  import { CSS as Je } from "@dnd-kit/utilities";
12
12
  import { I as ar } from "./InfoMessage.es.js";
13
13
  import { S as bo } from "./SimpleForm.es.js";
14
- import { bD as ir, b6 as sr, bA as fo, by as vo, bC as Vt, bq as lr, bb as cr, bx as yo, bB as xo, bs as dr } from "./searchTerms.es.js";
14
+ import { bF as ir, b6 as sr, bC as fo, by as vo, bE as Vt, bq as lr, bb as cr, bx as yo, bD as xo, bs as dr } from "./searchTerms.es.js";
15
15
  import { bp as ur, bv as pr, cL as gr, bj as mr, dK as ie, cs as hr } from "./getUris.es.js";
16
16
  import "primereact/confirmdialog";
17
17
  import { l as br, b as fr, v as vr } from "./Watchers.es.js";
@@ -22,12 +22,12 @@ import "@ynput/ayon-addon/host";
22
22
  import { toast as xr } from "react-toastify";
23
23
  import "uuid";
24
24
  import "axios";
25
- import { c as wo, b as wr, ai as et, u as tt, q as ko } from "./TableExportContextInstance.es.js";
25
+ import { c as wo, b as wr, ai as et, u as tt, s as ko } from "./TableExportContextInstance.es.js";
26
26
  import "semver";
27
27
  import "./ContextMenuContextInstance.es.js";
28
28
  import { Link as kr } from "react-router-dom";
29
29
  import { g as fe } from "./iconUtils.es.js";
30
- import { b7 as G, a as Ce, be as Cr, b as ot, bg as Sr, bn as Ir, aG as xe, b8 as ee, ak as Er, v as Tr, bl as Nr, bb as Ht, b9 as jt, bc as Kt, bo as Pr } from "./MetaWidget.es.js";
30
+ import { b7 as q, a as Ce, be as Cr, b as ot, bg as Sr, bn as Ir, aG as xe, b8 as ee, ak as Er, v as Tr, bl as Nr, bb as Ht, b9 as jt, bc as Kt, bo as Pr } from "./MetaWidget.es.js";
31
31
  import "@tanstack/react-table";
32
32
  import "date-fns";
33
33
  import "lexical";
@@ -56,8 +56,8 @@ import { a as To } from "./VersionUploadContextInstance.es.js";
56
56
  import { Skeleton as Hr } from "primereact/skeleton";
57
57
  import jr from "react-perfect-scrollbar";
58
58
  import { u as Kr } from "./useCreateContextMenu.es.js";
59
- import { b as qr } from "./getThumbnailUrl.es.js";
60
- const Gr = u.div`
59
+ import { b as Gr } from "./getThumbnailUrl.es.js";
60
+ const qr = u.div`
61
61
  display: flex;
62
62
  width: 100%;
63
63
  height: 100%;
@@ -92,7 +92,7 @@ const Gr = u.div`
92
92
  ...i
93
93
  }) => {
94
94
  const a = r.columns * r.rows;
95
- return /* @__PURE__ */ S(Gr, { $padding: n, ...i, children: [
95
+ return /* @__PURE__ */ S(qr, { $padding: n, ...i, children: [
96
96
  e && /* @__PURE__ */ o(Yr, { className: "loading", $config: t, ...s?.sidebar }),
97
97
  /* @__PURE__ */ o(Wr, { $config: r, ...s?.grid, children: Array.from({ length: a }).map((h, f) => /* @__PURE__ */ o(
98
98
  Xr,
@@ -185,7 +185,7 @@ const Gr = u.div`
185
185
  padding: 2px;
186
186
  font-size: 20px;
187
187
  }
188
- `, Zr = "__everyone__", Jr = "__guests__", qt = "group:", Gt = "team:", Yt = "user:", Wt = "guest:", en = u(q)`
188
+ `, Zr = "__everyone__", Jr = "__guests__", Gt = "group:", qt = "team:", Yt = "user:", Wt = "guest:", en = u(G)`
189
189
  font-size: ${({ $size: e }) => `${e}px`};
190
190
  &.withBackground {
191
191
  display: flex;
@@ -204,7 +204,7 @@ const Gr = u.div`
204
204
  withTooltip: i = !0
205
205
  }) => {
206
206
  let a = e, h = t;
207
- a || (t.startsWith(Yt) ? (a = "user", h = t.slice(Yt.length)) : t.startsWith(qt) ? (a = "group", h = t.slice(qt.length)) : t.startsWith(Gt) ? (a = "team", h = t.slice(Gt.length)) : t.startsWith(Wt) && (a = "guest", h = t.slice(Wt.length)));
207
+ a || (t.startsWith(Yt) ? (a = "user", h = t.slice(Yt.length)) : t.startsWith(Gt) ? (a = "group", h = t.slice(Gt.length)) : t.startsWith(qt) ? (a = "team", h = t.slice(qt.length)) : t.startsWith(Wt) && (a = "guest", h = t.slice(Wt.length)));
208
208
  const f = (c, l) => /* @__PURE__ */ o(
209
209
  en,
210
210
  {
@@ -640,16 +640,16 @@ const Gr = u.div`
640
640
  className: J(a?.header?.className, { expanded: d }),
641
641
  children: [
642
642
  p && /* @__PURE__ */ o(un, { style: { backgroundColor: p } }),
643
- l && /* @__PURE__ */ o(q, { className: "icon", icon: l }),
643
+ l && /* @__PURE__ */ o(G, { className: "icon", icon: l }),
644
644
  /* @__PURE__ */ S("span", { children: [
645
645
  " ",
646
646
  c,
647
647
  " "
648
648
  ] }),
649
649
  /* @__PURE__ */ o("span", { className: "spacer" }),
650
- /* @__PURE__ */ o(q, { className: "icon toggle-expand", icon: d ? "collapse_all" : "expand_all" }),
650
+ /* @__PURE__ */ o(G, { className: "icon toggle-expand", icon: d ? "collapse_all" : "expand_all" }),
651
651
  /* @__PURE__ */ o(
652
- q,
652
+ G,
653
653
  {
654
654
  ...v,
655
655
  ...y,
@@ -700,7 +700,7 @@ const Gr = u.div`
700
700
  }, [t, i, s]), {
701
701
  items: a,
702
702
  handleAddItem: (x) => {
703
- f([...a, { ...e(), ...x, id: qe() }]);
703
+ f([...a, { ...e(), ...x, id: Ge() }]);
704
704
  },
705
705
  handleRemoveItem: (x) => () => {
706
706
  f([...a.slice(0, x), ...a.slice(x + 1)]);
@@ -719,7 +719,7 @@ const Gr = u.div`
719
719
  handleDuplicateItem: (x, g) => {
720
720
  f([
721
721
  ...a.slice(0, x + 1),
722
- { ...a[x], id: qe(), ...g },
722
+ { ...a[x], id: Ge(), ...g },
723
723
  ...a.slice(x + 1)
724
724
  ]);
725
725
  },
@@ -749,7 +749,7 @@ const Gr = u.div`
749
749
  h = a + r + i++;
750
750
  return h;
751
751
  }, bn = () => ({
752
- id: qe(),
752
+ id: Ge(),
753
753
  isExpanded: !0,
754
754
  label: "",
755
755
  value: "",
@@ -761,7 +761,7 @@ const Gr = u.div`
761
761
  icon: n || void 0,
762
762
  color: s || void 0
763
763
  })), vn = (e) => e.map(({ label: t, value: r, icon: n, color: s }) => ({
764
- id: qe(),
764
+ id: Ge(),
765
765
  isExpanded: !1,
766
766
  label: t,
767
767
  value: r.toString(),
@@ -856,7 +856,7 @@ const Gr = u.div`
856
856
  }
857
857
  )
858
858
  ] }) });
859
- }, Ao = ({ icon: e, color: t, reserveSpace: r }) => ir(e) ? /* @__PURE__ */ o("img", { src: e, alt: "" }) : e ? /* @__PURE__ */ o(q, { icon: e, style: { color: t } }) : r ? /* @__PURE__ */ o("span", { className: "icon-slot" }) : null, rt = u.div`
859
+ }, Ao = ({ icon: e, color: t, reserveSpace: r }) => ir(e) ? /* @__PURE__ */ o("img", { src: e, alt: "" }) : e ? /* @__PURE__ */ o(G, { icon: e, style: { color: t } }) : r ? /* @__PURE__ */ o("span", { className: "icon-slot" }) : null, rt = u.div`
860
860
  display: flex;
861
861
  align-items: center;
862
862
  gap: var(--base-gap-small);
@@ -1090,7 +1090,7 @@ const Gr = u.div`
1090
1090
  flex-direction: column;
1091
1091
  gap: var(--base-gap-large);
1092
1092
  flex: 1;
1093
- `, Ge = u.span`
1093
+ `, qe = u.span`
1094
1094
  color: var(--md-sys-color-outline);
1095
1095
  white-space: pre-line;
1096
1096
  `, Ue = u.div`
@@ -1148,14 +1148,14 @@ const Gr = u.div`
1148
1148
  if (a)
1149
1149
  return /* @__PURE__ */ o(Ue, { children: Array.from({ length: ht + 1 }).map((v, x) => /* @__PURE__ */ o(Fn, { className: "loading" }, x)) });
1150
1150
  if (h)
1151
- return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(Ge, { children: [
1151
+ return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(qe, { children: [
1152
1152
  'Could not load options for "',
1153
1153
  e,
1154
1154
  '"',
1155
1155
  f ? `: ${f}` : "."
1156
1156
  ] }) });
1157
1157
  if (!c.length)
1158
- return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(Ge, { children: [
1158
+ return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(qe, { children: [
1159
1159
  Ln,
1160
1160
  l.length > 0 && ` This could be because in context parameters (${l.join(
1161
1161
  ", "
@@ -1211,12 +1211,12 @@ const Gr = u.div`
1211
1211
  onChange: (m) => n(m?.length ? m : void 0)
1212
1212
  }
1213
1213
  ) : /* @__PURE__ */ S(pe, { children: [
1214
- !h && !v && /* @__PURE__ */ S(Ge, { children: [
1214
+ !h && !v && /* @__PURE__ */ S(qe, { children: [
1215
1215
  'Resolver "',
1216
1216
  t,
1217
1217
  '" is not available on this server. Options will be empty.'
1218
1218
  ] }),
1219
- v?.description && /* @__PURE__ */ o(Ge, { children: v.description }),
1219
+ v?.description && /* @__PURE__ */ o(qe, { children: v.description }),
1220
1220
  w && /* @__PURE__ */ o(
1221
1221
  $n,
1222
1222
  {
@@ -1341,12 +1341,12 @@ const Gr = u.div`
1341
1341
  if (e === "list_of_strings") return "Select (multiple)";
1342
1342
  const n = kt(e, t, r);
1343
1343
  return Ke.find((s) => s.value === n)?.label ?? e;
1344
- }, qn = u.div`
1344
+ }, Gn = u.div`
1345
1345
  display: flex;
1346
1346
  flex-direction: row;
1347
1347
  gap: var(--base-gap-large);
1348
1348
  align-items: center;
1349
- `, Gn = /^[a-zA-Z0-9]{2,64}$/, Yn = [
1349
+ `, qn = /^[a-zA-Z0-9]{2,64}$/, Yn = [
1350
1350
  { value: "project", label: "Project" },
1351
1351
  { value: "folder", label: "Folder" },
1352
1352
  { value: "task", label: "Task" },
@@ -1436,7 +1436,7 @@ const Gr = u.div`
1436
1436
  });
1437
1437
  };
1438
1438
  let k = "";
1439
- p && w && (r.includes(p.name) ? k = "This attribute already exists" : Gn.test(p.name) || (k = "Invalid attribute name: use 2-64 letters or digits, no spaces or symbols"));
1439
+ p && w && (r.includes(p.name) ? k = "This attribute already exists" : qn.test(p.name) || (k = "Invalid attribute name: use 2-64 letters or digits, no spaces or symbols"));
1440
1440
  const C = () => {
1441
1441
  p && h(p);
1442
1442
  }, N = /* @__PURE__ */ S("div", { style: { display: "flex", width: "100%", flexDirection: "row" }, children: [
@@ -1542,7 +1542,7 @@ const Gr = u.div`
1542
1542
  widthExpand: !0
1543
1543
  }
1544
1544
  ) }),
1545
- !i.includes("type") && /* @__PURE__ */ o(oe, { label: "Type", children: /* @__PURE__ */ S(qn, { children: [
1545
+ !i.includes("type") && /* @__PURE__ */ o(oe, { label: "Type", children: /* @__PURE__ */ S(Gn, { children: [
1546
1546
  /* @__PURE__ */ o(
1547
1547
  me,
1548
1548
  {
@@ -1708,7 +1708,7 @@ const Gr = u.div`
1708
1708
  width: 24px;
1709
1709
  height: 24px;
1710
1710
  }
1711
- `, qs = u(q)`
1711
+ `, Gs = u(G)`
1712
1712
  width: 20px;
1713
1713
  height: 20px;
1714
1714
  min-width: 20px;
@@ -1724,7 +1724,7 @@ const Gr = u.div`
1724
1724
  &:hover {
1725
1725
  background-color: var(--md-sys-color-surface-container-highest-hover);
1726
1726
  }
1727
- `, Gs = u.div`
1727
+ `, qs = u.div`
1728
1728
  position: fixed;
1729
1729
  z-index: 1001;
1730
1730
  background-color: var(--md-sys-color-surface-container-highest);
@@ -1834,7 +1834,7 @@ const Gr = u.div`
1834
1834
  ...r,
1835
1835
  ...n,
1836
1836
  children: /* @__PURE__ */ S(Lo, { children: [
1837
- /* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) }),
1837
+ /* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(G, { icon: "drag_indicator" }) }),
1838
1838
  /* @__PURE__ */ o(Oo, { children: t })
1839
1839
  ] })
1840
1840
  }
@@ -1869,7 +1869,7 @@ const Gr = u.div`
1869
1869
  /* @__PURE__ */ S(na, { children: [
1870
1870
  /* @__PURE__ */ o("span", { className: "label", children: "Product's featured version priority" }),
1871
1871
  /* @__PURE__ */ o(
1872
- q,
1872
+ G,
1873
1873
  {
1874
1874
  icon: "info",
1875
1875
  "data-tooltip": "Choose which version will be displayed on the product card. The first available from the list will be used.",
@@ -1894,7 +1894,7 @@ const Gr = u.div`
1894
1894
  }
1895
1895
  ),
1896
1896
  /* @__PURE__ */ o(Nt, { children: f && /* @__PURE__ */ S(Lo, { className: "overlay", children: [
1897
- /* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) }),
1897
+ /* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(G, { icon: "drag_indicator" }) }),
1898
1898
  /* @__PURE__ */ o(Oo, { children: f.label })
1899
1899
  ] }) })
1900
1900
  ]
@@ -1958,7 +1958,7 @@ const Gr = u.div`
1958
1958
  cursor: pointer;
1959
1959
  }
1960
1960
  `, ol = ce(
1961
- ({ tooltip: e = "This page will deprecated in a future version", ...t }, r) => /* @__PURE__ */ o(q, { icon: "ad_off", "data-tooltip": e, ...t, ref: r })
1961
+ ({ tooltip: e = "This page will deprecated in a future version", ...t }, r) => /* @__PURE__ */ o(G, { icon: "ad_off", "data-tooltip": e, ...t, ref: r })
1962
1962
  ), aa = u(B)`
1963
1963
  transition: color 0.2s, background-color 0.2s, opacity 0.2s;
1964
1964
 
@@ -2012,7 +2012,7 @@ const Gr = u.div`
2012
2012
  "data-tooltip-delay": 0,
2013
2013
  children: [
2014
2014
  s.children,
2015
- n && /* @__PURE__ */ o(q, { icon: "bolt", filled: !0, className: "bolt" })
2015
+ n && /* @__PURE__ */ o(G, { icon: "bolt", filled: !0, className: "bolt" })
2016
2016
  ]
2017
2017
  }
2018
2018
  );
@@ -2151,7 +2151,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2151
2151
  "Update ",
2152
2152
  a,
2153
2153
  " ",
2154
- /* @__PURE__ */ o(q, { icon: "arrow_right_alt" })
2154
+ /* @__PURE__ */ o(G, { icon: "arrow_right_alt" })
2155
2155
  ] }) })
2156
2156
  ] }) : `Required ${a} version installed already.`;
2157
2157
  }
@@ -2218,10 +2218,10 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2218
2218
  variant: "text",
2219
2219
  className: "setting-option",
2220
2220
  children: [
2221
- d.icon && /* @__PURE__ */ o(q, { icon: d.icon }),
2221
+ d.icon && /* @__PURE__ */ o(G, { icon: d.icon }),
2222
2222
  /* @__PURE__ */ o("span", { className: "title", children: d.title }),
2223
2223
  !!d.preview?.toString() && /* @__PURE__ */ o("span", { className: "preview", children: d.preview }),
2224
- /* @__PURE__ */ o(q, { icon: "chevron_right", className: "arrow" })
2224
+ /* @__PURE__ */ o(G, { icon: "chevron_right", className: "arrow" })
2225
2225
  ]
2226
2226
  },
2227
2227
  d.id
@@ -2338,7 +2338,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2338
2338
  ref: c,
2339
2339
  children: [
2340
2340
  r,
2341
- e.icon && /* @__PURE__ */ o(q, { icon: e.icon }),
2341
+ e.icon && /* @__PURE__ */ o(G, { icon: e.icon }),
2342
2342
  /* @__PURE__ */ S("span", { className: "label", children: [
2343
2343
  e.path && /* @__PURE__ */ S("span", { className: "label-path", children: [
2344
2344
  e.path,
@@ -2353,7 +2353,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2353
2353
  onClick: i ? void 0 : y,
2354
2354
  ...v,
2355
2355
  children: [
2356
- l && /* @__PURE__ */ o(q, { icon: l }),
2356
+ l && /* @__PURE__ */ o(G, { icon: l }),
2357
2357
  v.children
2358
2358
  ]
2359
2359
  },
@@ -2468,7 +2468,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2468
2468
  // the row actions arm their own gestures
2469
2469
  x.target.closest(".action") ? void 0 : y?.(x)
2470
2470
  ),
2471
- startContent: f ? y ? /* @__PURE__ */ o(q, { icon: "drag_indicator", className: "hover-swap" }) : void 0 : /* @__PURE__ */ o("div", { ...a, className: "drag-handle", children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) })
2471
+ startContent: f ? y ? /* @__PURE__ */ o(G, { icon: "drag_indicator", className: "hover-swap" }) : void 0 : /* @__PURE__ */ o("div", { ...a, className: "drag-handle", children: /* @__PURE__ */ o(G, { icon: "drag_indicator" }) })
2472
2472
  }
2473
2473
  );
2474
2474
  }, oo = ({
@@ -2523,7 +2523,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2523
2523
  `, zo = "text_fields", Mo = ({
2524
2524
  field: e,
2525
2525
  parentScope: t
2526
- }) => e ? G(e) : t ? Eo(t) : zo, ka = (e) => e.length === 1 ? `${e[0].charAt(0).toUpperCase() + e[0].slice(1)} attributes` : "Attributes", $o = (e = [], t = []) => [
2526
+ }) => e ? q(e) : t ? Eo(t) : zo, ka = (e) => e.length === 1 ? `${e[0].charAt(0).toUpperCase() + e[0].slice(1)} attributes` : "Attributes", $o = (e = [], t = []) => [
2527
2527
  {
2528
2528
  id: "attributes",
2529
2529
  label: ka(e),
@@ -2857,7 +2857,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2857
2857
  }, Ko = (E) => {
2858
2858
  const _ = E.active.id;
2859
2859
  P(_), T(s.left?.includes(_) || !1), ne();
2860
- }, qo = (E) => {
2860
+ }, Go = (E) => {
2861
2861
  const { active: _, over: K } = E;
2862
2862
  if (K && _.id !== K.id) {
2863
2863
  const Q = ie(
@@ -2868,7 +2868,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2868
2868
  L(Q && le), M(Q && !le);
2869
2869
  } else
2870
2870
  M(!1);
2871
- }, Go = (E) => {
2871
+ }, qo = (E) => {
2872
2872
  L(!1), T(!1), M(!1);
2873
2873
  const { active: _, over: K } = E;
2874
2874
  if (K && _.id !== K.id) {
@@ -2933,8 +2933,8 @@ const sa = "https://ynput.cloud/free-trial", la = ({
2933
2933
  sensors: at,
2934
2934
  collisionDetection: Qe,
2935
2935
  onDragStart: Ko,
2936
- onDragOver: qo,
2937
- onDragEnd: Go,
2936
+ onDragOver: Go,
2937
+ onDragEnd: qo,
2938
2938
  children: /* @__PURE__ */ S(ro, { ref: ye, "data-column-drag-origin": !0, children: [
2939
2939
  Ot,
2940
2940
  /* @__PURE__ */ o(It, { menuId: He, menuItems: Te }),
@@ -3278,7 +3278,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
3278
3278
  "data-sort-id": e.value,
3279
3279
  className: c ? "dragging" : void 0,
3280
3280
  style: { transform: Je.Translate.toString(h), transition: f },
3281
- startContent: /* @__PURE__ */ o("div", { ...s, ...i, className: "drag-handle", children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) }),
3281
+ startContent: /* @__PURE__ */ o("div", { ...s, ...i, className: "drag-handle", children: /* @__PURE__ */ o(G, { icon: "drag_indicator" }) }),
3282
3282
  actions: [
3283
3283
  {
3284
3284
  icon: t ? "arrow_downward" : "arrow_upward",
@@ -3371,12 +3371,12 @@ const sa = "https://ynput.cloud/free-trial", la = ({
3371
3371
  value: `attrib_${l.name}`,
3372
3372
  label: l.data.title || l.name
3373
3373
  }))
3374
- ].map((l) => ({ ...l, icon: G(l.value) })), a = new Set(i.map((l) => l.value)), h = [
3374
+ ].map((l) => ({ ...l, icon: q(l.value) })), a = new Set(i.map((l) => l.value)), h = [
3375
3375
  ...i,
3376
3376
  ...t.filter((l) => !a.has(l.id)).map((l) => ({
3377
3377
  value: l.id,
3378
3378
  label: e.find((p) => p.value === l.id)?.label ?? l.id,
3379
- icon: G(l.id)
3379
+ icon: q(l.id)
3380
3380
  }))
3381
3381
  ], f = (l) => h.find((p) => p.value === l)?.label ?? l;
3382
3382
  return {
@@ -3410,7 +3410,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
3410
3410
  }, Ka = (e, t) => {
3411
3411
  const r = e.length ? e : t;
3412
3412
  return [...r, ...t.filter((n) => !r.includes(n))];
3413
- }, qa = () => {
3413
+ }, Ga = () => {
3414
3414
  const {
3415
3415
  columnVisibility: e,
3416
3416
  columnOrder: t,
@@ -3533,9 +3533,9 @@ const sa = "https://ynput.cloud/free-trial", la = ({
3533
3533
  top: v.y - v.grab.y,
3534
3534
  width: v.grab.width
3535
3535
  },
3536
- className: Ga(v),
3536
+ className: qa(v),
3537
3537
  children: [
3538
- v.column.icon && /* @__PURE__ */ o(q, { icon: v.column.icon }),
3538
+ v.column.icon && /* @__PURE__ */ o(G, { icon: v.column.icon }),
3539
3539
  /* @__PURE__ */ o("span", { children: v.column.label })
3540
3540
  ]
3541
3541
  }
@@ -3545,7 +3545,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
3545
3545
  document.body
3546
3546
  ) : null;
3547
3547
  return { armDrag: C, cancelDrag: k, isDragging: !!v, dragOverlay: z };
3548
- }, Ga = (e) => e.target ? "over-target" : "", Ya = () => {
3548
+ }, qa = (e) => e.target ? "over-target" : "", Ya = () => {
3549
3549
  const e = (t) => {
3550
3550
  t.stopPropagation(), t.preventDefault();
3551
3551
  };
@@ -3588,7 +3588,7 @@ const sa = "https://ynput.cloud/free-trial", la = ({
3588
3588
  columnVisibility: n,
3589
3589
  defaultColumnVisibility: s,
3590
3590
  updateColumnVisibility: i
3591
- }), { armDrag: y, cancelDrag: v, isDragging: x, dragOverlay: g } = qa(), w = H({ isPainting: d, isDragging: x, cancelPaint: p });
3591
+ }), { armDrag: y, cancelDrag: v, isDragging: x, dragOverlay: g } = Ga(), w = H({ isPainting: d, isDragging: x, cancelPaint: p });
3592
3592
  w.current = { isPainting: d, isDragging: x, cancelPaint: p };
3593
3593
  const b = te(
3594
3594
  (C, N) => {
@@ -3641,92 +3641,92 @@ const sa = "https://ynput.cloud/free-trial", la = ({
3641
3641
  {
3642
3642
  value: "thumbnail",
3643
3643
  label: ee("thumbnail"),
3644
- icon: G("thumbnail")
3644
+ icon: q("thumbnail")
3645
3645
  },
3646
3646
  {
3647
3647
  value: "name",
3648
3648
  label: Er(a),
3649
- icon: G("name")
3649
+ icon: q("name")
3650
3650
  },
3651
3651
  {
3652
3652
  value: xe.folder,
3653
3653
  label: ee(xe.folder),
3654
- icon: G(xe.folder)
3654
+ icon: q(xe.folder)
3655
3655
  },
3656
3656
  {
3657
3657
  value: xe.task,
3658
3658
  label: ee(xe.task),
3659
- icon: G(xe.task),
3659
+ icon: q(xe.task),
3660
3660
  hidden: !["product", "version"].some((c) => a.includes(c))
3661
3661
  },
3662
3662
  {
3663
3663
  value: "assignees",
3664
3664
  label: ee("assignees"),
3665
- icon: G("assignees"),
3665
+ icon: q("assignees"),
3666
3666
  hidden: !a.includes("task")
3667
3667
  },
3668
3668
  {
3669
3669
  value: "product",
3670
3670
  label: ee("product"),
3671
- icon: G("product"),
3671
+ icon: q("product"),
3672
3672
  hidden: !["product", "version"].some((c) => a.includes(c))
3673
3673
  },
3674
3674
  {
3675
3675
  value: "entityType",
3676
3676
  label: ee("entityType"),
3677
- icon: G("entityType")
3677
+ icon: q("entityType")
3678
3678
  },
3679
3679
  {
3680
3680
  value: "status",
3681
3681
  label: ee("status"),
3682
- icon: G("status")
3682
+ icon: q("status")
3683
3683
  },
3684
3684
  {
3685
3685
  value: "subType",
3686
3686
  label: ee("subType", a),
3687
- icon: G("subType")
3687
+ icon: q("subType")
3688
3688
  },
3689
3689
  {
3690
3690
  value: "tags",
3691
3691
  label: ee("tags"),
3692
- icon: G("tags")
3692
+ icon: q("tags")
3693
3693
  },
3694
3694
  {
3695
3695
  value: "createdAt",
3696
3696
  label: ee("createdAt"),
3697
- icon: G("createdAt")
3697
+ icon: q("createdAt")
3698
3698
  },
3699
3699
  {
3700
3700
  value: "createdBy",
3701
3701
  label: ee("createdBy"),
3702
- icon: G("createdBy")
3702
+ icon: q("createdBy")
3703
3703
  },
3704
3704
  {
3705
3705
  value: "updatedAt",
3706
3706
  label: ee("updatedAt"),
3707
- icon: G("updatedAt")
3707
+ icon: q("updatedAt")
3708
3708
  },
3709
3709
  {
3710
3710
  value: "updatedBy",
3711
3711
  label: ee("updatedBy"),
3712
- icon: G("updatedBy")
3712
+ icon: q("updatedBy")
3713
3713
  },
3714
3714
  {
3715
3715
  value: "subtasks",
3716
3716
  label: ee("subtasks"),
3717
- icon: G("subtasks"),
3717
+ icon: q("subtasks"),
3718
3718
  hidden: !a.includes("task")
3719
3719
  },
3720
3720
  {
3721
3721
  value: "comments",
3722
3722
  label: ee("comments"),
3723
- icon: G("comments"),
3723
+ icon: q("comments"),
3724
3724
  hidden: !a.some((c) => ["task", "version", "product", "folder"].includes(c))
3725
3725
  },
3726
3726
  ...Tr.map((c) => ({
3727
3727
  value: c,
3728
3728
  label: ee(c),
3729
- icon: G(c),
3729
+ icon: q(c),
3730
3730
  hidden: !a.some((l) => Nr(c, l))
3731
3731
  })),
3732
3732
  ...i.filter((c) => c.scope?.some((l) => a.includes(l))).map((c) => ({
@@ -5763,7 +5763,7 @@ const li = u.div`
5763
5763
  disabled: ae,
5764
5764
  variant: "text",
5765
5765
  children: [
5766
- /* @__PURE__ */ o(q, { icon: ne, style: { color: re?.color } }),
5766
+ /* @__PURE__ */ o(G, { icon: ne, style: { color: re?.color } }),
5767
5767
  /* @__PURE__ */ S(xi, { children: [
5768
5768
  ve && /* @__PURE__ */ S(wi, { children: [
5769
5769
  ve.split("/").filter(Boolean).join(" / "),
@@ -6032,7 +6032,7 @@ function Di({
6032
6032
  vr,
6033
6033
  {
6034
6034
  src: `/api/projects/${n}/files/${e}/thumbnail`,
6035
- filmstripSrc: qr(n ?? void 0, e)
6035
+ filmstripSrc: Gr(n ?? void 0, e)
6036
6036
  }
6037
6037
  ),
6038
6038
  h && /* @__PURE__ */ o(_i, { children: h })
@@ -6142,7 +6142,7 @@ export {
6142
6142
  Vs as A,
6143
6143
  yl as B,
6144
6144
  Fs as C,
6145
- Gs as D,
6145
+ qs as D,
6146
6146
  Zr as E,
6147
6147
  il as F,
6148
6148
  Jr as G,
@@ -6152,7 +6152,7 @@ export {
6152
6152
  tl as K,
6153
6153
  hl as L,
6154
6154
  al as M,
6155
- qt as N,
6155
+ Gt as N,
6156
6156
  Wt as O,
6157
6157
  ia as P,
6158
6158
  ol as Q,
@@ -6169,7 +6169,7 @@ export {
6169
6169
  js as a,
6170
6170
  Cl as a0,
6171
6171
  Sl as a1,
6172
- Gt as a2,
6172
+ qt as a2,
6173
6173
  Il as a3,
6174
6174
  Yt as a4,
6175
6175
  El as a5,
@@ -6179,7 +6179,7 @@ export {
6179
6179
  Xs as d,
6180
6180
  Qs as e,
6181
6181
  Zs as f,
6182
- qs as g,
6182
+ Gs as g,
6183
6183
  nl as h,
6184
6184
  sl as i,
6185
6185
  rl as j,