climb-onyx-gui 0.10.1 → 0.10.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.
Files changed (2) hide show
  1. package/dist/climb-onyx-gui.js +140 -131
  2. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { jsx as Y, jsxs as Vt, Fragment as lc } from "react/jsx-runtime";
2
2
  import * as re from "react";
3
- import Yn, { useContext as Dt, useMemo as mn, useRef as Ot, useState as ln, useCallback as ht, useEffect as $n, useLayoutEffect as g0, createContext as TA, cloneElement as cE, forwardRef as y0, useImperativeHandle as JF, useReducer as qF, Component as KF, Fragment as jS, memo as eB } from "react";
3
+ import Yn, { useContext as Dt, useMemo as mn, useRef as Ot, useState as an, useCallback as ht, useEffect as $n, useLayoutEffect as g0, createContext as TA, cloneElement as cE, forwardRef as y0, useImperativeHandle as JF, useReducer as qF, Component as KF, Fragment as jS, memo as eB } from "react";
4
4
  function hh(a) {
5
5
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
6
6
  }
@@ -1219,7 +1219,7 @@ function wB(a, r) {
1219
1219
  return String(a);
1220
1220
  }
1221
1221
  function RB(a, r, u) {
1222
- var f = Ot(a !== void 0), c = ln(r), p = c[0], h = c[1], C = a !== void 0, y = f.current;
1222
+ var f = Ot(a !== void 0), c = an(r), p = c[0], h = c[1], C = a !== void 0, y = f.current;
1223
1223
  return f.current = C, !C && y && p !== r && h(r), [C ? a : p, ht(function(E) {
1224
1224
  for (var w = arguments.length, T = new Array(w > 1 ? w - 1 : 0), A = 1; A < w; A++)
1225
1225
  T[A - 1] = arguments[A];
@@ -1270,7 +1270,7 @@ const GA = /* @__PURE__ */ re.forwardRef(({
1270
1270
  })));
1271
1271
  GA.displayName = "AlertHeading";
1272
1272
  function AB() {
1273
- return ln(null);
1273
+ return an(null);
1274
1274
  }
1275
1275
  function OB(a, r, u, f = !1) {
1276
1276
  const c = Pn(u);
@@ -4071,7 +4071,7 @@ function _B() {
4071
4071
  for (var n = Br; n; )
4072
4072
  n = Xa(n.nextSibling);
4073
4073
  }
4074
- function an() {
4074
+ function on() {
4075
4075
  Br = Kr = null, qt = !1;
4076
4076
  }
4077
4077
  function bp(n) {
@@ -4689,7 +4689,7 @@ function _B() {
4689
4689
  }
4690
4690
  function tf(n) {
4691
4691
  var i = Ni(n, 1);
4692
- i !== null && on(i, n, 1, -1);
4692
+ i !== null && un(i, n, 1, -1);
4693
4693
  }
4694
4694
  function nf(n) {
4695
4695
  var i = $e();
@@ -4780,7 +4780,7 @@ function _B() {
4780
4780
  nl(i, s);
4781
4781
  else if (s = wm(n, i, s, v), s !== null) {
4782
4782
  var g = Un();
4783
- on(s, n, v, g), co(s, i, v);
4783
+ un(s, n, v, g), co(s, i, v);
4784
4784
  }
4785
4785
  }
4786
4786
  function xs(n, i, s) {
@@ -4800,7 +4800,7 @@ function _B() {
4800
4800
  } catch {
4801
4801
  } finally {
4802
4802
  }
4803
- s = wm(n, i, g, v), s !== null && (g = Un(), on(s, n, v, g), co(s, i, v));
4803
+ s = wm(n, i, g, v), s !== null && (g = Un(), un(s, n, v, g), co(s, i, v));
4804
4804
  }
4805
4805
  }
4806
4806
  function Tp(n) {
@@ -4926,15 +4926,15 @@ function _B() {
4926
4926
  }, enqueueSetState: function(n, i, s) {
4927
4927
  n = n._reactInternals;
4928
4928
  var v = Un(), g = Fi(n), S = Vr(v, g);
4929
- S.payload = i, s != null && (S.callback = s), i = so(n, S, g), i !== null && (on(i, n, g, v), Zc(i, n, g));
4929
+ S.payload = i, s != null && (S.callback = s), i = so(n, S, g), i !== null && (un(i, n, g, v), Zc(i, n, g));
4930
4930
  }, enqueueReplaceState: function(n, i, s) {
4931
4931
  n = n._reactInternals;
4932
4932
  var v = Un(), g = Fi(n), S = Vr(v, g);
4933
- S.tag = 1, S.payload = i, s != null && (S.callback = s), i = so(n, S, g), i !== null && (on(i, n, g, v), Zc(i, n, g));
4933
+ S.tag = 1, S.payload = i, s != null && (S.callback = s), i = so(n, S, g), i !== null && (un(i, n, g, v), Zc(i, n, g));
4934
4934
  }, enqueueForceUpdate: function(n, i) {
4935
4935
  n = n._reactInternals;
4936
4936
  var s = Un(), v = Fi(n), g = Vr(s, v);
4937
- g.tag = 2, i != null && (g.callback = i), i = so(n, g, v), i !== null && (on(i, n, v, s), Zc(i, n, v));
4937
+ g.tag = 2, i != null && (g.callback = i), i = so(n, g, v), i !== null && (un(i, n, v, s), Zc(i, n, v));
4938
4938
  } };
4939
4939
  function Om(n, i, s, v, g, S, I) {
4940
4940
  return n = n.stateNode, typeof n.shouldComponentUpdate == "function" ? n.shouldComponentUpdate(v, S, I) : i.prototype && i.prototype.isPureReactComponent ? !is(s, v) || !is(g, S) : !0;
@@ -5120,7 +5120,7 @@ Error generating stack: ` + S.message + `
5120
5120
  i.pendingContext ? oo(n, i.pendingContext, i.pendingContext !== i.context) : i.context && oo(n, i.context, !1), Ep(n, i.containerInfo);
5121
5121
  }
5122
5122
  function Vm(n, i, s, v, g) {
5123
- return an(), bp(g), i.flags |= 256, yn(n, i, s, v), i.child;
5123
+ return on(), bp(g), i.flags |= 256, yn(n, i, s, v), i.child;
5124
5124
  }
5125
5125
  var Is = { dehydrated: null, treeContext: null, retryLane: 0 };
5126
5126
  function eu(n) {
@@ -5193,7 +5193,7 @@ Error generating stack: ` + S.message + `
5193
5193
  default:
5194
5194
  g = 0;
5195
5195
  }
5196
- g = g & (v.suspendedLanes | I) ? 0 : g, g !== 0 && g !== S.retryLane && (S.retryLane = g, Ni(n, g), on(v, n, g, -1));
5196
+ g = g & (v.suspendedLanes | I) ? 0 : g, g !== 0 && g !== S.retryLane && (S.retryLane = g, Ni(n, g), un(v, n, g, -1));
5197
5197
  }
5198
5198
  return Ms(), v = Ap(Error(u(421))), gf(n, i, I, v);
5199
5199
  }
@@ -5280,7 +5280,7 @@ Error generating stack: ` + S.message + `
5280
5280
  function Mi(n, i, s) {
5281
5281
  switch (i.tag) {
5282
5282
  case 3:
5283
- sb(i), an();
5283
+ sb(i), on();
5284
5284
  break;
5285
5285
  case 5:
5286
5286
  Im(i);
@@ -5622,7 +5622,7 @@ Error generating stack: ` + S.message + `
5622
5622
  case 13:
5623
5623
  if (Lt(nn), v = i.memoizedState, n === null || n.memoizedState !== null && n.memoizedState.dehydrated !== null) {
5624
5624
  if (qt && Br !== null && i.mode & 1 && !(i.flags & 128))
5625
- Sm(), an(), i.flags |= 98560, S = !1;
5625
+ Sm(), on(), i.flags |= 98560, S = !1;
5626
5626
  else if (S = jc(i), v !== null && v.dehydrated !== null) {
5627
5627
  if (n === null) {
5628
5628
  if (!S)
@@ -5631,7 +5631,7 @@ Error generating stack: ` + S.message + `
5631
5631
  throw Error(u(317));
5632
5632
  S[ni] = i;
5633
5633
  } else
5634
- an(), !(i.flags & 128) && (i.memoizedState = null), i.flags |= 4;
5634
+ on(), !(i.flags & 128) && (i.memoizedState = null), i.flags |= 4;
5635
5635
  vr(i), S = !1;
5636
5636
  } else
5637
5637
  ya !== null && (Pp(ya), ya = null), S = !0;
@@ -5695,7 +5695,7 @@ Error generating stack: ` + S.message + `
5695
5695
  if (Lt(nn), n = i.memoizedState, n !== null && n.dehydrated !== null) {
5696
5696
  if (i.alternate === null)
5697
5697
  throw Error(u(340));
5698
- an();
5698
+ on();
5699
5699
  }
5700
5700
  return n = i.flags, n & 65536 ? (i.flags = n & -65537 | 128, i) : null;
5701
5701
  case 19:
@@ -6408,7 +6408,7 @@ Error generating stack: ` + S.message + `
6408
6408
  function Fi(n) {
6409
6409
  return n.mode & 1 ? xt & 2 && Mn !== 0 ? Mn & -Mn : Uc.transition !== null ? (ru === 0 && (ru = Cc()), ru) : (n = Ht, n !== 0 || (n = window.event, n = n === void 0 ? 16 : jd(n.type)), n) : 1;
6410
6410
  }
6411
- function on(n, i, s, v) {
6411
+ function un(n, i, s, v) {
6412
6412
  if (50 < Ns)
6413
6413
  throw Ns = 0, If = null, Error(u(185));
6414
6414
  Fo(n, s, v), (!(xt & 2) || n !== vn) && (n === vn && (!(xt & 2) && (vl |= s), Ln === 4 && ui(n, Mn)), Fn(n, v), s === 1 && xt === 0 && !(i.mode & 1) && (hl = fn() + 500, zn && Mr()));
@@ -7076,7 +7076,7 @@ Error generating stack: ` + S.message + `
7076
7076
  for (Br = Xa(i.stateNode.containerInfo.firstChild), Kr = i, qt = !0, ya = null, s = xm(i, null, v, s), i.child = s; s; )
7077
7077
  s.flags = s.flags & -3 | 4096, s = s.sibling;
7078
7078
  else {
7079
- if (an(), v === g) {
7079
+ if (on(), v === g) {
7080
7080
  i = bn(n, i, s);
7081
7081
  break e;
7082
7082
  }
@@ -7305,7 +7305,7 @@ Error generating stack: ` + S.message + `
7305
7305
  }
7306
7306
  function Lf(n, i, s, v) {
7307
7307
  var g = i.current, S = Un(), I = Fi(g);
7308
- return s = Up(s), i.context === null ? i.context = s : i.pendingContext = s, i = Vr(S, I), i.payload = { element: n }, v = v === void 0 ? null : v, v !== null && (i.callback = v), n = so(g, i, I), n !== null && (on(n, g, I, S), Zc(n, g, I)), I;
7308
+ return s = Up(s), i.context === null ? i.context = s : i.pendingContext = s, i = Vr(S, I), i.payload = { element: n }, v = v === void 0 ? null : v, v !== null && (i.callback = v), n = so(g, i, I), n !== null && (un(n, g, I, S), Zc(n, g, I)), I;
7309
7309
  }
7310
7310
  function Bs(n) {
7311
7311
  if (n = n.current, !n.child)
@@ -7426,7 +7426,7 @@ Error generating stack: ` + S.message + `
7426
7426
  var v = Ni(n, 1);
7427
7427
  if (v !== null) {
7428
7428
  var g = Un();
7429
- on(v, n, 1, g);
7429
+ un(v, n, 1, g);
7430
7430
  }
7431
7431
  }), Xp(n, 1);
7432
7432
  }
@@ -7435,7 +7435,7 @@ Error generating stack: ` + S.message + `
7435
7435
  var i = Ni(n, 134217728);
7436
7436
  if (i !== null) {
7437
7437
  var s = Un();
7438
- on(i, n, 134217728, s);
7438
+ un(i, n, 134217728, s);
7439
7439
  }
7440
7440
  Xp(n, 134217728);
7441
7441
  }
@@ -7444,7 +7444,7 @@ Error generating stack: ` + S.message + `
7444
7444
  var i = Fi(n), s = Ni(n, i);
7445
7445
  if (s !== null) {
7446
7446
  var v = Un();
7447
- on(s, n, i, v);
7447
+ un(s, n, i, v);
7448
7448
  }
7449
7449
  Xp(n, i);
7450
7450
  }
@@ -10156,7 +10156,7 @@ Check the render method of \`` + e + "`." : "";
10156
10156
  }
10157
10157
  return null;
10158
10158
  }
10159
- var Gc = r.unstable_scheduleCallback, Cm = r.unstable_cancelCallback, jc = r.unstable_shouldYield, Sm = r.unstable_requestPaint, an = r.unstable_now, bp = r.unstable_getCurrentPriorityLevel, Uc = r.unstable_ImmediatePriority, Wo = r.unstable_UserBlockingPriority, ai = r.unstable_NormalPriority, Em = r.unstable_LowPriority, Wc = r.unstable_IdlePriority, Wu = r.unstable_yieldValue, xm = r.unstable_setDisableYieldValue, Di = null, kn = null, we = null, ba = !1, ea = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u";
10159
+ var Gc = r.unstable_scheduleCallback, Cm = r.unstable_cancelCallback, jc = r.unstable_shouldYield, Sm = r.unstable_requestPaint, on = r.unstable_now, bp = r.unstable_getCurrentPriorityLevel, Uc = r.unstable_ImmediatePriority, Wo = r.unstable_UserBlockingPriority, ai = r.unstable_NormalPriority, Em = r.unstable_LowPriority, Wc = r.unstable_IdlePriority, Wu = r.unstable_yieldValue, xm = r.unstable_setDisableYieldValue, Di = null, kn = null, we = null, ba = !1, ea = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u";
10160
10160
  function Cp(e) {
10161
10161
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u")
10162
10162
  return !1;
@@ -11278,7 +11278,7 @@ Check the render method of \`` + e + "`." : "";
11278
11278
  function Fi() {
11279
11279
  return !1;
11280
11280
  }
11281
- function on(e) {
11281
+ function un(e) {
11282
11282
  function t(o, l, d, m, b) {
11283
11283
  this._reactName = o, this._targetInst = d, this.type = l, this.nativeEvent = m, this.target = b, this.currentTarget = null;
11284
11284
  for (var x in e)
@@ -11323,10 +11323,10 @@ Check the render method of \`` + e + "`." : "";
11323
11323
  },
11324
11324
  defaultPrevented: 0,
11325
11325
  isTrusted: 0
11326
- }, Af = on(Fn), au = Et({}, Fn, {
11326
+ }, Af = un(Fn), au = Et({}, Fn, {
11327
11327
  view: 0,
11328
11328
  detail: 0
11329
- }), Pp = on(au), Hp, ui, gl;
11329
+ }), Pp = un(au), Hp, ui, gl;
11330
11330
  function _p(e) {
11331
11331
  e !== gl && (gl && e.type === "mousemove" ? (Hp = e.screenX - gl.screenX, ui = e.screenY - gl.screenY) : (Hp = 0, ui = 0), gl = e);
11332
11332
  }
@@ -11353,21 +11353,21 @@ Check the render method of \`` + e + "`." : "";
11353
11353
  movementY: function(e) {
11354
11354
  return "movementY" in e ? e.movementY : ui;
11355
11355
  }
11356
- }), Of = on(li), iu = Et({}, li, {
11356
+ }), Of = un(li), iu = Et({}, li, {
11357
11357
  dataTransfer: 0
11358
- }), Um = on(iu), Wm = Et({}, au, {
11358
+ }), Um = un(iu), Wm = Et({}, au, {
11359
11359
  relatedTarget: 0
11360
- }), Ms = on(Wm), Df = Et({}, Fn, {
11360
+ }), Ms = un(Wm), Df = Et({}, Fn, {
11361
11361
  animationName: 0,
11362
11362
  elapsedTime: 0,
11363
11363
  pseudoElement: 0
11364
- }), hb = on(Df), mb = Et({}, Fn, {
11364
+ }), hb = un(Df), mb = Et({}, Fn, {
11365
11365
  clipboardData: function(e) {
11366
11366
  return "clipboardData" in e ? e.clipboardData : window.clipboardData;
11367
11367
  }
11368
- }), Xm = on(mb), Zm = Et({}, Fn, {
11368
+ }), Xm = un(mb), Zm = Et({}, Fn, {
11369
11369
  data: 0
11370
- }), ho = on(Zm), gb = ho, yl = {
11370
+ }), ho = un(Zm), gb = ho, yl = {
11371
11371
  Esc: "Escape",
11372
11372
  Spacebar: " ",
11373
11373
  Left: "ArrowLeft",
@@ -11467,7 +11467,7 @@ Check the render method of \`` + e + "`." : "";
11467
11467
  which: function(e) {
11468
11468
  return e.type === "keypress" ? ru(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
11469
11469
  }
11470
- }), Qm = on(bb), Jm = Et({}, li, {
11470
+ }), Qm = un(bb), Jm = Et({}, li, {
11471
11471
  pointerId: 0,
11472
11472
  width: 0,
11473
11473
  height: 0,
@@ -11478,7 +11478,7 @@ Check the render method of \`` + e + "`." : "";
11478
11478
  twist: 0,
11479
11479
  pointerType: 0,
11480
11480
  isPrimary: 0
11481
- }), qm = on(Jm), Ta = Et({}, au, {
11481
+ }), qm = un(Jm), Ta = Et({}, au, {
11482
11482
  touches: 0,
11483
11483
  targetTouches: 0,
11484
11484
  changedTouches: 0,
@@ -11487,11 +11487,11 @@ Check the render method of \`` + e + "`." : "";
11487
11487
  ctrlKey: 0,
11488
11488
  shiftKey: 0,
11489
11489
  getModifierState: zp
11490
- }), Gp = on(Ta), Cb = Et({}, Fn, {
11490
+ }), Gp = un(Ta), Cb = Et({}, Fn, {
11491
11491
  propertyName: 0,
11492
11492
  elapsedTime: 0,
11493
11493
  pseudoElement: 0
11494
- }), mo = on(Cb), Nf = Et({}, li, {
11494
+ }), mo = un(Cb), Nf = Et({}, li, {
11495
11495
  deltaX: function(e) {
11496
11496
  return "deltaX" in e ? e.deltaX : (
11497
11497
  // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
@@ -11513,7 +11513,7 @@ Check the render method of \`` + e + "`." : "";
11513
11513
  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
11514
11514
  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
11515
11515
  deltaMode: 0
11516
- }), ou = on(Nf), kf = [9, 13, 27, 32], Mf = 229, Ls = Tt && "CompositionEvent" in window, Fs = null;
11516
+ }), ou = un(Nf), kf = [9, 13, 27, 32], Mf = 229, Ls = Tt && "CompositionEvent" in window, Fs = null;
11517
11517
  Tt && "documentMode" in document && (Fs = document.documentMode);
11518
11518
  var jp = Tt && "TextEvent" in window && !Fs, Km = Tt && (!Ls || Fs && Fs > 8 && Fs <= 11), Up = 32, Wp = String.fromCharCode(Up);
11519
11519
  function Lf() {
@@ -12193,7 +12193,7 @@ Check the render method of \`` + e + "`." : "";
12193
12193
  var m = Fc(o), b = [];
12194
12194
  wN(b, e, l, o, m, t), Cx(b, t);
12195
12195
  }
12196
- function un(e, t) {
12196
+ function ln(e, t) {
12197
12197
  Ob.has(e) || h('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.', e);
12198
12198
  var o = !1, l = nk(t), d = DN(e);
12199
12199
  l.has(d) || (Sx(t, e, us, o), l.add(d));
@@ -12421,7 +12421,7 @@ Check the render method of \`` + e + "`." : "";
12421
12421
  } else
12422
12422
  typeof b == "number" && Dc(t, "" + b);
12423
12423
  else
12424
- m === ug || m === Cl || m === wx || (et.hasOwnProperty(m) ? b != null && (typeof b != "function" && cg(m, b), m === "onScroll" && un("scroll", t)) : b != null && Mo(t, m, b, d));
12424
+ m === ug || m === Cl || m === wx || (et.hasOwnProperty(m) ? b != null && (typeof b != "function" && cg(m, b), m === "onScroll" && ln("scroll", t)) : b != null && Mo(t, m, b, d));
12425
12425
  }
12426
12426
  }
12427
12427
  function FN(e, t, o, l) {
@@ -12459,41 +12459,41 @@ Check the render method of \`` + e + "`." : "";
12459
12459
  var m;
12460
12460
  switch (t) {
12461
12461
  case "dialog":
12462
- un("cancel", e), un("close", e), m = o;
12462
+ ln("cancel", e), ln("close", e), m = o;
12463
12463
  break;
12464
12464
  case "iframe":
12465
12465
  case "object":
12466
12466
  case "embed":
12467
- un("load", e), m = o;
12467
+ ln("load", e), m = o;
12468
12468
  break;
12469
12469
  case "video":
12470
12470
  case "audio":
12471
12471
  for (var b = 0; b < $p.length; b++)
12472
- un($p[b], e);
12472
+ ln($p[b], e);
12473
12473
  m = o;
12474
12474
  break;
12475
12475
  case "source":
12476
- un("error", e), m = o;
12476
+ ln("error", e), m = o;
12477
12477
  break;
12478
12478
  case "img":
12479
12479
  case "image":
12480
12480
  case "link":
12481
- un("error", e), un("load", e), m = o;
12481
+ ln("error", e), ln("load", e), m = o;
12482
12482
  break;
12483
12483
  case "details":
12484
- un("toggle", e), m = o;
12484
+ ln("toggle", e), m = o;
12485
12485
  break;
12486
12486
  case "input":
12487
- ts(e, o), m = es(e, o), un("invalid", e);
12487
+ ts(e, o), m = es(e, o), ln("invalid", e);
12488
12488
  break;
12489
12489
  case "option":
12490
12490
  Tc(e, o), m = o;
12491
12491
  break;
12492
12492
  case "select":
12493
- jh(e, o), m = Xd(e, o), un("invalid", e);
12493
+ jh(e, o), m = Xd(e, o), ln("invalid", e);
12494
12494
  break;
12495
12495
  case "textarea":
12496
- Uh(e, o), m = Yd(e, o), un("invalid", e);
12496
+ Uh(e, o), m = Yd(e, o), ln("invalid", e);
12497
12497
  break;
12498
12498
  default:
12499
12499
  m = o;
@@ -12558,7 +12558,7 @@ Check the render method of \`` + e + "`." : "";
12558
12558
  var ne = U ? U[lg] : void 0, ie = ee ? ee[lg] : void 0;
12559
12559
  ne != null && ie !== ne && (m = m || []).push(R, ne);
12560
12560
  } else
12561
- R === Hs ? (typeof U == "string" || typeof U == "number") && (m = m || []).push(R, "" + U) : R === ug || R === Cl || (et.hasOwnProperty(R) ? (U != null && (typeof U != "function" && cg(R, U), R === "onScroll" && un("scroll", e)), !m && ee !== U && (m = [])) : (m = m || []).push(R, U));
12561
+ R === Hs ? (typeof U == "string" || typeof U == "number") && (m = m || []).push(R, "" + U) : R === ug || R === Cl || (et.hasOwnProperty(R) ? (U != null && (typeof U != "function" && cg(R, U), R === "onScroll" && ln("scroll", e)), !m && ee !== U && (m = [])) : (m = m || []).push(R, U));
12562
12562
  }
12563
12563
  return k && (is(k, x[_s]), (m = m || []).push(_s, k)), m;
12564
12564
  }
