react-semaphor 0.0.633 → 0.0.635

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.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as e, Fragment as Q } from "react/jsx-runtime";
2
- import { L as le, M as tl, u as re, N as pa, O as fa, P as _, Q as ga, T as nt, V as yn, I as Tt, W as We, X as ut, Y as al, Z as Pe, _ as mt, $ as ht, a0 as pt, a1 as zt, a2 as B, a3 as Ae, a4 as ea, a5 as ve, a6 as sl, a7 as Sa, a8 as Gi, a9 as Tr, aa as Nn, ab as U, ac as bn, ad as $i, ae as nl, af as rl, ag as ua, ah as Ne, j as Mr, ai as Yi, aj as Nt, ak as bt, al as Ar, am as Mt, an as gt, ao as xt, ap as ke, aq as ue, ar as tt, as as Is, at as ka, au as ll, av as Ui, aw as qi, ax as Wi, ay as He, az as Cn, aA as Ki, aB as Os, aC as Gt, aD as Qt, aE as Le, aF as ft, aG as il, aH as Ie, aI as ol, aJ as Pa, aK as Da, aL as _t, aM as Re, aN as Me, aO as dt, aP as La, aQ as xa, aR as za, aS as Ji, aT as va, aU as rt, aV as Ue, aW as qe, aX as ss, aY as Qe, aZ as at, a_ as na, a$ as ns, b0 as rs, b1 as Hi, b2 as ya, b3 as wn, b4 as Sn, b5 as kn, b6 as Dn, R as Lt, b7 as cl, b8 as Qi, b9 as Tn, ba as ls, bb as Mn, bc as An, bd as _a, be as Va, bf as ja, bg as En, bh as Rs, bi as In, bj as dl, bk as ul, bl as On, bm as pe, bn as fe, bo as ge, bp as xe, bq as ae, br as ml, bs as hl, bt as Zi, bu as Xi, bv as At, bw as eo, bx as to, by as $t, bz as pl, K as ie, bA as ao, bB as Dt, J as I, bC as so, bD as fl, bE as Rn, bF as Fn, bG as Pn, bH as Ln, bI as zn, bJ as _n, bK as Vn, bL as jn, bM as no, bN as Ba, bO as qt, bP as Bn, bQ as ro, bR as Gn, bS as Fs, bT as is, bU as os, bV as gl, bW as lo, bX as Ta, bY as xl, bZ as vl, b_ as io, b$ as Cs, c0 as oo, c1 as co, c2 as uo, c3 as mo, i as ho, c4 as yl, c5 as Ka, c6 as Et, c7 as cs, c8 as ds, c9 as us, ca as ms, cb as ia, cc as Ga, cd as Na, ce as Ma, cf as Aa, cg as Vt, ch as hs, A as It, ci as Nl, r as bl, q as Cl, l as St, cj as Be, ck as po, cl as ta, cm as Zt, cn as wl, co as fo, k as Sl, cp as Ja, cq as Wt, cr as go, n as Xt, m as Rt, o as Ft, cs as sn, ct as Ps, cu as Ls, cv as aa, x as Er, cw as Ge, cx as zs, cy as ws, cz as Ha, cA as nn, cB as kl, cC as Dl, cD as $n, cE as xo, cF as vo, cG as Tl, cH as yo, cI as _s, cJ as No, cK as Ea, cL as bo, cM as Co, cN as rn, cO as Kt, cP as Je, cQ as Jt, cR as wo, cS as So, cT as Ml, cU as ko, cV as Yn, cW as Do, cX as Un, cY as qn, cZ as To, c_ as Al, c$ as El, d0 as Mo, d1 as Ao, d2 as Qa, d3 as Eo, d4 as Wn, d5 as Io, d6 as Oo, d7 as Ir, d8 as Ro, E as ps, b as Kn, d9 as Jn, da as Fo, db as Po, dc as Hn, dd as Lo, de as zo, df as _o, dg as Il, dh as Qn, di as Ol, dj as Rl, dk as Fl, dl as Pl, dm as Ll, dn as Zn, dp as Xn, dq as zl, dr as _l, ds as Vl, dt as er, du as Vs, dv as js, dw as Vo, dx as jo, dy as Bo, dz as Go, dA as $o, dB as Yo, dC as Uo, dD as ot, dE as ct, dF as be, dG as Ce, dH as we, dI as Ht, dJ as qo, dK as Wo, dL as Ko, dM as Jo, dN as Ho, y as Qo, dO as Or, dP as jl, dQ as Zo, dR as Xo, dS as it, dT as xs, dU as Rr, dV as ec, dW as Fr, dX as Pr, dY as tc, dZ as ac, d_ as sc, d$ as nc, e0 as tr, e1 as ar, e2 as sr, e3 as $a, e4 as nr, e5 as sa, e6 as rc, e7 as Bs, e8 as Bl, e9 as lc, ea as ic, eb as Lr, ec as oc, ed as cc, ee as dc, ef as uc, eg as mc, w as zr, eh as _r, ei as hc, ej as pc, ek as ln, el as fc, em as gc, en as xc, eo as vc, ep as yc, eq as Nc, er as bc, es as Cc, et as wc, eu as Sc, ev as kc, ew as Dc, ex as Tc, ey as Mc, ez as Ac, eA as Ec, eB as Ic, eC as rr, eD as qs, eE as Oc, eF as Rc, eG as on, eH as Fc, eI as Ss, eJ as ks, eK as Ya, eL as Pc, eM as Vr, eN as cn, eO as Gl, eP as lr, eQ as $l, eR as Ws, eS as ir, eT as Lc, eU as zc, eV as _c, eW as Za, eX as Vc, eY as dn, eZ as jc, e_ as Bc, e$ as Gc, f0 as un, f1 as mn, f2 as Ds, f3 as $c, f4 as Ia, f5 as Xa, f6 as Yc, f7 as or, f8 as Uc, f9 as qc, fa as Wc, F as Yl, fb as Kc, p as Jc, fc as Hc, B as Qc, fd as Zc, fe as Xc, S as ed, ff as td, U as ad, fg as sd, C as nd } from "./index-CnqxbwDX.js";
2
+ import { L as le, M as tl, u as re, N as pa, O as fa, P as _, Q as ga, T as nt, V as yn, I as Mt, W as We, X as ut, Y as al, Z as Pe, _ as mt, $ as ht, a0 as pt, a1 as Tt, a2 as B, a3 as Ae, a4 as ea, a5 as ve, a6 as sl, a7 as Sa, a8 as Gi, a9 as Tr, aa as Nn, ab as U, ac as bn, ad as $i, ae as nl, af as rl, ag as ua, ah as Ne, j as Mr, ai as Yi, aj as Nt, ak as bt, al as Ar, am as At, an as gt, ao as xt, ap as ke, aq as ue, ar as tt, as as Is, at as ka, au as ll, av as Ui, aw as qi, ax as Wi, ay as He, az as Cn, aA as Ki, aB as Os, aC as Gt, aD as Qt, aE as Le, aF as ft, aG as il, aH as Ie, aI as ol, aJ as Pa, aK as Da, aL as _t, aM as Re, aN as Me, aO as dt, aP as La, aQ as xa, aR as za, aS as Ji, aT as va, aU as rt, aV as Ue, aW as qe, aX as ss, aY as Qe, aZ as at, a_ as na, a$ as ns, b0 as rs, b1 as Hi, b2 as ya, b3 as wn, b4 as Sn, b5 as kn, b6 as Dn, R as zt, b7 as cl, b8 as Qi, b9 as Tn, ba as ls, bb as Mn, bc as An, bd as _a, be as Va, bf as ja, bg as En, bh as Rs, bi as In, bj as dl, bk as ul, bl as On, bm as pe, bn as fe, bo as ge, bp as xe, bq as ae, br as ml, bs as hl, bt as Zi, bu as Xi, bv as Et, bw as eo, bx as to, by as $t, bz as pl, K as ie, bA as ao, bB as Dt, J as I, bC as so, bD as fl, bE as Rn, bF as Fn, bG as Pn, bH as Ln, bI as zn, bJ as _n, bK as Vn, bL as jn, bM as no, bN as Ba, bO as qt, bP as Bn, bQ as ro, bR as Gn, bS as Fs, bT as is, bU as os, bV as gl, bW as lo, bX as Ta, bY as xl, bZ as vl, b_ as io, b$ as Cs, c0 as oo, c1 as co, c2 as uo, c3 as mo, i as ho, c4 as yl, c5 as Ka, c6 as It, c7 as cs, c8 as ds, c9 as us, ca as ms, cb as ia, cc as Ga, cd as Na, ce as Ma, cf as Aa, cg as Vt, ch as hs, A as Ot, ci as Nl, r as bl, q as Cl, l as St, cj as Be, ck as po, cl as ta, cm as Zt, cn as wl, co as fo, k as Sl, cp as Ja, cq as Wt, cr as go, n as Xt, m as Ft, o as Pt, cs as sn, ct as Ps, cu as Ls, cv as aa, x as Er, cw as Ge, cx as zs, cy as ws, cz as Ha, cA as nn, cB as kl, cC as Dl, cD as $n, cE as xo, cF as vo, cG as Tl, cH as yo, cI as _s, cJ as No, cK as Ea, cL as bo, cM as Co, cN as rn, cO as Kt, cP as Je, cQ as Jt, cR as wo, cS as So, cT as Ml, cU as ko, cV as Yn, cW as Do, cX as Un, cY as qn, cZ as To, c_ as Al, c$ as El, d0 as Mo, d1 as Ao, d2 as Qa, d3 as Eo, d4 as Wn, d5 as Io, d6 as Oo, d7 as Ir, d8 as Ro, E as ps, b as Kn, d9 as Jn, da as Fo, db as Po, dc as Hn, dd as Lo, de as zo, df as _o, dg as Il, dh as Qn, di as Ol, dj as Rl, dk as Fl, dl as Pl, dm as Ll, dn as Zn, dp as Xn, dq as zl, dr as _l, ds as Vl, dt as er, du as Vs, dv as js, dw as Vo, dx as jo, dy as Bo, dz as Go, dA as $o, dB as Yo, dC as Uo, dD as ot, dE as ct, dF as be, dG as Ce, dH as we, dI as Ht, dJ as qo, dK as Wo, dL as Ko, dM as Jo, dN as Ho, y as Qo, dO as Or, dP as jl, dQ as Zo, dR as Xo, dS as it, dT as xs, dU as Rr, dV as ec, dW as Fr, dX as Pr, dY as tc, dZ as ac, d_ as sc, d$ as nc, e0 as tr, e1 as ar, e2 as sr, e3 as $a, e4 as nr, e5 as sa, e6 as rc, e7 as Bs, e8 as Bl, e9 as lc, ea as ic, eb as Lr, ec as oc, ed as cc, ee as dc, ef as uc, eg as mc, w as zr, eh as _r, ei as hc, ej as pc, ek as ln, el as fc, em as gc, en as xc, eo as vc, ep as yc, eq as Nc, er as bc, es as Cc, et as wc, eu as Sc, ev as kc, ew as Dc, ex as Tc, ey as Mc, ez as Ac, eA as Ec, eB as Ic, eC as rr, eD as qs, eE as Oc, eF as Rc, eG as on, eH as Fc, eI as Ss, eJ as ks, eK as Ya, eL as Pc, eM as Vr, eN as cn, eO as Gl, eP as lr, eQ as $l, eR as Ws, eS as ir, eT as Lc, eU as zc, eV as _c, eW as Za, eX as Vc, eY as dn, eZ as jc, e_ as Bc, e$ as Gc, f0 as un, f1 as mn, f2 as Ds, f3 as $c, f4 as Ia, f5 as Xa, f6 as Yc, f7 as or, f8 as Uc, f9 as qc, fa as Wc, F as Yl, fb as Kc, p as Jc, fc as Hc, B as Qc, fd as Zc, fe as Xc, S as ed, ff as td, U as ad, fg as sd, C as nd } from "./index-BIeRd2Q5.js";
3
3
  import * as la from "react";
