@sisense/sdk-ui-vue 2.5.0 → 2.6.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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { inject as la, ref as Ut, defineComponent as lt, watchEffect as Qt, provide as da, watch as dt, toRefs as st } from "vue";
2
- import { aC as Ft, aD as Ge, aE as sa, aF as qe, aG as ca, aH as pa, aI as he, aJ as Vt, aK as ua, aL as f, aM as $t, aN as D, aO as n, aP as O, aQ as U, aR as Ue, aS as Q, aT as Se, aU as T, aV as Jt, aW as ga, aX as ha, aY as ce, aZ as ma, a_ as xe, a$ as Qe, b0 as ke, b1 as ct, b2 as ba, b3 as fa, b4 as xa, b5 as C, b6 as P, b7 as ka, b8 as wt, b9 as R, ba as Re, bb as v, bc as Me, bd as ya, be as wa, bf as _a, bg as Ca, bh as Ie, bi as Ce, bj as va, bk as Sa, bl as Xt, bm as Ma, bn as Ia, bo as Da, bp as Aa, bq as Kt, br as La, bs as Ta, bt as Na, bu as ja, bv as Oa, bw as er, bx as Ea, by as za, bz as Za, bA as _t, bB as Ra, bC as Wa, bD as Pa, bE as Ga, bF as tr, bG as _e, bH as rr, bI as et, bJ as qa, bK as Fe, bL as Ha, bM as Ba, bN as Ya, bO as Ua, bP as Qa, bQ as Fa, bR as Va, bS as $a, ao as Ne, bT as ar, bU as Ja, bV as Xa, bW as Ka, bX as ir, bY as or, bZ as ei, b_ as ti, b$ as ri, M as ai, c0 as ii, a as nr, c1 as lr, N as pt, L as ut, O as gt, R as me, a4 as ht } from "./use-tracking-22a9105d.js";
1
+ import { inject as la, ref as Qt, defineComponent as lt, watchEffect as Ut, provide as da, watch as dt, toRefs as st } from "vue";
2
+ import { aC as Ft, aD as Ge, aE as sa, aF as qe, aG as ca, aH as pa, aI as he, aJ as Vt, aK as ua, aL as f, aM as $t, aN as D, aO as n, aP as O, aQ as Q, aR as Qe, aS as U, aT as Se, aU as T, aV as Xt, aW as ga, aX as ha, aY as ce, aZ as ma, a_ as xe, a$ as Ue, b0 as ke, b1 as ct, b2 as ba, b3 as fa, b4 as xa, b5 as C, b6 as P, b7 as ka, b8 as wt, b9 as R, ba as Re, bb as v, bc as Me, bd as ya, be as wa, bf as _a, bg as Ca, bh as Ie, bi as Ce, bj as va, bk as Sa, bl as Jt, bm as Ma, bn as Ia, bo as Da, bp as Aa, bq as Kt, br as La, bs as Ta, bt as Na, bu as ja, bv as Oa, bw as er, bx as Ea, by as za, bz as Za, bA as _t, bB as Ra, bC as Wa, bD as Pa, bE as Ga, bF as tr, bG as _e, bH as rr, bI as et, bJ as qa, bK as Fe, bL as Ha, bM as Ba, bN as Ya, bO as Qa, bP as Ua, bQ as Fa, bR as Va, bS as $a, ao as Ne, bT as ar, bU as Xa, bV as Ja, bW as Ka, bX as ir, bY as or, bZ as ei, b_ as ti, b$ as ri, L as ai, c0 as ii, a as nr, c1 as lr, M as pt, K as ut, N as gt, P as me, a4 as ht } from "./use-tracking-354e67c5.js";
3
3
  var oi = Object.defineProperty, ni = Object.defineProperties, li = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? oi(e, t, {
4
4
  enumerable: !0,
5
5
  configurable: !0,
@@ -16,7 +16,7 @@ var oi = Object.defineProperty, ni = Object.defineProperties, li = Object.getOwn
16
16
  let dr = class extends rr {
17
17
  constructor(e, t) {
18
18
  var r;
19
- super((r = e.jaql.title) !== null && r !== void 0 ? r : "", 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 = Ya(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
19
+ 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 = Ya(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
20
20
  }
21
21
  get id() {
22
22
  return this.expression;
@@ -29,13 +29,13 @@ let dr = class extends rr {
29
29
  */
30
30
  serialize() {
31
31
  const e = super.serialize();
32
- return e.__serializable = "JaqlElement", e.metadataItem = this.metadataItem, e.type = this.type, e;
32
+ return e.metadataItem = this.metadataItem, e.type = this.type, e;
33
33
  }
34
34
  };
35
35
  const ci = {
36
- text: Ue.TextAttribute,
37
- numeric: Ue.NumericAttribute,
38
- datetime: Ue.DateLevel
36
+ text: Qe.TextAttribute,
37
+ numeric: Qe.NumericAttribute,
38
+ datetime: Qe.DateLevel
39
39
  };
40
40
  function pi(e) {
41
41
  var t;
@@ -46,8 +46,8 @@ function sr(e) {
46
46
  jaql: t
47
47
  } = e;
48
48
  if (t.formula)
49
- return Ua(t);
50
- const r = Qa.translateJaqlToGranularity(t);
49
+ return Qa(t);
50
+ const r = Ua.translateJaqlToGranularity(t);
51
51
  return "agg" in t && t.dim && t.datatype ? Fa({
52
52
  expression: t.dim,
53
53
  dataType: t.datatype,
@@ -88,10 +88,10 @@ function ge(e) {
88
88
  return "column" in e && ((t = e.column) == null ? void 0 : t.expression) && /\(.*\)/.test(e.column.expression);
89
89
  }
90
90
  function St(e) {
91
- const t = "measures" in e && J(e.measures) || "values" in e && J(e.values);
92
- return mi(e) ? "values" in e.dataOptions && J(e.dataOptions.values) : "chartType" in e ? e.chartType === "indicator" ? "value" in e.dataOptions && J(e.dataOptions.value) || "secondary" in e.dataOptions && J(e.dataOptions.secondary) : e.chartType === "table" ? !("columns" in e.dataOptions) || !J(e.dataOptions.columns) ? !1 : e.dataOptions.columns.some((r) => ge(r)) : e.chartType === "boxplot" ? !1 : e.chartType === "scatter" ? "x" in e.dataOptions && e.dataOptions.x !== void 0 && ge(e.dataOptions.x) || "y" in e.dataOptions && e.dataOptions.y !== void 0 && ge(e.dataOptions.y) || "size" in e.dataOptions && e.dataOptions.size !== void 0 : e.chartType === "scattermap" ? "colorBy" in e.dataOptions && e.dataOptions.colorBy !== void 0 && ge(e.dataOptions.colorBy) || "details" in e.dataOptions && e.dataOptions.details !== void 0 && ge(e.dataOptions.details) || "size" in e.dataOptions && e.dataOptions.size !== void 0 && ge(e.dataOptions.size) : e.chartType === "areamap" ? "geo" in e.dataOptions && J(e.dataOptions.geo) && "color" in e.dataOptions && J(e.dataOptions.color) : "value" in e.dataOptions && J(e.dataOptions.value) : t;
91
+ const t = "measures" in e && X(e.measures) || "values" in e && X(e.values);
92
+ return mi(e) ? "values" in e.dataOptions && X(e.dataOptions.values) : "chartType" in e ? e.chartType === "indicator" ? "value" in e.dataOptions && X(e.dataOptions.value) || "secondary" in e.dataOptions && X(e.dataOptions.secondary) : e.chartType === "table" ? !("columns" in e.dataOptions) || !X(e.dataOptions.columns) ? !1 : e.dataOptions.columns.some((r) => ge(r)) : e.chartType === "boxplot" ? !1 : e.chartType === "scatter" ? "x" in e.dataOptions && e.dataOptions.x !== void 0 && ge(e.dataOptions.x) || "y" in e.dataOptions && e.dataOptions.y !== void 0 && ge(e.dataOptions.y) || "size" in e.dataOptions && e.dataOptions.size !== void 0 : e.chartType === "scattermap" ? "colorBy" in e.dataOptions && e.dataOptions.colorBy !== void 0 && ge(e.dataOptions.colorBy) || "details" in e.dataOptions && e.dataOptions.details !== void 0 && ge(e.dataOptions.details) || "size" in e.dataOptions && e.dataOptions.size !== void 0 && ge(e.dataOptions.size) : e.chartType === "areamap" ? "geo" in e.dataOptions && X(e.dataOptions.geo) && "color" in e.dataOptions && X(e.dataOptions.color) : "value" in e.dataOptions && X(e.dataOptions.value) : t;
93
93
  }
94
- function J(e) {
94
+ function X(e) {
95
95
  return Array.isArray(e) && e.length > 0;
96
96
  }
97
97
  function bi(e) {
@@ -703,7 +703,7 @@ function Mt(e, t = "data-source-placeholder") {
703
703
  }
704
704
  function It(e, t = !0) {
705
705
  const r = [];
706
- return t && r.push("measureFactory"), J(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
706
+ return t && r.push("measureFactory"), X(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
707
707
  }
708
708
  const Dt = `
709
709
  `, Ii = (e, t) => {
@@ -963,7 +963,7 @@ const Dt = `
963
963
  }, Symbol.toStringTag, {
964
964
  value: "Module"
965
965
  }));
966
- var Ui = Object.defineProperty, Qi = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, We = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Ui(e, t, {
966
+ var Qi = Object.defineProperty, Ui = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, We = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Qi(e, t, {
967
967
  enumerable: !0,
968
968
  configurable: !0,
969
969
  writable: !0,
@@ -975,7 +975,7 @@ var Ui = Object.defineProperty, Qi = Object.defineProperties, Fi = Object.getOwn
975
975
  for (var r of We(t))
976
976
  mr.call(t, r) && Nt(e, r, t[r]);
977
977
  return e;
978
- }, j = (e, t) => Qi(e, Fi(t)), Vi = (e, t) => {
978
+ }, j = (e, t) => Ui(e, Fi(t)), Vi = (e, t) => {
979
979
  var r = {};
980
980
  for (var a in e)
981
981
  hr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
@@ -1079,7 +1079,7 @@ function bt(e, t, r) {
1079
1079
  l.setOptions(a);
1080
1080
  }, [l, a]);
1081
1081
  const d = Aa(T((c) => l.subscribe(Kt.batchCalls(c)), [l]), () => l.getCurrentResult(), () => l.getCurrentResult()), p = T((c, g) => {
1082
- l.mutate(c, g).catch(Ji);
1082
+ l.mutate(c, g).catch(Xi);
1083
1083
  }, [l]);
1084
1084
  if (d.error && La(l.options.useErrorBoundary, [d.error]))
1085
1085
  throw d.error;
@@ -1088,7 +1088,7 @@ function bt(e, t, r) {
1088
1088
  mutateAsync: d.mutate
1089
1089
  });
1090
1090
  }
1091
- function Ji() {
1091
+ function Xi() {
1092
1092
  }
1093
1093
  class jt {
1094
1094
  constructor(t, r = !1) {
@@ -1126,7 +1126,7 @@ new Ft({
1126
1126
  }
1127
1127
  }
1128
1128
  });
1129
- const br = /* @__PURE__ */ Ge(void 0), te = () => ct(br), fr = /* @__PURE__ */ Ge({}), Xi = () => ct(fr), Ki = ({
1129
+ const br = /* @__PURE__ */ Ge(void 0), te = () => ct(br), fr = /* @__PURE__ */ Ge({}), Ji = () => ct(fr), Ki = ({
1130
1130
  children: e
1131
1131
  }) => {
1132
1132
  const [t, r] = R({}), a = T((d, p) => {
@@ -1174,7 +1174,7 @@ function xr(e) {
1174
1174
  }
1175
1175
  }
1176
1176
  const kr = (e, t = !0) => {
1177
- const r = Q(() => xr(e), [e]), a = te(), {
1177
+ const r = U(() => xr(e), [e]), a = te(), {
1178
1178
  data: i,
1179
1179
  error: l,
1180
1180
  isError: d,
@@ -1236,7 +1236,7 @@ const at = 4, ro = (e) => {
1236
1236
  numOfRecommendations: d
1237
1237
  }),
1238
1238
  enabled: !!l && p
1239
- }), s = Q(() => b == null ? void 0 : b.map((h) => j(I({}, h), {
1239
+ }), s = U(() => b == null ? void 0 : b.map((h) => j(I({}, h), {
1240
1240
  widgetProps: h.jaql ? mt(h, {
1241
1241
  useCustomizedStyleOptions: a
1242
1242
  }) : void 0
@@ -1424,7 +1424,7 @@ const at = 4, ro = (e) => {
1424
1424
  const {
1425
1425
  data: i,
1426
1426
  isLoading: l
1427
- } = lo(), d = Xi(), p = d.getChatId(e, t) || ((a = i.find((b) => {
1427
+ } = lo(), d = Ji(), p = d.getChatId(e, t) || ((a = i.find((b) => {
1428
1428
  var o;
1429
1429
  return b.contextTitle === e && ((o = b.contextDetails) == null ? void 0 : o.dashboardId) === (t == null ? void 0 : t.dashboardId);
1430
1430
  })) == null ? void 0 : a.chatId), {
@@ -1439,7 +1439,7 @@ const at = 4, ro = (e) => {
1439
1439
  isLoading: l,
1440
1440
  isError: c
1441
1441
  };
1442
- }, go = (e) => Q(() => {
1442
+ }, go = (e) => U(() => {
1443
1443
  if (e != null && e.length) {
1444
1444
  const t = e[e.length - 1];
1445
1445
  if (Cr(t))
@@ -1657,7 +1657,7 @@ function Lo({
1657
1657
  } = D(), {
1658
1658
  t: g
1659
1659
  } = O(), x = p.length === 1;
1660
- return /* @__PURE__ */ n(Xt, {
1660
+ return /* @__PURE__ */ n(Jt, {
1661
1661
  open: it(l) && p.length > 0,
1662
1662
  anchorEl: i,
1663
1663
  placement: "top-start",
@@ -1908,7 +1908,7 @@ const zt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
1908
1908
  lt: "<",
1909
1909
  nbsp: " ",
1910
1910
  quot: "“"
1911
- }, Wo = ["style", "script"], Po = ["src", "href", "data", "formAction", "srcDoc", "action"], Go = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, qo = /mailto:/i, Ho = /\n{2,}$/, vr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Bo = /^ *> ?/gm, Yo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Uo = /^ {2,}\n/, Qo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Sr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Mr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Fo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Vo = /^(?:\n *)*\n/, $o = /\r\n?/g, Jo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Xo = /^\[\^([^\]]+)]/, Ko = /\f/g, en = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, tn = /^\s*?\[(x|\s)\]/, Ir = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Dr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ar = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ot = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, rn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Lr = /^<!--[\s\S]*?(?:-->)/, an = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, nt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, on = /^\{.*\}$/, nn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ln = /^<([^ >]+@[^ >]+)>/, dn = /^<([^ >]+:\/[^ >]+)>/, sn = /-([a-z])?/gi, Tr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, cn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, pn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, un = /^\[([^\]]*)\] ?\[([^\]]*)\]/, gn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, hn = /\t/g, mn = /(^ *\||\| *$)/g, bn = /^ *:-+: *$/, fn = /^ *:-+ *$/, xn = /^ *-+: *$/, Be = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", kn = new RegExp(`^([*_])\\1${Be}\\1\\1(?!\\1)`), yn = new RegExp(`^([*_])${Be}\\1(?!\\1)`), wn = new RegExp(`^(==)${Be}\\1`), _n = new RegExp(`^(~~)${Be}\\1`), Cn = /^\\([^0-9A-Za-z\s])/, Rt = /\\([^0-9A-Za-z\s])/g, vn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Sn = /^\n+/, Mn = /^([ \t]*)/, In = /\\([^\\])/g, Dn = /(?:^|\n)( *)$/, xt = "(?:\\d+\\.)", kt = "(?:[*+-])";
1911
+ }, Wo = ["style", "script"], Po = ["src", "href", "data", "formAction", "srcDoc", "action"], Go = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, qo = /mailto:/i, Ho = /\n{2,}$/, vr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Bo = /^ *> ?/gm, Yo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Qo = /^ {2,}\n/, Uo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Sr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Mr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Fo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Vo = /^(?:\n *)*\n/, $o = /\r\n?/g, Xo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Jo = /^\[\^([^\]]+)]/, Ko = /\f/g, en = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, tn = /^\s*?\[(x|\s)\]/, Ir = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Dr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ar = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ot = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, rn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Lr = /^<!--[\s\S]*?(?:-->)/, an = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, nt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, on = /^\{.*\}$/, nn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ln = /^<([^ >]+@[^ >]+)>/, dn = /^<([^ >]+:\/[^ >]+)>/, sn = /-([a-z])?/gi, Tr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, cn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, pn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, un = /^\[([^\]]*)\] ?\[([^\]]*)\]/, gn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, hn = /\t/g, mn = /(^ *\||\| *$)/g, bn = /^ *:-+: *$/, fn = /^ *:-+ *$/, xn = /^ *-+: *$/, Be = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", kn = new RegExp(`^([*_])\\1${Be}\\1\\1(?!\\1)`), yn = new RegExp(`^([*_])${Be}\\1(?!\\1)`), wn = new RegExp(`^(==)${Be}\\1`), _n = new RegExp(`^(~~)${Be}\\1`), Cn = /^\\([^0-9A-Za-z\s])/, Rt = /\\([^0-9A-Za-z\s])/g, vn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Sn = /^\n+/, Mn = /^([ \t]*)/, In = /\\([^\\])/g, Dn = /(?:^|\n)( *)$/, xt = "(?:\\d+\\.)", kt = "(?:[*+-])";
1912
1912
  function Nr(e) {
1913
1913
  return "( *)(" + (e === 1 ? xt : kt) + ") +";
1914
1914
  }
@@ -2087,13 +2087,13 @@ const Ve = (e, t, r) => ({
2087
2087
  function $e() {
2088
2088
  return {};
2089
2089
  }
2090
- function Je() {
2090
+ function Xe() {
2091
2091
  return null;
2092
2092
  }
2093
2093
  function Hn(...e) {
2094
2094
  return e.filter(Boolean).join(" ");
2095
2095
  }
2096
- function Xe(e, t, r) {
2096
+ function Je(e, t, r) {
2097
2097
  let a = e;
2098
2098
  const i = t.split(".");
2099
2099
  for (; i.length && (a = a[i[0]], a !== void 0); )
@@ -2102,10 +2102,10 @@ function Xe(e, t, r) {
2102
2102
  }
2103
2103
  function Bn(e = "", t = {}) {
2104
2104
  function r(o, u, ...s) {
2105
- const h = Xe(t.overrides, `${o}.props`, {});
2105
+ const h = Je(t.overrides, `${o}.props`, {});
2106
2106
  return t.createElement(function(m, w) {
2107
- const _ = Xe(w, m);
2108
- return _ ? typeof _ == "function" || typeof _ == "object" && "render" in _ ? _ : Xe(w, `${m}.component`, m) : m;
2107
+ const _ = Je(w, m);
2108
+ return _ ? typeof _ == "function" || typeof _ == "object" && "render" in _ ? _ : Je(w, `${m}.component`, m) : m;
2109
2109
  }(o, t.overrides), se({}, u, h, {
2110
2110
  className: Hn(u == null ? void 0 : u.className, h.className) || void 0
2111
2111
  }), ...s);
@@ -2156,12 +2156,12 @@ function Bn(e = "", t = {}) {
2156
2156
  const A = h[M] = function(S, L, z, de) {
2157
2157
  return L === "style" ? function(F) {
2158
2158
  const H = [];
2159
- let V = "", $ = !1, W = !1, X = "";
2159
+ let V = "", $ = !1, W = !1, J = "";
2160
2160
  if (!F)
2161
2161
  return H;
2162
2162
  for (let B = 0; B < F.length; B++) {
2163
2163
  const G = F[B];
2164
- if (G !== '"' && G !== "'" || $ || (W ? G === X && (W = !1, X = "") : (W = !0, X = G)), G === "(" && V.endsWith("url") ? $ = !0 : G === ")" && $ && ($ = !1), G !== ";" || W || $)
2164
+ if (G !== '"' && G !== "'" || $ || (W ? G === J && (W = !1, J = "") : (W = !0, J = G)), G === "(" && V.endsWith("url") ? $ = !0 : G === ")" && $ && ($ = !1), G !== ";" || W || $)
2165
2165
  V += G;
2166
2166
  else {
2167
2167
  const Y = V.trim();
@@ -2223,7 +2223,7 @@ function Bn(e = "", t = {}) {
2223
2223
  }
2224
2224
  },
2225
2225
  [k.breakLine]: {
2226
- match: we(Uo),
2226
+ match: we(Qo),
2227
2227
  order: 1,
2228
2228
  parse: $e,
2229
2229
  render: (o, u, s) => r("br", {
@@ -2231,7 +2231,7 @@ function Bn(e = "", t = {}) {
2231
2231
  })
2232
2232
  },
2233
2233
  [k.breakThematic]: {
2234
- match: K(Qo),
2234
+ match: K(Uo),
2235
2235
  order: 1,
2236
2236
  parse: $e,
2237
2237
  render: (o, u, s) => r("hr", {
@@ -2272,16 +2272,16 @@ function Bn(e = "", t = {}) {
2272
2272
  }, o.text)
2273
2273
  },
2274
2274
  [k.footnote]: {
2275
- match: K(Jo),
2275
+ match: K(Xo),
2276
2276
  order: 0,
2277
2277
  parse: (o) => (l.push({
2278
2278
  footnote: o[2],
2279
2279
  identifier: o[1]
2280
2280
  }), {}),
2281
- render: Je
2281
+ render: Xe
2282
2282
  },
2283
2283
  [k.footnoteReference]: {
2284
- match: ie(Xo),
2284
+ match: ie(Jo),
2285
2285
  order: 1,
2286
2286
  parse: (o) => ({
2287
2287
  target: `#${t.slugify(o[1], ye)}`,
@@ -2364,7 +2364,7 @@ function Bn(e = "", t = {}) {
2364
2364
  match: we(Lr),
2365
2365
  order: 1,
2366
2366
  parse: () => ({}),
2367
- render: Je
2367
+ render: Xe
2368
2368
  },
2369
2369
  [k.image]: {
2370
2370
  match: oe(On),
@@ -2459,7 +2459,7 @@ function Bn(e = "", t = {}) {
2459
2459
  target: o[2],
2460
2460
  title: o[4]
2461
2461
  }, {}),
2462
- render: Je
2462
+ render: Xe
2463
2463
  },
2464
2464
  [k.refImage]: {
2465
2465
  match: oe(pn),
@@ -2644,7 +2644,7 @@ const Yn = (e) => {
2644
2644
  return c;
2645
2645
  }(e, Ro);
2646
2646
  return Na(Bn(t, r), a);
2647
- }, Un = /* @__PURE__ */ C("div", {
2647
+ }, Qn = /* @__PURE__ */ C("div", {
2648
2648
  target: "e1vkf9b40",
2649
2649
  label: "FlexContainer"
2650
2650
  })("display:flex;", ({
@@ -2680,7 +2680,7 @@ const Yn = (e) => {
2680
2680
  const {
2681
2681
  themeSettings: r
2682
2682
  } = D();
2683
- return /* @__PURE__ */ n(Un, {
2683
+ return /* @__PURE__ */ n(Qn, {
2684
2684
  theme: r,
2685
2685
  align: e,
2686
2686
  children: /* @__PURE__ */ n(Gr, {
@@ -2692,7 +2692,7 @@ const Yn = (e) => {
2692
2692
  })
2693
2693
  });
2694
2694
  };
2695
- function Qn() {
2695
+ function Un() {
2696
2696
  const {
2697
2697
  welcomeText: e
2698
2698
  } = re();
@@ -2752,7 +2752,7 @@ function Hr() {
2752
2752
  })]
2753
2753
  });
2754
2754
  }
2755
- const Jn = /* @__PURE__ */ C("div", {
2755
+ const Xn = /* @__PURE__ */ C("div", {
2756
2756
  target: "ed5z2fc0",
2757
2757
  label: "FlexContainer"
2758
2758
  })("display:flex;", ({
@@ -2761,7 +2761,7 @@ const Jn = /* @__PURE__ */ C("div", {
2761
2761
  justify-content: flex-end;
2762
2762
  ` : P`
2763
2763
  justify-content: flex-start;
2764
- `), Xn = /* @__PURE__ */ C("button", {
2764
+ `), Jn = /* @__PURE__ */ C("button", {
2765
2765
  target: "ed5z2fc1",
2766
2766
  label: "MessageButton"
2767
2767
  })("font-family:inherit;font-size:inherit;line-height:inherit;border:", ({
@@ -2826,9 +2826,9 @@ function Pe({
2826
2826
  const {
2827
2827
  themeSettings: d
2828
2828
  } = D();
2829
- return /* @__PURE__ */ n(Jn, {
2829
+ return /* @__PURE__ */ n(Xn, {
2830
2830
  align: t,
2831
- children: /* @__PURE__ */ n(Xn, {
2831
+ children: /* @__PURE__ */ n(Jn, {
2832
2832
  "aria-label": l,
2833
2833
  theme: d,
2834
2834
  onClick: r,
@@ -2846,7 +2846,7 @@ function Kn({
2846
2846
  const {
2847
2847
  t: r
2848
2848
  } = O();
2849
- return /* @__PURE__ */ v(U, {
2849
+ return /* @__PURE__ */ v(Q, {
2850
2850
  children: [/* @__PURE__ */ n(le, {
2851
2851
  align: "left",
2852
2852
  children: r("ai.clearHistoryPrompt")
@@ -3040,7 +3040,7 @@ const tl = qe(ca, {
3040
3040
  }
3041
3041
  }
3042
3042
  }]
3043
- }))), Yr = /* @__PURE__ */ Jt(function(e, t) {
3043
+ }))), Yr = /* @__PURE__ */ Xt(function(e, t) {
3044
3044
  const r = ga({
3045
3045
  props: e,
3046
3046
  name: "MuiDialog"
@@ -3077,11 +3077,11 @@ const tl = qe(ca, {
3077
3077
  fullWidth: h,
3078
3078
  maxWidth: m,
3079
3079
  scroll: L
3080
- }), X = rl(W), E = ce(), B = (ue) => {
3080
+ }), J = rl(W), E = ce(), B = (ue) => {
3081
3081
  E.current = ue.target === ue.currentTarget;
3082
3082
  }, G = (ue) => {
3083
3083
  _ && _(ue), E.current && (E.current = null, w && w(ue), y && y(ue, "backdropClick"));
3084
- }, Y = ma(p), ae = Q(() => ({
3084
+ }, Y = ma(p), ae = U(() => ({
3085
3085
  titleId: Y
3086
3086
  }), [Y]), fe = I({
3087
3087
  transition: F
@@ -3097,7 +3097,7 @@ const tl = qe(ca, {
3097
3097
  shouldForwardComponentProp: !0,
3098
3098
  externalForwardedProps: q,
3099
3099
  ownerState: W,
3100
- className: Qe(X.root, o),
3100
+ className: Ue(J.root, o),
3101
3101
  ref: t
3102
3102
  }), [Kr, ea] = xe("backdrop", {
3103
3103
  elementType: tl,
@@ -3109,12 +3109,12 @@ const tl = qe(ca, {
3109
3109
  shouldForwardComponentProp: !0,
3110
3110
  externalForwardedProps: q,
3111
3111
  ownerState: W,
3112
- className: Qe(X.paper, S.className)
3112
+ className: Ue(J.paper, S.className)
3113
3113
  }), [aa, ia] = xe("container", {
3114
3114
  elementType: il,
3115
3115
  externalForwardedProps: q,
3116
3116
  ownerState: W,
3117
- className: Qe(X.container)
3117
+ className: Ue(J.container)
3118
3118
  }), [oa, na] = xe("transition", {
3119
3119
  elementType: wt,
3120
3120
  externalForwardedProps: q,
@@ -3350,7 +3350,7 @@ function nl({
3350
3350
  })]
3351
3351
  });
3352
3352
  }
3353
- const Ur = {
3353
+ const Qr = {
3354
3354
  row: {
3355
3355
  hover: "rgba(224, 224, 224, 0.3)"
3356
3356
  },
@@ -3445,7 +3445,7 @@ const Ur = {
3445
3445
  }) => ({
3446
3446
  padding: 2,
3447
3447
  "&.MuiIconButton-root:hover": {
3448
- backgroundColor: e ?? Ur.interaction.defaultHover
3448
+ backgroundColor: e ?? Qr.interaction.defaultHover
3449
3449
  }
3450
3450
  }));
3451
3451
  function dl({
@@ -3524,7 +3524,7 @@ const yt = (e) => tr(e.chart.backgroundColor), pl = ({
3524
3524
  }, {
3525
3525
  themeSettings: l
3526
3526
  } = D();
3527
- return /* @__PURE__ */ v(U, {
3527
+ return /* @__PURE__ */ v(Q, {
3528
3528
  children: [/* @__PURE__ */ n(Ae, {
3529
3529
  onClick: a,
3530
3530
  $hoverColor: yt(l),
@@ -3551,7 +3551,7 @@ const yt = (e) => tr(e.chart.backgroundColor), pl = ({
3551
3551
  sx: {
3552
3552
  fontSize: "13px",
3553
3553
  fontFamily: l.typography.fontFamily,
3554
- color: Ur.text.content
3554
+ color: Qr.text.content
3555
3555
  },
3556
3556
  disableRipple: !0,
3557
3557
  children: [d.icon, /* @__PURE__ */ n("div", {
@@ -3588,7 +3588,7 @@ function ml({
3588
3588
  onRefresh: t,
3589
3589
  onExpand: r
3590
3590
  }) {
3591
- const a = Q(() => [{
3591
+ const a = U(() => [{
3592
3592
  title: "Refresh",
3593
3593
  onClick: t,
3594
3594
  icon: /* @__PURE__ */ n(cl, {})
@@ -3612,7 +3612,7 @@ function bl({
3612
3612
  } = D(), {
3613
3613
  inlineElement: i,
3614
3614
  expandedElement: l
3615
- } = Q(() => {
3615
+ } = U(() => {
3616
3616
  const d = mt(e, {
3617
3617
  useCustomizedStyleOptions: !0
3618
3618
  });
@@ -3671,7 +3671,7 @@ function bl({
3671
3671
  expandedElement: b
3672
3672
  };
3673
3673
  }, [e]);
3674
- return /* @__PURE__ */ v(U, {
3674
+ return /* @__PURE__ */ v(Q, {
3675
3675
  children: [i, /* @__PURE__ */ v(Yr, {
3676
3676
  open: t,
3677
3677
  onClose: () => r(!1),
@@ -3821,14 +3821,14 @@ function Ht({
3821
3821
  buttonVisibility: a = "onHover",
3822
3822
  renderContent: i
3823
3823
  }) {
3824
- const l = te(), d = Ja(T((b) => {
3824
+ const l = te(), d = Xa(T((b) => {
3825
3825
  l && l.ai.sendFeedback({
3826
3826
  sourceId: e,
3827
3827
  type: r,
3828
3828
  data: t,
3829
3829
  rating: b
3830
3830
  });
3831
- }, [l, e, t, r]), 200), [p, c] = wl(), g = Q(() => a === "onHover" ? c : a !== "never", [c, a]), {
3831
+ }, [l, e, t, r]), 200), [p, c] = wl(), g = U(() => a === "onHover" ? c : a !== "never", [c, a]), {
3832
3832
  themeSettings: x
3833
3833
  } = D();
3834
3834
  return /* @__PURE__ */ n(_l, {
@@ -3841,7 +3841,7 @@ function Ht({
3841
3841
  });
3842
3842
  }
3843
3843
  const vl = 18 * 5;
3844
- function Qr({
3844
+ function Ur({
3845
3845
  text: e
3846
3846
  }) {
3847
3847
  const [t, r] = R(!0), [a, i] = R(!1), {
@@ -3879,7 +3879,7 @@ function Sl({
3879
3879
  children: i("ai.errors.unexpected")
3880
3880
  }) : /* @__PURE__ */ n(le, {
3881
3881
  align: "full",
3882
- children: /* @__PURE__ */ n(Qr, {
3882
+ children: /* @__PURE__ */ n(Ur, {
3883
3883
  text: t ?? i("ai.errors.insightsNotAvailable")
3884
3884
  })
3885
3885
  });
@@ -3917,7 +3917,7 @@ function Il({
3917
3917
  })
3918
3918
  });
3919
3919
  }
3920
- var Dl = Xa("toLowerCase");
3920
+ var Dl = Ja("toLowerCase");
3921
3921
  const Bt = /* @__PURE__ */ C("div", {
3922
3922
  target: "etljahs0",
3923
3923
  label: "FlexRow"
@@ -3951,13 +3951,13 @@ function Ll({
3951
3951
  }
3952
3952
  }, w = r === "analyze", _ = `${c}${c && g ? `
3953
3953
  ` : ""}${g}`;
3954
- return /* @__PURE__ */ v(U, {
3954
+ return /* @__PURE__ */ v(Q, {
3955
3955
  children: [/* @__PURE__ */ n(Ht, {
3956
3956
  sourceId: o,
3957
3957
  data: e,
3958
3958
  type: "chats/nlq",
3959
3959
  buttonVisibility: t ? "always" : "onHover",
3960
- renderContent: (y) => /* @__PURE__ */ v(U, {
3960
+ renderContent: (y) => /* @__PURE__ */ v(Q, {
3961
3961
  children: [/* @__PURE__ */ v(Bt, {
3962
3962
  children: [/* @__PURE__ */ n(Gr, {
3963
3963
  align: "left",
@@ -3973,7 +3973,7 @@ function Ll({
3973
3973
  data: m,
3974
3974
  type: "nlg/queryResult",
3975
3975
  buttonVisibility: u ? "onHover" : "never",
3976
- renderContent: (y) => /* @__PURE__ */ v(U, {
3976
+ renderContent: (y) => /* @__PURE__ */ v(Q, {
3977
3977
  children: [/* @__PURE__ */ v(Bt, {
3978
3978
  children: [/* @__PURE__ */ n(Il, {
3979
3979
  onClick: h
@@ -4015,7 +4015,7 @@ function Ol({
4015
4015
  const {
4016
4016
  t
4017
4017
  } = O();
4018
- return /* @__PURE__ */ n(U, {
4018
+ return /* @__PURE__ */ n(Q, {
4019
4019
  children: e.map((r, a) => /* @__PURE__ */ n(Sa, {
4020
4020
  fallbackRender: (i) => jl(j(I({}, i), {
4021
4021
  displayMessage: t("ai.errors.unexpected")
@@ -4128,7 +4128,7 @@ function Rl({
4128
4128
  }) {
4129
4129
  const {
4130
4130
  t: r
4131
- } = O(), [a, i] = R(!0), l = Q(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
4131
+ } = O(), [a, i] = R(!0), l = U(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
4132
4132
  themeSettings: d
4133
4133
  } = D();
4134
4134
  return /* @__PURE__ */ v(Zl, {
@@ -4180,7 +4180,7 @@ function ql({
4180
4180
  const a = e.length > 0, {
4181
4181
  suggestionsWelcomeText: i
4182
4182
  } = re();
4183
- return t ? /* @__PURE__ */ n(Gl, {}) : a ? /* @__PURE__ */ v(U, {
4183
+ return t ? /* @__PURE__ */ n(Gl, {}) : a ? /* @__PURE__ */ v(Q, {
4184
4184
  children: [i && /* @__PURE__ */ n(le, {
4185
4185
  align: "left",
4186
4186
  children: i
@@ -4200,7 +4200,7 @@ const Hl = /* @__PURE__ */ C("div", {
4200
4200
  label: "ToolbarTitle"
4201
4201
  })("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({
4202
4202
  style: e
4203
- }) => e.textColor, ";"), Vr = /* @__PURE__ */ Jt(function({
4203
+ }) => e.textColor, ";"), Vr = /* @__PURE__ */ Xt(function({
4204
4204
  title: e,
4205
4205
  leftNav: t,
4206
4206
  rightNav: r,
@@ -4223,7 +4223,7 @@ const Hl = /* @__PURE__ */ C("div", {
4223
4223
  })("text-align:center;font-size:11px;line-height:18px;white-space:pre-wrap;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;color:", ({
4224
4224
  theme: e
4225
4225
  }) => e.aiChat.secondaryTextColor, ";");
4226
- function Ul({
4226
+ function Ql({
4227
4227
  theme: e
4228
4228
  }) {
4229
4229
  const {
@@ -4238,7 +4238,7 @@ function Ul({
4238
4238
  })]
4239
4239
  });
4240
4240
  }
4241
- function Ql() {
4241
+ function Ul() {
4242
4242
  const {
4243
4243
  themeSettings: e
4244
4244
  } = D();
@@ -4281,13 +4281,13 @@ const Fl = (e, t) => {
4281
4281
  return /* @__PURE__ */ n(Vl, {
4282
4282
  theme: t,
4283
4283
  onClick: e,
4284
- children: /* @__PURE__ */ n(Ql, {})
4284
+ children: /* @__PURE__ */ n(Ul, {})
4285
4285
  });
4286
- }, Jl = ({
4286
+ }, Xl = ({
4287
4287
  isVisible: e,
4288
4288
  onClick: t,
4289
4289
  anchorElement: r
4290
- }) => /* @__PURE__ */ n(Xt, {
4290
+ }) => /* @__PURE__ */ n(Jt, {
4291
4291
  anchorEl: r,
4292
4292
  open: e,
4293
4293
  placement: "top",
@@ -4297,7 +4297,7 @@ const Fl = (e, t) => {
4297
4297
  children: /* @__PURE__ */ n($l, {
4298
4298
  onClick: t
4299
4299
  })
4300
- }), Xl = /* @__PURE__ */ C("div", {
4300
+ }), Jl = /* @__PURE__ */ C("div", {
4301
4301
  target: "ednrf320",
4302
4302
  label: "ChatBody"
4303
4303
  })("display:flex;flex-direction:column;row-gap:", ({
@@ -4349,7 +4349,7 @@ function td({
4349
4349
  } = ro({
4350
4350
  contextTitle: e,
4351
4351
  count: x
4352
- }), h = Q(() => o == null ? void 0 : o.map((N) => N.nlqPrompt), [o]), {
4352
+ }), h = U(() => o == null ? void 0 : o.map((N) => N.nlqPrompt), [o]), {
4353
4353
  history: m,
4354
4354
  lastNlqResponse: w,
4355
4355
  isAwaitingResponse: _,
@@ -4360,7 +4360,7 @@ function td({
4360
4360
  } = mo(e, r), {
4361
4361
  mutate: L,
4362
4362
  isLoading: z
4363
- } = _r(A), [de, F] = R(!1), [H, V] = R(!1), $ = () => F(!0), W = () => F(!1), X = () => {
4363
+ } = _r(A), [de, F] = R(!1), [H, V] = R(!1), $ = () => F(!0), W = () => F(!1), J = () => {
4364
4364
  L(), W();
4365
4365
  }, E = ce(null), B = ce(null), G = () => {
4366
4366
  if (!(E != null && E.current))
@@ -4386,17 +4386,17 @@ function td({
4386
4386
  color: b.aiChat.header.textColor
4387
4387
  }),
4388
4388
  style: b.aiChat.header
4389
- }) : null, fe = Q(() => [...new Set(m.filter((N) => N.role === "user").filter((N) => !(h != null && h.includes(N.content))).map((N) => N.content).reverse())].slice(0, g), [m, g, h]);
4390
- return (S == null ? void 0 : S.message) === d("ai.errors.chatUnavailable") ? /* @__PURE__ */ v(U, {
4389
+ }) : null, fe = U(() => [...new Set(m.filter((N) => N.role === "user").filter((N) => !(h != null && h.includes(N.content))).map((N) => N.content).reverse())].slice(0, g), [m, g, h]);
4390
+ return (S == null ? void 0 : S.message) === d("ai.errors.chatUnavailable") ? /* @__PURE__ */ v(Q, {
4391
4391
  children: [c && ae, /* @__PURE__ */ n(qr, {
4392
4392
  text: S.message
4393
4393
  })]
4394
- }) : /* @__PURE__ */ v(U, {
4395
- children: [ae, /* @__PURE__ */ v(Xl, {
4394
+ }) : /* @__PURE__ */ v(Q, {
4395
+ children: [ae, /* @__PURE__ */ v(Jl, {
4396
4396
  ref: E,
4397
4397
  theme: b,
4398
4398
  onScroll: G,
4399
- children: [/* @__PURE__ */ n(Jl, {
4399
+ children: [/* @__PURE__ */ n(Xl, {
4400
4400
  isVisible: H,
4401
4401
  anchorElement: B.current,
4402
4402
  onClick: () => {
@@ -4406,7 +4406,7 @@ function td({
4406
4406
  behavior: "smooth"
4407
4407
  });
4408
4408
  }
4409
- }), /* @__PURE__ */ n(Qn, {}), /* @__PURE__ */ n(ql, {
4409
+ }), /* @__PURE__ */ n(Un, {}), /* @__PURE__ */ n(ql, {
4410
4410
  questions: h || [],
4411
4411
  isLoading: u,
4412
4412
  onSelection: y
@@ -4429,7 +4429,7 @@ function td({
4429
4429
  }, q))
4430
4430
  }), (_ || z) && /* @__PURE__ */ n(Hr, {}), de && /* @__PURE__ */ n(Kn, {
4431
4431
  onCancel: W,
4432
- onConfirm: X
4432
+ onConfirm: J
4433
4433
  })]
4434
4434
  }), /* @__PURE__ */ v(Kl, {
4435
4435
  ref: B,
@@ -4443,7 +4443,7 @@ function td({
4443
4443
  isLoading: u || M,
4444
4444
  recommendationsError: s,
4445
4445
  onChange: W
4446
- }), /* @__PURE__ */ n(Ul, {
4446
+ }), /* @__PURE__ */ n(Ql, {
4447
4447
  theme: b
4448
4448
  })]
4449
4449
  })]
@@ -4615,11 +4615,11 @@ function bd({
4615
4615
  themeSettings: a
4616
4616
  } = D(), {
4617
4617
  t: i
4618
- } = O(), l = Q(() => e == null ? void 0 : e.map((p) => ({
4618
+ } = O(), l = U(() => e == null ? void 0 : e.map((p) => ({
4619
4619
  title: p,
4620
4620
  onClick: () => t(p)
4621
4621
  })), [e, t]), d = _a(Ca(a.aiChat.header.backgroundColor)) > 0.5;
4622
- return /* @__PURE__ */ v(U, {
4622
+ return /* @__PURE__ */ v(Q, {
4623
4623
  children: [r ? /* @__PURE__ */ n(Vr, {
4624
4624
  title: i("ai.analyticsChatbot"),
4625
4625
  leftNav: /* @__PURE__ */ n(hd, {
@@ -4647,7 +4647,7 @@ function fd() {
4647
4647
  t: c
4648
4648
  } = O(), g = c("ai.errors.noAvailableDataTopics"), x = T((s) => {
4649
4649
  s.length ? s.length === 1 && (a(void 0), t(s[0])) : a(g);
4650
- }, [g]), b = Q(() => {
4650
+ }, [g]), b = U(() => {
4651
4651
  if (i && l === "idle") {
4652
4652
  const s = (d != null && d.length ? i == null ? void 0 : i.filter((h) => d == null ? void 0 : d.includes(h.title)) : i).map((h) => h.title);
4653
4653
  return x(s), s;
@@ -4703,11 +4703,11 @@ const xd = $t({
4703
4703
  t: i
4704
4704
  } = O();
4705
4705
  if (a)
4706
- return /* @__PURE__ */ n(U, {
4706
+ return /* @__PURE__ */ n(Q, {
4707
4707
  children: i("ai.errors.unexpected")
4708
4708
  });
4709
4709
  const l = t ?? i("ai.errors.insightsNotAvailable");
4710
- return /* @__PURE__ */ n(Qr, {
4710
+ return /* @__PURE__ */ n(Ur, {
4711
4711
  text: r ? "Loading..." : l
4712
4712
  });
4713
4713
  }), yd = new Ft({
@@ -4745,9 +4745,9 @@ function wd({
4745
4745
  })();
4746
4746
  const $r = {
4747
4747
  api: void 0
4748
- }, Jr = Symbol("aiContextKey"), Ye = () => la(
4749
- Jr,
4750
- () => Ut($r),
4748
+ }, Xr = Symbol("aiContextKey"), Ye = () => la(
4749
+ Xr,
4750
+ () => Qt($r),
4751
4751
  !0
4752
4752
  ), vd = lt({
4753
4753
  props: {
@@ -4757,24 +4757,24 @@ const $r = {
4757
4757
  volatile: Boolean
4758
4758
  },
4759
4759
  setup(e, { slots: t }) {
4760
- const r = ai(), a = Ut($r), { app: i } = r.value;
4760
+ const r = ai(), a = Qt($r), { app: i } = r.value;
4761
4761
  return i && (a.value = {
4762
4762
  api: new jt(i.httpClient, e.volatile)
4763
- }), Qt(async () => {
4763
+ }), Ut(async () => {
4764
4764
  const { app: l } = r.value;
4765
4765
  l && (a.value = {
4766
4766
  api: new jt(l.httpClient, e.volatile)
4767
4767
  });
4768
- }), da(Jr, a), () => {
4768
+ }), da(Xr, a), () => {
4769
4769
  var l;
4770
4770
  return (l = t.default) == null ? void 0 : l.call(t);
4771
4771
  };
4772
4772
  }
4773
- }), Xr = () => {
4773
+ }), Jr = () => {
4774
4774
  const e = Ye(), t = new ii({
4775
4775
  context: e.value
4776
4776
  });
4777
- return Qt(() => {
4777
+ return Ut(() => {
4778
4778
  t.setValue({
4779
4779
  context: e.value
4780
4780
  });
@@ -4799,7 +4799,7 @@ const $r = {
4799
4799
  },
4800
4800
  setup: (e) => nr(xd, e, [
4801
4801
  ...lr(),
4802
- Xr()
4802
+ Jr()
4803
4803
  ])
4804
4804
  }), Md = lt({
4805
4805
  props: {
@@ -4829,7 +4829,7 @@ const $r = {
4829
4829
  },
4830
4830
  setup: (e) => nr(kd, e, [
4831
4831
  ...lr(),
4832
- Xr()
4832
+ Jr()
4833
4833
  ])
4834
4834
  }), Id = (e) => {
4835
4835
  pt("useGetNlgInsights");