@sisense/sdk-ui-preact 2.8.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 +227 -227
- package/dist/index.cjs +20 -20
- package/dist/index.js +2880 -2765
- package/dist/use-common-filters-wo5IRF5u-2132b36d.cjs +1005 -0
- package/dist/{use-common-filters-BHBy4uv6-4f9f9055.js → use-common-filters-wo5IRF5u-9c3d3d14.js} +32417 -29925
- package/package.json +3 -3
- package/dist/use-common-filters-BHBy4uv6-7d67b822.cjs +0 -1005
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 || "";
|
|
@@ -702,13 +702,13 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
702
702
|
function hi(e) {
|
|
703
703
|
return re(e, Ze);
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Dt(e, t = "data-source-placeholder") {
|
|
706
706
|
if (!e)
|
|
707
707
|
return t;
|
|
708
708
|
const r = typeof e == "object" && "title" in e ? e.title : e;
|
|
709
709
|
return ti(r);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function It(e, t = !0) {
|
|
712
712
|
const r = [];
|
|
713
713
|
return t && r.push("measureFactory"), X(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
|
|
714
714
|
}
|
|
@@ -744,32 +744,32 @@ const At = `
|
|
|
744
744
|
idString: e.id,
|
|
745
745
|
widgetTypeString: "chart",
|
|
746
746
|
titleString: e.title,
|
|
747
|
-
dataSourceString:
|
|
747
|
+
dataSourceString: Dt(e.dataSource),
|
|
748
748
|
chartTypeString: yi(e.chartType),
|
|
749
749
|
dataOptionsString: hi(e.dataOptions),
|
|
750
750
|
filtersString: Lt(e.filters),
|
|
751
751
|
componentString: "ChartWidget",
|
|
752
|
-
extraImportsString:
|
|
752
|
+
extraImportsString: It(e.filters || [], a),
|
|
753
753
|
styleOptionsString: re(e.styleOptions || {}, Ze),
|
|
754
754
|
drilldownOptionsString: re(e.drilldownOptions || {}, Ze)
|
|
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",
|
|
762
762
|
titleString: e.title,
|
|
763
|
-
dataSourceString:
|
|
763
|
+
dataSourceString: Dt(e.dataSource),
|
|
764
764
|
dataOptionsString: re(e.dataOptions),
|
|
765
765
|
filtersString: Lt(e.filters),
|
|
766
766
|
componentString: "PivotTableWidget",
|
|
767
|
-
extraImportsString:
|
|
767
|
+
extraImportsString: It(e.filters || [], a),
|
|
768
768
|
styleOptionsString: re(e.styleOptions || {}, Ze)
|
|
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), {
|
|
@@ -872,7 +872,7 @@ const At = `
|
|
|
872
872
|
}, Nt = (e, t) => {
|
|
873
873
|
var r, a, i, l;
|
|
874
874
|
return t === "x" ? (a = (r = e.category) != null ? r : e.x) == null ? void 0 : a.map((d) => at(d).column.name).join(", ") : (l = (i = e.value) != null ? i : e.y) == null ? void 0 : l.map((d) => at(d).column.name).join(", ");
|
|
875
|
-
},
|
|
875
|
+
}, Di = (e, t, r, a) => {
|
|
876
876
|
let i;
|
|
877
877
|
return a && e in Tt ? i = ze(ze(Si, {
|
|
878
878
|
subtype: Tt[`${e}`]
|
|
@@ -893,14 +893,14 @@ const At = `
|
|
|
893
893
|
text: Nt(t, "x")
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
}, r) : i = ze(
|
|
897
|
-
},
|
|
896
|
+
}, r) : i = ze(da(), r), i;
|
|
897
|
+
}, Ii = (e, t, r = !0) => {
|
|
898
898
|
const {
|
|
899
899
|
chartFamily: a,
|
|
900
900
|
chartType: i,
|
|
901
901
|
axesMapping: l = {},
|
|
902
902
|
styleOptions: d = {}
|
|
903
|
-
} = t, u = Mi(e, a, l), c =
|
|
903
|
+
} = t, u = Mi(e, a, l), c = Di(i, l, d, r);
|
|
904
904
|
return {
|
|
905
905
|
dataOptions: u,
|
|
906
906
|
chartStyleOptions: c
|
|
@@ -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
|
})
|
|
@@ -982,7 +982,7 @@ const Li = (e) => {
|
|
|
982
982
|
} = ji(x), h = Ni(m), {
|
|
983
983
|
dataOptions: w,
|
|
984
984
|
chartStyleOptions: C
|
|
985
|
-
} =
|
|
985
|
+
} = Ii(s, b, r), y = O(O({}, C), p);
|
|
986
986
|
return {
|
|
987
987
|
widgetType: "chart",
|
|
988
988
|
id: l,
|
|
@@ -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
|
|
@@ -1009,7 +1009,7 @@ var zi = Object.defineProperty, Ri = Object.defineProperties, Zi = Object.getOwn
|
|
|
1009
1009
|
configurable: !0,
|
|
1010
1010
|
writable: !0,
|
|
1011
1011
|
value: r
|
|
1012
|
-
}) : e[t] = r,
|
|
1012
|
+
}) : e[t] = r, D = (e, t) => {
|
|
1013
1013
|
for (var r in t || (t = {}))
|
|
1014
1014
|
cr.call(t, r) && jt(e, r, t[r]);
|
|
1015
1015
|
if (Be)
|
|
@@ -1078,12 +1078,12 @@ class Wi extends Ta {
|
|
|
1078
1078
|
});
|
|
1079
1079
|
}
|
|
1080
1080
|
mutate(t, r) {
|
|
1081
|
-
return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, T(
|
|
1081
|
+
return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, T(D({}, this.options), {
|
|
1082
1082
|
variables: typeof t < "u" ? t : this.options.variables
|
|
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.status === "loading", a = T(
|
|
1086
|
+
const t = this.currentMutation ? this.currentMutation.state : ja(), r = t.status === "loading", a = T(D({}, t), {
|
|
1087
1087
|
isLoading: r,
|
|
1088
1088
|
isPending: r,
|
|
1089
1089
|
isSuccess: t.status === "success",
|
|
@@ -1114,7 +1114,7 @@ class Wi extends Ta {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
1116
|
function ut(e, t, r) {
|
|
1117
|
-
const a = Sa(e, t), i =
|
|
1117
|
+
const a = Sa(e, t), i = Ie({
|
|
1118
1118
|
context: a.context
|
|
1119
1119
|
}), [l] = R(() => new Wi(i, a));
|
|
1120
1120
|
xe(() => {
|
|
@@ -1123,9 +1123,9 @@ function ut(e, t, r) {
|
|
|
1123
1123
|
const d = Ma(j((c) => l.subscribe(Kt.batchCalls(c)), [l]), () => l.getCurrentResult(), () => l.getCurrentResult()), u = j((c, g) => {
|
|
1124
1124
|
l.mutate(c, g).catch(qi);
|
|
1125
1125
|
}, [l]);
|
|
1126
|
-
if (d.error &&
|
|
1126
|
+
if (d.error && Da(l.options.useErrorBoundary, [d.error]))
|
|
1127
1127
|
throw d.error;
|
|
1128
|
-
return T(
|
|
1128
|
+
return T(D({}, d), {
|
|
1129
1129
|
mutate: u,
|
|
1130
1130
|
mutateAsync: d.mutate
|
|
1131
1131
|
});
|
|
@@ -1160,7 +1160,7 @@ class Gi {
|
|
|
1160
1160
|
}, this.httpClient = t;
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
const Pi = new
|
|
1163
|
+
const Pi = new $t({
|
|
1164
1164
|
defaultOptions: {
|
|
1165
1165
|
queries: {
|
|
1166
1166
|
refetchOnWindowFocus: !1,
|
|
@@ -1188,7 +1188,7 @@ const Pi = new Ft({
|
|
|
1188
1188
|
var c;
|
|
1189
1189
|
return `${d}_${(c = u == null ? void 0 : u.dashboardId) != null ? c : ""}`;
|
|
1190
1190
|
}, []), i = j((d, u, c) => {
|
|
1191
|
-
r((g) => T(
|
|
1191
|
+
r((g) => T(D({}, g), {
|
|
1192
1192
|
[a(u, c)]: d
|
|
1193
1193
|
}));
|
|
1194
1194
|
}, [a]), l = j((d, u) => t[a(d, u)], [t, a]);
|
|
@@ -1239,7 +1239,7 @@ function Yi(e) {
|
|
|
1239
1239
|
return e.verbosity && (c.verbosity = e.verbosity), c;
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1242
|
+
const Qe = (e, t = !0) => {
|
|
1243
1243
|
const r = G(() => Yi(e), [e]), a = ee(), {
|
|
1244
1244
|
data: i,
|
|
1245
1245
|
error: l,
|
|
@@ -1266,13 +1266,13 @@ const Ue = (e, t = !0) => {
|
|
|
1266
1266
|
g();
|
|
1267
1267
|
}, [g])
|
|
1268
1268
|
};
|
|
1269
|
-
},
|
|
1269
|
+
}, Ui = (e) => {
|
|
1270
1270
|
const t = e, {
|
|
1271
1271
|
enabled: r
|
|
1272
1272
|
} = t, a = ur(t, ["enabled"]);
|
|
1273
|
-
return
|
|
1274
|
-
}, xd = ct("useGetNlgInsights")(
|
|
1275
|
-
function
|
|
1273
|
+
return Qe(a, r);
|
|
1274
|
+
}, xd = ct("useGetNlgInsights")(Ui), Qi = ["indicator", "column", "line", "table", "pie", "bar"];
|
|
1275
|
+
function $i(e) {
|
|
1276
1276
|
const {
|
|
1277
1277
|
dataSource: t,
|
|
1278
1278
|
query: r,
|
|
@@ -1284,15 +1284,15 @@ function Fi(e) {
|
|
|
1284
1284
|
text: r,
|
|
1285
1285
|
// Timezone is not used by AI API, but it is currently required by the endpoint
|
|
1286
1286
|
timezone: "UTC",
|
|
1287
|
-
chartTypes: a ?? [...
|
|
1287
|
+
chartTypes: a ?? [...Qi]
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
|
-
const
|
|
1291
|
+
const Fi = (e) => {
|
|
1292
1292
|
const {
|
|
1293
1293
|
contextTitle: t,
|
|
1294
1294
|
request: r
|
|
1295
|
-
} =
|
|
1295
|
+
} = $i(e), a = ee(), {
|
|
1296
1296
|
isLoading: i,
|
|
1297
1297
|
isError: l,
|
|
1298
1298
|
isSuccess: d,
|
|
@@ -1316,7 +1316,7 @@ const $i = (e) => {
|
|
|
1316
1316
|
g();
|
|
1317
1317
|
}, [g])
|
|
1318
1318
|
};
|
|
1319
|
-
}, kd = ct("useGetNlqResult")(
|
|
1319
|
+
}, kd = ct("useGetNlqResult")(Fi), Vi = 4, mr = (e) => {
|
|
1320
1320
|
const {
|
|
1321
1321
|
contextTitle: t,
|
|
1322
1322
|
count: r,
|
|
@@ -1332,13 +1332,13 @@ const $i = (e) => {
|
|
|
1332
1332
|
refetch: s
|
|
1333
1333
|
} = be({
|
|
1334
1334
|
queryKey: ["getQueryRecommendations", t, u, d],
|
|
1335
|
-
queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t,
|
|
1335
|
+
queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t, D({
|
|
1336
1336
|
numOfRecommendations: u
|
|
1337
1337
|
}, l ? {
|
|
1338
1338
|
userPrompt: l
|
|
1339
1339
|
} : null)),
|
|
1340
1340
|
enabled: !!d && c
|
|
1341
|
-
}), m = G(() => o == null ? void 0 : o.map((h) => T(
|
|
1341
|
+
}), m = G(() => o == null ? void 0 : o.map((h) => T(D({}, h), {
|
|
1342
1342
|
widgetProps: h.jaql ? Ae(h, {
|
|
1343
1343
|
useCustomizedStyleOptions: a
|
|
1344
1344
|
}) : void 0
|
|
@@ -1359,13 +1359,13 @@ const $i = (e) => {
|
|
|
1359
1359
|
enableInsights: !0,
|
|
1360
1360
|
numOfRecommendations: 4,
|
|
1361
1361
|
numOfRecentPrompts: 5
|
|
1362
|
-
}), br = /* @__PURE__ */ Ye(
|
|
1362
|
+
}), br = /* @__PURE__ */ Ye(D({}, fr)), ae = () => pt(br), Ji = ({
|
|
1363
1363
|
children: e,
|
|
1364
1364
|
value: t
|
|
1365
1365
|
}) => {
|
|
1366
1366
|
const {
|
|
1367
1367
|
t: r
|
|
1368
|
-
} = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), T(
|
|
1368
|
+
} = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), T(D({}, fr), {
|
|
1369
1369
|
inputPromptText: r("ai.config.inputPromptText"),
|
|
1370
1370
|
welcomeText: r("ai.config.welcomeText"),
|
|
1371
1371
|
suggestionsWelcomeText: r("ai.config.suggestionsWelcomeText")
|
|
@@ -1391,7 +1391,7 @@ const $i = (e) => {
|
|
|
1391
1391
|
enabled: !!t && !!e
|
|
1392
1392
|
});
|
|
1393
1393
|
}, xr = (e) => {
|
|
1394
|
-
const t = ee(), r =
|
|
1394
|
+
const t = ee(), r = Ie();
|
|
1395
1395
|
return ut({
|
|
1396
1396
|
mutationFn: () => ce(void 0, null, function* () {
|
|
1397
1397
|
if (!(!t || !e))
|
|
@@ -1451,7 +1451,7 @@ const $i = (e) => {
|
|
|
1451
1451
|
isLoading: r
|
|
1452
1452
|
};
|
|
1453
1453
|
}, to = (e, t, r) => {
|
|
1454
|
-
const a =
|
|
1454
|
+
const a = Ie(), i = ee(), l = ut({
|
|
1455
1455
|
mutationFn: () => ce(void 0, null, function* () {
|
|
1456
1456
|
if (!(!i || !e))
|
|
1457
1457
|
return i.ai.chat.create(e, r);
|
|
@@ -1479,7 +1479,7 @@ const $i = (e) => {
|
|
|
1479
1479
|
throw Error(`${t}${JSON.stringify(e)}`);
|
|
1480
1480
|
}
|
|
1481
1481
|
}, ao = (e, t) => {
|
|
1482
|
-
const r =
|
|
1482
|
+
const r = Ie(), a = j((c) => {
|
|
1483
1483
|
e && r.setQueriesData([ht, e], (g) => g && [...g, c]);
|
|
1484
1484
|
}, [r, e]), {
|
|
1485
1485
|
t: i
|
|
@@ -1650,7 +1650,7 @@ function uo({
|
|
|
1650
1650
|
})]
|
|
1651
1651
|
});
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function $e() {
|
|
1654
1654
|
return /* @__PURE__ */ n("div", {
|
|
1655
1655
|
className: "csdk-m-auto",
|
|
1656
1656
|
"aria-label": "loading spinner",
|
|
@@ -1726,7 +1726,7 @@ function xo({
|
|
|
1726
1726
|
}) {
|
|
1727
1727
|
const [i, l] = R(!1), {
|
|
1728
1728
|
themeSettings: d
|
|
1729
|
-
} =
|
|
1729
|
+
} = I();
|
|
1730
1730
|
return /* @__PURE__ */ v(mo, {
|
|
1731
1731
|
children: [/* @__PURE__ */ n(fo, {
|
|
1732
1732
|
onClick: () => l((u) => !u),
|
|
@@ -1783,7 +1783,7 @@ function wo({
|
|
|
1783
1783
|
onSelect: a
|
|
1784
1784
|
}].filter((b) => b.title.slice(0, l.length) === l), {
|
|
1785
1785
|
themeSettings: c
|
|
1786
|
-
} =
|
|
1786
|
+
} = I(), {
|
|
1787
1787
|
t: g
|
|
1788
1788
|
} = E(), x = u.length === 1;
|
|
1789
1789
|
return /* @__PURE__ */ n(er, {
|
|
@@ -1804,7 +1804,7 @@ function wo({
|
|
|
1804
1804
|
width: i == null ? void 0 : i.offsetWidth
|
|
1805
1805
|
},
|
|
1806
1806
|
theme: c,
|
|
1807
|
-
children: [r && /* @__PURE__ */ n(
|
|
1807
|
+
children: [r && /* @__PURE__ */ n($e, {}), !r && !d && u.map((b) => /* @__PURE__ */ n(xo, T(D({}, b), {
|
|
1808
1808
|
alwaysExpanded: x
|
|
1809
1809
|
}), b.title)), d && /* @__PURE__ */ n(yo, {
|
|
1810
1810
|
theme: c,
|
|
@@ -1820,7 +1820,7 @@ function Le({
|
|
|
1820
1820
|
}) {
|
|
1821
1821
|
const {
|
|
1822
1822
|
themeSettings: a
|
|
1823
|
-
} =
|
|
1823
|
+
} = I();
|
|
1824
1824
|
return /* @__PURE__ */ n(Za, {
|
|
1825
1825
|
title: e,
|
|
1826
1826
|
placement: t,
|
|
@@ -1879,8 +1879,8 @@ const _o = 500, Co = /* @__PURE__ */ _("div", {
|
|
|
1879
1879
|
` : q`
|
|
1880
1880
|
opacity: 1;
|
|
1881
1881
|
cursor: pointer;
|
|
1882
|
-
`),
|
|
1883
|
-
function
|
|
1882
|
+
`), Do = 34;
|
|
1883
|
+
function Io({
|
|
1884
1884
|
onSendMessage: e,
|
|
1885
1885
|
onClearHistoryClick: t,
|
|
1886
1886
|
disabled: r,
|
|
@@ -1909,7 +1909,7 @@ function Do({
|
|
|
1909
1909
|
u == null || u(y.target.value), g(y.target.value);
|
|
1910
1910
|
}, [u]), m = se(null);
|
|
1911
1911
|
Ge(() => {
|
|
1912
|
-
m.current && (m.current.style.height = "inherit", m.current.style.height = `${Math.max(m.current.scrollHeight + 2,
|
|
1912
|
+
m.current && (m.current.style.height = "inherit", m.current.style.height = `${Math.max(m.current.scrollHeight + 2, Do)}px`);
|
|
1913
1913
|
}, [c]), Ge(() => {
|
|
1914
1914
|
m.current && m.current.focus({
|
|
1915
1915
|
preventScroll: !0
|
|
@@ -1917,7 +1917,7 @@ function Do({
|
|
|
1917
1917
|
}, []);
|
|
1918
1918
|
const {
|
|
1919
1919
|
themeSettings: h
|
|
1920
|
-
} =
|
|
1920
|
+
} = I(), {
|
|
1921
1921
|
t: w
|
|
1922
1922
|
} = E(), C = j((y) => {
|
|
1923
1923
|
var M;
|
|
@@ -2037,11 +2037,11 @@ const zt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
|
|
|
2037
2037
|
lt: "<",
|
|
2038
2038
|
nbsp: " ",
|
|
2039
2039
|
quot: "“"
|
|
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/,
|
|
2041
|
-
function
|
|
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 = "(?:[*+-])";
|
|
2041
|
+
function Ir(e) {
|
|
2042
2042
|
return "( *)(" + (e === 1 ? xt : kt) + ") +";
|
|
2043
2043
|
}
|
|
2044
|
-
const Ar =
|
|
2044
|
+
const Ar = Ir(1), Lr = Ir(2);
|
|
2045
2045
|
function Tr(e) {
|
|
2046
2046
|
return new RegExp("^" + (e === 1 ? Ar : Lr));
|
|
2047
2047
|
}
|
|
@@ -2075,9 +2075,9 @@ function Wt(e, t) {
|
|
|
2075
2075
|
b = C;
|
|
2076
2076
|
const y = c.inline, M = c.list;
|
|
2077
2077
|
let A;
|
|
2078
|
-
c.list = !0, C ? (c.inline = !1, A =
|
|
2078
|
+
c.list = !0, C ? (c.inline = !1, A = De(h) + `
|
|
2079
2079
|
|
|
2080
|
-
`) : (c.inline = !0, A =
|
|
2080
|
+
`) : (c.inline = !0, A = De(h));
|
|
2081
2081
|
const S = u(A, c);
|
|
2082
2082
|
return c.inline = y, c.list = M, S;
|
|
2083
2083
|
}),
|
|
@@ -2095,8 +2095,8 @@ function Wt(e, t) {
|
|
|
2095
2095
|
}))
|
|
2096
2096
|
};
|
|
2097
2097
|
}
|
|
2098
|
-
const vn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Sn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, zr = [yr, wr, _r, Cr, Sr, vr,
|
|
2099
|
-
function
|
|
2098
|
+
const vn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Sn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, zr = [yr, wr, _r, Cr, Sr, vr, Dr, Or, Er], Mn = [...zr, /^[^\n]+(?: \n|\n{2,})/, lt, Mr, dt];
|
|
2099
|
+
function De(e) {
|
|
2100
2100
|
let t = e.length;
|
|
2101
2101
|
for (; t > 0 && e[t - 1] <= " "; )
|
|
2102
2102
|
t--;
|
|
@@ -2105,7 +2105,7 @@ function Ie(e) {
|
|
|
2105
2105
|
function _e(e) {
|
|
2106
2106
|
return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2108
|
+
function Dn(e) {
|
|
2109
2109
|
return sn.test(e) ? "right" : ln.test(e) ? "center" : dn.test(e) ? "left" : null;
|
|
2110
2110
|
}
|
|
2111
2111
|
function qt(e, t, r, a) {
|
|
@@ -2122,9 +2122,9 @@ function qt(e, t, r, a) {
|
|
|
2122
2122
|
c.trim() === "|" && (u(), a) ? g !== 0 && g !== x.length - 1 && l.push([]) : d += c;
|
|
2123
2123
|
}), u(), r.inTable = i, l;
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function In(e, t, r) {
|
|
2126
2126
|
r.inline = !0;
|
|
2127
|
-
const a = e[2] ? e[2].replace(nn, "").split("|").map(
|
|
2127
|
+
const a = e[2] ? e[2].replace(nn, "").split("|").map(Dn) : [], i = e[3] ? function(d, u, c) {
|
|
2128
2128
|
return d.trim().split(`
|
|
2129
2129
|
`).map(function(g) {
|
|
2130
2130
|
return qt(g, u, c, !0);
|
|
@@ -2175,7 +2175,7 @@ function An(e, t) {
|
|
|
2175
2175
|
e.split(`
|
|
2176
2176
|
`).every((i) => (i += `
|
|
2177
2177
|
`, !zr.some((l) => l.test(i)) && (r += i, !!i.trim())));
|
|
2178
|
-
const a =
|
|
2178
|
+
const a = De(r);
|
|
2179
2179
|
return a == "" ? null : [r, , a];
|
|
2180
2180
|
}
|
|
2181
2181
|
const Ln = /(javascript|vbscript|data(?!:image)):/i;
|
|
@@ -2243,7 +2243,7 @@ function En(e = "", t = {}) {
|
|
|
2243
2243
|
o = o.replace(Yo, "");
|
|
2244
2244
|
let p = !1;
|
|
2245
2245
|
t.forceInline ? p = !0 : t.forceBlock || (p = an.test(o) === !1);
|
|
2246
|
-
const s = g(c(p ? o : `${
|
|
2246
|
+
const s = g(c(p ? o : `${De(o).replace(fn, "")}
|
|
2247
2247
|
|
|
2248
2248
|
`, {
|
|
2249
2249
|
inline: p
|
|
@@ -2273,7 +2273,7 @@ function En(e = "", t = {}) {
|
|
|
2273
2273
|
const w = h.indexOf("=");
|
|
2274
2274
|
if (w !== -1) {
|
|
2275
2275
|
const C = function(S) {
|
|
2276
|
-
return S.indexOf("-") !== -1 && S.match(
|
|
2276
|
+
return S.indexOf("-") !== -1 && S.match($o) === null && (S = S.replace(Ko, function(L, Z) {
|
|
2277
2277
|
return Z.toUpperCase();
|
|
2278
2278
|
})), S;
|
|
2279
2279
|
}(h.slice(0, w)).trim(), y = function(S) {
|
|
@@ -2283,21 +2283,21 @@ function En(e = "", t = {}) {
|
|
|
2283
2283
|
if (M === "ref")
|
|
2284
2284
|
return m;
|
|
2285
2285
|
const A = m[M] = function(S, L, Z, pe) {
|
|
2286
|
-
return L === "style" ? function(
|
|
2286
|
+
return L === "style" ? function(Q) {
|
|
2287
2287
|
const P = [];
|
|
2288
|
-
let Y = "",
|
|
2289
|
-
if (!
|
|
2288
|
+
let Y = "", $ = !1, B = !1, F = "";
|
|
2289
|
+
if (!Q)
|
|
2290
2290
|
return P;
|
|
2291
|
-
for (let z = 0; z <
|
|
2292
|
-
const W =
|
|
2293
|
-
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 || $)
|
|
2294
2294
|
Y += W;
|
|
2295
2295
|
else {
|
|
2296
|
-
const
|
|
2297
|
-
if (
|
|
2298
|
-
const le =
|
|
2296
|
+
const U = Y.trim();
|
|
2297
|
+
if (U) {
|
|
2298
|
+
const le = U.indexOf(":");
|
|
2299
2299
|
if (le > 0) {
|
|
2300
|
-
const ue =
|
|
2300
|
+
const ue = U.slice(0, le).trim(), ke = U.slice(le + 1).trim();
|
|
2301
2301
|
P.push([ue, ke]);
|
|
2302
2302
|
}
|
|
2303
2303
|
}
|
|
@@ -2308,14 +2308,14 @@ function En(e = "", t = {}) {
|
|
|
2308
2308
|
if (V) {
|
|
2309
2309
|
const z = V.indexOf(":");
|
|
2310
2310
|
if (z > 0) {
|
|
2311
|
-
const W = V.slice(0, z).trim(),
|
|
2312
|
-
P.push([W,
|
|
2311
|
+
const W = V.slice(0, z).trim(), U = V.slice(z + 1).trim();
|
|
2312
|
+
P.push([W, U]);
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
return P;
|
|
2316
|
-
}(Z).reduce(function(
|
|
2317
|
-
return
|
|
2318
|
-
}, {}) : 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);
|
|
2319
2319
|
}(o, C, y, t.sanitizer);
|
|
2320
2320
|
typeof A == "string" && (lt.test(A) || dt.test(A)) && (m[M] = a(A.trim()));
|
|
2321
2321
|
} else
|
|
@@ -2372,7 +2372,7 @@ function En(e = "", t = {}) {
|
|
|
2372
2372
|
order: 0,
|
|
2373
2373
|
parse: (o) => ({
|
|
2374
2374
|
lang: void 0,
|
|
2375
|
-
text:
|
|
2375
|
+
text: De(o[0].replace(/^ {4}/gm, "")).replace(Zt, "$1")
|
|
2376
2376
|
}),
|
|
2377
2377
|
render: (o, p, s) => r("pre", {
|
|
2378
2378
|
key: s.key
|
|
@@ -2424,7 +2424,7 @@ function En(e = "", t = {}) {
|
|
|
2424
2424
|
}, o.text))
|
|
2425
2425
|
},
|
|
2426
2426
|
[k.gfmTask]: {
|
|
2427
|
-
match: ie(
|
|
2427
|
+
match: ie(Uo),
|
|
2428
2428
|
order: 1,
|
|
2429
2429
|
parse: (o) => ({
|
|
2430
2430
|
completed: o[1].toLowerCase() === "x"
|
|
@@ -2621,9 +2621,9 @@ function En(e = "", t = {}) {
|
|
|
2621
2621
|
}, o.fallbackChildren)
|
|
2622
2622
|
},
|
|
2623
2623
|
[k.table]: {
|
|
2624
|
-
match: te(
|
|
2624
|
+
match: te(Dr),
|
|
2625
2625
|
order: 1,
|
|
2626
|
-
parse:
|
|
2626
|
+
parse: In,
|
|
2627
2627
|
render(o, p, s) {
|
|
2628
2628
|
const m = o;
|
|
2629
2629
|
return r("table", {
|
|
@@ -2649,7 +2649,7 @@ function En(e = "", t = {}) {
|
|
|
2649
2649
|
match: Ce(mn),
|
|
2650
2650
|
order: 4,
|
|
2651
2651
|
parse: (o) => ({
|
|
2652
|
-
text: o[0].replace(
|
|
2652
|
+
text: o[0].replace(Qo, (p, s) => t.namedCodesToUnicode[s] ? t.namedCodesToUnicode[s] : p)
|
|
2653
2653
|
}),
|
|
2654
2654
|
render: (o) => o.text
|
|
2655
2655
|
},
|
|
@@ -2808,7 +2808,7 @@ const zn = (e) => {
|
|
|
2808
2808
|
}) => {
|
|
2809
2809
|
const {
|
|
2810
2810
|
themeSettings: r
|
|
2811
|
-
} =
|
|
2811
|
+
} = I();
|
|
2812
2812
|
return /* @__PURE__ */ n(Rn, {
|
|
2813
2813
|
theme: r,
|
|
2814
2814
|
align: e,
|
|
@@ -2848,12 +2848,12 @@ function Zr({
|
|
|
2848
2848
|
}) {
|
|
2849
2849
|
const {
|
|
2850
2850
|
themeSettings: r
|
|
2851
|
-
} =
|
|
2851
|
+
} = I();
|
|
2852
2852
|
return /* @__PURE__ */ v(Wn, {
|
|
2853
2853
|
children: [/* @__PURE__ */ n(qn, {
|
|
2854
2854
|
theme: r,
|
|
2855
2855
|
children: e
|
|
2856
|
-
}), /* @__PURE__ */ n(
|
|
2856
|
+
}), /* @__PURE__ */ n(Ia, {}), t && /* @__PURE__ */ n(Gn, {
|
|
2857
2857
|
onClick: t.onClick,
|
|
2858
2858
|
children: t.text
|
|
2859
2859
|
})]
|
|
@@ -2866,7 +2866,7 @@ const Ee = /* @__PURE__ */ _("div", {
|
|
|
2866
2866
|
function yt() {
|
|
2867
2867
|
const {
|
|
2868
2868
|
themeSettings: e
|
|
2869
|
-
} =
|
|
2869
|
+
} = I(), t = e.aiChat.icons.color;
|
|
2870
2870
|
return /* @__PURE__ */ v("div", {
|
|
2871
2871
|
className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
|
|
2872
2872
|
"aria-label": "loading dots",
|
|
@@ -2954,7 +2954,7 @@ function He({
|
|
|
2954
2954
|
}) {
|
|
2955
2955
|
const {
|
|
2956
2956
|
themeSettings: d
|
|
2957
|
-
} =
|
|
2957
|
+
} = I();
|
|
2958
2958
|
return /* @__PURE__ */ n(Pn, {
|
|
2959
2959
|
align: t,
|
|
2960
2960
|
children: /* @__PURE__ */ n(Bn, {
|
|
@@ -3006,14 +3006,14 @@ function Yn(e) {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
const rt = ca("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Wr = /* @__PURE__ */ Ye({});
|
|
3008
3008
|
process.env.NODE_ENV !== "production" && (Wr.displayName = "DialogContext");
|
|
3009
|
-
const
|
|
3009
|
+
const Un = Ue(pa, {
|
|
3010
3010
|
name: "MuiDialog",
|
|
3011
3011
|
slot: "Backdrop",
|
|
3012
3012
|
overrides: (e, t) => t.backdrop
|
|
3013
3013
|
})({
|
|
3014
3014
|
// Improve scrollable dialog support.
|
|
3015
3015
|
zIndex: -1
|
|
3016
|
-
}),
|
|
3016
|
+
}), Qn = (e) => {
|
|
3017
3017
|
const {
|
|
3018
3018
|
classes: t,
|
|
3019
3019
|
scroll: r,
|
|
@@ -3026,7 +3026,7 @@ const Qn = Qe(pa, {
|
|
|
3026
3026
|
paper: ["paper", `paperScroll${me(r)}`, `paperWidth${me(String(a))}`, i && "paperFullWidth", l && "paperFullScreen"]
|
|
3027
3027
|
};
|
|
3028
3028
|
return va(d, Yn, t);
|
|
3029
|
-
},
|
|
3029
|
+
}, $n = Ue(ua, {
|
|
3030
3030
|
name: "MuiDialog",
|
|
3031
3031
|
slot: "Root",
|
|
3032
3032
|
overridesResolver: (e, t) => t.root
|
|
@@ -3035,7 +3035,7 @@ const Qn = Qe(pa, {
|
|
|
3035
3035
|
// Use !important to override the Modal inline-style.
|
|
3036
3036
|
position: "absolute !important"
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3038
|
+
}), Fn = Ue("div", {
|
|
3039
3039
|
name: "MuiDialog",
|
|
3040
3040
|
slot: "Container",
|
|
3041
3041
|
overridesResolver: (e, t) => {
|
|
@@ -3077,7 +3077,7 @@ const Qn = Qe(pa, {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
3079
3079
|
}]
|
|
3080
|
-
}), Vn =
|
|
3080
|
+
}), Vn = Ue(Ft, {
|
|
3081
3081
|
name: "MuiDialog",
|
|
3082
3082
|
slot: "Paper",
|
|
3083
3083
|
overridesResolver: (e, t) => {
|
|
@@ -3192,29 +3192,29 @@ const Qn = Qe(pa, {
|
|
|
3192
3192
|
onClick: C,
|
|
3193
3193
|
onClose: y,
|
|
3194
3194
|
open: M,
|
|
3195
|
-
PaperComponent: A =
|
|
3195
|
+
PaperComponent: A = Ft,
|
|
3196
3196
|
PaperProps: S = {},
|
|
3197
3197
|
scroll: L = "paper",
|
|
3198
3198
|
slots: Z = {},
|
|
3199
3199
|
slotProps: pe = {},
|
|
3200
|
-
TransitionComponent:
|
|
3200
|
+
TransitionComponent: Q = vt,
|
|
3201
3201
|
transitionDuration: P = i,
|
|
3202
3202
|
TransitionProps: Y
|
|
3203
|
-
} = 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), {
|
|
3204
3204
|
disableEscapeKeyDown: p,
|
|
3205
3205
|
fullScreen: s,
|
|
3206
3206
|
fullWidth: m,
|
|
3207
3207
|
maxWidth: h,
|
|
3208
3208
|
scroll: L
|
|
3209
|
-
}),
|
|
3209
|
+
}), F = Qn(B), V = se(), z = (ge) => {
|
|
3210
3210
|
V.current = ge.target === ge.currentTarget;
|
|
3211
3211
|
}, W = (ge) => {
|
|
3212
3212
|
C && C(ge), V.current && (V.current = null, w && w(ge), y && y(ge, "backdropClick"));
|
|
3213
|
-
},
|
|
3214
|
-
titleId:
|
|
3215
|
-
}), [
|
|
3216
|
-
transition:
|
|
3217
|
-
}, Z), ke =
|
|
3213
|
+
}, U = ka(u), le = G(() => ({
|
|
3214
|
+
titleId: U
|
|
3215
|
+
}), [U]), ue = D({
|
|
3216
|
+
transition: Q
|
|
3217
|
+
}, Z), ke = D({
|
|
3218
3218
|
transition: Y,
|
|
3219
3219
|
paper: S,
|
|
3220
3220
|
backdrop: x
|
|
@@ -3222,29 +3222,29 @@ const Qn = Qe(pa, {
|
|
|
3222
3222
|
slots: ue,
|
|
3223
3223
|
slotProps: ke
|
|
3224
3224
|
}, [J, Ne] = ye("root", {
|
|
3225
|
-
elementType:
|
|
3225
|
+
elementType: $n,
|
|
3226
3226
|
shouldForwardComponentProp: !0,
|
|
3227
3227
|
externalForwardedProps: N,
|
|
3228
3228
|
ownerState: B,
|
|
3229
|
-
className: Je(
|
|
3229
|
+
className: Je(F.root, o),
|
|
3230
3230
|
ref: t
|
|
3231
3231
|
}), [je, Hr] = ye("backdrop", {
|
|
3232
|
-
elementType:
|
|
3232
|
+
elementType: Un,
|
|
3233
3233
|
shouldForwardComponentProp: !0,
|
|
3234
3234
|
externalForwardedProps: N,
|
|
3235
3235
|
ownerState: B
|
|
3236
|
-
}), [Yr,
|
|
3236
|
+
}), [Yr, Ur] = ye("paper", {
|
|
3237
3237
|
elementType: Vn,
|
|
3238
3238
|
shouldForwardComponentProp: !0,
|
|
3239
3239
|
externalForwardedProps: N,
|
|
3240
3240
|
ownerState: B,
|
|
3241
|
-
className: Je(
|
|
3242
|
-
}), [
|
|
3243
|
-
elementType:
|
|
3241
|
+
className: Je(F.paper, S.className)
|
|
3242
|
+
}), [Qr, $r] = ye("container", {
|
|
3243
|
+
elementType: Fn,
|
|
3244
3244
|
externalForwardedProps: N,
|
|
3245
3245
|
ownerState: B,
|
|
3246
|
-
className: Je(
|
|
3247
|
-
}), [
|
|
3246
|
+
className: Je(F.container)
|
|
3247
|
+
}), [Fr, Vr] = ye("transition", {
|
|
3248
3248
|
elementType: vt,
|
|
3249
3249
|
externalForwardedProps: N,
|
|
3250
3250
|
ownerState: B,
|
|
@@ -3255,13 +3255,13 @@ const Qn = Qe(pa, {
|
|
|
3255
3255
|
role: "presentation"
|
|
3256
3256
|
}
|
|
3257
3257
|
});
|
|
3258
|
-
return /* @__PURE__ */ we(J, T(
|
|
3258
|
+
return /* @__PURE__ */ we(J, T(D(D({
|
|
3259
3259
|
closeAfterTransition: !0,
|
|
3260
3260
|
slots: {
|
|
3261
3261
|
backdrop: je
|
|
3262
3262
|
},
|
|
3263
3263
|
slotProps: {
|
|
3264
|
-
backdrop:
|
|
3264
|
+
backdrop: D({
|
|
3265
3265
|
transitionDuration: P,
|
|
3266
3266
|
as: g
|
|
3267
3267
|
}, Hr)
|
|
@@ -3270,19 +3270,19 @@ const Qn = Qe(pa, {
|
|
|
3270
3270
|
onClose: y,
|
|
3271
3271
|
open: M,
|
|
3272
3272
|
onClick: W
|
|
3273
|
-
}, Ne),
|
|
3274
|
-
children: /* @__PURE__ */ we(
|
|
3275
|
-
children: /* @__PURE__ */ we(
|
|
3273
|
+
}, Ne), $), {
|
|
3274
|
+
children: /* @__PURE__ */ we(Fr, T(D({}, Vr), {
|
|
3275
|
+
children: /* @__PURE__ */ we(Qr, T(D({
|
|
3276
3276
|
onMouseDown: z
|
|
3277
|
-
},
|
|
3278
|
-
children: /* @__PURE__ */ we(Yr, T(
|
|
3277
|
+
}, $r), {
|
|
3278
|
+
children: /* @__PURE__ */ we(Yr, T(D({
|
|
3279
3279
|
as: A,
|
|
3280
3280
|
elevation: 24,
|
|
3281
3281
|
role: "dialog",
|
|
3282
3282
|
"aria-describedby": d,
|
|
3283
|
-
"aria-labelledby":
|
|
3283
|
+
"aria-labelledby": U,
|
|
3284
3284
|
"aria-modal": c
|
|
3285
|
-
},
|
|
3285
|
+
}, Ur), {
|
|
3286
3286
|
children: /* @__PURE__ */ we(Wr.Provider, {
|
|
3287
3287
|
value: le,
|
|
3288
3288
|
children: b
|
|
@@ -3632,7 +3632,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
|
|
|
3632
3632
|
}) => {
|
|
3633
3633
|
const {
|
|
3634
3634
|
themeSettings: t
|
|
3635
|
-
} =
|
|
3635
|
+
} = I();
|
|
3636
3636
|
return /* @__PURE__ */ n(Le, {
|
|
3637
3637
|
title: e,
|
|
3638
3638
|
children: /* @__PURE__ */ n(Te, {
|
|
@@ -3652,7 +3652,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
|
|
|
3652
3652
|
r(null);
|
|
3653
3653
|
}, {
|
|
3654
3654
|
themeSettings: l
|
|
3655
|
-
} =
|
|
3655
|
+
} = I();
|
|
3656
3656
|
return /* @__PURE__ */ v(H, {
|
|
3657
3657
|
children: [/* @__PURE__ */ n(Te, {
|
|
3658
3658
|
onClick: a,
|
|
@@ -3661,7 +3661,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
|
|
|
3661
3661
|
children: /* @__PURE__ */ n(Ya, {
|
|
3662
3662
|
fill: l.chart.textColor
|
|
3663
3663
|
})
|
|
3664
|
-
}), /* @__PURE__ */ n(
|
|
3664
|
+
}), /* @__PURE__ */ n(Qa, {
|
|
3665
3665
|
anchorEl: t,
|
|
3666
3666
|
anchorOrigin: {
|
|
3667
3667
|
vertical: "bottom",
|
|
@@ -3673,7 +3673,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
|
|
|
3673
3673
|
},
|
|
3674
3674
|
open: !!t,
|
|
3675
3675
|
onClose: i,
|
|
3676
|
-
children: e.map((d) => /* @__PURE__ */ v(
|
|
3676
|
+
children: e.map((d) => /* @__PURE__ */ v(Ua, {
|
|
3677
3677
|
onClick: () => {
|
|
3678
3678
|
d.onClick(), i();
|
|
3679
3679
|
},
|
|
@@ -3695,7 +3695,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
|
|
|
3695
3695
|
}) => {
|
|
3696
3696
|
const {
|
|
3697
3697
|
themeSettings: t
|
|
3698
|
-
} =
|
|
3698
|
+
} = I(), {
|
|
3699
3699
|
t: r
|
|
3700
3700
|
} = E();
|
|
3701
3701
|
return /* @__PURE__ */ n(Le, {
|
|
@@ -3738,7 +3738,7 @@ function ll({
|
|
|
3738
3738
|
}) {
|
|
3739
3739
|
const [t, r] = R(!1), {
|
|
3740
3740
|
themeSettings: a
|
|
3741
|
-
} =
|
|
3741
|
+
} = I(), {
|
|
3742
3742
|
inlineElement: i,
|
|
3743
3743
|
expandedElement: l
|
|
3744
3744
|
} = G(() => {
|
|
@@ -3765,10 +3765,10 @@ function ll({
|
|
|
3765
3765
|
if (Ba(d.chartType))
|
|
3766
3766
|
x = /* @__PURE__ */ n("div", {
|
|
3767
3767
|
className: "csdk-h-[245px]",
|
|
3768
|
-
children: /* @__PURE__ */ n(ve, T(
|
|
3768
|
+
children: /* @__PURE__ */ n(ve, T(D({}, d), {
|
|
3769
3769
|
styleOptions: g
|
|
3770
3770
|
}))
|
|
3771
|
-
}), b = /* @__PURE__ */ n(ve, T(
|
|
3771
|
+
}), b = /* @__PURE__ */ n(ve, T(D({}, d), {
|
|
3772
3772
|
styleOptions: {
|
|
3773
3773
|
header: {
|
|
3774
3774
|
hidden: !0
|
|
@@ -3776,21 +3776,21 @@ function ll({
|
|
|
3776
3776
|
}
|
|
3777
3777
|
}));
|
|
3778
3778
|
else {
|
|
3779
|
-
const o = T(
|
|
3779
|
+
const o = T(D({}, c), {
|
|
3780
3780
|
header: {
|
|
3781
3781
|
hidden: !0
|
|
3782
3782
|
}
|
|
3783
|
-
}), p =
|
|
3783
|
+
}), p = D(T(D({}, c), {
|
|
3784
3784
|
legend: void 0,
|
|
3785
3785
|
xAxis: void 0,
|
|
3786
3786
|
yAxis: void 0
|
|
3787
3787
|
}), g);
|
|
3788
3788
|
delete p.legend, delete p.xAxis, delete p.yAxis, x = /* @__PURE__ */ n("div", {
|
|
3789
|
-
children: /* @__PURE__ */ n(ve, T(
|
|
3789
|
+
children: /* @__PURE__ */ n(ve, T(D({}, d), {
|
|
3790
3790
|
styleOptions: p
|
|
3791
3791
|
}))
|
|
3792
|
-
}), b = /* @__PURE__ */ n(ve, T(
|
|
3793
|
-
styleOptions:
|
|
3792
|
+
}), b = /* @__PURE__ */ n(ve, T(D({}, d), {
|
|
3793
|
+
styleOptions: D({
|
|
3794
3794
|
cornerRadius: "None"
|
|
3795
3795
|
}, o)
|
|
3796
3796
|
}));
|
|
@@ -3854,7 +3854,7 @@ function sl({
|
|
|
3854
3854
|
}) {
|
|
3855
3855
|
const {
|
|
3856
3856
|
themeSettings: r
|
|
3857
|
-
} =
|
|
3857
|
+
} = I(), {
|
|
3858
3858
|
t: a
|
|
3859
3859
|
} = E();
|
|
3860
3860
|
return /* @__PURE__ */ n(Le, {
|
|
@@ -3893,7 +3893,7 @@ function pl({
|
|
|
3893
3893
|
}) {
|
|
3894
3894
|
const {
|
|
3895
3895
|
themeSettings: r
|
|
3896
|
-
} =
|
|
3896
|
+
} = I(), {
|
|
3897
3897
|
t: a
|
|
3898
3898
|
} = E();
|
|
3899
3899
|
return /* @__PURE__ */ n(Le, {
|
|
@@ -3959,7 +3959,7 @@ function st({
|
|
|
3959
3959
|
});
|
|
3960
3960
|
}, [l, e, t, r]), 200), [u, c] = ul(), g = G(() => a === "onHover" ? c : a !== "never", [c, a]), {
|
|
3961
3961
|
themeSettings: x
|
|
3962
|
-
} =
|
|
3962
|
+
} = I();
|
|
3963
3963
|
return /* @__PURE__ */ n(gl, {
|
|
3964
3964
|
ref: u,
|
|
3965
3965
|
theme: x,
|
|
@@ -4000,7 +4000,7 @@ function fl({
|
|
|
4000
4000
|
data: t,
|
|
4001
4001
|
isLoading: r,
|
|
4002
4002
|
isError: a
|
|
4003
|
-
} =
|
|
4003
|
+
} = Qe(e), {
|
|
4004
4004
|
t: i
|
|
4005
4005
|
} = E();
|
|
4006
4006
|
return r ? /* @__PURE__ */ n(yt, {}) : a ? /* @__PURE__ */ n(ne, {
|
|
@@ -4016,7 +4016,7 @@ function fl({
|
|
|
4016
4016
|
function bl() {
|
|
4017
4017
|
const {
|
|
4018
4018
|
themeSettings: e
|
|
4019
|
-
} =
|
|
4019
|
+
} = I();
|
|
4020
4020
|
return /* @__PURE__ */ n("svg", {
|
|
4021
4021
|
width: "24",
|
|
4022
4022
|
height: "25",
|
|
@@ -4060,7 +4060,7 @@ function wl({
|
|
|
4060
4060
|
enableInsights: a
|
|
4061
4061
|
} = ae(), {
|
|
4062
4062
|
themeSettings: i
|
|
4063
|
-
} =
|
|
4063
|
+
} = I(), {
|
|
4064
4064
|
queryTitle: l,
|
|
4065
4065
|
chartRecommendations: d,
|
|
4066
4066
|
jaql: u,
|
|
@@ -4146,7 +4146,7 @@ function Sl({
|
|
|
4146
4146
|
} = E();
|
|
4147
4147
|
return /* @__PURE__ */ n(H, {
|
|
4148
4148
|
children: e.map((r, a) => /* @__PURE__ */ n(za, {
|
|
4149
|
-
fallbackRender: (i) => vl(T(
|
|
4149
|
+
fallbackRender: (i) => vl(T(D({}, i), {
|
|
4150
4150
|
displayMessage: t("ai.errors.unexpected")
|
|
4151
4151
|
})),
|
|
4152
4152
|
children: /* @__PURE__ */ n(Cl, {
|
|
@@ -4184,7 +4184,7 @@ function Ml({
|
|
|
4184
4184
|
})
|
|
4185
4185
|
});
|
|
4186
4186
|
}
|
|
4187
|
-
const
|
|
4187
|
+
const Dl = /* @__PURE__ */ _("button", {
|
|
4188
4188
|
target: "e1p0q0z20",
|
|
4189
4189
|
label: "Button"
|
|
4190
4190
|
})("font-size:inherit;line-height:inherit;box-sizing:border-box;border-width:1px;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;cursor:pointer;text-align:left;max-width:85%;font-family:", ({
|
|
@@ -4238,14 +4238,14 @@ function Ht({
|
|
|
4238
4238
|
}) {
|
|
4239
4239
|
const {
|
|
4240
4240
|
themeSettings: r
|
|
4241
|
-
} =
|
|
4242
|
-
return /* @__PURE__ */ n(
|
|
4241
|
+
} = I();
|
|
4242
|
+
return /* @__PURE__ */ n(Dl, {
|
|
4243
4243
|
onClick: t,
|
|
4244
4244
|
theme: r,
|
|
4245
4245
|
children: e
|
|
4246
4246
|
});
|
|
4247
4247
|
}
|
|
4248
|
-
const
|
|
4248
|
+
const Il = /* @__PURE__ */ _("div", {
|
|
4249
4249
|
target: "eu11cc50",
|
|
4250
4250
|
label: "ListContainer"
|
|
4251
4251
|
})("display:flex;flex-direction:column;align-items:flex-start;row-gap:", ({
|
|
@@ -4259,8 +4259,8 @@ function Al({
|
|
|
4259
4259
|
t: r
|
|
4260
4260
|
} = E(), [a, i] = R(!0), l = G(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
|
|
4261
4261
|
themeSettings: d
|
|
4262
|
-
} =
|
|
4263
|
-
return /* @__PURE__ */ v(
|
|
4262
|
+
} = I();
|
|
4263
|
+
return /* @__PURE__ */ v(Il, {
|
|
4264
4264
|
"aria-label": "list of suggested questions",
|
|
4265
4265
|
theme: d,
|
|
4266
4266
|
children: [l.map((u) => /* @__PURE__ */ n(Ht, {
|
|
@@ -4292,7 +4292,7 @@ const Ll = /* @__PURE__ */ _("div", {
|
|
|
4292
4292
|
function Nl() {
|
|
4293
4293
|
const {
|
|
4294
4294
|
themeSettings: e
|
|
4295
|
-
} =
|
|
4295
|
+
} = I();
|
|
4296
4296
|
return /* @__PURE__ */ n(Tl, {
|
|
4297
4297
|
children: Array.from({
|
|
4298
4298
|
length: 3
|
|
@@ -4370,7 +4370,7 @@ function Rl({
|
|
|
4370
4370
|
function Zl() {
|
|
4371
4371
|
const {
|
|
4372
4372
|
themeSettings: e
|
|
4373
|
-
} =
|
|
4373
|
+
} = I();
|
|
4374
4374
|
return /* @__PURE__ */ n("svg", {
|
|
4375
4375
|
width: "24",
|
|
4376
4376
|
height: "24",
|
|
@@ -4406,7 +4406,7 @@ const Wl = (e, t) => {
|
|
|
4406
4406
|
}) => {
|
|
4407
4407
|
const {
|
|
4408
4408
|
themeSettings: t
|
|
4409
|
-
} =
|
|
4409
|
+
} = I();
|
|
4410
4410
|
return /* @__PURE__ */ n(ql, {
|
|
4411
4411
|
theme: t,
|
|
4412
4412
|
onClick: e,
|
|
@@ -4456,7 +4456,7 @@ const Wl = (e, t) => {
|
|
|
4456
4456
|
})("display:flex;flex-direction:column;row-gap:", ({
|
|
4457
4457
|
theme: e
|
|
4458
4458
|
}) => e.aiChat.suggestions.gap, ";");
|
|
4459
|
-
function
|
|
4459
|
+
function Ul({
|
|
4460
4460
|
contextTitle: e,
|
|
4461
4461
|
onGoBack: t,
|
|
4462
4462
|
contextDetails: r
|
|
@@ -4472,7 +4472,7 @@ function Ql({
|
|
|
4472
4472
|
customPrompt: b
|
|
4473
4473
|
} = ae(), {
|
|
4474
4474
|
themeSettings: o
|
|
4475
|
-
} =
|
|
4475
|
+
} = I(), {
|
|
4476
4476
|
data: p,
|
|
4477
4477
|
isLoading: s,
|
|
4478
4478
|
isError: m
|
|
@@ -4491,9 +4491,9 @@ function Ql({
|
|
|
4491
4491
|
} = oo(e, r), {
|
|
4492
4492
|
mutate: Z,
|
|
4493
4493
|
isLoading: pe
|
|
4494
|
-
} = xr(S), [
|
|
4495
|
-
Z(),
|
|
4496
|
-
}, 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 = () => {
|
|
4497
4497
|
if (!(z != null && z.current))
|
|
4498
4498
|
return;
|
|
4499
4499
|
const {
|
|
@@ -4504,11 +4504,11 @@ function Ql({
|
|
|
4504
4504
|
if (N === void 0 || J === void 0 || Ne === void 0)
|
|
4505
4505
|
return;
|
|
4506
4506
|
const je = Ne - N - J > J / 2;
|
|
4507
|
-
Y !== je &&
|
|
4507
|
+
Y !== je && $(je);
|
|
4508
4508
|
};
|
|
4509
4509
|
Ge(() => {
|
|
4510
4510
|
z.current && (z.current.scrollTop = z.current.scrollHeight);
|
|
4511
|
-
}, [w,
|
|
4511
|
+
}, [w, Q, y]);
|
|
4512
4512
|
const le = se(null), ue = c ? /* @__PURE__ */ n(Br, {
|
|
4513
4513
|
ref: le,
|
|
4514
4514
|
title: e,
|
|
@@ -4526,7 +4526,7 @@ function Ql({
|
|
|
4526
4526
|
children: [ue, /* @__PURE__ */ v(Bl, {
|
|
4527
4527
|
ref: z,
|
|
4528
4528
|
theme: o,
|
|
4529
|
-
onScroll:
|
|
4529
|
+
onScroll: U,
|
|
4530
4530
|
children: [/* @__PURE__ */ n(Pl, {
|
|
4531
4531
|
isVisible: Y,
|
|
4532
4532
|
anchorElement: W.current,
|
|
@@ -4544,7 +4544,7 @@ function Ql({
|
|
|
4544
4544
|
}), L && /* @__PURE__ */ n(ne, {
|
|
4545
4545
|
align: "left",
|
|
4546
4546
|
children: L.message
|
|
4547
|
-
}), A ? /* @__PURE__ */ n(
|
|
4547
|
+
}), A ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(Sl, {
|
|
4548
4548
|
messages: w
|
|
4549
4549
|
}), u && C && ((i = (a = C.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ n(Yl, {
|
|
4550
4550
|
theme: o,
|
|
@@ -4558,14 +4558,14 @@ function Ql({
|
|
|
4558
4558
|
children: N
|
|
4559
4559
|
})
|
|
4560
4560
|
}, J))
|
|
4561
|
-
}), (y || pe) && /* @__PURE__ */ n(yt, {}),
|
|
4562
|
-
onCancel:
|
|
4561
|
+
}), (y || pe) && /* @__PURE__ */ n(yt, {}), Q && /* @__PURE__ */ n(Hn, {
|
|
4562
|
+
onCancel: F,
|
|
4563
4563
|
onConfirm: V
|
|
4564
4564
|
})]
|
|
4565
4565
|
}), /* @__PURE__ */ v(Hl, {
|
|
4566
4566
|
ref: W,
|
|
4567
4567
|
theme: o,
|
|
4568
|
-
children: [/* @__PURE__ */ n(
|
|
4568
|
+
children: [/* @__PURE__ */ n(Io, {
|
|
4569
4569
|
onSendMessage: M,
|
|
4570
4570
|
disabled: y || A,
|
|
4571
4571
|
onClearHistoryClick: B,
|
|
@@ -4573,26 +4573,26 @@ function Ql({
|
|
|
4573
4573
|
recentPrompts: ke,
|
|
4574
4574
|
isLoading: s || A,
|
|
4575
4575
|
recommendationsError: m,
|
|
4576
|
-
onChange:
|
|
4576
|
+
onChange: F
|
|
4577
4577
|
}), /* @__PURE__ */ n(Rl, {
|
|
4578
4578
|
theme: o
|
|
4579
4579
|
})]
|
|
4580
4580
|
})]
|
|
4581
4581
|
});
|
|
4582
4582
|
}
|
|
4583
|
-
const
|
|
4583
|
+
const Ql = /* @__PURE__ */ _("button", {
|
|
4584
4584
|
target: "e5a38pw0",
|
|
4585
4585
|
label: "Container"
|
|
4586
4586
|
})("font-family:", ({
|
|
4587
4587
|
theme: e
|
|
4588
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:", ({
|
|
4589
4589
|
theme: e
|
|
4590
|
-
}) => e.aiChat.dataTopics.items.backgroundColor, ";"),
|
|
4590
|
+
}) => e.aiChat.dataTopics.items.backgroundColor, ";"), $l = /* @__PURE__ */ _("div", {
|
|
4591
4591
|
target: "e5a38pw1",
|
|
4592
4592
|
label: "Title"
|
|
4593
4593
|
})("font-size:1.05rem;line-height:28px;color:", ({
|
|
4594
4594
|
theme: e
|
|
4595
|
-
}) => e.aiChat.dataTopics.items.textColor, ";"),
|
|
4595
|
+
}) => e.aiChat.dataTopics.items.textColor, ";"), Fl = /* @__PURE__ */ _("div", {
|
|
4596
4596
|
target: "e5a38pw2",
|
|
4597
4597
|
label: "Description"
|
|
4598
4598
|
})("font-size:", ({
|
|
@@ -4612,15 +4612,15 @@ function Jl(e) {
|
|
|
4612
4612
|
onClick: a
|
|
4613
4613
|
} = e, {
|
|
4614
4614
|
themeSettings: i
|
|
4615
|
-
} =
|
|
4616
|
-
return /* @__PURE__ */ v(
|
|
4615
|
+
} = I();
|
|
4616
|
+
return /* @__PURE__ */ v(Ql, {
|
|
4617
4617
|
onClick: a,
|
|
4618
4618
|
theme: i,
|
|
4619
4619
|
children: [/* @__PURE__ */ v("div", {
|
|
4620
|
-
children: [/* @__PURE__ */ n(
|
|
4620
|
+
children: [/* @__PURE__ */ n($l, {
|
|
4621
4621
|
theme: i,
|
|
4622
4622
|
children: t
|
|
4623
|
-
}), /* @__PURE__ */ n(
|
|
4623
|
+
}), /* @__PURE__ */ n(Fl, {
|
|
4624
4624
|
theme: i,
|
|
4625
4625
|
children: r
|
|
4626
4626
|
})]
|
|
@@ -4650,7 +4650,7 @@ function td(e) {
|
|
|
4650
4650
|
dataTopics: t
|
|
4651
4651
|
} = e, {
|
|
4652
4652
|
themeSettings: r
|
|
4653
|
-
} =
|
|
4653
|
+
} = I(), {
|
|
4654
4654
|
t: a
|
|
4655
4655
|
} = E();
|
|
4656
4656
|
return /* @__PURE__ */ v(Xl, {
|
|
@@ -4660,7 +4660,7 @@ function td(e) {
|
|
|
4660
4660
|
}), /* @__PURE__ */ v(ed, {
|
|
4661
4661
|
theme: r,
|
|
4662
4662
|
children: [a("ai.chatbotDescription"), /* @__PURE__ */ n("br", {}), /* @__PURE__ */ n("br", {}), a("ai.topicSelectPrompt")]
|
|
4663
|
-
}), t.map((i) => /* @__PURE__ */ Ra(Jl, T(
|
|
4663
|
+
}), t.map((i) => /* @__PURE__ */ Ra(Jl, T(D({}, i), {
|
|
4664
4664
|
key: i.title
|
|
4665
4665
|
})))]
|
|
4666
4666
|
});
|
|
@@ -4744,7 +4744,7 @@ function ld({
|
|
|
4744
4744
|
enableHeader: r
|
|
4745
4745
|
} = ae(), {
|
|
4746
4746
|
themeSettings: a
|
|
4747
|
-
} =
|
|
4747
|
+
} = I(), {
|
|
4748
4748
|
t: i
|
|
4749
4749
|
} = E(), l = G(() => e == null ? void 0 : e.map((u) => ({
|
|
4750
4750
|
title: u,
|
|
@@ -4761,7 +4761,7 @@ function ld({
|
|
|
4761
4761
|
style: a.aiChat.header
|
|
4762
4762
|
}) : null, /* @__PURE__ */ v(nd, {
|
|
4763
4763
|
theme: a,
|
|
4764
|
-
children: [!l && /* @__PURE__ */ n(
|
|
4764
|
+
children: [!l && /* @__PURE__ */ n($e, {}), l && /* @__PURE__ */ n(td, {
|
|
4765
4765
|
dataTopics: l
|
|
4766
4766
|
})]
|
|
4767
4767
|
})]
|
|
@@ -4784,7 +4784,7 @@ function dd() {
|
|
|
4784
4784
|
return x(s), s;
|
|
4785
4785
|
}
|
|
4786
4786
|
return [];
|
|
4787
|
-
}, [i, l, d, x]), o =
|
|
4787
|
+
}, [i, l, d, x]), o = Ie(), p = j(() => {
|
|
4788
4788
|
a(void 0), o.invalidateQueries(["getDataTopics"]);
|
|
4789
4789
|
}, [o]);
|
|
4790
4790
|
return r ? /* @__PURE__ */ n(Zr, {
|
|
@@ -4793,7 +4793,7 @@ function dd() {
|
|
|
4793
4793
|
text: c("ai.buttons.refresh"),
|
|
4794
4794
|
onClick: p
|
|
4795
4795
|
}
|
|
4796
|
-
}) : b.length === 1 && !e ? /* @__PURE__ */ n(
|
|
4796
|
+
}) : b.length === 1 && !e ? /* @__PURE__ */ n($e, {}) : e ? /* @__PURE__ */ n(Ul, {
|
|
4797
4797
|
contextTitle: e,
|
|
4798
4798
|
contextDetails: u,
|
|
4799
4799
|
onGoBack: b.length === 1 ? void 0 : () => t(void 0)
|
|
@@ -4811,7 +4811,7 @@ const Cd = Vt({
|
|
|
4811
4811
|
config: a
|
|
4812
4812
|
} = e, {
|
|
4813
4813
|
themeSettings: i
|
|
4814
|
-
} =
|
|
4814
|
+
} = I();
|
|
4815
4815
|
return /* @__PURE__ */ n(Ji, {
|
|
4816
4816
|
value: a ?? {},
|
|
4817
4817
|
children: /* @__PURE__ */ n(po, {
|
|
@@ -4830,7 +4830,7 @@ const Cd = Vt({
|
|
|
4830
4830
|
data: t,
|
|
4831
4831
|
isLoading: r,
|
|
4832
4832
|
isError: a
|
|
4833
|
-
} =
|
|
4833
|
+
} = Qe(e), {
|
|
4834
4834
|
t: i
|
|
4835
4835
|
} = E();
|
|
4836
4836
|
if (a)
|
|
@@ -4886,7 +4886,7 @@ const cd = /* @__PURE__ */ _("div", {
|
|
|
4886
4886
|
}) => {
|
|
4887
4887
|
const {
|
|
4888
4888
|
themeSettings: r
|
|
4889
|
-
} =
|
|
4889
|
+
} = I();
|
|
4890
4890
|
return /* @__PURE__ */ n(st, {
|
|
4891
4891
|
sourceId: t.jaql.datasource.title,
|
|
4892
4892
|
data: t,
|
|
@@ -4933,8 +4933,8 @@ const cd = /* @__PURE__ */ _("div", {
|
|
|
4933
4933
|
}, [e, i, r]);
|
|
4934
4934
|
const u = G(() => {
|
|
4935
4935
|
const b = l && qe(l) ? _a(l == null ? void 0 : l.filters) : [], o = e.jaql.metadata.filter((p) => !p.jaql.filter).concat(b.filter((p) => !p.config.disabled).map((p) => p.jaql()));
|
|
4936
|
-
return T(
|
|
4937
|
-
jaql: T(
|
|
4936
|
+
return T(D({}, e), {
|
|
4937
|
+
jaql: T(D({}, e.jaql), {
|
|
4938
4938
|
metadata: o
|
|
4939
4939
|
}),
|
|
4940
4940
|
verbosity: "Low"
|
|
@@ -4943,8 +4943,8 @@ const cd = /* @__PURE__ */ _("div", {
|
|
|
4943
4943
|
data: c,
|
|
4944
4944
|
isLoading: g,
|
|
4945
4945
|
isError: x
|
|
4946
|
-
} =
|
|
4947
|
-
return g || !l ? /* @__PURE__ */ n(yt, {}) : qe(l) ? /* @__PURE__ */ n(ve, T(
|
|
4946
|
+
} = Qe(u);
|
|
4947
|
+
return g || !l ? /* @__PURE__ */ n(yt, {}) : qe(l) ? /* @__PURE__ */ n(ve, T(D({}, l), {
|
|
4948
4948
|
highlightSelectionDisabled: !0,
|
|
4949
4949
|
onDataReady: t,
|
|
4950
4950
|
topSlot: c && !x && /* @__PURE__ */ n(ud, {
|
|
@@ -4952,7 +4952,7 @@ const cd = /* @__PURE__ */ _("div", {
|
|
|
4952
4952
|
summary: c
|
|
4953
4953
|
})
|
|
4954
4954
|
})) : /* @__PURE__ */ n(H, {});
|
|
4955
|
-
}, gd = new
|
|
4955
|
+
}, gd = new $t({
|
|
4956
4956
|
defaultOptions: {
|
|
4957
4957
|
queries: {
|
|
4958
4958
|
refetchOnWindowFocus: !1,
|
|
@@ -4992,10 +4992,10 @@ export {
|
|
|
4992
4992
|
Md as CustomAiContextProvider,
|
|
4993
4993
|
Vi as DEFAULT_RECOMMENDATIONS_COUNT,
|
|
4994
4994
|
vd as GetNlgInsights,
|
|
4995
|
-
|
|
4995
|
+
Qi as NLQ_RESULT_CHART_TYPES,
|
|
4996
4996
|
Sd as NlqChartWidget,
|
|
4997
4997
|
Yi as prepareGetNlgInsightsPayload,
|
|
4998
|
-
|
|
4998
|
+
$i as prepareGetNlqResultPayload,
|
|
4999
4999
|
oo as useChatSession,
|
|
5000
5000
|
_d as useFinalNlqResponse,
|
|
5001
5001
|
xd as useGetNlgInsights,
|