@sisense/sdk-ui-preact 2.7.0 → 2.9.0
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/ai.cjs +31 -31
- package/dist/ai.js +139 -138
- package/dist/index.cjs +20 -20
- package/dist/index.js +5955 -5761
- package/dist/use-common-filters-wo5IRF5u-2132b36d.cjs +1005 -0
- package/dist/{use-common-filters-CVgB69Xe-f1301eeb.js → use-common-filters-wo5IRF5u-9c3d3d14.js} +36674 -34151
- package/package.json +5 -5
- package/dist/use-common-filters-CVgB69Xe-6c66034f.cjs +0 -1021
package/dist/ai.js
CHANGED
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
enumerable: !0,
|
|
4
|
-
configurable: !0,
|
|
5
|
-
writable: !0,
|
|
6
|
-
value: r
|
|
7
|
-
}) : e[t] = r, O = (e, t) => {
|
|
8
|
-
for (var r in t || (t = {}))
|
|
9
|
-
ar.call(t, r) && St(e, r, t[r]);
|
|
10
|
-
if (Pe)
|
|
11
|
-
for (var r of Pe(t))
|
|
12
|
-
ir.call(t, r) && St(e, r, t[r]);
|
|
13
|
-
return e;
|
|
14
|
-
}, K = (e, t) => $a(e, Va(t)), Ja = (e, t) => {
|
|
15
|
-
var r = {};
|
|
16
|
-
for (var a in e)
|
|
17
|
-
ar.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
18
|
-
if (e != null && Pe)
|
|
19
|
-
for (var a of Pe(e))
|
|
20
|
-
t.indexOf(a) < 0 && ir.call(e, a) && (r[a] = e[a]);
|
|
21
|
-
return r;
|
|
22
|
-
};
|
|
23
|
-
let or = class extends Yt {
|
|
1
|
+
import { w as Ve, v as Yt, c1 as Jr, f3 as Xr, f4 as Kr, f5 as ea, f6 as ta, f7 as ra, f8 as aa, l as Me, cs as qe, cK as ia, cJ as oa, bJ as na, bo as Ct, f9 as Se, cA as at, b2 as la, aY as ze, fa as da, fb as sa, cE as Ut, b as Qt, ae as $t, a9 as Ye, B as ca, p as Ue, fc as pa, fd as ua, I as me, fe as Ft, J as ga, h as f, i as Vt, k as I, H as n, R as E, ad as H, ff as ha, aE as ma, am as fa, T as G, bs as be, o as j, aB as ct, j as R, y as xe, ap as Jt, a5 as ba, bv as xa, A as se, fg as ka, as as ye, X as Je, u as we, fh as ya, bF as wa, bH as _a, cM as ve, dv as Xt, aq as pt, q as Ca, fi as Ie, a4 as _, c$ as q, r as v, c0 as va, fj as vt, a as Ge, fk as Sa, fl as Ma, fm as Kt, fn as Da, fo as Ia, cf as Aa, cg as La, fp as Ta, fq as Na, fr as ja, dP as Oa, ce as Ea, fs as za, c_ as er, ft as Ra, dm as Za, b6 as Wa, eA as qa, _ as Ga, aZ as tr, a_ as rr, fu as Pa, cx as Ba, fv as Ha, eC as Ya, cX as Ua, fw as Qa } from "./use-common-filters-wo5IRF5u-9c3d3d14.js";
|
|
2
|
+
let ar = class extends Yt {
|
|
24
3
|
constructor(t, r) {
|
|
25
4
|
var a;
|
|
26
|
-
super((a = t.jaql.title) !== null && a !== void 0 ? a : "", r), this.__serializable = "JaqlElement", this.expression = t.jaql.dim || t.jaql.formula, this.metadataItem = t, t.jaql.agg ? this.aggregation = t.jaql.agg : delete this.aggregation, t.jaql.formula ? this.formula = t.jaql.formula : delete this.formula, t.jaql.sort ? this.sortType =
|
|
5
|
+
super((a = t.jaql.title) !== null && a !== void 0 ? a : "", r), this.__serializable = "JaqlElement", this.expression = t.jaql.dim || t.jaql.formula, this.metadataItem = t, t.jaql.agg ? this.aggregation = t.jaql.agg : delete this.aggregation, t.jaql.formula ? this.formula = t.jaql.formula : delete this.formula, t.jaql.sort ? this.sortType = Jr(t.jaql.sort) : delete this.sortType, this.skipValidation = !0;
|
|
27
6
|
}
|
|
28
7
|
get id() {
|
|
29
8
|
return this.expression;
|
|
@@ -39,23 +18,23 @@ let or = class extends Yt {
|
|
|
39
18
|
return t.metadataItem = this.metadataItem, t.type = this.type, t;
|
|
40
19
|
}
|
|
41
20
|
};
|
|
42
|
-
const
|
|
21
|
+
const $a = {
|
|
43
22
|
text: Ve.TextAttribute,
|
|
44
23
|
numeric: Ve.NumericAttribute,
|
|
45
24
|
datetime: Ve.DateLevel
|
|
46
25
|
};
|
|
47
|
-
function
|
|
26
|
+
function Fa(e) {
|
|
48
27
|
var t;
|
|
49
|
-
return new
|
|
28
|
+
return new ar(e, (t = $a[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
|
|
50
29
|
}
|
|
51
|
-
function
|
|
30
|
+
function ir(e) {
|
|
52
31
|
const {
|
|
53
32
|
jaql: t
|
|
54
33
|
} = e;
|
|
55
34
|
if (t.formula)
|
|
56
|
-
return
|
|
57
|
-
const r =
|
|
58
|
-
return "agg" in t && t.dim && t.datatype ?
|
|
35
|
+
return Xr(t);
|
|
36
|
+
const r = Kr(t);
|
|
37
|
+
return "agg" in t && t.dim && t.datatype ? ea({
|
|
59
38
|
expression: t.dim,
|
|
60
39
|
dataType: t.datatype,
|
|
61
40
|
agg: t.agg || "",
|
|
@@ -64,7 +43,7 @@ function nr(e) {
|
|
|
64
43
|
sort: t.sort,
|
|
65
44
|
title: t.title,
|
|
66
45
|
dataSource: t.datasource
|
|
67
|
-
}) : t.dim && t.datatype ?
|
|
46
|
+
}) : t.dim && t.datatype ? ta({
|
|
68
47
|
expression: t.dim,
|
|
69
48
|
dataType: t.datatype,
|
|
70
49
|
granularity: r,
|
|
@@ -72,9 +51,30 @@ function nr(e) {
|
|
|
72
51
|
title: t.title,
|
|
73
52
|
panel: e.panel,
|
|
74
53
|
dataSource: t.datasource
|
|
75
|
-
}) :
|
|
54
|
+
}) : Fa(e);
|
|
76
55
|
}
|
|
77
|
-
const
|
|
56
|
+
const Va = (e) => "dashboardOid" in e && "widgetOid" in e;
|
|
57
|
+
var Ja = Object.defineProperty, Xa = Object.defineProperties, Ka = Object.getOwnPropertyDescriptors, Pe = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ja(e, t, {
|
|
58
|
+
enumerable: !0,
|
|
59
|
+
configurable: !0,
|
|
60
|
+
writable: !0,
|
|
61
|
+
value: r
|
|
62
|
+
}) : e[t] = r, O = (e, t) => {
|
|
63
|
+
for (var r in t || (t = {}))
|
|
64
|
+
or.call(t, r) && St(e, r, t[r]);
|
|
65
|
+
if (Pe)
|
|
66
|
+
for (var r of Pe(t))
|
|
67
|
+
nr.call(t, r) && St(e, r, t[r]);
|
|
68
|
+
return e;
|
|
69
|
+
}, K = (e, t) => Xa(e, Ka(t)), ei = (e, t) => {
|
|
70
|
+
var r = {};
|
|
71
|
+
for (var a in e)
|
|
72
|
+
or.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
73
|
+
if (e != null && Pe)
|
|
74
|
+
for (var a of Pe(e))
|
|
75
|
+
t.indexOf(a) < 0 && nr.call(e, a) && (r[a] = e[a]);
|
|
76
|
+
return r;
|
|
77
|
+
};
|
|
78
78
|
function ti(e) {
|
|
79
79
|
return e.replace(/\s+/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
80
80
|
}
|
|
@@ -82,7 +82,7 @@ function ri(e) {
|
|
|
82
82
|
return !e || !e.jaql.datasource.title || !e.jaql.metadata.length;
|
|
83
83
|
}
|
|
84
84
|
function lr(e) {
|
|
85
|
-
if (![...
|
|
85
|
+
if (![...aa, "pivot", "pivot2"].includes(e))
|
|
86
86
|
throw new Me("errors.chartTypeNotSupported", {
|
|
87
87
|
chartType: e
|
|
88
88
|
});
|
|
@@ -588,7 +588,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
588
588
|
}, dr = (e, t) => ni[t][e].replace(/{{(.*?)Tmpl}}/g, (r, a) => dr(`${a}Tmpl`, t)), li = (e, t) => e.replace(/{{(.*?)}}/g, (r, a) => a in t ? t[a] : (console.warn(`Placeholder ${a} not found in data`), r)), it = (e, t, r = "react") => {
|
|
589
589
|
const a = dr(e, r);
|
|
590
590
|
return ii(li(a, t));
|
|
591
|
-
}, di = () => Object.values(sa).map((e) =>
|
|
591
|
+
}, di = () => Object.values(sa).map((e) => Ut.aggregationToJAQL(e)).join("|"), sr = (e) => {
|
|
592
592
|
const {
|
|
593
593
|
formula: t,
|
|
594
594
|
context: r,
|
|
@@ -660,7 +660,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
660
660
|
`, r += " ".repeat(t), r += ` '${e.formula}',
|
|
661
661
|
`, r += " ".repeat(t), r += ` {
|
|
662
662
|
`, Object.entries(e.context).forEach(([a, i]) => {
|
|
663
|
-
const l =
|
|
663
|
+
const l = Qt(i.table || ot, i.column || ot, void 0, "DM");
|
|
664
664
|
r += " ".repeat(t), r += ` '${a.slice(1, -1)}': ${l},
|
|
665
665
|
`;
|
|
666
666
|
}), r += " ".repeat(t), r += ` }
|
|
@@ -674,7 +674,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
674
674
|
title: l
|
|
675
675
|
} = e;
|
|
676
676
|
let d;
|
|
677
|
-
return r && a && (d =
|
|
677
|
+
return r && a && (d = Qt(r, a, t, "DM")), i && r && a && l && (d = `measureFactory.${Ut.aggregationFromJAQL(i)}(${d}, '${Se(l)}')`), d || ot;
|
|
678
678
|
}, gi = (e, t) => {
|
|
679
679
|
const r = e.jaql(!1).jaql;
|
|
680
680
|
return "formula" in r ? pi(r, t) : ui(r);
|
|
@@ -683,7 +683,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
683
683
|
return "";
|
|
684
684
|
if (typeof e == "string")
|
|
685
685
|
return `'${Se(e)}'`;
|
|
686
|
-
if (e instanceof
|
|
686
|
+
if (e instanceof ar)
|
|
687
687
|
return gi(e, t);
|
|
688
688
|
if (e instanceof Yt)
|
|
689
689
|
return e.composeCode || "";
|
|
@@ -755,7 +755,7 @@ const At = `
|
|
|
755
755
|
};
|
|
756
756
|
return it(r.chart, i, t);
|
|
757
757
|
}
|
|
758
|
-
if (
|
|
758
|
+
if (ia(e)) {
|
|
759
759
|
const a = Mt(e), i = {
|
|
760
760
|
idString: e.id,
|
|
761
761
|
widgetTypeString: "pivot",
|
|
@@ -769,7 +769,7 @@ const At = `
|
|
|
769
769
|
};
|
|
770
770
|
return it(r.pivot, i, t);
|
|
771
771
|
}
|
|
772
|
-
if (
|
|
772
|
+
if (oa(e))
|
|
773
773
|
return "/** Custom widget code not supported yet */";
|
|
774
774
|
throw new Me("errors.otherWidgetTypesNotSupported");
|
|
775
775
|
}, Ci = ({
|
|
@@ -780,7 +780,7 @@ const At = `
|
|
|
780
780
|
pivot: ki
|
|
781
781
|
}), vi = (e) => ({
|
|
782
782
|
dataOptions: {
|
|
783
|
-
columns: e.map(
|
|
783
|
+
columns: e.map(ir)
|
|
784
784
|
}
|
|
785
785
|
}), Si = Object.freeze({
|
|
786
786
|
convolution: {
|
|
@@ -823,12 +823,12 @@ const At = `
|
|
|
823
823
|
name: o.column.name
|
|
824
824
|
}
|
|
825
825
|
};
|
|
826
|
-
const s =
|
|
826
|
+
const s = ir(p);
|
|
827
827
|
if (p.panel === "measures")
|
|
828
828
|
return K(O({}, o), {
|
|
829
829
|
column: s
|
|
830
830
|
});
|
|
831
|
-
if (
|
|
831
|
+
if (la(s.type)) {
|
|
832
832
|
const m = (b = (x = p.format) == null ? void 0 : x.mask) == null ? void 0 : b[p.jaql.level];
|
|
833
833
|
if (m)
|
|
834
834
|
return K(O({}, o), {
|
|
@@ -893,7 +893,7 @@ const At = `
|
|
|
893
893
|
text: Nt(t, "x")
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
}, r) : i = ze(
|
|
896
|
+
}, r) : i = ze(da(), r), i;
|
|
897
897
|
}, Ii = (e, t, r = !0) => {
|
|
898
898
|
const {
|
|
899
899
|
chartFamily: a,
|
|
@@ -920,7 +920,7 @@ const Li = (e) => {
|
|
|
920
920
|
context: d,
|
|
921
921
|
formula: u,
|
|
922
922
|
filter: c
|
|
923
|
-
} = i, g =
|
|
923
|
+
} = i, g = ei(i, ["type", "context", "formula", "filter"]);
|
|
924
924
|
return K(O({}, r), {
|
|
925
925
|
jaql: O({
|
|
926
926
|
// Copy dimension properties from rows dimension
|
|
@@ -943,7 +943,7 @@ const Li = (e) => {
|
|
|
943
943
|
chartType: "table",
|
|
944
944
|
chartFamily: "table",
|
|
945
945
|
axesMapping: {}
|
|
946
|
-
}, Ni = (e) => e.map((t) =>
|
|
946
|
+
}, Ni = (e) => e.map((t) => na(t.jaql)), ji = (e) => e.reduce((t, r) => {
|
|
947
947
|
if ((r.panel === "scope" || r.jaql.filter) && t.metadataFilters.push(Ct(r)), r.panel !== "scope") {
|
|
948
948
|
const a = Ct(r);
|
|
949
949
|
delete a.jaql.filter, t.metadataColumns.push(a);
|
|
@@ -966,7 +966,7 @@ const Li = (e) => {
|
|
|
966
966
|
datasource: u
|
|
967
967
|
} = a, c = K(O({}, u), {
|
|
968
968
|
type: u.type || "elasticube"
|
|
969
|
-
}), g =
|
|
969
|
+
}), g = ra(c), x = Li(d).map((M) => ci(M)).map((M) => K(O({}, M), {
|
|
970
970
|
jaql: K(O({}, M.jaql), {
|
|
971
971
|
datasource: g
|
|
972
972
|
})
|
|
@@ -997,7 +997,7 @@ const Li = (e) => {
|
|
|
997
997
|
console.error(r);
|
|
998
998
|
return;
|
|
999
999
|
}
|
|
1000
|
-
}, Ae = (e, t) => Oi(e, t), Ei = (e) =>
|
|
1000
|
+
}, Ae = (e, t) => Oi(e, t), Ei = (e) => Va(e) ? wi(e) : Ci(e), fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1001
1001
|
__proto__: null,
|
|
1002
1002
|
toWidgetCode: Ei,
|
|
1003
1003
|
toWidgetProps: Ae
|
|
@@ -1083,15 +1083,16 @@ class Wi extends Ta {
|
|
|
1083
1083
|
})), this.currentMutation.addObserver(this), this.currentMutation.execute();
|
|
1084
1084
|
}
|
|
1085
1085
|
updateResult() {
|
|
1086
|
-
const t = this.currentMutation ? this.currentMutation.state : ja(), r = T(D({}, t), {
|
|
1087
|
-
isLoading:
|
|
1086
|
+
const t = this.currentMutation ? this.currentMutation.state : ja(), r = t.status === "loading", a = T(D({}, t), {
|
|
1087
|
+
isLoading: r,
|
|
1088
|
+
isPending: r,
|
|
1088
1089
|
isSuccess: t.status === "success",
|
|
1089
1090
|
isError: t.status === "error",
|
|
1090
1091
|
isIdle: t.status === "idle",
|
|
1091
1092
|
mutate: this.mutate,
|
|
1092
1093
|
reset: this.reset
|
|
1093
1094
|
});
|
|
1094
|
-
this.currentResult =
|
|
1095
|
+
this.currentResult = a;
|
|
1095
1096
|
}
|
|
1096
1097
|
notify(t) {
|
|
1097
1098
|
Kt.batch(() => {
|
|
@@ -1159,7 +1160,7 @@ class Gi {
|
|
|
1159
1160
|
}, this.httpClient = t;
|
|
1160
1161
|
}
|
|
1161
1162
|
}
|
|
1162
|
-
const Pi = new
|
|
1163
|
+
const Pi = new $t({
|
|
1163
1164
|
defaultOptions: {
|
|
1164
1165
|
queries: {
|
|
1165
1166
|
refetchOnWindowFocus: !1,
|
|
@@ -1238,7 +1239,7 @@ function Yi(e) {
|
|
|
1238
1239
|
return e.verbosity && (c.verbosity = e.verbosity), c;
|
|
1239
1240
|
}
|
|
1240
1241
|
}
|
|
1241
|
-
const
|
|
1242
|
+
const Qe = (e, t = !0) => {
|
|
1242
1243
|
const r = G(() => Yi(e), [e]), a = ee(), {
|
|
1243
1244
|
data: i,
|
|
1244
1245
|
error: l,
|
|
@@ -1265,13 +1266,13 @@ const Ue = (e, t = !0) => {
|
|
|
1265
1266
|
g();
|
|
1266
1267
|
}, [g])
|
|
1267
1268
|
};
|
|
1268
|
-
},
|
|
1269
|
+
}, Ui = (e) => {
|
|
1269
1270
|
const t = e, {
|
|
1270
1271
|
enabled: r
|
|
1271
1272
|
} = t, a = ur(t, ["enabled"]);
|
|
1272
|
-
return
|
|
1273
|
-
}, xd = ct("useGetNlgInsights")(
|
|
1274
|
-
function
|
|
1273
|
+
return Qe(a, r);
|
|
1274
|
+
}, xd = ct("useGetNlgInsights")(Ui), Qi = ["indicator", "column", "line", "table", "pie", "bar"];
|
|
1275
|
+
function $i(e) {
|
|
1275
1276
|
const {
|
|
1276
1277
|
dataSource: t,
|
|
1277
1278
|
query: r,
|
|
@@ -1283,15 +1284,15 @@ function Fi(e) {
|
|
|
1283
1284
|
text: r,
|
|
1284
1285
|
// Timezone is not used by AI API, but it is currently required by the endpoint
|
|
1285
1286
|
timezone: "UTC",
|
|
1286
|
-
chartTypes: a ?? [...
|
|
1287
|
+
chartTypes: a ?? [...Qi]
|
|
1287
1288
|
}
|
|
1288
1289
|
};
|
|
1289
1290
|
}
|
|
1290
|
-
const
|
|
1291
|
+
const Fi = (e) => {
|
|
1291
1292
|
const {
|
|
1292
1293
|
contextTitle: t,
|
|
1293
1294
|
request: r
|
|
1294
|
-
} =
|
|
1295
|
+
} = $i(e), a = ee(), {
|
|
1295
1296
|
isLoading: i,
|
|
1296
1297
|
isError: l,
|
|
1297
1298
|
isSuccess: d,
|
|
@@ -1315,7 +1316,7 @@ const $i = (e) => {
|
|
|
1315
1316
|
g();
|
|
1316
1317
|
}, [g])
|
|
1317
1318
|
};
|
|
1318
|
-
}, kd = ct("useGetNlqResult")(
|
|
1319
|
+
}, kd = ct("useGetNlqResult")(Fi), Vi = 4, mr = (e) => {
|
|
1319
1320
|
const {
|
|
1320
1321
|
contextTitle: t,
|
|
1321
1322
|
count: r,
|
|
@@ -1649,7 +1650,7 @@ function uo({
|
|
|
1649
1650
|
})]
|
|
1650
1651
|
});
|
|
1651
1652
|
}
|
|
1652
|
-
function
|
|
1653
|
+
function $e() {
|
|
1653
1654
|
return /* @__PURE__ */ n("div", {
|
|
1654
1655
|
className: "csdk-m-auto",
|
|
1655
1656
|
"aria-label": "loading spinner",
|
|
@@ -1803,7 +1804,7 @@ function wo({
|
|
|
1803
1804
|
width: i == null ? void 0 : i.offsetWidth
|
|
1804
1805
|
},
|
|
1805
1806
|
theme: c,
|
|
1806
|
-
children: [r && /* @__PURE__ */ n(
|
|
1807
|
+
children: [r && /* @__PURE__ */ n($e, {}), !r && !d && u.map((b) => /* @__PURE__ */ n(xo, T(D({}, b), {
|
|
1807
1808
|
alwaysExpanded: x
|
|
1808
1809
|
}), b.title)), d && /* @__PURE__ */ n(yo, {
|
|
1809
1810
|
theme: c,
|
|
@@ -2036,7 +2037,7 @@ const zt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
|
|
|
2036
2037
|
lt: "<",
|
|
2037
2038
|
nbsp: " ",
|
|
2038
2039
|
quot: "“"
|
|
2039
|
-
}, Lo = ["style", "script"], To = ["src", "href", "data", "formAction", "srcDoc", "action"], No = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, jo = /mailto:/i, Oo = /\n{2,}$/, yr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Eo = /^ *> ?/gm, zo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ro = /^ {2,}\n/, Zo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, wr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, _r = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Wo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, qo = /^(?:\n *)*\n/, Go = /\r\n?/g, Po = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Bo = /^\[\^([^\]]+)]/, Ho = /\f/g, Yo = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,
|
|
2040
|
+
}, Lo = ["style", "script"], To = ["src", "href", "data", "formAction", "srcDoc", "action"], No = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, jo = /mailto:/i, Oo = /\n{2,}$/, yr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Eo = /^ *> ?/gm, zo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ro = /^ {2,}\n/, Zo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, wr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, _r = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Wo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, qo = /^(?:\n *)*\n/, Go = /\r\n?/g, Po = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Bo = /^\[\^([^\]]+)]/, Ho = /\f/g, Yo = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Uo = /^\s*?\[(x|\s)\]/, Cr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, vr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Sr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, lt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Qo = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Mr = /^<!--[\s\S]*?(?:-->)/, $o = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Fo = /^\{.*\}$/, Vo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Jo = /^<([^ >]+@[^ >]+)>/, Xo = /^<([^ >]+:\/[^ >]+)>/, Ko = /-([a-z])?/gi, Dr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, en = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, tn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, rn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, an = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, on = /\t/g, nn = /(^ *\||\| *$)/g, ln = /^ *:-+: *$/, dn = /^ *:-+ *$/, sn = /^ *-+: *$/, Fe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", cn = new RegExp(`^([*_])\\1${Fe}\\1\\1(?!\\1)`), pn = new RegExp(`^([*_])${Fe}\\1(?!\\1)`), un = new RegExp(`^(==)${Fe}\\1`), gn = new RegExp(`^(~~)${Fe}\\1`), hn = /^\\([^0-9A-Za-z\s])/, Zt = /\\([^0-9A-Za-z\s])/g, mn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, fn = /^\n+/, bn = /^([ \t]*)/, xn = /\\([^\\])/g, kn = /(?:^|\n)( *)$/, xt = "(?:\\d+\\.)", kt = "(?:[*+-])";
|
|
2040
2041
|
function Ir(e) {
|
|
2041
2042
|
return "( *)(" + (e === 1 ? xt : kt) + ") +";
|
|
2042
2043
|
}
|
|
@@ -2272,7 +2273,7 @@ function En(e = "", t = {}) {
|
|
|
2272
2273
|
const w = h.indexOf("=");
|
|
2273
2274
|
if (w !== -1) {
|
|
2274
2275
|
const C = function(S) {
|
|
2275
|
-
return S.indexOf("-") !== -1 && S.match(
|
|
2276
|
+
return S.indexOf("-") !== -1 && S.match($o) === null && (S = S.replace(Ko, function(L, Z) {
|
|
2276
2277
|
return Z.toUpperCase();
|
|
2277
2278
|
})), S;
|
|
2278
2279
|
}(h.slice(0, w)).trim(), y = function(S) {
|
|
@@ -2282,21 +2283,21 @@ function En(e = "", t = {}) {
|
|
|
2282
2283
|
if (M === "ref")
|
|
2283
2284
|
return m;
|
|
2284
2285
|
const A = m[M] = function(S, L, Z, pe) {
|
|
2285
|
-
return L === "style" ? function(
|
|
2286
|
+
return L === "style" ? function(Q) {
|
|
2286
2287
|
const P = [];
|
|
2287
|
-
let Y = "",
|
|
2288
|
-
if (!
|
|
2288
|
+
let Y = "", $ = !1, B = !1, F = "";
|
|
2289
|
+
if (!Q)
|
|
2289
2290
|
return P;
|
|
2290
|
-
for (let z = 0; z <
|
|
2291
|
-
const W =
|
|
2292
|
-
if (W !== '"' && W !== "'" ||
|
|
2291
|
+
for (let z = 0; z < Q.length; z++) {
|
|
2292
|
+
const W = Q[z];
|
|
2293
|
+
if (W !== '"' && W !== "'" || $ || (B ? W === F && (B = !1, F = "") : (B = !0, F = W)), W === "(" && Y.endsWith("url") ? $ = !0 : W === ")" && $ && ($ = !1), W !== ";" || B || $)
|
|
2293
2294
|
Y += W;
|
|
2294
2295
|
else {
|
|
2295
|
-
const
|
|
2296
|
-
if (
|
|
2297
|
-
const le =
|
|
2296
|
+
const U = Y.trim();
|
|
2297
|
+
if (U) {
|
|
2298
|
+
const le = U.indexOf(":");
|
|
2298
2299
|
if (le > 0) {
|
|
2299
|
-
const ue =
|
|
2300
|
+
const ue = U.slice(0, le).trim(), ke = U.slice(le + 1).trim();
|
|
2300
2301
|
P.push([ue, ke]);
|
|
2301
2302
|
}
|
|
2302
2303
|
}
|
|
@@ -2307,14 +2308,14 @@ function En(e = "", t = {}) {
|
|
|
2307
2308
|
if (V) {
|
|
2308
2309
|
const z = V.indexOf(":");
|
|
2309
2310
|
if (z > 0) {
|
|
2310
|
-
const W = V.slice(0, z).trim(),
|
|
2311
|
-
P.push([W,
|
|
2311
|
+
const W = V.slice(0, z).trim(), U = V.slice(z + 1).trim();
|
|
2312
|
+
P.push([W, U]);
|
|
2312
2313
|
}
|
|
2313
2314
|
}
|
|
2314
2315
|
return P;
|
|
2315
|
-
}(Z).reduce(function(
|
|
2316
|
-
return
|
|
2317
|
-
}, {}) : To.indexOf(L) !== -1 ? pe(Z, S, L) : (Z.match(
|
|
2316
|
+
}(Z).reduce(function(Q, [P, Y]) {
|
|
2317
|
+
return Q[P.replace(/(-[a-z])/g, ($) => $[1].toUpperCase())] = pe(Y, S, P), Q;
|
|
2318
|
+
}, {}) : To.indexOf(L) !== -1 ? pe(Z, S, L) : (Z.match(Fo) && (Z = Z.slice(1, Z.length - 1)), Z === "true" || Z !== "false" && Z);
|
|
2318
2319
|
}(o, C, y, t.sanitizer);
|
|
2319
2320
|
typeof A == "string" && (lt.test(A) || dt.test(A)) && (m[M] = a(A.trim()));
|
|
2320
2321
|
} else
|
|
@@ -2423,7 +2424,7 @@ function En(e = "", t = {}) {
|
|
|
2423
2424
|
}, o.text))
|
|
2424
2425
|
},
|
|
2425
2426
|
[k.gfmTask]: {
|
|
2426
|
-
match: ie(
|
|
2427
|
+
match: ie(Uo),
|
|
2427
2428
|
order: 1,
|
|
2428
2429
|
parse: (o) => ({
|
|
2429
2430
|
completed: o[1].toLowerCase() === "x"
|
|
@@ -2648,7 +2649,7 @@ function En(e = "", t = {}) {
|
|
|
2648
2649
|
match: Ce(mn),
|
|
2649
2650
|
order: 4,
|
|
2650
2651
|
parse: (o) => ({
|
|
2651
|
-
text: o[0].replace(
|
|
2652
|
+
text: o[0].replace(Qo, (p, s) => t.namedCodesToUnicode[s] ? t.namedCodesToUnicode[s] : p)
|
|
2652
2653
|
}),
|
|
2653
2654
|
render: (o) => o.text
|
|
2654
2655
|
},
|
|
@@ -3005,14 +3006,14 @@ function Yn(e) {
|
|
|
3005
3006
|
}
|
|
3006
3007
|
const rt = ca("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Wr = /* @__PURE__ */ Ye({});
|
|
3007
3008
|
process.env.NODE_ENV !== "production" && (Wr.displayName = "DialogContext");
|
|
3008
|
-
const
|
|
3009
|
+
const Un = Ue(pa, {
|
|
3009
3010
|
name: "MuiDialog",
|
|
3010
3011
|
slot: "Backdrop",
|
|
3011
3012
|
overrides: (e, t) => t.backdrop
|
|
3012
3013
|
})({
|
|
3013
3014
|
// Improve scrollable dialog support.
|
|
3014
3015
|
zIndex: -1
|
|
3015
|
-
}),
|
|
3016
|
+
}), Qn = (e) => {
|
|
3016
3017
|
const {
|
|
3017
3018
|
classes: t,
|
|
3018
3019
|
scroll: r,
|
|
@@ -3025,7 +3026,7 @@ const Qn = Qe(pa, {
|
|
|
3025
3026
|
paper: ["paper", `paperScroll${me(r)}`, `paperWidth${me(String(a))}`, i && "paperFullWidth", l && "paperFullScreen"]
|
|
3026
3027
|
};
|
|
3027
3028
|
return va(d, Yn, t);
|
|
3028
|
-
},
|
|
3029
|
+
}, $n = Ue(ua, {
|
|
3029
3030
|
name: "MuiDialog",
|
|
3030
3031
|
slot: "Root",
|
|
3031
3032
|
overridesResolver: (e, t) => t.root
|
|
@@ -3034,7 +3035,7 @@ const Qn = Qe(pa, {
|
|
|
3034
3035
|
// Use !important to override the Modal inline-style.
|
|
3035
3036
|
position: "absolute !important"
|
|
3036
3037
|
}
|
|
3037
|
-
}),
|
|
3038
|
+
}), Fn = Ue("div", {
|
|
3038
3039
|
name: "MuiDialog",
|
|
3039
3040
|
slot: "Container",
|
|
3040
3041
|
overridesResolver: (e, t) => {
|
|
@@ -3076,7 +3077,7 @@ const Qn = Qe(pa, {
|
|
|
3076
3077
|
}
|
|
3077
3078
|
}
|
|
3078
3079
|
}]
|
|
3079
|
-
}), Vn =
|
|
3080
|
+
}), Vn = Ue(Ft, {
|
|
3080
3081
|
name: "MuiDialog",
|
|
3081
3082
|
slot: "Paper",
|
|
3082
3083
|
overridesResolver: (e, t) => {
|
|
@@ -3191,28 +3192,28 @@ const Qn = Qe(pa, {
|
|
|
3191
3192
|
onClick: C,
|
|
3192
3193
|
onClose: y,
|
|
3193
3194
|
open: M,
|
|
3194
|
-
PaperComponent: A =
|
|
3195
|
+
PaperComponent: A = Ft,
|
|
3195
3196
|
PaperProps: S = {},
|
|
3196
3197
|
scroll: L = "paper",
|
|
3197
3198
|
slots: Z = {},
|
|
3198
3199
|
slotProps: pe = {},
|
|
3199
|
-
TransitionComponent:
|
|
3200
|
+
TransitionComponent: Q = vt,
|
|
3200
3201
|
transitionDuration: P = i,
|
|
3201
3202
|
TransitionProps: Y
|
|
3202
|
-
} = l,
|
|
3203
|
+
} = l, $ = ur(l, ["aria-describedby", "aria-labelledby", "aria-modal", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "slots", "slotProps", "TransitionComponent", "transitionDuration", "TransitionProps"]), B = T(D({}, r), {
|
|
3203
3204
|
disableEscapeKeyDown: p,
|
|
3204
3205
|
fullScreen: s,
|
|
3205
3206
|
fullWidth: m,
|
|
3206
3207
|
maxWidth: h,
|
|
3207
3208
|
scroll: L
|
|
3208
|
-
}),
|
|
3209
|
+
}), F = Qn(B), V = se(), z = (ge) => {
|
|
3209
3210
|
V.current = ge.target === ge.currentTarget;
|
|
3210
3211
|
}, W = (ge) => {
|
|
3211
3212
|
C && C(ge), V.current && (V.current = null, w && w(ge), y && y(ge, "backdropClick"));
|
|
3212
|
-
},
|
|
3213
|
-
titleId:
|
|
3214
|
-
}), [
|
|
3215
|
-
transition:
|
|
3213
|
+
}, U = ka(u), le = G(() => ({
|
|
3214
|
+
titleId: U
|
|
3215
|
+
}), [U]), ue = D({
|
|
3216
|
+
transition: Q
|
|
3216
3217
|
}, Z), ke = D({
|
|
3217
3218
|
transition: Y,
|
|
3218
3219
|
paper: S,
|
|
@@ -3221,29 +3222,29 @@ const Qn = Qe(pa, {
|
|
|
3221
3222
|
slots: ue,
|
|
3222
3223
|
slotProps: ke
|
|
3223
3224
|
}, [J, Ne] = ye("root", {
|
|
3224
|
-
elementType:
|
|
3225
|
+
elementType: $n,
|
|
3225
3226
|
shouldForwardComponentProp: !0,
|
|
3226
3227
|
externalForwardedProps: N,
|
|
3227
3228
|
ownerState: B,
|
|
3228
|
-
className: Je(
|
|
3229
|
+
className: Je(F.root, o),
|
|
3229
3230
|
ref: t
|
|
3230
3231
|
}), [je, Hr] = ye("backdrop", {
|
|
3231
|
-
elementType:
|
|
3232
|
+
elementType: Un,
|
|
3232
3233
|
shouldForwardComponentProp: !0,
|
|
3233
3234
|
externalForwardedProps: N,
|
|
3234
3235
|
ownerState: B
|
|
3235
|
-
}), [Yr,
|
|
3236
|
+
}), [Yr, Ur] = ye("paper", {
|
|
3236
3237
|
elementType: Vn,
|
|
3237
3238
|
shouldForwardComponentProp: !0,
|
|
3238
3239
|
externalForwardedProps: N,
|
|
3239
3240
|
ownerState: B,
|
|
3240
|
-
className: Je(
|
|
3241
|
-
}), [
|
|
3242
|
-
elementType:
|
|
3241
|
+
className: Je(F.paper, S.className)
|
|
3242
|
+
}), [Qr, $r] = ye("container", {
|
|
3243
|
+
elementType: Fn,
|
|
3243
3244
|
externalForwardedProps: N,
|
|
3244
3245
|
ownerState: B,
|
|
3245
|
-
className: Je(
|
|
3246
|
-
}), [
|
|
3246
|
+
className: Je(F.container)
|
|
3247
|
+
}), [Fr, Vr] = ye("transition", {
|
|
3247
3248
|
elementType: vt,
|
|
3248
3249
|
externalForwardedProps: N,
|
|
3249
3250
|
ownerState: B,
|
|
@@ -3269,19 +3270,19 @@ const Qn = Qe(pa, {
|
|
|
3269
3270
|
onClose: y,
|
|
3270
3271
|
open: M,
|
|
3271
3272
|
onClick: W
|
|
3272
|
-
}, Ne),
|
|
3273
|
-
children: /* @__PURE__ */ we(
|
|
3274
|
-
children: /* @__PURE__ */ we(
|
|
3273
|
+
}, Ne), $), {
|
|
3274
|
+
children: /* @__PURE__ */ we(Fr, T(D({}, Vr), {
|
|
3275
|
+
children: /* @__PURE__ */ we(Qr, T(D({
|
|
3275
3276
|
onMouseDown: z
|
|
3276
|
-
},
|
|
3277
|
+
}, $r), {
|
|
3277
3278
|
children: /* @__PURE__ */ we(Yr, T(D({
|
|
3278
3279
|
as: A,
|
|
3279
3280
|
elevation: 24,
|
|
3280
3281
|
role: "dialog",
|
|
3281
3282
|
"aria-describedby": d,
|
|
3282
|
-
"aria-labelledby":
|
|
3283
|
+
"aria-labelledby": U,
|
|
3283
3284
|
"aria-modal": c
|
|
3284
|
-
},
|
|
3285
|
+
}, Ur), {
|
|
3285
3286
|
children: /* @__PURE__ */ we(Wr.Provider, {
|
|
3286
3287
|
value: le,
|
|
3287
3288
|
children: b
|
|
@@ -3660,7 +3661,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
|
|
|
3660
3661
|
children: /* @__PURE__ */ n(Ya, {
|
|
3661
3662
|
fill: l.chart.textColor
|
|
3662
3663
|
})
|
|
3663
|
-
}), /* @__PURE__ */ n(
|
|
3664
|
+
}), /* @__PURE__ */ n(Qa, {
|
|
3664
3665
|
anchorEl: t,
|
|
3665
3666
|
anchorOrigin: {
|
|
3666
3667
|
vertical: "bottom",
|
|
@@ -3672,7 +3673,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
|
|
|
3672
3673
|
},
|
|
3673
3674
|
open: !!t,
|
|
3674
3675
|
onClose: i,
|
|
3675
|
-
children: e.map((d) => /* @__PURE__ */ v(
|
|
3676
|
+
children: e.map((d) => /* @__PURE__ */ v(Ua, {
|
|
3676
3677
|
onClick: () => {
|
|
3677
3678
|
d.onClick(), i();
|
|
3678
3679
|
},
|
|
@@ -3999,7 +4000,7 @@ function fl({
|
|
|
3999
4000
|
data: t,
|
|
4000
4001
|
isLoading: r,
|
|
4001
4002
|
isError: a
|
|
4002
|
-
} =
|
|
4003
|
+
} = Qe(e), {
|
|
4003
4004
|
t: i
|
|
4004
4005
|
} = E();
|
|
4005
4006
|
return r ? /* @__PURE__ */ n(yt, {}) : a ? /* @__PURE__ */ n(ne, {
|
|
@@ -4455,7 +4456,7 @@ const Wl = (e, t) => {
|
|
|
4455
4456
|
})("display:flex;flex-direction:column;row-gap:", ({
|
|
4456
4457
|
theme: e
|
|
4457
4458
|
}) => e.aiChat.suggestions.gap, ";");
|
|
4458
|
-
function
|
|
4459
|
+
function Ul({
|
|
4459
4460
|
contextTitle: e,
|
|
4460
4461
|
onGoBack: t,
|
|
4461
4462
|
contextDetails: r
|
|
@@ -4490,9 +4491,9 @@ function Ql({
|
|
|
4490
4491
|
} = oo(e, r), {
|
|
4491
4492
|
mutate: Z,
|
|
4492
4493
|
isLoading: pe
|
|
4493
|
-
} = xr(S), [
|
|
4494
|
-
Z(),
|
|
4495
|
-
}, z = se(null), W = se(null),
|
|
4494
|
+
} = xr(S), [Q, P] = R(!1), [Y, $] = R(!1), B = () => P(!0), F = () => P(!1), V = () => {
|
|
4495
|
+
Z(), F();
|
|
4496
|
+
}, z = se(null), W = se(null), U = () => {
|
|
4496
4497
|
if (!(z != null && z.current))
|
|
4497
4498
|
return;
|
|
4498
4499
|
const {
|
|
@@ -4503,11 +4504,11 @@ function Ql({
|
|
|
4503
4504
|
if (N === void 0 || J === void 0 || Ne === void 0)
|
|
4504
4505
|
return;
|
|
4505
4506
|
const je = Ne - N - J > J / 2;
|
|
4506
|
-
Y !== je &&
|
|
4507
|
+
Y !== je && $(je);
|
|
4507
4508
|
};
|
|
4508
4509
|
Ge(() => {
|
|
4509
4510
|
z.current && (z.current.scrollTop = z.current.scrollHeight);
|
|
4510
|
-
}, [w,
|
|
4511
|
+
}, [w, Q, y]);
|
|
4511
4512
|
const le = se(null), ue = c ? /* @__PURE__ */ n(Br, {
|
|
4512
4513
|
ref: le,
|
|
4513
4514
|
title: e,
|
|
@@ -4525,7 +4526,7 @@ function Ql({
|
|
|
4525
4526
|
children: [ue, /* @__PURE__ */ v(Bl, {
|
|
4526
4527
|
ref: z,
|
|
4527
4528
|
theme: o,
|
|
4528
|
-
onScroll:
|
|
4529
|
+
onScroll: U,
|
|
4529
4530
|
children: [/* @__PURE__ */ n(Pl, {
|
|
4530
4531
|
isVisible: Y,
|
|
4531
4532
|
anchorElement: W.current,
|
|
@@ -4543,7 +4544,7 @@ function Ql({
|
|
|
4543
4544
|
}), L && /* @__PURE__ */ n(ne, {
|
|
4544
4545
|
align: "left",
|
|
4545
4546
|
children: L.message
|
|
4546
|
-
}), A ? /* @__PURE__ */ n(
|
|
4547
|
+
}), A ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(Sl, {
|
|
4547
4548
|
messages: w
|
|
4548
4549
|
}), u && C && ((i = (a = C.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ n(Yl, {
|
|
4549
4550
|
theme: o,
|
|
@@ -4557,8 +4558,8 @@ function Ql({
|
|
|
4557
4558
|
children: N
|
|
4558
4559
|
})
|
|
4559
4560
|
}, J))
|
|
4560
|
-
}), (y || pe) && /* @__PURE__ */ n(yt, {}),
|
|
4561
|
-
onCancel:
|
|
4561
|
+
}), (y || pe) && /* @__PURE__ */ n(yt, {}), Q && /* @__PURE__ */ n(Hn, {
|
|
4562
|
+
onCancel: F,
|
|
4562
4563
|
onConfirm: V
|
|
4563
4564
|
})]
|
|
4564
4565
|
}), /* @__PURE__ */ v(Hl, {
|
|
@@ -4572,26 +4573,26 @@ function Ql({
|
|
|
4572
4573
|
recentPrompts: ke,
|
|
4573
4574
|
isLoading: s || A,
|
|
4574
4575
|
recommendationsError: m,
|
|
4575
|
-
onChange:
|
|
4576
|
+
onChange: F
|
|
4576
4577
|
}), /* @__PURE__ */ n(Rl, {
|
|
4577
4578
|
theme: o
|
|
4578
4579
|
})]
|
|
4579
4580
|
})]
|
|
4580
4581
|
});
|
|
4581
4582
|
}
|
|
4582
|
-
const
|
|
4583
|
+
const Ql = /* @__PURE__ */ _("button", {
|
|
4583
4584
|
target: "e5a38pw0",
|
|
4584
4585
|
label: "Container"
|
|
4585
4586
|
})("font-family:", ({
|
|
4586
4587
|
theme: e
|
|
4587
4588
|
}) => e.typography.fontFamily, ";padding:20px;border:none;display:flex;align-items:center;justify-content:space-between;text-align:left;border-radius:15px;box-shadow:0px 1px 2px rgba(9,9,10,0.1),0px 2px 4px rgba(9,9,10,0.1);cursor:pointer;background-color:", ({
|
|
4588
4589
|
theme: e
|
|
4589
|
-
}) => e.aiChat.dataTopics.items.backgroundColor, ";"),
|
|
4590
|
+
}) => e.aiChat.dataTopics.items.backgroundColor, ";"), $l = /* @__PURE__ */ _("div", {
|
|
4590
4591
|
target: "e5a38pw1",
|
|
4591
4592
|
label: "Title"
|
|
4592
4593
|
})("font-size:1.05rem;line-height:28px;color:", ({
|
|
4593
4594
|
theme: e
|
|
4594
|
-
}) => e.aiChat.dataTopics.items.textColor, ";"),
|
|
4595
|
+
}) => e.aiChat.dataTopics.items.textColor, ";"), Fl = /* @__PURE__ */ _("div", {
|
|
4595
4596
|
target: "e5a38pw2",
|
|
4596
4597
|
label: "Description"
|
|
4597
4598
|
})("font-size:", ({
|
|
@@ -4612,14 +4613,14 @@ function Jl(e) {
|
|
|
4612
4613
|
} = e, {
|
|
4613
4614
|
themeSettings: i
|
|
4614
4615
|
} = I();
|
|
4615
|
-
return /* @__PURE__ */ v(
|
|
4616
|
+
return /* @__PURE__ */ v(Ql, {
|
|
4616
4617
|
onClick: a,
|
|
4617
4618
|
theme: i,
|
|
4618
4619
|
children: [/* @__PURE__ */ v("div", {
|
|
4619
|
-
children: [/* @__PURE__ */ n(
|
|
4620
|
+
children: [/* @__PURE__ */ n($l, {
|
|
4620
4621
|
theme: i,
|
|
4621
4622
|
children: t
|
|
4622
|
-
}), /* @__PURE__ */ n(
|
|
4623
|
+
}), /* @__PURE__ */ n(Fl, {
|
|
4623
4624
|
theme: i,
|
|
4624
4625
|
children: r
|
|
4625
4626
|
})]
|
|
@@ -4760,7 +4761,7 @@ function ld({
|
|
|
4760
4761
|
style: a.aiChat.header
|
|
4761
4762
|
}) : null, /* @__PURE__ */ v(nd, {
|
|
4762
4763
|
theme: a,
|
|
4763
|
-
children: [!l && /* @__PURE__ */ n(
|
|
4764
|
+
children: [!l && /* @__PURE__ */ n($e, {}), l && /* @__PURE__ */ n(td, {
|
|
4764
4765
|
dataTopics: l
|
|
4765
4766
|
})]
|
|
4766
4767
|
})]
|
|
@@ -4792,7 +4793,7 @@ function dd() {
|
|
|
4792
4793
|
text: c("ai.buttons.refresh"),
|
|
4793
4794
|
onClick: p
|
|
4794
4795
|
}
|
|
4795
|
-
}) : b.length === 1 && !e ? /* @__PURE__ */ n(
|
|
4796
|
+
}) : b.length === 1 && !e ? /* @__PURE__ */ n($e, {}) : e ? /* @__PURE__ */ n(Ul, {
|
|
4796
4797
|
contextTitle: e,
|
|
4797
4798
|
contextDetails: u,
|
|
4798
4799
|
onGoBack: b.length === 1 ? void 0 : () => t(void 0)
|
|
@@ -4829,7 +4830,7 @@ const Cd = Vt({
|
|
|
4829
4830
|
data: t,
|
|
4830
4831
|
isLoading: r,
|
|
4831
4832
|
isError: a
|
|
4832
|
-
} =
|
|
4833
|
+
} = Qe(e), {
|
|
4833
4834
|
t: i
|
|
4834
4835
|
} = E();
|
|
4835
4836
|
if (a)
|
|
@@ -4942,7 +4943,7 @@ const cd = /* @__PURE__ */ _("div", {
|
|
|
4942
4943
|
data: c,
|
|
4943
4944
|
isLoading: g,
|
|
4944
4945
|
isError: x
|
|
4945
|
-
} =
|
|
4946
|
+
} = Qe(u);
|
|
4946
4947
|
return g || !l ? /* @__PURE__ */ n(yt, {}) : qe(l) ? /* @__PURE__ */ n(ve, T(D({}, l), {
|
|
4947
4948
|
highlightSelectionDisabled: !0,
|
|
4948
4949
|
onDataReady: t,
|
|
@@ -4951,7 +4952,7 @@ const cd = /* @__PURE__ */ _("div", {
|
|
|
4951
4952
|
summary: c
|
|
4952
4953
|
})
|
|
4953
4954
|
})) : /* @__PURE__ */ n(H, {});
|
|
4954
|
-
}, gd = new
|
|
4955
|
+
}, gd = new $t({
|
|
4955
4956
|
defaultOptions: {
|
|
4956
4957
|
queries: {
|
|
4957
4958
|
refetchOnWindowFocus: !1,
|
|
@@ -4991,10 +4992,10 @@ export {
|
|
|
4991
4992
|
Md as CustomAiContextProvider,
|
|
4992
4993
|
Vi as DEFAULT_RECOMMENDATIONS_COUNT,
|
|
4993
4994
|
vd as GetNlgInsights,
|
|
4994
|
-
|
|
4995
|
+
Qi as NLQ_RESULT_CHART_TYPES,
|
|
4995
4996
|
Sd as NlqChartWidget,
|
|
4996
4997
|
Yi as prepareGetNlgInsightsPayload,
|
|
4997
|
-
|
|
4998
|
+
$i as prepareGetNlqResultPayload,
|
|
4998
4999
|
oo as useChatSession,
|
|
4999
5000
|
_d as useFinalNlqResponse,
|
|
5000
5001
|
xd as useGetNlgInsights,
|