@sisense/sdk-ui-vue 2.14.0 → 2.15.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,4 +1,4 @@
1
- import { aD as Xt, aE as Ye, aF as ha, aG as Ue, aH as ma, aI as ba, aJ as be, aK as Kt, aL as fa, aM as b, aN as er, aO as L, aP as n, aQ as E, aR as U, aS as $e, aT as Q, aU as De, aV as N, aW as tr, aX as xa, aY as ka, aZ as de, a_ as ya, a$ as ye, b0 as Je, b1 as we, b2 as pt, b3 as wa, b4 as _a, b5 as Ca, b6 as C, b7 as P, b8 as va, b9 as It, ba as Z, bb as qe, bc as v, bd as Ae, be as Sa, bf as Ma, bg as Ia, bh as Da, bi as Le, bj as Me, bk as Aa, bl as La, bm as rr, bn as Ta, bo as Na, bp as ja, bq as Oa, br as ar, bs as Ea, bt as za, bu as Ra, bv as Za, bw as Wa, bx as ir, by as Pa, bz as qa, bA as Ga, bB as q, bC as Ba, bD as Ha, bE as Ya, bF as Ua, bG as or, bH as Se, bI as nr, bJ as ut, bK as it, bL as Qa, bM as Xe, bN as Fa, bO as Va, bP as $a, bQ as Ja, bR as Xa, bS as Ka, bT as ei, bU as ti, bV as ri, ap as Ee, bW as lr, bX as ai, bY as ii, bZ as sr, b_ as oi, b$ as ni, c0 as cr, c1 as li, c2 as si, c3 as ci, D as di, c4 as pi, a as dr, c5 as pr, G as gt, C as ht, J as mt, K as fe, a5 as bt } from "./use-tracking-6619ee21.js";
1
+ import { aF as Xt, aG as Ye, aH as ha, aI as Qe, aJ as ma, aK as ba, aL as be, aM as Kt, aN as fa, aO as b, aP as er, aQ as L, aR as n, aS as E, aT as Q, aU as $e, aV as U, aW as De, aX as N, aY as tr, aZ as xa, a_ as ka, a$ as de, b0 as ya, b1 as ye, b2 as Je, b3 as we, b4 as pt, b5 as wa, b6 as _a, b7 as Ca, b8 as C, b9 as P, ba as va, bb as It, bc as Z, bd as qe, be as v, bf as Ae, bg as Sa, bh as Ma, bi as Ia, bj as Da, bk as Le, bl as Me, bm as Aa, bn as La, bo as rr, bp as Ta, bq as Na, br as ja, bs as Oa, bt as ar, bu as Ea, bv as za, bw as Ra, bx as Za, by as Wa, bz as ir, bA as Pa, bB as qa, bC as Ga, bD as q, bE as Ha, bF as Ba, bG as Ya, bH as Qa, bI as or, bJ as Se, bK as nr, bL as ut, bM as it, bN as Ua, bO as Xe, bP as Fa, bQ as Va, bR as $a, bS as Ja, bT as Xa, bU as Ka, bV as ei, bW as ti, bX as ri, aq as Ee, bY as lr, bZ as ai, b_ as ii, b$ as sr, c0 as oi, c1 as ni, c2 as cr, c3 as li, c4 as si, c5 as ci, D as di, c6 as pi, a as dr, c7 as pr, G as gt, C as ht, J as mt, K as fe, a6 as bt } from "./use-tracking-efb607bb.js";
2
2
  import { inject as ui, ref as ur, defineComponent as ft, watchEffect as gr, provide as gi, watch as xt, toRefs as kt } from "vue";
