react-semaphor 0.1.308 → 0.1.310

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 (48) hide show
  1. package/dist/brand-studio/index.cjs +1 -1
  2. package/dist/brand-studio/index.js +4 -4
  3. package/dist/chunks/{braces-BHDm9arh.js → braces-B_1DhXjs.js} +1 -1
  4. package/dist/chunks/{braces-DEq8EJtw.js → braces-BataYVhi.js} +1 -1
  5. package/dist/chunks/{chevrons-up-down-DDEY9beZ.js → chevrons-up-down-2PuJgXa0.js} +1 -1
  6. package/dist/chunks/{chevrons-up-down-Cbtggnqv.js → chevrons-up-down-CfMX77Ug.js} +1 -1
  7. package/dist/chunks/common-types-4bjoIgvm.js +75 -0
  8. package/dist/chunks/common-types-C73-Ud1-.js +1 -0
  9. package/dist/chunks/{dashboard-controls-DviftQE7.js → dashboard-controls-CZH2CHE6.js} +1 -1
  10. package/dist/chunks/{dashboard-controls-DTxSUWvy.js → dashboard-controls-DKNSTyu3.js} +83 -83
  11. package/dist/chunks/{dashboard-filter-controls-button-DHKfgPah.js → dashboard-filter-controls-button-C5FGXiyJ.js} +4 -4
  12. package/dist/chunks/{dashboard-filter-controls-button-D0nrJ7wl.js → dashboard-filter-controls-button-CRYFNfgr.js} +1 -1
  13. package/dist/chunks/{dashboard-json-DZmsUV5n.js → dashboard-json-A9m16zgO.js} +2 -2
  14. package/dist/chunks/{dashboard-json-DYzZ0G6T.js → dashboard-json-CUYxXIbj.js} +1 -1
  15. package/dist/chunks/{dashboard-summary-settings-dialog-QbUTp92u.js → dashboard-summary-settings-dialog-BFldiulJ.js} +3 -3
  16. package/dist/chunks/{dashboard-summary-settings-dialog-Cc3yKCu4.js → dashboard-summary-settings-dialog-Dl80Vf3Y.js} +1 -1
  17. package/dist/chunks/{edit-dashboard-visual-BS3LKMJe.js → edit-dashboard-visual-Bt6wP1pc.js} +32 -32
  18. package/dist/chunks/{edit-dashboard-visual-CmgculGv.js → edit-dashboard-visual-C013lDvS.js} +1251 -1261
  19. package/dist/chunks/{index-C0zD3JgK.js → index-C_mYCH5V.js} +209 -209
  20. package/dist/chunks/{index-BxYIELMe.js → index-scc12bkM.js} +7498 -7493
  21. package/dist/chunks/{palette-CteErylX.js → palette-CuxyTPBF.js} +1 -1
  22. package/dist/chunks/{palette-CNKSAIrt.js → palette-DIqG9FgB.js} +1 -1
  23. package/dist/chunks/{resource-management-panel-B4QM3fZ_.js → resource-management-panel-CkS-1IEw.js} +1 -1
  24. package/dist/chunks/{resource-management-panel-8cHoj8SV.js → resource-management-panel-xJtqTzS8.js} +3 -3
  25. package/dist/chunks/{save-B1-nDZwS.js → save-CP9_rxYk.js} +1 -1
  26. package/dist/chunks/{save-BVVnWGeb.js → save-CPHrveZg.js} +1 -1
  27. package/dist/chunks/{switch-BG4RWnrq.js → switch-BFPV36rd.js} +31 -31
  28. package/dist/chunks/{switch-BZn7R_Cp.js → switch-DXHYEa_J.js} +1586 -1637
  29. package/dist/chunks/{use-create-flow-overlay-state-CeWstFjy.js → use-create-flow-overlay-state-C77yBFiq.js} +4 -4
  30. package/dist/chunks/{use-create-flow-overlay-state-Bmb471Fp.js → use-create-flow-overlay-state-nhcTzyJQ.js} +1 -1
  31. package/dist/chunks/{use-visual-utils-CmfDomt0.js → use-visual-utils-BqljNzWn.js} +2 -2
  32. package/dist/chunks/{use-visual-utils-DflfgX9g.js → use-visual-utils-Cm2IkP1c.js} +1 -1
  33. package/dist/dashboard/index.cjs +1 -1
  34. package/dist/dashboard/index.js +2 -2
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.js +107 -104
  37. package/dist/surfboard/index.cjs +1 -1
  38. package/dist/surfboard/index.js +3 -3
  39. package/dist/types/dashboard.d.ts +17 -5
  40. package/dist/types/index.cjs +1 -1
  41. package/dist/types/index.js +16 -7
  42. package/dist/types/main.d.ts +39 -5
  43. package/dist/types/shared.d.ts +17 -5
  44. package/dist/types/surfboard.d.ts +17 -5
  45. package/dist/types/types.d.ts +310 -57
  46. package/package.json +6 -1
  47. package/dist/chunks/common-types-C6cAQgyh.js +0 -9
  48. package/dist/chunks/common-types-nBuCd3u2.js +0 -1
@@ -1,19 +1,19 @@
1
1
  import { jsx as e, jsxs as c, Fragment as T } from "react/jsx-runtime";
