@ynput/ayon-frontend-shared 0.6.9 → 0.7.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 (66) hide show
  1. package/dist/ContextMenu.es.js +44 -27
  2. package/dist/DetailsPanel.es.js +767 -740
  3. package/dist/ListTable.es.js +430 -430
  4. package/dist/NewEntity.es.js +43 -42
  5. package/dist/ProjectTreeTable.es.js +3496 -3342
  6. package/dist/Slicer.es.js +301 -276
  7. package/dist/Views.es.js +537 -521
  8. package/dist/api.es.js +429 -412
  9. package/dist/chunks/Actions.es.js +19 -18
  10. package/dist/chunks/ColumnDropIndicator.es.js +19 -18
  11. package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
  12. package/dist/chunks/ContextMenuContextInstance.es.js +4 -3
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +53 -41
  14. package/dist/chunks/DetailsDialog.es.js +26 -24
  15. package/dist/chunks/EmptyPlaceholder.es.js +3 -3
  16. package/dist/chunks/EmptyPlaceholderFlex.styled.es.js +40 -0
  17. package/dist/chunks/EntityPath.es.js +72 -71
  18. package/dist/chunks/EntityPickerDialog.es.js +88 -83
  19. package/dist/chunks/EntityTooltip.es.js +11 -10
  20. package/dist/chunks/EntityUpdatesContext.es.js +11 -11
  21. package/dist/chunks/Feed.es.js +864 -859
  22. package/dist/chunks/FilterErrorActions.es.js +4 -3
  23. package/dist/chunks/Menu.es.js +633 -289
  24. package/dist/chunks/MenuContext.es.js +1 -1
  25. package/dist/chunks/MetaWidget.es.js +2751 -2217
  26. package/dist/chunks/PlayableIcon.es.js +79 -78
  27. package/dist/chunks/ProjectContext.es.js +7 -7
  28. package/dist/chunks/RepresentationsList.es.js +1 -1
  29. package/dist/chunks/ReviewablesSelector.es.js +625 -609
  30. package/dist/chunks/SimpleForm.es.js +1 -1
  31. package/dist/chunks/SimpleTable.es.js +386 -363
  32. package/dist/chunks/Slicer.es.js +954 -821
  33. package/dist/chunks/{DeleteEntitiesContextInstance.es.js → TableExportContextInstance.es.js} +190 -186
  34. package/dist/chunks/TableSettingsFallback.es.js +4 -3
  35. package/dist/chunks/ThumbnailSimple.es.js +96 -95
  36. package/dist/chunks/VideoPlayer.es.js +1 -1
  37. package/dist/chunks/Watchers.es.js +850 -797
  38. package/dist/chunks/getBundleMode.es.js +1 -1
  39. package/dist/chunks/getEntityTypeIcon.es.js +5 -4
  40. package/dist/chunks/getUris.es.js +3704 -3504
  41. package/dist/chunks/realtimeUpdatesUtils.es.js +91 -82
  42. package/dist/chunks/searchTerms.es.js +649 -563
  43. package/dist/chunks/sortLists.es.js +22 -0
  44. package/dist/chunks/useAttributeEnums.es.js +21 -21
  45. package/dist/chunks/useHierarchySelection.es.js +6 -5
  46. package/dist/chunks/useLoadModule.es.js +24 -23
  47. package/dist/chunks/viewUpdateHelper.es.js +19 -18
  48. package/dist/components.es.js +628 -593
  49. package/dist/context.es.js +525 -499
  50. package/dist/hooks.es.js +54 -53
  51. package/dist/index.es.js +4 -4
  52. package/dist/types/ContextMenu.d.ts +4 -1
  53. package/dist/types/Feed.d.ts +1 -1
  54. package/dist/types/ListTable.d.ts +1 -1
  55. package/dist/types/ProjectTreeTable.d.ts +144 -14
  56. package/dist/types/SimpleTable.d.ts +2 -1
  57. package/dist/types/Slicer.d.ts +32 -5
  58. package/dist/types/Views.d.ts +6 -0
  59. package/dist/types/api.d.ts +2252 -510
  60. package/dist/types/components.d.ts +52 -4
  61. package/dist/types/context.d.ts +96 -2
  62. package/dist/types/hooks.d.ts +36 -1
  63. package/dist/types/util.d.ts +54 -0
  64. package/dist/util.es.js +129 -119
  65. package/package.json +4 -4
  66. package/dist/chunks/MenuItem.es.js +0 -420
