@sisense/sdk-ui-preact 2.7.0 → 2.8.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 { b as Ve, e$ as Jr, f0 as Xr, P as Me, cr as qe, cJ as Kr, cI as ea, bJ as ta, bo as Ct, f1 as Se, j as Yt, cz as at, b1 as ra, aX as ze, f2 as aa, c1 as ia, f3 as oa, f4 as na, f5 as la, f6 as da, f7 as sa, cD as Qt, D as Ut, ae as Ft, a9 as Ye, H as ca, p as Qe, f8 as pa, f9 as ua, J as me, fa as $t, K as ga, i as f, w as Vt, l as I, V as n, C as E, ad as H, fb as ha, aE as ma, am as fa, T as G, bs as be, q as j, aB as ct, k as R, y as xe, ap as Jt, a5 as ba, bv as xa, A as se, fc as ka, as as ye, $ as Je, u as we, fd as ya, bF as wa, bH as _a, cL as ve, du as Xt, aq as pt, s as Ca, fe as Ie, a4 as _, c_ as q, n as v, c0 as va, ff as vt, a as Ge, fg as Sa, fh as Ma, fi as Kt, fj as Da, fk as Ia, ce as Aa, cf as La, fl as Ta, fm as Na, fn as ja, dO as Oa, cd as Ea, fo as za, cZ as er, fp as Ra, dl as Za, b6 as Wa, ew as qa, _ as Ga, aY as tr, aZ as rr, fq as Pa, cw as Ba, fr as Ha, ey as Ya, cW as Qa, fs as Ua } from "./use-common-filters-CVgB69Xe-f1301eeb.js";
1
+ import { j as Ve, f2 as Jr, f3 as Xr, k as Me, cs as qe, cK as Kr, cJ as ea, bK as ta, bp as Ct, f4 as Se, L as Yt, cA as at, b2 as ra, aY as ze, f5 as aa, c2 as ia, f6 as oa, f7 as na, f8 as la, f9 as da, fa as sa, cE as Qt, T as Ut, ae as Ft, a9 as Ye, H as ca, p as Qe, fb as pa, fc as ua, J as me, fd as $t, K as ga, d as f, g as Vt, t as D, V as n, w as E, ad as H, fe as ha, aE as ma, am as fa, h as G, bt as be, q as j, aB as ct, i as R, y as xe, ap as Jt, a5 as ba, bw as xa, A as se, ff as ka, as as ye, Z as Je, u as we, fg as ya, bG as wa, bI as _a, cM as ve, dv as Xt, aq as pt, Q as Ca, fh as De, a4 as _, c$ as q, W as v, c1 as va, fi as vt, a as Ge, fj as Sa, fk as Ma, fl as Kt, fm as Ia, fn as Da, cf as Aa, cg as La, fo as Ta, fp as Na, fq as ja, dP as Oa, ce as Ea, fr as za, c_ as er, fs as Ra, dm as Za, b7 as Wa, ez as qa, _ as Ga, aZ as tr, a_ as rr, ft as Pa, cx as Ba, fu as Ha, eB as Ya, cX as Qa, fv as Ua } from "./use-common-filters-BHBy4uv6-4f9f9055.js";
2
2
  var Fa = Object.defineProperty, $a = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, Pe = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Fa(e, t, {
3
3
  enumerable: !0,
4
4
  configurable: !0,
@@ -702,13 +702,13 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
702
702
  function hi(e) {
703
703
  return re(e, Ze);
704
704
  }
705
- function Dt(e, t = "data-source-placeholder") {
705
+ function It(e, t = "data-source-placeholder") {
706
706
  if (!e)
707
707
  return t;
708
708
  const r = typeof e == "object" && "title" in e ? e.title : e;
709
709
  return ti(r);
710
710
  }
711
- function It(e, t = !0) {
711
+ function Dt(e, t = !0) {
712
712
  const r = [];
713
713
  return t && r.push("measureFactory"), X(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
714
714
  }
@@ -744,12 +744,12 @@ const At = `
744
744
  idString: e.id,
745
745
  widgetTypeString: "chart",
746
746
  titleString: e.title,
747
- dataSourceString: Dt(e.dataSource),
747
+ dataSourceString: It(e.dataSource),
748
748
  chartTypeString: yi(e.chartType),
749
749
  dataOptionsString: hi(e.dataOptions),
750
750
  filtersString: Lt(e.filters),
751
751
  componentString: "ChartWidget",
752
- extraImportsString: It(e.filters || [], a),
752
+ extraImportsString: Dt(e.filters || [], a),
753
753
  styleOptionsString: re(e.styleOptions || {}, Ze),
754
754
  drilldownOptionsString: re(e.drilldownOptions || {}, Ze)
755
755
  };
@@ -760,11 +760,11 @@ const At = `
760
760
  idString: e.id,
761
761
  widgetTypeString: "pivot",
762
762
  titleString: e.title,
763
- dataSourceString: Dt(e.dataSource),
763
+ dataSourceString: It(e.dataSource),
764
764
  dataOptionsString: re(e.dataOptions),
765
765
  filtersString: Lt(e.filters),
766
766
  componentString: "PivotTableWidget",
767
- extraImportsString: It(e.filters || [], a),
767
+ extraImportsString: Dt(e.filters || [], a),
768
768
  styleOptionsString: re(e.styleOptions || {}, Ze)
769
769
  };
770
770
  return it(r.pivot, i, t);
@@ -872,7 +872,7 @@ const At = `
872
872
  }, Nt = (e, t) => {
873
873
  var r, a, i, l;
874
874
  return t === "x" ? (a = (r = e.category) != null ? r : e.x) == null ? void 0 : a.map((d) => at(d).column.name).join(", ") : (l = (i = e.value) != null ? i : e.y) == null ? void 0 : l.map((d) => at(d).column.name).join(", ");
875
- }, Di = (e, t, r, a) => {
875
+ }, Ii = (e, t, r, a) => {
876
876
  let i;
877
877
  return a && e in Tt ? i = ze(ze(Si, {
878
878
  subtype: Tt[`${e}`]
@@ -894,13 +894,13 @@ const At = `
894
894
  }
895
895
  }
896
896
  }, r) : i = ze(aa(), r), i;
