@ynput/ayon-frontend-shared 0.10.0 → 0.10.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.
@@ -1,54 +1,54 @@
1
1
  import { jsx as c, jsxs as x, Fragment as Te } from "react/jsx-runtime";
2
- import nn, { useMemo as I, useState as $, useEffect as W, lazy as xo, Suspense as ko, useCallback as Ke, useRef as pe, forwardRef as ft, useId as Ao, Fragment as Fo } from "react";
3
- import { v4 as xn } from "uuid";
4
- import ne, { clsx as kn } from "clsx";
5
- import An from "react-markdown";
6
- import Fn from "remark-emoji";
7
- import Cn from "remark-gfm";
2
+ import tn, { useMemo as N, useState as $, useEffect as W, lazy as xo, Suspense as ko, useCallback as Ke, useRef as pe, forwardRef as ft, useId as Ao, Fragment as Fo } from "react";
3
+ import { v4 as wn } from "uuid";
4
+ import ne, { clsx as xn } from "clsx";
5
+ import kn from "react-markdown";
6
+ import An from "remark-emoji";
7
+ import Fn from "remark-gfm";
8
8
  import Co from "remark-directive";
9
9
  import To from "remark-directive-rehype";
10
10
  import { toast as Ce } from "react-toastify";
11
- import { $createListItemNode as Do, $createListNode as No } from "@lexical/list";
12
- import { $getRoot as Io } from "lexical";
13
- import { Button as st, Dialog as So, getFileSizeString as Eo, Icon as se, theme as Tn, getTextColor as $t, Dropdown as Mo, SaveButton as Po, UserImage as Dn, SEARCH_FILTER_ID as Nn, buildFilterId as on, getFilterFromId as _o, SearchFilter as Ro } from "@ynput/ayon-react-components";
14
- import { a8 as $o, aa as In, ab as Lo, P as Oo, ac as Vo, ad as an, ae as jo, af as Uo, ag as zo, J as Bo, ah as Go, ai as Ho, aj as qo, ak as Wo, al as Qo, am as Yo, an as Jo, ao as Ko, ap as Xo, aq as Zo, ar as ea, V as Lt, a3 as Sn, a0 as ta, as as na, at as oa, au as aa, av as ra, aw as ia, ax as sa, ay as ca, az as rn, aA as la, b as da, c as ua, i as ma, aB as pa, _ as ga, e as ha, T as fa, S as ya, U as va } from "./FilmstripEntityCard.es.js";
11
+ import { $createListItemNode as Do, $createListNode as So } from "@lexical/list";
12
+ import { $getRoot as No } from "lexical";
13
+ import { Button as st, Dialog as Io, getFileSizeString as Eo, Icon as se, theme as Cn, getTextColor as Rt, Dropdown as Mo, SaveButton as Po, UserImage as Tn, SEARCH_FILTER_ID as Dn, buildFilterId as nn, getFilterFromId as _o, SearchFilter as Ro } from "@ynput/ayon-react-components";
14
+ import { a8 as $o, aa as Sn, ab as Lo, P as Oo, ac as Vo, ad as on, ae as jo, af as Uo, ag as zo, J as Bo, ah as Go, ai as Ho, aj as qo, ak as Wo, al as Qo, am as Yo, an as Jo, ao as Ko, ap as Xo, aq as Zo, ar as ea, V as $t, a3 as Nn, a0 as ta, as as na, at as oa, au as aa, av as ra, aw as ia, ax as sa, ay as ca, az as an, aA as la, b as da, c as ua, i as ma, aB as pa, _ as ga, e as ha, T as fa, S as ya, U as va } from "./FilmstripEntityCard.es.js";
15
15
  import "@lexical/code";
16
16
  import "@lexical/rich-text";
17
17
  import "@lexical/selection";
18
18
  import "@lexical/utils";
19
19
  import "@lexical/react/LexicalBlockWithAlignableContents";
20
20
  import "@lexical/react/LexicalDecoratorBlockNode";
21
- import F, { css as Ot } from "styled-components";
21
+ import F, { css as Lt } from "styled-components";
22
22
  import { C as ba } from "./CodeEditor.es.js";
23
- import { E as It } from "./EmptyPlaceholder.es.js";
23
+ import { E as Nt } from "./EmptyPlaceholder.es.js";
24
24
  import "./EmptyPlaceholderFlex.styled.es.js";
25
- import { a_ as wa, bs as sn } from "./searchTerms.es.js";
26
- import { bl as xa, bo as ka, aJ as Aa, dp as Fa, aW as Ca, aQ as Ta, b3 as Da, Q as Na, bG as Ia, bn as Sa, by as Ea, bs as Ma, bm as Pa, cF as _a, c2 as Ra } from "./getUris.es.js";
25
+ import { a_ as wa, bs as rn } from "./searchTerms.es.js";
26
+ import { bl as xa, bo as ka, aJ as Aa, dp as Fa, aW as Ca, aQ as Ta, b3 as Da, Q as Sa, bG as Na, bn as Ia, by as Ea, dO as In, dP as En, dQ as Ma, bs as Pa, bm as _a, cF as Ra, c2 as $a } from "./getUris.es.js";
27
27
  import "primereact/confirmdialog";
28
- import { union as $a, isEqual as La } from "lodash";
29
- import { b as Oa, F as Va, u as Le, a as En, T as ja, C as Ua } from "./ThumbnailSimple.es.js";
28
+ import { union as La, isEqual as Oa } from "lodash";
29
+ import { b as Va, F as ja, u as Le, a as Mn, T as Ua, C as za } from "./ThumbnailSimple.es.js";
30
30
  import "@module-federation/enhanced/runtime";
31
31
  import "@ynput/ayon-addon/host";
32
- import Vt from "axios";
33
- import { m as Be, o as za, $ as yt, u as Ba } from "./TableExportContextInstance.es.js";
32
+ import Ot from "axios";
33
+ import { m as Be, o as Ba, $ as yt, u as Ga } from "./TableExportContextInstance.es.js";
34
34
  import "semver";
35
35
  import "./ContextMenuContextInstance.es.js";
36
36
  import "react-dom";
37
37
  import "react-router-dom";
38
38
  import { p as ve } from "./parseFilename.es.js";
39
- import { b as cn } from "./colorUtils.es.js";
39
+ import { b as sn } from "./colorUtils.es.js";
40
40
  import "./EntityTooltip.es.js";
41
- import { isValid as Xe, isToday as Ga, isSameYear as Ha, isSameDay as qa, isSameWeek as Wa, isSameMinute as Qa, format as St, formatISO as Ya, differenceInMinutes as Ja, differenceInSeconds as Ka, compareAsc as Xa } from "date-fns";
41
+ import { isValid as Xe, isToday as Ha, isSameYear as qa, isSameDay as Wa, isSameWeek as Qa, isSameMinute as Ya, format as It, formatISO as Ja, differenceInMinutes as Ka, differenceInSeconds as Xa, compareAsc as Za } from "date-fns";
42
42
  import "@ynput/ayon-addon";
43
- import { a as Za, M as er } from "./Menu.es.js";
44
- import { InView as tr } from "react-intersection-observer";
45
- import { t as nr, c as or } from "./queryFilterToClientFilter.es.js";
46
- import { r as ar, a as rr, m as ir, u as sr } from "./useDateRangeFilter.es.js";
43
+ import { a as er, M as tr } from "./Menu.es.js";
44
+ import { InView as nr } from "react-intersection-observer";
45
+ import { t as or, c as ar } from "./queryFilterToClientFilter.es.js";
46
+ import { r as rr, a as ir, m as sr, u as cr } from "./useDateRangeFilter.es.js";
47
47
  import "match-sorter";
