@xras/ui 0.19.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/xras-ui.js CHANGED
@@ -2529,7 +2529,7 @@ var ju = [], eo = -1;
2529
2529
  function fr(e) {
2530
2530
  return { current: e };
2531
2531
  }
2532
- function be(e) {
2532
+ function we(e) {
2533
2533
  0 > eo || (e.current = ju[eo], ju[eo] = null, eo--);
2534
2534
  }
2535
2535
  function ye(e, t) {
@@ -2552,7 +2552,7 @@ function ft(e) {
2552
2552
  return e = e.childContextTypes, e != null;
2553
2553
  }
2554
2554
  function Ca() {
2555
- be(dt), be(tt);
2555
+ we(dt), we(tt);
2556
2556
  }
2557
2557
  function ah(e, t, n) {
2558
2558
  if (tt.current !== ar)
@@ -2576,7 +2576,7 @@ function lh(e, t, n) {
2576
2576
  var r = e.stateNode;
2577
2577
  if (!r)
2578
2578
  throw Error(I(169));
2579
- n ? (e = Mv(e, t, Tr), r.__reactInternalMemoizedMergedChildContext = e, be(dt), be(tt), ye(tt, e)) : be(dt), ye(dt, n);
2579
+ n ? (e = Mv(e, t, Tr), r.__reactInternalMemoizedMergedChildContext = e, we(dt), we(tt), ye(tt, e)) : we(dt), ye(dt, n);
2580
2580
  }
2581
2581
  var wn = null, yl = !1, xc = !1;
2582
2582
  function Dv(e) {
@@ -2632,7 +2632,7 @@ function Zd(e) {
2632
2632
  for (; e === Or; )
2633
2633
  Or = $t[--It], $t[It] = null, Cn = $t[--It], $t[It] = null, jn = $t[--It], $t[It] = null;
2634
2634
  }
2635
- var bt = null, xt = null, we = !1, Kt = null;
2635
+ var bt = null, xt = null, Se = !1, Kt = null;
2636
2636
  function Lv(e, t) {
2637
2637
  var n = Mt(5, null, null, 0);
2638
2638
  n.elementType = "DELETED", n.stateNode = t, n.return = e, t = e.deletions, t === null ? (e.deletions = [n], e.flags |= 16) : t.push(n);
@@ -2654,7 +2654,7 @@ function Cu(e) {
2654
2654
  return (e.mode & 1) !== 0 && (e.flags & 128) === 0;
2655
2655
  }
2656
2656
  function Eu(e) {
2657
- if (we) {
2657
+ if (Se) {
2658
2658
  var t = xt;
2659
2659
  if (t) {
2660
2660
  var n = t;
@@ -2663,12 +2663,12 @@ function Eu(e) {
2663
2663
  throw Error(I(418));
2664
2664
  t = tr(n.nextSibling);
2665
2665
  var r = bt;
2666
- t && ch(e, t) ? Lv(r, n) : (e.flags = e.flags & -4097 | 2, we = !1, bt = e);
2666
+ t && ch(e, t) ? Lv(r, n) : (e.flags = e.flags & -4097 | 2, Se = !1, bt = e);
2667
2667
  }
2668
2668
  } else {
2669
2669
  if (Cu(e))
2670
2670
  throw Error(I(418));
2671
- e.flags = e.flags & -4097 | 2, we = !1, bt = e;
2671
+ e.flags = e.flags & -4097 | 2, Se = !1, bt = e;
2672
2672
  }
2673
2673
  }
2674
2674
  }
@@ -2680,8 +2680,8 @@ function uh(e) {
2680
2680
  function Si(e) {
2681
2681
  if (e !== bt)
2682
2682
  return !1;
2683
- if (!we)
2684
- return uh(e), we = !0, !1;
2683
+ if (!Se)
2684
+ return uh(e), Se = !0, !1;
2685
2685
  var t;
2686
2686
  if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, t = t !== "head" && t !== "body" && !wu(e.type, e.memoizedProps)), t && (t = xt)) {
2687
2687
  if (Cu(e))
@@ -2718,7 +2718,7 @@ function Uv() {
2718
2718
  e = tr(e.nextSibling);
2719
2719
  }
2720
2720
  function xo() {
2721
- xt = bt = null, we = !1;
2721
+ xt = bt = null, Se = !1;
2722
2722
  }
2723
2723
  function Jd(e) {
2724
2724
  Kt === null ? Kt = [e] : Kt.push(e);
@@ -2739,7 +2739,7 @@ function tf() {
2739
2739
  }
2740
2740
  function nf(e) {
2741
2741
  var t = ka.current;
2742
- be(ka), e._currentValue = t;
2742
+ we(ka), e._currentValue = t;
2743
2743
  }
2744
2744
  function Ru(e, t, n) {
2745
2745
  for (; e !== null; ) {
@@ -3076,17 +3076,17 @@ function Hv(e) {
3076
3076
  e && C && R.alternate === null && t(v, C), g = s(R, g, E), j === null ? _ = R : j.sibling = R, j = R, C = N;
3077
3077
  }
3078
3078
  if (E === b.length)
3079
- return n(v, C), we && mr(v, E), _;
3079
+ return n(v, C), Se && mr(v, E), _;
3080
3080
  if (C === null) {
3081
3081
  for (; E < b.length; E++)
3082
3082
  C = f(v, b[E], S), C !== null && (g = s(C, g, E), j === null ? _ = C : j.sibling = C, j = C);
3083
- return we && mr(v, E), _;
3083
+ return Se && mr(v, E), _;
3084
3084
  }
3085
3085
  for (C = r(v, C); E < b.length; E++)
3086
3086
  N = y(C, v, E, b[E], S), N !== null && (e && N.alternate !== null && C.delete(N.key === null ? E : N.key), g = s(N, g, E), j === null ? _ = N : j.sibling = N, j = N);
3087
3087
  return e && C.forEach(function(T) {
3088
3088
  return t(v, T);
3089
- }), we && mr(v, E), _;
3089
+ }), Se && mr(v, E), _;
3090
3090
  }
3091
3091
  function h(v, g, b, S) {
3092
3092
  var _ = qo(b);
@@ -3107,17 +3107,17 @@ function Hv(e) {
3107
3107
  return n(
3108
3108
  v,
3109
3109
  C
3110
- ), we && mr(v, E), _;
3110
+ ), Se && mr(v, E), _;
3111
3111
  if (C === null) {
3112
3112
  for (; !R.done; E++, R = b.next())
3113
3113
  R = f(v, R.value, S), R !== null && (g = s(R, g, E), j === null ? _ = R : j.sibling = R, j = R);
3114
- return we && mr(v, E), _;
3114
+ return Se && mr(v, E), _;
3115
3115
  }
3116
3116
  for (C = r(v, C); !R.done; E++, R = b.next())
3117
3117
  R = y(C, v, E, R.value, S), R !== null && (e && R.alternate !== null && C.delete(R.key === null ? E : R.key), g = s(R, g, E), j === null ? _ = R : j.sibling = R, j = R);
3118
3118
  return e && C.forEach(function(k) {
3119
3119
  return t(v, k);
3120
- }), we && mr(v, E), _;
3120
+ }), Se && mr(v, E), _;
3121
3121
  }
3122
3122
  function x(v, g, b, S) {
3123
3123
  if (typeof b == "object" && b !== null && b.type === Yr && b.key === null && (b = b.props.children), typeof b == "object" && b !== null) {
@@ -3190,10 +3190,10 @@ function sf(e, t) {
3190
3190
  default:
3191
3191
  e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = au(t, e);
3192
3192
  }
3193
- be(un), ye(un, t);
3193
+ we(un), ye(un, t);
3194
3194
  }
3195
3195
  function wo() {
3196
- be(un), be(As), be(Ms);
3196
+ we(un), we(As), we(Ms);
3197
3197
  }
3198
3198
  function Kv(e) {
3199
3199
  br(Ms.current);
@@ -3201,7 +3201,7 @@ function Kv(e) {
3201
3201
  t !== n && (ye(As, e), ye(un, n));
3202
3202
  }
3203
3203
  function af(e) {
3204
- As.current === e && (be(un), be(As));
3204
+ As.current === e && (we(un), we(As));
3205
3205
  }
3206
3206
  var Ce = fr(0);
3207
3207
  function Pa(e) {
@@ -3538,7 +3538,7 @@ var Ia = { readContext: Ft, useCallback: Xe, useContext: Xe, useEffect: Xe, useI
3538
3538
  }, useMutableSource: function() {
3539
3539
  }, useSyncExternalStore: function(e, t, n) {
3540
3540
  var r = Ee, o = rn();
3541
- if (we) {
3541
+ if (Se) {
3542
3542
  if (n === void 0)
3543
3543
  throw Error(I(407));
3544
3544
  n = n();
@@ -3557,7 +3557,7 @@ var Ia = { readContext: Ft, useCallback: Xe, useContext: Xe, useEffect: Xe, useI
3557
3557
  ), [e]), r.flags |= 2048, Ls(9, Xv.bind(null, r, s, n, t), void 0, null), n;
3558
3558
  }, useId: function() {
3559
3559
  var e = rn(), t = Be.identifierPrefix;
3560
- if (we) {
3560
+ if (Se) {
3561
3561
  var n = Cn, r = jn;
3562
3562
  n = (r & ~(1 << 32 - Yt(r) - 1)).toString(32) + n, t = ":" + t + "R" + n, n = Ds++, 0 < n && (t += "H" + n.toString(32)), t += ":";
3563
3563
  } else
@@ -3680,7 +3680,7 @@ function nt(e, t, n, r) {
3680
3680
  function wh(e, t, n, r, o) {
3681
3681
  n = n.render;
3682
3682
  var s = t.ref;
3683
- return fo(t, o), r = uf(e, t, n, r, s, o), n = df(), e !== null && !ut ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, $n(e, t, o)) : (we && n && Xd(t), t.flags |= 1, nt(e, t, r, o), t.child);
3683
+ return fo(t, o), r = uf(e, t, n, r, s, o), n = df(), e !== null && !ut ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, $n(e, t, o)) : (Se && n && Xd(t), t.flags |= 1, nt(e, t, r, o), t.child);
3684
3684
  }
3685
3685
  function Sh(e, t, n, r, o) {
3686
3686
  if (e === null) {
@@ -3725,7 +3725,7 @@ function vy(e, t) {
3725
3725
  }
3726
3726
  function Ou(e, t, n, r, o) {
3727
3727
  var s = ft(n) ? Tr : tt.current;
3728
- return s = yo(t, s), fo(t, o), n = uf(e, t, n, r, s, o), r = df(), e !== null && !ut ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, $n(e, t, o)) : (we && r && Xd(t), t.flags |= 1, nt(e, t, n, o), t.child);
3728
+ return s = yo(t, s), fo(t, o), n = uf(e, t, n, r, s, o), r = df(), e !== null && !ut ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, $n(e, t, o)) : (Se && r && Xd(t), t.flags |= 1, nt(e, t, n, o), t.child);
3729
3729
  }
3730
3730
  function _h(e, t, n, r, o) {
3731
3731
  if (ft(n)) {
@@ -3844,7 +3844,7 @@ function KS(e, t, n, r, o, s, i) {
3844
3844
  }
3845
3845
  return bf(), r = jc(Error(I(421))), ji(e, t, i, r);
3846
3846
  }
3847
- return o.data === "$?" ? (t.flags |= 128, t.child = e.child, t = i_.bind(null, e), o._reactRetry = t, null) : (e = s.treeContext, xt = tr(o.nextSibling), bt = t, we = !0, Kt = null, e !== null && ($t[It++] = jn, $t[It++] = Cn, $t[It++] = Or, jn = e.id, Cn = e.overflow, Or = t), t = hf(t, r.children), t.flags |= 4096, t);
3847
+ return o.data === "$?" ? (t.flags |= 128, t.child = e.child, t = i_.bind(null, e), o._reactRetry = t, null) : (e = s.treeContext, xt = tr(o.nextSibling), bt = t, Se = !0, Kt = null, e !== null && ($t[It++] = jn, $t[It++] = Cn, $t[It++] = Or, jn = e.id, Cn = e.overflow, Or = t), t = hf(t, r.children), t.flags |= 4096, t);
3848
3848
  }
3849
3849
  function Ch(e, t, n) {
3850
3850
  e.lanes |= t;
@@ -4038,7 +4038,7 @@ _y = function(e, t, n, r) {
4038
4038
  n !== r && (t.flags |= 4);
4039
4039
  };
4040
4040
  function Qo(e, t) {
4041
- if (!we)
4041
+ if (!Se)
4042
4042
  switch (e.tailMode) {
4043
4043
  case "hidden":
4044
4044
  t = e.tail;
@@ -4080,7 +4080,7 @@ function YS(e, t, n) {
4080
4080
  case 1:
4081
4081
  return ft(t.type) && Ca(), Ze(t), null;
4082
4082
  case 3:
4083
- return r = t.stateNode, wo(), be(dt), be(tt), lf(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (Si(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Kt !== null && (zu(Kt), Kt = null))), Au(e, t), Ze(t), null;
4083
+ return r = t.stateNode, wo(), we(dt), we(tt), lf(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (Si(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Kt !== null && (zu(Kt), Kt = null))), Au(e, t), Ze(t), null;
4084
4084
  case 5:
4085
4085
  af(t);
4086
4086
  var o = br(Ms.current);
@@ -4270,8 +4270,8 @@ function YS(e, t, n) {
4270
4270
  }
4271
4271
  return Ze(t), null;
4272
4272
  case 13:
4273
- if (be(Ce), r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
4274
- if (we && xt !== null && t.mode & 1 && !(t.flags & 128))
4273
+ if (we(Ce), r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
4274
+ if (Se && xt !== null && t.mode & 1 && !(t.flags & 128))
4275
4275
  Uv(), xo(), t.flags |= 98560, s = !1;
4276
4276
  else if (s = Si(t), r !== null && r.dehydrated !== null) {
4277
4277
  if (e === null) {
@@ -4296,7 +4296,7 @@ function YS(e, t, n) {
4296
4296
  case 17:
4297
4297
  return ft(t.type) && Ca(), Ze(t), null;
4298
4298
  case 19:
4299
- if (be(Ce), s = t.memoizedState, s === null)
4299
+ if (we(Ce), s = t.memoizedState, s === null)
4300
4300
  return Ze(t), null;
4301
4301
  if (r = (t.flags & 128) !== 0, i = s.rendering, i === null)
4302
4302
  if (r)
@@ -4316,7 +4316,7 @@ function YS(e, t, n) {
4316
4316
  else {
4317
4317
  if (!r)
4318
4318
  if (e = Pa(i), e !== null) {
4319
- if (t.flags |= 128, r = !0, n = e.updateQueue, n !== null && (t.updateQueue = n, t.flags |= 4), Qo(s, !0), s.tail === null && s.tailMode === "hidden" && !i.alternate && !we)
4319
+ if (t.flags |= 128, r = !0, n = e.updateQueue, n !== null && (t.updateQueue = n, t.flags |= 4), Qo(s, !0), s.tail === null && s.tailMode === "hidden" && !i.alternate && !Se)
4320
4320
  return Ze(t), null;
4321
4321
  } else
4322
4322
  2 * Pe() - s.renderingStartTime > _o && n !== 1073741824 && (t.flags |= 128, r = !0, Qo(s, !1), t.lanes = 4194304);
@@ -4338,18 +4338,18 @@ function QS(e, t) {
4338
4338
  case 1:
4339
4339
  return ft(t.type) && Ca(), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
4340
4340
  case 3:
4341
- return wo(), be(dt), be(tt), lf(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
4341
+ return wo(), we(dt), we(tt), lf(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
4342
4342
  case 5:
4343
4343
  return af(t), null;
4344
4344
  case 13:
4345
- if (be(Ce), e = t.memoizedState, e !== null && e.dehydrated !== null) {
4345
+ if (we(Ce), e = t.memoizedState, e !== null && e.dehydrated !== null) {
4346
4346
  if (t.alternate === null)
4347
4347
  throw Error(I(340));
4348
4348
  xo();
4349
4349
  }
4350
4350
  return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
4351
4351
  case 19:
4352
- return be(Ce), null;
4352
+ return we(Ce), null;
4353
4353
  case 4:
4354
4354
  return wo(), null;
4355
4355
  case 10:
@@ -5258,7 +5258,7 @@ function Ir(e) {
5258
5258
  }
5259
5259
  }
5260
5260
  function xf() {
5261
- yt = so.current, be(so);
5261
+ yt = so.current, we(so);
5262
5262
  }
5263
5263
  function Sr(e, t) {
5264
5264
  e.finishedWork = null, e.finishedLanes = 0;
@@ -5271,7 +5271,7 @@ function Sr(e, t) {
5271
5271
  r = r.type.childContextTypes, r != null && Ca();
5272
5272
  break;
5273
5273
  case 3:
5274
- wo(), be(dt), be(tt), lf();
5274
+ wo(), we(dt), we(tt), lf();
5275
5275
  break;
5276
5276
  case 5:
5277
5277
  af(r);
@@ -5280,10 +5280,10 @@ function Sr(e, t) {
5280
5280
  wo();
5281
5281
  break;
5282
5282
  case 13:
5283
- be(Ce);
5283
+ we(Ce);
5284
5284
  break;
5285
5285
  case 19:
5286
- be(Ce);
5286
+ we(Ce);
5287
5287
  break;
5288
5288
  case 10:
5289
5289
  nf(r.type._context);
@@ -5349,7 +5349,7 @@ function Ty(e, t) {
5349
5349
  }
5350
5350
  c = Error(I(426));
5351
5351
  }
5352
- } else if (we && l.mode & 1) {
5352
+ } else if (Se && l.mode & 1) {
5353
5353
  var x = xh(i);
5354
5354
  if (x !== null) {
5355
5355
  !(x.flags & 65536) && (x.flags |= 256), bh(x, i, l, s, t), Jd(So(c, l));
@@ -5672,7 +5672,7 @@ Ay = function(e, t, n) {
5672
5672
  ut = !!(e.flags & 131072);
5673
5673
  }
5674
5674
  else
5675
- ut = !1, we && t.flags & 1048576 && Fv(t, Na, t.index);
5675
+ ut = !1, Se && t.flags & 1048576 && Fv(t, Na, t.index);
5676
5676
  switch (t.lanes = 0, t.tag) {
5677
5677
  case 2:
5678
5678
  var r = t.type;
@@ -5680,7 +5680,7 @@ Ay = function(e, t, n) {
5680
5680
  var o = yo(t, tt.current);
5681
5681
  fo(t, n), o = uf(null, t, r, e, o, n);
5682
5682
  var s = df();
5683
- return t.flags |= 1, typeof o == "object" && o !== null && typeof o.render == "function" && o.$$typeof === void 0 ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, ft(r) ? (s = !0, Ea(t)) : s = !1, t.memoizedState = o.state !== null && o.state !== void 0 ? o.state : null, of(t), o.updater = xl, t.stateNode = o, o._reactInternals = t, ku(t, r, e, n), t = Pu(null, t, r, !0, s, n)) : (t.tag = 0, we && s && Xd(t), nt(null, t, o, n), t = t.child), t;
5683
+ return t.flags |= 1, typeof o == "object" && o !== null && typeof o.render == "function" && o.$$typeof === void 0 ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, ft(r) ? (s = !0, Ea(t)) : s = !1, t.memoizedState = o.state !== null && o.state !== void 0 ? o.state : null, of(t), o.updater = xl, t.stateNode = o, o._reactInternals = t, ku(t, r, e, n), t = Pu(null, t, r, !0, s, n)) : (t.tag = 0, Se && s && Xd(t), nt(null, t, o, n), t = t.child), t;
5684
5684
  case 16:
5685
5685
  r = t.elementType;
5686
5686
  e: {
@@ -5723,7 +5723,7 @@ Ay = function(e, t, n) {
5723
5723
  o = So(Error(I(424)), t), t = jh(e, t, r, n, o);
5724
5724
  break e;
5725
5725
  } else
5726
- for (xt = tr(t.stateNode.containerInfo.firstChild), bt = t, we = !0, Kt = null, n = Wv(t, null, r, n), t.child = n; n; )
5726
+ for (xt = tr(t.stateNode.containerInfo.firstChild), bt = t, Se = !0, Kt = null, n = Wv(t, null, r, n), t.child = n; n; )
5727
5727
  n.flags = n.flags & -3 | 4096, n = n.sibling;
5728
5728
  else {
5729
5729
  if (xo(), r === o) {
@@ -9509,7 +9509,7 @@ Ka.propTypes = {
9509
9509
  cancelText: q.string,
9510
9510
  canSave: q.bool
9511
9511
  };
9512
- const Se = ({ children: e, color: t, dismissable: n = !1 }) => /* @__PURE__ */ a.jsxs(
9512
+ const be = ({ children: e, color: t, dismissable: n = !1 }) => /* @__PURE__ */ a.jsxs(
9513
9513
  "div",
9514
9514
  {
9515
9515
  className: `alert alert-${t} mt-3 alert-dismissible show`,
@@ -9797,7 +9797,7 @@ function bx({ onClose: e }) {
9797
9797
  })();
9798
9798
  }, [l]);
9799
9799
  let p = null;
9800
- t ? p = /* @__PURE__ */ a.jsx("p", { children: "Loading…" }) : s !== null ? p = /* @__PURE__ */ a.jsx(Se, { color: "danger", children: s }) : r.length == 0 && (p = /* @__PURE__ */ a.jsx(Se, { children: "There are currently no resources available to add." }));
9800
+ t ? p = /* @__PURE__ */ a.jsx("p", { children: "Loading…" }) : s !== null ? p = /* @__PURE__ */ a.jsx(be, { color: "danger", children: s }) : r.length == 0 && (p = /* @__PURE__ */ a.jsx(be, { children: "There are currently no resources available to add." }));
9801
9801
  const y = [{ value: -1, label: "Select a resource..." }].concat(
9802
9802
  r.map((g) => ({
9803
9803
  value: g.xras_cider_resource_id,
@@ -10587,8 +10587,8 @@ function jx({
10587
10587
  F,
10588
10588
  V
10589
10589
  ), [Z, J] = w.useState(!1);
10590
- return d ? /* @__PURE__ */ a.jsx(Do, {}) : f.length > 0 ? /* @__PURE__ */ a.jsx("div", { children: f.map((X, se) => /* @__PURE__ */ a.jsx(Se, { color: "danger", dismissable: !0, children: X }, se)) }) : u ? /* @__PURE__ */ a.jsxs("div", { className: "edit-resource", children: [
10591
- p.message && /* @__PURE__ */ a.jsx(Se, { color: p.color, dismissable: !0, children: p.message }),
10590
+ return d ? /* @__PURE__ */ a.jsx(Do, {}) : f.length > 0 ? /* @__PURE__ */ a.jsx("div", { children: f.map((X, se) => /* @__PURE__ */ a.jsx(be, { color: "danger", dismissable: !0, children: X }, se)) }) : u ? /* @__PURE__ */ a.jsxs("div", { className: "edit-resource", children: [
10591
+ p.message && /* @__PURE__ */ a.jsx(be, { color: p.color, dismissable: !0, children: p.message }),
10592
10592
  /* @__PURE__ */ a.jsxs("div", { children: [
10593
10593
  /* @__PURE__ */ a.jsx("h2", { children: "Resource Propeties" }),
10594
10594
  /* @__PURE__ */ a.jsx(
@@ -10748,32 +10748,36 @@ const Le = {
10748
10748
  title: s,
10749
10749
  users: i.map(
10750
10750
  ({
10751
- email: d,
10752
- firstName: f,
10753
- lastName: p,
10754
- organization: y,
10755
- resources: m,
10756
- role: h,
10757
- username: x
10751
+ eligibleReason: d,
10752
+ email: f,
10753
+ firstName: p,
10754
+ isEligible: y,
10755
+ lastName: m,
10756
+ organization: h,
10757
+ resources: x,
10758
+ role: v,
10759
+ username: g
10758
10760
  }) => {
10759
- const v = m.filter(
10760
- (j) => j.userAccountState == "active" && j.unitType != "ACCESS Credits"
10761
- ), g = v.map((j) => j.xrasResourceId), b = v.filter((j) => j.resourceProviderState == "pending-active").map((j) => j.xrasResourceId), S = m.filter((j) => j.userAccountState != "active").map((j) => j.xrasResourceId), _ = {};
10762
- for (let j of v)
10763
- _[j.xrasResourceId] = j.resourceUsername;
10761
+ const b = x.filter(
10762
+ (E) => E.userAccountState == "active" && E.unitType != "ACCESS Credits"
10763
+ ), S = b.map((E) => E.xrasResourceId), _ = b.filter((E) => E.resourceProviderState == "pending-active").map((E) => E.xrasResourceId), j = x.filter((E) => E.userAccountState != "active").map((E) => E.xrasResourceId), C = {};
10764
+ for (let E of b)
10765
+ C[E.xrasResourceId] = E.resourceUsername;
10764
10766
  return {
10765
- email: d,
10766
- firstName: f,
10767
- initialResourceIds: [...g],
10768
- initialRole: h,
10769
- lastName: p,
10770
- organization: y,
10771
- resourceAccountPendingIds: b,
10772
- resourceAccountInactiveIds: S,
10773
- resourceIds: g,
10774
- resourceUsernames: _,
10775
- role: h,
10776
- username: x
10767
+ eligibility: y,
10768
+ eligibilityReason: d,
10769
+ email: f,
10770
+ firstName: p,
10771
+ initialResourceIds: [...S],
10772
+ initialRole: v,
10773
+ lastName: m,
10774
+ organization: h,
10775
+ resourceAccountPendingIds: _,
10776
+ resourceAccountInactiveIds: j,
10777
+ resourceIds: S,
10778
+ resourceUsernames: C,
10779
+ role: v,
10780
+ username: g
10777
10781
  };
10778
10782
  }
10779
10783
  ).sort((d, f) => fm(d) < fm(f) ? -1 : 1),
@@ -15269,7 +15273,7 @@ function ST({ requestId: e, grantNumber: t, actionId: n }) {
15269
15273
  return /* @__PURE__ */ a.jsxs(ge, { show: i.showDeleteModal, onHide: f, scrollable: !0, children: [
15270
15274
  /* @__PURE__ */ a.jsx(ge.Header, { closeButton: !0, children: /* @__PURE__ */ a.jsx(ge.Title, { children: "Confirm Deletion" }) }),
15271
15275
  /* @__PURE__ */ a.jsxs(ge.Body, { children: [
15272
- d && /* @__PURE__ */ a.jsxs(Se, { color: "danger", children: [
15276
+ d && /* @__PURE__ */ a.jsxs(be, { color: "danger", children: [
15273
15277
  "Deletion of the ",
15274
15278
  c ? "request" : "action",
15275
15279
  " failed."
@@ -20703,7 +20707,7 @@ function JI({ requestId: e, grantNumber: t }) {
20703
20707
  }
20704
20708
  const P = k.length > 0;
20705
20709
  let D;
20706
- b ? D = /* @__PURE__ */ a.jsx(Se, { color: "info", children: "Your exchange request has been submitted." }) : S && _.length > 0 && _[0].includes("PI") && _[0].includes("person status Unknown") ? D = /* @__PURE__ */ a.jsx(Se, { color: "danger", children: p.currentUser.role === "pi" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
20710
+ b ? D = /* @__PURE__ */ a.jsx(be, { color: "info", children: "Your exchange request has been submitted." }) : S && _.length > 0 && _[0].includes("PI") && _[0].includes("person status Unknown") ? D = /* @__PURE__ */ a.jsx(be, { color: "danger", children: p.currentUser.role === "pi" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
20707
20711
  "Please",
20708
20712
  " ",
20709
20713
  /* @__PURE__ */ a.jsx("a", { href: te.routes.profile_path(), children: "update your academic status" }),
@@ -20715,7 +20719,7 @@ function JI({ requestId: e, grantNumber: t }) {
20715
20719
  p.users.filter((M) => M.role === "pi").map((M) => `${M.firstName} ${M.lastName}`),
20716
20720
  " ",
20717
20721
  "to update the academic status in their profile, and then try again."
20718
- ] }) }) : S ? D = /* @__PURE__ */ a.jsxs(Se, { color: "danger", children: [
20722
+ ] }) }) : S ? D = /* @__PURE__ */ a.jsxs(be, { color: "danger", children: [
20719
20723
  "Sorry, something went wrong: ",
20720
20724
  _.join(", "),
20721
20725
  ". For assistance, please",
@@ -20723,11 +20727,11 @@ function JI({ requestId: e, grantNumber: t }) {
20723
20727
  /* @__PURE__ */ a.jsx("a", { href: "https://support.access-ci.org/open-a-ticket", children: "open a help ticket" }),
20724
20728
  " ",
20725
20729
  "and include this message."
20726
- ] }) : j ? D = /* @__PURE__ */ a.jsx(Se, { color: "warning", children: "You have an exchange request under review. The information below reflects the pending exchange request." }) : n.timeStatus == "current" && !p.isManager ? D = /* @__PURE__ */ a.jsxs(Se, { color: "warning", children: [
20730
+ ] }) : j ? D = /* @__PURE__ */ a.jsx(be, { color: "warning", children: "You have an exchange request under review. The information below reflects the pending exchange request." }) : n.timeStatus == "current" && !p.isManager ? D = /* @__PURE__ */ a.jsxs(be, { color: "warning", children: [
20727
20731
  "You do not have permission to manage resources for this project. Please contact ",
20728
20732
  Df(p),
20729
20733
  " to request a change."
20730
- ] }) : P && (D = /* @__PURE__ */ a.jsxs(Se, { color: "warning", children: [
20734
+ ] }) : P && (D = /* @__PURE__ */ a.jsxs(be, { color: "warning", children: [
20731
20735
  k,
20732
20736
  " Please adjust your balance values."
20733
20737
  ] }));
@@ -21229,7 +21233,7 @@ function nA({ requestId: e, grantNumber: t }) {
21229
21233
  if (r.usageDetailStatus == Le.pending)
21230
21234
  s = /* @__PURE__ */ a.jsx(Do, {});
21231
21235
  else if (r.usageDetailStatus == Le.error)
21232
- s = /* @__PURE__ */ a.jsx(Se, { color: "danger", children: "An error occurred while loading usage data." });
21236
+ s = /* @__PURE__ */ a.jsx(be, { color: "danger", children: "An error occurred while loading usage data." });
21233
21237
  else {
21234
21238
  const { projectTitle: l, resourceDisplayName: c, resourceRepositoryKey: u, users: d } = r.usageDetail, { full: f, short: p } = Pl(c), y = r.resources.find(
21235
21239
  (v) => v.resourceRepositoryKey == u
@@ -21297,7 +21301,7 @@ function nA({ requestId: e, grantNumber: t }) {
21297
21301
  format: m
21298
21302
  }
21299
21303
  ];
21300
- s = d.length ? /* @__PURE__ */ a.jsx(Ln, { rows: d, columns: x }) : /* @__PURE__ */ a.jsx(Se, { color: "info", children: "There is no usage for this resource." });
21304
+ s = d.length ? /* @__PURE__ */ a.jsx(Ln, { rows: d, columns: x }) : /* @__PURE__ */ a.jsx(be, { color: "info", children: "There is no usage for this resource." });
21301
21305
  }
21302
21306
  return /* @__PURE__ */ a.jsxs(
21303
21307
  ge,
@@ -21412,7 +21416,7 @@ function aA({ grantNumber: e, requestId: t }) {
21412
21416
  return;
21413
21417
  const f = n.isManager, p = "Exchange" in d.allowedActions, y = n.usersStatus == c.pending, m = n.usersStatus == c.success, h = n.usersStatus == c.error, x = n.users, v = d.resources.filter(sd), g = v.length == 0, b = x.find((R) => R.hasChanges) !== void 0, S = x.find((R) => R.role != "pi") !== void 0;
21414
21418
  let _;
21415
- m && !b ? _ = /* @__PURE__ */ a.jsx(Se, { color: "info", children: "Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page." }) : h ? _ = /* @__PURE__ */ a.jsx(Se, { color: "danger", children: "Sorry, your changes could not be saved. Please try again later." }) : f ? v.length ? g && (_ = /* @__PURE__ */ a.jsx(Se, { color: "warning", children: "This project does not have any active resources." })) : _ = /* @__PURE__ */ a.jsxs(Se, { color: "warning", children: [
21419
+ m && !b ? _ = /* @__PURE__ */ a.jsx(be, { color: "info", children: "Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page." }) : h ? _ = /* @__PURE__ */ a.jsx(be, { color: "danger", children: "Sorry, your changes could not be saved. Please try again later." }) : f ? v.length ? g && (_ = /* @__PURE__ */ a.jsx(be, { color: "warning", children: "This project does not have any active resources." })) : _ = /* @__PURE__ */ a.jsxs(be, { color: "warning", children: [
21416
21420
  "This project does not have any resources.",
21417
21421
  " ",
21418
21422
  p ? /* @__PURE__ */ a.jsx(
@@ -21430,7 +21434,7 @@ function aA({ grantNumber: e, requestId: t }) {
21430
21434
  ) : null,
21431
21435
  " ",
21432
21436
  "Additional users can be added after an exchange is approved."
21433
- ] }) : _ = /* @__PURE__ */ a.jsxs(Se, { color: "warning", children: [
21437
+ ] }) : _ = /* @__PURE__ */ a.jsxs(be, { color: "warning", children: [
21434
21438
  "You do not have permission to manage users for this project. Please contact ",
21435
21439
  Df(n),
21436
21440
  " to request a change."
@@ -21624,17 +21628,21 @@ function lA({ requestId: e, grantNumber: t }) {
21624
21628
  if (!n)
21625
21629
  return;
21626
21630
  if (n.error)
21627
- return /* @__PURE__ */ a.jsx(Se, { color: "danger", children: n.error });
21631
+ return /* @__PURE__ */ a.jsx(be, { color: "danger", children: n.error });
21628
21632
  const i = n.timeStatus || n.actions[0].status.toLowerCase(), l = n.actions.find(
21629
- ({ showDeleteModal: u }) => u
21633
+ ({ showDeleteModal: d }) => d
21630
21634
  ), c = [];
21631
- return n.resources.length || c.push("resources"), e != r.currentRequestId && c.push("users"), /* @__PURE__ */ a.jsxs("div", { className: "request", children: [
21632
- n.returnedForCorrections ? /* @__PURE__ */ a.jsxs(Se, { color: "warning", children: [
21635
+ n.resources.length || c.push("resources"), e != r.currentRequestId && c.push("users");
21636
+ const u = (r.users || []).filter(
21637
+ (d) => d.eligibility === "no" && d.role !== "user"
21638
+ );
21639
+ return /* @__PURE__ */ a.jsxs("div", { className: "request", children: [
21640
+ n.returnedForCorrections ? /* @__PURE__ */ a.jsxs(be, { color: "warning", children: [
21633
21641
  /* @__PURE__ */ a.jsx("p", { children: "Your request has been returned for corrections. These are the notes from the Allocations Team" }),
21634
21642
  /* @__PURE__ */ a.jsx("div", { className: iR.returnedForCorrectionsNotes, children: n.returnedForCorrectionsNotes }),
21635
21643
  /* @__PURE__ */ a.jsx("p", { className: "mt-3", children: "Please address these issues by clicking the Edit button to edit your request." })
21636
21644
  ] }) : "",
21637
- n.timeStatus != "current" && !n.returnedForCorrections ? /* @__PURE__ */ a.jsxs(Se, { color: "warning", children: [
21645
+ n.timeStatus != "current" && !n.returnedForCorrections ? /* @__PURE__ */ a.jsxs(be, { color: "warning", children: [
21638
21646
  "You are viewing ",
21639
21647
  "aeiou".includes(i[0]) ? "an" : "a",
21640
21648
  " ",
@@ -21647,13 +21655,29 @@ function lA({ requestId: e, grantNumber: t }) {
21647
21655
  "a",
21648
21656
  {
21649
21657
  href: te.routes.request_path(r.currentRequestId),
21650
- onClick: (u) => {
21651
- u.preventDefault(), o(r.currentRequestId);
21658
+ onClick: (d) => {
21659
+ d.preventDefault(), o(r.currentRequestId);
21652
21660
  },
21653
21661
  children: "Go to the current request."
21654
21662
  }
21655
21663
  ) : null
21656
21664
  ] }) : null,
21665
+ r.isManager && u.length > 0 && /* @__PURE__ */ a.jsxs(be, { color: "danger", children: [
21666
+ "Some project personnel need to update their profiles. You will be unable to submit exchanges, renewals, and other actions until these issues are resolved:",
21667
+ /* @__PURE__ */ a.jsx("br", {}),
21668
+ /* @__PURE__ */ a.jsx("ul", { className: "fs-6 mb-0", children: u.map((d) => /* @__PURE__ */ a.jsxs("li", { children: [
21669
+ /* @__PURE__ */ a.jsxs("strong", { children: [
21670
+ d.firstName,
21671
+ " ",
21672
+ d.lastName,
21673
+ " (",
21674
+ d.username,
21675
+ "):"
21676
+ ] }),
21677
+ " ",
21678
+ d.eligibilityReason
21679
+ ] }, d.username)) })
21680
+ ] }),
21657
21681
  /* @__PURE__ */ a.jsxs(gN, { activeKey: r.tab, onSelect: s, className: "mt-3 mb-3", children: [
21658
21682
  /* @__PURE__ */ a.jsx($i, { eventKey: "overview", title: "Overview", className: "mb-0", children: /* @__PURE__ */ a.jsx(YT, { requestId: e, grantNumber: t }) }),
21659
21683
  /* @__PURE__ */ a.jsx(
@@ -21761,7 +21785,7 @@ function uA({ open: e = !1, grantNumber: t, title: n, status: r }) {
21761
21785
  let u = null;
21762
21786
  if (o && i)
21763
21787
  if (i.error)
21764
- u = /* @__PURE__ */ a.jsx(Se, { color: "danger", children: i.error });
21788
+ u = /* @__PURE__ */ a.jsx(be, { color: "danger", children: i.error });
21765
21789
  else {
21766
21790
  let d;
21767
21791
  const f = i.requestsList.map((p) => (p.requestId == i.selectedRequestId && (d = p), /* @__PURE__ */ a.jsx("option", { value: p.requestId, children: Af(p) }, p.requestId)));
@@ -21828,7 +21852,7 @@ function dA({ username: e, openFirst: t = 1 }) {
21828
21852
  if (r)
21829
21853
  return /* @__PURE__ */ a.jsx(Do, {});
21830
21854
  if (n)
21831
- return /* @__PURE__ */ a.jsxs(Se, { color: "danger", children: [
21855
+ return /* @__PURE__ */ a.jsxs(be, { color: "danger", children: [
21832
21856
  n,
21833
21857
  " ",
21834
21858
  /* @__PURE__ */ a.jsx(
@@ -24431,7 +24455,7 @@ function JM({ allocationTypes: e }) {
24431
24455
  f();
24432
24456
  }, []);
24433
24457
  let m = null;
24434
- return s.length !== 0 && (m = /* @__PURE__ */ a.jsx(Se, { color: l ? "success" : "warning", children: s })), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
24458
+ return s.length !== 0 && (m = /* @__PURE__ */ a.jsx(be, { color: l ? "success" : "warning", children: s })), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
24435
24459
  /* @__PURE__ */ a.jsx("p", { children: "Type new keywords separated by semicolons, select the desired allocation types, and then submit." }),
24436
24460
  /* @__PURE__ */ a.jsx(a.Fragment, { children: m }),
24437
24461
  /* @__PURE__ */ a.jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xras/ui",
3
- "version": "0.19.0",
3
+ "version": "0.20.1",
4
4
  "description": "User interface components for XRAS",
5
5
  "repository": "github:access-ci-org/xras-ui",
6
6
  "license": "Apache-2.0",