@ynput/ayon-frontend-shared 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DetailsPanel.es.js +2 -2
- package/dist/ListTable.es.js +1 -1
- package/dist/NewEntity.es.js +5 -3
- package/dist/ProjectTreeTable.es.js +4153 -4130
- package/dist/ProjectsTable.es.js +5 -4
- package/dist/Slicer.es.js +326 -293
- package/dist/Views.es.js +724 -714
- package/dist/chunks/ColumnDropIndicator.es.js +10 -10
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +44 -38
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/Feed.es.js +41 -39
- package/dist/chunks/FilmstripEntityCard.es.js +1 -1
- package/dist/chunks/GroupSettingsFallback.es.js +3 -2
- package/dist/chunks/MetaWidget.es.js +425 -411
- package/dist/chunks/NewEntityContextInstance.es.js +6 -5
- package/dist/chunks/ReviewablesSelector.es.js +76 -76
- package/dist/chunks/SimpleTable.es.js +151 -149
- package/dist/chunks/Slicer.es.js +637 -617
- package/dist/chunks/TableExportContextInstance.es.js +131 -126
- package/dist/chunks/ThumbnailSimple.es.js +11 -11
- package/dist/chunks/Watchers.es.js +46 -46
- package/dist/chunks/getUris.es.js +1 -1
- package/dist/chunks/searchTerms.es.js +617 -581
- package/dist/chunks/useCreateContextMenu.es.js +15 -13
- package/dist/components.es.js +900 -868
- package/dist/context.es.js +1 -1
- package/dist/hooks.es.js +2 -2
- package/dist/index.es.js +11 -10
- package/dist/types/ContextMenu.d.ts +1 -1
- package/dist/types/Feed.d.ts +1 -1
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/NewEntity.d.ts +2 -0
- package/dist/types/ProjectTreeTable.d.ts +44 -3
- package/dist/types/ProjectsTable.d.ts +1 -1
- package/dist/types/SimpleTable.d.ts +1 -1
- package/dist/types/Slicer.d.ts +7 -1
- package/dist/types/Views.d.ts +5 -0
- package/dist/types/components.d.ts +46 -1
- package/dist/types/context.d.ts +2 -1
- package/dist/types/util.d.ts +21 -0
- package/dist/util.es.js +116 -113
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { createPortal as L } from "react-dom";
|
|
3
3
|
import { createContext as $, useContext as A, useEffect as j } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { bJ as B, a_ as N } from "./searchTerms.es.js";
|
|
5
5
|
import { H as U } from "./getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
7
|
import "lodash";
|
|
@@ -18,16 +18,16 @@ import "./ContextMenuContextInstance.es.js";
|
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "react-router-dom";
|
|
20
20
|
import { U as Y, F as D } from "./FilmstripEntityCard.es.js";
|
|
21
|
-
import p, { keyframes as
|
|
22
|
-
import { E as
|
|
21
|
+
import p, { keyframes as q } from "styled-components";
|
|
22
|
+
import { E as H } from "./EntityTooltip.es.js";
|
|
23
23
|
import { format as b, parse as k } from "date-fns";
|
|
24
|
-
import { g as
|
|
25
|
-
const
|
|
24
|
+
import { g as J, a as Q } from "./getThumbnailUrl.es.js";
|
|
25
|
+
const W = new Set(Object.keys(U).filter((e) => e !== "activity")), G = {
|
|
26
26
|
has_attachments: "activity_data.files",
|
|
27
27
|
// not `entity_type`: on inbox rows that column is always 'user'
|
|
28
28
|
origin_type: "activity_data.origin.type"
|
|
29
29
|
}, V = (e) => !!e && "key" in e, X = (e) => {
|
|
30
|
-
const o =
|
|
30
|
+
const o = G[e.key] ?? e.key;
|
|
31
31
|
if (e.key === "has_attachments")
|
|
32
32
|
return e.value ? { key: o, operator: "ne", value: [] } : null;
|
|
33
33
|
if (e.key === "in_review_session")
|
|
@@ -55,7 +55,7 @@ const G = new Set(Object.keys(U).filter((e) => e !== "activity")), J = {
|
|
|
55
55
|
} : { ...e, key: o };
|
|
56
56
|
}, E = (e) => {
|
|
57
57
|
if (V(e))
|
|
58
|
-
return
|
|
58
|
+
return W.has(e.key) ? null : X(e);
|
|
59
59
|
const o = (e.conditions || []).map((t) => E(t)).filter((t) => t !== null);
|
|
60
60
|
return o.length === 0 ? null : { operator: e.operator || "and", conditions: o };
|
|
61
61
|
}, Z = (e) => {
|
|
@@ -107,7 +107,7 @@ const G = new Set(Object.keys(U).filter((e) => e !== "activity")), J = {
|
|
|
107
107
|
/* @__PURE__ */ i("span", { children: o || e }),
|
|
108
108
|
o && /* @__PURE__ */ i("span", { className: "label", children: e })
|
|
109
109
|
] }) : /* @__PURE__ */ i("span", { children: o || e })
|
|
110
|
-
] }), ie =
|
|
110
|
+
] }), ie = q`
|
|
111
111
|
from {
|
|
112
112
|
opacity: 0.4;
|
|
113
113
|
scale: 0.9;
|
|
@@ -218,7 +218,7 @@ const G = new Set(Object.keys(U).filter((e) => e !== "activity")), J = {
|
|
|
218
218
|
}, ue = ({ type: e, id: o, pos: t }) => {
|
|
219
219
|
const { projectInfo: n, projectName: s } = v();
|
|
220
220
|
return /* @__PURE__ */ i(
|
|
221
|
-
|
|
221
|
+
H,
|
|
222
222
|
{
|
|
223
223
|
entityType: e,
|
|
224
224
|
entityId: o,
|
|
@@ -347,7 +347,7 @@ const G = new Set(Object.keys(U).filter((e) => e !== "activity")), J = {
|
|
|
347
347
|
filmstripFit: T = "contain",
|
|
348
348
|
...S
|
|
349
349
|
}) => {
|
|
350
|
-
const F =
|
|
350
|
+
const F = J({
|
|
351
351
|
projectName: e,
|
|
352
352
|
entityType: o,
|
|
353
353
|
entityId: t,
|
|
@@ -367,7 +367,7 @@ const G = new Set(Object.keys(U).filter((e) => e !== "activity")), J = {
|
|
|
367
367
|
(h || y) && !l && !r && /* @__PURE__ */ i(
|
|
368
368
|
D,
|
|
369
369
|
{
|
|
370
|
-
src: y ||
|
|
370
|
+
src: y || Q({ projectName: e, entityType: o, entityId: t, thumbnailHash: s }),
|
|
371
371
|
fit: T
|
|
372
372
|
}
|
|
373
373
|
)
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as u, jsxs as z, Fragment as ne } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as I, useCallback as ee, useState as O, useEffect as G, useRef as ie, forwardRef as te, useContext as Ae } from "react";
|
|
3
|
-
import { getMixedCounts as je, BorderedSection as
|
|
4
|
-
import { snakeCase as
|
|
3
|
+
import { getMixedCounts as je, BorderedSection as J, Button as Q, applyMixedChange as De, StatusSelect as Ce, AssigneeSelect as Ne, TagsSelect as Ue, EnumDropdown as $e, Icon as V, getMimeTypeIcon as Me, theme as ze, getFileSizeString as Re, WatcherSelect as Le } from "@ynput/ayon-react-components";
|
|
4
|
+
import { snakeCase as We, upperFirst as Pe, intersectionBy as fe } from "lodash";
|
|
5
5
|
import "primereact/confirmdialog";
|
|
6
6
|
import { toast as oe } from "react-toastify";
|
|
7
7
|
import { c as re } from "./copyToClipboard.es.js";
|
|
8
8
|
import "uuid";
|
|
9
|
-
import { aF as ve, b6 as Be, br as ye, b9 as Oe, ba as Ie, bb as Ve,
|
|
9
|
+
import { aF as ve, b6 as Be, br as ye, b9 as Oe, ba as Ie, bb as Ve, bD as _e, by as He, bL as Qe, bq as qe, a as Z, bB as Ge } from "./searchTerms.es.js";
|
|
10
10
|
import be from "axios";
|
|
11
11
|
import m, { keyframes as xe, css as we } from "styled-components";
|
|
12
|
-
import
|
|
13
|
-
import { E as Ke, t as
|
|
12
|
+
import L from "clsx";
|
|
13
|
+
import { E as Ke, t as Ze, M as Je, T as Xe, D as Ye, B as et, l as tt } from "./MetaWidget.es.js";
|
|
14
14
|
import { U as ot, F as ke } from "./FilmstripEntityCard.es.js";
|
|
15
15
|
import { dr as rt, c1 as at, cf as Ee, bl as nt, cA as it, as as st, bA as lt, de as ct } from "./getUris.es.js";
|
|
16
16
|
import "@module-federation/enhanced/runtime";
|
|
17
17
|
import "@ynput/ayon-addon/host";
|
|
18
|
-
import { m as ae, c as dt,
|
|
18
|
+
import { m as ae, c as dt, s as pt, T as ut } from "./TableExportContextInstance.es.js";
|
|
19
19
|
import "semver";
|
|
20
20
|
import "./ContextMenuContextInstance.es.js";
|
|
21
21
|
import "react-dom";
|
|
@@ -281,7 +281,7 @@ const le = [], kt = (e) => {
|
|
|
281
281
|
(l) => ["tags", "status"].includes(l.name) ? l : { ...l, readonly: !0 }
|
|
282
282
|
)
|
|
283
283
|
] : x, S = v ? E.map(
|
|
284
|
-
(l) => v.includes(l.name) || v.includes(
|
|
284
|
+
(l) => v.includes(l.name) || v.includes(We(l.name)) ? l : { ...l, readonly: !0 }
|
|
285
285
|
) : E, y = c ? e.filter((l) => l.scope?.includes(c) && l.name !== "description").filter((l) => !s || s.includes(l.name)).map((l) => ({
|
|
286
286
|
name: "attrib." + l.name,
|
|
287
287
|
data: l.data,
|
|
@@ -439,7 +439,7 @@ const le = [], kt = (e) => {
|
|
|
439
439
|
&:hover {
|
|
440
440
|
background-color: unset;
|
|
441
441
|
}
|
|
442
|
-
`, Mt = m(
|
|
442
|
+
`, Mt = m(Ze)`
|
|
443
443
|
&.enum:hover {
|
|
444
444
|
background-color: unset;
|
|
445
445
|
}
|
|
@@ -471,8 +471,8 @@ const le = [], kt = (e) => {
|
|
|
471
471
|
if (!(!a || i.length < 2 || n !== "list_of_strings"))
|
|
472
472
|
return je(
|
|
473
473
|
i.map((D) => {
|
|
474
|
-
const
|
|
475
|
-
return Array.isArray(
|
|
474
|
+
const W = e.name === "tags" ? D.tags : e.name.startsWith("attrib.") ? D.attrib?.[e.name.slice(7)] : void 0;
|
|
475
|
+
return Array.isArray(W) ? W.map(String) : [];
|
|
476
476
|
})
|
|
477
477
|
);
|
|
478
478
|
}, [a, i, n, e.name]), N = $ && {
|
|
@@ -519,8 +519,8 @@ const le = [], kt = (e) => {
|
|
|
519
519
|
);
|
|
520
520
|
case _e(e.data): {
|
|
521
521
|
const D = n?.includes("list");
|
|
522
|
-
let
|
|
523
|
-
D ?
|
|
522
|
+
let W = [];
|
|
523
|
+
D ? W = Array.isArray(C) ? C : [] : g ? W = [] : W = [C];
|
|
524
524
|
let P = k.map((U) => ({
|
|
525
525
|
value: U.value,
|
|
526
526
|
label: U.label,
|
|
@@ -539,14 +539,14 @@ const le = [], kt = (e) => {
|
|
|
539
539
|
label: U.name,
|
|
540
540
|
icon: U.icon,
|
|
541
541
|
color: U.color
|
|
542
|
-
}))), e.allowNone &&
|
|
542
|
+
}))), e.allowNone && W.length && !D && C && C !== "" && (P = [
|
|
543
543
|
{ value: "", label: `No ${e.data.title || e.name}` },
|
|
544
544
|
...P
|
|
545
545
|
]), /* @__PURE__ */ u(
|
|
546
546
|
$t,
|
|
547
547
|
{
|
|
548
548
|
"data-tooltip": l,
|
|
549
|
-
value:
|
|
549
|
+
value: W,
|
|
550
550
|
options: P,
|
|
551
551
|
type: n,
|
|
552
552
|
pt: {
|
|
@@ -571,7 +571,7 @@ const le = [], kt = (e) => {
|
|
|
571
571
|
case (n === "string" || n === "integer" || n === "float"):
|
|
572
572
|
default:
|
|
573
573
|
return v === "markdown" ? /* @__PURE__ */ u(
|
|
574
|
-
|
|
574
|
+
Je,
|
|
575
575
|
{
|
|
576
576
|
value: C.toString(),
|
|
577
577
|
onCancelEdit: d,
|
|
@@ -645,7 +645,7 @@ const le = [], kt = (e) => {
|
|
|
645
645
|
margin-top: 6px;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
`,
|
|
648
|
+
`, Lt = m.div`
|
|
649
649
|
height: 32px;
|
|
650
650
|
overflow: hidden;
|
|
651
651
|
width: 100%;
|
|
@@ -681,7 +681,7 @@ const le = [], kt = (e) => {
|
|
|
681
681
|
&.readonly {
|
|
682
682
|
pointer-events: none;
|
|
683
683
|
}
|
|
684
|
-
`,
|
|
684
|
+
`, Wt = m.div`
|
|
685
685
|
display: flex;
|
|
686
686
|
flex-direction: column;
|
|
687
687
|
gap: var(--base-gap-small);
|
|
@@ -731,11 +731,11 @@ const le = [], kt = (e) => {
|
|
|
731
731
|
}, S = () => {
|
|
732
732
|
n(null);
|
|
733
733
|
};
|
|
734
|
-
return t ? /* @__PURE__ */ u(
|
|
734
|
+
return t ? /* @__PURE__ */ u(J, { title: "Attributes", withPadding: !0, children: Array.from({ length: 10 }).map((y, k) => /* @__PURE__ */ z(Pt, { children: [
|
|
735
735
|
/* @__PURE__ */ u("div", { className: "loading" }),
|
|
736
736
|
/* @__PURE__ */ u("div", { className: "loading" })
|
|
737
737
|
] }, k)) }) : /* @__PURE__ */ u(
|
|
738
|
-
|
|
738
|
+
J,
|
|
739
739
|
{
|
|
740
740
|
title: "Attributes",
|
|
741
741
|
autoHeight: !0,
|
|
@@ -747,7 +747,7 @@ const le = [], kt = (e) => {
|
|
|
747
747
|
return /* @__PURE__ */ z(
|
|
748
748
|
Te,
|
|
749
749
|
{
|
|
750
|
-
className:
|
|
750
|
+
className: L("field-row", { "multi-line": y.data.widget === "markdown" }),
|
|
751
751
|
children: [
|
|
752
752
|
/* @__PURE__ */ u(
|
|
753
753
|
Se,
|
|
@@ -759,9 +759,9 @@ const le = [], kt = (e) => {
|
|
|
759
759
|
}
|
|
760
760
|
),
|
|
761
761
|
/* @__PURE__ */ u(
|
|
762
|
-
|
|
762
|
+
Lt,
|
|
763
763
|
{
|
|
764
|
-
className:
|
|
764
|
+
className: L("field-value", {
|
|
765
765
|
editing: j,
|
|
766
766
|
readonly: w
|
|
767
767
|
}),
|
|
@@ -788,7 +788,7 @@ const le = [], kt = (e) => {
|
|
|
788
788
|
)
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
/* @__PURE__ */ u(
|
|
791
|
+
/* @__PURE__ */ u(Wt, { className: "field-tools", children: /* @__PURE__ */ u(
|
|
792
792
|
Q,
|
|
793
793
|
{
|
|
794
794
|
className: "tool",
|
|
@@ -879,11 +879,11 @@ const le = [], kt = (e) => {
|
|
|
879
879
|
}
|
|
880
880
|
return a.toString();
|
|
881
881
|
};
|
|
882
|
-
return r ? /* @__PURE__ */ u(
|
|
882
|
+
return r ? /* @__PURE__ */ u(J, { title: "Details", withPadding: !0, children: Array.from({ length: 6 }).map((a, d) => /* @__PURE__ */ z(pe, { children: [
|
|
883
883
|
/* @__PURE__ */ u(ue, { style: { width: "80px" } }),
|
|
884
884
|
/* @__PURE__ */ u(ue, { style: { width: "120px", justifySelf: "end" } }),
|
|
885
885
|
/* @__PURE__ */ u("div", { style: { width: "24px" } })
|
|
886
|
-
] }, d)) }) : /* @__PURE__ */ u(
|
|
886
|
+
] }, d)) }) : /* @__PURE__ */ u(J, { title: "Details", autoHeight: !0, showHeader: !0, withPadding: !0, children: e.filter((a) => !a.hidden).map((a) => {
|
|
887
887
|
const d = t[a.name], p = o.includes(a.name), i = p ? "Multiple values" : c(d, a.name), s = ["createdBy", "updatedBy"].includes(a.name) && !p ? g.find((n) => n.name === d) : void 0;
|
|
888
888
|
return /* @__PURE__ */ z(pe, { children: [
|
|
889
889
|
/* @__PURE__ */ u(Se, { name: a.name, data: a.data, showDetailedTooltip: !0 }),
|
|
@@ -974,7 +974,7 @@ const le = [], kt = (e) => {
|
|
|
974
974
|
const H = K.get(B) || [];
|
|
975
975
|
return _ ? { [_]: H } : H;
|
|
976
976
|
});
|
|
977
|
-
}, F = o?.projectName || e[0]?.projectName, D = e[0]?.id,
|
|
977
|
+
}, F = o?.projectName || e[0]?.projectName, D = e[0]?.id, W = I(
|
|
978
978
|
() => F && D ? { projectName: F, entityType: S, entityId: D, productTypes: s, taskTypes: p } : void 0,
|
|
979
979
|
[F, S, D, s, p]
|
|
980
980
|
), P = ({ type: A, id: M }) => {
|
|
@@ -994,7 +994,7 @@ const le = [], kt = (e) => {
|
|
|
994
994
|
enableEditing: R,
|
|
995
995
|
onChange: Fe,
|
|
996
996
|
isLoading: t,
|
|
997
|
-
mentionsContext:
|
|
997
|
+
mentionsContext: W,
|
|
998
998
|
onMentionClick: P,
|
|
999
999
|
onMentionHover: U
|
|
1000
1000
|
}
|
|
@@ -1381,7 +1381,7 @@ const le = [], kt = (e) => {
|
|
|
1381
1381
|
}, 1e4), () => {
|
|
1382
1382
|
cancelAnimationFrame(v), window.clearInterval(h), window.clearTimeout(x), s && (s.removeEventListener("load", y), s.removeEventListener("error", k));
|
|
1383
1383
|
};
|
|
1384
|
-
}, [t]), /* @__PURE__ */ z(Ht, { ...r, className:
|
|
1384
|
+
}, [t]), /* @__PURE__ */ z(Ht, { ...r, className: L("file-thumbnail", r.className), children: [
|
|
1385
1385
|
a ? /* @__PURE__ */ u(V, { icon: Me(e) }) : /* @__PURE__ */ u(Qt, { icon: "progress_activity" }),
|
|
1386
1386
|
/* @__PURE__ */ u(
|
|
1387
1387
|
qt,
|
|
@@ -1395,7 +1395,7 @@ const le = [], kt = (e) => {
|
|
|
1395
1395
|
onLoad: (f) => {
|
|
1396
1396
|
f.currentTarget === p.current && (d(!0), c(!1));
|
|
1397
1397
|
},
|
|
1398
|
-
className:
|
|
1398
|
+
className: L({ hidden: !a || g })
|
|
1399
1399
|
}
|
|
1400
1400
|
),
|
|
1401
1401
|
o && /* @__PURE__ */ u(ke, { src: o, fit: "cover" })
|
|
@@ -1467,7 +1467,7 @@ const le = [], kt = (e) => {
|
|
|
1467
1467
|
background-color: var(--md-sys-color-primary-container);
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
`,
|
|
1470
|
+
`, Zt = m.div`
|
|
1471
1471
|
display: flex;
|
|
1472
1472
|
flex-direction: column;
|
|
1473
1473
|
flex: 1;
|
|
@@ -1492,7 +1492,7 @@ const le = [], kt = (e) => {
|
|
|
1492
1492
|
.name {
|
|
1493
1493
|
color: var(--md-sys-color-outline);
|
|
1494
1494
|
}
|
|
1495
|
-
`,
|
|
1495
|
+
`, Jt = m.div`
|
|
1496
1496
|
display: flex;
|
|
1497
1497
|
align-items: center;
|
|
1498
1498
|
gap: var(--base-gap-small);
|
|
@@ -1553,7 +1553,7 @@ const le = [], kt = (e) => {
|
|
|
1553
1553
|
{
|
|
1554
1554
|
id: o,
|
|
1555
1555
|
ref: x,
|
|
1556
|
-
className:
|
|
1556
|
+
className: L({
|
|
1557
1557
|
draggable: E,
|
|
1558
1558
|
"drop-placeholder": p,
|
|
1559
1559
|
"drag-overlay": d,
|
|
@@ -1572,8 +1572,8 @@ const le = [], kt = (e) => {
|
|
|
1572
1572
|
filmstripSrc: !f && a?.startsWith("video/") ? vt(t, o) : null
|
|
1573
1573
|
}
|
|
1574
1574
|
),
|
|
1575
|
-
/* @__PURE__ */ z(
|
|
1576
|
-
/* @__PURE__ */ z(
|
|
1575
|
+
/* @__PURE__ */ z(Zt, { children: [
|
|
1576
|
+
/* @__PURE__ */ z(Jt, { children: [
|
|
1577
1577
|
/* @__PURE__ */ u("h4", { children: j }),
|
|
1578
1578
|
!!v && /* @__PURE__ */ u(Xt, { icon: "edit", variant: "text", className: "edit", onClick: v })
|
|
1579
1579
|
] }),
|
|
@@ -1737,13 +1737,13 @@ const le = [], kt = (e) => {
|
|
|
1737
1737
|
return /* @__PURE__ */ z(
|
|
1738
1738
|
oo,
|
|
1739
1739
|
{
|
|
1740
|
-
className:
|
|
1740
|
+
className: L({ finished: t === 100, error: !!a, [r]: !0 }),
|
|
1741
1741
|
id: g,
|
|
1742
1742
|
...i,
|
|
1743
1743
|
children: [
|
|
1744
1744
|
/* @__PURE__ */ z(ao, { children: [
|
|
1745
1745
|
c && /* @__PURE__ */ u("img", { src: c }),
|
|
1746
|
-
n && /* @__PURE__ */ u(V, { icon: n, className:
|
|
1746
|
+
n && /* @__PURE__ */ u(V, { icon: n, className: L({ spinning: s }) })
|
|
1747
1747
|
] }),
|
|
1748
1748
|
/* @__PURE__ */ z("span", { className: "content", children: [
|
|
1749
1749
|
/* @__PURE__ */ u("span", { className: "name", children: e }),
|
|
@@ -1897,7 +1897,7 @@ const jr = m.div`
|
|
|
1897
1897
|
$.reviewables || ($.reviewables = []), $.reviewables.push(l);
|
|
1898
1898
|
}
|
|
1899
1899
|
)
|
|
1900
|
-
), g && c(
|
|
1900
|
+
), g && c(Z.util.invalidateTags([{ type: "viewer", id: g }])), c(Z.util.invalidateTags([{ type: "viewer", id: h }])), r && c(Z.util.invalidateTags([{ type: "viewer", id: r }])), o && c(Z.util.invalidateTags([{ type: "viewer", id: o }])), f(q(w.name)));
|
|
1901
1901
|
}, k = (w) => (T) => {
|
|
1902
1902
|
h && (console.error(`Upload failed for ${w.name}: ${T}`), i((l) => {
|
|
1903
1903
|
const N = (l[h] || []).map((R) => R.name !== q(w.name) ? R : {
|
|
@@ -2012,7 +2012,7 @@ const jr = m.div`
|
|
|
2012
2012
|
/* @__PURE__ */ u(
|
|
2013
2013
|
no,
|
|
2014
2014
|
{
|
|
2015
|
-
className:
|
|
2015
|
+
className: L(n, i, { dragging: E }),
|
|
2016
2016
|
...x,
|
|
2017
2017
|
onDragEnter: () => !v && S(!0),
|
|
2018
2018
|
onDragOver: (b) => b.preventDefault(),
|
|
@@ -2047,7 +2047,7 @@ const jr = m.div`
|
|
|
2047
2047
|
io,
|
|
2048
2048
|
{
|
|
2049
2049
|
id: "upload",
|
|
2050
|
-
className:
|
|
2050
|
+
className: L("upload", i),
|
|
2051
2051
|
style: C,
|
|
2052
2052
|
...h?.upload,
|
|
2053
2053
|
children: [
|
|
@@ -2170,13 +2170,13 @@ const jr = m.div`
|
|
|
2170
2170
|
|
|
2171
2171
|
max-height: 500px;
|
|
2172
2172
|
overflow: auto;
|
|
2173
|
-
`,
|
|
2173
|
+
`, Lr = m.li`
|
|
2174
2174
|
padding: var(--base-gap-small);
|
|
2175
2175
|
border-radius: var(--border-radius-m);
|
|
2176
2176
|
color: var(--md-sys-color-on-surface);
|
|
2177
2177
|
min-width: max-content;
|
|
2178
2178
|
width: 100%;
|
|
2179
|
-
`,
|
|
2179
|
+
`, Wr = te(
|
|
2180
2180
|
({ children: e, segment: t, isOpen: o, scope: r, projectName: g, ...c }, a) => {
|
|
2181
2181
|
const { openSlideOut: d } = ae(), p = t?.type !== "product" && t?.type !== "project", i = () => {
|
|
2182
2182
|
if (!p) return;
|
|
@@ -2349,7 +2349,7 @@ const jr = m.div`
|
|
|
2349
2349
|
}, [y]), /* @__PURE__ */ z(
|
|
2350
2350
|
po,
|
|
2351
2351
|
{
|
|
2352
|
-
className:
|
|
2352
|
+
className: L(p, "thumbnail", {
|
|
2353
2353
|
loading: d && (a || !w),
|
|
2354
2354
|
loaded: w,
|
|
2355
2355
|
error: k,
|
|
@@ -2435,7 +2435,7 @@ const jr = m.div`
|
|
|
2435
2435
|
go,
|
|
2436
2436
|
{
|
|
2437
2437
|
$length: e.length,
|
|
2438
|
-
className:
|
|
2438
|
+
className: L("stacked-thumbnails", o, { stacking: d }),
|
|
2439
2439
|
children: e.map(
|
|
2440
2440
|
(p, i) => p ? /* @__PURE__ */ u(
|
|
2441
2441
|
mo,
|
|
@@ -2484,7 +2484,7 @@ const jr = m.div`
|
|
|
2484
2484
|
}
|
|
2485
2485
|
};
|
|
2486
2486
|
return /* @__PURE__ */ u(
|
|
2487
|
-
|
|
2487
|
+
Le,
|
|
2488
2488
|
{
|
|
2489
2489
|
align: "right",
|
|
2490
2490
|
...g,
|
|
@@ -2530,8 +2530,8 @@ export {
|
|
|
2530
2530
|
kr as e,
|
|
2531
2531
|
Nr as f,
|
|
2532
2532
|
Rr as g,
|
|
2533
|
-
|
|
2534
|
-
|
|
2533
|
+
Wr as h,
|
|
2534
|
+
Lr as i,
|
|
2535
2535
|
Ur as j,
|
|
2536
2536
|
ar as k,
|
|
2537
2537
|
St as l,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aj as rs, aU as he, aO as P, ak as Ne, ab as O,
|
|
1
|
+
import { aj as rs, aU as he, aO as P, ak as Ne, ab as O, bD as Fs, aI as R, aE as yt, bv as F, az as le, a as _s, bs as Rs, aQ as Gs, aJ as M, al as Le, an as Cs, ap as Ns, aq as Qs, as as Ms, bo as Vs, au as Os, aK as Ds, aM as $s, bj as as, aR as xs, aT as Us, aV as X, aY as Bs, aZ as rt, a_ as qs, af as de, aA as Hs, bk as Ws, bl as zs, b0 as Ks } from "./searchTerms.es.js";
|
|
2
2
|
import "lodash";
|
|
3
3
|
import "primereact/confirmdialog";
|
|
4
4
|
import { toast as os } from "react-toastify";
|