@magemetrics/ai 0.0.36 → 0.0.38
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/react/ai.js +127 -130
- package/dist/styles.css +1 -2072
- package/dist/styles.js +1 -0
- package/dist/web-component/{browser-djP6rtNi.js → browser-CH_bPnDK.js} +1 -1
- package/dist/web-component/{web-component-EdF33Ah-.js → web-component-B-Q_tXDP.js} +16 -19
- package/dist/web-component/web-component.es.js +1 -1
- package/package.json +2 -13
package/dist/react/ai.js
CHANGED
|
@@ -6,10 +6,10 @@ import { atom as fe, useSetAtom as Ne, useAtomValue as Ie } from "jotai";
|
|
|
6
6
|
import { atomWithLocation as jo } from "jotai-location";
|
|
7
7
|
import { z as o } from "zod";
|
|
8
8
|
import { createClient as Mo } from "@supabase/supabase-js";
|
|
9
|
-
import * as
|
|
10
|
-
import Q, { createContext as
|
|
9
|
+
import * as Nt from "react";
|
|
10
|
+
import Q, { createContext as jt, useContext as Je, useState as R, useRef as te, useEffect as H, useMemo as ce, memo as me, forwardRef as zo, useLayoutEffect as Fo, useCallback as ye, Fragment as Io } from "react";
|
|
11
11
|
import Ao from "openapi-fetch";
|
|
12
|
-
import { useQuery as G, useMutation as Ke, useInfiniteQuery as Ro, keepPreviousData as To, queryOptions as
|
|
12
|
+
import { useQuery as G, useMutation as Ke, useInfiniteQuery as Ro, keepPreviousData as To, queryOptions as Mt, useQueryClient as zt, QueryClient as Eo, QueryCache as Yo, QueryClientProvider as Lo } from "@tanstack/react-query";
|
|
13
13
|
import Ce from "dayjs";
|
|
14
14
|
import { Slot as Te } from "@radix-ui/react-slot";
|
|
15
15
|
import { cva as Ee } from "class-variance-authority";
|
|
@@ -24,18 +24,18 @@ import { useChat as Oo } from "@ai-sdk/react";
|
|
|
24
24
|
import Ho from "react-markdown";
|
|
25
25
|
import * as He from "@radix-ui/react-hover-card";
|
|
26
26
|
import * as Me from "@radix-ui/react-tooltip";
|
|
27
|
-
import * as
|
|
27
|
+
import * as Vt from "@radix-ui/react-collapsible";
|
|
28
28
|
import { flexRender as pr, createColumnHelper as Vo, useReactTable as qo, getCoreRowModel as Uo } from "@tanstack/react-table";
|
|
29
|
-
import { notUndefined as
|
|
30
|
-
import { Handle as
|
|
31
|
-
import
|
|
29
|
+
import { notUndefined as qt, useVirtualizer as Zo } from "@tanstack/react-virtual";
|
|
30
|
+
import { Handle as Ut, Position as Zt, useNodesState as Wo, useEdgesState as Bo, useReactFlow as Ko, ReactFlow as Go, MarkerType as Qo, ReactFlowProvider as Xo } from "@xyflow/react";
|
|
31
|
+
import Wt from "@dagrejs/dagre";
|
|
32
32
|
import * as ge from "@radix-ui/react-scroll-area";
|
|
33
33
|
import Jo from "html2canvas";
|
|
34
|
-
import { ResponsiveContainer as et, BarChart as en, CartesianGrid as
|
|
34
|
+
import { ResponsiveContainer as et, BarChart as en, CartesianGrid as Ft, Tooltip as tt, XAxis as It, YAxis as At, Bar as tn, LabelList as rn, AreaChart as on, Area as nn, PieChart as an, Pie as sn, Cell as ln, ScatterChart as cn, Scatter as mn } from "recharts";
|
|
35
35
|
import "@kurkle/color";
|
|
36
36
|
const dn = {};
|
|
37
37
|
let un = 0;
|
|
38
|
-
function
|
|
38
|
+
function Bt(e, t) {
|
|
39
39
|
const r = `atom${++un}`, a = {
|
|
40
40
|
toString() {
|
|
41
41
|
return (dn ? "production" : void 0) !== "production" && this.debugLabel ? r + ":" + this.debugLabel : r;
|
|
@@ -52,14 +52,14 @@ function pn(e, t, r) {
|
|
|
52
52
|
typeof r == "function" ? r(e(this)) : r
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
const
|
|
56
|
-
(
|
|
55
|
+
const Rt = {}, kt = Symbol(
|
|
56
|
+
(Rt ? "production" : void 0) !== "production" ? "RESET" : ""
|
|
57
57
|
), hn = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
58
58
|
function gn(e = () => {
|
|
59
59
|
try {
|
|
60
60
|
return window.localStorage;
|
|
61
61
|
} catch (r) {
|
|
62
|
-
(
|
|
62
|
+
(Rt ? "production" : void 0) !== "production" && typeof window < "u" && console.warn(r);
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
}, t) {
|
|
@@ -120,14 +120,14 @@ function gn(e = () => {
|
|
|
120
120
|
}
|
|
121
121
|
const bn = gn();
|
|
122
122
|
function yn(e, t, r = bn, a) {
|
|
123
|
-
const i =
|
|
123
|
+
const i = Bt(
|
|
124
124
|
t
|
|
125
125
|
);
|
|
126
|
-
return (
|
|
126
|
+
return (Rt ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (l) => {
|
|
127
127
|
l(r.getItem(e, t));
|
|
128
128
|
let c;
|
|
129
129
|
return r.subscribe && (c = r.subscribe(e, l, t)), c;
|
|
130
|
-
},
|
|
130
|
+
}, Bt(
|
|
131
131
|
(l) => l(i),
|
|
132
132
|
(l, c, m) => {
|
|
133
133
|
const u = typeof m == "function" ? m(l(i)) : m;
|
|
@@ -162,14 +162,14 @@ const vn = o.enum(["conversation"]).optional(), wn = o.enum(["chat", "insights"]
|
|
|
162
162
|
"mm-accordion": void 0,
|
|
163
163
|
"mm-report-mode": void 0,
|
|
164
164
|
"mm-chat": void 0
|
|
165
|
-
},
|
|
165
|
+
}, Kt = Object.keys(le), Ct = fe("none"), Cn = (e) => (window.addEventListener("popstate", e), () => window.removeEventListener("popstate", e)), pt = jo({
|
|
166
166
|
subscribe: Cn,
|
|
167
167
|
replace: !1
|
|
168
168
|
}), ht = fe(
|
|
169
169
|
(e) => {
|
|
170
170
|
const t = e(pt).searchParams, r = {};
|
|
171
171
|
if (t)
|
|
172
|
-
for (const i of
|
|
172
|
+
for (const i of Kt)
|
|
173
173
|
r[i] = t.get(i);
|
|
174
174
|
const a = _n.safeParse(r);
|
|
175
175
|
return a.success ? { ...le, ...a.data } : (console.error("Failed to parse URL state:", a.error.flatten()), le);
|
|
@@ -177,7 +177,7 @@ const vn = o.enum(["conversation"]).optional(), wn = o.enum(["chat", "insights"]
|
|
|
177
177
|
(e, t, r) => {
|
|
178
178
|
const a = e(pt).searchParams ?? new URLSearchParams(), i = new URLSearchParams();
|
|
179
179
|
let s = !1;
|
|
180
|
-
for (const l of
|
|
180
|
+
for (const l of Kt) {
|
|
181
181
|
const c = r[l], m = le[l];
|
|
182
182
|
if (c !== void 0 && c !== m) {
|
|
183
183
|
const p = kn(c);
|
|
@@ -551,7 +551,7 @@ const Pn = (e, t) => {
|
|
|
551
551
|
storageKey: "mm-ai-sp-token"
|
|
552
552
|
}
|
|
553
553
|
}));
|
|
554
|
-
},
|
|
554
|
+
}, Tt = jt({
|
|
555
555
|
user: {
|
|
556
556
|
data: void 0,
|
|
557
557
|
session: void 0,
|
|
@@ -570,7 +570,7 @@ const Pn = (e, t) => {
|
|
|
570
570
|
loading: !0
|
|
571
571
|
}), l = te(Symbol("initial")), { data: c } = Yn(t), { mutateAsync: m, isPending: u } = Ln();
|
|
572
572
|
H(() => {
|
|
573
|
-
Dn(a, "0.0.
|
|
573
|
+
Dn(a, "0.0.38");
|
|
574
574
|
}, [a]), H(() => {
|
|
575
575
|
if (console.debug("Main Supabase auth effect re-running."), console.debug(
|
|
576
576
|
`Effect dependencies: apiInformation=${!!c}, externalJwt='${r}', isExchangingTokens=${u}, processedJwtRef='${String(l.current)}'`
|
|
@@ -650,8 +650,8 @@ const Pn = (e, t) => {
|
|
|
650
650
|
user: i,
|
|
651
651
|
apiUrl: a
|
|
652
652
|
};
|
|
653
|
-
return /* @__PURE__ */ n(
|
|
654
|
-
}, On = () => Je(
|
|
653
|
+
return /* @__PURE__ */ n(Tt.Provider, { value: p, children: e });
|
|
654
|
+
}, On = () => Je(Tt).user, Hn = () => ({ apiUrl: Je(Tt).apiUrl }), ae = () => !On().loading, Et = async (e) => {
|
|
655
655
|
if (!e)
|
|
656
656
|
throw new Error("Supabase client is not initialized");
|
|
657
657
|
const t = await e.auth.getSession();
|
|
@@ -826,12 +826,12 @@ const ea = Jn.omit({
|
|
|
826
826
|
}), kr = oa.omit({
|
|
827
827
|
sql: !0
|
|
828
828
|
});
|
|
829
|
-
function
|
|
829
|
+
function Yt(e) {
|
|
830
830
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
831
831
|
}
|
|
832
|
-
var Ze = { exports: {} }, na = Ze.exports,
|
|
832
|
+
var Ze = { exports: {} }, na = Ze.exports, Gt;
|
|
833
833
|
function aa() {
|
|
834
|
-
return
|
|
834
|
+
return Gt || (Gt = 1, function(e, t) {
|
|
835
835
|
(function(r, a) {
|
|
836
836
|
e.exports = a();
|
|
837
837
|
})(na, function() {
|
|
@@ -929,10 +929,10 @@ function aa() {
|
|
|
929
929
|
D && (V = j[2]), m = this.$locale(), !T && V && (m = x.Ls[V]), this.$d = function(q, J, oe, je) {
|
|
930
930
|
try {
|
|
931
931
|
if (["x", "X"].indexOf(J) > -1) return new Date((J === "X" ? 1e3 : 1) * q);
|
|
932
|
-
var W = f(J)(q), nt = W.year, Pe = W.month, xo = W.day, _o = W.hours, ko = W.minutes, Co = W.seconds, So = W.milliseconds,
|
|
932
|
+
var W = f(J)(q), nt = W.year, Pe = W.month, xo = W.day, _o = W.hours, ko = W.minutes, Co = W.seconds, So = W.milliseconds, Ot = W.zone, Ht = W.week, at = /* @__PURE__ */ new Date(), st = xo || (nt || Pe ? 1 : at.getDate()), it = nt || at.getFullYear(), $e = 0;
|
|
933
933
|
nt && !Pe || ($e = Pe > 0 ? Pe - 1 : at.getMonth());
|
|
934
934
|
var Oe, lt = _o || 0, ct = ko || 0, mt = Co || 0, dt = So || 0;
|
|
935
|
-
return
|
|
935
|
+
return Ot ? new Date(Date.UTC(it, $e, st, lt, ct, mt, dt + 60 * Ot.offset * 1e3)) : oe ? new Date(Date.UTC(it, $e, st, lt, ct, mt, dt)) : (Oe = new Date(it, $e, st, lt, ct, mt, dt), Ht && (Oe = je(Oe).week(Ht).toDate()), Oe);
|
|
936
936
|
} catch {
|
|
937
937
|
return /* @__PURE__ */ new Date("");
|
|
938
938
|
}
|
|
@@ -953,10 +953,10 @@ function aa() {
|
|
|
953
953
|
}(Ze)), Ze.exports;
|
|
954
954
|
}
|
|
955
955
|
var sa = aa();
|
|
956
|
-
const ia = /* @__PURE__ */
|
|
957
|
-
var We = { exports: {} }, la = We.exports,
|
|
956
|
+
const ia = /* @__PURE__ */ Yt(sa);
|
|
957
|
+
var We = { exports: {} }, la = We.exports, Qt;
|
|
958
958
|
function ca() {
|
|
959
|
-
return
|
|
959
|
+
return Qt || (Qt = 1, function(e, t) {
|
|
960
960
|
(function(r, a) {
|
|
961
961
|
e.exports = a();
|
|
962
962
|
})(la, function() {
|
|
@@ -1018,10 +1018,10 @@ function ca() {
|
|
|
1018
1018
|
}(We)), We.exports;
|
|
1019
1019
|
}
|
|
1020
1020
|
var ma = ca();
|
|
1021
|
-
const da = /* @__PURE__ */
|
|
1022
|
-
var Be = { exports: {} }, ua = Be.exports,
|
|
1021
|
+
const da = /* @__PURE__ */ Yt(ma);
|
|
1022
|
+
var Be = { exports: {} }, ua = Be.exports, Xt;
|
|
1023
1023
|
function fa() {
|
|
1024
|
-
return
|
|
1024
|
+
return Xt || (Xt = 1, function(e, t) {
|
|
1025
1025
|
(function(r, a) {
|
|
1026
1026
|
e.exports = a();
|
|
1027
1027
|
})(ua, function() {
|
|
@@ -1096,7 +1096,7 @@ function fa() {
|
|
|
1096
1096
|
}(Be)), Be.exports;
|
|
1097
1097
|
}
|
|
1098
1098
|
var pa = fa();
|
|
1099
|
-
const ha = /* @__PURE__ */
|
|
1099
|
+
const ha = /* @__PURE__ */ Yt(pa);
|
|
1100
1100
|
Ce.extend(ia);
|
|
1101
1101
|
Ce.extend(ha);
|
|
1102
1102
|
Ce.extend(da);
|
|
@@ -1134,7 +1134,7 @@ const Cr = (e, t = {}) => {
|
|
|
1134
1134
|
maximumFractionDigits: c,
|
|
1135
1135
|
useGrouping: s
|
|
1136
1136
|
}).format(e);
|
|
1137
|
-
},
|
|
1137
|
+
}, Jt = (e) => typeof e == "object" && !!e && "display" in e && "sortValue" in e, Sr = 1900, Dr = 2200, gt = (e, t) => ({ format: e, type: "zonedatetime", zone: t }), B = (e) => ({ format: e, type: "datetime" }), be = (e) => ({ format: e, type: "date" }), ga = [
|
|
1138
1138
|
// ISO 8601 formats
|
|
1139
1139
|
gt("YYYY-MM-DDTHH:mm:ss.SSSZ", "UTC"),
|
|
1140
1140
|
gt("YYYY-MM-DDTHH:mm:ssZ", "UTC"),
|
|
@@ -1162,7 +1162,7 @@ const Cr = (e, t = {}) => {
|
|
|
1162
1162
|
B("MM-DD-YYYY HH:mm"),
|
|
1163
1163
|
B("MM/DD/YYYY HH:mm:ss"),
|
|
1164
1164
|
B("MM/DD/YYYY HH:mm")
|
|
1165
|
-
],
|
|
1165
|
+
], er = (e) => {
|
|
1166
1166
|
if (typeof e != "string") return { isValid: !1 };
|
|
1167
1167
|
const t = e.replace(/[-/.:\s]/g, "");
|
|
1168
1168
|
if (/^\d+$/.test(t)) {
|
|
@@ -1203,7 +1203,7 @@ const Cr = (e, t = {}) => {
|
|
|
1203
1203
|
} catch {
|
|
1204
1204
|
}
|
|
1205
1205
|
if (r && typeof r == "object" && Object.keys(r).length === 1 && "value" in r) {
|
|
1206
|
-
const i = r.value, s =
|
|
1206
|
+
const i = r.value, s = er(i);
|
|
1207
1207
|
return s.isValid ? {
|
|
1208
1208
|
display: s.isDateTime ? s.parsedDate.format("YYYY-MM-DD HH:mm:ss") : s.parsedDate.format("YYYY-MM-DD"),
|
|
1209
1209
|
sortValue: s.parsedDate.valueOf()
|
|
@@ -1212,7 +1212,7 @@ const Cr = (e, t = {}) => {
|
|
|
1212
1212
|
sortValue: i
|
|
1213
1213
|
};
|
|
1214
1214
|
}
|
|
1215
|
-
const a =
|
|
1215
|
+
const a = er(r);
|
|
1216
1216
|
if (a.isValid)
|
|
1217
1217
|
return {
|
|
1218
1218
|
display: a.isDateTime ? a.parsedDate.format("YYYY-MM-DD HH:mm:ss") : a.parsedDate.format("YYYY-MM-DD"),
|
|
@@ -1314,7 +1314,7 @@ const Cr = (e, t = {}) => {
|
|
|
1314
1314
|
KEY_FINDINGS: "key_findings",
|
|
1315
1315
|
VISUALIZATION: "visualization",
|
|
1316
1316
|
SYNTHESIS: "synthesis"
|
|
1317
|
-
},
|
|
1317
|
+
}, tr = o.object({
|
|
1318
1318
|
id: o.number(),
|
|
1319
1319
|
flow_data_id: o.number(),
|
|
1320
1320
|
type: o.enum([
|
|
@@ -1701,7 +1701,7 @@ Y({
|
|
|
1701
1701
|
params: ue,
|
|
1702
1702
|
headers: O,
|
|
1703
1703
|
query: o.object({
|
|
1704
|
-
type:
|
|
1704
|
+
type: tr.shape.type.optional()
|
|
1705
1705
|
})
|
|
1706
1706
|
},
|
|
1707
1707
|
responses: {
|
|
@@ -1709,7 +1709,7 @@ Y({
|
|
|
1709
1709
|
description: "A list of workflow jobs",
|
|
1710
1710
|
content: {
|
|
1711
1711
|
"application/json": {
|
|
1712
|
-
schema:
|
|
1712
|
+
schema: tr.array()
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
1715
|
},
|
|
@@ -2007,7 +2007,7 @@ const Aa = Y({
|
|
|
2007
2007
|
filters: a,
|
|
2008
2008
|
cursor: i
|
|
2009
2009
|
}, s) => {
|
|
2010
|
-
const l = Pa({ limit: t, sorting: r, filters: a, cursor: i }), c = await
|
|
2010
|
+
const l = Pa({ limit: t, sorting: r, filters: a, cursor: i }), c = await Et($), { data: m, error: u } = await P.GET(Ma.path, {
|
|
2011
2011
|
params: {
|
|
2012
2012
|
...c,
|
|
2013
2013
|
path: { flowId: e },
|
|
@@ -2042,7 +2042,7 @@ const Aa = Y({
|
|
|
2042
2042
|
getNextPageParam: (a, i) => a.length < t ? null : i.length,
|
|
2043
2043
|
refetchOnWindowFocus: !1,
|
|
2044
2044
|
placeholderData: To
|
|
2045
|
-
}), Mr = (e) =>
|
|
2045
|
+
}), Mr = (e) => Mt({
|
|
2046
2046
|
queryKey: ["recentFlows", { limit: e }],
|
|
2047
2047
|
queryFn: async () => {
|
|
2048
2048
|
if (!$) return [];
|
|
@@ -2099,7 +2099,7 @@ const Aa = Y({
|
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
|
-
}), zr = () =>
|
|
2102
|
+
}), zr = () => Mt({
|
|
2103
2103
|
queryKey: ["recommendations"],
|
|
2104
2104
|
queryFn: async ({ signal: e }) => {
|
|
2105
2105
|
const { data: t, error: r } = await P.GET(Wa.path, {
|
|
@@ -2141,19 +2141,16 @@ const Ka = Ee(
|
|
|
2141
2141
|
}
|
|
2142
2142
|
]
|
|
2143
2143
|
}
|
|
2144
|
-
), U = (
|
|
2145
|
-
className: e,
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
className: k(Ka({ variant: t, size: r, className: e })),
|
|
2155
|
-
...i
|
|
2156
|
-
}
|
|
2144
|
+
), U = Nt.forwardRef(
|
|
2145
|
+
({ className: e, variant: t, size: r, asChild: a = !1, ...i }, s) => /* @__PURE__ */ n(
|
|
2146
|
+
a ? Te : "button",
|
|
2147
|
+
{
|
|
2148
|
+
ref: s,
|
|
2149
|
+
"data-slot": "button",
|
|
2150
|
+
className: k(Ka({ variant: t, size: r, className: e })),
|
|
2151
|
+
...i
|
|
2152
|
+
}
|
|
2153
|
+
)
|
|
2157
2154
|
), pe = Q.forwardRef(
|
|
2158
2155
|
({ className: e, children: t, direction: r, ...a }, i) => /* @__PURE__ */ n(
|
|
2159
2156
|
"div",
|
|
@@ -2208,7 +2205,7 @@ const Ka = Ee(
|
|
|
2208
2205
|
variant: "default",
|
|
2209
2206
|
size: "default"
|
|
2210
2207
|
}
|
|
2211
|
-
}), X =
|
|
2208
|
+
}), X = Nt.forwardRef(
|
|
2212
2209
|
({ className: e, variant: t, size: r, asChild: a = !1, ...i }, s) => /* @__PURE__ */ n(
|
|
2213
2210
|
a ? Te : "div",
|
|
2214
2211
|
{
|
|
@@ -2230,7 +2227,7 @@ const Qa = Ee("", {
|
|
|
2230
2227
|
defaultVariants: {
|
|
2231
2228
|
ff: "sans"
|
|
2232
2229
|
}
|
|
2233
|
-
}), S =
|
|
2230
|
+
}), S = Nt.forwardRef(
|
|
2234
2231
|
({ className: e, ff: t, asChild: r = !1, as: a = "p", ...i }, s) => /* @__PURE__ */ n(
|
|
2235
2232
|
r ? Te : a,
|
|
2236
2233
|
{
|
|
@@ -2239,7 +2236,7 @@ const Qa = Ee("", {
|
|
|
2239
2236
|
...i
|
|
2240
2237
|
}
|
|
2241
2238
|
)
|
|
2242
|
-
),
|
|
2239
|
+
), rr = {
|
|
2243
2240
|
visible: {
|
|
2244
2241
|
opacity: 1,
|
|
2245
2242
|
transition: {
|
|
@@ -2286,7 +2283,7 @@ var Fr = {
|
|
|
2286
2283
|
className: void 0,
|
|
2287
2284
|
style: void 0,
|
|
2288
2285
|
attr: void 0
|
|
2289
|
-
},
|
|
2286
|
+
}, or = Q.createContext && /* @__PURE__ */ Q.createContext(Fr), es = ["attr", "size", "title"];
|
|
2290
2287
|
function ts(e, t) {
|
|
2291
2288
|
if (e == null) return {};
|
|
2292
2289
|
var r = rs(e, t), a, i;
|
|
@@ -2317,7 +2314,7 @@ function Qe() {
|
|
|
2317
2314
|
return e;
|
|
2318
2315
|
}, Qe.apply(this, arguments);
|
|
2319
2316
|
}
|
|
2320
|
-
function
|
|
2317
|
+
function nr(e, t) {
|
|
2321
2318
|
var r = Object.keys(e);
|
|
2322
2319
|
if (Object.getOwnPropertySymbols) {
|
|
2323
2320
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -2330,9 +2327,9 @@ function or(e, t) {
|
|
|
2330
2327
|
function Xe(e) {
|
|
2331
2328
|
for (var t = 1; t < arguments.length; t++) {
|
|
2332
2329
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2333
|
-
t % 2 ?
|
|
2330
|
+
t % 2 ? nr(Object(r), !0).forEach(function(a) {
|
|
2334
2331
|
os(e, a, r[a]);
|
|
2335
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
2332
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : nr(Object(r)).forEach(function(a) {
|
|
2336
2333
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
2337
2334
|
});
|
|
2338
2335
|
}
|
|
@@ -2386,7 +2383,7 @@ function ss(e) {
|
|
|
2386
2383
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2387
2384
|
}), s && /* @__PURE__ */ Q.createElement("title", null, s), e.children);
|
|
2388
2385
|
};
|
|
2389
|
-
return
|
|
2386
|
+
return or !== void 0 ? /* @__PURE__ */ Q.createElement(or.Consumer, null, (r) => t(r)) : t(Fr);
|
|
2390
2387
|
}
|
|
2391
2388
|
function is(e) {
|
|
2392
2389
|
return Z({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z" }, child: [] }] })(e);
|
|
@@ -2570,7 +2567,7 @@ ${r}`);
|
|
|
2570
2567
|
children: e
|
|
2571
2568
|
}
|
|
2572
2569
|
) })
|
|
2573
|
-
] }),
|
|
2570
|
+
] }), ar = ({
|
|
2574
2571
|
label: e,
|
|
2575
2572
|
showRecentChats: t,
|
|
2576
2573
|
showRecommendations: r,
|
|
@@ -2581,7 +2578,7 @@ ${r}`);
|
|
|
2581
2578
|
onSuccess: (C) => {
|
|
2582
2579
|
v(C.flowId);
|
|
2583
2580
|
}
|
|
2584
|
-
}), b =
|
|
2581
|
+
}), b = zt();
|
|
2585
2582
|
H(() => {
|
|
2586
2583
|
u && (t && b.prefetchQuery(Mr(5)), r && b.prefetchQuery(zr()));
|
|
2587
2584
|
}, [u, r, t, b]);
|
|
@@ -2599,7 +2596,7 @@ ${r}`);
|
|
|
2599
2596
|
_ && /* @__PURE__ */ n(
|
|
2600
2597
|
ne.div,
|
|
2601
2598
|
{
|
|
2602
|
-
variants:
|
|
2599
|
+
variants: rr,
|
|
2603
2600
|
initial: "hidden",
|
|
2604
2601
|
animate: "visible",
|
|
2605
2602
|
exit: "hidden",
|
|
@@ -2613,7 +2610,7 @@ ${r}`);
|
|
|
2613
2610
|
initial: "hidden",
|
|
2614
2611
|
animate: "visible",
|
|
2615
2612
|
exit: "hidden",
|
|
2616
|
-
variants:
|
|
2613
|
+
variants: rr,
|
|
2617
2614
|
className: "mm:flex-1 mm:z-10 mm:w-full",
|
|
2618
2615
|
children: /* @__PURE__ */ g(
|
|
2619
2616
|
"div",
|
|
@@ -2716,7 +2713,7 @@ ${r}`);
|
|
|
2716
2713
|
"request-form"
|
|
2717
2714
|
)
|
|
2718
2715
|
] });
|
|
2719
|
-
}, bs = ({ onClose: e, ...t }) => e != null ? /* @__PURE__ */ n(gs, { onClose: e, children: /* @__PURE__ */ n(pe, { className: "mm:h-full mm:items-end mm:sm:w-150 mm:w-full mm:mx-auto", children: /* @__PURE__ */ n(
|
|
2716
|
+
}, bs = ({ onClose: e, ...t }) => e != null ? /* @__PURE__ */ n(gs, { onClose: e, children: /* @__PURE__ */ n(pe, { className: "mm:h-full mm:items-end mm:sm:w-150 mm:w-full mm:mx-auto", children: /* @__PURE__ */ n(ar, { ...t, onClose: e }) }) }, "start-modal") : /* @__PURE__ */ n(ar, { ...t, onClose: e }, "start-modal"), Hr = jt({
|
|
2720
2717
|
setFullWidthRef: () => {
|
|
2721
2718
|
},
|
|
2722
2719
|
fullWidthRef: null,
|
|
@@ -2915,7 +2912,7 @@ const io = o.discriminatedUnion("tool", [
|
|
|
2915
2912
|
Wr,
|
|
2916
2913
|
Qr
|
|
2917
2914
|
]), Cs = async (e, t) => {
|
|
2918
|
-
const r = await
|
|
2915
|
+
const r = await Et($), a = await fetch(`${t}/api/v1/chat/${e}/messages`, {
|
|
2919
2916
|
headers: r.header
|
|
2920
2917
|
});
|
|
2921
2918
|
if (!a.ok)
|
|
@@ -2937,7 +2934,7 @@ const io = o.discriminatedUnion("tool", [
|
|
|
2937
2934
|
createdAt: new Date(h.createdAt)
|
|
2938
2935
|
})),
|
|
2939
2936
|
[c]
|
|
2940
|
-
), p =
|
|
2937
|
+
), p = zt();
|
|
2941
2938
|
return {
|
|
2942
2939
|
chat: Oo({
|
|
2943
2940
|
id: `chat-${e}`,
|
|
@@ -3008,7 +3005,7 @@ function Ss(e, t) {
|
|
|
3008
3005
|
input: a,
|
|
3009
3006
|
handleSubmit: async (l, c) => {
|
|
3010
3007
|
const m = {
|
|
3011
|
-
...(await
|
|
3008
|
+
...(await Et($)).header,
|
|
3012
3009
|
...t == null ? void 0 : t.headers,
|
|
3013
3010
|
...c == null ? void 0 : c.headers
|
|
3014
3011
|
};
|
|
@@ -3022,7 +3019,7 @@ function Ss(e, t) {
|
|
|
3022
3019
|
setInput: r.setInput
|
|
3023
3020
|
};
|
|
3024
3021
|
}
|
|
3025
|
-
const Ds = (e) =>
|
|
3022
|
+
const Ds = (e) => Mt({
|
|
3026
3023
|
queryKey: ["flows", { flowId: e }],
|
|
3027
3024
|
queryFn: async () => {
|
|
3028
3025
|
if (!e || !$) return null;
|
|
@@ -3464,7 +3461,7 @@ const Ds = (e) => jt({
|
|
|
3464
3461
|
},
|
|
3465
3462
|
s
|
|
3466
3463
|
)
|
|
3467
|
-
) }), Vs = ".react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color, var(--xy-background-color-props, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}", go = Nt(null), Yt = () => {
|
|
3464
|
+
) }), Vs = ".react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color, var(--xy-background-color-props, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}", go = jt(null), Lt = () => {
|
|
3468
3465
|
const e = Je(go);
|
|
3469
3466
|
if (!e)
|
|
3470
3467
|
throw new Error("useRootRef must be used within a RootRefProvider");
|
|
@@ -3515,13 +3512,13 @@ const Ds = (e) => jt({
|
|
|
3515
3512
|
t(!0);
|
|
3516
3513
|
}
|
|
3517
3514
|
}, []), e;
|
|
3518
|
-
},
|
|
3515
|
+
}, Pt = ({
|
|
3519
3516
|
children: e,
|
|
3520
3517
|
label: t,
|
|
3521
3518
|
className: r,
|
|
3522
3519
|
...a
|
|
3523
3520
|
}) => {
|
|
3524
|
-
const i =
|
|
3521
|
+
const i = Lt(), s = Zs(), [l, c] = R(!1);
|
|
3525
3522
|
return s ? /* @__PURE__ */ g(He.Root, { openDelay: 0, closeDelay: 0, children: [
|
|
3526
3523
|
/* @__PURE__ */ n(He.Trigger, { asChild: !0, children: e }),
|
|
3527
3524
|
/* @__PURE__ */ n(He.Portal, { container: i, children: /* @__PURE__ */ n(He.Content, { asChild: !0, side: "top", children: /* @__PURE__ */ n(
|
|
@@ -3573,7 +3570,7 @@ const Ds = (e) => jt({
|
|
|
3573
3570
|
window.removeEventListener("resize", l);
|
|
3574
3571
|
};
|
|
3575
3572
|
}, [e]), !t || !a ? /* @__PURE__ */ n(S, { ref: s, ...r, children: e }) : /* @__PURE__ */ n(
|
|
3576
|
-
|
|
3573
|
+
Pt,
|
|
3577
3574
|
{
|
|
3578
3575
|
label: e,
|
|
3579
3576
|
style: { wordBreak: "break-word" },
|
|
@@ -3598,7 +3595,7 @@ const Ds = (e) => jt({
|
|
|
3598
3595
|
"link"
|
|
3599
3596
|
]
|
|
3600
3597
|
}
|
|
3601
|
-
),
|
|
3598
|
+
), sr = ({ imageUrls: e }) => {
|
|
3602
3599
|
const [t, r] = R(!1), [a, i] = R(0), s = () => {
|
|
3603
3600
|
i(
|
|
3604
3601
|
(m) => m === 0 ? e.length - 1 : m - 1
|
|
@@ -3685,11 +3682,11 @@ const Ds = (e) => jt({
|
|
|
3685
3682
|
if (r == "images_list") {
|
|
3686
3683
|
const s = Ks(e.display);
|
|
3687
3684
|
if (s && s.length > 0)
|
|
3688
|
-
return /* @__PURE__ */ n(
|
|
3685
|
+
return /* @__PURE__ */ n(sr, { imageUrls: s });
|
|
3689
3686
|
}
|
|
3690
3687
|
if (r == "image" && e.display) {
|
|
3691
3688
|
const s = [e.display];
|
|
3692
|
-
return /* @__PURE__ */ n(
|
|
3689
|
+
return /* @__PURE__ */ n(sr, { imageUrls: s });
|
|
3693
3690
|
}
|
|
3694
3691
|
return r == "url" && e.display ? /* @__PURE__ */ n(Bs, { url: e.display }) : /* @__PURE__ */ n(
|
|
3695
3692
|
we,
|
|
@@ -3702,12 +3699,12 @@ const Ds = (e) => jt({
|
|
|
3702
3699
|
);
|
|
3703
3700
|
}
|
|
3704
3701
|
), Qs = (e, t, r) => {
|
|
3705
|
-
const a = e.getValue(r), i = t.getValue(r), s =
|
|
3702
|
+
const a = e.getValue(r), i = t.getValue(r), s = Jt(a) ? a.sortValue : null, l = Jt(i) ? i.sortValue : null;
|
|
3706
3703
|
return s === null && l === null ? 0 : s === null ? -1 : l === null ? 1 : s instanceof Date && l instanceof Date ? s.getTime() - l.getTime() : typeof s == "number" && typeof l == "number" ? s - l : String(s).localeCompare(String(l));
|
|
3707
3704
|
}, Xs = ({ table: e, virtualizer: t }) => {
|
|
3708
3705
|
const r = e.getRowModel().rows, a = t.getVirtualItems(), [i, s] = a.length > 0 ? [
|
|
3709
|
-
|
|
3710
|
-
t.getTotalSize() -
|
|
3706
|
+
qt(a[0]).start - t.options.scrollMargin,
|
|
3707
|
+
t.getTotalSize() - qt(a.at(-1)).end
|
|
3711
3708
|
] : [0, 0];
|
|
3712
3709
|
return /* @__PURE__ */ g("tbody", { children: [
|
|
3713
3710
|
i > 0 && /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
|
|
@@ -3782,21 +3779,21 @@ const Ds = (e) => jt({
|
|
|
3782
3779
|
data: { explanation: t }
|
|
3783
3780
|
}) => /* @__PURE__ */ g(X, { className: "mm:w-[225px] mm:m-1 mm:wrap-anywhere", children: [
|
|
3784
3781
|
/* @__PURE__ */ n(
|
|
3785
|
-
|
|
3782
|
+
Ut,
|
|
3786
3783
|
{
|
|
3787
3784
|
style: { visibility: "hidden" },
|
|
3788
3785
|
type: "target",
|
|
3789
|
-
position:
|
|
3786
|
+
position: Zt.Left
|
|
3790
3787
|
}
|
|
3791
3788
|
),
|
|
3792
3789
|
/* @__PURE__ */ n(S, { className: "mm:text-base mm:mb-4 mm:font-semibold", children: e }),
|
|
3793
3790
|
/* @__PURE__ */ n(S, { className: "mm:text-base mm:font-semibold", children: t }),
|
|
3794
3791
|
/* @__PURE__ */ n(
|
|
3795
|
-
|
|
3792
|
+
Ut,
|
|
3796
3793
|
{
|
|
3797
3794
|
style: { visibility: "hidden" },
|
|
3798
3795
|
type: "source",
|
|
3799
|
-
position:
|
|
3796
|
+
position: Zt.Right
|
|
3800
3797
|
}
|
|
3801
3798
|
)
|
|
3802
3799
|
] }), Js = {
|
|
@@ -3806,8 +3803,8 @@ const Ds = (e) => jt({
|
|
|
3806
3803
|
process: (e) => /* @__PURE__ */ n(_e, { title: "Process", ...e }),
|
|
3807
3804
|
combine: (e) => /* @__PURE__ */ n(_e, { title: "Combine", ...e }),
|
|
3808
3805
|
result: (e) => /* @__PURE__ */ n(_e, { title: "Result", ...e })
|
|
3809
|
-
},
|
|
3810
|
-
const a = r.direction === "LR", i = new
|
|
3806
|
+
}, ir = (e, t, r) => {
|
|
3807
|
+
const a = r.direction === "LR", i = new Wt.graphlib.Graph().setDefaultEdgeLabel(() => ({}));
|
|
3811
3808
|
return i.setGraph({
|
|
3812
3809
|
rankdir: r.direction,
|
|
3813
3810
|
nodesep: 10,
|
|
@@ -3821,7 +3818,7 @@ const Ds = (e) => jt({
|
|
|
3821
3818
|
height: ((c = s.measured) == null ? void 0 : c.height) ?? 100
|
|
3822
3819
|
});
|
|
3823
3820
|
}
|
|
3824
|
-
),
|
|
3821
|
+
), Wt.layout(i), {
|
|
3825
3822
|
nodes: e.map((s) => {
|
|
3826
3823
|
var m, u;
|
|
3827
3824
|
const { x: l, y: c } = i.node(s.id);
|
|
@@ -3843,7 +3840,7 @@ const Ds = (e) => jt({
|
|
|
3843
3840
|
initialNodes: r,
|
|
3844
3841
|
initialEdges: a
|
|
3845
3842
|
}) => {
|
|
3846
|
-
const { nodes: i, edges: s } =
|
|
3843
|
+
const { nodes: i, edges: s } = ir(
|
|
3847
3844
|
r,
|
|
3848
3845
|
a,
|
|
3849
3846
|
{ direction: "LR" }
|
|
@@ -3856,7 +3853,7 @@ const Ds = (e) => jt({
|
|
|
3856
3853
|
return ((y = d.measured) == null ? void 0 : y.width) && d.measured.height;
|
|
3857
3854
|
}
|
|
3858
3855
|
)) {
|
|
3859
|
-
const { nodes: d, edges: y } =
|
|
3856
|
+
const { nodes: d, edges: y } = ir(l, u, { direction: "LR" });
|
|
3860
3857
|
c(d), p(y);
|
|
3861
3858
|
}
|
|
3862
3859
|
},
|
|
@@ -3978,7 +3975,7 @@ const Ds = (e) => jt({
|
|
|
3978
3975
|
value: r,
|
|
3979
3976
|
style: a
|
|
3980
3977
|
}) => {
|
|
3981
|
-
const i = !!t, s = i && e, l =
|
|
3978
|
+
const i = !!t, s = i && e, l = Lt();
|
|
3982
3979
|
return /* @__PURE__ */ n("th", { style: a, className: "mm:px-3 mm:py-2 mm:border-spacing-0", children: /* @__PURE__ */ g(M, { className: "mm:gap-1 mm:flex-nowrap mm:items-center", children: [
|
|
3983
3980
|
/* @__PURE__ */ n(
|
|
3984
3981
|
we,
|
|
@@ -4147,7 +4144,7 @@ const Ds = (e) => jt({
|
|
|
4147
4144
|
}
|
|
4148
4145
|
),
|
|
4149
4146
|
/* @__PURE__ */ n(S, { className: "mm:text-sm mm:text-muted-foreground", children: "This resulting data is empty" })
|
|
4150
|
-
] }),
|
|
4147
|
+
] }), lr = ({
|
|
4151
4148
|
direction: e,
|
|
4152
4149
|
visible: t,
|
|
4153
4150
|
scrollContainerRef: r
|
|
@@ -4363,7 +4360,7 @@ const Ds = (e) => jt({
|
|
|
4363
4360
|
),
|
|
4364
4361
|
r && /* @__PURE__ */ g(ke, { children: [
|
|
4365
4362
|
/* @__PURE__ */ n(
|
|
4366
|
-
|
|
4363
|
+
lr,
|
|
4367
4364
|
{
|
|
4368
4365
|
direction: "left",
|
|
4369
4366
|
visible: z,
|
|
@@ -4371,7 +4368,7 @@ const Ds = (e) => jt({
|
|
|
4371
4368
|
}
|
|
4372
4369
|
),
|
|
4373
4370
|
/* @__PURE__ */ n(
|
|
4374
|
-
|
|
4371
|
+
lr,
|
|
4375
4372
|
{
|
|
4376
4373
|
direction: "right",
|
|
4377
4374
|
visible: T,
|
|
@@ -4394,7 +4391,7 @@ const Ds = (e) => jt({
|
|
|
4394
4391
|
);
|
|
4395
4392
|
}
|
|
4396
4393
|
), hi = ({ flowDataId: e }) => {
|
|
4397
|
-
const t =
|
|
4394
|
+
const t = zt(), r = ae(), { data: a } = G({
|
|
4398
4395
|
queryKey: ["feedback", e],
|
|
4399
4396
|
queryFn: async () => {
|
|
4400
4397
|
if (!e || !$) return null;
|
|
@@ -4467,7 +4464,7 @@ const Ds = (e) => jt({
|
|
|
4467
4464
|
] }) }) }), bi = () => /* @__PURE__ */ n(K, { children: /* @__PURE__ */ n(M, { className: "mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none", children: /* @__PURE__ */ g(M, { className: "mm:flex-1 mm:gap-1 mm:flex-nowrap mm:overflow-hidden", children: [
|
|
4468
4465
|
/* @__PURE__ */ n(F, { className: "mm:items-center mm:justify-center mm:flex-[0_0_30px]", children: /* @__PURE__ */ n(he, { className: "mm:size-3 mm:border-1" }) }),
|
|
4469
4466
|
/* @__PURE__ */ n(we, { className: "mm:truncate mm:flex-1 mm:font-semibold", children: "Data report in creation" })
|
|
4470
|
-
] }) }) }),
|
|
4467
|
+
] }) }) }), cr = ({
|
|
4471
4468
|
loading: e,
|
|
4472
4469
|
result: t
|
|
4473
4470
|
}) => {
|
|
@@ -4509,7 +4506,7 @@ const Ds = (e) => jt({
|
|
|
4509
4506
|
/* @__PURE__ */ g(pe, { className: "mm:justify-center mm:md:items-center mm:flex-col mm:sm:flex-row mm:gap-2", children: [
|
|
4510
4507
|
/* @__PURE__ */ n(Re, { children: "YOUR DATA REPORT" }),
|
|
4511
4508
|
!t.public.answer && /* @__PURE__ */ n(
|
|
4512
|
-
|
|
4509
|
+
mr,
|
|
4513
4510
|
{
|
|
4514
4511
|
explainability: v,
|
|
4515
4512
|
isFullWidth: s
|
|
@@ -4583,7 +4580,7 @@ const Ds = (e) => jt({
|
|
|
4583
4580
|
/* @__PURE__ */ g(pe, { className: "mm:md:items-center mm:flex-col mm:sm:flex-row mm:gap-2", children: [
|
|
4584
4581
|
/* @__PURE__ */ n(Re, { children: "YOUR ANSWER" }),
|
|
4585
4582
|
/* @__PURE__ */ n(
|
|
4586
|
-
|
|
4583
|
+
mr,
|
|
4587
4584
|
{
|
|
4588
4585
|
explainability: v,
|
|
4589
4586
|
isFullWidth: l
|
|
@@ -4604,11 +4601,11 @@ const Ds = (e) => jt({
|
|
|
4604
4601
|
] })
|
|
4605
4602
|
}
|
|
4606
4603
|
) }) }),
|
|
4607
|
-
/* @__PURE__ */ n(
|
|
4604
|
+
/* @__PURE__ */ n(Vt.Root, { open: l, children: /* @__PURE__ */ n(Vt.Content, { children: b }) })
|
|
4608
4605
|
]
|
|
4609
4606
|
}
|
|
4610
4607
|
) : b;
|
|
4611
|
-
},
|
|
4608
|
+
}, mr = ({ explainability: e, isFullWidth: t }) => /* @__PURE__ */ g(
|
|
4612
4609
|
M,
|
|
4613
4610
|
{
|
|
4614
4611
|
className: k(
|
|
@@ -4640,7 +4637,7 @@ const Ds = (e) => jt({
|
|
|
4640
4637
|
)
|
|
4641
4638
|
] }),
|
|
4642
4639
|
/* @__PURE__ */ n(
|
|
4643
|
-
|
|
4640
|
+
Pt,
|
|
4644
4641
|
{
|
|
4645
4642
|
label: (e == null ? void 0 : e.confidence_score_reason) ?? "Work in progress...",
|
|
4646
4643
|
className: "mm:w-[400px]",
|
|
@@ -4672,7 +4669,7 @@ const Ds = (e) => jt({
|
|
|
4672
4669
|
className: "mm:items-center mm:justify-center mm:flex-[0_0_30px]",
|
|
4673
4670
|
children: e
|
|
4674
4671
|
}
|
|
4675
|
-
), vi = () => /* @__PURE__ */ n(yo, { children: /* @__PURE__ */ n(he, { className: "mm:size-2" }) }, "loading"), wi = ({ status: e }) => /* @__PURE__ */ n(yo, { children: e === "success" ? /* @__PURE__ */ n(ms, { color: "green" }) : /* @__PURE__ */ n(ds, { color: "red" }) }, "done"),
|
|
4672
|
+
), vi = () => /* @__PURE__ */ n(yo, { children: /* @__PURE__ */ n(he, { className: "mm:size-2" }) }, "loading"), wi = ({ status: e }) => /* @__PURE__ */ n(yo, { children: e === "success" ? /* @__PURE__ */ n(ms, { color: "green" }) : /* @__PURE__ */ n(ds, { color: "red" }) }, "done"), dr = ({ loading: e, result: t, children: r }) => /* @__PURE__ */ n(M, { className: "mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none", children: /* @__PURE__ */ g(M, { className: "mm:flex-1 mm:gap-1 mm:flex-nowrap mm:overflow-hidden", children: [
|
|
4676
4673
|
/* @__PURE__ */ n(De, { mode: "wait", children: e || !t ? /* @__PURE__ */ n(vi, {}) : /* @__PURE__ */ n(wi, { status: t.status }) }),
|
|
4677
4674
|
/* @__PURE__ */ n(we, { className: "mm:truncate mm:flex-1 mm:font-semibold", children: r })
|
|
4678
4675
|
] }) }), xi = Y({
|
|
@@ -4851,7 +4848,7 @@ const ot = ({
|
|
|
4851
4848
|
"#ff7c43",
|
|
4852
4849
|
"#ffa600"
|
|
4853
4850
|
];
|
|
4854
|
-
function*
|
|
4851
|
+
function* $t(e = Di(Ni)) {
|
|
4855
4852
|
const t = /* @__PURE__ */ new Set();
|
|
4856
4853
|
for (; ; ) {
|
|
4857
4854
|
t.size === e.length && t.clear();
|
|
@@ -4863,10 +4860,10 @@ const ji = ({
|
|
|
4863
4860
|
visualization: e
|
|
4864
4861
|
}) => {
|
|
4865
4862
|
var i;
|
|
4866
|
-
const { data: t, configuration: r } = e, a =
|
|
4863
|
+
const { data: t, configuration: r } = e, a = $t();
|
|
4867
4864
|
return /* @__PURE__ */ n(et, { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ g(en, { data: t, margin: { left: 20, bottom: 40, top: 30 }, children: [
|
|
4868
4865
|
/* @__PURE__ */ n(
|
|
4869
|
-
|
|
4866
|
+
Ft,
|
|
4870
4867
|
{
|
|
4871
4868
|
vertical: !1,
|
|
4872
4869
|
stroke: "var(--mm-color-muted-foreground)"
|
|
@@ -4874,7 +4871,7 @@ const ji = ({
|
|
|
4874
4871
|
),
|
|
4875
4872
|
/* @__PURE__ */ n(tt, { cursor: !1, content: /* @__PURE__ */ n(ot, {}) }),
|
|
4876
4873
|
/* @__PURE__ */ n(
|
|
4877
|
-
|
|
4874
|
+
It,
|
|
4878
4875
|
{
|
|
4879
4876
|
name: r.xAxisLabel || r.dimensionDataKey,
|
|
4880
4877
|
dataKey: r.dimensionDataKey,
|
|
@@ -4899,7 +4896,7 @@ const ji = ({
|
|
|
4899
4896
|
}
|
|
4900
4897
|
),
|
|
4901
4898
|
/* @__PURE__ */ n(
|
|
4902
|
-
|
|
4899
|
+
At,
|
|
4903
4900
|
{
|
|
4904
4901
|
label: {
|
|
4905
4902
|
value: r.yAxisLabel,
|
|
@@ -4950,7 +4947,7 @@ const ji = ({
|
|
|
4950
4947
|
visualization: e
|
|
4951
4948
|
}) => {
|
|
4952
4949
|
var i;
|
|
4953
|
-
const { data: t, configuration: r } = e, a =
|
|
4950
|
+
const { data: t, configuration: r } = e, a = $t();
|
|
4954
4951
|
return /* @__PURE__ */ n(et, { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ g(on, { data: t, margin: { left: 20, bottom: 40, top: 30 }, children: [
|
|
4955
4952
|
/* @__PURE__ */ n(
|
|
4956
4953
|
tt,
|
|
@@ -4963,7 +4960,7 @@ const ji = ({
|
|
|
4963
4960
|
}
|
|
4964
4961
|
),
|
|
4965
4962
|
/* @__PURE__ */ n(
|
|
4966
|
-
|
|
4963
|
+
Ft,
|
|
4967
4964
|
{
|
|
4968
4965
|
vertical: !1,
|
|
4969
4966
|
stroke: "var(--mm-color-muted-foreground)"
|
|
@@ -4986,7 +4983,7 @@ const ji = ({
|
|
|
4986
4983
|
);
|
|
4987
4984
|
}),
|
|
4988
4985
|
/* @__PURE__ */ n(
|
|
4989
|
-
|
|
4986
|
+
It,
|
|
4990
4987
|
{
|
|
4991
4988
|
dataKey: r.dimensionDataKey,
|
|
4992
4989
|
label: {
|
|
@@ -5010,7 +5007,7 @@ const ji = ({
|
|
|
5010
5007
|
}
|
|
5011
5008
|
),
|
|
5012
5009
|
/* @__PURE__ */ n(
|
|
5013
|
-
|
|
5010
|
+
At,
|
|
5014
5011
|
{
|
|
5015
5012
|
label: {
|
|
5016
5013
|
value: r.yAxisLabel,
|
|
@@ -5035,7 +5032,7 @@ const ji = ({
|
|
|
5035
5032
|
}, zi = ({
|
|
5036
5033
|
visualization: e
|
|
5037
5034
|
}) => {
|
|
5038
|
-
const { data: t, configuration: r } = e, a =
|
|
5035
|
+
const { data: t, configuration: r } = e, a = $t();
|
|
5039
5036
|
return /* @__PURE__ */ n(et, { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ g(an, { children: [
|
|
5040
5037
|
/* @__PURE__ */ n(tt, { cursor: !1, content: /* @__PURE__ */ n(ot, {}) }),
|
|
5041
5038
|
/* @__PURE__ */ n(
|
|
@@ -5077,7 +5074,7 @@ const ji = ({
|
|
|
5077
5074
|
var a, i;
|
|
5078
5075
|
const { data: t, configuration: r } = e;
|
|
5079
5076
|
return /* @__PURE__ */ n(et, { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ g(cn, { data: t, margin: { left: 20, bottom: 30 }, children: [
|
|
5080
|
-
/* @__PURE__ */ n(
|
|
5077
|
+
/* @__PURE__ */ n(Ft, { stroke: "var(--mm-color-muted-foreground)" }),
|
|
5081
5078
|
/* @__PURE__ */ n(
|
|
5082
5079
|
tt,
|
|
5083
5080
|
{
|
|
@@ -5089,7 +5086,7 @@ const ji = ({
|
|
|
5089
5086
|
}
|
|
5090
5087
|
),
|
|
5091
5088
|
/* @__PURE__ */ n(
|
|
5092
|
-
|
|
5089
|
+
It,
|
|
5093
5090
|
{
|
|
5094
5091
|
dataKey: r.dimensionDataKey,
|
|
5095
5092
|
name: r.xAxisLabel || r.dimensionDataKey,
|
|
@@ -5114,7 +5111,7 @@ const ji = ({
|
|
|
5114
5111
|
}
|
|
5115
5112
|
),
|
|
5116
5113
|
/* @__PURE__ */ n(
|
|
5117
|
-
|
|
5114
|
+
At,
|
|
5118
5115
|
{
|
|
5119
5116
|
dataKey: (a = r.valueColumns) == null ? void 0 : a[0],
|
|
5120
5117
|
name: r.yAxisLabel || ((i = r.valueColumns) == null ? void 0 : i[0]),
|
|
@@ -5207,7 +5204,7 @@ const ji = ({
|
|
|
5207
5204
|
]
|
|
5208
5205
|
}
|
|
5209
5206
|
),
|
|
5210
|
-
/* @__PURE__ */ n(
|
|
5207
|
+
/* @__PURE__ */ n(Pt, { label: "Copy chart to clipboard", children: /* @__PURE__ */ n(
|
|
5211
5208
|
U,
|
|
5212
5209
|
{
|
|
5213
5210
|
className: "screenshot-ignore",
|
|
@@ -5266,7 +5263,7 @@ const ji = ({
|
|
|
5266
5263
|
] }) }) }), Ei = () => /* @__PURE__ */ n(K, { children: /* @__PURE__ */ n(M, { className: "mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none", children: /* @__PURE__ */ g(M, { className: "mm:flex-1 mm:gap-1 mm:flex-nowrap mm:overflow-hidden", children: [
|
|
5267
5264
|
/* @__PURE__ */ n(F, { className: "mm:items-center mm:justify-center mm:flex-[0_0_30px]", children: /* @__PURE__ */ n(he, { className: "mm:size-3 mm:border-1" }) }),
|
|
5268
5265
|
/* @__PURE__ */ n(we, { className: "mm:truncate mm:flex-1 mm:font-semibold", children: "Visualization in creation" })
|
|
5269
|
-
] }) }) }),
|
|
5266
|
+
] }) }) }), ur = ({
|
|
5270
5267
|
loading: e,
|
|
5271
5268
|
result: t
|
|
5272
5269
|
}) => e || !t ? /* @__PURE__ */ n(Ei, {}) : t.status === "error" ? /* @__PURE__ */ n(Ti, {}) : /* @__PURE__ */ n(
|
|
@@ -5313,8 +5310,8 @@ const ji = ({
|
|
|
5313
5310
|
case "getAvailableColumnsForTable":
|
|
5314
5311
|
case "valueBasedColumnSearch": {
|
|
5315
5312
|
const c = Yi[t.toolName], m = Li(r) % c.length;
|
|
5316
|
-
return a ? /* @__PURE__ */ n(K, { children: /* @__PURE__ */ n(
|
|
5317
|
-
|
|
5313
|
+
return a ? /* @__PURE__ */ n(K, { children: /* @__PURE__ */ n(dr, { loading: !0, result: void 0, children: c[m] }, r) }) : /* @__PURE__ */ n(K, { children: /* @__PURE__ */ n(
|
|
5314
|
+
dr,
|
|
5318
5315
|
{
|
|
5319
5316
|
loading: !1,
|
|
5320
5317
|
result: (i = io.safeParse(t.result).data) == null ? void 0 : i.result,
|
|
@@ -5325,14 +5322,14 @@ const ji = ({
|
|
|
5325
5322
|
}
|
|
5326
5323
|
case "generateDataReport":
|
|
5327
5324
|
return a ? /* @__PURE__ */ n(
|
|
5328
|
-
|
|
5325
|
+
cr,
|
|
5329
5326
|
{
|
|
5330
5327
|
loading: !0,
|
|
5331
5328
|
result: void 0
|
|
5332
5329
|
},
|
|
5333
5330
|
r
|
|
5334
5331
|
) : /* @__PURE__ */ n(
|
|
5335
|
-
|
|
5332
|
+
cr,
|
|
5336
5333
|
{
|
|
5337
5334
|
loading: !1,
|
|
5338
5335
|
result: (s = Wr.safeParse(
|
|
@@ -5343,14 +5340,14 @@ const ji = ({
|
|
|
5343
5340
|
);
|
|
5344
5341
|
case "generateVisualization":
|
|
5345
5342
|
return a ? /* @__PURE__ */ n(
|
|
5346
|
-
|
|
5343
|
+
ur,
|
|
5347
5344
|
{
|
|
5348
5345
|
loading: !0,
|
|
5349
5346
|
result: void 0
|
|
5350
5347
|
},
|
|
5351
5348
|
r
|
|
5352
5349
|
) : /* @__PURE__ */ n(
|
|
5353
|
-
|
|
5350
|
+
ur,
|
|
5354
5351
|
{
|
|
5355
5352
|
loading: !1,
|
|
5356
5353
|
result: (l = Qr.safeParse(
|
|
@@ -5529,13 +5526,13 @@ const ji = ({
|
|
|
5529
5526
|
return ((i = a.data) == null ? void 0 : i.length) === 0 ? 1e3 : !1;
|
|
5530
5527
|
}
|
|
5531
5528
|
});
|
|
5532
|
-
}, Qi = ne.create(F),
|
|
5529
|
+
}, Qi = ne.create(F), fr = (e) => e ? "14px" : "8px", Xi = (e) => e.replace(/[^a-zA-Z0-9.,_ ]/g, ""), Ji = me(
|
|
5533
5530
|
({ isLargeBullet: e = !1 }) => /* @__PURE__ */ n(
|
|
5534
5531
|
"div",
|
|
5535
5532
|
{
|
|
5536
5533
|
style: {
|
|
5537
|
-
width:
|
|
5538
|
-
height:
|
|
5534
|
+
width: fr(e),
|
|
5535
|
+
height: fr(e),
|
|
5539
5536
|
borderRadius: "100%",
|
|
5540
5537
|
border: "2px solid",
|
|
5541
5538
|
position: "absolute",
|
|
@@ -5588,7 +5585,7 @@ const ji = ({
|
|
|
5588
5585
|
]
|
|
5589
5586
|
}
|
|
5590
5587
|
), el = ({ forceExpanded: e, timelineItems: t }) => {
|
|
5591
|
-
const [r, a] = R(!1), i = e ? !0 : r, s =
|
|
5588
|
+
const [r, a] = R(!1), i = e ? !0 : r, s = Lt(), { messagesRef: l } = Le(), c = (m) => {
|
|
5592
5589
|
var v;
|
|
5593
5590
|
const u = s.getRootNode(), p = u == null ? void 0 : u.getElementById(m);
|
|
5594
5591
|
p && ((v = l.current) == null || v.scrollTo({
|