@sisense/sdk-ui-vue 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.
Files changed (38) hide show
  1. package/dist/ai.cjs +13 -13
  2. package/dist/ai.js +133 -125
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.js +972 -951
  5. package/dist/packages/sdk-ui-vue/src/ai/helpers/context-connectors/ai-context-connector.d.ts +7 -0
  6. package/dist/packages/sdk-ui-vue/src/ai/helpers/context-connectors/index.d.ts +1 -0
  7. package/dist/packages/sdk-ui-vue/src/ai/providers/{ai-context-provider.d.ts → ai-context-provider/ai-context-provider.d.ts} +1 -15
  8. package/dist/packages/sdk-ui-vue/src/ai/providers/ai-context-provider/ai-context.d.ts +9 -0
  9. package/dist/packages/sdk-ui-vue/src/ai/providers/ai-context-provider/index.d.ts +2 -0
  10. package/dist/packages/sdk-ui-vue/src/components/charts/scattermap-chart.d.ts +2 -2
  11. package/dist/packages/sdk-ui-vue/src/components/filters/relative-date-filter-tile.d.ts +2 -2
  12. package/dist/packages/sdk-ui-vue/src/composables/index.d.ts +1 -0
  13. package/dist/packages/sdk-ui-vue/src/composables/use-execute-csv-query.d.ts +43 -0
  14. package/dist/packages/sdk-ui-vue/src/composables/use-plugins.d.ts +1 -5
  15. package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/index.d.ts +3 -0
  16. package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/plugins-context-connector.d.ts +8 -0
  17. package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/sisense-context-connector.d.ts +6 -0
  18. package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/theme-context-connector.d.ts +6 -0
  19. package/dist/packages/sdk-ui-vue/src/helpers/setup-helper.d.ts +21 -0
  20. package/dist/packages/sdk-ui-vue/src/helpers/use-reducer.d.ts +1 -1
  21. package/dist/packages/sdk-ui-vue/src/helpers/use-ref-state.d.ts +5 -0
  22. package/dist/packages/sdk-ui-vue/src/lib.d.ts +1 -1
  23. package/dist/packages/sdk-ui-vue/src/providers/index.d.ts +3 -3
  24. package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/index.d.ts +2 -0
  25. package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/plugins-context.d.ts +10 -0
  26. package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/plugins-provider.d.ts +11 -0
  27. package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/index.d.ts +2 -0
  28. package/dist/packages/sdk-ui-vue/src/providers/{sisense-context-provider.d.ts → sisense-context-provider/sisense-context-provider.d.ts} +3 -16
  29. package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context.d.ts +9 -0
  30. package/dist/packages/sdk-ui-vue/src/providers/theme-provider/index.d.ts +2 -0
  31. package/dist/packages/sdk-ui-vue/src/providers/theme-provider/theme-context.d.ts +7 -0
  32. package/dist/packages/sdk-ui-vue/src/providers/{theme-provider.d.ts → theme-provider/theme-provider.d.ts} +4 -13
  33. package/dist/{use-tracking-2d715e05.js → use-tracking-0536543b.js} +37321 -37192
  34. package/dist/use-tracking-07070102.cjs +1075 -0
  35. package/package.json +6 -4
  36. package/dist/packages/sdk-ui-vue/src/providers/plugins-provider.d.ts +0 -37
  37. package/dist/packages/sdk-ui-vue/src/setup-helper.d.ts +0 -31
  38. package/dist/use-tracking-bc424435.cjs +0 -1066
