@sisense/sdk-ui 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.
Files changed (43) hide show
  1. package/dist/ai.cjs +27 -27
  2. package/dist/ai.js +83 -102
  3. package/dist/analytics-composer.cjs +33 -33
  4. package/dist/analytics-composer.js +278 -290
  5. package/dist/{derive-chart-family-DvYmrG1k.js → derive-chart-family-6PZA-xZh.js} +30470 -32108
  6. package/dist/derive-chart-family-DQUVKMcV.cjs +656 -0
  7. package/dist/{dimensions-WmjaZcrG.js → dimensions-b8xRITJn.js} +4 -5
  8. package/dist/{dimensions-DAISVpEZ.cjs → dimensions-x8nnAUew.cjs} +1 -1
  9. package/dist/index.cjs +17 -17
  10. package/dist/index.js +7455 -7347
  11. package/dist/index.umd.js +406 -380
  12. package/dist/packages/sdk-ui/src/ai/common/icon-button.d.ts +1 -3
  13. package/dist/packages/sdk-ui/src/ai/messages/clickable-message.d.ts +0 -1
  14. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +1 -0
  15. package/dist/packages/sdk-ui/src/common/icons/drag-handle-icon.d.ts +2 -1
  16. package/dist/packages/sdk-ui/src/custom-widgets-provider/types.d.ts +10 -1
  17. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +5 -1
  18. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +0 -1
  19. package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +0 -1
  20. package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +4 -0
  21. package/dist/packages/sdk-ui/src/error-boundary/error-boundary.d.ts +1 -1
  22. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +0 -1
  23. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +0 -1
  24. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/use-members.d.ts +1 -1
  25. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/get-pivot-table-data-point.d.ts +4 -0
  26. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/index.d.ts +1 -0
  27. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/types.d.ts +32 -0
  28. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/use-apply-pivot-table-cell-events.d.ts +18 -0
  29. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/utils.d.ts +11 -0
  30. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +2 -2
  31. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +8 -4
  32. package/dist/packages/sdk-ui/src/props.d.ts +33 -1
  33. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +5 -0
  34. package/dist/packages/sdk-ui/src/types.d.ts +57 -3
  35. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +2 -2
  36. package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -6
  37. package/dist/{use-common-filters-CVgB69Xe.js → use-common-filters-BHBy4uv6.js} +5530 -5399
  38. package/dist/use-common-filters-Cg217teN.cjs +350 -0
  39. package/dist/{widget-composer-D0FZj1tX.cjs → widget-composer-BPlNiX_P.cjs} +1 -1
  40. package/dist/{widget-composer-B4eAv2pf.js → widget-composer-SGEFYrXY.js} +38 -44
  41. package/package.json +16 -16
  42. package/dist/derive-chart-family-BCY-GLVZ.cjs +0 -672
  43. package/dist/use-common-filters-CRrL9rOQ.cjs +0 -350
package/dist/ai.js CHANGED
@@ -10,7 +10,7 @@ var pt = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writ
10
10
  gt.call(t, n) && pt(e, n, t[n]);
11
11
  return e;
12
12
  }, B = (e, t) => xn(e, vn(t));
13
- var De = (e, t) => {
13
+ var $e = (e, t) => {
14
14
  var n = {};
15
15
  for (var r in e)
16
16
  ht.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -35,12 +35,12 @@ var ne = (e, t, n) => new Promise((r, a) => {
35
35
  }, p = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(c, s);
36
36
  p((n = n.apply(e, t)).next());
37
37
  });
38
- import { bz as kn, bA as wn, bB as Lt, bC as Sn, bD as ve, bE as Mn, bF as Tn, bG as Ln, bc as Rt, bd as Et, aR as ge, G as Ke, aG as It, ak as Rn, bH as En, am as In, v as Bn, x as Fe, bI as Fn, bJ as Nn, ar as ue, bK as Bt, as as Hn, A as Pn, aU as On, bL as Dn, B as Ce, q as $e, bM as Ct, P as f, t as $n, aH as Ft, b3 as An, aD as zn, bN as qn, ai as ye, J as Wn, bO as Zn, bP as jn, M as Nt, bQ as Gn, b6 as Vn, ba as Un } from "./use-common-filters-CVgB69Xe.js";
39
- import { P as Qn, t as o, _ as _n, k as Kn, c7 as Jn, R as P, T as je, aZ as v, bb as A, a7 as w, U as R, F as W, a4 as Ht, aD as Ge, aI as Xn, c8 as Yn, c9 as er, a2 as tr, a3 as nr, n as rr } from "./derive-chart-family-DvYmrG1k.js";
38
+ import { bC as kn, bD as wn, bE as Lt, bF as Sn, bG as ve, bH as Mn, bI as Tn, bJ as Ln, bf as Rt, bg as Et, aU as ge, G as Ke, ae as v, aK as A, aI as It, am as Rn, bK as En, ao as In, v as Bn, x as Fe, bL as Fn, bM as Nn, at as ue, bN as Bt, au as Hn, A as Pn, aX as On, bO as $n, B as Ce, q as De, bP as Ct, P as f, t as Dn, aJ as Ft, b6 as An, aF as zn, bQ as qn, ak as ye, J as Wn, bR as Zn, bS as jn, bT as Gn, M as Nt, bU as Vn, ba as Un, bd as Qn } from "./use-common-filters-BHBy4uv6.js";
39
+ import { P as _n, t as o, _ as Kn, k as Jn, c7 as Xn, R as P, T as je, a9 as w, U as R, F as W, a4 as Ht, aF as Ge, aK as Yn, c8 as er, a2 as tr, a3 as nr, n as rr } from "./derive-chart-family-6PZA-xZh.js";
40
40
  import * as J from "react";
41
- import { createContext as Je, useContext as Xe, useMemo as z, useState as D, useCallback as H, useEffect as ke, useRef as pe, useLayoutEffect as Ie, memo as or, forwardRef as ir } from "react";
42
- import { t as Ne } from "./widget-composer-B4eAv2pf.js";
43
- import { w as X1 } from "./widget-composer-B4eAv2pf.js";
41
+ import { createContext as Je, useContext as Xe, useMemo as z, useState as $, useCallback as H, useEffect as ke, useRef as pe, useLayoutEffect as Ie, memo as or, forwardRef as ir } from "react";
42
+ import { t as Ne } from "./widget-composer-SGEFYrXY.js";
43
+ import { w as X1 } from "./widget-composer-SGEFYrXY.js";
44
44
  import { jsx as fe } from "react/jsx-runtime";
45
45
  class ar extends kn {
46
46
  constructor(t, n) {
@@ -85,15 +85,16 @@ class ar extends kn {
85
85
  })), this.currentMutation.addObserver(this), this.currentMutation.execute();
86
86
  }