897
- }, Ii = (e, t, r = !0) => {
897
+ }, Di = (e, t, r = !0) => {
898
898
  const {
899
899
  chartFamily: a,
900
900
  chartType: i,
901
901
  axesMapping: l = {},
902
902
  styleOptions: d = {}
903
- } = t, u = Mi(e, a, l), c = Di(i, l, d, r);
903
+ } = t, u = Mi(e, a, l), c = Ii(i, l, d, r);
904
904
  return {
905
905
  dataOptions: u,
906
906
  chartStyleOptions: c
@@ -982,7 +982,7 @@ const Li = (e) => {
982
982
  } = ji(x), h = Ni(m), {
983
983
  dataOptions: w,
984
984
  chartStyleOptions: C
985
- } = Ii(s, b, r), y = O(O({}, C), p);
985
+ } = Di(s, b, r), y = O(O({}, C), p);
986
986
  return {
987
987
  widgetType: "chart",
988
988
  id: l,
@@ -1009,7 +1009,7 @@ var zi = Object.defineProperty, Ri = Object.defineProperties, Zi = Object.getOwn
1009
1009
  configurable: !0,
1010
1010
  writable: !0,
1011
1011
  value: r
1012
- }) : e[t] = r, D = (e, t) => {
1012
+ }) : e[t] = r, I = (e, t) => {
1013
1013
  for (var r in t || (t = {}))
1014
1014
  cr.call(t, r) && jt(e, r, t[r]);
1015
1015
  if (Be)
@@ -1078,20 +1078,21 @@ class Wi extends Ta {
1078
1078
  });
1079
1079
  }