package/dist/ai.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as Ee, ref as gt, watchEffect as aa, provide as ra, inject as ia, watch as ze, toRefs as Oe } from "vue";
2
- import { at as ut, au as ke, av as oa, aw as we, ax as na, ay as la, az as ee, aA as U, aB as ht, aC as b, aD as Ze, aE as k, aF as i, aG as y, aH as N, aI as Me, aJ as T, aK as le, aL as _, aM as mt, aN as da, aO as ca, aP as sa, aQ as V, aR as pa, aS as oe, aT as Se, aU as Re, aV as ga, aW as ua, aX as ha, aY as u, aZ as L, a_ as ma, a$ as ba, b0 as I, b1 as be, b2 as h, b3 as de, b4 as fa, b5 as xa, b6 as ka, b7 as ce, b8 as J, b9 as wa, ba as ya, bb as bt, bc as _a, bd as Ca, be as ft, bf as va, bg as Ma, bh as Sa, bi as xt, bj as Ia, bk as Da, bl as Aa, bm as La, bn as Ie, bo as Na, bp as Ta, bq as Ke, br as ja, bs as Ea, bt as za, bu as kt, bv as ne, bw as wt, bx as Le, by as Oa, bz as Za, bA as Ra, bB as Wa, ad as ue, bC as yt, bD as Ga, bE as qa, bF as _t, bG as Ha, bH as Ya, bI as Pa, L as Ba, bJ as Qa, a as Ct, bK as vt, N as We, K as Ge, O as qe, P as te, X as He } from "./use-tracking-2d715e05.js";
1
+ import { inject as ra, ref as gt, defineComponent as Ee, watchEffect as ut, provide as ia, watch as ze, toRefs as Oe } from "vue";
2
+ import { au as ht, av as ke, aw as oa, ax as we, ay as na, az as la, aA as ee, aB as U, aC as mt, aD as b, aE as Ze, aF as k, aG as i, aH as y, aI as N, aJ as Me, aK as T, aL as le, aM as _, aN as bt, aO as da, aP as ca, aQ as sa, aR as V, aS as pa, aT as oe, aU as Se, aV as Re, aW as ga, aX as ua, aY as ha, aZ as u, a_ as L, a$ as ma, b0 as ba, b1 as I, b2 as be, b3 as h, b4 as de, b5 as fa, b6 as xa, b7 as ka, b8 as wa, b9 as ce, ba as J, bb as ya, bc as _a, bd as ft, be as Ca, bf as xt, bg as va, bh as Ma, bi as Sa, bj as kt, bk as Ia, bl as Da, bm as Aa, bn as La, bo as Ie, bp as Na, bq as Ta, br as Ke, bs as ja, bt as Ea, bu as za, bv as wt, bw as ne, bx as yt, by as Le, bz as Oa, bA as Za, bB as Ra, bC as Wa, ah as ue, bD as _t, bE as Ga, bF as qa, bG as Ct, bH as Ha, bI as Ya, bJ as Pa, A as Ba, bK as Qa, a as vt, bL as Mt, C as We, y as Ge, D as qe, E as te, a0 as He } from "./use-tracking-0536543b.js";
3
3
  var Ua = Object.defineProperty, Fa = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, et = Object.getOwnPropertySymbols, Ja = Object.prototype.hasOwnProperty, Xa = Object.prototype.propertyIsEnumerable, tt = (e, t, a) => t in e ? Ua(e, t, {
4
4
  enumerable: !0,
5
5
  configurable: !0,
@@ -13,26 +13,26 @@ var Ua = Object.defineProperty, Fa = Object.defineProperties, Va = Object.getOwn
13
13
  Xa.call(t, a) && tt(e, a, t[a]);
14
14
  return e;
15
15
  }, De = (e, t) => Fa(e, Va(t));
16
- let Mt = class extends wt {
17
- constructor(e, t) {
18
- var a;
19
- super((a = e.jaql.title) !== null && a !== void 0 ? a : "", t), 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 = Ra(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
16
+ class St extends yt {
17
+ constructor(t, a) {
18
+ var r;
19
+ super((r = t.jaql.title) !== null && r !== void 0 ? r : "", a), 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 = Ra(t.jaql.sort) : delete this.sortType, this.skipValidation = !0;
20
20
  }
21
21
  get id() {
22
22
  return this.expression;
23
23
  }
24
- jaql(e) {
25
- return e === !0 ? this.metadataItem.jaql : this.metadataItem;
24
+ jaql(t) {
25
+ return t === !0 ? this.metadataItem.jaql : this.metadataItem;
26
26
  }
27
- };
27
+ }
28
28
  const $a = {
29
29
  text: Me.TextAttribute,
30
30
  numeric: Me.NumericAttribute,
31
31
  datetime: Me.DateLevel
32
32
  };
33
- function St(e) {
33
+ function It(e) {
34
34
  var t;
35
- return new Mt(e, (t = $a[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
35
+ return new St(e, (t = $a[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
36
36
  }
37
37
  const Ka = (e) => "dashboardOid" in e && "widgetOid" in e;
38
38
  function er(e) {
@@ -41,7 +41,7 @@ function er(e) {
41
41
  function tr(e) {
42
42
  return !e || !e.jaql.datasource.title || !e.jaql.metadata.length;
43
43
  }
44
- function It(e) {
44
+ function Dt(e) {
45
45
  if (![...La, "pivot", "pivot2"].includes(e))
46
46
  throw new J("errors.chartTypeNotSupported", {
47
47
  chartType: e
@@ -54,7 +54,7 @@ function K(e) {
54
54
  var t;
55
55
  return "column" in e && ((t = e.column) == null ? void 0 : t.expression) && /\(.*\)/.test(e.column.expression);
56
56
  }
57
- function Dt(e) {
57
+ function At(e) {
58
58
  const t = "measures" in e && z(e.measures) || "values" in e && z(e.values);
59
59
  return ar(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((a) => K(a)) : 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;
60
60
  }
@@ -410,8 +410,8 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
410
410
  executePivotQueryTmpl: "Not implemented yet",
411
411
  pivotTableWidgetTmpl: "Not implemented yet"
412
412
  }
413
- }, At = (e, t) => ir[t][e].replace(/{{(.*?)Tmpl}}/g, (a, r) => At(`${r}Tmpl`, t)), or = (e, t) => e.replace(/{{(.*?)}}/g, (a, r) => r in t ? t[r] : (console.warn(`Placeholder ${r} not found in data`), a)), Ye = (e, t, a = "react") => {
414
- const r = At(e, a);
413
+ }, Lt = (e, t) => ir[t][e].replace(/{{(.*?)Tmpl}}/g, (a, r) => Lt(`${r}Tmpl`, t)), or = (e, t) => e.replace(/{{(.*?)}}/g, (a, r) => r in t ? t[r] : (console.warn(`Placeholder ${r} not found in data`), a)), Ye = (e, t, a = "react") => {
414
+ const r = Lt(e, a);
415
415
  return rr(or(r, t));
416
416
  }, he = `
417
417
  `, Ne = "UNKNOWN", nr = (e, t) => {
@@ -421,7 +421,7 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
421
421
  `, a += " ".repeat(t), a += ` '${e.formula}',
422
422
  `, a += " ".repeat(t), a += ` {
423
423
  `, Object.entries(e.context).forEach(([r, o]) => {
424
- const n = _t(o.table || Ne, o.column || Ne, void 0, "DM");
424
+ const n = Ct(o.table || Ne, o.column || Ne, void 0, "DM");
425
425
  a += " ".repeat(t), a += ` '${r.slice(1, -1)}': ${n},
426
426
  `;
427
427
  }), a += " ".repeat(t), a += ` }
@@ -435,7 +435,7 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
435
435
  title: n
436
436
  } = e;
437
437
  let l;
438
- return a && r && (l = _t(a, r, t, "DM")), o && a && r && n && (l = `measureFactory.${Ha.aggregationFromJAQL(o)}(${l}, '${ne(n)}')`), l || Ne;
438
+ return a && r && (l = Ct(a, r, t, "DM")), o && a && r && n && (l = `measureFactory.${Ha.aggregationFromJAQL(o)}(${l}, '${ne(n)}')`), l || Ne;
439
439
  }, dr = (e, t) => {
440
440
  const a = e.jaql(!1).jaql;
441
441
  return "formula" in a ? nr(a, t) : lr(a);
@@ -444,9 +444,9 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
444
444
  return "";
445
445
  if (typeof e == "string")
446
446
  return `'${ne(e)}'`;
447
- if (e instanceof Mt)
447
+ if (e instanceof St)
448
448
  return dr(e, t);
449
- if (e instanceof wt)
449
+ if (e instanceof yt)
450
450
  return e.composeCode || "";
451
451
  let r = "";
452
452
  return Array.isArray(e) ? r += `[${e.map((o) => W(o, t + 2))}${e.length ? he + " ".repeat(t + 2) : ""}]` : (r += `{${he}`, Object.entries(e).forEach(([o, n]) => {
@@ -456,13 +456,13 @@ const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
456
456
  function cr(e) {
457
457
  return W(e, fe);
458
458
  }
459
- function Lt(e) {
459
+ function Nt(e) {
460
460
  if (!e)
461
461
  throw new J("errors.undefinedDataSource");
462
462
  let t;
463
463
  return typeof e == "object" && "title" in e ? t = e.title : t = e, er(t);
464
464
  }
465
- function Nt(e, t = !0) {
465
+ function Tt(e, t = !0) {
466
466
  const a = [];
467
467
  return t && a.push("measureFactory"), z(e) && a.push("filterFactory"), a.length > 0 ? `import { ${a.join(", ")} } from '@sisense/sdk-data';` : "";
468
468
  }
@@ -478,33 +478,33 @@ const at = `
478
478
  let a = "";
479
479
  return a += `[${e.map((r) => sr(r, t + 2))}${e.length ? `
480
480
  ` + " ".repeat(t + 2) : ""}]`, a;
481
- }, Tt = (e) => {
481
+ }, jt = (e) => {
482
482
  if (!e)
483
483
  return "";
484
484
  if (Array.isArray(e))
485
485
  return pr(e, 6);
486
486
  throw new J("errors.filterRelationsNotSupported");
487
487
  }, gr = ["executeQueryByWidgetIdTmpl", "widgetByIdTmpl"], ur = "chartWidgetTmpl", hr = "pivotTableWidgetTmpl", mr = (e) => e, br = (e, t, a) => {
488
- const r = Dt(e), o = {
488
+ const r = At(e), o = {
489
489
  titleString: e.title,
490
- dataSourceString: Lt(e.dataSource),
490
+ dataSourceString: Nt(e.dataSource),
491
491
  chartTypeString: mr(e.chartType),
492
492
  dataOptionsString: cr(e.dataOptions),
493
- filtersString: Tt(e.filters),
493
+ filtersString: jt(e.filters),
494
494
  componentString: "ChartWidget",
495
- extraImportsString: Nt(e.filters || [], r),
495
+ extraImportsString: Tt(e.filters || [], r),
496
496
  styleOptionsString: W(e.styleOptions || {}, fe),
497
497
  drilldownOptionsString: W(e.drilldownOptions || {}, fe)
498
498
  };
499
499
  return Ye(a, o, t);
500
500
  }, fr = (e, t, a) => {
501
- const r = Dt(e), o = {
501
+ const r = At(e), o = {
502
502
  titleString: e.title,
503
- dataSourceString: Lt(e.dataSource),
503
+ dataSourceString: Nt(e.dataSource),
504
504
  dataOptionsString: W(e.dataOptions),
505
- filtersString: Tt(e.filters),
505
+ filtersString: jt(e.filters),
506
506
  componentString: "PivotTableWidget",
507
- extraImportsString: Nt(e.filters || [], r),
507
+ extraImportsString: Tt(e.filters || [], r),
508
508
  styleOptionsString: W(e.styleOptions || {}, fe)
509
509
  };
510
510
  return Ye(a, o, t);
@@ -515,7 +515,7 @@ const at = `
515
515
  chartType: r = "table",
516
516
  includeChart: o = !0
517
517
  }) => {
518
- It(r);
518
+ Dt(r);
519
519
  const n = {
520
520
  dashboardOid: e,
521
521
  widgetOid: t
@@ -525,14 +525,14 @@ const at = `
525
525
  widgetProps: e,
526
526
  uiFramework: t = "react"
527
527
  }) => {
528
- if (ft(e))
529
- return It(e.chartType), br(e, t, ur);
528
+ if (xt(e))
529
+ return Dt(e.chartType), br(e, t, ur);
530
530
  if (va(e))
531
531
  return fr(e, t, hr);
532
532
  throw new J("errors.otherWidgetTypesNotSupported");
533
533
  }, wr = (e) => ({
534
534
  dataOptions: {
535
- columns: e.map(St)
535
+ columns: e.map(It)
536
536
  }
537
537
  }), yr = Object.freeze({
538
538
  convolution: {
@@ -575,7 +575,7 @@ const at = `
575
575
  name: m.column.name
576
576
  }
577
577
  };
578
- const w = St(x);
578
+ const w = It(x);
579
579
  if (x.panel === "measures")
580
580
  return De(F({}, m), {
581
581
  column: w
@@ -714,7 +714,7 @@ const at = `
714
714
  console.error(a);
715
715
  return;
716
716
  }
717
- }, Pe = (e, t) => Ir(e, t), Dr = (e) => Ka(e) ? xr(e) : kr(e), jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
717
+ }, Pe = (e, t) => Ir(e, t), Dr = (e) => Ka(e) ? xr(e) : kr(e), Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
718
718
  __proto__: null,
719
719
  toWidgetCode: Dr,
720
720
  toWidgetProps: Pe
@@ -803,7 +803,7 @@ class Er extends ja {
803
803
  this.currentResult = a;
804
804
  }
805
805
  notify(t) {
806
- xt.batch(() => {
806
+ kt.batch(() => {
807
807
  if (this.mutateOptions && this.hasListeners()) {
808
808
  if (t.onSuccess) {
809
809
  var a, r, o, n;
@@ -828,7 +828,7 @@ function Be(e, t, a) {
828
828
  ce(() => {
829
829
  n.setOptions(r);
830
830
  }, [n, r]);
831
- const l = Sa(_((c) => n.subscribe(xt.batchCalls(c)), [n]), () => n.getCurrentResult(), () => n.getCurrentResult()), d = _((c, s) => {
831
+ const l = Sa(_((c) => n.subscribe(kt.batchCalls(c)), [n]), () => n.getCurrentResult(), () => n.getCurrentResult()), d = _((c, s) => {
832
832
  n.mutate(c, s).catch(zr);
833
833
  }, [n]);
834
834
  if (l.error && Ia(n.options.useErrorBoundary, [l.error]))
@@ -868,7 +868,7 @@ class lt {
868
868
  }, this.httpClient = t;
869
869
  }
870
870
  }
871
- new ut({
871
+ new ht({
872
872
  defaultOptions: {
873
873
  queries: {
874
874
  refetchOnWindowFocus: !1,
@@ -876,7 +876,7 @@ new ut({
876
876
  }
877
877
  }
878
878
  });
879
- const Et = /* @__PURE__ */ ke(void 0), G = () => Re(Et), zt = /* @__PURE__ */ ke({}), Or = () => Re(zt), Zr = ({
879
+ const zt = /* @__PURE__ */ ke(void 0), G = () => Re(zt), Ot = /* @__PURE__ */ ke({}), Or = () => Re(Ot), Zr = ({
880
880
  children: e
881
881
  }) => {
882
882
  const [t, a] = I({}), r = _((l, d) => {
@@ -887,7 +887,7 @@ const Et = /* @__PURE__ */ ke(void 0), G = () => Re(Et), zt = /* @__PURE__ */ ke
887
887
  [r(d, c)]: l
888
888
  }));
889
889
  }, [r]), n = _((l, d) => t[r(l, d)], [t, r]);
890
- return /* @__PURE__ */ i(zt.Provider, {
890
+ return /* @__PURE__ */ i(Ot.Provider, {
891
891
  value: {
892
892
  saveChatId: o,
893
893
  getChatId: n
@@ -895,7 +895,7 @@ const Et = /* @__PURE__ */ ke(void 0), G = () => Re(Et), zt = /* @__PURE__ */ ke
895
895
  children: e
896
896
  });
897
897
  };
898
- function Ot(e) {
898
+ function Zt(e) {
899
899
  var t, a;
900
900
  if ("jaql" in e)
901
901
  return e;
@@ -924,7 +924,7 @@ function Ot(e) {
924
924
  }
925
925
  }
926
926
  const Qe = (e, t = !0) => {
927
- const a = T(() => Ot(e), [e]), r = G(), {
927
+ const a = T(() => Zt(e), [e]), r = G(), {
928
928
  data: o,
929
929
  error: n,
930
930
  isError: l,
@@ -1001,24 +1001,24 @@ const Te = 4, Gr = (e) => {
1001
1001
  x();
1002
1002
  }, [x])
1003
1003
  };
1004
- }, Zt = Object.freeze({
1004
+ }, Rt = Object.freeze({
1005
1005
  enableFollowupQuestions: !1,
1006
1006
  enableHeader: !0,
1007
1007
  enableInsights: !0,
1008
1008
  numOfRecommendations: 4,
1009
1009
  numOfRecentPrompts: 5
1010
- }), Rt = /* @__PURE__ */ ke(v({}, Zt)), q = () => Re(Rt), qr = ({
1010
+ }), Wt = /* @__PURE__ */ ke(v({}, Rt)), q = () => Re(Wt), qr = ({
1011
1011
  children: e,
1012
1012
  value: t
1013
1013
  }) => {
1014
1014
  const {
1015
1015
  t: a
1016
- } = y(), r = Object.entries(t).reduce((o, [n, l]) => (l !== void 0 && (o[n] = l), o), A(v({}, Zt), {
1016
+ } = y(), r = Object.entries(t).reduce((o, [n, l]) => (l !== void 0 && (o[n] = l), o), A(v({}, Rt), {
1017
1017
  inputPromptText: a("ai.config.inputPromptText"),
1018
1018
  welcomeText: a("ai.config.welcomeText"),
1019
1019
  suggestionsWelcomeText: a("ai.config.suggestionsWelcomeText")
1020
1020
  }));
1021
- return /* @__PURE__ */ i(Rt.Provider, {
1021
+ return /* @__PURE__ */ i(Wt.Provider, {
1022
1022
  value: r,
1023
1023
  children: e
1024
1024
  });
@@ -1038,7 +1038,7 @@ const Te = 4, Gr = (e) => {
1038
1038
  }),
1039
1039
  enabled: !!t && !!e
1040
1040
  });
1041
- }, Wt = (e) => {
1041
+ }, Gt = (e) => {
1042
1042
  const t = G(), a = de();
1043
1043
  return Be({
1044
1044
  mutationFn: () => X(void 0, null, function* () {
@@ -1059,7 +1059,7 @@ const Te = 4, Gr = (e) => {
1059
1059
  isError: r
1060
1060
  } = Hr(e), {
1061
1061
  mutate: o
1062
- } = Wt(e);
1062
+ } = Gt(e);
1063
1063
  return ce(() => {
1064
1064
  r && o();
1065
1065
  }, [r, o]), {
@@ -1192,11 +1192,11 @@ const Te = 4, Gr = (e) => {
1192
1192
  }, Jr = (e) => T(() => {
1193
1193
  if (e != null && e.length) {
1194
1194
  const t = e[e.length - 1];
1195
- if (Gt(t))
1195
+ if (qt(t))
1196
1196
  return JSON.parse(t.content);
1197
1197
  }
1198
1198
  return null;
1199
- }, [e]), Gt = (e) => !!e && "type" in e && e.type === "nlq", Xr = (e) => !!e && "type" in e && e.type === "text", $r = (e, t) => {
1199
+ }, [e]), qt = (e) => !!e && "type" in e && e.type === "nlq", Xr = (e) => !!e && "type" in e && e.type === "text", $r = (e, t) => {
1200
1200
  const {
1201
1201
  t: a
1202
1202
  } = y(), {
@@ -1407,7 +1407,7 @@ function ui({
1407
1407
  } = k(), {
1408
1408
  t: s
1409
1409
  } = y(), g = d.length === 1;
1410
- return /* @__PURE__ */ i(bt, {
1410
+ return /* @__PURE__ */ i(ft, {
1411
1411
  open: je(n) && d.length > 0,
1412
1412
  anchorEl: o,
1413
1413
  placement: "top-start",
@@ -1607,7 +1607,7 @@ const yi = /* @__PURE__ */ u("div", {
1607
1607
  justify-content: flex-end;
1608
1608
  ` : L`
1609
1609
  justify-content: flex-start;
1610
- `), qt = /* @__PURE__ */ u("div", {
1610
+ `), Ht = /* @__PURE__ */ u("div", {
1611
1611
  target: "er3yjg61",
1612
1612
  label: "MessageContainer"
1613
1613
  })("font-size:inherit;line-height:inherit;padding-top:8.5px;padding-bottom:8.5px;padding-left:0.5rem;padding-right:0.5rem;white-space:pre-wrap;overflow-wrap:break-word;box-sizing:border-box;", ({
@@ -1637,7 +1637,7 @@ const yi = /* @__PURE__ */ u("div", {
1637
1637
  return /* @__PURE__ */ i(yi, {
1638
1638
  theme: a,
1639
1639
  align: e,
1640
- children: /* @__PURE__ */ i(qt, {
1640
+ children: /* @__PURE__ */ i(Ht, {
1641
1641
  theme: a,
1642
1642
  align: e,
1643
1643
  children: t
@@ -1665,7 +1665,7 @@ const Ci = /* @__PURE__ */ u("div", {
1665
1665
  target: "e1r5p4wy2",
1666
1666
  label: "ActionButton"
1667
1667
  })("color:rgba(54,163,217,1);cursor:pointer;");
1668
- function Ht({
1668
+ function Yt({
1669
1669
  text: e,
1670
1670
  action: t
1671
1671
  }) {
@@ -1676,7 +1676,7 @@ function Ht({
1676
1676
  children: [/* @__PURE__ */ i(vi, {
1677
1677
  theme: a,
1678
1678
  children: e
1679
- }), /* @__PURE__ */ i(fa, {}), t && /* @__PURE__ */ i(Mi, {
1679
+ }), /* @__PURE__ */ i(xa, {}), t && /* @__PURE__ */ i(Mi, {
1680
1680
  onClick: t.onClick,
1681
1681
  children: t.text
1682
1682
  })]
@@ -1686,7 +1686,7 @@ const me = /* @__PURE__ */ u("div", {
1686
1686
  target: "e3ryei50",
1687
1687
  label: "Dot"
1688
1688
  })("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%);}}");
1689
- function Yt() {
1689
+ function Pt() {
1690
1690
  const {
1691
1691
  themeSettings: e
1692
1692
  } = k(), t = e.aiChat.icons.color;
@@ -1825,10 +1825,10 @@ function Di({
1825
1825
  });
1826
1826
  }
1827
1827
  function Ai(e) {
1828
- return wa("MuiDialog", e);
1828
+ return ya("MuiDialog", e);
1829
1829
  }
1830
- const Ae = oa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Pt = /* @__PURE__ */ ke({});
1831
- process.env.NODE_ENV !== "production" && (Pt.displayName = "DialogContext");
1830
+ const Ae = oa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Bt = /* @__PURE__ */ ke({});
1831
+ process.env.NODE_ENV !== "production" && (Bt.displayName = "DialogContext");
1832
1832
  const Li = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], Ni = we(na, {
1833
1833
  name: "MuiDialog",
1834
1834
  slot: "Backdrop",
@@ -1891,7 +1891,7 @@ const Li = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
1891
1891
  height: "100%",
1892
1892
  width: "0"
1893
1893
  }
1894
- })), zi = we(ht, {
1894
+ })), zi = we(mt, {
1895
1895
  name: "MuiDialog",
1896
1896
  slot: "Paper",
1897
1897
  overridesResolver: (e, t) => {
@@ -1950,7 +1950,7 @@ const Li = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
1950
1950
  margin: 0,
1951
1951
  maxWidth: "100%"
1952
1952
  }
1953
- })), Bt = /* @__PURE__ */ mt(function(e, t) {
1953
+ })), Qt = /* @__PURE__ */ bt(function(e, t) {
1954
1954
  const a = da({
1955
1955
  props: e,
1956
1956
  name: "MuiDialog"
@@ -1972,7 +1972,7 @@ const Li = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
1972
1972
  onClick: M,
1973
1973
  onClose: S,
1974
1974
  open: E,
1975
- PaperComponent: C = ht,
1975
+ PaperComponent: C = mt,
1976
1976
  PaperProps: O = {},
1977
1977
  scroll: H = "paper",
1978
1978
  TransitionComponent: Z = ba,
@@ -2029,7 +2029,7 @@ const Li = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
2029
2029
  }, O, {
2030
2030
  className: Se($.paper, O.className),
2031
2031
  ownerState: Q,
2032
- children: /* @__PURE__ */ oe(Pt.Provider, {
2032
+ children: /* @__PURE__ */ oe(Bt.Provider, {
2033
2033
  value: j,
2034
2034
  children: s
2035
2035
  })
@@ -2038,7 +2038,7 @@ const Li = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
2038
2038
  }))
2039
2039
  }));
2040
2040
  });
2041
- process.env.NODE_ENV !== "production" && (Bt.propTypes = {
2041
+ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
2042
2042
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2043
2043
  // │ These PropTypes are generated from the TypeScript type definitions. │
2044
2044
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2194,7 +2194,7 @@ function Oi({
2194
2194
  })]
2195
2195
  });
2196
2196
  }
2197
- const Qt = {
2197
+ const Ut = {
2198
2198
  row: {
2199
2199
  hover: "rgba(224, 224, 224, 0.3)"
2200
2200
  },
@@ -2281,7 +2281,7 @@ const Qt = {
2281
2281
  }
2282
2282
  }, Zi = {
2283
2283
  shouldForwardProp: (e) => !e.startsWith("$")
2284
- }, pe = /* @__PURE__ */ u(yt, Zi, {
2284
+ }, pe = /* @__PURE__ */ u(_t, Zi, {
2285
2285
  target: "e869yoj0",
2286
2286
  label: "IconButton"
2287
2287
  })(({
@@ -2289,7 +2289,7 @@ const Qt = {
2289
2289
  }) => ({
2290
2290
  padding: 2,
2291
2291
  "&.MuiIconButton-root:hover": {
2292
- backgroundColor: e ?? Qt.interaction.defaultHover
2292
+ backgroundColor: e ?? Ut.interaction.defaultHover
2293
2293
  }
2294
2294
  }));
2295
2295
  function Ri({
@@ -2359,7 +2359,7 @@ function qi({
2359
2359
  })
2360
2360
  });
2361
2361
  }
2362
- const Fe = (e) => kt(e.chart.backgroundColor), Hi = ({
2362
+ const Fe = (e) => wt(e.chart.backgroundColor), Hi = ({
2363
2363
  title: e
2364
2364
  }) => {
2365
2365
  const {
@@ -2412,7 +2412,7 @@ const Fe = (e) => kt(e.chart.backgroundColor), Hi = ({
2412
2412
  sx: {
2413
2413
  fontSize: "13px",
2414
2414
  fontFamily: n.typography.fontFamily,
2415
- color: Qt.text.content
2415
+ color: Ut.text.content
2416
2416
  },
2417
2417
  disableRipple: !0,
2418
2418
  children: [l.icon, /* @__PURE__ */ i("div", {
@@ -2477,7 +2477,7 @@ function Ui({
2477
2477
  const l = Pe(e, {
2478
2478
  useCustomizedStyleOptions: !0
2479
2479
  });
2480
- if (l === void 0 || !ft(l))
2480
+ if (l === void 0 || !xt(l))
2481
2481
  throw new J("errors.otherWidgetTypesNotSupported");
2482
2482
  const {
2483
2483
  detailedDescription: d
@@ -2533,7 +2533,7 @@ function Ui({
2533
2533
  };
2534
2534
  }, [e]);
2535
2535
  return /* @__PURE__ */ h(N, {
2536
- children: [o, /* @__PURE__ */ h(Bt, {
2536
+ children: [o, /* @__PURE__ */ h(Qt, {
2537
2537
  open: t,
2538
2538
  onClose: () => a(!1),
2539
2539
  maxWidth: "xl",
@@ -2549,7 +2549,7 @@ function Ui({
2549
2549
  children: [/* @__PURE__ */ i("div", {
2550
2550
  className: "csdk-text-ai-lg csdk-semibold",
2551
2551
  children: e.queryTitle
2552
- }), /* @__PURE__ */ i(yt, {
2552
+ }), /* @__PURE__ */ i(_t, {
2553
2553
  onClick: () => a(!1),
2554
2554
  "aria-label": "close expanded chart",
2555
2555
  children: /* @__PURE__ */ i(Oi, {
@@ -2735,7 +2735,7 @@ function ao({
2735
2735
  } = Qe(e), {
2736
2736
  t: o
2737
2737
  } = y();
2738
- return a ? /* @__PURE__ */ i(Yt, {}) : r ? /* @__PURE__ */ i(P, {
2738
+ return a ? /* @__PURE__ */ i(Pt, {}) : r ? /* @__PURE__ */ i(P, {
2739
2739
  align: "left",
2740
2740
  children: o("ai.errors.unexpected")
2741
2741
  }) : /* @__PURE__ */ i(P, {
@@ -2818,7 +2818,7 @@ function lo({
2818
2818
  buttonVisibility: t ? "always" : "onHover",
2819
2819
  renderContent: (S) => /* @__PURE__ */ h(N, {
2820
2820
  children: [/* @__PURE__ */ h(st, {
2821
- children: [/* @__PURE__ */ i(qt, {
2821
+ children: [/* @__PURE__ */ i(Ht, {
2822
2822
  align: "left",
2823
2823
  theme: o,
2824
2824
  children: c || `Here's ${g} showing ${oo(n)}.`
@@ -2848,7 +2848,7 @@ function co({
2848
2848
  message: e,
2849
2849
  isLastMessage: t
2850
2850
  }) {
2851
- if (Gt(e)) {
2851
+ if (qt(e)) {
2852
2852
  const r = JSON.parse(e.content);
2853
2853
  return /* @__PURE__ */ i(lo, {
2854
2854
  data: r,
@@ -2875,7 +2875,7 @@ function go({
2875
2875
  t
2876
2876
  } = y();
2877
2877
  return /* @__PURE__ */ i(N, {
2878
- children: e.map((a, r) => /* @__PURE__ */ i(ya, {
2878
+ children: e.map((a, r) => /* @__PURE__ */ i(_a, {
2879
2879
  fallbackRender: (o) => po(A(v({}, o), {
2880
2880
  displayMessage: t("ai.errors.unexpected")
2881
2881
  })),
@@ -2886,7 +2886,7 @@ function go({
2886
2886
  }, r))
2887
2887
  });
2888
2888
  }
2889
- function Ut({
2889
+ function Ft({
2890
2890
  color: e
2891
2891
  }) {
2892
2892
  return /* @__PURE__ */ i("svg", {
@@ -2909,7 +2909,7 @@ function uo({
2909
2909
  "aria-label": "go back",
2910
2910
  className: "csdk-w-5 csdk-h-5 csdk-flex csdk-p-[4px] csdk-ml-[6px] csdk-cursor-pointer",
2911
2911
  onClick: e,
2912
- children: /* @__PURE__ */ i(Ut, {
2912
+ children: /* @__PURE__ */ i(Ft, {
2913
2913
  color: t
2914
2914
  })
2915
2915
  });
@@ -3059,7 +3059,7 @@ const yo = /* @__PURE__ */ u("div", {
3059
3059
  label: "ToolbarTitle"
3060
3060
  })("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({
3061
3061
  style: e
3062
- }) => e.textColor, ";"), Ft = /* @__PURE__ */ mt(function({
3062
+ }) => e.textColor, ";"), Vt = /* @__PURE__ */ bt(function({
3063
3063
  title: e,
3064
3064
  leftNav: t,
3065
3065
  rightNav: a,
@@ -3104,7 +3104,7 @@ const Mo = /* @__PURE__ */ u("div", {
3104
3104
  theme: e
3105
3105
  }) => e.aiChat.suggestions.textColor, ";background-color:", ({
3106
3106
  theme: e
3107
- }) => e.aiChat.suggestions.backgroundColor, ";"), Vt = () => {
3107
+ }) => e.aiChat.suggestions.backgroundColor, ";"), Jt = () => {
3108
3108
  const {
3109
3109
  t: e
3110
3110
  } = y(), {
@@ -3164,7 +3164,7 @@ const Io = (e, t) => {
3164
3164
  isVisible: e,
3165
3165
  onClick: t,
3166
3166
  anchorElement: a
3167
- }) => /* @__PURE__ */ i(bt, {
3167
+ }) => /* @__PURE__ */ i(ft, {
3168
3168
  anchorEl: a,
3169
3169
  open: e,
3170
3170
  placement: "top",
@@ -3237,9 +3237,9 @@ function Eo({
3237
3237
  } = $r(e, a), {
3238
3238
  mutate: B,
3239
3239
  isLoading: Ce
3240
- } = Wt(H), [ge, Q] = I(!1), [$, ae] = I(!1), ve = () => Q(!0), re = () => Q(!1), ie = () => {
3240
+ } = Gt(H), [ge, Q] = I(!1), [$, ae] = I(!1), ve = () => Q(!0), re = () => Q(!1), ie = () => {
3241
3241
  B(), re();
3242
- }, j = V(null), R = V(null), Kt = () => {
3242
+ }, j = V(null), R = V(null), ea = () => {
3243
3243
  if (!(j != null && j.current))
3244
3244
  return;
3245
3245
  const {
@@ -3255,25 +3255,25 @@ function Eo({
3255
3255
  be(() => {
3256
3256
  j.current && (j.current.scrollTop = j.current.scrollHeight);
3257
3257
  }, [M, ge, E]);
3258
- const ea = V(null), Je = c ? /* @__PURE__ */ i(Ft, {
3259
- ref: ea,
3258
+ const ta = V(null), Je = c ? /* @__PURE__ */ i(Vt, {
3259
+ ref: ta,
3260
3260
  title: e,
3261
3261
  leftNav: t && /* @__PURE__ */ i(uo, {
3262
3262
  onClick: t,
3263
3263
  color: p.aiChat.header.textColor
3264
3264
  }),
3265
- rightNav: /* @__PURE__ */ i(Vt, {}),
3265
+ rightNav: /* @__PURE__ */ i(Jt, {}),
3266
3266
  style: p.aiChat.header
3267
- }) : null, ta = T(() => [...new Set(M.filter((D) => D.role === "user").filter((D) => !(f != null && f.includes(D.content))).map((D) => D.content).reverse())].slice(0, s), [M, s, f]);
3267
+ }) : null, aa = T(() => [...new Set(M.filter((D) => D.role === "user").filter((D) => !(f != null && f.includes(D.content))).map((D) => D.content).reverse())].slice(0, s), [M, s, f]);
3268
3268
  return (Z == null ? void 0 : Z.message) === l("ai.errors.chatUnavailable") ? /* @__PURE__ */ h(N, {
3269
- children: [c && Je, /* @__PURE__ */ i(Ht, {
3269
+ children: [c && Je, /* @__PURE__ */ i(Yt, {
3270
3270
  text: Z.message
3271
3271
  })]
3272
3272
  }) : /* @__PURE__ */ h(N, {
3273
3273
  children: [Je, /* @__PURE__ */ h(No, {
3274
3274
  ref: j,
3275
3275
  theme: p,
3276
- onScroll: Kt,
3276
+ onScroll: ea,
3277
3277
  children: [/* @__PURE__ */ i(Lo, {
3278
3278
  isVisible: $,
3279
3279
  anchorElement: R.current,
@@ -3305,7 +3305,7 @@ function Eo({
3305
3305
  children: D
3306
3306
  })
3307
3307
  }, Y))
3308
- }), (E || Ce) && /* @__PURE__ */ i(Yt, {}), ge && /* @__PURE__ */ i(Di, {
3308
+ }), (E || Ce) && /* @__PURE__ */ i(Pt, {}), ge && /* @__PURE__ */ i(Di, {
3309
3309
  onCancel: re,
3310
3310
  onConfirm: ie
3311
3311
  })]
@@ -3317,7 +3317,7 @@ function Eo({
3317
3317
  disabled: E || O,
3318
3318
  onClearHistoryClick: ve,
3319
3319
  suggestions: f || [],
3320
- recentPrompts: ta,
3320
+ recentPrompts: aa,
3321
3321
  isLoading: x || O,
3322
3322
  recommendationsError: w,
3323
3323
  onChange: re
@@ -3348,7 +3348,7 @@ const zo = /* @__PURE__ */ u("button", {
3348
3348
  theme: e
3349
3349
  }) => e.aiChat.primaryFontSize[1], ";color:", ({
3350
3350
  theme: e
3351
- }) => kt(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"), Ro = /* @__PURE__ */ u("div", {
3351
+ }) => wt(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"), Ro = /* @__PURE__ */ u("div", {
3352
3352
  target: "e5a38pw3",
3353
3353
  label: "IconContainer"
3354
3354
  })("width:16px;height:16px;transform:rotate(180deg);");
@@ -3372,7 +3372,7 @@ function Wo(e) {
3372
3372
  children: a
3373
3373
  })]
3374
3374
  }), /* @__PURE__ */ i(Ro, {
3375
- children: /* @__PURE__ */ i(Ut, {
3375
+ children: /* @__PURE__ */ i(Ft, {
3376
3376
  color: o.aiChat.icons.color
3377
3377
  })
3378
3378
  })]
@@ -3407,7 +3407,7 @@ function Yo(e) {
3407
3407
  }), /* @__PURE__ */ h(Ho, {
3408
3408
  theme: a,
3409
3409
  children: [r("ai.chatbotDescription"), /* @__PURE__ */ i("br", {}), /* @__PURE__ */ i("br", {}), r("ai.topicSelectPrompt")]
3410
- }), t.map((o) => /* @__PURE__ */ _a(Wo, A(v({}, o), {
3410
+ }), t.map((o) => /* @__PURE__ */ Ca(Wo, A(v({}, o), {
3411
3411
  key: o.title
3412
3412
  })))]
3413
3413
  });
@@ -3496,16 +3496,16 @@ function Vo({
3496
3496
  } = y(), n = T(() => e == null ? void 0 : e.map((d) => ({
3497
3497
  title: d,
3498
3498
  onClick: () => t(d)
3499
- })), [e, t]), l = xa(ka(r.aiChat.header.backgroundColor)) > 0.5;
3499
+ })), [e, t]), l = ka(wa(r.aiChat.header.backgroundColor)) > 0.5;
3500
3500
  return /* @__PURE__ */ h(N, {
3501
- children: [a ? /* @__PURE__ */ i(Ft, {
3501
+ children: [a ? /* @__PURE__ */ i(Vt, {
3502
3502
  title: o("ai.analyticsChatbot"),
3503
3503
  leftNav: /* @__PURE__ */ i(Uo, {
3504
3504
  children: /* @__PURE__ */ i(Qo, {
3505
3505
  isDarkBackground: l
3506
3506
  })
3507
3507
  }),
3508
- rightNav: /* @__PURE__ */ i(Vt, {}),
3508
+ rightNav: /* @__PURE__ */ i(Jt, {}),
3509
3509
  style: r.aiChat.header
3510
3510
  }) : null, /* @__PURE__ */ h(Fo, {
3511
3511
  theme: r,
@@ -3535,7 +3535,7 @@ function Jo() {
3535
3535
  }, [o, n, l, g]), m = de(), x = _(() => {
3536
3536
  r(void 0), m.invalidateQueries(["getDataTopics"]);
3537
3537
  }, [m]);
3538
- return a ? /* @__PURE__ */ i(Ht, {
3538
+ return a ? /* @__PURE__ */ i(Yt, {
3539
3539
  text: a,
3540
3540
  action: {
3541
3541
  text: c("ai.buttons.refresh"),
@@ -3609,7 +3609,7 @@ Ze({
3609
3609
  text: a ? "Loading..." : n
3610
3610
  });
3611
3611
  });
3612
- const Ko = new ut({
3612
+ const Ko = new ht({
3613
3613
  defaultOptions: {
3614
3614
  queries: {
3615
3615
  refetchOnWindowFocus: !1,
@@ -3622,9 +3622,9 @@ function en({
3622
3622
  context: t
3623
3623
  }) {
3624
3624
  return /* @__PURE__ */ i(Zr, {
3625
- children: /* @__PURE__ */ i(Et.Provider, {
3625
+ children: /* @__PURE__ */ i(zt.Provider, {
3626
3626
  value: t == null ? void 0 : t.api,
3627
- children: /* @__PURE__ */ i(Ca, {
3627
+ children: /* @__PURE__ */ i(fa, {
3628
3628
  client: Ko,
3629
3629
  children: e
3630
3630
  })
@@ -3641,17 +3641,13 @@ function en({
3641
3641
  console.error("vite-plugin-css-injected-by-js", t);
3642
3642
  }
3643
3643
  })();
3644
- const Jt = {
3644
+ const Xt = {
3645
3645
  api: void 0
3646
- }, Xt = Symbol("aiContextKey"), _e = () => ia(Xt, gt(Jt)), $t = () => {
3647
- const e = _e();
3648
- return {
3649
- prepareContext() {
3650
- return e.value;
3651
- },
3652
- renderContextProvider: Qa(en)
3653
- };
3654
- }, rn = Ee({
3646
+ }, $t = Symbol("aiContextKey"), _e = () => ra(
3647
+ $t,
3648
+ () => gt(Xt),
3649
+ !0
3650
+ ), rn = Ee({
3655
3651
  props: {
3656
3652
  /**
3657
3653
  * {@inheritDoc @sisense/sdk-ui!AiContextProviderProps.volatile}
@@ -3659,20 +3655,32 @@ const Jt = {
3659
3655
  volatile: Boolean
3660
3656
  },
3661
3657
  setup(e, { slots: t }) {
3662
- const a = Ba(), r = gt(Jt), { app: o } = a.value;
3658
+ const a = Ba(), r = gt(Xt), { app: o } = a.value;
3663
3659
  return o && (r.value = {
3664
3660
  api: new lt(o.httpClient, e.volatile)
3665
- }), aa(async () => {
3661
+ }), ut(async () => {
3666
3662
  const { app: n } = a.value;
3667
3663
  n && (r.value = {
3668
3664
  api: new lt(n.httpClient, e.volatile)
3669
3665
  });
3670
- }), ra(Xt, r), () => {
3666
+ }), ia($t, r), () => {
3671
3667
  var n;
3672
3668
  return (n = t.default) == null ? void 0 : n.call(t);
3673
3669
  };
3674
3670
  }
3675
- }), on = Ee({
3671
+ }), Kt = () => {
3672
+ const e = _e(), t = new Qa({
3673
+ context: e.value
3674
+ });
3675
+ return ut(() => {
3676
+ t.setValue({
3677
+ context: e.value
3678
+ });
3679
+ }), {
3680
+ propsObserver: t,
3681
+ providerComponent: en
3682
+ };
3683
+ }, on = Ee({
3676
3684
  props: {
3677
3685
  /**
3678
3686
  * {@inheritDoc @sisense/sdk-ui!ChatbotProps.width}
@@ -3687,9 +3695,9 @@ const Jt = {
3687
3695
  */
3688
3696
  config: Object
3689
3697
  },
3690
- setup: (e) => Ct(Xo, e, () => [
3691
- ...vt(),
3692
- $t()
3698
+ setup: (e) => vt(Xo, e, [
3699
+ ...Mt(),
3700
+ Kt()
3693
3701
  ])
3694
3702
  }), nn = Ee({
3695
3703
  props: {
@@ -3714,9 +3722,9 @@ const Jt = {
3714
3722
  */
3715
3723
  verbosity: String
3716
3724
  },
3717
- setup: (e) => Ct($o, e, () => [
3718
- ...vt(),
3719
- $t()
3725
+ setup: (e) => vt($o, e, [
3726
+ ...Mt(),
3727
+ Kt()
3720
3728
  ])
3721
3729
  }), ln = (e) => {
3722
3730
  We("useGetNlgInsights");
@@ -3731,7 +3739,7 @@ const Jt = {
3731
3739
  var d;
3732
3740
  try {
3733
3741
  a({ type: "loading" });
3734
- const c = Ot(te(e)), s = await (l == null ? void 0 : l.ai.getNlgInsights(c));
3742
+ const c = Zt(te(e)), s = await (l == null ? void 0 : l.ai.getNlgInsights(c));
3735
3743
  a({ type: "success", data: (d = s == null ? void 0 : s.data) == null ? void 0 : d.answer });
3736
3744
  } catch (c) {
3737
3745
  a({ type: "error", error: c });
@@ -3768,7 +3776,7 @@ const Jt = {
3768
3776
  numOfRecommendations: g
3769
3777
  })), m = (p == null ? void 0 : p.map((x) => ({
3770
3778
  ...x,
3771
- widgetProps: jt.toWidgetProps(x, {
3779
+ widgetProps: Et.toWidgetProps(x, {
3772
3780
  useCustomizedStyleOptions: s
3773
3781
  })
3774
3782
  }))) || [];
@@ -3804,7 +3812,7 @@ const Jt = {
3804
3812
  }), r = _e(), o = async (l) => {
3805
3813
  try {
3806
3814
  a({ type: "loading" });
3807
- const d = te(e), { enableAxisTitlesInWidgetProps: c } = d, { contextTitle: s, request: g } = Wr(d), p = await (l == null ? void 0 : l.ai.getNlqResult(s, g)), m = p ? jt.toWidgetProps(p, {
3815
+ const d = te(e), { enableAxisTitlesInWidgetProps: c } = d, { contextTitle: s, request: g } = Wr(d), p = await (l == null ? void 0 : l.ai.getNlqResult(s, g)), m = p ? Et.toWidgetProps(p, {
3808
3816
  useCustomizedStyleOptions: c || !1
3809
3817
  }) : void 0;
3810
3818
  a({ type: "success", data: m });