react-semaphor 0.1.327 → 0.1.329
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +211 -72
- package/dist/brand-studio/index.cjs +5 -5
- package/dist/brand-studio/index.js +23 -24
- package/dist/chunks/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/chunks/_commonjsHelpers-DwTZ_eVU.js +1 -0
- package/dist/chunks/{braces-BGWZEnQJ.js → braces-CG8viaD2.js} +1 -1
- package/dist/chunks/{braces-B6qRDu1H.js → braces-DSaa_4Oc.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-fkLUMJyR.js → calendar-preferences-dialog-DD_qAthL.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-CjwbE_82.js → calendar-preferences-dialog-JRmNJptJ.js} +3 -3
- package/dist/chunks/{chevrons-up-down-xG-bVFD9.js → chevrons-up-down-CBa0uh0X.js} +1 -1
- package/dist/chunks/{chevrons-up-down-BpsogQvv.js → chevrons-up-down-ChDNqVP7.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-BKdJFwH5.js +106 -0
- package/dist/chunks/{dashboard-briefing-launcher-Cy1nWZRW.js → dashboard-briefing-launcher-BfyNkd8i.js} +1141 -1137
- package/dist/chunks/{dashboard-controls-BWnVEFJq.js → dashboard-controls-0pZDLvFL.js} +218 -218
- package/dist/chunks/{dashboard-controls-C7rOGZO-.js → dashboard-controls-C0xm1QMR.js} +10 -10
- package/dist/chunks/dashboard-json-BW5OVZ6m.js +1 -0
- package/dist/chunks/{dashboard-json-BpRNSsF3.js → dashboard-json-DsruhRPD.js} +14 -13
- package/dist/chunks/{edit-dashboard-visual-B2vkIKEa.js → edit-dashboard-visual-DQyJ7SSv.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CYf26co_.js → edit-dashboard-visual-g5SZZahJ.js} +9 -8
- package/dist/chunks/index-1JWDPCun.js +1935 -0
- package/dist/chunks/index-BdjXTQt4.js +1444 -0
- package/dist/chunks/{index-DTlbYpxd.js → index-BmKr-K7J.js} +116971 -113296
- package/dist/chunks/index-C1l78BIx.js +3247 -0
- package/dist/chunks/lib-Ce3zosXY.js +38 -0
- package/dist/chunks/lib-DFvr9fM4.js +5500 -0
- package/dist/chunks/{palette-CSF7IVJn.js → palette-D0YmAqBS.js} +1 -1
- package/dist/chunks/{palette-CWgEPBoG.js → palette-DQgq3edH.js} +1 -1
- package/dist/chunks/{resource-management-panel-D6nbfJY3.js → resource-management-panel-CIfBh46E.js} +1 -1
- package/dist/chunks/{resource-management-panel-D893Onv8.js → resource-management-panel-Cj19pw9M.js} +145 -145
- package/dist/chunks/{switch-DJJJD_g1.js → switch-BvTzw2AW.js} +39 -34
- package/dist/chunks/{switch-DKf6vHfP.js → switch-De31SR3q.js} +878 -885
- package/dist/chunks/typescript-Cmizj1hi.js +446 -0
- package/dist/chunks/typescript-H1EwZsOb.js +159820 -0
- package/dist/chunks/use-create-flow-overlay-state-BTQiKRD1.js +26 -0
- package/dist/chunks/{use-create-flow-overlay-state-p21zs2p6.js → use-create-flow-overlay-state-IcHP0l39.js} +150 -151
- package/dist/chunks/{use-visual-utils-BKBua6o4.js → use-visual-utils-DQ5zGYD2.js} +13 -13
- package/dist/chunks/{use-visual-utils-BqWm0QeW.js → use-visual-utils-XF-AqV8o.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -0
- package/dist/data-app-builder/index.js +4 -0
- package/dist/data-app-builder-browser-runtime/index.cjs +1 -0
- package/dist/data-app-builder-browser-runtime/index.js +10 -0
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +208 -196
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -14
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +76 -1
- package/dist/types/dashboard-authoring.d.ts +2 -1
- package/dist/types/data-app-builder-browser-runtime.d.ts +185 -0
- package/dist/types/data-app-builder.d.ts +631 -0
- package/dist/types/data-app-sdk.d.ts +16 -2
- package/dist/types/main.d.ts +4 -1
- package/package.json +11 -1
- package/dist/chunks/dashboard-briefing-launcher-Co57xBfS.js +0 -106
- package/dist/chunks/dashboard-json-DBPMknGo.js +0 -1
- package/dist/chunks/index-BD90s-wf.js +0 -1309
- package/dist/chunks/save-CtQbSub2.js +0 -6
- package/dist/chunks/save-DRdFKF57.js +0 -21
- package/dist/chunks/use-create-flow-overlay-state-C4LgoK8q.js +0 -26
package/dist/chunks/{resource-management-panel-D893Onv8.js → resource-management-panel-Cj19pw9M.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { c as He, u as se, G as Ge, a as Z, B as O, f as te, N as be, V as $e, L as ie, a2 as de, X as ke, Z as We, _ as Xe, $ as Ye, a1 as Ze, az as Je } from "./switch-De31SR3q.js";
|
|
3
|
+
import Qe, { useState as b, useEffect as ee, useRef as qe } from "react";
|
|
4
|
+
import { ah as ue, aL as et, aM as tt, aI as ce, aN as nt, aO as at, aP as st, aQ as it, aR as Y, aS as ot, aT as rt, aU as lt, aV as xe, az as he, aW as dt, aX as ct, aY as Ne, aZ as we, a_ as ut, J as ye, A as Ce, a$ as ve, b0 as Se, b1 as Ee, b2 as Ve, b3 as Le, b4 as Ae, b5 as Oe, b6 as Te, b7 as Re, b8 as ht, b9 as pe, ba as pt, y as ae, u as mt, bb as Ue, c as Ie, d as ze, e as Me, f as Pe, g as Fe, bc as ft, o as je, bd as gt, be as De, bf as xt } from "./index-BmKr-K7J.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import { u as Be } from "./use-visual-utils-
|
|
6
|
+
import { u as Be } from "./use-visual-utils-DQ5zGYD2.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
11
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
const Dt =
|
|
13
|
+
const Dt = He("FolderOpen", [
|
|
14
14
|
[
|
|
15
15
|
"path",
|
|
16
16
|
{
|
|
@@ -39,7 +39,7 @@ const bt = (t) => {
|
|
|
39
39
|
const f = se((o) => o.isVisualEditing), m = se((o) => o.selectedFrameId), r = Ge((o) => o.frame);
|
|
40
40
|
return !!(f && m && (r == null ? void 0 : r.visualId) === t);
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function Nt({
|
|
43
43
|
visual: t,
|
|
44
44
|
isDeleting: f,
|
|
45
45
|
isDuplicating: m,
|
|
@@ -49,14 +49,14 @@ function wt({
|
|
|
49
49
|
onDeleteClick: x,
|
|
50
50
|
onDuplicateVisual: i,
|
|
51
51
|
onShareVisual: D,
|
|
52
|
-
formatDate:
|
|
52
|
+
formatDate: N
|
|
53
53
|
}) {
|
|
54
|
-
var
|
|
55
|
-
const { selectVisual: l } = ue(), c = et(t.id), p = bt(t.id),
|
|
54
|
+
var z, I, P, F;
|
|
55
|
+
const { selectVisual: l } = ue(), c = et(t.id), p = bt(t.id), A = se((d) => d.isVisualEditing), { isConsoleMode: U } = tt(), w = Qe.useRef(null), [S, E] = b(!1), [V, T] = b(!1);
|
|
56
56
|
ee(() => {
|
|
57
57
|
m ? (E(!0), T(!0)) : V && (E(!1), T(!1));
|
|
58
58
|
}, [m, V]), ee(() => {
|
|
59
|
-
p &&
|
|
59
|
+
p && w.current && w.current.scrollIntoView({
|
|
60
60
|
behavior: "smooth",
|
|
61
61
|
block: "center"
|
|
62
62
|
});
|
|
@@ -69,7 +69,7 @@ function wt({
|
|
|
69
69
|
return /* @__PURE__ */ n(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
72
|
-
ref:
|
|
72
|
+
ref: w,
|
|
73
73
|
className: Z(
|
|
74
74
|
"group flex cursor-pointer items-start gap-1 rounded-[5px] px-2 py-1.5 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",
|
|
75
75
|
p ? "bg-muted ring-1 ring-inset ring-foreground/20" : c && "bg-muted"
|
|
@@ -97,7 +97,7 @@ function wt({
|
|
|
97
97
|
{
|
|
98
98
|
className: "truncate text-[11px] leading-4 text-muted-foreground",
|
|
99
99
|
title: t.description || "No description",
|
|
100
|
-
children: (
|
|
100
|
+
children: (z = t.description) != null && z.trim() ? t.description : "No description"
|
|
101
101
|
}
|
|
102
102
|
)
|
|
103
103
|
]
|
|
@@ -113,12 +113,12 @@ function wt({
|
|
|
113
113
|
onClick: (d) => d.stopPropagation(),
|
|
114
114
|
children: /* @__PURE__ */ n("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-[5px] border border-border/60 bg-background", children: [
|
|
115
115
|
/* @__PURE__ */ n(
|
|
116
|
-
|
|
116
|
+
O,
|
|
117
117
|
{
|
|
118
118
|
size: "xs",
|
|
119
119
|
variant: "ghost",
|
|
120
120
|
className: "h-full rounded-none border-0 shadow-none hover:bg-accent/50",
|
|
121
|
-
disabled:
|
|
121
|
+
disabled: A,
|
|
122
122
|
onClick: (d) => {
|
|
123
123
|
d.stopPropagation(), r(t);
|
|
124
124
|
},
|
|
@@ -137,7 +137,7 @@ function wt({
|
|
|
137
137
|
onOpenChange: E,
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ e(at, { asChild: !0, children: /* @__PURE__ */ e(
|
|
140
|
-
|
|
140
|
+
O,
|
|
141
141
|
{
|
|
142
142
|
size: "xs",
|
|
143
143
|
variant: "ghost",
|
|
@@ -153,12 +153,12 @@ function wt({
|
|
|
153
153
|
className: "z-[51] w-44 rounded-[6px] border border-border/60 p-1 shadow-sm",
|
|
154
154
|
children: [
|
|
155
155
|
/* @__PURE__ */ n(
|
|
156
|
-
|
|
156
|
+
Y,
|
|
157
157
|
{
|
|
158
158
|
onClick: (d) => {
|
|
159
159
|
d.stopPropagation(), r(t);
|
|
160
160
|
},
|
|
161
|
-
disabled:
|
|
161
|
+
disabled: A,
|
|
162
162
|
children: [
|
|
163
163
|
/* @__PURE__ */ e(ce, { className: "h-3.5 w-3.5" }),
|
|
164
164
|
"Add"
|
|
@@ -166,7 +166,7 @@ function wt({
|
|
|
166
166
|
}
|
|
167
167
|
),
|
|
168
168
|
/* @__PURE__ */ n(
|
|
169
|
-
|
|
169
|
+
Y,
|
|
170
170
|
{
|
|
171
171
|
onClick: (d) => {
|
|
172
172
|
d.stopPropagation(), o == null || o(t);
|
|
@@ -178,7 +178,7 @@ function wt({
|
|
|
178
178
|
}
|
|
179
179
|
),
|
|
180
180
|
/* @__PURE__ */ n(
|
|
181
|
-
|
|
181
|
+
Y,
|
|
182
182
|
{
|
|
183
183
|
onClick: (d) => {
|
|
184
184
|
d.preventDefault(), d.stopPropagation(), i(t.id);
|
|
@@ -192,7 +192,7 @@ function wt({
|
|
|
192
192
|
),
|
|
193
193
|
t.ownership.isOwner && /* @__PURE__ */ n(oe, { children: [
|
|
194
194
|
/* @__PURE__ */ n(
|
|
195
|
-
|
|
195
|
+
Y,
|
|
196
196
|
{
|
|
197
197
|
onClick: (d) => {
|
|
198
198
|
d.stopPropagation(), h == null || h(t);
|
|
@@ -204,7 +204,7 @@ function wt({
|
|
|
204
204
|
}
|
|
205
205
|
),
|
|
206
206
|
/* @__PURE__ */ n(
|
|
207
|
-
|
|
207
|
+
Y,
|
|
208
208
|
{
|
|
209
209
|
onClick: (d) => {
|
|
210
210
|
d.stopPropagation(), D(t);
|
|
@@ -217,7 +217,7 @@ function wt({
|
|
|
217
217
|
),
|
|
218
218
|
/* @__PURE__ */ e(xe, {}),
|
|
219
219
|
/* @__PURE__ */ n(
|
|
220
|
-
|
|
220
|
+
Y,
|
|
221
221
|
{
|
|
222
222
|
onClick: (d) => {
|
|
223
223
|
d.stopPropagation(), x(t);
|
|
@@ -233,13 +233,13 @@ function wt({
|
|
|
233
233
|
] }),
|
|
234
234
|
/* @__PURE__ */ e(xe, {}),
|
|
235
235
|
/* @__PURE__ */ n("div", { className: "space-y-1 px-2 py-1.5 text-[11px] text-muted-foreground", children: [
|
|
236
|
-
(((I = t.ownership.createdBy) == null ? void 0 : I.type) === "tenant" || ((
|
|
236
|
+
(((I = t.ownership.createdBy) == null ? void 0 : I.type) === "tenant" || ((P = t.ownership.createdBy) == null ? void 0 : P.type) === "organization" && U) && /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
|
|
237
237
|
/* @__PURE__ */ e(dt, { className: "h-3 w-3" }),
|
|
238
238
|
/* @__PURE__ */ e("span", { children: ((F = t.ownership.createdBy) == null ? void 0 : F.name) || "Unknown" })
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
|
|
241
241
|
/* @__PURE__ */ e(ct, { className: "h-3 w-3" }),
|
|
242
|
-
/* @__PURE__ */ e("span", { children:
|
|
242
|
+
/* @__PURE__ */ e("span", { children: N(t.lastModified) })
|
|
243
243
|
] })
|
|
244
244
|
] })
|
|
245
245
|
]
|
|
@@ -255,22 +255,22 @@ function wt({
|
|
|
255
255
|
}
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function wt({ searchQuery: t }) {
|
|
259
259
|
const [f, m] = b(!1), [r, o] = b(
|
|
260
260
|
null
|
|
261
|
-
), [h, x] = b(!1), [i, D] = b(null), [
|
|
261
|
+
), [h, x] = b(!1), [i, D] = b(null), [N, l] = b(null), [c, p] = b(
|
|
262
262
|
null
|
|
263
|
-
), { handleEditLibraryVisual:
|
|
264
|
-
resources:
|
|
263
|
+
), { handleEditLibraryVisual: A, handleAddLibraryVisual: U } = Be(), {
|
|
264
|
+
resources: w,
|
|
265
265
|
isLoading: S,
|
|
266
266
|
isError: E,
|
|
267
267
|
updateResource: V,
|
|
268
268
|
deleteResource: T,
|
|
269
269
|
duplicateResource: C,
|
|
270
270
|
isDeleting: v
|
|
271
|
-
} =
|
|
271
|
+
} = Ne(() => {
|
|
272
272
|
x(!1), D(null);
|
|
273
|
-
}),
|
|
273
|
+
}), z = w.filter(
|
|
274
274
|
(s) => {
|
|
275
275
|
var R, u;
|
|
276
276
|
return ((R = s == null ? void 0 : s.title) == null ? void 0 : R.toLowerCase().includes(t.toLowerCase())) || ((u = s == null ? void 0 : s.description) == null ? void 0 : u.toLowerCase().includes(t.toLowerCase()));
|
|
@@ -279,37 +279,37 @@ function Nt({ searchQuery: t }) {
|
|
|
279
279
|
month: "short",
|
|
280
280
|
day: "numeric",
|
|
281
281
|
year: "numeric"
|
|
282
|
-
}),
|
|
282
|
+
}), P = (s) => {
|
|
283
283
|
D(s), x(!0);
|
|
284
284
|
}, F = () => {
|
|
285
285
|
i && T(i.id);
|
|
286
286
|
}, {
|
|
287
287
|
startUpdating: d,
|
|
288
|
-
stopUpdating:
|
|
288
|
+
stopUpdating: $,
|
|
289
289
|
isUpdating: B
|
|
290
|
-
} =
|
|
290
|
+
} = we(), L = (s, R, u) => {
|
|
291
291
|
var ne;
|
|
292
292
|
const j = Object.fromEntries(
|
|
293
|
-
Object.entries(R).filter(([,
|
|
293
|
+
Object.entries(R).filter(([, M]) => M !== void 0)
|
|
294
294
|
);
|
|
295
295
|
if (Object.keys(j).length === 0) {
|
|
296
296
|
(ne = u == null ? void 0 : u.onSuccess) == null || ne.call(u);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
const y = Object.keys(j),
|
|
300
|
-
d(s,
|
|
299
|
+
const y = Object.keys(j), _ = y.length === 1 ? y[0] : void 0;
|
|
300
|
+
d(s, _), V(
|
|
301
301
|
{
|
|
302
302
|
resourceId: s,
|
|
303
303
|
data: j
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
onSuccess: () => {
|
|
307
|
-
var
|
|
308
|
-
|
|
307
|
+
var M;
|
|
308
|
+
$(s, _), (M = u == null ? void 0 : u.onSuccess) == null || M.call(u);
|
|
309
309
|
},
|
|
310
310
|
onError: () => {
|
|
311
|
-
var
|
|
312
|
-
|
|
311
|
+
var M;
|
|
312
|
+
$(s, _), (M = u == null ? void 0 : u.onError) == null || M.call(u);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
);
|
|
@@ -318,16 +318,16 @@ function Nt({ searchQuery: t }) {
|
|
|
318
318
|
onSettled: () => l(null)
|
|
319
319
|
});
|
|
320
320
|
}, K = (s) => {
|
|
321
|
-
|
|
322
|
-
}, Q = (s) => {
|
|
323
|
-
U(s);
|
|
321
|
+
A(s);
|
|
324
322
|
}, W = (s) => {
|
|
323
|
+
U(s);
|
|
324
|
+
}, X = (s) => {
|
|
325
325
|
o(s), m(!0);
|
|
326
|
-
},
|
|
326
|
+
}, J = (s) => {
|
|
327
327
|
p(s);
|
|
328
|
-
},
|
|
328
|
+
}, Q = () => {
|
|
329
329
|
p(null);
|
|
330
|
-
},
|
|
330
|
+
}, q = ({
|
|
331
331
|
title: s,
|
|
332
332
|
description: R
|
|
333
333
|
}) => {
|
|
@@ -343,7 +343,7 @@ function Nt({ searchQuery: t }) {
|
|
|
343
343
|
return S ? /* @__PURE__ */ e(Ke, {}) : E ? /* @__PURE__ */ e(be, { className: "w-full flex-1 pr-2", children: /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
|
|
344
344
|
/* @__PURE__ */ e("p", { className: "text-[12px] text-destructive", children: "Failed to load visuals" }),
|
|
345
345
|
/* @__PURE__ */ e(
|
|
346
|
-
|
|
346
|
+
O,
|
|
347
347
|
{
|
|
348
348
|
variant: "outline",
|
|
349
349
|
size: "xs",
|
|
@@ -352,22 +352,22 @@ function Nt({ searchQuery: t }) {
|
|
|
352
352
|
}
|
|
353
353
|
)
|
|
354
354
|
] }) }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
|
|
355
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children:
|
|
355
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: z.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
|
|
356
356
|
/* @__PURE__ */ e(ut, { className: "h-5 w-5 text-muted-foreground/60" }),
|
|
357
357
|
/* @__PURE__ */ e("h3", { className: "text-[13px] font-medium text-foreground", children: t ? "No visuals found" : "No visuals yet" }),
|
|
358
358
|
/* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: t ? "Try adjusting your search." : 'Click "New" above to add your first visual.' })
|
|
359
|
-
] }) :
|
|
360
|
-
|
|
359
|
+
] }) : z.map((s) => /* @__PURE__ */ e(
|
|
360
|
+
Nt,
|
|
361
361
|
{
|
|
362
362
|
visual: s,
|
|
363
|
-
onAddVisual:
|
|
363
|
+
onAddVisual: W,
|
|
364
364
|
onOpenVisual: K,
|
|
365
|
-
onEditDetails:
|
|
366
|
-
onDeleteClick:
|
|
365
|
+
onEditDetails: J,
|
|
366
|
+
onDeleteClick: P,
|
|
367
367
|
onDuplicateVisual: k,
|
|
368
|
-
onShareVisual:
|
|
368
|
+
onShareVisual: X,
|
|
369
369
|
isDeleting: v,
|
|
370
|
-
isDuplicating:
|
|
370
|
+
isDuplicating: N === s.id,
|
|
371
371
|
formatDate: I
|
|
372
372
|
},
|
|
373
373
|
s.id
|
|
@@ -389,8 +389,8 @@ function Nt({ searchQuery: t }) {
|
|
|
389
389
|
resourceLabel: "Visual",
|
|
390
390
|
initialTitle: c.title || "",
|
|
391
391
|
initialDescription: c.description || "",
|
|
392
|
-
onClose:
|
|
393
|
-
onSave:
|
|
392
|
+
onClose: Q,
|
|
393
|
+
onSave: q,
|
|
394
394
|
isSaving: B(c.id)
|
|
395
395
|
}
|
|
396
396
|
),
|
|
@@ -404,13 +404,13 @@ function Nt({ searchQuery: t }) {
|
|
|
404
404
|
children: /* @__PURE__ */ n(Ee, { children: [
|
|
405
405
|
/* @__PURE__ */ n(Ve, { children: [
|
|
406
406
|
/* @__PURE__ */ e(Le, { children: "Delete Visual" }),
|
|
407
|
-
/* @__PURE__ */ n(
|
|
407
|
+
/* @__PURE__ */ n(Ae, { children: [
|
|
408
408
|
'Are you sure you want to delete "',
|
|
409
409
|
i == null ? void 0 : i.title,
|
|
410
410
|
'"? This action cannot be undone.'
|
|
411
411
|
] })
|
|
412
412
|
] }),
|
|
413
|
-
/* @__PURE__ */ n(
|
|
413
|
+
/* @__PURE__ */ n(Oe, { children: [
|
|
414
414
|
/* @__PURE__ */ e(Te, { disabled: v, children: "Cancel" }),
|
|
415
415
|
/* @__PURE__ */ n(
|
|
416
416
|
Re,
|
|
@@ -441,11 +441,11 @@ function yt({
|
|
|
441
441
|
onDuplicateDashboard: x,
|
|
442
442
|
onShareDashboard: i,
|
|
443
443
|
formatDate: D,
|
|
444
|
-
onDashboardItemClick:
|
|
444
|
+
onDashboardItemClick: N
|
|
445
445
|
}) {
|
|
446
446
|
var V, T;
|
|
447
|
-
const { selectDashboard: l } = ue(), c = ht(t.id), { userContext: p, isLoading:
|
|
448
|
-
l(t), r(t.id),
|
|
447
|
+
const { selectDashboard: l } = ue(), c = ht(t.id), { userContext: p, isLoading: A } = pe(), U = ((V = p == null ? void 0 : p.permissions) == null ? void 0 : V.canEdit) ?? !1, w = A || !U, S = () => {
|
|
448
|
+
l(t), r(t.id), N == null || N(t.id);
|
|
449
449
|
}, E = (C) => {
|
|
450
450
|
C.currentTarget === C.target && (C.key === "Enter" || C.key === " ") && (C.preventDefault(), S());
|
|
451
451
|
};
|
|
@@ -498,7 +498,7 @@ function yt({
|
|
|
498
498
|
dashboard: t,
|
|
499
499
|
isDeleting: f,
|
|
500
500
|
isDuplicating: m,
|
|
501
|
-
shouldHideActions:
|
|
501
|
+
shouldHideActions: w,
|
|
502
502
|
onEditDetails: o,
|
|
503
503
|
onDeleteClick: h,
|
|
504
504
|
onDuplicateDashboard: x,
|
|
@@ -515,14 +515,14 @@ function yt({
|
|
|
515
515
|
function Ct({ onRetry: t }) {
|
|
516
516
|
return /* @__PURE__ */ e(be, { className: "w-full flex-1 pr-2", children: /* @__PURE__ */ n("div", { className: "rounded-xl border border-dashed border-border/60 bg-muted/20 px-4 py-8 text-center text-muted-foreground", children: [
|
|
517
517
|
/* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: "Failed to load dashboards" }),
|
|
518
|
-
/* @__PURE__ */ e(
|
|
518
|
+
/* @__PURE__ */ e(O, { variant: "outline", size: "sm", className: "mt-2", onClick: t, children: "Retry" })
|
|
519
519
|
] }) });
|
|
520
520
|
}
|
|
521
521
|
function vt(t) {
|
|
522
522
|
var me;
|
|
523
523
|
const { searchQuery: f, onLoadDashboard: m, onEditDashboard: r, onDashboardItemClick: o } = t, [h, x] = b(!1), [i, D] = b(
|
|
524
524
|
null
|
|
525
|
-
), [
|
|
525
|
+
), [N, l] = b(!1), [c, p] = b(null), [A, U] = b(null), [w, S] = b(null), E = ae(
|
|
526
526
|
(a) => a.lastSelectedDashboard
|
|
527
527
|
), V = ae(
|
|
528
528
|
(a) => a.selectedDashboard
|
|
@@ -530,33 +530,33 @@ function vt(t) {
|
|
|
530
530
|
(a) => a.actions.selectDashboard
|
|
531
531
|
), C = ae(
|
|
532
532
|
(a) => a.actions.clearSelectedDashboard
|
|
533
|
-
), { tokenProps: v, id:
|
|
533
|
+
), { tokenProps: v, id: z } = mt(), {
|
|
534
534
|
resources: I,
|
|
535
|
-
isLoading:
|
|
535
|
+
isLoading: P,
|
|
536
536
|
isError: F,
|
|
537
537
|
updateResource: d,
|
|
538
|
-
deleteResource:
|
|
538
|
+
deleteResource: $,
|
|
539
539
|
duplicateResource: B,
|
|
540
540
|
isDeleting: L
|
|
541
541
|
} = Ue(() => {
|
|
542
542
|
l(!1);
|
|
543
543
|
const a = c == null ? void 0 : c.id;
|
|
544
|
-
p(null), (V == null ? void 0 : V.id) === a && (!(v != null && v.dashboard_id) && !
|
|
545
|
-
}), { userContext: k } = pe(), K = ((me = k == null ? void 0 : k.permissions) == null ? void 0 : me.canCreateDashboard) ?? !1,
|
|
544
|
+
p(null), (V == null ? void 0 : V.id) === a && (!(v != null && v.dashboard_id) && !z ? C() : E && E.id !== a && T(E));
|
|
545
|
+
}), { userContext: k } = pe(), K = ((me = k == null ? void 0 : k.permissions) == null ? void 0 : me.canCreateDashboard) ?? !1, W = I.filter(
|
|
546
546
|
(a) => {
|
|
547
|
-
var
|
|
548
|
-
return ((
|
|
547
|
+
var H, g;
|
|
548
|
+
return ((H = a == null ? void 0 : a.title) == null ? void 0 : H.toLowerCase().includes(f.toLowerCase())) || ((g = a == null ? void 0 : a.description) == null ? void 0 : g.toLowerCase().includes(f.toLowerCase()));
|
|
549
549
|
}
|
|
550
|
-
),
|
|
550
|
+
), X = (a) => new Date(a).toLocaleDateString("en-US", {
|
|
551
551
|
month: "short",
|
|
552
552
|
day: "numeric",
|
|
553
553
|
year: "numeric"
|
|
554
|
-
}),
|
|
554
|
+
}), J = (a) => {
|
|
555
555
|
m == null || m(a);
|
|
556
|
-
},
|
|
556
|
+
}, Q = (a) => {
|
|
557
557
|
p(a), l(!0);
|
|
558
|
-
},
|
|
559
|
-
c &&
|
|
558
|
+
}, q = () => {
|
|
559
|
+
c && $(c.id);
|
|
560
560
|
}, s = (a) => {
|
|
561
561
|
U(a), B(a, {
|
|
562
562
|
onSettled: () => U(null)
|
|
@@ -565,10 +565,10 @@ function vt(t) {
|
|
|
565
565
|
startUpdating: R,
|
|
566
566
|
stopUpdating: u,
|
|
567
567
|
isUpdating: j
|
|
568
|
-
} =
|
|
568
|
+
} = we(), y = (a, H, g) => {
|
|
569
569
|
var ge;
|
|
570
570
|
const re = Object.fromEntries(
|
|
571
|
-
Object.entries(
|
|
571
|
+
Object.entries(H).filter(([, G]) => G !== void 0)
|
|
572
572
|
);
|
|
573
573
|
if (Object.keys(re).length === 0) {
|
|
574
574
|
(ge = g == null ? void 0 : g.onSuccess) == null || ge.call(g);
|
|
@@ -591,42 +591,42 @@ function vt(t) {
|
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
);
|
|
594
|
-
},
|
|
594
|
+
}, _ = (a) => {
|
|
595
595
|
D(a), x(!0);
|
|
596
596
|
}, ne = (a) => {
|
|
597
597
|
r == null || r(a.id), S(a);
|
|
598
|
-
},
|
|
598
|
+
}, M = () => {
|
|
599
599
|
S(null);
|
|
600
|
-
},
|
|
600
|
+
}, _e = ({
|
|
601
601
|
title: a,
|
|
602
|
-
description:
|
|
602
|
+
description: H
|
|
603
603
|
}) => {
|
|
604
|
-
if (!
|
|
604
|
+
if (!w)
|
|
605
605
|
return;
|
|
606
606
|
const g = {};
|
|
607
|
-
a !==
|
|
607
|
+
a !== w.title && (g.title = a), (w.description || "") !== H && (g.description = H), y(w.id, g, {
|
|
608
608
|
onSuccess: () => {
|
|
609
609
|
S(null);
|
|
610
610
|
}
|
|
611
611
|
});
|
|
612
612
|
};
|
|
613
|
-
return
|
|
614
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children:
|
|
615
|
-
/* @__PURE__ */ e(
|
|
613
|
+
return P ? /* @__PURE__ */ e(Ke, {}) : F ? /* @__PURE__ */ e(Ct, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
|
|
614
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: W.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
|
|
615
|
+
/* @__PURE__ */ e($e, { className: "h-5 w-5 text-muted-foreground/60" }),
|
|
616
616
|
/* @__PURE__ */ e("h3", { className: "text-[13px] font-medium text-foreground", children: f ? "No dashboards found" : "No dashboards yet" }),
|
|
617
617
|
/* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: f ? "Try adjusting your search." : K ? 'Click "New" above to add your first dashboard.' : "No dashboards have been shared with you yet." })
|
|
618
|
-
] }) :
|
|
618
|
+
] }) : W.map((a) => /* @__PURE__ */ e(
|
|
619
619
|
yt,
|
|
620
620
|
{
|
|
621
621
|
dashboard: a,
|
|
622
622
|
isDeleting: L,
|
|
623
|
-
isDuplicating:
|
|
624
|
-
onLoadDashboard:
|
|
623
|
+
isDuplicating: A === a.id,
|
|
624
|
+
onLoadDashboard: J,
|
|
625
625
|
onEditDetails: ne,
|
|
626
|
-
onDeleteClick:
|
|
626
|
+
onDeleteClick: Q,
|
|
627
627
|
onDuplicateDashboard: s,
|
|
628
|
-
onShareDashboard:
|
|
629
|
-
formatDate:
|
|
628
|
+
onShareDashboard: _,
|
|
629
|
+
formatDate: X,
|
|
630
630
|
onDashboardItemClick: o
|
|
631
631
|
},
|
|
632
632
|
a.id
|
|
@@ -644,26 +644,26 @@ function vt(t) {
|
|
|
644
644
|
/* @__PURE__ */ e(
|
|
645
645
|
Se,
|
|
646
646
|
{
|
|
647
|
-
open:
|
|
647
|
+
open: N,
|
|
648
648
|
onOpenChange: (a) => {
|
|
649
649
|
!a && L || (l(a), a || p(null));
|
|
650
650
|
},
|
|
651
651
|
children: /* @__PURE__ */ n(Ee, { children: [
|
|
652
652
|
/* @__PURE__ */ n(Ve, { children: [
|
|
653
653
|
/* @__PURE__ */ e(Le, { children: "Delete Dashboard" }),
|
|
654
|
-
/* @__PURE__ */ n(
|
|
654
|
+
/* @__PURE__ */ n(Ae, { children: [
|
|
655
655
|
'Are you sure you want to delete "',
|
|
656
656
|
c == null ? void 0 : c.title,
|
|
657
657
|
'"? This action cannot be undone.'
|
|
658
658
|
] })
|
|
659
659
|
] }),
|
|
660
|
-
/* @__PURE__ */ n(
|
|
660
|
+
/* @__PURE__ */ n(Oe, { children: [
|
|
661
661
|
/* @__PURE__ */ e(Te, { disabled: L, children: "Cancel" }),
|
|
662
662
|
/* @__PURE__ */ n(
|
|
663
663
|
Re,
|
|
664
664
|
{
|
|
665
665
|
onClick: (a) => {
|
|
666
|
-
a.preventDefault(), a.stopPropagation(),
|
|
666
|
+
a.preventDefault(), a.stopPropagation(), q();
|
|
667
667
|
},
|
|
668
668
|
disabled: L,
|
|
669
669
|
children: [
|
|
@@ -676,22 +676,22 @@ function vt(t) {
|
|
|
676
676
|
] })
|
|
677
677
|
}
|
|
678
678
|
),
|
|
679
|
-
|
|
679
|
+
w && /* @__PURE__ */ e(
|
|
680
680
|
ve,
|
|
681
681
|
{
|
|
682
|
-
open: !!
|
|
682
|
+
open: !!w,
|
|
683
683
|
resourceLabel: "Dashboard",
|
|
684
|
-
initialTitle:
|
|
685
|
-
initialDescription:
|
|
686
|
-
onClose:
|
|
687
|
-
onSave:
|
|
688
|
-
isSaving: j(
|
|
684
|
+
initialTitle: w.title || "",
|
|
685
|
+
initialDescription: w.description || "",
|
|
686
|
+
onClose: M,
|
|
687
|
+
onSave: _e,
|
|
688
|
+
isSaving: j(w.id)
|
|
689
689
|
}
|
|
690
690
|
)
|
|
691
691
|
] });
|
|
692
692
|
}
|
|
693
693
|
function St(t, f = {}) {
|
|
694
|
-
const { enabled: m = !0, eventType: r = "mousedown" } = f, o =
|
|
694
|
+
const { enabled: m = !0, eventType: r = "mousedown" } = f, o = qe(null);
|
|
695
695
|
return ee(() => {
|
|
696
696
|
const h = (x) => {
|
|
697
697
|
const i = x.target;
|
|
@@ -714,12 +714,12 @@ function Et({
|
|
|
714
714
|
}, [t]);
|
|
715
715
|
const D = () => {
|
|
716
716
|
o.trim() && m({ title: o, description: x });
|
|
717
|
-
},
|
|
717
|
+
}, N = (l) => {
|
|
718
718
|
f(l);
|
|
719
719
|
};
|
|
720
|
-
return /* @__PURE__ */ e(Ie, { open: t, onOpenChange:
|
|
721
|
-
/* @__PURE__ */ n(
|
|
722
|
-
/* @__PURE__ */ e(
|
|
720
|
+
return /* @__PURE__ */ e(Ie, { open: t, onOpenChange: N, children: /* @__PURE__ */ n(ze, { className: "sm:max-w-[480px]", children: [
|
|
721
|
+
/* @__PURE__ */ n(Me, { children: [
|
|
722
|
+
/* @__PURE__ */ e(Pe, { className: "text-[15px]", children: "New dashboard" }),
|
|
723
723
|
/* @__PURE__ */ e(Fe, { className: "text-[13px]", children: "Give it a name and an optional description." })
|
|
724
724
|
] }),
|
|
725
725
|
/* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
@@ -758,18 +758,18 @@ function Et({
|
|
|
758
758
|
] }),
|
|
759
759
|
/* @__PURE__ */ n(je, { className: "gap-1.5", children: [
|
|
760
760
|
/* @__PURE__ */ e(
|
|
761
|
-
|
|
761
|
+
O,
|
|
762
762
|
{
|
|
763
763
|
type: "button",
|
|
764
764
|
variant: "outline",
|
|
765
765
|
size: "xs",
|
|
766
|
-
onClick: () =>
|
|
766
|
+
onClick: () => N(!1),
|
|
767
767
|
disabled: r,
|
|
768
768
|
children: "Cancel"
|
|
769
769
|
}
|
|
770
770
|
),
|
|
771
771
|
/* @__PURE__ */ e(
|
|
772
|
-
|
|
772
|
+
O,
|
|
773
773
|
{
|
|
774
774
|
type: "button",
|
|
775
775
|
size: "xs",
|
|
@@ -796,12 +796,12 @@ function Vt({
|
|
|
796
796
|
}, [t]);
|
|
797
797
|
const D = () => {
|
|
798
798
|
o.trim() && m({ title: o, description: x });
|
|
799
|
-
},
|
|
799
|
+
}, N = (l) => {
|
|
800
800
|
f(l);
|
|
801
801
|
};
|
|
802
|
-
return /* @__PURE__ */ e(Ie, { open: t, onOpenChange:
|
|
803
|
-
/* @__PURE__ */ n(
|
|
804
|
-
/* @__PURE__ */ e(
|
|
802
|
+
return /* @__PURE__ */ e(Ie, { open: t, onOpenChange: N, children: /* @__PURE__ */ n(ze, { children: [
|
|
803
|
+
/* @__PURE__ */ n(Me, { children: [
|
|
804
|
+
/* @__PURE__ */ e(Pe, { children: "Create New Visual" }),
|
|
805
805
|
/* @__PURE__ */ e(Fe, { children: "Add a new visual to your library. You can configure it after creation." })
|
|
806
806
|
] }),
|
|
807
807
|
/* @__PURE__ */ n("div", { className: "space-y-4 py-4", children: [
|
|
@@ -837,16 +837,16 @@ function Vt({
|
|
|
837
837
|
] }),
|
|
838
838
|
/* @__PURE__ */ n(je, { children: [
|
|
839
839
|
/* @__PURE__ */ e(
|
|
840
|
-
|
|
840
|
+
O,
|
|
841
841
|
{
|
|
842
842
|
variant: "outline",
|
|
843
|
-
onClick: () =>
|
|
843
|
+
onClick: () => N(!1),
|
|
844
844
|
disabled: r,
|
|
845
845
|
children: "Cancel"
|
|
846
846
|
}
|
|
847
847
|
),
|
|
848
848
|
/* @__PURE__ */ e(
|
|
849
|
-
|
|
849
|
+
O,
|
|
850
850
|
{
|
|
851
851
|
onClick: D,
|
|
852
852
|
disabled: !o.trim() || r,
|
|
@@ -869,38 +869,38 @@ function It({
|
|
|
869
869
|
var u, j;
|
|
870
870
|
const h = se(
|
|
871
871
|
(y) => y.isDashboardEditing
|
|
872
|
-
), [x, i] = b(!1), [D,
|
|
872
|
+
), [x, i] = b(!1), [D, N] = b(""), [l, c] = b(!1), { currentUser: p, userContext: A } = pe(), U = ((u = A == null ? void 0 : A.permissions) == null ? void 0 : u.canCreateDashboard) ?? !1, { onCreateSuccess: w } = gt({
|
|
873
873
|
onDashboardSelect: r
|
|
874
874
|
}), { selectVisual: S } = ue(), { handleEditLibraryVisual: E } = Be(), {
|
|
875
875
|
createResource: V,
|
|
876
876
|
isCreating: T,
|
|
877
877
|
refetch: C
|
|
878
|
-
} = Ue(), { createResource: v, isCreating:
|
|
878
|
+
} = Ue(), { createResource: v, isCreating: z } = Ne(
|
|
879
879
|
void 0,
|
|
880
880
|
// onDeleteSuccess (not needed here)
|
|
881
881
|
(y) => {
|
|
882
882
|
i(!1), y && (S(y), E(y));
|
|
883
883
|
}
|
|
884
|
-
), I = o === "overlay",
|
|
884
|
+
), I = o === "overlay", P = h ? "New Visual" : "New", F = h ? "New Visual" : "New Dashboard", d = h ? "Search visuals..." : "Search dashboards...", $ = h ? "Collapse visuals panel" : "Collapse dashboard panel", B = ((p == null ? void 0 : p.name) ?? "").trim(), L = ((p == null ? void 0 : p.email) ?? "").trim(), K = B && B.toLowerCase() !== "undefined" ? B : L || "Current user", W = ((j = K.charAt(0)) == null ? void 0 : j.toUpperCase()) || "?", X = L && L.toLowerCase() !== "undefined" ? L : "", J = St(f, {
|
|
885
885
|
enabled: t && I
|
|
886
|
-
}),
|
|
886
|
+
}), Q = Z(
|
|
887
887
|
"flex h-full flex-col border-r border-border/60 bg-background",
|
|
888
888
|
I ? Z(
|
|
889
889
|
"absolute inset-y-0 left-0 z-[51] w-60 overflow-hidden shadow-lg transition-transform duration-300 ease-in-out",
|
|
890
890
|
t ? "translate-x-0" : "pointer-events-none -translate-x-full"
|
|
891
891
|
) : "w-full max-w-[17rem] min-w-[11rem] overflow-hidden",
|
|
892
892
|
m
|
|
893
|
-
),
|
|
893
|
+
), q = (y) => {
|
|
894
894
|
}, s = (y) => {
|
|
895
895
|
console.log("Editing dashboard:", y);
|
|
896
896
|
}, R = (y) => {
|
|
897
897
|
V(y, {
|
|
898
|
-
onSuccess: (
|
|
899
|
-
i(!1),
|
|
898
|
+
onSuccess: (_) => {
|
|
899
|
+
i(!1), w(_, C);
|
|
900
900
|
}
|
|
901
901
|
});
|
|
902
902
|
};
|
|
903
|
-
return /* @__PURE__ */ e(oe, { children: (!I || t) && /* @__PURE__ */ n("div", { ref:
|
|
903
|
+
return /* @__PURE__ */ e(oe, { children: (!I || t) && /* @__PURE__ */ n("div", { ref: J, className: Q, children: [
|
|
904
904
|
/* @__PURE__ */ e("div", { className: "border-b border-border/60 bg-background", children: l ? /* @__PURE__ */ n("div", { className: "flex h-10 items-center gap-1 px-3", children: [
|
|
905
905
|
/* @__PURE__ */ e(De, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
906
906
|
/* @__PURE__ */ e(
|
|
@@ -908,9 +908,9 @@ function It({
|
|
|
908
908
|
{
|
|
909
909
|
autoFocus: !0,
|
|
910
910
|
value: D,
|
|
911
|
-
onChange: (y) =>
|
|
911
|
+
onChange: (y) => N(y.target.value),
|
|
912
912
|
onKeyDown: (y) => {
|
|
913
|
-
y.key === "Escape" && (
|
|
913
|
+
y.key === "Escape" && (N(""), c(!1));
|
|
914
914
|
},
|
|
915
915
|
placeholder: d,
|
|
916
916
|
className: "h-7 min-w-0 flex-1 bg-transparent text-[13px] text-foreground placeholder:text-muted-foreground focus:outline-none",
|
|
@@ -918,13 +918,13 @@ function It({
|
|
|
918
918
|
}
|
|
919
919
|
),
|
|
920
920
|
/* @__PURE__ */ e(
|
|
921
|
-
|
|
921
|
+
O,
|
|
922
922
|
{
|
|
923
923
|
size: "xs",
|
|
924
924
|
variant: "ghost",
|
|
925
925
|
className: "w-7 shrink-0 px-0 text-muted-foreground hover:text-foreground",
|
|
926
926
|
onClick: () => {
|
|
927
|
-
|
|
927
|
+
N(""), c(!1);
|
|
928
928
|
},
|
|
929
929
|
"aria-label": "Close search",
|
|
930
930
|
children: /* @__PURE__ */ e(ke, { className: "h-3.5 w-3.5" })
|
|
@@ -934,7 +934,7 @@ function It({
|
|
|
934
934
|
/* @__PURE__ */ e("h2", { className: "whitespace-nowrap text-[13px] font-medium text-foreground", children: h ? "Visuals" : "Dashboards" }),
|
|
935
935
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-0.5", children: [
|
|
936
936
|
/* @__PURE__ */ e(
|
|
937
|
-
|
|
937
|
+
O,
|
|
938
938
|
{
|
|
939
939
|
size: "xs",
|
|
940
940
|
variant: "ghost",
|
|
@@ -945,7 +945,7 @@ function It({
|
|
|
945
945
|
}
|
|
946
946
|
),
|
|
947
947
|
(h || U) && /* @__PURE__ */ n(
|
|
948
|
-
|
|
948
|
+
O,
|
|
949
949
|
{
|
|
950
950
|
size: "xs",
|
|
951
951
|
variant: "outline",
|
|
@@ -953,44 +953,44 @@ function It({
|
|
|
953
953
|
"aria-label": F,
|
|
954
954
|
children: [
|
|
955
955
|
/* @__PURE__ */ e(ce, { className: "h-3.5 w-3.5" }),
|
|
956
|
-
|
|
956
|
+
P
|
|
957
957
|
]
|
|
958
958
|
}
|
|
959
959
|
),
|
|
960
960
|
/* @__PURE__ */ e(
|
|
961
|
-
|
|
961
|
+
O,
|
|
962
962
|
{
|
|
963
963
|
size: "xs",
|
|
964
964
|
variant: "ghost",
|
|
965
965
|
className: "w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
966
966
|
onClick: f,
|
|
967
|
-
"aria-label":
|
|
967
|
+
"aria-label": $,
|
|
968
968
|
children: /* @__PURE__ */ e(xt, { className: "h-3.5 w-3.5" })
|
|
969
969
|
}
|
|
970
970
|
)
|
|
971
971
|
] })
|
|
972
972
|
] }) }),
|
|
973
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col overflow-auto px-1.5 py-2", children: h ? /* @__PURE__ */ e(
|
|
973
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col overflow-auto px-1.5 py-2", children: h ? /* @__PURE__ */ e(wt, { searchQuery: D }) : /* @__PURE__ */ e(
|
|
974
974
|
vt,
|
|
975
975
|
{
|
|
976
976
|
searchQuery: D,
|
|
977
|
-
onLoadDashboard:
|
|
977
|
+
onLoadDashboard: q,
|
|
978
978
|
onEditDashboard: s,
|
|
979
979
|
onDashboardItemClick: r
|
|
980
980
|
}
|
|
981
981
|
) }),
|
|
982
|
-
p && /* @__PURE__ */ e(
|
|
983
|
-
/* @__PURE__ */ e(
|
|
984
|
-
/* @__PURE__ */ e("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground", children:
|
|
982
|
+
p && /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e("div", { className: "border-t border-border/60 px-3 py-2", children: /* @__PURE__ */ n(Xe, { children: [
|
|
983
|
+
/* @__PURE__ */ e(Ye, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex cursor-default items-center gap-2", children: [
|
|
984
|
+
/* @__PURE__ */ e("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground", children: W }),
|
|
985
985
|
/* @__PURE__ */ e("span", { className: "truncate text-[12px] text-muted-foreground", children: K })
|
|
986
986
|
] }) }),
|
|
987
987
|
/* @__PURE__ */ e(Ze, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-0.5", children: [
|
|
988
988
|
/* @__PURE__ */ e("div", { className: "font-medium", children: K }),
|
|
989
|
-
|
|
989
|
+
X && /* @__PURE__ */ e("div", { className: "text-[11px] opacity-80", children: X }),
|
|
990
990
|
p.role && /* @__PURE__ */ n("div", { className: "text-[11px] opacity-80", children: [
|
|
991
991
|
"Role:",
|
|
992
992
|
" ",
|
|
993
|
-
|
|
993
|
+
Je(p.role.replace(/_/g, " "))
|
|
994
994
|
] })
|
|
995
995
|
] }) })
|
|
996
996
|
] }) }) }),
|
|
@@ -1000,7 +1000,7 @@ function It({
|
|
|
1000
1000
|
open: x,
|
|
1001
1001
|
onOpenChange: i,
|
|
1002
1002
|
onSubmit: v,
|
|
1003
|
-
isCreating:
|
|
1003
|
+
isCreating: z
|
|
1004
1004
|
}
|
|
1005
1005
|
) : /* @__PURE__ */ e(
|
|
1006
1006
|
Et,
|