react-semaphor 0.1.136 → 0.1.138
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/chunks/{dashboard-controls-C35Jz1fx.js → dashboard-controls-CxQYnkax.js} +3 -3
- package/dist/chunks/{dashboard-controls-Dxx6-zR2.js → dashboard-controls-hLb7d4n_.js} +1 -1
- package/dist/chunks/{dashboard-export-dialog-BDv_HVGR.js → dashboard-export-dialog-JVjnwTLv.js} +1 -1
- package/dist/chunks/{dashboard-export-dialog-DYKctzwH.js → dashboard-export-dialog-XQQow9XX.js} +3 -3
- package/dist/chunks/{dashboard-json-DbfqDpJH.js → dashboard-json-CSK4231d.js} +1 -1
- package/dist/chunks/{dashboard-json-DizAEdr3.js → dashboard-json-W8a-T1U3.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CovPTSDH.js → edit-dashboard-visual-BGH8yv2A.js} +455 -448
- package/dist/chunks/edit-dashboard-visual-C8ZQJfdk.js +200 -0
- package/dist/chunks/{editor-action-buttons-CPJ-_aGj.js → editor-action-buttons-BmBNyNxY.js} +1 -1
- package/dist/chunks/{editor-action-buttons-D-k-U0HS.js → editor-action-buttons-zUsKxZMu.js} +2 -2
- package/dist/chunks/{index-baj-eF5k.js → index-MdpD3qo9.js} +3 -3
- package/dist/chunks/{index-Bqqna9eB.js → index-NjRBKdZ2.js} +23 -11
- package/dist/chunks/{resource-management-panel-BJfU9o5-.js → resource-management-panel-C_q7Ilyi.js} +2 -2
- package/dist/chunks/{resource-management-panel-CU-aO9tG.js → resource-management-panel-Di5Mg69T.js} +1 -1
- package/dist/chunks/{use-visual-utils-DP_QQo_Q.js → use-visual-utils-CmKlc7fo.js} +1 -1
- package/dist/chunks/{use-visual-utils-r0hON58l.js → use-visual-utils-oliZ5xcR.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-AgjWs5LG.js +0 -200
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import { b as pe, l as mt, e as ne, f as I, c7 as ca, ax as P, c8 as W, c9 as X, ca as Z, cb as ee, cc as K, cd as
|
|
2
|
+
import { b as pe, l as mt, e as ne, f as I, c7 as ca, ax as P, c8 as W, c9 as X, ca as Z, cb as ee, cc as K, cd as be, B as q, b8 as Ye, ce as Ea, cf as Ts, cg as Es, ch as Ds, ci as Ms, cj as da, r as Xe, X as Ae, ck as mn, bd as hn, as as wt, at as St, au as kt, av as At, aw as Ut, k as Ie, bs as Le, bo as Ge, bp as Te, bq as Ee, cl as Qn, cm as pn, u as Ne, aB as wa, a$ as ht, bj as Xt, c as Y, aA as We, cn as Is, b6 as Os, co as Ul, cp as _l, cq as Jl, cr as na, cs as Hl, ct as Fs, bN as Rs, cu as at, cv as sa, cw as va, cx as Ql, cy as ya, cz as fn, cA as Ls, cB as Ps, cC as Lt, cD as Vs, cE as Yl, bD as Wl, cF as Xl, cG as Bs, cH as Zl, cI as gn, cJ as er, h as tr, cK as ar, cL as nn, cM as Tt, cN as Be, cO as Et, L as _t, cP as nr, cQ as zs, c4 as Jt, aF as Da, aZ as ua, cR as Zt, cS as sr, bk as Ma, a_ as pt, aE as lr, cT as sn, bh as rr, aL as xn, g as js, cU as bn, cV as ir, cW as $s, cX as Ks, cY as Sa, c2 as Ua, cZ as or, c_ as cr, c$ as qs, d0 as dr, d1 as ur, d2 as mr, d3 as Ia, d4 as hr, d5 as pr, d6 as Yn, d7 as fr, E as Oa, o as vn, d8 as gr, d9 as yn, bF as xr, I as Me, da as br, db as vr, bR as Fa, bS as Ra, bT as lt, bU as Na, dc as yr, dd as Gs, de as La, df as Us, dg as ma, dh as Nn, di as Cn, dj as wn, dk as Sn, dl as ha, dm as Pa, dn as _s, dp as ln, dq as kn, dr as An, ds as Js, dt as Tn, du as Hs, dv as En, b7 as Va, dw as Ba, dx as Nr, P as Ue, q as _e, s as Je, bz as za, ay as je, aG as Dn, aH as Mn, aJ as In, bG as Qs, bc as qt, dy as ct, dz as Dt, dA as Mt, dB as ft, dC as Ht, dD as Cr, a3 as wr, dE as Sr, aD as Gt, dF as kr, dG as On, dH as Ar, dI as Tr, dJ as Er, dK as Dr, dL as Mr, b3 as Ir, dM as Or, dN as Ys, dO as Fn, b1 as ve, dP as Qt, dQ as ra, dR as Fr, dS as Ws, dT as He, dU as ue, dV as me, dW as he, dX as dt, c5 as Xs, dY as Rr, dZ as Lr, d_ as Pr, d$ as Vr, e0 as Br, e1 as zr, ah as Zs, e2 as jr, e3 as $r, e4 as Kr, t as It, v as Ot, w as Ft, x as Rt, y as rt, z as gt, e5 as qr, e6 as qe, e7 as ga, e8 as Wn, e9 as Gr, ea as Xn, eb as Ur, C as ea, ec as Re, ed as _r, ee as Zn, ef as es, eg as Jr, eh as Hr, ei as Qr, ej as Yr, ek as _a, el, em as Wr, en as ts, eo as as, an as ja, A as Xr, ep as Zr, eq as ei, er as ti, es as ai, et as ni, ad as ns, eu as ss, ev as si, ew as li, ex as tl, ey as ri, ez as al, eA as ii, eB as oi, eC as ci, eD as di, eE as ui, eF as mi, eG as hi, eH as pi, eI as fi, eJ as gi, eK as nl, eL as xi, eM as bi, eN as vi, eO as yi, eP as Ni, eQ as Ci, eR as wi, eS as sl, aI as Si, eT as ls, eU as Ja, eV as Rn, Z as ki, eW as Ai, eX as ll, eY as Ti, bM as rl, eZ as Fe, az as Ei, $ as ka, e_ as Di, e$ as Mi, f0 as $a, f1 as il, f2 as Ka, f3 as Ii, bA as Oi, f4 as rs, f5 as Fi, f6 as Ri, f7 as Li, f8 as Ca, f9 as pa, fa as Pi, fb as Ln, fc as Vi, fd as Aa, fe as Bi, ff as zi, fg as ia, fh as ut, fi as rn, fj as on, fk as oa, fl as ol, fm as Yt, fn as ji, fo as Ha, fp as Qa, fq as $i, fr as Ya, fs as Ki, ft as is, fu as qi, fv as Gi, fw as Ui, fx as _i, aK as ze, fy as Ji, fz as Hi, fA as Qi, b2 as Yi, bf as qa, fB as os, fC as cl, fD as Wa, fE as Xa, fF as Wi, fG as Xi, fH as Zi, F as eo } from "./index-NjRBKdZ2.js";
|
|
3
3
|
import * as cn from "react";
|
|
4
|
-
import dn, { useState as $, useEffect as fe, useRef as Qe, useCallback as $e, useContext as Pn, useMemo as Ce, Suspense as
|
|
5
|
-
import { d as Vn } from "./editor-action-buttons-
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
4
|
+
import dn, { useState as $, useEffect as fe, useRef as Qe, useCallback as $e, useContext as Pn, useMemo as Ce, Suspense as to } from "react";
|
|
5
|
+
import { d as Vn } from "./editor-action-buttons-zUsKxZMu.js";
|
|
6
|
+
import { createPortal as ao } from "react-dom";
|
|
7
|
+
import { u as no } from "./use-visual-utils-oliZ5xcR.js";
|
|
8
|
+
import { u as so } from "./use-click-outside-CMeO_QFI.js";
|
|
9
9
|
/**
|
|
10
10
|
* @license lucide-react v0.453.0 - ISC
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the ISC license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
const
|
|
15
|
+
const lo = pe("ArrowDownAZ", [
|
|
16
16
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
17
17
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
18
18
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -25,7 +25,7 @@ const no = pe("ArrowDownAZ", [
|
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
28
|
+
const ro = pe("ArrowUpAZ", [
|
|
29
29
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
30
30
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
31
31
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -38,7 +38,7 @@ const so = pe("ArrowUpAZ", [
|
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
39
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
const
|
|
41
|
+
const dl = pe("Blocks", [
|
|
42
42
|
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
43
43
|
[
|
|
44
44
|
"path",
|
|
@@ -54,7 +54,7 @@ const lo = pe("Blocks", [
|
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
56
|
*/
|
|
57
|
-
const
|
|
57
|
+
const io = pe("BookOpenText", [
|
|
58
58
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
59
59
|
["path", { d: "M16 12h2", key: "7q9ll5" }],
|
|
60
60
|
["path", { d: "M16 8h2", key: "msurwy" }],
|
|
@@ -74,7 +74,7 @@ const ro = pe("BookOpenText", [
|
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
76
|
*/
|
|
77
|
-
const
|
|
77
|
+
const oo = pe("ChevronsUpDown", [
|
|
78
78
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
79
79
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
80
80
|
]);
|
|
@@ -84,7 +84,7 @@ const io = pe("ChevronsUpDown", [
|
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
86
|
*/
|
|
87
|
-
const
|
|
87
|
+
const ul = pe("CircleX", [
|
|
88
88
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
89
89
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
90
90
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -95,7 +95,7 @@ const dl = pe("CircleX", [
|
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
97
|
*/
|
|
98
|
-
const
|
|
98
|
+
const ml = pe("Columns3", [
|
|
99
99
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
100
100
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
101
101
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
@@ -106,7 +106,7 @@ const ul = pe("Columns3", [
|
|
|
106
106
|
* This source code is licensed under the ISC license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
108
|
*/
|
|
109
|
-
const
|
|
109
|
+
const co = pe("Component", [
|
|
110
110
|
[
|
|
111
111
|
"path",
|
|
112
112
|
{
|
|
@@ -142,7 +142,7 @@ const oo = pe("Component", [
|
|
|
142
142
|
* This source code is licensed under the ISC license.
|
|
143
143
|
* See the LICENSE file in the root directory of this source tree.
|
|
144
144
|
*/
|
|
145
|
-
const
|
|
145
|
+
const uo = pe("EyeClosed", [
|
|
146
146
|
["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
|
|
147
147
|
["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
|
|
148
148
|
["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
|
|
@@ -155,7 +155,7 @@ const co = pe("EyeClosed", [
|
|
|
155
155
|
* This source code is licensed under the ISC license.
|
|
156
156
|
* See the LICENSE file in the root directory of this source tree.
|
|
157
157
|
*/
|
|
158
|
-
const
|
|
158
|
+
const hl = pe("FileCode2", [
|
|
159
159
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
160
160
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
161
161
|
["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
|
|
@@ -167,7 +167,7 @@ const ml = pe("FileCode2", [
|
|
|
167
167
|
* This source code is licensed under the ISC license.
|
|
168
168
|
* See the LICENSE file in the root directory of this source tree.
|
|
169
169
|
*/
|
|
170
|
-
const
|
|
170
|
+
const mo = pe("FileJson2", [
|
|
171
171
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
172
172
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
173
173
|
[
|
|
@@ -185,7 +185,7 @@ const uo = pe("FileJson2", [
|
|
|
185
185
|
* This source code is licensed under the ISC license.
|
|
186
186
|
* See the LICENSE file in the root directory of this source tree.
|
|
187
187
|
*/
|
|
188
|
-
const
|
|
188
|
+
const ho = pe("Fullscreen", [
|
|
189
189
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
190
190
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
191
191
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
@@ -198,7 +198,7 @@ const mo = pe("Fullscreen", [
|
|
|
198
198
|
* This source code is licensed under the ISC license.
|
|
199
199
|
* See the LICENSE file in the root directory of this source tree.
|
|
200
200
|
*/
|
|
201
|
-
const
|
|
201
|
+
const po = pe("GitCompareArrows", [
|
|
202
202
|
["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
|
|
203
203
|
["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
|
|
204
204
|
["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
|
|
@@ -212,7 +212,7 @@ const ho = pe("GitCompareArrows", [
|
|
|
212
212
|
* This source code is licensed under the ISC license.
|
|
213
213
|
* See the LICENSE file in the root directory of this source tree.
|
|
214
214
|
*/
|
|
215
|
-
const
|
|
215
|
+
const fo = pe("Hammer", [
|
|
216
216
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
217
217
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
218
218
|
[
|
|
@@ -229,7 +229,7 @@ const po = pe("Hammer", [
|
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
231
|
*/
|
|
232
|
-
const
|
|
232
|
+
const go = pe("LayoutList", [
|
|
233
233
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
234
234
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
235
235
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -243,7 +243,7 @@ const fo = pe("LayoutList", [
|
|
|
243
243
|
* This source code is licensed under the ISC license.
|
|
244
244
|
* See the LICENSE file in the root directory of this source tree.
|
|
245
245
|
*/
|
|
246
|
-
const
|
|
246
|
+
const xo = pe("Library", [
|
|
247
247
|
["path", { d: "m16 6 4 14", key: "ji33uf" }],
|
|
248
248
|
["path", { d: "M12 6v14", key: "1n7gus" }],
|
|
249
249
|
["path", { d: "M8 8v12", key: "1gg7y9" }],
|
|
@@ -255,7 +255,7 @@ const go = pe("Library", [
|
|
|
255
255
|
* This source code is licensed under the ISC license.
|
|
256
256
|
* See the LICENSE file in the root directory of this source tree.
|
|
257
257
|
*/
|
|
258
|
-
const
|
|
258
|
+
const bo = pe("Link2", [
|
|
259
259
|
["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
|
|
260
260
|
["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
|
|
261
261
|
["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
|
|
@@ -266,7 +266,7 @@ const xo = pe("Link2", [
|
|
|
266
266
|
* This source code is licensed under the ISC license.
|
|
267
267
|
* See the LICENSE file in the root directory of this source tree.
|
|
268
268
|
*/
|
|
269
|
-
const
|
|
269
|
+
const vo = pe("ListEnd", [
|
|
270
270
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
271
271
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
272
272
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -279,7 +279,7 @@ const bo = pe("ListEnd", [
|
|
|
279
279
|
* This source code is licensed under the ISC license.
|
|
280
280
|
* See the LICENSE file in the root directory of this source tree.
|
|
281
281
|
*/
|
|
282
|
-
const
|
|
282
|
+
const yo = pe("ListFilter", [
|
|
283
283
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
284
284
|
["path", { d: "M7 12h10", key: "b7w52i" }],
|
|
285
285
|
["path", { d: "M10 18h4", key: "1ulq68" }]
|
|
@@ -290,7 +290,7 @@ const vo = pe("ListFilter", [
|
|
|
290
290
|
* This source code is licensed under the ISC license.
|
|
291
291
|
* See the LICENSE file in the root directory of this source tree.
|
|
292
292
|
*/
|
|
293
|
-
const
|
|
293
|
+
const No = pe("ListStart", [
|
|
294
294
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
295
295
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
296
296
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -303,7 +303,7 @@ const yo = pe("ListStart", [
|
|
|
303
303
|
* This source code is licensed under the ISC license.
|
|
304
304
|
* See the LICENSE file in the root directory of this source tree.
|
|
305
305
|
*/
|
|
306
|
-
const
|
|
306
|
+
const Co = pe("ListX", [
|
|
307
307
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
308
308
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
309
309
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -338,7 +338,7 @@ const en = pe("MoveVertical", [
|
|
|
338
338
|
* This source code is licensed under the ISC license.
|
|
339
339
|
* See the LICENSE file in the root directory of this source tree.
|
|
340
340
|
*/
|
|
341
|
-
const
|
|
341
|
+
const wo = pe("Palette", [
|
|
342
342
|
["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
|
|
343
343
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
344
344
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }],
|
|
@@ -357,7 +357,7 @@ const Co = pe("Palette", [
|
|
|
357
357
|
* This source code is licensed under the ISC license.
|
|
358
358
|
* See the LICENSE file in the root directory of this source tree.
|
|
359
359
|
*/
|
|
360
|
-
const
|
|
360
|
+
const So = pe("PanelRightClose", [
|
|
361
361
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
362
362
|
["path", { d: "M15 3v18", key: "14nvp0" }],
|
|
363
363
|
["path", { d: "m8 9 3 3-3 3", key: "12hl5m" }]
|
|
@@ -368,7 +368,7 @@ const wo = pe("PanelRightClose", [
|
|
|
368
368
|
* This source code is licensed under the ISC license.
|
|
369
369
|
* See the LICENSE file in the root directory of this source tree.
|
|
370
370
|
*/
|
|
371
|
-
const
|
|
371
|
+
const ko = pe("PanelRight", [
|
|
372
372
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
373
373
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
374
374
|
]);
|
|
@@ -416,7 +416,7 @@ const Wt = pe("Shapes", [
|
|
|
416
416
|
* This source code is licensed under the ISC license.
|
|
417
417
|
* See the LICENSE file in the root directory of this source tree.
|
|
418
418
|
*/
|
|
419
|
-
const
|
|
419
|
+
const pl = pe("SlidersHorizontal", [
|
|
420
420
|
["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
|
|
421
421
|
["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
|
|
422
422
|
["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
|
|
@@ -433,7 +433,7 @@ const hl = pe("SlidersHorizontal", [
|
|
|
433
433
|
* This source code is licensed under the ISC license.
|
|
434
434
|
* See the LICENSE file in the root directory of this source tree.
|
|
435
435
|
*/
|
|
436
|
-
const
|
|
436
|
+
const Ao = pe("SquareFunction", [
|
|
437
437
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
438
438
|
["path", { d: "M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3", key: "m1af9g" }],
|
|
439
439
|
["path", { d: "M9 11.2h5.7", key: "3zgcl2" }]
|
|
@@ -444,7 +444,7 @@ const ko = pe("SquareFunction", [
|
|
|
444
444
|
* This source code is licensed under the ISC license.
|
|
445
445
|
* See the LICENSE file in the root directory of this source tree.
|
|
446
446
|
*/
|
|
447
|
-
const
|
|
447
|
+
const To = pe("SquareSplitVertical", [
|
|
448
448
|
["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
|
|
449
449
|
["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
|
|
450
450
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
@@ -455,7 +455,7 @@ const Ao = pe("SquareSplitVertical", [
|
|
|
455
455
|
* This source code is licensed under the ISC license.
|
|
456
456
|
* See the LICENSE file in the root directory of this source tree.
|
|
457
457
|
*/
|
|
458
|
-
const
|
|
458
|
+
const Eo = pe("Square", [
|
|
459
459
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
460
460
|
]);
|
|
461
461
|
/**
|
|
@@ -464,7 +464,7 @@ const To = pe("Square", [
|
|
|
464
464
|
* This source code is licensed under the ISC license.
|
|
465
465
|
* See the LICENSE file in the root directory of this source tree.
|
|
466
466
|
*/
|
|
467
|
-
const
|
|
467
|
+
const Do = pe("Tags", [
|
|
468
468
|
["path", { d: "m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19", key: "1cbfv1" }],
|
|
469
469
|
[
|
|
470
470
|
"path",
|
|
@@ -481,7 +481,7 @@ const Eo = pe("Tags", [
|
|
|
481
481
|
* This source code is licensed under the ISC license.
|
|
482
482
|
* See the LICENSE file in the root directory of this source tree.
|
|
483
483
|
*/
|
|
484
|
-
const
|
|
484
|
+
const Mo = pe("Wand", [
|
|
485
485
|
["path", { d: "M15 4V2", key: "z1p9b7" }],
|
|
486
486
|
["path", { d: "M15 16v-2", key: "px0unx" }],
|
|
487
487
|
["path", { d: "M8 9h2", key: "1g203m" }],
|
|
@@ -492,7 +492,7 @@ const Do = pe("Wand", [
|
|
|
492
492
|
["path", { d: "m3 21 9-9", key: "1jfql5" }],
|
|
493
493
|
["path", { d: "M12.2 6.2 11 5", key: "i3da3b" }]
|
|
494
494
|
]);
|
|
495
|
-
function
|
|
495
|
+
function Io({
|
|
496
496
|
initialJoinPlan: t,
|
|
497
497
|
availableDataSources: n
|
|
498
498
|
}) {
|
|
@@ -789,7 +789,7 @@ ${S.joinType} JOIN ${O.name}
|
|
|
789
789
|
))
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Oo({
|
|
793
793
|
joinPlan: t,
|
|
794
794
|
availableDataSources: n,
|
|
795
795
|
onSave: s,
|
|
@@ -818,7 +818,7 @@ function Io({
|
|
|
818
818
|
removeJoinKey: f,
|
|
819
819
|
generateSQLPreview: b,
|
|
820
820
|
isValidConfiguration: S
|
|
821
|
-
} =
|
|
821
|
+
} = Io({
|
|
822
822
|
initialJoinPlan: t,
|
|
823
823
|
availableDataSources: n
|
|
824
824
|
}), O = (N) => {
|
|
@@ -856,9 +856,9 @@ function Io({
|
|
|
856
856
|
className: "hover:bg-muted",
|
|
857
857
|
value: N.name,
|
|
858
858
|
children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
859
|
-
/* @__PURE__ */ e(
|
|
859
|
+
/* @__PURE__ */ e(be, { variant: "outline", className: "text-xs", children: N.type }),
|
|
860
860
|
N.name,
|
|
861
|
-
/* @__PURE__ */ e(
|
|
861
|
+
/* @__PURE__ */ e(be, { variant: "outline", className: "text-xs text-green-600", children: "BASE" })
|
|
862
862
|
] })
|
|
863
863
|
},
|
|
864
864
|
N.name
|
|
@@ -893,7 +893,7 @@ function Io({
|
|
|
893
893
|
return /* @__PURE__ */ a(Ea, { className: "border", children: [
|
|
894
894
|
/* @__PURE__ */ e(Ts, { className: "pb-3", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
895
895
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
896
|
-
/* @__PURE__ */ e(
|
|
896
|
+
/* @__PURE__ */ e(be, { children: N.sequence }),
|
|
897
897
|
/* @__PURE__ */ a(Es, { className: "text-sm", children: [
|
|
898
898
|
"Join ",
|
|
899
899
|
N.sequence,
|
|
@@ -980,7 +980,7 @@ function Io({
|
|
|
980
980
|
value: T.name,
|
|
981
981
|
children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
982
982
|
/* @__PURE__ */ e(
|
|
983
|
-
|
|
983
|
+
be,
|
|
984
984
|
{
|
|
985
985
|
variant: "outline",
|
|
986
986
|
className: "text-xs",
|
|
@@ -1079,7 +1079,7 @@ function Io({
|
|
|
1079
1079
|
value: T.name,
|
|
1080
1080
|
children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
1081
1081
|
/* @__PURE__ */ e(
|
|
1082
|
-
|
|
1082
|
+
be,
|
|
1083
1083
|
{
|
|
1084
1084
|
variant: "outline",
|
|
1085
1085
|
className: "text-xs",
|
|
@@ -1088,7 +1088,7 @@ function Io({
|
|
|
1088
1088
|
),
|
|
1089
1089
|
T.name,
|
|
1090
1090
|
T.name === N.source.name && /* @__PURE__ */ e(
|
|
1091
|
-
|
|
1091
|
+
be,
|
|
1092
1092
|
{
|
|
1093
1093
|
variant: "outline",
|
|
1094
1094
|
className: "text-xs text-yellow-600",
|
|
@@ -1208,7 +1208,7 @@ function Io({
|
|
|
1208
1208
|
children: /* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between", children: [
|
|
1209
1209
|
/* @__PURE__ */ e("span", { children: _.name }),
|
|
1210
1210
|
/* @__PURE__ */ e(
|
|
1211
|
-
|
|
1211
|
+
be,
|
|
1212
1212
|
{
|
|
1213
1213
|
variant: "outline",
|
|
1214
1214
|
className: "ml-2 text-xs",
|
|
@@ -1303,7 +1303,7 @@ function Io({
|
|
|
1303
1303
|
children: /* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between hover:bg-muted", children: [
|
|
1304
1304
|
/* @__PURE__ */ e("span", { children: _.name }),
|
|
1305
1305
|
/* @__PURE__ */ e(
|
|
1306
|
-
|
|
1306
|
+
be,
|
|
1307
1307
|
{
|
|
1308
1308
|
variant: "outline",
|
|
1309
1309
|
className: "ml-2 text-xs",
|
|
@@ -1383,7 +1383,7 @@ function Io({
|
|
|
1383
1383
|
] })
|
|
1384
1384
|
] });
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function fl({
|
|
1387
1387
|
children: t,
|
|
1388
1388
|
open: n,
|
|
1389
1389
|
onOpenChange: s,
|
|
@@ -1400,7 +1400,7 @@ function pl({
|
|
|
1400
1400
|
/* @__PURE__ */ e(Ut, { children: "Configure the join between the two entities to combine the fields." })
|
|
1401
1401
|
] }),
|
|
1402
1402
|
/* @__PURE__ */ e(
|
|
1403
|
-
|
|
1403
|
+
Oo,
|
|
1404
1404
|
{
|
|
1405
1405
|
joinPlan: l,
|
|
1406
1406
|
availableDataSources: i,
|
|
@@ -1413,7 +1413,7 @@ function pl({
|
|
|
1413
1413
|
t
|
|
1414
1414
|
] });
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function Fo({
|
|
1417
1417
|
joins: t,
|
|
1418
1418
|
baseEntityId: n,
|
|
1419
1419
|
availableDataSources: s,
|
|
@@ -1430,9 +1430,9 @@ function Oo({
|
|
|
1430
1430
|
);
|
|
1431
1431
|
return /* @__PURE__ */ a(re, { children: [
|
|
1432
1432
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 rounded-md border bg-muted px-2 py-1", children: [
|
|
1433
|
-
/* @__PURE__ */ e(
|
|
1433
|
+
/* @__PURE__ */ e(be, { variant: "secondary", className: "text-xs", children: d == null ? void 0 : d.type }),
|
|
1434
1434
|
/* @__PURE__ */ e("span", { className: "text-xs font-medium", children: d == null ? void 0 : d.name }),
|
|
1435
|
-
/* @__PURE__ */ e(
|
|
1435
|
+
/* @__PURE__ */ e(be, { variant: "outline", className: "text-xs text-green-600", children: "BASE" })
|
|
1436
1436
|
] }),
|
|
1437
1437
|
i.map((o) => {
|
|
1438
1438
|
const c = s.find(
|
|
@@ -1440,11 +1440,11 @@ function Oo({
|
|
|
1440
1440
|
);
|
|
1441
1441
|
return /* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
1442
1442
|
/* @__PURE__ */ a("div", { className: "mx-1 flex items-center gap-1", children: [
|
|
1443
|
-
/* @__PURE__ */ e(
|
|
1443
|
+
/* @__PURE__ */ e(be, { variant: "outline", className: "text-xs", children: o.joinType }),
|
|
1444
1444
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "→" })
|
|
1445
1445
|
] }),
|
|
1446
1446
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 rounded-md border bg-muted px-2 py-1", children: [
|
|
1447
|
-
/* @__PURE__ */ e(
|
|
1447
|
+
/* @__PURE__ */ e(be, { variant: "secondary", className: "text-xs", children: c == null ? void 0 : c.type }),
|
|
1448
1448
|
/* @__PURE__ */ e("span", { className: "text-xs font-medium", children: c == null ? void 0 : c.name })
|
|
1449
1449
|
] })
|
|
1450
1450
|
] }, o.id);
|
|
@@ -1473,9 +1473,9 @@ function Oo({
|
|
|
1473
1473
|
className: "rounded-md bg-muted p-2 text-left",
|
|
1474
1474
|
children: [
|
|
1475
1475
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
1476
|
-
/* @__PURE__ */ e(
|
|
1477
|
-
/* @__PURE__ */ e(
|
|
1478
|
-
/* @__PURE__ */ a(
|
|
1476
|
+
/* @__PURE__ */ e(be, { variant: "secondary", className: "shrink-0 text-xs", children: d + 1 }),
|
|
1477
|
+
/* @__PURE__ */ e(be, { variant: "outline", className: "shrink-0 text-xs", children: i.joinType }),
|
|
1478
|
+
/* @__PURE__ */ a(be, { variant: "outline", className: "ml-auto shrink-0 text-xs", children: [
|
|
1479
1479
|
r,
|
|
1480
1480
|
" condition",
|
|
1481
1481
|
r > 1 ? "s" : ""
|
|
@@ -1566,7 +1566,7 @@ ${f.joinType} JOIN ${b.name}
|
|
|
1566
1566
|
side: "bottom",
|
|
1567
1567
|
className: "ml-4 max-w-md overflow-hidden p-0",
|
|
1568
1568
|
children: /* @__PURE__ */ e(
|
|
1569
|
-
|
|
1569
|
+
Fo,
|
|
1570
1570
|
{
|
|
1571
1571
|
joins: o.joins,
|
|
1572
1572
|
baseEntityId: o.baseEntity.name,
|
|
@@ -1579,7 +1579,7 @@ ${f.joinType} JOIN ${b.name}
|
|
|
1579
1579
|
return /* @__PURE__ */ a(re, { children: [
|
|
1580
1580
|
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ a(Te, { children: [
|
|
1581
1581
|
/* @__PURE__ */ e(Ee, { asChild: !0, children: s === "badge" ? /* @__PURE__ */ a(
|
|
1582
|
-
|
|
1582
|
+
be,
|
|
1583
1583
|
{
|
|
1584
1584
|
variant: "secondary",
|
|
1585
1585
|
className: "h-5 cursor-pointer gap-1 px-1.5 text-xs transition-colors hover:bg-secondary/80",
|
|
@@ -1602,7 +1602,7 @@ ${f.joinType} JOIN ${b.name}
|
|
|
1602
1602
|
o.joins.length === 0 ? "Configure Joins" : o.joins.length === 1 ? "Join" : "Joins",
|
|
1603
1603
|
o.joins.length > 0 && /* @__PURE__ */ e("span", { className: "ml-2 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1.5 text-xs font-medium text-primary-foreground", children: o.joins.length }),
|
|
1604
1604
|
(i == null ? void 0 : i.autoResolved) && /* @__PURE__ */ a(
|
|
1605
|
-
|
|
1605
|
+
be,
|
|
1606
1606
|
{
|
|
1607
1607
|
variant: "secondary",
|
|
1608
1608
|
className: "ml-2 h-5 gap-1 bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300",
|
|
@@ -1618,7 +1618,7 @@ ${f.joinType} JOIN ${b.name}
|
|
|
1618
1618
|
w
|
|
1619
1619
|
] }) }),
|
|
1620
1620
|
/* @__PURE__ */ e(
|
|
1621
|
-
|
|
1621
|
+
fl,
|
|
1622
1622
|
{
|
|
1623
1623
|
open: h,
|
|
1624
1624
|
onOpenChange: p,
|
|
@@ -1632,7 +1632,7 @@ ${f.joinType} JOIN ${b.name}
|
|
|
1632
1632
|
)
|
|
1633
1633
|
] });
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function Ro({
|
|
1636
1636
|
open: t,
|
|
1637
1637
|
onOpenChange: n
|
|
1638
1638
|
}) {
|
|
@@ -1704,7 +1704,7 @@ function Fo({
|
|
|
1704
1704
|
}
|
|
1705
1705
|
)
|
|
1706
1706
|
] }),
|
|
1707
|
-
/* @__PURE__ */ a(
|
|
1707
|
+
/* @__PURE__ */ a(be, { variant: "secondary", children: [
|
|
1708
1708
|
s.length,
|
|
1709
1709
|
" of ",
|
|
1710
1710
|
o.length,
|
|
@@ -1732,7 +1732,7 @@ function Fo({
|
|
|
1732
1732
|
/* @__PURE__ */ e("div", { className: "truncate font-medium", children: p(m) }),
|
|
1733
1733
|
/* @__PURE__ */ e("div", { className: "truncate text-sm text-muted-foreground", children: x(m) })
|
|
1734
1734
|
] }),
|
|
1735
|
-
/* @__PURE__ */ e(
|
|
1735
|
+
/* @__PURE__ */ e(be, { variant: "outline", className: "text-xs", children: m.type })
|
|
1736
1736
|
]
|
|
1737
1737
|
},
|
|
1738
1738
|
`${m.type}-${m.name}-${g}`
|
|
@@ -1763,7 +1763,7 @@ function us({
|
|
|
1763
1763
|
return /* @__PURE__ */ e(Le, { side: "top", className: "ml-5 max-w-xs", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
1764
1764
|
/* @__PURE__ */ e("div", { className: "text-sm font-medium", children: n ?? `${t.length} more entities` }),
|
|
1765
1765
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: t.map((l, i) => {
|
|
1766
|
-
const d =
|
|
1766
|
+
const d = Ul(l), o = d.find(
|
|
1767
1767
|
(r) => r.label === "Description" && r.value
|
|
1768
1768
|
), c = d.filter((r) => r.label === "Description" ? !1 : s ? !0 : !["Connection", "Database", "Schema"].includes(r.label)).slice(0, 3);
|
|
1769
1769
|
return /* @__PURE__ */ a(
|
|
@@ -1771,7 +1771,7 @@ function us({
|
|
|
1771
1771
|
{
|
|
1772
1772
|
className: "border-b border-border pb-1 last:border-b-0",
|
|
1773
1773
|
children: [
|
|
1774
|
-
/* @__PURE__ */ e("div", { className: "text-xs font-medium", children:
|
|
1774
|
+
/* @__PURE__ */ e("div", { className: "text-xs font-medium", children: _l(l) }),
|
|
1775
1775
|
o && /* @__PURE__ */ a("div", { className: "mb-1 mt-1", children: [
|
|
1776
1776
|
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Description:" }),
|
|
1777
1777
|
/* @__PURE__ */ e("div", { className: "text-xs leading-relaxed", children: o.value })
|
|
@@ -1806,13 +1806,13 @@ function Ga(t, n) {
|
|
|
1806
1806
|
localStorage.setItem(t, JSON.stringify(s));
|
|
1807
1807
|
}, [s, t]), [s, l];
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function gl({
|
|
1810
1810
|
isVisible: t
|
|
1811
1811
|
// onToggleVisibility,
|
|
1812
1812
|
}) {
|
|
1813
1813
|
var g, y;
|
|
1814
1814
|
const n = I((w) => w.isDevMode);
|
|
1815
|
-
|
|
1815
|
+
Jl();
|
|
1816
1816
|
const [s, l] = $(!1), [i, d] = $(!1), [o, c] = Ga("semaphor:data-source-collapsed", !1), r = I((w) => w.card.dataSource), u = I((w) => {
|
|
1817
1817
|
var D, L;
|
|
1818
1818
|
return (L = (D = w.card) == null ? void 0 : D.config) == null ? void 0 : L.joinPlan;
|
|
@@ -1868,7 +1868,7 @@ function fl({
|
|
|
1868
1868
|
children: [
|
|
1869
1869
|
p > 0 && /* @__PURE__ */ e(Ge, { delayDuration: 100, children: /* @__PURE__ */ a(Te, { children: [
|
|
1870
1870
|
/* @__PURE__ */ e(Ee, { asChild: !0, children: /* @__PURE__ */ a(
|
|
1871
|
-
|
|
1871
|
+
be,
|
|
1872
1872
|
{
|
|
1873
1873
|
variant: "secondary",
|
|
1874
1874
|
className: "h-5 cursor-pointer gap-1 px-1.5 text-xs transition-colors hover:bg-secondary/80",
|
|
@@ -1942,7 +1942,7 @@ function fl({
|
|
|
1942
1942
|
}
|
|
1943
1943
|
)
|
|
1944
1944
|
] }),
|
|
1945
|
-
/* @__PURE__ */ e(
|
|
1945
|
+
/* @__PURE__ */ e(Hl, {}),
|
|
1946
1946
|
/* @__PURE__ */ e(
|
|
1947
1947
|
Fs,
|
|
1948
1948
|
{
|
|
@@ -1954,7 +1954,7 @@ function fl({
|
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
1956
|
/* @__PURE__ */ e(
|
|
1957
|
-
|
|
1957
|
+
Ro,
|
|
1958
1958
|
{
|
|
1959
1959
|
open: i,
|
|
1960
1960
|
onOpenChange: d
|
|
@@ -2028,7 +2028,7 @@ function zn({
|
|
|
2028
2028
|
className: "h-8",
|
|
2029
2029
|
onClick: l,
|
|
2030
2030
|
children: [
|
|
2031
|
-
/* @__PURE__ */ e(
|
|
2031
|
+
/* @__PURE__ */ e(hl, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
2032
2032
|
"Open in Editor"
|
|
2033
2033
|
]
|
|
2034
2034
|
}
|
|
@@ -2041,7 +2041,7 @@ function zn({
|
|
|
2041
2041
|
className: "h-8",
|
|
2042
2042
|
onClick: s,
|
|
2043
2043
|
children: [
|
|
2044
|
-
/* @__PURE__ */ e(
|
|
2044
|
+
/* @__PURE__ */ e(Ql, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
2045
2045
|
"Send Feedback"
|
|
2046
2046
|
]
|
|
2047
2047
|
}
|
|
@@ -2059,7 +2059,7 @@ function zn({
|
|
|
2059
2059
|
}
|
|
2060
2060
|
);
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2062
|
+
function xl({
|
|
2063
2063
|
sql: t,
|
|
2064
2064
|
error: n,
|
|
2065
2065
|
errorSql: s,
|
|
@@ -2083,7 +2083,7 @@ function gl({
|
|
|
2083
2083
|
variant: "secondary",
|
|
2084
2084
|
size: "sm",
|
|
2085
2085
|
children: [
|
|
2086
|
-
/* @__PURE__ */ e(
|
|
2086
|
+
/* @__PURE__ */ e(hl, { className: "mr-2 h-4 w-4" }),
|
|
2087
2087
|
"View in SQL Editor"
|
|
2088
2088
|
]
|
|
2089
2089
|
}
|
|
@@ -2111,7 +2111,7 @@ function gl({
|
|
|
2111
2111
|
size: "sm",
|
|
2112
2112
|
className: "h-6 w-6 p-0",
|
|
2113
2113
|
onClick: () => u(!1),
|
|
2114
|
-
children: /* @__PURE__ */ e(
|
|
2114
|
+
children: /* @__PURE__ */ e(ul, { className: "h-4 w-4" })
|
|
2115
2115
|
}
|
|
2116
2116
|
)
|
|
2117
2117
|
] }),
|
|
@@ -2168,23 +2168,23 @@ function gl({
|
|
|
2168
2168
|
size: "sm",
|
|
2169
2169
|
variant: "outline",
|
|
2170
2170
|
children: [
|
|
2171
|
-
/* @__PURE__ */ e(
|
|
2171
|
+
/* @__PURE__ */ e(fo, { className: "mr-2 h-4 w-4" }),
|
|
2172
2172
|
"Debug with Assistant"
|
|
2173
2173
|
]
|
|
2174
2174
|
}
|
|
2175
2175
|
) })
|
|
2176
2176
|
] });
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function Lo({
|
|
2179
2179
|
sql: t,
|
|
2180
2180
|
error: n,
|
|
2181
2181
|
errorSql: s,
|
|
2182
2182
|
onDebugWithAssistant: l
|
|
2183
2183
|
}) {
|
|
2184
2184
|
return /* @__PURE__ */ a(Ls, { openDelay: n ? 0 : 500, children: [
|
|
2185
|
-
/* @__PURE__ */ e(Ps, { asChild: !0, children: /* @__PURE__ */ e(q, { variant: "link", className: "h-5 p-0", children: n ? /* @__PURE__ */ e(
|
|
2185
|
+
/* @__PURE__ */ e(Ps, { asChild: !0, children: /* @__PURE__ */ e(q, { variant: "link", className: "h-5 p-0", children: n ? /* @__PURE__ */ e(ul, { className: "h-4 w-4 text-red-500" }) : /* @__PURE__ */ e(Lt, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
2186
2186
|
/* @__PURE__ */ e(Vs, { align: "start", className: "flex w-[700px]", children: /* @__PURE__ */ e(
|
|
2187
|
-
|
|
2187
|
+
xl,
|
|
2188
2188
|
{
|
|
2189
2189
|
errorSql: s,
|
|
2190
2190
|
sql: t,
|
|
@@ -2194,11 +2194,11 @@ function Ro({
|
|
|
2194
2194
|
) })
|
|
2195
2195
|
] });
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2198
|
-
return
|
|
2197
|
+
function Po(t) {
|
|
2198
|
+
return Yl({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2201
|
-
const { theme: n } =
|
|
2200
|
+
function bl(t) {
|
|
2201
|
+
const { theme: n } = Wl(), s = Ne((g) => g.theme), l = I((g) => g.frame), i = I((g) => g.card), d = I((g) => g.activeTabCardId), o = Xl(), { refetch: c } = Ie(i), { updateCardTab: r, setRunSql: u } = ne(), h = Qe(), p = Qe({}), x = l.cards.find((g) => g.id === d), A = $e(() => {
|
|
2202
2202
|
let g = "";
|
|
2203
2203
|
return t === "python" && (g = (x == null ? void 0 : x.python) || Bs), t === "sql" && (g = (x == null ? void 0 : x.sql) || ""), g;
|
|
2204
2204
|
}, [t, x]);
|
|
@@ -2233,7 +2233,7 @@ function xl(t) {
|
|
|
2233
2233
|
inherit: !0,
|
|
2234
2234
|
rules: [],
|
|
2235
2235
|
colors: {
|
|
2236
|
-
"editor.background": y === "light" ? "#ffffff" :
|
|
2236
|
+
"editor.background": y === "light" ? "#ffffff" : Zl("240 10% 10%")
|
|
2237
2237
|
// 'editor.background':
|
|
2238
2238
|
// activeTheme === 'light'
|
|
2239
2239
|
// ? '#ffffff'
|
|
@@ -2258,10 +2258,10 @@ function xl(t) {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
return { handleEditorDidMount: m };
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2262
|
-
const t = I((o) => o.card.sql), n = I((o) => o.sqlGen), { setCardSql: s, setSqlGen: l } = ne(), { handleEditorDidMount: i } =
|
|
2261
|
+
function Vo() {
|
|
2262
|
+
const t = I((o) => o.card.sql), n = I((o) => o.sqlGen), { setCardSql: s, setSqlGen: l } = ne(), { handleEditorDidMount: i } = bl("sql");
|
|
2263
2263
|
function d(o) {
|
|
2264
|
-
s(o),
|
|
2264
|
+
s(o), er(n) || l({});
|
|
2265
2265
|
}
|
|
2266
2266
|
return /* @__PURE__ */ a("div", { className: "relative h-full w-full", children: [
|
|
2267
2267
|
!t && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute left-[65px] top-3 z-10 font-mono text-sm text-muted-foreground", children: "Write your SQL here" }),
|
|
@@ -2290,8 +2290,8 @@ function Po() {
|
|
|
2290
2290
|
)
|
|
2291
2291
|
] });
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2294
|
-
const t = I((i) => i.card.python), { setCardPython: n } = ne(), { handleEditorDidMount: s } =
|
|
2293
|
+
function Bo() {
|
|
2294
|
+
const t = I((i) => i.card.python), { setCardPython: n } = ne(), { handleEditorDidMount: s } = bl("python");
|
|
2295
2295
|
function l(i) {
|
|
2296
2296
|
n(i);
|
|
2297
2297
|
}
|
|
@@ -2319,8 +2319,8 @@ function Vo() {
|
|
|
2319
2319
|
}
|
|
2320
2320
|
);
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2323
|
-
const t =
|
|
2322
|
+
function zo() {
|
|
2323
|
+
const t = tr(), { isConsoleMode: n } = Os(), [s, l] = $(!1);
|
|
2324
2324
|
I((j) => j.frame);
|
|
2325
2325
|
const i = I((j) => j.card);
|
|
2326
2326
|
I((j) => j.isShowingVisual), I(
|
|
@@ -2340,7 +2340,7 @@ function Bo() {
|
|
|
2340
2340
|
}), c = I((j) => {
|
|
2341
2341
|
var G;
|
|
2342
2342
|
return (G = j == null ? void 0 : j.card) == null ? void 0 : G.python;
|
|
2343
|
-
}), { cardFilterValues: r } =
|
|
2343
|
+
}), { cardFilterValues: r } = ar(
|
|
2344
2344
|
(i == null ? void 0 : i.id) ?? ""
|
|
2345
2345
|
), u = Ne(
|
|
2346
2346
|
(j) => j.inlineFilterValuesMap[(i == null ? void 0 : i.id) ?? ""]
|
|
@@ -2433,7 +2433,7 @@ ${c}` : ""}
|
|
|
2433
2433
|
role: "editor-resizable-group",
|
|
2434
2434
|
children: [
|
|
2435
2435
|
/* @__PURE__ */ a(
|
|
2436
|
-
|
|
2436
|
+
Be,
|
|
2437
2437
|
{
|
|
2438
2438
|
id: "1",
|
|
2439
2439
|
order: 1,
|
|
@@ -2445,7 +2445,7 @@ ${c}` : ""}
|
|
|
2445
2445
|
{
|
|
2446
2446
|
id: "sql-container",
|
|
2447
2447
|
className: "relative flex w-[99%]",
|
|
2448
|
-
children: /* @__PURE__ */ e(
|
|
2448
|
+
children: /* @__PURE__ */ e(Vo, {})
|
|
2449
2449
|
}
|
|
2450
2450
|
),
|
|
2451
2451
|
s && /* @__PURE__ */ e("code", { className: "absolute right-6 top-3 text-xs text-muted-foreground/70", children: "sql" })
|
|
@@ -2455,7 +2455,7 @@ ${c}` : ""}
|
|
|
2455
2455
|
s && /* @__PURE__ */ a(re, { children: [
|
|
2456
2456
|
/* @__PURE__ */ e(Et, { withHandle: !0, className: "border" }),
|
|
2457
2457
|
/* @__PURE__ */ a(
|
|
2458
|
-
|
|
2458
|
+
Be,
|
|
2459
2459
|
{
|
|
2460
2460
|
id: "2",
|
|
2461
2461
|
order: 2,
|
|
@@ -2467,7 +2467,7 @@ ${c}` : ""}
|
|
|
2467
2467
|
{
|
|
2468
2468
|
id: "python-container",
|
|
2469
2469
|
className: "relative flex w-[99%] pt-0",
|
|
2470
|
-
children: /* @__PURE__ */ e(
|
|
2470
|
+
children: /* @__PURE__ */ e(Bo, {})
|
|
2471
2471
|
}
|
|
2472
2472
|
),
|
|
2473
2473
|
/* @__PURE__ */ e("code", { className: "absolute right-6 top-3 text-xs text-muted-foreground/70", children: "python" })
|
|
@@ -2498,13 +2498,13 @@ ${c}` : ""}
|
|
|
2498
2498
|
className: "h-8 shrink-0",
|
|
2499
2499
|
size: "sm",
|
|
2500
2500
|
children: [
|
|
2501
|
-
N || v ? /* @__PURE__ */ e(_t, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(
|
|
2501
|
+
N || v ? /* @__PURE__ */ e(_t, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(nr, { className: "mr-2 h-4 w-4" }),
|
|
2502
2502
|
"Run"
|
|
2503
2503
|
]
|
|
2504
2504
|
}
|
|
2505
2505
|
),
|
|
2506
2506
|
/* @__PURE__ */ e(
|
|
2507
|
-
|
|
2507
|
+
Lo,
|
|
2508
2508
|
{
|
|
2509
2509
|
errorSql: F,
|
|
2510
2510
|
sql: O == null ? void 0 : O.sql,
|
|
@@ -2522,7 +2522,7 @@ ${c}` : ""}
|
|
|
2522
2522
|
size: "sm",
|
|
2523
2523
|
variant: "outline",
|
|
2524
2524
|
children: [
|
|
2525
|
-
/* @__PURE__ */ e(
|
|
2525
|
+
/* @__PURE__ */ e(Po, { className: "mr-2 size-4 text-foreground/70" }),
|
|
2526
2526
|
"Python"
|
|
2527
2527
|
]
|
|
2528
2528
|
}
|
|
@@ -2601,7 +2601,7 @@ ${c}` : ""}
|
|
|
2601
2601
|
r && r.length > 0 && /* @__PURE__ */ a(Ls, { openDelay: 200, children: [
|
|
2602
2602
|
/* @__PURE__ */ e(Ps, { asChild: !0, children: /* @__PURE__ */ a(q, { variant: "outline", className: "h-8 gap-2 px-2", children: [
|
|
2603
2603
|
/* @__PURE__ */ e(Jt, { className: "size-4" }),
|
|
2604
|
-
/* @__PURE__ */ e(
|
|
2604
|
+
/* @__PURE__ */ e(be, { className: "h-5 min-w-5 bg-purple-100 px-1.5 text-purple-700 hover:bg-purple-100 dark:bg-purple-950 dark:text-purple-300", children: r.length })
|
|
2605
2605
|
] }) }),
|
|
2606
2606
|
/* @__PURE__ */ e(Vs, { className: "mr-4 max-h-[400px] w-[500px] overflow-auto p-0", children: /* @__PURE__ */ a("div", { className: "p-3", children: [
|
|
2607
2607
|
/* @__PURE__ */ e("div", { className: "mb-2 text-sm font-semibold", children: "Active Dashboard Filters" }),
|
|
@@ -2634,12 +2634,12 @@ ${c}` : ""}
|
|
|
2634
2634
|
)
|
|
2635
2635
|
);
|
|
2636
2636
|
}
|
|
2637
|
-
const
|
|
2637
|
+
const jo = [
|
|
2638
2638
|
{ value: "table", label: "Table", icon: Zt },
|
|
2639
|
-
{ value: "aggregateTable", label: "Aggregate", icon:
|
|
2639
|
+
{ value: "aggregateTable", label: "Aggregate", icon: sr },
|
|
2640
2640
|
{ value: "pivotTable", label: "Pivot", icon: Ma }
|
|
2641
2641
|
];
|
|
2642
|
-
function
|
|
2642
|
+
function $o({ className: t }) {
|
|
2643
2643
|
const n = I((r) => r.card), { setCardType: s, setCard: l, updateCardInFrame: i } = ne(), d = ["table", "aggregateTable", "pivotTable"].includes(
|
|
2644
2644
|
n.type
|
|
2645
2645
|
), o = Da(n.config);
|
|
@@ -2670,7 +2670,7 @@ function jo({ className: t }) {
|
|
|
2670
2670
|
value: n.type,
|
|
2671
2671
|
onValueChange: c,
|
|
2672
2672
|
className: "flex flex-row items-center justify-between gap-1 rounded-lg border p-1",
|
|
2673
|
-
children:
|
|
2673
|
+
children: jo.map((r) => {
|
|
2674
2674
|
const u = r.icon, h = n.type === r.value;
|
|
2675
2675
|
return /* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
2676
2676
|
/* @__PURE__ */ e(
|
|
@@ -2700,8 +2700,8 @@ function jo({ className: t }) {
|
|
|
2700
2700
|
}
|
|
2701
2701
|
) });
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2704
|
-
const l = Ne((x) => x.selectedFrameId), i =
|
|
2703
|
+
function Ko({ type: t, isLinked: n, className: s }) {
|
|
2704
|
+
const l = Ne((x) => x.selectedFrameId), i = lr((x) => x.selectedVisual), d = I((x) => x.frame);
|
|
2705
2705
|
let o;
|
|
2706
2706
|
if (t)
|
|
2707
2707
|
o = t;
|
|
@@ -2732,12 +2732,12 @@ function $o({ type: t, isLinked: n, className: s }) {
|
|
|
2732
2732
|
linked: "fill-purple-50 dark:fill-purple-950",
|
|
2733
2733
|
library: "fill-blue-50 dark:fill-blue-950"
|
|
2734
2734
|
}, p = {
|
|
2735
|
-
linked: /* @__PURE__ */ e(
|
|
2736
|
-
library: /* @__PURE__ */ e(
|
|
2735
|
+
linked: /* @__PURE__ */ e(bo, { className: "h-3.5 w-3.5" }),
|
|
2736
|
+
library: /* @__PURE__ */ e(xo, { className: "h-3.5 w-3.5" })
|
|
2737
2737
|
};
|
|
2738
2738
|
return /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ a(Te, { delayDuration: 300, children: [
|
|
2739
2739
|
/* @__PURE__ */ e(Ee, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2740
|
-
|
|
2740
|
+
be,
|
|
2741
2741
|
{
|
|
2742
2742
|
variant: "outline",
|
|
2743
2743
|
className: Y(
|
|
@@ -2761,14 +2761,14 @@ function $o({ type: t, isLinked: n, className: s }) {
|
|
|
2761
2761
|
)
|
|
2762
2762
|
] }) });
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function vl({
|
|
2765
2765
|
// card,
|
|
2766
2766
|
// showCard,
|
|
2767
2767
|
className: t,
|
|
2768
2768
|
...n
|
|
2769
2769
|
}) {
|
|
2770
2770
|
var J, H, j;
|
|
2771
|
-
const s = I((G) => G.card), l = ((J = s.customCardPreferences) == null ? void 0 : J.showCardHeader) ?? !0, i = ((j = (H = s.preferences) == null ? void 0 : H.displayOptions) == null ? void 0 : j.showInlineFilterBar) ?? !0, d = I((G) => G.frame), o = Ne((G) => G.dashboard.filters), c = Ne((G) => G.selectedSheetId), [r, u] = $(!1), { currentUser: h } =
|
|
2771
|
+
const s = I((G) => G.card), l = ((J = s.customCardPreferences) == null ? void 0 : J.showCardHeader) ?? !0, i = ((j = (H = s.preferences) == null ? void 0 : H.displayOptions) == null ? void 0 : j.showInlineFilterBar) ?? !0, d = I((G) => G.frame), o = Ne((G) => G.dashboard.filters), c = Ne((G) => G.selectedSheetId), [r, u] = $(!1), { currentUser: h } = rr(), { tokenProps: p } = Pn(xn), x = I((G) => G.actions.setRunSql), { updateFilter: A } = js(), m = o == null ? void 0 : o.find((G) => G.id === d.filterId), { data: g, isLoading: y, isFetching: w, errorMessage: D, errorSql: L, pagination: V } = Ie(s), E = Ce(() => (g == null ? void 0 : g.records) || [], [g == null ? void 0 : g.records]), { setCard: C, updateCardInFrame: f, setIsDevMode: b, setCardSql: S } = ne(), { data: O } = bn(s), N = Ce(() => {
|
|
2772
2772
|
var G;
|
|
2773
2773
|
return s.type !== "pivotTable" || !((G = g == null ? void 0 : g.records) != null && G.length) ? null : {
|
|
2774
2774
|
records: g.records,
|
|
@@ -2784,7 +2784,7 @@ function bl({
|
|
|
2784
2784
|
g == null ? void 0 : g.subtotalColumns,
|
|
2785
2785
|
g == null ? void 0 : g.pivotSchema,
|
|
2786
2786
|
g == null ? void 0 : g.groupByColumns
|
|
2787
|
-
]), v =
|
|
2787
|
+
]), v = ir(s, N), M = (G) => {
|
|
2788
2788
|
b(!0), S(G || L || s.sql || s.python || ""), setTimeout(() => {
|
|
2789
2789
|
x(!0);
|
|
2790
2790
|
}, 100);
|
|
@@ -2854,7 +2854,7 @@ function bl({
|
|
|
2854
2854
|
O
|
|
2855
2855
|
]);
|
|
2856
2856
|
function _(G) {
|
|
2857
|
-
return /* @__PURE__ */ e(Oa, { FallbackComponent: vn, children: /* @__PURE__ */ e(
|
|
2857
|
+
return /* @__PURE__ */ e(Oa, { FallbackComponent: vn, children: /* @__PURE__ */ e(gr, { card: G }) });
|
|
2858
2858
|
}
|
|
2859
2859
|
function te() {
|
|
2860
2860
|
if (g != null && g.records && (g == null ? void 0 : g.records.length) === 0 && !y && !w)
|
|
@@ -2869,11 +2869,11 @@ function bl({
|
|
|
2869
2869
|
errorTitle: "Unable to Create Visual"
|
|
2870
2870
|
}
|
|
2871
2871
|
) }) : /* @__PURE__ */ a("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
|
|
2872
|
-
/* @__PURE__ */ e(
|
|
2872
|
+
/* @__PURE__ */ e(dr, { className: "size-8 text-muted-foreground" }),
|
|
2873
2873
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "No results to display" })
|
|
2874
2874
|
] });
|
|
2875
2875
|
if ((y || w) && (!(g != null && g.records) || g.records.length === 0))
|
|
2876
|
-
return s.type === "table" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
2876
|
+
return s.type === "table" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(ur, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Sa, { size: "md", color: "muted", "aria-label": "Loading data" }) });
|
|
2877
2877
|
if (!s.id) return null;
|
|
2878
2878
|
if (s.type === "custom")
|
|
2879
2879
|
return _(s);
|
|
@@ -2881,7 +2881,7 @@ function bl({
|
|
|
2881
2881
|
s.type
|
|
2882
2882
|
) && B)
|
|
2883
2883
|
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: y || w ? /* @__PURE__ */ e(re, {}) : /* @__PURE__ */ e(
|
|
2884
|
-
|
|
2884
|
+
mr,
|
|
2885
2885
|
{
|
|
2886
2886
|
cfg: B
|
|
2887
2887
|
}
|
|
@@ -2900,7 +2900,7 @@ function bl({
|
|
|
2900
2900
|
) });
|
|
2901
2901
|
if (s.type === "pivotTable" && v)
|
|
2902
2902
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
2903
|
-
|
|
2903
|
+
hr,
|
|
2904
2904
|
{
|
|
2905
2905
|
card: s,
|
|
2906
2906
|
data: v.data,
|
|
@@ -2913,7 +2913,7 @@ function bl({
|
|
|
2913
2913
|
C(z), f(z);
|
|
2914
2914
|
},
|
|
2915
2915
|
onAggregationLabelChange: (G) => {
|
|
2916
|
-
const ae =
|
|
2916
|
+
const ae = pr(
|
|
2917
2917
|
G,
|
|
2918
2918
|
s.config
|
|
2919
2919
|
), z = { ...s, config: ae };
|
|
@@ -2923,7 +2923,7 @@ function bl({
|
|
|
2923
2923
|
) });
|
|
2924
2924
|
if (s.type === "aggregateTable")
|
|
2925
2925
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
2926
|
-
|
|
2926
|
+
fr,
|
|
2927
2927
|
{
|
|
2928
2928
|
card: s,
|
|
2929
2929
|
data: (g == null ? void 0 : g.records) || [],
|
|
@@ -2964,8 +2964,8 @@ function bl({
|
|
|
2964
2964
|
inputClassName: "text-base font-semibold"
|
|
2965
2965
|
}
|
|
2966
2966
|
) }),
|
|
2967
|
-
/* @__PURE__ */ e(
|
|
2968
|
-
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(
|
|
2967
|
+
/* @__PURE__ */ e(Ko, {}),
|
|
2968
|
+
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e($o, {}) })
|
|
2969
2969
|
] }),
|
|
2970
2970
|
/* @__PURE__ */ e("div", { className: "w-1/2", children: /* @__PURE__ */ e(
|
|
2971
2971
|
Ua,
|
|
@@ -2991,10 +2991,10 @@ function bl({
|
|
|
2991
2991
|
inputClassName: "text-sm"
|
|
2992
2992
|
}
|
|
2993
2993
|
) }),
|
|
2994
|
-
/* @__PURE__ */ e(
|
|
2994
|
+
/* @__PURE__ */ e(or, { filter: m })
|
|
2995
2995
|
] })
|
|
2996
2996
|
] }),
|
|
2997
|
-
i && s.inlineFilters && s.inlineFilters.length > 0 && /* @__PURE__ */ e("div", { className: "px-6 pb-3", children: /* @__PURE__ */ e(
|
|
2997
|
+
i && s.inlineFilters && s.inlineFilters.length > 0 && /* @__PURE__ */ e("div", { className: "px-6 pb-3", children: /* @__PURE__ */ e(cr, { card: s, sheetId: c || "" }) }),
|
|
2998
2998
|
/* @__PURE__ */ e(mn, { className: "flex grow flex-col", children: te() }),
|
|
2999
2999
|
/* @__PURE__ */ e(
|
|
3000
3000
|
qs,
|
|
@@ -3035,7 +3035,7 @@ const tn = ({
|
|
|
3035
3035
|
value: n,
|
|
3036
3036
|
onChange: s
|
|
3037
3037
|
}
|
|
3038
|
-
),
|
|
3038
|
+
), qo = () => /* @__PURE__ */ a(kt, { children: [
|
|
3039
3039
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(At, { children: "Customize Card" }) }),
|
|
3040
3040
|
/* @__PURE__ */ a(Ut, { children: [
|
|
3041
3041
|
"See the configuration options and documentation",
|
|
@@ -3049,7 +3049,7 @@ const tn = ({
|
|
|
3049
3049
|
}
|
|
3050
3050
|
)
|
|
3051
3051
|
] })
|
|
3052
|
-
] }),
|
|
3052
|
+
] }), Go = ({
|
|
3053
3053
|
// defaultConfig,
|
|
3054
3054
|
customCode: t,
|
|
3055
3055
|
cardCustomCfgString: n,
|
|
@@ -3109,7 +3109,7 @@ const tn = ({
|
|
|
3109
3109
|
)
|
|
3110
3110
|
}
|
|
3111
3111
|
)
|
|
3112
|
-
] }),
|
|
3112
|
+
] }), Uo = ({
|
|
3113
3113
|
error: t,
|
|
3114
3114
|
hasCardCustomConfig: n,
|
|
3115
3115
|
onReset: s,
|
|
@@ -3121,7 +3121,7 @@ const tn = ({
|
|
|
3121
3121
|
/* @__PURE__ */ e(q, { onClick: l, variant: "outline", children: "Apply" }),
|
|
3122
3122
|
/* @__PURE__ */ e(q, { onClick: i, variant: "outline", children: "Close" })
|
|
3123
3123
|
] });
|
|
3124
|
-
function
|
|
3124
|
+
function _o() {
|
|
3125
3125
|
const [t, n] = $(!1), [s, l] = $(""), [i, d] = $(""), [o, c] = $(""), [r, u] = $(""), h = I((E) => E.card), p = I((E) => E.card.customCfg), x = p ? JSON.stringify(p, null, 2) : "", { data: A } = Ie(h), { data: m } = bn(h), { setCardCustomCfg: g, setCustomVisualCode: y } = ne(), w = (E) => {
|
|
3126
3126
|
var C, f;
|
|
3127
3127
|
return JSON.stringify(
|
|
@@ -3152,7 +3152,7 @@ function Uo() {
|
|
|
3152
3152
|
});
|
|
3153
3153
|
if (E) {
|
|
3154
3154
|
l(w(E)), c(((f = h.preferences) == null ? void 0 : f.customVisualCode) || "");
|
|
3155
|
-
const b =
|
|
3155
|
+
const b = vr(E, p);
|
|
3156
3156
|
d(w(b));
|
|
3157
3157
|
}
|
|
3158
3158
|
}, L = () => {
|
|
@@ -3160,7 +3160,7 @@ function Uo() {
|
|
|
3160
3160
|
if (o && y(o), i) {
|
|
3161
3161
|
const E = JSON.parse(
|
|
3162
3162
|
i
|
|
3163
|
-
), C =
|
|
3163
|
+
), C = yr(
|
|
3164
3164
|
JSON.parse(s),
|
|
3165
3165
|
E
|
|
3166
3166
|
);
|
|
@@ -3171,21 +3171,21 @@ function Uo() {
|
|
|
3171
3171
|
}
|
|
3172
3172
|
}, V = Object.keys(p || {}).length === 0;
|
|
3173
3173
|
return /* @__PURE__ */ a(wt, { open: t, onOpenChange: n, children: [
|
|
3174
|
-
/* @__PURE__ */ e(
|
|
3174
|
+
/* @__PURE__ */ e(xr, { asChild: !0, children: /* @__PURE__ */ e(
|
|
3175
3175
|
Me,
|
|
3176
3176
|
{
|
|
3177
3177
|
tooltip: "Customize Visual",
|
|
3178
3178
|
onClick: D,
|
|
3179
3179
|
className: V ? "" : "text-green-600 hover:text-green-700",
|
|
3180
|
-
children: /* @__PURE__ */ e(
|
|
3180
|
+
children: /* @__PURE__ */ e(br, { className: "h-4 w-4" })
|
|
3181
3181
|
}
|
|
3182
3182
|
) }),
|
|
3183
3183
|
/* @__PURE__ */ a(St, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
|
|
3184
|
-
/* @__PURE__ */ e(
|
|
3184
|
+
/* @__PURE__ */ e(qo, {}),
|
|
3185
3185
|
/* @__PURE__ */ a("div", { className: "flex grow gap-2", children: [
|
|
3186
|
-
/* @__PURE__ */ e(Oa, { FallbackComponent: vn, children: /* @__PURE__ */ e(
|
|
3186
|
+
/* @__PURE__ */ e(Oa, { FallbackComponent: vn, children: /* @__PURE__ */ e(vl, { className: "w-1/2 rounded shadow-none" }) }),
|
|
3187
3187
|
/* @__PURE__ */ e(
|
|
3188
|
-
|
|
3188
|
+
Go,
|
|
3189
3189
|
{
|
|
3190
3190
|
customCode: o,
|
|
3191
3191
|
cardCustomCfgString: x,
|
|
@@ -3196,7 +3196,7 @@ function Uo() {
|
|
|
3196
3196
|
)
|
|
3197
3197
|
] }),
|
|
3198
3198
|
/* @__PURE__ */ e(
|
|
3199
|
-
|
|
3199
|
+
Uo,
|
|
3200
3200
|
{
|
|
3201
3201
|
error: r,
|
|
3202
3202
|
hasCardCustomConfig: !!p,
|
|
@@ -3210,7 +3210,7 @@ function Uo() {
|
|
|
3210
3210
|
] })
|
|
3211
3211
|
] });
|
|
3212
3212
|
}
|
|
3213
|
-
function
|
|
3213
|
+
function Jo({
|
|
3214
3214
|
onChartTypeChange: t
|
|
3215
3215
|
}) {
|
|
3216
3216
|
const {
|
|
@@ -3246,7 +3246,7 @@ function _o({
|
|
|
3246
3246
|
/* @__PURE__ */ e(ht, { className: "my-3" }),
|
|
3247
3247
|
/* @__PURE__ */ e("div", { className: "mb-2", children: /* @__PURE__ */ e("span", { className: "text-xs font-medium text-muted-foreground", children: "Custom Charts" }) }),
|
|
3248
3248
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 gap-2", children: d.map((u, h) => /* @__PURE__ */ e(
|
|
3249
|
-
|
|
3249
|
+
Ho,
|
|
3250
3250
|
{
|
|
3251
3251
|
text: u.name,
|
|
3252
3252
|
onClick: () => r("custom", u),
|
|
@@ -3256,7 +3256,7 @@ function _o({
|
|
|
3256
3256
|
)) })
|
|
3257
3257
|
] });
|
|
3258
3258
|
}
|
|
3259
|
-
const
|
|
3259
|
+
const Ho = ({
|
|
3260
3260
|
text: t,
|
|
3261
3261
|
icon: n,
|
|
3262
3262
|
onClick: s
|
|
@@ -3281,7 +3281,7 @@ const Jo = ({
|
|
|
3281
3281
|
}
|
|
3282
3282
|
);
|
|
3283
3283
|
};
|
|
3284
|
-
function
|
|
3284
|
+
function Qo({
|
|
3285
3285
|
onChartTypeChange: t,
|
|
3286
3286
|
iconClassName: n,
|
|
3287
3287
|
searchQuery: s = ""
|
|
@@ -3310,7 +3310,7 @@ function Ho({
|
|
|
3310
3310
|
{ type: "bullet", name: "Bullet Chart", icon: ha },
|
|
3311
3311
|
{ type: "treemap", name: "Treemap", icon: Pa },
|
|
3312
3312
|
{ type: "kpi", name: "KPI", icon: Nn },
|
|
3313
|
-
{ type: "text", name: "Text", icon:
|
|
3313
|
+
{ type: "text", name: "Text", icon: Nr },
|
|
3314
3314
|
{ type: "map", name: "Map", icon: Us },
|
|
3315
3315
|
{ type: "custom", name: "Custom", icon: Wt }
|
|
3316
3316
|
].filter(
|
|
@@ -3332,7 +3332,7 @@ function Ho({
|
|
|
3332
3332
|
);
|
|
3333
3333
|
}) });
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function Yo({
|
|
3336
3336
|
chartType: t,
|
|
3337
3337
|
className: n,
|
|
3338
3338
|
customIcon: s,
|
|
@@ -3383,7 +3383,7 @@ function Qo({
|
|
|
3383
3383
|
return /* @__PURE__ */ e(Zt, { className: n });
|
|
3384
3384
|
}
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function yl({
|
|
3387
3387
|
variant: t = "ghost"
|
|
3388
3388
|
}) {
|
|
3389
3389
|
var c, r;
|
|
@@ -3402,7 +3402,7 @@ function vl({
|
|
|
3402
3402
|
size: "sm",
|
|
3403
3403
|
variant: t || "ghost",
|
|
3404
3404
|
children: /* @__PURE__ */ e(
|
|
3405
|
-
|
|
3405
|
+
Yo,
|
|
3406
3406
|
{
|
|
3407
3407
|
className: "size-4",
|
|
3408
3408
|
chartType: o,
|
|
@@ -3432,14 +3432,14 @@ function vl({
|
|
|
3432
3432
|
] }),
|
|
3433
3433
|
/* @__PURE__ */ a("div", { className: "max-h-[400px] overflow-y-auto", children: [
|
|
3434
3434
|
/* @__PURE__ */ e(
|
|
3435
|
-
|
|
3435
|
+
Qo,
|
|
3436
3436
|
{
|
|
3437
3437
|
onChartTypeChange: () => s(!1),
|
|
3438
3438
|
searchQuery: l
|
|
3439
3439
|
}
|
|
3440
3440
|
),
|
|
3441
3441
|
/* @__PURE__ */ e(
|
|
3442
|
-
|
|
3442
|
+
Jo,
|
|
3443
3443
|
{
|
|
3444
3444
|
onChartTypeChange: () => s(!1)
|
|
3445
3445
|
}
|
|
@@ -3452,7 +3452,7 @@ function vl({
|
|
|
3452
3452
|
}
|
|
3453
3453
|
);
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function Wo({
|
|
3456
3456
|
error: t,
|
|
3457
3457
|
className: n = "",
|
|
3458
3458
|
textClassName: s = "",
|
|
@@ -3511,7 +3511,7 @@ function Yo({
|
|
|
3511
3511
|
}
|
|
3512
3512
|
);
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function Xo() {
|
|
3515
3515
|
const t = I(
|
|
3516
3516
|
(r) => {
|
|
3517
3517
|
var u, h;
|
|
@@ -3550,7 +3550,7 @@ function Wo() {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
return /* @__PURE__ */ e(re, { children: n === "funnel" ? o() : n === "bullet" ? c() : d() });
|
|
3552
3552
|
}
|
|
3553
|
-
function
|
|
3553
|
+
function Zo({
|
|
3554
3554
|
className: t
|
|
3555
3555
|
}) {
|
|
3556
3556
|
var A, m, g, y, w, D, L, V, E, C;
|
|
@@ -3573,7 +3573,7 @@ function Xo({
|
|
|
3573
3573
|
{
|
|
3574
3574
|
className: "h-8 w-8 p-0",
|
|
3575
3575
|
tooltip: "Display Options",
|
|
3576
|
-
children: /* @__PURE__ */ e(
|
|
3576
|
+
children: /* @__PURE__ */ e(pl, { className: "h-4 w-4" })
|
|
3577
3577
|
}
|
|
3578
3578
|
) }),
|
|
3579
3579
|
/* @__PURE__ */ a(In, { align: "end", className: "w-64", children: [
|
|
@@ -3658,7 +3658,7 @@ function Xo({
|
|
|
3658
3658
|
] })
|
|
3659
3659
|
] }) });
|
|
3660
3660
|
}
|
|
3661
|
-
function
|
|
3661
|
+
function ec() {
|
|
3662
3662
|
const [t, n] = $(!1), s = I((p) => p.card), l = I((p) => p.selectedConnectionId), { setCard: i } = ne(), d = Ne(
|
|
3663
3663
|
(p) => p.actions.removeCardInlineFilterValue
|
|
3664
3664
|
), o = (s == null ? void 0 : s.inlineFilters) || [];
|
|
@@ -3668,7 +3668,7 @@ function Zo() {
|
|
|
3668
3668
|
(D) => D.column === x
|
|
3669
3669
|
))
|
|
3670
3670
|
return;
|
|
3671
|
-
const m = p.qualifiedFieldName ? p.qualifiedFieldName.split(".").slice(0, -1).join(".") : p.qualifiedEntityName || p.entityName, g =
|
|
3671
|
+
const m = p.qualifiedFieldName ? p.qualifiedFieldName.split(".").slice(0, -1).join(".") : p.qualifiedEntityName || p.entityName, g = wr(p.name), y = p.qualifiedFieldName || g, w = {
|
|
3672
3672
|
id: Gt(),
|
|
3673
3673
|
column: x,
|
|
3674
3674
|
title: p.label || p.name,
|
|
@@ -3678,7 +3678,7 @@ function Zo() {
|
|
|
3678
3678
|
// Will be resolved from the query context
|
|
3679
3679
|
connectionId: l || "",
|
|
3680
3680
|
operation: "in",
|
|
3681
|
-
sql:
|
|
3681
|
+
sql: Sr(
|
|
3682
3682
|
p.dataType,
|
|
3683
3683
|
m,
|
|
3684
3684
|
y
|
|
@@ -3731,7 +3731,7 @@ function Zo() {
|
|
|
3731
3731
|
className: Y("", {
|
|
3732
3732
|
"text-primary": o.length > 0
|
|
3733
3733
|
}),
|
|
3734
|
-
children: /* @__PURE__ */ e(
|
|
3734
|
+
children: /* @__PURE__ */ e(yo, { className: "h-4 w-4" })
|
|
3735
3735
|
}
|
|
3736
3736
|
) }),
|
|
3737
3737
|
/* @__PURE__ */ e(Je, { align: "end", className: "w-80 p-0", children: /* @__PURE__ */ a("div", { className: "flex flex-col", children: [
|
|
@@ -3745,7 +3745,7 @@ function Zo() {
|
|
|
3745
3745
|
items: [],
|
|
3746
3746
|
strategy: Ht,
|
|
3747
3747
|
children: /* @__PURE__ */ e(
|
|
3748
|
-
|
|
3748
|
+
Cr,
|
|
3749
3749
|
{
|
|
3750
3750
|
context: "inline-filter",
|
|
3751
3751
|
onFieldSelect: c,
|
|
@@ -3757,7 +3757,7 @@ function Zo() {
|
|
|
3757
3757
|
o.length > 0 && /* @__PURE__ */ a("div", { className: "border-t px-4 py-3", children: [
|
|
3758
3758
|
/* @__PURE__ */ e("p", { className: "mb-2 text-xs font-medium text-muted-foreground", children: "Active Filters" }),
|
|
3759
3759
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: o.map((p) => /* @__PURE__ */ e(
|
|
3760
|
-
|
|
3760
|
+
tc,
|
|
3761
3761
|
{
|
|
3762
3762
|
filter: p,
|
|
3763
3763
|
onUpdate: (x) => u(p.id, x),
|
|
@@ -3769,7 +3769,7 @@ function Zo() {
|
|
|
3769
3769
|
] }) })
|
|
3770
3770
|
] }) }) : null;
|
|
3771
3771
|
}
|
|
3772
|
-
function
|
|
3772
|
+
function tc({
|
|
3773
3773
|
filter: t,
|
|
3774
3774
|
onUpdate: n,
|
|
3775
3775
|
onRemove: s
|
|
@@ -3778,7 +3778,7 @@ function ec({
|
|
|
3778
3778
|
/* @__PURE__ */ e("span", { className: "truncate", title: t.column, children: t.title }),
|
|
3779
3779
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-0.5", children: [
|
|
3780
3780
|
/* @__PURE__ */ e(
|
|
3781
|
-
|
|
3781
|
+
kr,
|
|
3782
3782
|
{
|
|
3783
3783
|
filter: t,
|
|
3784
3784
|
variant: "inline",
|
|
@@ -3808,13 +3808,13 @@ function ec({
|
|
|
3808
3808
|
] })
|
|
3809
3809
|
] });
|
|
3810
3810
|
}
|
|
3811
|
-
function
|
|
3811
|
+
function Nl() {
|
|
3812
3812
|
const t = I((d) => d.card), n = I(
|
|
3813
3813
|
(d) => {
|
|
3814
3814
|
var o, c;
|
|
3815
3815
|
return (c = (o = d.card) == null ? void 0 : o.preferences) == null ? void 0 : c.chartOptions;
|
|
3816
3816
|
}
|
|
3817
|
-
), s =
|
|
3817
|
+
), s = Ar(n), { setChartGrid: l } = ne();
|
|
3818
3818
|
function i() {
|
|
3819
3819
|
const d = ["xy", "none", "x", "y"], c = (d.indexOf(s) + 1) % d.length;
|
|
3820
3820
|
l(d[c]);
|
|
@@ -3829,7 +3829,7 @@ function yl() {
|
|
|
3829
3829
|
"horizontalBar",
|
|
3830
3830
|
"funnel",
|
|
3831
3831
|
"bullet"
|
|
3832
|
-
].includes(t.type) && /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
|
|
3832
|
+
].includes(t.type) && /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(Xo, {}) }),
|
|
3833
3833
|
!["kpi", "text", "custom", "table"].includes(t.type) && /* @__PURE__ */ e(re, {}),
|
|
3834
3834
|
![
|
|
3835
3835
|
"pie",
|
|
@@ -3844,15 +3844,15 @@ function yl() {
|
|
|
3844
3844
|
"map"
|
|
3845
3845
|
].includes(t.type) && /* @__PURE__ */ a(Me, { tooltip: "Grid Style", onClick: i, children: [
|
|
3846
3846
|
(s === "xy" || !s) && /* @__PURE__ */ e(Ma, { className: "size-4" }),
|
|
3847
|
-
s === "x" && /* @__PURE__ */ e(
|
|
3847
|
+
s === "x" && /* @__PURE__ */ e(ml, { className: "size-4" }),
|
|
3848
3848
|
s === "y" && /* @__PURE__ */ e(Bn, { className: "size-4" }),
|
|
3849
|
-
s === "none" && /* @__PURE__ */ e(
|
|
3849
|
+
s === "none" && /* @__PURE__ */ e(Eo, { className: "size-4" })
|
|
3850
3850
|
] }),
|
|
3851
|
-
/* @__PURE__ */ e(
|
|
3852
|
-
/* @__PURE__ */ e(
|
|
3851
|
+
/* @__PURE__ */ e(ec, {}),
|
|
3852
|
+
/* @__PURE__ */ e(Zo, {})
|
|
3853
3853
|
] });
|
|
3854
3854
|
}
|
|
3855
|
-
function
|
|
3855
|
+
function ac() {
|
|
3856
3856
|
const t = I((m) => m.frame), n = I((m) => m.card), { setFrame: s, setActiveTabCardId: l, setCard: i, updateCardInFrame: d } = ne(), o = (m, g) => {
|
|
3857
3857
|
m.dataTransfer.setData("tabIndex", g.toString());
|
|
3858
3858
|
}, c = (m) => {
|
|
@@ -3928,7 +3928,7 @@ function tc() {
|
|
|
3928
3928
|
displayTab: y
|
|
3929
3929
|
});
|
|
3930
3930
|
},
|
|
3931
|
-
children: g.displayTab === !0 || g.displayTab === void 0 ? /* @__PURE__ */ e(
|
|
3931
|
+
children: g.displayTab === !0 || g.displayTab === void 0 ? /* @__PURE__ */ e(Ir, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(uo, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
|
|
3932
3932
|
}
|
|
3933
3933
|
);
|
|
3934
3934
|
}
|
|
@@ -3945,7 +3945,7 @@ function tc() {
|
|
|
3945
3945
|
children: [
|
|
3946
3946
|
A(t, m),
|
|
3947
3947
|
/* @__PURE__ */ e(
|
|
3948
|
-
|
|
3948
|
+
Dr,
|
|
3949
3949
|
{
|
|
3950
3950
|
enabled: t.activeCardId === m.id,
|
|
3951
3951
|
text: m.tabTitle || m.title,
|
|
@@ -3957,7 +3957,7 @@ function tc() {
|
|
|
3957
3957
|
m.id
|
|
3958
3958
|
),
|
|
3959
3959
|
t.activeCardId === m.id && /* @__PURE__ */ e(
|
|
3960
|
-
|
|
3960
|
+
Mr,
|
|
3961
3961
|
{
|
|
3962
3962
|
className: "ml-2 size-3.5 text-muted-foreground hover:text-foreground",
|
|
3963
3963
|
onClick: (y) => {
|
|
@@ -4013,7 +4013,7 @@ function un() {
|
|
|
4013
4013
|
}
|
|
4014
4014
|
function g() {
|
|
4015
4015
|
return n.type === "kpi" ? h || p ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Sa, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
4016
|
-
|
|
4016
|
+
Tr,
|
|
4017
4017
|
{
|
|
4018
4018
|
card: n,
|
|
4019
4019
|
data: u == null ? void 0 : u.records,
|
|
@@ -4021,13 +4021,13 @@ function un() {
|
|
|
4021
4021
|
isError: x
|
|
4022
4022
|
}
|
|
4023
4023
|
) }) }) : n.type === "text" ? h || p ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Sa, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(Xt, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
4024
|
-
|
|
4024
|
+
Er,
|
|
4025
4025
|
{
|
|
4026
4026
|
isLoading: s,
|
|
4027
4027
|
card: n,
|
|
4028
4028
|
data: u == null ? void 0 : u.records
|
|
4029
4029
|
}
|
|
4030
|
-
) }) }) }) : /* @__PURE__ */ e(Oa, { FallbackComponent: vn, children: /* @__PURE__ */ e(
|
|
4030
|
+
) }) }) }) : /* @__PURE__ */ e(Oa, { FallbackComponent: vn, children: /* @__PURE__ */ e(vl, { className: "grow border-none shadow-none" }) });
|
|
4031
4031
|
}
|
|
4032
4032
|
return /* @__PURE__ */ a(
|
|
4033
4033
|
Fa,
|
|
@@ -4037,7 +4037,7 @@ function un() {
|
|
|
4037
4037
|
className: "flex grow flex-col",
|
|
4038
4038
|
children: [
|
|
4039
4039
|
t.cards.map((y) => /* @__PURE__ */ e(Na, { className: "mt-0 grow", value: y.id, children: g() }, y.id)),
|
|
4040
|
-
/* @__PURE__ */ e(
|
|
4040
|
+
/* @__PURE__ */ e(ac, {})
|
|
4041
4041
|
]
|
|
4042
4042
|
}
|
|
4043
4043
|
);
|
|
@@ -4122,9 +4122,9 @@ function ms({
|
|
|
4122
4122
|
className: "z-10 mb-0 flex min-h-10 items-center justify-end gap-2 px-6",
|
|
4123
4123
|
children: [
|
|
4124
4124
|
i && /* @__PURE__ */ a("div", { className: "flex grow items-center", children: [
|
|
4125
|
-
/* @__PURE__ */ e(
|
|
4126
|
-
d && /* @__PURE__ */ e(Me, { tooltip: "Visual Docs", onClick: N, children: /* @__PURE__ */ e(
|
|
4127
|
-
!["table", "custom"].includes(s.type) && d && /* @__PURE__ */ e(
|
|
4125
|
+
/* @__PURE__ */ e(yl, {}),
|
|
4126
|
+
d && /* @__PURE__ */ e(Me, { tooltip: "Visual Docs", onClick: N, children: /* @__PURE__ */ e(io, { className: "size-4" }) }),
|
|
4127
|
+
!["table", "custom"].includes(s.type) && d && /* @__PURE__ */ e(_o, {})
|
|
4128
4128
|
] }),
|
|
4129
4129
|
!i && /* @__PURE__ */ a("div", { className: "flex grow items-center gap-1", children: [
|
|
4130
4130
|
/* @__PURE__ */ e(
|
|
@@ -4134,7 +4134,7 @@ function ms({
|
|
|
4134
4134
|
variant: "ghost",
|
|
4135
4135
|
size: "icon",
|
|
4136
4136
|
onClick: O,
|
|
4137
|
-
children: /* @__PURE__ */ e(
|
|
4137
|
+
children: /* @__PURE__ */ e(Or, { className: "size-4" })
|
|
4138
4138
|
}
|
|
4139
4139
|
),
|
|
4140
4140
|
/* @__PURE__ */ e(
|
|
@@ -4144,7 +4144,7 @@ function ms({
|
|
|
4144
4144
|
variant: "ghost",
|
|
4145
4145
|
size: "icon",
|
|
4146
4146
|
onClick: S,
|
|
4147
|
-
children: /* @__PURE__ */ e(
|
|
4147
|
+
children: /* @__PURE__ */ e(mo, { strokeWidth: 1.5, className: "size-4" })
|
|
4148
4148
|
}
|
|
4149
4149
|
),
|
|
4150
4150
|
/* @__PURE__ */ e(
|
|
@@ -4175,9 +4175,9 @@ function ms({
|
|
|
4175
4175
|
)
|
|
4176
4176
|
}
|
|
4177
4177
|
),
|
|
4178
|
-
/* @__PURE__ */ e(
|
|
4178
|
+
/* @__PURE__ */ e(Nl, {})
|
|
4179
4179
|
] }),
|
|
4180
|
-
l && /* @__PURE__ */ e(
|
|
4180
|
+
l && /* @__PURE__ */ e(sc, {})
|
|
4181
4181
|
]
|
|
4182
4182
|
}
|
|
4183
4183
|
),
|
|
@@ -4189,20 +4189,20 @@ function ms({
|
|
|
4189
4189
|
children: [
|
|
4190
4190
|
o && /* @__PURE__ */ a(re, { children: [
|
|
4191
4191
|
/* @__PURE__ */ e(
|
|
4192
|
-
|
|
4192
|
+
Be,
|
|
4193
4193
|
{
|
|
4194
4194
|
id: "1",
|
|
4195
4195
|
order: 1,
|
|
4196
4196
|
defaultSize: 30,
|
|
4197
4197
|
minSize: 10,
|
|
4198
4198
|
className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
|
|
4199
|
-
children: o && /* @__PURE__ */ e(
|
|
4199
|
+
children: o && /* @__PURE__ */ e(nc, {})
|
|
4200
4200
|
}
|
|
4201
4201
|
),
|
|
4202
4202
|
/* @__PURE__ */ e(Et, {})
|
|
4203
4203
|
] }),
|
|
4204
4204
|
/* @__PURE__ */ a(
|
|
4205
|
-
|
|
4205
|
+
Be,
|
|
4206
4206
|
{
|
|
4207
4207
|
id: "2",
|
|
4208
4208
|
order: 2,
|
|
@@ -4226,7 +4226,7 @@ function ms({
|
|
|
4226
4226
|
isLoading: g || y
|
|
4227
4227
|
}
|
|
4228
4228
|
),
|
|
4229
|
-
w && /* @__PURE__ */ e(
|
|
4229
|
+
w && /* @__PURE__ */ e(Wo, { error: w })
|
|
4230
4230
|
]
|
|
4231
4231
|
}
|
|
4232
4232
|
)
|
|
@@ -4237,7 +4237,7 @@ function ms({
|
|
|
4237
4237
|
}
|
|
4238
4238
|
) : /* @__PURE__ */ e(re, { children: "No Active Card" });
|
|
4239
4239
|
}
|
|
4240
|
-
function
|
|
4240
|
+
function nc() {
|
|
4241
4241
|
const t = I((s) => s.pythonStdOut);
|
|
4242
4242
|
if (!t) return null;
|
|
4243
4243
|
const n = t.replace(/\n/g, "<br>");
|
|
@@ -4249,7 +4249,7 @@ function ac() {
|
|
|
4249
4249
|
] })
|
|
4250
4250
|
] });
|
|
4251
4251
|
}
|
|
4252
|
-
function
|
|
4252
|
+
function sc() {
|
|
4253
4253
|
const t = I((s) => s.isShowingVisual), n = I(
|
|
4254
4254
|
(s) => s.actions.setIsShowingVisual
|
|
4255
4255
|
);
|
|
@@ -4268,6 +4268,41 @@ function nc() {
|
|
|
4268
4268
|
}
|
|
4269
4269
|
);
|
|
4270
4270
|
}
|
|
4271
|
+
function Ve({
|
|
4272
|
+
value: t,
|
|
4273
|
+
onCommit: n,
|
|
4274
|
+
type: s = "text",
|
|
4275
|
+
placeholder: l,
|
|
4276
|
+
className: i
|
|
4277
|
+
}) {
|
|
4278
|
+
const [d, o] = $(t), c = Qe(!1);
|
|
4279
|
+
return fe(() => {
|
|
4280
|
+
o(t);
|
|
4281
|
+
}, [t]), /* @__PURE__ */ e(
|
|
4282
|
+
ve,
|
|
4283
|
+
{
|
|
4284
|
+
type: s,
|
|
4285
|
+
placeholder: l,
|
|
4286
|
+
value: d,
|
|
4287
|
+
onChange: (h) => o(h.target.value),
|
|
4288
|
+
onBlur: () => {
|
|
4289
|
+
if (c.current) {
|
|
4290
|
+
c.current = !1;
|
|
4291
|
+
return;
|
|
4292
|
+
}
|
|
4293
|
+
d !== t && n(d);
|
|
4294
|
+
},
|
|
4295
|
+
onKeyDown: (h) => {
|
|
4296
|
+
if (h.key === "Enter") {
|
|
4297
|
+
h.currentTarget.blur();
|
|
4298
|
+
return;
|
|
4299
|
+
}
|
|
4300
|
+
h.key === "Escape" && (c.current = !0, o(t), h.currentTarget.blur());
|
|
4301
|
+
},
|
|
4302
|
+
className: i
|
|
4303
|
+
}
|
|
4304
|
+
);
|
|
4305
|
+
}
|
|
4271
4306
|
function nt({
|
|
4272
4307
|
defaultValue: t,
|
|
4273
4308
|
label: n,
|
|
@@ -4303,11 +4338,11 @@ function nt({
|
|
|
4303
4338
|
}
|
|
4304
4339
|
);
|
|
4305
4340
|
}
|
|
4306
|
-
function
|
|
4341
|
+
function Cl() {
|
|
4307
4342
|
var g, y;
|
|
4308
4343
|
const t = I(
|
|
4309
4344
|
(w) => w.card.customCardPreferences
|
|
4310
|
-
), { data: n } =
|
|
4345
|
+
), { data: n } = Fr(), s = (n == null ? void 0 : n.plugins) || [], l = I((w) => w.card), i = I((w) => w.frame), d = (t == null ? void 0 : t.visualType) || "single", { setCustomCardPreferences: o } = ne(), { components: c, manifest: r } = Ws(
|
|
4311
4346
|
(t == null ? void 0 : t.url) || ""
|
|
4312
4347
|
), u = (g = r == null ? void 0 : r.visuals) == null ? void 0 : g.find(
|
|
4313
4348
|
(w) => w.name === (t == null ? void 0 : t.componentName)
|
|
@@ -4362,16 +4397,16 @@ function sc() {
|
|
|
4362
4397
|
function x(w, D, L = [], V = "") {
|
|
4363
4398
|
var E, C;
|
|
4364
4399
|
return t ? w === "input" ? /* @__PURE__ */ e(
|
|
4365
|
-
|
|
4400
|
+
Ve,
|
|
4366
4401
|
{
|
|
4367
4402
|
className: `h-8 w-full ${dt}`,
|
|
4368
|
-
value: ((E = t == null ? void 0 : t.settings) == null ? void 0 : E[D])
|
|
4369
|
-
|
|
4403
|
+
value: String(((E = t == null ? void 0 : t.settings) == null ? void 0 : E[D]) ?? V ?? ""),
|
|
4404
|
+
onCommit: (f) => {
|
|
4370
4405
|
o({
|
|
4371
4406
|
...t,
|
|
4372
4407
|
settings: {
|
|
4373
4408
|
...t == null ? void 0 : t.settings,
|
|
4374
|
-
[D]: f
|
|
4409
|
+
[D]: f
|
|
4375
4410
|
}
|
|
4376
4411
|
});
|
|
4377
4412
|
}
|
|
@@ -4417,7 +4452,7 @@ function sc() {
|
|
|
4417
4452
|
{
|
|
4418
4453
|
type: "multiple",
|
|
4419
4454
|
defaultValue: ["component-settings"],
|
|
4420
|
-
className: "
|
|
4455
|
+
className: "",
|
|
4421
4456
|
children: [
|
|
4422
4457
|
/* @__PURE__ */ a(ue, { value: "plugin-settings", children: [
|
|
4423
4458
|
/* @__PURE__ */ e(me, { children: "Plugin" }),
|
|
@@ -4426,7 +4461,7 @@ function sc() {
|
|
|
4426
4461
|
/* @__PURE__ */ e(
|
|
4427
4462
|
nt,
|
|
4428
4463
|
{
|
|
4429
|
-
icon: /* @__PURE__ */ e(
|
|
4464
|
+
icon: /* @__PURE__ */ e(dl, { className: "h-3.5 w-3.5" }),
|
|
4430
4465
|
className: "h-9 w-full",
|
|
4431
4466
|
label: "Select Plugin",
|
|
4432
4467
|
options: s,
|
|
@@ -4455,7 +4490,7 @@ function sc() {
|
|
|
4455
4490
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(re, { children: c && /* @__PURE__ */ e(
|
|
4456
4491
|
nt,
|
|
4457
4492
|
{
|
|
4458
|
-
icon: /* @__PURE__ */ e(
|
|
4493
|
+
icon: /* @__PURE__ */ e(co, { className: "h-3.5 w-3.5" }),
|
|
4459
4494
|
className: "h-9 w-full",
|
|
4460
4495
|
label: "Select Component",
|
|
4461
4496
|
options: (c == null ? void 0 : c.filter((w) => w.type === d).map((w) => ({
|
|
@@ -4545,7 +4580,7 @@ function Pt() {
|
|
|
4545
4580
|
var h, p, x, A;
|
|
4546
4581
|
if (t != null && t[u] || (p = (h = s == null ? void 0 : s.onClickFilter) == null ? void 0 : h.find((m) => m.columnIndex === u)) != null && p.expression)
|
|
4547
4582
|
return /* @__PURE__ */ e(
|
|
4548
|
-
|
|
4583
|
+
ve,
|
|
4549
4584
|
{
|
|
4550
4585
|
value: (A = (x = s == null ? void 0 : s.onClickFilter) == null ? void 0 : x.find((m) => m.columnIndex === u)) == null ? void 0 : A.expression,
|
|
4551
4586
|
onChange: (m) => c(u, m),
|
|
@@ -4615,7 +4650,7 @@ function lc({ idx: t }) {
|
|
|
4615
4650
|
(r) => r.actions.setCardPreferences
|
|
4616
4651
|
), i = (c = n == null ? void 0 : n.chartOptions) == null ? void 0 : c.indexAxis, d = s == null ? void 0 : s.find((r) => r.idx === t);
|
|
4617
4652
|
function o(r, u) {
|
|
4618
|
-
(r === "end" || r === "start") &&
|
|
4653
|
+
(r === "end" || r === "start") && Lr(Pr());
|
|
4619
4654
|
const h = {
|
|
4620
4655
|
display: r !== "none",
|
|
4621
4656
|
align: r,
|
|
@@ -4646,7 +4681,7 @@ function lc({ idx: t }) {
|
|
|
4646
4681
|
}
|
|
4647
4682
|
}
|
|
4648
4683
|
return /* @__PURE__ */ a(Ue, { children: [
|
|
4649
|
-
/* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(
|
|
4684
|
+
/* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Rr, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
4650
4685
|
/* @__PURE__ */ e(Je, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ a("div", { className: "flex gap-1", children: [
|
|
4651
4686
|
/* @__PURE__ */ e(
|
|
4652
4687
|
"button",
|
|
@@ -4662,7 +4697,7 @@ function lc({ idx: t }) {
|
|
|
4662
4697
|
onClick: () => o("start", t),
|
|
4663
4698
|
className: "h-7 p-1 text-xs font-normal",
|
|
4664
4699
|
children: /* @__PURE__ */ e(
|
|
4665
|
-
|
|
4700
|
+
vo,
|
|
4666
4701
|
{
|
|
4667
4702
|
className: Y("h-4 w-4", {
|
|
4668
4703
|
"rotate-90": i === "y"
|
|
@@ -4677,7 +4712,7 @@ function lc({ idx: t }) {
|
|
|
4677
4712
|
onClick: () => o("center", t),
|
|
4678
4713
|
className: "h-7 p-1 text-xs font-normal",
|
|
4679
4714
|
children: /* @__PURE__ */ e(
|
|
4680
|
-
|
|
4715
|
+
Co,
|
|
4681
4716
|
{
|
|
4682
4717
|
className: Y("h-4 w-4", {
|
|
4683
4718
|
"rotate-90": i === "y"
|
|
@@ -4692,7 +4727,7 @@ function lc({ idx: t }) {
|
|
|
4692
4727
|
onClick: () => o("end", t),
|
|
4693
4728
|
className: "h-7 p-1 text-xs font-normal",
|
|
4694
4729
|
children: /* @__PURE__ */ e(
|
|
4695
|
-
|
|
4730
|
+
No,
|
|
4696
4731
|
{
|
|
4697
4732
|
className: Y("h-4 w-4", {
|
|
4698
4733
|
"rotate-90": i === "y"
|
|
@@ -4705,10 +4740,10 @@ function lc({ idx: t }) {
|
|
|
4705
4740
|
] });
|
|
4706
4741
|
}
|
|
4707
4742
|
function rc() {
|
|
4708
|
-
const t = I((d) => d.card), { data: n } = Ie(t), { keys: s } = nn((n == null ? void 0 : n.records) || []), l = s.slice(1).filter((d) => !
|
|
4743
|
+
const t = I((d) => d.card), { data: n } = Ie(t), { keys: s } = nn((n == null ? void 0 : n.records) || []), l = s.slice(1).filter((d) => !Vr.includes(d));
|
|
4709
4744
|
let i = l;
|
|
4710
4745
|
if (["stackedBar", "stackedLine"].includes(t.type)) {
|
|
4711
|
-
const d =
|
|
4746
|
+
const d = Br({
|
|
4712
4747
|
dataArray: (n == null ? void 0 : n.records) || [],
|
|
4713
4748
|
groupKey: s[0],
|
|
4714
4749
|
pivotKey: s[1],
|
|
@@ -4742,7 +4777,7 @@ function jn({
|
|
|
4742
4777
|
/* @__PURE__ */ e(Le, { children: t })
|
|
4743
4778
|
] }) });
|
|
4744
4779
|
}
|
|
4745
|
-
function
|
|
4780
|
+
function wl() {
|
|
4746
4781
|
const t = I((r) => r.card), n = I(
|
|
4747
4782
|
(r) => {
|
|
4748
4783
|
var u, h, p;
|
|
@@ -4757,7 +4792,7 @@ function Nl() {
|
|
|
4757
4792
|
{
|
|
4758
4793
|
className: "flex h-8 items-center rounded-md bg-muted/70 px-3 hover:bg-muted",
|
|
4759
4794
|
title: r,
|
|
4760
|
-
children:
|
|
4795
|
+
children: Sl(r)
|
|
4761
4796
|
},
|
|
4762
4797
|
r
|
|
4763
4798
|
)) })
|
|
@@ -4765,7 +4800,7 @@ function Nl() {
|
|
|
4765
4800
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
4766
4801
|
/* @__PURE__ */ e(P, { children: i }),
|
|
4767
4802
|
/* @__PURE__ */ e("div", { className: "my-1 max-h-[125px] space-y-1 overflow-y-auto", children: o.map((r, u) => /* @__PURE__ */ e(
|
|
4768
|
-
|
|
4803
|
+
kl,
|
|
4769
4804
|
{
|
|
4770
4805
|
className: "flex h-8 items-center bg-muted/70 px-3 hover:bg-muted",
|
|
4771
4806
|
iconClassName: "invisible group-hover:visible",
|
|
@@ -4777,10 +4812,10 @@ function Nl() {
|
|
|
4777
4812
|
] })
|
|
4778
4813
|
] });
|
|
4779
4814
|
}
|
|
4780
|
-
function
|
|
4815
|
+
function Sl(t, n = 30) {
|
|
4781
4816
|
return t.length > n ? t.slice(0, n) + "..." : t;
|
|
4782
4817
|
}
|
|
4783
|
-
function
|
|
4818
|
+
function kl({
|
|
4784
4819
|
col: t,
|
|
4785
4820
|
idx: n,
|
|
4786
4821
|
className: s,
|
|
@@ -4829,7 +4864,7 @@ function wl({
|
|
|
4829
4864
|
s
|
|
4830
4865
|
),
|
|
4831
4866
|
children: [
|
|
4832
|
-
i || /* @__PURE__ */ e(jn, { className: "max-w-[100px]", title: t, children:
|
|
4867
|
+
i || /* @__PURE__ */ e(jn, { className: "max-w-[100px]", title: t, children: Sl(t) }),
|
|
4833
4868
|
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
4834
4869
|
/* @__PURE__ */ e(
|
|
4835
4870
|
Ba,
|
|
@@ -4852,7 +4887,7 @@ function wl({
|
|
|
4852
4887
|
}
|
|
4853
4888
|
),
|
|
4854
4889
|
/* @__PURE__ */ e(
|
|
4855
|
-
|
|
4890
|
+
zr,
|
|
4856
4891
|
{
|
|
4857
4892
|
onClick: () => u("area"),
|
|
4858
4893
|
className: Y(
|
|
@@ -4870,7 +4905,7 @@ function wl({
|
|
|
4870
4905
|
function ta() {
|
|
4871
4906
|
const t = Ne(
|
|
4872
4907
|
(c) => c.dashboard.filters
|
|
4873
|
-
), n = I((c) => c.frame), { setFrame: s } = ne(), { columns: l } = Zs(), { assignFilter: i } =
|
|
4908
|
+
), n = I((c) => c.frame), { setFrame: s } = ne(), { columns: l } = Zs(), { assignFilter: i } = jr();
|
|
4874
4909
|
function d(c) {
|
|
4875
4910
|
const r = i(c, "frame");
|
|
4876
4911
|
s({ ...n, filterId: r });
|
|
@@ -4879,7 +4914,7 @@ function ta() {
|
|
|
4879
4914
|
return /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
4880
4915
|
/* @__PURE__ */ e(P, { children: "Card Filter" }),
|
|
4881
4916
|
/* @__PURE__ */ e(ic, { onSelect: d, columns: l }),
|
|
4882
|
-
o && /* @__PURE__ */ e(
|
|
4917
|
+
o && /* @__PURE__ */ e($r, { filter: o })
|
|
4883
4918
|
] });
|
|
4884
4919
|
}
|
|
4885
4920
|
function ic({
|
|
@@ -4899,7 +4934,7 @@ function ic({
|
|
|
4899
4934
|
className: "w-full justify-between font-normal",
|
|
4900
4935
|
children: [
|
|
4901
4936
|
i ? (o = t.find((c) => c.column_name === i)) == null ? void 0 : o.column_name : "Select Column...",
|
|
4902
|
-
/* @__PURE__ */ e(
|
|
4937
|
+
/* @__PURE__ */ e(Kr, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
4903
4938
|
]
|
|
4904
4939
|
}
|
|
4905
4940
|
) }),
|
|
@@ -4918,7 +4953,7 @@ function ic({
|
|
|
4918
4953
|
children: [
|
|
4919
4954
|
c.column_name,
|
|
4920
4955
|
/* @__PURE__ */ e(
|
|
4921
|
-
|
|
4956
|
+
qr,
|
|
4922
4957
|
{
|
|
4923
4958
|
className: Y(
|
|
4924
4959
|
"ml-auto h-4 w-4",
|
|
@@ -4965,7 +5000,7 @@ function oc({
|
|
|
4965
5000
|
] }),
|
|
4966
5001
|
/* @__PURE__ */ a(ue, { value: "item-2", children: [
|
|
4967
5002
|
/* @__PURE__ */ e(me, { children: "Settings" }),
|
|
4968
|
-
/* @__PURE__ */ e(he, { className: "space-y-4 px-2", children: /* @__PURE__ */ e(
|
|
5003
|
+
/* @__PURE__ */ e(he, { className: "space-y-4 px-2", children: /* @__PURE__ */ e(wl, {}) })
|
|
4969
5004
|
] }),
|
|
4970
5005
|
/* @__PURE__ */ a(ue, { value: "item-3", children: [
|
|
4971
5006
|
/* @__PURE__ */ e(me, { children: "Click Filters" }),
|
|
@@ -5019,7 +5054,7 @@ function cc({
|
|
|
5019
5054
|
] })
|
|
5020
5055
|
] }) });
|
|
5021
5056
|
}
|
|
5022
|
-
function
|
|
5057
|
+
function Al() {
|
|
5023
5058
|
const t = I((c) => c.card.type), n = I((c) => c.isDevMode), s = I((c) => c.card.preferences), { setCardPreferences: l } = I((c) => c.actions);
|
|
5024
5059
|
function i(c) {
|
|
5025
5060
|
var h;
|
|
@@ -5124,7 +5159,7 @@ function mc() {
|
|
|
5124
5159
|
}
|
|
5125
5160
|
),
|
|
5126
5161
|
!["kpi"].includes(t) && /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
5127
|
-
/* @__PURE__ */ e(
|
|
5162
|
+
/* @__PURE__ */ e(Al, {}),
|
|
5128
5163
|
/* @__PURE__ */ e(Pt, {}),
|
|
5129
5164
|
/* @__PURE__ */ e(ta, {})
|
|
5130
5165
|
] })
|
|
@@ -5265,7 +5300,7 @@ function pc({
|
|
|
5265
5300
|
] }),
|
|
5266
5301
|
t.map((o, c) => /* @__PURE__ */ a("div", { className: "flex items-center gap-2 px-2", children: [
|
|
5267
5302
|
/* @__PURE__ */ e(
|
|
5268
|
-
|
|
5303
|
+
ve,
|
|
5269
5304
|
{
|
|
5270
5305
|
onChange: (r) => l(c, "start", r.target.value),
|
|
5271
5306
|
value: o.start,
|
|
@@ -5274,7 +5309,7 @@ function pc({
|
|
|
5274
5309
|
),
|
|
5275
5310
|
/* @__PURE__ */ e("span", { children: "-" }),
|
|
5276
5311
|
/* @__PURE__ */ e(
|
|
5277
|
-
|
|
5312
|
+
ve,
|
|
5278
5313
|
{
|
|
5279
5314
|
value: o.end,
|
|
5280
5315
|
onChange: (r) => l(c, "end", r.target.value),
|
|
@@ -5282,7 +5317,7 @@ function pc({
|
|
|
5282
5317
|
}
|
|
5283
5318
|
),
|
|
5284
5319
|
/* @__PURE__ */ e(
|
|
5285
|
-
|
|
5320
|
+
ve,
|
|
5286
5321
|
{
|
|
5287
5322
|
onChange: (r) => l(c, "color", r.target.value),
|
|
5288
5323
|
value: o.color,
|
|
@@ -5445,7 +5480,7 @@ function fc() {
|
|
|
5445
5480
|
/* @__PURE__ */ a("div", { className: "w-full space-y-1", children: [
|
|
5446
5481
|
/* @__PURE__ */ e(P, { children: "Suffix" }),
|
|
5447
5482
|
/* @__PURE__ */ e(
|
|
5448
|
-
|
|
5483
|
+
ve,
|
|
5449
5484
|
{
|
|
5450
5485
|
value: ((m = t == null ? void 0 : t.formatNumber) == null ? void 0 : m.suffix) || "",
|
|
5451
5486
|
className: "h-8 font-mono text-xs focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0",
|
|
@@ -5671,7 +5706,7 @@ function yc() {
|
|
|
5671
5706
|
}
|
|
5672
5707
|
),
|
|
5673
5708
|
n === "custom" && /* @__PURE__ */ e(
|
|
5674
|
-
|
|
5709
|
+
ve,
|
|
5675
5710
|
{
|
|
5676
5711
|
onChange: (O) => {
|
|
5677
5712
|
l(O.target.value);
|
|
@@ -5763,7 +5798,7 @@ function yc() {
|
|
|
5763
5798
|
/* @__PURE__ */ e(ht, { className: "my-4" }),
|
|
5764
5799
|
/* @__PURE__ */ e(an, { className: "", summary: "Scale Options", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
5765
5800
|
/* @__PURE__ */ e(
|
|
5766
|
-
|
|
5801
|
+
ve,
|
|
5767
5802
|
{
|
|
5768
5803
|
className: `h-9 w-full ${dt}`,
|
|
5769
5804
|
type: "number",
|
|
@@ -5783,7 +5818,7 @@ function yc() {
|
|
|
5783
5818
|
),
|
|
5784
5819
|
/* @__PURE__ */ e(P, { children: "X" }),
|
|
5785
5820
|
/* @__PURE__ */ e(
|
|
5786
|
-
|
|
5821
|
+
ve,
|
|
5787
5822
|
{
|
|
5788
5823
|
className: `h-9 w-full ${dt}`,
|
|
5789
5824
|
type: "number",
|
|
@@ -5806,7 +5841,7 @@ function yc() {
|
|
|
5806
5841
|
),
|
|
5807
5842
|
/* @__PURE__ */ e(P, { children: "Y" }),
|
|
5808
5843
|
/* @__PURE__ */ e(
|
|
5809
|
-
|
|
5844
|
+
ve,
|
|
5810
5845
|
{
|
|
5811
5846
|
className: `h-9 w-full ${dt}`,
|
|
5812
5847
|
type: "number",
|
|
@@ -5975,7 +6010,7 @@ function Cc() {
|
|
|
5975
6010
|
/* @__PURE__ */ e(me, { children: "Settings" }),
|
|
5976
6011
|
/* @__PURE__ */ a(he, { className: "space-y-4 px-2", children: [
|
|
5977
6012
|
s(),
|
|
5978
|
-
/* @__PURE__ */ e(
|
|
6013
|
+
/* @__PURE__ */ e(wl, {})
|
|
5979
6014
|
] })
|
|
5980
6015
|
] }),
|
|
5981
6016
|
/* @__PURE__ */ a(ue, { value: "item-3", children: [
|
|
@@ -6023,7 +6058,7 @@ function wc({
|
|
|
6023
6058
|
] })
|
|
6024
6059
|
] });
|
|
6025
6060
|
}
|
|
6026
|
-
function
|
|
6061
|
+
function Tl({ color: t, onColorChange: n, onClose: s }) {
|
|
6027
6062
|
const [l, i] = $(0), [d, o] = $(100), [c, r] = $(50), [u, h] = $(t);
|
|
6028
6063
|
fe(() => {
|
|
6029
6064
|
const y = hs(t);
|
|
@@ -6113,7 +6148,7 @@ function kl({ color: t, onColorChange: n, onClose: s }) {
|
|
|
6113
6148
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
6114
6149
|
/* @__PURE__ */ e(P, { children: "HEX" }),
|
|
6115
6150
|
/* @__PURE__ */ e(
|
|
6116
|
-
|
|
6151
|
+
ve,
|
|
6117
6152
|
{
|
|
6118
6153
|
value: u,
|
|
6119
6154
|
onChange: (y) => m(y.target.value),
|
|
@@ -6233,7 +6268,7 @@ const Ac = [
|
|
|
6233
6268
|
"#fbbf24"
|
|
6234
6269
|
// yellow-400
|
|
6235
6270
|
];
|
|
6236
|
-
function
|
|
6271
|
+
function El() {
|
|
6237
6272
|
var L, V, E, C, f, b, S, O, N, v;
|
|
6238
6273
|
const t = I((M) => M.card), n = I((M) => {
|
|
6239
6274
|
var R;
|
|
@@ -6285,7 +6320,7 @@ function Al() {
|
|
|
6285
6320
|
(V = t == null ? void 0 : t.config) == null ? void 0 : V.pivotByColumns,
|
|
6286
6321
|
(E = t == null ? void 0 : t.config) == null ? void 0 : E.metricColumns,
|
|
6287
6322
|
t == null ? void 0 : t.type
|
|
6288
|
-
]), x = Ce(() =>
|
|
6323
|
+
]), x = Ce(() => Gr(), []);
|
|
6289
6324
|
fe(() => {
|
|
6290
6325
|
const M = {};
|
|
6291
6326
|
p.forEach((R, T) => {
|
|
@@ -6354,7 +6389,7 @@ function Al() {
|
|
|
6354
6389
|
}, D = Object.keys(((v = n == null ? void 0 : n.colorConfig) == null ? void 0 : v.segments) || {}).length > 0;
|
|
6355
6390
|
return /* @__PURE__ */ a(ue, { value: "colors", className: "border-b-0", children: [
|
|
6356
6391
|
/* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6357
|
-
/* @__PURE__ */ e(
|
|
6392
|
+
/* @__PURE__ */ e(wo, { className: "h-4 w-4 text-muted-foreground" }),
|
|
6358
6393
|
/* @__PURE__ */ e("span", { children: "Colors" })
|
|
6359
6394
|
] }) }),
|
|
6360
6395
|
/* @__PURE__ */ e(he, { className: "", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -6370,7 +6405,7 @@ function Al() {
|
|
|
6370
6405
|
}
|
|
6371
6406
|
) }) }),
|
|
6372
6407
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: p.map((M, R) => {
|
|
6373
|
-
const T =
|
|
6408
|
+
const T = Ur(d[M], R), F = !T;
|
|
6374
6409
|
return /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6375
6410
|
/* @__PURE__ */ a(
|
|
6376
6411
|
Ue,
|
|
@@ -6470,7 +6505,7 @@ function Al() {
|
|
|
6470
6505
|
}
|
|
6471
6506
|
),
|
|
6472
6507
|
/* @__PURE__ */ e("div", { className: "relative rounded-lg bg-white shadow-lg", children: /* @__PURE__ */ e(
|
|
6473
|
-
|
|
6508
|
+
Tl,
|
|
6474
6509
|
{
|
|
6475
6510
|
color: u.color,
|
|
6476
6511
|
onColorChange: (M) => {
|
|
@@ -6654,7 +6689,7 @@ function $n({
|
|
|
6654
6689
|
["number", "currency", "percent"].includes(i) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6655
6690
|
/* @__PURE__ */ e(P, { className: "w-20 text-xs text-muted-foreground", children: "Decimals" }),
|
|
6656
6691
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
6657
|
-
|
|
6692
|
+
ve,
|
|
6658
6693
|
{
|
|
6659
6694
|
type: "number",
|
|
6660
6695
|
min: "0",
|
|
@@ -6726,7 +6761,7 @@ function $n({
|
|
|
6726
6761
|
i === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6727
6762
|
/* @__PURE__ */ e(P, { className: "w-20 text-xs text-muted-foreground", children: "Prefix" }),
|
|
6728
6763
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
6729
|
-
|
|
6764
|
+
ve,
|
|
6730
6765
|
{
|
|
6731
6766
|
placeholder: "e.g., $",
|
|
6732
6767
|
value: t.prefix || "",
|
|
@@ -6738,7 +6773,7 @@ function $n({
|
|
|
6738
6773
|
i === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6739
6774
|
/* @__PURE__ */ e(P, { className: "w-20 text-xs text-muted-foreground", children: "Suffix" }),
|
|
6740
6775
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
6741
|
-
|
|
6776
|
+
ve,
|
|
6742
6777
|
{
|
|
6743
6778
|
placeholder: "e.g., units",
|
|
6744
6779
|
value: t.suffix || "",
|
|
@@ -6760,7 +6795,7 @@ function $n({
|
|
|
6760
6795
|
i === "percent" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6761
6796
|
/* @__PURE__ */ e(P, { className: "w-20 text-xs text-muted-foreground", children: "Multiply By" }),
|
|
6762
6797
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
6763
|
-
|
|
6798
|
+
ve,
|
|
6764
6799
|
{
|
|
6765
6800
|
type: "number",
|
|
6766
6801
|
placeholder: "100",
|
|
@@ -6776,7 +6811,7 @@ function $n({
|
|
|
6776
6811
|
i === "date" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6777
6812
|
/* @__PURE__ */ e(P, { className: "w-20 text-xs text-muted-foreground", children: "Format" }),
|
|
6778
6813
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
6779
|
-
|
|
6814
|
+
ve,
|
|
6780
6815
|
{
|
|
6781
6816
|
type: "text",
|
|
6782
6817
|
placeholder: "MM/DD/YYYY",
|
|
@@ -6959,14 +6994,14 @@ function fs({ axis: t, label: n, type: s, config: l, onChange: i }) {
|
|
|
6959
6994
|
] })
|
|
6960
6995
|
] });
|
|
6961
6996
|
}
|
|
6962
|
-
function
|
|
6997
|
+
function Dl() {
|
|
6963
6998
|
const t = I((o) => o.card), n = I((o) => {
|
|
6964
6999
|
var c;
|
|
6965
7000
|
return (c = o.card) == null ? void 0 : c.preferences;
|
|
6966
7001
|
}), { setCardPreferences: s, updateCardInFrame: l } = ne();
|
|
6967
7002
|
if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(t.type))
|
|
6968
7003
|
return null;
|
|
6969
|
-
const i =
|
|
7004
|
+
const i = _r.getAxisInfo(t.type, n);
|
|
6970
7005
|
if (!i.hasXAxis && !i.hasYAxis)
|
|
6971
7006
|
return null;
|
|
6972
7007
|
const d = (o, c) => {
|
|
@@ -6983,7 +7018,7 @@ function Tl() {
|
|
|
6983
7018
|
};
|
|
6984
7019
|
return /* @__PURE__ */ a(ue, { value: "axes", className: "border-b-0", children: [
|
|
6985
7020
|
/* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6986
|
-
/* @__PURE__ */ e(
|
|
7021
|
+
/* @__PURE__ */ e(pl, { className: "h-4 w-4 text-muted-foreground" }),
|
|
6987
7022
|
/* @__PURE__ */ e("span", { children: "Axes" })
|
|
6988
7023
|
] }) }),
|
|
6989
7024
|
/* @__PURE__ */ e(he, { className: "pt-2", children: /* @__PURE__ */ a(He, { type: "single", collapsible: !0, className: "w-full", children: [
|
|
@@ -7016,16 +7051,16 @@ function Tl() {
|
|
|
7016
7051
|
] }) })
|
|
7017
7052
|
] });
|
|
7018
7053
|
}
|
|
7019
|
-
function
|
|
7054
|
+
function Ml() {
|
|
7020
7055
|
const t = I((h) => h.card), n = I(
|
|
7021
7056
|
(h) => {
|
|
7022
7057
|
var p, x, A, m;
|
|
7023
7058
|
return (m = (A = (x = (p = h.card) == null ? void 0 : p.preferences) == null ? void 0 : x.chartOptions) == null ? void 0 : A.plugins) == null ? void 0 : m.legend;
|
|
7024
7059
|
}
|
|
7025
7060
|
), { setLegendOptions: s } = ne();
|
|
7026
|
-
if (!t || !
|
|
7061
|
+
if (!t || !Jr(t.type))
|
|
7027
7062
|
return null;
|
|
7028
|
-
const l =
|
|
7063
|
+
const l = Hr(t.type), i = (l == null ? void 0 : l.display) ?? !0, d = (l == null ? void 0 : l.position) ?? "top", o = (l == null ? void 0 : l.align) ?? "center", c = (h, p) => {
|
|
7029
7064
|
const x = {
|
|
7030
7065
|
...n,
|
|
7031
7066
|
[h]: p
|
|
@@ -7034,7 +7069,7 @@ function El() {
|
|
|
7034
7069
|
}, r = ["top", "bottom", "left", "right"], u = ["start", "center", "end"];
|
|
7035
7070
|
return /* @__PURE__ */ a(ue, { value: "legend", className: "border-b-0", children: [
|
|
7036
7071
|
/* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7037
|
-
/* @__PURE__ */ e(
|
|
7072
|
+
/* @__PURE__ */ e(go, { className: "h-4 w-4 text-muted-foreground" }),
|
|
7038
7073
|
/* @__PURE__ */ e("span", { children: "Legend" })
|
|
7039
7074
|
] }) }),
|
|
7040
7075
|
/* @__PURE__ */ e(he, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -7081,7 +7116,7 @@ function El() {
|
|
|
7081
7116
|
] }) })
|
|
7082
7117
|
] });
|
|
7083
7118
|
}
|
|
7084
|
-
function
|
|
7119
|
+
function Il() {
|
|
7085
7120
|
var T, F, k, B, _, te, J, H, j, G, ae;
|
|
7086
7121
|
const t = I((z) => z.card), n = I(
|
|
7087
7122
|
(z) => {
|
|
@@ -7092,9 +7127,9 @@ function Dl() {
|
|
|
7092
7127
|
var oe;
|
|
7093
7128
|
return (oe = z.card) == null ? void 0 : oe.preferences;
|
|
7094
7129
|
}), { setCardPreferences: l, updateCardInFrame: i } = ne();
|
|
7095
|
-
if (!t || !
|
|
7130
|
+
if (!t || !Qr(t.type))
|
|
7096
7131
|
return null;
|
|
7097
|
-
const d = t.type === "bullet" ? ((T = s == null ? void 0 : s.bulletConfig) == null ? void 0 : T.orientation) ?? (((F = s == null ? void 0 : s.chartOptions) == null ? void 0 : F.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, o = d != null ? d === "horizontal" : ((k = s == null ? void 0 : s.chartOptions) == null ? void 0 : k.indexAxis) === "y", c = t.type === "stackedBar" || t.type === "stackedLine", r = t.type === "pie" || t.type === "doughnut" || t.type === "polarArea" || t.type === "funnel", u = !r, h = t.type === "bubble" || t.type === "scatter", p = (_ = (B = s == null ? void 0 : s.chartOptions) == null ? void 0 : B.plugins) == null ? void 0 : _.datalabels, x = (p == null ? void 0 : p.display) !== !1 && ((p == null ? void 0 : p.anchor) || (p == null ? void 0 : p.align)), A =
|
|
7132
|
+
const d = t.type === "bullet" ? ((T = s == null ? void 0 : s.bulletConfig) == null ? void 0 : T.orientation) ?? (((F = s == null ? void 0 : s.chartOptions) == null ? void 0 : F.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, o = d != null ? d === "horizontal" : ((k = s == null ? void 0 : s.chartOptions) == null ? void 0 : k.indexAxis) === "y", c = t.type === "stackedBar" || t.type === "stackedLine", r = t.type === "pie" || t.type === "doughnut" || t.type === "polarArea" || t.type === "funnel", u = !r, h = t.type === "bubble" || t.type === "scatter", p = (_ = (B = s == null ? void 0 : s.chartOptions) == null ? void 0 : B.plugins) == null ? void 0 : _.datalabels, x = (p == null ? void 0 : p.display) !== !1 && ((p == null ? void 0 : p.anchor) || (p == null ? void 0 : p.align)), A = Yr(
|
|
7098
7133
|
t.type,
|
|
7099
7134
|
t.preferences
|
|
7100
7135
|
), m = n ?? A, g = (A == null ? void 0 : A.enabled) ?? x ?? !1, y = (n == null ? void 0 : n.enabled) !== void 0 ? n.enabled : g, w = (z, oe) => {
|
|
@@ -7185,7 +7220,7 @@ function Dl() {
|
|
|
7185
7220
|
];
|
|
7186
7221
|
return /* @__PURE__ */ a(ue, { value: "data-labels", className: "border-b-0", children: [
|
|
7187
7222
|
/* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7188
|
-
/* @__PURE__ */ e(
|
|
7223
|
+
/* @__PURE__ */ e(Do, { className: "h-4 w-4 text-muted-foreground" }),
|
|
7189
7224
|
/* @__PURE__ */ e("span", { children: "Data Labels" })
|
|
7190
7225
|
] }) }),
|
|
7191
7226
|
/* @__PURE__ */ e(he, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -7397,48 +7432,13 @@ function Dl() {
|
|
|
7397
7432
|
] }) })
|
|
7398
7433
|
] });
|
|
7399
7434
|
}
|
|
7400
|
-
function ze({
|
|
7401
|
-
value: t,
|
|
7402
|
-
onCommit: n,
|
|
7403
|
-
type: s = "text",
|
|
7404
|
-
placeholder: l,
|
|
7405
|
-
className: i
|
|
7406
|
-
}) {
|
|
7407
|
-
const [d, o] = $(t), c = Qe(!1);
|
|
7408
|
-
return fe(() => {
|
|
7409
|
-
o(t);
|
|
7410
|
-
}, [t]), /* @__PURE__ */ e(
|
|
7411
|
-
be,
|
|
7412
|
-
{
|
|
7413
|
-
type: s,
|
|
7414
|
-
placeholder: l,
|
|
7415
|
-
value: d,
|
|
7416
|
-
onChange: (h) => o(h.target.value),
|
|
7417
|
-
onBlur: () => {
|
|
7418
|
-
if (c.current) {
|
|
7419
|
-
c.current = !1;
|
|
7420
|
-
return;
|
|
7421
|
-
}
|
|
7422
|
-
d !== t && n(d);
|
|
7423
|
-
},
|
|
7424
|
-
onKeyDown: (h) => {
|
|
7425
|
-
if (h.key === "Enter") {
|
|
7426
|
-
h.currentTarget.blur();
|
|
7427
|
-
return;
|
|
7428
|
-
}
|
|
7429
|
-
h.key === "Escape" && (c.current = !0, o(t), h.currentTarget.blur());
|
|
7430
|
-
},
|
|
7431
|
-
className: i
|
|
7432
|
-
}
|
|
7433
|
-
);
|
|
7434
|
-
}
|
|
7435
7435
|
const gs = ["poor", "satisfactory", "good"];
|
|
7436
7436
|
function xs(t) {
|
|
7437
7437
|
if (!t) return;
|
|
7438
7438
|
const n = { ...t };
|
|
7439
7439
|
return n.targetMetricKey || delete n.targetMetricKey, n.comparativeMetricKey || delete n.comparativeMetricKey, !n.targetValue && n.targetValue !== 0 && delete n.targetValue, (!n.rangeKeys || Object.keys(n.rangeKeys).length === 0) && delete n.rangeKeys, (!n.ranges || Object.keys(n.ranges).length === 0) && delete n.ranges, (!n.rangeLabels || Object.keys(n.rangeLabels).length === 0) && delete n.rangeLabels, n;
|
|
7440
7440
|
}
|
|
7441
|
-
function
|
|
7441
|
+
function Ol() {
|
|
7442
7442
|
var M, R;
|
|
7443
7443
|
const t = I((T) => T.card.preferences), n = I((T) => T.card), s = I((T) => T.isDevMode), { setCardPreferences: l, setChartOrientation: i } = ne(), d = Ce(
|
|
7444
7444
|
() => (t == null ? void 0 : t.bulletConfig) || {},
|
|
@@ -7668,7 +7668,7 @@ function Ml() {
|
|
|
7668
7668
|
/* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
|
|
7669
7669
|
/* @__PURE__ */ e(P, { className: "text-xs font-medium", children: "TARGET VALUE (FALLBACK)" }),
|
|
7670
7670
|
/* @__PURE__ */ e(
|
|
7671
|
-
|
|
7671
|
+
Ve,
|
|
7672
7672
|
{
|
|
7673
7673
|
type: "number",
|
|
7674
7674
|
className: "h-8 text-xs",
|
|
@@ -7731,7 +7731,7 @@ function Ml() {
|
|
|
7731
7731
|
" LABEL"
|
|
7732
7732
|
] }),
|
|
7733
7733
|
/* @__PURE__ */ e(
|
|
7734
|
-
|
|
7734
|
+
Ve,
|
|
7735
7735
|
{
|
|
7736
7736
|
placeholder: `Display label (${T})`,
|
|
7737
7737
|
value: ((F = d.rangeLabels) == null ? void 0 : F[T]) || "",
|
|
@@ -7772,7 +7772,7 @@ function Ml() {
|
|
|
7772
7772
|
" COLUMN KEY"
|
|
7773
7773
|
] }),
|
|
7774
7774
|
/* @__PURE__ */ e(
|
|
7775
|
-
|
|
7775
|
+
Ve,
|
|
7776
7776
|
{
|
|
7777
7777
|
placeholder: "Column key",
|
|
7778
7778
|
value: ((B = d.rangeKeys) == null ? void 0 : B[T]) || "",
|
|
@@ -7787,7 +7787,7 @@ function Ml() {
|
|
|
7787
7787
|
" VALUE"
|
|
7788
7788
|
] }),
|
|
7789
7789
|
/* @__PURE__ */ e(
|
|
7790
|
-
|
|
7790
|
+
Ve,
|
|
7791
7791
|
{
|
|
7792
7792
|
type: "number",
|
|
7793
7793
|
placeholder: h ? "0.80" : "Static value",
|
|
@@ -7889,7 +7889,7 @@ function la({
|
|
|
7889
7889
|
}
|
|
7890
7890
|
),
|
|
7891
7891
|
/* @__PURE__ */ e("div", { className: "relative rounded-lg bg-white shadow-lg", children: /* @__PURE__ */ e(
|
|
7892
|
-
|
|
7892
|
+
Tl,
|
|
7893
7893
|
{
|
|
7894
7894
|
color: c(),
|
|
7895
7895
|
onColorChange: (r) => {
|
|
@@ -7902,7 +7902,7 @@ function la({
|
|
|
7902
7902
|
] });
|
|
7903
7903
|
}
|
|
7904
7904
|
const Oc = Object.keys(el);
|
|
7905
|
-
function
|
|
7905
|
+
function Fl() {
|
|
7906
7906
|
const t = I((x) => x.card), n = I((x) => {
|
|
7907
7907
|
var A;
|
|
7908
7908
|
return (A = x.card) == null ? void 0 : A.preferences;
|
|
@@ -8026,7 +8026,7 @@ function vs(t) {
|
|
|
8026
8026
|
if (n.xMetricKey || delete n.xMetricKey, n.yMetricKey || delete n.yMetricKey, n.radiusMetricKey || delete n.radiusMetricKey, n.labelKey || delete n.labelKey, n.groupKey || delete n.groupKey, n.enableGrouping === void 0 && delete n.enableGrouping, n.radiusScale || delete n.radiusScale, n.fixedRadius === void 0 && delete n.fixedRadius, n.minRadius === void 0 && delete n.minRadius, n.maxRadius === void 0 && delete n.maxRadius, Object.keys(n).length !== 0)
|
|
8027
8027
|
return n;
|
|
8028
8028
|
}
|
|
8029
|
-
function
|
|
8029
|
+
function Rl() {
|
|
8030
8030
|
var E, C, f, b, S, O, N, v, M, R, T, F;
|
|
8031
8031
|
const t = I((k) => k.card.preferences), n = I((k) => k.card), s = I((k) => k.card.type), l = I((k) => k.isDevMode), { setCardPreferences: i, updateCardInFrame: d } = ne(), o = s === "bubble", c = s === "scatter", r = Ce(
|
|
8032
8032
|
() => (t == null ? void 0 : t.bubbleScatterConfig) || {},
|
|
@@ -8096,7 +8096,7 @@ function Ol() {
|
|
|
8096
8096
|
};
|
|
8097
8097
|
return !o && !c ? null : /* @__PURE__ */ a(ue, { value: "bubble-scatter-config", children: [
|
|
8098
8098
|
/* @__PURE__ */ e(me, { className: "py-2 text-sm", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
8099
|
-
/* @__PURE__ */ e(o ?
|
|
8099
|
+
/* @__PURE__ */ e(o ? Wr : Tn, { className: "h-4 w-4" }),
|
|
8100
8100
|
/* @__PURE__ */ a("span", { children: [
|
|
8101
8101
|
o ? "Bubble" : "Scatter",
|
|
8102
8102
|
" Configuration"
|
|
@@ -8124,7 +8124,7 @@ function Ol() {
|
|
|
8124
8124
|
]
|
|
8125
8125
|
}
|
|
8126
8126
|
) : /* @__PURE__ */ e(
|
|
8127
|
-
|
|
8127
|
+
Ve,
|
|
8128
8128
|
{
|
|
8129
8129
|
className: "h-8 text-xs",
|
|
8130
8130
|
placeholder: "Column name for labels",
|
|
@@ -8156,7 +8156,7 @@ function Ol() {
|
|
|
8156
8156
|
]
|
|
8157
8157
|
}
|
|
8158
8158
|
) : /* @__PURE__ */ e(
|
|
8159
|
-
|
|
8159
|
+
Ve,
|
|
8160
8160
|
{
|
|
8161
8161
|
className: "h-8 text-xs",
|
|
8162
8162
|
placeholder: "Column name for grouping",
|
|
@@ -8181,7 +8181,7 @@ function Ol() {
|
|
|
8181
8181
|
]
|
|
8182
8182
|
}
|
|
8183
8183
|
) : /* @__PURE__ */ e(
|
|
8184
|
-
|
|
8184
|
+
Ve,
|
|
8185
8185
|
{
|
|
8186
8186
|
className: "h-8 text-xs",
|
|
8187
8187
|
placeholder: "Column name for X axis",
|
|
@@ -8203,7 +8203,7 @@ function Ol() {
|
|
|
8203
8203
|
]
|
|
8204
8204
|
}
|
|
8205
8205
|
) : /* @__PURE__ */ e(
|
|
8206
|
-
|
|
8206
|
+
Ve,
|
|
8207
8207
|
{
|
|
8208
8208
|
className: "h-8 text-xs",
|
|
8209
8209
|
placeholder: "Column name for Y axis",
|
|
@@ -8225,7 +8225,7 @@ function Ol() {
|
|
|
8225
8225
|
]
|
|
8226
8226
|
}
|
|
8227
8227
|
) : /* @__PURE__ */ e(
|
|
8228
|
-
|
|
8228
|
+
Ve,
|
|
8229
8229
|
{
|
|
8230
8230
|
className: "h-8 text-xs",
|
|
8231
8231
|
placeholder: "Column name for radius",
|
|
@@ -8259,7 +8259,7 @@ function Ol() {
|
|
|
8259
8259
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
8260
8260
|
/* @__PURE__ */ e(P, { className: "text-xs", children: "Min Radius" }),
|
|
8261
8261
|
/* @__PURE__ */ e(
|
|
8262
|
-
|
|
8262
|
+
Ve,
|
|
8263
8263
|
{
|
|
8264
8264
|
className: "h-8 text-xs",
|
|
8265
8265
|
type: "number",
|
|
@@ -8272,7 +8272,7 @@ function Ol() {
|
|
|
8272
8272
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
8273
8273
|
/* @__PURE__ */ e(P, { className: "text-xs", children: "Max Radius" }),
|
|
8274
8274
|
/* @__PURE__ */ e(
|
|
8275
|
-
|
|
8275
|
+
Ve,
|
|
8276
8276
|
{
|
|
8277
8277
|
className: "h-8 text-xs",
|
|
8278
8278
|
type: "number",
|
|
@@ -8356,7 +8356,7 @@ function Ol() {
|
|
|
8356
8356
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
8357
8357
|
/* @__PURE__ */ e(P, { className: "text-xs", children: "X Title" }),
|
|
8358
8358
|
/* @__PURE__ */ e(
|
|
8359
|
-
|
|
8359
|
+
Ve,
|
|
8360
8360
|
{
|
|
8361
8361
|
className: "h-8 text-xs",
|
|
8362
8362
|
placeholder: r.xMetricKey || "X Axis",
|
|
@@ -8381,7 +8381,7 @@ function Ol() {
|
|
|
8381
8381
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
8382
8382
|
/* @__PURE__ */ e(P, { className: "text-xs", children: "Y Title" }),
|
|
8383
8383
|
/* @__PURE__ */ e(
|
|
8384
|
-
|
|
8384
|
+
Ve,
|
|
8385
8385
|
{
|
|
8386
8386
|
className: "h-8 text-xs",
|
|
8387
8387
|
placeholder: r.yMetricKey || "Y Axis",
|
|
@@ -8420,7 +8420,7 @@ const Fc = [
|
|
|
8420
8420
|
description: "First stage = 100%, others relative to first stage"
|
|
8421
8421
|
}
|
|
8422
8422
|
];
|
|
8423
|
-
function
|
|
8423
|
+
function Ll() {
|
|
8424
8424
|
const t = I((r) => r.card), n = I((r) => {
|
|
8425
8425
|
var u;
|
|
8426
8426
|
return (u = r.card) == null ? void 0 : u.preferences;
|
|
@@ -8487,14 +8487,14 @@ function Rc() {
|
|
|
8487
8487
|
return /* @__PURE__ */ a("div", { className: "space-y-4 px-6 py-4", children: [
|
|
8488
8488
|
/* @__PURE__ */ e("h3", { className: "text-sm font-medium", children: "Chart Configuration" }),
|
|
8489
8489
|
/* @__PURE__ */ a(He, { type: "single", collapsible: !0, className: "w-full px-2", children: [
|
|
8490
|
-
(t == null ? void 0 : t.type) === "funnel" && /* @__PURE__ */ e(
|
|
8491
|
-
(t == null ? void 0 : t.type) === "heatmap" && /* @__PURE__ */ e(
|
|
8492
|
-
(t == null ? void 0 : t.type) === "bullet" && /* @__PURE__ */ e(
|
|
8493
|
-
((t == null ? void 0 : t.type) === "bubble" || (t == null ? void 0 : t.type) === "scatter") && /* @__PURE__ */ e(
|
|
8494
|
-
/* @__PURE__ */ e(Al, {}),
|
|
8495
|
-
/* @__PURE__ */ e(Tl, {}),
|
|
8490
|
+
(t == null ? void 0 : t.type) === "funnel" && /* @__PURE__ */ e(Ll, {}),
|
|
8491
|
+
(t == null ? void 0 : t.type) === "heatmap" && /* @__PURE__ */ e(Fl, {}),
|
|
8492
|
+
(t == null ? void 0 : t.type) === "bullet" && /* @__PURE__ */ e(Ol, {}),
|
|
8493
|
+
((t == null ? void 0 : t.type) === "bubble" || (t == null ? void 0 : t.type) === "scatter") && /* @__PURE__ */ e(Rl, {}),
|
|
8496
8494
|
/* @__PURE__ */ e(El, {}),
|
|
8497
|
-
/* @__PURE__ */ e(Dl, {})
|
|
8495
|
+
/* @__PURE__ */ e(Dl, {}),
|
|
8496
|
+
/* @__PURE__ */ e(Ml, {}),
|
|
8497
|
+
/* @__PURE__ */ e(Il, {})
|
|
8498
8498
|
] })
|
|
8499
8499
|
] });
|
|
8500
8500
|
}
|
|
@@ -8609,7 +8609,7 @@ function Bc() {
|
|
|
8609
8609
|
case "map":
|
|
8610
8610
|
return /* @__PURE__ */ e(yc, {});
|
|
8611
8611
|
case "custom":
|
|
8612
|
-
return /* @__PURE__ */ e(
|
|
8612
|
+
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(Cl, {}) });
|
|
8613
8613
|
default:
|
|
8614
8614
|
return i(/* @__PURE__ */ e(mc, {}));
|
|
8615
8615
|
}
|
|
@@ -8631,18 +8631,18 @@ function zc() {
|
|
|
8631
8631
|
className: "min-h-[250px] min-w-full max-w-lg",
|
|
8632
8632
|
children: [
|
|
8633
8633
|
/* @__PURE__ */ e(
|
|
8634
|
-
|
|
8634
|
+
Be,
|
|
8635
8635
|
{
|
|
8636
8636
|
role: "query-section",
|
|
8637
8637
|
className: "flex",
|
|
8638
8638
|
minSize: 20,
|
|
8639
8639
|
defaultSize: 40,
|
|
8640
|
-
children: /* @__PURE__ */ e(
|
|
8640
|
+
children: /* @__PURE__ */ e(zo, {})
|
|
8641
8641
|
}
|
|
8642
8642
|
),
|
|
8643
8643
|
/* @__PURE__ */ e(Et, { withHandle: !0 }),
|
|
8644
8644
|
/* @__PURE__ */ e(
|
|
8645
|
-
|
|
8645
|
+
Be,
|
|
8646
8646
|
{
|
|
8647
8647
|
className: "pb-1",
|
|
8648
8648
|
role: "visual-section",
|
|
@@ -8650,7 +8650,7 @@ function zc() {
|
|
|
8650
8650
|
defaultSize: 60,
|
|
8651
8651
|
children: s && !l ? /* @__PURE__ */ a(Tt, { direction: "horizontal", children: [
|
|
8652
8652
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
|
|
8653
|
-
|
|
8653
|
+
Be,
|
|
8654
8654
|
{
|
|
8655
8655
|
ref: t,
|
|
8656
8656
|
className: "flex",
|
|
@@ -8660,7 +8660,7 @@ function zc() {
|
|
|
8660
8660
|
}
|
|
8661
8661
|
) }),
|
|
8662
8662
|
!l && /* @__PURE__ */ e(Et, {}),
|
|
8663
|
-
/* @__PURE__ */ e(
|
|
8663
|
+
/* @__PURE__ */ e(Be, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e(ms, {}) })
|
|
8664
8664
|
] }) : /* @__PURE__ */ e(ms, {})
|
|
8665
8665
|
}
|
|
8666
8666
|
)
|
|
@@ -8697,7 +8697,7 @@ function jc(t) {
|
|
|
8697
8697
|
errorMessage: b,
|
|
8698
8698
|
refetch: S,
|
|
8699
8699
|
data: O
|
|
8700
|
-
} = Ie(D), { setTriggerAIRun: N, setCurrentAssitantScope: v, setCardConfig: M } = ne(), { selectedDatamodelName: R, connectionType: T, selectedDatamodelId: F } = Zs(), k = (Oe =
|
|
8700
|
+
} = Ie(D), { setTriggerAIRun: N, setCurrentAssitantScope: v, setCardConfig: M } = ne(), { selectedDatamodelName: R, connectionType: T, selectedDatamodelId: F } = Zs(), k = (Oe = Xr().data) == null ? void 0 : Oe.assistantProfileId, {
|
|
8701
8701
|
messages: B,
|
|
8702
8702
|
setMessages: _,
|
|
8703
8703
|
regenerate: te,
|
|
@@ -8707,8 +8707,8 @@ function jc(t) {
|
|
|
8707
8707
|
addToolResult: G,
|
|
8708
8708
|
stop: ae,
|
|
8709
8709
|
clearError: z
|
|
8710
|
-
} =
|
|
8711
|
-
transport: new
|
|
8710
|
+
} = Zr({
|
|
8711
|
+
transport: new ei({
|
|
8712
8712
|
api: `${o.apiServiceUrl}/v1/assistant`,
|
|
8713
8713
|
headers: () => ({
|
|
8714
8714
|
Authorization: `Bearer ${d == null ? void 0 : d.accessToken}`
|
|
@@ -8731,7 +8731,7 @@ function jc(t) {
|
|
|
8731
8731
|
prepareSendMessagesRequest: ({ messages: U, body: xe }) => ({
|
|
8732
8732
|
body: {
|
|
8733
8733
|
...xe,
|
|
8734
|
-
messages:
|
|
8734
|
+
messages: ti(U)
|
|
8735
8735
|
}
|
|
8736
8736
|
})
|
|
8737
8737
|
}),
|
|
@@ -8830,11 +8830,11 @@ function jc(t) {
|
|
|
8830
8830
|
s("Analyzing...");
|
|
8831
8831
|
}
|
|
8832
8832
|
function ie(U) {
|
|
8833
|
-
const xe =
|
|
8833
|
+
const xe = ni(g, U);
|
|
8834
8834
|
ge(xe);
|
|
8835
8835
|
}
|
|
8836
8836
|
function ge(U) {
|
|
8837
|
-
const xe =
|
|
8837
|
+
const xe = li(U);
|
|
8838
8838
|
v(xe), _((Ke) => [
|
|
8839
8839
|
...Ke,
|
|
8840
8840
|
{
|
|
@@ -8873,7 +8873,7 @@ function jc(t) {
|
|
|
8873
8873
|
connectionType: T || "",
|
|
8874
8874
|
datamodelId: F || ""
|
|
8875
8875
|
};
|
|
8876
|
-
if (!
|
|
8876
|
+
if (!si(
|
|
8877
8877
|
[...f || [], ...g],
|
|
8878
8878
|
U
|
|
8879
8879
|
) || g.length === 0) {
|
|
@@ -8887,7 +8887,7 @@ function jc(t) {
|
|
|
8887
8887
|
ge(Ke);
|
|
8888
8888
|
}
|
|
8889
8889
|
}
|
|
8890
|
-
const De = !["ready", "error"].includes(j), de =
|
|
8890
|
+
const De = !["ready", "error"].includes(j), de = ai(J);
|
|
8891
8891
|
return {
|
|
8892
8892
|
messages: B,
|
|
8893
8893
|
setMessages: _,
|
|
@@ -8923,9 +8923,9 @@ function ys({
|
|
|
8923
8923
|
onFullscreenChange: n,
|
|
8924
8924
|
fullscreenContainer: s
|
|
8925
8925
|
}) {
|
|
8926
|
-
const l = Qe(null), [i, d] = $(!1), [o, c] = $(tl), [r, u] = $(!1), [h, p] = $(!1), [x, A] = $(!1), m = t ?? x, g =
|
|
8926
|
+
const l = Qe(null), [i, d] = $(!1), [o, c] = $(tl), [r, u] = $(!1), [h, p] = $(!1), [x, A] = $(!1), m = t ?? x, g = ri(), { setCurrentAIContext: y } = al(), { clearQueue: w } = ii(), { clearFileAttachments: D } = oi(), L = ci("editor"), V = Ne((le) => le.dashboard.aiContext), E = I((le) => le.card.dataSource), C = I((le) => le.actions.setCardSql), f = I((le) => le.actions.setRunSql), b = I((le) => le.showAIDialog), S = Ne(
|
|
8927
8927
|
(le) => le.handleOpenAssistantProfile
|
|
8928
|
-
), { setShowAIDialog: O, setCardPython: N } = ne(), { setDataSource: v } = ne(), { assistantProfile: M } =
|
|
8928
|
+
), { setShowAIDialog: O, setCardPython: N } = ne(), { setDataSource: v } = ne(), { assistantProfile: M } = di(), {
|
|
8929
8929
|
messages: R,
|
|
8930
8930
|
setMessages: T,
|
|
8931
8931
|
sendMessage: F,
|
|
@@ -8957,7 +8957,7 @@ function ys({
|
|
|
8957
8957
|
totalMessageCount: ge,
|
|
8958
8958
|
loadMoreMessages: se,
|
|
8959
8959
|
resetMessageWindow: we
|
|
8960
|
-
} =
|
|
8960
|
+
} = ui(R, {
|
|
8961
8961
|
maxVisibleMessages: 15,
|
|
8962
8962
|
// Reduced from 50 to 15 for better performance
|
|
8963
8963
|
initialLoadCount: 10,
|
|
@@ -8972,7 +8972,7 @@ function ys({
|
|
|
8972
8972
|
scrollToBottom: xe,
|
|
8973
8973
|
handleScroll: Ke,
|
|
8974
8974
|
resetNewMessageCount: Ze
|
|
8975
|
-
} =
|
|
8975
|
+
} = mi(oe, {
|
|
8976
8976
|
threshold: 50,
|
|
8977
8977
|
behavior: "smooth",
|
|
8978
8978
|
isStreaming: k
|
|
@@ -8984,13 +8984,13 @@ function ys({
|
|
|
8984
8984
|
b && ((le = l.current) == null || le.focus(), y({
|
|
8985
8985
|
selectedEntities: (E == null ? void 0 : E.selectedEntities) || []
|
|
8986
8986
|
}));
|
|
8987
|
-
}, [b, E, y]),
|
|
8987
|
+
}, [b, E, y]), hi({
|
|
8988
8988
|
assistantType: "editor",
|
|
8989
8989
|
status: _,
|
|
8990
8990
|
isLoading: k,
|
|
8991
8991
|
sendMessage: F
|
|
8992
8992
|
});
|
|
8993
|
-
const { hasActiveTools: Vt } =
|
|
8993
|
+
const { hasActiveTools: Vt } = pi(R), et = $e(
|
|
8994
8994
|
(le) => {
|
|
8995
8995
|
n == null || n(le), t === void 0 && A(le);
|
|
8996
8996
|
},
|
|
@@ -9057,7 +9057,7 @@ function ys({
|
|
|
9057
9057
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
9058
9058
|
size: "sm",
|
|
9059
9059
|
variant: "ghost",
|
|
9060
|
-
children: /* @__PURE__ */ e(
|
|
9060
|
+
children: /* @__PURE__ */ e(Si, { className: "size-3.5" })
|
|
9061
9061
|
}
|
|
9062
9062
|
) }),
|
|
9063
9063
|
/* @__PURE__ */ a(In, { align: "end", children: [
|
|
@@ -9137,7 +9137,7 @@ function ys({
|
|
|
9137
9137
|
tooltip: m ? "Exit Fullscreen" : "Expand",
|
|
9138
9138
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
9139
9139
|
onClick: bt,
|
|
9140
|
-
children: m ? /* @__PURE__ */ e(
|
|
9140
|
+
children: m ? /* @__PURE__ */ e(fi, { className: "size-4" }) : /* @__PURE__ */ e(gi, { className: "size-4" })
|
|
9141
9141
|
}
|
|
9142
9142
|
),
|
|
9143
9143
|
/* @__PURE__ */ e(
|
|
@@ -9168,7 +9168,7 @@ function ys({
|
|
|
9168
9168
|
}
|
|
9169
9169
|
),
|
|
9170
9170
|
/* @__PURE__ */ e(
|
|
9171
|
-
|
|
9171
|
+
xi,
|
|
9172
9172
|
{
|
|
9173
9173
|
ref: De,
|
|
9174
9174
|
className: "mt-2 flex w-full grow basis-0",
|
|
@@ -9193,7 +9193,7 @@ function ys({
|
|
|
9193
9193
|
}
|
|
9194
9194
|
) }),
|
|
9195
9195
|
/* @__PURE__ */ e(
|
|
9196
|
-
|
|
9196
|
+
bi,
|
|
9197
9197
|
{
|
|
9198
9198
|
messages: oe,
|
|
9199
9199
|
showTools: o,
|
|
@@ -9203,7 +9203,7 @@ function ys({
|
|
|
9203
9203
|
disableQuickReplies: k
|
|
9204
9204
|
}
|
|
9205
9205
|
),
|
|
9206
|
-
!Vt && /* @__PURE__ */ e(
|
|
9206
|
+
!Vt && /* @__PURE__ */ e(vi, { status: _, errorMessage: J })
|
|
9207
9207
|
] })
|
|
9208
9208
|
}
|
|
9209
9209
|
),
|
|
@@ -9226,23 +9226,23 @@ function ys({
|
|
|
9226
9226
|
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
9227
9227
|
/* @__PURE__ */ a("div", { children: [
|
|
9228
9228
|
vt && !M && /* @__PURE__ */ e(
|
|
9229
|
-
|
|
9229
|
+
yi,
|
|
9230
9230
|
{
|
|
9231
9231
|
onClick: zt,
|
|
9232
9232
|
placeholders: $c
|
|
9233
9233
|
}
|
|
9234
9234
|
),
|
|
9235
9235
|
/* @__PURE__ */ e("div", { children: vt && M && /* @__PURE__ */ e(
|
|
9236
|
-
|
|
9236
|
+
Ni,
|
|
9237
9237
|
{
|
|
9238
9238
|
seedQuestions: M.seedQuestions || [],
|
|
9239
9239
|
handleSeedQuestionClick: jt
|
|
9240
9240
|
}
|
|
9241
9241
|
) })
|
|
9242
9242
|
] }),
|
|
9243
|
-
/* @__PURE__ */ e(
|
|
9243
|
+
/* @__PURE__ */ e(Ci, { assistantType: "editor", className: "mb-3" }),
|
|
9244
9244
|
/* @__PURE__ */ e(
|
|
9245
|
-
|
|
9245
|
+
wi,
|
|
9246
9246
|
{
|
|
9247
9247
|
ref: l,
|
|
9248
9248
|
setInput: G,
|
|
@@ -9283,7 +9283,7 @@ function ys({
|
|
|
9283
9283
|
]
|
|
9284
9284
|
}
|
|
9285
9285
|
);
|
|
9286
|
-
return m && s ?
|
|
9286
|
+
return m && s ? ao(
|
|
9287
9287
|
/* @__PURE__ */ e("div", { className: "pointer-events-auto absolute inset-0 z-50 flex bg-background px-6 pb-6 pt-[calc(var(--app-header-height,15px)+1rem)]", children: /* @__PURE__ */ e("div", { className: "flex h-full w-full", children: yt }) }),
|
|
9288
9288
|
s
|
|
9289
9289
|
) : yt;
|
|
@@ -9341,7 +9341,7 @@ function Gc({
|
|
|
9341
9341
|
const [s, l] = $(!1), { data: i } = Gs();
|
|
9342
9342
|
qc();
|
|
9343
9343
|
const o = ((E = I((C) => C.card).customCardPreferences) == null ? void 0 : E.url) || "";
|
|
9344
|
-
|
|
9344
|
+
no(o);
|
|
9345
9345
|
const { setCardType: c, setCardPreferences: r, setIsDevMode: u } = I(
|
|
9346
9346
|
(C) => C.actions
|
|
9347
9347
|
), { setCardCustomCfg: h, setCustomCardPreferences: p, setQueryConfig: x } = ne(), [A, m] = Ga("chart-section-active", null), g = Ce(() => A ? [
|
|
@@ -9760,7 +9760,7 @@ function Qc(t, n, s, l, i, d, o, c, r) {
|
|
|
9760
9760
|
calculatedFormula: A,
|
|
9761
9761
|
// ← Generated from same inputs
|
|
9762
9762
|
entityId: d,
|
|
9763
|
-
entityName:
|
|
9763
|
+
entityName: ki,
|
|
9764
9764
|
entityType: "table",
|
|
9765
9765
|
description: `Calculated field: ${t}`
|
|
9766
9766
|
};
|
|
@@ -9778,7 +9778,7 @@ function ws(t) {
|
|
|
9778
9778
|
}
|
|
9779
9779
|
return t.inputFields.map((d) => d.label || d.name).join(` ${n.symbol} `);
|
|
9780
9780
|
}
|
|
9781
|
-
const Kn = ({ dataType: t }) =>
|
|
9781
|
+
const Kn = ({ dataType: t }) => Ai(t);
|
|
9782
9782
|
function Yc({
|
|
9783
9783
|
aliasTemplate: t,
|
|
9784
9784
|
onAliasTemplateChange: n
|
|
@@ -9973,12 +9973,12 @@ function Xc({
|
|
|
9973
9973
|
(r) => r === t.label || r === t.name
|
|
9974
9974
|
), d = i ? l.indexOf(i) : -1;
|
|
9975
9975
|
function o() {
|
|
9976
|
-
return /* @__PURE__ */ e("div", { className: "pr-1", children: i && /* @__PURE__ */ e(
|
|
9976
|
+
return /* @__PURE__ */ e("div", { className: "pr-1", children: i && /* @__PURE__ */ e(kl, { idx: d, col: i, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
|
|
9977
9977
|
}
|
|
9978
9978
|
function c() {
|
|
9979
9979
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
9980
9980
|
/* @__PURE__ */ e(P, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
|
|
9981
|
-
/* @__PURE__ */ e(
|
|
9981
|
+
/* @__PURE__ */ e(Al, {})
|
|
9982
9982
|
] });
|
|
9983
9983
|
}
|
|
9984
9984
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
@@ -10031,7 +10031,7 @@ function Zc({
|
|
|
10031
10031
|
connection_id: o.connectionId,
|
|
10032
10032
|
cardConfig: u,
|
|
10033
10033
|
cardDataSource: o,
|
|
10034
|
-
cache_config:
|
|
10034
|
+
cache_config: Ti({ card: d })
|
|
10035
10035
|
};
|
|
10036
10036
|
console.log("requestBody", h);
|
|
10037
10037
|
const p = await rl(
|
|
@@ -10071,7 +10071,7 @@ function Zc({
|
|
|
10071
10071
|
refetch: r.refetch
|
|
10072
10072
|
};
|
|
10073
10073
|
}
|
|
10074
|
-
function
|
|
10074
|
+
function Pl({
|
|
10075
10075
|
open: t,
|
|
10076
10076
|
onOpenChange: n,
|
|
10077
10077
|
availableFields: s,
|
|
@@ -10318,7 +10318,7 @@ function ed({
|
|
|
10318
10318
|
] })
|
|
10319
10319
|
] });
|
|
10320
10320
|
}
|
|
10321
|
-
function
|
|
10321
|
+
function Vl({
|
|
10322
10322
|
open: t,
|
|
10323
10323
|
onOpenChange: n,
|
|
10324
10324
|
availableMetrics: s,
|
|
@@ -10399,7 +10399,7 @@ function Ll({
|
|
|
10399
10399
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
10400
10400
|
/* @__PURE__ */ e(P, { htmlFor: "name", children: "Name" }),
|
|
10401
10401
|
/* @__PURE__ */ e(
|
|
10402
|
-
|
|
10402
|
+
ve,
|
|
10403
10403
|
{
|
|
10404
10404
|
id: "name",
|
|
10405
10405
|
value: o,
|
|
@@ -10436,7 +10436,7 @@ function Ll({
|
|
|
10436
10436
|
r === "custom" ? /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
10437
10437
|
/* @__PURE__ */ e(P, { htmlFor: "customExpression", children: "SQL Expression" }),
|
|
10438
10438
|
/* @__PURE__ */ e(
|
|
10439
|
-
|
|
10439
|
+
Ei,
|
|
10440
10440
|
{
|
|
10441
10441
|
id: "customExpression",
|
|
10442
10442
|
value: y,
|
|
@@ -10507,7 +10507,7 @@ function Ll({
|
|
|
10507
10507
|
r === "scale" && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
10508
10508
|
/* @__PURE__ */ e(P, { htmlFor: "constantFactor", children: "Multiplication Factor" }),
|
|
10509
10509
|
/* @__PURE__ */ e(
|
|
10510
|
-
|
|
10510
|
+
ve,
|
|
10511
10511
|
{
|
|
10512
10512
|
id: "constantFactor",
|
|
10513
10513
|
type: "number",
|
|
@@ -10543,9 +10543,9 @@ function Ll({
|
|
|
10543
10543
|
}
|
|
10544
10544
|
)
|
|
10545
10545
|
] }),
|
|
10546
|
-
(V.inputs || V.circular) && /* @__PURE__ */ a(
|
|
10546
|
+
(V.inputs || V.circular) && /* @__PURE__ */ a(Di, { variant: "destructive", children: [
|
|
10547
10547
|
/* @__PURE__ */ e(Rs, { className: "h-4 w-4" }),
|
|
10548
|
-
/* @__PURE__ */ e(
|
|
10548
|
+
/* @__PURE__ */ e(Mi, { children: V.inputs || V.circular })
|
|
10549
10549
|
] })
|
|
10550
10550
|
] }),
|
|
10551
10551
|
/* @__PURE__ */ a(wa, { children: [
|
|
@@ -10633,7 +10633,7 @@ function td({
|
|
|
10633
10633
|
}, et = {
|
|
10634
10634
|
transform: Ka.Transform.toString(h),
|
|
10635
10635
|
transition: p
|
|
10636
|
-
}, xt = Fe(t.dataType), tt = xt === "date", bt = o === "kpi", Bt = rs(G), it = n !== "pivotBy", zt = tt && n === "groupBy" && (!bt || ((Un = A.config) == null ? void 0 : Un.comparisonType) === "start_vs_end"), jt = !bt && tt && n === "groupBy", $t = o &&
|
|
10636
|
+
}, xt = Fe(t.dataType), tt = xt === "date", bt = o === "kpi", Bt = rs(G), it = n !== "pivotBy", zt = tt && n === "groupBy" && (!bt || ((Un = A.config) == null ? void 0 : Un.comparisonType) === "start_vs_end"), jt = !bt && tt && n === "groupBy", $t = o && Fi.includes(o) && tt && n === "groupBy", Kt = o === "kpi" && tt && n === "groupBy", vt = o && o !== "pivotTable" && n === "metrics" && ((_n = A.config) == null ? void 0 : _n.comparisonType) === "target", yt = n === "metrics", le = () => {
|
|
10637
10637
|
const Q = t, ye = n === "metrics" && ka(Q);
|
|
10638
10638
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
10639
10639
|
!ye && /* @__PURE__ */ e(
|
|
@@ -10682,7 +10682,7 @@ function td({
|
|
|
10682
10682
|
onValueChange: Oe,
|
|
10683
10683
|
children: [
|
|
10684
10684
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select granularity..." }) }),
|
|
10685
|
-
/* @__PURE__ */ e(ee, { children: ["day", "week", "month", "quarter", "year"].map((Q) => /* @__PURE__ */ e(K, { className: "text-xs", value: Q, children:
|
|
10685
|
+
/* @__PURE__ */ e(ee, { children: ["day", "week", "month", "quarter", "year"].map((Q) => /* @__PURE__ */ e(K, { className: "text-xs", value: Q, children: Oi(Q) }, Q)) })
|
|
10686
10686
|
]
|
|
10687
10687
|
}
|
|
10688
10688
|
)
|
|
@@ -10725,7 +10725,7 @@ function td({
|
|
|
10725
10725
|
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Examples: YYYY-MM-DD, MM/DD/YY, DD-MMM-YYYY HH:mm" })
|
|
10726
10726
|
] })
|
|
10727
10727
|
] })
|
|
10728
|
-
] }) : null,
|
|
10728
|
+
] }) : null, zl = () => {
|
|
10729
10729
|
var ce, Pe, Ct, aa, ot;
|
|
10730
10730
|
const Q = $t, ye = Kt;
|
|
10731
10731
|
return !Q && !ye ? null : /* @__PURE__ */ a(re, { children: [
|
|
@@ -10770,8 +10770,8 @@ function td({
|
|
|
10770
10770
|
max: "365",
|
|
10771
10771
|
value: ((aa = A.config) == null ? void 0 : aa.trendlineWindow) || 30,
|
|
10772
10772
|
onChange: (fa) => {
|
|
10773
|
-
const
|
|
10774
|
-
f(
|
|
10773
|
+
const Gl = parseInt(fa.target.value) || 30;
|
|
10774
|
+
f(Gl);
|
|
10775
10775
|
},
|
|
10776
10776
|
className: "h-8 text-xs",
|
|
10777
10777
|
placeholder: "30"
|
|
@@ -10799,7 +10799,7 @@ function td({
|
|
|
10799
10799
|
] })
|
|
10800
10800
|
] })
|
|
10801
10801
|
] });
|
|
10802
|
-
},
|
|
10802
|
+
}, jl = () => {
|
|
10803
10803
|
var Q, ye;
|
|
10804
10804
|
return vt ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
10805
10805
|
/* @__PURE__ */ e(P, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
|
|
@@ -10815,7 +10815,7 @@ function td({
|
|
|
10815
10815
|
}
|
|
10816
10816
|
)
|
|
10817
10817
|
] }) : null;
|
|
10818
|
-
},
|
|
10818
|
+
}, $l = () => {
|
|
10819
10819
|
if (!yt) return null;
|
|
10820
10820
|
const ye = ka(t);
|
|
10821
10821
|
return /* @__PURE__ */ a(re, { children: [
|
|
@@ -10968,7 +10968,7 @@ function td({
|
|
|
10968
10968
|
)
|
|
10969
10969
|
] })
|
|
10970
10970
|
] });
|
|
10971
|
-
}, { columns:
|
|
10971
|
+
}, { columns: Kl = [] } = ca(), ql = (se == null ? void 0 : se.conditions) && se.conditions.length > 0;
|
|
10972
10972
|
return /* @__PURE__ */ a(re, { children: [
|
|
10973
10973
|
/* @__PURE__ */ a(
|
|
10974
10974
|
"div",
|
|
@@ -10986,9 +10986,9 @@ function td({
|
|
|
10986
10986
|
{
|
|
10987
10987
|
className: Y(
|
|
10988
10988
|
"w-[140px] flex-1 text-sm",
|
|
10989
|
-
|
|
10989
|
+
ql && "w-[120px]"
|
|
10990
10990
|
),
|
|
10991
|
-
children:
|
|
10991
|
+
children: Ii(t)
|
|
10992
10992
|
}
|
|
10993
10993
|
),
|
|
10994
10994
|
n === "metrics" && ((Jn = se == null ? void 0 : se.conditions) == null ? void 0 : Jn.length) && !O && /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ a(Te, { children: [
|
|
@@ -11058,21 +11058,21 @@ function td({
|
|
|
11058
11058
|
Se(),
|
|
11059
11059
|
o === "kpi" && ke(),
|
|
11060
11060
|
Nt(),
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11061
|
+
zl(),
|
|
11062
|
+
jl(),
|
|
11063
|
+
$l()
|
|
11064
11064
|
] })
|
|
11065
11065
|
]
|
|
11066
11066
|
}
|
|
11067
11067
|
),
|
|
11068
11068
|
v && /* @__PURE__ */ e(
|
|
11069
|
-
|
|
11069
|
+
Pl,
|
|
11070
11070
|
{
|
|
11071
11071
|
open: v,
|
|
11072
11072
|
onOpenChange: (Q) => {
|
|
11073
11073
|
M(Q), Q || k(null);
|
|
11074
11074
|
},
|
|
11075
|
-
availableFields:
|
|
11075
|
+
availableFields: Kl,
|
|
11076
11076
|
existingFilters: se,
|
|
11077
11077
|
editingCondition: F,
|
|
11078
11078
|
onSave: (Q) => {
|
|
@@ -11096,7 +11096,7 @@ function td({
|
|
|
11096
11096
|
}
|
|
11097
11097
|
),
|
|
11098
11098
|
R && n === "metrics" && /* @__PURE__ */ e(
|
|
11099
|
-
|
|
11099
|
+
Vl,
|
|
11100
11100
|
{
|
|
11101
11101
|
open: R,
|
|
11102
11102
|
onOpenChange: T,
|
|
@@ -11116,7 +11116,7 @@ function td({
|
|
|
11116
11116
|
}
|
|
11117
11117
|
function ad({ concept: t }) {
|
|
11118
11118
|
return /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ a(Te, { delayDuration: 300, children: [
|
|
11119
|
-
/* @__PURE__ */ e(Ee, { asChild: !0, children: /* @__PURE__ */ e(
|
|
11119
|
+
/* @__PURE__ */ e(Ee, { asChild: !0, children: /* @__PURE__ */ e(Ri, { className: "size-4 text-muted-foreground hover:text-foreground" }) }),
|
|
11120
11120
|
/* @__PURE__ */ e(Le, { side: "right", align: "start", className: "p-3", children: (() => {
|
|
11121
11121
|
switch (t) {
|
|
11122
11122
|
case "groupBy":
|
|
@@ -11211,7 +11211,7 @@ function ba({
|
|
|
11211
11211
|
hasPivotColumns: d = !1,
|
|
11212
11212
|
activeField: o = null
|
|
11213
11213
|
}) {
|
|
11214
|
-
const { isOver: c, setNodeRef: r } =
|
|
11214
|
+
const { isOver: c, setNodeRef: r } = Li({
|
|
11215
11215
|
id: t
|
|
11216
11216
|
}), { updateSortByColumn: u } = ne(), h = I((y) => y.card), p = I((y) => y.card.type), x = n.length > 0, A = Ce(() => !o || !c ? !0 : Ca(
|
|
11217
11217
|
o,
|
|
@@ -11339,7 +11339,7 @@ function nd() {
|
|
|
11339
11339
|
}, u = d || c.enabled, h = ((y = t.config) == null ? void 0 : y.comparisonType) || "none", p = h === "previous_period" || h === "same_period_last_year" || h === "start_vs_end";
|
|
11340
11340
|
return /* @__PURE__ */ a(ue, { value: "comparison", className: "border-none", children: [
|
|
11341
11341
|
/* @__PURE__ */ e(me, { className: "flex items-center gap-2 py-2 text-sm hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
11342
|
-
/* @__PURE__ */ e(
|
|
11342
|
+
/* @__PURE__ */ e(po, { className: "h-4 w-4" }),
|
|
11343
11343
|
/* @__PURE__ */ e("span", { children: "Comparison" })
|
|
11344
11344
|
] }) }),
|
|
11345
11345
|
/* @__PURE__ */ a(he, { className: "space-y-4 pb-4 pt-2", children: [
|
|
@@ -11552,7 +11552,7 @@ function nd() {
|
|
|
11552
11552
|
}
|
|
11553
11553
|
),
|
|
11554
11554
|
/* @__PURE__ */ e(
|
|
11555
|
-
|
|
11555
|
+
ve,
|
|
11556
11556
|
{
|
|
11557
11557
|
id: "label-increase",
|
|
11558
11558
|
type: "text",
|
|
@@ -11582,7 +11582,7 @@ function nd() {
|
|
|
11582
11582
|
}
|
|
11583
11583
|
),
|
|
11584
11584
|
/* @__PURE__ */ e(
|
|
11585
|
-
|
|
11585
|
+
ve,
|
|
11586
11586
|
{
|
|
11587
11587
|
id: "label-decrease",
|
|
11588
11588
|
type: "text",
|
|
@@ -11608,7 +11608,7 @@ function nd() {
|
|
|
11608
11608
|
}
|
|
11609
11609
|
),
|
|
11610
11610
|
/* @__PURE__ */ e(
|
|
11611
|
-
|
|
11611
|
+
ve,
|
|
11612
11612
|
{
|
|
11613
11613
|
id: "label-no-change",
|
|
11614
11614
|
type: "text",
|
|
@@ -11637,7 +11637,7 @@ function nd() {
|
|
|
11637
11637
|
}
|
|
11638
11638
|
),
|
|
11639
11639
|
/* @__PURE__ */ e(
|
|
11640
|
-
|
|
11640
|
+
ve,
|
|
11641
11641
|
{
|
|
11642
11642
|
id: "label-name",
|
|
11643
11643
|
type: "text",
|
|
@@ -11797,7 +11797,7 @@ function rd({
|
|
|
11797
11797
|
children: [
|
|
11798
11798
|
/* @__PURE__ */ a(ue, { value: "fields", className: "border-b-0", children: [
|
|
11799
11799
|
/* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
11800
|
-
/* @__PURE__ */ e(
|
|
11800
|
+
/* @__PURE__ */ e(Pi, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11801
11801
|
/* @__PURE__ */ e("span", { children: "FIELDS" })
|
|
11802
11802
|
] }) }),
|
|
11803
11803
|
/* @__PURE__ */ a(he, { className: "space-y-4 pt-2", children: [
|
|
@@ -11865,22 +11865,29 @@ function rd({
|
|
|
11865
11865
|
/* @__PURE__ */ e(he, { className: "rounded-md border border-border bg-muted/50 px-3 py-0", children: /* @__PURE__ */ a(He, { type: "single", collapsible: !0, className: "w-full", children: [
|
|
11866
11866
|
/* @__PURE__ */ e(sd, {}),
|
|
11867
11867
|
/* @__PURE__ */ e(nd, {}),
|
|
11868
|
-
/* @__PURE__ */ e(Al, {}),
|
|
11869
|
-
/* @__PURE__ */ e(ld, {}),
|
|
11870
|
-
/* @__PURE__ */ e(Il, {}),
|
|
11871
|
-
h === "bullet" && /* @__PURE__ */ e(Ml, {}),
|
|
11872
|
-
h === "funnel" && /* @__PURE__ */ e(Fl, {}),
|
|
11873
|
-
(h === "bubble" || h === "scatter") && /* @__PURE__ */ e(Ol, {}),
|
|
11874
|
-
/* @__PURE__ */ e(Tl, {}),
|
|
11875
11868
|
/* @__PURE__ */ e(El, {}),
|
|
11876
|
-
/* @__PURE__ */ e(
|
|
11869
|
+
/* @__PURE__ */ e(ld, {}),
|
|
11870
|
+
/* @__PURE__ */ e(Fl, {}),
|
|
11871
|
+
h === "bullet" && /* @__PURE__ */ e(Ol, {}),
|
|
11872
|
+
h === "funnel" && /* @__PURE__ */ e(Ll, {}),
|
|
11873
|
+
(h === "bubble" || h === "scatter") && /* @__PURE__ */ e(Rl, {}),
|
|
11874
|
+
/* @__PURE__ */ e(Dl, {}),
|
|
11875
|
+
/* @__PURE__ */ e(Ml, {}),
|
|
11876
|
+
/* @__PURE__ */ e(Il, {})
|
|
11877
11877
|
] }) })
|
|
11878
|
+
] }),
|
|
11879
|
+
c && /* @__PURE__ */ a(ue, { value: "plugin", className: "border-b-0", children: [
|
|
11880
|
+
/* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
11881
|
+
/* @__PURE__ */ e(dl, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11882
|
+
/* @__PURE__ */ e("span", { children: "CONFIGURATION" })
|
|
11883
|
+
] }) }),
|
|
11884
|
+
/* @__PURE__ */ e(he, { className: "rounded-md border border-border bg-muted/50 px-3 py-0", children: /* @__PURE__ */ e(Cl, {}) })
|
|
11878
11885
|
] })
|
|
11879
11886
|
]
|
|
11880
11887
|
}
|
|
11881
11888
|
),
|
|
11882
11889
|
/* @__PURE__ */ e(
|
|
11883
|
-
|
|
11890
|
+
Vl,
|
|
11884
11891
|
{
|
|
11885
11892
|
open: d,
|
|
11886
11893
|
onOpenChange: o,
|
|
@@ -11913,11 +11920,11 @@ function id({ onEditJoins: t }) {
|
|
|
11913
11920
|
}));
|
|
11914
11921
|
return /* @__PURE__ */ e(Ea, { className: "border-blue-500/30 bg-blue-50/30 dark:bg-blue-950/20", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between p-3", children: [
|
|
11915
11922
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
11916
|
-
/* @__PURE__ */ e(
|
|
11923
|
+
/* @__PURE__ */ e(Mo, { className: "size-4 text-blue-600 dark:text-blue-400" }),
|
|
11917
11924
|
/* @__PURE__ */ e("h3", { className: "text-sm font-medium text-blue-900 dark:text-blue-100", children: "Auto-Resolved Joins" }),
|
|
11918
11925
|
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ a(Te, { children: [
|
|
11919
11926
|
/* @__PURE__ */ e(Ee, { asChild: !0, children: /* @__PURE__ */ e(
|
|
11920
|
-
|
|
11927
|
+
be,
|
|
11921
11928
|
{
|
|
11922
11929
|
variant: "secondary",
|
|
11923
11930
|
className: "cursor-help bg-blue-100 text-xs text-blue-700 dark:bg-blue-900 dark:text-blue-300",
|
|
@@ -11940,11 +11947,11 @@ function id({ onEditJoins: t }) {
|
|
|
11940
11947
|
/* @__PURE__ */ a("div", { className: "mb-1 flex items-center justify-between gap-2", children: [
|
|
11941
11948
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
11942
11949
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: c.source.name }),
|
|
11943
|
-
/* @__PURE__ */ e(
|
|
11950
|
+
/* @__PURE__ */ e(Vi, { className: "size-3 text-muted-foreground" }),
|
|
11944
11951
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: c.target.name })
|
|
11945
11952
|
] }),
|
|
11946
11953
|
/* @__PURE__ */ e(
|
|
11947
|
-
|
|
11954
|
+
be,
|
|
11948
11955
|
{
|
|
11949
11956
|
variant: "outline",
|
|
11950
11957
|
className: "border-green-500/40 bg-green-50/30 text-xs text-green-700 dark:bg-green-950/30 dark:text-green-300",
|
|
@@ -12131,7 +12138,7 @@ function od({
|
|
|
12131
12138
|
/* @__PURE__ */ e(Fn, { orientation: "horizontal" })
|
|
12132
12139
|
] }),
|
|
12133
12140
|
/* @__PURE__ */ e(
|
|
12134
|
-
|
|
12141
|
+
fl,
|
|
12135
12142
|
{
|
|
12136
12143
|
open: u,
|
|
12137
12144
|
onOpenChange: h,
|
|
@@ -12389,7 +12396,7 @@ function dd({
|
|
|
12389
12396
|
children: t
|
|
12390
12397
|
}
|
|
12391
12398
|
) }),
|
|
12392
|
-
/* @__PURE__ */ e(
|
|
12399
|
+
/* @__PURE__ */ e(Bi, { children: t })
|
|
12393
12400
|
] }) });
|
|
12394
12401
|
}
|
|
12395
12402
|
const ud = (t) => {
|
|
@@ -12431,7 +12438,7 @@ function md({
|
|
|
12431
12438
|
".",
|
|
12432
12439
|
t.name
|
|
12433
12440
|
] }) }) : l,
|
|
12434
|
-
/* @__PURE__ */ e(
|
|
12441
|
+
/* @__PURE__ */ e(oo, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
12435
12442
|
]
|
|
12436
12443
|
}
|
|
12437
12444
|
) }),
|
|
@@ -12565,7 +12572,7 @@ function hd({
|
|
|
12565
12572
|
children: [
|
|
12566
12573
|
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-wrap gap-1", children: n.length > 0 ? n.map((h) => {
|
|
12567
12574
|
const p = c.find((x) => x.value === h);
|
|
12568
|
-
return /* @__PURE__ */ a(
|
|
12575
|
+
return /* @__PURE__ */ a(be, { variant: "secondary", className: "text-xs", children: [
|
|
12569
12576
|
p == null ? void 0 : p.label,
|
|
12570
12577
|
/* @__PURE__ */ e(
|
|
12571
12578
|
"div",
|
|
@@ -12684,7 +12691,7 @@ function fd({
|
|
|
12684
12691
|
}
|
|
12685
12692
|
}, [t, n]);
|
|
12686
12693
|
return /* @__PURE__ */ e(
|
|
12687
|
-
|
|
12694
|
+
zi,
|
|
12688
12695
|
{
|
|
12689
12696
|
value: o,
|
|
12690
12697
|
onChange: (u) => {
|
|
@@ -12783,7 +12790,7 @@ function Cd(t) {
|
|
|
12783
12790
|
return gd;
|
|
12784
12791
|
}
|
|
12785
12792
|
}
|
|
12786
|
-
function
|
|
12793
|
+
function Bl({
|
|
12787
12794
|
condition: t,
|
|
12788
12795
|
index: n,
|
|
12789
12796
|
groupId: s,
|
|
@@ -13085,7 +13092,7 @@ function wd({
|
|
|
13085
13092
|
items: t.conditions.map((S) => S.id),
|
|
13086
13093
|
strategy: Ht,
|
|
13087
13094
|
children: t.conditions.map((S, O) => /* @__PURE__ */ e(
|
|
13088
|
-
|
|
13095
|
+
Bl,
|
|
13089
13096
|
{
|
|
13090
13097
|
condition: S,
|
|
13091
13098
|
index: O,
|
|
@@ -13228,7 +13235,7 @@ function Sd({
|
|
|
13228
13235
|
items: N.conditions.map((R) => R.id),
|
|
13229
13236
|
strategy: Ht,
|
|
13230
13237
|
children: N.conditions.map((R, T) => /* @__PURE__ */ e(
|
|
13231
|
-
|
|
13238
|
+
Bl,
|
|
13232
13239
|
{
|
|
13233
13240
|
condition: R,
|
|
13234
13241
|
index: T,
|
|
@@ -13419,7 +13426,7 @@ function Ad({
|
|
|
13419
13426
|
var y, w;
|
|
13420
13427
|
const [i, d] = $(null), o = I((D) => D.card), c = I(
|
|
13421
13428
|
(D) => D.actions.updateCardConfig
|
|
13422
|
-
), r = (y = o == null ? void 0 : o.config) == null ? void 0 : y.joinPlan, u = (w = o == null ? void 0 : o.dataSource) == null ? void 0 : w.semanticDomainId, { data: h } =
|
|
13429
|
+
), r = (y = o == null ? void 0 : o.config) == null ? void 0 : y.joinPlan, u = (w = o == null ? void 0 : o.dataSource) == null ? void 0 : w.semanticDomainId, { data: h } = ji(u), p = [
|
|
13423
13430
|
...n,
|
|
13424
13431
|
...s("groupBy"),
|
|
13425
13432
|
...s("pivotBy"),
|
|
@@ -13514,7 +13521,7 @@ function Ad({
|
|
|
13514
13521
|
}
|
|
13515
13522
|
if (F !== O.qualifiedEntityName && O.qualifiedEntityName)
|
|
13516
13523
|
if (u && (h != null && h.joinabilityMap)) {
|
|
13517
|
-
if (
|
|
13524
|
+
if ($i(O, {
|
|
13518
13525
|
joinabilityMap: h.joinabilityMap,
|
|
13519
13526
|
selectedFields: N,
|
|
13520
13527
|
baseEntityName: (S = r == null ? void 0 : r.baseEntity) == null ? void 0 : S.name
|
|
@@ -13528,7 +13535,7 @@ function Ad({
|
|
|
13528
13535
|
Ya(), d(null);
|
|
13529
13536
|
return;
|
|
13530
13537
|
}
|
|
13531
|
-
if (!
|
|
13538
|
+
if (!Ki(
|
|
13532
13539
|
F,
|
|
13533
13540
|
O.qualifiedEntityName,
|
|
13534
13541
|
r
|
|
@@ -13705,7 +13712,7 @@ function Dd() {
|
|
|
13705
13712
|
l(!1), n(t.id, parseInt(h));
|
|
13706
13713
|
};
|
|
13707
13714
|
return /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: s ? /* @__PURE__ */ e(
|
|
13708
|
-
|
|
13715
|
+
ve,
|
|
13709
13716
|
{
|
|
13710
13717
|
type: "number",
|
|
13711
13718
|
value: i,
|
|
@@ -13743,7 +13750,7 @@ function Md({
|
|
|
13743
13750
|
const u = Ce(() => (n == null ? void 0 : n.records) || [], [n == null ? void 0 : n.records]);
|
|
13744
13751
|
return !r || ["table", "pivotTable", "aggregateTable"].includes(t.type) ? /* @__PURE__ */ e(un, {}) : /* @__PURE__ */ a(Tt, { direction: "vertical", className: "h-full min-h-0 w-full", children: [
|
|
13745
13752
|
/* @__PURE__ */ e(
|
|
13746
|
-
|
|
13753
|
+
Be,
|
|
13747
13754
|
{
|
|
13748
13755
|
defaultSize: 60,
|
|
13749
13756
|
minSize: 30,
|
|
@@ -13754,7 +13761,7 @@ function Md({
|
|
|
13754
13761
|
),
|
|
13755
13762
|
/* @__PURE__ */ e(Et, { withHandle: !0 }),
|
|
13756
13763
|
/* @__PURE__ */ e(
|
|
13757
|
-
|
|
13764
|
+
Be,
|
|
13758
13765
|
{
|
|
13759
13766
|
defaultSize: 40,
|
|
13760
13767
|
minSize: 20,
|
|
@@ -13784,7 +13791,7 @@ function Fd({
|
|
|
13784
13791
|
isOpen: t,
|
|
13785
13792
|
onClose: n
|
|
13786
13793
|
}) {
|
|
13787
|
-
const s =
|
|
13794
|
+
const s = so(n, {
|
|
13788
13795
|
enabled: t
|
|
13789
13796
|
}), l = I(
|
|
13790
13797
|
(h) => {
|
|
@@ -13827,7 +13834,7 @@ function Fd({
|
|
|
13827
13834
|
}
|
|
13828
13835
|
)
|
|
13829
13836
|
] }),
|
|
13830
|
-
/* @__PURE__ */ e("div", { className: "h-full min-h-0 flex-1", children: u && /* @__PURE__ */ e(
|
|
13837
|
+
/* @__PURE__ */ e("div", { className: "h-full min-h-0 flex-1", children: u && /* @__PURE__ */ e(to, { fallback: /* @__PURE__ */ e("div", { children: "Loading chart settings..." }), children: /* @__PURE__ */ e(
|
|
13831
13838
|
u,
|
|
13832
13839
|
{
|
|
13833
13840
|
chartData: (c == null ? void 0 : c.records) || [],
|
|
@@ -13944,7 +13951,7 @@ function Rd({
|
|
|
13944
13951
|
});
|
|
13945
13952
|
}, ge = Ce(() => {
|
|
13946
13953
|
var de;
|
|
13947
|
-
return
|
|
13954
|
+
return qi((de = u.config) == null ? void 0 : de.sortByColumns);
|
|
13948
13955
|
}, [(se = u.config) == null ? void 0 : se.sortByColumns]);
|
|
13949
13956
|
return /* @__PURE__ */ a(
|
|
13950
13957
|
"div",
|
|
@@ -13957,7 +13964,7 @@ function Rd({
|
|
|
13957
13964
|
/* @__PURE__ */ a("div", { className: "group/visualization relative flex h-full max-w-full grow flex-col pt-4", children: [
|
|
13958
13965
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 px-6", children: [
|
|
13959
13966
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-2", children: [
|
|
13960
|
-
t === "chart" && w && /* @__PURE__ */ e(
|
|
13967
|
+
t === "chart" && w && /* @__PURE__ */ e(yl, { variant: "outline" }),
|
|
13961
13968
|
/* @__PURE__ */ e(
|
|
13962
13969
|
Td,
|
|
13963
13970
|
{
|
|
@@ -13967,7 +13974,7 @@ function Rd({
|
|
|
13967
13974
|
}
|
|
13968
13975
|
),
|
|
13969
13976
|
/* @__PURE__ */ e(
|
|
13970
|
-
|
|
13977
|
+
Gi,
|
|
13971
13978
|
{
|
|
13972
13979
|
cardId: d.id,
|
|
13973
13980
|
cardFilters: (we = d.config) == null ? void 0 : we.filters,
|
|
@@ -13981,7 +13988,7 @@ function Rd({
|
|
|
13981
13988
|
}
|
|
13982
13989
|
),
|
|
13983
13990
|
J && /* @__PURE__ */ e(
|
|
13984
|
-
|
|
13991
|
+
Ui,
|
|
13985
13992
|
{
|
|
13986
13993
|
metadata: J,
|
|
13987
13994
|
variant: "compact"
|
|
@@ -14014,10 +14021,10 @@ function Rd({
|
|
|
14014
14021
|
{
|
|
14015
14022
|
tooltip: N ? "Hide Results Table" : "Show Results Table",
|
|
14016
14023
|
onClick: ae,
|
|
14017
|
-
children: N ? /* @__PURE__ */ e(
|
|
14024
|
+
children: N ? /* @__PURE__ */ e(ho, { className: "size-4" }) : /* @__PURE__ */ e(To, { className: "size-4" })
|
|
14018
14025
|
}
|
|
14019
14026
|
),
|
|
14020
|
-
t === "chart" && /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
|
|
14027
|
+
t === "chart" && /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(Nl, {}) }),
|
|
14021
14028
|
!w && /* @__PURE__ */ e(
|
|
14022
14029
|
Me,
|
|
14023
14030
|
{
|
|
@@ -14084,7 +14091,7 @@ function Rd({
|
|
|
14084
14091
|
error: T,
|
|
14085
14092
|
errorSql: B,
|
|
14086
14093
|
onSendFeedback: () => {
|
|
14087
|
-
const de =
|
|
14094
|
+
const de = _i(
|
|
14088
14095
|
$s.QUERY_GENERATION,
|
|
14089
14096
|
{
|
|
14090
14097
|
cardConfig: u.config,
|
|
@@ -14109,7 +14116,7 @@ function Rd({
|
|
|
14109
14116
|
) : (
|
|
14110
14117
|
/* Show normal SQL display when there's no error */
|
|
14111
14118
|
/* @__PURE__ */ e(
|
|
14112
|
-
|
|
14119
|
+
xl,
|
|
14113
14120
|
{
|
|
14114
14121
|
sql: R == null ? void 0 : R.sql,
|
|
14115
14122
|
error: T,
|
|
@@ -14330,50 +14337,50 @@ function Vd({ column: t, isSelected: n, onSelect: s, availableFields: l, width:
|
|
|
14330
14337
|
}
|
|
14331
14338
|
) }),
|
|
14332
14339
|
/* @__PURE__ */ a(In, { align: "start", className: "w-48", children: [
|
|
14333
|
-
/* @__PURE__ */ a(
|
|
14340
|
+
/* @__PURE__ */ a(ze, { onClick: () => x(!0), children: [
|
|
14334
14341
|
/* @__PURE__ */ e(Jt, { className: Y("mr-2 h-4 w-4", D && "text-primary") }),
|
|
14335
14342
|
D ? "Edit Filter" : "Filter"
|
|
14336
14343
|
] }),
|
|
14337
14344
|
/* @__PURE__ */ e(qt, {}),
|
|
14338
|
-
/* @__PURE__ */ a(
|
|
14339
|
-
/* @__PURE__ */ e(
|
|
14345
|
+
/* @__PURE__ */ a(ze, { onClick: M, children: [
|
|
14346
|
+
/* @__PURE__ */ e(ro, { className: "mr-2 h-4 w-4" }),
|
|
14340
14347
|
"Sort A → Z"
|
|
14341
14348
|
] }),
|
|
14342
|
-
/* @__PURE__ */ a(
|
|
14343
|
-
/* @__PURE__ */ e(
|
|
14349
|
+
/* @__PURE__ */ a(ze, { onClick: R, children: [
|
|
14350
|
+
/* @__PURE__ */ e(lo, { className: "mr-2 h-4 w-4" }),
|
|
14344
14351
|
"Sort Z → A"
|
|
14345
14352
|
] }),
|
|
14346
14353
|
/* @__PURE__ */ e(qt, {}),
|
|
14347
|
-
/* @__PURE__ */ a(
|
|
14348
|
-
/* @__PURE__ */ a(
|
|
14354
|
+
/* @__PURE__ */ a(Ji, { children: [
|
|
14355
|
+
/* @__PURE__ */ a(Hi, { children: [
|
|
14349
14356
|
/* @__PURE__ */ e(Ln, { className: "mr-2 h-4 w-4" }),
|
|
14350
14357
|
"Summarize"
|
|
14351
14358
|
] }),
|
|
14352
|
-
/* @__PURE__ */ a(
|
|
14353
|
-
/* @__PURE__ */ e(
|
|
14354
|
-
/* @__PURE__ */ e(
|
|
14355
|
-
/* @__PURE__ */ e(
|
|
14356
|
-
/* @__PURE__ */ e(
|
|
14357
|
-
/* @__PURE__ */ e(
|
|
14358
|
-
/* @__PURE__ */ e(
|
|
14359
|
+
/* @__PURE__ */ a(Qi, { children: [
|
|
14360
|
+
/* @__PURE__ */ e(ze, { onClick: () => F("SUM"), children: "Sum" }),
|
|
14361
|
+
/* @__PURE__ */ e(ze, { onClick: () => F("AVG"), children: "Average" }),
|
|
14362
|
+
/* @__PURE__ */ e(ze, { onClick: () => F("COUNT"), children: "Count" }),
|
|
14363
|
+
/* @__PURE__ */ e(ze, { onClick: () => F("DISTINCT"), children: "Count Distinct" }),
|
|
14364
|
+
/* @__PURE__ */ e(ze, { onClick: () => F("MIN"), children: "Min" }),
|
|
14365
|
+
/* @__PURE__ */ e(ze, { onClick: () => F("MAX"), children: "Max" })
|
|
14359
14366
|
] })
|
|
14360
14367
|
] }),
|
|
14361
14368
|
/* @__PURE__ */ e(qt, {}),
|
|
14362
|
-
/* @__PURE__ */ a(
|
|
14369
|
+
/* @__PURE__ */ a(ze, { onClick: T, children: [
|
|
14363
14370
|
/* @__PURE__ */ e(Bn, { className: "mr-2 h-4 w-4" }),
|
|
14364
14371
|
"Group by this column"
|
|
14365
14372
|
] }),
|
|
14366
|
-
/* @__PURE__ */ a(
|
|
14367
|
-
/* @__PURE__ */ e(
|
|
14373
|
+
/* @__PURE__ */ a(ze, { disabled: !0, children: [
|
|
14374
|
+
/* @__PURE__ */ e(ml, { className: "mr-2 h-4 w-4" }),
|
|
14368
14375
|
"Pivot by this column"
|
|
14369
14376
|
] }),
|
|
14370
14377
|
/* @__PURE__ */ e(qt, {}),
|
|
14371
|
-
/* @__PURE__ */ a(
|
|
14372
|
-
/* @__PURE__ */ e(
|
|
14378
|
+
/* @__PURE__ */ a(ze, { disabled: !0, children: [
|
|
14379
|
+
/* @__PURE__ */ e(Yi, { className: "mr-2 h-4 w-4" }),
|
|
14373
14380
|
"Hide column"
|
|
14374
14381
|
] }),
|
|
14375
14382
|
/* @__PURE__ */ a(
|
|
14376
|
-
|
|
14383
|
+
ze,
|
|
14377
14384
|
{
|
|
14378
14385
|
onClick: k,
|
|
14379
14386
|
className: "text-destructive focus:text-destructive",
|
|
@@ -14397,7 +14404,7 @@ function Vd({ column: t, isSelected: n, onSelect: s, availableFields: l, width:
|
|
|
14397
14404
|
}
|
|
14398
14405
|
),
|
|
14399
14406
|
/* @__PURE__ */ e(
|
|
14400
|
-
|
|
14407
|
+
Pl,
|
|
14401
14408
|
{
|
|
14402
14409
|
open: p,
|
|
14403
14410
|
onOpenChange: x,
|
|
@@ -14735,14 +14742,14 @@ function $d({
|
|
|
14735
14742
|
className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
|
|
14736
14743
|
onClick: () => c(!1),
|
|
14737
14744
|
title: "Close panel",
|
|
14738
|
-
children: /* @__PURE__ */ e(
|
|
14745
|
+
children: /* @__PURE__ */ e(So, { className: "h-4 w-4" })
|
|
14739
14746
|
}
|
|
14740
14747
|
)
|
|
14741
14748
|
] }),
|
|
14742
14749
|
/* @__PURE__ */ e("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ a("div", { className: "relative", children: [
|
|
14743
14750
|
/* @__PURE__ */ e(za, { className: "absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
14744
14751
|
/* @__PURE__ */ e(
|
|
14745
|
-
|
|
14752
|
+
ve,
|
|
14746
14753
|
{
|
|
14747
14754
|
placeholder: "Search columns...",
|
|
14748
14755
|
value: r,
|
|
@@ -14882,7 +14889,7 @@ function $d({
|
|
|
14882
14889
|
className: "h-8 w-8 p-0",
|
|
14883
14890
|
onClick: () => c(!0),
|
|
14884
14891
|
title: "Open panel",
|
|
14885
|
-
children: /* @__PURE__ */ e(
|
|
14892
|
+
children: /* @__PURE__ */ e(ko, { className: "h-4 w-4" })
|
|
14886
14893
|
}
|
|
14887
14894
|
) });
|
|
14888
14895
|
}
|
|
@@ -14960,7 +14967,7 @@ function qd({
|
|
|
14960
14967
|
size: "sm",
|
|
14961
14968
|
className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
|
|
14962
14969
|
title: "Insert function",
|
|
14963
|
-
children: /* @__PURE__ */ e(
|
|
14970
|
+
children: /* @__PURE__ */ e(Ao, { className: "h-4 w-4" })
|
|
14964
14971
|
}
|
|
14965
14972
|
) }),
|
|
14966
14973
|
/* @__PURE__ */ e(Je, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ a(It, { children: [
|
|
@@ -15024,7 +15031,7 @@ function qd({
|
|
|
15024
15031
|
] }) })
|
|
15025
15032
|
] }),
|
|
15026
15033
|
/* @__PURE__ */ e("div", { className: "relative flex-1", children: /* @__PURE__ */ e(
|
|
15027
|
-
|
|
15034
|
+
ve,
|
|
15028
15035
|
{
|
|
15029
15036
|
ref: h,
|
|
15030
15037
|
value: t,
|
|
@@ -15163,7 +15170,7 @@ function Ud() {
|
|
|
15163
15170
|
children: [
|
|
15164
15171
|
/* @__PURE__ */ a("div", { className: "flex h-full grow", children: [
|
|
15165
15172
|
/* @__PURE__ */ e(
|
|
15166
|
-
|
|
15173
|
+
gl,
|
|
15167
15174
|
{
|
|
15168
15175
|
isVisible: o,
|
|
15169
15176
|
onToggleVisibility: () => c(!o)
|
|
@@ -15235,7 +15242,7 @@ function Ud() {
|
|
|
15235
15242
|
);
|
|
15236
15243
|
}
|
|
15237
15244
|
function _d({ authToken: t, onSave: n, onClose: s }) {
|
|
15238
|
-
const l = Qe(null), i = I((C) => C.showAIDialog), d = I((C) => C.isDevMode), o = Xa((C) => C.setFullscreen), c = Xa((C) => C.setPanelOpen), r = Xa((C) => C.setContainer), u =
|
|
15245
|
+
const l = Qe(null), i = I((C) => C.showAIDialog), d = I((C) => C.isDevMode), o = Xa((C) => C.setFullscreen), c = Xa((C) => C.setPanelOpen), r = Xa((C) => C.setContainer), u = Wi("editor"), h = Xi(), p = Zi("editor"), x = h === "editor", A = $e(
|
|
15239
15246
|
(C) => {
|
|
15240
15247
|
r("editor", C);
|
|
15241
15248
|
},
|
|
@@ -15260,7 +15267,7 @@ function _d({ authToken: t, onSave: n, onClose: s }) {
|
|
|
15260
15267
|
}
|
|
15261
15268
|
function V() {
|
|
15262
15269
|
return /* @__PURE__ */ a(re, { children: [
|
|
15263
|
-
/* @__PURE__ */ e(
|
|
15270
|
+
/* @__PURE__ */ e(gl, { isVisible: !0, onToggleVisibility: () => {
|
|
15264
15271
|
} }),
|
|
15265
15272
|
/* @__PURE__ */ a("div", { className: "relative flex grow border-l", children: [
|
|
15266
15273
|
/* @__PURE__ */ a(
|
|
@@ -15273,10 +15280,10 @@ function _d({ authToken: t, onSave: n, onClose: s }) {
|
|
|
15273
15280
|
),
|
|
15274
15281
|
direction: "horizontal",
|
|
15275
15282
|
children: [
|
|
15276
|
-
/* @__PURE__ */ e(
|
|
15283
|
+
/* @__PURE__ */ e(Be, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(zc, {}) }),
|
|
15277
15284
|
/* @__PURE__ */ e(Et, {}),
|
|
15278
15285
|
/* @__PURE__ */ e(
|
|
15279
|
-
|
|
15286
|
+
Be,
|
|
15280
15287
|
{
|
|
15281
15288
|
"data-role": "editor-assistant-panel",
|
|
15282
15289
|
ref: l,
|
|
@@ -15321,10 +15328,10 @@ function _d({ authToken: t, onSave: n, onClose: s }) {
|
|
|
15321
15328
|
),
|
|
15322
15329
|
direction: "horizontal",
|
|
15323
15330
|
children: [
|
|
15324
|
-
/* @__PURE__ */ e(
|
|
15331
|
+
/* @__PURE__ */ e(Be, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(Ud, {}) }),
|
|
15325
15332
|
/* @__PURE__ */ e(Et, {}),
|
|
15326
15333
|
/* @__PURE__ */ e(
|
|
15327
|
-
|
|
15334
|
+
Be,
|
|
15328
15335
|
{
|
|
15329
15336
|
"data-role": "editor-assistant-panel",
|
|
15330
15337
|
ref: l,
|
|
@@ -15356,7 +15363,7 @@ function _d({ authToken: t, onSave: n, onClose: s }) {
|
|
|
15356
15363
|
)
|
|
15357
15364
|
] });
|
|
15358
15365
|
}
|
|
15359
|
-
return /* @__PURE__ */ e(Oa, { FallbackComponent:
|
|
15366
|
+
return /* @__PURE__ */ e(Oa, { FallbackComponent: eo, children: d ? /* @__PURE__ */ e(
|
|
15360
15367
|
"section",
|
|
15361
15368
|
{
|
|
15362
15369
|
className: "isolate flex h-full grow",
|