@sisense/sdk-ui-preact 2.4.1 → 2.5.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 +21 -21
- package/dist/ai.js +395 -377
- package/dist/index.cjs +20 -20
- package/dist/index.js +5632 -5533
- package/dist/{use-common-filters-Br-CoziA-a324533b.cjs → use-common-filters-BTk7vuUo-1695c956.cjs} +191 -191
- package/dist/{use-common-filters-Br-CoziA-8fca78d2.js → use-common-filters-BTk7vuUo-f74a3ef4.js} +11331 -11305
- package/package.json +4 -8
package/dist/ai.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as Qe,
|
|
1
|
+
import { N as Qe, eV as $r, eW as Vr, h as Se, cr as We, cJ as Jr, cI as Xr, bJ as Kr, bo as wt, eX as ve, m as Ht, cz as tt, b1 as ea, aX as Ee, eY as ta, c1 as ra, eZ as aa, c as ia, e_ as oa, e$ as na, f0 as la, cD as Yt, j as Ut, ae as Ft, a9 as Be, B as da, p as He, f1 as sa, f2 as ca, J as he, f3 as Qt, K as pa, f as b, w as $t, F as D, i as o, r as O, ad as Y, f4 as ua, aE as ga, am as ha, T as G, bs as fe, q as N, aB as dt, g as z, y as be, ap as Vt, a5 as ma, bv as fa, A as ce, f5 as ba, as as ke, X as $e, u as ye, f6 as xa, bF as ka, bH as ya, cL as Ce, du as Jt, aq as st, z as wa, f7 as Ie, a4 as _, c_ as q, l as v, c0 as _a, f8 as _t, a as qe, f9 as Ca, fa as va, fb as Xt, fc as Sa, fd as Ma, ce as Ia, cf as Da, fe as Aa, ff as La, fg as Ta, dO as Na, cd as ja, fh as Oa, cZ as Kt, fi as Ea, dl as za, b6 as Ra, ev as Za, _ as Wa, aY as er, aZ as tr, fj as qa, cw as Ga, fk as Pa, ex as Ba, cW as Ha, fl as Ya } from "./use-common-filters-BTk7vuUo-f74a3ef4.js";
|
|
2
2
|
var Ua = Object.defineProperty, Fa = Object.defineProperties, Qa = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, $a = Object.prototype.hasOwnProperty, Va = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? Ua(e, t, {
|
|
3
3
|
enumerable: !0,
|
|
4
4
|
configurable: !0,
|
|
@@ -107,7 +107,18 @@ function ai(e) {
|
|
|
107
107
|
return t.join(`
|
|
108
108
|
`);
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
function ii(e) {
|
|
111
|
+
const t = (a) => /^[$A-Z_][0-9A-Z_$]*$/i.test(a);
|
|
112
|
+
if ("composeCode" in e)
|
|
113
|
+
return e;
|
|
114
|
+
const r = {};
|
|
115
|
+
for (const [a, i] of Object.entries(e)) {
|
|
116
|
+
const l = t(a) ? a : `"${a}"`;
|
|
117
|
+
r[l] = i;
|
|
118
|
+
}
|
|
119
|
+
return r;
|
|
120
|
+
}
|
|
121
|
+
const oi = {
|
|
111
122
|
react: {
|
|
112
123
|
baseChartTmpl: `import { {{componentString}} } from '@sisense/sdk-ui';
|
|
113
124
|
{{extraImportsString}}
|
|
@@ -566,10 +577,10 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
566
577
|
</template>`,
|
|
567
578
|
dashboardTmpl: "/** COMING SOON */"
|
|
568
579
|
}
|
|
569
|
-
}, or = (e, t) =>
|
|
580
|
+
}, or = (e, t) => oi[t][e].replace(/{{(.*?)Tmpl}}/g, (r, a) => or(`${a}Tmpl`, t)), ni = (e, t) => e.replace(/{{(.*?)}}/g, (r, a) => a in t ? t[a] : (console.warn(`Placeholder ${a} not found in data`), r)), rt = (e, t, r = "react") => {
|
|
570
581
|
const a = or(e, r);
|
|
571
|
-
return ai(
|
|
572
|
-
},
|
|
582
|
+
return ai(ni(a, t));
|
|
583
|
+
}, li = () => Object.values(la).map((e) => Yt.aggregationToJAQL(e)).join("|"), nr = (e) => {
|
|
573
584
|
const {
|
|
574
585
|
formula: t,
|
|
575
586
|
context: r,
|
|
@@ -583,7 +594,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
583
594
|
const l = i[0];
|
|
584
595
|
if (typeof l != "string")
|
|
585
596
|
return e;
|
|
586
|
-
const d = r[`${l}`], u =
|
|
597
|
+
const d = r[`${l}`], u = li(), c = new RegExp(`^\\s*(${u})\\(\\[\\w+\\]\\)$`), g = t.match(c);
|
|
587
598
|
if (g && t.includes(l)) {
|
|
588
599
|
const x = g[1];
|
|
589
600
|
return Z({
|
|
@@ -607,7 +618,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
607
618
|
}), t.context = r;
|
|
608
619
|
}
|
|
609
620
|
return t;
|
|
610
|
-
},
|
|
621
|
+
}, di = (e) => {
|
|
611
622
|
var t;
|
|
612
623
|
const r = e;
|
|
613
624
|
if (r.panel !== "scope")
|
|
@@ -618,9 +629,9 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
618
629
|
return (t = a.filter) != null && t.by && (a.filter.by = nr(a.filter.by)), ne(Z({}, r), {
|
|
619
630
|
jaql: a
|
|
620
631
|
});
|
|
621
|
-
},
|
|
632
|
+
}, si = (e) => {
|
|
622
633
|
let t = e;
|
|
623
|
-
t =
|
|
634
|
+
t = di(t);
|
|
624
635
|
const {
|
|
625
636
|
jaql: r,
|
|
626
637
|
measure: a,
|
|
@@ -634,7 +645,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
634
645
|
measure: ze(a)
|
|
635
646
|
} : {});
|
|
636
647
|
}, Re = 6, je = `
|
|
637
|
-
`, at = "UNKNOWN",
|
|
648
|
+
`, at = "UNKNOWN", ci = (e, t) => {
|
|
638
649
|
let r = "";
|
|
639
650
|
return r += `measureFactory.customFormula(
|
|
640
651
|
`, r += " ".repeat(t), r += ` '${ve(e.title)}',
|
|
@@ -646,7 +657,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
646
657
|
`;
|
|
647
658
|
}), r += " ".repeat(t), r += ` }
|
|
648
659
|
`, r += " ".repeat(t), r += ")", r;
|
|
649
|
-
},
|
|
660
|
+
}, pi = (e) => {
|
|
650
661
|
const {
|
|
651
662
|
level: t,
|
|
652
663
|
table: r,
|
|
@@ -656,24 +667,31 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
|
656
667
|
} = e;
|
|
657
668
|
let d;
|
|
658
669
|
return r && a && (d = Ut(r, a, t, "DM")), i && r && a && l && (d = `measureFactory.${Yt.aggregationFromJAQL(i)}(${d}, '${ve(l)}')`), d || at;
|
|
659
|
-
},
|
|
670
|
+
}, ui = (e, t) => {
|
|
660
671
|
const r = e.jaql(!1).jaql;
|
|
661
|
-
return "formula" in r ?
|
|
672
|
+
return "formula" in r ? ci(r, t) : pi(r);
|
|
662
673
|
}, te = (e, t = 0, r = !1) => {
|
|
663
674
|
if (!e)
|
|
664
675
|
return "";
|
|
665
676
|
if (typeof e == "string")
|
|
666
677
|
return `'${ve(e)}'`;
|
|
667
678
|
if (e instanceof rr)
|
|
668
|
-
return
|
|
679
|
+
return ui(e, t);
|
|
669
680
|
if (e instanceof Ht)
|
|
670
681
|
return e.composeCode || "";
|
|
671
682
|
let a = "";
|
|
672
683
|
return Array.isArray(e) ? a += `[${e.map((i) => te(i, t + 2))}${e.length ? je + " ".repeat(t + 2) : ""}]` : (a += `{${je}`, Object.entries(e).forEach(([i, l]) => {
|
|
673
|
-
r && typeof i == "string" && (i = `'${ve(i)}'`), a += " ".repeat(t + 2), Array.isArray(l)
|
|
684
|
+
if (r && typeof i == "string" && (i = `'${ve(i)}'`), a += " ".repeat(t + 2), Array.isArray(l))
|
|
685
|
+
a += `${i}: [${l.map((d) => te(d, t + 4, r))}${l.length ? je + " ".repeat(t + 2) : ""}]`;
|
|
686
|
+
else if (typeof l == "object" && l !== null) {
|
|
687
|
+
const d = Array.isArray(l) ? l : ii(l);
|
|
688
|
+
a += `${i}: ${te(d, t + 2, r)}`;
|
|
689
|
+
} else
|
|
690
|
+
["number", "boolean", "undefined"].includes(typeof l) || l === null ? a += `${i}: ${l}` : typeof l == "string" ? a += `${i}: '${ve(l)}'` : a += `${i}: ${l}`;
|
|
691
|
+
a += `,${je}`;
|
|
674
692
|
}), a += " ".repeat(t), a += "}"), a;
|
|
675
693
|
};
|
|
676
|
-
function
|
|
694
|
+
function gi(e) {
|
|
677
695
|
return te(e, Re);
|
|
678
696
|
}
|
|
679
697
|
function Mt(e, t = "data-source-placeholder") {
|
|
@@ -687,18 +705,18 @@ function It(e, t = !0) {
|
|
|
687
705
|
return t && r.push("measureFactory"), J(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
|
|
688
706
|
}
|
|
689
707
|
const Dt = `
|
|
690
|
-
`,
|
|
708
|
+
`, hi = (e, t) => {
|
|
691
709
|
if (e.composeCode)
|
|
692
710
|
return `${Dt}${" ".repeat(t)}${e.composeCode}`;
|
|
693
711
|
const r = e.jaql().jaql;
|
|
694
712
|
return `${Dt}${" ".repeat(t)}filterFactory.customFilter(${te(r, t, !0)})`;
|
|
695
|
-
},
|
|
713
|
+
}, mi = (e, t = 0) => {
|
|
696
714
|
if (!e)
|
|
697
715
|
return "";
|
|
698
716
|
let r = "";
|
|
699
|
-
return r += `[${e.map((a) =>
|
|
717
|
+
return r += `[${e.map((a) => hi(a, t + 2))}${e.length ? `
|
|
700
718
|
` + " ".repeat(t + 2) : ""}]`, r;
|
|
701
|
-
}, At = (e) => e ? Array.isArray(e) ?
|
|
719
|
+
}, At = (e) => e ? Array.isArray(e) ? mi(e, 6) : "/** Filter relations not supported yet */" : "[]", fi = ["executeQueryByWidgetIdTmpl", "widgetByIdTmpl"], bi = "chartWidgetTmpl", xi = "pivotTableWidgetTmpl", ki = (e) => e, yi = ({
|
|
702
720
|
dashboardOid: e,
|
|
703
721
|
widgetOid: t,
|
|
704
722
|
uiFramework: r = "react",
|
|
@@ -709,9 +727,9 @@ const Dt = `
|
|
|
709
727
|
const l = {
|
|
710
728
|
dashboardOid: e,
|
|
711
729
|
widgetOid: t
|
|
712
|
-
}, d =
|
|
730
|
+
}, d = fi[Number(i)];
|
|
713
731
|
return rt(d, l, r);
|
|
714
|
-
},
|
|
732
|
+
}, wi = (e, t, r) => {
|
|
715
733
|
if (We(e)) {
|
|
716
734
|
ir(e.chartType);
|
|
717
735
|
const a = St(e), i = {
|
|
@@ -719,8 +737,8 @@ const Dt = `
|
|
|
719
737
|
widgetTypeString: "chart",
|
|
720
738
|
titleString: e.title,
|
|
721
739
|
dataSourceString: Mt(e.dataSource),
|
|
722
|
-
chartTypeString:
|
|
723
|
-
dataOptionsString:
|
|
740
|
+
chartTypeString: ki(e.chartType),
|
|
741
|
+
dataOptionsString: gi(e.dataOptions),
|
|
724
742
|
filtersString: At(e.filters),
|
|
725
743
|
componentString: "ChartWidget",
|
|
726
744
|
extraImportsString: It(e.filters || [], a),
|
|
@@ -746,17 +764,17 @@ const Dt = `
|
|
|
746
764
|
if (Xr(e))
|
|
747
765
|
return "/** Custom widget code not supported yet */";
|
|
748
766
|
throw new Se("errors.otherWidgetTypesNotSupported");
|
|
749
|
-
},
|
|
767
|
+
}, _i = ({
|
|
750
768
|
widgetProps: e,
|
|
751
769
|
uiFramework: t = "react"
|
|
752
|
-
}) =>
|
|
753
|
-
chart:
|
|
754
|
-
pivot:
|
|
755
|
-
}),
|
|
770
|
+
}) => wi(e, t, {
|
|
771
|
+
chart: bi,
|
|
772
|
+
pivot: xi
|
|
773
|
+
}), Ci = (e) => ({
|
|
756
774
|
dataOptions: {
|
|
757
775
|
columns: e.map(ar)
|
|
758
776
|
}
|
|
759
|
-
}),
|
|
777
|
+
}), vi = Object.freeze({
|
|
760
778
|
convolution: {
|
|
761
779
|
enabled: !0,
|
|
762
780
|
selectedConvolutionType: "bySlicesCount",
|
|
@@ -782,7 +800,7 @@ const Dt = `
|
|
|
782
800
|
pie: "pie/donut",
|
|
783
801
|
bar: "bar/stacked",
|
|
784
802
|
column: "column/stackedcolumn"
|
|
785
|
-
}),
|
|
803
|
+
}), Si = (e, t, r) => {
|
|
786
804
|
const a = e.reduce((l, d) => (l[d.jaql.title] = d, l), {}), i = Object.entries(r).reduce((l, d) => {
|
|
787
805
|
const [u, c] = d;
|
|
788
806
|
return l[`${u}`] = Array.isArray(c) ? c.map((g) => {
|
|
@@ -836,7 +854,7 @@ const Dt = `
|
|
|
836
854
|
l !== "geo" && (i[`${l}`] = i[`${l}`][0]);
|
|
837
855
|
}), i;
|
|
838
856
|
case "table":
|
|
839
|
-
return Object.keys(i).length === 0 ?
|
|
857
|
+
return Object.keys(i).length === 0 ? Ci(e).dataOptions : i;
|
|
840
858
|
case "boxplot":
|
|
841
859
|
case "areamap":
|
|
842
860
|
case "indicator":
|
|
@@ -846,9 +864,9 @@ const Dt = `
|
|
|
846
864
|
}, Tt = (e, t) => {
|
|
847
865
|
var r, a, i, l;
|
|
848
866
|
return t === "x" ? (a = (r = e.category) != null ? r : e.x) == null ? void 0 : a.map((d) => tt(d).column.name).join(", ") : (l = (i = e.value) != null ? i : e.y) == null ? void 0 : l.map((d) => tt(d).column.name).join(", ");
|
|
849
|
-
},
|
|
867
|
+
}, Mi = (e, t, r, a) => {
|
|
850
868
|
let i;
|
|
851
|
-
return a && e in Lt ? i = Ee(Ee(
|
|
869
|
+
return a && e in Lt ? i = Ee(Ee(vi, {
|
|
852
870
|
subtype: Lt[`${e}`]
|
|
853
871
|
}), {
|
|
854
872
|
legend: {
|
|
@@ -868,22 +886,22 @@ const Dt = `
|
|
|
868
886
|
}
|
|
869
887
|
}
|
|
870
888
|
}, r) : i = Ee(ta(), r), i;
|
|
871
|
-
},
|
|
889
|
+
}, Ii = (e, t, r = !0) => {
|
|
872
890
|
const {
|
|
873
891
|
chartFamily: a,
|
|
874
892
|
chartType: i,
|
|
875
893
|
axesMapping: l = {},
|
|
876
894
|
styleOptions: d = {}
|
|
877
|
-
} = t, u =
|
|
895
|
+
} = t, u = Si(e, a, l), c = Mi(i, l, d, r);
|
|
878
896
|
return {
|
|
879
897
|
dataOptions: u,
|
|
880
898
|
chartStyleOptions: c
|
|
881
899
|
};
|
|
882
|
-
},
|
|
900
|
+
}, Di = (e) => "chartType" in e ? e : {
|
|
883
901
|
chartType: "table",
|
|
884
902
|
chartFamily: "table",
|
|
885
903
|
axesMapping: {}
|
|
886
|
-
},
|
|
904
|
+
}, Ai = (e) => e.map((t) => Kr(t.jaql)), Li = (e) => e.reduce((t, r) => {
|
|
887
905
|
if ((r.panel === "scope" || r.jaql.filter) && t.metadataFilters.push(wt(r)), r.panel !== "scope") {
|
|
888
906
|
const a = wt(r);
|
|
889
907
|
delete a.jaql.filter, t.metadataColumns.push(a);
|
|
@@ -892,7 +910,7 @@ const Dt = `
|
|
|
892
910
|
}, {
|
|
893
911
|
metadataColumns: [],
|
|
894
912
|
metadataFilters: []
|
|
895
|
-
}),
|
|
913
|
+
}), Ti = (e, t) => {
|
|
896
914
|
if (!ti(e))
|
|
897
915
|
try {
|
|
898
916
|
const {
|
|
@@ -906,11 +924,11 @@ const Dt = `
|
|
|
906
924
|
datasource: u
|
|
907
925
|
} = a, c = ne(Z({}, u), {
|
|
908
926
|
type: u.type || "elasticube"
|
|
909
|
-
}), g = $r(c), x = d.map((M) =>
|
|
927
|
+
}), g = $r(c), x = d.map((M) => si(M)).map((M) => ne(Z({}, M), {
|
|
910
928
|
jaql: ne(Z({}, M.jaql), {
|
|
911
929
|
datasource: g
|
|
912
930
|
})
|
|
913
|
-
})), f =
|
|
931
|
+
})), f = Di(i), n = f.chartType.toLowerCase(), p = {
|
|
914
932
|
cornerRadius: "Small",
|
|
915
933
|
header: {
|
|
916
934
|
// remove info button and render empty toolbar instead
|
|
@@ -919,10 +937,10 @@ const Dt = `
|
|
|
919
937
|
}, {
|
|
920
938
|
metadataColumns: s,
|
|
921
939
|
metadataFilters: h
|
|
922
|
-
} =
|
|
940
|
+
} = Li(x), m = Ai(h), {
|
|
923
941
|
dataOptions: w,
|
|
924
942
|
chartStyleOptions: C
|
|
925
|
-
} =
|
|
943
|
+
} = Ii(s, f, r), y = Z(Z({}, C), p);
|
|
926
944
|
return {
|
|
927
945
|
widgetType: "chart",
|
|
928
946
|
id: l,
|
|
@@ -937,14 +955,14 @@ const Dt = `
|
|
|
937
955
|
console.error(r);
|
|
938
956
|
return;
|
|
939
957
|
}
|
|
940
|
-
}, De = (e, t) =>
|
|
958
|
+
}, De = (e, t) => Ti(e, t), Ni = (e) => Ka(e) ? yi(e) : _i(e), gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
941
959
|
__proto__: null,
|
|
942
|
-
toWidgetCode:
|
|
960
|
+
toWidgetCode: Ni,
|
|
943
961
|
toWidgetProps: De
|
|
944
962
|
}, Symbol.toStringTag, {
|
|
945
963
|
value: "Module"
|
|
946
964
|
}));
|
|
947
|
-
var
|
|
965
|
+
var ji = Object.defineProperty, Oi = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Ge = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? ji(e, t, {
|
|
948
966
|
enumerable: !0,
|
|
949
967
|
configurable: !0,
|
|
950
968
|
writable: !0,
|
|
@@ -956,7 +974,7 @@ var Ni = Object.defineProperty, ji = Object.defineProperties, Oi = Object.getOwn
|
|
|
956
974
|
for (var r of Ge(t))
|
|
957
975
|
dr.call(t, r) && Nt(e, r, t[r]);
|
|
958
976
|
return e;
|
|
959
|
-
}, T = (e, t) =>
|
|
977
|
+
}, T = (e, t) => Oi(e, Ei(t)), sr = (e, t) => {
|
|
960
978
|
var r = {};
|
|
961
979
|
for (var a in e)
|
|
962
980
|
lr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
@@ -980,7 +998,7 @@ var Ni = Object.defineProperty, ji = Object.defineProperties, Oi = Object.getOwn
|
|
|
980
998
|
}, u = (c) => c.done ? a(c.value) : Promise.resolve(c.value).then(l, d);
|
|
981
999
|
u((r = r.apply(e, t)).next());
|
|
982
1000
|
});
|
|
983
|
-
class
|
|
1001
|
+
class zi extends Aa {
|
|
984
1002
|
constructor(t, r) {
|
|
985
1003
|
super(), this.client = t, this.setOptions(r), this.bindMethods(), this.updateResult();
|
|
986
1004
|
}
|
|
@@ -1055,12 +1073,12 @@ class Ei extends Aa {
|
|
|
1055
1073
|
function ct(e, t, r) {
|
|
1056
1074
|
const a = Ca(e, t), i = Ie({
|
|
1057
1075
|
context: a.context
|
|
1058
|
-
}), [l] = z(() => new
|
|
1076
|
+
}), [l] = z(() => new zi(i, a));
|
|
1059
1077
|
be(() => {
|
|
1060
1078
|
l.setOptions(a);
|
|
1061
1079
|
}, [l, a]);
|
|
1062
1080
|
const d = va(N((c) => l.subscribe(Xt.batchCalls(c)), [l]), () => l.getCurrentResult(), () => l.getCurrentResult()), u = N((c, g) => {
|
|
1063
|
-
l.mutate(c, g).catch(
|
|
1081
|
+
l.mutate(c, g).catch(Ri);
|
|
1064
1082
|
}, [l]);
|
|
1065
1083
|
if (d.error && Sa(l.options.useErrorBoundary, [d.error]))
|
|
1066
1084
|
throw d.error;
|
|
@@ -1069,9 +1087,9 @@ function ct(e, t, r) {
|
|
|
1069
1087
|
mutateAsync: d.mutate
|
|
1070
1088
|
});
|
|
1071
1089
|
}
|
|
1072
|
-
function
|
|
1090
|
+
function Ri() {
|
|
1073
1091
|
}
|
|
1074
|
-
class
|
|
1092
|
+
class Zi {
|
|
1075
1093
|
constructor(t, r = !1) {
|
|
1076
1094
|
this.volatile = r, this.getChatContexts = () => pe(this, null, function* () {
|
|
1077
1095
|
return (yield this.httpClient.get("api/datasources//")) || [];
|
|
@@ -1099,28 +1117,28 @@ class Ri {
|
|
|
1099
1117
|
}, this.httpClient = t;
|
|
1100
1118
|
}
|
|
1101
1119
|
}
|
|
1102
|
-
const
|
|
1120
|
+
const Wi = new Ft({
|
|
1103
1121
|
defaultOptions: {
|
|
1104
1122
|
queries: {
|
|
1105
1123
|
refetchOnWindowFocus: !1,
|
|
1106
1124
|
refetchOnMount: !1
|
|
1107
1125
|
}
|
|
1108
1126
|
}
|
|
1109
|
-
}), pt = /* @__PURE__ */ Be(void 0), X = () => st(pt),
|
|
1127
|
+
}), pt = /* @__PURE__ */ Be(void 0), X = () => st(pt), qi = ({
|
|
1110
1128
|
children: e,
|
|
1111
1129
|
volatile: t
|
|
1112
1130
|
}) => {
|
|
1113
1131
|
const {
|
|
1114
1132
|
app: r
|
|
1115
|
-
} = wa(), a = G(() => r ? new
|
|
1133
|
+
} = wa(), a = G(() => r ? new Zi(r.httpClient, t) : void 0, [r, t]);
|
|
1116
1134
|
return /* @__PURE__ */ o(pt.Provider, {
|
|
1117
1135
|
value: a,
|
|
1118
1136
|
children: /* @__PURE__ */ o(Jt, {
|
|
1119
|
-
client:
|
|
1137
|
+
client: Wi,
|
|
1120
1138
|
children: e
|
|
1121
1139
|
})
|
|
1122
1140
|
});
|
|
1123
|
-
}, cr = /* @__PURE__ */ Be({}),
|
|
1141
|
+
}, cr = /* @__PURE__ */ Be({}), Gi = () => st(cr), pr = ({
|
|
1124
1142
|
children: e
|
|
1125
1143
|
}) => {
|
|
1126
1144
|
const [t, r] = z({}), a = N((d, u) => {
|
|
@@ -1139,18 +1157,18 @@ const Zi = new Ft({
|
|
|
1139
1157
|
children: e
|
|
1140
1158
|
});
|
|
1141
1159
|
};
|
|
1142
|
-
function
|
|
1160
|
+
function hd({
|
|
1143
1161
|
children: e,
|
|
1144
1162
|
volatile: t
|
|
1145
1163
|
}) {
|
|
1146
1164
|
return /* @__PURE__ */ o(pr, {
|
|
1147
|
-
children: /* @__PURE__ */ o(
|
|
1165
|
+
children: /* @__PURE__ */ o(qi, {
|
|
1148
1166
|
volatile: t,
|
|
1149
1167
|
children: e
|
|
1150
1168
|
})
|
|
1151
1169
|
});
|
|
1152
1170
|
}
|
|
1153
|
-
function
|
|
1171
|
+
function Pi(e) {
|
|
1154
1172
|
var t, r;
|
|
1155
1173
|
if ("jaql" in e)
|
|
1156
1174
|
return e;
|
|
@@ -1179,7 +1197,7 @@ function Gi(e) {
|
|
|
1179
1197
|
}
|
|
1180
1198
|
}
|
|
1181
1199
|
const Ye = (e, t = !0) => {
|
|
1182
|
-
const r = G(() =>
|
|
1200
|
+
const r = G(() => Pi(e), [e]), a = X(), {
|
|
1183
1201
|
data: i,
|
|
1184
1202
|
error: l,
|
|
1185
1203
|
isError: d,
|
|
@@ -1205,13 +1223,13 @@ const Ye = (e, t = !0) => {
|
|
|
1205
1223
|
g();
|
|
1206
1224
|
}, [g])
|
|
1207
1225
|
};
|
|
1208
|
-
},
|
|
1226
|
+
}, Bi = (e) => {
|
|
1209
1227
|
const t = e, {
|
|
1210
1228
|
enabled: r
|
|
1211
1229
|
} = t, a = sr(t, ["enabled"]);
|
|
1212
1230
|
return Ye(a, r);
|
|
1213
|
-
},
|
|
1214
|
-
function
|
|
1231
|
+
}, md = dt("useGetNlgInsights")(Bi), Hi = ["indicator", "column", "line", "table", "pie", "bar"];
|
|
1232
|
+
function Yi(e) {
|
|
1215
1233
|
const {
|
|
1216
1234
|
dataSource: t,
|
|
1217
1235
|
query: r,
|
|
@@ -1223,15 +1241,15 @@ function Hi(e) {
|
|
|
1223
1241
|
text: r,
|
|
1224
1242
|
// Timezone is not used by AI API, but it is currently required by the endpoint
|
|
1225
1243
|
timezone: "UTC",
|
|
1226
|
-
chartTypes: a ?? [...
|
|
1244
|
+
chartTypes: a ?? [...Hi]
|
|
1227
1245
|
}
|
|
1228
1246
|
};
|
|
1229
1247
|
}
|
|
1230
|
-
const
|
|
1248
|
+
const Ui = (e) => {
|
|
1231
1249
|
const {
|
|
1232
1250
|
contextTitle: t,
|
|
1233
1251
|
request: r
|
|
1234
|
-
} =
|
|
1252
|
+
} = Yi(e), a = X(), {
|
|
1235
1253
|
isLoading: i,
|
|
1236
1254
|
isError: l,
|
|
1237
1255
|
isSuccess: d,
|
|
@@ -1255,13 +1273,13 @@ const Yi = (e) => {
|
|
|
1255
1273
|
g();
|
|
1256
1274
|
}, [g])
|
|
1257
1275
|
};
|
|
1258
|
-
},
|
|
1276
|
+
}, fd = dt("useGetNlqResult")(Ui), Fi = 4, ur = (e) => {
|
|
1259
1277
|
const {
|
|
1260
1278
|
contextTitle: t,
|
|
1261
1279
|
count: r,
|
|
1262
1280
|
enableAxisTitlesInWidgetProps: a,
|
|
1263
1281
|
enabled: i
|
|
1264
|
-
} = e, l = X(), d = r ??
|
|
1282
|
+
} = e, l = X(), d = r ?? Fi, u = (i === void 0 || i === !0) && d > 0, {
|
|
1265
1283
|
isLoading: c,
|
|
1266
1284
|
isError: g,
|
|
1267
1285
|
isSuccess: x,
|
|
@@ -1289,13 +1307,13 @@ const Yi = (e) => {
|
|
|
1289
1307
|
p();
|
|
1290
1308
|
}, [p])
|
|
1291
1309
|
};
|
|
1292
|
-
},
|
|
1310
|
+
}, bd = dt("useGetQueryRecommendations")(ur), gr = Object.freeze({
|
|
1293
1311
|
enableFollowupQuestions: !1,
|
|
1294
1312
|
enableHeader: !0,
|
|
1295
1313
|
enableInsights: !0,
|
|
1296
1314
|
numOfRecommendations: 4,
|
|
1297
1315
|
numOfRecentPrompts: 5
|
|
1298
|
-
}), hr = /* @__PURE__ */ Be(I({}, gr)), re = () => st(hr),
|
|
1316
|
+
}), hr = /* @__PURE__ */ Be(I({}, gr)), re = () => st(hr), Qi = ({
|
|
1299
1317
|
children: e,
|
|
1300
1318
|
value: t
|
|
1301
1319
|
}) => {
|
|
@@ -1310,7 +1328,7 @@ const Yi = (e) => {
|
|
|
1310
1328
|
value: a,
|
|
1311
1329
|
children: e
|
|
1312
1330
|
});
|
|
1313
|
-
}, ut = "chatHistory",
|
|
1331
|
+
}, ut = "chatHistory", $i = (e) => {
|
|
1314
1332
|
const t = X(), {
|
|
1315
1333
|
hideHistory: r
|
|
1316
1334
|
} = re();
|
|
@@ -1345,7 +1363,7 @@ const Yi = (e) => {
|
|
|
1345
1363
|
data: t,
|
|
1346
1364
|
isLoading: r,
|
|
1347
1365
|
isError: a
|
|
1348
|
-
} =
|
|
1366
|
+
} = $i(e), {
|
|
1349
1367
|
mutate: i
|
|
1350
1368
|
} = mr(e);
|
|
1351
1369
|
return be(() => {
|
|
@@ -1355,7 +1373,7 @@ const Yi = (e) => {
|
|
|
1355
1373
|
isLoading: r,
|
|
1356
1374
|
isError: a
|
|
1357
1375
|
};
|
|
1358
|
-
},
|
|
1376
|
+
}, Vi = () => {
|
|
1359
1377
|
const e = X(), {
|
|
1360
1378
|
data: t,
|
|
1361
1379
|
isLoading: r,
|
|
@@ -1373,7 +1391,7 @@ const Yi = (e) => {
|
|
|
1373
1391
|
isLoading: r,
|
|
1374
1392
|
fetchStatus: a
|
|
1375
1393
|
};
|
|
1376
|
-
},
|
|
1394
|
+
}, Ji = () => {
|
|
1377
1395
|
const e = X(), {
|
|
1378
1396
|
data: t,
|
|
1379
1397
|
isLoading: r
|
|
@@ -1386,7 +1404,7 @@ const Yi = (e) => {
|
|
|
1386
1404
|
data: t ?? [],
|
|
1387
1405
|
isLoading: r
|
|
1388
1406
|
};
|
|
1389
|
-
},
|
|
1407
|
+
}, Xi = (e, t, r) => {
|
|
1390
1408
|
const a = Ie(), i = X(), l = ct({
|
|
1391
1409
|
mutationFn: () => pe(void 0, null, function* () {
|
|
1392
1410
|
if (!(!i || !e))
|
|
@@ -1397,7 +1415,7 @@ const Yi = (e) => {
|
|
|
1397
1415
|
return be(() => {
|
|
1398
1416
|
t && l.isIdle && l.mutate();
|
|
1399
1417
|
}, [t, l]), l;
|
|
1400
|
-
},
|
|
1418
|
+
}, Ki = (e, t) => {
|
|
1401
1419
|
switch (e.responseType = e.responseType.toLowerCase(), e.responseType) {
|
|
1402
1420
|
case "nlq":
|
|
1403
1421
|
return {
|
|
@@ -1414,7 +1432,7 @@ const Yi = (e) => {
|
|
|
1414
1432
|
default:
|
|
1415
1433
|
throw Error(`${t}${JSON.stringify(e)}`);
|
|
1416
1434
|
}
|
|
1417
|
-
},
|
|
1435
|
+
}, eo = (e, t) => {
|
|
1418
1436
|
const r = Ie(), a = N((c) => {
|
|
1419
1437
|
e && r.setQueriesData([ut, e], (g) => g && [...g, c]);
|
|
1420
1438
|
}, [r, e]), {
|
|
@@ -1450,7 +1468,7 @@ const Yi = (e) => {
|
|
|
1450
1468
|
if (!c)
|
|
1451
1469
|
return;
|
|
1452
1470
|
const g = i("ai.errors.unknownResponse");
|
|
1453
|
-
a(
|
|
1471
|
+
a(Ki(c, g));
|
|
1454
1472
|
}
|
|
1455
1473
|
});
|
|
1456
1474
|
return {
|
|
@@ -1462,14 +1480,14 @@ const Yi = (e) => {
|
|
|
1462
1480
|
const {
|
|
1463
1481
|
data: i,
|
|
1464
1482
|
isLoading: l
|
|
1465
|
-
} =
|
|
1483
|
+
} = Ji(), d = Gi(), u = d.getChatId(e, t) || ((a = i.find((f) => {
|
|
1466
1484
|
var n;
|
|
1467
1485
|
return f.contextTitle === e && ((n = f.contextDetails) == null ? void 0 : n.dashboardId) === (t == null ? void 0 : t.dashboardId);
|
|
1468
1486
|
})) == null ? void 0 : a.chatId), {
|
|
1469
1487
|
isError: c,
|
|
1470
1488
|
data: g,
|
|
1471
1489
|
isSuccess: x
|
|
1472
|
-
} =
|
|
1490
|
+
} = Xi(e, r && !l && !u, t);
|
|
1473
1491
|
return be(() => {
|
|
1474
1492
|
x && g && !u && d.saveChatId(g.chatId, e, t);
|
|
1475
1493
|
}, [g, x, e, t, u, d]), {
|
|
@@ -1484,7 +1502,7 @@ const Yi = (e) => {
|
|
|
1484
1502
|
return JSON.parse(t.content);
|
|
1485
1503
|
}
|
|
1486
1504
|
return null;
|
|
1487
|
-
}, [e]), mt = (e) => !!e && "type" in e && e.type === "nlq",
|
|
1505
|
+
}, [e]), mt = (e) => !!e && "type" in e && e.type === "nlq", to = (e) => !!e && "type" in e && e.type === "text", ro = (e, t) => {
|
|
1488
1506
|
const {
|
|
1489
1507
|
t: r
|
|
1490
1508
|
} = O(), {
|
|
@@ -1503,7 +1521,7 @@ const Yi = (e) => {
|
|
|
1503
1521
|
const {
|
|
1504
1522
|
mutate: f,
|
|
1505
1523
|
isLoading: n
|
|
1506
|
-
} =
|
|
1524
|
+
} = eo(i, a), p = fr(c);
|
|
1507
1525
|
return {
|
|
1508
1526
|
chatId: i,
|
|
1509
1527
|
history: c ?? [],
|
|
@@ -1513,7 +1531,7 @@ const Yi = (e) => {
|
|
|
1513
1531
|
isLoading: g,
|
|
1514
1532
|
lastError: d
|
|
1515
1533
|
};
|
|
1516
|
-
},
|
|
1534
|
+
}, xd = ({
|
|
1517
1535
|
contextTitle: e,
|
|
1518
1536
|
contextDetails: t
|
|
1519
1537
|
}) => {
|
|
@@ -1523,7 +1541,7 @@ const Yi = (e) => {
|
|
|
1523
1541
|
history: a
|
|
1524
1542
|
} = gt(r);
|
|
1525
1543
|
return fr(a);
|
|
1526
|
-
},
|
|
1544
|
+
}, kd = ({
|
|
1527
1545
|
contextTitle: e,
|
|
1528
1546
|
contextDetails: t
|
|
1529
1547
|
}) => {
|
|
@@ -1540,18 +1558,18 @@ const Yi = (e) => {
|
|
|
1540
1558
|
}
|
|
1541
1559
|
return null;
|
|
1542
1560
|
}, [a]);
|
|
1543
|
-
},
|
|
1561
|
+
}, ao = 500, io = 500, oo = 500, no = 900, lo = /* @__PURE__ */ _("div", {
|
|
1544
1562
|
target: "e1ldv6710",
|
|
1545
1563
|
label: "ChatFrame"
|
|
1546
1564
|
})("box-sizing:border-box;position:relative;display:flex;flex-direction:column;border:1px solid #c6c9ce;border-radius:", ({
|
|
1547
1565
|
theme: e
|
|
1548
1566
|
}) => e.aiChat.borderRadius, ";background-color:", ({
|
|
1549
1567
|
theme: e
|
|
1550
|
-
}) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:",
|
|
1568
|
+
}) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:", ao, "px;min-height:", io, "px;width:", ({
|
|
1551
1569
|
width: e
|
|
1552
|
-
}) => e ? jt(e) : `${
|
|
1570
|
+
}) => e ? jt(e) : `${oo}px`, ";height:", ({
|
|
1553
1571
|
height: e
|
|
1554
|
-
}) => e ? jt(e) : `${
|
|
1572
|
+
}) => e ? jt(e) : `${no}px`, ";", ({
|
|
1555
1573
|
theme: e
|
|
1556
1574
|
}) => q`
|
|
1557
1575
|
font-size: ${e.aiChat.primaryFontSize[0]};
|
|
@@ -1562,7 +1580,7 @@ const Yi = (e) => {
|
|
|
1562
1580
|
function jt(e) {
|
|
1563
1581
|
return typeof e == "number" ? `${e}px` : e;
|
|
1564
1582
|
}
|
|
1565
|
-
function
|
|
1583
|
+
function so({
|
|
1566
1584
|
spin: e
|
|
1567
1585
|
}) {
|
|
1568
1586
|
return /* @__PURE__ */ v("svg", {
|
|
@@ -1590,12 +1608,12 @@ function Ue() {
|
|
|
1590
1608
|
return /* @__PURE__ */ o("div", {
|
|
1591
1609
|
className: "csdk-m-auto",
|
|
1592
1610
|
"aria-label": "loading spinner",
|
|
1593
|
-
children: /* @__PURE__ */ o(
|
|
1611
|
+
children: /* @__PURE__ */ o(so, {
|
|
1594
1612
|
spin: !0
|
|
1595
1613
|
})
|
|
1596
1614
|
});
|
|
1597
1615
|
}
|
|
1598
|
-
function
|
|
1616
|
+
function co({
|
|
1599
1617
|
theme: e
|
|
1600
1618
|
}) {
|
|
1601
1619
|
return /* @__PURE__ */ o("svg", {
|
|
@@ -1610,7 +1628,7 @@ function so({
|
|
|
1610
1628
|
})
|
|
1611
1629
|
});
|
|
1612
1630
|
}
|
|
1613
|
-
function
|
|
1631
|
+
function po({
|
|
1614
1632
|
theme: e
|
|
1615
1633
|
}) {
|
|
1616
1634
|
const t = e.aiChat.icons.color;
|
|
@@ -1632,17 +1650,17 @@ function co({
|
|
|
1632
1650
|
})]
|
|
1633
1651
|
});
|
|
1634
1652
|
}
|
|
1635
|
-
const
|
|
1653
|
+
const uo = /* @__PURE__ */ _("div", {
|
|
1636
1654
|
target: "e1q6h1ze0",
|
|
1637
1655
|
label: "Section"
|
|
1638
|
-
})("display:flex;flex-direction:column;row-gap:4px;"),
|
|
1656
|
+
})("display:flex;flex-direction:column;row-gap:4px;"), go = /* @__PURE__ */ _("div", {
|
|
1639
1657
|
target: "e1q6h1ze1",
|
|
1640
1658
|
label: "SectionHeader"
|
|
1641
1659
|
})("font-size:11px;line-height:18px;font-weight:300;color:", ({
|
|
1642
1660
|
theme: e
|
|
1643
1661
|
}) => e.aiChat.dropup.headers.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({
|
|
1644
1662
|
theme: e
|
|
1645
|
-
}) => e.aiChat.dropup.headers.hover.backgroundColor, ";}"),
|
|
1663
|
+
}) => e.aiChat.dropup.headers.hover.backgroundColor, ";}"), ho = /* @__PURE__ */ _("div", {
|
|
1646
1664
|
target: "e1q6h1ze2",
|
|
1647
1665
|
label: "DropupItem"
|
|
1648
1666
|
})("font-size:", ({
|
|
@@ -1654,7 +1672,7 @@ const po = /* @__PURE__ */ _("div", {
|
|
|
1654
1672
|
}) => e.aiChat.dropup.items.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({
|
|
1655
1673
|
theme: e
|
|
1656
1674
|
}) => e.aiChat.dropup.items.hover.backgroundColor, ";}");
|
|
1657
|
-
function
|
|
1675
|
+
function mo({
|
|
1658
1676
|
title: e,
|
|
1659
1677
|
items: t,
|
|
1660
1678
|
onSelect: r,
|
|
@@ -1663,19 +1681,19 @@ function ho({
|
|
|
1663
1681
|
const [i, l] = z(!1), {
|
|
1664
1682
|
themeSettings: d
|
|
1665
1683
|
} = D();
|
|
1666
|
-
return /* @__PURE__ */ v(
|
|
1667
|
-
children: [/* @__PURE__ */ o(
|
|
1684
|
+
return /* @__PURE__ */ v(uo, {
|
|
1685
|
+
children: [/* @__PURE__ */ o(go, {
|
|
1668
1686
|
onClick: () => l((u) => !u),
|
|
1669
1687
|
theme: d,
|
|
1670
1688
|
children: e.toUpperCase()
|
|
1671
|
-
}), (i || a) && t.map((u, c) => /* @__PURE__ */ o(
|
|
1689
|
+
}), (i || a) && t.map((u, c) => /* @__PURE__ */ o(ho, {
|
|
1672
1690
|
onClick: () => r(u),
|
|
1673
1691
|
theme: d,
|
|
1674
1692
|
children: u
|
|
1675
1693
|
}, c))]
|
|
1676
1694
|
});
|
|
1677
1695
|
}
|
|
1678
|
-
const
|
|
1696
|
+
const fo = /* @__PURE__ */ _("div", {
|
|
1679
1697
|
target: "e10x5x4a0",
|
|
1680
1698
|
label: "PopupContent"
|
|
1681
1699
|
})("font-family:", ({
|
|
@@ -1690,7 +1708,7 @@ const mo = /* @__PURE__ */ _("div", {
|
|
|
1690
1708
|
theme: e
|
|
1691
1709
|
}) => e.aiChat.dropup.borderRadius, ";box-shadow:", ({
|
|
1692
1710
|
theme: e
|
|
1693
|
-
}) => e.aiChat.dropup.boxShadow, ";padding-top:8px;padding-bottom:8px;display:flex;flex-direction:column;row-gap:4px;"),
|
|
1711
|
+
}) => e.aiChat.dropup.boxShadow, ";padding-top:8px;padding-bottom:8px;display:flex;flex-direction:column;row-gap:4px;"), bo = /* @__PURE__ */ _("div", {
|
|
1694
1712
|
target: "e10x5x4a1",
|
|
1695
1713
|
label: "ErrorMessage"
|
|
1696
1714
|
})("font-size:", ({
|
|
@@ -1700,7 +1718,7 @@ const mo = /* @__PURE__ */ _("div", {
|
|
|
1700
1718
|
}) => e.aiChat.primaryFontSize[1], ";color:", ({
|
|
1701
1719
|
theme: e
|
|
1702
1720
|
}) => e.aiChat.dropup.items.textColor, ";padding:4px 12px;"), it = (e) => e.startsWith("/");
|
|
1703
|
-
function
|
|
1721
|
+
function xo({
|
|
1704
1722
|
recentPrompts: e,
|
|
1705
1723
|
suggestions: t,
|
|
1706
1724
|
isLoading: r,
|
|
@@ -1735,14 +1753,14 @@ function bo({
|
|
|
1735
1753
|
sx: {
|
|
1736
1754
|
zIndex: 3
|
|
1737
1755
|
},
|
|
1738
|
-
children: /* @__PURE__ */ v(
|
|
1756
|
+
children: /* @__PURE__ */ v(fo, {
|
|
1739
1757
|
style: {
|
|
1740
1758
|
width: i == null ? void 0 : i.offsetWidth
|
|
1741
1759
|
},
|
|
1742
1760
|
theme: c,
|
|
1743
|
-
children: [r && /* @__PURE__ */ o(Ue, {}), !r && !d && u.map((f) => /* @__PURE__ */ o(
|
|
1761
|
+
children: [r && /* @__PURE__ */ o(Ue, {}), !r && !d && u.map((f) => /* @__PURE__ */ o(mo, T(I({}, f), {
|
|
1744
1762
|
alwaysExpanded: x
|
|
1745
|
-
}), f.title)), d && /* @__PURE__ */ o(
|
|
1763
|
+
}), f.title)), d && /* @__PURE__ */ o(bo, {
|
|
1746
1764
|
theme: c,
|
|
1747
1765
|
children: g("ai.errors.recommendationsNotAvailable")
|
|
1748
1766
|
})]
|
|
@@ -1785,15 +1803,15 @@ function Ae({
|
|
|
1785
1803
|
children: r
|
|
1786
1804
|
});
|
|
1787
1805
|
}
|
|
1788
|
-
const
|
|
1806
|
+
const ko = 500, yo = /* @__PURE__ */ _("div", {
|
|
1789
1807
|
target: "e6iwkw10",
|
|
1790
1808
|
label: "ChatInputContainer"
|
|
1791
1809
|
})("display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;background-color:", ({
|
|
1792
1810
|
theme: e
|
|
1793
|
-
}) => e.aiChat.backgroundColor, ";"),
|
|
1811
|
+
}) => e.aiChat.backgroundColor, ";"), wo = /* @__PURE__ */ _("button", {
|
|
1794
1812
|
target: "e6iwkw11",
|
|
1795
1813
|
label: "ClearHistoryButton"
|
|
1796
|
-
})("height:34px;background-color:inherit;cursor:pointer;border:none;"),
|
|
1814
|
+
})("height:34px;background-color:inherit;cursor:pointer;border:none;"), _o = /* @__PURE__ */ _("textarea", {
|
|
1797
1815
|
target: "e6iwkw12",
|
|
1798
1816
|
label: "TextInput"
|
|
1799
1817
|
})("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 ", ({
|
|
@@ -1802,7 +1820,7 @@ const xo = 500, ko = /* @__PURE__ */ _("div", {
|
|
|
1802
1820
|
theme: e
|
|
1803
1821
|
}) => e.aiChat.primaryTextColor, ";background-color:", ({
|
|
1804
1822
|
theme: e
|
|
1805
|
-
}) => e.aiChat.input.backgroundColor, ";"),
|
|
1823
|
+
}) => e.aiChat.input.backgroundColor, ";"), Co = /* @__PURE__ */ _("button", {
|
|
1806
1824
|
target: "e6iwkw13",
|
|
1807
1825
|
label: "SendMessageButton"
|
|
1808
1826
|
})("height:34px;background-color:inherit;border-style:none;color:", ({
|
|
@@ -1815,8 +1833,8 @@ const xo = 500, ko = /* @__PURE__ */ _("div", {
|
|
|
1815
1833
|
` : q`
|
|
1816
1834
|
opacity: 1;
|
|
1817
1835
|
cursor: pointer;
|
|
1818
|
-
`),
|
|
1819
|
-
function
|
|
1836
|
+
`), vo = 34;
|
|
1837
|
+
function So({
|
|
1820
1838
|
onSendMessage: e,
|
|
1821
1839
|
onClearHistoryClick: t,
|
|
1822
1840
|
disabled: r,
|
|
@@ -1845,7 +1863,7 @@ function vo({
|
|
|
1845
1863
|
u == null || u(y.target.value), g(y.target.value);
|
|
1846
1864
|
}, [u]), h = ce(null);
|
|
1847
1865
|
qe(() => {
|
|
1848
|
-
h.current && (h.current.style.height = "inherit", h.current.style.height = `${Math.max(h.current.scrollHeight + 2,
|
|
1866
|
+
h.current && (h.current.style.height = "inherit", h.current.style.height = `${Math.max(h.current.scrollHeight + 2, vo)}px`);
|
|
1849
1867
|
}, [c]), qe(() => {
|
|
1850
1868
|
h.current && h.current.focus({
|
|
1851
1869
|
preventScroll: !0
|
|
@@ -1867,9 +1885,9 @@ function vo({
|
|
|
1867
1885
|
document.addEventListener("mouseup", A), document.addEventListener("keyup", A);
|
|
1868
1886
|
}
|
|
1869
1887
|
}, []);
|
|
1870
|
-
return /* @__PURE__ */ v(
|
|
1888
|
+
return /* @__PURE__ */ v(yo, {
|
|
1871
1889
|
theme: m,
|
|
1872
|
-
children: [/* @__PURE__ */ o(
|
|
1890
|
+
children: [/* @__PURE__ */ o(xo, {
|
|
1873
1891
|
recentPrompts: a,
|
|
1874
1892
|
suggestions: i,
|
|
1875
1893
|
isLoading: l,
|
|
@@ -1880,17 +1898,17 @@ function vo({
|
|
|
1880
1898
|
}), t && /* @__PURE__ */ o(Ae, {
|
|
1881
1899
|
title: w("ai.buttons.clearChat"),
|
|
1882
1900
|
placement: "bottom-start",
|
|
1883
|
-
children: /* @__PURE__ */ o(
|
|
1901
|
+
children: /* @__PURE__ */ o(wo, {
|
|
1884
1902
|
"aria-label": "clear history",
|
|
1885
1903
|
onClick: t,
|
|
1886
|
-
children: /* @__PURE__ */ o(
|
|
1904
|
+
children: /* @__PURE__ */ o(po, {
|
|
1887
1905
|
theme: m
|
|
1888
1906
|
})
|
|
1889
1907
|
})
|
|
1890
|
-
}), /* @__PURE__ */ o(
|
|
1908
|
+
}), /* @__PURE__ */ o(_o, {
|
|
1891
1909
|
"aria-label": "chat input",
|
|
1892
1910
|
onBlur: C,
|
|
1893
|
-
maxLength:
|
|
1911
|
+
maxLength: ko,
|
|
1894
1912
|
ref: h,
|
|
1895
1913
|
rows: 1,
|
|
1896
1914
|
onChange: s,
|
|
@@ -1899,14 +1917,14 @@ function vo({
|
|
|
1899
1917
|
value: c,
|
|
1900
1918
|
onKeyDown: p,
|
|
1901
1919
|
theme: m
|
|
1902
|
-
}), /* @__PURE__ */ o(
|
|
1920
|
+
}), /* @__PURE__ */ o(Co, {
|
|
1903
1921
|
"aria-label": "send chat message",
|
|
1904
1922
|
disabled: r || c.length === 0,
|
|
1905
1923
|
onClick: f,
|
|
1906
1924
|
theme: m,
|
|
1907
1925
|
children: /* @__PURE__ */ o("span", {
|
|
1908
1926
|
"data-state": "closed",
|
|
1909
|
-
children: /* @__PURE__ */ o(
|
|
1927
|
+
children: /* @__PURE__ */ o(co, {
|
|
1910
1928
|
theme: m
|
|
1911
1929
|
})
|
|
1912
1930
|
})
|
|
@@ -1923,7 +1941,7 @@ function se() {
|
|
|
1923
1941
|
return e;
|
|
1924
1942
|
}, se.apply(this, arguments);
|
|
1925
1943
|
}
|
|
1926
|
-
const
|
|
1944
|
+
const Mo = ["children", "options"], k = {
|
|
1927
1945
|
blockQuote: "0",
|
|
1928
1946
|
breakLine: "1",
|
|
1929
1947
|
breakThematic: "2",
|
|
@@ -1973,7 +1991,7 @@ const Et = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
|
|
|
1973
1991
|
lt: "<",
|
|
1974
1992
|
nbsp: " ",
|
|
1975
1993
|
quot: "“"
|
|
1976
|
-
},
|
|
1994
|
+
}, Io = ["style", "script"], Do = ["src", "href", "data", "formAction", "srcDoc", "action"], Ao = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Lo = /mailto:/i, To = /\n{2,}$/, br = /^(\s*>[\s\S]*?)(?=\n\n|$)/, No = /^ *> ?/gm, jo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Oo = /^ {2,}\n/, Eo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, xr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, kr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, zo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Ro = /^(?:\n *)*\n/, Zo = /\r\n?/g, Wo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, qo = /^\[\^([^\]]+)]/, Go = /\f/g, Po = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Bo = /^\s*?\[(x|\s)\]/, yr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, wr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, _r = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ot = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Ho = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Cr = /^<!--[\s\S]*?(?:-->)/, Yo = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, nt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Uo = /^\{.*\}$/, Fo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Qo = /^<([^ >]+@[^ >]+)>/, $o = /^<([^ >]+:\/[^ >]+)>/, Vo = /-([a-z])?/gi, vr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Jo = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Xo = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Ko = /^\[([^\]]*)\] ?\[([^\]]*)\]/, en = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, tn = /\t/g, rn = /(^ *\||\| *$)/g, an = /^ *:-+: *$/, on = /^ *:-+ *$/, nn = /^ *-+: *$/, Fe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", ln = new RegExp(`^([*_])\\1${Fe}\\1\\1(?!\\1)`), dn = new RegExp(`^([*_])${Fe}\\1(?!\\1)`), sn = new RegExp(`^(==)${Fe}\\1`), cn = new RegExp(`^(~~)${Fe}\\1`), pn = /^\\([^0-9A-Za-z\s])/, Rt = /\\([^0-9A-Za-z\s])/g, un = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, gn = /^\n+/, hn = /^([ \t]*)/, mn = /\\([^\\])/g, fn = /(?:^|\n)( *)$/, ft = "(?:\\d+\\.)", bt = "(?:[*+-])";
|
|
1977
1995
|
function Sr(e) {
|
|
1978
1996
|
return "( *)(" + (e === 1 ? ft : bt) + ") +";
|
|
1979
1997
|
}
|
|
@@ -1981,26 +1999,26 @@ const Mr = Sr(1), Ir = Sr(2);
|
|
|
1981
1999
|
function Dr(e) {
|
|
1982
2000
|
return new RegExp("^" + (e === 1 ? Mr : Ir));
|
|
1983
2001
|
}
|
|
1984
|
-
const
|
|
2002
|
+
const bn = Dr(1), xn = Dr(2);
|
|
1985
2003
|
function Ar(e) {
|
|
1986
2004
|
return new RegExp("^" + (e === 1 ? Mr : Ir) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? ft : bt) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
1987
2005
|
}
|
|
1988
|
-
const
|
|
2006
|
+
const kn = Ar(1), yn = Ar(2);
|
|
1989
2007
|
function Lr(e) {
|
|
1990
2008
|
const t = e === 1 ? ft : bt;
|
|
1991
2009
|
return new RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
|
|
1992
2010
|
}
|
|
1993
2011
|
const Tr = Lr(1), Nr = Lr(2);
|
|
1994
2012
|
function Zt(e, t) {
|
|
1995
|
-
const r = t === 1, a = r ? Tr : Nr, i = r ?
|
|
2013
|
+
const r = t === 1, a = r ? Tr : Nr, i = r ? kn : yn, l = r ? bn : xn;
|
|
1996
2014
|
return {
|
|
1997
2015
|
match: me(function(d, u) {
|
|
1998
|
-
const c =
|
|
2016
|
+
const c = fn.exec(u.prevCapture);
|
|
1999
2017
|
return c && (u.list || !u.inline && !u.simple) ? a.exec(d = c[1] + d) : null;
|
|
2000
2018
|
}),
|
|
2001
2019
|
order: 1,
|
|
2002
2020
|
parse(d, u, c) {
|
|
2003
|
-
const g = r ? +d[2] : void 0, x = d[0].replace(
|
|
2021
|
+
const g = r ? +d[2] : void 0, x = d[0].replace(To, `
|
|
2004
2022
|
`).match(i);
|
|
2005
2023
|
let f = !1;
|
|
2006
2024
|
return {
|
|
@@ -2031,7 +2049,7 @@ function Zt(e, t) {
|
|
|
2031
2049
|
}))
|
|
2032
2050
|
};
|
|
2033
2051
|
}
|
|
2034
|
-
const
|
|
2052
|
+
const wn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), _n = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, jr = [br, xr, kr, yr, _r, wr, vr, Tr, Nr], Cn = [...jr, /^[^\n]+(?: \n|\n{2,})/, ot, Cr, nt];
|
|
2035
2053
|
function Me(e) {
|
|
2036
2054
|
let t = e.length;
|
|
2037
2055
|
for (; t > 0 && e[t - 1] <= " "; )
|
|
@@ -2041,8 +2059,8 @@ function Me(e) {
|
|
|
2041
2059
|
function we(e) {
|
|
2042
2060
|
return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
|
|
2043
2061
|
}
|
|
2044
|
-
function
|
|
2045
|
-
return
|
|
2062
|
+
function vn(e) {
|
|
2063
|
+
return nn.test(e) ? "right" : an.test(e) ? "center" : on.test(e) ? "left" : null;
|
|
2046
2064
|
}
|
|
2047
2065
|
function Wt(e, t, r, a) {
|
|
2048
2066
|
const i = r.inTable;
|
|
@@ -2058,9 +2076,9 @@ function Wt(e, t, r, a) {
|
|
|
2058
2076
|
c.trim() === "|" && (u(), a) ? g !== 0 && g !== x.length - 1 && l.push([]) : d += c;
|
|
2059
2077
|
}), u(), r.inTable = i, l;
|
|
2060
2078
|
}
|
|
2061
|
-
function
|
|
2079
|
+
function Sn(e, t, r) {
|
|
2062
2080
|
r.inline = !0;
|
|
2063
|
-
const a = e[2] ? e[2].replace(
|
|
2081
|
+
const a = e[2] ? e[2].replace(rn, "").split("|").map(vn) : [], i = e[3] ? function(d, u, c) {
|
|
2064
2082
|
return d.trim().split(`
|
|
2065
2083
|
`).map(function(g) {
|
|
2066
2084
|
return Wt(g, u, c, !0);
|
|
@@ -2104,7 +2122,7 @@ function _e(e) {
|
|
|
2104
2122
|
return e.exec(t);
|
|
2105
2123
|
});
|
|
2106
2124
|
}
|
|
2107
|
-
function
|
|
2125
|
+
function Mn(e, t) {
|
|
2108
2126
|
if (t.inline || t.simple)
|
|
2109
2127
|
return null;
|
|
2110
2128
|
let r = "";
|
|
@@ -2114,11 +2132,11 @@ function Sn(e, t) {
|
|
|
2114
2132
|
const a = Me(r);
|
|
2115
2133
|
return a == "" ? null : [r, , a];
|
|
2116
2134
|
}
|
|
2117
|
-
const
|
|
2118
|
-
function
|
|
2135
|
+
const In = /(javascript|vbscript|data(?!:image)):/i;
|
|
2136
|
+
function Dn(e) {
|
|
2119
2137
|
try {
|
|
2120
2138
|
const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
|
|
2121
|
-
if (
|
|
2139
|
+
if (In.test(t))
|
|
2122
2140
|
return null;
|
|
2123
2141
|
} catch {
|
|
2124
2142
|
return null;
|
|
@@ -2126,7 +2144,7 @@ function In(e) {
|
|
|
2126
2144
|
return e;
|
|
2127
2145
|
}
|
|
2128
2146
|
function Gt(e) {
|
|
2129
|
-
return e.replace(
|
|
2147
|
+
return e.replace(mn, "$1");
|
|
2130
2148
|
}
|
|
2131
2149
|
function Ze(e, t, r) {
|
|
2132
2150
|
const a = r.inline || !1, i = r.simple || !1;
|
|
@@ -2134,13 +2152,13 @@ function Ze(e, t, r) {
|
|
|
2134
2152
|
const l = e(t, r);
|
|
2135
2153
|
return r.inline = a, r.simple = i, l;
|
|
2136
2154
|
}
|
|
2137
|
-
function
|
|
2155
|
+
function An(e, t, r) {
|
|
2138
2156
|
const a = r.inline || !1, i = r.simple || !1;
|
|
2139
2157
|
r.inline = !1, r.simple = !0;
|
|
2140
2158
|
const l = e(t, r);
|
|
2141
2159
|
return r.inline = a, r.simple = i, l;
|
|
2142
2160
|
}
|
|
2143
|
-
function
|
|
2161
|
+
function Ln(e, t, r) {
|
|
2144
2162
|
const a = r.inline || !1;
|
|
2145
2163
|
r.inline = !1;
|
|
2146
2164
|
const i = e(t, r);
|
|
@@ -2155,7 +2173,7 @@ function Je() {
|
|
|
2155
2173
|
function Xe() {
|
|
2156
2174
|
return null;
|
|
2157
2175
|
}
|
|
2158
|
-
function
|
|
2176
|
+
function Tn(...e) {
|
|
2159
2177
|
return e.filter(Boolean).join(" ");
|
|
2160
2178
|
}
|
|
2161
2179
|
function Ke(e, t, r) {
|
|
@@ -2165,21 +2183,21 @@ function Ke(e, t, r) {
|
|
|
2165
2183
|
i.shift();
|
|
2166
2184
|
return a || r;
|
|
2167
2185
|
}
|
|
2168
|
-
function
|
|
2186
|
+
function Nn(e = "", t = {}) {
|
|
2169
2187
|
function r(n, p, ...s) {
|
|
2170
2188
|
const h = Ke(t.overrides, `${n}.props`, {});
|
|
2171
2189
|
return t.createElement(function(m, w) {
|
|
2172
2190
|
const C = Ke(w, m);
|
|
2173
2191
|
return C ? typeof C == "function" || typeof C == "object" && "render" in C ? C : Ke(w, `${m}.component`, m) : m;
|
|
2174
2192
|
}(n, t.overrides), se({}, p, h, {
|
|
2175
|
-
className:
|
|
2193
|
+
className: Tn(p == null ? void 0 : p.className, h.className) || void 0
|
|
2176
2194
|
}), ...s);
|
|
2177
2195
|
}
|
|
2178
2196
|
function a(n) {
|
|
2179
|
-
n = n.replace(
|
|
2197
|
+
n = n.replace(Po, "");
|
|
2180
2198
|
let p = !1;
|
|
2181
|
-
t.forceInline ? p = !0 : t.forceBlock || (p =
|
|
2182
|
-
const s = g(c(p ? n : `${Me(n).replace(
|
|
2199
|
+
t.forceInline ? p = !0 : t.forceBlock || (p = en.test(n) === !1);
|
|
2200
|
+
const s = g(c(p ? n : `${Me(n).replace(gn, "")}
|
|
2183
2201
|
|
|
2184
2202
|
`, {
|
|
2185
2203
|
inline: p
|
|
@@ -2204,12 +2222,12 @@ function Tn(e = "", t = {}) {
|
|
|
2204
2222
|
}, m);
|
|
2205
2223
|
}
|
|
2206
2224
|
function i(n, p) {
|
|
2207
|
-
const s = p.match(
|
|
2225
|
+
const s = p.match(Ao);
|
|
2208
2226
|
return s ? s.reduce(function(h, m) {
|
|
2209
2227
|
const w = m.indexOf("=");
|
|
2210
2228
|
if (w !== -1) {
|
|
2211
2229
|
const C = function(S) {
|
|
2212
|
-
return S.indexOf("-") !== -1 && S.match(
|
|
2230
|
+
return S.indexOf("-") !== -1 && S.match(Yo) === null && (S = S.replace(Vo, function(L, R) {
|
|
2213
2231
|
return R.toUpperCase();
|
|
2214
2232
|
})), S;
|
|
2215
2233
|
}(m.slice(0, w)).trim(), y = function(S) {
|
|
@@ -2251,7 +2269,7 @@ function Tn(e = "", t = {}) {
|
|
|
2251
2269
|
return H;
|
|
2252
2270
|
}(R).reduce(function(Q, [H, $]) {
|
|
2253
2271
|
return Q[H.replace(/(-[a-z])/g, (V) => V[1].toUpperCase())] = de($, S, H), Q;
|
|
2254
|
-
}, {}) :
|
|
2272
|
+
}, {}) : Do.indexOf(L) !== -1 ? de(R, S, L) : (R.match(Uo) && (R = R.slice(1, R.length - 1)), R === "true" || R !== "false" && R);
|
|
2255
2273
|
}(n, C, y, t.sanitizer);
|
|
2256
2274
|
typeof A == "string" && (ot.test(A) || nt.test(A)) && (h[M] = a(A.trim()));
|
|
2257
2275
|
} else
|
|
@@ -2259,13 +2277,13 @@ function Tn(e = "", t = {}) {
|
|
|
2259
2277
|
return h;
|
|
2260
2278
|
}, {}) : null;
|
|
2261
2279
|
}
|
|
2262
|
-
t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer ||
|
|
2280
|
+
t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Dn, t.slugify = t.slugify || we, t.namedCodesToUnicode = t.namedCodesToUnicode ? se({}, zt, t.namedCodesToUnicode) : zt, t.createElement = t.createElement || Wa;
|
|
2263
2281
|
const l = [], d = {}, u = {
|
|
2264
2282
|
[k.blockQuote]: {
|
|
2265
2283
|
match: ee(br),
|
|
2266
2284
|
order: 1,
|
|
2267
2285
|
parse(n, p, s) {
|
|
2268
|
-
const [, h, m] = n[0].replace(
|
|
2286
|
+
const [, h, m] = n[0].replace(No, "").match(jo);
|
|
2269
2287
|
return {
|
|
2270
2288
|
alert: h,
|
|
2271
2289
|
children: p(m, s)
|
|
@@ -2288,7 +2306,7 @@ function Tn(e = "", t = {}) {
|
|
|
2288
2306
|
}
|
|
2289
2307
|
},
|
|
2290
2308
|
[k.breakLine]: {
|
|
2291
|
-
match: _e(
|
|
2309
|
+
match: _e(Oo),
|
|
2292
2310
|
order: 1,
|
|
2293
2311
|
parse: Je,
|
|
2294
2312
|
render: (n, p, s) => r("br", {
|
|
@@ -2296,7 +2314,7 @@ function Tn(e = "", t = {}) {
|
|
|
2296
2314
|
})
|
|
2297
2315
|
},
|
|
2298
2316
|
[k.breakThematic]: {
|
|
2299
|
-
match: ee(
|
|
2317
|
+
match: ee(Eo),
|
|
2300
2318
|
order: 1,
|
|
2301
2319
|
parse: Je,
|
|
2302
2320
|
render: (n, p, s) => r("hr", {
|
|
@@ -2327,7 +2345,7 @@ function Tn(e = "", t = {}) {
|
|
|
2327
2345
|
})
|
|
2328
2346
|
},
|
|
2329
2347
|
[k.codeInline]: {
|
|
2330
|
-
match: oe(
|
|
2348
|
+
match: oe(zo),
|
|
2331
2349
|
order: 3,
|
|
2332
2350
|
parse: (n) => ({
|
|
2333
2351
|
text: n[2].replace(Rt, "$1")
|
|
@@ -2337,7 +2355,7 @@ function Tn(e = "", t = {}) {
|
|
|
2337
2355
|
}, n.text)
|
|
2338
2356
|
},
|
|
2339
2357
|
[k.footnote]: {
|
|
2340
|
-
match: ee(
|
|
2358
|
+
match: ee(Wo),
|
|
2341
2359
|
order: 0,
|
|
2342
2360
|
parse: (n) => (l.push({
|
|
2343
2361
|
footnote: n[2],
|
|
@@ -2346,7 +2364,7 @@ function Tn(e = "", t = {}) {
|
|
|
2346
2364
|
render: Xe
|
|
2347
2365
|
},
|
|
2348
2366
|
[k.footnoteReference]: {
|
|
2349
|
-
match: ie(
|
|
2367
|
+
match: ie(qo),
|
|
2350
2368
|
order: 1,
|
|
2351
2369
|
parse: (n) => ({
|
|
2352
2370
|
target: `#${t.slugify(n[1], we)}`,
|
|
@@ -2360,7 +2378,7 @@ function Tn(e = "", t = {}) {
|
|
|
2360
2378
|
}, n.text))
|
|
2361
2379
|
},
|
|
2362
2380
|
[k.gfmTask]: {
|
|
2363
|
-
match: ie(
|
|
2381
|
+
match: ie(Bo),
|
|
2364
2382
|
order: 1,
|
|
2365
2383
|
parse: (n) => ({
|
|
2366
2384
|
completed: n[1].toLowerCase() === "x"
|
|
@@ -2398,9 +2416,9 @@ function Tn(e = "", t = {}) {
|
|
|
2398
2416
|
match: _e(ot),
|
|
2399
2417
|
order: 1,
|
|
2400
2418
|
parse(n, p, s) {
|
|
2401
|
-
const [, h] = n[3].match(
|
|
2419
|
+
const [, h] = n[3].match(hn), m = new RegExp(`^${h}`, "gm"), w = n[3].replace(m, ""), C = (y = w, Cn.some((R) => R.test(y)) ? Ln : Ze);
|
|
2402
2420
|
var y;
|
|
2403
|
-
const M = n[1].toLowerCase(), A =
|
|
2421
|
+
const M = n[1].toLowerCase(), A = Io.indexOf(M) !== -1, S = (A ? M : n[1]).trim(), L = {
|
|
2404
2422
|
attrs: i(S, n[2]),
|
|
2405
2423
|
noInnerParse: A,
|
|
2406
2424
|
tag: S
|
|
@@ -2432,7 +2450,7 @@ function Tn(e = "", t = {}) {
|
|
|
2432
2450
|
render: Xe
|
|
2433
2451
|
},
|
|
2434
2452
|
[k.image]: {
|
|
2435
|
-
match: oe(
|
|
2453
|
+
match: oe(_n),
|
|
2436
2454
|
order: 1,
|
|
2437
2455
|
parse: (n) => ({
|
|
2438
2456
|
alt: n[1],
|
|
@@ -2447,10 +2465,10 @@ function Tn(e = "", t = {}) {
|
|
|
2447
2465
|
})
|
|
2448
2466
|
},
|
|
2449
2467
|
[k.link]: {
|
|
2450
|
-
match: ie(
|
|
2468
|
+
match: ie(wn),
|
|
2451
2469
|
order: 3,
|
|
2452
2470
|
parse: (n, p, s) => ({
|
|
2453
|
-
children:
|
|
2471
|
+
children: An(p, n[1], s),
|
|
2454
2472
|
target: Gt(n[2]),
|
|
2455
2473
|
title: n[3]
|
|
2456
2474
|
}),
|
|
@@ -2461,7 +2479,7 @@ function Tn(e = "", t = {}) {
|
|
|
2461
2479
|
}, p(n.children, s))
|
|
2462
2480
|
},
|
|
2463
2481
|
[k.linkAngleBraceStyleDetector]: {
|
|
2464
|
-
match: ie(
|
|
2482
|
+
match: ie($o),
|
|
2465
2483
|
order: 0,
|
|
2466
2484
|
parse: (n) => ({
|
|
2467
2485
|
children: [{
|
|
@@ -2473,7 +2491,7 @@ function Tn(e = "", t = {}) {
|
|
|
2473
2491
|
})
|
|
2474
2492
|
},
|
|
2475
2493
|
[k.linkBareUrlDetector]: {
|
|
2476
|
-
match: me((n, p) => p.inAnchor || t.disableAutoLink ? null : ie(
|
|
2494
|
+
match: me((n, p) => p.inAnchor || t.disableAutoLink ? null : ie(Fo)(n, p)),
|
|
2477
2495
|
order: 0,
|
|
2478
2496
|
parse: (n) => ({
|
|
2479
2497
|
children: [{
|
|
@@ -2486,11 +2504,11 @@ function Tn(e = "", t = {}) {
|
|
|
2486
2504
|
})
|
|
2487
2505
|
},
|
|
2488
2506
|
[k.linkMailtoDetector]: {
|
|
2489
|
-
match: ie(
|
|
2507
|
+
match: ie(Qo),
|
|
2490
2508
|
order: 0,
|
|
2491
2509
|
parse(n) {
|
|
2492
2510
|
let p = n[1], s = n[1];
|
|
2493
|
-
return
|
|
2511
|
+
return Lo.test(s) || (s = "mailto:" + s), {
|
|
2494
2512
|
children: [{
|
|
2495
2513
|
text: p.replace("mailto:", ""),
|
|
2496
2514
|
type: k.text
|
|
@@ -2503,14 +2521,14 @@ function Tn(e = "", t = {}) {
|
|
|
2503
2521
|
[k.orderedList]: Zt(r, 1),
|
|
2504
2522
|
[k.unorderedList]: Zt(r, 2),
|
|
2505
2523
|
[k.newlineCoalescer]: {
|
|
2506
|
-
match: ee(
|
|
2524
|
+
match: ee(Ro),
|
|
2507
2525
|
order: 3,
|
|
2508
2526
|
parse: Je,
|
|
2509
2527
|
render: () => `
|
|
2510
2528
|
`
|
|
2511
2529
|
},
|
|
2512
2530
|
[k.paragraph]: {
|
|
2513
|
-
match: me(
|
|
2531
|
+
match: me(Mn),
|
|
2514
2532
|
order: 3,
|
|
2515
2533
|
parse: Ve,
|
|
2516
2534
|
render: (n, p, s) => r("p", {
|
|
@@ -2518,7 +2536,7 @@ function Tn(e = "", t = {}) {
|
|
|
2518
2536
|
}, p(n.children, s))
|
|
2519
2537
|
},
|
|
2520
2538
|
[k.ref]: {
|
|
2521
|
-
match: ie(
|
|
2539
|
+
match: ie(Jo),
|
|
2522
2540
|
order: 0,
|
|
2523
2541
|
parse: (n) => (d[n[1]] = {
|
|
2524
2542
|
target: n[2],
|
|
@@ -2527,7 +2545,7 @@ function Tn(e = "", t = {}) {
|
|
|
2527
2545
|
render: Xe
|
|
2528
2546
|
},
|
|
2529
2547
|
[k.refImage]: {
|
|
2530
|
-
match: oe(
|
|
2548
|
+
match: oe(Xo),
|
|
2531
2549
|
order: 0,
|
|
2532
2550
|
parse: (n) => ({
|
|
2533
2551
|
alt: n[1] || void 0,
|
|
@@ -2541,7 +2559,7 @@ function Tn(e = "", t = {}) {
|
|
|
2541
2559
|
}) : null
|
|
2542
2560
|
},
|
|
2543
2561
|
[k.refLink]: {
|
|
2544
|
-
match: ie(
|
|
2562
|
+
match: ie(Ko),
|
|
2545
2563
|
order: 0,
|
|
2546
2564
|
parse: (n, p, s) => ({
|
|
2547
2565
|
children: p(n[1], s),
|
|
@@ -2559,7 +2577,7 @@ function Tn(e = "", t = {}) {
|
|
|
2559
2577
|
[k.table]: {
|
|
2560
2578
|
match: ee(vr),
|
|
2561
2579
|
order: 1,
|
|
2562
|
-
parse:
|
|
2580
|
+
parse: Sn,
|
|
2563
2581
|
render(n, p, s) {
|
|
2564
2582
|
const h = n;
|
|
2565
2583
|
return r("table", {
|
|
@@ -2582,15 +2600,15 @@ function Tn(e = "", t = {}) {
|
|
|
2582
2600
|
}
|
|
2583
2601
|
},
|
|
2584
2602
|
[k.text]: {
|
|
2585
|
-
match: _e(
|
|
2603
|
+
match: _e(un),
|
|
2586
2604
|
order: 4,
|
|
2587
2605
|
parse: (n) => ({
|
|
2588
|
-
text: n[0].replace(
|
|
2606
|
+
text: n[0].replace(Ho, (p, s) => t.namedCodesToUnicode[s] ? t.namedCodesToUnicode[s] : p)
|
|
2589
2607
|
}),
|
|
2590
2608
|
render: (n) => n.text
|
|
2591
2609
|
},
|
|
2592
2610
|
[k.textBolded]: {
|
|
2593
|
-
match: oe(
|
|
2611
|
+
match: oe(ln),
|
|
2594
2612
|
order: 2,
|
|
2595
2613
|
parse: (n, p, s) => ({
|
|
2596
2614
|
children: p(n[2], s)
|
|
@@ -2600,7 +2618,7 @@ function Tn(e = "", t = {}) {
|
|
|
2600
2618
|
}, p(n.children, s))
|
|
2601
2619
|
},
|
|
2602
2620
|
[k.textEmphasized]: {
|
|
2603
|
-
match: oe(
|
|
2621
|
+
match: oe(dn),
|
|
2604
2622
|
order: 3,
|
|
2605
2623
|
parse: (n, p, s) => ({
|
|
2606
2624
|
children: p(n[2], s)
|
|
@@ -2610,7 +2628,7 @@ function Tn(e = "", t = {}) {
|
|
|
2610
2628
|
}, p(n.children, s))
|
|
2611
2629
|
},
|
|
2612
2630
|
[k.textEscaped]: {
|
|
2613
|
-
match: oe(
|
|
2631
|
+
match: oe(pn),
|
|
2614
2632
|
order: 1,
|
|
2615
2633
|
parse: (n) => ({
|
|
2616
2634
|
text: n[1],
|
|
@@ -2618,7 +2636,7 @@ function Tn(e = "", t = {}) {
|
|
|
2618
2636
|
})
|
|
2619
2637
|
},
|
|
2620
2638
|
[k.textMarked]: {
|
|
2621
|
-
match: oe(
|
|
2639
|
+
match: oe(sn),
|
|
2622
2640
|
order: 3,
|
|
2623
2641
|
parse: Ve,
|
|
2624
2642
|
render: (n, p, s) => r("mark", {
|
|
@@ -2626,7 +2644,7 @@ function Tn(e = "", t = {}) {
|
|
|
2626
2644
|
}, p(n.children, s))
|
|
2627
2645
|
},
|
|
2628
2646
|
[k.textStrikethroughed]: {
|
|
2629
|
-
match: oe(
|
|
2647
|
+
match: oe(cn),
|
|
2630
2648
|
order: 3,
|
|
2631
2649
|
parse: Ve,
|
|
2632
2650
|
render: (n, p, s) => r("del", {
|
|
@@ -2661,8 +2679,8 @@ function Tn(e = "", t = {}) {
|
|
|
2661
2679
|
return w !== C ? w - C : h < m ? -1 : 1;
|
|
2662
2680
|
}), function(h, m) {
|
|
2663
2681
|
return s(function(w) {
|
|
2664
|
-
return w.replace(
|
|
2665
|
-
`).replace(
|
|
2682
|
+
return w.replace(Zo, `
|
|
2683
|
+
`).replace(Go, "").replace(tn, " ");
|
|
2666
2684
|
}(h), m);
|
|
2667
2685
|
};
|
|
2668
2686
|
}(u), g = (x = /* @__PURE__ */ function(n, p) {
|
|
@@ -2696,7 +2714,7 @@ function Tn(e = "", t = {}) {
|
|
|
2696
2714
|
})));
|
|
2697
2715
|
}))) : f;
|
|
2698
2716
|
}
|
|
2699
|
-
const
|
|
2717
|
+
const jn = (e) => {
|
|
2700
2718
|
let {
|
|
2701
2719
|
children: t = "",
|
|
2702
2720
|
options: r
|
|
@@ -2707,9 +2725,9 @@ const Nn = (e) => {
|
|
|
2707
2725
|
for (u = 0; u < g.length; u++)
|
|
2708
2726
|
l.indexOf(d = g[u]) >= 0 || (c[d] = i[d]);
|
|
2709
2727
|
return c;
|
|
2710
|
-
}(e,
|
|
2711
|
-
return Ra(
|
|
2712
|
-
},
|
|
2728
|
+
}(e, Mo);
|
|
2729
|
+
return Ra(Nn(t, r), a);
|
|
2730
|
+
}, On = /* @__PURE__ */ _("div", {
|
|
2713
2731
|
target: "e1vkf9b40",
|
|
2714
2732
|
label: "FlexContainer"
|
|
2715
2733
|
})("display:flex;", ({
|
|
@@ -2745,19 +2763,19 @@ const Nn = (e) => {
|
|
|
2745
2763
|
const {
|
|
2746
2764
|
themeSettings: r
|
|
2747
2765
|
} = D();
|
|
2748
|
-
return /* @__PURE__ */ o(
|
|
2766
|
+
return /* @__PURE__ */ o(On, {
|
|
2749
2767
|
theme: r,
|
|
2750
2768
|
align: e,
|
|
2751
2769
|
children: /* @__PURE__ */ o(Or, {
|
|
2752
2770
|
theme: r,
|
|
2753
2771
|
align: e,
|
|
2754
|
-
children: typeof t == "string" ? /* @__PURE__ */ o(
|
|
2772
|
+
children: typeof t == "string" ? /* @__PURE__ */ o(jn, {
|
|
2755
2773
|
children: t
|
|
2756
2774
|
}) : t
|
|
2757
2775
|
})
|
|
2758
2776
|
});
|
|
2759
2777
|
};
|
|
2760
|
-
function
|
|
2778
|
+
function En() {
|
|
2761
2779
|
const {
|
|
2762
2780
|
welcomeText: e
|
|
2763
2781
|
} = re();
|
|
@@ -2766,15 +2784,15 @@ function On() {
|
|
|
2766
2784
|
children: e
|
|
2767
2785
|
});
|
|
2768
2786
|
}
|
|
2769
|
-
const
|
|
2787
|
+
const zn = /* @__PURE__ */ _("div", {
|
|
2770
2788
|
target: "e1r5p4wy0",
|
|
2771
2789
|
label: "Container"
|
|
2772
|
-
})("margin:auto;display:flex;flex-direction:column;align-items:center;row-gap:21px;"),
|
|
2790
|
+
})("margin:auto;display:flex;flex-direction:column;align-items:center;row-gap:21px;"), Rn = /* @__PURE__ */ _("div", {
|
|
2773
2791
|
target: "e1r5p4wy1",
|
|
2774
2792
|
label: "Title"
|
|
2775
2793
|
})("color:", ({
|
|
2776
2794
|
theme: e
|
|
2777
|
-
}) => e.aiChat.primaryTextColor, ";text-align:center;font-weight:600;"),
|
|
2795
|
+
}) => e.aiChat.primaryTextColor, ";text-align:center;font-weight:600;"), Zn = /* @__PURE__ */ _("div", {
|
|
2778
2796
|
target: "e1r5p4wy2",
|
|
2779
2797
|
label: "ActionButton"
|
|
2780
2798
|
})("color:rgba(54,163,217,1);cursor:pointer;");
|
|
@@ -2785,11 +2803,11 @@ function Er({
|
|
|
2785
2803
|
const {
|
|
2786
2804
|
themeSettings: r
|
|
2787
2805
|
} = D();
|
|
2788
|
-
return /* @__PURE__ */ v(
|
|
2789
|
-
children: [/* @__PURE__ */ o(
|
|
2806
|
+
return /* @__PURE__ */ v(zn, {
|
|
2807
|
+
children: [/* @__PURE__ */ o(Rn, {
|
|
2790
2808
|
theme: r,
|
|
2791
2809
|
children: e
|
|
2792
|
-
}), /* @__PURE__ */ o(Ma, {}), t && /* @__PURE__ */ o(
|
|
2810
|
+
}), /* @__PURE__ */ o(Ma, {}), t && /* @__PURE__ */ o(Zn, {
|
|
2793
2811
|
onClick: t.onClick,
|
|
2794
2812
|
children: t.text
|
|
2795
2813
|
})]
|
|
@@ -2817,7 +2835,7 @@ function xt() {
|
|
|
2817
2835
|
})]
|
|
2818
2836
|
});
|
|
2819
2837
|
}
|
|
2820
|
-
const
|
|
2838
|
+
const Wn = /* @__PURE__ */ _("div", {
|
|
2821
2839
|
target: "ed5z2fc0",
|
|
2822
2840
|
label: "FlexContainer"
|
|
2823
2841
|
})("display:flex;", ({
|
|
@@ -2826,7 +2844,7 @@ const Zn = /* @__PURE__ */ _("div", {
|
|
|
2826
2844
|
justify-content: flex-end;
|
|
2827
2845
|
` : q`
|
|
2828
2846
|
justify-content: flex-start;
|
|
2829
|
-
`),
|
|
2847
|
+
`), qn = /* @__PURE__ */ _("button", {
|
|
2830
2848
|
target: "ed5z2fc1",
|
|
2831
2849
|
label: "MessageButton"
|
|
2832
2850
|
})("font-family:inherit;font-size:inherit;line-height:inherit;border:", ({
|
|
@@ -2891,9 +2909,9 @@ function Pe({
|
|
|
2891
2909
|
const {
|
|
2892
2910
|
themeSettings: d
|
|
2893
2911
|
} = D();
|
|
2894
|
-
return /* @__PURE__ */ o(
|
|
2912
|
+
return /* @__PURE__ */ o(Wn, {
|
|
2895
2913
|
align: t,
|
|
2896
|
-
children: /* @__PURE__ */ o(
|
|
2914
|
+
children: /* @__PURE__ */ o(qn, {
|
|
2897
2915
|
"aria-label": l,
|
|
2898
2916
|
theme: d,
|
|
2899
2917
|
onClick: r,
|
|
@@ -2904,7 +2922,7 @@ function Pe({
|
|
|
2904
2922
|
})
|
|
2905
2923
|
});
|
|
2906
2924
|
}
|
|
2907
|
-
function
|
|
2925
|
+
function Gn({
|
|
2908
2926
|
onCancel: e,
|
|
2909
2927
|
onConfirm: t
|
|
2910
2928
|
}) {
|
|
@@ -2937,19 +2955,19 @@ function qn({
|
|
|
2937
2955
|
})]
|
|
2938
2956
|
});
|
|
2939
2957
|
}
|
|
2940
|
-
function
|
|
2958
|
+
function Pn(e) {
|
|
2941
2959
|
return Na("MuiDialog", e);
|
|
2942
2960
|
}
|
|
2943
2961
|
const et = da("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), zr = /* @__PURE__ */ Be({});
|
|
2944
2962
|
process.env.NODE_ENV !== "production" && (zr.displayName = "DialogContext");
|
|
2945
|
-
const
|
|
2963
|
+
const Bn = He(sa, {
|
|
2946
2964
|
name: "MuiDialog",
|
|
2947
2965
|
slot: "Backdrop",
|
|
2948
2966
|
overrides: (e, t) => t.backdrop
|
|
2949
2967
|
})({
|
|
2950
2968
|
// Improve scrollable dialog support.
|
|
2951
2969
|
zIndex: -1
|
|
2952
|
-
}),
|
|
2970
|
+
}), Hn = (e) => {
|
|
2953
2971
|
const {
|
|
2954
2972
|
classes: t,
|
|
2955
2973
|
scroll: r,
|
|
@@ -2961,8 +2979,8 @@ const Pn = He(sa, {
|
|
|
2961
2979
|
container: ["container", `scroll${he(r)}`],
|
|
2962
2980
|
paper: ["paper", `paperScroll${he(r)}`, `paperWidth${he(String(a))}`, i && "paperFullWidth", l && "paperFullScreen"]
|
|
2963
2981
|
};
|
|
2964
|
-
return _a(d,
|
|
2965
|
-
},
|
|
2982
|
+
return _a(d, Pn, t);
|
|
2983
|
+
}, Yn = He(ca, {
|
|
2966
2984
|
name: "MuiDialog",
|
|
2967
2985
|
slot: "Root",
|
|
2968
2986
|
overridesResolver: (e, t) => t.root
|
|
@@ -2971,7 +2989,7 @@ const Pn = He(sa, {
|
|
|
2971
2989
|
// Use !important to override the Modal inline-style.
|
|
2972
2990
|
position: "absolute !important"
|
|
2973
2991
|
}
|
|
2974
|
-
}),
|
|
2992
|
+
}), Un = He("div", {
|
|
2975
2993
|
name: "MuiDialog",
|
|
2976
2994
|
slot: "Container",
|
|
2977
2995
|
overridesResolver: (e, t) => {
|
|
@@ -3013,7 +3031,7 @@ const Pn = He(sa, {
|
|
|
3013
3031
|
}
|
|
3014
3032
|
}
|
|
3015
3033
|
}]
|
|
3016
|
-
}),
|
|
3034
|
+
}), Fn = He(Qt, {
|
|
3017
3035
|
name: "MuiDialog",
|
|
3018
3036
|
slot: "Paper",
|
|
3019
3037
|
overridesResolver: (e, t) => {
|
|
@@ -3142,7 +3160,7 @@ const Pn = He(sa, {
|
|
|
3142
3160
|
fullWidth: h,
|
|
3143
3161
|
maxWidth: m,
|
|
3144
3162
|
scroll: L
|
|
3145
|
-
}), K =
|
|
3163
|
+
}), K = Hn(W), E = ce(), U = (ue) => {
|
|
3146
3164
|
E.current = ue.target === ue.currentTarget;
|
|
3147
3165
|
}, P = (ue) => {
|
|
3148
3166
|
C && C(ue), E.current && (E.current = null, w && w(ue), y && y(ue, "backdropClick"));
|
|
@@ -3158,25 +3176,25 @@ const Pn = He(sa, {
|
|
|
3158
3176
|
slots: xe,
|
|
3159
3177
|
slotProps: j
|
|
3160
3178
|
}, [Te, Ne] = ke("root", {
|
|
3161
|
-
elementType:
|
|
3179
|
+
elementType: Yn,
|
|
3162
3180
|
shouldForwardComponentProp: !0,
|
|
3163
3181
|
externalForwardedProps: B,
|
|
3164
3182
|
ownerState: W,
|
|
3165
3183
|
className: $e(K.root, n),
|
|
3166
3184
|
ref: t
|
|
3167
3185
|
}), [Gr, Pr] = ke("backdrop", {
|
|
3168
|
-
elementType:
|
|
3186
|
+
elementType: Bn,
|
|
3169
3187
|
shouldForwardComponentProp: !0,
|
|
3170
3188
|
externalForwardedProps: B,
|
|
3171
3189
|
ownerState: W
|
|
3172
3190
|
}), [Br, Hr] = ke("paper", {
|
|
3173
|
-
elementType:
|
|
3191
|
+
elementType: Fn,
|
|
3174
3192
|
shouldForwardComponentProp: !0,
|
|
3175
3193
|
externalForwardedProps: B,
|
|
3176
3194
|
ownerState: W,
|
|
3177
3195
|
className: $e(K.paper, S.className)
|
|
3178
3196
|
}), [Yr, Ur] = ke("container", {
|
|
3179
|
-
elementType:
|
|
3197
|
+
elementType: Un,
|
|
3180
3198
|
externalForwardedProps: B,
|
|
3181
3199
|
ownerState: W,
|
|
3182
3200
|
className: $e(K.container)
|
|
@@ -3391,7 +3409,7 @@ process.env.NODE_ENV !== "production" && (Rr.propTypes = {
|
|
|
3391
3409
|
*/
|
|
3392
3410
|
TransitionProps: b.object
|
|
3393
3411
|
});
|
|
3394
|
-
function
|
|
3412
|
+
function Qn({
|
|
3395
3413
|
fillColor: e = "#262E3D"
|
|
3396
3414
|
}) {
|
|
3397
3415
|
return /* @__PURE__ */ v("svg", {
|
|
@@ -3500,9 +3518,9 @@ const Zr = {
|
|
|
3500
3518
|
errorBG: "rgba(231, 71, 39, 0.1)"
|
|
3501
3519
|
}
|
|
3502
3520
|
}
|
|
3503
|
-
},
|
|
3521
|
+
}, $n = {
|
|
3504
3522
|
shouldForwardProp: (e) => !e.startsWith("$")
|
|
3505
|
-
}, Le = /* @__PURE__ */ _(tr,
|
|
3523
|
+
}, Le = /* @__PURE__ */ _(tr, $n, {
|
|
3506
3524
|
target: "e869yoj0",
|
|
3507
3525
|
label: "IconButton"
|
|
3508
3526
|
})(({
|
|
@@ -3513,7 +3531,7 @@ const Zr = {
|
|
|
3513
3531
|
backgroundColor: e ?? Zr.interaction.defaultHover
|
|
3514
3532
|
}
|
|
3515
3533
|
}));
|
|
3516
|
-
function
|
|
3534
|
+
function Vn({
|
|
3517
3535
|
fill: e = "rgba(38, 46, 61, 0.67)"
|
|
3518
3536
|
}) {
|
|
3519
3537
|
return /* @__PURE__ */ o("svg", {
|
|
@@ -3530,7 +3548,7 @@ function $n({
|
|
|
3530
3548
|
})
|
|
3531
3549
|
});
|
|
3532
3550
|
}
|
|
3533
|
-
function
|
|
3551
|
+
function Jn({
|
|
3534
3552
|
fill: e = "rgba(38, 46, 61, 0.67)"
|
|
3535
3553
|
}) {
|
|
3536
3554
|
return /* @__PURE__ */ o("svg", {
|
|
@@ -3547,7 +3565,7 @@ function Vn({
|
|
|
3547
3565
|
})
|
|
3548
3566
|
});
|
|
3549
3567
|
}
|
|
3550
|
-
function
|
|
3568
|
+
function Xn() {
|
|
3551
3569
|
return /* @__PURE__ */ o("svg", {
|
|
3552
3570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3553
3571
|
width: "24",
|
|
@@ -3563,7 +3581,7 @@ function Jn() {
|
|
|
3563
3581
|
})
|
|
3564
3582
|
});
|
|
3565
3583
|
}
|
|
3566
|
-
const kt = (e) => er(e.chart.backgroundColor),
|
|
3584
|
+
const kt = (e) => er(e.chart.backgroundColor), Kn = ({
|
|
3567
3585
|
title: e
|
|
3568
3586
|
}) => {
|
|
3569
3587
|
const {
|
|
@@ -3574,12 +3592,12 @@ const kt = (e) => er(e.chart.backgroundColor), Xn = ({
|
|
|
3574
3592
|
children: /* @__PURE__ */ o(Le, {
|
|
3575
3593
|
disableTouchRipple: !0,
|
|
3576
3594
|
$hoverColor: kt(t),
|
|
3577
|
-
children: /* @__PURE__ */ o(
|
|
3595
|
+
children: /* @__PURE__ */ o(Jn, {
|
|
3578
3596
|
fill: t.chart.textColor
|
|
3579
3597
|
})
|
|
3580
3598
|
})
|
|
3581
3599
|
});
|
|
3582
|
-
},
|
|
3600
|
+
}, el = ({
|
|
3583
3601
|
items: e
|
|
3584
3602
|
}) => {
|
|
3585
3603
|
const [t, r] = z(null), a = (d) => {
|
|
@@ -3626,7 +3644,7 @@ const kt = (e) => er(e.chart.backgroundColor), Xn = ({
|
|
|
3626
3644
|
}, d.title))
|
|
3627
3645
|
})]
|
|
3628
3646
|
});
|
|
3629
|
-
},
|
|
3647
|
+
}, tl = ({
|
|
3630
3648
|
onClick: e
|
|
3631
3649
|
}) => {
|
|
3632
3650
|
const {
|
|
@@ -3639,16 +3657,16 @@ const kt = (e) => er(e.chart.backgroundColor), Xn = ({
|
|
|
3639
3657
|
children: /* @__PURE__ */ o(Le, {
|
|
3640
3658
|
onClick: e,
|
|
3641
3659
|
$hoverColor: kt(t),
|
|
3642
|
-
children: /* @__PURE__ */ o(
|
|
3660
|
+
children: /* @__PURE__ */ o(Vn, {
|
|
3643
3661
|
fill: t.chart.textColor
|
|
3644
3662
|
})
|
|
3645
3663
|
})
|
|
3646
3664
|
});
|
|
3647
|
-
},
|
|
3665
|
+
}, rl = /* @__PURE__ */ _("div", {
|
|
3648
3666
|
target: "e1cseu7j0",
|
|
3649
3667
|
label: "ToolbarContainer"
|
|
3650
3668
|
})("display:flex;padding-top:6px;padding-bottom:6px;");
|
|
3651
|
-
function
|
|
3669
|
+
function al({
|
|
3652
3670
|
infoTooltipText: e,
|
|
3653
3671
|
onRefresh: t,
|
|
3654
3672
|
onExpand: r
|
|
@@ -3656,20 +3674,20 @@ function rl({
|
|
|
3656
3674
|
const a = G(() => [{
|
|
3657
3675
|
title: "Refresh",
|
|
3658
3676
|
onClick: t,
|
|
3659
|
-
icon: /* @__PURE__ */ o(
|
|
3677
|
+
icon: /* @__PURE__ */ o(Xn, {})
|
|
3660
3678
|
}], [t]);
|
|
3661
|
-
return /* @__PURE__ */ v(
|
|
3679
|
+
return /* @__PURE__ */ v(rl, {
|
|
3662
3680
|
"aria-label": "chatbot chart toolbar",
|
|
3663
|
-
children: [/* @__PURE__ */ o(
|
|
3681
|
+
children: [/* @__PURE__ */ o(Kn, {
|
|
3664
3682
|
title: e ?? ""
|
|
3665
|
-
}), /* @__PURE__ */ o(Kn, {
|
|
3666
|
-
items: a
|
|
3667
3683
|
}), /* @__PURE__ */ o(el, {
|
|
3684
|
+
items: a
|
|
3685
|
+
}), /* @__PURE__ */ o(tl, {
|
|
3668
3686
|
onClick: r
|
|
3669
3687
|
})]
|
|
3670
3688
|
});
|
|
3671
3689
|
}
|
|
3672
|
-
function
|
|
3690
|
+
function il({
|
|
3673
3691
|
content: e
|
|
3674
3692
|
}) {
|
|
3675
3693
|
const [t, r] = z(!1), {
|
|
@@ -3690,7 +3708,7 @@ function al({
|
|
|
3690
3708
|
} = d, g = {
|
|
3691
3709
|
cornerRadius: "Small",
|
|
3692
3710
|
header: {
|
|
3693
|
-
renderToolbar: (n) => /* @__PURE__ */ o(
|
|
3711
|
+
renderToolbar: (n) => /* @__PURE__ */ o(al, {
|
|
3694
3712
|
infoTooltipText: u,
|
|
3695
3713
|
onRefresh: n,
|
|
3696
3714
|
onExpand: () => r(!0)
|
|
@@ -3756,7 +3774,7 @@ function al({
|
|
|
3756
3774
|
}), /* @__PURE__ */ o(tr, {
|
|
3757
3775
|
onClick: () => r(!1),
|
|
3758
3776
|
"aria-label": "close expanded chart",
|
|
3759
|
-
children: /* @__PURE__ */ o(
|
|
3777
|
+
children: /* @__PURE__ */ o(Qn, {
|
|
3760
3778
|
fillColor: a.aiChat.primaryTextColor
|
|
3761
3779
|
})
|
|
3762
3780
|
})]
|
|
@@ -3767,7 +3785,7 @@ function al({
|
|
|
3767
3785
|
})]
|
|
3768
3786
|
});
|
|
3769
3787
|
}
|
|
3770
|
-
function
|
|
3788
|
+
function ol({
|
|
3771
3789
|
theme: e
|
|
3772
3790
|
}) {
|
|
3773
3791
|
return /* @__PURE__ */ o("svg", {
|
|
@@ -3784,7 +3802,7 @@ function il({
|
|
|
3784
3802
|
})
|
|
3785
3803
|
});
|
|
3786
3804
|
}
|
|
3787
|
-
function
|
|
3805
|
+
function nl({
|
|
3788
3806
|
onClick: e,
|
|
3789
3807
|
disabled: t
|
|
3790
3808
|
}) {
|
|
@@ -3800,13 +3818,13 @@ function ol({
|
|
|
3800
3818
|
onClick: e,
|
|
3801
3819
|
$hoverColor: r.aiChat.icons.feedbackIcons.hoverColor,
|
|
3802
3820
|
disabled: t,
|
|
3803
|
-
children: /* @__PURE__ */ o(
|
|
3821
|
+
children: /* @__PURE__ */ o(ol, {
|
|
3804
3822
|
theme: r
|
|
3805
3823
|
})
|
|
3806
3824
|
})
|
|
3807
3825
|
});
|
|
3808
3826
|
}
|
|
3809
|
-
function
|
|
3827
|
+
function ll({
|
|
3810
3828
|
theme: e
|
|
3811
3829
|
}) {
|
|
3812
3830
|
return /* @__PURE__ */ o("svg", {
|
|
@@ -3823,7 +3841,7 @@ function nl({
|
|
|
3823
3841
|
})
|
|
3824
3842
|
});
|
|
3825
3843
|
}
|
|
3826
|
-
function
|
|
3844
|
+
function dl({
|
|
3827
3845
|
onClick: e,
|
|
3828
3846
|
disabled: t
|
|
3829
3847
|
}) {
|
|
@@ -3839,13 +3857,13 @@ function ll({
|
|
|
3839
3857
|
onClick: e,
|
|
3840
3858
|
$hoverColor: r.aiChat.icons.feedbackIcons.hoverColor,
|
|
3841
3859
|
disabled: t,
|
|
3842
|
-
children: /* @__PURE__ */ o(
|
|
3860
|
+
children: /* @__PURE__ */ o(ll, {
|
|
3843
3861
|
theme: r
|
|
3844
3862
|
})
|
|
3845
3863
|
})
|
|
3846
3864
|
});
|
|
3847
3865
|
}
|
|
3848
|
-
const
|
|
3866
|
+
const sl = () => {
|
|
3849
3867
|
const [e, t] = z(!1), r = ce(null), a = N(() => {
|
|
3850
3868
|
t(!0);
|
|
3851
3869
|
}, []), i = N(() => {
|
|
@@ -3855,13 +3873,13 @@ const dl = () => {
|
|
|
3855
3873
|
var d;
|
|
3856
3874
|
((d = r.current) == null ? void 0 : d.nodeType) === Node.ELEMENT_NODE && (r.current.removeEventListener("mouseenter", a), r.current.removeEventListener("mouseleave", i)), (l == null ? void 0 : l.nodeType) === Node.ELEMENT_NODE && (l.addEventListener("mouseenter", a), l.addEventListener("mouseleave", i)), r.current = l;
|
|
3857
3875
|
}, [a, i]), e];
|
|
3858
|
-
},
|
|
3876
|
+
}, cl = /* @__PURE__ */ _("div", {
|
|
3859
3877
|
target: "e2xyvaw0",
|
|
3860
3878
|
label: "Container"
|
|
3861
3879
|
})("display:flex;flex-direction:column;row-gap:", ({
|
|
3862
3880
|
theme: e
|
|
3863
3881
|
}) => e.aiChat.body.gapBetweenMessages, ";");
|
|
3864
|
-
function
|
|
3882
|
+
function pl({
|
|
3865
3883
|
visible: e,
|
|
3866
3884
|
onSend: t
|
|
3867
3885
|
}) {
|
|
@@ -3870,10 +3888,10 @@ function cl({
|
|
|
3870
3888
|
}, [t]);
|
|
3871
3889
|
return e ? /* @__PURE__ */ v("div", {
|
|
3872
3890
|
className: `csdk-flex csdk-items-center ${`csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${r ? "csdk-opacity-0" : "csdk-opacity-100"}`}`,
|
|
3873
|
-
children: [/* @__PURE__ */ o(
|
|
3891
|
+
children: [/* @__PURE__ */ o(dl, {
|
|
3874
3892
|
onClick: () => i("up"),
|
|
3875
3893
|
disabled: r
|
|
3876
|
-
}), /* @__PURE__ */ o(
|
|
3894
|
+
}), /* @__PURE__ */ o(nl, {
|
|
3877
3895
|
onClick: () => i("down"),
|
|
3878
3896
|
disabled: r
|
|
3879
3897
|
})]
|
|
@@ -3893,19 +3911,19 @@ function lt({
|
|
|
3893
3911
|
data: t,
|
|
3894
3912
|
rating: f
|
|
3895
3913
|
});
|
|
3896
|
-
}, [l, e, t, r]), 200), [u, c] =
|
|
3914
|
+
}, [l, e, t, r]), 200), [u, c] = sl(), g = G(() => a === "onHover" ? c : a !== "never", [c, a]), {
|
|
3897
3915
|
themeSettings: x
|
|
3898
3916
|
} = D();
|
|
3899
|
-
return /* @__PURE__ */ o(
|
|
3917
|
+
return /* @__PURE__ */ o(cl, {
|
|
3900
3918
|
ref: u,
|
|
3901
3919
|
theme: x,
|
|
3902
|
-
children: i(/* @__PURE__ */ o(
|
|
3920
|
+
children: i(/* @__PURE__ */ o(pl, {
|
|
3903
3921
|
onSend: d,
|
|
3904
3922
|
visible: g
|
|
3905
3923
|
}))
|
|
3906
3924
|
});
|
|
3907
3925
|
}
|
|
3908
|
-
const
|
|
3926
|
+
const ul = 18 * 5;
|
|
3909
3927
|
function yt({
|
|
3910
3928
|
text: e
|
|
3911
3929
|
}) {
|
|
@@ -3913,7 +3931,7 @@ function yt({
|
|
|
3913
3931
|
t: l
|
|
3914
3932
|
} = O(), d = ce(null);
|
|
3915
3933
|
return qe(() => {
|
|
3916
|
-
d.current && d.current.scrollHeight >
|
|
3934
|
+
d.current && d.current.scrollHeight > ul && i(!0);
|
|
3917
3935
|
}, [e]), /* @__PURE__ */ v("div", {
|
|
3918
3936
|
children: [/* @__PURE__ */ o("div", {
|
|
3919
3937
|
ref: d,
|
|
@@ -3929,7 +3947,7 @@ function yt({
|
|
|
3929
3947
|
})]
|
|
3930
3948
|
});
|
|
3931
3949
|
}
|
|
3932
|
-
function
|
|
3950
|
+
function gl({
|
|
3933
3951
|
nlgRequest: e
|
|
3934
3952
|
}) {
|
|
3935
3953
|
const {
|
|
@@ -3949,7 +3967,7 @@ function ul({
|
|
|
3949
3967
|
})
|
|
3950
3968
|
});
|
|
3951
3969
|
}
|
|
3952
|
-
function
|
|
3970
|
+
function hl() {
|
|
3953
3971
|
const {
|
|
3954
3972
|
themeSettings: e
|
|
3955
3973
|
} = D();
|
|
@@ -3967,7 +3985,7 @@ function gl() {
|
|
|
3967
3985
|
})
|
|
3968
3986
|
});
|
|
3969
3987
|
}
|
|
3970
|
-
function
|
|
3988
|
+
function ml({
|
|
3971
3989
|
onClick: e
|
|
3972
3990
|
}) {
|
|
3973
3991
|
const {
|
|
@@ -3978,16 +3996,16 @@ function hl({
|
|
|
3978
3996
|
onClick: e,
|
|
3979
3997
|
children: /* @__PURE__ */ v("div", {
|
|
3980
3998
|
className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
|
|
3981
|
-
children: [/* @__PURE__ */ o(
|
|
3999
|
+
children: [/* @__PURE__ */ o(hl, {}), t("ai.buttons.insights")]
|
|
3982
4000
|
})
|
|
3983
4001
|
});
|
|
3984
4002
|
}
|
|
3985
|
-
var
|
|
4003
|
+
var fl = Pa("toLowerCase");
|
|
3986
4004
|
const Pt = /* @__PURE__ */ _("div", {
|
|
3987
4005
|
target: "etljahs0",
|
|
3988
4006
|
label: "FlexRow"
|
|
3989
|
-
})("display:flex;align-items:center;column-gap:10px;"),
|
|
3990
|
-
function
|
|
4007
|
+
})("display:flex;align-items:center;column-gap:10px;"), bl = (e) => !!e && "aeiou".includes(e[0]);
|
|
4008
|
+
function xl({
|
|
3991
4009
|
data: e,
|
|
3992
4010
|
alwaysShowFeedback: t
|
|
3993
4011
|
}) {
|
|
@@ -4006,7 +4024,7 @@ function bl({
|
|
|
4006
4024
|
console.debug(`JAQL for ${l}`, u), console.debug(`chart recommendations for ${l}`, d);
|
|
4007
4025
|
const x = "chartType" in d ? d.chartType : "table";
|
|
4008
4026
|
let f;
|
|
4009
|
-
|
|
4027
|
+
bl(x) ? f = `an ${x}` : f = `a ${x}`, x !== "table" && (f += " chart");
|
|
4010
4028
|
const n = u.datasource.title, [p, s] = z(!1), h = N(() => {
|
|
4011
4029
|
s((y) => !y);
|
|
4012
4030
|
}, []), m = {
|
|
@@ -4027,9 +4045,9 @@ function bl({
|
|
|
4027
4045
|
children: [/* @__PURE__ */ o(Or, {
|
|
4028
4046
|
align: "left",
|
|
4029
4047
|
theme: i,
|
|
4030
|
-
children: C || `Here's ${f} showing ${
|
|
4048
|
+
children: C || `Here's ${f} showing ${fl(l)}.`
|
|
4031
4049
|
}), y]
|
|
4032
|
-
}), w && /* @__PURE__ */ o(
|
|
4050
|
+
}), w && /* @__PURE__ */ o(il, {
|
|
4033
4051
|
content: e
|
|
4034
4052
|
})]
|
|
4035
4053
|
})
|
|
@@ -4040,41 +4058,41 @@ function bl({
|
|
|
4040
4058
|
buttonVisibility: p ? "onHover" : "never",
|
|
4041
4059
|
renderContent: (y) => /* @__PURE__ */ v(Y, {
|
|
4042
4060
|
children: [/* @__PURE__ */ v(Pt, {
|
|
4043
|
-
children: [/* @__PURE__ */ o(
|
|
4061
|
+
children: [/* @__PURE__ */ o(ml, {
|
|
4044
4062
|
onClick: h
|
|
4045
4063
|
}), y]
|
|
4046
|
-
}), p && /* @__PURE__ */ o(
|
|
4064
|
+
}), p && /* @__PURE__ */ o(gl, {
|
|
4047
4065
|
nlgRequest: m
|
|
4048
4066
|
})]
|
|
4049
4067
|
})
|
|
4050
4068
|
})]
|
|
4051
4069
|
});
|
|
4052
4070
|
}
|
|
4053
|
-
function
|
|
4071
|
+
function kl({
|
|
4054
4072
|
message: e,
|
|
4055
4073
|
isLastMessage: t
|
|
4056
4074
|
}) {
|
|
4057
4075
|
if (mt(e)) {
|
|
4058
4076
|
const a = JSON.parse(e.content);
|
|
4059
|
-
return /* @__PURE__ */ o(
|
|
4077
|
+
return /* @__PURE__ */ o(xl, {
|
|
4060
4078
|
data: a,
|
|
4061
4079
|
alwaysShowFeedback: t
|
|
4062
4080
|
});
|
|
4063
4081
|
}
|
|
4064
|
-
const r =
|
|
4082
|
+
const r = to(e) ? JSON.parse(e.content).answer : e.content;
|
|
4065
4083
|
return /* @__PURE__ */ o(le, {
|
|
4066
4084
|
align: e.role === "user" ? "right" : "left",
|
|
4067
4085
|
children: r
|
|
4068
4086
|
});
|
|
4069
4087
|
}
|
|
4070
|
-
const
|
|
4088
|
+
const yl = /* @__PURE__ */ Za(kl), wl = ({
|
|
4071
4089
|
error: e,
|
|
4072
4090
|
displayMessage: t
|
|
4073
4091
|
}) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ o(le, {
|
|
4074
4092
|
align: "left",
|
|
4075
4093
|
children: t
|
|
4076
4094
|
}));
|
|
4077
|
-
function
|
|
4095
|
+
function _l({
|
|
4078
4096
|
messages: e
|
|
4079
4097
|
}) {
|
|
4080
4098
|
const {
|
|
@@ -4082,10 +4100,10 @@ function wl({
|
|
|
4082
4100
|
} = O();
|
|
4083
4101
|
return /* @__PURE__ */ o(Y, {
|
|
4084
4102
|
children: e.map((r, a) => /* @__PURE__ */ o(Oa, {
|
|
4085
|
-
fallbackRender: (i) =>
|
|
4103
|
+
fallbackRender: (i) => wl(T(I({}, i), {
|
|
4086
4104
|
displayMessage: t("ai.errors.unexpected")
|
|
4087
4105
|
})),
|
|
4088
|
-
children: /* @__PURE__ */ o(
|
|
4106
|
+
children: /* @__PURE__ */ o(yl, {
|
|
4089
4107
|
message: r,
|
|
4090
4108
|
isLastMessage: a === e.length - 1
|
|
4091
4109
|
}, a)
|
|
@@ -4107,7 +4125,7 @@ function Wr({
|
|
|
4107
4125
|
})
|
|
4108
4126
|
});
|
|
4109
4127
|
}
|
|
4110
|
-
function
|
|
4128
|
+
function Cl({
|
|
4111
4129
|
onClick: e,
|
|
4112
4130
|
color: t
|
|
4113
4131
|
}) {
|
|
@@ -4120,7 +4138,7 @@ function _l({
|
|
|
4120
4138
|
})
|
|
4121
4139
|
});
|
|
4122
4140
|
}
|
|
4123
|
-
const
|
|
4141
|
+
const vl = /* @__PURE__ */ _("button", {
|
|
4124
4142
|
target: "e1p0q0z20",
|
|
4125
4143
|
label: "Button"
|
|
4126
4144
|
})("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:", ({
|
|
@@ -4175,19 +4193,19 @@ function Bt({
|
|
|
4175
4193
|
const {
|
|
4176
4194
|
themeSettings: r
|
|
4177
4195
|
} = D();
|
|
4178
|
-
return /* @__PURE__ */ o(
|
|
4196
|
+
return /* @__PURE__ */ o(vl, {
|
|
4179
4197
|
onClick: t,
|
|
4180
4198
|
theme: r,
|
|
4181
4199
|
children: e
|
|
4182
4200
|
});
|
|
4183
4201
|
}
|
|
4184
|
-
const
|
|
4202
|
+
const Sl = /* @__PURE__ */ _("div", {
|
|
4185
4203
|
target: "eu11cc50",
|
|
4186
4204
|
label: "ListContainer"
|
|
4187
4205
|
})("display:flex;flex-direction:column;align-items:flex-start;row-gap:", ({
|
|
4188
4206
|
theme: e
|
|
4189
4207
|
}) => e.aiChat.suggestions.gap, ";");
|
|
4190
|
-
function
|
|
4208
|
+
function Ml({
|
|
4191
4209
|
questions: e,
|
|
4192
4210
|
onSelection: t
|
|
4193
4211
|
}) {
|
|
@@ -4196,7 +4214,7 @@ function Sl({
|
|
|
4196
4214
|
} = O(), [a, i] = z(!0), l = G(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
|
|
4197
4215
|
themeSettings: d
|
|
4198
4216
|
} = D();
|
|
4199
|
-
return /* @__PURE__ */ v(
|
|
4217
|
+
return /* @__PURE__ */ v(Sl, {
|
|
4200
4218
|
"aria-label": "list of suggested questions",
|
|
4201
4219
|
theme: d,
|
|
4202
4220
|
children: [l.map((u) => /* @__PURE__ */ o(Bt, {
|
|
@@ -4208,7 +4226,7 @@ function Sl({
|
|
|
4208
4226
|
})]
|
|
4209
4227
|
});
|
|
4210
4228
|
}
|
|
4211
|
-
const
|
|
4229
|
+
const Il = /* @__PURE__ */ _("div", {
|
|
4212
4230
|
target: "ebwb3nc0",
|
|
4213
4231
|
label: "Row"
|
|
4214
4232
|
})("width:283px;height:32px;border-radius:10px;background:", ({
|
|
@@ -4221,23 +4239,23 @@ const Ml = /* @__PURE__ */ _("div", {
|
|
|
4221
4239
|
${r} 50%,
|
|
4222
4240
|
${t} 100%
|
|
4223
4241
|
)`;
|
|
4224
|
-
}, ";background-size:200% auto;animation:gradient 2s linear infinite;@keyframes gradient{0%{background-position:0 0;}100%{background-position:-200% 0;}}"),
|
|
4242
|
+
}, ";background-size:200% auto;animation:gradient 2s linear infinite;@keyframes gradient{0%{background-position:0 0;}100%{background-position:-200% 0;}}"), Dl = /* @__PURE__ */ _("div", {
|
|
4225
4243
|
target: "ebwb3nc1",
|
|
4226
4244
|
label: "SkeletonContainer"
|
|
4227
4245
|
})("display:flex;flex-direction:column;row-gap:1rem;");
|
|
4228
|
-
function
|
|
4246
|
+
function Al() {
|
|
4229
4247
|
const {
|
|
4230
4248
|
themeSettings: e
|
|
4231
4249
|
} = D();
|
|
4232
|
-
return /* @__PURE__ */ o(
|
|
4250
|
+
return /* @__PURE__ */ o(Dl, {
|
|
4233
4251
|
children: Array.from({
|
|
4234
4252
|
length: 3
|
|
4235
|
-
}, (t, r) => /* @__PURE__ */ o(
|
|
4253
|
+
}, (t, r) => /* @__PURE__ */ o(Il, {
|
|
4236
4254
|
theme: e
|
|
4237
4255
|
}, r))
|
|
4238
4256
|
});
|
|
4239
4257
|
}
|
|
4240
|
-
function
|
|
4258
|
+
function Ll({
|
|
4241
4259
|
questions: e,
|
|
4242
4260
|
isLoading: t,
|
|
4243
4261
|
onSelection: r
|
|
@@ -4245,22 +4263,22 @@ function Al({
|
|
|
4245
4263
|
const a = e.length > 0, {
|
|
4246
4264
|
suggestionsWelcomeText: i
|
|
4247
4265
|
} = re();
|
|
4248
|
-
return t ? /* @__PURE__ */ o(
|
|
4266
|
+
return t ? /* @__PURE__ */ o(Al, {}) : a ? /* @__PURE__ */ v(Y, {
|
|
4249
4267
|
children: [i && /* @__PURE__ */ o(le, {
|
|
4250
4268
|
align: "left",
|
|
4251
4269
|
children: i
|
|
4252
|
-
}), /* @__PURE__ */ o(
|
|
4270
|
+
}), /* @__PURE__ */ o(Ml, {
|
|
4253
4271
|
onSelection: r,
|
|
4254
4272
|
questions: e
|
|
4255
4273
|
})]
|
|
4256
4274
|
}) : null;
|
|
4257
4275
|
}
|
|
4258
|
-
const
|
|
4276
|
+
const Tl = /* @__PURE__ */ _("div", {
|
|
4259
4277
|
target: "ew7avl30",
|
|
4260
4278
|
label: "ToolbarContainer"
|
|
4261
4279
|
})("flex:0 0 80px;padding-left:14px;padding-right:14px;display:flex;align-items:center;position:relative;background-color:", ({
|
|
4262
4280
|
style: e
|
|
4263
|
-
}) => e.backgroundColor, ";"),
|
|
4281
|
+
}) => e.backgroundColor, ";"), Nl = /* @__PURE__ */ _("div", {
|
|
4264
4282
|
target: "ew7avl31",
|
|
4265
4283
|
label: "ToolbarTitle"
|
|
4266
4284
|
})("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({
|
|
@@ -4271,10 +4289,10 @@ const Ll = /* @__PURE__ */ _("div", {
|
|
|
4271
4289
|
rightNav: r,
|
|
4272
4290
|
style: a
|
|
4273
4291
|
}, i) {
|
|
4274
|
-
return /* @__PURE__ */ v(
|
|
4292
|
+
return /* @__PURE__ */ v(Tl, {
|
|
4275
4293
|
ref: i,
|
|
4276
4294
|
style: a,
|
|
4277
|
-
children: [t, /* @__PURE__ */ o(
|
|
4295
|
+
children: [t, /* @__PURE__ */ o(Nl, {
|
|
4278
4296
|
style: a,
|
|
4279
4297
|
children: e
|
|
4280
4298
|
}), r && /* @__PURE__ */ o("div", {
|
|
@@ -4282,19 +4300,19 @@ const Ll = /* @__PURE__ */ _("div", {
|
|
|
4282
4300
|
children: r
|
|
4283
4301
|
})]
|
|
4284
4302
|
});
|
|
4285
|
-
}),
|
|
4303
|
+
}), jl = /* @__PURE__ */ _("div", {
|
|
4286
4304
|
target: "e14yc7id0",
|
|
4287
4305
|
label: "AiDisclaimerContainer"
|
|
4288
4306
|
})("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:", ({
|
|
4289
4307
|
theme: e
|
|
4290
4308
|
}) => e.aiChat.secondaryTextColor, ";");
|
|
4291
|
-
function
|
|
4309
|
+
function Ol({
|
|
4292
4310
|
theme: e
|
|
4293
4311
|
}) {
|
|
4294
4312
|
const {
|
|
4295
4313
|
t
|
|
4296
4314
|
} = O();
|
|
4297
|
-
return /* @__PURE__ */ v(
|
|
4315
|
+
return /* @__PURE__ */ v(jl, {
|
|
4298
4316
|
theme: e,
|
|
4299
4317
|
children: [/* @__PURE__ */ o("div", {
|
|
4300
4318
|
children: t("ai.disclaimer.poweredByAi")
|
|
@@ -4303,7 +4321,7 @@ function jl({
|
|
|
4303
4321
|
})]
|
|
4304
4322
|
});
|
|
4305
4323
|
}
|
|
4306
|
-
function
|
|
4324
|
+
function El() {
|
|
4307
4325
|
const {
|
|
4308
4326
|
themeSettings: e
|
|
4309
4327
|
} = D();
|
|
@@ -4321,15 +4339,15 @@ function Ol() {
|
|
|
4321
4339
|
})
|
|
4322
4340
|
});
|
|
4323
4341
|
}
|
|
4324
|
-
const
|
|
4342
|
+
const zl = (e, t) => {
|
|
4325
4343
|
const r = new qa(e);
|
|
4326
4344
|
return r.alpha = t, r;
|
|
4327
|
-
},
|
|
4345
|
+
}, Rl = /* @__PURE__ */ _("div", {
|
|
4328
4346
|
target: "e1rxvpki0",
|
|
4329
4347
|
label: "Container"
|
|
4330
4348
|
})("font-size:inherit;line-height:inherit;padding-left:8px;padding-right:8px;padding-top:4px;border-radius:16px;margin-bottom:4px;box-shadow:", ({
|
|
4331
4349
|
theme: e
|
|
4332
|
-
}) => `0 4px 8px 0 ${
|
|
4350
|
+
}) => `0 4px 8px 0 ${zl(e.aiChat.primaryTextColor, 0.2)}`, ";cursor:pointer;color:", ({
|
|
4333
4351
|
theme: e
|
|
4334
4352
|
}) => e.aiChat.clickableMessages.textColor, ";background-color:", ({
|
|
4335
4353
|
theme: e
|
|
@@ -4337,18 +4355,18 @@ const El = (e, t) => {
|
|
|
4337
4355
|
theme: e
|
|
4338
4356
|
}) => e.aiChat.clickableMessages.hover.textColor, ";background-color:", ({
|
|
4339
4357
|
theme: e
|
|
4340
|
-
}) => e.aiChat.clickableMessages.hover.backgroundColor, ";box-shadow:none;"),
|
|
4358
|
+
}) => e.aiChat.clickableMessages.hover.backgroundColor, ";box-shadow:none;"), Zl = ({
|
|
4341
4359
|
onClick: e
|
|
4342
4360
|
}) => {
|
|
4343
4361
|
const {
|
|
4344
4362
|
themeSettings: t
|
|
4345
4363
|
} = D();
|
|
4346
|
-
return /* @__PURE__ */ o(
|
|
4364
|
+
return /* @__PURE__ */ o(Rl, {
|
|
4347
4365
|
theme: t,
|
|
4348
4366
|
onClick: e,
|
|
4349
|
-
children: /* @__PURE__ */ o(
|
|
4367
|
+
children: /* @__PURE__ */ o(El, {})
|
|
4350
4368
|
});
|
|
4351
|
-
},
|
|
4369
|
+
}, Wl = ({
|
|
4352
4370
|
isVisible: e,
|
|
4353
4371
|
onClick: t,
|
|
4354
4372
|
anchorElement: r
|
|
@@ -4359,10 +4377,10 @@ const El = (e, t) => {
|
|
|
4359
4377
|
sx: {
|
|
4360
4378
|
zIndex: 2
|
|
4361
4379
|
},
|
|
4362
|
-
children: /* @__PURE__ */ o(
|
|
4380
|
+
children: /* @__PURE__ */ o(Zl, {
|
|
4363
4381
|
onClick: t
|
|
4364
4382
|
})
|
|
4365
|
-
}),
|
|
4383
|
+
}), ql = /* @__PURE__ */ _("div", {
|
|
4366
4384
|
target: "ednrf320",
|
|
4367
4385
|
label: "ChatBody"
|
|
4368
4386
|
})("display:flex;flex-direction:column;row-gap:", ({
|
|
@@ -4375,7 +4393,7 @@ const El = (e, t) => {
|
|
|
4375
4393
|
theme: e
|
|
4376
4394
|
}) => e.aiChat.body.paddingTop, ";padding-bottom:", ({
|
|
4377
4395
|
theme: e
|
|
4378
|
-
}) => e.aiChat.body.paddingBottom, ";flex:initial;height:100%;"),
|
|
4396
|
+
}) => e.aiChat.body.paddingBottom, ";flex:initial;height:100%;"), Gl = /* @__PURE__ */ _("div", {
|
|
4379
4397
|
target: "ednrf321",
|
|
4380
4398
|
label: "ChatFooter"
|
|
4381
4399
|
})("padding-left:", ({
|
|
@@ -4386,13 +4404,13 @@ const El = (e, t) => {
|
|
|
4386
4404
|
theme: e
|
|
4387
4405
|
}) => e.aiChat.footer.paddingTop, ";padding-bottom:", ({
|
|
4388
4406
|
theme: e
|
|
4389
|
-
}) => e.aiChat.footer.paddingBottom, ";display:flex;flex-direction:column;row-gap:6px;"),
|
|
4407
|
+
}) => e.aiChat.footer.paddingBottom, ";display:flex;flex-direction:column;row-gap:6px;"), Pl = /* @__PURE__ */ _("div", {
|
|
4390
4408
|
target: "ednrf322",
|
|
4391
4409
|
label: "FollowupQuestionsContainer"
|
|
4392
4410
|
})("display:flex;flex-direction:column;row-gap:", ({
|
|
4393
4411
|
theme: e
|
|
4394
4412
|
}) => e.aiChat.suggestions.gap, ";");
|
|
4395
|
-
function
|
|
4413
|
+
function Bl({
|
|
4396
4414
|
contextTitle: e,
|
|
4397
4415
|
onGoBack: t,
|
|
4398
4416
|
contextDetails: r
|
|
@@ -4422,7 +4440,7 @@ function Pl({
|
|
|
4422
4440
|
isLoading: M,
|
|
4423
4441
|
chatId: A,
|
|
4424
4442
|
lastError: S
|
|
4425
|
-
} =
|
|
4443
|
+
} = ro(e, r), {
|
|
4426
4444
|
mutate: L,
|
|
4427
4445
|
isLoading: R
|
|
4428
4446
|
} = mr(A), [de, Q] = z(!1), [H, $] = z(!1), V = () => Q(!0), W = () => Q(!1), K = () => {
|
|
@@ -4446,7 +4464,7 @@ function Pl({
|
|
|
4446
4464
|
const F = ce(null), ae = c ? /* @__PURE__ */ o(qr, {
|
|
4447
4465
|
ref: F,
|
|
4448
4466
|
title: e,
|
|
4449
|
-
leftNav: t && /* @__PURE__ */ o(
|
|
4467
|
+
leftNav: t && /* @__PURE__ */ o(Cl, {
|
|
4450
4468
|
onClick: t,
|
|
4451
4469
|
color: f.aiChat.header.textColor
|
|
4452
4470
|
}),
|
|
@@ -4457,11 +4475,11 @@ function Pl({
|
|
|
4457
4475
|
text: S.message
|
|
4458
4476
|
})]
|
|
4459
4477
|
}) : /* @__PURE__ */ v(Y, {
|
|
4460
|
-
children: [ae, /* @__PURE__ */ v(
|
|
4478
|
+
children: [ae, /* @__PURE__ */ v(ql, {
|
|
4461
4479
|
ref: E,
|
|
4462
4480
|
theme: f,
|
|
4463
4481
|
onScroll: P,
|
|
4464
|
-
children: [/* @__PURE__ */ o(
|
|
4482
|
+
children: [/* @__PURE__ */ o(Wl, {
|
|
4465
4483
|
isVisible: H,
|
|
4466
4484
|
anchorElement: U.current,
|
|
4467
4485
|
onClick: () => {
|
|
@@ -4471,16 +4489,16 @@ function Pl({
|
|
|
4471
4489
|
behavior: "smooth"
|
|
4472
4490
|
});
|
|
4473
4491
|
}
|
|
4474
|
-
}), /* @__PURE__ */ o(
|
|
4492
|
+
}), /* @__PURE__ */ o(En, {}), /* @__PURE__ */ o(Ll, {
|
|
4475
4493
|
questions: h || [],
|
|
4476
4494
|
isLoading: p,
|
|
4477
4495
|
onSelection: y
|
|
4478
4496
|
}), S && /* @__PURE__ */ o(le, {
|
|
4479
4497
|
align: "left",
|
|
4480
4498
|
children: S.message
|
|
4481
|
-
}), M ? /* @__PURE__ */ o(Ue, {}) : /* @__PURE__ */ o(
|
|
4499
|
+
}), M ? /* @__PURE__ */ o(Ue, {}) : /* @__PURE__ */ o(_l, {
|
|
4482
4500
|
messages: m
|
|
4483
|
-
}), u && w && ((i = (a = w.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ o(
|
|
4501
|
+
}), u && w && ((i = (a = w.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ o(Pl, {
|
|
4484
4502
|
theme: f,
|
|
4485
4503
|
children: (l = w.followupQuestions) == null ? void 0 : l.slice(0, 2).map((j, B) => /* @__PURE__ */ o(Pe, {
|
|
4486
4504
|
align: "left",
|
|
@@ -4492,14 +4510,14 @@ function Pl({
|
|
|
4492
4510
|
children: j
|
|
4493
4511
|
})
|
|
4494
4512
|
}, B))
|
|
4495
|
-
}), (C || R) && /* @__PURE__ */ o(xt, {}), de && /* @__PURE__ */ o(
|
|
4513
|
+
}), (C || R) && /* @__PURE__ */ o(xt, {}), de && /* @__PURE__ */ o(Gn, {
|
|
4496
4514
|
onCancel: W,
|
|
4497
4515
|
onConfirm: K
|
|
4498
4516
|
})]
|
|
4499
|
-
}), /* @__PURE__ */ v(
|
|
4517
|
+
}), /* @__PURE__ */ v(Gl, {
|
|
4500
4518
|
ref: U,
|
|
4501
4519
|
theme: f,
|
|
4502
|
-
children: [/* @__PURE__ */ o(
|
|
4520
|
+
children: [/* @__PURE__ */ o(So, {
|
|
4503
4521
|
onSendMessage: y,
|
|
4504
4522
|
disabled: C || M,
|
|
4505
4523
|
onClearHistoryClick: V,
|
|
@@ -4508,25 +4526,25 @@ function Pl({
|
|
|
4508
4526
|
isLoading: p || M,
|
|
4509
4527
|
recommendationsError: s,
|
|
4510
4528
|
onChange: W
|
|
4511
|
-
}), /* @__PURE__ */ o(
|
|
4529
|
+
}), /* @__PURE__ */ o(Ol, {
|
|
4512
4530
|
theme: f
|
|
4513
4531
|
})]
|
|
4514
4532
|
})]
|
|
4515
4533
|
});
|
|
4516
4534
|
}
|
|
4517
|
-
const
|
|
4535
|
+
const Hl = /* @__PURE__ */ _("button", {
|
|
4518
4536
|
target: "e5a38pw0",
|
|
4519
4537
|
label: "Container"
|
|
4520
4538
|
})("font-family:", ({
|
|
4521
4539
|
theme: e
|
|
4522
4540
|
}) => 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:", ({
|
|
4523
4541
|
theme: e
|
|
4524
|
-
}) => e.aiChat.dataTopics.items.backgroundColor, ";"),
|
|
4542
|
+
}) => e.aiChat.dataTopics.items.backgroundColor, ";"), Yl = /* @__PURE__ */ _("div", {
|
|
4525
4543
|
target: "e5a38pw1",
|
|
4526
4544
|
label: "Title"
|
|
4527
4545
|
})("font-size:1.05rem;line-height:28px;color:", ({
|
|
4528
4546
|
theme: e
|
|
4529
|
-
}) => e.aiChat.dataTopics.items.textColor, ";"),
|
|
4547
|
+
}) => e.aiChat.dataTopics.items.textColor, ";"), Ul = /* @__PURE__ */ _("div", {
|
|
4530
4548
|
target: "e5a38pw2",
|
|
4531
4549
|
label: "Description"
|
|
4532
4550
|
})("font-size:", ({
|
|
@@ -4535,11 +4553,11 @@ const Bl = /* @__PURE__ */ _("button", {
|
|
|
4535
4553
|
theme: e
|
|
4536
4554
|
}) => e.aiChat.primaryFontSize[1], ";color:", ({
|
|
4537
4555
|
theme: e
|
|
4538
|
-
}) => er(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"),
|
|
4556
|
+
}) => er(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"), Fl = /* @__PURE__ */ _("div", {
|
|
4539
4557
|
target: "e5a38pw3",
|
|
4540
4558
|
label: "IconContainer"
|
|
4541
4559
|
})("width:16px;height:16px;transform:rotate(180deg);");
|
|
4542
|
-
function
|
|
4560
|
+
function Ql(e) {
|
|
4543
4561
|
const {
|
|
4544
4562
|
title: t,
|
|
4545
4563
|
description: r,
|
|
@@ -4547,39 +4565,39 @@ function Fl(e) {
|
|
|
4547
4565
|
} = e, {
|
|
4548
4566
|
themeSettings: i
|
|
4549
4567
|
} = D();
|
|
4550
|
-
return /* @__PURE__ */ v(
|
|
4568
|
+
return /* @__PURE__ */ v(Hl, {
|
|
4551
4569
|
onClick: a,
|
|
4552
4570
|
theme: i,
|
|
4553
4571
|
children: [/* @__PURE__ */ v("div", {
|
|
4554
|
-
children: [/* @__PURE__ */ o(
|
|
4572
|
+
children: [/* @__PURE__ */ o(Yl, {
|
|
4555
4573
|
theme: i,
|
|
4556
4574
|
children: t
|
|
4557
|
-
}), /* @__PURE__ */ o(
|
|
4575
|
+
}), /* @__PURE__ */ o(Ul, {
|
|
4558
4576
|
theme: i,
|
|
4559
4577
|
children: r
|
|
4560
4578
|
})]
|
|
4561
|
-
}), /* @__PURE__ */ o(
|
|
4579
|
+
}), /* @__PURE__ */ o(Fl, {
|
|
4562
4580
|
children: /* @__PURE__ */ o(Wr, {
|
|
4563
4581
|
color: i.aiChat.icons.color
|
|
4564
4582
|
})
|
|
4565
4583
|
})]
|
|
4566
4584
|
});
|
|
4567
4585
|
}
|
|
4568
|
-
const
|
|
4586
|
+
const $l = /* @__PURE__ */ _("div", {
|
|
4569
4587
|
target: "emrh5y30",
|
|
4570
4588
|
label: "FlexContainer"
|
|
4571
|
-
})("padding:20px;display:flex;flex-direction:column;gap:20px;overflow:auto;"),
|
|
4589
|
+
})("padding:20px;display:flex;flex-direction:column;gap:20px;overflow:auto;"), Vl = /* @__PURE__ */ _("div", {
|
|
4572
4590
|
target: "emrh5y31",
|
|
4573
4591
|
label: "Title"
|
|
4574
4592
|
})("font-size:24px;line-height:32px;font-weight:600;text-align:center;padding-bottom:4px;color:", ({
|
|
4575
4593
|
theme: e
|
|
4576
|
-
}) => e.aiChat.primaryTextColor, ";"),
|
|
4594
|
+
}) => e.aiChat.primaryTextColor, ";"), Jl = /* @__PURE__ */ _("div", {
|
|
4577
4595
|
target: "emrh5y32",
|
|
4578
4596
|
label: "Subtitle"
|
|
4579
4597
|
})("font-size:15px;line-height:22px;color:", ({
|
|
4580
4598
|
theme: e
|
|
4581
4599
|
}) => e.aiChat.primaryTextColor, ";");
|
|
4582
|
-
function
|
|
4600
|
+
function Xl(e) {
|
|
4583
4601
|
const {
|
|
4584
4602
|
dataTopics: t
|
|
4585
4603
|
} = e, {
|
|
@@ -4587,23 +4605,23 @@ function Jl(e) {
|
|
|
4587
4605
|
} = D(), {
|
|
4588
4606
|
t: a
|
|
4589
4607
|
} = O();
|
|
4590
|
-
return /* @__PURE__ */ v(
|
|
4591
|
-
children: [/* @__PURE__ */ o(
|
|
4608
|
+
return /* @__PURE__ */ v($l, {
|
|
4609
|
+
children: [/* @__PURE__ */ o(Vl, {
|
|
4592
4610
|
theme: r,
|
|
4593
4611
|
children: a("ai.dataTopics")
|
|
4594
|
-
}), /* @__PURE__ */ v(
|
|
4612
|
+
}), /* @__PURE__ */ v(Jl, {
|
|
4595
4613
|
theme: r,
|
|
4596
4614
|
children: [a("ai.chatbotDescription"), /* @__PURE__ */ o("br", {}), /* @__PURE__ */ o("br", {}), a("ai.topicSelectPrompt")]
|
|
4597
|
-
}), t.map((i) => /* @__PURE__ */ Ea(
|
|
4615
|
+
}), t.map((i) => /* @__PURE__ */ Ea(Ql, T(I({}, i), {
|
|
4598
4616
|
key: i.title
|
|
4599
4617
|
})))]
|
|
4600
4618
|
});
|
|
4601
4619
|
}
|
|
4602
|
-
const
|
|
4603
|
-
function
|
|
4620
|
+
const Kl = "#000000", ed = "#FFFFFF";
|
|
4621
|
+
function td({
|
|
4604
4622
|
isDarkBackground: e = !1
|
|
4605
4623
|
}) {
|
|
4606
|
-
const t = e ?
|
|
4624
|
+
const t = e ? ed : Kl;
|
|
4607
4625
|
return /* @__PURE__ */ v("svg", {
|
|
4608
4626
|
width: "32",
|
|
4609
4627
|
height: "32",
|
|
@@ -4661,16 +4679,16 @@ function ed({
|
|
|
4661
4679
|
})]
|
|
4662
4680
|
});
|
|
4663
4681
|
}
|
|
4664
|
-
const
|
|
4682
|
+
const rd = /* @__PURE__ */ _("div", {
|
|
4665
4683
|
target: "ealudtn0",
|
|
4666
4684
|
label: "LogoContainer"
|
|
4667
|
-
})("margin-left:14px;margin-top:3px;"),
|
|
4685
|
+
})("margin-left:14px;margin-top:3px;"), ad = /* @__PURE__ */ _("div", {
|
|
4668
4686
|
target: "ealudtn1",
|
|
4669
4687
|
label: "DataTopicsContainer"
|
|
4670
4688
|
})("display:flex;flex-direction:column;justify-content:top;overflow:hidden;height:100%;background-color:", ({
|
|
4671
4689
|
theme: e
|
|
4672
4690
|
}) => e.aiChat.dataTopics.backgroundColor, ";");
|
|
4673
|
-
function
|
|
4691
|
+
function id({
|
|
4674
4692
|
dataTopicsList: e,
|
|
4675
4693
|
onDataTopicClick: t
|
|
4676
4694
|
}) {
|
|
@@ -4687,25 +4705,25 @@ function ad({
|
|
|
4687
4705
|
return /* @__PURE__ */ v(Y, {
|
|
4688
4706
|
children: [r ? /* @__PURE__ */ o(qr, {
|
|
4689
4707
|
title: i("ai.analyticsChatbot"),
|
|
4690
|
-
leftNav: /* @__PURE__ */ o(
|
|
4691
|
-
children: /* @__PURE__ */ o(
|
|
4708
|
+
leftNav: /* @__PURE__ */ o(rd, {
|
|
4709
|
+
children: /* @__PURE__ */ o(td, {
|
|
4692
4710
|
isDarkBackground: d
|
|
4693
4711
|
})
|
|
4694
4712
|
}),
|
|
4695
4713
|
style: a.aiChat.header
|
|
4696
|
-
}) : null, /* @__PURE__ */ v(
|
|
4714
|
+
}) : null, /* @__PURE__ */ v(ad, {
|
|
4697
4715
|
theme: a,
|
|
4698
|
-
children: [!l && /* @__PURE__ */ o(Ue, {}), l && /* @__PURE__ */ o(
|
|
4716
|
+
children: [!l && /* @__PURE__ */ o(Ue, {}), l && /* @__PURE__ */ o(Xl, {
|
|
4699
4717
|
dataTopics: l
|
|
4700
4718
|
})]
|
|
4701
4719
|
})]
|
|
4702
4720
|
});
|
|
4703
4721
|
}
|
|
4704
|
-
function
|
|
4722
|
+
function od() {
|
|
4705
4723
|
const [e, t] = z(), [r, a] = z(), {
|
|
4706
4724
|
data: i,
|
|
4707
4725
|
fetchStatus: l
|
|
4708
|
-
} =
|
|
4726
|
+
} = Vi(), {
|
|
4709
4727
|
dataTopicsList: d,
|
|
4710
4728
|
contextDetails: u
|
|
4711
4729
|
} = re(), {
|
|
@@ -4727,16 +4745,16 @@ function id() {
|
|
|
4727
4745
|
text: c("ai.buttons.refresh"),
|
|
4728
4746
|
onClick: p
|
|
4729
4747
|
}
|
|
4730
|
-
}) : f.length === 1 && !e ? /* @__PURE__ */ o(Ue, {}) : e ? /* @__PURE__ */ o(
|
|
4748
|
+
}) : f.length === 1 && !e ? /* @__PURE__ */ o(Ue, {}) : e ? /* @__PURE__ */ o(Bl, {
|
|
4731
4749
|
contextTitle: e,
|
|
4732
4750
|
contextDetails: u,
|
|
4733
4751
|
onGoBack: f.length === 1 ? void 0 : () => t(void 0)
|
|
4734
|
-
}) : /* @__PURE__ */ o(
|
|
4752
|
+
}) : /* @__PURE__ */ o(id, {
|
|
4735
4753
|
dataTopicsList: f,
|
|
4736
4754
|
onDataTopicClick: (s) => t(s)
|
|
4737
4755
|
});
|
|
4738
4756
|
}
|
|
4739
|
-
const
|
|
4757
|
+
const yd = $t({
|
|
4740
4758
|
componentName: "Chatbot"
|
|
4741
4759
|
})((e) => {
|
|
4742
4760
|
const {
|
|
@@ -4746,18 +4764,18 @@ const kd = $t({
|
|
|
4746
4764
|
} = e, {
|
|
4747
4765
|
themeSettings: i
|
|
4748
4766
|
} = D();
|
|
4749
|
-
return /* @__PURE__ */ o(
|
|
4767
|
+
return /* @__PURE__ */ o(Qi, {
|
|
4750
4768
|
value: a ?? {},
|
|
4751
|
-
children: /* @__PURE__ */ o(
|
|
4769
|
+
children: /* @__PURE__ */ o(lo, {
|
|
4752
4770
|
id: "csdk-chatbot-frame",
|
|
4753
4771
|
width: t,
|
|
4754
4772
|
height: r,
|
|
4755
4773
|
theme: i,
|
|
4756
4774
|
tabIndex: 0,
|
|
4757
|
-
children: /* @__PURE__ */ o(
|
|
4775
|
+
children: /* @__PURE__ */ o(od, {})
|
|
4758
4776
|
})
|
|
4759
4777
|
});
|
|
4760
|
-
}),
|
|
4778
|
+
}), wd = $t({
|
|
4761
4779
|
componentName: "GetNlgInsights"
|
|
4762
4780
|
})(function(e) {
|
|
4763
4781
|
const {
|
|
@@ -4776,7 +4794,7 @@ const kd = $t({
|
|
|
4776
4794
|
text: r ? "Loading..." : l
|
|
4777
4795
|
});
|
|
4778
4796
|
});
|
|
4779
|
-
function
|
|
4797
|
+
function nd({
|
|
4780
4798
|
theme: e
|
|
4781
4799
|
}) {
|
|
4782
4800
|
const t = e.general.brandColor;
|
|
@@ -4804,17 +4822,17 @@ function od({
|
|
|
4804
4822
|
})]
|
|
4805
4823
|
});
|
|
4806
4824
|
}
|
|
4807
|
-
const
|
|
4825
|
+
const ld = /* @__PURE__ */ _("div", {
|
|
4808
4826
|
target: "eit37yz0",
|
|
4809
4827
|
label: "FlexDiv"
|
|
4810
4828
|
})("display:flex;flex-direction:row;align-items:center;gap:10px;margin:24px 0;max-width:640px;color:", ({
|
|
4811
4829
|
theme: e
|
|
4812
4830
|
}) => e.chart.textColor, ";background-color:", ({
|
|
4813
4831
|
theme: e
|
|
4814
|
-
}) => e.chart.backgroundColor, ";"),
|
|
4832
|
+
}) => e.chart.backgroundColor, ";"), dd = /* @__PURE__ */ _("div", {
|
|
4815
4833
|
target: "eit37yz1",
|
|
4816
4834
|
label: "IconDiv"
|
|
4817
|
-
})("align-self:flex-start;"),
|
|
4835
|
+
})("align-self:flex-start;"), sd = ({
|
|
4818
4836
|
summary: e,
|
|
4819
4837
|
nlgRequest: t
|
|
4820
4838
|
}) => {
|
|
@@ -4826,11 +4844,11 @@ const nd = /* @__PURE__ */ _("div", {
|
|
|
4826
4844
|
data: t,
|
|
4827
4845
|
type: "chart/insights",
|
|
4828
4846
|
buttonVisibility: "always",
|
|
4829
|
-
renderContent: (a) => /* @__PURE__ */ v(
|
|
4847
|
+
renderContent: (a) => /* @__PURE__ */ v(ld, {
|
|
4830
4848
|
theme: r,
|
|
4831
|
-
children: [/* @__PURE__ */ o(
|
|
4849
|
+
children: [/* @__PURE__ */ o(dd, {
|
|
4832
4850
|
theme: r,
|
|
4833
|
-
children: /* @__PURE__ */ o(
|
|
4851
|
+
children: /* @__PURE__ */ o(nd, {
|
|
4834
4852
|
theme: r
|
|
4835
4853
|
})
|
|
4836
4854
|
}), /* @__PURE__ */ o(yt, {
|
|
@@ -4838,7 +4856,7 @@ const nd = /* @__PURE__ */ _("div", {
|
|
|
4838
4856
|
}), a]
|
|
4839
4857
|
})
|
|
4840
4858
|
});
|
|
4841
|
-
},
|
|
4859
|
+
}, _d = ({
|
|
4842
4860
|
nlqResponse: e,
|
|
4843
4861
|
onDataReady: t,
|
|
4844
4862
|
styleOptions: r,
|
|
@@ -4881,12 +4899,12 @@ const nd = /* @__PURE__ */ _("div", {
|
|
|
4881
4899
|
return g || !l ? /* @__PURE__ */ o(xt, {}) : We(l) ? /* @__PURE__ */ o(Ce, T(I({}, l), {
|
|
4882
4900
|
highlightSelectionDisabled: !0,
|
|
4883
4901
|
onDataReady: t,
|
|
4884
|
-
topSlot: c && !x && /* @__PURE__ */ o(
|
|
4902
|
+
topSlot: c && !x && /* @__PURE__ */ o(sd, {
|
|
4885
4903
|
nlgRequest: u,
|
|
4886
4904
|
summary: c
|
|
4887
4905
|
})
|
|
4888
4906
|
})) : /* @__PURE__ */ o(Y, {});
|
|
4889
|
-
},
|
|
4907
|
+
}, cd = new Ft({
|
|
4890
4908
|
defaultOptions: {
|
|
4891
4909
|
queries: {
|
|
4892
4910
|
refetchOnWindowFocus: !1,
|
|
@@ -4894,7 +4912,7 @@ const nd = /* @__PURE__ */ _("div", {
|
|
|
4894
4912
|
}
|
|
4895
4913
|
}
|
|
4896
4914
|
});
|
|
4897
|
-
function
|
|
4915
|
+
function Cd({
|
|
4898
4916
|
children: e,
|
|
4899
4917
|
context: t
|
|
4900
4918
|
}) {
|
|
@@ -4902,7 +4920,7 @@ function _d({
|
|
|
4902
4920
|
children: /* @__PURE__ */ o(pt.Provider, {
|
|
4903
4921
|
value: t == null ? void 0 : t.api,
|
|
4904
4922
|
children: /* @__PURE__ */ o(Jt, {
|
|
4905
|
-
client:
|
|
4923
|
+
client: cd,
|
|
4906
4924
|
children: e
|
|
4907
4925
|
})
|
|
4908
4926
|
})
|
|
@@ -4920,21 +4938,21 @@ function _d({
|
|
|
4920
4938
|
}
|
|
4921
4939
|
})();
|
|
4922
4940
|
export {
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4941
|
+
hd as AiContextProvider,
|
|
4942
|
+
Zi as ChatRestApi,
|
|
4943
|
+
yd as Chatbot,
|
|
4944
|
+
Cd as CustomAiContextProvider,
|
|
4945
|
+
Fi as DEFAULT_RECOMMENDATIONS_COUNT,
|
|
4946
|
+
wd as GetNlgInsights,
|
|
4947
|
+
Hi as NLQ_RESULT_CHART_TYPES,
|
|
4948
|
+
_d as NlqChartWidget,
|
|
4949
|
+
Pi as prepareGetNlgInsightsPayload,
|
|
4950
|
+
Yi as prepareGetNlqResultPayload,
|
|
4951
|
+
ro as useChatSession,
|
|
4952
|
+
kd as useFinalNlqResponse,
|
|
4953
|
+
md as useGetNlgInsights,
|
|
4954
|
+
fd as useGetNlqResult,
|
|
4955
|
+
bd as useGetQueryRecommendations,
|
|
4956
|
+
xd as useLastNlqResponse,
|
|
4957
|
+
gd as widgetComposer
|
|
4940
4958
|
};
|