@@ -12587,40 +12587,40 @@ Check the render method of \`` + e + "`." : "";
12587
12587
  var x, R;
12588
12588
  switch (x = Ri(t, o), sg(t, o), t) {
12589
12589
  case "dialog":
12590
- un("cancel", e), un("close", e);
12590
+ ln("cancel", e), ln("close", e);
12591
12591
  break;
12592
12592
  case "iframe":
12593
12593
  case "object":
12594
12594
  case "embed":
12595
- un("load", e);
12595
+ ln("load", e);
12596
12596
  break;
12597
12597
  case "video":
12598
12598
  case "audio":
12599
12599
  for (var D = 0; D < $p.length; D++)
12600
- un($p[D], e);
12600
+ ln($p[D], e);
12601
12601
  break;
12602
12602
  case "source":
12603
- un("error", e);
12603
+ ln("error", e);
12604
12604
  break;
12605
12605
  case "img":
12606
12606
  case "image":
12607
12607
  case "link":
12608
- un("error", e), un("load", e);
12608
+ ln("error", e), ln("load", e);
12609
12609
  break;
12610
12610
  case "details":
12611
- un("toggle", e);
12611
+ ln("toggle", e);
12612
12612
  break;
12613
12613
  case "input":
12614
- ts(e, o), un("invalid", e);
12614
+ ts(e, o), ln("invalid", e);
12615
12615
  break;
12616
12616
  case "option":
12617
12617
  Tc(e, o);
12618
12618
  break;
12619
12619
  case "select":
12620
- jh(e, o), un("invalid", e);
12620
+ jh(e, o), ln("invalid", e);
12621
12621
  break;
12622
12622
  case "textarea":
12623
- Uh(e, o), un("invalid", e);
12623
+ Uh(e, o), ln("invalid", e);
12624
12624
  break;
12625
12625
  }
