@arbocollab/arbo-plugin-item-table 0.1.107 → 0.1.108

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.
@@ -36397,8 +36397,8 @@ function cv() {
36397
36397
  }
36398
36398
  function WI() {
36399
36399
  try {
36400
- var e = cv();
36401
- return e.t("errorMessages.fallback.unknownError");
36400
+ var e = sessionStorage.getItem("APP_DEBUG") ? "✅" : "", t = cv();
36401
+ return "".concat(t.t("errorMessages.fallback.unknownError"), " ").concat(e);
36402
36402
  } catch {
36403
36403
  return "An error occurred. Please try again or contact support.";
36404
36404
  }
@@ -36462,38 +36462,39 @@ function jI(e, t) {
36462
36462
  return null;
36463
36463
  }
36464
36464
  function Qne(e) {
36465
+ var t = sessionStorage.getItem("APP_DEBUG") ? "✅" : "";
36465
36466
  if (!e)
36466
36467
  return WI();
36467
- var t = e.code, n = e.error, o = e.details, s = e.message;
36468
- if (zI(o) && o) {
36469
- var r = jI(o, n == null ? void 0 : n.type);
36470
- if (console.log("[Error Utils Debug]", r), r)
36471
- return t !== "" ? "[".concat(t, "] ").concat(r) : r;
36468
+ var n = e.code, o = e.error, s = e.details, r = e.message;
36469
+ if (zI(s) && s) {
36470
+ var i = jI(s, o == null ? void 0 : o.type);
36471
+ if (sessionStorage.getItem("APP_DEBUG") && console.log("[Error Utils Debug]", i), i)
36472
+ return n !== "" ? "[".concat(n, "] ").concat(i, " ").concat(t) : "".concat(i);
36472
36473
  try {
36473
- var i = cv();
36474
- return i.t("errorMessages.GEN.validation_error");
36474
+ var a = cv();
36475
+ return a.t("errorMessages.GEN.validation_error");
36475
36476
  } catch {
36476
36477
  return "Validation error occurred.";
36477
36478
  }
36478
36479
  }
36479
- if (n && ld(n) === "object" && n.type && n.key) {
36480
- var a = n.type.toUpperCase();
36480
+ if (o && ld(o) === "object" && o.type && o.key) {
36481
+ var l = o.type.toUpperCase();
36481
36482
  try {
36482
- var l, u, c, d = "errorMessages.".concat(a, ".").concat(n.key), h = cv(), f = ((l = h.messages) === null || l === void 0 ? void 0 : l.value) || h.messages, p = ((u = h.locale) === null || u === void 0 ? void 0 : u.value) || h.locale, g = (c = f[p]) === null || c === void 0 || (c = c.errorMessages) === null || c === void 0 || (c = c[a]) === null || c === void 0 ? void 0 : c[n.key];
36483
- if (g && typeof g == "string") {
36484
- var v = g;
36485
- return o != null && o.context && (v = Jne(v, o.context), console.log("[Error Utils Debug]", v)), t !== "" ? "[".concat(t, "] ").concat(v) : v;
36483
+ var u, c, d, h = "errorMessages.".concat(l, ".").concat(o.key), f = cv(), p = ((u = f.messages) === null || u === void 0 ? void 0 : u.value) || f.messages, g = ((c = f.locale) === null || c === void 0 ? void 0 : c.value) || f.locale, v = (d = p[g]) === null || d === void 0 || (d = d.errorMessages) === null || d === void 0 || (d = d[l]) === null || d === void 0 ? void 0 : d[o.key];
36484
+ if (v && typeof v == "string") {
36485
+ var C = v;
36486
+ return s != null && s.context && (C = Jne(C, s.context), sessionStorage.getItem("APP_DEBUG") && console.log("[Error Utils Debug]", C)), n !== "" ? "[".concat(n, "] ").concat(C, " ").concat(t) : "".concat(C, " ").concat(t);
36486
36487
  }
36487
- } catch (S) {
36488
- console.error("[Error Utils Debug]", S);
36488
+ } catch (b) {
36489
+ console.error("[Error Utils Debug]", b);
36489
36490
  }
36490
36491
  }
36491
- if (n && ld(n) !== "object" && zI(o)) {
36492
- var C = jI(o);
36493
- if (C)
36494
- return t !== "" ? "[".concat(t, "] ").concat(C) : C;
36492
+ if (o && ld(o) !== "object" && zI(s)) {
36493
+ var S = jI(s);
36494
+ if (S)
36495
+ return n !== "" ? "[".concat(n, "] ").concat(S, " ").concat(t) : "".concat(S, " ").concat(t);
36495
36496
  }
36496
- return s || WI();
36497
+ return r ? "".concat(r) : WI();
36497
36498
  }
36498
36499
  const vp = /* @__PURE__ */ Pu("toast", () => {
36499
36500
  const e = (l) => {
@@ -87617,7 +87618,7 @@ const $De = {
87617
87618
  "beta-tag": "_beta-tag_1sow5_56"
87618
87619
  }, oTe = {
87619
87620
  $style: nTe
87620
- }, sTe = /* @__PURE__ */ _t(ZDe, [["__cssModules", oTe]]), i$ = "0.1.107", rTe = { key: 0 }, iTe = /* @__PURE__ */ it({
87621
+ }, sTe = /* @__PURE__ */ _t(ZDe, [["__cssModules", oTe]]), i$ = "0.1.108", rTe = { key: 0 }, iTe = /* @__PURE__ */ it({
87621
87622
  __name: "app",
87622
87623
  setup(e) {
87623
87624
  const t = Y(() => n.id.length === 0 || n.workspaceId.length === 0), n = ys({