react-semaphor 0.1.267 → 0.1.269

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.
Files changed (35) hide show
  1. package/dist/chunks/{dashboard-controls-BRv37g5w.js → dashboard-controls-DZbu0Qmg.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-d8j31cnQ.js → dashboard-controls-KZ0jtgY5.js} +108 -108
  3. package/dist/chunks/{dashboard-filter-controls-button-BOs9T2hG.js → dashboard-filter-controls-button-COiuEk99.js} +209 -199
  4. package/dist/chunks/dashboard-filter-controls-button-oAas5cZQ.js +11 -0
  5. package/dist/chunks/{dashboard-json-DjNS3G-C.js → dashboard-json-Bx9GdUw1.js} +1 -1
  6. package/dist/chunks/{dashboard-json-CnEYIbNI.js → dashboard-json-DUItaes0.js} +1 -1
  7. package/dist/chunks/{dashboard-summary-settings-dialog-CrBOuggE.js → dashboard-summary-settings-dialog-B3LysUNE.js} +1 -1
  8. package/dist/chunks/{dashboard-summary-settings-dialog-DOVwh8Cc.js → dashboard-summary-settings-dialog-DpQ0TcuD.js} +1 -1
  9. package/dist/chunks/{edit-dashboard-visual-D4UMcS6R.js → edit-dashboard-visual-BHITqHZD.js} +7808 -7327
  10. package/dist/chunks/edit-dashboard-visual-BKm-cHkR.js +193 -0
  11. package/dist/chunks/{index-C2i6CRUk.js → index-D9ofksI5.js} +523 -326
  12. package/dist/chunks/{index-D5jdzvu3.js → index-DP6lD0f3.js} +35936 -34785
  13. package/dist/chunks/{resource-management-panel-3XD0FrTD.js → resource-management-panel-BqZmY8eT.js} +16 -16
  14. package/dist/chunks/{resource-management-panel-ZK4SWoad.js → resource-management-panel-ngkCnMCx.js} +1 -1
  15. package/dist/chunks/{use-create-flow-overlay-state-Bb83NOgW.js → use-create-flow-overlay-state-BthYK7_T.js} +589 -591
  16. package/dist/chunks/use-create-flow-overlay-state-D0Rv8oRN.js +21 -0
  17. package/dist/chunks/use-visual-utils-CIn8Ieax.js +1 -0
  18. package/dist/chunks/{use-visual-utils-Bj7eAUMG.js → use-visual-utils-CJdoP-Px.js} +111 -123
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +5 -5
  23. package/dist/style.css +1 -1
  24. package/dist/surfboard/index.cjs +1 -1
  25. package/dist/surfboard/index.js +2 -2
  26. package/dist/types/dashboard.d.ts +38 -0
  27. package/dist/types/main.d.ts +40 -0
  28. package/dist/types/shared.d.ts +38 -0
  29. package/dist/types/surfboard.d.ts +38 -0
  30. package/dist/types/types.d.ts +38 -0
  31. package/package.json +1 -1
  32. package/dist/chunks/dashboard-filter-controls-button-DKRyKRsP.js +0 -11
  33. package/dist/chunks/edit-dashboard-visual-D6RokBEF.js +0 -188
  34. package/dist/chunks/use-create-flow-overlay-state-Cmt64wFE.js +0 -21
  35. package/dist/chunks/use-visual-utils-Bdwejpa1.js +0 -1
@@ -1,14 +1,14 @@
1
- import { jsxs as o, jsx as e, Fragment as I } from "react/jsx-runtime";
2
- import { bL as de, dn as qs, u as x, cy as ra, cz as na, B as M, cB as oa, cC as Q, dp as ia, N as qa, b as $, e as la, dq as Hs, cp as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a6 as K, dr as we, cG as We, ds as zs, dt as Pa, du as ja, c as Y, dv as za, dw as Bs, cX as ha, dx as Ks, dy as Qs, dz as Ws, dA as Js, dB as Xs, dC as Ys, H as Ae, V as Me, x as k, dD as Le, dE as Ba, dF as Ka, d5 as Zs, dG as et, w as Z, cF as J, dH as at, dI as st, dJ as Je, dK as tt, dL as rt, dM as Qa, dN as Wa, dO as Ce, dP as Ee, d1 as Xe, cL as Ye, dQ as Ze, cc as Ja, dR as ea, c7 as Xa, dS as nt, cO as Ya, cP as Za, cQ as es, cR as as, cS as ss, cT as ts, cU as rs, cV as aa, dT as ns, cx as ot, dU as it, af as lt, U as Ua, ae as De, dV as ct, al as dt, ag as je, dW as ut, dX as mt, dY as ht, aA as pt, dZ as ft, d_ as gt, bS as vt, bT as bt, bU as yt, d$ as Nt, bV as St, cD as xt, as as Dt, e0 as wt, e1 as Ct, dm as Et, e2 as At, e3 as Mt, cA as Lt, a8 as kt, cI as It, e4 as Ot, ak as Tt, a9 as _t, ar as Pt, e5 as Ut } from "./index-D5jdzvu3.js";
3
- import * as A from "react";
1
+ import { jsxs as o, jsx as e, Fragment as k } from "react/jsx-runtime";
2
+ import { bM as de, dq as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dr as ia, N as qa, b as $, e as la, ds as Hs, cr as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a7 as K, dt as we, cI as We, du as zs, dv as Pa, dw as ja, c as Y, dx as za, dy as Bs, cZ as ha, dz as Ks, dA as Qs, dB as Ws, dC as Js, dD as Xs, dE as Ys, H as Me, W as Ae, x as I, dF as Le, dG as Ba, dH as Ka, d7 as Zs, dI as et, w as Z, cH as J, dJ as at, dK as st, dL as Je, dM as tt, dN as rt, dO as Qa, dP as Wa, dQ as Ce, dR as Ee, d3 as Xe, cN as Ye, dS as Ze, ce as Ja, dT as ea, c9 as Xa, dU as nt, cQ as Ya, cR as Za, cS as es, cT as as, cU as ss, cV as ts, cW as rs, cX as aa, dV as ns, cz as ot, dW as it, ag as lt, U as Ua, af as De, dX as ct, am as dt, ah as je, dY as ut, dZ as mt, d_ as ht, aB as pt, d$ as ft, e0 as gt, bT as vt, bU as bt, bV as yt, e1 as Nt, bW as St, cF as xt, at as Dt, e2 as wt, e3 as Ct, dp as Et, e4 as Mt, e5 as At, cC as Lt, a9 as It, cK as kt, e6 as Ot, al as Tt, aa as _t, as as Pt, e7 as Ut } from "./index-DP6lD0f3.js";
3
+ import * as M from "react";
4
4
  import os, { useState as N, useMemo as W, useCallback as Ra, useEffect as Rt } from "react";