12626
12626
  kc(t, o);
@@ -12647,7 +12647,7 @@ Check the render method of \`` + e + "`." : "";
12647
12647
  if (ne === Hs)
12648
12648
  typeof ie == "string" ? e.textContent !== ie && (o[Cl] !== !0 && dg(e.textContent, ie, m, b), ee = [Hs, ie]) : typeof ie == "number" && e.textContent !== "" + ie && (o[Cl] !== !0 && dg(e.textContent, ie, m, b), ee = [Hs, "" + ie]);
12649
12649
  else if (et.hasOwnProperty(ne))
12650
- ie != null && (typeof ie != "function" && cg(ne, ie), ne === "onScroll" && un("scroll", e));
12650
+ ie != null && (typeof ie != "function" && cg(ne, ie), ne === "onScroll" && ln("scroll", e));
12651
12651
  else if (b && // Convince Flow we've calculated it (it's DEV-only in this method.)
12652
12652
  typeof x == "boolean") {
12653
12653
  var De = void 0, qe = x && Te ? null : ei(ne);
@@ -17882,7 +17882,7 @@ Check the render method of \`` + l + "`.");
17882
17882
  }
17883
17883
  Mt = Mt.sibling;
17884
17884
  }
17885
- pt.tail !== null && an() > jR() && (t.flags |= st, Wt = !0, Dv(pt, !1), t.lanes = Am);
17885
+ pt.tail !== null && on() > jR() && (t.flags |= st, Wt = !0, Dv(pt, !1), t.lanes = Am);
17886
17886
  }