2
- import { c as j, u as w, B as L, aI as Nt, m as wt, L as dt, I as ue, a as Y, aJ as Re, aK as da, aL as ua, E as ls, f as X, aM as ds, aN as us, aO as ut, T as ma, q as ha, r as _e, t as Ue, s as mt, aP as pa, aQ as ms, n as ta, z as hs, A as ps, D as fs, F as gs, K as vs, aR as bs } from "./switch-BZn7R_Cp.js";
3
- import { c4 as ys, u as K, b as Ge, c5 as xs, bk as ht, c as $e, d as Ve, e as qe, f as St, n as Ns, c6 as de, bx as Te, c7 as ws, c8 as aa, c9 as fa, ca as ga, cb as Ss, bN as Dt, cc as Ds, cd as Cs, ce as Es, cf as Is, cg as Ms, ch as Ls, q as ze, M as Be, o as M, bU as As, ci as ks, cj as Os, bR as pt, ck as ft, bw as Ct, bb as va, b9 as ba, cl as Ps, bE as ya, bF as xa, bG as Na, bH as wa, bI as Sa, bJ as Da, bK as Ca, bL as gt, cm as Ts, cn as _s, co as Us, bo as Fs, cp as Rs, cq as Gs, W as $s, V as Oe, cr as Vs, a0 as qs, X as nt, cs as zs, ct as Bs, cu as Hs, ac as js, cv as Ks, I as rt, cw as Qs, cx as Ws, cy as Js, c3 as Ys, bp as Xs, bq as Zs, br as en, bs as tn, bt as $, bY as an, K as sn, bz as nn, cz as rn, bu as sa, cA as on, cB as cn, cC as ln, $ as dn, L as un, cD as mn, H as vt } from "./index-BxYIELMe.js";
2
+ import { c as j, u as N, B as L, aC as wt, m as Nt, L as dt, I as ue, a as Y, aD as Re, aE as da, aF as ua, E as ls, f as X, aG as ds, aH as us, aI as ut, T as ma, q as ha, r as _e, t as Ue, s as mt, aJ as pa, aK as ms, n as ta, z as hs, A as ps, D as fs, F as gs, K as vs, aL as bs } from "./switch-DXHYEa_J.js";
3
+ import { c4 as ys, u as K, b as Ge, c5 as xs, bk as ht, c as $e, d as Ve, e as qe, f as St, n as ws, c6 as de, bx as Te, c7 as Ns, c8 as aa, c9 as fa, ca as ga, cb as Ss, bN as Dt, cc as Ds, cd as Cs, ce as Es, cf as Is, cg as Ms, ch as Ls, q as ze, M as He, o as M, bU as As, ci as ks, cj as Os, bR as pt, ck as ft, bw as Ct, bb as va, b9 as ba, cl as Ps, bE as ya, bF as xa, bG as wa, bH as Na, bI as Sa, bJ as Da, bK as Ca, bL as gt, cm as Ts, cn as _s, co as Us, bo as Fs, cp as Rs, cq as Gs, W as $s, V as Oe, cr as Vs, a0 as qs, X as nt, cs as zs, ct as Hs, cu as Bs, ac as js, cv as Ks, I as rt, cw as Qs, cx as Ws, cy as Js, c3 as Ys, bp as Xs, bq as Zs, br as en, bs as tn, bt as $, bY as an, K as sn, bz as nn, cz as rn, bu as sa, cA as on, cB as cn, cC as ln, $ as dn, L as un, cD as mn, H as vt } from "./index-scc12bkM.js";
4
4
  import * as A from "react";
5
- import Ea, { useState as N, useMemo as F, useCallback as Fe, useEffect as ot } from "react";
5
+ import Ea, { useState as w, useMemo as F, useCallback as Fe, useEffect as ot } from "react";
6
6
  import "./index-CJdxSyQq.js";
7
7
  import "react-dom";
8
- import { b as hn, u as pn, A as fn, V as gn, c as vn, D as bn, N as yn, U as xn } from "./dashboard-filter-controls-button-DHKfgPah.js";
9
- import { d as Nn } from "./index-DFOb_6HB.js";
10
- import { C as wn, D as Sn } from "./dashboard-summary-settings-dialog-QbUTp92u.js";
8
+ import { b as hn, u as pn, A as fn, V as gn, c as vn, D as bn, N as yn, U as xn } from "./dashboard-filter-controls-button-C5FGXiyJ.js";
9
+ import { d as wn } from "./index-DFOb_6HB.js";
10
+ import { C as Nn, D as Sn } from "./dashboard-summary-settings-dialog-BFldiulJ.js";
11
11
  import { u as Dn } from "./use-debounced-dirty-check-BwAbnX_5.js";
12
12
  import { s as it } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
13
- import { u as Cn, e as En } from "./use-create-flow-overlay-state-CeWstFjy.js";
14
- import { S as na } from "./save-B1-nDZwS.js";
15
- import { P as In } from "./palette-CNKSAIrt.js";
16
- import { B as Mn } from "./braces-DEq8EJtw.js";
13
+ import { u as Cn, e as En } from "./use-create-flow-overlay-state-C77yBFiq.js";
14
+ import { S as na } from "./save-CP9_rxYk.js";
15
+ import { P as In } from "./palette-DIqG9FgB.js";
16
+ import { B as Mn } from "./braces-BataYVhi.js";
17
17
  /**
18
18
  * @license lucide-react v0.453.0 - ISC
19
19
  *
@@ -232,7 +232,7 @@ process.env.NODE_ENV === "production" ? yt.exports = Un() : yt.exports = Fn();
232
232
  var Rn = yt.exports;
233
233
  const Pe = ["light", "dark", "system"];
234
234
  function Gn() {
235
- const { theme: t, setTheme: a } = ys(), n = w(
235
+ const { theme: t, setTheme: a } = ys(), n = N(
236
236
  (l) => l.actions.setDashboardTheme
237
237
  );
238
238
  function s() {
@@ -258,7 +258,7 @@ async function $n(t, a, n, s, i) {
258
258
  if (!i)
259
259
  return null;
260
260
  const u = JSON.stringify(n), l = `${t}/v1/lens`;
261
- return await Nt(l, i, {
261
+ return await wt(l, i, {
262
262
  name: a,
263
263
  template: u,
264
264
  filterValues: s,
@@ -269,7 +269,7 @@ async function xt(t, a, n) {
269
269
  if (!n)
270
270
  return null;
271
271
  const { id: s, template: i, filterValues: u, isDefault: l, shared: p } = a, g = `${t}/v1/lens`;
272
- return await Nt(g, n, {
272
+ return await wt(g, n, {
273
273
  lensId: s,
274
274
  template: i,
275
275
  filterValues: u,
@@ -282,7 +282,7 @@ async function Vn(t, a, n) {
282
282
  if (!n)
283
283
  return null;
284
284
  const s = `${t}/v1/lens`;
285
- return await Nt(s, n, {
285
+ return await wt(s, n, {
286
286
  operation: "delete",
287
287
  lensId: a
288
288
  });
@@ -292,9 +292,9 @@ function zn({
292
292
  open: t,
293
293
  onOpenChange: a
294
294
  } = {}) {
295
- const [n, s] = N(""), [i, u] = N(!1), l = w((I) => I.lenses), { setLenses: p, setSelectedLensId: g } = wt(), [v, m] = N(!1), [f, h] = N(!1), d = t !== void 0, r = d ? t : f, b = (I) => {
295
+ const [n, s] = w(""), [i, u] = w(!1), l = N((I) => I.lenses), { setLenses: p, setSelectedLensId: g } = Nt(), [v, m] = w(!1), [f, h] = w(!1), d = t !== void 0, r = d ? t : f, b = (I) => {
296
296
  d || h(I), a == null || a(I);
297
- }, D = w((I) => I.dashboard), S = w((I) => I.filterValues), { authToken: C, tokenProps: E } = K();
297
+ }, D = N((I) => I.dashboard), S = N((I) => I.filterValues), { authToken: C, tokenProps: E } = K();
298
298
  async function k() {
299
299
  m(!0);
300
300
  const I = await $n(
@@ -330,7 +330,7 @@ function zn({
330
330
  ),
331
331
  i && /* @__PURE__ */ e("p", { className: "text-[12px] text-destructive", children: "A lens with this name already exists. Pick a different one." })
