@sisense/sdk-ui-vue 2.7.0 → 2.9.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 +31 -31
- package/dist/ai.js +96 -95
- package/dist/index.cjs +1 -1
- package/dist/index.js +225 -225
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +4 -4
- package/dist/use-tracking-c4e74583.cjs +1060 -0
- package/dist/{use-tracking-71a2feea.js → use-tracking-ee413ed4.js} +51608 -48896
- package/package.json +2 -2
- package/dist/use-tracking-139811d9.cjs +0 -1076
package/dist/ai.js
CHANGED
@@ -1,27 +1,6 @@
|
|
1
1
|
import { inject as sa, ref as Qt, defineComponent as st, watchEffect as Ft, provide as ca, watch as ct, toRefs as pt } from "vue";
|
2
|
-
import { aC as Vt, aD as
|
3
|
-
|
4
|
-
enumerable: !0,
|
5
|
-
configurable: !0,
|
6
|
-
writable: !0,
|
7
|
-
value: r
|
8
|
-
}) : e[t] = r, O = (e, t) => {
|
9
|
-
for (var r in t || (t = {}))
|
10
|
-
sr.call(t, r) && St(e, r, t[r]);
|
11
|
-
if (Pe)
|
12
|
-
for (var r of Pe(t))
|
13
|
-
cr.call(t, r) && St(e, r, t[r]);
|
14
|
-
return e;
|
15
|
-
}, K = (e, t) => di(e, si(t)), ci = (e, t) => {
|
16
|
-
var r = {};
|
17
|
-
for (var a in e)
|
18
|
-
sr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
19
|
-
if (e != null && Pe)
|
20
|
-
for (var a of Pe(e))
|
21
|
-
t.indexOf(a) < 0 && cr.call(e, a) && (r[a] = e[a]);
|
22
|
-
return r;
|
23
|
-
};
|
24
|
-
let pr = class extends ar {
|
2
|
+
import { aC as Vt, aD as He, aE as pa, aF as Be, aG as ua, aH as ga, aI as me, aJ as $t, aK as ha, aL as b, aM as Jt, aN as L, aO as n, aP as E, aQ as Y, aR as Fe, aS as U, aT as Me, aU as N, aV as Xt, aW as ma, aX as ba, aY as se, aZ as fa, a_ as ke, a$ as Ve, b0 as ye, b1 as ut, b2 as xa, b3 as ka, b4 as ya, b5 as C, b6 as P, b7 as wa, b8 as Ct, b9 as Z, ba as We, bb as v, bc as De, bd as _a, be as Ca, bf as va, bg as Sa, bh as Ie, bi as ve, bj as Ma, bk as Da, bl as Kt, bm as Ia, bn as Aa, bo as La, bp as Ta, bq as er, br as Na, bs as ja, bt as Oa, bu as Ea, bv as za, bw as tr, bx as Ra, by as Za, bz as Wa, bA as vt, bB as Pa, bC as qa, bD as Ga, bE as Ha, bF as rr, bG as Ce, bH as ar, bI as rt, bJ as Ba, bK as $e, bL as Ya, bM as Ua, bN as Qa, bO as Fa, bP as Va, bQ as $a, bR as Ja, bS as Xa, ao as je, bT as ir, bU as Ka, bV as ei, bW as ti, bX as or, bY as nr, bZ as ri, b_ as ai, b$ as ii, y as oi, c0 as ni, a as lr, c1 as dr, z as gt, x as ht, B as mt, G as be, a4 as bt } from "./use-tracking-ee413ed4.js";
|
3
|
+
let sr = class extends ar {
|
25
4
|
constructor(e, t) {
|
26
5
|
var r;
|
27
6
|
super((r = e.jaql.title) !== null && r !== void 0 ? r : "", t), this.__serializable = "JaqlElement", this.expression = e.jaql.dim || e.jaql.formula, this.metadataItem = e, e.jaql.agg ? this.aggregation = e.jaql.agg : delete this.aggregation, e.jaql.formula ? this.formula = e.jaql.formula : delete this.formula, e.jaql.sort ? this.sortType = Qa(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
|
@@ -40,16 +19,16 @@ let pr = class extends ar {
|
|
40
19
|
return e.metadataItem = this.metadataItem, e.type = this.type, e;
|
41
20
|
}
|
42
21
|
};
|
43
|
-
const
|
22
|
+
const li = {
|
44
23
|
text: Fe.TextAttribute,
|
45
24
|
numeric: Fe.NumericAttribute,
|
46
25
|
datetime: Fe.DateLevel
|
47
26
|
};
|
48
|
-
function
|
27
|
+
function di(e) {
|
49
28
|
var t;
|
50
|
-
return new
|
29
|
+
return new sr(e, (t = li[e.jaql.datatype]) !== null && t !== void 0 ? t : "numeric");
|
51
30
|
}
|
52
|
-
function
|
31
|
+
function cr(e) {
|
53
32
|
const {
|
54
33
|
jaql: t
|
55
34
|
} = e;
|
@@ -73,9 +52,30 @@ function ur(e) {
|
|
73
52
|
title: t.title,
|
74
53
|
panel: e.panel,
|
75
54
|
dataSource: t.datasource
|
76
|
-
}) :
|
55
|
+
}) : di(e);
|
77
56
|
}
|
78
|
-
const
|
57
|
+
const si = (e) => "dashboardOid" in e && "widgetOid" in e;
|
58
|
+
var ci = Object.defineProperty, pi = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, Pe = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? ci(e, t, {
|
59
|
+
enumerable: !0,
|
60
|
+
configurable: !0,
|
61
|
+
writable: !0,
|
62
|
+
value: r
|
63
|
+
}) : e[t] = r, O = (e, t) => {
|
64
|
+
for (var r in t || (t = {}))
|
65
|
+
pr.call(t, r) && St(e, r, t[r]);
|
66
|
+
if (Pe)
|
67
|
+
for (var r of Pe(t))
|
68
|
+
ur.call(t, r) && St(e, r, t[r]);
|
69
|
+
return e;
|
70
|
+
}, K = (e, t) => pi(e, ui(t)), gi = (e, t) => {
|
71
|
+
var r = {};
|
72
|
+
for (var a in e)
|
73
|
+
pr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
74
|
+
if (e != null && Pe)
|
75
|
+
for (var a of Pe(e))
|
76
|
+
t.indexOf(a) < 0 && ur.call(e, a) && (r[a] = e[a]);
|
77
|
+
return r;
|
78
|
+
};
|
79
79
|
function hi(e) {
|
80
80
|
return e.replace(/\s+/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
81
81
|
}
|
@@ -684,7 +684,7 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
|
|
684
684
|
return "";
|
685
685
|
if (typeof e == "string")
|
686
686
|
return `'${Ce(e)}'`;
|
687
|
-
if (e instanceof
|
687
|
+
if (e instanceof sr)
|
688
688
|
return Mi(e, t);
|
689
689
|
if (e instanceof ar)
|
690
690
|
return e.composeCode || "";
|
@@ -781,7 +781,7 @@ const At = `
|
|
781
781
|
pivot: Ni
|
782
782
|
}), Ri = (e) => ({
|
783
783
|
dataOptions: {
|
784
|
-
columns: e.map(
|
784
|
+
columns: e.map(cr)
|
785
785
|
}
|
786
786
|
}), Zi = Object.freeze({
|
787
787
|
convolution: {
|
@@ -824,12 +824,12 @@ const At = `
|
|
824
824
|
name: o.column.name
|
825
825
|
}
|
826
826
|
};
|
827
|
-
const s =
|
827
|
+
const s = cr(u);
|
828
828
|
if (u.panel === "measures")
|
829
829
|
return K(O({}, o), {
|
830
830
|
column: s
|
831
831
|
});
|
832
|
-
if (
|
832
|
+
if (Ba(s.type)) {
|
833
833
|
const m = (x = (f = u.format) == null ? void 0 : f.mask) == null ? void 0 : x[u.jaql.level];
|
834
834
|
if (m)
|
835
835
|
return K(O({}, o), {
|
@@ -910,7 +910,7 @@ const At = `
|
|
910
910
|
function Gi(e) {
|
911
911
|
return !!(e && (e.top !== void 0 || e.bottom !== void 0));
|
912
912
|
}
|
913
|
-
const
|
913
|
+
const Hi = (e) => {
|
914
914
|
const t = e.find((r) => r.panel === "rows");
|
915
915
|
return t ? e.map((r) => {
|
916
916
|
const a = r.jaql.filter;
|
@@ -921,7 +921,7 @@ const Bi = (e) => {
|
|
921
921
|
context: d,
|
922
922
|
formula: p,
|
923
923
|
filter: c
|
924
|
-
} = i, g =
|
924
|
+
} = i, g = gi(i, ["type", "context", "formula", "filter"]);
|
925
925
|
return K(O({}, r), {
|
926
926
|
jaql: O({
|
927
927
|
// Copy dimension properties from rows dimension
|
@@ -940,7 +940,7 @@ const Bi = (e) => {
|
|
940
940
|
}, g)
|
941
941
|
});
|
942
942
|
}) : e;
|
943
|
-
},
|
943
|
+
}, Bi = (e) => "chartType" in e ? e : {
|
944
944
|
chartType: "table",
|
945
945
|
chartFamily: "table",
|
946
946
|
axesMapping: {}
|
@@ -967,11 +967,11 @@ const Bi = (e) => {
|
|
967
967
|
datasource: p
|
968
968
|
} = a, c = K(O({}, p), {
|
969
969
|
type: p.type || "elasticube"
|
970
|
-
}), g = Aa(c), f =
|
970
|
+
}), g = Aa(c), f = Hi(d).map((M) => Ci(M)).map((M) => K(O({}, M), {
|
971
971
|
jaql: K(O({}, M.jaql), {
|
972
972
|
datasource: g
|
973
973
|
})
|
974
|
-
})), x =
|
974
|
+
})), x = Bi(i), o = x.chartType.toLowerCase(), u = {
|
975
975
|
cornerRadius: "Small",
|
976
976
|
header: {
|
977
977
|
// remove info button and render empty toolbar instead
|
@@ -998,7 +998,7 @@ const Bi = (e) => {
|
|
998
998
|
console.error(r);
|
999
999
|
return;
|
1000
1000
|
}
|
1001
|
-
}, ft = (e, t) => Qi(e, t), Fi = (e) =>
|
1001
|
+
}, ft = (e, t) => Qi(e, t), Fi = (e) => si(e) ? Oi(e) : zi(e), br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1002
1002
|
__proto__: null,
|
1003
1003
|
toWidgetCode: Fi,
|
1004
1004
|
toWidgetProps: ft
|
@@ -1084,15 +1084,16 @@ class Ki extends Pa {
|
|
1084
1084
|
})), this.currentMutation.addObserver(this), this.currentMutation.execute();
|
1085
1085
|
}
|
1086
1086
|
updateResult() {
|
1087
|
-
const t = this.currentMutation ? this.currentMutation.state : Ga(), r = j(D({}, t), {
|
1088
|
-
isLoading:
|
1087
|
+
const t = this.currentMutation ? this.currentMutation.state : Ga(), r = t.status === "loading", a = j(D({}, t), {
|
1088
|
+
isLoading: r,
|
1089
|
+
isPending: r,
|
1089
1090
|
isSuccess: t.status === "success",
|
1090
1091
|
isError: t.status === "error",
|
1091
1092
|
isIdle: t.status === "idle",
|
1092
1093
|
mutate: this.mutate,
|
1093
1094
|
reset: this.reset
|
1094
1095
|
});
|
1095
|
-
this.currentResult =
|
1096
|
+
this.currentResult = a;
|
1096
1097
|
}
|
1097
1098
|
notify(t) {
|
1098
1099
|
er.batch(() => {
|
@@ -1168,7 +1169,7 @@ new Vt({
|
|
1168
1169
|
}
|
1169
1170
|
}
|
1170
1171
|
});
|
1171
|
-
const kr = /* @__PURE__ */
|
1172
|
+
const kr = /* @__PURE__ */ He(void 0), re = () => ut(kr), yr = /* @__PURE__ */ He({}), to = () => ut(yr), ro = ({
|
1172
1173
|
children: e
|
1173
1174
|
}) => {
|
1174
1175
|
const [t, r] = Z({}), a = N((d, p) => {
|
@@ -1302,7 +1303,7 @@ const ot = 4, oo = (e) => {
|
|
1302
1303
|
enableInsights: !0,
|
1303
1304
|
numOfRecommendations: 4,
|
1304
1305
|
numOfRecentPrompts: 5
|
1305
|
-
}), vr = /* @__PURE__ */
|
1306
|
+
}), vr = /* @__PURE__ */ He(D({}, Cr)), ae = () => ut(vr), no = ({
|
1306
1307
|
children: e,
|
1307
1308
|
value: t
|
1308
1309
|
}) => {
|
@@ -1953,7 +1954,7 @@ const Rt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
|
|
1953
1954
|
lt: "<",
|
1954
1955
|
nbsp: " ",
|
1955
1956
|
quot: "“"
|
1956
|
-
}, Go = ["style", "script"],
|
1957
|
+
}, Go = ["style", "script"], Ho = ["src", "href", "data", "formAction", "srcDoc", "action"], Bo = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yo = /mailto:/i, Uo = /\n{2,}$/, Dr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Qo = /^ *> ?/gm, Fo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Vo = /^ {2,}\n/, $o = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Ir = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Ar = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Jo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Xo = /^(?:\n *)*\n/, Ko = /\r\n?/g, en = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, tn = /^\[\^([^\]]+)]/, rn = /\f/g, an = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, on = /^\s*?\[(x|\s)\]/, Lr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Tr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Nr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, lt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, nn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, jr = /^<!--[\s\S]*?(?:-->)/, ln = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, dn = /^\{.*\}$/, sn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, cn = /^<([^ >]+@[^ >]+)>/, pn = /^<([^ >]+:\/[^ >]+)>/, un = /-([a-z])?/gi, Or = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, gn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, hn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, mn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, bn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, fn = /\t/g, xn = /(^ *\||\| *$)/g, kn = /^ *:-+: *$/, yn = /^ *:-+ *$/, wn = /^ *-+: *$/, Ue = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", _n = new RegExp(`^([*_])\\1${Ue}\\1\\1(?!\\1)`), Cn = new RegExp(`^([*_])${Ue}\\1(?!\\1)`), vn = new RegExp(`^(==)${Ue}\\1`), Sn = new RegExp(`^(~~)${Ue}\\1`), Mn = /^\\([^0-9A-Za-z\s])/, Wt = /\\([^0-9A-Za-z\s])/g, Dn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, In = /^\n+/, An = /^([ \t]*)/, Ln = /\\([^\\])/g, Tn = /(?:^|\n)( *)$/, yt = "(?:\\d+\\.)", wt = "(?:[*+-])";
|
1957
1958
|
function Er(e) {
|
1958
1959
|
return "( *)(" + (e === 1 ? yt : wt) + ") +";
|
1959
1960
|
}
|
@@ -2011,7 +2012,7 @@ function Pt(e, t) {
|
|
2011
2012
|
}))
|
2012
2013
|
};
|
2013
2014
|
}
|
2014
|
-
const zn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Rn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,
|
2015
|
+
const zn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Rn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, Hr = [Dr, Ir, Ar, Lr, Nr, Tr, Or, qr, Gr], Zn = [...Hr, /^[^\n]+(?: \n|\n{2,})/, lt, jr, dt];
|
2015
2016
|
function Se(e) {
|
2016
2017
|
let t = e.length;
|
2017
2018
|
for (; t > 0 && e[t - 1] <= " "; )
|
@@ -2090,12 +2091,12 @@ function qn(e, t) {
|
|
2090
2091
|
let r = "";
|
2091
2092
|
e.split(`
|
2092
2093
|
`).every((i) => (i += `
|
2093
|
-
`, !
|
2094
|
+
`, !Hr.some((l) => l.test(i)) && (r += i, !!i.trim())));
|
2094
2095
|
const a = Se(r);
|
2095
2096
|
return a == "" ? null : [r, , a];
|
2096
2097
|
}
|
2097
2098
|
const Gn = /(javascript|vbscript|data(?!:image)):/i;
|
2098
|
-
function
|
2099
|
+
function Hn(e) {
|
2099
2100
|
try {
|
2100
2101
|
const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
|
2101
2102
|
if (Gn.test(t))
|
@@ -2105,7 +2106,7 @@ function Bn(e) {
|
|
2105
2106
|
}
|
2106
2107
|
return e;
|
2107
2108
|
}
|
2108
|
-
function
|
2109
|
+
function Ht(e) {
|
2109
2110
|
return e.replace(Ln, "$1");
|
2110
2111
|
}
|
2111
2112
|
function Ze(e, t, r) {
|
@@ -2114,7 +2115,7 @@ function Ze(e, t, r) {
|
|
2114
2115
|
const l = e(t, r);
|
2115
2116
|
return r.inline = a, r.simple = i, l;
|
2116
2117
|
}
|
2117
|
-
function
|
2118
|
+
function Bn(e, t, r) {
|
2118
2119
|
const a = r.inline || !1, i = r.simple || !1;
|
2119
2120
|
r.inline = !1, r.simple = !0;
|
2120
2121
|
const l = e(t, r);
|
@@ -2184,7 +2185,7 @@ function Qn(e = "", t = {}) {
|
|
2184
2185
|
}, h);
|
2185
2186
|
}
|
2186
2187
|
function i(o, u) {
|
2187
|
-
const s = u.match(
|
2188
|
+
const s = u.match(Bo);
|
2188
2189
|
return s ? s.reduce(function(m, h) {
|
2189
2190
|
const w = h.indexOf("=");
|
2190
2191
|
if (w !== -1) {
|
@@ -2201,37 +2202,37 @@ function Qn(e = "", t = {}) {
|
|
2201
2202
|
const I = m[M] = function(S, A, R, pe) {
|
2202
2203
|
return A === "style" ? function(Q) {
|
2203
2204
|
const q = [];
|
2204
|
-
let
|
2205
|
+
let H = "", F = !1, G = !1, V = "";
|
2205
2206
|
if (!Q)
|
2206
2207
|
return q;
|
2207
2208
|
for (let z = 0; z < Q.length; z++) {
|
2208
2209
|
const W = Q[z];
|
2209
|
-
if (W !== '"' && W !== "'" || F || (G ? W === V && (G = !1, V = "") : (G = !0, V = W)), W === "(" &&
|
2210
|
-
|
2210
|
+
if (W !== '"' && W !== "'" || F || (G ? W === V && (G = !1, V = "") : (G = !0, V = W)), W === "(" && H.endsWith("url") ? F = !0 : W === ")" && F && (F = !1), W !== ";" || G || F)
|
2211
|
+
H += W;
|
2211
2212
|
else {
|
2212
|
-
const
|
2213
|
-
if (
|
2214
|
-
const le =
|
2213
|
+
const B = H.trim();
|
2214
|
+
if (B) {
|
2215
|
+
const le = B.indexOf(":");
|
2215
2216
|
if (le > 0) {
|
2216
|
-
const ue =
|
2217
|
+
const ue = B.slice(0, le).trim(), xe = B.slice(le + 1).trim();
|
2217
2218
|
q.push([ue, xe]);
|
2218
2219
|
}
|
2219
2220
|
}
|
2220
|
-
|
2221
|
+
H = "";
|
2221
2222
|
}
|
2222
2223
|
}
|
2223
|
-
const $ =
|
2224
|
+
const $ = H.trim();
|
2224
2225
|
if ($) {
|
2225
2226
|
const z = $.indexOf(":");
|
2226
2227
|
if (z > 0) {
|
2227
|
-
const W = $.slice(0, z).trim(),
|
2228
|
-
q.push([W,
|
2228
|
+
const W = $.slice(0, z).trim(), B = $.slice(z + 1).trim();
|
2229
|
+
q.push([W, B]);
|
2229
2230
|
}
|
2230
2231
|
}
|
2231
2232
|
return q;
|
2232
|
-
}(R).reduce(function(Q, [q,
|
2233
|
-
return Q[q.replace(/(-[a-z])/g, (F) => F[1].toUpperCase())] = pe(
|
2234
|
-
}, {}) :
|
2233
|
+
}(R).reduce(function(Q, [q, H]) {
|
2234
|
+
return Q[q.replace(/(-[a-z])/g, (F) => F[1].toUpperCase())] = pe(H, S, q), Q;
|
2235
|
+
}, {}) : Ho.indexOf(A) !== -1 ? pe(R, S, A) : (R.match(dn) && (R = R.slice(1, R.length - 1)), R === "true" || R !== "false" && R);
|
2235
2236
|
}(o, _, y, t.sanitizer);
|
2236
2237
|
typeof I == "string" && (lt.test(I) || dt.test(I)) && (m[M] = a(I.trim()));
|
2237
2238
|
} else
|
@@ -2239,7 +2240,7 @@ function Qn(e = "", t = {}) {
|
|
2239
2240
|
return m;
|
2240
2241
|
}, {}) : null;
|
2241
2242
|
}
|
2242
|
-
t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer ||
|
2243
|
+
t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Hn, t.slugify = t.slugify || we, t.namedCodesToUnicode = t.namedCodesToUnicode ? de({}, Zt, t.namedCodesToUnicode) : Zt, t.createElement = t.createElement || Ha;
|
2243
2244
|
const l = [], d = {}, p = {
|
2244
2245
|
[k.blockQuote]: {
|
2245
2246
|
match: ee(Dr),
|
@@ -2416,7 +2417,7 @@ function Qn(e = "", t = {}) {
|
|
2416
2417
|
order: 1,
|
2417
2418
|
parse: (o) => ({
|
2418
2419
|
alt: o[1],
|
2419
|
-
target:
|
2420
|
+
target: Ht(o[2]),
|
2420
2421
|
title: o[3]
|
2421
2422
|
}),
|
2422
2423
|
render: (o, u, s) => r("img", {
|
@@ -2430,8 +2431,8 @@ function Qn(e = "", t = {}) {
|
|
2430
2431
|
match: ie(zn),
|
2431
2432
|
order: 3,
|
2432
2433
|
parse: (o, u, s) => ({
|
2433
|
-
children:
|
2434
|
-
target:
|
2434
|
+
children: Bn(u, o[1], s),
|
2435
|
+
target: Ht(o[2]),
|
2435
2436
|
title: o[3]
|
2436
2437
|
}),
|
2437
2438
|
render: (o, u, s) => r("a", {
|
@@ -2698,7 +2699,7 @@ const Fn = (e) => {
|
|
2698
2699
|
justify-content: flex-end;
|
2699
2700
|
` : P`
|
2700
2701
|
justify-content: flex-start;
|
2701
|
-
`),
|
2702
|
+
`), Br = /* @__PURE__ */ C("div", {
|
2702
2703
|
target: "e1vkf9b41",
|
2703
2704
|
label: "MessageContainer"
|
2704
2705
|
})("font-size:inherit;line-height:inherit;padding-top:8.5px;padding-bottom:8.5px;padding-left:0.5rem;padding-right:0.5rem;white-space:pre-wrap;overflow-wrap:break-word;box-sizing:border-box;", ({
|
@@ -2728,7 +2729,7 @@ const Fn = (e) => {
|
|
2728
2729
|
return /* @__PURE__ */ n(Vn, {
|
2729
2730
|
theme: r,
|
2730
2731
|
align: e,
|
2731
|
-
children: /* @__PURE__ */ n(
|
2732
|
+
children: /* @__PURE__ */ n(Br, {
|
2732
2733
|
theme: r,
|
2733
2734
|
align: e,
|
2734
2735
|
children: typeof t == "string" ? /* @__PURE__ */ n(Fn, {
|
@@ -2920,9 +2921,9 @@ function rl({
|
|
2920
2921
|
function al(e) {
|
2921
2922
|
return Ma("MuiDialog", e);
|
2922
2923
|
}
|
2923
|
-
const tt = pa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Qr = /* @__PURE__ */
|
2924
|
+
const tt = pa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Qr = /* @__PURE__ */ He({});
|
2924
2925
|
process.env.NODE_ENV !== "production" && (Qr.displayName = "DialogContext");
|
2925
|
-
const il =
|
2926
|
+
const il = Be(ua, {
|
2926
2927
|
name: "MuiDialog",
|
2927
2928
|
slot: "Backdrop",
|
2928
2929
|
overrides: (e, t) => t.backdrop
|
@@ -2942,7 +2943,7 @@ const il = He(ua, {
|
|
2942
2943
|
paper: ["paper", `paperScroll${me(r)}`, `paperWidth${me(String(a))}`, i && "paperFullWidth", l && "paperFullScreen"]
|
2943
2944
|
};
|
2944
2945
|
return wa(d, al, t);
|
2945
|
-
}, nl =
|
2946
|
+
}, nl = Be(ga, {
|
2946
2947
|
name: "MuiDialog",
|
2947
2948
|
slot: "Root",
|
2948
2949
|
overridesResolver: (e, t) => t.root
|
@@ -2951,7 +2952,7 @@ const il = He(ua, {
|
|
2951
2952
|
// Use !important to override the Modal inline-style.
|
2952
2953
|
position: "absolute !important"
|
2953
2954
|
}
|
2954
|
-
}), ll =
|
2955
|
+
}), ll = Be("div", {
|
2955
2956
|
name: "MuiDialog",
|
2956
2957
|
slot: "Container",
|
2957
2958
|
overridesResolver: (e, t) => {
|
@@ -2993,7 +2994,7 @@ const il = He(ua, {
|
|
2993
2994
|
}
|
2994
2995
|
}
|
2995
2996
|
}]
|
2996
|
-
}), dl =
|
2997
|
+
}), dl = Be($t, {
|
2997
2998
|
name: "MuiDialog",
|
2998
2999
|
slot: "Paper",
|
2999
3000
|
overridesResolver: (e, t) => {
|
@@ -3115,7 +3116,7 @@ const il = He(ua, {
|
|
3115
3116
|
slotProps: pe = {},
|
3116
3117
|
TransitionComponent: Q = Ct,
|
3117
3118
|
transitionDuration: q = i,
|
3118
|
-
TransitionProps:
|
3119
|
+
TransitionProps: H
|
3119
3120
|
} = l, F = Xi(l, ["aria-describedby", "aria-labelledby", "aria-modal", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "slots", "slotProps", "TransitionComponent", "transitionDuration", "TransitionProps"]), G = j(D({}, r), {
|
3120
3121
|
disableEscapeKeyDown: u,
|
3121
3122
|
fullScreen: s,
|
@@ -3126,12 +3127,12 @@ const il = He(ua, {
|
|
3126
3127
|
$.current = ge.target === ge.currentTarget;
|
3127
3128
|
}, W = (ge) => {
|
3128
3129
|
_ && _(ge), $.current && ($.current = null, w && w(ge), y && y(ge, "backdropClick"));
|
3129
|
-
},
|
3130
|
-
titleId:
|
3131
|
-
}), [
|
3130
|
+
}, B = fa(p), le = U(() => ({
|
3131
|
+
titleId: B
|
3132
|
+
}), [B]), ue = D({
|
3132
3133
|
transition: Q
|
3133
3134
|
}, R), xe = D({
|
3134
|
-
transition:
|
3135
|
+
transition: H,
|
3135
3136
|
paper: S,
|
3136
3137
|
backdrop: f
|
3137
3138
|
}, pe), T = {
|
@@ -3196,7 +3197,7 @@ const il = He(ua, {
|
|
3196
3197
|
elevation: 24,
|
3197
3198
|
role: "dialog",
|
3198
3199
|
"aria-describedby": d,
|
3199
|
-
"aria-labelledby":
|
3200
|
+
"aria-labelledby": B,
|
3200
3201
|
"aria-modal": c
|
3201
3202
|
}, ia), {
|
3202
3203
|
children: /* @__PURE__ */ ye(Qr.Provider, {
|
@@ -3859,7 +3860,7 @@ function Ml({
|
|
3859
3860
|
})]
|
3860
3861
|
}) : null;
|
3861
3862
|
}
|
3862
|
-
function
|
3863
|
+
function Bt({
|
3863
3864
|
sourceId: e,
|
3864
3865
|
data: t,
|
3865
3866
|
type: r,
|
@@ -3997,14 +3998,14 @@ function jl({
|
|
3997
3998
|
}, w = r === "analyze", _ = `${c}${c && g ? `
|
3998
3999
|
` : ""}${g}`;
|
3999
4000
|
return /* @__PURE__ */ v(Y, {
|
4000
|
-
children: [/* @__PURE__ */ n(
|
4001
|
+
children: [/* @__PURE__ */ n(Bt, {
|
4001
4002
|
sourceId: o,
|
4002
4003
|
data: e,
|
4003
4004
|
type: "chats/nlq",
|
4004
4005
|
buttonVisibility: t ? "always" : "onHover",
|
4005
4006
|
renderContent: (y) => /* @__PURE__ */ v(Y, {
|
4006
4007
|
children: [/* @__PURE__ */ v(Yt, {
|
4007
|
-
children: [/* @__PURE__ */ n(
|
4008
|
+
children: [/* @__PURE__ */ n(Br, {
|
4008
4009
|
align: "left",
|
4009
4010
|
theme: i,
|
4010
4011
|
children: _ || `Here's ${x} showing ${Tl(l)}.`
|
@@ -4013,7 +4014,7 @@ function jl({
|
|
4013
4014
|
content: e
|
4014
4015
|
})]
|
4015
4016
|
})
|
4016
|
-
}), a && /* @__PURE__ */ n(
|
4017
|
+
}), a && /* @__PURE__ */ n(Bt, {
|
4017
4018
|
sourceId: o,
|
4018
4019
|
data: h,
|
4019
4020
|
type: "nlg/queryResult",
|
@@ -4201,15 +4202,15 @@ const Gl = /* @__PURE__ */ C("div", {
|
|
4201
4202
|
${r} 50%,
|
4202
4203
|
${t} 100%
|
4203
4204
|
)`;
|
4204
|
-
}, ";background-size:200% auto;animation:gradient 2s linear infinite;@keyframes gradient{0%{background-position:0 0;}100%{background-position:-200% 0;}}"),
|
4205
|
+
}, ";background-size:200% auto;animation:gradient 2s linear infinite;@keyframes gradient{0%{background-position:0 0;}100%{background-position:-200% 0;}}"), Hl = /* @__PURE__ */ C("div", {
|
4205
4206
|
target: "ebwb3nc1",
|
4206
4207
|
label: "SkeletonContainer"
|
4207
4208
|
})("display:flex;flex-direction:column;row-gap:1rem;");
|
4208
|
-
function
|
4209
|
+
function Bl() {
|
4209
4210
|
const {
|
4210
4211
|
themeSettings: e
|
4211
4212
|
} = L();
|
4212
|
-
return /* @__PURE__ */ n(
|
4213
|
+
return /* @__PURE__ */ n(Hl, {
|
4213
4214
|
children: Array.from({
|
4214
4215
|
length: 3
|
4215
4216
|
}, (t, r) => /* @__PURE__ */ n(Gl, {
|
@@ -4225,7 +4226,7 @@ function Yl({
|
|
4225
4226
|
const a = e.length > 0, {
|
4226
4227
|
suggestionsWelcomeText: i
|
4227
4228
|
} = ae();
|
4228
|
-
return t ? /* @__PURE__ */ n(
|
4229
|
+
return t ? /* @__PURE__ */ n(Bl, {}) : a ? /* @__PURE__ */ v(Y, {
|
4229
4230
|
children: [i && /* @__PURE__ */ n(ne, {
|
4230
4231
|
align: "left",
|
4231
4232
|
children: i
|
@@ -4407,9 +4408,9 @@ function id({
|
|
4407
4408
|
} = xo(e, r), {
|
4408
4409
|
mutate: R,
|
4409
4410
|
isLoading: pe
|
4410
|
-
} = Sr(S), [Q, q] = Z(!1), [
|
4411
|
+
} = Sr(S), [Q, q] = Z(!1), [H, F] = Z(!1), G = () => q(!0), V = () => q(!1), $ = () => {
|
4411
4412
|
R(), V();
|
4412
|
-
}, z = se(null), W = se(null),
|
4413
|
+
}, z = se(null), W = se(null), B = () => {
|
4413
4414
|
if (!(z != null && z.current))
|
4414
4415
|
return;
|
4415
4416
|
const {
|
@@ -4420,7 +4421,7 @@ function id({
|
|
4420
4421
|
if (T === void 0 || J === void 0 || Te === void 0)
|
4421
4422
|
return;
|
4422
4423
|
const Ne = Te - T - J > J / 2;
|
4423
|
-
|
4424
|
+
H !== Ne && F(Ne);
|
4424
4425
|
};
|
4425
4426
|
We(() => {
|
4426
4427
|
z.current && (z.current.scrollTop = z.current.scrollHeight);
|
@@ -4442,9 +4443,9 @@ function id({
|
|
4442
4443
|
children: [ue, /* @__PURE__ */ v(td, {
|
4443
4444
|
ref: z,
|
4444
4445
|
theme: o,
|
4445
|
-
onScroll:
|
4446
|
+
onScroll: B,
|
4446
4447
|
children: [/* @__PURE__ */ n(ed, {
|
4447
|
-
isVisible:
|
4448
|
+
isVisible: H,
|
4448
4449
|
anchorElement: W.current,
|
4449
4450
|
onClick: () => {
|
4450
4451
|
var T, J;
|