17887
17887
  else {
17888
17888
  if (!Wt) {
@@ -17896,7 +17896,7 @@ Check the render method of \`` + l + "`.");
17896
17896
  // The time it took to render last row is greater than the remaining
17897
17897
  // time we have to render. So rendering one more row would likely
17898
17898
  // exceed it.
17899
- an() * 2 - pt.renderingStartTime > jR() && o !== pr && (t.flags |= st, Wt = !0, Dv(pt, !1), t.lanes = Am);
17899
+ on() * 2 - pt.renderingStartTime > jR() && o !== pr && (t.flags |= st, Wt = !0, Dv(pt, !1), t.lanes = Am);
17900
17900
  }
17901
17901
  if (pt.isBackwards)
17902
17902
  kt.sibling = t.child, t.child = kt;
@@ -17907,7 +17907,7 @@ Check the render method of \`` + l + "`.");
17907
17907
  }
17908
17908
  if (pt.tail !== null) {
17909
17909
  var ua = pt.tail;
17910
- pt.rendering = ua, pt.tail = ua.sibling, pt.renderingStartTime = an(), ua.sibling = null;
17910
+ pt.rendering = ua, pt.tail = ua.sibling, pt.renderingStartTime = on(), ua.sibling = null;
17911
17911
  var Xr = _i.current;
17912
17912
  return Wt ? Xr = RC(Xr, gv) : Xr = ed(Xr), Al(t, Xr), ua;
17913
17913
  }