332
332
  ] }),
333
- /* @__PURE__ */ c(Ns, { children: [
333
+ /* @__PURE__ */ c(ws, { children: [
334
334
  /* @__PURE__ */ e(L, { variant: "outline", size: "xs", onClick: () => b(!1), children: "Cancel" }),
335
335
  /* @__PURE__ */ e(
336
336
  L,
@@ -346,8 +346,8 @@ function zn({
346
346
  ] })
347
347
  ] });
348
348
  }
349
- function Bn({ includeLabel: t = !1 } = {}) {
350
- const a = w((m) => m.lenses), n = w((m) => m.selectedLensId), { setLenses: s, setSelectedLensId: i } = wt(), { authToken: u, tokenProps: l } = K();
349
+ function Hn({ includeLabel: t = !1 } = {}) {
350
+ const a = N((m) => m.lenses), n = N((m) => m.selectedLensId), { setLenses: s, setSelectedLensId: i } = Nt(), { authToken: u, tokenProps: l } = K();
351
351
  async function p(m) {
352
352
  i(m);
353
353
  }
@@ -386,7 +386,7 @@ function Bn({ includeLabel: t = !1 } = {}) {
386
386
  /* @__PURE__ */ e(Te, {})
387
387
  ] }) : null,
388
388
  /* @__PURE__ */ c(
389
- ws,
389
+ Ns,
390
390
  {
391
391
  value: n,
392
392
  onValueChange: p,
@@ -436,7 +436,7 @@ function Bn({ includeLabel: t = !1 } = {}) {
436
436
  )
437
437
  ] });
438
438
  }