4
4
  import Ye, { useState as V, useEffect as Oe, useRef as jt, useMemo as ze, useCallback as Te, Suspense as Ul, useContext as cr } from "react";
5
5
  import "react-dom";
@@ -1064,7 +1064,7 @@ async function au(t, n) {
1064
1064
  }) : null;
1065
1065
  }
1066
1066
  function su() {
1067
- const [t, n] = V(""), [s, r] = V(!1), i = re((p) => p.lenses), { setLenses: l, setSelectedLensId: c } = Tt(), [o, d] = V(!1), [u, m] = V(!1), h = re((p) => p.dashboard), f = re((p) => p.filterValues), { authToken: x } = We();
1067
+ const [t, n] = V(""), [s, r] = V(!1), i = re((p) => p.lenses), { setLenses: l, setSelectedLensId: c } = Mt(), [o, d] = V(!1), [u, m] = V(!1), h = re((p) => p.dashboard), f = re((p) => p.filterValues), { authToken: x } = We();
1068
1068
  async function v() {
1069
1069
  d(!0);
1070
1070
  const p = pn(
@@ -1093,7 +1093,7 @@ function su() {
1093
1093
  /* @__PURE__ */ a(mt, { className: "sm:max-w-[425px]", children: [
1094
1094
  /* @__PURE__ */ a(ht, { children: [
1095
1095
  /* @__PURE__ */ e(pt, { children: "Create Lens" }),
1096
- /* @__PURE__ */ e(zt, { children: "Lenses are private by default and are only visible to you." })
1096
+ /* @__PURE__ */ e(Tt, { children: "Lenses are private by default and are only visible to you." })
1097
1097
  ] }),
1098
1098
  /* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ a("div", { className: "grid grid-cols-8 items-center gap-4", children: [
1099
1099
  /* @__PURE__ */ e(B, { className: "text-right", children: "Name" }),
@@ -1125,7 +1125,7 @@ function su() {
1125
1125
  ] });
1126
1126
  }
1127
1127
  function nu() {
1128
- const [t, n] = V(!1), s = re((m) => m.lenses), r = re((m) => m.selectedLensId), { setLenses: i, setSelectedLensId: l } = Tt(), { authToken: c } = We();
1128
+ const [t, n] = V(!1), s = re((m) => m.lenses), r = re((m) => m.selectedLensId), { setLenses: i, setSelectedLensId: l } = Mt(), { authToken: c } = We();
1129
1129
  async function o(m) {
1130
1130
  l(m);
1131
1131
  }
@@ -1280,7 +1280,7 @@ function ru({
1280
1280
  children: /* @__PURE__ */ a(mt, { className: "sm:max-w-[425px]", children: [
1281
1281
  /* @__PURE__ */ a(ht, { children: [
1282
1282
  /* @__PURE__ */ e(pt, { children: "Download Protected PDF" }),
1283
- /* @__PURE__ */ e(zt, { children: "Enter a password to protect your PDF. The PDF will be encrypted and require this password to open." })
1283
+ /* @__PURE__ */ e(Tt, { children: "Enter a password to protect your PDF. The PDF will be encrypted and require this password to open." })
1284
1284
  ] }),
1285
1285
  /* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ a("div", { className: "grid gap-2", children: [
1286
1286
  /* @__PURE__ */ e(B, { htmlFor: "password", children: "Password" }),
@@ -1383,7 +1383,7 @@ function lu({
1383
1383
  children: /* @__PURE__ */ e(Ar, { className: "size-4" })
1384
1384
  }
1385
1385
  ) }),
1386
- /* @__PURE__ */ e(Mt, { align: "end", className: "w-[520px] p-0", children: /* @__PURE__ */ a(
1386
+ /* @__PURE__ */ e(At, { align: "end", className: "w-[520px] p-0", children: /* @__PURE__ */ a(
1387
1387
  gt,
1388
1388
  {
1389
1389
  value: r,
@@ -2811,7 +2811,7 @@ function Ra(t) {
2811
2811
  const {
2812
2812
  debouncedSearchQuery: n,
2813
2813
  resourceId: s,
2814
- resourceType: r = Lt.DASHBOARD,
2814
+ resourceType: r = zt.DASHBOARD,
2815
2815
  userType: i,
2816
2816
  tenantId: l
2817
2817
  } = t, c = ze(() => ({
@@ -4104,7 +4104,7 @@ function lt(t, n, s) {
4104
4104
  data: { shares: s }
4105
4105
  };
4106
4106
  }
4107
- function Ot(t, n, s) {
4107
+ function Rt(t, n, s) {
4108
4108
  return {
4109
4109
  resourceType: t,
4110
4110
  resourceId: n,
@@ -4154,7 +4154,7 @@ function Su(t, n, s) {
4154
4154
  });
4155
4155
  }
4156
4156
  if (m && m.length > 0) {
4157
- const f = Ot(
4157
+ const f = Rt(
4158
4158
  r,
4159
4159
  i,
4160
4160
  m.map((x) => {
@@ -4220,7 +4220,7 @@ function Su(t, n, s) {
4220
4220
  } else if (t.mode === "specificTenantUsers") {
4221
4221
  const { selectedUsers: u, usersToRemove: m, usersToUpdate: h, tenantId: f } = t;
4222
4222
  if (m && m.length > 0) {
4223
- const x = Ot(
4223
+ const x = Rt(
4224
4224
  r,
4225
4225
  i,
4226
4226
  m.map((v) => {
@@ -4278,7 +4278,7 @@ function Su(t, n, s) {
4278
4278
  case "tenant-dialog":
4279
4279
  if (t.mode === "allTenantUsers")
4280
4280
  if (t.removeAccess) {
4281
- const u = Ot(r, i, [
4281
+ const u = Rt(r, i, [
4282
4282
  {
4283
4283
  scope: "all_tenant_users",
4284
4284
  role: "VIEWER"
@@ -4336,7 +4336,7 @@ function Su(t, n, s) {
4336
4336
  });
4337
4337
  }
4338
4338
  if (m && m.length > 0) {
4339
- const f = Ot(
4339
+ const f = Rt(
4340
4340
  r,
4341
4341
  i,
4342
4342
  m.map((x) => {
@@ -4396,7 +4396,7 @@ function Su(t, n, s) {
4396
4396
  });
4397
4397
  }
4398
4398
  if (m && m.length > 0) {
4399
- const f = Ot(
4399
+ const f = Rt(
4400
4400
  r,
4401
4401
  i,
4402
4402
  m.map((x) => ({
@@ -4446,7 +4446,7 @@ function ku(t, n, s, r) {
4446
4446
  } = r;
4447
4447
  if (l)
4448
4448
  if (t.length > 0) {
4449
- const p = Ot(
4449
+ const p = Rt(
4450
4450
  i,
4451
4451
  l,
4452
4452
  t.map((y) => {
@@ -4474,7 +4474,7 @@ function ku(t, n, s, r) {
4474
4474
  if (p) {
4475
4475
  const g = (m = (u = o == null ? void 0 : o.shares) == null ? void 0 : u.allTenantsOnly) == null ? void 0 : m[0];
4476
4476
  if (g) {
4477
- const C = Ot(i, l, [
4477
+ const C = Rt(i, l, [
4478
4478
  {
4479
4479
  scope: "all_tenants_only",
4480
4480
  role: g.role
@@ -4492,7 +4492,7 @@ function ku(t, n, s, r) {
4492
4492
  } else if (y) {
4493
4493
  const g = (f = (h = o == null ? void 0 : o.shares) == null ? void 0 : h.tenantWide) == null ? void 0 : f[0];
4494
4494
  if (g) {
4495
- const C = Ot(i, l, [
4495
+ const C = Rt(i, l, [
4496
4496
  {
4497
4497
  scope: "all_tenant_users",
4498
4498
  role: g.role
@@ -4510,7 +4510,7 @@ function ku(t, n, s, r) {
4510
4510
  } else {
4511
4511
  const g = (v = (x = o == null ? void 0 : o.shares) == null ? void 0 : x.orgUsersOnly) == null ? void 0 : v[0];
4512
4512
  if (g) {
4513
- const C = Ot(i, l, [
4513
+ const C = Rt(i, l, [
4514
4514
  {
4515
4515
  scope: "org_users_only",
4516
4516
  role: g.role
@@ -4529,10 +4529,10 @@ function ku(t, n, s, r) {
4529
4529
  }
4530
4530
  }
4531
4531
  function Du(t, n, s) {
4532
- const r = va(), i = xa(), l = Tn(), c = na(), { currentUser: o } = At(), { existingShares: d } = Ra({
4532
+ const r = va(), i = xa(), l = Tn(), c = na(), { currentUser: o } = Et(), { existingShares: d } = Ra({
4533
4533
  debouncedSearchQuery: "",
4534
4534
  resourceId: t || "",
4535
- resourceType: Lt.DASHBOARD,
4535
+ resourceType: zt.DASHBOARD,
4536
4536
  userType: "tenant"
4537
4537
  }), u = Te(() => {
4538
4538
  r.resetUserSelections();
@@ -4542,7 +4542,7 @@ function Du(t, n, s) {
4542
4542
  (x) => {
4543
4543
  if (!t) return;
4544
4544
  const v = {
4545
- resourceType: Lt.DASHBOARD,
4545
+ resourceType: zt.DASHBOARD,
4546
4546
  resourceId: t,
4547
4547
  shareMutation: n,
4548
4548
  removeMutation: s,
@@ -4564,7 +4564,7 @@ function Du(t, n, s) {
4564
4564
  ), f = Te(() => {
4565
4565
  if (!t) return;
4566
4566
  const x = {
4567
- resourceType: Lt.DASHBOARD,
4567
+ resourceType: zt.DASHBOARD,
4568
4568
  resourceId: t,
4569
4569
  removeMutation: s,
4570
4570
  existingShares: d,
@@ -4600,7 +4600,7 @@ function ur({
4600
4600
  onRemoveSuccess: i
4601
4601
  }) {
4602
4602
  var k, D, R, L, F, O, j, X;
4603
- const { currentUser: l } = At(), [c, o] = Ye.useState("specific_users"), [d, u] = Ye.useState("specific_users"), [m, h] = Ye.useState("specific_groups"), f = va(), x = Tn(), v = na(), p = eo(), y = to(), { handleShareSubmit: g, handleRemoveAccess: C } = Du(
4603
+ const { currentUser: l } = Et(), [c, o] = Ye.useState("specific_users"), [d, u] = Ye.useState("specific_users"), [m, h] = Ye.useState("specific_groups"), f = va(), x = Tn(), v = na(), p = eo(), y = to(), { handleShareSubmit: g, handleRemoveAccess: C } = Du(
4604
4604
  t.id,
4605
4605
  (G, ne) => {
4606
4606
  p.mutate(G, {
@@ -4654,7 +4654,7 @@ function ur({
4654
4654
  t == null ? void 0 : t.title,
4655
4655
  '"'
4656
4656
  ] }) }),
4657
- /* @__PURE__ */ e(zt, { children: z ? "Share this resource with org users or tenant users. As a super admin, you can share with all users." : "Share this resource with other users in your tenant." })
4657
+ /* @__PURE__ */ e(Tt, { children: z ? "Share this resource with org users or tenant users. As a super admin, you can share with all users." : "Share this resource with other users in your tenant." })
4658
4658
  ] }),
4659
4659
  z ? (
4660
4660
  // Organization users see tabs
@@ -4986,7 +4986,7 @@ function hr() {
4986
4986
  setSelectedFrameId: d,
4987
4987
  addFrame: u,
4988
4988
  setIsDashboardPanelOpen: m
4989
- } = Tt(), h = re((p) => p.selectedSheetId), f = ao((s == null ? void 0 : s.id) || "", {
4989
+ } = Mt(), h = re((p) => p.selectedSheetId), f = ao((s == null ? void 0 : s.id) || "", {
4990
4990
  enabled: !!(s != null && s.id) && !!(t != null && t.accessToken)
4991
4991
  }), x = Te(
4992
4992
  async (p) => {
@@ -5066,7 +5066,7 @@ function hr() {
5066
5066
  function Iu() {
5067
5067
  const [t, n] = V(""), [s, r] = V(!1), [i, l] = V(""), [c, o] = V(""), [d, u] = V(!1), [m, h] = V(
5068
5068
  null
5069
- ), [f, x] = V(!1), [v, p] = V(null), [y, g] = V(null), { setIsDashboardEditing: C, setIsVisualEditing: M } = Tt(), { handleEditLibraryVisual: E, handleAddLibraryVisual: S } = hr(), {
5069
+ ), [f, x] = V(!1), [v, p] = V(null), [y, g] = V(null), { setIsDashboardEditing: C, setIsVisualEditing: M } = Mt(), { handleEditLibraryVisual: E, handleAddLibraryVisual: S } = hr(), {
5070
5070
  resources: w,
5071
5071
  isLoading: N,
5072
5072
  isError: T,
@@ -5084,7 +5084,7 @@ function Iu() {
5084
5084
  r(!1), l(""), o("");
5085
5085
  }
5086
5086
  );
5087
- At();
5087
+ Et();
5088
5088
  const R = w.filter(
5089
5089
  (Y) => {
5090
5090
  var de, ye;
@@ -5272,7 +5272,7 @@ function Iu() {
5272
5272
  ur,
5273
5273
  {
5274
5274
  resource: m,
5275
- resourceType: Lt.VISUAL,
5275
+ resourceType: zt.VISUAL,
5276
5276
  onClose: () => {
5277
5277
  u(!1), h(null);
5278
5278
  }
@@ -5515,7 +5515,7 @@ function Fu(t) {
5515
5515
  () => {
5516
5516
  i(!1), c(""), d("");
5517
5517
  }
5518
- ), { currentUser: j } = At(), X = P.filter(
5518
+ ), { currentUser: j } = Et(), X = P.filter(
5519
5519
  (K) => {
5520
5520
  var Se, Ee;
5521
5521
  return ((Se = K == null ? void 0 : K.title) == null ? void 0 : Se.toLowerCase().includes(n.toLowerCase())) || ((Ee = K == null ? void 0 : K.description) == null ? void 0 : Ee.toLowerCase().includes(n.toLowerCase()));
@@ -5695,7 +5695,7 @@ function Fu(t) {
5695
5695
  ur,
5696
5696
  {
5697
5697
  resource: h,
5698
- resourceType: Lt.DASHBOARD,
5698
+ resourceType: zt.DASHBOARD,
5699
5699
  onClose: () => {
5700
5700
  m(!1), f(null);
5701
5701
  }
@@ -5747,7 +5747,7 @@ function Pu({
5747
5747
  (y) => y.actions
5748
5748
  ), {
5749
5749
  currentUser: c
5750
- } = At(), o = c, { permissions: d } = Bn(), u = (d.canAccessVisuals, "dashboards"), [m, h] = Gn(
5750
+ } = Et(), o = c, { permissions: d } = Bn(), u = (d.canAccessVisuals, "dashboards"), [m, h] = Gn(
5751
5751
  "resource-management-active-tab",
5752
5752
  u
5753
5753
  ), f = d.canAccessVisuals ? m : "dashboards", x = ti(n, {
@@ -6266,7 +6266,7 @@ function Ku({
6266
6266
  open: t,
6267
6267
  onOpenChange: n
6268
6268
  }) {
6269
- const [s, r] = V("groups"), [i, l] = V(""), [c, o] = V(null), [d, u] = V(!1), [m, h] = V(null), { tokenProps: f } = We(), { currentUser: x } = At(), v = Bu(), p = (x == null ? void 0 : x.type) === "tenant", y = f == null ? void 0 : f.tenantId, { groups: g, isLoading: C, refetch: M } = io({
6269
+ const [s, r] = V("groups"), [i, l] = V(""), [c, o] = V(null), [d, u] = V(!1), [m, h] = V(null), { tokenProps: f } = We(), { currentUser: x } = Et(), v = Bu(), p = (x == null ? void 0 : x.type) === "tenant", y = f == null ? void 0 : f.tenantId, { groups: g, isLoading: C, refetch: M } = io({
6270
6270
  type: p ? "TENANT_GROUP" : "all",
6271
6271
  tenantId: p ? y : void 0,
6272
6272
  includeMembers: !1
@@ -6288,13 +6288,13 @@ function Ku({
6288
6288
  r("groups"), M();
6289
6289
  };
6290
6290
  return /* @__PURE__ */ a(Q, { children: [
6291
- /* @__PURE__ */ e(ut, { open: t, onOpenChange: n, children: /* @__PURE__ */ a(mt, { className: "max-w-4xl max-h-[80vh]", "aria-describedby": "group-management-description", children: [
6291
+ /* @__PURE__ */ e(ut, { open: t, onOpenChange: n, children: /* @__PURE__ */ a(mt, { className: "max-w-4xl max-h-[80vh]", children: [
6292
6292
  /* @__PURE__ */ a(ht, { children: [
6293
6293
  /* @__PURE__ */ a(pt, { className: "flex items-center gap-2", children: [
6294
6294
  /* @__PURE__ */ e(Le, { className: "h-5 w-5" }),
6295
6295
  "Group Management"
6296
6296
  ] }),
6297
- /* @__PURE__ */ e("p", { id: "group-management-description", className: "sr-only", children: "Manage your groups, create new groups, and control group membership" })
6297
+ /* @__PURE__ */ e(Tt, { children: "Manage your groups, create new groups, and control group membership" })
6298
6298
  ] }),
6299
6299
  /* @__PURE__ */ a(gt, { value: s, onValueChange: r, className: "mt-4", children: [
6300
6300
  /* @__PURE__ */ a(xt, { className: "grid w-full grid-cols-2", children: [
@@ -6467,7 +6467,7 @@ function Hu() {
6467
6467
  (H) => H.actions
6468
6468
  ), { getSelectedSheet: L, setIsDashboardEditing: F, setShowDashboardJSON: O } = re((H) => H.actions), j = L(), { setInitialDashboard: X, clearSelectedDashboard: G } = qt(
6469
6469
  (H) => H.actions
6470
- ), { resources: ne } = co(Lt.DASHBOARD), { currentUser: me } = At(), ee = uo(me), Z = N || T, W = Z ? {
6470
+ ), { resources: ne } = co(zt.DASHBOARD), { currentUser: me } = Et(), ee = uo(me), Z = N || T, W = Z ? {
6471
6471
  id: Z.id,
6472
6472
  title: (u == null ? void 0 : u.title) || Z.title || "Dashboard"
6473
6473
  } : null;
@@ -6525,7 +6525,7 @@ function Hu() {
6525
6525
  D(j.id, Fe), R(Fe.id);
6526
6526
  }, ye = () => {
6527
6527
  F(!0);
6528
- }, [q, K] = V(!1), Se = mo(Lt.DASHBOARD);
6528
+ }, [q, K] = V(!1), Se = mo(zt.DASHBOARD);
6529
6529
  async function Ee() {
6530
6530
  const H = pn(
6531
6531
  u
@@ -6727,7 +6727,7 @@ function Hu() {
6727
6727
  ur,
6728
6728
  {
6729
6729
  resource: W,
6730
- resourceType: Lt.DASHBOARD,
6730
+ resourceType: zt.DASHBOARD,
6731
6731
  onClose: () => y(!1)
6732
6732
  }
6733
6733
  ),
@@ -6780,12 +6780,12 @@ function Qu({
6780
6780
  d && /* @__PURE__ */ e("div", { className: "mr-2", children: d }),
6781
6781
  /* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: y() })
6782
6782
  ] }),
6783
- /* @__PURE__ */ e(Et, { className: "size-4 opacity-50" })
6783
+ /* @__PURE__ */ e(It, { className: "size-4 opacity-50" })
6784
6784
  ]
6785
6785
  }
6786
6786
  ) }),
6787
6787
  /* @__PURE__ */ e(
6788
- Mt,
6788
+ At,
6789
6789
  {
6790
6790
  className: "w-full p-0",
6791
6791
  style: { minWidth: x },
@@ -6927,7 +6927,7 @@ function Zu({ column: t }) {
6927
6927
  (p) => p.selectedDatabaseName
6928
6928
  ), c = I(
6929
6929
  (p) => p.selectedDatamodelId
6930
- ), o = I((p) => p.sqlGen), { modelItems: d, connectionType: u } = It(), m = I((p) => p.actions.setSqlGen), h = I((p) => p.actions.setCardSql), f = I((p) => p.actions.setRunSql);
6930
+ ), o = I((p) => p.sqlGen), { modelItems: d, connectionType: u } = Ot(), m = I((p) => p.actions.setSqlGen), h = I((p) => p.actions.setCardSql), f = I((p) => p.actions.setRunSql);
6931
6931
  function x(p, y) {
6932
6932
  var E;
6933
6933
  const g = bl(p, o, y), C = (E = d == null ? void 0 : d.find(
@@ -7160,7 +7160,7 @@ function am() {
7160
7160
  setFilterColumns: v,
7161
7161
  setOrderByColumns: p,
7162
7162
  setPivotByColumns: y
7163
- } = ie(), { columns: g } = Sl(), { formattedTableName: C } = It(), M = Ja(
7163
+ } = ie(), { columns: g } = Sl(), { formattedTableName: C } = Ot(), M = Ja(
7164
7164
  Wt(go, {
7165
7165
  activationConstraint: {
7166
7166
  distance: 1
@@ -7175,7 +7175,7 @@ function am() {
7175
7175
  (me) => me.column_name === R.id
7176
7176
  );
7177
7177
  if (!j) return;
7178
- const X = Xt(j.data_type), G = Rt(j.data_type), ne = Ft(j.data_type);
7178
+ const X = Xt(j.data_type), G = Ft(j.data_type), ne = Pt(j.data_type);
7179
7179
  if (G || ne) {
7180
7180
  if (n.some(
7181
7181
  (ee) => ee.id === O
@@ -7268,8 +7268,8 @@ function am() {
7268
7268
  O.splice(j, 0, X), x(O);
7269
7269
  }
7270
7270
  function T(D) {
7271
- const R = Rt(D.data_type);
7272
- Ft(D.data_type);
7271
+ const R = Ft(D.data_type);
7272
+ Pt(D.data_type);
7273
7273
  const L = [...l], F = t !== null ? t : l.length;
7274
7274
  let O;
7275
7275
  R ? O = {
@@ -7291,8 +7291,8 @@ function am() {
7291
7291
  }, L.splice(F, 0, O), y(L);
7292
7292
  }
7293
7293
  function b(D) {
7294
- const R = Rt(D.data_type);
7295
- Ft(D.data_type);
7294
+ const R = Ft(D.data_type);
7295
+ Pt(D.data_type);
7296
7296
  const L = [...n], F = t !== null ? t : n.length;
7297
7297
  let O;
7298
7298
  R ? O = {
@@ -7337,7 +7337,7 @@ function am() {
7337
7337
  (de) => de.column_name === R.id
7338
7338
  );
7339
7339
  if (!W) return;
7340
- const ce = Xt(W.data_type), $ = Rt(W.data_type), Y = Ft(W.data_type);
7340
+ const ce = Xt(W.data_type), $ = Ft(W.data_type), Y = Pt(W.data_type);
7341
7341
  ($ || Y) && (L.id === oa || ((O = L.data.current) == null ? void 0 : O.type) === As) && b(W), ($ || Y) && (L.id === da || ((j = L.data.current) == null ? void 0 : j.type) === Es) ? T(W) : (ce || $) && (L.id === ca || ((X = L.data.current) == null ? void 0 : X.type) === gn) ? (ce && N(W), $ && N(W, "COUNT")) : w(W) && (L.id === xn || ((G = L.data.current) == null ? void 0 : G.type) === vn) && P(W);
7342
7342
  }
7343
7343
  if (L && ((ne = L.data.current) == null ? void 0 : ne.type) === As && n.some((W) => W.id === R.id)) {
@@ -7475,14 +7475,14 @@ function nm({
7475
7475
  re(
7476
7476
  (O) => O.dashboard.aiScopeTables
7477
7477
  );
7478
- const { addToAIScope: x, removeFromAIScope: v } = Tt(), {
7478
+ const { addToAIScope: x, removeFromAIScope: v } = Mt(), {
7479
7479
  addColumnToMetricColumns: p,
7480
7480
  addColumnToGroupBy: y,
7481
7481
  setCardSql: g,
7482
7482
  setRunSql: C,
7483
7483
  setSqlGen: M,
7484
7484
  setIsShowingVisual: E
7485
- } = ie(), { connectionType: S, modelItems: w, selectedDatamodelName: N } = It();
7485
+ } = ie(), { connectionType: S, modelItems: w, selectedDatamodelName: N } = Ot();
7486
7486
  function T(O) {
7487
7487
  var j;
7488
7488
  if (u) {
@@ -7501,7 +7501,7 @@ function nm({
7501
7501
  ne && (g(ne), C(!0));
7502
7502
  }
7503
7503
  if (!u) {
7504
- if (Rt(O.data_type))
7504
+ if (Ft(O.data_type))
7505
7505
  if (m && m.length > 0) {
7506
7506
  const X = {
7507
7507
  ...O,
@@ -7523,7 +7523,7 @@ function nm({
7523
7523
  };
7524
7524
  p(X);
7525
7525
  }
7526
- if (Ft(O.data_type)) {
7526
+ if (Pt(O.data_type)) {
7527
7527
  const X = {
7528
7528
  ...O,
7529
7529
  role: "groupby",
@@ -7749,7 +7749,7 @@ function ci({
7749
7749
  handleTableChange: Y,
7750
7750
  tableName: de,
7751
7751
  schemaName: ye
7752
- } = It(), { data: q, refetch: K } = Ge(i);
7752
+ } = Ot(), { data: q, refetch: K } = Ge(i);
7753
7753
  function Se() {
7754
7754
  return t ? t(ye, de, E) : /* @__PURE__ */ e(
7755
7755
  nm,
@@ -7874,7 +7874,7 @@ function ci({
7874
7874
  size: "sm",
7875
7875
  variant: "ghost",
7876
7876
  className: "h-6 w-6 p-0",
7877
- children: s ? /* @__PURE__ */ e(Et, { className: "h-4 w-4" }) : /* @__PURE__ */ e(zs, { className: "h-4 w-4" })
7877
+ children: s ? /* @__PURE__ */ e(It, { className: "h-4 w-4" }) : /* @__PURE__ */ e(zs, { className: "h-4 w-4" })
7878
7878
  }
7879
7879
  )
7880
7880
  ] }),
@@ -7983,7 +7983,7 @@ function di({
7983
7983
  /* @__PURE__ */ e(zs, { className: "mr-1.5 h-3.5 w-3.5" }),
7984
7984
  "Hide Details"
7985
7985
  ] }) : /* @__PURE__ */ a(Q, { children: [
7986
- /* @__PURE__ */ e(Et, { className: "mr-1.5 h-3.5 w-3.5" }),
7986
+ /* @__PURE__ */ e(It, { className: "mr-1.5 h-3.5 w-3.5" }),
7987
7987
  "Show Details"
7988
7988
  ] })
7989
7989
  }
@@ -8268,7 +8268,7 @@ function fr({
8268
8268
  function cm() {
8269
8269
  const t = $t(), [n, s] = V(!1), r = re(
8270
8270
  (u) => u.actions.setIsDashboardPanelOpen
8271
- ), { setIsVisualEditing: i } = Tt(), { getUpdatedFrame: l } = hr(), c = pl(), o = bo();
8271
+ ), { setIsVisualEditing: i } = Mt(), { getUpdatedFrame: l } = hr(), c = pl(), o = bo();
8272
8272
  return /* @__PURE__ */ a(_, { onClick: () => {
8273
8273
  const u = l();
8274
8274
  if (!(c != null && c.id)) {
@@ -8776,7 +8776,7 @@ function pi({
8776
8776
  ...n
8777
8777
  }) {
8778
8778
  var T;
8779
- const s = I((b) => b.card), r = Un(s), i = ((T = s.customCardPreferences) == null ? void 0 : T.showCardHeader) ?? !0, l = I((b) => b.frame), c = re((b) => b.dashboard.filters), o = I((b) => b.actions.setRunSql), { updateFilter: d } = Tt(), u = c == null ? void 0 : c.find((b) => b.id === l.filterId), { data: m, isLoading: h, isFetching: f, errorMessage: x, pagination: v } = Ge(s), { setCard: p, updateCardInFrame: y } = ie(), { data: g } = qn(s), C = ze(() => {
8779
+ const s = I((b) => b.card), r = Un(s), i = ((T = s.customCardPreferences) == null ? void 0 : T.showCardHeader) ?? !0, l = I((b) => b.frame), c = re((b) => b.dashboard.filters), o = I((b) => b.actions.setRunSql), { updateFilter: d } = Mt(), u = c == null ? void 0 : c.find((b) => b.id === l.filterId), { data: m, isLoading: h, isFetching: f, errorMessage: x, pagination: v } = Ge(s), { setCard: p, updateCardInFrame: y } = ie(), { data: g } = qn(s), C = ze(() => {
8780
8780
  var b;
8781
8781
  return s.type !== "pivotTable" || !((b = m == null ? void 0 : m.records) != null && b.length) ? null : {
8782
8782
  records: m.records,
@@ -8985,7 +8985,7 @@ const Xs = ({
8985
8985
  }
8986
8986
  ), pm = () => /* @__PURE__ */ a(ht, { children: [
8987
8987
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(pt, { children: "Customize Card" }) }),
8988
- /* @__PURE__ */ a(zt, { children: [
8988
+ /* @__PURE__ */ a(Tt, { children: [
8989
8989
  "See the configuration options and documentation",
8990
8990
  /* @__PURE__ */ e(
8991
8991
  "a",
@@ -10428,7 +10428,7 @@ function Tm({ idx: t }) {
10428
10428
  }
10429
10429
  return /* @__PURE__ */ a(Nt, { children: [
10430
10430
  /* @__PURE__ */ e(bt, { children: /* @__PURE__ */ e(Hl, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
10431
- /* @__PURE__ */ e(Mt, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ a("div", { className: "flex gap-1", children: [
10431
+ /* @__PURE__ */ e(At, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ a("div", { className: "flex gap-1", children: [
10432
10432
  /* @__PURE__ */ e(
10433
10433
  "button",
10434
10434
  {
@@ -10649,7 +10649,7 @@ function wi({
10649
10649
  );
10650
10650
  }
10651
10651
  function xr() {
10652
- const t = I((x) => x.selectedConnectionId), n = I((x) => x.selectedDatamodelId), s = I((x) => x.selectedDatabaseName), r = I((x) => x.selectedSchemaName), i = I((x) => x.selectedTableName), l = re((x) => x.dashboard.filters) || [], c = re((x) => x.actions.addFilter), o = re((x) => x.actions.removeFilter), { removeFilterValues: d } = Tt(), { modelItems: u, tableName: m, connectionType: h } = It();
10652
+ const t = I((x) => x.selectedConnectionId), n = I((x) => x.selectedDatamodelId), s = I((x) => x.selectedDatabaseName), r = I((x) => x.selectedSchemaName), i = I((x) => x.selectedTableName), l = re((x) => x.dashboard.filters) || [], c = re((x) => x.actions.addFilter), o = re((x) => x.actions.removeFilter), { removeFilterValues: d } = Mt(), { modelItems: u, tableName: m, connectionType: h } = Ot();
10653
10653
  function f(x, v = "dashboard", p) {
10654
10654
  var T;
10655
10655
  const y = St(x.column_name), g = St(s || ""), C = St(r || ""), M = St(m);
@@ -10714,7 +10714,7 @@ function xr() {
10714
10714
  function Ua() {
10715
10715
  const t = re(
10716
10716
  (o) => o.dashboard.filters
10717
- ), n = I((o) => o.frame), { setFrame: s } = ie(), { columns: r } = It(), { assignFilter: i } = xr();
10717
+ ), n = I((o) => o.frame), { setFrame: s } = ie(), { columns: r } = Ot(), { assignFilter: i } = xr();
10718
10718
  function l(o) {
10719
10719
  const d = i(o, "frame");
10720
10720
  s({ ...n, filterId: d });
@@ -10747,7 +10747,7 @@ function Am({
10747
10747
  ]
10748
10748
  }
10749
10749
  ) }),
10750
- /* @__PURE__ */ e(Mt, { className: "w-[200px] p-0", children: /* @__PURE__ */ a(cs, { children: [
10750
+ /* @__PURE__ */ e(At, { className: "w-[200px] p-0", children: /* @__PURE__ */ a(cs, { children: [
10751
10751
  /* @__PURE__ */ e(ds, { placeholder: "Search column", className: "h-9" }),
10752
10752
  /* @__PURE__ */ a(us, { children: [
10753
10753
  /* @__PURE__ */ e(ms, { children: "No framework found." }),
@@ -12229,7 +12229,7 @@ function Di() {
12229
12229
  style: { backgroundColor: l[k] }
12230
12230
  }
12231
12231
  ) }),
12232
- /* @__PURE__ */ e(Mt, { align: "start", className: "w-auto p-3", children: /* @__PURE__ */ a("div", { className: "space-y-2.5", children: [
12232
+ /* @__PURE__ */ e(At, { align: "start", className: "w-auto p-3", children: /* @__PURE__ */ a("div", { className: "space-y-2.5", children: [
12233
12233
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
12234
12234
  /* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground", children: "Theme Colors" }),
12235
12235
  /* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: f.slice(0, 10).map((F, O) => /* @__PURE__ */ a(
@@ -12327,7 +12327,7 @@ function Di() {
12327
12327
  ] }) })
12328
12328
  ] });
12329
12329
  }
12330
- function Pt({
12330
+ function Lt({
12331
12331
  value: t,
12332
12332
  onSave: n,
12333
12333
  placeholder: s = "",
@@ -12692,7 +12692,7 @@ function Kr({ axis: t, label: n, type: s, config: r, onChange: i }) {
12692
12692
  )
12693
12693
  ] }),
12694
12694
  ((f = r == null ? void 0 : r.name) == null ? void 0 : f.enabled) && /* @__PURE__ */ e(
12695
- Pt,
12695
+ Lt,
12696
12696
  {
12697
12697
  placeholder: `${n} title`,
12698
12698
  value: ((x = r == null ? void 0 : r.name) == null ? void 0 : x.text) || "",
@@ -12762,7 +12762,7 @@ function Kr({ axis: t, label: n, type: s, config: r, onChange: i }) {
12762
12762
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
12763
12763
  /* @__PURE__ */ e(B, { className: "w-8 text-xs text-muted-foreground", children: "Min" }),
12764
12764
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
12765
- Pt,
12765
+ Lt,
12766
12766
  {
12767
12767
  type: "number",
12768
12768
  placeholder: "auto",
@@ -12775,7 +12775,7 @@ function Kr({ axis: t, label: n, type: s, config: r, onChange: i }) {
12775
12775
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
12776
12776
  /* @__PURE__ */ e(B, { className: "w-8 text-xs text-muted-foreground", children: "Max" }),
12777
12777
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
12778
- Pt,
12778
+ Lt,
12779
12779
  {
12780
12780
  type: "number",
12781
12781
  placeholder: "auto",
@@ -12788,7 +12788,7 @@ function Kr({ axis: t, label: n, type: s, config: r, onChange: i }) {
12788
12788
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
12789
12789
  /* @__PURE__ */ e(B, { className: "w-8 text-xs text-muted-foreground", children: "Step" }),
12790
12790
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
12791
- Pt,
12791
+ Lt,
12792
12792
  {
12793
12793
  type: "number",
12794
12794
  placeholder: "auto",
@@ -13098,7 +13098,7 @@ function Ai() {
13098
13098
  ["number", "currency", "percent"].includes(n.format) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
13099
13099
  /* @__PURE__ */ e(B, { className: "text-xs text-muted-foreground w-20", children: "Decimals" }),
13100
13100
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
13101
- Pt,
13101
+ Lt,
13102
13102
  {
13103
13103
  type: "number",
13104
13104
  placeholder: "0",
@@ -13152,7 +13152,7 @@ function Ai() {
13152
13152
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
13153
13153
  /* @__PURE__ */ e(B, { className: "text-xs text-muted-foreground w-20", children: "Size" }),
13154
13154
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
13155
- Pt,
13155
+ Lt,
13156
13156
  {
13157
13157
  type: "number",
13158
13158
  placeholder: "12",
@@ -13201,7 +13201,7 @@ function Ai() {
13201
13201
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
13202
13202
  /* @__PURE__ */ e(B, { className: "text-xs text-muted-foreground w-20", children: "Rotation" }),
13203
13203
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
13204
- Pt,
13204
+ Lt,
13205
13205
  {
13206
13206
  type: "number",
13207
13207
  placeholder: "0",
@@ -13412,7 +13412,7 @@ const nh = [
13412
13412
  function rh({ column: t }) {
13413
13413
  const { updateMetricColumnOld: n } = ie();
13414
13414
  let s = nh;
13415
- Rt(t.type) && (s = s.filter(
13415
+ Ft(t.type) && (s = s.filter(
13416
13416
  (i) => ["COUNT", "DISTINCT"].includes(i.value)
13417
13417
  )), Xt(t.type) && (s = s.filter(
13418
13418
  (i) => !["DISTINCT"].includes(i.value)
@@ -13568,9 +13568,9 @@ function ch({
13568
13568
  opacity: v ? 0.5 : void 0,
13569
13569
  transform: ta.Translate.toString(f),
13570
13570
  transition: x
13571
- } : void 0, y = Rt(t.type);
13571
+ } : void 0, y = Ft(t.type);
13572
13572
  function g(w) {
13573
- const N = Xt(w.data_type), T = Rt(w.data_type), b = Ft(w.data_type), P = N ? "number" : T ? "string" : b ? "date" : "string";
13573
+ const N = Xt(w.data_type), T = Ft(w.data_type), b = Pt(w.data_type), P = N ? "number" : T ? "string" : b ? "date" : "string";
13574
13574
  if (r === oa) {
13575
13575
  if (T) {
13576
13576
  const A = {
@@ -13644,7 +13644,7 @@ function ch({
13644
13644
  );
13645
13645
  }
13646
13646
  function M() {
13647
- const w = Ft(t.type);
13647
+ const w = Pt(t.type);
13648
13648
  if (r === ca)
13649
13649
  return /* @__PURE__ */ e(rh, { column: t });
13650
13650
  if ((r === oa || r === da) && w)
@@ -14063,7 +14063,7 @@ function hh({
14063
14063
  (w) => w.name === t.name
14064
14064
  );
14065
14065
  }
14066
- ), { selectedConnectionId: l, selectedDatabaseName: c, selectedTableName: o } = It(), d = ze(() => {
14066
+ ), { selectedConnectionId: l, selectedDatabaseName: c, selectedTableName: o } = Ot(), d = ze(() => {
14067
14067
  var M;
14068
14068
  return (M = r == null ? void 0 : r.find(
14069
14069
  (E) => E.filterColumnName === t.name
@@ -14204,7 +14204,7 @@ function fh({
14204
14204
  }
14205
14205
  ),
14206
14206
  /* @__PURE__ */ a(
14207
- Mt,
14207
+ At,
14208
14208
  {
14209
14209
  style: {
14210
14210
  // borderRadius: currentStyle?.chart?.options?.borderRadius,
@@ -14264,7 +14264,7 @@ function gh({
14264
14264
  column: t,
14265
14265
  sortableType: n
14266
14266
  }) {
14267
- const [s, r] = V(!1), { selectedConnectionId: i, selectedDatabaseName: l, selectedTableName: c } = It(), o = {
14267
+ const [s, r] = V(!1), { selectedConnectionId: i, selectedDatabaseName: l, selectedTableName: c } = Ot(), o = {
14268
14268
  column: t.name,
14269
14269
  sql: t.sql,
14270
14270
  // this is the sql query to get the data
@@ -14330,7 +14330,7 @@ function xh({
14330
14330
  return /* @__PURE__ */ e("div", { className: "flex h-8 grow items-center space-x-2 rounded-md border border-dashed border-muted-foreground/80 bg-background px-2 py-1 text-sm text-muted-foreground", children: /* @__PURE__ */ e("span", { className: "invisible text-muted-foreground/70 group-hover:visible", children: "Drag here" }) });
14331
14331
  }
14332
14332
  function f(y) {
14333
- const g = Ft(y.type);
14333
+ const g = Pt(y.type);
14334
14334
  return y.id === oi.id ? /* @__PURE__ */ e(
14335
14335
  yr,
14336
14336
  {
@@ -14547,7 +14547,7 @@ function Ch(t) {
14547
14547
  errorMessage: N,
14548
14548
  refetch: T,
14549
14549
  data: b
14550
- } = Ge(g), { setTriggerAIRun: P, setCurrentAssitantScope: A, setCardConfig: z } = ie(), { selectedDatamodelName: k, connectionType: D, selectedDatamodelId: R } = It(), {
14550
+ } = Ge(g), { setTriggerAIRun: P, setCurrentAssitantScope: A, setCardConfig: z } = ie(), { selectedDatamodelName: k, connectionType: D, selectedDatamodelId: R } = Ot(), {
14551
14551
  messages: L,
14552
14552
  setMessages: F,
14553
14553
  regenerate: O,
@@ -15013,7 +15013,7 @@ function Jr() {
15013
15013
  className: "rounded-full shadow-lg",
15014
15014
  "aria-label": "Scroll to bottom",
15015
15015
  children: [
15016
- /* @__PURE__ */ e(Et, { className: "h-4 w-4" }),
15016
+ /* @__PURE__ */ e(It, { className: "h-4 w-4" }),
15017
15017
  $ && Y > 0 && /* @__PURE__ */ e("span", { className: "ml-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-xs text-primary-foreground", children: Y > 9 ? "9+" : Y })
15018
15018
  ]
15019
15019
  }
@@ -15445,7 +15445,7 @@ function kh({ field: t }) {
15445
15445
  /* @__PURE__ */ e(qe, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ e(
15446
15446
  "span",
15447
15447
  {
15448
- className: `block text-sm text-foreground/80 hover:text-foreground dark:text-muted-foreground ${o ? "whitespace-normal break-words" : "truncate"}`,
15448
+ className: `block text-xs text-foreground/80 hover:text-foreground dark:text-muted-foreground ${o ? "whitespace-normal break-words" : "truncate"}`,
15449
15449
  children: t.label || t.name
15450
15450
  }
15451
15451
  ) }) }),
@@ -16056,7 +16056,7 @@ function Ah({
16056
16056
  variant: "ghost",
16057
16057
  size: "sm",
16058
16058
  onClick: () => p(A.id),
16059
- children: D ? /* @__PURE__ */ e(zs, { className: "h-4 w-4" }) : /* @__PURE__ */ e(Et, { className: "h-4 w-4" })
16059
+ children: D ? /* @__PURE__ */ e(zs, { className: "h-4 w-4" }) : /* @__PURE__ */ e(It, { className: "h-4 w-4" })
16060
16060
  }
16061
16061
  ),
16062
16062
  /* @__PURE__ */ e(
@@ -16520,7 +16520,7 @@ function Hr({
16520
16520
  /* @__PURE__ */ a(mt, { className: "max-w-4xl", children: [
16521
16521
  /* @__PURE__ */ a(ht, { children: [
16522
16522
  /* @__PURE__ */ e(pt, { children: "Join Configuration" }),
16523
- /* @__PURE__ */ e(zt, { children: "Configure the join between the two entities to combine the fields." })
16523
+ /* @__PURE__ */ e(Tt, { children: "Configure the join between the two entities to combine the fields." })
16524
16524
  ] }),
16525
16525
  /* @__PURE__ */ e(
16526
16526
  Ah,
@@ -16822,13 +16822,13 @@ function Oh({
16822
16822
  return c.length === 0 ? /* @__PURE__ */ e(ut, { open: t, onOpenChange: n, children: /* @__PURE__ */ a(mt, { className: "max-w-md", children: [
16823
16823
  /* @__PURE__ */ a(ht, { children: [
16824
16824
  /* @__PURE__ */ e(pt, { children: "No Data Available" }),
16825
- /* @__PURE__ */ e(zt, { children: "No entities are currently available in the AI context. Please add some data sources to the dashboard first." })
16825
+ /* @__PURE__ */ e(Tt, { children: "No entities are currently available in the AI context. Please add some data sources to the dashboard first." })
16826
16826
  ] }),
16827
16827
  /* @__PURE__ */ e(ea, { children: /* @__PURE__ */ e(_, { onClick: () => n(!1), children: "Close" }) })
16828
16828
  ] }) }) : /* @__PURE__ */ e(ut, { open: t, onOpenChange: n, children: /* @__PURE__ */ a(mt, { className: "flex max-w-2xl flex-col", children: [
16829
16829
  /* @__PURE__ */ a(ht, { children: [
16830
16830
  /* @__PURE__ */ e(pt, { children: "Select Data to Analyze" }),
16831
- /* @__PURE__ */ e(zt, { children: "Choose entities from the dashboard's context" })
16831
+ /* @__PURE__ */ e(Tt, { children: "Choose entities from the dashboard's context" })
16832
16832
  ] }),
16833
16833
  /* @__PURE__ */ a("div", { className: "flex-1 space-y-4", children: [
16834
16834
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
@@ -16976,7 +16976,7 @@ function Ph({
16976
16976
  onToggleVisibility: n
16977
16977
  }) {
16978
16978
  const [s, r] = V(!1), [i, l] = V(!1), [c, o] = V(!0), d = I((f) => f.card.dataSource);
16979
- At();
16979
+ Et();
16980
16980
  const { updateDataSource: u } = ie(), m = {
16981
16981
  connectionId: "",
16982
16982
  connectionType: "",
@@ -17022,7 +17022,7 @@ function Ph({
17022
17022
  size: "sm",
17023
17023
  onClick: () => o(!c),
17024
17024
  className: "h-6 w-6 p-0",
17025
- children: c ? /* @__PURE__ */ e(Et, { className: "h-4 w-4" }) : /* @__PURE__ */ e($l, { className: "h-4 w-4" })
17025
+ children: c ? /* @__PURE__ */ e(It, { className: "h-4 w-4" }) : /* @__PURE__ */ e($l, { className: "h-4 w-4" })
17026
17026
  }
17027
17027
  )
17028
17028
  ]
@@ -17220,7 +17220,7 @@ function _h({
17220
17220
  const S = Ws.find((N) => N.id === t);
17221
17221
  return (S == null ? void 0 : S.label) || "Select chart type";
17222
17222
  };
17223
- return /* @__PURE__ */ e("div", { className: "mb-6", children: /* @__PURE__ */ a(Nt, { open: s, onOpenChange: r, children: [
17223
+ return /* @__PURE__ */ e("div", { className: "", children: /* @__PURE__ */ a(Nt, { open: s, onOpenChange: r, children: [
17224
17224
  /* @__PURE__ */ e(bt, { asChild: !0, children: /* @__PURE__ */ a(
17225
17225
  _,
17226
17226
  {
@@ -17252,11 +17252,11 @@ function _h({
17252
17252
  })(),
17253
17253
  /* @__PURE__ */ e("span", { children: C() })
17254
17254
  ] }),
17255
- /* @__PURE__ */ e(Et, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
17255
+ /* @__PURE__ */ e(It, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
17256
17256
  ]
17257
17257
  }
17258
17258
  ) }),
17259
- /* @__PURE__ */ e(Mt, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ a(cs, { children: [
17259
+ /* @__PURE__ */ e(At, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ a(cs, { children: [
17260
17260
  /* @__PURE__ */ e(ds, { placeholder: "Search chart types..." }),
17261
17261
  /* @__PURE__ */ a(us, { className: "mb-2 max-h-[300px]", children: [
17262
17262
  /* @__PURE__ */ e(ms, { children: "No chart type found." }),
@@ -18096,7 +18096,7 @@ function Wh({
18096
18096
  ), Ke = () => H ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
18097
18097
  /* @__PURE__ */ e(B, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
18098
18098
  /* @__PURE__ */ e(
18099
- Pt,
18099
+ Lt,
18100
18100
  {
18101
18101
  value: t.label ?? "",
18102
18102
  onSave: Ee,
@@ -18232,7 +18232,7 @@ function Wh({
18232
18232
  return ra ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
18233
18233
  /* @__PURE__ */ e(B, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
18234
18234
  /* @__PURE__ */ e(
18235
- Pt,
18235
+ Lt,
18236
18236
  {
18237
18237
  value: ((te = x.config) == null ? void 0 : te.targetValue) !== void 0 && ((Ve = x.config) == null ? void 0 : Ve.targetValue) !== null ? String(x.config.targetValue) : "",
18238
18238
  onSave: (je) => {
@@ -18392,7 +18392,7 @@ function Wh({
18392
18392
  Us,
18393
18393
  {
18394
18394
  className: U(
18395
- "w-[140px] flex-1 text-sm",
18395
+ "w-[140px] flex-1 text-xs",
18396
18396
  ji && "w-[120px]"
18397
18397
  ),
18398
18398
  children: zc(t)
@@ -18420,7 +18420,7 @@ function Wh({
18420
18420
  te.stopPropagation(), A(!P);
18421
18421
  },
18422
18422
  children: /* @__PURE__ */ e(
18423
- Et,
18423
+ It,
18424
18424
  {
18425
18425
  className: `h-3 w-3 transition-transform ${P ? "rotate-180" : ""}`
18426
18426
  }
@@ -18708,7 +18708,7 @@ function an({
18708
18708
  "aria-label": `Change color for ${s}`
18709
18709
  }
18710
18710
  ) }),
18711
- /* @__PURE__ */ e(Mt, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
18711
+ /* @__PURE__ */ e(At, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
18712
18712
  /* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children: Jh.map((d) => /* @__PURE__ */ e(
18713
18713
  "button",
18714
18714
  {
@@ -19260,8 +19260,7 @@ function Xh({
19260
19260
  "data-content": "Chart Configuration Panel",
19261
19261
  className: "flex w-[350px] flex-col",
19262
19262
  children: [
19263
- /* @__PURE__ */ a("div", { className: "space-y-4 px-6 pt-4", children: [
19264
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e("h2", { className: "font-semibold", children: "Chart Configuration" }) }),
19263
+ /* @__PURE__ */ a("div", { className: "space-y-2 px-6 pt-4", children: [
19265
19264
  /* @__PURE__ */ e(
19266
19265
  _h,
19267
19266
  {
@@ -19610,7 +19609,7 @@ function np({
19610
19609
  ]
19611
19610
  }
19612
19611
  ) }),
19613
- /* @__PURE__ */ e(Mt, { className: "z-50 w-80 p-0", align: "start", children: /* @__PURE__ */ a(cs, { children: [
19612
+ /* @__PURE__ */ e(At, { className: "z-50 w-80 p-0", align: "start", children: /* @__PURE__ */ a(cs, { children: [
19614
19613
  /* @__PURE__ */ e(ds, { placeholder: "Search fields...", className: "h-9" }),
19615
19614
  /* @__PURE__ */ e(ms, { children: "No fields found." }),
19616
19615
  /* @__PURE__ */ e(us, { className: "max-h-80", children: Object.entries(o).map(([d, u]) => /* @__PURE__ */ e(
@@ -19760,11 +19759,11 @@ function rp({
19760
19759
  )
19761
19760
  ] }, m);
19762
19761
  }) : /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: r }) }),
19763
- /* @__PURE__ */ e(Et, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
19762
+ /* @__PURE__ */ e(It, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
19764
19763
  ]
19765
19764
  }
19766
19765
  ) }),
19767
- /* @__PURE__ */ e(Mt, { className: "z-50 w-fit overflow-auto p-0", align: "start", children: /* @__PURE__ */ a(cs, { children: [
19766
+ /* @__PURE__ */ e(At, { className: "z-50 w-fit overflow-auto p-0", align: "start", children: /* @__PURE__ */ a(cs, { children: [
19768
19767
  /* @__PURE__ */ e(ds, { placeholder: "Search..." }),
19769
19768
  /* @__PURE__ */ a(us, { children: [
19770
19769
  /* @__PURE__ */ e(ms, { children: "No results found." }),
@@ -20563,7 +20562,7 @@ function xp({
20563
20562
  children: [
20564
20563
  /* @__PURE__ */ a(ht, { children: [
20565
20564
  /* @__PURE__ */ e(pt, { children: "Card Filters" }),
20566
- /* @__PURE__ */ e(zt, { children: "Add filters to the card to limit the data that is displayed." })
20565
+ /* @__PURE__ */ e(Tt, { children: "Add filters to the card to limit the data that is displayed." })
20567
20566
  ] }),
20568
20567
  /* @__PURE__ */ e(
20569
20568
  gp,
@@ -20811,7 +20810,7 @@ function Np({
20811
20810
  onDebugToggle: n,
20812
20811
  onAccept: s
20813
20812
  }) {
20814
- const { currentUser: r } = At();
20813
+ const { currentUser: r } = Et();
20815
20814
  r == null || r.role;
20816
20815
  const [i, l] = V(!1), c = I((g) => g.isDevMode), o = I((g) => g.card), d = I((g) => g.card.dataSource);
20817
20816
  Un(o);
@@ -21003,7 +21002,7 @@ function Sp({
21003
21002
  );
21004
21003
  }
21005
21004
  function kp() {
21006
- const { authToken: t, tokenProps: n } = We(), { currentUser: s } = At(), r = is({
21005
+ const { authToken: t, tokenProps: n } = We(), { currentUser: s } = Et(), r = is({
21007
21006
  mutationFn: async (i) => {
21008
21007
  if (!(t != null && t.accessToken))
21009
21008
  throw new Error("No authentication token available");
@@ -21085,7 +21084,7 @@ function Tp({
21085
21084
  return /* @__PURE__ */ e(ut, { open: t, onOpenChange: x, children: /* @__PURE__ */ a(mt, { className: "max-w-2xl", children: [
21086
21085
  /* @__PURE__ */ a(ht, { children: [
21087
21086
  /* @__PURE__ */ e(pt, { children: u ? "Feedback Sent Successfully" : "Report Query Generation Issue" }),
21088
- /* @__PURE__ */ e(zt, { children: u ? `Your feedback has been submitted with issue number: ${m == null ? void 0 : m.issueNumber}` : "Help us improve by reporting this query generation issue. Your feedback will be sent to our support team." })
21087
+ /* @__PURE__ */ e(Tt, { children: u ? `Your feedback has been submitted with issue number: ${m == null ? void 0 : m.issueNumber}` : "Help us improve by reporting this query generation issue. Your feedback will be sent to our support team." })
21089
21088
  ] }),
21090
21089
  !u && /* @__PURE__ */ a(Q, { children: [
21091
21090
  /* @__PURE__ */ a("div", { className: "space-y-4", children: [
@@ -21112,7 +21111,7 @@ function Tp({
21112
21111
  className: "flex w-full items-center justify-between p-2 hover:bg-muted",
21113
21112
  children: [
21114
21113
  /* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "View data to be sent" }),
21115
- l ? /* @__PURE__ */ e(Et, { className: "h-4 w-4" }) : /* @__PURE__ */ e($l, { className: "h-4 w-4" })
21114
+ l ? /* @__PURE__ */ e(It, { className: "h-4 w-4" }) : /* @__PURE__ */ e($l, { className: "h-4 w-4" })
21116
21115
  ]
21117
21116
  }
21118
21117
  ) }),
@@ -21186,7 +21185,7 @@ function Mp({
21186
21185
  // setActiveCard,
21187
21186
  }) {
21188
21187
  var $;
21189
- const x = I((Y) => Y.card), v = re((Y) => Y.filterValues), p = (v == null ? void 0 : v.length) || 0, { updateCardConfig: y, setCard: g, updateCardInFrame: C, setCardId: M } = ie(), { updateCardId: E } = Tt(), [S, w] = V(null), N = I((Y) => Y.showAIDialog), [T, b] = V(!1), [P, A] = V(!1), [z, k] = V(null), { isConsoleMode: D } = Os(), { config: R } = cr(or).tokenProps, L = (R == null ? void 0 : R.showInfoTab) !== !1, F = I(
21188
+ const x = I((Y) => Y.card), v = re((Y) => Y.filterValues), p = (v == null ? void 0 : v.length) || 0, { updateCardConfig: y, setCard: g, updateCardInFrame: C, setCardId: M } = ie(), { updateCardId: E } = Mt(), [S, w] = V(null), N = I((Y) => Y.showAIDialog), [T, b] = V(!1), [P, A] = V(!1), [z, k] = V(null), { isConsoleMode: D } = Os(), { config: R } = cr(or).tokenProps, L = (R == null ? void 0 : R.showInfoTab) !== !1, F = I(
21190
21189
  (Y) => {
21191
21190
  var de;
21192
21191
  return ((de = Y.card.customCardPreferences) == null ? void 0 : de.url) && Y.card.type === "custom";
@@ -21602,7 +21601,7 @@ function Ip() {
21602
21601
  );
21603
21602
  }
21604
21603
  function Op({ authToken: t, onSave: n, onClose: s }) {
21605
- const r = jt(null), i = I((C) => C.showAIDialog), l = I((C) => C.isDevMode), { setAuthToken: c } = Tt(), { setShowAIDialog: o, setOnSave: d, setOnClose: u } = ie(), {
21604
+ const r = jt(null), i = I((C) => C.showAIDialog), l = I((C) => C.isDevMode), { setAuthToken: c } = Mt(), { setShowAIDialog: o, setOnSave: d, setOnClose: u } = ie(), {
21606
21605
  handleDragOver: m,
21607
21606
  handleDragEnd: h,
21608
21607
  handleDragStart: f,
@@ -21712,12 +21711,12 @@ function Rp() {
21712
21711
  }
21713
21712
  function Fp({ column: t }) {
21714
21713
  return /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ a(Ue, { children: [
21715
- /* @__PURE__ */ e(qe, { className: "shrink-0", asChild: !0, children: Rt(t.data_type) ? /* @__PURE__ */ e(Kc, { className: "size-3 text-muted-foreground" }) : Xt(t.data_type) ? /* @__PURE__ */ e(Bt, { className: "size-3 text-muted-foreground" }) : Ft(t.data_type) ? /* @__PURE__ */ e(ft, { className: "size-3 text-muted-foreground" }) : Jc(t.data_type) ? /* @__PURE__ */ e(ma, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(hd, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(Hc, { className: "size-3 text-muted-foreground" }) }),
21714
+ /* @__PURE__ */ e(qe, { className: "shrink-0", asChild: !0, children: Ft(t.data_type) ? /* @__PURE__ */ e(Kc, { className: "size-3 text-muted-foreground" }) : Xt(t.data_type) ? /* @__PURE__ */ e(Bt, { className: "size-3 text-muted-foreground" }) : Pt(t.data_type) ? /* @__PURE__ */ e(ft, { className: "size-3 text-muted-foreground" }) : Jc(t.data_type) ? /* @__PURE__ */ e(ma, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(hd, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(Hc, { className: "size-3 text-muted-foreground" }) }),
21716
21715
  /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e("p", { className: "text-xs", children: t.data_type }) })
21717
21716
  ] }) });
21718
21717
  }
21719
21718
  function Pp() {
21720
- const t = I((l) => l.selectedDatabaseName), n = I((l) => l.selectedTableName), s = re((l) => l.dashboard.filters) || [], { columns: r } = It(), { assignFilter: i } = xr();
21719
+ const t = I((l) => l.selectedDatabaseName), n = I((l) => l.selectedTableName), s = re((l) => l.dashboard.filters) || [], { columns: r } = Ot(), { assignFilter: i } = xr();
21721
21720
  return /* @__PURE__ */ e(He, { className: "flex-1 basis-0 flex-col px-3", children: r == null ? void 0 : r.map((l) => {
21722
21721
  const c = s == null ? void 0 : s.find(
21723
21722
  (o) => o.column === St(l.column_name) && o.table === n && o.database === t