@@ -19221,7 +19221,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19221
19221
  4
19222
19222
  ), vu = 0, kv = 1, qs = 2, gy = 3, Mv = 4, _R = 5, F1 = 6, It = ir, aa = null, Sn = null, or = ce, To = ce, B1 = El(ce), ur = vu, Lv = null, yy = ce, Fv = ce, by = ce, Bv = null, Da = null, V1 = 0, zR = 500, GR = 1 / 0, RL = 500, hu = null;
19223
19223
  function Vv() {
19224
- GR = an() + RL;
19224
+ GR = on() + RL;
19225
19225
  }
19226
19226
  function jR() {
19227
19227
  return GR;
@@ -19231,7 +19231,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19231
19231
  return aa;
19232
19232
  }
19233
19233
  function ia() {
19234
- return (It & (Tr | hi)) !== ir ? an() : (_v !== Qt || (_v = an()), _v);
19234
+ return (It & (Tr | hi)) !== ir ? on() : (_v !== Qt || (_v = on()), _v);
19235
19235
  }
19236
19236
  function Ll(e) {
19237
19237
  var t = e.mode;
@@ -19334,7 +19334,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19334
19334
  }
19335
19335
  if (b === kv) {
19336
19336
  var R = Lv;
19337
- throw ec(e, ce), Fl(e, d), Na(e, an()), R;
19337
+ throw ec(e, ce), Fl(e, d), Na(e, on()), R;
19338
19338
  }
19339
19339
  if (b === F1)
19340
19340
  Fl(e, d);
@@ -19347,13 +19347,13 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19347
19347
  }
19348
19348
  if (b === kv) {
19349
19349
  var U = Lv;
19350
- throw ec(e, ce), Fl(e, d), Na(e, an()), U;
19350
+ throw ec(e, ce), Fl(e, d), Na(e, on()), U;
19351
19351
  }
19352
19352
  }
19353
19353
  e.finishedWork = k, e.finishedLanes = d, NL(e, b, d);
19354
19354
  }
19355
19355
  }
19356
- return Na(e, an()), e.callbackNode === o ? WR.bind(null, e) : null;
19356
+ return Na(e, on()), e.callbackNode === o ? WR.bind(null, e) : null;
19357
19357
  }
