react-semaphor 0.0.460 → 0.0.462

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.
@@ -3958,7 +3958,7 @@ function Dv(e) {
3958
3958
  return (t == null ? void 0 : t.align) === "end" && (t == null ? void 0 : t.anchor) === "end" && (n = og()), (t == null ? void 0 : t.align) === "start" && (t == null ? void 0 : t.anchor) === "start" && (n = og()), $d(n);
3959
3959
  }
3960
3960
  function og() {
3961
- return se.getState().theme === "dark" ? "#000000" : "#FFFFFF";
3961
+ return ae.getState().theme === "dark" ? "#000000" : "#FFFFFF";
3962
3962
  }
3963
3963
  function $d(e) {
3964
3964
  let t = 0, n = 0, r = 0, o = 0;
@@ -4197,10 +4197,10 @@ function kE(e, t) {
4197
4197
  }), n;
4198
4198
  }
4199
4199
  function lO(e) {
4200
- const t = se.getState().dashboard.globalCacheConfig, { card: n, filter: r } = e;
4200
+ const t = ae.getState().dashboard.globalCacheConfig, { card: n, filter: r } = e;
4201
4201
  return t;
4202
4202
  }
4203
- const se = ix()(
4203
+ const ae = ix()(
4204
4204
  JM((e, t) => ({
4205
4205
  isSessionExpired: !1,
4206
4206
  currentBreakpoint: "lg",
@@ -4931,7 +4931,7 @@ const se = ix()(
4931
4931
  }
4932
4932
  }
4933
4933
  }))
4934
- ), fn = () => se((e) => e.actions);
4934
+ ), fn = () => ae((e) => e.actions);
4935
4935
  async function fz(e, t) {
4936
4936
  const n = t.slice(0, 16), r = new TextEncoder(), o = await window.crypto.subtle.importKey(
4937
4937
  "raw",
@@ -4995,7 +4995,7 @@ async function cO(e, t) {
4995
4995
  throw new Error(`Decryption failed: ${h}`);
4996
4996
  }
4997
4997
  }
4998
- function ae(...e) {
4998
+ function se(...e) {
4999
4999
  return R$(Ys(e));
5000
5000
  }
5001
5001
  const YEe = (e) => Object.keys(e).length === 0;
@@ -5106,7 +5106,7 @@ function QEe(e) {
5106
5106
  const fd = "focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0";
5107
5107
  async function ZEe() {
5108
5108
  var o, i;
5109
- const e = (i = (o = se.getState()) == null ? void 0 : o.authToken) == null ? void 0 : i.accessToken;
5109
+ const e = (i = (o = ae.getState()) == null ? void 0 : o.authToken) == null ? void 0 : i.accessToken;
5110
5110
  if (!e)
5111
5111
  return;
5112
5112
  const n = await fetch("https://semaphor.cloud/api/v1/invalidate-token", {
@@ -7440,7 +7440,7 @@ function Jz({
7440
7440
  });
7441
7441
  return n ? /* @__PURE__ */ y(mt, { children: e }) : /* @__PURE__ */ y(zz, { client: r, children: e });
7442
7442
  }
7443
- const Fa = Pn(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ y("div", { className: ae("semaphor-scope", t), ref: r, ...n, children: e })), eB = {
7443
+ const Fa = Pn(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ y("div", { className: se("semaphor-scope", t), ref: r, ...n, children: e })), eB = {
7444
7444
  id: "",
7445
7445
  authToken: void 0
7446
7446
  }, _O = Dt(eB), tB = ({
@@ -7456,7 +7456,7 @@ function Yr() {
7456
7456
  return e;
7457
7457
  }
7458
7458
  function nB() {
7459
- const { authToken: e, version: t } = Yr(), n = se((l) => l.selectedLensId);
7459
+ const { authToken: e, version: t } = Yr(), n = ae((l) => l.selectedLensId);
7460
7460
  function r() {
7461
7461
  if (!(e != null && e.accessToken)) return !1;
7462
7462
  }
@@ -7474,7 +7474,7 @@ function nB() {
7474
7474
  return { data: o, isLoading: i, isFetching: a, isError: s };
7475
7475
  }
7476
7476
  function rB() {
7477
- const { authToken: e } = Yr(), t = se((r) => r.authToken), { setAuthToken: n } = fn();
7477
+ const { authToken: e } = Yr(), t = ae((r) => r.authToken), { setAuthToken: n } = fn();
7478
7478
  return he(() => {
7479
7479
  e && (e == null ? void 0 : e.toString()) !== (t == null ? void 0 : t.toString()) && n(e);
7480
7480
  }, [e, t, n]), e;
@@ -7548,7 +7548,7 @@ function iB({
7548
7548
  }) {
7549
7549
  const { authToken: s } = Yr();
7550
7550
  rB();
7551
- const l = se((T) => T.selectedLensId), { data: c, isLoading: u, isFetching: d, isError: h } = nB(), [f, p] = be(o || []), { theme: g, setTheme: m } = vz(), b = se((T) => T.dashboard.globalStyle), {
7551
+ const l = ae((T) => T.selectedLensId), { data: c, isLoading: u, isFetching: d, isError: h } = nB(), [f, p] = be(o || []), { theme: g, setTheme: m } = vz(), b = ae((T) => T.dashboard.globalStyle), {
7552
7552
  setDashboard: v,
7553
7553
  setDashboardWithFilterValues: w,
7554
7554
  setSelectedSheetId: C,
@@ -7558,16 +7558,16 @@ function iB({
7558
7558
  setSelectedLensId: R,
7559
7559
  setInitStore: D
7560
7560
  } = fn();
7561
- se(
7561
+ ae(
7562
7562
  (T) => T.actions.setCustomCards
7563
7563
  );
7564
- const P = se(
7564
+ const P = ae(
7565
7565
  (T) => T.actions.setFilterValues
7566
- ), A = se((T) => T.filterValues), I = se(
7566
+ ), A = ae((T) => T.filterValues), I = ae(
7567
7567
  (T) => T.actions.setThemeStyle
7568
- ), $ = se(
7568
+ ), $ = ae(
7569
7569
  (T) => T.actions.setDashboardTheme
7570
- ), L = se((T) => T.actions.setOnEvent);
7570
+ ), L = ae((T) => T.actions.setOnEvent);
7571
7571
  he(() => {
7572
7572
  s && D();
7573
7573
  }, [s, D]), he(() => {
@@ -7650,7 +7650,7 @@ function Sa({
7650
7650
  return /* @__PURE__ */ y(
7651
7651
  "div",
7652
7652
  {
7653
- className: ae("animate-pulse rounded-md bg-muted", e),
7653
+ className: se("animate-pulse rounded-md bg-muted", e),
7654
7654
  ...t
7655
7655
  }
7656
7656
  );
@@ -7659,7 +7659,7 @@ const aB = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
7659
7659
  "div",
7660
7660
  {
7661
7661
  ref: n,
7662
- className: ae(
7662
+ className: se(
7663
7663
  "rounded-lg border bg-card text-card-foreground shadow-sm",
7664
7664
  e
7665
7665
  ),
@@ -7671,7 +7671,7 @@ const mx = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
7671
7671
  "div",
7672
7672
  {
7673
7673
  ref: n,
7674
- className: ae("flex flex-col space-y-1.5 p-6", e),
7674
+ className: se("flex flex-col space-y-1.5 p-6", e),
7675
7675
  ...t
7676
7676
  }
7677
7677
  ));
@@ -7680,7 +7680,7 @@ const Mf = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
7680
7680
  "h3",
7681
7681
  {
7682
7682
  ref: n,
7683
- className: ae(
7683
+ className: se(
7684
7684
  "text-2xl font-semibold leading-none tracking-tight",
7685
7685
  e
7686
7686
  ),
@@ -7692,18 +7692,18 @@ const RO = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
7692
7692
  "p",
7693
7693
  {
7694
7694
  ref: n,
7695
- className: ae("text-sm text-muted-foreground", e),
7695
+ className: se("text-sm text-muted-foreground", e),
7696
7696
  ...t
7697
7697
  }
7698
7698
  ));
7699
7699
  RO.displayName = "CardDescription";
7700
- const kO = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y("div", { ref: n, className: ae("px-6 pt-0", e), ...t }));
7700
+ const kO = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y("div", { ref: n, className: se("px-6 pt-0", e), ...t }));
7701
7701
  kO.displayName = "CardContent";
7702
7702
  const PO = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
7703
7703
  "div",
7704
7704
  {
7705
7705
  ref: n,
7706
- className: ae("flex items-center p-6 pt-0", e),
7706
+ className: se("flex items-center p-6 pt-0", e),
7707
7707
  ...t
7708
7708
  }
7709
7709
  ));
@@ -7727,7 +7727,7 @@ function sB({
7727
7727
  selectedSheetId: g,
7728
7728
  ...m
7729
7729
  }) {
7730
- const { placeholders: b } = Yr(), v = se((S) => S.themeStyle), w = se((S) => S.isSessionExpired), { isLoading: C, isError: _ } = iB({
7730
+ const { placeholders: b } = Yr(), v = ae((S) => S.themeStyle), w = ae((S) => S.isSessionExpired), { isLoading: C, isError: _ } = iB({
7731
7731
  customStyle: t,
7732
7732
  currentTheme: c,
7733
7733
  onSave: n,
@@ -7745,7 +7745,7 @@ function sB({
7745
7745
  ] }) })) : /* @__PURE__ */ y(
7746
7746
  "div",
7747
7747
  {
7748
- className: ae(
7748
+ className: se(
7749
7749
  "isolate flex h-full flex-col justify-between",
7750
7750
  v == null ? void 0 : v.dashboardPanel,
7751
7751
  e
@@ -8379,7 +8379,7 @@ const YO = IB, Sx = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
8379
8379
  qO,
8380
8380
  {
8381
8381
  ref: n,
8382
- className: ae(
8382
+ className: se(
8383
8383
  "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
8384
8384
  e
8385
8385
  ),
@@ -8391,7 +8391,7 @@ const Cx = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
8391
8391
  UO,
8392
8392
  {
8393
8393
  ref: n,
8394
- className: ae(
8394
+ className: se(
8395
8395
  "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
8396
8396
  e
8397
8397
  ),
@@ -8403,7 +8403,7 @@ const KO = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
8403
8403
  GO,
8404
8404
  {
8405
8405
  ref: n,
8406
- className: ae(
8406
+ className: se(
8407
8407
  "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
8408
8408
  e
8409
8409
  ),
@@ -13567,7 +13567,7 @@ function Mh(e, t, n, r) {
13567
13567
  }
13568
13568
  const cW = /* @__PURE__ */ La(iW);
13569
13569
  function uW() {
13570
- const e = se((i) => i.dashboard.filters), t = se((i) => i.filterValues), n = se((i) => i.selectedSheetId), r = e == null ? void 0 : e.filter(
13570
+ const e = ae((i) => i.dashboard.filters), t = ae((i) => i.filterValues), n = ae((i) => i.selectedSheetId), r = e == null ? void 0 : e.filter(
13571
13571
  (i) => i.sheetId === n || !i.sheetId
13572
13572
  ), o = t == null ? void 0 : t.filter(
13573
13573
  (i) => (r == null ? void 0 : r.some((a) => a.id === i.filterId)) || i.filterId.endsWith(n)
@@ -13578,7 +13578,7 @@ function uW() {
13578
13578
  };
13579
13579
  }
13580
13580
  function dW(e) {
13581
- const t = se((c) => c.selectedLensId), { filterColumns: n, ...r } = e.queryConfig || {}, o = n == null ? void 0 : n.filter(
13581
+ const t = ae((c) => c.selectedLensId), { filterColumns: n, ...r } = e.queryConfig || {}, o = n == null ? void 0 : n.filter(
13582
13582
  (c) => {
13583
13583
  var u, d;
13584
13584
  return (d = (u = e.queryConfig) == null ? void 0 : u.filters) == null ? void 0 : d.some((h) => h.filterColumnName === c.name);
@@ -14319,7 +14319,7 @@ const ft = ix()(
14319
14319
  ), zm = () => ft((e) => e.actions);
14320
14320
  function Ra(e) {
14321
14321
  var x, R, D;
14322
- const { authToken: t } = Yr(), n = se((P) => P.filteringCards), r = ft((P) => P.isDevMode), o = e.queryConfig, i = se((P) => P.isVisualEditing), a = se((P) => P.actions.getCardFrame), s = se((P) => P.authToken), l = (n == null ? void 0 : n.some((P) => P.id === e.id)) || !1, c = a(e.id), u = (c == null ? void 0 : c.cards) || [], d = (u == null ? void 0 : u.length) == 1, h = cW((e == null ? void 0 : e.refreshInterval) || "0"), { queryKey: f, sql: p, sheetFilterValues: g } = dW(e);
14322
+ const { authToken: t } = Yr(), n = ae((P) => P.filteringCards), r = ft((P) => P.isDevMode), o = e.queryConfig, i = ae((P) => P.isVisualEditing), a = ae((P) => P.actions.getCardFrame), s = ae((P) => P.authToken), l = (n == null ? void 0 : n.some((P) => P.id === e.id)) || !1, c = a(e.id), u = (c == null ? void 0 : c.cards) || [], d = (u == null ? void 0 : u.length) == 1, h = cW((e == null ? void 0 : e.refreshInterval) || "0"), { queryKey: f, sql: p, sheetFilterValues: g } = dW(e);
14323
14323
  let m = {};
14324
14324
  i || (m = {
14325
14325
  refetchInterval: h
@@ -14394,7 +14394,7 @@ function yW(e, t = 1) {
14394
14394
  }
14395
14395
  function H5(e, t, n, r = 1, o = "none") {
14396
14396
  var u, d, h, f;
14397
- const i = n == null ? void 0 : n.datasetOptions, a = se.getState().themeStyle, s = (d = (u = a == null ? void 0 : a.chart) == null ? void 0 : u.dataset) == null ? void 0 : d.backgroundColor, l = (f = (h = a == null ? void 0 : a.chart) == null ? void 0 : h.dataset) == null ? void 0 : f.borderColor;
14397
+ const i = n == null ? void 0 : n.datasetOptions, a = ae.getState().themeStyle, s = (d = (u = a == null ? void 0 : a.chart) == null ? void 0 : u.dataset) == null ? void 0 : d.backgroundColor, l = (f = (h = a == null ? void 0 : a.chart) == null ? void 0 : h.dataset) == null ? void 0 : f.borderColor;
14398
14398
  return e.map((p, g) => {
14399
14399
  var x;
14400
14400
  const m = i == null ? void 0 : i.find((R) => R.idx === g), b = yW(
@@ -14410,14 +14410,37 @@ function H5(e, t, n, r = 1, o = "none") {
14410
14410
  return t[D]._forecast ? [2, 4] : void 0;
14411
14411
  },
14412
14412
  borderColor: (R) => {
14413
- const D = t[R.p0DataIndex]._forecast, P = se.getState().theme === "dark";
14413
+ const D = t[R.p0DataIndex]._forecast, P = ae.getState().theme === "dark";
14414
14414
  return D ? P ? "white" : "black" : w;
14415
14415
  }
14416
- // data point color
14416
+ },
14417
+ pointBackgroundColor: (R) => {
14418
+ const D = ae.getState().theme === "dark";
14419
+ return t[R.dataIndex]._forecast ? D ? "white" : "gray" : v;
14420
+ },
14421
+ pointBorderColor: (R) => {
14422
+ const D = ae.getState().theme === "dark";
14423
+ return t[R.dataIndex]._forecast ? D ? "white" : "gray" : v;
14417
14424
  }
14418
14425
  }, _ = {
14419
- backgroundColor: (R) => t[R.dataIndex]._forecast ? b + "10" : b,
14420
- borderWidth: (R) => t[R.dataIndex]._forecast ? 1 : 0
14426
+ backgroundColor: (R) => {
14427
+ var P;
14428
+ return ((P = t[R.dataIndex]) == null ? void 0 : P._forecast) ? b + "20" : b;
14429
+ }
14430
+ // borderWidth: (ctx: any) => {
14431
+ // // Make forecast bars semi-transparent (e.g., index >= 4)
14432
+ // const isForecasted = data[ctx.dataIndex]?._forecast;
14433
+ // return isForecasted ? 1 : undefined;
14434
+ // },
14435
+ // borderColor: (ctx: any) => {
14436
+ // const isDarkTheme = useDashboardStore.getState().theme === 'dark';
14437
+ // const isForecasted = data[ctx.dataIndex]._forecast;
14438
+ // return isForecasted
14439
+ // ? isDarkTheme
14440
+ // ? 'white'
14441
+ // : 'gray'
14442
+ // : datasetBorderColor;
14443
+ // },
14421
14444
  };
14422
14445
  return {
14423
14446
  label: p.charAt(0).toUpperCase() + p.slice(1),
@@ -14468,7 +14491,7 @@ function wW(e, t) {
14468
14491
  var d, h, f, p;
14469
14492
  const { keys: n } = kn(e), r = n.length, o = n.slice(r - 3), i = n.slice(0, r - 3);
14470
14493
  let a = [];
14471
- const s = se.getState().themeStyle, l = (h = (d = s == null ? void 0 : s.chart) == null ? void 0 : d.dataset) == null ? void 0 : h.backgroundColor, c = (p = (f = s == null ? void 0 : s.chart) == null ? void 0 : f.dataset) == null ? void 0 : p.borderColor;
14494
+ const s = ae.getState().themeStyle, l = (h = (d = s == null ? void 0 : s.chart) == null ? void 0 : d.dataset) == null ? void 0 : h.backgroundColor, c = (p = (f = s == null ? void 0 : s.chart) == null ? void 0 : f.dataset) == null ? void 0 : p.borderColor;
14472
14495
  let u = {};
14473
14496
  return t === "scatter" && (u = {
14474
14497
  radius: 5
@@ -14505,7 +14528,7 @@ function wW(e, t) {
14505
14528
  }
14506
14529
  function W5(e, t) {
14507
14530
  var a, s, l, c;
14508
- const n = se.getState().themeStyle, r = (s = (a = n == null ? void 0 : n.chart) == null ? void 0 : a.dataset) == null ? void 0 : s.backgroundColor, o = (c = (l = n == null ? void 0 : n.chart) == null ? void 0 : l.dataset) == null ? void 0 : c.borderColor;
14531
+ const n = ae.getState().themeStyle, r = (s = (a = n == null ? void 0 : n.chart) == null ? void 0 : a.dataset) == null ? void 0 : s.backgroundColor, o = (c = (l = n == null ? void 0 : n.chart) == null ? void 0 : l.dataset) == null ? void 0 : c.borderColor;
14509
14532
  return e.map((u) => ({
14510
14533
  label: u.charAt(0).toUpperCase() + u.slice(1),
14511
14534
  data: t.map((d) => d[u]),
@@ -14591,7 +14614,7 @@ function Kx({
14591
14614
  }
14592
14615
  function Vn(e, t) {
14593
14616
  var a;
14594
- const n = se.getState().themeStyle, r = (a = n == null ? void 0 : n.chart) == null ? void 0 : a.options, o = Vd(r);
14617
+ const n = ae.getState().themeStyle, r = (a = n == null ? void 0 : n.chart) == null ? void 0 : a.options, o = Vd(r);
14595
14618
  return ag(
14596
14619
  o,
14597
14620
  e,
@@ -14602,7 +14625,7 @@ function Tf(e, t) {
14602
14625
  return e.map((n) => n[t] ? n[t] : "BLANK");
14603
14626
  }
14604
14627
  function Xx(e) {
14605
- const t = se((l) => l.authToken) || e, n = ft(
14628
+ const t = ae((l) => l.authToken) || e, n = ft(
14606
14629
  (l) => l.selectedConnectionId
14607
14630
  ), {
14608
14631
  refetch: r,
@@ -14630,11 +14653,11 @@ function Xx(e) {
14630
14653
  };
14631
14654
  }
14632
14655
  function CW(e) {
14633
- se(
14656
+ ae(
14634
14657
  (P) => P.isDashboardEditing
14635
14658
  );
14636
- const t = se((P) => P.filterValues), n = se((P) => P.isVisualEditing);
14637
- se((P) => P.selectedSheetId), se(
14659
+ const t = ae((P) => P.filterValues), n = ae((P) => P.isVisualEditing);
14660
+ ae((P) => P.selectedSheetId), ae(
14638
14661
  (P) => P.currentBreakpoint
14639
14662
  );
14640
14663
  const { currentConnection: r } = Xx(), {
@@ -14642,7 +14665,7 @@ function CW(e) {
14642
14665
  selectedSchemaName: i,
14643
14666
  selectedTableName: a,
14644
14667
  selectedDatamodelId: s
14645
- } = VCe(), { removeFrame: l } = se((P) => P.actions), c = se(
14668
+ } = VCe(), { removeFrame: l } = ae((P) => P.actions), c = ae(
14646
14669
  (P) => P.actions.setIsVisualEditing
14647
14670
  ), u = ft(
14648
14671
  (P) => P.actions.setFilterValues
@@ -14675,9 +14698,9 @@ function CW(e) {
14675
14698
  }
14676
14699
  function q5({ frame: e }) {
14677
14700
  var c;
14678
- const t = se(
14701
+ const t = ae(
14679
14702
  (u) => u.isDashboardEditing
14680
- ), n = se((u) => u.isVisualEditing), r = se((u) => u.selectedSheetId), { removeFrame: o } = se((u) => u.actions), i = se(
14703
+ ), n = ae((u) => u.isVisualEditing), r = ae((u) => u.selectedSheetId), { removeFrame: o } = ae((u) => u.actions), i = ae(
14681
14704
  (u) => u.actions.setIsVisualEditing
14682
14705
  ), { handleEditVisual: a, card: s, data: l } = CW(e);
14683
14706
  return /* @__PURE__ */ y(
@@ -15025,7 +15048,7 @@ function hg({
15025
15048
  customCfg: r
15026
15049
  }) {
15027
15050
  var p, g, m, b, v, w, C, _, S, x, R, D, P, A, I, $, L, O, T, N, z, B, M, W, F, k, V, q, G;
15028
- const o = se.getState().themeStyle, i = G5(t, n), a = Vn(
15051
+ const o = ae.getState().themeStyle, i = G5(t, n), a = Vn(
15029
15052
  (t == null ? void 0 : t.options) || {},
15030
15053
  n == null ? void 0 : n.chartOptions
15031
15054
  ), s = Vn(
@@ -27454,7 +27477,7 @@ function FZ(e, t) {
27454
27477
  }
27455
27478
  function $Z(e) {
27456
27479
  var r, o;
27457
- const t = se.getState().theme;
27480
+ const t = ae.getState().theme;
27458
27481
  let n = {
27459
27482
  ...e,
27460
27483
  type: "radar",
@@ -27822,7 +27845,7 @@ function jZ(e) {
27822
27845
  const {
27823
27846
  keys: t
27824
27847
  // metricKeys
27825
- } = kn(e), n = t.slice(0, 2), r = t.slice(2), o = se.getState().themeStyle, i = (f = (h = o == null ? void 0 : o.chart) == null ? void 0 : h.dataset) == null ? void 0 : f.backgroundColor, a = (g = (p = o == null ? void 0 : o.chart) == null ? void 0 : p.dataset) == null ? void 0 : g.borderColor, s = n[1], l = n[0], c = [...new Set(e.map((m) => m == null ? void 0 : m[l]))];
27848
+ } = kn(e), n = t.slice(0, 2), r = t.slice(2), o = ae.getState().themeStyle, i = (f = (h = o == null ? void 0 : o.chart) == null ? void 0 : h.dataset) == null ? void 0 : f.backgroundColor, a = (g = (p = o == null ? void 0 : o.chart) == null ? void 0 : p.dataset) == null ? void 0 : g.borderColor, s = n[1], l = n[0], c = [...new Set(e.map((m) => m == null ? void 0 : m[l]))];
27826
27849
  return [...new Set(e.map((m) => m == null ? void 0 : m[s]))].map((m, b) => {
27827
27850
  const v = e.filter((_) => (_ == null ? void 0 : _[s]) === m), C = c.map((_) => {
27828
27851
  const S = v.filter((x) => (x == null ? void 0 : x[l]) === _);
@@ -28201,7 +28224,7 @@ function WZ({
28201
28224
  cfg: o,
28202
28225
  apply: i
28203
28226
  }) {
28204
- const a = se.getState().theme;
28227
+ const a = ae.getState().theme;
28205
28228
  if (!o) return;
28206
28229
  const s = a === "dark" ? "rgb(238,238,238,0.2)" : "rgb(238,238,238,0.8)";
28207
28230
  ["bar", "line", "horizontalBar", "bubble", "scatter"].includes(r) && UZ(e, t, o, i, s), ["pie", "doughnut", "polarArea", "funnel"].includes(r) && GZ(e, t, o, i, s), ["stackedBar", "pyramid"].includes(r) && qZ({
@@ -28408,7 +28431,7 @@ function d2e(e) {
28408
28431
  }
28409
28432
  function WI(e) {
28410
28433
  var A;
28411
- const { onChartElementClicked: t } = Yr(), [n, r] = be(0), o = se((I) => I.themeStyle), i = se((I) => I.filteringCards), a = se((I) => I.selectedSheetId), s = se((I) => I.selectedLensId), l = se((I) => I.filterValues), c = pe(l), u = (A = e == null ? void 0 : e.preferences) == null ? void 0 : A.onClickFilter, {
28434
+ const { onChartElementClicked: t } = Yr(), [n, r] = be(0), o = ae((I) => I.themeStyle), i = ae((I) => I.filteringCards), a = ae((I) => I.selectedSheetId), s = ae((I) => I.selectedLensId), l = ae((I) => I.filterValues), c = pe(l), u = (A = e == null ? void 0 : e.preferences) == null ? void 0 : A.onClickFilter, {
28412
28435
  addFilteringCard: d,
28413
28436
  addOrUpdateFilterValues: h,
28414
28437
  removeFilterValues: f,
@@ -28515,7 +28538,7 @@ function zi({
28515
28538
  placeholder: a,
28516
28539
  enabled: s
28517
28540
  }) {
28518
- const [l, c] = be(!1), [u, d] = be(r), h = se(
28541
+ const [l, c] = be(!1), [u, d] = be(r), h = ae(
28519
28542
  (b) => b.isDashboardEditing
28520
28543
  );
28521
28544
  he(() => {
@@ -28535,7 +28558,7 @@ function zi({
28535
28558
  return i === "textarea" ? /* @__PURE__ */ y(
28536
28559
  "textarea",
28537
28560
  {
28538
- className: ae(
28561
+ className: se(
28539
28562
  "resize rounded-sm bg-background px-2 py-1 text-sm outline-[0.5px] outline-muted",
28540
28563
  n
28541
28564
  // focus: outline-none for removing the gray outline
@@ -28552,7 +28575,7 @@ function zi({
28552
28575
  {
28553
28576
  onMouseDown: (b) => b.stopPropagation(),
28554
28577
  type: "text",
28555
- className: ae(
28578
+ className: se(
28556
28579
  "rounded-sm bg-background outline-none",
28557
28580
  n
28558
28581
  // focus: outline-none for removing the gray outline
@@ -28581,7 +28604,7 @@ function zi({
28581
28604
  return /* @__PURE__ */ y(
28582
28605
  "div",
28583
28606
  {
28584
- className: ae("flex", t),
28607
+ className: se("flex", t),
28585
28608
  role: "editable",
28586
28609
  onDoubleClick: f,
28587
28610
  onMouseDown: (b) => b.stopPropagation(),
@@ -28681,7 +28704,7 @@ const wk = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xk = Ys, P
28681
28704
  GI,
28682
28705
  {
28683
28706
  ref: o,
28684
- className: ae(ZZ({ variant: t, size: n, className: e })),
28707
+ className: se(ZZ({ variant: t, size: n, className: e })),
28685
28708
  ...r
28686
28709
  }
28687
28710
  ));
@@ -28692,13 +28715,13 @@ function Lw({
28692
28715
  isPending: n
28693
28716
  }) {
28694
28717
  var S, x, R, D, P, A, I, $, L, O, T, N, z, B, M, W, F, k;
28695
- const r = se((V) => V.actions.setCardTitle), o = se(
28718
+ const r = ae((V) => V.actions.setCardTitle), o = ae(
28696
28719
  (V) => V.actions.setCardDescription
28697
- ), i = se((V) => V.isVisualEditing), a = ft((V) => V.card), s = ft((V) => V.actions.setCard);
28720
+ ), i = ae((V) => V.isVisualEditing), a = ft((V) => V.card), s = ft((V) => V.actions.setCard);
28698
28721
  ft(
28699
28722
  (V) => V.actions.setNumberFormat
28700
28723
  );
28701
- const { getCurrency: l, getLocale: c } = qI(e), u = se((V) => V.selectedSheetId), d = (x = (S = e.preferences) == null ? void 0 : S.formatNumber) == null ? void 0 : x.colorRanges, { keys: h } = kn(t), f = (R = t == null ? void 0 : t[0]) == null ? void 0 : R[h == null ? void 0 : h[0]], p = (D = t == null ? void 0 : t[0]) == null ? void 0 : D[h == null ? void 0 : h[1]], g = t && t.length > 0;
28724
+ const { getCurrency: l, getLocale: c } = qI(e), u = ae((V) => V.selectedSheetId), d = (x = (S = e.preferences) == null ? void 0 : S.formatNumber) == null ? void 0 : x.colorRanges, { keys: h } = kn(t), f = (R = t == null ? void 0 : t[0]) == null ? void 0 : R[h == null ? void 0 : h[0]], p = (D = t == null ? void 0 : t[0]) == null ? void 0 : D[h == null ? void 0 : h[1]], g = t && t.length > 0;
28702
28725
  function m(V) {
28703
28726
  i ? s({
28704
28727
  ...a,
@@ -28759,9 +28782,9 @@ function JZ({
28759
28782
  isPending: c,
28760
28783
  isLowerIsBetter: u
28761
28784
  }) {
28762
- const d = se(
28785
+ const d = ae(
28763
28786
  (g) => g.isDashboardEditing
28764
- ), h = se((g) => g.isVisualEditing), f = ft((g) => g.card);
28787
+ ), h = ae((g) => g.isVisualEditing), f = ft((g) => g.card);
28765
28788
  ft((g) => g.actions.setCard);
28766
28789
  let p = r || "";
28767
28790
  return h && (p = r || "from description"), // <div className="@container min-w-[320px]">
@@ -28821,14 +28844,14 @@ function YI({
28821
28844
  className: t,
28822
28845
  isLowerIsBetter: n
28823
28846
  }) {
28824
- const r = se((s) => s.themeStyle), o = e > 0 ? /* @__PURE__ */ y("span", { children: "+" }) : /* @__PURE__ */ y("span", { children: "-" }), i = `${Math.abs(e * 100).toFixed(0)}%`, a = n ? e < 0 : e > 0;
28847
+ const r = ae((s) => s.themeStyle), o = e > 0 ? /* @__PURE__ */ y("span", { children: "+" }) : /* @__PURE__ */ y("span", { children: "-" }), i = `${Math.abs(e * 100).toFixed(0)}%`, a = n ? e < 0 : e > 0;
28825
28848
  return /* @__PURE__ */ Y(
28826
28849
  "div",
28827
28850
  {
28828
28851
  style: {
28829
28852
  borderRadius: (r == null ? void 0 : r.controlInputRadius) || "2px"
28830
28853
  },
28831
- className: ae(
28854
+ className: se(
28832
28855
  "flex items-center px-1 text-sm font-semibold",
28833
28856
  {
28834
28857
  "bg-green-600/10 text-green-600": a,
@@ -30689,7 +30712,7 @@ const VS = mee, jS = bee, nb = E.forwardRef(({ className: e, align: t = "center"
30689
30712
  ref: o,
30690
30713
  align: t,
30691
30714
  sideOffset: n,
30692
- className: ae(
30715
+ className: se(
30693
30716
  "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
30694
30717
  e
30695
30718
  ),
@@ -30698,7 +30721,7 @@ const VS = mee, jS = bee, nb = E.forwardRef(({ className: e, align: t = "center"
30698
30721
  ));
30699
30722
  nb.displayName = kT.displayName;
30700
30723
  function PT({ card: e }) {
30701
- const t = se(
30724
+ const t = ae(
30702
30725
  (r) => r.isDashboardEditing
30703
30726
  ), { setCardInfo: n } = fn();
30704
30727
  return /* @__PURE__ */ Y(VS, { openDelay: 0, children: [
@@ -30730,8 +30753,8 @@ function PT({ card: e }) {
30730
30753
  }
30731
30754
  function yee({ card: e, renderFilterInfo: t }) {
30732
30755
  var p, g, m, b, v, w, C, _, S, x, R, D, P, A, I, $, L, O;
30733
- se((T) => T.themeStyle);
30734
- const { data: n, isLoading: r } = Ra(e), o = (n == null ? void 0 : n.records) || [], i = se(
30756
+ ae((T) => T.themeStyle);
30757
+ const { data: n, isLoading: r } = Ra(e), o = (n == null ? void 0 : n.records) || [], i = ae(
30735
30758
  (T) => T.isDashboardEditing
30736
30759
  ), { getCurrency: a, getLocale: s } = qI(e), l = (g = (p = e.preferences) == null ? void 0 : p.formatNumber) == null ? void 0 : g.colorRanges, { keys: c } = kn(o || []), u = (m = o == null ? void 0 : o[0]) == null ? void 0 : m[c == null ? void 0 : c[0]], d = (b = o == null ? void 0 : o[0]) == null ? void 0 : b[c == null ? void 0 : c[1]], h = (o == null ? void 0 : o.length) > 0, f = d && d - u !== 0 ? (u - d) / d : null;
30737
30760
  return (
@@ -30740,7 +30763,7 @@ function yee({ card: e, renderFilterInfo: t }) {
30740
30763
  h ? /* @__PURE__ */ y("div", { className: "", children: /* @__PURE__ */ Y(
30741
30764
  "div",
30742
30765
  {
30743
- className: ae("flex items-end gap-1.5", {
30766
+ className: se("flex items-end gap-1.5", {
30744
30767
  "animate-pulse": r
30745
30768
  }),
30746
30769
  children: [
@@ -31126,7 +31149,7 @@ const zee = Lee, FT = Fee, $T = $ee, qS = E.forwardRef(({ className: e, sideOffs
31126
31149
  {
31127
31150
  ref: r,
31128
31151
  sideOffset: t,
31129
- className: ae(
31152
+ className: se(
31130
31153
  "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
31131
31154
  e
31132
31155
  ),
@@ -31136,7 +31159,7 @@ const zee = Lee, FT = Fee, $T = $ee, qS = E.forwardRef(({ className: e, sideOffs
31136
31159
  qS.displayName = LT.displayName;
31137
31160
  function Hw({ card: e, isLoading: t, data: n }) {
31138
31161
  var h, f;
31139
- const r = n || [], { keys: o } = kn(r), i = se((p) => p.selectedSheetId), a = se((p) => p.isVisualEditing), s = (f = (h = e == null ? void 0 : e.preferences) == null ? void 0 : h.textVisualOptions) == null ? void 0 : f.isDynamicText, { setCardDescription: l } = fn(), { setCard: c } = zm();
31162
+ const r = n || [], { keys: o } = kn(r), i = ae((p) => p.selectedSheetId), a = ae((p) => p.isVisualEditing), s = (f = (h = e == null ? void 0 : e.preferences) == null ? void 0 : h.textVisualOptions) == null ? void 0 : f.isDynamicText, { setCardDescription: l } = fn(), { setCard: c } = zm();
31140
31163
  function u() {
31141
31164
  var b;
31142
31165
  if (t)
@@ -31218,7 +31241,7 @@ const nf = PS(
31218
31241
  ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => /* @__PURE__ */ y(
31219
31242
  r ? ji : "button",
31220
31243
  {
31221
- className: ae(nf({ variant: t, size: n, className: e })),
31244
+ className: se(nf({ variant: t, size: n, className: e })),
31222
31245
  ref: i,
31223
31246
  ...o
31224
31247
  }
@@ -31244,7 +31267,7 @@ const Vee = PS(
31244
31267
  BT,
31245
31268
  {
31246
31269
  ref: n,
31247
- className: ae(Vee(), e),
31270
+ className: se(Vee(), e),
31248
31271
  ...t
31249
31272
  }
31250
31273
  ));
@@ -31273,7 +31296,7 @@ const US = E.forwardRef(
31273
31296
  ref: o,
31274
31297
  decorative: n,
31275
31298
  orientation: t,
31276
- className: ae(
31299
+ className: se(
31277
31300
  "shrink-0 bg-border",
31278
31301
  t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
31279
31302
  e
@@ -31284,11 +31307,11 @@ const US = E.forwardRef(
31284
31307
  );
31285
31308
  US.displayName = jT.displayName;
31286
31309
  function Ik() {
31287
- const e = se(
31310
+ const e = ae(
31288
31311
  (S) => S.isDashboardEditing
31289
- ), t = se(
31312
+ ), t = ae(
31290
31313
  (S) => S.dashboard.defaultFilterValues
31291
- ), n = se((S) => S.themeStyle), r = se((S) => S.filterValues), o = se((S) => S.dashboard.filters), i = se((S) => S.filteringCards), a = se((S) => S.selectedSheetId), s = se((S) => S.onSaveFunction), {
31314
+ ), n = ae((S) => S.themeStyle), r = ae((S) => S.filterValues), o = ae((S) => S.dashboard.filters), i = ae((S) => S.filteringCards), a = ae((S) => S.selectedSheetId), s = ae((S) => S.onSaveFunction), {
31292
31315
  removeFilterValues: l,
31293
31316
  removeFilteringCard: c,
31294
31317
  setFilterValues: u,
@@ -31451,25 +31474,25 @@ const qee = E.forwardRef(({ className: e, containerClassName: t, containerStyle:
31451
31474
  "div",
31452
31475
  {
31453
31476
  style: n,
31454
- className: ae("relative w-full overflow-auto", t),
31477
+ className: se("relative w-full overflow-auto", t),
31455
31478
  children: /* @__PURE__ */ y(
31456
31479
  "table",
31457
31480
  {
31458
31481
  ref: o,
31459
- className: ae("w-full caption-bottom text-sm", e),
31482
+ className: se("w-full caption-bottom text-sm", e),
31460
31483
  ...r
31461
31484
  }
31462
31485
  )
31463
31486
  }
31464
31487
  ));
31465
31488
  qee.displayName = "Table";
31466
- const HT = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y("thead", { ref: n, className: ae("[&_tr]:border-b", e), ...t }));
31489
+ const HT = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y("thead", { ref: n, className: se("[&_tr]:border-b", e), ...t }));
31467
31490
  HT.displayName = "TableHeader";
31468
31491
  const WT = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
31469
31492
  "tbody",
31470
31493
  {
31471
31494
  ref: n,
31472
- className: ae("[&_tr:last-child]:border-0", e),
31495
+ className: se("[&_tr:last-child]:border-0", e),
31473
31496
  ...t
31474
31497
  }
31475
31498
  ));
@@ -31478,7 +31501,7 @@ const Uee = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
31478
31501
  "tfoot",
31479
31502
  {
31480
31503
  ref: n,
31481
- className: ae(
31504
+ className: se(
31482
31505
  "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
31483
31506
  e
31484
31507
  ),
@@ -31490,7 +31513,7 @@ const Up = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
31490
31513
  "tr",
31491
31514
  {
31492
31515
  ref: n,
31493
- className: ae(
31516
+ className: se(
31494
31517
  "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
31495
31518
  e
31496
31519
  ),
@@ -31502,7 +31525,7 @@ const qT = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
31502
31525
  "th",
31503
31526
  {
31504
31527
  ref: n,
31505
- className: ae(
31528
+ className: se(
31506
31529
  "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
31507
31530
  e
31508
31531
  ),
@@ -31514,7 +31537,7 @@ const Ww = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
31514
31537
  "td",
31515
31538
  {
31516
31539
  ref: n,
31517
- className: ae("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
31540
+ className: se("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
31518
31541
  ...t
31519
31542
  }
31520
31543
  ));
@@ -31523,7 +31546,7 @@ const Gee = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
31523
31546
  "caption",
31524
31547
  {
31525
31548
  ref: n,
31526
- className: ae("mt-4 text-sm text-muted-foreground", e),
31549
+ className: se("mt-4 text-sm text-muted-foreground", e),
31527
31550
  ...t
31528
31551
  }
31529
31552
  ));
@@ -34763,7 +34786,7 @@ const rs = Qne, zu = nre, os = Zne, ia = E.forwardRef(({ className: e, children:
34763
34786
  zN,
34764
34787
  {
34765
34788
  ref: r,
34766
- className: ae(
34789
+ className: se(
34767
34790
  "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
34768
34791
  e
34769
34792
  ),
@@ -34779,7 +34802,7 @@ const UN = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
34779
34802
  HN,
34780
34803
  {
34781
34804
  ref: n,
34782
- className: ae(
34805
+ className: se(
34783
34806
  "flex cursor-default items-center justify-center py-1",
34784
34807
  e
34785
34808
  ),
@@ -34792,7 +34815,7 @@ const GN = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
34792
34815
  WN,
34793
34816
  {
34794
34817
  ref: n,
34795
- className: ae(
34818
+ className: se(
34796
34819
  "flex cursor-default items-center justify-center py-1",
34797
34820
  e
34798
34821
  ),
@@ -34805,7 +34828,7 @@ const aa = E.forwardRef(({ className: e, children: t, position: n = "popper", ..
34805
34828
  BN,
34806
34829
  {
34807
34830
  ref: o,
34808
- className: ae(
34831
+ className: se(
34809
34832
  "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
34810
34833
  n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
34811
34834
  e
@@ -34817,7 +34840,7 @@ const aa = E.forwardRef(({ className: e, children: t, position: n = "popper", ..
34817
34840
  /* @__PURE__ */ y(
34818
34841
  tre,
34819
34842
  {
34820
- className: ae(
34843
+ className: se(
34821
34844
  "p-1",
34822
34845
  n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
34823
34846
  ),
@@ -34833,7 +34856,7 @@ const Wl = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
34833
34856
  VN,
34834
34857
  {
34835
34858
  ref: n,
34836
- className: ae("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
34859
+ className: se("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
34837
34860
  ...t
34838
34861
  }
34839
34862
  ));
@@ -34842,7 +34865,7 @@ const On = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
34842
34865
  jN,
34843
34866
  {
34844
34867
  ref: r,
34845
- className: ae(
34868
+ className: se(
34846
34869
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
34847
34870
  e
34848
34871
  ),
@@ -34858,7 +34881,7 @@ const Kp = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
34858
34881
  qN,
34859
34882
  {
34860
34883
  ref: n,
34861
- className: ae("-mx-1 my-1 h-px bg-muted", e),
34884
+ className: se("-mx-1 my-1 h-px bg-muted", e),
34862
34885
  ...t
34863
34886
  }
34864
34887
  ));
@@ -34868,7 +34891,7 @@ const _d = E.forwardRef(
34868
34891
  "input",
34869
34892
  {
34870
34893
  type: t,
34871
- className: ae(
34894
+ className: se(
34872
34895
  "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
34873
34896
  e
34874
34897
  ),
@@ -35095,7 +35118,7 @@ const JS = pre, eC = gre, mb = E.forwardRef(({ className: e, align: t = "center"
35095
35118
  ref: o,
35096
35119
  align: t,
35097
35120
  sideOffset: n,
35098
- className: ae(
35121
+ className: se(
35099
35122
  // z-49 is to make sure the popover is behind dropdown
35100
35123
  "z-49 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
35101
35124
  e
@@ -35214,7 +35237,7 @@ function yre({
35214
35237
  {
35215
35238
  onChange: (l) => r(s, "start", l.target.value),
35216
35239
  value: a.start,
35217
- className: ae(`h-7 ${fd}`)
35240
+ className: se(`h-7 ${fd}`)
35218
35241
  }
35219
35242
  ),
35220
35243
  /* @__PURE__ */ y("span", { children: "-" }),
@@ -35223,7 +35246,7 @@ function yre({
35223
35246
  {
35224
35247
  value: a.end,
35225
35248
  onChange: (l) => r(s, "end", l.target.value),
35226
- className: ae(`h-7 ${fd}`)
35249
+ className: se(`h-7 ${fd}`)
35227
35250
  }
35228
35251
  ),
35229
35252
  /* @__PURE__ */ y(
@@ -35231,7 +35254,7 @@ function yre({
35231
35254
  {
35232
35255
  onChange: (l) => r(s, "color", l.target.value),
35233
35256
  value: a.color,
35234
- className: ae(`h-7 min-w-14 p-0 ${fd}`),
35257
+ className: se(`h-7 min-w-14 p-0 ${fd}`),
35235
35258
  type: "color",
35236
35259
  list: "presetColors"
35237
35260
  }
@@ -35666,14 +35689,14 @@ function Dre({
35666
35689
  columnIndex: r
35667
35690
  }) {
35668
35691
  var d;
35669
- const o = se((h) => h.isVisualEditing), i = e == null ? void 0 : e.preferences, a = t.getIsSorted(), s = (d = i == null ? void 0 : i.columnSettings) == null ? void 0 : d.find(
35692
+ const o = ae((h) => h.isVisualEditing), i = e == null ? void 0 : e.preferences, a = t.getIsSorted(), s = (d = i == null ? void 0 : i.columnSettings) == null ? void 0 : d.find(
35670
35693
  (h) => h.columnIdx === r
35671
35694
  ), l = s == null ? void 0 : s.textAlign, c = s == null ? void 0 : s.width, u = c ? { width: c } : {};
35672
35695
  return /* @__PURE__ */ Y("div", { className: "flex w-full items-center justify-between", children: [
35673
35696
  /* @__PURE__ */ Y(
35674
35697
  "div",
35675
35698
  {
35676
- className: ae(
35699
+ className: se(
35677
35700
  "flex grow cursor-pointer items-center justify-between gap-4",
35678
35701
  {
35679
35702
  "justify-center": l === "center",
@@ -35744,7 +35767,7 @@ function Ore({
35744
35767
  "p",
35745
35768
  {
35746
35769
  title: a,
35747
- className: ae("overflow-auto", {
35770
+ className: se("overflow-auto", {
35748
35771
  "text-center": l === "center",
35749
35772
  "text-right": l === "right",
35750
35773
  "text-left": l === "left"
@@ -35756,7 +35779,7 @@ function Ore({
35756
35779
  }
35757
35780
  function Are(e, t) {
35758
35781
  var d;
35759
- const n = se((h) => h.selectedSheetId), r = se((h) => h.filterValues), o = (d = e == null ? void 0 : e.preferences) == null ? void 0 : d.onClickFilter, { addOrUpdateFilterValues: i, addFilteringCard: a } = fn(), { data: s } = Ra(e), l = s == null ? void 0 : s.records;
35782
+ const n = ae((h) => h.selectedSheetId), r = ae((h) => h.filterValues), o = (d = e == null ? void 0 : e.preferences) == null ? void 0 : d.onClickFilter, { addOrUpdateFilterValues: i, addFilteringCard: a } = fn(), { data: s } = Ra(e), l = s == null ? void 0 : s.records;
35760
35783
  he(() => {
35761
35784
  (!r || (r == null ? void 0 : r.length) === 0) && t.getRowModel().rows.forEach((h) => {
35762
35785
  h.getIsSelected() && h.toggleSelected();
@@ -36311,7 +36334,7 @@ const qg = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
36311
36334
  vb,
36312
36335
  {
36313
36336
  ref: r,
36314
- className: ae("relative overflow-hidden", e),
36337
+ className: se("relative overflow-hidden", e),
36315
36338
  ...n,
36316
36339
  children: [
36317
36340
  /* @__PURE__ */ y(m4, { className: "h-full w-full rounded-[inherit]", children: t }),
@@ -36326,7 +36349,7 @@ const Gf = E.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r)
36326
36349
  {
36327
36350
  ref: r,
36328
36351
  orientation: t,
36329
- className: ae(
36352
+ className: se(
36330
36353
  "flex touch-none select-none transition-colors",
36331
36354
  t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
36332
36355
  t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
@@ -36340,7 +36363,7 @@ Gf.displayName = nC.displayName;
36340
36363
  const wb = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ Y(
36341
36364
  vb,
36342
36365
  {
36343
- className: ae("relative overflow-hidden", e),
36366
+ className: se("relative overflow-hidden", e),
36344
36367
  children: [
36345
36368
  /* @__PURE__ */ y(
36346
36369
  m4,
@@ -36359,7 +36382,7 @@ const wb = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
36359
36382
  wb.displayName = vb.displayName;
36360
36383
  function Wre({ data: e, card: t }) {
36361
36384
  var d, h;
36362
- const [n, r] = J.useState([]), o = se((f) => f.themeStyle), i = (d = t == null ? void 0 : t.preferences) == null ? void 0 : d.onClickFilter, a = t == null ? void 0 : t.preferences, { keys: s } = kn(e), l = s.map((f, p) => ({
36385
+ const [n, r] = J.useState([]), o = ae((f) => f.themeStyle), i = (d = t == null ? void 0 : t.preferences) == null ? void 0 : d.onClickFilter, a = t == null ? void 0 : t.preferences, { keys: s } = kn(e), l = s.map((f, p) => ({
36363
36386
  accessorKey: f,
36364
36387
  header: ({ column: g }) => /* @__PURE__ */ y(
36365
36388
  Dre,
@@ -36400,7 +36423,7 @@ function Wre({ data: e, card: t }) {
36400
36423
  (C = (w = (v = o == null ? void 0 : o.chart) == null ? void 0 : v.dataset) == null ? void 0 : w.backgroundColor) == null ? void 0 : C[0]
36401
36424
  )
36402
36425
  },
36403
- className: ae(
36426
+ className: se(
36404
36427
  "group sticky -top-[1px] h-9 bg-muted-foreground text-background",
36405
36428
  {
36406
36429
  // 'border-x':
@@ -36422,7 +36445,7 @@ function Wre({ data: e, card: t }) {
36422
36445
  Up,
36423
36446
  {
36424
36447
  onClick: () => u(f),
36425
- className: ae(
36448
+ className: se(
36426
36449
  "whitespace-nowrap border-border/50 hover:bg-muted-foreground/10",
36427
36450
  {
36428
36451
  "data-[state=selected]:border-1 cursor-pointer data-[state=selected]:border-dashed data-[state=selected]:bg-muted-foreground/30 data-[state=selected]:shadow-inner": i && (i == null ? void 0 : i.length) > 0
@@ -36443,7 +36466,7 @@ function Wre({ data: e, card: t }) {
36443
36466
  const x = ((R = window == null ? void 0 : window.getSelection()) == null ? void 0 : R.toString()) || "";
36444
36467
  (x == null ? void 0 : x.length) > 0 && S.stopPropagation();
36445
36468
  },
36446
- className: ae("border-border/50 px-4 py-1", {
36469
+ className: se("border-border/50 px-4 py-1", {
36447
36470
  // 'border-x':
36448
36471
  // (idx > 0 && idx < columns.length - 1) ||
36449
36472
  // (idx === 1 && columns.length == 2), // if the table has only 2 columns
@@ -36563,7 +36586,7 @@ function Xre({
36563
36586
  var v, w, C, _, S, x, R, D;
36564
36587
  const [n, r] = be(
36565
36588
  []
36566
- ), { authToken: o } = Yr(), i = pz(o == null ? void 0 : o.accessToken), a = se((P) => P.themeStyle), s = {
36589
+ ), { authToken: o } = Yr(), i = pz(o == null ? void 0 : o.accessToken), a = ae((P) => P.themeStyle), s = {
36567
36590
  colors: ((w = (v = a == null ? void 0 : a.chart) == null ? void 0 : v.dataset) == null ? void 0 : w.backgroundColor) || []
36568
36591
  }, [l, c] = be(!1), { getCard: u } = Yre(((C = e.customCardPreferences) == null ? void 0 : C.url) || ""), d = ((_ = e.customCardPreferences) == null ? void 0 : _.visualType) || "single", h = (S = e.customCardPreferences) == null ? void 0 : S.componentName, { data: f } = Ra(e), p = Re((P, A) => {
36569
36592
  r((I) => ({
@@ -36621,7 +36644,7 @@ function Xre({
36621
36644
  d === "multiple" && /* @__PURE__ */ y(
36622
36645
  "div",
36623
36646
  {
36624
- className: ae("flex flex-col gap-2", {
36647
+ className: se("flex flex-col gap-2", {
36625
36648
  "opacity-50": l
36626
36649
  }),
36627
36650
  children: /* @__PURE__ */ y(
@@ -39113,7 +39136,7 @@ zt.register(yu);
39113
39136
  zt.register(bu);
39114
39137
  function n3({ cfg: e, onDatapointClick: t }) {
39115
39138
  var d;
39116
- const [n, r] = be(""), o = se((h) => h.selectedLensId), i = pe(null), [a, s] = be(), l = se((h) => h.themeStyle);
39139
+ const [n, r] = be(""), o = ae((h) => h.selectedLensId), i = pe(null), [a, s] = be(), l = ae((h) => h.themeStyle);
39117
39140
  he(() => {
39118
39141
  if (i.current) {
39119
39142
  const h = window.getComputedStyle(i.current);
@@ -39167,7 +39190,7 @@ function n3({ cfg: e, onDatapointClick: t }) {
39167
39190
  "div",
39168
39191
  {
39169
39192
  onClick: c,
39170
- className: ae("relative h-[99%]", {
39193
+ className: se("relative h-[99%]", {
39171
39194
  "mx-14": u
39172
39195
  }),
39173
39196
  children: /* @__PURE__ */ y("canvas", { ref: i })
@@ -39176,7 +39199,7 @@ function n3({ cfg: e, onDatapointClick: t }) {
39176
39199
  );
39177
39200
  }
39178
39201
  function r3(e) {
39179
- const { authToken: t } = Yr(), n = se((C) => C.authToken), r = t || n, o = se((C) => C.dashboard.filters), i = se((C) => C.selectedSheetId), a = se((C) => C.filterValues), [s, l] = be(!0), c = o == null ? void 0 : o.filter(
39202
+ const { authToken: t } = Yr(), n = ae((C) => C.authToken), r = t || n, o = ae((C) => C.dashboard.filters), i = ae((C) => C.selectedSheetId), a = ae((C) => C.filterValues), [s, l] = be(!0), c = o == null ? void 0 : o.filter(
39180
39203
  (C) => C.sheetId === i || !C.sheetId
39181
39204
  ), u = a == null ? void 0 : a.filter(
39182
39205
  (C) => (c == null ? void 0 : c.some((_) => _.id === C.filterId)) || C.filterId.endsWith(i)
@@ -40552,7 +40575,7 @@ function Lse(e) {
40552
40575
  }, [e]), { dateRange: t, setDateRange: n, initialDateRange: r, setInitialDateRange: o };
40553
40576
  }
40554
40577
  function v2e(e) {
40555
- const t = se(
40578
+ const t = ae(
40556
40579
  (o) => {
40557
40580
  var i, a;
40558
40581
  return (a = (i = o.dashboard) == null ? void 0 : i.filters) == null ? void 0 : a.find((s) => s.id === e);
@@ -40561,7 +40584,7 @@ function v2e(e) {
40561
40584
  return r;
40562
40585
  }
40563
40586
  function h3(e) {
40564
- const t = se((p) => p.filterValues), n = se(
40587
+ const t = ae((p) => p.filterValues), n = ae(
40565
40588
  (p) => p.actions.addOrUpdateFilterValue
40566
40589
  ), { removeFilterValues: r } = fn(), { data: o, isLoading: i, isFetching: a, isError: s } = r3(e), { dateRange: l, setDateRange: c, initialDateRange: u } = Lse(
40567
40590
  o == null ? void 0 : o.records
@@ -41579,14 +41602,14 @@ function _3({
41579
41602
  pce,
41580
41603
  {
41581
41604
  showOutsideDays: n,
41582
- className: ae("p-3", e),
41605
+ className: se("p-3", e),
41583
41606
  classNames: {
41584
41607
  months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
41585
41608
  month: "space-y-4",
41586
41609
  caption: "flex justify-center pt-1 relative items-center",
41587
41610
  caption_label: "text-sm font-medium",
41588
41611
  nav: "space-x-1 flex items-center",
41589
- nav_button: ae(
41612
+ nav_button: se(
41590
41613
  nf({ variant: "outline" }),
41591
41614
  "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
41592
41615
  ),
@@ -41597,7 +41620,7 @@ function _3({
41597
41620
  head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
41598
41621
  row: "flex w-full mt-2",
41599
41622
  cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
41600
- day: ae(
41623
+ day: se(
41601
41624
  nf({ variant: "ghost" }),
41602
41625
  "h-9 w-9 p-0 font-normal aria-selected:opacity-100"
41603
41626
  ),
@@ -41630,8 +41653,8 @@ function gce({
41630
41653
  onApply: s,
41631
41654
  onClear: l
41632
41655
  }) {
41633
- const c = se((u) => u.themeStyle);
41634
- return /* @__PURE__ */ y("div", { className: ae("grid gap-2", o), children: /* @__PURE__ */ Y(JS, { open: e, onOpenChange: t, children: [
41656
+ const c = ae((u) => u.themeStyle);
41657
+ return /* @__PURE__ */ y("div", { className: se("grid gap-2", o), children: /* @__PURE__ */ Y(JS, { open: e, onOpenChange: t, children: [
41635
41658
  /* @__PURE__ */ y(
41636
41659
  eC,
41637
41660
  {
@@ -41646,7 +41669,7 @@ function gce({
41646
41669
  size: "sm",
41647
41670
  id: "date",
41648
41671
  variant: "outline",
41649
- className: ae(
41672
+ className: se(
41650
41673
  "h-9 w-full justify-start rounded-sm text-left font-normal",
41651
41674
  !n && "text-muted-foreground",
41652
41675
  i
@@ -41769,7 +41792,7 @@ function w2e(e, t, n) {
41769
41792
  return nu(e) ? o : r;
41770
41793
  }
41771
41794
  function x2e(e) {
41772
- const t = se(
41795
+ const t = ae(
41773
41796
  (i) => {
41774
41797
  var a, s;
41775
41798
  return (s = (a = i == null ? void 0 : i.dashboard) == null ? void 0 : a.filters) == null ? void 0 : s.find((l) => l.id === e);
@@ -41782,7 +41805,7 @@ function x2e(e) {
41782
41805
  function RC(e) {
41783
41806
  const [t, n] = be(
41784
41807
  []
41785
- ), [r, o] = be(""), i = se((S) => S.filterValues), a = se((S) => S.selectedSheetId), { addOrUpdateFilterValue: s, removeFilterValues: l } = fn(), { data: c, isLoading: u, isFetching: d, isError: h } = r3(e), f = ke(() => {
41808
+ ), [r, o] = be(""), i = ae((S) => S.filterValues), a = ae((S) => S.selectedSheetId), { addOrUpdateFilterValue: s, removeFilterValues: l } = fn(), { data: c, isLoading: u, isFetching: d, isError: h } = r3(e), f = ke(() => {
41786
41809
  var x;
41787
41810
  return e.column ? (x = c == null ? void 0 : c.records) == null ? void 0 : x.map((R) => {
41788
41811
  let D = e.column.split(".").slice(-1)[0].replace(/"/g, "");
@@ -44665,7 +44688,7 @@ const $C = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
44665
44688
  f6,
44666
44689
  {
44667
44690
  ref: n,
44668
- className: ae(
44691
+ className: se(
44669
44692
  "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
44670
44693
  e
44671
44694
  ),
@@ -44673,7 +44696,7 @@ const $C = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
44673
44696
  children: /* @__PURE__ */ y(
44674
44697
  Sfe,
44675
44698
  {
44676
- className: ae("flex items-center justify-center text-current"),
44699
+ className: se("flex items-center justify-center text-current"),
44677
44700
  children: /* @__PURE__ */ y(yl, { className: "h-4 w-4" })
44678
44701
  }
44679
44702
  )
@@ -44693,7 +44716,7 @@ function Cfe({
44693
44716
  renderFilterModeButton: l,
44694
44717
  showNegativeIndicator: c
44695
44718
  }) {
44696
- const [u, d] = be(""), h = se((v) => v.themeStyle), f = o || (u === "" ? e : e == null ? void 0 : e.filter((v) => {
44719
+ const [u, d] = be(""), h = ae((v) => v.themeStyle), f = o || (u === "" ? e : e == null ? void 0 : e.filter((v) => {
44697
44720
  var w;
44698
44721
  return v != null && v.value ? (w = v.value) == null ? void 0 : w.toLowerCase().includes(u == null ? void 0 : u.toLowerCase()) : !1;
44699
44722
  }));
@@ -44735,7 +44758,7 @@ function Cfe({
44735
44758
  /* @__PURE__ */ y(
44736
44759
  i6,
44737
44760
  {
44738
- className: ae(
44761
+ className: se(
44739
44762
  "h-8 w-full rounded-sm border border-border bg-background py-1.5 pl-3 pr-8 text-sm",
44740
44763
  "data-[focus]:outline-border-none focus:outline-none data-[focus]:outline-none data-[focus]:-outline-offset-2",
44741
44764
  s
@@ -44788,7 +44811,7 @@ function Cfe({
44788
44811
  );
44789
44812
  }
44790
44813
  function _fe({ filter: e }) {
44791
- const t = se((d) => d.themeStyle), {
44814
+ const t = ae((d) => d.themeStyle), {
44792
44815
  filteredRecords: n,
44793
44816
  isSingleSelect: r,
44794
44817
  allSelected: o,
@@ -44840,7 +44863,7 @@ function Efe({ filter: e }) {
44840
44863
  onClick: r,
44841
44864
  variant: "secondary",
44842
44865
  size: "sm",
44843
- className: ae("h-6 text-xs hover:underline", {
44866
+ className: se("h-6 text-xs hover:underline", {
44844
44867
  // 'bg-red-200 hover:bg-red-300': filterMode === 'exclude',
44845
44868
  // 'bg-green-200 hover:bg-green-300': filterMode === 'include',
44846
44869
  }),
@@ -45054,7 +45077,7 @@ var _6 = w6, E6 = S6, Nfe = C6;
45054
45077
  const Jg = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
45055
45078
  _6,
45056
45079
  {
45057
- className: ae("grid gap-2", e),
45080
+ className: se("grid gap-2", e),
45058
45081
  ...t,
45059
45082
  ref: n
45060
45083
  }
@@ -45064,7 +45087,7 @@ const Jl = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
45064
45087
  E6,
45065
45088
  {
45066
45089
  ref: n,
45067
- className: ae(
45090
+ className: se(
45068
45091
  "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
45069
45092
  e
45070
45093
  ),
@@ -45111,7 +45134,7 @@ function Ffe({ frame: e }) {
45111
45134
  ) : /* @__PURE__ */ Y(
45112
45135
  qg,
45113
45136
  {
45114
- className: ae(
45137
+ className: se(
45115
45138
  "group relative overflow-y-auto",
45116
45139
  t ? "m-4" : "mx-0"
45117
45140
  ),
@@ -45134,7 +45157,7 @@ function Ffe({ frame: e }) {
45134
45157
  /* @__PURE__ */ y(
45135
45158
  "div",
45136
45159
  {
45137
- className: ae("fixed z-10", {
45160
+ className: se("fixed z-10", {
45138
45161
  "invisible bottom-4 right-4 group-hover:visible": t,
45139
45162
  "right-6 top-6": !t
45140
45163
  }),
@@ -45142,7 +45165,7 @@ function Ffe({ frame: e }) {
45142
45165
  Xm,
45143
45166
  {
45144
45167
  disabled: l || c,
45145
- className: ae("h-7 p-1"),
45168
+ className: se("h-7 p-1"),
45146
45169
  pressed: t,
45147
45170
  onPressedChange: n,
45148
45171
  "aria-label": "Toggle bold",
@@ -45157,11 +45180,11 @@ function Ffe({ frame: e }) {
45157
45180
  }
45158
45181
  function $fe({ card: e, frame: t }) {
45159
45182
  var I, $, L;
45160
- const { customCards: n, placeholders: r } = Yr(), o = se((O) => O.themeStyle), i = se((O) => O.selectedSheetId), a = se(
45183
+ const { customCards: n, placeholders: r } = Yr(), o = ae((O) => O.themeStyle), i = ae((O) => O.selectedSheetId), a = ae(
45161
45184
  (O) => O.isDashboardEditing
45162
45185
  );
45163
- se((O) => O.selectedLensId);
45164
- const s = se((O) => O.dashboard.filters), l = s == null ? void 0 : s.find((O) => O.id === t.filterId && !O.hide), { setCardTitle: c, setCardDescription: u, setSelectedFrameId: d, updateFilter: h } = fn(), { updateFrame: f } = fn(), p = ((I = e.customCardPreferences) == null ? void 0 : I.showCardHeader) ?? !0, {
45186
+ ae((O) => O.selectedLensId);
45187
+ const s = ae((O) => O.dashboard.filters), l = s == null ? void 0 : s.find((O) => O.id === t.filterId && !O.hide), { setCardTitle: c, setCardDescription: u, setSelectedFrameId: d, updateFilter: h } = fn(), { updateFrame: f } = fn(), p = ((I = e.customCardPreferences) == null ? void 0 : I.showCardHeader) ?? !0, {
45165
45188
  isError: g,
45166
45189
  isLoading: m,
45167
45190
  isFetching: b,
@@ -45296,7 +45319,7 @@ function $fe({ card: e, frame: t }) {
45296
45319
  )) == null ? void 0 : N.map((z, B) => /* @__PURE__ */ y(
45297
45320
  Cx,
45298
45321
  {
45299
- className: ae(
45322
+ className: se(
45300
45323
  "h-full items-center rounded-none data-[state=active]:bg-muted data-[state=active]:shadow-none",
45301
45324
  {
45302
45325
  "border-r": B !== O.length - 1
@@ -45341,7 +45364,7 @@ function $fe({ card: e, frame: t }) {
45341
45364
  children: /* @__PURE__ */ y(
45342
45365
  Mf,
45343
45366
  {
45344
- className: ae("text-base", {
45367
+ className: se("text-base", {
45345
45368
  // 'animate-pulse': isLoading || isFetching,
45346
45369
  }),
45347
45370
  children: e.title
@@ -45354,7 +45377,7 @@ function $fe({ card: e, frame: t }) {
45354
45377
  /* @__PURE__ */ y($T, { className: "pr-1", children: /* @__PURE__ */ y(
45355
45378
  "div",
45356
45379
  {
45357
- className: ae(
45380
+ className: se(
45358
45381
  "h-2 w-2 rounded-full bg-green-500 transition-opacity",
45359
45382
  {
45360
45383
  "opacity-10": m || b
@@ -45375,7 +45398,7 @@ function $fe({ card: e, frame: t }) {
45375
45398
  children: /* @__PURE__ */ Y(
45376
45399
  RO,
45377
45400
  {
45378
- className: ae("", {
45401
+ className: se("", {
45379
45402
  // 'animate-pulse': isLoading || isFetching,
45380
45403
  }),
45381
45404
  children: [
@@ -45426,7 +45449,7 @@ function $fe({ card: e, frame: t }) {
45426
45449
  return /* @__PURE__ */ y(
45427
45450
  "div",
45428
45451
  {
45429
- className: ae("flex h-full flex-col", {
45452
+ className: se("flex h-full flex-col", {
45430
45453
  "animate-pulse": m || b
45431
45454
  }),
45432
45455
  children: S()
@@ -45439,7 +45462,7 @@ function zfe({
45439
45462
  className: n,
45440
45463
  ...r
45441
45464
  }) {
45442
- const o = J.useRef(null), i = se((m) => m.themeStyle), a = se((m) => m.isVisualEditing), s = se((m) => m.selectedFrameId), l = se(
45465
+ const o = J.useRef(null), i = ae((m) => m.themeStyle), a = ae((m) => m.isVisualEditing), s = ae((m) => m.selectedFrameId), l = ae(
45443
45466
  (m) => m.isDashboardEditing
45444
45467
  ), { setSelectedFrameId: c } = fn(), {
45445
45468
  setSelectedConnectionId: u,
@@ -45481,7 +45504,7 @@ function zfe({
45481
45504
  // fontFamily: currentStyle?.chart?.font?.family,
45482
45505
  borderRadius: i == null ? void 0 : i.cardBorderRadius
45483
45506
  },
45484
- className: ae(
45507
+ className: se(
45485
45508
  "relative flex h-full flex-col rounded-sm border bg-background shadow-sm",
45486
45509
  {
45487
45510
  "border-dashed border-foreground/50": s === e.id && l
@@ -45502,7 +45525,7 @@ const VC = E.forwardRef(
45502
45525
  ({ className: e, ...t }, n) => /* @__PURE__ */ y(
45503
45526
  "textarea",
45504
45527
  {
45505
- className: ae(
45528
+ className: se(
45506
45529
  "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
45507
45530
  e
45508
45531
  ),
@@ -45544,7 +45567,7 @@ function Vfe({
45544
45567
  return /* @__PURE__ */ y(
45545
45568
  cn,
45546
45569
  {
45547
- className: ae(
45570
+ className: se(
45548
45571
  "h-7 w-fit px-1 font-mono text-xs text-muted-foreground/70",
45549
45572
  t
45550
45573
  ),
@@ -45560,7 +45583,7 @@ function Vfe({
45560
45583
  );
45561
45584
  }
45562
45585
  function jfe({ filter: e }) {
45563
- const [t, n] = J.useState(e.sql), [r, o] = J.useState(!1), i = se((h) => h.selectedSheetId), { updateFilter: a, updateFilterId: s } = fn();
45586
+ const [t, n] = J.useState(e.sql), [r, o] = J.useState(!1), i = ae((h) => h.selectedSheetId), { updateFilter: a, updateFilterId: s } = fn();
45564
45587
  function l() {
45565
45588
  const h = { ...e, sql: t };
45566
45589
  a(h), o(!1);
@@ -45695,9 +45718,9 @@ function jfe({ filter: e }) {
45695
45718
  ] });
45696
45719
  }
45697
45720
  function Hfe({ filter: e }) {
45698
- const t = se(
45721
+ const t = ae(
45699
45722
  (s) => s.isDashboardEditing
45700
- ), n = se((s) => s.filterValues), r = n == null ? void 0 : n.some(
45723
+ ), n = ae((s) => s.filterValues), r = n == null ? void 0 : n.some(
45701
45724
  (s) => s.filterId === e.id
45702
45725
  ), { removeFilterValues: o, removeFilter: i, updateFilter: a } = fn();
45703
45726
  return /* @__PURE__ */ Y("div", { className: "group mb-1 flex h-5 items-center justify-between", children: [
@@ -45746,11 +45769,11 @@ function Hfe({ filter: e }) {
45746
45769
  const Wfe = c2.WidthProvider(c2.Responsive);
45747
45770
  function qfe({ sheet: e }) {
45748
45771
  var b, v;
45749
- const t = se(
45772
+ const t = ae(
45750
45773
  (w) => w.isDashboardEditing
45751
- ), n = se(
45774
+ ), n = ae(
45752
45775
  (w) => w.currentBreakpoint
45753
- ), r = se((w) => w.themeStyle), o = se((w) => w.selectedSheetId), i = e.layouts, a = se((w) => w.dashboard.filters), s = e.frames, { setSheetLayouts: l, setCurrentBreakpoint: c } = se(
45776
+ ), r = ae((w) => w.themeStyle), o = ae((w) => w.selectedSheetId), i = e.layouts, a = ae((w) => w.dashboard.filters), s = e.frames, { setSheetLayouts: l, setCurrentBreakpoint: c } = ae(
45754
45777
  (w) => w.actions
45755
45778
  );
45756
45779
  he(() => {
@@ -45798,7 +45821,7 @@ function qfe({ sheet: e }) {
45798
45821
  // fontFamily: themeStyle?.chart?.font?.family,
45799
45822
  borderRadius: r == null ? void 0 : r.cardBorderRadius
45800
45823
  },
45801
- className: ae(
45824
+ className: se(
45802
45825
  "z-50 flex flex-col rounded-md border bg-background px-3 py-2"
45803
45826
  ),
45804
45827
  ...S ? { "data-grid": S } : {},
@@ -45816,7 +45839,7 @@ function qfe({ sheet: e }) {
45816
45839
  "div",
45817
45840
  {
45818
45841
  role: "dashboard-frame-container",
45819
- className: ae(
45842
+ className: se(
45820
45843
  "group isolate overflow-hidden",
45821
45844
  // To display resize handles on hovering the card,
45822
45845
  r == null ? void 0 : r.dashboardCardContainer
@@ -45853,7 +45876,7 @@ function qfe({ sheet: e }) {
45853
45876
  margin: m,
45854
45877
  isDraggable: t,
45855
45878
  resizeHandles: t ? ["sw", "nw", "ne", "se", "e", "w"] : [],
45856
- className: ae(
45879
+ className: se(
45857
45880
  // `flex-grow min-h-[500px] relative overflow-x-hidden`,
45858
45881
  (v = r == null ? void 0 : r.gridLayout) == null ? void 0 : v.className
45859
45882
  ),
@@ -45872,12 +45895,12 @@ function qfe({ sheet: e }) {
45872
45895
  );
45873
45896
  }
45874
45897
  const k6 = Pn(({ className: e, handleAxis: t, ...n }, r) => {
45875
- const o = se((a) => a.themeStyle), i = (o == null ? void 0 : o.cardBorderRadius) || 0;
45898
+ const o = ae((a) => a.themeStyle), i = (o == null ? void 0 : o.cardBorderRadius) || 0;
45876
45899
  return /* @__PURE__ */ y(
45877
45900
  "div",
45878
45901
  {
45879
45902
  ref: r,
45880
- className: ae(
45903
+ className: se(
45881
45904
  `react-resizable-handle z-10 react-resizable-handle-${t} absolute border-foreground/40`,
45882
45905
  {
45883
45906
  "border-foreground/40 group-hover:border-2 group-hover:border-b-0 group-hover:border-r-0": t === "nw" && i < 11,
@@ -47367,7 +47390,7 @@ const She = ({
47367
47390
  }) => /* @__PURE__ */ y(
47368
47391
  K6,
47369
47392
  {
47370
- className: ae(
47393
+ className: se(
47371
47394
  "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
47372
47395
  e
47373
47396
  ),
@@ -47380,7 +47403,7 @@ const She = ({
47380
47403
  }) => /* @__PURE__ */ y(
47381
47404
  UC,
47382
47405
  {
47383
- className: ae(
47406
+ className: se(
47384
47407
  "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
47385
47408
  t
47386
47409
  ),
@@ -47396,7 +47419,7 @@ const She = ({
47396
47419
  }) => /* @__PURE__ */ y(
47397
47420
  UC,
47398
47421
  {
47399
- className: ae(
47422
+ className: se(
47400
47423
  "relative flex w-px items-start justify-end bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
47401
47424
  {
47402
47425
  "justify-start": r
@@ -47407,14 +47430,14 @@ const She = ({
47407
47430
  children: e && !r && /* @__PURE__ */ y(
47408
47431
  "div",
47409
47432
  {
47410
- className: ae("z-50 flex items-center justify-start", {
47433
+ className: se("z-50 flex items-center justify-start", {
47411
47434
  "border-l": r
47412
47435
  }),
47413
47436
  children: /* @__PURE__ */ y(
47414
47437
  cn,
47415
47438
  {
47416
47439
  variant: "secondary",
47417
- className: ae("h-7 p-0.5", {
47440
+ className: se("h-7 p-0.5", {
47418
47441
  "rounded-bl-none rounded-br-md rounded-tl-none rounded-tr-md": r,
47419
47442
  "mt-0 rounded-bl-md rounded-br-none rounded-tl-md rounded-tr-none": !r
47420
47443
  }),
@@ -47753,7 +47776,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
47753
47776
  const Whe = jhe, qhe = Hhe, A8 = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
47754
47777
  R8,
47755
47778
  {
47756
- className: ae(
47779
+ className: se(
47757
47780
  "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
47758
47781
  e
47759
47782
  ),
@@ -47768,7 +47791,7 @@ const I8 = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(qhe, {
47768
47791
  k8,
47769
47792
  {
47770
47793
  ref: n,
47771
- className: ae(
47794
+ className: se(
47772
47795
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
47773
47796
  e
47774
47797
  ),
@@ -47783,7 +47806,7 @@ const T8 = ({
47783
47806
  }) => /* @__PURE__ */ y(
47784
47807
  "div",
47785
47808
  {
47786
- className: ae(
47809
+ className: se(
47787
47810
  "flex flex-col space-y-2 text-center sm:text-left",
47788
47811
  e
47789
47812
  ),
@@ -47797,7 +47820,7 @@ const N8 = ({
47797
47820
  }) => /* @__PURE__ */ y(
47798
47821
  "div",
47799
47822
  {
47800
- className: ae(
47823
+ className: se(
47801
47824
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
47802
47825
  e
47803
47826
  ),
@@ -47809,7 +47832,7 @@ const L8 = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
47809
47832
  M8,
47810
47833
  {
47811
47834
  ref: n,
47812
- className: ae("text-lg font-semibold", e),
47835
+ className: se("text-lg font-semibold", e),
47813
47836
  ...t
47814
47837
  }
47815
47838
  ));
@@ -47818,7 +47841,7 @@ const F8 = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
47818
47841
  O8,
47819
47842
  {
47820
47843
  ref: n,
47821
- className: ae("text-sm text-muted-foreground", e),
47844
+ className: se("text-sm text-muted-foreground", e),
47822
47845
  ...t
47823
47846
  }
47824
47847
  ));
@@ -47827,7 +47850,7 @@ const $8 = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
47827
47850
  P8,
47828
47851
  {
47829
47852
  ref: n,
47830
- className: ae(nf(), e),
47853
+ className: se(nf(), e),
47831
47854
  ...t
47832
47855
  }
47833
47856
  ));
@@ -47836,7 +47859,7 @@ const z8 = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
47836
47859
  D8,
47837
47860
  {
47838
47861
  ref: n,
47839
- className: ae(
47862
+ className: se(
47840
47863
  nf({ variant: "outline" }),
47841
47864
  "mt-2 sm:mt-0",
47842
47865
  e
@@ -47846,7 +47869,7 @@ const z8 = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
47846
47869
  ));
47847
47870
  z8.displayName = D8.displayName;
47848
47871
  function Uhe({ open: e, setOpen: t }) {
47849
- const n = se((i) => i.selectedSheetId), { deleteSheet: r } = fn();
47872
+ const n = ae((i) => i.selectedSheetId), { deleteSheet: r } = fn();
47850
47873
  function o() {
47851
47874
  n && (r(n), t(!1));
47852
47875
  }
@@ -57506,7 +57529,7 @@ prismjs/prism.js:
57506
57529
  */
57507
57530
  function Wye({ children: e, handleRun: t }) {
57508
57531
  var c;
57509
- const n = se((u) => u.isVisualEditing), [r, o] = be(!1);
57532
+ const n = ae((u) => u.isVisualEditing), [r, o] = be(!1);
57510
57533
  pe(null);
57511
57534
  const i = (c = e == null ? void 0 : e.props) == null ? void 0 : c.className, a = i == null ? void 0 : i.split("-")[1], s = () => {
57512
57535
  navigator.clipboard.writeText(l).then(() => {
@@ -57552,7 +57575,7 @@ const qye = ({
57552
57575
  code: e,
57553
57576
  language: t = "sql"
57554
57577
  }) => {
57555
- const n = se((r) => r.theme);
57578
+ const n = ae((r) => r.theme);
57556
57579
  return /* @__PURE__ */ y(
57557
57580
  Hye,
57558
57581
  {
@@ -57646,7 +57669,7 @@ function Uye({
57646
57669
  ")"
57647
57670
  ] }),
57648
57671
  /* @__PURE__ */ y("p", { children: c }),
57649
- /* @__PURE__ */ y(
57672
+ l.toolName === "getDataAndChartType" && /* @__PURE__ */ y(
57650
57673
  cn,
57651
57674
  {
57652
57675
  variant: "outline",
@@ -57760,7 +57783,7 @@ function Qye({
57760
57783
  return e == null ? void 0 : e.map((i) => /* @__PURE__ */ Y(
57761
57784
  "div",
57762
57785
  {
57763
- className: ae("relative my-4 space-y-4 text-sm text-foreground/80"),
57786
+ className: se("relative my-4 space-y-4 text-sm text-foreground/80"),
57764
57787
  children: [
57765
57788
  /* @__PURE__ */ y(Gye, { message: i }),
57766
57789
  n && /* @__PURE__ */ y(Yye, { message: i }),
@@ -57860,7 +57883,7 @@ const Jye = Pn(
57860
57883
  ref: l,
57861
57884
  onFocus: a,
57862
57885
  placeholder: "Type your question...",
57863
- className: ae(
57886
+ className: se(
57864
57887
  "mb-6 min-h-7 resize-none border-none focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0"
57865
57888
  ),
57866
57889
  disabled: o,
@@ -60020,7 +60043,7 @@ function Owe() {
60020
60043
  var x, R, D;
60021
60044
  const { authToken: e } = Yr();
60022
60045
  SO();
60023
- const [t, n] = be(""), r = se((P) => P.selectedSheetId), o = se(
60046
+ const [t, n] = be(""), r = ae((P) => P.selectedSheetId), o = ae(
60024
60047
  (P) => P.dashboard.aiScopeTables
60025
60048
  ), { addFrame: i, setSelectedFrameId: a, setIsDashboardEditing: s } = fn(), {
60026
60049
  append: l,
@@ -60877,7 +60900,7 @@ const T2e = F1e, N2e = $1e, L2e = B1e, V1e = E.forwardRef(({ className: e, inset
60877
60900
  KF,
60878
60901
  {
60879
60902
  ref: o,
60880
- className: ae(
60903
+ className: se(
60881
60904
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
60882
60905
  t && "pl-8",
60883
60906
  e
@@ -60894,7 +60917,7 @@ const j1e = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(Fa, {
60894
60917
  XF,
60895
60918
  {
60896
60919
  ref: n,
60897
- className: ae(
60920
+ className: se(
60898
60921
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
60899
60922
  e
60900
60923
  ),
@@ -60907,7 +60930,7 @@ const H1e = E.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @_
60907
60930
  {
60908
60931
  ref: r,
60909
60932
  sideOffset: t,
60910
- className: ae(
60933
+ className: se(
60911
60934
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
60912
60935
  e
60913
60936
  ),
@@ -60919,7 +60942,7 @@ const W1e = E.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ *
60919
60942
  WF,
60920
60943
  {
60921
60944
  ref: r,
60922
- className: ae(
60945
+ className: se(
60923
60946
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
60924
60947
  t && "pl-8",
60925
60948
  e
@@ -60932,7 +60955,7 @@ const q1e = E.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
60932
60955
  qF,
60933
60956
  {
60934
60957
  ref: o,
60935
- className: ae(
60958
+ className: se(
60936
60959
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
60937
60960
  e
60938
60961
  ),
@@ -60949,7 +60972,7 @@ const U1e = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE_
60949
60972
  UF,
60950
60973
  {
60951
60974
  ref: r,
60952
- className: ae(
60975
+ className: se(
60953
60976
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
60954
60977
  e
60955
60978
  ),
@@ -60965,7 +60988,7 @@ const G1e = E.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ *
60965
60988
  HF,
60966
60989
  {
60967
60990
  ref: r,
60968
- className: ae(
60991
+ className: se(
60969
60992
  "px-2 py-1.5 text-sm font-semibold",
60970
60993
  t && "pl-8",
60971
60994
  e
@@ -60978,7 +61001,7 @@ const Y1e = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
60978
61001
  YF,
60979
61002
  {
60980
61003
  ref: n,
60981
- className: ae("-mx-1 my-1 h-px bg-muted", e),
61004
+ className: se("-mx-1 my-1 h-px bg-muted", e),
60982
61005
  ...t
60983
61006
  }
60984
61007
  ));
@@ -60993,7 +61016,7 @@ const q1 = Pn(
60993
61016
  variant: "ghost",
60994
61017
  onClick: r,
60995
61018
  ...i,
60996
- className: ae(`${fd}`, t),
61019
+ className: se(`${fd}`, t),
60997
61020
  children: e
60998
61021
  }
60999
61022
  ) }),
@@ -61015,7 +61038,7 @@ function X1e({
61015
61038
  open: e,
61016
61039
  setOpen: t
61017
61040
  }) {
61018
- const [n, r] = be(!1), [o, i] = be(_E), [a, s] = be(!1), l = pe(null), c = pe(null), u = se(
61041
+ const [n, r] = be(!1), [o, i] = be(_E), [a, s] = be(!1), l = pe(null), c = pe(null), u = ae(
61019
61042
  (I) => I.dashboard.aiScopeTables
61020
61043
  ), {
61021
61044
  append: d,
@@ -61422,9 +61445,9 @@ var F2e = Pn(function(e, t) {
61422
61445
  }));
61423
61446
  });
61424
61447
  function _xe(e) {
61425
- const t = e.current, { getSelectedFrame: n, addFrame: r, setSelectedFrameId: o } = fn(), i = se((u) => u.dashboard.sheets), s = se((u) => u.selectedSheetId) ?? (i == null ? void 0 : i[0].id), l = se(
61448
+ const t = e.current, { getSelectedFrame: n, addFrame: r, setSelectedFrameId: o } = fn(), i = ae((u) => u.dashboard.sheets), s = ae((u) => u.selectedSheetId) ?? (i == null ? void 0 : i[0].id), l = ae(
61426
61449
  (u) => u.isDashboardEditing
61427
- ), c = se((u) => u.isVisualEditing);
61450
+ ), c = ae((u) => u.isVisualEditing);
61428
61451
  he(() => {
61429
61452
  if (!l || c) return;
61430
61453
  async function u(f) {
@@ -61473,12 +61496,12 @@ function _xe(e) {
61473
61496
  ]);
61474
61497
  }
61475
61498
  function Exe() {
61476
- const { showAssistant: e } = Yr(), t = pe(null), n = pe(null), [r, o] = be(!1), [i, a] = be(!1), s = se((D) => D.themeStyle), l = se((D) => {
61499
+ const { showAssistant: e } = Yr(), t = pe(null), n = pe(null), [r, o] = be(!1), [i, a] = be(!1), s = ae((D) => D.themeStyle), l = ae((D) => {
61477
61500
  var P;
61478
61501
  return (P = D.dashboard) == null ? void 0 : P.sheets;
61479
- }), c = se(
61502
+ }), c = ae(
61480
61503
  (D) => D.isDashboardEditing
61481
- ), u = se((D) => D.selectedSheetId), { setSelectedSheetId: d, setSheetTitle: h, addSheet: f, setSheets: p } = fn();
61504
+ ), u = ae((D) => D.selectedSheetId), { setSelectedSheetId: d, setSheetTitle: h, addSheet: f, setSheets: p } = fn();
61482
61505
  _xe(n);
61483
61506
  function g(D) {
61484
61507
  var P, A;
@@ -61581,7 +61604,7 @@ function Exe() {
61581
61604
  style: {
61582
61605
  backgroundColor: v()
61583
61606
  },
61584
- className: ae("mt-0", {
61607
+ className: se("mt-0", {
61585
61608
  // 'bg-muted':
61586
61609
  // currentStyle?.canvasTheme === 'muted' ||
61587
61610
  // !currentStyle?.canvasTheme,
@@ -61600,7 +61623,7 @@ function Exe() {
61600
61623
  YO,
61601
61624
  {
61602
61625
  "data-role": "dashboard-tabs-container",
61603
- className: ae(
61626
+ className: se(
61604
61627
  "relative flex h-full flex-col",
61605
61628
  // need both flex and h-full are needed for chat box to work correctly
61606
61629
  s == null ? void 0 : s.dashboardTabsContainer
@@ -61663,7 +61686,7 @@ const $2e = QC, z2e = h8, Pxe = ZC, QF = E.forwardRef(({ className: e, ...t }, n
61663
61686
  Ob,
61664
61687
  {
61665
61688
  ref: n,
61666
- className: ae(
61689
+ className: se(
61667
61690
  "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
61668
61691
  e
61669
61692
  ),
@@ -61677,7 +61700,7 @@ const Dxe = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE_
61677
61700
  Ab,
61678
61701
  {
61679
61702
  ref: r,
61680
- className: ae(
61703
+ className: se(
61681
61704
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
61682
61705
  e
61683
61706
  ),
@@ -61699,7 +61722,7 @@ const Mxe = ({
61699
61722
  }) => /* @__PURE__ */ y(
61700
61723
  "div",
61701
61724
  {
61702
- className: ae(
61725
+ className: se(
61703
61726
  "flex flex-col space-y-1.5 text-center sm:text-left",
61704
61727
  e
61705
61728
  ),
@@ -61713,7 +61736,7 @@ const Oxe = ({
61713
61736
  }) => /* @__PURE__ */ y(
61714
61737
  "div",
61715
61738
  {
61716
- className: ae(
61739
+ className: se(
61717
61740
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
61718
61741
  e
61719
61742
  ),
@@ -61725,7 +61748,7 @@ const Axe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
61725
61748
  JC,
61726
61749
  {
61727
61750
  ref: n,
61728
- className: ae(
61751
+ className: se(
61729
61752
  "text-lg font-semibold leading-none tracking-tight",
61730
61753
  e
61731
61754
  ),
@@ -61737,7 +61760,7 @@ const Ixe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
61737
61760
  e_,
61738
61761
  {
61739
61762
  ref: n,
61740
- className: ae("text-sm text-muted-foreground", e),
61763
+ className: se("text-sm text-muted-foreground", e),
61741
61764
  ...t
61742
61765
  }
61743
61766
  ));
@@ -62053,7 +62076,7 @@ const oSe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
62053
62076
  Ar,
62054
62077
  {
62055
62078
  ref: n,
62056
- className: ae(
62079
+ className: se(
62057
62080
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
62058
62081
  e
62059
62082
  ),
@@ -62067,7 +62090,7 @@ const iSe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Y("div",
62067
62090
  Ar.Input,
62068
62091
  {
62069
62092
  ref: n,
62070
- className: ae(
62093
+ className: se(
62071
62094
  "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
62072
62095
  e
62073
62096
  ),
@@ -62080,7 +62103,7 @@ const aSe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
62080
62103
  Ar.List,
62081
62104
  {
62082
62105
  ref: n,
62083
- className: ae("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
62106
+ className: se("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
62084
62107
  ...t
62085
62108
  }
62086
62109
  ));
@@ -62098,7 +62121,7 @@ const lSe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
62098
62121
  Ar.Group,
62099
62122
  {
62100
62123
  ref: n,
62101
- className: ae(
62124
+ className: se(
62102
62125
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
62103
62126
  e
62104
62127
  ),
@@ -62110,7 +62133,7 @@ const cSe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
62110
62133
  Ar.Separator,
62111
62134
  {
62112
62135
  ref: n,
62113
- className: ae("-mx-1 h-px bg-border", e),
62136
+ className: se("-mx-1 h-px bg-border", e),
62114
62137
  ...t
62115
62138
  }
62116
62139
  ));
@@ -62119,7 +62142,7 @@ const uSe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
62119
62142
  Ar.Item,
62120
62143
  {
62121
62144
  ref: n,
62122
- className: ae(
62145
+ className: se(
62123
62146
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
62124
62147
  e
62125
62148
  ),
@@ -64920,7 +64943,7 @@ const W2e = /* @__PURE__ */ J.memo((e) => {
64920
64943
  });
64921
64944
  function BCe(e) {
64922
64945
  var m;
64923
- const t = se((b) => b.authToken) || e, n = ft(
64946
+ const t = ae((b) => b.authToken) || e, n = ft(
64924
64947
  (b) => b.selectedConnectionId
64925
64948
  ), r = ft(
64926
64949
  (b) => b.selectedDatabaseName
@@ -65293,7 +65316,7 @@ var Gb = R9, M9 = P9;
65293
65316
  const UCe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
65294
65317
  Gb,
65295
65318
  {
65296
- className: ae(
65319
+ className: se(
65297
65320
  "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
65298
65321
  e
65299
65322
  ),
@@ -65302,7 +65325,7 @@ const UCe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
65302
65325
  children: /* @__PURE__ */ y(
65303
65326
  M9,
65304
65327
  {
65305
- className: ae(
65328
+ className: se(
65306
65329
  "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
65307
65330
  )
65308
65331
  }
@@ -65870,7 +65893,7 @@ const J_e = J.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4
65870
65893
  ref: o,
65871
65894
  align: t,
65872
65895
  sideOffset: n,
65873
- className: ae(
65896
+ className: se(
65874
65897
  // z-49 is to make sure the popover is behind dropdown
65875
65898
  "w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
65876
65899
  e
@@ -65883,7 +65906,7 @@ J_e.displayName = gb.displayName;
65883
65906
  const eEe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
65884
65907
  Gb,
65885
65908
  {
65886
- className: ae(
65909
+ className: se(
65887
65910
  "peer inline-flex h-[22px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
65888
65911
  e
65889
65912
  ),
@@ -65892,7 +65915,7 @@ const eEe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(
65892
65915
  children: /* @__PURE__ */ y(
65893
65916
  M9,
65894
65917
  {
65895
- className: ae(
65918
+ className: se(
65896
65919
  "pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
65897
65920
  )
65898
65921
  }
@@ -66118,7 +66141,7 @@ const K2e = uEe, hEe = E.forwardRef(({ className: e, ...t }, n) => /* @__PURE__
66118
66141
  dEe,
66119
66142
  {
66120
66143
  ref: n,
66121
- className: ae("border-b", e),
66144
+ className: se("border-b", e),
66122
66145
  ...t
66123
66146
  }
66124
66147
  ));
@@ -66127,7 +66150,7 @@ const pEe = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE_
66127
66150
  Y9,
66128
66151
  {
66129
66152
  ref: r,
66130
- className: ae(
66153
+ className: se(
66131
66154
  "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
66132
66155
  e
66133
66156
  ),
@@ -66145,7 +66168,7 @@ const gEe = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE_
66145
66168
  ref: r,
66146
66169
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
66147
66170
  ...n,
66148
- children: /* @__PURE__ */ y("div", { className: ae("pb-4 pt-0", e), children: t })
66171
+ children: /* @__PURE__ */ y("div", { className: se("pb-4 pt-0", e), children: t })
66149
66172
  }
66150
66173
  ));
66151
66174
  gEe.displayName = K9.displayName;
@@ -66824,8 +66847,8 @@ export {
66824
66847
  Y1e as q,
66825
66848
  L2e as r,
66826
66849
  U1e as s,
66827
- ae as t,
66828
- se as u,
66850
+ se as t,
66851
+ ae as u,
66829
66852
  BH as v,
66830
66853
  ia as w,
66831
66854
  os as x,