@@ -1,30 +1,31 @@
1
1
  import { jsxs as R, jsx as t, Fragment as Q } from "react/jsx-runtime";
2
- import { useRef as _, useState as x, useEffect as le, useLayoutEffect as ae, createElement as he, Fragment as ke } from "react";
2
+ import { useRef as _, useState as x, useEffect as le, useLayoutEffect as ae, createElement as me, Fragment as ke } from "react";
3
3
  import "./searchTerms.es.js";
4
- import { ds as Me, bX as Ue, c9 as Fe, de as Te, b0 as Le, aP as We, aK as Ve, di as Ne } from "./getUris.es.js";
4
+ import { dz as Me, c1 as Ue, cf as Fe, dl as Te, b4 as Le, aT as We, aO as Ve, dq as Ne } from "./getUris.es.js";
5
5
  import "primereact/confirmdialog";
6
- import { useSensors as $e, useSensor as me, PointerSensor as Ae, KeyboardSensor as Oe, DndContext as qe, closestCenter as Ke, DragOverlay as Ze } from "@dnd-kit/core";
7
- import { useSortable as _e, sortableKeyboardCoordinates as Be, SortableContext as Ge, verticalListSortingStrategy as Qe, arrayMove as He } from "@dnd-kit/sortable";
8
- import { D as ze, R as Re, a as Xe, b as Je, L as Ye, c as oe, u as je, d as et, T as tt, e as ge, U as nt, P as rt, C as it, f as at, S as X, M as ve, g as be, h as J, i as ye, j as ot, F as st } from "./Watchers.es.js";
6
+ import { useSensors as $e, useSensor as he, PointerSensor as Ae, KeyboardSensor as Oe, DndContext as qe, closestCenter as Ke, DragOverlay as Ze } from "@dnd-kit/core";
7
+ import { useSortable as _e, sortableKeyboardCoordinates as Be, SortableContext as Ge, verticalListSortingStrategy as Qe, arrayMove as ze } from "@dnd-kit/sortable";
8
+ import { D as He, R as Re, a as Je, b as Xe, L as Ye, c as oe, u as je, d as et, T as tt, e as ge, U as nt, P as rt, C as it, f as at, S as J, M as ve, g as be, h as X, i as ye, j as ot, F as st } from "./Watchers.es.js";
9
9
  import { CSS as lt } from "@dnd-kit/utilities";
10
10
  import { toast as A } from "react-toastify";
11
11
  import { u as ct } from "./useCreateContextMenu.es.js";
12
12
  import { c as dt } from "./confirmDelete.es.js";
13
13
  import "uuid";
14
14
  import { camelCase as ut, upperFirst as pt } from "lodash";
15
- import { Icon as Ce, Dialog as Se, InputText as xe, Toolbar as ft, Button as ce, SaveButton as ht, FormRow as mt } from "@ynput/ayon-react-components";
15
+ import { Icon as Ce, Dialog as Se, InputText as xe, Toolbar as ft, Button as ce, SaveButton as mt, FormRow as ht } from "@ynput/ayon-react-components";
16
16
  import "@module-federation/enhanced/runtime";
17
- import { o as Ee } from "./DeleteEntitiesContextInstance.es.js";
17
+ import { o as Ee } from "./TableExportContextInstance.es.js";
18
18
  import "semver";
19
19
  import "react-dom";
20
20
  import "react-redux";
21
+ import "react-router-dom";
21
22
  import ue from "clsx";
22
23
  import gt from "axios";
23
24
  import "./ContextMenuContextInstance.es.js";
24
25
  import { s as vt, a as bt, h as we, g as yt, b as wt } from "./versionUploadHelpers.es.js";
25
26
  import { p as It } from "./parseFilename.es.js";
26
27
  import { u as Dt } from "./VersionUploadContextInstance.es.js";