87
87
  updateResult() {
88
- const t = this.currentMutation ? this.currentMutation.state : Sn(), n = B(T({}, t), {
89
- isLoading: t.status === "loading",
88
+ const t = this.currentMutation ? this.currentMutation.state : Sn(), n = t.status === "loading", r = B(T({}, t), {
89
+ isLoading: n,
90
+ isPending: n,
90
91
  isSuccess: t.status === "success",
91
92
  isError: t.status === "error",
92
93
  isIdle: t.status === "idle",
93
94
  mutate: this.mutate,
94
95
  reset: this.reset
95
96
  });
96
- this.currentResult = n;
97
+ this.currentResult = r;
97
98
  }
98
99
  notify(t) {
99
100
  Lt.batch(() => {
@@ -169,7 +170,7 @@ const cr = new Rt({
169
170
  }
170
171
  }
171
172
  }), et = /* @__PURE__ */ Je(void 0), X = () => Xe(et), dr = ({ children: e, volatile: t }) => {
172
- const { app: n } = Qn(), r = z(() => n ? new lr(n.httpClient, t) : void 0, [
173
+ const { app: n } = _n(), r = z(() => n ? new lr(n.httpClient, t) : void 0, [
173
174
  n,
174
175
  t
175
176
  ]);
@@ -181,7 +182,7 @@ const cr = new Rt({
181
182
  })
182
183
  });
183
184
  }, Pt = /* @__PURE__ */ Je({}), ur = () => Xe(Pt), Ot = ({ children: e }) => {
184
- const [t, n] = D({}), r = H((s, p) => {
185
+ const [t, n] = $({}), r = H((s, p) => {
185
186
  var d;
186
187
  return `${s}_${(d = p == null ? void 0 : p.dashboardId) != null ? d : ""}`;
187
188
  }, []), a = H((s, p, d) => {
@@ -215,7 +216,7 @@ function pr(e) {
215
216
  if ("jaql" in e)
216
217
  return e;
217
218
  {
218
- const r = Jn(e.dataSource), { filters: a = [], relations: c } = _n(e.filters), { metadata: s, filterRelations: p } = Kn({
219
+ const r = Xn(e.dataSource), { filters: a = [], relations: c } = Kn(e.filters), { metadata: s, filterRelations: p } = Jn({
219
220
  dataSource: e.dataSource,
220
221
  attributes: (t = e.dimensions) != null ? t : [],
221
222
  measures: (n = e.measures) != null ? n : [],
@@ -261,7 +262,7 @@ const He = (e, t = !0) => {
261
262
  ])
262
263
  };
263
264
  }, hr = (e) => {
264
- const r = e, { enabled: t } = r, n = De(r, ["enabled"]);
265
+ const r = e, { enabled: t } = r, n = $e(r, ["enabled"]);
265
266
  return He(n, t);
266
267
  }, q1 = Ke("useGetNlgInsights")(hr), gr = [
267
268
  "indicator",
@@ -310,7 +311,7 @@ const fr = (e) => {
310
311
  g
311
312
  ])
312
313
  };
313
- }, W1 = Ke("useGetNlqResult")(fr), mr = 4, Dt = (e) => {
314
+ }, W1 = Ke("useGetNlqResult")(fr), mr = 4, $t = (e) => {
314
315
  const { contextTitle: t, count: n, enableAxisTitlesInWidgetProps: r, enabled: a, customPrompt: c } = e, s = X(), p = n != null ? n : mr, d = (a === void 0 || a === !0) && p > 0, { isLoading: g, isError: m, isSuccess: b, data: i, error: u, refetch: l } = ge({
315
316
  queryKey: [
316
317
  "getQueryRecommendations",
@@ -344,14 +345,14 @@ const fr = (e) => {
344
345
  l
345
346
  ])
346
347
  };
347
- }, Z1 = Ke("useGetQueryRecommendations")(Dt), $t = Object.freeze({
348
+ }, Z1 = Ke("useGetQueryRecommendations")($t), Dt = Object.freeze({
348
349
  enableFollowupQuestions: !1,
349
350
  enableHeader: !0,
350
351
  enableInsights: !0,
351
352
  numOfRecommendations: 4,
352
353
  numOfRecentPrompts: 5
353
- }), At = /* @__PURE__ */ Je(T({}, $t)), ee = () => Xe(At), br = ({ children: e, value: t }) => {
354
- const { t: n } = P(), r = Object.entries(t).reduce((a, [c, s]) => (s !== void 0 && (a[c] = s), a), B(T({}, $t), {
354
+ }), At = /* @__PURE__ */ Je(T({}, Dt)), ee = () => Xe(At), br = ({ children: e, value: t }) => {
355
+ const { t: n } = P(), r = Object.entries(t).reduce((a, [c, s]) => (s !== void 0 && (a[c] = s), a), B(T({}, Dt), {
355
356
  inputPromptText: n("ai.config.inputPromptText"),
356
357
  welcomeText: n("ai.config.welcomeText"),
357
358
  suggestionsWelcomeText: n("ai.config.suggestionsWelcomeText")
@@ -547,7 +548,7 @@ const fr = (e) => {
547
548
  }, [
548
549
  e
549
550
  ]), ot = (e) => !!e && "type" in e && e.type === "nlq", Mr = (e) => !!e && "type" in e && e.type === "text", Tr = (e, t) => {
550
- const { t: n } = P(), { enableFollowupQuestions: r } = ee(), { chatId: a, isError: c } = rt(e, t, !0), [s, p] = D(null), { history: d, isLoading: g, isError: m } = nt(a);
551
+ const { t: n } = P(), { enableFollowupQuestions: r } = ee(), { chatId: a, isError: c } = rt(e, t, !0), [s, p] = $(null), { history: d, isLoading: g, isError: m } = nt(a);
551
552
  ke(() => {
552
553
  c ? p(new je("ai.errors.chatUnavailable")) : m && p(new je("ai.errors.fetchHistory"));
553
554
  }, [
@@ -667,12 +668,12 @@ const Pr = /* @__PURE__ */ v("div", {
667
668
  })("display:flex;flex-direction:column;row-gap:4px;"), Or = /* @__PURE__ */ v("div", {
668
669
  target: "e1q6h1ze1",
669
670
  label: "SectionHeader"
670
- })("font-size:11px;line-height:18px;font-weight:300;color:", ({ theme: e }) => e.aiChat.dropup.headers.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({ theme: e }) => e.aiChat.dropup.headers.hover.backgroundColor, ";}"), Dr = /* @__PURE__ */ v("div", {
671
+ })("font-size:11px;line-height:18px;font-weight:300;color:", ({ theme: e }) => e.aiChat.dropup.headers.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({ theme: e }) => e.aiChat.dropup.headers.hover.backgroundColor, ";}"), $r = /* @__PURE__ */ v("div", {
671
672
  target: "e1q6h1ze2",
672
673
  label: "DropupItem"
673
674
  })("font-size:", ({ theme: e }) => e.aiChat.primaryFontSize[0], ";line-height:", ({ theme: e }) => e.aiChat.primaryFontSize[1], ";color:", ({ theme: e }) => e.aiChat.dropup.items.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({ theme: e }) => e.aiChat.dropup.items.hover.backgroundColor, ";}");
674
- function $r({ title: e, items: t, onSelect: n, alwaysExpanded: r = !1 }) {
675
- const [a, c] = D(!1), { themeSettings: s } = R();
675
+ function Dr({ title: e, items: t, onSelect: n, alwaysExpanded: r = !1 }) {
676
+ const [a, c] = $(!1), { themeSettings: s } = R();
676
677
  return /* @__PURE__ */ w(Pr, {
677
678
  children: [
678
679
  /* @__PURE__ */ o(Or, {
@@ -680,7 +681,7 @@ function $r({ title: e, items: t, onSelect: n, alwaysExpanded: r = !1 }) {
680
681
  theme: s,
681
682
  children: e.toUpperCase()
682
683
  }),
683
- (a || r) && t.map((p, d) => /* @__PURE__ */ o(Dr, {
684
+ (a || r) && t.map((p, d) => /* @__PURE__ */ o($r, {
684
685
  onClick: () => n(p),
685
686
  theme: s,
686
687
  children: p
@@ -733,7 +734,7 @@ function qr({ recentPrompts: e, suggestions: t, isLoading: n, onSelection: r, an
733
734
  theme: g,
734
735
  children: [
735
736
  n && /* @__PURE__ */ o(Pe, {}),
736
- !n && !s && d.map((i) => /* @__PURE__ */ o($r, B(T({}, i), {
737
+ !n && !s && d.map((i) => /* @__PURE__ */ o(Dr, B(T({}, i), {
737
738
  alwaysExpanded: b
738
739
  }), i.title)),
739
740
  s && /* @__PURE__ */ o(zr, {
@@ -794,9 +795,8 @@ const Wr = 500, Zr = /* @__PURE__ */ v("div", {
794
795
  cursor: pointer;
795
796
  `), Ur = 34;
796
797
  function Qr({ onSendMessage: e, onClearHistoryClick: t, disabled: n, recentPrompts: r, suggestions: a, isLoading: c, recommendationsError: s, onChange: p }) {
797
- const [d, g] = D(""), { inputPromptText: m } = ee(), b = H(() => {
798
- if (n)
799
- return;
798
+ const [d, g] = $(""), { inputPromptText: m } = ee(), b = H(() => {
799
+ if (n) return;
800
800
  if (Ve(d)) {
801
801
  g("");
802
802
  return;
@@ -897,8 +897,7 @@ function se() {
897
897
  return se = Object.assign ? Object.assign.bind() : function(e) {
898
898
  for (var t = 1; t < arguments.length; t++) {
899
899
  var n = arguments[t];
900
- for (var r in n)
901
- Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
900
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
902
901
  }
903
902
  return e;
904
903
  }, se.apply(this, arguments);
@@ -908,7 +907,7 @@ var mt;
908
907
  (function(e) {
909
908
  e[e.MAX = 0] = "MAX", e[e.HIGH = 1] = "HIGH", e[e.MED = 2] = "MED", e[e.LOW = 3] = "LOW", e[e.MIN = 4] = "MIN";
910
909
  })(mt || (mt = {}));
911
- const bt = ["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), { class: "className", for: "htmlFor" }), yt = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Kr = ["style", "script"], Jr = ["src", "href", "data", "formAction", "srcDoc", "action"], Xr = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yr = /mailto:/i, eo = /\n{2,}$/, Wt = /^(\s*>[\s\S]*?)(?=\n\n|$)/, to = /^ *> ?/gm, no = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, ro = /^ {2,}\n/, oo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Zt = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, jt = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, io = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, ao = /^(?:\n *)*\n/, so = /\r\n?/g, lo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, co = /^\[\^([^\]]+)]/, uo = /\f/g, po = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, ho = /^\s*?\[(x|\s)\]/, Gt = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Vt = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ut = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Ue = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, go = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Qt = /^<!--[\s\S]*?(?:-->)/, Co = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Qe = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, fo = /^\{.*\}$/, mo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, bo = /^<([^ >]+@[^ >]+)>/, yo = /^<([^ >]+:\/[^ >]+)>/, xo = /-([a-z])?/gi, _t = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, vo = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, ko = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, wo = /^\[([^\]]*)\] ?\[([^\]]*)\]/, So = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Mo = /\t/g, To = /(^ *\||\| *$)/g, Lo = /^ *:-+: *$/, Ro = /^ *:-+ *$/, Eo = /^ *-+: *$/, Oe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Io = new RegExp(`^([*_])\\1${Oe}\\1\\1(?!\\1)`), Bo = new RegExp(`^([*_])${Oe}\\1(?!\\1)`), Fo = new RegExp(`^(==)${Oe}\\1`), No = new RegExp(`^(~~)${Oe}\\1`), Ho = /^\\([^0-9A-Za-z\s])/, xt = /\\([^0-9A-Za-z\s])/g, Po = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Oo = /^\n+/, Do = /^([ \t]*)/, $o = /\\([^\\])/g, Ao = /(?:^|\n)( *)$/, it = "(?:\\d+\\.)", at = "(?:[*+-])";
910
+ const bt = ["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), { class: "className", for: "htmlFor" }), yt = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Kr = ["style", "script"], Jr = ["src", "href", "data", "formAction", "srcDoc", "action"], Xr = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yr = /mailto:/i, eo = /\n{2,}$/, Wt = /^(\s*>[\s\S]*?)(?=\n\n|$)/, to = /^ *> ?/gm, no = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, ro = /^ {2,}\n/, oo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Zt = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, jt = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, io = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, ao = /^(?:\n *)*\n/, so = /\r\n?/g, lo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, co = /^\[\^([^\]]+)]/, uo = /\f/g, po = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, ho = /^\s*?\[(x|\s)\]/, Gt = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Vt = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ut = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Ue = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, go = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Qt = /^<!--[\s\S]*?(?:-->)/, Co = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Qe = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, fo = /^\{.*\}$/, mo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, bo = /^<([^ >]+@[^ >]+)>/, yo = /^<([^ >]+:\/[^ >]+)>/, xo = /-([a-z])?/gi, _t = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, vo = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, ko = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, wo = /^\[([^\]]*)\] ?\[([^\]]*)\]/, So = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Mo = /\t/g, To = /(^ *\||\| *$)/g, Lo = /^ *:-+: *$/, Ro = /^ *:-+ *$/, Eo = /^ *-+: *$/, Oe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Io = new RegExp(`^([*_])\\1${Oe}\\1\\1(?!\\1)`), Bo = new RegExp(`^([*_])${Oe}\\1(?!\\1)`), Fo = new RegExp(`^(==)${Oe}\\1`), No = new RegExp(`^(~~)${Oe}\\1`), Ho = /^\\([^0-9A-Za-z\s])/, xt = /\\([^0-9A-Za-z\s])/g, Po = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Oo = /^\n+/, $o = /^([ \t]*)/, Do = /\\([^\\])/g, Ao = /(?:^|\n)( *)$/, it = "(?:\\d+\\.)", at = "(?:[*+-])";
912
911
  function Kt(e) {
913
912
  return "( *)(" + (e === 1 ? it : at) + ") +";
914
913
  }
@@ -955,8 +954,7 @@ function vt(e, t) {
955
954
  const jo = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Go = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, on = [Wt, Zt, jt, Gt, Ut, Vt, _t, nn, rn], Vo = [...on, /^[^\n]+(?: \n|\n{2,})/, Ue, Qt, Qe];
956
955
  function xe(e) {
957
956
  let t = e.length;
958
- for (; t > 0 && e[t - 1] <= " "; )
959
- t--;
957
+ for (; t > 0 && e[t - 1] <= " "; ) t--;
960
958
  return e.slice(0, t);
961
959
  }
962
960
  function me(e) {
@@ -970,8 +968,7 @@ function kt(e, t, n, r) {
970
968
  n.inTable = !0;
971
969
  let c = [[]], s = "";
972
970
  function p() {
973
- if (!s)
974
- return;
971
+ if (!s) return;
975
972
  const d = c[c.length - 1];
976
973
  d.push.apply(d, t(s, n)), s = "";
977
974
  }
@@ -1016,8 +1013,7 @@ function be(e) {
1016
1013
  });
1017
1014
  }
1018
1015
  function _o(e, t) {
1019
- if (t.inline || t.simple)
1020
- return null;
1016
+ if (t.inline || t.simple) return null;
1021
1017
  let n = "";
1022
1018
  e.split(`
1023
1019
  `).every((a) => (a += `
@@ -1029,15 +1025,14 @@ const Ko = /(javascript|vbscript|data(?!:image)):/i;
1029
1025
  function Jo(e) {
1030
1026
  try {
1031
1027
  const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
1032
- if (Ko.test(t))
1033
- return null;
1028
+ if (Ko.test(t)) return null;
1034
1029
  } catch (t) {
1035
1030
  return null;
1036
1031
  }
1037
1032
  return e;
1038
1033
  }
1039
1034
  function St(e) {
1040
- return e.replace($o, "$1");
1035
+ return e.replace(Do, "$1");
1041
1036
  }
1042
1037
  function Ee(e, t, n) {
1043
1038
  const r = n.inline || !1, a = n.simple || !1;
@@ -1070,8 +1065,7 @@ function ei(...e) {
1070
1065
  function We(e, t, n) {
1071
1066
  let r = e;
1072
1067
  const a = t.split(".");
1073
- for (; a.length && (r = r[a[0]], r !== void 0); )
1074
- a.shift();
1068
+ for (; a.length && (r = r[a[0]], r !== void 0); ) a.shift();
1075
1069
  return r || n;
1076
1070
  }
1077
1071
  function ti(e = "", t = {}) {
@@ -1089,17 +1083,13 @@ function ti(e = "", t = {}) {
1089
1083
  const l = g(d(u ? i : `${xe(i).replace(Oo, "")}
1090
1084
 
1091
1085
  `, { inline: u }));
1092
- for (; typeof l[l.length - 1] == "string" && !l[l.length - 1].trim(); )
1093
- l.pop();
1094
- if (t.wrapper === null)
1095
- return l;
1086
+ for (; typeof l[l.length - 1] == "string" && !l[l.length - 1].trim(); ) l.pop();
1087
+ if (t.wrapper === null) return l;
1096
1088
  const C = t.wrapper || (u ? "span" : "div");
1097
1089
  let h;
1098
- if (l.length > 1 || t.forceWrapper)
1099
- h = l;
1090
+ if (l.length > 1 || t.forceWrapper) h = l;
1100
1091
  else {
1101
- if (l.length === 1)
1102
- return h = l[0], typeof h == "string" ? n("span", { key: "outer" }, h) : h;
1092
+ if (l.length === 1) return h = l[0], typeof h == "string" ? n("span", { key: "outer" }, h) : h;
1103
1093
  h = null;
1104
1094
  }
1105
1095
  return t.createElement(C, { key: "outer" }, h);
@@ -1117,18 +1107,15 @@ function ti(e = "", t = {}) {
1117
1107
  const I = M[0];
1118
1108
  return (I === '"' || I === "'") && M.length >= 2 && M[M.length - 1] === I ? M.slice(1, -1) : M;
1119
1109
  }(h.slice(k + 1).trim()), L = bt[S] || S;
1120
- if (L === "ref")
1121
- return C;
1110
+ if (L === "ref") return C;
1122
1111
  const E = C[L] = function(M, I, O, ae) {
1123
1112
  return I === "style" ? function(U) {
1124
1113
  const Z = [];
1125
1114
  let q = "", G = !1, F = !1, Q = "";
1126
- if (!U)
1127
- return Z;
1115
+ if (!U) return Z;
1128
1116
  for (let V = 0; V < U.length; V++) {
1129
- const $ = U[V];
1130
- if ($ !== '"' && $ !== "'" || G || (F ? $ === Q && (F = !1, Q = "") : (F = !0, Q = $)), $ === "(" && q.endsWith("url") ? G = !0 : $ === ")" && G && (G = !1), $ !== ";" || F || G)
1131
- q += $;
1117
+ const D = U[V];
1118
+ if (D !== '"' && D !== "'" || G || (F ? D === Q && (F = !1, Q = "") : (F = !0, Q = D)), D === "(" && q.endsWith("url") ? G = !0 : D === ")" && G && (G = !1), D !== ";" || F || G) q += D;
1132
1119
  else {
1133
1120
  const j = q.trim();
1134
1121
  if (j) {
@@ -1145,8 +1132,8 @@ function ti(e = "", t = {}) {
1145
1132
  if (_) {
1146
1133
  const V = _.indexOf(":");
1147
1134
  if (V > 0) {
1148
- const $ = _.slice(0, V).trim(), j = _.slice(V + 1).trim();
1149
- Z.push([$, j]);
1135
+ const D = _.slice(0, V).trim(), j = _.slice(V + 1).trim();
1136
+ Z.push([D, j]);
1150
1137
  }
1151
1138
  }
1152
1139
  return Z;
@@ -1155,8 +1142,7 @@ function ti(e = "", t = {}) {
1155
1142
  }, {}) : Jr.indexOf(I) !== -1 ? ae(O, M, I) : (O.match(fo) && (O = O.slice(1, O.length - 1)), O === "true" || O !== "false" && O);
1156
1143
  }(i, S, x, t.sanitizer);
1157
1144
  typeof E == "string" && (Ue.test(E) || Qe.test(E)) && (C[L] = r(E.trim()));
1158
- } else
1159
- h !== "style" && (C[bt[h] || h] = !0);
1145
+ } else h !== "style" && (C[bt[h] || h] = !0);
1160
1146
  return C;
1161
1147
  }, {}) : null;
1162
1148
  }
@@ -1168,7 +1154,7 @@ function ti(e = "", t = {}) {
1168
1154
  const C = { key: l.key };
1169
1155
  return i.alert && (C.className = "markdown-alert-" + t.slugify(i.alert.toLowerCase(), me), i.children.unshift({ attrs: {}, children: [{ type: y.text, text: i.alert }], noInnerParse: !0, type: y.htmlBlock, tag: "header" })), n("blockquote", C, u(i.children, l));
1170
1156
  } }, [y.breakLine]: { match: be(ro), order: 1, parse: ze, render: (i, u, l) => n("br", { key: l.key }) }, [y.breakThematic]: { match: Y(oo), order: 1, parse: ze, render: (i, u, l) => n("hr", { key: l.key }) }, [y.codeBlock]: { match: Y(jt), order: 0, parse: (i) => ({ lang: void 0, text: xe(i[0].replace(/^ {4}/gm, "")).replace(xt, "$1") }), render: (i, u, l) => n("pre", { key: l.key }, n("code", se({}, i.attrs, { className: i.lang ? `lang-${i.lang}` : "" }), i.text)) }, [y.codeFenced]: { match: Y(Zt), order: 0, parse: (i) => ({ attrs: a("code", i[3] || ""), lang: i[2] || void 0, text: i[4], type: y.codeBlock }) }, [y.codeInline]: { match: oe(io), order: 3, parse: (i) => ({ text: i[2].replace(xt, "$1") }), render: (i, u, l) => n("code", { key: l.key }, i.text) }, [y.footnote]: { match: Y(lo), order: 0, parse: (i) => (c.push({ footnote: i[2], identifier: i[1] }), {}), render: qe }, [y.footnoteReference]: { match: re(co), order: 1, parse: (i) => ({ target: `#${t.slugify(i[1], me)}`, text: i[1] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href") }, n("sup", { key: l.key }, i.text)) }, [y.gfmTask]: { match: re(ho), order: 1, parse: (i) => ({ completed: i[1].toLowerCase() === "x" }), render: (i, u, l) => n("input", { checked: i.completed, key: l.key, readOnly: !0, type: "checkbox" }) }, [y.heading]: { match: Y(t.enforceAtxHeadings ? Vt : Gt), order: 1, parse: (i, u, l) => ({ children: Ee(u, i[2], l), id: t.slugify(i[2], me), level: i[1].length }), render: (i, u, l) => n(`h${i.level}`, { id: i.id, key: l.key }, u(i.children, l)) }, [y.headingSetext]: { match: Y(Ut), order: 0, parse: (i, u, l) => ({ children: Ee(u, i[1], l), level: i[2] === "=" ? 1 : 2, type: y.heading }) }, [y.htmlBlock]: { match: be(Ue), order: 1, parse(i, u, l) {
1171
- const [, C] = i[3].match(Do), h = new RegExp(`^${C}`, "gm"), k = i[3].replace(h, ""), S = (x = k, Vo.some((O) => O.test(x)) ? Yo : Ee);
1157
+ const [, C] = i[3].match($o), h = new RegExp(`^${C}`, "gm"), k = i[3].replace(h, ""), S = (x = k, Vo.some((O) => O.test(x)) ? Yo : Ee);
1172
1158
  var x;
1173
1159
  const L = i[1].toLowerCase(), E = Kr.indexOf(L) !== -1, M = (E ? L : i[1]).trim(), I = { attrs: a(M, i[2]), noInnerParse: E, tag: M };
1174
1160
  return l.inAnchor = l.inAnchor || L === "a", E ? I.text = i[3] : I.children = S(u, k, l), l.inAnchor = !1, I;
@@ -1246,11 +1232,9 @@ function ti(e = "", t = {}) {
1246
1232
  }
1247
1233
  const ni = (e) => {
1248
1234
  let { children: t = "", options: n } = e, r = function(a, c) {
1249
- if (a == null)
1250
- return {};
1235
+ if (a == null) return {};
1251
1236
  var s, p, d = {}, g = Object.keys(a);
1252
- for (p = 0; p < g.length; p++)
1253
- c.indexOf(s = g[p]) >= 0 || (d[s] = a[s]);
1237
+ for (p = 0; p < g.length; p++) c.indexOf(s = g[p]) >= 0 || (d[s] = a[s]);
1254
1238
  return d;
1255
1239
  }(e, _r);
1256
1240
  return J.cloneElement(ti(t, n), r);
@@ -1459,7 +1443,7 @@ const pi = Fe(Fn, {
1459
1443
  container: ["container", `scroll${ue(n)}`],
1460
1444
  paper: ["paper", `paperScroll${ue(n)}`, `paperWidth${ue(String(r))}`, a && "paperFullWidth", c && "paperFullScreen"]
1461
1445
  };
1462
- return $n(s, ui, t);
1446
+ return Dn(s, ui, t);
1463
1447
  }, gi = Fe(Nn, {
1464
1448
  name: "MuiDialog",
1465
1449
  slot: "Root",
@@ -1634,7 +1618,7 @@ const pi = Fe(Fn, {
1634
1618
  TransitionComponent: U = Ct,
1635
1619
  transitionDuration: Z = c,
1636
1620
  TransitionProps: q
1637
- } = ut, G = De(ut, [
1621
+ } = ut, G = $e(ut, [
1638
1622
  "aria-describedby",
1639
1623
  "aria-labelledby",
1640
1624
  "aria-modal",
@@ -1666,9 +1650,9 @@ const pi = Fe(Fn, {
1666
1650
  scroll: I
1667
1651
  }), Q = hi(F), _ = J.useRef(), V = (de) => {
1668
1652
  _.current = de.target === de.currentTarget;
1669
- }, $ = (de) => {
1653
+ }, D = (de) => {
1670
1654
  S && S(de), _.current && (_.current = null, k && k(de), x && x(de, "backdropClick"));
1671
- }, j = Dn(p), te = J.useMemo(() => ({
1655
+ }, j = $n(p), te = J.useMemo(() => ({
1672
1656
  titleId: j
1673
1657
  }), [j]), le = T({
1674
1658
  transition: U
@@ -1684,7 +1668,7 @@ const pi = Fe(Fn, {
1684
1668
  shouldForwardComponentProp: !0,
1685
1669
  externalForwardedProps: N,
1686
1670
  ownerState: F,
1687
- className: $e(Q.root, i),
1671
+ className: De(Q.root, i),
1688
1672
  ref: n
1689
1673
  }), [dt, Te] = Ce("backdrop", {
1690
1674
  elementType: pi,
@@ -1696,12 +1680,12 @@ const pi = Fe(Fn, {
1696
1680
  shouldForwardComponentProp: !0,
1697
1681
  externalForwardedProps: N,
1698
1682
  ownerState: F,
1699
- className: $e(Q.paper, M.className)
1683
+ className: De(Q.paper, M.className)
1700
1684
  }), [Cn, fn] = Ce("container", {
1701
1685
  elementType: Ci,
1702
1686
  externalForwardedProps: N,
1703
1687
  ownerState: F,
1704
- className: $e(Q.container)
1688
+ className: De(Q.container)
1705
1689
  }), [mn, bn] = Ce("transition", {
1706
1690
  elementType: Ct,
1707
1691
  externalForwardedProps: N,
@@ -1727,7 +1711,7 @@ const pi = Fe(Fn, {
1727
1711
  disableEscapeKeyDown: u,
1728
1712
  onClose: x,
1729
1713
  open: L,
1730
- onClick: $
1714
+ onClick: D
1731
1715
  }, Me), G), {
1732
1716
  children: /* @__PURE__ */ fe(mn, B(T({}, bn), {
1733
1717
  children: /* @__PURE__ */ fe(Cn, B(T({
@@ -2093,7 +2077,7 @@ const lt = (e) => Ht(e.chart.backgroundColor), ki = ({ title: e }) => {
2093
2077
  })
2094
2078
  });
2095
2079
  }, wi = ({ items: e }) => {
2096
- const [t, n] = D(null), r = (s) => {
2080
+ const [t, n] = $(null), r = (s) => {
2097
2081
  n(s.currentTarget);
2098
2082
  }, a = () => {
2099
2083
  n(null);
@@ -2183,7 +2167,7 @@ function Ti({ infoTooltipText: e, onRefresh: t, onExpand: n }) {
2183
2167
  });
2184
2168
  }
2185
2169
  function Li({ content: e }) {
2186
- const [t, n] = D(!1), { themeSettings: r } = R(), { inlineElement: a, expandedElement: c } = z(() => {
2170
+ const [t, n] = $(!1), { themeSettings: r } = R(), { inlineElement: a, expandedElement: c } = z(() => {
2187
2171
  const s = Ne(e, {
2188
2172
  useCustomizedStyleOptions: !0
2189
2173
  });
@@ -2200,7 +2184,7 @@ function Li({ content: e }) {
2200
2184
  }
2201
2185
  };
2202
2186
  let m, b;
2203
- if (Xn(s.chartType))
2187
+ if (Yn(s.chartType))
2204
2188
  m = /* @__PURE__ */ o("div", {
2205
2189
  className: "csdk-h-[245px]",
2206
2190
  children: /* @__PURE__ */ o(ye, B(T({}, s), {
@@ -2341,7 +2325,7 @@ function Bi({ onClick: e, disabled: t }) {
2341
2325
  });
2342
2326
  }
2343
2327
  const Fi = () => {
2344
- const [e, t] = D(!1), n = pe(null), r = H(() => {
2328
+ const [e, t] = $(!1), n = pe(null), r = H(() => {
2345
2329
  t(!0);
2346
2330
  }, []), a = H(() => {
2347
2331
  t(!1);
@@ -2361,7 +2345,7 @@ const Fi = () => {
2361
2345
  label: "Container"
2362
2346
  })("display:flex;flex-direction:column;row-gap:", ({ theme: e }) => e.aiChat.body.gapBetweenMessages, ";");
2363
2347
  function Hi({ visible: e, onSend: t }) {
2364
- const [n, r] = D(!1), a = H((s) => {
2348
+ const [n, r] = $(!1), a = H((s) => {
2365
2349
  r(!0), t(s === "up" ? 1 : -1);
2366
2350
  }, [
2367
2351
  t
@@ -2408,7 +2392,7 @@ function _e({ sourceId: e, data: t, type: n, buttonVisibility: r = "onHover", re
2408
2392
  }
2409
2393
  const Pi = 18 * 5;
2410
2394
  function ct({ text: e }) {
2411
- const [t, n] = D(!0), [r, a] = D(!1), { t: c } = P(), s = pe(null);
2395
+ const [t, n] = $(!0), [r, a] = $(!1), { t: c } = P(), s = pe(null);
2412
2396
  return Ie(() => {
2413
2397
  s.current && s.current.scrollHeight > Pi && a(!0);
2414
2398
  }, [
@@ -2443,7 +2427,7 @@ function Oi({ nlgRequest: e }) {
2443
2427
  })
2444
2428
  });
2445
2429
  }
2446
- function Di() {
2430
+ function $i() {
2447
2431
  const { themeSettings: e } = R();
2448
2432
  return /* @__PURE__ */ o("svg", {
2449
2433
  width: "24",
@@ -2459,7 +2443,7 @@ function Di() {
2459
2443
  })
2460
2444
  });
2461
2445
  }
2462
- function $i({ onClick: e }) {
2446
+ function Di({ onClick: e }) {
2463
2447
  const { t } = P();
2464
2448
  return /* @__PURE__ */ o(Be, {
2465
2449
  align: "left",
@@ -2467,7 +2451,7 @@ function $i({ onClick: e }) {
2467
2451
  children: /* @__PURE__ */ w("div", {
2468
2452
  className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
2469
2453
  children: [
2470
- /* @__PURE__ */ o(Di, {}),
2454
+ /* @__PURE__ */ o($i, {}),
2471
2455
  t("ai.buttons.insights")
2472
2456
  ]
2473
2457
  })
@@ -2484,7 +2468,7 @@ function qi({ data: e, alwaysShowFeedback: t }) {
2484
2468
  const m = "chartType" in s ? s.chartType : "table";
2485
2469
  let b;
2486
2470
  zi(m) ? b = `an ${m}` : b = `a ${m}`, m !== "table" && (b += " chart");
2487
- const i = p.datasource.title, [u, l] = D(!1), C = H(() => {
2471
+ const i = p.datasource.title, [u, l] = $(!1), C = H(() => {
2488
2472
  l((x) => !x);
2489
2473
  }, []), h = {
2490
2474
  jaql: {
@@ -2527,7 +2511,7 @@ function qi({ data: e, alwaysShowFeedback: t }) {
2527
2511
  children: [
2528
2512
  /* @__PURE__ */ w(Mt, {
2529
2513
  children: [
2530
- /* @__PURE__ */ o($i, {
2514
+ /* @__PURE__ */ o(Di, {
2531
2515
  onClick: C
2532
2516
  }),
2533
2517
  x
@@ -2639,7 +2623,7 @@ const Qi = /* @__PURE__ */ v("div", {
2639
2623
  label: "ListContainer"
2640
2624
  })("display:flex;flex-direction:column;align-items:flex-start;row-gap:", ({ theme: e }) => e.aiChat.suggestions.gap, ";");
2641
2625
  function _i({ questions: e, onSelection: t }) {
2642
- const { t: n } = P(), [r, a] = D(!0), c = z(() => r && e.length > 5 ? e.slice(0, 4) : e, [
2626
+ const { t: n } = P(), [r, a] = $(!0), c = z(() => r && e.length > 5 ? e.slice(0, 4) : e, [
2643
2627
  e,
2644
2628
  r
2645
2629
  ]), { themeSettings: s } = R();
@@ -2758,7 +2742,7 @@ function o1() {
2758
2742
  });
2759
2743
  }
2760
2744
  const i1 = (e, t) => {
2761
- const n = new Yn(e);
2745
+ const n = new er(e);
2762
2746
  return n.alpha = t, n;
2763
2747
  }, a1 = /* @__PURE__ */ v("div", {
2764
2748
  target: "e1rxvpki0",
@@ -2792,20 +2776,18 @@ const i1 = (e, t) => {
2792
2776
  })("display:flex;flex-direction:column;row-gap:", ({ theme: e }) => e.aiChat.suggestions.gap, ";");
2793
2777
  function p1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2794
2778
  var te, le, ce;
2795
- const { t: r } = P(), { enableFollowupQuestions: a, enableHeader: c, numOfRecentPrompts: s, numOfRecommendations: p, customPrompt: d } = ee(), { themeSettings: g } = R(), { data: m, isLoading: b, isError: i } = Dt({
2779
+ const { t: r } = P(), { enableFollowupQuestions: a, enableHeader: c, numOfRecentPrompts: s, numOfRecommendations: p, customPrompt: d } = ee(), { themeSettings: g } = R(), { data: m, isLoading: b, isError: i } = $t({
2796
2780
  contextTitle: e,
2797
2781
  count: p,
2798
2782
  customPrompt: d
2799
2783
  }), u = z(() => m == null ? void 0 : m.map((N) => N.nlqPrompt), [
2800
2784
  m
2801
- ]), { history: l, lastNlqResponse: C, isAwaitingResponse: h, sendMessage: k, isLoading: S, chatId: x, lastError: L } = Tr(e, n), { mutate: E, isLoading: M } = zt(x), [I, O] = D(!1), [ae, U] = D(!1), Z = () => O(!0), q = () => O(!1), G = () => {
2785
+ ]), { history: l, lastNlqResponse: C, isAwaitingResponse: h, sendMessage: k, isLoading: S, chatId: x, lastError: L } = Tr(e, n), { mutate: E, isLoading: M } = zt(x), [I, O] = $(!1), [ae, U] = $(!1), Z = () => O(!0), q = () => O(!1), G = () => {
2802
2786
  E(), q();
2803
2787
  }, F = pe(null), Q = pe(null), _ = () => {
2804
- if (!(F != null && F.current))
2805
- return;
2788
+ if (!(F != null && F.current)) return;
2806
2789
  const { scrollTop: N, clientHeight: K, scrollHeight: Me } = F.current;
2807
- if (N === void 0 || K === void 0 || Me === void 0)
2808
- return;
2790
+ if (N === void 0 || K === void 0 || Me === void 0) return;
2809
2791
  const Te = Me - N - K > K / 2;
2810
2792
  ae !== Te && U(Te);
2811
2793
  };
@@ -2816,7 +2798,7 @@ function p1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2816
2798
  I,
2817
2799
  h
2818
2800
  ]);
2819
- const V = pe(null), $ = c ? /* @__PURE__ */ o(pn, {
2801
+ const V = pe(null), D = c ? /* @__PURE__ */ o(pn, {
2820
2802
  ref: V,
2821
2803
  title: e,
2822
2804
  leftNav: t && /* @__PURE__ */ o(Vi, {
@@ -2833,14 +2815,14 @@ function p1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2833
2815
  ]);
2834
2816
  return (L == null ? void 0 : L.message) === r("ai.errors.chatUnavailable") ? /* @__PURE__ */ w(W, {
2835
2817
  children: [
2836
- c && $,
2818
+ c && D,
2837
2819
  /* @__PURE__ */ o(sn, {
2838
2820
  text: L.message
2839
2821
  })
2840
2822
  ]
2841
2823
  }) : /* @__PURE__ */ w(W, {
2842
2824
  children: [
2843
- $,
2825
+ D,
2844
2826
  /* @__PURE__ */ w(c1, {
2845
2827
  ref: F,
2846
2828
  theme: g,
@@ -2978,7 +2960,7 @@ function v1(e) {
2978
2960
  r("ai.topicSelectPrompt")
2979
2961
  ]
2980
2962
  }),
2981
- t.map((a) => /* @__PURE__ */ er(m1, B(T({}, a), {
2963
+ t.map((a) => /* @__PURE__ */ Gn(m1, B(T({}, a), {
2982
2964
  key: a.title
2983
2965
  })))
2984
2966
  ]
@@ -3100,7 +3082,7 @@ function L1({ dataTopicsList: e, onDataTopicClick: t }) {
3100
3082
  });
3101
3083
  }
3102
3084
  function R1() {
3103
- const [e, t] = D(), [n, r] = D(), { data: a, fetchStatus: c } = xr(), { dataTopicsList: s, contextDetails: p } = ee(), { t: d } = P(), g = d("ai.errors.noAvailableDataTopics"), m = H((l) => {
3085
+ const [e, t] = $(), [n, r] = $(), { data: a, fetchStatus: c } = xr(), { dataTopicsList: s, contextDetails: p } = ee(), { t: d } = P(), g = d("ai.errors.noAvailableDataTopics"), m = H((l) => {
3104
3086
  l.length ? l.length === 1 && (r(void 0), t(l[0])) : r(g);
3105
3087
  }, [
3106
3088
  g
@@ -3225,16 +3207,15 @@ const I1 = /* @__PURE__ */ v("div", {
3225
3207
  })
3226
3208
  });
3227
3209
  }, Q1 = ({ nlqResponse: e, onDataReady: t, styleOptions: n, filters: r = [] }) => {
3228
- e.queryTitle = Gn(e.queryTitle);
3229
- const { connectToWidgetProps: a } = Vn({
3210
+ e.queryTitle = Vn(e.queryTitle);
3211
+ const { connectToWidgetProps: a } = Un({
3230
3212
  initialFilters: r
3231
- }), [c, s] = D(null);
3213
+ }), [c, s] = $(null);
3232
3214
  ke(() => {
3233
3215
  const b = Ne(e, {
3234
3216
  useCustomizedStyleOptions: !0
3235
3217
  });
3236
- if (!b)
3237
- s(null);
3218
+ if (!b) s(null);
3238
3219
  else {
3239
3220
  n && b.styleOptions && (b.styleOptions = rr(b.styleOptions, n));
3240
3221
  const i = a(b, {
@@ -3249,7 +3230,7 @@ const I1 = /* @__PURE__ */ v("div", {
3249
3230
  n
3250
3231
  ]);
3251
3232
  const p = z(() => {
3252
- const b = c && Ge(c) ? Un(c == null ? void 0 : c.filters) : [], i = e.jaql.metadata.filter((u) => !u.jaql.filter).concat(b.filter((u) => !u.config.disabled).map((u) => u.jaql()));
3233
+ const b = c && Ge(c) ? Qn(c == null ? void 0 : c.filters) : [], i = e.jaql.metadata.filter((u) => !u.jaql.filter).concat(b.filter((u) => !u.config.disabled).map((u) => u.jaql()));
3253
3234
  return B(T({}, e), {
3254
3235
  jaql: B(T({}, e.jaql), {
3255
3236
  metadata: i