@qwanyx/stack 0.2.5 → 0.2.6

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.esm.js CHANGED
@@ -30,7 +30,7 @@ class $t {
30
30
  params: r
31
31
  };
32
32
  try {
33
- const i = await fetch(`${this.config.baseUrl}/spu/invoke`, {
33
+ const a = await fetch(`${this.config.baseUrl}/spu/invoke`, {
34
34
  method: "POST",
35
35
  headers: {
36
36
  "Content-Type": "application/json",
@@ -38,16 +38,16 @@ class $t {
38
38
  },
39
39
  body: JSON.stringify(n)
40
40
  });
41
- if (!i.ok) {
42
- const l = await i.text();
43
- throw new Error(`API error (${i.status}): ${l}`);
41
+ if (!a.ok) {
42
+ const l = await a.text();
43
+ throw new Error(`API error (${a.status}): ${l}`);
44
44
  }
45
- const s = await i.json();
45
+ const s = await a.json();
46
46
  if (!s.success && s.error)
47
47
  throw new Error(s.error);
48
48
  return s;
49
- } catch (i) {
50
- throw console.error("Graph API call failed:", i), i;
49
+ } catch (a) {
50
+ throw console.error("Graph API call failed:", a), a;
51
51
  }
52
52
  }
53
53
  /**
@@ -96,10 +96,10 @@ class $t {
96
96
  ...r,
97
97
  modified: (/* @__PURE__ */ new Date()).toISOString()
98
98
  }
99
- }, i = await this.callGraph("update_node", n);
100
- if (!i.result)
99
+ }, a = await this.callGraph("update_node", n);
100
+ if (!a.result)
101
101
  throw new Error("Failed to update node");
102
- return i.result;
102
+ return a.result;
103
103
  }
104
104
  /**
105
105
  * Delete a node
@@ -114,23 +114,23 @@ class $t {
114
114
  /**
115
115
  * Get children with edges (supports different display modes)
116
116
  */
