@vidispine/vdt-react 26.1.0-pre.2 → 26.1.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 CHANGED
@@ -1,12 +1,12 @@
1
- import { useRef as z, useReducer as fe, useCallback as P, useEffect as $, useState as x, useMemo as he, Children as oe, cloneElement as se, Component as Je, createContext as Ee, useContext as Ie, isValidElement as _e } from "react";
2
- import { utils as J, search as Xe, vsimport as xe, collection as V, ChunkedTransferManager as Rt, ChunkedUpload as Pt, access as Pe, metadatafield as ze, fieldgroup as Ke, item as ue, library as ge, user as X, group as te, storage as Nt, job as Ze, file as It, metadata as Ne, noauth as et } from "@vidispine/vdt-api";
3
- import { createMetadataType as de, formatTimeCodeText as _t, formatTimeCodeSeconds as bt, parseMetadataType as tt, ROLE_NAMES as Gt } from "@vidispine/vdt-js";
1
+ import { useRef as z, useReducer as fe, useCallback as T, useEffect as $, useState as x, useMemo as he, Children as oe, cloneElement as se, Component as ze, createContext as Ee, useContext as Ie, isValidElement as _e } from "react";
2
+ import { utils as J, search as Ue, vsimport as qe, collection as k, ChunkedTransferManager as Rt, ChunkedUpload as Pt, access as Pe, metadatafield as Ke, fieldgroup as Ze, item as ue, library as ge, user as X, group as te, storage as Nt, job as et, file as It, metadata as Ne, noauth as tt } from "@vidispine/vdt-api";
3
+ import { createMetadataType as de, formatTimeCodeText as _t, formatTimeCodeSeconds as bt, parseMetadataType as rt, ROLE_NAMES as Gt } from "@vidispine/vdt-js";
4
4
  import { compressToEncodedURIComponent as wt, decompressFromEncodedURIComponent as Dt } from "lz-string";
5
5
  import Z from "use-deep-compare-effect";
6
- import rt from "lodash.debounce";
6
+ import nt from "lodash.debounce";
7
7
  import { jsx as B, jsxs as Ot } from "react/jsx-runtime";