27
- const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PURE__ */ R(ze, { className: ue(d, { active: a }), ...g, children: [
28
+ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PURE__ */ R(He, { className: ue(d, { active: a }), ...g, children: [
28
29
  /* @__PURE__ */ t(Ce, { icon: i }),
29
30
  /* @__PURE__ */ t("span", { children: r })
30
31
  ] }), Ct = ({ ...r }) => {
@@ -57,7 +58,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
57
58
  (n) => n.processing && !a.find((I) => I.activityId === n.activityId) && i
58
59
  ), s = u.filter(
59
60
  (n) => n.processing?.eventId
60
- ), h = u.filter(
61
+ ), m = u.filter(
61
62
  (n) => !n.processing?.eventId
62
63
  ).filter(
63
64
  (n) => n.availability === "conversionRequired"
@@ -66,7 +67,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
66
67
  playable: a,
67
68
  incompatible: y,
68
69
  processing: s,
69
- queued: h
70
+ queued: m
70
71
  };
71
72
  }, xt = ({
72
73
  onClose: r,
@@ -83,9 +84,9 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
83
84
  f("");
84
85
  };
85
86
  }, [i, u.current]);
86
- const [h, { isLoading: n }] = Me(), I = async () => {
87
+ const [m, { isLoading: n }] = Me(), I = async () => {
87
88
  try {
88
- await h({
89
+ await m({
89
90
  projectName: a,
90
91
  versionId: d,
91
92
  activityId: g,
@@ -98,18 +99,18 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
98
99
  }
99
100
  }, E = (v) => {
100
101
  v.preventDefault(), s && I();
101
- }, m = () => {
102
+ }, h = () => {
102
103
  f(""), r();
103
104
  };
104
105
  return /* @__PURE__ */ t(
105
106
  Se,
106
107
  {
107
108
  onClose: r,
108
- header: /* @__PURE__ */ t(Xe, { children: `Editing label: ${i}` }),
109
+ header: /* @__PURE__ */ t(Je, { children: `Editing label: ${i}` }),
109
110
  footer: /* @__PURE__ */ R(ft, { children: [
110
- /* @__PURE__ */ t(ce, { label: "Cancel", onClick: m, variant: "text" }),
111
+ /* @__PURE__ */ t(ce, { label: "Cancel", onClick: h, variant: "text" }),
111
112
  /* @__PURE__ */ t(
112
- ht,
113
+ mt,
113
114
  {
114
115
  label: "Save",
115
116
  active: !!s,
@@ -135,26 +136,26 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
135
136
  ) })
136
137
  }
137
138
  );
138
- }, an = ({
139
+ }, on = ({
139
140
  projectName: r,
140
141
  versionId: i,
141
142
  productId: a,
142
143
  isLoadingVersion: d,
143
144
  scope: g
144
145
  }) => {
145
- const { onOpenViewer: y, user: u, viewer: s, dispatch: f } = Ee(), { data: h, isLoading: n } = Ue({ projectName: r }, { skip: !r }), I = u.data?.isManager || u.data?.isAdmin || !n && (!h?.activities?.enabled || !!h?.activities?.activities?.includes("reviewable")), {
146
+ const { onOpenViewer: y, user: u, viewer: s, dispatch: f } = Ee(), { data: m, isLoading: n } = Ue({ projectName: r }, { skip: !r }), I = u.data?.isManager || u.data?.isAdmin || !n && (!m?.activities?.enabled || !!m?.activities?.activities?.includes("reviewable")), {
146
147
  data: E,
147
- isFetching: m,
148
+ isFetching: h,
148
149
  currentData: v
149
150
  } = Fe(
150
151
  { projectName: r, versionId: i },
151
152
  { skip: !i || !r }
152
153
  ), P = !1, V = s?.reviewableIds || [], F = u.name, O = u.data?.isUser, [k, W] = x(null), [M, p] = x(null), c = $e(
153
- me(Ae),
154
- me(Oe, {
154
+ he(Ae),
155
+ he(Oe, {
155
156
  coordinateGetter: Be
156
157
  })
157
- ), b = E?.reviewables || [], C = b.find((e) => e.fileId === M), $ = v?.id, K = m && i !== $ || d, N = (e) => {
158
+ ), b = E?.reviewables || [], C = b.find((e) => e.fileId === M), $ = v?.id, K = h && i !== $ || d, N = (e) => {
158
159
  if (M) return console.log("Dragging, cannot open review");
159
160
  const o = e.currentTarget.id;
160
161
  if (!o || !a) return console.error("No reviewable id or product id");
@@ -173,13 +174,13 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
173
174
  const { active: o } = e;
174
175
  p(o.id);
175
176
  }
176
- const [H] = Te(), z = async (e) => {
177
+ const [z] = Te(), H = async (e) => {
177
178
  const { active: o, over: l } = e;
178
179
  if (l?.id && o.id !== l.id) {
179
180
  console.log("update review position");
180
- const D = w.findIndex((L) => L.fileId === o.id), U = w.findIndex((L) => L.fileId === l.id), S = He(w, D, U).map((L) => L.activityId);
181
+ const D = w.findIndex((L) => L.fileId === o.id), U = w.findIndex((L) => L.fileId === l.id), S = ze(w, D, U).map((L) => L.activityId);
181
182
  try {
182
- H({
183
+ z({
183
184
  projectName: r,
184
185
  versionId: i,
185
186
  sortReviewablesRequest: { sort: S }
@@ -239,7 +240,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
239
240
  };
240
241
  return /* @__PURE__ */ R(Q, { children: [
241
242
  /* @__PURE__ */ t(
242
- Je,
243
+ Xe,
243
244
  {
244
245
  projectName: r,
245
246
  versionId: i,
@@ -255,7 +256,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
255
256
  sensors: c,
256
257
  collisionDetection: Ke,
257
258
  onDragStart: ee,
258
- onDragEnd: z,
259
+ onDragEnd: H,
259
260
  onDragCancel: () => p(null),
260
261
  children: [
261
262
  /* @__PURE__ */ t(
@@ -355,35 +356,35 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
355
356
  }, [g]), le(() => {
356
357
  if (i && y.current && s.startsWith(de) && !u.current) {
357
358
  y.current.focus();
358
- const m = de.length, v = s.length;
359
- y.current.setSelectionRange(m, v), u.current = !0;
359
+ const h = de.length, v = s.length;
360
+ y.current.setSelectionRange(h, v), u.current = !0;
360
361
  } else i || (u.current = !1);
361
362
  }, [i, s]);
362
- const h = () => {
363
+ const m = () => {
363
364
  s.trim() && d && d(s.trim());
364
365
  }, n = () => {
365
366
  f(g), a && a();
366
367
  }, I = s.trim().length > 0;
367
368
  return /* @__PURE__ */ t(Se, { isOpen: i, onClose: n, header: "Upload Entity", footer: /* @__PURE__ */ R("div", { style: { display: "flex", gap: "8px", justifyContent: "flex-end" }, children: [
368
369
  /* @__PURE__ */ t(ce, { variant: "text", onClick: n, children: "Cancel" }),
369
- /* @__PURE__ */ t(ce, { variant: "filled", onClick: h, disabled: !I, children: "Upload" })
370
- ] }), size: "sm", children: /* @__PURE__ */ t("div", { style: { padding: "16px 0" }, children: /* @__PURE__ */ t(mt, { label: "Product Name", children: /* @__PURE__ */ t(
370
+ /* @__PURE__ */ t(ce, { variant: "filled", onClick: m, disabled: !I, children: "Upload" })
371
+ ] }), size: "sm", children: /* @__PURE__ */ t("div", { style: { padding: "16px 0" }, children: /* @__PURE__ */ t(ht, { label: "Product Name", children: /* @__PURE__ */ t(
371
372
  xe,
372
373
  {
373
374
  ref: y,
374
375
  placeholder: "Enter product name...",
375
376
  value: s,
376
- onChange: (m) => f(m.target.value),
377
+ onChange: (h) => f(h.target.value),
377
378
  autoFocus: !0,
378
- onKeyDown: (m) => {
379
- m.key === "Enter" && I ? (m.preventDefault(), h()) : m.key === "Escape" && (m.preventDefault(), n());
379
+ onKeyDown: (h) => {
380
+ h.key === "Enter" && I ? (h.preventDefault(), m()) : h.key === "Escape" && (h.preventDefault(), n());
380
381
  }
381
382
  }
382
383
  ) }) }) });
383
384
  }, kt = [
384
385
  { id: "thumbnail", label: "Upload thumbnail", icon: "add_photo_alternate" },
385
386
  { id: "version", label: "Upload version", icon: "layers" }
386
- ], on = ({
387
+ ], sn = ({
387
388
  children: r = [],
388
389
  entityType: i,
389
390
  entities: a = [],
@@ -392,7 +393,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
392
393
  versionsInputRef: y,
393
394
  onVersionCreated: u
394
395
  }) => {
395
- const { dispatch: s } = Ee(), f = Dt(), [h, n] = x(!1), [I, E] = x(null), m = _(0), [v, P] = x(null), [V, F] = x(0), [O, k] = x(!1), [W, M] = x(null), p = a.length === 1 ? a[0] : null, c = p?.task?.id, b = p?.folder?.id, C = p?.product?.id, $ = p?.id, q = !!(p && i !== "representation"), { handleFileUpload: K } = je({
396
+ const { dispatch: s } = Ee(), f = Dt(), [m, n] = x(!1), [I, E] = x(null), h = _(0), [v, P] = x(null), [V, F] = x(0), [O, k] = x(!1), [W, M] = x(null), p = a.length === 1 ? a[0] : null, c = p?.task?.id, b = p?.folder?.id, C = p?.product?.id, $ = p?.id, q = !!(p && i !== "representation"), { handleFileUpload: K } = je({
396
397
  projectName: d,
397
398
  versionId: $,
398
399
  taskId: c,
@@ -406,7 +407,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
406
407
  F(e);
407
408
  }
408
409
  }), N = kt.filter((e) => e.id === "version" ? q : !0), w = () => {
409
- P(null), n(!1), E(null), m.current = 0, F(0), k(!1), M(null);
410
+ P(null), n(!1), E(null), h.current = 0, F(0), k(!1), M(null);
410
411
  }, Z = async (e) => {
411
412
  if (!W || !p) {
412
413
  k(!1), M(null);
@@ -430,13 +431,13 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
430
431
  // default product type for uploaded files
431
432
  productBaseType: "review"
432
433
  });
433
- k(!1), await z(W, l.id), M(null);
434
+ k(!1), await H(W, l.id), M(null);
434
435
  } catch (l) {
435
436
  we(l, "creating product"), w();
436
437
  }
437
438
  }, Y = () => {
438
439
  k(!1), M(null), w();
439
- }, [j] = We(), [ee] = Ve(), H = async (e) => {
440
+ }, [j] = We(), [ee] = Ve(), z = async (e) => {
440
441
  if (!q || !p)
441
442
  return A.error("Please select exactly one version to upload reviewables"), w();
442
443
  if (f) {
@@ -466,8 +467,8 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
466
467
  M(e), k(!0);
467
468
  return;
468
469
  }
469
- await z(e, o);
470
- }, z = async (e, o) => {
470
+ await H(e, o);
471
+ }, H = async (e, o) => {
471
472
  try {
472
473
  const l = yt(p.product?.latestVersion), D = await wt(j, d, {
473
474
  productId: o,
@@ -511,13 +512,13 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
511
512
  console.error(o), A.error(o.message), w();
512
513
  }
513
514
  }, [pe] = Ne(), te = (e) => {
514
- e.preventDefault(), m.current++, m.current === 1 && n(!0);
515
+ e.preventDefault(), h.current++, h.current === 1 && n(!0);
515
516
  }, ne = (e) => {
516
- e.preventDefault(), m.current--, m.current === 0 && (n(!1), E(null));
517
+ e.preventDefault(), h.current--, h.current === 0 && (n(!1), E(null));
517
518
  }, re = (e) => {
518
519
  e.preventDefault();
519
520
  }, ie = (e) => {
520
- if (e.preventDefault(), m.current = 0, n(!1), E(null), !(!e.dataTransfer.files || e.dataTransfer.files.length === 0)) {
521
+ if (e.preventDefault(), h.current = 0, n(!1), E(null), !(!e.dataTransfer.files || e.dataTransfer.files.length === 0)) {
521
522
  if (I === "thumbnail") {
522
523
  P("thumbnail");
523
524
  const o = e.dataTransfer.files[0];
@@ -526,25 +527,25 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
526
527
  if (I === "version") {
527
528
  P("version");
528
529
  const o = e.dataTransfer.files;
529
- H(o);
530
+ z(o);
530
531
  }
531
532
  }
532
533
  }, G = async (e, o) => {
533
534
  const l = e.target.files;
534
- !l || l.length === 0 || (o === "version" && (P("version"), H(l)), o === "thumbnail" && (P("thumbnail"), B(l[0])));
535
+ !l || l.length === 0 || (o === "version" && (P("version"), z(l)), o === "thumbnail" && (P("thumbnail"), B(l[0])));
535
536
  };
536
537
  return /* @__PURE__ */ R(Q, { children: [
537
538
  /* @__PURE__ */ R(
538
539
  et,
539
540
  {
540
- className: ue({ dragging: h }),
541
+ className: ue({ dragging: m }),
541
542
  onDragEnter: te,
542
543
  onDragLeave: ne,
543
544
  onDragOver: re,
544
545
  onDrop: ie,
545
546
  children: [
546
547
  /* @__PURE__ */ t(tt, { children: /* @__PURE__ */ t("div", { children: r }) }),
547
- h && /* @__PURE__ */ t(ge, { children: N.map((e) => /* @__PURE__ */ t(
548
+ m && /* @__PURE__ */ t(ge, { children: N.map((e) => /* @__PURE__ */ t(
548
549
  Rt,
549
550
  {
550
551
  id: e.id,
@@ -602,7 +603,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
602
603
  }, se = () => /* @__PURE__ */ t("span", { className: "slash", children: "/" }), Mt = ["more", "versions"], Ie = (r) => {
603
604
  const i = r.target, a = i.closest(".dropdown")?.id || "";
604
605
  return [i, a];
605
- }, sn = ({
606
+ }, ln = ({
606
607
  projectName: r,
607
608
  hideProjectName: i,
608
609
  segments: a,
@@ -611,12 +612,12 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
611
612
  entityType: y,
612
613
  scope: u
613
614
  }) => {
614
- const s = _(null), [f, h] = x(null), [n, I] = x(null), [E, m] = x(!1), v = _(null);
615
+ const s = _(null), [f, m] = x(null), [n, I] = x(null), [E, h] = x(!1), v = _(null);
615
616
  ae(() => {
616
- I(null), m(!0);
617
+ I(null), h(!0);
617
618
  }, [a]), ae(() => {
618
619
  if (!s.current) {
619
- m(!1);
620
+ h(!1);
620
621
  return;
621
622
  }
622
623
  const c = s.current, b = c.clientWidth, C = De(c);
@@ -630,7 +631,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
630
631
  let w = Array.from($).slice(0, N).filter(
631
632
  (Z) => Z.nodeType === Node.ELEMENT_NODE && Z.className.includes("full")
632
633
  )?.length || 2;
633
- w = Math.max(w, 1), I(w), m(!1);
634
+ w = Math.max(w, 1), I(w), h(!1);
634
635
  }, [s.current, E]), ae(() => {
635
636
  if (!s.current || !v.current || !n) return;
636
637
  const c = s.current, b = De(c) ?? 1 / 0, C = c.clientWidth - b;
@@ -642,18 +643,18 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
642
643
  y === "version" && a.length > 0 && (F = a[a.length - 1], O = P.slice(0, -1));
643
644
  const k = (c) => {
644
645
  const [, b] = Ie(c);
645
- b && !f && h(b);
646
- }, W = () => h(null), M = (c) => {
646
+ b && !f && m(b);
647
+ }, W = () => m(null), M = (c) => {
647
648
  const [b, C] = Ie(c);
648
649
  if (!Mt.includes(C)) return;
649
- !!b.closest("li") ? h(null) : f !== C && h(C);
650
+ !!b.closest("li") ? m(null) : f !== C && m(C);
650
651
  }, p = { scope: u, projectName: r };
651
652
  return /* @__PURE__ */ R(at, { className: ue({ loading: g }), id: "entity-path", ref: s, children: [
652
- !i && /* @__PURE__ */ t(X, { children: r }),
653
+ !i && /* @__PURE__ */ t(J, { children: r }),
653
654
  !!V.length && /* @__PURE__ */ R(Q, { children: [
654
655
  !i && /* @__PURE__ */ t(se, {}),
655
656
  /* @__PURE__ */ R(
656
- X,
657
+ J,
657
658
  {
658
659
  className: "dropdown more",
659
660
  id: "more",
@@ -662,14 +663,14 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
662
663
  onClick: M,
663
664
  children: [
664
665
  "...",
665
- f === "more" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: V.map((c) => /* @__PURE__ */ he(J, { ...p, segment: c, key: c.id }, /* @__PURE__ */ t(ye, { children: c.label }))) }) })
666
+ f === "more" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: V.map((c) => /* @__PURE__ */ me(X, { ...p, segment: c, key: c.id }, /* @__PURE__ */ t(ye, { children: c.label }))) }) })
666
667
  ]
667
668
  }
668
669
  )
669
670
  ] }),
670
671
  O.map((c) => /* @__PURE__ */ R(ke, { children: [
671
672
  /* @__PURE__ */ t(se, {}),
672
- /* @__PURE__ */ t(J, { ...p, segment: c, className: "full", children: /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t("span", { className: "label", children: c.label }) }) })
673
+ /* @__PURE__ */ t(X, { ...p, segment: c, className: "full", children: /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t("span", { className: "label", children: c.label }) }) })
673
674
  ] }, c.id)),
674
675
  F && /* @__PURE__ */ R(Q, { children: [
675
676
  /* @__PURE__ */ t(se, {}),
@@ -683,18 +684,18 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
683
684
  onClick: M,
684
685
  children: [
685
686
  /* @__PURE__ */ t(
686
- J,
687
+ X,
687
688
  {
688
689
  ...p,
689
690
  segment: F,
690
691
  isOpen: f === "versions",
691
- children: /* @__PURE__ */ R(X, { children: [
692
+ children: /* @__PURE__ */ R(J, { children: [
692
693
  /* @__PURE__ */ t(st, { ref: v, className: "label", children: F.label }),
693
694
  /* @__PURE__ */ t(Ce, { icon: "expand_more" })
694
695
  ] })
695
696
  }
696
697
  ),
697
- f === "versions" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: d.map((c) => /* @__PURE__ */ he(J, { ...p, segment: c, key: c.id }, /* @__PURE__ */ t(ye, { children: c.label }))) }) })
698
+ f === "versions" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: d.map((c) => /* @__PURE__ */ me(X, { ...p, segment: c, key: c.id }, /* @__PURE__ */ t(ye, { children: c.label }))) }) })
698
699
  ]
699
700
  }
700
701
  )
@@ -703,8 +704,8 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
703
704
  }, De = (r) => {
704
705
  const i = r.parentElement;
705
706
  if (!i) return;
706
- const a = getComputedStyle(i), d = parseInt(a.paddingLeft) || 0, g = parseInt(a.paddingRight) || 0, y = parseInt(a.gap) || 0, u = i.clientWidth - d - g, s = Array.from(i.children).filter((h) => h.id !== "entity-path"), f = Array.from(s).reduce(
707
- (h, n) => h + n.clientWidth,
707
+ const a = getComputedStyle(i), d = parseInt(a.paddingLeft) || 0, g = parseInt(a.paddingRight) || 0, y = parseInt(a.gap) || 0, u = i.clientWidth - d - g, s = Array.from(i.children).filter((m) => m.id !== "entity-path"), f = Array.from(s).reduce(
708
+ (m, n) => m + n.clientWidth,
708
709
  0
709
710
  );
710
711
  return u - f - y * (s.length - 1);
@@ -712,14 +713,14 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
712
713
  const d = a - i;
713
714
  let g = 0;
714
715
  for (let s = 0; s < a - d; s++) {
715
- const f = s > 1 ? s + d : s, h = r[f]?.clientWidth;
716
- isNaN(h) || (g += h);
716
+ const f = s > 1 ? s + d : s, m = r[f]?.clientWidth;
717
+ isNaN(m) || (g += m);
717
718
  }
718
719
  return g + (4 * i - 1) + 40;
719
720
  };
720
721
  export {
721
- on as E,
722
- an as R,
723
- sn as a,
722
+ sn as E,
723
+ on as R,
724
+ ln as a,
724
725
  St as g
725
726
  };