19358
19358
  function j1(e, t) {
19359
19359
  var o = Bv;
@@ -19383,7 +19383,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19383
19383
  case gy: {
19384
19384
  if (Fl(e, o), km(o) && // do not delay if we're inside an act() scope
19385
19385
  !uT()) {
19386
- var l = V1 + zR - an();
19386
+ var l = V1 + zR - on();
19387
19387
  if (l > 10) {
19388
19388
  var d = qo(e, ce);
19389
19389
  if (d !== ce)
@@ -19404,7 +19404,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19404
19404
  if (Fl(e, o), Lm(o))
19405
19405
  break;
19406
19406
  if (!uT()) {
19407
- var b = Om(e, o), x = b, R = an() - x, D = JL(R) - R;
19407
+ var b = Om(e, o), x = b, R = on() - x, D = JL(R) - R;
19408
19408
  if (D > 10) {
19409
19409
  e.timeoutHandle = _b(tc.bind(null, e, Da, hu), D);
19410
19410
  break;
@@ -19464,7 +19464,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19464
19464
  gu();
19465
19465
  var t = qo(e, ce);
19466
19466
  if (!_r(t, $e))
19467
- return Na(e, an()), null;
19467
+ return Na(e, on()), null;
19468
19468
  var o = Ty(e, t);
19469
19469
  if (e.tag !== xl && o === qs) {
19470
19470
  var l = fo(e);
@@ -19472,15 +19472,15 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19472
19472
  }
19473
19473
  if (o === kv) {
19474
19474
  var d = Lv;
19475
- throw ec(e, ce), Fl(e, t), Na(e, an()), d;
19475
+ throw ec(e, ce), Fl(e, t), Na(e, on()), d;
19476
19476
  }
19477
19477
  if (o === F1)
19478
19478
  throw new Error("Root did not complete. This is a bug in React.");
19479
19479
  var m = e.current.alternate;
19480
- return e.finishedWork = m, e.finishedLanes = t, tc(e, Da, hu), Na(e, an()), null;
19480
+ return e.finishedWork = m, e.finishedLanes = t, tc(e, Da, hu), Na(e, on()), null;
19481
19481
  }
19482
19482
  function ML(e, t) {
19483
- t !== ce && (Dp(e, gt(t, $e)), Na(e, an()), (It & (Tr | hi)) === ir && (Vv(), wl()));
19483
+ t !== ce && (Dp(e, gt(t, $e)), Na(e, on()), (It & (Tr | hi)) === ir && (Vv(), wl()));
19484
19484
  }
19485
19485
  function U1(e, t) {
19486
19486
  var o = It;
@@ -19562,7 +19562,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19562
19562
  M1.current = e;
19563
19563
  }
19564
19564
  function FL() {
19565
- V1 = an();
19565
+ V1 = on();
19566
19566
  }
19567
19567
  function zv(e) {
19568
19568
  yy = gt(e, yy);
@@ -19714,7 +19714,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19714
19714
  } else
19715
19715
  e.current = d, Uw();
19716
19716
  var U = Ks;
19717
- if (Ks ? (Ks = !1, Ml = e, Pv = m) : (fd = 0, Ey = null), b = e.pendingLanes, b === ce && (cd = null), U || rT(e.current, !1), Xu(d.stateNode, l), ea && e.memoizedUpdaters.clear(), SL(), Na(e, an()), t !== null)
19717
+ if (Ks ? (Ks = !1, Ml = e, Pv = m) : (fd = 0, Ey = null), b = e.pendingLanes, b === ce && (cd = null), U || rT(e.current, !1), Xu(d.stateNode, l), ea && e.memoizedUpdaters.clear(), SL(), Na(e, on()), t !== null)
19718
19718
  for (var ee = e.onRecoverableError, ne = 0; ne < t.length; ne++) {
19719
19719
  var ie = t[ne], De = ie.stack, qe = ie.digest;
19720
19720
  ee(ie.value, {
@@ -19815,7 +19815,7 @@ Error message:
19815
19815
  var l = e.pingCache;
19816
19816
  l !== null && l.delete(t);
19817
19817
  var d = ia();
19818
- mf(e, o), rF(e), aa === e && Ko(or, o) && (ur === Mv || ur === gy && km(or) && an() - V1 < zR ? ec(e, ce) : by = gt(by, o)), Na(e, d);
19818
+ mf(e, o), rF(e), aa === e && Ko(or, o) && (ur === Mv || ur === gy && km(or) && on() - V1 < zR ? ec(e, ce) : by = gt(by, o)), Na(e, d);
19819
19819
  }
19820
19820
  function nT(e, t) {
19821
19821
  t === In && (t = AL(e));
@@ -23859,7 +23859,7 @@ const eE = /* @__PURE__ */ new WeakMap(), EI = (a, r) => {
23859
23859
  return f || (f = r.matchMedia(a), f.refCount = 0, u.set(f.media, f)), f;
23860
23860
  };
23861
23861
  function T4(a, r = typeof window > "u" ? void 0 : window) {
23862
- const u = EI(a, r), [f, c] = ln(() => u ? u.matches : !1);
23862
+ const u = EI(a, r), [f, c] = an(() => u ? u.matches : !1);
23863
23863
  return Ky(() => {
23864
23864
  let p = EI(a, r);
23865
23865
  if (!p)
@@ -23996,7 +23996,7 @@ function D0() {
23996
23996
  }
23997
23997
  const IS = (a, r) => w0 ? a == null ? (r || x0()).body : (typeof a == "function" && (a = a()), a && "current" in a && (a = a.current), a && ("nodeType" in a || a.getBoundingClientRect) ? a : null) : null;
23998
23998
  function M4(a, r) {
23999
- const u = D0(), [f, c] = ln(() => IS(a, u == null ? void 0 : u.document));
23999
+ const u = D0(), [f, c] = an(() => IS(a, u == null ? void 0 : u.document));
24000
24000
  if (!f) {
24001
24001
  const p = IS(a);
24002
24002
  p && c(p);
@@ -24132,7 +24132,7 @@ function U4({
24132
24132
  onEntered: f,
24133
24133
  transition: c
24134
24134
  }) {
24135
- const [p, h] = ln(!r);
24135
+ const [p, h] = an(!r);
24136
24136
  r && p && h(!1);
24137
24137
  const C = j4({
24138
24138
  in: !!r,
@@ -24221,7 +24221,7 @@ const TO = /* @__PURE__ */ y0((a, r) => {
24221
24221
  onEntering: ye,
24222
24222
  onEntered: ke
24223
24223
  } = a, Ue = X4(a, W4);
24224
- const Se = D0(), Ke = M4(j), ue = Y4(V), xe = jA(), Z = UA(u), [se, me] = ln(!u), Te = Ot(null);
24224
+ const Se = D0(), Ke = M4(j), ue = Y4(V), xe = jA(), Z = UA(u), [se, me] = an(!u), Te = Ot(null);
24225
24225
  JF(r, () => ue, [ue]), w0 && !Z && u && (Te.current = TS(Se == null ? void 0 : Se.document)), u && se && me(!1);
24226
24226
  const Ie = Pn(() => {
24227
24227
  if (ue.add(), ft.current = _l(document, "keydown", Pe), et.current = _l(
@@ -24501,7 +24501,7 @@ const MO = /* @__PURE__ */ re.forwardRef(({
24501
24501
  a = lt(a, "offcanvas");
24502
24502
  const {
24503
24503
  onToggle: ke
24504
- } = Dt(pc) || {}, [Ue, Se] = ln(!1), Ke = A4(p || "xs", "up");
24504
+ } = Dt(pc) || {}, [Ue, Se] = an(!1), Ke = A4(p || "xs", "up");
24505
24505
  $n(() => {
24506
24506
  Se(p ? h && !Ke : h);
24507
24507
  }, [h, p, Ke]);
@@ -24637,7 +24637,7 @@ const Sd = Object.assign(BO, {
24637
24637
  Toggle: wO
24638
24638
  });
24639
24639
  function u9(a, r, u) {
24640
- const f = Ot(a !== void 0), [c, p] = ln(r), h = a !== void 0, C = f.current;
24640
+ const f = Ot(a !== void 0), [c, p] = an(r), h = a !== void 0, C = f.current;
24641
24641
  return f.current = h, !h && C && c !== r && p(r), [h ? a : c, ht((...y) => {
24642
24642
  const [E, ...w] = y;
24643
24643
  let T = u == null ? void 0 : u(E, ...w);
@@ -25638,7 +25638,7 @@ function gP(a, r, u = {}) {
25638
25638
  }, []), T = ht(() => {
25639
25639
  var N;
25640
25640
  (N = E.current) == null || N.forceUpdate();
25641
- }, []), [A, O] = s9(ln({
25641
+ }, []), [A, O] = s9(an({
25642
25642
  placement: c,
25643
25643
  update: w,
25644
25644
  forceUpdate: T,
@@ -25891,7 +25891,7 @@ function DP(a) {
25891
25891
  return a || `${f}-${u}`;
25892
25892
  }
25893
25893
  function NP(a) {
25894
- let r = Yn.useId(), [u] = ln(BP()), f = u || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${o0.prefix}`;
25894
+ let r = Yn.useId(), [u] = an(BP()), f = u || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${o0.prefix}`;
25895
25895
  return a || `${f}-${r}`;
25896
25896
  }
25897
25897
  const kP = typeof Yn.useId == "function" ? NP : DP;
@@ -26455,7 +26455,7 @@ function GI({
26455
26455
  function jP(a) {
26456
26456
  const { data: { username: r, site: u } = { username: "", site: "" } } = Cd({
26457
26457
  queryKey: ["profile"],
26458
- queryFn: async () => a.httpPathHandler("accounts/profile").then((f) => f.json()).then((f) => ({ username: f.data.username, site: f.data.site }))
26458
+ queryFn: async () => a.httpPathHandler("accounts/profile/").then((f) => f.json()).then((f) => ({ username: f.data.username, site: f.data.site }))
26459
26459
  });
26460
26460
  return /* @__PURE__ */ Y(Sd, { bg: "dark", variant: "dark", collapseOnSelect: !0, expand: "sm", children: /* @__PURE__ */ Vt(sc, { fluid: !0, children: [
26461
26461
  /* @__PURE__ */ Y(Sd.Brand, { children: "Onyx" }),
@@ -26613,7 +26613,7 @@ function ko(a, r) {
26613
26613
  }
26614
26614
  var YP = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
26615
26615
  function vD(a) {
26616
- var r = a.defaultInputValue, u = r === void 0 ? "" : r, f = a.defaultMenuIsOpen, c = f === void 0 ? !1 : f, p = a.defaultValue, h = p === void 0 ? null : p, C = a.inputValue, y = a.menuIsOpen, E = a.onChange, w = a.onInputChange, T = a.onMenuClose, A = a.onMenuOpen, O = a.value, L = ko(a, YP), M = ln(C !== void 0 ? C : u), N = xu(M, 2), P = N[0], $ = N[1], H = ln(y !== void 0 ? y : c), z = xu(H, 2), V = z[0], j = z[1], B = ln(O !== void 0 ? O : h), G = xu(B, 2), ae = G[0], ge = G[1], de = ht(function(ue, xe) {
26616
+ var r = a.defaultInputValue, u = r === void 0 ? "" : r, f = a.defaultMenuIsOpen, c = f === void 0 ? !1 : f, p = a.defaultValue, h = p === void 0 ? null : p, C = a.inputValue, y = a.menuIsOpen, E = a.onChange, w = a.onInputChange, T = a.onMenuClose, A = a.onMenuOpen, O = a.value, L = ko(a, YP), M = an(C !== void 0 ? C : u), N = xu(M, 2), P = N[0], $ = N[1], H = an(y !== void 0 ? y : c), z = xu(H, 2), V = z[0], j = z[1], B = an(O !== void 0 ? O : h), G = xu(B, 2), ae = G[0], ge = G[1], de = ht(function(ue, xe) {
26617
26617
  typeof E == "function" && E(ue, xe), ge(ue);
26618
26618
  }, [E]), Ee = ht(function(ue, xe) {
26619
26619
  var Z;
@@ -28397,7 +28397,7 @@ var _D = function(r) {
28397
28397
  marginTop: C.menuGutter
28398
28398
  });
28399
28399
  }, zD = /* @__PURE__ */ TA(null), XH = function(r) {
28400
- var u = r.children, f = r.minMenuHeight, c = r.maxMenuHeight, p = r.menuPlacement, h = r.menuPosition, C = r.menuShouldScrollIntoView, y = r.theme, E = Dt(zD) || {}, w = E.setPortalPlacement, T = Ot(null), A = ln(c), O = xu(A, 2), L = O[0], M = O[1], N = ln(null), P = xu(N, 2), $ = P[0], H = P[1], z = y.spacing.controlHeight;
28400
+ var u = r.children, f = r.minMenuHeight, c = r.maxMenuHeight, p = r.menuPlacement, h = r.menuPosition, C = r.menuShouldScrollIntoView, y = r.theme, E = Dt(zD) || {}, w = E.setPortalPlacement, T = Ot(null), A = an(c), O = xu(A, 2), L = O[0], M = O[1], N = an(null), P = xu(N, 2), $ = P[0], H = P[1], z = y.spacing.controlHeight;
28401
28401
  return lE(function() {
28402
28402
  var V = T.current;
28403
28403
  if (V) {
@@ -28482,11 +28482,11 @@ var _D = function(r) {
28482
28482
  zIndex: 1
28483
28483
  };
28484
28484
  }, n_ = function(r) {
28485
- var u = r.appendTo, f = r.children, c = r.controlElement, p = r.innerProps, h = r.menuPlacement, C = r.menuPosition, y = Ot(null), E = Ot(null), w = ln(_D(h)), T = xu(w, 2), A = T[0], O = T[1], L = mn(function() {
28485
+ var u = r.appendTo, f = r.children, c = r.controlElement, p = r.innerProps, h = r.menuPlacement, C = r.menuPosition, y = Ot(null), E = Ot(null), w = an(_D(h)), T = xu(w, 2), A = T[0], O = T[1], L = mn(function() {
28486
28486
  return {
28487
28487
  setPortalPlacement: O
28488
28488
  };
28489
- }, []), M = ln(null), N = xu(M, 2), P = N[0], $ = N[1], H = ht(function() {
28489
+ }, []), M = an(null), N = xu(M, 2), P = N[0], $ = N[1], H = ht(function() {
28490
28490
  if (c) {
28491
28491
  var B = LH(c), G = C === "fixed" ? 0 : window.pageYOffset, ae = B[A] + G;
28492
28492
  (ae !== (P == null ? void 0 : P.offset) || B.left !== (P == null ? void 0 : P.rect.left) || B.width !== (P == null ? void 0 : P.rect.width)) && $({
@@ -31168,9 +31168,9 @@ function nG() {
31168
31168
  /* @__PURE__ */ Y("span", { children: "Loading..." })
31169
31169
  ] }) });
31170
31170
  }
31171
- const rG = "0.10.1";
31171
+ const rG = "0.10.3";
31172
31172
  function aG(a) {
31173
- const [r, u] = ln(new Array()), [f, c] = ln(new Array()), [p, h] = ln(new Array()), [C, y] = ln(new Array()), [E, w] = ln(""), T = Array.from(a.projectFields.entries()).filter(([, B]) => B.actions.includes("filter")).map(([B]) => B), A = Array.from(a.projectFields.entries()).filter(([, B]) => B.actions.includes("list")).map(([B]) => B);
31173
+ const [r, u] = an(new Array()), [f, c] = an(new Array()), [p, h] = an(new Array()), [C, y] = an(new Array()), [E, w] = an(""), T = Array.from(a.projectFields.entries()).filter(([, B]) => B.actions.includes("filter")).map(([B]) => B), A = Array.from(a.projectFields.entries()).filter(([, B]) => B.actions.includes("list")).map(([B]) => B);
31174
31174
  g0(() => {
31175
31175
  u([]), c([]), h([]), y([]), w("");
31176
31176
  }, [a.project]);
@@ -31213,7 +31213,7 @@ function aG(a) {
31213
31213
  [E].filter((G) => G).map((G) => ["search", G])
31214
31214
  )
31215
31215
  );
31216
- a.handleSearch(B.toString());
31216
+ a.handleSearch(B.toString()), a.handlePageNumber(1);
31217
31217
  };
31218
31218
  return /* @__PURE__ */ Vt(lc, { children: [
31219
31219
  /* @__PURE__ */ Vt(Su, { direction: "horizontal", gap: 2, children: [
@@ -31310,13 +31310,13 @@ function aG(a) {
31310
31310
  ] });
31311
31311
  }
31312
31312
  function iG(a) {
31313
- var f;
31314
- const r = T0({
31315
- filename: a.project,
31313
+ var c;
31314
+ const r = `${a.project}${a.pageNumber > 1 ? "_" + a.pageNumber.toString() : ""}`, u = T0({
31315
+ filename: r,
31316
31316
  useKeysAsHeaders: !0
31317
- }), u = () => {
31318
- const c = BV(r)(a.resultData.data || []);
31319
- a.fileWriter ? a.fileWriter(a.project + ".csv", NV(c)) : PV(r)(c);
31317
+ }), f = () => {
31318
+ const p = BV(u)(a.resultData.data || []);
31319
+ a.fileWriter ? a.fileWriter(r + ".csv", NV(p)) : PV(u)(p);
31320
31320
  };
31321
31321
  return /* @__PURE__ */ Vt(rc, { children: [
31322
31322
  /* @__PURE__ */ Vt(rc.Header, { children: [
@@ -31327,7 +31327,7 @@ function iG(a) {
31327
31327
  className: "float-end",
31328
31328
  size: "sm",
31329
31329
  variant: "success",
31330
- onClick: u,
31330
+ onClick: f,
31331
31331
  children: "Export Page to CSV"
31332
31332
  }
31333
31333
  )
@@ -31336,15 +31336,15 @@ function iG(a) {
31336
31336
  "Error: ",
31337
31337
  a.resultError.message
31338
31338
  ] }) : a.resultData.messages ? Object.entries(a.resultData.messages).map(
31339
- ([c, p]) => Array.isArray(p) ? p.map((h) => /* @__PURE__ */ Vt(Gy, { variant: "danger", children: [
31340
- c,
31339
+ ([p, h]) => Array.isArray(h) ? h.map((C) => /* @__PURE__ */ Vt(Gy, { variant: "danger", children: [
31340
+ p,
31341
31341
  ": ",
31342
- h
31343
- ] }, c)) : /* @__PURE__ */ Vt(Gy, { variant: "danger", children: [
31344
- c,
31342
+ C
31343
+ ] }, p)) : /* @__PURE__ */ Vt(Gy, { variant: "danger", children: [
31344
+ p,
31345
31345
  ": ",
31346
- p
31347
- ] }, c)
31346
+ h
31347
+ ] }, p)
31348
31348
  ) : /* @__PURE__ */ Y(
31349
31349
  tG,
31350
31350
  {
@@ -31359,23 +31359,23 @@ function iG(a) {
31359
31359
  {
31360
31360
  disabled: !a.resultData.previous,
31361
31361
  onClick: () => {
31362
- var c;
31362
+ var p;
31363
31363
  a.handleSearch(
31364
- ((c = a.resultData.previous) == null ? void 0 : c.split("?", 2)[1]) || ""
31365
- );
31364
+ ((p = a.resultData.previous) == null ? void 0 : p.split("?", 2)[1]) || ""
31365
+ ), a.handlePageNumber(a.pageNumber - 1);
31366
31366
  }
31367
31367
  }
31368
31368
  ),
31369
- /* @__PURE__ */ Y(By.Item, { children: a.resultPending ? "Loading..." : `Showing ${((f = a.resultData.data) == null ? void 0 : f.length) || 0} results` }),
31369
+ /* @__PURE__ */ Y(By.Item, { children: a.resultPending ? "Loading..." : `Showing ${((c = a.resultData.data) == null ? void 0 : c.length) || 0} results (Page ${a.pageNumber})` }),
31370
31370
  /* @__PURE__ */ Y(
31371
31371
  By.Next,
31372
31372
  {
31373
31373
  disabled: !a.resultData.next,
31374
31374
  onClick: () => {
31375
- var c, p;
31375
+ var p, h;
31376
31376
  a.handleSearch(
31377
- ((p = (c = a.resultData) == null ? void 0 : c.next) == null ? void 0 : p.split("?", 2)[1]) || ""
31378
- );
31377
+ ((h = (p = a.resultData) == null ? void 0 : p.next) == null ? void 0 : h.split("?", 2)[1]) || ""
31378
+ ), a.handlePageNumber(a.pageNumber + 1);
31379
31379
  }
31380
31380
  }
31381
31381
  )
@@ -31383,32 +31383,41 @@ function iG(a) {
31383
31383
  ] });
31384
31384
  }
31385
31385
  function oG(a) {
31386
- const [r, u] = ln("");
31386
+ const [r, u] = an(""), [f, c] = an(1);
31387
31387
  g0(() => {
31388
- u("");
31388
+ u(""), c(1);
31389
31389
  }, [a.project]);
31390
31390
  const {
31391
- isFetching: f,
31392
- error: c,
31393
- data: p = {},
31394
- refetch: h
31391
+ isFetching: p,
31392
+ error: h,
31393
+ data: C = {},
31394
+ refetch: y
31395
31395
  } = Cd({
31396
31396
  queryKey: ["results", a.project, r],
31397
- queryFn: async () => a.httpPathHandler(`projects/${a.project}/?${r}`).then((y) => y.json()),
31397
+ queryFn: async () => a.httpPathHandler(`projects/${a.project}/?${r}`).then((w) => w.json()),
31398
31398
  enabled: !!a.project
31399
31399
  });
31400
31400
  return /* @__PURE__ */ Y(sc, { fluid: !0, className: "g-2", children: /* @__PURE__ */ Vt(Su, { gap: 2, children: [
31401
- /* @__PURE__ */ Y(aG, { ...a, handleSearch: (y) => {
31402
- r === y && !f && h(), u(y);
31403
- } }),
31401
+ /* @__PURE__ */ Y(
31402
+ aG,
31403
+ {
31404
+ ...a,
31405
+ handleSearch: (w) => {
31406
+ r === w && !p && y(), u(w);
31407
+ },
31408
+ handlePageNumber: c
31409
+ }
31410
+ ),
31404
31411
  /* @__PURE__ */ Y(
31405
31412
  iG,
31406
31413
  {
31407
31414
  ...a,
31408
31415
  handleSearch: u,
31409
- resultPending: f,
31410
- resultError: c instanceof Error ? c : null,
31411
- resultData: p
31416
+ handlePageNumber: c,
31417
+ resultPending: p,
31418
+ resultError: h instanceof Error ? h : null,
31419
+ resultData: C,
31420
+ pageNumber: f
31412
31421
  }
31413
31422
  )
31414
31423
  ] }) });
@@ -31424,9 +31433,9 @@ function uG(a) {
31424
31433
  return u(a), r;
31425
31434
  }
31426
31435
  function lG(a) {
31427
- const [r, u] = ln(!1), [f, c] = ln(""), { data: p = [] } = Cd({
31436
+ const [r, u] = an(!1), [f, c] = an(""), { data: p = [] } = Cd({
31428
31437
  queryKey: ["projects"],
31429
- queryFn: async () => a.httpPathHandler("projects").then((A) => A.json()).then((A) => [
31438
+ queryFn: async () => a.httpPathHandler("projects/").then((A) => A.json()).then((A) => [
31430
31439
  ...new Set(
31431
31440
  A.data.map(
31432
31441
  (O) => O.project
@@ -31439,7 +31448,7 @@ function lG(a) {
31439
31448
  }, [f, p]);
31440
31449
  const { data: h = /* @__PURE__ */ new Map() } = Cd({
31441
31450
  queryKey: ["types"],
31442
- queryFn: async () => a.httpPathHandler("projects/types").then((A) => A.json()).then((A) => new Map(
31451
+ queryFn: async () => a.httpPathHandler("projects/types/").then((A) => A.json()).then((A) => new Map(
31443
31452
  A.data.map((O) => [
31444
31453
  O.type,
31445
31454
  O.lookups
@@ -31447,7 +31456,7 @@ function lG(a) {
31447
31456
  ))
31448
31457
  }), { data: C = /* @__PURE__ */ new Map() } = Cd({
31449
31458
  queryKey: ["lookups"],
31450
- queryFn: async () => a.httpPathHandler("projects/lookups").then((A) => A.json()).then((A) => new Map(
31459
+ queryFn: async () => a.httpPathHandler("projects/lookups/").then((A) => A.json()).then((A) => new Map(
31451
31460
  A.data.map((O) => [
31452
31461
  O.lookup,
31453
31462
  O.description
@@ -31461,7 +31470,7 @@ function lG(a) {
31461
31470
  }
31462
31471
  } = Cd({
31463
31472
  queryKey: ["fields", f],
31464
- queryFn: async () => a.httpPathHandler("projects/" + f + "/fields").then((A) => A.json()).then((A) => {
31473
+ queryFn: async () => a.httpPathHandler("projects/" + f + "/fields/").then((A) => A.json()).then((A) => {
31465
31474
  const O = uG(A.data.fields), L = A.data.name, M = new Map(
31466
31475
  Object.keys(O).map((P) => [
31467
31476
  P,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "climb-onyx-gui",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "type": "module",
5
5
  "main": "dist/climb-onyx-gui.js",
6
6
  "types": "dist/main.d.ts",