@sisense/sdk-ui-preact 1.33.0 → 1.34.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 +15 -15
- package/dist/ai.js +193 -175
- package/dist/index.cjs +28 -19
- package/dist/index.js +4647 -4556
- package/dist/packages/sdk-ui-preact/src/component-adapter/component-adapter.d.ts +6 -8
- package/dist/packages/sdk-ui-preact/src/component-adapter/context-connector.d.ts +6 -12
- package/dist/packages/sdk-ui-preact/src/component-adapter/hook-adapter.d.ts +15 -0
- package/dist/packages/sdk-ui-preact/src/component-adapter/hook-wrapper-component.d.ts +18 -0
- package/dist/packages/sdk-ui-preact/src/component-adapter/index.d.ts +3 -0
- package/dist/packages/sdk-ui-preact/src/component-adapter/types.d.ts +11 -0
- package/dist/packages/sdk-ui-preact/src/component-adapter/utils/data-observer.d.ts +12 -0
- package/dist/packages/sdk-ui-preact/src/component-adapter/utils/index.d.ts +2 -0
- package/dist/packages/sdk-ui-preact/src/component-adapter/utils/observable.d.ts +10 -0
- package/dist/packages/sdk-ui-preact/src/index.d.ts +2 -2
- package/dist/packages/sdk-ui-preact/src/render.d.ts +2 -2
- package/dist/{use-common-filters--WPkVexd-ae572f5f.cjs → use-common-filters-Bw15BNGn-57e81698.cjs} +233 -233
- package/dist/{use-common-filters--WPkVexd-14a82a3c.js → use-common-filters-Bw15BNGn-9af1ab9b.js} +17590 -17588
- package/package.json +6 -6
- package/dist/packages/sdk-ui-preact/src/component-adapter/utils.d.ts +0 -5
package/dist/ai.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var Or = Object.defineProperty, Rr = Object.defineProperties, Zr = Object.getOwnPropertyDescriptors,
|
|
1
|
+
import { b6 as Le, a4 as xe, a3 as Ut, Q as $, eJ as Ft, aK as fe, eK as Vt, bA as $t, be as Xe, eL as de, ep as dt, cs as Ee, aS as Jt, bY as Xt, eM as ct, ed as Kt, a8 as st, aI as Ce, i as er, d as ve, eN as tr, eO as rr, m as ee, h as U, eP as pt, a as b, b as Ze, D as k, H as i, J as _, a7 as T, eQ as ar, ax as ir, ag as or, q as N, bi as te, x as y, au as Me, p as D, _ as re, ai as gt, W as nr, bn as lr, aj as dr, F as V, eR as cr, u as ne, E as Ne, eS as sr, a1 as pr, eT as gr, a5 as le, de as ut, ak as We, N as ur, eU as ce, V as g, cH as L, c as h, bX as hr, eV as mr, A as ke, eW as br, eX as fr, eY as ht, eZ as xr, e_ as kr, c9 as wr, ca as yr, e$ as _r, f0 as Cr, f1 as vr, ee as Mr, c8 as Dr, f2 as Sr, cG as mt, f3 as Ir, d5 as Ar, f4 as Lr, aL as bt, aM as ft, f5 as Nr, cp as Tr, f6 as jr, cD as Er, f7 as zr } from "./use-common-filters-Bw15BNGn-9af1ab9b.js";
|
|
2
|
+
var Or = Object.defineProperty, Rr = Object.defineProperties, Zr = Object.getOwnPropertyDescriptors, Ke = Object.getOwnPropertySymbols, Wr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, et = (e, t, r) => t in e ? Or(e, t, {
|
|
3
3
|
enumerable: !0,
|
|
4
4
|
configurable: !0,
|
|
5
5
|
writable: !0,
|
|
6
6
|
value: r
|
|
7
7
|
}) : e[t] = r, F = (e, t) => {
|
|
8
8
|
for (var r in t || (t = {}))
|
|
9
|
-
Wr.call(t, r) &&
|
|
10
|
-
if (
|
|
11
|
-
for (var r of
|
|
12
|
-
qr.call(t, r) &&
|
|
9
|
+
Wr.call(t, r) && et(e, r, t[r]);
|
|
10
|
+
if (Ke)
|
|
11
|
+
for (var r of Ke(t))
|
|
12
|
+
qr.call(t, r) && et(e, r, t[r]);
|
|
13
13
|
return e;
|
|
14
14
|
}, Te = (e, t) => Rr(e, Zr(t));
|
|
15
|
-
|
|
15
|
+
class xt extends dt {
|
|
16
16
|
constructor(t, r) {
|
|
17
17
|
var a;
|
|
18
18
|
super((a = t.jaql.title) !== null && a !== void 0 ? a : "", r), 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 = Xt(t.jaql.sort) : delete this.sortType, this.skipValidation = !0;
|
|
@@ -23,15 +23,15 @@ let mt = class extends ot {
|
|
|
23
23
|
jaql(t) {
|
|
24
24
|
return t === !0 ? this.metadataItem.jaql : this.metadataItem;
|
|
25
25
|
}
|
|
26
|
-
}
|
|
26
|
+
}
|
|
27
27
|
const Gr = {
|
|
28
28
|
text: Le.TextAttribute,
|
|
29
29
|
numeric: Le.NumericAttribute,
|
|
30
30
|
datetime: Le.DateLevel
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function kt(e) {
|
|
33
33
|
var t;
|
|
34
|
-
return new
|
|
34
|
+
return new xt(e, (t = Gr[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
|
|
35
35
|
}
|
|
36
36
|
const Hr = (e) => "dashboardOid" in e && "widgetOid" in e;
|
|
37
37
|
function Yr(e) {
|
|
@@ -40,27 +40,27 @@ function Yr(e) {
|
|
|
40
40
|
function Pr(e) {
|
|
41
41
|
return !e || !e.jaql.datasource.title || !e.jaql.metadata.length;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function wt(e) {
|
|
44
44
|
if (![...Ft, "pivot", "pivot2"].includes(e))
|
|
45
45
|
throw new $("errors.chartTypeNotSupported", {
|
|
46
46
|
chartType: e
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Qr(e) {
|
|
50
50
|
return "widgetType" in e && e.widgetType === "pivot";
|
|
51
51
|
}
|
|
52
52
|
function K(e) {
|
|
53
53
|
var t;
|
|
54
54
|
return "column" in e && ((t = e.column) == null ? void 0 : t.expression) && /\(.*\)/.test(e.column.expression);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function yt(e) {
|
|
57
57
|
const t = "measures" in e && z(e.measures) || "values" in e && z(e.values);
|
|
58
|
-
return
|
|
58
|
+
return Qr(e) ? "values" in e.dataOptions && z(e.dataOptions.values) : "chartType" in e ? e.chartType === "indicator" ? "value" in e.dataOptions && z(e.dataOptions.value) || "secondary" in e.dataOptions && z(e.dataOptions.secondary) : e.chartType === "table" ? !("columns" in e.dataOptions) || !z(e.dataOptions.columns) ? !1 : e.dataOptions.columns.some((r) => K(r)) : e.chartType === "boxplot" ? !1 : e.chartType === "scatter" ? "x" in e.dataOptions && e.dataOptions.x !== void 0 && K(e.dataOptions.x) || "y" in e.dataOptions && e.dataOptions.y !== void 0 && K(e.dataOptions.y) || "size" in e.dataOptions && e.dataOptions.size !== void 0 : e.chartType === "scattermap" ? "colorBy" in e.dataOptions && e.dataOptions.colorBy !== void 0 && K(e.dataOptions.colorBy) || "details" in e.dataOptions && e.dataOptions.details !== void 0 && K(e.dataOptions.details) || "size" in e.dataOptions && e.dataOptions.size !== void 0 && K(e.dataOptions.size) : e.chartType === "areamap" ? "geo" in e.dataOptions && z(e.dataOptions.geo) && "color" in e.dataOptions && z(e.dataOptions.color) : "value" in e.dataOptions && z(e.dataOptions.value) : t;
|
|
59
59
|
}
|
|
60
60
|
function z(e) {
|
|
61
61
|
return Array.isArray(e) && e.length > 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Br(e) {
|
|
64
64
|
const t = e.split(`
|
|
65
65
|
`);
|
|
66
66
|
for (let r = 0; r < t.length - 1; r++)
|
|
@@ -409,9 +409,9 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
|
|
|
409
409
|
executePivotQueryTmpl: "Not implemented yet",
|
|
410
410
|
pivotTableWidgetTmpl: "Not implemented yet"
|
|
411
411
|
}
|
|
412
|
-
},
|
|
413
|
-
const a =
|
|
414
|
-
return
|
|
412
|
+
}, _t = (e, t) => Ur[t][e].replace(/{{(.*?)Tmpl}}/g, (r, a) => _t(`${a}Tmpl`, t)), Fr = (e, t) => e.replace(/{{(.*?)}}/g, (r, a) => a in t ? t[a] : (console.warn(`Placeholder ${a} not found in data`), r)), qe = (e, t, r = "react") => {
|
|
413
|
+
const a = _t(e, r);
|
|
414
|
+
return Br(Fr(a, t));
|
|
415
415
|
}, me = `
|
|
416
416
|
`, ze = "UNKNOWN", Vr = (e, t) => {
|
|
417
417
|
let r = "";
|
|
@@ -420,7 +420,7 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
|
|
|
420
420
|
`, r += " ".repeat(t), r += ` '${e.formula}',
|
|
421
421
|
`, r += " ".repeat(t), r += ` {
|
|
422
422
|
`, Object.entries(e.context).forEach(([a, o]) => {
|
|
423
|
-
const n =
|
|
423
|
+
const n = ct(o.table || ze, o.column || ze, void 0, "DM");
|
|
424
424
|
r += " ".repeat(t), r += ` '${a.slice(1, -1)}': ${n},
|
|
425
425
|
`;
|
|
426
426
|
}), r += " ".repeat(t), r += ` }
|
|
@@ -434,7 +434,7 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
|
|
|
434
434
|
title: n
|
|
435
435
|
} = e;
|
|
436
436
|
let l;
|
|
437
|
-
return r && a && (l =
|
|
437
|
+
return r && a && (l = ct(r, a, t, "DM")), o && r && a && n && (l = `measureFactory.${Kt.aggregationFromJAQL(o)}(${l}, '${de(n)}')`), l || ze;
|
|
438
438
|
}, Jr = (e, t) => {
|
|
439
439
|
const r = e.jaql(!1).jaql;
|
|
440
440
|
return "formula" in r ? Vr(r, t) : $r(r);
|
|
@@ -443,9 +443,9 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
|
|
|
443
443
|
return "";
|
|
444
444
|
if (typeof e == "string")
|
|
445
445
|
return `'${de(e)}'`;
|
|
446
|
-
if (e instanceof
|
|
446
|
+
if (e instanceof xt)
|
|
447
447
|
return Jr(e, t);
|
|
448
|
-
if (e instanceof
|
|
448
|
+
if (e instanceof dt)
|
|
449
449
|
return e.composeCode || "";
|
|
450
450
|
let a = "";
|
|
451
451
|
return Array.isArray(e) ? a += `[${e.map((o) => q(o, t + 2))}${e.length ? me + " ".repeat(t + 2) : ""}]` : (a += `{${me}`, Object.entries(e).forEach(([o, n]) => {
|
|
@@ -455,55 +455,55 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
|
|
|
455
455
|
function Xr(e) {
|
|
456
456
|
return q(e, we);
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ct(e) {
|
|
459
459
|
if (!e)
|
|
460
460
|
throw new $("errors.undefinedDataSource");
|
|
461
461
|
let t;
|
|
462
462
|
return typeof e == "object" && "title" in e ? t = e.title : t = e, Yr(t);
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function vt(e, t = !0) {
|
|
465
465
|
const r = [];
|
|
466
466
|
return t && r.push("measureFactory"), z(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
|
|
467
467
|
}
|
|
468
|
-
const
|
|
468
|
+
const tt = `
|
|
469
469
|
`, Kr = (e, t) => {
|
|
470
470
|
if (e.composeCode)
|
|
471
|
-
return `${
|
|
471
|
+
return `${tt}${" ".repeat(t)}${e.composeCode}`;
|
|
472
472
|
const r = e.jaql().jaql;
|
|
473
|
-
return `${
|
|
473
|
+
return `${tt}${" ".repeat(t)}filterFactory.customFilter(${q(r, t, !0)})`;
|
|
474
474
|
}, ea = (e, t = 0) => {
|
|
475
475
|
if (!e)
|
|
476
476
|
return "";
|
|
477
477
|
let r = "";
|
|
478
478
|
return r += `[${e.map((a) => Kr(a, t + 2))}${e.length ? `
|
|
479
479
|
` + " ".repeat(t + 2) : ""}]`, r;
|
|
480
|
-
},
|
|
480
|
+
}, Mt = (e) => {
|
|
481
481
|
if (!e)
|
|
482
482
|
return "";
|
|
483
483
|
if (Array.isArray(e))
|
|
484
484
|
return ea(e, 6);
|
|
485
485
|
throw new $("errors.filterRelationsNotSupported");
|
|
486
486
|
}, ta = ["executeQueryByWidgetIdTmpl", "widgetByIdTmpl"], ra = "chartWidgetTmpl", aa = "pivotTableWidgetTmpl", ia = (e) => e, oa = (e, t, r) => {
|
|
487
|
-
const a =
|
|
487
|
+
const a = yt(e), o = {
|
|
488
488
|
titleString: e.title,
|
|
489
|
-
dataSourceString:
|
|
489
|
+
dataSourceString: Ct(e.dataSource),
|
|
490
490
|
chartTypeString: ia(e.chartType),
|
|
491
491
|
dataOptionsString: Xr(e.dataOptions),
|
|
492
|
-
filtersString:
|
|
492
|
+
filtersString: Mt(e.filters),
|
|
493
493
|
componentString: "ChartWidget",
|
|
494
|
-
extraImportsString:
|
|
494
|
+
extraImportsString: vt(e.filters || [], a),
|
|
495
495
|
styleOptionsString: q(e.styleOptions || {}, we),
|
|
496
496
|
drilldownOptionsString: q(e.drilldownOptions || {}, we)
|
|
497
497
|
};
|
|
498
498
|
return qe(r, o, t);
|
|
499
499
|
}, na = (e, t, r) => {
|
|
500
|
-
const a =
|
|
500
|
+
const a = yt(e), o = {
|
|
501
501
|
titleString: e.title,
|
|
502
|
-
dataSourceString:
|
|
502
|
+
dataSourceString: Ct(e.dataSource),
|
|
503
503
|
dataOptionsString: q(e.dataOptions),
|
|
504
|
-
filtersString:
|
|
504
|
+
filtersString: Mt(e.filters),
|
|
505
505
|
componentString: "PivotTableWidget",
|
|
506
|
-
extraImportsString:
|
|
506
|
+
extraImportsString: vt(e.filters || [], a),
|
|
507
507
|
styleOptionsString: q(e.styleOptions || {}, we)
|
|
508
508
|
};
|
|
509
509
|
return qe(r, o, t);
|
|
@@ -514,7 +514,7 @@ const Xe = `
|
|
|
514
514
|
chartType: a = "table",
|
|
515
515
|
includeChart: o = !0
|
|
516
516
|
}) => {
|
|
517
|
-
|
|
517
|
+
wt(a);
|
|
518
518
|
const n = {
|
|
519
519
|
dashboardOid: e,
|
|
520
520
|
widgetOid: t
|
|
@@ -525,13 +525,13 @@ const Xe = `
|
|
|
525
525
|
uiFramework: t = "react"
|
|
526
526
|
}) => {
|
|
527
527
|
if (xe(e))
|
|
528
|
-
return
|
|
528
|
+
return wt(e.chartType), oa(e, t, ra);
|
|
529
529
|
if (Ut(e))
|
|
530
530
|
return na(e, t, aa);
|
|
531
531
|
throw new $("errors.otherWidgetTypesNotSupported");
|
|
532
532
|
}, ca = (e) => ({
|
|
533
533
|
dataOptions: {
|
|
534
|
-
columns: e.map(
|
|
534
|
+
columns: e.map(kt)
|
|
535
535
|
}
|
|
536
536
|
}), sa = Object.freeze({
|
|
537
537
|
convolution: {
|
|
@@ -554,7 +554,7 @@ const Xe = `
|
|
|
554
554
|
xAxis: {
|
|
555
555
|
gridLines: !1
|
|
556
556
|
}
|
|
557
|
-
}),
|
|
557
|
+
}), rt = Object.freeze({
|
|
558
558
|
line: "line/spline",
|
|
559
559
|
pie: "pie/donut",
|
|
560
560
|
bar: "bar/stacked",
|
|
@@ -574,7 +574,7 @@ const Xe = `
|
|
|
574
574
|
name: m.column.name
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
|
-
const w =
|
|
577
|
+
const w = kt(f);
|
|
578
578
|
if (f.panel === "measures")
|
|
579
579
|
return Te(F({}, m), {
|
|
580
580
|
column: w
|
|
@@ -620,7 +620,7 @@ const Xe = `
|
|
|
620
620
|
default:
|
|
621
621
|
return o;
|
|
622
622
|
}
|
|
623
|
-
},
|
|
623
|
+
}, at = (e, t) => {
|
|
624
624
|
var r, a, o, n;
|
|
625
625
|
return t === "x" ? (a = (r = e.axesMapping.category) != null ? r : e.axesMapping.x) == null ? void 0 : a.map((l) => Ee(l).column.name).join(", ") : (n = (o = e.axesMapping.value) != null ? o : e.axesMapping.y) == null ? void 0 : n.map((l) => Ee(l).column.name).join(", ");
|
|
626
626
|
}, ga = (e, t, r = !0) => {
|
|
@@ -630,8 +630,8 @@ const Xe = `
|
|
|
630
630
|
styleOptions: n = {}
|
|
631
631
|
} = t, l = pa(e, a, o);
|
|
632
632
|
let c;
|
|
633
|
-
return r && t.chartType in
|
|
634
|
-
subtype:
|
|
633
|
+
return r && t.chartType in rt ? c = fe(fe(sa, {
|
|
634
|
+
subtype: rt[t.chartType]
|
|
635
635
|
}), {
|
|
636
636
|
legend: {
|
|
637
637
|
enabled: !0,
|
|
@@ -640,13 +640,13 @@ const Xe = `
|
|
|
640
640
|
yAxis: {
|
|
641
641
|
title: {
|
|
642
642
|
enabled: !0,
|
|
643
|
-
text:
|
|
643
|
+
text: at(t, "y")
|
|
644
644
|
}
|
|
645
645
|
},
|
|
646
646
|
xAxis: {
|
|
647
647
|
title: {
|
|
648
648
|
enabled: !0,
|
|
649
|
-
text:
|
|
649
|
+
text: at(t, "x")
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
}, n) : c = fe(Vt(), n), {
|
|
@@ -658,8 +658,8 @@ const Xe = `
|
|
|
658
658
|
chartFamily: "table",
|
|
659
659
|
axesMapping: {}
|
|
660
660
|
}, ha = (e) => e.map((t) => $t(t.jaql)), ma = (e) => e.reduce((t, r) => {
|
|
661
|
-
if ((r.panel === "scope" || r.jaql.filter) && t.metadataFilters.push(
|
|
662
|
-
const a =
|
|
661
|
+
if ((r.panel === "scope" || r.jaql.filter) && t.metadataFilters.push(Xe(r)), r.panel !== "scope") {
|
|
662
|
+
const a = Xe(r);
|
|
663
663
|
delete a.jaql.filter, t.metadataColumns.push(a);
|
|
664
664
|
}
|
|
665
665
|
return t;
|
|
@@ -713,32 +713,32 @@ const Xe = `
|
|
|
713
713
|
console.error(r);
|
|
714
714
|
return;
|
|
715
715
|
}
|
|
716
|
-
}, se = (e, t) => ba(e, t), fa = (e) => Hr(e) ? la(e) : da(e),
|
|
716
|
+
}, se = (e, t) => ba(e, t), fa = (e) => Hr(e) ? la(e) : da(e), Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
717
717
|
__proto__: null,
|
|
718
718
|
toWidgetCode: fa,
|
|
719
719
|
toWidgetProps: se
|
|
720
720
|
}, Symbol.toStringTag, {
|
|
721
721
|
value: "Module"
|
|
722
722
|
}));
|
|
723
|
-
var xa = Object.defineProperty, ka = Object.defineProperties, wa = Object.getOwnPropertyDescriptors, ye = Object.getOwnPropertySymbols,
|
|
723
|
+
var xa = Object.defineProperty, ka = Object.defineProperties, wa = Object.getOwnPropertyDescriptors, ye = Object.getOwnPropertySymbols, Dt = Object.prototype.hasOwnProperty, St = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? xa(e, t, {
|
|
724
724
|
enumerable: !0,
|
|
725
725
|
configurable: !0,
|
|
726
726
|
writable: !0,
|
|
727
727
|
value: r
|
|
728
728
|
}) : e[t] = r, C = (e, t) => {
|
|
729
729
|
for (var r in t || (t = {}))
|
|
730
|
-
|
|
730
|
+
Dt.call(t, r) && it(e, r, t[r]);
|
|
731
731
|
if (ye)
|
|
732
732
|
for (var r of ye(t))
|
|
733
|
-
|
|
733
|
+
St.call(t, r) && it(e, r, t[r]);
|
|
734
734
|
return e;
|
|
735
735
|
}, M = (e, t) => ka(e, wa(t)), ya = (e, t) => {
|
|
736
736
|
var r = {};
|
|
737
737
|
for (var a in e)
|
|
738
|
-
|
|
738
|
+
Dt.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
739
739
|
if (e != null && ye)
|
|
740
740
|
for (var a of ye(e))
|
|
741
|
-
t.indexOf(a) < 0 &&
|
|
741
|
+
t.indexOf(a) < 0 && St.call(e, a) && (r[a] = e[a]);
|
|
742
742
|
return r;
|
|
743
743
|
}, J = (e, t, r) => new Promise((a, o) => {
|
|
744
744
|
var n = (d) => {
|
|
@@ -810,7 +810,7 @@ class _a extends _r {
|
|
|
810
810
|
this.currentResult = r;
|
|
811
811
|
}
|
|
812
812
|
notify(t) {
|
|
813
|
-
|
|
813
|
+
ht.batch(() => {
|
|
814
814
|
if (this.mutateOptions && this.hasListeners()) {
|
|
815
815
|
if (t.onSuccess) {
|
|
816
816
|
var r, a, o, n;
|
|
@@ -835,7 +835,7 @@ function Ge(e, t, r) {
|
|
|
835
835
|
re(() => {
|
|
836
836
|
n.setOptions(a);
|
|
837
837
|
}, [n, a]);
|
|
838
|
-
const l = fr(y((d) => n.subscribe(
|
|
838
|
+
const l = fr(y((d) => n.subscribe(ht.batchCalls(d)), [n]), () => n.getCurrentResult(), () => n.getCurrentResult()), c = y((d, s) => {
|
|
839
839
|
n.mutate(d, s).catch(Ca);
|
|
840
840
|
}, [n]);
|
|
841
841
|
if (l.error && xr(n.options.useErrorBoundary, [l.error]))
|
|
@@ -875,7 +875,7 @@ class va {
|
|
|
875
875
|
}, this.httpClient = t;
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
const Ma = new
|
|
878
|
+
const Ma = new st({
|
|
879
879
|
defaultOptions: {
|
|
880
880
|
queries: {
|
|
881
881
|
refetchOnWindowFocus: !1,
|
|
@@ -888,15 +888,15 @@ const Ma = new lt({
|
|
|
888
888
|
}) => {
|
|
889
889
|
const {
|
|
890
890
|
app: r
|
|
891
|
-
} = ur(), a =
|
|
891
|
+
} = ur(), a = N(() => r ? new va(r.httpClient, t) : void 0, [r, t]);
|
|
892
892
|
return /* @__PURE__ */ i(He.Provider, {
|
|
893
893
|
value: a,
|
|
894
|
-
children: /* @__PURE__ */ i(
|
|
894
|
+
children: /* @__PURE__ */ i(ut, {
|
|
895
895
|
client: Ma,
|
|
896
896
|
children: e
|
|
897
897
|
})
|
|
898
898
|
});
|
|
899
|
-
},
|
|
899
|
+
}, It = /* @__PURE__ */ Ce({}), Sa = () => We(It), At = ({
|
|
900
900
|
children: e
|
|
901
901
|
}) => {
|
|
902
902
|
const [t, r] = D({}), a = y((l, c) => {
|
|
@@ -907,7 +907,7 @@ const Ma = new lt({
|
|
|
907
907
|
[a(c, d)]: l
|
|
908
908
|
}));
|
|
909
909
|
}, [a]), n = y((l, c) => t[a(l, c)], [t, a]);
|
|
910
|
-
return /* @__PURE__ */ i(
|
|
910
|
+
return /* @__PURE__ */ i(It.Provider, {
|
|
911
911
|
value: {
|
|
912
912
|
saveChatId: o,
|
|
913
913
|
getChatId: n
|
|
@@ -915,11 +915,11 @@ const Ma = new lt({
|
|
|
915
915
|
children: e
|
|
916
916
|
});
|
|
917
917
|
};
|
|
918
|
-
function
|
|
918
|
+
function Uo({
|
|
919
919
|
children: e,
|
|
920
920
|
volatile: t
|
|
921
921
|
}) {
|
|
922
|
-
return /* @__PURE__ */ i(
|
|
922
|
+
return /* @__PURE__ */ i(At, {
|
|
923
923
|
children: /* @__PURE__ */ i(Da, {
|
|
924
924
|
volatile: t,
|
|
925
925
|
children: e
|
|
@@ -955,7 +955,7 @@ function Ia(e) {
|
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
const pe = (e, t = !0) => {
|
|
958
|
-
const r =
|
|
958
|
+
const r = N(() => Ia(e), [e]), a = O(), {
|
|
959
959
|
data: o,
|
|
960
960
|
error: n,
|
|
961
961
|
isError: l,
|
|
@@ -981,12 +981,12 @@ const pe = (e, t = !0) => {
|
|
|
981
981
|
s();
|
|
982
982
|
}, [s])
|
|
983
983
|
};
|
|
984
|
-
},
|
|
984
|
+
}, Lt = (e) => {
|
|
985
985
|
const t = e, {
|
|
986
986
|
enabled: r
|
|
987
987
|
} = t, a = ya(t, ["enabled"]);
|
|
988
988
|
return pe(a, r);
|
|
989
|
-
},
|
|
989
|
+
}, Fo = Me("useGetNlgInsights")(Lt), Vo = Me("useGetNlgQueryResult")(Lt), Aa = ["indicator", "column", "line", "table", "pie", "bar"];
|
|
990
990
|
function La(e) {
|
|
991
991
|
const {
|
|
992
992
|
dataSource: t,
|
|
@@ -1031,7 +1031,7 @@ const Na = (e) => {
|
|
|
1031
1031
|
s();
|
|
1032
1032
|
}, [s])
|
|
1033
1033
|
};
|
|
1034
|
-
},
|
|
1034
|
+
}, $o = Me("useGetNlqResult")(Na), Ta = 4, Nt = (e) => {
|
|
1035
1035
|
const {
|
|
1036
1036
|
contextTitle: t,
|
|
1037
1037
|
count: r,
|
|
@@ -1050,7 +1050,7 @@ const Na = (e) => {
|
|
|
1050
1050
|
numOfRecommendations: l
|
|
1051
1051
|
}),
|
|
1052
1052
|
enabled: !!n && c
|
|
1053
|
-
}), w =
|
|
1053
|
+
}), w = N(() => p == null ? void 0 : p.map((x) => M(C({}, x), {
|
|
1054
1054
|
widgetProps: x.jaql ? se(x, {
|
|
1055
1055
|
useCustomizedStyleOptions: a
|
|
1056
1056
|
}) : void 0
|
|
@@ -1065,24 +1065,24 @@ const Na = (e) => {
|
|
|
1065
1065
|
f();
|
|
1066
1066
|
}, [f])
|
|
1067
1067
|
};
|
|
1068
|
-
},
|
|
1068
|
+
}, Jo = Me("useGetQueryRecommendations")(Nt), Tt = Object.freeze({
|
|
1069
1069
|
enableFollowupQuestions: !1,
|
|
1070
1070
|
enableHeader: !0,
|
|
1071
1071
|
enableInsights: !0,
|
|
1072
1072
|
numOfRecommendations: 4,
|
|
1073
1073
|
numOfRecentPrompts: 5
|
|
1074
|
-
}),
|
|
1074
|
+
}), jt = /* @__PURE__ */ Ce(C({}, Tt)), G = () => We(jt), ja = ({
|
|
1075
1075
|
children: e,
|
|
1076
1076
|
value: t
|
|
1077
1077
|
}) => {
|
|
1078
1078
|
const {
|
|
1079
1079
|
t: r
|
|
1080
|
-
} = _(), a = Object.entries(t).reduce((o, [n, l]) => (l !== void 0 && (o[n] = l), o), M(C({},
|
|
1080
|
+
} = _(), a = Object.entries(t).reduce((o, [n, l]) => (l !== void 0 && (o[n] = l), o), M(C({}, Tt), {
|
|
1081
1081
|
inputPromptText: r("ai.config.inputPromptText"),
|
|
1082
1082
|
welcomeText: r("ai.config.welcomeText"),
|
|
1083
1083
|
suggestionsWelcomeText: r("ai.config.suggestionsWelcomeText")
|
|
1084
1084
|
}));
|
|
1085
|
-
return /* @__PURE__ */ i(
|
|
1085
|
+
return /* @__PURE__ */ i(jt.Provider, {
|
|
1086
1086
|
value: a,
|
|
1087
1087
|
children: e
|
|
1088
1088
|
});
|
|
@@ -1102,7 +1102,7 @@ const Na = (e) => {
|
|
|
1102
1102
|
}),
|
|
1103
1103
|
enabled: !!t && !!e
|
|
1104
1104
|
});
|
|
1105
|
-
},
|
|
1105
|
+
}, Et = (e) => {
|
|
1106
1106
|
const t = O(), r = ce();
|
|
1107
1107
|
return Ge({
|
|
1108
1108
|
mutationFn: () => J(void 0, null, function* () {
|
|
@@ -1116,14 +1116,14 @@ const Na = (e) => {
|
|
|
1116
1116
|
e && r.setQueriesData([Ye, e], []);
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
|
-
},
|
|
1119
|
+
}, Pe = (e) => {
|
|
1120
1120
|
const {
|
|
1121
1121
|
data: t,
|
|
1122
1122
|
isLoading: r,
|
|
1123
1123
|
isError: a
|
|
1124
1124
|
} = Ea(e), {
|
|
1125
1125
|
mutate: o
|
|
1126
|
-
} =
|
|
1126
|
+
} = Et(e);
|
|
1127
1127
|
return re(() => {
|
|
1128
1128
|
a && o();
|
|
1129
1129
|
}, [a, o]), {
|
|
@@ -1233,7 +1233,7 @@ const Na = (e) => {
|
|
|
1233
1233
|
mutate: l,
|
|
1234
1234
|
isLoading: c
|
|
1235
1235
|
};
|
|
1236
|
-
},
|
|
1236
|
+
}, Qe = (e, t, r = !1) => {
|
|
1237
1237
|
var a;
|
|
1238
1238
|
const {
|
|
1239
1239
|
data: o,
|
|
@@ -1253,14 +1253,14 @@ const Na = (e) => {
|
|
|
1253
1253
|
isLoading: n,
|
|
1254
1254
|
isError: d
|
|
1255
1255
|
};
|
|
1256
|
-
},
|
|
1256
|
+
}, zt = (e) => N(() => {
|
|
1257
1257
|
if (e != null && e.length) {
|
|
1258
1258
|
const t = e[e.length - 1];
|
|
1259
|
-
if (
|
|
1259
|
+
if (Be(t))
|
|
1260
1260
|
return JSON.parse(t.content);
|
|
1261
1261
|
}
|
|
1262
1262
|
return null;
|
|
1263
|
-
}, [e]),
|
|
1263
|
+
}, [e]), Be = (e) => !!e && "type" in e && e.type === "nlq", qa = (e) => !!e && "type" in e && e.type === "text", Ga = (e, t) => {
|
|
1264
1264
|
const {
|
|
1265
1265
|
t: r
|
|
1266
1266
|
} = _(), {
|
|
@@ -1268,18 +1268,18 @@ const Na = (e) => {
|
|
|
1268
1268
|
} = G(), {
|
|
1269
1269
|
chatId: o,
|
|
1270
1270
|
isError: n
|
|
1271
|
-
} =
|
|
1271
|
+
} = Qe(e, t, !0), [l, c] = D(null), {
|
|
1272
1272
|
history: d,
|
|
1273
1273
|
isLoading: s,
|
|
1274
1274
|
isError: u
|
|
1275
|
-
} =
|
|
1275
|
+
} = Pe(o);
|
|
1276
1276
|
re(() => {
|
|
1277
1277
|
n ? c(new $("ai.errors.chatUnavailable")) : u && c(new $("ai.errors.fetchHistory"));
|
|
1278
1278
|
}, [n, u, r]);
|
|
1279
1279
|
const {
|
|
1280
1280
|
mutate: p,
|
|
1281
1281
|
isLoading: m
|
|
1282
|
-
} = Wa(o, a), f =
|
|
1282
|
+
} = Wa(o, a), f = zt(d);
|
|
1283
1283
|
return {
|
|
1284
1284
|
chatId: o,
|
|
1285
1285
|
history: d ?? [],
|
|
@@ -1289,17 +1289,34 @@ const Na = (e) => {
|
|
|
1289
1289
|
isLoading: s,
|
|
1290
1290
|
lastError: l
|
|
1291
1291
|
};
|
|
1292
|
+
}, Xo = ({
|
|
1293
|
+
contextTitle: e,
|
|
1294
|
+
contextDetails: t
|
|
1295
|
+
}) => {
|
|
1296
|
+
const {
|
|
1297
|
+
chatId: r
|
|
1298
|
+
} = Qe(e, t), {
|
|
1299
|
+
history: a
|
|
1300
|
+
} = Pe(r);
|
|
1301
|
+
return zt(a);
|
|
1292
1302
|
}, Ko = ({
|
|
1293
1303
|
contextTitle: e,
|
|
1294
1304
|
contextDetails: t
|
|
1295
1305
|
}) => {
|
|
1296
1306
|
const {
|
|
1297
1307
|
chatId: r
|
|
1298
|
-
} =
|
|
1308
|
+
} = Qe(e, t), {
|
|
1299
1309
|
history: a
|
|
1300
|
-
} =
|
|
1301
|
-
return
|
|
1302
|
-
|
|
1310
|
+
} = Pe(r);
|
|
1311
|
+
return N(() => {
|
|
1312
|
+
if (a != null && a.length) {
|
|
1313
|
+
const o = a.slice().reverse().find(Be);
|
|
1314
|
+
if (o)
|
|
1315
|
+
return JSON.parse(o.content);
|
|
1316
|
+
}
|
|
1317
|
+
return null;
|
|
1318
|
+
}, [a]);
|
|
1319
|
+
}, Ha = 500, Ya = 500, Pa = 500, Qa = 900, Ba = /* @__PURE__ */ g("div", {
|
|
1303
1320
|
target: "e1ldv6710",
|
|
1304
1321
|
label: "ChatFrame"
|
|
1305
1322
|
})("box-sizing:border-box;position:relative;display:flex;flex-direction:column;border:1px solid #c6c9ce;border-radius:", ({
|
|
@@ -1308,9 +1325,9 @@ const Na = (e) => {
|
|
|
1308
1325
|
theme: e
|
|
1309
1326
|
}) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:", Ha, "px;min-height:", Ya, "px;width:", ({
|
|
1310
1327
|
width: e
|
|
1311
|
-
}) => e ?
|
|
1328
|
+
}) => e ? ot(e) : `${Pa}px`, ";height:", ({
|
|
1312
1329
|
height: e
|
|
1313
|
-
}) => e ?
|
|
1330
|
+
}) => e ? ot(e) : `${Qa}px`, ";", ({
|
|
1314
1331
|
theme: e
|
|
1315
1332
|
}) => L`
|
|
1316
1333
|
font-size: ${e.aiChat.primaryFontSize[0]};
|
|
@@ -1318,7 +1335,7 @@ const Na = (e) => {
|
|
|
1318
1335
|
`, " border:", ({
|
|
1319
1336
|
theme: e
|
|
1320
1337
|
}) => e.aiChat.border === !1 ? "none" : e.aiChat.border, ";");
|
|
1321
|
-
function
|
|
1338
|
+
function ot(e) {
|
|
1322
1339
|
return typeof e == "number" ? `${e}px` : e;
|
|
1323
1340
|
}
|
|
1324
1341
|
function Ua({
|
|
@@ -1481,7 +1498,7 @@ function ri({
|
|
|
1481
1498
|
} = k(), {
|
|
1482
1499
|
t: s
|
|
1483
1500
|
} = _(), u = c.length === 1;
|
|
1484
|
-
return /* @__PURE__ */ i(
|
|
1501
|
+
return /* @__PURE__ */ i(mt, {
|
|
1485
1502
|
open: Oe(n) && c.length > 0,
|
|
1486
1503
|
anchorEl: o,
|
|
1487
1504
|
placement: "top-start",
|
|
@@ -1618,8 +1635,8 @@ function ci({
|
|
|
1618
1635
|
var R;
|
|
1619
1636
|
if ((R = document.getElementById("csdk-chatbot-frame")) != null && R.contains(v.relatedTarget)) {
|
|
1620
1637
|
const H = (Z) => {
|
|
1621
|
-
var
|
|
1622
|
-
document.removeEventListener("mouseup", H), document.removeEventListener("keyup", H), Z.type === "mouseup" && ((
|
|
1638
|
+
var Q;
|
|
1639
|
+
document.removeEventListener("mouseup", H), document.removeEventListener("keyup", H), Z.type === "mouseup" && ((Q = document.getSelection()) == null ? void 0 : Q.type) !== "Range" && v.target.focus({
|
|
1623
1640
|
preventScroll: !0
|
|
1624
1641
|
});
|
|
1625
1642
|
};
|
|
@@ -1760,7 +1777,7 @@ const be = /* @__PURE__ */ g("div", {
|
|
|
1760
1777
|
target: "e3ryei50",
|
|
1761
1778
|
label: "Dot"
|
|
1762
1779
|
})("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%);}}");
|
|
1763
|
-
function
|
|
1780
|
+
function Ue() {
|
|
1764
1781
|
const {
|
|
1765
1782
|
themeSettings: e
|
|
1766
1783
|
} = k(), t = e.aiChat.icons.color;
|
|
@@ -1872,7 +1889,7 @@ function fi({
|
|
|
1872
1889
|
const {
|
|
1873
1890
|
t: r
|
|
1874
1891
|
} = _();
|
|
1875
|
-
return /* @__PURE__ */ h(
|
|
1892
|
+
return /* @__PURE__ */ h(T, {
|
|
1876
1893
|
children: [/* @__PURE__ */ i(P, {
|
|
1877
1894
|
align: "left",
|
|
1878
1895
|
children: r("ai.clearHistoryPrompt")
|
|
@@ -1965,7 +1982,7 @@ const ki = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
1965
1982
|
height: "100%",
|
|
1966
1983
|
width: "0"
|
|
1967
1984
|
}
|
|
1968
|
-
})), vi = ve(
|
|
1985
|
+
})), vi = ve(pt, {
|
|
1969
1986
|
name: "MuiDialog",
|
|
1970
1987
|
slot: "Paper",
|
|
1971
1988
|
overridesResolver: (e, t) => {
|
|
@@ -2024,7 +2041,7 @@ const ki = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
2024
2041
|
margin: 0,
|
|
2025
2042
|
maxWidth: "100%"
|
|
2026
2043
|
}
|
|
2027
|
-
})), Wt = /* @__PURE__ */
|
|
2044
|
+
})), Wt = /* @__PURE__ */ gt(function(e, t) {
|
|
2028
2045
|
const r = nr({
|
|
2029
2046
|
props: e,
|
|
2030
2047
|
name: "MuiDialog"
|
|
@@ -2046,23 +2063,23 @@ const ki = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
2046
2063
|
onClick: S,
|
|
2047
2064
|
onClose: I,
|
|
2048
2065
|
open: E,
|
|
2049
|
-
PaperComponent: v =
|
|
2066
|
+
PaperComponent: v = pt,
|
|
2050
2067
|
PaperProps: R = {},
|
|
2051
2068
|
scroll: H = "paper",
|
|
2052
2069
|
TransitionComponent: Z = mr,
|
|
2053
|
-
transitionDuration:
|
|
2070
|
+
transitionDuration: Q = o,
|
|
2054
2071
|
TransitionProps: Ie
|
|
2055
|
-
} = r, he = dr(r, ki),
|
|
2072
|
+
} = r, he = dr(r, ki), B = U({}, r, {
|
|
2056
2073
|
disableEscapeKeyDown: p,
|
|
2057
2074
|
fullScreen: m,
|
|
2058
2075
|
fullWidth: f,
|
|
2059
2076
|
maxWidth: w,
|
|
2060
2077
|
scroll: H
|
|
2061
|
-
}), X = yi(
|
|
2078
|
+
}), X = yi(B), ae = V(), Ae = (W) => {
|
|
2062
2079
|
ae.current = W.target === W.currentTarget;
|
|
2063
2080
|
}, ie = (W) => {
|
|
2064
2081
|
S && S(W), ae.current && (ae.current = null, x && x(W), I && I(W, "backdropClick"));
|
|
2065
|
-
}, oe = cr(l), j =
|
|
2082
|
+
}, oe = cr(l), j = N(() => ({
|
|
2066
2083
|
titleId: oe
|
|
2067
2084
|
}), [oe]);
|
|
2068
2085
|
return /* @__PURE__ */ ne(_i, U({
|
|
@@ -2073,7 +2090,7 @@ const ki = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
2073
2090
|
},
|
|
2074
2091
|
componentsProps: {
|
|
2075
2092
|
backdrop: U({
|
|
2076
|
-
transitionDuration:
|
|
2093
|
+
transitionDuration: Q,
|
|
2077
2094
|
as: c
|
|
2078
2095
|
}, d)
|
|
2079
2096
|
},
|
|
@@ -2082,18 +2099,18 @@ const ki = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
2082
2099
|
open: E,
|
|
2083
2100
|
ref: t,
|
|
2084
2101
|
onClick: ie,
|
|
2085
|
-
ownerState:
|
|
2102
|
+
ownerState: B
|
|
2086
2103
|
}, he, {
|
|
2087
2104
|
children: /* @__PURE__ */ ne(Z, U({
|
|
2088
2105
|
appear: !0,
|
|
2089
2106
|
in: E,
|
|
2090
|
-
timeout:
|
|
2107
|
+
timeout: Q,
|
|
2091
2108
|
role: "presentation"
|
|
2092
2109
|
}, Ie, {
|
|
2093
2110
|
children: /* @__PURE__ */ ne(Ci, {
|
|
2094
2111
|
className: Ne(X.container),
|
|
2095
2112
|
onMouseDown: Ae,
|
|
2096
|
-
ownerState:
|
|
2113
|
+
ownerState: B,
|
|
2097
2114
|
children: /* @__PURE__ */ ne(vi, U({
|
|
2098
2115
|
as: v,
|
|
2099
2116
|
elevation: 24,
|
|
@@ -2102,7 +2119,7 @@ const ki = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
2102
2119
|
"aria-labelledby": oe
|
|
2103
2120
|
}, R, {
|
|
2104
2121
|
className: Ne(X.paper, R.className),
|
|
2105
|
-
ownerState:
|
|
2122
|
+
ownerState: B,
|
|
2106
2123
|
children: /* @__PURE__ */ ne(Zt.Provider, {
|
|
2107
2124
|
value: j,
|
|
2108
2125
|
children: s
|
|
@@ -2355,7 +2372,7 @@ const qt = {
|
|
|
2355
2372
|
}
|
|
2356
2373
|
}, Di = {
|
|
2357
2374
|
shouldForwardProp: (e) => !e.startsWith("$")
|
|
2358
|
-
}, ue = /* @__PURE__ */ g(
|
|
2375
|
+
}, ue = /* @__PURE__ */ g(ft, Di, {
|
|
2359
2376
|
target: "e869yoj0",
|
|
2360
2377
|
label: "IconButton"
|
|
2361
2378
|
})(({
|
|
@@ -2433,7 +2450,7 @@ function Li({
|
|
|
2433
2450
|
})
|
|
2434
2451
|
});
|
|
2435
2452
|
}
|
|
2436
|
-
const
|
|
2453
|
+
const Fe = (e) => bt(e.chart.backgroundColor), Ni = ({
|
|
2437
2454
|
title: e
|
|
2438
2455
|
}) => {
|
|
2439
2456
|
const {
|
|
@@ -2443,7 +2460,7 @@ const Be = (e) => ut(e.chart.backgroundColor), Ni = ({
|
|
|
2443
2460
|
title: e,
|
|
2444
2461
|
children: /* @__PURE__ */ i(ue, {
|
|
2445
2462
|
disableTouchRipple: !0,
|
|
2446
|
-
$hoverColor:
|
|
2463
|
+
$hoverColor: Fe(t),
|
|
2447
2464
|
children: /* @__PURE__ */ i(Ii, {
|
|
2448
2465
|
fill: t.chart.textColor
|
|
2449
2466
|
})
|
|
@@ -2459,10 +2476,10 @@ const Be = (e) => ut(e.chart.backgroundColor), Ni = ({
|
|
|
2459
2476
|
}, {
|
|
2460
2477
|
themeSettings: n
|
|
2461
2478
|
} = k();
|
|
2462
|
-
return /* @__PURE__ */ h(
|
|
2479
|
+
return /* @__PURE__ */ h(T, {
|
|
2463
2480
|
children: [/* @__PURE__ */ i(ue, {
|
|
2464
2481
|
onClick: a,
|
|
2465
|
-
$hoverColor:
|
|
2482
|
+
$hoverColor: Fe(n),
|
|
2466
2483
|
"aria-label": "three dots button",
|
|
2467
2484
|
children: /* @__PURE__ */ i(Li, {
|
|
2468
2485
|
fill: n.chart.textColor
|
|
@@ -2508,7 +2525,7 @@ const Be = (e) => ut(e.chart.backgroundColor), Ni = ({
|
|
|
2508
2525
|
title: r("ai.preview"),
|
|
2509
2526
|
children: /* @__PURE__ */ i(ue, {
|
|
2510
2527
|
onClick: e,
|
|
2511
|
-
$hoverColor:
|
|
2528
|
+
$hoverColor: Fe(t),
|
|
2512
2529
|
children: /* @__PURE__ */ i(Si, {
|
|
2513
2530
|
fill: t.chart.textColor
|
|
2514
2531
|
})
|
|
@@ -2523,7 +2540,7 @@ function zi({
|
|
|
2523
2540
|
onRefresh: t,
|
|
2524
2541
|
onExpand: r
|
|
2525
2542
|
}) {
|
|
2526
|
-
const a =
|
|
2543
|
+
const a = N(() => [{
|
|
2527
2544
|
title: "Refresh",
|
|
2528
2545
|
onClick: t,
|
|
2529
2546
|
icon: /* @__PURE__ */ i(Ai, {})
|
|
@@ -2547,7 +2564,7 @@ function Oi({
|
|
|
2547
2564
|
} = k(), {
|
|
2548
2565
|
inlineElement: o,
|
|
2549
2566
|
expandedElement: n
|
|
2550
|
-
} =
|
|
2567
|
+
} = N(() => {
|
|
2551
2568
|
const l = se(e, {
|
|
2552
2569
|
useCustomizedStyleOptions: !0
|
|
2553
2570
|
});
|
|
@@ -2606,7 +2623,7 @@ function Oi({
|
|
|
2606
2623
|
expandedElement: p
|
|
2607
2624
|
};
|
|
2608
2625
|
}, [e]);
|
|
2609
|
-
return /* @__PURE__ */ h(
|
|
2626
|
+
return /* @__PURE__ */ h(T, {
|
|
2610
2627
|
children: [o, /* @__PURE__ */ h(Wt, {
|
|
2611
2628
|
open: t,
|
|
2612
2629
|
onClose: () => r(!1),
|
|
@@ -2623,7 +2640,7 @@ function Oi({
|
|
|
2623
2640
|
children: [/* @__PURE__ */ i("div", {
|
|
2624
2641
|
className: "csdk-text-ai-lg csdk-semibold",
|
|
2625
2642
|
children: e.queryTitle
|
|
2626
|
-
}), /* @__PURE__ */ i(
|
|
2643
|
+
}), /* @__PURE__ */ i(ft, {
|
|
2627
2644
|
onClick: () => r(!1),
|
|
2628
2645
|
"aria-label": "close expanded chart",
|
|
2629
2646
|
children: /* @__PURE__ */ i(Mi, {
|
|
@@ -2763,7 +2780,7 @@ function Re({
|
|
|
2763
2780
|
data: t,
|
|
2764
2781
|
rating: p
|
|
2765
2782
|
});
|
|
2766
|
-
}, [n, e, t, r]), 200), [c, d] = Gi(), s =
|
|
2783
|
+
}, [n, e, t, r]), 200), [c, d] = Gi(), s = N(() => a === "onHover" ? d : a !== "never", [d, a]), {
|
|
2767
2784
|
themeSettings: u
|
|
2768
2785
|
} = k();
|
|
2769
2786
|
return /* @__PURE__ */ i(Hi, {
|
|
@@ -2799,7 +2816,7 @@ function Se({
|
|
|
2799
2816
|
})]
|
|
2800
2817
|
});
|
|
2801
2818
|
}
|
|
2802
|
-
function
|
|
2819
|
+
function Qi({
|
|
2803
2820
|
nlgRequest: e
|
|
2804
2821
|
}) {
|
|
2805
2822
|
const {
|
|
@@ -2809,7 +2826,7 @@ function Bi({
|
|
|
2809
2826
|
} = pe(e), {
|
|
2810
2827
|
t: o
|
|
2811
2828
|
} = _();
|
|
2812
|
-
return r ? /* @__PURE__ */ i(
|
|
2829
|
+
return r ? /* @__PURE__ */ i(Ue, {}) : a ? /* @__PURE__ */ i(P, {
|
|
2813
2830
|
align: "left",
|
|
2814
2831
|
children: o("ai.errors.unexpected")
|
|
2815
2832
|
}) : /* @__PURE__ */ i(P, {
|
|
@@ -2819,7 +2836,7 @@ function Bi({
|
|
|
2819
2836
|
})
|
|
2820
2837
|
});
|
|
2821
2838
|
}
|
|
2822
|
-
function
|
|
2839
|
+
function Bi() {
|
|
2823
2840
|
const {
|
|
2824
2841
|
themeSettings: e
|
|
2825
2842
|
} = k();
|
|
@@ -2848,12 +2865,12 @@ function Ui({
|
|
|
2848
2865
|
onClick: e,
|
|
2849
2866
|
children: /* @__PURE__ */ h("div", {
|
|
2850
2867
|
className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
|
|
2851
|
-
children: [/* @__PURE__ */ i(
|
|
2868
|
+
children: [/* @__PURE__ */ i(Bi, {}), t("ai.buttons.insights")]
|
|
2852
2869
|
})
|
|
2853
2870
|
});
|
|
2854
2871
|
}
|
|
2855
2872
|
var Fi = jr("toLowerCase");
|
|
2856
|
-
const
|
|
2873
|
+
const nt = /* @__PURE__ */ g("div", {
|
|
2857
2874
|
target: "es26a860",
|
|
2858
2875
|
label: "FlexRow"
|
|
2859
2876
|
})("display:flex;align-items:center;column-gap:10px;"), Vi = (e) => !!e && "aeiou".includes(e[0]);
|
|
@@ -2884,14 +2901,14 @@ function $i({
|
|
|
2884
2901
|
metadata: c.metadata
|
|
2885
2902
|
}
|
|
2886
2903
|
}, S = r === "analyze";
|
|
2887
|
-
return /* @__PURE__ */ h(
|
|
2904
|
+
return /* @__PURE__ */ h(T, {
|
|
2888
2905
|
children: [/* @__PURE__ */ i(Re, {
|
|
2889
2906
|
sourceId: p,
|
|
2890
2907
|
data: e,
|
|
2891
2908
|
type: "chats/nlq",
|
|
2892
2909
|
buttonVisibility: t ? "always" : "onHover",
|
|
2893
|
-
renderContent: (I) => /* @__PURE__ */ h(
|
|
2894
|
-
children: [/* @__PURE__ */ h(
|
|
2910
|
+
renderContent: (I) => /* @__PURE__ */ h(T, {
|
|
2911
|
+
children: [/* @__PURE__ */ h(nt, {
|
|
2895
2912
|
children: [/* @__PURE__ */ i(Ot, {
|
|
2896
2913
|
align: "left",
|
|
2897
2914
|
theme: o,
|
|
@@ -2906,12 +2923,12 @@ function $i({
|
|
|
2906
2923
|
data: x,
|
|
2907
2924
|
type: "nlg/queryResult",
|
|
2908
2925
|
buttonVisibility: m ? "onHover" : "never",
|
|
2909
|
-
renderContent: (I) => /* @__PURE__ */ h(
|
|
2910
|
-
children: [/* @__PURE__ */ h(
|
|
2926
|
+
renderContent: (I) => /* @__PURE__ */ h(T, {
|
|
2927
|
+
children: [/* @__PURE__ */ h(nt, {
|
|
2911
2928
|
children: [/* @__PURE__ */ i(Ui, {
|
|
2912
2929
|
onClick: w
|
|
2913
2930
|
}), I]
|
|
2914
|
-
}), m && /* @__PURE__ */ i(
|
|
2931
|
+
}), m && /* @__PURE__ */ i(Qi, {
|
|
2915
2932
|
nlgRequest: x
|
|
2916
2933
|
})]
|
|
2917
2934
|
})
|
|
@@ -2922,7 +2939,7 @@ function Ji({
|
|
|
2922
2939
|
message: e,
|
|
2923
2940
|
isLastMessage: t
|
|
2924
2941
|
}) {
|
|
2925
|
-
if (
|
|
2942
|
+
if (Be(e)) {
|
|
2926
2943
|
const a = JSON.parse(e.content);
|
|
2927
2944
|
return /* @__PURE__ */ i($i, {
|
|
2928
2945
|
data: a,
|
|
@@ -2948,7 +2965,7 @@ function eo({
|
|
|
2948
2965
|
const {
|
|
2949
2966
|
t
|
|
2950
2967
|
} = _();
|
|
2951
|
-
return /* @__PURE__ */ i(
|
|
2968
|
+
return /* @__PURE__ */ i(T, {
|
|
2952
2969
|
children: e.map((r, a) => /* @__PURE__ */ i(Sr, {
|
|
2953
2970
|
fallbackRender: (o) => Ki(M(C({}, o), {
|
|
2954
2971
|
displayMessage: t("ai.errors.unexpected")
|
|
@@ -3036,7 +3053,7 @@ const ro = /* @__PURE__ */ g("button", {
|
|
|
3036
3053
|
}
|
|
3037
3054
|
return "";
|
|
3038
3055
|
});
|
|
3039
|
-
function
|
|
3056
|
+
function lt({
|
|
3040
3057
|
question: e,
|
|
3041
3058
|
onClick: t
|
|
3042
3059
|
}) {
|
|
@@ -3061,16 +3078,16 @@ function io({
|
|
|
3061
3078
|
}) {
|
|
3062
3079
|
const {
|
|
3063
3080
|
t: r
|
|
3064
|
-
} = _(), [a, o] = D(!0), n =
|
|
3081
|
+
} = _(), [a, o] = D(!0), n = N(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
|
|
3065
3082
|
themeSettings: l
|
|
3066
3083
|
} = k();
|
|
3067
3084
|
return /* @__PURE__ */ h(ao, {
|
|
3068
3085
|
"aria-label": "list of suggested questions",
|
|
3069
3086
|
theme: l,
|
|
3070
|
-
children: [n.map((c) => /* @__PURE__ */ i(
|
|
3087
|
+
children: [n.map((c) => /* @__PURE__ */ i(lt, {
|
|
3071
3088
|
question: c,
|
|
3072
3089
|
onClick: () => t(c)
|
|
3073
|
-
}, c)), n.length < e.length && /* @__PURE__ */ i(
|
|
3090
|
+
}, c)), n.length < e.length && /* @__PURE__ */ i(lt, {
|
|
3074
3091
|
question: r("ai.buttons.seeMore"),
|
|
3075
3092
|
onClick: () => o(!1)
|
|
3076
3093
|
})]
|
|
@@ -3113,7 +3130,7 @@ function co({
|
|
|
3113
3130
|
const a = e.length > 0, {
|
|
3114
3131
|
suggestionsWelcomeText: o
|
|
3115
3132
|
} = G();
|
|
3116
|
-
return t ? /* @__PURE__ */ i(lo, {}) : a ? /* @__PURE__ */ h(
|
|
3133
|
+
return t ? /* @__PURE__ */ i(lo, {}) : a ? /* @__PURE__ */ h(T, {
|
|
3117
3134
|
children: [o && /* @__PURE__ */ i(P, {
|
|
3118
3135
|
align: "left",
|
|
3119
3136
|
children: o
|
|
@@ -3133,7 +3150,7 @@ const so = /* @__PURE__ */ g("div", {
|
|
|
3133
3150
|
label: "ToolbarTitle"
|
|
3134
3151
|
})("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({
|
|
3135
3152
|
style: e
|
|
3136
|
-
}) => e.textColor, ";"), Ht = /* @__PURE__ */
|
|
3153
|
+
}) => e.textColor, ";"), Ht = /* @__PURE__ */ gt(function({
|
|
3137
3154
|
title: e,
|
|
3138
3155
|
leftNav: t,
|
|
3139
3156
|
rightNav: r,
|
|
@@ -3238,7 +3255,7 @@ const bo = (e, t) => {
|
|
|
3238
3255
|
isVisible: e,
|
|
3239
3256
|
onClick: t,
|
|
3240
3257
|
anchorElement: r
|
|
3241
|
-
}) => /* @__PURE__ */ i(
|
|
3258
|
+
}) => /* @__PURE__ */ i(mt, {
|
|
3242
3259
|
anchorEl: r,
|
|
3243
3260
|
open: e,
|
|
3244
3261
|
placement: "top",
|
|
@@ -3297,10 +3314,10 @@ function Co({
|
|
|
3297
3314
|
data: m,
|
|
3298
3315
|
isLoading: f,
|
|
3299
3316
|
isError: w
|
|
3300
|
-
} =
|
|
3317
|
+
} = Nt({
|
|
3301
3318
|
contextTitle: e,
|
|
3302
3319
|
count: u
|
|
3303
|
-
}), x =
|
|
3320
|
+
}), x = N(() => m == null ? void 0 : m.map((A) => A.nlqPrompt), [m]), {
|
|
3304
3321
|
history: S,
|
|
3305
3322
|
lastNlqResponse: I,
|
|
3306
3323
|
isAwaitingResponse: E,
|
|
@@ -3309,28 +3326,28 @@ function Co({
|
|
|
3309
3326
|
chatId: H,
|
|
3310
3327
|
lastError: Z
|
|
3311
3328
|
} = Ga(e, r), {
|
|
3312
|
-
mutate:
|
|
3329
|
+
mutate: Q,
|
|
3313
3330
|
isLoading: Ie
|
|
3314
|
-
} =
|
|
3315
|
-
|
|
3331
|
+
} = Et(H), [he, B] = D(!1), [X, ae] = D(!1), Ae = () => B(!0), ie = () => B(!1), oe = () => {
|
|
3332
|
+
Q(), ie();
|
|
3316
3333
|
}, j = V(null), W = V(null), Pt = () => {
|
|
3317
3334
|
if (!(j != null && j.current))
|
|
3318
3335
|
return;
|
|
3319
3336
|
const {
|
|
3320
3337
|
scrollTop: A,
|
|
3321
3338
|
clientHeight: Y,
|
|
3322
|
-
scrollHeight:
|
|
3339
|
+
scrollHeight: $e
|
|
3323
3340
|
} = j.current;
|
|
3324
|
-
if (A === void 0 || Y === void 0 ||
|
|
3341
|
+
if (A === void 0 || Y === void 0 || $e === void 0)
|
|
3325
3342
|
return;
|
|
3326
|
-
const
|
|
3327
|
-
X !==
|
|
3343
|
+
const Je = $e - A - Y > Y / 2;
|
|
3344
|
+
X !== Je && ae(Je);
|
|
3328
3345
|
};
|
|
3329
3346
|
ke(() => {
|
|
3330
3347
|
j.current && (j.current.scrollTop = j.current.scrollHeight);
|
|
3331
3348
|
}, [S, he, E]);
|
|
3332
|
-
const
|
|
3333
|
-
ref:
|
|
3349
|
+
const Qt = V(null), Ve = d ? /* @__PURE__ */ i(Ht, {
|
|
3350
|
+
ref: Qt,
|
|
3334
3351
|
title: e,
|
|
3335
3352
|
leftNav: t && /* @__PURE__ */ i(to, {
|
|
3336
3353
|
onClick: t,
|
|
@@ -3338,13 +3355,13 @@ function Co({
|
|
|
3338
3355
|
}),
|
|
3339
3356
|
rightNav: /* @__PURE__ */ i(Yt, {}),
|
|
3340
3357
|
style: p.aiChat.header
|
|
3341
|
-
}) : null,
|
|
3342
|
-
return (Z == null ? void 0 : Z.message) === l("ai.errors.chatUnavailable") ? /* @__PURE__ */ h(
|
|
3343
|
-
children: [d &&
|
|
3358
|
+
}) : null, Bt = N(() => [...new Set(S.filter((A) => A.role === "user").filter((A) => !(x != null && x.includes(A.content))).map((A) => A.content).reverse())].slice(0, s), [S, s, x]);
|
|
3359
|
+
return (Z == null ? void 0 : Z.message) === l("ai.errors.chatUnavailable") ? /* @__PURE__ */ h(T, {
|
|
3360
|
+
children: [d && Ve, /* @__PURE__ */ i(Rt, {
|
|
3344
3361
|
text: Z.message
|
|
3345
3362
|
})]
|
|
3346
|
-
}) : /* @__PURE__ */ h(
|
|
3347
|
-
children: [
|
|
3363
|
+
}) : /* @__PURE__ */ h(T, {
|
|
3364
|
+
children: [Ve, /* @__PURE__ */ h(wo, {
|
|
3348
3365
|
ref: j,
|
|
3349
3366
|
theme: p,
|
|
3350
3367
|
onScroll: Pt,
|
|
@@ -3379,7 +3396,7 @@ function Co({
|
|
|
3379
3396
|
children: A
|
|
3380
3397
|
})
|
|
3381
3398
|
}, Y))
|
|
3382
|
-
}), (E || Ie) && /* @__PURE__ */ i(
|
|
3399
|
+
}), (E || Ie) && /* @__PURE__ */ i(Ue, {}), he && /* @__PURE__ */ i(fi, {
|
|
3383
3400
|
onCancel: ie,
|
|
3384
3401
|
onConfirm: oe
|
|
3385
3402
|
})]
|
|
@@ -3391,7 +3408,7 @@ function Co({
|
|
|
3391
3408
|
disabled: E || R,
|
|
3392
3409
|
onClearHistoryClick: Ae,
|
|
3393
3410
|
suggestions: x || [],
|
|
3394
|
-
recentPrompts:
|
|
3411
|
+
recentPrompts: Bt,
|
|
3395
3412
|
isLoading: f || R,
|
|
3396
3413
|
recommendationsError: w,
|
|
3397
3414
|
onChange: ie
|
|
@@ -3422,7 +3439,7 @@ const vo = /* @__PURE__ */ g("button", {
|
|
|
3422
3439
|
theme: e
|
|
3423
3440
|
}) => e.aiChat.primaryFontSize[1], ";color:", ({
|
|
3424
3441
|
theme: e
|
|
3425
|
-
}) =>
|
|
3442
|
+
}) => bt(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"), So = /* @__PURE__ */ g("div", {
|
|
3426
3443
|
target: "e5a38pw3",
|
|
3427
3444
|
label: "IconContainer"
|
|
3428
3445
|
})("width:16px;height:16px;transform:rotate(180deg);");
|
|
@@ -3567,11 +3584,11 @@ function Zo({
|
|
|
3567
3584
|
themeSettings: a
|
|
3568
3585
|
} = k(), {
|
|
3569
3586
|
t: o
|
|
3570
|
-
} = _(), n =
|
|
3587
|
+
} = _(), n = N(() => e == null ? void 0 : e.map((c) => ({
|
|
3571
3588
|
title: c,
|
|
3572
3589
|
onClick: () => t(c)
|
|
3573
3590
|
})), [e, t]), l = wr(yr(a.aiChat.header.backgroundColor)) > 0.5;
|
|
3574
|
-
return /* @__PURE__ */ h(
|
|
3591
|
+
return /* @__PURE__ */ h(T, {
|
|
3575
3592
|
children: [r ? /* @__PURE__ */ i(Ht, {
|
|
3576
3593
|
title: o("ai.analyticsChatbot"),
|
|
3577
3594
|
leftNav: /* @__PURE__ */ i(Oo, {
|
|
@@ -3600,7 +3617,7 @@ function Wo() {
|
|
|
3600
3617
|
t: d
|
|
3601
3618
|
} = _(), s = d("ai.errors.noAvailableDataTopics"), u = y((w) => {
|
|
3602
3619
|
w.length ? w.length === 1 && (a(void 0), t(w[0])) : a(s);
|
|
3603
|
-
}, [s]), p =
|
|
3620
|
+
}, [s]), p = N(() => {
|
|
3604
3621
|
if (o && n === "idle") {
|
|
3605
3622
|
const w = (l != null && l.length ? o == null ? void 0 : o.filter((x) => l == null ? void 0 : l.includes(x.title)) : o).map((x) => x.title);
|
|
3606
3623
|
return u(w), w;
|
|
@@ -3636,7 +3653,7 @@ const en = Ze({
|
|
|
3636
3653
|
} = k();
|
|
3637
3654
|
return /* @__PURE__ */ i(ja, {
|
|
3638
3655
|
value: a ?? {},
|
|
3639
|
-
children: /* @__PURE__ */ i(
|
|
3656
|
+
children: /* @__PURE__ */ i(Ba, {
|
|
3640
3657
|
id: "csdk-chatbot-frame",
|
|
3641
3658
|
width: t,
|
|
3642
3659
|
height: r,
|
|
@@ -3656,7 +3673,7 @@ const en = Ze({
|
|
|
3656
3673
|
t: o
|
|
3657
3674
|
} = _();
|
|
3658
3675
|
if (a)
|
|
3659
|
-
return /* @__PURE__ */ i(
|
|
3676
|
+
return /* @__PURE__ */ i(T, {
|
|
3660
3677
|
children: o("ai.errors.unexpected")
|
|
3661
3678
|
});
|
|
3662
3679
|
const n = t ?? o("ai.errors.insightsNotAvailable");
|
|
@@ -3674,7 +3691,7 @@ const en = Ze({
|
|
|
3674
3691
|
t: o
|
|
3675
3692
|
} = _();
|
|
3676
3693
|
if (a)
|
|
3677
|
-
return /* @__PURE__ */ i(
|
|
3694
|
+
return /* @__PURE__ */ i(T, {
|
|
3678
3695
|
children: o("ai.errors.unexpected")
|
|
3679
3696
|
});
|
|
3680
3697
|
const n = t ?? o("ai.errors.insightsNotAvailable");
|
|
@@ -3771,7 +3788,7 @@ const Go = /* @__PURE__ */ g("div", {
|
|
|
3771
3788
|
l(m);
|
|
3772
3789
|
}
|
|
3773
3790
|
}, [e, o, r]);
|
|
3774
|
-
const c =
|
|
3791
|
+
const c = N(() => {
|
|
3775
3792
|
const p = n && xe(n) ? gr(n == null ? void 0 : n.filters) : [], m = e.jaql.metadata.filter((f) => !f.jaql.filter).concat(p.filter((f) => !f.config.disabled).map((f) => f.jaql()));
|
|
3776
3793
|
return M(C({}, e), {
|
|
3777
3794
|
jaql: M(C({}, e.jaql), {
|
|
@@ -3784,15 +3801,15 @@ const Go = /* @__PURE__ */ g("div", {
|
|
|
3784
3801
|
isLoading: s,
|
|
3785
3802
|
isError: u
|
|
3786
3803
|
} = pe(c);
|
|
3787
|
-
return s || !n ? /* @__PURE__ */ i(
|
|
3804
|
+
return s || !n ? /* @__PURE__ */ i(Ue, {}) : xe(n) ? /* @__PURE__ */ i(le, M(C({}, n), {
|
|
3788
3805
|
highlightSelectionDisabled: !0,
|
|
3789
3806
|
onDataReady: t,
|
|
3790
3807
|
topSlot: d && !u && /* @__PURE__ */ i(Yo, {
|
|
3791
3808
|
nlgRequest: c,
|
|
3792
3809
|
summary: d
|
|
3793
3810
|
})
|
|
3794
|
-
})) : /* @__PURE__ */ i(
|
|
3795
|
-
}, Po = new
|
|
3811
|
+
})) : /* @__PURE__ */ i(T, {});
|
|
3812
|
+
}, Po = new st({
|
|
3796
3813
|
defaultOptions: {
|
|
3797
3814
|
queries: {
|
|
3798
3815
|
refetchOnWindowFocus: !1,
|
|
@@ -3804,10 +3821,10 @@ function on({
|
|
|
3804
3821
|
children: e,
|
|
3805
3822
|
context: t
|
|
3806
3823
|
}) {
|
|
3807
|
-
return /* @__PURE__ */ i(
|
|
3824
|
+
return /* @__PURE__ */ i(At, {
|
|
3808
3825
|
children: /* @__PURE__ */ i(He.Provider, {
|
|
3809
3826
|
value: t == null ? void 0 : t.api,
|
|
3810
|
-
children: /* @__PURE__ */ i(
|
|
3827
|
+
children: /* @__PURE__ */ i(ut, {
|
|
3811
3828
|
client: Po,
|
|
3812
3829
|
children: e
|
|
3813
3830
|
})
|
|
@@ -3825,7 +3842,7 @@ function on({
|
|
|
3825
3842
|
}
|
|
3826
3843
|
})();
|
|
3827
3844
|
export {
|
|
3828
|
-
|
|
3845
|
+
Uo as AiContextProvider,
|
|
3829
3846
|
va as ChatRestApi,
|
|
3830
3847
|
en as Chatbot,
|
|
3831
3848
|
on as CustomAiContextProvider,
|
|
@@ -3836,10 +3853,11 @@ export {
|
|
|
3836
3853
|
Ia as prepareGetNlgInsightsPayload,
|
|
3837
3854
|
La as prepareGetNlqResultPayload,
|
|
3838
3855
|
Ga as useChatSession,
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3856
|
+
Ko as useFinalNlqResponse,
|
|
3857
|
+
Fo as useGetNlgInsights,
|
|
3858
|
+
Vo as useGetNlgQueryResult,
|
|
3859
|
+
$o as useGetNlqResult,
|
|
3860
|
+
Jo as useGetQueryRecommendations,
|
|
3861
|
+
Xo as useLastNlqResponse,
|
|
3862
|
+
Bo as widgetComposer
|
|
3845
3863
|
};
|