@sisense/sdk-ui 1.27.1 → 1.29.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 (99) hide show
  1. package/dist/ai.cjs +50 -50
  2. package/dist/ai.js +968 -904
  3. package/dist/analytics-composer.cjs +49 -49
  4. package/dist/analytics-composer.js +374 -374
  5. package/dist/{derive-chart-family-H_RlUbXY.js → derive-chart-family-Cy3hlluo.js} +15339 -15478
  6. package/dist/{derive-chart-family-DDkQybGb.cjs → derive-chart-family-DWCXp57c.cjs} +103 -103
  7. package/dist/index.cjs +253 -120
  8. package/dist/index.js +11042 -8996
  9. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
  10. package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +3 -2
  11. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +12 -2
  12. package/dist/packages/sdk-ui/src/ai/chart/chart-insights.d.ts +2 -2
  13. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +9 -1
  14. package/dist/packages/sdk-ui/src/ai/{get-nlg-query-result.d.ts → get-nlg-insights.d.ts} +21 -6
  15. package/dist/packages/sdk-ui/src/ai/index.d.ts +4 -3
  16. package/dist/packages/sdk-ui/src/ai/messages/insights-message.d.ts +2 -2
  17. package/dist/packages/sdk-ui/src/ai/{use-get-nlg-query-result.d.ts → use-get-nlg-insights.d.ts} +17 -10
  18. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +74 -0
  19. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +11 -3
  20. package/dist/packages/sdk-ui/src/analytics-composer/common/stringify-props.d.ts +1 -1
  21. package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +17 -1
  22. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +30 -1
  23. package/dist/packages/sdk-ui/src/area-chart.d.ts +1 -1
  24. package/dist/packages/sdk-ui/src/areamap-chart.d.ts +1 -1
  25. package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +3 -2
  26. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +1 -1
  27. package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +1 -1
  28. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -2
  29. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -0
  30. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -1
  31. package/dist/packages/sdk-ui/src/common/components/button.d.ts +10 -0
  32. package/dist/packages/sdk-ui/src/common/components/popover.d.ts +23 -0
  33. package/dist/packages/sdk-ui/src/common/components/radio.d.ts +8 -0
  34. package/dist/packages/sdk-ui/src/common/hooks/use-combined-menu.d.ts +3 -4
  35. package/dist/packages/sdk-ui/src/const.d.ts +1 -0
  36. package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +6 -0
  38. package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -2
  39. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  40. package/dist/packages/sdk-ui/src/filters/components/custom-filter-tile.d.ts +1 -1
  41. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
  42. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
  43. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/index.d.ts +4 -0
  44. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +5 -0
  45. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +8 -0
  46. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +14 -0
  47. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/index.d.ts +3 -0
  48. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +7 -0
  49. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +12 -0
  50. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +12 -0
  51. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +7 -0
  52. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +12 -0
  53. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/types.d.ts +7 -0
  54. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/utils.d.ts +4 -0
  55. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +11 -0
  56. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +12 -0
  57. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +8 -0
  58. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/multi-select-control.d.ts +7 -0
  59. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/include-all-section.d.ts +9 -0
  60. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +11 -0
  61. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +11 -0
  62. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +5 -0
  63. package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +42 -0
  64. package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +19 -35
  65. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -0
  66. package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +0 -1
  67. package/dist/packages/sdk-ui/src/filters/components/icons/arrow-down-icon.d.ts +1 -1
  68. package/dist/packages/sdk-ui/src/filters/components/icons/check-icon.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +1 -0
  70. package/dist/packages/sdk-ui/src/filters/components/icons/search-icon.d.ts +1 -1
  71. package/dist/packages/sdk-ui/src/filters/components/index.d.ts +7 -0
  72. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/index.d.ts +1 -1
  73. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +3 -3
  74. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/members-reducer.d.ts +7 -0
  75. package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
  76. package/dist/packages/sdk-ui/src/filters/helpers.d.ts +1 -122
  77. package/dist/packages/sdk-ui/src/filters/hooks/index.d.ts +1 -0
  78. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +77 -0
  79. package/dist/packages/sdk-ui/src/filters/index.d.ts +2 -7
  80. package/dist/packages/sdk-ui/src/index.d.ts +1 -1
  81. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +9 -1
  82. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-totals-formatter.d.ts +4 -0
  83. package/dist/packages/sdk-ui/src/props.d.ts +15 -15
  84. package/dist/packages/sdk-ui/src/query/date-formats/apply-date-format.d.ts +1 -1
  85. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +29 -0
  86. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +58 -0
  87. package/dist/packages/sdk-ui/src/types.d.ts +27 -2
  88. package/dist/packages/sdk-ui/src/utils/filter-relations.d.ts +30 -72
  89. package/dist/packages/sdk-ui/src/widget-by-id/dashboard-widget.d.ts +1 -1
  90. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +1 -2
  91. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +14 -0
  92. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +2 -57
  93. package/dist/useQuery-CRu7WcYd.cjs +916 -0
  94. package/dist/{useQuery-DOgANgSI.js → useQuery-CdtycPOg.js} +17043 -16999
  95. package/dist/{widget-composer-ldmqMCC4.cjs → widget-composer-DyY3yi_b.cjs} +10 -8
  96. package/dist/{widget-composer-NNyD6tF2.js → widget-composer-G4mPX-JO.js} +168 -143
  97. package/package.json +7 -7
  98. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-tile.d.ts +0 -24
  99. package/dist/useQuery-KI9icU5_.cjs +0 -915
package/dist/ai.js CHANGED
@@ -1,73 +1,74 @@
1
- var ct = Object.defineProperty, dt = Object.defineProperties;
2
- var ut = Object.getOwnPropertyDescriptors;
1
+ var ut = Object.defineProperty, ht = Object.defineProperties;
2
+ var pt = Object.getOwnPropertyDescriptors;
3
3
  var ae = Object.getOwnPropertySymbols;
