@sisense/sdk-ui 1.27.1 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +50 -50
- package/dist/ai.js +909 -858
- package/dist/analytics-composer.cjs +49 -49
- package/dist/analytics-composer.js +374 -374
- package/dist/{derive-chart-family-DDkQybGb.cjs → derive-chart-family-BNu7PP-p.cjs} +42 -42
- package/dist/{derive-chart-family-H_RlUbXY.js → derive-chart-family-BYdyoe8O.js} +952 -950
- package/dist/index.cjs +55 -55
- package/dist/index.js +3676 -3620
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
- package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +12 -2
- package/dist/packages/sdk-ui/src/ai/chart/chart-insights.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/{get-nlg-query-result.d.ts → get-nlg-insights.d.ts} +21 -6
- package/dist/packages/sdk-ui/src/ai/index.d.ts +4 -3
- package/dist/packages/sdk-ui/src/ai/messages/insights-message.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/{use-get-nlg-query-result.d.ts → use-get-nlg-insights.d.ts} +17 -10
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +74 -0
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +8 -1
- package/dist/packages/sdk-ui/src/analytics-composer/common/stringify-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +17 -0
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +30 -1
- package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/custom-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +42 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +19 -35
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +0 -1
- package/dist/packages/sdk-ui/src/filters/components/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/members-reducer.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/hooks/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +77 -0
- package/dist/packages/sdk-ui/src/filters/index.d.ts +2 -6
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +9 -1
- package/dist/packages/sdk-ui/src/query/date-formats/apply-date-format.d.ts +1 -1
- package/dist/{useQuery-KI9icU5_.cjs → useQuery-7UcSPq8U.cjs} +125 -125
- package/dist/{useQuery-DOgANgSI.js → useQuery-CwqhrvKr.js} +101 -91
- package/dist/{widget-composer-ldmqMCC4.cjs → widget-composer-BvJFwTM1.cjs} +10 -8
- package/dist/{widget-composer-NNyD6tF2.js → widget-composer-CAmaQCTo.js} +155 -132
- package/package.json +7 -7
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-tile.d.ts +0 -24
package/dist/ai.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ut = Object.defineProperty, ht = Object.defineProperties;
|
|
2
|
+
var pt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ae = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var Be = 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, M = (e, t) => {
|
|
6
|
+
for (var o in t || (t = {}))
|
|
7
|
+
Be.call(t, o) && ye(e, o, t[o]);
|
|
8
8
|
if (ae)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var o of ae(t))
|
|
10
|
+
De.call(t, o) && ye(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, L = (e, t) => ht(e, pt(t));
|
|
13
|
+
var Pe = (e, t) => {
|
|
14
|
+
var o = {};
|
|
15
15
|
for (var r in e)
|
|
16
|
-
|
|
16
|
+
Be.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 &&
|
|
20
|
-
return
|
|
19
|
+
t.indexOf(r) < 0 && De.call(e, r) && (o[r] = e[r]);
|
|
20
|
+
return o;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var R = (e, t, o) => (ye(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
23
|
+
var V = (e, t, o) => new Promise((r, i) => {
|
|
24
24
|
var a = (l) => {
|
|
25
25
|
try {
|
|
26
|
-
c(
|
|
26
|
+
c(o.next(l));
|
|
27
27
|
} catch (d) {
|
|
28
28
|
i(d);
|
|
29
29
|
}
|
|
30
30
|
}, s = (l) => {
|
|
31
31
|
try {
|
|
32
|
-
c(
|
|
32
|
+
c(o.throw(l));
|
|
33
33
|
} catch (d) {
|
|
34
34
|
i(d);
|
|
35
35
|
}
|
|
36
36
|
}, c = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, s);
|
|
37
|
-
c((
|
|
37
|
+
c((o = o.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
|
-
import { k as
|
|
40
|
-
import { jsx as
|
|
41
|
-
import * as
|
|
42
|
-
import { createContext as
|
|
43
|
-
import { n as
|
|
44
|
-
import { t as
|
|
45
|
-
function
|
|
46
|
-
return
|
|
39
|
+
import { k as gt, j as Ct, s as ue, be as ft, bf as mt, o as Y, _ as j, bg as Ae, D as bt, bh as xt, l as yt, bi as vt, m as ve, P as f, p as wt, bj as kt, bk as St, bl as Mt, bm as Ze, bn as Lt, bo as te, bp as $t, bq as Tt, br as Rt, aQ as Et, M as Nt, aR as Ht, g as It, b2 as Q, T as he, an as u, ax as E, Z as m, av as ze, ar as Ft, bs as Bt, ay as Ge, bt as Dt, at as Pt, aq as ee, aA as qt, bu as Wt, bv as Ot, Y as $e, bw as At, aM as Zt } from "./useQuery-CwqhrvKr.js";
|
|
40
|
+
import { jsx as n, jsxs as g, Fragment as I } from "react/jsx-runtime";
|
|
41
|
+
import * as Z from "react";
|
|
42
|
+
import { createContext as Ve, useMemo as D, useContext as je, useCallback as T, useEffect as oe, useState as $, useRef as J, useLayoutEffect as ce, memo as zt, forwardRef as Gt, createElement as Vt } from "react";
|
|
43
|
+
import { n as jt, bc as Qt, ad as w, T as ke, u as Qe, V as Se, Z as Ut, bd as _t, q as Kt, r as Yt, b1 as Jt } from "./derive-chart-family-BYdyoe8O.js";
|
|
44
|
+
import { t as pe } from "./widget-composer-CAmaQCTo.js";
|
|
45
|
+
function Xt(e) {
|
|
46
|
+
return Ct("MuiDialog", e);
|
|
47
47
|
}
|
|
48
|
-
const
|
|
49
|
-
process.env.NODE_ENV !== "production" && (
|
|
50
|
-
const
|
|
48
|
+
const we = gt("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Ue = /* @__PURE__ */ Z.createContext({});
|
|
49
|
+
process.env.NODE_ENV !== "production" && (Ue.displayName = "DialogContext");
|
|
50
|
+
const e1 = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], t1 = ue(ft, {
|
|
51
51
|
name: "MuiDialog",
|
|
52
52
|
slot: "Backdrop",
|
|
53
53
|
overrides: (e, t) => t.backdrop
|
|
54
54
|
})({
|
|
55
55
|
// Improve scrollable dialog support.
|
|
56
56
|
zIndex: -1
|
|
57
|
-
}),
|
|
57
|
+
}), o1 = (e) => {
|
|
58
58
|
const {
|
|
59
59
|
classes: t,
|
|
60
|
-
scroll:
|
|
60
|
+
scroll: o,
|
|
61
61
|
maxWidth: r,
|
|
62
62
|
fullWidth: i,
|
|
63
63
|
fullScreen: a
|
|
64
64
|
} = e, s = {
|
|
65
65
|
root: ["root"],
|
|
66
|
-
container: ["container", `scroll${
|
|
67
|
-
paper: ["paper", `paperScroll${
|
|
66
|
+
container: ["container", `scroll${Y(o)}`],
|
|
67
|
+
paper: ["paper", `paperScroll${Y(o)}`, `paperWidth${Y(String(r))}`, i && "paperFullWidth", a && "paperFullScreen"]
|
|
68
68
|
};
|
|
69
|
-
return
|
|
70
|
-
},
|
|
69
|
+
return wt(s, Xt, t);
|
|
70
|
+
}, n1 = ue(mt, {
|
|
71
71
|
name: "MuiDialog",
|
|
72
72
|
slot: "Root",
|
|
73
73
|
overridesResolver: (e, t) => t.root
|
|
@@ -76,18 +76,18 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
76
76
|
// Use !important to override the Modal inline-style.
|
|
77
77
|
position: "absolute !important"
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), r1 = ue("div", {
|
|
80
80
|
name: "MuiDialog",
|
|
81
81
|
slot: "Container",
|
|
82
82
|
overridesResolver: (e, t) => {
|
|
83
83
|
const {
|
|
84
|
-
ownerState:
|
|
84
|
+
ownerState: o
|
|
85
85
|
} = e;
|
|
86
|
-
return [t.container, t[`scroll${
|
|
86
|
+
return [t.container, t[`scroll${Y(o.scroll)}`]];
|
|
87
87
|
}
|
|
88
88
|
})(({
|
|
89
89
|
ownerState: e
|
|
90
|
-
}) =>
|
|
90
|
+
}) => j({
|
|
91
91
|
height: "100%",
|
|
92
92
|
"@media print": {
|
|
93
93
|
height: "auto"
|
|
@@ -109,19 +109,19 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
109
109
|
height: "100%",
|
|
110
110
|
width: "0"
|
|
111
111
|
}
|
|
112
|
-
})),
|
|
112
|
+
})), i1 = ue(Ae, {
|
|
113
113
|
name: "MuiDialog",
|
|
114
114
|
slot: "Paper",
|
|
115
115
|
overridesResolver: (e, t) => {
|
|
116
116
|
const {
|
|
117
|
-
ownerState:
|
|
117
|
+
ownerState: o
|
|
118
118
|
} = e;
|
|
119
|
-
return [t.paper, t[`scrollPaper${
|
|
119
|
+
return [t.paper, t[`scrollPaper${Y(o.scroll)}`], t[`paperWidth${Y(String(o.maxWidth))}`], o.fullWidth && t.paperFullWidth, o.fullScreen && t.paperFullScreen];
|
|
120
120
|
}
|
|
121
121
|
})(({
|
|
122
122
|
theme: e,
|
|
123
123
|
ownerState: t
|
|
124
|
-
}) =>
|
|
124
|
+
}) => j({
|
|
125
125
|
margin: 32,
|
|
126
126
|
position: "relative",
|
|
127
127
|
overflowY: "auto",
|
|
@@ -143,14 +143,14 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
143
143
|
maxWidth: "calc(100% - 64px)"
|
|
144
144
|
}, t.maxWidth === "xs" && {
|
|
145
145
|
maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
|
|
146
|
-
[`&.${
|
|
146
|
+
[`&.${we.paperScrollBody}`]: {
|
|
147
147
|
[e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
148
148
|
maxWidth: "calc(100% - 64px)"
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}, t.maxWidth && t.maxWidth !== "xs" && {
|
|
152
152
|
maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
|
|
153
|
-
[`&.${
|
|
153
|
+
[`&.${we.paperScrollBody}`]: {
|
|
154
154
|
[e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 32 * 2)]: {
|
|
155
155
|
maxWidth: "calc(100% - 64px)"
|
|
156
156
|
}
|
|
@@ -164,15 +164,15 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
164
164
|
height: "100%",
|
|
165
165
|
maxHeight: "none",
|
|
166
166
|
borderRadius: 0,
|
|
167
|
-
[`&.${
|
|
167
|
+
[`&.${we.paperScrollBody}`]: {
|
|
168
168
|
margin: 0,
|
|
169
169
|
maxWidth: "100%"
|
|
170
170
|
}
|
|
171
|
-
})),
|
|
172
|
-
const r =
|
|
171
|
+
})), _e = /* @__PURE__ */ Z.forwardRef(function(t, o) {
|
|
172
|
+
const r = bt({
|
|
173
173
|
props: t,
|
|
174
174
|
name: "MuiDialog"
|
|
175
|
-
}), i =
|
|
175
|
+
}), i = xt(), a = {
|
|
176
176
|
enter: i.transitions.duration.enteringScreen,
|
|
177
177
|
exit: i.transitions.duration.leavingScreen
|
|
178
178
|
}, {
|
|
@@ -181,74 +181,74 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
181
181
|
BackdropComponent: l,
|
|
182
182
|
BackdropProps: d,
|
|
183
183
|
children: p,
|
|
184
|
-
className:
|
|
185
|
-
disableEscapeKeyDown:
|
|
186
|
-
fullScreen:
|
|
187
|
-
fullWidth:
|
|
188
|
-
maxWidth:
|
|
189
|
-
onBackdropClick:
|
|
184
|
+
className: C,
|
|
185
|
+
disableEscapeKeyDown: h = !1,
|
|
186
|
+
fullScreen: b = !1,
|
|
187
|
+
fullWidth: v = !1,
|
|
188
|
+
maxWidth: S = "sm",
|
|
189
|
+
onBackdropClick: x,
|
|
190
190
|
onClick: O,
|
|
191
|
-
onClose:
|
|
192
|
-
open:
|
|
193
|
-
PaperComponent:
|
|
194
|
-
PaperProps:
|
|
195
|
-
scroll:
|
|
196
|
-
TransitionComponent:
|
|
197
|
-
transitionDuration:
|
|
198
|
-
TransitionProps:
|
|
199
|
-
} = r,
|
|
200
|
-
disableEscapeKeyDown:
|
|
201
|
-
fullScreen:
|
|
202
|
-
fullWidth:
|
|
203
|
-
maxWidth:
|
|
204
|
-
scroll:
|
|
205
|
-
}),
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
O && O(
|
|
209
|
-
},
|
|
210
|
-
titleId:
|
|
211
|
-
}), [
|
|
212
|
-
return /* @__PURE__ */
|
|
213
|
-
className:
|
|
191
|
+
onClose: N,
|
|
192
|
+
open: k,
|
|
193
|
+
PaperComponent: q = Ae,
|
|
194
|
+
PaperProps: F = {},
|
|
195
|
+
scroll: B = "paper",
|
|
196
|
+
TransitionComponent: G = kt,
|
|
197
|
+
transitionDuration: se = a,
|
|
198
|
+
TransitionProps: fe
|
|
199
|
+
} = r, X = yt(r, e1), U = j({}, r, {
|
|
200
|
+
disableEscapeKeyDown: h,
|
|
201
|
+
fullScreen: b,
|
|
202
|
+
fullWidth: v,
|
|
203
|
+
maxWidth: S,
|
|
204
|
+
scroll: B
|
|
205
|
+
}), H = o1(U), _ = Z.useRef(), me = (y) => {
|
|
206
|
+
_.current = y.target === y.currentTarget;
|
|
207
|
+
}, be = (y) => {
|
|
208
|
+
O && O(y), _.current && (_.current = null, x && x(y), N && N(y, "backdropClick"));
|
|
209
|
+
}, K = vt(c), xe = Z.useMemo(() => ({
|
|
210
|
+
titleId: K
|
|
211
|
+
}), [K]);
|
|
212
|
+
return /* @__PURE__ */ n(n1, j({
|
|
213
|
+
className: ve(H.root, C),
|
|
214
214
|
closeAfterTransition: !0,
|
|
215
215
|
components: {
|
|
216
|
-
Backdrop:
|
|
216
|
+
Backdrop: t1
|
|
217
217
|
},
|
|
218
218
|
componentsProps: {
|
|
219
|
-
backdrop:
|
|
220
|
-
transitionDuration:
|
|
219
|
+
backdrop: j({
|
|
220
|
+
transitionDuration: se,
|
|
221
221
|
as: l
|
|
222
222
|
}, d)
|
|
223
223
|
},
|
|
224
|
-
disableEscapeKeyDown:
|
|
225
|
-
onClose:
|
|
226
|
-
open:
|
|
227
|
-
ref:
|
|
228
|
-
onClick:
|
|
229
|
-
ownerState:
|
|
230
|
-
},
|
|
231
|
-
children: /* @__PURE__ */
|
|
224
|
+
disableEscapeKeyDown: h,
|
|
225
|
+
onClose: N,
|
|
226
|
+
open: k,
|
|
227
|
+
ref: o,
|
|
228
|
+
onClick: be,
|
|
229
|
+
ownerState: U
|
|
230
|
+
}, X, {
|
|
231
|
+
children: /* @__PURE__ */ n(G, j({
|
|
232
232
|
appear: !0,
|
|
233
|
-
in:
|
|
234
|
-
timeout:
|
|
233
|
+
in: k,
|
|
234
|
+
timeout: se,
|
|
235
235
|
role: "presentation"
|
|
236
|
-
},
|
|
237
|
-
children: /* @__PURE__ */
|
|
238
|
-
className:
|
|
239
|
-
onMouseDown:
|
|
240
|
-
ownerState:
|
|
241
|
-
children: /* @__PURE__ */
|
|
242
|
-
as:
|
|
236
|
+
}, fe, {
|
|
237
|
+
children: /* @__PURE__ */ n(r1, {
|
|
238
|
+
className: ve(H.container),
|
|
239
|
+
onMouseDown: me,
|
|
240
|
+
ownerState: U,
|
|
241
|
+
children: /* @__PURE__ */ n(i1, j({
|
|
242
|
+
as: q,
|
|
243
243
|
elevation: 24,
|
|
244
244
|
role: "dialog",
|
|
245
245
|
"aria-describedby": s,
|
|
246
|
-
"aria-labelledby":
|
|
247
|
-
},
|
|
248
|
-
className:
|
|
249
|
-
ownerState:
|
|
250
|
-
children: /* @__PURE__ */
|
|
251
|
-
value:
|
|
246
|
+
"aria-labelledby": K
|
|
247
|
+
}, F, {
|
|
248
|
+
className: ve(H.paper, F.className),
|
|
249
|
+
ownerState: U,
|
|
250
|
+
children: /* @__PURE__ */ n(Ue.Provider, {
|
|
251
|
+
value: xe,
|
|
252
252
|
children: p
|
|
253
253
|
})
|
|
254
254
|
}))
|
|
@@ -256,7 +256,7 @@ const Kt = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
256
256
|
}))
|
|
257
257
|
}));
|
|
258
258
|
});
|
|
259
|
-
process.env.NODE_ENV !== "production" && (
|
|
259
|
+
process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
260
260
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
261
261
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
262
262
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -388,21 +388,21 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
388
388
|
*/
|
|
389
389
|
TransitionProps: f.object
|
|
390
390
|
});
|
|
391
|
-
class
|
|
392
|
-
constructor(t,
|
|
393
|
-
super(), this.client = t, this.setOptions(
|
|
391
|
+
class s1 extends St {
|
|
392
|
+
constructor(t, o) {
|
|
393
|
+
super(), this.client = t, this.setOptions(o), this.bindMethods(), this.updateResult();
|
|
394
394
|
}
|
|
395
395
|
bindMethods() {
|
|
396
396
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
397
397
|
}
|
|
398
398
|
setOptions(t) {
|
|
399
|
-
var
|
|
399
|
+
var o;
|
|
400
400
|
const r = this.options;
|
|
401
|
-
this.options = this.client.defaultMutationOptions(t),
|
|
401
|
+
this.options = this.client.defaultMutationOptions(t), Mt(r, this.options) || this.client.getMutationCache().notify({
|
|
402
402
|
type: "observerOptionsUpdated",
|
|
403
403
|
mutation: this.currentMutation,
|
|
404
404
|
observer: this
|
|
405
|
-
}), (
|
|
405
|
+
}), (o = this.currentMutation) == null || o.setOptions(this.options);
|
|
406
406
|
}
|
|
407
407
|
onUnsubscribe() {
|
|
408
408
|
if (!this.hasListeners()) {
|
|
@@ -412,10 +412,10 @@ class o1 extends wt {
|
|
|
412
412
|
}
|
|
413
413
|
onMutationUpdate(t) {
|
|
414
414
|
this.updateResult();
|
|
415
|
-
const
|
|
415
|
+
const o = {
|
|
416
416
|
listeners: !0
|
|
417
417
|
};
|
|
418
|
-
t.type === "success" ?
|
|
418
|
+
t.type === "success" ? o.onSuccess = !0 : t.type === "error" && (o.onError = !0), this.notify(o);
|
|
419
419
|
}
|
|
420
420
|
getCurrentResult() {
|
|
421
421
|
return this.currentResult;
|
|
@@ -425,13 +425,13 @@ class o1 extends wt {
|
|
|
425
425
|
listeners: !0
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
mutate(t,
|
|
429
|
-
return this.mutateOptions =
|
|
428
|
+
mutate(t, o) {
|
|
429
|
+
return this.mutateOptions = o, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, L(M({}, this.options), {
|
|
430
430
|
variables: typeof t != "undefined" ? t : this.options.variables
|
|
431
431
|
})), this.currentMutation.addObserver(this), this.currentMutation.execute();
|
|
432
432
|
}
|
|
433
433
|
updateResult() {
|
|
434
|
-
const t = this.currentMutation ? this.currentMutation.state :
|
|
434
|
+
const t = this.currentMutation ? this.currentMutation.state : Lt(), o = L(M({}, t), {
|
|
435
435
|
isLoading: t.status === "loading",
|
|
436
436
|
isSuccess: t.status === "success",
|
|
437
437
|
isError: t.status === "error",
|
|
@@ -439,14 +439,14 @@ class o1 extends wt {
|
|
|
439
439
|
mutate: this.mutate,
|
|
440
440
|
reset: this.reset
|
|
441
441
|
});
|
|
442
|
-
this.currentResult =
|
|
442
|
+
this.currentResult = o;
|
|
443
443
|
}
|
|
444
444
|
notify(t) {
|
|
445
|
-
|
|
445
|
+
Ze.batch(() => {
|
|
446
446
|
if (this.mutateOptions && this.hasListeners()) {
|
|
447
447
|
if (t.onSuccess) {
|
|
448
|
-
var
|
|
449
|
-
(
|
|
448
|
+
var o, r, i, a;
|
|
449
|
+
(o = (r = this.mutateOptions).onSuccess) == null || o.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);
|
|
450
450
|
} else if (t.onError) {
|
|
451
451
|
var s, c, l, d;
|
|
452
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);
|
|
@@ -460,56 +460,58 @@ class o1 extends wt {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
const r =
|
|
463
|
+
function Te(e, t, o) {
|
|
464
|
+
const r = Rt(e, t), i = te({
|
|
465
465
|
context: r.context
|
|
466
|
-
}), [a] =
|
|
467
|
-
|
|
466
|
+
}), [a] = Z.useState(() => new s1(i, r));
|
|
467
|
+
Z.useEffect(() => {
|
|
468
468
|
a.setOptions(r);
|
|
469
469
|
}, [a, r]);
|
|
470
|
-
const s =
|
|
471
|
-
a.mutate(l, d).catch(
|
|
470
|
+
const s = $t(Z.useCallback((l) => a.subscribe(Ze.batchCalls(l)), [a]), () => a.getCurrentResult(), () => a.getCurrentResult()), c = Z.useCallback((l, d) => {
|
|
471
|
+
a.mutate(l, d).catch(a1);
|
|
472
472
|
}, [a]);
|
|
473
|
-
if (s.error &&
|
|
473
|
+
if (s.error && Tt(a.options.useErrorBoundary, [s.error]))
|
|
474
474
|
throw s.error;
|
|
475
|
-
return
|
|
475
|
+
return L(M({}, s), {
|
|
476
476
|
mutate: c,
|
|
477
477
|
mutateAsync: s.mutate
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function a1() {
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class l1 {
|
|
483
483
|
constructor(t) {
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
R(this, "httpClient");
|
|
485
|
+
R(this, "getChatContexts", () => V(this, null, function* () {
|
|
486
486
|
return (yield this.httpClient.get("api/datasources//")) || [];
|
|
487
487
|
}));
|
|
488
488
|
// ==== /v2/ai endpoints ====
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
`api/v2/ai/recommendations/query/${t}/${
|
|
489
|
+
R(this, "getNlgInsights", (t) => this.httpClient.post("api/v2/ai/nlg/queryResult", t));
|
|
490
|
+
R(this, "getQueryRecommendations", (t, o) => this.httpClient.get(
|
|
491
|
+
`api/v2/ai/recommendations/query/${t}/${o.numOfRecommendations}`
|
|
492
492
|
));
|
|
493
|
-
|
|
494
|
-
|
|
493
|
+
R(this, "getNlqResult", (t, o) => this.httpClient.post(`api/v2/ai/nlq/query/${t}`, o));
|
|
494
|
+
R(this, "setLlmConfig", (t) => this.httpClient.post("api/v2/settings/ai/llmProvider", t).catch((o) => {
|
|
495
|
+
console.error("Unable to set llm config", o);
|
|
495
496
|
}));
|
|
496
497
|
// ==== /v2/ai/chats endpoints ====
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
498
|
+
R(this, "getAllChats", () => this.httpClient.get("api/v2/ai/chats"));
|
|
499
|
+
R(this, "getChatById", (t) => this.httpClient.get(`api/v2/ai/chats/${t}`));
|
|
500
|
+
R(this, "createChat", (t) => this.httpClient.post("api/v2/ai/chats", { sourceId: t }));
|
|
501
|
+
R(this, "postChat", (t, o) => this.httpClient.post(`api/v2/ai/chats/${t}`, o));
|
|
502
|
+
R(this, "deleteChatHistory", (t) => this.httpClient.delete(`api/v2/ai/chats/${t}/history`));
|
|
503
|
+
R(this, "sendFeedback", (t) => this.httpClient.post("api/v2/ai/feedback", t));
|
|
503
504
|
// ==== misc endpoints ====
|
|
504
|
-
|
|
505
|
+
R(this, "getDataSourceFields", (t) => this.httpClient.post(
|
|
505
506
|
`api/datasources/${encodeURIComponent(t)}/fields/search`,
|
|
506
507
|
{
|
|
507
508
|
offset: 0,
|
|
508
509
|
count: 9999
|
|
509
510
|
}
|
|
510
511
|
));
|
|
511
|
-
|
|
512
|
-
|
|
512
|
+
R(this, "ai", {
|
|
513
|
+
getNlgInsights: this.getNlgInsights,
|
|
514
|
+
getNlqResult: this.getNlqResult,
|
|
513
515
|
getQueryRecommendations: this.getQueryRecommendations,
|
|
514
516
|
setLlmConfig: this.setLlmConfig,
|
|
515
517
|
sendFeedback: this.sendFeedback,
|
|
@@ -525,51 +527,51 @@ class r1 {
|
|
|
525
527
|
this.httpClient = t;
|
|
526
528
|
}
|
|
527
529
|
}
|
|
528
|
-
const
|
|
530
|
+
const c1 = new Et({
|
|
529
531
|
defaultOptions: {
|
|
530
532
|
queries: {
|
|
531
533
|
refetchOnWindowFocus: !1,
|
|
532
534
|
refetchOnMount: !1
|
|
533
535
|
}
|
|
534
536
|
}
|
|
535
|
-
}),
|
|
536
|
-
const { app: t } =
|
|
537
|
-
return /* @__PURE__ */
|
|
537
|
+
}), Ke = Ve(void 0), P = () => je(Ke), d1 = ({ children: e }) => {
|
|
538
|
+
const { app: t } = Nt(), o = D(() => t ? new l1(t.httpClient) : void 0, [t]);
|
|
539
|
+
return /* @__PURE__ */ n(Ke.Provider, { value: o, children: /* @__PURE__ */ n(Ht, { client: c1, children: e }) });
|
|
538
540
|
};
|
|
539
|
-
function
|
|
540
|
-
return /* @__PURE__ */
|
|
541
|
+
function kn({ children: e }) {
|
|
542
|
+
return /* @__PURE__ */ n(d1, { children: e });
|
|
541
543
|
}
|
|
542
|
-
const
|
|
543
|
-
const
|
|
544
|
-
var p,
|
|
544
|
+
const ne = (e, t = !0) => {
|
|
545
|
+
const o = D(() => {
|
|
546
|
+
var p, C;
|
|
545
547
|
if ("jaql" in e)
|
|
546
548
|
return e;
|
|
547
549
|
{
|
|
548
|
-
const
|
|
550
|
+
const h = Qt(e.dataSource), { filters: b = [], relations: v } = jt(e.filters), { metadata: S, filterRelations: x } = It(
|
|
549
551
|
{
|
|
550
552
|
dataSource: e.dataSource,
|
|
551
553
|
attributes: (p = e.dimensions) != null ? p : [],
|
|
552
|
-
measures: (
|
|
553
|
-
filters:
|
|
554
|
-
filterRelations:
|
|
554
|
+
measures: (C = e.measures) != null ? C : [],
|
|
555
|
+
filters: b,
|
|
556
|
+
filterRelations: v,
|
|
555
557
|
highlights: []
|
|
556
558
|
},
|
|
557
559
|
!0
|
|
558
560
|
);
|
|
559
561
|
return {
|
|
560
562
|
jaql: {
|
|
561
|
-
datasource:
|
|
562
|
-
metadata:
|
|
563
|
-
filterRelations:
|
|
563
|
+
datasource: h,
|
|
564
|
+
metadata: S,
|
|
565
|
+
filterRelations: x
|
|
564
566
|
}
|
|
565
567
|
};
|
|
566
568
|
}
|
|
567
|
-
}, [e]), r =
|
|
568
|
-
queryKey: ["
|
|
569
|
-
queryFn: () => r == null ? void 0 : r.ai.
|
|
569
|
+
}, [e]), r = P(), { data: i, error: a, isError: s, isLoading: c, isSuccess: l, refetch: d } = Q({
|
|
570
|
+
queryKey: ["getNlgInsights", o, r],
|
|
571
|
+
queryFn: () => r == null ? void 0 : r.ai.getNlgInsights(o),
|
|
570
572
|
select: (p) => {
|
|
571
|
-
var
|
|
572
|
-
return (
|
|
573
|
+
var C;
|
|
574
|
+
return (C = p == null ? void 0 : p.data) == null ? void 0 : C.answer;
|
|
573
575
|
},
|
|
574
576
|
enabled: !!r && t
|
|
575
577
|
});
|
|
@@ -579,69 +581,105 @@ const he = (e, t = !0) => {
|
|
|
579
581
|
isSuccess: l,
|
|
580
582
|
data: i,
|
|
581
583
|
error: a,
|
|
582
|
-
refetch:
|
|
584
|
+
refetch: T(() => {
|
|
583
585
|
d();
|
|
584
586
|
}, [d])
|
|
585
587
|
};
|
|
586
|
-
},
|
|
587
|
-
const r = e, { enabled: t } = r,
|
|
588
|
-
return
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
),
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
588
|
+
}, Ye = (e) => {
|
|
589
|
+
const r = e, { enabled: t } = r, o = Pe(r, ["enabled"]);
|
|
590
|
+
return ne(o, t);
|
|
591
|
+
}, Sn = he("useGetNlgInsights")(
|
|
592
|
+
Ye
|
|
593
|
+
), Mn = he("useGetNlgQueryResult")(
|
|
594
|
+
Ye
|
|
595
|
+
), u1 = [
|
|
596
|
+
"indicator",
|
|
597
|
+
"column",
|
|
598
|
+
"line",
|
|
599
|
+
"table",
|
|
600
|
+
"pie",
|
|
601
|
+
"bar"
|
|
602
|
+
], h1 = (e) => {
|
|
603
|
+
const { dataSource: t, query: o, chartTypes: r } = e, i = typeof t == "string" ? t : t.title, a = P(), { isLoading: s, isError: c, isSuccess: l, data: d, error: p, refetch: C } = Q({
|
|
604
|
+
queryKey: ["getNlqResult", t, o, r, a],
|
|
605
|
+
queryFn: () => a == null ? void 0 : a.ai.getNlqResult(i, {
|
|
606
|
+
text: o,
|
|
607
|
+
// Per @Einat Shusterman: Timezone is not used by AI API, but it is currently required by the endpoint
|
|
608
|
+
timezone: "UTC",
|
|
609
|
+
chartTypes: r != null ? r : [...u1]
|
|
610
|
+
}),
|
|
611
|
+
enabled: !!a && e.enabled
|
|
612
|
+
}), h = d ? pe(d, {
|
|
613
|
+
useCustomizedStyleOptions: e.enableAxisTitlesInWidgetProps || !1
|
|
614
|
+
}) : void 0;
|
|
615
|
+
return {
|
|
616
|
+
isLoading: s,
|
|
617
|
+
isError: c,
|
|
618
|
+
isSuccess: l,
|
|
619
|
+
data: h,
|
|
620
|
+
error: p,
|
|
621
|
+
refetch: T(() => {
|
|
622
|
+
C();
|
|
623
|
+
}, [C])
|
|
624
|
+
};
|
|
625
|
+
}, Ln = he("useGetNlqResult")(h1), Je = (e) => {
|
|
626
|
+
const { contextTitle: t, count: o, enableAxisTitlesInWidgetProps: r } = e, i = P(), a = o != null ? o : 4, s = a > 0, { isLoading: c, isError: l, isSuccess: d, data: p, error: C, refetch: h } = Q({
|
|
627
|
+
queryKey: ["getQueryRecommendations", t, a, i],
|
|
628
|
+
queryFn: () => i == null ? void 0 : i.ai.getQueryRecommendations(t, {
|
|
611
629
|
numOfRecommendations: a
|
|
612
630
|
}),
|
|
613
|
-
enabled: !!
|
|
631
|
+
enabled: !!i && s
|
|
614
632
|
});
|
|
615
|
-
return {
|
|
633
|
+
return p == null || p.map((b) => {
|
|
634
|
+
b.widgetProps = b.jaql ? pe(b, {
|
|
635
|
+
useCustomizedStyleOptions: r
|
|
636
|
+
}) : void 0;
|
|
637
|
+
}), {
|
|
616
638
|
isLoading: s ? c : !1,
|
|
617
639
|
isError: s ? l : !1,
|
|
618
640
|
isSuccess: s ? d : !1,
|
|
619
641
|
data: s && p ? p : [],
|
|
620
|
-
error: s ?
|
|
621
|
-
refetch:
|
|
622
|
-
s &&
|
|
623
|
-
}, [
|
|
642
|
+
error: s ? C : null,
|
|
643
|
+
refetch: T(() => {
|
|
644
|
+
s && h();
|
|
645
|
+
}, [h, s])
|
|
624
646
|
};
|
|
625
|
-
},
|
|
647
|
+
}, $n = he("useGetQueryRecommendations")(
|
|
626
648
|
Je
|
|
627
|
-
),
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
649
|
+
), Xe = Object.freeze({
|
|
650
|
+
enableFollowupQuestions: !1,
|
|
651
|
+
enableHeader: !0,
|
|
652
|
+
enableInsights: !0,
|
|
653
|
+
numOfRecommendations: 4,
|
|
654
|
+
numOfRecentPrompts: 5
|
|
655
|
+
}), et = Ve(M({}, Xe)), W = () => je(et), p1 = ({ children: e, value: t }) => {
|
|
656
|
+
const { t: o } = w(), r = Object.entries(t).reduce(
|
|
657
|
+
(i, [a, s]) => (s !== void 0 && (i[a] = s), i),
|
|
658
|
+
L(M({}, Xe), {
|
|
659
|
+
inputPromptText: o("ai.config.inputPromptText"),
|
|
660
|
+
welcomeText: o("ai.config.welcomeText"),
|
|
661
|
+
suggestionsWelcomeText: o("ai.config.suggestionsWelcomeText")
|
|
662
|
+
})
|
|
663
|
+
);
|
|
664
|
+
return /* @__PURE__ */ n(et.Provider, { value: r, children: e });
|
|
665
|
+
}, Re = "chatHistory", g1 = (e) => {
|
|
666
|
+
const t = P(), { hideHistory: o } = W();
|
|
667
|
+
return Q({
|
|
668
|
+
queryKey: [Re, e, t],
|
|
669
|
+
queryFn: () => V(void 0, null, function* () {
|
|
632
670
|
if (!t || !e)
|
|
633
671
|
return;
|
|
634
|
-
if (
|
|
672
|
+
if (o)
|
|
635
673
|
return [];
|
|
636
674
|
const r = yield t.ai.chat.getById(e);
|
|
637
675
|
return r == null ? void 0 : r.chatHistory;
|
|
638
676
|
}),
|
|
639
677
|
enabled: !!t && !!e
|
|
640
678
|
});
|
|
641
|
-
},
|
|
642
|
-
const t =
|
|
643
|
-
return
|
|
644
|
-
mutationFn: () =>
|
|
679
|
+
}, tt = (e) => {
|
|
680
|
+
const t = P(), o = te();
|
|
681
|
+
return Te({
|
|
682
|
+
mutationFn: () => V(void 0, null, function* () {
|
|
645
683
|
if (!(!t || !e))
|
|
646
684
|
return t.ai.chat.clearHistory(e);
|
|
647
685
|
}),
|
|
@@ -649,50 +687,50 @@ const he = (e, t = !0) => {
|
|
|
649
687
|
console.error("Error when clearing history:", r);
|
|
650
688
|
},
|
|
651
689
|
onSettled: () => {
|
|
652
|
-
e &&
|
|
690
|
+
e && o.setQueriesData([Re, e], []);
|
|
653
691
|
}
|
|
654
692
|
});
|
|
655
|
-
},
|
|
656
|
-
const { data: t, isLoading:
|
|
657
|
-
return
|
|
693
|
+
}, ot = (e) => {
|
|
694
|
+
const { data: t, isLoading: o, isError: r } = g1(e), { mutate: i } = tt(e);
|
|
695
|
+
return oe(() => {
|
|
658
696
|
r && i();
|
|
659
697
|
}, [r, i]), {
|
|
660
698
|
history: t,
|
|
661
|
-
isLoading:
|
|
699
|
+
isLoading: o,
|
|
662
700
|
isError: r
|
|
663
701
|
};
|
|
664
|
-
},
|
|
665
|
-
const e =
|
|
702
|
+
}, nt = () => {
|
|
703
|
+
const e = P(), { data: t, isLoading: o, fetchStatus: r } = Q({
|
|
666
704
|
queryKey: ["getDataTopics", e],
|
|
667
|
-
queryFn: () =>
|
|
705
|
+
queryFn: () => V(void 0, null, function* () {
|
|
668
706
|
if (e)
|
|
669
707
|
return e.getChatContexts();
|
|
670
708
|
}),
|
|
671
709
|
enabled: !!e
|
|
672
710
|
});
|
|
673
|
-
return { data: t, isLoading:
|
|
674
|
-
},
|
|
675
|
-
const e =
|
|
711
|
+
return { data: t, isLoading: o, fetchStatus: r };
|
|
712
|
+
}, rt = () => {
|
|
713
|
+
const e = P(), { data: t, isLoading: o } = Q({
|
|
676
714
|
queryKey: ["getAllChats", e],
|
|
677
715
|
queryFn: () => e == null ? void 0 : e.ai.chat.getAll(),
|
|
678
716
|
enabled: !!e
|
|
679
717
|
});
|
|
680
718
|
return {
|
|
681
719
|
data: t != null ? t : [],
|
|
682
|
-
isLoading:
|
|
720
|
+
isLoading: o
|
|
683
721
|
};
|
|
684
|
-
},
|
|
685
|
-
const
|
|
686
|
-
mutationFn: () =>
|
|
722
|
+
}, C1 = (e, t) => {
|
|
723
|
+
const o = te(), r = P(), i = Te({
|
|
724
|
+
mutationFn: () => V(void 0, null, function* () {
|
|
687
725
|
if (!(!r || !e))
|
|
688
726
|
return r.ai.chat.create(e);
|
|
689
727
|
}),
|
|
690
|
-
onSuccess: () =>
|
|
728
|
+
onSuccess: () => o.invalidateQueries(["getAllChats"])
|
|
691
729
|
});
|
|
692
|
-
return
|
|
730
|
+
return oe(() => {
|
|
693
731
|
t && i.isIdle && i.mutate();
|
|
694
732
|
}, [t, i]), i;
|
|
695
|
-
},
|
|
733
|
+
}, f1 = (e, t) => {
|
|
696
734
|
switch (e.responseType = e.responseType.toLowerCase(), e.responseType) {
|
|
697
735
|
case "nlq":
|
|
698
736
|
return {
|
|
@@ -709,28 +747,28 @@ const he = (e, t = !0) => {
|
|
|
709
747
|
default:
|
|
710
748
|
throw Error(`${t}${JSON.stringify(e)}`);
|
|
711
749
|
}
|
|
712
|
-
},
|
|
713
|
-
const
|
|
750
|
+
}, m1 = (e, t) => {
|
|
751
|
+
const o = te(), r = T(
|
|
714
752
|
(l) => {
|
|
715
|
-
e &&
|
|
753
|
+
e && o.setQueriesData([Re, e], (d) => d && [...d, l]);
|
|
716
754
|
},
|
|
717
|
-
[
|
|
718
|
-
), {
|
|
719
|
-
mutationFn: (l) =>
|
|
755
|
+
[o, e]
|
|
756
|
+
), { t: i } = w(), a = P(), { mutate: s, isLoading: c } = Te({
|
|
757
|
+
mutationFn: (l) => V(void 0, null, function* () {
|
|
720
758
|
if (!(!a || !e))
|
|
721
759
|
return a.ai.chat.post(e, {
|
|
722
760
|
text: l,
|
|
723
|
-
options: { enableFollowup:
|
|
761
|
+
options: { enableFollowup: t }
|
|
724
762
|
});
|
|
725
763
|
}),
|
|
726
764
|
onMutate: (l) => {
|
|
727
|
-
|
|
765
|
+
r({
|
|
728
766
|
content: l,
|
|
729
767
|
role: "user"
|
|
730
768
|
});
|
|
731
769
|
},
|
|
732
770
|
onError: (l) => {
|
|
733
|
-
l instanceof Error && (console.error("Error when sending message:", l.message),
|
|
771
|
+
l instanceof Error && (console.error("Error when sending message:", l.message), r({
|
|
734
772
|
content: i("errors.unexpectedChatResponse"),
|
|
735
773
|
role: "assistant"
|
|
736
774
|
}));
|
|
@@ -739,61 +777,64 @@ const he = (e, t = !0) => {
|
|
|
739
777
|
if (!l)
|
|
740
778
|
return;
|
|
741
779
|
const d = i("ai.errors.unknownResponse");
|
|
742
|
-
|
|
780
|
+
r(f1(l, d));
|
|
743
781
|
}
|
|
744
782
|
});
|
|
745
783
|
return { mutate: s, isLoading: c };
|
|
746
|
-
},
|
|
747
|
-
var
|
|
748
|
-
const { t } =
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
), { history:
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}, [
|
|
755
|
-
const { mutate:
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
784
|
+
}, Ee = (e) => !!e && "type" in e && e.type === "nlq", b1 = (e) => !!e && "type" in e && e.type === "text", x1 = (e) => {
|
|
785
|
+
var q, F;
|
|
786
|
+
const { t } = w(), { enableFollowupQuestions: o } = W(), { data: r, isLoading: i } = nt(), { data: a, isLoading: s } = rt(), c = (q = r == null ? void 0 : r.find((B) => B.title === e)) == null ? void 0 : q.title, l = (F = a.find((B) => B.contextTitle === c)) == null ? void 0 : F.chatId, d = i || !!c, p = s || !!l, [C, h] = $(null), { isError: b } = C1(
|
|
787
|
+
c,
|
|
788
|
+
d && !p
|
|
789
|
+
), { history: v, isLoading: S, isError: x } = ot(l);
|
|
790
|
+
oe(() => {
|
|
791
|
+
b ? h(new ke("ai.errors.chatUnavailable")) : x && h(new ke("ai.errors.fetchHistory"));
|
|
792
|
+
}, [b, x, t]);
|
|
793
|
+
const { mutate: O, isLoading: N } = m1(
|
|
794
|
+
l,
|
|
795
|
+
o
|
|
796
|
+
), k = D(() => {
|
|
797
|
+
if (v != null && v.length) {
|
|
798
|
+
const B = v[v.length - 1];
|
|
799
|
+
if (Ee(B))
|
|
800
|
+
return JSON.parse(B.content);
|
|
760
801
|
}
|
|
761
802
|
return null;
|
|
762
|
-
}, [
|
|
803
|
+
}, [v]);
|
|
763
804
|
return {
|
|
764
|
-
chatId:
|
|
765
|
-
history:
|
|
766
|
-
lastNlqResponse:
|
|
767
|
-
sendMessage:
|
|
768
|
-
isAwaitingResponse:
|
|
769
|
-
isLoading:
|
|
770
|
-
lastError:
|
|
805
|
+
chatId: l,
|
|
806
|
+
history: v != null ? v : [],
|
|
807
|
+
lastNlqResponse: k,
|
|
808
|
+
sendMessage: O,
|
|
809
|
+
isAwaitingResponse: N,
|
|
810
|
+
isLoading: S,
|
|
811
|
+
lastError: C
|
|
771
812
|
};
|
|
772
|
-
},
|
|
813
|
+
}, Tn = ({
|
|
773
814
|
contextTitle: e
|
|
774
815
|
}) => {
|
|
775
816
|
var i;
|
|
776
|
-
const { data: t } =
|
|
777
|
-
return
|
|
817
|
+
const { data: t } = rt(), o = (i = t.find((a) => a.contextTitle === e)) == null ? void 0 : i.chatId, { history: r } = ot(o);
|
|
818
|
+
return D(() => {
|
|
778
819
|
if (r != null && r.length) {
|
|
779
820
|
const a = r[r.length - 1];
|
|
780
|
-
if (
|
|
821
|
+
if (Ee(a))
|
|
781
822
|
return JSON.parse(a.content);
|
|
782
823
|
}
|
|
783
824
|
return null;
|
|
784
825
|
}, [r]);
|
|
785
|
-
},
|
|
786
|
-
const t =
|
|
826
|
+
}, Rn = (e) => {
|
|
827
|
+
const t = P(), { data: o, isLoading: r } = Q({
|
|
787
828
|
queryKey: ["getDataSourceFields", e, t],
|
|
788
829
|
queryFn: () => e ? t == null ? void 0 : t.ai.getDataSourceFields(e) : void 0,
|
|
789
830
|
select: (i) => i,
|
|
790
831
|
enabled: !!t && !!e
|
|
791
832
|
});
|
|
792
833
|
return {
|
|
793
|
-
data:
|
|
834
|
+
data: o,
|
|
794
835
|
isLoading: r
|
|
795
836
|
};
|
|
796
|
-
},
|
|
837
|
+
}, y1 = 500, v1 = 500, w1 = 500, k1 = 900, S1 = u.div`
|
|
797
838
|
box-sizing: border-box;
|
|
798
839
|
position: relative;
|
|
799
840
|
display: flex;
|
|
@@ -803,22 +844,22 @@ const he = (e, t = !0) => {
|
|
|
803
844
|
background-color: ${({ theme: e }) => e.aiChat.backgroundColor};
|
|
804
845
|
overflow: hidden;
|
|
805
846
|
|
|
806
|
-
min-width: ${
|
|
807
|
-
min-height: ${
|
|
808
|
-
width: ${({ width: e }) => e ?
|
|
809
|
-
height: ${({ height: e }) => e ?
|
|
847
|
+
min-width: ${y1}px;
|
|
848
|
+
min-height: ${v1}px;
|
|
849
|
+
width: ${({ width: e }) => e ? qe(e) : `${w1}px`};
|
|
850
|
+
height: ${({ height: e }) => e ? qe(e) : `${k1}px`};
|
|
810
851
|
|
|
811
|
-
${({ theme: e }) =>
|
|
852
|
+
${({ theme: e }) => E`
|
|
812
853
|
font-size: ${e.aiChat.primaryFontSize[0]};
|
|
813
854
|
line-height: ${e.aiChat.primaryFontSize[1]};
|
|
814
855
|
`}
|
|
815
856
|
border: ${({ theme: e }) => e.aiChat.border === !1 ? "none" : e.aiChat.border};
|
|
816
857
|
`;
|
|
817
|
-
function
|
|
858
|
+
function qe(e) {
|
|
818
859
|
return typeof e == "number" ? `${e}px` : e;
|
|
819
860
|
}
|
|
820
|
-
function
|
|
821
|
-
return /* @__PURE__ */
|
|
861
|
+
function M1({ spin: e }) {
|
|
862
|
+
return /* @__PURE__ */ g(
|
|
822
863
|
"svg",
|
|
823
864
|
{
|
|
824
865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -828,7 +869,7 @@ function y1({ spin: e }) {
|
|
|
828
869
|
fill: "none",
|
|
829
870
|
className: `${e ? "csdk-animate-spin" : ""}`,
|
|
830
871
|
children: [
|
|
831
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ n(
|
|
832
873
|
"path",
|
|
833
874
|
{
|
|
834
875
|
fillRule: "evenodd",
|
|
@@ -838,7 +879,7 @@ function y1({ spin: e }) {
|
|
|
838
879
|
fillOpacity: "0.3"
|
|
839
880
|
}
|
|
840
881
|
),
|
|
841
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ n(
|
|
842
883
|
"path",
|
|
843
884
|
{
|
|
844
885
|
fillRule: "evenodd",
|
|
@@ -851,11 +892,11 @@ function y1({ spin: e }) {
|
|
|
851
892
|
}
|
|
852
893
|
);
|
|
853
894
|
}
|
|
854
|
-
function
|
|
855
|
-
return /* @__PURE__ */
|
|
895
|
+
function ge() {
|
|
896
|
+
return /* @__PURE__ */ n("div", { className: "csdk-m-auto", "aria-label": "loading spinner", children: /* @__PURE__ */ n(M1, { spin: !0 }) });
|
|
856
897
|
}
|
|
857
|
-
function
|
|
858
|
-
return /* @__PURE__ */
|
|
898
|
+
function L1({ theme: e }) {
|
|
899
|
+
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
900
|
"path",
|
|
860
901
|
{
|
|
861
902
|
d: "M4 14L0 10L24 0L14 24L10 20L8.47667 16.9533L19 6.4L20 4.00001L17.6099 5L7.04354 15.5218L4 14Z",
|
|
@@ -863,24 +904,24 @@ function v1({ theme: e }) {
|
|
|
863
904
|
}
|
|
864
905
|
) });
|
|
865
906
|
}
|
|
866
|
-
function
|
|
907
|
+
function $1({ theme: e }) {
|
|
867
908
|
const t = e.aiChat.icons.color;
|
|
868
|
-
return /* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
909
|
+
return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", children: [
|
|
910
|
+
/* @__PURE__ */ n(
|
|
870
911
|
"path",
|
|
871
912
|
{
|
|
872
913
|
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
914
|
fill: t
|
|
874
915
|
}
|
|
875
916
|
),
|
|
876
|
-
/* @__PURE__ */
|
|
917
|
+
/* @__PURE__ */ n(
|
|
877
918
|
"path",
|
|
878
919
|
{
|
|
879
920
|
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
921
|
fill: t
|
|
881
922
|
}
|
|
882
923
|
),
|
|
883
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ n(
|
|
884
925
|
"path",
|
|
885
926
|
{
|
|
886
927
|
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 +930,11 @@ function w1({ theme: e }) {
|
|
|
889
930
|
)
|
|
890
931
|
] });
|
|
891
932
|
}
|
|
892
|
-
const
|
|
933
|
+
const T1 = u.div`
|
|
893
934
|
display: flex;
|
|
894
935
|
flex-direction: column;
|
|
895
936
|
row-gap: 4px;
|
|
896
|
-
`,
|
|
937
|
+
`, R1 = u.div`
|
|
897
938
|
font-size: 11px;
|
|
898
939
|
line-height: 18px;
|
|
899
940
|
font-weight: 300;
|
|
@@ -903,7 +944,7 @@ const k1 = u.div`
|
|
|
903
944
|
&:hover {
|
|
904
945
|
background-color: ${({ theme: e }) => e.aiChat.dropup.headers.hover.backgroundColor};
|
|
905
946
|
}
|
|
906
|
-
`,
|
|
947
|
+
`, E1 = u.div`
|
|
907
948
|
font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
|
|
908
949
|
line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
|
|
909
950
|
color: ${({ theme: e }) => e.aiChat.dropup.items.textColor};
|
|
@@ -913,19 +954,19 @@ const k1 = u.div`
|
|
|
913
954
|
background-color: ${({ theme: e }) => e.aiChat.dropup.items.hover.backgroundColor};
|
|
914
955
|
}
|
|
915
956
|
`;
|
|
916
|
-
function
|
|
957
|
+
function N1({
|
|
917
958
|
title: e,
|
|
918
959
|
items: t,
|
|
919
|
-
onSelect:
|
|
960
|
+
onSelect: o,
|
|
920
961
|
alwaysExpanded: r = !1
|
|
921
962
|
}) {
|
|
922
|
-
const [i, a] =
|
|
923
|
-
return /* @__PURE__ */
|
|
924
|
-
/* @__PURE__ */
|
|
925
|
-
(i || r) && t.map((c, l) => /* @__PURE__ */
|
|
963
|
+
const [i, a] = $(!1), { themeSettings: s } = m();
|
|
964
|
+
return /* @__PURE__ */ g(T1, { children: [
|
|
965
|
+
/* @__PURE__ */ n(R1, { onClick: () => a((c) => !c), theme: s, children: e.toUpperCase() }),
|
|
966
|
+
(i || r) && t.map((c, l) => /* @__PURE__ */ n(E1, { onClick: () => o(c), theme: s, children: c }, l))
|
|
926
967
|
] });
|
|
927
968
|
}
|
|
928
|
-
const
|
|
969
|
+
const H1 = u.div`
|
|
929
970
|
font-family: ${({ theme: e }) => e.typography.fontFamily};
|
|
930
971
|
font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
|
|
931
972
|
line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
|
|
@@ -937,16 +978,16 @@ const L1 = u.div`
|
|
|
937
978
|
display: flex;
|
|
938
979
|
flex-direction: column;
|
|
939
980
|
row-gap: 4px;
|
|
940
|
-
`,
|
|
981
|
+
`, I1 = u.div`
|
|
941
982
|
font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
|
|
942
983
|
line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
|
|
943
984
|
color: ${({ theme: e }) => e.aiChat.dropup.items.textColor};
|
|
944
985
|
padding: 4px 12px;
|
|
945
|
-
`,
|
|
946
|
-
function
|
|
986
|
+
`, Me = (e) => e.startsWith("/");
|
|
987
|
+
function F1({
|
|
947
988
|
recentPrompts: e,
|
|
948
989
|
suggestions: t,
|
|
949
|
-
isLoading:
|
|
990
|
+
isLoading: o,
|
|
950
991
|
onSelection: r,
|
|
951
992
|
anchorEl: i,
|
|
952
993
|
text: a,
|
|
@@ -964,12 +1005,12 @@ function T1({
|
|
|
964
1005
|
onSelect: r
|
|
965
1006
|
}
|
|
966
1007
|
].filter(
|
|
967
|
-
(
|
|
968
|
-
), { themeSettings: d } =
|
|
969
|
-
return /* @__PURE__ */
|
|
970
|
-
|
|
1008
|
+
(h) => h.title.slice(0, a.length) === a
|
|
1009
|
+
), { themeSettings: d } = m(), { t: p } = w(), C = l.length === 1;
|
|
1010
|
+
return /* @__PURE__ */ n(
|
|
1011
|
+
ze,
|
|
971
1012
|
{
|
|
972
|
-
open:
|
|
1013
|
+
open: Me(a) && l.length > 0,
|
|
973
1014
|
anchorEl: i,
|
|
974
1015
|
placement: "top-start",
|
|
975
1016
|
modifiers: [
|
|
@@ -981,18 +1022,18 @@ function T1({
|
|
|
981
1022
|
}
|
|
982
1023
|
],
|
|
983
1024
|
sx: { zIndex: 3 },
|
|
984
|
-
children: /* @__PURE__ */
|
|
985
|
-
|
|
986
|
-
!
|
|
987
|
-
s && /* @__PURE__ */
|
|
1025
|
+
children: /* @__PURE__ */ g(H1, { style: { width: i == null ? void 0 : i.offsetWidth }, theme: d, children: [
|
|
1026
|
+
o && /* @__PURE__ */ n(ge, {}),
|
|
1027
|
+
!o && !s && l.map((h) => /* @__PURE__ */ n(N1, L(M({}, h), { alwaysExpanded: C }), h.title)),
|
|
1028
|
+
s && /* @__PURE__ */ n(I1, { theme: d, children: p("ai.errors.recommendationsNotAvailable") })
|
|
988
1029
|
] })
|
|
989
1030
|
}
|
|
990
1031
|
);
|
|
991
1032
|
}
|
|
992
|
-
function re({ title: e, placement: t = "top", children:
|
|
993
|
-
const { themeSettings: r } =
|
|
994
|
-
return /* @__PURE__ */
|
|
995
|
-
|
|
1033
|
+
function re({ title: e, placement: t = "top", children: o }) {
|
|
1034
|
+
const { themeSettings: r } = m();
|
|
1035
|
+
return /* @__PURE__ */ n(
|
|
1036
|
+
Ft,
|
|
996
1037
|
{
|
|
997
1038
|
title: e,
|
|
998
1039
|
placement: t,
|
|
@@ -1018,23 +1059,23 @@ function re({ title: e, placement: t = "top", children: n }) {
|
|
|
1018
1059
|
}
|
|
1019
1060
|
},
|
|
1020
1061
|
arrow: !0,
|
|
1021
|
-
children:
|
|
1062
|
+
children: o
|
|
1022
1063
|
}
|
|
1023
1064
|
);
|
|
1024
1065
|
}
|
|
1025
|
-
const
|
|
1066
|
+
const B1 = 500, D1 = u.div`
|
|
1026
1067
|
display: flex;
|
|
1027
1068
|
flex-direction: row;
|
|
1028
1069
|
align-items: flex-end;
|
|
1029
1070
|
justify-content: space-between;
|
|
1030
1071
|
|
|
1031
1072
|
background-color: ${({ theme: e }) => e.aiChat.backgroundColor};
|
|
1032
|
-
`,
|
|
1073
|
+
`, P1 = u.button`
|
|
1033
1074
|
height: 34px;
|
|
1034
1075
|
background-color: inherit;
|
|
1035
1076
|
cursor: pointer;
|
|
1036
1077
|
border: none;
|
|
1037
|
-
`,
|
|
1078
|
+
`, q1 = u.textarea`
|
|
1038
1079
|
font-size: inherit;
|
|
1039
1080
|
line-height: inherit;
|
|
1040
1081
|
resize: none;
|
|
@@ -1062,126 +1103,126 @@ const E1 = 500, H1 = u.div`
|
|
|
1062
1103
|
color: ${({ theme: e }) => e.aiChat.primaryTextColor};
|
|
1063
1104
|
|
|
1064
1105
|
background-color: ${({ theme: e }) => e.aiChat.input.backgroundColor};
|
|
1065
|
-
`,
|
|
1106
|
+
`, W1 = u.button`
|
|
1066
1107
|
height: 34px;
|
|
1067
1108
|
background-color: inherit;
|
|
1068
1109
|
border-style: none;
|
|
1069
1110
|
|
|
1070
1111
|
color: ${({ theme: e }) => e.aiChat.primaryTextColor};
|
|
1071
1112
|
|
|
1072
|
-
${({ disabled: e }) => e ?
|
|
1113
|
+
${({ disabled: e }) => e ? E`
|
|
1073
1114
|
opacity: 0.3;
|
|
1074
1115
|
cursor: not-allowed;
|
|
1075
|
-
` :
|
|
1116
|
+
` : E`
|
|
1076
1117
|
opacity: 1;
|
|
1077
1118
|
cursor: pointer;
|
|
1078
1119
|
`}
|
|
1079
|
-
`,
|
|
1080
|
-
function
|
|
1120
|
+
`, O1 = 34;
|
|
1121
|
+
function A1({
|
|
1081
1122
|
onSendMessage: e,
|
|
1082
1123
|
onClearHistoryClick: t,
|
|
1083
|
-
disabled:
|
|
1124
|
+
disabled: o,
|
|
1084
1125
|
recentPrompts: r,
|
|
1085
1126
|
suggestions: i,
|
|
1086
1127
|
isLoading: a,
|
|
1087
1128
|
recommendationsError: s,
|
|
1088
1129
|
onChange: c
|
|
1089
1130
|
}) {
|
|
1090
|
-
const [l, d] =
|
|
1091
|
-
if (
|
|
1131
|
+
const [l, d] = $(""), { inputPromptText: p } = W(), C = T(() => {
|
|
1132
|
+
if (o)
|
|
1092
1133
|
return;
|
|
1093
|
-
if (
|
|
1134
|
+
if (Me(l)) {
|
|
1094
1135
|
d("");
|
|
1095
1136
|
return;
|
|
1096
1137
|
}
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1099
|
-
}, [
|
|
1100
|
-
(
|
|
1101
|
-
e(
|
|
1138
|
+
const k = l.trim();
|
|
1139
|
+
k.length !== 0 && (e(k), d(""));
|
|
1140
|
+
}, [o, e, l]), h = T(
|
|
1141
|
+
(k) => {
|
|
1142
|
+
e(k), d("");
|
|
1102
1143
|
},
|
|
1103
1144
|
[e]
|
|
1104
|
-
),
|
|
1105
|
-
(
|
|
1106
|
-
|
|
1145
|
+
), b = T(
|
|
1146
|
+
(k) => {
|
|
1147
|
+
k.key === "Enter" ? (k.preventDefault(), C()) : k.key === "Escape" && Me(l) && d("");
|
|
1107
1148
|
},
|
|
1108
|
-
[
|
|
1109
|
-
),
|
|
1110
|
-
(
|
|
1111
|
-
c == null || c(
|
|
1149
|
+
[C, l]
|
|
1150
|
+
), v = T(
|
|
1151
|
+
(k) => {
|
|
1152
|
+
c == null || c(k.target.value), d(k.target.value);
|
|
1112
1153
|
},
|
|
1113
1154
|
[c]
|
|
1114
|
-
),
|
|
1155
|
+
), S = J(null);
|
|
1115
1156
|
ce(() => {
|
|
1116
|
-
|
|
1117
|
-
|
|
1157
|
+
S.current && (S.current.style.height = "inherit", S.current.style.height = `${Math.max(
|
|
1158
|
+
S.current.scrollHeight + 2,
|
|
1118
1159
|
// account for 1px top/bottom border
|
|
1119
|
-
|
|
1160
|
+
O1
|
|
1120
1161
|
)}px`);
|
|
1121
1162
|
}, [l]), ce(() => {
|
|
1122
|
-
|
|
1163
|
+
S.current && S.current.focus({ preventScroll: !0 });
|
|
1123
1164
|
}, []);
|
|
1124
|
-
const { themeSettings:
|
|
1125
|
-
var
|
|
1126
|
-
if ((
|
|
1127
|
-
const
|
|
1128
|
-
var
|
|
1129
|
-
document.removeEventListener("mouseup",
|
|
1165
|
+
const { themeSettings: x } = m(), { t: O } = w(), N = T((k) => {
|
|
1166
|
+
var q;
|
|
1167
|
+
if ((q = document.getElementById("csdk-chatbot-frame")) != null && q.contains(k.relatedTarget)) {
|
|
1168
|
+
const F = (B) => {
|
|
1169
|
+
var G;
|
|
1170
|
+
document.removeEventListener("mouseup", F), document.removeEventListener("keyup", F), B.type === "mouseup" && ((G = document.getSelection()) == null ? void 0 : G.type) !== "Range" && k.target.focus({ preventScroll: !0 });
|
|
1130
1171
|
};
|
|
1131
|
-
document.addEventListener("mouseup",
|
|
1172
|
+
document.addEventListener("mouseup", F), document.addEventListener("keyup", F);
|
|
1132
1173
|
}
|
|
1133
1174
|
}, []);
|
|
1134
|
-
return /* @__PURE__ */
|
|
1135
|
-
/* @__PURE__ */
|
|
1136
|
-
|
|
1175
|
+
return /* @__PURE__ */ g(D1, { theme: x, children: [
|
|
1176
|
+
/* @__PURE__ */ n(
|
|
1177
|
+
F1,
|
|
1137
1178
|
{
|
|
1138
1179
|
recentPrompts: r,
|
|
1139
1180
|
suggestions: i,
|
|
1140
1181
|
isLoading: a,
|
|
1141
|
-
onSelection:
|
|
1142
|
-
anchorEl:
|
|
1182
|
+
onSelection: h,
|
|
1183
|
+
anchorEl: S.current,
|
|
1143
1184
|
text: l,
|
|
1144
1185
|
recommendationsError: s
|
|
1145
1186
|
}
|
|
1146
1187
|
),
|
|
1147
|
-
t && /* @__PURE__ */
|
|
1148
|
-
/* @__PURE__ */
|
|
1149
|
-
|
|
1188
|
+
t && /* @__PURE__ */ n(re, { title: O("ai.buttons.clearChat"), placement: "bottom-start", children: /* @__PURE__ */ n(P1, { "aria-label": "clear history", onClick: t, children: /* @__PURE__ */ n($1, { theme: x }) }) }),
|
|
1189
|
+
/* @__PURE__ */ n(
|
|
1190
|
+
q1,
|
|
1150
1191
|
{
|
|
1151
1192
|
"aria-label": "chat input",
|
|
1152
|
-
onBlur:
|
|
1153
|
-
maxLength:
|
|
1154
|
-
ref:
|
|
1193
|
+
onBlur: N,
|
|
1194
|
+
maxLength: B1,
|
|
1195
|
+
ref: S,
|
|
1155
1196
|
rows: 1,
|
|
1156
|
-
onChange:
|
|
1197
|
+
onChange: v,
|
|
1157
1198
|
spellCheck: "true",
|
|
1158
1199
|
placeholder: p,
|
|
1159
1200
|
value: l,
|
|
1160
|
-
onKeyDown:
|
|
1161
|
-
theme:
|
|
1201
|
+
onKeyDown: b,
|
|
1202
|
+
theme: x
|
|
1162
1203
|
}
|
|
1163
1204
|
),
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
|
|
1205
|
+
/* @__PURE__ */ n(
|
|
1206
|
+
W1,
|
|
1166
1207
|
{
|
|
1167
1208
|
"aria-label": "send chat message",
|
|
1168
|
-
disabled:
|
|
1169
|
-
onClick:
|
|
1170
|
-
theme:
|
|
1171
|
-
children: /* @__PURE__ */
|
|
1209
|
+
disabled: o || l.length === 0,
|
|
1210
|
+
onClick: C,
|
|
1211
|
+
theme: x,
|
|
1212
|
+
children: /* @__PURE__ */ n("span", { "data-state": "closed", children: /* @__PURE__ */ n(L1, { theme: x }) })
|
|
1172
1213
|
}
|
|
1173
1214
|
)
|
|
1174
1215
|
] });
|
|
1175
1216
|
}
|
|
1176
|
-
const
|
|
1217
|
+
const Z1 = u.div`
|
|
1177
1218
|
display: flex;
|
|
1178
1219
|
|
|
1179
|
-
${({ align: e }) => e === "right" ?
|
|
1220
|
+
${({ align: e }) => e === "right" ? E`
|
|
1180
1221
|
justify-content: flex-end;
|
|
1181
|
-
` :
|
|
1222
|
+
` : E`
|
|
1182
1223
|
justify-content: flex-start;
|
|
1183
1224
|
`}
|
|
1184
|
-
`,
|
|
1225
|
+
`, it = u.div`
|
|
1185
1226
|
font-size: inherit;
|
|
1186
1227
|
line-height: inherit;
|
|
1187
1228
|
padding-top: 8.5px;
|
|
@@ -1192,48 +1233,48 @@ const W1 = u.div`
|
|
|
1192
1233
|
overflow-wrap: break-word;
|
|
1193
1234
|
box-sizing: border-box;
|
|
1194
1235
|
|
|
1195
|
-
${({ align: e }) => e === "right" ?
|
|
1236
|
+
${({ align: e }) => e === "right" ? E`
|
|
1196
1237
|
text-align: right;
|
|
1197
1238
|
border-radius: 10px 10px 0px 10px;
|
|
1198
|
-
` :
|
|
1239
|
+
` : E`
|
|
1199
1240
|
text-align: left;
|
|
1200
1241
|
border-radius: 10px 10px 10px 0px;
|
|
1201
1242
|
`}
|
|
1202
1243
|
|
|
1203
|
-
${({ align: e }) => e !== "full" ?
|
|
1244
|
+
${({ align: e }) => e !== "full" ? E`
|
|
1204
1245
|
max-width: 85%;
|
|
1205
1246
|
` : ""}
|
|
1206
1247
|
|
|
1207
1248
|
color: ${({ theme: e }) => e.aiChat.primaryTextColor};
|
|
1208
1249
|
background-color: ${({ theme: e, align: t }) => t === "right" ? e.aiChat.userMessages.backgroundColor : e.aiChat.systemMessages.backgroundColor};
|
|
1209
1250
|
`, z = ({ align: e, children: t }) => {
|
|
1210
|
-
const { themeSettings:
|
|
1211
|
-
return /* @__PURE__ */
|
|
1251
|
+
const { themeSettings: o } = m();
|
|
1252
|
+
return /* @__PURE__ */ n(Z1, { theme: o, align: e, children: /* @__PURE__ */ n(it, { theme: o, align: e, children: t }) });
|
|
1212
1253
|
};
|
|
1213
|
-
function
|
|
1214
|
-
const { welcomeText: e } =
|
|
1215
|
-
return e === !1 ? null : /* @__PURE__ */
|
|
1254
|
+
function z1() {
|
|
1255
|
+
const { welcomeText: e } = W();
|
|
1256
|
+
return e === !1 ? null : /* @__PURE__ */ n(z, { align: "left", children: e });
|
|
1216
1257
|
}
|
|
1217
|
-
const
|
|
1258
|
+
const G1 = u.div`
|
|
1218
1259
|
margin: auto;
|
|
1219
1260
|
display: flex;
|
|
1220
1261
|
flex-direction: column;
|
|
1221
1262
|
align-items: center;
|
|
1222
1263
|
row-gap: 21px;
|
|
1223
|
-
`,
|
|
1264
|
+
`, V1 = u.div`
|
|
1224
1265
|
color: ${({ theme: e }) => e.aiChat.primaryTextColor};
|
|
1225
1266
|
text-align: center;
|
|
1226
1267
|
font-weight: 600;
|
|
1227
|
-
`,
|
|
1268
|
+
`, j1 = u.div`
|
|
1228
1269
|
color: rgba(54, 163, 217, 1);
|
|
1229
1270
|
cursor: pointer;
|
|
1230
1271
|
`;
|
|
1231
|
-
function
|
|
1232
|
-
const { themeSettings:
|
|
1233
|
-
return /* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
t && /* @__PURE__ */
|
|
1272
|
+
function st({ text: e, action: t }) {
|
|
1273
|
+
const { themeSettings: o } = m();
|
|
1274
|
+
return /* @__PURE__ */ g(G1, { children: [
|
|
1275
|
+
/* @__PURE__ */ n(V1, { theme: o, children: e }),
|
|
1276
|
+
/* @__PURE__ */ n(Bt, {}),
|
|
1277
|
+
t && /* @__PURE__ */ n(j1, { onClick: t.onClick, children: t.text })
|
|
1237
1278
|
] });
|
|
1238
1279
|
}
|
|
1239
1280
|
const le = u.div`
|
|
@@ -1265,31 +1306,31 @@ const le = u.div`
|
|
|
1265
1306
|
}
|
|
1266
1307
|
}
|
|
1267
1308
|
`;
|
|
1268
|
-
function
|
|
1269
|
-
const { themeSettings: e } =
|
|
1270
|
-
return /* @__PURE__ */
|
|
1309
|
+
function Ne() {
|
|
1310
|
+
const { themeSettings: e } = m(), t = e.aiChat.icons.color;
|
|
1311
|
+
return /* @__PURE__ */ g(
|
|
1271
1312
|
"div",
|
|
1272
1313
|
{
|
|
1273
1314
|
className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
|
|
1274
1315
|
"aria-label": "loading dots",
|
|
1275
1316
|
children: [
|
|
1276
|
-
/* @__PURE__ */
|
|
1277
|
-
/* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ n(le, { color: t }),
|
|
1318
|
+
/* @__PURE__ */ n(le, { color: t }),
|
|
1319
|
+
/* @__PURE__ */ n(le, { color: t }),
|
|
1320
|
+
/* @__PURE__ */ n(le, { color: t })
|
|
1280
1321
|
]
|
|
1281
1322
|
}
|
|
1282
1323
|
);
|
|
1283
1324
|
}
|
|
1284
|
-
const
|
|
1325
|
+
const Q1 = u.div`
|
|
1285
1326
|
display: flex;
|
|
1286
1327
|
|
|
1287
|
-
${({ align: e }) => e === "right" ?
|
|
1328
|
+
${({ align: e }) => e === "right" ? E`
|
|
1288
1329
|
justify-content: flex-end;
|
|
1289
|
-
` :
|
|
1330
|
+
` : E`
|
|
1290
1331
|
justify-content: flex-start;
|
|
1291
1332
|
`}
|
|
1292
|
-
`,
|
|
1333
|
+
`, U1 = u.button`
|
|
1293
1334
|
font-family: inherit;
|
|
1294
1335
|
font-size: inherit;
|
|
1295
1336
|
line-height: inherit;
|
|
@@ -1305,24 +1346,24 @@ const q1 = u.div`
|
|
|
1305
1346
|
}
|
|
1306
1347
|
border-radius: 20px;
|
|
1307
1348
|
|
|
1308
|
-
${({ align: e }) => e === "right" ?
|
|
1349
|
+
${({ align: e }) => e === "right" ? E`
|
|
1309
1350
|
text-align: right;
|
|
1310
|
-
` :
|
|
1351
|
+
` : E`
|
|
1311
1352
|
text-align: left;
|
|
1312
1353
|
`}
|
|
1313
1354
|
|
|
1314
|
-
${({ align: e }) => e !== "full" ?
|
|
1355
|
+
${({ align: e }) => e !== "full" ? E`
|
|
1315
1356
|
max-width: 382px;
|
|
1316
1357
|
` : ""}
|
|
1317
1358
|
|
|
1318
1359
|
${({ theme: e }) => {
|
|
1319
|
-
const { borderGradient: t, borderRadius:
|
|
1360
|
+
const { borderGradient: t, borderRadius: o } = e.aiChat.suggestions;
|
|
1320
1361
|
if (t) {
|
|
1321
1362
|
const [r, i] = t;
|
|
1322
|
-
return
|
|
1363
|
+
return E`
|
|
1323
1364
|
border: none;
|
|
1324
1365
|
position: relative;
|
|
1325
|
-
border-radius: ${
|
|
1366
|
+
border-radius: ${o};
|
|
1326
1367
|
&:before {
|
|
1327
1368
|
content: '';
|
|
1328
1369
|
position: absolute;
|
|
@@ -1330,7 +1371,7 @@ const q1 = u.div`
|
|
|
1330
1371
|
left: 0;
|
|
1331
1372
|
right: 0;
|
|
1332
1373
|
bottom: 0;
|
|
1333
|
-
border-radius: ${
|
|
1374
|
+
border-radius: ${o};
|
|
1334
1375
|
border: 1px solid transparent;
|
|
1335
1376
|
background: linear-gradient(30deg, ${r}, ${i}) border-box;
|
|
1336
1377
|
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
@@ -1345,18 +1386,18 @@ const q1 = u.div`
|
|
|
1345
1386
|
function de({
|
|
1346
1387
|
children: e,
|
|
1347
1388
|
align: t,
|
|
1348
|
-
onClick:
|
|
1389
|
+
onClick: o,
|
|
1349
1390
|
onMouseEnter: r,
|
|
1350
1391
|
onMouseLeave: i,
|
|
1351
1392
|
accessibleName: a
|
|
1352
1393
|
}) {
|
|
1353
|
-
const { themeSettings: s } =
|
|
1354
|
-
return /* @__PURE__ */
|
|
1355
|
-
|
|
1394
|
+
const { themeSettings: s } = m();
|
|
1395
|
+
return /* @__PURE__ */ n(Q1, { align: t, children: /* @__PURE__ */ n(
|
|
1396
|
+
U1,
|
|
1356
1397
|
{
|
|
1357
1398
|
"aria-label": a,
|
|
1358
1399
|
theme: s,
|
|
1359
|
-
onClick:
|
|
1400
|
+
onClick: o,
|
|
1360
1401
|
align: t,
|
|
1361
1402
|
onMouseEnter: r,
|
|
1362
1403
|
onMouseLeave: i,
|
|
@@ -1364,20 +1405,20 @@ function de({
|
|
|
1364
1405
|
}
|
|
1365
1406
|
) });
|
|
1366
1407
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const { t:
|
|
1369
|
-
return /* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1371
|
-
/* @__PURE__ */
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */
|
|
1408
|
+
function _1({ onCancel: e, onConfirm: t }) {
|
|
1409
|
+
const { t: o } = w();
|
|
1410
|
+
return /* @__PURE__ */ g(I, { children: [
|
|
1411
|
+
/* @__PURE__ */ n(z, { align: "left", children: o("ai.clearHistoryPrompt") }),
|
|
1412
|
+
/* @__PURE__ */ g("div", { className: "csdk-flex csdk-gap-x-2", children: [
|
|
1413
|
+
/* @__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") }) }),
|
|
1414
|
+
/* @__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
1415
|
] })
|
|
1375
1416
|
] });
|
|
1376
1417
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return /* @__PURE__ */
|
|
1379
|
-
/* @__PURE__ */
|
|
1380
|
-
/* @__PURE__ */
|
|
1418
|
+
function K1({ fillColor: e = "#262E3D" }) {
|
|
1419
|
+
return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", children: [
|
|
1420
|
+
/* @__PURE__ */ n("rect", { x: "1", y: "1", width: "28", height: "28", rx: "14", stroke: "#9EA2AB" }),
|
|
1421
|
+
/* @__PURE__ */ n(
|
|
1381
1422
|
"path",
|
|
1382
1423
|
{
|
|
1383
1424
|
fillRule: "evenodd",
|
|
@@ -1388,7 +1429,7 @@ function V1({ fillColor: e = "#262E3D" }) {
|
|
|
1388
1429
|
)
|
|
1389
1430
|
] });
|
|
1390
1431
|
}
|
|
1391
|
-
const
|
|
1432
|
+
const at = {
|
|
1392
1433
|
row: {
|
|
1393
1434
|
hover: "rgba(224, 224, 224, 0.3)"
|
|
1394
1435
|
},
|
|
@@ -1473,19 +1514,19 @@ const it = {
|
|
|
1473
1514
|
errorBG: "rgba(231, 71, 39, 0.1)"
|
|
1474
1515
|
}
|
|
1475
1516
|
}
|
|
1476
|
-
},
|
|
1517
|
+
}, Y1 = {
|
|
1477
1518
|
shouldForwardProp: (e) => !e.startsWith("$")
|
|
1478
1519
|
}, ie = u(
|
|
1479
|
-
|
|
1480
|
-
|
|
1520
|
+
Ge,
|
|
1521
|
+
Y1
|
|
1481
1522
|
)(({ $hoverColor: e }) => ({
|
|
1482
1523
|
padding: 2,
|
|
1483
1524
|
"&.MuiIconButton-root:hover": {
|
|
1484
|
-
backgroundColor: e != null ? e :
|
|
1525
|
+
backgroundColor: e != null ? e : at.interaction.defaultHover
|
|
1485
1526
|
}
|
|
1486
1527
|
}));
|
|
1487
|
-
function
|
|
1488
|
-
return /* @__PURE__ */
|
|
1528
|
+
function J1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
|
|
1529
|
+
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
1530
|
"path",
|
|
1490
1531
|
{
|
|
1491
1532
|
fillRule: "evenodd",
|
|
@@ -1495,8 +1536,8 @@ function G1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
|
|
|
1495
1536
|
}
|
|
1496
1537
|
) });
|
|
1497
1538
|
}
|
|
1498
|
-
function
|
|
1499
|
-
return /* @__PURE__ */
|
|
1539
|
+
function X1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
|
|
1540
|
+
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
1541
|
"path",
|
|
1501
1542
|
{
|
|
1502
1543
|
fillRule: "evenodd",
|
|
@@ -1506,8 +1547,8 @@ function U1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
|
|
|
1506
1547
|
}
|
|
1507
1548
|
) });
|
|
1508
1549
|
}
|
|
1509
|
-
function
|
|
1510
|
-
return /* @__PURE__ */
|
|
1550
|
+
function eo() {
|
|
1551
|
+
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
1552
|
"path",
|
|
1512
1553
|
{
|
|
1513
1554
|
fillRule: "evenodd",
|
|
@@ -1518,8 +1559,8 @@ function _1() {
|
|
|
1518
1559
|
}
|
|
1519
1560
|
) });
|
|
1520
1561
|
}
|
|
1521
|
-
function
|
|
1522
|
-
return /* @__PURE__ */
|
|
1562
|
+
function to({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
|
|
1563
|
+
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
1564
|
"path",
|
|
1524
1565
|
{
|
|
1525
1566
|
fillRule: "evenodd",
|
|
@@ -1529,27 +1570,27 @@ function K1({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
|
|
|
1529
1570
|
}
|
|
1530
1571
|
) });
|
|
1531
1572
|
}
|
|
1532
|
-
const
|
|
1533
|
-
const { themeSettings: t } =
|
|
1534
|
-
return /* @__PURE__ */
|
|
1535
|
-
},
|
|
1536
|
-
const [t,
|
|
1537
|
-
|
|
1573
|
+
const He = (e) => Qe(e.chart.backgroundColor), oo = ({ title: e }) => {
|
|
1574
|
+
const { themeSettings: t } = m();
|
|
1575
|
+
return /* @__PURE__ */ n(re, { title: e, children: /* @__PURE__ */ n(ie, { disableTouchRipple: !0, $hoverColor: He(t), children: /* @__PURE__ */ n(X1, { fill: t.chart.textColor }) }) });
|
|
1576
|
+
}, no = ({ items: e }) => {
|
|
1577
|
+
const [t, o] = $(null), r = (s) => {
|
|
1578
|
+
o(s.currentTarget);
|
|
1538
1579
|
}, i = () => {
|
|
1539
|
-
|
|
1540
|
-
}, { themeSettings: a } =
|
|
1541
|
-
return /* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */
|
|
1580
|
+
o(null);
|
|
1581
|
+
}, { themeSettings: a } = m();
|
|
1582
|
+
return /* @__PURE__ */ g(I, { children: [
|
|
1583
|
+
/* @__PURE__ */ n(
|
|
1543
1584
|
ie,
|
|
1544
1585
|
{
|
|
1545
1586
|
onClick: r,
|
|
1546
|
-
$hoverColor:
|
|
1587
|
+
$hoverColor: He(a),
|
|
1547
1588
|
"aria-label": "three dots button",
|
|
1548
|
-
children: /* @__PURE__ */
|
|
1589
|
+
children: /* @__PURE__ */ n(to, { fill: a.chart.textColor })
|
|
1549
1590
|
}
|
|
1550
1591
|
),
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
|
|
1592
|
+
/* @__PURE__ */ n(
|
|
1593
|
+
Dt,
|
|
1553
1594
|
{
|
|
1554
1595
|
anchorEl: t,
|
|
1555
1596
|
anchorOrigin: {
|
|
@@ -1562,8 +1603,8 @@ const Le = (e) => Ve(e.chart.backgroundColor), Y1 = ({ title: e }) => {
|
|
|
1562
1603
|
},
|
|
1563
1604
|
open: !!t,
|
|
1564
1605
|
onClose: i,
|
|
1565
|
-
children: e.map((s) => /* @__PURE__ */
|
|
1566
|
-
|
|
1606
|
+
children: e.map((s) => /* @__PURE__ */ g(
|
|
1607
|
+
Pt,
|
|
1567
1608
|
{
|
|
1568
1609
|
onClick: () => {
|
|
1569
1610
|
s.onClick(), i();
|
|
@@ -1571,12 +1612,12 @@ const Le = (e) => Ve(e.chart.backgroundColor), Y1 = ({ title: e }) => {
|
|
|
1571
1612
|
sx: {
|
|
1572
1613
|
fontSize: "13px",
|
|
1573
1614
|
fontFamily: a.typography.fontFamily,
|
|
1574
|
-
color:
|
|
1615
|
+
color: at.text.content
|
|
1575
1616
|
},
|
|
1576
1617
|
disableRipple: !0,
|
|
1577
1618
|
children: [
|
|
1578
1619
|
s.icon,
|
|
1579
|
-
/* @__PURE__ */
|
|
1620
|
+
/* @__PURE__ */ n("div", { className: "csdk-ml-1", children: s.title })
|
|
1580
1621
|
]
|
|
1581
1622
|
},
|
|
1582
1623
|
s.title
|
|
@@ -1584,80 +1625,80 @@ const Le = (e) => Ve(e.chart.backgroundColor), Y1 = ({ title: e }) => {
|
|
|
1584
1625
|
}
|
|
1585
1626
|
)
|
|
1586
1627
|
] });
|
|
1587
|
-
},
|
|
1588
|
-
const { themeSettings: t } =
|
|
1589
|
-
return /* @__PURE__ */
|
|
1590
|
-
},
|
|
1628
|
+
}, ro = ({ onClick: e }) => {
|
|
1629
|
+
const { themeSettings: t } = m(), { t: o } = w();
|
|
1630
|
+
return /* @__PURE__ */ n(re, { title: o("ai.preview"), children: /* @__PURE__ */ n(ie, { onClick: e, $hoverColor: He(t), children: /* @__PURE__ */ n(J1, { fill: t.chart.textColor }) }) });
|
|
1631
|
+
}, io = u.div`
|
|
1591
1632
|
display: flex;
|
|
1592
1633
|
padding-top: 6px;
|
|
1593
1634
|
padding-bottom: 6px;
|
|
1594
1635
|
`;
|
|
1595
|
-
function
|
|
1636
|
+
function so({
|
|
1596
1637
|
infoTooltipText: e,
|
|
1597
1638
|
onRefresh: t,
|
|
1598
|
-
onExpand:
|
|
1639
|
+
onExpand: o
|
|
1599
1640
|
}) {
|
|
1600
|
-
const r =
|
|
1641
|
+
const r = D(
|
|
1601
1642
|
() => [
|
|
1602
1643
|
{
|
|
1603
1644
|
title: "Refresh",
|
|
1604
1645
|
onClick: t,
|
|
1605
|
-
icon: /* @__PURE__ */
|
|
1646
|
+
icon: /* @__PURE__ */ n(eo, {})
|
|
1606
1647
|
}
|
|
1607
1648
|
],
|
|
1608
1649
|
[t]
|
|
1609
1650
|
);
|
|
1610
|
-
return /* @__PURE__ */
|
|
1611
|
-
/* @__PURE__ */
|
|
1612
|
-
/* @__PURE__ */
|
|
1613
|
-
/* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ g(io, { "aria-label": "chatbot chart toolbar", children: [
|
|
1652
|
+
/* @__PURE__ */ n(oo, { title: e != null ? e : "" }),
|
|
1653
|
+
/* @__PURE__ */ n(no, { items: r }),
|
|
1654
|
+
/* @__PURE__ */ n(ro, { onClick: o })
|
|
1614
1655
|
] });
|
|
1615
1656
|
}
|
|
1616
|
-
function
|
|
1617
|
-
const [t,
|
|
1618
|
-
const s =
|
|
1619
|
-
if (s === void 0 || !
|
|
1620
|
-
throw new
|
|
1657
|
+
function ao({ content: e }) {
|
|
1658
|
+
const [t, o] = $(!1), { themeSettings: r } = m(), { inlineElement: i, expandedElement: a } = D(() => {
|
|
1659
|
+
const s = pe(e, { useCustomizedStyleOptions: !0 });
|
|
1660
|
+
if (s === void 0 || !Se(s))
|
|
1661
|
+
throw new ke("errors.otherWidgetTypesNotSupported");
|
|
1621
1662
|
const { detailedDescription: c } = e, { styleOptions: l } = s, d = {
|
|
1622
1663
|
cornerRadius: "Small",
|
|
1623
1664
|
header: {
|
|
1624
|
-
renderToolbar: (
|
|
1625
|
-
|
|
1665
|
+
renderToolbar: (h) => /* @__PURE__ */ n(
|
|
1666
|
+
so,
|
|
1626
1667
|
{
|
|
1627
1668
|
infoTooltipText: c,
|
|
1628
|
-
onRefresh:
|
|
1629
|
-
onExpand: () =>
|
|
1669
|
+
onRefresh: h,
|
|
1670
|
+
onExpand: () => o(!0)
|
|
1630
1671
|
}
|
|
1631
1672
|
)
|
|
1632
1673
|
}
|
|
1633
1674
|
};
|
|
1634
|
-
let p,
|
|
1635
|
-
if (
|
|
1636
|
-
p = /* @__PURE__ */
|
|
1675
|
+
let p, C;
|
|
1676
|
+
if (Ut(s.chartType))
|
|
1677
|
+
p = /* @__PURE__ */ n("div", { className: "csdk-h-[245px]", children: /* @__PURE__ */ n(ee, L(M({}, s), { styleOptions: d })) }), C = /* @__PURE__ */ n(ee, L(M({}, s), { styleOptions: { header: { hidden: !0 } } }));
|
|
1637
1678
|
else {
|
|
1638
|
-
const
|
|
1679
|
+
const h = L(M({}, l), {
|
|
1639
1680
|
header: { hidden: !0 }
|
|
1640
|
-
}),
|
|
1681
|
+
}), b = M(L(M({}, l), {
|
|
1641
1682
|
legend: void 0,
|
|
1642
1683
|
xAxis: void 0,
|
|
1643
1684
|
yAxis: void 0
|
|
1644
1685
|
}), d);
|
|
1645
|
-
delete
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
styleOptions:
|
|
1686
|
+
delete b.legend, delete b.xAxis, delete b.yAxis, p = /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(ee, L(M({}, s), { styleOptions: b })) }), C = /* @__PURE__ */ n(
|
|
1687
|
+
ee,
|
|
1688
|
+
L(M({}, s), {
|
|
1689
|
+
styleOptions: M({ cornerRadius: "None" }, h)
|
|
1649
1690
|
})
|
|
1650
1691
|
);
|
|
1651
1692
|
}
|
|
1652
|
-
return { inlineElement: p, expandedElement:
|
|
1693
|
+
return { inlineElement: p, expandedElement: C };
|
|
1653
1694
|
}, [e]);
|
|
1654
|
-
return /* @__PURE__ */
|
|
1695
|
+
return /* @__PURE__ */ g(I, { children: [
|
|
1655
1696
|
i,
|
|
1656
|
-
/* @__PURE__ */
|
|
1657
|
-
|
|
1697
|
+
/* @__PURE__ */ g(
|
|
1698
|
+
_e,
|
|
1658
1699
|
{
|
|
1659
1700
|
open: t,
|
|
1660
|
-
onClose: () =>
|
|
1701
|
+
onClose: () => o(!1),
|
|
1661
1702
|
maxWidth: "xl",
|
|
1662
1703
|
fullWidth: !0,
|
|
1663
1704
|
PaperProps: {
|
|
@@ -1667,18 +1708,18 @@ function oo({ content: e }) {
|
|
|
1667
1708
|
}
|
|
1668
1709
|
},
|
|
1669
1710
|
children: [
|
|
1670
|
-
/* @__PURE__ */
|
|
1671
|
-
/* @__PURE__ */
|
|
1672
|
-
/* @__PURE__ */
|
|
1711
|
+
/* @__PURE__ */ g("div", { className: "csdk-flex csdk-items-center csdk-justify-between csdk-mt-[16px] csdk-mx-[16px] csdk-pl-[20px]", children: [
|
|
1712
|
+
/* @__PURE__ */ n("div", { className: "csdk-text-ai-lg csdk-semibold", children: e.queryTitle }),
|
|
1713
|
+
/* @__PURE__ */ n(Ge, { onClick: () => o(!1), "aria-label": "close expanded chart", children: /* @__PURE__ */ n(K1, { fillColor: r.aiChat.primaryTextColor }) })
|
|
1673
1714
|
] }),
|
|
1674
|
-
/* @__PURE__ */
|
|
1715
|
+
/* @__PURE__ */ n("div", { className: "csdk-h-screen csdk-mt-[8px] csdk-mb-[24px] csdk-mx-[16px]", children: a })
|
|
1675
1716
|
]
|
|
1676
1717
|
}
|
|
1677
1718
|
)
|
|
1678
1719
|
] });
|
|
1679
1720
|
}
|
|
1680
|
-
function
|
|
1681
|
-
return /* @__PURE__ */
|
|
1721
|
+
function lo({ theme: e }) {
|
|
1722
|
+
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
1723
|
"path",
|
|
1683
1724
|
{
|
|
1684
1725
|
fillRule: "evenodd",
|
|
@@ -1688,21 +1729,21 @@ function no({ theme: e }) {
|
|
|
1688
1729
|
}
|
|
1689
1730
|
) });
|
|
1690
1731
|
}
|
|
1691
|
-
function
|
|
1692
|
-
const { themeSettings:
|
|
1693
|
-
return /* @__PURE__ */
|
|
1732
|
+
function co({ onClick: e, disabled: t }) {
|
|
1733
|
+
const { themeSettings: o } = m(), { t: r } = w();
|
|
1734
|
+
return /* @__PURE__ */ n(re, { title: r("ai.buttons.incorrectResponse"), children: /* @__PURE__ */ n(
|
|
1694
1735
|
ie,
|
|
1695
1736
|
{
|
|
1696
1737
|
"aria-label": "thumbs-down",
|
|
1697
1738
|
onClick: e,
|
|
1698
|
-
$hoverColor:
|
|
1739
|
+
$hoverColor: o.aiChat.icons.feedbackIcons.hoverColor,
|
|
1699
1740
|
disabled: t,
|
|
1700
|
-
children: /* @__PURE__ */
|
|
1741
|
+
children: /* @__PURE__ */ n(lo, { theme: o })
|
|
1701
1742
|
}
|
|
1702
1743
|
) });
|
|
1703
1744
|
}
|
|
1704
|
-
function
|
|
1705
|
-
return /* @__PURE__ */
|
|
1745
|
+
function uo({ theme: e }) {
|
|
1746
|
+
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
1747
|
"path",
|
|
1707
1748
|
{
|
|
1708
1749
|
fillRule: "evenodd",
|
|
@@ -1712,96 +1753,96 @@ function io({ theme: e }) {
|
|
|
1712
1753
|
}
|
|
1713
1754
|
) });
|
|
1714
1755
|
}
|
|
1715
|
-
function
|
|
1716
|
-
const { themeSettings:
|
|
1717
|
-
return /* @__PURE__ */
|
|
1756
|
+
function ho({ onClick: e, disabled: t }) {
|
|
1757
|
+
const { themeSettings: o } = m(), { t: r } = w();
|
|
1758
|
+
return /* @__PURE__ */ n(re, { title: r("ai.buttons.correctResponse"), children: /* @__PURE__ */ n(
|
|
1718
1759
|
ie,
|
|
1719
1760
|
{
|
|
1720
1761
|
"aria-label": "thumbs-up",
|
|
1721
1762
|
onClick: e,
|
|
1722
|
-
$hoverColor:
|
|
1763
|
+
$hoverColor: o.aiChat.icons.feedbackIcons.hoverColor,
|
|
1723
1764
|
disabled: t,
|
|
1724
|
-
children: /* @__PURE__ */
|
|
1765
|
+
children: /* @__PURE__ */ n(uo, { theme: o })
|
|
1725
1766
|
}
|
|
1726
1767
|
) });
|
|
1727
1768
|
}
|
|
1728
|
-
const
|
|
1729
|
-
const [e, t] =
|
|
1769
|
+
const po = () => {
|
|
1770
|
+
const [e, t] = $(!1), o = J(null), r = T(() => {
|
|
1730
1771
|
t(!0);
|
|
1731
|
-
}, []), i =
|
|
1772
|
+
}, []), i = T(() => {
|
|
1732
1773
|
t(!1);
|
|
1733
1774
|
}, []);
|
|
1734
|
-
return [
|
|
1775
|
+
return [T(
|
|
1735
1776
|
(s) => {
|
|
1736
1777
|
var c;
|
|
1737
|
-
((c =
|
|
1778
|
+
((c = o.current) == null ? void 0 : c.nodeType) === Node.ELEMENT_NODE && (o.current.removeEventListener("mouseenter", r), o.current.removeEventListener("mouseleave", i)), (s == null ? void 0 : s.nodeType) === Node.ELEMENT_NODE && (s.addEventListener("mouseenter", r), s.addEventListener("mouseleave", i)), o.current = s;
|
|
1738
1779
|
},
|
|
1739
1780
|
[r, i]
|
|
1740
1781
|
), e];
|
|
1741
|
-
},
|
|
1782
|
+
}, go = u.div`
|
|
1742
1783
|
display: flex;
|
|
1743
1784
|
flex-direction: column;
|
|
1744
1785
|
row-gap: ${({ theme: e }) => e.aiChat.body.gapBetweenMessages};
|
|
1745
1786
|
`;
|
|
1746
|
-
function
|
|
1747
|
-
const [
|
|
1787
|
+
function Co({ visible: e, onSend: t }) {
|
|
1788
|
+
const [o, r] = $(!1), i = T(
|
|
1748
1789
|
(s) => {
|
|
1749
1790
|
r(!0), t(s === "up" ? 1 : -1);
|
|
1750
1791
|
},
|
|
1751
1792
|
[t]
|
|
1752
|
-
), a = `csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${
|
|
1753
|
-
return e ? /* @__PURE__ */
|
|
1754
|
-
/* @__PURE__ */
|
|
1755
|
-
/* @__PURE__ */
|
|
1793
|
+
), a = `csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${o ? "csdk-opacity-0" : "csdk-opacity-100"}`;
|
|
1794
|
+
return e ? /* @__PURE__ */ g("div", { className: `csdk-flex csdk-items-center ${a}`, children: [
|
|
1795
|
+
/* @__PURE__ */ n(ho, { onClick: () => i("up"), disabled: o }),
|
|
1796
|
+
/* @__PURE__ */ n(co, { onClick: () => i("down"), disabled: o })
|
|
1756
1797
|
] }) : null;
|
|
1757
1798
|
}
|
|
1758
|
-
function
|
|
1799
|
+
function Le({
|
|
1759
1800
|
sourceId: e,
|
|
1760
1801
|
data: t,
|
|
1761
|
-
type:
|
|
1802
|
+
type: o,
|
|
1762
1803
|
buttonVisibility: r = "onHover",
|
|
1763
1804
|
renderContent: i
|
|
1764
1805
|
}) {
|
|
1765
|
-
const a =
|
|
1766
|
-
|
|
1767
|
-
(
|
|
1806
|
+
const a = P(), s = qt(
|
|
1807
|
+
T(
|
|
1808
|
+
(C) => {
|
|
1768
1809
|
a && a.ai.sendFeedback({
|
|
1769
1810
|
sourceId: e,
|
|
1770
|
-
type:
|
|
1811
|
+
type: o,
|
|
1771
1812
|
data: t,
|
|
1772
|
-
rating:
|
|
1813
|
+
rating: C
|
|
1773
1814
|
});
|
|
1774
1815
|
},
|
|
1775
|
-
[a, e, t,
|
|
1816
|
+
[a, e, t, o]
|
|
1776
1817
|
),
|
|
1777
1818
|
200
|
|
1778
|
-
), [c, l] =
|
|
1779
|
-
return /* @__PURE__ */
|
|
1819
|
+
), [c, l] = po(), d = D(() => r === "onHover" ? l : r !== "never", [l, r]), { themeSettings: p } = m();
|
|
1820
|
+
return /* @__PURE__ */ n(go, { ref: c, theme: p, children: i(/* @__PURE__ */ n(Co, { onSend: s, visible: d })) });
|
|
1780
1821
|
}
|
|
1781
|
-
const
|
|
1782
|
-
function
|
|
1783
|
-
const [t,
|
|
1822
|
+
const fo = 18 * 5;
|
|
1823
|
+
function Ce({ text: e }) {
|
|
1824
|
+
const [t, o] = $(!0), [r, i] = $(!1), { t: a } = w(), s = J(null);
|
|
1784
1825
|
return ce(() => {
|
|
1785
|
-
s.current && s.current.scrollHeight >
|
|
1786
|
-
}, [e]), /* @__PURE__ */
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
r && /* @__PURE__ */
|
|
1826
|
+
s.current && s.current.scrollHeight > fo && i(!0);
|
|
1827
|
+
}, [e]), /* @__PURE__ */ g("div", { children: [
|
|
1828
|
+
/* @__PURE__ */ n("div", { ref: s, className: `${t ? "csdk-line-clamp-5" : ""} csdk-whitespace-pre-wrap`, children: e }),
|
|
1829
|
+
r && /* @__PURE__ */ n("div", { className: "csdk-mt-3 csdk-flex csdk-justify-end", children: /* @__PURE__ */ n(
|
|
1789
1830
|
"div",
|
|
1790
1831
|
{
|
|
1791
1832
|
className: "csdk-text-ai-xs csdk-text-text-link csdk-cursor-pointer",
|
|
1792
|
-
onClick: () =>
|
|
1833
|
+
onClick: () => o((c) => !c),
|
|
1793
1834
|
children: a(t ? "ai.buttons.readMore" : "ai.buttons.collapse")
|
|
1794
1835
|
}
|
|
1795
1836
|
) })
|
|
1796
1837
|
] });
|
|
1797
1838
|
}
|
|
1798
|
-
function
|
|
1799
|
-
const { data: t, isLoading:
|
|
1800
|
-
return
|
|
1839
|
+
function mo({ nlgRequest: e }) {
|
|
1840
|
+
const { data: t, isLoading: o, isError: r } = ne(e), { t: i } = w();
|
|
1841
|
+
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
1842
|
}
|
|
1802
|
-
function
|
|
1803
|
-
const { themeSettings: e } =
|
|
1804
|
-
return /* @__PURE__ */
|
|
1843
|
+
function bo() {
|
|
1844
|
+
const { themeSettings: e } = m();
|
|
1845
|
+
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
1846
|
"path",
|
|
1806
1847
|
{
|
|
1807
1848
|
fillRule: "evenodd",
|
|
@@ -1811,100 +1852,101 @@ function po() {
|
|
|
1811
1852
|
}
|
|
1812
1853
|
) });
|
|
1813
1854
|
}
|
|
1814
|
-
function
|
|
1815
|
-
const { t } =
|
|
1816
|
-
return /* @__PURE__ */
|
|
1855
|
+
function xo({ onClick: e }) {
|
|
1856
|
+
const { t } = w();
|
|
1857
|
+
return /* @__PURE__ */ n(de, { align: "left", onClick: e, children: /* @__PURE__ */ g(
|
|
1817
1858
|
"div",
|
|
1818
1859
|
{
|
|
1819
1860
|
className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
|
|
1820
1861
|
children: [
|
|
1821
|
-
/* @__PURE__ */
|
|
1862
|
+
/* @__PURE__ */ n(bo, {}),
|
|
1822
1863
|
t("ai.buttons.insights")
|
|
1823
1864
|
]
|
|
1824
1865
|
}
|
|
1825
1866
|
) });
|
|
1826
1867
|
}
|
|
1827
|
-
|
|
1868
|
+
var yo = Wt("toLowerCase");
|
|
1869
|
+
const We = u.div`
|
|
1828
1870
|
display: flex;
|
|
1829
1871
|
align-items: center;
|
|
1830
1872
|
column-gap: 10px;
|
|
1831
|
-
`,
|
|
1832
|
-
function
|
|
1833
|
-
const { chatMode:
|
|
1873
|
+
`, vo = (e) => !!e && "aeiou".includes(e[0]);
|
|
1874
|
+
function wo({ data: e, alwaysShowFeedback: t }) {
|
|
1875
|
+
const { chatMode: o = "analyze", enableInsights: r } = W(), { themeSettings: i } = m(), { queryTitle: a, chartRecommendations: s, jaql: c } = e;
|
|
1834
1876
|
console.debug(`JAQL for ${a}`, c), console.debug(`chart recommendations for ${a}`, s);
|
|
1835
1877
|
const l = "chartType" in s ? s.chartType : "table";
|
|
1836
1878
|
let d;
|
|
1837
|
-
|
|
1838
|
-
const p = c.datasource.title, [
|
|
1839
|
-
|
|
1840
|
-
}, []),
|
|
1879
|
+
vo(l) ? d = `an ${l}` : d = `a ${l}`, l !== "table" && (d += " chart");
|
|
1880
|
+
const p = c.datasource.title, [C, h] = $(!1), b = T(() => {
|
|
1881
|
+
h((x) => !x);
|
|
1882
|
+
}, []), v = {
|
|
1841
1883
|
jaql: {
|
|
1842
1884
|
datasource: c.datasource,
|
|
1843
1885
|
metadata: c.metadata
|
|
1844
1886
|
}
|
|
1845
|
-
},
|
|
1846
|
-
return /* @__PURE__ */
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
|
|
1887
|
+
}, S = o === "analyze";
|
|
1888
|
+
return /* @__PURE__ */ g(I, { children: [
|
|
1889
|
+
/* @__PURE__ */ n(
|
|
1890
|
+
Le,
|
|
1849
1891
|
{
|
|
1850
1892
|
sourceId: p,
|
|
1851
1893
|
data: e,
|
|
1852
1894
|
type: "chats/nlq",
|
|
1853
1895
|
buttonVisibility: t ? "always" : "onHover",
|
|
1854
|
-
renderContent: (
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
/* @__PURE__ */
|
|
1857
|
-
|
|
1896
|
+
renderContent: (x) => /* @__PURE__ */ g(I, { children: [
|
|
1897
|
+
/* @__PURE__ */ g(We, { children: [
|
|
1898
|
+
/* @__PURE__ */ n(it, { align: "left", theme: i, children: `Here's ${d} showing ${yo(a)}.` }),
|
|
1899
|
+
x
|
|
1858
1900
|
] }),
|
|
1859
|
-
|
|
1901
|
+
S && /* @__PURE__ */ n(ao, { content: e })
|
|
1860
1902
|
] })
|
|
1861
1903
|
}
|
|
1862
1904
|
),
|
|
1863
|
-
r && /* @__PURE__ */
|
|
1864
|
-
|
|
1905
|
+
r && /* @__PURE__ */ n(
|
|
1906
|
+
Le,
|
|
1865
1907
|
{
|
|
1866
1908
|
sourceId: p,
|
|
1867
|
-
data:
|
|
1909
|
+
data: v,
|
|
1868
1910
|
type: "nlg/queryResult",
|
|
1869
|
-
buttonVisibility:
|
|
1870
|
-
renderContent: (
|
|
1871
|
-
/* @__PURE__ */
|
|
1872
|
-
/* @__PURE__ */
|
|
1873
|
-
|
|
1911
|
+
buttonVisibility: C ? "onHover" : "never",
|
|
1912
|
+
renderContent: (x) => /* @__PURE__ */ g(I, { children: [
|
|
1913
|
+
/* @__PURE__ */ g(We, { children: [
|
|
1914
|
+
/* @__PURE__ */ n(xo, { onClick: b }),
|
|
1915
|
+
x
|
|
1874
1916
|
] }),
|
|
1875
|
-
|
|
1917
|
+
C && /* @__PURE__ */ n(mo, { nlgRequest: v })
|
|
1876
1918
|
] })
|
|
1877
1919
|
}
|
|
1878
1920
|
)
|
|
1879
1921
|
] });
|
|
1880
1922
|
}
|
|
1881
|
-
function
|
|
1882
|
-
if (
|
|
1923
|
+
function ko({ message: e, isLastMessage: t }) {
|
|
1924
|
+
if (Ee(e)) {
|
|
1883
1925
|
const r = JSON.parse(e.content);
|
|
1884
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ n(wo, { data: r, alwaysShowFeedback: t });
|
|
1885
1927
|
}
|
|
1886
|
-
const
|
|
1887
|
-
return /* @__PURE__ */
|
|
1928
|
+
const o = b1(e) ? JSON.parse(e.content).answer : e.content;
|
|
1929
|
+
return /* @__PURE__ */ n(z, { align: e.role === "user" ? "right" : "left", children: o });
|
|
1888
1930
|
}
|
|
1889
|
-
const
|
|
1931
|
+
const So = zt(ko), Mo = ({
|
|
1890
1932
|
error: e,
|
|
1891
1933
|
displayMessage: t
|
|
1892
|
-
}) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */
|
|
1893
|
-
function
|
|
1894
|
-
const { t } =
|
|
1895
|
-
return /* @__PURE__ */
|
|
1896
|
-
|
|
1934
|
+
}) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ n(z, { align: "left", children: t }));
|
|
1935
|
+
function Lo({ messages: e }) {
|
|
1936
|
+
const { t } = w();
|
|
1937
|
+
return /* @__PURE__ */ n(I, { children: e.map((o, r) => /* @__PURE__ */ n(
|
|
1938
|
+
Ot,
|
|
1897
1939
|
{
|
|
1898
|
-
fallbackRender: (i) =>
|
|
1940
|
+
fallbackRender: (i) => Mo(L(M({}, i), {
|
|
1899
1941
|
displayMessage: t("ai.errors.unexpected")
|
|
1900
1942
|
})),
|
|
1901
|
-
children: /* @__PURE__ */
|
|
1943
|
+
children: /* @__PURE__ */ n(So, { message: o, isLastMessage: r === e.length - 1 }, r)
|
|
1902
1944
|
},
|
|
1903
1945
|
r
|
|
1904
1946
|
)) });
|
|
1905
1947
|
}
|
|
1906
|
-
function
|
|
1907
|
-
return /* @__PURE__ */
|
|
1948
|
+
function lt({ color: e }) {
|
|
1949
|
+
return /* @__PURE__ */ n(
|
|
1908
1950
|
"svg",
|
|
1909
1951
|
{
|
|
1910
1952
|
width: "100%",
|
|
@@ -1912,7 +1954,7 @@ function st({ color: e }) {
|
|
|
1912
1954
|
viewBox: "0 0 4 8",
|
|
1913
1955
|
fill: "none",
|
|
1914
1956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1915
|
-
children: /* @__PURE__ */
|
|
1957
|
+
children: /* @__PURE__ */ n(
|
|
1916
1958
|
"path",
|
|
1917
1959
|
{
|
|
1918
1960
|
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 +1964,18 @@ function st({ color: e }) {
|
|
|
1922
1964
|
}
|
|
1923
1965
|
);
|
|
1924
1966
|
}
|
|
1925
|
-
function
|
|
1926
|
-
return /* @__PURE__ */
|
|
1967
|
+
function $o({ onClick: e, color: t }) {
|
|
1968
|
+
return /* @__PURE__ */ n(
|
|
1927
1969
|
"div",
|
|
1928
1970
|
{
|
|
1929
1971
|
"aria-label": "go back",
|
|
1930
1972
|
className: "csdk-w-5 csdk-h-5 csdk-flex csdk-p-[4px] csdk-ml-[6px] csdk-cursor-pointer",
|
|
1931
1973
|
onClick: e,
|
|
1932
|
-
children: /* @__PURE__ */
|
|
1974
|
+
children: /* @__PURE__ */ n(lt, { color: t })
|
|
1933
1975
|
}
|
|
1934
1976
|
);
|
|
1935
1977
|
}
|
|
1936
|
-
const
|
|
1978
|
+
const To = u.button`
|
|
1937
1979
|
font-size: inherit;
|
|
1938
1980
|
line-height: inherit;
|
|
1939
1981
|
box-sizing: border-box;
|
|
@@ -1957,13 +1999,13 @@ const wo = u.button`
|
|
|
1957
1999
|
}
|
|
1958
2000
|
|
|
1959
2001
|
${({ theme: e }) => {
|
|
1960
|
-
const { borderGradient: t, borderRadius:
|
|
2002
|
+
const { borderGradient: t, borderRadius: o } = e.aiChat.suggestions;
|
|
1961
2003
|
if (t) {
|
|
1962
2004
|
const [r, i] = t;
|
|
1963
|
-
return
|
|
2005
|
+
return E`
|
|
1964
2006
|
border: none;
|
|
1965
2007
|
position: relative;
|
|
1966
|
-
border-radius: ${
|
|
2008
|
+
border-radius: ${o};
|
|
1967
2009
|
&:before {
|
|
1968
2010
|
content: '';
|
|
1969
2011
|
position: absolute;
|
|
@@ -1971,7 +2013,7 @@ const wo = u.button`
|
|
|
1971
2013
|
left: 0;
|
|
1972
2014
|
right: 0;
|
|
1973
2015
|
bottom: 0;
|
|
1974
|
-
border-radius: ${
|
|
2016
|
+
border-radius: ${o};
|
|
1975
2017
|
border: 1px solid transparent;
|
|
1976
2018
|
background: linear-gradient(30deg, ${r}, ${i}) border-box;
|
|
1977
2019
|
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
@@ -1983,33 +2025,33 @@ const wo = u.button`
|
|
|
1983
2025
|
return "";
|
|
1984
2026
|
}}
|
|
1985
2027
|
`;
|
|
1986
|
-
function
|
|
1987
|
-
const { themeSettings:
|
|
1988
|
-
return /* @__PURE__ */
|
|
2028
|
+
function Oe({ question: e, onClick: t }) {
|
|
2029
|
+
const { themeSettings: o } = m();
|
|
2030
|
+
return /* @__PURE__ */ n(To, { onClick: t, theme: o, children: e });
|
|
1989
2031
|
}
|
|
1990
|
-
const
|
|
2032
|
+
const Ro = u.div`
|
|
1991
2033
|
display: flex;
|
|
1992
2034
|
flex-direction: column;
|
|
1993
2035
|
align-items: flex-start;
|
|
1994
2036
|
row-gap: ${({ theme: e }) => e.aiChat.suggestions.gap};
|
|
1995
2037
|
`;
|
|
1996
|
-
function
|
|
1997
|
-
const { t:
|
|
1998
|
-
return /* @__PURE__ */
|
|
1999
|
-
a.map((c) => /* @__PURE__ */
|
|
2000
|
-
a.length < e.length && /* @__PURE__ */
|
|
2038
|
+
function Eo({ questions: e, onSelection: t }) {
|
|
2039
|
+
const { t: o } = w(), [r, i] = $(!0), a = D(() => r && e.length > 5 ? e.slice(0, 4) : e, [e, r]), { themeSettings: s } = m();
|
|
2040
|
+
return /* @__PURE__ */ g(Ro, { "aria-label": "list of suggested questions", theme: s, children: [
|
|
2041
|
+
a.map((c) => /* @__PURE__ */ n(Oe, { question: c, onClick: () => t(c) }, c)),
|
|
2042
|
+
a.length < e.length && /* @__PURE__ */ n(Oe, { question: o("ai.buttons.seeMore"), onClick: () => i(!1) })
|
|
2001
2043
|
] });
|
|
2002
2044
|
}
|
|
2003
|
-
const
|
|
2045
|
+
const No = u.div`
|
|
2004
2046
|
width: 283px;
|
|
2005
2047
|
height: 32px;
|
|
2006
2048
|
border-radius: 10px;
|
|
2007
2049
|
background: ${({ theme: e }) => {
|
|
2008
|
-
const [t,
|
|
2050
|
+
const [t, o] = e.aiChat.suggestions.loadingGradient;
|
|
2009
2051
|
return `linear-gradient(
|
|
2010
2052
|
to right,
|
|
2011
2053
|
${t} 0%,
|
|
2012
|
-
${
|
|
2054
|
+
${o} 50%,
|
|
2013
2055
|
${t} 100%
|
|
2014
2056
|
)`;
|
|
2015
2057
|
}};
|
|
@@ -2024,23 +2066,23 @@ const Mo = u.div`
|
|
|
2024
2066
|
background-position: -200% 0;
|
|
2025
2067
|
}
|
|
2026
2068
|
}
|
|
2027
|
-
`,
|
|
2069
|
+
`, Ho = u.div`
|
|
2028
2070
|
display: flex;
|
|
2029
2071
|
flex-direction: column;
|
|
2030
2072
|
row-gap: 1rem;
|
|
2031
2073
|
`;
|
|
2032
|
-
function
|
|
2033
|
-
const { themeSettings: e } =
|
|
2034
|
-
return /* @__PURE__ */
|
|
2074
|
+
function Io() {
|
|
2075
|
+
const { themeSettings: e } = m();
|
|
2076
|
+
return /* @__PURE__ */ n(Ho, { children: Array.from({ length: 3 }, (t, o) => /* @__PURE__ */ n(No, { theme: e }, o)) });
|
|
2035
2077
|
}
|
|
2036
|
-
function
|
|
2037
|
-
const r = e.length > 0, { suggestionsWelcomeText: i } =
|
|
2038
|
-
return t ? /* @__PURE__ */
|
|
2039
|
-
i && /* @__PURE__ */
|
|
2040
|
-
/* @__PURE__ */
|
|
2078
|
+
function Fo({ questions: e, isLoading: t, onSelection: o }) {
|
|
2079
|
+
const r = e.length > 0, { suggestionsWelcomeText: i } = W();
|
|
2080
|
+
return t ? /* @__PURE__ */ n(Io, {}) : r ? /* @__PURE__ */ g(I, { children: [
|
|
2081
|
+
i && /* @__PURE__ */ n(z, { align: "left", children: i }),
|
|
2082
|
+
/* @__PURE__ */ n(Eo, { onSelection: o, questions: e })
|
|
2041
2083
|
] }) : null;
|
|
2042
2084
|
}
|
|
2043
|
-
const
|
|
2085
|
+
const Bo = u.div`
|
|
2044
2086
|
flex: 0 0 80px;
|
|
2045
2087
|
padding-left: 14px;
|
|
2046
2088
|
padding-right: 14px;
|
|
@@ -2049,20 +2091,20 @@ const To = u.div`
|
|
|
2049
2091
|
position: relative;
|
|
2050
2092
|
|
|
2051
2093
|
background-color: ${({ style: e }) => e.backgroundColor};
|
|
2052
|
-
`,
|
|
2094
|
+
`, Do = u.div`
|
|
2053
2095
|
font-size: 18px;
|
|
2054
2096
|
line-height: 22px;
|
|
2055
2097
|
font-weight: 600;
|
|
2056
2098
|
margin-left: 20px;
|
|
2057
2099
|
|
|
2058
2100
|
color: ${({ style: e }) => e.textColor};
|
|
2059
|
-
`,
|
|
2060
|
-
return /* @__PURE__ */
|
|
2061
|
-
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
r && /* @__PURE__ */
|
|
2101
|
+
`, ct = Gt(function({ title: t, leftNav: o, rightNav: r, style: i }, a) {
|
|
2102
|
+
return /* @__PURE__ */ g(Bo, { ref: a, style: i, children: [
|
|
2103
|
+
o,
|
|
2104
|
+
/* @__PURE__ */ n(Do, { style: i, children: t }),
|
|
2105
|
+
r && /* @__PURE__ */ n("div", { className: "csdk-ml-auto", children: r })
|
|
2064
2106
|
] });
|
|
2065
|
-
}),
|
|
2107
|
+
}), Po = u.div`
|
|
2066
2108
|
text-align: center;
|
|
2067
2109
|
font-size: 11px;
|
|
2068
2110
|
line-height: 18px;
|
|
@@ -2076,17 +2118,17 @@ const To = u.div`
|
|
|
2076
2118
|
|
|
2077
2119
|
color: ${({ theme: e }) => e.aiChat.secondaryTextColor};
|
|
2078
2120
|
`;
|
|
2079
|
-
function
|
|
2080
|
-
const { t } =
|
|
2081
|
-
return /* @__PURE__ */
|
|
2082
|
-
/* @__PURE__ */
|
|
2083
|
-
/* @__PURE__ */
|
|
2121
|
+
function qo({ theme: e }) {
|
|
2122
|
+
const { t } = w();
|
|
2123
|
+
return /* @__PURE__ */ g(Po, { theme: e, children: [
|
|
2124
|
+
/* @__PURE__ */ n("div", { children: t("ai.disclaimer.poweredByAi") }),
|
|
2125
|
+
/* @__PURE__ */ g("div", { children: [
|
|
2084
2126
|
" ",
|
|
2085
2127
|
t("ai.disclaimer.rateRequest")
|
|
2086
2128
|
] })
|
|
2087
2129
|
] });
|
|
2088
2130
|
}
|
|
2089
|
-
const
|
|
2131
|
+
const Wo = u.div`
|
|
2090
2132
|
font-size: inherit;
|
|
2091
2133
|
line-height: inherit;
|
|
2092
2134
|
padding-left: 16px;
|
|
@@ -2097,13 +2139,13 @@ const Do = u.div`
|
|
|
2097
2139
|
|
|
2098
2140
|
color: ${({ theme: e }) => e.aiChat.suggestions.textColor};
|
|
2099
2141
|
background-color: ${({ theme: e }) => e.aiChat.suggestions.backgroundColor};
|
|
2100
|
-
`,
|
|
2101
|
-
const { t: e } =
|
|
2102
|
-
return /* @__PURE__ */
|
|
2142
|
+
`, dt = () => {
|
|
2143
|
+
const { t: e } = w(), { themeSettings: t } = m();
|
|
2144
|
+
return /* @__PURE__ */ n(Wo, { theme: t, children: e("ai.betaLabel") });
|
|
2103
2145
|
};
|
|
2104
|
-
function
|
|
2105
|
-
const { themeSettings: e } =
|
|
2106
|
-
return /* @__PURE__ */
|
|
2146
|
+
function Oo() {
|
|
2147
|
+
const { themeSettings: e } = m();
|
|
2148
|
+
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
2149
|
"path",
|
|
2108
2150
|
{
|
|
2109
2151
|
fillRule: "evenodd",
|
|
@@ -2113,10 +2155,10 @@ function Fo() {
|
|
|
2113
2155
|
}
|
|
2114
2156
|
) });
|
|
2115
2157
|
}
|
|
2116
|
-
const
|
|
2117
|
-
const
|
|
2118
|
-
return
|
|
2119
|
-
},
|
|
2158
|
+
const Ao = (e, t) => {
|
|
2159
|
+
const o = new _t(e);
|
|
2160
|
+
return o.alpha = t, o;
|
|
2161
|
+
}, Zo = u.div`
|
|
2120
2162
|
font-size: inherit;
|
|
2121
2163
|
line-height: inherit;
|
|
2122
2164
|
padding-left: 8px;
|
|
@@ -2124,7 +2166,7 @@ const No = (e, t) => {
|
|
|
2124
2166
|
padding-top: 4px;
|
|
2125
2167
|
border-radius: 16px;
|
|
2126
2168
|
margin-bottom: 4px;
|
|
2127
|
-
box-shadow: ${({ theme: e }) => `0 4px 8px 0 ${
|
|
2169
|
+
box-shadow: ${({ theme: e }) => `0 4px 8px 0 ${Ao(e.aiChat.primaryTextColor, 0.2)}`};
|
|
2128
2170
|
cursor: pointer;
|
|
2129
2171
|
color: ${({ theme: e }) => e.aiChat.clickableMessages.textColor};
|
|
2130
2172
|
background-color: ${({ theme: e }) => e.aiChat.clickableMessages.backgroundColor};
|
|
@@ -2133,10 +2175,10 @@ const No = (e, t) => {
|
|
|
2133
2175
|
color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.textColor};
|
|
2134
2176
|
background-color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.backgroundColor};
|
|
2135
2177
|
box-shadow: none;
|
|
2136
|
-
`,
|
|
2137
|
-
const { themeSettings: t } =
|
|
2138
|
-
return /* @__PURE__ */
|
|
2139
|
-
},
|
|
2178
|
+
`, zo = ({ onClick: e }) => {
|
|
2179
|
+
const { themeSettings: t } = m();
|
|
2180
|
+
return /* @__PURE__ */ n(Zo, { theme: t, onClick: e, children: /* @__PURE__ */ n(Oo, {}) });
|
|
2181
|
+
}, Go = ({ isVisible: e, onClick: t, anchorElement: o }) => /* @__PURE__ */ n(ze, { anchorEl: o, open: e, placement: "top", sx: { zIndex: 2 }, children: /* @__PURE__ */ n(zo, { onClick: t }) }), Vo = u.div`
|
|
2140
2182
|
display: flex;
|
|
2141
2183
|
flex-direction: column;
|
|
2142
2184
|
row-gap: ${({ theme: e }) => e.aiChat.body.gapBetweenMessages};
|
|
@@ -2147,7 +2189,7 @@ const No = (e, t) => {
|
|
|
2147
2189
|
padding-bottom: ${({ theme: e }) => e.aiChat.body.paddingBottom};
|
|
2148
2190
|
flex: initial;
|
|
2149
2191
|
height: 100%;
|
|
2150
|
-
`,
|
|
2192
|
+
`, jo = u.div`
|
|
2151
2193
|
padding-left: ${({ theme: e }) => e.aiChat.footer.paddingLeft};
|
|
2152
2194
|
padding-right: ${({ theme: e }) => e.aiChat.footer.paddingRight};
|
|
2153
2195
|
padding-top: ${({ theme: e }) => e.aiChat.footer.paddingTop};
|
|
@@ -2155,130 +2197,131 @@ const No = (e, t) => {
|
|
|
2155
2197
|
display: flex;
|
|
2156
2198
|
flex-direction: column;
|
|
2157
2199
|
row-gap: 6px;
|
|
2158
|
-
`,
|
|
2200
|
+
`, Qo = u.div`
|
|
2159
2201
|
display: flex;
|
|
2160
2202
|
flex-direction: column;
|
|
2161
2203
|
row-gap: ${({ theme: e }) => e.aiChat.suggestions.gap};
|
|
2162
2204
|
`;
|
|
2163
|
-
function
|
|
2164
|
-
const { t:
|
|
2165
|
-
data:
|
|
2166
|
-
isLoading:
|
|
2167
|
-
isError:
|
|
2205
|
+
function Uo({ contextTitle: e, onGoBack: t }) {
|
|
2206
|
+
const { t: o } = w(), { enableFollowupQuestions: r, enableHeader: i, numOfRecentPrompts: a, numOfRecommendations: s } = W(), { themeSettings: c } = m(), {
|
|
2207
|
+
data: l,
|
|
2208
|
+
isLoading: d,
|
|
2209
|
+
isError: p
|
|
2168
2210
|
} = Je({
|
|
2169
|
-
contextTitle: e
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2211
|
+
contextTitle: e,
|
|
2212
|
+
count: s
|
|
2213
|
+
}), C = D(
|
|
2214
|
+
() => l.map((y) => y.nlqPrompt),
|
|
2215
|
+
[l]
|
|
2173
2216
|
), {
|
|
2174
|
-
history:
|
|
2175
|
-
lastNlqResponse:
|
|
2176
|
-
isAwaitingResponse:
|
|
2177
|
-
sendMessage:
|
|
2178
|
-
isLoading:
|
|
2179
|
-
chatId:
|
|
2180
|
-
lastError:
|
|
2181
|
-
} =
|
|
2182
|
-
|
|
2183
|
-
},
|
|
2184
|
-
if (!(
|
|
2217
|
+
history: h,
|
|
2218
|
+
lastNlqResponse: b,
|
|
2219
|
+
isAwaitingResponse: v,
|
|
2220
|
+
sendMessage: S,
|
|
2221
|
+
isLoading: x,
|
|
2222
|
+
chatId: O,
|
|
2223
|
+
lastError: N
|
|
2224
|
+
} = x1(e), { mutate: k, isLoading: q } = tt(O), [F, B] = $(!1), [G, se] = $(!1), fe = () => B(!0), X = () => B(!1), U = () => {
|
|
2225
|
+
k(), X();
|
|
2226
|
+
}, H = J(null), _ = J(null), me = () => {
|
|
2227
|
+
if (!(H != null && H.current))
|
|
2185
2228
|
return;
|
|
2186
|
-
const { scrollTop:
|
|
2187
|
-
if (
|
|
2229
|
+
const { scrollTop: y, clientHeight: A, scrollHeight: Ie } = H.current;
|
|
2230
|
+
if (y === void 0 || A === void 0 || Ie === void 0)
|
|
2188
2231
|
return;
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2232
|
+
const Fe = Ie - y - A > A / 2;
|
|
2233
|
+
G !== Fe && se(Fe);
|
|
2191
2234
|
};
|
|
2192
2235
|
ce(() => {
|
|
2193
|
-
|
|
2194
|
-
}, [
|
|
2195
|
-
const
|
|
2196
|
-
|
|
2236
|
+
H.current && (H.current.scrollTop = H.current.scrollHeight);
|
|
2237
|
+
}, [h, F, v]);
|
|
2238
|
+
const be = J(null), K = i ? /* @__PURE__ */ n(
|
|
2239
|
+
ct,
|
|
2197
2240
|
{
|
|
2198
|
-
ref:
|
|
2241
|
+
ref: be,
|
|
2199
2242
|
title: e,
|
|
2200
|
-
leftNav: t && /* @__PURE__ */ o
|
|
2201
|
-
rightNav: /* @__PURE__ */
|
|
2202
|
-
style:
|
|
2243
|
+
leftNav: t && /* @__PURE__ */ n($o, { onClick: t, color: c.aiChat.header.textColor }),
|
|
2244
|
+
rightNav: /* @__PURE__ */ n(dt, {}),
|
|
2245
|
+
style: c.aiChat.header
|
|
2203
2246
|
}
|
|
2204
|
-
) : null,
|
|
2247
|
+
) : null, xe = D(
|
|
2205
2248
|
() => [
|
|
2206
2249
|
...new Set(
|
|
2207
|
-
|
|
2250
|
+
h.filter((y) => y.role === "user").filter((y) => !C.includes(y.content)).map((y) => y.content).reverse()
|
|
2208
2251
|
)
|
|
2209
|
-
].slice(0,
|
|
2210
|
-
[
|
|
2252
|
+
].slice(0, a),
|
|
2253
|
+
[h, a, C]
|
|
2211
2254
|
);
|
|
2212
|
-
return (
|
|
2213
|
-
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
] }) : /* @__PURE__ */
|
|
2216
|
-
|
|
2217
|
-
/* @__PURE__ */
|
|
2218
|
-
/* @__PURE__ */
|
|
2219
|
-
|
|
2255
|
+
return (N == null ? void 0 : N.message) === o("ai.errors.chatUnavailable") ? /* @__PURE__ */ g(I, { children: [
|
|
2256
|
+
i && K,
|
|
2257
|
+
/* @__PURE__ */ n(st, { text: N.message })
|
|
2258
|
+
] }) : /* @__PURE__ */ g(I, { children: [
|
|
2259
|
+
K,
|
|
2260
|
+
/* @__PURE__ */ g(Vo, { ref: H, theme: c, onScroll: me, children: [
|
|
2261
|
+
/* @__PURE__ */ n(
|
|
2262
|
+
Go,
|
|
2220
2263
|
{
|
|
2221
|
-
isVisible:
|
|
2222
|
-
anchorElement:
|
|
2264
|
+
isVisible: G,
|
|
2265
|
+
anchorElement: _.current,
|
|
2223
2266
|
onClick: () => {
|
|
2224
|
-
var
|
|
2225
|
-
(
|
|
2226
|
-
top: (
|
|
2267
|
+
var y, A;
|
|
2268
|
+
(A = H.current) == null || A.scroll({
|
|
2269
|
+
top: (y = H.current) == null ? void 0 : y.scrollHeight,
|
|
2227
2270
|
behavior: "smooth"
|
|
2228
2271
|
});
|
|
2229
2272
|
}
|
|
2230
2273
|
}
|
|
2231
2274
|
),
|
|
2232
|
-
/* @__PURE__ */
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
|
|
2275
|
+
/* @__PURE__ */ n(z1, {}),
|
|
2276
|
+
/* @__PURE__ */ n(
|
|
2277
|
+
Fo,
|
|
2235
2278
|
{
|
|
2236
|
-
questions:
|
|
2237
|
-
isLoading:
|
|
2238
|
-
onSelection:
|
|
2279
|
+
questions: C,
|
|
2280
|
+
isLoading: d,
|
|
2281
|
+
onSelection: S
|
|
2239
2282
|
}
|
|
2240
2283
|
),
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2284
|
+
N && /* @__PURE__ */ n(z, { align: "left", children: N.message }),
|
|
2285
|
+
x ? /* @__PURE__ */ n(ge, {}) : /* @__PURE__ */ n(Lo, { messages: h }),
|
|
2286
|
+
r && b && /* @__PURE__ */ n(Qo, { theme: c, children: b.followupQuestions.slice(0, 2).map((y, A) => /* @__PURE__ */ n(
|
|
2244
2287
|
de,
|
|
2245
2288
|
{
|
|
2246
2289
|
align: "left",
|
|
2247
2290
|
onClick: () => {
|
|
2248
|
-
|
|
2291
|
+
S(y);
|
|
2249
2292
|
},
|
|
2250
|
-
children: /* @__PURE__ */
|
|
2293
|
+
children: /* @__PURE__ */ n("div", { className: "csdk-py-[7px] csdk-px-4", children: y })
|
|
2251
2294
|
},
|
|
2252
|
-
|
|
2295
|
+
A
|
|
2253
2296
|
)) }),
|
|
2254
|
-
(
|
|
2255
|
-
|
|
2256
|
-
|
|
2297
|
+
(v || q) && /* @__PURE__ */ n(Ne, {}),
|
|
2298
|
+
F && /* @__PURE__ */ n(
|
|
2299
|
+
_1,
|
|
2257
2300
|
{
|
|
2258
|
-
onCancel:
|
|
2259
|
-
onConfirm:
|
|
2301
|
+
onCancel: X,
|
|
2302
|
+
onConfirm: U
|
|
2260
2303
|
}
|
|
2261
2304
|
)
|
|
2262
2305
|
] }),
|
|
2263
|
-
/* @__PURE__ */
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
|
|
2306
|
+
/* @__PURE__ */ g(jo, { ref: _, theme: c, children: [
|
|
2307
|
+
/* @__PURE__ */ n(
|
|
2308
|
+
A1,
|
|
2266
2309
|
{
|
|
2267
|
-
onSendMessage:
|
|
2268
|
-
disabled:
|
|
2269
|
-
onClearHistoryClick:
|
|
2270
|
-
suggestions:
|
|
2271
|
-
recentPrompts:
|
|
2272
|
-
isLoading:
|
|
2273
|
-
recommendationsError:
|
|
2274
|
-
onChange:
|
|
2310
|
+
onSendMessage: S,
|
|
2311
|
+
disabled: v || x,
|
|
2312
|
+
onClearHistoryClick: fe,
|
|
2313
|
+
suggestions: C,
|
|
2314
|
+
recentPrompts: xe,
|
|
2315
|
+
isLoading: d || x,
|
|
2316
|
+
recommendationsError: p,
|
|
2317
|
+
onChange: X
|
|
2275
2318
|
}
|
|
2276
2319
|
),
|
|
2277
|
-
/* @__PURE__ */
|
|
2320
|
+
/* @__PURE__ */ n(qo, { theme: c })
|
|
2278
2321
|
] })
|
|
2279
2322
|
] });
|
|
2280
2323
|
}
|
|
2281
|
-
const
|
|
2324
|
+
const _o = u.button`
|
|
2282
2325
|
font-family: ${({ theme: e }) => e.typography.fontFamily};
|
|
2283
2326
|
padding: 20px;
|
|
2284
2327
|
border: none;
|
|
@@ -2291,38 +2334,38 @@ const zo = u.button`
|
|
|
2291
2334
|
cursor: pointer;
|
|
2292
2335
|
|
|
2293
2336
|
background-color: ${({ theme: e }) => e.aiChat.dataTopics.items.backgroundColor};
|
|
2294
|
-
`,
|
|
2337
|
+
`, Ko = u.div`
|
|
2295
2338
|
font-size: 1.05rem;
|
|
2296
2339
|
line-height: 28px;
|
|
2297
2340
|
|
|
2298
2341
|
color: ${({ theme: e }) => e.aiChat.dataTopics.items.textColor};
|
|
2299
|
-
`,
|
|
2342
|
+
`, Yo = u.div`
|
|
2300
2343
|
font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
|
|
2301
2344
|
line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
|
|
2302
2345
|
|
|
2303
|
-
color: ${({ theme: e }) =>
|
|
2304
|
-
`,
|
|
2346
|
+
color: ${({ theme: e }) => Qe(e.aiChat.dataTopics.items.textColor, 0, 0.5)};
|
|
2347
|
+
`, Jo = u.div`
|
|
2305
2348
|
width: 16px;
|
|
2306
2349
|
height: 16px;
|
|
2307
2350
|
transform: rotate(180deg);
|
|
2308
2351
|
`;
|
|
2309
|
-
function
|
|
2310
|
-
const { title: t, description:
|
|
2311
|
-
return /* @__PURE__ */
|
|
2312
|
-
/* @__PURE__ */
|
|
2313
|
-
/* @__PURE__ */
|
|
2314
|
-
/* @__PURE__ */
|
|
2352
|
+
function Xo(e) {
|
|
2353
|
+
const { title: t, description: o, onClick: r } = e, { themeSettings: i } = m();
|
|
2354
|
+
return /* @__PURE__ */ g(_o, { onClick: r, theme: i, children: [
|
|
2355
|
+
/* @__PURE__ */ g("div", { children: [
|
|
2356
|
+
/* @__PURE__ */ n(Ko, { theme: i, children: t }),
|
|
2357
|
+
/* @__PURE__ */ n(Yo, { theme: i, children: o })
|
|
2315
2358
|
] }),
|
|
2316
|
-
/* @__PURE__ */
|
|
2359
|
+
/* @__PURE__ */ n(Jo, { children: /* @__PURE__ */ n(lt, { color: i.aiChat.icons.color }) })
|
|
2317
2360
|
] });
|
|
2318
2361
|
}
|
|
2319
|
-
const
|
|
2362
|
+
const en = u.div`
|
|
2320
2363
|
padding: 20px;
|
|
2321
2364
|
display: flex;
|
|
2322
2365
|
flex-direction: column;
|
|
2323
2366
|
gap: 20px;
|
|
2324
2367
|
overflow: auto;
|
|
2325
|
-
`,
|
|
2368
|
+
`, tn = u.div`
|
|
2326
2369
|
font-size: 24px;
|
|
2327
2370
|
line-height: 32px;
|
|
2328
2371
|
font-weight: 600;
|
|
@@ -2330,29 +2373,29 @@ const Uo = u.div`
|
|
|
2330
2373
|
padding-bottom: 4px;
|
|
2331
2374
|
|
|
2332
2375
|
color: ${({ theme: e }) => e.aiChat.primaryTextColor};
|
|
2333
|
-
`,
|
|
2376
|
+
`, on = u.div`
|
|
2334
2377
|
font-size: 15px;
|
|
2335
2378
|
line-height: 22px;
|
|
2336
2379
|
|
|
2337
2380
|
color: ${({ theme: e }) => e.aiChat.primaryTextColor};
|
|
2338
2381
|
`;
|
|
2339
|
-
function
|
|
2340
|
-
const { dataTopics: t } = e, { themeSettings:
|
|
2341
|
-
return /* @__PURE__ */
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
/* @__PURE__ */
|
|
2382
|
+
function nn(e) {
|
|
2383
|
+
const { dataTopics: t } = e, { themeSettings: o } = m(), { t: r } = w();
|
|
2384
|
+
return /* @__PURE__ */ g(en, { children: [
|
|
2385
|
+
/* @__PURE__ */ n(tn, { theme: o, children: r("ai.dataTopics") }),
|
|
2386
|
+
/* @__PURE__ */ g(on, { theme: o, children: [
|
|
2344
2387
|
r("ai.chatbotDescription"),
|
|
2345
|
-
/* @__PURE__ */
|
|
2346
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ n("br", {}),
|
|
2389
|
+
/* @__PURE__ */ n("br", {}),
|
|
2347
2390
|
r("ai.topicSelectPrompt")
|
|
2348
2391
|
] }),
|
|
2349
|
-
t.map((i) => /* @__PURE__ */
|
|
2392
|
+
t.map((i) => /* @__PURE__ */ Vt(Xo, L(M({}, i), { key: i.title })))
|
|
2350
2393
|
] });
|
|
2351
2394
|
}
|
|
2352
|
-
const
|
|
2353
|
-
function
|
|
2354
|
-
const t = e ?
|
|
2355
|
-
return /* @__PURE__ */
|
|
2395
|
+
const rn = "#000000", sn = "#FFFFFF";
|
|
2396
|
+
function an({ isDarkBackground: e = !1 }) {
|
|
2397
|
+
const t = e ? sn : rn;
|
|
2398
|
+
return /* @__PURE__ */ g(
|
|
2356
2399
|
"svg",
|
|
2357
2400
|
{
|
|
2358
2401
|
width: "32",
|
|
@@ -2361,112 +2404,112 @@ function en({ isDarkBackground: e = !1 }) {
|
|
|
2361
2404
|
fill: "none",
|
|
2362
2405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2363
2406
|
children: [
|
|
2364
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ n(
|
|
2365
2408
|
"path",
|
|
2366
2409
|
{
|
|
2367
2410
|
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
2411
|
fill: t
|
|
2369
2412
|
}
|
|
2370
2413
|
),
|
|
2371
|
-
/* @__PURE__ */
|
|
2414
|
+
/* @__PURE__ */ n(
|
|
2372
2415
|
"path",
|
|
2373
2416
|
{
|
|
2374
2417
|
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
2418
|
fill: t
|
|
2376
2419
|
}
|
|
2377
2420
|
),
|
|
2378
|
-
/* @__PURE__ */
|
|
2421
|
+
/* @__PURE__ */ n(
|
|
2379
2422
|
"path",
|
|
2380
2423
|
{
|
|
2381
2424
|
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
2425
|
fill: t
|
|
2383
2426
|
}
|
|
2384
2427
|
),
|
|
2385
|
-
/* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ n(
|
|
2386
2429
|
"path",
|
|
2387
2430
|
{
|
|
2388
2431
|
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
2432
|
fill: t
|
|
2390
2433
|
}
|
|
2391
2434
|
),
|
|
2392
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ n(
|
|
2393
2436
|
"path",
|
|
2394
2437
|
{
|
|
2395
2438
|
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
2439
|
fill: t
|
|
2397
2440
|
}
|
|
2398
2441
|
),
|
|
2399
|
-
/* @__PURE__ */
|
|
2442
|
+
/* @__PURE__ */ n(
|
|
2400
2443
|
"path",
|
|
2401
2444
|
{
|
|
2402
2445
|
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
2446
|
fill: t
|
|
2404
2447
|
}
|
|
2405
2448
|
),
|
|
2406
|
-
/* @__PURE__ */
|
|
2449
|
+
/* @__PURE__ */ n(
|
|
2407
2450
|
"path",
|
|
2408
2451
|
{
|
|
2409
2452
|
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
2453
|
fill: t
|
|
2411
2454
|
}
|
|
2412
2455
|
),
|
|
2413
|
-
/* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ n(
|
|
2414
2457
|
"path",
|
|
2415
2458
|
{
|
|
2416
2459
|
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
2460
|
fill: t
|
|
2418
2461
|
}
|
|
2419
2462
|
),
|
|
2420
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ n(
|
|
2421
2464
|
"path",
|
|
2422
2465
|
{
|
|
2423
2466
|
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
2467
|
fill: t
|
|
2425
2468
|
}
|
|
2426
2469
|
),
|
|
2427
|
-
/* @__PURE__ */
|
|
2470
|
+
/* @__PURE__ */ n(
|
|
2428
2471
|
"path",
|
|
2429
2472
|
{
|
|
2430
2473
|
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
2474
|
fill: t
|
|
2432
2475
|
}
|
|
2433
2476
|
),
|
|
2434
|
-
/* @__PURE__ */
|
|
2477
|
+
/* @__PURE__ */ n(
|
|
2435
2478
|
"path",
|
|
2436
2479
|
{
|
|
2437
2480
|
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
2481
|
fill: t
|
|
2439
2482
|
}
|
|
2440
2483
|
),
|
|
2441
|
-
/* @__PURE__ */
|
|
2484
|
+
/* @__PURE__ */ n(
|
|
2442
2485
|
"path",
|
|
2443
2486
|
{
|
|
2444
2487
|
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
2488
|
fill: t
|
|
2446
2489
|
}
|
|
2447
2490
|
),
|
|
2448
|
-
/* @__PURE__ */
|
|
2491
|
+
/* @__PURE__ */ n(
|
|
2449
2492
|
"path",
|
|
2450
2493
|
{
|
|
2451
2494
|
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
2495
|
fill: t
|
|
2453
2496
|
}
|
|
2454
2497
|
),
|
|
2455
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ n(
|
|
2456
2499
|
"path",
|
|
2457
2500
|
{
|
|
2458
2501
|
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
2502
|
fill: t
|
|
2460
2503
|
}
|
|
2461
2504
|
),
|
|
2462
|
-
/* @__PURE__ */
|
|
2505
|
+
/* @__PURE__ */ n(
|
|
2463
2506
|
"path",
|
|
2464
2507
|
{
|
|
2465
2508
|
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
2509
|
fill: t
|
|
2467
2510
|
}
|
|
2468
2511
|
),
|
|
2469
|
-
/* @__PURE__ */
|
|
2512
|
+
/* @__PURE__ */ n(
|
|
2470
2513
|
"path",
|
|
2471
2514
|
{
|
|
2472
2515
|
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 +2520,10 @@ function en({ isDarkBackground: e = !1 }) {
|
|
|
2477
2520
|
}
|
|
2478
2521
|
);
|
|
2479
2522
|
}
|
|
2480
|
-
const
|
|
2523
|
+
const ln = u.div`
|
|
2481
2524
|
margin-left: 14px;
|
|
2482
2525
|
margin-top: 3px;
|
|
2483
|
-
`,
|
|
2526
|
+
`, cn = u.div`
|
|
2484
2527
|
display: flex;
|
|
2485
2528
|
flex-direction: column;
|
|
2486
2529
|
justify-content: top;
|
|
@@ -2489,85 +2532,93 @@ const tn = u.div`
|
|
|
2489
2532
|
|
|
2490
2533
|
background-color: ${({ theme: e }) => e.aiChat.dataTopics.backgroundColor};
|
|
2491
2534
|
`;
|
|
2492
|
-
function
|
|
2493
|
-
const { enableHeader:
|
|
2535
|
+
function dn({ dataTopicsList: e, onDataTopicClick: t }) {
|
|
2536
|
+
const { enableHeader: o } = W(), { themeSettings: r } = m(), { t: i } = w(), a = D(() => e == null ? void 0 : e.map((c) => ({
|
|
2494
2537
|
title: c,
|
|
2495
2538
|
onClick: () => t(c)
|
|
2496
|
-
})), [e, t]), s =
|
|
2497
|
-
return /* @__PURE__ */
|
|
2498
|
-
|
|
2499
|
-
|
|
2539
|
+
})), [e, t]), s = Kt(Yt(r.aiChat.header.backgroundColor)) > 0.5;
|
|
2540
|
+
return /* @__PURE__ */ g(I, { children: [
|
|
2541
|
+
o ? /* @__PURE__ */ n(
|
|
2542
|
+
ct,
|
|
2500
2543
|
{
|
|
2501
2544
|
title: i("ai.analyticsChatbot"),
|
|
2502
|
-
leftNav: /* @__PURE__ */
|
|
2503
|
-
rightNav: /* @__PURE__ */
|
|
2545
|
+
leftNav: /* @__PURE__ */ n(ln, { children: /* @__PURE__ */ n(an, { isDarkBackground: s }) }),
|
|
2546
|
+
rightNav: /* @__PURE__ */ n(dt, {}),
|
|
2504
2547
|
style: r.aiChat.header
|
|
2505
2548
|
}
|
|
2506
2549
|
) : null,
|
|
2507
|
-
/* @__PURE__ */
|
|
2508
|
-
!a && /* @__PURE__ */
|
|
2509
|
-
a && /* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ g(cn, { theme: r, children: [
|
|
2551
|
+
!a && /* @__PURE__ */ n(ge, {}),
|
|
2552
|
+
a && /* @__PURE__ */ n(nn, { dataTopics: a })
|
|
2510
2553
|
] })
|
|
2511
2554
|
] });
|
|
2512
2555
|
}
|
|
2513
|
-
function
|
|
2514
|
-
const [e, t] =
|
|
2515
|
-
|
|
2556
|
+
function un() {
|
|
2557
|
+
const [e, t] = $([]), [o, r] = $(), [i, a] = $(), { data: s, fetchStatus: c } = nt(), { dataTopicsList: l } = W(), { t: d } = w();
|
|
2558
|
+
oe(() => {
|
|
2516
2559
|
if (s && c === "idle") {
|
|
2517
|
-
let
|
|
2518
|
-
l && l.length && (
|
|
2560
|
+
let h = s;
|
|
2561
|
+
l && l.length && (h = s == null ? void 0 : s.filter((b) => l == null ? void 0 : l.includes(b.title))), t(h.map((b) => b.title)), h.length ? h.length === 1 && (a(void 0), r(h[0].title)) : a(d("ai.errors.noAvailableDataTopics"));
|
|
2519
2562
|
}
|
|
2520
2563
|
}, [s, l, c, d]);
|
|
2521
|
-
const p =
|
|
2564
|
+
const p = te(), C = T(() => {
|
|
2522
2565
|
a(void 0), p.invalidateQueries(["getDataTopics"]);
|
|
2523
2566
|
}, [p]);
|
|
2524
|
-
return i ? /* @__PURE__ */
|
|
2525
|
-
|
|
2567
|
+
return i ? /* @__PURE__ */ n(
|
|
2568
|
+
st,
|
|
2526
2569
|
{
|
|
2527
2570
|
text: i,
|
|
2528
|
-
action: { text: d("ai.buttons.refresh"), onClick:
|
|
2571
|
+
action: { text: d("ai.buttons.refresh"), onClick: C }
|
|
2529
2572
|
}
|
|
2530
|
-
) : e.length === 1 && !
|
|
2531
|
-
|
|
2573
|
+
) : e.length === 1 && !o ? /* @__PURE__ */ n(ge, {}) : o ? /* @__PURE__ */ n(
|
|
2574
|
+
Uo,
|
|
2532
2575
|
{
|
|
2533
|
-
contextTitle:
|
|
2576
|
+
contextTitle: o,
|
|
2534
2577
|
onGoBack: e.length === 1 ? void 0 : () => r(void 0)
|
|
2535
2578
|
}
|
|
2536
|
-
) : /* @__PURE__ */
|
|
2537
|
-
|
|
2579
|
+
) : /* @__PURE__ */ n(
|
|
2580
|
+
dn,
|
|
2538
2581
|
{
|
|
2539
2582
|
dataTopicsList: e,
|
|
2540
|
-
onDataTopicClick: (
|
|
2583
|
+
onDataTopicClick: (h) => r(h)
|
|
2541
2584
|
}
|
|
2542
2585
|
);
|
|
2543
2586
|
}
|
|
2544
|
-
const
|
|
2587
|
+
const En = $e({
|
|
2545
2588
|
componentName: "Chatbot"
|
|
2546
2589
|
})((e) => {
|
|
2547
|
-
const { width: t, height:
|
|
2548
|
-
return /* @__PURE__ */
|
|
2549
|
-
|
|
2590
|
+
const { width: t, height: o, config: r } = e, { themeSettings: i } = m();
|
|
2591
|
+
return /* @__PURE__ */ n(p1, { value: r != null ? r : {}, children: /* @__PURE__ */ n(
|
|
2592
|
+
S1,
|
|
2550
2593
|
{
|
|
2551
2594
|
id: "csdk-chatbot-frame",
|
|
2552
2595
|
width: t,
|
|
2553
|
-
height:
|
|
2596
|
+
height: o,
|
|
2554
2597
|
theme: i,
|
|
2555
2598
|
tabIndex: 0,
|
|
2556
|
-
children: /* @__PURE__ */
|
|
2599
|
+
children: /* @__PURE__ */ n(un, {})
|
|
2557
2600
|
}
|
|
2558
2601
|
) });
|
|
2559
|
-
}),
|
|
2602
|
+
}), Nn = $e({
|
|
2603
|
+
componentName: "GetNlgInsights"
|
|
2604
|
+
})(function(t) {
|
|
2605
|
+
const { data: o, isLoading: r, isError: i } = ne(t), { t: a } = w();
|
|
2606
|
+
if (i)
|
|
2607
|
+
return /* @__PURE__ */ n(I, { children: a("ai.errors.unexpected") });
|
|
2608
|
+
const s = o != null ? o : "Oops, no data came back for that.";
|
|
2609
|
+
return /* @__PURE__ */ n(Ce, { text: r ? "Loading..." : s });
|
|
2610
|
+
}), Hn = $e({
|
|
2560
2611
|
componentName: "GetNlgQueryResult"
|
|
2561
2612
|
})(function(t) {
|
|
2562
|
-
const { data:
|
|
2613
|
+
const { data: o, isLoading: r, isError: i } = ne(t), { t: a } = w();
|
|
2563
2614
|
if (i)
|
|
2564
|
-
return /* @__PURE__ */
|
|
2565
|
-
const s =
|
|
2566
|
-
return /* @__PURE__ */
|
|
2615
|
+
return /* @__PURE__ */ n(I, { children: a("ai.errors.unexpected") });
|
|
2616
|
+
const s = o != null ? o : "Oops, no data came back for that.";
|
|
2617
|
+
return /* @__PURE__ */ n(Ce, { text: r ? "Loading..." : s });
|
|
2567
2618
|
});
|
|
2568
|
-
function
|
|
2619
|
+
function hn({ theme: e }) {
|
|
2569
2620
|
const t = e.general.brandColor;
|
|
2570
|
-
return /* @__PURE__ */
|
|
2621
|
+
return /* @__PURE__ */ g(
|
|
2571
2622
|
"svg",
|
|
2572
2623
|
{
|
|
2573
2624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2576,7 +2627,7 @@ function sn({ theme: e }) {
|
|
|
2576
2627
|
viewBox: "-2 -3 24 24",
|
|
2577
2628
|
fill: "none",
|
|
2578
2629
|
children: [
|
|
2579
|
-
/* @__PURE__ */
|
|
2630
|
+
/* @__PURE__ */ n(
|
|
2580
2631
|
"path",
|
|
2581
2632
|
{
|
|
2582
2633
|
"fill-rule": "evenodd",
|
|
@@ -2585,7 +2636,7 @@ function sn({ theme: e }) {
|
|
|
2585
2636
|
fill: t
|
|
2586
2637
|
}
|
|
2587
2638
|
),
|
|
2588
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ n(
|
|
2589
2640
|
"path",
|
|
2590
2641
|
{
|
|
2591
2642
|
"fill-rule": "evenodd",
|
|
@@ -2594,7 +2645,7 @@ function sn({ theme: e }) {
|
|
|
2594
2645
|
fill: t
|
|
2595
2646
|
}
|
|
2596
2647
|
),
|
|
2597
|
-
/* @__PURE__ */
|
|
2648
|
+
/* @__PURE__ */ n(
|
|
2598
2649
|
"path",
|
|
2599
2650
|
{
|
|
2600
2651
|
"fill-rule": "evenodd",
|
|
@@ -2607,77 +2658,77 @@ function sn({ theme: e }) {
|
|
|
2607
2658
|
}
|
|
2608
2659
|
);
|
|
2609
2660
|
}
|
|
2610
|
-
const
|
|
2661
|
+
const pn = u.div`
|
|
2611
2662
|
display: flex;
|
|
2612
2663
|
flex-direction: row;
|
|
2613
2664
|
align-items: center;
|
|
2614
2665
|
gap: 10px;
|
|
2615
2666
|
margin: 24px 0;
|
|
2616
2667
|
max-width: 640px;
|
|
2617
|
-
`,
|
|
2668
|
+
`, gn = u.div`
|
|
2618
2669
|
align-self: flex-start;
|
|
2619
|
-
`,
|
|
2620
|
-
const { themeSettings:
|
|
2621
|
-
return /* @__PURE__ */
|
|
2622
|
-
|
|
2670
|
+
`, Cn = ({ summary: e, nlgRequest: t }) => {
|
|
2671
|
+
const { themeSettings: o } = m();
|
|
2672
|
+
return /* @__PURE__ */ n(
|
|
2673
|
+
Le,
|
|
2623
2674
|
{
|
|
2624
2675
|
sourceId: t.jaql.datasource.title,
|
|
2625
2676
|
data: t,
|
|
2626
2677
|
type: "chart/insights",
|
|
2627
2678
|
buttonVisibility: "always",
|
|
2628
|
-
renderContent: (r) => /* @__PURE__ */
|
|
2629
|
-
/* @__PURE__ */
|
|
2630
|
-
/* @__PURE__ */
|
|
2679
|
+
renderContent: (r) => /* @__PURE__ */ g(pn, { theme: o, children: [
|
|
2680
|
+
/* @__PURE__ */ n(gn, { theme: o, children: /* @__PURE__ */ n(hn, { theme: o }) }),
|
|
2681
|
+
/* @__PURE__ */ n(Ce, { text: e }),
|
|
2631
2682
|
r
|
|
2632
2683
|
] })
|
|
2633
2684
|
}
|
|
2634
2685
|
);
|
|
2635
|
-
},
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2686
|
+
}, In = ({ nlqResponse: e, onDataReady: t, filters: o = [] }) => {
|
|
2687
|
+
e.queryTitle = At(e.queryTitle);
|
|
2688
|
+
const { connectToWidgetProps: r } = Zt({
|
|
2689
|
+
initialFilters: o
|
|
2690
|
+
}), [i, a] = $(null);
|
|
2691
|
+
oe(() => {
|
|
2692
|
+
const p = pe(e, {
|
|
2641
2693
|
useCustomizedStyleOptions: !0
|
|
2642
2694
|
});
|
|
2643
2695
|
if (!p)
|
|
2644
2696
|
a(null);
|
|
2645
2697
|
else {
|
|
2646
|
-
const
|
|
2698
|
+
const C = r(p, {
|
|
2647
2699
|
shouldAffectFilters: !1,
|
|
2648
2700
|
applyMode: "filter"
|
|
2649
2701
|
});
|
|
2650
|
-
a(
|
|
2702
|
+
a(C);
|
|
2651
2703
|
}
|
|
2652
2704
|
}, [e, r]);
|
|
2653
|
-
const s =
|
|
2654
|
-
const p = i &&
|
|
2655
|
-
p.filter((
|
|
2705
|
+
const s = D(() => {
|
|
2706
|
+
const p = i && Se(i) ? Jt(i == null ? void 0 : i.filters) : [], C = e.jaql.metadata.filter((h) => !h.jaql.filter).concat(
|
|
2707
|
+
p.filter((h) => !h.config.disabled).map((h) => h.jaql())
|
|
2656
2708
|
);
|
|
2657
|
-
return
|
|
2658
|
-
}, [e, i]), {
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
} = he(s);
|
|
2663
|
-
return l || !i ? /* @__PURE__ */ o($e, {}) : ye(i) ? /* @__PURE__ */ o(
|
|
2664
|
-
te,
|
|
2665
|
-
$(w({}, i), {
|
|
2709
|
+
return L(M({}, e), { jaql: L(M({}, e.jaql), { metadata: C }) });
|
|
2710
|
+
}, [e, i]), { data: c, isLoading: l, isError: d } = ne(s);
|
|
2711
|
+
return l || !i ? /* @__PURE__ */ n(Ne, {}) : Se(i) ? /* @__PURE__ */ n(
|
|
2712
|
+
ee,
|
|
2713
|
+
L(M({}, i), {
|
|
2666
2714
|
highlightSelectionDisabled: !0,
|
|
2667
2715
|
onDataReady: t,
|
|
2668
|
-
topSlot: c && !d && /* @__PURE__ */
|
|
2716
|
+
topSlot: c && !d && /* @__PURE__ */ n(Cn, { nlgRequest: s, summary: c })
|
|
2669
2717
|
})
|
|
2670
|
-
) : /* @__PURE__ */
|
|
2718
|
+
) : /* @__PURE__ */ n(I, {});
|
|
2671
2719
|
};
|
|
2672
2720
|
export {
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2721
|
+
kn as AiContextProvider,
|
|
2722
|
+
En as Chatbot,
|
|
2723
|
+
Nn as GetNlgInsights,
|
|
2724
|
+
Hn as GetNlgQueryResult,
|
|
2725
|
+
In as NlqChartWidget,
|
|
2726
|
+
x1 as useChatSession,
|
|
2727
|
+
Rn as useGetDataSourceFields,
|
|
2728
|
+
Sn as useGetNlgInsights,
|
|
2729
|
+
Mn as useGetNlgQueryResult,
|
|
2730
|
+
Ln as useGetNlqResult,
|
|
2731
|
+
$n as useGetQueryRecommendations,
|
|
2732
|
+
Tn as useLastNlqResponse
|
|
2682
2733
|
};
|
|
2683
2734
|
(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)}})();
|