3
3
  let hr = class extends nr {
4
4
  constructor(e, t) {
@@ -894,7 +894,7 @@ const Wi = {
894
894
  tooltip: {
895
895
  mode: "value"
896
896
  }
897
- }, Bi = {
897
+ }, Hi = {
898
898
  subtype: ni.SUBTYPE,
899
899
  viewType: "month",
900
900
  startOfWeek: "sunday",
@@ -912,7 +912,7 @@ const Wi = {
912
912
  cellColor: "#e6e6e6",
913
913
  hideValues: !0
914
914
  }
915
- }, Hi = {
915
+ }, Bi = {
916
916
  legend: {
917
917
  enabled: !0,
918
918
  position: "bottom"
@@ -972,7 +972,7 @@ const Wi = {
972
972
  scatterBubbleMinSize: 10,
973
973
  scatterBubbleMaxSize: 10
974
974
  }
975
- }, Ui = {
975
+ }, Qi = {
976
976
  header: {
977
977
  color: {
978
978
  enabled: !1
@@ -988,7 +988,7 @@ const Wi = {
988
988
  enabled: !1
989
989
  }
990
990
  }
991
- }, Qi = {
991
+ }, Ui = {
992
992
  subtype: "scattermap",
993
993
  markers: {
994
994
  fill: "filled",
@@ -1073,19 +1073,19 @@ function $i(e) {
1073
1073
  case "treemap":
1074
1074
  return q(Gi);
1075
1075
  case "calendar-heatmap":
1076
- return q(Bi);
1077
- case "sunburst":
1078
1076
  return q(Hi);
1077
+ case "sunburst":
1078
+ return q(Bi);
1079
1079
  case "scatter":
1080
1080
  return q(Yi);
1081
1081
  case "scattermap":
1082
- return q(Qi);
1082
+ return q(Ui);
1083
1083
  case "areamap":
1084
1084
  return q(Fi);
1085
1085
  case "boxplot":
1086
1086
  return q(Vi);
1087
1087
  case "table":
1088
- return q(Ui);
1088
+ return q(Qi);
1089
1089
  case "pivot":
1090
1090
  return q(qi);
1091
1091
  case "pivot2":
@@ -1332,7 +1332,7 @@ const uo = (e) => {
1332
1332
  return ee(O({}, o), {
1333
1333
  column: c
1334
1334
  });
1335
- if (Qa(c.type)) {
1335
+ if (Ua(c.type)) {
1336
1336
  const m = (x = (f = u.format) == null ? void 0 : f.mask) == null ? void 0 : x[u.jaql.level];
1337
1337
  if (m)
1338
1338
  return ee(O({}, o), {
@@ -1474,7 +1474,7 @@ const uo = (e) => {
1474
1474
  }, Symbol.toStringTag, {
1475
1475
  value: "Module"
1476
1476
  }));
1477
- var Co = Object.defineProperty, vo = Object.defineProperties, So = Object.getOwnPropertyDescriptors, Be = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Zt = (e, t, r) => t in e ? Co(e, t, {
1477
+ var Co = Object.defineProperty, vo = Object.defineProperties, So = Object.getOwnPropertyDescriptors, He = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Zt = (e, t, r) => t in e ? Co(e, t, {
1478
1478
  enumerable: !0,
1479
1479
  configurable: !0,
1480
1480
  writable: !0,
@@ -1482,16 +1482,16 @@ var Co = Object.defineProperty, vo = Object.defineProperties, So = Object.getOwn
1482
1482
  }) : e[t] = r, I = (e, t) => {
1483
1483
  for (var r in t || (t = {}))
1484
1484
  _r.call(t, r) && Zt(e, r, t[r]);
1485
- if (Be)
1486
- for (var r of Be(t))
1485
+ if (He)
1486
+ for (var r of He(t))
1487
1487
  Cr.call(t, r) && Zt(e, r, t[r]);
1488
1488
  return e;
1489
1489
  }, j = (e, t) => vo(e, So(t)), Mo = (e, t) => {
1490
1490
  var r = {};
1491
1491
  for (var a in e)
1492
1492
  _r.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
1493
- if (e != null && Be)
1494
- for (var a of Be(e))
1493
+ if (e != null && He)
1494
+ for (var a of He(e))
1495
1495
  t.indexOf(a) < 0 && Cr.call(e, a) && (r[a] = e[a]);
1496
1496
  return r;
1497
1497
  }, pe = (e, t, r) => new Promise((a, i) => {
@@ -1510,7 +1510,7 @@ var Co = Object.defineProperty, vo = Object.defineProperties, So = Object.getOwn
1510
1510
  }, p = (d) => d.done ? a(d.value) : Promise.resolve(d.value).then(l, s);
1511
1511
  p((r = r.apply(e, t)).next());
1512
1512
  });
1513
- class Io extends Ba {
1513
+ class Io extends Ha {
1514
1514
  constructor(t, r) {
1515
1515
  super(), this.client = t, this.setOptions(r), this.bindMethods(), this.updateResult();
1516
1516
  }
@@ -1520,7 +1520,7 @@ class Io extends Ba {
1520
1520
  setOptions(t) {
1521
1521
  var r;
1522
1522
  const a = this.options;
1523
- this.options = this.client.defaultMutationOptions(t), Ha(a, this.options) || this.client.getMutationCache().notify({
1523
+ this.options = this.client.defaultMutationOptions(t), Ba(a, this.options) || this.client.getMutationCache().notify({
1524
1524
  type: "observerOptionsUpdated",
1525
1525
  mutation: this.currentMutation,
1526
1526
  observer: this
@@ -1687,7 +1687,7 @@ function Mr(e) {
1687
1687
  }
1688
1688
  }
1689
1689
  const Ir = (e, t = !0) => {
1690
- const r = Q(() => Mr(e), [e]), a = ae(), {
1690
+ const r = U(() => Mr(e), [e]), a = ae(), {
1691
1691
  data: i,
1692
1692
  error: l,
1693
1693
  isError: s,
@@ -1752,7 +1752,7 @@ const lt = 4, jo = (e) => {
1752
1752
  userPrompt: l
1753
1753
  } : null)),
1754
1754
  enabled: !!s && d
1755
- }), m = Q(() => o == null ? void 0 : o.map((h) => j(I({}, h), {
1755
+ }), m = U(() => o == null ? void 0 : o.map((h) => j(I({}, h), {
1756
1756
  widgetProps: h.jaql ? wt(h, {
1757
1757
  useCustomizedStyleOptions: a
1758
1758
  }) : void 0
@@ -1955,14 +1955,14 @@ const lt = 4, jo = (e) => {
1955
1955
  isLoading: l,
1956
1956
  isError: d
1957
1957
  };
1958
- }, Bo = (e) => Q(() => {
1958
+ }, Ho = (e) => U(() => {
1959
1959
  if (e != null && e.length) {
1960
1960
  const t = e[e.length - 1];
1961
1961
  if (Tr(t))
1962
1962
  return JSON.parse(t.content);
1963
1963
  }
1964
1964
  return null;
1965
- }, [e]), Tr = (e) => !!e && "type" in e && e.type === "nlq", Ho = (e) => !!e && "type" in e && e.type === "text", Yo = (e, t) => {
1965
+ }, [e]), Tr = (e) => !!e && "type" in e && e.type === "nlq", Bo = (e) => !!e && "type" in e && e.type === "text", Yo = (e, t) => {
1966
1966
  const {
1967
1967
  t: r
1968
1968
  } = E(), {
@@ -1981,7 +1981,7 @@ const lt = 4, jo = (e) => {
1981
1981
  const {
1982
1982
  mutate: x,
1983
1983
  isLoading: o
1984
- } = qo(i, a), u = Bo(d);
1984
+ } = qo(i, a), u = Ho(d);
1985
1985
  return {
1986
1986
  chatId: i,
1987
1987
  history: d ?? [],
@@ -1991,14 +1991,14 @@ const lt = 4, jo = (e) => {
1991
1991
  isLoading: g,
1992
1992
  lastError: s
1993
1993
  };
1994
- }, Uo = 500, Qo = 500, Fo = 500, Vo = 900, $o = /* @__PURE__ */ C("div", {
1994
+ }, Qo = 500, Uo = 500, Fo = 500, Vo = 900, $o = /* @__PURE__ */ C("div", {
1995
1995
  target: "e1toc89x0",
1996
1996
  label: "ChatFrame"
1997
1997
  })("box-sizing:border-box;position:relative;display:flex;flex-direction:column;border:1px solid #c6c9ce;border-radius:", ({
1998
1998
  theme: e
1999
1999
  }) => e.aiChat.borderRadius, ";background-color:", ({
2000
2000
  theme: e
2001
- }) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:", Uo, "px;min-height:", Qo, "px;width:", ({
2001
+ }) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:", Qo, "px;min-height:", Uo, "px;width:", ({
2002
2002
  width: e
2003
2003
  }) => e ? Pt(e) : `${Fo}px`, ";height:", ({
2004
2004
  height: e
@@ -2037,7 +2037,7 @@ function Jo({
2037
2037
  })]
2038
2038
  });
2039
2039
  }
2040
- function Qe() {
2040
+ function Ue() {
2041
2041
  return /* @__PURE__ */ n("div", {
2042
2042
  className: "csdk-m-auto",
2043
2043
  "aria-label": "loading spinner",
@@ -2175,7 +2175,7 @@ function ln({
2175
2175
  width: i == null ? void 0 : i.offsetWidth
2176
2176
  },
2177
2177
  theme: d,
2178
- children: [r && /* @__PURE__ */ n(Qe, {}), !r && !s && p.map((x) => /* @__PURE__ */ n(an, j(I({}, x), {
2178
+ children: [r && /* @__PURE__ */ n(Ue, {}), !r && !s && p.map((x) => /* @__PURE__ */ n(an, j(I({}, x), {
2179
2179
  alwaysExpanded: f
2180
2180
  }), x.title)), s && /* @__PURE__ */ n(nn, {
2181
2181
  theme: d,
@@ -2517,26 +2517,26 @@ var qt;
2517
2517
  const Gt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), {
2518
2518
  class: "className",
2519
2519
  for: "htmlFor"
2520
- }), Bt = {
2520
+ }), Ht = {
2521
2521
  amp: "&",
2522
2522
  apos: "'",
2523
2523
  gt: ">",
2524
2524
  lt: "<",
2525
2525
  nbsp: " ",
2526
2526
  quot: "“"
2527
- }, Cn = ["style", "script"], vn = ["src", "href", "data", "formAction", "srcDoc", "action"], Sn = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Mn = /mailto:/i, In = /\n{2,}$/, Er = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Dn = /^ *> ?/gm, An = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ln = /^ {2,}\n/, Tn = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, zr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Rr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Nn = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, jn = /^(?:\n *)*\n/, On = /\r\n?/g, En = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, zn = /^\[\^([^\]]+)]/, Rn = /\f/g, Zn = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Wn = /^\s*?\[(x|\s)\]/, Zr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Wr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Pr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ct = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Pn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, qr = /^<!--[\s\S]*?(?:-->)/, qn = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Gn = /^\{.*\}$/, Bn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Hn = /^<([^ >]+@[^ >]+)>/, Yn = /^<([^ >]+:\/[^ >]+)>/, Un = /-([a-z])?/gi, Gr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Qn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Fn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Vn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, $n = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Jn = /\t/g, Xn = /(^ *\||\| *$)/g, Kn = /^ *:-+: *$/, el = /^ *:-+ *$/, tl = /^ *-+: *$/, Fe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", rl = new RegExp(`^([*_])\\1${Fe}\\1\\1(?!\\1)`), al = new RegExp(`^([*_])${Fe}\\1(?!\\1)`), il = new RegExp(`^(==)${Fe}\\1`), ol = new RegExp(`^(~~)${Fe}\\1`), nl = /^\\([^0-9A-Za-z\s])/, Ht = /\\([^0-9A-Za-z\s])/g, ll = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, sl = /^\n+/, cl = /^([ \t]*)/, dl = /\\([^\\])/g, pl = /(?:^|\n)( *)$/, vt = "(?:\\d+\\.)", St = "(?:[*+-])";
2528
- function Br(e) {
2527
+ }, Cn = ["style", "script"], vn = ["src", "href", "data", "formAction", "srcDoc", "action"], Sn = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Mn = /mailto:/i, In = /\n{2,}$/, Er = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Dn = /^ *> ?/gm, An = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ln = /^ {2,}\n/, Tn = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, zr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Rr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Nn = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, jn = /^(?:\n *)*\n/, On = /\r\n?/g, En = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, zn = /^\[\^([^\]]+)]/, Rn = /\f/g, Zn = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Wn = /^\s*?\[(x|\s)\]/, Zr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Wr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Pr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ct = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Pn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, qr = /^<!--[\s\S]*?(?:-->)/, qn = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Gn = /^\{.*\}$/, Hn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Bn = /^<([^ >]+@[^ >]+)>/, Yn = /^<([^ >]+:\/[^ >]+)>/, Qn = /-([a-z])?/gi, Gr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Un = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Fn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Vn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, $n = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Jn = /\t/g, Xn = /(^ *\||\| *$)/g, Kn = /^ *:-+: *$/, el = /^ *:-+ *$/, tl = /^ *-+: *$/, Fe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", rl = new RegExp(`^([*_])\\1${Fe}\\1\\1(?!\\1)`), al = new RegExp(`^([*_])${Fe}\\1(?!\\1)`), il = new RegExp(`^(==)${Fe}\\1`), ol = new RegExp(`^(~~)${Fe}\\1`), nl = /^\\([^0-9A-Za-z\s])/, Bt = /\\([^0-9A-Za-z\s])/g, ll = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, sl = /^\n+/, cl = /^([ \t]*)/, dl = /\\([^\\])/g, pl = /(?:^|\n)( *)$/, vt = "(?:\\d+\\.)", St = "(?:[*+-])";
2528
+ function Hr(e) {
2529
2529
  return "( *)(" + (e === 1 ? vt : St) + ") +";
2530
2530
  }
2531
- const Hr = Br(1), Yr = Br(2);
2532
- function Ur(e) {
2533
- return new RegExp("^" + (e === 1 ? Hr : Yr));
2534
- }
2535
- const ul = Ur(1), gl = Ur(2);
2531
+ const Br = Hr(1), Yr = Hr(2);
2536
2532
  function Qr(e) {
2537
- return new RegExp("^" + (e === 1 ? Hr : Yr) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? vt : St) + " )[^\\n]*)*(\\n|$)", "gm");
2533
+ return new RegExp("^" + (e === 1 ? Br : Yr));
2534
+ }
2535
+ const ul = Qr(1), gl = Qr(2);
2536
+ function Ur(e) {
2537
+ return new RegExp("^" + (e === 1 ? Br : Yr) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? vt : St) + " )[^\\n]*)*(\\n|$)", "gm");
2538
2538
  }
2539
- const hl = Qr(1), ml = Qr(2);
2539
+ const hl = Ur(1), ml = Ur(2);
2540
2540
  function Fr(e) {
2541
2541
  const t = e === 1 ? vt : St;
2542
2542
  return new RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
@@ -2595,7 +2595,7 @@ function Ce(e) {
2595
2595
  function kl(e) {
2596
2596
  return tl.test(e) ? "right" : Kn.test(e) ? "center" : el.test(e) ? "left" : null;
2597
2597
  }
2598
- function Ut(e, t, r, a) {
2598
+ function Qt(e, t, r, a) {
2599
2599
  const i = r.inTable;
2600
2600
  r.inTable = !0;
2601
2601
  let l = [[]], s = "";
@@ -2614,9 +2614,9 @@ function yl(e, t, r) {
2614
2614
  const a = e[2] ? e[2].replace(Xn, "").split("|").map(kl) : [], i = e[3] ? function(s, p, d) {
2615
2615
  return s.trim().split(`
2616
2616
  `).map(function(g) {
2617
- return Ut(g, p, d, !0);
2617
+ return Qt(g, p, d, !0);
2618
2618
  });
2619
- }(e[3], t, r) : [], l = Ut(e[1], t, r, !!i.length);
2619
+ }(e[3], t, r) : [], l = Qt(e[1], t, r, !!i.length);
2620
2620
  return r.inline = !1, i.length ? {
2621
2621
  align: a,
2622
2622
  cells: i,
@@ -2627,7 +2627,7 @@ function yl(e, t, r) {
2627
2627
  type: k.paragraph
2628
2628
  };
2629
2629
  }
2630
- function Qt(e, t) {
2630
+ function Ut(e, t) {
2631
2631
  return e.align[t] == null ? {} : {
2632
2632
  textAlign: e.align[t]
2633
2633
  };
@@ -2760,7 +2760,7 @@ function Il(e = "", t = {}) {
2760
2760
  const w = h.indexOf("=");
2761
2761
  if (w !== -1) {
2762
2762
  const _ = function(S) {
2763
- return S.indexOf("-") !== -1 && S.match(qn) === null && (S = S.replace(Un, function(A, R) {
2763
+ return S.indexOf("-") !== -1 && S.match(qn) === null && (S = S.replace(Qn, function(A, R) {
2764
2764
  return R.toUpperCase();
2765
2765
  })), S;
2766
2766
  }(h.slice(0, w)).trim(), y = function(S) {
@@ -2772,15 +2772,15 @@ function Il(e = "", t = {}) {
2772
2772
  const D = m[M] = function(S, A, R, ue) {
2773
2773
  return A === "style" ? function(F) {
2774
2774
  const G = [];
2775
- let H = "", V = !1, B = !1, $ = "";
2775
+ let B = "", V = !1, H = !1, $ = "";
2776
2776
  if (!F)
2777
2777
  return G;
2778
2778
  for (let z = 0; z < F.length; z++) {
2779
2779
  const W = F[z];
2780
- if (W !== '"' && W !== "'" || V || (B ? W === $ && (B = !1, $ = "") : (B = !0, $ = W)), W === "(" && H.endsWith("url") ? V = !0 : W === ")" && V && (V = !1), W !== ";" || B || V)
2781
- H += W;
2780
+ if (W !== '"' && W !== "'" || V || (H ? W === $ && (H = !1, $ = "") : (H = !0, $ = W)), W === "(" && B.endsWith("url") ? V = !0 : W === ")" && V && (V = !1), W !== ";" || H || V)
2781
+ B += W;
2782
2782
  else {
2783
- const Y = H.trim();
2783
+ const Y = B.trim();
2784
2784
  if (Y) {
2785
2785
  const se = Y.indexOf(":");
2786
2786
  if (se > 0) {
@@ -2788,10 +2788,10 @@ function Il(e = "", t = {}) {
2788
2788
  G.push([ge, ke]);
2789
2789
  }
2790
2790
  }
2791
- H = "";
2791
+ B = "";
2792
2792
  }
2793
2793
  }
2794
- const J = H.trim();
2794
+ const J = B.trim();
2795
2795
  if (J) {
2796
2796
  const z = J.indexOf(":");
2797
2797
  if (z > 0) {
@@ -2800,8 +2800,8 @@ function Il(e = "", t = {}) {
2800
2800
  }
2801
2801
  }
2802
2802
  return G;
2803
- }(R).reduce(function(F, [G, H]) {
2804
- return F[G.replace(/(-[a-z])/g, (V) => V[1].toUpperCase())] = ue(H, S, G), F;
2803
+ }(R).reduce(function(F, [G, B]) {
2804
+ return F[G.replace(/(-[a-z])/g, (V) => V[1].toUpperCase())] = ue(B, S, G), F;
2805
2805
  }, {}) : vn.indexOf(A) !== -1 ? ue(R, S, A) : (R.match(Gn) && (R = R.slice(1, R.length - 1)), R === "true" || R !== "false" && R);
2806
2806
  }(o, _, y, t.sanitizer);
2807
2807
  typeof D == "string" && (ct.test(D) || dt.test(D)) && (m[M] = a(D.trim()));
@@ -2810,7 +2810,7 @@ function Il(e = "", t = {}) {
2810
2810
  return m;
2811
2811
  }, {}) : null;
2812
2812
  }
2813
- t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Cl, t.slugify = t.slugify || Ce, t.namedCodesToUnicode = t.namedCodesToUnicode ? ce({}, Bt, t.namedCodesToUnicode) : Bt, t.createElement = t.createElement || Ua;
2813
+ t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Cl, t.slugify = t.slugify || Ce, t.namedCodesToUnicode = t.namedCodesToUnicode ? ce({}, Ht, t.namedCodesToUnicode) : Ht, t.createElement = t.createElement || Qa;
2814
2814
  const l = [], s = {}, p = {
2815
2815
  [k.blockQuote]: {
2816
2816
  match: te(Er),
@@ -2859,7 +2859,7 @@ function Il(e = "", t = {}) {
2859
2859
  order: 0,
2860
2860
  parse: (o) => ({
2861
2861
  lang: void 0,
2862
- text: Ie(o[0].replace(/^ {4}/gm, "")).replace(Ht, "$1")
2862
+ text: Ie(o[0].replace(/^ {4}/gm, "")).replace(Bt, "$1")
2863
2863
  }),
2864
2864
  render: (o, u, c) => r("pre", {
2865
2865
  key: c.key
@@ -2881,7 +2881,7 @@ function Il(e = "", t = {}) {
2881
2881
  match: ne(Nn),
2882
2882
  order: 3,
2883
2883
  parse: (o) => ({
2884
- text: o[2].replace(Ht, "$1")
2884
+ text: o[2].replace(Bt, "$1")
2885
2885
  }),
2886
2886
  render: (o, u, c) => r("code", {
2887
2887
  key: c.key
@@ -3024,7 +3024,7 @@ function Il(e = "", t = {}) {
3024
3024
  })
3025
3025
  },
3026
3026
  [k.linkBareUrlDetector]: {
3027
- match: xe((o, u) => u.inAnchor || t.disableAutoLink ? null : oe(Bn)(o, u)),
3027
+ match: xe((o, u) => u.inAnchor || t.disableAutoLink ? null : oe(Hn)(o, u)),
3028
3028
  order: 0,
3029
3029
  parse: (o) => ({
3030
3030
  children: [{
@@ -3037,7 +3037,7 @@ function Il(e = "", t = {}) {
3037
3037
  })
3038
3038
  },
3039
3039
  [k.linkMailtoDetector]: {
3040
- match: oe(Hn),
3040
+ match: oe(Bn),
3041
3041
  order: 0,
3042
3042
  parse(o) {
3043
3043
  let u = o[1], c = o[1];
@@ -3069,7 +3069,7 @@ function Il(e = "", t = {}) {
3069
3069
  }, u(o.children, c))
3070
3070
  },
3071
3071
  [k.ref]: {
3072
- match: oe(Qn),
3072
+ match: oe(Un),
3073
3073
  order: 0,
3074
3074
  parse: (o) => (s[o[1]] = {
3075
3075
  target: o[2],
@@ -3118,7 +3118,7 @@ function Il(e = "", t = {}) {
3118
3118
  }, r("thead", null, r("tr", null, m.header.map(function(h, w) {
3119
3119
  return r("th", {
3120
3120
  key: w,
3121
- style: Qt(m, w)
3121
+ style: Ut(m, w)
3122
3122
  }, u(h, c));
3123
3123
  }))), r("tbody", null, m.cells.map(function(h, w) {
3124
3124
  return r("tr", {
@@ -3126,7 +3126,7 @@ function Il(e = "", t = {}) {
3126
3126
  }, h.map(function(_, y) {
3127
3127
  return r("td", {
3128
3128
  key: y,
3129
- style: Qt(m, y)
3129
+ style: Ut(m, y)
3130
3130
  }, u(_, c));
3131
3131
  }));
3132
3132
  })));
@@ -3380,7 +3380,7 @@ const Tl = /* @__PURE__ */ C("div", {
3380
3380
  }
3381
3381
  return "";
3382
3382
  });
3383
- function He({
3383
+ function Be({
3384
3384
  children: e,
3385
3385
  align: t,
3386
3386
  onClick: r,
@@ -3411,13 +3411,13 @@ function jl({
3411
3411
  const {
3412
3412
  t: r
3413
3413
  } = E();
3414
- return /* @__PURE__ */ v(U, {
3414
+ return /* @__PURE__ */ v(Q, {
3415
3415
  children: [/* @__PURE__ */ n(le, {
3416
3416
  align: "left",
3417
3417
  children: r("ai.clearHistoryPrompt")
3418
3418
  }), /* @__PURE__ */ v("div", {
3419
3419
  className: "csdk-flex csdk-gap-x-2",
3420
- children: [/* @__PURE__ */ n(He, {
3420
+ children: [/* @__PURE__ */ n(Be, {
3421
3421
  align: "right",
3422
3422
  onClick: t,
3423
3423
  accessibleName: "confirm clear chat",
@@ -3425,7 +3425,7 @@ function jl({
3425
3425
  className: "csdk-py-[6px] csdk-px-[20px]",
3426
3426
  children: r("ai.buttons.yes")
3427
3427
  })
3428
- }), /* @__PURE__ */ n(He, {
3428
+ }), /* @__PURE__ */ n(Be, {
3429
3429
  align: "right",
3430
3430
  onClick: e,
3431
3431
  accessibleName: "cancel clear chat",
@@ -3462,7 +3462,7 @@ function zl({
3462
3462
  const {
3463
3463
  t
3464
3464
  } = E();
3465
- return /* @__PURE__ */ n(He, {
3465
+ return /* @__PURE__ */ n(Be, {
3466
3466
  align: "left",
3467
3467
  onClick: e,
3468
3468
  children: /* @__PURE__ */ v("div", {
@@ -3476,7 +3476,7 @@ function Rl(e) {
3476
3476
  }
3477
3477
  const at = ha("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Kr = /* @__PURE__ */ Ye({});
3478
3478
  process.env.NODE_ENV !== "production" && (Kr.displayName = "DialogContext");
3479
- const Zl = Ue(ma, {
3479
+ const Zl = Qe(ma, {
3480
3480
  name: "MuiDialog",
3481
3481
  slot: "Backdrop",
3482
3482
  overrides: (e, t) => t.backdrop
@@ -3496,7 +3496,7 @@ const Zl = Ue(ma, {
3496
3496
  paper: ["paper", `paperScroll${be(r)}`, `paperWidth${be(String(a))}`, i && "paperFullWidth", l && "paperFullScreen"]
3497
3497
  };
3498
3498
  return va(s, Rl, t);
3499
- }, Pl = Ue(ba, {
3499
+ }, Pl = Qe(ba, {
3500
3500
  name: "MuiDialog",
3501
3501
  slot: "Root",
3502
3502
  overridesResolver: (e, t) => t.root
@@ -3505,7 +3505,7 @@ const Zl = Ue(ma, {
3505
3505
  // Use !important to override the Modal inline-style.
3506
3506
  position: "absolute !important"
3507
3507
  }
3508
- }), ql = Ue("div", {
3508
+ }), ql = Qe("div", {
3509
3509
  name: "MuiDialog",
3510
3510
  slot: "Container",
3511
3511
  overridesResolver: (e, t) => {
@@ -3547,7 +3547,7 @@ const Zl = Ue(ma, {
3547
3547
  }
3548
3548
  }
3549
3549
  }]
3550
- }), Gl = Ue(Kt, {
3550
+ }), Gl = Qe(Kt, {
3551
3551
  name: "MuiDialog",
3552
3552
  slot: "Paper",
3553
3553
  overridesResolver: (e, t) => {
@@ -3669,23 +3669,23 @@ const Zl = Ue(ma, {
3669
3669
  slotProps: ue = {},
3670
3670
  TransitionComponent: F = It,
3671
3671
  transitionDuration: G = i,
3672
- TransitionProps: H
3673
- } = l, V = Mo(l, ["aria-describedby", "aria-labelledby", "aria-modal", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "slots", "slotProps", "TransitionComponent", "transitionDuration", "TransitionProps"]), B = j(I({}, r), {
3672
+ TransitionProps: B
3673
+ } = l, V = Mo(l, ["aria-describedby", "aria-labelledby", "aria-modal", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "slots", "slotProps", "TransitionComponent", "transitionDuration", "TransitionProps"]), H = j(I({}, r), {
3674
3674
  disableEscapeKeyDown: u,
3675
3675
  fullScreen: c,
3676
3676
  fullWidth: m,
3677
3677
  maxWidth: h,
3678
3678
  scroll: A
3679
- }), $ = Wl(B), J = de(), z = (he) => {
3679
+ }), $ = Wl(H), J = de(), z = (he) => {
3680
3680
  J.current = he.target === he.currentTarget;
3681
3681
  }, W = (he) => {
3682
3682
  _ && _(he), J.current && (J.current = null, w && w(he), y && y(he, "backdropClick"));
3683
- }, Y = ya(p), se = Q(() => ({
3683
+ }, Y = ya(p), se = U(() => ({
3684
3684
  titleId: Y
3685
3685
  }), [Y]), ge = I({
3686
3686
  transition: F
3687
3687
  }, R), ke = I({
3688
- transition: H,
3688
+ transition: B,
3689
3689
  paper: S,
3690
3690
  backdrop: f
3691
3691
  }, ue), T = {
@@ -3695,29 +3695,29 @@ const Zl = Ue(ma, {
3695
3695
  elementType: Pl,
3696
3696
  shouldForwardComponentProp: !0,
3697
3697
  externalForwardedProps: T,
3698
- ownerState: B,
3698
+ ownerState: H,
3699
3699
  className: Je($.root, o),
3700
3700
  ref: t
3701
3701
  }), [Oe, la] = ye("backdrop", {
3702
3702
  elementType: Zl,
3703
3703
  shouldForwardComponentProp: !0,
3704
3704
  externalForwardedProps: T,
3705
- ownerState: B
3705
+ ownerState: H
3706
3706
  }), [sa, ca] = ye("paper", {
3707
3707
  elementType: Gl,
3708
3708
  shouldForwardComponentProp: !0,
3709
3709
  externalForwardedProps: T,
3710
- ownerState: B,
3710
+ ownerState: H,
3711
3711
  className: Je($.paper, S.className)
3712
3712
  }), [da, pa] = ye("container", {
3713
3713
  elementType: ql,
3714
3714
  externalForwardedProps: T,
3715
- ownerState: B,
3715
+ ownerState: H,
3716
3716
  className: Je($.container)
3717
3717
  }), [ua, ga] = ye("transition", {
3718
3718
  elementType: It,
3719
3719
  externalForwardedProps: T,
3720
- ownerState: B,
3720
+ ownerState: H,
3721
3721
  additionalProps: {
3722
3722
  appear: !0,
3723
3723
  in: M,
@@ -3925,7 +3925,7 @@ process.env.NODE_ENV !== "production" && (ea.propTypes = {
3925
3925
  */
3926
3926
  TransitionProps: b.object
3927
3927
  });
3928
- function Bl({
3928
+ function Hl({
3929
3929
  fillColor: e = "#262E3D"
3930
3930
  }) {
3931
3931
  return /* @__PURE__ */ v("svg", {
@@ -4034,9 +4034,9 @@ const ta = {
4034
4034
  errorBG: "rgba(231, 71, 39, 0.1)"
4035
4035
  }
4036
4036
  }
4037
- }, Hl = {
4037
+ }, Bl = {
4038
4038
  shouldForwardProp: (e) => !e.startsWith("$")
4039
- }, Ne = /* @__PURE__ */ C(lr, Hl, {
4039
+ }, Ne = /* @__PURE__ */ C(lr, Bl, {
4040
4040
  target: "e869yoj0",
4041
4041
  label: "IconButton"
4042
4042
  })(({
@@ -4064,7 +4064,7 @@ function Yl({
4064
4064
  })
4065
4065
  });
4066
4066
  }
4067
- function Ul({
4067
+ function Ql({
4068
4068
  fill: e = "rgba(38, 46, 61, 0.67)"
4069
4069
  }) {
4070
4070
  return /* @__PURE__ */ n("svg", {
@@ -4081,7 +4081,7 @@ function Ul({
4081
4081
  })
4082
4082
  });
4083
4083
  }
4084
- function Ql() {
4084
+ function Ul() {
4085
4085
  return /* @__PURE__ */ n("svg", {
4086
4086
  xmlns: "http://www.w3.org/2000/svg",
4087
4087
  width: "24",
@@ -4108,7 +4108,7 @@ const Mt = (e) => or(e.chart.backgroundColor), Fl = ({
4108
4108
  children: /* @__PURE__ */ n(Ne, {
4109
4109
  disableTouchRipple: !0,
4110
4110
  $hoverColor: Mt(t),
4111
- children: /* @__PURE__ */ n(Ul, {
4111
+ children: /* @__PURE__ */ n(Ql, {
4112
4112
  fill: t.chart.textColor
4113
4113
  })
4114
4114
  })
@@ -4123,7 +4123,7 @@ const Mt = (e) => or(e.chart.backgroundColor), Fl = ({
4123
4123
  }, {
4124
4124
  themeSettings: l
4125
4125
  } = L();
4126
- return /* @__PURE__ */ v(U, {
4126
+ return /* @__PURE__ */ v(Q, {
4127
4127
  children: [/* @__PURE__ */ n(Ne, {
4128
4128
  onClick: a,
4129
4129
  $hoverColor: Mt(l),
@@ -4187,10 +4187,10 @@ function Xl({
4187
4187
  onRefresh: t,
4188
4188
  onExpand: r
4189
4189
  }) {
4190
- const a = Q(() => [{
4190
+ const a = U(() => [{
4191
4191
  title: "Refresh",
4192
4192
  onClick: t,
4193
- icon: /* @__PURE__ */ n(Ql, {})
4193
+ icon: /* @__PURE__ */ n(Ul, {})
4194
4194
  }], [t]);
4195
4195
  return /* @__PURE__ */ v(Jl, {
4196
4196
  "aria-label": "chatbot chart toolbar",
@@ -4211,7 +4211,7 @@ function Kl({
4211
4211
  } = L(), {
4212
4212
  inlineElement: i,
4213
4213
  expandedElement: l
4214
- } = Q(() => {
4214
+ } = U(() => {
4215
4215
  const s = wt(e, {
4216
4216
  useCustomizedStyleOptions: !0
4217
4217
  });
@@ -4270,7 +4270,7 @@ function Kl({
4270
4270
  expandedElement: x
4271
4271
  };
4272
4272
  }, [e]);
4273
- return /* @__PURE__ */ v(U, {
4273
+ return /* @__PURE__ */ v(Q, {
4274
4274
  children: [i, /* @__PURE__ */ v(ea, {
4275
4275
  open: t,
4276
4276
  onClose: () => r(!1),
@@ -4290,7 +4290,7 @@ function Kl({
4290
4290
  }), /* @__PURE__ */ n(lr, {
4291
4291
  onClick: () => r(!1),
4292
4292
  "aria-label": "close expanded chart",
4293
- children: /* @__PURE__ */ n(Bl, {
4293
+ children: /* @__PURE__ */ n(Hl, {
4294
4294
  fillColor: a.aiChat.primaryTextColor
4295
4295
  })
4296
4296
  })]
@@ -4427,7 +4427,7 @@ function Vt({
4427
4427
  data: t,
4428
4428
  rating: x
4429
4429
  });
4430
- }, [l, e, t, r]), 200), [p, d] = is(), g = Q(() => a === "onHover" ? d : a !== "never", [d, a]), {
4430
+ }, [l, e, t, r]), 200), [p, d] = is(), g = U(() => a === "onHover" ? d : a !== "never", [d, a]), {
4431
4431
  themeSettings: f
4432
4432
  } = L();
4433
4433
  return /* @__PURE__ */ n(os, {
@@ -4516,13 +4516,13 @@ function ds({
4516
4516
  }
4517
4517
  }, w = r === "analyze", _ = `${d}${d && g ? `
4518
4518
  ` : ""}${g}`;
4519
- return /* @__PURE__ */ v(U, {
4519
+ return /* @__PURE__ */ v(Q, {
4520
4520
  children: [/* @__PURE__ */ n(Vt, {
4521
4521
  sourceId: o,
4522
4522
  data: e,
4523
4523
  type: "chats/nlq",
4524
4524
  buttonVisibility: t ? "always" : "onHover",
4525
- renderContent: (y) => /* @__PURE__ */ v(U, {
4525
+ renderContent: (y) => /* @__PURE__ */ v(Q, {
4526
4526
  children: [/* @__PURE__ */ v($t, {
4527
4527
  children: [/* @__PURE__ */ n(Xr, {
4528
4528
  align: "left",
@@ -4538,7 +4538,7 @@ function ds({
4538
4538
  data: h,
4539
4539
  type: "nlg/queryResult",
4540
4540
  buttonVisibility: u ? "onHover" : "never",
4541
- renderContent: (y) => /* @__PURE__ */ v(U, {
4541
+ renderContent: (y) => /* @__PURE__ */ v(Q, {
4542
4542
  children: [/* @__PURE__ */ v($t, {
4543
4543
  children: [/* @__PURE__ */ n(zl, {
4544
4544
  onClick: m
@@ -4561,7 +4561,7 @@ function ps({
4561
4561
  alwaysShowFeedback: t
4562
4562
  });
4563
4563
  }
4564
- const r = Ho(e) ? JSON.parse(e.content).answer : e.content;
4564
+ const r = Bo(e) ? JSON.parse(e.content).answer : e.content;
4565
4565
  return /* @__PURE__ */ n(le, {
4566
4566
  align: e.role === "user" ? "right" : "left",
4567
4567
  children: r
@@ -4580,7 +4580,7 @@ function hs({
4580
4580
  const {
4581
4581
  t
4582
4582
  } = E();
4583
- return /* @__PURE__ */ n(U, {
4583
+ return /* @__PURE__ */ n(Q, {
4584
4584
  children: e.map((r, a) => /* @__PURE__ */ n(La, {
4585
4585
  fallbackRender: (i) => gs(j(I({}, i), {
4586
4586
  displayMessage: t("ai.errors.unexpected")
@@ -4752,7 +4752,7 @@ function Cs({
4752
4752
  }) {
4753
4753
  const {
4754
4754
  t: r
4755
- } = E(), [a, i] = Z(!0), l = Q(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
4755
+ } = E(), [a, i] = Z(!0), l = U(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
4756
4756
  themeSettings: s
4757
4757
  } = L();
4758
4758
  return /* @__PURE__ */ v(_s, {
@@ -4804,7 +4804,7 @@ function Is({
4804
4804
  const a = e.length > 0, {
4805
4805
  suggestionsWelcomeText: i
4806
4806
  } = ie();
4807
- return t ? /* @__PURE__ */ n(Ms, {}) : a ? /* @__PURE__ */ v(U, {
4807
+ return t ? /* @__PURE__ */ n(Ms, {}) : a ? /* @__PURE__ */ v(Q, {
4808
4808
  children: [i && /* @__PURE__ */ n(le, {
4809
4809
  align: "left",
4810
4810
  children: i
@@ -4868,7 +4868,7 @@ function Ts({
4868
4868
  contextTitle: e,
4869
4869
  count: f,
4870
4870
  customPrompt: x
4871
- }), h = Q(() => u == null ? void 0 : u.map((T) => T.nlqPrompt), [u]), {
4871
+ }), h = U(() => u == null ? void 0 : u.map((T) => T.nlqPrompt), [u]), {
4872
4872
  history: w,
4873
4873
  lastNlqResponse: _,
4874
4874
  isAwaitingResponse: y,
@@ -4879,7 +4879,7 @@ function Ts({
4879
4879
  } = Yo(e, r), {
4880
4880
  mutate: R,
4881
4881
  isLoading: ue
4882
- } = Lr(S), [F, G] = Z(!1), [H, V] = Z(!1), B = () => G(!0), $ = () => G(!1), J = () => {
4882
+ } = Lr(S), [F, G] = Z(!1), [B, V] = Z(!1), H = () => G(!0), $ = () => G(!1), J = () => {
4883
4883
  R(), $();
4884
4884
  }, z = de(null), W = de(null), Y = () => {
4885
4885
  if (!(z != null && z.current))
@@ -4892,7 +4892,7 @@ function Ts({
4892
4892
  if (T === void 0 || X === void 0 || je === void 0)
4893
4893
  return;
4894
4894
  const Oe = je - T - X > X / 2;
4895
- H !== Oe && V(Oe);
4895
+ B !== Oe && V(Oe);
4896
4896
  };
4897
4897
  qe(() => {
4898
4898
  z.current && (z.current.scrollTop = z.current.scrollHeight);
@@ -4905,18 +4905,18 @@ function Ts({
4905
4905
  color: o.aiChat.header.textColor
4906
4906
  }),
4907
4907
  style: o.aiChat.header
4908
- }) : null, ke = Q(() => [...new Set(w.filter((T) => T.role === "user").filter((T) => !(h != null && h.includes(T.content))).map((T) => T.content).reverse())].slice(0, g), [w, g, h]);
4909
- return (A == null ? void 0 : A.message) === s("ai.errors.chatUnavailable") ? /* @__PURE__ */ v(U, {
4908
+ }) : null, ke = U(() => [...new Set(w.filter((T) => T.role === "user").filter((T) => !(h != null && h.includes(T.content))).map((T) => T.content).reverse())].slice(0, g), [w, g, h]);
4909
+ return (A == null ? void 0 : A.message) === s("ai.errors.chatUnavailable") ? /* @__PURE__ */ v(Q, {
4910
4910
  children: [d && ge, /* @__PURE__ */ n(Nr, {
4911
4911
  text: A.message
4912
4912
  })]
4913
- }) : /* @__PURE__ */ v(U, {
4913
+ }) : /* @__PURE__ */ v(Q, {
4914
4914
  children: [ge, /* @__PURE__ */ v(Ds, {
4915
4915
  ref: z,
4916
4916
  theme: o,
4917
4917
  onScroll: Y,
4918
4918
  children: [/* @__PURE__ */ n(ys, {
4919
- isVisible: H,
4919
+ isVisible: B,
4920
4920
  anchorElement: W.current,
4921
4921
  onClick: () => {
4922
4922
  var T, X;
@@ -4932,11 +4932,11 @@ function Ts({
4932
4932
  }), A && /* @__PURE__ */ n(le, {
4933
4933
  align: "left",
4934
4934
  children: A.message
4935
- }), D ? /* @__PURE__ */ n(Qe, {}) : /* @__PURE__ */ n(hs, {
4935
+ }), D ? /* @__PURE__ */ n(Ue, {}) : /* @__PURE__ */ n(hs, {
4936
4936
  messages: w
4937
4937
  }), p && _ && ((i = (a = _.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ n(Ls, {
4938
4938
  theme: o,
4939
- children: (l = _.followupQuestions) == null ? void 0 : l.slice(0, 2).map((T, X) => /* @__PURE__ */ n(He, {
4939
+ children: (l = _.followupQuestions) == null ? void 0 : l.slice(0, 2).map((T, X) => /* @__PURE__ */ n(Be, {
4940
4940
  align: "left",
4941
4941
  onClick: () => {
4942
4942
  M(T);
@@ -4956,7 +4956,7 @@ function Ts({
4956
4956
  children: [/* @__PURE__ */ n(bn, {
4957
4957
  onSendMessage: M,
4958
4958
  disabled: y || D,
4959
- onClearHistoryClick: B,
4959
+ onClearHistoryClick: H,
4960
4960
  suggestions: h || [],
4961
4961
  recentPrompts: ke,
4962
4962
  isLoading: c || D,
@@ -5054,7 +5054,7 @@ function Ps(e) {
5054
5054
  });
5055
5055
  }
5056
5056
  const qs = "#000000", Gs = "#FFFFFF";
5057
- function Bs({
5057
+ function Hs({
5058
5058
  isDarkBackground: e = !1
5059
5059
  }) {
5060
5060
  const t = e ? Gs : qs;
@@ -5115,7 +5115,7 @@ function Bs({
5115
5115
  })]
5116
5116
  });
5117
5117
  }
5118
- const Hs = /* @__PURE__ */ C("div", {
5118
+ const Bs = /* @__PURE__ */ C("div", {
5119
5119
  target: "eqdfbpm0",
5120
5120
  label: "LogoContainer"
5121
5121
  })("margin-left:14px;margin-top:3px;"), Ys = /* @__PURE__ */ C("div", {
@@ -5124,7 +5124,7 @@ const Hs = /* @__PURE__ */ C("div", {
5124
5124
  })("display:flex;flex-direction:column;justify-content:top;overflow:hidden;height:100%;background-color:", ({
5125
5125
  theme: e
5126
5126
  }) => e.aiChat.dataTopics.backgroundColor, ";");
5127
- function Us({
5127
+ function Qs({
5128
5128
  dataTopicsList: e,
5129
5129
  onDataTopicClick: t
5130
5130
  }) {
@@ -5134,28 +5134,28 @@ function Us({
5134
5134
  themeSettings: a
5135
5135
  } = L(), {
5136
5136
  t: i
5137
- } = E(), l = Q(() => e == null ? void 0 : e.map((p) => ({
5137
+ } = E(), l = U(() => e == null ? void 0 : e.map((p) => ({
5138
5138
  title: p,
5139
5139
  onClick: () => t(p)
5140
5140
  })), [e, t]), s = Ia(Da(a.aiChat.header.backgroundColor)) > 0.5;
5141
- return /* @__PURE__ */ v(U, {
5141
+ return /* @__PURE__ */ v(Q, {
5142
5142
  children: [r ? /* @__PURE__ */ n(jr, {
5143
5143
  title: i("ai.analyticsChatbot"),
5144
- leftNav: /* @__PURE__ */ n(Hs, {
5145
- children: /* @__PURE__ */ n(Bs, {
5144
+ leftNav: /* @__PURE__ */ n(Bs, {
5145
+ children: /* @__PURE__ */ n(Hs, {
5146
5146
  isDarkBackground: s
5147
5147
  })
5148
5148
  }),
5149
5149
  style: a.aiChat.header
5150
5150
  }) : null, /* @__PURE__ */ v(Ys, {
5151
5151
  theme: a,
5152
- children: [!l && /* @__PURE__ */ n(Qe, {}), l && /* @__PURE__ */ n(Ps, {
5152
+ children: [!l && /* @__PURE__ */ n(Ue, {}), l && /* @__PURE__ */ n(Ps, {
5153
5153
  dataTopics: l
5154
5154
  })]
5155
5155
  })]
5156
5156
  });
5157
5157
  }
5158
- function Qs() {
5158
+ function Us() {
5159
5159
  const [e, t] = Z(), [r, a] = Z(), {
5160
5160
  data: i,
5161
5161
  fetchStatus: l
@@ -5166,7 +5166,7 @@ function Qs() {
5166
5166
  t: d
5167
5167
  } = E(), g = d("ai.errors.noAvailableDataTopics"), f = N((c) => {
5168
5168
  c.length ? c.length === 1 && (a(void 0), t(c[0])) : a(g);
5169
- }, [g]), x = Q(() => {
5169
+ }, [g]), x = U(() => {
5170
5170
  if (i && l === "idle") {
5171
5171
  const c = (s != null && s.length ? i == null ? void 0 : i.filter((m) => s == null ? void 0 : s.includes(m.title)) : i).map((m) => m.title);
5172
5172
  return f(c), c;
@@ -5181,11 +5181,11 @@ function Qs() {
5181
5181
  text: d("ai.buttons.refresh"),
5182
5182
  onClick: u
5183
5183
  }
5184
- }) : x.length === 1 && !e ? /* @__PURE__ */ n(Qe, {}) : e ? /* @__PURE__ */ n(Ts, {
5184
+ }) : x.length === 1 && !e ? /* @__PURE__ */ n(Ue, {}) : e ? /* @__PURE__ */ n(Ts, {
5185
5185
  contextTitle: e,
5186
5186
  contextDetails: p,
5187
5187
  onGoBack: x.length === 1 ? void 0 : () => t(void 0)
5188
- }) : /* @__PURE__ */ n(Us, {
5188
+ }) : /* @__PURE__ */ n(Qs, {
5189
5189
  dataTopicsList: x,
5190
5190
  onDataTopicClick: (c) => t(c)
5191
5191
  });
@@ -5208,7 +5208,7 @@ const Fs = er({
5208
5208
  height: r,
5209
5209
  theme: i,
5210
5210
  tabIndex: 0,
5211
- children: /* @__PURE__ */ n(Qs, {})
5211
+ children: /* @__PURE__ */ n(Us, {})
5212
5212
  })
5213
5213
  });
5214
5214
  }), Vs = er({
@@ -5222,7 +5222,7 @@ const Fs = er({
5222
5222
  t: i
5223
5223
  } = E();
5224
5224
  if (a)
5225
- return /* @__PURE__ */ n(U, {
5225
+ return /* @__PURE__ */ n(Q, {
5226
5226
  children: i("ai.errors.unexpected")
5227
5227
  });
5228
5228
  const l = t ?? i("ai.errors.insightsNotAvailable");