439
- function Hn() {
439
+ function Bn() {
440
440
  const { displayPreferences: t, shouldShowElement: a } = Ss(), { currentUser: n, userContext: s } = Dt(), i = F(
441
441
  () => Ds(n),
442
442
  [n]
@@ -475,7 +475,7 @@ const jn = async (t, a, n) => {
475
475
  };
476
476
  function Jn() {
477
477
  const { authToken: t, tokenProps: a } = K(), n = ze();
478
- return Be({
478
+ return He({
479
479
  mutationFn: (s) => jn(a.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", s),
480
480
  onSuccess: () => {
481
481
  n.invalidateQueries({ queryKey: ["groups"] }), M.success("Group created successfully");
@@ -489,7 +489,7 @@ function Jn() {
489
489
  }
490
490
  function Yn() {
491
491
  const { authToken: t, tokenProps: a } = K(), n = ze();
492
- return Be({
492
+ return He({
493
493
  mutationFn: (s) => Kn(a.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", s),
494
494
  onSuccess: (s, i) => {
495
495
  n.invalidateQueries({ queryKey: ["groups"] }), n.removeQueries({ queryKey: ["group", i] }), M.success("Group deleted successfully");
@@ -503,7 +503,7 @@ function Yn() {
503
503
  }
504
504
  function Xn() {
505
505
  const { authToken: t, tokenProps: a } = K(), n = ze();
506
- return Be({
506
+ return He({
507
507
  mutationFn: ({
508
508
  groupId: s,
509
509
  data: i
@@ -522,7 +522,7 @@ function Xn() {
522
522
  }
523
523
  function Zn() {
524
524
  const { authToken: t, tokenProps: a } = K(), n = ze();
525
- return Be({
525
+ return He({
526
526
  mutationFn: ({
527
527
  groupId: s,
528
528
  data: i
@@ -545,7 +545,7 @@ function er({
545
545
  tenantId: a,
546
546
  isTenantUser: n
547
547
  }) {
548
- const [s, i] = N(""), [u, l] = N(""), [p, g] = N({}), v = Jn(), m = () => {
548
+ const [s, i] = w(""), [u, l] = w(""), [p, g] = w({}), v = Jn(), m = () => {
549
549
  const h = {};
550
550
  return s.trim() ? s.length < 3 ? h.name = "Group name must be at least 3 characters" : s.length > 50 && (h.name = "Group name must be less than 50 characters") : h.name = "Group name is required", u && u.length > 200 && (h.description = "Description must be less than 200 characters"), g(h), Object.keys(h).length === 0;
551
551
  };
@@ -825,7 +825,7 @@ function dr({
825
825
  group: n,
826
826
  onUpdate: s
827
827
  }) {
828
- const [i, u] = N("members"), [l, p] = N(""), [g, v] = N([]), [m, f] = N([]), { data: h, isLoading: d, refetch: r } = ks(n.id), b = n.type === "TENANT_GROUP" ? "tenant" : "organization", { users: D, isLoading: S } = Os({
828
+ const [i, u] = w("members"), [l, p] = w(""), [g, v] = w([]), [m, f] = w([]), { data: h, isLoading: d, refetch: r } = ks(n.id), b = n.type === "TENANT_GROUP" ? "tenant" : "organization", { users: D, isLoading: S } = Os({
829
829
  type: b,
830
830
  tenantId: n.tenantId || void 0,
831
831
  active: !0,
@@ -835,8 +835,8 @@ function dr({
835
835
  const y = l.toLowerCase();
836
836
  return V.filter(
837
837
  (O) => {
838
- var G, H;
839
- return ((G = O.name) == null ? void 0 : G.toLowerCase().includes(y)) || ((H = O.email) == null ? void 0 : H.toLowerCase().includes(y));
838
+ var G, B;
839
+ return ((G = O.name) == null ? void 0 : G.toLowerCase().includes(y)) || ((B = O.email) == null ? void 0 : B.toLowerCase().includes(y));
840
840
  }
841
841
  );
842
842
  }, [V, l]), x = F(() => {
@@ -844,11 +844,11 @@ function dr({
844
844
  const y = l.toLowerCase();
845
845
  return k.filter(
846
846
  (O) => {
847
- var G, H, me, te;
848
- return ((H = (G = O.user) == null ? void 0 : G.name) == null ? void 0 : H.toLowerCase().includes(y)) || ((te = (me = O.user) == null ? void 0 : me.email) == null ? void 0 : te.toLowerCase().includes(y));
847
+ var G, B, me, te;
848
+ return ((B = (G = O.user) == null ? void 0 : G.name) == null ? void 0 : B.toLowerCase().includes(y)) || ((te = (me = O.user) == null ? void 0 : me.email) == null ? void 0 : te.toLowerCase().includes(y));
849
849
  }
850
850
  );
851
- }, [k, l]), B = async () => {
851
+ }, [k, l]), H = async () => {
852
852
  if (g.length !== 0)
853
853
  try {
854
854
  await C.mutateAsync({
@@ -990,7 +990,7 @@ function dr({
990
990
  /* @__PURE__ */ e(
991
991
  L,
992
992
  {
993
- onClick: B,
993
+ onClick: H,
994
994
  disabled: C.isPending,
995
995
  children: C.isPending ? /* @__PURE__ */ c(T, { children: [
996
996
  /* @__PURE__ */ e(X, { className: "mr-2 h-4 w-4 animate-spin" }),
@@ -1056,14 +1056,14 @@ function hr({
1056
1056
  open: t,
1057
1057
  onOpenChange: a
1058
1058
  }) {
1059
- const [n, s] = N("groups"), [i, u] = N(""), [l, p] = N(null), [g, v] = N(!1), [m, f] = N(null), { tokenProps: h } = K(), { currentUser: d } = Dt(), r = Yn(), b = (d == null ? void 0 : d.type) === "tenant", D = h == null ? void 0 : h.tenantId, { groups: S, isLoading: C, refetch: E } = Ps({
1059
+ const [n, s] = w("groups"), [i, u] = w(""), [l, p] = w(null), [g, v] = w(!1), [m, f] = w(null), { tokenProps: h } = K(), { currentUser: d } = Dt(), r = Yn(), b = (d == null ? void 0 : d.type) === "tenant", D = h == null ? void 0 : h.tenantId, { groups: S, isLoading: C, refetch: E } = Ps({
1060
1060
  type: b ? "TENANT_GROUP" : "all",
1061
1061
  tenantId: b ? D : void 0,
1062
1062
  includeMembers: !1
1063
1063
  }), k = S.filter(
1064
1064
  (x) => {
1065
- var B;
1066
- return x.name.toLowerCase().includes(i.toLowerCase()) || ((B = x.description) == null ? void 0 : B.toLowerCase().includes(i.toLowerCase()));
1065
+ var H;
1066
+ return x.name.toLowerCase().includes(i.toLowerCase()) || ((H = x.description) == null ? void 0 : H.toLowerCase().includes(i.toLowerCase()));
1067
1067
  }
1068
1068
  ), I = async () => {
1069
1069
  if (m)
@@ -1169,8 +1169,8 @@ function hr({
1169
1169
  open: !!m,
1170
1170
  onOpenChange: () => f(null),
1171
1171
  children: /* @__PURE__ */ c(xa, { children: [
1172
- /* @__PURE__ */ c(Na, { children: [
1173
- /* @__PURE__ */ e(wa, { children: "Delete group" }),
1172
+ /* @__PURE__ */ c(wa, { children: [
1173
+ /* @__PURE__ */ e(Na, { children: "Delete group" }),
1174
1174
  /* @__PURE__ */ c(Sa, { children: [
1175
1175
  'Delete "',
1176
1176
  m == null ? void 0 : m.name,
@@ -1217,7 +1217,7 @@ function pr({
1217
1217
  ] }),
1218
1218
  /* @__PURE__ */ c("span", { children: [
1219
1219
  "Created ",
1220
- Nn(new Date(t.createdAt), "MMM d, yyyy")
1220
+ wn(new Date(t.createdAt), "MMM d, yyyy")
1221
1221
  ] })
1222
1222
  ] })
1223
1223
  ] }),
@@ -1376,7 +1376,7 @@ function vr({
1376
1376
  onOpenChange: a,
1377
1377
  initialCreateFlowActive: n === "create",
1378
1378
  dismissMode: "explicit-only"
1379
- }), m = w((x) => x.dashboard), f = w((x) => x.selectedSheetId), { setDashboardInputs: h } = wt(), d = (q = m.sheets) == null ? void 0 : q.find(
1379
+ }), m = N((x) => x.dashboard), f = N((x) => x.selectedSheetId), { setDashboardInputs: h } = Nt(), d = (q = m.sheets) == null ? void 0 : q.find(
1380
1380
  (x) => x.id === f
1381
1381
  ), r = (d == null ? void 0 : d.kind) === "document" && !!d.document, b = F(
1382
1382
  () => r && (d != null && d.document) ? Ts(m, d.id) : [],
@@ -1402,14 +1402,14 @@ function vr({
1402
1402
  }
1403
1403
  v(!1);
1404
1404
  }, [s, i, v]), I = Fe(
1405
- (x, B, W) => {
1405
+ (x, H, W) => {
1406
1406
  !r || !(d != null && d.document) || h(
1407
- Nr({
1407
+ wr({
1408
1408
  allInputs: m.inputs || [],
1409
1409
  documentSheetId: d.id,
1410
1410
  currentDocumentInputs: b,
1411
1411
  nextControls: x,
1412
- nextDefaultValues: B,
1412
+ nextDefaultValues: H,
1413
1413
  change: W
1414
1414
  })
1415
1415
  );
@@ -1478,7 +1478,7 @@ function xr(t, a) {
1478
1478
  defaultValue: a[t.id]
1479
1479
  } : t.defaultValue === void 0 ? t : { ...t, defaultValue: void 0 } : t.defaultValue === void 0 ? t : { ...t, defaultValue: void 0 };
1480
1480
  }
1481
- function Nr({
1481
+ function wr({
1482
1482
  allInputs: t,
1483
1483
  documentSheetId: a,
1484
1484
  currentDocumentInputs: n,
@@ -1543,36 +1543,36 @@ function Rr() {
1543
1543
  authToken: t,
1544
1544
  tokenProps: a,
1545
1545
  id: n
1546
- } = K(), { isLocalDev: s } = Fs(), { openBrandStudioPreview: i } = Rs(), { permissions: u } = Hn(), l = Gs(), { isLoading: p } = $s(), g = w((o) => o.theme), v = w((o) => o.isDownloadingPdf), m = w(
1546
+ } = K(), { isLocalDev: s } = Fs(), { openBrandStudioPreview: i } = Rs(), { permissions: u } = Bn(), l = Gs(), { isLoading: p } = $s(), g = N((o) => o.theme), v = N((o) => o.isDownloadingPdf), m = N(
1547
1547
  (o) => o.dashboardAssistantDraftScopeKey
1548
- ), f = w((o) => o.lenses), h = w((o) => o.selectedLensId), d = f == null ? void 0 : f.find((o) => o.id === h), r = w((o) => o.dashboard), b = w((o) => o.selectedSheetId), D = (Qt = r == null ? void 0 : r.sheets) == null ? void 0 : Qt.find(
1548
+ ), f = N((o) => o.lenses), h = N((o) => o.selectedLensId), d = f == null ? void 0 : f.find((o) => o.id === h), r = N((o) => o.dashboard), b = N((o) => o.selectedSheetId), D = (Qt = r == null ? void 0 : r.sheets) == null ? void 0 : Qt.find(
1549
1549
  (o) => o.id === b
1550
- ), S = ms(D), C = S ? (Wt = D == null ? void 0 : D.document) == null ? void 0 : Wt.page : void 0, E = w(
1550
+ ), S = ms(D), C = S ? (Wt = D == null ? void 0 : D.document) == null ? void 0 : Wt.page : void 0, E = N(
1551
1551
  (o) => o.isDashboardEditing
1552
- ), { setDashboardTitle: k } = w((o) => o.actions), [I, V] = N(!1), [q, x] = N(!1), [B, W] = N(!1), [Z, ee] = N(!1), [y, O] = N(!1), [G, H] = N(!1), [me, te] = N(!1), [Ua, At] = N(!1), [He, he] = N(null), [Fa, pe] = N(!1), [fe, ge] = N(null), [kt, ve] = N([]), [Ot, be] = N(!1), Ra = w((o) => o.isDashboardPanelOpen), Ga = w(
1552
+ ), { setDashboardTitle: k } = N((o) => o.actions), [I, V] = w(!1), [q, x] = w(!1), [H, W] = w(!1), [Z, ee] = w(!1), [y, O] = w(!1), [G, B] = w(!1), [me, te] = w(!1), [Ua, At] = w(!1), [Be, he] = w(null), [Fa, pe] = w(!1), [fe, ge] = w(null), [kt, ve] = w([]), [Ot, be] = w(!1), Ra = N((o) => o.isDashboardPanelOpen), Ga = N(
1553
1553
  (o) => o.actions.setIsDashboardPanelOpen
1554
- ), $a = w((o) => o.filterValues), _ = w((o) => o.isVisualEditing);
1554
+ ), $a = N((o) => o.filterValues), _ = N((o) => o.isVisualEditing);
1555
1555
  ta((o) => o.card);
1556
1556
  const ae = Oe(
1557
1557
  (o) => o.selectedDashboard
1558
1558
  ), ye = Oe(
1559
1559
  (o) => o.initialDashboard
1560
1560
  );
1561
- Oe((o) => o.selectedVisual), w((o) => o.selectedFrameId), ta((o) => o.frame);
1562
- const xe = ae ? (Yt = ae == null ? void 0 : ae.permissions) == null ? void 0 : Yt.canEdit : (Jt = ye == null ? void 0 : ye.permissions) == null ? void 0 : Jt.canEdit, Ne = w((o) => o.showFilters), Pt = Vs((o) => o.setPanelOpen), Tt = w(
1561
+ Oe((o) => o.selectedVisual), N((o) => o.selectedFrameId), ta((o) => o.frame);
1562
+ const xe = ae ? (Yt = ae == null ? void 0 : ae.permissions) == null ? void 0 : Yt.canEdit : (Jt = ye == null ? void 0 : ye.permissions) == null ? void 0 : Jt.canEdit, we = N((o) => o.showFilters), Pt = Vs((o) => o.setPanelOpen), Tt = N(
1563
1563
  (o) => o.showDashboardJSON
1564
- ), je = w((o) => o.onSaveFunction), _t = w(
1564
+ ), je = N((o) => o.onSaveFunction), _t = N(
1565
1565
  (o) => o.actions.setShowFilters
1566
1566
  ), {
1567
1567
  setDocumentInspectorTab: Ut,
1568
1568
  setIsDashboardEditing: Ft,
1569
1569
  setShowDashboardJSON: Rt
1570
- } = w((o) => o.actions), { setInitialDashboard: Gt, clearSelectedDashboard: Ke } = Oe(
1570
+ } = N((o) => o.actions), { setInitialDashboard: Gt, clearSelectedDashboard: Ke } = Oe(
1571
1571
  (o) => o.actions
1572
- ), { resources: we } = qs(nt.DASHBOARD), { data: Qe } = zs(), Va = ((Xt = Qe == null ? void 0 : Qe.preference) == null ? void 0 : Xt.defaultDashboardId) || null, { mutate: qa, isPending: za } = Bs(), { currentUser: Ba } = Dt(), Ha = Hs(Ba), J = ae || ye, $t = J ? {
1572
+ ), { resources: Ne } = qs(nt.DASHBOARD), { data: Qe } = zs(), Va = ((Xt = Qe == null ? void 0 : Qe.preference) == null ? void 0 : Xt.defaultDashboardId) || null, { mutate: qa, isPending: za } = Hs(), { currentUser: Ha } = Dt(), Ba = Bs(Ha), J = ae || ye, $t = J ? {
1573
1573
  id: J.id,
1574
1574
  title: (r == null ? void 0 : r.title) || J.title || "Dashboard"
1575
- } : null, { handleAddNewFrame: ja } = js(), [We, Je] = N(!1), [Ka, se] = N(!1), [Ye, Se] = N("close"), ne = Ks(nt.DASHBOARD), [R, De] = N(null), Vt = Fe((o) => {
1575
+ } : null, { handleAddNewFrame: ja } = js(), [We, Je] = w(!1), [Ka, se] = w(!1), [Ye, Se] = w("close"), ne = Ks(nt.DASHBOARD), [R, De] = w(null), Vt = Fe((o) => {
1576
1576
  window.setTimeout(() => {
1577
1577
  he(o);
1578
1578
  }, 0);
@@ -1601,18 +1601,18 @@ function Rr() {
1601
1601
  );
1602
1602
  };
1603
1603
  ot(() => {
1604
- if (we && we.length > 0) {
1604
+ if (Ne && Ne.length > 0) {
1605
1605
  const o = r == null ? void 0 : r.id;
1606
1606
  if (o) {
1607
- const P = we.find(
1607
+ const P = Ne.find(
1608
1608
  (z) => z.id === o
1609
1609
  );
1610
1610
  P && Gt(P);
1611
1611
  }
1612
1612
  }
1613
- }, [we, r == null ? void 0 : r.id, Gt]);
1613
+ }, [Ne, r == null ? void 0 : r.id, Gt]);
1614
1614
  const re = a.orgUserId || a.tenantId, Xe = F(
1615
- () => wr({
1615
+ () => Nr({
1616
1616
  accessToken: t == null ? void 0 : t.accessToken,
1617
1617
  dashboardId: (r == null ? void 0 : r.id) || n || a.dashboard_id,
1618
1618
  selectedSheetId: S ? b : void 0,
@@ -1631,7 +1631,7 @@ function Rr() {
1631
1631
  g,
1632
1632
  a.dashboard_id
1633
1633
  ]
1634
- ), qt = E && !_ && re && xe, { setDashboard: Ze } = w((o) => o.actions), et = w(
1634
+ ), qt = E && !_ && re && xe, { setDashboard: Ze } = N((o) => o.actions), et = N(
1635
1635
  (o) => o.semanticExecutionPayload
1636
1636
  ), Wa = () => {
1637
1637
  Ft(!0);
@@ -1662,8 +1662,8 @@ function Rr() {
1662
1662
  300,
1663
1663
  1e3,
1664
1664
  it
1665
- ), Bt = Fe(() => Ce ? it(r) !== it(Ce) : !1, [r, Ce]), Ht = zt || Ja, Ie = We || ne.isPending, Ya = () => {
1666
- Bt() ? (Se("close"), se(!0)) : (tt(), Ee());
1665
+ ), Ht = Fe(() => Ce ? it(r) !== it(Ce) : !1, [r, Ce]), Bt = zt || Ja, Ie = We || ne.isPending, Ya = () => {
1666
+ Ht() ? (Se("close"), se(!0)) : (tt(), Ee());
1667
1667
  }, Xa = async () => {
1668
1668
  await at({
1669
1669
  closeAfterSave: !0,
@@ -1678,14 +1678,14 @@ function Rr() {
1678
1678
  semanticExecutionPayload: R.semanticExecutionPayload
1679
1679
  }), Ee());
1680
1680
  }, ts = () => {
1681
- if (E && Bt()) {
1681
+ if (E && Ht()) {
1682
1682
  Se("home"), se(!0);
1683
1683
  return;
1684
1684
  }
1685
1685
  Ke();
1686
1686
  };
1687
1687
  async function at(o) {
1688
- const P = w.getState().dashboard;
1688
+ const P = N.getState().dashboard;
1689
1689
  if (!P)
1690
1690
  return;
1691
1691
  const z = (o == null ? void 0 : o.closeAfterSave) ?? Ot, os = (o == null ? void 0 : o.navigateHomeAfterSave) ?? !1;
@@ -1713,7 +1713,7 @@ function Rr() {
1713
1713
  Je(!1), M.success("Dashboard saved!"), De(
1714
1714
  la(
1715
1715
  is,
1716
- w.getState().semanticExecutionPayload
1716
+ N.getState().semanticExecutionPayload
1717
1717
  )
1718
1718
  ), pe(!1), be(!1), z && (tt(), Ee(), os && Ke()), Se("close");
1719
1719
  },
@@ -1736,7 +1736,7 @@ function Rr() {
1736
1736
  }
1737
1737
  async function as() {
1738
1738
  if (V(!0), !h || !d) return;
1739
- const o = w.getState().dashboard;
1739
+ const o = N.getState().dashboard;
1740
1740
  if (!o) {
1741
1741
  V(!1);
1742
1742
  return;
@@ -1875,20 +1875,20 @@ function Rr() {
1875
1875
  !_ && E && u.canUseFilters && l && /* @__PURE__ */ e(
1876
1876
  vn,
1877
1877
  {
1878
- showFilters: S ? !1 : Ne,
1878
+ showFilters: S ? !1 : we,
1879
1879
  onToggleFilters: () => {
1880
1880
  if (S && b) {
1881
1881
  Ut(b, "inputs");
1882
1882
  return;
1883
1883
  }
1884
- Ne || Pt("dashboard", !1), _t(!Ne);
1884
+ we || Pt("dashboard", !1), _t(!we);
1885
1885
  },
1886
1886
  onAddFilter: () => {
1887
1887
  if (S && b) {
1888
1888
  Ut(b, "inputs");
1889
1889
  return;
1890
1890
  }
1891
- Ne || (Pt("dashboard", !1), _t(!0));
1891
+ we || (Pt("dashboard", !1), _t(!0));
1892
1892
  },
1893
1893
  onAddControl: () => {
1894
1894
  Vt("create");
@@ -1896,14 +1896,14 @@ function Rr() {
1896
1896
  onManageControls: () => Vt("manage")
1897
1897
  }
1898
1898
  ),
1899
- E && !_ && l && He ? S ? /* @__PURE__ */ e(
1899
+ E && !_ && l && Be ? S ? /* @__PURE__ */ e(
1900
1900
  vr,
1901
1901
  {
1902
1902
  open: !0,
1903
1903
  onOpenChange: (o) => {
1904
1904
  o || he(null);
1905
1905
  },
1906
- initialMode: He
1906
+ initialMode: Be
1907
1907
  }
1908
1908
  ) : /* @__PURE__ */ e(
1909
1909
  bn,
@@ -1913,7 +1913,7 @@ function Rr() {
1913
1913
  o || he(null);
1914
1914
  },
1915
1915
  showTrigger: !1,
1916
- initialMode: He
1916
+ initialMode: Be
1917
1917
  }
1918
1918
  ) : null,
1919
1919
  E && !_ && re && d && s && l && /* @__PURE__ */ c(
@@ -1963,8 +1963,8 @@ function Rr() {
1963
1963
  L,
1964
1964
  {
1965
1965
  size: "xs",
1966
- className: Y(!Ht && "opacity-60"),
1967
- disabled: Ie || !Ht,
1966
+ className: Y(!Bt && "opacity-60"),
1967
+ disabled: Ie || !Bt,
1968
1968
  onClick: () => at(),
1969
1969
  children: [
1970
1970
  Ie ? /* @__PURE__ */ e(X, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(na, { className: "h-3.5 w-3.5" }),
@@ -2024,7 +2024,7 @@ function Rr() {
2024
2024
  }
2025
2025
  ),
2026
2026
  /* @__PURE__ */ e(Te, {}),
2027
- Ha && /* @__PURE__ */ c(T, { children: [
2027
+ Ba && /* @__PURE__ */ c(T, { children: [
2028
2028
  /* @__PURE__ */ e(de, { children: "Access" }),
2029
2029
  /* @__PURE__ */ c(
2030
2030
  $,
@@ -2043,7 +2043,7 @@ function Rr() {
2043
2043
  /* @__PURE__ */ e(nn, { className: "h-3.5 w-3.5" }),
2044
2044
  "Calendar Preferences"
2045
2045
  ] }),
2046
- /* @__PURE__ */ c($, { onClick: () => H(!0), children: [
2046
+ /* @__PURE__ */ c($, { onClick: () => B(!0), children: [
2047
2047
  /* @__PURE__ */ e(rn, { className: "h-3.5 w-3.5" }),
2048
2048
  "Summary Settings"
2049
2049
  ] }),
@@ -2126,7 +2126,7 @@ function Rr() {
2126
2126
  /* @__PURE__ */ e(Ln, { className: "h-3.5 w-3.5" }),
2127
2127
  "Lenses"
2128
2128
  ] }),
2129
- /* @__PURE__ */ e(ln, { className: "w-60", children: /* @__PURE__ */ e(Bn, {}) })
2129
+ /* @__PURE__ */ e(ln, { className: "w-60", children: /* @__PURE__ */ e(Hn, {}) })
2130
2130
  ] })
2131
2131
  ] })
2132
2132
  ]
@@ -2144,7 +2144,7 @@ function Rr() {
2144
2144
  /* @__PURE__ */ e(
2145
2145
  hr,
2146
2146
  {
2147
- open: B,
2147
+ open: H,
2148
2148
  onOpenChange: W
2149
2149
  }
2150
2150
  ),
@@ -2158,7 +2158,7 @@ function Rr() {
2158
2158
  }
2159
2159
  ),
2160
2160
  /* @__PURE__ */ e(
2161
- wn,
2161
+ Nn,
2162
2162
  {
2163
2163
  open: y,
2164
2164
  onOpenChange: O
@@ -2168,7 +2168,7 @@ function Rr() {
2168
2168
  Sn,
2169
2169
  {
2170
2170
  open: G,
2171
- onOpenChange: H,
2171
+ onOpenChange: B,
2172
2172
  dashboard: r,
2173
2173
  disabled: !E,
2174
2174
  onApply: (o) => Ze(
@@ -2198,8 +2198,8 @@ function Rr() {
2198
2198
  !o && We && !fe || (pe(o), o || (ge(null), ve([]), be(!1)));
2199
2199
  },
2200
2200
  children: /* @__PURE__ */ c(xa, { className: "max-w-sm", children: [
2201
- /* @__PURE__ */ c(Na, { children: [
2202
- /* @__PURE__ */ e(wa, { children: fe ? "Save failed" : "Saving dashboard" }),
2201
+ /* @__PURE__ */ c(wa, { children: [
2202
+ /* @__PURE__ */ e(Na, { children: fe ? "Save failed" : "Saving dashboard" }),
2203
2203
  /* @__PURE__ */ e(Sa, { className: "pt-2", children: fe ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2204
2204
  kt.length > 0 && /* @__PURE__ */ c("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
2205
2205
  /* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
@@ -2254,7 +2254,7 @@ function Rr() {
2254
2254
  }
2255
2255
  );
2256
2256
  }
2257
- function wr({
2257
+ function Nr({
2258
2258
  accessToken: t,
2259
2259
  dashboardId: a,
2260
2260
  selectedSheetId: n,
@@ -1,9 +1,9 @@
1
1
  import { jsx as t, jsxs as s, Fragment as _ } from "react/jsx-runtime";
2
- import { c as le, L as Z, I as Se, B as I, f as W, n as j, u as B, m as q, aF as ee, af as de, G as ce, e as Ae, l as Ie, a as H, p as K, X as Fe, P as ue, b as me, d as he, aG as Le, aH as Te } from "./switch-BZn7R_Cp.js";
3
- import { b as pe, c as fe, d as ve, e as ge, f as be, bU as ke, n as Pe, s as Ue, t as Ve, b7 as xe, bV as Me, o as P, b8 as G, V as Be, bp as ye, bq as we, bs as Ce, bt as z, bx as Oe, bk as ze, bW as Re, bX as _e, bE as $e, bF as He, bG as je, bH as Xe, bI as Ge, bJ as We, bK as qe, u as Q, ad as R, aY as Y, aU as De, aV as J, ae as Ne, aT as Ke, a_ as Qe, bY as Ye, bZ as Je, bm as Ze, aW as te, J as et, ag as tt, b_ as at, b$ as st, c0 as rt, c1 as ot, c2 as ae, c3 as nt } from "./index-BxYIELMe.js";
4
- import { V as it, E as se, a as re, b as lt, c as dt, L as ct, d as ut, C as mt, u as ht, e as pt } from "./use-create-flow-overlay-state-CeWstFjy.js";
2
+ import { c as le, L as Z, I as Se, B as I, f as W, n as j, u as B, m as q, az as ee, a9 as de, G as ce, e as Ae, l as Ie, a as H, p as K, X as Fe, P as ue, b as me, d as he, aA as Le, aB as Te } from "./switch-DXHYEa_J.js";
3
+ import { b as pe, c as fe, d as ve, e as ge, f as be, bU as ke, n as Pe, s as Ue, t as Ve, b7 as xe, bV as Me, o as P, b8 as G, V as Be, bp as ye, bq as we, bs as Ce, bt as z, bx as Oe, bk as ze, bW as Re, bX as _e, bE as $e, bF as He, bG as je, bH as Xe, bI as Ge, bJ as We, bK as qe, u as Q, ad as R, aY as Y, aU as De, aV as J, ae as Ne, aT as Ke, a_ as Qe, bY as Ye, bZ as Je, bm as Ze, aW as te, J as et, ag as tt, b_ as at, b$ as st, c0 as rt, c1 as ot, c2 as ae, c3 as nt } from "./index-scc12bkM.js";
4
+ import { V as it, E as se, a as re, b as lt, c as dt, L as ct, d as ut, C as mt, u as ht, e as pt } from "./use-create-flow-overlay-state-C77yBFiq.js";
5
5
  import ft, { useState as T, useContext as vt, useRef as X, useCallback as $, useEffect as O } from "react";
6
- import { u as Ee } from "./use-visual-utils-CmfDomt0.js";
6
+ import { u as Ee } from "./use-visual-utils-BqljNzWn.js";
7
7
  import { k as oe } from "./date-formatter-DyIOb6uC.js";
8
8
  /**
9
9
  * @license lucide-react v0.453.0 - ISC
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),r=require("./switch-BG4RWnrq.js"),t=require("./index-C0zD3JgK.js"),F=require("./use-create-flow-overlay-state-Bmb471Fp.js"),g=require("react"),R=require("./use-visual-utils-DflfgX9g.js"),U=require("./date-formatter-D9Bvw5Qk.js");/**
1
+ "use strict";const e=require("react/jsx-runtime"),r=require("./switch-BFPV36rd.js"),t=require("./index-C_mYCH5V.js"),F=require("./use-create-flow-overlay-state-nhcTzyJQ.js"),g=require("react"),R=require("./use-visual-utils-Cm2IkP1c.js"),U=require("./date-formatter-D9Bvw5Qk.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as m, useState as b, useRef as f, useEffect as S } from "react";
3
- import { u as o, a as N, B as p, X as D, C as J } from "./switch-BZn7R_Cp.js";
4
- import "./index-BxYIELMe.js";
3
+ import { u as o, a as N, B as p, X as D, C as J } from "./switch-DXHYEa_J.js";
4
+ import "./index-scc12bkM.js";
5
5
  import "./index-CJdxSyQq.js";
6
6
  import "react-dom";
7
7
  function C() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-BG4RWnrq.js");require("./index-C0zD3JgK.js");require("./index-DRlMUglg.js");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-BFPV36rd.js");require("./index-C_mYCH5V.js");require("./index-DRlMUglg.js");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as a, Fragment as ue } from "react/jsx-runtime";
2
2
  import me, { useState as f, useCallback as H, useEffect as q, useMemo as U } from "react";
3
- import { u as he, b as Q, c as ee, d as ae, e as te, f as se, R, g as $, C as fe, h as pe, i as be, j as ve, k as V, l as G, m as ge, n as re, o as I } from "./index-BxYIELMe.js";
4
- import { a as C, L as P, P as xe, b as Se, B as A, d as ye, e as X, f as Ne, S as we, g as Ce, h as ke, i as Te, j as Ie, k as Z, I as Pe } from "./switch-BZn7R_Cp.js";
5
- import { C as Ae } from "./chevrons-up-down-Cbtggnqv.js";
3
+ import { u as he, b as Q, c as ee, d as ae, e as te, f as se, R, g as $, C as fe, h as pe, i as be, j as ve, k as V, l as G, m as ge, n as re, o as I } from "./index-scc12bkM.js";
4
+ import { a as C, L as P, P as xe, b as Se, B as A, d as ye, e as X, f as Ne, S as we, g as Ce, h as ke, i as Te, j as Ie, k as Z, I as Pe } from "./switch-DXHYEa_J.js";
5
+ import { C as Ae } from "./chevrons-up-down-CfMX77Ug.js";
6
6
  function ze(r = {}) {
7
7
  var T, L, D, M;
8
8
  const { authToken: i, tokenProps: t } = he(), g = r.enabled ?? !0, o = (i == null ? void 0 : i.accessToken) ?? null, h = (t == null ? void 0 : t.apiServiceUrl) ?? null, [N, S] = f(!1), [x, b] = f(!1), [u, n] = f(!1), [y, c] = f(null), [p, w] = f(null), z = p || {