48
- import { c as cr } from "./confirmDelete.es.js";
49
- import { c as Mn } from "./copyToClipboard.es.js";
50
- import { g as ln } from "./realtimeUpdatesUtils.es.js";
51
- const lr = ({
48
+ import { c as lr } from "./confirmDelete.es.js";
49
+ import { c as Pn } from "./copyToClipboard.es.js";
50
+ import { g as cn } from "./realtimeUpdatesUtils.es.js";
51
+ const dr = ({
52
52
  entities: e,
53
53
  filter: t,
54
54
  backendFilter: o,
@@ -56,7 +56,7 @@ const lr = ({
56
56
  projectName: a,
57
57
  entityType: r
58
58
  }) => {
59
- const i = I(
59
+ const i = N(
60
60
  () => e.map((w) => ({ id: w.id, projectName: w.projectName, entityType: r })),
61
61
  [e]
62
62
  ).map((w) => w.id), l = !e.length || !t || !n || !a, m = {
@@ -75,18 +75,18 @@ const lr = ({
75
75
  fetchNextPage: b,
76
76
  hasNextPage: y
77
77
  } = xa(m, { skip: l });
78
- const D = I(() => p?.pages ? p.pages.flatMap((w) => w.activities || []) : [], [p?.pages]), M = I(() => h?.pages ? h.pages.flatMap((w) => w.activities || []) : [], [h?.pages]), C = async () => {
78
+ const D = N(() => p?.pages ? p.pages.flatMap((w) => w.activities || []) : [], [p?.pages]), M = N(() => h?.pages ? h.pages.flatMap((w) => w.activities || []) : [], [h?.pages]), C = async () => {
79
79
  if (!y) {
80
80
  console.log("No more activities to load");
81
81
  return;
82
82
  }
83
83
  return console.log("loading next page..."), await b();
84
- }, f = I(() => {
84
+ }, f = N(() => {
85
85
  if (!g) return !1;
86
- const w = $a(
86
+ const w = La(
87
87
  M?.flatMap((A) => A.entityId ? A.entityId : [])
88
88
  );
89
- return !La(w, i);
89
+ return !Oa(w, i);
90
90
  }, [M, i, g]);
91
91
  return l && (g = !0), {
92
92
  activitiesData: D,
@@ -96,24 +96,24 @@ const lr = ({
96
96
  hasNextPage: y,
97
97
  loadNextPage: C
98
98
  };
99
- }, rt = "__new__", Mc = ({ children: e, ...t }) => {
99
+ }, rt = "__new__", _c = ({ children: e, ...t }) => {
100
100
  const { isGuest: o } = Be(), { data: n = [] } = ka({ projects: [t.projectName] }), { data: a = [] } = wa.useGetTeamsQuery(
101
101
  { projectName: t.projectName, showMembers: !0 },
102
102
  { skip: !t.projectName }
103
- ), r = I(
103
+ ), r = N(
104
104
  () => a.filter((j) => j.members?.some((de) => de.name === t.userName)).map((j) => j.name),
105
105
  [a, t.userName]
106
106
  ), [s, i] = $({
107
107
  operator: "and",
108
108
  conditions: []
109
- }), [l, m] = $(""), p = t.feedFilter ?? s, g = t.setFeedFilter ?? i, [u, h] = $(null), [b, y] = $(null), [D, { isLoading: M }] = Aa(), [C, { isLoading: f }] = Fa(), [w, { isLoading: A }] = Ca(), S = M || f || A, P = async (j) => await D(j).unwrap(), _ = async (j) => await C(j).unwrap(), E = async (j) => await w(j).unwrap(), [N] = Ta(), [G] = Da(), X = async (j) => await N(j).unwrap(), Q = async (j) => await G(j).unwrap(), Z = Na(p), Y = I(() => Oa(p), [p]), L = lr({
109
+ }), [l, m] = $(""), p = t.feedFilter ?? s, g = t.setFeedFilter ?? i, [u, h] = $(null), [b, y] = $(null), [D, { isLoading: M }] = Aa(), [C, { isLoading: f }] = Fa(), [w, { isLoading: A }] = Ca(), I = M || f || A, P = async (j) => await D(j).unwrap(), _ = async (j) => await C(j).unwrap(), E = async (j) => await w(j).unwrap(), [S] = Ta(), [G] = Da(), X = async (j) => await S(j).unwrap(), Q = async (j) => await G(j).unwrap(), Z = Sa(p), Y = N(() => Va(p), [p]), L = dr({
110
110
  entities: t.entities,
111
111
  filter: p,
112
112
  backendFilter: Y,
113
113
  activityTypes: Z,
114
114
  projectName: t.projectName,
115
115
  entityType: t.entityType
116
- }), { data: oe = {} } = Ia(
116
+ }), { data: oe = {} } = Na(
117
117
  {
118
118
  suggestRequest: {
119
119
  entityType: t.entityType,
@@ -122,7 +122,7 @@ const lr = ({
122
122
  projectName: t.projectName
123
123
  },
124
124
  { skip: !u }
125
- ), { data: ae = [] } = Sa({
125
+ ), { data: ae = [] } = Ia({
126
126
  projectName: t.projectName
127
127
  }), { data: J } = Ea(
128
128
  {
@@ -132,7 +132,7 @@ const lr = ({
132
132
  { skip: !t.projectName || !t.entities.length }
133
133
  );
134
134
  return /* @__PURE__ */ c(
135
- Va.Provider,
135
+ ja.Provider,
136
136
  {
137
137
  value: {
138
138
  ...t,
@@ -141,7 +141,7 @@ const lr = ({
141
141
  categories: ae,
142
142
  checklistCount: J,
143
143
  users: n,
144
- isUpdatingActivity: S,
144
+ isUpdatingActivity: I,
145
145
  userTeamNames: r,
146
146
  refTooltip: b,
147
147
  activityTypes: Z,
@@ -164,7 +164,7 @@ const lr = ({
164
164
  children: e
165
165
  }
166
166
  );
167
- }, dr = F.div`
167
+ }, ur = F.div`
168
168
  display: grid;
169
169
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
170
170
  gap: var(--base-gap-large);
@@ -180,7 +180,7 @@ const lr = ({
180
180
  301px + var(--padding-s) + var(--padding-s) + var(--base-gap-large)+ var(--base-gap-large)
181
181
  );
182
182
  overflow: auto;
183
- `, ur = F.div`
183
+ `, mr = F.div`
184
184
  position: relative;
185
185
  display: flex;
186
186
  flex-direction: column;
@@ -226,7 +226,7 @@ const lr = ({
226
226
  .download-icon {
227
227
  color: var(--md-sys-color-outline);
228
228
  }
229
- `, mr = F.footer`
229
+ `, pr = F.footer`
230
230
  background-color: var(--md-sys-color-surface-container-low);
231
231
  display: flex;
232
232
  align-items: center;
@@ -326,7 +326,7 @@ const lr = ({
326
326
  }
327
327
  }
328
328
  }
329
- `, pr = F.div`
329
+ `, gr = F.div`
330
330
  position: relative;
331
331
  display: flex;
332
332
  justify-content: center;
@@ -363,7 +363,7 @@ const lr = ({
363
363
  &:hover .image-wrapper::after {
364
364
  opacity: 0.8;
365
365
  }
366
- `, dn = F.div`
366
+ `, ln = F.div`
367
367
  position: absolute;
368
368
  inset: 0;
369
369
  display: flex;
@@ -402,7 +402,7 @@ const lr = ({
402
402
  &.posterError {
403
403
  background-color: transparent;
404
404
  }
405
- `, gr = F.div`
405
+ `, hr = F.div`
406
406
  display: none;
407
407
  position: absolute;
408
408
  left: 0;
@@ -411,7 +411,7 @@ const lr = ({
411
411
  height: calc(100% - 20px);
412
412
  width: 100%;
413
413
  gap: 0;
414
- `, un = F(st)`
414
+ `, dn = F(st)`
415
415
  height: 100%;
416
416
  width: 100%;
417
417
  border: none;
@@ -422,7 +422,7 @@ const lr = ({
422
422
  background: none;
423
423
  opacity: 1;
424
424
  }
425
- `, hr = F($o)`
425
+ `, fr = F($o)`
426
426
  --icon-size: 32px;
427
427
  top: calc(50% - 10px);
428
428
  left: 50%;
@@ -434,7 +434,7 @@ const lr = ({
434
434
  .icon {
435
435
  font-size: var(--icon-size);
436
436
  }
437
- `, Pc = F(So)`
437
+ `, Rc = F(Io)`
438
438
  min-height: 90vh;
439
439
  max-height: 90vh;
440
440
  min-width: min(90vw, 100%);
@@ -519,7 +519,7 @@ const lr = ({
519
519
  &:focus-visible {
520
520
  outline: none;
521
521
  }
522
- `, fr = F.img`
522
+ `, yr = F.img`
523
523
  height: 100%;
524
524
  width: 100%;
525
525
 
@@ -529,7 +529,7 @@ const lr = ({
529
529
  max-width: 90vw;
530
530
  min-width: 300px;
531
531
  background-color: var(--md-sys-color-surface-container-lowest);
532
- `, _c = F.div`
532
+ `, $c = F.div`
533
533
  &.scrollable {
534
534
  position: absolute;
535
535
  inset: 56px;
@@ -541,7 +541,7 @@ const lr = ({
541
541
  inset: 56px 0 0 0;
542
542
  display: flex;
543
543
  }
544
- `, mn = F.div`
544
+ `, un = F.div`
545
545
  position: relative;
546
546
  display: flex;
547
547
  flex: 1;
@@ -558,18 +558,18 @@ const lr = ({
558
558
  flex: 1;
559
559
  min-width: 0;
560
560
  }
561
- `, ct = (e, t) => `/api/projects/${t}/files/${e}`, yr = ({
561
+ `, ct = (e, t) => `/api/projects/${t}/files/${e}`, vr = ({
562
562
  file: e,
563
563
  fullPreviews: t = ["png", "jpg", "jpeg", "gif", "svg", "webp"]
564
564
  }) => {
565
565
  const { id: o, projectName: n, mime: a } = e;
566
566
  let r = ct(o, n);
567
- return t.some((i) => a.includes(i)) || (r += "/thumbnail"), /* @__PURE__ */ c(fr, { src: r, autoFocus: !0 });
568
- }, vr = F(ba)`
567
+ return t.some((i) => a.includes(i)) || (r += "/thumbnail"), /* @__PURE__ */ c(yr, { src: r, autoFocus: !0 });
568
+ }, br = F(ba)`
569
569
  border-radius: var(--border-radius-m);
570
570
  height: 100%;
571
571
  overflow: auto !important;
572
- `, br = ({ file: e }) => {
572
+ `, wr = ({ file: e }) => {
573
573
  let t = ct(e.id, e.projectName);
574
574
  const [o, n] = $(""), [a, r] = $(null);
575
575
  return W(() => {
@@ -587,8 +587,8 @@ const lr = ({
587
587
  }, [e.projectName, e.id, t]), a ? /* @__PURE__ */ x("div", { children: [
588
588
  "Error: ",
589
589
  a
590
- ] }) : e.mime?.includes("markdown") ? /* @__PURE__ */ c(An, { remarkPlugins: [Cn, Fn], children: o }) : /* @__PURE__ */ c(vr, { value: o, language: e.extension, readOnly: !0 });
591
- }, Pn = () => import("./VideoPlayer.es.js"), wr = xo(Pn), xr = ({ duration: e, width: t, height: o }) => Number.isFinite(e) && e > 0 && t > 0 && o > 0, kr = 1e4, Ar = (e) => e ? `code ${e.code}${e.message ? `: ${e.message}` : ""}` : "no MediaError", Fr = (e, t) => {
590
+ ] }) : e.mime?.includes("markdown") ? /* @__PURE__ */ c(kn, { remarkPlugins: [Fn, An], children: o }) : /* @__PURE__ */ c(br, { value: o, language: e.extension, readOnly: !0 });
591
+ }, _n = () => import("./VideoPlayer.es.js"), xr = xo(_n), kr = ({ duration: e, width: t, height: o }) => Number.isFinite(e) && e > 0 && t > 0 && o > 0, Ar = 1e4, Fr = (e) => e ? `code ${e.code}${e.message ? `: ${e.message}` : ""}` : "no MediaError", Cr = (e, t) => {
592
592
  const [o, n] = $({ status: "loading" });
593
593
  return W(() => {
594
594
  n({ status: "loading" });
@@ -604,14 +604,14 @@ const lr = ({
604
604
  width: r.videoWidth,
605
605
  height: r.videoHeight
606
606
  };
607
- if (xr(u)) {
607
+ if (kr(u)) {
608
608
  i(), n({ status: "ready", metadata: u });
609
609
  return;
610
610
  }
611
611
  p(`unusable metadata ${JSON.stringify(u)}`);
612
612
  }
613
613
  function m() {
614
- a || (clearTimeout(s), p(Ar(r?.error ?? null)));
614
+ a || (clearTimeout(s), p(Fr(r?.error ?? null)));
615
615
  }
616
616
  const p = (u) => {
617
617
  const h = r?.preload === "metadata";
@@ -622,7 +622,7 @@ const lr = ({
622
622
  console.warn(`[VideoMime] video cannot be played: ${u}`, e), n({ status: "error" });
623
623
  };
624
624
  function g(u) {
625
- r = document.createElement("video"), r.preload = u, r.muted = !0, r.playsInline = !0, s = setTimeout(() => !a && p("timed out"), kr), r.addEventListener("loadedmetadata", l), r.addEventListener("error", m), r.src = e;
625
+ r = document.createElement("video"), r.preload = u, r.muted = !0, r.playsInline = !0, s = setTimeout(() => !a && p("timed out"), Ar), r.addEventListener("loadedmetadata", l), r.addEventListener("error", m), r.src = e;
626
626
  }
627
627
  return g("metadata"), () => {
628
628
  a = !0, clearTimeout(s), i();
@@ -638,18 +638,18 @@ const lr = ({
638
638
  codec: t?.codec
639
639
  }
640
640
  };
641
- }, Cr = ({ file: e }) => {
642
- const { id: t, projectName: o, name: n, mediaInfo: a } = e, r = ct(t, o), s = Fr(r, a);
641
+ }, Tr = ({ file: e }) => {
642
+ const { id: t, projectName: o, name: n, mediaInfo: a } = e, r = ct(t, o), s = Cr(r, a);
643
643
  if (W(() => {
644
- Pn();
644
+ _n();
645
645
  }, []), s.status === "error")
646
- return /* @__PURE__ */ c(mn, { children: /* @__PURE__ */ c(It, { icon: "videocam_off", message: "This video cannot be played in the browser", children: /* @__PURE__ */ x("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: [
646
+ return /* @__PURE__ */ c(un, { children: /* @__PURE__ */ c(Nt, { icon: "videocam_off", message: "This video cannot be played in the browser", children: /* @__PURE__ */ x("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: [
647
647
  "Download ",
648
648
  n
649
649
  ] }) }) });
650
- const i = /* @__PURE__ */ c(mn, { children: /* @__PURE__ */ c(It, { icon: "hourglass_empty", message: "Loading video..." }) });
650
+ const i = /* @__PURE__ */ c(un, { children: /* @__PURE__ */ c(Nt, { icon: "hourglass_empty", message: "Loading video..." }) });
651
651
  return s.status === "loading" ? i : /* @__PURE__ */ c(ko, { fallback: i, children: /* @__PURE__ */ c(
652
- wr,
652
+ xr,
653
653
  {
654
654
  id: t,
655
655
  name: n,
@@ -662,20 +662,20 @@ const lr = ({
662
662
  codec: s.metadata.codec
663
663
  }
664
664
  ) });
665
- }, Tr = {
665
+ }, Dr = {
666
666
  image: {
667
- component: yr,
667
+ component: vr,
668
668
  mimeTypes: ["image/"],
669
669
  fullPreviews: ["png", "jpg", "jpeg", "gif", "svg", "webp"],
670
670
  id: "image"
671
671
  },
672
672
  video: {
673
- component: Cr,
673
+ component: Tr,
674
674
  mimeTypes: ["video/"],
675
675
  id: "video"
676
676
  },
677
677
  text: {
678
- component: br,
678
+ component: wr,
679
679
  mimeTypes: ["text/", "application/json", "scss", "jsx"],
680
680
  id: "text"
681
681
  },
@@ -685,9 +685,9 @@ const lr = ({
685
685
  id: "pdf",
686
686
  callback: (e) => window.open(ct(e.id, e.projectName), "_blank")
687
687
  }
688
- }, vt = (e = "", t = "") => Object.values(Tr).some(
688
+ }, vt = (e = "", t = "") => Object.values(Dr).some(
689
689
  ({ mimeTypes: o = [] }) => o.some((n) => (e || t)?.includes(n))
690
- ), Dr = {
690
+ ), Sr = {
691
691
  // special cases
692
692
  description: ["doc"],
693
693
  folder_zip: ["zip"],
@@ -730,7 +730,7 @@ const lr = ({
730
730
  font_download: ["font"],
731
731
  deployed_code: ["model", ".obj", ".abc", ".stl", ".fbx", ".gltf", ".glb", ".usd"]
732
732
  }, Nr = (e) => {
733
- for (const [t, o] of Object.entries(Dr))
733
+ for (const [t, o] of Object.entries(Sr))
734
734
  if (o.some((n) => e.includes(n)))
735
735
  return t;
736
736
  return "draft";
@@ -752,44 +752,44 @@ const lr = ({
752
752
  className: b,
753
753
  ...y
754
754
  }) => {
755
- const D = i && i < 100, [M, C] = $(!1), [f, w] = $(!1), { feedAnnotationsEnabled: A } = Be(), { entities: S } = Le(), P = e.split("."), _ = P.pop() || "", E = P.join("."), N = vt(t || "." + _), G = t?.includes("image/") || !!n, Q = !!t?.includes("video/") && !n && o ? `${o}/thumbnail` : void 0, Z = /* @__PURE__ */ x(Te, { children: [
755
+ const D = i && i < 100, [M, C] = $(!1), [f, w] = $(!1), { feedAnnotationsEnabled: A } = Be(), { entities: I } = Le(), P = e.split("."), _ = P.pop() || "", E = P.join("."), S = vt(t || "." + _), G = t?.includes("image/") || !!n, Q = !!t?.includes("video/") && !n && o ? `${o}/thumbnail` : void 0, Z = /* @__PURE__ */ x(Te, { children: [
756
756
  /* @__PURE__ */ c("span", { className: "size", children: Eo(s) }),
757
757
  /* @__PURE__ */ c(se, { icon: "download", className: "download-icon" })
758
- ] }), Y = I(
758
+ ] }), Y = N(
759
759
  () => n ?? a,
760
760
  [n, a]
761
- ), L = I(() => S.at(0), [S]), oe = I(() => {
761
+ ), L = N(() => I.at(0), [I]), oe = N(() => {
762
762
  if (!Y?.range)
763
763
  return [1, 1];
764
- const ae = r === void 0 ? L?.attrib?.frameStart : r;
765
- return Number.isFinite(ae) ? [ae - 1 + Y.range[0], ae - 1 + Y.range[1]] : Y.range;
764
+ const ae = r === void 0 ? In(L?.attrib?.frameStart, L?.attrib?.handleStart) : r;
765
+ return typeof ae != "number" || !Number.isFinite(ae) ? Y.range : [ae - 1 + Y.range[0], ae - 1 + Y.range[1]];
766
766
  }, [Y, r, L]);
767
767
  return /* @__PURE__ */ x(
768
- ur,
768
+ mr,
769
769
  {
770
770
  className: ne(b, {
771
771
  compact: m,
772
772
  isDownloadable: p,
773
- isPreviewable: N,
773
+ isPreviewable: S,
774
774
  isUnsavedAnnotation: !!n
775
775
  }),
776
776
  ...y,
777
777
  children: [
778
778
  /* @__PURE__ */ x(
779
- pr,
779
+ gr,
780
780
  {
781
781
  className: ne("content-wrapper", {
782
- isPreviewable: N,
782
+ isPreviewable: S,
783
783
  isUnsavedAnnotation: !!n
784
784
  }),
785
785
  children: [
786
786
  /* @__PURE__ */ c(se, { icon: Nr(t || "." + _), className: "type-icon" }),
787
787
  G && o && /* @__PURE__ */ c(
788
- dn,
788
+ ln,
789
789
  {
790
790
  className: ne({
791
791
  "image-wrapper": !0,
792
- isDownloadable: p || N || n
792
+ isDownloadable: p || S || n
793
793
  }),
794
794
  children: /* @__PURE__ */ c(
795
795
  "img",
@@ -804,22 +804,22 @@ const lr = ({
804
804
  }
805
805
  ),
806
806
  Q && /* @__PURE__ */ x(
807
- dn,
807
+ ln,
808
808
  {
809
809
  className: ne({
810
810
  "image-wrapper": !0,
811
- isDownloadable: p || N,
811
+ isDownloadable: p || S,
812
812
  posterError: f
813
813
  }),
814
814
  children: [
815
815
  !f && /* @__PURE__ */ c("img", { src: Q, onError: () => w(!0) }),
816
- /* @__PURE__ */ c(hr, {})
816
+ /* @__PURE__ */ c(fr, {})
817
817
  ]
818
818
  }
819
819
  ),
820
- /* @__PURE__ */ x(gr, { className: "expand-buttons", children: [
821
- N && !u && /* @__PURE__ */ c(
822
- un,
820
+ /* @__PURE__ */ x(hr, { className: "expand-buttons", children: [
821
+ S && !u && /* @__PURE__ */ c(
822
+ dn,
823
823
  {
824
824
  "data-tooltip": "Open preview",
825
825
  icon: "open_in_full",
@@ -828,7 +828,7 @@ const lr = ({
828
828
  }
829
829
  ),
830
830
  (n || A && a) && /* @__PURE__ */ c(
831
- un,
831
+ dn,
832
832
  {
833
833
  "data-tooltip": "Jump to annotation",
834
834
  icon: "play_circle",
@@ -841,11 +841,11 @@ const lr = ({
841
841
  }
842
842
  ),
843
843
  /* @__PURE__ */ x(
844
- mr,
844
+ pr,
845
845
  {
846
846
  className: ne({
847
847
  inProgress: D,
848
- isPreviewable: N && !u,
848
+ isPreviewable: S && !u,
849
849
  isDownloadable: p
850
850
  }),
851
851
  children: [
@@ -869,7 +869,7 @@ const lr = ({
869
869
  ]
870
870
  }
871
871
  );
872
- }, _n = ({
872
+ }, Rn = ({
873
873
  files: e = [],
874
874
  activityId: t,
875
875
  isCompact: o,
@@ -890,7 +890,7 @@ const lr = ({
890
890
  },
891
891
  [i]
892
892
  );
893
- return /* @__PURE__ */ c(dr, { className: ne({ compact: o }), ...p, children: e.map((u, h) => /* @__PURE__ */ c(
893
+ return /* @__PURE__ */ c(ur, { className: ne({ compact: o }), ...p, children: e.map((u, h) => /* @__PURE__ */ c(
894
894
  Ir,
895
895
  {
896
896
  id: u.id || u.name,
@@ -911,7 +911,7 @@ const lr = ({
911
911
  },
912
912
  u.id || u.name
913
913
  )) });
914
- }, Sr = (e) => {
914
+ }, Er = (e) => {
915
915
  const t = /!\[.*?\]\((.*?)\)/g, o = e.match(t);
916
916
  let n = e;
917
917
  return o && o.forEach((a) => {
@@ -919,23 +919,23 @@ const lr = ({
919
919
  const r = a.match(/\(([^)]+)\)/)[1], s = r.split("?")[0];
920
920
  n = e.replace(r, s);
921
921
  }), n;
922
- }, Er = new AbortController(), Mr = Vt.CancelToken, Pr = Mr.source(), Ze = (e, t, o) => new Promise((n, a) => {
922
+ }, Mr = new AbortController(), Pr = Ot.CancelToken, _r = Pr.source(), Ze = (e, t, o) => new Promise((n, a) => {
923
923
  new FormData().append("image", e);
924
924
  const s = {
925
- signal: Er.signal,
926
- cancelToken: Pr.token,
925
+ signal: Mr.signal,
926
+ cancelToken: _r.token,
927
927
  onUploadProgress: (i) => o && o(i, e),
928
928
  headers: {
929
929
  "Content-Type": e.type,
930
930
  "x-file-name": ve(e.name)
931
931
  }
932
932
  };
933
- Vt.post(`/api/projects/${t}/files`, e, s).then((i) => {
933
+ Ot.post(`/api/projects/${t}/files`, e, s).then((i) => {
934
934
  n({ file: e, data: i.data });
935
935
  }).catch((i) => {
936
936
  console.error(i), a({ message: "Upload failed: " + i.response.data.detail });
937
937
  });
938
- }), _r = (e, t, o, n, a) => {
938
+ }), Rr = (e, t, o, n, a) => {
939
939
  e.preventDefault(), e.stopPropagation();
940
940
  let r = e.dataTransfer.files;
941
941
  if (r?.length) {
@@ -948,15 +948,15 @@ const lr = ({
948
948
  }
949
949
  );
950
950
  }
951
- }, Rr = (e, t, o) => (t || console.warn("filterEntityAnnotations: entityId is empty"), Object.values(e).forEach((n) => {
951
+ }, $r = (e, t, o) => (t || console.warn("filterEntityAnnotations: entityId is empty"), Object.values(e).forEach((n) => {
952
952
  n.versionId || console.warn("filterEntityAnnotations: annotation.versionId is empty", n);
953
953
  }), Object.values(e).filter(
954
954
  (n) => n.versionId === t && !o.some((a) => a.name === ve(n.name))
955
955
  ).map((n) => ({
956
956
  ...n,
957
957
  unsavedAnnotation: n
958
- }))), $r = ({ entityId: e, filesUploading: t }) => {
959
- const { editingId: o, setEditingId: n, annotations: a, removeAnnotation: r } = Le(), { onGoToFrame: s } = Be(), i = Rr(a || [], e, t);
958
+ }))), Lr = ({ entityId: e, filesUploading: t }) => {
959
+ const { editingId: o, setEditingId: n, annotations: a, removeAnnotation: r } = Le(), { onGoToFrame: s } = Be(), i = $r(a || [], e, t);
960
960
  return W(() => {
961
961
  i.length > 0 && !o && n(rt);
962
962
  }, [i]), {
@@ -967,15 +967,15 @@ const lr = ({
967
967
  },
968
968
  removeAnnotation: r
969
969
  };
970
- }, Rn = (e) => I(() => {
970
+ }, $n = (e) => N(() => {
971
971
  if (!e)
972
972
  return { primary: void 0, secondary: void 0 };
973
- const t = getComputedStyle(document.documentElement), o = t.getPropertyValue("--md-sys-color-surface-container").trim(), n = t.getPropertyValue("--md-sys-color-surface-container-high").trim(), a = o || e, r = n || e, s = cn(e, a, 0.1) || e, i = cn(e, r, 0.2) || e;
973
+ const t = getComputedStyle(document.documentElement), o = t.getPropertyValue("--md-sys-color-surface-container").trim(), n = t.getPropertyValue("--md-sys-color-surface-container-high").trim(), a = o || e, r = n || e, s = sn(e, a, 0.1) || e, i = sn(e, r, 0.2) || e;
974
974
  return {
975
975
  primary: s,
976
976
  secondary: i
977
977
  };
978
- }, [e]), Lr = ({ projectName: e, onSuccess: t, onProgress: o, onStart: n, onError: a }) => {
978
+ }, [e]), Or = ({ projectName: e, onSuccess: t, onProgress: o, onStart: n, onError: a }) => {
979
979
  const { exportAnnotationComposite: r } = Le(), s = async (l) => {
980
980
  const m = await r?.(l.id);
981
981
  if (!m)
@@ -1017,38 +1017,38 @@ const lr = ({
1017
1017
  return Ce.error("Upload failed: " + m.message), { files: [], metadata: [] };
1018
1018
  }
1019
1019
  };
1020
- }, $n = "ayon-comment-draft/", Ln = 720 * 60 * 60 * 1e3, Or = (e) => !e.text.trim() && !e.files.length && !e.uploadedAnnotations.length, On = (e) => {
1020
+ }, Ln = "ayon-comment-draft/", On = 720 * 60 * 60 * 1e3, Vr = (e) => !e.text.trim() && !e.files.length && !e.uploadedAnnotations.length, Vn = (e) => {
1021
1021
  try {
1022
1022
  const t = localStorage.getItem(e);
1023
1023
  return t ? JSON.parse(t) : null;
1024
1024
  } catch {
1025
1025
  return null;
1026
1026
  }
1027
- }, Vr = (e, t) => {
1027
+ }, jr = (e, t) => {
1028
1028
  try {
1029
- Or(t) ? localStorage.removeItem(e) : localStorage.setItem(e, JSON.stringify({ ...t, savedAt: Date.now() }));
1029
+ Vr(t) ? localStorage.removeItem(e) : localStorage.setItem(e, JSON.stringify({ ...t, savedAt: Date.now() }));
1030
1030
  } catch (o) {
1031
1031
  console.warn("Could not save comment draft", o);
1032
1032
  }
1033
- }, jr = () => {
1033
+ }, Ur = () => {
1034
1034
  try {
1035
1035
  const e = Date.now();
1036
1036
  for (const t of Object.keys(localStorage)) {
1037
- if (!t.startsWith($n)) continue;
1038
- const o = On(t);
1039
- (!o || e - o.savedAt > Ln) && localStorage.removeItem(t);
1037
+ if (!t.startsWith(Ln)) continue;
1038
+ const o = Vn(t);
1039
+ (!o || e - o.savedAt > On) && localStorage.removeItem(t);
1040
1040
  }
1041
1041
  } catch {
1042
1042
  }
1043
- }, Ur = (e, t, o) => e && t && o.length ? `${$n}${e}/${t}/${[...o].sort().join(",")}` : null, zr = ({ draftKey: e, draft: t, paused: o, restore: n }) => {
1043
+ }, zr = (e, t, o) => e && t && o.length ? `${Ln}${e}/${t}/${[...o].sort().join(",")}` : null, Br = ({ draftKey: e, draft: t, paused: o, restore: n }) => {
1044
1044
  const a = pe(null), r = pe(!1);
1045
1045
  W(() => {
1046
1046
  if (!e || o) return;
1047
1047
  const s = a.current;
1048
1048
  if (a.current = e, s === e) return;
1049
- s || jr();
1050
- const i = On(e);
1051
- i && Date.now() - i.savedAt <= Ln ? (r.current = !0, n({
1049
+ s || Ur();
1050
+ const i = Vn(e);
1051
+ i && Date.now() - i.savedAt <= On ? (r.current = !0, n({
1052
1052
  text: i.text ?? "",
1053
1053
  files: i.files ?? [],
1054
1054
  uploadedAnnotations: i.uploadedAnnotations ?? [],
@@ -1059,9 +1059,9 @@ const lr = ({
1059
1059
  r.current = !1;
1060
1060
  return;
1061
1061
  }
1062
- !e || o || Vr(e, t);
1062
+ !e || o || jr(e, t);
1063
1063
  }, [e, o, t.text, t.files, t.uploadedAnnotations, t.category]);
1064
- }, Br = "Category", Gr = F.div`
1064
+ }, Gr = "Category", Hr = F.div`
1065
1065
  display: flex;
1066
1066
  padding: 2px 4px;
1067
1067
  justify-content: center;
@@ -1087,7 +1087,7 @@ const lr = ({
1087
1087
 
1088
1088
  &.compact {
1089
1089
  padding: 1px 2px;
1090
- ${Tn.labelMedium}
1090
+ ${Cn.labelMedium}
1091
1091
  }
1092
1092
 
1093
1093
  &.editing {
@@ -1112,7 +1112,7 @@ const lr = ({
1112
1112
  }
1113
1113
  `, it = ft(
1114
1114
  ({ value: e, color: t, isCompact: o, isEditing: n, isPower: a, isDisabled: r, style: s, className: i, ...l }, m) => /* @__PURE__ */ c(
1115
- Gr,
1115
+ Hr,
1116
1116
  {
1117
1117
  ...l,
1118
1118
  ref: m,
@@ -1128,13 +1128,13 @@ const lr = ({
1128
1128
  ...t && {
1129
1129
  backgroundColor: t,
1130
1130
  borderColor: t,
1131
- color: $t(t)
1131
+ color: Rt(t)
1132
1132
  }
1133
1133
  },
1134
- children: e || Br
1134
+ children: e || Gr
1135
1135
  }
1136
1136
  )
1137
- ), Hr = F.span`
1137
+ ), qr = F.span`
1138
1138
  display: flex;
1139
1139
  justify-content: flex-start;
1140
1140
  align-items: center;
@@ -1153,7 +1153,7 @@ const lr = ({
1153
1153
  color: var(--md-sys-color-on-surface) !important;
1154
1154
  }
1155
1155
  }
1156
- `, qr = ft(
1156
+ `, Wr = ft(
1157
1157
  ({
1158
1158
  label: e,
1159
1159
  color: t,
@@ -1166,11 +1166,11 @@ const lr = ({
1166
1166
  className: l,
1167
1167
  ...m
1168
1168
  }, p) => /* @__PURE__ */ x(
1169
- Hr,
1169
+ qr,
1170
1170
  {
1171
1171
  ...m,
1172
1172
  className: ne(l, { selected: n }),
1173
- style: { backgroundColor: n && t ? t : "", color: $t(n && t ? t : ""), ...i },
1173
+ style: { backgroundColor: n && t ? t : "", color: Rt(n && t ? t : ""), ...i },
1174
1174
  ref: p,
1175
1175
  children: [
1176
1176
  a,
@@ -1186,7 +1186,7 @@ const lr = ({
1186
1186
  ]
1187
1187
  }
1188
1188
  )
1189
- ), Wr = "1.3.0", Qr = F(Mo)`
1189
+ ), Qr = "1.3.0", Yr = F(Mo)`
1190
1190
  button {
1191
1191
  /* remove all styles and just use a wrapper */
1192
1192
  background-color: unset !important;
@@ -1197,7 +1197,7 @@ const lr = ({
1197
1197
  width: unset !important;
1198
1198
  color: var(--md-sys-color-on-surface) !important;
1199
1199
  }
1200
- `, Yr = ({
1200
+ `, Jr = ({
1201
1201
  value: e,
1202
1202
  categories: t,
1203
1203
  readonly: o,
@@ -1233,7 +1233,7 @@ const lr = ({
1233
1233
  isCompact: a,
1234
1234
  style: l.style,
1235
1235
  onClick: () => Ce.warning(
1236
- `No categories found. Ensure they are set in the Powerpack settings and the version is at least ${Wr}.`
1236
+ `No categories found. Ensure they are set in the Powerpack settings and the version is at least ${Qr}.`
1237
1237
  )
1238
1238
  }
1239
1239
  );
@@ -1247,14 +1247,14 @@ const lr = ({
1247
1247
  }))
1248
1248
  ];
1249
1249
  return /* @__PURE__ */ c(
1250
- Qr,
1250
+ Yr,
1251
1251
  {
1252
1252
  options: g,
1253
1253
  value: e ? [e] : [],
1254
1254
  onChange: (u) => i(u[0]),
1255
1255
  valueTemplate: () => /* @__PURE__ */ c(it, { value: e, color: p, isCompact: a, isEditing: !0 }),
1256
1256
  itemTemplate: (u, h, b, y) => /* @__PURE__ */ c(
1257
- qr,
1257
+ Wr,
1258
1258
  {
1259
1259
  label: u.label,
1260
1260
  color: u.color,
@@ -1266,28 +1266,28 @@ const lr = ({
1266
1266
  ...l
1267
1267
  }
1268
1268
  );
1269
- }, Jr = (e, { isGuest: t, isAdmin: o }) => !!(t || !e.length && !o), Kr = ["tip", "status"], Xr = ["textDirective", "leafDirective", "containerDirective"], Vn = (e) => ({ type: "text", value: e }), Ft = (e) => ({ type: "paragraph", children: [Vn(e)] }), Zr = (e, t) => {
1269
+ }, Kr = (e, { isGuest: t, isAdmin: o }) => !!(t || !e.length && !o), Xr = ["tip", "status"], Zr = ["textDirective", "leafDirective", "containerDirective"], jn = (e) => ({ type: "text", value: e }), Ft = (e) => ({ type: "paragraph", children: [jn(e)] }), ei = (e, t) => {
1270
1270
  const o = e.position?.start.offset, n = e.position?.end.offset;
1271
1271
  return o === void 0 || n === void 0 ? null : t.slice(o, n);
1272
- }, ei = (e, t) => {
1273
- const o = Zr(e, t);
1272
+ }, ti = (e, t) => {
1273
+ const o = ei(e, t);
1274
1274
  if (o === null) return null;
1275
- if (e.type === "textDirective") return [Vn(o)];
1275
+ if (e.type === "textDirective") return [jn(o)];
1276
1276
  if (e.type === "leafDirective") return [Ft(o)];
1277
1277
  const [n, ...a] = o.split(`
1278
1278
  `), r = a.length ? a[a.length - 1].match(/:{3,}\s*$/) : null;
1279
1279
  return [Ft(n), ...e.children || [], ...r ? [Ft(r[0])] : []];
1280
- }, jn = (e, t, o) => {
1280
+ }, Un = (e, t, o) => {
1281
1281
  if (!e.children) return;
1282
1282
  const n = [];
1283
1283
  for (const a of e.children) {
1284
- const s = Xr.includes(a.type) && !o.includes(a.name || "") ? ei(a, t) : null;
1284
+ const s = Zr.includes(a.type) && !o.includes(a.name || "") ? ti(a, t) : null;
1285
1285
  n.push(...s || [a]);
1286
1286
  }
1287
- e.children = n, n.forEach((a) => jn(a, t, o));
1288
- }, ti = (e = Kr) => (t, o) => {
1289
- jn(t, String(o.value ?? ""), e);
1290
- }, Un = 1e4, ni = F.span`
1287
+ e.children = n, n.forEach((a) => Un(a, t, o));
1288
+ }, ni = (e = Xr) => (t, o) => {
1289
+ Un(t, String(o.value ?? ""), e);
1290
+ }, zn = 1e4, oi = F.span`
1291
1291
  margin-left: auto;
1292
1292
  color: var(--md-sys-color-outline);
1293
1293
  user-select: none;
@@ -1300,7 +1300,7 @@ const lr = ({
1300
1300
  min-width: 0;
1301
1301
  max-width: fit-content;
1302
1302
 
1303
- ${Tn.bodySmall}
1303
+ ${Cn.bodySmall}
1304
1304
  `, lt = ({ date: e, isExact: t, exactTooltip: o = !1, ...n }) => {
1305
1305
  const [a, r] = $(!0), [s, i] = $(/* @__PURE__ */ new Date());
1306
1306
  if (!e) return null;
@@ -1309,18 +1309,18 @@ const lr = ({
1309
1309
  W(() => {
1310
1310
  const w = setInterval(
1311
1311
  () => i(/* @__PURE__ */ new Date()),
1312
- Un
1312
+ zn
1313
1313
  );
1314
1314
  return () => clearInterval(w);
1315
1315
  }, []);
1316
- const m = Ga(l), p = Ha(l, s), g = qa(l, new Date(s.setDate(s.getDate() - 1))), u = Wa(l, s), h = Qa(l, s), b = g ? "" : p ? u ? "E" : "MMM d" : "MMM d yyyy", y = "h:mm a", D = I(() => In(l), [l]), M = I(() => m ? St(l, `${b}, ${y}`) : St(l, `EEEE, dd MMM yyyy ${y}`), [l, m]);
1316
+ const m = Ha(l), p = qa(l, s), g = Wa(l, new Date(s.setDate(s.getDate() - 1))), u = Qa(l, s), h = Ya(l, s), b = g ? "" : p ? u ? "E" : "MMM d" : "MMM d yyyy", y = "h:mm a", D = N(() => Sn(l), [l]), M = N(() => m ? It(l, `${b}, ${y}`) : It(l, `EEEE, dd MMM yyyy ${y}`), [l, m]);
1317
1317
  let C = a && !t ? D : M;
1318
1318
  g && a && !t && (C = `Yesterday${C}`), h && (C = "Just now");
1319
1319
  const f = () => {
1320
1320
  r(!a);
1321
1321
  };
1322
1322
  return /* @__PURE__ */ c(
1323
- ni,
1323
+ oi,
1324
1324
  {
1325
1325
  className: ne("date"),
1326
1326
  ...n,
@@ -1333,62 +1333,58 @@ const lr = ({
1333
1333
  }
1334
1334
  );
1335
1335
  };
1336
- var Se = /* @__PURE__ */ ((e) => (e.APPROVE = "approve", e.REQUEST_CHANGES = "request_changes", e))(Se || {});
1337
- const zn = (e) => {
1336
+ var Ie = /* @__PURE__ */ ((e) => (e.APPROVE = "approve", e.REQUEST_CHANGES = "request_changes", e))(Ie || {});
1337
+ const Bn = (e) => {
1338
1338
  switch (e) {
1339
- case Se.REQUEST_CHANGES:
1339
+ case Ie.REQUEST_CHANGES:
1340
1340
  return "requested changes";
1341
- case Se.APPROVE:
1341
+ case Ie.APPROVE:
1342
1342
  default:
1343
1343
  return "approved this";
1344
1344
  }
1345
- }, oi = (e, t) => {
1345
+ }, ai = (e, t) => {
1346
1346
  switch (e) {
1347
- case Se.REQUEST_CHANGES:
1347
+ case Ie.REQUEST_CHANGES:
1348
1348
  return "Requested changes on " + t;
1349
- case Se.APPROVE:
1349
+ case Ie.APPROVE:
1350
1350
  default:
1351
1351
  return "Approved " + t;
1352
1352
  }
1353
- }, Bn = (e) => {
1353
+ }, Gn = (e) => {
1354
1354
  switch (e) {
1355
- case Se.REQUEST_CHANGES:
1355
+ case Ie.REQUEST_CHANGES:
1356
1356
  return "refresh";
1357
- case Se.APPROVE:
1357
+ case Ie.APPROVE:
1358
1358
  default:
1359
1359
  return "task_alt";
1360
1360
  }
1361
- }, ai = ({ lastOwnVersionReview: e }) => {
1361
+ }, ri = ({ lastOwnVersionReview: e }) => {
1362
1362
  const [t, o] = $(/* @__PURE__ */ new Date());
1363
1363
  W(() => {
1364
- const r = setInterval(() => o(/* @__PURE__ */ new Date()), Un);
1364
+ const r = setInterval(() => o(/* @__PURE__ */ new Date()), zn);
1365
1365
  return () => clearInterval(r);
1366
1366
  }, []);
1367
- const n = I(() => e?.activityData?.feedback, [e]), a = I(() => e?.createdAt ? In(new Date(e?.createdAt)).toLowerCase() : "", [e?.createdAt, t]);
1368
- return /* @__PURE__ */ x(Lo, { className: kn(n), children: [
1369
- /* @__PURE__ */ c(se, { icon: Bn(n) }),
1367
+ const n = N(() => e?.activityData?.feedback, [e]), a = N(() => e?.createdAt ? Sn(new Date(e?.createdAt)).toLowerCase() : "", [e?.createdAt, t]);
1368
+ return /* @__PURE__ */ x(Lo, { className: xn(n), children: [
1369
+ /* @__PURE__ */ c(se, { icon: Gn(n) }),
1370
1370
  "You last ",
1371
- zn(n),
1371
+ Bn(n),
1372
1372
  " ",
1373
1373
  a,
1374
1374
  " ",
1375
1375
  a === "just now" ? "" : "ago"
1376
1376
  ] });
1377
- }, pn = (e) => {
1378
- const t = /^(\d+)(?:\s*-\s*(\d+))?$/.exec(e.trim());
1379
- if (!t) return null;
1380
- const o = Number(t[1]), n = t[2] ? Number(t[2]) : o;
1381
- return Number.isSafeInteger(o) && o > 0 && Number.isSafeInteger(n) && n >= o ? { startFrame: o, endFrame: n } : null;
1382
- }, Et = (e) => typeof e == "number" && Number.isFinite(e) ? e - 1 : 0, Gn = (e, t) => String(e + Et(t)), ri = (e, t) => {
1383
- if (!e) return null;
1384
- const o = e.startFrame - Et(t), n = e.endFrame - Et(t);
1385
- return o > 0 ? { startFrame: o, endFrame: n } : null;
1386
- }, gn = async (e, t, o, n, a) => {
1387
- const { data: r } = await Vt.get(`/api/projects/${e}/files/${t}`, {
1377
+ }, ii = /^(\d+)(?:\s*-\s*(\d+))?$/, si = /^(-?\d+)(?:\s*-\s*(-?\d+))?$/, mn = (e, { signed: t = !1 } = {}) => {
1378
+ const o = (t ? si : ii).exec(e.trim());
1379
+ if (!o) return null;
1380
+ const n = Number(o[1]), a = o[2] ? Number(o[2]) : n, r = (s) => Number.isSafeInteger(s) && (t || s > 0);
1381
+ return r(n) && r(a) && a >= n ? { startFrame: n, endFrame: a } : null;
1382
+ }, pn = async (e, t, o, n, a) => {
1383
+ const { data: r } = await Ot.get(`/api/projects/${e}/files/${t}`, {
1388
1384
  responseType: "blob"
1389
1385
  }), s = new File([r], o, { type: n || r.type });
1390
1386
  return Ze(s, e, a);
1391
- }, hn = (e, t) => `/api/projects/${e}/files/${t}`, fn = (e, t) => !!e && Lt(t).has(e), ii = [
1387
+ }, gn = (e, t) => `/api/projects/${e}/files/${t}`, hn = (e, t) => !!e && $t(t).has(e), ci = [
1392
1388
  { trigger: "@", icon: "person", tooltip: "Mention user" },
1393
1389
  { trigger: "@@", icon: "layers", tooltip: "Mention version" },
1394
1390
  { trigger: "@@@", icon: "check_circle", tooltip: "Mention task" }
@@ -1417,17 +1413,17 @@ const zn = (e) => {
1417
1413
  projectName: f,
1418
1414
  entities: w,
1419
1415
  projectInfo: A,
1420
- feedFilter: S,
1416
+ feedFilter: I,
1421
1417
  mentionSuggestionsData: P,
1422
1418
  categories: _,
1423
1419
  isGuest: E,
1424
- userName: N,
1420
+ userName: S,
1425
1421
  editingId: G
1426
- } = Le(), { hasLicense: X, onPowerFeature: Q, user: Z, openSlideOut: Y, commentFrameLink: L } = Be(), oe = Z?.data?.isAdmin, ae = za(), [, J] = En(), [j, de] = $(e || ""), [H, ee] = $(
1422
+ } = Le(), { hasLicense: X, onPowerFeature: Q, user: Z, openSlideOut: Y, commentFrameLink: L } = Be(), oe = Z?.data?.isAdmin, ae = Ba(), [, J] = Mn(), [j, de] = $(e || ""), [H, ee] = $(
1427
1423
  () => t.map(
1428
- (d) => fn(d.id, e || "") ? { ...d, isInline: !0 } : d
1424
+ (d) => hn(d.id, e || "") ? { ...d, isInline: !0 } : d
1429
1425
  )
1430
- ), [Oe, De] = $(0), Ve = pe(/* @__PURE__ */ new Map()), [be, ge] = $([]), [Ge, ue] = $(!1), [xe, he] = $(!1), [Ne, Ie] = $([]), [et, Re] = $([]), { annotations: fe, removeAnnotation: He, goToAnnotation: qe } = $r({
1426
+ ), [Oe, De] = $(0), Ve = pe(/* @__PURE__ */ new Map()), [be, ge] = $([]), [Ge, ue] = $(!1), [xe, he] = $(!1), [Se, Ne] = $([]), [et, Re] = $([]), { annotations: fe, removeAnnotation: He, goToAnnotation: qe } = Lr({
1431
1427
  entityId: w[0]?.id,
1432
1428
  filesUploading: be
1433
1429
  }), re = w.length === 1 && w[0].entityType === "version" ? w[0] : void 0, tt = L?.draft && L.draft.entityId === re?.id ? L.draft : null, [je, We] = $(
@@ -1435,7 +1431,7 @@ const zn = (e) => {
1435
1431
  startFrame: a.startFrame,
1436
1432
  endFrame: Number.isSafeInteger(a.endFrame) && a.endFrame >= a.startFrame ? a.endFrame : a.startFrame
1437
1433
  } : null
1438
- ), Ee = (d) => We(d && { ...d, entityId: re?.id }), Ue = u || je?.entityId === re?.id ? je : null, [ke, Me] = $(!1), q = u ? Ue : Ue ?? tt, Pe = u ? !!re || !!Ue : !!L && !!re, T = L?.formatFrame, R = T ?? ((d) => Gn(d, o)), U = (d) => T ? pn(d) : ri(pn(d), o), v = q ? q.endFrame > q.startFrame ? `${R(q.startFrame)}-${R(q.endFrame)}` : R(q.startFrame) : void 0, [K, we] = $(v ?? ""), Ae = pe(!1), Fe = pe(null), $e = (d) => {
1434
+ ), Ee = (d) => We(d && { ...d, entityId: re?.id }), Ue = u || je?.entityId === re?.id ? je : null, [ke, Me] = $(!1), q = u ? Ue : Ue ?? tt, Pe = u ? !!re || !!Ue : !!L && !!re, T = L?.formatFrame, R = T ?? ((d) => En(d, o)), U = (d) => T ? mn(d) : Ma(mn(d, { signed: !0 }), o), v = q ? q.endFrame > q.startFrame ? `${R(q.startFrame)}-${R(q.endFrame)}` : R(q.startFrame) : void 0, [K, we] = $(v ?? ""), Ae = pe(!1), Fe = pe(null), $e = (d) => {
1439
1435
  if (!re) return;
1440
1436
  const k = d ? { ...d, entityId: re.id } : null;
1441
1437
  if (!u) {
@@ -1446,7 +1442,7 @@ const zn = (e) => {
1446
1442
  activityId: r,
1447
1443
  link: k
1448
1444
  });
1449
- }, jt = (d) => {
1445
+ }, Vt = (d) => {
1450
1446
  we(d);
1451
1447
  const k = U(d);
1452
1448
  k && $e(k);
@@ -1470,7 +1466,7 @@ const zn = (e) => {
1470
1466
  Ee(null), u ? $e(null) : L?.unlink();
1471
1467
  }, Ye = () => {
1472
1468
  !u && L && re ? L.link(re.id) : (we(""), Me(!0));
1473
- }, bt = () => q ? Qe() : Ye(), ut = I(() => {
1469
+ }, bt = () => q ? Qe() : Ye(), ut = N(() => {
1474
1470
  if (!Pe || !u && !L || !re) return;
1475
1471
  const d = ["frame", "time", "timecode", "link", "range"];
1476
1472
  return [
@@ -1490,41 +1486,41 @@ const zn = (e) => {
1490
1486
  }
1491
1487
  ];
1492
1488
  }, [Pe, u, L, re?.id, !!q, v]), [_e, mt] = $(n);
1493
- zr({
1494
- draftKey: C && !u ? Ur(
1489
+ Br({
1490
+ draftKey: C && !u ? zr(
1495
1491
  f,
1496
- N,
1492
+ S,
1497
1493
  w.map((d) => d.id)
1498
1494
  ) : null,
1499
- draft: { text: j, files: H, uploadedAnnotations: Ne, category: _e },
1495
+ draft: { text: j, files: H, uploadedAnnotations: Se, category: _e },
1500
1496
  paused: xe,
1501
1497
  restore: (d) => {
1502
- de(d.text), ee(d.files), Ie(d.uploadedAnnotations), mt(d.category), (d.text.trim() || d.files.length || d.uploadedAnnotations.length) && !y && !G && D?.();
1498
+ de(d.text), ee(d.files), Ne(d.uploadedAnnotations), mt(d.category), (d.text.trim() || d.files.length || d.uploadedAnnotations.length) && !y && !G && D?.();
1503
1499
  }
1504
1500
  });
1505
- const Ut = _.filter((d) => d.accessLevel >= 20), zt = _.find((d) => d.name === _e), Bt = Rn(zt?.color), Je = pe(null), Gt = pe(null), Ht = pe(null), pt = !!j.trim(), no = !pt && !H.length && !be.length && !Oe && !Ne.length && !fe.length && !xe, qt = !!S?.conditions?.some(
1501
+ const jt = _.filter((d) => d.accessLevel >= 20), Ut = _.find((d) => d.name === _e), zt = $n(Ut?.color), Je = pe(null), Bt = pe(null), Gt = pe(null), pt = !!j.trim(), no = !pt && !H.length && !be.length && !Oe && !Se.length && !fe.length && !xe, Ht = !!I?.conditions?.some(
1506
1502
  (d) => "key" in d && d.key === "checklists" && d.value === !0
1507
1503
  );
1508
1504
  W(() => {
1509
- if (!y || u || !qt) return;
1505
+ if (!y || u || !Ht) return;
1510
1506
  const d = Je.current;
1511
1507
  !d || !d.isEmpty() || d.getEditor().update(() => {
1512
1508
  const k = Do(!1);
1513
- Io().clear().append(No("check").append(k)), k.select();
1509
+ No().clear().append(So("check").append(k)), k.select();
1514
1510
  });
1515
- }, [y, u, qt]);
1516
- const Wt = w[0]?.entityType, Qt = ae?.productTypes, oo = I(
1511
+ }, [y, u, Ht]);
1512
+ const qt = w[0]?.entityType, Wt = ae?.productTypes, oo = N(
1517
1513
  () => E ? void 0 : {
1518
1514
  ...Oo({
1519
1515
  suggestions: P,
1520
- project: { productTypes: Qt },
1516
+ project: { productTypes: Wt },
1521
1517
  taskTypes: A?.taskTypes,
1522
- entityType: Wt
1518
+ entityType: qt
1523
1519
  }),
1524
1520
  // keep the picker short
1525
1521
  limit: 5
1526
1522
  },
1527
- [E, P, Qt, A?.taskTypes, Wt]
1523
+ [E, P, Wt, A?.taskTypes, qt]
1528
1524
  ), ao = ({ type: d, id: k }) => {
1529
1525
  d === "user" || d === "team" || Y({ entityId: k, entityType: d, projectName: f });
1530
1526
  }, ro = ({ type: d, id: k, label: O }, V) => {
@@ -1536,8 +1532,8 @@ const zn = (e) => {
1536
1532
  }, [y]);
1537
1533
  const so = () => {
1538
1534
  y || h || (wt(!0), D && D());
1539
- }, Yt = () => {
1540
- u && L?.setEditPreview(null), (!pt || u) && de(""), M && M(), Ht.current?.closest("#viewer-dialog")?.focus();
1535
+ }, Qt = () => {
1536
+ u && L?.setEditPreview(null), (!pt || u) && de(""), M && M(), Gt.current?.closest("#viewer-dialog")?.focus();
1541
1537
  }, nt = ({ file: d, data: k }, O = !1) => {
1542
1538
  const V = ve(d.name), z = {
1543
1539
  id: k.id,
@@ -1568,7 +1564,7 @@ const zn = (e) => {
1568
1564
  }
1569
1565
  }, gt = (d) => {
1570
1566
  ge((k) => k.filter((O) => O.name !== ve(d)));
1571
- }, Jt = (d) => {
1567
+ }, Yt = (d) => {
1572
1568
  for (const k of d) {
1573
1569
  const O = Ze(k, f, ot);
1574
1570
  Ve.current.set(k, O), O.then(
@@ -1585,7 +1581,7 @@ const zn = (e) => {
1585
1581
  if (k) {
1586
1582
  const { data: z } = await k;
1587
1583
  return ee((ce) => ce.map((le) => le.id === z.id ? { ...le, isInline: !0 } : le)), {
1588
- src: hn(f, z.id),
1584
+ src: gn(f, z.id),
1589
1585
  name: ve(d.name),
1590
1586
  mime: d.type
1591
1587
  };
@@ -1594,14 +1590,14 @@ const zn = (e) => {
1594
1590
  return ee((z) => [
1595
1591
  ...z,
1596
1592
  { id: O.id, name: V, mime: d.type, size: d.size, order: z.length, isInline: !0 }
1597
- ]), { src: hn(f, O.id), name: V, mime: d.type };
1593
+ ]), { src: gn(f, O.id), name: V, mime: d.type };
1598
1594
  } catch (k) {
1599
1595
  throw Ve.current.has(d) || Ce.error(k?.message || "Upload failed"), k;
1600
1596
  } finally {
1601
1597
  De((k) => k - 1);
1602
1598
  }
1603
1599
  }, uo = (d) => {
1604
- ue(!1), !d.defaultPrevented && _r(
1600
+ ue(!1), !d.defaultPrevented && Rr(
1605
1601
  d,
1606
1602
  f,
1607
1603
  ot,
@@ -1610,10 +1606,10 @@ const zn = (e) => {
1610
1606
  );
1611
1607
  }, mo = (d) => {
1612
1608
  d.preventDefault(), d.stopPropagation(), ue(!0);
1613
- }, Kt = pe(null), po = async ({ activity: d }) => {
1609
+ }, Jt = pe(null), po = async ({ activity: d }) => {
1614
1610
  const k = yt(d);
1615
1611
  k && k.entityId === re?.id && (Ee({ startFrame: k.startFrame, endFrame: k.endFrame }), L?.setDraft(k));
1616
- const O = Sn(d.body || ""), V = d.files || [], z = Lt(O), ce = w.length === 1 && w[0].id === (d.origin?.id ?? d.entityId), le = (B) => {
1612
+ const O = Nn(d.body || ""), V = d.files || [], z = $t(O), ce = w.length === 1 && w[0].id === (d.origin?.id ?? d.entityId), le = (B) => {
1617
1613
  const me = d.origin ?? (d.entityId && d.entityType ? { id: d.entityId, type: d.entityType } : void 0), ie = `[Source](${ta(d.activityId, me)})`, te = [B.trim(), ie].filter(Boolean).join(`
1618
1614
 
1619
1615
  `);
@@ -1623,7 +1619,7 @@ ${te}` : te), Je.current?.focus();
1623
1619
  }, ze = async (B) => {
1624
1620
  const me = z.has(B.id);
1625
1621
  try {
1626
- const ie = await gn(
1622
+ const ie = await pn(
1627
1623
  f,
1628
1624
  B.id,
1629
1625
  B.name,
@@ -1632,24 +1628,24 @@ ${te}` : te), Je.current?.focus();
1632
1628
  );
1633
1629
  if (me) {
1634
1630
  const { file: ye, data: at } = ie, ht = ve(ye.name);
1635
- ee((tn) => [
1636
- ...tn,
1637
- { id: at.id, name: ht, mime: ye.type, size: ye.size, order: tn.length, isInline: me }
1631
+ ee((en) => [
1632
+ ...en,
1633
+ { id: at.id, name: ht, mime: ye.type, size: ye.size, order: en.length, isInline: me }
1638
1634
  ]);
1639
1635
  } else nt(ie);
1640
1636
  const te = B.annotation;
1641
1637
  if (te && ce) {
1642
- const ye = await gn(
1638
+ const ye = await pn(
1643
1639
  f,
1644
1640
  te.transparent,
1645
1641
  `annotation-${B.name}`,
1646
1642
  "image/png"
1647
1643
  );
1648
- nt(ye, !0), Ie((at) => [
1644
+ nt(ye, !0), Ne((at) => [
1649
1645
  ...at,
1650
1646
  {
1651
1647
  ...te,
1652
- id: `${te.id}-${xn()}`,
1648
+ id: `${te.id}-${wn()}`,
1653
1649
  composite: ie.data.id,
1654
1650
  transparent: ye.data.id
1655
1651
  }
@@ -1682,9 +1678,9 @@ ${te}` : te), Je.current?.focus();
1682
1678
  }
1683
1679
  };
1684
1680
  W(() => {
1685
- !p || Kt.current === p.key || (Kt.current = p.key, wt(!0), g?.(), po(p));
1681
+ !p || Jt.current === p.key || (Jt.current = p.key, wt(!0), g?.(), po(p));
1686
1682
  }, [p?.key]);
1687
- const go = Lr({
1683
+ const go = Or({
1688
1684
  projectName: f,
1689
1685
  onSuccess: nt,
1690
1686
  onProgress: ot,
@@ -1695,13 +1691,13 @@ ${te}` : te), Je.current?.focus();
1695
1691
  if (!xt)
1696
1692
  try {
1697
1693
  he(!0);
1698
- let d = [], k = Ne, O = [];
1694
+ let d = [], k = Se, O = [];
1699
1695
  if (fe.length) {
1700
1696
  Re(fe.map((te) => te.id));
1701
1697
  const { files: me, metadata: ie } = await go(fe);
1702
1698
  d = me, k = [...k, ...ie], O = ie.map((te) => te.id), Re(O);
1703
1699
  }
1704
- const { annotations: V = [] } = a || {}, z = k.length ? [...V, ...k] : void 0, ce = Sr(Je.current?.getMarkdown() ?? j), le = H.filter((me) => !me.isInline || fn(me.id, ce)), ze = [...le, ...d], B = {
1700
+ const { annotations: V = [] } = a || {}, z = k.length ? [...V, ...k] : void 0, ce = Er(Je.current?.getMarkdown() ?? j), le = H.filter((me) => !me.isInline || hn(me.id, ce)), ze = [...le, ...d], B = {
1705
1701
  ...a,
1706
1702
  annotations: z,
1707
1703
  // could be undefined
@@ -1715,9 +1711,9 @@ ${te}` : te), Je.current?.focus();
1715
1711
  const me = j;
1716
1712
  de(""), ee([]);
1717
1713
  try {
1718
- await l(ce, ze, B), O.forEach((ie) => He?.(ie)), u && L?.setEditPreview(null), Ie([]), !u && q && L?.unlink(), u || Ee(null);
1714
+ await l(ce, ze, B), O.forEach((ie) => He?.(ie)), u && L?.setEditPreview(null), Ne([]), !u && q && L?.unlink(), u || Ee(null);
1719
1715
  } catch {
1720
- de(me), ee(le), Ie(Ne);
1716
+ de(me), ee(le), Ne(Se);
1721
1717
  return;
1722
1718
  }
1723
1719
  }
@@ -1726,11 +1722,11 @@ ${te}` : te), Je.current?.focus();
1726
1722
  } finally {
1727
1723
  Re([]), he(!1);
1728
1724
  }
1729
- }, Xt = [
1725
+ }, Kt = [
1730
1726
  ...fe.filter((d) => !et.includes(d.id)),
1731
1727
  ...(H || []).filter((d) => !d.isAnnotationLayer && !d.isInline),
1732
1728
  ...be
1733
- ].sort((d, k) => d.order - k.order), fo = Xt.length > 3, Zt = (d) => h ? E ? "You do not have permission to comment." : "Commenting is disabled across multiple projects." : E || !d ? "Leave a comment" : "Comment, or type / to add mentions, checklists, code and more...", en = async (d) => {
1729
+ ].sort((d, k) => d.order - k.order), fo = Kt.length > 3, Xt = (d) => h ? E ? "You do not have permission to comment." : "Commenting is disabled across multiple projects." : E || !d ? "Leave a comment" : "Comment, or type / to add mentions, checklists, code and more...", Zt = async (d) => {
1734
1730
  if (m)
1735
1731
  try {
1736
1732
  (pt || H.length > 0 || fe.length > 0) && await kt(), m(d);
@@ -1739,37 +1735,37 @@ ${te}` : te), Je.current?.focus();
1739
1735
  }
1740
1736
  }, yo = s && m && !h && /* @__PURE__ */ x(Vo, { className: ne("version-review-buttons", { guest: E }), children: [
1741
1737
  /* @__PURE__ */ c(
1742
- an,
1738
+ on,
1743
1739
  {
1744
1740
  icon: "check",
1745
1741
  variant: "tertiary",
1746
1742
  "data-tooltip": "Approve",
1747
- onClick: () => en(Se.APPROVE),
1743
+ onClick: () => Zt(Ie.APPROVE),
1748
1744
  children: /* @__PURE__ */ c("span", { className: "label", children: "Approve" })
1749
1745
  }
1750
1746
  ),
1751
1747
  /* @__PURE__ */ c(
1752
- an,
1748
+ on,
1753
1749
  {
1754
1750
  icon: "refresh",
1755
1751
  variant: "danger",
1756
1752
  "data-tooltip": "Request changes",
1757
- onClick: () => en(Se.REQUEST_CHANGES),
1753
+ onClick: () => Zt(Ie.REQUEST_CHANGES),
1758
1754
  children: /* @__PURE__ */ c("span", { className: "label", children: "Request changes" })
1759
1755
  }
1760
1756
  )
1761
1757
  ] }), At = !E && /* @__PURE__ */ c(
1762
- Yr,
1758
+ Jr,
1763
1759
  {
1764
1760
  value: _e,
1765
- categories: Ut,
1761
+ categories: jt,
1766
1762
  onChange: (d) => {
1767
1763
  mt(d), requestAnimationFrame(() => Je.current?.focus());
1768
1764
  },
1769
1765
  isCompact: u,
1770
1766
  hasPowerpack: X,
1771
1767
  onPowerFeature: Q,
1772
- isHidden: Jr(Ut, { isGuest: E, isAdmin: oe })
1768
+ isHidden: Kr(jt, { isGuest: E, isAdmin: oe })
1773
1769
  }
1774
1770
  ), vo = /* @__PURE__ */ x(Te, { children: [
1775
1771
  /* @__PURE__ */ c(
@@ -1780,18 +1776,18 @@ ${te}` : te), Je.current?.focus();
1780
1776
  className: "md-toolbar-button",
1781
1777
  "data-tooltip": "Attach files",
1782
1778
  onMouseDown: (d) => d.preventDefault(),
1783
- onClick: () => Gt.current?.click()
1779
+ onClick: () => Bt.current?.click()
1784
1780
  }
1785
1781
  ),
1786
1782
  /* @__PURE__ */ c(
1787
1783
  "input",
1788
1784
  {
1789
- ref: Gt,
1785
+ ref: Bt,
1790
1786
  type: "file",
1791
1787
  multiple: !0,
1792
1788
  hidden: !0,
1793
1789
  onChange: (d) => {
1794
- Jt(Array.from(d.target.files || [])), d.target.value = "";
1790
+ Yt(Array.from(d.target.files || [])), d.target.value = "";
1795
1791
  }
1796
1792
  }
1797
1793
  )
@@ -1799,7 +1795,7 @@ ${te}` : te), Je.current?.focus();
1799
1795
  return /* @__PURE__ */ c(Te, { children: /* @__PURE__ */ x(
1800
1796
  jo,
1801
1797
  {
1802
- ref: Ht,
1798
+ ref: Gt,
1803
1799
  className: ne("comment-container", "md-mention-anchor", { isOpen: y, isEditing: u }),
1804
1800
  onDragOver: mo,
1805
1801
  onDragLeave: () => ue(!1),
@@ -1810,7 +1806,7 @@ ${te}` : te), Je.current?.focus();
1810
1806
  k && O && no && !u || d.stopPropagation();
1811
1807
  },
1812
1808
  children: [
1813
- s && i && /* @__PURE__ */ c(ai, { lastOwnVersionReview: i }),
1809
+ s && i && /* @__PURE__ */ c(ri, { lastOwnVersionReview: i }),
1814
1810
  /* @__PURE__ */ x(
1815
1811
  Uo,
1816
1812
  {
@@ -1825,14 +1821,14 @@ ${te}` : te), Je.current?.focus();
1825
1821
  category: !!_e && !E
1826
1822
  }),
1827
1823
  onClick: so,
1828
- $categoryPrimary: zt?.color,
1829
- $categoryTertiary: Bt.primary,
1830
- $categorySecondary: Bt.secondary,
1824
+ $categoryPrimary: Ut?.color,
1825
+ $categoryTertiary: zt.primary,
1826
+ $categorySecondary: zt.secondary,
1831
1827
  children: [
1832
1828
  y && /* @__PURE__ */ c(
1833
- _n,
1829
+ Rn,
1834
1830
  {
1835
- files: Xt,
1831
+ files: Kt,
1836
1832
  isCompact: fo || u,
1837
1833
  onRemove: co,
1838
1834
  projectName: f,
@@ -1861,14 +1857,14 @@ ${te}` : te), Je.current?.focus();
1861
1857
  className: "comment-editor",
1862
1858
  value: j,
1863
1859
  onChange: de,
1864
- placeholder: Zt(!0),
1860
+ placeholder: Xt(!0),
1865
1861
  mentions: oo,
1866
1862
  mentionPlacement: u ? "inline" : "top",
1867
1863
  onMentionClick: ao,
1868
1864
  onMentionHover: ro,
1869
1865
  onSubmit: kt,
1870
- onEscape: Yt,
1871
- onFiles: Jt,
1866
+ onEscape: Qt,
1867
+ onFiles: Yt,
1872
1868
  onUploadMedia: lo,
1873
1869
  commands: ut,
1874
1870
  toolbar: !u,
@@ -1884,10 +1880,10 @@ ${te}` : te), Je.current?.focus();
1884
1880
  maxHeight: 259
1885
1881
  }
1886
1882
  )
1887
- ] }) : /* @__PURE__ */ c(Ho, { children: Zt() }),
1883
+ ] }) : /* @__PURE__ */ c(Ho, { children: Xt() }),
1888
1884
  /* @__PURE__ */ x(qo, { children: [
1889
1885
  (!E || Pe) && /* @__PURE__ */ x(Wo, { children: [
1890
- !E && ii.map(({ trigger: d, icon: k, tooltip: O }) => /* @__PURE__ */ c(
1886
+ !E && ci.map(({ trigger: d, icon: k, tooltip: O }) => /* @__PURE__ */ c(
1891
1887
  st,
1892
1888
  {
1893
1889
  icon: k,
@@ -1925,7 +1921,7 @@ ${te}` : te), Je.current?.focus();
1925
1921
  onFocus: (d) => {
1926
1922
  Fe.current = q, d.currentTarget.select();
1927
1923
  },
1928
- onChange: (d) => jt(d.target.value),
1924
+ onChange: (d) => Vt(d.target.value),
1929
1925
  onBlur: dt,
1930
1926
  style: { width: wo },
1931
1927
  onKeyDown: (d) => {
@@ -1948,7 +1944,7 @@ ${te}` : te), Je.current?.focus();
1948
1944
  )
1949
1945
  ] }),
1950
1946
  /* @__PURE__ */ x(Xo, { children: [
1951
- u && /* @__PURE__ */ c(st, { variant: "text", onClick: Yt, children: "Cancel" }),
1947
+ u && /* @__PURE__ */ c(st, { variant: "text", onClick: Qt, children: "Cancel" }),
1952
1948
  /* @__PURE__ */ c(
1953
1949
  Po,
1954
1950
  {
@@ -1971,12 +1967,12 @@ ${te}` : te), Je.current?.focus();
1971
1967
  ]
1972
1968
  }
1973
1969
  ) });
1974
- }, si = (e, t, o) => e && Ot`
1970
+ }, li = (e, t, o) => e && Lt`
1975
1971
  --reaction-border-color: ${e};
1976
1972
  --reaction-active-bg: ${t};
1977
1973
  --reaction-hover-bg: ${t};
1978
1974
  --reaction-active-border: ${e};
1979
- `, ci = F.div`
1975
+ `, di = F.div`
1980
1976
  /* VARS */
1981
1977
  --reaction-border-color: var(--md-sys-color-outline-variant);
1982
1978
  --reaction-hover-bg: var(--md-sys-color-surface-container-high-hover);
@@ -1989,7 +1985,7 @@ ${te}` : te), Je.current?.focus();
1989
1985
  --reaction-compact-active-hover-bg: var(--md-sys-color-primary-container-hover);
1990
1986
 
1991
1987
  /* CATEGORY */
1992
- ${({ $categoryPrimary: e, $categorySecondary: t, $categoryTertiary: o }) => si(e, t)}
1988
+ ${({ $categoryPrimary: e, $categorySecondary: t, $categoryTertiary: o }) => li(e, t)}
1993
1989
 
1994
1990
  display: flex;
1995
1991
  justify-content: center;
@@ -2040,23 +2036,23 @@ ${te}` : te), Je.current?.focus();
2040
2036
  position: relative;
2041
2037
  height: 19px;
2042
2038
  }
2043
- `, li = F.div`
2039
+ `, ui = F.div`
2044
2040
  outline: 'solid 1px red';
2045
2041
  display: flex;
2046
2042
  gap: 8px;
2047
- `, di = F.div`
2043
+ `, mi = F.div`
2048
2044
  position: fixed;
2049
2045
  top: 0;
2050
2046
  bottom: 0;
2051
2047
  left: 0;
2052
2048
  right: 0;
2053
2049
  z-index: 55;
2054
- `, ui = F.div`
2050
+ `, pi = F.div`
2055
2051
  /* VARS */
2056
2052
  --panel-bg: var(--md-sys-color-surface-container-high);
2057
2053
 
2058
2054
  /* CATEGORY */
2059
- ${({ $categoryPrimary: e, $categorySecondary: t }) => t && Ot`
2055
+ ${({ $categoryPrimary: e, $categorySecondary: t }) => t && Lt`
2060
2056
  --panel-bg: ${t};
2061
2057
  `}
2062
2058
 
@@ -2072,14 +2068,14 @@ ${te}` : te), Je.current?.focus();
2072
2068
  padding: 4px;
2073
2069
  border-radius: 4px;
2074
2070
  box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.15);
2075
- `, mi = F.div`
2071
+ `, gi = F.div`
2076
2072
  /* VARS */
2077
2073
  --opener-bg: var(--md-sys-color-surface-container-high);
2078
2074
  --opener-hover-bg: var(--md-sys-color-surface-container-high-hover);
2079
2075
  --opener-color: var(--md-sys-color-outline);
2080
2076
 
2081
2077
  /* CATEGORY */
2082
- ${({ $categoryPrimary: e, $categorySecondary: t }) => t && Ot`
2078
+ ${({ $categoryPrimary: e, $categorySecondary: t }) => t && Lt`
2083
2079
  --opener-bg: ${t};
2084
2080
  --opener-hover-bg: ${t};
2085
2081
  --opener-color: ${e};
@@ -2102,30 +2098,30 @@ ${te}` : te), Je.current?.focus();
2102
2098
  filter: ${({ $categoryPrimary: e }) => e ? "brightness(1.2)" : "none"};
2103
2099
  }
2104
2100
  }
2105
- `, pi = F.div`
2101
+ `, hi = F.div`
2106
2102
  display: flex;
2107
2103
  gap: 8px;
2108
2104
  position: relative;
2109
- `, gi = [
2105
+ `, fi = [
2110
2106
  { key: "thumb_up", value: "👍" },
2111
2107
  { key: "thumb_down", value: "👎" },
2112
2108
  { key: "heart_plus", value: "❤" },
2113
2109
  { key: "celebration", value: "🎉" },
2114
2110
  { key: "notes", value: "📝" }
2115
- ], hi = {
2111
+ ], yi = {
2116
2112
  thumb_up: "👍",
2117
2113
  thumb_down: "👎",
2118
2114
  heart_plus: "❤️",
2119
2115
  celebration: "🎉",
2120
2116
  notes: "📝"
2121
- }, Mt = [
2117
+ }, Et = [
2122
2118
  "thumb_up",
2123
2119
  "thumb_down",
2124
2120
  "heart_plus",
2125
2121
  "celebration",
2126
2122
  "notes"
2127
- ], fi = (e) => [...e].sort(
2128
- (o, n) => Mt.indexOf(o.type) - Mt.indexOf(n.type)
2123
+ ], vi = (e) => [...e].sort(
2124
+ (o, n) => Et.indexOf(o.type) - Et.indexOf(n.type)
2129
2125
  ), qn = ({
2130
2126
  reaction: e,
2131
2127
  variant: t = "standard",
@@ -2136,7 +2132,7 @@ ${te}` : te), Je.current?.focus();
2136
2132
  }) => {
2137
2133
  const s = e.users?.join(", ") || void 0;
2138
2134
  return /* @__PURE__ */ x(
2139
- ci,
2135
+ di,
2140
2136
  {
2141
2137
  className: ne(t, { active: e.isActive }),
2142
2138
  onClick: o,
@@ -2145,18 +2141,18 @@ ${te}` : te), Je.current?.focus();
2145
2141
  $categorySecondary: a,
2146
2142
  $categoryTertiary: r,
2147
2143
  children: [
2148
- /* @__PURE__ */ c("span", { className: "emoji", children: hi[e.type] }),
2144
+ /* @__PURE__ */ c("span", { className: "emoji", children: yi[e.type] }),
2149
2145
  e.users && /* @__PURE__ */ c("span", { children: e.users.length })
2150
2146
  ]
2151
2147
  }
2152
2148
  );
2153
- }, yi = ({
2149
+ }, bi = ({
2154
2150
  reactions: e,
2155
2151
  changeHandler: t,
2156
2152
  categoryPrimary: o,
2157
2153
  categorySecondary: n,
2158
2154
  categoryTertiary: a
2159
- }) => /* @__PURE__ */ c(li, { children: e.map((r) => /* @__PURE__ */ c(
2155
+ }) => /* @__PURE__ */ c(ui, { children: e.map((r) => /* @__PURE__ */ c(
2160
2156
  qn,
2161
2157
  {
2162
2158
  reaction: r,
@@ -2169,7 +2165,7 @@ ${te}` : te), Je.current?.focus();
2169
2165
  categoryTertiary: a
2170
2166
  },
2171
2167
  r.type
2172
- )) }), vi = ({
2168
+ )) }), wi = ({
2173
2169
  reactions: e,
2174
2170
  changeHandler: t,
2175
2171
  categoryPrimary: o,
@@ -2178,7 +2174,7 @@ ${te}` : te), Je.current?.focus();
2178
2174
  }) => {
2179
2175
  const [r, s] = $(!1), i = e.filter((l) => l.isActive).map((l) => l.type);
2180
2176
  return /* @__PURE__ */ x(
2181
- mi,
2177
+ gi,
2182
2178
  {
2183
2179
  $categoryPrimary: o,
2184
2180
  $categorySecondary: n,
@@ -2193,14 +2189,14 @@ ${te}` : te), Je.current?.focus();
2193
2189
  }
2194
2190
  ),
2195
2191
  r && /* @__PURE__ */ x(Te, { children: [
2196
- /* @__PURE__ */ c(di, { onClick: () => s(!1) }),
2192
+ /* @__PURE__ */ c(mi, { onClick: () => s(!1) }),
2197
2193
  /* @__PURE__ */ c(
2198
- ui,
2194
+ pi,
2199
2195
  {
2200
2196
  $categoryPrimary: o,
2201
2197
  $categorySecondary: n,
2202
2198
  $categoryTertiary: a,
2203
- children: gi.map((l) => {
2199
+ children: fi.map((l) => {
2204
2200
  const m = {
2205
2201
  type: l.key,
2206
2202
  isActive: i.includes(l.key)
@@ -2226,7 +2222,7 @@ ${te}` : te), Je.current?.focus();
2226
2222
  ]
2227
2223
  }
2228
2224
  );
2229
- }, bi = ({
2225
+ }, xi = ({
2230
2226
  reactions: e,
2231
2227
  changeHandler: t,
2232
2228
  readOnly: o,
@@ -2236,27 +2232,27 @@ ${te}` : te), Je.current?.focus();
2236
2232
  categoryTertiary: s
2237
2233
  }) => {
2238
2234
  const i = n ? { categoryPrimary: a, categorySecondary: r, categoryTertiary: s } : {};
2239
- return /* @__PURE__ */ x(pi, { children: [
2235
+ return /* @__PURE__ */ x(hi, { children: [
2240
2236
  !o && /* @__PURE__ */ c(
2241
- vi,
2237
+ wi,
2242
2238
  {
2243
2239
  reactions: e,
2244
2240
  changeHandler: t,
2245
2241
  ...i
2246
2242
  }
2247
2243
  ),
2248
- /* @__PURE__ */ c(yi, { reactions: e, changeHandler: t, ...i })
2244
+ /* @__PURE__ */ c(bi, { reactions: e, changeHandler: t, ...i })
2249
2245
  ] });
2250
- }, wi = (e = "") => (e.match(/\((.*?)\)/g) || []).flatMap((o) => {
2246
+ }, ki = (e = "") => (e.match(/\((.*?)\)/g) || []).flatMap((o) => {
2251
2247
  if (o.includes("http")) return [];
2252
2248
  const n = o.match(/\(([^)]+)\)/), a = n ? n[1].split(":") : [];
2253
2249
  return { type: a[0], id: a[1] };
2254
- }), xi = (e) => e.replace(/@(?=@|\[)/g, ""), ki = {
2250
+ }), Ai = (e) => e.replace(/@(?=@|\[)/g, ""), Fi = {
2255
2251
  "&": "&amp;",
2256
2252
  "<": "&lt;",
2257
2253
  ">": "&gt;",
2258
2254
  '"': "&quot;"
2259
- }, Ct = (e) => e.replace(/[&<>"]/g, (t) => ki[t]), Ai = (e) => e.replaceAll(" ", "%20"), Fi = (e, t) => {
2255
+ }, Ct = (e) => e.replace(/[&<>"]/g, (t) => Fi[t]), Ci = (e) => e.replaceAll(" ", "%20"), Ti = (e, t) => {
2260
2256
  const o = t.cloneContents();
2261
2257
  if (!o.querySelector("[data-mention-value]")) return null;
2262
2258
  let n = "", a = "";
@@ -2275,7 +2271,7 @@ ${te}` : te), Je.current?.focus();
2275
2271
  if (l) {
2276
2272
  const m = i.getAttribute("data-mention-label") || (i.textContent || "").trim();
2277
2273
  if (m) {
2278
- const p = Ai(l);
2274
+ const p = Ci(l);
2279
2275
  n += `[${m}](${p})`, a += `<a href="@${Ct(p)}">@${Ct(m)}</a>`;
2280
2276
  }
2281
2277
  return;
@@ -2294,15 +2290,15 @@ ${te}` : te), Je.current?.focus();
2294
2290
  s.childNodes.forEach(r);
2295
2291
  };
2296
2292
  return r(o), n ? { text: n, html: a } : null;
2297
- }, Ci = ({ children: e }) => {
2298
- const t = nn.Children.map(e, (n) => {
2299
- if (!nn.isValidElement(n)) return n;
2293
+ }, Di = ({ children: e }) => {
2294
+ const t = tn.Children.map(e, (n) => {
2295
+ if (!tn.isValidElement(n)) return n;
2300
2296
  const a = n.props.children;
2301
2297
  return typeof a != "string" ? n : {
2302
2298
  ...n,
2303
2299
  props: {
2304
2300
  ...n.props,
2305
- children: xi(a)
2301
+ children: Ai(a)
2306
2302
  }
2307
2303
  };
2308
2304
  }), o = Ke((n) => {
@@ -2310,21 +2306,21 @@ ${te}` : te), Je.current?.focus();
2310
2306
  if (!a || a.rangeCount === 0 || a.isCollapsed) return;
2311
2307
  const r = a.getRangeAt(0), s = n.currentTarget;
2312
2308
  if (!s.contains(r.startContainer) || !s.contains(r.endContainer)) return;
2313
- const i = Fi(s, r);
2309
+ const i = Ti(s, r);
2314
2310
  i && (n.preventDefault(), n.clipboardData.setData("text/plain", i.text), n.clipboardData.setData("text/html", i.html));
2315
2311
  }, []);
2316
2312
  return /* @__PURE__ */ c("div", { className: "comment-text", onCopy: o, children: t });
2317
- }, Ti = (e = [], t) => {
2313
+ }, Si = (e = [], t) => {
2318
2314
  let o = {};
2319
2315
  return e.forEach((n) => {
2320
2316
  const a = n.reaction;
2321
- Mt.includes(a) && (o[a] === void 0 && (o[a] = { type: a, isActive: !1, users: [] }), t == n.userName && (o[a].isActive = !0), o[a].users?.push(n.fullName || n.userName));
2322
- }), fi(Object.values(o));
2323
- }, Di = F.div`
2317
+ Et.includes(a) && (o[a] === void 0 && (o[a] = { type: a, isActive: !1, users: [] }), t == n.userName && (o[a].isActive = !0), o[a].users?.push(n.fullName || n.userName));
2318
+ }), vi(Object.values(o));
2319
+ }, Ni = F.div`
2324
2320
  display: flex;
2325
2321
  align-items: center;
2326
2322
  gap: var(--base-gap-small);
2327
- `, Ni = F.span`
2323
+ `, Ii = F.span`
2328
2324
  border-radius: var(--border-radius-m);
2329
2325
  padding: 2px 6px;
2330
2326
  margin: 0 2px;
@@ -2341,19 +2337,19 @@ ${te}` : te), Je.current?.focus();
2341
2337
  font-size: 16px;
2342
2338
  font-variation-settings: 'FILL' 1;
2343
2339
  }
2344
- `, Ii = ({ name: e, statuses: t, children: o }) => {
2345
- const n = Si(e, t);
2346
- return /* @__PURE__ */ x(Di, { children: [
2340
+ `, Ei = ({ name: e, statuses: t, children: o }) => {
2341
+ const n = Mi(e, t);
2342
+ return /* @__PURE__ */ x(Ni, { children: [
2347
2343
  o,
2348
- /* @__PURE__ */ x(Ni, { $color: $t(n.color), style: { backgroundColor: n.color }, children: [
2344
+ /* @__PURE__ */ x(Ii, { $color: Rt(n.color), style: { backgroundColor: n.color }, children: [
2349
2345
  n.icon && /* @__PURE__ */ c(se, { icon: n.icon }),
2350
2346
  e
2351
2347
  ] })
2352
2348
  ] });
2353
- }, Si = (e, t) => {
2349
+ }, Mi = (e, t) => {
2354
2350
  const o = { name: e, color: "var(--md-sys-color-primary)", icon: void 0 };
2355
2351
  return t.find((n) => n.name === e) || o;
2356
- }, Ei = F.header`
2352
+ }, Pi = F.header`
2357
2353
  display: flex;
2358
2354
  align-items: flex-end;
2359
2355
  gap: var(--base-gap-small);
@@ -2365,7 +2361,7 @@ ${te}` : te), Je.current?.focus();
2365
2361
  margin-left: 4px;
2366
2362
  font-weight: 800;
2367
2363
  }
2368
- `, Mi = F.div`
2364
+ `, _i = F.div`
2369
2365
  display: flex;
2370
2366
  gap: var(--base-gap-small);
2371
2367
  align-items: center;
@@ -2394,7 +2390,7 @@ const Tt = F.span`
2394
2390
  strong {
2395
2391
  font-weight: 800;
2396
2392
  }
2397
- `, Pi = F.li`
2393
+ `, Ri = F.li`
2398
2394
  list-style: none;
2399
2395
  margin: var(--padding-s) var(--padding-m);
2400
2396
  padding: var(--padding-s) var(--padding-m) var(--padding-s) 0;
@@ -2421,7 +2417,7 @@ const Tt = F.span`
2421
2417
  &.request_changes .date, {
2422
2418
  color: var(--md-sys-color-error);
2423
2419
  }
2424
- `, _i = F.div`
2420
+ `, $i = F.div`
2425
2421
  display: flex;
2426
2422
  flex-wrap: nowrap;
2427
2423
  align-items: center;
@@ -2440,7 +2436,7 @@ const Tt = F.span`
2440
2436
  color: var(--md-sys-color-outline);
2441
2437
  opacity: 0.5;
2442
2438
  }
2443
- `, Ri = F.span`
2439
+ `, Li = F.span`
2444
2440
  white-space: nowrap;
2445
2441
  font-size: 12px;
2446
2442
  text-overflow: ellipsis;
@@ -2451,16 +2447,16 @@ const Tt = F.span`
2451
2447
  font-size: 12px;
2452
2448
  font-weight: 800;
2453
2449
  }
2454
- `, $i = "#c5c5c5";
2450
+ `, Oi = "#c5c5c5";
2455
2451
  function Wn(e) {
2456
- const { categories: t } = Le(), { categoryData: o, categoryNotFound: n } = I(() => {
2452
+ const { categories: t } = Le(), { categoryData: o, categoryNotFound: n } = N(() => {
2457
2453
  let a = !1;
2458
2454
  if (e) {
2459
2455
  const r = t.find((s) => s.name === e);
2460
2456
  return r || (a = !0), {
2461
2457
  categoryData: r || {
2462
2458
  name: e,
2463
- color: $i
2459
+ color: Oi
2464
2460
  },
2465
2461
  categoryNotFound: a
2466
2462
  };
@@ -2472,21 +2468,21 @@ function Wn(e) {
2472
2468
  }, [e, t]);
2473
2469
  return { categoryData: o, categoryNotFound: n };
2474
2470
  }
2475
- const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (e) => !e || !e.name ? Vi : e.name === Li && !e.label ? Oi : e.label ? e.label : e.name, Pt = "anonymous.guest", ji = ({ isGuest: e, activity: t }) => {
2476
- const { authorName: o, authorFullName: n, createdAt: a, activityData: r } = t || {}, s = I(
2471
+ const Vi = "anonymous.guest", ji = "Anonymous User", Ui = "unknown.user", Qn = (e) => !e || !e.name ? Ui : e.name === Vi && !e.label ? ji : e.label ? e.label : e.name, Mt = "anonymous.guest", zi = ({ isGuest: e, activity: t }) => {
2472
+ const { authorName: o, authorFullName: n, createdAt: a, activityData: r } = t || {}, s = N(
2477
2473
  () => [
2478
2474
  Qn({ name: o, label: n }),
2479
- zn(r?.feedback ?? Se.APPROVE)
2475
+ Bn(r?.feedback ?? Ie.APPROVE)
2480
2476
  ].join(" "),
2481
2477
  [n, o, r?.feedback, a]
2482
- ), { categoryData: i, categoryNotFound: l } = Wn(r?.category), m = I(() => {
2483
- if (!o?.startsWith(Pt))
2478
+ ), { categoryData: i, categoryNotFound: l } = Wn(r?.category), m = N(() => {
2479
+ if (!o?.startsWith(Mt))
2484
2480
  return `/api/users/${o}/avatar`;
2485
2481
  }, [o]);
2486
2482
  if (r?.feedback)
2487
- return /* @__PURE__ */ c(Pi, { className: kn(r.feedback), children: /* @__PURE__ */ x(_i, { children: [
2483
+ return /* @__PURE__ */ c(Ri, { className: xn(r.feedback), children: /* @__PURE__ */ x($i, { children: [
2488
2484
  o && /* @__PURE__ */ c(
2489
- Dn,
2485
+ Tn,
2490
2486
  {
2491
2487
  name: o,
2492
2488
  fullName: n,
@@ -2494,7 +2490,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2494
2490
  size: 22
2495
2491
  }
2496
2492
  ),
2497
- /* @__PURE__ */ c(se, { icon: Bn(r.feedback) }),
2493
+ /* @__PURE__ */ c(se, { icon: Gn(r.feedback) }),
2498
2494
  i && !e && /* @__PURE__ */ c(
2499
2495
  it,
2500
2496
  {
@@ -2505,7 +2501,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2505
2501
  "data-tooltip-delay": 0
2506
2502
  }
2507
2503
  ),
2508
- /* @__PURE__ */ c(Ri, { children: s }),
2504
+ /* @__PURE__ */ c(Li, { children: s }),
2509
2505
  /* @__PURE__ */ c(lt, { date: a, exactTooltip: !0 })
2510
2506
  ] }) });
2511
2507
  }, Yn = ({
@@ -2520,14 +2516,14 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2520
2516
  onReferenceClick: l,
2521
2517
  onReferenceTooltip: m
2522
2518
  }) => {
2523
- const { referenceType: p, origin: g, activityType: u, versions: h, activityId: b } = a, y = p === "mention", D = u === "version.publish", C = h && h?.length > 1 ? "published versions" : "published a version", f = y ? "mentioned" : "commented", w = y ? ` ${i} on` : "on", A = e?.startsWith("guest.") || e?.startsWith(Pt), S = (a.author?.deleted || !a.author?.active) && !A, P = I(() => {
2524
- if (!e?.startsWith(Pt))
2519
+ const { referenceType: p, origin: g, activityType: u, versions: h, activityId: b } = a, y = p === "mention", D = u === "version.publish", C = h && h?.length > 1 ? "published versions" : "published a version", f = y ? "mentioned" : "commented", w = y ? ` ${i} on` : "on", A = e?.startsWith("guest.") || e?.startsWith(Mt), I = (a.author?.deleted || !a.author?.active) && !A, P = N(() => {
2520
+ if (!e?.startsWith(Mt))
2525
2521
  return `/api/users/${e}/avatar`;
2526
2522
  }, [e]);
2527
- return /* @__PURE__ */ x(Ei, { children: [
2528
- /* @__PURE__ */ x(Mi, { children: [
2529
- e && !S && /* @__PURE__ */ c(Dn, { name: e, fullName: t, src: P, size: 22 }),
2530
- S && /* @__PURE__ */ c(se, { icon: "account_circle" }),
2523
+ return /* @__PURE__ */ x(Pi, { children: [
2524
+ /* @__PURE__ */ x(_i, { children: [
2525
+ e && !I && /* @__PURE__ */ c(Tn, { name: e, fullName: t, src: P, size: 22 }),
2526
+ I && /* @__PURE__ */ c(se, { icon: "account_circle" }),
2531
2527
  /* @__PURE__ */ c("h5", { children: t || a.activityData?.author || "Unknown" }),
2532
2528
  n && /* @__PURE__ */ x(Te, { children: [
2533
2529
  /* @__PURE__ */ c(Tt, { children: /* @__PURE__ */ c("strong", { children: f }) }),
@@ -2560,7 +2556,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2560
2556
  ] }),
2561
2557
  /* @__PURE__ */ c(lt, { date: o })
2562
2558
  ] });
2563
- }, Ui = ({ flags: e }) => e.length ? /* @__PURE__ */ c(oa, { children: e.map(({ id: t, label: o, icon: n, tooltip: a, onClick: r, disabled: s, testId: i }) => /* @__PURE__ */ x(
2559
+ }, Bi = ({ flags: e }) => e.length ? /* @__PURE__ */ c(oa, { children: e.map(({ id: t, label: o, icon: n, tooltip: a, onClick: r, disabled: s, testId: i }) => /* @__PURE__ */ x(
2564
2560
  aa,
2565
2561
  {
2566
2562
  as: r ? "button" : "span",
@@ -2576,7 +2572,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2576
2572
  ]
2577
2573
  },
2578
2574
  t
2579
- )) }) : null, zi = ({
2575
+ )) }) : null, Gi = ({
2580
2576
  category: e,
2581
2577
  categoryNotFound: t,
2582
2578
  frameLink: o,
@@ -2603,7 +2599,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2603
2599
  testId: "comment-frame-link-chip"
2604
2600
  }
2605
2601
  ] : []
2606
- ], Bi = ({
2602
+ ], Hi = ({
2607
2603
  onDelete: e,
2608
2604
  onEdit: t,
2609
2605
  onCopyText: o,
@@ -2635,15 +2631,15 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2635
2631
  id: "copy-link",
2636
2632
  label: "Copy link",
2637
2633
  icon: "link",
2638
- onClick: m(() => Mn(ra(s, r, i)))
2634
+ onClick: m(() => Pn(ra(s, r, i)))
2639
2635
  }), e && l.push({
2640
2636
  id: "delete",
2641
2637
  label: "Delete",
2642
2638
  icon: "delete",
2643
2639
  onClick: m(e),
2644
2640
  danger: !0
2645
- }), /* @__PURE__ */ c(Za, { menu: l });
2646
- }, Gi = ({
2641
+ }), /* @__PURE__ */ c(er, { menu: l });
2642
+ }, qi = ({
2647
2643
  activity: e = {},
2648
2644
  annotationFrameStart: t,
2649
2645
  onCheckChange: o,
@@ -2668,8 +2664,8 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2668
2664
  editingId: f,
2669
2665
  setEditingId: w,
2670
2666
  isGuest: A,
2671
- userTeamNames: S
2672
- } = Le(), P = pe(null), { toggleMenuOpen: _, menuOpen: E } = Ba(), { categoryData: N, categoryNotFound: G } = Wn(e?.activityData?.category), X = Rn(N?.color);
2667
+ userTeamNames: I
2668
+ } = Le(), P = pe(null), { toggleMenuOpen: _, menuOpen: E } = Ga(), { categoryData: S, categoryNotFound: G } = Wn(e?.activityData?.category), X = $n(S?.color);
2673
2669
  let {
2674
2670
  body: Q,
2675
2671
  authorName: Z,
@@ -2684,7 +2680,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2684
2680
  origin: ee
2685
2681
  } = e;
2686
2682
  Z || (Z = j?.name || ""), Y = Qn({ name: Z, label: Y });
2687
- const Oe = Ao(), De = `activity-comment-menu-${J}-${Oe}`, Ve = E === De, { onGoToFrame: be, setHighlightedActivities: ge, user: Ge, commentFrameLink: ue } = Be(), xe = !!Ge?.data?.isAdmin, he = de || xe, Ne = de || xe, Ie = () => {
2683
+ const Oe = Ao(), De = `activity-comment-menu-${J}-${Oe}`, Ve = E === De, { onGoToFrame: be, setHighlightedActivities: ge, user: Ge, commentFrameLink: ue } = Be(), xe = !!Ge?.data?.isAdmin, he = de || xe, Se = de || xe, Ne = () => {
2688
2684
  w(J);
2689
2685
  }, et = () => {
2690
2686
  w(null);
@@ -2693,18 +2689,18 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2693
2689
  }, fe = f === J, He = ({ activityId: v, url: K }) => {
2694
2690
  document.getElementById(v) ? ge([v]) : window.open(K, "_blank", "noreferrer");
2695
2691
  }, qe = oe !== "origin" || u, re = async () => {
2696
- const v = wi(Q);
2692
+ const v = ki(Q);
2697
2693
  qe && ee && v.push({ id: ee.id, type: ee.type }), n && await n(J, ae, v);
2698
2694
  }, tt = () => {
2699
- cr({
2695
+ lr({
2700
2696
  title: "Delete comment",
2701
2697
  message: "Are you sure you want to delete this comment?",
2702
2698
  accept: async () => {
2703
2699
  await re();
2704
2700
  }
2705
2701
  });
2706
- }, [, je] = En(), We = I(
2707
- () => Ti(e.reactions, D),
2702
+ }, [, je] = Mn(), We = N(
2703
+ () => Si(e.reactions, D),
2708
2704
  [[...e.reactions || []]]
2709
2705
  ), Ee = (v) => {
2710
2706
  v.isActive ? M({
@@ -2727,13 +2723,13 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2727
2723
  v.annotation && (be?.(v.annotation.range[0]), ge([J]));
2728
2724
  },
2729
2725
  [be]
2730
- ), ke = I(() => Lt(Q), [Q]), Me = I(
2726
+ ), ke = N(() => $t(Q), [Q]), Me = N(
2731
2727
  () => (H || []).filter((v) => !ke.has(v.id)),
2732
2728
  [H, ke]
2733
2729
  ), q = (v) => {
2734
2730
  const K = ga(v), we = (H || []).filter((Fe) => vt(Fe.mime, Fe.ext)), Ae = we.findIndex((Fe) => Fe.id === K);
2735
2731
  Ae !== -1 && g?.({ files: we, index: Ae, activityId: J });
2736
- }, Pe = I(() => Sn(Q || ""), [Q]), T = I(() => yt(e), [e]), R = ue?.formatFrame ?? ((v) => Gn(v, t)), U = () => {
2732
+ }, Pe = N(() => Nn(Q || ""), [Q]), T = N(() => yt(e), [e]), R = ue?.formatFrame ?? ((v) => En(v, t)), U = () => {
2737
2733
  T && (ue ? ue.goTo(T) : be?.(T.startFrame), ge([J]));
2738
2734
  };
2739
2735
  return /* @__PURE__ */ x(Te, { children: [
@@ -2744,11 +2740,11 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2744
2740
  isOwner: de,
2745
2741
  isEditing: fe,
2746
2742
  isHighlighted: h,
2747
- category: !!N && !A,
2743
+ category: !!S && !A,
2748
2744
  menuOpen: Ve
2749
2745
  }),
2750
2746
  id: J,
2751
- $categoryPrimary: N?.color,
2747
+ $categoryPrimary: S?.color,
2752
2748
  $categoryTertiary: X.primary,
2753
2749
  $categorySecondary: X.secondary,
2754
2750
  children: [
@@ -2769,9 +2765,9 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2769
2765
  ),
2770
2766
  /* @__PURE__ */ x(sa, { className: ne("comment-body", { isEditing: fe }), children: [
2771
2767
  !b && /* @__PURE__ */ x(ca, { className: "tools", children: [
2772
- Ne && /* @__PURE__ */ c(rn, { icon: "edit_square", onClick: Ie, variant: "text" }),
2768
+ Se && /* @__PURE__ */ c(an, { icon: "edit_square", onClick: Ne, variant: "text" }),
2773
2769
  /* @__PURE__ */ c(
2774
- rn,
2770
+ an,
2775
2771
  {
2776
2772
  icon: "more_horiz",
2777
2773
  ref: P,
@@ -2788,7 +2784,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2788
2784
  initValue: Q,
2789
2785
  initFiles: H,
2790
2786
  annotationFrameStart: t,
2791
- initCategory: N?.name,
2787
+ initCategory: S?.name,
2792
2788
  data: e.activityData,
2793
2789
  activityId: J,
2794
2790
  versionReview: !1,
@@ -2800,10 +2796,10 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2800
2796
  }
2801
2797
  ) : /* @__PURE__ */ x(Te, { children: [
2802
2798
  /* @__PURE__ */ c(
2803
- Ui,
2799
+ Bi,
2804
2800
  {
2805
- flags: zi({
2806
- category: N,
2801
+ flags: Gi({
2802
+ category: S,
2807
2803
  categoryNotFound: G,
2808
2804
  frameLink: T,
2809
2805
  formatFrame: R,
@@ -2813,14 +2809,14 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2813
2809
  })
2814
2810
  }
2815
2811
  ),
2816
- /* @__PURE__ */ c(Ci, { children: /* @__PURE__ */ c(
2817
- An,
2812
+ /* @__PURE__ */ c(Di, { children: /* @__PURE__ */ c(
2813
+ kn,
2818
2814
  {
2819
2815
  remarkPlugins: [
2820
- Cn,
2821
2816
  Fn,
2817
+ An,
2822
2818
  Co,
2823
- ti,
2819
+ ni,
2824
2820
  To
2825
2821
  ],
2826
2822
  urlTransform: (v) => v,
@@ -2833,12 +2829,12 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2833
2829
  entityId: ee?.id ?? ae,
2834
2830
  entityType: ee?.type ?? m,
2835
2831
  userName: D,
2836
- userTeamNames: S,
2832
+ userTeamNames: I,
2837
2833
  projectName: l,
2838
2834
  onReferenceClick: p,
2839
2835
  onReferenceTooltip: je,
2840
2836
  activityId: J,
2841
- categoryPrimary: N?.color,
2837
+ categoryPrimary: S?.color,
2842
2838
  categorySecondary: X.secondary,
2843
2839
  onActivityLinkClick: He
2844
2840
  })
@@ -2859,15 +2855,15 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2859
2855
  ] }),
2860
2856
  // a video url on its own line is an embedded video
2861
2857
  // @ts-ignore
2862
- p: (v) => ar(v, { onOpen: q }) ?? rr(v) ?? /* @__PURE__ */ c("p", { children: v.children }),
2858
+ p: (v) => rr(v, { onOpen: q }) ?? ir(v) ?? /* @__PURE__ */ c("p", { children: v.children }),
2863
2859
  // @ts-ignore
2864
- status: (v) => /* @__PURE__ */ c(Ii, { name: v.id, statuses: y, children: v.children })
2860
+ status: (v) => /* @__PURE__ */ c(Ei, { name: v.id, statuses: y, children: v.children })
2865
2861
  },
2866
2862
  children: Pe
2867
2863
  }
2868
2864
  ) }),
2869
2865
  /* @__PURE__ */ c(
2870
- _n,
2866
+ Rn,
2871
2867
  {
2872
2868
  files: Me,
2873
2869
  isCompact: Me.length > 6,
@@ -2882,13 +2878,13 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2882
2878
  )
2883
2879
  ] }),
2884
2880
  !fe && /* @__PURE__ */ c("div", { style: { marginTop: "16px" }, children: We && /* @__PURE__ */ c(
2885
- bi,
2881
+ xi,
2886
2882
  {
2887
2883
  reactions: We,
2888
2884
  changeHandler: Ee,
2889
2885
  readOnly: b,
2890
- category: N && !A ? N.name : void 0,
2891
- categoryPrimary: N?.color,
2886
+ category: S && !A ? S.name : void 0,
2887
+ categoryPrimary: S?.color,
2892
2888
  categorySecondary: X.secondary,
2893
2889
  categoryTertiary: X.primary
2894
2890
  }
@@ -2898,7 +2894,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2898
2894
  }
2899
2895
  ),
2900
2896
  /* @__PURE__ */ c(
2901
- er,
2897
+ tr,
2902
2898
  {
2903
2899
  target: P.current,
2904
2900
  id: De,
@@ -2907,11 +2903,11 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2907
2903
  v?.stopPropagation(), _(!1);
2908
2904
  },
2909
2905
  children: /* @__PURE__ */ c(
2910
- Bi,
2906
+ Hi,
2911
2907
  {
2912
2908
  onDelete: he && n ? tt : void 0,
2913
- onEdit: Ne ? Ie : void 0,
2914
- onCopyText: Pe ? () => Mn(Pe) : void 0,
2909
+ onEdit: Se ? Ne : void 0,
2910
+ onCopyText: Pe ? () => Pn(Pe) : void 0,
2915
2911
  onDuplicate: r ? () => r(e) : void 0,
2916
2912
  activityId: J,
2917
2913
  onSelect: () => _(!1),
@@ -2922,7 +2918,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2922
2918
  }
2923
2919
  )
2924
2920
  ] });
2925
- }, Hi = F.li`
2921
+ }, Wi = F.li`
2926
2922
  list-style: none;
2927
2923
  margin: 0;
2928
2924
  padding: 0;
@@ -2932,7 +2928,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2932
2928
  padding: 4px 8px;
2933
2929
  border-radius: var(--border-radius-m);
2934
2930
  user-select: none;
2935
- `, qi = F.div`
2931
+ `, Qi = F.div`
2936
2932
  display: flex;
2937
2933
  flex-wrap: wrap;
2938
2934
  align-items: center;
@@ -2955,10 +2951,10 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2955
2951
  font-size: 12px;
2956
2952
  font-weight: 800;
2957
2953
  }
2958
- `, Wi = (e, t) => {
2954
+ `, Yi = (e, t) => {
2959
2955
  let o = [], n = {};
2960
2956
  return e.activityData.origin.type == "folder" && !n.folder && (n.folder = !0, o.push(e.activityData.origin.name)), e.activityData.origin.type == "task" && !n.task && (n.task = !0, o.push(e.activityData.origin.name)), (t == "version" || e.activityData.origin.type == "version") && (n.product || (n.product = !0, o.push(e.activityData.parents?.find((a) => a.type == "product")?.name)), n.version || (n.version = !0, o.push(e.activityData.origin.name))), o;
2961
- }, Qi = F.div`
2957
+ }, Ji = F.div`
2962
2958
  display: inline-flex;
2963
2959
  align-items: center;
2964
2960
  gap: var(--base-gap-small);
@@ -2967,7 +2963,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2967
2963
  font-variation-settings: 'FILL' 1;
2968
2964
  font-size: 16px;
2969
2965
  }
2970
- `, Yi = F.span`
2966
+ `, Ki = F.span`
2971
2967
  color: var(--md-sys-color-outline);
2972
2968
  font-size: 12px;
2973
2969
  max-width: 300px;
@@ -2977,18 +2973,18 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2977
2973
  span {
2978
2974
  font-size: inherit;
2979
2975
  }
2980
- `, _t = ft(
2981
- ({ icon: e, color: t, name: o, items: n, ...a }, r) => /* @__PURE__ */ x(Qi, { ...a, ref: r, children: [
2976
+ `, Pt = ft(
2977
+ ({ icon: e, color: t, name: o, items: n, ...a }, r) => /* @__PURE__ */ x(Ji, { ...a, ref: r, children: [
2982
2978
  e && /* @__PURE__ */ c(se, { icon: e, style: { color: t } }),
2983
- /* @__PURE__ */ c(Yi, { title: o, children: n ? n.map((s, i) => /* @__PURE__ */ x(Fo, { children: [
2979
+ /* @__PURE__ */ c(Ki, { title: o, children: n ? n.map((s, i) => /* @__PURE__ */ x(Fo, { children: [
2984
2980
  /* @__PURE__ */ c("span", { style: { color: s.color }, children: s.label }),
2985
2981
  i < n.length - 1 && ", "
2986
2982
  ] }, i)) : o })
2987
2983
  ] })
2988
- ), Ji = (e) => {
2984
+ ), Xi = (e) => {
2989
2985
  const t = typeof e.icon == "string" ? e.icon : e.icon?.name, o = e.color ?? (typeof e.icon == "object" ? e.icon?.color : void 0);
2990
2986
  return { name: e.label, icon: t, color: o };
2991
- }, Ki = (e, t) => {
2987
+ }, Zi = (e, t) => {
2992
2988
  const o = t?.data.enum?.find((n) => n.value === e)?.label;
2993
2989
  if (o) return o;
2994
2990
  if (t?.data.type === "datetime") {
@@ -2996,18 +2992,18 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2996
2992
  if (!isNaN(n.getTime())) return ha(n, "dd-MM-yyyy");
2997
2993
  }
2998
2994
  return String(e);
2999
- }, Xi = (e, t) => e === "description" || t?.data.widget === "markdown", Zi = (e, t, o) => {
2995
+ }, es = (e, t) => e === "description" || t?.data.widget === "markdown", ts = (e, t, o) => {
3000
2996
  if (e == null || e === "" || Array.isArray(e) && !e.length) return { name: "none" };
3001
- if (typeof e == "string" && Xi(o, t))
3002
- return { name: ir(e) || "none" };
2997
+ if (typeof e == "string" && es(o, t))
2998
+ return { name: sr(e) || "none" };
3003
2999
  if (t?.data.type === "boolean") return { name: e ? "Checked" : "Unchecked" };
3004
3000
  const a = Array.isArray(e) ? e : [e];
3005
3001
  if (a.length === 1) {
3006
3002
  const r = t?.data.enum?.find((s) => s.value === a[0]);
3007
- if (r) return Ji(r);
3003
+ if (r) return Xi(r);
3008
3004
  }
3009
- return { name: a.map((r) => Ki(r, t)).join(", ") };
3010
- }, es = ({
3005
+ return { name: a.map((r) => Zi(r, t)).join(", ") };
3006
+ }, ns = ({
3011
3007
  entityType: e,
3012
3008
  projectInfo: t,
3013
3009
  activity: o = {}
@@ -3020,21 +3016,21 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3020
3016
  oldStatus: i,
3021
3017
  newStatus: l,
3022
3018
  activityData: m = {}
3023
- } = o, { key: p, oldValue: g, newValue: u } = m, h = Wi(o, e), b = n === "attrib.change", y = n === "tags.change", D = n === "subtype.change", { data: M = [] } = Ma(void 0, { skip: !b }), C = I(() => M.find((N) => N.name === p), [M, p]), f = b ? C?.data.title || p : y ? "Tags" : D ? "Type" : void 0, w = (N) => ({
3024
- name: N?.name || "",
3025
- icon: N?.icon,
3026
- color: N?.color
3027
- }), A = (N) => {
3028
- const G = Array.isArray(N) ? N.map(String) : [];
3019
+ } = o, { key: p, oldValue: g, newValue: u } = m, h = Yi(o, e), b = n === "attrib.change", y = n === "tags.change", D = n === "subtype.change", { data: M = [] } = Pa(void 0, { skip: !b }), C = N(() => M.find((S) => S.name === p), [M, p]), f = b ? C?.data.title || p : y ? "Tags" : D ? "Type" : void 0, w = (S) => ({
3020
+ name: S?.name || "",
3021
+ icon: S?.icon,
3022
+ color: S?.color
3023
+ }), A = (S) => {
3024
+ const G = Array.isArray(S) ? S.map(String) : [];
3029
3025
  if (!G.length) return { name: "none" };
3030
3026
  const X = G.map((Q) => ({
3031
3027
  label: Q,
3032
3028
  color: t?.tags?.find((Z) => Z.name === Q)?.color
3033
3029
  }));
3034
3030
  return { name: G.join(", "), items: X };
3035
- }, S = n === "status.change", P = (N, G) => S ? w(G) : y ? A(N) : Zi(N, C, p), _ = P(g, i), E = P(u, l);
3036
- return /* @__PURE__ */ x(Hi, { children: [
3037
- /* @__PURE__ */ x(qi, { children: [
3031
+ }, I = n === "status.change", P = (S, G) => I ? w(G) : y ? A(S) : ts(S, C, p), _ = P(g, i), E = P(u, l);
3032
+ return /* @__PURE__ */ x(Wi, { children: [
3033
+ /* @__PURE__ */ x(Qi, { children: [
3038
3034
  /* @__PURE__ */ c(Dt, { children: r || a }),
3039
3035
  /* @__PURE__ */ x(Dt, { children: [
3040
3036
  "- ",
@@ -3042,9 +3038,9 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3042
3038
  " -"
3043
3039
  ] }),
3044
3040
  f && /* @__PURE__ */ c(Dt, { children: /* @__PURE__ */ c("strong", { children: f }) }),
3045
- /* @__PURE__ */ c(_t, { ..._ }),
3041
+ /* @__PURE__ */ c(Pt, { ..._ }),
3046
3042
  /* @__PURE__ */ c(se, { icon: "trending_flat" }),
3047
- /* @__PURE__ */ c(_t, { ...E })
3043
+ /* @__PURE__ */ c(Pt, { ...E })
3048
3044
  ] }),
3049
3045
  /* @__PURE__ */ c(lt, { date: s })
3050
3046
  ] });
@@ -3069,18 +3065,18 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3069
3065
  gap: var(--base-gap-small);
3070
3066
  padding: 0px 4px;
3071
3067
  overflow: hidden;
3072
- `, Rt = F.span`
3068
+ `, _t = F.span`
3073
3069
  color: var(--md-sys-color-outline);
3074
3070
  white-space: wrap;
3075
3071
  font-size: 12px;
3076
- `, yn = ({ activity: e, isAdding: t }) => {
3072
+ `, fn = ({ activity: e, isAdding: t }) => {
3077
3073
  const { authorFullName: o, createdAt: n, activityData: a, authorName: r } = e || {}, { assignee: s } = a || {};
3078
3074
  let i = o || r;
3079
3075
  return i += t ? " added " : " removed ", i += "assignee: " + s, /* @__PURE__ */ c(Jn, { children: /* @__PURE__ */ x(Kn, { children: [
3080
- /* @__PURE__ */ c(Rt, { children: i }),
3076
+ /* @__PURE__ */ c(_t, { children: i }),
3081
3077
  /* @__PURE__ */ c(lt, { date: n })
3082
3078
  ] }) });
3083
- }, ts = F.li`
3079
+ }, os = F.li`
3084
3080
  /* reset default */
3085
3081
  list-style: none;
3086
3082
  margin: 0;
@@ -3092,7 +3088,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3092
3088
 
3093
3089
  width: 100%;
3094
3090
  padding: 8px;
3095
- `, ns = F.div`
3091
+ `, as = F.div`
3096
3092
  border-radius: var(--border-radius-m);
3097
3093
  padding: var(--padding-m);
3098
3094
 
@@ -3108,7 +3104,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3108
3104
  display: inline;
3109
3105
  }
3110
3106
  }
3111
- `, os = F.div`
3107
+ `, rs = F.div`
3112
3108
  display: flex;
3113
3109
  flex-direction: row;
3114
3110
  justify-content: space-between;
@@ -3122,7 +3118,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3122
3118
  min-width: 0;
3123
3119
  overflow: hidden;
3124
3120
  }
3125
- `, vn = F.div`
3121
+ `, yn = F.div`
3126
3122
  display: flex;
3127
3123
  align-items: center;
3128
3124
  justify-content: space-between;
@@ -3146,7 +3142,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3146
3142
  display: none;
3147
3143
  flex: 1;
3148
3144
  }
3149
- `, as = F(ja)`
3145
+ `, is = F(Ua)`
3150
3146
  width: 74px;
3151
3147
  min-width: 74px;
3152
3148
  height: unset;
@@ -3160,17 +3156,17 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3160
3156
  img {
3161
3157
  object-fit: cover;
3162
3158
  }
3163
- `, rs = F.span`
3159
+ `, ss = F.span`
3164
3160
  overflow: hidden;
3165
3161
  text-overflow: ellipsis;
3166
3162
  white-space: nowrap;
3167
3163
  display: block;
3168
3164
  min-width: 0;
3169
- `, is = F.div`
3165
+ `, cs = F.div`
3170
3166
  margin-top: var(--base-gap-small);
3171
3167
  color: var(--md-sys-color-outline);
3172
3168
  word-break: break-word;
3173
- `, ss = F.li`
3169
+ `, ls = F.li`
3174
3170
  /* reset default */
3175
3171
  list-style: none;
3176
3172
  margin: 0;
@@ -3199,7 +3195,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3199
3195
  &:hover {
3200
3196
  background-color: var(--md-sys-color-surface-container-hover);
3201
3197
  }
3202
- `, cs = ({
3198
+ `, ds = ({
3203
3199
  activity: e,
3204
3200
  projectName: t,
3205
3201
  entityType: o,
@@ -3219,7 +3215,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3219
3215
  goToPosition: A?.position
3220
3216
  });
3221
3217
  };
3222
- return /* @__PURE__ */ x(ts, { children: [
3218
+ return /* @__PURE__ */ x(os, { children: [
3223
3219
  /* @__PURE__ */ c(
3224
3220
  Yn,
3225
3221
  {
@@ -3233,29 +3229,29 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3233
3229
  }
3234
3230
  ),
3235
3231
  p.flatMap((C, f) => {
3236
- const { name: w, id: A, productId: S, productName: P, thumbnailHash: _, comment: E } = C, N = r.find((G) => G.name === C.status);
3237
- return (f < b || u) && /* @__PURE__ */ x(ns, { onClick: (G) => M(G, A, S), children: [
3238
- /* @__PURE__ */ x(os, { children: [
3232
+ const { name: w, id: A, productId: I, productName: P, thumbnailHash: _, comment: E } = C, S = r.find((G) => G.name === C.status);
3233
+ return (f < b || u) && /* @__PURE__ */ x(as, { onClick: (G) => M(G, A, I), children: [
3234
+ /* @__PURE__ */ x(rs, { children: [
3239
3235
  /* @__PURE__ */ x("div", { children: [
3240
- /* @__PURE__ */ x(vn, { children: [
3236
+ /* @__PURE__ */ x(yn, { children: [
3241
3237
  /* @__PURE__ */ c("span", { children: P }),
3242
3238
  /* @__PURE__ */ c(lt, { date: m, isExact: !0 })
3243
3239
  ] }),
3244
- /* @__PURE__ */ x(vn, { children: [
3245
- /* @__PURE__ */ c(rs, { className: "version", children: w }),
3240
+ /* @__PURE__ */ x(yn, { children: [
3241
+ /* @__PURE__ */ c(ss, { className: "version", children: w }),
3246
3242
  " -",
3247
3243
  /* @__PURE__ */ c(
3248
- _t,
3244
+ Pt,
3249
3245
  {
3250
- icon: N?.icon,
3251
- color: N?.color,
3252
- name: N?.name || ""
3246
+ icon: S?.icon,
3247
+ color: S?.color,
3248
+ name: S?.name || ""
3253
3249
  }
3254
3250
  )
3255
3251
  ] })
3256
3252
  ] }),
3257
3253
  /* @__PURE__ */ c(
3258
- as,
3254
+ is,
3259
3255
  {
3260
3256
  projectName: t,
3261
3257
  entityId: A,
@@ -3269,7 +3265,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3269
3265
  }
3270
3266
  )
3271
3267
  ] }),
3272
- E && /* @__PURE__ */ c(is, { children: E })
3268
+ E && /* @__PURE__ */ c(cs, { children: E })
3273
3269
  ] }, A);
3274
3270
  }),
3275
3271
  !g && p.length > b && /* @__PURE__ */ x(Xn, { onClick: () => h(!u), children: [
@@ -3277,10 +3273,10 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3277
3273
  /* @__PURE__ */ c("span", { children: u ? "Show less" : `Show ${p.length - b} more versions` })
3278
3274
  ] })
3279
3275
  ] });
3280
- }, ls = ({ activities: e, editProps: t, ...o }) => {
3276
+ }, us = ({ activities: e, editProps: t, ...o }) => {
3281
3277
  const [n, a] = $(!1);
3282
3278
  return /* @__PURE__ */ x(Te, { children: [
3283
- /* @__PURE__ */ c(ss, { children: /* @__PURE__ */ x(Xn, { onClick: () => a(!n), children: [
3279
+ /* @__PURE__ */ c(ls, { children: /* @__PURE__ */ x(Xn, { onClick: () => a(!n), children: [
3284
3280
  /* @__PURE__ */ c(se, { icon: n ? "expand_less" : "chevron_right" }),
3285
3281
  n ? "Show less" : "Show more"
3286
3282
  ] }) }),
@@ -3317,7 +3313,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3317
3313
  return (
3318
3314
  // @ts-expect-error
3319
3315
  /* @__PURE__ */ c(
3320
- Gi,
3316
+ qi,
3321
3317
  {
3322
3318
  activity: e,
3323
3319
  annotationFrameStart: o,
@@ -3334,18 +3330,18 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3334
3330
  case "attrib.change":
3335
3331
  case "tags.change":
3336
3332
  case "subtype.change":
3337
- return /* @__PURE__ */ c(es, { activity: e, projectInfo: n, ...g });
3333
+ return /* @__PURE__ */ c(ns, { activity: e, projectInfo: n, ...g });
3338
3334
  case "assignee.add":
3339
- return /* @__PURE__ */ c(yn, { activity: e, ...g, isAdding: !0 });
3335
+ return /* @__PURE__ */ c(fn, { activity: e, ...g, isAdding: !0 });
3340
3336
  case "assignee.remove":
3341
- return /* @__PURE__ */ c(yn, { activity: e, ...g });
3337
+ return /* @__PURE__ */ c(fn, { activity: e, ...g });
3342
3338
  case "version.publish":
3343
- return /* @__PURE__ */ c(cs, { activity: e, projectInfo: n, filter: s, statuses: l, ...g });
3339
+ return /* @__PURE__ */ c(ds, { activity: e, projectInfo: n, filter: s, statuses: l, ...g });
3344
3340
  case "version.review":
3345
- return /* @__PURE__ */ c(ji, { activity: e, isGuest: p, ...g });
3341
+ return /* @__PURE__ */ c(zi, { activity: e, isGuest: p, ...g });
3346
3342
  case "group":
3347
3343
  return !t && /* @__PURE__ */ c(
3348
- ls,
3344
+ us,
3349
3345
  {
3350
3346
  editProps: r,
3351
3347
  activities: e.items || [],
@@ -3356,7 +3352,7 @@ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3356
3352
  default:
3357
3353
  return null;
3358
3354
  }
3359
- }, ds = F.section`
3355
+ }, ms = F.section`
3360
3356
  padding-bottom: 4px;
3361
3357
  overflow: hidden;
3362
3358
  position: relative;
@@ -3404,7 +3400,7 @@ F.div`
3404
3400
  color: inherit;
3405
3401
  }
3406
3402
  `;
3407
- const us = F.ul`
3403
+ const ps = F.ul`
3408
3404
  gap: var(--base-gap-large);
3409
3405
  overflow-y: auto;
3410
3406
  padding: 24px 0;
@@ -3425,11 +3421,11 @@ const us = F.ul`
3425
3421
  & > *:last-child {
3426
3422
  margin-top: 32px;
3427
3423
  }
3428
- `, ms = F.span`
3424
+ `, gs = F.span`
3429
3425
  padding: 16px 8px;
3430
3426
  color: var(--md-sys-color-outline);
3431
3427
  font-size: 11px;
3432
- `, ps = F.div`
3428
+ `, hs = F.div`
3433
3429
  height: 50px;
3434
3430
  border-radius: 8px;
3435
3431
  overflow: hidden;
@@ -3437,7 +3433,7 @@ const us = F.ul`
3437
3433
  opacity: 0.5;
3438
3434
 
3439
3435
  position: relative;
3440
- `, gs = ({
3436
+ `, fs = ({
3441
3437
  projectName: e,
3442
3438
  entityType: t,
3443
3439
  entities: o = [],
@@ -3457,7 +3453,7 @@ const us = F.ul`
3457
3453
  newId: f,
3458
3454
  subTitle: w,
3459
3455
  value: A,
3460
- files: S = [],
3456
+ files: I = [],
3461
3457
  data: P = {}
3462
3458
  }) => ({
3463
3459
  body: A,
@@ -3467,8 +3463,8 @@ const us = F.ul`
3467
3463
  referenceType: "origin",
3468
3464
  authorName: m,
3469
3465
  authorFullName: p,
3470
- createdAt: Ya(/* @__PURE__ */ new Date()),
3471
- files: S,
3466
+ createdAt: Ja(/* @__PURE__ */ new Date()),
3467
+ files: I,
3472
3468
  reactions: [],
3473
3469
  activityData: P,
3474
3470
  origin: {
@@ -3484,17 +3480,17 @@ const us = F.ul`
3484
3480
  return {
3485
3481
  submitComment: async (C, f = [], w = {}) => {
3486
3482
  const A = o.map(({ id: _, subTitle: E }) => {
3487
- const N = ln(), G = f.map((oe) => oe.id), X = a ? { ...w, entityList: a } : w, Q = {
3483
+ const S = cn(), G = f.map((oe) => oe.id), X = a ? { ...w, entityList: a } : w, Q = {
3488
3484
  body: C,
3489
3485
  activityType: "comment",
3490
- id: N,
3486
+ id: S,
3491
3487
  files: G,
3492
3488
  data: X
3493
3489
  }, Z = f.filter(
3494
3490
  ({ id: oe }) => !w.annotations?.some(
3495
3491
  (ae) => ae.transparent === oe
3496
3492
  )
3497
- ), Y = h({ entityId: _, newId: N, subTitle: E, value: C, files: Z, data: w });
3493
+ ), Y = h({ entityId: _, newId: S, subTitle: E, value: C, files: Z, data: w });
3498
3494
  return r({
3499
3495
  projectName: e,
3500
3496
  entityType: t,
@@ -3506,14 +3502,14 @@ const us = F.ul`
3506
3502
  });
3507
3503
  }), P = (await Promise.all(A)).filter((_) => _.error);
3508
3504
  if (P.length > 0) {
3509
- const _ = sn(P[0].error) || "Failed to create comment";
3505
+ const _ = rn(P[0].error) || "Failed to create comment";
3510
3506
  throw Ce.error(_), new Error(_);
3511
3507
  }
3512
3508
  },
3513
3509
  updateComment: async (C, f, w = [], A = {}) => {
3514
- const S = w.map((N) => N.id), P = {
3510
+ const I = w.map((S) => S.id), P = {
3515
3511
  body: f,
3516
- files: S,
3512
+ files: I,
3517
3513
  data: A
3518
3514
  }, _ = {
3519
3515
  ...C,
@@ -3531,8 +3527,8 @@ const us = F.ul`
3531
3527
  filter: n,
3532
3528
  ...E
3533
3529
  });
3534
- } catch (N) {
3535
- throw Ce.error(sn(N)), N;
3530
+ } catch (S) {
3531
+ throw Ce.error(rn(S)), S;
3536
3532
  }
3537
3533
  },
3538
3534
  deleteComment: async (C, f, w = []) => {
@@ -3553,12 +3549,12 @@ const us = F.ul`
3553
3549
  },
3554
3550
  submitReview: async (C) => {
3555
3551
  const f = o.map(({ id: w, subTitle: A }) => {
3556
- const S = ln(), P = { feedback: C, entityList: a }, _ = {
3557
- body: oi(C, t),
3552
+ const I = cn(), P = { feedback: C, entityList: a }, _ = {
3553
+ body: ai(C, t),
3558
3554
  activityType: "version.review",
3559
- id: S,
3555
+ id: I,
3560
3556
  data: P
3561
- }, E = h({ entityId: w, newId: S, subTitle: A, value: "", data: P });
3557
+ }, E = h({ entityId: w, newId: I, subTitle: A, value: "", data: P });
3562
3558
  return r({
3563
3559
  projectName: e,
3564
3560
  entityType: t,
@@ -3572,7 +3568,7 @@ const us = F.ul`
3572
3568
  },
3573
3569
  isSaving: l
3574
3570
  };
3575
- }, Nt = (e = {}) => {
3571
+ }, St = (e = {}) => {
3576
3572
  const {
3577
3573
  updatedAt: t,
3578
3574
  createdAt: o,
@@ -3592,7 +3588,7 @@ const us = F.ul`
3592
3588
  status: i?.status,
3593
3589
  thumbnailHash: i?.thumbnailHash
3594
3590
  };
3595
- }, hs = 5, fs = (e = []) => {
3591
+ }, ys = 5, vs = (e = []) => {
3596
3592
  const t = [];
3597
3593
  let o = null;
3598
3594
  for (const n of e) {
@@ -3601,23 +3597,23 @@ const us = F.ul`
3601
3597
  continue;
3602
3598
  }
3603
3599
  if (!o) {
3604
- o = { ...n }, o.versions = [Nt(n)];
3600
+ o = { ...n }, o.versions = [St(n)];
3605
3601
  continue;
3606
3602
  }
3607
- const a = o.authorName === n.authorName, r = o.origin.id === n.origin.id, i = Ja(
3603
+ const a = o.authorName === n.authorName, r = o.origin.id === n.origin.id, i = Ka(
3608
3604
  new Date(o.createdAt),
3609
3605
  new Date(n.createdAt)
3610
- ) <= hs;
3606
+ ) <= ys;
3611
3607
  if (a && i && r) {
3612
- o.versions.push(Nt(n));
3608
+ o.versions.push(St(n));
3613
3609
  continue;
3614
3610
  } else {
3615
- t.push(o), o = { ...n }, o.versions = [Nt(n)];
3611
+ t.push(o), o = { ...n }, o.versions = [St(n)];
3616
3612
  continue;
3617
3613
  }
3618
3614
  }
3619
3615
  return o && t.push(o), t;
3620
- }, ys = (e, t) => {
3616
+ }, bs = (e, t) => {
3621
3617
  let o = {};
3622
3618
  t.reduce((i, l) => (i[l.name] = l, i), o);
3623
3619
  const n = [];
@@ -3665,14 +3661,14 @@ const us = F.ul`
3665
3661
  a = [];
3666
3662
  };
3667
3663
  for (const i of e)
3668
- if (vs.includes(i.activityType))
3664
+ if (ws.includes(i.activityType))
3669
3665
  a.push(i);
3670
3666
  else {
3671
3667
  const l = n.length === 0;
3672
3668
  s(l, n.length), n.push(i);
3673
3669
  }
3674
3670
  return a.length > 0 && s(!1, n.length), n;
3675
- }, bn = (e, t, o = "oldValue") => {
3671
+ }, vn = (e, t, o = "oldValue") => {
3676
3672
  const n = [];
3677
3673
  let a = null, r = null;
3678
3674
  for (const s of e)
@@ -3681,7 +3677,7 @@ const us = F.ul`
3681
3677
  a = { ...s }, r = new Date(s.createdAt);
3682
3678
  continue;
3683
3679
  }
3684
- const i = a.authorName === s.authorName, l = a.origin.id === s.entityId, m = a.activityData?.key === s.activityData?.key, p = new Date(s.createdAt), u = r !== null && Xe(r) && Xe(p) && Math.abs(Ka(r, p)) <= 20;
3680
+ const i = a.authorName === s.authorName, l = a.origin.id === s.entityId, m = a.activityData?.key === s.activityData?.key, p = new Date(s.createdAt), u = r !== null && Xe(r) && Xe(p) && Math.abs(Xa(r, p)) <= 20;
3685
3681
  i && u && l && m ? (s[o] !== void 0 && (a[o] = s[o]), a.activityData = {
3686
3682
  ...a.activityData,
3687
3683
  oldValue: s.activityData.oldValue
@@ -3689,14 +3685,14 @@ const us = F.ul`
3689
3685
  } else
3690
3686
  a && (a.activityData.oldValue !== a.activityData.newValue && n.push(a), a = null, r = null), n.push(s);
3691
3687
  return a && a.activityData.oldValue !== a.activityData.newValue && !n.some((s) => s.activityId === a.activityId) && n.push(a), n;
3692
- }, vs = [
3688
+ }, ws = [
3693
3689
  "status.change",
3694
3690
  "assignee.add",
3695
3691
  "assignee.remove",
3696
3692
  "attrib.change",
3697
3693
  "tags.change",
3698
3694
  "subtype.change"
3699
- ], bs = (e = [], t = {}) => e.map((o) => {
3695
+ ], xs = (e = [], t = {}) => e.map((o) => {
3700
3696
  const n = { ...o, origin: { ...o.origin } };
3701
3697
  if (n.activityType === "status.change") {
3702
3698
  if (!t) return n;
@@ -3704,14 +3700,14 @@ const us = F.ul`
3704
3700
  n.oldStatus = { ...s, name: a }, n.newStatus = { ...i, name: r };
3705
3701
  }
3706
3702
  return n;
3707
- }), ws = (e = [], t = [], o) => t.includes(o) ? e.filter((n) => n.referenceType !== "relation") : e, xs = (e = [], t = [], o = {}, n, a, r) => {
3708
- const s = I(
3709
- () => bs(e, o),
3703
+ }), ks = (e = [], t = [], o) => t.includes(o) ? e.filter((n) => n.referenceType !== "relation") : e, As = (e = [], t = [], o = {}, n, a, r) => {
3704
+ const s = N(
3705
+ () => xs(e, o),
3710
3706
  [e, o]
3711
- ), i = I(() => s.map((y) => ({ ...y, isOwner: a === y.authorName })), [s, a]), l = I(
3712
- () => ws(i, ["version"], n),
3707
+ ), i = N(() => s.map((y) => ({ ...y, isOwner: a === y.authorName })), [s, a]), l = N(
3708
+ () => ks(i, ["version"], n),
3713
3709
  [i, n]
3714
- ), m = I(() => [...l].sort((D, M) => {
3710
+ ), m = N(() => [...l].sort((D, M) => {
3715
3711
  const C = new Date(D.createdAt), f = new Date(M.createdAt), w = Xe(C), A = Xe(f);
3716
3712
  if (!w && !A)
3717
3713
  return 0;
@@ -3719,23 +3715,23 @@ const us = F.ul`
3719
3715
  if (!A)
3720
3716
  return -1;
3721
3717
  } else return 1;
3722
- return Xa(f, C);
3723
- }), [l]), p = I(
3724
- () => bn(m, "status.change", "oldStatus"),
3718
+ return Za(f, C);
3719
+ }), [l]), p = N(
3720
+ () => vn(m, "status.change", "oldStatus"),
3725
3721
  [m]
3726
- ), g = I(
3727
- () => bn(p, "attrib.change"),
3722
+ ), g = N(
3723
+ () => vn(p, "attrib.change"),
3728
3724
  [p]
3729
- ), u = I(() => r?.conditions?.some(
3725
+ ), u = N(() => r?.conditions?.some(
3730
3726
  (D) => "key" in D && D.key === "updates" && D.value === !0
3731
- ) ? g : ys(g, t), [g, t, r]), h = I(
3732
- () => fs(u),
3727
+ ) ? g : bs(g, t), [g, t, r]), h = N(
3728
+ () => vs(u),
3733
3729
  [u]
3734
3730
  );
3735
- return I(() => [...new Map(
3731
+ return N(() => [...new Map(
3736
3732
  h.filter((D) => D && D.activityId).map((D) => [D.activityId, D])
3737
3733
  ).values()], [h]);
3738
- }, wn = (e, t) => JSON.stringify({ entities: e.map((o) => o.id), filter: t }), ks = ({
3734
+ }, bn = (e, t) => JSON.stringify({ entities: e.map((o) => o.id), filter: t }), Fs = ({
3739
3735
  entities: e = [],
3740
3736
  feedRef: t,
3741
3737
  filter: o,
@@ -3747,7 +3743,7 @@ const us = F.ul`
3747
3743
  return (m[m.length - 1]?.offsetTop || 0) - 8 || 0;
3748
3744
  };
3749
3745
  W(() => {
3750
- const i = wn(e, o);
3746
+ const i = bn(e, o);
3751
3747
  !t.current || n || a || (t.current.scrollTop = r.current[i] || s(t));
3752
3748
  }, [e, o, t.current, a]), W(() => {
3753
3749
  let i = null;
@@ -3758,27 +3754,27 @@ const us = F.ul`
3758
3754
  i = setTimeout(() => {
3759
3755
  i = null;
3760
3756
  }, 300);
3761
- const { scrollTop: p } = m.target, g = wn(e, o);
3757
+ const { scrollTop: p } = m.target, g = bn(e, o);
3762
3758
  r.current[g] = p;
3763
3759
  };
3764
3760
  return t.current?.addEventListener("scroll", l), () => {
3765
3761
  t.current?.removeEventListener("scroll", l);
3766
3762
  };
3767
3763
  }, [t.current, o, e, n]);
3768
- }, As = ({ feedRef: e, isInputOpen: t, height: o }) => {
3764
+ }, Cs = ({ feedRef: e, isInputOpen: t, height: o }) => {
3769
3765
  W(() => {
3770
3766
  if (!e.current) return;
3771
3767
  const n = o;
3772
3768
  e.current.scrollTop === 0 || (t ? e.current.scrollBy(0, n) : e.current.scrollBy(0, -n));
3773
3769
  }, [t, e, o]);
3774
- }, Fs = (e = 50, t = 200) => Math.floor(Math.random() * (t - e + 1) + e), Cs = (e) => new Array(e).fill(0).map((t, o) => /* @__PURE__ */ c(
3775
- ps,
3770
+ }, Ts = (e = 50, t = 200) => Math.floor(Math.random() * (t - e + 1) + e), Ds = (e) => new Array(e).fill(0).map((t, o) => /* @__PURE__ */ c(
3771
+ hs,
3776
3772
  {
3777
3773
  className: "loading",
3778
- style: { minHeight: Fs(50, 150) }
3774
+ style: { minHeight: Ts(50, 150) }
3779
3775
  },
3780
3776
  o
3781
- )), Ts = ({
3777
+ )), Ss = ({
3782
3778
  feedRef: e,
3783
3779
  highlighted: t = [],
3784
3780
  isLoading: o,
@@ -3805,7 +3801,7 @@ const us = F.ul`
3805
3801
  W(() => {
3806
3802
  !t.length || !e.current || o || !n || t.every((m) => s.current?.includes(m)) || (console.log("trying to scroll to highlighted..."), l(e.current));
3807
3803
  }, [e, t, r, o, n, s, a]);
3808
- }, Ds = (e) => e.map((t) => {
3804
+ }, Ns = (e) => e.map((t) => {
3809
3805
  if (t.activityType !== "comment" || !t.activityData?.annotations) return t;
3810
3806
  const o = t.files.map((a) => {
3811
3807
  const r = t.activityData.annotations.find(
@@ -3821,10 +3817,10 @@ const us = F.ul`
3821
3817
  "checklists",
3822
3818
  "has_attachments",
3823
3819
  "in_review_session"
3824
- ], Ns = (e) => !!e && "key" in e, Is = (e, t) => {
3820
+ ], Is = (e) => !!e && "key" in e, Es = (e, t) => {
3825
3821
  const o = [], n = [], a = (r) => {
3826
3822
  if (!r) return;
3827
- if (Ns(r)) {
3823
+ if (Is(r)) {
3828
3824
  const i = r.key;
3829
3825
  if (i === "body") {
3830
3826
  const p = String(r.value ?? "");
@@ -3835,7 +3831,7 @@ const us = F.ul`
3835
3831
  if (!l) return;
3836
3832
  if (eo.includes(i)) {
3837
3833
  r.value === !0 && o.push({
3838
- id: on(i),
3834
+ id: nn(i),
3839
3835
  label: l.label,
3840
3836
  icon: l.icon,
3841
3837
  type: "boolean",
@@ -3848,7 +3844,7 @@ const us = F.ul`
3848
3844
  }
3849
3845
  const m = Array.isArray(r.value) ? r.value : [r.value];
3850
3846
  o.push({
3851
- id: on(i),
3847
+ id: nn(i),
3852
3848
  label: l.label,
3853
3849
  type: l.type,
3854
3850
  icon: l.icon,
@@ -3861,32 +3857,32 @@ const us = F.ul`
3861
3857
  });
3862
3858
  return;
3863
3859
  }
3864
- const s = nr(r, t);
3860
+ const s = or(r, t);
3865
3861
  if (s) {
3866
3862
  o.push(s);
3867
3863
  return;
3868
3864
  }
3869
3865
  r.conditions?.forEach(a);
3870
3866
  };
3871
- return e?.conditions?.forEach(a), n.length && o.push({ id: Nn, label: "", values: n }), o;
3872
- }, Ss = (e) => {
3867
+ return e?.conditions?.forEach(a), n.length && o.push({ id: Dn, label: "", values: n }), o;
3868
+ }, Ms = (e) => {
3873
3869
  const t = [], o = [];
3874
3870
  return e.forEach((n) => {
3875
3871
  const a = _o(n.id), r = (n.values || []).map((s) => s.id);
3876
3872
  if (r.length)
3877
- if (a === Nn)
3873
+ if (a === Dn)
3878
3874
  r.forEach(
3879
3875
  (s) => o.push({ key: "body", operator: "like", value: String(s) })
3880
3876
  );
3881
3877
  else if (eo.includes(a))
3882
3878
  r.includes("true") && t.push({ key: a, operator: "eq", value: !0 });
3883
3879
  else if (n.type === "datetime") {
3884
- const s = or(a, n);
3880
+ const s = ar(a, n);
3885
3881
  s && t.push(s);
3886
3882
  } else
3887
3883
  t.push({ key: a, operator: "in", value: r.map(String) });
3888
3884
  }), o.length === 1 ? t.push(o[0]) : o.length > 1 && t.push({ operator: "or", conditions: o }), { operator: "and", conditions: t };
3889
- }, Es = F.div`
3885
+ }, Ps = F.div`
3890
3886
  padding: 4px 8px;
3891
3887
  padding-bottom: 0;
3892
3888
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.25));
@@ -3912,10 +3908,10 @@ const us = F.ul`
3912
3908
  checklistCount: s,
3913
3909
  onSearchTextChange: i
3914
3910
  }) => {
3915
- const l = I(() => {
3916
- const f = (A, S, P) => ({
3911
+ const l = N(() => {
3912
+ const f = (A, I, P) => ({
3917
3913
  id: A,
3918
- label: S,
3914
+ label: I,
3919
3915
  icon: P,
3920
3916
  type: "boolean",
3921
3917
  singleSelect: !0,
@@ -3969,13 +3965,13 @@ const us = F.ul`
3969
3965
  }, [o, n, a]);
3970
3966
  let m = "";
3971
3967
  s?.total && s.total > 0 && (m = `${s.checked}/${s.total}`);
3972
- const p = I(
3968
+ const p = N(
3973
3969
  () => ["comments", { id: "checklists", label: m, tooltip: "Checklists" }],
3974
3970
  [m]
3975
- ), g = I(
3976
- () => Is(e, l),
3971
+ ), g = N(
3972
+ () => Es(e, l),
3977
3973
  [e, l]
3978
- ), [u, h] = $(g), b = sr(), y = pe(null);
3974
+ ), [u, h] = $(g), b = cr(), y = pe(null);
3979
3975
  W(() => {
3980
3976
  h(g);
3981
3977
  }, [JSON.stringify(g)]), W(() => {
@@ -3988,9 +3984,9 @@ const us = F.ul`
3988
3984
  };
3989
3985
  }, [y]);
3990
3986
  const D = (f) => {
3991
- t(Ss(f)), i?.("");
3987
+ t(Ms(f)), i?.("");
3992
3988
  };
3993
- return /* @__PURE__ */ x(Es, { className: r ? "loading" : void 0, children: [
3989
+ return /* @__PURE__ */ x(Ps, { className: r ? "loading" : void 0, children: [
3994
3990
  /* @__PURE__ */ c(
3995
3991
  Ro,
3996
3992
  {
@@ -4025,7 +4021,7 @@ const us = F.ul`
4025
4021
  }
4026
4022
  ),
4027
4023
  /* @__PURE__ */ c(
4028
- Ua,
4024
+ za,
4029
4025
  {
4030
4026
  isOpen: !!b.customRangeFilterId,
4031
4027
  header: l.find((f) => f.id === b.customRangeFilterId?.split("__")[0])?.label ?? "Custom range",
@@ -4041,7 +4037,7 @@ const us = F.ul`
4041
4037
  }
4042
4038
  );
4043
4039
  to.displayName = "FeedSearchFilter";
4044
- function Ms({
4040
+ function _s({
4045
4041
  projectName: e,
4046
4042
  enabled: t,
4047
4043
  entityIds: o,
@@ -4049,10 +4045,10 @@ function Ms({
4049
4045
  loadingActivities: a,
4050
4046
  userName: r
4051
4047
  }) {
4052
- const s = I(
4048
+ const s = N(
4053
4049
  () => n.find((p) => p.activityType === "version.review" && p.authorName === r),
4054
4050
  [n, r]
4055
- ), i = !!(o.length === 0 || !t || a || s), { data: l } = Pa(
4051
+ ), i = !!(o.length === 0 || !t || a || s), { data: l } = _a(
4056
4052
  {
4057
4053
  projectName: e,
4058
4054
  entityIds: o,
@@ -4062,27 +4058,30 @@ function Ms({
4062
4058
  },
4063
4059
  { skip: i }
4064
4060
  );
4065
- return I(() => s ?? l?.activities.at(-1), [s, l]);
4061
+ return N(() => s ?? l?.activities.at(-1), [s, l]);
4066
4062
  }
4067
- const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ projectName: e, entityType: t, entities: o, activities: n }) => {
4068
- const a = I(
4063
+ const Rs = (e) => !!e.activityData?.annotations?.length || !!yt(e), $s = ({ projectName: e, entityType: t, entities: o, activities: n }) => {
4064
+ const a = N(
4069
4065
  () => t === "version" ? Object.fromEntries(
4070
- o.filter((i) => i.attrib).map((i) => [i.id, i.attrib?.frameStart ?? null])
4066
+ o.filter((i) => i.attrib).map((i) => [
4067
+ i.id,
4068
+ In(i.attrib?.frameStart, i.attrib?.handleStart)
4069
+ ])
4071
4070
  ) : {},
4072
4071
  [t, o]
4073
- ), r = I(() => {
4072
+ ), r = N(() => {
4074
4073
  const i = /* @__PURE__ */ new Set();
4075
4074
  for (const l of n) {
4076
4075
  const m = l.origin;
4077
- l.activityType !== "comment" || m?.type !== "version" || m.id in a || !Ps(l) || i.add(m.id);
4076
+ l.activityType !== "comment" || m?.type !== "version" || m.id in a || !Rs(l) || i.add(m.id);
4078
4077
  }
4079
4078
  return [...i].sort();
4080
- }, [n, a]), { data: s } = _a(
4079
+ }, [n, a]), { data: s } = Ra(
4081
4080
  { projectName: e, versionIds: r },
4082
4081
  { skip: !e || !r.length }
4083
4082
  );
4084
- return I(() => ({ ...s, ...a }), [s, a]);
4085
- }, Rc = 30, $c = ({
4083
+ return N(() => ({ ...s, ...a }), [s, a]);
4084
+ }, Lc = 30, Oc = ({
4086
4085
  disabled: e,
4087
4086
  readOnly: t,
4088
4087
  statuses: o = [],
@@ -4107,11 +4106,11 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4107
4106
  users: f,
4108
4107
  categories: w,
4109
4108
  checklistCount: A,
4110
- feedFilter: S,
4109
+ feedFilter: I,
4111
4110
  setFeedFilter: P,
4112
4111
  isGuest: _,
4113
4112
  searchText: E,
4114
- setSearchText: N
4113
+ setSearchText: S
4115
4114
  } = Le(), {
4116
4115
  openSlideOut: G,
4117
4116
  highlightedActivities: X,
@@ -4120,14 +4119,14 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4120
4119
  setFeedAnnotations: Y,
4121
4120
  setFeedFrameLinks: L,
4122
4121
  user: oe
4123
- } = Be(), ae = S.conditions?.some(
4122
+ } = Be(), ae = I.conditions?.some(
4124
4123
  (T) => "key" in T && T.key === "versions" && T.value === !0
4125
- ), J = S.conditions?.some(
4124
+ ), J = I.conditions?.some(
4126
4125
  (T) => "key" in T && ["comments", "checklists", "versions", "updates"].includes(T.key) && T.value === !0
4127
- ), j = S.conditions?.some(
4126
+ ), j = I.conditions?.some(
4128
4127
  (T) => "key" in T && (T.key === "comments" || T.key === "checklists") && T.value === !0
4129
- ), de = m === "version" || m === "folder", H = m === "folder" && l.length === 1 ? l[0] : null, ee = f.find((T) => T.name === H?.createdBy), { data: Oe, isLoading: De } = Ra({ projectName: i }, { skip: !i }), be = !oe.data?.isManager && !oe.data?.isAdmin && !De && Oe?.activities?.enabled && !Oe?.activities?.activities?.includes("comment") || J && !j, ge = I(
4130
- () => Ds(b),
4128
+ ), de = m === "version" || m === "folder", H = m === "folder" && l.length === 1 ? l[0] : null, ee = f.find((T) => T.name === H?.createdBy), { data: Oe, isLoading: De } = $a({ projectName: i }, { skip: !i }), be = !oe.data?.isManager && !oe.data?.isAdmin && !De && Oe?.activities?.enabled && !Oe?.activities?.activities?.includes("comment") || J && !j, ge = N(
4129
+ () => Ns(b),
4131
4130
  [b]
4132
4131
  );
4133
4132
  W(() => {
@@ -4146,33 +4145,33 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4146
4145
  }).filter((R) => !!R);
4147
4146
  L(T);
4148
4147
  }, [b]);
4149
- const Ge = _s({
4148
+ const Ge = $s({
4150
4149
  projectName: i,
4151
4150
  entityType: m,
4152
4151
  entities: l,
4153
4152
  activities: b
4154
- }), ue = xs(
4153
+ }), ue = As(
4155
4154
  // @ts-ignore
4156
4155
  ge,
4157
4156
  f,
4158
4157
  g,
4159
4158
  m,
4160
4159
  h,
4161
- S
4162
- ), xe = I(() => {
4160
+ I
4161
+ ), xe = N(() => {
4163
4162
  if (!E) return ue;
4164
4163
  const T = E.toLowerCase();
4165
4164
  return ue.filter(
4166
4165
  (R) => R.body?.toLowerCase().includes(T)
4167
4166
  );
4168
4167
  }, [ue, E]), he = pe(null);
4169
- As({ feedRef: he, isInputOpen: p === rt, height: 93 }), ks({
4168
+ Cs({ feedRef: he, isInputOpen: p === rt, height: 93 }), Fs({
4170
4169
  entities: l,
4171
4170
  feedRef: he,
4172
- filter: S,
4171
+ filter: I,
4173
4172
  disabled: !!X.length,
4174
4173
  isLoading: y
4175
- }), Ts({
4174
+ }), Ss({
4176
4175
  feedRef: he,
4177
4176
  highlighted: X,
4178
4177
  isLoading: y || D,
@@ -4181,22 +4180,22 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4181
4180
  activities: b
4182
4181
  });
4183
4182
  const {
4184
- submitComment: Ne,
4185
- updateComment: Ie,
4183
+ submitComment: Se,
4184
+ updateComment: Ne,
4186
4185
  deleteComment: et,
4187
4186
  submitReview: Re,
4188
4187
  isSaving: fe
4189
- } = gs({
4188
+ } = fs({
4190
4189
  projectName: i,
4191
4190
  entityType: m,
4192
4191
  entities: l,
4193
- filter: S,
4192
+ filter: I,
4194
4193
  entityListId: n
4195
4194
  }), He = Ke(
4196
4195
  async (T, R = [], U = {}) => {
4197
- await Ne(T, R, U), he.current && he.current.scrollTo({ top: 0 });
4196
+ await Se(T, R, U), he.current && he.current.scrollTo({ top: 0 });
4198
4197
  },
4199
- [Ne, he]
4198
+ [Se, he]
4200
4199
  ), qe = Ke(
4201
4200
  async (T) => {
4202
4201
  await Re(T);
@@ -4219,7 +4218,7 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4219
4218
  const Ye = dt[$e];
4220
4219
  if (Ye === void 0) return;
4221
4220
  const bt = Ye + K.length, ut = Ae.slice(0, Ye) + we + Ae.slice(bt);
4222
- ut && Ie(R, ut, R.files);
4221
+ ut && Ne(R, ut, R.files);
4223
4222
  }, tt = (T) => {
4224
4223
  const { entityId: R, entityType: U, activityId: v } = T;
4225
4224
  if (!U || !["version", "task", "folder"].includes(U))
@@ -4234,10 +4233,10 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4234
4233
  Z?.({ files: U, activityId: R, index: T, projectName: i });
4235
4234
  }, [We, Ee] = $(null), Ue = !be && !t && !e, ke = Ke(
4236
4235
  (T) => {
4237
- Ee({ key: xn(), activity: T }), u(rt);
4236
+ Ee({ key: wn(), activity: T }), u(rt);
4238
4237
  },
4239
4238
  [u]
4240
- ), Me = I(() => Cs(10), []), q = Ms({
4239
+ ), Me = N(() => Ds(10), []), q = _s({
4241
4240
  projectName: i,
4242
4241
  enabled: r,
4243
4242
  entityIds: l.map((T) => T.id),
@@ -4245,22 +4244,22 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4245
4244
  loadingActivities: y,
4246
4245
  userName: h
4247
4246
  });
4248
- return /* @__PURE__ */ c(Te, { children: /* @__PURE__ */ x(ds, { className: "feed", children: [
4247
+ return /* @__PURE__ */ c(Te, { children: /* @__PURE__ */ x(ms, { className: "feed", children: [
4249
4248
  void 0,
4250
4249
  /* @__PURE__ */ c(
4251
4250
  to,
4252
4251
  {
4253
- feedFilter: S,
4252
+ feedFilter: I,
4254
4253
  setFeedFilter: P,
4255
4254
  users: f,
4256
4255
  categories: w,
4257
4256
  supportsReviewSession: de,
4258
4257
  isLoading: y,
4259
- onSearchTextChange: N,
4258
+ onSearchTextChange: S,
4260
4259
  checklistCount: A
4261
4260
  }
4262
4261
  ),
4263
- /* @__PURE__ */ x(us, { ref: he, className: ne({ loading: y }, "no-shimmer"), children: [
4262
+ /* @__PURE__ */ x(ps, { ref: he, className: ne({ loading: y }, "no-shimmer"), children: [
4264
4263
  y ? Me : xe.map((T) => /* @__PURE__ */ c(
4265
4264
  Zn,
4266
4265
  {
@@ -4268,7 +4267,7 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4268
4267
  annotationFrameStart: Ge[T.origin?.id],
4269
4268
  onCheckChange: re,
4270
4269
  onDelete: et,
4271
- onUpdate: async (R, U, v, K) => await Ie(T, R, U, K),
4270
+ onUpdate: async (R, U, v, K) => await Ne(T, R, U, K),
4272
4271
  onDuplicate: Ue ? ke : void 0,
4273
4272
  projectInfo: g,
4274
4273
  projectName: i,
@@ -4277,7 +4276,7 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4277
4276
  createdAts: l.map((R) => R.createdAt),
4278
4277
  onFileExpand: je,
4279
4278
  showOrigin: l.length > 1,
4280
- filter: S,
4279
+ filter: I,
4281
4280
  editProps: {
4282
4281
  projectName: i,
4283
4282
  entities: l,
@@ -4291,20 +4290,20 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4291
4290
  },
4292
4291
  T.activityId
4293
4292
  )),
4294
- xe.length === 0 && ae && !j && !y && /* @__PURE__ */ c(It, { message: "No versions published yet", icon: "layers" }),
4293
+ xe.length === 0 && ae && !j && !y && /* @__PURE__ */ c(Nt, { message: "No versions published yet", icon: "layers" }),
4295
4294
  C && M && /* @__PURE__ */ c(
4296
- tr,
4295
+ nr,
4297
4296
  {
4298
4297
  root: he.current,
4299
4298
  onChange: (T) => T && M(),
4300
4299
  rootMargin: "400px 0px 0px 0px",
4301
- children: /* @__PURE__ */ c(ms, { style: { height: 0 }, onClick: () => M(), children: D ? "Loading more..." : "Click to load more" })
4300
+ children: /* @__PURE__ */ c(gs, { style: { height: 0 }, onClick: () => M(), children: D ? "Loading more..." : "Click to load more" })
4302
4301
  }
4303
4302
  ),
4304
- !y && !S.conditions?.length && !E && H?.createdAt && Xe(new Date(H.createdAt)) && /* @__PURE__ */ c(Jn, { children: /* @__PURE__ */ x(Kn, { style: { alignItems: "center" }, children: [
4305
- /* @__PURE__ */ x(Rt, { children: [
4303
+ !y && !I.conditions?.length && !E && H?.createdAt && Xe(new Date(H.createdAt)) && /* @__PURE__ */ c(Jn, { children: /* @__PURE__ */ x(Kn, { style: { alignItems: "center" }, children: [
4304
+ /* @__PURE__ */ x(_t, { children: [
4306
4305
  "Folder created at ",
4307
- St(new Date(H.createdAt), "PPpp"),
4306
+ It(new Date(H.createdAt), "PPpp"),
4308
4307
  " by"
4309
4308
  ] }),
4310
4309
  H.createdBy && /* @__PURE__ */ c(
@@ -4315,7 +4314,7 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4315
4314
  size: 20
4316
4315
  }
4317
4316
  ),
4318
- /* @__PURE__ */ c(Rt, { children: ee?.attrib?.fullName || H.createdBy || "Unknown" })
4317
+ /* @__PURE__ */ c(_t, { children: ee?.attrib?.fullName || H.createdBy || "Unknown" })
4319
4318
  ] }) })
4320
4319
  ] }),
4321
4320
  !be && /* @__PURE__ */ c(
@@ -4339,19 +4338,19 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4339
4338
  ] }) });
4340
4339
  };
4341
4340
  export {
4342
- Yr as A,
4343
- Kr as C,
4344
- Pc as D,
4341
+ Jr as A,
4342
+ Xr as C,
4343
+ Rc as D,
4345
4344
  rt as F,
4346
- mn as P,
4347
- _c as S,
4348
- qr as a,
4345
+ un as P,
4346
+ $c as S,
4347
+ Wr as a,
4349
4348
  it as b,
4350
- $c as c,
4351
- Mc as d,
4352
- Tr as e,
4353
- Rc as f,
4349
+ Oc as c,
4350
+ _c as d,
4351
+ Dr as e,
4352
+ Lc as f,
4354
4353
  vt as g,
4355
- Jr as i,
4356
- ti as r
4354
+ Kr as i,
4355
+ ni as r
4357
4356
  };