8
- import { useCookies as nt } from "react-cookie";
9
- import ot from "react-is";
8
+ import { useCookies as ot } from "react-cookie";
9
+ import st from "react-is";
10
10
  const Ht = ({
11
11
  hasLoaded: e = !1,
12
12
  isLoading: t = !0,
@@ -60,25 +60,25 @@ const Ht = ({
60
60
  return e;
61
61
  }
62
62
  };
63
- function k(e, t, n) {
64
- const r = z(() => null), o = Ht(t, n), s = z(o), [a, i] = fe(Lt, o), l = P(
65
- (p) => (i({ type: "START" }), new Promise((m, d) => {
63
+ function j(e, t, n) {
64
+ const r = z(() => null), o = Ht(t, n), s = z(o), [a, i] = fe(Lt, o), l = T(
65
+ (p) => (i({ type: "START" }), new Promise((f, d) => {
66
66
  e({
67
67
  cancelToken: new J.CancelToken((h) => {
68
68
  r.current = h;
69
69
  }),
70
70
  ...p
71
71
  }).then((h) => {
72
- m(h), i({ type: "SUCCESS", response: h }), n && (n.current = h.data);
72
+ f(h), i({ type: "SUCCESS", response: h }), n && (n.current = h.data);
73
73
  }).catch((h) => {
74
74
  h.__CANCEL__ ? i({ type: "CANCEL" }) : (d(h), i({ type: "ERROR", response: h }));
75
75
  });
76
76
  })),
77
77
  [e, n]
78
- ), u = P(
78
+ ), u = T(
79
79
  () => i({ type: "RESET", initialState: s.current }),
80
80
  []
81
- ), c = P(() => r.current(), []);
81
+ ), c = T(() => r.current(), []);
82
82
  return $(
83
83
  () => () => {
84
84
  c(), u();
@@ -91,10 +91,10 @@ function k(e, t, n) {
91
91
  ...a
92
92
  };
93
93
  }
94
- const Ut = "CHANGE_PAGE", Mt = "CHANGE_ROWS", xt = "CHANGE_SORT", Ft = "CHANGE_SEARCHTEXT", qt = "CHANGE_SEARCHFIELD", $t = "CHANGE_SEARCHFIELDFACET", jt = "CHANGE_SEARCHFILTER", Wt = "CHANGE_SEARCHFILTERFACET", Vt = "CHANGE_PARENT_COLLECTION", kt = "CHANGE_FACET", Yt = "CHANGE_ITEMSEARCHDOCUMENT", Bt = "CHANGE_QUERYPARAMS", Qt = "CHANGE_MATRIXPARAMS", Jt = "CHANGE_SUGGESTION", M = {
94
+ const Ut = "CHANGE_PAGE", xt = "CHANGE_ROWS", Mt = "CHANGE_SORT", Ft = "CHANGE_SEARCHTEXT", qt = "CHANGE_SEARCHFIELD", $t = "CHANGE_SEARCHFIELDFACET", jt = "CHANGE_SEARCHFILTER", Wt = "CHANGE_SEARCHFILTERFACET", Vt = "CHANGE_PARENT_COLLECTION", kt = "CHANGE_FACET", Yt = "CHANGE_ITEMSEARCHDOCUMENT", Bt = "CHANGE_QUERYPARAMS", Qt = "CHANGE_MATRIXPARAMS", Jt = "CHANGE_SUGGESTION", M = {
95
95
  CHANGE_PAGE: Ut,
96
- CHANGE_ROWS: Mt,
97
- CHANGE_SORT: xt,
96
+ CHANGE_ROWS: xt,
97
+ CHANGE_SORT: Mt,
98
98
  CHANGE_SEARCHTEXT: Ft,
99
99
  CHANGE_SEARCHFIELD: qt,
100
100
  CHANGE_SEARCHFIELDFACET: $t,
@@ -347,69 +347,69 @@ function Kt(e) {
347
347
  type: M.CHANGE_SORT,
348
348
  field: y,
349
349
  order: S
350
- }), i = P(
350
+ }), i = T(
351
351
  (g) => r({
352
352
  type: M.CHANGE_SEARCHTEXT,
353
353
  value: g
354
354
  }),
355
355
  []
356
- ), l = P(
356
+ ), l = T(
357
357
  (g, y) => r({
358
358
  type: M.CHANGE_ITEMSEARCHDOCUMENT,
359
359
  itemSearchDocument: g,
360
360
  page: y
361
361
  }),
362
362
  []
363
- ), u = P(
363
+ ), u = T(
364
364
  (g) => r({
365
365
  type: M.CHANGE_QUERYPARAMS,
366
366
  queryParams: g
367
367
  }),
368
368
  []
369
- ), c = P(
369
+ ), c = T(
370
370
  (g) => r({
371
371
  type: M.CHANGE_MATRIXPARAMS,
372
372
  matrixParams: g
373
373
  }),
374
374
  []
375
- ), p = P(
375
+ ), p = T(
376
376
  (g) => r({
377
377
  type: M.CHANGE_SEARCHFIELD,
378
378
  field: g
379
379
  }),
380
380
  []
381
- ), m = P((g) => {
381
+ ), f = T((g) => {
382
382
  const y = g.map(({ name: S }) => ({ field: S, count: !0 }));
383
383
  r({ type: M.CHANGE_SEARCHFIELDFACET, field: g, facet: y });
384
- }, []), d = P(
384
+ }, []), d = T(
385
385
  (g) => r({
386
386
  type: M.CHANGE_SEARCHFILTER,
387
387
  filter: g
388
388
  }),
389
389
  []
390
- ), h = P(
390
+ ), h = T(
391
391
  (g) => {
392
- const S = g.reduce((R, { field: A = [] }) => R.concat(A), []).map(({ name: R }) => ({
393
- name: R,
394
- field: R,
392
+ const S = g.reduce((P, { field: A = [] }) => P.concat(A), []).map(({ name: P }) => ({
393
+ name: P,
394
+ field: P,
395
395
  count: !0,
396
- exclude: [R]
396
+ exclude: [P]
397
397
  }));
398
398
  r({ type: M.CHANGE_SEARCHFILTERFACET, filter: g, facet: S });
399
399
  },
400
400
  [r]
401
- ), f = P(
401
+ ), m = T(
402
402
  (g) => {
403
403
  r({ type: M.CHANGE_FACET, facet: g });
404
404
  },
405
405
  [r]
406
- ), C = P(
406
+ ), C = T(
407
407
  (g) => r({
408
408
  type: M.CHANGE_PARENT_COLLECTION,
409
409
  value: g
410
410
  }),
411
411
  []
412
- ), v = P((g) => {
412
+ ), v = T((g) => {
413
413
  r({ type: M.CHANGE_SUGGESTION, suggestion: g });
414
414
  }, []);
415
415
  return {
@@ -419,10 +419,10 @@ function Kt(e) {
419
419
  onChangeSort: a,
420
420
  setSearchText: i,
421
421
  setSearchField: p,
422
- setSearchFieldFacet: m,
422
+ setSearchFieldFacet: f,
423
423
  setSearchFilter: d,
424
424
  setSearchFilterFacet: h,
425
- setFacet: f,
425
+ setFacet: m,
426
426
  setItemSearchDocument: l,
427
427
  setQueryParams: u,
428
428
  setMatrixParams: c,
@@ -430,7 +430,7 @@ function Kt(e) {
430
430
  setSuggestion: v
431
431
  };
432
432
  }
433
- function st(e, t) {
433
+ function xe(e, t) {
434
434
  const n = z(!1);
435
435
  $(() => {
436
436
  n.current ? e() : n.current = !0;
@@ -445,17 +445,17 @@ const Zt = ({
445
445
  text: t,
446
446
  maximumSuggestions: n
447
447
  });
448
- function Un(e) {
449
- const t = Zt(e), [n, r] = x(t), o = P((u, c = "") => {
448
+ function xn(e) {
449
+ const t = Zt(e), [n, r] = x(t), o = T((u, c = "") => {
450
450
  r((p) => ({ ...p, field: u, text: c }));
451
- }, []), s = P((u) => {
451
+ }, []), s = T((u) => {
452
452
  r((c) => ({ ...c, text: u }));
453
- }, []), a = P((u) => {
453
+ }, []), a = T((u) => {
454
454
  r((c) => ({ ...c, maximumSuggestions: u }));
455
- }, []), { request: i, data: { suggestion: l = [] } = {} } = k(
456
- Xe.searchAutoComplete
455
+ }, []), { request: i, data: { suggestion: l = [] } = {} } = j(
456
+ Ue.searchAutoComplete
457
457
  );
458
- return st(() => {
458
+ return xe(() => {
459
459
  i({ autocompleteRequestDocument: n });
460
460
  }, [n]), {
461
461
  suggestions: l,
@@ -464,17 +464,51 @@ function Un(e) {
464
464
  setAutocompleteMaxSuggestions: a
465
465
  };
466
466
  }
467
- const Mn = (e = "id", t = []) => {
467
+ const er = ({
468
+ field: e = void 0,
469
+ text: t = "",
470
+ maximumSuggestions: n = 10
471
+ } = {}) => ({
472
+ field: e,
473
+ text: t,
474
+ maximumSuggestions: n
475
+ });
476
+ function Mn(e) {
477
+ const t = er(e), [n, r] = x(t), [o, s] = x("NESTED"), a = T((f = "NESTED") => {
478
+ s(f);
479
+ }, []), i = T((f, d = "") => {
480
+ r((h) => ({ ...h, field: f, text: d }));
481
+ }, []), l = T((f) => {
482
+ r((d) => ({ ...d, text: f }));
483
+ }, []), u = T((f) => {
484
+ r((d) => ({ ...d, maximumSuggestions: f }));
485
+ }, []), { request: c, data: { suggestion: p = [] } = {} } = j(
486
+ Ue.searchAutoComplete
487
+ );
488
+ return xe(() => {
489
+ c({
490
+ autocompleteRequestDocument: n,
491
+ path: `/API/search2/autocomplete?searchLang=${o}`
492
+ });
493
+ }, [n, o]), {
494
+ suggestions: p,
495
+ setAutocompleteField: i,
496
+ setAutocompleteText: l,
497
+ setAutocompleteMaxSuggestions: u,
498
+ setAutocompleteLanguage: a
499
+ };
500
+ }
501
+ const Fn = (e = "id", t = []) => {
468
502
  const [n, r] = x(t);
469
503
  return {
470
504
  selected: n,
471
505
  onSelect: (i, l, u) => {
472
- const c = u[e], p = n.findIndex((m) => m[e] === c);
506
+ const c = u[e], p = n.findIndex((f) => f[e] === c);
473
507
  if (p === -1 && l === !0)
474
508
  l === !0 && r([...n, u]);
475
509
  else if (p > -1 && l === !1) {
476
- const m = [...n];
477
- m.splice(p, 1), r(m);
510
+ const f = [...n];
511
+ f.splice(p, 1), r(f);
478
512
  }
479
513
  },
480
514
  onClear: () => r([]),
@@ -483,11 +517,11 @@ const Mn = (e = "id", t = []) => {
483
517
  return n.findIndex((c) => c[e] === l) > -1;
484
518
  }
485
519
  };
486
- }, xn = (e) => {
520
+ }, qn = (e) => {
487
521
  const [t, n] = x(e);
488
522
  return { activeTab: t, changeTab: (o, s) => n(s) };
489
523
  };
490
- function Fn(e, t) {
524
+ function $n(e, t) {
491
525
  const n = z();
492
526
  $(() => {
493
527
  n.current = e;
@@ -496,7 +530,7 @@ function Fn(e, t) {
496
530
  return () => clearInterval(o);
497
531
  }, [t]);
498
532
  }
499
- function qn(e = []) {
533
+ function jn(e = []) {
500
534
  const t = z(), n = he(() => Math.floor(e.length / 2), [e]), [r, o] = x(), s = z(r);
501
535
  if ($(() => () => t.current && clearInterval(t.current), []), e.length === 0)
502
536
  return { width: 0 };
@@ -516,16 +550,16 @@ function qn(e = []) {
516
550
  width: u
517
551
  };
518
552
  }
519
- const er = "CHANGE_PAGE", tr = "CHANGE_ROWS", rr = "CHANGE_SORT", nr = "CHANGE_TYPE", or = "CHANGE_STATE", sr = "CHANGE_PRIORITY", ar = "CHANGE_STARTTIME", ir = "CHANGE_FINISHTIME", Y = {
520
- CHANGE_PAGE: er,
521
- CHANGE_ROWS: tr,
522
- CHANGE_SORT: rr,
523
- CHANGE_TYPE: nr,
524
- CHANGE_STATE: or,
525
- CHANGE_PRIORITY: sr,
526
- CHANGE_STARTTIME: ar,
527
- CHANGE_FINISHTIME: ir
528
- }, cr = ({ queryParams: e = {}, matrixParams: t = {} } = {}) => ({
553
+ const tr = "CHANGE_PAGE", rr = "CHANGE_ROWS", nr = "CHANGE_SORT", or = "CHANGE_TYPE", sr = "CHANGE_STATE", ar = "CHANGE_PRIORITY", ir = "CHANGE_STARTTIME", cr = "CHANGE_FINISHTIME", Y = {
554
+ CHANGE_PAGE: tr,
555
+ CHANGE_ROWS: rr,
556
+ CHANGE_SORT: nr,
557
+ CHANGE_TYPE: or,
558
+ CHANGE_STATE: sr,
559
+ CHANGE_PRIORITY: ar,
560
+ CHANGE_STARTTIME: ir,
561
+ CHANGE_FINISHTIME: cr
562
+ }, ur = ({ queryParams: e = {}, matrixParams: t = {} } = {}) => ({
529
563
  queryParams: e,
530
564
  matrixParams: {
531
565
  first: 1,
@@ -535,7 +569,7 @@ const er = "CHANGE_PAGE", tr = "CHANGE_ROWS", rr = "CHANGE_SORT", nr = "CHANGE_T
535
569
  rowsPerPage: 10,
536
570
  page: 0,
537
571
  jobMetadata: []
538
- }), ur = (e, t) => {
572
+ }), lr = (e, t) => {
539
573
  const { type: n, ...r } = t;
540
574
  switch (n) {
541
575
  case Y.CHANGE_PAGE: {
@@ -639,60 +673,60 @@ const er = "CHANGE_PAGE", tr = "CHANGE_ROWS", rr = "CHANGE_SORT", nr = "CHANGE_T
639
673
  return e;
640
674
  }
641
675
  };
642
- function $n(e) {
643
- const t = cr(e), [n, r] = fe(ur, t);
676
+ function Wn(e) {
677
+ const t = ur(e), [n, r] = fe(lr, t);
644
678
  return {
645
679
  state: n,
646
680
  onChangePage: ({ page: d }) => r({
647
681
  type: Y.CHANGE_PAGE,
648
682
  page: d
649
683
  }),
650
- onChangeSort: (d, h, f) => {
684
+ onChangeSort: (d, h, m) => {
651
685
  const C = typeof h == "object" ? h.value : h;
652
686
  r({
653
687
  type: Y.CHANGE_SORT,
654
688
  field: C,
655
- order: f
689
+ order: m
656
690
  });
657
691
  },
658
692
  onChangeType: ({ field: d = [] }) => {
659
- const [{ name: h = "type", value: f = [] }] = d;
693
+ const [{ name: h = "type", value: m = [] }] = d;
660
694
  r({
661
695
  type: Y.CHANGE_TYPE,
662
696
  field: h,
663
- value: f.length ? f[0].value : null
697
+ value: m.length ? m[0].value : null
664
698
  });
665
699
  },
666
700
  onChangeState: ({ field: d = [] }) => {
667
- const [{ name: h = "state", value: f = [] }] = d;
701
+ const [{ name: h = "state", value: m = [] }] = d;
668
702
  r({
669
703
  type: Y.CHANGE_STATE,
670
704
  field: h,
671
- value: f.length ? f[0].value : null
705
+ value: m.length ? m[0].value : null
672
706
  });
673
707
  },
674
708
  onChangePriority: ({ field: d = [] }) => {
675
- const [{ name: h = "priority", value: f = [] }] = d;
709
+ const [{ name: h = "priority", value: m = [] }] = d;
676
710
  r({
677
711
  type: Y.CHANGE_PRIORITY,
678
712
  field: h,
679
- value: f.length ? f[0].value : null
713
+ value: m.length ? m[0].value : null
680
714
  });
681
715
  },
682
716
  onChangeStarttime: ({ field: d = [] }) => {
683
- const [{ name: h = "starttime-from", value: f = [] }] = d;
717
+ const [{ name: h = "starttime-from", value: m = [] }] = d;
684
718
  r({
685
719
  type: Y.CHANGE_STARTTIME,
686
720
  field: h,
687
- value: f.length ? f[0].value : null
721
+ value: m.length ? m[0].value : null
688
722
  });
689
723
  },
690
724
  onChangeFinishtime: ({ field: d = [] }) => {
691
- const [{ name: h = "finishtime-from", value: f = [] }] = d;
725
+ const [{ name: h = "finishtime-from", value: m = [] }] = d;
692
726
  r({
693
727
  type: Y.CHANGE_FINISHTIME,
694
728
  field: h,
695
- value: f.length ? f[0].value : null
729
+ value: m.length ? m[0].value : null
696
730
  });
697
731
  },
698
732
  onChangeRowsPerPage: ({ target: { value: d } } = {}) => r({
@@ -708,7 +742,7 @@ function $n(e) {
708
742
  }
709
743
  };
710
744
  }
711
- const jn = (e, t) => {
745
+ const Vn = (e, t) => {
712
746
  const [n, r] = x(
713
747
  JSON.parse(window.localStorage.getItem(e) || JSON.stringify(t))
714
748
  );
@@ -725,27 +759,27 @@ function at() {
725
759
  )
726
760
  );
727
761
  }
728
- function lr(e) {
762
+ function dr(e) {
729
763
  return wt(e);
730
764
  }
731
- function dr(e) {
765
+ function fr(e) {
732
766
  return e.slice(-1) === "=" ? decodeURIComponent(
733
767
  atob(e).split("").map((t) => `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")
734
768
  ) : Dt(e);
735
769
  }
736
- const fr = ["__mp3_160k"], mr = ["__mp4"], pr = ["__png"], hr = "audio", Er = "video", gr = "image", yr = ["application/mxf"], Ar = [], Cr = [], Sr = (e) => {
770
+ const mr = ["__mp3_160k"], pr = ["__mp4"], hr = ["__png"], Er = "audio", gr = "video", yr = "image", Ar = ["application/mxf"], Cr = [], Sr = [], vr = (e) => {
737
771
  if (!e || !e.type)
738
772
  return [];
739
773
  const t = e.type.toLowerCase();
740
- return t.startsWith(hr) || Cr.includes(t) ? fr : t.startsWith(Er) || yr.includes(t) ? mr : t.startsWith(gr) || Ar.includes(t) ? pr : [];
741
- }, vr = (e, t = {}) => new Promise((n, r) => {
774
+ return t.startsWith(Er) || Sr.includes(t) ? mr : t.startsWith(gr) || Ar.includes(t) ? pr : t.startsWith(yr) || Cr.includes(t) ? hr : [];
775
+ }, Tr = (e, t = {}) => new Promise((n, r) => {
742
776
  const o = new Rt(), s = new Pt(e, {
743
777
  onFail: (a) => r(a),
744
778
  onComplete: (a) => n(a),
745
779
  ...t
746
780
  });
747
781
  o.addChunkedUpload(s), o.upload();
748
- }), Tr = ({
782
+ }), Rr = ({
749
783
  file: e,
750
784
  collectionId: t,
751
785
  onProgress: n,
@@ -754,18 +788,18 @@ const fr = ["__mp3_160k"], mr = ["__mp4"], pr = ["__png"], hr = "audio", Er = "v
754
788
  importParams: s = {},
755
789
  chunkedUploadProps: a = {},
756
790
  generateTransferId: i = at,
757
- getShapeTags: l = Sr
791
+ getShapeTags: l = vr
758
792
  }) => new Promise((u, c) => {
759
793
  try {
760
794
  let p;
761
795
  n({});
762
- const m = l(e), d = e.name, h = e.type, [f] = h.split("/"), C = {
796
+ const f = l(e), d = e.name, h = e.type, [m] = h.split("/"), C = {
763
797
  originalFilename: d,
764
798
  mimeType: h,
765
- mediaType: f,
799
+ mediaType: m,
766
800
  ...r
767
801
  }, v = de(C);
768
- xe.createImportPlaceholder({
802
+ qe.createImportPlaceholder({
769
803
  metadataDocument: v,
770
804
  queryParams: {
771
805
  container: 1,
@@ -777,7 +811,7 @@ const fr = ["__mp3_160k"], mr = ["__mp4"], pr = ["__png"], hr = "audio", Er = "v
777
811
  const y = Array.isArray(t) ? t : [t];
778
812
  return Promise.all(
779
813
  y.map(
780
- (S) => V.addCollectionEntity({
814
+ (S) => k.addCollectionEntity({
781
815
  collectionId: S,
782
816
  entityId: p
783
817
  })
@@ -787,12 +821,12 @@ const fr = ["__mp3_160k"], mr = ["__mp4"], pr = ["__png"], hr = "audio", Er = "v
787
821
  const g = i(), y = {
788
822
  filename: d,
789
823
  transferId: g,
790
- tag: m,
824
+ tag: f,
791
825
  ...s
792
826
  };
793
- return vr(e, {
827
+ return Tr(e, {
794
828
  api: {
795
- method: xe.createImportComponentRaw,
829
+ method: qe.createImportComponentRaw,
796
830
  props: {
797
831
  itemId: p,
798
832
  component: "container",
@@ -809,65 +843,65 @@ const fr = ["__mp3_160k"], mr = ["__mp4"], pr = ["__png"], hr = "audio", Er = "v
809
843
  console.error(p), c(p);
810
844
  }
811
845
  });
812
- function Wn({
813
- onUploadFile: e = Tr,
846
+ function kn({
847
+ onUploadFile: e = Rr,
814
848
  initialMetadata: t = {},
815
849
  ...n
816
850
  }) {
817
851
  const [r, o] = x([]);
818
852
  $(
819
853
  () => () => {
820
- r.forEach((m) => URL.revokeObjectURL(m.preview));
854
+ r.forEach((f) => URL.revokeObjectURL(f.preview));
821
855
  },
822
856
  [r]
823
857
  );
824
- const s = P(
825
- (m = []) => {
826
- const d = m.map((h) => ({
858
+ const s = T(
859
+ (f = []) => {
860
+ const d = f.map((h) => ({
827
861
  file: h,
828
862
  metadata: { title: h.name, ...t }
829
863
  }));
830
864
  o((h) => d.concat(h));
831
865
  },
832
866
  [t]
833
- ), a = P(
834
- (m, d = {}) => {
867
+ ), a = T(
868
+ (f, d = {}) => {
835
869
  o((h) => {
836
- const f = h[m], { metadata: C, progress: v } = d, { metadata: g = {}, progress: y = {} } = f, S = [...h], R = { ...f };
837
- return C && (R.metadata = { ...g, ...C }), v && (R.progress = { ...y, ...v }), S[m] = R, S;
870
+ const m = h[f], { metadata: C, progress: v } = d, { metadata: g = {}, progress: y = {} } = m, S = [...h], P = { ...m };
871
+ return C && (P.metadata = { ...g, ...C }), v && (P.progress = { ...y, ...v }), S[f] = P, S;
838
872
  });
839
873
  },
840
874
  [o]
841
- ), i = P(
842
- (m) => (d = {}) => {
843
- a(m, { progress: d });
875
+ ), i = T(
876
+ (f) => (d = {}) => {
877
+ a(f, { progress: d });
844
878
  },
845
879
  [a]
846
- ), l = P(
847
- (m) => (d = {}) => {
848
- a(m, { metadata: d });
880
+ ), l = T(
881
+ (f) => (d = {}) => {
882
+ a(f, { metadata: d });
849
883
  },
850
884
  [a]
851
- ), u = P(
852
- (m) => r.reduce(
853
- (d, h, f) => d.then((C) => h.progress ? d : e({
885
+ ), u = T(
886
+ (f) => r.reduce(
887
+ (d, h, m) => d.then((C) => h.progress ? d : e({
854
888
  file: h.file,
855
- onProgress: i(f),
889
+ onProgress: i(m),
856
890
  metadata: h.metadata,
857
- ...m,
891
+ ...f,
858
892
  ...n
859
893
  }).then((v) => [...C, v])),
860
894
  Promise.resolve([])
861
895
  ),
862
896
  [r, e, i, n]
863
- ), c = P(
864
- (m) => () => {
865
- o([...r].filter((d, h) => h !== m));
897
+ ), c = T(
898
+ (f) => () => {
899
+ o([...r].filter((d, h) => h !== f));
866
900
  },
867
901
  [o, r]
868
- ), p = P(
869
- (m) => () => {
870
- o([...r].filter((d, h) => !m.includes(h)));
902
+ ), p = T(
903
+ (f) => () => {
904
+ o([...r].filter((d, h) => !f.includes(h)));
871
905
  },
872
906
  [o, r]
873
907
  );
@@ -882,7 +916,7 @@ function Wn({
882
916
  setFiles: o
883
917
  };
884
918
  }
885
- function Vn({
919
+ function Yn({
886
920
  history: e,
887
921
  navigate: t,
888
922
  location: n,
@@ -895,37 +929,37 @@ function Vn({
895
929
  if (!u)
896
930
  return s.current;
897
931
  try {
898
- const c = dr(u);
932
+ const c = fr(u);
899
933
  return JSON.parse(c);
900
934
  } catch {
901
935
  e ? e.replace({ pathName: e.location.pathName, search: "" }) : t && t(i.pathName, { replace: !0 });
902
936
  }
903
937
  }, [e, t, n, r]) };
904
938
  }
905
- function kn({
939
+ function Bn({
906
940
  history: e,
907
941
  navigate: t,
908
942
  location: n,
909
943
  state: r,
910
944
  queryName: o = "q"
911
945
  }) {
912
- const s = P(() => {
913
- const { location: a = n } = e || {}, i = lr(JSON.stringify(r));
946
+ const s = T(() => {
947
+ const { location: a = n } = e || {}, i = dr(JSON.stringify(r));
914
948
  e ? e.replace({
915
949
  pathName: a.pathName,
916
950
  search: `?${o}=${i}`
917
951
  }) : t && t(`${a.pathName}?${o}=${i}`, { replace: !0 });
918
952
  }, [e, t, n, o, r]);
919
- st(() => {
953
+ xe(() => {
920
954
  s(r);
921
955
  }, [s, r]);
922
956
  }
923
- const Yn = ({ entityId: e, entityType: t }) => {
957
+ const Qn = ({ entityId: e, entityType: t }) => {
924
958
  const {
925
959
  request: n,
926
960
  data: r = {},
927
961
  isLoading: o
928
- } = k(Pe.listEntityAccess), s = P(
962
+ } = j(Pe.listEntityAccess), s = T(
929
963
  (l = {}) => n({
930
964
  entityId: e,
931
965
  entityType: t,
@@ -933,7 +967,7 @@ const Yn = ({ entityId: e, entityType: t }) => {
933
967
  }),
934
968
  // eslint-disable-next-line react-hooks/exhaustive-deps
935
969
  [e, t]
936
- ), a = P(
970
+ ), a = T(
937
971
  ({ accessId: l, ...u }) => Pe.removeEntityAccess({
938
972
  accessId: l,
939
973
  entityId: e,
@@ -941,7 +975,7 @@ const Yn = ({ entityId: e, entityType: t }) => {
941
975
  ...u
942
976
  }),
943
977
  [e, t]
944
- ), i = P(
978
+ ), i = T(
945
979
  ({ accessControlDocument: l, ...u }) => Pe.createEntityAccess({
946
980
  entityType: t,
947
981
  entityId: e,
@@ -962,12 +996,12 @@ const Yn = ({ entityId: e, entityType: t }) => {
962
996
  return;
963
997
  const { value: n } = e.find((r) => r.key === t) || {};
964
998
  return n;
965
- }, Rr = (e, t) => Object.assign(
999
+ }, Pr = (e, t) => Object.assign(
966
1000
  {},
967
1001
  ...t.map((n) => ({
968
1002
  [n]: it(e, n)
969
1003
  }))
970
- ), Pr = ({ values: { field: e } = {} } = {}) => e ? e.map((t) => ({ value: t.value, label: t.key || t.value })) : void 0, Nr = (e) => {
1004
+ ), Nr = ({ values: { field: e } = {} } = {}) => e ? e.map((t) => ({ value: t.value, label: t.key || t.value })) : void 0, Ir = (e) => {
971
1005
  const n = new DOMParser().parseFromString(e, "application/xml").getElementsByTagName("field");
972
1006
  if (!n.length)
973
1007
  return;
@@ -980,24 +1014,24 @@ const Yn = ({ entityId: e, entityType: t }) => {
980
1014
  });
981
1015
  }
982
1016
  return r;
983
- }, Bn = ({
1017
+ }, Jn = ({
984
1018
  fields: e,
985
1019
  groups: t,
986
- getDataAttributes: n = Rr,
1020
+ getDataAttributes: n = Pr,
987
1021
  fieldDataToInclude: r = "label,displayType,required",
988
1022
  groupDataToInclude: o = "label,order",
989
1023
  fieldQueryParams: s = {},
990
1024
  groupQueryParams: a = {},
991
1025
  getAttributes: i = !0
992
1026
  }) => {
993
- const [l, u] = x(!1), [c, p] = x(e), [m, d] = x(t);
1027
+ const [l, u] = x(!1), [c, p] = x(e), [f, d] = x(t);
994
1028
  return Z(() => {
995
1029
  let h = !1;
996
1030
  if (i === !1)
997
1031
  return () => {
998
1032
  h = !0;
999
1033
  };
1000
- const f = (g = [], y = {}) => g.map(({ name: S, ...R }) => {
1034
+ const m = (g = [], y = {}) => g.map(({ name: S, ...P }) => {
1001
1035
  const A = y[S] || {}, { label: N, ..._ } = n(
1002
1036
  A,
1003
1037
  r.split(",")
@@ -1007,21 +1041,21 @@ const Yn = ({ entityId: e, entityType: t }) => {
1007
1041
  label: N || S,
1008
1042
  type: A.type,
1009
1043
  constraint: A.constraint,
1010
- options: Pr(A),
1044
+ options: Nr(A),
1011
1045
  ..._,
1012
- ...R
1046
+ ...P
1013
1047
  };
1014
- }), C = (g = [], y = {}, S = {}) => g.map(({ name: R, field: A, group: N, ..._ }) => {
1015
- const b = y[R] || {}, j = A || b && b.field, W = N || b && b.group, { label: Q, ...re } = n(
1048
+ }), C = (g = [], y = {}, S = {}) => g.map(({ name: P, field: A, group: N, ..._ }) => {
1049
+ const b = y[P] || {}, W = A || b && b.field, V = N || b && b.group, { label: Q, ...re } = n(
1016
1050
  b,
1017
1051
  o.split(",")
1018
1052
  );
1019
1053
  return {
1020
- name: R,
1021
- label: Q || R,
1054
+ name: P,
1055
+ label: Q || P,
1022
1056
  order: it(b, "order"),
1023
- fields: f(j, S),
1024
- groups: C(W, y, S),
1057
+ fields: m(W, S),
1058
+ groups: C(V, y, S),
1025
1059
  ...re,
1026
1060
  ..._
1027
1061
  };
@@ -1034,7 +1068,7 @@ const Yn = ({ entityId: e, entityType: t }) => {
1034
1068
  const A = { ...s, data: r };
1035
1069
  S = e.map(async ({ name: N }) => {
1036
1070
  try {
1037
- const { data: _ } = await ze.getMetadataField({
1071
+ const { data: _ } = await Ke.getMetadataField({
1038
1072
  fieldName: N,
1039
1073
  queryParams: A
1040
1074
  });
@@ -1044,22 +1078,22 @@ const Yn = ({ entityId: e, entityType: t }) => {
1044
1078
  }
1045
1079
  });
1046
1080
  }
1047
- let R = [];
1081
+ let P = [];
1048
1082
  if (t) {
1049
1083
  const A = [...t], N = { ...a, data: o };
1050
- R = A.map(async ({ name: _ }) => {
1084
+ P = A.map(async ({ name: _ }) => {
1051
1085
  try {
1052
- const { data: b } = await Ke.getFieldGroup({
1086
+ const { data: b } = await Ze.getFieldGroup({
1053
1087
  groupName: _,
1054
1088
  queryParams: N
1055
- }), { field: j = [], group: W = [] } = b;
1056
- j.forEach((Q) => {
1089
+ }), { field: W = [], group: V = [] } = b;
1090
+ W.forEach((Q) => {
1057
1091
  const re = Q.data && Q.data.find((ne) => ne.key === "__values");
1058
1092
  if (re) {
1059
- const ne = Nr(re.value);
1093
+ const ne = Ir(re.value);
1060
1094
  g[Q.name] = { ...Q, values: ne };
1061
1095
  }
1062
- }), W.forEach((Q) => {
1096
+ }), V.forEach((Q) => {
1063
1097
  A.push(Q);
1064
1098
  }), y[_] = b;
1065
1099
  } catch {
@@ -1067,7 +1101,7 @@ const Yn = ({ entityId: e, entityType: t }) => {
1067
1101
  }
1068
1102
  });
1069
1103
  }
1070
- await Promise.all([...S, ...R]), h || (Object.values(g).some((A) => A) && p(() => f(e, g)), Object.values(y).some((A) => A) && d(() => {
1104
+ await Promise.all([...S, ...P]), h || (Object.values(g).some((A) => A) && p(() => m(e, g)), Object.values(y).some((A) => A) && d(() => {
1071
1105
  const A = C(
1072
1106
  t,
1073
1107
  y,
@@ -1075,7 +1109,7 @@ const Yn = ({ entityId: e, entityType: t }) => {
1075
1109
  );
1076
1110
  return A.forEach((N) => {
1077
1111
  const { order: _ } = N;
1078
- _ && N.fields.sort((b, j) => _.indexOf(b.name) - _.indexOf(j.name));
1112
+ _ && N.fields.sort((b, W) => _.indexOf(b.name) - _.indexOf(W.name));
1079
1113
  }), A;
1080
1114
  }), u(!1));
1081
1115
  }
@@ -1090,17 +1124,17 @@ const Yn = ({ entityId: e, entityType: t }) => {
1090
1124
  s,
1091
1125
  a,
1092
1126
  i
1093
- ]), { fieldsWithAttributes: c, groupsWithAttributes: m, isLoading: l };
1094
- }, Ir = "TRANSIENT";
1095
- function _r({ metadata: e, markerField: t, markerValue: n, itemSearchDocument: r }) {
1127
+ ]), { fieldsWithAttributes: c, groupsWithAttributes: f, isLoading: l };
1128
+ }, _r = "TRANSIENT";
1129
+ function br({ metadata: e, markerField: t, markerValue: n, itemSearchDocument: r }) {
1096
1130
  return ue.searchItem({
1097
1131
  queryParams: {
1098
1132
  result: "library",
1099
- updateMode: Ir
1133
+ updateMode: _r
1100
1134
  },
1101
1135
  itemSearchDocument: r
1102
1136
  }).then(
1103
- ({ data: { library: o } }) => V.createCollection({
1137
+ ({ data: { library: o } }) => k.createCollection({
1104
1138
  collectionDocument: {
1105
1139
  metadata: t ? de({
1106
1140
  [t]: n || o,
@@ -1117,47 +1151,47 @@ function _r({ metadata: e, markerField: t, markerValue: n, itemSearchDocument: r
1117
1151
  );
1118
1152
  }
1119
1153
  const ct = ({ collectionId: e }) => new Promise((t, n) => {
1120
- V.getCollection({ collectionId: e, queryParams: { children: "library" } }).then(
1154
+ k.getCollection({ collectionId: e, queryParams: { children: "library" } }).then(
1121
1155
  ({ data: r }) => {
1122
1156
  const { content: o = [] } = r, [s] = o;
1123
1157
  s || n(new Error("No Libraries")), t(s);
1124
1158
  }
1125
1159
  );
1126
- }), br = ({ collectionId: e }) => ct({ collectionId: e }).then(
1160
+ }), Gr = ({ collectionId: e }) => ct({ collectionId: e }).then(
1127
1161
  ({ id: t }) => Promise.all([
1128
1162
  ge.removeLibrary({ libraryId: t }),
1129
- V.removeCollection({ collectionId: e })
1163
+ k.removeCollection({ collectionId: e })
1130
1164
  ])
1131
1165
  );
1132
- function Gr({ libraryId: e }) {
1166
+ function wr({ libraryId: e }) {
1133
1167
  return new Promise((t) => {
1134
1168
  ge.getLibrarySettings({ libraryId: e }).then(({ data: { query: n } }) => {
1135
1169
  t(n);
1136
1170
  });
1137
1171
  });
1138
1172
  }
1139
- const wr = ({ collectionId: e }) => new Promise((t) => {
1140
- ct({ collectionId: e }).then(({ id: n }) => Gr({ libraryId: n })).then(t);
1173
+ const Dr = ({ collectionId: e }) => new Promise((t) => {
1174
+ ct({ collectionId: e }).then(({ id: n }) => wr({ libraryId: n })).then(t);
1141
1175
  });
1142
- function Qn({
1176
+ function Xn({
1143
1177
  markerField: e,
1144
1178
  markerValue: t,
1145
1179
  initialSearchState: n,
1146
- onSaveSearch: r = _r,
1147
- onDeleteSearch: o = br,
1148
- onUpdateSearchMetadata: s = V.updateCollectionMetadata,
1149
- onGetSavedSearchSettings: a = wr
1180
+ onSaveSearch: r = br,
1181
+ onDeleteSearch: o = Gr,
1182
+ onUpdateSearchMetadata: s = k.updateCollectionMetadata,
1183
+ onGetSavedSearchSettings: a = Dr
1150
1184
  }) {
1151
- const i = P(
1152
- ({ metadata: m, itemSearchDocument: d }) => r({
1153
- metadata: m,
1185
+ const i = T(
1186
+ ({ metadata: f, itemSearchDocument: d }) => r({
1187
+ metadata: f,
1154
1188
  markerField: e,
1155
1189
  markerValue: t,
1156
1190
  itemSearchDocument: d
1157
1191
  }),
1158
1192
  [e, t, r]
1159
- ), l = (m = {}) => ({
1160
- ...m,
1193
+ ), l = (f = {}) => ({
1194
+ ...f,
1161
1195
  operator: {
1162
1196
  field: [
1163
1197
  {
@@ -1165,7 +1199,7 @@ function Qn({
1165
1199
  value: [{ value: t || "*" }]
1166
1200
  }
1167
1201
  ],
1168
- operator: m.operator ? [m.operator] : [],
1202
+ operator: f.operator ? [f.operator] : [],
1169
1203
  operation: "AND"
1170
1204
  }
1171
1205
  }), u = Kt({
@@ -1178,19 +1212,19 @@ function Qn({
1178
1212
  onUpdateSearchMetadata: s,
1179
1213
  onGetSavedSearchSettings: a,
1180
1214
  searchProps: {
1181
- setItemSearchDocument: (m) => c(l(m)),
1215
+ setItemSearchDocument: (f) => c(l(f)),
1182
1216
  ...p
1183
1217
  }
1184
1218
  };
1185
1219
  }
1186
- function Dr({ itemSearchDocument: e, queryParams: t, matrixParams: n }) {
1220
+ function Or({ itemSearchDocument: e, queryParams: t, matrixParams: n }) {
1187
1221
  const {
1188
1222
  request: r,
1189
1223
  data: o = {},
1190
1224
  isLoading: s,
1191
1225
  isError: a,
1192
1226
  cancel: i
1193
- } = k(ue.searchItem), l = () => r({ itemSearchDocument: e, queryParams: t, matrixParams: n });
1227
+ } = j(ue.searchItem), l = () => r({ itemSearchDocument: e, queryParams: t, matrixParams: n });
1194
1228
  return Z(() => {
1195
1229
  l();
1196
1230
  }, [e, t, n]), {
@@ -1201,7 +1235,7 @@ function Dr({ itemSearchDocument: e, queryParams: t, matrixParams: n }) {
1201
1235
  cancel: i
1202
1236
  };
1203
1237
  }
1204
- const Jn = () => {
1238
+ const zn = () => {
1205
1239
  const [e, t] = x({ x: 0, y: 0 });
1206
1240
  return $(() => {
1207
1241
  const n = (r) => t({ x: r.clientX, y: r.clientY });
@@ -1210,7 +1244,7 @@ const Jn = () => {
1210
1244
  };
1211
1245
  }, []), e;
1212
1246
  };
1213
- function Or({
1247
+ function Hr({
1214
1248
  collectionId: e,
1215
1249
  queryParams: t = {},
1216
1250
  refreshOnMount: n = !0
@@ -1220,7 +1254,7 @@ function Or({
1220
1254
  data: o = {},
1221
1255
  isLoading: s,
1222
1256
  isError: a
1223
- } = k(V.getCollection), i = () => r({ collectionId: e, queryParams: t });
1257
+ } = j(k.getCollection), i = () => r({ collectionId: e, queryParams: t });
1224
1258
  return Z(() => {
1225
1259
  n && i();
1226
1260
  }, [e, t]), {
@@ -1230,12 +1264,12 @@ function Or({
1230
1264
  onRefresh: i
1231
1265
  };
1232
1266
  }
1233
- function Xn({
1267
+ function Kn({
1234
1268
  collectionId: e,
1235
1269
  queryParams: t = {},
1236
1270
  refreshOnMount: n = !0
1237
1271
  }) {
1238
- const { request: r, data: o = {} } = k(V.getCollectionItem), s = () => r({ collectionId: e, queryParams: t });
1272
+ const { request: r, data: o = {} } = j(k.getCollectionItem), s = () => r({ collectionId: e, queryParams: t });
1239
1273
  return Z(() => {
1240
1274
  n && s();
1241
1275
  }, [e, t]), {
@@ -1243,11 +1277,11 @@ function Xn({
1243
1277
  onRefresh: s
1244
1278
  };
1245
1279
  }
1246
- const zn = ({ entityId: e, entityType: t }) => {
1280
+ const Zn = ({ entityId: e, entityType: t }) => {
1247
1281
  let n, r, o;
1248
1282
  switch (t) {
1249
1283
  case "collection":
1250
- n = "collectionType", o = "collectionId", r = V.getCollection;
1284
+ n = "collectionType", o = "collectionId", r = k.getCollection;
1251
1285
  break;
1252
1286
  case "library":
1253
1287
  n = "libraryType", o = "libraryId", r = ge.getLibrary;
@@ -1258,7 +1292,7 @@ const zn = ({ entityId: e, entityType: t }) => {
1258
1292
  default:
1259
1293
  throw new Error("unknown entityType");
1260
1294
  }
1261
- const { request: s, data: a, ...i } = k(r), l = P(
1295
+ const { request: s, data: a, ...i } = j(r), l = T(
1262
1296
  (u) => s({ [o]: e, ...u }),
1263
1297
  [e, o, s]
1264
1298
  );
@@ -1269,36 +1303,36 @@ const zn = ({ entityId: e, entityType: t }) => {
1269
1303
  ...i
1270
1304
  };
1271
1305
  };
1272
- function Kn(e) {
1273
- const { data: t, request: n } = k(X.getUser, { data: e }), { userName: r } = t || {}, o = P(() => n({ userName: r }), [n, r]);
1306
+ function eo(e) {
1307
+ const { data: t, request: n } = j(X.getUser, { data: e }), { userName: r } = t || {}, o = T(() => n({ userName: r }), [n, r]);
1274
1308
  $(() => {
1275
1309
  r && o();
1276
1310
  }, [o, r]);
1277
- const s = P(
1278
- ({ userDocument: m }) => X.updateUser({
1311
+ const s = T(
1312
+ ({ userDocument: f }) => X.updateUser({
1279
1313
  userName: r,
1280
- userDocument: m
1281
- }).then(() => n({ userName: m.userName })),
1314
+ userDocument: f
1315
+ }).then(() => n({ userName: f.userName })),
1282
1316
  [n, r]
1283
- ), a = P(
1284
- ({ groups: m = [] }) => X.updateUserGroup({
1317
+ ), a = T(
1318
+ ({ groups: f = [] }) => X.updateUserGroup({
1285
1319
  userName: r,
1286
1320
  groupListDocument: {
1287
- group: m.map((d) => ({ groupName: d }))
1321
+ group: f.map((d) => ({ groupName: d }))
1288
1322
  }
1289
1323
  }).then(o),
1290
1324
  [o, r]
1291
- ), i = P(
1292
- (m) => te.removeGroupUser({
1293
- groupName: m,
1325
+ ), i = T(
1326
+ (f) => te.removeGroupUser({
1327
+ groupName: f,
1294
1328
  userName: r
1295
1329
  }).then(o),
1296
1330
  [o, r]
1297
- ), l = P(
1298
- (m) => X.updateUser({
1331
+ ), l = T(
1332
+ (f) => X.updateUser({
1299
1333
  userName: r,
1300
1334
  userDocument: {
1301
- password: m
1335
+ password: f
1302
1336
  },
1303
1337
  queryParams: {
1304
1338
  passwordType: "raw"
@@ -1312,18 +1346,18 @@ function Kn(e) {
1312
1346
  updateUser: s,
1313
1347
  updateUserGroups: a,
1314
1348
  removeUserFromGroup: i,
1315
- disableUser: (m) => X.disableUser({ userName: r, ...m }).then(o),
1316
- enableUser: (m) => X.enableUser({ userName: r, ...m }).then(o),
1317
- deleteUser: ({ queryParams: m = {} } = {}) => X.disableUser({ userName: r, queryParams: { hard: !0, ...m } }),
1349
+ disableUser: (f) => X.disableUser({ userName: r, ...f }).then(o),
1350
+ enableUser: (f) => X.enableUser({ userName: r, ...f }).then(o),
1351
+ deleteUser: ({ queryParams: f = {} } = {}) => X.disableUser({ userName: r, queryParams: { hard: !0, ...f } }),
1318
1352
  changePassword: l
1319
1353
  };
1320
1354
  }
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,
1355
+ const Lr = "CHANGE_PAGE", Ur = "CHANGE_ROWS", xr = "CHANGE_SORT", Mr = "CHANGE_QUERY", ce = {
1356
+ CHANGE_PAGE: Lr,
1357
+ CHANGE_ROWS: Ur,
1358
+ CHANGE_SORT: xr,
1325
1359
  CHANGE_QUERY: Mr
1326
- }, xr = ({ queryParams: e = {}, rowsPerPage: t = 10, page: n = 0 } = {}) => ({
1360
+ }, Fr = ({ queryParams: e = {}, rowsPerPage: t = 10, page: n = 0 } = {}) => ({
1327
1361
  queryParams: {
1328
1362
  first: n * t + 1,
1329
1363
  number: t,
@@ -1339,7 +1373,7 @@ const Hr = "CHANGE_PAGE", Lr = "CHANGE_ROWS", Ur = "CHANGE_SORT", Mr = "CHANGE_Q
1339
1373
  }
1340
1374
  ]
1341
1375
  }
1342
- }), Fr = (e, t) => {
1376
+ }), qr = (e, t) => {
1343
1377
  const { type: n } = t;
1344
1378
  switch (n) {
1345
1379
  case ce.CHANGE_PAGE: {
@@ -1388,13 +1422,13 @@ const Hr = "CHANGE_PAGE", Lr = "CHANGE_ROWS", Ur = "CHANGE_SORT", Mr = "CHANGE_Q
1388
1422
  return e;
1389
1423
  }
1390
1424
  };
1391
- function Zn(e) {
1392
- const t = xr(e), [n, r] = fe(Fr, t), {
1425
+ function to(e) {
1426
+ const t = Fr(e), [n, r] = fe(qr, t), {
1393
1427
  data: o,
1394
1428
  request: s,
1395
1429
  hasLoaded: a,
1396
1430
  isError: i
1397
- } = k(X.searchUser), l = () => s({
1431
+ } = j(X.searchUser), l = () => s({
1398
1432
  userSearchDocument: n.userSearchDocument,
1399
1433
  queryParams: n.queryParams
1400
1434
  });
@@ -1410,12 +1444,12 @@ function Zn(e) {
1410
1444
  type: ce.CHANGE_PAGE,
1411
1445
  page: d
1412
1446
  }),
1413
- onChangeSort: (d, h, f) => {
1447
+ onChangeSort: (d, h, m) => {
1414
1448
  const C = typeof h == "object" ? h.value : h;
1415
1449
  r({
1416
1450
  type: ce.CHANGE_SORT,
1417
1451
  field: C,
1418
- order: f
1452
+ order: m
1419
1453
  });
1420
1454
  },
1421
1455
  onChangeRowsPerPage: ({ target: { value: d } } = {}) => r({
@@ -1431,8 +1465,8 @@ function Zn(e) {
1431
1465
  }
1432
1466
  };
1433
1467
  }
1434
- const eo = (e) => {
1435
- const { request: t, data: n = {}, isLoading: r } = k(te.listGroup), o = () => t(e);
1468
+ const ro = (e) => {
1469
+ const { request: t, data: n = {}, isLoading: r } = j(te.listGroup), o = () => t(e);
1436
1470
  return $(() => {
1437
1471
  o();
1438
1472
  }, [e]), {
@@ -1440,8 +1474,8 @@ const eo = (e) => {
1440
1474
  groupListType: n,
1441
1475
  isLoading: r
1442
1476
  };
1443
- }, to = (e) => {
1444
- const { request: t, data: n = {}, isLoading: r } = k(X.listUser), o = () => t(e);
1477
+ }, no = (e) => {
1478
+ const { request: t, data: n = {}, isLoading: r } = j(X.listUser), o = () => t(e);
1445
1479
  return $(() => {
1446
1480
  o();
1447
1481
  }, [e]), {
@@ -1449,13 +1483,13 @@ const eo = (e) => {
1449
1483
  userListType: n,
1450
1484
  isLoading: r
1451
1485
  };
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 } = {}) => ({
1486
+ }, $r = "CHANGE_PAGE", jr = "CHANGE_ROWS", Wr = "CHANGE_SORT", Vr = "CHANGE_QUERY", kr = "HIDE_ROLES", ae = {
1487
+ CHANGE_PAGE: $r,
1488
+ CHANGE_ROWS: jr,
1489
+ CHANGE_SORT: Wr,
1490
+ CHANGE_QUERY: Vr,
1491
+ HIDE_ROLES: kr
1492
+ }, Yr = ({ queryParams: e = {}, rowsPerPage: t = 10, page: n = 0 } = {}) => ({
1459
1493
  queryParams: {
1460
1494
  first: n * t + 1,
1461
1495
  number: t,
@@ -1464,7 +1498,7 @@ const eo = (e) => {
1464
1498
  rowsPerPage: t,
1465
1499
  page: n,
1466
1500
  groupSearchDocument: {}
1467
- }), Yr = (e, t) => {
1501
+ }), Br = (e, t) => {
1468
1502
  const { type: n } = t;
1469
1503
  switch (n) {
1470
1504
  case ae.CHANGE_PAGE: {
@@ -1525,13 +1559,13 @@ const eo = (e) => {
1525
1559
  return e;
1526
1560
  }
1527
1561
  };
1528
- function ro(e) {
1529
- const t = kr(e), [n, r] = fe(Yr, t), {
1562
+ function oo(e) {
1563
+ const t = Yr(e), [n, r] = fe(Br, t), {
1530
1564
  data: o,
1531
1565
  request: s,
1532
1566
  hasLoaded: a,
1533
1567
  isError: i
1534
- } = k(te.searchGroup), l = () => s({
1568
+ } = j(te.searchGroup), l = () => s({
1535
1569
  groupSearchDocument: n.groupSearchDocument,
1536
1570
  queryParams: n.queryParams
1537
1571
  });
@@ -1547,8 +1581,8 @@ function ro(e) {
1547
1581
  type: ae.CHANGE_PAGE,
1548
1582
  page: h
1549
1583
  }),
1550
- onChangeSort: (h, f, C) => {
1551
- const v = typeof f == "object" ? f.value : f;
1584
+ onChangeSort: (h, m, C) => {
1585
+ const v = typeof m == "object" ? m.value : m;
1552
1586
  r({
1553
1587
  type: ae.CHANGE_SORT,
1554
1588
  field: v,
@@ -1559,11 +1593,11 @@ function ro(e) {
1559
1593
  type: ae.CHANGE_ROWS,
1560
1594
  rowsPerPage: h
1561
1595
  }),
1562
- onChangeQuery: (h, f) => {
1596
+ onChangeQuery: (h, m) => {
1563
1597
  r({
1564
1598
  type: ae.CHANGE_QUERY,
1565
1599
  field: h,
1566
- query: f
1600
+ query: m
1567
1601
  });
1568
1602
  },
1569
1603
  onHideRoles: ({ hideRoles: h }) => r({
@@ -1572,18 +1606,18 @@ function ro(e) {
1572
1606
  })
1573
1607
  };
1574
1608
  }
1575
- function no(e) {
1576
- const { data: t, request: n } = k(te.getGroup, { data: e }), { groupName: r } = t || {}, o = P(() => n({ groupName: r }), [n, r]);
1609
+ function so(e) {
1610
+ const { data: t, request: n } = j(te.getGroup, { data: e }), { groupName: r } = t || {}, o = T(() => n({ groupName: r }), [n, r]);
1577
1611
  $(() => {
1578
1612
  r && o();
1579
1613
  }, [o, r]);
1580
- const s = P(
1614
+ const s = T(
1581
1615
  ({ groupDocument: d }) => te.updateGroup({
1582
1616
  groupName: r,
1583
1617
  groupDocument: d
1584
1618
  }).then(o),
1585
1619
  [o, r]
1586
- ), a = P(
1620
+ ), a = T(
1587
1621
  ({ groups: d }) => te.updateGroup({
1588
1622
  groupName: r,
1589
1623
  groupDocument: {
@@ -1593,7 +1627,7 @@ function no(e) {
1593
1627
  }
1594
1628
  }).then(o),
1595
1629
  [o, r]
1596
- ), i = P(
1630
+ ), i = T(
1597
1631
  ({ groups: d }) => te.updateGroup({
1598
1632
  groupName: r,
1599
1633
  groupDocument: {
@@ -1603,7 +1637,7 @@ function no(e) {
1603
1637
  }
1604
1638
  }).then(o),
1605
1639
  [o, r]
1606
- ), l = P(
1640
+ ), l = T(
1607
1641
  ({ users: d }) => te.updateGroup({
1608
1642
  groupName: r,
1609
1643
  groupDocument: {
@@ -1613,30 +1647,30 @@ function no(e) {
1613
1647
  }
1614
1648
  }).then(o),
1615
1649
  [o, r]
1616
- ), u = P(
1650
+ ), u = T(
1617
1651
  (d) => te.removeGroupUser({
1618
1652
  groupName: r,
1619
1653
  userName: d
1620
1654
  }).then(o),
1621
1655
  [o, r]
1622
- ), c = P(
1656
+ ), c = T(
1623
1657
  (d) => te.removeGroupChildren({
1624
1658
  groupName: r,
1625
1659
  childGroupName: d
1626
1660
  }).then(o),
1627
1661
  [o, r]
1628
- ), p = P(
1662
+ ), p = T(
1629
1663
  (d) => te.removeGroupChildren({
1630
1664
  groupName: d,
1631
1665
  childGroupName: r
1632
1666
  }).then(o),
1633
1667
  [o, r]
1634
- ), m = P(() => te.removeGroup({ groupName: r }), [r]);
1668
+ ), f = T(() => te.removeGroup({ groupName: r }), [r]);
1635
1669
  return {
1636
1670
  groupType: t,
1637
1671
  getGroup: o,
1638
1672
  updateGroup: s,
1639
- removeGroup: m,
1673
+ removeGroup: f,
1640
1674
  addChildGroups: a,
1641
1675
  addParentGroups: i,
1642
1676
  addUsersToGroup: l,
@@ -1645,8 +1679,8 @@ function no(e) {
1645
1679
  removeFromParentGroup: p
1646
1680
  };
1647
1681
  }
1648
- function Br({ itemId: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
1649
- const { request: r, data: o = {}, isLoading: s, isError: a } = k(ue.getItem), i = () => r({ itemId: e, queryParams: t });
1682
+ function Qr({ itemId: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
1683
+ const { request: r, data: o = {}, isLoading: s, isError: a } = j(ue.getItem), i = () => r({ itemId: e, queryParams: t });
1650
1684
  return Z(() => {
1651
1685
  n && i();
1652
1686
  }, [e, t]), {
@@ -1656,36 +1690,36 @@ function Br({ itemId: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
1656
1690
  onRefresh: i
1657
1691
  };
1658
1692
  }
1659
- const oo = ({ collectionId: e, defaultEnabled: t = !0 }) => {
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(
1693
+ const ao = ({ collectionId: e, defaultEnabled: t = !0 }) => {
1694
+ const [n, r] = x(), [o, s] = x(t), a = (p) => s((f) => p !== void 0 ? p : !f), i = z(), l = z(), u = z(), c = T(
1661
1695
  ({ itemId: p }) => {
1662
1696
  if (o === !1)
1663
1697
  return;
1664
- const m = {
1698
+ const f = {
1665
1699
  field: [
1666
1700
  {
1667
1701
  name: "mediaType",
1668
1702
  value: [{ value: "video" }, { value: "audio" }]
1669
1703
  }
1670
1704
  ]
1671
- }, d = ({ first: h, number: f } = {}) => {
1705
+ }, d = ({ first: h, number: m } = {}) => {
1672
1706
  const { current: C } = i, { current: v } = l;
1673
1707
  if (!Array.isArray(C)) {
1674
1708
  Promise.all([
1675
- V.getCollection({
1709
+ k.getCollection({
1676
1710
  collectionId: e,
1677
1711
  queryParams: { children: "item" }
1678
1712
  }),
1679
- V.searchCollectionItem({
1713
+ k.searchCollectionItem({
1680
1714
  collectionId: e,
1681
- searchDocument: m,
1682
- queryParams: { first: h, number: f }
1715
+ searchDocument: f,
1716
+ queryParams: { first: h, number: m }
1683
1717
  })
1684
1718
  ]).then(([{ data: A }, { data: N }]) => {
1685
1719
  const { hits: _, item: b = [] } = N;
1686
- i.current = b.map(({ id: W }) => W), u.current = _;
1687
- const { content: j } = A;
1688
- l.current = j, d({ first: 1, number: 100 });
1720
+ i.current = b.map(({ id: V }) => V), u.current = _;
1721
+ const { content: W } = A;
1722
+ l.current = W, d({ first: 1, number: 100 });
1689
1723
  });
1690
1724
  return;
1691
1725
  }
@@ -1695,18 +1729,18 @@ const oo = ({ collectionId: e, defaultEnabled: t = !0 }) => {
1695
1729
  return;
1696
1730
  }
1697
1731
  if (y === -1 && g > C.length) {
1698
- V.searchCollectionItem({
1732
+ k.searchCollectionItem({
1699
1733
  collectionId: e,
1700
- searchDocument: m,
1701
- queryParams: { first: h + f, number: f }
1734
+ searchDocument: f,
1735
+ queryParams: { first: h + m, number: m }
1702
1736
  }).then(({ data: A }) => {
1703
1737
  const { item: N = [] } = A;
1704
- i.current.push(...N.map(({ id: _ }) => _)), d({ first: h + f, number: f });
1738
+ i.current.push(...N.map(({ id: _ }) => _)), d({ first: h + m, number: m });
1705
1739
  });
1706
1740
  return;
1707
1741
  }
1708
- const R = v.slice(y + 1).find(({ id: A }) => C.includes(A));
1709
- r(R);
1742
+ const P = v.slice(y + 1).find(({ id: A }) => C.includes(A));
1743
+ r(P);
1710
1744
  };
1711
1745
  d();
1712
1746
  },
@@ -1719,7 +1753,7 @@ const oo = ({ collectionId: e, defaultEnabled: t = !0 }) => {
1719
1753
  nextPlaying: n,
1720
1754
  onNext: c
1721
1755
  };
1722
- }, Qr = (e) => {
1756
+ }, Jr = (e) => {
1723
1757
  const t = [];
1724
1758
  for (let n = 0; n < e.length; n += 1) {
1725
1759
  const r = e[n];
@@ -1732,9 +1766,9 @@ const oo = ({ collectionId: e, defaultEnabled: t = !0 }) => {
1732
1766
  }
1733
1767
  return t;
1734
1768
  };
1735
- function so(e = [], t = 0, n = void 0, r = Qr) {
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(
1737
- rt((A) => {
1769
+ function io(e = [], t = 0, n = void 0, r = Jr) {
1770
+ const [o, s] = x(0), [a, i] = x(0), [l, u] = x(!1), [c, p] = x([]), [f, d] = x(), [h, m] = x(0), C = z(
1771
+ nt((A) => {
1738
1772
  i(A);
1739
1773
  }, 10)
1740
1774
  ).current, v = (A) => {
@@ -1743,28 +1777,28 @@ function so(e = [], t = 0, n = void 0, r = Qr) {
1743
1777
  } catch {
1744
1778
  return 0;
1745
1779
  }
1746
- }, g = P(
1780
+ }, g = T(
1747
1781
  (A) => {
1748
1782
  const N = A.clientX - v(A.currentTarget) - t, _ = A.currentTarget.offsetWidth;
1749
1783
  return N < 0 ? 0 : N > _ ? _ : N;
1750
1784
  },
1751
1785
  [t]
1752
1786
  ), y = (A, N) => {
1753
- let _ = N[0], b = Math.abs(A - _), j = 0;
1754
- for (let W = 0; W < N.length; W += 1) {
1755
- const Q = Math.abs(A - N[W]), re = A - N[W] > 0;
1756
- Q < b && re && (b = Q, _ = N[W], j = W);
1787
+ let _ = N[0], b = Math.abs(A - _), W = 0;
1788
+ for (let V = 0; V < N.length; V += 1) {
1789
+ const Q = Math.abs(A - N[V]), re = A - N[V] > 0;
1790
+ Q < b && re && (b = Q, _ = N[V], W = V);
1757
1791
  }
1758
- return j;
1792
+ return W;
1759
1793
  }, S = (A) => {
1760
1794
  if (n) {
1761
1795
  const N = g(A);
1762
- s(N - 1), h !== A.currentTarget.offsetWidth && f(A.currentTarget.offsetWidth);
1796
+ s(N - 1), h !== A.currentTarget.offsetWidth && m(A.currentTarget.offsetWidth);
1763
1797
  const _ = N / (A.currentTarget.offsetWidth / +n);
1764
1798
  d(bt(_));
1765
1799
  const b = y(
1766
1800
  _,
1767
- c.map((j) => j.toSeconds().toFixed(0))
1801
+ c.map((W) => W.toSeconds().toFixed(0))
1768
1802
  );
1769
1803
  b !== a && C(b);
1770
1804
  }
@@ -1774,7 +1808,7 @@ function so(e = [], t = 0, n = void 0, r = Qr) {
1774
1808
  p(A);
1775
1809
  }, [e]), {
1776
1810
  thumbnailIndex: a,
1777
- thumbnailTimeCode: m,
1811
+ thumbnailTimeCode: f,
1778
1812
  thumbnailWidth: h,
1779
1813
  showScrub: l,
1780
1814
  scrubPosition: o,
@@ -1784,7 +1818,7 @@ function so(e = [], t = 0, n = void 0, r = Qr) {
1784
1818
  onMouseMove: S
1785
1819
  };
1786
1820
  }
1787
- function ao({
1821
+ function co({
1788
1822
  searchDoc: e,
1789
1823
  queryParams: t,
1790
1824
  debounceTime: n,
@@ -1792,7 +1826,7 @@ function ao({
1792
1826
  triggerLength: o = 1,
1793
1827
  apiCall: s = ue.searchItem
1794
1828
  }) {
1795
- const [a, i] = x(""), l = z(rt(i, n)).current, { data: { autocomplete: u = [] } = {}, request: c } = k(s), { suggestion: p = [] } = u[0] || {};
1829
+ const [a, i] = x(""), l = z(nt(i, n)).current, { data: { autocomplete: u = [] } = {}, request: c } = j(s), { suggestion: p = [] } = u[0] || {};
1796
1830
  return Z(() => {
1797
1831
  e && a && a.length >= o && c({
1798
1832
  body: {
@@ -1812,12 +1846,12 @@ function ao({
1812
1846
  handleAutocompleteChange: l
1813
1847
  };
1814
1848
  }
1815
- function io() {
1849
+ function uo() {
1816
1850
  const {
1817
1851
  request: e,
1818
1852
  data: { value: t = [] } = {},
1819
1853
  isLoading: n
1820
- } = k(ze.getMetadataFieldAllowedValues);
1854
+ } = j(Ke.getMetadataFieldAllowedValues);
1821
1855
  return {
1822
1856
  getMetadataDataset: (o, s, a) => {
1823
1857
  o && e({
@@ -1831,8 +1865,8 @@ function io() {
1831
1865
  isLoading: n
1832
1866
  };
1833
1867
  }
1834
- const Jr = "TRANSIENT", Fe = (e) => e.find((t) => t.name === "title").value[0].value;
1835
- function co({
1868
+ const Xr = "TRANSIENT", $e = (e) => e.find((t) => t.name === "title").value[0].value;
1869
+ function lo({
1836
1870
  childFolders: e = [],
1837
1871
  queryParams: t = { content: ["metadata"] },
1838
1872
  markerProps: n = {
@@ -1841,44 +1875,44 @@ function co({
1841
1875
  },
1842
1876
  expand: r
1843
1877
  }) {
1844
- const [o, s] = x(e), [a, i] = x([]), [l, u] = x(), c = P(() => {
1878
+ const [o, s] = x(e), [a, i] = x([]), [l, u] = x(), c = T(() => {
1845
1879
  Promise.all(
1846
- o.map(async (f) => {
1880
+ o.map(async (m) => {
1847
1881
  const {
1848
1882
  data: { content: C, metadata: v = {} }
1849
- } = await V.getCollection({
1850
- collectionId: f,
1883
+ } = await k.getCollection({
1884
+ collectionId: m,
1851
1885
  queryParams: t
1852
1886
  }), { field: g } = v.timespan[0];
1853
1887
  return C && C[0].type === "library" ? {
1854
- id: f,
1888
+ id: m,
1855
1889
  libraryId: C[0].id,
1856
- title: Fe(g),
1890
+ title: $e(g),
1857
1891
  type: "query",
1858
1892
  metadata: v
1859
1893
  } : {
1860
- id: f,
1861
- title: Fe(g),
1894
+ id: m,
1895
+ title: $e(g),
1862
1896
  subFolders: C && C.map((y) => y.id),
1863
1897
  type: "folder",
1864
1898
  metadata: v
1865
1899
  };
1866
1900
  })
1867
- ).then((f) => {
1868
- i((C) => [...f, ...C]);
1869
- }).catch((f) => {
1870
- u(f);
1901
+ ).then((m) => {
1902
+ i((C) => [...m, ...C]);
1903
+ }).catch((m) => {
1904
+ u(m);
1871
1905
  });
1872
- }, [o, t]), p = (f, C, v, g, y) => {
1873
- V.createCollection({
1906
+ }, [o, t]), p = (m, C, v, g, y) => {
1907
+ k.createCollection({
1874
1908
  collectionDocument: {
1875
1909
  metadata: de({
1876
1910
  [C]: v,
1877
1911
  title: g
1878
1912
  })
1879
1913
  }
1880
- }).then(({ data: { id: S } }) => f ? V.updateCollection({
1881
- collectionId: f,
1914
+ }).then(({ data: { id: S } }) => m ? k.updateCollection({
1915
+ collectionId: m,
1882
1916
  collectionDocument: {
1883
1917
  content: [
1884
1918
  {
@@ -1888,25 +1922,25 @@ function co({
1888
1922
  }
1889
1923
  ]
1890
1924
  }
1891
- }).then(({ data: { content: R } }) => {
1892
- R && (s(
1893
- R.filter((A) => A.id === S).map((A) => A.id)
1925
+ }).then(({ data: { content: P } }) => {
1926
+ P && (s(
1927
+ P.filter((A) => A.id === S).map((A) => A.id)
1894
1928
  ), y && y());
1895
- }).catch((R) => {
1896
- u(R);
1929
+ }).catch((P) => {
1930
+ u(P);
1897
1931
  }) : null).catch((S) => {
1898
1932
  u(S);
1899
1933
  });
1900
- }, m = (f, C, v, g) => {
1934
+ }, f = (m, C, v, g) => {
1901
1935
  try {
1902
1936
  ue.searchItem({
1903
1937
  queryParams: {
1904
1938
  result: "library",
1905
- updateMode: Jr
1939
+ updateMode: Xr
1906
1940
  },
1907
1941
  itemSearchDocument: v
1908
1942
  }).then(
1909
- ({ data: { library: y } }) => V.createCollection({
1943
+ ({ data: { library: y } }) => k.createCollection({
1910
1944
  collectionDocument: {
1911
1945
  metadata: de({
1912
1946
  [n.markerField]: n.markerValue,
@@ -1921,8 +1955,8 @@ function co({
1921
1955
  }
1922
1956
  })
1923
1957
  ).then(
1924
- ({ data: { id: y } }) => V.updateCollection({
1925
- collectionId: f,
1958
+ ({ data: { id: y } }) => k.updateCollection({
1959
+ collectionId: m,
1926
1960
  collectionDocument: {
1927
1961
  content: [
1928
1962
  {
@@ -1934,7 +1968,7 @@ function co({
1934
1968
  }
1935
1969
  }).then(({ data: { content: S } }) => {
1936
1970
  S && (s(
1937
- S.filter((R) => R.id === y).map((R) => R.id)
1971
+ S.filter((P) => P.id === y).map((P) => P.id)
1938
1972
  ), g && g());
1939
1973
  }).catch((S) => {
1940
1974
  u(S);
@@ -1945,18 +1979,18 @@ function co({
1945
1979
  } catch (y) {
1946
1980
  u(y);
1947
1981
  }
1948
- }, d = (f) => V.removeCollection({ collectionId: f }).catch((C) => {
1982
+ }, d = (m) => k.removeCollection({ collectionId: m }).catch((C) => {
1949
1983
  u(C);
1950
- }), h = (f) => {
1951
- i((C) => C.filter((v) => v.id !== f));
1984
+ }), h = (m) => {
1985
+ i((C) => C.filter((v) => v.id !== m));
1952
1986
  };
1953
1987
  return Z(() => {
1954
1988
  o.length > 0 && r && c();
1955
1989
  }, [o, r]), $(() => {
1956
- !r && typeof r == "boolean" && (s(() => a.map((f) => f.id)), i([]));
1990
+ !r && typeof r == "boolean" && (s(() => a.map((m) => m.id)), i([]));
1957
1991
  }, [r]), {
1958
1992
  createFolder: p,
1959
- saveSearch: m,
1993
+ saveSearch: f,
1960
1994
  getSubFolders: c,
1961
1995
  deleteFolder: d,
1962
1996
  removeItem: h,
@@ -1966,12 +2000,12 @@ function co({
1966
2000
  errors: l
1967
2001
  };
1968
2002
  }
1969
- const uo = ({ collectionId: e, onError: t }) => {
2003
+ const fo = ({ collectionId: e, onError: t }) => {
1970
2004
  const [n, r] = x([]), s = async () => {
1971
2005
  try {
1972
2006
  if (!e)
1973
2007
  throw Error("Missing collectionId");
1974
- const { data: u = {} } = await V.getCollectionMetadata({
2008
+ const { data: u = {} } = await k.getCollectionMetadata({
1975
2009
  collectionId: e,
1976
2010
  queryParams: {
1977
2011
  content: "metadata",
@@ -1979,7 +2013,7 @@ const uo = ({ collectionId: e, onError: t }) => {
1979
2013
  }
1980
2014
  }).catch((p) => {
1981
2015
  t && t(p);
1982
- }), { representativeItems: c = [] } = tt(u, {
2016
+ }), { representativeItems: c = [] } = rt(u, {
1983
2017
  flat: !0,
1984
2018
  includeValueAttributes: !0
1985
2019
  });
@@ -1991,7 +2025,7 @@ const uo = ({ collectionId: e, onError: t }) => {
1991
2025
  try {
1992
2026
  const c = de({
1993
2027
  representativeItems: Array.isArray(u) ? u : [u]
1994
- }), p = await V.updateCollectionMetadata({
2028
+ }), p = await k.updateCollectionMetadata({
1995
2029
  collectionId: e,
1996
2030
  metadataDocument: c
1997
2031
  });
@@ -2020,13 +2054,13 @@ const uo = ({ collectionId: e, onError: t }) => {
2020
2054
  onRemove: l
2021
2055
  };
2022
2056
  };
2023
- function Xr() {
2057
+ function zr() {
2024
2058
  return Nt.listStorage().then((t) => ({
2025
2059
  id: t.data.storage[0].id,
2026
2060
  uri: t.data.storage[0].method[0].uri
2027
2061
  }));
2028
2062
  }
2029
- function zr(e) {
2063
+ function Kr(e) {
2030
2064
  return ge.createLibrary({
2031
2065
  itemListDocument: {
2032
2066
  item: [
@@ -2037,7 +2071,7 @@ function zr(e) {
2037
2071
  }
2038
2072
  });
2039
2073
  }
2040
- function Kr(e, t, n) {
2074
+ function Zr(e, t, n) {
2041
2075
  const { fileName: r = "output", outputFormat: o = "csv" } = n, { uri: s } = t, { data: { uri: [a] = [] } = {} } = e, l = encodeURIComponent((() => {
2042
2076
  if (s.includes("s3")) {
2043
2077
  const [u, c] = s.split("?region");
@@ -2050,11 +2084,11 @@ function Kr(e, t, n) {
2050
2084
  queryParams: { destinationUri: l, ...n }
2051
2085
  });
2052
2086
  }
2053
- const Zr = ["FINISHED", "FINISHED_WARNING"], en = ["FINISHED", "FINISHED_WARNING", "FAILED_TOTAL", "ABORTED"];
2087
+ const en = ["FINISHED", "FINISHED_WARNING"], tn = ["FINISHED", "FINISHED_WARNING", "FAILED_TOTAL", "ABORTED"];
2054
2088
  function ut(e, t, n, r) {
2055
2089
  const { data: { jobId: o } = {} } = e, { id: s } = t, { fileName: a = "output", outputFormat: i = "csv" } = n, l = `${a}.${i}`;
2056
- Ze.getJob({ jobId: o }).then(({ data: { status: u } = {} } = {}) => {
2057
- if (Zr.includes(u))
2090
+ et.getJob({ jobId: o }).then(({ data: { status: u } = {} } = {}) => {
2091
+ if (en.includes(u))
2058
2092
  try {
2059
2093
  It.listFileStorage({
2060
2094
  storageId: s,
@@ -2072,39 +2106,39 @@ function ut(e, t, n, r) {
2072
2106
  ${c}`), r({ message: "Download failed" });
2073
2107
  }
2074
2108
  else
2075
- en.includes(u) ? r({ message: "Download failed" }) : setTimeout(() => {
2109
+ tn.includes(u) ? r({ message: "Download failed" }) : setTimeout(() => {
2076
2110
  ut(e, t, n, r);
2077
2111
  }, 1e3);
2078
2112
  });
2079
2113
  }
2080
- const lo = ({
2114
+ const mo = ({
2081
2115
  itemListType: e,
2082
2116
  queryParams: t,
2083
2117
  onSuccess: n,
2084
2118
  onError: r = ({ message: l, error: u }) => console.error(`${l}
2085
2119
  ${u}`),
2086
2120
  onGetFile: o = ut,
2087
- onCreateList: s = zr,
2088
- onList: a = Kr,
2089
- onGetStorage: i = Xr
2121
+ onCreateList: s = Kr,
2122
+ onList: a = Zr,
2123
+ onGetStorage: i = zr
2090
2124
  }) => ({ onDownload: () => i().then(
2091
2125
  (u) => Promise.all([
2092
2126
  s(e).then((c) => a(c, u, t)).then(n()).then((c) => o(c, u, t, r))
2093
2127
  ])
2094
2128
  ) });
2095
- function fo(e, t, n, r, o, s, a, i) {
2096
- const l = n[0].fields.map((d) => d), [u, c] = x(r), p = (d, h, f, C) => {
2097
- const { value: v } = d.target, y = r.map((S) => S).map((S, R) => f === R ? { ...h, [C]: v } : S);
2129
+ function po(e, t, n, r, o, s, a, i) {
2130
+ const l = n[0].fields.map((d) => d), [u, c] = x(r), p = (d, h, m, C) => {
2131
+ const { value: v } = d.target, y = r.map((S) => S).map((S, P) => m === P ? { ...h, [C]: v } : S);
2098
2132
  o(y), c(y);
2099
- }, m = async (d, h) => {
2100
- const f = de(d), { timespan: C } = f, v = [];
2101
- C.forEach((R, A) => {
2133
+ }, f = async (d, h) => {
2134
+ const m = de(d), { timespan: C } = m, v = [];
2135
+ C.forEach((P, A) => {
2102
2136
  const N = {
2103
2137
  field: [],
2104
2138
  name: "V3_sport_Team",
2105
2139
  mode: "add"
2106
2140
  };
2107
- R.field.forEach((_) => {
2141
+ P.field.forEach((_) => {
2108
2142
  N.field.push(_);
2109
2143
  }), h.includes(A) && v.push(N);
2110
2144
  });
@@ -2118,19 +2152,19 @@ function fo(e, t, n, r, o, s, a, i) {
2118
2152
  }
2119
2153
  ]
2120
2154
  }, y = [...new Set(h)], S = [];
2121
- y.forEach((R) => {
2155
+ y.forEach((P) => {
2122
2156
  const A = t.itemType.metadata.timespan[0].group.find(
2123
- (N, _) => R === _
2157
+ (N, _) => P === _
2124
2158
  );
2125
2159
  S.push(A.uuid);
2126
2160
  });
2127
2161
  try {
2128
- await S.forEach((R) => setTimeout(Ne.removeMetadata({ metadataUuid: R }), 500)), await ue.updateItemMetadata({
2162
+ await S.forEach((P) => setTimeout(Ne.removeMetadata({ metadataUuid: P }), 500)), await ue.updateItemMetadata({
2129
2163
  itemId: e,
2130
2164
  metadataDocument: g
2131
2165
  }), await s(), o(u), a();
2132
- } catch (R) {
2133
- i(R);
2166
+ } catch (P) {
2167
+ i(P);
2134
2168
  }
2135
2169
  };
2136
2170
  return Z(() => {
@@ -2138,10 +2172,10 @@ function fo(e, t, n, r, o, s, a, i) {
2138
2172
  }, [t]), {
2139
2173
  tableColumns: l,
2140
2174
  onChange: p,
2141
- onSubmit: m
2175
+ onSubmit: f
2142
2176
  };
2143
2177
  }
2144
- function tn({
2178
+ function rn({
2145
2179
  entity: e,
2146
2180
  entityId: t,
2147
2181
  queryParams: n = {},
@@ -2152,7 +2186,7 @@ function tn({
2152
2186
  data: s = {},
2153
2187
  isLoading: a,
2154
2188
  isError: i
2155
- } = k(Ne.getEntityMetadata), l = () => o({ entity: e, entityId: t, queryParams: n });
2189
+ } = j(Ne.getEntityMetadata), l = () => o({ entity: e, entityId: t, queryParams: n });
2156
2190
  return Z(() => {
2157
2191
  r && l();
2158
2192
  }, [e, t, n]), {
@@ -2162,13 +2196,13 @@ function tn({
2162
2196
  onRefresh: l
2163
2197
  };
2164
2198
  }
2165
- function rn({ groupName: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
2199
+ function nn({ groupName: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
2166
2200
  const {
2167
2201
  request: r,
2168
2202
  data: o = {},
2169
2203
  isLoading: s,
2170
2204
  isError: a
2171
- } = k(Ke.getFieldGroup), i = () => r({ groupName: e, queryParams: t });
2205
+ } = j(Ze.getFieldGroup), i = () => r({ groupName: e, queryParams: t });
2172
2206
  return Z(() => {
2173
2207
  n && i();
2174
2208
  }, [e, t]), {
@@ -2178,7 +2212,7 @@ function rn({ groupName: e, queryParams: t = {}, refreshOnMount: n = !0 }) {
2178
2212
  onRefresh: i
2179
2213
  };
2180
2214
  }
2181
- function mo({
2215
+ function ho({
2182
2216
  itemType: e,
2183
2217
  collectionType: t,
2184
2218
  metadataType: n,
@@ -2190,20 +2224,20 @@ function mo({
2190
2224
  }) {
2191
2225
  let l = n;
2192
2226
  if (e || t) {
2193
- const m = e || t || {};
2194
- l = m == null ? void 0 : m.metadata;
2227
+ const f = e || t || {};
2228
+ l = f == null ? void 0 : f.metadata;
2195
2229
  }
2196
2230
  const u = he(
2197
- () => tt(l, { joinValue: r, flat: o, groupAsList: s }),
2231
+ () => rt(l, { joinValue: r, flat: o, groupAsList: s }),
2198
2232
  [o, s, r, l]
2199
2233
  ), c = {
2200
2234
  ...i,
2201
2235
  ...u,
2202
2236
  itemType: e
2203
- }, p = (m) => se(m, c);
2237
+ }, p = (f) => se(f, c);
2204
2238
  return oe.map(a, p);
2205
2239
  }
2206
- function po({
2240
+ function Eo({
2207
2241
  itemSearchDocument: e,
2208
2242
  queryParams: t,
2209
2243
  matrixParams: n,
@@ -2216,7 +2250,7 @@ function po({
2216
2250
  data: i = {},
2217
2251
  isLoading: l,
2218
2252
  isError: u
2219
- } = k(V.searchCollection, o, r), c = () => a({ itemSearchDocument: e, queryParams: t, matrixParams: n });
2253
+ } = j(k.searchCollection, o, r), c = () => a({ itemSearchDocument: e, queryParams: t, matrixParams: n });
2220
2254
  Z(() => {
2221
2255
  c();
2222
2256
  }, [e, t, n]);
@@ -2228,11 +2262,11 @@ function po({
2228
2262
  onRefresh: c,
2229
2263
  isLoading: l,
2230
2264
  isError: u
2231
- }, m = (d) => se(d, p);
2232
- return oe.map(s, m);
2265
+ }, f = (d) => se(d, p);
2266
+ return oe.map(s, f);
2233
2267
  }
2234
- function ho({ itemSearchDocument: e, queryParams: t, matrixParams: n, children: r }) {
2235
- const { itemListType: o, onRefresh: s, isLoading: a, isError: i } = Dr({
2268
+ function go({ itemSearchDocument: e, queryParams: t, matrixParams: n, children: r }) {
2269
+ const { itemListType: o, onRefresh: s, isLoading: a, isError: i } = Or({
2236
2270
  itemSearchDocument: e,
2237
2271
  queryParams: t,
2238
2272
  matrixParams: n
@@ -2247,7 +2281,7 @@ function ho({ itemSearchDocument: e, queryParams: t, matrixParams: n, children:
2247
2281
  }, u = (c) => se(c, l);
2248
2282
  return oe.map(r, u);
2249
2283
  }
2250
- function Eo({
2284
+ function yo({
2251
2285
  itemSearchDocument: e,
2252
2286
  queryParams: t,
2253
2287
  matrixParams: n,
@@ -2258,7 +2292,7 @@ function Eo({
2258
2292
  data: s = {},
2259
2293
  isLoading: a,
2260
2294
  isError: i
2261
- } = k(Xe.searchItemCollection), l = () => o({ itemSearchDocument: e, queryParams: t, matrixParams: n });
2295
+ } = j(Ue.searchItemCollection), l = () => o({ itemSearchDocument: e, queryParams: t, matrixParams: n });
2262
2296
  Z(() => {
2263
2297
  l();
2264
2298
  }, [e, t, n]);
@@ -2273,8 +2307,8 @@ function Eo({
2273
2307
  }, c = (p) => se(p, u);
2274
2308
  return oe.map(r, c);
2275
2309
  }
2276
- function go({ itemId: e, queryParams: t, refreshOnMount: n, children: r }) {
2277
- const { itemType: o, onRefresh: s, isLoading: a, isError: i } = Br({
2310
+ function Ao({ itemId: e, queryParams: t, refreshOnMount: n, children: r }) {
2311
+ const { itemType: o, onRefresh: s, isLoading: a, isError: i } = Qr({
2278
2312
  itemId: e,
2279
2313
  queryParams: t,
2280
2314
  refreshOnMount: n
@@ -2288,13 +2322,13 @@ function go({ itemId: e, queryParams: t, refreshOnMount: n, children: r }) {
2288
2322
  }, u = (c) => se(c, l);
2289
2323
  return oe.map(r, u);
2290
2324
  }
2291
- function yo({
2325
+ function Co({
2292
2326
  collectionId: e,
2293
2327
  queryParams: t,
2294
2328
  refreshOnMount: n,
2295
2329
  children: r
2296
2330
  }) {
2297
- const { collectionType: o, onRefresh: s, isLoading: a, isError: i } = Or({
2331
+ const { collectionType: o, onRefresh: s, isLoading: a, isError: i } = Hr({
2298
2332
  collectionId: e,
2299
2333
  queryParams: t,
2300
2334
  refreshOnMount: n
@@ -2308,8 +2342,8 @@ function yo({
2308
2342
  }, u = (c) => se(c, l);
2309
2343
  return oe.map(r, u);
2310
2344
  }
2311
- function Ao({ matrixParams: e, queryParams: t, children: n }) {
2312
- const { request: r, data: o = {}, isLoading: s, isError: a } = k(Ze.listJob), i = () => r({ matrixParams: e, queryParams: t });
2345
+ function So({ matrixParams: e, queryParams: t, children: n }) {
2346
+ const { request: r, data: o = {}, isLoading: s, isError: a } = j(et.listJob), i = () => r({ matrixParams: e, queryParams: t });
2313
2347
  Z(() => {
2314
2348
  i();
2315
2349
  }, [e, t]);
@@ -2323,8 +2357,8 @@ function Ao({ matrixParams: e, queryParams: t, children: n }) {
2323
2357
  }, u = (c) => se(c, l);
2324
2358
  return oe.map(n, u);
2325
2359
  }
2326
- function Co({ entityId: e, entityType: t, queryParams: n, children: r }) {
2327
- const { request: o, data: s = {}, isLoading: a } = k(Pe.listEntityAccess), i = () => o({ entityId: e, entityType: t, queryParams: n });
2360
+ function vo({ entityId: e, entityType: t, queryParams: n, children: r }) {
2361
+ const { request: o, data: s = {}, isLoading: a } = j(Pe.listEntityAccess), i = () => o({ entityId: e, entityType: t, queryParams: n });
2328
2362
  $(() => {
2329
2363
  i();
2330
2364
  }, [e, t, n]);
@@ -2338,7 +2372,7 @@ function Co({ entityId: e, entityType: t, queryParams: n, children: r }) {
2338
2372
  }, u = (c) => se(c, l);
2339
2373
  return oe.map(r, u);
2340
2374
  }
2341
- class lt extends Je {
2375
+ class lt extends ze {
2342
2376
  constructor(t) {
2343
2377
  super(t);
2344
2378
  const { serverUrl: n, token: r, username: o, password: s, runAs: a } = t;
@@ -2353,7 +2387,7 @@ class lt extends Je {
2353
2387
  return oe.map(t, s);
2354
2388
  }
2355
2389
  }
2356
- const ye = "VIDISPINE-TOKEN", Ae = "VIDISPINE-USERNAME", Ce = "VIDISPINE-SERVER-URL", Se = "VIDISPINE-REMEMBER-ME", nn = ({ userName: e, password: t, serverUrl: n }) => {
2390
+ const ye = "VIDISPINE-TOKEN", Ae = "VIDISPINE-USERNAME", Ce = "VIDISPINE-SERVER-URL", Se = "VIDISPINE-REMEMBER-ME", on = ({ userName: e, password: t, serverUrl: n }) => {
2357
2391
  n && (J.defaultClient.defaults.baseURL = n);
2358
2392
  const r = { seconds: 2592e3, autoRefresh: "true" }, o = { password: t, username: e };
2359
2393
  try {
@@ -2365,12 +2399,12 @@ const ye = "VIDISPINE-TOKEN", Ae = "VIDISPINE-USERNAME", Ce = "VIDISPINE-SERVER-
2365
2399
  throw "Incorrect Username/Password";
2366
2400
  }
2367
2401
  };
2368
- function So({
2402
+ function To({
2369
2403
  LoginComponent: e,
2370
2404
  LoginProps: t = {},
2371
2405
  AppComponent: n,
2372
2406
  AppProps: r = {},
2373
- onGetToken: o = nn,
2407
+ onGetToken: o = on,
2374
2408
  onSuccess: s,
2375
2409
  onError: a,
2376
2410
  cookieOptions: i = {
@@ -2379,18 +2413,18 @@ function So({
2379
2413
  },
2380
2414
  ...l
2381
2415
  }) {
2382
- const [u, c, p] = nt([
2416
+ const [u, c, p] = ot([
2383
2417
  ye,
2384
2418
  Ae,
2385
2419
  Ce,
2386
2420
  Se
2387
2421
  ]), {
2388
- [ye]: m,
2422
+ [ye]: f,
2389
2423
  [Ae]: d,
2390
2424
  [Ce]: h
2391
- } = u, f = u[Se] === "true";
2392
- return m ? /* @__PURE__ */ B(lt, { token: m, username: d, serverUrl: h, children: /* @__PURE__ */ B(n, { onLogout: () => {
2393
- p(ye, i), f || (p(Ae, i), p(Ce, i), p(Se, i));
2425
+ } = u, m = u[Se] === "true";
2426
+ return f ? /* @__PURE__ */ B(lt, { token: f, username: d, serverUrl: h, children: /* @__PURE__ */ B(n, { onLogout: () => {
2427
+ p(ye, i), m || (p(Ae, i), p(Ce, i), p(Se, i));
2394
2428
  }, ...l, ...r }) }) : /* @__PURE__ */ B(
2395
2429
  e,
2396
2430
  {
@@ -2399,11 +2433,11 @@ function So({
2399
2433
  try {
2400
2434
  o(g).then((S) => {
2401
2435
  const {
2402
- userName: R,
2436
+ userName: P,
2403
2437
  serverUrl: A,
2404
2438
  rememberMe: N
2405
2439
  } = g;
2406
- R && c(Ae, R, i), A && c(Ce, A, i), N && c(Se, N, i), S && c(ye, S, i), s && s(g);
2440
+ P && c(Ae, P, i), A && c(Ce, A, i), N && c(Se, N, i), S && c(ye, S, i), s && s(g);
2407
2441
  }).catch((S) => {
2408
2442
  if (y = S, a)
2409
2443
  return a(y);
@@ -2417,13 +2451,13 @@ function So({
2417
2451
  },
2418
2452
  userName: d,
2419
2453
  serverUrl: h,
2420
- rememberMe: f,
2454
+ rememberMe: m,
2421
2455
  ...l,
2422
2456
  ...t
2423
2457
  }
2424
2458
  );
2425
2459
  }
2426
- function on({ error: e, info: t }) {
2460
+ function sn({ error: e, info: t }) {
2427
2461
  return /* @__PURE__ */ Ot(
2428
2462
  "div",
2429
2463
  {
@@ -2442,7 +2476,7 @@ function on({ error: e, info: t }) {
2442
2476
  }
2443
2477
  );
2444
2478
  }
2445
- class sn extends Je {
2479
+ class an extends ze {
2446
2480
  constructor(t) {
2447
2481
  super(t), this.state = { hasError: !1 };
2448
2482
  }
@@ -2465,11 +2499,11 @@ class sn extends Je {
2465
2499
  }
2466
2500
  render() {
2467
2501
  const { children: t } = this.props, { hasError: n, error: r, info: o } = this.state;
2468
- return n ? /* @__PURE__ */ B(on, { info: o, error: r }) : t;
2502
+ return n ? /* @__PURE__ */ B(sn, { info: o, error: r }) : t;
2469
2503
  }
2470
2504
  }
2471
- function vo({ groupName: e, queryParams: t, refreshOnMount: n, children: r }) {
2472
- const { metadataFieldGroupType: o, onRefresh: s, isLoading: a, isError: i } = rn({
2505
+ function Ro({ groupName: e, queryParams: t, refreshOnMount: n, children: r }) {
2506
+ const { metadataFieldGroupType: o, onRefresh: s, isLoading: a, isError: i } = nn({
2473
2507
  groupName: e,
2474
2508
  queryParams: t,
2475
2509
  refreshOnMount: n
@@ -2484,7 +2518,7 @@ function vo({ groupName: e, queryParams: t, refreshOnMount: n, children: r }) {
2484
2518
  return oe.map(r, u);
2485
2519
  }
2486
2520
  const dt = Ee();
2487
- function To({ intialState: e = {}, onRefresh: t, userName: n, children: r }) {
2521
+ function Po({ intialState: e = {}, onRefresh: t, userName: n, children: r }) {
2488
2522
  const [o, s] = x(e);
2489
2523
  return $(() => {
2490
2524
  if (n)
@@ -2499,7 +2533,7 @@ function To({ intialState: e = {}, onRefresh: t, userName: n, children: r }) {
2499
2533
  }
2500
2534
  }, [n]), /* @__PURE__ */ B(dt.Provider, { value: o, children: r });
2501
2535
  }
2502
- function an() {
2536
+ function cn() {
2503
2537
  const e = Ie(dt);
2504
2538
  if (e === void 0)
2505
2539
  throw new Error("useRoles must be used within RolesContext");
@@ -2513,13 +2547,13 @@ function an() {
2513
2547
  return o.includes(Gt.SUPER_ACCESS_USER) ? !0 : Array.isArray(n) ? n.findIndex((s) => o.includes(s)) > -1 : o.includes(n);
2514
2548
  }, groupListType: e };
2515
2549
  }
2516
- function Ro({ roleName: e, allow: t, deny: n, loading: r }) {
2550
+ function No({ roleName: e, allow: t, deny: n, loading: r }) {
2517
2551
  if (e === void 0)
2518
2552
  throw new Error("roleName is undefined");
2519
- const { hasRole: o } = an(), s = o(e);
2553
+ const { hasRole: o } = cn(), s = o(e);
2520
2554
  return _e(t) && s === !0 ? t : _e(n) && s === !1 ? n : _e(r) && s === null ? r : null;
2521
2555
  }
2522
- function Po({ providers: e = [], children: t, ...n }) {
2556
+ function Io({ providers: e = [], children: t, ...n }) {
2523
2557
  return e.reduceRight((r, o) => {
2524
2558
  if (typeof o == "function")
2525
2559
  return /* @__PURE__ */ B(o, { ...n, children: r });
@@ -2527,14 +2561,14 @@ function Po({ providers: e = [], children: t, ...n }) {
2527
2561
  return /* @__PURE__ */ B(s, { ...n, ...a, children: r });
2528
2562
  }, t);
2529
2563
  }
2530
- function No({
2564
+ function _o({
2531
2565
  entity: e,
2532
2566
  entityId: t,
2533
2567
  queryParams: n,
2534
2568
  refreshOnMount: r,
2535
2569
  children: o
2536
2570
  }) {
2537
- const { metadataType: s, onRefresh: a, isLoading: i, isError: l } = tn({
2571
+ const { metadataType: s, onRefresh: a, isLoading: i, isError: l } = rn({
2538
2572
  entity: e,
2539
2573
  entityId: t,
2540
2574
  queryParams: n,
@@ -2552,10 +2586,10 @@ function No({
2552
2586
  const c = (p) => se(p, u);
2553
2587
  return oe.map(o, c);
2554
2588
  }
2555
- const Io = (e, t = {}) => (n) => /* @__PURE__ */ B(sn, { ...t, children: /* @__PURE__ */ B(e, { ...n }) }), _o = (...e) => e.reduce(
2589
+ const bo = (e, t = {}) => (n) => /* @__PURE__ */ B(an, { ...t, children: /* @__PURE__ */ B(e, { ...n }) }), Go = (...e) => e.reduce(
2556
2590
  (t, n) => (...r) => t(n(...r)),
2557
2591
  (t) => t
2558
- ), cn = Ee(), un = (e, { entityId: t, entityType: n, entityTimespan: { start: r, end: o, field: [{ name: s } = {}] = [] } = {} }) => {
2592
+ ), un = Ee(), ln = (e, { entityId: t, entityType: n, entityTimespan: { start: r, end: o, field: [{ name: s } = {}] = [] } = {} }) => {
2559
2593
  const a = e.some(
2560
2594
  (l) => l.entity.id === t && l.entityType === n
2561
2595
  );
@@ -2570,48 +2604,48 @@ const Io = (e, t = {}) => (n) => /* @__PURE__ */ B(sn, { ...t, children: /* @__P
2570
2604
  }
2571
2605
  ), !a || !i;
2572
2606
  };
2573
- function bo({
2607
+ function wo({
2574
2608
  onChange: e,
2575
2609
  children: t,
2576
2610
  initialState: n = [],
2577
2611
  allowDuplicates: r = !1,
2578
- isUniqueBinItem: o = un
2612
+ isUniqueBinItem: o = ln
2579
2613
  }) {
2580
- const [s, a] = x(n), [i, l] = x(r), u = P(
2581
- (f) => {
2582
- if (!f || !["string", "number"].includes(typeof f)) {
2614
+ const [s, a] = x(n), [i, l] = x(r), u = T(
2615
+ (m) => {
2616
+ if (!m || !["string", "number"].includes(typeof m)) {
2583
2617
  console.error("BinProvider onDelete called without a binId of the entity to delete");
2584
2618
  return;
2585
2619
  }
2586
2620
  a((C) => {
2587
- const v = C.filter((g) => g.binId !== f);
2621
+ const v = C.filter((g) => g.binId !== m);
2588
2622
  return e && e(v), v;
2589
2623
  });
2590
2624
  },
2591
2625
  [e]
2592
- ), c = P(() => {
2626
+ ), c = T(() => {
2593
2627
  a([]), e && e([]);
2594
- }, [e]), p = (f) => {
2628
+ }, [e]), p = (m) => {
2595
2629
  const [C] = at().split("-");
2596
- return { binId: C, ...f };
2597
- }, m = P(
2598
- ({ dragInfo: f = {} } = {}) => {
2599
- const { entityId: C, entityType: v, entity: g } = f;
2630
+ return { binId: C, ...m };
2631
+ }, f = T(
2632
+ ({ dragInfo: m = {} } = {}) => {
2633
+ const { entityId: C, entityType: v, entity: g } = m;
2600
2634
  if (!C || !v || !g)
2601
2635
  throw new Error("Dragged element needs to have entityId, entityType and entity props");
2602
2636
  a((y = []) => {
2603
- if (o(y, f) || i) {
2604
- const S = [...y, p(f)];
2637
+ if (o(y, m) || i) {
2638
+ const S = [...y, p(m)];
2605
2639
  return e && e(S), S;
2606
2640
  }
2607
2641
  return y;
2608
2642
  });
2609
2643
  },
2610
2644
  [i, o, e]
2611
- ), d = P(
2612
- ({ dragId: f, hoverId: C, originalDragIndex: v }) => {
2613
- f === void 0 || C === void 0 && v === void 0 || a((g) => {
2614
- const y = [...g], S = s.findIndex((N) => N.binId === f), R = s.findIndex((N) => N.binId === C), A = R > -1 ? R : v;
2645
+ ), d = T(
2646
+ ({ dragId: m, hoverId: C, originalDragIndex: v }) => {
2647
+ m === void 0 || C === void 0 && v === void 0 || a((g) => {
2648
+ const y = [...g], S = s.findIndex((N) => N.binId === m), P = s.findIndex((N) => N.binId === C), A = P > -1 ? P : v;
2615
2649
  return [y[A], y[S]] = [
2616
2650
  y[S],
2617
2651
  y[A]
@@ -2625,17 +2659,17 @@ function bo({
2625
2659
  bin: s,
2626
2660
  allowDuplicates: i,
2627
2661
  setAllowDuplicates: l,
2628
- onDrop: m,
2662
+ onDrop: f,
2629
2663
  onSort: d,
2630
2664
  onFind: () => null,
2631
2665
  onEmptyBin: c,
2632
2666
  onDelete: u
2633
2667
  }),
2634
- [i, s, m, d, u, c]
2668
+ [i, s, f, d, u, c]
2635
2669
  );
2636
- return /* @__PURE__ */ B(cn.Provider, { value: h, children: t });
2670
+ return /* @__PURE__ */ B(un.Provider, { value: h, children: t });
2637
2671
  }
2638
- function ln(e) {
2672
+ function dn(e) {
2639
2673
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2640
2674
  }
2641
2675
  var Le = { exports: {} };
@@ -2644,11 +2678,11 @@ object-assign
2644
2678
  (c) Sindre Sorhus
2645
2679
  @license MIT
2646
2680
  */
2647
- var be, qe;
2648
- function dn() {
2649
- if (qe)
2681
+ var be, je;
2682
+ function fn() {
2683
+ if (je)
2650
2684
  return be;
2651
- qe = 1;
2685
+ je = 1;
2652
2686
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
2653
2687
  function r(s) {
2654
2688
  if (s == null)
@@ -2684,34 +2718,34 @@ function dn() {
2684
2718
  t.call(i, p) && (l[p] = i[p]);
2685
2719
  if (e) {
2686
2720
  u = e(i);
2687
- for (var m = 0; m < u.length; m++)
2688
- n.call(i, u[m]) && (l[u[m]] = i[u[m]]);
2721
+ for (var f = 0; f < u.length; f++)
2722
+ n.call(i, u[f]) && (l[u[f]] = i[u[f]]);
2689
2723
  }
2690
2724
  }
2691
2725
  return l;
2692
2726
  }, be;
2693
2727
  }
2694
- var Ge, $e;
2695
- function Ue() {
2696
- if ($e)
2728
+ var Ge, We;
2729
+ function Me() {
2730
+ if (We)
2697
2731
  return Ge;
2698
- $e = 1;
2732
+ We = 1;
2699
2733
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2700
2734
  return Ge = e, Ge;
2701
2735
  }
2702
- var we, je;
2736
+ var we, Ve;
2703
2737
  function ft() {
2704
- return je || (je = 1, we = Function.call.bind(Object.prototype.hasOwnProperty)), we;
2738
+ return Ve || (Ve = 1, we = Function.call.bind(Object.prototype.hasOwnProperty)), we;
2705
2739
  }
2706
- var De, We;
2707
- function fn() {
2708
- if (We)
2740
+ var De, ke;
2741
+ function mn() {
2742
+ if (ke)
2709
2743
  return De;
2710
- We = 1;
2744
+ ke = 1;
2711
2745
  var e = function() {
2712
2746
  };
2713
2747
  if (process.env.NODE_ENV !== "production") {
2714
- var t = Ue(), n = {}, r = ft();
2748
+ var t = Me(), n = {}, r = ft();
2715
2749
  e = function(s) {
2716
2750
  var a = "Warning: " + s;
2717
2751
  typeof console < "u" && console.error(a);
@@ -2728,10 +2762,10 @@ function fn() {
2728
2762
  var p;
2729
2763
  try {
2730
2764
  if (typeof s[c] != "function") {
2731
- var m = Error(
2765
+ var f = Error(
2732
2766
  (l || "React class") + ": " + i + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2733
2767
  );
2734
- throw m.name = "Invariant Violation", m;
2768
+ throw f.name = "Invariant Violation", f;
2735
2769
  }
2736
2770
  p = s[c](a, c, l, i, null, t);
2737
2771
  } catch (h) {
@@ -2753,12 +2787,12 @@ function fn() {
2753
2787
  process.env.NODE_ENV !== "production" && (n = {});
2754
2788
  }, De = o, De;
2755
2789
  }
2756
- var Oe, Ve;
2757
- function mn() {
2758
- if (Ve)
2790
+ var Oe, Ye;
2791
+ function pn() {
2792
+ if (Ye)
2759
2793
  return Oe;
2760
- Ve = 1;
2761
- var e = ot, t = dn(), n = Ue(), r = ft(), o = fn(), s = function() {
2794
+ Ye = 1;
2795
+ var e = st, t = fn(), n = Me(), r = ft(), o = mn(), s = function() {
2762
2796
  };
2763
2797
  process.env.NODE_ENV !== "production" && (s = function(i) {
2764
2798
  var l = "Warning: " + i;
@@ -2774,11 +2808,11 @@ function mn() {
2774
2808
  return Oe = function(i, l) {
2775
2809
  var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
2776
2810
  function p(E) {
2777
- var T = E && (u && E[u] || E[c]);
2778
- if (typeof T == "function")
2779
- return T;
2811
+ var R = E && (u && E[u] || E[c]);
2812
+ if (typeof R == "function")
2813
+ return R;
2780
2814
  }
2781
- var m = "<<anonymous>>", d = {
2815
+ var f = "<<anonymous>>", d = {
2782
2816
  array: v("array"),
2783
2817
  bigint: v("bigint"),
2784
2818
  bool: v("boolean"),
@@ -2790,27 +2824,27 @@ function mn() {
2790
2824
  any: g(),
2791
2825
  arrayOf: y,
2792
2826
  element: S(),
2793
- elementType: R(),
2827
+ elementType: P(),
2794
2828
  instanceOf: A,
2795
- node: j(),
2829
+ node: W(),
2796
2830
  objectOf: _,
2797
2831
  oneOf: N,
2798
2832
  oneOfType: b,
2799
2833
  shape: Q,
2800
2834
  exact: re
2801
2835
  };
2802
- function h(E, T) {
2803
- return E === T ? E !== 0 || 1 / E === 1 / T : E !== E && T !== T;
2836
+ function h(E, R) {
2837
+ return E === R ? E !== 0 || 1 / E === 1 / R : E !== E && R !== R;
2804
2838
  }
2805
- function f(E, T) {
2806
- this.message = E, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
2839
+ function m(E, R) {
2840
+ this.message = E, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
2807
2841
  }
2808
- f.prototype = Error.prototype;
2842
+ m.prototype = Error.prototype;
2809
2843
  function C(E) {
2810
2844
  if (process.env.NODE_ENV !== "production")
2811
- var T = {}, O = 0;
2845
+ var R = {}, O = 0;
2812
2846
  function w(H, G, D, L, F, U, ee) {
2813
- if (L = L || m, U = U || D, ee !== n) {
2847
+ if (L = L || f, U = U || D, ee !== n) {
2814
2848
  if (l) {
2815
2849
  var K = new Error(
2816
2850
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -2818,42 +2852,42 @@ function mn() {
2818
2852
  throw K.name = "Invariant Violation", K;
2819
2853
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2820
2854
  var le = L + ":" + D;
2821
- !T[le] && // Avoid spamming the console because they are often not actionable except for lib authors
2855
+ !R[le] && // Avoid spamming the console because they are often not actionable except for lib authors
2822
2856
  O < 3 && (s(
2823
2857
  "You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2824
- ), T[le] = !0, O++);
2858
+ ), R[le] = !0, O++);
2825
2859
  }
2826
2860
  }
2827
- return G[D] == null ? H ? G[D] === null ? new f("The " + F + " `" + U + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new f("The " + F + " `" + U + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : E(G, D, L, F, U);
2861
+ return G[D] == null ? H ? G[D] === null ? new m("The " + F + " `" + U + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new m("The " + F + " `" + U + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : E(G, D, L, F, U);
2828
2862
  }
2829
2863
  var I = w.bind(null, !1);
2830
2864
  return I.isRequired = w.bind(null, !0), I;
2831
2865
  }
2832
2866
  function v(E) {
2833
- function T(O, w, I, H, G, D) {
2867
+ function R(O, w, I, H, G, D) {
2834
2868
  var L = O[w], F = ie(L);
2835
2869
  if (F !== E) {
2836
2870
  var U = me(L);
2837
- return new f(
2871
+ return new m(
2838
2872
  "Invalid " + H + " `" + G + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + E + "`."),
2839
2873
  { expectedType: E }
2840
2874
  );
2841
2875
  }
2842
2876
  return null;
2843
2877
  }
2844
- return C(T);
2878
+ return C(R);
2845
2879
  }
2846
2880
  function g() {
2847
2881
  return C(a);
2848
2882
  }
2849
2883
  function y(E) {
2850
- function T(O, w, I, H, G) {
2884
+ function R(O, w, I, H, G) {
2851
2885
  if (typeof E != "function")
2852
- return new f("Property `" + G + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
2886
+ return new m("Property `" + G + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
2853
2887
  var D = O[w];
2854
2888
  if (!Array.isArray(D)) {
2855
2889
  var L = ie(D);
2856
- return new f("Invalid " + H + " `" + G + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an array."));
2890
+ return new m("Invalid " + H + " `" + G + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an array."));
2857
2891
  }
2858
2892
  for (var F = 0; F < D.length; F++) {
2859
2893
  var U = E(D, F, I, H, G + "[" + F + "]", n);
@@ -2862,46 +2896,46 @@ function mn() {
2862
2896
  }
2863
2897
  return null;
2864
2898
  }
2865
- return C(T);
2899
+ return C(R);
2866
2900
  }
2867
2901
  function S() {
2868
- function E(T, O, w, I, H) {
2869
- var G = T[O];
2902
+ function E(R, O, w, I, H) {
2903
+ var G = R[O];
2870
2904
  if (!i(G)) {
2871
2905
  var D = ie(G);
2872
- return new f("Invalid " + I + " `" + H + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected a single ReactElement."));
2906
+ return new m("Invalid " + I + " `" + H + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected a single ReactElement."));
2873
2907
  }
2874
2908
  return null;
2875
2909
  }
2876
2910
  return C(E);
2877
2911
  }
2878
- function R() {
2879
- function E(T, O, w, I, H) {
2880
- var G = T[O];
2912
+ function P() {
2913
+ function E(R, O, w, I, H) {
2914
+ var G = R[O];
2881
2915
  if (!e.isValidElementType(G)) {
2882
2916
  var D = ie(G);
2883
- return new f("Invalid " + I + " `" + H + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected a single ReactElement type."));
2917
+ return new m("Invalid " + I + " `" + H + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected a single ReactElement type."));
2884
2918
  }
2885
2919
  return null;
2886
2920
  }
2887
2921
  return C(E);
2888
2922
  }
2889
2923
  function A(E) {
2890
- function T(O, w, I, H, G) {
2924
+ function R(O, w, I, H, G) {
2891
2925
  if (!(O[w] instanceof E)) {
2892
- var D = E.name || m, L = Tt(O[w]);
2893
- return new f("Invalid " + H + " `" + G + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected ") + ("instance of `" + D + "`."));
2926
+ var D = E.name || f, L = Tt(O[w]);
2927
+ return new m("Invalid " + H + " `" + G + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected ") + ("instance of `" + D + "`."));
2894
2928
  }
2895
2929
  return null;
2896
2930
  }
2897
- return C(T);
2931
+ return C(R);
2898
2932
  }
2899
2933
  function N(E) {
2900
2934
  if (!Array.isArray(E))
2901
2935
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
2902
2936
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2903
2937
  ) : s("Invalid argument supplied to oneOf, expected an array.")), a;
2904
- function T(O, w, I, H, G) {
2938
+ function R(O, w, I, H, G) {
2905
2939
  for (var D = O[w], L = 0; L < E.length; L++)
2906
2940
  if (h(D, E[L]))
2907
2941
  return null;
@@ -2909,17 +2943,17 @@ function mn() {
2909
2943
  var le = me(K);
2910
2944
  return le === "symbol" ? String(K) : K;
2911
2945
  });
2912
- return new f("Invalid " + H + " `" + G + "` of value `" + String(D) + "` " + ("supplied to `" + I + "`, expected one of " + F + "."));
2946
+ return new m("Invalid " + H + " `" + G + "` of value `" + String(D) + "` " + ("supplied to `" + I + "`, expected one of " + F + "."));
2913
2947
  }
2914
- return C(T);
2948
+ return C(R);
2915
2949
  }
2916
2950
  function _(E) {
2917
- function T(O, w, I, H, G) {
2951
+ function R(O, w, I, H, G) {
2918
2952
  if (typeof E != "function")
2919
- return new f("Property `" + G + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
2953
+ return new m("Property `" + G + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
2920
2954
  var D = O[w], L = ie(D);
2921
2955
  if (L !== "object")
2922
- return new f("Invalid " + H + " `" + G + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an object."));
2956
+ return new m("Invalid " + H + " `" + G + "` of type " + ("`" + L + "` supplied to `" + I + "`, expected an object."));
2923
2957
  for (var F in D)
2924
2958
  if (r(D, F)) {
2925
2959
  var U = E(D, F, I, H, G + "." + F, n);
@@ -2928,16 +2962,16 @@ function mn() {
2928
2962
  }
2929
2963
  return null;
2930
2964
  }
2931
- return C(T);
2965
+ return C(R);
2932
2966
  }
2933
2967
  function b(E) {
2934
2968
  if (!Array.isArray(E))
2935
2969
  return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), a;
2936
- for (var T = 0; T < E.length; T++) {
2937
- var O = E[T];
2970
+ for (var R = 0; R < E.length; R++) {
2971
+ var O = E[R];
2938
2972
  if (typeof O != "function")
2939
2973
  return s(
2940
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + vt(O) + " at index " + T + "."
2974
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + vt(O) + " at index " + R + "."
2941
2975
  ), a;
2942
2976
  }
2943
2977
  function w(I, H, G, D, L) {
@@ -2948,50 +2982,50 @@ function mn() {
2948
2982
  K.data && r(K.data, "expectedType") && F.push(K.data.expectedType);
2949
2983
  }
2950
2984
  var le = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
2951
- return new f("Invalid " + D + " `" + L + "` supplied to " + ("`" + G + "`" + le + "."));
2985
+ return new m("Invalid " + D + " `" + L + "` supplied to " + ("`" + G + "`" + le + "."));
2952
2986
  }
2953
2987
  return C(w);
2954
2988
  }
2955
- function j() {
2956
- function E(T, O, w, I, H) {
2957
- return ne(T[O]) ? null : new f("Invalid " + I + " `" + H + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
2989
+ function W() {
2990
+ function E(R, O, w, I, H) {
2991
+ return ne(R[O]) ? null : new m("Invalid " + I + " `" + H + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
2958
2992
  }
2959
2993
  return C(E);
2960
2994
  }
2961
- function W(E, T, O, w, I) {
2962
- return new f(
2963
- (E || "React class") + ": " + T + " type `" + O + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
2995
+ function V(E, R, O, w, I) {
2996
+ return new m(
2997
+ (E || "React class") + ": " + R + " type `" + O + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
2964
2998
  );
2965
2999
  }
2966
3000
  function Q(E) {
2967
- function T(O, w, I, H, G) {
3001
+ function R(O, w, I, H, G) {
2968
3002
  var D = O[w], L = ie(D);
2969
3003
  if (L !== "object")
2970
- return new f("Invalid " + H + " `" + G + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
3004
+ return new m("Invalid " + H + " `" + G + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
2971
3005
  for (var F in E) {
2972
3006
  var U = E[F];
2973
3007
  if (typeof U != "function")
2974
- return W(I, H, G, F, me(U));
3008
+ return V(I, H, G, F, me(U));
2975
3009
  var ee = U(D, F, I, H, G + "." + F, n);
2976
3010
  if (ee)
2977
3011
  return ee;
2978
3012
  }
2979
3013
  return null;
2980
3014
  }
2981
- return C(T);
3015
+ return C(R);
2982
3016
  }
2983
3017
  function re(E) {
2984
- function T(O, w, I, H, G) {
3018
+ function R(O, w, I, H, G) {
2985
3019
  var D = O[w], L = ie(D);
2986
3020
  if (L !== "object")
2987
- return new f("Invalid " + H + " `" + G + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
3021
+ return new m("Invalid " + H + " `" + G + "` of type `" + L + "` " + ("supplied to `" + I + "`, expected `object`."));
2988
3022
  var F = t({}, O[w], E);
2989
3023
  for (var U in F) {
2990
3024
  var ee = E[U];
2991
3025
  if (r(E, U) && typeof ee != "function")
2992
- return W(I, H, G, U, me(ee));
3026
+ return V(I, H, G, U, me(ee));
2993
3027
  if (!ee)
2994
- return new f(
3028
+ return new m(
2995
3029
  "Invalid " + H + " `" + G + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(O[w], null, " ") + `
2996
3030
  Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
2997
3031
  );
@@ -3001,7 +3035,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
3001
3035
  }
3002
3036
  return null;
3003
3037
  }
3004
- return C(T);
3038
+ return C(R);
3005
3039
  }
3006
3040
  function ne(E) {
3007
3041
  switch (typeof E) {
@@ -3016,10 +3050,10 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
3016
3050
  return E.every(ne);
3017
3051
  if (E === null || i(E))
3018
3052
  return !0;
3019
- var T = p(E);
3020
- if (T) {
3021
- var O = T.call(E), w;
3022
- if (T !== E.entries) {
3053
+ var R = p(E);
3054
+ if (R) {
3055
+ var O = R.call(E), w;
3056
+ if (R !== E.entries) {
3023
3057
  for (; !(w = O.next()).done; )
3024
3058
  if (!ne(w.value))
3025
3059
  return !1;
@@ -3036,51 +3070,51 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
3036
3070
  return !1;
3037
3071
  }
3038
3072
  }
3039
- function St(E, T) {
3040
- return E === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
3073
+ function St(E, R) {
3074
+ return E === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
3041
3075
  }
3042
3076
  function ie(E) {
3043
- var T = typeof E;
3044
- return Array.isArray(E) ? "array" : E instanceof RegExp ? "object" : St(T, E) ? "symbol" : T;
3077
+ var R = typeof E;
3078
+ return Array.isArray(E) ? "array" : E instanceof RegExp ? "object" : St(R, E) ? "symbol" : R;
3045
3079
  }
3046
3080
  function me(E) {
3047
3081
  if (typeof E > "u" || E === null)
3048
3082
  return "" + E;
3049
- var T = ie(E);
3050
- if (T === "object") {
3083
+ var R = ie(E);
3084
+ if (R === "object") {
3051
3085
  if (E instanceof Date)
3052
3086
  return "date";
3053
3087
  if (E instanceof RegExp)
3054
3088
  return "regexp";
3055
3089
  }
3056
- return T;
3090
+ return R;
3057
3091
  }
3058
3092
  function vt(E) {
3059
- var T = me(E);
3060
- switch (T) {
3093
+ var R = me(E);
3094
+ switch (R) {
3061
3095
  case "array":
3062
3096
  case "object":
3063
- return "an " + T;
3097
+ return "an " + R;
3064
3098
  case "boolean":
3065
3099
  case "date":
3066
3100
  case "regexp":
3067
- return "a " + T;
3101
+ return "a " + R;
3068
3102
  default:
3069
- return T;
3103
+ return R;
3070
3104
  }
3071
3105
  }
3072
3106
  function Tt(E) {
3073
- return !E.constructor || !E.constructor.name ? m : E.constructor.name;
3107
+ return !E.constructor || !E.constructor.name ? f : E.constructor.name;
3074
3108
  }
3075
3109
  return d.checkPropTypes = o, d.resetWarningCache = o.resetWarningCache, d.PropTypes = d, d;
3076
3110
  }, Oe;
3077
3111
  }
3078
- var He, ke;
3079
- function pn() {
3080
- if (ke)
3112
+ var He, Be;
3113
+ function hn() {
3114
+ if (Be)
3081
3115
  return He;
3082
- ke = 1;
3083
- var e = Ue();
3116
+ Be = 1;
3117
+ var e = Me();
3084
3118
  function t() {
3085
3119
  }
3086
3120
  function n() {
@@ -3088,10 +3122,10 @@ function pn() {
3088
3122
  return n.resetWarningCache = t, He = function() {
3089
3123
  function r(a, i, l, u, c, p) {
3090
3124
  if (p !== e) {
3091
- var m = new Error(
3125
+ var f = new Error(
3092
3126
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
3093
3127
  );
3094
- throw m.name = "Invariant Violation", m;
3128
+ throw f.name = "Invariant Violation", f;
3095
3129
  }
3096
3130
  }
3097
3131
  r.isRequired = r;
@@ -3125,16 +3159,16 @@ function pn() {
3125
3159
  }, He;
3126
3160
  }
3127
3161
  if (process.env.NODE_ENV !== "production") {
3128
- var hn = ot, En = !0;
3129
- Le.exports = mn()(hn.isElement, En);
3162
+ var En = st, gn = !0;
3163
+ Le.exports = pn()(En.isElement, gn);
3130
3164
  } else
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) => {
3165
+ Le.exports = hn()();
3166
+ var yn = Le.exports;
3167
+ const q = /* @__PURE__ */ dn(yn), mt = Ee(), pt = Ee(), Fe = "UPDATE_ALL_SETTINGS", ht = "UPDATE_SETTING", Et = "UPDATE_USERNAME", gt = "REMOVE_SETTING", An = (e, t) => {
3134
3168
  switch (t.type) {
3135
3169
  case Et:
3136
3170
  return { ...e, userName: t.userName };
3137
- case Me:
3171
+ case Fe:
3138
3172
  return { ...e, settings: t.settings };
3139
3173
  case ht: {
3140
3174
  const n = { ...e.settings, ...t.setting };
@@ -3157,7 +3191,7 @@ function yt({
3157
3191
  getSettingsApi: s,
3158
3192
  updateSettingsApi: a
3159
3193
  }) {
3160
- const [i, l] = fe(yn, {
3194
+ const [i, l] = fe(An, {
3161
3195
  settings: r,
3162
3196
  userName: e
3163
3197
  }), u = z();
@@ -3169,14 +3203,14 @@ function yt({
3169
3203
  key: t
3170
3204
  }).then(({ data: p }) => {
3171
3205
  l({
3172
- type: Me,
3206
+ type: Fe,
3173
3207
  settings: p,
3174
3208
  userName: c,
3175
3209
  settingsKey: t
3176
3210
  }), u.current = JSON.stringify(p);
3177
3211
  }).catch((p) => {
3178
- const { response: m } = p;
3179
- if (m.status !== 404)
3212
+ const { response: f } = p;
3213
+ if (f.status !== 404)
3180
3214
  throw new Error(p);
3181
3215
  });
3182
3216
  }, [i.userName]), $(() => {
@@ -3184,8 +3218,8 @@ function yt({
3184
3218
  const { userName: c } = i;
3185
3219
  if (!a || !c)
3186
3220
  return;
3187
- const p = JSON.stringify(i.settings), m = u.current;
3188
- !m || p === m || (a({
3221
+ const p = JSON.stringify(i.settings), f = u.current;
3222
+ !f || p === f || (a({
3189
3223
  entityType: "user",
3190
3224
  entityId: c,
3191
3225
  key: t,
@@ -3193,40 +3227,40 @@ function yt({
3193
3227
  }), u.current = p);
3194
3228
  }, [i.settings]), /* @__PURE__ */ B(pt.Provider, { value: i, children: /* @__PURE__ */ B(mt.Provider, { value: l, children: n }) });
3195
3229
  }
3196
- const An = () => {
3230
+ const Cn = () => {
3197
3231
  const e = Ie(pt);
3198
3232
  if (!e)
3199
3233
  throw new Error("useSettingsState must be used within SettingsStateContext");
3200
3234
  return e;
3201
- }, Cn = () => {
3235
+ }, Sn = () => {
3202
3236
  const e = Ie(mt);
3203
3237
  if (!e)
3204
3238
  throw new Error("useSettingsDispatch must be used within SettingsDispatchContext");
3205
3239
  return e;
3206
- }, Sn = () => {
3207
- const e = Cn(), t = P(
3208
- (s) => e({ type: Me, settings: s }),
3240
+ }, vn = () => {
3241
+ const e = Sn(), t = T(
3242
+ (s) => e({ type: Fe, settings: s }),
3209
3243
  // eslint-disable-next-line react-hooks/exhaustive-deps
3210
3244
  []
3211
- ), n = P(
3245
+ ), n = T(
3212
3246
  (s) => e({ type: ht, setting: s }),
3213
3247
  // eslint-disable-next-line react-hooks/exhaustive-deps
3214
3248
  []
3215
- ), r = P(
3249
+ ), r = T(
3216
3250
  (s) => e({ type: Et, userName: s }),
3217
3251
  // eslint-disable-next-line react-hooks/exhaustive-deps
3218
3252
  []
3219
- ), o = P((s) => e({ type: gt, key: s }), []);
3253
+ ), o = T((s) => e({ type: gt, key: s }), []);
3220
3254
  return {
3221
3255
  updateAllSettings: t,
3222
3256
  updateSetting: n,
3223
3257
  updateUsername: r,
3224
3258
  removeSetting: o
3225
3259
  };
3226
- }, Go = () => {
3227
- const { settings: e = {} } = An();
3260
+ }, Do = () => {
3261
+ const { settings: e = {} } = Cn();
3228
3262
  return {
3229
- ...Sn(),
3263
+ ...vn(),
3230
3264
  settings: e
3231
3265
  };
3232
3266
  };
@@ -3248,25 +3282,25 @@ yt.defaultProps = {
3248
3282
  getSettingsApi: Ne.getSimpleMetadataKey,
3249
3283
  updateSettingsApi: Ne.updateSimpleMetadataKey
3250
3284
  };
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) => {
3285
+ const ve = "VIDISPINE-TOKEN", pe = "VIDISPINE-USERNAME", Te = "VIDISPINE-SERVER-URL", Re = "VIDISPINE-REMEMBER-ME", Tn = "Incorrect username or password", Qe = "Offline or CORS not configured", Je = "Session expired", Rn = "VIDISPINE_URL mismatch", Xe = (e) => {
3252
3286
  try {
3253
- return et.getSelfTest({ baseURL: e }).then(() => vn).catch(() => Ye);
3287
+ return tt.getSelfTest({ baseURL: e }).then(() => Tn).catch(() => Qe);
3254
3288
  } catch {
3255
- return Promise.resolve(Ye);
3289
+ return Promise.resolve(Qe);
3256
3290
  }
3257
- }, Rn = ({ maxAge: e = 60, userName: t, password: n, serverUrl: r }) => {
3291
+ }, Pn = ({ maxAge: e = 60, userName: t, password: n, serverUrl: r }) => {
3258
3292
  try {
3259
3293
  return X.getToken({
3260
3294
  queryParams: { seconds: e, autoRefresh: "true" },
3261
3295
  headers: { password: n, username: t },
3262
3296
  baseURL: r
3263
3297
  }).then(({ data: o }) => o).catch(
3264
- () => Qe(r).then((o) => {
3298
+ () => Xe(r).then((o) => {
3265
3299
  throw Error(o);
3266
3300
  })
3267
3301
  );
3268
3302
  } catch {
3269
- return Qe(r).then((s) => {
3303
+ return Xe(r).then((s) => {
3270
3304
  throw Error(s);
3271
3305
  });
3272
3306
  }
@@ -3290,72 +3324,72 @@ function Ct({
3290
3324
  token: l,
3291
3325
  children: u
3292
3326
  }) {
3293
- const { data: c, request: p } = k(X.getUser), [m, d, h] = nt([
3327
+ const { data: c, request: p } = j(X.getUser), [f, d, h] = ot([
3294
3328
  ve,
3295
3329
  pe,
3296
3330
  Te,
3297
3331
  Re
3298
3332
  ]), {
3299
- [ve]: f = l,
3333
+ [ve]: m = l,
3300
3334
  [pe]: C = i,
3301
3335
  [Te]: v = a
3302
- } = m, g = m[Re] === "true", { maxAge: y } = e, S = P(
3336
+ } = f, g = f[Re] === "true", { maxAge: y } = e, S = T(
3303
3337
  (b) => {
3304
- let j;
3338
+ let W;
3305
3339
  try {
3306
- return r({ maxAge: y, ...b }).then((W) => {
3340
+ return r({ maxAge: y, ...b }).then((V) => {
3307
3341
  const {
3308
3342
  userName: Q,
3309
3343
  serverUrl: re,
3310
3344
  rememberMe: ne
3311
3345
  } = b;
3312
- Q && d(pe, Q, e), re && d(Te, re, e), ne && d(Re, ne, e), W && d(ve, W, e), p({ userName: Q }), o && o(b);
3313
- }).catch((W) => {
3314
- j = W, s && s(j);
3346
+ Q && d(pe, Q, e), re && d(Te, re, e), ne && d(Re, ne, e), V && d(ve, V, e), p({ userName: Q }), o && o(b);
3347
+ }).catch((V) => {
3348
+ W = V, s && s(W);
3315
3349
  });
3316
- } catch (W) {
3317
- j = W, s && s(j);
3350
+ } catch (V) {
3351
+ W = V, s && s(W);
3318
3352
  }
3319
- return j;
3353
+ return W;
3320
3354
  },
3321
3355
  [e, y, s, r, o, p, d]
3322
- ), R = P(() => {
3356
+ ), P = T(() => {
3323
3357
  h(ve, e), g || (h(pe, e), h(Te, e), h(Re, e));
3324
3358
  }, [e, g, h]), A = z(), N = z();
3325
- $(() => (f && (A.current && J.defaultClient.interceptors.response.eject(A.current), A.current = J.defaultClient.interceptors.response.use(
3359
+ $(() => (m && (A.current && J.defaultClient.interceptors.response.eject(A.current), A.current = J.defaultClient.interceptors.response.use(
3326
3360
  (b) => b,
3327
3361
  (b) => {
3328
3362
  if (b.response)
3329
- b.response.status === 401 && (R(), s && s(Error(Be)));
3363
+ b.response.status === 401 && (P(), s && s(Error(Je)));
3330
3364
  else {
3331
- const { config: { baseURL: j } = {} } = b;
3332
- N.current !== !0 && (N.current = !0, et.getSelfTest({ baseURL: j }).then(() => {
3333
- N.current = void 0, R(), s && s(Error(Be));
3365
+ const { config: { baseURL: W } = {} } = b;
3366
+ N.current !== !0 && (N.current = !0, tt.getSelfTest({ baseURL: W }).then(() => {
3367
+ N.current = void 0, P(), s && s(Error(Je));
3334
3368
  }).catch(() => (N.current = void 0, null)));
3335
3369
  }
3336
3370
  return Promise.reject(b);
3337
3371
  }
3338
3372
  )), () => {
3339
3373
  A.current && J.defaultClient.interceptors.response.eject(A.current);
3340
- }), [R, s, f]), $(() => {
3341
- f && C === void 0 && X.whoAmI().then(
3374
+ }), [P, s, m]), $(() => {
3375
+ m && C === void 0 && X.whoAmI().then(
3342
3376
  ({ data: b }) => d(pe, b, e)
3343
3377
  );
3344
- }, [C, f]), $(() => {
3345
- f && v && a && v !== a && (R(), s && s(Error(Tn)));
3346
- }, [f, v, a, R, s]);
3378
+ }, [C, m]), $(() => {
3379
+ m && v && a && v !== a && (P(), s && s(Error(Rn)));
3380
+ }, [m, v, a, P, s]);
3347
3381
  const _ = he(
3348
3382
  () => ({
3349
3383
  serverUrl: v,
3350
- token: f,
3384
+ token: m,
3351
3385
  userType: c,
3352
3386
  userName: C,
3353
3387
  onLogin: S,
3354
- onLogout: R
3388
+ onLogout: P
3355
3389
  }),
3356
- [S, R, v, f, C, c]
3390
+ [S, P, v, m, C, c]
3357
3391
  );
3358
- return f ? /* @__PURE__ */ B(lt, { token: f, username: C, serverUrl: v, children: /* @__PURE__ */ B(At.Provider, { value: _, children: u }) }) : /* @__PURE__ */ B(
3392
+ return m ? /* @__PURE__ */ B(lt, { token: m, username: C, serverUrl: v, children: /* @__PURE__ */ B(At.Provider, { value: _, children: u }) }) : /* @__PURE__ */ B(
3359
3393
  t,
3360
3394
  {
3361
3395
  onLogin: S,
@@ -3387,22 +3421,22 @@ Ct.defaultProps = {
3387
3421
  path: "/"
3388
3422
  },
3389
3423
  LoginProps: {},
3390
- onGetToken: Rn,
3424
+ onGetToken: Pn,
3391
3425
  children: null,
3392
3426
  onSuccess: null,
3393
3427
  onError: null,
3394
3428
  userName: null,
3395
3429
  token: null
3396
3430
  };
3397
- const wo = () => {
3431
+ const Oo = () => {
3398
3432
  const e = Ie(At);
3399
3433
  if (e === void 0)
3400
3434
  throw new Error("useAuth must be used within an AuthContext");
3401
3435
  return e;
3402
- }, Pn = ({ entityId: e, entityType: t, collectionId: n, rootParentId: r, onError: o }) => {
3436
+ }, Nn = ({ entityId: e, entityType: t, collectionId: n, rootParentId: r, onError: o }) => {
3403
3437
  if (n && n !== r)
3404
3438
  try {
3405
- return V.addCollectionEntity({
3439
+ return k.addCollectionEntity({
3406
3440
  collectionId: n,
3407
3441
  entityId: e,
3408
3442
  queryParams: {
@@ -3415,7 +3449,7 @@ const wo = () => {
3415
3449
  error: s
3416
3450
  });
3417
3451
  }
3418
- }, Nn = ({
3452
+ }, In = ({
3419
3453
  entityId: e,
3420
3454
  entityType: t,
3421
3455
  collectionId: n,
@@ -3424,7 +3458,7 @@ const wo = () => {
3424
3458
  }) => {
3425
3459
  if (n && n !== r)
3426
3460
  try {
3427
- return V.removeCollectionEntity({
3461
+ return k.removeCollectionEntity({
3428
3462
  collectionId: n,
3429
3463
  entityId: e,
3430
3464
  queryParams: {
@@ -3437,20 +3471,20 @@ const wo = () => {
3437
3471
  error: s
3438
3472
  });
3439
3473
  }
3440
- }, Do = ({
3474
+ }, Ho = ({
3441
3475
  entityId: e,
3442
3476
  entityType: t,
3443
3477
  addToCollectionId: n,
3444
3478
  removeFromCollectionId: r,
3445
3479
  rootParentId: o,
3446
- onAddEntity: s = Pn,
3447
- onRemoveEntity: a = Nn,
3480
+ onAddEntity: s = Nn,
3481
+ onRemoveEntity: a = In,
3448
3482
  onMoved: i = () => null,
3449
3483
  onAdded: l = () => null,
3450
3484
  onRemoved: u = () => null,
3451
3485
  // eslint-disable-next-line no-console
3452
- onError: c = ({ message: p, error: m }) => console.error(`${p}
3453
- ${m}`)
3486
+ onError: c = ({ message: p, error: f }) => console.error(`${p}
3487
+ ${f}`)
3454
3488
  }) => {
3455
3489
  if (!n) {
3456
3490
  c({ message: "Missing the collection id to add entity to", error: "" });
@@ -3467,28 +3501,28 @@ ${m}`)
3467
3501
  rootParentId: o,
3468
3502
  collectionId: n,
3469
3503
  onError: c
3470
- }), m = a({
3504
+ }), f = a({
3471
3505
  entityId: e,
3472
3506
  entityType: t,
3473
3507
  rootParentId: o,
3474
3508
  collectionId: r,
3475
3509
  onError: c
3476
- }), d = [p, m].filter((h) => h !== void 0);
3510
+ }), d = [p, f].filter((h) => h !== void 0);
3477
3511
  Promise.allSettled(d).then((h) => {
3478
- const f = h.filter((y) => y.status !== "fulfilled"), C = f.length === 0, v = f.length === d.length, g = f.length === 1;
3512
+ const m = h.filter((y) => y.status !== "fulfilled"), C = m.length === 0, v = m.length === d.length, g = m.length === 1;
3479
3513
  if (C)
3480
3514
  i(), l(), u();
3481
3515
  else if (v)
3482
3516
  c({
3483
3517
  message: `Could not move ${e} from ${r} to ${n}`,
3484
- error: f.map((y) => y.reason).join(`
3518
+ error: m.map((y) => y.reason).join(`
3485
3519
  `)
3486
3520
  });
3487
3521
  else if (g) {
3488
- const y = f[0].reason.config.method, S = y === "delete", R = y === "put";
3522
+ const y = m[0].reason.config.method, S = y === "delete", P = y === "put";
3489
3523
  c({
3490
3524
  message: S ? `Could not remove ${e} from collection ${r}` : `Could not add ${e} to collection ${n}`,
3491
- error: f[0].reason
3525
+ error: m[0].reason
3492
3526
  });
3493
3527
  let A;
3494
3528
  S ? A = a({
@@ -3496,7 +3530,7 @@ ${m}`)
3496
3530
  entityType: t,
3497
3531
  collectionId: n,
3498
3532
  onError: c
3499
- }) : R && (A = s({
3533
+ }) : P && (A = s({
3500
3534
  entityId: e,
3501
3535
  entityType: t,
3502
3536
  collectionId: r,
@@ -3522,7 +3556,7 @@ ${m}`)
3522
3556
  });
3523
3557
  }
3524
3558
  };
3525
- function Oo({
3559
+ function Lo({
3526
3560
  children: e,
3527
3561
  setDrag: t,
3528
3562
  onDrop: n,
@@ -3537,7 +3571,7 @@ function Oo({
3537
3571
  d.preventDefault(), d.stopPropagation(), l(i + 1), i === 0 && t(!0), r && r(d);
3538
3572
  }, p = (d) => {
3539
3573
  d.preventDefault(), d.stopPropagation(), o && o(d);
3540
- }, m = (d) => {
3574
+ }, f = (d) => {
3541
3575
  d.preventDefault(), d.stopPropagation(), l(i - 1), i === 1 && t(!1), s && s(d);
3542
3576
  };
3543
3577
  return /* @__PURE__ */ B(
@@ -3546,80 +3580,81 @@ function Oo({
3546
3580
  onDragEnter: (d) => c(d),
3547
3581
  onDragOver: (d) => p(d),
3548
3582
  onDrop: (d) => u(d),
3549
- onDragLeave: (d) => m(d),
3583
+ onDragLeave: (d) => f(d),
3550
3584
  style: a,
3551
3585
  children: e
3552
3586
  }
3553
3587
  );
3554
3588
  }
3555
3589
  export {
3556
- So as Auth,
3590
+ To as Auth,
3557
3591
  At as AuthContext,
3558
3592
  Ct as AuthProvider,
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,
3593
+ un as BinContext,
3594
+ wo as BinProvider,
3595
+ Io as ComposeProviders,
3596
+ Lo as DropArea,
3597
+ an as ErrorBoundary,
3598
+ Co as GetCollection,
3599
+ _o as GetEntityMetadata,
3600
+ Ro as GetFieldGroup,
3601
+ Ao as GetItem,
3602
+ So as GetJobs,
3603
+ No as HasRole,
3604
+ vo as ListEntityAccess,
3605
+ ho as MetadataType,
3606
+ Po as RolesProvider,
3607
+ Eo as SearchCollection,
3608
+ go as SearchItem,
3609
+ yo as SearchItemCollection,
3576
3610
  yt as SettingsProvider,
3577
3611
  lt as VidispineApi,
3578
- _o as compose,
3579
- Pn as handleAddEntity,
3580
- Do as handleMoveEntity,
3581
- Nn as handleRemoveEntity,
3582
- Bn as useAddMetadataFieldAttributes,
3583
- k as useApi,
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,
3612
+ Go as compose,
3613
+ Nn as handleAddEntity,
3614
+ Ho as handleMoveEntity,
3615
+ In as handleRemoveEntity,
3616
+ Jn as useAddMetadataFieldAttributes,
3617
+ j as useApi,
3618
+ Oo as useAuthContext,
3619
+ xn as useAutocomplete,
3620
+ Mn as useAutocomplete2,
3621
+ ao as useCollectionAutoPlay,
3622
+ po as useCompoundMetadata,
3623
+ mo as useCsvDownload,
3624
+ co as useDocSearchAutocomplete,
3625
+ Qn as useEntityAccess,
3626
+ Hr as useGetCollection,
3627
+ Kn as useGetCollectionItem,
3628
+ Zn as useGetEntity,
3629
+ rn as useGetEntityMetadata,
3630
+ nn as useGetFieldGroup,
3631
+ uo as useGetFieldMetadataDataset,
3632
+ Qr as useGetItem,
3633
+ lo as useGetSavedSearchFolders,
3634
+ so as useGroup,
3635
+ io as useHoverScrub,
3636
+ $n as useInterval,
3637
+ Wn as useJobSearch,
3638
+ ro as useListGroup,
3639
+ no as useListUser,
3640
+ Vn as useLocalStorage,
3641
+ zn as useMouseDownPosition,
3642
+ Yn as useQueryInitialState,
3643
+ fo as useRepresentativeItems,
3644
+ cn as useRoles,
3645
+ Xn as useSavedSearch,
3611
3646
  Kt as useSearch,
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,
3620
- st as useUpdateEffect,
3621
- kn as useUpdateQueryState,
3622
- Wn as useUploadFiles,
3623
- Kn as useUser,
3624
- Io as withErrorBoundary
3647
+ oo as useSearchGroup,
3648
+ Or as useSearchItem,
3649
+ to as useSearchUser,
3650
+ Fn as useSelected,
3651
+ Do as useSettings,
3652
+ vn as useSettingsActions,
3653
+ qn as useTab,
3654
+ jn as useThumbnailScrub,
3655
+ xe as useUpdateEffect,
3656
+ Bn as useUpdateQueryState,
3657
+ kn as useUploadFiles,
3658
+ eo as useUser,
3659
+ bo as withErrorBoundary
3625
3660
  };