react-semaphor 0.0.554 → 0.0.555

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.
@@ -2,21 +2,21 @@ var ar = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
4
  var Fa = (t, a, n) => a.has(t) || ar("Cannot " + n);
5
- var we = (t, a, n) => (Fa(t, a, "read from private field"), n ? n.call(t) : a.get(t)), nn = (t, a, n) => a.has(t) ? ar("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, n), an = (t, a, n, r) => (Fa(t, a, "write to private field"), r ? r.call(t, n) : a.set(t, n), n), sn = (t, a, n) => (Fa(t, a, "access private method"), n);
5
+ var we = (t, a, n) => (Fa(t, a, "read from private field"), n ? n.call(t) : a.get(t)), an = (t, a, n) => a.has(t) ? ar("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, n), sn = (t, a, n, r) => (Fa(t, a, "write to private field"), r ? r.call(t, n) : a.set(t, n), n), rn = (t, a, n) => (Fa(t, a, "access private method"), n);
6
6
  import { jsxs as s, jsx as e, Fragment as ae } from "react/jsx-runtime";
7
- import { E as Ti, F as Oi, G as sr, H as Ei, I as zr, J as Ge, K as Ii, L as Ai, M as H, N as is, w as K, A as xt, O as Oe, P as Fn, Q as Fr, R as j, T as Le, U as Ln, V as _n, W as Pn, X as Vn, Y as Q, Z as je, _ as Na, $ as jn, a0 as Un, a1 as ce, a2 as Bn, a3 as Lr, a4 as rn, a5 as Ri, a6 as rr, a7 as _r, a8 as G, a9 as os, aa as Me, ab as zi, ac as ge, ad as ye, ae as ve, af as xe, ag as Vt, ah as jt, ai as ne, aj as Pr, ak as st, al as rt, am as Fi, an as Jt, ao as kt, ap as Lt, aq as Ue, ar as qe, as as Ye, at as ft, au as cs, av as $n, aw as qn, ax as Vr, ay as bt, az as ln, aA as un, aB as lt, aC as Ne, aD as We, aE as ds, aF as Li, aG as da, aH as jr, aI as mt, aJ as Ur, aK as on, aL as us, aM as Br, aN as Re, aO as oe, aP as Ce, aQ as mn, aR as it, aS as hn, aT as _i, aU as _t, aV as nt, aW as Yn, aX as Ca, aY as wn, aZ as ms, a_ as Sn, a$ as ot, b0 as Kt, b1 as Gn, b2 as Hn, b3 as $r, b4 as Wt, b5 as hs, b6 as ps, b7 as fs, b8 as gs, b9 as pn, ba as Jn, bb as qr, bc as ys, bd as wa, be as vs, bf as Pi, bg as xs, bh as Vi, bi as ji, bj as Qt, bk as Zt, bl as Fe, bm as Et, bn as Yr, C as se, bo as Gt, B as M, bp as Gr, bq as Hr, br as Jr, bs as Kr, bt as Wr, bu as Qr, bv as Zr, bw as Xr, bx as Ui, by as Bi, bz as ua, bA as bs, bB as $i, bC as qi, bD as Yi, bE as el, bF as Ns, bG as fn, bH as Kn, bI as Wn, bJ as Qn, bK as Zn, bL as Ut, bM as gn, bN as kn, v as ct, bO as tl, m as nl, l as al, f as et, bP as Gi, g as ht, bQ as Hi, h as Ht, j as pt, k as Ji, bR as Ki, bS as Wi, bT as At, bU as It, bV as sl, bW as Qi, e as rl, bX as Dn, bY as Dt, bZ as Zi, b_ as Ga, b$ as Cs, c0 as Xn, c1 as yt, c2 as ll, r as ma, q as lr, c3 as ze, c4 as la, c5 as il, c6 as Xi, c7 as eo, c8 as to, c9 as ol, ca as no, cb as Sa, cc as ao, cd as ha, ce as so, cf as Ha, cg as Mt, ch as Ve, ci as Tt, cj as ro, ck as lo, cl as io, cm as oo, cn as co, co as La, cp as uo, cq as ir, cr as mo, cs as or, ct as ho, cu as po, cv as fo, cw as go, cx as ws, cy as yo, cz as cl, cA as Ss, cB as dl, cC as ia, cD as ul, cE as vo, cF as xo, cG as bo, cH as ml, cI as No, cJ as ea, cK as ks, cL as hl, cM as Co, cN as wo, cO as So, cP as pl, cQ as Ds, cR as fl, cS as ko, cT as cr, cU as ka, cV as Da, cW as Ma, cX as Do, cY as Mo, cZ as To, c_ as Nt, c$ as Se, d0 as ke, d1 as De, d2 as Oo, d3 as Eo, d4 as Io, d5 as Ao, s as Ro, d6 as dr, d7 as gl, d8 as zo, d9 as Fo, da as Lo, db as yl, dc as Ms, dd as yn, de as Ts, df as Rt, dg as _o, dh as ta, di as vl, dj as Po, dk as Vo, dl as jo, dm as Uo, dn as Bo, dp as ur, dq as $o, dr as qo, ds as Yo, dt as Go, du as Ho, dv as Jo, dw as Ko, dx as xl, dy as Wo, dz as Qo, dA as Zo, dB as Xo, dC as ec, dD as bl, dE as _a, dF as mr, dG as tc, dH as nc, dI as Ja, dJ as tt, dK as Ta, dL as ac, dM as sc, dN as hr, dO as Nl, dP as Os, dQ as rc, dR as lc, dS as Mn, dT as Ka, dU as ic, dV as oc, dW as pr, dX as Wa, dY as Qa, dZ as pa, d_ as cn, d$ as Tn, e0 as cc, e1 as dc, e2 as Cl, e3 as uc, e4 as mc, S as hc, e5 as pc, e6 as fc, e7 as gc } from "./index-CphHc_zH.js";
7
+ import { E as Ti, F as Oi, G as sr, H as Ei, I as zr, J as Ge, K as Ii, L as Ai, M as H, N as is, w as K, A as xt, O as Oe, P as Fn, Q as Fr, R as j, T as Le, U as Ln, V as _n, W as Pn, X as Vn, Y as Q, Z as je, _ as Na, $ as jn, a0 as Un, a1 as ce, a2 as Bn, a3 as Lr, a4 as ln, a5 as Ri, a6 as rr, a7 as _r, a8 as G, a9 as os, aa as Me, ab as zi, ac as ge, ad as ye, ae as ve, af as xe, ag as Vt, ah as jt, ai as ne, aj as Pr, ak as st, al as rt, am as Fi, an as Jt, ao as kt, ap as Lt, aq as Ue, ar as qe, as as Ye, at as ft, au as cs, av as $n, aw as qn, ax as Vr, ay as bt, az as on, aA as mn, aB as lt, aC as Ne, aD as We, aE as ds, aF as Li, aG as da, aH as jr, aI as mt, aJ as Ur, aK as cn, aL as us, aM as Br, aN as Re, aO as oe, aP as Ce, aQ as hn, aR as it, aS as pn, aT as _i, aU as _t, aV as nt, aW as Yn, aX as Ca, aY as wn, aZ as ms, a_ as Sn, a$ as ot, b0 as Kt, b1 as Gn, b2 as Hn, b3 as $r, b4 as Wt, b5 as hs, b6 as ps, b7 as fs, b8 as gs, b9 as fn, ba as Jn, bb as qr, bc as ys, bd as wa, be as vs, bf as Pi, bg as xs, bh as Vi, bi as ji, bj as Qt, bk as Zt, bl as Fe, bm as Et, bn as Yr, C as se, bo as Gt, B as M, bp as Gr, bq as Hr, br as Jr, bs as Kr, bt as Wr, bu as Qr, bv as Zr, bw as Xr, bx as Ui, by as Bi, bz as ua, bA as bs, bB as $i, bC as qi, bD as Yi, bE as el, bF as Ns, bG as gn, bH as Kn, bI as Wn, bJ as Qn, bK as Zn, bL as Ut, bM as yn, bN as kn, v as ct, bO as tl, m as nl, l as al, f as et, bP as Gi, g as ht, bQ as Hi, h as Ht, j as pt, k as Ji, bR as Ki, bS as Wi, bT as At, bU as It, bV as sl, bW as Qi, e as rl, bX as Dn, bY as Dt, bZ as Zi, b_ as Ga, b$ as Cs, c0 as Xn, c1 as yt, c2 as ll, r as ma, q as lr, c3 as ze, c4 as la, c5 as il, c6 as Xi, c7 as eo, c8 as to, c9 as ol, ca as no, cb as Sa, cc as ao, cd as ha, ce as so, cf as Ha, cg as Mt, ch as Ve, ci as Tt, cj as ro, ck as lo, cl as io, cm as oo, cn as co, co as La, cp as uo, cq as ir, cr as mo, cs as or, ct as ho, cu as po, cv as fo, cw as go, cx as ws, cy as yo, cz as cl, cA as Ss, cB as dl, cC as ia, cD as ul, cE as vo, cF as xo, cG as bo, cH as ml, cI as No, cJ as ea, cK as ks, cL as hl, cM as Co, cN as wo, cO as So, cP as pl, cQ as Ds, cR as fl, cS as ko, cT as cr, cU as ka, cV as Da, cW as Ma, cX as Do, cY as Mo, cZ as To, c_ as Nt, c$ as Se, d0 as ke, d1 as De, d2 as Oo, d3 as Eo, d4 as Io, d5 as Ao, s as Ro, d6 as dr, d7 as gl, d8 as zo, d9 as Fo, da as Lo, db as yl, dc as Ms, dd as vn, de as Ts, df as Rt, dg as _o, dh as ta, di as vl, dj as Po, dk as Vo, dl as jo, dm as Uo, dn as Bo, dp as ur, dq as $o, dr as qo, ds as Yo, dt as Go, du as Ho, dv as Jo, dw as Ko, dx as xl, dy as Wo, dz as Qo, dA as Zo, dB as Xo, dC as ec, dD as bl, dE as _a, dF as mr, dG as tc, dH as nc, dI as Ja, dJ as tt, dK as Ta, dL as ac, dM as sc, dN as hr, dO as Nl, dP as Os, dQ as rc, dR as lc, dS as Mn, dT as Ka, dU as ic, dV as oc, dW as pr, dX as Wa, dY as Qa, dZ as pa, d_ as dn, d$ as Tn, e0 as cc, e1 as dc, e2 as Cl, e3 as uc, e4 as mc, S as hc, e5 as pc, e6 as fc, e7 as gc } from "./index-HP6jGs2r.js";
8
8
  import * as He from "react";
9
9
  import Ie, { useState as V, useCallback as me, useEffect as Te, useRef as at, useMemo as $e, Suspense as wl, useContext as yc } from "react";
10
10
  import "react-dom";
11
11
  var wt, St, Be, ut, gt, oa, Za, Rr, vc = (Rr = class extends Ti {
12
12
  constructor(a, n) {
13
13
  super();
14
- nn(this, gt);
15
- nn(this, wt);
16
- nn(this, St);
17
- nn(this, Be);
18
- nn(this, ut);
19
- an(this, wt, a), this.setOptions(n), this.bindMethods(), sn(this, gt, oa).call(this);
14
+ an(this, gt);
15
+ an(this, wt);
16
+ an(this, St);
17
+ an(this, Be);
18
+ an(this, ut);
19
+ sn(this, wt, a), this.setOptions(n), this.bindMethods(), rn(this, gt, oa).call(this);
20
20
  }
21
21
  bindMethods() {
22
22
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -35,23 +35,23 @@ var wt, St, Be, ut, gt, oa, Za, Rr, vc = (Rr = class extends Ti {
35
35
  this.hasListeners() || (a = we(this, Be)) == null || a.removeObserver(this);
36
36
  }
37
37
  onMutationUpdate(a) {
38
- sn(this, gt, oa).call(this), sn(this, gt, Za).call(this, a);
38
+ rn(this, gt, oa).call(this), rn(this, gt, Za).call(this, a);
39
39
  }
40
40
  getCurrentResult() {
41
41
  return we(this, St);
42
42
  }
43
43
  reset() {
44
44
  var a;
45
- (a = we(this, Be)) == null || a.removeObserver(this), an(this, Be, void 0), sn(this, gt, oa).call(this), sn(this, gt, Za).call(this);
45
+ (a = we(this, Be)) == null || a.removeObserver(this), sn(this, Be, void 0), rn(this, gt, oa).call(this), rn(this, gt, Za).call(this);
46
46
  }
47
47
  mutate(a, n) {
48
48
  var r;
49
- return an(this, ut, n), (r = we(this, Be)) == null || r.removeObserver(this), an(this, Be, we(this, wt).getMutationCache().build(we(this, wt), this.options)), we(this, Be).addObserver(this), we(this, Be).execute(a);
49
+ return sn(this, ut, n), (r = we(this, Be)) == null || r.removeObserver(this), sn(this, Be, we(this, wt).getMutationCache().build(we(this, wt), this.options)), we(this, Be).addObserver(this), we(this, Be).execute(a);
50
50
  }
51
51
  }, wt = new WeakMap(), St = new WeakMap(), Be = new WeakMap(), ut = new WeakMap(), gt = new WeakSet(), oa = function() {
52
52
  var n;
53
53
  const a = ((n = we(this, Be)) == null ? void 0 : n.state) ?? Ei();
54
- an(this, St, {
54
+ sn(this, St, {
55
55
  ...a,
56
56
  isPending: a.status === "pending",
57
57
  isSuccess: a.status === "success",
@@ -1390,7 +1390,7 @@ function vd() {
1390
1390
  /* @__PURE__ */ e(Un, { asChild: !0, children: /* @__PURE__ */ e(ce, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(Yc, { className: "h-4 w-4" }) }) }),
1391
1391
  /* @__PURE__ */ s(Bn, { align: "end", className: "w-60", children: [
1392
1392
  /* @__PURE__ */ e(Lr, { className: "px-3", children: "Lenses" }),
1393
- /* @__PURE__ */ e(rn, {}),
1393
+ /* @__PURE__ */ e(ln, {}),
1394
1394
  /* @__PURE__ */ s(
1395
1395
  Ri,
1396
1396
  {
@@ -1698,7 +1698,7 @@ function Cd() {
1698
1698
  endUserId: u
1699
1699
  }, { data: g, isLoading: f, isError: y, isFetching: p, refetch: N } = bt({
1700
1700
  queryKey: ["subscriptions", o, u],
1701
- queryFn: () => un(m, (c == null ? void 0 : c.accessToken) || "", h),
1701
+ queryFn: () => mn(m, (c == null ? void 0 : c.accessToken) || "", h),
1702
1702
  enabled: !!(c != null && c.accessToken) && !!o && !!u
1703
1703
  });
1704
1704
  async function v({
@@ -1721,7 +1721,7 @@ function Cd() {
1721
1721
  a("loading");
1722
1722
  const k = "https://semaphor.cloud/api/v1/subscriptions/create";
1723
1723
  try {
1724
- const F = await ln(
1724
+ const F = await on(
1725
1725
  k,
1726
1726
  (x == null ? void 0 : x.accessToken) || "",
1727
1727
  {
@@ -1739,7 +1739,7 @@ function Cd() {
1739
1739
  const z = "https://semaphor.cloud/api/v1/subscriptions/delete";
1740
1740
  i(w);
1741
1741
  try {
1742
- await ln(z, (c == null ? void 0 : c.accessToken) || "", { id: w }), N(), setTimeout(() => {
1742
+ await on(z, (c == null ? void 0 : c.accessToken) || "", { id: w }), N(), setTimeout(() => {
1743
1743
  i(null);
1744
1744
  }, 2e3);
1745
1745
  } catch (T) {
@@ -1759,7 +1759,7 @@ function Cd() {
1759
1759
  error: n
1760
1760
  };
1761
1761
  }
1762
- function vn() {
1762
+ function en() {
1763
1763
  const { authToken: t, tokenProps: a } = Oe();
1764
1764
  let n = null;
1765
1765
  a && (a.endUserId && a.endUserEmail && a.tenantId ? n = {
@@ -1823,7 +1823,7 @@ const wd = async (t, a, n, r, l, i) => {
1823
1823
  [ue.DASHBOARD]: "dashboards",
1824
1824
  [ue.VISUAL]: "visuals"
1825
1825
  };
1826
- return un(
1826
+ return mn(
1827
1827
  `https://semaphor.cloud/api/management/v1/${o[a]}`,
1828
1828
  t,
1829
1829
  c
@@ -1833,7 +1833,7 @@ const wd = async (t, a, n, r, l, i) => {
1833
1833
  [ue.DASHBOARD]: "dashboards",
1834
1834
  [ue.VISUAL]: "visuals"
1835
1835
  };
1836
- return ln(
1836
+ return on(
1837
1837
  `https://semaphor.cloud/api/management/v1/${r[a]}`,
1838
1838
  t,
1839
1839
  n
@@ -1888,7 +1888,7 @@ const wd = async (t, a, n, r, l, i) => {
1888
1888
  [ue.DASHBOARD]: "dashboards",
1889
1889
  [ue.VISUAL]: "visuals"
1890
1890
  };
1891
- return ln(
1891
+ return on(
1892
1892
  `https://semaphor.cloud/api/management/v1/${r[a]}/${n}/duplicate`,
1893
1893
  t,
1894
1894
  {}
@@ -1898,7 +1898,7 @@ const wd = async (t, a, n, r, l, i) => {
1898
1898
  [ue.DASHBOARD]: "dashboards",
1899
1899
  [ue.VISUAL]: "visuals"
1900
1900
  };
1901
- return ln(
1901
+ return on(
1902
1902
  `https://semaphor.cloud/api/management/v1/${l[a]}/${n}/share`,
1903
1903
  t,
1904
1904
  r
@@ -1930,7 +1930,7 @@ const wd = async (t, a, n, r, l, i) => {
1930
1930
  [ue.DASHBOARD]: "dashboards",
1931
1931
  [ue.VISUAL]: "visuals"
1932
1932
  };
1933
- return un(
1933
+ return mn(
1934
1934
  `https://semaphor.cloud/api/management/v1/${r[a]}/${n}/shares`,
1935
1935
  t
1936
1936
  );
@@ -1939,7 +1939,7 @@ const wd = async (t, a, n, r, l, i) => {
1939
1939
  [ue.DASHBOARD]: "dashboards",
1940
1940
  [ue.VISUAL]: "visuals"
1941
1941
  };
1942
- return un(
1942
+ return mn(
1943
1943
  `https://semaphor.cloud/api/management/v1/${r[a]}/${n}`,
1944
1944
  t
1945
1945
  );
@@ -1948,7 +1948,7 @@ function Ad(t) {
1948
1948
  const { authToken: a } = Oe();
1949
1949
  return bt({
1950
1950
  queryKey: ["tenants"],
1951
- queryFn: () => un(
1951
+ queryFn: () => mn(
1952
1952
  "https://semaphor.cloud/api/management/v1/tenants",
1953
1953
  (a == null ? void 0 : a.accessToken) || ""
1954
1954
  ),
@@ -1956,14 +1956,14 @@ function Ad(t) {
1956
1956
  });
1957
1957
  }
1958
1958
  function Rd(t, a, n, r, l) {
1959
- const { authToken: i } = Oe();
1959
+ const { authToken: i } = Oe(), { currentUser: c } = en();
1960
1960
  return bt({
1961
1961
  queryKey: [t, a, n, r, l],
1962
1962
  queryFn: () => wd(
1963
1963
  (i == null ? void 0 : i.accessToken) || "",
1964
1964
  t
1965
1965
  ),
1966
- enabled: !!(i != null && i.accessToken)
1966
+ enabled: !!(i != null && i.accessToken) && !!c
1967
1967
  });
1968
1968
  }
1969
1969
  function zd(t, a) {
@@ -2399,7 +2399,7 @@ function Yd({
2399
2399
  ]
2400
2400
  }
2401
2401
  ),
2402
- /* @__PURE__ */ e(rn, {}),
2402
+ /* @__PURE__ */ e(ln, {}),
2403
2403
  /* @__PURE__ */ s(
2404
2404
  mt,
2405
2405
  {
@@ -2415,14 +2415,14 @@ function Yd({
2415
2415
  }
2416
2416
  )
2417
2417
  ] }),
2418
- /* @__PURE__ */ e(rn, {}),
2418
+ /* @__PURE__ */ e(ln, {}),
2419
2419
  /* @__PURE__ */ s("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
2420
2420
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
2421
2421
  /* @__PURE__ */ e(zt, { className: "h-3 w-3" }),
2422
2422
  /* @__PURE__ */ e("span", { children: ((I = t.ownership.createdBy) == null ? void 0 : I.name) || "Unknown" })
2423
2423
  ] }),
2424
2424
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
2425
- /* @__PURE__ */ e(on, { className: "h-3 w-3" }),
2425
+ /* @__PURE__ */ e(cn, { className: "h-3 w-3" }),
2426
2426
  /* @__PURE__ */ e("span", { children: h(t.lastModified) })
2427
2427
  ] })
2428
2428
  ] })
@@ -3235,7 +3235,7 @@ function ql({
3235
3235
  handleRemoveAccess: d,
3236
3236
  handleUpdateAccess: u
3237
3237
  }) {
3238
- const m = mn(), h = it(), g = hn(), f = _i(), y = _t(), p = c || ((T) => {
3238
+ const m = hn(), h = it(), g = pn(), f = _i(), y = _t(), p = c || ((T) => {
3239
3239
  const I = m.some((D) => D.id === T), x = h.includes(T);
3240
3240
  I ? y.removeSelectedUser(T) : x ? y.removeUserFromRemove(T) : y.addSelectedUser({ id: T, role: "VIEWER" });
3241
3241
  }), N = o || y.updateSelectedUserRole, v = d || y.addUserToRemove, C = u || ((T, I, x) => {
@@ -3541,28 +3541,28 @@ function Gl({
3541
3541
  }
3542
3542
  const nu = async (t, a = {}) => {
3543
3543
  const n = {};
3544
- return a.search && (n.search = a.search), a.type && (n.type = a.type), a.active !== void 0 && (n.active = a.active.toString()), a.tenantId && (n.tenantId = a.tenantId), a.limit && (n.limit = a.limit.toString()), a.offset && (n.offset = a.offset.toString()), a.page && (n.page = a.page.toString()), a.pageSize && (n.pageSize = a.pageSize.toString()), await un("https://semaphor.cloud/api/management/v1/unified-users", t, n);
3544
+ return a.search && (n.search = a.search), a.type && (n.type = a.type), a.active !== void 0 && (n.active = a.active.toString()), a.tenantId && (n.tenantId = a.tenantId), a.limit && (n.limit = a.limit.toString()), a.offset && (n.offset = a.offset.toString()), a.page && (n.page = a.page.toString()), a.pageSize && (n.pageSize = a.pageSize.toString()), await mn("https://semaphor.cloud/api/management/v1/unified-users", t, n);
3545
3545
  };
3546
3546
  function au(t = {}) {
3547
- var r, l, i;
3548
- const { authToken: a } = Oe(), n = bt({
3547
+ var i, c, o;
3548
+ const { authToken: a, tokenProps: n } = Oe(), r = (n == null ? void 0 : n.endUserId) || (n == null ? void 0 : n.orgUserId), l = bt({
3549
3549
  queryKey: ["unified-users", t],
3550
3550
  queryFn: () => nu((a == null ? void 0 : a.accessToken) || "", t),
3551
- enabled: !!(a != null && a.accessToken),
3552
- retry: (c, o) => o instanceof Error && o.message.includes("401") || o instanceof Error && o.message.includes("403") ? !1 : c < 2,
3553
- retryDelay: (c) => Math.min(1e3 * 2 ** c, 3e4)
3551
+ enabled: !!(a != null && a.accessToken) && !!r,
3552
+ retry: (d, u) => u instanceof Error && u.message.includes("401") || u instanceof Error && u.message.includes("403") ? !1 : d < 2,
3553
+ retryDelay: (d) => Math.min(1e3 * 2 ** d, 3e4)
3554
3554
  });
3555
3555
  return {
3556
3556
  // Query state
3557
- users: ((r = n.data) == null ? void 0 : r.users) || [],
3558
- userContext: (l = n.data) == null ? void 0 : l.userContext,
3559
- total: ((i = n.data) == null ? void 0 : i.total) || 0,
3560
- isLoading: n.isLoading,
3561
- isError: n.isError,
3562
- isFetching: n.isFetching,
3563
- error: n.error,
3557
+ users: ((i = l.data) == null ? void 0 : i.users) || [],
3558
+ userContext: (c = l.data) == null ? void 0 : c.userContext,
3559
+ total: ((o = l.data) == null ? void 0 : o.total) || 0,
3560
+ isLoading: l.isLoading,
3561
+ isError: l.isError,
3562
+ isFetching: l.isFetching,
3563
+ error: l.error,
3564
3564
  // Refetch function
3565
- refetch: n.refetch
3565
+ refetch: l.refetch
3566
3566
  };
3567
3567
  }
3568
3568
  function Ft(t) {
@@ -3605,7 +3605,7 @@ function su({
3605
3605
  isRemoving: c = !1
3606
3606
  }) {
3607
3607
  var te, L;
3608
- const o = pn(), d = Jn(), { searchQuery: u, setSearchQuery: m, debouncedSearchQuery: h } = qr(), g = mn(), f = it(), y = hn(), p = ot(), N = ys(), v = _t(), [C, w] = Ie.useState("specific_users"), z = () => {
3608
+ const o = fn(), d = Jn(), { searchQuery: u, setSearchQuery: m, debouncedSearchQuery: h } = qr(), g = hn(), f = it(), y = pn(), p = ot(), N = ys(), v = _t(), [C, w] = Ie.useState("specific_users"), z = () => {
3609
3609
  if (o === "org") return "organization";
3610
3610
  if (o === "tenant") return "tenant";
3611
3611
  }, T = () => {
@@ -3767,7 +3767,7 @@ function Cr({
3767
3767
  isRemoving: c = !1
3768
3768
  }) {
3769
3769
  var ee;
3770
- const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: u } = qr(), m = mn(), h = it(), g = hn(), f = ot(), y = wa(), p = vs(), N = Jn(), v = _t(), { data: C, isLoading: w } = Ad({
3770
+ const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: u } = qr(), m = hn(), h = it(), g = pn(), f = ot(), y = wa(), p = vs(), N = Jn(), v = _t(), { data: C, isLoading: w } = Ad({
3771
3771
  enabled: (n == null ? void 0 : n.type) === "organization"
3772
3772
  }), [z, T] = V(
3773
3773
  (n == null ? void 0 : n.type) === "organization" ? "all_tenants" : "specific_tenant_users"
@@ -3997,7 +3997,7 @@ function Cr({
3997
3997
  ] });
3998
3998
  }
3999
3999
  const Hl = () => {
4000
- const t = xs(), a = ot(), n = mn(), r = it(), l = hn(), i = Jn(), c = ys(), o = vs(), d = wa(), u = $e(() => () => Vi({
4000
+ const t = xs(), a = ot(), n = hn(), r = it(), l = pn(), i = Jn(), c = ys(), o = vs(), d = wa(), u = $e(() => () => Vi({
4001
4001
  currentContext: t,
4002
4002
  currentMode: a,
4003
4003
  selectedUsers: n,
@@ -4068,10 +4068,10 @@ function wr({
4068
4068
  currentAllUsersShare: d,
4069
4069
  onRemoveAccess: u
4070
4070
  }) {
4071
- const m = mn(), h = it(), g = hn();
4071
+ const m = hn(), h = it(), g = pn();
4072
4072
  ot(), xs();
4073
4073
  const f = Jn();
4074
- pn();
4074
+ fn();
4075
4075
  const y = ys(), p = vs(), N = wa(), { buildShareData: v, validateShareData: C, isCurrentStateValid: w } = Hl(), z = n || r || l, T = () => {
4076
4076
  var A, k, F, E;
4077
4077
  if (z) return "Updating...";
@@ -4235,7 +4235,7 @@ function ru({
4235
4235
  shareTabType: c,
4236
4236
  currentAllUsersShare: o
4237
4237
  }) {
4238
- const d = mn(), u = it(), m = hn();
4238
+ const d = hn(), u = it(), m = pn();
4239
4239
  ot(), xs();
4240
4240
  const h = wa();
4241
4241
  Jn();
@@ -4328,7 +4328,7 @@ function Jl({
4328
4328
  onRemoveAccess: o
4329
4329
  }) {
4330
4330
  var x, D, S, A;
4331
- const { currentUser: d } = vn(), [u, m] = Ie.useState("specific_users"), [h, g] = Ie.useState("specific_users"), f = _t(), y = pn(), p = ot(), { existingShares: N } = Ft({
4331
+ const { currentUser: d } = en(), [u, m] = Ie.useState("specific_users"), [h, g] = Ie.useState("specific_users"), f = _t(), y = fn(), p = ot(), { existingShares: N } = Ft({
4332
4332
  debouncedSearchQuery: "",
4333
4333
  resourceId: (t == null ? void 0 : t.id) || "",
4334
4334
  resourceType: a,
@@ -4856,7 +4856,7 @@ function Wl(t, a, n, r) {
4856
4856
  }
4857
4857
  }
4858
4858
  function lu(t, a, n) {
4859
- const r = _t(), l = it(), i = pn(), c = ot(), { currentUser: o } = vn(), { existingShares: d } = Ft({
4859
+ const r = _t(), l = it(), i = fn(), c = ot(), { currentUser: o } = en(), { existingShares: d } = Ft({
4860
4860
  debouncedSearchQuery: "",
4861
4861
  resourceId: t || "",
4862
4862
  resourceType: ue.DASHBOARD,
@@ -4915,7 +4915,7 @@ function lu(t, a, n) {
4915
4915
  };
4916
4916
  }
4917
4917
  function iu(t, a, n) {
4918
- const { currentUser: r } = vn(), l = _t(), i = it(), c = pn(), o = ot(), { existingShares: d } = Ft({
4918
+ const { currentUser: r } = en(), l = _t(), i = it(), c = fn(), o = ot(), { existingShares: d } = Ft({
4919
4919
  debouncedSearchQuery: "",
4920
4920
  resourceId: t || "",
4921
4921
  resourceType: ue.VISUAL,
@@ -5251,7 +5251,7 @@ function mu() {
5251
5251
  E,
5252
5252
  R
5253
5253
  );
5254
- vn();
5254
+ en();
5255
5255
  const te = I.filter(
5256
5256
  (_) => {
5257
5257
  var ie, Ae;
@@ -5599,7 +5599,7 @@ function hu({
5599
5599
  }
5600
5600
  ) }),
5601
5601
  t.permissions.canDelete && /* @__PURE__ */ s(ae, { children: [
5602
- /* @__PURE__ */ e(rn, {}),
5602
+ /* @__PURE__ */ e(ln, {}),
5603
5603
  /* @__PURE__ */ s(
5604
5604
  mt,
5605
5605
  {
@@ -5615,14 +5615,14 @@ function hu({
5615
5615
  }
5616
5616
  )
5617
5617
  ] }),
5618
- /* @__PURE__ */ e(rn, {}),
5618
+ /* @__PURE__ */ e(ln, {}),
5619
5619
  /* @__PURE__ */ s("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
5620
5620
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
5621
5621
  /* @__PURE__ */ e(zt, { className: "h-3 w-3" }),
5622
5622
  /* @__PURE__ */ e("span", { children: ((I = t.ownership.createdBy) == null ? void 0 : I.name) || "Unknown" })
5623
5623
  ] }),
5624
5624
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
5625
- /* @__PURE__ */ e(on, { className: "h-3 w-3" }),
5625
+ /* @__PURE__ */ e(cn, { className: "h-3 w-3" }),
5626
5626
  /* @__PURE__ */ e("span", { children: m(t.lastModified) })
5627
5627
  ] })
5628
5628
  ] })
@@ -5652,7 +5652,7 @@ function fu(t) {
5652
5652
  ), z = ua(
5653
5653
  (X) => X.actions.selectDashboard
5654
5654
  );
5655
- _t(), it(), pn(), ot();
5655
+ _t(), it(), fn(), ot();
5656
5656
  const {
5657
5657
  resources: T,
5658
5658
  isLoading: I,
@@ -5679,7 +5679,7 @@ function fu(t) {
5679
5679
  (h == null ? void 0 : h.id) || null,
5680
5680
  P,
5681
5681
  U
5682
- ), { currentUser: le } = vn(), te = T.filter(
5682
+ ), { currentUser: le } = en(), te = T.filter(
5683
5683
  (X) => {
5684
5684
  var _, ie;
5685
5685
  return ((_ = X == null ? void 0 : X.title) == null ? void 0 : _.toLowerCase().includes(a.toLowerCase())) || ((ie = X == null ? void 0 : X.description) == null ? void 0 : ie.toLowerCase().includes(a.toLowerCase()));
@@ -5909,7 +5909,7 @@ function gu({
5909
5909
  (f) => f.actions
5910
5910
  ), {
5911
5911
  currentUser: c
5912
- } = vn(), o = c, [d, u] = bs(
5912
+ } = en(), o = c, [d, u] = bs(
5913
5913
  "resource-management-active-tab",
5914
5914
  "dashboards"
5915
5915
  ), m = Bl(a, {
@@ -6175,7 +6175,7 @@ function yu() {
6175
6175
  size: "sm",
6176
6176
  children: [
6177
6177
  b ? /* @__PURE__ */ e(Me, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Xa, { className: "mr-2 h-4 w-4" }),
6178
- b ? "Saving..." : "Save Dashboard"
6178
+ b ? "Saving..." : "Save"
6179
6179
  ]
6180
6180
  }
6181
6181
  ),
@@ -6240,7 +6240,7 @@ function vu({
6240
6240
  d && /* @__PURE__ */ e("div", { className: "mr-2", children: d }),
6241
6241
  /* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: N() })
6242
6242
  ] }),
6243
- /* @__PURE__ */ e(fn, { className: "size-4 opacity-50" })
6243
+ /* @__PURE__ */ e(gn, { className: "size-4 opacity-50" })
6244
6244
  ]
6245
6245
  }
6246
6246
  ) }),
@@ -6269,7 +6269,7 @@ function vu({
6269
6269
  " found."
6270
6270
  ] }),
6271
6271
  /* @__PURE__ */ e(Ut, { children: p == null ? void 0 : p.map((C) => /* @__PURE__ */ e(
6272
- gn,
6272
+ yn,
6273
6273
  {
6274
6274
  className: "overflow-x-auto",
6275
6275
  value: C.name,
@@ -6462,7 +6462,7 @@ function xu({ column: t }) {
6462
6462
  }
6463
6463
  function Vs({ column: t }) {
6464
6464
  return /* @__PURE__ */ s(Ue, { children: [
6465
- /* @__PURE__ */ e(Gi, { className: "shrink-0", asChild: !0, children: ht(t.data_type) ? /* @__PURE__ */ e(Hi, { className: "size-3 text-muted-foreground" }) : Ht(t.data_type) ? /* @__PURE__ */ e(On, { className: "size-3 text-muted-foreground" }) : pt(t.data_type) ? /* @__PURE__ */ e(on, { className: "size-3 text-muted-foreground" }) : Ji(t.data_type) ? /* @__PURE__ */ e(fa, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(Ac, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(Ki, { className: "size-3 text-muted-foreground" }) }),
6465
+ /* @__PURE__ */ e(Gi, { className: "shrink-0", asChild: !0, children: ht(t.data_type) ? /* @__PURE__ */ e(Hi, { className: "size-3 text-muted-foreground" }) : Ht(t.data_type) ? /* @__PURE__ */ e(On, { className: "size-3 text-muted-foreground" }) : pt(t.data_type) ? /* @__PURE__ */ e(cn, { className: "size-3 text-muted-foreground" }) : Ji(t.data_type) ? /* @__PURE__ */ e(fa, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(Ac, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(Ki, { className: "size-3 text-muted-foreground" }) }),
6466
6466
  /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e("p", { className: "text-xs", children: t.data_type }) })
6467
6467
  ] });
6468
6468
  }
@@ -6748,7 +6748,7 @@ function Cu() {
6748
6748
  name: O.column_name,
6749
6749
  type: O.data_type,
6750
6750
  role: "groupby",
6751
- label: dn(O.column_name, "month"),
6751
+ label: un(O.column_name, "month"),
6752
6752
  granularity: "month"
6753
6753
  }, R.splice(P, 0, U), N(R);
6754
6754
  }
@@ -6771,7 +6771,7 @@ function Cu() {
6771
6771
  name: O.column_name,
6772
6772
  type: O.data_type,
6773
6773
  role: "groupby",
6774
- label: dn(O.column_name, "month"),
6774
+ label: un(O.column_name, "month"),
6775
6775
  granularity: "month"
6776
6776
  }, R.splice(P, 0, U), g(R);
6777
6777
  }
@@ -6884,7 +6884,7 @@ function zn(t, a) {
6884
6884
  function Cn(t) {
6885
6885
  return `${js}-${t}`;
6886
6886
  }
6887
- function dn(t, a) {
6887
+ function un(t, a) {
6888
6888
  const n = We(t.replace(/_/g, " "));
6889
6889
  switch (a) {
6890
6890
  case "day":
@@ -6982,7 +6982,7 @@ function wu({
6982
6982
  id: Xe(b.column_name),
6983
6983
  name: b.column_name,
6984
6984
  type: b.data_type,
6985
- label: dn(b.column_name, "month"),
6985
+ label: un(b.column_name, "month"),
6986
6986
  granularity: "month"
6987
6987
  };
6988
6988
  N(P);
@@ -7563,7 +7563,7 @@ function ai(t) {
7563
7563
  key: n
7564
7564
  }, a.attr), ai(a.child)));
7565
7565
  }
7566
- function en(t) {
7566
+ function tn(t) {
7567
7567
  return (a) => /* @__PURE__ */ Ie.createElement(Eu, xa({
7568
7568
  attr: ba({}, t.attr)
7569
7569
  }, a), ai(t.child));
@@ -7592,7 +7592,7 @@ function Eu(t) {
7592
7592
  return kr !== void 0 ? /* @__PURE__ */ Ie.createElement(kr.Consumer, null, (n) => a(n)) : a(ni);
7593
7593
  }
7594
7594
  function Iu(t) {
7595
- return en({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
7595
+ return tn({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
7596
7596
  }
7597
7597
  function si(t) {
7598
7598
  const { theme: a } = eo(), n = K((p) => p.theme), r = M((p) => p.frame), l = M((p) => p.card), i = M((p) => p.activeTabCardId), c = to(), { refetch: o } = ze(l), { updateCardTab: d, setRunSql: u } = se(), m = at(), h = at({}), g = r.cards.find((p) => p.id === i), f = me(() => {
@@ -8649,22 +8649,22 @@ const qu = ({
8649
8649
  return /* @__PURE__ */ e(ce, { onClick: n, tooltip: t, children: r ? /* @__PURE__ */ e(r, { className: "h-4 w-4" }) : l });
8650
8650
  };
8651
8651
  function qs(t) {
8652
- return en({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm87.63,96H191.48A64.1,64.1,0,0,0,136,64.52V40.37A88.13,88.13,0,0,1,215.63,120ZM120,120H80.68A48.09,48.09,0,0,1,120,80.68Zm0,16v39.32A48.09,48.09,0,0,1,80.68,136Zm16,0h39.32A48.09,48.09,0,0,1,136,175.32Zm0-16V80.68A48.09,48.09,0,0,1,175.32,120ZM120,40.37V64.52A64.1,64.1,0,0,0,64.52,120H40.37A88.13,88.13,0,0,1,120,40.37ZM40.37,136H64.52A64.1,64.1,0,0,0,120,191.48v24.15A88.13,88.13,0,0,1,40.37,136ZM136,215.63V191.48A64.1,64.1,0,0,0,191.48,136h24.15A88.13,88.13,0,0,1,136,215.63Z" }, child: [] }] })(t);
8652
+ return tn({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm87.63,96H191.48A64.1,64.1,0,0,0,136,64.52V40.37A88.13,88.13,0,0,1,215.63,120ZM120,120H80.68A48.09,48.09,0,0,1,120,80.68Zm0,16v39.32A48.09,48.09,0,0,1,80.68,136Zm16,0h39.32A48.09,48.09,0,0,1,136,175.32Zm0-16V80.68A48.09,48.09,0,0,1,175.32,120ZM120,40.37V64.52A64.1,64.1,0,0,0,64.52,120H40.37A88.13,88.13,0,0,1,120,40.37ZM40.37,136H64.52A64.1,64.1,0,0,0,120,191.48v24.15A88.13,88.13,0,0,1,40.37,136ZM136,215.63V191.48A64.1,64.1,0,0,0,191.48,136h24.15A88.13,88.13,0,0,1,136,215.63Z" }, child: [] }] })(t);
8653
8653
  }
8654
8654
  function Yu(t) {
8655
- return en({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }, child: [] }] })(t);
8655
+ return tn({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }, child: [] }] })(t);
8656
8656
  }
8657
8657
  function Ys(t) {
8658
- return en({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M6 16m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" }, child: [] }, { tag: "path", attr: { d: "M16 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }, child: [] }, { tag: "path", attr: { d: "M14.5 7.5m-4.5 0a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0 -9 0" }, child: [] }] })(t);
8658
+ return tn({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M6 16m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" }, child: [] }, { tag: "path", attr: { d: "M16 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }, child: [] }, { tag: "path", attr: { d: "M14.5 7.5m-4.5 0a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0 -9 0" }, child: [] }] })(t);
8659
8659
  }
8660
8660
  function Gs(t) {
8661
- return en({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4.387 3h15.226a1 1 0 0 1 .948 1.316l-5.105 15.316a2 2 0 0 1 -1.898 1.368h-3.116a2 2 0 0 1 -1.898 -1.368l-5.104 -15.316a1 1 0 0 1 .947 -1.316" }, child: [] }, { tag: "path", attr: { d: "M5 9h14" }, child: [] }, { tag: "path", attr: { d: "M7 15h10" }, child: [] }] })(t);
8661
+ return tn({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4.387 3h15.226a1 1 0 0 1 .948 1.316l-5.105 15.316a2 2 0 0 1 -1.898 1.368h-3.116a2 2 0 0 1 -1.898 -1.368l-5.104 -15.316a1 1 0 0 1 .947 -1.316" }, child: [] }, { tag: "path", attr: { d: "M5 9h14" }, child: [] }, { tag: "path", attr: { d: "M7 15h10" }, child: [] }] })(t);
8662
8662
  }
8663
8663
  function Hs(t) {
8664
- return en({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "m2 19.99 7.5-7.51 4 4 7.09-7.97L22 9.92l-8.5 9.56-4-4-6 6.01-1.5-1.5zm1.5-4.5 6-6.01 4 4L22 3.92l-1.41-1.41-7.09 7.97-4-4L2 13.99l1.5 1.5z" }, child: [] }] })(t);
8664
+ return tn({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "m2 19.99 7.5-7.51 4 4 7.09-7.97L22 9.92l-8.5 9.56-4-4-6 6.01-1.5-1.5zm1.5-4.5 6-6.01 4 4L22 3.92l-1.41-1.41-7.09 7.97-4-4L2 13.99l1.5 1.5z" }, child: [] }] })(t);
8665
8665
  }
8666
8666
  function Js(t) {
8667
- return en({ attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 18c-.552 0-1-.448-1-1v-6.382l-.553.276c-.495.248-1.095.046-1.342-.447-.247-.494-.046-1.094.448-1.342l2-1c.31-.155.678-.139.973.044.294.183.474.504.474.851v8c0 .552-.448 1-1 1zM13 18h-5c-.404 0-.769-.244-.924-.617-.155-.374-.069-.804.217-1.09l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001-.253.252-.393.589-.393.948 0 .552-.448 1-1 1s-1-.448-1-1c0-.894.348-1.733.98-2.364 1.265-1.263 3.464-1.263 4.727.001.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.979 2.364l-2.293 2.293h2.586c.552 0 1 .448 1 1s-.448 1-1 1zM20.955 12.377c.338-.457.545-1.016.545-1.627 0-1.517-1.234-2.75-2.75-2.75-1.031 0-1.966.569-2.44 1.484-.254.49-.063 1.094.428 1.348.49.254 1.094.062 1.348-.428.128-.249.383-.404.664-.404.414 0 .75.336.75.75s-.336.75-.75.75c-.552 0-1 .448-1 1s.448 1 1 1c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25c0-.552-.448-1-1-1s-1 .448-1 1c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25c0-.939-.406-1.779-1.045-2.373z" }, child: [] }] })(t);
8667
+ return tn({ attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 18c-.552 0-1-.448-1-1v-6.382l-.553.276c-.495.248-1.095.046-1.342-.447-.247-.494-.046-1.094.448-1.342l2-1c.31-.155.678-.139.973.044.294.183.474.504.474.851v8c0 .552-.448 1-1 1zM13 18h-5c-.404 0-.769-.244-.924-.617-.155-.374-.069-.804.217-1.09l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001-.253.252-.393.589-.393.948 0 .552-.448 1-1 1s-1-.448-1-1c0-.894.348-1.733.98-2.364 1.265-1.263 3.464-1.263 4.727.001.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.979 2.364l-2.293 2.293h2.586c.552 0 1 .448 1 1s-.448 1-1 1zM20.955 12.377c.338-.457.545-1.016.545-1.627 0-1.517-1.234-2.75-2.75-2.75-1.031 0-1.966.569-2.44 1.484-.254.49-.063 1.094.428 1.348.49.254 1.094.062 1.348-.428.128-.249.383-.404.664-.404.414 0 .75.336.75.75s-.336.75-.75.75c-.552 0-1 .448-1 1s.448 1 1 1c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25c0-.552-.448-1-1-1s-1 .448-1 1c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25c0-.939-.406-1.779-1.045-2.373z" }, child: [] }] })(t);
8668
8668
  }
8669
8669
  function li({
8670
8670
  onChartTypeChange: t,
@@ -9916,7 +9916,7 @@ function Xu() {
9916
9916
  }
9917
9917
  );
9918
9918
  }
9919
- function tn() {
9919
+ function nn() {
9920
9920
  const [t, a] = V([]), n = M((u) => u.card.preferences), { setFilterOnClickColumnIndex: r, setCardPreferences: l } = M(
9921
9921
  (u) => u.actions
9922
9922
  ), i = M(
@@ -10403,7 +10403,7 @@ function nm({
10403
10403
  /* @__PURE__ */ s(Qn, { children: [
10404
10404
  /* @__PURE__ */ e(Zn, { children: "No framework found." }),
10405
10405
  /* @__PURE__ */ e(Ut, { children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ s(
10406
- gn,
10406
+ yn,
10407
10407
  {
10408
10408
  value: o.column_name,
10409
10409
  onSelect: (d) => {
@@ -10465,7 +10465,7 @@ function am({
10465
10465
  /* @__PURE__ */ s(Se, { value: "item-3", children: [
10466
10466
  /* @__PURE__ */ e(ke, { children: "Filters" }),
10467
10467
  /* @__PURE__ */ s(De, { className: "space-y-4 px-2", children: [
10468
- /* @__PURE__ */ e(tn, {}),
10468
+ /* @__PURE__ */ e(nn, {}),
10469
10469
  /* @__PURE__ */ e(xn, {})
10470
10470
  ] })
10471
10471
  ] })
@@ -10581,7 +10581,7 @@ function sm({
10581
10581
  /* @__PURE__ */ s(Se, { value: "item-3", children: [
10582
10582
  /* @__PURE__ */ e(ke, { children: "Filters" }),
10583
10583
  /* @__PURE__ */ s(De, { className: "space-y-4 px-2", children: [
10584
- /* @__PURE__ */ e(tn, {}),
10584
+ /* @__PURE__ */ e(nn, {}),
10585
10585
  /* @__PURE__ */ e(xn, {})
10586
10586
  ] })
10587
10587
  ] })
@@ -10624,7 +10624,7 @@ function im() {
10624
10624
  ),
10625
10625
  !["kpi"].includes(t) && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
10626
10626
  /* @__PURE__ */ e(za, {}),
10627
- /* @__PURE__ */ e(tn, {}),
10627
+ /* @__PURE__ */ e(nn, {}),
10628
10628
  /* @__PURE__ */ e(xn, {})
10629
10629
  ] })
10630
10630
  ] });
@@ -11080,7 +11080,7 @@ function hm() {
11080
11080
  )
11081
11081
  ] }) }),
11082
11082
  /* @__PURE__ */ e(ft, { className: "my-4" }),
11083
- /* @__PURE__ */ e(tn, {})
11083
+ /* @__PURE__ */ e(nn, {})
11084
11084
  ] });
11085
11085
  }
11086
11086
  function pm() {
@@ -11156,7 +11156,7 @@ function sa({
11156
11156
  !["range", "text"].includes(t) && /* @__PURE__ */ s(Se, { value: "item-3", children: [
11157
11157
  /* @__PURE__ */ e(ke, { children: "Filters" }),
11158
11158
  /* @__PURE__ */ s(De, { className: "space-y-4 px-2", children: [
11159
- /* @__PURE__ */ e(tn, {}),
11159
+ /* @__PURE__ */ e(nn, {}),
11160
11160
  /* @__PURE__ */ e(xn, {})
11161
11161
  ] })
11162
11162
  ] })
@@ -11235,7 +11235,7 @@ function fm() {
11235
11235
  /* @__PURE__ */ s(Se, { value: "item-3", children: [
11236
11236
  /* @__PURE__ */ e(ke, { children: "Filters" }),
11237
11237
  /* @__PURE__ */ s(De, { className: "space-y-4 px-2", children: [
11238
- /* @__PURE__ */ e(tn, {}),
11238
+ /* @__PURE__ */ e(nn, {}),
11239
11239
  /* @__PURE__ */ e(xn, {})
11240
11240
  ] })
11241
11241
  ] })
@@ -11255,7 +11255,7 @@ function gm({
11255
11255
  /* @__PURE__ */ e(Nt, { defaultValue: ["item-3"], type: "multiple", children: /* @__PURE__ */ s(Se, { value: "item-3", children: [
11256
11256
  /* @__PURE__ */ e(ke, { children: "Filters" }),
11257
11257
  /* @__PURE__ */ s(De, { className: "space-y-4 px-2", children: [
11258
- /* @__PURE__ */ e(tn, {}),
11258
+ /* @__PURE__ */ e(nn, {}),
11259
11259
  /* @__PURE__ */ e(xn, {})
11260
11260
  ] })
11261
11261
  ] }) }),
@@ -11490,7 +11490,7 @@ function Sm({ column: t }) {
11490
11490
  const l = {
11491
11491
  ...t,
11492
11492
  granularity: r,
11493
- label: dn(t.name, r)
11493
+ label: un(t.name, r)
11494
11494
  };
11495
11495
  a(t.id, l);
11496
11496
  }
@@ -11591,7 +11591,7 @@ function Dm({
11591
11591
  transform: g,
11592
11592
  transition: f,
11593
11593
  isDragging: y
11594
- } = yn({ id: t.id, data: { type: a } }), p = g ? {
11594
+ } = vn({ id: t.id, data: { type: a } }), p = g ? {
11595
11595
  opacity: y ? 0.5 : void 0,
11596
11596
  transform: At.Translate.toString(g),
11597
11597
  transition: f
@@ -11616,7 +11616,7 @@ function Dm({
11616
11616
  name: I.column_name,
11617
11617
  type: A,
11618
11618
  role: "groupby",
11619
- label: dn(I.column_name, "month"),
11619
+ label: un(I.column_name, "month"),
11620
11620
  granularity: "month"
11621
11621
  };
11622
11622
  c(t.id, k);
@@ -11639,7 +11639,7 @@ function Dm({
11639
11639
  // use the previous column's id.
11640
11640
  name: I.column_name,
11641
11641
  type: A,
11642
- label: dn(I.column_name, "month"),
11642
+ label: un(I.column_name, "month"),
11643
11643
  granularity: "month",
11644
11644
  role: "groupby"
11645
11645
  };
@@ -11803,7 +11803,7 @@ function gi({ children: t, id: a, type: n }) {
11803
11803
  transform: c,
11804
11804
  transition: o,
11805
11805
  isDragging: d
11806
- } = yn({ id: a, data: { type: n } }), u = c ? {
11806
+ } = vn({ id: a, data: { type: n } }), u = c ? {
11807
11807
  opacity: d ? 0.5 : void 0,
11808
11808
  transform: At.Translate.toString(c),
11809
11809
  transition: o
@@ -12720,7 +12720,7 @@ function Tr() {
12720
12720
  ) }),
12721
12721
  /* @__PURE__ */ s(Bn, { align: "end", children: [
12722
12722
  /* @__PURE__ */ e(Lr, { children: "Options" }),
12723
- /* @__PURE__ */ e(rn, {}),
12723
+ /* @__PURE__ */ e(ln, {}),
12724
12724
  /* @__PURE__ */ e(
12725
12725
  _a,
12726
12726
  {
@@ -13254,7 +13254,7 @@ function Bm({ field: t }) {
13254
13254
  transform: l,
13255
13255
  transition: i,
13256
13256
  isDragging: c
13257
- } = yn({ id: t.id }), [o, d] = V(!1), u = M((y) => y.card), { handleFieldClick: m } = Qs(u), h = {
13257
+ } = vn({ id: t.id }), [o, d] = V(!1), u = M((y) => y.card), { handleFieldClick: m } = Qs(u), h = {
13258
13258
  transform: At.Transform.toString(l),
13259
13259
  transition: i
13260
13260
  };
@@ -13265,7 +13265,7 @@ function Bm({ field: t }) {
13265
13265
  case "number":
13266
13266
  return On;
13267
13267
  case "date":
13268
- return on;
13268
+ return cn;
13269
13269
  case "boolean":
13270
13270
  return fa;
13271
13271
  case "json":
@@ -13277,7 +13277,7 @@ function Bm({ field: t }) {
13277
13277
  }
13278
13278
  }, f = (y) => {
13279
13279
  const p = (y || "").toLowerCase(), N = tt(p);
13280
- return N === "string" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(Rn, { className: "h-3 w-3" }) }) : N === "number" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-green-100 text-xs text-green-700 dark:bg-green-950 dark:text-green-300", children: /* @__PURE__ */ e(On, { className: "h-3 w-3" }) }) : N === "date" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-purple-100 text-xs text-purple-700 dark:bg-purple-950 dark:text-purple-300", children: /* @__PURE__ */ e(on, { className: "h-3 w-3" }) }) : N === "boolean" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-orange-100 text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(fa, { className: "h-3 w-3" }) }) : N === "json" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(gr, { className: "h-3 w-3" }) }) : N === "geo" ? /* @__PURE__ */ e("div", { className: "bg-orange -100 flex size-6 shrink-0 items-center justify-center rounded-sm text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(yr, { className: "h-3 w-3" }) }) : N === "calculated" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(kl, { className: "h-3 w-3" }) }) : null;
13280
+ return N === "string" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(Rn, { className: "h-3 w-3" }) }) : N === "number" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-green-100 text-xs text-green-700 dark:bg-green-950 dark:text-green-300", children: /* @__PURE__ */ e(On, { className: "h-3 w-3" }) }) : N === "date" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-purple-100 text-xs text-purple-700 dark:bg-purple-950 dark:text-purple-300", children: /* @__PURE__ */ e(cn, { className: "h-3 w-3" }) }) : N === "boolean" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-orange-100 text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(fa, { className: "h-3 w-3" }) }) : N === "json" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(gr, { className: "h-3 w-3" }) }) : N === "geo" ? /* @__PURE__ */ e("div", { className: "bg-orange -100 flex size-6 shrink-0 items-center justify-center rounded-sm text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(yr, { className: "h-3 w-3" }) }) : N === "calculated" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(kl, { className: "h-3 w-3" }) }) : null;
13281
13281
  };
13282
13282
  return g(t.dataType), /* @__PURE__ */ s(
13283
13283
  "div",
@@ -13902,7 +13902,7 @@ function Gm({
13902
13902
  variant: "ghost",
13903
13903
  size: "sm",
13904
13904
  onClick: () => p(k.id),
13905
- children: O ? /* @__PURE__ */ e(yl, { className: "h-4 w-4" }) : /* @__PURE__ */ e(fn, { className: "h-4 w-4" })
13905
+ children: O ? /* @__PURE__ */ e(yl, { className: "h-4 w-4" }) : /* @__PURE__ */ e(gn, { className: "h-4 w-4" })
13906
13906
  }
13907
13907
  ),
13908
13908
  /* @__PURE__ */ e(
@@ -14727,7 +14727,7 @@ function Qm({
14727
14727
  size: "sm",
14728
14728
  onClick: () => i(!l),
14729
14729
  className: "h-6 w-6 p-0",
14730
- children: l ? /* @__PURE__ */ e(fn, { className: "h-4 w-4" }) : /* @__PURE__ */ e(rc, { className: "h-4 w-4" })
14730
+ children: l ? /* @__PURE__ */ e(gn, { className: "h-4 w-4" }) : /* @__PURE__ */ e(rc, { className: "h-4 w-4" })
14731
14731
  }
14732
14732
  )
14733
14733
  ]
@@ -14889,7 +14889,7 @@ const Er = ({
14889
14889
  }) => {
14890
14890
  const r = Ra(t.icon || ""), l = t.name.charAt(0).toUpperCase(), i = Zs(t.name);
14891
14891
  return /* @__PURE__ */ e(
14892
- gn,
14892
+ yn,
14893
14893
  {
14894
14894
  value: `${t.name} custom visual plugin component`,
14895
14895
  onSelect: n,
@@ -15017,7 +15017,7 @@ function eh({
15017
15017
  })(),
15018
15018
  /* @__PURE__ */ e("span", { children: z() })
15019
15019
  ] }),
15020
- /* @__PURE__ */ e(fn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
15020
+ /* @__PURE__ */ e(gn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
15021
15021
  ]
15022
15022
  }
15023
15023
  ) }),
@@ -15051,7 +15051,7 @@ function eh({
15051
15051
  children: ca.map((D) => {
15052
15052
  const S = D.icon;
15053
15053
  return /* @__PURE__ */ e(
15054
- gn,
15054
+ yn,
15055
15055
  {
15056
15056
  value: `${D.label} ${D.id} chart graph visualization`,
15057
15057
  onSelect: () => C(D.id),
@@ -15159,7 +15159,7 @@ const th = ({
15159
15159
  return n ? /* @__PURE__ */ e(n, { className: "h-4 w-4" }) : r || /* @__PURE__ */ e(En, { className: "h-4 w-4" });
15160
15160
  }, vi = ({ dataType: t }) => {
15161
15161
  const a = tt(t);
15162
- return a === "string" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(Rn, { className: "h-3 w-3" }) }) : a === "number" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-green-100 text-xs text-green-700 dark:bg-green-950 dark:text-green-300", children: /* @__PURE__ */ e(On, { className: "h-3 w-3" }) }) : a === "date" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-purple-100 text-xs text-purple-700 dark:bg-purple-950 dark:text-purple-300", children: /* @__PURE__ */ e(on, { className: "h-3 w-3" }) }) : a === "boolean" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-orange-100 text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(fa, { className: "h-3 w-3" }) }) : /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(Rn, { className: "h-3 w-3" }) });
15162
+ return a === "string" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(Rn, { className: "h-3 w-3" }) }) : a === "number" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-green-100 text-xs text-green-700 dark:bg-green-950 dark:text-green-300", children: /* @__PURE__ */ e(On, { className: "h-3 w-3" }) }) : a === "date" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-purple-100 text-xs text-purple-700 dark:bg-purple-950 dark:text-purple-300", children: /* @__PURE__ */ e(cn, { className: "h-3 w-3" }) }) : a === "boolean" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-orange-100 text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(fa, { className: "h-3 w-3" }) }) : /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(Rn, { className: "h-3 w-3" }) });
15163
15163
  };
15164
15164
  function nh({
15165
15165
  aliasTemplate: t,
@@ -15422,7 +15422,7 @@ function sh({
15422
15422
  transform: m,
15423
15423
  transition: h,
15424
15424
  isDragging: g
15425
- } = yn({ id: t.id }), f = M((re) => re.card), {
15425
+ } = vn({ id: t.id }), f = M((re) => re.card), {
15426
15426
  updateLabel: y,
15427
15427
  handleAggregationChange: p,
15428
15428
  handleDateFormatChange: N,
@@ -15747,7 +15747,7 @@ function sh({
15747
15747
  re.stopPropagation(), k(!A);
15748
15748
  },
15749
15749
  children: /* @__PURE__ */ e(
15750
- fn,
15750
+ gn,
15751
15751
  {
15752
15752
  className: `h-3 w-3 transition-transform ${A ? "rotate-180" : ""}`
15753
15753
  }
@@ -16382,7 +16382,7 @@ function mh({
16382
16382
  /* @__PURE__ */ e("span", { children: h[0].entityName })
16383
16383
  ] }),
16384
16384
  h.map((g, f) => /* @__PURE__ */ s(
16385
- gn,
16385
+ yn,
16386
16386
  {
16387
16387
  value: g.id,
16388
16388
  onSelect: () => {
@@ -16446,7 +16446,7 @@ function Xs(t) {
16446
16446
  ],
16447
16447
  queryFn: async () => {
16448
16448
  try {
16449
- return await ln(
16449
+ return await on(
16450
16450
  "https://semaphor.cloud/api/v1/query",
16451
16451
  (n == null ? void 0 : n.accessToken) || "",
16452
16452
  {
@@ -16516,7 +16516,7 @@ function hh({
16516
16516
  )
16517
16517
  ] }, m);
16518
16518
  }) : /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: r }) }),
16519
- /* @__PURE__ */ e(fn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
16519
+ /* @__PURE__ */ e(gn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
16520
16520
  ]
16521
16521
  }
16522
16522
  ) }),
@@ -16525,7 +16525,7 @@ function hh({
16525
16525
  /* @__PURE__ */ s(Qn, { children: [
16526
16526
  /* @__PURE__ */ e(Zn, { children: "No results found." }),
16527
16527
  /* @__PURE__ */ e(Ut, { children: o.map((m, h) => /* @__PURE__ */ s(
16528
- gn,
16528
+ yn,
16529
16529
  {
16530
16530
  onSelect: () => u(m.value),
16531
16531
  children: [
@@ -16652,7 +16652,7 @@ function bi({
16652
16652
  transform: g,
16653
16653
  transition: f,
16654
16654
  isDragging: y
16655
- } = yn({ id: t.id }), { isPending: p, error: N } = Xs(
16655
+ } = vn({ id: t.id }), { isPending: p, error: N } = Xs(
16656
16656
  t.field
16657
16657
  ), v = {
16658
16658
  transform: At.Transform.toString(g),
@@ -16823,7 +16823,7 @@ function Nh({
16823
16823
  transform: w,
16824
16824
  transition: z,
16825
16825
  isDragging: T
16826
- } = yn({ id: t.id }), I = {
16826
+ } = vn({ id: t.id }), I = {
16827
16827
  transform: At.Transform.toString(w),
16828
16828
  transition: z
16829
16829
  }, x = (S) => {
@@ -16900,7 +16900,7 @@ function Nh({
16900
16900
  ] }),
16901
16901
  /* @__PURE__ */ s("div", { className: `p-3 ${a > 0 ? "" : "px-0"}`, children: [
16902
16902
  /* @__PURE__ */ e(
16903
- cn,
16903
+ dn,
16904
16904
  {
16905
16905
  sensors: Dn(
16906
16906
  Dt(pa),
@@ -16936,7 +16936,7 @@ function Nh({
16936
16936
  }
16937
16937
  ),
16938
16938
  /* @__PURE__ */ e(
16939
- cn,
16939
+ dn,
16940
16940
  {
16941
16941
  sensors: Dn(
16942
16942
  Dt(pa),
@@ -17038,7 +17038,7 @@ function Ch({
17038
17038
  z(O(i));
17039
17039
  }, S = (k, F = 0, E) => F === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg", children: /* @__PURE__ */ s("div", { className: "p-3 px-0", children: [
17040
17040
  /* @__PURE__ */ e(
17041
- cn,
17041
+ dn,
17042
17042
  {
17043
17043
  sensors: T,
17044
17044
  collisionDetection: Tn,
@@ -17079,7 +17079,7 @@ function Ch({
17079
17079
  }
17080
17080
  ),
17081
17081
  /* @__PURE__ */ e(
17082
- cn,
17082
+ dn,
17083
17083
  {
17084
17084
  sensors: T,
17085
17085
  collisionDetection: Tn,
@@ -17813,7 +17813,7 @@ function Rh() {
17813
17813
  }), Y;
17814
17814
  }, te = le(((L = F == null ? void 0 : F.config) == null ? void 0 : L.filters) || null);
17815
17815
  return /* @__PURE__ */ s(
17816
- cn,
17816
+ dn,
17817
17817
  {
17818
17818
  sensors: k,
17819
17819
  collisionDetection: Tn,
@@ -17966,7 +17966,7 @@ function zh({ authToken: t, onSave: a, onClose: n }) {
17966
17966
  );
17967
17967
  }
17968
17968
  return /* @__PURE__ */ e(ea, { FallbackComponent: Cl, children: i ? /* @__PURE__ */ e(
17969
- cn,
17969
+ dn,
17970
17970
  {
17971
17971
  sensors: y,
17972
17972
  onDragStart: g,