@ynput/ayon-frontend-shared 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ContextMenu.es.js +34 -16
- package/dist/DetailsPanel.es.js +307 -311
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +99 -92
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4459 -2959
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/api.es.js +331 -329
- package/dist/chunks/Actions.es.js +32 -27
- package/dist/chunks/ColumnDropIndicator.es.js +174 -328
- package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
- package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
- package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +74 -69
- package/dist/chunks/EntityPickerDialog.es.js +25 -21
- package/dist/chunks/EntityTooltip.es.js +29 -22
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +2321 -2668
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -256
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2895 -4919
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +4215 -1179
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +4 -4
- package/dist/chunks/ReviewablesSelector.es.js +468 -460
- package/dist/chunks/SimpleForm.es.js +18 -18
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +109 -98
- package/dist/chunks/TableSettingsFallback.es.js +22 -10
- package/dist/chunks/ThumbnailSimple.es.js +290 -52
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +669 -644
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/expandRelativeDates.es.js +27 -0
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getUris.es.js +737 -710
- package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
- package/dist/chunks/searchTerms.es.js +179 -174
- package/dist/chunks/useAttributeEnums.es.js +9 -9
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useDateRangeFilter.es.js +3 -3
- package/dist/chunks/useHierarchySelection.es.js +24 -0
- package/dist/chunks/useLoadModule.es.js +74 -0
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
- package/dist/chunks/versionUploadHelpers.es.js +16 -42
- package/dist/chunks/viewUpdateHelper.es.js +74 -57
- package/dist/components.es.js +1432 -1001
- package/dist/context.es.js +791 -78
- package/dist/hooks.es.js +95 -94
- package/dist/index.es.js +27 -26
- package/dist/types/Actions.d.ts +15 -15
- package/dist/types/ContextMenu.d.ts +19 -16
- package/dist/types/DetailsPanel.d.ts +110 -17
- package/dist/types/EntityPickerDialog.d.ts +15 -15
- package/dist/types/Feed.d.ts +19 -16
- package/dist/types/ListTable.d.ts +15 -15
- package/dist/types/NewEntity.d.ts +24 -18
- package/dist/types/ProjectTreeTable.d.ts +34 -123
- package/dist/types/RepresentationsList.d.ts +15 -15
- package/dist/types/SimpleTable.d.ts +19 -16
- package/dist/types/Slicer.d.ts +18 -15
- package/dist/types/Views.d.ts +19 -16
- package/dist/types/api.d.ts +515 -207
- package/dist/types/components.d.ts +84 -20
- package/dist/types/context.d.ts +108 -25
- package/dist/types/hooks.d.ts +15 -15
- package/dist/types/index.d.ts +15 -15
- package/dist/types/util.d.ts +20 -15
- package/dist/util.es.js +117 -105
- package/package.json +16 -4
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- package/dist/chunks/GlobalContext.es.js +0 -52
- package/dist/chunks/NewEntityContext.es.js +0 -1242
- package/dist/chunks/ProjectFoldersContext.es.js +0 -134
- package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
- package/dist/chunks/VersionUploadContext.es.js +0 -232
- package/dist/chunks/ViewsContext.es.js +0 -878
- package/dist/chunks/mentionTypeOptions.es.js +0 -15
- package/dist/chunks/useColumnDragRestriction.es.js +0 -148
- package/dist/chunks/useLocalStorage.es.js +0 -355
- /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
package/dist/components.es.js
CHANGED
|
@@ -1,376 +1,390 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { m as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { matchSorter as
|
|
6
|
-
import { InputText as
|
|
7
|
-
import
|
|
8
|
-
import { B as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { createPortal as
|
|
12
|
-
import { format as
|
|
13
|
-
import {
|
|
14
|
-
import { C as
|
|
15
|
-
import {
|
|
16
|
-
import { D as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { E as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
1
|
+
import { C as Ye, S as $e, A as Se, a as je, T as Ke, D as Xe, b as Je, c as Qe, d as ke, e as Oe, f as qe, g as Ze, h as et, M as tt, F as st, i as at, j as ot, k as nt, l as rt } from "./chunks/ReviewablesSelector.es.js";
|
|
2
|
+
import { m as ia, n as ca, o as ua, p as da, q as pa, r as fa, s as ma, E as ha, t as ga, u as ba, v as wa, w as ya, x as va, G as Ea, y as Ca, L as Sa, P as ka, z as Oa, R as Da, B as Va, H as Ta, I as Ra, J as Ia, K as Fa, N as Aa, O as Pa, Q as _a, U as xa, V as Na, W as La, X as Ma, Y as Ba } from "./chunks/ReviewablesSelector.es.js";
|
|
3
|
+
import { jsxs as z, jsx as C } from "react/jsx-runtime";
|
|
4
|
+
import { useState as _, useRef as oe, useCallback as ee, useEffect as Y, useMemo as me, useContext as lt } from "react";
|
|
5
|
+
import { matchSorter as De } from "match-sorter";
|
|
6
|
+
import { InputText as it, Icon as le, Section as ct, SEARCH_FILTER_ID as ut } from "@ynput/ayon-react-components";
|
|
7
|
+
import ue from "clsx";
|
|
8
|
+
import { B as Wa, a as Ha, S as za } from "./chunks/SimpleForm.es.js";
|
|
9
|
+
import { d as dt, P as pt } from "./chunks/MetaWidget.es.js";
|
|
10
|
+
import { i as Ya, D as $a, E as ja, L as Ka, j as Xa, k as Ja } from "./chunks/MetaWidget.es.js";
|
|
11
|
+
import { createPortal as ft } from "react-dom";
|
|
12
|
+
import { format as re, parseISO as Ne, isValid as Le } from "date-fns";
|
|
13
|
+
import { B as Ve, b as Me, c as we, g as ye } from "./chunks/PlayableIcon.es.js";
|
|
14
|
+
import { C as qa, a as Za, e as eo, D as to, N as so, U as ao, h as oo, i as no, d as ro, f as lo, j as io } from "./chunks/PlayableIcon.es.js";
|
|
15
|
+
import { d as Be, x as mt, a as ht, e as gt } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
16
|
+
import { f as uo, D as po, R as fo } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
17
|
+
import { p as bt, a as Te } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
|
|
18
|
+
import { D as ho, b as go, c as bo, d as wo, e as yo, s as vo } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
|
|
19
|
+
import { D as Co } from "./chunks/DetailsDialog.es.js";
|
|
20
|
+
import { q as wt, r as yt, b as vt } from "./chunks/Watchers.es.js";
|
|
21
|
+
import { s as ko, t as Oo, v as Do, R as Vo, h as To, g as Ro, w as Io, x as Fo, W as Ao, i as Po } from "./chunks/Watchers.es.js";
|
|
22
|
+
import { E as xo, P as No } from "./chunks/EmptyPlaceholder.es.js";
|
|
23
|
+
import { E as Mo, b as Bo, c as Uo, d as Wo, a as Ho, M as zo, e as Go } from "./chunks/Menu.es.js";
|
|
24
|
+
import { I as $o } from "./chunks/InfoMessage.es.js";
|
|
25
|
+
import { J as Ko } from "./chunks/JsonViewer.es.js";
|
|
26
|
+
import { E as Jo, a as Qo, R as qo, g as Zo } from "./chunks/EntityPath.es.js";
|
|
27
|
+
import { E as tn, a as sn } from "./chunks/EntityTooltip.es.js";
|
|
28
|
+
import { bj as Re, bp as Et, br as Ct } from "./chunks/searchTerms.es.js";
|
|
29
|
+
import { bK as St, bP as kt, ct as Ot, aJ as Dt, aO as Vt, bF as Tt, bm as Rt, dj as It, c6 as Ft, bN as At } from "./chunks/getUris.es.js";
|
|
29
30
|
export * from "primereact/confirmdialog";
|
|
30
|
-
import { toast as Te } from "react-toastify";
|
|
31
|
-
import { a as ct } from "./chunks/ProjectContext.es.js";
|
|
32
|
-
import "react-quill-ayon";
|
|
33
|
-
import "react-markdown";
|
|
34
|
-
import "remark-gfm";
|
|
35
|
-
import "rehype-raw";
|
|
36
|
-
import { isEmpty as dt, upperFirst as ae } from "lodash";
|
|
37
|
-
import "uuid";
|
|
38
|
-
import { u as pt, c as ft, p as ge } from "./chunks/useLocalStorage.es.js";
|
|
39
31
|
import "@module-federation/enhanced/runtime";
|
|
32
|
+
import { isEmpty as Pt, upperFirst as de } from "lodash";
|
|
33
|
+
import { toast as he } from "react-toastify";
|
|
34
|
+
import "uuid";
|
|
40
35
|
import "semver";
|
|
41
|
-
import "./chunks/
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
36
|
+
import "./chunks/ContextMenuContextInstance.es.js";
|
|
37
|
+
import "react-redux";
|
|
38
|
+
import { F as _t } from "./chunks/ColumnDropIndicator.styled.es.js";
|
|
39
|
+
import { C as nn, S as rn, b as ln, u as cn } from "./chunks/ColumnDropIndicator.styled.es.js";
|
|
40
|
+
import { F as dn } from "./chunks/FilterErrorActions.es.js";
|
|
41
|
+
import "lexical";
|
|
42
|
+
import "@lexical/markdown";
|
|
43
|
+
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
44
|
+
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
45
|
+
import "@lexical/code";
|
|
46
|
+
import "@lexical/list";
|
|
47
|
+
import "@lexical/rich-text";
|
|
48
|
+
import "@lexical/selection";
|
|
49
|
+
import "@lexical/utils";
|
|
50
|
+
import { T as fn } from "./chunks/TableSettingsFallback.es.js";
|
|
51
|
+
import { a as xt, b as Nt } from "./chunks/viewUpdateHelper.es.js";
|
|
52
|
+
import { useSearchParams as Lt, useLocation as Mt, useNavigate as Bt, useParams as Ut } from "react-router-dom";
|
|
53
|
+
import { g as Wt, c as Ht, b as zt, d as Gt } from "./chunks/Slicer.es.js";
|
|
54
|
+
import { l as hn } from "./chunks/Slicer.es.js";
|
|
55
|
+
import { Splitter as Yt, SplitterPanel as Ie } from "primereact/splitter";
|
|
56
|
+
import { g as ae } from "./chunks/getEntityTypeIcon.es.js";
|
|
57
|
+
import { g as j } from "./chunks/parseHtmlToPlainTextWithLinks.es.js";
|
|
58
|
+
import { u as bn } from "./chunks/useDateRangeFilter.es.js";
|
|
59
|
+
import { C as yn, T as vn } from "./chunks/ThumbnailSimple.es.js";
|
|
60
|
+
import { S as Cn } from "./chunks/SimpleFormDialog.es.js";
|
|
61
|
+
import { T as kn } from "./chunks/EntityPickerDialog.es.js";
|
|
62
|
+
import { e as $t } from "./chunks/extractVersionFromFilename.es.js";
|
|
63
|
+
import { b as jt, c as Kt, v as Xt } from "./chunks/versionUploadHelpers.es.js";
|
|
64
|
+
import { p as Jt } from "./chunks/parseFilename.es.js";
|
|
65
|
+
import { V as Qt } from "./chunks/VersionUploadContextInstance.es.js";
|
|
66
|
+
import { u as Dn, a as Vn } from "./chunks/VersionUploadContextInstance.es.js";
|
|
67
|
+
import { C as Rn } from "./chunks/ColumnHeaderMenuUI.es.js";
|
|
68
|
+
const Fe = 500, qt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, js = ({
|
|
69
|
+
shareOptions: t,
|
|
70
|
+
existingAccess: e,
|
|
71
|
+
owner: i,
|
|
72
|
+
placeholder: c = "Add people or access groups",
|
|
73
|
+
disabled: o = !1,
|
|
74
|
+
mode: s = "internal",
|
|
75
|
+
onSelectOption: a,
|
|
76
|
+
pt: h,
|
|
77
|
+
...l
|
|
69
78
|
}) => {
|
|
70
|
-
const [
|
|
71
|
-
const
|
|
72
|
-
return O !==
|
|
73
|
-
}),
|
|
79
|
+
const [f, n] = _(""), [E, y] = _(!1), [D, m] = _(-1), F = oe(null), R = t.filter((V) => !e.includes(V.value)).toSorted((V, b) => {
|
|
80
|
+
const v = (p) => p.value === "__everyone__" ? 0 : p.value.startsWith("__") ? 1 : p.value.startsWith("team:") ? 2 : p.value.startsWith("group:") ? 3 : p.value.startsWith("user:") ? 4 : 5, O = v(V), r = v(b);
|
|
81
|
+
return O !== r ? O - r : V.label.localeCompare(b.label);
|
|
82
|
+
}), g = (f ? De(R, f, {
|
|
74
83
|
keys: ["name", "label", "value"],
|
|
75
|
-
threshold:
|
|
76
|
-
}) :
|
|
77
|
-
|
|
78
|
-
},
|
|
84
|
+
threshold: De.rankings.CONTAINS
|
|
85
|
+
}) : R).slice(0, Fe), T = qt.test(f) && !t.some((V) => V.name === f) && s === "external", I = () => {
|
|
86
|
+
y(!0), m(-1);
|
|
87
|
+
}, L = () => {
|
|
79
88
|
setTimeout(() => {
|
|
80
|
-
|
|
89
|
+
y(!1), m(-1);
|
|
81
90
|
}, 200);
|
|
82
|
-
}, N = (
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
if (!
|
|
86
|
-
|
|
91
|
+
}, N = (V) => {
|
|
92
|
+
n(V.target.value), m(-1), y(!0);
|
|
93
|
+
}, M = (V) => {
|
|
94
|
+
if (!E || g.length === 0) {
|
|
95
|
+
V.key === "Enter" && g.length > 0 && (V.preventDefault(), G(g[0]));
|
|
87
96
|
return;
|
|
88
97
|
}
|
|
89
|
-
switch (
|
|
98
|
+
switch (V.key) {
|
|
90
99
|
case "ArrowDown":
|
|
91
|
-
|
|
100
|
+
V.preventDefault(), m((b) => b < g.length - 1 ? b + 1 : b);
|
|
92
101
|
break;
|
|
93
102
|
case "ArrowUp":
|
|
94
|
-
|
|
103
|
+
V.preventDefault(), m((b) => b > 0 ? b - 1 : -1);
|
|
95
104
|
break;
|
|
96
105
|
case "Enter":
|
|
97
|
-
|
|
106
|
+
V.preventDefault(), D >= 0 && D < g.length ? G(g[D]) : g.length > 0 && G(g[0]);
|
|
98
107
|
break;
|
|
99
108
|
case "Escape":
|
|
100
|
-
|
|
109
|
+
y(!1), m(-1), F.current?.blur(), V.stopPropagation();
|
|
101
110
|
break;
|
|
102
111
|
}
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
|
|
112
|
+
}, G = (V) => {
|
|
113
|
+
a(V, 10), n(""), y(!1), m(-1), F.current?.focus();
|
|
114
|
+
}, $ = () => {
|
|
115
|
+
a(
|
|
107
116
|
{
|
|
108
|
-
name:
|
|
109
|
-
label:
|
|
110
|
-
value:
|
|
117
|
+
name: f,
|
|
118
|
+
label: f,
|
|
119
|
+
value: f,
|
|
111
120
|
shareType: "guest"
|
|
112
121
|
},
|
|
113
122
|
10
|
|
114
|
-
),
|
|
123
|
+
), n(""), y(!1), m(-1), F.current?.focus();
|
|
115
124
|
};
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
|
|
125
|
+
return /* @__PURE__ */ z(Ye, { ...l, children: [
|
|
126
|
+
/* @__PURE__ */ C(
|
|
127
|
+
it,
|
|
119
128
|
{
|
|
120
|
-
ref:
|
|
121
|
-
value:
|
|
122
|
-
placeholder:
|
|
123
|
-
disabled:
|
|
124
|
-
onFocus:
|
|
125
|
-
onClick:
|
|
126
|
-
onBlur:
|
|
129
|
+
ref: F,
|
|
130
|
+
value: f,
|
|
131
|
+
placeholder: c,
|
|
132
|
+
disabled: o,
|
|
133
|
+
onFocus: I,
|
|
134
|
+
onClick: I,
|
|
135
|
+
onBlur: L,
|
|
127
136
|
onChange: N,
|
|
128
|
-
onKeyDown:
|
|
137
|
+
onKeyDown: M,
|
|
129
138
|
style: { width: "100%" }
|
|
130
139
|
}
|
|
131
140
|
),
|
|
132
|
-
|
|
133
|
-
|
|
141
|
+
E && (g.length > 0 || T) && /* @__PURE__ */ z(
|
|
142
|
+
$e,
|
|
134
143
|
{
|
|
135
|
-
...
|
|
136
|
-
className:
|
|
144
|
+
...h?.list,
|
|
145
|
+
className: ue(h?.list?.className, { "no-owner": !i }),
|
|
137
146
|
children: [
|
|
138
|
-
|
|
139
|
-
|
|
147
|
+
g.map((V, b) => /* @__PURE__ */ C(
|
|
148
|
+
Se,
|
|
140
149
|
{
|
|
141
|
-
name:
|
|
142
|
-
label:
|
|
143
|
-
shareType:
|
|
150
|
+
name: V.name,
|
|
151
|
+
label: V.label,
|
|
152
|
+
shareType: V.shareType,
|
|
144
153
|
isOwner: !1,
|
|
145
154
|
isMe: !1,
|
|
146
|
-
"data-index":
|
|
147
|
-
className:
|
|
155
|
+
"data-index": b,
|
|
156
|
+
className: b === D ? "highlighted" : "",
|
|
148
157
|
style: { cursor: "pointer" },
|
|
149
|
-
onClick: () =>
|
|
150
|
-
onMouseEnter: () =>
|
|
158
|
+
onClick: () => G(V),
|
|
159
|
+
onMouseEnter: () => m(b),
|
|
151
160
|
isCompact: !0,
|
|
152
161
|
isSearchResult: !0
|
|
153
162
|
},
|
|
154
|
-
|
|
163
|
+
V.value
|
|
155
164
|
)),
|
|
156
|
-
|
|
157
|
-
|
|
165
|
+
T && /* @__PURE__ */ C(
|
|
166
|
+
Se,
|
|
158
167
|
{
|
|
159
|
-
name:
|
|
160
|
-
label:
|
|
168
|
+
name: f,
|
|
169
|
+
label: f,
|
|
161
170
|
shareType: "guest",
|
|
162
171
|
isOwner: !1,
|
|
163
172
|
isMe: !1,
|
|
164
|
-
"data-index":
|
|
165
|
-
className:
|
|
173
|
+
"data-index": g.length,
|
|
174
|
+
className: g.length === D ? "highlighted" : "",
|
|
166
175
|
style: { cursor: "pointer" },
|
|
167
|
-
onClick:
|
|
168
|
-
onMouseEnter: () =>
|
|
176
|
+
onClick: $,
|
|
177
|
+
onMouseEnter: () => m(g.length),
|
|
169
178
|
isCompact: !0,
|
|
170
179
|
isSearchResult: !0
|
|
171
180
|
}
|
|
172
181
|
),
|
|
173
|
-
|
|
182
|
+
g.length === Fe && /* @__PURE__ */ C("li", { className: "tip", children: "More than 500 results, please refine your search..." })
|
|
174
183
|
]
|
|
175
184
|
}
|
|
176
185
|
)
|
|
177
186
|
] });
|
|
178
|
-
},
|
|
179
|
-
|
|
187
|
+
}, Ks = {
|
|
188
|
+
0: "No access",
|
|
189
|
+
10: "Viewer",
|
|
190
|
+
20: "Editor",
|
|
191
|
+
30: "Admin"
|
|
192
|
+
}, Ae = (t) => {
|
|
193
|
+
if (!t) return "";
|
|
180
194
|
try {
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
195
|
+
const e = Ne(t);
|
|
196
|
+
if (Le(e))
|
|
197
|
+
return Me(e, "yyyy-MM-dd");
|
|
184
198
|
} catch {
|
|
185
199
|
return "";
|
|
186
200
|
}
|
|
187
201
|
return "";
|
|
188
|
-
},
|
|
189
|
-
if (!
|
|
202
|
+
}, Pe = (t, e) => {
|
|
203
|
+
if (!t) return null;
|
|
190
204
|
try {
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
return
|
|
205
|
+
const i = Ne(t);
|
|
206
|
+
if (Le(i))
|
|
207
|
+
return Me(i, e);
|
|
194
208
|
} catch {
|
|
195
209
|
return null;
|
|
196
210
|
}
|
|
197
211
|
return null;
|
|
198
|
-
},
|
|
199
|
-
if (!
|
|
212
|
+
}, se = (t) => {
|
|
213
|
+
if (!t) return null;
|
|
200
214
|
try {
|
|
201
|
-
const [
|
|
202
|
-
if (
|
|
203
|
-
return new Date(Date.UTC(
|
|
215
|
+
const [e, i, c] = t.split("-").map(Number);
|
|
216
|
+
if (e && i && c)
|
|
217
|
+
return new Date(Date.UTC(e, i - 1, c)).toISOString();
|
|
204
218
|
} catch {
|
|
205
219
|
return null;
|
|
206
220
|
}
|
|
207
221
|
return null;
|
|
208
|
-
},
|
|
209
|
-
value:
|
|
210
|
-
onChange:
|
|
211
|
-
emptyTrigger:
|
|
212
|
-
valueTrigger:
|
|
213
|
-
align:
|
|
214
|
-
disabled:
|
|
215
|
-
className:
|
|
216
|
-
displayFormat:
|
|
217
|
-
minDate:
|
|
218
|
-
maxDate:
|
|
219
|
-
pt:
|
|
222
|
+
}, Xs = ({
|
|
223
|
+
value: t,
|
|
224
|
+
onChange: e,
|
|
225
|
+
emptyTrigger: i,
|
|
226
|
+
valueTrigger: c,
|
|
227
|
+
align: o = "left",
|
|
228
|
+
disabled: s = !1,
|
|
229
|
+
className: a,
|
|
230
|
+
displayFormat: h = "MMM d",
|
|
231
|
+
minDate: l,
|
|
232
|
+
maxDate: f,
|
|
233
|
+
pt: n
|
|
220
234
|
}) => {
|
|
221
|
-
const [
|
|
222
|
-
const
|
|
223
|
-
(
|
|
224
|
-
}, [D,
|
|
225
|
-
|
|
226
|
-
|
|
235
|
+
const [E, y] = _(!1), [D, m] = _(""), [F, R] = _(""), g = oe(null), T = oe(null), I = oe(null), L = oe(null), N = t.startDate || t.endDate, M = ee(() => {
|
|
236
|
+
const w = se(D), x = se(F);
|
|
237
|
+
(w !== t.startDate || x !== t.endDate) && e({ startDate: w, endDate: x }), y(!1);
|
|
238
|
+
}, [D, F, t.startDate, t.endDate, e]);
|
|
239
|
+
Y(() => {
|
|
240
|
+
E && (m(Ae(t.startDate)), R(Ae(t.endDate)), !t.startDate && !t.endDate && setTimeout(() => {
|
|
227
241
|
try {
|
|
228
|
-
|
|
242
|
+
I.current?.showPicker();
|
|
229
243
|
} catch {
|
|
230
244
|
}
|
|
231
245
|
}, 100));
|
|
232
|
-
}, [
|
|
233
|
-
if (!
|
|
234
|
-
const
|
|
235
|
-
const
|
|
236
|
-
|
|
246
|
+
}, [E, t.startDate, t.endDate]), Y(() => {
|
|
247
|
+
if (!E) return;
|
|
248
|
+
const w = (x) => {
|
|
249
|
+
const B = x.target;
|
|
250
|
+
g.current && !g.current.contains(B) && T.current && !T.current.contains(B) && M();
|
|
237
251
|
};
|
|
238
|
-
return document.addEventListener("mousedown",
|
|
239
|
-
}, [
|
|
240
|
-
if (!
|
|
241
|
-
const
|
|
242
|
-
|
|
252
|
+
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
253
|
+
}, [E, M]), Y(() => {
|
|
254
|
+
if (!E) return;
|
|
255
|
+
const w = (x) => {
|
|
256
|
+
x.key === "Escape" && (x.stopPropagation(), M());
|
|
243
257
|
};
|
|
244
|
-
return document.addEventListener("keydown",
|
|
245
|
-
}, [
|
|
246
|
-
const
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
if (
|
|
251
|
-
const
|
|
252
|
-
|
|
258
|
+
return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
|
|
259
|
+
}, [E, M]);
|
|
260
|
+
const G = (w) => {
|
|
261
|
+
const x = w.target.value;
|
|
262
|
+
m(x);
|
|
263
|
+
const B = se(x), W = se(F);
|
|
264
|
+
if (B && W) {
|
|
265
|
+
const K = new Date(B), te = new Date(W);
|
|
266
|
+
K > te && R(x);
|
|
253
267
|
}
|
|
254
|
-
|
|
268
|
+
B && setTimeout(() => {
|
|
255
269
|
try {
|
|
256
|
-
|
|
270
|
+
L.current?.showPicker();
|
|
257
271
|
} catch {
|
|
258
272
|
}
|
|
259
273
|
}, 100);
|
|
260
|
-
},
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
const
|
|
264
|
-
let
|
|
265
|
-
if (
|
|
266
|
-
const
|
|
267
|
-
new Date(
|
|
274
|
+
}, $ = (w) => {
|
|
275
|
+
const x = w.target.value;
|
|
276
|
+
R(x);
|
|
277
|
+
const B = se(x), W = se(D);
|
|
278
|
+
let K = W, te = B;
|
|
279
|
+
if (B && W) {
|
|
280
|
+
const q = new Date(W);
|
|
281
|
+
new Date(B) < q && (m(x), K = B);
|
|
268
282
|
}
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
},
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
if (!
|
|
276
|
-
const
|
|
283
|
+
e({ startDate: K, endDate: te });
|
|
284
|
+
}, V = () => {
|
|
285
|
+
m(""), R(""), e({ startDate: null, endDate: null }), y(!1);
|
|
286
|
+
}, b = (w) => {
|
|
287
|
+
w.stopPropagation(), s || (E ? M() : y(!0));
|
|
288
|
+
}, v = E ? se(D) : t.startDate, O = E ? se(F) : t.endDate, r = Pe(v, h), p = Pe(O, h), u = r && p ? `${r} - ${p}` : r || p || "", d = () => {
|
|
289
|
+
if (!g.current) return { top: 0, left: 0 };
|
|
290
|
+
const w = g.current.getBoundingClientRect();
|
|
277
291
|
return {
|
|
278
|
-
top:
|
|
279
|
-
left:
|
|
292
|
+
top: w.bottom + 4,
|
|
293
|
+
left: o === "left" ? w.left : w.right
|
|
280
294
|
};
|
|
281
|
-
},
|
|
282
|
-
return /* @__PURE__ */
|
|
283
|
-
|
|
295
|
+
}, S = () => N ? c ? c(t, u) : /* @__PURE__ */ C("span", { className: ue("date-value", n?.valueDisplay?.className), ...n?.valueDisplay, children: u }) : i || /* @__PURE__ */ C(Ze, { icon: "calendar_add_on" }), A = d();
|
|
296
|
+
return /* @__PURE__ */ z(
|
|
297
|
+
je,
|
|
284
298
|
{
|
|
285
|
-
...
|
|
286
|
-
className:
|
|
299
|
+
...n?.root,
|
|
300
|
+
className: ue(Ve, a, n?.root?.className),
|
|
287
301
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
|
|
302
|
+
/* @__PURE__ */ C(
|
|
303
|
+
Ke,
|
|
290
304
|
{
|
|
291
|
-
ref:
|
|
292
|
-
onClick:
|
|
293
|
-
disabled:
|
|
305
|
+
ref: g,
|
|
306
|
+
onClick: b,
|
|
307
|
+
disabled: s,
|
|
294
308
|
type: "button",
|
|
295
|
-
...
|
|
296
|
-
className:
|
|
297
|
-
children:
|
|
309
|
+
...n?.trigger,
|
|
310
|
+
className: ue(N ? "has-value" : "empty", n?.trigger?.className),
|
|
311
|
+
children: S()
|
|
298
312
|
}
|
|
299
313
|
),
|
|
300
|
-
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
-
|
|
314
|
+
E && ft(
|
|
315
|
+
/* @__PURE__ */ C(
|
|
316
|
+
Xe,
|
|
303
317
|
{
|
|
304
|
-
ref:
|
|
318
|
+
ref: T,
|
|
305
319
|
style: {
|
|
306
|
-
top:
|
|
307
|
-
left:
|
|
308
|
-
right:
|
|
309
|
-
...
|
|
320
|
+
top: A.top,
|
|
321
|
+
left: o === "left" ? A.left : "auto",
|
|
322
|
+
right: o === "right" ? window.innerWidth - A.left : "auto",
|
|
323
|
+
...n?.dropdown?.style
|
|
310
324
|
},
|
|
311
|
-
onMouseDown: (
|
|
312
|
-
...
|
|
313
|
-
className:
|
|
314
|
-
children: /* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
|
|
325
|
+
onMouseDown: (w) => w.stopPropagation(),
|
|
326
|
+
...n?.dropdown,
|
|
327
|
+
className: ue(Ve, o, n?.dropdown?.className),
|
|
328
|
+
children: /* @__PURE__ */ z(Je, { className: n?.content?.className, ...n?.content, children: [
|
|
329
|
+
/* @__PURE__ */ C(
|
|
330
|
+
Qe,
|
|
317
331
|
{
|
|
318
332
|
icon: "close",
|
|
319
333
|
variant: "text",
|
|
320
|
-
onClick:
|
|
321
|
-
...
|
|
334
|
+
onClick: M,
|
|
335
|
+
...n?.closeButton
|
|
322
336
|
}
|
|
323
337
|
),
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
|
|
338
|
+
/* @__PURE__ */ z(
|
|
339
|
+
ke,
|
|
326
340
|
{
|
|
327
|
-
className:
|
|
328
|
-
...
|
|
341
|
+
className: n?.startDate?.field?.className,
|
|
342
|
+
...n?.startDate?.field,
|
|
329
343
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
-
|
|
344
|
+
/* @__PURE__ */ C("label", { ...n?.startDate?.label, children: "Start date" }),
|
|
345
|
+
/* @__PURE__ */ C(
|
|
346
|
+
Oe,
|
|
333
347
|
{
|
|
334
|
-
ref:
|
|
348
|
+
ref: I,
|
|
335
349
|
type: "date",
|
|
336
350
|
value: D,
|
|
337
|
-
onChange:
|
|
338
|
-
max:
|
|
339
|
-
min:
|
|
340
|
-
onClick: (
|
|
351
|
+
onChange: G,
|
|
352
|
+
max: f ? re(f, "yyyy-MM-dd") : void 0,
|
|
353
|
+
min: l ? re(l, "yyyy-MM-dd") : void 0,
|
|
354
|
+
onClick: (w) => {
|
|
341
355
|
try {
|
|
342
|
-
|
|
356
|
+
w.currentTarget.showPicker();
|
|
343
357
|
} catch {
|
|
344
358
|
}
|
|
345
359
|
},
|
|
346
|
-
...
|
|
360
|
+
...n?.startDate?.input
|
|
347
361
|
}
|
|
348
362
|
)
|
|
349
363
|
]
|
|
350
364
|
}
|
|
351
365
|
),
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
-
/* @__PURE__ */
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
|
|
366
|
+
/* @__PURE__ */ z(ke, { className: n?.endDate?.field?.className, ...n?.endDate?.field, children: [
|
|
367
|
+
/* @__PURE__ */ C("label", { ...n?.endDate?.label, children: "End date" }),
|
|
368
|
+
/* @__PURE__ */ C(
|
|
369
|
+
Oe,
|
|
356
370
|
{
|
|
357
|
-
ref:
|
|
371
|
+
ref: L,
|
|
358
372
|
type: "date",
|
|
359
|
-
value:
|
|
360
|
-
onChange:
|
|
361
|
-
max:
|
|
362
|
-
min: D || (
|
|
363
|
-
onClick: (
|
|
373
|
+
value: F,
|
|
374
|
+
onChange: $,
|
|
375
|
+
max: f ? re(f, "yyyy-MM-dd") : void 0,
|
|
376
|
+
min: D || (l ? re(l, "yyyy-MM-dd") : void 0),
|
|
377
|
+
onClick: (w) => {
|
|
364
378
|
try {
|
|
365
|
-
|
|
379
|
+
w.currentTarget.showPicker();
|
|
366
380
|
} catch {
|
|
367
381
|
}
|
|
368
382
|
},
|
|
369
|
-
...
|
|
383
|
+
...n?.endDate?.input
|
|
370
384
|
}
|
|
371
385
|
)
|
|
372
386
|
] }),
|
|
373
|
-
N && /* @__PURE__ */
|
|
387
|
+
N && /* @__PURE__ */ C(qe, { onClick: V, variant: "text", ...n?.clearButton, children: "Clear dates" })
|
|
374
388
|
] })
|
|
375
389
|
}
|
|
376
390
|
),
|
|
@@ -379,23 +393,436 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
379
393
|
]
|
|
380
394
|
}
|
|
381
395
|
);
|
|
382
|
-
},
|
|
396
|
+
}, ne = {
|
|
397
|
+
version: 1,
|
|
398
|
+
name: "review",
|
|
399
|
+
productType: "review"
|
|
400
|
+
}, Js = ({
|
|
401
|
+
children: t,
|
|
383
402
|
projectName: e,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
403
|
+
onVersionCreated: i,
|
|
404
|
+
dispatch: c
|
|
405
|
+
}) => {
|
|
406
|
+
const [o, s] = _(""), [a, h] = _(""), [l, f] = _(null), [n, E] = _(null), [y, D] = _(!1), [m, F] = _([]), [R, g] = _(ne), [T, I] = _(!1), [L, N] = _(""), [M, G] = _(null), [$, V] = _(null), [b, v] = _(void 0), [O, r] = _(void 0), p = oe(!1), u = oe(null), { data: d = [], isLoading: S } = St(
|
|
407
|
+
{ projectName: e, folderId: o },
|
|
408
|
+
{ skip: !o || !y || !!a }
|
|
409
|
+
), A = me(() => {
|
|
410
|
+
if (!(a || !R.name || d.length === 0))
|
|
411
|
+
return d.find((k) => k.name === R.name);
|
|
412
|
+
}, [a, R.name, d]), w = a || A?.id || "", { currentData: x } = kt(
|
|
413
|
+
{
|
|
414
|
+
projectName: e,
|
|
415
|
+
productId: a
|
|
416
|
+
},
|
|
417
|
+
{ skip: !a || !y || b != null }
|
|
418
|
+
), { data: B } = Ot(
|
|
419
|
+
{ projectName: e, versionId: O },
|
|
420
|
+
{ skip: !O || !y || l !== null }
|
|
421
|
+
), W = l ?? B?.taskId ?? "", K = !!(O && l === null && !B), te = ee(
|
|
422
|
+
({ productId: k, folderId: P, taskId: U, linkedTask: Z, latestVersionNumber: ie, latestVersionId: ze }) => {
|
|
423
|
+
h(k || ""), s(P || ""), f(U || null), E(Z || null), v(ie), r(ze), g((Ge) => ({
|
|
424
|
+
...Ge,
|
|
425
|
+
...ie != null ? { version: ie + 1 } : {}
|
|
426
|
+
})), D(!0);
|
|
427
|
+
},
|
|
428
|
+
[]
|
|
429
|
+
), q = ee(() => {
|
|
430
|
+
m.forEach((k) => {
|
|
431
|
+
k.preview && URL.revokeObjectURL(k.preview);
|
|
432
|
+
}), F([]), g(ne), G(null), V(null), N(""), I(!1), D(!1), h(""), s(""), f(null), E(null), p.current = !1, v(void 0), r(void 0);
|
|
433
|
+
}, [m]), [be] = Dt(), [pe] = Vt(), X = ee(
|
|
434
|
+
async (k) => {
|
|
435
|
+
try {
|
|
436
|
+
if (w) {
|
|
437
|
+
const P = await jt(pe, e, {
|
|
438
|
+
productId: w,
|
|
439
|
+
version: k.version,
|
|
440
|
+
taskId: W || void 0
|
|
441
|
+
});
|
|
442
|
+
return i(w, P.id), he.success("Created new version"), {
|
|
443
|
+
productId: w,
|
|
444
|
+
versionId: P.id
|
|
445
|
+
};
|
|
446
|
+
} else {
|
|
447
|
+
const { product: P, version: U } = await Kt(
|
|
448
|
+
be,
|
|
449
|
+
pe,
|
|
450
|
+
e,
|
|
451
|
+
{
|
|
452
|
+
folderId: o,
|
|
453
|
+
name: k.name,
|
|
454
|
+
productType: k.productType || "review",
|
|
455
|
+
productBaseType: k.productType || "review"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
version: k.version,
|
|
459
|
+
taskId: W || void 0
|
|
460
|
+
}
|
|
461
|
+
);
|
|
462
|
+
return i(P.id, U.id), he.success("Created new version"), {
|
|
463
|
+
productId: P.id,
|
|
464
|
+
versionId: U.id
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
} catch (P) {
|
|
468
|
+
throw console.error("Error uploading version:", P), P.message || P;
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
[q, w, o, W, e]
|
|
472
|
+
), fe = ee(
|
|
473
|
+
(k) => {
|
|
474
|
+
if (w) return;
|
|
475
|
+
const P = k[0];
|
|
476
|
+
if (P) {
|
|
477
|
+
const U = Jt(P.name), Z = $t(U);
|
|
478
|
+
Z && Z !== R.version && g((ie) => ({
|
|
479
|
+
...ie,
|
|
480
|
+
version: Z
|
|
481
|
+
}));
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
[w, R.version]
|
|
485
|
+
), J = x?.version ?? b ?? A?.latestVersion?.version, Q = ee((k, P) => {
|
|
486
|
+
g((U) => ({
|
|
487
|
+
...U,
|
|
488
|
+
[k]: P
|
|
489
|
+
})), N("");
|
|
490
|
+
}, []), Ee = ee(
|
|
491
|
+
async (k) => {
|
|
492
|
+
try {
|
|
493
|
+
I(!0), N("");
|
|
494
|
+
const P = Xt(k, J, !w);
|
|
495
|
+
if (!P.isValid)
|
|
496
|
+
throw P.error;
|
|
497
|
+
const U = await X(k);
|
|
498
|
+
o && (u.current = { folderId: o, productName: k.name }), U?.productId && G(U.productId), U?.versionId && V(U.versionId), m.length < 1 && (I(!1), q());
|
|
499
|
+
} catch (P) {
|
|
500
|
+
N(P), I(!1);
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
[X, m.length, q, J, w]
|
|
504
|
+
);
|
|
505
|
+
Y(() => {
|
|
506
|
+
if (!(!y || b != null))
|
|
507
|
+
return g(x ? (k) => ({ ...k, version: x.version + 1 }) : ne), () => {
|
|
508
|
+
g(ne);
|
|
509
|
+
};
|
|
510
|
+
}, [y, x, b]), Y(() => {
|
|
511
|
+
if (!y || a || d.length === 0 || R.name !== ne.name) return;
|
|
512
|
+
const k = u.current;
|
|
513
|
+
if (k && k.folderId === o && d.some((Z) => Z.name === k.productName)) {
|
|
514
|
+
g((Z) => ({ ...Z, name: k.productName }));
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
const P = d[d.length - 1];
|
|
518
|
+
P && g((U) => ({ ...U, name: P.name }));
|
|
519
|
+
}, [y, a, d]), Y(() => {
|
|
520
|
+
if (!(!y || a))
|
|
521
|
+
if (A) {
|
|
522
|
+
g((P) => ({
|
|
523
|
+
...P,
|
|
524
|
+
productType: A.productType,
|
|
525
|
+
...A.latestVersion && {
|
|
526
|
+
version: A.latestVersion.version + 1
|
|
527
|
+
}
|
|
528
|
+
}));
|
|
529
|
+
const k = A.latestVersion?.task;
|
|
530
|
+
k && (l === null || p.current) ? (f(k.id), E({
|
|
531
|
+
id: k.id,
|
|
532
|
+
name: k.name,
|
|
533
|
+
label: k.label,
|
|
534
|
+
taskType: k.taskType
|
|
535
|
+
}), p.current = !0) : !k && p.current && (f(null), E(null), p.current = !1);
|
|
536
|
+
} else
|
|
537
|
+
g((k) => ({ ...k, version: ne.version })), (l === null || p.current) && (f(null), E(null), p.current = !1);
|
|
538
|
+
}, [y, a, A]);
|
|
539
|
+
const Ce = ee((k) => {
|
|
540
|
+
f(k), p.current = !1;
|
|
541
|
+
}, []), He = me(
|
|
542
|
+
() => ({
|
|
543
|
+
productId: a,
|
|
544
|
+
setProductId: h,
|
|
545
|
+
folderId: o,
|
|
546
|
+
taskId: W,
|
|
547
|
+
linkedTask: n,
|
|
548
|
+
isLoadingTask: K,
|
|
549
|
+
setTaskId: Ce,
|
|
550
|
+
setLinkedTask: E,
|
|
551
|
+
setFolderId: s,
|
|
552
|
+
isOpen: y,
|
|
553
|
+
projectName: e,
|
|
554
|
+
latestVersion: J,
|
|
555
|
+
pendingFiles: m,
|
|
556
|
+
setPendingFiles: F,
|
|
557
|
+
onOpenVersionUpload: te,
|
|
558
|
+
onCloseVersionUpload: q,
|
|
559
|
+
onUploadVersion: X,
|
|
560
|
+
extractAndSetVersionFromFiles: fe,
|
|
561
|
+
form: R,
|
|
562
|
+
setForm: g,
|
|
563
|
+
isSubmitting: T,
|
|
564
|
+
error: L,
|
|
565
|
+
createdProductId: M,
|
|
566
|
+
createdVersionId: $,
|
|
567
|
+
handleFormChange: Q,
|
|
568
|
+
handleFormSubmit: Ee,
|
|
569
|
+
folderProducts: d,
|
|
570
|
+
isFolderProductsLoading: S,
|
|
571
|
+
matchedProduct: A,
|
|
572
|
+
dispatch: c
|
|
573
|
+
}),
|
|
574
|
+
[
|
|
575
|
+
o,
|
|
576
|
+
s,
|
|
577
|
+
a,
|
|
578
|
+
W,
|
|
579
|
+
n,
|
|
580
|
+
K,
|
|
581
|
+
Ce,
|
|
582
|
+
E,
|
|
583
|
+
h,
|
|
584
|
+
y,
|
|
585
|
+
e,
|
|
586
|
+
J,
|
|
587
|
+
m,
|
|
588
|
+
F,
|
|
589
|
+
te,
|
|
590
|
+
q,
|
|
591
|
+
X,
|
|
592
|
+
fe,
|
|
593
|
+
R,
|
|
594
|
+
T,
|
|
595
|
+
L,
|
|
596
|
+
M,
|
|
597
|
+
$,
|
|
598
|
+
Q,
|
|
599
|
+
Ee,
|
|
600
|
+
d,
|
|
601
|
+
S,
|
|
602
|
+
A,
|
|
603
|
+
c
|
|
604
|
+
]
|
|
605
|
+
);
|
|
606
|
+
return /* @__PURE__ */ C(Qt.Provider, { value: He, children: t });
|
|
607
|
+
}, Qs = ({ children: t }) => {
|
|
608
|
+
const [e, i] = _(!1), { siteInfo: c, user: o, cloudInfo: s } = Be(), { data: a, isLoading: h } = Tt(
|
|
609
|
+
{},
|
|
610
|
+
{
|
|
611
|
+
skip: !o?.name || !s?.connected
|
|
612
|
+
}
|
|
613
|
+
), l = () => {
|
|
614
|
+
if (!e) {
|
|
615
|
+
const u = document.createElement("script");
|
|
616
|
+
u.src = "https://do.featurebase.app/js/sdk.js", u.id = "featurebase-sdk", u.async = !0, document.body.appendChild(u), i(!0);
|
|
617
|
+
}
|
|
618
|
+
}, f = () => {
|
|
619
|
+
const u = window;
|
|
620
|
+
typeof u.Featurebase != "function" && (u.Featurebase = function() {
|
|
621
|
+
(u.Featurebase.q = u.Featurebase.q || []).push(arguments);
|
|
622
|
+
});
|
|
623
|
+
}, n = c?.version?.split("+")[0] || "unknown", E = c?.version?.split("+")[1] || "unknown", y = () => {
|
|
624
|
+
if (!o?.name || !a?.available) return;
|
|
625
|
+
const u = {
|
|
626
|
+
...a.data,
|
|
627
|
+
customFields: {
|
|
628
|
+
origin: window.location.origin,
|
|
629
|
+
serverVersion: n,
|
|
630
|
+
frontendVersion: E,
|
|
631
|
+
instanceId: s?.instanceId
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
console.log(u), window.Featurebase("identify", u, (S) => {
|
|
635
|
+
S ? console.error(S) : console.log("Featurebase identify completed");
|
|
636
|
+
});
|
|
637
|
+
}, [D, m] = _(!1), [F, R] = _(0), g = () => {
|
|
638
|
+
const u = window;
|
|
639
|
+
if (typeof u.Featurebase == "function") {
|
|
640
|
+
if (console.log("Initializing Featurebase messenger widget"), !a?.available)
|
|
641
|
+
return console.warn("messenger verification not available, skipping messenger init");
|
|
642
|
+
u.Featurebase(
|
|
643
|
+
"boot",
|
|
644
|
+
{
|
|
645
|
+
theme: "dark",
|
|
646
|
+
...a?.data
|
|
647
|
+
},
|
|
648
|
+
(d) => {
|
|
649
|
+
d ? console.error(d) : (console.log("Featurebase messenger completed"), m(!0), u.Featurebase("onUnreadCountChange", function(S) {
|
|
650
|
+
R(S);
|
|
651
|
+
}));
|
|
652
|
+
}
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
}, T = () => {
|
|
656
|
+
const u = [];
|
|
657
|
+
if (o?.data?.isAdmin) {
|
|
658
|
+
const S = ["Server", "Addon", "Pipeline"];
|
|
659
|
+
u.push(...S);
|
|
660
|
+
} else c?.disableChangelog || u.push("Highlights");
|
|
661
|
+
const d = window;
|
|
662
|
+
return typeof d.Featurebase == "function" && d.Featurebase("init_changelog_widget", {
|
|
663
|
+
organization: "ayon",
|
|
664
|
+
dropdown: {
|
|
665
|
+
enabled: !0
|
|
666
|
+
},
|
|
667
|
+
popup: {
|
|
668
|
+
enabled: !0,
|
|
669
|
+
usersName: o?.attrib?.fullName,
|
|
670
|
+
autoOpenForNewUpdates: !0
|
|
671
|
+
},
|
|
672
|
+
category: u,
|
|
673
|
+
theme: "dark"
|
|
674
|
+
}), !1;
|
|
675
|
+
}, I = () => {
|
|
676
|
+
const u = window;
|
|
677
|
+
return typeof u.Featurebase == "function" && u.Featurebase(
|
|
678
|
+
"initialize_feedback_widget",
|
|
679
|
+
{
|
|
680
|
+
organization: "ayon",
|
|
681
|
+
theme: "dark",
|
|
682
|
+
metadata: {}
|
|
683
|
+
},
|
|
684
|
+
(d) => {
|
|
685
|
+
d && console.error("Error initializing feedback widget:", d);
|
|
686
|
+
}
|
|
687
|
+
), !1;
|
|
688
|
+
}, L = () => {
|
|
689
|
+
const u = window;
|
|
690
|
+
return typeof u.Featurebase == "function" && u.Featurebase(
|
|
691
|
+
"initialize_portal_widget",
|
|
692
|
+
{
|
|
693
|
+
organization: "ayon",
|
|
694
|
+
fullScreen: !0,
|
|
695
|
+
initialPage: "MainView"
|
|
696
|
+
},
|
|
697
|
+
(d) => d ? (console.error("Error initializing portal widget:", d), !1) : !0
|
|
698
|
+
), !1;
|
|
699
|
+
}, N = () => {
|
|
700
|
+
const u = window;
|
|
701
|
+
return typeof u.Featurebase == "function" && u.Featurebase(
|
|
702
|
+
"initialize_survey_widget",
|
|
703
|
+
{
|
|
704
|
+
organization: "ayon",
|
|
705
|
+
placement: "bottom-right",
|
|
706
|
+
theme: "dark",
|
|
707
|
+
email: o?.attrib?.email,
|
|
708
|
+
featurebaseJwt: a?.data?.featurebaseJwt,
|
|
709
|
+
locale: "en"
|
|
710
|
+
},
|
|
711
|
+
(d) => {
|
|
712
|
+
d ? console.error("Error initializing survey widget:", d) : console.log("Survey widget initialized successfully");
|
|
713
|
+
}
|
|
714
|
+
), !1;
|
|
715
|
+
};
|
|
716
|
+
Y(() => {
|
|
717
|
+
o?.name && c && (c.disableFeedback || e || (l(), f(), T(), I(), L()));
|
|
718
|
+
}, [o?.name, e, c]);
|
|
719
|
+
const [M, G] = _(!1);
|
|
720
|
+
Y(() => {
|
|
721
|
+
!o?.name || !s || !a || !e || M || (y(), N(), G(!0));
|
|
722
|
+
}, [
|
|
723
|
+
o?.name,
|
|
724
|
+
s?.instanceId,
|
|
725
|
+
a?.available,
|
|
726
|
+
e,
|
|
727
|
+
window.location.pathname,
|
|
728
|
+
M
|
|
729
|
+
]), Y(() => {
|
|
730
|
+
h || !e || g();
|
|
731
|
+
}, [a, h, e]);
|
|
732
|
+
const $ = () => {
|
|
733
|
+
window.postMessage({
|
|
734
|
+
target: "FeaturebaseWidget",
|
|
735
|
+
data: {
|
|
736
|
+
action: "openFeedbackWidget"
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
}, V = (u = "MainView", d) => {
|
|
740
|
+
window.postMessage({
|
|
741
|
+
target: "FeaturebaseWidget",
|
|
742
|
+
data: {
|
|
743
|
+
action: "changePage",
|
|
744
|
+
payload: u,
|
|
745
|
+
openWidget: !0,
|
|
746
|
+
...d && { articleId: d }
|
|
747
|
+
}
|
|
748
|
+
});
|
|
749
|
+
}, [b, v] = _(!1), O = document.getElementById("fb-messenger-root"), r = (u) => O instanceof HTMLElement && (O.style.display = u ? "block" : "none");
|
|
750
|
+
Y(() => {
|
|
751
|
+
!e || !D || r(b);
|
|
752
|
+
}, [e, D, b]), Y(() => {
|
|
753
|
+
if (!e || !D) return;
|
|
754
|
+
const u = window;
|
|
755
|
+
typeof u.Featurebase == "function" && u.Featurebase("onHide", function() {
|
|
756
|
+
v(!1);
|
|
757
|
+
});
|
|
758
|
+
}, [e, D]);
|
|
759
|
+
const p = (u = "Home", d) => {
|
|
760
|
+
const S = window;
|
|
761
|
+
if (typeof S.Featurebase != "function") {
|
|
762
|
+
window.alert("Featurebase SDK is not loaded yet. Please try again later."), console.warn("Featurebase SDK is not loaded yet.");
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
if (b) {
|
|
766
|
+
S.Featurebase("hide"), v(!1);
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
switch (v(!0), u) {
|
|
770
|
+
case "Home":
|
|
771
|
+
S.Featurebase("show");
|
|
772
|
+
break;
|
|
773
|
+
case "Messages":
|
|
774
|
+
S.Featurebase("show", "messages");
|
|
775
|
+
break;
|
|
776
|
+
case "Changelog":
|
|
777
|
+
S.Featurebase("show", "changelog");
|
|
778
|
+
break;
|
|
779
|
+
case "Help":
|
|
780
|
+
S.Featurebase("show", "help");
|
|
781
|
+
break;
|
|
782
|
+
case "ShowArticle":
|
|
783
|
+
d ? S.Featurebase("showArticle", d) : S.Featurebase("show", "help");
|
|
784
|
+
break;
|
|
785
|
+
case "NewMessage":
|
|
786
|
+
S.Featurebase("showNewMessage", d);
|
|
787
|
+
break;
|
|
788
|
+
default:
|
|
789
|
+
S.Featurebase("show");
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
return /* @__PURE__ */ C(
|
|
794
|
+
_t.Provider,
|
|
795
|
+
{
|
|
796
|
+
value: {
|
|
797
|
+
openSupport: p,
|
|
798
|
+
openFeedback: $,
|
|
799
|
+
openPortal: V,
|
|
800
|
+
messengerLoaded: D,
|
|
801
|
+
unreadCount: F,
|
|
802
|
+
messengerVisibility: b,
|
|
803
|
+
setMessengerVisibility: v,
|
|
804
|
+
loaded: e
|
|
805
|
+
},
|
|
806
|
+
children: t
|
|
807
|
+
}
|
|
808
|
+
);
|
|
809
|
+
}, qs = ({
|
|
810
|
+
projectName: t,
|
|
811
|
+
list: e,
|
|
812
|
+
isLoading: i,
|
|
813
|
+
attributes: c = []
|
|
387
814
|
}) => {
|
|
388
|
-
const [
|
|
815
|
+
const [o, s] = _({
|
|
389
816
|
label: "",
|
|
390
817
|
tags: [],
|
|
391
818
|
active: !1
|
|
392
|
-
}),
|
|
393
|
-
() =>
|
|
394
|
-
name:
|
|
395
|
-
data:
|
|
819
|
+
}), a = (e?.accessLevel || 0) >= 30, { tags: h } = mt(), { data: l = [] } = Rt(), f = me(
|
|
820
|
+
() => l.filter((m) => m.scope?.includes("list")).map((m) => ({
|
|
821
|
+
name: m.name,
|
|
822
|
+
data: m.data
|
|
396
823
|
})),
|
|
397
|
-
[
|
|
398
|
-
),
|
|
824
|
+
[l]
|
|
825
|
+
), n = me(
|
|
399
826
|
() => [
|
|
400
827
|
{ name: "label", data: { type: "string", title: "Label" } },
|
|
401
828
|
{
|
|
@@ -403,249 +830,249 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
403
830
|
data: {
|
|
404
831
|
type: "list_of_strings",
|
|
405
832
|
title: "Tags",
|
|
406
|
-
enum:
|
|
833
|
+
enum: h?.map((m) => ({ value: m.name, label: m.name, color: m.color })),
|
|
407
834
|
enableCustomValues: !0,
|
|
408
835
|
enableSearch: !0
|
|
409
836
|
}
|
|
410
837
|
},
|
|
411
|
-
...
|
|
838
|
+
...f,
|
|
412
839
|
{ name: "active", data: { type: "boolean", title: "Active" } },
|
|
413
|
-
...
|
|
840
|
+
...c
|
|
414
841
|
],
|
|
415
|
-
[f, c
|
|
842
|
+
[h, f, c]
|
|
416
843
|
);
|
|
417
|
-
|
|
418
|
-
if (
|
|
419
|
-
const
|
|
420
|
-
const
|
|
421
|
-
return
|
|
844
|
+
Y(() => {
|
|
845
|
+
if (e) {
|
|
846
|
+
const m = e.attrib || {}, R = [...f, ...c].reduce((g, { name: T }) => {
|
|
847
|
+
const I = m[T];
|
|
848
|
+
return g[T] = I || "", g;
|
|
422
849
|
}, {});
|
|
423
|
-
|
|
424
|
-
label:
|
|
425
|
-
tags:
|
|
426
|
-
active:
|
|
427
|
-
...
|
|
850
|
+
s({
|
|
851
|
+
label: e?.label || "",
|
|
852
|
+
tags: e?.tags || [],
|
|
853
|
+
active: e?.active ?? !1,
|
|
854
|
+
...R
|
|
428
855
|
});
|
|
429
856
|
}
|
|
430
|
-
}, [
|
|
431
|
-
const [
|
|
432
|
-
async (
|
|
433
|
-
if (!
|
|
434
|
-
let
|
|
435
|
-
if (
|
|
436
|
-
const
|
|
437
|
-
|
|
857
|
+
}, [e, JSON.stringify(c), JSON.stringify(f)]);
|
|
858
|
+
const [E] = It(), y = (m) => c.some((F) => F.name === m) || f.some((F) => F.name === m), D = ee(
|
|
859
|
+
async (m, F) => {
|
|
860
|
+
if (!e?.id) return console.warn("No list ID provided");
|
|
861
|
+
let R;
|
|
862
|
+
if (y(m)) {
|
|
863
|
+
const g = e.attrib || {};
|
|
864
|
+
F === "" && m === "category" ? R = {
|
|
438
865
|
attrib: {
|
|
439
|
-
...
|
|
440
|
-
[
|
|
866
|
+
...g,
|
|
867
|
+
[m]: null
|
|
441
868
|
}
|
|
442
|
-
} :
|
|
869
|
+
} : R = {
|
|
443
870
|
attrib: {
|
|
444
|
-
...
|
|
445
|
-
[
|
|
871
|
+
...g,
|
|
872
|
+
[m]: F
|
|
446
873
|
}
|
|
447
|
-
},
|
|
874
|
+
}, s((T) => ({ ...T, [m]: F }));
|
|
448
875
|
} else {
|
|
449
|
-
const
|
|
450
|
-
|
|
876
|
+
const g = { [m]: F };
|
|
877
|
+
R = g, s((T) => ({ ...T, ...g }));
|
|
451
878
|
}
|
|
452
879
|
try {
|
|
453
|
-
await
|
|
454
|
-
listId:
|
|
455
|
-
projectName:
|
|
456
|
-
entityListPatchModel:
|
|
880
|
+
await E({
|
|
881
|
+
listId: e.id,
|
|
882
|
+
projectName: t,
|
|
883
|
+
entityListPatchModel: R
|
|
457
884
|
});
|
|
458
|
-
} catch (
|
|
459
|
-
console.error(
|
|
885
|
+
} catch (g) {
|
|
886
|
+
console.error(g), he.error("Failed to update list attribute: ", g.attrib.detail);
|
|
460
887
|
}
|
|
461
888
|
},
|
|
462
|
-
[
|
|
889
|
+
[e?.id, e?.attrib, t, E, f, c]
|
|
463
890
|
);
|
|
464
|
-
return /* @__PURE__ */
|
|
465
|
-
|
|
891
|
+
return /* @__PURE__ */ C(
|
|
892
|
+
wt,
|
|
466
893
|
{
|
|
467
|
-
enableEditing:
|
|
468
|
-
projectName:
|
|
469
|
-
fields:
|
|
470
|
-
form:
|
|
471
|
-
isLoading:
|
|
894
|
+
enableEditing: a,
|
|
895
|
+
projectName: t,
|
|
896
|
+
fields: n,
|
|
897
|
+
form: o,
|
|
898
|
+
isLoading: i,
|
|
472
899
|
onChange: D,
|
|
473
900
|
title: "Attributes"
|
|
474
901
|
}
|
|
475
902
|
);
|
|
476
|
-
},
|
|
477
|
-
const
|
|
478
|
-
Object.entries(
|
|
479
|
-
([
|
|
903
|
+
}, Zs = ({ list: t, isLoading: e }) => {
|
|
904
|
+
const i = Object.fromEntries(
|
|
905
|
+
Object.entries(t?.data || {}).filter(
|
|
906
|
+
([s, a]) => !["category", "count"].includes(s) && a !== null && typeof a != "object"
|
|
480
907
|
)
|
|
481
|
-
),
|
|
482
|
-
Id:
|
|
483
|
-
"Entity type":
|
|
484
|
-
"List type":
|
|
485
|
-
"Items count":
|
|
486
|
-
Owner:
|
|
487
|
-
"Created at":
|
|
488
|
-
"Created by":
|
|
489
|
-
"Updated at":
|
|
490
|
-
"Last updated by":
|
|
491
|
-
...
|
|
492
|
-
},
|
|
493
|
-
name:
|
|
908
|
+
), c = {
|
|
909
|
+
Id: t?.id,
|
|
910
|
+
"Entity type": t?.entityType,
|
|
911
|
+
"List type": t?.entityListType,
|
|
912
|
+
"Items count": t?.items?.length,
|
|
913
|
+
Owner: t?.owner,
|
|
914
|
+
"Created at": t?.createdAt && re(new Date(t?.createdAt), "PPpp"),
|
|
915
|
+
"Created by": t?.createdBy,
|
|
916
|
+
"Updated at": t?.updatedAt && re(new Date(t?.updatedAt), "PPpp"),
|
|
917
|
+
"Last updated by": t?.updatedBy,
|
|
918
|
+
...i
|
|
919
|
+
}, o = Object.keys(c).map((s) => ({
|
|
920
|
+
name: s,
|
|
494
921
|
data: { type: "string" },
|
|
495
922
|
hidden: !1
|
|
496
923
|
}));
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
},
|
|
499
|
-
label:
|
|
500
|
-
description:
|
|
501
|
-
features:
|
|
502
|
-
isCloseable:
|
|
503
|
-
addon:
|
|
924
|
+
return /* @__PURE__ */ C(yt, { form: c, fields: o, isLoading: !!e });
|
|
925
|
+
}, ea = ({
|
|
926
|
+
label: t,
|
|
927
|
+
description: e,
|
|
928
|
+
features: i,
|
|
929
|
+
isCloseable: c = !0,
|
|
930
|
+
addon: o
|
|
504
931
|
}) => {
|
|
505
|
-
const [
|
|
506
|
-
if (!
|
|
507
|
-
const
|
|
508
|
-
if (
|
|
509
|
-
return Object.entries(
|
|
510
|
-
if (
|
|
511
|
-
const
|
|
512
|
-
(
|
|
932
|
+
const [s, a] = _(!1), { setPowerpackDialog: h, selectedPowerPack: l, powerpackDialog: f, addonDialog: n } = ht(), E = !!o || !!n, y = t ?? f?.label ?? n?.label, D = e ?? f?.description ?? (n ? n.features[n.selectedFeature ?? ""]?.description ?? Object.values(n.features)[0]?.description : void 0), m = o?.icon ?? (n ? n.icon : "bolt");
|
|
933
|
+
if (!f && !n && (!t || !e)) return null;
|
|
934
|
+
const R = (() => {
|
|
935
|
+
if (i)
|
|
936
|
+
return Object.entries(i);
|
|
937
|
+
if (n) {
|
|
938
|
+
const T = n.featureOrder.filter((I) => I in n.features).map(
|
|
939
|
+
(I) => [I, n.features[I]]
|
|
513
940
|
);
|
|
514
|
-
if (
|
|
515
|
-
const
|
|
516
|
-
if (
|
|
517
|
-
const [
|
|
518
|
-
|
|
941
|
+
if (n.selectedFeature) {
|
|
942
|
+
const I = T.findIndex(([L]) => L === n.selectedFeature);
|
|
943
|
+
if (I > 0) {
|
|
944
|
+
const [L] = T.splice(I, 1);
|
|
945
|
+
T.unshift(L);
|
|
519
946
|
}
|
|
520
947
|
}
|
|
521
|
-
return
|
|
948
|
+
return T;
|
|
522
949
|
}
|
|
523
|
-
return Object.entries(
|
|
524
|
-
if (
|
|
525
|
-
if (
|
|
526
|
-
const
|
|
527
|
-
return
|
|
950
|
+
return Object.entries(bt).sort(([T], [I]) => {
|
|
951
|
+
if (T === l) return -1;
|
|
952
|
+
if (I === l) return 1;
|
|
953
|
+
const L = Te.indexOf(T), N = Te.indexOf(I);
|
|
954
|
+
return L > -1 && N > -1 ? L - N : L > -1 ? -1 : N > -1 ? 1 : 0;
|
|
528
955
|
});
|
|
529
956
|
})();
|
|
530
|
-
return /* @__PURE__ */
|
|
531
|
-
|
|
957
|
+
return /* @__PURE__ */ z(
|
|
958
|
+
et,
|
|
532
959
|
{
|
|
533
960
|
isOpen: !0,
|
|
534
961
|
onClose: () => {
|
|
535
|
-
|
|
962
|
+
c && (h(null), a(!1));
|
|
536
963
|
},
|
|
537
964
|
size: "lg",
|
|
538
|
-
hideCancelButton: !
|
|
539
|
-
hideBackdrop: !
|
|
965
|
+
hideCancelButton: !c,
|
|
966
|
+
hideBackdrop: !c,
|
|
540
967
|
children: [
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
-
/* @__PURE__ */
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
|
|
968
|
+
/* @__PURE__ */ z(tt, { children: [
|
|
969
|
+
/* @__PURE__ */ z("h1", { children: [
|
|
970
|
+
/* @__PURE__ */ C(le, { icon: m }),
|
|
971
|
+
y
|
|
545
972
|
] }),
|
|
546
|
-
/* @__PURE__ */
|
|
973
|
+
/* @__PURE__ */ C("h2", { children: D })
|
|
547
974
|
] }),
|
|
548
|
-
/* @__PURE__ */
|
|
549
|
-
|
|
975
|
+
/* @__PURE__ */ z(st, { children: [
|
|
976
|
+
E ? /* @__PURE__ */ z("h3", { children: [
|
|
550
977
|
"Unlock all ",
|
|
551
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ C("span", { className: "green", children: "Premium Addons" }),
|
|
552
979
|
" with an AYON Studio subscription."
|
|
553
|
-
] }) : /* @__PURE__ */
|
|
980
|
+
] }) : /* @__PURE__ */ z("h3", { children: [
|
|
554
981
|
"Unlock all ",
|
|
555
|
-
/* @__PURE__ */
|
|
982
|
+
/* @__PURE__ */ C(le, { icon: "bolt" }),
|
|
556
983
|
" ",
|
|
557
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ C("span", { className: "green", children: "Power Features" }),
|
|
558
985
|
" with an AYON subscription."
|
|
559
986
|
] }),
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
] },
|
|
564
|
-
!
|
|
987
|
+
/* @__PURE__ */ C("ul", { children: R.slice(0, s ? void 0 : 5).map(([T, I]) => /* @__PURE__ */ z("li", { children: [
|
|
988
|
+
/* @__PURE__ */ C(le, { icon: I.icon ?? "check" }),
|
|
989
|
+
/* @__PURE__ */ C("span", { children: I.bullet })
|
|
990
|
+
] }, T)) }),
|
|
991
|
+
!s && R.length > 5 && /* @__PURE__ */ C(at, { onClick: () => a(!0), children: "Show all" })
|
|
565
992
|
] }),
|
|
566
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ C(ot, { addon: o?.name, children: /* @__PURE__ */ C(nt, {}) })
|
|
567
994
|
]
|
|
568
995
|
}
|
|
569
996
|
);
|
|
570
|
-
},
|
|
571
|
-
Component:
|
|
572
|
-
projectName:
|
|
573
|
-
state:
|
|
574
|
-
dispatch:
|
|
575
|
-
useSelector:
|
|
576
|
-
onOpenImage:
|
|
577
|
-
onGoToFrame:
|
|
578
|
-
onOpenViewer:
|
|
579
|
-
onUpdateEntity:
|
|
580
|
-
...
|
|
997
|
+
}, _e = ({
|
|
998
|
+
Component: t,
|
|
999
|
+
projectName: e,
|
|
1000
|
+
state: i,
|
|
1001
|
+
dispatch: c,
|
|
1002
|
+
useSelector: o,
|
|
1003
|
+
onOpenImage: s,
|
|
1004
|
+
onGoToFrame: a,
|
|
1005
|
+
onOpenViewer: h,
|
|
1006
|
+
onUpdateEntity: l,
|
|
1007
|
+
...f
|
|
581
1008
|
}) => {
|
|
582
|
-
const
|
|
583
|
-
return /* @__PURE__ */
|
|
584
|
-
|
|
1009
|
+
const n = gt(), { onCreateView: E, getLatestSettings: y, markCacheDirty: D } = xt();
|
|
1010
|
+
return /* @__PURE__ */ C(
|
|
1011
|
+
t,
|
|
585
1012
|
{
|
|
586
|
-
router: { useParams:
|
|
587
|
-
projectName:
|
|
1013
|
+
router: { useParams: Ut, useNavigate: Bt, useLocation: Mt, useSearchParams: Lt },
|
|
1014
|
+
projectName: e,
|
|
588
1015
|
views: {
|
|
589
|
-
...
|
|
590
|
-
settings:
|
|
591
|
-
updateViewSettings: (...
|
|
1016
|
+
...n,
|
|
1017
|
+
settings: n.viewSettings,
|
|
1018
|
+
updateViewSettings: (...m) => Nt(...m, n, E, y, D)
|
|
592
1019
|
},
|
|
593
1020
|
context: {},
|
|
594
|
-
state:
|
|
595
|
-
dispatch:
|
|
596
|
-
useSelector:
|
|
597
|
-
onOpenImage:
|
|
598
|
-
onGoToFrame:
|
|
599
|
-
onOpenViewer:
|
|
600
|
-
onUpdateEntity:
|
|
601
|
-
toast:
|
|
602
|
-
...
|
|
1021
|
+
state: i,
|
|
1022
|
+
dispatch: c,
|
|
1023
|
+
useSelector: o,
|
|
1024
|
+
onOpenImage: s,
|
|
1025
|
+
onGoToFrame: a,
|
|
1026
|
+
onOpenViewer: h,
|
|
1027
|
+
onUpdateEntity: l,
|
|
1028
|
+
toast: he,
|
|
1029
|
+
...f
|
|
603
1030
|
}
|
|
604
1031
|
);
|
|
605
|
-
},
|
|
606
|
-
const
|
|
607
|
-
return /* @__PURE__ */
|
|
608
|
-
|
|
1032
|
+
}, Zt = ({ children: t, fields: e }) => {
|
|
1033
|
+
const i = Wt.filter((c) => e.includes(c.value));
|
|
1034
|
+
return /* @__PURE__ */ C("main", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ z(
|
|
1035
|
+
Yt,
|
|
609
1036
|
{
|
|
610
1037
|
layout: "horizontal",
|
|
611
1038
|
style: { width: "100%", height: "100%" },
|
|
612
|
-
stateKey:
|
|
1039
|
+
stateKey: Ht,
|
|
613
1040
|
stateStorage: "local",
|
|
614
1041
|
children: [
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ C(Ie, { ...zt, children: /* @__PURE__ */ C(ct, { wrap: !0, children: /* @__PURE__ */ C(Gt, { sliceFields: i, pinnedSliceType: "hierarchy" }) }) }),
|
|
1043
|
+
/* @__PURE__ */ C(Ie, { size: 80, children: t })
|
|
617
1044
|
]
|
|
618
1045
|
}
|
|
619
1046
|
) });
|
|
620
|
-
},
|
|
621
|
-
Component:
|
|
622
|
-
projectName:
|
|
623
|
-
slicer:
|
|
624
|
-
state:
|
|
625
|
-
addonProps:
|
|
626
|
-
...
|
|
1047
|
+
}, ta = ({
|
|
1048
|
+
Component: t,
|
|
1049
|
+
projectName: e,
|
|
1050
|
+
slicer: i,
|
|
1051
|
+
state: c = {},
|
|
1052
|
+
addonProps: o,
|
|
1053
|
+
...s
|
|
627
1054
|
}) => {
|
|
628
|
-
let
|
|
629
|
-
if (
|
|
630
|
-
let
|
|
1055
|
+
let a = /* @__PURE__ */ C(_e, { Component: t, projectName: e, ...s });
|
|
1056
|
+
if (i && e) {
|
|
1057
|
+
let h = null;
|
|
631
1058
|
try {
|
|
632
|
-
|
|
1059
|
+
h = dt();
|
|
633
1060
|
} catch {
|
|
634
1061
|
console.log("Slicer context not available for this addon page");
|
|
635
1062
|
}
|
|
636
|
-
|
|
637
|
-
|
|
1063
|
+
a = /* @__PURE__ */ C(Zt, { fields: i.fields, children: /* @__PURE__ */ C(
|
|
1064
|
+
_e,
|
|
638
1065
|
{
|
|
639
|
-
Component:
|
|
640
|
-
projectName:
|
|
641
|
-
...
|
|
642
|
-
state: { slicer:
|
|
643
|
-
...
|
|
1066
|
+
Component: t,
|
|
1067
|
+
projectName: e,
|
|
1068
|
+
...s,
|
|
1069
|
+
state: { slicer: h, ...c },
|
|
1070
|
+
...o
|
|
644
1071
|
}
|
|
645
1072
|
) });
|
|
646
1073
|
}
|
|
647
|
-
return
|
|
648
|
-
},
|
|
1074
|
+
return a;
|
|
1075
|
+
}, es = /* @__PURE__ */ new Set([
|
|
649
1076
|
"name",
|
|
650
1077
|
"status",
|
|
651
1078
|
"tags",
|
|
@@ -660,243 +1087,243 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
660
1087
|
"hasReviewables",
|
|
661
1088
|
"createdAt",
|
|
662
1089
|
"updatedAt"
|
|
663
|
-
]),
|
|
664
|
-
filterTypes:
|
|
665
|
-
projectNames:
|
|
666
|
-
scope:
|
|
667
|
-
scopes:
|
|
668
|
-
data:
|
|
669
|
-
config:
|
|
670
|
-
power:
|
|
1090
|
+
]), sa = ({
|
|
1091
|
+
filterTypes: t = [],
|
|
1092
|
+
projectNames: e,
|
|
1093
|
+
scope: i,
|
|
1094
|
+
scopes: c,
|
|
1095
|
+
data: o,
|
|
1096
|
+
config: s,
|
|
1097
|
+
power: a
|
|
671
1098
|
}) => {
|
|
672
|
-
const
|
|
673
|
-
let
|
|
674
|
-
const
|
|
675
|
-
scope:
|
|
676
|
-
filterTypes:
|
|
677
|
-
})), D =
|
|
678
|
-
Array.from(new Set(
|
|
679
|
-
(
|
|
1099
|
+
const h = vt(), l = o.productTypes || [], f = o.productBaseTypes || [];
|
|
1100
|
+
let n = [];
|
|
1101
|
+
const E = /* @__PURE__ */ new Map(), y = c || (i ? Array.isArray(i) ? i : [i] : []).map((v) => ({
|
|
1102
|
+
scope: v,
|
|
1103
|
+
filterTypes: t
|
|
1104
|
+
})), D = y.length > 1, m = new Set(
|
|
1105
|
+
Array.from(new Set(y.flatMap(({ filterTypes: b }) => b))).filter(
|
|
1106
|
+
(b) => y.filter(({ filterTypes: v }) => v.includes(b)).length > 1
|
|
680
1107
|
)
|
|
681
|
-
),
|
|
682
|
-
(
|
|
683
|
-
),
|
|
684
|
-
(
|
|
685
|
-
(
|
|
1108
|
+
), F = y.some(
|
|
1109
|
+
(b) => ["entitySubType", "status"].some((v) => b.filterTypes.includes(v))
|
|
1110
|
+
), R = y.some(
|
|
1111
|
+
(b) => ["assignees", "users", "author"].some(
|
|
1112
|
+
(v) => b.filterTypes.includes(v)
|
|
686
1113
|
)
|
|
687
|
-
), { data:
|
|
1114
|
+
), { data: g = {} } = Ft(
|
|
688
1115
|
{
|
|
689
|
-
projects:
|
|
1116
|
+
projects: e
|
|
690
1117
|
},
|
|
691
1118
|
{
|
|
692
|
-
skip: !
|
|
1119
|
+
skip: !e?.length || !F
|
|
693
1120
|
}
|
|
694
|
-
), { data:
|
|
695
|
-
{ projects:
|
|
1121
|
+
), { data: T = [] } = At(
|
|
1122
|
+
{ projects: e },
|
|
696
1123
|
{
|
|
697
|
-
skip: !
|
|
1124
|
+
skip: !e?.length || !R
|
|
698
1125
|
}
|
|
699
|
-
), { attributes:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
1126
|
+
), { attributes: I } = Be(), L = lt(pt), N = L?.attribFields?.length ? L.attribFields : I, M = /* @__PURE__ */ new Map();
|
|
1127
|
+
y.forEach(({ scope: b, filterTypes: v }) => {
|
|
1128
|
+
v.includes("attributes") && N.filter((O) => O.scope?.includes(b)).forEach((O) => {
|
|
1129
|
+
M.set(
|
|
703
1130
|
O.name,
|
|
704
|
-
(
|
|
1131
|
+
(M.get(O.name) || 0) + 1
|
|
705
1132
|
);
|
|
706
1133
|
});
|
|
707
|
-
}),
|
|
708
|
-
const O = D ?
|
|
709
|
-
if (
|
|
710
|
-
const
|
|
1134
|
+
}), y.forEach(({ scope: b, filterTypes: v }) => {
|
|
1135
|
+
const O = D ? b : void 0;
|
|
1136
|
+
if (v.includes("taskType") && b !== "user") {
|
|
1137
|
+
const r = H(
|
|
711
1138
|
"taskType",
|
|
712
1139
|
{
|
|
713
|
-
...
|
|
1140
|
+
...s,
|
|
714
1141
|
enableOperatorChange: !1
|
|
715
1142
|
},
|
|
716
1143
|
O,
|
|
717
|
-
|
|
1144
|
+
m.has("taskType")
|
|
718
1145
|
);
|
|
719
|
-
if (
|
|
720
|
-
let p =
|
|
721
|
-
|
|
1146
|
+
if (r) {
|
|
1147
|
+
let p = ve({ projectsInfo: g, productTypes: l }, "task");
|
|
1148
|
+
r.values?.push(...p), n.push(r);
|
|
722
1149
|
}
|
|
723
1150
|
}
|
|
724
|
-
if (
|
|
725
|
-
const
|
|
1151
|
+
if (v.includes("folderType") && b !== "user") {
|
|
1152
|
+
const r = H(
|
|
726
1153
|
"folderType",
|
|
727
1154
|
{
|
|
728
|
-
...
|
|
1155
|
+
...s,
|
|
729
1156
|
enableOperatorChange: !1
|
|
730
1157
|
},
|
|
731
1158
|
O,
|
|
732
|
-
|
|
1159
|
+
m.has("folderType")
|
|
733
1160
|
);
|
|
734
|
-
if (
|
|
735
|
-
let p =
|
|
736
|
-
|
|
1161
|
+
if (r) {
|
|
1162
|
+
let p = ve({ projectsInfo: g, productTypes: l }, "folder");
|
|
1163
|
+
r.values?.push(...p), n.push(r);
|
|
737
1164
|
}
|
|
738
1165
|
}
|
|
739
|
-
if (
|
|
740
|
-
const
|
|
1166
|
+
if (v.includes("productType") && b !== "user") {
|
|
1167
|
+
const r = H(
|
|
741
1168
|
"productType",
|
|
742
1169
|
{
|
|
743
|
-
...
|
|
1170
|
+
...s,
|
|
744
1171
|
enableOperatorChange: !1
|
|
745
1172
|
},
|
|
746
1173
|
O,
|
|
747
|
-
|
|
1174
|
+
m.has("productType")
|
|
748
1175
|
);
|
|
749
|
-
if (
|
|
750
|
-
let p =
|
|
751
|
-
|
|
1176
|
+
if (r) {
|
|
1177
|
+
let p = ve({ projectsInfo: g, productTypes: l }, "product");
|
|
1178
|
+
r.values?.push(...p), n.push(r);
|
|
752
1179
|
}
|
|
753
1180
|
}
|
|
754
|
-
if (
|
|
755
|
-
const
|
|
1181
|
+
if (v.includes("productBaseType") && b !== "user") {
|
|
1182
|
+
const r = H(
|
|
756
1183
|
"productBaseType",
|
|
757
1184
|
{
|
|
758
|
-
...
|
|
1185
|
+
...s,
|
|
759
1186
|
enableOperatorChange: !1
|
|
760
1187
|
},
|
|
761
1188
|
O,
|
|
762
|
-
|
|
1189
|
+
m.has("productBaseType")
|
|
763
1190
|
);
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
id:
|
|
767
|
-
label:
|
|
768
|
-
icon: p ||
|
|
1191
|
+
r && (f.forEach(({ icon: p, name: u }) => {
|
|
1192
|
+
r.values?.some((d) => d.id === u) || r.values?.push({
|
|
1193
|
+
id: u,
|
|
1194
|
+
label: u,
|
|
1195
|
+
icon: p || ae("product")
|
|
769
1196
|
});
|
|
770
|
-
}),
|
|
771
|
-
|
|
772
|
-
id:
|
|
773
|
-
label:
|
|
774
|
-
icon: p ||
|
|
1197
|
+
}), o.productBaseTypes?.forEach(({ icon: p, name: u }) => {
|
|
1198
|
+
r.values?.some((d) => d.id === u) || r.values?.push({
|
|
1199
|
+
id: u,
|
|
1200
|
+
label: u,
|
|
1201
|
+
icon: p || ae("product")
|
|
775
1202
|
});
|
|
776
|
-
}),
|
|
1203
|
+
}), n.push(r));
|
|
777
1204
|
}
|
|
778
|
-
if (
|
|
779
|
-
const
|
|
1205
|
+
if (v.includes("productName") && b === "product") {
|
|
1206
|
+
const r = H(
|
|
780
1207
|
"productName",
|
|
781
|
-
|
|
1208
|
+
s,
|
|
782
1209
|
O,
|
|
783
|
-
|
|
1210
|
+
m.has("productName")
|
|
784
1211
|
);
|
|
785
|
-
|
|
786
|
-
|
|
1212
|
+
r && (o.productNames?.forEach((p) => {
|
|
1213
|
+
r.values?.some((u) => u.id === p) || r.values?.push({
|
|
787
1214
|
id: p,
|
|
788
1215
|
label: p
|
|
789
1216
|
});
|
|
790
|
-
}),
|
|
1217
|
+
}), n.push(r));
|
|
791
1218
|
}
|
|
792
|
-
if (
|
|
793
|
-
const
|
|
1219
|
+
if (v.includes("status")) {
|
|
1220
|
+
const r = H(
|
|
794
1221
|
"status",
|
|
795
|
-
{ ...
|
|
1222
|
+
{ ...s, enableOperatorChange: !1 },
|
|
796
1223
|
O,
|
|
797
|
-
|
|
1224
|
+
m.has("status")
|
|
798
1225
|
);
|
|
799
|
-
|
|
800
|
-
(p?.statuses || []).filter((
|
|
801
|
-
|
|
802
|
-
id:
|
|
803
|
-
label:
|
|
804
|
-
icon:
|
|
805
|
-
color:
|
|
1226
|
+
r && (Object.values(g).forEach((p) => {
|
|
1227
|
+
(p?.statuses || []).filter((d) => d.scope?.includes(b)).forEach((d) => {
|
|
1228
|
+
r.values?.some((S) => S.id === d.name) || r.values?.push({
|
|
1229
|
+
id: d.name,
|
|
1230
|
+
label: d.name,
|
|
1231
|
+
icon: d.icon,
|
|
1232
|
+
color: d.color
|
|
806
1233
|
});
|
|
807
1234
|
});
|
|
808
|
-
}),
|
|
1235
|
+
}), n.push(r));
|
|
809
1236
|
}
|
|
810
|
-
if (
|
|
811
|
-
const
|
|
1237
|
+
if (v.includes("assignees")) {
|
|
1238
|
+
const r = H(
|
|
812
1239
|
"assignees",
|
|
813
|
-
|
|
1240
|
+
s,
|
|
814
1241
|
O,
|
|
815
|
-
|
|
1242
|
+
m.has("assignees")
|
|
816
1243
|
);
|
|
817
|
-
|
|
818
|
-
|
|
1244
|
+
r && (T.forEach((p) => {
|
|
1245
|
+
r.values?.some((u) => u.id === p.name) || r.values?.push({
|
|
819
1246
|
id: p.name,
|
|
820
1247
|
label: p.attrib.fullName || p.name,
|
|
821
1248
|
img: `/api/users/${p.name}/avatar`,
|
|
822
1249
|
icon: null
|
|
823
1250
|
});
|
|
824
|
-
}),
|
|
825
|
-
const
|
|
826
|
-
return (
|
|
827
|
-
}),
|
|
1251
|
+
}), r.values?.sort((p, u) => {
|
|
1252
|
+
const d = o.assignees?.filter((A) => A === p.id).length || 0;
|
|
1253
|
+
return (o.assignees?.filter((A) => A === u.id).length || 0) - d;
|
|
1254
|
+
}), n.push(r));
|
|
828
1255
|
}
|
|
829
|
-
if (
|
|
830
|
-
const
|
|
1256
|
+
if (v.includes("author")) {
|
|
1257
|
+
const r = H(
|
|
831
1258
|
"author",
|
|
832
|
-
|
|
1259
|
+
s,
|
|
833
1260
|
O,
|
|
834
|
-
|
|
1261
|
+
m.has("author")
|
|
835
1262
|
);
|
|
836
|
-
|
|
837
|
-
|
|
1263
|
+
r && (T.forEach((p) => {
|
|
1264
|
+
r.values?.some((u) => u.id === p.name) || r.values?.push({
|
|
838
1265
|
id: p.name,
|
|
839
1266
|
label: p.attrib.fullName || p.name,
|
|
840
1267
|
img: `/api/users/${p.name}/avatar`,
|
|
841
1268
|
icon: null
|
|
842
1269
|
});
|
|
843
|
-
}),
|
|
1270
|
+
}), n.push(r));
|
|
844
1271
|
}
|
|
845
|
-
if (
|
|
846
|
-
const
|
|
847
|
-
if (
|
|
1272
|
+
if (v.includes("tags")) {
|
|
1273
|
+
const r = H("tags", s, O, m.has("tags"));
|
|
1274
|
+
if (r) {
|
|
848
1275
|
const p = /* @__PURE__ */ new Map();
|
|
849
|
-
Object.values(
|
|
850
|
-
|
|
851
|
-
p.has(
|
|
1276
|
+
Object.values(g).forEach((S) => {
|
|
1277
|
+
S?.tags && S.tags.forEach((A) => {
|
|
1278
|
+
p.has(A.name) || p.set(A.name, A);
|
|
852
1279
|
});
|
|
853
1280
|
});
|
|
854
|
-
const
|
|
855
|
-
|
|
856
|
-
const
|
|
857
|
-
if (
|
|
858
|
-
|
|
1281
|
+
const u = /* @__PURE__ */ new Map();
|
|
1282
|
+
o.tags?.forEach((S) => {
|
|
1283
|
+
const A = u.get(S);
|
|
1284
|
+
if (A) {
|
|
1285
|
+
A.count++;
|
|
859
1286
|
return;
|
|
860
1287
|
} else {
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
id:
|
|
1288
|
+
const w = p.get(S);
|
|
1289
|
+
u.set(S, {
|
|
1290
|
+
id: S,
|
|
864
1291
|
type: "string",
|
|
865
|
-
label:
|
|
1292
|
+
label: S,
|
|
866
1293
|
values: [],
|
|
867
|
-
color:
|
|
1294
|
+
color: w?.color || null,
|
|
868
1295
|
count: 1
|
|
869
1296
|
});
|
|
870
1297
|
}
|
|
871
1298
|
});
|
|
872
|
-
const
|
|
873
|
-
(
|
|
1299
|
+
const d = Array.from(u.values()).sort(
|
|
1300
|
+
(S, A) => A.count - S.count
|
|
874
1301
|
);
|
|
875
|
-
|
|
1302
|
+
r.values?.push(...d), n.push(r);
|
|
876
1303
|
}
|
|
877
1304
|
}
|
|
878
|
-
if (
|
|
879
|
-
const
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
id:
|
|
883
|
-
label:
|
|
884
|
-
icon:
|
|
1305
|
+
if (v.includes("version")) {
|
|
1306
|
+
const r = H("version", s, O);
|
|
1307
|
+
r && (rt.forEach((u) => {
|
|
1308
|
+
r.values?.push({
|
|
1309
|
+
id: u.value,
|
|
1310
|
+
label: u.label,
|
|
1311
|
+
icon: u.icon
|
|
885
1312
|
});
|
|
886
|
-
}),
|
|
1313
|
+
}), n.push(r));
|
|
887
1314
|
}
|
|
888
|
-
if (
|
|
889
|
-
const
|
|
890
|
-
|
|
1315
|
+
if (v.includes("name")) {
|
|
1316
|
+
const r = H("name", s, O, m.has("name"));
|
|
1317
|
+
r && n.push(r);
|
|
891
1318
|
}
|
|
892
|
-
if (
|
|
893
|
-
const
|
|
1319
|
+
if (v.includes("hasReviewables")) {
|
|
1320
|
+
const r = H(
|
|
894
1321
|
"hasReviewables",
|
|
895
|
-
|
|
1322
|
+
s,
|
|
896
1323
|
O,
|
|
897
|
-
|
|
1324
|
+
m.has("hasReviewables")
|
|
898
1325
|
);
|
|
899
|
-
if (
|
|
1326
|
+
if (r) {
|
|
900
1327
|
const p = [
|
|
901
1328
|
{
|
|
902
1329
|
id: "true",
|
|
@@ -909,81 +1336,81 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
909
1336
|
values: []
|
|
910
1337
|
}
|
|
911
1338
|
];
|
|
912
|
-
|
|
1339
|
+
r.values?.push(...p), n.push(r);
|
|
913
1340
|
}
|
|
914
1341
|
}
|
|
915
|
-
if (
|
|
916
|
-
const
|
|
1342
|
+
if (v.includes("createdAt")) {
|
|
1343
|
+
const r = H(
|
|
917
1344
|
"createdAt",
|
|
918
|
-
|
|
1345
|
+
s,
|
|
919
1346
|
O,
|
|
920
|
-
|
|
1347
|
+
m.has("createdAt")
|
|
921
1348
|
);
|
|
922
|
-
|
|
923
|
-
...
|
|
1349
|
+
r && (r.values?.push(we), r.values?.push(
|
|
1350
|
+
...ye().map((p) => ({
|
|
924
1351
|
...p,
|
|
925
|
-
contentAfter:
|
|
1352
|
+
contentAfter: a ? void 0 : /* @__PURE__ */ C(le, { icon: "bolt" })
|
|
926
1353
|
}))
|
|
927
|
-
),
|
|
1354
|
+
), n.push(r));
|
|
928
1355
|
}
|
|
929
|
-
if (
|
|
930
|
-
const
|
|
1356
|
+
if (v.includes("updatedAt")) {
|
|
1357
|
+
const r = H(
|
|
931
1358
|
"updatedAt",
|
|
932
|
-
|
|
1359
|
+
s,
|
|
933
1360
|
O,
|
|
934
|
-
|
|
1361
|
+
m.has("updatedAt")
|
|
935
1362
|
);
|
|
936
|
-
|
|
937
|
-
...
|
|
1363
|
+
r && (r.values?.push(we), r.values?.push(
|
|
1364
|
+
...ye().map((p) => ({
|
|
938
1365
|
...p,
|
|
939
|
-
contentAfter:
|
|
1366
|
+
contentAfter: a ? void 0 : /* @__PURE__ */ C(le, { icon: "bolt" })
|
|
940
1367
|
}))
|
|
941
|
-
),
|
|
1368
|
+
), n.push(r));
|
|
942
1369
|
}
|
|
943
|
-
if (
|
|
944
|
-
const
|
|
945
|
-
(
|
|
946
|
-
), p =
|
|
947
|
-
(
|
|
1370
|
+
if (v.includes("attributes")) {
|
|
1371
|
+
const r = N.filter(
|
|
1372
|
+
(d) => d.scope?.includes(b)
|
|
1373
|
+
), p = Pt(o.attributes) ? r : r.filter(
|
|
1374
|
+
(d) => o.attributes && o.attributes[d.name]
|
|
948
1375
|
);
|
|
949
|
-
(
|
|
950
|
-
const
|
|
1376
|
+
(s?.enableRelativeValues ? p : p.filter((d) => d.data.type !== "datetime")).forEach((d) => {
|
|
1377
|
+
const S = o.attributes && o.attributes[d.name], A = d.data.enum, w = d.data.type, x = [
|
|
951
1378
|
"list_of_strings",
|
|
952
1379
|
"list_of_integers",
|
|
953
1380
|
"list_of_any",
|
|
954
1381
|
"list_of_submodels"
|
|
955
|
-
].includes(
|
|
956
|
-
|
|
1382
|
+
].includes(w || ""), B = w === "datetime", W = w === "string", K = w === "integer" || w === "float", te = x ? s?.enableOperatorChange : !1, q = d.data.default !== void 0 && d.data.default !== null && d.data.inherit !== !1, pe = (x || B || W || K) && !q ? s?.enableRelativeValues : !1, X = ts(
|
|
1383
|
+
d,
|
|
957
1384
|
{
|
|
958
|
-
...
|
|
1385
|
+
...s,
|
|
959
1386
|
allowsCustomValues: !0,
|
|
960
|
-
enableOperatorChange:
|
|
961
|
-
enableRelativeValues:
|
|
1387
|
+
enableOperatorChange: te,
|
|
1388
|
+
enableRelativeValues: pe
|
|
962
1389
|
},
|
|
963
1390
|
O,
|
|
964
|
-
(
|
|
1391
|
+
(M.get(d.name) || 0) > 1
|
|
965
1392
|
);
|
|
966
|
-
if (
|
|
967
|
-
const
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
await
|
|
971
|
-
|
|
1393
|
+
if (d.data.enumResolver) {
|
|
1394
|
+
const Q = d.data;
|
|
1395
|
+
X.loadValuesKey = e?.[0], X.loadValues = async () => xe(
|
|
1396
|
+
S,
|
|
1397
|
+
await h(Q, e?.[0]),
|
|
1398
|
+
w
|
|
972
1399
|
);
|
|
973
1400
|
}
|
|
974
|
-
const
|
|
1401
|
+
const fe = [
|
|
975
1402
|
"string",
|
|
976
1403
|
"integer",
|
|
977
1404
|
"float",
|
|
978
1405
|
"list_of_strings",
|
|
979
1406
|
"list_of_integers"
|
|
980
|
-
],
|
|
981
|
-
if (
|
|
982
|
-
const
|
|
983
|
-
|
|
1407
|
+
], J = [];
|
|
1408
|
+
if (fe.includes(w)) {
|
|
1409
|
+
const Q = xe(S, A, w);
|
|
1410
|
+
J.push(...Q);
|
|
984
1411
|
}
|
|
985
|
-
if (
|
|
986
|
-
const
|
|
1412
|
+
if (w === "boolean") {
|
|
1413
|
+
const Q = [
|
|
987
1414
|
{
|
|
988
1415
|
id: "true",
|
|
989
1416
|
label: "Yes",
|
|
@@ -995,56 +1422,56 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
995
1422
|
values: []
|
|
996
1423
|
}
|
|
997
1424
|
];
|
|
998
|
-
|
|
1425
|
+
J.push(...Q);
|
|
999
1426
|
}
|
|
1000
|
-
|
|
1001
|
-
...
|
|
1002
|
-
...
|
|
1003
|
-
contentAfter:
|
|
1427
|
+
B && (J.push(we), J.push(
|
|
1428
|
+
...ye().map((Q) => ({
|
|
1429
|
+
...Q,
|
|
1430
|
+
contentAfter: a ? void 0 : /* @__PURE__ */ C(le, { icon: "bolt" })
|
|
1004
1431
|
}))
|
|
1005
|
-
)),
|
|
1432
|
+
)), X.values?.push(...J), E.set(X.id, d.name), n.push(X);
|
|
1006
1433
|
});
|
|
1007
1434
|
}
|
|
1008
1435
|
});
|
|
1009
|
-
const
|
|
1010
|
-
if (!
|
|
1011
|
-
const O = typeof
|
|
1012
|
-
return
|
|
1013
|
-
name:
|
|
1014
|
-
label: p ?
|
|
1015
|
-
icon: p ?
|
|
1016
|
-
color: O?.color ||
|
|
1017
|
-
}),
|
|
1018
|
-
}, []),
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1436
|
+
const G = n.reduce((b, v) => {
|
|
1437
|
+
if (!v.group) return b;
|
|
1438
|
+
const O = typeof v.group == "string" ? void 0 : v.group, r = O?.name || v.group, p = y.some(({ scope: u }) => u === r);
|
|
1439
|
+
return b.some((u) => u.name === r) || b.push({
|
|
1440
|
+
name: r,
|
|
1441
|
+
label: p ? de(r) : O?.label || v.label,
|
|
1442
|
+
icon: p ? ae(r) : O?.icon || v.icon,
|
|
1443
|
+
color: O?.color || v.color
|
|
1444
|
+
}), b;
|
|
1445
|
+
}, []), $ = ss(n, E, N), V = as(
|
|
1446
|
+
G,
|
|
1447
|
+
$,
|
|
1448
|
+
E,
|
|
1022
1449
|
N
|
|
1023
1450
|
);
|
|
1024
|
-
return { options:
|
|
1025
|
-
},
|
|
1026
|
-
projectsInfo:
|
|
1027
|
-
productTypes:
|
|
1028
|
-
},
|
|
1029
|
-
const
|
|
1030
|
-
return
|
|
1031
|
-
|
|
1032
|
-
id:
|
|
1451
|
+
return { options: $, groupOptions: V };
|
|
1452
|
+
}, ve = ({
|
|
1453
|
+
projectsInfo: t,
|
|
1454
|
+
productTypes: e
|
|
1455
|
+
}, i) => {
|
|
1456
|
+
const c = [];
|
|
1457
|
+
return i === "product" ? e.forEach(({ icon: o, name: s }) => {
|
|
1458
|
+
c.push({
|
|
1459
|
+
id: s,
|
|
1033
1460
|
type: "string",
|
|
1034
|
-
label:
|
|
1035
|
-
icon:
|
|
1461
|
+
label: s,
|
|
1462
|
+
icon: o || ae("product"),
|
|
1036
1463
|
inverted: !1,
|
|
1037
1464
|
values: [],
|
|
1038
1465
|
allowsCustomValues: !1
|
|
1039
1466
|
});
|
|
1040
|
-
}) :
|
|
1041
|
-
(
|
|
1042
|
-
|
|
1043
|
-
id:
|
|
1467
|
+
}) : i === "task" ? Object.values(t).forEach((o) => {
|
|
1468
|
+
(o?.taskTypes || []).forEach((a) => {
|
|
1469
|
+
c.some((h) => h.id === a.name) || c.push({
|
|
1470
|
+
id: a.name,
|
|
1044
1471
|
type: "string",
|
|
1045
|
-
label:
|
|
1046
|
-
icon:
|
|
1047
|
-
color:
|
|
1472
|
+
label: a.name,
|
|
1473
|
+
icon: a.icon,
|
|
1474
|
+
color: a.color,
|
|
1048
1475
|
inverted: !1,
|
|
1049
1476
|
values: [],
|
|
1050
1477
|
allowsCustomValues: !1,
|
|
@@ -1055,14 +1482,14 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1055
1482
|
}
|
|
1056
1483
|
});
|
|
1057
1484
|
});
|
|
1058
|
-
}) :
|
|
1059
|
-
(
|
|
1060
|
-
|
|
1061
|
-
id:
|
|
1485
|
+
}) : i === "folder" && Object.values(t).forEach((o) => {
|
|
1486
|
+
(o?.folderTypes || []).forEach((a) => {
|
|
1487
|
+
c.some((h) => h.id === a.name) || c.push({
|
|
1488
|
+
id: a.name,
|
|
1062
1489
|
type: "string",
|
|
1063
|
-
label:
|
|
1064
|
-
icon:
|
|
1065
|
-
color:
|
|
1490
|
+
label: a.name,
|
|
1491
|
+
icon: a.icon,
|
|
1492
|
+
color: a.color,
|
|
1066
1493
|
inverted: !1,
|
|
1067
1494
|
values: [],
|
|
1068
1495
|
allowsCustomValues: !1,
|
|
@@ -1073,85 +1500,85 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1073
1500
|
}
|
|
1074
1501
|
});
|
|
1075
1502
|
});
|
|
1076
|
-
}),
|
|
1077
|
-
},
|
|
1078
|
-
const { prefixes:
|
|
1079
|
-
let
|
|
1080
|
-
return
|
|
1081
|
-
},
|
|
1082
|
-
const
|
|
1083
|
-
let
|
|
1084
|
-
switch (
|
|
1503
|
+
}), c;
|
|
1504
|
+
}, Ue = (t, e, i, c) => {
|
|
1505
|
+
const { prefixes: o, keys: s } = i || {};
|
|
1506
|
+
let a = t;
|
|
1507
|
+
return s && e in s ? a = `${s[e]}` : o && e in o && (a = `${o[e]}${t}`), c && (a = `${c}_${a}`), a;
|
|
1508
|
+
}, H = (t, e, i, c = !1) => {
|
|
1509
|
+
const o = (l) => Ue(l, t, e, i);
|
|
1510
|
+
let s = null;
|
|
1511
|
+
switch (t) {
|
|
1085
1512
|
case "taskType":
|
|
1086
|
-
|
|
1087
|
-
id:
|
|
1513
|
+
s = {
|
|
1514
|
+
id: o("taskType"),
|
|
1088
1515
|
type: "string",
|
|
1089
1516
|
label: "Task Type",
|
|
1090
|
-
icon:
|
|
1517
|
+
icon: j("task"),
|
|
1091
1518
|
inverted: !1,
|
|
1092
1519
|
operator: "OR",
|
|
1093
1520
|
values: [],
|
|
1094
1521
|
allowsCustomValues: !1,
|
|
1095
1522
|
allowHasValue: !1,
|
|
1096
1523
|
allowNoValue: !1,
|
|
1097
|
-
allowExcludes:
|
|
1524
|
+
allowExcludes: e?.enableExcludes,
|
|
1098
1525
|
operatorChangeable: !1
|
|
1099
1526
|
};
|
|
1100
1527
|
break;
|
|
1101
1528
|
case "folderType":
|
|
1102
|
-
|
|
1103
|
-
id:
|
|
1529
|
+
s = {
|
|
1530
|
+
id: o("folderType"),
|
|
1104
1531
|
type: "string",
|
|
1105
1532
|
label: "Folder Type",
|
|
1106
|
-
icon:
|
|
1533
|
+
icon: j("folder"),
|
|
1107
1534
|
inverted: !1,
|
|
1108
1535
|
operator: "OR",
|
|
1109
1536
|
values: [],
|
|
1110
1537
|
allowsCustomValues: !1,
|
|
1111
1538
|
allowHasValue: !1,
|
|
1112
1539
|
allowNoValue: !1,
|
|
1113
|
-
allowExcludes:
|
|
1540
|
+
allowExcludes: e?.enableExcludes,
|
|
1114
1541
|
operatorChangeable: !1
|
|
1115
1542
|
};
|
|
1116
1543
|
break;
|
|
1117
1544
|
case "productType":
|
|
1118
|
-
|
|
1119
|
-
id:
|
|
1545
|
+
s = {
|
|
1546
|
+
id: o("productType"),
|
|
1120
1547
|
type: "string",
|
|
1121
1548
|
label: "Product Type",
|
|
1122
|
-
icon:
|
|
1549
|
+
icon: j("product"),
|
|
1123
1550
|
inverted: !1,
|
|
1124
1551
|
operator: "OR",
|
|
1125
1552
|
values: [],
|
|
1126
1553
|
allowsCustomValues: !1,
|
|
1127
1554
|
allowHasValue: !1,
|
|
1128
1555
|
allowNoValue: !1,
|
|
1129
|
-
allowExcludes:
|
|
1556
|
+
allowExcludes: e?.enableExcludes,
|
|
1130
1557
|
operatorChangeable: !1
|
|
1131
1558
|
};
|
|
1132
1559
|
break;
|
|
1133
1560
|
case "productBaseType":
|
|
1134
|
-
|
|
1135
|
-
id:
|
|
1561
|
+
s = {
|
|
1562
|
+
id: o("productBaseType"),
|
|
1136
1563
|
type: "string",
|
|
1137
1564
|
label: "Product Base Type",
|
|
1138
|
-
icon:
|
|
1565
|
+
icon: j("product"),
|
|
1139
1566
|
inverted: !1,
|
|
1140
1567
|
operator: "OR",
|
|
1141
1568
|
values: [],
|
|
1142
1569
|
allowsCustomValues: !0,
|
|
1143
1570
|
allowHasValue: !1,
|
|
1144
1571
|
allowNoValue: !1,
|
|
1145
|
-
allowExcludes:
|
|
1572
|
+
allowExcludes: e?.enableExcludes,
|
|
1146
1573
|
operatorChangeable: !1
|
|
1147
1574
|
};
|
|
1148
1575
|
break;
|
|
1149
1576
|
case "productName":
|
|
1150
|
-
|
|
1151
|
-
id:
|
|
1577
|
+
s = {
|
|
1578
|
+
id: o("productNames"),
|
|
1152
1579
|
type: "string",
|
|
1153
1580
|
label: "Product Name",
|
|
1154
|
-
icon:
|
|
1581
|
+
icon: j("productName", "string"),
|
|
1155
1582
|
inverted: !1,
|
|
1156
1583
|
operator: "OR",
|
|
1157
1584
|
values: [],
|
|
@@ -1163,75 +1590,75 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1163
1590
|
};
|
|
1164
1591
|
break;
|
|
1165
1592
|
case "status":
|
|
1166
|
-
|
|
1167
|
-
id:
|
|
1593
|
+
s = {
|
|
1594
|
+
id: o("status"),
|
|
1168
1595
|
type: "string",
|
|
1169
1596
|
label: "Status",
|
|
1170
|
-
icon:
|
|
1597
|
+
icon: j("status"),
|
|
1171
1598
|
inverted: !1,
|
|
1172
1599
|
operator: "OR",
|
|
1173
1600
|
values: [],
|
|
1174
1601
|
allowsCustomValues: !1,
|
|
1175
1602
|
allowHasValue: !1,
|
|
1176
1603
|
allowNoValue: !1,
|
|
1177
|
-
allowExcludes:
|
|
1604
|
+
allowExcludes: e?.enableExcludes,
|
|
1178
1605
|
operatorChangeable: !1
|
|
1179
1606
|
};
|
|
1180
1607
|
break;
|
|
1181
1608
|
case "assignees":
|
|
1182
|
-
|
|
1183
|
-
id:
|
|
1609
|
+
s = {
|
|
1610
|
+
id: o("assignees"),
|
|
1184
1611
|
type: "list_of_strings",
|
|
1185
1612
|
label: "Assignee",
|
|
1186
|
-
icon:
|
|
1613
|
+
icon: j("assignees"),
|
|
1187
1614
|
inverted: !1,
|
|
1188
1615
|
operator: "OR",
|
|
1189
1616
|
values: [],
|
|
1190
1617
|
allowsCustomValues: !1,
|
|
1191
|
-
allowHasValue:
|
|
1192
|
-
allowNoValue:
|
|
1193
|
-
allowExcludes:
|
|
1194
|
-
operatorChangeable:
|
|
1618
|
+
allowHasValue: e?.enableRelativeValues,
|
|
1619
|
+
allowNoValue: e?.enableRelativeValues,
|
|
1620
|
+
allowExcludes: e?.enableExcludes,
|
|
1621
|
+
operatorChangeable: e?.enableOperatorChange
|
|
1195
1622
|
};
|
|
1196
1623
|
break;
|
|
1197
1624
|
case "author":
|
|
1198
|
-
|
|
1199
|
-
id:
|
|
1625
|
+
s = {
|
|
1626
|
+
id: o("author"),
|
|
1200
1627
|
type: "string",
|
|
1201
1628
|
label: "Author",
|
|
1202
|
-
icon:
|
|
1629
|
+
icon: j("author"),
|
|
1203
1630
|
inverted: !1,
|
|
1204
1631
|
operator: "OR",
|
|
1205
1632
|
values: [],
|
|
1206
1633
|
allowsCustomValues: !1,
|
|
1207
|
-
allowHasValue:
|
|
1208
|
-
allowNoValue:
|
|
1209
|
-
allowExcludes:
|
|
1210
|
-
operatorChangeable:
|
|
1634
|
+
allowHasValue: e?.enableRelativeValues,
|
|
1635
|
+
allowNoValue: e?.enableRelativeValues,
|
|
1636
|
+
allowExcludes: e?.enableExcludes,
|
|
1637
|
+
operatorChangeable: e?.enableOperatorChange
|
|
1211
1638
|
};
|
|
1212
1639
|
break;
|
|
1213
1640
|
case "tags":
|
|
1214
|
-
|
|
1215
|
-
id:
|
|
1641
|
+
s = {
|
|
1642
|
+
id: o("tags"),
|
|
1216
1643
|
type: "list_of_strings",
|
|
1217
1644
|
label: "Tags",
|
|
1218
|
-
icon:
|
|
1645
|
+
icon: j("tags"),
|
|
1219
1646
|
inverted: !1,
|
|
1220
1647
|
operator: "OR",
|
|
1221
1648
|
values: [],
|
|
1222
1649
|
allowsCustomValues: !0,
|
|
1223
|
-
allowHasValue:
|
|
1224
|
-
allowNoValue:
|
|
1225
|
-
allowExcludes:
|
|
1226
|
-
operatorChangeable:
|
|
1650
|
+
allowHasValue: e?.enableRelativeValues,
|
|
1651
|
+
allowNoValue: e?.enableRelativeValues,
|
|
1652
|
+
allowExcludes: e?.enableExcludes,
|
|
1653
|
+
operatorChangeable: e?.enableOperatorChange
|
|
1227
1654
|
};
|
|
1228
1655
|
break;
|
|
1229
1656
|
case "version":
|
|
1230
|
-
|
|
1231
|
-
id:
|
|
1657
|
+
s = {
|
|
1658
|
+
id: o("version"),
|
|
1232
1659
|
type: "string",
|
|
1233
1660
|
label: "Version",
|
|
1234
|
-
icon:
|
|
1661
|
+
icon: ae("version"),
|
|
1235
1662
|
inverted: !1,
|
|
1236
1663
|
operator: "OR",
|
|
1237
1664
|
values: [],
|
|
@@ -1244,8 +1671,8 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1244
1671
|
};
|
|
1245
1672
|
break;
|
|
1246
1673
|
case "name":
|
|
1247
|
-
|
|
1248
|
-
id:
|
|
1674
|
+
s = {
|
|
1675
|
+
id: o("name"),
|
|
1249
1676
|
type: "string",
|
|
1250
1677
|
label: "Name",
|
|
1251
1678
|
icon: "text_fields",
|
|
@@ -1260,8 +1687,8 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1260
1687
|
};
|
|
1261
1688
|
break;
|
|
1262
1689
|
case "hasReviewables":
|
|
1263
|
-
|
|
1264
|
-
id:
|
|
1690
|
+
s = {
|
|
1691
|
+
id: o("hasReviewables"),
|
|
1265
1692
|
type: "boolean",
|
|
1266
1693
|
label: "Has Reviewables",
|
|
1267
1694
|
icon: "play_circle",
|
|
@@ -1271,14 +1698,14 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1271
1698
|
allowsCustomValues: !1,
|
|
1272
1699
|
allowHasValue: !1,
|
|
1273
1700
|
allowNoValue: !1,
|
|
1274
|
-
allowExcludes:
|
|
1701
|
+
allowExcludes: e?.enableExcludes,
|
|
1275
1702
|
operatorChangeable: !1,
|
|
1276
1703
|
singleSelect: !0
|
|
1277
1704
|
};
|
|
1278
1705
|
break;
|
|
1279
1706
|
case "createdAt":
|
|
1280
|
-
|
|
1281
|
-
id:
|
|
1707
|
+
s = {
|
|
1708
|
+
id: o("createdAt"),
|
|
1282
1709
|
type: "datetime",
|
|
1283
1710
|
label: "Created",
|
|
1284
1711
|
icon: "calendar_add_on",
|
|
@@ -1294,8 +1721,8 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1294
1721
|
};
|
|
1295
1722
|
break;
|
|
1296
1723
|
case "updatedAt":
|
|
1297
|
-
|
|
1298
|
-
id:
|
|
1724
|
+
s = {
|
|
1725
|
+
id: o("updatedAt"),
|
|
1299
1726
|
type: "datetime",
|
|
1300
1727
|
label: "Updated",
|
|
1301
1728
|
icon: "edit_calendar",
|
|
@@ -1311,134 +1738,136 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1311
1738
|
};
|
|
1312
1739
|
break;
|
|
1313
1740
|
}
|
|
1314
|
-
const
|
|
1315
|
-
if ((
|
|
1316
|
-
const
|
|
1317
|
-
|
|
1318
|
-
name:
|
|
1319
|
-
label:
|
|
1320
|
-
icon:
|
|
1741
|
+
const a = de(i || ""), h = (l) => i ? `${a} ${l}` : l;
|
|
1742
|
+
if ((c || i) && s) {
|
|
1743
|
+
const l = i || t;
|
|
1744
|
+
s.group = {
|
|
1745
|
+
name: l,
|
|
1746
|
+
label: i ? de(i) : s.label,
|
|
1747
|
+
icon: i ? ae(i) : s.icon
|
|
1321
1748
|
};
|
|
1322
1749
|
}
|
|
1323
|
-
return
|
|
1324
|
-
},
|
|
1325
|
-
const
|
|
1326
|
-
name:
|
|
1327
|
-
label:
|
|
1328
|
-
icon:
|
|
1750
|
+
return s && i && (s.tooltip = h(s.label), s.value = { label: h(s.label) }), s && t === "version" && i === "version" && (s.value = { label: "Product Version" }, s.tooltip = "Product Version"), s;
|
|
1751
|
+
}, ts = (t, e, i, c = !1) => {
|
|
1752
|
+
const o = t.data.title || t.name, s = c || i ? {
|
|
1753
|
+
name: i || t.name,
|
|
1754
|
+
label: i ? de(i) : o,
|
|
1755
|
+
icon: i ? ae(i) : j(t.name, t.data.type, Re(t.data))
|
|
1329
1756
|
} : void 0;
|
|
1330
1757
|
return {
|
|
1331
|
-
id:
|
|
1332
|
-
type:
|
|
1333
|
-
label:
|
|
1758
|
+
id: Ue(t.name, "attributes", e, i),
|
|
1759
|
+
type: t.data.type,
|
|
1760
|
+
label: o,
|
|
1334
1761
|
operator: "OR",
|
|
1335
1762
|
inverted: !1,
|
|
1336
1763
|
values: [],
|
|
1337
|
-
allowsCustomValues:
|
|
1338
|
-
allowHasValue:
|
|
1339
|
-
allowNoValue:
|
|
1340
|
-
allowExcludes:
|
|
1341
|
-
operatorChangeable:
|
|
1342
|
-
icon:
|
|
1343
|
-
group:
|
|
1344
|
-
tooltip:
|
|
1345
|
-
value:
|
|
1346
|
-
singleSelect: ["boolean", "datetime"].includes(
|
|
1764
|
+
allowsCustomValues: e?.allowsCustomValues,
|
|
1765
|
+
allowHasValue: e.enableRelativeValues,
|
|
1766
|
+
allowNoValue: e.enableRelativeValues,
|
|
1767
|
+
allowExcludes: e?.enableExcludes,
|
|
1768
|
+
operatorChangeable: e?.enableOperatorChange,
|
|
1769
|
+
icon: j(t.name, t.data.type, Re(t.data)),
|
|
1770
|
+
group: s,
|
|
1771
|
+
tooltip: i ? `${de(i)} ${o}` : void 0,
|
|
1772
|
+
value: i ? { icon: ae(i) } : void 0,
|
|
1773
|
+
singleSelect: ["boolean", "datetime"].includes(t.data.type || "")
|
|
1347
1774
|
};
|
|
1348
|
-
},
|
|
1349
|
-
const
|
|
1350
|
-
if (
|
|
1351
|
-
const
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1775
|
+
}, xe = (t, e, i) => {
|
|
1776
|
+
const c = [], o = [];
|
|
1777
|
+
if (e) {
|
|
1778
|
+
const s = (t || []).flatMap((a) => Array.isArray(a) ? a : [a]);
|
|
1779
|
+
Et(e, s).forEach(
|
|
1780
|
+
(a) => {
|
|
1781
|
+
const h = a.icon, l = Ct(h);
|
|
1782
|
+
c.push({
|
|
1783
|
+
id: a.value.toString(),
|
|
1784
|
+
type: i,
|
|
1785
|
+
label: a.label,
|
|
1786
|
+
values: [],
|
|
1787
|
+
icon: l ? null : h,
|
|
1788
|
+
img: l ? h : void 0,
|
|
1789
|
+
color: a.color,
|
|
1790
|
+
pt: {
|
|
1791
|
+
style: { color: "inherit" }
|
|
1792
|
+
}
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1795
|
+
);
|
|
1367
1796
|
}
|
|
1368
|
-
return
|
|
1369
|
-
if (!
|
|
1370
|
-
let
|
|
1371
|
-
switch (typeof
|
|
1797
|
+
return t?.forEach((s) => {
|
|
1798
|
+
if (!s) return;
|
|
1799
|
+
let a = "";
|
|
1800
|
+
switch (typeof s) {
|
|
1372
1801
|
case "string":
|
|
1373
1802
|
case "number":
|
|
1374
1803
|
case "boolean":
|
|
1375
|
-
|
|
1804
|
+
a = s.toString();
|
|
1376
1805
|
break;
|
|
1377
1806
|
case "object":
|
|
1378
|
-
Array.isArray(
|
|
1807
|
+
Array.isArray(s) ? a = s.join(", ") : a = JSON.stringify(s);
|
|
1379
1808
|
break;
|
|
1380
1809
|
}
|
|
1381
|
-
const
|
|
1382
|
-
if (
|
|
1383
|
-
const
|
|
1384
|
-
if (
|
|
1385
|
-
|
|
1810
|
+
const h = a.trim().toLowerCase().replace(/[^a-z0-9\s]/g, "").replace(/\s+/g, "-");
|
|
1811
|
+
if (c?.find((n) => n.id === h)) return;
|
|
1812
|
+
const f = o.find((n) => n.id === h);
|
|
1813
|
+
if (f) {
|
|
1814
|
+
f.count++;
|
|
1386
1815
|
return;
|
|
1387
1816
|
} else
|
|
1388
|
-
|
|
1389
|
-
id:
|
|
1390
|
-
type:
|
|
1391
|
-
label:
|
|
1817
|
+
o.push({
|
|
1818
|
+
id: h,
|
|
1819
|
+
type: i,
|
|
1820
|
+
label: a,
|
|
1392
1821
|
values: [],
|
|
1393
1822
|
count: 1
|
|
1394
1823
|
});
|
|
1395
|
-
}),
|
|
1396
|
-
},
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
)),
|
|
1403
|
-
const
|
|
1404
|
-
return
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1824
|
+
}), o.sort((s, a) => a.count - s.count), [...c, ...o];
|
|
1825
|
+
}, ss = (t, e, i) => [...t].sort((c, o) => We(
|
|
1826
|
+
ge(c),
|
|
1827
|
+
e.get(c.id),
|
|
1828
|
+
ge(o),
|
|
1829
|
+
e.get(o.id),
|
|
1830
|
+
i
|
|
1831
|
+
)), ge = (t) => t.group ? typeof t.group == "string" ? t.group : t.group.name : t.id, as = (t, e, i, c) => [...t].sort((o, s) => {
|
|
1832
|
+
const a = e.find((l) => (typeof l.group == "string" ? l.group : l.group?.name) === o.name), h = e.find((l) => (typeof l.group == "string" ? l.group : l.group?.name) === s.name);
|
|
1833
|
+
return We(
|
|
1834
|
+
a ? ge(a) : o.name,
|
|
1835
|
+
a ? i.get(a.id) : o.name,
|
|
1836
|
+
h ? ge(h) : s.name,
|
|
1837
|
+
h ? i.get(h.id) : s.name,
|
|
1838
|
+
c
|
|
1410
1839
|
);
|
|
1411
|
-
}),
|
|
1412
|
-
const
|
|
1413
|
-
let
|
|
1414
|
-
for (const
|
|
1415
|
-
if (
|
|
1416
|
-
|
|
1840
|
+
}), We = (t, e, i, c, o) => {
|
|
1841
|
+
const s = new Map(o.map((f, n) => [f.name, n])), a = (f) => {
|
|
1842
|
+
let n = 0;
|
|
1843
|
+
for (const E of es) {
|
|
1844
|
+
if (f === E || f.endsWith(`_${E}`)) return n;
|
|
1845
|
+
n++;
|
|
1417
1846
|
}
|
|
1418
1847
|
return Number.MAX_SAFE_INTEGER;
|
|
1419
|
-
},
|
|
1420
|
-
return
|
|
1421
|
-
},
|
|
1422
|
-
const
|
|
1423
|
-
folder: { conditions: [], operator:
|
|
1424
|
-
product: { conditions: [], operator:
|
|
1425
|
-
task: { conditions: [], operator:
|
|
1426
|
-
user: { conditions: [], operator:
|
|
1427
|
-
version: { conditions: [], operator:
|
|
1428
|
-
unscoped: { conditions: [], operator:
|
|
1848
|
+
}, h = e ? [1, s.get(e) ?? Number.MAX_SAFE_INTEGER] : [0, a(t)], l = c ? [1, s.get(c) ?? Number.MAX_SAFE_INTEGER] : [0, a(i)];
|
|
1849
|
+
return h[0] - l[0] || h[1] - l[1];
|
|
1850
|
+
}, aa = (t, e, i, c) => {
|
|
1851
|
+
const o = {
|
|
1852
|
+
folder: { conditions: [], operator: t?.operator || "and" },
|
|
1853
|
+
product: { conditions: [], operator: t?.operator || "and" },
|
|
1854
|
+
task: { conditions: [], operator: t?.operator || "and" },
|
|
1855
|
+
user: { conditions: [], operator: t?.operator || "and" },
|
|
1856
|
+
version: { conditions: [], operator: t?.operator || "and" },
|
|
1857
|
+
unscoped: { conditions: [], operator: t?.operator || "and" }
|
|
1429
1858
|
};
|
|
1430
|
-
if (!
|
|
1431
|
-
return
|
|
1432
|
-
const
|
|
1433
|
-
const
|
|
1434
|
-
if (
|
|
1435
|
-
const
|
|
1436
|
-
return { scope:
|
|
1437
|
-
} else if (
|
|
1438
|
-
return { scope:
|
|
1439
|
-
return { scope: null, cleanId:
|
|
1440
|
-
},
|
|
1441
|
-
const
|
|
1859
|
+
if (!t?.conditions || t?.conditions.length === 0)
|
|
1860
|
+
return o;
|
|
1861
|
+
const s = (l) => {
|
|
1862
|
+
const f = e.find((n) => l.startsWith(`${n}_`));
|
|
1863
|
+
if (f) {
|
|
1864
|
+
const n = l.substring(`${f}_`.length);
|
|
1865
|
+
return { scope: f, cleanId: n };
|
|
1866
|
+
} else if (i?.fallbackScope)
|
|
1867
|
+
return { scope: i.fallbackScope, cleanId: l };
|
|
1868
|
+
return { scope: null, cleanId: l };
|
|
1869
|
+
}, a = (l) => {
|
|
1870
|
+
const f = {
|
|
1442
1871
|
folder: [],
|
|
1443
1872
|
product: [],
|
|
1444
1873
|
task: [],
|
|
@@ -1446,34 +1875,34 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1446
1875
|
version: [],
|
|
1447
1876
|
unscoped: []
|
|
1448
1877
|
};
|
|
1449
|
-
if ("conditions" in
|
|
1450
|
-
const
|
|
1451
|
-
Object.keys(
|
|
1452
|
-
const
|
|
1453
|
-
D.length > 0 && (D.length === 1 && !
|
|
1878
|
+
if ("conditions" in l && !("key" in l)) {
|
|
1879
|
+
const n = (l.conditions || []).map((E) => a(E));
|
|
1880
|
+
Object.keys(f).forEach((E) => {
|
|
1881
|
+
const y = E, D = n.flatMap((m) => m[y]);
|
|
1882
|
+
D.length > 0 && (D.length === 1 && !l.operator ? f[y].push(D[0]) : f[y].push({
|
|
1454
1883
|
conditions: D,
|
|
1455
|
-
operator:
|
|
1884
|
+
operator: l.operator
|
|
1456
1885
|
}));
|
|
1457
1886
|
});
|
|
1458
|
-
} else if ("key" in
|
|
1459
|
-
const { scope:
|
|
1460
|
-
if (
|
|
1461
|
-
|
|
1887
|
+
} else if ("key" in l) {
|
|
1888
|
+
const { scope: n, cleanId: E } = s(l.key);
|
|
1889
|
+
if (n)
|
|
1890
|
+
f[n].push({ ...l, key: E });
|
|
1462
1891
|
else {
|
|
1463
|
-
const
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
}) :
|
|
1892
|
+
const y = c?.[l.key];
|
|
1893
|
+
y ? f[y].push(l) : l.key === ut || l.key === "name" || l.key?.endsWith("_name") ? e.forEach((D) => {
|
|
1894
|
+
f[D].push(l);
|
|
1895
|
+
}) : f.unscoped.push(l);
|
|
1467
1896
|
}
|
|
1468
1897
|
}
|
|
1469
|
-
return
|
|
1470
|
-
},
|
|
1471
|
-
return Object.keys(
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1474
|
-
}),
|
|
1475
|
-
},
|
|
1476
|
-
const
|
|
1898
|
+
return f;
|
|
1899
|
+
}, h = (t.conditions || []).map((l) => a(l));
|
|
1900
|
+
return Object.keys(o).forEach((l) => {
|
|
1901
|
+
const f = l;
|
|
1902
|
+
o[f].conditions = h.flatMap((n) => n[f]);
|
|
1903
|
+
}), o;
|
|
1904
|
+
}, oa = (t, e, i) => {
|
|
1905
|
+
const c = {
|
|
1477
1906
|
folder: [],
|
|
1478
1907
|
product: [],
|
|
1479
1908
|
task: [],
|
|
@@ -1481,31 +1910,31 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1481
1910
|
version: [],
|
|
1482
1911
|
unscoped: []
|
|
1483
1912
|
};
|
|
1484
|
-
if (!
|
|
1485
|
-
return
|
|
1486
|
-
const
|
|
1487
|
-
const
|
|
1488
|
-
return
|
|
1913
|
+
if (!t || t.length === 0)
|
|
1914
|
+
return c;
|
|
1915
|
+
const o = (a) => e.find((l) => a.startsWith(`${l}_`)) || null, s = (a, h) => {
|
|
1916
|
+
const l = `${h}_`;
|
|
1917
|
+
return a.startsWith(l) ? a.substring(l.length) : a;
|
|
1489
1918
|
};
|
|
1490
|
-
return
|
|
1491
|
-
if (!
|
|
1492
|
-
const
|
|
1493
|
-
if (
|
|
1494
|
-
const
|
|
1495
|
-
...
|
|
1496
|
-
id: a
|
|
1919
|
+
return t.forEach((a) => {
|
|
1920
|
+
if (!a.id) return;
|
|
1921
|
+
const h = o(a.id);
|
|
1922
|
+
if (h) {
|
|
1923
|
+
const l = {
|
|
1924
|
+
...a,
|
|
1925
|
+
id: s(a.id, h)
|
|
1497
1926
|
};
|
|
1498
|
-
|
|
1927
|
+
c[h].push(l);
|
|
1499
1928
|
} else {
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1929
|
+
const l = i?.[a.id];
|
|
1930
|
+
l ? c[l].push(a) : c.unscoped.push(a);
|
|
1502
1931
|
}
|
|
1503
|
-
}),
|
|
1504
|
-
},
|
|
1505
|
-
folder: [...
|
|
1506
|
-
task: [...
|
|
1932
|
+
}), c;
|
|
1933
|
+
}, ce = ["status", "tags", "attributes", "createdAt", "updatedAt"], os = {
|
|
1934
|
+
folder: [...ce, "name", "folderType"],
|
|
1935
|
+
task: [...ce, "name", "taskType", "folderType", "assignees"],
|
|
1507
1936
|
version: [
|
|
1508
|
-
...
|
|
1937
|
+
...ce,
|
|
1509
1938
|
"version",
|
|
1510
1939
|
"productName",
|
|
1511
1940
|
"productType",
|
|
@@ -1515,139 +1944,141 @@ const Ee = 500, Vt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ma = ({
|
|
|
1515
1944
|
"taskType",
|
|
1516
1945
|
"folderType"
|
|
1517
1946
|
],
|
|
1518
|
-
product: [...
|
|
1519
|
-
user: [...
|
|
1520
|
-
},
|
|
1521
|
-
scope:
|
|
1522
|
-
filterTypes:
|
|
1947
|
+
product: [...ce, "productName", "productBaseType"],
|
|
1948
|
+
user: [...ce]
|
|
1949
|
+
}, na = (t, e) => t.map((i) => ({
|
|
1950
|
+
scope: i,
|
|
1951
|
+
filterTypes: os[i].filter((c) => !e?.[i]?.includes(c))
|
|
1523
1952
|
}));
|
|
1524
1953
|
export {
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1954
|
+
Ks as ACCESS_LEVEL_LABELS,
|
|
1955
|
+
js as AccessSearchInput,
|
|
1956
|
+
Se as AccessUser,
|
|
1957
|
+
ia as AddColumnButton,
|
|
1958
|
+
ca as AddonLoadingScreen,
|
|
1959
|
+
ua as AttributeEditor,
|
|
1960
|
+
Ve as BLOCK_DIALOG_CLOSE_CLASS,
|
|
1961
|
+
Wa as Badge,
|
|
1962
|
+
Ha as BadgeWrapper,
|
|
1963
|
+
qa as CUSTOM_RANGE_ICON,
|
|
1964
|
+
Za as CUSTOM_RANGE_ID,
|
|
1965
|
+
eo as CellEditingDialog,
|
|
1966
|
+
Ya as Chips,
|
|
1967
|
+
Rn as ColumnHeaderMenuUI,
|
|
1968
|
+
nn as ColumnMenuButton,
|
|
1969
|
+
da as ColumnsSettings,
|
|
1970
|
+
pa as ColumnsSettingsWithContext,
|
|
1971
|
+
yn as CustomDateRangeDialog,
|
|
1972
|
+
fa as CustomizeButton,
|
|
1973
|
+
ma as DEFAULT_FEATURED_ORDER,
|
|
1974
|
+
uo as DELETE_CONFIRM_THRESHOLD,
|
|
1975
|
+
ho as DELETE_TYPE_ORDER,
|
|
1976
|
+
Xs as DateRangePicker,
|
|
1977
|
+
po as DeleteConfirmContent,
|
|
1978
|
+
go as DeleteEntitiesConfirmDialog,
|
|
1979
|
+
$a as DescriptionSection,
|
|
1980
|
+
Co as DetailsDialog,
|
|
1981
|
+
wt as DetailsPanelAttributesEditor,
|
|
1982
|
+
ko as DetailsPanelDetails,
|
|
1983
|
+
yt as DetailsSection,
|
|
1984
|
+
to as DoneCheckbox,
|
|
1985
|
+
tn as ENTITY_TOOLTIP_TYPES,
|
|
1986
|
+
ha as EVERYONE_GROUP_KEY,
|
|
1987
|
+
ga as EVERY_GUESTS_KEY,
|
|
1988
|
+
ba as EarlyPreview,
|
|
1989
|
+
xo as EmptyPlaceholder,
|
|
1990
|
+
Mo as EmptyPlaceholderFlex,
|
|
1991
|
+
Bo as EmptyPlaceholderFlexWrapper,
|
|
1992
|
+
ja as EntityIcon,
|
|
1993
|
+
Jo as EntityPanelUploader,
|
|
1994
|
+
Qo as EntityPath,
|
|
1995
|
+
sn as EntityTooltip,
|
|
1996
|
+
wa as EnumEditor,
|
|
1997
|
+
ya as EnumEditorItem,
|
|
1998
|
+
rt as FEATURED_VERSION_TYPES,
|
|
1999
|
+
os as FILTER_TYPES_BY_SCOPE,
|
|
2000
|
+
va as FeaturedVersionOrder,
|
|
2001
|
+
_t as FeedbackContext,
|
|
2002
|
+
Qs as FeedbackProvider,
|
|
2003
|
+
Oo as FieldLabel,
|
|
2004
|
+
Do as FileThumbnail,
|
|
2005
|
+
dn as FilterErrorActions,
|
|
2006
|
+
ot as FreeTrialLink,
|
|
2007
|
+
Ea as GROUP_KEY_PREFIX,
|
|
2008
|
+
Ca as GUEST_KEY_PREFIX,
|
|
2009
|
+
$o as InfoMessage,
|
|
2010
|
+
Ko as JsonViewer,
|
|
2011
|
+
Sa as LegacyBadge,
|
|
2012
|
+
Ka as LinkManagerItem,
|
|
2013
|
+
Xa as LinksManager,
|
|
2014
|
+
qs as ListAttributeForm,
|
|
2015
|
+
Zs as ListMetaData,
|
|
2016
|
+
Uo as MENU_PORTAL_CONTENT_ID,
|
|
2017
|
+
Wo as MENU_PORTAL_DIALOG_ID,
|
|
2018
|
+
Ho as Menu,
|
|
2019
|
+
zo as MenuContainer,
|
|
2020
|
+
Go as MenuList,
|
|
2021
|
+
so as NO_DATE,
|
|
2022
|
+
No as Placeholder,
|
|
2023
|
+
ka as PowerpackButton,
|
|
2024
|
+
ea as PowerpackDialog,
|
|
2025
|
+
ta as ProjectPageRemote,
|
|
2026
|
+
Oa as ProjectTableSettings,
|
|
2027
|
+
fo as RefreshToast,
|
|
2028
|
+
_e as RemotePageWrapper,
|
|
2029
|
+
Da as RequiredAddonVersion,
|
|
2030
|
+
Vo as ReviewableCard,
|
|
2031
|
+
To as ReviewableProgressCard,
|
|
2032
|
+
Ro as ReviewableUpload,
|
|
2033
|
+
qo as ReviewablesList,
|
|
2034
|
+
Va as ReviewablesSelector,
|
|
2035
|
+
Ta as SettingOption,
|
|
2036
|
+
Ra as SettingSwitch,
|
|
2037
|
+
Ia as SettingsPanel,
|
|
2038
|
+
Fa as SettingsPanelItemTemplate,
|
|
2039
|
+
Aa as ShareOptionIcon,
|
|
2040
|
+
za as SimpleForm,
|
|
2041
|
+
Cn as SimpleFormDialog,
|
|
2042
|
+
Pa as SizeSlider,
|
|
2043
|
+
Io as StackedThumbnails,
|
|
2044
|
+
_a as StyledLink,
|
|
2045
|
+
Ja as SubtasksManagerWrapper,
|
|
2046
|
+
rn as SupportBubble,
|
|
2047
|
+
hn as SyncButton,
|
|
2048
|
+
xa as TEAM_KEY_PREFIX,
|
|
2049
|
+
Na as TableGridSwitch,
|
|
2050
|
+
kn as TableSearch,
|
|
2051
|
+
fn as TableSettingsFallback,
|
|
2052
|
+
Fo as Thumbnail,
|
|
2053
|
+
vn as ThumbnailSimple,
|
|
2054
|
+
La as USER_KEY_PREFIX,
|
|
2055
|
+
Ma as UploadVersionDialog,
|
|
2056
|
+
ao as UserImage,
|
|
2057
|
+
Qt as VersionUploadContext,
|
|
2058
|
+
Js as VersionUploadProvider,
|
|
2059
|
+
Ao as Watchers,
|
|
2060
|
+
bo as buildChildrenDetails,
|
|
2061
|
+
wo as buildEntityLabel,
|
|
2062
|
+
yo as buildExpectedCounts,
|
|
2063
|
+
na as buildScopes,
|
|
2064
|
+
we as customRangeOption,
|
|
2065
|
+
oo as dateOptions,
|
|
2066
|
+
no as datePresetOptions,
|
|
2067
|
+
ro as detectRelativeDatePattern,
|
|
2068
|
+
lo as filterDateFunctions,
|
|
2069
|
+
io as generateDateOptions,
|
|
2070
|
+
ye as generateDatePresetOptions,
|
|
2071
|
+
Zo as getGroupedReviewables,
|
|
2072
|
+
Ba as getUiTypeLabel,
|
|
2073
|
+
Jt as parseFilename,
|
|
2074
|
+
oa as splitClientFiltersByScope,
|
|
2075
|
+
aa as splitFiltersByScope,
|
|
2076
|
+
vo as sumExpectedCounts,
|
|
2077
|
+
sa as useBuildFilterOptions,
|
|
2078
|
+
bn as useDateRangeFilter,
|
|
2079
|
+
ln as useFeedback,
|
|
2080
|
+
cn as useFeedbackSafe,
|
|
2081
|
+
Dn as useOptionalVersionUploadContext,
|
|
2082
|
+
Po as useReviewablesUpload,
|
|
2083
|
+
Vn as useVersionUploadContext
|
|
1653
2084
|
};
|