@sisense/sdk-ui-preact 1.26.0 → 1.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ai.js ADDED
@@ -0,0 +1,3474 @@
1
+ import { aT as be, aB as je, dC as mt, bf as xt, b1 as Te, aD as ft, dD as kt, bz as wt, v as _t, d as se, dE as Ct, dF as yt, C as $, u as Y, dG as He, P as b, a4 as vt, G as ye, s as h, w as L, aC as Ye, dH as Mt, t as qe, $ as Ue, f as Be, Z as f, h as a, O as _, m as T, ag as Dt, dI as It, ae as At, F as q, dJ as St, q as z, E as me, dK as Lt, ar as Nt, ac as jt, br as Q, x as I, ao as Pe, p as M, _ as F, W as fe, dL as Tt, V as zt, a1 as ke, b8 as Et, a2 as K, bv as Zt, dM as Rt, ay as $e, K as Ot, cD as Wt, dN as ee, ce as ne, dO as Gt, dP as Ht, dQ as Qe, dR as Yt, dS as qt, bG as Ut, bH as Bt, dd as Pt, dT as $t, dU as Qt, dV as Ft, bZ as Vt, cd as Jt, dW as Xt, cb as Fe, J as Kt, Q as ea, dX as ta, c9 as aa } from "./useQuery-DOgANgSI-6bbcaeca.js";
2
+ var ra = Object.defineProperty, ze = Object.getOwnPropertySymbols, ia = Object.prototype.hasOwnProperty, oa = Object.prototype.propertyIsEnumerable, Ee = (e, t, r) => t in e ? ra(e, t, {
3
+ enumerable: !0,
4
+ configurable: !0,
5
+ writable: !0,
6
+ value: r
7
+ }) : e[t] = r, le = (e, t) => {
8
+ for (var r in t || (t = {}))
9
+ ia.call(t, r) && Ee(e, r, t[r]);
10
+ if (ze)
11
+ for (var r of ze(t))
12
+ oa.call(t, r) && Ee(e, r, t[r]);
13
+ return e;
14
+ };
15
+ let na = class extends kt {
16
+ constructor(t, r) {
17
+ var i;
18
+ super((i = t.jaql.title) !== null && i !== void 0 ? i : "", r), this.expression = t.jaql.dim || t.jaql.formula, this.metadataItem = t, t.jaql.agg ? this.aggregation = t.jaql.agg : delete this.aggregation, t.jaql.formula ? this.formula = t.jaql.formula : delete this.formula, t.jaql.sort ? this.sortType = wt(t.jaql.sort) : delete this.sortType, this.skipValidation = !0;
19
+ }
20
+ get id() {
21
+ return this.expression;
22
+ }
23
+ jaql() {
24
+ return this.metadataItem;
25
+ }
26
+ };
27
+ const la = {
28
+ text: be.TextAttribute,
29
+ numeric: be.NumericAttribute,
30
+ datetime: be.DateLevel
31
+ };
32
+ function Ve(e) {
33
+ var t;
34
+ return new na(e, (t = la[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
35
+ }
36
+ function ca(e) {
37
+ return !e || !e.jaql.datasource.title || !e.jaql.metadata.length;
38
+ }
39
+ const da = (e) => ({
40
+ dataOptions: {
41
+ columns: e.map(Ve)
42
+ }
43
+ }), sa = Object.freeze({
44
+ convolution: {
45
+ enabled: !0,
46
+ selectedConvolutionType: "bySlicesCount",
47
+ independentSlicesCount: 7
48
+ },
49
+ lineWidth: {
50
+ width: "bold"
51
+ },
52
+ markers: {
53
+ enabled: !1
54
+ },
55
+ legend: {
56
+ enabled: !1
57
+ },
58
+ yAxis: {
59
+ gridLines: !1
60
+ },
61
+ xAxis: {
62
+ gridLines: !1
63
+ }
64
+ }), Ze = Object.freeze({
65
+ line: "line/spline",
66
+ pie: "pie/donut",
67
+ bar: "bar/stacked",
68
+ column: "column/stackedcolumn"
69
+ }), pa = (e, t) => {
70
+ const {
71
+ axesMapping: r = {},
72
+ chartFamily: i
73
+ } = t, o = e.reduce((n, d) => (n[d.jaql.title] = d, n), {}), l = Object.entries(r).reduce((n, d) => {
74
+ const [c, s] = d;
75
+ return n[`${c}`] = Array.isArray(s) ? s.map((p) => {
76
+ var g, u;
77
+ const m = o[p.name];
78
+ if (!m)
79
+ return {
80
+ column: {
81
+ type: "",
82
+ name: p.name
83
+ }
84
+ };
85
+ const C = Ve(m);
86
+ if (m.panel === "measures")
87
+ return {
88
+ column: C,
89
+ sortType: "sortNone"
90
+ };
91
+ if (ft(C.type)) {
92
+ const x = (u = (g = m.format) == null ? void 0 : g.mask) == null ? void 0 : u[m.jaql.level];
93
+ if (x)
94
+ return {
95
+ column: C,
96
+ dateFormat: x
97
+ };
98
+ }
99
+ return C;
100
+ }) : s, n;
101
+ }, {});
102
+ switch (i) {
103
+ case "cartesian":
104
+ return le({
105
+ category: [],
106
+ value: [],
107
+ breakBy: []
108
+ }, l);
109
+ case "categorical":
110
+ return le({
111
+ category: [],
112
+ value: []
113
+ }, l);
114
+ case "scatter":
115
+ return Object.keys(l).forEach((n) => {
116
+ l[`${n}`] = l[`${n}`][0];
117
+ }), l;
118
+ case "scattermap":
119
+ return Object.keys(l).forEach((n) => {
120
+ n !== "geo" && (l[`${n}`] = l[`${n}`][0]);
121
+ }), l;
122
+ case "table":
123
+ return Object.keys(l).length === 0 ? da(e).dataOptions : l;
124
+ case "boxplot":
125
+ case "areamap":
126
+ case "indicator":
127
+ default:
128
+ return l;
129
+ }
130
+ }, Re = (e, t) => {
131
+ var r, i, o, l;
132
+ return t === "x" ? (i = (r = e.axesMapping.category) != null ? r : e.axesMapping.x) == null ? void 0 : i.map((n) => n.name).join(", ") : (l = (o = e.axesMapping.value) != null ? o : e.axesMapping.y) == null ? void 0 : l.map((n) => n.name).join(", ");
133
+ }, ga = (e, t, r = !0) => {
134
+ const i = pa(e, t);
135
+ let o;
136
+ return r && t.chartType in Ze ? o = je(je(sa, {
137
+ subtype: Ze[t.chartType]
138
+ }), {
139
+ legend: {
140
+ enabled: !0,
141
+ position: "right"
142
+ },
143
+ yAxis: {
144
+ title: {
145
+ enabled: !0,
146
+ text: Re(t, "y")
147
+ }
148
+ },
149
+ xAxis: {
150
+ title: {
151
+ enabled: !0,
152
+ text: Re(t, "x")
153
+ }
154
+ }
155
+ }) : o = mt(), {
156
+ dataOptions: i,
157
+ chartStyleOptions: o
158
+ };
159
+ }, ha = (e) => "chartType" in e ? e : {
160
+ chartType: "table",
161
+ chartFamily: "table",
162
+ axesMapping: {}
163
+ }, ua = (e) => e.map((t) => xt(t.jaql)), ba = (e) => e.reduce((t, r) => {
164
+ if ((r.panel === "scope" || r.jaql.filter) && t.metadataFilters.push(Te(r)), r.panel !== "scope") {
165
+ const i = Te(r);
166
+ delete i.jaql.filter, t.metadataColumns.push(i);
167
+ }
168
+ return t;
169
+ }, {
170
+ metadataColumns: [],
171
+ metadataFilters: []
172
+ }), ma = (e, t) => {
173
+ if (!ca(e))
174
+ try {
175
+ const {
176
+ useCustomizedStyleOptions: r = !1
177
+ } = t || {}, {
178
+ jaql: i,
179
+ chartRecommendations: o,
180
+ queryTitle: l
181
+ } = e, {
182
+ metadata: n,
183
+ datasource: {
184
+ title: d,
185
+ id: c,
186
+ type: s = "elasticube"
187
+ }
188
+ } = i, p = ha(o), g = p.chartType.toLowerCase(), u = {
189
+ cornerRadius: "Small",
190
+ header: {
191
+ // remove info button and render empty toolbar instead
192
+ renderToolbar: () => null
193
+ }
194
+ }, {
195
+ metadataColumns: m,
196
+ metadataFilters: C
197
+ } = ba(n), x = ua(C), {
198
+ dataOptions: k,
199
+ chartStyleOptions: N
200
+ } = ga(m, p, r), E = le(le({}, N), u);
201
+ return {
202
+ widgetType: "chart",
203
+ id: l,
204
+ title: l,
205
+ chartType: g,
206
+ dataSource: {
207
+ title: d,
208
+ id: c,
209
+ type: s
210
+ },
211
+ dataOptions: k,
212
+ filters: x,
213
+ styleOptions: E
214
+ };
215
+ } catch (r) {
216
+ console.error(r);
217
+ return;
218
+ }
219
+ }, Je = (e, t) => ma(e, t);
220
+ var xa = Object.defineProperty, fa = Object.defineProperties, ka = Object.getOwnPropertyDescriptors, ce = Object.getOwnPropertySymbols, Xe = Object.prototype.hasOwnProperty, Ke = Object.prototype.propertyIsEnumerable, we = (e, t, r) => t in e ? xa(e, t, {
221
+ enumerable: !0,
222
+ configurable: !0,
223
+ writable: !0,
224
+ value: r
225
+ }) : e[t] = r, v = (e, t) => {
226
+ for (var r in t || (t = {}))
227
+ Xe.call(t, r) && we(e, r, t[r]);
228
+ if (ce)
229
+ for (var r of ce(t))
230
+ Ke.call(t, r) && we(e, r, t[r]);
231
+ return e;
232
+ }, A = (e, t) => fa(e, ka(t)), wa = (e, t) => {
233
+ var r = {};
234
+ for (var i in e)
235
+ Xe.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
236
+ if (e != null && ce)
237
+ for (var i of ce(e))
238
+ t.indexOf(i) < 0 && Ke.call(e, i) && (r[i] = e[i]);
239
+ return r;
240
+ }, j = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r), V = (e, t, r) => new Promise((i, o) => {
241
+ var l = (c) => {
242
+ try {
243
+ d(r.next(c));
244
+ } catch (s) {
245
+ o(s);
246
+ }
247
+ }, n = (c) => {
248
+ try {
249
+ d(r.throw(c));
250
+ } catch (s) {
251
+ o(s);
252
+ }
253
+ }, d = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(l, n);
254
+ d((r = r.apply(e, t)).next());
255
+ });
256
+ function _a(e) {
257
+ return Pt("MuiDialog", e);
258
+ }
259
+ const xe = _t("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), et = /* @__PURE__ */ ye({});
260
+ process.env.NODE_ENV !== "production" && (et.displayName = "DialogContext");
261
+ const Ca = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], ya = se(Ct, {
262
+ name: "MuiDialog",
263
+ slot: "Backdrop",
264
+ overrides: (e, t) => t.backdrop
265
+ })({
266
+ // Improve scrollable dialog support.
267
+ zIndex: -1
268
+ }), va = (e) => {
269
+ const {
270
+ classes: t,
271
+ scroll: r,
272
+ maxWidth: i,
273
+ fullWidth: o,
274
+ fullScreen: l
275
+ } = e, n = {
276
+ root: ["root"],
277
+ container: ["container", `scroll${$(r)}`],
278
+ paper: ["paper", `paperScroll${$(r)}`, `paperWidth${$(String(i))}`, o && "paperFullWidth", l && "paperFullScreen"]
279
+ };
280
+ return Zt(n, _a, t);
281
+ }, Ma = se(yt, {
282
+ name: "MuiDialog",
283
+ slot: "Root",
284
+ overridesResolver: (e, t) => t.root
285
+ })({
286
+ "@media print": {
287
+ // Use !important to override the Modal inline-style.
288
+ position: "absolute !important"
289
+ }
290
+ }), Da = se("div", {
291
+ name: "MuiDialog",
292
+ slot: "Container",
293
+ overridesResolver: (e, t) => {
294
+ const {
295
+ ownerState: r
296
+ } = e;
297
+ return [t.container, t[`scroll${$(r.scroll)}`]];
298
+ }
299
+ })(({
300
+ ownerState: e
301
+ }) => Y({
302
+ height: "100%",
303
+ "@media print": {
304
+ height: "auto"
305
+ },
306
+ // We disable the focus ring for mouse, touch and keyboard users.
307
+ outline: 0
308
+ }, e.scroll === "paper" && {
309
+ display: "flex",
310
+ justifyContent: "center",
311
+ alignItems: "center"
312
+ }, e.scroll === "body" && {
313
+ overflowY: "auto",
314
+ overflowX: "hidden",
315
+ textAlign: "center",
316
+ "&::after": {
317
+ content: '""',
318
+ display: "inline-block",
319
+ verticalAlign: "middle",
320
+ height: "100%",
321
+ width: "0"
322
+ }
323
+ })), Ia = se(He, {
324
+ name: "MuiDialog",
325
+ slot: "Paper",
326
+ overridesResolver: (e, t) => {
327
+ const {
328
+ ownerState: r
329
+ } = e;
330
+ return [t.paper, t[`scrollPaper${$(r.scroll)}`], t[`paperWidth${$(String(r.maxWidth))}`], r.fullWidth && t.paperFullWidth, r.fullScreen && t.paperFullScreen];
331
+ }
332
+ })(({
333
+ theme: e,
334
+ ownerState: t
335
+ }) => Y({
336
+ margin: 32,
337
+ position: "relative",
338
+ overflowY: "auto",
339
+ // Fix IE11 issue, to remove at some point.
340
+ "@media print": {
341
+ overflowY: "visible",
342
+ boxShadow: "none"
343
+ }
344
+ }, t.scroll === "paper" && {
345
+ display: "flex",
346
+ flexDirection: "column",
347
+ maxHeight: "calc(100% - 64px)"
348
+ }, t.scroll === "body" && {
349
+ display: "inline-block",
350
+ verticalAlign: "middle",
351
+ textAlign: "left"
352
+ // 'initial' doesn't work on IE11
353
+ }, !t.maxWidth && {
354
+ maxWidth: "calc(100% - 64px)"
355
+ }, t.maxWidth === "xs" && {
356
+ maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
357
+ [`&.${xe.paperScrollBody}`]: {
358
+ [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
359
+ maxWidth: "calc(100% - 64px)"
360
+ }
361
+ }
362
+ }, t.maxWidth && t.maxWidth !== "xs" && {
363
+ maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
364
+ [`&.${xe.paperScrollBody}`]: {
365
+ [e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 32 * 2)]: {
366
+ maxWidth: "calc(100% - 64px)"
367
+ }
368
+ }
369
+ }, t.fullWidth && {
370
+ width: "calc(100% - 64px)"
371
+ }, t.fullScreen && {
372
+ margin: 0,
373
+ width: "100%",
374
+ maxWidth: "100%",
375
+ height: "100%",
376
+ maxHeight: "none",
377
+ borderRadius: 0,
378
+ [`&.${xe.paperScrollBody}`]: {
379
+ margin: 0,
380
+ maxWidth: "100%"
381
+ }
382
+ })), tt = /* @__PURE__ */ qe(function(e, t) {
383
+ const r = Dt({
384
+ props: e,
385
+ name: "MuiDialog"
386
+ }), i = It(), o = {
387
+ enter: i.transitions.duration.enteringScreen,
388
+ exit: i.transitions.duration.leavingScreen
389
+ }, {
390
+ "aria-describedby": l,
391
+ "aria-labelledby": n,
392
+ BackdropComponent: d,
393
+ BackdropProps: c,
394
+ children: s,
395
+ className: p,
396
+ disableEscapeKeyDown: g = !1,
397
+ fullScreen: u = !1,
398
+ fullWidth: m = !1,
399
+ maxWidth: C = "sm",
400
+ onBackdropClick: x,
401
+ onClick: k,
402
+ onClose: N,
403
+ open: E,
404
+ PaperComponent: y = He,
405
+ PaperProps: O = {},
406
+ scroll: D = "paper",
407
+ TransitionComponent: J = Rt,
408
+ transitionDuration: S = o,
409
+ TransitionProps: re
410
+ } = r, he = At(r, Ca), U = Y({}, r, {
411
+ disableEscapeKeyDown: g,
412
+ fullScreen: u,
413
+ fullWidth: m,
414
+ maxWidth: C,
415
+ scroll: D
416
+ }), X = va(U), B = q(), ie = (w) => {
417
+ B.current = w.target === w.currentTarget;
418
+ }, W = (w) => {
419
+ k && k(w), B.current && (B.current = null, x && x(w), N && N(w, "backdropClick"));
420
+ }, P = St(n), ue = z(() => ({
421
+ titleId: P
422
+ }), [P]);
423
+ return /* @__PURE__ */ a(Ma, Y({
424
+ className: me(X.root, p),
425
+ closeAfterTransition: !0,
426
+ components: {
427
+ Backdrop: ya
428
+ },
429
+ componentsProps: {
430
+ backdrop: Y({
431
+ transitionDuration: S,
432
+ as: d
433
+ }, c)
434
+ },
435
+ disableEscapeKeyDown: g,
436
+ onClose: N,
437
+ open: E,
438
+ ref: t,
439
+ onClick: W,
440
+ ownerState: U
441
+ }, he, {
442
+ children: /* @__PURE__ */ a(J, Y({
443
+ appear: !0,
444
+ in: E,
445
+ timeout: S,
446
+ role: "presentation"
447
+ }, re, {
448
+ children: /* @__PURE__ */ a(Da, {
449
+ className: me(X.container),
450
+ onMouseDown: ie,
451
+ ownerState: U,
452
+ children: /* @__PURE__ */ a(Ia, Y({
453
+ as: y,
454
+ elevation: 24,
455
+ role: "dialog",
456
+ "aria-describedby": l,
457
+ "aria-labelledby": P
458
+ }, O, {
459
+ className: me(X.paper, O.className),
460
+ ownerState: U,
461
+ children: /* @__PURE__ */ a(et.Provider, {
462
+ value: ue,
463
+ children: s
464
+ })
465
+ }))
466
+ })
467
+ }))
468
+ }));
469
+ });
470
+ process.env.NODE_ENV !== "production" && (tt.propTypes = {
471
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
472
+ // │ These PropTypes are generated from the TypeScript type definitions. │
473
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
474
+ // └─────────────────────────────────────────────────────────────────────┘
475
+ /**
476
+ * The id(s) of the element(s) that describe the dialog.
477
+ */
478
+ "aria-describedby": b.string,
479
+ /**
480
+ * The id(s) of the element(s) that label the dialog.
481
+ */
482
+ "aria-labelledby": b.string,
483
+ /**
484
+ * A backdrop component. This prop enables custom backdrop rendering.
485
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
486
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
487
+ * @default styled(Backdrop, {
488
+ * name: 'MuiModal',
489
+ * slot: 'Backdrop',
490
+ * overridesResolver: (props, styles) => {
491
+ * return styles.backdrop;
492
+ * },
493
+ * })({
494
+ * zIndex: -1,
495
+ * })
496
+ */
497
+ BackdropComponent: b.elementType,
498
+ /**
499
+ * @ignore
500
+ */
501
+ BackdropProps: b.object,
502
+ /**
503
+ * Dialog children, usually the included sub-components.
504
+ */
505
+ children: b.node,
506
+ /**
507
+ * Override or extend the styles applied to the component.
508
+ */
509
+ classes: b.object,
510
+ /**
511
+ * @ignore
512
+ */
513
+ className: b.string,
514
+ /**
515
+ * If `true`, hitting escape will not fire the `onClose` callback.
516
+ * @default false
517
+ */
518
+ disableEscapeKeyDown: b.bool,
519
+ /**
520
+ * If `true`, the dialog is full-screen.
521
+ * @default false
522
+ */
523
+ fullScreen: b.bool,
524
+ /**
525
+ * If `true`, the dialog stretches to `maxWidth`.
526
+ *
527
+ * Notice that the dialog width grow is limited by the default margin.
528
+ * @default false
529
+ */
530
+ fullWidth: b.bool,
531
+ /**
532
+ * Determine the max-width of the dialog.
533
+ * The dialog width grows with the size of the screen.
534
+ * Set to `false` to disable `maxWidth`.
535
+ * @default 'sm'
536
+ */
537
+ maxWidth: b.oneOfType([b.oneOf(["xs", "sm", "md", "lg", "xl", !1]), b.string]),
538
+ /**
539
+ * Callback fired when the backdrop is clicked.
540
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
541
+ */
542
+ onBackdropClick: b.func,
543
+ /**
544
+ * @ignore
545
+ */
546
+ onClick: b.func,
547
+ /**
548
+ * Callback fired when the component requests to be closed.
549
+ *
550
+ * @param {object} event The event source of the callback.
551
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
552
+ */
553
+ onClose: b.func,
554
+ /**
555
+ * If `true`, the component is shown.
556
+ */
557
+ open: b.bool.isRequired,
558
+ /**
559
+ * The component used to render the body of the dialog.
560
+ * @default Paper
561
+ */
562
+ PaperComponent: b.elementType,
563
+ /**
564
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
565
+ * @default {}
566
+ */
567
+ PaperProps: b.object,
568
+ /**
569
+ * Determine the container for scrolling the dialog.
570
+ * @default 'paper'
571
+ */
572
+ scroll: b.oneOf(["body", "paper"]),
573
+ /**
574
+ * The system prop that allows defining system overrides as well as additional CSS styles.
575
+ */
576
+ sx: b.oneOfType([b.arrayOf(b.oneOfType([b.func, b.object, b.bool])), b.func, b.object]),
577
+ /**
578
+ * The component used for the transition.
579
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
580
+ * @default Fade
581
+ */
582
+ TransitionComponent: b.elementType,
583
+ /**
584
+ * The duration for the transition, in milliseconds.
585
+ * You may specify a single timeout for all transitions, or individually with an object.
586
+ * @default {
587
+ * enter: theme.transitions.duration.enteringScreen,
588
+ * exit: theme.transitions.duration.leavingScreen,
589
+ * }
590
+ */
591
+ transitionDuration: b.oneOfType([b.number, b.shape({
592
+ appear: b.number,
593
+ enter: b.number,
594
+ exit: b.number
595
+ })]),
596
+ /**
597
+ * Props applied to the transition element.
598
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
599
+ */
600
+ TransitionProps: b.object
601
+ });
602
+ class Aa extends $t {
603
+ constructor(t, r) {
604
+ super(), this.client = t, this.setOptions(r), this.bindMethods(), this.updateResult();
605
+ }
606
+ bindMethods() {
607
+ this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
608
+ }
609
+ setOptions(t) {
610
+ var r;
611
+ const i = this.options;
612
+ this.options = this.client.defaultMutationOptions(t), Qt(i, this.options) || this.client.getMutationCache().notify({
613
+ type: "observerOptionsUpdated",
614
+ mutation: this.currentMutation,
615
+ observer: this
616
+ }), (r = this.currentMutation) == null || r.setOptions(this.options);
617
+ }
618
+ onUnsubscribe() {
619
+ if (!this.hasListeners()) {
620
+ var t;
621
+ (t = this.currentMutation) == null || t.removeObserver(this);
622
+ }
623
+ }
624
+ onMutationUpdate(t) {
625
+ this.updateResult();
626
+ const r = {
627
+ listeners: !0
628
+ };
629
+ t.type === "success" ? r.onSuccess = !0 : t.type === "error" && (r.onError = !0), this.notify(r);
630
+ }
631
+ getCurrentResult() {
632
+ return this.currentResult;
633
+ }
634
+ reset() {
635
+ this.currentMutation = void 0, this.updateResult(), this.notify({
636
+ listeners: !0
637
+ });
638
+ }
639
+ mutate(t, r) {
640
+ return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, A(v({}, this.options), {
641
+ variables: typeof t < "u" ? t : this.options.variables
642
+ })), this.currentMutation.addObserver(this), this.currentMutation.execute();
643
+ }
644
+ updateResult() {
645
+ const t = this.currentMutation ? this.currentMutation.state : Ft(), r = A(v({}, t), {
646
+ isLoading: t.status === "loading",
647
+ isSuccess: t.status === "success",
648
+ isError: t.status === "error",
649
+ isIdle: t.status === "idle",
650
+ mutate: this.mutate,
651
+ reset: this.reset
652
+ });
653
+ this.currentResult = r;
654
+ }
655
+ notify(t) {
656
+ Qe.batch(() => {
657
+ if (this.mutateOptions && this.hasListeners()) {
658
+ if (t.onSuccess) {
659
+ var r, i, o, l;
660
+ (r = (i = this.mutateOptions).onSuccess) == null || r.call(i, this.currentResult.data, this.currentResult.variables, this.currentResult.context), (o = (l = this.mutateOptions).onSettled) == null || o.call(l, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);
661
+ } else if (t.onError) {
662
+ var n, d, c, s;
663
+ (n = (d = this.mutateOptions).onError) == null || n.call(d, this.currentResult.error, this.currentResult.variables, this.currentResult.context), (c = (s = this.mutateOptions).onSettled) == null || c.call(s, void 0, this.currentResult.error, this.currentResult.variables, this.currentResult.context);
664
+ }
665
+ }
666
+ t.listeners && this.listeners.forEach(({
667
+ listener: p
668
+ }) => {
669
+ p(this.currentResult);
670
+ });
671
+ });
672
+ }
673
+ }
674
+ function ve(e, t, r) {
675
+ const i = Gt(e, t), o = ee({
676
+ context: i.context
677
+ }), [l] = M(() => new Aa(o, i));
678
+ F(() => {
679
+ l.setOptions(i);
680
+ }, [l, i]);
681
+ const n = Ht(I((c) => l.subscribe(Qe.batchCalls(c)), [l]), () => l.getCurrentResult(), () => l.getCurrentResult()), d = I((c, s) => {
682
+ l.mutate(c, s).catch(Sa);
683
+ }, [l]);
684
+ if (n.error && Yt(l.options.useErrorBoundary, [n.error]))
685
+ throw n.error;
686
+ return A(v({}, n), {
687
+ mutate: d,
688
+ mutateAsync: n.mutate
689
+ });
690
+ }
691
+ function Sa() {
692
+ }
693
+ class La {
694
+ constructor(t) {
695
+ j(this, "httpClient"), j(this, "getChatContexts", () => V(this, null, function* () {
696
+ return (yield this.httpClient.get("api/datasources//")) || [];
697
+ })), j(this, "getNlgQueryResult", (r) => this.httpClient.post("api/v2/ai/nlg/queryResult", r)), j(this, "getQueryRecommendations", (r, i) => this.httpClient.get(`api/v2/ai/recommendations/query/${r}/${i.numOfRecommendations}`)), j(this, "setLlmConfig", (r) => this.httpClient.post("api/v2/settings/ai/llmProvider", r).catch((i) => {
698
+ console.error("Unable to set llm config", i);
699
+ })), j(this, "getAllChats", () => this.httpClient.get("api/v2/ai/chats")), j(this, "getChatById", (r) => this.httpClient.get(`api/v2/ai/chats/${r}`)), j(this, "createChat", (r) => this.httpClient.post("api/v2/ai/chats", {
700
+ sourceId: r
701
+ })), j(this, "postChat", (r, i) => this.httpClient.post(`api/v2/ai/chats/${r}`, i)), j(this, "deleteChatHistory", (r) => this.httpClient.delete(`api/v2/ai/chats/${r}/history`)), j(this, "sendFeedback", (r) => this.httpClient.post("api/v2/ai/feedback", r)), j(this, "getDataSourceFields", (r) => this.httpClient.post(`api/datasources/${encodeURIComponent(r)}/fields/search`, {
702
+ offset: 0,
703
+ count: 9999
704
+ })), j(this, "ai", {
705
+ getNlgQueryResult: this.getNlgQueryResult,
706
+ getQueryRecommendations: this.getQueryRecommendations,
707
+ setLlmConfig: this.setLlmConfig,
708
+ sendFeedback: this.sendFeedback,
709
+ getDataSourceFields: this.getDataSourceFields,
710
+ chat: {
711
+ getAll: this.getAllChats,
712
+ getById: this.getChatById,
713
+ create: this.createChat,
714
+ post: this.postChat,
715
+ clearHistory: this.deleteChatHistory
716
+ }
717
+ }), this.httpClient = t;
718
+ }
719
+ }
720
+ const Na = new vt({
721
+ defaultOptions: {
722
+ queries: {
723
+ refetchOnWindowFocus: !1,
724
+ refetchOnMount: !1
725
+ }
726
+ }
727
+ }), at = ye(void 0), Z = () => $e(at), ja = ({
728
+ children: e
729
+ }) => {
730
+ const {
731
+ app: t
732
+ } = Ot(), r = z(() => t ? new La(t.httpClient) : void 0, [t]);
733
+ return /* @__PURE__ */ a(at.Provider, {
734
+ value: r,
735
+ children: /* @__PURE__ */ a(Wt, {
736
+ client: Na,
737
+ children: e
738
+ })
739
+ });
740
+ };
741
+ function Zi({
742
+ children: e
743
+ }) {
744
+ return /* @__PURE__ */ a(ja, {
745
+ children: e
746
+ });
747
+ }
748
+ const pe = (e, t = !0) => {
749
+ const r = z(() => {
750
+ var p, g;
751
+ if ("jaql" in e)
752
+ return e;
753
+ {
754
+ const u = Lt(e.dataSource), {
755
+ filters: m = [],
756
+ relations: C
757
+ } = Nt(e.filters), {
758
+ metadata: x,
759
+ filterRelations: k
760
+ } = jt({
761
+ dataSource: e.dataSource,
762
+ attributes: (p = e.dimensions) != null ? p : [],
763
+ measures: (g = e.measures) != null ? g : [],
764
+ filters: m,
765
+ filterRelations: C,
766
+ highlights: []
767
+ }, !0);
768
+ return {
769
+ jaql: {
770
+ datasource: u,
771
+ metadata: x,
772
+ filterRelations: k
773
+ }
774
+ };
775
+ }
776
+ }, [e]), i = Z(), {
777
+ data: o,
778
+ error: l,
779
+ isError: n,
780
+ isLoading: d,
781
+ isSuccess: c,
782
+ refetch: s
783
+ } = Q({
784
+ queryKey: ["getNlgQueryResult", r, i],
785
+ queryFn: () => i == null ? void 0 : i.ai.getNlgQueryResult(r),
786
+ select: (p) => {
787
+ var g;
788
+ return (g = p == null ? void 0 : p.data) == null ? void 0 : g.answer;
789
+ },
790
+ enabled: !!i && t
791
+ });
792
+ return {
793
+ isLoading: d,
794
+ isError: n,
795
+ isSuccess: c,
796
+ data: o,
797
+ error: l,
798
+ refetch: I(() => {
799
+ s();
800
+ }, [s])
801
+ };
802
+ }, Ta = (e) => {
803
+ const t = e, {
804
+ enabled: r
805
+ } = t, i = wa(t, ["enabled"]);
806
+ return pe(i, r);
807
+ }, Ri = Pe("useGetNlgQueryResult")(Ta), rt = Object.freeze({
808
+ enableFollowupQuestions: !1,
809
+ enableHeader: !0,
810
+ enableInsights: !0,
811
+ numOfRecommendations: 4,
812
+ numOfRecentPrompts: 5
813
+ }), it = ye(v({}, rt)), R = () => $e(it), za = ({
814
+ children: e,
815
+ value: t
816
+ }) => {
817
+ const {
818
+ t: r
819
+ } = _(), i = Object.entries(t).reduce((o, [l, n]) => (n !== void 0 && (o[l] = n), o), A(v({}, rt), {
820
+ inputPromptText: r("ai.config.inputPromptText"),
821
+ welcomeText: r("ai.config.welcomeText"),
822
+ suggestionsWelcomeText: r("ai.config.suggestionsWelcomeText")
823
+ }));
824
+ return /* @__PURE__ */ a(it.Provider, {
825
+ value: i,
826
+ children: e
827
+ });
828
+ }, ot = (e) => {
829
+ const {
830
+ contextTitle: t,
831
+ count: r
832
+ } = e, i = Z(), {
833
+ numOfRecommendations: o
834
+ } = R(), l = r ?? o, n = l > 0, {
835
+ isLoading: d,
836
+ isError: c,
837
+ isSuccess: s,
838
+ data: p,
839
+ error: g,
840
+ refetch: u
841
+ } = Q({
842
+ queryKey: ["getQueryRecommendations", t, l, i],
843
+ queryFn: () => i == null ? void 0 : i.ai.getQueryRecommendations(t, {
844
+ numOfRecommendations: l
845
+ }),
846
+ enabled: !!i && n
847
+ });
848
+ return {
849
+ isLoading: n ? d : !1,
850
+ isError: n ? c : !1,
851
+ isSuccess: n ? s : !1,
852
+ data: n && p ? p : [],
853
+ error: n ? g : null,
854
+ refetch: I(() => {
855
+ n && u();
856
+ }, [u, n])
857
+ };
858
+ }, Oi = Pe("useGetQueryRecommendations")(ot), Me = "chatHistory", Ea = (e) => {
859
+ const t = Z(), {
860
+ hideHistory: r
861
+ } = R();
862
+ return Q({
863
+ queryKey: [Me, e, t],
864
+ queryFn: () => V(void 0, null, function* () {
865
+ if (!t || !e)
866
+ return;
867
+ if (r)
868
+ return [];
869
+ const i = yield t.ai.chat.getById(e);
870
+ return i == null ? void 0 : i.chatHistory;
871
+ }),
872
+ enabled: !!t && !!e
873
+ });
874
+ }, nt = (e) => {
875
+ const t = Z(), r = ee();
876
+ return ve({
877
+ mutationFn: () => V(void 0, null, function* () {
878
+ if (!(!t || !e))
879
+ return t.ai.chat.clearHistory(e);
880
+ }),
881
+ onError: (i) => {
882
+ console.error("Error when clearing history:", i);
883
+ },
884
+ onSettled: () => {
885
+ e && r.setQueriesData([Me, e], []);
886
+ }
887
+ });
888
+ }, lt = (e) => {
889
+ const {
890
+ data: t,
891
+ isLoading: r,
892
+ isError: i
893
+ } = Ea(e), {
894
+ mutate: o
895
+ } = nt(e);
896
+ return F(() => {
897
+ i && o();
898
+ }, [i, o]), {
899
+ history: t,
900
+ isLoading: r,
901
+ isError: i
902
+ };
903
+ }, ct = () => {
904
+ const e = Z(), {
905
+ data: t,
906
+ isLoading: r,
907
+ fetchStatus: i
908
+ } = Q({
909
+ queryKey: ["getDataTopics", e],
910
+ queryFn: () => V(void 0, null, function* () {
911
+ if (e)
912
+ return e.getChatContexts();
913
+ }),
914
+ enabled: !!e
915
+ });
916
+ return {
917
+ data: t,
918
+ isLoading: r,
919
+ fetchStatus: i
920
+ };
921
+ }, dt = () => {
922
+ const e = Z(), {
923
+ data: t,
924
+ isLoading: r
925
+ } = Q({
926
+ queryKey: ["getAllChats", e],
927
+ queryFn: () => e == null ? void 0 : e.ai.chat.getAll(),
928
+ enabled: !!e
929
+ });
930
+ return {
931
+ data: t ?? [],
932
+ isLoading: r
933
+ };
934
+ }, Za = (e, t) => {
935
+ const r = ee(), i = Z(), o = ve({
936
+ mutationFn: () => V(void 0, null, function* () {
937
+ if (!(!i || !e))
938
+ return i.ai.chat.create(e);
939
+ }),
940
+ onSuccess: () => r.invalidateQueries(["getAllChats"])
941
+ });
942
+ return F(() => {
943
+ t && o.isIdle && o.mutate();
944
+ }, [t, o]), o;
945
+ }, Ra = (e, t) => {
946
+ switch (e.responseType = e.responseType.toLowerCase(), e.responseType) {
947
+ case "nlq":
948
+ return {
949
+ content: JSON.stringify(e.data),
950
+ role: "assistant",
951
+ type: "nlq"
952
+ };
953
+ case "text":
954
+ case "error":
955
+ return {
956
+ content: e.data.answer,
957
+ role: "assistant"
958
+ };
959
+ default:
960
+ throw Error(`${t}${JSON.stringify(e)}`);
961
+ }
962
+ }, Oa = (e) => {
963
+ const t = ee(), r = I((c) => {
964
+ e && t.setQueriesData([Me, e], (s) => s && [...s, c]);
965
+ }, [t, e]), {
966
+ enableFollowupQuestions: i
967
+ } = R(), {
968
+ t: o
969
+ } = _(), l = Z(), {
970
+ mutate: n,
971
+ isLoading: d
972
+ } = ve({
973
+ mutationFn: (c) => V(void 0, null, function* () {
974
+ if (!(!l || !e))
975
+ return l.ai.chat.post(e, {
976
+ text: c,
977
+ options: {
978
+ enableFollowup: i
979
+ }
980
+ });
981
+ }),
982
+ onMutate: (c) => {
983
+ r({
984
+ content: c,
985
+ role: "user"
986
+ });
987
+ },
988
+ onError: (c) => {
989
+ c instanceof Error && (console.error("Error when sending message:", c.message), r({
990
+ content: o("errors.unexpectedChatResponse"),
991
+ role: "assistant"
992
+ }));
993
+ },
994
+ onSuccess: (c) => {
995
+ if (!c)
996
+ return;
997
+ const s = o("ai.errors.unknownResponse");
998
+ r(Ra(c, s));
999
+ }
1000
+ });
1001
+ return {
1002
+ mutate: n,
1003
+ isLoading: d
1004
+ };
1005
+ }, De = (e) => !!e && "type" in e && e.type === "nlq", Wa = (e) => !!e && "type" in e && e.type === "text", Ga = (e) => {
1006
+ var t, r;
1007
+ const {
1008
+ t: i
1009
+ } = _(), {
1010
+ data: o,
1011
+ isLoading: l
1012
+ } = ct(), {
1013
+ data: n,
1014
+ isLoading: d
1015
+ } = dt(), c = (t = o == null ? void 0 : o.find((D) => D.title === e)) == null ? void 0 : t.title, s = (r = n.find((D) => D.contextTitle === c)) == null ? void 0 : r.chatId, p = l || !!c, g = d || !!s, [u, m] = M(null), {
1016
+ isError: C
1017
+ } = Za(c, p && !g), {
1018
+ history: x,
1019
+ isLoading: k,
1020
+ isError: N
1021
+ } = lt(s);
1022
+ F(() => {
1023
+ C ? m(new fe("ai.errors.chatUnavailable")) : N && m(new fe("ai.errors.fetchHistory"));
1024
+ }, [C, N, i]);
1025
+ const {
1026
+ mutate: E,
1027
+ isLoading: y
1028
+ } = Oa(s), O = z(() => {
1029
+ if (x != null && x.length) {
1030
+ const D = x[x.length - 1];
1031
+ if (De(D))
1032
+ return JSON.parse(D.content);
1033
+ }
1034
+ return null;
1035
+ }, [x]);
1036
+ return {
1037
+ chatId: s,
1038
+ history: x ?? [],
1039
+ lastNlqResponse: O,
1040
+ sendMessage: E,
1041
+ isAwaitingResponse: y,
1042
+ isLoading: k,
1043
+ lastError: u
1044
+ };
1045
+ }, Wi = ({
1046
+ contextTitle: e
1047
+ }) => {
1048
+ var t;
1049
+ const {
1050
+ data: r
1051
+ } = dt(), i = (t = r.find((l) => l.contextTitle === e)) == null ? void 0 : t.chatId, {
1052
+ history: o
1053
+ } = lt(i);
1054
+ return z(() => {
1055
+ if (o != null && o.length) {
1056
+ const l = o[o.length - 1];
1057
+ if (De(l))
1058
+ return JSON.parse(l.content);
1059
+ }
1060
+ return null;
1061
+ }, [o]);
1062
+ }, Gi = (e) => {
1063
+ const t = Z(), {
1064
+ data: r,
1065
+ isLoading: i
1066
+ } = Q({
1067
+ queryKey: ["getDataSourceFields", e, t],
1068
+ queryFn: () => e ? t == null ? void 0 : t.ai.getDataSourceFields(e) : void 0,
1069
+ select: (o) => o,
1070
+ enabled: !!t && !!e
1071
+ });
1072
+ return {
1073
+ data: r,
1074
+ isLoading: i
1075
+ };
1076
+ }, Ha = 500, Ya = 500, qa = 500, Ua = 900, Ba = h.div`
1077
+ box-sizing: border-box;
1078
+ position: relative;
1079
+ display: flex;
1080
+ flex-direction: column;
1081
+ border: 1px solid #c6c9ce;
1082
+ border-radius: ${({
1083
+ theme: e
1084
+ }) => e.aiChat.borderRadius};
1085
+ background-color: ${({
1086
+ theme: e
1087
+ }) => e.aiChat.backgroundColor};
1088
+ overflow: hidden;
1089
+
1090
+ min-width: ${Ha}px;
1091
+ min-height: ${Ya}px;
1092
+ width: ${({
1093
+ width: e
1094
+ }) => e ? Oe(e) : `${qa}px`};
1095
+ height: ${({
1096
+ height: e
1097
+ }) => e ? Oe(e) : `${Ua}px`};
1098
+
1099
+ ${({
1100
+ theme: e
1101
+ }) => L`
1102
+ font-size: ${e.aiChat.primaryFontSize[0]};
1103
+ line-height: ${e.aiChat.primaryFontSize[1]};
1104
+ `}
1105
+ border: ${({
1106
+ theme: e
1107
+ }) => e.aiChat.border === !1 ? "none" : e.aiChat.border};
1108
+ `;
1109
+ function Oe(e) {
1110
+ return typeof e == "number" ? `${e}px` : e;
1111
+ }
1112
+ function Pa({
1113
+ spin: e
1114
+ }) {
1115
+ return /* @__PURE__ */ a("svg", {
1116
+ xmlns: "http://www.w3.org/2000/svg",
1117
+ width: "24",
1118
+ height: "24",
1119
+ viewBox: "0 0 24 24",
1120
+ fill: "none",
1121
+ className: `${e ? "csdk-animate-spin" : ""}`,
1122
+ children: [/* @__PURE__ */ a("path", {
1123
+ fillRule: "evenodd",
1124
+ clipRule: "evenodd",
1125
+ d: "M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",
1126
+ fill: "#262E3D",
1127
+ fillOpacity: "0.3"
1128
+ }), /* @__PURE__ */ a("path", {
1129
+ fillRule: "evenodd",
1130
+ clipRule: "evenodd",
1131
+ d: "M20 12C20 16.4183 16.4183 20 12 20C11.2844 20 10.5908 19.906 9.93078 19.7298C9.96227 19.5889 9.97888 19.4423 9.97888 19.2918C9.97888 18.1873 9.08345 17.2918 7.97888 17.2918C6.87431 17.2918 5.97888 18.1873 5.97888 19.2918C5.97888 20.3964 6.87431 21.2918 7.97888 21.2918C8.56576 21.2918 9.0936 21.0391 9.45946 20.6364C10.2652 20.8731 11.1178 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3V4C16.4183 4 20 7.58172 20 12Z",
1132
+ fill: "#22C3C3"
1133
+ })]
1134
+ });
1135
+ }
1136
+ function ge() {
1137
+ return /* @__PURE__ */ a("div", {
1138
+ className: "csdk-m-auto",
1139
+ "aria-label": "loading spinner",
1140
+ children: /* @__PURE__ */ a(Pa, {
1141
+ spin: !0
1142
+ })
1143
+ });
1144
+ }
1145
+ function $a({
1146
+ theme: e
1147
+ }) {
1148
+ return /* @__PURE__ */ a("svg", {
1149
+ width: "24",
1150
+ height: "24",
1151
+ viewBox: "0 0 24 24",
1152
+ fill: "none",
1153
+ xmlns: "http://www.w3.org/2000/svg",
1154
+ children: /* @__PURE__ */ a("path", {
1155
+ d: "M4 14L0 10L24 0L14 24L10 20L8.47667 16.9533L19 6.4L20 4.00001L17.6099 5L7.04354 15.5218L4 14Z",
1156
+ fill: e.aiChat.icons.color
1157
+ })
1158
+ });
1159
+ }
1160
+ function Qa({
1161
+ theme: e
1162
+ }) {
1163
+ const t = e.aiChat.icons.color;
1164
+ return /* @__PURE__ */ a("svg", {
1165
+ xmlns: "http://www.w3.org/2000/svg",
1166
+ width: "25",
1167
+ height: "25",
1168
+ viewBox: "0 0 25 25",
1169
+ fill: "none",
1170
+ children: [/* @__PURE__ */ a("path", {
1171
+ 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",
1172
+ fill: t
1173
+ }), /* @__PURE__ */ a("path", {
1174
+ 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",
1175
+ fill: t
1176
+ }), /* @__PURE__ */ a("path", {
1177
+ 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",
1178
+ fill: t
1179
+ })]
1180
+ });
1181
+ }
1182
+ const Fa = h.div`
1183
+ display: flex;
1184
+ flex-direction: column;
1185
+ row-gap: 4px;
1186
+ `, Va = h.div`
1187
+ font-size: 11px;
1188
+ line-height: 18px;
1189
+ font-weight: 300;
1190
+ color: ${({
1191
+ theme: e
1192
+ }) => e.aiChat.dropup.headers.textColor};
1193
+ cursor: pointer;
1194
+ padding: 4px 12px;
1195
+ &:hover {
1196
+ background-color: ${({
1197
+ theme: e
1198
+ }) => e.aiChat.dropup.headers.hover.backgroundColor};
1199
+ }
1200
+ `, Ja = h.div`
1201
+ font-size: ${({
1202
+ theme: e
1203
+ }) => e.aiChat.primaryFontSize[0]};
1204
+ line-height: ${({
1205
+ theme: e
1206
+ }) => e.aiChat.primaryFontSize[1]};
1207
+ color: ${({
1208
+ theme: e
1209
+ }) => e.aiChat.dropup.items.textColor};
1210
+ cursor: pointer;
1211
+ padding: 4px 12px;
1212
+ &:hover {
1213
+ background-color: ${({
1214
+ theme: e
1215
+ }) => e.aiChat.dropup.items.hover.backgroundColor};
1216
+ }
1217
+ `;
1218
+ function Xa({
1219
+ title: e,
1220
+ items: t,
1221
+ onSelect: r,
1222
+ alwaysExpanded: i = !1
1223
+ }) {
1224
+ const [o, l] = M(!1), {
1225
+ themeSettings: n
1226
+ } = f();
1227
+ return /* @__PURE__ */ a(Fa, {
1228
+ children: [/* @__PURE__ */ a(Va, {
1229
+ onClick: () => l((d) => !d),
1230
+ theme: n,
1231
+ children: e.toUpperCase()
1232
+ }), (o || i) && t.map((d, c) => /* @__PURE__ */ a(Ja, {
1233
+ onClick: () => r(d),
1234
+ theme: n,
1235
+ children: d
1236
+ }, c))]
1237
+ });
1238
+ }
1239
+ const Ka = h.div`
1240
+ font-family: ${({
1241
+ theme: e
1242
+ }) => e.typography.fontFamily};
1243
+ font-size: ${({
1244
+ theme: e
1245
+ }) => e.aiChat.primaryFontSize[0]};
1246
+ line-height: ${({
1247
+ theme: e
1248
+ }) => e.aiChat.primaryFontSize[1]};
1249
+ background-color: ${({
1250
+ theme: e
1251
+ }) => e.aiChat.dropup.backgroundColor};
1252
+ border-radius: ${({
1253
+ theme: e
1254
+ }) => e.aiChat.dropup.borderRadius};
1255
+ box-shadow: ${({
1256
+ theme: e
1257
+ }) => e.aiChat.dropup.boxShadow};
1258
+ padding-top: 8px;
1259
+ padding-bottom: 8px;
1260
+ display: flex;
1261
+ flex-direction: column;
1262
+ row-gap: 4px;
1263
+ `, er = h.div`
1264
+ font-size: ${({
1265
+ theme: e
1266
+ }) => e.aiChat.primaryFontSize[0]};
1267
+ line-height: ${({
1268
+ theme: e
1269
+ }) => e.aiChat.primaryFontSize[1]};
1270
+ color: ${({
1271
+ theme: e
1272
+ }) => e.aiChat.dropup.items.textColor};
1273
+ padding: 4px 12px;
1274
+ `, _e = (e) => e.startsWith("/");
1275
+ function tr({
1276
+ recentPrompts: e,
1277
+ suggestions: t,
1278
+ isLoading: r,
1279
+ onSelection: i,
1280
+ anchorEl: o,
1281
+ text: l,
1282
+ recommendationsError: n
1283
+ }) {
1284
+ const d = [{
1285
+ title: "/recent searches",
1286
+ items: e,
1287
+ onSelect: i
1288
+ }, {
1289
+ title: "/ai recommendations",
1290
+ items: t,
1291
+ onSelect: i
1292
+ }].filter((g) => g.title.slice(0, l.length) === l), {
1293
+ themeSettings: c
1294
+ } = f(), {
1295
+ t: s
1296
+ } = _(), p = d.length === 1;
1297
+ return /* @__PURE__ */ a(Fe, {
1298
+ open: _e(l) && d.length > 0,
1299
+ anchorEl: o,
1300
+ placement: "top-start",
1301
+ modifiers: [{
1302
+ name: "offset",
1303
+ options: {
1304
+ offset: [0, 4]
1305
+ }
1306
+ }],
1307
+ sx: {
1308
+ zIndex: 3
1309
+ },
1310
+ children: /* @__PURE__ */ a(Ka, {
1311
+ style: {
1312
+ width: o == null ? void 0 : o.offsetWidth
1313
+ },
1314
+ theme: c,
1315
+ children: [r && /* @__PURE__ */ a(ge, {}), !r && !n && d.map((g) => /* @__PURE__ */ a(Xa, A(v({}, g), {
1316
+ alwaysExpanded: p
1317
+ }), g.title)), n && /* @__PURE__ */ a(er, {
1318
+ theme: c,
1319
+ children: s("ai.errors.recommendationsNotAvailable")
1320
+ })]
1321
+ })
1322
+ });
1323
+ }
1324
+ function te({
1325
+ title: e,
1326
+ placement: t = "top",
1327
+ children: r
1328
+ }) {
1329
+ const {
1330
+ themeSettings: i
1331
+ } = f();
1332
+ return /* @__PURE__ */ a(ea, {
1333
+ title: e,
1334
+ placement: t,
1335
+ disableInteractive: !0,
1336
+ componentsProps: {
1337
+ tooltip: {
1338
+ sx: {
1339
+ bgcolor: i.aiChat.tooltips.backgroundColor,
1340
+ color: i.aiChat.tooltips.textColor,
1341
+ paddingX: "16px",
1342
+ paddingY: "12px",
1343
+ fontSize: "13px",
1344
+ fontFamily: i.typography.fontFamily,
1345
+ fontWeight: 400,
1346
+ borderRadius: "4px",
1347
+ boxShadow: i.aiChat.tooltips.boxShadow
1348
+ }
1349
+ },
1350
+ arrow: {
1351
+ sx: {
1352
+ color: i.aiChat.tooltips.backgroundColor
1353
+ }
1354
+ }
1355
+ },
1356
+ arrow: !0,
1357
+ children: r
1358
+ });
1359
+ }
1360
+ const ar = 500, rr = h.div`
1361
+ display: flex;
1362
+ flex-direction: row;
1363
+ align-items: flex-end;
1364
+ justify-content: space-between;
1365
+
1366
+ background-color: ${({
1367
+ theme: e
1368
+ }) => e.aiChat.backgroundColor};
1369
+ `, ir = h.button`
1370
+ height: 34px;
1371
+ background-color: inherit;
1372
+ cursor: pointer;
1373
+ border: none;
1374
+ `, or = h.textarea`
1375
+ font-size: inherit;
1376
+ line-height: inherit;
1377
+ resize: none;
1378
+ overflow-y: auto;
1379
+ box-sizing: border-box;
1380
+ // size style
1381
+ max-height: 88px;
1382
+ width: 100%;
1383
+ // spacing style
1384
+ padding-top: 7px;
1385
+ padding-bottom: 7px;
1386
+ padding-left: 16px;
1387
+ padding-right: 16px;
1388
+ margin-left: 10px;
1389
+ margin-right: 10px;
1390
+ // border style
1391
+ border-width: 1px;
1392
+ border-color: rgb(38 46 61 / 0.15);
1393
+ border-radius: 0.5rem;
1394
+ &:focus {
1395
+ outline: 1px solid ${({
1396
+ theme: e
1397
+ }) => e.aiChat.input.focus.outlineColor};
1398
+ }
1399
+ font-family: inherit;
1400
+
1401
+ color: ${({
1402
+ theme: e
1403
+ }) => e.aiChat.primaryTextColor};
1404
+
1405
+ background-color: ${({
1406
+ theme: e
1407
+ }) => e.aiChat.input.backgroundColor};
1408
+ `, nr = h.button`
1409
+ height: 34px;
1410
+ background-color: inherit;
1411
+ border-style: none;
1412
+
1413
+ color: ${({
1414
+ theme: e
1415
+ }) => e.aiChat.primaryTextColor};
1416
+
1417
+ ${({
1418
+ disabled: e
1419
+ }) => e ? L`
1420
+ opacity: 0.3;
1421
+ cursor: not-allowed;
1422
+ ` : L`
1423
+ opacity: 1;
1424
+ cursor: pointer;
1425
+ `}
1426
+ `, lr = 34;
1427
+ function cr({
1428
+ onSendMessage: e,
1429
+ onClearHistoryClick: t,
1430
+ disabled: r,
1431
+ recentPrompts: i,
1432
+ suggestions: o,
1433
+ isLoading: l,
1434
+ recommendationsError: n,
1435
+ onChange: d
1436
+ }) {
1437
+ const [c, s] = M(""), {
1438
+ inputPromptText: p
1439
+ } = R(), g = I(() => {
1440
+ if (r)
1441
+ return;
1442
+ if (_e(c)) {
1443
+ s("");
1444
+ return;
1445
+ }
1446
+ const y = c.trim();
1447
+ y.length !== 0 && (e(y), s(""));
1448
+ }, [r, e, c]), u = I((y) => {
1449
+ e(y), s("");
1450
+ }, [e]), m = I((y) => {
1451
+ y.key === "Enter" ? (y.preventDefault(), g()) : y.key === "Escape" && _e(c) && s("");
1452
+ }, [g, c]), C = I((y) => {
1453
+ d == null || d(y.target.value), s(y.target.value);
1454
+ }, [d]), x = q(null);
1455
+ ne(() => {
1456
+ x.current && (x.current.style.height = "inherit", x.current.style.height = `${Math.max(
1457
+ x.current.scrollHeight + 2,
1458
+ // account for 1px top/bottom border
1459
+ lr
1460
+ )}px`);
1461
+ }, [c]), ne(() => {
1462
+ x.current && x.current.focus({
1463
+ preventScroll: !0
1464
+ });
1465
+ }, []);
1466
+ const {
1467
+ themeSettings: k
1468
+ } = f(), {
1469
+ t: N
1470
+ } = _(), E = I((y) => {
1471
+ var O;
1472
+ if ((O = document.getElementById("csdk-chatbot-frame")) != null && O.contains(y.relatedTarget)) {
1473
+ const D = (J) => {
1474
+ var S;
1475
+ document.removeEventListener("mouseup", D), document.removeEventListener("keyup", D), J.type === "mouseup" && ((S = document.getSelection()) == null ? void 0 : S.type) !== "Range" && y.target.focus({
1476
+ preventScroll: !0
1477
+ });
1478
+ };
1479
+ document.addEventListener("mouseup", D), document.addEventListener("keyup", D);
1480
+ }
1481
+ }, []);
1482
+ return /* @__PURE__ */ a(rr, {
1483
+ theme: k,
1484
+ children: [/* @__PURE__ */ a(tr, {
1485
+ recentPrompts: i,
1486
+ suggestions: o,
1487
+ isLoading: l,
1488
+ onSelection: u,
1489
+ anchorEl: x.current,
1490
+ text: c,
1491
+ recommendationsError: n
1492
+ }), t && /* @__PURE__ */ a(te, {
1493
+ title: N("ai.buttons.clearChat"),
1494
+ placement: "bottom-start",
1495
+ children: /* @__PURE__ */ a(ir, {
1496
+ "aria-label": "clear history",
1497
+ onClick: t,
1498
+ children: /* @__PURE__ */ a(Qa, {
1499
+ theme: k
1500
+ })
1501
+ })
1502
+ }), /* @__PURE__ */ a(or, {
1503
+ "aria-label": "chat input",
1504
+ onBlur: E,
1505
+ maxLength: ar,
1506
+ ref: x,
1507
+ rows: 1,
1508
+ onChange: C,
1509
+ spellCheck: "true",
1510
+ placeholder: p,
1511
+ value: c,
1512
+ onKeyDown: m,
1513
+ theme: k
1514
+ }), /* @__PURE__ */ a(nr, {
1515
+ "aria-label": "send chat message",
1516
+ disabled: r || c.length === 0,
1517
+ onClick: g,
1518
+ theme: k,
1519
+ children: /* @__PURE__ */ a("span", {
1520
+ "data-state": "closed",
1521
+ children: /* @__PURE__ */ a($a, {
1522
+ theme: k
1523
+ })
1524
+ })
1525
+ })]
1526
+ });
1527
+ }
1528
+ const dr = h.div`
1529
+ display: flex;
1530
+
1531
+ ${({
1532
+ align: e
1533
+ }) => e === "right" ? L`
1534
+ justify-content: flex-end;
1535
+ ` : L`
1536
+ justify-content: flex-start;
1537
+ `}
1538
+ `, st = h.div`
1539
+ font-size: inherit;
1540
+ line-height: inherit;
1541
+ padding-top: 8.5px;
1542
+ padding-bottom: 8.5px;
1543
+ padding-left: 0.5rem;
1544
+ padding-right: 0.5rem;
1545
+ white-space: pre-wrap;
1546
+ overflow-wrap: break-word;
1547
+ box-sizing: border-box;
1548
+
1549
+ ${({
1550
+ align: e
1551
+ }) => e === "right" ? L`
1552
+ text-align: right;
1553
+ border-radius: 10px 10px 0px 10px;
1554
+ ` : L`
1555
+ text-align: left;
1556
+ border-radius: 10px 10px 10px 0px;
1557
+ `}
1558
+
1559
+ ${({
1560
+ align: e
1561
+ }) => e !== "full" ? L`
1562
+ max-width: 85%;
1563
+ ` : ""}
1564
+
1565
+ color: ${({
1566
+ theme: e
1567
+ }) => e.aiChat.primaryTextColor};
1568
+ background-color: ${({
1569
+ theme: e,
1570
+ align: t
1571
+ }) => t === "right" ? e.aiChat.userMessages.backgroundColor : e.aiChat.systemMessages.backgroundColor};
1572
+ `, H = ({
1573
+ align: e,
1574
+ children: t
1575
+ }) => {
1576
+ const {
1577
+ themeSettings: r
1578
+ } = f();
1579
+ return /* @__PURE__ */ a(dr, {
1580
+ theme: r,
1581
+ align: e,
1582
+ children: /* @__PURE__ */ a(st, {
1583
+ theme: r,
1584
+ align: e,
1585
+ children: t
1586
+ })
1587
+ });
1588
+ };
1589
+ function sr() {
1590
+ const {
1591
+ welcomeText: e
1592
+ } = R();
1593
+ return e === !1 ? null : /* @__PURE__ */ a(H, {
1594
+ align: "left",
1595
+ children: e
1596
+ });
1597
+ }
1598
+ const pr = h.div`
1599
+ margin: auto;
1600
+ display: flex;
1601
+ flex-direction: column;
1602
+ align-items: center;
1603
+ row-gap: 21px;
1604
+ `, gr = h.div`
1605
+ color: ${({
1606
+ theme: e
1607
+ }) => e.aiChat.primaryTextColor};
1608
+ text-align: center;
1609
+ font-weight: 600;
1610
+ `, hr = h.div`
1611
+ color: rgba(54, 163, 217, 1);
1612
+ cursor: pointer;
1613
+ `;
1614
+ function pt({
1615
+ text: e,
1616
+ action: t
1617
+ }) {
1618
+ const {
1619
+ themeSettings: r
1620
+ } = f();
1621
+ return /* @__PURE__ */ a(pr, {
1622
+ children: [/* @__PURE__ */ a(gr, {
1623
+ theme: r,
1624
+ children: e
1625
+ }), /* @__PURE__ */ a(qt, {}), t && /* @__PURE__ */ a(hr, {
1626
+ onClick: t.onClick,
1627
+ children: t.text
1628
+ })]
1629
+ });
1630
+ }
1631
+ const oe = h.div`
1632
+ width: 5px;
1633
+ height: 5px;
1634
+ border-radius: 50%;
1635
+ background-color: ${(e) => e.color};
1636
+ animation: hop 0.9s ease-out infinite;
1637
+
1638
+ &:nth-of-type(2) {
1639
+ animation-delay: 0.1s;
1640
+ }
1641
+
1642
+ &:nth-of-type(3) {
1643
+ animation-delay: 0.2s;
1644
+ }
1645
+
1646
+ &:nth-of-type(4) {
1647
+ animation-delay: 0.3s;
1648
+ }
1649
+
1650
+ @keyframes hop {
1651
+ 0%,
1652
+ 40% {
1653
+ transform: translateY(0);
1654
+ }
1655
+ 20% {
1656
+ transform: translateY(-100%);
1657
+ }
1658
+ }
1659
+ `;
1660
+ function Ie() {
1661
+ const {
1662
+ themeSettings: e
1663
+ } = f(), t = e.aiChat.icons.color;
1664
+ return /* @__PURE__ */ a("div", {
1665
+ className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
1666
+ "aria-label": "loading dots",
1667
+ children: [/* @__PURE__ */ a(oe, {
1668
+ color: t
1669
+ }), /* @__PURE__ */ a(oe, {
1670
+ color: t
1671
+ }), /* @__PURE__ */ a(oe, {
1672
+ color: t
1673
+ }), /* @__PURE__ */ a(oe, {
1674
+ color: t
1675
+ })]
1676
+ });
1677
+ }
1678
+ const ur = h.div`
1679
+ display: flex;
1680
+
1681
+ ${({
1682
+ align: e
1683
+ }) => e === "right" ? L`
1684
+ justify-content: flex-end;
1685
+ ` : L`
1686
+ justify-content: flex-start;
1687
+ `}
1688
+ `, br = h.button`
1689
+ font-family: inherit;
1690
+ font-size: inherit;
1691
+ line-height: inherit;
1692
+ border: ${({
1693
+ theme: e
1694
+ }) => e.aiChat.clickableMessages.border};
1695
+ padding: 0;
1696
+ cursor: pointer;
1697
+
1698
+ color: ${({
1699
+ theme: e
1700
+ }) => e.aiChat.clickableMessages.textColor};
1701
+ background-color: ${({
1702
+ theme: e
1703
+ }) => e.aiChat.clickableMessages.backgroundColor};
1704
+ &:hover {
1705
+ color: ${({
1706
+ theme: e
1707
+ }) => e.aiChat.clickableMessages.hover.textColor};
1708
+ background-color: ${({
1709
+ theme: e
1710
+ }) => e.aiChat.clickableMessages.hover.backgroundColor};
1711
+ }
1712
+ border-radius: 20px;
1713
+
1714
+ ${({
1715
+ align: e
1716
+ }) => e === "right" ? L`
1717
+ text-align: right;
1718
+ ` : L`
1719
+ text-align: left;
1720
+ `}
1721
+
1722
+ ${({
1723
+ align: e
1724
+ }) => e !== "full" ? L`
1725
+ max-width: 382px;
1726
+ ` : ""}
1727
+
1728
+ ${({
1729
+ theme: e
1730
+ }) => {
1731
+ const {
1732
+ borderGradient: t,
1733
+ borderRadius: r
1734
+ } = e.aiChat.suggestions;
1735
+ if (t) {
1736
+ const [i, o] = t;
1737
+ return L`
1738
+ border: none;
1739
+ position: relative;
1740
+ border-radius: ${r};
1741
+ &:before {
1742
+ content: '';
1743
+ position: absolute;
1744
+ top: 0;
1745
+ left: 0;
1746
+ right: 0;
1747
+ bottom: 0;
1748
+ border-radius: ${r};
1749
+ border: 1px solid transparent;
1750
+ background: linear-gradient(30deg, ${i}, ${o}) border-box;
1751
+ -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
1752
+ -webkit-mask-composite: destination-out;
1753
+ mask-composite: exclude;
1754
+ }
1755
+ `;
1756
+ }
1757
+ return "";
1758
+ }}
1759
+ `;
1760
+ function de({
1761
+ children: e,
1762
+ align: t,
1763
+ onClick: r,
1764
+ onMouseEnter: i,
1765
+ onMouseLeave: o,
1766
+ accessibleName: l
1767
+ }) {
1768
+ const {
1769
+ themeSettings: n
1770
+ } = f();
1771
+ return /* @__PURE__ */ a(ur, {
1772
+ align: t,
1773
+ children: /* @__PURE__ */ a(br, {
1774
+ "aria-label": l,
1775
+ theme: n,
1776
+ onClick: r,
1777
+ align: t,
1778
+ onMouseEnter: i,
1779
+ onMouseLeave: o,
1780
+ children: e
1781
+ })
1782
+ });
1783
+ }
1784
+ function mr({
1785
+ onCancel: e,
1786
+ onConfirm: t
1787
+ }) {
1788
+ const {
1789
+ t: r
1790
+ } = _();
1791
+ return /* @__PURE__ */ a(T, {
1792
+ children: [/* @__PURE__ */ a(H, {
1793
+ align: "left",
1794
+ children: r("ai.clearHistoryPrompt")
1795
+ }), /* @__PURE__ */ a("div", {
1796
+ className: "csdk-flex csdk-gap-x-2",
1797
+ children: [/* @__PURE__ */ a(de, {
1798
+ align: "right",
1799
+ onClick: t,
1800
+ accessibleName: "confirm clear chat",
1801
+ children: /* @__PURE__ */ a("div", {
1802
+ className: "csdk-py-[6px] csdk-px-[20px]",
1803
+ children: r("ai.buttons.yes")
1804
+ })
1805
+ }), /* @__PURE__ */ a(de, {
1806
+ align: "right",
1807
+ onClick: e,
1808
+ accessibleName: "cancel clear chat",
1809
+ children: /* @__PURE__ */ a("div", {
1810
+ className: "csdk-py-[6px] csdk-px-[20px]",
1811
+ children: r("ai.buttons.no")
1812
+ })
1813
+ })]
1814
+ })]
1815
+ });
1816
+ }
1817
+ function xr({
1818
+ fillColor: e = "#262E3D"
1819
+ }) {
1820
+ return /* @__PURE__ */ a("svg", {
1821
+ xmlns: "http://www.w3.org/2000/svg",
1822
+ width: "30",
1823
+ height: "30",
1824
+ viewBox: "0 0 30 30",
1825
+ fill: "none",
1826
+ children: [/* @__PURE__ */ a("rect", {
1827
+ x: "1",
1828
+ y: "1",
1829
+ width: "28",
1830
+ height: "28",
1831
+ rx: "14",
1832
+ stroke: "#9EA2AB"
1833
+ }), /* @__PURE__ */ a("path", {
1834
+ fillRule: "evenodd",
1835
+ clipRule: "evenodd",
1836
+ d: "M14.2929 15L9.14645 9.85355C8.95118 9.65829 8.95118 9.34171 9.14645 9.14645C9.34171 8.95118 9.65829 8.95118 9.85355 9.14645L15 14.2929L20.1464 9.14645C20.3417 8.95118 20.6583 8.95118 20.8536 9.14645C21.0488 9.34171 21.0488 9.65829 20.8536 9.85355L15.7071 15L20.8536 20.1464C21.0488 20.3417 21.0488 20.6583 20.8536 20.8536C20.6583 21.0488 20.3417 21.0488 20.1464 20.8536L15 15.7071L9.85355 20.8536C9.65829 21.0488 9.34171 21.0488 9.14645 20.8536C8.95118 20.6583 8.95118 20.3417 9.14645 20.1464L14.2929 15Z",
1837
+ fill: e
1838
+ })]
1839
+ });
1840
+ }
1841
+ const gt = {
1842
+ row: {
1843
+ hover: "rgba(224, 224, 224, 0.3)"
1844
+ },
1845
+ secondary: {
1846
+ default: "rgba(38, 46, 61, 0.1)",
1847
+ hover: "rgba(38, 46, 61, 0.17)"
1848
+ },
1849
+ text: {
1850
+ active: "rgba(38, 46, 61, 1)",
1851
+ content: "rgba(38, 46, 61, 0.8)",
1852
+ secondary: "rgba(38, 46, 61, 0.55)",
1853
+ disabled: "rgba(38, 46, 61, 0.3)",
1854
+ link: "rgba(54, 163, 217, 1)",
1855
+ accented: "rgba(12, 14, 18, 1)",
1856
+ linkButton: "#1eaff3",
1857
+ primary: "#262E3D"
1858
+ },
1859
+ UI: {
1860
+ default: "#6e737d",
1861
+ additional: "rgba(38, 46, 61, 0.4)",
1862
+ guiding: "rgba(38, 46, 61, 0.1)"
1863
+ },
1864
+ background: {
1865
+ workspace: "rgba(255, 255, 255, 1)",
1866
+ supporting: "rgba(249, 249, 251, 1)",
1867
+ priority: "rgba(244, 244, 248, 1)"
1868
+ },
1869
+ primary: {
1870
+ primary: "rgba(255, 203, 5, 1)",
1871
+ default: "#FFC805",
1872
+ hover: "#F2B900"
1873
+ },
1874
+ interaction: {
1875
+ defaultHover: "rgba(12, 14, 18, 0.07)",
1876
+ guidingHover: "rgba(38, 46, 61, 0.17)",
1877
+ linkHovered: "rgba(50, 147, 197, 1)",
1878
+ primaryHovered: "rgba(242, 185, 0, 1)"
1879
+ },
1880
+ semantic: {
1881
+ info: "rgba(52, 150, 200, 1)",
1882
+ success: "rgba(34, 195, 195, 1)",
1883
+ warning: "rgba(242, 185, 0, 1)",
1884
+ error: "rgba(231, 71, 39, 1)",
1885
+ infoBG: "rgba(52, 150, 200, 0.1)",
1886
+ successBG: "rgba(34, 195, 195, 0.1)",
1887
+ warningBG: "rgba(242, 185, 0, 0.1)",
1888
+ errorBG: "rgba(231, 71, 39, 0.1)"
1889
+ },
1890
+ sisenseDark: {
1891
+ text: {
1892
+ active: "rgba(235, 239, 247, 1)",
1893
+ content: "rgba(235, 239, 247, 0.8)",
1894
+ secondary: "rgba(235, 239, 247, 0.55)",
1895
+ disabled: "rgba(235, 239, 247, 0.3)",
1896
+ link: "rgba(50, 147, 197, 1)",
1897
+ accented: "rgba(12, 14, 18, 1)"
1898
+ },
1899
+ ui: {
1900
+ default: "rgba(235, 239, 247, 0.67)",
1901
+ additional: "rgba(235, 239, 247, 0.4)",
1902
+ guiding: "rgba(235, 239, 247, 0.1)"
1903
+ },
1904
+ background: {
1905
+ workspace: "rgba(12, 14, 18, 1)",
1906
+ supporting: "rgba(249, 249, 251, 1)",
1907
+ priority: "rgba(244, 244, 248, 1)"
1908
+ },
1909
+ interaction: {
1910
+ defaultHover: "rgba(12, 14, 18, 0.07)",
1911
+ guidingHover: "rgba(235, 239, 247, 0.17)",
1912
+ linkHovered: "rgba(50, 147, 197, 1)",
1913
+ primaryHovered: "rgba(242, 185, 0, 1)"
1914
+ },
1915
+ semantic: {
1916
+ info: "rgba(52, 150, 200, 1)",
1917
+ success: "rgba(34, 195, 195, 1)",
1918
+ warning: "rgba(242, 185, 0, 1)",
1919
+ error: "rgba(231, 71, 39, 1)",
1920
+ infoBG: "rgba(52, 150, 200, 0.1)",
1921
+ successBG: "rgba(34, 195, 195, 0.1)",
1922
+ warningBG: "rgba(242, 185, 0, 0.1)",
1923
+ errorBG: "rgba(231, 71, 39, 0.1)"
1924
+ }
1925
+ }
1926
+ }, fr = {
1927
+ shouldForwardProp: (e) => !e.startsWith("$")
1928
+ }, ae = h(Ye, fr)(({
1929
+ $hoverColor: e
1930
+ }) => ({
1931
+ padding: 2,
1932
+ "&.MuiIconButton-root:hover": {
1933
+ backgroundColor: e ?? gt.interaction.defaultHover
1934
+ }
1935
+ }));
1936
+ function kr({
1937
+ fill: e = "rgba(38, 46, 61, 0.67)"
1938
+ }) {
1939
+ return /* @__PURE__ */ a("svg", {
1940
+ xmlns: "http://www.w3.org/2000/svg",
1941
+ width: "24",
1942
+ height: "24",
1943
+ viewBox: "0 0 24 24",
1944
+ fill: "none",
1945
+ children: /* @__PURE__ */ a("path", {
1946
+ fillRule: "evenodd",
1947
+ clipRule: "evenodd",
1948
+ d: "M13.0503 10.2426L17.2929 6H14.5C14.2239 6 14 5.77614 14 5.5C14 5.22386 14.2239 5 14.5 5H18.5C18.7761 5 19 5.22386 19 5.5V9.5C19 9.77614 18.7761 10 18.5 10C18.2239 10 18 9.77614 18 9.5V6.70711L13.7574 10.9497C13.5621 11.145 13.2455 11.145 13.0503 10.9497C12.855 10.7545 12.855 10.4379 13.0503 10.2426ZM10.1464 13.1464L6 17.2929V14.5C6 14.2239 5.77614 14 5.5 14C5.22386 14 5 14.2239 5 14.5V18.5C5 18.7761 5.22386 19 5.5 19H9.5C9.77614 19 10 18.7761 10 18.5C10 18.2239 9.77614 18 9.5 18H6.70711L10.8536 13.8536C11.0488 13.6583 11.0488 13.3417 10.8536 13.1464C10.6583 12.9512 10.3417 12.9512 10.1464 13.1464Z",
1949
+ fill: e
1950
+ })
1951
+ });
1952
+ }
1953
+ function wr({
1954
+ fill: e = "rgba(38, 46, 61, 0.67)"
1955
+ }) {
1956
+ return /* @__PURE__ */ a("svg", {
1957
+ xmlns: "http://www.w3.org/2000/svg",
1958
+ width: "24",
1959
+ height: "24",
1960
+ viewBox: "0 0 24 24",
1961
+ fill: "none",
1962
+ children: /* @__PURE__ */ a("path", {
1963
+ fillRule: "evenodd",
1964
+ clipRule: "evenodd",
1965
+ d: "M17.25 12C17.25 14.8995 14.8995 17.25 12 17.25C9.10051 17.25 6.75 14.8995 6.75 12C6.75 9.10051 9.10051 6.75 12 6.75C14.8995 6.75 17.25 9.10051 17.25 12ZM18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12ZM11.625 9.375V10.1239H12.375V9.375H11.625ZM12.375 14.6239V10.8739H11.625V14.6239H12.375Z",
1966
+ fill: e
1967
+ })
1968
+ });
1969
+ }
1970
+ function _r() {
1971
+ return /* @__PURE__ */ a("svg", {
1972
+ xmlns: "http://www.w3.org/2000/svg",
1973
+ width: "24",
1974
+ height: "24",
1975
+ viewBox: "0 0 24 24",
1976
+ fill: "none",
1977
+ children: /* @__PURE__ */ a("path", {
1978
+ fillRule: "evenodd",
1979
+ clipRule: "evenodd",
1980
+ d: "M4.64372 12C4.64372 15.3137 7.33002 18 10.6437 18C12.6857 18 14.4894 16.9799 15.5731 15.4216C15.7307 15.195 16.0347 15.1118 16.2737 15.2498C16.5131 15.3879 16.5964 15.6953 16.4413 15.924C15.1825 17.7803 13.0555 19 10.6437 19C6.77773 19 3.64372 15.866 3.64372 12C3.64372 8.13401 6.77773 5 10.6437 5C13.8766 5 16.5977 7.19162 17.4021 10.1702L18.0347 8.56524C18.1359 8.30833 18.4263 8.18215 18.6832 8.2834C18.9401 8.38466 19.0663 8.67501 18.965 8.93192L17.865 11.723C17.7638 11.9799 17.4734 12.1061 17.2165 12.0048L14.4255 10.9048C14.1685 10.8035 14.0424 10.5132 14.1436 10.2563C14.2449 9.99935 14.5352 9.87317 14.7921 9.97442L16.4897 10.6435C15.8749 7.98316 13.4909 6 10.6437 6C7.33002 6 4.64372 8.68629 4.64372 12Z",
1981
+ fill: "#262E3D",
1982
+ fillOpacity: "0.67"
1983
+ })
1984
+ });
1985
+ }
1986
+ function Cr({
1987
+ fill: e = "rgba(38, 46, 61, 0.67)"
1988
+ }) {
1989
+ return /* @__PURE__ */ a("svg", {
1990
+ xmlns: "http://www.w3.org/2000/svg",
1991
+ width: "24",
1992
+ height: "24",
1993
+ viewBox: "0 0 24 24",
1994
+ fill: "none",
1995
+ children: /* @__PURE__ */ a("path", {
1996
+ fillRule: "evenodd",
1997
+ clipRule: "evenodd",
1998
+ d: "M11 7C11 6.44772 11.4477 6 12 6C12.5523 6 13 6.44772 13 7C13 7.55228 12.5523 8 12 8C11.4477 8 11 7.55228 11 7ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12ZM12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16Z",
1999
+ fill: e
2000
+ })
2001
+ });
2002
+ }
2003
+ const Ae = (e) => Ue(e.chart.backgroundColor), yr = ({
2004
+ title: e
2005
+ }) => {
2006
+ const {
2007
+ themeSettings: t
2008
+ } = f();
2009
+ return /* @__PURE__ */ a(te, {
2010
+ title: e,
2011
+ children: /* @__PURE__ */ a(ae, {
2012
+ disableTouchRipple: !0,
2013
+ $hoverColor: Ae(t),
2014
+ children: /* @__PURE__ */ a(wr, {
2015
+ fill: t.chart.textColor
2016
+ })
2017
+ })
2018
+ });
2019
+ }, vr = ({
2020
+ items: e
2021
+ }) => {
2022
+ const [t, r] = M(null), i = (n) => {
2023
+ r(n.currentTarget);
2024
+ }, o = () => {
2025
+ r(null);
2026
+ }, {
2027
+ themeSettings: l
2028
+ } = f();
2029
+ return /* @__PURE__ */ a(T, {
2030
+ children: [/* @__PURE__ */ a(ae, {
2031
+ onClick: i,
2032
+ $hoverColor: Ae(l),
2033
+ "aria-label": "three dots button",
2034
+ children: /* @__PURE__ */ a(Cr, {
2035
+ fill: l.chart.textColor
2036
+ })
2037
+ }), /* @__PURE__ */ a(ta, {
2038
+ anchorEl: t,
2039
+ anchorOrigin: {
2040
+ vertical: "bottom",
2041
+ horizontal: "center"
2042
+ },
2043
+ transformOrigin: {
2044
+ vertical: "top",
2045
+ horizontal: "right"
2046
+ },
2047
+ open: !!t,
2048
+ onClose: o,
2049
+ children: e.map((n) => /* @__PURE__ */ a(aa, {
2050
+ onClick: () => {
2051
+ n.onClick(), o();
2052
+ },
2053
+ sx: {
2054
+ fontSize: "13px",
2055
+ fontFamily: l.typography.fontFamily,
2056
+ color: gt.text.content
2057
+ },
2058
+ disableRipple: !0,
2059
+ children: [n.icon, /* @__PURE__ */ a("div", {
2060
+ className: "csdk-ml-1",
2061
+ children: n.title
2062
+ })]
2063
+ }, n.title))
2064
+ })]
2065
+ });
2066
+ }, Mr = ({
2067
+ onClick: e
2068
+ }) => {
2069
+ const {
2070
+ themeSettings: t
2071
+ } = f(), {
2072
+ t: r
2073
+ } = _();
2074
+ return /* @__PURE__ */ a(te, {
2075
+ title: r("ai.preview"),
2076
+ children: /* @__PURE__ */ a(ae, {
2077
+ onClick: e,
2078
+ $hoverColor: Ae(t),
2079
+ children: /* @__PURE__ */ a(kr, {
2080
+ fill: t.chart.textColor
2081
+ })
2082
+ })
2083
+ });
2084
+ }, Dr = h.div`
2085
+ display: flex;
2086
+ padding-top: 6px;
2087
+ padding-bottom: 6px;
2088
+ `;
2089
+ function Ir({
2090
+ infoTooltipText: e,
2091
+ onRefresh: t,
2092
+ onExpand: r
2093
+ }) {
2094
+ const i = z(() => [{
2095
+ title: "Refresh",
2096
+ onClick: t,
2097
+ icon: /* @__PURE__ */ a(_r, {})
2098
+ }], [t]);
2099
+ return /* @__PURE__ */ a(Dr, {
2100
+ "aria-label": "chatbot chart toolbar",
2101
+ children: [/* @__PURE__ */ a(yr, {
2102
+ title: e ?? ""
2103
+ }), /* @__PURE__ */ a(vr, {
2104
+ items: i
2105
+ }), /* @__PURE__ */ a(Mr, {
2106
+ onClick: r
2107
+ })]
2108
+ });
2109
+ }
2110
+ function Ar({
2111
+ content: e
2112
+ }) {
2113
+ const [t, r] = M(!1), {
2114
+ themeSettings: i
2115
+ } = f(), {
2116
+ inlineElement: o,
2117
+ expandedElement: l
2118
+ } = z(() => {
2119
+ const n = Je(e, {
2120
+ useCustomizedStyleOptions: !0
2121
+ });
2122
+ if (n === void 0 || !ke(n))
2123
+ throw new fe("errors.otherWidgetTypesNotSupported");
2124
+ const {
2125
+ detailedDescription: d
2126
+ } = e, {
2127
+ styleOptions: c
2128
+ } = n, s = {
2129
+ cornerRadius: "Small",
2130
+ header: {
2131
+ renderToolbar: (u) => /* @__PURE__ */ a(Ir, {
2132
+ infoTooltipText: d,
2133
+ onRefresh: u,
2134
+ onExpand: () => r(!0)
2135
+ })
2136
+ }
2137
+ };
2138
+ let p, g;
2139
+ if (Vt(n.chartType))
2140
+ p = /* @__PURE__ */ a("div", {
2141
+ className: "csdk-h-[245px]",
2142
+ children: /* @__PURE__ */ a(K, A(v({}, n), {
2143
+ styleOptions: s
2144
+ }))
2145
+ }), g = /* @__PURE__ */ a(K, A(v({}, n), {
2146
+ styleOptions: {
2147
+ header: {
2148
+ hidden: !0
2149
+ }
2150
+ }
2151
+ }));
2152
+ else {
2153
+ const u = A(v({}, c), {
2154
+ header: {
2155
+ hidden: !0
2156
+ }
2157
+ }), m = v(A(v({}, c), {
2158
+ legend: void 0,
2159
+ xAxis: void 0,
2160
+ yAxis: void 0
2161
+ }), s);
2162
+ delete m.legend, delete m.xAxis, delete m.yAxis, p = /* @__PURE__ */ a("div", {
2163
+ children: /* @__PURE__ */ a(K, A(v({}, n), {
2164
+ styleOptions: m
2165
+ }))
2166
+ }), g = /* @__PURE__ */ a(K, A(v({}, n), {
2167
+ styleOptions: v({
2168
+ cornerRadius: "None"
2169
+ }, u)
2170
+ }));
2171
+ }
2172
+ return {
2173
+ inlineElement: p,
2174
+ expandedElement: g
2175
+ };
2176
+ }, [e]);
2177
+ return /* @__PURE__ */ a(T, {
2178
+ children: [o, /* @__PURE__ */ a(tt, {
2179
+ open: t,
2180
+ onClose: () => r(!1),
2181
+ maxWidth: "xl",
2182
+ fullWidth: !0,
2183
+ PaperProps: {
2184
+ sx: {
2185
+ backgroundColor: i.chart.backgroundColor,
2186
+ color: i.aiChat.primaryTextColor
2187
+ }
2188
+ },
2189
+ children: [/* @__PURE__ */ a("div", {
2190
+ className: "csdk-flex csdk-items-center csdk-justify-between csdk-mt-[16px] csdk-mx-[16px] csdk-pl-[20px]",
2191
+ children: [/* @__PURE__ */ a("div", {
2192
+ className: "csdk-text-ai-lg csdk-semibold",
2193
+ children: e.queryTitle
2194
+ }), /* @__PURE__ */ a(Ye, {
2195
+ onClick: () => r(!1),
2196
+ "aria-label": "close expanded chart",
2197
+ children: /* @__PURE__ */ a(xr, {
2198
+ fillColor: i.aiChat.primaryTextColor
2199
+ })
2200
+ })]
2201
+ }), /* @__PURE__ */ a("div", {
2202
+ className: "csdk-h-screen csdk-mt-[8px] csdk-mb-[24px] csdk-mx-[16px]",
2203
+ children: l
2204
+ })]
2205
+ })]
2206
+ });
2207
+ }
2208
+ function Sr({
2209
+ theme: e
2210
+ }) {
2211
+ return /* @__PURE__ */ a("svg", {
2212
+ xmlns: "http://www.w3.org/2000/svg",
2213
+ width: "24",
2214
+ height: "24",
2215
+ viewBox: "0 0 24 24",
2216
+ fill: "none",
2217
+ children: /* @__PURE__ */ a("path", {
2218
+ fillRule: "evenodd",
2219
+ clipRule: "evenodd",
2220
+ d: "M18.5798 9.61098C18.8749 9.98744 19.0165 10.391 18.9985 10.8066C18.9804 11.2643 18.7757 11.6227 18.607 11.8426C18.8027 12.3305 18.878 13.0984 18.2245 13.6947C17.7456 14.1315 16.9325 14.3273 15.806 14.2732C15.014 14.237 14.3513 14.0893 14.3243 14.0833H14.3213C14.1708 14.0562 14.011 14.0231 13.8484 13.9869C13.8363 14.1797 13.8696 14.6585 14.2249 15.7367C14.6465 17.0196 14.6225 18.0016 14.1466 18.6581C13.6466 19.3478 12.8485 19.4019 12.6136 19.4019C12.3877 19.4019 12.1799 19.3086 12.0324 19.137C11.6981 18.7484 11.7373 18.0317 11.7793 17.7004C11.3818 16.6342 10.2676 14.02 9.32479 13.2943C9.30668 13.2822 9.2917 13.2671 9.27671 13.2521C8.99949 12.9599 8.81287 12.6437 8.68642 12.3667C8.50861 12.463 8.30687 12.5173 8.08995 12.5173H6.25291C5.56014 12.5173 5 11.954 5 11.2643L5 6.37029C5 5.67764 5.56323 5.11738 6.25291 5.11738H8.08995C8.35803 5.11738 8.60804 5.20179 8.81287 5.34635L9.52051 5.26191C9.62905 5.24692 11.5565 5.00297 13.5352 5.04209C13.8935 5.01502 14.2309 5 14.5441 5C15.0832 5 15.5531 5.04209 15.9445 5.12649C16.8661 5.32222 17.4957 5.71366 17.8148 6.28898C18.0588 6.72865 18.0588 7.16543 18.0197 7.44247C18.6191 7.98454 18.7244 8.58394 18.7033 9.00555C18.6913 9.2495 18.637 9.4573 18.5798 9.61098ZM6.25291 5.93058C6.00896 5.93058 5.81324 6.12939 5.81324 6.37029V11.2674C5.81324 11.5112 6.0119 11.7071 6.25291 11.7071H8.08995C8.33393 11.7071 8.52981 11.5083 8.52981 11.2674V6.37338C8.52981 6.12939 8.33096 5.93352 8.08995 5.93352H6.25291V5.93058ZM17.8088 9.96331C17.6823 9.83083 17.6582 9.6289 17.7547 9.47229C17.7547 9.46935 17.878 9.25849 17.8932 8.96937C17.9142 8.5748 17.7245 8.22555 17.327 7.92731C17.1854 7.81893 17.1282 7.63217 17.1885 7.46351C17.1885 7.46057 17.3179 7.06291 17.1072 6.68645C16.9052 6.32516 16.4566 6.06619 15.7759 5.92162C15.2309 5.80413 14.4899 5.78293 13.5805 5.85529H13.5383C11.6017 5.81309 9.64403 6.06619 9.62302 6.06912H9.61994L9.31583 6.1053C9.3339 6.18955 9.34286 6.27998 9.34286 6.37029V11.2674C9.34286 11.3968 9.32185 11.5233 9.28567 11.6408C9.33992 11.8425 9.49051 12.2914 9.84582 12.6739C11.1982 13.7461 12.5203 17.3631 12.5775 17.5197C12.6017 17.583 12.6075 17.6521 12.5956 17.7214C12.5443 18.0587 12.5624 18.4715 12.6347 18.5949C12.7943 18.5919 13.225 18.5467 13.484 18.1883C13.7912 17.7636 13.7791 17.0046 13.4478 15.9988C12.9419 14.4657 12.8997 13.6587 13.3003 13.3033C13.4991 13.1256 13.7641 13.1165 13.9569 13.1858C14.1406 13.228 14.3153 13.2641 14.4809 13.2912C14.4929 13.2943 14.508 13.2973 14.52 13.3003C15.4447 13.5021 17.1011 13.6255 17.6763 13.1015C18.1642 12.6558 17.8179 12.0655 17.7788 12.0022C17.6673 11.8336 17.7004 11.6137 17.851 11.4782C17.854 11.4752 18.1702 11.177 18.1852 10.7764C18.1973 10.5085 18.0708 10.2343 17.8088 9.96331Z",
2221
+ fill: e.aiChat.icons.color
2222
+ })
2223
+ });
2224
+ }
2225
+ function Lr({
2226
+ onClick: e,
2227
+ disabled: t
2228
+ }) {
2229
+ const {
2230
+ themeSettings: r
2231
+ } = f(), {
2232
+ t: i
2233
+ } = _();
2234
+ return /* @__PURE__ */ a(te, {
2235
+ title: i("ai.buttons.incorrectResponse"),
2236
+ children: /* @__PURE__ */ a(ae, {
2237
+ "aria-label": "thumbs-down",
2238
+ onClick: e,
2239
+ $hoverColor: r.aiChat.icons.feedbackIcons.hoverColor,
2240
+ disabled: t,
2241
+ children: /* @__PURE__ */ a(Sr, {
2242
+ theme: r
2243
+ })
2244
+ })
2245
+ });
2246
+ }
2247
+ function Nr({
2248
+ theme: e
2249
+ }) {
2250
+ return /* @__PURE__ */ a("svg", {
2251
+ xmlns: "http://www.w3.org/2000/svg",
2252
+ width: "24",
2253
+ height: "24",
2254
+ viewBox: "0 0 24 24",
2255
+ fill: "none",
2256
+ children: /* @__PURE__ */ a("path", {
2257
+ fillRule: "evenodd",
2258
+ clipRule: "evenodd",
2259
+ d: "M18.5798 14.7911C18.8749 14.4146 19.0165 14.011 18.9985 13.5954C18.9804 13.1377 18.7757 12.7793 18.607 12.5595C18.8027 12.0715 18.878 11.3036 18.2245 10.7073C17.7456 10.2705 16.9325 10.0748 15.806 10.1289C15.014 10.1651 14.3513 10.3127 14.3243 10.3187H14.3213C14.1708 10.3458 14.011 10.3789 13.8484 10.4151C13.8363 10.2223 13.8696 9.74345 14.2248 8.66522C14.6465 7.38231 14.6225 6.40041 14.1466 5.74397C13.6466 5.05425 12.8485 5 12.6136 5C12.3877 5 12.1799 5.09336 12.0324 5.26499C11.6981 5.6535 11.7373 6.37026 11.7793 6.70158C11.3818 7.76777 10.2676 10.382 9.32479 11.1077C9.30668 11.1198 9.2917 11.1349 9.27671 11.1499C8.99949 11.4421 8.81287 11.7583 8.68642 12.0353C8.50861 11.939 8.30687 11.8848 8.08995 11.8848H6.25291C5.56014 11.8848 5 12.448 5 13.1377V18.0318C5 18.7244 5.56323 19.2847 6.25291 19.2847H8.08995C8.35803 19.2847 8.60804 19.2003 8.81287 19.0557L9.52051 19.1401C9.62905 19.1551 11.5565 19.3991 13.5352 19.36C13.8935 19.387 14.2309 19.402 14.5441 19.402C15.0832 19.402 15.5531 19.36 15.9445 19.2756C16.8661 19.0798 17.4957 18.6884 17.8148 18.1131C18.0588 17.6734 18.0588 17.2366 18.0197 16.9596C18.6191 16.4175 18.7244 15.8181 18.7033 15.3965C18.6913 15.1525 18.637 14.9447 18.5798 14.7911ZM6.25291 18.4715C6.00896 18.4715 5.81324 18.2727 5.81324 18.0318V13.1346C5.81324 12.8908 6.0119 12.6949 6.25291 12.6949H8.08995C8.33393 12.6949 8.52981 12.8937 8.52981 13.1346V18.0287C8.52981 18.2727 8.33096 18.4685 8.08995 18.4685H6.25291V18.4715ZM17.8088 14.4387C17.6823 14.5712 17.6582 14.7731 17.7547 14.9298C17.7547 14.9327 17.878 15.1436 17.8932 15.4327C17.9142 15.8272 17.7245 16.1765 17.327 16.4747C17.1854 16.5831 17.1282 16.7699 17.1885 16.9385C17.1885 16.9415 17.3179 17.3391 17.1072 17.7156C16.9052 18.0769 16.4566 18.3359 15.7759 18.4804C15.2309 18.5979 14.4898 18.6191 13.5805 18.5468H13.5383C11.6017 18.589 9.64403 18.3359 9.62302 18.3329H9.61994L9.31583 18.2967C9.3339 18.2125 9.34286 18.1221 9.34286 18.0318V13.1346C9.34286 13.0052 9.32185 12.8787 9.28567 12.7612C9.33992 12.5595 9.49051 12.1106 9.84582 11.7281C11.1981 10.6559 12.5203 7.03893 12.5775 6.88232C12.6016 6.81908 12.6075 6.74981 12.5956 6.68058C12.5443 6.34323 12.5624 5.93058 12.6347 5.80718C12.7943 5.81015 13.225 5.85529 13.484 6.21365C13.7912 6.63837 13.7791 7.39733 13.4478 8.40316C12.9419 9.93624 12.8997 10.7433 13.3003 11.0987C13.4991 11.2764 13.7641 11.2855 13.9569 11.2162C14.1406 11.174 14.3153 11.1378 14.4809 11.1108C14.4929 11.1077 14.508 11.1048 14.52 11.1017C15.4447 10.8999 17.1011 10.7765 17.6763 11.3005C18.1642 11.7462 17.8179 12.3365 17.7788 12.3998C17.6673 12.5684 17.7004 12.7883 17.851 12.9238C17.854 12.9268 18.1702 13.225 18.1852 13.6256C18.1973 13.8935 18.0708 14.1677 17.8088 14.4387Z",
2260
+ fill: e.aiChat.icons.color
2261
+ })
2262
+ });
2263
+ }
2264
+ function jr({
2265
+ onClick: e,
2266
+ disabled: t
2267
+ }) {
2268
+ const {
2269
+ themeSettings: r
2270
+ } = f(), {
2271
+ t: i
2272
+ } = _();
2273
+ return /* @__PURE__ */ a(te, {
2274
+ title: i("ai.buttons.correctResponse"),
2275
+ children: /* @__PURE__ */ a(ae, {
2276
+ "aria-label": "thumbs-up",
2277
+ onClick: e,
2278
+ $hoverColor: r.aiChat.icons.feedbackIcons.hoverColor,
2279
+ disabled: t,
2280
+ children: /* @__PURE__ */ a(Nr, {
2281
+ theme: r
2282
+ })
2283
+ })
2284
+ });
2285
+ }
2286
+ const Tr = () => {
2287
+ const [e, t] = M(!1), r = q(null), i = I(() => {
2288
+ t(!0);
2289
+ }, []), o = I(() => {
2290
+ t(!1);
2291
+ }, []);
2292
+ return [I((l) => {
2293
+ var n;
2294
+ ((n = r.current) == null ? void 0 : n.nodeType) === Node.ELEMENT_NODE && (r.current.removeEventListener("mouseenter", i), r.current.removeEventListener("mouseleave", o)), (l == null ? void 0 : l.nodeType) === Node.ELEMENT_NODE && (l.addEventListener("mouseenter", i), l.addEventListener("mouseleave", o)), r.current = l;
2295
+ }, [i, o]), e];
2296
+ }, zr = h.div`
2297
+ display: flex;
2298
+ flex-direction: column;
2299
+ row-gap: ${({
2300
+ theme: e
2301
+ }) => e.aiChat.body.gapBetweenMessages};
2302
+ `;
2303
+ function Er({
2304
+ visible: e,
2305
+ onSend: t
2306
+ }) {
2307
+ const [r, i] = M(!1), o = I((n) => {
2308
+ i(!0), t(n === "up" ? 1 : -1);
2309
+ }, [t]);
2310
+ return e ? /* @__PURE__ */ a("div", {
2311
+ className: `csdk-flex csdk-items-center ${`csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${r ? "csdk-opacity-0" : "csdk-opacity-100"}`}`,
2312
+ children: [/* @__PURE__ */ a(jr, {
2313
+ onClick: () => o("up"),
2314
+ disabled: r
2315
+ }), /* @__PURE__ */ a(Lr, {
2316
+ onClick: () => o("down"),
2317
+ disabled: r
2318
+ })]
2319
+ }) : null;
2320
+ }
2321
+ function Ce({
2322
+ sourceId: e,
2323
+ data: t,
2324
+ type: r,
2325
+ buttonVisibility: i = "onHover",
2326
+ renderContent: o
2327
+ }) {
2328
+ const l = Z(), n = Jt(I((g) => {
2329
+ l && l.ai.sendFeedback({
2330
+ sourceId: e,
2331
+ type: r,
2332
+ data: t,
2333
+ rating: g
2334
+ });
2335
+ }, [l, e, t, r]), 200), [d, c] = Tr(), s = z(() => i === "onHover" ? c : i !== "never", [c, i]), {
2336
+ themeSettings: p
2337
+ } = f();
2338
+ return /* @__PURE__ */ a(zr, {
2339
+ ref: d,
2340
+ theme: p,
2341
+ children: o(/* @__PURE__ */ a(Er, {
2342
+ onSend: n,
2343
+ visible: s
2344
+ }))
2345
+ });
2346
+ }
2347
+ const Zr = 18 * 5;
2348
+ function Se({
2349
+ text: e
2350
+ }) {
2351
+ const [t, r] = M(!0), [i, o] = M(!1), {
2352
+ t: l
2353
+ } = _(), n = q(null);
2354
+ return ne(() => {
2355
+ n.current && n.current.scrollHeight > Zr && o(!0);
2356
+ }, [e]), /* @__PURE__ */ a("div", {
2357
+ children: [/* @__PURE__ */ a("div", {
2358
+ ref: n,
2359
+ className: `${t ? "csdk-line-clamp-5" : ""} csdk-whitespace-pre-wrap`,
2360
+ children: e
2361
+ }), i && /* @__PURE__ */ a("div", {
2362
+ className: "csdk-mt-3 csdk-flex csdk-justify-end",
2363
+ children: /* @__PURE__ */ a("div", {
2364
+ className: "csdk-text-ai-xs csdk-text-text-link csdk-cursor-pointer",
2365
+ onClick: () => r((d) => !d),
2366
+ children: l(t ? "ai.buttons.readMore" : "ai.buttons.collapse")
2367
+ })
2368
+ })]
2369
+ });
2370
+ }
2371
+ function Rr({
2372
+ nlgRequest: e
2373
+ }) {
2374
+ const {
2375
+ data: t,
2376
+ isLoading: r,
2377
+ isError: i
2378
+ } = pe(e), {
2379
+ t: o
2380
+ } = _();
2381
+ return r ? /* @__PURE__ */ a(Ie, {}) : i ? /* @__PURE__ */ a(H, {
2382
+ align: "left",
2383
+ children: o("ai.errors.unexpected")
2384
+ }) : /* @__PURE__ */ a(H, {
2385
+ align: "full",
2386
+ children: /* @__PURE__ */ a(Se, {
2387
+ text: t ?? o("ai.errors.insightsNotAvailable")
2388
+ })
2389
+ });
2390
+ }
2391
+ function Or() {
2392
+ const {
2393
+ themeSettings: e
2394
+ } = f();
2395
+ return /* @__PURE__ */ a("svg", {
2396
+ width: "24",
2397
+ height: "25",
2398
+ viewBox: "0 0 24 25",
2399
+ fill: "none",
2400
+ xmlns: "http://www.w3.org/2000/svg",
2401
+ children: /* @__PURE__ */ a("path", {
2402
+ fillRule: "evenodd",
2403
+ clipRule: "evenodd",
2404
+ d: "M11.5 3.5C11.2239 3.5 11 3.72386 11 4V5C11 5.27614 11.2239 5.5 11.5 5.5C11.7761 5.5 12 5.27614 12 5V4C12 3.72386 11.7761 3.5 11.5 3.5ZM20 11C20 10.7239 19.7761 10.5 19.5 10.5H18.5C18.2239 10.5 18 10.7239 18 11C18 11.2761 18.2239 11.5 18.5 11.5H19.5C19.7761 11.5 20 11.2761 20 11ZM6.06066 5.35355C5.8654 5.15829 5.54882 5.15829 5.35355 5.35355C5.15829 5.54882 5.15829 5.8654 5.35355 6.06066L6.06066 6.76777C6.25592 6.96303 6.5725 6.96303 6.76777 6.76777C6.96303 6.5725 6.96303 6.25592 6.76777 6.06066L6.06066 5.35355ZM5 11C5 10.7239 4.77614 10.5 4.5 10.5H3.5C3.22386 10.5 3 10.7239 3 11C3 11.2761 3.22386 11.5 3.5 11.5H4.5C4.77614 11.5 5 11.2761 5 11ZM17.7678 6.06066C17.963 5.8654 17.963 5.54882 17.7678 5.35355C17.5725 5.15829 17.2559 5.15829 17.0607 5.35355L16.3536 6.06066C16.1583 6.25592 16.1583 6.5725 16.3536 6.76777C16.5488 6.96303 16.8654 6.96303 17.0607 6.76777L17.7678 6.06066ZM12.1443 6.53487C14.6635 6.81824 16.6511 8.67684 16.9597 11.0379C17.1678 12.6385 16.5623 14.2379 15.3244 15.3575C14.5049 16.1022 14.0038 17.2023 14 18.2722V19.5H9V18.2753C8.98626 17.1847 8.46545 16.0683 7.62521 15.3139C6.04513 13.8436 5.56667 11.6251 6.41329 9.69484C7.25992 7.76454 9.26456 6.50321 11.4909 6.5C11.7093 6.50004 11.9274 6.51167 12.1443 6.53487ZM11.4927 7.5C9.675 7.50258 8.03521 8.51877 7.34062 10.0785C6.64391 11.643 7.03778 13.4417 8.32278 14.6196C9.36662 15.5426 9.98356 16.8913 10.0003 18.2029V18.5H13.0001L13.0001 18.1969C13.0048 16.9143 13.6014 15.5805 14.6246 14.6649C15.6402 13.7602 16.1379 12.4652 15.9669 11.1689C15.7132 9.25779 14.0849 7.75729 12.0264 7.52799C11.8487 7.50938 11.67 7.50004 11.4927 7.5ZM14.1068 12.5099H13.1068C13.1068 10.7222 12.3371 9.95246 10.6235 10.0096L10.5901 9.01014C12.8765 8.93393 14.1068 10.1642 14.1068 12.5099ZM13 21.5V20.5H10V21.5H13Z",
2405
+ fill: e.aiChat.icons.color
2406
+ })
2407
+ });
2408
+ }
2409
+ function Wr({
2410
+ onClick: e
2411
+ }) {
2412
+ const {
2413
+ t
2414
+ } = _();
2415
+ return /* @__PURE__ */ a(de, {
2416
+ align: "left",
2417
+ onClick: e,
2418
+ children: /* @__PURE__ */ a("div", {
2419
+ className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
2420
+ children: [/* @__PURE__ */ a(Or, {}), t("ai.buttons.insights")]
2421
+ })
2422
+ });
2423
+ }
2424
+ const We = h.div`
2425
+ display: flex;
2426
+ align-items: center;
2427
+ column-gap: 10px;
2428
+ `, Gr = (e) => !!e && "aeiou".includes(e[0]);
2429
+ function Hr({
2430
+ data: e,
2431
+ alwaysShowFeedback: t
2432
+ }) {
2433
+ const {
2434
+ chatMode: r = "analyze",
2435
+ enableInsights: i
2436
+ } = R(), {
2437
+ themeSettings: o
2438
+ } = f(), {
2439
+ queryTitle: l,
2440
+ chartRecommendations: n,
2441
+ jaql: d
2442
+ } = e;
2443
+ console.debug(`JAQL for ${l}`, d), console.debug(`chart recommendations for ${l}`, n);
2444
+ const c = "chartType" in n ? n.chartType : "table";
2445
+ let s;
2446
+ Gr(c) ? s = `an ${c}` : s = `a ${c}`, c !== "table" && (s += " chart");
2447
+ const p = d.datasource.title, [g, u] = M(!1), m = I(() => {
2448
+ u((k) => !k);
2449
+ }, []), C = {
2450
+ jaql: {
2451
+ datasource: d.datasource,
2452
+ metadata: d.metadata
2453
+ }
2454
+ }, x = r === "analyze";
2455
+ return /* @__PURE__ */ a(T, {
2456
+ children: [/* @__PURE__ */ a(Ce, {
2457
+ sourceId: p,
2458
+ data: e,
2459
+ type: "chats/nlq",
2460
+ buttonVisibility: t ? "always" : "onHover",
2461
+ renderContent: (k) => /* @__PURE__ */ a(T, {
2462
+ children: [/* @__PURE__ */ a(We, {
2463
+ children: [/* @__PURE__ */ a(st, {
2464
+ align: "left",
2465
+ theme: o,
2466
+ children: `Here's ${s} showing ${e.queryTitle.toLowerCase()}.`
2467
+ }), k]
2468
+ }), x && /* @__PURE__ */ a(Ar, {
2469
+ content: e
2470
+ })]
2471
+ })
2472
+ }), i && /* @__PURE__ */ a(Ce, {
2473
+ sourceId: p,
2474
+ data: C,
2475
+ type: "nlg/queryResult",
2476
+ buttonVisibility: g ? "onHover" : "never",
2477
+ renderContent: (k) => /* @__PURE__ */ a(T, {
2478
+ children: [/* @__PURE__ */ a(We, {
2479
+ children: [/* @__PURE__ */ a(Wr, {
2480
+ onClick: m
2481
+ }), k]
2482
+ }), g && /* @__PURE__ */ a(Rr, {
2483
+ nlgRequest: C
2484
+ })]
2485
+ })
2486
+ })]
2487
+ });
2488
+ }
2489
+ function Yr({
2490
+ message: e,
2491
+ isLastMessage: t
2492
+ }) {
2493
+ if (De(e)) {
2494
+ const i = JSON.parse(e.content);
2495
+ return /* @__PURE__ */ a(Hr, {
2496
+ data: i,
2497
+ alwaysShowFeedback: t
2498
+ });
2499
+ }
2500
+ const r = Wa(e) ? JSON.parse(e.content).answer : e.content;
2501
+ return /* @__PURE__ */ a(H, {
2502
+ align: e.role === "user" ? "right" : "left",
2503
+ children: r
2504
+ });
2505
+ }
2506
+ const qr = Mt(Yr), Ur = ({
2507
+ error: e,
2508
+ displayMessage: t
2509
+ }) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ a(H, {
2510
+ align: "left",
2511
+ children: t
2512
+ }));
2513
+ function Br({
2514
+ messages: e
2515
+ }) {
2516
+ const {
2517
+ t
2518
+ } = _();
2519
+ return /* @__PURE__ */ a(T, {
2520
+ children: e.map((r, i) => /* @__PURE__ */ a(Xt, {
2521
+ fallbackRender: (o) => Ur(A(v({}, o), {
2522
+ displayMessage: t("ai.errors.unexpected")
2523
+ })),
2524
+ children: /* @__PURE__ */ a(qr, {
2525
+ message: r,
2526
+ isLastMessage: i === e.length - 1
2527
+ }, i)
2528
+ }, i))
2529
+ });
2530
+ }
2531
+ function ht({
2532
+ color: e
2533
+ }) {
2534
+ return /* @__PURE__ */ a("svg", {
2535
+ width: "100%",
2536
+ height: "100%",
2537
+ viewBox: "0 0 4 8",
2538
+ fill: "none",
2539
+ xmlns: "http://www.w3.org/2000/svg",
2540
+ children: /* @__PURE__ */ a("path", {
2541
+ 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",
2542
+ fill: e
2543
+ })
2544
+ });
2545
+ }
2546
+ function Pr({
2547
+ onClick: e,
2548
+ color: t
2549
+ }) {
2550
+ return /* @__PURE__ */ a("div", {
2551
+ "aria-label": "go back",
2552
+ className: "csdk-w-5 csdk-h-5 csdk-flex csdk-p-[4px] csdk-ml-[6px] csdk-cursor-pointer",
2553
+ onClick: e,
2554
+ children: /* @__PURE__ */ a(ht, {
2555
+ color: t
2556
+ })
2557
+ });
2558
+ }
2559
+ const $r = h.button`
2560
+ font-size: inherit;
2561
+ line-height: inherit;
2562
+ box-sizing: border-box;
2563
+ border-width: 1px;
2564
+ padding-left: 1rem;
2565
+ padding-right: 1rem;
2566
+ padding-top: 0.5rem;
2567
+ padding-bottom: 0.5rem;
2568
+ cursor: pointer;
2569
+ text-align: left;
2570
+ max-width: 85%;
2571
+
2572
+ font-family: ${({
2573
+ theme: e
2574
+ }) => e.typography.fontFamily};
2575
+ color: ${({
2576
+ theme: e
2577
+ }) => e.aiChat.suggestions.textColor};
2578
+ background-color: ${({
2579
+ theme: e
2580
+ }) => e.aiChat.suggestions.backgroundColor};
2581
+ border: ${({
2582
+ theme: e
2583
+ }) => e.aiChat.suggestions.border};
2584
+ border-radius: ${({
2585
+ theme: e
2586
+ }) => e.aiChat.suggestions.borderRadius};
2587
+ &:hover {
2588
+ background-color: ${({
2589
+ theme: e
2590
+ }) => e.aiChat.suggestions.hover.backgroundColor};
2591
+ color: ${({
2592
+ theme: e
2593
+ }) => e.aiChat.suggestions.hover.textColor};
2594
+ }
2595
+
2596
+ ${({
2597
+ theme: e
2598
+ }) => {
2599
+ const {
2600
+ borderGradient: t,
2601
+ borderRadius: r
2602
+ } = e.aiChat.suggestions;
2603
+ if (t) {
2604
+ const [i, o] = t;
2605
+ return L`
2606
+ border: none;
2607
+ position: relative;
2608
+ border-radius: ${r};
2609
+ &:before {
2610
+ content: '';
2611
+ position: absolute;
2612
+ top: 0;
2613
+ left: 0;
2614
+ right: 0;
2615
+ bottom: 0;
2616
+ border-radius: ${r};
2617
+ border: 1px solid transparent;
2618
+ background: linear-gradient(30deg, ${i}, ${o}) border-box;
2619
+ -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
2620
+ -webkit-mask-composite: destination-out;
2621
+ mask-composite: exclude;
2622
+ }
2623
+ `;
2624
+ }
2625
+ return "";
2626
+ }}
2627
+ `;
2628
+ function Ge({
2629
+ question: e,
2630
+ onClick: t
2631
+ }) {
2632
+ const {
2633
+ themeSettings: r
2634
+ } = f();
2635
+ return /* @__PURE__ */ a($r, {
2636
+ onClick: t,
2637
+ theme: r,
2638
+ children: e
2639
+ });
2640
+ }
2641
+ const Qr = h.div`
2642
+ display: flex;
2643
+ flex-direction: column;
2644
+ align-items: flex-start;
2645
+ row-gap: ${({
2646
+ theme: e
2647
+ }) => e.aiChat.suggestions.gap};
2648
+ `;
2649
+ function Fr({
2650
+ questions: e,
2651
+ onSelection: t
2652
+ }) {
2653
+ const {
2654
+ t: r
2655
+ } = _(), [i, o] = M(!0), l = z(() => i && e.length > 5 ? e.slice(0, 4) : e, [e, i]), {
2656
+ themeSettings: n
2657
+ } = f();
2658
+ return /* @__PURE__ */ a(Qr, {
2659
+ "aria-label": "list of suggested questions",
2660
+ theme: n,
2661
+ children: [l.map((d) => /* @__PURE__ */ a(Ge, {
2662
+ question: d,
2663
+ onClick: () => t(d)
2664
+ }, d)), l.length < e.length && /* @__PURE__ */ a(Ge, {
2665
+ question: r("ai.buttons.seeMore"),
2666
+ onClick: () => o(!1)
2667
+ })]
2668
+ });
2669
+ }
2670
+ const Vr = h.div`
2671
+ width: 283px;
2672
+ height: 32px;
2673
+ border-radius: 10px;
2674
+ background: ${({
2675
+ theme: e
2676
+ }) => {
2677
+ const [t, r] = e.aiChat.suggestions.loadingGradient;
2678
+ return `linear-gradient(
2679
+ to right,
2680
+ ${t} 0%,
2681
+ ${r} 50%,
2682
+ ${t} 100%
2683
+ )`;
2684
+ }};
2685
+ background-size: 200% auto;
2686
+ animation: gradient 2s linear infinite;
2687
+
2688
+ @keyframes gradient {
2689
+ 0% {
2690
+ background-position: 0 0;
2691
+ }
2692
+ 100% {
2693
+ background-position: -200% 0;
2694
+ }
2695
+ }
2696
+ `, Jr = h.div`
2697
+ display: flex;
2698
+ flex-direction: column;
2699
+ row-gap: 1rem;
2700
+ `;
2701
+ function Xr() {
2702
+ const {
2703
+ themeSettings: e
2704
+ } = f();
2705
+ return /* @__PURE__ */ a(Jr, {
2706
+ children: Array.from({
2707
+ length: 3
2708
+ }, (t, r) => /* @__PURE__ */ a(Vr, {
2709
+ theme: e
2710
+ }, r))
2711
+ });
2712
+ }
2713
+ function Kr({
2714
+ questions: e,
2715
+ isLoading: t,
2716
+ onSelection: r
2717
+ }) {
2718
+ const i = e.length > 0, {
2719
+ suggestionsWelcomeText: o
2720
+ } = R();
2721
+ return t ? /* @__PURE__ */ a(Xr, {}) : i ? /* @__PURE__ */ a(T, {
2722
+ children: [o && /* @__PURE__ */ a(H, {
2723
+ align: "left",
2724
+ children: o
2725
+ }), /* @__PURE__ */ a(Fr, {
2726
+ onSelection: r,
2727
+ questions: e
2728
+ })]
2729
+ }) : null;
2730
+ }
2731
+ const ei = h.div`
2732
+ flex: 0 0 80px;
2733
+ padding-left: 14px;
2734
+ padding-right: 14px;
2735
+ display: flex;
2736
+ align-items: center;
2737
+ position: relative;
2738
+
2739
+ background-color: ${({
2740
+ style: e
2741
+ }) => e.backgroundColor};
2742
+ `, ti = h.div`
2743
+ font-size: 18px;
2744
+ line-height: 22px;
2745
+ font-weight: 600;
2746
+ margin-left: 20px;
2747
+
2748
+ color: ${({
2749
+ style: e
2750
+ }) => e.textColor};
2751
+ `, ut = qe(function({
2752
+ title: e,
2753
+ leftNav: t,
2754
+ rightNav: r,
2755
+ style: i
2756
+ }, o) {
2757
+ return /* @__PURE__ */ a(ei, {
2758
+ ref: o,
2759
+ style: i,
2760
+ children: [t, /* @__PURE__ */ a(ti, {
2761
+ style: i,
2762
+ children: e
2763
+ }), r && /* @__PURE__ */ a("div", {
2764
+ className: "csdk-ml-auto",
2765
+ children: r
2766
+ })]
2767
+ });
2768
+ }), ai = h.div`
2769
+ text-align: center;
2770
+ font-size: 11px;
2771
+ line-height: 18px;
2772
+ white-space: pre-wrap;
2773
+
2774
+ display: flex;
2775
+ flex-wrap: wrap;
2776
+ align-items: center;
2777
+ justify-content: center;
2778
+ box-sizing: border-box;
2779
+
2780
+ color: ${({
2781
+ theme: e
2782
+ }) => e.aiChat.secondaryTextColor};
2783
+ `;
2784
+ function ri({
2785
+ theme: e
2786
+ }) {
2787
+ const {
2788
+ t
2789
+ } = _();
2790
+ return /* @__PURE__ */ a(ai, {
2791
+ theme: e,
2792
+ children: [/* @__PURE__ */ a("div", {
2793
+ children: t("ai.disclaimer.poweredByAi")
2794
+ }), /* @__PURE__ */ a("div", {
2795
+ children: [" ", t("ai.disclaimer.rateRequest")]
2796
+ })]
2797
+ });
2798
+ }
2799
+ const ii = h.div`
2800
+ font-size: inherit;
2801
+ line-height: inherit;
2802
+ padding-left: 16px;
2803
+ padding-right: 16px;
2804
+ padding-top: 4px;
2805
+ padding-bottom: 4px;
2806
+ border-radius: 16px;
2807
+
2808
+ color: ${({
2809
+ theme: e
2810
+ }) => e.aiChat.suggestions.textColor};
2811
+ background-color: ${({
2812
+ theme: e
2813
+ }) => e.aiChat.suggestions.backgroundColor};
2814
+ `, bt = () => {
2815
+ const {
2816
+ t: e
2817
+ } = _(), {
2818
+ themeSettings: t
2819
+ } = f();
2820
+ return /* @__PURE__ */ a(ii, {
2821
+ theme: t,
2822
+ children: e("ai.betaLabel")
2823
+ });
2824
+ };
2825
+ function oi() {
2826
+ const {
2827
+ themeSettings: e
2828
+ } = f();
2829
+ return /* @__PURE__ */ a("svg", {
2830
+ width: "24",
2831
+ height: "24",
2832
+ viewBox: "0 0 24 24",
2833
+ fill: "none",
2834
+ xmlns: "http://www.w3.org/2000/svg",
2835
+ children: /* @__PURE__ */ a("path", {
2836
+ fillRule: "evenodd",
2837
+ clipRule: "evenodd",
2838
+ d: "M15.1747 9.1203L12 11.8401L8.82529 9.1203C8.61558 8.94064 8.29994 8.965 8.12028 9.17471C7.94062 9.38442 7.96498 9.70006 8.17469 9.87972L11.6747 12.8782C11.8619 13.0385 12.1381 13.0385 12.3253 12.8782L15.8253 9.87972C16.035 9.70006 16.0594 9.38442 15.8797 9.17471C15.7 8.965 15.3844 8.94064 15.1747 9.1203ZM15.8797 12.1731C15.7 11.9634 15.3844 11.9391 15.1747 12.1187L12 14.8385L8.82529 12.1187C8.61558 11.9391 8.29994 11.9634 8.12028 12.1731C7.94062 12.3829 7.96498 12.6985 8.17469 12.8782L11.6747 15.8766C11.8619 16.037 12.1381 16.037 12.3253 15.8766L15.8253 12.8782C16.035 12.6985 16.0594 12.3829 15.8797 12.1731Z",
2839
+ fill: e.aiChat.primaryTextColor
2840
+ })
2841
+ });
2842
+ }
2843
+ const ni = (e, t) => {
2844
+ const r = new Tt(e);
2845
+ return r.alpha = t, r;
2846
+ }, li = h.div`
2847
+ font-size: inherit;
2848
+ line-height: inherit;
2849
+ padding-left: 8px;
2850
+ padding-right: 8px;
2851
+ padding-top: 4px;
2852
+ border-radius: 16px;
2853
+ margin-bottom: 4px;
2854
+ box-shadow: ${({
2855
+ theme: e
2856
+ }) => `0 4px 8px 0 ${ni(e.aiChat.primaryTextColor, 0.2)}`};
2857
+ cursor: pointer;
2858
+ color: ${({
2859
+ theme: e
2860
+ }) => e.aiChat.clickableMessages.textColor};
2861
+ background-color: ${({
2862
+ theme: e
2863
+ }) => e.aiChat.clickableMessages.backgroundColor};
2864
+
2865
+ &:hover {
2866
+ color: ${({
2867
+ theme: e
2868
+ }) => e.aiChat.clickableMessages.hover.textColor};
2869
+ background-color: ${({
2870
+ theme: e
2871
+ }) => e.aiChat.clickableMessages.hover.backgroundColor};
2872
+ box-shadow: none;
2873
+ `, ci = ({
2874
+ onClick: e
2875
+ }) => {
2876
+ const {
2877
+ themeSettings: t
2878
+ } = f();
2879
+ return /* @__PURE__ */ a(li, {
2880
+ theme: t,
2881
+ onClick: e,
2882
+ children: /* @__PURE__ */ a(oi, {})
2883
+ });
2884
+ }, di = ({
2885
+ isVisible: e,
2886
+ onClick: t,
2887
+ anchorElement: r
2888
+ }) => /* @__PURE__ */ a(Fe, {
2889
+ anchorEl: r,
2890
+ open: e,
2891
+ placement: "top",
2892
+ sx: {
2893
+ zIndex: 2
2894
+ },
2895
+ children: /* @__PURE__ */ a(ci, {
2896
+ onClick: t
2897
+ })
2898
+ }), si = h.div`
2899
+ display: flex;
2900
+ flex-direction: column;
2901
+ row-gap: ${({
2902
+ theme: e
2903
+ }) => e.aiChat.body.gapBetweenMessages};
2904
+ overflow-y: scroll;
2905
+ padding-left: ${({
2906
+ theme: e
2907
+ }) => e.aiChat.body.paddingLeft};
2908
+ padding-right: ${({
2909
+ theme: e
2910
+ }) => e.aiChat.body.paddingRight};
2911
+ padding-top: ${({
2912
+ theme: e
2913
+ }) => e.aiChat.body.paddingTop};
2914
+ padding-bottom: ${({
2915
+ theme: e
2916
+ }) => e.aiChat.body.paddingBottom};
2917
+ flex: initial;
2918
+ height: 100%;
2919
+ `, pi = h.div`
2920
+ padding-left: ${({
2921
+ theme: e
2922
+ }) => e.aiChat.footer.paddingLeft};
2923
+ padding-right: ${({
2924
+ theme: e
2925
+ }) => e.aiChat.footer.paddingRight};
2926
+ padding-top: ${({
2927
+ theme: e
2928
+ }) => e.aiChat.footer.paddingTop};
2929
+ padding-bottom: ${({
2930
+ theme: e
2931
+ }) => e.aiChat.footer.paddingBottom};
2932
+ display: flex;
2933
+ flex-direction: column;
2934
+ row-gap: 6px;
2935
+ `, gi = h.div`
2936
+ display: flex;
2937
+ flex-direction: column;
2938
+ row-gap: ${({
2939
+ theme: e
2940
+ }) => e.aiChat.suggestions.gap};
2941
+ `;
2942
+ function hi({
2943
+ contextTitle: e,
2944
+ onGoBack: t
2945
+ }) {
2946
+ const {
2947
+ t: r
2948
+ } = _(), {
2949
+ data: i,
2950
+ isLoading: o,
2951
+ isError: l
2952
+ } = ot({
2953
+ contextTitle: e
2954
+ }), n = z(() => i.map((w) => w.nlqPrompt), [i]), {
2955
+ history: d,
2956
+ lastNlqResponse: c,
2957
+ isAwaitingResponse: s,
2958
+ sendMessage: p,
2959
+ isLoading: g,
2960
+ chatId: u,
2961
+ lastError: m
2962
+ } = Ga(e), {
2963
+ mutate: C,
2964
+ isLoading: x
2965
+ } = nt(u), [k, N] = M(!1), [E, y] = M(!1), O = () => N(!0), D = () => N(!1), J = () => {
2966
+ C(), D();
2967
+ }, S = q(null), re = q(null), he = () => {
2968
+ if (!(S != null && S.current))
2969
+ return;
2970
+ const {
2971
+ scrollTop: w,
2972
+ clientHeight: G,
2973
+ scrollHeight: Le
2974
+ } = S.current;
2975
+ if (w === void 0 || G === void 0 || Le === void 0)
2976
+ return;
2977
+ const Ne = Le - w - G > G / 2;
2978
+ E !== Ne && y(Ne);
2979
+ };
2980
+ ne(() => {
2981
+ S.current && (S.current.scrollTop = S.current.scrollHeight);
2982
+ }, [d, k, s]);
2983
+ const U = q(null), {
2984
+ enableFollowupQuestions: X,
2985
+ enableHeader: B,
2986
+ numOfRecentPrompts: ie
2987
+ } = R(), {
2988
+ themeSettings: W
2989
+ } = f(), P = B ? /* @__PURE__ */ a(ut, {
2990
+ ref: U,
2991
+ title: e,
2992
+ leftNav: t && /* @__PURE__ */ a(Pr, {
2993
+ onClick: t,
2994
+ color: W.aiChat.header.textColor
2995
+ }),
2996
+ rightNav: /* @__PURE__ */ a(bt, {}),
2997
+ style: W.aiChat.header
2998
+ }) : null, ue = z(() => [...new Set(d.filter((w) => w.role === "user").filter((w) => !n.includes(w.content)).map((w) => w.content).reverse())].slice(0, ie), [d, ie, n]);
2999
+ return (m == null ? void 0 : m.message) === r("ai.errors.chatUnavailable") ? /* @__PURE__ */ a(T, {
3000
+ children: [B && P, /* @__PURE__ */ a(pt, {
3001
+ text: m.message
3002
+ })]
3003
+ }) : /* @__PURE__ */ a(T, {
3004
+ children: [P, /* @__PURE__ */ a(si, {
3005
+ ref: S,
3006
+ theme: W,
3007
+ onScroll: he,
3008
+ children: [/* @__PURE__ */ a(di, {
3009
+ isVisible: E,
3010
+ anchorElement: re.current,
3011
+ onClick: () => {
3012
+ var w, G;
3013
+ (G = S.current) == null || G.scroll({
3014
+ top: (w = S.current) == null ? void 0 : w.scrollHeight,
3015
+ behavior: "smooth"
3016
+ });
3017
+ }
3018
+ }), /* @__PURE__ */ a(sr, {}), /* @__PURE__ */ a(Kr, {
3019
+ questions: n,
3020
+ isLoading: o,
3021
+ onSelection: p
3022
+ }), m && /* @__PURE__ */ a(H, {
3023
+ align: "left",
3024
+ children: m.message
3025
+ }), g ? /* @__PURE__ */ a(ge, {}) : /* @__PURE__ */ a(Br, {
3026
+ messages: d
3027
+ }), X && c && /* @__PURE__ */ a(gi, {
3028
+ theme: W,
3029
+ children: c.followupQuestions.slice(0, 2).map((w, G) => /* @__PURE__ */ a(de, {
3030
+ align: "left",
3031
+ onClick: () => {
3032
+ p(w);
3033
+ },
3034
+ children: /* @__PURE__ */ a("div", {
3035
+ className: "csdk-py-[7px] csdk-px-4",
3036
+ children: w
3037
+ })
3038
+ }, G))
3039
+ }), (s || x) && /* @__PURE__ */ a(Ie, {}), k && /* @__PURE__ */ a(mr, {
3040
+ onCancel: D,
3041
+ onConfirm: J
3042
+ })]
3043
+ }), /* @__PURE__ */ a(pi, {
3044
+ ref: re,
3045
+ theme: W,
3046
+ children: [/* @__PURE__ */ a(cr, {
3047
+ onSendMessage: p,
3048
+ disabled: s || g,
3049
+ onClearHistoryClick: O,
3050
+ suggestions: n,
3051
+ recentPrompts: ue,
3052
+ isLoading: o || g,
3053
+ recommendationsError: l,
3054
+ onChange: D
3055
+ }), /* @__PURE__ */ a(ri, {
3056
+ theme: W
3057
+ })]
3058
+ })]
3059
+ });
3060
+ }
3061
+ const ui = h.button`
3062
+ font-family: ${({
3063
+ theme: e
3064
+ }) => e.typography.fontFamily};
3065
+ padding: 20px;
3066
+ border: none;
3067
+ display: flex;
3068
+ align-items: center;
3069
+ justify-content: space-between;
3070
+ text-align: left;
3071
+ border-radius: 15px;
3072
+ box-shadow: 0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1);
3073
+ cursor: pointer;
3074
+
3075
+ background-color: ${({
3076
+ theme: e
3077
+ }) => e.aiChat.dataTopics.items.backgroundColor};
3078
+ `, bi = h.div`
3079
+ font-size: 1.05rem;
3080
+ line-height: 28px;
3081
+
3082
+ color: ${({
3083
+ theme: e
3084
+ }) => e.aiChat.dataTopics.items.textColor};
3085
+ `, mi = h.div`
3086
+ font-size: ${({
3087
+ theme: e
3088
+ }) => e.aiChat.primaryFontSize[0]};
3089
+ line-height: ${({
3090
+ theme: e
3091
+ }) => e.aiChat.primaryFontSize[1]};
3092
+
3093
+ color: ${({
3094
+ theme: e
3095
+ }) => Ue(e.aiChat.dataTopics.items.textColor, 0, 0.5)};
3096
+ `, xi = h.div`
3097
+ width: 16px;
3098
+ height: 16px;
3099
+ transform: rotate(180deg);
3100
+ `;
3101
+ function fi(e) {
3102
+ const {
3103
+ title: t,
3104
+ description: r,
3105
+ onClick: i
3106
+ } = e, {
3107
+ themeSettings: o
3108
+ } = f();
3109
+ return /* @__PURE__ */ a(ui, {
3110
+ onClick: i,
3111
+ theme: o,
3112
+ children: [/* @__PURE__ */ a("div", {
3113
+ children: [/* @__PURE__ */ a(bi, {
3114
+ theme: o,
3115
+ children: t
3116
+ }), /* @__PURE__ */ a(mi, {
3117
+ theme: o,
3118
+ children: r
3119
+ })]
3120
+ }), /* @__PURE__ */ a(xi, {
3121
+ children: /* @__PURE__ */ a(ht, {
3122
+ color: o.aiChat.icons.color
3123
+ })
3124
+ })]
3125
+ });
3126
+ }
3127
+ const ki = h.div`
3128
+ padding: 20px;
3129
+ display: flex;
3130
+ flex-direction: column;
3131
+ gap: 20px;
3132
+ overflow: auto;
3133
+ `, wi = h.div`
3134
+ font-size: 24px;
3135
+ line-height: 32px;
3136
+ font-weight: 600;
3137
+ text-align: center;
3138
+ padding-bottom: 4px;
3139
+
3140
+ color: ${({
3141
+ theme: e
3142
+ }) => e.aiChat.primaryTextColor};
3143
+ `, _i = h.div`
3144
+ font-size: 15px;
3145
+ line-height: 22px;
3146
+
3147
+ color: ${({
3148
+ theme: e
3149
+ }) => e.aiChat.primaryTextColor};
3150
+ `;
3151
+ function Ci(e) {
3152
+ const {
3153
+ dataTopics: t
3154
+ } = e, {
3155
+ themeSettings: r
3156
+ } = f(), {
3157
+ t: i
3158
+ } = _();
3159
+ return /* @__PURE__ */ a(ki, {
3160
+ children: [/* @__PURE__ */ a(wi, {
3161
+ theme: r,
3162
+ children: i("ai.dataTopics")
3163
+ }), /* @__PURE__ */ a(_i, {
3164
+ theme: r,
3165
+ children: [i("ai.chatbotDescription"), /* @__PURE__ */ a("br", {}), /* @__PURE__ */ a("br", {}), i("ai.topicSelectPrompt")]
3166
+ }), t.map((o) => /* @__PURE__ */ Kt(fi, A(v({}, o), {
3167
+ key: o.title
3168
+ })))]
3169
+ });
3170
+ }
3171
+ const yi = "#000000", vi = "#FFFFFF";
3172
+ function Mi({
3173
+ isDarkBackground: e = !1
3174
+ }) {
3175
+ const t = e ? vi : yi;
3176
+ return /* @__PURE__ */ a("svg", {
3177
+ width: "32",
3178
+ height: "32",
3179
+ viewBox: "0 0 500 504",
3180
+ fill: "none",
3181
+ xmlns: "http://www.w3.org/2000/svg",
3182
+ children: [/* @__PURE__ */ a("path", {
3183
+ 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",
3184
+ fill: t
3185
+ }), /* @__PURE__ */ a("path", {
3186
+ 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",
3187
+ fill: t
3188
+ }), /* @__PURE__ */ a("path", {
3189
+ 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",
3190
+ fill: t
3191
+ }), /* @__PURE__ */ a("path", {
3192
+ 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",
3193
+ fill: t
3194
+ }), /* @__PURE__ */ a("path", {
3195
+ 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",
3196
+ fill: t
3197
+ }), /* @__PURE__ */ a("path", {
3198
+ 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",
3199
+ fill: t
3200
+ }), /* @__PURE__ */ a("path", {
3201
+ 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",
3202
+ fill: t
3203
+ }), /* @__PURE__ */ a("path", {
3204
+ 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",
3205
+ fill: t
3206
+ }), /* @__PURE__ */ a("path", {
3207
+ 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",
3208
+ fill: t
3209
+ }), /* @__PURE__ */ a("path", {
3210
+ 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",
3211
+ fill: t
3212
+ }), /* @__PURE__ */ a("path", {
3213
+ 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",
3214
+ fill: t
3215
+ }), /* @__PURE__ */ a("path", {
3216
+ 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",
3217
+ fill: t
3218
+ }), /* @__PURE__ */ a("path", {
3219
+ 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",
3220
+ fill: t
3221
+ }), /* @__PURE__ */ a("path", {
3222
+ 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",
3223
+ fill: t
3224
+ }), /* @__PURE__ */ a("path", {
3225
+ 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",
3226
+ fill: t
3227
+ }), /* @__PURE__ */ a("path", {
3228
+ 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",
3229
+ fill: t
3230
+ })]
3231
+ });
3232
+ }
3233
+ const Di = h.div`
3234
+ margin-left: 14px;
3235
+ margin-top: 3px;
3236
+ `, Ii = h.div`
3237
+ display: flex;
3238
+ flex-direction: column;
3239
+ justify-content: top;
3240
+ overflow: hidden;
3241
+ height: 100%;
3242
+
3243
+ background-color: ${({
3244
+ theme: e
3245
+ }) => e.aiChat.dataTopics.backgroundColor};
3246
+ `;
3247
+ function Ai({
3248
+ dataTopicsList: e,
3249
+ onDataTopicClick: t
3250
+ }) {
3251
+ const {
3252
+ enableHeader: r
3253
+ } = R(), {
3254
+ themeSettings: i
3255
+ } = f(), {
3256
+ t: o
3257
+ } = _(), l = z(() => e == null ? void 0 : e.map((d) => ({
3258
+ title: d,
3259
+ onClick: () => t(d)
3260
+ })), [e, t]), n = Ut(Bt(i.aiChat.header.backgroundColor)) > 0.5;
3261
+ return /* @__PURE__ */ a(T, {
3262
+ children: [r ? /* @__PURE__ */ a(ut, {
3263
+ title: o("ai.analyticsChatbot"),
3264
+ leftNav: /* @__PURE__ */ a(Di, {
3265
+ children: /* @__PURE__ */ a(Mi, {
3266
+ isDarkBackground: n
3267
+ })
3268
+ }),
3269
+ rightNav: /* @__PURE__ */ a(bt, {}),
3270
+ style: i.aiChat.header
3271
+ }) : null, /* @__PURE__ */ a(Ii, {
3272
+ theme: i,
3273
+ children: [!l && /* @__PURE__ */ a(ge, {}), l && /* @__PURE__ */ a(Ci, {
3274
+ dataTopics: l
3275
+ })]
3276
+ })]
3277
+ });
3278
+ }
3279
+ function Si() {
3280
+ const [e, t] = M([]), [r, i] = M(), [o, l] = M(), {
3281
+ data: n,
3282
+ fetchStatus: d
3283
+ } = ct(), {
3284
+ dataTopicsList: c
3285
+ } = R(), {
3286
+ t: s
3287
+ } = _();
3288
+ F(() => {
3289
+ if (n && d === "idle") {
3290
+ let u = n;
3291
+ c && c.length && (u = n == null ? void 0 : n.filter((m) => c == null ? void 0 : c.includes(m.title))), t(u.map((m) => m.title)), u.length ? u.length === 1 && (l(void 0), i(u[0].title)) : l(s("ai.errors.noAvailableDataTopics"));
3292
+ }
3293
+ }, [n, c, d, s]);
3294
+ const p = ee(), g = I(() => {
3295
+ l(void 0), p.invalidateQueries(["getDataTopics"]);
3296
+ }, [p]);
3297
+ return o ? /* @__PURE__ */ a(pt, {
3298
+ text: o,
3299
+ action: {
3300
+ text: s("ai.buttons.refresh"),
3301
+ onClick: g
3302
+ }
3303
+ }) : e.length === 1 && !r ? /* @__PURE__ */ a(ge, {}) : r ? /* @__PURE__ */ a(hi, {
3304
+ contextTitle: r,
3305
+ onGoBack: e.length === 1 ? void 0 : () => i(void 0)
3306
+ }) : /* @__PURE__ */ a(Ai, {
3307
+ dataTopicsList: e,
3308
+ onDataTopicClick: (u) => i(u)
3309
+ });
3310
+ }
3311
+ const Hi = Be({
3312
+ componentName: "Chatbot"
3313
+ })((e) => {
3314
+ const {
3315
+ width: t,
3316
+ height: r,
3317
+ config: i
3318
+ } = e, {
3319
+ themeSettings: o
3320
+ } = f();
3321
+ return /* @__PURE__ */ a(za, {
3322
+ value: i ?? {},
3323
+ children: /* @__PURE__ */ a(Ba, {
3324
+ id: "csdk-chatbot-frame",
3325
+ width: t,
3326
+ height: r,
3327
+ theme: o,
3328
+ tabIndex: 0,
3329
+ children: /* @__PURE__ */ a(Si, {})
3330
+ })
3331
+ });
3332
+ }), Yi = Be({
3333
+ componentName: "GetNlgQueryResult"
3334
+ })(function(e) {
3335
+ const {
3336
+ data: t,
3337
+ isLoading: r,
3338
+ isError: i
3339
+ } = pe(e), {
3340
+ t: o
3341
+ } = _();
3342
+ return i ? /* @__PURE__ */ a(T, {
3343
+ children: o("ai.errors.unexpected")
3344
+ }) : /* @__PURE__ */ a(Se, {
3345
+ text: r ? "Loading..." : t ?? "Oops, no data came back for that."
3346
+ });
3347
+ });
3348
+ function Li({
3349
+ theme: e
3350
+ }) {
3351
+ const t = e.general.brandColor;
3352
+ return /* @__PURE__ */ a("svg", {
3353
+ xmlns: "http://www.w3.org/2000/svg",
3354
+ width: "24",
3355
+ height: "24",
3356
+ viewBox: "-2 -3 24 24",
3357
+ fill: "none",
3358
+ children: [/* @__PURE__ */ a("path", {
3359
+ "fill-rule": "evenodd",
3360
+ "clip-rule": "evenodd",
3361
+ d: "M12.0533 3.62671e-06C12.0557 -9.45649e-05 12.0577 0.00181346 12.0578 0.00422597C12.1926 3.98958 15.4422 7.18501 19.4491 7.23273C19.4494 7.23273 19.4496 7.23296 19.4496 7.23325C19.4496 7.23356 19.4494 7.23381 19.4491 7.23382C15.3869 7.2822 12.1029 10.5659 12.054 14.628C12.054 14.6283 12.0538 14.6285 12.0535 14.6285C12.0532 14.6285 12.0529 14.6283 12.0529 14.628C12.0047 10.6218 8.80995 7.37281 4.8253 7.23765C4.82287 7.23757 4.82095 7.23552 4.82105 7.2331C4.82114 7.23081 4.82301 7.22897 4.8253 7.2289C8.75488 7.0956 11.9163 3.93392 12.0491 0.004224C12.0492 0.00194873 12.051 9.62326e-05 12.0533 3.62671e-06Z",
3362
+ fill: t
3363
+ }), /* @__PURE__ */ a("path", {
3364
+ "fill-rule": "evenodd",
3365
+ "clip-rule": "evenodd",
3366
+ d: "M9.0973 12.7759C7.1172 12.7236 5.51984 11.1352 5.45331 9.1587C5.45326 9.1573 5.45209 9.1562 5.4507 9.15625C5.44938 9.1563 5.44832 9.15738 5.44828 9.15869C5.38204 11.1266 3.79825 12.7098 1.83009 12.7751C1.82969 12.7752 1.82936 12.7755 1.82935 12.7759C1.82933 12.7763 1.82967 12.7767 1.83009 12.7767C3.8264 12.8429 5.42727 14.4708 5.45019 16.4778C5.45019 16.4781 5.45045 16.4784 5.45077 16.4784C5.45111 16.4784 5.4514 16.4781 5.4514 16.4778C5.47442 14.4622 7.089 12.8289 9.0973 12.7759Z",
3367
+ fill: t
3368
+ }), /* @__PURE__ */ a("path", {
3369
+ "fill-rule": "evenodd",
3370
+ "clip-rule": "evenodd",
3371
+ d: "M2.8778 2.15728C2.87779 2.15701 2.8779 2.15674 2.8781 2.15655C2.87874 2.15591 2.87983 2.15638 2.87981 2.15728C2.87934 2.17566 2.87911 2.1941 2.87911 2.21259C2.87911 3.36434 3.78842 4.30371 4.92829 4.35195C3.78842 4.40019 2.87911 5.33955 2.87911 6.4913C2.87911 6.56284 2.88262 6.63356 2.88947 6.7033C2.89045 6.7133 2.8783 6.71912 2.87119 6.71202C2.86894 6.70976 2.86781 6.70662 2.86813 6.70344C2.87499 6.63366 2.8785 6.56289 2.8785 6.4913C2.8785 5.33956 1.96921 4.40021 0.829346 4.35195C1.96921 4.30369 2.8785 3.36433 2.8785 2.21259C2.8785 2.1941 2.87827 2.17566 2.8778 2.15728ZM5.16566 4.35485C5.16834 4.35503 5.16981 4.35179 5.16791 4.34989C5.16732 4.3493 5.1665 4.34899 5.16567 4.34905C5.14802 4.35023 5.13031 4.3512 5.11255 4.35195C5.13031 4.3527 5.14801 4.35367 5.16566 4.35485Z",
3372
+ fill: t
3373
+ })]
3374
+ });
3375
+ }
3376
+ const Ni = h.div`
3377
+ display: flex;
3378
+ flex-direction: row;
3379
+ align-items: center;
3380
+ gap: 10px;
3381
+ margin: 24px 0;
3382
+ max-width: 640px;
3383
+ `, ji = h.div`
3384
+ align-self: flex-start;
3385
+ `, Ti = ({
3386
+ summary: e,
3387
+ nlgRequest: t
3388
+ }) => {
3389
+ const {
3390
+ themeSettings: r
3391
+ } = f();
3392
+ return /* @__PURE__ */ a(Ce, {
3393
+ sourceId: t.jaql.datasource.title,
3394
+ data: t,
3395
+ type: "chart/insights",
3396
+ buttonVisibility: "always",
3397
+ renderContent: (i) => /* @__PURE__ */ a(Ni, {
3398
+ theme: r,
3399
+ children: [/* @__PURE__ */ a(ji, {
3400
+ theme: r,
3401
+ children: /* @__PURE__ */ a(Li, {
3402
+ theme: r
3403
+ })
3404
+ }), /* @__PURE__ */ a(Se, {
3405
+ text: e
3406
+ }), i]
3407
+ })
3408
+ });
3409
+ }, qi = ({
3410
+ nlqResponse: e,
3411
+ onDataReady: t,
3412
+ filters: r = []
3413
+ }) => {
3414
+ const {
3415
+ connectToWidgetProps: i
3416
+ } = zt({
3417
+ initialFilters: r
3418
+ }), [o, l] = M(null);
3419
+ F(() => {
3420
+ const p = Je(e, {
3421
+ useCustomizedStyleOptions: !0
3422
+ });
3423
+ if (!p)
3424
+ l(null);
3425
+ else {
3426
+ const g = i(p, {
3427
+ shouldAffectFilters: !1,
3428
+ applyMode: "filter"
3429
+ });
3430
+ l(g);
3431
+ }
3432
+ }, [e, i]);
3433
+ const n = z(() => {
3434
+ const p = o && ke(o) ? Et(o == null ? void 0 : o.filters) : [], g = e.jaql.metadata.filter((u) => !u.jaql.filter).concat(p.filter((u) => !u.config.disabled).map((u) => u.jaql()));
3435
+ return A(v({}, e), {
3436
+ jaql: A(v({}, e.jaql), {
3437
+ metadata: g
3438
+ })
3439
+ });
3440
+ }, [e, o]), {
3441
+ data: d,
3442
+ isLoading: c,
3443
+ isError: s
3444
+ } = pe(n);
3445
+ return c || !o ? /* @__PURE__ */ a(Ie, {}) : ke(o) ? /* @__PURE__ */ a(K, A(v({}, o), {
3446
+ highlightSelectionDisabled: !0,
3447
+ onDataReady: t,
3448
+ topSlot: d && !s && /* @__PURE__ */ a(Ti, {
3449
+ nlgRequest: n,
3450
+ summary: d
3451
+ })
3452
+ })) : /* @__PURE__ */ a(T, {});
3453
+ };
3454
+ (function() {
3455
+ try {
3456
+ if (typeof document < "u") {
3457
+ var e = document.createElement("style");
3458
+ 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);
3459
+ }
3460
+ } catch (t) {
3461
+ console.error("vite-plugin-css-injected-by-js", t);
3462
+ }
3463
+ })();
3464
+ export {
3465
+ Zi as AiContextProvider,
3466
+ Hi as Chatbot,
3467
+ Yi as GetNlgQueryResult,
3468
+ qi as NlqChartWidget,
3469
+ Ga as useChatSession,
3470
+ Gi as useGetDataSourceFields,
3471
+ Ri as useGetNlgQueryResult,
3472
+ Oi as useGetQueryRecommendations,
3473
+ Wi as useLastNlqResponse
3474
+ };