1080
1080
  mutate(t, r) {
1081
- return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, T(D({}, this.options), {
1081
+ return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, T(I({}, this.options), {
1082
1082
  variables: typeof t < "u" ? t : this.options.variables
1083
1083
  })), this.currentMutation.addObserver(this), this.currentMutation.execute();
1084
1084
  }
1085
1085
  updateResult() {
1086
- const t = this.currentMutation ? this.currentMutation.state : ja(), r = T(D({}, t), {
1087
- isLoading: t.status === "loading",
1086
+ const t = this.currentMutation ? this.currentMutation.state : ja(), r = t.status === "loading", a = T(I({}, t), {
1087
+ isLoading: r,
1088
+ isPending: r,
1088
1089
  isSuccess: t.status === "success",
1089
1090
  isError: t.status === "error",
1090
1091
  isIdle: t.status === "idle",
1091
1092
  mutate: this.mutate,
1092
1093
  reset: this.reset
1093
1094
  });
1094
- this.currentResult = r;
1095
+ this.currentResult = a;
1095
1096
  }
1096
1097
  notify(t) {
1097
1098
  Kt.batch(() => {
@@ -1113,7 +1114,7 @@ class Wi extends Ta {
1113
1114
  }
1114
1115
  }
1115
1116
  function ut(e, t, r) {
1116
- const a = Sa(e, t), i = Ie({
1117
+ const a = Sa(e, t), i = De({
1117
1118
  context: a.context
1118
1119
  }), [l] = R(() => new Wi(i, a));
1119
1120
  xe(() => {
@@ -1122,9 +1123,9 @@ function ut(e, t, r) {
1122
1123
  const d = Ma(j((c) => l.subscribe(Kt.batchCalls(c)), [l]), () => l.getCurrentResult(), () => l.getCurrentResult()), u = j((c, g) => {
1123
1124
  l.mutate(c, g).catch(qi);
1124
1125
  }, [l]);
1125
- if (d.error && Da(l.options.useErrorBoundary, [d.error]))
1126
+ if (d.error && Ia(l.options.useErrorBoundary, [d.error]))
1126
1127
  throw d.error;
1127
- return T(D({}, d), {
1128
+ return T(I({}, d), {
1128
1129
  mutate: u,
1129
1130
  mutateAsync: d.mutate
1130
1131
  });
@@ -1187,7 +1188,7 @@ const Pi = new Ft({
1187
1188
  var c;
1188
1189
  return `${d}_${(c = u == null ? void 0 : u.dashboardId) != null ? c : ""}`;
1189
1190
  }, []), i = j((d, u, c) => {
1190
- r((g) => T(D({}, g), {
1191
+ r((g) => T(I({}, g), {
1191
1192
  [a(u, c)]: d
1192
1193
  }));
1193
1194
  }, [a]), l = j((d, u) => t[a(d, u)], [t, a]);
@@ -1331,13 +1332,13 @@ const $i = (e) => {
1331
1332
  refetch: s
1332
1333
  } = be({
1333
1334
  queryKey: ["getQueryRecommendations", t, u, d],
1334
- queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t, D({
1335
+ queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t, I({
1335
1336
  numOfRecommendations: u
1336
1337
  }, l ? {
1337
1338
  userPrompt: l
1338
1339
  } : null)),
1339
1340
  enabled: !!d && c
1340
- }), m = G(() => o == null ? void 0 : o.map((h) => T(D({}, h), {
1341
+ }), m = G(() => o == null ? void 0 : o.map((h) => T(I({}, h), {
1341
1342
  widgetProps: h.jaql ? Ae(h, {
1342
1343
  useCustomizedStyleOptions: a
1343
1344
  }) : void 0
@@ -1358,13 +1359,13 @@ const $i = (e) => {
1358
1359
  enableInsights: !0,
1359
1360
  numOfRecommendations: 4,
1360
1361
  numOfRecentPrompts: 5
1361
- }), br = /* @__PURE__ */ Ye(D({}, fr)), ae = () => pt(br), Ji = ({
1362
+ }), br = /* @__PURE__ */ Ye(I({}, fr)), ae = () => pt(br), Ji = ({
1362
1363
  children: e,
1363
1364
  value: t
1364
1365
  }) => {
1365
1366
  const {
1366
1367
  t: r
1367
- } = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), T(D({}, fr), {
1368
+ } = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), T(I({}, fr), {
1368
1369
  inputPromptText: r("ai.config.inputPromptText"),
1369
1370
  welcomeText: r("ai.config.welcomeText"),
1370
1371
  suggestionsWelcomeText: r("ai.config.suggestionsWelcomeText")
@@ -1390,7 +1391,7 @@ const $i = (e) => {
1390
1391
  enabled: !!t && !!e
1391
1392
  });
1392
1393
  }, xr = (e) => {
1393
- const t = ee(), r = Ie();
1394
+ const t = ee(), r = De();
1394
1395
  return ut({
1395
1396
  mutationFn: () => ce(void 0, null, function* () {
1396
1397
  if (!(!t || !e))
@@ -1450,7 +1451,7 @@ const $i = (e) => {
1450
1451
  isLoading: r
1451
1452
  };
1452
1453
  }, to = (e, t, r) => {
1453
- const a = Ie(), i = ee(), l = ut({
1454
+ const a = De(), i = ee(), l = ut({
1454
1455
  mutationFn: () => ce(void 0, null, function* () {
1455
1456
  if (!(!i || !e))
1456
1457
  return i.ai.chat.create(e, r);
@@ -1478,7 +1479,7 @@ const $i = (e) => {
1478
1479
  throw Error(`${t}${JSON.stringify(e)}`);
1479
1480
  }
1480
1481
  }, ao = (e, t) => {
1481
- const r = Ie(), a = j((c) => {
1482
+ const r = De(), a = j((c) => {
1482
1483
  e && r.setQueriesData([ht, e], (g) => g && [...g, c]);
1483
1484
  }, [r, e]), {
1484
1485
  t: i
@@ -1725,7 +1726,7 @@ function xo({
1725
1726
  }) {
1726
1727
  const [i, l] = R(!1), {
1727
1728
  themeSettings: d
1728
- } = I();
1729
+ } = D();
1729
1730
  return /* @__PURE__ */ v(mo, {
1730
1731
  children: [/* @__PURE__ */ n(fo, {
1731
1732
  onClick: () => l((u) => !u),
@@ -1782,7 +1783,7 @@ function wo({
1782
1783
  onSelect: a
1783
1784
  }].filter((b) => b.title.slice(0, l.length) === l), {
1784
1785
  themeSettings: c
1785
- } = I(), {
1786
+ } = D(), {
1786
1787
  t: g
1787
1788
  } = E(), x = u.length === 1;
1788
1789
  return /* @__PURE__ */ n(er, {
@@ -1803,7 +1804,7 @@ function wo({
1803
1804
  width: i == null ? void 0 : i.offsetWidth
1804
1805
  },
1805
1806
  theme: c,
1806
- children: [r && /* @__PURE__ */ n(Fe, {}), !r && !d && u.map((b) => /* @__PURE__ */ n(xo, T(D({}, b), {
1807
+ children: [r && /* @__PURE__ */ n(Fe, {}), !r && !d && u.map((b) => /* @__PURE__ */ n(xo, T(I({}, b), {
1807
1808
  alwaysExpanded: x
1808
1809
  }), b.title)), d && /* @__PURE__ */ n(yo, {
1809
1810
  theme: c,
@@ -1819,7 +1820,7 @@ function Le({
1819
1820
  }) {
1820
1821
  const {
1821
1822
  themeSettings: a
1822
- } = I();
1823
+ } = D();
1823
1824
  return /* @__PURE__ */ n(Za, {
1824
1825
  title: e,
1825
1826
  placement: t,
@@ -1878,8 +1879,8 @@ const _o = 500, Co = /* @__PURE__ */ _("div", {
1878
1879
  ` : q`
1879
1880
  opacity: 1;
1880
1881
  cursor: pointer;
1881
- `), Do = 34;
1882
- function Io({
1882
+ `), Io = 34;
1883
+ function Do({
1883
1884
  onSendMessage: e,
1884
1885
  onClearHistoryClick: t,
1885
1886
  disabled: r,
@@ -1908,7 +1909,7 @@ function Io({
1908
1909
  u == null || u(y.target.value), g(y.target.value);
1909
1910
  }, [u]), m = se(null);
1910
1911
  Ge(() => {
1911
- m.current && (m.current.style.height = "inherit", m.current.style.height = `${Math.max(m.current.scrollHeight + 2, Do)}px`);
1912
+ m.current && (m.current.style.height = "inherit", m.current.style.height = `${Math.max(m.current.scrollHeight + 2, Io)}px`);
1912
1913
  }, [c]), Ge(() => {
1913
1914
  m.current && m.current.focus({
1914
1915
  preventScroll: !0
@@ -1916,7 +1917,7 @@ function Io({
1916
1917
  }, []);
1917
1918
  const {
1918
1919
  themeSettings: h
1919
- } = I(), {
1920
+ } = D(), {
1920
1921
  t: w
1921
1922
  } = E(), C = j((y) => {
1922
1923
  var M;
@@ -2036,11 +2037,11 @@ const zt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
2036
2037
  lt: "<",
2037
2038
  nbsp: " ",
2038
2039
  quot: "“"
2039
- }, Lo = ["style", "script"], To = ["src", "href", "data", "formAction", "srcDoc", "action"], No = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, jo = /mailto:/i, Oo = /\n{2,}$/, yr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Eo = /^ *> ?/gm, zo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ro = /^ {2,}\n/, Zo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, wr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, _r = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Wo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, qo = /^(?:\n *)*\n/, Go = /\r\n?/g, Po = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Bo = /^\[\^([^\]]+)]/, Ho = /\f/g, Yo = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Qo = /^\s*?\[(x|\s)\]/, Cr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, vr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Sr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, lt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Uo = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Mr = /^<!--[\s\S]*?(?:-->)/, Fo = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, $o = /^\{.*\}$/, Vo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Jo = /^<([^ >]+@[^ >]+)>/, Xo = /^<([^ >]+:\/[^ >]+)>/, Ko = /-([a-z])?/gi, Dr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, en = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, tn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, rn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, an = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, on = /\t/g, nn = /(^ *\||\| *$)/g, ln = /^ *:-+: *$/, dn = /^ *:-+ *$/, sn = /^ *-+: *$/, $e = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", cn = new RegExp(`^([*_])\\1${$e}\\1\\1(?!\\1)`), pn = new RegExp(`^([*_])${$e}\\1(?!\\1)`), un = new RegExp(`^(==)${$e}\\1`), gn = new RegExp(`^(~~)${$e}\\1`), hn = /^\\([^0-9A-Za-z\s])/, Zt = /\\([^0-9A-Za-z\s])/g, mn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, fn = /^\n+/, bn = /^([ \t]*)/, xn = /\\([^\\])/g, kn = /(?:^|\n)( *)$/, xt = "(?:\\d+\\.)", kt = "(?:[*+-])";
2040
- function Ir(e) {
2040
+ }, Lo = ["style", "script"], To = ["src", "href", "data", "formAction", "srcDoc", "action"], No = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, jo = /mailto:/i, Oo = /\n{2,}$/, yr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Eo = /^ *> ?/gm, zo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Ro = /^ {2,}\n/, Zo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, wr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, _r = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Wo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, qo = /^(?:\n *)*\n/, Go = /\r\n?/g, Po = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Bo = /^\[\^([^\]]+)]/, Ho = /\f/g, Yo = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Qo = /^\s*?\[(x|\s)\]/, Cr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, vr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Sr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, lt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Uo = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Mr = /^<!--[\s\S]*?(?:-->)/, Fo = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, $o = /^\{.*\}$/, Vo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Jo = /^<([^ >]+@[^ >]+)>/, Xo = /^<([^ >]+:\/[^ >]+)>/, Ko = /-([a-z])?/gi, Ir = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, en = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, tn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, rn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, an = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, on = /\t/g, nn = /(^ *\||\| *$)/g, ln = /^ *:-+: *$/, dn = /^ *:-+ *$/, sn = /^ *-+: *$/, $e = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", cn = new RegExp(`^([*_])\\1${$e}\\1\\1(?!\\1)`), pn = new RegExp(`^([*_])${$e}\\1(?!\\1)`), un = new RegExp(`^(==)${$e}\\1`), gn = new RegExp(`^(~~)${$e}\\1`), hn = /^\\([^0-9A-Za-z\s])/, Zt = /\\([^0-9A-Za-z\s])/g, mn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, fn = /^\n+/, bn = /^([ \t]*)/, xn = /\\([^\\])/g, kn = /(?:^|\n)( *)$/, xt = "(?:\\d+\\.)", kt = "(?:[*+-])";
2041
+ function Dr(e) {
2041
2042
  return "( *)(" + (e === 1 ? xt : kt) + ") +";
2042
2043
  }
2043
- const Ar = Ir(1), Lr = Ir(2);
2044
+ const Ar = Dr(1), Lr = Dr(2);
2044
2045
  function Tr(e) {
2045
2046
  return new RegExp("^" + (e === 1 ? Ar : Lr));
2046
2047
  }
@@ -2074,9 +2075,9 @@ function Wt(e, t) {
2074
2075
  b = C;
2075
2076
  const y = c.inline, M = c.list;
2076
2077
  let A;
2077
- c.list = !0, C ? (c.inline = !1, A = De(h) + `
2078
+ c.list = !0, C ? (c.inline = !1, A = Ie(h) + `
2078
2079
 
2079
- `) : (c.inline = !0, A = De(h));
2080
+ `) : (c.inline = !0, A = Ie(h));
2080
2081
  const S = u(A, c);
2081
2082
  return c.inline = y, c.list = M, S;
2082
2083
  }),
@@ -2094,8 +2095,8 @@ function Wt(e, t) {
2094
2095
  }))
2095
2096
  };
2096
2097
  }
2097
- const vn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Sn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, zr = [yr, wr, _r, Cr, Sr, vr, Dr, Or, Er], Mn = [...zr, /^[^\n]+(?: \n|\n{2,})/, lt, Mr, dt];
2098
- function De(e) {
2098
+ const vn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Sn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, zr = [yr, wr, _r, Cr, Sr, vr, Ir, Or, Er], Mn = [...zr, /^[^\n]+(?: \n|\n{2,})/, lt, Mr, dt];
2099
+ function Ie(e) {
2099
2100
  let t = e.length;
2100
2101
  for (; t > 0 && e[t - 1] <= " "; )
2101
2102
  t--;
@@ -2104,7 +2105,7 @@ function De(e) {
2104
2105
  function _e(e) {
2105
2106
  return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
2106
2107
  }
2107
- function Dn(e) {
2108
+ function In(e) {
2108
2109
  return sn.test(e) ? "right" : ln.test(e) ? "center" : dn.test(e) ? "left" : null;
2109
2110
  }
2110
2111
  function qt(e, t, r, a) {
@@ -2121,9 +2122,9 @@ function qt(e, t, r, a) {
2121
2122
  c.trim() === "|" && (u(), a) ? g !== 0 && g !== x.length - 1 && l.push([]) : d += c;
2122
2123
  }), u(), r.inTable = i, l;
2123
2124
  }
2124
- function In(e, t, r) {
2125
+ function Dn(e, t, r) {
2125
2126
  r.inline = !0;
2126
- const a = e[2] ? e[2].replace(nn, "").split("|").map(Dn) : [], i = e[3] ? function(d, u, c) {
2127
+ const a = e[2] ? e[2].replace(nn, "").split("|").map(In) : [], i = e[3] ? function(d, u, c) {
2127
2128
  return d.trim().split(`
2128
2129
  `).map(function(g) {
2129
2130
  return qt(g, u, c, !0);
@@ -2174,7 +2175,7 @@ function An(e, t) {
2174
2175
  e.split(`
2175
2176
  `).every((i) => (i += `
2176
2177
  `, !zr.some((l) => l.test(i)) && (r += i, !!i.trim())));
2177
- const a = De(r);
2178
+ const a = Ie(r);
2178
2179
  return a == "" ? null : [r, , a];
2179
2180
  }
2180
2181
  const Ln = /(javascript|vbscript|data(?!:image)):/i;
@@ -2242,7 +2243,7 @@ function En(e = "", t = {}) {
2242
2243
  o = o.replace(Yo, "");
2243
2244
  let p = !1;
2244
2245
  t.forceInline ? p = !0 : t.forceBlock || (p = an.test(o) === !1);
2245
- const s = g(c(p ? o : `${De(o).replace(fn, "")}
2246
+ const s = g(c(p ? o : `${Ie(o).replace(fn, "")}
2246
2247
 
2247
2248
  `, {
2248
2249
  inline: p
@@ -2371,7 +2372,7 @@ function En(e = "", t = {}) {
2371
2372
  order: 0,
2372
2373
  parse: (o) => ({
2373
2374
  lang: void 0,
2374
- text: De(o[0].replace(/^ {4}/gm, "")).replace(Zt, "$1")
2375
+ text: Ie(o[0].replace(/^ {4}/gm, "")).replace(Zt, "$1")
2375
2376
  }),
2376
2377
  render: (o, p, s) => r("pre", {
2377
2378
  key: s.key
@@ -2620,9 +2621,9 @@ function En(e = "", t = {}) {
2620
2621
  }, o.fallbackChildren)
2621
2622
  },
2622
2623
  [k.table]: {
2623
- match: te(Dr),
2624
+ match: te(Ir),
2624
2625
  order: 1,
2625
- parse: In,
2626
+ parse: Dn,
2626
2627
  render(o, p, s) {
2627
2628
  const m = o;
2628
2629
  return r("table", {
@@ -2807,7 +2808,7 @@ const zn = (e) => {
2807
2808
  }) => {
2808
2809
  const {
2809
2810
  themeSettings: r
2810
- } = I();
2811
+ } = D();
2811
2812
  return /* @__PURE__ */ n(Rn, {
2812
2813
  theme: r,
2813
2814
  align: e,
@@ -2847,12 +2848,12 @@ function Zr({
2847
2848
  }) {
2848
2849
  const {
2849
2850
  themeSettings: r
2850
- } = I();
2851
+ } = D();
2851
2852
  return /* @__PURE__ */ v(Wn, {
2852
2853
  children: [/* @__PURE__ */ n(qn, {
2853
2854
  theme: r,
2854
2855
  children: e
2855
- }), /* @__PURE__ */ n(Ia, {}), t && /* @__PURE__ */ n(Gn, {
2856
+ }), /* @__PURE__ */ n(Da, {}), t && /* @__PURE__ */ n(Gn, {
2856
2857
  onClick: t.onClick,
2857
2858
  children: t.text
2858
2859
  })]
@@ -2865,7 +2866,7 @@ const Ee = /* @__PURE__ */ _("div", {
2865
2866
  function yt() {
2866
2867
  const {
2867
2868
  themeSettings: e
2868
- } = I(), t = e.aiChat.icons.color;
2869
+ } = D(), t = e.aiChat.icons.color;
2869
2870
  return /* @__PURE__ */ v("div", {
2870
2871
  className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
2871
2872
  "aria-label": "loading dots",
@@ -2953,7 +2954,7 @@ function He({
2953
2954
  }) {
2954
2955
  const {
2955
2956
  themeSettings: d
2956
- } = I();
2957
+ } = D();
2957
2958
  return /* @__PURE__ */ n(Pn, {
2958
2959
  align: t,
2959
2960
  children: /* @__PURE__ */ n(Bn, {
@@ -3199,7 +3200,7 @@ const Qn = Qe(pa, {
3199
3200
  TransitionComponent: U = vt,
3200
3201
  transitionDuration: P = i,
3201
3202
  TransitionProps: Y
3202
- } = l, F = ur(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 = T(D({}, r), {
3203
+ } = l, F = ur(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 = T(I({}, r), {
3203
3204
  disableEscapeKeyDown: p,
3204
3205
  fullScreen: s,
3205
3206
  fullWidth: m,
@@ -3211,9 +3212,9 @@ const Qn = Qe(pa, {
3211
3212
  C && C(ge), V.current && (V.current = null, w && w(ge), y && y(ge, "backdropClick"));
3212
3213
  }, Q = ka(u), le = G(() => ({
3213
3214
  titleId: Q
3214
- }), [Q]), ue = D({
3215
+ }), [Q]), ue = I({
3215
3216
  transition: U
3216
- }, Z), ke = D({
3217
+ }, Z), ke = I({
3217
3218
  transition: Y,
3218
3219
  paper: S,
3219
3220
  backdrop: x
@@ -3254,13 +3255,13 @@ const Qn = Qe(pa, {
3254
3255
  role: "presentation"
3255
3256
  }
3256
3257
  });
3257
- return /* @__PURE__ */ we(J, T(D(D({
3258
+ return /* @__PURE__ */ we(J, T(I(I({
3258
3259
  closeAfterTransition: !0,
3259
3260
  slots: {
3260
3261
  backdrop: je
3261
3262
  },
3262
3263
  slotProps: {
3263
- backdrop: D({
3264
+ backdrop: I({
3264
3265
  transitionDuration: P,
3265
3266
  as: g
3266
3267
  }, Hr)
@@ -3270,11 +3271,11 @@ const Qn = Qe(pa, {
3270
3271
  open: M,
3271
3272
  onClick: W
3272
3273
  }, Ne), F), {
3273
- children: /* @__PURE__ */ we($r, T(D({}, Vr), {
3274
- children: /* @__PURE__ */ we(Ur, T(D({
3274
+ children: /* @__PURE__ */ we($r, T(I({}, Vr), {
3275
+ children: /* @__PURE__ */ we(Ur, T(I({
3275
3276
  onMouseDown: z
3276
3277
  }, Fr), {
3277
- children: /* @__PURE__ */ we(Yr, T(D({
3278
+ children: /* @__PURE__ */ we(Yr, T(I({
3278
3279
  as: A,
3279
3280
  elevation: 24,
3280
3281
  role: "dialog",
@@ -3631,7 +3632,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
3631
3632
  }) => {
3632
3633
  const {
3633
3634
  themeSettings: t
3634
- } = I();
3635
+ } = D();
3635
3636
  return /* @__PURE__ */ n(Le, {
3636
3637
  title: e,
3637
3638
  children: /* @__PURE__ */ n(Te, {
@@ -3651,7 +3652,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
3651
3652
  r(null);
3652
3653
  }, {
3653
3654
  themeSettings: l
3654
- } = I();
3655
+ } = D();
3655
3656
  return /* @__PURE__ */ v(H, {
3656
3657
  children: [/* @__PURE__ */ n(Te, {
3657
3658
  onClick: a,
@@ -3694,7 +3695,7 @@ const wt = (e) => tr(e.chart.backgroundColor), rl = ({
3694
3695
  }) => {
3695
3696
  const {
3696
3697
  themeSettings: t
3697
- } = I(), {
3698
+ } = D(), {
3698
3699
  t: r
3699
3700
  } = E();
3700
3701
  return /* @__PURE__ */ n(Le, {
@@ -3737,7 +3738,7 @@ function ll({
3737
3738
  }) {
3738
3739
  const [t, r] = R(!1), {
3739
3740
  themeSettings: a
3740
- } = I(), {
3741
+ } = D(), {
3741
3742
  inlineElement: i,
3742
3743
  expandedElement: l
3743
3744
  } = G(() => {
@@ -3764,10 +3765,10 @@ function ll({
3764
3765
  if (Ba(d.chartType))
3765
3766
  x = /* @__PURE__ */ n("div", {
3766
3767
  className: "csdk-h-[245px]",
3767
- children: /* @__PURE__ */ n(ve, T(D({}, d), {
3768
+ children: /* @__PURE__ */ n(ve, T(I({}, d), {
3768
3769
  styleOptions: g
3769
3770
  }))
3770
- }), b = /* @__PURE__ */ n(ve, T(D({}, d), {
3771
+ }), b = /* @__PURE__ */ n(ve, T(I({}, d), {
3771
3772
  styleOptions: {
3772
3773
  header: {
3773
3774
  hidden: !0
@@ -3775,21 +3776,21 @@ function ll({
3775
3776
  }
3776
3777
  }));
3777
3778
  else {
3778
- const o = T(D({}, c), {
3779
+ const o = T(I({}, c), {
3779
3780
  header: {
3780
3781
  hidden: !0
3781
3782
  }
3782
- }), p = D(T(D({}, c), {
3783
+ }), p = I(T(I({}, c), {
3783
3784
  legend: void 0,
3784
3785
  xAxis: void 0,
3785
3786
  yAxis: void 0
3786
3787
  }), g);
3787
3788
  delete p.legend, delete p.xAxis, delete p.yAxis, x = /* @__PURE__ */ n("div", {
3788
- children: /* @__PURE__ */ n(ve, T(D({}, d), {
3789
+ children: /* @__PURE__ */ n(ve, T(I({}, d), {
3789
3790
  styleOptions: p
3790
3791
  }))
3791
- }), b = /* @__PURE__ */ n(ve, T(D({}, d), {
3792
- styleOptions: D({
3792
+ }), b = /* @__PURE__ */ n(ve, T(I({}, d), {
3793
+ styleOptions: I({
3793
3794
  cornerRadius: "None"
3794
3795
  }, o)
3795
3796
  }));
@@ -3853,7 +3854,7 @@ function sl({
3853
3854
  }) {
3854
3855
  const {
3855
3856
  themeSettings: r
3856
- } = I(), {
3857
+ } = D(), {
3857
3858
  t: a
3858
3859
  } = E();
3859
3860
  return /* @__PURE__ */ n(Le, {
@@ -3892,7 +3893,7 @@ function pl({
3892
3893
  }) {
3893
3894
  const {
3894
3895
  themeSettings: r
3895
- } = I(), {
3896
+ } = D(), {
3896
3897
  t: a
3897
3898
  } = E();
3898
3899
  return /* @__PURE__ */ n(Le, {
@@ -3958,7 +3959,7 @@ function st({
3958
3959
  });
3959
3960
  }, [l, e, t, r]), 200), [u, c] = ul(), g = G(() => a === "onHover" ? c : a !== "never", [c, a]), {
3960
3961
  themeSettings: x
3961
- } = I();
3962
+ } = D();
3962
3963
  return /* @__PURE__ */ n(gl, {
3963
3964
  ref: u,
3964
3965
  theme: x,
@@ -4015,7 +4016,7 @@ function fl({
4015
4016
  function bl() {
4016
4017
  const {
4017
4018
  themeSettings: e
4018
- } = I();
4019
+ } = D();
4019
4020
  return /* @__PURE__ */ n("svg", {
4020
4021
  width: "24",
4021
4022
  height: "25",
@@ -4059,7 +4060,7 @@ function wl({
4059
4060
  enableInsights: a
4060
4061
  } = ae(), {
4061
4062
  themeSettings: i
4062
- } = I(), {
4063
+ } = D(), {
4063
4064
  queryTitle: l,
4064
4065
  chartRecommendations: d,
4065
4066
  jaql: u,
@@ -4145,7 +4146,7 @@ function Sl({
4145
4146
  } = E();
4146
4147
  return /* @__PURE__ */ n(H, {
4147
4148
  children: e.map((r, a) => /* @__PURE__ */ n(za, {
4148
- fallbackRender: (i) => vl(T(D({}, i), {
4149
+ fallbackRender: (i) => vl(T(I({}, i), {
4149
4150
  displayMessage: t("ai.errors.unexpected")
4150
4151
  })),
4151
4152
  children: /* @__PURE__ */ n(Cl, {
@@ -4183,7 +4184,7 @@ function Ml({
4183
4184
  })
4184
4185
  });
4185
4186
  }
4186
- const Dl = /* @__PURE__ */ _("button", {
4187
+ const Il = /* @__PURE__ */ _("button", {
4187
4188
  target: "e1p0q0z20",
4188
4189
  label: "Button"
4189
4190
  })("font-size:inherit;line-height:inherit;box-sizing:border-box;border-width:1px;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;cursor:pointer;text-align:left;max-width:85%;font-family:", ({
@@ -4237,14 +4238,14 @@ function Ht({
4237
4238
  }) {
4238
4239
  const {
4239
4240
  themeSettings: r
4240
- } = I();
4241
- return /* @__PURE__ */ n(Dl, {
4241
+ } = D();
4242
+ return /* @__PURE__ */ n(Il, {
4242
4243
  onClick: t,
4243
4244
  theme: r,
4244
4245
  children: e
4245
4246
  });
4246
4247
  }
4247
- const Il = /* @__PURE__ */ _("div", {
4248
+ const Dl = /* @__PURE__ */ _("div", {
4248
4249
  target: "eu11cc50",
4249
4250
  label: "ListContainer"
4250
4251
  })("display:flex;flex-direction:column;align-items:flex-start;row-gap:", ({
@@ -4258,8 +4259,8 @@ function Al({
4258
4259
  t: r
4259
4260
  } = E(), [a, i] = R(!0), l = G(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
4260
4261
  themeSettings: d
4261
- } = I();
4262
- return /* @__PURE__ */ v(Il, {
4262
+ } = D();
4263
+ return /* @__PURE__ */ v(Dl, {
4263
4264
  "aria-label": "list of suggested questions",
4264
4265
  theme: d,
4265
4266
  children: [l.map((u) => /* @__PURE__ */ n(Ht, {
@@ -4291,7 +4292,7 @@ const Ll = /* @__PURE__ */ _("div", {
4291
4292
  function Nl() {
4292
4293
  const {
4293
4294
  themeSettings: e
4294
- } = I();
4295
+ } = D();
4295
4296
  return /* @__PURE__ */ n(Tl, {
4296
4297
  children: Array.from({
4297
4298
  length: 3
@@ -4369,7 +4370,7 @@ function Rl({
4369
4370
  function Zl() {
4370
4371
  const {
4371
4372
  themeSettings: e
4372
- } = I();
4373
+ } = D();
4373
4374
  return /* @__PURE__ */ n("svg", {
4374
4375
  width: "24",
4375
4376
  height: "24",
@@ -4405,7 +4406,7 @@ const Wl = (e, t) => {
4405
4406
  }) => {
4406
4407
  const {
4407
4408
  themeSettings: t
4408
- } = I();
4409
+ } = D();
4409
4410
  return /* @__PURE__ */ n(ql, {
4410
4411
  theme: t,
4411
4412
  onClick: e,
@@ -4471,7 +4472,7 @@ function Ql({
4471
4472
  customPrompt: b
4472
4473
  } = ae(), {
4473
4474
  themeSettings: o
4474
- } = I(), {
4475
+ } = D(), {
4475
4476
  data: p,
4476
4477
  isLoading: s,
4477
4478
  isError: m
@@ -4564,7 +4565,7 @@ function Ql({
4564
4565
  }), /* @__PURE__ */ v(Hl, {
4565
4566
  ref: W,
4566
4567
  theme: o,
4567
- children: [/* @__PURE__ */ n(Io, {
4568
+ children: [/* @__PURE__ */ n(Do, {
4568
4569
  onSendMessage: M,
4569
4570
  disabled: y || A,
4570
4571
  onClearHistoryClick: B,
@@ -4611,7 +4612,7 @@ function Jl(e) {
4611
4612
  onClick: a
4612
4613
  } = e, {
4613
4614
  themeSettings: i
4614
- } = I();
4615
+ } = D();
4615
4616
  return /* @__PURE__ */ v(Ul, {
4616
4617
  onClick: a,
4617
4618
  theme: i,
@@ -4649,7 +4650,7 @@ function td(e) {
4649
4650
  dataTopics: t
4650
4651
  } = e, {
4651
4652
  themeSettings: r
4652
- } = I(), {
4653
+ } = D(), {
4653
4654
  t: a
4654
4655
  } = E();
4655
4656
  return /* @__PURE__ */ v(Xl, {
@@ -4659,7 +4660,7 @@ function td(e) {
4659
4660
  }), /* @__PURE__ */ v(ed, {
4660
4661
  theme: r,
4661
4662
  children: [a("ai.chatbotDescription"), /* @__PURE__ */ n("br", {}), /* @__PURE__ */ n("br", {}), a("ai.topicSelectPrompt")]
4662
- }), t.map((i) => /* @__PURE__ */ Ra(Jl, T(D({}, i), {
4663
+ }), t.map((i) => /* @__PURE__ */ Ra(Jl, T(I({}, i), {
4663
4664
  key: i.title
4664
4665
  })))]
4665
4666
  });
@@ -4743,7 +4744,7 @@ function ld({
4743
4744
  enableHeader: r
4744
4745
  } = ae(), {
4745
4746
  themeSettings: a
4746
- } = I(), {
4747
+ } = D(), {
4747
4748
  t: i
4748
4749
  } = E(), l = G(() => e == null ? void 0 : e.map((u) => ({
4749
4750
  title: u,
@@ -4783,7 +4784,7 @@ function dd() {
4783
4784
  return x(s), s;
4784
4785
  }
4785
4786
  return [];
4786
- }, [i, l, d, x]), o = Ie(), p = j(() => {
4787
+ }, [i, l, d, x]), o = De(), p = j(() => {
4787
4788
  a(void 0), o.invalidateQueries(["getDataTopics"]);
4788
4789
  }, [o]);
4789
4790
  return r ? /* @__PURE__ */ n(Zr, {
@@ -4810,7 +4811,7 @@ const Cd = Vt({
4810
4811
  config: a
4811
4812
  } = e, {
4812
4813
  themeSettings: i
4813
- } = I();
4814
+ } = D();
4814
4815
  return /* @__PURE__ */ n(Ji, {
4815
4816
  value: a ?? {},
4816
4817
  children: /* @__PURE__ */ n(po, {
@@ -4885,7 +4886,7 @@ const cd = /* @__PURE__ */ _("div", {
4885
4886
  }) => {
4886
4887
  const {
4887
4888
  themeSettings: r
4888
- } = I();
4889
+ } = D();
4889
4890
  return /* @__PURE__ */ n(st, {
4890
4891
  sourceId: t.jaql.datasource.title,
4891
4892
  data: t,
@@ -4932,8 +4933,8 @@ const cd = /* @__PURE__ */ _("div", {
4932
4933
  }, [e, i, r]);
4933
4934
  const u = G(() => {
4934
4935
  const b = l && qe(l) ? _a(l == null ? void 0 : l.filters) : [], o = e.jaql.metadata.filter((p) => !p.jaql.filter).concat(b.filter((p) => !p.config.disabled).map((p) => p.jaql()));
4935
- return T(D({}, e), {
4936
- jaql: T(D({}, e.jaql), {
4936
+ return T(I({}, e), {
4937
+ jaql: T(I({}, e.jaql), {
4937
4938
  metadata: o
4938
4939
  }),
4939
4940
  verbosity: "Low"
@@ -4943,7 +4944,7 @@ const cd = /* @__PURE__ */ _("div", {
4943
4944
  isLoading: g,
4944
4945
  isError: x
4945
4946
  } = Ue(u);
4946
- return g || !l ? /* @__PURE__ */ n(yt, {}) : qe(l) ? /* @__PURE__ */ n(ve, T(D({}, l), {
4947
+ return g || !l ? /* @__PURE__ */ n(yt, {}) : qe(l) ? /* @__PURE__ */ n(ve, T(I({}, l), {
4947
4948
  highlightSelectionDisabled: !0,
4948
4949
  onDataReady: t,
4949
4950
  topSlot: c && !x && /* @__PURE__ */ n(ud, {