react-semaphor 0.1.309 → 0.1.311
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.
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-DEq8EJtw.js → braces-CSECDaJQ.js} +1 -1
- package/dist/chunks/{braces-BHDm9arh.js → braces-DwaAt32i.js} +1 -1
- package/dist/chunks/{chevrons-up-down-DDEY9beZ.js → chevrons-up-down-3vBEM7eI.js} +1 -1
- package/dist/chunks/{chevrons-up-down-Cbtggnqv.js → chevrons-up-down-DJhB8JNW.js} +1 -1
- package/dist/chunks/common-types-4bjoIgvm.js +75 -0
- package/dist/chunks/common-types-C73-Ud1-.js +1 -0
- package/dist/chunks/{dashboard-controls-Cp41403T.js → dashboard-controls-CeKjYa7s.js} +83 -83
- package/dist/chunks/{dashboard-controls-C_vjMmt2.js → dashboard-controls-Ds8Hmo3Q.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-tfjDO4D4.js → dashboard-filter-controls-button-CWL2jJcu.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-DFKZjkD4.js → dashboard-filter-controls-button-Tk5lhwVV.js} +4 -4
- package/dist/chunks/{dashboard-json-QR7WNDuO.js → dashboard-json-B_rQbUUz.js} +1 -1
- package/dist/chunks/{dashboard-json-Cc8S_uIr.js → dashboard-json-GL_IXTCk.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-qH6FOt7O.js → dashboard-summary-settings-dialog-CcszMc1A.js} +3 -3
- package/dist/chunks/{dashboard-summary-settings-dialog-CxXxzyRP.js → dashboard-summary-settings-dialog-DgqFlYl9.js} +1 -1
- package/dist/chunks/edit-dashboard-visual-Bu2rxJjm.js +183 -0
- package/dist/chunks/{edit-dashboard-visual-_BZQa5yI.js → edit-dashboard-visual-nGSsSTYx.js} +7057 -6964
- package/dist/chunks/{index-CSgoL0P9.js → index-9v7DehZd.js} +33036 -32819
- package/dist/chunks/{index-AerZtbg0.js → index-CGCrm-dj.js} +220 -220
- package/dist/chunks/{palette-CteErylX.js → palette-C5o9bLo6.js} +1 -1
- package/dist/chunks/{palette-CNKSAIrt.js → palette-CI2J34i6.js} +1 -1
- package/dist/chunks/{resource-management-panel-DbYkAk1I.js → resource-management-panel-CNmVHnCz.js} +1 -1
- package/dist/chunks/{resource-management-panel-CcFT7lpL.js → resource-management-panel-DTg9_DI9.js} +3 -3
- package/dist/chunks/{save-BVVnWGeb.js → save-CMv91_Hz.js} +1 -1
- package/dist/chunks/{save-B1-nDZwS.js → save-Cpz6BWx9.js} +1 -1
- package/dist/chunks/{switch-BZn7R_Cp.js → switch-Dhoqe3OE.js} +3534 -3494
- package/dist/chunks/switch-otrSiyjH.js +168 -0
- package/dist/chunks/{use-create-flow-overlay-state-CczjbVZY.js → use-create-flow-overlay-state-C8WGfC8T.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-DImkf832.js → use-create-flow-overlay-state-DiH6M1Cd.js} +1 -1
- package/dist/chunks/{use-visual-utils-BdHwrbtr.js → use-visual-utils-BeJ73yvV.js} +1 -1
- package/dist/chunks/{use-visual-utils-DczvWVbd.js → use-visual-utils-RkPa2gqQ.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +107 -104
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/dashboard.d.ts +22 -7
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +16 -7
- package/dist/types/main.d.ts +51 -7
- package/dist/types/shared.d.ts +22 -7
- package/dist/types/surfboard.d.ts +22 -7
- package/dist/types/types.d.ts +314 -58
- package/package.json +6 -1
- package/dist/chunks/common-types-C6cAQgyh.js +0 -9
- package/dist/chunks/common-types-nBuCd3u2.js +0 -1
- package/dist/chunks/edit-dashboard-visual-J7cHkCD6.js +0 -183
- package/dist/chunks/switch-BG4RWnrq.js +0 -168
|
@@ -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
|
|
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
|
|
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-Dhoqe3OE.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-9v7DehZd.js";
|
|
4
4
|
import * as A from "react";
|
|
5
|
-
import Ea, { useState as
|
|
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-
|
|
9
|
-
import { d as
|
|
10
|
-
import { C as
|
|
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-Tk5lhwVV.js";
|
|
9
|
+
import { d as wn } from "./index-DFOb_6HB.js";
|
|
10
|
+
import { C as Nn, D as Sn } from "./dashboard-summary-settings-dialog-CcszMc1A.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-
|
|
14
|
-
import { S as na } from "./save-
|
|
15
|
-
import { P as In } from "./palette-
|
|
16
|
-
import { B as Mn } from "./braces-
|
|
13
|
+
import { u as Cn, e as En } from "./use-create-flow-overlay-state-C8WGfC8T.js";
|
|
14
|
+
import { S as na } from "./save-Cpz6BWx9.js";
|
|
15
|
+
import { P as In } from "./palette-CI2J34i6.js";
|
|
16
|
+
import { B as Mn } from "./braces-CSECDaJQ.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 =
|
|
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
|
|
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
|
|
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
|
|
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] =
|
|
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 =
|
|
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(
|
|
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
|
|
350
|
-
const a =
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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] =
|
|
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] =
|
|
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,
|
|
839
|
-
return ((G = O.name) == null ? void 0 : G.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,
|
|
848
|
-
return ((
|
|
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]),
|
|
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:
|
|
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] =
|
|
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
|
|
1066
|
-
return x.name.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(
|
|
1173
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
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 =
|
|
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,
|
|
1405
|
+
(x, H, W) => {
|
|
1406
1406
|
!r || !(d != null && d.document) || h(
|
|
1407
|
-
|
|
1407
|
+
wr({
|
|
1408
1408
|
allInputs: m.inputs || [],
|
|
1409
1409
|
documentSheetId: d.id,
|
|
1410
1410
|
currentDocumentInputs: b,
|
|
1411
1411
|
nextControls: x,
|
|
1412
|
-
nextDefaultValues:
|
|
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
|
|
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 } =
|
|
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 =
|
|
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 =
|
|
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 } =
|
|
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 =
|
|
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),
|
|
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,
|
|
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 =
|
|
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
|
-
} =
|
|
1570
|
+
} = N((o) => o.actions), { setInitialDashboard: Gt, clearSelectedDashboard: Ke } = Oe(
|
|
1571
1571
|
(o) => o.actions
|
|
1572
|
-
), { resources:
|
|
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] =
|
|
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 (
|
|
1604
|
+
if (Ne && Ne.length > 0) {
|
|
1605
1605
|
const o = r == null ? void 0 : r.id;
|
|
1606
1606
|
if (o) {
|
|
1607
|
-
const P =
|
|
1607
|
+
const P = Ne.find(
|
|
1608
1608
|
(z) => z.id === o
|
|
1609
1609
|
);
|
|
1610
1610
|
P && Gt(P);
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
}, [
|
|
1613
|
+
}, [Ne, r == null ? void 0 : r.id, Gt]);
|
|
1614
1614
|
const re = a.orgUserId || a.tenantId, Xe = F(
|
|
1615
|
-
() =>
|
|
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 } =
|
|
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
|
-
),
|
|
1666
|
-
|
|
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 &&
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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 :
|
|
1878
|
+
showFilters: S ? !1 : we,
|
|
1879
1879
|
onToggleFilters: () => {
|
|
1880
1880
|
if (S && b) {
|
|
1881
1881
|
Ut(b, "inputs");
|
|
1882
1882
|
return;
|
|
1883
1883
|
}
|
|
1884
|
-
|
|
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
|
-
|
|
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 &&
|
|
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:
|
|
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:
|
|
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(!
|
|
1967
|
-
disabled: Ie || !
|
|
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
|
-
|
|
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: () =>
|
|
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(
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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(
|
|
2202
|
-
/* @__PURE__ */ e(
|
|
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
|
|
2257
|
+
function Nr({
|
|
2258
2258
|
accessToken: t,
|
|
2259
2259
|
dashboardId: a,
|
|
2260
2260
|
selectedSheetId: n,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./switch-otrSiyjH.js"),s=require("./index-CGCrm-dj.js"),b=require("react");require("./index-DRlMUglg.js");require("react-dom");const G=require("./dashboard-filter-controls-button-CWL2jJcu.js"),it=require("./index-D7KJindZ.js"),gs=require("./dashboard-summary-settings-dialog-DgqFlYl9.js"),lt=require("./use-debounced-dirty-check-XHSwAefL.js"),Fe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),bs=require("./use-create-flow-overlay-state-DiH6M1Cd.js"),vs=require("./save-CMv91_Hz.js"),ct=require("./palette-C5o9bLo6.js"),dt=require("./braces-DwaAt32i.js");function ut(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const I=ut(b);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("./switch-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("./switch-otrSiyjH.js"),t=require("./index-CGCrm-dj.js"),F=require("./use-create-flow-overlay-state-DiH6M1Cd.js"),g=require("react"),R=require("./use-visual-utils-BeJ73yvV.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,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,
|
|
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-
|
|
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-
|
|
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-Dhoqe3OE.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-9v7DehZd.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-C8WGfC8T.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-
|
|
6
|
+
import { u as Ee } from "./use-visual-utils-RkPa2gqQ.js";
|
|
7
7
|
import { k as oe } from "./date-formatter-DyIOb6uC.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-otrSiyjH.js");require("./index-CGCrm-dj.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,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-
|
|
4
|
-
import "./index-
|
|
3
|
+
import { u as o, a as N, B as p, X as D, C as J } from "./switch-Dhoqe3OE.js";
|
|
4
|
+
import "./index-9v7DehZd.js";
|
|
5
5
|
import "./index-CJdxSyQq.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
function C() {
|
|
@@ -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-
|
|
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-
|
|
5
|
-
import { C as Ae } from "./chevrons-up-down-
|
|
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-9v7DehZd.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-Dhoqe3OE.js";
|
|
5
|
+
import { C as Ae } from "./chevrons-up-down-DJhB8JNW.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 || {
|