5
5
  import "react-dom";
6
- import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-BOs9T2hG.js";
6
+ import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-COiuEk99.js";
7
7
  import { l as Kt } from "./date-formatter-vkCj9Ct-.js";
8
- import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-DOVwh8Cc.js";
8
+ import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-DpQ0TcuD.js";
9
9
  import { u as Jt } from "./use-debounced-dirty-check-BwAbnX_5.js";
10
10
  import { s as ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
11
- import { S as Ga } from "./use-create-flow-overlay-state-Bb83NOgW.js";
11
+ import { S as Ga } from "./use-create-flow-overlay-state-BthYK7_T.js";
12
12
  /**
13
13
  * @license lucide-react v0.453.0 - ISC
14
14
  *
@@ -197,7 +197,7 @@ function nr() {
197
197
  (s) => s.actions.setDashboardTheme
198
198
  );
199
199
  return /* @__PURE__ */ o(ra, { children: [
200
- /* @__PURE__ */ e(na, { asChild: !0, children: /* @__PURE__ */ o(M, { className: "h-7 p-2", variant: "ghost", size: "sm", children: [
200
+ /* @__PURE__ */ e(na, { asChild: !0, children: /* @__PURE__ */ o(A, { className: "h-7 p-2", variant: "ghost", size: "sm", children: [
201
201
  /* @__PURE__ */ e(
202
202
  ar,
203
203
  {
@@ -293,7 +293,7 @@ function lr() {
293
293
  }
294
294
  return /* @__PURE__ */ o(la, { open: y, onOpenChange: h, children: [
295
295
  /* @__PURE__ */ e(Hs, { asChild: !0, children: /* @__PURE__ */ o(
296
- M,
296
+ A,
297
297
  {
298
298
  variant: "secondary",
299
299
  className: "h-7 p-2",
@@ -325,7 +325,7 @@ function lr() {
325
325
  ] }) }),
326
326
  s && /* @__PURE__ */ e("p", { className: "text-sm", children: "The lens name already exists. Use a differnet name." }),
327
327
  /* @__PURE__ */ e(js, { children: /* @__PURE__ */ e(
328
- M,
328
+ A,
329
329
  {
330
330
  size: "sm",
331
331
  variant: "outline",
@@ -467,36 +467,36 @@ const ur = async (a, n, s) => {
467
467
  await Ba(l, n, "DELETE", t);
468
468
  };
469
469
  function fr() {
470
- const { authToken: a, tokenProps: n } = $(), s = Ae();
471
- return Me({
470
+ const { authToken: a, tokenProps: n } = $(), s = Me();
471
+ return Ae({
472
472
  mutationFn: (t) => ur(n.apiServiceUrl, (a == null ? void 0 : a.accessToken) || "", t),
473
473
  onSuccess: () => {
474
- s.invalidateQueries({ queryKey: ["groups"] }), k.success("Group created successfully");
474
+ s.invalidateQueries({ queryKey: ["groups"] }), I.success("Group created successfully");
475
475
  },
476
476
  onError: (t) => {
477
- console.error("Failed to create group:", t), k.error("Failed to create group", {
477
+ console.error("Failed to create group:", t), I.error("Failed to create group", {
478
478
  description: Le(t, "Failed to create group")
479
479
  });
480
480
  }
481
481
  });
482
482
  }
483
483
  function gr() {
484
- const { authToken: a, tokenProps: n } = $(), s = Ae();
485
- return Me({
484
+ const { authToken: a, tokenProps: n } = $(), s = Me();
485
+ return Ae({
486
486
  mutationFn: (t) => mr(n.apiServiceUrl, (a == null ? void 0 : a.accessToken) || "", t),
487
487
  onSuccess: (t, l) => {
488
- s.invalidateQueries({ queryKey: ["groups"] }), s.removeQueries({ queryKey: ["group", l] }), k.success("Group deleted successfully");
488
+ s.invalidateQueries({ queryKey: ["groups"] }), s.removeQueries({ queryKey: ["group", l] }), I.success("Group deleted successfully");
489
489
  },
490
490
  onError: (t) => {
491
- console.error("Failed to delete group:", t), k.error("Failed to delete group", {
491
+ console.error("Failed to delete group:", t), I.error("Failed to delete group", {
492
492
  description: Le(t, "Failed to delete group")
493
493
  });
494
494
  }
495
495
  });
496
496
  }
497
497
  function vr() {
498
- const { authToken: a, tokenProps: n } = $(), s = Ae();
499
- return Me({
498
+ const { authToken: a, tokenProps: n } = $(), s = Me();
499
+ return Ae({
500
500
  mutationFn: ({
501
501
  groupId: t,
502
502
  data: l
@@ -504,18 +504,18 @@ function vr() {
504
504
  onSuccess: (t, l) => {
505
505
  s.invalidateQueries({ queryKey: ["group", l.groupId] }), s.invalidateQueries({
506
506
  queryKey: ["group-members", l.groupId]
507
- }), s.invalidateQueries({ queryKey: ["groups"] }), k.success("Members added successfully");
507
+ }), s.invalidateQueries({ queryKey: ["groups"] }), I.success("Members added successfully");
508
508
  },
509
509
  onError: (t) => {
510
- console.error("Failed to add group members:", t), k.error("Failed to add members", {
510
+ console.error("Failed to add group members:", t), I.error("Failed to add members", {
511
511
  description: Le(t, "Failed to add members")
512
512
  });
513
513
  }
514
514
  });
515
515
  }
516
516
  function br() {
517
- const { authToken: a, tokenProps: n } = $(), s = Ae();
518
- return Me({
517
+ const { authToken: a, tokenProps: n } = $(), s = Me();
518
+ return Ae({
519
519
  mutationFn: ({
520
520
  groupId: t,
521
521
  data: l
@@ -523,10 +523,10 @@ function br() {
523
523
  onSuccess: (t, l) => {
524
524
  s.invalidateQueries({ queryKey: ["group", l.groupId] }), s.invalidateQueries({
525
525
  queryKey: ["group-members", l.groupId]
526
- }), s.invalidateQueries({ queryKey: ["groups"] }), k.success("Members removed successfully");
526
+ }), s.invalidateQueries({ queryKey: ["groups"] }), I.success("Members removed successfully");
527
527
  },
528
528
  onError: (t) => {
529
- console.error("Failed to remove group members:", t), k.error("Failed to remove members", {
529
+ console.error("Failed to remove group members:", t), I.error("Failed to remove members", {
530
530
  description: Le(t, "Failed to remove members")
531
531
  });
532
532
  }
@@ -608,7 +608,7 @@ function yr({
608
608
  ] }),
609
609
  /* @__PURE__ */ o("div", { className: "flex justify-end gap-3", children: [
610
610
  /* @__PURE__ */ e(
611
- M,
611
+ A,
612
612
  {
613
613
  type: "button",
614
614
  variant: "outline",
@@ -620,14 +620,14 @@ function yr({
620
620
  }
621
621
  ),
622
622
  /* @__PURE__ */ e(
623
- M,
623
+ A,
624
624
  {
625
625
  type: "submit",
626
626
  disabled: y.isPending || !t.trim(),
627
- children: y.isPending ? /* @__PURE__ */ o(I, { children: [
627
+ children: y.isPending ? /* @__PURE__ */ o(k, { children: [
628
628
  /* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4 animate-spin" }),
629
629
  "Creating..."
630
- ] }) : /* @__PURE__ */ o(I, { children: [
630
+ ] }) : /* @__PURE__ */ o(k, { children: [
631
631
  /* @__PURE__ */ e(J, { className: "mr-2 h-4 w-4" }),
632
632
  "Create Group"
633
633
  ] })
@@ -639,19 +639,19 @@ function yr({
639
639
  function Nr(a, n = []) {
640
640
  let s = [];
641
641
  function t(c, m) {
642
- const u = A.createContext(m);
642
+ const u = M.createContext(m);
643
643
  u.displayName = c + "Context";
644
644
  const p = s.length;
645
645
  s = [...s, m];
646
646
  const y = (r) => {
647
647
  var C;
648
- const { scope: d, children: f, ...v } = r, b = ((C = d == null ? void 0 : d[a]) == null ? void 0 : C[p]) || u, S = A.useMemo(() => v, Object.values(v));
648
+ const { scope: d, children: f, ...v } = r, b = ((C = d == null ? void 0 : d[a]) == null ? void 0 : C[p]) || u, S = M.useMemo(() => v, Object.values(v));
649
649
  return /* @__PURE__ */ e(b.Provider, { value: S, children: f });
650
650
  };
651
651
  y.displayName = c + "Provider";
652
652
  function h(r, d) {
653
653
  var b;
654
- const f = ((b = d == null ? void 0 : d[a]) == null ? void 0 : b[p]) || u, v = A.useContext(f);
654
+ const f = ((b = d == null ? void 0 : d[a]) == null ? void 0 : b[p]) || u, v = M.useContext(f);
655
655
  if (v) return v;
656
656
  if (m !== void 0) return m;
657
657
  throw new Error(`\`${r}\` must be used within \`${c}\``);
@@ -659,10 +659,10 @@ function Nr(a, n = []) {
659
659
  return [y, h];
660
660
  }
661
661
  const l = () => {
662
- const c = s.map((m) => A.createContext(m));
662
+ const c = s.map((m) => M.createContext(m));
663
663
  return function(u) {
664
664
  const p = (u == null ? void 0 : u[a]) || c;
665
- return A.useMemo(
665
+ return M.useMemo(
666
666
  () => ({ [`__scope${a}`]: { ...u, [a]: p } }),
667
667
  [u, p]
668
668
  );
@@ -683,7 +683,7 @@ function Sr(...a) {
683
683
  const r = p(c)[`__scope${y}`];
684
684
  return { ...u, ...r };
685
685
  }, {});
686
- return A.useMemo(() => ({ [`__scope${n.scopeName}`]: m }), [m]);
686
+ return M.useMemo(() => ({ [`__scope${n.scopeName}`]: m }), [m]);
687
687
  };
688
688
  };
689
689
  return s.scopeName = n.scopeName, s;
@@ -707,7 +707,7 @@ var xr = [
707
707
  "svg",
708
708
  "ul"
709
709
  ], pa = xr.reduce((a, n) => {
710
- const s = at(`Primitive.${n}`), t = A.forwardRef((l, c) => {
710
+ const s = at(`Primitive.${n}`), t = M.forwardRef((l, c) => {
711
711
  const { asChild: m, ...u } = l, p = m ? s : n;
712
712
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(p, { ...u, ref: c });
713
713
  });
@@ -724,9 +724,9 @@ function wr() {
724
724
  return () => {
725
725
  };
726
726
  }
727
- var fa = "Avatar", [Cr] = Nr(fa), [Er, is] = Cr(fa), ls = A.forwardRef(
727
+ var fa = "Avatar", [Cr] = Nr(fa), [Er, is] = Cr(fa), ls = M.forwardRef(
728
728
  (a, n) => {
729
- const { __scopeAvatar: s, ...t } = a, [l, c] = A.useState("idle");
729
+ const { __scopeAvatar: s, ...t } = a, [l, c] = M.useState("idle");
730
730
  return /* @__PURE__ */ e(
731
731
  Er,
732
732
  {
@@ -739,10 +739,10 @@ var fa = "Avatar", [Cr] = Nr(fa), [Er, is] = Cr(fa), ls = A.forwardRef(
739
739
  }
740
740
  );
741
741
  ls.displayName = fa;
742
- var cs = "AvatarImage", ds = A.forwardRef(
742
+ var cs = "AvatarImage", ds = M.forwardRef(
743
743
  (a, n) => {
744
744
  const { __scopeAvatar: s, src: t, onLoadingStatusChange: l = () => {
745
- }, ...c } = a, m = is(cs, s), u = Ar(t, c), p = st((y) => {
745
+ }, ...c } = a, m = is(cs, s), u = Mr(t, c), p = st((y) => {
746
746
  l(y), m.onImageLoadingStatusChange(y);
747
747
  });
748
748
  return Je(() => {
@@ -751,10 +751,10 @@ var cs = "AvatarImage", ds = A.forwardRef(
751
751
  }
752
752
  );
753
753
  ds.displayName = cs;
754
- var us = "AvatarFallback", ms = A.forwardRef(
754
+ var us = "AvatarFallback", ms = M.forwardRef(
755
755
  (a, n) => {
756
- const { __scopeAvatar: s, delayMs: t, ...l } = a, c = is(us, s), [m, u] = A.useState(t === void 0);
757
- return A.useEffect(() => {
756
+ const { __scopeAvatar: s, delayMs: t, ...l } = a, c = is(us, s), [m, u] = M.useState(t === void 0);
757
+ return M.useEffect(() => {
758
758
  if (t !== void 0) {
759
759
  const p = window.setTimeout(() => u(!0), t);
760
760
  return () => window.clearTimeout(p);
@@ -766,8 +766,8 @@ ms.displayName = us;
766
766
  function Va(a, n) {
767
767
  return a ? n ? (a.src !== n && (a.src = n), a.complete && a.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
768
768
  }
769
- function Ar(a, { referrerPolicy: n, crossOrigin: s }) {
770
- const t = Dr(), l = A.useRef(null), c = t ? (l.current || (l.current = new window.Image()), l.current) : null, [m, u] = A.useState(
769
+ function Mr(a, { referrerPolicy: n, crossOrigin: s }) {
770
+ const t = Dr(), l = M.useRef(null), c = t ? (l.current || (l.current = new window.Image()), l.current) : null, [m, u] = M.useState(
771
771
  () => Va(c, a)
772
772
  );
773
773
  return Je(() => {
@@ -784,7 +784,7 @@ function Ar(a, { referrerPolicy: n, crossOrigin: s }) {
784
784
  }, [c, s, n]), m;
785
785
  }
786
786
  var hs = ls, ps = ds, fs = ms;
787
- const ga = A.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
787
+ const ga = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
788
788
  hs,
789
789
  {
790
790
  ref: s,
@@ -796,7 +796,7 @@ const ga = A.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
796
796
  }
797
797
  ));
798
798
  ga.displayName = hs.displayName;
799
- const Mr = A.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
799
+ const Ar = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
800
800
  ps,
801
801
  {
802
802
  ref: s,
@@ -804,8 +804,8 @@ const Mr = A.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
804
804
  ...n
805
805
  }
806
806
  ));
807
- Mr.displayName = ps.displayName;
808
- const va = A.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
807
+ Ar.displayName = ps.displayName;
808
+ const va = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
809
809
  fs,
810
810
  {
811
811
  ref: s,
@@ -875,12 +875,12 @@ function Lr({
875
875
  y(
876
876
  (E) => E.includes(g) ? E.filter((O) => O !== g) : [...E, g]
877
877
  );
878
- }, ke = (g) => {
878
+ }, Ie = (g) => {
879
879
  r(
880
880
  (E) => E.includes(g) ? E.filter((O) => O !== g) : [...E, g]
881
881
  );
882
882
  };
883
- return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(la, { open: a, onOpenChange: n, children: /* @__PURE__ */ o(da, { className: "max-w-3xl max-h-[80vh]", "aria-describedby": "group-members-description", children: [
883
+ return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(la, { open: a, onOpenChange: n, children: /* @__PURE__ */ o(da, { className: "max-w-3xl max-h-[80vh]", "aria-describedby": "group-members-description", children: [
884
884
  /* @__PURE__ */ o(ua, { children: [
885
885
  /* @__PURE__ */ e(ma, { children: s.name }),
886
886
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ o("p", { className: "text-sm text-muted-foreground", children: [
@@ -919,11 +919,11 @@ function Lr({
919
919
  /* @__PURE__ */ e("p", { className: "text-sm font-medium", children: m ? "No members found" : "No members yet" }),
920
920
  /* @__PURE__ */ e("p", { className: "text-xs mt-1", children: m ? "Try a different search" : 'Switch to the "Add Members" tab to add people to this group' })
921
921
  ] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: D.map((g) => /* @__PURE__ */ e(
922
- kr,
922
+ Ir,
923
923
  {
924
924
  member: g,
925
925
  selected: h.includes(g.userId),
926
- onToggle: () => ke(g.userId)
926
+ onToggle: () => Ie(g.userId)
927
927
  },
928
928
  g.id
929
929
  )) }) }),
@@ -935,16 +935,16 @@ function Lr({
935
935
  " selected"
936
936
  ] }),
937
937
  /* @__PURE__ */ e(
938
- M,
938
+ A,
939
939
  {
940
940
  variant: "destructive",
941
941
  size: "sm",
942
942
  onClick: ue,
943
943
  disabled: U.isPending,
944
- children: U.isPending ? /* @__PURE__ */ o(I, { children: [
944
+ children: U.isPending ? /* @__PURE__ */ o(k, { children: [
945
945
  /* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4 animate-spin" }),
946
946
  "Removing..."
947
- ] }) : /* @__PURE__ */ o(I, { children: [
947
+ ] }) : /* @__PURE__ */ o(k, { children: [
948
948
  /* @__PURE__ */ e(Ja, { className: "mr-2 h-4 w-4" }),
949
949
  "Remove Selected"
950
950
  ] })
@@ -970,7 +970,7 @@ function Lr({
970
970
  /* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
971
971
  /* @__PURE__ */ e("p", { className: "text-xs mt-1", children: m ? "Try a different search" : "All eligible users are already members" })
972
972
  ] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: H.map((g) => /* @__PURE__ */ e(
973
- Ir,
973
+ kr,
974
974
  {
975
975
  user: g,
976
976
  selected: p.includes(g.id),
@@ -986,14 +986,14 @@ function Lr({
986
986
  " selected"
987
987
  ] }),
988
988
  /* @__PURE__ */ e(
989
- M,
989
+ A,
990
990
  {
991
991
  onClick: j,
992
992
  disabled: P.isPending,
993
- children: P.isPending ? /* @__PURE__ */ o(I, { children: [
993
+ children: P.isPending ? /* @__PURE__ */ o(k, { children: [
994
994
  /* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4 animate-spin" }),
995
995
  "Adding..."
996
- ] }) : /* @__PURE__ */ o(I, { children: [
996
+ ] }) : /* @__PURE__ */ o(k, { children: [
997
997
  /* @__PURE__ */ e(ea, { className: "mr-2 h-4 w-4" }),
998
998
  "Add Members"
999
999
  ] })
@@ -1004,7 +1004,7 @@ function Lr({
1004
1004
  ] })
1005
1005
  ] }) }) });
1006
1006
  }
1007
- function kr({
1007
+ function Ir({
1008
1008
  member: a,
1009
1009
  selected: n,
1010
1010
  onToggle: s
@@ -1027,7 +1027,7 @@ function kr({
1027
1027
  }
1028
1028
  );
1029
1029
  }
1030
- function Ir({
1030
+ function kr({
1031
1031
  user: a,
1032
1032
  selected: n,
1033
1033
  onToggle: s
@@ -1075,7 +1075,7 @@ function Or({
1075
1075
  }, H = () => {
1076
1076
  t("groups"), U();
1077
1077
  };
1078
- return /* @__PURE__ */ o(I, { children: [
1078
+ return /* @__PURE__ */ o(k, { children: [
1079
1079
  /* @__PURE__ */ e(la, { open: a, onOpenChange: n, children: /* @__PURE__ */ o(da, { className: "max-w-4xl max-h-[80vh]", children: [
1080
1080
  /* @__PURE__ */ o(ua, { children: [
1081
1081
  /* @__PURE__ */ o(ma, { className: "flex items-center gap-2", children: [
@@ -1164,7 +1164,7 @@ function Or({
1164
1164
  onClick: V,
1165
1165
  disabled: v.isPending,
1166
1166
  className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
1167
- children: v.isPending ? /* @__PURE__ */ o(I, { children: [
1167
+ children: v.isPending ? /* @__PURE__ */ o(k, { children: [
1168
1168
  /* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4 animate-spin" }),
1169
1169
  "Deleting..."
1170
1170
  ] }) : "Delete Group"
@@ -1204,7 +1204,7 @@ function Tr({
1204
1204
  ] }),
1205
1205
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
1206
1206
  /* @__PURE__ */ e(
1207
- M,
1207
+ A,
1208
1208
  {
1209
1209
  variant: "ghost",
1210
1210
  size: "sm",
@@ -1214,7 +1214,7 @@ function Tr({
1214
1214
  }
1215
1215
  ),
1216
1216
  l && /* @__PURE__ */ e(
1217
- M,
1217
+ A,
1218
1218
  {
1219
1219
  variant: "ghost",
1220
1220
  size: "sm",
@@ -1329,7 +1329,7 @@ function _r(a) {
1329
1329
  return Array.from(t.values());
1330
1330
  }
1331
1331
  function zr() {
1332
- var ka, Ia, Oa, Ta;
1332
+ var Ia, ka, Oa, Ta;
1333
1333
  Gt(), Ft();
1334
1334
  const {
1335
1335
  authToken: a,
@@ -1343,7 +1343,7 @@ function zr() {
1343
1343
  x((i) => i.selectedSheetId);
1344
1344
  const d = x(
1345
1345
  (i) => i.isDashboardEditing
1346
- ), { setDashboardTitle: f } = x((i) => i.actions), [v, b] = N(!1), [S, C] = N(!1), [P, U] = N(!1), [_, V] = N(!1), [q, H] = N(!1), [D, j] = N(!1), [ue, ee] = N(null), [ke, g] = N(!1), [E, O] = N(null), [F, z] = N([]), [ae, me] = N(!1), gs = x((i) => i.isDashboardPanelOpen), vs = x(
1346
+ ), { setDashboardTitle: f } = x((i) => i.actions), [v, b] = N(!1), [S, C] = N(!1), [P, U] = N(!1), [_, V] = N(!1), [q, H] = N(!1), [D, j] = N(!1), [ue, ee] = N(null), [Ie, g] = N(!1), [E, O] = N(null), [F, z] = N([]), [ae, me] = N(!1), gs = x((i) => i.isDashboardPanelOpen), vs = x(
1347
1347
  (i) => i.actions.setIsDashboardPanelOpen
1348
1348
  ), bs = x((i) => i.filterValues), w = x((i) => i.isVisualEditing);
1349
1349
  Ua((i) => i.card);
@@ -1353,9 +1353,9 @@ function zr() {
1353
1353
  (i) => i.initialDashboard
1354
1354
  );
1355
1355
  De((i) => i.selectedVisual), x((i) => i.selectedFrameId), Ua((i) => i.frame);
1356
- const pe = se ? (Ia = se == null ? void 0 : se.permissions) == null ? void 0 : Ia.canEdit : (ka = he == null ? void 0 : he.permissions) == null ? void 0 : ka.canEdit, fe = x((i) => i.showFilters), ba = ct((i) => i.setPanelOpen), ys = x(
1356
+ const pe = se ? (ka = se == null ? void 0 : se.permissions) == null ? void 0 : ka.canEdit : (Ia = he == null ? void 0 : he.permissions) == null ? void 0 : Ia.canEdit, fe = x((i) => i.showFilters), ba = ct((i) => i.setPanelOpen), ys = x(
1357
1357
  (i) => i.showDashboardJSON
1358
- ), Ie = x((i) => i.onSaveFunction), ya = x(
1358
+ ), ke = x((i) => i.onSaveFunction), ya = x(
1359
1359
  (i) => i.actions.setShowFilters
1360
1360
  ), { setIsDashboardEditing: Na, setShowDashboardJSON: Sa } = x(
1361
1361
  (i) => i.actions
@@ -1373,7 +1373,7 @@ function zr() {
1373
1373
  }, 0);
1374
1374
  },
1375
1375
  []
1376
- ), As = async (i, L) => {
1376
+ ), Ms = async (i, L) => {
1377
1377
  if (!(r != null && r.id)) {
1378
1378
  console.log("No dashboard ID found");
1379
1379
  return;
@@ -1389,10 +1389,10 @@ function zr() {
1389
1389
  },
1390
1390
  {
1391
1391
  onSuccess: () => {
1392
- console.log("Dashboard title updated successfully"), k.success("Dashboard title updated");
1392
+ console.log("Dashboard title updated successfully"), I.success("Dashboard title updated");
1393
1393
  },
1394
1394
  onError: (G) => {
1395
- console.error("Failed to update dashboard title:", G), k.error("Failed to update dashboard title"), f(L);
1395
+ console.error("Failed to update dashboard title:", G), I.error("Failed to update dashboard title"), f(L);
1396
1396
  }
1397
1397
  }
1398
1398
  );
@@ -1408,7 +1408,7 @@ function zr() {
1408
1408
  }
1409
1409
  }
1410
1410
  }, [ge, r == null ? void 0 : r.id, xa]);
1411
- const be = n.orgUserId || n.tenantId, Ca = d && !w && be && pe, { setDashboard: Ge } = x((i) => i.actions), Ms = () => {
1411
+ const be = n.orgUserId || n.tenantId, Ca = d && !w && be && pe, { setDashboard: Ge } = x((i) => i.actions), As = () => {
1412
1412
  Na(!0);
1413
1413
  }, Fe = () => {
1414
1414
  Na(!1), Sa(!1), Re(null), ee(null);
@@ -1425,9 +1425,9 @@ function zr() {
1425
1425
  300,
1426
1426
  1e3,
1427
1427
  ze
1428
- ), Aa = Ra(() => R ? ze(r) !== ze(R) : !1, [r, R]), $e = Ea || Ls, ne = _e || re.isPending, ks = () => {
1429
- Aa() ? (ve("close"), te(!0)) : (Fe(), ye());
1430
- }, Is = async () => {
1428
+ ), Ma = Ra(() => R ? ze(r) !== ze(R) : !1, [r, R]), $e = Ea || Ls, ne = _e || re.isPending, Is = () => {
1429
+ Ma() ? (ve("close"), te(!0)) : (Fe(), ye());
1430
+ }, ks = async () => {
1431
1431
  await Ve({
1432
1432
  closeAfterSave: !0,
1433
1433
  navigateHomeAfterSave: Ue === "home"
@@ -1437,7 +1437,7 @@ function zr() {
1437
1437
  }, Ts = () => {
1438
1438
  R && (Ge(R), ye());
1439
1439
  }, _s = () => {
1440
- if (d && Aa()) {
1440
+ if (d && Ma()) {
1441
1441
  ve("home"), te(!0);
1442
1442
  return;
1443
1443
  }
@@ -1469,7 +1469,7 @@ function zr() {
1469
1469
  B
1470
1470
  ) : xe && He.actions.clearPendingDashboardDraftMigration();
1471
1471
  }
1472
- Pe(!1), k.success("Dashboard saved!"), Re($s), g(!1), me(!1), G && (Fe(), ye(), Fs && Oe()), ve("close");
1472
+ Pe(!1), I.success("Dashboard saved!"), Re($s), g(!1), me(!1), G && (Fe(), ye(), Fs && Oe()), ve("close");
1473
1473
  },
1474
1474
  onError: (T) => {
1475
1475
  Pe(!1), O("Failed to save dashboard. Please try again.");
@@ -1483,7 +1483,7 @@ function zr() {
1483
1483
  errors: Ne,
1484
1484
  dashboard: L || void 0
1485
1485
  })
1486
- ), k.error("Failed to save dashboard");
1486
+ ), I.error("Failed to save dashboard");
1487
1487
  }
1488
1488
  }
1489
1489
  );
@@ -1504,11 +1504,11 @@ function zr() {
1504
1504
  n.apiServiceUrl,
1505
1505
  G,
1506
1506
  a == null ? void 0 : a.accessToken
1507
- ), k.success("Lens saved"), Ie == null || Ie(i), b(!1);
1507
+ ), I.success("Lens saved"), ke == null || ke(i), b(!1);
1508
1508
  }
1509
- const Ma = (h == null ? void 0 : h.name) || r.title;
1509
+ const Aa = (h == null ? void 0 : h.name) || r.title;
1510
1510
  re.isPending && console.log("Title during update:", {
1511
- title: Ma,
1511
+ title: Aa,
1512
1512
  dashboardStateTitle: r.title,
1513
1513
  dashboardId: r == null ? void 0 : r.id,
1514
1514
  currentLensName: h == null ? void 0 : h.name
@@ -1525,7 +1525,7 @@ function zr() {
1525
1525
  role: "dashboard-controls",
1526
1526
  children: [
1527
1527
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
1528
- La && /* @__PURE__ */ o(I, { children: [
1528
+ La && /* @__PURE__ */ o(k, { children: [
1529
1529
  /* @__PURE__ */ e(
1530
1530
  K,
1531
1531
  {
@@ -1557,11 +1557,11 @@ function zr() {
1557
1557
  role: "status",
1558
1558
  children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Loading dashboard title" })
1559
1559
  }
1560
- ) : /* @__PURE__ */ o(I, { children: [
1560
+ ) : /* @__PURE__ */ o(k, { children: [
1561
1561
  /* @__PURE__ */ e(
1562
1562
  gt,
1563
1563
  {
1564
- value: Ma || "Untitled Dashboard",
1564
+ value: Aa || "Untitled Dashboard",
1565
1565
  onSave: (i) => {
1566
1566
  console.log("EditableText onSave called:", {
1567
1567
  newTitle: i,
@@ -1569,7 +1569,7 @@ function zr() {
1569
1569
  dashboardId: r == null ? void 0 : r.id
1570
1570
  });
1571
1571
  const L = (r == null ? void 0 : r.title) || "";
1572
- f(i), As(i, L);
1572
+ f(i), Ms(i, L);
1573
1573
  },
1574
1574
  isEditable: pe && !h,
1575
1575
  displayClassName: "text-sm font-medium",
@@ -1580,7 +1580,7 @@ function zr() {
1580
1580
  ),
1581
1581
  Us && oe && /* @__PURE__ */ e(vt, { children: /* @__PURE__ */ o(bt, { children: [
1582
1582
  /* @__PURE__ */ e(yt, { asChild: !0, children: /* @__PURE__ */ e(
1583
- M,
1583
+ A,
1584
1584
  {
1585
1585
  variant: "ghost",
1586
1586
  size: "icon",
@@ -1603,18 +1603,18 @@ function zr() {
1603
1603
  ] }))
1604
1604
  ] }),
1605
1605
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
1606
- w && /* @__PURE__ */ o(I, { children: [
1606
+ w && /* @__PURE__ */ o(k, { children: [
1607
1607
  /* @__PURE__ */ e(Vt, { className: "mr-2" }),
1608
1608
  /* @__PURE__ */ e(qt, { className: "h-7" })
1609
1609
  ] }),
1610
- t && !w && /* @__PURE__ */ o(I, { children: [
1610
+ t && !w && /* @__PURE__ */ o(k, { children: [
1611
1611
  /* @__PURE__ */ e(
1612
1612
  K,
1613
1613
  {
1614
1614
  tooltip: "Copy Token",
1615
1615
  onClick: () => {
1616
1616
  var i;
1617
- a != null && a.accessToken && ((i = navigator == null ? void 0 : navigator.clipboard) != null && i.writeText ? navigator.clipboard.writeText(a.accessToken).then(() => k.success("Token copied to clipboard")).catch(() => k.error("Unable to copy token")) : k.error("Clipboard not available"));
1617
+ a != null && a.accessToken && ((i = navigator == null ? void 0 : navigator.clipboard) != null && i.writeText ? navigator.clipboard.writeText(a.accessToken).then(() => I.success("Token copied to clipboard")).catch(() => I.error("Unable to copy token")) : I.error("Clipboard not available"));
1618
1618
  },
1619
1619
  className: "h-7 p-2",
1620
1620
  children: /* @__PURE__ */ e(xt, { className: "h-4 w-4" })
@@ -1671,7 +1671,7 @@ function zr() {
1671
1671
  d && !w && be && t && c && /* @__PURE__ */ e(lr, {}),
1672
1672
  !w && be && t && c && /* @__PURE__ */ e(cr, {}),
1673
1673
  d && !w && be && h && t && c && /* @__PURE__ */ o(
1674
- M,
1674
+ A,
1675
1675
  {
1676
1676
  className: "h-7 p-2",
1677
1677
  variant: "secondary",
@@ -1685,7 +1685,7 @@ function zr() {
1685
1685
  }
1686
1686
  ),
1687
1687
  d && !w && c && /* @__PURE__ */ o(
1688
- M,
1688
+ A,
1689
1689
  {
1690
1690
  variant: "outline",
1691
1691
  className: "h-7 p-2",
@@ -1699,11 +1699,11 @@ function zr() {
1699
1699
  }
1700
1700
  ),
1701
1701
  !w && !d && pe && c && /* @__PURE__ */ o(
1702
- M,
1702
+ A,
1703
1703
  {
1704
1704
  variant: "outline",
1705
1705
  className: "h-7 p-2",
1706
- onClick: Ms,
1706
+ onClick: As,
1707
1707
  size: "sm",
1708
1708
  children: [
1709
1709
  /* @__PURE__ */ e(Et, { className: "mr-2 h-4 w-4" }),
@@ -1712,7 +1712,7 @@ function zr() {
1712
1712
  }
1713
1713
  ),
1714
1714
  Ca && c && Ea && /* @__PURE__ */ o(
1715
- M,
1715
+ A,
1716
1716
  {
1717
1717
  variant: "outline",
1718
1718
  className: "h-7 p-2",
@@ -1720,14 +1720,14 @@ function zr() {
1720
1720
  size: "sm",
1721
1721
  disabled: ne,
1722
1722
  children: [
1723
- /* @__PURE__ */ e(At, { className: "mr-2 h-4 w-4" }),
1723
+ /* @__PURE__ */ e(Mt, { className: "mr-2 h-4 w-4" }),
1724
1724
  "Undo"
1725
1725
  ]
1726
1726
  }
1727
1727
  ),
1728
1728
  Ca && c && /* @__PURE__ */ o("div", { className: "relative inline-flex", children: [
1729
1729
  /* @__PURE__ */ o(
1730
- M,
1730
+ A,
1731
1731
  {
1732
1732
  className: Y("h-7 p-2", !$e && "opacity-60"),
1733
1733
  disabled: ne || !$e,
@@ -1748,22 +1748,22 @@ function zr() {
1748
1748
  )
1749
1749
  ] }),
1750
1750
  !w && d && t && c && /* @__PURE__ */ e("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ e(
1751
- M,
1751
+ A,
1752
1752
  {
1753
1753
  className: "h-7 p-2",
1754
1754
  onClick: () => Sa(!ys),
1755
1755
  size: "sm",
1756
1756
  variant: "ghost",
1757
- children: /* @__PURE__ */ e(Mt, { className: "h-4 w-4" })
1757
+ children: /* @__PURE__ */ e(At, { className: "h-4 w-4" })
1758
1758
  }
1759
1759
  ) }),
1760
1760
  !w && t && /* @__PURE__ */ e(nr, {}),
1761
1761
  d && !w && c && /* @__PURE__ */ o(
1762
- M,
1762
+ A,
1763
1763
  {
1764
1764
  variant: "outline",
1765
1765
  className: "h-7 p-2",
1766
- onClick: ks,
1766
+ onClick: Is,
1767
1767
  children: [
1768
1768
  /* @__PURE__ */ e(za, { className: "mr-2 h-4 w-4" }),
1769
1769
  "Close"
@@ -1793,13 +1793,13 @@ function zr() {
1793
1793
  onClick: () => V(!0),
1794
1794
  className: "flex items-center gap-2",
1795
1795
  children: [
1796
- /* @__PURE__ */ e(kt, { className: "mr-2 h-4 w-4" }),
1796
+ /* @__PURE__ */ e(It, { className: "mr-2 h-4 w-4" }),
1797
1797
  "Schedule Dashboard"
1798
1798
  ]
1799
1799
  }
1800
1800
  ),
1801
1801
  /* @__PURE__ */ e(We, {}),
1802
- ws && /* @__PURE__ */ o(I, { children: [
1802
+ ws && /* @__PURE__ */ o(k, { children: [
1803
1803
  /* @__PURE__ */ e(we, { className: "px-2.5 text-xs font-medium text-muted-foreground", children: "Access" }),
1804
1804
  /* @__PURE__ */ o(
1805
1805
  Q,
@@ -1821,7 +1821,7 @@ function zr() {
1821
1821
  onClick: () => H(!0),
1822
1822
  className: "flex items-center gap-2",
1823
1823
  children: [
1824
- /* @__PURE__ */ e(It, { className: "mr-2 h-4 w-4" }),
1824
+ /* @__PURE__ */ e(kt, { className: "mr-2 h-4 w-4" }),
1825
1825
  "Calendar Preferences"
1826
1826
  ]
1827
1827
  }
@@ -1888,7 +1888,7 @@ function zr() {
1888
1888
  /* @__PURE__ */ e(
1889
1889
  Ya,
1890
1890
  {
1891
- open: ke,
1891
+ open: Ie,
1892
1892
  onOpenChange: (i) => {
1893
1893
  !i && _e && !E || (g(i), i || (O(null), z([]), me(!1)));
1894
1894
  },
@@ -1901,7 +1901,7 @@ function zr() {
1901
1901
  /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: F.slice(0, 5).map((i) => /* @__PURE__ */ e("li", { children: i }, i)) })
1902
1902
  ] })
1903
1903
  ] }),
1904
- /* @__PURE__ */ e(ts, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: E ? /* @__PURE__ */ o(I, { children: [
1904
+ /* @__PURE__ */ e(ts, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: E ? /* @__PURE__ */ o(k, { children: [
1905
1905
  /* @__PURE__ */ e(
1906
1906
  rs,
1907
1907
  {
@@ -1944,7 +1944,7 @@ function zr() {
1944
1944
  onOpenChange: (i) => {
1945
1945
  te(i);
1946
1946
  },
1947
- onSave: Is,
1947
+ onSave: ks,
1948
1948
  onDiscard: Os,
1949
1949
  isSaving: _e,
1950
1950
  saveLabel: "Save",