117
- async getChildrenWithEdges(t, r = "children", n, i) {
117
+ async getChildrenWithEdges(t, r = "children", n, a) {
118
118
  return (await this.callGraph("get_children_with_edges", {
119
119
  node_id: t,
120
120
  display_mode: r,
121
121
  edge_type: n,
122
- node_type: i
122
+ node_type: a
123
123
  })).result || [];
124
124
  }
125
125
  /**
126
126
  * Add an edge between two nodes
127
127
  */
128
- async addEdge(t, r, n = "link", i) {
128
+ async addEdge(t, r, n = "link", a) {
129
129
  return await this.callGraph("add_edge", {
130
130
  source_id: t,
131
131
  target_id: r,
132
132
  edge_type: n,
133
- data: i
133
+ data: a
134
134
  });
135
135
  }
136
136
  /**
@@ -209,11 +209,11 @@ class $t {
209
209
  */
210
210
  fileToBase64(t) {
211
211
  return new Promise((r, n) => {
212
- const i = new FileReader();
213
- i.onload = () => {
214
- const l = i.result.split(",")[1];
212
+ const a = new FileReader();
213
+ a.onload = () => {
214
+ const l = a.result.split(",")[1];
215
215
  r(l);
216
- }, i.onerror = () => n(new Error("Failed to read file")), i.readAsDataURL(t);
216
+ }, a.onerror = () => n(new Error("Failed to read file")), a.readAsDataURL(t);
217
217
  });
218
218
  }
219
219
  /**
@@ -221,37 +221,37 @@ class $t {
221
221
  * Returns the original file if not an image or no resize needed
222
222
  */
223
223
  async resizeImage(t, r, n) {
224
- return t.type.startsWith("image/") ? new Promise((i) => {
224
+ return t.type.startsWith("image/") ? new Promise((a) => {
225
225
  const s = new Image(), l = URL.createObjectURL(t);
226
226
  s.onload = () => {
227
227
  if (URL.revokeObjectURL(l), s.width <= r && s.height <= r) {
228
- i(t);
228
+ a(t);
229
229
  return;
230
230
  }
231
231
  let y, d;
232
232
  s.width > s.height ? (y = r, d = Math.round(s.height / s.width * r)) : (d = r, y = Math.round(s.width / s.height * r));
233
233
  const u = document.createElement("canvas");
234
234
  u.width = y, u.height = d;
235
- const x = u.getContext("2d");
236
- if (!x) {
237
- i(t);
235
+ const m = u.getContext("2d");
236
+ if (!m) {
237
+ a(t);
238
238
  return;
239
239
  }
240
- x.drawImage(s, 0, 0, y, d);
240
+ m.drawImage(s, 0, 0, y, d);
241
241
  const w = t.type === "image/png" ? "image/png" : "image/jpeg";
242
242
  u.toBlob(
243
243
  (T) => {
244
244
  if (T) {
245
245
  const C = new File([T], t.name, { type: w });
246
- i(C);
246
+ a(C);
247
247
  } else
248
- i(t);
248
+ a(t);
249
249
  },
250
250
  w,
251
251
  n
252
252
  );
253
253
  }, s.onerror = () => {
254
- URL.revokeObjectURL(l), i(t);
254
+ URL.revokeObjectURL(l), a(t);
255
255
  }, s.src = l;
256
256
  }) : t;
257
257
  }
@@ -262,8 +262,8 @@ class $t {
262
262
  * @param file - The File object to upload
263
263
  * @param options - Upload options (maxSizeMB, maxImageDimension, imageQuality)
264
264
  */
265
- async uploadFile(t, r, n, i = {}) {
266
- const s = { ...this.defaultUploadOptions, ...i };
265
+ async uploadFile(t, r, n, a = {}) {
266
+ const s = { ...this.defaultUploadOptions, ...a };
267
267
  try {
268
268
  let l = n;
269
269
  s.maxImageDimension > 0 && n.type.startsWith("image/") && (l = await this.resizeImage(n, s.maxImageDimension, s.imageQuality));
@@ -291,9 +291,13 @@ class $t {
291
291
  * @param nodeId - The node to list files for
292
292
  */
293
293
  async listFiles(t) {
294
- return (await this.callGraph("list_files", {
294
+ var a;
295
+ return (((a = (await this.callGraph("list_files", {
295
296
  node_id: t
296
- })).files || [];
297
+ })).result) == null ? void 0 : a.files) || []).map((s) => ({
298
+ filename: s.name,
299
+ path: s.path
300
+ }));
297
301
  }
298
302
  /**
299
303
  * Delete a file from a node
@@ -336,7 +340,7 @@ class Et {
336
340
  }
337
341
  };
338
342
  try {
339
- const i = await fetch(`${this.config.baseUrl}/spu/invoke`, {
343
+ const a = await fetch(`${this.config.baseUrl}/spu/invoke`, {
340
344
  method: "POST",
341
345
  headers: {
342
346
  "Content-Type": "application/json",
@@ -344,16 +348,16 @@ class Et {
344
348
  },
345
349
  body: JSON.stringify(n)
346
350
  });
347
- if (!i.ok) {
348
- const l = await i.text();
349
- throw new Error(`API error (${i.status}): ${l}`);
351
+ if (!a.ok) {
352
+ const l = await a.text();
353
+ throw new Error(`API error (${a.status}): ${l}`);
350
354
  }
351
- const s = await i.json();
355
+ const s = await a.json();
352
356
  if (!s.success && s.error)
353
357
  throw new Error(s.error);
354
358
  return s.result;
355
- } catch (i) {
356
- throw console.error("Mail API call failed:", i), i;
359
+ } catch (a) {
360
+ throw console.error("Mail API call failed:", a), a;
357
361
  }
358
362
  }
359
363
  /**
@@ -435,7 +439,7 @@ class Et {
435
439
  * List available folders
436
440
  */
437
441
  async listFolders(t) {
438
- const n = (await this.imapExec(t, ['LIST "" *'])).responses.find((i) => i.command === "LIST");
442
+ const n = (await this.imapExec(t, ['LIST "" *'])).responses.find((a) => a.command === "LIST");
439
443
  return n != null && n.ok && n.folders ? { success: !0, folders: n.folders } : { success: !1, folders: [] };
440
444
  }
441
445
  }
@@ -503,8 +507,8 @@ class Tt {
503
507
  if (!t || Object.keys(t).length === 0)
504
508
  return "";
505
509
  const r = new URLSearchParams();
506
- Object.entries(t).forEach(([i, s]) => {
507
- s != null && r.append(i, String(s));
510
+ Object.entries(t).forEach(([a, s]) => {
511
+ s != null && r.append(a, String(s));
508
512
  });
509
513
  const n = r.toString();
510
514
  return n ? `?${n}` : "";
@@ -515,22 +519,22 @@ class Tt {
515
519
  async request(t, r = {}) {
516
520
  const {
517
521
  method: n = "GET",
518
- headers: i = {},
522
+ headers: a = {},
519
523
  body: s,
520
524
  params: l
521
525
  } = r, y = `${this.config.baseUrl}/${t}${this.buildQueryString(l)}`, d = {
522
526
  ...this.config.headers,
523
527
  ...Rt.getAuthHeader(),
524
- ...i
528
+ ...a
525
529
  }, u = {
526
530
  method: n,
527
531
  headers: d
528
532
  };
529
533
  s && n !== "GET" && (u.body = JSON.stringify(s));
530
534
  try {
531
- const x = new AbortController(), w = setTimeout(() => x.abort(), this.config.timeout), T = await fetch(y, {
535
+ const m = new AbortController(), w = setTimeout(() => m.abort(), this.config.timeout), T = await fetch(y, {
532
536
  ...u,
533
- signal: x.signal
537
+ signal: m.signal
534
538
  });
535
539
  if (clearTimeout(w), !T.ok) {
536
540
  const C = await T.json().catch(() => ({
@@ -539,8 +543,8 @@ class Tt {
539
543
  throw new Error(C.message || `HTTP ${T.status}`);
540
544
  }
541
545
  return await T.json();
542
- } catch (x) {
543
- throw x instanceof Error ? x : new Error("An unexpected error occurred");
546
+ } catch (m) {
547
+ throw m instanceof Error ? m : new Error("An unexpected error occurred");
544
548
  }
545
549
  }
546
550
  /**
@@ -598,12 +602,12 @@ function tt() {
598
602
  function kt(p, t, r = {}) {
599
603
  const {
600
604
  enabled: n = !0,
601
- refetchOnMount: i = !0,
605
+ refetchOnMount: a = !0,
602
606
  onSuccess: s,
603
607
  onError: l
604
- } = r, [y, d] = L(null), [u, x] = L(n), [w, T] = L(null), C = Q(async () => {
608
+ } = r, [y, d] = L(null), [u, m] = L(n), [w, T] = L(null), C = Q(async () => {
605
609
  if (n) {
606
- x(!0), T(null);
610
+ m(!0), T(null);
607
611
  try {
608
612
  const O = await tt().get(p, t);
609
613
  d(O), s == null || s(O);
@@ -611,13 +615,13 @@ function kt(p, t, r = {}) {
611
615
  const O = P instanceof Error ? P : new Error("Unknown error");
612
616
  T(O), l == null || l(O);
613
617
  } finally {
614
- x(!1);
618
+ m(!1);
615
619
  }
616
620
  }
617
621
  }, [p, JSON.stringify(t), n, s, l]);
618
622
  return pe(() => {
619
- i && C();
620
- }, [C, i]), {
623
+ a && C();
624
+ }, [C, a]), {
621
625
  data: y,
622
626
  loading: u,
623
627
  error: w,
@@ -625,9 +629,9 @@ function kt(p, t, r = {}) {
625
629
  };
626
630
  }
627
631
  function Ut(p, t = "POST", r = {}) {
628
- const { onSuccess: n, onError: i } = r, [s, l] = L(null), [y, d] = L(!1), [u, x] = L(null), w = Q(
632
+ const { onSuccess: n, onError: a } = r, [s, l] = L(null), [y, d] = L(!1), [u, m] = L(null), w = Q(
629
633
  async (C) => {
630
- d(!0), x(null);
634
+ d(!0), m(null);
631
635
  try {
632
636
  const P = tt();
633
637
  let O;
@@ -650,14 +654,14 @@ function Ut(p, t = "POST", r = {}) {
650
654
  return l(O), n == null || n(O, C), O;
651
655
  } catch (P) {
652
656
  const O = P instanceof Error ? P : new Error("Unknown error");
653
- return x(O), i == null || i(O, C), null;
657
+ return m(O), a == null || a(O, C), null;
654
658
  } finally {
655
659
  d(!1);
656
660
  }
657
661
  },
658
- [p, t, n, i]
662
+ [p, t, n, a]
659
663
  ), T = Q(() => {
660
- l(null), x(null), d(!1);
664
+ l(null), m(null), d(!1);
661
665
  }, []);
662
666
  return {
663
667
  data: s,
@@ -681,13 +685,13 @@ var Xe;
681
685
  function St() {
682
686
  if (Xe) return ue;
683
687
  Xe = 1;
684
- var p = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
688
+ var p = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
685
689
  function l(y, d, u) {
686
- var x, w = {}, T = null, C = null;
690
+ var m, w = {}, T = null, C = null;
687
691
  u !== void 0 && (T = "" + u), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (C = d.ref);
688
- for (x in d) n.call(d, x) && !s.hasOwnProperty(x) && (w[x] = d[x]);
689
- if (y && y.defaultProps) for (x in d = y.defaultProps, d) w[x] === void 0 && (w[x] = d[x]);
690
- return { $$typeof: t, type: y, key: T, ref: C, props: w, _owner: i.current };
692
+ for (m in d) n.call(d, m) && !s.hasOwnProperty(m) && (w[m] = d[m]);
693
+ if (y && y.defaultProps) for (m in d = y.defaultProps, d) w[m] === void 0 && (w[m] = d[m]);
694
+ return { $$typeof: t, type: y, key: T, ref: C, props: w, _owner: a.current };
691
695
  }
692
696
  return ue.Fragment = r, ue.jsx = l, ue.jsxs = l, ue;
693
697
  }
@@ -704,7 +708,7 @@ var fe = {};
704
708
  var He;
705
709
  function Ot() {
706
710
  return He || (He = 1, process.env.NODE_ENV !== "production" && function() {
707
- var p = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), y = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), P = Symbol.iterator, O = "@@iterator";
711
+ var p = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), y = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), P = Symbol.iterator, O = "@@iterator";
708
712
  function X(e) {
709
713
  if (e === null || typeof e != "object")
710
714
  return null;
@@ -714,14 +718,14 @@ function Ot() {
714
718
  var z = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
715
719
  function g(e) {
716
720
  {
717
- for (var o = arguments.length, c = new Array(o > 1 ? o - 1 : 0), m = 1; m < o; m++)
718
- c[m - 1] = arguments[m];
721
+ for (var o = arguments.length, c = new Array(o > 1 ? o - 1 : 0), x = 1; x < o; x++)
722
+ c[x - 1] = arguments[x];
719
723
  M("error", e, c);
720
724
  }
721
725
  }
722
726
  function M(e, o, c) {
723
727
  {
724
- var m = z.ReactDebugCurrentFrame, N = m.getStackAddendum();
728
+ var x = z.ReactDebugCurrentFrame, N = x.getStackAddendum();
725
729
  N !== "" && (o += "%s", c = c.concat([N]));
726
730
  var A = c.map(function(R) {
727
731
  return String(R);
@@ -732,16 +736,16 @@ function Ot() {
732
736
  var V = !1, H = !1, v = !1, S = !1, $ = !1, h;
733
737
  h = Symbol.for("react.module.reference");
734
738
  function k(e) {
735
- return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || $ || e === i || e === u || e === x || S || e === C || V || H || v || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === l || e.$$typeof === y || e.$$typeof === d || // This needs to include all possible module reference object
739
+ return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || $ || e === a || e === u || e === m || S || e === C || V || H || v || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === l || e.$$typeof === y || e.$$typeof === d || // This needs to include all possible module reference object
736
740
  // types supported by any Flight configuration anywhere since
737
741
  // we don't know which Flight build this will end up being used
738
742
  // with.
739
743
  e.$$typeof === h || e.getModuleId !== void 0));
740
744
  }
741
745
  function j(e, o, c) {
742
- var m = e.displayName;
743
- if (m)
744
- return m;
746
+ var x = e.displayName;
747
+ if (x)
748
+ return x;
745
749
  var N = o.displayName || o.name || "";
746
750
  return N !== "" ? c + "(" + N + ")" : c;
747
751
  }
@@ -762,11 +766,11 @@ function Ot() {
762
766
  return "Portal";
763
767
  case s:
764
768
  return "Profiler";
765
- case i:
769
+ case a:
766
770
  return "StrictMode";
767
771
  case u:
768
772
  return "Suspense";
769
- case x:
773
+ case m:
770
774
  return "SuspenseList";
771
775
  }
772
776
  if (typeof e == "object")
@@ -780,8 +784,8 @@ function Ot() {
780
784
  case d:
781
785
  return j(e, e.render, "ForwardRef");
782
786
  case w:
783
- var m = e.displayName || null;
784
- return m !== null ? m : I(e.type) || "Memo";
787
+ var x = e.displayName || null;
788
+ return x !== null ? x : I(e.type) || "Memo";
785
789
  case T: {
786
790
  var N = e, A = N._payload, R = N._init;
787
791
  try {
@@ -793,14 +797,14 @@ function Ot() {
793
797
  }
794
798
  return null;
795
799
  }
796
- var E = Object.assign, F = 0, Y, he, ge, ye, xe, me, ve;
800
+ var E = Object.assign, F = 0, Y, he, ge, ye, me, xe, ve;
797
801
  function be() {
798
802
  }
799
803
  be.__reactDisabledLog = !0;
800
804
  function Re() {
801
805
  {
802
806
  if (F === 0) {
803
- Y = console.log, he = console.info, ge = console.warn, ye = console.error, xe = console.group, me = console.groupCollapsed, ve = console.groupEnd;
807
+ Y = console.log, he = console.info, ge = console.warn, ye = console.error, me = console.group, xe = console.groupCollapsed, ve = console.groupEnd;
804
808
  var e = {
805
809
  configurable: !0,
806
810
  enumerable: !0,
@@ -842,10 +846,10 @@ function Ot() {
842
846
  value: ye
843
847
  }),
844
848
  group: E({}, e, {
845
- value: xe
849
+ value: me
846
850
  }),
847
851
  groupCollapsed: E({}, e, {
848
- value: me
852
+ value: xe
849
853
  }),
850
854
  groupEnd: E({}, e, {
851
855
  value: ve
@@ -862,8 +866,8 @@ function Ot() {
862
866
  try {
863
867
  throw Error();
864
868
  } catch (N) {
865
- var m = N.stack.trim().match(/\n( *(at )?)/);
866
- oe = m && m[1] || "";
869
+ var x = N.stack.trim().match(/\n( *(at )?)/);
870
+ oe = x && x[1] || "";
867
871
  }
868
872
  return `
869
873
  ` + oe + e;
@@ -882,7 +886,7 @@ function Ot() {
882
886
  if (c !== void 0)
883
887
  return c;
884
888
  }
885
- var m;
889
+ var x;
886
890
  le = !0;
887
891
  var N = Error.prepareStackTrace;
888
892
  Error.prepareStackTrace = void 0;
@@ -901,14 +905,14 @@ function Ot() {
901
905
  try {
902
906
  Reflect.construct(R, []);
903
907
  } catch (q) {
904
- m = q;
908
+ x = q;
905
909
  }
906
910
  Reflect.construct(e, [], R);
907
911
  } else {
908
912
  try {
909
913
  R.call();
910
914
  } catch (q) {
911
- m = q;
915
+ x = q;
912
916
  }
913
917
  e.call(R.prototype);
914
918
  }
@@ -916,14 +920,14 @@ function Ot() {
916
920
  try {
917
921
  throw Error();
918
922
  } catch (q) {
919
- m = q;
923
+ x = q;
920
924
  }
921
925
  e();
922
926
  }
923
927
  } catch (q) {
924
- if (q && m && typeof q.stack == "string") {
928
+ if (q && x && typeof q.stack == "string") {
925
929
  for (var _ = q.stack.split(`
926
- `), G = m.stack.split(`
930
+ `), G = x.stack.split(`
927
931
  `), U = _.length - 1, D = G.length - 1; U >= 1 && D >= 0 && _[U] !== G[D]; )
928
932
  D--;
929
933
  for (; U >= 1 && D >= 0; U--, D--)
@@ -962,7 +966,7 @@ function Ot() {
962
966
  switch (e) {
963
967
  case u:
964
968
  return re("Suspense");
965
- case x:
969
+ case m:
966
970
  return re("SuspenseList");
967
971
  }
968
972
  if (typeof e == "object")
@@ -972,7 +976,7 @@ function Ot() {
972
976
  case w:
973
977
  return b(e.type, o, c);
974
978
  case T: {
975
- var m = e, N = m._payload, A = m._init;
979
+ var x = e, N = x._payload, A = x._init;
976
980
  try {
977
981
  return b(A(N), o, c);
978
982
  } catch {
@@ -989,7 +993,7 @@ function Ot() {
989
993
  } else
990
994
  ee.setExtraStackFrame(null);
991
995
  }
992
- function Oe(e, o, c, m, N) {
996
+ function Oe(e, o, c, x, N) {
993
997
  {
994
998
  var A = Function.call.bind(B);
995
999
  for (var R in e)
@@ -997,14 +1001,14 @@ function Ot() {
997
1001
  var _ = void 0;
998
1002
  try {
999
1003
  if (typeof e[R] != "function") {
1000
- var G = Error((m || "React class") + ": " + c + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1004
+ var G = Error((x || "React class") + ": " + c + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1001
1005
  throw G.name = "Invariant Violation", G;
1002
1006
  }
1003
- _ = e[R](o, R, m, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1007
+ _ = e[R](o, R, x, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1004
1008
  } catch (U) {
1005
1009
  _ = U;
1006
1010
  }
1007
- _ && !(_ instanceof Error) && (J(N), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", c, R, typeof _), J(null)), _ instanceof Error && !(_.message in W) && (W[_.message] = !0, J(N), g("Failed %s type: %s", c, _.message), J(null));
1011
+ _ && !(_ instanceof Error) && (J(N), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", c, R, typeof _), J(null)), _ instanceof Error && !(_.message in W) && (W[_.message] = !0, J(N), g("Failed %s type: %s", c, _.message), J(null));
1008
1012
  }
1009
1013
  }
1010
1014
  }
@@ -1079,7 +1083,7 @@ function Ot() {
1079
1083
  });
1080
1084
  }
1081
1085
  }
1082
- var dt = function(e, o, c, m, N, A, R) {
1086
+ var dt = function(e, o, c, x, N, A, R) {
1083
1087
  var _ = {
1084
1088
  // This tag allows us to uniquely identify this as a React Element
1085
1089
  $$typeof: t,
@@ -1100,7 +1104,7 @@ function Ot() {
1100
1104
  configurable: !1,
1101
1105
  enumerable: !1,
1102
1106
  writable: !1,
1103
- value: m
1107
+ value: x
1104
1108
  }), Object.defineProperty(_, "_source", {
1105
1109
  configurable: !1,
1106
1110
  enumerable: !1,
@@ -1108,7 +1112,7 @@ function Ot() {
1108
1112
  value: N
1109
1113
  }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
1110
1114
  };
1111
- function ut(e, o, c, m, N) {
1115
+ function ut(e, o, c, x, N) {
1112
1116
  {
1113
1117
  var A, R = {}, _ = null, G = null;
1114
1118
  c !== void 0 && (Ie(c), _ = "" + c), it(o) && (Ie(o.key), _ = "" + o.key), at(o) && (G = o.ref, ot(o, N));
@@ -1123,7 +1127,7 @@ function Ot() {
1123
1127
  var D = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1124
1128
  _ && lt(R, D), G && ct(R, D);
1125
1129
  }
1126
- return dt(e, _, G, N, m, Be.current, R);
1130
+ return dt(e, _, G, N, x, Be.current, R);
1127
1131
  }
1128
1132
  }
1129
1133
  var Ne = z.ReactCurrentOwner, We = z.ReactDebugCurrentFrame;
@@ -1176,8 +1180,8 @@ Check the top-level render call using <` + c + ">.");
1176
1180
  if (Ye[c])
1177
1181
  return;
1178
1182
  Ye[c] = !0;
1179
- var m = "";
1180
- e && e._owner && e._owner !== Ne.current && (m = " It was passed a child from " + I(e._owner.type) + "."), se(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, m), se(null);
1183
+ var x = "";
1184
+ e && e._owner && e._owner !== Ne.current && (x = " It was passed a child from " + I(e._owner.type) + "."), se(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, x), se(null);
1181
1185
  }
1182
1186
  }
1183
1187
  function Ve(e, o) {
@@ -1186,8 +1190,8 @@ Check the top-level render call using <` + c + ">.");
1186
1190
  return;
1187
1191
  if (ce(e))
1188
1192
  for (var c = 0; c < e.length; c++) {
1189
- var m = e[c];
1190
- Ae(m) && qe(m, o);
1193
+ var x = e[c];
1194
+ Ae(x) && qe(x, o);
1191
1195
  }
1192
1196
  else if (Ae(e))
1193
1197
  e._store && (e._store.validated = !0);
@@ -1214,8 +1218,8 @@ Check the top-level render call using <` + c + ">.");
1214
1218
  else
1215
1219
  return;
1216
1220
  if (c) {
1217
- var m = I(o);
1218
- Oe(c, e.props, "prop", m, e);
1221
+ var x = I(o);
1222
+ Oe(c, e.props, "prop", x, e);
1219
1223
  } else if (o.PropTypes !== void 0 && !Pe) {
1220
1224
  Pe = !0;
1221
1225
  var N = I(o);
@@ -1227,9 +1231,9 @@ Check the top-level render call using <` + c + ">.");
1227
1231
  function gt(e) {
1228
1232
  {
1229
1233
  for (var o = Object.keys(e.props), c = 0; c < o.length; c++) {
1230
- var m = o[c];
1231
- if (m !== "children" && m !== "key") {
1232
- se(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), se(null);
1234
+ var x = o[c];
1235
+ if (x !== "children" && x !== "key") {
1236
+ se(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), se(null);
1233
1237
  break;
1234
1238
  }
1235
1239
  }
@@ -1237,7 +1241,7 @@ Check the top-level render call using <` + c + ">.");
1237
1241
  }
1238
1242
  }
1239
1243
  var Je = {};
1240
- function Ke(e, o, c, m, N, A) {
1244
+ function Ke(e, o, c, x, N, A) {
1241
1245
  {
1242
1246
  var R = k(e);
1243
1247
  if (!R) {
@@ -1254,7 +1258,7 @@ Check the top-level render call using <` + c + ">.");
1254
1258
  if (R) {
1255
1259
  var K = o.children;
1256
1260
  if (K !== void 0)
1257
- if (m)
1261
+ if (x)
1258
1262
  if (ce(K)) {
1259
1263
  for (var ae = 0; ae < K.length; ae++)
1260
1264
  Ve(K[ae], e);
@@ -1284,15 +1288,15 @@ React keys must be passed directly to JSX without using spread:
1284
1288
  function yt(e, o, c) {
1285
1289
  return Ke(e, o, c, !0);
1286
1290
  }
1287
- function xt(e, o, c) {
1291
+ function mt(e, o, c) {
1288
1292
  return Ke(e, o, c, !1);
1289
1293
  }
1290
- var mt = xt, vt = yt;
1291
- fe.Fragment = n, fe.jsx = mt, fe.jsxs = vt;
1294
+ var xt = mt, vt = yt;
1295
+ fe.Fragment = n, fe.jsx = xt, fe.jsxs = vt;
1292
1296
  }()), fe;
1293
1297
  }
1294
1298
  process.env.NODE_ENV === "production" ? Me.exports = St() : Me.exports = Ot();
1295
- var a = Me.exports;
1299
+ var i = Me.exports;
1296
1300
  class Ue {
1297
1301
  /**
1298
1302
  * Filter array by predicate function
@@ -1304,20 +1308,20 @@ class Ue {
1304
1308
  * Filter by field value
1305
1309
  */
1306
1310
  static filterBy(t, r, n) {
1307
- return t.filter((i) => i[r] === n);
1311
+ return t.filter((a) => a[r] === n);
1308
1312
  }
1309
1313
  /**
1310
1314
  * Filter by multiple fields
1311
1315
  */
1312
1316
  static filterByFields(t, r) {
1313
- return t.filter((n) => Object.entries(r).every(([i, s]) => n[i] === s));
1317
+ return t.filter((n) => Object.entries(r).every(([a, s]) => n[a] === s));
1314
1318
  }
1315
1319
  /**
1316
1320
  * Sort array by field
1317
1321
  */
1318
1322
  static sort(t, r, n = "asc") {
1319
- return [...t].sort((i, s) => {
1320
- const l = i[r], y = s[r];
1323
+ return [...t].sort((a, s) => {
1324
+ const l = a[r], y = s[r];
1321
1325
  if (l === y) return 0;
1322
1326
  let d = 0;
1323
1327
  return l > y && (d = 1), l < y && (d = -1), n === "asc" ? d : -d;
@@ -1328,19 +1332,19 @@ class Ue {
1328
1332
  */
1329
1333
  static search(t, r, n) {
1330
1334
  if (!r.trim()) return t;
1331
- const i = r.toLowerCase();
1335
+ const a = r.toLowerCase();
1332
1336
  return t.filter((s) => n.some((l) => {
1333
1337
  const y = s[l];
1334
- return y == null ? !1 : String(y).toLowerCase().includes(i);
1338
+ return y == null ? !1 : String(y).toLowerCase().includes(a);
1335
1339
  }));
1336
1340
  }
1337
1341
  /**
1338
1342
  * Paginate array
1339
1343
  */
1340
1344
  static paginate(t, r, n) {
1341
- const i = (r - 1) * n, s = i + n;
1345
+ const a = (r - 1) * n, s = a + n;
1342
1346
  return {
1343
- data: t.slice(i, s),
1347
+ data: t.slice(a, s),
1344
1348
  total: t.length,
1345
1349
  page: r,
1346
1350
  totalPages: Math.ceil(t.length / n)
@@ -1350,24 +1354,24 @@ class Ue {
1350
1354
  * Group items by field value
1351
1355
  */
1352
1356
  static groupBy(t, r) {
1353
- return t.reduce((n, i) => {
1354
- const s = String(i[r]);
1355
- return n[s] || (n[s] = []), n[s].push(i), n;
1357
+ return t.reduce((n, a) => {
1358
+ const s = String(a[r]);
1359
+ return n[s] || (n[s] = []), n[s].push(a), n;
1356
1360
  }, {});
1357
1361
  }
1358
1362
  /**
1359
1363
  * Get unique values for a field
1360
1364
  */
1361
1365
  static unique(t, r) {
1362
- const n = t.map((i) => i[r]);
1366
+ const n = t.map((a) => a[r]);
1363
1367
  return [...new Set(n)];
1364
1368
  }
1365
1369
  /**
1366
1370
  * Count items by field value
1367
1371
  */
1368
1372
  static countBy(t, r) {
1369
- return t.reduce((n, i) => {
1370
- const s = String(i[r]);
1373
+ return t.reduce((n, a) => {
1374
+ const s = String(a[r]);
1371
1375
  return n[s] = (n[s] || 0) + 1, n;
1372
1376
  }, {});
1373
1377
  }
@@ -1375,7 +1379,7 @@ class Ue {
1375
1379
  * Apply multiple operations in sequence
1376
1380
  */
1377
1381
  static pipe(t, r) {
1378
- return r.reduce((n, i) => i(n), t);
1382
+ return r.reduce((n, a) => a(n), t);
1379
1383
  }
1380
1384
  }
1381
1385
  function Mt({
@@ -1383,13 +1387,13 @@ function Mt({
1383
1387
  params: t,
1384
1388
  layout: r = "list",
1385
1389
  title: n,
1386
- emptyMessage: i = "No items found",
1390
+ emptyMessage: a = "No items found",
1387
1391
  renderItem: s,
1388
1392
  keyExtractor: l = (O, X) => O.id || O._id || String(X),
1389
1393
  searchable: y = !1,
1390
1394
  searchFields: d = [],
1391
1395
  searchPlaceholder: u = "Search...",
1392
- filters: x = [],
1396
+ filters: m = [],
1393
1397
  pageSize: w = 20,
1394
1398
  onItemClick: T,
1395
1399
  onRefresh: C,
@@ -1412,27 +1416,27 @@ function Mt({
1412
1416
  textSecondary: P.textSecondary || "#6b7280",
1413
1417
  border: P.border || "#e5e7eb",
1414
1418
  primary: P.primary || "#3b82f6"
1415
- }, I = s || ((E) => /* @__PURE__ */ a.jsxs("div", { style: {
1419
+ }, I = s || ((E) => /* @__PURE__ */ i.jsxs("div", { style: {
1416
1420
  padding: "16px",
1417
1421
  cursor: T ? "pointer" : "default"
1418
1422
  }, children: [
1419
- /* @__PURE__ */ a.jsx("div", { style: { fontSize: "14px", fontWeight: 500, color: j.text }, children: E.title || E.name || E.label || "Untitled" }),
1420
- E.description && /* @__PURE__ */ a.jsx("div", { style: { fontSize: "13px", color: j.textSecondary, marginTop: "4px" }, children: E.description })
1423
+ /* @__PURE__ */ i.jsx("div", { style: { fontSize: "14px", fontWeight: 500, color: j.text }, children: E.title || E.name || E.label || "Untitled" }),
1424
+ E.description && /* @__PURE__ */ i.jsx("div", { style: { fontSize: "13px", color: j.textSecondary, marginTop: "4px" }, children: E.description })
1421
1425
  ] }));
1422
- return X && !O ? /* @__PURE__ */ a.jsx("div", { style: {
1426
+ return X && !O ? /* @__PURE__ */ i.jsx("div", { style: {
1423
1427
  display: "flex",
1424
1428
  alignItems: "center",
1425
1429
  justifyContent: "center",
1426
1430
  padding: "48px",
1427
1431
  color: j.textSecondary
1428
- }, children: "Loading..." }) : z ? /* @__PURE__ */ a.jsxs("div", { style: {
1432
+ }, children: "Loading..." }) : z ? /* @__PURE__ */ i.jsxs("div", { style: {
1429
1433
  padding: "24px",
1430
1434
  textAlign: "center",
1431
1435
  color: "#ef4444"
1432
1436
  }, children: [
1433
- /* @__PURE__ */ a.jsx("div", { style: { fontWeight: 500, marginBottom: "8px" }, children: "Error" }),
1434
- /* @__PURE__ */ a.jsx("div", { style: { fontSize: "14px" }, children: z.message }),
1435
- /* @__PURE__ */ a.jsx(
1437
+ /* @__PURE__ */ i.jsx("div", { style: { fontWeight: 500, marginBottom: "8px" }, children: "Error" }),
1438
+ /* @__PURE__ */ i.jsx("div", { style: { fontSize: "14px" }, children: z.message }),
1439
+ /* @__PURE__ */ i.jsx(
1436
1440
  "button",
1437
1441
  {
1438
1442
  onClick: k,
@@ -1448,28 +1452,28 @@ function Mt({
1448
1452
  children: "Retry"
1449
1453
  }
1450
1454
  )
1451
- ] }) : /* @__PURE__ */ a.jsxs("div", { style: {
1455
+ ] }) : /* @__PURE__ */ i.jsxs("div", { style: {
1452
1456
  background: j.background,
1453
1457
  borderRadius: "12px",
1454
1458
  overflow: "hidden"
1455
1459
  }, children: [
1456
- (n || y || x.length > 0) && /* @__PURE__ */ a.jsxs("div", { style: {
1460
+ (n || y || m.length > 0) && /* @__PURE__ */ i.jsxs("div", { style: {
1457
1461
  padding: "16px",
1458
1462
  borderBottom: `1px solid ${j.border}`
1459
1463
  }, children: [
1460
- /* @__PURE__ */ a.jsxs("div", { style: {
1464
+ /* @__PURE__ */ i.jsxs("div", { style: {
1461
1465
  display: "flex",
1462
1466
  alignItems: "center",
1463
1467
  justifyContent: "space-between",
1464
- marginBottom: y || x.length > 0 ? "12px" : "0"
1468
+ marginBottom: y || m.length > 0 ? "12px" : "0"
1465
1469
  }, children: [
1466
- n && /* @__PURE__ */ a.jsx("h2", { style: {
1470
+ n && /* @__PURE__ */ i.jsx("h2", { style: {
1467
1471
  margin: 0,
1468
1472
  fontSize: "18px",
1469
1473
  fontWeight: 600,
1470
1474
  color: j.text
1471
1475
  }, children: n }),
1472
- /* @__PURE__ */ a.jsx(
1476
+ /* @__PURE__ */ i.jsx(
1473
1477
  "button",
1474
1478
  {
1475
1479
  onClick: k,
@@ -1486,7 +1490,7 @@ function Mt({
1486
1490
  }
1487
1491
  )
1488
1492
  ] }),
1489
- y && /* @__PURE__ */ a.jsx(
1493
+ y && /* @__PURE__ */ i.jsx(
1490
1494
  "input",
1491
1495
  {
1492
1496
  type: "text",
@@ -1504,17 +1508,17 @@ function Mt({
1504
1508
  }
1505
1509
  )
1506
1510
  ] }),
1507
- /* @__PURE__ */ a.jsx("div", { style: {
1511
+ /* @__PURE__ */ i.jsx("div", { style: {
1508
1512
  display: r === "grid" ? "grid" : "flex",
1509
1513
  flexDirection: r === "list" ? "column" : void 0,
1510
1514
  gridTemplateColumns: r === "grid" ? "repeat(auto-fill, minmax(250px, 1fr))" : void 0,
1511
1515
  gap: r === "list" ? "0" : "16px",
1512
1516
  padding: r === "list" ? "0" : "16px"
1513
- }, children: h.data.length === 0 ? /* @__PURE__ */ a.jsx("div", { style: {
1517
+ }, children: h.data.length === 0 ? /* @__PURE__ */ i.jsx("div", { style: {
1514
1518
  padding: "48px",
1515
1519
  textAlign: "center",
1516
1520
  color: j.textSecondary
1517
- }, children: i }) : h.data.map((E, F) => /* @__PURE__ */ a.jsx(
1521
+ }, children: a }) : h.data.map((E, F) => /* @__PURE__ */ i.jsx(
1518
1522
  "div",
1519
1523
  {
1520
1524
  onClick: () => T == null ? void 0 : T(E),
@@ -1534,21 +1538,21 @@ function Mt({
1534
1538
  },
1535
1539
  l(E, F)
1536
1540
  )) }),
1537
- h.totalPages > 1 && /* @__PURE__ */ a.jsxs("div", { style: {
1541
+ h.totalPages > 1 && /* @__PURE__ */ i.jsxs("div", { style: {
1538
1542
  padding: "16px",
1539
1543
  borderTop: `1px solid ${j.border}`,
1540
1544
  display: "flex",
1541
1545
  alignItems: "center",
1542
1546
  justifyContent: "space-between"
1543
1547
  }, children: [
1544
- /* @__PURE__ */ a.jsxs("div", { style: { fontSize: "13px", color: j.textSecondary }, children: [
1548
+ /* @__PURE__ */ i.jsxs("div", { style: { fontSize: "13px", color: j.textSecondary }, children: [
1545
1549
  "Page ",
1546
1550
  S,
1547
1551
  " of ",
1548
1552
  h.totalPages
1549
1553
  ] }),
1550
- /* @__PURE__ */ a.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
1551
- /* @__PURE__ */ a.jsx(
1554
+ /* @__PURE__ */ i.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
1555
+ /* @__PURE__ */ i.jsx(
1552
1556
  "button",
1553
1557
  {
1554
1558
  onClick: () => $((E) => Math.max(1, E - 1)),
@@ -1564,7 +1568,7 @@ function Mt({
1564
1568
  children: "Previous"
1565
1569
  }
1566
1570
  ),
1567
- /* @__PURE__ */ a.jsx(
1571
+ /* @__PURE__ */ i.jsx(
1568
1572
  "button",
1569
1573
  {
1570
1574
  onClick: () => $((E) => Math.min(h.totalPages, E + 1)),
@@ -1589,11 +1593,11 @@ function Dt({
1589
1593
  onClick: t,
1590
1594
  title: r = (l) => l.title || l.name || l.label || "Untitled",
1591
1595
  subtitle: n = (l) => l.description || l.subtitle || "",
1592
- image: i = (l) => l.image || l.thumbnail || l.photo,
1596
+ image: a = (l) => l.image || l.thumbnail || l.photo,
1593
1597
  badge: s = (l) => l.badge || l.tag || l.type
1594
1598
  }) {
1595
- const l = r(p), y = n(p), d = i(p), u = s(p);
1596
- return /* @__PURE__ */ a.jsxs(
1599
+ const l = r(p), y = n(p), d = a(p), u = s(p);
1600
+ return /* @__PURE__ */ i.jsxs(
1597
1601
  "div",
1598
1602
  {
1599
1603
  onClick: t,
@@ -1603,7 +1607,7 @@ function Dt({
1603
1607
  ${t ? "cursor-pointer" : ""}
1604
1608
  `,
1605
1609
  children: [
1606
- d && /* @__PURE__ */ a.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ a.jsx(
1610
+ d && /* @__PURE__ */ i.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ i.jsx(
1607
1611
  "img",
1608
1612
  {
1609
1613
  src: d,
@@ -1611,14 +1615,14 @@ function Dt({
1611
1615
  className: "w-16 h-16 object-cover rounded-lg"
1612
1616
  }
1613
1617
  ) }),
1614
- /* @__PURE__ */ a.jsxs("div", { className: "flex-1 min-w-0", children: [
1615
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
1616
- /* @__PURE__ */ a.jsx("h3", { className: "font-medium text-gray-900 truncate", children: l }),
1617
- u && /* @__PURE__ */ a.jsx("span", { className: "px-2 py-0.5 text-xs font-medium bg-blue-100 text-blue-800 rounded-full", children: u })
1618
+ /* @__PURE__ */ i.jsxs("div", { className: "flex-1 min-w-0", children: [
1619
+ /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2", children: [
1620
+ /* @__PURE__ */ i.jsx("h3", { className: "font-medium text-gray-900 truncate", children: l }),
1621
+ u && /* @__PURE__ */ i.jsx("span", { className: "px-2 py-0.5 text-xs font-medium bg-blue-100 text-blue-800 rounded-full", children: u })
1618
1622
  ] }),
1619
- y && /* @__PURE__ */ a.jsx("p", { className: "text-sm text-gray-600 truncate mt-0.5", children: y })
1623
+ y && /* @__PURE__ */ i.jsx("p", { className: "text-sm text-gray-600 truncate mt-0.5", children: y })
1620
1624
  ] }),
1621
- t && /* @__PURE__ */ a.jsx("div", { className: "flex-shrink-0 text-gray-400", children: /* @__PURE__ */ a.jsx("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" }) }) })
1625
+ t && /* @__PURE__ */ i.jsx("div", { className: "flex-shrink-0 text-gray-400", children: /* @__PURE__ */ i.jsx("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ i.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" }) }) })
1622
1626
  ]
1623
1627
  }
1624
1628
  );
@@ -1628,24 +1632,24 @@ function It({
1628
1632
  onClose: t,
1629
1633
  title: r = (s) => s.title || s.name || s.label || "Detail",
1630
1634
  image: n = (s) => s.image || s.thumbnail || s.photo,
1631
- fields: i = []
1635
+ fields: a = []
1632
1636
  }) {
1633
1637
  if (!p) return null;
1634
1638
  const s = r(p), l = n(p);
1635
- return /* @__PURE__ */ a.jsx("div", { className: "fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto shadow-2xl", children: [
1636
- /* @__PURE__ */ a.jsxs("div", { className: "sticky top-0 bg-white border-b border-gray-200 px-6 py-4 flex items-center justify-between", children: [
1637
- /* @__PURE__ */ a.jsx("h2", { className: "text-xl font-semibold text-gray-900", children: s }),
1638
- t && /* @__PURE__ */ a.jsx(
1639
+ return /* @__PURE__ */ i.jsx("div", { className: "fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ i.jsxs("div", { className: "bg-white rounded-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto shadow-2xl", children: [
1640
+ /* @__PURE__ */ i.jsxs("div", { className: "sticky top-0 bg-white border-b border-gray-200 px-6 py-4 flex items-center justify-between", children: [
1641
+ /* @__PURE__ */ i.jsx("h2", { className: "text-xl font-semibold text-gray-900", children: s }),
1642
+ t && /* @__PURE__ */ i.jsx(
1639
1643
  "button",
1640
1644
  {
1641
1645
  onClick: t,
1642
1646
  className: "p-2 hover:bg-gray-100 rounded-lg transition-colors",
1643
- children: /* @__PURE__ */ a.jsx("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
1647
+ children: /* @__PURE__ */ i.jsx("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ i.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
1644
1648
  }
1645
1649
  )
1646
1650
  ] }),
1647
- /* @__PURE__ */ a.jsxs("div", { className: "p-6", children: [
1648
- l && /* @__PURE__ */ a.jsx("div", { className: "mb-6", children: /* @__PURE__ */ a.jsx(
1651
+ /* @__PURE__ */ i.jsxs("div", { className: "p-6", children: [
1652
+ l && /* @__PURE__ */ i.jsx("div", { className: "mb-6", children: /* @__PURE__ */ i.jsx(
1649
1653
  "img",
1650
1654
  {
1651
1655
  src: l,
@@ -1653,16 +1657,16 @@ function It({
1653
1657
  className: "w-full h-64 object-cover rounded-lg"
1654
1658
  }
1655
1659
  ) }),
1656
- i.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "space-y-4", children: i.map((y, d) => {
1660
+ a.length > 0 && /* @__PURE__ */ i.jsx("div", { className: "space-y-4", children: a.map((y, d) => {
1657
1661
  const u = y.value(p);
1658
- return u == null || u === "" ? null : /* @__PURE__ */ a.jsxs("div", { children: [
1659
- /* @__PURE__ */ a.jsx("div", { className: "text-sm font-medium text-gray-500 mb-1", children: y.label }),
1660
- /* @__PURE__ */ a.jsx("div", { className: "text-base text-gray-900", children: typeof u == "object" ? JSON.stringify(u, null, 2) : String(u) })
1662
+ return u == null || u === "" ? null : /* @__PURE__ */ i.jsxs("div", { children: [
1663
+ /* @__PURE__ */ i.jsx("div", { className: "text-sm font-medium text-gray-500 mb-1", children: y.label }),
1664
+ /* @__PURE__ */ i.jsx("div", { className: "text-base text-gray-900", children: typeof u == "object" ? JSON.stringify(u, null, 2) : String(u) })
1661
1665
  ] }, d);
1662
1666
  }) }),
1663
- i.length === 0 && /* @__PURE__ */ a.jsx("pre", { className: "bg-gray-50 p-4 rounded-lg text-sm overflow-x-auto", children: JSON.stringify(p, null, 2) })
1667
+ a.length === 0 && /* @__PURE__ */ i.jsx("pre", { className: "bg-gray-50 p-4 rounded-lg text-sm overflow-x-auto", children: JSON.stringify(p, null, 2) })
1664
1668
  ] }),
1665
- t && /* @__PURE__ */ a.jsx("div", { className: "sticky bottom-0 bg-gray-50 border-t border-gray-200 px-6 py-4", children: /* @__PURE__ */ a.jsx(
1669
+ t && /* @__PURE__ */ i.jsx("div", { className: "sticky bottom-0 bg-gray-50 border-t border-gray-200 px-6 py-4", children: /* @__PURE__ */ i.jsx(
1666
1670
  "button",
1667
1671
  {
1668
1672
  onClick: t,
@@ -1682,11 +1686,11 @@ function Bt({
1682
1686
  cardCount: t = 2,
1683
1687
  minInterval: r = 1e3,
1684
1688
  maxInterval: n = 3e3,
1685
- onCardClick: i,
1689
+ onCardClick: a,
1686
1690
  cardSize: s = "medium",
1687
1691
  className: l = ""
1688
1692
  }) {
1689
- const y = Math.min(Math.max(t, 1), 5), [d, u] = L([]), [x, w] = L([]), [T, C] = L(Array(y).fill(!1)), [P, O] = L(Array(y).fill(!1)), X = Qe([]), z = Q((v) => {
1693
+ const y = Math.min(Math.max(t, 1), 5), [d, u] = L([]), [m, w] = L([]), [T, C] = L(Array(y).fill(!1)), [P, O] = L(Array(y).fill(!1)), X = Qe([]), z = Q((v) => {
1690
1694
  const S = p.filter((h) => !v.includes(h._id));
1691
1695
  if (S.length === 0) return null;
1692
1696
  const $ = Math.floor(Math.random() * S.length);
@@ -1724,10 +1728,10 @@ function Bt({
1724
1728
  const h = !P[v];
1725
1729
  h && u((k) => {
1726
1730
  const j = [...k];
1727
- return j[v] = x[v], j;
1731
+ return j[v] = m[v], j;
1728
1732
  }), w((k) => {
1729
1733
  const j = [...k], I = [
1730
- (h ? x[v] : d[v])._id,
1734
+ (h ? m[v] : d[v])._id,
1731
1735
  ...d.filter((F, Y) => Y !== v).map((F) => F._id),
1732
1736
  ...k.filter((F, Y) => Y !== v).map((F) => F._id)
1733
1737
  ], E = z(I);
@@ -1739,7 +1743,7 @@ function Bt({
1739
1743
  }, 150);
1740
1744
  }, S);
1741
1745
  X.current[v] = $;
1742
- }, [g, z, d, x, P]), V = Qe(!1);
1746
+ }, [g, z, d, m, P]), V = Qe(!1);
1743
1747
  pe(() => {
1744
1748
  if (!(d.length === 0 || p.length <= 1) && !V.current) {
1745
1749
  V.current = !0;
@@ -1751,17 +1755,17 @@ function Bt({
1751
1755
  }
1752
1756
  }, [d.length, p.length]);
1753
1757
  const H = (v) => {
1754
- i && i(v);
1758
+ a && a(v);
1755
1759
  };
1756
- return p.length === 0 ? /* @__PURE__ */ a.jsx("div", { className: `flex items-center justify-center p-8 ${l}`, children: /* @__PURE__ */ a.jsx("p", { className: "text-gray-500", children: "No nodes available" }) }) : d.length === 0 ? /* @__PURE__ */ a.jsx("div", { className: `flex items-center justify-center p-8 ${l}`, children: /* @__PURE__ */ a.jsx("p", { className: "text-gray-500", children: "Loading..." }) }) : /* @__PURE__ */ a.jsx("div", { className: `flex gap-4 justify-center items-center flex-wrap ${l}`, children: d.map((v, S) => {
1757
- const $ = x[S], h = P[S];
1758
- return /* @__PURE__ */ a.jsx(
1760
+ return p.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: `flex items-center justify-center p-8 ${l}`, children: /* @__PURE__ */ i.jsx("p", { className: "text-gray-500", children: "No nodes available" }) }) : d.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: `flex items-center justify-center p-8 ${l}`, children: /* @__PURE__ */ i.jsx("p", { className: "text-gray-500", children: "Loading..." }) }) : /* @__PURE__ */ i.jsx("div", { className: `flex gap-4 justify-center items-center flex-wrap ${l}`, children: d.map((v, S) => {
1761
+ const $ = m[S], h = P[S];
1762
+ return /* @__PURE__ */ i.jsx(
1759
1763
  "div",
1760
1764
  {
1761
1765
  className: `relative ${Nt[s]}`,
1762
1766
  style: { perspective: "1000px" },
1763
1767
  onClick: () => H(h ? $ : v),
1764
- children: /* @__PURE__ */ a.jsxs(
1768
+ children: /* @__PURE__ */ i.jsxs(
1765
1769
  "div",
1766
1770
  {
1767
1771
  className: "w-full h-full rounded-lg shadow-lg overflow-hidden cursor-pointer hover:shadow-xl",
@@ -1771,14 +1775,14 @@ function Bt({
1771
1775
  transformStyle: "preserve-3d"
1772
1776
  },
1773
1777
  children: [
1774
- /* @__PURE__ */ a.jsx(
1778
+ /* @__PURE__ */ i.jsx(
1775
1779
  "div",
1776
1780
  {
1777
1781
  className: "absolute inset-0 transition-opacity duration-200",
1778
1782
  style: {
1779
1783
  opacity: h ? 0 : 1
1780
1784
  },
1781
- children: /* @__PURE__ */ a.jsxs(
1785
+ children: /* @__PURE__ */ i.jsxs(
1782
1786
  "div",
1783
1787
  {
1784
1788
  style: {
@@ -1787,7 +1791,7 @@ function Bt({
1787
1791
  height: "100%"
1788
1792
  },
1789
1793
  children: [
1790
- /* @__PURE__ */ a.jsx(
1794
+ /* @__PURE__ */ i.jsx(
1791
1795
  "img",
1792
1796
  {
1793
1797
  src: v.data.image,
@@ -1795,20 +1799,20 @@ function Bt({
1795
1799
  className: "w-full h-full object-cover"
1796
1800
  }
1797
1801
  ),
1798
- /* @__PURE__ */ a.jsx("div", { className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2", children: /* @__PURE__ */ a.jsx("p", { className: "text-white text-sm font-medium truncate", children: v.title }) })
1802
+ /* @__PURE__ */ i.jsx("div", { className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2", children: /* @__PURE__ */ i.jsx("p", { className: "text-white text-sm font-medium truncate", children: v.title }) })
1799
1803
  ]
1800
1804
  }
1801
1805
  )
1802
1806
  }
1803
1807
  ),
1804
- $ && /* @__PURE__ */ a.jsx(
1808
+ $ && /* @__PURE__ */ i.jsx(
1805
1809
  "div",
1806
1810
  {
1807
1811
  className: "absolute inset-0 transition-opacity duration-200",
1808
1812
  style: {
1809
1813
  opacity: h ? 1 : 0
1810
1814
  },
1811
- children: /* @__PURE__ */ a.jsxs(
1815
+ children: /* @__PURE__ */ i.jsxs(
1812
1816
  "div",
1813
1817
  {
1814
1818
  style: {
@@ -1817,7 +1821,7 @@ function Bt({
1817
1821
  height: "100%"
1818
1822
  },
1819
1823
  children: [
1820
- /* @__PURE__ */ a.jsx(
1824
+ /* @__PURE__ */ i.jsx(
1821
1825
  "img",
1822
1826
  {
1823
1827
  src: $.data.image,
@@ -1825,7 +1829,7 @@ function Bt({
1825
1829
  className: "w-full h-full object-cover"
1826
1830
  }
1827
1831
  ),
1828
- /* @__PURE__ */ a.jsx("div", { className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2", children: /* @__PURE__ */ a.jsx("p", { className: "text-white text-sm font-medium truncate", children: $.title }) })
1832
+ /* @__PURE__ */ i.jsx("div", { className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2", children: /* @__PURE__ */ i.jsx("p", { className: "text-white text-sm font-medium truncate", children: $.title }) })
1829
1833
  ]
1830
1834
  }
1831
1835
  )
@@ -1842,12 +1846,12 @@ function Bt({
1842
1846
  function je(p) {
1843
1847
  if (!p) return "";
1844
1848
  const t = /=\?([^?]+)\?([BQbq])\?([^?]*)\?=/g;
1845
- return p.replace(t, (r, n, i, s) => {
1849
+ return p.replace(t, (r, n, a, s) => {
1846
1850
  try {
1847
- if (i.toUpperCase() === "B") {
1851
+ if (a.toUpperCase() === "B") {
1848
1852
  const l = atob(s);
1849
1853
  return decodeURIComponent(escape(l));
1850
- } else if (i.toUpperCase() === "Q") {
1854
+ } else if (a.toUpperCase() === "Q") {
1851
1855
  const l = s.replace(/_/g, " ").replace(
1852
1856
  /=([0-9A-Fa-f]{2})/g,
1853
1857
  (y, d) => String.fromCharCode(parseInt(d, 16))
@@ -1876,13 +1880,13 @@ function Lt({
1876
1880
  systemId: t,
1877
1881
  accountId: r,
1878
1882
  limit: n = 30,
1879
- selectable: i = !0,
1883
+ selectable: a = !0,
1880
1884
  showDetail: s = !1,
1881
1885
  emptyMessage: l = "No emails",
1882
1886
  autoLoad: y = !0,
1883
1887
  onSelect: d,
1884
1888
  onSelectionChange: u,
1885
- onDelete: x,
1889
+ onDelete: m,
1886
1890
  onError: w,
1887
1891
  renderItem: T,
1888
1892
  renderDetail: C,
@@ -1913,7 +1917,7 @@ function Lt({
1913
1917
  y && Y();
1914
1918
  }, [y, Y]);
1915
1919
  const he = Q((f, b, B) => {
1916
- if (!i) {
1920
+ if (!a) {
1917
1921
  d == null || d(f), s && E(f);
1918
1922
  return;
1919
1923
  }
@@ -1932,62 +1936,62 @@ function Lt({
1932
1936
  const ee = /* @__PURE__ */ new Set([W]);
1933
1937
  k(ee), Z(b), u == null || u(Array.from(ee));
1934
1938
  }
1935
- }, [i, j, M, h, d, u, s]), ge = Q(async () => {
1939
+ }, [a, j, M, h, d, u, s]), ge = Q(async () => {
1936
1940
  if (!(!F || h.size === 0))
1937
1941
  try {
1938
1942
  const f = await F.trashEmails(r, Array.from(h));
1939
1943
  if (console.log("Trash result:", f), f.success && f.moved > 0) {
1940
1944
  V((B) => B.filter((W) => !h.has(W.uid)));
1941
1945
  const b = Array.from(h);
1942
- k(/* @__PURE__ */ new Set()), x == null || x(b);
1946
+ k(/* @__PURE__ */ new Set()), m == null || m(b);
1943
1947
  } else
1944
1948
  $("Failed to move emails to trash");
1945
1949
  } catch (f) {
1946
1950
  const b = f instanceof Error ? f : new Error("Trash failed");
1947
1951
  console.error("Trash error:", b), $(b.message), w == null || w(b);
1948
1952
  }
1949
- }, [F, r, h, x, w]), ye = Q(async () => {
1953
+ }, [F, r, h, m, w]), ye = Q(async () => {
1950
1954
  if (!(!F || h.size === 0))
1951
1955
  try {
1952
1956
  const f = await F.archiveEmails(r, Array.from(h));
1953
1957
  if (console.log("Archive result:", f), f.success && f.archived > 0) {
1954
1958
  V((B) => B.filter((W) => !h.has(W.uid)));
1955
1959
  const b = Array.from(h);
1956
- k(/* @__PURE__ */ new Set()), x == null || x(b);
1960
+ k(/* @__PURE__ */ new Set()), m == null || m(b);
1957
1961
  } else
1958
1962
  $("Failed to archive emails");
1959
1963
  } catch (f) {
1960
1964
  const b = f instanceof Error ? f : new Error("Archive failed");
1961
1965
  console.error("Archive error:", b), $(b.message), w == null || w(b);
1962
1966
  }
1963
- }, [F, r, h, x, w]), xe = Q(() => {
1967
+ }, [F, r, h, m, w]), me = Q(() => {
1964
1968
  if (h.size === M.length)
1965
1969
  k(/* @__PURE__ */ new Set()), u == null || u([]);
1966
1970
  else {
1967
1971
  const f = new Set(M.map((b) => b.uid));
1968
1972
  k(f), u == null || u(Array.from(f));
1969
1973
  }
1970
- }, [M, h.size, u]), me = Q(() => {
1974
+ }, [M, h.size, u]), xe = Q(() => {
1971
1975
  k(/* @__PURE__ */ new Set()), u == null || u([]);
1972
1976
  }, [u]), ve = {
1973
1977
  delete: ge,
1974
1978
  archive: ye,
1975
1979
  refresh: Y,
1976
- selectAll: xe,
1977
- clearSelection: me
1980
+ selectAll: me,
1981
+ clearSelection: xe
1978
1982
  }, be = (f) => {
1979
1983
  if (!f) return "";
1980
1984
  const b = new Date(f), B = /* @__PURE__ */ new Date();
1981
1985
  return b.toDateString() === B.toDateString() ? b.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : b.toLocaleDateString([], { month: "short", day: "numeric" });
1982
- }, Re = (f, b) => /* @__PURE__ */ a.jsx("div", { style: {
1986
+ }, Re = (f, b) => /* @__PURE__ */ i.jsx("div", { style: {
1983
1987
  padding: "12px 16px",
1984
1988
  background: b ? g.selectedBackground : f.seen ? g.cardBackground : g.unreadBackground,
1985
1989
  borderBottom: `1px solid ${g.border}`,
1986
1990
  cursor: "pointer",
1987
1991
  transition: "background 0.15s ease"
1988
- }, children: /* @__PURE__ */ a.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", gap: "12px" }, children: [
1989
- /* @__PURE__ */ a.jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
1990
- /* @__PURE__ */ a.jsx("div", { style: {
1992
+ }, children: /* @__PURE__ */ i.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", gap: "12px" }, children: [
1993
+ /* @__PURE__ */ i.jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
1994
+ /* @__PURE__ */ i.jsx("div", { style: {
1991
1995
  fontSize: "14px",
1992
1996
  fontWeight: f.seen ? 400 : 600,
1993
1997
  color: g.text,
@@ -1995,7 +1999,7 @@ function Lt({
1995
1999
  overflow: "hidden",
1996
2000
  textOverflow: "ellipsis"
1997
2001
  }, children: je(f.from).split("@")[0] }),
1998
- /* @__PURE__ */ a.jsx("div", { style: {
2002
+ /* @__PURE__ */ i.jsx("div", { style: {
1999
2003
  fontSize: "14px",
2000
2004
  fontWeight: f.seen ? 400 : 500,
2001
2005
  color: f.seen ? g.textSecondary : g.text,
@@ -2005,21 +2009,21 @@ function Lt({
2005
2009
  textOverflow: "ellipsis"
2006
2010
  }, children: je(f.subject) || "(No subject)" })
2007
2011
  ] }),
2008
- /* @__PURE__ */ a.jsx("div", { style: {
2012
+ /* @__PURE__ */ i.jsx("div", { style: {
2009
2013
  fontSize: "12px",
2010
2014
  color: g.textSecondary,
2011
2015
  flexShrink: 0
2012
2016
  }, children: be(f.date) })
2013
- ] }) }), Te = (f) => /* @__PURE__ */ a.jsxs("div", { style: { padding: "24px" }, children: [
2014
- /* @__PURE__ */ a.jsx("h2", { style: { margin: "0 0 8px", fontSize: "20px", color: g.text }, children: je(f.subject) || "(No subject)" }),
2015
- /* @__PURE__ */ a.jsxs("div", { style: { fontSize: "14px", color: g.textSecondary, marginBottom: "16px" }, children: [
2017
+ ] }) }), Te = (f) => /* @__PURE__ */ i.jsxs("div", { style: { padding: "24px" }, children: [
2018
+ /* @__PURE__ */ i.jsx("h2", { style: { margin: "0 0 8px", fontSize: "20px", color: g.text }, children: je(f.subject) || "(No subject)" }),
2019
+ /* @__PURE__ */ i.jsxs("div", { style: { fontSize: "14px", color: g.textSecondary, marginBottom: "16px" }, children: [
2016
2020
  "From: ",
2017
2021
  je(f.from),
2018
2022
  " • ",
2019
2023
  new Date(f.date).toLocaleString()
2020
2024
  ] }),
2021
- /* @__PURE__ */ a.jsx("div", { style: { fontSize: "14px", color: g.text }, children: "Email body not loaded. Implement getEmail(uid) to fetch full content." })
2022
- ] }), ie = (f, b) => /* @__PURE__ */ a.jsxs("div", { style: {
2025
+ /* @__PURE__ */ i.jsx("div", { style: { fontSize: "14px", color: g.text }, children: "Email body not loaded. Implement getEmail(uid) to fetch full content." })
2026
+ ] }), ie = (f, b) => /* @__PURE__ */ i.jsxs("div", { style: {
2023
2027
  display: "flex",
2024
2028
  alignItems: "center",
2025
2029
  gap: "8px",
@@ -2027,7 +2031,7 @@ function Lt({
2027
2031
  background: g.cardBackground,
2028
2032
  borderBottom: `1px solid ${g.border}`
2029
2033
  }, children: [
2030
- /* @__PURE__ */ a.jsx(
2034
+ /* @__PURE__ */ i.jsx(
2031
2035
  "button",
2032
2036
  {
2033
2037
  onClick: b.selectAll,
@@ -2043,12 +2047,12 @@ function Lt({
2043
2047
  children: f.length === M.length ? "Deselect All" : "Select All"
2044
2048
  }
2045
2049
  ),
2046
- f.length > 0 && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2047
- /* @__PURE__ */ a.jsxs("span", { style: { fontSize: "13px", color: g.textSecondary }, children: [
2050
+ f.length > 0 && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2051
+ /* @__PURE__ */ i.jsxs("span", { style: { fontSize: "13px", color: g.textSecondary }, children: [
2048
2052
  f.length,
2049
2053
  " selected"
2050
2054
  ] }),
2051
- /* @__PURE__ */ a.jsx(
2055
+ /* @__PURE__ */ i.jsx(
2052
2056
  "button",
2053
2057
  {
2054
2058
  onClick: b.archive,
@@ -2065,10 +2069,10 @@ function Lt({
2065
2069
  cursor: "pointer",
2066
2070
  color: g.textSecondary
2067
2071
  },
2068
- children: /* @__PURE__ */ a.jsx("span", { className: "material-icons", style: { fontSize: "18px" }, children: "archive" })
2072
+ children: /* @__PURE__ */ i.jsx("span", { className: "material-icons", style: { fontSize: "18px" }, children: "archive" })
2069
2073
  }
2070
2074
  ),
2071
- /* @__PURE__ */ a.jsx(
2075
+ /* @__PURE__ */ i.jsx(
2072
2076
  "button",
2073
2077
  {
2074
2078
  onClick: b.delete,
@@ -2085,12 +2089,12 @@ function Lt({
2085
2089
  cursor: "pointer",
2086
2090
  color: g.textSecondary
2087
2091
  },
2088
- children: /* @__PURE__ */ a.jsx("span", { className: "material-icons", style: { fontSize: "18px" }, children: "delete" })
2092
+ children: /* @__PURE__ */ i.jsx("span", { className: "material-icons", style: { fontSize: "18px" }, children: "delete" })
2089
2093
  }
2090
2094
  )
2091
2095
  ] }),
2092
- /* @__PURE__ */ a.jsx("div", { style: { flex: 1 } }),
2093
- /* @__PURE__ */ a.jsx(
2096
+ /* @__PURE__ */ i.jsx("div", { style: { flex: 1 } }),
2097
+ /* @__PURE__ */ i.jsx(
2094
2098
  "button",
2095
2099
  {
2096
2100
  onClick: b.refresh,
@@ -2107,35 +2111,35 @@ function Lt({
2107
2111
  cursor: "pointer",
2108
2112
  color: g.textSecondary
2109
2113
  },
2110
- children: /* @__PURE__ */ a.jsx("span", { className: "material-icons", style: { fontSize: "18px" }, children: "refresh" })
2114
+ children: /* @__PURE__ */ i.jsx("span", { className: "material-icons", style: { fontSize: "18px" }, children: "refresh" })
2111
2115
  }
2112
2116
  )
2113
- ] }), oe = () => /* @__PURE__ */ a.jsx("div", { style: {
2117
+ ] }), oe = () => /* @__PURE__ */ i.jsx("div", { style: {
2114
2118
  padding: "48px",
2115
2119
  textAlign: "center",
2116
2120
  color: g.textSecondary
2117
- }, children: l }), re = () => /* @__PURE__ */ a.jsx("div", { style: {
2121
+ }, children: l }), re = () => /* @__PURE__ */ i.jsx("div", { style: {
2118
2122
  padding: "48px",
2119
2123
  textAlign: "center",
2120
2124
  color: g.textSecondary
2121
2125
  }, children: "Loading..." }), le = T || Re, ne = C || Te, ke = P || ie, we = O || oe, Se = X || re;
2122
- return H && M.length === 0 ? /* @__PURE__ */ a.jsx("div", { style: { background: g.background, width: "100%", height: "100%" }, children: Se() }) : /* @__PURE__ */ a.jsxs("div", { style: { display: "flex", background: g.background, width: "100%", height: "100%" }, children: [
2123
- /* @__PURE__ */ a.jsxs("div", { style: {
2126
+ return H && M.length === 0 ? /* @__PURE__ */ i.jsx("div", { style: { background: g.background, width: "100%", height: "100%" }, children: Se() }) : /* @__PURE__ */ i.jsxs("div", { style: { display: "flex", background: g.background, width: "100%", height: "100%" }, children: [
2127
+ /* @__PURE__ */ i.jsxs("div", { style: {
2124
2128
  flex: s && I ? "0 0 50%" : "1",
2125
2129
  display: "flex",
2126
2130
  flexDirection: "column",
2127
2131
  borderRight: s && I ? `1px solid ${g.border}` : "none",
2128
2132
  overflow: "hidden"
2129
2133
  }, children: [
2130
- i && ke(Array.from(h), ve),
2131
- S && /* @__PURE__ */ a.jsx("div", { style: {
2134
+ a && ke(Array.from(h), ve),
2135
+ S && /* @__PURE__ */ i.jsx("div", { style: {
2132
2136
  padding: "12px 16px",
2133
2137
  background: "#fef2f2",
2134
2138
  color: g.danger,
2135
2139
  fontSize: "14px",
2136
2140
  borderBottom: `1px solid ${g.border}`
2137
2141
  }, children: S }),
2138
- /* @__PURE__ */ a.jsx("div", { style: { flex: 1, overflowY: "auto" }, children: M.length === 0 ? we() : M.map((f, b) => /* @__PURE__ */ a.jsx(
2142
+ /* @__PURE__ */ i.jsx("div", { style: { flex: 1, overflowY: "auto" }, children: M.length === 0 ? we() : M.map((f, b) => /* @__PURE__ */ i.jsx(
2139
2143
  "div",
2140
2144
  {
2141
2145
  onClick: (B) => he(f, b, B),
@@ -2144,7 +2148,7 @@ function Lt({
2144
2148
  f.uid
2145
2149
  )) })
2146
2150
  ] }),
2147
- s && I && /* @__PURE__ */ a.jsx("div", { style: { flex: 1, overflowY: "auto" }, children: ne(I) })
2151
+ s && I && /* @__PURE__ */ i.jsx("div", { style: { flex: 1, overflowY: "auto" }, children: ne(I) })
2148
2152
  ] });
2149
2153
  }
2150
2154
  export {