@sisense/sdk-ui-vue 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 +173 -173
- package/dist/index.cjs +1 -1
- package/dist/index.js +61 -61
- package/dist/{use-tracking-c034eb94.cjs → use-tracking-c4e74583.cjs} +302 -302
- package/dist/{use-tracking-a39b9c1f.js → use-tracking-ee413ed4.js} +29939 -27334
- package/package.json +2 -2
package/dist/ai.js
CHANGED
@@ -1,30 +1,9 @@
|
|
1
|
-
import { inject as sa, ref as
|
2
|
-
import { aC as Vt, aD as He, aE as pa, aF as Be, aG as ua, aH as ga, aI as me, aJ as $t, aK as ha, aL as b, aM as Jt, aN as L, aO as n, aP as E, aQ as Y, aR as Fe, aS as
|
3
|
-
|
4
|
-
enumerable: !0,
|
5
|
-
configurable: !0,
|
6
|
-
writable: !0,
|
7
|
-
value: r
|
8
|
-
}) : e[t] = r, O = (e, t) => {
|
9
|
-
for (var r in t || (t = {}))
|
10
|
-
sr.call(t, r) && St(e, r, t[r]);
|
11
|
-
if (Pe)
|
12
|
-
for (var r of Pe(t))
|
13
|
-
cr.call(t, r) && St(e, r, t[r]);
|
14
|
-
return e;
|
15
|
-
}, K = (e, t) => di(e, si(t)), ci = (e, t) => {
|
16
|
-
var r = {};
|
17
|
-
for (var a in e)
|
18
|
-
sr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
19
|
-
if (e != null && Pe)
|
20
|
-
for (var a of Pe(e))
|
21
|
-
t.indexOf(a) < 0 && cr.call(e, a) && (r[a] = e[a]);
|
22
|
-
return r;
|
23
|
-
};
|
24
|
-
let pr = class extends ar {
|
1
|
+
import { inject as sa, ref as Qt, defineComponent as st, watchEffect as Ft, provide as ca, watch as ct, toRefs as pt } from "vue";
|
2
|
+
import { aC as Vt, aD as He, aE as pa, aF as Be, aG as ua, aH as ga, aI as me, aJ as $t, aK as ha, aL as b, aM as Jt, aN as L, aO as n, aP as E, aQ as Y, aR as Fe, aS as U, aT as Me, aU as N, aV as Xt, aW as ma, aX as ba, aY as se, aZ as fa, a_ as ke, a$ as Ve, b0 as ye, b1 as ut, b2 as xa, b3 as ka, b4 as ya, b5 as C, b6 as P, b7 as wa, b8 as Ct, b9 as Z, ba as We, bb as v, bc as De, bd as _a, be as Ca, bf as va, bg as Sa, bh as Ie, bi as ve, bj as Ma, bk as Da, bl as Kt, bm as Ia, bn as Aa, bo as La, bp as Ta, bq as er, br as Na, bs as ja, bt as Oa, bu as Ea, bv as za, bw as tr, bx as Ra, by as Za, bz as Wa, bA as vt, bB as Pa, bC as qa, bD as Ga, bE as Ha, bF as rr, bG as Ce, bH as ar, bI as rt, bJ as Ba, bK as $e, bL as Ya, bM as Ua, bN as Qa, bO as Fa, bP as Va, bQ as $a, bR as Ja, bS as Xa, ao as je, bT as ir, bU as Ka, bV as ei, bW as ti, bX as or, bY as nr, bZ as ri, b_ as ai, b$ as ii, y as oi, c0 as ni, a as lr, c1 as dr, z as gt, x as ht, B as mt, G as be, a4 as bt } from "./use-tracking-ee413ed4.js";
|
3
|
+
let sr = class extends ar {
|
25
4
|
constructor(e, t) {
|
26
5
|
var r;
|
27
|
-
super((r = e.jaql.title) !== null && r !== void 0 ? r : "", t), this.__serializable = "JaqlElement", this.expression = e.jaql.dim || e.jaql.formula, this.metadataItem = e, e.jaql.agg ? this.aggregation = e.jaql.agg : delete this.aggregation, e.jaql.formula ? this.formula = e.jaql.formula : delete this.formula, e.jaql.sort ? this.sortType =
|
6
|
+
super((r = e.jaql.title) !== null && r !== void 0 ? r : "", t), this.__serializable = "JaqlElement", this.expression = e.jaql.dim || e.jaql.formula, this.metadataItem = e, e.jaql.agg ? this.aggregation = e.jaql.agg : delete this.aggregation, e.jaql.formula ? this.formula = e.jaql.formula : delete this.formula, e.jaql.sort ? this.sortType = Qa(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
|
28
7
|
}
|
29
8
|
get id() {
|
30
9
|
return this.expression;
|
@@ -40,16 +19,16 @@ let pr = class extends ar {
|
|
40
19
|
return e.metadataItem = this.metadataItem, e.type = this.type, e;
|
41
20
|
}
|
42
21
|
};
|
43
|
-
const
|
22
|
+
const li = {
|
44
23
|
text: Fe.TextAttribute,
|
45
24
|
numeric: Fe.NumericAttribute,
|
46
25
|
datetime: Fe.DateLevel
|
47
26
|
};
|
48
|
-
function
|
27
|
+
function di(e) {
|
49
28
|
var t;
|
50
|
-
return new
|
29
|
+
return new sr(e, (t = li[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
|
51
30
|
}
|
52
|
-
function
|
31
|
+
function cr(e) {
|
53
32
|
const {
|
54
33
|
jaql: t
|
55
34
|
} = e;
|
@@ -73,9 +52,30 @@ function ur(e) {
|
|
73
52
|
title: t.title,
|
74
53
|
panel: e.panel,
|
75
54
|
dataSource: t.datasource
|
76
|
-
}) :
|
55
|
+
}) : di(e);
|
77
56
|
}
|
78
|
-
const
|
57
|
+
const si = (e) => "dashboardOid" in e && "widgetOid" in e;
|
58
|
+
var ci = Object.defineProperty, pi = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, Pe = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? ci(e, t, {
|
59
|
+
enumerable: !0,
|
60
|
+
configurable: !0,
|
61
|
+
writable: !0,
|
62
|
+
value: r
|
63
|
+
}) : e[t] = r, O = (e, t) => {
|
64
|
+
for (var r in t || (t = {}))
|
65
|
+
pr.call(t, r) && St(e, r, t[r]);
|
66
|
+
if (Pe)
|
67
|
+
for (var r of Pe(t))
|
68
|
+
ur.call(t, r) && St(e, r, t[r]);
|
69
|
+
return e;
|
70
|
+
}, K = (e, t) => pi(e, ui(t)), gi = (e, t) => {
|
71
|
+
var r = {};
|
72
|
+
for (var a in e)
|
73
|
+
pr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
74
|
+
if (e != null && Pe)
|
75
|
+
for (var a of Pe(e))
|
76
|
+
t.indexOf(a) < 0 && ur.call(e, a) && (r[a] = e[a]);
|
77
|
+
return r;
|
78
|
+
};
|
79
79
|
function hi(e) {
|
80
80
|
return e.replace(/\s+/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
81
81
|
}
|
@@ -684,7 +684,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
684
684
|
return "";
|
685
685
|
if (typeof e == "string")
|
686
686
|
return `'${Ce(e)}'`;
|
687
|
-
if (e instanceof
|
687
|
+
if (e instanceof sr)
|
688
688
|
return Mi(e, t);
|
689
689
|
if (e instanceof ar)
|
690
690
|
return e.composeCode || "";
|
@@ -700,21 +700,21 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
700
700
|
a += `,${Oe}`;
|
701
701
|
}), a += " ".repeat(t), a += "}"), a;
|
702
702
|
};
|
703
|
-
function
|
703
|
+
function Di(e) {
|
704
704
|
return te(e, Re);
|
705
705
|
}
|
706
|
-
function
|
706
|
+
function Dt(e, t = "data-source-placeholder") {
|
707
707
|
if (!e)
|
708
708
|
return t;
|
709
709
|
const r = typeof e == "object" && "title" in e ? e.title : e;
|
710
710
|
return hi(r);
|
711
711
|
}
|
712
|
-
function
|
712
|
+
function It(e, t = !0) {
|
713
713
|
const r = [];
|
714
714
|
return t && r.push("measureFactory"), X(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
|
715
715
|
}
|
716
716
|
const At = `
|
717
|
-
`,
|
717
|
+
`, Ii = (e, t) => {
|
718
718
|
if (e.composeCode)
|
719
719
|
return `${At}${" ".repeat(t)}${e.composeCode}`;
|
720
720
|
const r = e.jaql().jaql;
|
@@ -723,7 +723,7 @@ const At = `
|
|
723
723
|
if (!e)
|
724
724
|
return "";
|
725
725
|
let r = "";
|
726
|
-
return r += `[${e.map((a) =>
|
726
|
+
return r += `[${e.map((a) => Ii(a, t + 2))}${e.length ? `
|
727
727
|
` + " ".repeat(t + 2) : ""}]`, r;
|
728
728
|
}, Lt = (e) => e ? Array.isArray(e) ? Ai(e, 6) : "/** Filter relations not supported yet */" : "[]", Li = ["executeQueryByWidgetIdTmpl", "widgetByIdTmpl"], Ti = "chartWidgetTmpl", Ni = "pivotTableWidgetTmpl", ji = (e) => e, Oi = ({
|
729
729
|
dashboardOid: e,
|
@@ -745,12 +745,12 @@ const At = `
|
|
745
745
|
idString: e.id,
|
746
746
|
widgetTypeString: "chart",
|
747
747
|
titleString: e.title,
|
748
|
-
dataSourceString:
|
748
|
+
dataSourceString: Dt(e.dataSource),
|
749
749
|
chartTypeString: ji(e.chartType),
|
750
|
-
dataOptionsString:
|
750
|
+
dataOptionsString: Di(e.dataOptions),
|
751
751
|
filtersString: Lt(e.filters),
|
752
752
|
componentString: "ChartWidget",
|
753
|
-
extraImportsString:
|
753
|
+
extraImportsString: It(e.filters || [], a),
|
754
754
|
styleOptionsString: te(e.styleOptions || {}, Re),
|
755
755
|
drilldownOptionsString: te(e.drilldownOptions || {}, Re)
|
756
756
|
};
|
@@ -761,11 +761,11 @@ const At = `
|
|
761
761
|
idString: e.id,
|
762
762
|
widgetTypeString: "pivot",
|
763
763
|
titleString: e.title,
|
764
|
-
dataSourceString:
|
764
|
+
dataSourceString: Dt(e.dataSource),
|
765
765
|
dataOptionsString: te(e.dataOptions),
|
766
766
|
filtersString: Lt(e.filters),
|
767
767
|
componentString: "PivotTableWidget",
|
768
|
-
extraImportsString:
|
768
|
+
extraImportsString: It(e.filters || [], a),
|
769
769
|
styleOptionsString: te(e.styleOptions || {}, Re)
|
770
770
|
};
|
771
771
|
return at(r.pivot, i, t);
|
@@ -781,7 +781,7 @@ const At = `
|
|
781
781
|
pivot: Ni
|
782
782
|
}), Ri = (e) => ({
|
783
783
|
dataOptions: {
|
784
|
-
columns: e.map(
|
784
|
+
columns: e.map(cr)
|
785
785
|
}
|
786
786
|
}), Zi = Object.freeze({
|
787
787
|
convolution: {
|
@@ -824,7 +824,7 @@ const At = `
|
|
824
824
|
name: o.column.name
|
825
825
|
}
|
826
826
|
};
|
827
|
-
const s =
|
827
|
+
const s = cr(u);
|
828
828
|
if (u.panel === "measures")
|
829
829
|
return K(O({}, o), {
|
830
830
|
column: s
|
@@ -921,7 +921,7 @@ const Hi = (e) => {
|
|
921
921
|
context: d,
|
922
922
|
formula: p,
|
923
923
|
filter: c
|
924
|
-
} = i, g =
|
924
|
+
} = i, g = gi(i, ["type", "context", "formula", "filter"]);
|
925
925
|
return K(O({}, r), {
|
926
926
|
jaql: O({
|
927
927
|
// Copy dimension properties from rows dimension
|
@@ -944,7 +944,7 @@ const Hi = (e) => {
|
|
944
944
|
chartType: "table",
|
945
945
|
chartFamily: "table",
|
946
946
|
axesMapping: {}
|
947
|
-
}, Yi = (e) => e.map((t) => Wa(t.jaql)),
|
947
|
+
}, Yi = (e) => e.map((t) => Wa(t.jaql)), Ui = (e) => e.reduce((t, r) => {
|
948
948
|
if ((r.panel === "scope" || r.jaql.filter) && t.metadataFilters.push(vt(r)), r.panel !== "scope") {
|
949
949
|
const a = vt(r);
|
950
950
|
delete a.jaql.filter, t.metadataColumns.push(a);
|
@@ -953,7 +953,7 @@ const Hi = (e) => {
|
|
953
953
|
}, {
|
954
954
|
metadataColumns: [],
|
955
955
|
metadataFilters: []
|
956
|
-
}),
|
956
|
+
}), Qi = (e, t) => {
|
957
957
|
if (!mi(e))
|
958
958
|
try {
|
959
959
|
const {
|
@@ -980,7 +980,7 @@ const Hi = (e) => {
|
|
980
980
|
}, {
|
981
981
|
metadataColumns: s,
|
982
982
|
metadataFilters: m
|
983
|
-
} =
|
983
|
+
} = Ui(f), h = Yi(m), {
|
984
984
|
dataOptions: w,
|
985
985
|
chartStyleOptions: _
|
986
986
|
} = qi(s, x, r), y = O(O({}, _), u);
|
@@ -998,7 +998,7 @@ const Hi = (e) => {
|
|
998
998
|
console.error(r);
|
999
999
|
return;
|
1000
1000
|
}
|
1001
|
-
}, ft = (e, t) =>
|
1001
|
+
}, ft = (e, t) => Qi(e, t), Fi = (e) => si(e) ? Oi(e) : zi(e), br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1002
1002
|
__proto__: null,
|
1003
1003
|
toWidgetCode: Fi,
|
1004
1004
|
toWidgetProps: ft
|
@@ -1010,7 +1010,7 @@ var Vi = Object.defineProperty, $i = Object.defineProperties, Ji = Object.getOwn
|
|
1010
1010
|
configurable: !0,
|
1011
1011
|
writable: !0,
|
1012
1012
|
value: r
|
1013
|
-
}) : e[t] = r,
|
1013
|
+
}) : e[t] = r, D = (e, t) => {
|
1014
1014
|
for (var r in t || (t = {}))
|
1015
1015
|
fr.call(t, r) && jt(e, r, t[r]);
|
1016
1016
|
if (qe)
|
@@ -1079,12 +1079,12 @@ class Ki extends Pa {
|
|
1079
1079
|
});
|
1080
1080
|
}
|
1081
1081
|
mutate(t, r) {
|
1082
|
-
return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, j(
|
1082
|
+
return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, j(D({}, this.options), {
|
1083
1083
|
variables: typeof t < "u" ? t : this.options.variables
|
1084
1084
|
})), this.currentMutation.addObserver(this), this.currentMutation.execute();
|
1085
1085
|
}
|
1086
1086
|
updateResult() {
|
1087
|
-
const t = this.currentMutation ? this.currentMutation.state : Ga(), r = t.status === "loading", a = j(
|
1087
|
+
const t = this.currentMutation ? this.currentMutation.state : Ga(), r = t.status === "loading", a = j(D({}, t), {
|
1088
1088
|
isLoading: r,
|
1089
1089
|
isPending: r,
|
1090
1090
|
isSuccess: t.status === "success",
|
@@ -1115,10 +1115,10 @@ class Ki extends Pa {
|
|
1115
1115
|
}
|
1116
1116
|
}
|
1117
1117
|
function xt(e, t, r) {
|
1118
|
-
const a = La(e, t), i =
|
1118
|
+
const a = La(e, t), i = De({
|
1119
1119
|
context: a.context
|
1120
1120
|
}), [l] = Z(() => new Ki(i, a));
|
1121
|
-
|
1121
|
+
Ie(() => {
|
1122
1122
|
l.setOptions(a);
|
1123
1123
|
}, [l, a]);
|
1124
1124
|
const d = Ta(N((c) => l.subscribe(er.batchCalls(c)), [l]), () => l.getCurrentResult(), () => l.getCurrentResult()), p = N((c, g) => {
|
@@ -1126,7 +1126,7 @@ function xt(e, t, r) {
|
|
1126
1126
|
}, [l]);
|
1127
1127
|
if (d.error && Na(l.options.useErrorBoundary, [d.error]))
|
1128
1128
|
throw d.error;
|
1129
|
-
return j(
|
1129
|
+
return j(D({}, d), {
|
1130
1130
|
mutate: p,
|
1131
1131
|
mutateAsync: d.mutate
|
1132
1132
|
});
|
@@ -1176,7 +1176,7 @@ const kr = /* @__PURE__ */ He(void 0), re = () => ut(kr), yr = /* @__PURE__ */ H
|
|
1176
1176
|
var c;
|
1177
1177
|
return `${d}_${(c = p == null ? void 0 : p.dashboardId) != null ? c : ""}`;
|
1178
1178
|
}, []), i = N((d, p, c) => {
|
1179
|
-
r((g) => j(
|
1179
|
+
r((g) => j(D({}, g), {
|
1180
1180
|
[a(p, c)]: d
|
1181
1181
|
}));
|
1182
1182
|
}, [a]), l = N((d, p) => t[a(d, p)], [t, a]);
|
@@ -1217,7 +1217,7 @@ function wr(e) {
|
|
1217
1217
|
}
|
1218
1218
|
}
|
1219
1219
|
const _r = (e, t = !0) => {
|
1220
|
-
const r =
|
1220
|
+
const r = U(() => wr(e), [e]), a = re(), {
|
1221
1221
|
data: i,
|
1222
1222
|
error: l,
|
1223
1223
|
isError: d,
|
@@ -1276,13 +1276,13 @@ const ot = 4, oo = (e) => {
|
|
1276
1276
|
refetch: s
|
1277
1277
|
} = Me({
|
1278
1278
|
queryKey: ["getQueryRecommendations", t, p, d],
|
1279
|
-
queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t,
|
1279
|
+
queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t, D({
|
1280
1280
|
numOfRecommendations: p
|
1281
1281
|
}, l ? {
|
1282
1282
|
userPrompt: l
|
1283
1283
|
} : null)),
|
1284
1284
|
enabled: !!d && c
|
1285
|
-
}), m =
|
1285
|
+
}), m = U(() => o == null ? void 0 : o.map((h) => j(D({}, h), {
|
1286
1286
|
widgetProps: h.jaql ? ft(h, {
|
1287
1287
|
useCustomizedStyleOptions: a
|
1288
1288
|
}) : void 0
|
@@ -1303,13 +1303,13 @@ const ot = 4, oo = (e) => {
|
|
1303
1303
|
enableInsights: !0,
|
1304
1304
|
numOfRecommendations: 4,
|
1305
1305
|
numOfRecentPrompts: 5
|
1306
|
-
}), vr = /* @__PURE__ */ He(
|
1306
|
+
}), vr = /* @__PURE__ */ He(D({}, Cr)), ae = () => ut(vr), no = ({
|
1307
1307
|
children: e,
|
1308
1308
|
value: t
|
1309
1309
|
}) => {
|
1310
1310
|
const {
|
1311
1311
|
t: r
|
1312
|
-
} = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), j(
|
1312
|
+
} = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), j(D({}, Cr), {
|
1313
1313
|
inputPromptText: r("ai.config.inputPromptText"),
|
1314
1314
|
welcomeText: r("ai.config.welcomeText"),
|
1315
1315
|
suggestionsWelcomeText: r("ai.config.suggestionsWelcomeText")
|
@@ -1335,7 +1335,7 @@ const ot = 4, oo = (e) => {
|
|
1335
1335
|
enabled: !!t && !!e
|
1336
1336
|
});
|
1337
1337
|
}, Sr = (e) => {
|
1338
|
-
const t = re(), r =
|
1338
|
+
const t = re(), r = De();
|
1339
1339
|
return xt({
|
1340
1340
|
mutationFn: () => ce(void 0, null, function* () {
|
1341
1341
|
if (!(!t || !e))
|
@@ -1356,7 +1356,7 @@ const ot = 4, oo = (e) => {
|
|
1356
1356
|
} = lo(e), {
|
1357
1357
|
mutate: i
|
1358
1358
|
} = Sr(e);
|
1359
|
-
return
|
1359
|
+
return Ie(() => {
|
1360
1360
|
a && i();
|
1361
1361
|
}, [a, i]), {
|
1362
1362
|
history: t,
|
@@ -1395,14 +1395,14 @@ const ot = 4, oo = (e) => {
|
|
1395
1395
|
isLoading: r
|
1396
1396
|
};
|
1397
1397
|
}, uo = (e, t, r) => {
|
1398
|
-
const a =
|
1398
|
+
const a = De(), i = re(), l = xt({
|
1399
1399
|
mutationFn: () => ce(void 0, null, function* () {
|
1400
1400
|
if (!(!i || !e))
|
1401
1401
|
return i.ai.chat.create(e, r);
|
1402
1402
|
}),
|
1403
1403
|
onSuccess: () => a.invalidateQueries(["getAllChats"])
|
1404
1404
|
});
|
1405
|
-
return
|
1405
|
+
return Ie(() => {
|
1406
1406
|
t && l.isIdle && l.mutate();
|
1407
1407
|
}, [t, l]), l;
|
1408
1408
|
}, go = (e, t) => {
|
@@ -1423,7 +1423,7 @@ const ot = 4, oo = (e) => {
|
|
1423
1423
|
throw Error(`${t}${JSON.stringify(e)}`);
|
1424
1424
|
}
|
1425
1425
|
}, ho = (e, t) => {
|
1426
|
-
const r =
|
1426
|
+
const r = De(), a = N((c) => {
|
1427
1427
|
e && r.setQueriesData([kt, e], (g) => g && [...g, c]);
|
1428
1428
|
}, [r, e]), {
|
1429
1429
|
t: i
|
@@ -1478,14 +1478,14 @@ const ot = 4, oo = (e) => {
|
|
1478
1478
|
data: g,
|
1479
1479
|
isSuccess: f
|
1480
1480
|
} = uo(e, r && !l && !p, t);
|
1481
|
-
return
|
1481
|
+
return Ie(() => {
|
1482
1482
|
f && g && !p && d.saveChatId(g.chatId, e, t);
|
1483
1483
|
}, [g, f, e, t, p, d]), {
|
1484
1484
|
chatId: p,
|
1485
1485
|
isLoading: l,
|
1486
1486
|
isError: c
|
1487
1487
|
};
|
1488
|
-
}, bo = (e) =>
|
1488
|
+
}, bo = (e) => U(() => {
|
1489
1489
|
if (e != null && e.length) {
|
1490
1490
|
const t = e[e.length - 1];
|
1491
1491
|
if (Mr(t))
|
@@ -1505,7 +1505,7 @@ const ot = 4, oo = (e) => {
|
|
1505
1505
|
isLoading: g,
|
1506
1506
|
isError: f
|
1507
1507
|
} = so(i);
|
1508
|
-
|
1508
|
+
Ie(() => {
|
1509
1509
|
l ? p(new ve("ai.errors.chatUnavailable")) : f && p(new ve("ai.errors.fetchHistory"));
|
1510
1510
|
}, [l, f, r]);
|
1511
1511
|
const {
|
@@ -1613,10 +1613,10 @@ function Mo({
|
|
1613
1613
|
})]
|
1614
1614
|
});
|
1615
1615
|
}
|
1616
|
-
const
|
1616
|
+
const Do = /* @__PURE__ */ C("div", {
|
1617
1617
|
target: "e1q6h1ze0",
|
1618
1618
|
label: "Section"
|
1619
|
-
})("display:flex;flex-direction:column;row-gap:4px;"),
|
1619
|
+
})("display:flex;flex-direction:column;row-gap:4px;"), Io = /* @__PURE__ */ C("div", {
|
1620
1620
|
target: "e1q6h1ze1",
|
1621
1621
|
label: "SectionHeader"
|
1622
1622
|
})("font-size:11px;line-height:18px;font-weight:300;color:", ({
|
@@ -1644,8 +1644,8 @@ function Lo({
|
|
1644
1644
|
const [i, l] = Z(!1), {
|
1645
1645
|
themeSettings: d
|
1646
1646
|
} = L();
|
1647
|
-
return /* @__PURE__ */ v(
|
1648
|
-
children: [/* @__PURE__ */ n(
|
1647
|
+
return /* @__PURE__ */ v(Do, {
|
1648
|
+
children: [/* @__PURE__ */ n(Io, {
|
1649
1649
|
onClick: () => l((p) => !p),
|
1650
1650
|
theme: d,
|
1651
1651
|
children: e.toUpperCase()
|
@@ -1721,7 +1721,7 @@ function jo({
|
|
1721
1721
|
width: i == null ? void 0 : i.offsetWidth
|
1722
1722
|
},
|
1723
1723
|
theme: c,
|
1724
|
-
children: [r && /* @__PURE__ */ n(Ye, {}), !r && !d && p.map((x) => /* @__PURE__ */ n(Lo, j(
|
1724
|
+
children: [r && /* @__PURE__ */ n(Ye, {}), !r && !d && p.map((x) => /* @__PURE__ */ n(Lo, j(D({}, x), {
|
1725
1725
|
alwaysExpanded: f
|
1726
1726
|
}), x.title)), d && /* @__PURE__ */ n(No, {
|
1727
1727
|
theme: c,
|
@@ -1839,13 +1839,13 @@ function Po({
|
|
1839
1839
|
} = E(), _ = N((y) => {
|
1840
1840
|
var M;
|
1841
1841
|
if ((M = document.getElementById("csdk-chatbot-frame")) != null && M.contains(y.relatedTarget)) {
|
1842
|
-
const
|
1842
|
+
const I = (S) => {
|
1843
1843
|
var A;
|
1844
|
-
document.removeEventListener("mouseup",
|
1844
|
+
document.removeEventListener("mouseup", I), document.removeEventListener("keyup", I), S.type === "mouseup" && ((A = document.getSelection()) == null ? void 0 : A.type) !== "Range" && y.target.focus({
|
1845
1845
|
preventScroll: !0
|
1846
1846
|
});
|
1847
1847
|
};
|
1848
|
-
document.addEventListener("mouseup",
|
1848
|
+
document.addEventListener("mouseup", I), document.addEventListener("keyup", I);
|
1849
1849
|
}
|
1850
1850
|
}, []);
|
1851
1851
|
return /* @__PURE__ */ v(Eo, {
|
@@ -1954,7 +1954,7 @@ const Rt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
|
|
1954
1954
|
lt: "<",
|
1955
1955
|
nbsp: " ",
|
1956
1956
|
quot: "“"
|
1957
|
-
}, Go = ["style", "script"], Ho = ["src", "href", "data", "formAction", "srcDoc", "action"], Bo = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yo = /mailto:/i,
|
1957
|
+
}, Go = ["style", "script"], Ho = ["src", "href", "data", "formAction", "srcDoc", "action"], Bo = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yo = /mailto:/i, Uo = /\n{2,}$/, Dr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Qo = /^ *> ?/gm, Fo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Vo = /^ {2,}\n/, $o = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Ir = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Ar = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Jo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Xo = /^(?:\n *)*\n/, Ko = /\r\n?/g, en = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, tn = /^\[\^([^\]]+)]/, rn = /\f/g, an = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, on = /^\s*?\[(x|\s)\]/, Lr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Tr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Nr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, lt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, nn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, jr = /^<!--[\s\S]*?(?:-->)/, ln = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, dn = /^\{.*\}$/, sn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, cn = /^<([^ >]+@[^ >]+)>/, pn = /^<([^ >]+:\/[^ >]+)>/, un = /-([a-z])?/gi, Or = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, gn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, hn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, mn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, bn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, fn = /\t/g, xn = /(^ *\||\| *$)/g, kn = /^ *:-+: *$/, yn = /^ *:-+ *$/, wn = /^ *-+: *$/, Ue = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", _n = new RegExp(`^([*_])\\1${Ue}\\1\\1(?!\\1)`), Cn = new RegExp(`^([*_])${Ue}\\1(?!\\1)`), vn = new RegExp(`^(==)${Ue}\\1`), Sn = new RegExp(`^(~~)${Ue}\\1`), Mn = /^\\([^0-9A-Za-z\s])/, Wt = /\\([^0-9A-Za-z\s])/g, Dn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, In = /^\n+/, An = /^([ \t]*)/, Ln = /\\([^\\])/g, Tn = /(?:^|\n)( *)$/, yt = "(?:\\d+\\.)", wt = "(?:[*+-])";
|
1958
1958
|
function Er(e) {
|
1959
1959
|
return "( *)(" + (e === 1 ? yt : wt) + ") +";
|
1960
1960
|
}
|
@@ -1981,7 +1981,7 @@ function Pt(e, t) {
|
|
1981
1981
|
}),
|
1982
1982
|
order: 1,
|
1983
1983
|
parse(d, p, c) {
|
1984
|
-
const g = r ? +d[2] : void 0, f = d[0].replace(
|
1984
|
+
const g = r ? +d[2] : void 0, f = d[0].replace(Uo, `
|
1985
1985
|
`).match(i);
|
1986
1986
|
let x = !1;
|
1987
1987
|
return {
|
@@ -1991,11 +1991,11 @@ function Pt(e, t) {
|
|
1991
1991
|
`) !== -1 || w && x;
|
1992
1992
|
x = _;
|
1993
1993
|
const y = c.inline, M = c.list;
|
1994
|
-
let
|
1995
|
-
c.list = !0, _ ? (c.inline = !1,
|
1994
|
+
let I;
|
1995
|
+
c.list = !0, _ ? (c.inline = !1, I = Se(h) + `
|
1996
1996
|
|
1997
|
-
`) : (c.inline = !0,
|
1998
|
-
const S = p(
|
1997
|
+
`) : (c.inline = !0, I = Se(h));
|
1998
|
+
const S = p(I, c);
|
1999
1999
|
return c.inline = y, c.list = M, S;
|
2000
2000
|
}),
|
2001
2001
|
ordered: r,
|
@@ -2012,7 +2012,7 @@ function Pt(e, t) {
|
|
2012
2012
|
}))
|
2013
2013
|
};
|
2014
2014
|
}
|
2015
|
-
const zn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Rn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, Hr = [
|
2015
|
+
const zn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Rn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, Hr = [Dr, Ir, Ar, Lr, Nr, Tr, Or, qr, Gr], Zn = [...Hr, /^[^\n]+(?: \n|\n{2,})/, lt, jr, dt];
|
2016
2016
|
function Se(e) {
|
2017
2017
|
let t = e.length;
|
2018
2018
|
for (; t > 0 && e[t - 1] <= " "; )
|
@@ -2136,7 +2136,7 @@ function Xe() {
|
|
2136
2136
|
function Ke() {
|
2137
2137
|
return null;
|
2138
2138
|
}
|
2139
|
-
function
|
2139
|
+
function Un(...e) {
|
2140
2140
|
return e.filter(Boolean).join(" ");
|
2141
2141
|
}
|
2142
2142
|
function et(e, t, r) {
|
@@ -2146,21 +2146,21 @@ function et(e, t, r) {
|
|
2146
2146
|
i.shift();
|
2147
2147
|
return a || r;
|
2148
2148
|
}
|
2149
|
-
function
|
2149
|
+
function Qn(e = "", t = {}) {
|
2150
2150
|
function r(o, u, ...s) {
|
2151
2151
|
const m = et(t.overrides, `${o}.props`, {});
|
2152
2152
|
return t.createElement(function(h, w) {
|
2153
2153
|
const _ = et(w, h);
|
2154
2154
|
return _ ? typeof _ == "function" || typeof _ == "object" && "render" in _ ? _ : et(w, `${h}.component`, h) : h;
|
2155
2155
|
}(o, t.overrides), de({}, u, m, {
|
2156
|
-
className:
|
2156
|
+
className: Un(u == null ? void 0 : u.className, m.className) || void 0
|
2157
2157
|
}), ...s);
|
2158
2158
|
}
|
2159
2159
|
function a(o) {
|
2160
2160
|
o = o.replace(an, "");
|
2161
2161
|
let u = !1;
|
2162
2162
|
t.forceInline ? u = !0 : t.forceBlock || (u = bn.test(o) === !1);
|
2163
|
-
const s = g(c(u ? o : `${Se(o).replace(
|
2163
|
+
const s = g(c(u ? o : `${Se(o).replace(In, "")}
|
2164
2164
|
|
2165
2165
|
`, {
|
2166
2166
|
inline: u
|
@@ -2199,14 +2199,14 @@ function Un(e = "", t = {}) {
|
|
2199
2199
|
}(h.slice(w + 1).trim()), M = Rt[_] || _;
|
2200
2200
|
if (M === "ref")
|
2201
2201
|
return m;
|
2202
|
-
const
|
2203
|
-
return A === "style" ? function(
|
2202
|
+
const I = m[M] = function(S, A, R, pe) {
|
2203
|
+
return A === "style" ? function(Q) {
|
2204
2204
|
const q = [];
|
2205
2205
|
let H = "", F = !1, G = !1, V = "";
|
2206
|
-
if (!
|
2206
|
+
if (!Q)
|
2207
2207
|
return q;
|
2208
|
-
for (let z = 0; z <
|
2209
|
-
const W =
|
2208
|
+
for (let z = 0; z < Q.length; z++) {
|
2209
|
+
const W = Q[z];
|
2210
2210
|
if (W !== '"' && W !== "'" || F || (G ? W === V && (G = !1, V = "") : (G = !0, V = W)), W === "(" && H.endsWith("url") ? F = !0 : W === ")" && F && (F = !1), W !== ";" || G || F)
|
2211
2211
|
H += W;
|
2212
2212
|
else {
|
@@ -2230,11 +2230,11 @@ function Un(e = "", t = {}) {
|
|
2230
2230
|
}
|
2231
2231
|
}
|
2232
2232
|
return q;
|
2233
|
-
}(R).reduce(function(
|
2234
|
-
return
|
2233
|
+
}(R).reduce(function(Q, [q, H]) {
|
2234
|
+
return Q[q.replace(/(-[a-z])/g, (F) => F[1].toUpperCase())] = pe(H, S, q), Q;
|
2235
2235
|
}, {}) : Ho.indexOf(A) !== -1 ? pe(R, S, A) : (R.match(dn) && (R = R.slice(1, R.length - 1)), R === "true" || R !== "false" && R);
|
2236
2236
|
}(o, _, y, t.sanitizer);
|
2237
|
-
typeof
|
2237
|
+
typeof I == "string" && (lt.test(I) || dt.test(I)) && (m[M] = a(I.trim()));
|
2238
2238
|
} else
|
2239
2239
|
h !== "style" && (m[Rt[h] || h] = !0);
|
2240
2240
|
return m;
|
@@ -2243,10 +2243,10 @@ function Un(e = "", t = {}) {
|
|
2243
2243
|
t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Hn, t.slugify = t.slugify || we, t.namedCodesToUnicode = t.namedCodesToUnicode ? de({}, Zt, t.namedCodesToUnicode) : Zt, t.createElement = t.createElement || Ha;
|
2244
2244
|
const l = [], d = {}, p = {
|
2245
2245
|
[k.blockQuote]: {
|
2246
|
-
match: ee(
|
2246
|
+
match: ee(Dr),
|
2247
2247
|
order: 1,
|
2248
2248
|
parse(o, u, s) {
|
2249
|
-
const [, m, h] = o[0].replace(
|
2249
|
+
const [, m, h] = o[0].replace(Qo, "").match(Fo);
|
2250
2250
|
return {
|
2251
2251
|
alert: m,
|
2252
2252
|
children: u(h, s)
|
@@ -2298,7 +2298,7 @@ function Un(e = "", t = {}) {
|
|
2298
2298
|
}), o.text))
|
2299
2299
|
},
|
2300
2300
|
[k.codeFenced]: {
|
2301
|
-
match: ee(
|
2301
|
+
match: ee(Ir),
|
2302
2302
|
order: 0,
|
2303
2303
|
parse: (o) => ({
|
2304
2304
|
attrs: i("code", o[3] || ""),
|
@@ -2381,12 +2381,12 @@ function Un(e = "", t = {}) {
|
|
2381
2381
|
parse(o, u, s) {
|
2382
2382
|
const [, m] = o[3].match(An), h = new RegExp(`^${m}`, "gm"), w = o[3].replace(h, ""), _ = (y = w, Zn.some((R) => R.test(y)) ? Yn : Ze);
|
2383
2383
|
var y;
|
2384
|
-
const M = o[1].toLowerCase(),
|
2384
|
+
const M = o[1].toLowerCase(), I = Go.indexOf(M) !== -1, S = (I ? M : o[1]).trim(), A = {
|
2385
2385
|
attrs: i(S, o[2]),
|
2386
|
-
noInnerParse:
|
2386
|
+
noInnerParse: I,
|
2387
2387
|
tag: S
|
2388
2388
|
};
|
2389
|
-
return s.inAnchor = s.inAnchor || M === "a",
|
2389
|
+
return s.inAnchor = s.inAnchor || M === "a", I ? A.text = o[3] : A.children = _(u, w, s), s.inAnchor = !1, A;
|
2390
2390
|
},
|
2391
2391
|
render: (o, u, s) => r(o.tag, de({
|
2392
2392
|
key: s.key
|
@@ -2563,7 +2563,7 @@ function Un(e = "", t = {}) {
|
|
2563
2563
|
}
|
2564
2564
|
},
|
2565
2565
|
[k.text]: {
|
2566
|
-
match: _e(
|
2566
|
+
match: _e(Dn),
|
2567
2567
|
order: 4,
|
2568
2568
|
parse: (o) => ({
|
2569
2569
|
text: o[0].replace(nn, (u, s) => t.namedCodesToUnicode[s] ? t.namedCodesToUnicode[s] : u)
|
@@ -2619,7 +2619,7 @@ function Un(e = "", t = {}) {
|
|
2619
2619
|
const c = function(o) {
|
2620
2620
|
let u = Object.keys(o);
|
2621
2621
|
function s(m, h) {
|
2622
|
-
let w, _, y = [], M = "",
|
2622
|
+
let w, _, y = [], M = "", I = "";
|
2623
2623
|
for (h.prevCapture = h.prevCapture || ""; m; ) {
|
2624
2624
|
let S = 0;
|
2625
2625
|
for (; S < u.length; ) {
|
@@ -2629,7 +2629,7 @@ function Un(e = "", t = {}) {
|
|
2629
2629
|
}
|
2630
2630
|
const A = w.match(m, h);
|
2631
2631
|
if (A) {
|
2632
|
-
|
2632
|
+
I = A[0], h.prevCapture += I, m = m.substring(I.length), _ = w.parse(A, s, h), _.type == null && (_.type = M), y.push(_);
|
2633
2633
|
break;
|
2634
2634
|
}
|
2635
2635
|
S++;
|
@@ -2689,7 +2689,7 @@ const Fn = (e) => {
|
|
2689
2689
|
l.indexOf(d = g[p]) >= 0 || (c[d] = i[d]);
|
2690
2690
|
return c;
|
2691
2691
|
}(e, qo);
|
2692
|
-
return Oa(
|
2692
|
+
return Oa(Qn(t, r), a);
|
2693
2693
|
}, Vn = /* @__PURE__ */ C("div", {
|
2694
2694
|
target: "e1vkf9b40",
|
2695
2695
|
label: "FlexContainer"
|
@@ -2780,7 +2780,7 @@ const Ee = /* @__PURE__ */ C("div", {
|
|
2780
2780
|
target: "e3ryei50",
|
2781
2781
|
label: "Dot"
|
2782
2782
|
})("width:5px;height:5px;border-radius:50%;background-color:", (e) => e.color, ";animation:hop 0.9s ease-out infinite;&:nth-of-type(2){animation-delay:0.1s;}&:nth-of-type(3){animation-delay:0.2s;}&:nth-of-type(4){animation-delay:0.3s;}@keyframes hop{0%,40%{transform:translateY(0);}20%{transform:translateY(-100%);}}");
|
2783
|
-
function
|
2783
|
+
function Ur() {
|
2784
2784
|
const {
|
2785
2785
|
themeSettings: e
|
2786
2786
|
} = L(), t = e.aiChat.icons.color;
|
@@ -2921,8 +2921,8 @@ function rl({
|
|
2921
2921
|
function al(e) {
|
2922
2922
|
return Ma("MuiDialog", e);
|
2923
2923
|
}
|
2924
|
-
const tt = pa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]),
|
2925
|
-
process.env.NODE_ENV !== "production" && (
|
2924
|
+
const tt = pa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Qr = /* @__PURE__ */ He({});
|
2925
|
+
process.env.NODE_ENV !== "production" && (Qr.displayName = "DialogContext");
|
2926
2926
|
const il = Be(ua, {
|
2927
2927
|
name: "MuiDialog",
|
2928
2928
|
slot: "Backdrop",
|
@@ -3109,15 +3109,15 @@ const il = Be(ua, {
|
|
3109
3109
|
onClick: _,
|
3110
3110
|
onClose: y,
|
3111
3111
|
open: M,
|
3112
|
-
PaperComponent:
|
3112
|
+
PaperComponent: I = $t,
|
3113
3113
|
PaperProps: S = {},
|
3114
3114
|
scroll: A = "paper",
|
3115
3115
|
slots: R = {},
|
3116
3116
|
slotProps: pe = {},
|
3117
|
-
TransitionComponent:
|
3117
|
+
TransitionComponent: Q = Ct,
|
3118
3118
|
transitionDuration: q = i,
|
3119
3119
|
TransitionProps: H
|
3120
|
-
} = l, F = Xi(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"]), G = j(
|
3120
|
+
} = l, F = Xi(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"]), G = j(D({}, r), {
|
3121
3121
|
disableEscapeKeyDown: u,
|
3122
3122
|
fullScreen: s,
|
3123
3123
|
fullWidth: m,
|
@@ -3127,11 +3127,11 @@ const il = Be(ua, {
|
|
3127
3127
|
$.current = ge.target === ge.currentTarget;
|
3128
3128
|
}, W = (ge) => {
|
3129
3129
|
_ && _(ge), $.current && ($.current = null, w && w(ge), y && y(ge, "backdropClick"));
|
3130
|
-
}, B = fa(p), le =
|
3130
|
+
}, B = fa(p), le = U(() => ({
|
3131
3131
|
titleId: B
|
3132
|
-
}), [B]), ue =
|
3133
|
-
transition:
|
3134
|
-
}, R), xe =
|
3132
|
+
}), [B]), ue = D({
|
3133
|
+
transition: Q
|
3134
|
+
}, R), xe = D({
|
3135
3135
|
transition: H,
|
3136
3136
|
paper: S,
|
3137
3137
|
backdrop: f
|
@@ -3172,13 +3172,13 @@ const il = Be(ua, {
|
|
3172
3172
|
role: "presentation"
|
3173
3173
|
}
|
3174
3174
|
});
|
3175
|
-
return /* @__PURE__ */ ye(J, j(
|
3175
|
+
return /* @__PURE__ */ ye(J, j(D(D({
|
3176
3176
|
closeAfterTransition: !0,
|
3177
3177
|
slots: {
|
3178
3178
|
backdrop: Ne
|
3179
3179
|
},
|
3180
3180
|
slotProps: {
|
3181
|
-
backdrop:
|
3181
|
+
backdrop: D({
|
3182
3182
|
transitionDuration: q,
|
3183
3183
|
as: g
|
3184
3184
|
}, ra)
|
@@ -3188,19 +3188,19 @@ const il = Be(ua, {
|
|
3188
3188
|
open: M,
|
3189
3189
|
onClick: W
|
3190
3190
|
}, Te), F), {
|
3191
|
-
children: /* @__PURE__ */ ye(la, j(
|
3192
|
-
children: /* @__PURE__ */ ye(oa, j(
|
3191
|
+
children: /* @__PURE__ */ ye(la, j(D({}, da), {
|
3192
|
+
children: /* @__PURE__ */ ye(oa, j(D({
|
3193
3193
|
onMouseDown: z
|
3194
3194
|
}, na), {
|
3195
|
-
children: /* @__PURE__ */ ye(aa, j(
|
3196
|
-
as:
|
3195
|
+
children: /* @__PURE__ */ ye(aa, j(D({
|
3196
|
+
as: I,
|
3197
3197
|
elevation: 24,
|
3198
3198
|
role: "dialog",
|
3199
3199
|
"aria-describedby": d,
|
3200
3200
|
"aria-labelledby": B,
|
3201
3201
|
"aria-modal": c
|
3202
3202
|
}, ia), {
|
3203
|
-
children: /* @__PURE__ */ ye(
|
3203
|
+
children: /* @__PURE__ */ ye(Qr.Provider, {
|
3204
3204
|
value: le,
|
3205
3205
|
children: x
|
3206
3206
|
})
|
@@ -3634,7 +3634,7 @@ function xl({
|
|
3634
3634
|
onRefresh: t,
|
3635
3635
|
onExpand: r
|
3636
3636
|
}) {
|
3637
|
-
const a =
|
3637
|
+
const a = U(() => [{
|
3638
3638
|
title: "Refresh",
|
3639
3639
|
onClick: t,
|
3640
3640
|
icon: /* @__PURE__ */ n(gl, {})
|
@@ -3658,7 +3658,7 @@ function kl({
|
|
3658
3658
|
} = L(), {
|
3659
3659
|
inlineElement: i,
|
3660
3660
|
expandedElement: l
|
3661
|
-
} =
|
3661
|
+
} = U(() => {
|
3662
3662
|
const d = ft(e, {
|
3663
3663
|
useCustomizedStyleOptions: !0
|
3664
3664
|
});
|
@@ -3682,10 +3682,10 @@ function kl({
|
|
3682
3682
|
if (Xa(d.chartType))
|
3683
3683
|
f = /* @__PURE__ */ n("div", {
|
3684
3684
|
className: "csdk-h-[245px]",
|
3685
|
-
children: /* @__PURE__ */ n(je, j(
|
3685
|
+
children: /* @__PURE__ */ n(je, j(D({}, d), {
|
3686
3686
|
styleOptions: g
|
3687
3687
|
}))
|
3688
|
-
}), x = /* @__PURE__ */ n(je, j(
|
3688
|
+
}), x = /* @__PURE__ */ n(je, j(D({}, d), {
|
3689
3689
|
styleOptions: {
|
3690
3690
|
header: {
|
3691
3691
|
hidden: !0
|
@@ -3693,21 +3693,21 @@ function kl({
|
|
3693
3693
|
}
|
3694
3694
|
}));
|
3695
3695
|
else {
|
3696
|
-
const o = j(
|
3696
|
+
const o = j(D({}, c), {
|
3697
3697
|
header: {
|
3698
3698
|
hidden: !0
|
3699
3699
|
}
|
3700
|
-
}), u =
|
3700
|
+
}), u = D(j(D({}, c), {
|
3701
3701
|
legend: void 0,
|
3702
3702
|
xAxis: void 0,
|
3703
3703
|
yAxis: void 0
|
3704
3704
|
}), g);
|
3705
3705
|
delete u.legend, delete u.xAxis, delete u.yAxis, f = /* @__PURE__ */ n("div", {
|
3706
|
-
children: /* @__PURE__ */ n(je, j(
|
3706
|
+
children: /* @__PURE__ */ n(je, j(D({}, d), {
|
3707
3707
|
styleOptions: u
|
3708
3708
|
}))
|
3709
|
-
}), x = /* @__PURE__ */ n(je, j(
|
3710
|
-
styleOptions:
|
3709
|
+
}), x = /* @__PURE__ */ n(je, j(D({}, d), {
|
3710
|
+
styleOptions: D({
|
3711
3711
|
cornerRadius: "None"
|
3712
3712
|
}, o)
|
3713
3713
|
}));
|
@@ -3874,7 +3874,7 @@ function Bt({
|
|
3874
3874
|
data: t,
|
3875
3875
|
rating: x
|
3876
3876
|
});
|
3877
|
-
}, [l, e, t, r]), 200), [p, c] = vl(), g =
|
3877
|
+
}, [l, e, t, r]), 200), [p, c] = vl(), g = U(() => a === "onHover" ? c : a !== "never", [c, a]), {
|
3878
3878
|
themeSettings: f
|
3879
3879
|
} = L();
|
3880
3880
|
return /* @__PURE__ */ n(Sl, {
|
@@ -3886,7 +3886,7 @@ function Bt({
|
|
3886
3886
|
}))
|
3887
3887
|
});
|
3888
3888
|
}
|
3889
|
-
const
|
3889
|
+
const Dl = 18 * 5;
|
3890
3890
|
function $r({
|
3891
3891
|
text: e
|
3892
3892
|
}) {
|
@@ -3894,7 +3894,7 @@ function $r({
|
|
3894
3894
|
t: l
|
3895
3895
|
} = E(), d = se(null);
|
3896
3896
|
return We(() => {
|
3897
|
-
d.current && d.current.scrollHeight >
|
3897
|
+
d.current && d.current.scrollHeight > Dl && i(!0);
|
3898
3898
|
}, [e]), /* @__PURE__ */ v("div", {
|
3899
3899
|
children: [/* @__PURE__ */ n("div", {
|
3900
3900
|
ref: d,
|
@@ -3910,7 +3910,7 @@ function $r({
|
|
3910
3910
|
})]
|
3911
3911
|
});
|
3912
3912
|
}
|
3913
|
-
function
|
3913
|
+
function Il({
|
3914
3914
|
nlgRequest: e
|
3915
3915
|
}) {
|
3916
3916
|
const {
|
@@ -3920,7 +3920,7 @@ function Dl({
|
|
3920
3920
|
} = _r(e), {
|
3921
3921
|
t: i
|
3922
3922
|
} = E();
|
3923
|
-
return r ? /* @__PURE__ */ n(
|
3923
|
+
return r ? /* @__PURE__ */ n(Ur, {}) : a ? /* @__PURE__ */ n(ne, {
|
3924
3924
|
align: "left",
|
3925
3925
|
children: i("ai.errors.unexpected")
|
3926
3926
|
}) : /* @__PURE__ */ n(ne, {
|
@@ -4024,7 +4024,7 @@ function jl({
|
|
4024
4024
|
children: [/* @__PURE__ */ n(Ll, {
|
4025
4025
|
onClick: m
|
4026
4026
|
}), y]
|
4027
|
-
}), u && /* @__PURE__ */ n(
|
4027
|
+
}), u && /* @__PURE__ */ n(Il, {
|
4028
4028
|
nlgRequest: h
|
4029
4029
|
})]
|
4030
4030
|
})
|
@@ -4062,8 +4062,8 @@ function Rl({
|
|
4062
4062
|
t
|
4063
4063
|
} = E();
|
4064
4064
|
return /* @__PURE__ */ n(Y, {
|
4065
|
-
children: e.map((r, a) => /* @__PURE__ */ n(
|
4066
|
-
fallbackRender: (i) => zl(j(
|
4065
|
+
children: e.map((r, a) => /* @__PURE__ */ n(Da, {
|
4066
|
+
fallbackRender: (i) => zl(j(D({}, i), {
|
4067
4067
|
displayMessage: t("ai.errors.unexpected")
|
4068
4068
|
})),
|
4069
4069
|
children: /* @__PURE__ */ n(El, {
|
@@ -4149,7 +4149,7 @@ const Wl = /* @__PURE__ */ C("button", {
|
|
4149
4149
|
}
|
4150
4150
|
return "";
|
4151
4151
|
});
|
4152
|
-
function
|
4152
|
+
function Ut({
|
4153
4153
|
question: e,
|
4154
4154
|
onClick: t
|
4155
4155
|
}) {
|
@@ -4174,16 +4174,16 @@ function ql({
|
|
4174
4174
|
}) {
|
4175
4175
|
const {
|
4176
4176
|
t: r
|
4177
|
-
} = E(), [a, i] = Z(!0), l =
|
4177
|
+
} = E(), [a, i] = Z(!0), l = U(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
|
4178
4178
|
themeSettings: d
|
4179
4179
|
} = L();
|
4180
4180
|
return /* @__PURE__ */ v(Pl, {
|
4181
4181
|
"aria-label": "list of suggested questions",
|
4182
4182
|
theme: d,
|
4183
|
-
children: [l.map((p) => /* @__PURE__ */ n(
|
4183
|
+
children: [l.map((p) => /* @__PURE__ */ n(Ut, {
|
4184
4184
|
question: p,
|
4185
4185
|
onClick: () => t(p)
|
4186
|
-
}, p)), l.length < e.length && /* @__PURE__ */ n(
|
4186
|
+
}, p)), l.length < e.length && /* @__PURE__ */ n(Ut, {
|
4187
4187
|
question: r("ai.buttons.seeMore"),
|
4188
4188
|
onClick: () => i(!1)
|
4189
4189
|
})]
|
@@ -4236,12 +4236,12 @@ function Yl({
|
|
4236
4236
|
})]
|
4237
4237
|
}) : null;
|
4238
4238
|
}
|
4239
|
-
const
|
4239
|
+
const Ul = /* @__PURE__ */ C("div", {
|
4240
4240
|
target: "ew7avl30",
|
4241
4241
|
label: "ToolbarContainer"
|
4242
4242
|
})("flex:0 0 80px;padding-left:14px;padding-right:14px;display:flex;align-items:center;position:relative;background-color:", ({
|
4243
4243
|
style: e
|
4244
|
-
}) => e.backgroundColor, ";"),
|
4244
|
+
}) => e.backgroundColor, ";"), Ql = /* @__PURE__ */ C("div", {
|
4245
4245
|
target: "ew7avl31",
|
4246
4246
|
label: "ToolbarTitle"
|
4247
4247
|
})("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({
|
@@ -4252,10 +4252,10 @@ const Ql = /* @__PURE__ */ C("div", {
|
|
4252
4252
|
rightNav: r,
|
4253
4253
|
style: a
|
4254
4254
|
}, i) {
|
4255
|
-
return /* @__PURE__ */ v(
|
4255
|
+
return /* @__PURE__ */ v(Ul, {
|
4256
4256
|
ref: i,
|
4257
4257
|
style: a,
|
4258
|
-
children: [t, /* @__PURE__ */ n(
|
4258
|
+
children: [t, /* @__PURE__ */ n(Ql, {
|
4259
4259
|
style: a,
|
4260
4260
|
children: e
|
4261
4261
|
}), r && /* @__PURE__ */ n("div", {
|
@@ -4303,7 +4303,7 @@ function $l() {
|
|
4303
4303
|
});
|
4304
4304
|
}
|
4305
4305
|
const Jl = (e, t) => {
|
4306
|
-
const r = new
|
4306
|
+
const r = new Ua(e);
|
4307
4307
|
return r.alpha = t, r;
|
4308
4308
|
}, Xl = /* @__PURE__ */ C("div", {
|
4309
4309
|
target: "e1rxvpki0",
|
@@ -4397,18 +4397,18 @@ function id({
|
|
4397
4397
|
contextTitle: e,
|
4398
4398
|
count: f,
|
4399
4399
|
customPrompt: x
|
4400
|
-
}), h =
|
4400
|
+
}), h = U(() => u == null ? void 0 : u.map((T) => T.nlqPrompt), [u]), {
|
4401
4401
|
history: w,
|
4402
4402
|
lastNlqResponse: _,
|
4403
4403
|
isAwaitingResponse: y,
|
4404
4404
|
sendMessage: M,
|
4405
|
-
isLoading:
|
4405
|
+
isLoading: I,
|
4406
4406
|
chatId: S,
|
4407
4407
|
lastError: A
|
4408
4408
|
} = xo(e, r), {
|
4409
4409
|
mutate: R,
|
4410
4410
|
isLoading: pe
|
4411
|
-
} = Sr(S), [
|
4411
|
+
} = Sr(S), [Q, q] = Z(!1), [H, F] = Z(!1), G = () => q(!0), V = () => q(!1), $ = () => {
|
4412
4412
|
R(), V();
|
4413
4413
|
}, z = se(null), W = se(null), B = () => {
|
4414
4414
|
if (!(z != null && z.current))
|
@@ -4425,7 +4425,7 @@ function id({
|
|
4425
4425
|
};
|
4426
4426
|
We(() => {
|
4427
4427
|
z.current && (z.current.scrollTop = z.current.scrollHeight);
|
4428
|
-
}, [w,
|
4428
|
+
}, [w, Q, y]);
|
4429
4429
|
const le = se(null), ue = c ? /* @__PURE__ */ n(Xr, {
|
4430
4430
|
ref: le,
|
4431
4431
|
title: e,
|
@@ -4434,7 +4434,7 @@ function id({
|
|
4434
4434
|
color: o.aiChat.header.textColor
|
4435
4435
|
}),
|
4436
4436
|
style: o.aiChat.header
|
4437
|
-
}) : null, xe =
|
4437
|
+
}) : null, xe = U(() => [...new Set(w.filter((T) => T.role === "user").filter((T) => !(h != null && h.includes(T.content))).map((T) => T.content).reverse())].slice(0, g), [w, g, h]);
|
4438
4438
|
return (A == null ? void 0 : A.message) === d("ai.errors.chatUnavailable") ? /* @__PURE__ */ v(Y, {
|
4439
4439
|
children: [c && ue, /* @__PURE__ */ n(Yr, {
|
4440
4440
|
text: A.message
|
@@ -4461,7 +4461,7 @@ function id({
|
|
4461
4461
|
}), A && /* @__PURE__ */ n(ne, {
|
4462
4462
|
align: "left",
|
4463
4463
|
children: A.message
|
4464
|
-
}),
|
4464
|
+
}), I ? /* @__PURE__ */ n(Ye, {}) : /* @__PURE__ */ n(Rl, {
|
4465
4465
|
messages: w
|
4466
4466
|
}), p && _ && ((i = (a = _.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ n(ad, {
|
4467
4467
|
theme: o,
|
@@ -4475,7 +4475,7 @@ function id({
|
|
4475
4475
|
children: T
|
4476
4476
|
})
|
4477
4477
|
}, J))
|
4478
|
-
}), (y || pe) && /* @__PURE__ */ n(
|
4478
|
+
}), (y || pe) && /* @__PURE__ */ n(Ur, {}), Q && /* @__PURE__ */ n(rl, {
|
4479
4479
|
onCancel: V,
|
4480
4480
|
onConfirm: $
|
4481
4481
|
})]
|
@@ -4484,11 +4484,11 @@ function id({
|
|
4484
4484
|
theme: o,
|
4485
4485
|
children: [/* @__PURE__ */ n(Po, {
|
4486
4486
|
onSendMessage: M,
|
4487
|
-
disabled: y ||
|
4487
|
+
disabled: y || I,
|
4488
4488
|
onClearHistoryClick: G,
|
4489
4489
|
suggestions: h || [],
|
4490
4490
|
recentPrompts: xe,
|
4491
|
-
isLoading: s ||
|
4491
|
+
isLoading: s || I,
|
4492
4492
|
recommendationsError: m,
|
4493
4493
|
onChange: V
|
4494
4494
|
}), /* @__PURE__ */ n(Vl, {
|
@@ -4577,7 +4577,7 @@ function gd(e) {
|
|
4577
4577
|
}), /* @__PURE__ */ v(ud, {
|
4578
4578
|
theme: r,
|
4579
4579
|
children: [a("ai.chatbotDescription"), /* @__PURE__ */ n("br", {}), /* @__PURE__ */ n("br", {}), a("ai.topicSelectPrompt")]
|
4580
|
-
}), t.map((i) => /* @__PURE__ */
|
4580
|
+
}), t.map((i) => /* @__PURE__ */ Ia(sd, j(D({}, i), {
|
4581
4581
|
key: i.title
|
4582
4582
|
})))]
|
4583
4583
|
});
|
@@ -4663,7 +4663,7 @@ function kd({
|
|
4663
4663
|
themeSettings: a
|
4664
4664
|
} = L(), {
|
4665
4665
|
t: i
|
4666
|
-
} = E(), l =
|
4666
|
+
} = E(), l = U(() => e == null ? void 0 : e.map((p) => ({
|
4667
4667
|
title: p,
|
4668
4668
|
onClick: () => t(p)
|
4669
4669
|
})), [e, t]), d = va(Sa(a.aiChat.header.backgroundColor)) > 0.5;
|
@@ -4695,13 +4695,13 @@ function yd() {
|
|
4695
4695
|
t: c
|
4696
4696
|
} = E(), g = c("ai.errors.noAvailableDataTopics"), f = N((s) => {
|
4697
4697
|
s.length ? s.length === 1 && (a(void 0), t(s[0])) : a(g);
|
4698
|
-
}, [g]), x =
|
4698
|
+
}, [g]), x = U(() => {
|
4699
4699
|
if (i && l === "idle") {
|
4700
4700
|
const s = (d != null && d.length ? i == null ? void 0 : i.filter((m) => d == null ? void 0 : d.includes(m.title)) : i).map((m) => m.title);
|
4701
4701
|
return f(s), s;
|
4702
4702
|
}
|
4703
4703
|
return [];
|
4704
|
-
}, [i, l, d, f]), o =
|
4704
|
+
}, [i, l, d, f]), o = De(), u = N(() => {
|
4705
4705
|
a(void 0), o.invalidateQueries(["getDataTopics"]);
|
4706
4706
|
}, [o]);
|
4707
4707
|
return r ? /* @__PURE__ */ n(Yr, {
|
@@ -4793,11 +4793,11 @@ function vd({
|
|
4793
4793
|
})();
|
4794
4794
|
const Kr = {
|
4795
4795
|
api: void 0
|
4796
|
-
}, ea = Symbol("aiContextKey"),
|
4796
|
+
}, ea = Symbol("aiContextKey"), Qe = () => sa(
|
4797
4797
|
ea,
|
4798
|
-
() =>
|
4798
|
+
() => Qt(Kr),
|
4799
4799
|
!0
|
4800
|
-
),
|
4800
|
+
), Dd = st({
|
4801
4801
|
props: {
|
4802
4802
|
/**
|
4803
4803
|
* {@inheritDoc @sisense/sdk-ui!AiContextProviderProps.volatile}
|
@@ -4805,7 +4805,7 @@ const Kr = {
|
|
4805
4805
|
volatile: Boolean
|
4806
4806
|
},
|
4807
4807
|
setup(e, { slots: t }) {
|
4808
|
-
const r = oi(), a =
|
4808
|
+
const r = oi(), a = Qt(Kr), { app: i } = r.value;
|
4809
4809
|
return i && (a.value = {
|
4810
4810
|
api: new Ot(i.httpClient, e.volatile)
|
4811
4811
|
}), Ft(async () => {
|
@@ -4819,7 +4819,7 @@ const Kr = {
|
|
4819
4819
|
};
|
4820
4820
|
}
|
4821
4821
|
}), ta = () => {
|
4822
|
-
const e =
|
4822
|
+
const e = Qe(), t = new ni({
|
4823
4823
|
context: e.value
|
4824
4824
|
});
|
4825
4825
|
return Ft(() => {
|
@@ -4830,7 +4830,7 @@ const Kr = {
|
|
4830
4830
|
propsObserver: t,
|
4831
4831
|
providerComponent: vd
|
4832
4832
|
};
|
4833
|
-
},
|
4833
|
+
}, Id = st({
|
4834
4834
|
props: {
|
4835
4835
|
/**
|
4836
4836
|
* {@inheritDoc @sisense/sdk-ui!ChatbotProps.width}
|
@@ -4888,7 +4888,7 @@ const Kr = {
|
|
4888
4888
|
status: "loading",
|
4889
4889
|
error: void 0,
|
4890
4890
|
data: void 0
|
4891
|
-
}), a =
|
4891
|
+
}), a = Qe(), i = async (d) => {
|
4892
4892
|
var p;
|
4893
4893
|
try {
|
4894
4894
|
r({ type: "loading" });
|
@@ -4922,7 +4922,7 @@ const Kr = {
|
|
4922
4922
|
status: "loading",
|
4923
4923
|
error: void 0,
|
4924
4924
|
data: void 0
|
4925
|
-
}), a =
|
4925
|
+
}), a = Qe(), i = async (d) => {
|
4926
4926
|
try {
|
4927
4927
|
r({ type: "loading" });
|
4928
4928
|
const { contextTitle: p, count: c, enableAxisTitlesInWidgetProps: g, customPrompt: f } = be(e), x = c ?? ot, o = await (d == null ? void 0 : d.ai.getQueryRecommendations(p, {
|
@@ -4963,7 +4963,7 @@ const Kr = {
|
|
4963
4963
|
status: "loading",
|
4964
4964
|
error: void 0,
|
4965
4965
|
data: void 0
|
4966
|
-
}), a =
|
4966
|
+
}), a = Qe(), i = async (d) => {
|
4967
4967
|
try {
|
4968
4968
|
r({ type: "loading" });
|
4969
4969
|
const p = be(e), { enableAxisTitlesInWidgetProps: c } = p, { contextTitle: g, request: f } = io(p), x = await (d == null ? void 0 : d.ai.getNlqResult(g, f)), o = x ? br.toWidgetProps(x, {
|
@@ -4991,8 +4991,8 @@ const Kr = {
|
|
4991
4991
|
};
|
4992
4992
|
};
|
4993
4993
|
export {
|
4994
|
-
|
4995
|
-
|
4994
|
+
Dd as AiContextProvider,
|
4995
|
+
Id as Chatbot,
|
4996
4996
|
Ad as GetNlgInsights,
|
4997
4997
|
Ld as useGetNlgInsights,
|
4998
4998
|
Nd as useGetNlqResult,
|