@vidispine/vdt-react 23.4.0-pre.2 → 23.4.0-pre.3
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/index.js +198 -200
- package/dist/index.umd.cjs +6 -6
- package/package.json +14 -13
package/dist/index.js
CHANGED
|
@@ -445,7 +445,7 @@ const Zt = ({
|
|
|
445
445
|
text: t,
|
|
446
446
|
maximumSuggestions: n
|
|
447
447
|
});
|
|
448
|
-
function
|
|
448
|
+
function Un(e) {
|
|
449
449
|
const t = Zt(e), [n, r] = x(t), o = P((u, c = "") => {
|
|
450
450
|
r((p) => ({ ...p, field: u, text: c }));
|
|
451
451
|
}, []), s = P((u) => {
|
|
@@ -464,7 +464,7 @@ function xn(e) {
|
|
|
464
464
|
setAutocompleteMaxSuggestions: a
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
const
|
|
467
|
+
const Mn = (e = "id", t = []) => {
|
|
468
468
|
const [n, r] = x(t);
|
|
469
469
|
return {
|
|
470
470
|
selected: n,
|
|
@@ -483,11 +483,11 @@ const Fn = (e = "id", t = []) => {
|
|
|
483
483
|
return n.findIndex((c) => c[e] === l) > -1;
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
},
|
|
486
|
+
}, xn = (e) => {
|
|
487
487
|
const [t, n] = x(e);
|
|
488
488
|
return { activeTab: t, changeTab: (o, s) => n(s) };
|
|
489
489
|
};
|
|
490
|
-
function
|
|
490
|
+
function Fn(e, t) {
|
|
491
491
|
const n = z();
|
|
492
492
|
$(() => {
|
|
493
493
|
n.current = e;
|
|
@@ -496,7 +496,7 @@ function $n(e, t) {
|
|
|
496
496
|
return () => clearInterval(o);
|
|
497
497
|
}, [t]);
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function qn(e = []) {
|
|
500
500
|
const t = z(), n = he(() => Math.floor(e.length / 2), [e]), [r, o] = x(), s = z(r);
|
|
501
501
|
if ($(() => () => t.current && clearInterval(t.current), []), e.length === 0)
|
|
502
502
|
return { width: 0 };
|
|
@@ -639,7 +639,7 @@ const er = "CHANGE_PAGE", tr = "CHANGE_ROWS", rr = "CHANGE_SORT", nr = "CHANGE_T
|
|
|
639
639
|
return e;
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
|
-
function
|
|
642
|
+
function $n(e) {
|
|
643
643
|
const t = cr(e), [n, r] = fe(ur, t);
|
|
644
644
|
return {
|
|
645
645
|
state: n,
|
|
@@ -708,7 +708,7 @@ function Wn(e) {
|
|
|
708
708
|
}
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
const
|
|
711
|
+
const jn = (e, t) => {
|
|
712
712
|
const [n, r] = x(
|
|
713
713
|
JSON.parse(window.localStorage.getItem(e) || JSON.stringify(t))
|
|
714
714
|
);
|
|
@@ -809,7 +809,7 @@ const fr = ["__mp3_160k"], mr = ["__mp4"], pr = ["__png"], hr = "audio", Er = "v
|
|
|
809
809
|
console.error(p), c(p);
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
|
-
function
|
|
812
|
+
function Wn({
|
|
813
813
|
onUploadFile: e = Tr,
|
|
814
814
|
initialMetadata: t = {},
|
|
815
815
|
...n
|
|
@@ -882,7 +882,7 @@ function kn({
|
|
|
882
882
|
setFiles: o
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Vn({
|
|
886
886
|
history: e,
|
|
887
887
|
navigate: t,
|
|
888
888
|
location: n,
|
|
@@ -902,7 +902,7 @@ function Yn({
|
|
|
902
902
|
}
|
|
903
903
|
}, [e, t, n, r]) };
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function kn({
|
|
906
906
|
history: e,
|
|
907
907
|
navigate: t,
|
|
908
908
|
location: n,
|
|
@@ -920,7 +920,7 @@ function Bn({
|
|
|
920
920
|
s(r);
|
|
921
921
|
}, [s, r]);
|
|
922
922
|
}
|
|
923
|
-
const
|
|
923
|
+
const Yn = ({ entityId: e, entityType: t }) => {
|
|
924
924
|
const {
|
|
925
925
|
request: n,
|
|
926
926
|
data: r = {},
|
|
@@ -980,7 +980,7 @@ const Qn = ({ entityId: e, entityType: t }) => {
|
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
982
|
return r;
|
|
983
|
-
},
|
|
983
|
+
}, Bn = ({
|
|
984
984
|
fields: e,
|
|
985
985
|
groups: t,
|
|
986
986
|
getDataAttributes: n = Rr,
|
|
@@ -1091,13 +1091,12 @@ const Qn = ({ entityId: e, entityType: t }) => {
|
|
|
1091
1091
|
a,
|
|
1092
1092
|
i
|
|
1093
1093
|
]), { fieldsWithAttributes: c, groupsWithAttributes: m, isLoading: l };
|
|
1094
|
-
}, Ir =
|
|
1095
|
-
function
|
|
1094
|
+
}, Ir = "TRANSIENT";
|
|
1095
|
+
function _r({ metadata: e, markerField: t, markerValue: n, itemSearchDocument: r }) {
|
|
1096
1096
|
return ue.searchItem({
|
|
1097
1097
|
queryParams: {
|
|
1098
1098
|
result: "library",
|
|
1099
|
-
updateMode:
|
|
1100
|
-
updateFrequency: Ir
|
|
1099
|
+
updateMode: Ir
|
|
1101
1100
|
},
|
|
1102
1101
|
itemSearchDocument: r
|
|
1103
1102
|
}).then(
|
|
@@ -1124,30 +1123,30 @@ const ct = ({ collectionId: e }) => new Promise((t, n) => {
|
|
|
1124
1123
|
s || n(new Error("No Libraries")), t(s);
|
|
1125
1124
|
}
|
|
1126
1125
|
);
|
|
1127
|
-
}),
|
|
1126
|
+
}), br = ({ collectionId: e }) => ct({ collectionId: e }).then(
|
|
1128
1127
|
({ id: t }) => Promise.all([
|
|
1129
1128
|
ge.removeLibrary({ libraryId: t }),
|
|
1130
1129
|
V.removeCollection({ collectionId: e })
|
|
1131
1130
|
])
|
|
1132
1131
|
);
|
|
1133
|
-
function
|
|
1132
|
+
function Gr({ libraryId: e }) {
|
|
1134
1133
|
return new Promise((t) => {
|
|
1135
1134
|
ge.getLibrarySettings({ libraryId: e }).then(({ data: { query: n } }) => {
|
|
1136
1135
|
t(n);
|
|
1137
1136
|
});
|
|
1138
1137
|
});
|
|
1139
1138
|
}
|
|
1140
|
-
const
|
|
1141
|
-
ct({ collectionId: e }).then(({ id: n }) =>
|
|
1139
|
+
const wr = ({ collectionId: e }) => new Promise((t) => {
|
|
1140
|
+
ct({ collectionId: e }).then(({ id: n }) => Gr({ libraryId: n })).then(t);
|
|
1142
1141
|
});
|
|
1143
|
-
function
|
|
1142
|
+
function Qn({
|
|
1144
1143
|
markerField: e,
|
|
1145
1144
|
markerValue: t,
|
|
1146
1145
|
initialSearchState: n,
|
|
1147
|
-
onSaveSearch: r =
|
|
1148
|
-
onDeleteSearch: o =
|
|
1146
|
+
onSaveSearch: r = _r,
|
|
1147
|
+
onDeleteSearch: o = br,
|
|
1149
1148
|
onUpdateSearchMetadata: s = V.updateCollectionMetadata,
|
|
1150
|
-
onGetSavedSearchSettings: a =
|
|
1149
|
+
onGetSavedSearchSettings: a = wr
|
|
1151
1150
|
}) {
|
|
1152
1151
|
const i = P(
|
|
1153
1152
|
({ metadata: m, itemSearchDocument: d }) => r({
|
|
@@ -1184,7 +1183,7 @@ function Xn({
|
|
|
1184
1183
|
}
|
|
1185
1184
|
};
|
|
1186
1185
|
}
|
|
1187
|
-
function
|
|
1186
|
+
function Dr({ itemSearchDocument: e, queryParams: t, matrixParams: n }) {
|
|
1188
1187
|
const {
|
|
1189
1188
|
request: r,
|
|
1190
1189
|
data: o = {},
|
|
@@ -1202,7 +1201,7 @@ function Or({ itemSearchDocument: e, queryParams: t, matrixParams: n }) {
|
|
|
1202
1201
|
cancel: i
|
|
1203
1202
|
};
|
|
1204
1203
|
}
|
|
1205
|
-
const
|
|
1204
|
+
const Jn = () => {
|
|
1206
1205
|
const [e, t] = x({ x: 0, y: 0 });
|
|
1207
1206
|
return $(() => {
|
|
1208
1207
|
const n = (r) => t({ x: r.clientX, y: r.clientY });
|
|
@@ -1211,7 +1210,7 @@ const zn = () => {
|
|
|
1211
1210
|
};
|
|
1212
1211
|
}, []), e;
|
|
1213
1212
|
};
|
|
1214
|
-
function
|
|
1213
|
+
function Or({
|
|
1215
1214
|
collectionId: e,
|
|
1216
1215
|
queryParams: t = {},
|
|
1217
1216
|
refreshOnMount: n = !0
|
|
@@ -1231,7 +1230,7 @@ function Hr({
|
|
|
1231
1230
|
onRefresh: i
|
|
1232
1231
|
};
|
|
1233
1232
|
}
|
|
1234
|
-
function
|
|
1233
|
+
function Xn({
|
|
1235
1234
|
collectionId: e,
|
|
1236
1235
|
queryParams: t = {},
|
|
1237
1236
|
refreshOnMount: n = !0
|
|
@@ -1244,7 +1243,7 @@ function Kn({
|
|
|
1244
1243
|
onRefresh: s
|
|
1245
1244
|
};
|
|
1246
1245
|
}
|
|
1247
|
-
const
|
|
1246
|
+
const zn = ({ entityId: e, entityType: t }) => {
|
|
1248
1247
|
let n, r, o;
|
|
1249
1248
|
switch (t) {
|
|
1250
1249
|
case "collection":
|
|
@@ -1270,7 +1269,7 @@ const Zn = ({ entityId: e, entityType: t }) => {
|
|
|
1270
1269
|
...i
|
|
1271
1270
|
};
|
|
1272
1271
|
};
|
|
1273
|
-
function
|
|
1272
|
+
function Kn(e) {
|
|
1274
1273
|
const { data: t, request: n } = k(X.getUser, { data: e }), { userName: r } = t || {}, o = P(() => n({ userName: r }), [n, r]);
|
|
1275
1274
|
$(() => {
|
|
1276
1275
|
r && o();
|
|
@@ -1319,12 +1318,12 @@ function eo(e) {
|
|
|
1319
1318
|
changePassword: l
|
|
1320
1319
|
};
|
|
1321
1320
|
}
|
|
1322
|
-
const
|
|
1323
|
-
CHANGE_PAGE:
|
|
1324
|
-
CHANGE_ROWS:
|
|
1325
|
-
CHANGE_SORT:
|
|
1326
|
-
CHANGE_QUERY:
|
|
1327
|
-
},
|
|
1321
|
+
const Hr = "CHANGE_PAGE", Lr = "CHANGE_ROWS", Ur = "CHANGE_SORT", Mr = "CHANGE_QUERY", ce = {
|
|
1322
|
+
CHANGE_PAGE: Hr,
|
|
1323
|
+
CHANGE_ROWS: Lr,
|
|
1324
|
+
CHANGE_SORT: Ur,
|
|
1325
|
+
CHANGE_QUERY: Mr
|
|
1326
|
+
}, xr = ({ queryParams: e = {}, rowsPerPage: t = 10, page: n = 0 } = {}) => ({
|
|
1328
1327
|
queryParams: {
|
|
1329
1328
|
first: n * t + 1,
|
|
1330
1329
|
number: t,
|
|
@@ -1340,7 +1339,7 @@ const Lr = "CHANGE_PAGE", Ur = "CHANGE_ROWS", Mr = "CHANGE_SORT", xr = "CHANGE_Q
|
|
|
1340
1339
|
}
|
|
1341
1340
|
]
|
|
1342
1341
|
}
|
|
1343
|
-
}),
|
|
1342
|
+
}), Fr = (e, t) => {
|
|
1344
1343
|
const { type: n } = t;
|
|
1345
1344
|
switch (n) {
|
|
1346
1345
|
case ce.CHANGE_PAGE: {
|
|
@@ -1389,8 +1388,8 @@ const Lr = "CHANGE_PAGE", Ur = "CHANGE_ROWS", Mr = "CHANGE_SORT", xr = "CHANGE_Q
|
|
|
1389
1388
|
return e;
|
|
1390
1389
|
}
|
|
1391
1390
|
};
|
|
1392
|
-
function
|
|
1393
|
-
const t =
|
|
1391
|
+
function Zn(e) {
|
|
1392
|
+
const t = xr(e), [n, r] = fe(Fr, t), {
|
|
1394
1393
|
data: o,
|
|
1395
1394
|
request: s,
|
|
1396
1395
|
hasLoaded: a,
|
|
@@ -1432,7 +1431,7 @@ function to(e) {
|
|
|
1432
1431
|
}
|
|
1433
1432
|
};
|
|
1434
1433
|
}
|
|
1435
|
-
const
|
|
1434
|
+
const eo = (e) => {
|
|
1436
1435
|
const { request: t, data: n = {}, isLoading: r } = k(te.listGroup), o = () => t(e);
|
|
1437
1436
|
return $(() => {
|
|
1438
1437
|
o();
|
|
@@ -1441,7 +1440,7 @@ const ro = (e) => {
|
|
|
1441
1440
|
groupListType: n,
|
|
1442
1441
|
isLoading: r
|
|
1443
1442
|
};
|
|
1444
|
-
},
|
|
1443
|
+
}, to = (e) => {
|
|
1445
1444
|
const { request: t, data: n = {}, isLoading: r } = k(X.listUser), o = () => t(e);
|
|
1446
1445
|
return $(() => {
|
|
1447
1446
|
o();
|
|
@@ -1450,13 +1449,13 @@ const ro = (e) => {
|
|
|
1450
1449
|
userListType: n,
|
|
1451
1450
|
isLoading: r
|
|
1452
1451
|
};
|
|
1453
|
-
},
|
|
1454
|
-
CHANGE_PAGE:
|
|
1455
|
-
CHANGE_ROWS:
|
|
1456
|
-
CHANGE_SORT:
|
|
1457
|
-
CHANGE_QUERY:
|
|
1458
|
-
HIDE_ROLES:
|
|
1459
|
-
},
|
|
1452
|
+
}, qr = "CHANGE_PAGE", $r = "CHANGE_ROWS", jr = "CHANGE_SORT", Wr = "CHANGE_QUERY", Vr = "HIDE_ROLES", ae = {
|
|
1453
|
+
CHANGE_PAGE: qr,
|
|
1454
|
+
CHANGE_ROWS: $r,
|
|
1455
|
+
CHANGE_SORT: jr,
|
|
1456
|
+
CHANGE_QUERY: Wr,
|
|
1457
|
+
HIDE_ROLES: Vr
|
|
1458
|
+
}, kr = ({ queryParams: e = {}, rowsPerPage: t = 10, page: n = 0 } = {}) => ({
|
|
1460
1459
|
queryParams: {
|
|
1461
1460
|
first: n * t + 1,
|
|
1462
1461
|
number: t,
|
|
@@ -1465,7 +1464,7 @@ const ro = (e) => {
|
|
|
1465
1464
|
rowsPerPage: t,
|
|
1466
1465
|
page: n,
|
|
1467
1466
|
groupSearchDocument: {}
|
|
1468
|
-
}),
|
|
1467
|
+
}), Yr = (e, t) => {
|
|
1469
1468
|
const { type: n } = t;
|
|
1470
1469
|
switch (n) {
|
|
1471
1470
|
case ae.CHANGE_PAGE: {
|
|
@@ -1526,8 +1525,8 @@ const ro = (e) => {
|
|
|
1526
1525
|
return e;
|
|
1527
1526
|
}
|
|
1528
1527
|
};
|
|
1529
|
-
function
|
|
1530
|
-
const t =
|
|
1528
|
+
function ro(e) {
|
|
1529
|
+
const t = kr(e), [n, r] = fe(Yr, t), {
|
|
1531
1530
|
data: o,
|
|
1532
1531
|
request: s,
|
|
1533
1532
|
hasLoaded: a,
|
|
@@ -1573,7 +1572,7 @@ function oo(e) {
|
|
|
1573
1572
|
})
|
|
1574
1573
|
};
|
|
1575
1574
|
}
|
|
1576
|
-
function
|
|
1575
|
+
function no(e) {
|
|
1577
1576
|
const { data: t, request: n } = k(te.getGroup, { data: e }), { groupName: r } = t || {}, o = P(() => n({ groupName: r }), [n, r]);
|
|
1578
1577
|
$(() => {
|
|
1579
1578
|
r && o();
|
|
@@ -1646,7 +1645,7 @@ function so(e) {
|
|
|
1646
1645
|
removeFromParentGroup: p
|
|
1647
1646
|
};
|
|
1648
1647
|
}
|
|
1649
|
-
function
|
|
1648
|
+
function Br({ itemId: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
|
|
1650
1649
|
const { request: r, data: o = {}, isLoading: s, isError: a } = k(ue.getItem), i = () => r({ itemId: e, queryParams: t });
|
|
1651
1650
|
return Z(() => {
|
|
1652
1651
|
n && i();
|
|
@@ -1657,7 +1656,7 @@ function Qr({ itemId: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
|
|
|
1657
1656
|
onRefresh: i
|
|
1658
1657
|
};
|
|
1659
1658
|
}
|
|
1660
|
-
const
|
|
1659
|
+
const oo = ({ collectionId: e, defaultEnabled: t = !0 }) => {
|
|
1661
1660
|
const [n, r] = x(), [o, s] = x(t), a = (p) => s((m) => p !== void 0 ? p : !m), i = z(), l = z(), u = z(), c = P(
|
|
1662
1661
|
({ itemId: p }) => {
|
|
1663
1662
|
if (o === !1)
|
|
@@ -1720,7 +1719,7 @@ const ao = ({ collectionId: e, defaultEnabled: t = !0 }) => {
|
|
|
1720
1719
|
nextPlaying: n,
|
|
1721
1720
|
onNext: c
|
|
1722
1721
|
};
|
|
1723
|
-
},
|
|
1722
|
+
}, Qr = (e) => {
|
|
1724
1723
|
const t = [];
|
|
1725
1724
|
for (let n = 0; n < e.length; n += 1) {
|
|
1726
1725
|
const r = e[n];
|
|
@@ -1733,7 +1732,7 @@ const ao = ({ collectionId: e, defaultEnabled: t = !0 }) => {
|
|
|
1733
1732
|
}
|
|
1734
1733
|
return t;
|
|
1735
1734
|
};
|
|
1736
|
-
function
|
|
1735
|
+
function so(e = [], t = 0, n = void 0, r = Qr) {
|
|
1737
1736
|
const [o, s] = x(0), [a, i] = x(0), [l, u] = x(!1), [c, p] = x([]), [m, d] = x(), [h, f] = x(0), C = z(
|
|
1738
1737
|
rt((A) => {
|
|
1739
1738
|
i(A);
|
|
@@ -1785,7 +1784,7 @@ function io(e = [], t = 0, n = void 0, r = Jr) {
|
|
|
1785
1784
|
onMouseMove: S
|
|
1786
1785
|
};
|
|
1787
1786
|
}
|
|
1788
|
-
function
|
|
1787
|
+
function ao({
|
|
1789
1788
|
searchDoc: e,
|
|
1790
1789
|
queryParams: t,
|
|
1791
1790
|
debounceTime: n,
|
|
@@ -1813,7 +1812,7 @@ function co({
|
|
|
1813
1812
|
handleAutocompleteChange: l
|
|
1814
1813
|
};
|
|
1815
1814
|
}
|
|
1816
|
-
function
|
|
1815
|
+
function io() {
|
|
1817
1816
|
const {
|
|
1818
1817
|
request: e,
|
|
1819
1818
|
data: { value: t = [] } = {},
|
|
@@ -1832,8 +1831,8 @@ function uo() {
|
|
|
1832
1831
|
isLoading: n
|
|
1833
1832
|
};
|
|
1834
1833
|
}
|
|
1835
|
-
const
|
|
1836
|
-
function
|
|
1834
|
+
const Jr = "TRANSIENT", Fe = (e) => e.find((t) => t.name === "title").value[0].value;
|
|
1835
|
+
function co({
|
|
1837
1836
|
childFolders: e = [],
|
|
1838
1837
|
queryParams: t = { content: ["metadata"] },
|
|
1839
1838
|
markerProps: n = {
|
|
@@ -1903,8 +1902,7 @@ function lo({
|
|
|
1903
1902
|
ue.searchItem({
|
|
1904
1903
|
queryParams: {
|
|
1905
1904
|
result: "library",
|
|
1906
|
-
updateMode:
|
|
1907
|
-
updateFrequency: Xr
|
|
1905
|
+
updateMode: Jr
|
|
1908
1906
|
},
|
|
1909
1907
|
itemSearchDocument: v
|
|
1910
1908
|
}).then(
|
|
@@ -1968,7 +1966,7 @@ function lo({
|
|
|
1968
1966
|
errors: l
|
|
1969
1967
|
};
|
|
1970
1968
|
}
|
|
1971
|
-
const
|
|
1969
|
+
const uo = ({ collectionId: e, onError: t }) => {
|
|
1972
1970
|
const [n, r] = x([]), s = async () => {
|
|
1973
1971
|
try {
|
|
1974
1972
|
if (!e)
|
|
@@ -2022,13 +2020,13 @@ const fo = ({ collectionId: e, onError: t }) => {
|
|
|
2022
2020
|
onRemove: l
|
|
2023
2021
|
};
|
|
2024
2022
|
};
|
|
2025
|
-
function
|
|
2023
|
+
function Xr() {
|
|
2026
2024
|
return Nt.listStorage().then((t) => ({
|
|
2027
2025
|
id: t.data.storage[0].id,
|
|
2028
2026
|
uri: t.data.storage[0].method[0].uri
|
|
2029
2027
|
}));
|
|
2030
2028
|
}
|
|
2031
|
-
function
|
|
2029
|
+
function zr(e) {
|
|
2032
2030
|
return ge.createLibrary({
|
|
2033
2031
|
itemListDocument: {
|
|
2034
2032
|
item: [
|
|
@@ -2039,7 +2037,7 @@ function Zr(e) {
|
|
|
2039
2037
|
}
|
|
2040
2038
|
});
|
|
2041
2039
|
}
|
|
2042
|
-
function
|
|
2040
|
+
function Kr(e, t, n) {
|
|
2043
2041
|
const { fileName: r = "output", outputFormat: o = "csv" } = n, { uri: s } = t, { data: { uri: [a] = [] } = {} } = e, l = encodeURIComponent((() => {
|
|
2044
2042
|
if (s.includes("s3")) {
|
|
2045
2043
|
const [u, c] = s.split("?region");
|
|
@@ -2052,11 +2050,11 @@ function en(e, t, n) {
|
|
|
2052
2050
|
queryParams: { destinationUri: l, ...n }
|
|
2053
2051
|
});
|
|
2054
2052
|
}
|
|
2055
|
-
const
|
|
2053
|
+
const Zr = ["FINISHED", "FINISHED_WARNING"], en = ["FINISHED", "FINISHED_WARNING", "FAILED_TOTAL", "ABORTED"];
|
|
2056
2054
|
function ut(e, t, n, r) {
|
|
2057
2055
|
const { data: { jobId: o } = {} } = e, { id: s } = t, { fileName: a = "output", outputFormat: i = "csv" } = n, l = `${a}.${i}`;
|
|
2058
2056
|
Ze.getJob({ jobId: o }).then(({ data: { status: u } = {} } = {}) => {
|
|
2059
|
-
if (
|
|
2057
|
+
if (Zr.includes(u))
|
|
2060
2058
|
try {
|
|
2061
2059
|
It.listFileStorage({
|
|
2062
2060
|
storageId: s,
|
|
@@ -2074,27 +2072,27 @@ function ut(e, t, n, r) {
|
|
|
2074
2072
|
${c}`), r({ message: "Download failed" });
|
|
2075
2073
|
}
|
|
2076
2074
|
else
|
|
2077
|
-
|
|
2075
|
+
en.includes(u) ? r({ message: "Download failed" }) : setTimeout(() => {
|
|
2078
2076
|
ut(e, t, n, r);
|
|
2079
2077
|
}, 1e3);
|
|
2080
2078
|
});
|
|
2081
2079
|
}
|
|
2082
|
-
const
|
|
2080
|
+
const lo = ({
|
|
2083
2081
|
itemListType: e,
|
|
2084
2082
|
queryParams: t,
|
|
2085
2083
|
onSuccess: n,
|
|
2086
2084
|
onError: r = ({ message: l, error: u }) => console.error(`${l}
|
|
2087
2085
|
${u}`),
|
|
2088
2086
|
onGetFile: o = ut,
|
|
2089
|
-
onCreateList: s =
|
|
2090
|
-
onList: a =
|
|
2091
|
-
onGetStorage: i =
|
|
2087
|
+
onCreateList: s = zr,
|
|
2088
|
+
onList: a = Kr,
|
|
2089
|
+
onGetStorage: i = Xr
|
|
2092
2090
|
}) => ({ onDownload: () => i().then(
|
|
2093
2091
|
(u) => Promise.all([
|
|
2094
2092
|
s(e).then((c) => a(c, u, t)).then(n()).then((c) => o(c, u, t, r))
|
|
2095
2093
|
])
|
|
2096
2094
|
) });
|
|
2097
|
-
function
|
|
2095
|
+
function fo(e, t, n, r, o, s, a, i) {
|
|
2098
2096
|
const l = n[0].fields.map((d) => d), [u, c] = x(r), p = (d, h, f, C) => {
|
|
2099
2097
|
const { value: v } = d.target, y = r.map((S) => S).map((S, R) => f === R ? { ...h, [C]: v } : S);
|
|
2100
2098
|
o(y), c(y);
|
|
@@ -2143,7 +2141,7 @@ function po(e, t, n, r, o, s, a, i) {
|
|
|
2143
2141
|
onSubmit: m
|
|
2144
2142
|
};
|
|
2145
2143
|
}
|
|
2146
|
-
function
|
|
2144
|
+
function tn({
|
|
2147
2145
|
entity: e,
|
|
2148
2146
|
entityId: t,
|
|
2149
2147
|
queryParams: n = {},
|
|
@@ -2164,7 +2162,7 @@ function nn({
|
|
|
2164
2162
|
onRefresh: l
|
|
2165
2163
|
};
|
|
2166
2164
|
}
|
|
2167
|
-
function
|
|
2165
|
+
function rn({ groupName: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
|
|
2168
2166
|
const {
|
|
2169
2167
|
request: r,
|
|
2170
2168
|
data: o = {},
|
|
@@ -2180,7 +2178,7 @@ function on({ groupName: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
|
|
|
2180
2178
|
onRefresh: i
|
|
2181
2179
|
};
|
|
2182
2180
|
}
|
|
2183
|
-
function
|
|
2181
|
+
function mo({
|
|
2184
2182
|
itemType: e,
|
|
2185
2183
|
collectionType: t,
|
|
2186
2184
|
metadataType: n,
|
|
@@ -2205,7 +2203,7 @@ function ho({
|
|
|
2205
2203
|
}, p = (m) => se(m, c);
|
|
2206
2204
|
return oe.map(a, p);
|
|
2207
2205
|
}
|
|
2208
|
-
function
|
|
2206
|
+
function po({
|
|
2209
2207
|
itemSearchDocument: e,
|
|
2210
2208
|
queryParams: t,
|
|
2211
2209
|
matrixParams: n,
|
|
@@ -2233,8 +2231,8 @@ function Eo({
|
|
|
2233
2231
|
}, m = (d) => se(d, p);
|
|
2234
2232
|
return oe.map(s, m);
|
|
2235
2233
|
}
|
|
2236
|
-
function
|
|
2237
|
-
const { itemListType: o, onRefresh: s, isLoading: a, isError: i } =
|
|
2234
|
+
function ho({ itemSearchDocument: e, queryParams: t, matrixParams: n, children: r }) {
|
|
2235
|
+
const { itemListType: o, onRefresh: s, isLoading: a, isError: i } = Dr({
|
|
2238
2236
|
itemSearchDocument: e,
|
|
2239
2237
|
queryParams: t,
|
|
2240
2238
|
matrixParams: n
|
|
@@ -2249,7 +2247,7 @@ function go({ itemSearchDocument: e, queryParams: t, matrixParams: n, children:
|
|
|
2249
2247
|
}, u = (c) => se(c, l);
|
|
2250
2248
|
return oe.map(r, u);
|
|
2251
2249
|
}
|
|
2252
|
-
function
|
|
2250
|
+
function Eo({
|
|
2253
2251
|
itemSearchDocument: e,
|
|
2254
2252
|
queryParams: t,
|
|
2255
2253
|
matrixParams: n,
|
|
@@ -2275,8 +2273,8 @@ function yo({
|
|
|
2275
2273
|
}, c = (p) => se(p, u);
|
|
2276
2274
|
return oe.map(r, c);
|
|
2277
2275
|
}
|
|
2278
|
-
function
|
|
2279
|
-
const { itemType: o, onRefresh: s, isLoading: a, isError: i } =
|
|
2276
|
+
function go({ itemId: e, queryParams: t, refreshOnMount: n, children: r }) {
|
|
2277
|
+
const { itemType: o, onRefresh: s, isLoading: a, isError: i } = Br({
|
|
2280
2278
|
itemId: e,
|
|
2281
2279
|
queryParams: t,
|
|
2282
2280
|
refreshOnMount: n
|
|
@@ -2290,13 +2288,13 @@ function Ao({ itemId: e, queryParams: t, refreshOnMount: n, children: r }) {
|
|
|
2290
2288
|
}, u = (c) => se(c, l);
|
|
2291
2289
|
return oe.map(r, u);
|
|
2292
2290
|
}
|
|
2293
|
-
function
|
|
2291
|
+
function yo({
|
|
2294
2292
|
collectionId: e,
|
|
2295
2293
|
queryParams: t,
|
|
2296
2294
|
refreshOnMount: n,
|
|
2297
2295
|
children: r
|
|
2298
2296
|
}) {
|
|
2299
|
-
const { collectionType: o, onRefresh: s, isLoading: a, isError: i } =
|
|
2297
|
+
const { collectionType: o, onRefresh: s, isLoading: a, isError: i } = Or({
|
|
2300
2298
|
collectionId: e,
|
|
2301
2299
|
queryParams: t,
|
|
2302
2300
|
refreshOnMount: n
|
|
@@ -2310,7 +2308,7 @@ function Co({
|
|
|
2310
2308
|
}, u = (c) => se(c, l);
|
|
2311
2309
|
return oe.map(r, u);
|
|
2312
2310
|
}
|
|
2313
|
-
function
|
|
2311
|
+
function Ao({ matrixParams: e, queryParams: t, children: n }) {
|
|
2314
2312
|
const { request: r, data: o = {}, isLoading: s, isError: a } = k(Ze.listJob), i = () => r({ matrixParams: e, queryParams: t });
|
|
2315
2313
|
Z(() => {
|
|
2316
2314
|
i();
|
|
@@ -2325,7 +2323,7 @@ function So({ matrixParams: e, queryParams: t, children: n }) {
|
|
|
2325
2323
|
}, u = (c) => se(c, l);
|
|
2326
2324
|
return oe.map(n, u);
|
|
2327
2325
|
}
|
|
2328
|
-
function
|
|
2326
|
+
function Co({ entityId: e, entityType: t, queryParams: n, children: r }) {
|
|
2329
2327
|
const { request: o, data: s = {}, isLoading: a } = k(Pe.listEntityAccess), i = () => o({ entityId: e, entityType: t, queryParams: n });
|
|
2330
2328
|
$(() => {
|
|
2331
2329
|
i();
|
|
@@ -2355,7 +2353,7 @@ class lt extends Je {
|
|
|
2355
2353
|
return oe.map(t, s);
|
|
2356
2354
|
}
|
|
2357
2355
|
}
|
|
2358
|
-
const ye = "VIDISPINE-TOKEN", Ae = "VIDISPINE-USERNAME", Ce = "VIDISPINE-SERVER-URL", Se = "VIDISPINE-REMEMBER-ME",
|
|
2356
|
+
const ye = "VIDISPINE-TOKEN", Ae = "VIDISPINE-USERNAME", Ce = "VIDISPINE-SERVER-URL", Se = "VIDISPINE-REMEMBER-ME", nn = ({ userName: e, password: t, serverUrl: n }) => {
|
|
2359
2357
|
n && (J.defaultClient.defaults.baseURL = n);
|
|
2360
2358
|
const r = { seconds: 2592e3, autoRefresh: "true" }, o = { password: t, username: e };
|
|
2361
2359
|
try {
|
|
@@ -2367,12 +2365,12 @@ const ye = "VIDISPINE-TOKEN", Ae = "VIDISPINE-USERNAME", Ce = "VIDISPINE-SERVER-
|
|
|
2367
2365
|
throw "Incorrect Username/Password";
|
|
2368
2366
|
}
|
|
2369
2367
|
};
|
|
2370
|
-
function
|
|
2368
|
+
function So({
|
|
2371
2369
|
LoginComponent: e,
|
|
2372
2370
|
LoginProps: t = {},
|
|
2373
2371
|
AppComponent: n,
|
|
2374
2372
|
AppProps: r = {},
|
|
2375
|
-
onGetToken: o =
|
|
2373
|
+
onGetToken: o = nn,
|
|
2376
2374
|
onSuccess: s,
|
|
2377
2375
|
onError: a,
|
|
2378
2376
|
cookieOptions: i = {
|
|
@@ -2425,7 +2423,7 @@ function To({
|
|
|
2425
2423
|
}
|
|
2426
2424
|
);
|
|
2427
2425
|
}
|
|
2428
|
-
function
|
|
2426
|
+
function on({ error: e, info: t }) {
|
|
2429
2427
|
return /* @__PURE__ */ Ot(
|
|
2430
2428
|
"div",
|
|
2431
2429
|
{
|
|
@@ -2444,7 +2442,7 @@ function an({ error: e, info: t }) {
|
|
|
2444
2442
|
}
|
|
2445
2443
|
);
|
|
2446
2444
|
}
|
|
2447
|
-
class
|
|
2445
|
+
class sn extends Je {
|
|
2448
2446
|
constructor(t) {
|
|
2449
2447
|
super(t), this.state = { hasError: !1 };
|
|
2450
2448
|
}
|
|
@@ -2467,11 +2465,11 @@ class cn extends Je {
|
|
|
2467
2465
|
}
|
|
2468
2466
|
render() {
|
|
2469
2467
|
const { children: t } = this.props, { hasError: n, error: r, info: o } = this.state;
|
|
2470
|
-
return n ? /* @__PURE__ */ B(
|
|
2468
|
+
return n ? /* @__PURE__ */ B(on, { info: o, error: r }) : t;
|
|
2471
2469
|
}
|
|
2472
2470
|
}
|
|
2473
|
-
function
|
|
2474
|
-
const { metadataFieldGroupType: o, onRefresh: s, isLoading: a, isError: i } =
|
|
2471
|
+
function vo({ groupName: e, queryParams: t, refreshOnMount: n, children: r }) {
|
|
2472
|
+
const { metadataFieldGroupType: o, onRefresh: s, isLoading: a, isError: i } = rn({
|
|
2475
2473
|
groupName: e,
|
|
2476
2474
|
queryParams: t,
|
|
2477
2475
|
refreshOnMount: n
|
|
@@ -2486,7 +2484,7 @@ function Ro({ groupName: e, queryParams: t, refreshOnMount: n, children: r }) {
|
|
|
2486
2484
|
return oe.map(r, u);
|
|
2487
2485
|
}
|
|
2488
2486
|
const dt = Ee();
|
|
2489
|
-
function
|
|
2487
|
+
function To({ intialState: e = {}, onRefresh: t, userName: n, children: r }) {
|
|
2490
2488
|
const [o, s] = x(e);
|
|
2491
2489
|
return $(() => {
|
|
2492
2490
|
if (n)
|
|
@@ -2501,7 +2499,7 @@ function Po({ intialState: e = {}, onRefresh: t, userName: n, children: r }) {
|
|
|
2501
2499
|
}
|
|
2502
2500
|
}, [n]), /* @__PURE__ */ B(dt.Provider, { value: o, children: r });
|
|
2503
2501
|
}
|
|
2504
|
-
function
|
|
2502
|
+
function an() {
|
|
2505
2503
|
const e = Ie(dt);
|
|
2506
2504
|
if (e === void 0)
|
|
2507
2505
|
throw new Error("useRoles must be used within RolesContext");
|
|
@@ -2515,13 +2513,13 @@ function un() {
|
|
|
2515
2513
|
return o.includes(Gt.SUPER_ACCESS_USER) ? !0 : Array.isArray(n) ? n.findIndex((s) => o.includes(s)) > -1 : o.includes(n);
|
|
2516
2514
|
}, groupListType: e };
|
|
2517
2515
|
}
|
|
2518
|
-
function
|
|
2516
|
+
function Ro({ roleName: e, allow: t, deny: n, loading: r }) {
|
|
2519
2517
|
if (e === void 0)
|
|
2520
2518
|
throw new Error("roleName is undefined");
|
|
2521
|
-
const { hasRole: o } =
|
|
2519
|
+
const { hasRole: o } = an(), s = o(e);
|
|
2522
2520
|
return _e(t) && s === !0 ? t : _e(n) && s === !1 ? n : _e(r) && s === null ? r : null;
|
|
2523
2521
|
}
|
|
2524
|
-
function
|
|
2522
|
+
function Po({ providers: e = [], children: t, ...n }) {
|
|
2525
2523
|
return e.reduceRight((r, o) => {
|
|
2526
2524
|
if (typeof o == "function")
|
|
2527
2525
|
return /* @__PURE__ */ B(o, { ...n, children: r });
|
|
@@ -2529,14 +2527,14 @@ function Io({ providers: e = [], children: t, ...n }) {
|
|
|
2529
2527
|
return /* @__PURE__ */ B(s, { ...n, ...a, children: r });
|
|
2530
2528
|
}, t);
|
|
2531
2529
|
}
|
|
2532
|
-
function
|
|
2530
|
+
function No({
|
|
2533
2531
|
entity: e,
|
|
2534
2532
|
entityId: t,
|
|
2535
2533
|
queryParams: n,
|
|
2536
2534
|
refreshOnMount: r,
|
|
2537
2535
|
children: o
|
|
2538
2536
|
}) {
|
|
2539
|
-
const { metadataType: s, onRefresh: a, isLoading: i, isError: l } =
|
|
2537
|
+
const { metadataType: s, onRefresh: a, isLoading: i, isError: l } = tn({
|
|
2540
2538
|
entity: e,
|
|
2541
2539
|
entityId: t,
|
|
2542
2540
|
queryParams: n,
|
|
@@ -2554,10 +2552,10 @@ function _o({
|
|
|
2554
2552
|
const c = (p) => se(p, u);
|
|
2555
2553
|
return oe.map(o, c);
|
|
2556
2554
|
}
|
|
2557
|
-
const
|
|
2555
|
+
const Io = (e, t = {}) => (n) => /* @__PURE__ */ B(sn, { ...t, children: /* @__PURE__ */ B(e, { ...n }) }), _o = (...e) => e.reduce(
|
|
2558
2556
|
(t, n) => (...r) => t(n(...r)),
|
|
2559
2557
|
(t) => t
|
|
2560
|
-
),
|
|
2558
|
+
), cn = Ee(), un = (e, { entityId: t, entityType: n, entityTimespan: { start: r, end: o, field: [{ name: s } = {}] = [] } = {} }) => {
|
|
2561
2559
|
const a = e.some(
|
|
2562
2560
|
(l) => l.entity.id === t && l.entityType === n
|
|
2563
2561
|
);
|
|
@@ -2572,12 +2570,12 @@ const bo = (e, t = {}) => (n) => /* @__PURE__ */ B(cn, { ...t, children: /* @__P
|
|
|
2572
2570
|
}
|
|
2573
2571
|
), !a || !i;
|
|
2574
2572
|
};
|
|
2575
|
-
function
|
|
2573
|
+
function bo({
|
|
2576
2574
|
onChange: e,
|
|
2577
2575
|
children: t,
|
|
2578
2576
|
initialState: n = [],
|
|
2579
2577
|
allowDuplicates: r = !1,
|
|
2580
|
-
isUniqueBinItem: o =
|
|
2578
|
+
isUniqueBinItem: o = un
|
|
2581
2579
|
}) {
|
|
2582
2580
|
const [s, a] = x(n), [i, l] = x(r), u = P(
|
|
2583
2581
|
(f) => {
|
|
@@ -2635,9 +2633,9 @@ function wo({
|
|
|
2635
2633
|
}),
|
|
2636
2634
|
[i, s, m, d, u, c]
|
|
2637
2635
|
);
|
|
2638
|
-
return /* @__PURE__ */ B(
|
|
2636
|
+
return /* @__PURE__ */ B(cn.Provider, { value: h, children: t });
|
|
2639
2637
|
}
|
|
2640
|
-
function
|
|
2638
|
+
function ln(e) {
|
|
2641
2639
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2642
2640
|
}
|
|
2643
2641
|
var Le = { exports: {} };
|
|
@@ -2647,7 +2645,7 @@ object-assign
|
|
|
2647
2645
|
@license MIT
|
|
2648
2646
|
*/
|
|
2649
2647
|
var be, qe;
|
|
2650
|
-
function
|
|
2648
|
+
function dn() {
|
|
2651
2649
|
if (qe)
|
|
2652
2650
|
return be;
|
|
2653
2651
|
qe = 1;
|
|
@@ -2706,7 +2704,7 @@ function ft() {
|
|
|
2706
2704
|
return je || (je = 1, we = Function.call.bind(Object.prototype.hasOwnProperty)), we;
|
|
2707
2705
|
}
|
|
2708
2706
|
var De, We;
|
|
2709
|
-
function
|
|
2707
|
+
function fn() {
|
|
2710
2708
|
if (We)
|
|
2711
2709
|
return De;
|
|
2712
2710
|
We = 1;
|
|
@@ -2756,11 +2754,11 @@ function pn() {
|
|
|
2756
2754
|
}, De = o, De;
|
|
2757
2755
|
}
|
|
2758
2756
|
var Oe, Ve;
|
|
2759
|
-
function
|
|
2757
|
+
function mn() {
|
|
2760
2758
|
if (Ve)
|
|
2761
2759
|
return Oe;
|
|
2762
2760
|
Ve = 1;
|
|
2763
|
-
var e = ot, t =
|
|
2761
|
+
var e = ot, t = dn(), n = Ue(), r = ft(), o = fn(), s = function() {
|
|
2764
2762
|
};
|
|
2765
2763
|
process.env.NODE_ENV !== "production" && (s = function(i) {
|
|
2766
2764
|
var l = "Warning: " + i;
|
|
@@ -3078,7 +3076,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
3078
3076
|
}, Oe;
|
|
3079
3077
|
}
|
|
3080
3078
|
var He, ke;
|
|
3081
|
-
function
|
|
3079
|
+
function pn() {
|
|
3082
3080
|
if (ke)
|
|
3083
3081
|
return He;
|
|
3084
3082
|
ke = 1;
|
|
@@ -3127,12 +3125,12 @@ function En() {
|
|
|
3127
3125
|
}, He;
|
|
3128
3126
|
}
|
|
3129
3127
|
if (process.env.NODE_ENV !== "production") {
|
|
3130
|
-
var
|
|
3131
|
-
Le.exports =
|
|
3128
|
+
var hn = ot, En = !0;
|
|
3129
|
+
Le.exports = mn()(hn.isElement, En);
|
|
3132
3130
|
} else
|
|
3133
|
-
Le.exports =
|
|
3134
|
-
var
|
|
3135
|
-
const q = /* @__PURE__ */
|
|
3131
|
+
Le.exports = pn()();
|
|
3132
|
+
var gn = Le.exports;
|
|
3133
|
+
const q = /* @__PURE__ */ ln(gn), mt = Ee(), pt = Ee(), Me = "UPDATE_ALL_SETTINGS", ht = "UPDATE_SETTING", Et = "UPDATE_USERNAME", gt = "REMOVE_SETTING", yn = (e, t) => {
|
|
3136
3134
|
switch (t.type) {
|
|
3137
3135
|
case Et:
|
|
3138
3136
|
return { ...e, userName: t.userName };
|
|
@@ -3159,7 +3157,7 @@ function yt({
|
|
|
3159
3157
|
getSettingsApi: s,
|
|
3160
3158
|
updateSettingsApi: a
|
|
3161
3159
|
}) {
|
|
3162
|
-
const [i, l] = fe(
|
|
3160
|
+
const [i, l] = fe(yn, {
|
|
3163
3161
|
settings: r,
|
|
3164
3162
|
userName: e
|
|
3165
3163
|
}), u = z();
|
|
@@ -3195,18 +3193,18 @@ function yt({
|
|
|
3195
3193
|
}), u.current = p);
|
|
3196
3194
|
}, [i.settings]), /* @__PURE__ */ B(pt.Provider, { value: i, children: /* @__PURE__ */ B(mt.Provider, { value: l, children: n }) });
|
|
3197
3195
|
}
|
|
3198
|
-
const
|
|
3196
|
+
const An = () => {
|
|
3199
3197
|
const e = Ie(pt);
|
|
3200
3198
|
if (!e)
|
|
3201
3199
|
throw new Error("useSettingsState must be used within SettingsStateContext");
|
|
3202
3200
|
return e;
|
|
3203
|
-
},
|
|
3201
|
+
}, Cn = () => {
|
|
3204
3202
|
const e = Ie(mt);
|
|
3205
3203
|
if (!e)
|
|
3206
3204
|
throw new Error("useSettingsDispatch must be used within SettingsDispatchContext");
|
|
3207
3205
|
return e;
|
|
3208
|
-
},
|
|
3209
|
-
const e =
|
|
3206
|
+
}, Sn = () => {
|
|
3207
|
+
const e = Cn(), t = P(
|
|
3210
3208
|
(s) => e({ type: Me, settings: s }),
|
|
3211
3209
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3212
3210
|
[]
|
|
@@ -3225,10 +3223,10 @@ const Sn = () => {
|
|
|
3225
3223
|
updateUsername: r,
|
|
3226
3224
|
removeSetting: o
|
|
3227
3225
|
};
|
|
3228
|
-
},
|
|
3229
|
-
const { settings: e = {} } =
|
|
3226
|
+
}, Go = () => {
|
|
3227
|
+
const { settings: e = {} } = An();
|
|
3230
3228
|
return {
|
|
3231
|
-
...
|
|
3229
|
+
...Sn(),
|
|
3232
3230
|
settings: e
|
|
3233
3231
|
};
|
|
3234
3232
|
};
|
|
@@ -3250,13 +3248,13 @@ yt.defaultProps = {
|
|
|
3250
3248
|
getSettingsApi: Ne.getSimpleMetadataKey,
|
|
3251
3249
|
updateSettingsApi: Ne.updateSimpleMetadataKey
|
|
3252
3250
|
};
|
|
3253
|
-
const ve = "VIDISPINE-TOKEN", pe = "VIDISPINE-USERNAME", Te = "VIDISPINE-SERVER-URL", Re = "VIDISPINE-REMEMBER-ME",
|
|
3251
|
+
const ve = "VIDISPINE-TOKEN", pe = "VIDISPINE-USERNAME", Te = "VIDISPINE-SERVER-URL", Re = "VIDISPINE-REMEMBER-ME", vn = "Incorrect username or password", Ye = "Offline or CORS not configured", Be = "Session expired", Tn = "VIDISPINE_URL mismatch", Qe = (e) => {
|
|
3254
3252
|
try {
|
|
3255
|
-
return et.getSelfTest({ baseURL: e }).then(() =>
|
|
3253
|
+
return et.getSelfTest({ baseURL: e }).then(() => vn).catch(() => Ye);
|
|
3256
3254
|
} catch {
|
|
3257
3255
|
return Promise.resolve(Ye);
|
|
3258
3256
|
}
|
|
3259
|
-
},
|
|
3257
|
+
}, Rn = ({ maxAge: e = 60, userName: t, password: n, serverUrl: r }) => {
|
|
3260
3258
|
try {
|
|
3261
3259
|
return X.getToken({
|
|
3262
3260
|
queryParams: { seconds: e, autoRefresh: "true" },
|
|
@@ -3344,7 +3342,7 @@ function Ct({
|
|
|
3344
3342
|
({ data: b }) => d(pe, b, e)
|
|
3345
3343
|
);
|
|
3346
3344
|
}, [C, f]), $(() => {
|
|
3347
|
-
f && v && a && v !== a && (R(), s && s(Error(
|
|
3345
|
+
f && v && a && v !== a && (R(), s && s(Error(Tn)));
|
|
3348
3346
|
}, [f, v, a, R, s]);
|
|
3349
3347
|
const _ = he(
|
|
3350
3348
|
() => ({
|
|
@@ -3389,19 +3387,19 @@ Ct.defaultProps = {
|
|
|
3389
3387
|
path: "/"
|
|
3390
3388
|
},
|
|
3391
3389
|
LoginProps: {},
|
|
3392
|
-
onGetToken:
|
|
3390
|
+
onGetToken: Rn,
|
|
3393
3391
|
children: null,
|
|
3394
3392
|
onSuccess: null,
|
|
3395
3393
|
onError: null,
|
|
3396
3394
|
userName: null,
|
|
3397
3395
|
token: null
|
|
3398
3396
|
};
|
|
3399
|
-
const
|
|
3397
|
+
const wo = () => {
|
|
3400
3398
|
const e = Ie(At);
|
|
3401
3399
|
if (e === void 0)
|
|
3402
3400
|
throw new Error("useAuth must be used within an AuthContext");
|
|
3403
3401
|
return e;
|
|
3404
|
-
},
|
|
3402
|
+
}, Pn = ({ entityId: e, entityType: t, collectionId: n, rootParentId: r, onError: o }) => {
|
|
3405
3403
|
if (n && n !== r)
|
|
3406
3404
|
try {
|
|
3407
3405
|
return V.addCollectionEntity({
|
|
@@ -3417,7 +3415,7 @@ const Oo = () => {
|
|
|
3417
3415
|
error: s
|
|
3418
3416
|
});
|
|
3419
3417
|
}
|
|
3420
|
-
},
|
|
3418
|
+
}, Nn = ({
|
|
3421
3419
|
entityId: e,
|
|
3422
3420
|
entityType: t,
|
|
3423
3421
|
collectionId: n,
|
|
@@ -3439,14 +3437,14 @@ const Oo = () => {
|
|
|
3439
3437
|
error: s
|
|
3440
3438
|
});
|
|
3441
3439
|
}
|
|
3442
|
-
},
|
|
3440
|
+
}, Do = ({
|
|
3443
3441
|
entityId: e,
|
|
3444
3442
|
entityType: t,
|
|
3445
3443
|
addToCollectionId: n,
|
|
3446
3444
|
removeFromCollectionId: r,
|
|
3447
3445
|
rootParentId: o,
|
|
3448
|
-
onAddEntity: s =
|
|
3449
|
-
onRemoveEntity: a =
|
|
3446
|
+
onAddEntity: s = Pn,
|
|
3447
|
+
onRemoveEntity: a = Nn,
|
|
3450
3448
|
onMoved: i = () => null,
|
|
3451
3449
|
onAdded: l = () => null,
|
|
3452
3450
|
onRemoved: u = () => null,
|
|
@@ -3524,7 +3522,7 @@ ${m}`)
|
|
|
3524
3522
|
});
|
|
3525
3523
|
}
|
|
3526
3524
|
};
|
|
3527
|
-
function
|
|
3525
|
+
function Oo({
|
|
3528
3526
|
children: e,
|
|
3529
3527
|
setDrag: t,
|
|
3530
3528
|
onDrop: n,
|
|
@@ -3555,73 +3553,73 @@ function Lo({
|
|
|
3555
3553
|
);
|
|
3556
3554
|
}
|
|
3557
3555
|
export {
|
|
3558
|
-
|
|
3556
|
+
So as Auth,
|
|
3559
3557
|
At as AuthContext,
|
|
3560
3558
|
Ct as AuthProvider,
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3559
|
+
cn as BinContext,
|
|
3560
|
+
bo as BinProvider,
|
|
3561
|
+
Po as ComposeProviders,
|
|
3562
|
+
Oo as DropArea,
|
|
3563
|
+
sn as ErrorBoundary,
|
|
3564
|
+
yo as GetCollection,
|
|
3565
|
+
No as GetEntityMetadata,
|
|
3566
|
+
vo as GetFieldGroup,
|
|
3567
|
+
go as GetItem,
|
|
3568
|
+
Ao as GetJobs,
|
|
3569
|
+
Ro as HasRole,
|
|
3570
|
+
Co as ListEntityAccess,
|
|
3571
|
+
mo as MetadataType,
|
|
3572
|
+
To as RolesProvider,
|
|
3573
|
+
po as SearchCollection,
|
|
3574
|
+
ho as SearchItem,
|
|
3575
|
+
Eo as SearchItemCollection,
|
|
3578
3576
|
yt as SettingsProvider,
|
|
3579
3577
|
lt as VidispineApi,
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3578
|
+
_o as compose,
|
|
3579
|
+
Pn as handleAddEntity,
|
|
3580
|
+
Do as handleMoveEntity,
|
|
3581
|
+
Nn as handleRemoveEntity,
|
|
3582
|
+
Bn as useAddMetadataFieldAttributes,
|
|
3585
3583
|
k as useApi,
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3584
|
+
wo as useAuthContext,
|
|
3585
|
+
Un as useAutocomplete,
|
|
3586
|
+
oo as useCollectionAutoPlay,
|
|
3587
|
+
fo as useCompoundMetadata,
|
|
3588
|
+
lo as useCsvDownload,
|
|
3589
|
+
ao as useDocSearchAutocomplete,
|
|
3590
|
+
Yn as useEntityAccess,
|
|
3591
|
+
Or as useGetCollection,
|
|
3592
|
+
Xn as useGetCollectionItem,
|
|
3593
|
+
zn as useGetEntity,
|
|
3594
|
+
tn as useGetEntityMetadata,
|
|
3595
|
+
rn as useGetFieldGroup,
|
|
3596
|
+
io as useGetFieldMetadataDataset,
|
|
3597
|
+
Br as useGetItem,
|
|
3598
|
+
co as useGetSavedSearchFolders,
|
|
3599
|
+
no as useGroup,
|
|
3600
|
+
so as useHoverScrub,
|
|
3601
|
+
Fn as useInterval,
|
|
3602
|
+
$n as useJobSearch,
|
|
3603
|
+
eo as useListGroup,
|
|
3604
|
+
to as useListUser,
|
|
3605
|
+
jn as useLocalStorage,
|
|
3606
|
+
Jn as useMouseDownPosition,
|
|
3607
|
+
Vn as useQueryInitialState,
|
|
3608
|
+
uo as useRepresentativeItems,
|
|
3609
|
+
an as useRoles,
|
|
3610
|
+
Qn as useSavedSearch,
|
|
3613
3611
|
Kt as useSearch,
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3612
|
+
ro as useSearchGroup,
|
|
3613
|
+
Dr as useSearchItem,
|
|
3614
|
+
Zn as useSearchUser,
|
|
3615
|
+
Mn as useSelected,
|
|
3616
|
+
Go as useSettings,
|
|
3617
|
+
Sn as useSettingsActions,
|
|
3618
|
+
xn as useTab,
|
|
3619
|
+
qn as useThumbnailScrub,
|
|
3622
3620
|
st as useUpdateEffect,
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3621
|
+
kn as useUpdateQueryState,
|
|
3622
|
+
Wn as useUploadFiles,
|
|
3623
|
+
Kn as useUser,
|
|
3624
|
+
Io as withErrorBoundary
|
|
3627
3625
|
};
|