@sisense/sdk-ui-vue 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +388 -0
- package/dist/ai.d.ts +1 -0
- package/dist/ai.js +3838 -0
- package/dist/index.cjs +1 -1063
- package/dist/index.js +1277 -105403
- package/dist/packages/sdk-ui-vue/src/ai/components/chatbot.d.ts +73 -0
- package/dist/packages/sdk-ui-vue/src/ai/components/get-nlg-insights.d.ts +90 -0
- package/dist/packages/sdk-ui-vue/src/ai/components/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/ai/composables/index.d.ts +3 -0
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-nlg-insights.d.ts +45 -0
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-nlq-result.d.ts +42 -0
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-query-recommendations.d.ts +50 -0
- package/dist/packages/sdk-ui-vue/src/ai/index.d.ts +4 -0
- package/dist/packages/sdk-ui-vue/src/ai/providers/ai-context-provider.d.ts +60 -0
- package/dist/packages/sdk-ui-vue/src/ai/providers/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/ai/sdk-ui-core-exports.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/components/charts/chart.d.ts +4 -4
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard-by-id.d.ts +9 -8
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard.d.ts +13 -8
- package/dist/packages/sdk-ui-vue/src/components/widgets/chart-widget.d.ts +4 -4
- package/dist/packages/sdk-ui-vue/src/components/widgets/dashboard-widget.d.ts +4 -4
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget-by-id.d.ts +4 -4
- package/dist/packages/sdk-ui-vue/src/composables/use-tracking.d.ts +15 -15
- package/dist/packages/sdk-ui-vue/src/lib.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/providers/plugins-provider.d.ts +6 -2
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider.d.ts +2 -5
- package/dist/packages/sdk-ui-vue/src/providers/theme-provider.d.ts +2 -11
- package/dist/packages/sdk-ui-vue/src/sdk-ui-core-exports.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/setup-helper.d.ts +13 -1
- package/dist/packages/sdk-ui-vue/src/types/dashboard-config.d.ts +24 -0
- package/dist/packages/sdk-ui-vue/src/types/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/types/maybe-ref.d.ts +14 -0
- package/dist/packages/sdk-ui-vue/src/utilities/dashboard-helpers.d.ts +105 -0
- package/dist/packages/sdk-ui-vue/src/utilities/dashboard-model-translator.d.ts +37 -0
- package/dist/packages/sdk-ui-vue/src/utilities/index.d.ts +23 -0
- package/dist/packages/sdk-ui-vue/src/utilities/widget-model-translator.d.ts +247 -0
- package/dist/use-tracking-2d715e05.js +105710 -0
- package/dist/use-tracking-bc424435.cjs +1066 -0
- package/package.json +15 -2
- package/dist/packages/sdk-ui-vue/src/types.d.ts +0 -6
package/dist/ai.js
ADDED
@@ -0,0 +1,3838 @@
|
|
1
|
+
import { defineComponent as Ee, ref as gt, watchEffect as aa, provide as ra, inject as ia, watch as ze, toRefs as Oe } from "vue";
|
2
|
+
import { at as ut, au as ke, av as oa, aw as we, ax as na, ay as la, az as ee, aA as U, aB as ht, aC as b, aD as Ze, aE as k, aF as i, aG as y, aH as N, aI as Me, aJ as T, aK as le, aL as _, aM as mt, aN as da, aO as ca, aP as sa, aQ as V, aR as pa, aS as oe, aT as Se, aU as Re, aV as ga, aW as ua, aX as ha, aY as u, aZ as L, a_ as ma, a$ as ba, b0 as I, b1 as be, b2 as h, b3 as de, b4 as fa, b5 as xa, b6 as ka, b7 as ce, b8 as J, b9 as wa, ba as ya, bb as bt, bc as _a, bd as Ca, be as ft, bf as va, bg as Ma, bh as Sa, bi as xt, bj as Ia, bk as Da, bl as Aa, bm as La, bn as Ie, bo as Na, bp as Ta, bq as Ke, br as ja, bs as Ea, bt as za, bu as kt, bv as ne, bw as wt, bx as Le, by as Oa, bz as Za, bA as Ra, bB as Wa, ad as ue, bC as yt, bD as Ga, bE as qa, bF as _t, bG as Ha, bH as Ya, bI as Pa, L as Ba, bJ as Qa, a as Ct, bK as vt, N as We, K as Ge, O as qe, P as te, X as He } from "./use-tracking-2d715e05.js";
|
3
|
+
var Ua = Object.defineProperty, Fa = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, et = Object.getOwnPropertySymbols, Ja = Object.prototype.hasOwnProperty, Xa = Object.prototype.propertyIsEnumerable, tt = (e, t, a) => t in e ? Ua(e, t, {
|
4
|
+
enumerable: !0,
|
5
|
+
configurable: !0,
|
6
|
+
writable: !0,
|
7
|
+
value: a
|
8
|
+
}) : e[t] = a, F = (e, t) => {
|
9
|
+
for (var a in t || (t = {}))
|
10
|
+
Ja.call(t, a) && tt(e, a, t[a]);
|
11
|
+
if (et)
|
12
|
+
for (var a of et(t))
|
13
|
+
Xa.call(t, a) && tt(e, a, t[a]);
|
14
|
+
return e;
|
15
|
+
}, De = (e, t) => Fa(e, Va(t));
|
16
|
+
let Mt = class extends wt {
|
17
|
+
constructor(e, t) {
|
18
|
+
var a;
|
19
|
+
super((a = e.jaql.title) !== null && a !== void 0 ? a : "", t), this.expression = e.jaql.dim || e.jaql.formula, this.metadataItem = e, e.jaql.agg ? this.aggregation = e.jaql.agg : delete this.aggregation, e.jaql.formula ? this.formula = e.jaql.formula : delete this.formula, e.jaql.sort ? this.sortType = Ra(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
|
20
|
+
}
|
21
|
+
get id() {
|
22
|
+
return this.expression;
|
23
|
+
}
|
24
|
+
jaql(e) {
|
25
|
+
return e === !0 ? this.metadataItem.jaql : this.metadataItem;
|
26
|
+
}
|
27
|
+
};
|
28
|
+
const $a = {
|
29
|
+
text: Me.TextAttribute,
|
30
|
+
numeric: Me.NumericAttribute,
|
31
|
+
datetime: Me.DateLevel
|
32
|
+
};
|
33
|
+
function St(e) {
|
34
|
+
var t;
|
35
|
+
return new Mt(e, (t = $a[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
|
36
|
+
}
|
37
|
+
const Ka = (e) => "dashboardOid" in e && "widgetOid" in e;
|
38
|
+
function er(e) {
|
39
|
+
return e.replace(/\s+/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
40
|
+
}
|
41
|
+
function tr(e) {
|
42
|
+
return !e || !e.jaql.datasource.title || !e.jaql.metadata.length;
|
43
|
+
}
|
44
|
+
function It(e) {
|
45
|
+
if (![...La, "pivot", "pivot2"].includes(e))
|
46
|
+
throw new J("errors.chartTypeNotSupported", {
|
47
|
+
chartType: e
|
48
|
+
});
|
49
|
+
}
|
50
|
+
function ar(e) {
|
51
|
+
return "widgetType" in e && e.widgetType === "pivot";
|
52
|
+
}
|
53
|
+
function K(e) {
|
54
|
+
var t;
|
55
|
+
return "column" in e && ((t = e.column) == null ? void 0 : t.expression) && /\(.*\)/.test(e.column.expression);
|
56
|
+
}
|
57
|
+
function Dt(e) {
|
58
|
+
const t = "measures" in e && z(e.measures) || "values" in e && z(e.values);
|
59
|
+
return ar(e) ? "values" in e.dataOptions && z(e.dataOptions.values) : "chartType" in e ? e.chartType === "indicator" ? "value" in e.dataOptions && z(e.dataOptions.value) || "secondary" in e.dataOptions && z(e.dataOptions.secondary) : e.chartType === "table" ? !("columns" in e.dataOptions) || !z(e.dataOptions.columns) ? !1 : e.dataOptions.columns.some((a) => K(a)) : e.chartType === "boxplot" ? !1 : e.chartType === "scatter" ? "x" in e.dataOptions && e.dataOptions.x !== void 0 && K(e.dataOptions.x) || "y" in e.dataOptions && e.dataOptions.y !== void 0 && K(e.dataOptions.y) || "size" in e.dataOptions && e.dataOptions.size !== void 0 : e.chartType === "scattermap" ? "colorBy" in e.dataOptions && e.dataOptions.colorBy !== void 0 && K(e.dataOptions.colorBy) || "details" in e.dataOptions && e.dataOptions.details !== void 0 && K(e.dataOptions.details) || "size" in e.dataOptions && e.dataOptions.size !== void 0 && K(e.dataOptions.size) : e.chartType === "areamap" ? "geo" in e.dataOptions && z(e.dataOptions.geo) && "color" in e.dataOptions && z(e.dataOptions.color) : "value" in e.dataOptions && z(e.dataOptions.value) : t;
|
60
|
+
}
|
61
|
+
function z(e) {
|
62
|
+
return Array.isArray(e) && e.length > 0;
|
63
|
+
}
|
64
|
+
function rr(e) {
|
65
|
+
const t = e.split(`
|
66
|
+
`);
|
67
|
+
for (let a = 0; a < t.length - 1; a++)
|
68
|
+
if (t[a].trim() === "") {
|
69
|
+
const r = t[a + 1].trim();
|
70
|
+
if (r.startsWith("import *") || r.startsWith("import {")) {
|
71
|
+
t.splice(a, 1);
|
72
|
+
break;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
return t.join(`
|
76
|
+
`);
|
77
|
+
}
|
78
|
+
const ir = {
|
79
|
+
react: {
|
80
|
+
baseChartTmpl: `import { {{componentString}} } from '@sisense/sdk-ui';
|
81
|
+
{{extraImportsString}}
|
82
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
83
|
+
|
84
|
+
export default function CodeExample() {
|
85
|
+
return (
|
86
|
+
<{{componentString}}
|
87
|
+
title={'{{titleString}}'}
|
88
|
+
dataSource={DM.DataSource}
|
89
|
+
chartType={'{{chartTypeString}}'}
|
90
|
+
dataOptions={ {{dataOptionsString}} }
|
91
|
+
filters={ {{filtersString}} }
|
92
|
+
styleOptions={ {{styleOptionsString}} }
|
93
|
+
drilldownOptions={ {{drilldownOptionsString}} }
|
94
|
+
/>
|
95
|
+
);
|
96
|
+
}`,
|
97
|
+
chartTmpl: "{{baseChartTmpl}}",
|
98
|
+
chartWidgetTmpl: "{{baseChartTmpl}}",
|
99
|
+
widgetByIdTmpl: `import { WidgetById } from '@sisense/sdk-ui';
|
100
|
+
|
101
|
+
const CodeExample = () => {
|
102
|
+
return (
|
103
|
+
<>
|
104
|
+
<WidgetById
|
105
|
+
widgetOid="{{widgetOid}}"
|
106
|
+
dashboardOid="{{dashboardOid}}"
|
107
|
+
includeDashboardFilters={true}
|
108
|
+
/>
|
109
|
+
</>
|
110
|
+
);
|
111
|
+
};
|
112
|
+
|
113
|
+
export default CodeExample;
|
114
|
+
`,
|
115
|
+
executeQueryByWidgetIdTmpl: `import { useExecuteQueryByWidgetId } from '@sisense/sdk-ui';
|
116
|
+
|
117
|
+
const CodeExample = () => {
|
118
|
+
const { data, isLoading, isError, error } = useExecuteQueryByWidgetId({
|
119
|
+
widgetOid: "{{widgetOid}}",
|
120
|
+
dashboardOid: "{{dashboardOid}}"
|
121
|
+
});
|
122
|
+
|
123
|
+
if (isLoading) {
|
124
|
+
return <div>Loading...</div>;
|
125
|
+
}
|
126
|
+
if (isError) {
|
127
|
+
return <div>Error: {error.message}</div>;
|
128
|
+
}
|
129
|
+
if (data) {
|
130
|
+
return <div>Total Rows: {data.rows.length}</div>;
|
131
|
+
}
|
132
|
+
|
133
|
+
return null;
|
134
|
+
};
|
135
|
+
|
136
|
+
export default CodeExample;
|
137
|
+
`,
|
138
|
+
executeQueryTmpl: `import { useExecuteQuery } from '@sisense/sdk-ui';
|
139
|
+
{{extraImportsString}}
|
140
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
141
|
+
|
142
|
+
const CodeExample = () => {
|
143
|
+
const queryProps = {
|
144
|
+
dataSource: DM.DataSource,
|
145
|
+
dimensions: {{dimensionsString}},
|
146
|
+
measures: {{measuresString}},
|
147
|
+
filters: {{filtersString}},
|
148
|
+
highlights: {{highlightsString}},
|
149
|
+
}
|
150
|
+
|
151
|
+
const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
|
152
|
+
|
153
|
+
if (isLoading) {
|
154
|
+
return <div>Loading...</div>;
|
155
|
+
}
|
156
|
+
if (isError) {
|
157
|
+
return <div>Error: {error.message}</div>;
|
158
|
+
}
|
159
|
+
if (data) {
|
160
|
+
return <div>Total Rows: {data.rows.length}</div>;
|
161
|
+
}
|
162
|
+
|
163
|
+
return null;
|
164
|
+
};
|
165
|
+
|
166
|
+
export default CodeExample;
|
167
|
+
`,
|
168
|
+
executePivotQueryTmpl: `import { useExecutePivotQuery, ExecutePivotQueryParams } from '@sisense/sdk-ui';
|
169
|
+
{{extraImportsString}}
|
170
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
171
|
+
|
172
|
+
const CodeExample = () => {
|
173
|
+
const pivotQueryProps: ExecutePivotQueryParams = {
|
174
|
+
dataSource: DM.DataSource,
|
175
|
+
rows: {{rowsString}},
|
176
|
+
values: {{valuesString}},
|
177
|
+
filters: {{filtersString}},
|
178
|
+
}
|
179
|
+
|
180
|
+
const { data, isLoading, isError, error } = useExecutePivotQuery(pivotQueryProps);
|
181
|
+
|
182
|
+
if (isLoading) {
|
183
|
+
return <div>Loading...</div>;
|
184
|
+
}
|
185
|
+
if (isError) {
|
186
|
+
return <div>Error: {error.message}</div>;
|
187
|
+
}
|
188
|
+
if (data) {
|
189
|
+
return <div>Total Rows: {data.table.rows.length}</div>;
|
190
|
+
}
|
191
|
+
|
192
|
+
return null;
|
193
|
+
};
|
194
|
+
|
195
|
+
export default CodeExample;
|
196
|
+
`,
|
197
|
+
pivotTableWidgetTmpl: `import { {{componentString}} } from '@sisense/sdk-ui';
|
198
|
+
{{extraImportsString}}
|
199
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
200
|
+
|
201
|
+
export default function CodeExample() {
|
202
|
+
return (
|
203
|
+
<{{componentString}}
|
204
|
+
title={'{{titleString}}'}
|
205
|
+
dataSource={DM.DataSource}
|
206
|
+
dataOptions={ {{dataOptionsString}} }
|
207
|
+
filters={ {{filtersString}} }
|
208
|
+
styleOptions={ {{styleOptionsString}} }
|
209
|
+
/>
|
210
|
+
);
|
211
|
+
}`
|
212
|
+
},
|
213
|
+
angular: {
|
214
|
+
baseChartTmpl: `import { Component } from '@angular/core';
|
215
|
+
import { type ChartDataOptions, type ChartStyleOptions } from '@sisense/sdk-ui-angular';
|
216
|
+
{{extraImportsString}}
|
217
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
218
|
+
|
219
|
+
@Component({
|
220
|
+
selector: 'code-example',
|
221
|
+
template: \`
|
222
|
+
<csdk-chart-widget
|
223
|
+
[title]="'{{titleString}}'"
|
224
|
+
chartType='{{chartTypeString}}'
|
225
|
+
[dataSource]='DM.DataSource'
|
226
|
+
[dataOptions]='dataOptions'
|
227
|
+
[filters]='filters'
|
228
|
+
[styleOptions]='styleOptions'
|
229
|
+
[drilldownOptions]='drilldownOptions'
|
230
|
+
/>
|
231
|
+
\`
|
232
|
+
})
|
233
|
+
export class CodeExample {
|
234
|
+
DM = DM;
|
235
|
+
dataOptions: ChartDataOptions = {{dataOptionsString}};
|
236
|
+
filters = {{filtersString}};
|
237
|
+
styleOptions: ChartStyleOptions = {{styleOptionsString}};
|
238
|
+
drilldownOptions = {{drilldownOptionsString}};
|
239
|
+
}`,
|
240
|
+
chartTmpl: "{{baseChartTmpl}}",
|
241
|
+
chartWidgetTmpl: "{{baseChartTmpl}}",
|
242
|
+
widgetByIdTmpl: `import { Component } from '@angular/core';
|
243
|
+
|
244
|
+
@Component({
|
245
|
+
selector: 'code-example',
|
246
|
+
template: \`
|
247
|
+
<csdk-widget-by-id
|
248
|
+
[widgetOid]="widgetOid"
|
249
|
+
[dashboardOid]="dashboardOid"
|
250
|
+
[includeDashboardFilters]="includeDashboardFilters"
|
251
|
+
/>
|
252
|
+
\`,
|
253
|
+
})
|
254
|
+
|
255
|
+
export class CodeExample {
|
256
|
+
widgetOid = "{{widgetOid}}";
|
257
|
+
dashboardOid = "{{dashboardOid}}";
|
258
|
+
includeDashboardFilters = true;
|
259
|
+
}`,
|
260
|
+
executeQueryByWidgetIdTmpl: `import { Component } from '@angular/core';
|
261
|
+
import { QueryService } from '@sisense/sdk-ui-angular';
|
262
|
+
import { type QueryResultData } from '@sisense/sdk-data';
|
263
|
+
|
264
|
+
@Component({
|
265
|
+
selector: 'code-example',
|
266
|
+
template: \`<div>
|
267
|
+
<div *ngIf="errorMessage">Error: {{ errorMessage }}</div>
|
268
|
+
<div *ngIf="!errorMessage">Total Rows: {{ queryResult.rows.length }}</div>
|
269
|
+
</div>\`,
|
270
|
+
})
|
271
|
+
|
272
|
+
export class CodeExample {
|
273
|
+
queryResult: QueryResultData = { rows: [], columns: [] };
|
274
|
+
|
275
|
+
errorMessage: string | null = null;
|
276
|
+
|
277
|
+
constructor(private queryService: QueryService) {}
|
278
|
+
|
279
|
+
async ngOnInit(): Promise<void> {
|
280
|
+
try {
|
281
|
+
const { data } = await this.queryService.executeQueryByWidgetId({
|
282
|
+
widgetOid: "{{widgetOid}}",
|
283
|
+
dashboardOid: "{{dashboardOid}}",
|
284
|
+
});
|
285
|
+
this.queryResult = data as QueryResultData;
|
286
|
+
} catch(error: unknown) {
|
287
|
+
if (error instanceof Error) {
|
288
|
+
this.errorMessage = error.message;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
}
|
293
|
+
`,
|
294
|
+
executeQueryTmpl: `import { Component } from '@angular/core';
|
295
|
+
{{extraImportsString}}
|
296
|
+
import { type QueryResultData } from '@sisense/sdk-data';
|
297
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
298
|
+
import { QueryService } from '@sisense/sdk-ui-angular';
|
299
|
+
|
300
|
+
@Component({
|
301
|
+
selector: 'code-example',
|
302
|
+
template: \`<div>
|
303
|
+
<div *ngIf="errorMessage">Error: {{ errorMessage }}</div>
|
304
|
+
<div *ngIf="!errorMessage">Total Rows: {{ queryResult.rows.length }}</div>
|
305
|
+
</div>\`,
|
306
|
+
})
|
307
|
+
|
308
|
+
export class CodeExample {
|
309
|
+
queryResult: QueryResultData = { rows: [], columns: [] };
|
310
|
+
|
311
|
+
errorMessage: string | null = null;
|
312
|
+
|
313
|
+
constructor(private queryService: QueryService) {}
|
314
|
+
|
315
|
+
async ngOnInit(): Promise<void> {
|
316
|
+
const queryProps = {
|
317
|
+
dataSource: DM.DataSource,
|
318
|
+
dimensions: {{dimensionsString}},
|
319
|
+
measures: {{measuresString}},
|
320
|
+
filters: {{filtersString}},
|
321
|
+
highlights: {{highlightsString}},
|
322
|
+
}
|
323
|
+
|
324
|
+
try {
|
325
|
+
const { data } = await this.queryService.executeQuery(queryProps);
|
326
|
+
this.queryResult = data as QueryResultData;
|
327
|
+
} catch (error: unknown) {
|
328
|
+
if (error instanceof Error) {
|
329
|
+
this.errorMessage = error.message;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
}
|
333
|
+
}
|
334
|
+
`,
|
335
|
+
executePivotQueryTmpl: "Not implemented yet",
|
336
|
+
pivotTableWidgetTmpl: "Not implemented yet"
|
337
|
+
},
|
338
|
+
vue: {
|
339
|
+
baseChartTmpl: `<script setup lang="ts">
|
340
|
+
import { ref } from 'vue';
|
341
|
+
import { {{componentString}}, type ChartStyleOptions } from '@sisense/sdk-ui-vue';
|
342
|
+
{{extraImportsString}}
|
343
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
344
|
+
|
345
|
+
const dataOptions = ref({{dataOptionsString}});
|
346
|
+
const filters = ref({{filtersString}});
|
347
|
+
const styleOptions = ref<ChartStyleOptions>({{styleOptionsString}});
|
348
|
+
const drilldownOptions = ref({{drilldownOptionsString}});
|
349
|
+
<\/script>
|
350
|
+
|
351
|
+
<template>
|
352
|
+
<{{componentString}}
|
353
|
+
chartType="{{chartTypeString}}"
|
354
|
+
:dataOptions="dataOptions"
|
355
|
+
:filters="filters"
|
356
|
+
:styleOptions="styleOptions"
|
357
|
+
:drilldownOptions="drilldownOptions"
|
358
|
+
:dataSource="DM.DataSource"
|
359
|
+
title="{{titleString}}" />
|
360
|
+
</template>`,
|
361
|
+
chartTmpl: "{{baseChartTmpl}}",
|
362
|
+
chartWidgetTmpl: "{{baseChartTmpl}}",
|
363
|
+
widgetByIdTmpl: `<script setup lang="ts">
|
364
|
+
import { WidgetById } from '@sisense/sdk-ui-vue';
|
365
|
+
<\/script>
|
366
|
+
<template>
|
367
|
+
<WidgetById
|
368
|
+
:widgetOid="'{{widgetOid}}'"
|
369
|
+
:dashboardOid="'{{dashboardOid}}'"
|
370
|
+
/>
|
371
|
+
</template>
|
372
|
+
`,
|
373
|
+
executeQueryByWidgetIdTmpl: `<script setup lang="ts">
|
374
|
+
import { useExecuteQueryByWidgetId } from '@sisense/sdk-ui-vue';
|
375
|
+
|
376
|
+
const { data, isLoading, isError, error } = useExecuteQueryByWidgetId({
|
377
|
+
widgetOid: "{{widgetOid}}",
|
378
|
+
dashboardOid: "{{dashboardOid}}"
|
379
|
+
});
|
380
|
+
<\/script>
|
381
|
+
<template>
|
382
|
+
<div>
|
383
|
+
<div v-if="isLoading">Loading...</div>
|
384
|
+
<div v-else-if="isError">Error: {{error.message}}</div>
|
385
|
+
<div v-else-if="data">Total Rows: {{data.rows.length}}</div>
|
386
|
+
</div>
|
387
|
+
</template>
|
388
|
+
`,
|
389
|
+
executeQueryTmpl: `<script setup lang="ts">
|
390
|
+
import { useExecuteQuery } from '@sisense/sdk-ui-vue';
|
391
|
+
{{extraImportsString}}
|
392
|
+
import * as DM from './{{dataSourceString}}'; // generated with @sisense/sdk-cli
|
393
|
+
|
394
|
+
const queryProps = {
|
395
|
+
dataSource: DM.DataSource,
|
396
|
+
dimensions: {{dimensionsString}},
|
397
|
+
measures: {{measuresString}},
|
398
|
+
filters: {{filtersString}},
|
399
|
+
highlights: {{highlightsString}},
|
400
|
+
}
|
401
|
+
const { data, isLoading, isError, error } = useExecuteQuery(queryProps);
|
402
|
+
<\/script>
|
403
|
+
<template>
|
404
|
+
<div>
|
405
|
+
<div v-if="isLoading">Loading...</div>
|
406
|
+
<div v-else-if="isError">Error: {{error.message}}</div>
|
407
|
+
<div v-else-if="data">Total Rows: {{data.rows.length}}</div>
|
408
|
+
</div>
|
409
|
+
</template>`,
|
410
|
+
executePivotQueryTmpl: "Not implemented yet",
|
411
|
+
pivotTableWidgetTmpl: "Not implemented yet"
|
412
|
+
}
|
413
|
+
}, At = (e, t) => ir[t][e].replace(/{{(.*?)Tmpl}}/g, (a, r) => At(`${r}Tmpl`, t)), or = (e, t) => e.replace(/{{(.*?)}}/g, (a, r) => r in t ? t[r] : (console.warn(`Placeholder ${r} not found in data`), a)), Ye = (e, t, a = "react") => {
|
414
|
+
const r = At(e, a);
|
415
|
+
return rr(or(r, t));
|
416
|
+
}, he = `
|
417
|
+
`, Ne = "UNKNOWN", nr = (e, t) => {
|
418
|
+
let a = "";
|
419
|
+
return a += `measureFactory.customFormula(
|
420
|
+
`, a += " ".repeat(t), a += ` '${ne(e.title)}',
|
421
|
+
`, a += " ".repeat(t), a += ` '${e.formula}',
|
422
|
+
`, a += " ".repeat(t), a += ` {
|
423
|
+
`, Object.entries(e.context).forEach(([r, o]) => {
|
424
|
+
const n = _t(o.table || Ne, o.column || Ne, void 0, "DM");
|
425
|
+
a += " ".repeat(t), a += ` '${r.slice(1, -1)}': ${n},
|
426
|
+
`;
|
427
|
+
}), a += " ".repeat(t), a += ` }
|
428
|
+
`, a += " ".repeat(t), a += ")", a;
|
429
|
+
}, lr = (e) => {
|
430
|
+
const {
|
431
|
+
level: t,
|
432
|
+
table: a,
|
433
|
+
column: r,
|
434
|
+
agg: o,
|
435
|
+
title: n
|
436
|
+
} = e;
|
437
|
+
let l;
|
438
|
+
return a && r && (l = _t(a, r, t, "DM")), o && a && r && n && (l = `measureFactory.${Ha.aggregationFromJAQL(o)}(${l}, '${ne(n)}')`), l || Ne;
|
439
|
+
}, dr = (e, t) => {
|
440
|
+
const a = e.jaql(!1).jaql;
|
441
|
+
return "formula" in a ? nr(a, t) : lr(a);
|
442
|
+
}, W = (e, t = 0, a = !1) => {
|
443
|
+
if (!e)
|
444
|
+
return "";
|
445
|
+
if (typeof e == "string")
|
446
|
+
return `'${ne(e)}'`;
|
447
|
+
if (e instanceof Mt)
|
448
|
+
return dr(e, t);
|
449
|
+
if (e instanceof wt)
|
450
|
+
return e.composeCode || "";
|
451
|
+
let r = "";
|
452
|
+
return Array.isArray(e) ? r += `[${e.map((o) => W(o, t + 2))}${e.length ? he + " ".repeat(t + 2) : ""}]` : (r += `{${he}`, Object.entries(e).forEach(([o, n]) => {
|
453
|
+
a && (o = `'${ne(o)}'`), r += " ".repeat(t + 2), Array.isArray(n) ? r += `${o}: [${n.map((l) => W(l, t + 4, a))}${n.length ? he + " ".repeat(t + 2) : ""}]` : typeof n == "object" && n !== null ? r += `${o}: ${W(n, t + 2, a)}` : ["number", "boolean", "undefined"].includes(typeof n) || n === null ? r += `${o}: ${n}` : r += `${o}: '${ne(n)}'`, r += `,${he}`;
|
454
|
+
}), r += " ".repeat(t), r += "}"), r;
|
455
|
+
}, fe = 6;
|
456
|
+
function cr(e) {
|
457
|
+
return W(e, fe);
|
458
|
+
}
|
459
|
+
function Lt(e) {
|
460
|
+
if (!e)
|
461
|
+
throw new J("errors.undefinedDataSource");
|
462
|
+
let t;
|
463
|
+
return typeof e == "object" && "title" in e ? t = e.title : t = e, er(t);
|
464
|
+
}
|
465
|
+
function Nt(e, t = !0) {
|
466
|
+
const a = [];
|
467
|
+
return t && a.push("measureFactory"), z(e) && a.push("filterFactory"), a.length > 0 ? `import { ${a.join(", ")} } from '@sisense/sdk-data';` : "";
|
468
|
+
}
|
469
|
+
const at = `
|
470
|
+
`, sr = (e, t) => {
|
471
|
+
if (e.composeCode)
|
472
|
+
return `${at}${" ".repeat(t)}${e.composeCode}`;
|
473
|
+
const a = e.jaql().jaql;
|
474
|
+
return `${at}${" ".repeat(t)}filterFactory.customFilter(${W(a, t, !0)})`;
|
475
|
+
}, pr = (e, t = 0) => {
|
476
|
+
if (!e)
|
477
|
+
return "";
|
478
|
+
let a = "";
|
479
|
+
return a += `[${e.map((r) => sr(r, t + 2))}${e.length ? `
|
480
|
+
` + " ".repeat(t + 2) : ""}]`, a;
|
481
|
+
}, Tt = (e) => {
|
482
|
+
if (!e)
|
483
|
+
return "";
|
484
|
+
if (Array.isArray(e))
|
485
|
+
return pr(e, 6);
|
486
|
+
throw new J("errors.filterRelationsNotSupported");
|
487
|
+
}, gr = ["executeQueryByWidgetIdTmpl", "widgetByIdTmpl"], ur = "chartWidgetTmpl", hr = "pivotTableWidgetTmpl", mr = (e) => e, br = (e, t, a) => {
|
488
|
+
const r = Dt(e), o = {
|
489
|
+
titleString: e.title,
|
490
|
+
dataSourceString: Lt(e.dataSource),
|
491
|
+
chartTypeString: mr(e.chartType),
|
492
|
+
dataOptionsString: cr(e.dataOptions),
|
493
|
+
filtersString: Tt(e.filters),
|
494
|
+
componentString: "ChartWidget",
|
495
|
+
extraImportsString: Nt(e.filters || [], r),
|
496
|
+
styleOptionsString: W(e.styleOptions || {}, fe),
|
497
|
+
drilldownOptionsString: W(e.drilldownOptions || {}, fe)
|
498
|
+
};
|
499
|
+
return Ye(a, o, t);
|
500
|
+
}, fr = (e, t, a) => {
|
501
|
+
const r = Dt(e), o = {
|
502
|
+
titleString: e.title,
|
503
|
+
dataSourceString: Lt(e.dataSource),
|
504
|
+
dataOptionsString: W(e.dataOptions),
|
505
|
+
filtersString: Tt(e.filters),
|
506
|
+
componentString: "PivotTableWidget",
|
507
|
+
extraImportsString: Nt(e.filters || [], r),
|
508
|
+
styleOptionsString: W(e.styleOptions || {}, fe)
|
509
|
+
};
|
510
|
+
return Ye(a, o, t);
|
511
|
+
}, xr = ({
|
512
|
+
dashboardOid: e,
|
513
|
+
widgetOid: t,
|
514
|
+
uiFramework: a = "react",
|
515
|
+
chartType: r = "table",
|
516
|
+
includeChart: o = !0
|
517
|
+
}) => {
|
518
|
+
It(r);
|
519
|
+
const n = {
|
520
|
+
dashboardOid: e,
|
521
|
+
widgetOid: t
|
522
|
+
}, l = gr[Number(o)];
|
523
|
+
return Ye(l, n, a);
|
524
|
+
}, kr = ({
|
525
|
+
widgetProps: e,
|
526
|
+
uiFramework: t = "react"
|
527
|
+
}) => {
|
528
|
+
if (ft(e))
|
529
|
+
return It(e.chartType), br(e, t, ur);
|
530
|
+
if (va(e))
|
531
|
+
return fr(e, t, hr);
|
532
|
+
throw new J("errors.otherWidgetTypesNotSupported");
|
533
|
+
}, wr = (e) => ({
|
534
|
+
dataOptions: {
|
535
|
+
columns: e.map(St)
|
536
|
+
}
|
537
|
+
}), yr = Object.freeze({
|
538
|
+
convolution: {
|
539
|
+
enabled: !0,
|
540
|
+
selectedConvolutionType: "bySlicesCount",
|
541
|
+
independentSlicesCount: 7
|
542
|
+
},
|
543
|
+
lineWidth: {
|
544
|
+
width: "bold"
|
545
|
+
},
|
546
|
+
markers: {
|
547
|
+
enabled: !1
|
548
|
+
},
|
549
|
+
legend: {
|
550
|
+
enabled: !1
|
551
|
+
},
|
552
|
+
yAxis: {
|
553
|
+
gridLines: !1
|
554
|
+
},
|
555
|
+
xAxis: {
|
556
|
+
gridLines: !1
|
557
|
+
}
|
558
|
+
}), rt = Object.freeze({
|
559
|
+
line: "line/spline",
|
560
|
+
pie: "pie/donut",
|
561
|
+
bar: "bar/stacked",
|
562
|
+
column: "column/stackedcolumn"
|
563
|
+
}), _r = (e, t, a) => {
|
564
|
+
const r = e.reduce((n, l) => (n[l.jaql.title] = l, n), {}), o = Object.entries(a).reduce((n, l) => {
|
565
|
+
const [d, c] = l;
|
566
|
+
return n[`${d}`] = Array.isArray(c) ? c.map((s) => {
|
567
|
+
var g, p;
|
568
|
+
const m = Le(s);
|
569
|
+
delete m.enabled;
|
570
|
+
const x = r[m.column.name];
|
571
|
+
if (!x)
|
572
|
+
return {
|
573
|
+
column: {
|
574
|
+
type: "",
|
575
|
+
name: m.column.name
|
576
|
+
}
|
577
|
+
};
|
578
|
+
const w = St(x);
|
579
|
+
if (x.panel === "measures")
|
580
|
+
return De(F({}, m), {
|
581
|
+
column: w
|
582
|
+
});
|
583
|
+
if (Oa(w.type)) {
|
584
|
+
const f = (p = (g = x.format) == null ? void 0 : g.mask) == null ? void 0 : p[x.jaql.level];
|
585
|
+
if (f)
|
586
|
+
return De(F({}, m), {
|
587
|
+
column: w,
|
588
|
+
dateFormat: f
|
589
|
+
});
|
590
|
+
}
|
591
|
+
return De(F({}, m), {
|
592
|
+
column: w
|
593
|
+
});
|
594
|
+
}) : c, n;
|
595
|
+
}, {});
|
596
|
+
switch (t) {
|
597
|
+
case "cartesian":
|
598
|
+
return F({
|
599
|
+
category: [],
|
600
|
+
value: [],
|
601
|
+
breakBy: []
|
602
|
+
}, o);
|
603
|
+
case "categorical":
|
604
|
+
return F({
|
605
|
+
category: [],
|
606
|
+
value: []
|
607
|
+
}, o);
|
608
|
+
case "scatter":
|
609
|
+
return Object.keys(o).forEach((n) => {
|
610
|
+
o[`${n}`] = o[`${n}`][0];
|
611
|
+
}), o;
|
612
|
+
case "scattermap":
|
613
|
+
return Object.keys(o).forEach((n) => {
|
614
|
+
n !== "geo" && (o[`${n}`] = o[`${n}`][0]);
|
615
|
+
}), o;
|
616
|
+
case "table":
|
617
|
+
return Object.keys(o).length === 0 ? wr(e).dataOptions : o;
|
618
|
+
case "boxplot":
|
619
|
+
case "areamap":
|
620
|
+
case "indicator":
|
621
|
+
default:
|
622
|
+
return o;
|
623
|
+
}
|
624
|
+
}, it = (e, t) => {
|
625
|
+
var a, r, o, n;
|
626
|
+
return t === "x" ? (r = (a = e.axesMapping.category) != null ? a : e.axesMapping.x) == null ? void 0 : r.map((l) => Le(l).column.name).join(", ") : (n = (o = e.axesMapping.value) != null ? o : e.axesMapping.y) == null ? void 0 : n.map((l) => Le(l).column.name).join(", ");
|
627
|
+
}, Cr = (e, t, a = !0) => {
|
628
|
+
const {
|
629
|
+
chartFamily: r,
|
630
|
+
axesMapping: o = {},
|
631
|
+
styleOptions: n = {}
|
632
|
+
} = t, l = _r(e, r, o);
|
633
|
+
let d;
|
634
|
+
return a && t.chartType in rt ? d = Ie(Ie(yr, {
|
635
|
+
subtype: rt[t.chartType]
|
636
|
+
}), {
|
637
|
+
legend: {
|
638
|
+
enabled: !0,
|
639
|
+
position: "right"
|
640
|
+
},
|
641
|
+
yAxis: {
|
642
|
+
title: {
|
643
|
+
enabled: !0,
|
644
|
+
text: it(t, "y")
|
645
|
+
}
|
646
|
+
},
|
647
|
+
xAxis: {
|
648
|
+
title: {
|
649
|
+
enabled: !0,
|
650
|
+
text: it(t, "x")
|
651
|
+
}
|
652
|
+
}
|
653
|
+
}, n) : d = Ie(Na(), n), {
|
654
|
+
dataOptions: l,
|
655
|
+
chartStyleOptions: d
|
656
|
+
};
|
657
|
+
}, vr = (e) => "chartType" in e ? e : {
|
658
|
+
chartType: "table",
|
659
|
+
chartFamily: "table",
|
660
|
+
axesMapping: {}
|
661
|
+
}, Mr = (e) => e.map((t) => Ta(t.jaql)), Sr = (e) => e.reduce((t, a) => {
|
662
|
+
if ((a.panel === "scope" || a.jaql.filter) && t.metadataFilters.push(Ke(a)), a.panel !== "scope") {
|
663
|
+
const r = Ke(a);
|
664
|
+
delete r.jaql.filter, t.metadataColumns.push(r);
|
665
|
+
}
|
666
|
+
return t;
|
667
|
+
}, {
|
668
|
+
metadataColumns: [],
|
669
|
+
metadataFilters: []
|
670
|
+
}), Ir = (e, t) => {
|
671
|
+
if (!tr(e))
|
672
|
+
try {
|
673
|
+
const {
|
674
|
+
useCustomizedStyleOptions: a = !1
|
675
|
+
} = t || {}, {
|
676
|
+
jaql: r,
|
677
|
+
chartRecommendations: o,
|
678
|
+
queryTitle: n
|
679
|
+
} = e, {
|
680
|
+
metadata: l,
|
681
|
+
datasource: {
|
682
|
+
title: d,
|
683
|
+
id: c,
|
684
|
+
type: s = "elasticube"
|
685
|
+
}
|
686
|
+
} = r, g = vr(o), p = g.chartType.toLowerCase(), m = {
|
687
|
+
cornerRadius: "Small",
|
688
|
+
header: {
|
689
|
+
// remove info button and render empty toolbar instead
|
690
|
+
renderToolbar: () => null
|
691
|
+
}
|
692
|
+
}, {
|
693
|
+
metadataColumns: x,
|
694
|
+
metadataFilters: w
|
695
|
+
} = Sr(l), f = Mr(w), {
|
696
|
+
dataOptions: M,
|
697
|
+
chartStyleOptions: S
|
698
|
+
} = Cr(x, g, a), E = F(F({}, S), m);
|
699
|
+
return {
|
700
|
+
widgetType: "chart",
|
701
|
+
id: n,
|
702
|
+
title: n,
|
703
|
+
chartType: p,
|
704
|
+
dataSource: {
|
705
|
+
title: d,
|
706
|
+
id: c,
|
707
|
+
type: s
|
708
|
+
},
|
709
|
+
dataOptions: M,
|
710
|
+
filters: f,
|
711
|
+
styleOptions: E
|
712
|
+
};
|
713
|
+
} catch (a) {
|
714
|
+
console.error(a);
|
715
|
+
return;
|
716
|
+
}
|
717
|
+
}, Pe = (e, t) => Ir(e, t), Dr = (e) => Ka(e) ? xr(e) : kr(e), jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
718
|
+
__proto__: null,
|
719
|
+
toWidgetCode: Dr,
|
720
|
+
toWidgetProps: Pe
|
721
|
+
}, Symbol.toStringTag, {
|
722
|
+
value: "Module"
|
723
|
+
}));
|
724
|
+
var Ar = Object.defineProperty, Lr = Object.defineProperties, Nr = Object.getOwnPropertyDescriptors, ot = Object.getOwnPropertySymbols, Tr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable, nt = (e, t, a) => t in e ? Ar(e, t, {
|
725
|
+
enumerable: !0,
|
726
|
+
configurable: !0,
|
727
|
+
writable: !0,
|
728
|
+
value: a
|
729
|
+
}) : e[t] = a, v = (e, t) => {
|
730
|
+
for (var a in t || (t = {}))
|
731
|
+
Tr.call(t, a) && nt(e, a, t[a]);
|
732
|
+
if (ot)
|
733
|
+
for (var a of ot(t))
|
734
|
+
jr.call(t, a) && nt(e, a, t[a]);
|
735
|
+
return e;
|
736
|
+
}, A = (e, t) => Lr(e, Nr(t)), X = (e, t, a) => new Promise((r, o) => {
|
737
|
+
var n = (c) => {
|
738
|
+
try {
|
739
|
+
d(a.next(c));
|
740
|
+
} catch (s) {
|
741
|
+
o(s);
|
742
|
+
}
|
743
|
+
}, l = (c) => {
|
744
|
+
try {
|
745
|
+
d(a.throw(c));
|
746
|
+
} catch (s) {
|
747
|
+
o(s);
|
748
|
+
}
|
749
|
+
}, d = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(n, l);
|
750
|
+
d((a = a.apply(e, t)).next());
|
751
|
+
});
|
752
|
+
class Er extends ja {
|
753
|
+
constructor(t, a) {
|
754
|
+
super(), this.client = t, this.setOptions(a), this.bindMethods(), this.updateResult();
|
755
|
+
}
|
756
|
+
bindMethods() {
|
757
|
+
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
758
|
+
}
|
759
|
+
setOptions(t) {
|
760
|
+
var a;
|
761
|
+
const r = this.options;
|
762
|
+
this.options = this.client.defaultMutationOptions(t), Ea(r, this.options) || this.client.getMutationCache().notify({
|
763
|
+
type: "observerOptionsUpdated",
|
764
|
+
mutation: this.currentMutation,
|
765
|
+
observer: this
|
766
|
+
}), (a = this.currentMutation) == null || a.setOptions(this.options);
|
767
|
+
}
|
768
|
+
onUnsubscribe() {
|
769
|
+
if (!this.hasListeners()) {
|
770
|
+
var t;
|
771
|
+
(t = this.currentMutation) == null || t.removeObserver(this);
|
772
|
+
}
|
773
|
+
}
|
774
|
+
onMutationUpdate(t) {
|
775
|
+
this.updateResult();
|
776
|
+
const a = {
|
777
|
+
listeners: !0
|
778
|
+
};
|
779
|
+
t.type === "success" ? a.onSuccess = !0 : t.type === "error" && (a.onError = !0), this.notify(a);
|
780
|
+
}
|
781
|
+
getCurrentResult() {
|
782
|
+
return this.currentResult;
|
783
|
+
}
|
784
|
+
reset() {
|
785
|
+
this.currentMutation = void 0, this.updateResult(), this.notify({
|
786
|
+
listeners: !0
|
787
|
+
});
|
788
|
+
}
|
789
|
+
mutate(t, a) {
|
790
|
+
return this.mutateOptions = a, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, A(v({}, this.options), {
|
791
|
+
variables: typeof t < "u" ? t : this.options.variables
|
792
|
+
})), this.currentMutation.addObserver(this), this.currentMutation.execute();
|
793
|
+
}
|
794
|
+
updateResult() {
|
795
|
+
const t = this.currentMutation ? this.currentMutation.state : za(), a = A(v({}, t), {
|
796
|
+
isLoading: t.status === "loading",
|
797
|
+
isSuccess: t.status === "success",
|
798
|
+
isError: t.status === "error",
|
799
|
+
isIdle: t.status === "idle",
|
800
|
+
mutate: this.mutate,
|
801
|
+
reset: this.reset
|
802
|
+
});
|
803
|
+
this.currentResult = a;
|
804
|
+
}
|
805
|
+
notify(t) {
|
806
|
+
xt.batch(() => {
|
807
|
+
if (this.mutateOptions && this.hasListeners()) {
|
808
|
+
if (t.onSuccess) {
|
809
|
+
var a, r, o, n;
|
810
|
+
(a = (r = this.mutateOptions).onSuccess) == null || a.call(r, this.currentResult.data, this.currentResult.variables, this.currentResult.context), (o = (n = this.mutateOptions).onSettled) == null || o.call(n, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);
|
811
|
+
} else if (t.onError) {
|
812
|
+
var l, d, c, s;
|
813
|
+
(l = (d = this.mutateOptions).onError) == null || l.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);
|
814
|
+
}
|
815
|
+
}
|
816
|
+
t.listeners && this.listeners.forEach(({
|
817
|
+
listener: g
|
818
|
+
}) => {
|
819
|
+
g(this.currentResult);
|
820
|
+
});
|
821
|
+
});
|
822
|
+
}
|
823
|
+
}
|
824
|
+
function Be(e, t, a) {
|
825
|
+
const r = Ma(e, t), o = de({
|
826
|
+
context: r.context
|
827
|
+
}), [n] = I(() => new Er(o, r));
|
828
|
+
ce(() => {
|
829
|
+
n.setOptions(r);
|
830
|
+
}, [n, r]);
|
831
|
+
const l = Sa(_((c) => n.subscribe(xt.batchCalls(c)), [n]), () => n.getCurrentResult(), () => n.getCurrentResult()), d = _((c, s) => {
|
832
|
+
n.mutate(c, s).catch(zr);
|
833
|
+
}, [n]);
|
834
|
+
if (l.error && Ia(n.options.useErrorBoundary, [l.error]))
|
835
|
+
throw l.error;
|
836
|
+
return A(v({}, l), {
|
837
|
+
mutate: d,
|
838
|
+
mutateAsync: l.mutate
|
839
|
+
});
|
840
|
+
}
|
841
|
+
function zr() {
|
842
|
+
}
|
843
|
+
class lt {
|
844
|
+
constructor(t, a = !1) {
|
845
|
+
this.volatile = a, this.getChatContexts = () => X(this, null, function* () {
|
846
|
+
return (yield this.httpClient.get("api/datasources//")) || [];
|
847
|
+
}), this.getNlgInsights = (r) => this.httpClient.post("api/v2/ai/nlg/queryResult", r), this.getQueryRecommendations = (r, o) => this.httpClient.get(`api/v2/ai/recommendations/query/${r}/${o.numOfRecommendations}`), this.getNlqResult = (r, o) => this.httpClient.post(`api/v2/ai/nlq/query/${r}`, o), this.setLlmConfig = (r) => this.httpClient.post("api/v2/settings/ai/llmProvider", r).catch((o) => {
|
848
|
+
console.error("Unable to set llm config", o);
|
849
|
+
}), this.getAllChats = () => X(this, null, function* () {
|
850
|
+
return this.volatile ? [] : this.httpClient.get("api/v2/ai/chats");
|
851
|
+
}), this.getChatById = (r) => this.httpClient.get(`api/v2/ai/chats/${r}`), this.createChat = (r, o) => this.httpClient.post("api/v2/ai/chats", {
|
852
|
+
sourceId: r,
|
853
|
+
volatile: this.volatile,
|
854
|
+
contextDetails: o
|
855
|
+
}), this.postChat = (r, o) => this.httpClient.post(`api/v2/ai/chats/${r}`, o), this.deleteChatHistory = (r) => this.httpClient.delete(`api/v2/ai/chats/${r}/history`), this.sendFeedback = (r) => this.httpClient.post("api/v2/ai/feedback", r), this.ai = {
|
856
|
+
getNlgInsights: this.getNlgInsights,
|
857
|
+
getNlqResult: this.getNlqResult,
|
858
|
+
getQueryRecommendations: this.getQueryRecommendations,
|
859
|
+
setLlmConfig: this.setLlmConfig,
|
860
|
+
sendFeedback: this.sendFeedback,
|
861
|
+
chat: {
|
862
|
+
getAll: this.getAllChats,
|
863
|
+
getById: this.getChatById,
|
864
|
+
create: this.createChat,
|
865
|
+
post: this.postChat,
|
866
|
+
clearHistory: this.deleteChatHistory
|
867
|
+
}
|
868
|
+
}, this.httpClient = t;
|
869
|
+
}
|
870
|
+
}
|
871
|
+
new ut({
|
872
|
+
defaultOptions: {
|
873
|
+
queries: {
|
874
|
+
refetchOnWindowFocus: !1,
|
875
|
+
refetchOnMount: !1
|
876
|
+
}
|
877
|
+
}
|
878
|
+
});
|
879
|
+
const Et = /* @__PURE__ */ ke(void 0), G = () => Re(Et), zt = /* @__PURE__ */ ke({}), Or = () => Re(zt), Zr = ({
|
880
|
+
children: e
|
881
|
+
}) => {
|
882
|
+
const [t, a] = I({}), r = _((l, d) => {
|
883
|
+
var c;
|
884
|
+
return `${l}_${(c = d == null ? void 0 : d.dashboardId) != null ? c : ""}`;
|
885
|
+
}, []), o = _((l, d, c) => {
|
886
|
+
a((s) => A(v({}, s), {
|
887
|
+
[r(d, c)]: l
|
888
|
+
}));
|
889
|
+
}, [r]), n = _((l, d) => t[r(l, d)], [t, r]);
|
890
|
+
return /* @__PURE__ */ i(zt.Provider, {
|
891
|
+
value: {
|
892
|
+
saveChatId: o,
|
893
|
+
getChatId: n
|
894
|
+
},
|
895
|
+
children: e
|
896
|
+
});
|
897
|
+
};
|
898
|
+
function Ot(e) {
|
899
|
+
var t, a;
|
900
|
+
if ("jaql" in e)
|
901
|
+
return e;
|
902
|
+
{
|
903
|
+
const r = ga(e.dataSource), {
|
904
|
+
filters: o = [],
|
905
|
+
relations: n
|
906
|
+
} = ua(e.filters), {
|
907
|
+
metadata: l,
|
908
|
+
filterRelations: d
|
909
|
+
} = ha({
|
910
|
+
dataSource: e.dataSource,
|
911
|
+
attributes: (t = e.dimensions) != null ? t : [],
|
912
|
+
measures: (a = e.measures) != null ? a : [],
|
913
|
+
filters: o,
|
914
|
+
filterRelations: n,
|
915
|
+
highlights: []
|
916
|
+
}, !0), c = {
|
917
|
+
jaql: {
|
918
|
+
datasource: r,
|
919
|
+
metadata: l,
|
920
|
+
filterRelations: d
|
921
|
+
}
|
922
|
+
};
|
923
|
+
return e.verbosity && (c.verbosity = e.verbosity), c;
|
924
|
+
}
|
925
|
+
}
|
926
|
+
const Qe = (e, t = !0) => {
|
927
|
+
const a = T(() => Ot(e), [e]), r = G(), {
|
928
|
+
data: o,
|
929
|
+
error: n,
|
930
|
+
isError: l,
|
931
|
+
isLoading: d,
|
932
|
+
isSuccess: c,
|
933
|
+
refetch: s
|
934
|
+
} = le({
|
935
|
+
queryKey: ["getNlgInsights", a, r],
|
936
|
+
queryFn: () => r == null ? void 0 : r.ai.getNlgInsights(a),
|
937
|
+
select: (g) => {
|
938
|
+
var p;
|
939
|
+
return (p = g == null ? void 0 : g.data) == null ? void 0 : p.answer;
|
940
|
+
},
|
941
|
+
enabled: !!r && t
|
942
|
+
});
|
943
|
+
return {
|
944
|
+
isLoading: d,
|
945
|
+
isError: l,
|
946
|
+
isSuccess: c,
|
947
|
+
data: o,
|
948
|
+
error: n,
|
949
|
+
refetch: _(() => {
|
950
|
+
s();
|
951
|
+
}, [s])
|
952
|
+
};
|
953
|
+
}, Rr = ["indicator", "column", "line", "table", "pie", "bar"];
|
954
|
+
function Wr(e) {
|
955
|
+
const {
|
956
|
+
dataSource: t,
|
957
|
+
query: a,
|
958
|
+
chartTypes: r
|
959
|
+
} = e;
|
960
|
+
return {
|
961
|
+
contextTitle: typeof t == "string" ? t : t.title,
|
962
|
+
request: {
|
963
|
+
text: a,
|
964
|
+
// Timezone is not used by AI API, but it is currently required by the endpoint
|
965
|
+
timezone: "UTC",
|
966
|
+
chartTypes: r ?? [...Rr]
|
967
|
+
}
|
968
|
+
};
|
969
|
+
}
|
970
|
+
const Te = 4, Gr = (e) => {
|
971
|
+
const {
|
972
|
+
contextTitle: t,
|
973
|
+
count: a,
|
974
|
+
enableAxisTitlesInWidgetProps: r,
|
975
|
+
enabled: o
|
976
|
+
} = e, n = G(), l = a ?? Te, d = (o === void 0 || o === !0) && l > 0, {
|
977
|
+
isLoading: c,
|
978
|
+
isError: s,
|
979
|
+
isSuccess: g,
|
980
|
+
data: p,
|
981
|
+
error: m,
|
982
|
+
refetch: x
|
983
|
+
} = le({
|
984
|
+
queryKey: ["getQueryRecommendations", t, l, n],
|
985
|
+
queryFn: () => n == null ? void 0 : n.ai.getQueryRecommendations(t, {
|
986
|
+
numOfRecommendations: l
|
987
|
+
}),
|
988
|
+
enabled: !!n && d
|
989
|
+
}), w = T(() => p == null ? void 0 : p.map((f) => A(v({}, f), {
|
990
|
+
widgetProps: f.jaql ? Pe(f, {
|
991
|
+
useCustomizedStyleOptions: r
|
992
|
+
}) : void 0
|
993
|
+
})), [p, r]);
|
994
|
+
return {
|
995
|
+
isLoading: d ? c : !1,
|
996
|
+
isError: s,
|
997
|
+
isSuccess: g,
|
998
|
+
data: w ?? void 0,
|
999
|
+
error: m,
|
1000
|
+
refetch: _(() => {
|
1001
|
+
x();
|
1002
|
+
}, [x])
|
1003
|
+
};
|
1004
|
+
}, Zt = Object.freeze({
|
1005
|
+
enableFollowupQuestions: !1,
|
1006
|
+
enableHeader: !0,
|
1007
|
+
enableInsights: !0,
|
1008
|
+
numOfRecommendations: 4,
|
1009
|
+
numOfRecentPrompts: 5
|
1010
|
+
}), Rt = /* @__PURE__ */ ke(v({}, Zt)), q = () => Re(Rt), qr = ({
|
1011
|
+
children: e,
|
1012
|
+
value: t
|
1013
|
+
}) => {
|
1014
|
+
const {
|
1015
|
+
t: a
|
1016
|
+
} = y(), r = Object.entries(t).reduce((o, [n, l]) => (l !== void 0 && (o[n] = l), o), A(v({}, Zt), {
|
1017
|
+
inputPromptText: a("ai.config.inputPromptText"),
|
1018
|
+
welcomeText: a("ai.config.welcomeText"),
|
1019
|
+
suggestionsWelcomeText: a("ai.config.suggestionsWelcomeText")
|
1020
|
+
}));
|
1021
|
+
return /* @__PURE__ */ i(Rt.Provider, {
|
1022
|
+
value: r,
|
1023
|
+
children: e
|
1024
|
+
});
|
1025
|
+
}, Ue = "chatHistory", Hr = (e) => {
|
1026
|
+
const t = G(), {
|
1027
|
+
hideHistory: a
|
1028
|
+
} = q();
|
1029
|
+
return le({
|
1030
|
+
queryKey: [Ue, e, t],
|
1031
|
+
queryFn: () => X(void 0, null, function* () {
|
1032
|
+
if (!t || !e)
|
1033
|
+
return;
|
1034
|
+
if (a)
|
1035
|
+
return [];
|
1036
|
+
const r = yield t.ai.chat.getById(e);
|
1037
|
+
return r == null ? void 0 : r.chatHistory;
|
1038
|
+
}),
|
1039
|
+
enabled: !!t && !!e
|
1040
|
+
});
|
1041
|
+
}, Wt = (e) => {
|
1042
|
+
const t = G(), a = de();
|
1043
|
+
return Be({
|
1044
|
+
mutationFn: () => X(void 0, null, function* () {
|
1045
|
+
if (!(!t || !e))
|
1046
|
+
return t.ai.chat.clearHistory(e);
|
1047
|
+
}),
|
1048
|
+
onError: (r) => {
|
1049
|
+
console.error("Error when clearing history:", r);
|
1050
|
+
},
|
1051
|
+
onSettled: () => {
|
1052
|
+
e && a.setQueriesData([Ue, e], []);
|
1053
|
+
}
|
1054
|
+
});
|
1055
|
+
}, Yr = (e) => {
|
1056
|
+
const {
|
1057
|
+
data: t,
|
1058
|
+
isLoading: a,
|
1059
|
+
isError: r
|
1060
|
+
} = Hr(e), {
|
1061
|
+
mutate: o
|
1062
|
+
} = Wt(e);
|
1063
|
+
return ce(() => {
|
1064
|
+
r && o();
|
1065
|
+
}, [r, o]), {
|
1066
|
+
history: t,
|
1067
|
+
isLoading: a,
|
1068
|
+
isError: r
|
1069
|
+
};
|
1070
|
+
}, Pr = () => {
|
1071
|
+
const e = G(), {
|
1072
|
+
data: t,
|
1073
|
+
isLoading: a,
|
1074
|
+
fetchStatus: r
|
1075
|
+
} = le({
|
1076
|
+
queryKey: ["getDataTopics", e],
|
1077
|
+
queryFn: () => X(void 0, null, function* () {
|
1078
|
+
if (e)
|
1079
|
+
return e.getChatContexts();
|
1080
|
+
}),
|
1081
|
+
enabled: !!e
|
1082
|
+
});
|
1083
|
+
return {
|
1084
|
+
data: t,
|
1085
|
+
isLoading: a,
|
1086
|
+
fetchStatus: r
|
1087
|
+
};
|
1088
|
+
}, Br = () => {
|
1089
|
+
const e = G(), {
|
1090
|
+
data: t,
|
1091
|
+
isLoading: a
|
1092
|
+
} = le({
|
1093
|
+
queryKey: ["getAllChats", e],
|
1094
|
+
queryFn: () => e == null ? void 0 : e.ai.chat.getAll(),
|
1095
|
+
enabled: !!e
|
1096
|
+
});
|
1097
|
+
return {
|
1098
|
+
data: t ?? [],
|
1099
|
+
isLoading: a
|
1100
|
+
};
|
1101
|
+
}, Qr = (e, t, a) => {
|
1102
|
+
const r = de(), o = G(), n = Be({
|
1103
|
+
mutationFn: () => X(void 0, null, function* () {
|
1104
|
+
if (!(!o || !e))
|
1105
|
+
return o.ai.chat.create(e, a);
|
1106
|
+
}),
|
1107
|
+
onSuccess: () => r.invalidateQueries(["getAllChats"])
|
1108
|
+
});
|
1109
|
+
return ce(() => {
|
1110
|
+
t && n.isIdle && n.mutate();
|
1111
|
+
}, [t, n]), n;
|
1112
|
+
}, Ur = (e, t) => {
|
1113
|
+
switch (e.responseType = e.responseType.toLowerCase(), e.responseType) {
|
1114
|
+
case "nlq":
|
1115
|
+
return {
|
1116
|
+
content: JSON.stringify(e.data),
|
1117
|
+
role: "assistant",
|
1118
|
+
type: "nlq"
|
1119
|
+
};
|
1120
|
+
case "text":
|
1121
|
+
case "error":
|
1122
|
+
return {
|
1123
|
+
content: e.data.answer,
|
1124
|
+
role: "assistant"
|
1125
|
+
};
|
1126
|
+
default:
|
1127
|
+
throw Error(`${t}${JSON.stringify(e)}`);
|
1128
|
+
}
|
1129
|
+
}, Fr = (e, t) => {
|
1130
|
+
const a = de(), r = _((c) => {
|
1131
|
+
e && a.setQueriesData([Ue, e], (s) => s && [...s, c]);
|
1132
|
+
}, [a, e]), {
|
1133
|
+
t: o
|
1134
|
+
} = y(), n = G(), {
|
1135
|
+
mutate: l,
|
1136
|
+
isLoading: d
|
1137
|
+
} = Be({
|
1138
|
+
mutationFn: (c) => X(void 0, null, function* () {
|
1139
|
+
if (!(!n || !e))
|
1140
|
+
return n.ai.chat.post(e, {
|
1141
|
+
text: c,
|
1142
|
+
options: {
|
1143
|
+
enableFollowup: t
|
1144
|
+
}
|
1145
|
+
});
|
1146
|
+
}),
|
1147
|
+
onMutate: (c) => {
|
1148
|
+
r({
|
1149
|
+
content: c,
|
1150
|
+
role: "user"
|
1151
|
+
});
|
1152
|
+
},
|
1153
|
+
onError: (c) => {
|
1154
|
+
c instanceof Error && (console.error("Error when sending message:", c.message), r({
|
1155
|
+
content: o(`ai.errors.${c.interpolationOptions.errorCode}`, {
|
1156
|
+
defaultValue: o("ai.errors.unexpectedChatResponse")
|
1157
|
+
}),
|
1158
|
+
role: "assistant"
|
1159
|
+
}));
|
1160
|
+
},
|
1161
|
+
onSuccess: (c) => {
|
1162
|
+
if (!c)
|
1163
|
+
return;
|
1164
|
+
const s = o("ai.errors.unknownResponse");
|
1165
|
+
r(Ur(c, s));
|
1166
|
+
}
|
1167
|
+
});
|
1168
|
+
return {
|
1169
|
+
mutate: l,
|
1170
|
+
isLoading: d
|
1171
|
+
};
|
1172
|
+
}, Vr = (e, t, a = !1) => {
|
1173
|
+
var r;
|
1174
|
+
const {
|
1175
|
+
data: o,
|
1176
|
+
isLoading: n
|
1177
|
+
} = Br(), l = Or(), d = l.getChatId(e, t) || ((r = o.find((p) => {
|
1178
|
+
var m;
|
1179
|
+
return p.contextTitle === e && ((m = p.contextDetails) == null ? void 0 : m.dashboardId) === (t == null ? void 0 : t.dashboardId);
|
1180
|
+
})) == null ? void 0 : r.chatId), {
|
1181
|
+
isError: c,
|
1182
|
+
data: s,
|
1183
|
+
isSuccess: g
|
1184
|
+
} = Qr(e, a && !n && !d, t);
|
1185
|
+
return ce(() => {
|
1186
|
+
g && s && !d && l.saveChatId(s.chatId, e, t);
|
1187
|
+
}, [s, g, e, t, d, l]), {
|
1188
|
+
chatId: d,
|
1189
|
+
isLoading: n,
|
1190
|
+
isError: c
|
1191
|
+
};
|
1192
|
+
}, Jr = (e) => T(() => {
|
1193
|
+
if (e != null && e.length) {
|
1194
|
+
const t = e[e.length - 1];
|
1195
|
+
if (Gt(t))
|
1196
|
+
return JSON.parse(t.content);
|
1197
|
+
}
|
1198
|
+
return null;
|
1199
|
+
}, [e]), Gt = (e) => !!e && "type" in e && e.type === "nlq", Xr = (e) => !!e && "type" in e && e.type === "text", $r = (e, t) => {
|
1200
|
+
const {
|
1201
|
+
t: a
|
1202
|
+
} = y(), {
|
1203
|
+
enableFollowupQuestions: r
|
1204
|
+
} = q(), {
|
1205
|
+
chatId: o,
|
1206
|
+
isError: n
|
1207
|
+
} = Vr(e, t, !0), [l, d] = I(null), {
|
1208
|
+
history: c,
|
1209
|
+
isLoading: s,
|
1210
|
+
isError: g
|
1211
|
+
} = Yr(o);
|
1212
|
+
ce(() => {
|
1213
|
+
n ? d(new J("ai.errors.chatUnavailable")) : g && d(new J("ai.errors.fetchHistory"));
|
1214
|
+
}, [n, g, a]);
|
1215
|
+
const {
|
1216
|
+
mutate: p,
|
1217
|
+
isLoading: m
|
1218
|
+
} = Fr(o, r), x = Jr(c);
|
1219
|
+
return {
|
1220
|
+
chatId: o,
|
1221
|
+
history: c ?? [],
|
1222
|
+
lastNlqResponse: x,
|
1223
|
+
sendMessage: p,
|
1224
|
+
isAwaitingResponse: m,
|
1225
|
+
isLoading: s,
|
1226
|
+
lastError: l
|
1227
|
+
};
|
1228
|
+
}, Kr = 500, ei = 500, ti = 500, ai = 900, ri = /* @__PURE__ */ u("div", {
|
1229
|
+
target: "e1ldv6710",
|
1230
|
+
label: "ChatFrame"
|
1231
|
+
})("box-sizing:border-box;position:relative;display:flex;flex-direction:column;border:1px solid #c6c9ce;border-radius:", ({
|
1232
|
+
theme: e
|
1233
|
+
}) => e.aiChat.borderRadius, ";background-color:", ({
|
1234
|
+
theme: e
|
1235
|
+
}) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:", Kr, "px;min-height:", ei, "px;width:", ({
|
1236
|
+
width: e
|
1237
|
+
}) => e ? dt(e) : `${ti}px`, ";height:", ({
|
1238
|
+
height: e
|
1239
|
+
}) => e ? dt(e) : `${ai}px`, ";", ({
|
1240
|
+
theme: e
|
1241
|
+
}) => L`
|
1242
|
+
font-size: ${e.aiChat.primaryFontSize[0]};
|
1243
|
+
line-height: ${e.aiChat.primaryFontSize[1]};
|
1244
|
+
`, " border:", ({
|
1245
|
+
theme: e
|
1246
|
+
}) => e.aiChat.border === !1 ? "none" : e.aiChat.border, ";");
|
1247
|
+
function dt(e) {
|
1248
|
+
return typeof e == "number" ? `${e}px` : e;
|
1249
|
+
}
|
1250
|
+
function ii({
|
1251
|
+
spin: e
|
1252
|
+
}) {
|
1253
|
+
return /* @__PURE__ */ h("svg", {
|
1254
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1255
|
+
width: "24",
|
1256
|
+
height: "24",
|
1257
|
+
viewBox: "0 0 24 24",
|
1258
|
+
fill: "none",
|
1259
|
+
className: `${e ? "csdk-animate-spin" : ""}`,
|
1260
|
+
children: [/* @__PURE__ */ i("path", {
|
1261
|
+
fillRule: "evenodd",
|
1262
|
+
clipRule: "evenodd",
|
1263
|
+
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",
|
1264
|
+
fill: "#262E3D",
|
1265
|
+
fillOpacity: "0.3"
|
1266
|
+
}), /* @__PURE__ */ i("path", {
|
1267
|
+
fillRule: "evenodd",
|
1268
|
+
clipRule: "evenodd",
|
1269
|
+
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",
|
1270
|
+
fill: "#22C3C3"
|
1271
|
+
})]
|
1272
|
+
});
|
1273
|
+
}
|
1274
|
+
function ye() {
|
1275
|
+
return /* @__PURE__ */ i("div", {
|
1276
|
+
className: "csdk-m-auto",
|
1277
|
+
"aria-label": "loading spinner",
|
1278
|
+
children: /* @__PURE__ */ i(ii, {
|
1279
|
+
spin: !0
|
1280
|
+
})
|
1281
|
+
});
|
1282
|
+
}
|
1283
|
+
function oi({
|
1284
|
+
theme: e
|
1285
|
+
}) {
|
1286
|
+
return /* @__PURE__ */ i("svg", {
|
1287
|
+
width: "24",
|
1288
|
+
height: "24",
|
1289
|
+
viewBox: "0 0 24 24",
|
1290
|
+
fill: "none",
|
1291
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1292
|
+
children: /* @__PURE__ */ i("path", {
|
1293
|
+
d: "M4 14L0 10L24 0L14 24L10 20L8.47667 16.9533L19 6.4L20 4.00001L17.6099 5L7.04354 15.5218L4 14Z",
|
1294
|
+
fill: e.aiChat.icons.color
|
1295
|
+
})
|
1296
|
+
});
|
1297
|
+
}
|
1298
|
+
function ni({
|
1299
|
+
theme: e
|
1300
|
+
}) {
|
1301
|
+
const t = e.aiChat.icons.color;
|
1302
|
+
return /* @__PURE__ */ h("svg", {
|
1303
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1304
|
+
width: "25",
|
1305
|
+
height: "25",
|
1306
|
+
viewBox: "0 0 25 25",
|
1307
|
+
fill: "none",
|
1308
|
+
children: [/* @__PURE__ */ i("path", {
|
1309
|
+
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",
|
1310
|
+
fill: t
|
1311
|
+
}), /* @__PURE__ */ i("path", {
|
1312
|
+
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",
|
1313
|
+
fill: t
|
1314
|
+
}), /* @__PURE__ */ i("path", {
|
1315
|
+
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",
|
1316
|
+
fill: t
|
1317
|
+
})]
|
1318
|
+
});
|
1319
|
+
}
|
1320
|
+
const li = /* @__PURE__ */ u("div", {
|
1321
|
+
target: "e1q6h1ze0",
|
1322
|
+
label: "Section"
|
1323
|
+
})("display:flex;flex-direction:column;row-gap:4px;"), di = /* @__PURE__ */ u("div", {
|
1324
|
+
target: "e1q6h1ze1",
|
1325
|
+
label: "SectionHeader"
|
1326
|
+
})("font-size:11px;line-height:18px;font-weight:300;color:", ({
|
1327
|
+
theme: e
|
1328
|
+
}) => e.aiChat.dropup.headers.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({
|
1329
|
+
theme: e
|
1330
|
+
}) => e.aiChat.dropup.headers.hover.backgroundColor, ";}"), ci = /* @__PURE__ */ u("div", {
|
1331
|
+
target: "e1q6h1ze2",
|
1332
|
+
label: "DropupItem"
|
1333
|
+
})("font-size:", ({
|
1334
|
+
theme: e
|
1335
|
+
}) => e.aiChat.primaryFontSize[0], ";line-height:", ({
|
1336
|
+
theme: e
|
1337
|
+
}) => e.aiChat.primaryFontSize[1], ";color:", ({
|
1338
|
+
theme: e
|
1339
|
+
}) => e.aiChat.dropup.items.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({
|
1340
|
+
theme: e
|
1341
|
+
}) => e.aiChat.dropup.items.hover.backgroundColor, ";}");
|
1342
|
+
function si({
|
1343
|
+
title: e,
|
1344
|
+
items: t,
|
1345
|
+
onSelect: a,
|
1346
|
+
alwaysExpanded: r = !1
|
1347
|
+
}) {
|
1348
|
+
const [o, n] = I(!1), {
|
1349
|
+
themeSettings: l
|
1350
|
+
} = k();
|
1351
|
+
return /* @__PURE__ */ h(li, {
|
1352
|
+
children: [/* @__PURE__ */ i(di, {
|
1353
|
+
onClick: () => n((d) => !d),
|
1354
|
+
theme: l,
|
1355
|
+
children: e.toUpperCase()
|
1356
|
+
}), (o || r) && t.map((d, c) => /* @__PURE__ */ i(ci, {
|
1357
|
+
onClick: () => a(d),
|
1358
|
+
theme: l,
|
1359
|
+
children: d
|
1360
|
+
}, c))]
|
1361
|
+
});
|
1362
|
+
}
|
1363
|
+
const pi = /* @__PURE__ */ u("div", {
|
1364
|
+
target: "e10x5x4a0",
|
1365
|
+
label: "PopupContent"
|
1366
|
+
})("font-family:", ({
|
1367
|
+
theme: e
|
1368
|
+
}) => e.typography.fontFamily, ";font-size:", ({
|
1369
|
+
theme: e
|
1370
|
+
}) => e.aiChat.primaryFontSize[0], ";line-height:", ({
|
1371
|
+
theme: e
|
1372
|
+
}) => e.aiChat.primaryFontSize[1], ";background-color:", ({
|
1373
|
+
theme: e
|
1374
|
+
}) => e.aiChat.dropup.backgroundColor, ";border-radius:", ({
|
1375
|
+
theme: e
|
1376
|
+
}) => e.aiChat.dropup.borderRadius, ";box-shadow:", ({
|
1377
|
+
theme: e
|
1378
|
+
}) => e.aiChat.dropup.boxShadow, ";padding-top:8px;padding-bottom:8px;display:flex;flex-direction:column;row-gap:4px;"), gi = /* @__PURE__ */ u("div", {
|
1379
|
+
target: "e10x5x4a1",
|
1380
|
+
label: "ErrorMessage"
|
1381
|
+
})("font-size:", ({
|
1382
|
+
theme: e
|
1383
|
+
}) => e.aiChat.primaryFontSize[0], ";line-height:", ({
|
1384
|
+
theme: e
|
1385
|
+
}) => e.aiChat.primaryFontSize[1], ";color:", ({
|
1386
|
+
theme: e
|
1387
|
+
}) => e.aiChat.dropup.items.textColor, ";padding:4px 12px;"), je = (e) => e.startsWith("/");
|
1388
|
+
function ui({
|
1389
|
+
recentPrompts: e,
|
1390
|
+
suggestions: t,
|
1391
|
+
isLoading: a,
|
1392
|
+
onSelection: r,
|
1393
|
+
anchorEl: o,
|
1394
|
+
text: n,
|
1395
|
+
recommendationsError: l
|
1396
|
+
}) {
|
1397
|
+
const d = [{
|
1398
|
+
title: "/recent searches",
|
1399
|
+
items: e,
|
1400
|
+
onSelect: r
|
1401
|
+
}, {
|
1402
|
+
title: "/ai recommendations",
|
1403
|
+
items: t,
|
1404
|
+
onSelect: r
|
1405
|
+
}].filter((p) => p.title.slice(0, n.length) === n), {
|
1406
|
+
themeSettings: c
|
1407
|
+
} = k(), {
|
1408
|
+
t: s
|
1409
|
+
} = y(), g = d.length === 1;
|
1410
|
+
return /* @__PURE__ */ i(bt, {
|
1411
|
+
open: je(n) && d.length > 0,
|
1412
|
+
anchorEl: o,
|
1413
|
+
placement: "top-start",
|
1414
|
+
modifiers: [{
|
1415
|
+
name: "offset",
|
1416
|
+
options: {
|
1417
|
+
offset: [0, 4]
|
1418
|
+
}
|
1419
|
+
}],
|
1420
|
+
sx: {
|
1421
|
+
zIndex: 3
|
1422
|
+
},
|
1423
|
+
children: /* @__PURE__ */ h(pi, {
|
1424
|
+
style: {
|
1425
|
+
width: o == null ? void 0 : o.offsetWidth
|
1426
|
+
},
|
1427
|
+
theme: c,
|
1428
|
+
children: [a && /* @__PURE__ */ i(ye, {}), !a && !l && d.map((p) => /* @__PURE__ */ i(si, A(v({}, p), {
|
1429
|
+
alwaysExpanded: g
|
1430
|
+
}), p.title)), l && /* @__PURE__ */ i(gi, {
|
1431
|
+
theme: c,
|
1432
|
+
children: s("ai.errors.recommendationsNotAvailable")
|
1433
|
+
})]
|
1434
|
+
})
|
1435
|
+
});
|
1436
|
+
}
|
1437
|
+
function se({
|
1438
|
+
title: e,
|
1439
|
+
placement: t = "top",
|
1440
|
+
children: a
|
1441
|
+
}) {
|
1442
|
+
const {
|
1443
|
+
themeSettings: r
|
1444
|
+
} = k();
|
1445
|
+
return /* @__PURE__ */ i(Da, {
|
1446
|
+
title: e,
|
1447
|
+
placement: t,
|
1448
|
+
disableInteractive: !0,
|
1449
|
+
componentsProps: {
|
1450
|
+
tooltip: {
|
1451
|
+
sx: {
|
1452
|
+
bgcolor: r.aiChat.tooltips.backgroundColor,
|
1453
|
+
color: r.aiChat.tooltips.textColor,
|
1454
|
+
paddingX: "16px",
|
1455
|
+
paddingY: "12px",
|
1456
|
+
fontSize: "13px",
|
1457
|
+
fontFamily: r.typography.fontFamily,
|
1458
|
+
fontWeight: 400,
|
1459
|
+
borderRadius: "4px",
|
1460
|
+
boxShadow: r.aiChat.tooltips.boxShadow
|
1461
|
+
}
|
1462
|
+
},
|
1463
|
+
arrow: {
|
1464
|
+
sx: {
|
1465
|
+
color: r.aiChat.tooltips.backgroundColor
|
1466
|
+
}
|
1467
|
+
}
|
1468
|
+
},
|
1469
|
+
arrow: !0,
|
1470
|
+
children: a
|
1471
|
+
});
|
1472
|
+
}
|
1473
|
+
const hi = 500, mi = /* @__PURE__ */ u("div", {
|
1474
|
+
target: "e6iwkw10",
|
1475
|
+
label: "ChatInputContainer"
|
1476
|
+
})("display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;background-color:", ({
|
1477
|
+
theme: e
|
1478
|
+
}) => e.aiChat.backgroundColor, ";"), bi = /* @__PURE__ */ u("button", {
|
1479
|
+
target: "e6iwkw11",
|
1480
|
+
label: "ClearHistoryButton"
|
1481
|
+
})("height:34px;background-color:inherit;cursor:pointer;border:none;"), fi = /* @__PURE__ */ u("textarea", {
|
1482
|
+
target: "e6iwkw12",
|
1483
|
+
label: "TextInput"
|
1484
|
+
})("font-size:inherit;line-height:inherit;resize:none;overflow-y:auto;box-sizing:border-box;max-height:88px;width:100%;padding-top:7px;padding-bottom:7px;padding-left:16px;padding-right:16px;margin-left:10px;margin-right:10px;border-width:1px;border-color:rgb(38 46 61 / 0.15);border-radius:0.5rem;&:focus{outline:1px solid ", ({
|
1485
|
+
theme: e
|
1486
|
+
}) => e.aiChat.input.focus.outlineColor, ";}font-family:inherit;color:", ({
|
1487
|
+
theme: e
|
1488
|
+
}) => e.aiChat.primaryTextColor, ";background-color:", ({
|
1489
|
+
theme: e
|
1490
|
+
}) => e.aiChat.input.backgroundColor, ";"), xi = /* @__PURE__ */ u("button", {
|
1491
|
+
target: "e6iwkw13",
|
1492
|
+
label: "SendMessageButton"
|
1493
|
+
})("height:34px;background-color:inherit;border-style:none;color:", ({
|
1494
|
+
theme: e
|
1495
|
+
}) => e.aiChat.primaryTextColor, ";", ({
|
1496
|
+
disabled: e
|
1497
|
+
}) => e ? L`
|
1498
|
+
opacity: 0.3;
|
1499
|
+
cursor: not-allowed;
|
1500
|
+
` : L`
|
1501
|
+
opacity: 1;
|
1502
|
+
cursor: pointer;
|
1503
|
+
`), ki = 34;
|
1504
|
+
function wi({
|
1505
|
+
onSendMessage: e,
|
1506
|
+
onClearHistoryClick: t,
|
1507
|
+
disabled: a,
|
1508
|
+
recentPrompts: r,
|
1509
|
+
suggestions: o,
|
1510
|
+
isLoading: n,
|
1511
|
+
recommendationsError: l,
|
1512
|
+
onChange: d
|
1513
|
+
}) {
|
1514
|
+
const [c, s] = I(""), {
|
1515
|
+
inputPromptText: g
|
1516
|
+
} = q(), p = _(() => {
|
1517
|
+
if (a)
|
1518
|
+
return;
|
1519
|
+
if (je(c)) {
|
1520
|
+
s("");
|
1521
|
+
return;
|
1522
|
+
}
|
1523
|
+
const C = c.trim();
|
1524
|
+
C.length !== 0 && (e(C), s(""));
|
1525
|
+
}, [a, e, c]), m = _((C) => {
|
1526
|
+
e(C), s("");
|
1527
|
+
}, [e]), x = _((C) => {
|
1528
|
+
C.key === "Enter" ? (C.preventDefault(), p()) : C.key === "Escape" && je(c) && s("");
|
1529
|
+
}, [p, c]), w = _((C) => {
|
1530
|
+
d == null || d(C.target.value), s(C.target.value);
|
1531
|
+
}, [d]), f = V(null);
|
1532
|
+
be(() => {
|
1533
|
+
f.current && (f.current.style.height = "inherit", f.current.style.height = `${Math.max(f.current.scrollHeight + 2, ki)}px`);
|
1534
|
+
}, [c]), be(() => {
|
1535
|
+
f.current && f.current.focus({
|
1536
|
+
preventScroll: !0
|
1537
|
+
});
|
1538
|
+
}, []);
|
1539
|
+
const {
|
1540
|
+
themeSettings: M
|
1541
|
+
} = k(), {
|
1542
|
+
t: S
|
1543
|
+
} = y(), E = _((C) => {
|
1544
|
+
var O;
|
1545
|
+
if ((O = document.getElementById("csdk-chatbot-frame")) != null && O.contains(C.relatedTarget)) {
|
1546
|
+
const H = (Z) => {
|
1547
|
+
var B;
|
1548
|
+
document.removeEventListener("mouseup", H), document.removeEventListener("keyup", H), Z.type === "mouseup" && ((B = document.getSelection()) == null ? void 0 : B.type) !== "Range" && C.target.focus({
|
1549
|
+
preventScroll: !0
|
1550
|
+
});
|
1551
|
+
};
|
1552
|
+
document.addEventListener("mouseup", H), document.addEventListener("keyup", H);
|
1553
|
+
}
|
1554
|
+
}, []);
|
1555
|
+
return /* @__PURE__ */ h(mi, {
|
1556
|
+
theme: M,
|
1557
|
+
children: [/* @__PURE__ */ i(ui, {
|
1558
|
+
recentPrompts: r,
|
1559
|
+
suggestions: o,
|
1560
|
+
isLoading: n,
|
1561
|
+
onSelection: m,
|
1562
|
+
anchorEl: f.current,
|
1563
|
+
text: c,
|
1564
|
+
recommendationsError: l
|
1565
|
+
}), t && /* @__PURE__ */ i(se, {
|
1566
|
+
title: S("ai.buttons.clearChat"),
|
1567
|
+
placement: "bottom-start",
|
1568
|
+
children: /* @__PURE__ */ i(bi, {
|
1569
|
+
"aria-label": "clear history",
|
1570
|
+
onClick: t,
|
1571
|
+
children: /* @__PURE__ */ i(ni, {
|
1572
|
+
theme: M
|
1573
|
+
})
|
1574
|
+
})
|
1575
|
+
}), /* @__PURE__ */ i(fi, {
|
1576
|
+
"aria-label": "chat input",
|
1577
|
+
onBlur: E,
|
1578
|
+
maxLength: hi,
|
1579
|
+
ref: f,
|
1580
|
+
rows: 1,
|
1581
|
+
onChange: w,
|
1582
|
+
spellCheck: "true",
|
1583
|
+
placeholder: g,
|
1584
|
+
value: c,
|
1585
|
+
onKeyDown: x,
|
1586
|
+
theme: M
|
1587
|
+
}), /* @__PURE__ */ i(xi, {
|
1588
|
+
"aria-label": "send chat message",
|
1589
|
+
disabled: a || c.length === 0,
|
1590
|
+
onClick: p,
|
1591
|
+
theme: M,
|
1592
|
+
children: /* @__PURE__ */ i("span", {
|
1593
|
+
"data-state": "closed",
|
1594
|
+
children: /* @__PURE__ */ i(oi, {
|
1595
|
+
theme: M
|
1596
|
+
})
|
1597
|
+
})
|
1598
|
+
})]
|
1599
|
+
});
|
1600
|
+
}
|
1601
|
+
const yi = /* @__PURE__ */ u("div", {
|
1602
|
+
target: "er3yjg60",
|
1603
|
+
label: "FlexContainer"
|
1604
|
+
})("display:flex;", ({
|
1605
|
+
align: e
|
1606
|
+
}) => e === "right" ? L`
|
1607
|
+
justify-content: flex-end;
|
1608
|
+
` : L`
|
1609
|
+
justify-content: flex-start;
|
1610
|
+
`), qt = /* @__PURE__ */ u("div", {
|
1611
|
+
target: "er3yjg61",
|
1612
|
+
label: "MessageContainer"
|
1613
|
+
})("font-size:inherit;line-height:inherit;padding-top:8.5px;padding-bottom:8.5px;padding-left:0.5rem;padding-right:0.5rem;white-space:pre-wrap;overflow-wrap:break-word;box-sizing:border-box;", ({
|
1614
|
+
align: e
|
1615
|
+
}) => e === "right" ? L`
|
1616
|
+
text-align: right;
|
1617
|
+
border-radius: 10px 10px 0px 10px;
|
1618
|
+
` : L`
|
1619
|
+
text-align: left;
|
1620
|
+
border-radius: 10px 10px 10px 0px;
|
1621
|
+
`, " ", ({
|
1622
|
+
align: e
|
1623
|
+
}) => e !== "full" ? L`
|
1624
|
+
max-width: 85%;
|
1625
|
+
` : "", " color:", ({
|
1626
|
+
theme: e
|
1627
|
+
}) => e.aiChat.primaryTextColor, ";background-color:", ({
|
1628
|
+
theme: e,
|
1629
|
+
align: t
|
1630
|
+
}) => t === "right" ? e.aiChat.userMessages.backgroundColor : e.aiChat.systemMessages.backgroundColor, ";"), P = ({
|
1631
|
+
align: e,
|
1632
|
+
children: t
|
1633
|
+
}) => {
|
1634
|
+
const {
|
1635
|
+
themeSettings: a
|
1636
|
+
} = k();
|
1637
|
+
return /* @__PURE__ */ i(yi, {
|
1638
|
+
theme: a,
|
1639
|
+
align: e,
|
1640
|
+
children: /* @__PURE__ */ i(qt, {
|
1641
|
+
theme: a,
|
1642
|
+
align: e,
|
1643
|
+
children: t
|
1644
|
+
})
|
1645
|
+
});
|
1646
|
+
};
|
1647
|
+
function _i() {
|
1648
|
+
const {
|
1649
|
+
welcomeText: e
|
1650
|
+
} = q();
|
1651
|
+
return e === !1 ? null : /* @__PURE__ */ i(P, {
|
1652
|
+
align: "left",
|
1653
|
+
children: e
|
1654
|
+
});
|
1655
|
+
}
|
1656
|
+
const Ci = /* @__PURE__ */ u("div", {
|
1657
|
+
target: "e1r5p4wy0",
|
1658
|
+
label: "Container"
|
1659
|
+
})("margin:auto;display:flex;flex-direction:column;align-items:center;row-gap:21px;"), vi = /* @__PURE__ */ u("div", {
|
1660
|
+
target: "e1r5p4wy1",
|
1661
|
+
label: "Title"
|
1662
|
+
})("color:", ({
|
1663
|
+
theme: e
|
1664
|
+
}) => e.aiChat.primaryTextColor, ";text-align:center;font-weight:600;"), Mi = /* @__PURE__ */ u("div", {
|
1665
|
+
target: "e1r5p4wy2",
|
1666
|
+
label: "ActionButton"
|
1667
|
+
})("color:rgba(54,163,217,1);cursor:pointer;");
|
1668
|
+
function Ht({
|
1669
|
+
text: e,
|
1670
|
+
action: t
|
1671
|
+
}) {
|
1672
|
+
const {
|
1673
|
+
themeSettings: a
|
1674
|
+
} = k();
|
1675
|
+
return /* @__PURE__ */ h(Ci, {
|
1676
|
+
children: [/* @__PURE__ */ i(vi, {
|
1677
|
+
theme: a,
|
1678
|
+
children: e
|
1679
|
+
}), /* @__PURE__ */ i(fa, {}), t && /* @__PURE__ */ i(Mi, {
|
1680
|
+
onClick: t.onClick,
|
1681
|
+
children: t.text
|
1682
|
+
})]
|
1683
|
+
});
|
1684
|
+
}
|
1685
|
+
const me = /* @__PURE__ */ u("div", {
|
1686
|
+
target: "e3ryei50",
|
1687
|
+
label: "Dot"
|
1688
|
+
})("width:5px;height:5px;border-radius:50%;background-color:", (e) => e.color, ";animation:hop 0.9s ease-out infinite;&:nth-of-type(2){animation-delay:0.1s;}&:nth-of-type(3){animation-delay:0.2s;}&:nth-of-type(4){animation-delay:0.3s;}@keyframes hop{0%,40%{transform:translateY(0);}20%{transform:translateY(-100%);}}");
|
1689
|
+
function Yt() {
|
1690
|
+
const {
|
1691
|
+
themeSettings: e
|
1692
|
+
} = k(), t = e.aiChat.icons.color;
|
1693
|
+
return /* @__PURE__ */ h("div", {
|
1694
|
+
className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
|
1695
|
+
"aria-label": "loading dots",
|
1696
|
+
children: [/* @__PURE__ */ i(me, {
|
1697
|
+
color: t
|
1698
|
+
}), /* @__PURE__ */ i(me, {
|
1699
|
+
color: t
|
1700
|
+
}), /* @__PURE__ */ i(me, {
|
1701
|
+
color: t
|
1702
|
+
}), /* @__PURE__ */ i(me, {
|
1703
|
+
color: t
|
1704
|
+
})]
|
1705
|
+
});
|
1706
|
+
}
|
1707
|
+
const Si = /* @__PURE__ */ u("div", {
|
1708
|
+
target: "ed5z2fc0",
|
1709
|
+
label: "FlexContainer"
|
1710
|
+
})("display:flex;", ({
|
1711
|
+
align: e
|
1712
|
+
}) => e === "right" ? L`
|
1713
|
+
justify-content: flex-end;
|
1714
|
+
` : L`
|
1715
|
+
justify-content: flex-start;
|
1716
|
+
`), Ii = /* @__PURE__ */ u("button", {
|
1717
|
+
target: "ed5z2fc1",
|
1718
|
+
label: "MessageButton"
|
1719
|
+
})("font-family:inherit;font-size:inherit;line-height:inherit;border:", ({
|
1720
|
+
theme: e
|
1721
|
+
}) => e.aiChat.clickableMessages.border, ";padding:0;cursor:pointer;color:", ({
|
1722
|
+
theme: e
|
1723
|
+
}) => e.aiChat.clickableMessages.textColor, ";background-color:", ({
|
1724
|
+
theme: e
|
1725
|
+
}) => e.aiChat.clickableMessages.backgroundColor, ";&:hover{color:", ({
|
1726
|
+
theme: e
|
1727
|
+
}) => e.aiChat.clickableMessages.hover.textColor, ";background-color:", ({
|
1728
|
+
theme: e
|
1729
|
+
}) => e.aiChat.clickableMessages.hover.backgroundColor, ";}border-radius:20px;", ({
|
1730
|
+
align: e
|
1731
|
+
}) => e === "right" ? L`
|
1732
|
+
text-align: right;
|
1733
|
+
` : L`
|
1734
|
+
text-align: left;
|
1735
|
+
`, " ", ({
|
1736
|
+
align: e
|
1737
|
+
}) => e !== "full" ? L`
|
1738
|
+
max-width: 382px;
|
1739
|
+
` : "", " ", ({
|
1740
|
+
theme: e
|
1741
|
+
}) => {
|
1742
|
+
const {
|
1743
|
+
borderGradient: t,
|
1744
|
+
borderRadius: a
|
1745
|
+
} = e.aiChat.suggestions;
|
1746
|
+
if (t) {
|
1747
|
+
const [r, o] = t;
|
1748
|
+
return L`
|
1749
|
+
border: none;
|
1750
|
+
position: relative;
|
1751
|
+
border-radius: ${a};
|
1752
|
+
&:before {
|
1753
|
+
content: '';
|
1754
|
+
position: absolute;
|
1755
|
+
top: 0;
|
1756
|
+
left: 0;
|
1757
|
+
right: 0;
|
1758
|
+
bottom: 0;
|
1759
|
+
border-radius: ${a};
|
1760
|
+
border: 1px solid transparent;
|
1761
|
+
background: linear-gradient(30deg, ${r}, ${o}) border-box;
|
1762
|
+
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
1763
|
+
-webkit-mask-composite: destination-out;
|
1764
|
+
mask-composite: exclude;
|
1765
|
+
}
|
1766
|
+
`;
|
1767
|
+
}
|
1768
|
+
return "";
|
1769
|
+
});
|
1770
|
+
function xe({
|
1771
|
+
children: e,
|
1772
|
+
align: t,
|
1773
|
+
onClick: a,
|
1774
|
+
onMouseEnter: r,
|
1775
|
+
onMouseLeave: o,
|
1776
|
+
accessibleName: n
|
1777
|
+
}) {
|
1778
|
+
const {
|
1779
|
+
themeSettings: l
|
1780
|
+
} = k();
|
1781
|
+
return /* @__PURE__ */ i(Si, {
|
1782
|
+
align: t,
|
1783
|
+
children: /* @__PURE__ */ i(Ii, {
|
1784
|
+
"aria-label": n,
|
1785
|
+
theme: l,
|
1786
|
+
onClick: a,
|
1787
|
+
align: t,
|
1788
|
+
onMouseEnter: r,
|
1789
|
+
onMouseLeave: o,
|
1790
|
+
children: e
|
1791
|
+
})
|
1792
|
+
});
|
1793
|
+
}
|
1794
|
+
function Di({
|
1795
|
+
onCancel: e,
|
1796
|
+
onConfirm: t
|
1797
|
+
}) {
|
1798
|
+
const {
|
1799
|
+
t: a
|
1800
|
+
} = y();
|
1801
|
+
return /* @__PURE__ */ h(N, {
|
1802
|
+
children: [/* @__PURE__ */ i(P, {
|
1803
|
+
align: "left",
|
1804
|
+
children: a("ai.clearHistoryPrompt")
|
1805
|
+
}), /* @__PURE__ */ h("div", {
|
1806
|
+
className: "csdk-flex csdk-gap-x-2",
|
1807
|
+
children: [/* @__PURE__ */ i(xe, {
|
1808
|
+
align: "right",
|
1809
|
+
onClick: t,
|
1810
|
+
accessibleName: "confirm clear chat",
|
1811
|
+
children: /* @__PURE__ */ i("div", {
|
1812
|
+
className: "csdk-py-[6px] csdk-px-[20px]",
|
1813
|
+
children: a("ai.buttons.yes")
|
1814
|
+
})
|
1815
|
+
}), /* @__PURE__ */ i(xe, {
|
1816
|
+
align: "right",
|
1817
|
+
onClick: e,
|
1818
|
+
accessibleName: "cancel clear chat",
|
1819
|
+
children: /* @__PURE__ */ i("div", {
|
1820
|
+
className: "csdk-py-[6px] csdk-px-[20px]",
|
1821
|
+
children: a("ai.buttons.no")
|
1822
|
+
})
|
1823
|
+
})]
|
1824
|
+
})]
|
1825
|
+
});
|
1826
|
+
}
|
1827
|
+
function Ai(e) {
|
1828
|
+
return wa("MuiDialog", e);
|
1829
|
+
}
|
1830
|
+
const Ae = oa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Pt = /* @__PURE__ */ ke({});
|
1831
|
+
process.env.NODE_ENV !== "production" && (Pt.displayName = "DialogContext");
|
1832
|
+
const Li = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], Ni = we(na, {
|
1833
|
+
name: "MuiDialog",
|
1834
|
+
slot: "Backdrop",
|
1835
|
+
overrides: (e, t) => t.backdrop
|
1836
|
+
})({
|
1837
|
+
// Improve scrollable dialog support.
|
1838
|
+
zIndex: -1
|
1839
|
+
}), Ti = (e) => {
|
1840
|
+
const {
|
1841
|
+
classes: t,
|
1842
|
+
scroll: a,
|
1843
|
+
maxWidth: r,
|
1844
|
+
fullWidth: o,
|
1845
|
+
fullScreen: n
|
1846
|
+
} = e, l = {
|
1847
|
+
root: ["root"],
|
1848
|
+
container: ["container", `scroll${ee(a)}`],
|
1849
|
+
paper: ["paper", `paperScroll${ee(a)}`, `paperWidth${ee(String(r))}`, o && "paperFullWidth", n && "paperFullScreen"]
|
1850
|
+
};
|
1851
|
+
return ma(l, Ai, t);
|
1852
|
+
}, ji = we(la, {
|
1853
|
+
name: "MuiDialog",
|
1854
|
+
slot: "Root",
|
1855
|
+
overridesResolver: (e, t) => t.root
|
1856
|
+
})({
|
1857
|
+
"@media print": {
|
1858
|
+
// Use !important to override the Modal inline-style.
|
1859
|
+
position: "absolute !important"
|
1860
|
+
}
|
1861
|
+
}), Ei = we("div", {
|
1862
|
+
name: "MuiDialog",
|
1863
|
+
slot: "Container",
|
1864
|
+
overridesResolver: (e, t) => {
|
1865
|
+
const {
|
1866
|
+
ownerState: a
|
1867
|
+
} = e;
|
1868
|
+
return [t.container, t[`scroll${ee(a.scroll)}`]];
|
1869
|
+
}
|
1870
|
+
})(({
|
1871
|
+
ownerState: e
|
1872
|
+
}) => U({
|
1873
|
+
height: "100%",
|
1874
|
+
"@media print": {
|
1875
|
+
height: "auto"
|
1876
|
+
},
|
1877
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
1878
|
+
outline: 0
|
1879
|
+
}, e.scroll === "paper" && {
|
1880
|
+
display: "flex",
|
1881
|
+
justifyContent: "center",
|
1882
|
+
alignItems: "center"
|
1883
|
+
}, e.scroll === "body" && {
|
1884
|
+
overflowY: "auto",
|
1885
|
+
overflowX: "hidden",
|
1886
|
+
textAlign: "center",
|
1887
|
+
"&::after": {
|
1888
|
+
content: '""',
|
1889
|
+
display: "inline-block",
|
1890
|
+
verticalAlign: "middle",
|
1891
|
+
height: "100%",
|
1892
|
+
width: "0"
|
1893
|
+
}
|
1894
|
+
})), zi = we(ht, {
|
1895
|
+
name: "MuiDialog",
|
1896
|
+
slot: "Paper",
|
1897
|
+
overridesResolver: (e, t) => {
|
1898
|
+
const {
|
1899
|
+
ownerState: a
|
1900
|
+
} = e;
|
1901
|
+
return [t.paper, t[`scrollPaper${ee(a.scroll)}`], t[`paperWidth${ee(String(a.maxWidth))}`], a.fullWidth && t.paperFullWidth, a.fullScreen && t.paperFullScreen];
|
1902
|
+
}
|
1903
|
+
})(({
|
1904
|
+
theme: e,
|
1905
|
+
ownerState: t
|
1906
|
+
}) => U({
|
1907
|
+
margin: 32,
|
1908
|
+
position: "relative",
|
1909
|
+
overflowY: "auto",
|
1910
|
+
// Fix IE11 issue, to remove at some point.
|
1911
|
+
"@media print": {
|
1912
|
+
overflowY: "visible",
|
1913
|
+
boxShadow: "none"
|
1914
|
+
}
|
1915
|
+
}, t.scroll === "paper" && {
|
1916
|
+
display: "flex",
|
1917
|
+
flexDirection: "column",
|
1918
|
+
maxHeight: "calc(100% - 64px)"
|
1919
|
+
}, t.scroll === "body" && {
|
1920
|
+
display: "inline-block",
|
1921
|
+
verticalAlign: "middle",
|
1922
|
+
textAlign: "left"
|
1923
|
+
// 'initial' doesn't work on IE11
|
1924
|
+
}, !t.maxWidth && {
|
1925
|
+
maxWidth: "calc(100% - 64px)"
|
1926
|
+
}, t.maxWidth === "xs" && {
|
1927
|
+
maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
|
1928
|
+
[`&.${Ae.paperScrollBody}`]: {
|
1929
|
+
[e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
|
1930
|
+
maxWidth: "calc(100% - 64px)"
|
1931
|
+
}
|
1932
|
+
}
|
1933
|
+
}, t.maxWidth && t.maxWidth !== "xs" && {
|
1934
|
+
maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
|
1935
|
+
[`&.${Ae.paperScrollBody}`]: {
|
1936
|
+
[e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 32 * 2)]: {
|
1937
|
+
maxWidth: "calc(100% - 64px)"
|
1938
|
+
}
|
1939
|
+
}
|
1940
|
+
}, t.fullWidth && {
|
1941
|
+
width: "calc(100% - 64px)"
|
1942
|
+
}, t.fullScreen && {
|
1943
|
+
margin: 0,
|
1944
|
+
width: "100%",
|
1945
|
+
maxWidth: "100%",
|
1946
|
+
height: "100%",
|
1947
|
+
maxHeight: "none",
|
1948
|
+
borderRadius: 0,
|
1949
|
+
[`&.${Ae.paperScrollBody}`]: {
|
1950
|
+
margin: 0,
|
1951
|
+
maxWidth: "100%"
|
1952
|
+
}
|
1953
|
+
})), Bt = /* @__PURE__ */ mt(function(e, t) {
|
1954
|
+
const a = da({
|
1955
|
+
props: e,
|
1956
|
+
name: "MuiDialog"
|
1957
|
+
}), r = ca(), o = {
|
1958
|
+
enter: r.transitions.duration.enteringScreen,
|
1959
|
+
exit: r.transitions.duration.leavingScreen
|
1960
|
+
}, {
|
1961
|
+
"aria-describedby": n,
|
1962
|
+
"aria-labelledby": l,
|
1963
|
+
BackdropComponent: d,
|
1964
|
+
BackdropProps: c,
|
1965
|
+
children: s,
|
1966
|
+
className: g,
|
1967
|
+
disableEscapeKeyDown: p = !1,
|
1968
|
+
fullScreen: m = !1,
|
1969
|
+
fullWidth: x = !1,
|
1970
|
+
maxWidth: w = "sm",
|
1971
|
+
onBackdropClick: f,
|
1972
|
+
onClick: M,
|
1973
|
+
onClose: S,
|
1974
|
+
open: E,
|
1975
|
+
PaperComponent: C = ht,
|
1976
|
+
PaperProps: O = {},
|
1977
|
+
scroll: H = "paper",
|
1978
|
+
TransitionComponent: Z = ba,
|
1979
|
+
transitionDuration: B = o,
|
1980
|
+
TransitionProps: Ce
|
1981
|
+
} = a, ge = sa(a, Li), Q = U({}, a, {
|
1982
|
+
disableEscapeKeyDown: p,
|
1983
|
+
fullScreen: m,
|
1984
|
+
fullWidth: x,
|
1985
|
+
maxWidth: w,
|
1986
|
+
scroll: H
|
1987
|
+
}), $ = Ti(Q), ae = V(), ve = (R) => {
|
1988
|
+
ae.current = R.target === R.currentTarget;
|
1989
|
+
}, re = (R) => {
|
1990
|
+
M && M(R), ae.current && (ae.current = null, f && f(R), S && S(R, "backdropClick"));
|
1991
|
+
}, ie = pa(l), j = T(() => ({
|
1992
|
+
titleId: ie
|
1993
|
+
}), [ie]);
|
1994
|
+
return /* @__PURE__ */ oe(ji, U({
|
1995
|
+
className: Se($.root, g),
|
1996
|
+
closeAfterTransition: !0,
|
1997
|
+
components: {
|
1998
|
+
Backdrop: Ni
|
1999
|
+
},
|
2000
|
+
componentsProps: {
|
2001
|
+
backdrop: U({
|
2002
|
+
transitionDuration: B,
|
2003
|
+
as: d
|
2004
|
+
}, c)
|
2005
|
+
},
|
2006
|
+
disableEscapeKeyDown: p,
|
2007
|
+
onClose: S,
|
2008
|
+
open: E,
|
2009
|
+
ref: t,
|
2010
|
+
onClick: re,
|
2011
|
+
ownerState: Q
|
2012
|
+
}, ge, {
|
2013
|
+
children: /* @__PURE__ */ oe(Z, U({
|
2014
|
+
appear: !0,
|
2015
|
+
in: E,
|
2016
|
+
timeout: B,
|
2017
|
+
role: "presentation"
|
2018
|
+
}, Ce, {
|
2019
|
+
children: /* @__PURE__ */ oe(Ei, {
|
2020
|
+
className: Se($.container),
|
2021
|
+
onMouseDown: ve,
|
2022
|
+
ownerState: Q,
|
2023
|
+
children: /* @__PURE__ */ oe(zi, U({
|
2024
|
+
as: C,
|
2025
|
+
elevation: 24,
|
2026
|
+
role: "dialog",
|
2027
|
+
"aria-describedby": n,
|
2028
|
+
"aria-labelledby": ie
|
2029
|
+
}, O, {
|
2030
|
+
className: Se($.paper, O.className),
|
2031
|
+
ownerState: Q,
|
2032
|
+
children: /* @__PURE__ */ oe(Pt.Provider, {
|
2033
|
+
value: j,
|
2034
|
+
children: s
|
2035
|
+
})
|
2036
|
+
}))
|
2037
|
+
})
|
2038
|
+
}))
|
2039
|
+
}));
|
2040
|
+
});
|
2041
|
+
process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
2042
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
2043
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
2044
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
2045
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
2046
|
+
/**
|
2047
|
+
* The id(s) of the element(s) that describe the dialog.
|
2048
|
+
*/
|
2049
|
+
"aria-describedby": b.string,
|
2050
|
+
/**
|
2051
|
+
* The id(s) of the element(s) that label the dialog.
|
2052
|
+
*/
|
2053
|
+
"aria-labelledby": b.string,
|
2054
|
+
/**
|
2055
|
+
* A backdrop component. This prop enables custom backdrop rendering.
|
2056
|
+
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
2057
|
+
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
2058
|
+
* @default styled(Backdrop, {
|
2059
|
+
* name: 'MuiModal',
|
2060
|
+
* slot: 'Backdrop',
|
2061
|
+
* overridesResolver: (props, styles) => {
|
2062
|
+
* return styles.backdrop;
|
2063
|
+
* },
|
2064
|
+
* })({
|
2065
|
+
* zIndex: -1,
|
2066
|
+
* })
|
2067
|
+
*/
|
2068
|
+
BackdropComponent: b.elementType,
|
2069
|
+
/**
|
2070
|
+
* @ignore
|
2071
|
+
*/
|
2072
|
+
BackdropProps: b.object,
|
2073
|
+
/**
|
2074
|
+
* Dialog children, usually the included sub-components.
|
2075
|
+
*/
|
2076
|
+
children: b.node,
|
2077
|
+
/**
|
2078
|
+
* Override or extend the styles applied to the component.
|
2079
|
+
*/
|
2080
|
+
classes: b.object,
|
2081
|
+
/**
|
2082
|
+
* @ignore
|
2083
|
+
*/
|
2084
|
+
className: b.string,
|
2085
|
+
/**
|
2086
|
+
* If `true`, hitting escape will not fire the `onClose` callback.
|
2087
|
+
* @default false
|
2088
|
+
*/
|
2089
|
+
disableEscapeKeyDown: b.bool,
|
2090
|
+
/**
|
2091
|
+
* If `true`, the dialog is full-screen.
|
2092
|
+
* @default false
|
2093
|
+
*/
|
2094
|
+
fullScreen: b.bool,
|
2095
|
+
/**
|
2096
|
+
* If `true`, the dialog stretches to `maxWidth`.
|
2097
|
+
*
|
2098
|
+
* Notice that the dialog width grow is limited by the default margin.
|
2099
|
+
* @default false
|
2100
|
+
*/
|
2101
|
+
fullWidth: b.bool,
|
2102
|
+
/**
|
2103
|
+
* Determine the max-width of the dialog.
|
2104
|
+
* The dialog width grows with the size of the screen.
|
2105
|
+
* Set to `false` to disable `maxWidth`.
|
2106
|
+
* @default 'sm'
|
2107
|
+
*/
|
2108
|
+
maxWidth: b.oneOfType([b.oneOf(["xs", "sm", "md", "lg", "xl", !1]), b.string]),
|
2109
|
+
/**
|
2110
|
+
* Callback fired when the backdrop is clicked.
|
2111
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
2112
|
+
*/
|
2113
|
+
onBackdropClick: b.func,
|
2114
|
+
/**
|
2115
|
+
* @ignore
|
2116
|
+
*/
|
2117
|
+
onClick: b.func,
|
2118
|
+
/**
|
2119
|
+
* Callback fired when the component requests to be closed.
|
2120
|
+
*
|
2121
|
+
* @param {object} event The event source of the callback.
|
2122
|
+
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
2123
|
+
*/
|
2124
|
+
onClose: b.func,
|
2125
|
+
/**
|
2126
|
+
* If `true`, the component is shown.
|
2127
|
+
*/
|
2128
|
+
open: b.bool.isRequired,
|
2129
|
+
/**
|
2130
|
+
* The component used to render the body of the dialog.
|
2131
|
+
* @default Paper
|
2132
|
+
*/
|
2133
|
+
PaperComponent: b.elementType,
|
2134
|
+
/**
|
2135
|
+
* Props applied to the [`Paper`](/material-ui/api/paper/) element.
|
2136
|
+
* @default {}
|
2137
|
+
*/
|
2138
|
+
PaperProps: b.object,
|
2139
|
+
/**
|
2140
|
+
* Determine the container for scrolling the dialog.
|
2141
|
+
* @default 'paper'
|
2142
|
+
*/
|
2143
|
+
scroll: b.oneOf(["body", "paper"]),
|
2144
|
+
/**
|
2145
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
2146
|
+
*/
|
2147
|
+
sx: b.oneOfType([b.arrayOf(b.oneOfType([b.func, b.object, b.bool])), b.func, b.object]),
|
2148
|
+
/**
|
2149
|
+
* The component used for the transition.
|
2150
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
2151
|
+
* @default Fade
|
2152
|
+
*/
|
2153
|
+
TransitionComponent: b.elementType,
|
2154
|
+
/**
|
2155
|
+
* The duration for the transition, in milliseconds.
|
2156
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
2157
|
+
* @default {
|
2158
|
+
* enter: theme.transitions.duration.enteringScreen,
|
2159
|
+
* exit: theme.transitions.duration.leavingScreen,
|
2160
|
+
* }
|
2161
|
+
*/
|
2162
|
+
transitionDuration: b.oneOfType([b.number, b.shape({
|
2163
|
+
appear: b.number,
|
2164
|
+
enter: b.number,
|
2165
|
+
exit: b.number
|
2166
|
+
})]),
|
2167
|
+
/**
|
2168
|
+
* Props applied to the transition element.
|
2169
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
2170
|
+
*/
|
2171
|
+
TransitionProps: b.object
|
2172
|
+
});
|
2173
|
+
function Oi({
|
2174
|
+
fillColor: e = "#262E3D"
|
2175
|
+
}) {
|
2176
|
+
return /* @__PURE__ */ h("svg", {
|
2177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2178
|
+
width: "30",
|
2179
|
+
height: "30",
|
2180
|
+
viewBox: "0 0 30 30",
|
2181
|
+
fill: "none",
|
2182
|
+
children: [/* @__PURE__ */ i("rect", {
|
2183
|
+
x: "1",
|
2184
|
+
y: "1",
|
2185
|
+
width: "28",
|
2186
|
+
height: "28",
|
2187
|
+
rx: "14",
|
2188
|
+
stroke: "#9EA2AB"
|
2189
|
+
}), /* @__PURE__ */ i("path", {
|
2190
|
+
fillRule: "evenodd",
|
2191
|
+
clipRule: "evenodd",
|
2192
|
+
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",
|
2193
|
+
fill: e
|
2194
|
+
})]
|
2195
|
+
});
|
2196
|
+
}
|
2197
|
+
const Qt = {
|
2198
|
+
row: {
|
2199
|
+
hover: "rgba(224, 224, 224, 0.3)"
|
2200
|
+
},
|
2201
|
+
secondary: {
|
2202
|
+
default: "rgba(38, 46, 61, 0.1)",
|
2203
|
+
hover: "rgba(38, 46, 61, 0.17)"
|
2204
|
+
},
|
2205
|
+
text: {
|
2206
|
+
active: "rgba(38, 46, 61, 1)",
|
2207
|
+
content: "rgba(38, 46, 61, 0.8)",
|
2208
|
+
secondary: "rgba(38, 46, 61, 0.55)",
|
2209
|
+
disabled: "rgba(38, 46, 61, 0.3)",
|
2210
|
+
link: "rgba(54, 163, 217, 1)",
|
2211
|
+
accented: "rgba(12, 14, 18, 1)",
|
2212
|
+
linkButton: "#1eaff3",
|
2213
|
+
primary: "#262E3D"
|
2214
|
+
},
|
2215
|
+
UI: {
|
2216
|
+
default: "#6e737d",
|
2217
|
+
additional: "rgba(38, 46, 61, 0.4)",
|
2218
|
+
guiding: "rgba(38, 46, 61, 0.1)"
|
2219
|
+
},
|
2220
|
+
background: {
|
2221
|
+
workspace: "rgba(255, 255, 255, 1)",
|
2222
|
+
supporting: "rgba(249, 249, 251, 1)",
|
2223
|
+
priority: "rgba(244, 244, 248, 1)"
|
2224
|
+
},
|
2225
|
+
primary: {
|
2226
|
+
primary: "rgba(255, 203, 5, 1)",
|
2227
|
+
default: "#FFC805",
|
2228
|
+
hover: "#F2B900"
|
2229
|
+
},
|
2230
|
+
interaction: {
|
2231
|
+
defaultHover: "rgba(12, 14, 18, 0.07)",
|
2232
|
+
guidingHover: "rgba(38, 46, 61, 0.17)",
|
2233
|
+
linkHovered: "rgba(50, 147, 197, 1)",
|
2234
|
+
primaryHovered: "rgba(242, 185, 0, 1)"
|
2235
|
+
},
|
2236
|
+
semantic: {
|
2237
|
+
info: "rgba(52, 150, 200, 1)",
|
2238
|
+
success: "rgba(34, 195, 195, 1)",
|
2239
|
+
warning: "rgba(242, 185, 0, 1)",
|
2240
|
+
error: "rgba(231, 71, 39, 1)",
|
2241
|
+
infoBG: "rgba(52, 150, 200, 0.1)",
|
2242
|
+
successBG: "rgba(34, 195, 195, 0.1)",
|
2243
|
+
warningBG: "rgba(242, 185, 0, 0.1)",
|
2244
|
+
errorBG: "rgba(231, 71, 39, 0.1)"
|
2245
|
+
},
|
2246
|
+
sisenseDark: {
|
2247
|
+
text: {
|
2248
|
+
active: "rgba(235, 239, 247, 1)",
|
2249
|
+
content: "rgba(235, 239, 247, 0.8)",
|
2250
|
+
secondary: "rgba(235, 239, 247, 0.55)",
|
2251
|
+
disabled: "rgba(235, 239, 247, 0.3)",
|
2252
|
+
link: "rgba(50, 147, 197, 1)",
|
2253
|
+
accented: "rgba(12, 14, 18, 1)"
|
2254
|
+
},
|
2255
|
+
ui: {
|
2256
|
+
default: "rgba(235, 239, 247, 0.67)",
|
2257
|
+
additional: "rgba(235, 239, 247, 0.4)",
|
2258
|
+
guiding: "rgba(235, 239, 247, 0.1)"
|
2259
|
+
},
|
2260
|
+
background: {
|
2261
|
+
workspace: "rgba(12, 14, 18, 1)",
|
2262
|
+
supporting: "rgba(249, 249, 251, 1)",
|
2263
|
+
priority: "rgba(244, 244, 248, 1)"
|
2264
|
+
},
|
2265
|
+
interaction: {
|
2266
|
+
defaultHover: "rgba(12, 14, 18, 0.07)",
|
2267
|
+
guidingHover: "rgba(235, 239, 247, 0.17)",
|
2268
|
+
linkHovered: "rgba(50, 147, 197, 1)",
|
2269
|
+
primaryHovered: "rgba(242, 185, 0, 1)"
|
2270
|
+
},
|
2271
|
+
semantic: {
|
2272
|
+
info: "rgba(52, 150, 200, 1)",
|
2273
|
+
success: "rgba(34, 195, 195, 1)",
|
2274
|
+
warning: "rgba(242, 185, 0, 1)",
|
2275
|
+
error: "rgba(231, 71, 39, 1)",
|
2276
|
+
infoBG: "rgba(52, 150, 200, 0.1)",
|
2277
|
+
successBG: "rgba(34, 195, 195, 0.1)",
|
2278
|
+
warningBG: "rgba(242, 185, 0, 0.1)",
|
2279
|
+
errorBG: "rgba(231, 71, 39, 0.1)"
|
2280
|
+
}
|
2281
|
+
}
|
2282
|
+
}, Zi = {
|
2283
|
+
shouldForwardProp: (e) => !e.startsWith("$")
|
2284
|
+
}, pe = /* @__PURE__ */ u(yt, Zi, {
|
2285
|
+
target: "e869yoj0",
|
2286
|
+
label: "IconButton"
|
2287
|
+
})(({
|
2288
|
+
$hoverColor: e
|
2289
|
+
}) => ({
|
2290
|
+
padding: 2,
|
2291
|
+
"&.MuiIconButton-root:hover": {
|
2292
|
+
backgroundColor: e ?? Qt.interaction.defaultHover
|
2293
|
+
}
|
2294
|
+
}));
|
2295
|
+
function Ri({
|
2296
|
+
fill: e = "rgba(38, 46, 61, 0.67)"
|
2297
|
+
}) {
|
2298
|
+
return /* @__PURE__ */ i("svg", {
|
2299
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2300
|
+
width: "24",
|
2301
|
+
height: "24",
|
2302
|
+
viewBox: "0 0 24 24",
|
2303
|
+
fill: "none",
|
2304
|
+
children: /* @__PURE__ */ i("path", {
|
2305
|
+
fillRule: "evenodd",
|
2306
|
+
clipRule: "evenodd",
|
2307
|
+
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",
|
2308
|
+
fill: e
|
2309
|
+
})
|
2310
|
+
});
|
2311
|
+
}
|
2312
|
+
function Wi({
|
2313
|
+
fill: e = "rgba(38, 46, 61, 0.67)"
|
2314
|
+
}) {
|
2315
|
+
return /* @__PURE__ */ i("svg", {
|
2316
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2317
|
+
width: "24",
|
2318
|
+
height: "24",
|
2319
|
+
viewBox: "0 0 24 24",
|
2320
|
+
fill: "none",
|
2321
|
+
children: /* @__PURE__ */ i("path", {
|
2322
|
+
fillRule: "evenodd",
|
2323
|
+
clipRule: "evenodd",
|
2324
|
+
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",
|
2325
|
+
fill: e
|
2326
|
+
})
|
2327
|
+
});
|
2328
|
+
}
|
2329
|
+
function Gi() {
|
2330
|
+
return /* @__PURE__ */ i("svg", {
|
2331
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2332
|
+
width: "24",
|
2333
|
+
height: "24",
|
2334
|
+
viewBox: "0 0 24 24",
|
2335
|
+
fill: "none",
|
2336
|
+
children: /* @__PURE__ */ i("path", {
|
2337
|
+
fillRule: "evenodd",
|
2338
|
+
clipRule: "evenodd",
|
2339
|
+
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",
|
2340
|
+
fill: "#262E3D",
|
2341
|
+
fillOpacity: "0.67"
|
2342
|
+
})
|
2343
|
+
});
|
2344
|
+
}
|
2345
|
+
function qi({
|
2346
|
+
fill: e = "rgba(38, 46, 61, 0.67)"
|
2347
|
+
}) {
|
2348
|
+
return /* @__PURE__ */ i("svg", {
|
2349
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2350
|
+
width: "24",
|
2351
|
+
height: "24",
|
2352
|
+
viewBox: "0 0 24 24",
|
2353
|
+
fill: "none",
|
2354
|
+
children: /* @__PURE__ */ i("path", {
|
2355
|
+
fillRule: "evenodd",
|
2356
|
+
clipRule: "evenodd",
|
2357
|
+
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",
|
2358
|
+
fill: e
|
2359
|
+
})
|
2360
|
+
});
|
2361
|
+
}
|
2362
|
+
const Fe = (e) => kt(e.chart.backgroundColor), Hi = ({
|
2363
|
+
title: e
|
2364
|
+
}) => {
|
2365
|
+
const {
|
2366
|
+
themeSettings: t
|
2367
|
+
} = k();
|
2368
|
+
return /* @__PURE__ */ i(se, {
|
2369
|
+
title: e,
|
2370
|
+
children: /* @__PURE__ */ i(pe, {
|
2371
|
+
disableTouchRipple: !0,
|
2372
|
+
$hoverColor: Fe(t),
|
2373
|
+
children: /* @__PURE__ */ i(Wi, {
|
2374
|
+
fill: t.chart.textColor
|
2375
|
+
})
|
2376
|
+
})
|
2377
|
+
});
|
2378
|
+
}, Yi = ({
|
2379
|
+
items: e
|
2380
|
+
}) => {
|
2381
|
+
const [t, a] = I(null), r = (l) => {
|
2382
|
+
a(l.currentTarget);
|
2383
|
+
}, o = () => {
|
2384
|
+
a(null);
|
2385
|
+
}, {
|
2386
|
+
themeSettings: n
|
2387
|
+
} = k();
|
2388
|
+
return /* @__PURE__ */ h(N, {
|
2389
|
+
children: [/* @__PURE__ */ i(pe, {
|
2390
|
+
onClick: r,
|
2391
|
+
$hoverColor: Fe(n),
|
2392
|
+
"aria-label": "three dots button",
|
2393
|
+
children: /* @__PURE__ */ i(qi, {
|
2394
|
+
fill: n.chart.textColor
|
2395
|
+
})
|
2396
|
+
}), /* @__PURE__ */ i(Pa, {
|
2397
|
+
anchorEl: t,
|
2398
|
+
anchorOrigin: {
|
2399
|
+
vertical: "bottom",
|
2400
|
+
horizontal: "center"
|
2401
|
+
},
|
2402
|
+
transformOrigin: {
|
2403
|
+
vertical: "top",
|
2404
|
+
horizontal: "right"
|
2405
|
+
},
|
2406
|
+
open: !!t,
|
2407
|
+
onClose: o,
|
2408
|
+
children: e.map((l) => /* @__PURE__ */ h(Ya, {
|
2409
|
+
onClick: () => {
|
2410
|
+
l.onClick(), o();
|
2411
|
+
},
|
2412
|
+
sx: {
|
2413
|
+
fontSize: "13px",
|
2414
|
+
fontFamily: n.typography.fontFamily,
|
2415
|
+
color: Qt.text.content
|
2416
|
+
},
|
2417
|
+
disableRipple: !0,
|
2418
|
+
children: [l.icon, /* @__PURE__ */ i("div", {
|
2419
|
+
className: "csdk-ml-1",
|
2420
|
+
children: l.title
|
2421
|
+
})]
|
2422
|
+
}, l.title))
|
2423
|
+
})]
|
2424
|
+
});
|
2425
|
+
}, Pi = ({
|
2426
|
+
onClick: e
|
2427
|
+
}) => {
|
2428
|
+
const {
|
2429
|
+
themeSettings: t
|
2430
|
+
} = k(), {
|
2431
|
+
t: a
|
2432
|
+
} = y();
|
2433
|
+
return /* @__PURE__ */ i(se, {
|
2434
|
+
title: a("ai.preview"),
|
2435
|
+
children: /* @__PURE__ */ i(pe, {
|
2436
|
+
onClick: e,
|
2437
|
+
$hoverColor: Fe(t),
|
2438
|
+
children: /* @__PURE__ */ i(Ri, {
|
2439
|
+
fill: t.chart.textColor
|
2440
|
+
})
|
2441
|
+
})
|
2442
|
+
});
|
2443
|
+
}, Bi = /* @__PURE__ */ u("div", {
|
2444
|
+
target: "e1cseu7j0",
|
2445
|
+
label: "ToolbarContainer"
|
2446
|
+
})("display:flex;padding-top:6px;padding-bottom:6px;");
|
2447
|
+
function Qi({
|
2448
|
+
infoTooltipText: e,
|
2449
|
+
onRefresh: t,
|
2450
|
+
onExpand: a
|
2451
|
+
}) {
|
2452
|
+
const r = T(() => [{
|
2453
|
+
title: "Refresh",
|
2454
|
+
onClick: t,
|
2455
|
+
icon: /* @__PURE__ */ i(Gi, {})
|
2456
|
+
}], [t]);
|
2457
|
+
return /* @__PURE__ */ h(Bi, {
|
2458
|
+
"aria-label": "chatbot chart toolbar",
|
2459
|
+
children: [/* @__PURE__ */ i(Hi, {
|
2460
|
+
title: e ?? ""
|
2461
|
+
}), /* @__PURE__ */ i(Yi, {
|
2462
|
+
items: r
|
2463
|
+
}), /* @__PURE__ */ i(Pi, {
|
2464
|
+
onClick: a
|
2465
|
+
})]
|
2466
|
+
});
|
2467
|
+
}
|
2468
|
+
function Ui({
|
2469
|
+
content: e
|
2470
|
+
}) {
|
2471
|
+
const [t, a] = I(!1), {
|
2472
|
+
themeSettings: r
|
2473
|
+
} = k(), {
|
2474
|
+
inlineElement: o,
|
2475
|
+
expandedElement: n
|
2476
|
+
} = T(() => {
|
2477
|
+
const l = Pe(e, {
|
2478
|
+
useCustomizedStyleOptions: !0
|
2479
|
+
});
|
2480
|
+
if (l === void 0 || !ft(l))
|
2481
|
+
throw new J("errors.otherWidgetTypesNotSupported");
|
2482
|
+
const {
|
2483
|
+
detailedDescription: d
|
2484
|
+
} = e, {
|
2485
|
+
styleOptions: c
|
2486
|
+
} = l, s = {
|
2487
|
+
cornerRadius: "Small",
|
2488
|
+
header: {
|
2489
|
+
renderToolbar: (m) => /* @__PURE__ */ i(Qi, {
|
2490
|
+
infoTooltipText: d,
|
2491
|
+
onRefresh: m,
|
2492
|
+
onExpand: () => a(!0)
|
2493
|
+
})
|
2494
|
+
}
|
2495
|
+
};
|
2496
|
+
let g, p;
|
2497
|
+
if (Wa(l.chartType))
|
2498
|
+
g = /* @__PURE__ */ i("div", {
|
2499
|
+
className: "csdk-h-[245px]",
|
2500
|
+
children: /* @__PURE__ */ i(ue, A(v({}, l), {
|
2501
|
+
styleOptions: s
|
2502
|
+
}))
|
2503
|
+
}), p = /* @__PURE__ */ i(ue, A(v({}, l), {
|
2504
|
+
styleOptions: {
|
2505
|
+
header: {
|
2506
|
+
hidden: !0
|
2507
|
+
}
|
2508
|
+
}
|
2509
|
+
}));
|
2510
|
+
else {
|
2511
|
+
const m = A(v({}, c), {
|
2512
|
+
header: {
|
2513
|
+
hidden: !0
|
2514
|
+
}
|
2515
|
+
}), x = v(A(v({}, c), {
|
2516
|
+
legend: void 0,
|
2517
|
+
xAxis: void 0,
|
2518
|
+
yAxis: void 0
|
2519
|
+
}), s);
|
2520
|
+
delete x.legend, delete x.xAxis, delete x.yAxis, g = /* @__PURE__ */ i("div", {
|
2521
|
+
children: /* @__PURE__ */ i(ue, A(v({}, l), {
|
2522
|
+
styleOptions: x
|
2523
|
+
}))
|
2524
|
+
}), p = /* @__PURE__ */ i(ue, A(v({}, l), {
|
2525
|
+
styleOptions: v({
|
2526
|
+
cornerRadius: "None"
|
2527
|
+
}, m)
|
2528
|
+
}));
|
2529
|
+
}
|
2530
|
+
return {
|
2531
|
+
inlineElement: g,
|
2532
|
+
expandedElement: p
|
2533
|
+
};
|
2534
|
+
}, [e]);
|
2535
|
+
return /* @__PURE__ */ h(N, {
|
2536
|
+
children: [o, /* @__PURE__ */ h(Bt, {
|
2537
|
+
open: t,
|
2538
|
+
onClose: () => a(!1),
|
2539
|
+
maxWidth: "xl",
|
2540
|
+
fullWidth: !0,
|
2541
|
+
PaperProps: {
|
2542
|
+
sx: {
|
2543
|
+
backgroundColor: r.chart.backgroundColor,
|
2544
|
+
color: r.aiChat.primaryTextColor
|
2545
|
+
}
|
2546
|
+
},
|
2547
|
+
children: [/* @__PURE__ */ h("div", {
|
2548
|
+
className: "csdk-flex csdk-items-center csdk-justify-between csdk-mt-[16px] csdk-mx-[16px] csdk-pl-[20px]",
|
2549
|
+
children: [/* @__PURE__ */ i("div", {
|
2550
|
+
className: "csdk-text-ai-lg csdk-semibold",
|
2551
|
+
children: e.queryTitle
|
2552
|
+
}), /* @__PURE__ */ i(yt, {
|
2553
|
+
onClick: () => a(!1),
|
2554
|
+
"aria-label": "close expanded chart",
|
2555
|
+
children: /* @__PURE__ */ i(Oi, {
|
2556
|
+
fillColor: r.aiChat.primaryTextColor
|
2557
|
+
})
|
2558
|
+
})]
|
2559
|
+
}), /* @__PURE__ */ i("div", {
|
2560
|
+
className: "csdk-h-screen csdk-mt-[8px] csdk-mb-[24px] csdk-mx-[16px]",
|
2561
|
+
children: n
|
2562
|
+
})]
|
2563
|
+
})]
|
2564
|
+
});
|
2565
|
+
}
|
2566
|
+
function Fi({
|
2567
|
+
theme: e
|
2568
|
+
}) {
|
2569
|
+
return /* @__PURE__ */ i("svg", {
|
2570
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2571
|
+
width: "24",
|
2572
|
+
height: "24",
|
2573
|
+
viewBox: "0 0 24 24",
|
2574
|
+
fill: "none",
|
2575
|
+
children: /* @__PURE__ */ i("path", {
|
2576
|
+
fillRule: "evenodd",
|
2577
|
+
clipRule: "evenodd",
|
2578
|
+
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",
|
2579
|
+
fill: e.aiChat.icons.color
|
2580
|
+
})
|
2581
|
+
});
|
2582
|
+
}
|
2583
|
+
function Vi({
|
2584
|
+
onClick: e,
|
2585
|
+
disabled: t
|
2586
|
+
}) {
|
2587
|
+
const {
|
2588
|
+
themeSettings: a
|
2589
|
+
} = k(), {
|
2590
|
+
t: r
|
2591
|
+
} = y();
|
2592
|
+
return /* @__PURE__ */ i(se, {
|
2593
|
+
title: r("ai.buttons.incorrectResponse"),
|
2594
|
+
children: /* @__PURE__ */ i(pe, {
|
2595
|
+
"aria-label": "thumbs-down",
|
2596
|
+
onClick: e,
|
2597
|
+
$hoverColor: a.aiChat.icons.feedbackIcons.hoverColor,
|
2598
|
+
disabled: t,
|
2599
|
+
children: /* @__PURE__ */ i(Fi, {
|
2600
|
+
theme: a
|
2601
|
+
})
|
2602
|
+
})
|
2603
|
+
});
|
2604
|
+
}
|
2605
|
+
function Ji({
|
2606
|
+
theme: e
|
2607
|
+
}) {
|
2608
|
+
return /* @__PURE__ */ i("svg", {
|
2609
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2610
|
+
width: "24",
|
2611
|
+
height: "24",
|
2612
|
+
viewBox: "0 0 24 24",
|
2613
|
+
fill: "none",
|
2614
|
+
children: /* @__PURE__ */ i("path", {
|
2615
|
+
fillRule: "evenodd",
|
2616
|
+
clipRule: "evenodd",
|
2617
|
+
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",
|
2618
|
+
fill: e.aiChat.icons.color
|
2619
|
+
})
|
2620
|
+
});
|
2621
|
+
}
|
2622
|
+
function Xi({
|
2623
|
+
onClick: e,
|
2624
|
+
disabled: t
|
2625
|
+
}) {
|
2626
|
+
const {
|
2627
|
+
themeSettings: a
|
2628
|
+
} = k(), {
|
2629
|
+
t: r
|
2630
|
+
} = y();
|
2631
|
+
return /* @__PURE__ */ i(se, {
|
2632
|
+
title: r("ai.buttons.correctResponse"),
|
2633
|
+
children: /* @__PURE__ */ i(pe, {
|
2634
|
+
"aria-label": "thumbs-up",
|
2635
|
+
onClick: e,
|
2636
|
+
$hoverColor: a.aiChat.icons.feedbackIcons.hoverColor,
|
2637
|
+
disabled: t,
|
2638
|
+
children: /* @__PURE__ */ i(Ji, {
|
2639
|
+
theme: a
|
2640
|
+
})
|
2641
|
+
})
|
2642
|
+
});
|
2643
|
+
}
|
2644
|
+
const $i = () => {
|
2645
|
+
const [e, t] = I(!1), a = V(null), r = _(() => {
|
2646
|
+
t(!0);
|
2647
|
+
}, []), o = _(() => {
|
2648
|
+
t(!1);
|
2649
|
+
}, []);
|
2650
|
+
return [_((n) => {
|
2651
|
+
var l;
|
2652
|
+
((l = a.current) == null ? void 0 : l.nodeType) === Node.ELEMENT_NODE && (a.current.removeEventListener("mouseenter", r), a.current.removeEventListener("mouseleave", o)), (n == null ? void 0 : n.nodeType) === Node.ELEMENT_NODE && (n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", o)), a.current = n;
|
2653
|
+
}, [r, o]), e];
|
2654
|
+
}, Ki = /* @__PURE__ */ u("div", {
|
2655
|
+
target: "e2xyvaw0",
|
2656
|
+
label: "Container"
|
2657
|
+
})("display:flex;flex-direction:column;row-gap:", ({
|
2658
|
+
theme: e
|
2659
|
+
}) => e.aiChat.body.gapBetweenMessages, ";");
|
2660
|
+
function eo({
|
2661
|
+
visible: e,
|
2662
|
+
onSend: t
|
2663
|
+
}) {
|
2664
|
+
const [a, r] = I(!1), o = _((n) => {
|
2665
|
+
r(!0), t(n === "up" ? 1 : -1);
|
2666
|
+
}, [t]);
|
2667
|
+
return e ? /* @__PURE__ */ h("div", {
|
2668
|
+
className: `csdk-flex csdk-items-center ${`csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${a ? "csdk-opacity-0" : "csdk-opacity-100"}`}`,
|
2669
|
+
children: [/* @__PURE__ */ i(Xi, {
|
2670
|
+
onClick: () => o("up"),
|
2671
|
+
disabled: a
|
2672
|
+
}), /* @__PURE__ */ i(Vi, {
|
2673
|
+
onClick: () => o("down"),
|
2674
|
+
disabled: a
|
2675
|
+
})]
|
2676
|
+
}) : null;
|
2677
|
+
}
|
2678
|
+
function ct({
|
2679
|
+
sourceId: e,
|
2680
|
+
data: t,
|
2681
|
+
type: a,
|
2682
|
+
buttonVisibility: r = "onHover",
|
2683
|
+
renderContent: o
|
2684
|
+
}) {
|
2685
|
+
const n = G(), l = Ga(_((p) => {
|
2686
|
+
n && n.ai.sendFeedback({
|
2687
|
+
sourceId: e,
|
2688
|
+
type: a,
|
2689
|
+
data: t,
|
2690
|
+
rating: p
|
2691
|
+
});
|
2692
|
+
}, [n, e, t, a]), 200), [d, c] = $i(), s = T(() => r === "onHover" ? c : r !== "never", [c, r]), {
|
2693
|
+
themeSettings: g
|
2694
|
+
} = k();
|
2695
|
+
return /* @__PURE__ */ i(Ki, {
|
2696
|
+
ref: d,
|
2697
|
+
theme: g,
|
2698
|
+
children: o(/* @__PURE__ */ i(eo, {
|
2699
|
+
onSend: l,
|
2700
|
+
visible: s
|
2701
|
+
}))
|
2702
|
+
});
|
2703
|
+
}
|
2704
|
+
const to = 18 * 5;
|
2705
|
+
function Ve({
|
2706
|
+
text: e
|
2707
|
+
}) {
|
2708
|
+
const [t, a] = I(!0), [r, o] = I(!1), {
|
2709
|
+
t: n
|
2710
|
+
} = y(), l = V(null);
|
2711
|
+
return be(() => {
|
2712
|
+
l.current && l.current.scrollHeight > to && o(!0);
|
2713
|
+
}, [e]), /* @__PURE__ */ h("div", {
|
2714
|
+
children: [/* @__PURE__ */ i("div", {
|
2715
|
+
ref: l,
|
2716
|
+
className: `${t ? "csdk-line-clamp-5" : ""} csdk-whitespace-pre-wrap`,
|
2717
|
+
children: e
|
2718
|
+
}), r && /* @__PURE__ */ i("div", {
|
2719
|
+
className: "csdk-mt-3 csdk-flex csdk-justify-end",
|
2720
|
+
children: /* @__PURE__ */ i("div", {
|
2721
|
+
className: "csdk-text-ai-xs csdk-text-text-link csdk-cursor-pointer",
|
2722
|
+
onClick: () => a((d) => !d),
|
2723
|
+
children: n(t ? "ai.buttons.readMore" : "ai.buttons.collapse")
|
2724
|
+
})
|
2725
|
+
})]
|
2726
|
+
});
|
2727
|
+
}
|
2728
|
+
function ao({
|
2729
|
+
nlgRequest: e
|
2730
|
+
}) {
|
2731
|
+
const {
|
2732
|
+
data: t,
|
2733
|
+
isLoading: a,
|
2734
|
+
isError: r
|
2735
|
+
} = Qe(e), {
|
2736
|
+
t: o
|
2737
|
+
} = y();
|
2738
|
+
return a ? /* @__PURE__ */ i(Yt, {}) : r ? /* @__PURE__ */ i(P, {
|
2739
|
+
align: "left",
|
2740
|
+
children: o("ai.errors.unexpected")
|
2741
|
+
}) : /* @__PURE__ */ i(P, {
|
2742
|
+
align: "full",
|
2743
|
+
children: /* @__PURE__ */ i(Ve, {
|
2744
|
+
text: t ?? o("ai.errors.insightsNotAvailable")
|
2745
|
+
})
|
2746
|
+
});
|
2747
|
+
}
|
2748
|
+
function ro() {
|
2749
|
+
const {
|
2750
|
+
themeSettings: e
|
2751
|
+
} = k();
|
2752
|
+
return /* @__PURE__ */ i("svg", {
|
2753
|
+
width: "24",
|
2754
|
+
height: "25",
|
2755
|
+
viewBox: "0 0 24 25",
|
2756
|
+
fill: "none",
|
2757
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2758
|
+
children: /* @__PURE__ */ i("path", {
|
2759
|
+
fillRule: "evenodd",
|
2760
|
+
clipRule: "evenodd",
|
2761
|
+
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",
|
2762
|
+
fill: e.aiChat.icons.color
|
2763
|
+
})
|
2764
|
+
});
|
2765
|
+
}
|
2766
|
+
function io({
|
2767
|
+
onClick: e
|
2768
|
+
}) {
|
2769
|
+
const {
|
2770
|
+
t
|
2771
|
+
} = y();
|
2772
|
+
return /* @__PURE__ */ i(xe, {
|
2773
|
+
align: "left",
|
2774
|
+
onClick: e,
|
2775
|
+
children: /* @__PURE__ */ h("div", {
|
2776
|
+
className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
|
2777
|
+
children: [/* @__PURE__ */ i(ro, {}), t("ai.buttons.insights")]
|
2778
|
+
})
|
2779
|
+
});
|
2780
|
+
}
|
2781
|
+
var oo = qa("toLowerCase");
|
2782
|
+
const st = /* @__PURE__ */ u("div", {
|
2783
|
+
target: "es26a860",
|
2784
|
+
label: "FlexRow"
|
2785
|
+
})("display:flex;align-items:center;column-gap:10px;"), no = (e) => !!e && "aeiou".includes(e[0]);
|
2786
|
+
function lo({
|
2787
|
+
data: e,
|
2788
|
+
alwaysShowFeedback: t
|
2789
|
+
}) {
|
2790
|
+
const {
|
2791
|
+
chatMode: a = "analyze",
|
2792
|
+
enableInsights: r
|
2793
|
+
} = q(), {
|
2794
|
+
themeSettings: o
|
2795
|
+
} = k(), {
|
2796
|
+
queryTitle: n,
|
2797
|
+
chartRecommendations: l,
|
2798
|
+
jaql: d,
|
2799
|
+
userMsg: c
|
2800
|
+
} = e;
|
2801
|
+
console.debug(`JAQL for ${n}`, d), console.debug(`chart recommendations for ${n}`, l);
|
2802
|
+
const s = "chartType" in l ? l.chartType : "table";
|
2803
|
+
let g;
|
2804
|
+
no(s) ? g = `an ${s}` : g = `a ${s}`, s !== "table" && (g += " chart");
|
2805
|
+
const p = d.datasource.title, [m, x] = I(!1), w = _(() => {
|
2806
|
+
x((S) => !S);
|
2807
|
+
}, []), f = {
|
2808
|
+
jaql: {
|
2809
|
+
datasource: d.datasource,
|
2810
|
+
metadata: d.metadata
|
2811
|
+
}
|
2812
|
+
}, M = a === "analyze";
|
2813
|
+
return /* @__PURE__ */ h(N, {
|
2814
|
+
children: [/* @__PURE__ */ i(ct, {
|
2815
|
+
sourceId: p,
|
2816
|
+
data: e,
|
2817
|
+
type: "chats/nlq",
|
2818
|
+
buttonVisibility: t ? "always" : "onHover",
|
2819
|
+
renderContent: (S) => /* @__PURE__ */ h(N, {
|
2820
|
+
children: [/* @__PURE__ */ h(st, {
|
2821
|
+
children: [/* @__PURE__ */ i(qt, {
|
2822
|
+
align: "left",
|
2823
|
+
theme: o,
|
2824
|
+
children: c || `Here's ${g} showing ${oo(n)}.`
|
2825
|
+
}), S]
|
2826
|
+
}), M && /* @__PURE__ */ i(Ui, {
|
2827
|
+
content: e
|
2828
|
+
})]
|
2829
|
+
})
|
2830
|
+
}), r && /* @__PURE__ */ i(ct, {
|
2831
|
+
sourceId: p,
|
2832
|
+
data: f,
|
2833
|
+
type: "nlg/queryResult",
|
2834
|
+
buttonVisibility: m ? "onHover" : "never",
|
2835
|
+
renderContent: (S) => /* @__PURE__ */ h(N, {
|
2836
|
+
children: [/* @__PURE__ */ h(st, {
|
2837
|
+
children: [/* @__PURE__ */ i(io, {
|
2838
|
+
onClick: w
|
2839
|
+
}), S]
|
2840
|
+
}), m && /* @__PURE__ */ i(ao, {
|
2841
|
+
nlgRequest: f
|
2842
|
+
})]
|
2843
|
+
})
|
2844
|
+
})]
|
2845
|
+
});
|
2846
|
+
}
|
2847
|
+
function co({
|
2848
|
+
message: e,
|
2849
|
+
isLastMessage: t
|
2850
|
+
}) {
|
2851
|
+
if (Gt(e)) {
|
2852
|
+
const r = JSON.parse(e.content);
|
2853
|
+
return /* @__PURE__ */ i(lo, {
|
2854
|
+
data: r,
|
2855
|
+
alwaysShowFeedback: t
|
2856
|
+
});
|
2857
|
+
}
|
2858
|
+
const a = Xr(e) ? JSON.parse(e.content).answer : e.content;
|
2859
|
+
return /* @__PURE__ */ i(P, {
|
2860
|
+
align: e.role === "user" ? "right" : "left",
|
2861
|
+
children: a
|
2862
|
+
});
|
2863
|
+
}
|
2864
|
+
const so = /* @__PURE__ */ Aa(co), po = ({
|
2865
|
+
error: e,
|
2866
|
+
displayMessage: t
|
2867
|
+
}) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ i(P, {
|
2868
|
+
align: "left",
|
2869
|
+
children: t
|
2870
|
+
}));
|
2871
|
+
function go({
|
2872
|
+
messages: e
|
2873
|
+
}) {
|
2874
|
+
const {
|
2875
|
+
t
|
2876
|
+
} = y();
|
2877
|
+
return /* @__PURE__ */ i(N, {
|
2878
|
+
children: e.map((a, r) => /* @__PURE__ */ i(ya, {
|
2879
|
+
fallbackRender: (o) => po(A(v({}, o), {
|
2880
|
+
displayMessage: t("ai.errors.unexpected")
|
2881
|
+
})),
|
2882
|
+
children: /* @__PURE__ */ i(so, {
|
2883
|
+
message: a,
|
2884
|
+
isLastMessage: r === e.length - 1
|
2885
|
+
}, r)
|
2886
|
+
}, r))
|
2887
|
+
});
|
2888
|
+
}
|
2889
|
+
function Ut({
|
2890
|
+
color: e
|
2891
|
+
}) {
|
2892
|
+
return /* @__PURE__ */ i("svg", {
|
2893
|
+
width: "100%",
|
2894
|
+
height: "100%",
|
2895
|
+
viewBox: "0 0 4 8",
|
2896
|
+
fill: "none",
|
2897
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2898
|
+
children: /* @__PURE__ */ i("path", {
|
2899
|
+
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",
|
2900
|
+
fill: e
|
2901
|
+
})
|
2902
|
+
});
|
2903
|
+
}
|
2904
|
+
function uo({
|
2905
|
+
onClick: e,
|
2906
|
+
color: t
|
2907
|
+
}) {
|
2908
|
+
return /* @__PURE__ */ i("div", {
|
2909
|
+
"aria-label": "go back",
|
2910
|
+
className: "csdk-w-5 csdk-h-5 csdk-flex csdk-p-[4px] csdk-ml-[6px] csdk-cursor-pointer",
|
2911
|
+
onClick: e,
|
2912
|
+
children: /* @__PURE__ */ i(Ut, {
|
2913
|
+
color: t
|
2914
|
+
})
|
2915
|
+
});
|
2916
|
+
}
|
2917
|
+
const ho = /* @__PURE__ */ u("button", {
|
2918
|
+
target: "e1p0q0z20",
|
2919
|
+
label: "Button"
|
2920
|
+
})("font-size:inherit;line-height:inherit;box-sizing:border-box;border-width:1px;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;cursor:pointer;text-align:left;max-width:85%;font-family:", ({
|
2921
|
+
theme: e
|
2922
|
+
}) => e.typography.fontFamily, ";color:", ({
|
2923
|
+
theme: e
|
2924
|
+
}) => e.aiChat.suggestions.textColor, ";background-color:", ({
|
2925
|
+
theme: e
|
2926
|
+
}) => e.aiChat.suggestions.backgroundColor, ";border:", ({
|
2927
|
+
theme: e
|
2928
|
+
}) => e.aiChat.suggestions.border, ";border-radius:", ({
|
2929
|
+
theme: e
|
2930
|
+
}) => e.aiChat.suggestions.borderRadius, ";&:hover{background-color:", ({
|
2931
|
+
theme: e
|
2932
|
+
}) => e.aiChat.suggestions.hover.backgroundColor, ";color:", ({
|
2933
|
+
theme: e
|
2934
|
+
}) => e.aiChat.suggestions.hover.textColor, ";}", ({
|
2935
|
+
theme: e
|
2936
|
+
}) => {
|
2937
|
+
const {
|
2938
|
+
borderGradient: t,
|
2939
|
+
borderRadius: a
|
2940
|
+
} = e.aiChat.suggestions;
|
2941
|
+
if (t) {
|
2942
|
+
const [r, o] = t;
|
2943
|
+
return L`
|
2944
|
+
border: none;
|
2945
|
+
position: relative;
|
2946
|
+
border-radius: ${a};
|
2947
|
+
&:before {
|
2948
|
+
content: '';
|
2949
|
+
position: absolute;
|
2950
|
+
top: 0;
|
2951
|
+
left: 0;
|
2952
|
+
right: 0;
|
2953
|
+
bottom: 0;
|
2954
|
+
border-radius: ${a};
|
2955
|
+
border: 1px solid transparent;
|
2956
|
+
background: linear-gradient(30deg, ${r}, ${o}) border-box;
|
2957
|
+
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
2958
|
+
-webkit-mask-composite: destination-out;
|
2959
|
+
mask-composite: exclude;
|
2960
|
+
}
|
2961
|
+
`;
|
2962
|
+
}
|
2963
|
+
return "";
|
2964
|
+
});
|
2965
|
+
function pt({
|
2966
|
+
question: e,
|
2967
|
+
onClick: t
|
2968
|
+
}) {
|
2969
|
+
const {
|
2970
|
+
themeSettings: a
|
2971
|
+
} = k();
|
2972
|
+
return /* @__PURE__ */ i(ho, {
|
2973
|
+
onClick: t,
|
2974
|
+
theme: a,
|
2975
|
+
children: e
|
2976
|
+
});
|
2977
|
+
}
|
2978
|
+
const mo = /* @__PURE__ */ u("div", {
|
2979
|
+
target: "eu11cc50",
|
2980
|
+
label: "ListContainer"
|
2981
|
+
})("display:flex;flex-direction:column;align-items:flex-start;row-gap:", ({
|
2982
|
+
theme: e
|
2983
|
+
}) => e.aiChat.suggestions.gap, ";");
|
2984
|
+
function bo({
|
2985
|
+
questions: e,
|
2986
|
+
onSelection: t
|
2987
|
+
}) {
|
2988
|
+
const {
|
2989
|
+
t: a
|
2990
|
+
} = y(), [r, o] = I(!0), n = T(() => r && e.length > 5 ? e.slice(0, 4) : e, [e, r]), {
|
2991
|
+
themeSettings: l
|
2992
|
+
} = k();
|
2993
|
+
return /* @__PURE__ */ h(mo, {
|
2994
|
+
"aria-label": "list of suggested questions",
|
2995
|
+
theme: l,
|
2996
|
+
children: [n.map((d) => /* @__PURE__ */ i(pt, {
|
2997
|
+
question: d,
|
2998
|
+
onClick: () => t(d)
|
2999
|
+
}, d)), n.length < e.length && /* @__PURE__ */ i(pt, {
|
3000
|
+
question: a("ai.buttons.seeMore"),
|
3001
|
+
onClick: () => o(!1)
|
3002
|
+
})]
|
3003
|
+
});
|
3004
|
+
}
|
3005
|
+
const fo = /* @__PURE__ */ u("div", {
|
3006
|
+
target: "ebwb3nc0",
|
3007
|
+
label: "Row"
|
3008
|
+
})("width:283px;height:32px;border-radius:10px;background:", ({
|
3009
|
+
theme: e
|
3010
|
+
}) => {
|
3011
|
+
const [t, a] = e.aiChat.suggestions.loadingGradient;
|
3012
|
+
return `linear-gradient(
|
3013
|
+
to right,
|
3014
|
+
${t} 0%,
|
3015
|
+
${a} 50%,
|
3016
|
+
${t} 100%
|
3017
|
+
)`;
|
3018
|
+
}, ";background-size:200% auto;animation:gradient 2s linear infinite;@keyframes gradient{0%{background-position:0 0;}100%{background-position:-200% 0;}}"), xo = /* @__PURE__ */ u("div", {
|
3019
|
+
target: "ebwb3nc1",
|
3020
|
+
label: "SkeletonContainer"
|
3021
|
+
})("display:flex;flex-direction:column;row-gap:1rem;");
|
3022
|
+
function ko() {
|
3023
|
+
const {
|
3024
|
+
themeSettings: e
|
3025
|
+
} = k();
|
3026
|
+
return /* @__PURE__ */ i(xo, {
|
3027
|
+
children: Array.from({
|
3028
|
+
length: 3
|
3029
|
+
}, (t, a) => /* @__PURE__ */ i(fo, {
|
3030
|
+
theme: e
|
3031
|
+
}, a))
|
3032
|
+
});
|
3033
|
+
}
|
3034
|
+
function wo({
|
3035
|
+
questions: e,
|
3036
|
+
isLoading: t,
|
3037
|
+
onSelection: a
|
3038
|
+
}) {
|
3039
|
+
const r = e.length > 0, {
|
3040
|
+
suggestionsWelcomeText: o
|
3041
|
+
} = q();
|
3042
|
+
return t ? /* @__PURE__ */ i(ko, {}) : r ? /* @__PURE__ */ h(N, {
|
3043
|
+
children: [o && /* @__PURE__ */ i(P, {
|
3044
|
+
align: "left",
|
3045
|
+
children: o
|
3046
|
+
}), /* @__PURE__ */ i(bo, {
|
3047
|
+
onSelection: a,
|
3048
|
+
questions: e
|
3049
|
+
})]
|
3050
|
+
}) : null;
|
3051
|
+
}
|
3052
|
+
const yo = /* @__PURE__ */ u("div", {
|
3053
|
+
target: "ew7avl30",
|
3054
|
+
label: "ToolbarContainer"
|
3055
|
+
})("flex:0 0 80px;padding-left:14px;padding-right:14px;display:flex;align-items:center;position:relative;background-color:", ({
|
3056
|
+
style: e
|
3057
|
+
}) => e.backgroundColor, ";"), _o = /* @__PURE__ */ u("div", {
|
3058
|
+
target: "ew7avl31",
|
3059
|
+
label: "ToolbarTitle"
|
3060
|
+
})("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({
|
3061
|
+
style: e
|
3062
|
+
}) => e.textColor, ";"), Ft = /* @__PURE__ */ mt(function({
|
3063
|
+
title: e,
|
3064
|
+
leftNav: t,
|
3065
|
+
rightNav: a,
|
3066
|
+
style: r
|
3067
|
+
}, o) {
|
3068
|
+
return /* @__PURE__ */ h(yo, {
|
3069
|
+
ref: o,
|
3070
|
+
style: r,
|
3071
|
+
children: [t, /* @__PURE__ */ i(_o, {
|
3072
|
+
style: r,
|
3073
|
+
children: e
|
3074
|
+
}), a && /* @__PURE__ */ i("div", {
|
3075
|
+
className: "csdk-ml-auto",
|
3076
|
+
children: a
|
3077
|
+
})]
|
3078
|
+
});
|
3079
|
+
}), Co = /* @__PURE__ */ u("div", {
|
3080
|
+
target: "e14yc7id0",
|
3081
|
+
label: "AiDisclaimerContainer"
|
3082
|
+
})("text-align:center;font-size:11px;line-height:18px;white-space:pre-wrap;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;color:", ({
|
3083
|
+
theme: e
|
3084
|
+
}) => e.aiChat.secondaryTextColor, ";");
|
3085
|
+
function vo({
|
3086
|
+
theme: e
|
3087
|
+
}) {
|
3088
|
+
const {
|
3089
|
+
t
|
3090
|
+
} = y();
|
3091
|
+
return /* @__PURE__ */ h(Co, {
|
3092
|
+
theme: e,
|
3093
|
+
children: [/* @__PURE__ */ i("div", {
|
3094
|
+
children: t("ai.disclaimer.poweredByAi")
|
3095
|
+
}), /* @__PURE__ */ h("div", {
|
3096
|
+
children: [" ", t("ai.disclaimer.rateRequest")]
|
3097
|
+
})]
|
3098
|
+
});
|
3099
|
+
}
|
3100
|
+
const Mo = /* @__PURE__ */ u("div", {
|
3101
|
+
target: "e103xz8p0",
|
3102
|
+
label: "Container"
|
3103
|
+
})("font-size:inherit;line-height:inherit;padding-left:16px;padding-right:16px;padding-top:4px;padding-bottom:4px;border-radius:16px;color:", ({
|
3104
|
+
theme: e
|
3105
|
+
}) => e.aiChat.suggestions.textColor, ";background-color:", ({
|
3106
|
+
theme: e
|
3107
|
+
}) => e.aiChat.suggestions.backgroundColor, ";"), Vt = () => {
|
3108
|
+
const {
|
3109
|
+
t: e
|
3110
|
+
} = y(), {
|
3111
|
+
themeSettings: t
|
3112
|
+
} = k();
|
3113
|
+
return /* @__PURE__ */ i(Mo, {
|
3114
|
+
theme: t,
|
3115
|
+
children: e("ai.betaLabel")
|
3116
|
+
});
|
3117
|
+
};
|
3118
|
+
function So() {
|
3119
|
+
const {
|
3120
|
+
themeSettings: e
|
3121
|
+
} = k();
|
3122
|
+
return /* @__PURE__ */ i("svg", {
|
3123
|
+
width: "24",
|
3124
|
+
height: "24",
|
3125
|
+
viewBox: "0 0 24 24",
|
3126
|
+
fill: "none",
|
3127
|
+
xmlns: "http://www.w3.org/2000/svg",
|
3128
|
+
children: /* @__PURE__ */ i("path", {
|
3129
|
+
fillRule: "evenodd",
|
3130
|
+
clipRule: "evenodd",
|
3131
|
+
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",
|
3132
|
+
fill: e.aiChat.primaryTextColor
|
3133
|
+
})
|
3134
|
+
});
|
3135
|
+
}
|
3136
|
+
const Io = (e, t) => {
|
3137
|
+
const a = new Za(e);
|
3138
|
+
return a.alpha = t, a;
|
3139
|
+
}, Do = /* @__PURE__ */ u("div", {
|
3140
|
+
target: "e1rxvpki0",
|
3141
|
+
label: "Container"
|
3142
|
+
})("font-size:inherit;line-height:inherit;padding-left:8px;padding-right:8px;padding-top:4px;border-radius:16px;margin-bottom:4px;box-shadow:", ({
|
3143
|
+
theme: e
|
3144
|
+
}) => `0 4px 8px 0 ${Io(e.aiChat.primaryTextColor, 0.2)}`, ";cursor:pointer;color:", ({
|
3145
|
+
theme: e
|
3146
|
+
}) => e.aiChat.clickableMessages.textColor, ";background-color:", ({
|
3147
|
+
theme: e
|
3148
|
+
}) => e.aiChat.clickableMessages.backgroundColor, ";&:hover{color:", ({
|
3149
|
+
theme: e
|
3150
|
+
}) => e.aiChat.clickableMessages.hover.textColor, ";background-color:", ({
|
3151
|
+
theme: e
|
3152
|
+
}) => e.aiChat.clickableMessages.hover.backgroundColor, ";box-shadow:none;"), Ao = ({
|
3153
|
+
onClick: e
|
3154
|
+
}) => {
|
3155
|
+
const {
|
3156
|
+
themeSettings: t
|
3157
|
+
} = k();
|
3158
|
+
return /* @__PURE__ */ i(Do, {
|
3159
|
+
theme: t,
|
3160
|
+
onClick: e,
|
3161
|
+
children: /* @__PURE__ */ i(So, {})
|
3162
|
+
});
|
3163
|
+
}, Lo = ({
|
3164
|
+
isVisible: e,
|
3165
|
+
onClick: t,
|
3166
|
+
anchorElement: a
|
3167
|
+
}) => /* @__PURE__ */ i(bt, {
|
3168
|
+
anchorEl: a,
|
3169
|
+
open: e,
|
3170
|
+
placement: "top",
|
3171
|
+
sx: {
|
3172
|
+
zIndex: 2
|
3173
|
+
},
|
3174
|
+
children: /* @__PURE__ */ i(Ao, {
|
3175
|
+
onClick: t
|
3176
|
+
})
|
3177
|
+
}), No = /* @__PURE__ */ u("div", {
|
3178
|
+
target: "e145urtk0",
|
3179
|
+
label: "ChatBody"
|
3180
|
+
})("display:flex;flex-direction:column;row-gap:", ({
|
3181
|
+
theme: e
|
3182
|
+
}) => e.aiChat.body.gapBetweenMessages, ";overflow-y:scroll;padding-left:", ({
|
3183
|
+
theme: e
|
3184
|
+
}) => e.aiChat.body.paddingLeft, ";padding-right:", ({
|
3185
|
+
theme: e
|
3186
|
+
}) => e.aiChat.body.paddingRight, ";padding-top:", ({
|
3187
|
+
theme: e
|
3188
|
+
}) => e.aiChat.body.paddingTop, ";padding-bottom:", ({
|
3189
|
+
theme: e
|
3190
|
+
}) => e.aiChat.body.paddingBottom, ";flex:initial;height:100%;"), To = /* @__PURE__ */ u("div", {
|
3191
|
+
target: "e145urtk1",
|
3192
|
+
label: "ChatFooter"
|
3193
|
+
})("padding-left:", ({
|
3194
|
+
theme: e
|
3195
|
+
}) => e.aiChat.footer.paddingLeft, ";padding-right:", ({
|
3196
|
+
theme: e
|
3197
|
+
}) => e.aiChat.footer.paddingRight, ";padding-top:", ({
|
3198
|
+
theme: e
|
3199
|
+
}) => e.aiChat.footer.paddingTop, ";padding-bottom:", ({
|
3200
|
+
theme: e
|
3201
|
+
}) => e.aiChat.footer.paddingBottom, ";display:flex;flex-direction:column;row-gap:6px;"), jo = /* @__PURE__ */ u("div", {
|
3202
|
+
target: "e145urtk2",
|
3203
|
+
label: "FollowupQuestionsContainer"
|
3204
|
+
})("display:flex;flex-direction:column;row-gap:", ({
|
3205
|
+
theme: e
|
3206
|
+
}) => e.aiChat.suggestions.gap, ";");
|
3207
|
+
function Eo({
|
3208
|
+
contextTitle: e,
|
3209
|
+
onGoBack: t,
|
3210
|
+
contextDetails: a
|
3211
|
+
}) {
|
3212
|
+
var r, o, n;
|
3213
|
+
const {
|
3214
|
+
t: l
|
3215
|
+
} = y(), {
|
3216
|
+
enableFollowupQuestions: d,
|
3217
|
+
enableHeader: c,
|
3218
|
+
numOfRecentPrompts: s,
|
3219
|
+
numOfRecommendations: g
|
3220
|
+
} = q(), {
|
3221
|
+
themeSettings: p
|
3222
|
+
} = k(), {
|
3223
|
+
data: m,
|
3224
|
+
isLoading: x,
|
3225
|
+
isError: w
|
3226
|
+
} = Gr({
|
3227
|
+
contextTitle: e,
|
3228
|
+
count: g
|
3229
|
+
}), f = T(() => m == null ? void 0 : m.map((D) => D.nlqPrompt), [m]), {
|
3230
|
+
history: M,
|
3231
|
+
lastNlqResponse: S,
|
3232
|
+
isAwaitingResponse: E,
|
3233
|
+
sendMessage: C,
|
3234
|
+
isLoading: O,
|
3235
|
+
chatId: H,
|
3236
|
+
lastError: Z
|
3237
|
+
} = $r(e, a), {
|
3238
|
+
mutate: B,
|
3239
|
+
isLoading: Ce
|
3240
|
+
} = Wt(H), [ge, Q] = I(!1), [$, ae] = I(!1), ve = () => Q(!0), re = () => Q(!1), ie = () => {
|
3241
|
+
B(), re();
|
3242
|
+
}, j = V(null), R = V(null), Kt = () => {
|
3243
|
+
if (!(j != null && j.current))
|
3244
|
+
return;
|
3245
|
+
const {
|
3246
|
+
scrollTop: D,
|
3247
|
+
clientHeight: Y,
|
3248
|
+
scrollHeight: Xe
|
3249
|
+
} = j.current;
|
3250
|
+
if (D === void 0 || Y === void 0 || Xe === void 0)
|
3251
|
+
return;
|
3252
|
+
const $e = Xe - D - Y > Y / 2;
|
3253
|
+
$ !== $e && ae($e);
|
3254
|
+
};
|
3255
|
+
be(() => {
|
3256
|
+
j.current && (j.current.scrollTop = j.current.scrollHeight);
|
3257
|
+
}, [M, ge, E]);
|
3258
|
+
const ea = V(null), Je = c ? /* @__PURE__ */ i(Ft, {
|
3259
|
+
ref: ea,
|
3260
|
+
title: e,
|
3261
|
+
leftNav: t && /* @__PURE__ */ i(uo, {
|
3262
|
+
onClick: t,
|
3263
|
+
color: p.aiChat.header.textColor
|
3264
|
+
}),
|
3265
|
+
rightNav: /* @__PURE__ */ i(Vt, {}),
|
3266
|
+
style: p.aiChat.header
|
3267
|
+
}) : null, ta = T(() => [...new Set(M.filter((D) => D.role === "user").filter((D) => !(f != null && f.includes(D.content))).map((D) => D.content).reverse())].slice(0, s), [M, s, f]);
|
3268
|
+
return (Z == null ? void 0 : Z.message) === l("ai.errors.chatUnavailable") ? /* @__PURE__ */ h(N, {
|
3269
|
+
children: [c && Je, /* @__PURE__ */ i(Ht, {
|
3270
|
+
text: Z.message
|
3271
|
+
})]
|
3272
|
+
}) : /* @__PURE__ */ h(N, {
|
3273
|
+
children: [Je, /* @__PURE__ */ h(No, {
|
3274
|
+
ref: j,
|
3275
|
+
theme: p,
|
3276
|
+
onScroll: Kt,
|
3277
|
+
children: [/* @__PURE__ */ i(Lo, {
|
3278
|
+
isVisible: $,
|
3279
|
+
anchorElement: R.current,
|
3280
|
+
onClick: () => {
|
3281
|
+
var D, Y;
|
3282
|
+
(Y = j.current) == null || Y.scroll({
|
3283
|
+
top: (D = j.current) == null ? void 0 : D.scrollHeight,
|
3284
|
+
behavior: "smooth"
|
3285
|
+
});
|
3286
|
+
}
|
3287
|
+
}), /* @__PURE__ */ i(_i, {}), /* @__PURE__ */ i(wo, {
|
3288
|
+
questions: f || [],
|
3289
|
+
isLoading: x,
|
3290
|
+
onSelection: C
|
3291
|
+
}), Z && /* @__PURE__ */ i(P, {
|
3292
|
+
align: "left",
|
3293
|
+
children: Z.message
|
3294
|
+
}), O ? /* @__PURE__ */ i(ye, {}) : /* @__PURE__ */ i(go, {
|
3295
|
+
messages: M
|
3296
|
+
}), d && S && ((o = (r = S.followupQuestions) == null ? void 0 : r.length) != null ? o : 0) > 0 && /* @__PURE__ */ i(jo, {
|
3297
|
+
theme: p,
|
3298
|
+
children: (n = S.followupQuestions) == null ? void 0 : n.slice(0, 2).map((D, Y) => /* @__PURE__ */ i(xe, {
|
3299
|
+
align: "left",
|
3300
|
+
onClick: () => {
|
3301
|
+
C(D);
|
3302
|
+
},
|
3303
|
+
children: /* @__PURE__ */ i("div", {
|
3304
|
+
className: "csdk-py-[7px] csdk-px-4",
|
3305
|
+
children: D
|
3306
|
+
})
|
3307
|
+
}, Y))
|
3308
|
+
}), (E || Ce) && /* @__PURE__ */ i(Yt, {}), ge && /* @__PURE__ */ i(Di, {
|
3309
|
+
onCancel: re,
|
3310
|
+
onConfirm: ie
|
3311
|
+
})]
|
3312
|
+
}), /* @__PURE__ */ h(To, {
|
3313
|
+
ref: R,
|
3314
|
+
theme: p,
|
3315
|
+
children: [/* @__PURE__ */ i(wi, {
|
3316
|
+
onSendMessage: C,
|
3317
|
+
disabled: E || O,
|
3318
|
+
onClearHistoryClick: ve,
|
3319
|
+
suggestions: f || [],
|
3320
|
+
recentPrompts: ta,
|
3321
|
+
isLoading: x || O,
|
3322
|
+
recommendationsError: w,
|
3323
|
+
onChange: re
|
3324
|
+
}), /* @__PURE__ */ i(vo, {
|
3325
|
+
theme: p
|
3326
|
+
})]
|
3327
|
+
})]
|
3328
|
+
});
|
3329
|
+
}
|
3330
|
+
const zo = /* @__PURE__ */ u("button", {
|
3331
|
+
target: "e5a38pw0",
|
3332
|
+
label: "Container"
|
3333
|
+
})("font-family:", ({
|
3334
|
+
theme: e
|
3335
|
+
}) => e.typography.fontFamily, ";padding:20px;border:none;display:flex;align-items:center;justify-content:space-between;text-align:left;border-radius:15px;box-shadow:0px 1px 2px rgba(9,9,10,0.1),0px 2px 4px rgba(9,9,10,0.1);cursor:pointer;background-color:", ({
|
3336
|
+
theme: e
|
3337
|
+
}) => e.aiChat.dataTopics.items.backgroundColor, ";"), Oo = /* @__PURE__ */ u("div", {
|
3338
|
+
target: "e5a38pw1",
|
3339
|
+
label: "Title"
|
3340
|
+
})("font-size:1.05rem;line-height:28px;color:", ({
|
3341
|
+
theme: e
|
3342
|
+
}) => e.aiChat.dataTopics.items.textColor, ";"), Zo = /* @__PURE__ */ u("div", {
|
3343
|
+
target: "e5a38pw2",
|
3344
|
+
label: "Description"
|
3345
|
+
})("font-size:", ({
|
3346
|
+
theme: e
|
3347
|
+
}) => e.aiChat.primaryFontSize[0], ";line-height:", ({
|
3348
|
+
theme: e
|
3349
|
+
}) => e.aiChat.primaryFontSize[1], ";color:", ({
|
3350
|
+
theme: e
|
3351
|
+
}) => kt(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"), Ro = /* @__PURE__ */ u("div", {
|
3352
|
+
target: "e5a38pw3",
|
3353
|
+
label: "IconContainer"
|
3354
|
+
})("width:16px;height:16px;transform:rotate(180deg);");
|
3355
|
+
function Wo(e) {
|
3356
|
+
const {
|
3357
|
+
title: t,
|
3358
|
+
description: a,
|
3359
|
+
onClick: r
|
3360
|
+
} = e, {
|
3361
|
+
themeSettings: o
|
3362
|
+
} = k();
|
3363
|
+
return /* @__PURE__ */ h(zo, {
|
3364
|
+
onClick: r,
|
3365
|
+
theme: o,
|
3366
|
+
children: [/* @__PURE__ */ h("div", {
|
3367
|
+
children: [/* @__PURE__ */ i(Oo, {
|
3368
|
+
theme: o,
|
3369
|
+
children: t
|
3370
|
+
}), /* @__PURE__ */ i(Zo, {
|
3371
|
+
theme: o,
|
3372
|
+
children: a
|
3373
|
+
})]
|
3374
|
+
}), /* @__PURE__ */ i(Ro, {
|
3375
|
+
children: /* @__PURE__ */ i(Ut, {
|
3376
|
+
color: o.aiChat.icons.color
|
3377
|
+
})
|
3378
|
+
})]
|
3379
|
+
});
|
3380
|
+
}
|
3381
|
+
const Go = /* @__PURE__ */ u("div", {
|
3382
|
+
target: "emrh5y30",
|
3383
|
+
label: "FlexContainer"
|
3384
|
+
})("padding:20px;display:flex;flex-direction:column;gap:20px;overflow:auto;"), qo = /* @__PURE__ */ u("div", {
|
3385
|
+
target: "emrh5y31",
|
3386
|
+
label: "Title"
|
3387
|
+
})("font-size:24px;line-height:32px;font-weight:600;text-align:center;padding-bottom:4px;color:", ({
|
3388
|
+
theme: e
|
3389
|
+
}) => e.aiChat.primaryTextColor, ";"), Ho = /* @__PURE__ */ u("div", {
|
3390
|
+
target: "emrh5y32",
|
3391
|
+
label: "Subtitle"
|
3392
|
+
})("font-size:15px;line-height:22px;color:", ({
|
3393
|
+
theme: e
|
3394
|
+
}) => e.aiChat.primaryTextColor, ";");
|
3395
|
+
function Yo(e) {
|
3396
|
+
const {
|
3397
|
+
dataTopics: t
|
3398
|
+
} = e, {
|
3399
|
+
themeSettings: a
|
3400
|
+
} = k(), {
|
3401
|
+
t: r
|
3402
|
+
} = y();
|
3403
|
+
return /* @__PURE__ */ h(Go, {
|
3404
|
+
children: [/* @__PURE__ */ i(qo, {
|
3405
|
+
theme: a,
|
3406
|
+
children: r("ai.dataTopics")
|
3407
|
+
}), /* @__PURE__ */ h(Ho, {
|
3408
|
+
theme: a,
|
3409
|
+
children: [r("ai.chatbotDescription"), /* @__PURE__ */ i("br", {}), /* @__PURE__ */ i("br", {}), r("ai.topicSelectPrompt")]
|
3410
|
+
}), t.map((o) => /* @__PURE__ */ _a(Wo, A(v({}, o), {
|
3411
|
+
key: o.title
|
3412
|
+
})))]
|
3413
|
+
});
|
3414
|
+
}
|
3415
|
+
const Po = "#000000", Bo = "#FFFFFF";
|
3416
|
+
function Qo({
|
3417
|
+
isDarkBackground: e = !1
|
3418
|
+
}) {
|
3419
|
+
const t = e ? Bo : Po;
|
3420
|
+
return /* @__PURE__ */ h("svg", {
|
3421
|
+
width: "32",
|
3422
|
+
height: "32",
|
3423
|
+
viewBox: "0 0 500 504",
|
3424
|
+
fill: "none",
|
3425
|
+
xmlns: "http://www.w3.org/2000/svg",
|
3426
|
+
children: [/* @__PURE__ */ i("path", {
|
3427
|
+
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",
|
3428
|
+
fill: t
|
3429
|
+
}), /* @__PURE__ */ i("path", {
|
3430
|
+
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",
|
3431
|
+
fill: t
|
3432
|
+
}), /* @__PURE__ */ i("path", {
|
3433
|
+
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",
|
3434
|
+
fill: t
|
3435
|
+
}), /* @__PURE__ */ i("path", {
|
3436
|
+
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",
|
3437
|
+
fill: t
|
3438
|
+
}), /* @__PURE__ */ i("path", {
|
3439
|
+
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",
|
3440
|
+
fill: t
|
3441
|
+
}), /* @__PURE__ */ i("path", {
|
3442
|
+
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",
|
3443
|
+
fill: t
|
3444
|
+
}), /* @__PURE__ */ i("path", {
|
3445
|
+
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",
|
3446
|
+
fill: t
|
3447
|
+
}), /* @__PURE__ */ i("path", {
|
3448
|
+
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",
|
3449
|
+
fill: t
|
3450
|
+
}), /* @__PURE__ */ i("path", {
|
3451
|
+
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",
|
3452
|
+
fill: t
|
3453
|
+
}), /* @__PURE__ */ i("path", {
|
3454
|
+
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",
|
3455
|
+
fill: t
|
3456
|
+
}), /* @__PURE__ */ i("path", {
|
3457
|
+
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",
|
3458
|
+
fill: t
|
3459
|
+
}), /* @__PURE__ */ i("path", {
|
3460
|
+
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",
|
3461
|
+
fill: t
|
3462
|
+
}), /* @__PURE__ */ i("path", {
|
3463
|
+
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",
|
3464
|
+
fill: t
|
3465
|
+
}), /* @__PURE__ */ i("path", {
|
3466
|
+
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",
|
3467
|
+
fill: t
|
3468
|
+
}), /* @__PURE__ */ i("path", {
|
3469
|
+
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",
|
3470
|
+
fill: t
|
3471
|
+
}), /* @__PURE__ */ i("path", {
|
3472
|
+
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",
|
3473
|
+
fill: t
|
3474
|
+
})]
|
3475
|
+
});
|
3476
|
+
}
|
3477
|
+
const Uo = /* @__PURE__ */ u("div", {
|
3478
|
+
target: "ecj9gfs0",
|
3479
|
+
label: "LogoContainer"
|
3480
|
+
})("margin-left:14px;margin-top:3px;"), Fo = /* @__PURE__ */ u("div", {
|
3481
|
+
target: "ecj9gfs1",
|
3482
|
+
label: "DataTopicsContainer"
|
3483
|
+
})("display:flex;flex-direction:column;justify-content:top;overflow:hidden;height:100%;background-color:", ({
|
3484
|
+
theme: e
|
3485
|
+
}) => e.aiChat.dataTopics.backgroundColor, ";");
|
3486
|
+
function Vo({
|
3487
|
+
dataTopicsList: e,
|
3488
|
+
onDataTopicClick: t
|
3489
|
+
}) {
|
3490
|
+
const {
|
3491
|
+
enableHeader: a
|
3492
|
+
} = q(), {
|
3493
|
+
themeSettings: r
|
3494
|
+
} = k(), {
|
3495
|
+
t: o
|
3496
|
+
} = y(), n = T(() => e == null ? void 0 : e.map((d) => ({
|
3497
|
+
title: d,
|
3498
|
+
onClick: () => t(d)
|
3499
|
+
})), [e, t]), l = xa(ka(r.aiChat.header.backgroundColor)) > 0.5;
|
3500
|
+
return /* @__PURE__ */ h(N, {
|
3501
|
+
children: [a ? /* @__PURE__ */ i(Ft, {
|
3502
|
+
title: o("ai.analyticsChatbot"),
|
3503
|
+
leftNav: /* @__PURE__ */ i(Uo, {
|
3504
|
+
children: /* @__PURE__ */ i(Qo, {
|
3505
|
+
isDarkBackground: l
|
3506
|
+
})
|
3507
|
+
}),
|
3508
|
+
rightNav: /* @__PURE__ */ i(Vt, {}),
|
3509
|
+
style: r.aiChat.header
|
3510
|
+
}) : null, /* @__PURE__ */ h(Fo, {
|
3511
|
+
theme: r,
|
3512
|
+
children: [!n && /* @__PURE__ */ i(ye, {}), n && /* @__PURE__ */ i(Yo, {
|
3513
|
+
dataTopics: n
|
3514
|
+
})]
|
3515
|
+
})]
|
3516
|
+
});
|
3517
|
+
}
|
3518
|
+
function Jo() {
|
3519
|
+
const [e, t] = I(), [a, r] = I(), {
|
3520
|
+
data: o,
|
3521
|
+
fetchStatus: n
|
3522
|
+
} = Pr(), {
|
3523
|
+
dataTopicsList: l,
|
3524
|
+
contextDetails: d
|
3525
|
+
} = q(), {
|
3526
|
+
t: c
|
3527
|
+
} = y(), s = c("ai.errors.noAvailableDataTopics"), g = _((w) => {
|
3528
|
+
w.length ? w.length === 1 && (r(void 0), t(w[0])) : r(s);
|
3529
|
+
}, [s]), p = T(() => {
|
3530
|
+
if (o && n === "idle") {
|
3531
|
+
const w = (l != null && l.length ? o == null ? void 0 : o.filter((f) => l == null ? void 0 : l.includes(f.title)) : o).map((f) => f.title);
|
3532
|
+
return g(w), w;
|
3533
|
+
}
|
3534
|
+
return [];
|
3535
|
+
}, [o, n, l, g]), m = de(), x = _(() => {
|
3536
|
+
r(void 0), m.invalidateQueries(["getDataTopics"]);
|
3537
|
+
}, [m]);
|
3538
|
+
return a ? /* @__PURE__ */ i(Ht, {
|
3539
|
+
text: a,
|
3540
|
+
action: {
|
3541
|
+
text: c("ai.buttons.refresh"),
|
3542
|
+
onClick: x
|
3543
|
+
}
|
3544
|
+
}) : p.length === 1 && !e ? /* @__PURE__ */ i(ye, {}) : e ? /* @__PURE__ */ i(Eo, {
|
3545
|
+
contextTitle: e,
|
3546
|
+
contextDetails: d,
|
3547
|
+
onGoBack: p.length === 1 ? void 0 : () => t(void 0)
|
3548
|
+
}) : /* @__PURE__ */ i(Vo, {
|
3549
|
+
dataTopicsList: p,
|
3550
|
+
onDataTopicClick: (w) => t(w)
|
3551
|
+
});
|
3552
|
+
}
|
3553
|
+
const Xo = Ze({
|
3554
|
+
componentName: "Chatbot"
|
3555
|
+
})((e) => {
|
3556
|
+
const {
|
3557
|
+
width: t,
|
3558
|
+
height: a,
|
3559
|
+
config: r
|
3560
|
+
} = e, {
|
3561
|
+
themeSettings: o
|
3562
|
+
} = k();
|
3563
|
+
return /* @__PURE__ */ i(qr, {
|
3564
|
+
value: r ?? {},
|
3565
|
+
children: /* @__PURE__ */ i(ri, {
|
3566
|
+
id: "csdk-chatbot-frame",
|
3567
|
+
width: t,
|
3568
|
+
height: a,
|
3569
|
+
theme: o,
|
3570
|
+
tabIndex: 0,
|
3571
|
+
children: /* @__PURE__ */ i(Jo, {})
|
3572
|
+
})
|
3573
|
+
});
|
3574
|
+
}), $o = Ze({
|
3575
|
+
componentName: "GetNlgInsights"
|
3576
|
+
})(function(e) {
|
3577
|
+
const {
|
3578
|
+
data: t,
|
3579
|
+
isLoading: a,
|
3580
|
+
isError: r
|
3581
|
+
} = Qe(e), {
|
3582
|
+
t: o
|
3583
|
+
} = y();
|
3584
|
+
if (r)
|
3585
|
+
return /* @__PURE__ */ i(N, {
|
3586
|
+
children: o("ai.errors.unexpected")
|
3587
|
+
});
|
3588
|
+
const n = t ?? o("ai.errors.insightsNotAvailable");
|
3589
|
+
return /* @__PURE__ */ i(Ve, {
|
3590
|
+
text: a ? "Loading..." : n
|
3591
|
+
});
|
3592
|
+
});
|
3593
|
+
Ze({
|
3594
|
+
componentName: "GetNlgQueryResult"
|
3595
|
+
})(function(e) {
|
3596
|
+
const {
|
3597
|
+
data: t,
|
3598
|
+
isLoading: a,
|
3599
|
+
isError: r
|
3600
|
+
} = Qe(e), {
|
3601
|
+
t: o
|
3602
|
+
} = y();
|
3603
|
+
if (r)
|
3604
|
+
return /* @__PURE__ */ i(N, {
|
3605
|
+
children: o("ai.errors.unexpected")
|
3606
|
+
});
|
3607
|
+
const n = t ?? o("ai.errors.insightsNotAvailable");
|
3608
|
+
return /* @__PURE__ */ i(Ve, {
|
3609
|
+
text: a ? "Loading..." : n
|
3610
|
+
});
|
3611
|
+
});
|
3612
|
+
const Ko = new ut({
|
3613
|
+
defaultOptions: {
|
3614
|
+
queries: {
|
3615
|
+
refetchOnWindowFocus: !1,
|
3616
|
+
refetchOnMount: !1
|
3617
|
+
}
|
3618
|
+
}
|
3619
|
+
});
|
3620
|
+
function en({
|
3621
|
+
children: e,
|
3622
|
+
context: t
|
3623
|
+
}) {
|
3624
|
+
return /* @__PURE__ */ i(Zr, {
|
3625
|
+
children: /* @__PURE__ */ i(Et.Provider, {
|
3626
|
+
value: t == null ? void 0 : t.api,
|
3627
|
+
children: /* @__PURE__ */ i(Ca, {
|
3628
|
+
client: Ko,
|
3629
|
+
children: e
|
3630
|
+
})
|
3631
|
+
})
|
3632
|
+
});
|
3633
|
+
}
|
3634
|
+
(function() {
|
3635
|
+
try {
|
3636
|
+
if (typeof document < "u") {
|
3637
|
+
var e = document.createElement("style");
|
3638
|
+
e.appendChild(document.createTextNode('@charset "UTF-8";.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-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}._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}[class|=csdk],[class|=csdk]:before,[class|=csdk]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#d5d5d5;font-family:inherit}.csdk-accessible button:focus-visible,.csdk-accessible a:focus-visible,.csdk-accessible textarea:focus-visible,.csdk-accessible select:focus-visible,.csdk-accessible input:focus-visible:not(.PrivateSwitchBase-input),.csdk-accessible [tabindex]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.csdk-accessible .MuiTouchRipple-root{display:none}:root{--csdk-tw-border-spacing-x: 0;--csdk-tw-border-spacing-y: 0;--csdk-tw-translate-x: 0;--csdk-tw-translate-y: 0;--csdk-tw-rotate: 0;--csdk-tw-skew-x: 0;--csdk-tw-skew-y: 0;--csdk-tw-scale-x: 1;--csdk-tw-scale-y: 1;--csdk-tw-pan-x: ;--csdk-tw-pan-y: ;--csdk-tw-pinch-zoom: ;--csdk-tw-scroll-snap-strictness: proximity;--csdk-tw-gradient-from-position: ;--csdk-tw-gradient-via-position: ;--csdk-tw-gradient-to-position: ;--csdk-tw-ordinal: ;--csdk-tw-slashed-zero: ;--csdk-tw-numeric-figure: ;--csdk-tw-numeric-spacing: ;--csdk-tw-numeric-fraction: ;--csdk-tw-ring-inset: ;--csdk-tw-ring-offset-width: 0px;--csdk-tw-ring-offset-color: #fff;--csdk-tw-ring-color: rgb(59 130 246 / .5);--csdk-tw-ring-offset-shadow: 0 0 #0000;--csdk-tw-ring-shadow: 0 0 #0000;--csdk-tw-shadow: 0 0 #0000;--csdk-tw-shadow-colored: 0 0 #0000;--csdk-tw-blur: ;--csdk-tw-brightness: ;--csdk-tw-contrast: ;--csdk-tw-grayscale: ;--csdk-tw-hue-rotate: ;--csdk-tw-invert: ;--csdk-tw-saturate: ;--csdk-tw-sepia: ;--csdk-tw-drop-shadow: ;--csdk-tw-backdrop-blur: ;--csdk-tw-backdrop-brightness: ;--csdk-tw-backdrop-contrast: ;--csdk-tw-backdrop-grayscale: ;--csdk-tw-backdrop-hue-rotate: ;--csdk-tw-backdrop-invert: ;--csdk-tw-backdrop-opacity: ;--csdk-tw-backdrop-saturate: ;--csdk-tw-backdrop-sepia: ;--csdk-tw-contain-size: ;--csdk-tw-contain-layout: ;--csdk-tw-contain-paint: ;--csdk-tw-contain-style: }::backdrop{--csdk-tw-border-spacing-x: 0;--csdk-tw-border-spacing-y: 0;--csdk-tw-translate-x: 0;--csdk-tw-translate-y: 0;--csdk-tw-rotate: 0;--csdk-tw-skew-x: 0;--csdk-tw-skew-y: 0;--csdk-tw-scale-x: 1;--csdk-tw-scale-y: 1;--csdk-tw-pan-x: ;--csdk-tw-pan-y: ;--csdk-tw-pinch-zoom: ;--csdk-tw-scroll-snap-strictness: proximity;--csdk-tw-gradient-from-position: ;--csdk-tw-gradient-via-position: ;--csdk-tw-gradient-to-position: ;--csdk-tw-ordinal: ;--csdk-tw-slashed-zero: ;--csdk-tw-numeric-figure: ;--csdk-tw-numeric-spacing: ;--csdk-tw-numeric-fraction: ;--csdk-tw-ring-inset: ;--csdk-tw-ring-offset-width: 0px;--csdk-tw-ring-offset-color: #fff;--csdk-tw-ring-color: rgb(59 130 246 / .5);--csdk-tw-ring-offset-shadow: 0 0 #0000;--csdk-tw-ring-shadow: 0 0 #0000;--csdk-tw-shadow: 0 0 #0000;--csdk-tw-shadow-colored: 0 0 #0000;--csdk-tw-blur: ;--csdk-tw-brightness: ;--csdk-tw-contrast: ;--csdk-tw-grayscale: ;--csdk-tw-hue-rotate: ;--csdk-tw-invert: ;--csdk-tw-saturate: ;--csdk-tw-sepia: ;--csdk-tw-drop-shadow: ;--csdk-tw-backdrop-blur: ;--csdk-tw-backdrop-brightness: ;--csdk-tw-backdrop-contrast: ;--csdk-tw-backdrop-grayscale: ;--csdk-tw-backdrop-hue-rotate: ;--csdk-tw-backdrop-invert: ;--csdk-tw-backdrop-opacity: ;--csdk-tw-backdrop-saturate: ;--csdk-tw-backdrop-sepia: ;--csdk-tw-contain-size: ;--csdk-tw-contain-layout: ;--csdk-tw-contain-paint: ;--csdk-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{--csdk-tw-translate-y: -50%;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-translate-x-1\\/2{--csdk-tw-translate-x: 50%;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.-csdk-rotate-90{--csdk-tw-rotate: -90deg;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-rotate-45{--csdk-tw-rotate: 45deg;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-scale-x-\\[-1\\]{--csdk-tw-scale-x: -1;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-transform{transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-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{--csdk-tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--csdk-tw-border-opacity))}.csdk-border-\\[\\#e4e4e4\\]{--csdk-tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--csdk-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-background-priority{background-color:#f4f4f8}.csdk-bg-primary-primary{background-color:#ffcb05}.csdk-bg-transparent{background-color:transparent}.csdk-bg-white{--csdk-tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--csdk-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{--csdk-tw-text-opacity: 1;color:rgb(110 115 125 / var(--csdk-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{--csdk-tw-text-opacity: 1;color:rgb(30 175 243 / var(--csdk-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{--csdk-tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--csdk-tw-shadow-colored: 0 4px 6px -1px var(--csdk-tw-shadow-color), 0 2px 4px -2px var(--csdk-tw-shadow-color);box-shadow:var(--csdk-tw-ring-offset-shadow, 0 0 #0000),var(--csdk-tw-ring-shadow, 0 0 #0000),var(--csdk-tw-shadow)}.csdk-shadow-gray-500{--csdk-tw-shadow-color: #6b7280;--csdk-tw-shadow: var(--csdk-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{--csdk-tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--csdk-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}.csdk-scattermap-tooltip-row{display:flex;justify-content:space-between}._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);
|
3639
|
+
}
|
3640
|
+
} catch (t) {
|
3641
|
+
console.error("vite-plugin-css-injected-by-js", t);
|
3642
|
+
}
|
3643
|
+
})();
|
3644
|
+
const Jt = {
|
3645
|
+
api: void 0
|
3646
|
+
}, Xt = Symbol("aiContextKey"), _e = () => ia(Xt, gt(Jt)), $t = () => {
|
3647
|
+
const e = _e();
|
3648
|
+
return {
|
3649
|
+
prepareContext() {
|
3650
|
+
return e.value;
|
3651
|
+
},
|
3652
|
+
renderContextProvider: Qa(en)
|
3653
|
+
};
|
3654
|
+
}, rn = Ee({
|
3655
|
+
props: {
|
3656
|
+
/**
|
3657
|
+
* {@inheritDoc @sisense/sdk-ui!AiContextProviderProps.volatile}
|
3658
|
+
*/
|
3659
|
+
volatile: Boolean
|
3660
|
+
},
|
3661
|
+
setup(e, { slots: t }) {
|
3662
|
+
const a = Ba(), r = gt(Jt), { app: o } = a.value;
|
3663
|
+
return o && (r.value = {
|
3664
|
+
api: new lt(o.httpClient, e.volatile)
|
3665
|
+
}), aa(async () => {
|
3666
|
+
const { app: n } = a.value;
|
3667
|
+
n && (r.value = {
|
3668
|
+
api: new lt(n.httpClient, e.volatile)
|
3669
|
+
});
|
3670
|
+
}), ra(Xt, r), () => {
|
3671
|
+
var n;
|
3672
|
+
return (n = t.default) == null ? void 0 : n.call(t);
|
3673
|
+
};
|
3674
|
+
}
|
3675
|
+
}), on = Ee({
|
3676
|
+
props: {
|
3677
|
+
/**
|
3678
|
+
* {@inheritDoc @sisense/sdk-ui!ChatbotProps.width}
|
3679
|
+
*/
|
3680
|
+
width: String,
|
3681
|
+
/**
|
3682
|
+
* {@inheritDoc @sisense/sdk-ui!ChatbotProps.height}
|
3683
|
+
*/
|
3684
|
+
height: String,
|
3685
|
+
/**
|
3686
|
+
* {@inheritDoc @sisense/sdk-ui!ChatbotProps.config}
|
3687
|
+
*/
|
3688
|
+
config: Object
|
3689
|
+
},
|
3690
|
+
setup: (e) => Ct(Xo, e, () => [
|
3691
|
+
...vt(),
|
3692
|
+
$t()
|
3693
|
+
])
|
3694
|
+
}), nn = Ee({
|
3695
|
+
props: {
|
3696
|
+
/**
|
3697
|
+
* {@inheritDoc @sisense/sdk-ui!GetNlgInsightsProps.dataSource}
|
3698
|
+
*/
|
3699
|
+
dataSource: Object,
|
3700
|
+
/**
|
3701
|
+
* {@inheritDoc @sisense/sdk-ui!GetNlgInsightsProps.dimensions}
|
3702
|
+
*/
|
3703
|
+
dimensions: Array,
|
3704
|
+
/**
|
3705
|
+
* {@inheritDoc @sisense/sdk-ui!GetNlgInsightsProps.measures}
|
3706
|
+
*/
|
3707
|
+
measures: Array,
|
3708
|
+
/**
|
3709
|
+
* {@inheritDoc @sisense/sdk-ui!GetNlgInsightsProps.filters}
|
3710
|
+
*/
|
3711
|
+
filters: Array || Object,
|
3712
|
+
/**
|
3713
|
+
* {@inheritDoc @sisense/sdk-ui!GetNlgInsightsProps.verbosity}
|
3714
|
+
*/
|
3715
|
+
verbosity: String
|
3716
|
+
},
|
3717
|
+
setup: (e) => Ct($o, e, () => [
|
3718
|
+
...vt(),
|
3719
|
+
$t()
|
3720
|
+
])
|
3721
|
+
}), ln = (e) => {
|
3722
|
+
We("useGetNlgInsights");
|
3723
|
+
const [t, a] = Ge(He, {
|
3724
|
+
isLoading: !0,
|
3725
|
+
isError: !1,
|
3726
|
+
isSuccess: !1,
|
3727
|
+
status: "loading",
|
3728
|
+
error: void 0,
|
3729
|
+
data: void 0
|
3730
|
+
}), r = _e(), o = async (l) => {
|
3731
|
+
var d;
|
3732
|
+
try {
|
3733
|
+
a({ type: "loading" });
|
3734
|
+
const c = Ot(te(e)), s = await (l == null ? void 0 : l.ai.getNlgInsights(c));
|
3735
|
+
a({ type: "success", data: (d = s == null ? void 0 : s.data) == null ? void 0 : d.answer });
|
3736
|
+
} catch (c) {
|
3737
|
+
a({ type: "error", error: c });
|
3738
|
+
}
|
3739
|
+
};
|
3740
|
+
ze(
|
3741
|
+
[...qe(e), r],
|
3742
|
+
() => {
|
3743
|
+
const { api: l } = r.value, { enabled: d } = te(e);
|
3744
|
+
!l || !(d === void 0 || d === !0) || o(l);
|
3745
|
+
},
|
3746
|
+
{ immediate: !0 }
|
3747
|
+
);
|
3748
|
+
const n = () => {
|
3749
|
+
r.value.api && o(r.value.api);
|
3750
|
+
};
|
3751
|
+
return {
|
3752
|
+
...Oe(t.value),
|
3753
|
+
refetch: n
|
3754
|
+
};
|
3755
|
+
}, dn = (e) => {
|
3756
|
+
We("useGetQueryRecommendations");
|
3757
|
+
const [t, a] = Ge(He, {
|
3758
|
+
isLoading: !0,
|
3759
|
+
isError: !1,
|
3760
|
+
isSuccess: !1,
|
3761
|
+
status: "loading",
|
3762
|
+
error: void 0,
|
3763
|
+
data: void 0
|
3764
|
+
}), r = _e(), o = async (l) => {
|
3765
|
+
try {
|
3766
|
+
a({ type: "loading" });
|
3767
|
+
const { contextTitle: d, count: c, enableAxisTitlesInWidgetProps: s } = te(e), g = c ?? Te, p = await (l == null ? void 0 : l.ai.getQueryRecommendations(d, {
|
3768
|
+
numOfRecommendations: g
|
3769
|
+
})), m = (p == null ? void 0 : p.map((x) => ({
|
3770
|
+
...x,
|
3771
|
+
widgetProps: jt.toWidgetProps(x, {
|
3772
|
+
useCustomizedStyleOptions: s
|
3773
|
+
})
|
3774
|
+
}))) || [];
|
3775
|
+
a({ type: "success", data: m });
|
3776
|
+
} catch (d) {
|
3777
|
+
a({ type: "error", error: d });
|
3778
|
+
}
|
3779
|
+
};
|
3780
|
+
ze(
|
3781
|
+
[...qe(e), r],
|
3782
|
+
() => {
|
3783
|
+
const { api: l } = r.value, { enabled: d, count: c } = te(e), g = (d === void 0 || d === !0) && (c ?? Te) > 0;
|
3784
|
+
!l || !g || o(l);
|
3785
|
+
},
|
3786
|
+
{ immediate: !0 }
|
3787
|
+
);
|
3788
|
+
const n = () => {
|
3789
|
+
r.value.api && o(r.value.api);
|
3790
|
+
};
|
3791
|
+
return {
|
3792
|
+
...Oe(t.value),
|
3793
|
+
refetch: n
|
3794
|
+
};
|
3795
|
+
}, cn = (e) => {
|
3796
|
+
We("useGetNlqResult");
|
3797
|
+
const [t, a] = Ge(He, {
|
3798
|
+
isLoading: !0,
|
3799
|
+
isError: !1,
|
3800
|
+
isSuccess: !1,
|
3801
|
+
status: "loading",
|
3802
|
+
error: void 0,
|
3803
|
+
data: void 0
|
3804
|
+
}), r = _e(), o = async (l) => {
|
3805
|
+
try {
|
3806
|
+
a({ type: "loading" });
|
3807
|
+
const d = te(e), { enableAxisTitlesInWidgetProps: c } = d, { contextTitle: s, request: g } = Wr(d), p = await (l == null ? void 0 : l.ai.getNlqResult(s, g)), m = p ? jt.toWidgetProps(p, {
|
3808
|
+
useCustomizedStyleOptions: c || !1
|
3809
|
+
}) : void 0;
|
3810
|
+
a({ type: "success", data: m });
|
3811
|
+
} catch (d) {
|
3812
|
+
a({ type: "error", error: d });
|
3813
|
+
}
|
3814
|
+
};
|
3815
|
+
ze(
|
3816
|
+
[...qe(e), r],
|
3817
|
+
() => {
|
3818
|
+
const { api: l } = r.value, { enabled: d } = te(e);
|
3819
|
+
!l || !(d === void 0 || d === !0) || o(l);
|
3820
|
+
},
|
3821
|
+
{ immediate: !0 }
|
3822
|
+
);
|
3823
|
+
const n = () => {
|
3824
|
+
r.value.api && o(r.value.api);
|
3825
|
+
};
|
3826
|
+
return {
|
3827
|
+
...Oe(t.value),
|
3828
|
+
refetch: n
|
3829
|
+
};
|
3830
|
+
};
|
3831
|
+
export {
|
3832
|
+
rn as AiContextProvider,
|
3833
|
+
on as Chatbot,
|
3834
|
+
nn as GetNlgInsights,
|
3835
|
+
ln as useGetNlgInsights,
|
3836
|
+
cn as useGetNlqResult,
|
3837
|
+
dn as useGetQueryRecommendations
|
3838
|
+
};
|