4
- var He = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
5
- var fe = (e, t, n) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, w = (e, t) => {
6
- for (var n in t || (t = {}))
7
- He.call(t, n) && fe(e, n, t[n]);
4
+ var Fe = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
5
+ var ye = (e, t, o) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, w = (e, t) => {
6
+ for (var o in t || (t = {}))
7
+ Fe.call(t, o) && ye(e, o, t[o]);
8
8
  if (ae)
9
- for (var n of ae(t))
10
- Be.call(t, n) && fe(e, n, t[n]);
9
+ for (var o of ae(t))
10
+ De.call(t, o) && ye(e, o, t[o]);
11
11
  return e;
12
- }, $ = (e, t) => dt(e, ut(t));
13
- var De = (e, t) => {
14
- var n = {};
12
+ }, L = (e, t) => ht(e, pt(t));
13
+ var Pe = (e, t) => {
14
+ var o = {};
15
15
  for (var r in e)
16
- He.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
16
+ Fe.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
17
17
  if (e != null && ae)
18
18
  for (var r of ae(e))
19
- t.indexOf(r) < 0 && Be.call(e, r) && (n[r] = e[r]);
20
- return n;
19
+ t.indexOf(r) < 0 && De.call(e, r) && (o[r] = e[r]);
20
+ return o;
21
21
  };
22
- var B = (e, t, n) => (fe(e, typeof t != "symbol" ? t + "" : t, n), n);
23
- var Q = (e, t, n) => new Promise((r, i) => {
24
- var a = (l) => {
22
+ var R = (e, t, o) => (ye(e, typeof t != "symbol" ? t + "" : t, o), o);
23
+ var G = (e, t, o) => new Promise((r, i) => {
24
+ var s = (l) => {
25
25
  try {
26
- c(n.next(l));
26
+ c(o.next(l));
27
27
  } catch (d) {
28
28
  i(d);
29
29
  }
30
- }, s = (l) => {
30
+ }, a = (l) => {
31
31
  try {
32
- c(n.throw(l));
32
+ c(o.throw(l));
33
33
  } catch (d) {
34
34
  i(d);
35
35
  }
36
- }, c = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, s);
37
- c((n = n.apply(e, t)).next());
36
+ }, c = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
37
+ c((o = o.apply(e, t)).next());
38
38
  });
39
- import { k as ht, j as pt, s as ue, be as Ct, bf as gt, o as _, _ as V, bg as We, D as ft, bh as mt, l as bt, bi as xt, m as me, P as f, p as yt, bj as vt, bk as wt, bl as kt, bm as Pe, bn as St, bo as oe, bp as Mt, bq as $t, br as Lt, aQ as Rt, M as Tt, aR as Et, g as Ht, b2 as Y, T as Oe, am as u, aB as H, Y as b, az as Ze, av as Bt, bs as Dt, aC as Ae, bt as Ft, ax as Nt, ap as te, aE as It, bu as Wt, X as qe, aM as Pt } from "./useQuery-DOgANgSI.js";
40
- import { jsx as o, jsxs as h, Fragment as D } from "react/jsx-runtime";
41
- import * as q from "react";
42
- import { createContext as ze, useMemo as N, useContext as Qe, useCallback as E, useEffect as ne, useState as L, useRef as K, useLayoutEffect as ce, memo as Ot, forwardRef as Zt, createElement as At } from "react";
43
- import { n as qt, bc as zt, ac as v, T as xe, u as Ve, ag as ye, Y as Qt, bd as Vt, q as jt, r as Gt, b1 as Ut } from "./derive-chart-family-H_RlUbXY.js";
44
- import { t as je } from "./widget-composer-NNyD6tF2.js";
45
- function _t(e) {
46
- return pt("MuiDialog", e);
39
+ import { bO as gt, J as Ct, I as ft, K as ue, bP as mt, bQ as bt, Q as Y, q as j, bR as Ae, X as xt, bS as yt, _ as vt, bT as wt, G as ve, P as f, R as kt, bU as St, bV as Mt, bW as Lt, bX as Ze, bY as $t, bZ as te, b_ as Tt, b$ as Rt, c0 as Et, bp as Nt, ab as It, bq as Ht, d as Bt, bC as Q, ah as he, aS as h, b0 as E, an as b, a_ as ze, aW as Ft, c1 as Dt, b1 as Ve, c2 as Pt, aY as Ot, aV as ee, b3 as Wt, c3 as qt, am as $e, c4 as At, bj as Zt, c5 as zt } from "./useQuery-CdtycPOg.js";
40
+ import { jsx as n, jsxs as g, Fragment as H } from "react/jsx-runtime";
41
+ import * as Z from "react";
42
+ import { createContext as Ge, useMemo as D, useContext as je, useCallback as T, useEffect as oe, useState as $, useRef as J, useLayoutEffect as ce, memo as Vt, forwardRef as Gt, createElement as jt } from "react";
43
+ import { x as Qt, a$ as Ut, v as k, T as ke, E as Qe, Y as Se, a0 as _t, b0 as Kt, B as Yt, D as Jt } from "./derive-chart-family-Cy3hlluo.js";
44
+ import { t as pe } from "./widget-composer-G4mPX-JO.js";
45
+ var Xt = gt("toLowerCase");
46
+ function e1(e) {
47
+ return ft("MuiDialog", e);
47
48
  }
48
- const be = ht("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Ge = /* @__PURE__ */ q.createContext({});
49
- process.env.NODE_ENV !== "production" && (Ge.displayName = "DialogContext");
50
- const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], Yt = ue(Ct, {
49
+ const we = Ct("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Ue = /* @__PURE__ */ Z.createContext({});
50
+ process.env.NODE_ENV !== "production" && (Ue.displayName = "DialogContext");
51
+ const t1 = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], o1 = ue(mt, {
51
52
  name: "MuiDialog",
52
53
  slot: "Backdrop",
53
54
  overrides: (e, t) => t.backdrop
54
55
  })({
55
56
  // Improve scrollable dialog support.
56
57
  zIndex: -1
57
- }), Jt = (e) => {
58
+ }), n1 = (e) => {
58
59
  const {
59
60
  classes: t,
60
- scroll: n,
61
+ scroll: o,
61
62
  maxWidth: r,
62
63
  fullWidth: i,
63
- fullScreen: a
64
- } = e, s = {
64
+ fullScreen: s
65
+ } = e, a = {
65
66
  root: ["root"],
66
- container: ["container", `scroll${_(n)}`],
67
- paper: ["paper", `paperScroll${_(n)}`, `paperWidth${_(String(r))}`, i && "paperFullWidth", a && "paperFullScreen"]
67
+ container: ["container", `scroll${Y(o)}`],
68
+ paper: ["paper", `paperScroll${Y(o)}`, `paperWidth${Y(String(r))}`, i && "paperFullWidth", s && "paperFullScreen"]
68
69
  };
69
- return yt(s, _t, t);
70
- }, Xt = ue(gt, {
70
+ return kt(a, e1, t);
71
+ }, r1 = ue(bt, {
71
72
  name: "MuiDialog",
72
73
  slot: "Root",
73
74
  overridesResolver: (e, t) => t.root
@@ -76,18 +77,18 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
76
77
  // Use !important to override the Modal inline-style.
77
78
  position: "absolute !important"
78
79
  }
79
- }), e1 = ue("div", {
80
+ }), i1 = ue("div", {
80
81
  name: "MuiDialog",
81
82
  slot: "Container",
82
83
  overridesResolver: (e, t) => {
83
84
  const {
84
- ownerState: n
85
+ ownerState: o
85
86
  } = e;
86
- return [t.container, t[`scroll${_(n.scroll)}`]];
87
+ return [t.container, t[`scroll${Y(o.scroll)}`]];
87
88
  }
88
89
  })(({
89
90
  ownerState: e
90
- }) => V({
91
+ }) => j({
91
92
  height: "100%",
92
93
  "@media print": {
93
94
  height: "auto"
@@ -109,19 +110,19 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
109
110
  height: "100%",
110
111
  width: "0"
111
112
  }
112
- })), t1 = ue(We, {
113
+ })), s1 = ue(Ae, {
113
114
  name: "MuiDialog",
114
115
  slot: "Paper",
115
116
  overridesResolver: (e, t) => {
116
117
  const {
117
- ownerState: n
118
+ ownerState: o
118
119
  } = e;
119
- return [t.paper, t[`scrollPaper${_(n.scroll)}`], t[`paperWidth${_(String(n.maxWidth))}`], n.fullWidth && t.paperFullWidth, n.fullScreen && t.paperFullScreen];
120
+ return [t.paper, t[`scrollPaper${Y(o.scroll)}`], t[`paperWidth${Y(String(o.maxWidth))}`], o.fullWidth && t.paperFullWidth, o.fullScreen && t.paperFullScreen];
120
121
  }
121
122
  })(({
122
123
  theme: e,
123
124
  ownerState: t
124
- }) => V({
125
+ }) => j({
125
126
  margin: 32,
126
127
  position: "relative",
127
128
  overflowY: "auto",
@@ -143,14 +144,14 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
143
144
  maxWidth: "calc(100% - 64px)"
144
145
  }, t.maxWidth === "xs" && {
145
146
  maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
146
- [`&.${be.paperScrollBody}`]: {
147
+ [`&.${we.paperScrollBody}`]: {
147
148
  [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
148
149
  maxWidth: "calc(100% - 64px)"
149
150
  }
150
151
  }
151
152
  }, t.maxWidth && t.maxWidth !== "xs" && {
152
153
  maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
153
- [`&.${be.paperScrollBody}`]: {
154
+ [`&.${we.paperScrollBody}`]: {
154
155
  [e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 32 * 2)]: {
155
156
  maxWidth: "calc(100% - 64px)"
156
157
  }
@@ -164,99 +165,99 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
164
165
  height: "100%",
165
166
  maxHeight: "none",
166
167
  borderRadius: 0,
167
- [`&.${be.paperScrollBody}`]: {
168
+ [`&.${we.paperScrollBody}`]: {
168
169
  margin: 0,
169
170
  maxWidth: "100%"
170
171
  }
171
- })), Ue = /* @__PURE__ */ q.forwardRef(function(t, n) {
172
- const r = ft({
172
+ })), _e = /* @__PURE__ */ Z.forwardRef(function(t, o) {
173
+ const r = xt({
173
174
  props: t,
174
175
  name: "MuiDialog"
175
- }), i = mt(), a = {
176
+ }), i = yt(), s = {
176
177
  enter: i.transitions.duration.enteringScreen,
177
178
  exit: i.transitions.duration.leavingScreen
178
179
  }, {
179
- "aria-describedby": s,
180
+ "aria-describedby": a,
180
181
  "aria-labelledby": c,
181
182
  BackdropComponent: l,
182
183
  BackdropProps: d,
183
- children: p,
184
- className: g,
185
- disableEscapeKeyDown: C = !1,
184
+ children: C,
185
+ className: u,
186
+ disableEscapeKeyDown: p = !1,
186
187
  fullScreen: m = !1,
187
- fullWidth: F = !1,
188
- maxWidth: k = "sm",
188
+ fullWidth: x = !1,
189
+ maxWidth: M = "sm",
189
190
  onBackdropClick: y,
190
- onClick: O,
191
- onClose: I,
192
- open: x,
193
- PaperComponent: Z = We,
194
- PaperProps: S = {},
195
- scroll: J = "paper",
196
- TransitionComponent: R = vt,
197
- transitionDuration: X = a,
198
- TransitionProps: Ce
199
- } = r, ge = bt(r, Kt), j = V({}, r, {
200
- disableEscapeKeyDown: C,
191
+ onClick: q,
192
+ onClose: N,
193
+ open: S,
194
+ PaperComponent: O = Ae,
195
+ PaperProps: B = {},
196
+ scroll: F = "paper",
197
+ TransitionComponent: V = St,
198
+ transitionDuration: se = s,
199
+ TransitionProps: fe
200
+ } = r, X = vt(r, t1), U = j({}, r, {
201
+ disableEscapeKeyDown: p,
201
202
  fullScreen: m,
202
- fullWidth: F,
203
- maxWidth: k,
204
- scroll: J
205
- }), G = Jt(j), U = q.useRef(), A = (T) => {
206
- U.current = T.target === T.currentTarget;
207
- }, se = (T) => {
208
- O && O(T), U.current && (U.current = null, y && y(T), I && I(T, "backdropClick"));
209
- }, ee = xt(c), M = q.useMemo(() => ({
210
- titleId: ee
211
- }), [ee]);
212
- return /* @__PURE__ */ o(Xt, V({
213
- className: me(G.root, g),
203
+ fullWidth: x,
204
+ maxWidth: M,
205
+ scroll: F
206
+ }), I = n1(U), _ = Z.useRef(), me = (v) => {
207
+ _.current = v.target === v.currentTarget;
208
+ }, be = (v) => {
209
+ q && q(v), _.current && (_.current = null, y && y(v), N && N(v, "backdropClick"));
210
+ }, K = wt(c), xe = Z.useMemo(() => ({
211
+ titleId: K
212
+ }), [K]);
213
+ return /* @__PURE__ */ n(r1, j({
214
+ className: ve(I.root, u),
214
215
  closeAfterTransition: !0,
215
216
  components: {
216
- Backdrop: Yt
217
+ Backdrop: o1
217
218
  },
218
219
  componentsProps: {
219
- backdrop: V({
220
- transitionDuration: X,
220
+ backdrop: j({
221
+ transitionDuration: se,
221
222
  as: l
222
223
  }, d)
223
224
  },
224
- disableEscapeKeyDown: C,
225
- onClose: I,
226
- open: x,
227
- ref: n,
228
- onClick: se,
229
- ownerState: j
230
- }, ge, {
231
- children: /* @__PURE__ */ o(R, V({
225
+ disableEscapeKeyDown: p,
226
+ onClose: N,
227
+ open: S,
228
+ ref: o,
229
+ onClick: be,
230
+ ownerState: U
231
+ }, X, {
232
+ children: /* @__PURE__ */ n(V, j({
232
233
  appear: !0,
233
- in: x,
234
- timeout: X,
234
+ in: S,
235
+ timeout: se,
235
236
  role: "presentation"
236
- }, Ce, {
237
- children: /* @__PURE__ */ o(e1, {
238
- className: me(G.container),
239
- onMouseDown: A,
240
- ownerState: j,
241
- children: /* @__PURE__ */ o(t1, V({
242
- as: Z,
237
+ }, fe, {
238
+ children: /* @__PURE__ */ n(i1, {
239
+ className: ve(I.container),
240
+ onMouseDown: me,
241
+ ownerState: U,
242
+ children: /* @__PURE__ */ n(s1, j({
243
+ as: O,
243
244
  elevation: 24,
244
245
  role: "dialog",
245
- "aria-describedby": s,
246
- "aria-labelledby": ee
247
- }, S, {
248
- className: me(G.paper, S.className),
249
- ownerState: j,
250
- children: /* @__PURE__ */ o(Ge.Provider, {
251
- value: M,
252
- children: p
246
+ "aria-describedby": a,
247
+ "aria-labelledby": K
248
+ }, B, {
249
+ className: ve(I.paper, B.className),
250
+ ownerState: U,
251
+ children: /* @__PURE__ */ n(Ue.Provider, {
252
+ value: xe,
253
+ children: C
253
254
  })
254
255
  }))
255
256
  })
256
257
  }))
257
258
  }));
258
259
  });
259
- process.env.NODE_ENV !== "production" && (Ue.propTypes = {
260
+ process.env.NODE_ENV !== "production" && (_e.propTypes = {
260
261
  // ┌────────────────────────────── Warning ──────────────────────────────┐
261
262
  // │ These PropTypes are generated from the TypeScript type definitions. │
262
263
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -388,21 +389,21 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
388
389
  */
389
390
  TransitionProps: f.object
390
391
  });
391
- class o1 extends wt {
392
- constructor(t, n) {
393
- super(), this.client = t, this.setOptions(n), this.bindMethods(), this.updateResult();
392
+ class a1 extends Mt {
393
+ constructor(t, o) {
394
+ super(), this.client = t, this.setOptions(o), this.bindMethods(), this.updateResult();
394
395
  }
395
396
  bindMethods() {
396
397
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
397
398
  }
398
399
  setOptions(t) {
399
- var n;
400
+ var o;
400
401
  const r = this.options;
401
- this.options = this.client.defaultMutationOptions(t), kt(r, this.options) || this.client.getMutationCache().notify({
402
+ this.options = this.client.defaultMutationOptions(t), Lt(r, this.options) || this.client.getMutationCache().notify({
402
403
  type: "observerOptionsUpdated",
403
404
  mutation: this.currentMutation,
404
405
  observer: this
405
- }), (n = this.currentMutation) == null || n.setOptions(this.options);
406
+ }), (o = this.currentMutation) == null || o.setOptions(this.options);
406
407
  }
407
408
  onUnsubscribe() {
408
409
  if (!this.hasListeners()) {
@@ -412,10 +413,10 @@ class o1 extends wt {
412
413
  }
413
414
  onMutationUpdate(t) {
414
415
  this.updateResult();
415
- const n = {
416
+ const o = {
416
417
  listeners: !0
417
418
  };
418
- t.type === "success" ? n.onSuccess = !0 : t.type === "error" && (n.onError = !0), this.notify(n);
419
+ t.type === "success" ? o.onSuccess = !0 : t.type === "error" && (o.onError = !0), this.notify(o);
419
420
  }
420
421
  getCurrentResult() {
421
422
  return this.currentResult;
@@ -425,13 +426,13 @@ class o1 extends wt {
425
426
  listeners: !0
426
427
  });
427
428
  }
428
- mutate(t, n) {
429
- return this.mutateOptions = n, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, $(w({}, this.options), {
429
+ mutate(t, o) {
430
+ return this.mutateOptions = o, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, L(w({}, this.options), {
430
431
  variables: typeof t != "undefined" ? t : this.options.variables
431
432
  })), this.currentMutation.addObserver(this), this.currentMutation.execute();
432
433
  }
433
434
  updateResult() {
434
- const t = this.currentMutation ? this.currentMutation.state : St(), n = $(w({}, t), {
435
+ const t = this.currentMutation ? this.currentMutation.state : $t(), o = L(w({}, t), {
435
436
  isLoading: t.status === "loading",
436
437
  isSuccess: t.status === "success",
437
438
  isError: t.status === "error",
@@ -439,77 +440,79 @@ class o1 extends wt {
439
440
  mutate: this.mutate,
440
441
  reset: this.reset
441
442
  });
442
- this.currentResult = n;
443
+ this.currentResult = o;
443
444
  }
444
445
  notify(t) {
445
- Pe.batch(() => {
446
+ Ze.batch(() => {
446
447
  if (this.mutateOptions && this.hasListeners()) {
447
448
  if (t.onSuccess) {
448
- var n, r, i, a;
449
- (n = (r = this.mutateOptions).onSuccess) == null || n.call(r, this.currentResult.data, this.currentResult.variables, this.currentResult.context), (i = (a = this.mutateOptions).onSettled) == null || i.call(a, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);
449
+ var o, r, i, s;
450
+ (o = (r = this.mutateOptions).onSuccess) == null || o.call(r, this.currentResult.data, this.currentResult.variables, this.currentResult.context), (i = (s = this.mutateOptions).onSettled) == null || i.call(s, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);
450
451
  } else if (t.onError) {
451
- var s, c, l, d;
452
- (s = (c = this.mutateOptions).onError) == null || s.call(c, this.currentResult.error, this.currentResult.variables, this.currentResult.context), (l = (d = this.mutateOptions).onSettled) == null || l.call(d, void 0, this.currentResult.error, this.currentResult.variables, this.currentResult.context);
452
+ var a, c, l, d;
453
+ (a = (c = this.mutateOptions).onError) == null || a.call(c, this.currentResult.error, this.currentResult.variables, this.currentResult.context), (l = (d = this.mutateOptions).onSettled) == null || l.call(d, void 0, this.currentResult.error, this.currentResult.variables, this.currentResult.context);
453
454
  }
454
455
  }
455
456
  t.listeners && this.listeners.forEach(({
456
- listener: p
457
+ listener: C
457
458
  }) => {
458
- p(this.currentResult);
459
+ C(this.currentResult);
459
460
  });
460
461
  });
461
462
  }
462
463
  }
463
- function ke(e, t, n) {
464
- const r = Lt(e, t), i = oe({
464
+ function Te(e, t, o) {
465
+ const r = Et(e, t), i = te({
465
466
  context: r.context
466
- }), [a] = q.useState(() => new o1(i, r));
467
- q.useEffect(() => {
468
- a.setOptions(r);
469
- }, [a, r]);
470
- const s = Mt(q.useCallback((l) => a.subscribe(Pe.batchCalls(l)), [a]), () => a.getCurrentResult(), () => a.getCurrentResult()), c = q.useCallback((l, d) => {
471
- a.mutate(l, d).catch(n1);
472
- }, [a]);
473
- if (s.error && $t(a.options.useErrorBoundary, [s.error]))
474
- throw s.error;
475
- return $(w({}, s), {
467
+ }), [s] = Z.useState(() => new a1(i, r));
468
+ Z.useEffect(() => {
469
+ s.setOptions(r);
470
+ }, [s, r]);
471
+ const a = Tt(Z.useCallback((l) => s.subscribe(Ze.batchCalls(l)), [s]), () => s.getCurrentResult(), () => s.getCurrentResult()), c = Z.useCallback((l, d) => {
472
+ s.mutate(l, d).catch(l1);
473
+ }, [s]);
474
+ if (a.error && Rt(s.options.useErrorBoundary, [a.error]))
475
+ throw a.error;
476
+ return L(w({}, a), {
476
477
  mutate: c,
477
- mutateAsync: s.mutate
478
+ mutateAsync: a.mutate
478
479
  });
479
480
  }
480
- function n1() {
481
+ function l1() {
481
482
  }
482
- class r1 {
483
+ class c1 {
483
484
  constructor(t) {
484
- B(this, "httpClient");
485
- B(this, "getChatContexts", () => Q(this, null, function* () {
485
+ R(this, "httpClient");
486
+ R(this, "getChatContexts", () => G(this, null, function* () {
486
487
  return (yield this.httpClient.get("api/datasources//")) || [];
487
488
  }));
488
489
  // ==== /v2/ai endpoints ====
489
- B(this, "getNlgQueryResult", (t) => this.httpClient.post("api/v2/ai/nlg/queryResult", t));
490
- B(this, "getQueryRecommendations", (t, n) => this.httpClient.get(
491
- `api/v2/ai/recommendations/query/${t}/${n.numOfRecommendations}`
490
+ R(this, "getNlgInsights", (t) => this.httpClient.post("api/v2/ai/nlg/queryResult", t));
491
+ R(this, "getQueryRecommendations", (t, o) => this.httpClient.get(
492
+ `api/v2/ai/recommendations/query/${t}/${o.numOfRecommendations}`
492
493
  ));
493
- B(this, "setLlmConfig", (t) => this.httpClient.post("api/v2/settings/ai/llmProvider", t).catch((n) => {
494
- console.error("Unable to set llm config", n);
494
+ R(this, "getNlqResult", (t, o) => this.httpClient.post(`api/v2/ai/nlq/query/${t}`, o));
495
+ R(this, "setLlmConfig", (t) => this.httpClient.post("api/v2/settings/ai/llmProvider", t).catch((o) => {
496
+ console.error("Unable to set llm config", o);
495
497
  }));
496
498
  // ==== /v2/ai/chats endpoints ====
497
- B(this, "getAllChats", () => this.httpClient.get("api/v2/ai/chats"));
498
- B(this, "getChatById", (t) => this.httpClient.get(`api/v2/ai/chats/${t}`));
499
- B(this, "createChat", (t) => this.httpClient.post("api/v2/ai/chats", { sourceId: t }));
500
- B(this, "postChat", (t, n) => this.httpClient.post(`api/v2/ai/chats/${t}`, n));
501
- B(this, "deleteChatHistory", (t) => this.httpClient.delete(`api/v2/ai/chats/${t}/history`));
502
- B(this, "sendFeedback", (t) => this.httpClient.post("api/v2/ai/feedback", t));
499
+ R(this, "getAllChats", () => this.httpClient.get("api/v2/ai/chats"));
500
+ R(this, "getChatById", (t) => this.httpClient.get(`api/v2/ai/chats/${t}`));
501
+ R(this, "createChat", (t) => this.httpClient.post("api/v2/ai/chats", { sourceId: t }));
502
+ R(this, "postChat", (t, o) => this.httpClient.post(`api/v2/ai/chats/${t}`, o));
503
+ R(this, "deleteChatHistory", (t) => this.httpClient.delete(`api/v2/ai/chats/${t}/history`));
504
+ R(this, "sendFeedback", (t) => this.httpClient.post("api/v2/ai/feedback", t));
503
505
  // ==== misc endpoints ====
504
- B(this, "getDataSourceFields", (t) => this.httpClient.post(
506
+ R(this, "getDataSourceFields", (t) => this.httpClient.post(
505
507
  `api/datasources/${encodeURIComponent(t)}/fields/search`,
506
508
  {
507
509
  offset: 0,
508
510
  count: 9999
509
511
  }
510
512
  ));
511
- B(this, "ai", {
512
- getNlgQueryResult: this.getNlgQueryResult,
513
+ R(this, "ai", {
514
+ getNlgInsights: this.getNlgInsights,
515
+ getNlqResult: this.getNlqResult,
513
516
  getQueryRecommendations: this.getQueryRecommendations,
514
517
  setLlmConfig: this.setLlmConfig,
515
518
  sendFeedback: this.sendFeedback,
@@ -525,123 +528,159 @@ class r1 {
525
528
  this.httpClient = t;
526
529
  }
527
530
  }
528
- const i1 = new Rt({
531
+ const d1 = new Nt({
529
532
  defaultOptions: {
530
533
  queries: {
531
534
  refetchOnWindowFocus: !1,
532
535
  refetchOnMount: !1
533
536
  }
534
537
  }
535
- }), _e = ze(void 0), W = () => Qe(_e), s1 = ({ children: e }) => {
536
- const { app: t } = Tt(), n = N(() => t ? new r1(t.httpClient) : void 0, [t]);
537
- return /* @__PURE__ */ o(_e.Provider, { value: n, children: /* @__PURE__ */ o(Et, { client: i1, children: e }) });
538
+ }), Ke = Ge(void 0), P = () => je(Ke), u1 = ({ children: e }) => {
539
+ const { app: t } = It(), o = D(() => t ? new c1(t.httpClient) : void 0, [t]);
540
+ return /* @__PURE__ */ n(Ke.Provider, { value: o, children: /* @__PURE__ */ n(Ht, { client: d1, children: e }) });
538
541
  };
539
- function mn({ children: e }) {
540
- return /* @__PURE__ */ o(s1, { children: e });
542
+ function kn({ children: e }) {
543
+ return /* @__PURE__ */ n(u1, { children: e });
541
544
  }
542
- const he = (e, t = !0) => {
543
- const n = N(() => {
544
- var p, g;
545
+ const ne = (e, t = !0) => {
546
+ const o = D(() => {
547
+ var C, u;
545
548
  if ("jaql" in e)
546
549
  return e;
547
550
  {
548
- const C = zt(e.dataSource), { filters: m = [], relations: F } = qt(e.filters), { metadata: k, filterRelations: y } = Ht(
551
+ const p = Ut(e.dataSource), { filters: m = [], relations: x } = Qt(e.filters), { metadata: M, filterRelations: y } = Bt(
549
552
  {
550
553
  dataSource: e.dataSource,
551
- attributes: (p = e.dimensions) != null ? p : [],
552
- measures: (g = e.measures) != null ? g : [],
554
+ attributes: (C = e.dimensions) != null ? C : [],
555
+ measures: (u = e.measures) != null ? u : [],
553
556
  filters: m,
554
- filterRelations: F,
557
+ filterRelations: x,
555
558
  highlights: []
556
559
  },
557
560
  !0
558
561
  );
559
562
  return {
560
563
  jaql: {
561
- datasource: C,
562
- metadata: k,
564
+ datasource: p,
565
+ metadata: M,
563
566
  filterRelations: y
564
567
  }
565
568
  };
566
569
  }
567
- }, [e]), r = W(), { data: i, error: a, isError: s, isLoading: c, isSuccess: l, refetch: d } = Y({
568
- queryKey: ["getNlgQueryResult", n, r],
569
- queryFn: () => r == null ? void 0 : r.ai.getNlgQueryResult(n),
570
- select: (p) => {
571
- var g;
572
- return (g = p == null ? void 0 : p.data) == null ? void 0 : g.answer;
570
+ }, [e]), r = P(), { data: i, error: s, isError: a, isLoading: c, isSuccess: l, refetch: d } = Q({
571
+ queryKey: ["getNlgInsights", o, r],
572
+ queryFn: () => r == null ? void 0 : r.ai.getNlgInsights(o),
573
+ select: (C) => {
574
+ var u;
575
+ return (u = C == null ? void 0 : C.data) == null ? void 0 : u.answer;
573
576
  },
574
577
  enabled: !!r && t
575
578
  });
576
579
  return {
577
580
  isLoading: c,
578
- isError: s,
581
+ isError: a,
579
582
  isSuccess: l,
580
583
  data: i,
581
- error: a,
582
- refetch: E(() => {
584
+ error: s,
585
+ refetch: T(() => {
583
586
  d();
584
587
  }, [d])
585
588
  };
586
- }, a1 = (e) => {
587
- const r = e, { enabled: t } = r, n = De(r, ["enabled"]);
588
- return he(n, t);
589
- }, bn = Oe("useGetNlgQueryResult")(
590
- a1
591
- ), Ke = Object.freeze({
589
+ }, Ye = (e) => {
590
+ const r = e, { enabled: t } = r, o = Pe(r, ["enabled"]);
591
+ return ne(o, t);
592
+ }, Sn = he("useGetNlgInsights")(
593
+ Ye
594
+ ), Mn = he("useGetNlgQueryResult")(
595
+ Ye
596
+ ), h1 = [
597
+ "indicator",
598
+ "column",
599
+ "line",
600
+ "table",
601
+ "pie",
602
+ "bar"
603
+ ], p1 = (e) => {
604
+ const { dataSource: t, query: o, chartTypes: r } = e, i = typeof t == "string" ? t : t.title, s = P(), { isLoading: a, isError: c, isSuccess: l, data: d, error: C, refetch: u } = Q({
605
+ queryKey: ["getNlqResult", t, o, r, s],
606
+ queryFn: () => s == null ? void 0 : s.ai.getNlqResult(i, {
607
+ text: o,
608
+ // Per @Einat Shusterman: Timezone is not used by AI API, but it is currently required by the endpoint
609
+ timezone: "UTC",
610
+ chartTypes: r != null ? r : [...h1]
611
+ }),
612
+ enabled: !!s && e.enabled
613
+ }), p = d ? pe(d, {
614
+ useCustomizedStyleOptions: e.enableAxisTitlesInWidgetProps || !1
615
+ }) : void 0;
616
+ return {
617
+ isLoading: a,
618
+ isError: c,
619
+ isSuccess: l,
620
+ data: p,
621
+ error: C,
622
+ refetch: T(() => {
623
+ u();
624
+ }, [u])
625
+ };
626
+ }, Ln = he("useGetNlqResult")(p1), Je = (e) => {
627
+ const { contextTitle: t, count: o, enableAxisTitlesInWidgetProps: r, enabled: i } = e, s = P(), a = o != null ? o : 4, c = (i === void 0 || i === !0) && a > 0, { isLoading: l, isError: d, isSuccess: C, data: u, error: p, refetch: m } = Q({
628
+ queryKey: ["getQueryRecommendations", t, a, s],
629
+ queryFn: () => s == null ? void 0 : s.ai.getQueryRecommendations(t, {
630
+ numOfRecommendations: a
631
+ }),
632
+ enabled: !!s && c
633
+ });
634
+ return u == null || u.map((x) => {
635
+ x.widgetProps = x.jaql ? pe(x, {
636
+ useCustomizedStyleOptions: r
637
+ }) : void 0;
638
+ }), {
639
+ isLoading: c ? l : !1,
640
+ isError: d,
641
+ isSuccess: C,
642
+ data: u != null ? u : void 0,
643
+ error: p,
644
+ refetch: T(() => {
645
+ m();
646
+ }, [m])
647
+ };
648
+ }, $n = he("useGetQueryRecommendations")(
649
+ Je
650
+ ), Xe = Object.freeze({
592
651
  enableFollowupQuestions: !1,
593
652
  enableHeader: !0,
594
653
  enableInsights: !0,
595
654
  numOfRecommendations: 4,
596
655
  numOfRecentPrompts: 5
597
- }), Ye = ze(w({}, Ke)), P = () => Qe(Ye), l1 = ({ children: e, value: t }) => {
598
- const { t: n } = v(), r = Object.entries(t).reduce(
599
- (i, [a, s]) => (s !== void 0 && (i[a] = s), i),
600
- $(w({}, Ke), {
601
- inputPromptText: n("ai.config.inputPromptText"),
602
- welcomeText: n("ai.config.welcomeText"),
603
- suggestionsWelcomeText: n("ai.config.suggestionsWelcomeText")
656
+ }), et = Ge(w({}, Xe)), W = () => je(et), g1 = ({ children: e, value: t }) => {
657
+ const { t: o } = k(), r = Object.entries(t).reduce(
658
+ (i, [s, a]) => (a !== void 0 && (i[s] = a), i),
659
+ L(w({}, Xe), {
660
+ inputPromptText: o("ai.config.inputPromptText"),
661
+ welcomeText: o("ai.config.welcomeText"),
662
+ suggestionsWelcomeText: o("ai.config.suggestionsWelcomeText")
604
663
  })
605
664
  );
606
- return /* @__PURE__ */ o(Ye.Provider, { value: r, children: e });
607
- }, Je = (e) => {
608
- const { contextTitle: t, count: n } = e, r = W(), { numOfRecommendations: i } = P(), a = n != null ? n : i, s = a > 0, { isLoading: c, isError: l, isSuccess: d, data: p, error: g, refetch: C } = Y({
609
- queryKey: ["getQueryRecommendations", t, a, r],
610
- queryFn: () => r == null ? void 0 : r.ai.getQueryRecommendations(t, {
611
- numOfRecommendations: a
612
- }),
613
- enabled: !!r && s
614
- });
615
- return {
616
- isLoading: s ? c : !1,
617
- isError: s ? l : !1,
618
- isSuccess: s ? d : !1,
619
- data: s && p ? p : [],
620
- error: s ? g : null,
621
- refetch: E(() => {
622
- s && C();
623
- }, [C, s])
624
- };
625
- }, xn = Oe("useGetQueryRecommendations")(
626
- Je
627
- ), Se = "chatHistory", c1 = (e) => {
628
- const t = W(), { hideHistory: n } = P();
629
- return Y({
630
- queryKey: [Se, e, t],
631
- queryFn: () => Q(void 0, null, function* () {
665
+ return /* @__PURE__ */ n(et.Provider, { value: r, children: e });
666
+ }, Re = "chatHistory", C1 = (e) => {
667
+ const t = P(), { hideHistory: o } = W();
668
+ return Q({
669
+ queryKey: [Re, e, t],
670
+ queryFn: () => G(void 0, null, function* () {
632
671
  if (!t || !e)
633
672
  return;
634
- if (n)
673
+ if (o)
635
674
  return [];
636
675
  const r = yield t.ai.chat.getById(e);
637
676
  return r == null ? void 0 : r.chatHistory;
638
677
  }),
639
678
  enabled: !!t && !!e
640
679
  });
641
- }, Xe = (e) => {
642
- const t = W(), n = oe();
643
- return ke({
644
- mutationFn: () => Q(void 0, null, function* () {
680
+ }, tt = (e) => {
681
+ const t = P(), o = te();
682
+ return Te({
683
+ mutationFn: () => G(void 0, null, function* () {
645
684
  if (!(!t || !e))
646
685
  return t.ai.chat.clearHistory(e);
647
686
  }),
@@ -649,50 +688,50 @@ const he = (e, t = !0) => {
649
688
  console.error("Error when clearing history:", r);
650
689
  },
651
690
  onSettled: () => {
652
- e && n.setQueriesData([Se, e], []);
691
+ e && o.setQueriesData([Re, e], []);
653
692
  }
654
693
  });
655
- }, et = (e) => {
656
- const { data: t, isLoading: n, isError: r } = c1(e), { mutate: i } = Xe(e);
657
- return ne(() => {
694
+ }, ot = (e) => {
695
+ const { data: t, isLoading: o, isError: r } = C1(e), { mutate: i } = tt(e);
696
+ return oe(() => {
658
697
  r && i();
659
698
  }, [r, i]), {
660
699
  history: t,
661
- isLoading: n,
700
+ isLoading: o,
662
701
  isError: r
663
702
  };
664
- }, tt = () => {
665
- const e = W(), { data: t, isLoading: n, fetchStatus: r } = Y({
703
+ }, nt = () => {
704
+ const e = P(), { data: t, isLoading: o, fetchStatus: r } = Q({
666
705
  queryKey: ["getDataTopics", e],
667
- queryFn: () => Q(void 0, null, function* () {
706
+ queryFn: () => G(void 0, null, function* () {
668
707
  if (e)
669
708
  return e.getChatContexts();
670
709
  }),
671
710
  enabled: !!e
672
711
  });
673
- return { data: t, isLoading: n, fetchStatus: r };
674
- }, ot = () => {
675
- const e = W(), { data: t, isLoading: n } = Y({
712
+ return { data: t, isLoading: o, fetchStatus: r };
713
+ }, rt = () => {
714
+ const e = P(), { data: t, isLoading: o } = Q({
676
715
  queryKey: ["getAllChats", e],
677
716
  queryFn: () => e == null ? void 0 : e.ai.chat.getAll(),
678
717
  enabled: !!e
679
718
  });
680
719
  return {
681
720
  data: t != null ? t : [],
682
- isLoading: n
721
+ isLoading: o
683
722
  };
684
- }, d1 = (e, t) => {
685
- const n = oe(), r = W(), i = ke({
686
- mutationFn: () => Q(void 0, null, function* () {
723
+ }, f1 = (e, t) => {
724
+ const o = te(), r = P(), i = Te({
725
+ mutationFn: () => G(void 0, null, function* () {
687
726
  if (!(!r || !e))
688
727
  return r.ai.chat.create(e);
689
728
  }),
690
- onSuccess: () => n.invalidateQueries(["getAllChats"])
729
+ onSuccess: () => o.invalidateQueries(["getAllChats"])
691
730
  });
692
- return ne(() => {
731
+ return oe(() => {
693
732
  t && i.isIdle && i.mutate();
694
733
  }, [t, i]), i;
695
- }, u1 = (e, t) => {
734
+ }, m1 = (e, t) => {
696
735
  switch (e.responseType = e.responseType.toLowerCase(), e.responseType) {
697
736
  case "nlq":
698
737
  return {
@@ -709,29 +748,31 @@ const he = (e, t = !0) => {
709
748
  default:
710
749
  throw Error(`${t}${JSON.stringify(e)}`);
711
750
  }
712
- }, h1 = (e) => {
713
- const t = oe(), n = E(
751
+ }, b1 = (e, t) => {
752
+ const o = te(), r = T(
714
753
  (l) => {
715
- e && t.setQueriesData([Se, e], (d) => d && [...d, l]);
754
+ e && o.setQueriesData([Re, e], (d) => d && [...d, l]);
716
755
  },
717
- [t, e]
718
- ), { enableFollowupQuestions: r } = P(), { t: i } = v(), a = W(), { mutate: s, isLoading: c } = ke({
719
- mutationFn: (l) => Q(void 0, null, function* () {
720
- if (!(!a || !e))
721
- return a.ai.chat.post(e, {
756
+ [o, e]
757
+ ), { t: i } = k(), s = P(), { mutate: a, isLoading: c } = Te({
758
+ mutationFn: (l) => G(void 0, null, function* () {
759
+ if (!(!s || !e))
760
+ return s.ai.chat.post(e, {
722
761
  text: l,
723
- options: { enableFollowup: r }
762
+ options: { enableFollowup: t }
724
763
  });
725
764
  }),
726
765
  onMutate: (l) => {
727
- n({
766
+ r({
728
767
  content: l,
729
768
  role: "user"
730
769
  });
731
770
  },
732
771
  onError: (l) => {
733
- l instanceof Error && (console.error("Error when sending message:", l.message), n({
734
- content: i("errors.unexpectedChatResponse"),
772
+ l instanceof Error && (console.error("Error when sending message:", l.message), r({
773
+ content: i(`ai.errors.${l.interpolationOptions.errorCode}`, {
774
+ defaultValue: i("ai.errors.unexpectedChatResponse")
775
+ }),
735
776
  role: "assistant"
736
777
  }));
737
778
  },
@@ -739,61 +780,64 @@ const he = (e, t = !0) => {
739
780
  if (!l)
740
781
  return;
741
782
  const d = i("ai.errors.unknownResponse");
742
- n(u1(l, d));
783
+ r(m1(l, d));
743
784
  }
744
785
  });
745
- return { mutate: s, isLoading: c };
746
- }, Me = (e) => !!e && "type" in e && e.type === "nlq", p1 = (e) => !!e && "type" in e && e.type === "text", C1 = (e) => {
747
- var x, Z;
748
- const { t } = v(), { data: n, isLoading: r } = tt(), { data: i, isLoading: a } = ot(), s = (x = n == null ? void 0 : n.find((S) => S.title === e)) == null ? void 0 : x.title, c = (Z = i.find((S) => S.contextTitle === s)) == null ? void 0 : Z.chatId, l = r || !!s, d = a || !!c, [p, g] = L(null), { isError: C } = d1(
749
- s,
750
- l && !d
751
- ), { history: m, isLoading: F, isError: k } = et(c);
752
- ne(() => {
753
- C ? g(new xe("ai.errors.chatUnavailable")) : k && g(new xe("ai.errors.fetchHistory"));
754
- }, [C, k, t]);
755
- const { mutate: y, isLoading: O } = h1(c), I = N(() => {
756
- if (m != null && m.length) {
757
- const S = m[m.length - 1];
758
- if (Me(S))
759
- return JSON.parse(S.content);
786
+ return { mutate: a, isLoading: c };
787
+ }, Ee = (e) => !!e && "type" in e && e.type === "nlq", x1 = (e) => !!e && "type" in e && e.type === "text", y1 = (e) => {
788
+ var O, B;
789
+ const { t } = k(), { enableFollowupQuestions: o } = W(), { data: r, isLoading: i } = nt(), { data: s, isLoading: a } = rt(), c = (O = r == null ? void 0 : r.find((F) => F.title === e)) == null ? void 0 : O.title, l = (B = s.find((F) => F.contextTitle === c)) == null ? void 0 : B.chatId, d = i || !!c, C = a || !!l, [u, p] = $(null), { isError: m } = f1(
790
+ c,
791
+ d && !C
792
+ ), { history: x, isLoading: M, isError: y } = ot(l);
793
+ oe(() => {
794
+ m ? p(new ke("ai.errors.chatUnavailable")) : y && p(new ke("ai.errors.fetchHistory"));
795
+ }, [m, y, t]);
796
+ const { mutate: q, isLoading: N } = b1(
797
+ l,
798
+ o
799
+ ), S = D(() => {
800
+ if (x != null && x.length) {
801
+ const F = x[x.length - 1];
802
+ if (Ee(F))
803
+ return JSON.parse(F.content);
760
804
  }
761
805
  return null;
762
- }, [m]);
806
+ }, [x]);
763
807
  return {
764
- chatId: c,
765
- history: m != null ? m : [],
766
- lastNlqResponse: I,
767
- sendMessage: y,
768
- isAwaitingResponse: O,
769
- isLoading: F,
770
- lastError: p
808
+ chatId: l,
809
+ history: x != null ? x : [],
810
+ lastNlqResponse: S,
811
+ sendMessage: q,
812
+ isAwaitingResponse: N,
813
+ isLoading: M,
814
+ lastError: u
771
815
  };
772
- }, yn = ({
816
+ }, Tn = ({
773
817
  contextTitle: e
774
818
  }) => {
775
819
  var i;
776
- const { data: t } = ot(), n = (i = t.find((a) => a.contextTitle === e)) == null ? void 0 : i.chatId, { history: r } = et(n);
777
- return N(() => {
820
+ const { data: t } = rt(), o = (i = t.find((s) => s.contextTitle === e)) == null ? void 0 : i.chatId, { history: r } = ot(o);
821
+ return D(() => {
778
822
  if (r != null && r.length) {
779
- const a = r[r.length - 1];
780
- if (Me(a))
781
- return JSON.parse(a.content);
823
+ const s = r[r.length - 1];
824
+ if (Ee(s))
825
+ return JSON.parse(s.content);
782
826
  }
783
827
  return null;
784
828
  }, [r]);
785
- }, vn = (e) => {
786
- const t = W(), { data: n, isLoading: r } = Y({
829
+ }, Rn = (e) => {
830
+ const t = P(), { data: o, isLoading: r } = Q({
787
831
  queryKey: ["getDataSourceFields", e, t],
788
832
  queryFn: () => e ? t == null ? void 0 : t.ai.getDataSourceFields(e) : void 0,
789
833
  select: (i) => i,
790
834
  enabled: !!t && !!e
791
835
  });
792
836
  return {
793
- data: n,
837
+ data: o,
794
838
  isLoading: r
795
839
  };
796
- }, g1 = 500, f1 = 500, m1 = 500, b1 = 900, x1 = u.div`
840
+ }, v1 = 500, w1 = 500, k1 = 500, S1 = 900, M1 = h.div`
797
841
  box-sizing: border-box;
798
842
  position: relative;
799
843
  display: flex;
@@ -803,22 +847,22 @@ const he = (e, t = !0) => {
803
847
  background-color: ${({ theme: e }) => e.aiChat.backgroundColor};
804
848
  overflow: hidden;
805
849
 
806
- min-width: ${g1}px;
807
- min-height: ${f1}px;
808
- width: ${({ width: e }) => e ? Fe(e) : `${m1}px`};
809
- height: ${({ height: e }) => e ? Fe(e) : `${b1}px`};
850
+ min-width: ${v1}px;
851
+ min-height: ${w1}px;
852
+ width: ${({ width: e }) => e ? Oe(e) : `${k1}px`};
853
+ height: ${({ height: e }) => e ? Oe(e) : `${S1}px`};
810
854
 
811
- ${({ theme: e }) => H`
855
+ ${({ theme: e }) => E`
812
856
  font-size: ${e.aiChat.primaryFontSize[0]};
813
857
  line-height: ${e.aiChat.primaryFontSize[1]};
814
858
  `}
815
859
  border: ${({ theme: e }) => e.aiChat.border === !1 ? "none" : e.aiChat.border};
816
860
  `;
817
- function Fe(e) {
861
+ function Oe(e) {
818
862
  return typeof e == "number" ? `${e}px` : e;
819
863
  }
820
- function y1({ spin: e }) {
821
- return /* @__PURE__ */ h(
864
+ function L1({ spin: e }) {
865
+ return /* @__PURE__ */ g(
822
866
  "svg",
823
867
  {
824
868
  xmlns: "http://www.w3.org/2000/svg",
@@ -828,7 +872,7 @@ function y1({ spin: e }) {
828
872
  fill: "none",
829
873
  className: `${e ? "csdk-animate-spin" : ""}`,
830
874
  children: [
831
- /* @__PURE__ */ o(
875
+ /* @__PURE__ */ n(
832
876
  "path",
833
877
  {
834
878
  fillRule: "evenodd",
@@ -838,7 +882,7 @@ function y1({ spin: e }) {
838
882
  fillOpacity: "0.3"
839
883
  }
840
884
  ),
841
- /* @__PURE__ */ o(
885
+ /* @__PURE__ */ n(
842
886
  "path",
843
887
  {
844
888
  fillRule: "evenodd",
@@ -851,11 +895,11 @@ function y1({ spin: e }) {
851
895
  }
852
896
  );
853
897
  }
854
- function pe() {
855
- return /* @__PURE__ */ o("div", { className: "csdk-m-auto", "aria-label": "loading spinner", children: /* @__PURE__ */ o(y1, { spin: !0 }) });
898
+ function ge() {
899
+ return /* @__PURE__ */ n("div", { className: "csdk-m-auto", "aria-label": "loading spinner", children: /* @__PURE__ */ n(L1, { spin: !0 }) });
856
900
  }
857
- function v1({ theme: e }) {
858
- return /* @__PURE__ */ o("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o(
901
+ function $1({ theme: e }) {
902
+ return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
859
903
  "path",
860
904
  {
861
905
  d: "M4 14L0 10L24 0L14 24L10 20L8.47667 16.9533L19 6.4L20 4.00001L17.6099 5L7.04354 15.5218L4 14Z",
@@ -863,24 +907,24 @@ function v1({ theme: e }) {
863
907
  }
864
908
  ) });
865
909
  }
866
- function w1({ theme: e }) {
910
+ function T1({ theme: e }) {
867
911
  const t = e.aiChat.icons.color;
868
- return /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", children: [
869
- /* @__PURE__ */ o(
912
+ return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", children: [
913
+ /* @__PURE__ */ n(
870
914
  "path",
871
915
  {
872
916
  d: "M21.4095 11.1195L12.5644 6.0459C12.3247 5.90841 12.0189 5.99143 11.8816 6.23128L10.764 8.18434C10.6275 8.42284 10.709 8.72678 10.9466 8.86491L19.7108 13.9614C19.9464 14.0984 20.2483 14.0215 20.3897 13.7884L21.5883 11.8125C21.734 11.5723 21.6532 11.2592 21.4095 11.1195Z",
873
917
  fill: t
874
918
  }
875
919
  ),
876
- /* @__PURE__ */ o(
920
+ /* @__PURE__ */ n(
877
921
  "path",
878
922
  {
879
923
  d: "M18.7329 8.60735L16.1048 7.07819L19.6668 0.928042C19.8041 0.6909 20.1068 0.608502 20.3454 0.743288L22.156 1.7661C22.3992 1.90347 22.4827 2.21344 22.3414 2.45438L18.7329 8.60735Z",
880
924
  fill: t
881
925
  }
882
926
  ),
883
- /* @__PURE__ */ o(
927
+ /* @__PURE__ */ n(
884
928
  "path",
885
929
  {
886
930
  d: "M19.8544 14.9048L10.3563 9.43067C10.2184 9.35116 10.0413 9.39515 9.95275 9.52746C7.03423 13.8862 4.07448 15.2337 3.18167 16.0938C3.09276 16.1794 3.08414 16.3141 3.1538 16.416C3.74961 17.2879 5.10497 18.4425 6.05628 19.2048C6.17328 19.2985 6.34145 19.2903 6.44961 19.1865L9.97994 15.7973L7.69329 20.1066C7.61954 20.2456 7.66674 20.4186 7.80041 20.5017C11.6152 22.8708 14.2978 24.0437 16.9604 24.4472C17.1542 24.4766 17.3191 24.3106 17.3033 24.1152C17.007 20.469 19.0807 16.6112 19.8544 14.9048Z",
@@ -889,11 +933,11 @@ function w1({ theme: e }) {
889
933
  )
890
934
  ] });
891
935
  }
892
- const k1 = u.div`
936
+ const R1 = h.div`
893
937
  display: flex;
894
938
  flex-direction: column;
895
939
  row-gap: 4px;
896
- `, S1 = u.div`
940
+ `, E1 = h.div`
897
941
  font-size: 11px;
898
942
  line-height: 18px;
899
943
  font-weight: 300;
@@ -903,7 +947,7 @@ const k1 = u.div`
903
947
  &:hover {
904
948
  background-color: ${({ theme: e }) => e.aiChat.dropup.headers.hover.backgroundColor};
905
949
  }
906
- `, M1 = u.div`
950
+ `, N1 = h.div`
907
951
  font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
908
952
  line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
909
953
  color: ${({ theme: e }) => e.aiChat.dropup.items.textColor};
@@ -913,19 +957,19 @@ const k1 = u.div`
913
957
  background-color: ${({ theme: e }) => e.aiChat.dropup.items.hover.backgroundColor};
914
958
  }
915
959
  `;
916
- function $1({
960
+ function I1({
917
961
  title: e,
918
962
  items: t,
919
- onSelect: n,
963
+ onSelect: o,
920
964
  alwaysExpanded: r = !1
921
965
  }) {
922
- const [i, a] = L(!1), { themeSettings: s } = b();
923
- return /* @__PURE__ */ h(k1, { children: [
924
- /* @__PURE__ */ o(S1, { onClick: () => a((c) => !c), theme: s, children: e.toUpperCase() }),
925
- (i || r) && t.map((c, l) => /* @__PURE__ */ o(M1, { onClick: () => n(c), theme: s, children: c }, l))
966
+ const [i, s] = $(!1), { themeSettings: a } = b();
967
+ return /* @__PURE__ */ g(R1, { children: [
968
+ /* @__PURE__ */ n(E1, { onClick: () => s((c) => !c), theme: a, children: e.toUpperCase() }),
969
+ (i || r) && t.map((c, l) => /* @__PURE__ */ n(N1, { onClick: () => o(c), theme: a, children: c }, l))
926
970
  ] });
927
971
  }
928
- const L1 = u.div`
972
+ const H1 = h.div`
929
973
  font-family: ${({ theme: e }) => e.typography.fontFamily};
930
974
  font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
931
975
  line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
@@ -937,20 +981,20 @@ const L1 = u.div`
937
981
  display: flex;
938
982
  flex-direction: column;
939
983
  row-gap: 4px;
940
- `, R1 = u.div`
984
+ `, B1 = h.div`
941
985
  font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
942
986
  line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
943
987
  color: ${({ theme: e }) => e.aiChat.dropup.items.textColor};
944
988
  padding: 4px 12px;
945
- `, ve = (e) => e.startsWith("/");
946
- function T1({
989
+ `, Me = (e) => e.startsWith("/");
990
+ function F1({
947
991
  recentPrompts: e,
948
992
  suggestions: t,
949
- isLoading: n,
993
+ isLoading: o,
950
994
  onSelection: r,
951
995
  anchorEl: i,
952
- text: a,
953
- recommendationsError: s
996
+ text: s,
997
+ recommendationsError: a
954
998
  }) {
955
999
  const l = [
956
1000
  {
@@ -964,12 +1008,12 @@ function T1({
964
1008
  onSelect: r
965
1009
  }
966
1010
  ].filter(
967
- (C) => C.title.slice(0, a.length) === a
968
- ), { themeSettings: d } = b(), { t: p } = v(), g = l.length === 1;
969
- return /* @__PURE__ */ o(
970
- Ze,
1011
+ (p) => p.title.slice(0, s.length) === s
1012
+ ), { themeSettings: d } = b(), { t: C } = k(), u = l.length === 1;
1013
+ return /* @__PURE__ */ n(
1014
+ ze,
971
1015
  {
972
- open: ve(a) && l.length > 0,
1016
+ open: Me(s) && l.length > 0,
973
1017
  anchorEl: i,
974
1018
  placement: "top-start",
975
1019
  modifiers: [
@@ -981,18 +1025,18 @@ function T1({
981
1025
  }
982
1026
  ],
983
1027
  sx: { zIndex: 3 },
984
- children: /* @__PURE__ */ h(L1, { style: { width: i == null ? void 0 : i.offsetWidth }, theme: d, children: [
985
- n && /* @__PURE__ */ o(pe, {}),
986
- !n && !s && l.map((C) => /* @__PURE__ */ o($1, $(w({}, C), { alwaysExpanded: g }), C.title)),
987
- s && /* @__PURE__ */ o(R1, { theme: d, children: p("ai.errors.recommendationsNotAvailable") })
1028
+ children: /* @__PURE__ */ g(H1, { style: { width: i == null ? void 0 : i.offsetWidth }, theme: d, children: [
1029
+ o && /* @__PURE__ */ n(ge, {}),
1030
+ !o && !a && l.map((p) => /* @__PURE__ */ n(I1, L(w({}, p), { alwaysExpanded: u }), p.title)),
1031
+ a && /* @__PURE__ */ n(B1, { theme: d, children: C("ai.errors.recommendationsNotAvailable") })
988
1032
  ] })
989
1033
  }
990
1034
  );
991
1035
  }
992
- function re({ title: e, placement: t = "top", children: n }) {
1036
+ function re({ title: e, placement: t = "top", children: o }) {
993
1037
  const { themeSettings: r } = b();
994
- return /* @__PURE__ */ o(
995
- Bt,
1038
+ return /* @__PURE__ */ n(
1039
+ Ft,
996
1040
  {
997
1041
  title: e,
998
1042
  placement: t,
@@ -1018,23 +1062,23 @@ function re({ title: e, placement: t = "top", children: n }) {
1018
1062
  }
1019
1063
  },
1020
1064
  arrow: !0,
1021
- children: n
1065
+ children: o
1022
1066
  }
1023
1067
  );
1024
1068
  }
1025
- const E1 = 500, H1 = u.div`
1069
+ const D1 = 500, P1 = h.div`
1026
1070
  display: flex;
1027
1071
  flex-direction: row;
1028
1072
  align-items: flex-end;
1029
1073
  justify-content: space-between;
1030
1074
 
1031
1075
  background-color: ${({ theme: e }) => e.aiChat.backgroundColor};
1032
- `, B1 = u.button`
1076
+ `, O1 = h.button`
1033
1077
  height: 34px;
1034
1078
  background-color: inherit;
1035
1079
  cursor: pointer;
1036
1080
  border: none;
1037
- `, D1 = u.textarea`
1081
+ `, W1 = h.textarea`
1038
1082
  font-size: inherit;
1039
1083
  line-height: inherit;
1040
1084
  resize: none;
@@ -1062,126 +1106,126 @@ const E1 = 500, H1 = u.div`
1062
1106
  color: ${({ theme: e }) => e.aiChat.primaryTextColor};
1063
1107
 
1064
1108
  background-color: ${({ theme: e }) => e.aiChat.input.backgroundColor};
1065
- `, F1 = u.button`
1109
+ `, q1 = h.button`
1066
1110
  height: 34px;
1067
1111
  background-color: inherit;
1068
1112
  border-style: none;
1069
1113
 
1070
1114
  color: ${({ theme: e }) => e.aiChat.primaryTextColor};
1071
1115
 
1072
- ${({ disabled: e }) => e ? H`
1116
+ ${({ disabled: e }) => e ? E`
1073
1117
  opacity: 0.3;
1074
1118
  cursor: not-allowed;
1075
- ` : H`
1119
+ ` : E`
1076
1120
  opacity: 1;
1077
1121
  cursor: pointer;
1078
1122
  `}
1079
- `, N1 = 34;
1080
- function I1({
1123
+ `, A1 = 34;
1124
+ function Z1({
1081
1125
  onSendMessage: e,
1082
1126
  onClearHistoryClick: t,
1083
- disabled: n,
1127
+ disabled: o,
1084
1128
  recentPrompts: r,
1085
1129
  suggestions: i,
1086
- isLoading: a,
1087
- recommendationsError: s,
1130
+ isLoading: s,
1131
+ recommendationsError: a,
1088
1132
  onChange: c
1089
1133
  }) {
1090
- const [l, d] = L(""), { inputPromptText: p } = P(), g = E(() => {
1091
- if (n)
1134
+ const [l, d] = $(""), { inputPromptText: C } = W(), u = T(() => {
1135
+ if (o)
1092
1136
  return;
1093
- if (ve(l)) {
1137
+ if (Me(l)) {
1094
1138
  d("");
1095
1139
  return;
1096
1140
  }
1097
- const x = l.trim();
1098
- x.length !== 0 && (e(x), d(""));
1099
- }, [n, e, l]), C = E(
1100
- (x) => {
1101
- e(x), d("");
1141
+ const S = l.trim();
1142
+ S.length !== 0 && (e(S), d(""));
1143
+ }, [o, e, l]), p = T(
1144
+ (S) => {
1145
+ e(S), d("");
1102
1146
  },
1103
1147
  [e]
1104
- ), m = E(
1105
- (x) => {
1106
- x.key === "Enter" ? (x.preventDefault(), g()) : x.key === "Escape" && ve(l) && d("");
1148
+ ), m = T(
1149
+ (S) => {
1150
+ S.key === "Enter" ? (S.preventDefault(), u()) : S.key === "Escape" && Me(l) && d("");
1107
1151
  },
1108
- [g, l]
1109
- ), F = E(
1110
- (x) => {
1111
- c == null || c(x.target.value), d(x.target.value);
1152
+ [u, l]
1153
+ ), x = T(
1154
+ (S) => {
1155
+ c == null || c(S.target.value), d(S.target.value);
1112
1156
  },
1113
1157
  [c]
1114
- ), k = K(null);
1158
+ ), M = J(null);
1115
1159
  ce(() => {
1116
- k.current && (k.current.style.height = "inherit", k.current.style.height = `${Math.max(
1117
- k.current.scrollHeight + 2,
1160
+ M.current && (M.current.style.height = "inherit", M.current.style.height = `${Math.max(
1161
+ M.current.scrollHeight + 2,
1118
1162
  // account for 1px top/bottom border
1119
- N1
1163
+ A1
1120
1164
  )}px`);
1121
1165
  }, [l]), ce(() => {
1122
- k.current && k.current.focus({ preventScroll: !0 });
1166
+ M.current && M.current.focus({ preventScroll: !0 });
1123
1167
  }, []);
1124
- const { themeSettings: y } = b(), { t: O } = v(), I = E((x) => {
1125
- var Z;
1126
- if ((Z = document.getElementById("csdk-chatbot-frame")) != null && Z.contains(x.relatedTarget)) {
1127
- const S = (J) => {
1128
- var R;
1129
- document.removeEventListener("mouseup", S), document.removeEventListener("keyup", S), J.type === "mouseup" && ((R = document.getSelection()) == null ? void 0 : R.type) !== "Range" && x.target.focus({ preventScroll: !0 });
1168
+ const { themeSettings: y } = b(), { t: q } = k(), N = T((S) => {
1169
+ var O;
1170
+ if ((O = document.getElementById("csdk-chatbot-frame")) != null && O.contains(S.relatedTarget)) {
1171
+ const B = (F) => {
1172
+ var V;
1173
+ document.removeEventListener("mouseup", B), document.removeEventListener("keyup", B), F.type === "mouseup" && ((V = document.getSelection()) == null ? void 0 : V.type) !== "Range" && S.target.focus({ preventScroll: !0 });
1130
1174
  };
1131
- document.addEventListener("mouseup", S), document.addEventListener("keyup", S);
1175
+ document.addEventListener("mouseup", B), document.addEventListener("keyup", B);
1132
1176
  }
1133
1177
  }, []);
1134
- return /* @__PURE__ */ h(H1, { theme: y, children: [
1135
- /* @__PURE__ */ o(
1136
- T1,
1178
+ return /* @__PURE__ */ g(P1, { theme: y, children: [
1179
+ /* @__PURE__ */ n(
1180
+ F1,
1137
1181
  {
1138
1182
  recentPrompts: r,
1139
1183
  suggestions: i,
1140
- isLoading: a,
1141
- onSelection: C,
1142
- anchorEl: k.current,
1184
+ isLoading: s,
1185
+ onSelection: p,
1186
+ anchorEl: M.current,
1143
1187
  text: l,
1144
- recommendationsError: s
1188
+ recommendationsError: a
1145
1189
  }
1146
1190
  ),
1147
- t && /* @__PURE__ */ o(re, { title: O("ai.buttons.clearChat"), placement: "bottom-start", children: /* @__PURE__ */ o(B1, { "aria-label": "clear history", onClick: t, children: /* @__PURE__ */ o(w1, { theme: y }) }) }),
1148
- /* @__PURE__ */ o(
1149
- D1,
1191
+ t && /* @__PURE__ */ n(re, { title: q("ai.buttons.clearChat"), placement: "bottom-start", children: /* @__PURE__ */ n(O1, { "aria-label": "clear history", onClick: t, children: /* @__PURE__ */ n(T1, { theme: y }) }) }),
1192
+ /* @__PURE__ */ n(
1193
+ W1,
1150
1194
  {
1151
1195
  "aria-label": "chat input",
1152
- onBlur: I,
1153
- maxLength: E1,
1154
- ref: k,
1196
+ onBlur: N,
1197
+ maxLength: D1,
1198
+ ref: M,
1155
1199
  rows: 1,
1156
- onChange: F,
1200
+ onChange: x,
1157
1201
  spellCheck: "true",
1158
- placeholder: p,
1202
+ placeholder: C,
1159
1203
  value: l,
1160
1204
  onKeyDown: m,
1161
1205
  theme: y
1162
1206
  }
1163
1207
  ),
1164
- /* @__PURE__ */ o(
1165
- F1,
1208
+ /* @__PURE__ */ n(
1209
+ q1,
1166
1210
  {
1167
1211
  "aria-label": "send chat message",
1168
- disabled: n || l.length === 0,
1169
- onClick: g,
1212
+ disabled: o || l.length === 0,
1213
+ onClick: u,
1170
1214
  theme: y,
1171
- children: /* @__PURE__ */ o("span", { "data-state": "closed", children: /* @__PURE__ */ o(v1, { theme: y }) })
1215
+ children: /* @__PURE__ */ n("span", { "data-state": "closed", children: /* @__PURE__ */ n($1, { theme: y }) })
1172
1216
  }
1173
1217
  )
1174
1218
  ] });
1175
1219
  }
1176
- const W1 = u.div`
1220
+ const z1 = h.div`
1177
1221
  display: flex;
1178
1222
 
1179
- ${({ align: e }) => e === "right" ? H`
1223
+ ${({ align: e }) => e === "right" ? E`
1180
1224
  justify-content: flex-end;
1181
- ` : H`
1225
+ ` : E`
1182
1226
  justify-content: flex-start;
1183
1227
  `}
1184
- `, nt = u.div`
1228
+ `, it = h.div`
1185
1229
  font-size: inherit;
1186
1230
  line-height: inherit;
1187
1231
  padding-top: 8.5px;
@@ -1192,51 +1236,51 @@ const W1 = u.div`
1192
1236
  overflow-wrap: break-word;
1193
1237
  box-sizing: border-box;
1194
1238
 
1195
- ${({ align: e }) => e === "right" ? H`
1239
+ ${({ align: e }) => e === "right" ? E`
1196
1240
  text-align: right;
1197
1241
  border-radius: 10px 10px 0px 10px;
1198
- ` : H`
1242
+ ` : E`
1199
1243
  text-align: left;
1200
1244
  border-radius: 10px 10px 10px 0px;
1201
1245
  `}
1202
1246
 
1203
- ${({ align: e }) => e !== "full" ? H`
1247
+ ${({ align: e }) => e !== "full" ? E`
1204
1248
  max-width: 85%;
1205
1249
  ` : ""}
1206
1250
 
1207
1251
  color: ${({ theme: e }) => e.aiChat.primaryTextColor};
1208
1252
  background-color: ${({ theme: e, align: t }) => t === "right" ? e.aiChat.userMessages.backgroundColor : e.aiChat.systemMessages.backgroundColor};
1209
1253
  `, z = ({ align: e, children: t }) => {
1210
- const { themeSettings: n } = b();
1211
- return /* @__PURE__ */ o(W1, { theme: n, align: e, children: /* @__PURE__ */ o(nt, { theme: n, align: e, children: t }) });
1254
+ const { themeSettings: o } = b();
1255
+ return /* @__PURE__ */ n(z1, { theme: o, align: e, children: /* @__PURE__ */ n(it, { theme: o, align: e, children: t }) });
1212
1256
  };
1213
- function P1() {
1214
- const { welcomeText: e } = P();
1215
- return e === !1 ? null : /* @__PURE__ */ o(z, { align: "left", children: e });
1257
+ function V1() {
1258
+ const { welcomeText: e } = W();
1259
+ return e === !1 ? null : /* @__PURE__ */ n(z, { align: "left", children: e });
1216
1260
  }
1217
- const O1 = u.div`
1261
+ const G1 = h.div`
1218
1262
  margin: auto;
1219
1263
  display: flex;
1220
1264
  flex-direction: column;
1221
1265
  align-items: center;
1222
1266
  row-gap: 21px;
1223
- `, Z1 = u.div`
1267
+ `, j1 = h.div`
1224
1268
  color: ${({ theme: e }) => e.aiChat.primaryTextColor};
1225
1269
  text-align: center;
1226
1270
  font-weight: 600;
1227
- `, A1 = u.div`
1271
+ `, Q1 = h.div`
1228
1272
  color: rgba(54, 163, 217, 1);
1229
1273
  cursor: pointer;
1230
1274
  `;
1231
- function rt({ text: e, action: t }) {
1232
- const { themeSettings: n } = b();
1233
- return /* @__PURE__ */ h(O1, { children: [
1234
- /* @__PURE__ */ o(Z1, { theme: n, children: e }),
1235
- /* @__PURE__ */ o(Dt, {}),
1236
- t && /* @__PURE__ */ o(A1, { onClick: t.onClick, children: t.text })
1275
+ function st({ text: e, action: t }) {
1276
+ const { themeSettings: o } = b();
1277
+ return /* @__PURE__ */ g(G1, { children: [
1278
+ /* @__PURE__ */ n(j1, { theme: o, children: e }),
1279
+ /* @__PURE__ */ n(Dt, {}),
1280
+ t && /* @__PURE__ */ n(Q1, { onClick: t.onClick, children: t.text })
1237
1281
  ] });
1238
1282
  }
1239
- const le = u.div`
1283
+ const le = h.div`
1240
1284
  width: 5px;
1241
1285
  height: 5px;
1242
1286
  border-radius: 50%;
@@ -1265,31 +1309,31 @@ const le = u.div`
1265
1309
  }
1266
1310
  }
1267
1311
  `;
1268
- function $e() {
1312
+ function Ne() {
1269
1313
  const { themeSettings: e } = b(), t = e.aiChat.icons.color;
1270
- return /* @__PURE__ */ h(
1314
+ return /* @__PURE__ */ g(
1271
1315
  "div",
1272
1316
  {
1273
1317
  className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
1274
1318
  "aria-label": "loading dots",
1275
1319
  children: [
1276
- /* @__PURE__ */ o(le, { color: t }),
1277
- /* @__PURE__ */ o(le, { color: t }),
1278
- /* @__PURE__ */ o(le, { color: t }),
1279
- /* @__PURE__ */ o(le, { color: t })
1320
+ /* @__PURE__ */ n(le, { color: t }),
1321
+ /* @__PURE__ */ n(le, { color: t }),
1322
+ /* @__PURE__ */ n(le, { color: t }),
1323
+ /* @__PURE__ */ n(le, { color: t })
1280
1324
  ]
1281
1325
  }
1282
1326
  );
1283
1327
  }
1284
- const q1 = u.div`
1328
+ const U1 = h.div`
1285
1329
  display: flex;
1286
1330
 
1287
- ${({ align: e }) => e === "right" ? H`
1331
+ ${({ align: e }) => e === "right" ? E`
1288
1332
  justify-content: flex-end;
1289
- ` : H`
1333
+ ` : E`
1290
1334
  justify-content: flex-start;
1291
1335
  `}
1292
- `, z1 = u.button`
1336
+ `, _1 = h.button`
1293
1337
  font-family: inherit;
1294
1338
  font-size: inherit;
1295
1339
  line-height: inherit;
@@ -1305,24 +1349,24 @@ const q1 = u.div`
1305
1349
  }
1306
1350
  border-radius: 20px;
1307
1351
 
1308
- ${({ align: e }) => e === "right" ? H`
1352
+ ${({ align: e }) => e === "right" ? E`
1309
1353
  text-align: right;
1310
- ` : H`
1354
+ ` : E`
1311
1355
  text-align: left;
1312
1356
  `}
1313
1357
 
1314
- ${({ align: e }) => e !== "full" ? H`
1358
+ ${({ align: e }) => e !== "full" ? E`
1315
1359
  max-width: 382px;
1316
1360
  ` : ""}
1317
1361
 
1318
1362
  ${({ theme: e }) => {
1319
- const { borderGradient: t, borderRadius: n } = e.aiChat.suggestions;
1363
+ const { borderGradient: t, borderRadius: o } = e.aiChat.suggestions;
1320
1364
  if (t) {
1321
1365
  const [r, i] = t;
1322
- return H`
1366
+ return E`
1323
1367
  border: none;
1324
1368
  position: relative;
1325
- border-radius: ${n};
1369
+ border-radius: ${o};
1326
1370
  &:before {
1327
1371
  content: '';
1328
1372
  position: absolute;
@@ -1330,7 +1374,7 @@ const q1 = u.div`
1330
1374
  left: 0;
1331
1375
  right: 0;
1332
1376
  bottom: 0;
1333
- border-radius: ${n};
1377
+ border-radius: ${o};
1334
1378
  border: 1px solid transparent;
1335
1379
  background: linear-gradient(30deg, ${r}, ${i}) border-box;
1336
1380
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
@@ -1345,18 +1389,18 @@ const q1 = u.div`
1345
1389
  function de({
1346
1390
  children: e,
1347
1391
  align: t,
1348
- onClick: n,
1392
+ onClick: o,
1349
1393
  onMouseEnter: r,
1350
1394
  onMouseLeave: i,
1351
- accessibleName: a
1395
+ accessibleName: s
1352
1396
  }) {
1353
- const { themeSettings: s } = b();
1354
- return /* @__PURE__ */ o(q1, { align: t, children: /* @__PURE__ */ o(
1355
- z1,
1397
+ const { themeSettings: a } = b();
1398
+ return /* @__PURE__ */ n(U1, { align: t, children: /* @__PURE__ */ n(
1399
+ _1,
1356
1400
  {
1357
- "aria-label": a,
1358
- theme: s,
1359
- onClick: n,
1401
+ "aria-label": s,
1402
+ theme: a,
1403
+ onClick: o,
1360
1404
  align: t,
1361
1405
  onMouseEnter: r,
1362
1406
  onMouseLeave: i,
@@ -1364,20 +1408,20 @@ function de({
1364
1408
  }
1365
1409
  ) });
1366
1410
  }
1367
- function Q1({ onCancel: e, onConfirm: t }) {
1368
- const { t: n } = v();
1369
- return /* @__PURE__ */ h(D, { children: [
1370
- /* @__PURE__ */ o(z, { align: "left", children: n("ai.clearHistoryPrompt") }),
1371
- /* @__PURE__ */ h("div", { className: "csdk-flex csdk-gap-x-2", children: [
1372
- /* @__PURE__ */ o(de, { align: "right", onClick: t, accessibleName: "confirm clear chat", children: /* @__PURE__ */ o("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.yes") }) }),
1373
- /* @__PURE__ */ o(de, { align: "right", onClick: e, accessibleName: "cancel clear chat", children: /* @__PURE__ */ o("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.no") }) })
1411
+ function K1({ onCancel: e, onConfirm: t }) {
1412
+ const { t: o } = k();
1413
+ return /* @__PURE__ */ g(H, { children: [
1414
+ /* @__PURE__ */ n(z, { align: "left", children: o("ai.clearHistoryPrompt") }),
1415
+ /* @__PURE__ */ g("div", { className: "csdk-flex csdk-gap-x-2", children: [
1416
+ /* @__PURE__ */ n(de, { align: "right", onClick: t, accessibleName: "confirm clear chat", children: /* @__PURE__ */ n("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: o("ai.buttons.yes") }) }),
1417
+ /* @__PURE__ */ n(de, { align: "right", onClick: e, accessibleName: "cancel clear chat", children: /* @__PURE__ */ n("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: o("ai.buttons.no") }) })
1374
1418
  ] })
1375
1419
  ] });
1376
1420
  }
1377
- function V1({ fillColor: e = "#262E3D" }) {
1378
- return /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", children: [
1379
- /* @__PURE__ */ o("rect", { x: "1", y: "1", width: "28", height: "28", rx: "14", stroke: "#9EA2AB" }),
1380
- /* @__PURE__ */ o(
1421
+ function Y1({ fillColor: e = "#262E3D" }) {
1422
+ return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", children: [
1423
+ /* @__PURE__ */ n("rect", { x: "1", y: "1", width: "28", height: "28", rx: "14", stroke: "#9EA2AB" }),
1424
+ /* @__PURE__ */ n(
1381
1425
  "path",
1382
1426
  {
1383
1427
  fillRule: "evenodd",
@@ -1388,7 +1432,7 @@ function V1({ fillColor: e = "#262E3D" }) {
1388
1432
  )
1389
1433
  ] });
1390
1434
  }
1391
- const it = {
1435
+ const at = {
1392
1436
  row: {
1393
1437
  hover: "rgba(224, 224, 224, 0.3)"
1394
1438
  },
@@ -1473,19 +1517,19 @@ const it = {
1473
1517
  errorBG: "rgba(231, 71, 39, 0.1)"
1474
1518
  }
1475
1519
  }
1476
- }, j1 = {
1520
+ }, J1 = {
1477
1521
  shouldForwardProp: (e) => !e.startsWith("$")
1478
- }, ie = u(
1479
- Ae,
1480
- j1
1522
+ }, ie = h(
1523
+ Ve,
1524
+ J1
1481
1525
  )(({ $hoverColor: e }) => ({
1482
1526
  padding: 2,
1483
1527
  "&.MuiIconButton-root:hover": {
1484
- backgroundColor: e != null ? e : it.interaction.defaultHover
1528
+ backgroundColor: e != null ? e : at.interaction.defaultHover
1485
1529
  }
1486
1530
  }));
1487
- function G1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1488
- return /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ o(
1531
+ function X1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1532
+ return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n(
1489
1533
  "path",
1490
1534
  {
1491
1535
  fillRule: "evenodd",
@@ -1495,8 +1539,8 @@ function G1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1495
1539
  }
1496
1540
  ) });
1497
1541
  }
1498
- function U1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1499
- return /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ o(
1542
+ function eo({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1543
+ return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n(
1500
1544
  "path",
1501
1545
  {
1502
1546
  fillRule: "evenodd",
@@ -1506,8 +1550,8 @@ function U1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1506
1550
  }
1507
1551
  ) });
1508
1552
  }
1509
- function _1() {
1510
- return /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ o(
1553
+ function to() {
1554
+ return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n(
1511
1555
  "path",
1512
1556
  {
1513
1557
  fillRule: "evenodd",
@@ -1518,8 +1562,8 @@ function _1() {
1518
1562
  }
1519
1563
  ) });
1520
1564
  }
1521
- function K1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1522
- return /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ o(
1565
+ function oo({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1566
+ return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n(
1523
1567
  "path",
1524
1568
  {
1525
1569
  fillRule: "evenodd",
@@ -1529,27 +1573,27 @@ function K1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
1529
1573
  }
1530
1574
  ) });
1531
1575
  }
1532
- const Le = (e) => Ve(e.chart.backgroundColor), Y1 = ({ title: e }) => {
1576
+ const Ie = (e) => Qe(e.chart.backgroundColor), no = ({ title: e }) => {
1533
1577
  const { themeSettings: t } = b();
1534
- return /* @__PURE__ */ o(re, { title: e, children: /* @__PURE__ */ o(ie, { disableTouchRipple: !0, $hoverColor: Le(t), children: /* @__PURE__ */ o(U1, { fill: t.chart.textColor }) }) });
1535
- }, J1 = ({ items: e }) => {
1536
- const [t, n] = L(null), r = (s) => {
1537
- n(s.currentTarget);
1578
+ return /* @__PURE__ */ n(re, { title: e, children: /* @__PURE__ */ n(ie, { disableTouchRipple: !0, $hoverColor: Ie(t), children: /* @__PURE__ */ n(eo, { fill: t.chart.textColor }) }) });
1579
+ }, ro = ({ items: e }) => {
1580
+ const [t, o] = $(null), r = (a) => {
1581
+ o(a.currentTarget);
1538
1582
  }, i = () => {
1539
- n(null);
1540
- }, { themeSettings: a } = b();
1541
- return /* @__PURE__ */ h(D, { children: [
1542
- /* @__PURE__ */ o(
1583
+ o(null);
1584
+ }, { themeSettings: s } = b();
1585
+ return /* @__PURE__ */ g(H, { children: [
1586
+ /* @__PURE__ */ n(
1543
1587
  ie,
1544
1588
  {
1545
1589
  onClick: r,
1546
- $hoverColor: Le(a),
1590
+ $hoverColor: Ie(s),
1547
1591
  "aria-label": "three dots button",
1548
- children: /* @__PURE__ */ o(K1, { fill: a.chart.textColor })
1592
+ children: /* @__PURE__ */ n(oo, { fill: s.chart.textColor })
1549
1593
  }
1550
1594
  ),
1551
- /* @__PURE__ */ o(
1552
- Ft,
1595
+ /* @__PURE__ */ n(
1596
+ Pt,
1553
1597
  {
1554
1598
  anchorEl: t,
1555
1599
  anchorOrigin: {
@@ -1562,102 +1606,102 @@ const Le = (e) => Ve(e.chart.backgroundColor), Y1 = ({ title: e }) => {
1562
1606
  },
1563
1607
  open: !!t,
1564
1608
  onClose: i,
1565
- children: e.map((s) => /* @__PURE__ */ h(
1566
- Nt,
1609
+ children: e.map((a) => /* @__PURE__ */ g(
1610
+ Ot,
1567
1611
  {
1568
1612
  onClick: () => {
1569
- s.onClick(), i();
1613
+ a.onClick(), i();
1570
1614
  },
1571
1615
  sx: {
1572
1616
  fontSize: "13px",
1573
- fontFamily: a.typography.fontFamily,
1574
- color: it.text.content
1617
+ fontFamily: s.typography.fontFamily,
1618
+ color: at.text.content
1575
1619
  },
1576
1620
  disableRipple: !0,
1577
1621
  children: [
1578
- s.icon,
1579
- /* @__PURE__ */ o("div", { className: "csdk-ml-1", children: s.title })
1622
+ a.icon,
1623
+ /* @__PURE__ */ n("div", { className: "csdk-ml-1", children: a.title })
1580
1624
  ]
1581
1625
  },
1582
- s.title
1626
+ a.title
1583
1627
  ))
1584
1628
  }
1585
1629
  )
1586
1630
  ] });
1587
- }, X1 = ({ onClick: e }) => {
1588
- const { themeSettings: t } = b(), { t: n } = v();
1589
- return /* @__PURE__ */ o(re, { title: n("ai.preview"), children: /* @__PURE__ */ o(ie, { onClick: e, $hoverColor: Le(t), children: /* @__PURE__ */ o(G1, { fill: t.chart.textColor }) }) });
1590
- }, eo = u.div`
1631
+ }, io = ({ onClick: e }) => {
1632
+ const { themeSettings: t } = b(), { t: o } = k();
1633
+ return /* @__PURE__ */ n(re, { title: o("ai.preview"), children: /* @__PURE__ */ n(ie, { onClick: e, $hoverColor: Ie(t), children: /* @__PURE__ */ n(X1, { fill: t.chart.textColor }) }) });
1634
+ }, so = h.div`
1591
1635
  display: flex;
1592
1636
  padding-top: 6px;
1593
1637
  padding-bottom: 6px;
1594
1638
  `;
1595
- function to({
1639
+ function ao({
1596
1640
  infoTooltipText: e,
1597
1641
  onRefresh: t,
1598
- onExpand: n
1642
+ onExpand: o
1599
1643
  }) {
1600
- const r = N(
1644
+ const r = D(
1601
1645
  () => [
1602
1646
  {
1603
1647
  title: "Refresh",
1604
1648
  onClick: t,
1605
- icon: /* @__PURE__ */ o(_1, {})
1649
+ icon: /* @__PURE__ */ n(to, {})
1606
1650
  }
1607
1651
  ],
1608
1652
  [t]
1609
1653
  );
1610
- return /* @__PURE__ */ h(eo, { "aria-label": "chatbot chart toolbar", children: [
1611
- /* @__PURE__ */ o(Y1, { title: e != null ? e : "" }),
1612
- /* @__PURE__ */ o(J1, { items: r }),
1613
- /* @__PURE__ */ o(X1, { onClick: n })
1654
+ return /* @__PURE__ */ g(so, { "aria-label": "chatbot chart toolbar", children: [
1655
+ /* @__PURE__ */ n(no, { title: e != null ? e : "" }),
1656
+ /* @__PURE__ */ n(ro, { items: r }),
1657
+ /* @__PURE__ */ n(io, { onClick: o })
1614
1658
  ] });
1615
1659
  }
1616
- function oo({ content: e }) {
1617
- const [t, n] = L(!1), { themeSettings: r } = b(), { inlineElement: i, expandedElement: a } = N(() => {
1618
- const s = je(e, { useCustomizedStyleOptions: !0 });
1619
- if (s === void 0 || !ye(s))
1620
- throw new xe("errors.otherWidgetTypesNotSupported");
1621
- const { detailedDescription: c } = e, { styleOptions: l } = s, d = {
1660
+ function lo({ content: e }) {
1661
+ const [t, o] = $(!1), { themeSettings: r } = b(), { inlineElement: i, expandedElement: s } = D(() => {
1662
+ const a = pe(e, { useCustomizedStyleOptions: !0 });
1663
+ if (a === void 0 || !Se(a))
1664
+ throw new ke("errors.otherWidgetTypesNotSupported");
1665
+ const { detailedDescription: c } = e, { styleOptions: l } = a, d = {
1622
1666
  cornerRadius: "Small",
1623
1667
  header: {
1624
- renderToolbar: (C) => /* @__PURE__ */ o(
1625
- to,
1668
+ renderToolbar: (p) => /* @__PURE__ */ n(
1669
+ ao,
1626
1670
  {
1627
1671
  infoTooltipText: c,
1628
- onRefresh: C,
1629
- onExpand: () => n(!0)
1672
+ onRefresh: p,
1673
+ onExpand: () => o(!0)
1630
1674
  }
1631
1675
  )
1632
1676
  }
1633
1677
  };
1634
- let p, g;
1635
- if (Qt(s.chartType))
1636
- p = /* @__PURE__ */ o("div", { className: "csdk-h-[245px]", children: /* @__PURE__ */ o(te, $(w({}, s), { styleOptions: d })) }), g = /* @__PURE__ */ o(te, $(w({}, s), { styleOptions: { header: { hidden: !0 } } }));
1678
+ let C, u;
1679
+ if (_t(a.chartType))
1680
+ C = /* @__PURE__ */ n("div", { className: "csdk-h-[245px]", children: /* @__PURE__ */ n(ee, L(w({}, a), { styleOptions: d })) }), u = /* @__PURE__ */ n(ee, L(w({}, a), { styleOptions: { header: { hidden: !0 } } }));
1637
1681
  else {
1638
- const C = $(w({}, l), {
1682
+ const p = L(w({}, l), {
1639
1683
  header: { hidden: !0 }
1640
- }), m = w($(w({}, l), {
1684
+ }), m = w(L(w({}, l), {
1641
1685
  legend: void 0,
1642
1686
  xAxis: void 0,
1643
1687
  yAxis: void 0
1644
1688
  }), d);
1645
- delete m.legend, delete m.xAxis, delete m.yAxis, p = /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(te, $(w({}, s), { styleOptions: m })) }), g = /* @__PURE__ */ o(
1646
- te,
1647
- $(w({}, s), {
1648
- styleOptions: w({ cornerRadius: "None" }, C)
1689
+ delete m.legend, delete m.xAxis, delete m.yAxis, C = /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(ee, L(w({}, a), { styleOptions: m })) }), u = /* @__PURE__ */ n(
1690
+ ee,
1691
+ L(w({}, a), {
1692
+ styleOptions: w({ cornerRadius: "None" }, p)
1649
1693
  })
1650
1694
  );
1651
1695
  }
1652
- return { inlineElement: p, expandedElement: g };
1696
+ return { inlineElement: C, expandedElement: u };
1653
1697
  }, [e]);
1654
- return /* @__PURE__ */ h(D, { children: [
1698
+ return /* @__PURE__ */ g(H, { children: [
1655
1699
  i,
1656
- /* @__PURE__ */ h(
1657
- Ue,
1700
+ /* @__PURE__ */ g(
1701
+ _e,
1658
1702
  {
1659
1703
  open: t,
1660
- onClose: () => n(!1),
1704
+ onClose: () => o(!1),
1661
1705
  maxWidth: "xl",
1662
1706
  fullWidth: !0,
1663
1707
  PaperProps: {
@@ -1667,18 +1711,18 @@ function oo({ content: e }) {
1667
1711
  }
1668
1712
  },
1669
1713
  children: [
1670
- /* @__PURE__ */ h("div", { className: "csdk-flex csdk-items-center csdk-justify-between csdk-mt-[16px] csdk-mx-[16px] csdk-pl-[20px]", children: [
1671
- /* @__PURE__ */ o("div", { className: "csdk-text-ai-lg csdk-semibold", children: e.queryTitle }),
1672
- /* @__PURE__ */ o(Ae, { onClick: () => n(!1), "aria-label": "close expanded chart", children: /* @__PURE__ */ o(V1, { fillColor: r.aiChat.primaryTextColor }) })
1714
+ /* @__PURE__ */ g("div", { className: "csdk-flex csdk-items-center csdk-justify-between csdk-mt-[16px] csdk-mx-[16px] csdk-pl-[20px]", children: [
1715
+ /* @__PURE__ */ n("div", { className: "csdk-text-ai-lg csdk-semibold", children: e.queryTitle }),
1716
+ /* @__PURE__ */ n(Ve, { onClick: () => o(!1), "aria-label": "close expanded chart", children: /* @__PURE__ */ n(Y1, { fillColor: r.aiChat.primaryTextColor }) })
1673
1717
  ] }),
1674
- /* @__PURE__ */ o("div", { className: "csdk-h-screen csdk-mt-[8px] csdk-mb-[24px] csdk-mx-[16px]", children: a })
1718
+ /* @__PURE__ */ n("div", { className: "csdk-h-screen csdk-mt-[8px] csdk-mb-[24px] csdk-mx-[16px]", children: s })
1675
1719
  ]
1676
1720
  }
1677
1721
  )
1678
1722
  ] });
1679
1723
  }
1680
- function no({ theme: e }) {
1681
- return /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ o(
1724
+ function co({ theme: e }) {
1725
+ return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n(
1682
1726
  "path",
1683
1727
  {
1684
1728
  fillRule: "evenodd",
@@ -1688,21 +1732,21 @@ function no({ theme: e }) {
1688
1732
  }
1689
1733
  ) });
1690
1734
  }
1691
- function ro({ onClick: e, disabled: t }) {
1692
- const { themeSettings: n } = b(), { t: r } = v();
1693
- return /* @__PURE__ */ o(re, { title: r("ai.buttons.incorrectResponse"), children: /* @__PURE__ */ o(
1735
+ function uo({ onClick: e, disabled: t }) {
1736
+ const { themeSettings: o } = b(), { t: r } = k();
1737
+ return /* @__PURE__ */ n(re, { title: r("ai.buttons.incorrectResponse"), children: /* @__PURE__ */ n(
1694
1738
  ie,
1695
1739
  {
1696
1740
  "aria-label": "thumbs-down",
1697
1741
  onClick: e,
1698
- $hoverColor: n.aiChat.icons.feedbackIcons.hoverColor,
1742
+ $hoverColor: o.aiChat.icons.feedbackIcons.hoverColor,
1699
1743
  disabled: t,
1700
- children: /* @__PURE__ */ o(no, { theme: n })
1744
+ children: /* @__PURE__ */ n(co, { theme: o })
1701
1745
  }
1702
1746
  ) });
1703
1747
  }
1704
- function io({ theme: e }) {
1705
- return /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ o(
1748
+ function ho({ theme: e }) {
1749
+ return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n(
1706
1750
  "path",
1707
1751
  {
1708
1752
  fillRule: "evenodd",
@@ -1712,96 +1756,96 @@ function io({ theme: e }) {
1712
1756
  }
1713
1757
  ) });
1714
1758
  }
1715
- function so({ onClick: e, disabled: t }) {
1716
- const { themeSettings: n } = b(), { t: r } = v();
1717
- return /* @__PURE__ */ o(re, { title: r("ai.buttons.correctResponse"), children: /* @__PURE__ */ o(
1759
+ function po({ onClick: e, disabled: t }) {
1760
+ const { themeSettings: o } = b(), { t: r } = k();
1761
+ return /* @__PURE__ */ n(re, { title: r("ai.buttons.correctResponse"), children: /* @__PURE__ */ n(
1718
1762
  ie,
1719
1763
  {
1720
1764
  "aria-label": "thumbs-up",
1721
1765
  onClick: e,
1722
- $hoverColor: n.aiChat.icons.feedbackIcons.hoverColor,
1766
+ $hoverColor: o.aiChat.icons.feedbackIcons.hoverColor,
1723
1767
  disabled: t,
1724
- children: /* @__PURE__ */ o(io, { theme: n })
1768
+ children: /* @__PURE__ */ n(ho, { theme: o })
1725
1769
  }
1726
1770
  ) });
1727
1771
  }
1728
- const ao = () => {
1729
- const [e, t] = L(!1), n = K(null), r = E(() => {
1772
+ const go = () => {
1773
+ const [e, t] = $(!1), o = J(null), r = T(() => {
1730
1774
  t(!0);
1731
- }, []), i = E(() => {
1775
+ }, []), i = T(() => {
1732
1776
  t(!1);
1733
1777
  }, []);
1734
- return [E(
1735
- (s) => {
1778
+ return [T(
1779
+ (a) => {
1736
1780
  var c;
1737
- ((c = n.current) == null ? void 0 : c.nodeType) === Node.ELEMENT_NODE && (n.current.removeEventListener("mouseenter", r), n.current.removeEventListener("mouseleave", i)), (s == null ? void 0 : s.nodeType) === Node.ELEMENT_NODE && (s.addEventListener("mouseenter", r), s.addEventListener("mouseleave", i)), n.current = s;
1781
+ ((c = o.current) == null ? void 0 : c.nodeType) === Node.ELEMENT_NODE && (o.current.removeEventListener("mouseenter", r), o.current.removeEventListener("mouseleave", i)), (a == null ? void 0 : a.nodeType) === Node.ELEMENT_NODE && (a.addEventListener("mouseenter", r), a.addEventListener("mouseleave", i)), o.current = a;
1738
1782
  },
1739
1783
  [r, i]
1740
1784
  ), e];
1741
- }, lo = u.div`
1785
+ }, Co = h.div`
1742
1786
  display: flex;
1743
1787
  flex-direction: column;
1744
1788
  row-gap: ${({ theme: e }) => e.aiChat.body.gapBetweenMessages};
1745
1789
  `;
1746
- function co({ visible: e, onSend: t }) {
1747
- const [n, r] = L(!1), i = E(
1748
- (s) => {
1749
- r(!0), t(s === "up" ? 1 : -1);
1790
+ function fo({ visible: e, onSend: t }) {
1791
+ const [o, r] = $(!1), i = T(
1792
+ (a) => {
1793
+ r(!0), t(a === "up" ? 1 : -1);
1750
1794
  },
1751
1795
  [t]
1752
- ), a = `csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${n ? "csdk-opacity-0" : "csdk-opacity-100"}`;
1753
- return e ? /* @__PURE__ */ h("div", { className: `csdk-flex csdk-items-center ${a}`, children: [
1754
- /* @__PURE__ */ o(so, { onClick: () => i("up"), disabled: n }),
1755
- /* @__PURE__ */ o(ro, { onClick: () => i("down"), disabled: n })
1796
+ ), s = `csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${o ? "csdk-opacity-0" : "csdk-opacity-100"}`;
1797
+ return e ? /* @__PURE__ */ g("div", { className: `csdk-flex csdk-items-center ${s}`, children: [
1798
+ /* @__PURE__ */ n(po, { onClick: () => i("up"), disabled: o }),
1799
+ /* @__PURE__ */ n(uo, { onClick: () => i("down"), disabled: o })
1756
1800
  ] }) : null;
1757
1801
  }
1758
- function we({
1802
+ function Le({
1759
1803
  sourceId: e,
1760
1804
  data: t,
1761
- type: n,
1805
+ type: o,
1762
1806
  buttonVisibility: r = "onHover",
1763
1807
  renderContent: i
1764
1808
  }) {
1765
- const a = W(), s = It(
1766
- E(
1767
- (g) => {
1768
- a && a.ai.sendFeedback({
1809
+ const s = P(), a = Wt(
1810
+ T(
1811
+ (u) => {
1812
+ s && s.ai.sendFeedback({
1769
1813
  sourceId: e,
1770
- type: n,
1814
+ type: o,
1771
1815
  data: t,
1772
- rating: g
1816
+ rating: u
1773
1817
  });
1774
1818
  },
1775
- [a, e, t, n]
1819
+ [s, e, t, o]
1776
1820
  ),
1777
1821
  200
1778
- ), [c, l] = ao(), d = N(() => r === "onHover" ? l : r !== "never", [l, r]), { themeSettings: p } = b();
1779
- return /* @__PURE__ */ o(lo, { ref: c, theme: p, children: i(/* @__PURE__ */ o(co, { onSend: s, visible: d })) });
1822
+ ), [c, l] = go(), d = D(() => r === "onHover" ? l : r !== "never", [l, r]), { themeSettings: C } = b();
1823
+ return /* @__PURE__ */ n(Co, { ref: c, theme: C, children: i(/* @__PURE__ */ n(fo, { onSend: a, visible: d })) });
1780
1824
  }
1781
- const uo = 18 * 5;
1782
- function Re({ text: e }) {
1783
- const [t, n] = L(!0), [r, i] = L(!1), { t: a } = v(), s = K(null);
1825
+ const mo = 18 * 5;
1826
+ function Ce({ text: e }) {
1827
+ const [t, o] = $(!0), [r, i] = $(!1), { t: s } = k(), a = J(null);
1784
1828
  return ce(() => {
1785
- s.current && s.current.scrollHeight > uo && i(!0);
1786
- }, [e]), /* @__PURE__ */ h("div", { children: [
1787
- /* @__PURE__ */ o("div", { ref: s, className: `${t ? "csdk-line-clamp-5" : ""} csdk-whitespace-pre-wrap`, children: e }),
1788
- r && /* @__PURE__ */ o("div", { className: "csdk-mt-3 csdk-flex csdk-justify-end", children: /* @__PURE__ */ o(
1829
+ a.current && a.current.scrollHeight > mo && i(!0);
1830
+ }, [e]), /* @__PURE__ */ g("div", { children: [
1831
+ /* @__PURE__ */ n("div", { ref: a, className: `${t ? "csdk-line-clamp-5" : ""} csdk-whitespace-pre-wrap`, children: e }),
1832
+ r && /* @__PURE__ */ n("div", { className: "csdk-mt-3 csdk-flex csdk-justify-end", children: /* @__PURE__ */ n(
1789
1833
  "div",
1790
1834
  {
1791
1835
  className: "csdk-text-ai-xs csdk-text-text-link csdk-cursor-pointer",
1792
- onClick: () => n((c) => !c),
1793
- children: a(t ? "ai.buttons.readMore" : "ai.buttons.collapse")
1836
+ onClick: () => o((c) => !c),
1837
+ children: s(t ? "ai.buttons.readMore" : "ai.buttons.collapse")
1794
1838
  }
1795
1839
  ) })
1796
1840
  ] });
1797
1841
  }
1798
- function ho({ nlgRequest: e }) {
1799
- const { data: t, isLoading: n, isError: r } = he(e), { t: i } = v();
1800
- return n ? /* @__PURE__ */ o($e, {}) : r ? /* @__PURE__ */ o(z, { align: "left", children: i("ai.errors.unexpected") }) : /* @__PURE__ */ o(z, { align: "full", children: /* @__PURE__ */ o(Re, { text: t != null ? t : i("ai.errors.insightsNotAvailable") }) });
1842
+ function bo({ nlgRequest: e }) {
1843
+ const { data: t, isLoading: o, isError: r } = ne(e), { t: i } = k();
1844
+ return o ? /* @__PURE__ */ n(Ne, {}) : r ? /* @__PURE__ */ n(z, { align: "left", children: i("ai.errors.unexpected") }) : /* @__PURE__ */ n(z, { align: "full", children: /* @__PURE__ */ n(Ce, { text: t != null ? t : i("ai.errors.insightsNotAvailable") }) });
1801
1845
  }
1802
- function po() {
1846
+ function xo() {
1803
1847
  const { themeSettings: e } = b();
1804
- return /* @__PURE__ */ o("svg", { width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o(
1848
+ return /* @__PURE__ */ n("svg", { width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
1805
1849
  "path",
1806
1850
  {
1807
1851
  fillRule: "evenodd",
@@ -1811,100 +1855,100 @@ function po() {
1811
1855
  }
1812
1856
  ) });
1813
1857
  }
1814
- function Co({ onClick: e }) {
1815
- const { t } = v();
1816
- return /* @__PURE__ */ o(de, { align: "left", onClick: e, children: /* @__PURE__ */ h(
1858
+ function yo({ onClick: e }) {
1859
+ const { t } = k();
1860
+ return /* @__PURE__ */ n(de, { align: "left", onClick: e, children: /* @__PURE__ */ g(
1817
1861
  "div",
1818
1862
  {
1819
1863
  className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
1820
1864
  children: [
1821
- /* @__PURE__ */ o(po, {}),
1865
+ /* @__PURE__ */ n(xo, {}),
1822
1866
  t("ai.buttons.insights")
1823
1867
  ]
1824
1868
  }
1825
1869
  ) });
1826
1870
  }
1827
- const Ne = u.div`
1871
+ const We = h.div`
1828
1872
  display: flex;
1829
1873
  align-items: center;
1830
1874
  column-gap: 10px;
1831
- `, go = (e) => !!e && "aeiou".includes(e[0]);
1832
- function fo({ data: e, alwaysShowFeedback: t }) {
1833
- const { chatMode: n = "analyze", enableInsights: r } = P(), { themeSettings: i } = b(), { queryTitle: a, chartRecommendations: s, jaql: c } = e;
1834
- console.debug(`JAQL for ${a}`, c), console.debug(`chart recommendations for ${a}`, s);
1835
- const l = "chartType" in s ? s.chartType : "table";
1875
+ `, vo = (e) => !!e && "aeiou".includes(e[0]);
1876
+ function wo({ data: e, alwaysShowFeedback: t }) {
1877
+ const { chatMode: o = "analyze", enableInsights: r } = W(), { themeSettings: i } = b(), { queryTitle: s, chartRecommendations: a, jaql: c } = e;
1878
+ console.debug(`JAQL for ${s}`, c), console.debug(`chart recommendations for ${s}`, a);
1879
+ const l = "chartType" in a ? a.chartType : "table";
1836
1880
  let d;
1837
- go(l) ? d = `an ${l}` : d = `a ${l}`, l !== "table" && (d += " chart");
1838
- const p = c.datasource.title, [g, C] = L(!1), m = E(() => {
1839
- C((y) => !y);
1840
- }, []), F = {
1881
+ vo(l) ? d = `an ${l}` : d = `a ${l}`, l !== "table" && (d += " chart");
1882
+ const C = c.datasource.title, [u, p] = $(!1), m = T(() => {
1883
+ p((y) => !y);
1884
+ }, []), x = {
1841
1885
  jaql: {
1842
1886
  datasource: c.datasource,
1843
1887
  metadata: c.metadata
1844
1888
  }
1845
- }, k = n === "analyze";
1846
- return /* @__PURE__ */ h(D, { children: [
1847
- /* @__PURE__ */ o(
1848
- we,
1889
+ }, M = o === "analyze";
1890
+ return /* @__PURE__ */ g(H, { children: [
1891
+ /* @__PURE__ */ n(
1892
+ Le,
1849
1893
  {
1850
- sourceId: p,
1894
+ sourceId: C,
1851
1895
  data: e,
1852
1896
  type: "chats/nlq",
1853
1897
  buttonVisibility: t ? "always" : "onHover",
1854
- renderContent: (y) => /* @__PURE__ */ h(D, { children: [
1855
- /* @__PURE__ */ h(Ne, { children: [
1856
- /* @__PURE__ */ o(nt, { align: "left", theme: i, children: `Here's ${d} showing ${e.queryTitle.toLowerCase()}.` }),
1898
+ renderContent: (y) => /* @__PURE__ */ g(H, { children: [
1899
+ /* @__PURE__ */ g(We, { children: [
1900
+ /* @__PURE__ */ n(it, { align: "left", theme: i, children: `Here's ${d} showing ${Xt(s)}.` }),
1857
1901
  y
1858
1902
  ] }),
1859
- k && /* @__PURE__ */ o(oo, { content: e })
1903
+ M && /* @__PURE__ */ n(lo, { content: e })
1860
1904
  ] })
1861
1905
  }
1862
1906
  ),
1863
- r && /* @__PURE__ */ o(
1864
- we,
1907
+ r && /* @__PURE__ */ n(
1908
+ Le,
1865
1909
  {
1866
- sourceId: p,
1867
- data: F,
1910
+ sourceId: C,
1911
+ data: x,
1868
1912
  type: "nlg/queryResult",
1869
- buttonVisibility: g ? "onHover" : "never",
1870
- renderContent: (y) => /* @__PURE__ */ h(D, { children: [
1871
- /* @__PURE__ */ h(Ne, { children: [
1872
- /* @__PURE__ */ o(Co, { onClick: m }),
1913
+ buttonVisibility: u ? "onHover" : "never",
1914
+ renderContent: (y) => /* @__PURE__ */ g(H, { children: [
1915
+ /* @__PURE__ */ g(We, { children: [
1916
+ /* @__PURE__ */ n(yo, { onClick: m }),
1873
1917
  y
1874
1918
  ] }),
1875
- g && /* @__PURE__ */ o(ho, { nlgRequest: F })
1919
+ u && /* @__PURE__ */ n(bo, { nlgRequest: x })
1876
1920
  ] })
1877
1921
  }
1878
1922
  )
1879
1923
  ] });
1880
1924
  }
1881
- function mo({ message: e, isLastMessage: t }) {
1882
- if (Me(e)) {
1925
+ function ko({ message: e, isLastMessage: t }) {
1926
+ if (Ee(e)) {
1883
1927
  const r = JSON.parse(e.content);
1884
- return /* @__PURE__ */ o(fo, { data: r, alwaysShowFeedback: t });
1928
+ return /* @__PURE__ */ n(wo, { data: r, alwaysShowFeedback: t });
1885
1929
  }
1886
- const n = p1(e) ? JSON.parse(e.content).answer : e.content;
1887
- return /* @__PURE__ */ o(z, { align: e.role === "user" ? "right" : "left", children: n });
1930
+ const o = x1(e) ? JSON.parse(e.content).answer : e.content;
1931
+ return /* @__PURE__ */ n(z, { align: e.role === "user" ? "right" : "left", children: o });
1888
1932
  }
1889
- const bo = Ot(mo), xo = ({
1933
+ const So = Vt(ko), Mo = ({
1890
1934
  error: e,
1891
1935
  displayMessage: t
1892
- }) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ o(z, { align: "left", children: t }));
1893
- function yo({ messages: e }) {
1894
- const { t } = v();
1895
- return /* @__PURE__ */ o(D, { children: e.map((n, r) => /* @__PURE__ */ o(
1896
- Wt,
1936
+ }) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ n(z, { align: "left", children: t }));
1937
+ function Lo({ messages: e }) {
1938
+ const { t } = k();
1939
+ return /* @__PURE__ */ n(H, { children: e.map((o, r) => /* @__PURE__ */ n(
1940
+ qt,
1897
1941
  {
1898
- fallbackRender: (i) => xo($(w({}, i), {
1942
+ fallbackRender: (i) => Mo(L(w({}, i), {
1899
1943
  displayMessage: t("ai.errors.unexpected")
1900
1944
  })),
1901
- children: /* @__PURE__ */ o(bo, { message: n, isLastMessage: r === e.length - 1 }, r)
1945
+ children: /* @__PURE__ */ n(So, { message: o, isLastMessage: r === e.length - 1 }, r)
1902
1946
  },
1903
1947
  r
1904
1948
  )) });
1905
1949
  }
1906
- function st({ color: e }) {
1907
- return /* @__PURE__ */ o(
1950
+ function lt({ color: e }) {
1951
+ return /* @__PURE__ */ n(
1908
1952
  "svg",
1909
1953
  {
1910
1954
  width: "100%",
@@ -1912,7 +1956,7 @@ function st({ color: e }) {
1912
1956
  viewBox: "0 0 4 8",
1913
1957
  fill: "none",
1914
1958
  xmlns: "http://www.w3.org/2000/svg",
1915
- children: /* @__PURE__ */ o(
1959
+ children: /* @__PURE__ */ n(
1916
1960
  "path",
1917
1961
  {
1918
1962
  d: "M3.87815 0.825307C4.05781 0.615598 4.03345 0.299954 3.82374 0.120297C3.61403 -0.05936 3.29838 -0.034998 3.11873 0.174711L0.120288 3.67471C-0.040096 3.86192 -0.040096 4.1381 0.120288 4.32531L3.11873 7.82531C3.29838 8.03502 3.61403 8.05938 3.82374 7.87972C4.03345 7.70006 4.05781 7.38442 3.87815 7.17471L1.15839 4.00001L3.87815 0.825307Z",
@@ -1922,18 +1966,18 @@ function st({ color: e }) {
1922
1966
  }
1923
1967
  );
1924
1968
  }
1925
- function vo({ onClick: e, color: t }) {
1926
- return /* @__PURE__ */ o(
1969
+ function $o({ onClick: e, color: t }) {
1970
+ return /* @__PURE__ */ n(
1927
1971
  "div",
1928
1972
  {
1929
1973
  "aria-label": "go back",
1930
1974
  className: "csdk-w-5 csdk-h-5 csdk-flex csdk-p-[4px] csdk-ml-[6px] csdk-cursor-pointer",
1931
1975
  onClick: e,
1932
- children: /* @__PURE__ */ o(st, { color: t })
1976
+ children: /* @__PURE__ */ n(lt, { color: t })
1933
1977
  }
1934
1978
  );
1935
1979
  }
1936
- const wo = u.button`
1980
+ const To = h.button`
1937
1981
  font-size: inherit;
1938
1982
  line-height: inherit;
1939
1983
  box-sizing: border-box;
@@ -1957,13 +2001,13 @@ const wo = u.button`
1957
2001
  }
1958
2002
 
1959
2003
  ${({ theme: e }) => {
1960
- const { borderGradient: t, borderRadius: n } = e.aiChat.suggestions;
2004
+ const { borderGradient: t, borderRadius: o } = e.aiChat.suggestions;
1961
2005
  if (t) {
1962
2006
  const [r, i] = t;
1963
- return H`
2007
+ return E`
1964
2008
  border: none;
1965
2009
  position: relative;
1966
- border-radius: ${n};
2010
+ border-radius: ${o};
1967
2011
  &:before {
1968
2012
  content: '';
1969
2013
  position: absolute;
@@ -1971,7 +2015,7 @@ const wo = u.button`
1971
2015
  left: 0;
1972
2016
  right: 0;
1973
2017
  bottom: 0;
1974
- border-radius: ${n};
2018
+ border-radius: ${o};
1975
2019
  border: 1px solid transparent;
1976
2020
  background: linear-gradient(30deg, ${r}, ${i}) border-box;
1977
2021
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
@@ -1983,33 +2027,33 @@ const wo = u.button`
1983
2027
  return "";
1984
2028
  }}
1985
2029
  `;
1986
- function Ie({ question: e, onClick: t }) {
1987
- const { themeSettings: n } = b();
1988
- return /* @__PURE__ */ o(wo, { onClick: t, theme: n, children: e });
2030
+ function qe({ question: e, onClick: t }) {
2031
+ const { themeSettings: o } = b();
2032
+ return /* @__PURE__ */ n(To, { onClick: t, theme: o, children: e });
1989
2033
  }
1990
- const ko = u.div`
2034
+ const Ro = h.div`
1991
2035
  display: flex;
1992
2036
  flex-direction: column;
1993
2037
  align-items: flex-start;
1994
2038
  row-gap: ${({ theme: e }) => e.aiChat.suggestions.gap};
1995
2039
  `;
1996
- function So({ questions: e, onSelection: t }) {
1997
- const { t: n } = v(), [r, i] = L(!0), a = N(() => r && e.length > 5 ? e.slice(0, 4) : e, [e, r]), { themeSettings: s } = b();
1998
- return /* @__PURE__ */ h(ko, { "aria-label": "list of suggested questions", theme: s, children: [
1999
- a.map((c) => /* @__PURE__ */ o(Ie, { question: c, onClick: () => t(c) }, c)),
2000
- a.length < e.length && /* @__PURE__ */ o(Ie, { question: n("ai.buttons.seeMore"), onClick: () => i(!1) })
2040
+ function Eo({ questions: e, onSelection: t }) {
2041
+ const { t: o } = k(), [r, i] = $(!0), s = D(() => r && e.length > 5 ? e.slice(0, 4) : e, [e, r]), { themeSettings: a } = b();
2042
+ return /* @__PURE__ */ g(Ro, { "aria-label": "list of suggested questions", theme: a, children: [
2043
+ s.map((c) => /* @__PURE__ */ n(qe, { question: c, onClick: () => t(c) }, c)),
2044
+ s.length < e.length && /* @__PURE__ */ n(qe, { question: o("ai.buttons.seeMore"), onClick: () => i(!1) })
2001
2045
  ] });
2002
2046
  }
2003
- const Mo = u.div`
2047
+ const No = h.div`
2004
2048
  width: 283px;
2005
2049
  height: 32px;
2006
2050
  border-radius: 10px;
2007
2051
  background: ${({ theme: e }) => {
2008
- const [t, n] = e.aiChat.suggestions.loadingGradient;
2052
+ const [t, o] = e.aiChat.suggestions.loadingGradient;
2009
2053
  return `linear-gradient(
2010
2054
  to right,
2011
2055
  ${t} 0%,
2012
- ${n} 50%,
2056
+ ${o} 50%,
2013
2057
  ${t} 100%
2014
2058
  )`;
2015
2059
  }};
@@ -2024,23 +2068,23 @@ const Mo = u.div`
2024
2068
  background-position: -200% 0;
2025
2069
  }
2026
2070
  }
2027
- `, $o = u.div`
2071
+ `, Io = h.div`
2028
2072
  display: flex;
2029
2073
  flex-direction: column;
2030
2074
  row-gap: 1rem;
2031
2075
  `;
2032
- function Lo() {
2076
+ function Ho() {
2033
2077
  const { themeSettings: e } = b();
2034
- return /* @__PURE__ */ o($o, { children: Array.from({ length: 3 }, (t, n) => /* @__PURE__ */ o(Mo, { theme: e }, n)) });
2078
+ return /* @__PURE__ */ n(Io, { children: Array.from({ length: 3 }, (t, o) => /* @__PURE__ */ n(No, { theme: e }, o)) });
2035
2079
  }
2036
- function Ro({ questions: e, isLoading: t, onSelection: n }) {
2037
- const r = e.length > 0, { suggestionsWelcomeText: i } = P();
2038
- return t ? /* @__PURE__ */ o(Lo, {}) : r ? /* @__PURE__ */ h(D, { children: [
2039
- i && /* @__PURE__ */ o(z, { align: "left", children: i }),
2040
- /* @__PURE__ */ o(So, { onSelection: n, questions: e })
2080
+ function Bo({ questions: e, isLoading: t, onSelection: o }) {
2081
+ const r = e.length > 0, { suggestionsWelcomeText: i } = W();
2082
+ return t ? /* @__PURE__ */ n(Ho, {}) : r ? /* @__PURE__ */ g(H, { children: [
2083
+ i && /* @__PURE__ */ n(z, { align: "left", children: i }),
2084
+ /* @__PURE__ */ n(Eo, { onSelection: o, questions: e })
2041
2085
  ] }) : null;
2042
2086
  }
2043
- const To = u.div`
2087
+ const Fo = h.div`
2044
2088
  flex: 0 0 80px;
2045
2089
  padding-left: 14px;
2046
2090
  padding-right: 14px;
@@ -2049,20 +2093,20 @@ const To = u.div`
2049
2093
  position: relative;
2050
2094
 
2051
2095
  background-color: ${({ style: e }) => e.backgroundColor};
2052
- `, Eo = u.div`
2096
+ `, Do = h.div`
2053
2097
  font-size: 18px;
2054
2098
  line-height: 22px;
2055
2099
  font-weight: 600;
2056
2100
  margin-left: 20px;
2057
2101
 
2058
2102
  color: ${({ style: e }) => e.textColor};
2059
- `, at = Zt(function({ title: t, leftNav: n, rightNav: r, style: i }, a) {
2060
- return /* @__PURE__ */ h(To, { ref: a, style: i, children: [
2061
- n,
2062
- /* @__PURE__ */ o(Eo, { style: i, children: t }),
2063
- r && /* @__PURE__ */ o("div", { className: "csdk-ml-auto", children: r })
2103
+ `, ct = Gt(function({ title: t, leftNav: o, rightNav: r, style: i }, s) {
2104
+ return /* @__PURE__ */ g(Fo, { ref: s, style: i, children: [
2105
+ o,
2106
+ /* @__PURE__ */ n(Do, { style: i, children: t }),
2107
+ r && /* @__PURE__ */ n("div", { className: "csdk-ml-auto", children: r })
2064
2108
  ] });
2065
- }), Ho = u.div`
2109
+ }), Po = h.div`
2066
2110
  text-align: center;
2067
2111
  font-size: 11px;
2068
2112
  line-height: 18px;
@@ -2076,17 +2120,17 @@ const To = u.div`
2076
2120
 
2077
2121
  color: ${({ theme: e }) => e.aiChat.secondaryTextColor};
2078
2122
  `;
2079
- function Bo({ theme: e }) {
2080
- const { t } = v();
2081
- return /* @__PURE__ */ h(Ho, { theme: e, children: [
2082
- /* @__PURE__ */ o("div", { children: t("ai.disclaimer.poweredByAi") }),
2083
- /* @__PURE__ */ h("div", { children: [
2123
+ function Oo({ theme: e }) {
2124
+ const { t } = k();
2125
+ return /* @__PURE__ */ g(Po, { theme: e, children: [
2126
+ /* @__PURE__ */ n("div", { children: t("ai.disclaimer.poweredByAi") }),
2127
+ /* @__PURE__ */ g("div", { children: [
2084
2128
  " ",
2085
2129
  t("ai.disclaimer.rateRequest")
2086
2130
  ] })
2087
2131
  ] });
2088
2132
  }
2089
- const Do = u.div`
2133
+ const Wo = h.div`
2090
2134
  font-size: inherit;
2091
2135
  line-height: inherit;
2092
2136
  padding-left: 16px;
@@ -2097,13 +2141,13 @@ const Do = u.div`
2097
2141
 
2098
2142
  color: ${({ theme: e }) => e.aiChat.suggestions.textColor};
2099
2143
  background-color: ${({ theme: e }) => e.aiChat.suggestions.backgroundColor};
2100
- `, lt = () => {
2101
- const { t: e } = v(), { themeSettings: t } = b();
2102
- return /* @__PURE__ */ o(Do, { theme: t, children: e("ai.betaLabel") });
2144
+ `, dt = () => {
2145
+ const { t: e } = k(), { themeSettings: t } = b();
2146
+ return /* @__PURE__ */ n(Wo, { theme: t, children: e("ai.betaLabel") });
2103
2147
  };
2104
- function Fo() {
2148
+ function qo() {
2105
2149
  const { themeSettings: e } = b();
2106
- return /* @__PURE__ */ o("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o(
2150
+ return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
2107
2151
  "path",
2108
2152
  {
2109
2153
  fillRule: "evenodd",
@@ -2113,10 +2157,10 @@ function Fo() {
2113
2157
  }
2114
2158
  ) });
2115
2159
  }
2116
- const No = (e, t) => {
2117
- const n = new Vt(e);
2118
- return n.alpha = t, n;
2119
- }, Io = u.div`
2160
+ const Ao = (e, t) => {
2161
+ const o = new Kt(e);
2162
+ return o.alpha = t, o;
2163
+ }, Zo = h.div`
2120
2164
  font-size: inherit;
2121
2165
  line-height: inherit;
2122
2166
  padding-left: 8px;
@@ -2124,7 +2168,7 @@ const No = (e, t) => {
2124
2168
  padding-top: 4px;
2125
2169
  border-radius: 16px;
2126
2170
  margin-bottom: 4px;
2127
- box-shadow: ${({ theme: e }) => `0 4px 8px 0 ${No(e.aiChat.primaryTextColor, 0.2)}`};
2171
+ box-shadow: ${({ theme: e }) => `0 4px 8px 0 ${Ao(e.aiChat.primaryTextColor, 0.2)}`};
2128
2172
  cursor: pointer;
2129
2173
  color: ${({ theme: e }) => e.aiChat.clickableMessages.textColor};
2130
2174
  background-color: ${({ theme: e }) => e.aiChat.clickableMessages.backgroundColor};
@@ -2133,10 +2177,10 @@ const No = (e, t) => {
2133
2177
  color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.textColor};
2134
2178
  background-color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.backgroundColor};
2135
2179
  box-shadow: none;
2136
- `, Wo = ({ onClick: e }) => {
2180
+ `, zo = ({ onClick: e }) => {
2137
2181
  const { themeSettings: t } = b();
2138
- return /* @__PURE__ */ o(Io, { theme: t, onClick: e, children: /* @__PURE__ */ o(Fo, {}) });
2139
- }, Po = ({ isVisible: e, onClick: t, anchorElement: n }) => /* @__PURE__ */ o(Ze, { anchorEl: n, open: e, placement: "top", sx: { zIndex: 2 }, children: /* @__PURE__ */ o(Wo, { onClick: t }) }), Oo = u.div`
2182
+ return /* @__PURE__ */ n(Zo, { theme: t, onClick: e, children: /* @__PURE__ */ n(qo, {}) });
2183
+ }, Vo = ({ isVisible: e, onClick: t, anchorElement: o }) => /* @__PURE__ */ n(ze, { anchorEl: o, open: e, placement: "top", sx: { zIndex: 2 }, children: /* @__PURE__ */ n(zo, { onClick: t }) }), Go = h.div`
2140
2184
  display: flex;
2141
2185
  flex-direction: column;
2142
2186
  row-gap: ${({ theme: e }) => e.aiChat.body.gapBetweenMessages};
@@ -2147,7 +2191,7 @@ const No = (e, t) => {
2147
2191
  padding-bottom: ${({ theme: e }) => e.aiChat.body.paddingBottom};
2148
2192
  flex: initial;
2149
2193
  height: 100%;
2150
- `, Zo = u.div`
2194
+ `, jo = h.div`
2151
2195
  padding-left: ${({ theme: e }) => e.aiChat.footer.paddingLeft};
2152
2196
  padding-right: ${({ theme: e }) => e.aiChat.footer.paddingRight};
2153
2197
  padding-top: ${({ theme: e }) => e.aiChat.footer.paddingTop};
@@ -2155,130 +2199,131 @@ const No = (e, t) => {
2155
2199
  display: flex;
2156
2200
  flex-direction: column;
2157
2201
  row-gap: 6px;
2158
- `, Ao = u.div`
2202
+ `, Qo = h.div`
2159
2203
  display: flex;
2160
2204
  flex-direction: column;
2161
2205
  row-gap: ${({ theme: e }) => e.aiChat.suggestions.gap};
2162
2206
  `;
2163
- function qo({ contextTitle: e, onGoBack: t }) {
2164
- const { t: n } = v(), {
2165
- data: r,
2166
- isLoading: i,
2167
- isError: a
2207
+ function Uo({ contextTitle: e, onGoBack: t }) {
2208
+ const { t: o } = k(), { enableFollowupQuestions: r, enableHeader: i, numOfRecentPrompts: s, numOfRecommendations: a } = W(), { themeSettings: c } = b(), {
2209
+ data: l,
2210
+ isLoading: d,
2211
+ isError: C
2168
2212
  } = Je({
2169
- contextTitle: e
2170
- }), s = N(
2171
- () => r.map((M) => M.nlqPrompt),
2172
- [r]
2213
+ contextTitle: e,
2214
+ count: a
2215
+ }), u = D(
2216
+ () => l == null ? void 0 : l.map((v) => v.nlqPrompt),
2217
+ [l]
2173
2218
  ), {
2174
- history: c,
2175
- lastNlqResponse: l,
2176
- isAwaitingResponse: d,
2177
- sendMessage: p,
2178
- isLoading: g,
2179
- chatId: C,
2180
- lastError: m
2181
- } = C1(e), { mutate: F, isLoading: k } = Xe(C), [y, O] = L(!1), [I, x] = L(!1), Z = () => O(!0), S = () => O(!1), J = () => {
2182
- F(), S();
2183
- }, R = K(null), X = K(null), Ce = () => {
2184
- if (!(R != null && R.current))
2219
+ history: p,
2220
+ lastNlqResponse: m,
2221
+ isAwaitingResponse: x,
2222
+ sendMessage: M,
2223
+ isLoading: y,
2224
+ chatId: q,
2225
+ lastError: N
2226
+ } = y1(e), { mutate: S, isLoading: O } = tt(q), [B, F] = $(!1), [V, se] = $(!1), fe = () => F(!0), X = () => F(!1), U = () => {
2227
+ S(), X();
2228
+ }, I = J(null), _ = J(null), me = () => {
2229
+ if (!(I != null && I.current))
2185
2230
  return;
2186
- const { scrollTop: M, clientHeight: T, scrollHeight: Te } = R.current;
2187
- if (M === void 0 || T === void 0 || Te === void 0)
2231
+ const { scrollTop: v, clientHeight: A, scrollHeight: He } = I.current;
2232
+ if (v === void 0 || A === void 0 || He === void 0)
2188
2233
  return;
2189
- const Ee = Te - M - T > T / 2;
2190
- I !== Ee && x(Ee);
2234
+ const Be = He - v - A > A / 2;
2235
+ V !== Be && se(Be);
2191
2236
  };
2192
2237
  ce(() => {
2193
- R.current && (R.current.scrollTop = R.current.scrollHeight);
2194
- }, [c, y, d]);
2195
- const ge = K(null), { enableFollowupQuestions: j, enableHeader: G, numOfRecentPrompts: U } = P(), { themeSettings: A } = b(), se = G ? /* @__PURE__ */ o(
2196
- at,
2238
+ I.current && (I.current.scrollTop = I.current.scrollHeight);
2239
+ }, [p, B, x]);
2240
+ const be = J(null), K = i ? /* @__PURE__ */ n(
2241
+ ct,
2197
2242
  {
2198
- ref: ge,
2243
+ ref: be,
2199
2244
  title: e,
2200
- leftNav: t && /* @__PURE__ */ o(vo, { onClick: t, color: A.aiChat.header.textColor }),
2201
- rightNav: /* @__PURE__ */ o(lt, {}),
2202
- style: A.aiChat.header
2245
+ leftNav: t && /* @__PURE__ */ n($o, { onClick: t, color: c.aiChat.header.textColor }),
2246
+ rightNav: /* @__PURE__ */ n(dt, {}),
2247
+ style: c.aiChat.header
2203
2248
  }
2204
- ) : null, ee = N(
2249
+ ) : null, xe = D(
2205
2250
  () => [
2206
2251
  ...new Set(
2207
- c.filter((M) => M.role === "user").filter((M) => !s.includes(M.content)).map((M) => M.content).reverse()
2252
+ p.filter((v) => v.role === "user").filter((v) => !(u != null && u.includes(v.content))).map((v) => v.content).reverse()
2208
2253
  )
2209
- ].slice(0, U),
2210
- [c, U, s]
2254
+ ].slice(0, s),
2255
+ [p, s, u]
2211
2256
  );
2212
- return (m == null ? void 0 : m.message) === n("ai.errors.chatUnavailable") ? /* @__PURE__ */ h(D, { children: [
2213
- G && se,
2214
- /* @__PURE__ */ o(rt, { text: m.message })
2215
- ] }) : /* @__PURE__ */ h(D, { children: [
2216
- se,
2217
- /* @__PURE__ */ h(Oo, { ref: R, theme: A, onScroll: Ce, children: [
2218
- /* @__PURE__ */ o(
2219
- Po,
2257
+ return (N == null ? void 0 : N.message) === o("ai.errors.chatUnavailable") ? /* @__PURE__ */ g(H, { children: [
2258
+ i && K,
2259
+ /* @__PURE__ */ n(st, { text: N.message })
2260
+ ] }) : /* @__PURE__ */ g(H, { children: [
2261
+ K,
2262
+ /* @__PURE__ */ g(Go, { ref: I, theme: c, onScroll: me, children: [
2263
+ /* @__PURE__ */ n(
2264
+ Vo,
2220
2265
  {
2221
- isVisible: I,
2222
- anchorElement: X.current,
2266
+ isVisible: V,
2267
+ anchorElement: _.current,
2223
2268
  onClick: () => {
2224
- var M, T;
2225
- (T = R.current) == null || T.scroll({
2226
- top: (M = R.current) == null ? void 0 : M.scrollHeight,
2269
+ var v, A;
2270
+ (A = I.current) == null || A.scroll({
2271
+ top: (v = I.current) == null ? void 0 : v.scrollHeight,
2227
2272
  behavior: "smooth"
2228
2273
  });
2229
2274
  }
2230
2275
  }
2231
2276
  ),
2232
- /* @__PURE__ */ o(P1, {}),
2233
- /* @__PURE__ */ o(
2234
- Ro,
2277
+ /* @__PURE__ */ n(V1, {}),
2278
+ /* @__PURE__ */ n(
2279
+ Bo,
2235
2280
  {
2236
- questions: s,
2237
- isLoading: i,
2238
- onSelection: p
2281
+ questions: u || [],
2282
+ isLoading: d,
2283
+ onSelection: M
2239
2284
  }
2240
2285
  ),
2241
- m && /* @__PURE__ */ o(z, { align: "left", children: m.message }),
2242
- g ? /* @__PURE__ */ o(pe, {}) : /* @__PURE__ */ o(yo, { messages: c }),
2243
- j && l && /* @__PURE__ */ o(Ao, { theme: A, children: l.followupQuestions.slice(0, 2).map((M, T) => /* @__PURE__ */ o(
2286
+ N && /* @__PURE__ */ n(z, { align: "left", children: N.message }),
2287
+ y ? /* @__PURE__ */ n(ge, {}) : /* @__PURE__ */ n(Lo, { messages: p }),
2288
+ r && m && /* @__PURE__ */ n(Qo, { theme: c, children: m.followupQuestions.slice(0, 2).map((v, A) => /* @__PURE__ */ n(
2244
2289
  de,
2245
2290
  {
2246
2291
  align: "left",
2247
2292
  onClick: () => {
2248
- p(M);
2293
+ M(v);
2249
2294
  },
2250
- children: /* @__PURE__ */ o("div", { className: "csdk-py-[7px] csdk-px-4", children: M })
2295
+ children: /* @__PURE__ */ n("div", { className: "csdk-py-[7px] csdk-px-4", children: v })
2251
2296
  },
2252
- T
2297
+ A
2253
2298
  )) }),
2254
- (d || k) && /* @__PURE__ */ o($e, {}),
2255
- y && /* @__PURE__ */ o(
2256
- Q1,
2299
+ (x || O) && /* @__PURE__ */ n(Ne, {}),
2300
+ B && /* @__PURE__ */ n(
2301
+ K1,
2257
2302
  {
2258
- onCancel: S,
2259
- onConfirm: J
2303
+ onCancel: X,
2304
+ onConfirm: U
2260
2305
  }
2261
2306
  )
2262
2307
  ] }),
2263
- /* @__PURE__ */ h(Zo, { ref: X, theme: A, children: [
2264
- /* @__PURE__ */ o(
2265
- I1,
2308
+ /* @__PURE__ */ g(jo, { ref: _, theme: c, children: [
2309
+ /* @__PURE__ */ n(
2310
+ Z1,
2266
2311
  {
2267
- onSendMessage: p,
2268
- disabled: d || g,
2269
- onClearHistoryClick: Z,
2270
- suggestions: s,
2271
- recentPrompts: ee,
2272
- isLoading: i || g,
2273
- recommendationsError: a,
2274
- onChange: S
2312
+ onSendMessage: M,
2313
+ disabled: x || y,
2314
+ onClearHistoryClick: fe,
2315
+ suggestions: u || [],
2316
+ recentPrompts: xe,
2317
+ isLoading: d || y,
2318
+ recommendationsError: C,
2319
+ onChange: X
2275
2320
  }
2276
2321
  ),
2277
- /* @__PURE__ */ o(Bo, { theme: A })
2322
+ /* @__PURE__ */ n(Oo, { theme: c })
2278
2323
  ] })
2279
2324
  ] });
2280
2325
  }
2281
- const zo = u.button`
2326
+ const _o = h.button`
2282
2327
  font-family: ${({ theme: e }) => e.typography.fontFamily};
2283
2328
  padding: 20px;
2284
2329
  border: none;
@@ -2291,38 +2336,38 @@ const zo = u.button`
2291
2336
  cursor: pointer;
2292
2337
 
2293
2338
  background-color: ${({ theme: e }) => e.aiChat.dataTopics.items.backgroundColor};
2294
- `, Qo = u.div`
2339
+ `, Ko = h.div`
2295
2340
  font-size: 1.05rem;
2296
2341
  line-height: 28px;
2297
2342
 
2298
2343
  color: ${({ theme: e }) => e.aiChat.dataTopics.items.textColor};
2299
- `, Vo = u.div`
2344
+ `, Yo = h.div`
2300
2345
  font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
2301
2346
  line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
2302
2347
 
2303
- color: ${({ theme: e }) => Ve(e.aiChat.dataTopics.items.textColor, 0, 0.5)};
2304
- `, jo = u.div`
2348
+ color: ${({ theme: e }) => Qe(e.aiChat.dataTopics.items.textColor, 0, 0.5)};
2349
+ `, Jo = h.div`
2305
2350
  width: 16px;
2306
2351
  height: 16px;
2307
2352
  transform: rotate(180deg);
2308
2353
  `;
2309
- function Go(e) {
2310
- const { title: t, description: n, onClick: r } = e, { themeSettings: i } = b();
2311
- return /* @__PURE__ */ h(zo, { onClick: r, theme: i, children: [
2312
- /* @__PURE__ */ h("div", { children: [
2313
- /* @__PURE__ */ o(Qo, { theme: i, children: t }),
2314
- /* @__PURE__ */ o(Vo, { theme: i, children: n })
2354
+ function Xo(e) {
2355
+ const { title: t, description: o, onClick: r } = e, { themeSettings: i } = b();
2356
+ return /* @__PURE__ */ g(_o, { onClick: r, theme: i, children: [
2357
+ /* @__PURE__ */ g("div", { children: [
2358
+ /* @__PURE__ */ n(Ko, { theme: i, children: t }),
2359
+ /* @__PURE__ */ n(Yo, { theme: i, children: o })
2315
2360
  ] }),
2316
- /* @__PURE__ */ o(jo, { children: /* @__PURE__ */ o(st, { color: i.aiChat.icons.color }) })
2361
+ /* @__PURE__ */ n(Jo, { children: /* @__PURE__ */ n(lt, { color: i.aiChat.icons.color }) })
2317
2362
  ] });
2318
2363
  }
2319
- const Uo = u.div`
2364
+ const en = h.div`
2320
2365
  padding: 20px;
2321
2366
  display: flex;
2322
2367
  flex-direction: column;
2323
2368
  gap: 20px;
2324
2369
  overflow: auto;
2325
- `, _o = u.div`
2370
+ `, tn = h.div`
2326
2371
  font-size: 24px;
2327
2372
  line-height: 32px;
2328
2373
  font-weight: 600;
@@ -2330,29 +2375,29 @@ const Uo = u.div`
2330
2375
  padding-bottom: 4px;
2331
2376
 
2332
2377
  color: ${({ theme: e }) => e.aiChat.primaryTextColor};
2333
- `, Ko = u.div`
2378
+ `, on = h.div`
2334
2379
  font-size: 15px;
2335
2380
  line-height: 22px;
2336
2381
 
2337
2382
  color: ${({ theme: e }) => e.aiChat.primaryTextColor};
2338
2383
  `;
2339
- function Yo(e) {
2340
- const { dataTopics: t } = e, { themeSettings: n } = b(), { t: r } = v();
2341
- return /* @__PURE__ */ h(Uo, { children: [
2342
- /* @__PURE__ */ o(_o, { theme: n, children: r("ai.dataTopics") }),
2343
- /* @__PURE__ */ h(Ko, { theme: n, children: [
2384
+ function nn(e) {
2385
+ const { dataTopics: t } = e, { themeSettings: o } = b(), { t: r } = k();
2386
+ return /* @__PURE__ */ g(en, { children: [
2387
+ /* @__PURE__ */ n(tn, { theme: o, children: r("ai.dataTopics") }),
2388
+ /* @__PURE__ */ g(on, { theme: o, children: [
2344
2389
  r("ai.chatbotDescription"),
2345
- /* @__PURE__ */ o("br", {}),
2346
- /* @__PURE__ */ o("br", {}),
2390
+ /* @__PURE__ */ n("br", {}),
2391
+ /* @__PURE__ */ n("br", {}),
2347
2392
  r("ai.topicSelectPrompt")
2348
2393
  ] }),
2349
- t.map((i) => /* @__PURE__ */ At(Go, $(w({}, i), { key: i.title })))
2394
+ t.map((i) => /* @__PURE__ */ jt(Xo, L(w({}, i), { key: i.title })))
2350
2395
  ] });
2351
2396
  }
2352
- const Jo = "#000000", Xo = "#FFFFFF";
2353
- function en({ isDarkBackground: e = !1 }) {
2354
- const t = e ? Xo : Jo;
2355
- return /* @__PURE__ */ h(
2397
+ const rn = "#000000", sn = "#FFFFFF";
2398
+ function an({ isDarkBackground: e = !1 }) {
2399
+ const t = e ? sn : rn;
2400
+ return /* @__PURE__ */ g(
2356
2401
  "svg",
2357
2402
  {
2358
2403
  width: "32",
@@ -2361,112 +2406,112 @@ function en({ isDarkBackground: e = !1 }) {
2361
2406
  fill: "none",
2362
2407
  xmlns: "http://www.w3.org/2000/svg",
2363
2408
  children: [
2364
- /* @__PURE__ */ o(
2409
+ /* @__PURE__ */ n(
2365
2410
  "path",
2366
2411
  {
2367
2412
  d: "M365.111 69.5654C350.571 69.5654 338.747 81.3237 338.747 95.7826C338.747 110.241 350.571 122 365.111 122C379.651 122 391.476 110.241 391.476 95.7826C391.476 81.3237 379.651 69.5654 365.111 69.5654Z",
2368
2413
  fill: t
2369
2414
  }
2370
2415
  ),
2371
- /* @__PURE__ */ o(
2416
+ /* @__PURE__ */ n(
2372
2417
  "path",
2373
2418
  {
2374
2419
  d: "M135.365 147.679C120.824 147.679 109 159.437 109 173.896C109 188.355 120.824 200.113 135.365 200.113C149.905 200.113 161.715 188.355 161.715 173.896C161.715 159.437 149.891 147.679 135.365 147.679Z",
2375
2420
  fill: t
2376
2421
  }
2377
2422
  ),
2378
- /* @__PURE__ */ o(
2423
+ /* @__PURE__ */ n(
2379
2424
  "path",
2380
2425
  {
2381
2426
  d: "M135.365 225.789C120.824 225.789 109 237.547 109 252.006C109 266.465 120.824 278.21 135.365 278.21C149.905 278.21 161.715 266.451 161.715 252.006C161.715 237.561 149.891 225.789 135.365 225.789Z",
2382
2427
  fill: t
2383
2428
  }
2384
2429
  ),
2385
- /* @__PURE__ */ o(
2430
+ /* @__PURE__ */ n(
2386
2431
  "path",
2387
2432
  {
2388
2433
  d: "M364.401 225.789C349.861 225.789 338.037 237.547 338.037 252.006C338.037 266.465 349.861 278.21 364.401 278.21C378.941 278.21 390.766 266.451 390.766 252.006C390.766 237.561 378.941 225.789 364.401 225.789Z",
2389
2434
  fill: t
2390
2435
  }
2391
2436
  ),
2392
- /* @__PURE__ */ o(
2437
+ /* @__PURE__ */ n(
2393
2438
  "path",
2394
2439
  {
2395
2440
  d: "M365.111 303.899C350.571 303.899 338.747 315.658 338.747 330.117C338.747 344.575 350.571 356.334 365.111 356.334C379.651 356.334 391.476 344.575 391.476 330.117C391.476 315.658 379.651 303.899 365.111 303.899Z",
2396
2441
  fill: t
2397
2442
  }
2398
2443
  ),
2399
- /* @__PURE__ */ o(
2444
+ /* @__PURE__ */ n(
2400
2445
  "path",
2401
2446
  {
2402
2447
  d: "M135.365 382.013C120.824 382.013 109 393.771 109 408.23C109 422.689 120.824 434.447 135.365 434.447C149.905 434.447 161.715 422.689 161.715 408.23C161.715 393.771 149.891 382.013 135.365 382.013Z",
2403
2448
  fill: t
2404
2449
  }
2405
2450
  ),
2406
- /* @__PURE__ */ o(
2451
+ /* @__PURE__ */ n(
2407
2452
  "path",
2408
2453
  {
2409
2454
  d: "M289.516 142.11C271.898 142.11 257.567 156.362 257.567 173.895C257.567 191.429 271.898 205.666 289.516 205.666C307.135 205.666 321.466 191.415 321.466 173.895C321.466 156.375 307.135 142.11 289.516 142.11Z",
2410
2455
  fill: t
2411
2456
  }
2412
2457
  ),
2413
- /* @__PURE__ */ o(
2458
+ /* @__PURE__ */ n(
2414
2459
  "path",
2415
2460
  {
2416
2461
  d: "M210.96 142.11C193.342 142.11 179.01 156.362 179.01 173.895C179.01 191.429 193.342 205.666 210.96 205.666C228.578 205.666 242.909 191.415 242.909 173.895C242.909 156.375 228.578 142.11 210.96 142.11Z",
2417
2462
  fill: t
2418
2463
  }
2419
2464
  ),
2420
- /* @__PURE__ */ o(
2465
+ /* @__PURE__ */ n(
2421
2466
  "path",
2422
2467
  {
2423
2468
  d: "M289.516 220.224C271.898 220.224 257.567 234.475 257.567 252.008C257.567 269.542 271.898 283.779 289.516 283.779C307.135 283.779 321.466 269.528 321.466 252.008C321.466 234.489 307.135 220.224 289.516 220.224Z",
2424
2469
  fill: t
2425
2470
  }
2426
2471
  ),
2427
- /* @__PURE__ */ o(
2472
+ /* @__PURE__ */ n(
2428
2473
  "path",
2429
2474
  {
2430
2475
  d: "M210.96 220.224C193.342 220.224 179.01 234.475 179.01 252.008C179.01 269.542 193.342 283.779 210.96 283.779C228.578 283.779 242.909 269.528 242.909 252.008C242.909 234.489 228.578 220.224 210.96 220.224Z",
2431
2476
  fill: t
2432
2477
  }
2433
2478
  ),
2434
- /* @__PURE__ */ o(
2479
+ /* @__PURE__ */ n(
2435
2480
  "path",
2436
2481
  {
2437
2482
  d: "M289.516 298.334C271.898 298.334 257.567 312.585 257.567 330.105C257.567 347.624 271.898 361.889 289.516 361.889C307.135 361.889 321.466 347.638 321.466 330.105C321.466 312.571 307.135 298.334 289.516 298.334Z",
2438
2483
  fill: t
2439
2484
  }
2440
2485
  ),
2441
- /* @__PURE__ */ o(
2486
+ /* @__PURE__ */ n(
2442
2487
  "path",
2443
2488
  {
2444
2489
  d: "M210.96 298.334C193.342 298.334 179.01 312.585 179.01 330.105C179.01 347.624 193.342 361.889 210.96 361.889C228.578 361.889 242.909 347.638 242.909 330.105C242.909 312.571 228.578 298.334 210.96 298.334Z",
2445
2490
  fill: t
2446
2491
  }
2447
2492
  ),
2448
- /* @__PURE__ */ o(
2493
+ /* @__PURE__ */ n(
2449
2494
  "path",
2450
2495
  {
2451
2496
  d: "M289.516 64C271.898 64 257.567 78.2512 257.567 95.7847C257.567 113.318 271.898 127.555 289.516 127.555C307.135 127.555 321.466 113.304 321.466 95.7847C321.466 78.265 307.135 64 289.516 64Z",
2452
2497
  fill: t
2453
2498
  }
2454
2499
  ),
2455
- /* @__PURE__ */ o(
2500
+ /* @__PURE__ */ n(
2456
2501
  "path",
2457
2502
  {
2458
2503
  d: "M210.96 64C193.342 64 179.01 78.2512 179.01 95.7847C179.01 113.318 193.342 127.555 210.96 127.555C228.578 127.555 242.909 113.304 242.909 95.7847C242.909 78.265 228.578 64 210.96 64Z",
2459
2504
  fill: t
2460
2505
  }
2461
2506
  ),
2462
- /* @__PURE__ */ o(
2507
+ /* @__PURE__ */ n(
2463
2508
  "path",
2464
2509
  {
2465
2510
  d: "M289.516 376.442C271.898 376.442 257.567 390.694 257.567 408.213C257.567 425.733 271.898 439.998 289.516 439.998C307.135 439.998 321.466 425.747 321.466 408.213C321.466 390.68 307.135 376.442 289.516 376.442Z",
2466
2511
  fill: t
2467
2512
  }
2468
2513
  ),
2469
- /* @__PURE__ */ o(
2514
+ /* @__PURE__ */ n(
2470
2515
  "path",
2471
2516
  {
2472
2517
  d: "M210.96 376.442C193.342 376.442 179.01 390.694 179.01 408.213C179.01 425.733 193.342 439.998 210.96 439.998C228.578 439.998 242.909 425.747 242.909 408.213C242.909 390.68 228.578 376.442 210.96 376.442Z",
@@ -2477,10 +2522,10 @@ function en({ isDarkBackground: e = !1 }) {
2477
2522
  }
2478
2523
  );
2479
2524
  }
2480
- const tn = u.div`
2525
+ const ln = h.div`
2481
2526
  margin-left: 14px;
2482
2527
  margin-top: 3px;
2483
- `, on = u.div`
2528
+ `, cn = h.div`
2484
2529
  display: flex;
2485
2530
  flex-direction: column;
2486
2531
  justify-content: top;
@@ -2489,85 +2534,93 @@ const tn = u.div`
2489
2534
 
2490
2535
  background-color: ${({ theme: e }) => e.aiChat.dataTopics.backgroundColor};
2491
2536
  `;
2492
- function nn({ dataTopicsList: e, onDataTopicClick: t }) {
2493
- const { enableHeader: n } = P(), { themeSettings: r } = b(), { t: i } = v(), a = N(() => e == null ? void 0 : e.map((c) => ({
2537
+ function dn({ dataTopicsList: e, onDataTopicClick: t }) {
2538
+ const { enableHeader: o } = W(), { themeSettings: r } = b(), { t: i } = k(), s = D(() => e == null ? void 0 : e.map((c) => ({
2494
2539
  title: c,
2495
2540
  onClick: () => t(c)
2496
- })), [e, t]), s = jt(Gt(r.aiChat.header.backgroundColor)) > 0.5;
2497
- return /* @__PURE__ */ h(D, { children: [
2498
- n ? /* @__PURE__ */ o(
2499
- at,
2541
+ })), [e, t]), a = Yt(Jt(r.aiChat.header.backgroundColor)) > 0.5;
2542
+ return /* @__PURE__ */ g(H, { children: [
2543
+ o ? /* @__PURE__ */ n(
2544
+ ct,
2500
2545
  {
2501
2546
  title: i("ai.analyticsChatbot"),
2502
- leftNav: /* @__PURE__ */ o(tn, { children: /* @__PURE__ */ o(en, { isDarkBackground: s }) }),
2503
- rightNav: /* @__PURE__ */ o(lt, {}),
2547
+ leftNav: /* @__PURE__ */ n(ln, { children: /* @__PURE__ */ n(an, { isDarkBackground: a }) }),
2548
+ rightNav: /* @__PURE__ */ n(dt, {}),
2504
2549
  style: r.aiChat.header
2505
2550
  }
2506
2551
  ) : null,
2507
- /* @__PURE__ */ h(on, { theme: r, children: [
2508
- !a && /* @__PURE__ */ o(pe, {}),
2509
- a && /* @__PURE__ */ o(Yo, { dataTopics: a })
2552
+ /* @__PURE__ */ g(cn, { theme: r, children: [
2553
+ !s && /* @__PURE__ */ n(ge, {}),
2554
+ s && /* @__PURE__ */ n(nn, { dataTopics: s })
2510
2555
  ] })
2511
2556
  ] });
2512
2557
  }
2513
- function rn() {
2514
- const [e, t] = L([]), [n, r] = L(), [i, a] = L(), { data: s, fetchStatus: c } = tt(), { dataTopicsList: l } = P(), { t: d } = v();
2515
- ne(() => {
2516
- if (s && c === "idle") {
2517
- let C = s;
2518
- l && l.length && (C = s == null ? void 0 : s.filter((m) => l == null ? void 0 : l.includes(m.title))), t(C.map((m) => m.title)), C.length ? C.length === 1 && (a(void 0), r(C[0].title)) : a(d("ai.errors.noAvailableDataTopics"));
2558
+ function un() {
2559
+ const [e, t] = $([]), [o, r] = $(), [i, s] = $(), { data: a, fetchStatus: c } = nt(), { dataTopicsList: l } = W(), { t: d } = k();
2560
+ oe(() => {
2561
+ if (a && c === "idle") {
2562
+ let p = a;
2563
+ l && l.length && (p = a == null ? void 0 : a.filter((m) => l == null ? void 0 : l.includes(m.title))), t(p.map((m) => m.title)), p.length ? p.length === 1 && (s(void 0), r(p[0].title)) : s(d("ai.errors.noAvailableDataTopics"));
2519
2564
  }
2520
- }, [s, l, c, d]);
2521
- const p = oe(), g = E(() => {
2522
- a(void 0), p.invalidateQueries(["getDataTopics"]);
2523
- }, [p]);
2524
- return i ? /* @__PURE__ */ o(
2525
- rt,
2565
+ }, [a, l, c, d]);
2566
+ const C = te(), u = T(() => {
2567
+ s(void 0), C.invalidateQueries(["getDataTopics"]);
2568
+ }, [C]);
2569
+ return i ? /* @__PURE__ */ n(
2570
+ st,
2526
2571
  {
2527
2572
  text: i,
2528
- action: { text: d("ai.buttons.refresh"), onClick: g }
2573
+ action: { text: d("ai.buttons.refresh"), onClick: u }
2529
2574
  }
2530
- ) : e.length === 1 && !n ? /* @__PURE__ */ o(pe, {}) : n ? /* @__PURE__ */ o(
2531
- qo,
2575
+ ) : e.length === 1 && !o ? /* @__PURE__ */ n(ge, {}) : o ? /* @__PURE__ */ n(
2576
+ Uo,
2532
2577
  {
2533
- contextTitle: n,
2578
+ contextTitle: o,
2534
2579
  onGoBack: e.length === 1 ? void 0 : () => r(void 0)
2535
2580
  }
2536
- ) : /* @__PURE__ */ o(
2537
- nn,
2581
+ ) : /* @__PURE__ */ n(
2582
+ dn,
2538
2583
  {
2539
2584
  dataTopicsList: e,
2540
- onDataTopicClick: (C) => r(C)
2585
+ onDataTopicClick: (p) => r(p)
2541
2586
  }
2542
2587
  );
2543
2588
  }
2544
- const wn = qe({
2589
+ const En = $e({
2545
2590
  componentName: "Chatbot"
2546
2591
  })((e) => {
2547
- const { width: t, height: n, config: r } = e, { themeSettings: i } = b();
2548
- return /* @__PURE__ */ o(l1, { value: r != null ? r : {}, children: /* @__PURE__ */ o(
2549
- x1,
2592
+ const { width: t, height: o, config: r } = e, { themeSettings: i } = b();
2593
+ return /* @__PURE__ */ n(g1, { value: r != null ? r : {}, children: /* @__PURE__ */ n(
2594
+ M1,
2550
2595
  {
2551
2596
  id: "csdk-chatbot-frame",
2552
2597
  width: t,
2553
- height: n,
2598
+ height: o,
2554
2599
  theme: i,
2555
2600
  tabIndex: 0,
2556
- children: /* @__PURE__ */ o(rn, {})
2601
+ children: /* @__PURE__ */ n(un, {})
2557
2602
  }
2558
2603
  ) });
2559
- }), kn = qe({
2604
+ }), Nn = $e({
2605
+ componentName: "GetNlgInsights"
2606
+ })(function(t) {
2607
+ const { data: o, isLoading: r, isError: i } = ne(t), { t: s } = k();
2608
+ if (i)
2609
+ return /* @__PURE__ */ n(H, { children: s("ai.errors.unexpected") });
2610
+ const a = o != null ? o : "Oops, no data came back for that.";
2611
+ return /* @__PURE__ */ n(Ce, { text: r ? "Loading..." : a });
2612
+ }), In = $e({
2560
2613
  componentName: "GetNlgQueryResult"
2561
2614
  })(function(t) {
2562
- const { data: n, isLoading: r, isError: i } = he(t), { t: a } = v();
2615
+ const { data: o, isLoading: r, isError: i } = ne(t), { t: s } = k();
2563
2616
  if (i)
2564
- return /* @__PURE__ */ o(D, { children: a("ai.errors.unexpected") });
2565
- const s = n != null ? n : "Oops, no data came back for that.";
2566
- return /* @__PURE__ */ o(Re, { text: r ? "Loading..." : s });
2617
+ return /* @__PURE__ */ n(H, { children: s("ai.errors.unexpected") });
2618
+ const a = o != null ? o : "Oops, no data came back for that.";
2619
+ return /* @__PURE__ */ n(Ce, { text: r ? "Loading..." : a });
2567
2620
  });
2568
- function sn({ theme: e }) {
2621
+ function hn({ theme: e }) {
2569
2622
  const t = e.general.brandColor;
2570
- return /* @__PURE__ */ h(
2623
+ return /* @__PURE__ */ g(
2571
2624
  "svg",
2572
2625
  {
2573
2626
  xmlns: "http://www.w3.org/2000/svg",
@@ -2576,7 +2629,7 @@ function sn({ theme: e }) {
2576
2629
  viewBox: "-2 -3 24 24",
2577
2630
  fill: "none",
2578
2631
  children: [
2579
- /* @__PURE__ */ o(
2632
+ /* @__PURE__ */ n(
2580
2633
  "path",
2581
2634
  {
2582
2635
  "fill-rule": "evenodd",
@@ -2585,7 +2638,7 @@ function sn({ theme: e }) {
2585
2638
  fill: t
2586
2639
  }
2587
2640
  ),
2588
- /* @__PURE__ */ o(
2641
+ /* @__PURE__ */ n(
2589
2642
  "path",
2590
2643
  {
2591
2644
  "fill-rule": "evenodd",
@@ -2594,7 +2647,7 @@ function sn({ theme: e }) {
2594
2647
  fill: t
2595
2648
  }
2596
2649
  ),
2597
- /* @__PURE__ */ o(
2650
+ /* @__PURE__ */ n(
2598
2651
  "path",
2599
2652
  {
2600
2653
  "fill-rule": "evenodd",
@@ -2607,77 +2660,88 @@ function sn({ theme: e }) {
2607
2660
  }
2608
2661
  );
2609
2662
  }
2610
- const an = u.div`
2663
+ const pn = h.div`
2611
2664
  display: flex;
2612
2665
  flex-direction: row;
2613
2666
  align-items: center;
2614
2667
  gap: 10px;
2615
2668
  margin: 24px 0;
2616
2669
  max-width: 640px;
2617
- `, ln = u.div`
2670
+ `, gn = h.div`
2618
2671
  align-self: flex-start;
2619
- `, cn = ({ summary: e, nlgRequest: t }) => {
2620
- const { themeSettings: n } = b();
2621
- return /* @__PURE__ */ o(
2622
- we,
2672
+ `, Cn = ({ summary: e, nlgRequest: t }) => {
2673
+ const { themeSettings: o } = b();
2674
+ return /* @__PURE__ */ n(
2675
+ Le,
2623
2676
  {
2624
2677
  sourceId: t.jaql.datasource.title,
2625
2678
  data: t,
2626
2679
  type: "chart/insights",
2627
2680
  buttonVisibility: "always",
2628
- renderContent: (r) => /* @__PURE__ */ h(an, { theme: n, children: [
2629
- /* @__PURE__ */ o(ln, { theme: n, children: /* @__PURE__ */ o(sn, { theme: n }) }),
2630
- /* @__PURE__ */ o(Re, { text: e }),
2681
+ renderContent: (r) => /* @__PURE__ */ g(pn, { theme: o, children: [
2682
+ /* @__PURE__ */ n(gn, { theme: o, children: /* @__PURE__ */ n(hn, { theme: o }) }),
2683
+ /* @__PURE__ */ n(Ce, { text: e }),
2631
2684
  r
2632
2685
  ] })
2633
2686
  }
2634
2687
  );
2635
- }, Sn = ({ nlqResponse: e, onDataReady: t, filters: n = [] }) => {
2636
- const { connectToWidgetProps: r } = Pt({
2637
- initialFilters: n
2638
- }), [i, a] = L(null);
2639
- ne(() => {
2640
- const p = je(e, {
2688
+ }, Hn = ({
2689
+ nlqResponse: e,
2690
+ onDataReady: t,
2691
+ filters: o = [],
2692
+ enableHeader: r = !0
2693
+ }) => {
2694
+ e.queryTitle = At(e.queryTitle);
2695
+ const { connectToWidgetProps: i } = Zt({
2696
+ initialFilters: o
2697
+ }), [s, a] = $(null);
2698
+ oe(() => {
2699
+ var p;
2700
+ const u = pe(e, {
2641
2701
  useCustomizedStyleOptions: !0
2642
2702
  });
2643
- if (!p)
2703
+ if (!u)
2644
2704
  a(null);
2645
2705
  else {
2646
- const g = r(p, {
2706
+ r || (u.styleOptions = L(w({}, u.styleOptions), {
2707
+ header: L(w({}, (p = u.styleOptions) == null ? void 0 : p.header), {
2708
+ hidden: !0
2709
+ })
2710
+ }));
2711
+ const m = i(u, {
2647
2712
  shouldAffectFilters: !1,
2648
2713
  applyMode: "filter"
2649
2714
  });
2650
- a(g);
2715
+ a(m);
2651
2716
  }
2652
- }, [e, r]);
2653
- const s = N(() => {
2654
- const p = i && ye(i) ? Ut(i == null ? void 0 : i.filters) : [], g = e.jaql.metadata.filter((C) => !C.jaql.filter).concat(
2655
- p.filter((C) => !C.config.disabled).map((C) => C.jaql())
2717
+ }, [e, i, r]);
2718
+ const c = D(() => {
2719
+ const u = s && Se(s) ? zt(s == null ? void 0 : s.filters) : [], p = e.jaql.metadata.filter((m) => !m.jaql.filter).concat(
2720
+ u.filter((m) => !m.config.disabled).map((m) => m.jaql())
2656
2721
  );
2657
- return $(w({}, e), { jaql: $(w({}, e.jaql), { metadata: g }) });
2658
- }, [e, i]), {
2659
- data: c,
2660
- isLoading: l,
2661
- isError: d
2662
- } = he(s);
2663
- return l || !i ? /* @__PURE__ */ o($e, {}) : ye(i) ? /* @__PURE__ */ o(
2664
- te,
2665
- $(w({}, i), {
2722
+ return L(w({}, e), { jaql: L(w({}, e.jaql), { metadata: p }) });
2723
+ }, [e, s]), { data: l, isLoading: d, isError: C } = ne(c);
2724
+ return d || !s ? /* @__PURE__ */ n(Ne, {}) : Se(s) ? /* @__PURE__ */ n(
2725
+ ee,
2726
+ L(w({}, s), {
2666
2727
  highlightSelectionDisabled: !0,
2667
2728
  onDataReady: t,
2668
- topSlot: c && !d && /* @__PURE__ */ o(cn, { nlgRequest: s, summary: c })
2729
+ topSlot: l && !C && /* @__PURE__ */ n(Cn, { nlgRequest: c, summary: l })
2669
2730
  })
2670
- ) : /* @__PURE__ */ o(D, {});
2731
+ ) : /* @__PURE__ */ n(H, {});
2671
2732
  };
2672
2733
  export {
2673
- mn as AiContextProvider,
2674
- wn as Chatbot,
2675
- kn as GetNlgQueryResult,
2676
- Sn as NlqChartWidget,
2677
- C1 as useChatSession,
2678
- vn as useGetDataSourceFields,
2679
- bn as useGetNlgQueryResult,
2680
- xn as useGetQueryRecommendations,
2681
- yn as useLastNlqResponse
2734
+ kn as AiContextProvider,
2735
+ En as Chatbot,
2736
+ Nn as GetNlgInsights,
2737
+ In as GetNlgQueryResult,
2738
+ Hn as NlqChartWidget,
2739
+ y1 as useChatSession,
2740
+ Rn as useGetDataSourceFields,
2741
+ Sn as useGetNlgInsights,
2742
+ Mn as useGetNlgQueryResult,
2743
+ Ln as useGetNlqResult,
2744
+ $n as useGetQueryRecommendations,
2745
+ Tn as useLastNlqResponse
2682
2746
  };
2683
2747
  (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.csdk-treemap-tooltip-wrapper{min-width:210px;color:#acacac;font-size:14px;line-height:16px;background:#fff;border-radius:10px;overflow:hidden;margin-right:-1px;padding-bottom:10px}.csdk-treemap-tooltip-level{display:flex;align-items:center;position:relative;padding:8px;font-size:14px;border-bottom:1px solid #ccc}.csdk-treemap-tooltip-level span{padding:0 2px}.csdk-treemap-tooltip-value{padding:10px 10px 0;font-size:12px;line-height:16px}.highcharts-sunburst-series.highcharts-legend-item{pointer-events:none!important}.csdk-boxplot-tooltip-row{display:flex;justify-content:space-between}.csdk-boxplot-tooltip-row>*{margin-right:10px}.csdk-boxplot-tooltip-row>*:last-child{margin-right:0}[class|=csdk],[class|=csdk]:before,[class|=csdk]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#d5d5d5;font-family:inherit}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.csdk-absolute{position:absolute}.csdk-relative{position:relative}.csdk-left-2{left:.5rem}.csdk-right-0{right:0}.csdk-right-\\[-15px\\]{right:-15px}.csdk-right-\\[-5px\\]{right:-5px}.csdk-right-\\[0px\\]{right:0}.csdk-right-\\[4px\\]{right:4px}.csdk-top-1\\/2{top:50%}.csdk-top-\\[3px\\]{top:3px}.csdk-top-\\[7px\\]{top:7px}.csdk-z-\\[401\\]{z-index:401}.csdk-m-auto{margin:auto}.csdk-m-checkbox,.csdk-m-radio{margin:6px 10px 6px 6px}.csdk-mx-\\[16px\\]{margin-left:16px;margin-right:16px}.csdk-my-1{margin-top:.25rem;margin-bottom:.25rem}.csdk-my-\\[2px\\]{margin-top:2px;margin-bottom:2px}.csdk-my-\\[5px\\]{margin-top:5px;margin-bottom:5px}.csdk-mb-1{margin-bottom:.25rem}.csdk-mb-\\[10px\\]{margin-bottom:10px}.csdk-mb-\\[24px\\]{margin-bottom:24px}.csdk-mb-\\[3px\\]{margin-bottom:3px}.csdk-mb-\\[4px\\]{margin-bottom:4px}.csdk-mb-px{margin-bottom:1px}.csdk-ml-1{margin-left:.25rem}.csdk-ml-1\\.5{margin-left:.375rem}.csdk-ml-2{margin-left:.5rem}.csdk-ml-\\[10px\\]{margin-left:10px}.csdk-ml-\\[4px\\]{margin-left:4px}.csdk-ml-\\[5px\\]{margin-left:5px}.csdk-ml-\\[6px\\]{margin-left:6px}.csdk-ml-\\[7px\\]{margin-left:7px}.csdk-ml-auto{margin-left:auto}.csdk-mr-2{margin-right:.5rem}.csdk-mr-\\[5px\\]{margin-right:5px}.csdk-mr-\\[7px\\]{margin-right:7px}.csdk-mt-2{margin-top:.5rem}.csdk-mt-3{margin-top:.75rem}.csdk-mt-\\[-2px\\]{margin-top:-2px}.csdk-mt-\\[16px\\]{margin-top:16px}.csdk-mt-\\[2px\\]{margin-top:2px}.csdk-mt-\\[6px\\]{margin-top:6px}.csdk-mt-\\[8px\\]{margin-top:8px}.csdk-box-border{box-sizing:border-box}.csdk-line-clamp-5{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.csdk-flex{display:flex}.csdk-grid{display:grid}.csdk-h-5{height:1.25rem}.csdk-h-6{height:1.5rem}.csdk-h-\\[100\\%\\]{height:100%}.csdk-h-\\[10px\\]{height:10px}.csdk-h-\\[18px\\]{height:18px}.csdk-h-\\[20px\\]{height:20px}.csdk-h-\\[245px\\]{height:245px}.csdk-h-button{height:28px}.csdk-h-checkbox{height:12px}.csdk-h-full{height:100%}.csdk-h-radio{height:12px}.csdk-h-screen{height:100vh}.csdk-max-h-32{max-height:8rem}.csdk-max-h-\\[150px\\]{max-height:150px}.csdk-min-h-\\[20px\\]{min-height:20px}.csdk-min-h-\\[32px\\]{min-height:32px}.csdk-w-5{width:1.25rem}.csdk-w-\\[100\\%\\]{width:100%}.csdk-w-\\[10px\\]{width:10px}.csdk-w-\\[152px\\]{width:152px}.csdk-w-\\[18px\\]{width:18px}.csdk-w-\\[240px\\]{width:240px}.csdk-w-\\[28px\\]{width:28px}.csdk-w-\\[300px\\]{width:300px}.csdk-w-\\[60px\\]{width:60px}.csdk-w-checkbox{width:12px}.csdk-w-fit{width:-moz-fit-content;width:fit-content}.csdk-w-full{width:100%}.csdk-w-radio{width:12px}.csdk-min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.csdk-max-w-xs{max-width:20rem}.csdk-shrink-0{flex-shrink:0}.csdk-grow{flex-grow:1}.csdk-grow-0{flex-grow:0}.-csdk-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-csdk-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-scale-x-\\[-1\\]{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes csdk-spin{to{transform:rotate(360deg)}}.csdk-animate-spin{animation:csdk-spin 1s linear infinite}.csdk-cursor-pointer{cursor:pointer}.csdk-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.csdk-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.csdk-flex-row{flex-direction:row}.csdk-flex-col{flex-direction:column}.csdk-flex-wrap{flex-wrap:wrap}.csdk-items-center{align-items:center}.csdk-justify-end{justify-content:flex-end}.csdk-justify-center{justify-content:center}.csdk-justify-between{justify-content:space-between}.csdk-justify-evenly{justify-content:space-evenly}.csdk-gap-1{gap:.25rem}.csdk-gap-2{gap:.5rem}.csdk-gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.csdk-gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.csdk-gap-y-0{row-gap:0px}.csdk-gap-y-0\\.5{row-gap:.125rem}.csdk-gap-y-4{row-gap:1rem}.csdk-self-center{align-self:center}.csdk-overflow-auto{overflow:auto}.csdk-overflow-hidden{overflow:hidden}.\\!csdk-overflow-visible{overflow:visible!important}.csdk-whitespace-nowrap{white-space:nowrap}.csdk-whitespace-pre-wrap{white-space:pre-wrap}.csdk-rounded{border-radius:.25rem}.csdk-rounded-\\[4px\\]{border-radius:4px}.csdk-rounded-full{border-radius:9999px}.csdk-rounded-md{border-radius:.375rem}.csdk-border{border-width:1px}.csdk-border-0{border-width:0px}.csdk-border-input{border-width:1px}.csdk-border-b{border-bottom-width:1px}.csdk-border-l{border-left-width:1px}.csdk-border-l-\\[70px\\]{border-left-width:70px}.csdk-border-r-\\[70px\\]{border-right-width:70px}.csdk-border-t{border-top-width:1px}.csdk-border-t-\\[13px\\]{border-top-width:13px}.csdk-border-solid{border-style:solid}.csdk-border-none{border-style:none}.csdk-border-UI-default{--tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--tw-border-opacity))}.csdk-border-\\[\\#e4e4e4\\]{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity))}.csdk-border-transparent{border-color:transparent}.csdk-border-l-\\[transparent\\]{border-left-color:transparent}.csdk-border-r-\\[transparent\\]{border-right-color:transparent}.csdk-bg-\\[\\#f4f4f8\\]{--tw-bg-opacity: 1;background-color:rgb(244 244 248 / var(--tw-bg-opacity))}.csdk-bg-background-priority{background-color:#f4f4f8}.csdk-bg-primary-primary{background-color:#ffcb05}.csdk-bg-transparent{background-color:transparent}.csdk-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.csdk-p-1{padding:.25rem}.csdk-p-1\\.5{padding:.375rem}.csdk-p-3{padding:.75rem}.csdk-p-\\[10px\\]{padding:10px}.csdk-p-\\[12px\\]{padding:12px}.csdk-p-\\[20px\\]{padding:20px}.csdk-p-\\[4px\\]{padding:4px}.csdk-p-button{padding:4px 24px}.csdk-p-px{padding:1px}.csdk-px-2{padding-left:.5rem;padding-right:.5rem}.csdk-px-4{padding-left:1rem;padding-right:1rem}.csdk-px-\\[12px\\]{padding-left:12px;padding-right:12px}.csdk-px-\\[20px\\]{padding-left:20px;padding-right:20px}.csdk-px-\\[8px\\]{padding-left:8px;padding-right:8px}.csdk-py-\\[14\\.5px\\]{padding-top:14.5px;padding-bottom:14.5px}.csdk-py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.csdk-py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.csdk-py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.csdk-pb-\\[0px\\]{padding-bottom:0}.csdk-pl-1{padding-left:.25rem}.csdk-pl-2{padding-left:.5rem}.csdk-pl-2\\.5{padding-left:.625rem}.csdk-pl-3{padding-left:.75rem}.csdk-pl-\\[20px\\]{padding-left:20px}.csdk-pr-10{padding-right:2.5rem}.csdk-pt-48{padding-top:12rem}.csdk-text-left{text-align:left}.csdk-text-\\[13px\\]{font-size:13px}.csdk-text-ai-lg{font-size:18px;line-height:22px}.csdk-text-ai-sm{font-size:13px;line-height:18px}.csdk-text-ai-xs{font-size:11px;line-height:18px}.csdk-text-xs{font-size:.75rem;line-height:1rem}.csdk-font-normal{font-weight:400}.csdk-leading-4{line-height:1rem}.csdk-leading-\\[16px\\]{line-height:16px}.csdk-leading-\\[18px\\]{line-height:18px}.csdk-leading-none{line-height:1}.csdk-text-UI-default{--tw-text-opacity: 1;color:rgb(110 115 125 / var(--tw-text-opacity))}.csdk-text-semantic-error{color:#e74727}.csdk-text-text-active{color:#262e3d}.csdk-text-text-content{color:#262e3dcc}.csdk-text-text-link{color:#36a3d9}.csdk-text-text-linkButton{--tw-text-opacity: 1;color:rgb(30 175 243 / var(--tw-text-opacity))}.csdk-accent-UI-default{accent-color:#6e737d}.csdk-opacity-0{opacity:0}.csdk-opacity-100{opacity:1}.csdk-opacity-50{opacity:.5}.csdk-opacity-80{opacity:.8}.csdk-shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.csdk-shadow-gray-500{--tw-shadow-color: #6b7280;--tw-shadow: var(--tw-shadow-colored)}.csdk-outline-0{outline-width:0px}.csdk-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-delay-150{transition-delay:.15s}.csdk-duration-500{transition-duration:.5s}.invalid\\:csdk-border-input:invalid{border-width:1px}.invalid\\:csdk-border-solid:invalid{border-style:solid}.invalid\\:csdk-border-semantic-error:invalid{border-color:#e74727}.hover\\:csdk-border-2:hover{border-width:2px}.hover\\:csdk-bg-interaction-primaryHovered:hover{background-color:#f2b900}.hover\\:csdk-bg-row-hover:hover{background-color:#e0e0e04d}.focus\\:csdk-border-input:focus{border-width:1px}.focus\\:csdk-border-solid:focus{border-style:solid}.focus\\:csdk-border-UI-default:focus{--tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--tw-border-opacity))}.disabled\\:csdk-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:csdk-opacity-30:disabled{opacity:.3}._container_1wquj_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:0 20px;text-align:center;margin:15px}._container_1wquj_1 ._card_1wquj_11{position:relative;padding:10px;box-shadow:0 2px 4px #0000001a;border-radius:4px;z-index:1;width:100%}._container_1wquj_1 ._text_1wquj_19{font-size:13px;text-align:center;font-weight:700;word-wrap:break-word}.highcharts-series.highcharts-area-series.area-series--without-pointer-events .highcharts-area{pointer-events:none}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.csdk-map-container .leaflet-interactive{outline:none}.csdk-scattermap-tooltip-row{display:flex;justify-content:space-between}._alert_box_10ttx_1{position:absolute;display:flex;justify-content:center;z-index:1;margin-top:1%}._alert_box_10ttx_1 ._content_10ttx_8{background-color:#616161;padding:5px;border-radius:3px;text-align:center}._alert_box_10ttx_1 ._content_10ttx_8 ._alert_10ttx_1{color:#fff;margin:0 8px;line-height:1;font-size:12px}._wrapper_g0ngm_1{width:100%;height:100%;position:relative}._title_g0ngm_7{font-size:18px;color:#9ea2ab;letter-spacing:normal;text-align:center;position:absolute;width:100%;top:11%}._image_g0ngm_18{width:66.6%;height:100%;margin:0 auto;display:block}.fixedDataTableCellGroupLayout_cellGroup{backface-visibility:hidden;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap}.fixedDataTable_isRTL .fixedDataTableCellGroupLayout_cellGroup{right:0;left:auto}.fixedDataTableCellGroupLayout_cellGroup>.public_fixedDataTableCell_main{display:inline-block;vertical-align:top;white-space:normal}.fixedDataTableCellGroupLayout_cellGroupWrapper{position:absolute;top:0}.fixedDataTableCellLayout_main{border-right-style:solid;border-right-width:1px;border-width:0 1px 0 0;box-sizing:border-box;display:block;overflow:hidden;position:absolute;white-space:normal}.fixedDataTable_isRTL .fixedDataTableCellLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableCellLayout_lastChild{border-width:0 1px 1px 0}.fixedDataTableCellLayout_alignRight{text-align:right}.fixedDataTableCellLayout_alignCenter{text-align:center}.fixedDataTableCellLayout_wrap{display:table-cell;vertical-align:middle;box-sizing:border-box}.fixedDataTableCellLayout_wrap1{display:table}.fixedDataTableCellLayout_wrap2{display:table-row}.fixedDataTableCellLayout_wrap3{display:table-cell;vertical-align:middle}.fixedDataTableCellLayout_columnResizerContainer{position:absolute;right:0;width:6px;z-index:1}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnResizerContainer{left:0;right:auto}.fixedDataTableCellLayout_columnResizerContainer:hover{cursor:ew-resize}.fixedDataTableCellLayout_columnResizerContainer:hover .fixedDataTableCellLayout_columnResizerKnob{visibility:visible}.fixedDataTableCellLayout_columnResizerKnob{position:absolute;right:0;visibility:hidden;width:4px}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnResizerKnob{left:0;right:auto}.fixedDataTableColumnResizerLineLayout_mouseArea{cursor:ew-resize;position:absolute;right:-5px;width:12px}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_mouseArea{right:auto;left:-5px}.fixedDataTableColumnResizerLineLayout_main{border-right-style:solid;border-right-width:1px;box-sizing:border-box;position:absolute;z-index:10;pointer-events:none}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableColumnResizerLineLayout_hiddenElem{display:none!important}.fixedDataTableLayout_main{border-style:solid;border-width:1px;box-sizing:border-box;overflow:hidden;position:relative}.fixedDataTableLayout_header,.fixedDataTableLayout_hasBottomBorder{border-bottom-style:solid;border-bottom-width:1px}.fixedDataTableLayout_footer .public_fixedDataTableCell_main{border-top-style:solid;border-top-width:1px}.fixedDataTableLayout_topShadow,.fixedDataTableLayout_bottomShadow{height:4px;left:0;position:absolute;right:0;z-index:1}.fixedDataTableLayout_bottomShadow{margin-top:-4px}.fixedDataTableLayout_rowsContainer{overflow:hidden;position:relative}.fixedDataTableRowLayout_main{box-sizing:border-box;overflow:hidden;position:absolute;top:0}.fixedDataTableRowLayout_body{left:0;right:0;position:absolute;top:0}.fixedDataTableRowLayout_rowExpanded{box-sizing:border-box;left:0;position:absolute}.fixedDataTableRowLayout_fixedColumnsDivider{backface-visibility:hidden;border-left-style:solid;border-left-width:1px;left:0;position:absolute;top:0;width:0}.fixedDataTable_isRTL .fixedDataTableRowLayout_fixedColumnsDivider{border-left-width:0;border-right-style:solid;border-right-width:1px}.fixedDataTableRowLayout_columnsShadow{position:absolute;width:4px}.fixedDataTableRowLayout_columnsRightShadow{right:1px}.fixedDataTable_isRTL .fixedDataTableRowLayout_columnsRightShadow{left:1px;right:auto}.fixedDataTableRowLayout_rowWrapper{position:absolute;top:0}.ScrollbarLayout_main{box-sizing:border-box;outline:none;overflow:hidden;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ScrollbarLayout_mainVertical{bottom:0;right:0;top:0;width:15px}.ScrollbarLayout_mainHorizontal{height:15px;left:0;transition-property:background-color height}.ScrollbarLayout_mainHorizontal.public_Scrollbar_mainActive,.ScrollbarLayout_mainHorizontal:hover{height:17px}.ScrollbarLayout_face{left:0;overflow:hidden;position:absolute;z-index:1;transition-duration:.25s;transition-timing-function:ease;transition-property:width}.ScrollbarLayout_face:after{border-radius:6px;content:"";display:block;position:absolute;transition:background-color .25s ease}.ScrollbarLayout_faceHorizontal{bottom:0;left:0;top:0}.ScrollbarLayout_faceHorizontal:after{bottom:4px;left:0;top:4px;width:100%}.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal,.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal:after{right:0;left:auto}.ScrollbarLayout_faceHorizontal.public_Scrollbar_faceActive:after,.ScrollbarLayout_main:hover .ScrollbarLayout_faceHorizontal:after{bottom:2px}.ScrollbarLayout_faceVertical{left:0;right:0;top:0}.ScrollbarLayout_faceVertical:after{height:100%;left:4px;right:4px;top:0}.ScrollbarLayout_main:hover .ScrollbarLayout_faceVertical:after,.ScrollbarLayout_faceVertical.public_Scrollbar_faceActive:after{left:2px;right:2px}.public_fixedDataTable_main,.public_fixedDataTable_header,.public_fixedDataTable_hasBottomBorder{border-color:#d3d3d3}.public_fixedDataTable_header .public_fixedDataTableCell_main{font-weight:700}.public_fixedDataTable_header,.public_fixedDataTable_scrollbarSpacer,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#f6f7f8;background-image:linear-gradient(#fff,#efefef)}.public_fixedDataTable_scrollbarSpacer{position:absolute;z-index:99;top:0}.public_fixedDataTable_footer .public_fixedDataTableCell_main{background-color:#f6f7f8;border-color:#d3d3d3}.public_fixedDataTable_topShadow{background-image:linear-gradient(180deg,#0000001a,#0000)}.public_fixedDataTable_bottomShadow{background-image:linear-gradient(0deg,#0000001a,#0000)}.public_fixedDataTable_horizontalScrollbar .public_Scrollbar_mainHorizontal{background-color:#fff}.public_fixedDataTableCell_main{background-color:#fff;border-color:#d3d3d3}.public_fixedDataTableCell_highlighted{background-color:#f4f4f4}.public_fixedDataTableCell_cellContent{padding:8px}.public_fixedDataTableCell_columnResizerKnob{background-color:#0284ff}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:12px}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-left:20px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:auto;margin-right:12px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-right:20px}.fixedDataTableCellLayout_columnReorderContainer{border-color:#0284ff;background-color:#0000001a;width:12px;margin-right:-12px;float:left;cursor:move}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer{margin-right:auto;margin-left:-12px;float:right}.fixedDataTableCellLayout_columnReorderContainer:after{content:"::";position:absolute;top:50%;left:1px;transform:translateY(-50%)}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer:after{left:auto;right:1px}.public_fixedDataTableColumnResizerLine_main{border-color:#0284ff}.public_fixedDataTableRow_main{background-color:#fff}.public_fixedDataTableRow_highlighted,.public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main{background-color:#f6f7f8}.public_fixedDataTableRow_fixedColumnsDivider{border-color:#d3d3d3}.public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(90deg,#0000001a,#0000)}.fixedDataTable_isRTL .public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(270deg,#0000001a,#0000)}.public_fixedDataTableRow_columnsRightShadow{transform:rotate(180deg)}.public_Scrollbar_main.public_Scrollbar_mainActive,.public_Scrollbar_main{background-color:#fff;border-left:1px solid #d3d3d3}.fixedDataTable_isRTL .public_Scrollbar_main.public_Scrollbar_mainActive,.fixedDataTable_isRTL .public_Scrollbar_main{border-right:1px solid #d3d3d3;border-left-width:0}.public_Scrollbar_mainOpaque,.public_Scrollbar_mainOpaque.public_Scrollbar_mainActive,.public_Scrollbar_mainOpaque:hover{background-color:#fff}.public_Scrollbar_face:after{background-color:#c2c2c2}.public_Scrollbar_main:hover .public_Scrollbar_face:after,.public_Scrollbar_mainActive .public_Scrollbar_face:after,.public_Scrollbar_faceActive:after{background-color:#7d7d7d}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer,._tableWrapper_1ode4_16 .public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:transparent;background-image:none;border-bottom:1px solid #edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{margin-left:3px}._tableWrapper_1ode4_16 .public_fixedDataTable_main,._tableWrapper_1ode4_16 .fixedDataTableLayout_main{border:none}._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted,._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main,._tableWrapper_1ode4_16 .public_fixedDataTableRow_main{background-color:transparent}._tableWrapper_1ode4_16 .public_fixedDataTableCell_main{background-color:transparent;border-color:#edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_hasBottomBorder,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{border-bottom:none}._tableWrapper_1ode4_16 .public_fixedDataTable_header .fixedDataTableCellGroupLayout_cellGroup{border-top:1px solid #edeef1;border-bottom:1px solid #edeef1;box-sizing:border-box}._tableWrapper_1ode4_16 .public_Scrollbar_main{border-left:none;background-color:transparent}._tableWrapper_1ode4_16 .fixedDataTableRowLayout_rowWrapper{border-left:1px solid #edeef1}._tableWrapper_1ode4_16 .public_Scrollbar_main.public_Scrollbar_mainOpaque{left:-1px}._tableWrapper_1ode4_16 .public_fixedDataTableCell_cellContent{padding:0 24px 0 12px}._tableWrapper_1ode4_16{height:100%;width:100%;box-sizing:border-box;-webkit-user-select:text;-moz-user-select:text;user-select:text}._table_1ode4_16{background:transparent;font-size:13px;border:none}._tableHeader_1ode4_78{color:#5c6372;background-color:transparent;margin:0;border:none;width:100%;overflow:hidden;box-sizing:border-box}._tableCell_1ode4_88{color:#5c6372;background-color:transparent;border:none;border-right:1px solid #edeef1;border-bottom:1px solid #edeef1;overflow:hidden;width:100%;box-sizing:border-box}._tableCellContent_1ode4_99{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._headerColor_1ode4_105,._rowColor_1ode4_109{background-color:#f9f9fb}._headerCell_2qf2w_16{display:flex;justify-content:left;align-items:center;margin-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;width:100%;cursor:pointer}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;overflow:hidden}._icon_2qf2w_43{margin-right:10px;width:20px;box-sizing:border-box;display:inline-block}._numberIcon_2qf2w_50{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_2qf2w_54{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_2qf2w_58{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_2qf2w_62{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._sortIcon_2qf2w_66{position:absolute;right:0;width:24px;height:24px;background-repeat:no-repeat}._sortAscending_2qf2w_74._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyA3aDcuNjY3YS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTUuNzUgM2gtNS43NWEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjVoNS43NWEuNDkuNDkgMCAwMS40NzguNS40OS40OSAwIDAxLS40NzkuNXptLTUuNzUgM2gzLjgzM2EuNDkuNDkgMCAwMC40OC0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxM2EuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTAgM0g2LjIzYS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTEwLjU0MiAwYS40OS40OSAwIDAxLS40OC0uNXYtNC43OTNsLTIuMDU3IDIuMTQ3YS40NjUuNDY1IDAgMDEtLjY3OCAwIC41MTUuNTE1IDAgMDEwLS43MDhsMi44NjYtMi45OWEuNDY4LjQ2OCAwIDAxLjY5NiAwbDIuODY2IDIuOTlhLjUxNi41MTYgMCAwMTAgLjcwOC40NjUuNDY1IDAgMDEtLjY3OCAwbC0yLjA1Ni0yLjE0NlYxNS41YS40OS40OSAwIDAxLS40OC41eiIgZmlsbD0iIzVDNjM3MiIvPjwvc3ZnPgo=)}._sortAscending_2qf2w_74._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._sortAscending_2qf2w_74._caret_2qf2w_33:hover{transform:rotate(0)}._sortDescending_2qf2w_78._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._caret_2qf2w_33:hover{transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;flex-grow:1}._headerLabel_2qf2w_38,._headerLabel_2qf2w_38 *{overflow:hidden;text-overflow:ellipsis}._icon_t30x8_1{width:24px;height:24px;margin-right:5px;box-sizing:border-box;display:inline-block;background-repeat:no-repeat;flex-grow:0}._numberIcon_t30x8_11{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_t30x8_15{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_t30x8_19{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_t30x8_23{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._component_1rw9b_1{flex-grow:1;font-family:Open Sans}.csdk-drilldown-hierarchy-nested-menu-item .csdk-menu-item-content{position:relative;padding-left:13px}.csdk-drilldown-hierarchy-nested-menu-item .csdk-menu-item-content:before{top:2px;left:0;position:absolute;content:"";display:block;height:14px;width:1px;background:#c3c3c3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative;line-height:initial}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker-popper{z-index:1;line-height:0}.react-datepicker-popper .react-datepicker__triangle{stroke:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{fill:#f0f0f0;color:#f0f0f0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{fill:#fff;color:#fff}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}h2.react-datepicker__current-month{padding:0;margin:0}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,.react-datepicker__week-number--keyboard-selected):hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__week-number--selected{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__week-number--keyboard-selected{border-radius:.3rem;background-color:#2a87d0;color:#fff}.react-datepicker__week-number--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day-names{white-space:nowrap;margin-bottom:-8px}.react-datepicker__week{white-space:nowrap}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{position:relative;border-radius:.3rem;background-color:#ff6803;color:#fff}.react-datepicker__day--holidays .overlay,.react-datepicker__month-text--holidays .overlay,.react-datepicker__quarter-text--holidays .overlay,.react-datepicker__year-text--holidays .overlay{position:absolute;bottom:100%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__day--holidays:hover,.react-datepicker__month-text--holidays:hover,.react-datepicker__quarter-text--holidays:hover,.react-datepicker__year-text--holidays:hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .overlay,.react-datepicker__month-text--holidays:hover .overlay,.react-datepicker__quarter-text--holidays:hover .overlay,.react-datepicker__year-text--holidays:hover .overlay{visibility:visible;opacity:1}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__day--disabled .overlay,.react-datepicker__month-text--disabled .overlay,.react-datepicker__quarter-text--disabled .overlay,.react-datepicker__year-text--disabled .overlay{position:absolute;bottom:70%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem;box-sizing:content-box}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__close-icon--disabled{cursor:default}.react-datepicker__close-icon--disabled:after{cursor:default;background-color:#ccc}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();