@sisense/sdk-ui-vue 2.12.0 → 2.13.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 +32 -36
- package/dist/ai.js +61 -65
- package/dist/index.cjs +1 -1
- package/dist/index.js +668 -674
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard.d.ts +0 -12
- package/dist/packages/sdk-ui-vue/src/components/filters/date-range-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/filters/relative-date-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/providers/custom-widgets-provider/custom-widgets-context.d.ts +1 -1
- package/dist/{use-tracking-ef56f405.cjs → use-tracking-4caf6db2.cjs} +275 -279
- package/dist/{use-tracking-e4b7c524.js → use-tracking-dd4d60d8.js} +31367 -31187
- package/package.json +2 -2
package/dist/ai.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aD as Xt, aE as Ye, aF as ha, aG as Qe, aH as ma, aI as ba, aJ as be, aK as Kt, aL as fa, aM as b, aN as er, aO as L, aP as n, aQ as E, aR as Q, aS as $e, aT as U, aU as De, aV as N, aW as tr, aX as xa, aY as ka, aZ as de, a_ as ya, a$ as ye, b0 as Je, b1 as we, b2 as pt, b3 as wa, b4 as _a, b5 as Ca, b6 as C, b7 as P, b8 as va, b9 as It, ba as Z, bb as qe, bc as v, bd as Ae, be as Sa, bf as Ma, bg as Ia, bh as Da, bi as Le, bj as Me, bk as Aa, bl as La, bm as rr, bn as Ta, bo as Na, bp as ja, bq as Oa, br as ar, bs as Ea, bt as za, bu as Ra, bv as Za, bw as Wa, bx as ir, by as Pa, bz as qa, bA as Ga, bB as q, bC as
|
|
1
|
+
import { aD as Xt, aE as Ye, aF as ha, aG as Qe, aH as ma, aI as ba, aJ as be, aK as Kt, aL as fa, aM as b, aN as er, aO as L, aP as n, aQ as E, aR as Q, aS as $e, aT as U, aU as De, aV as N, aW as tr, aX as xa, aY as ka, aZ as de, a_ as ya, a$ as ye, b0 as Je, b1 as we, b2 as pt, b3 as wa, b4 as _a, b5 as Ca, b6 as C, b7 as P, b8 as va, b9 as It, ba as Z, bb as qe, bc as v, bd as Ae, be as Sa, bf as Ma, bg as Ia, bh as Da, bi as Le, bj as Me, bk as Aa, bl as La, bm as rr, bn as Ta, bo as Na, bp as ja, bq as Oa, br as ar, bs as Ea, bt as za, bu as Ra, bv as Za, bw as Wa, bx as ir, by as Pa, bz as qa, bA as Ga, bB as q, bC as Ba, bD as Ha, bE as Ya, bF as Qa, bG as or, bH as Se, bI as nr, bJ as ut, bK as it, bL as Ua, bM as Xe, bN as Fa, bO as Va, bP as $a, bQ as Ja, bR as Xa, bS as Ka, bT as ei, bU as ti, bV as ri, ap as Ee, bW as lr, bX as ai, bY as ii, bZ as sr, b_ as oi, b$ as cr, c0 as ni, c1 as li, c2 as si, G as ci, c3 as di, a as dr, c4 as pr, J as gt, C as ht, K as mt, Q as fe, a5 as bt } from "./use-tracking-dd4d60d8.js";
|
|
2
2
|
import { inject as pi, ref as ur, defineComponent as ft, watchEffect as gr, provide as ui, watch as xt, toRefs as kt } from "vue";
|
|
3
3
|
let hr = class extends nr {
|
|
4
4
|
constructor(e, t) {
|
|
@@ -308,13 +308,9 @@ export default function CodeExample() {
|
|
|
308
308
|
title: '{{titleString}}',
|
|
309
309
|
widgets,
|
|
310
310
|
filters,
|
|
311
|
-
config: {
|
|
312
|
-
toolbar: { isVisible: true },
|
|
313
|
-
filtersPanel: { isVisible: true },
|
|
314
|
-
},
|
|
311
|
+
config: {{configString}},
|
|
315
312
|
widgetsOptions: {{widgetsOptionsString}},
|
|
316
313
|
layoutOptions: {{layoutOptionsString}},
|
|
317
|
-
tabbersOptions: {{tabbersOptionsString}},
|
|
318
314
|
styleOptions: {{styleOptionsString}},
|
|
319
315
|
};
|
|
320
316
|
}, []);
|
|
@@ -915,7 +911,7 @@ const Zi = {
|
|
|
915
911
|
cellColor: "#e6e6e6",
|
|
916
912
|
hideValues: !0
|
|
917
913
|
}
|
|
918
|
-
},
|
|
914
|
+
}, Bi = {
|
|
919
915
|
legend: {
|
|
920
916
|
enabled: !0,
|
|
921
917
|
position: "bottom"
|
|
@@ -923,7 +919,7 @@ const Zi = {
|
|
|
923
919
|
tooltip: {
|
|
924
920
|
mode: "value"
|
|
925
921
|
}
|
|
926
|
-
},
|
|
922
|
+
}, Hi = {
|
|
927
923
|
legend: {
|
|
928
924
|
enabled: !0,
|
|
929
925
|
position: "bottom"
|
|
@@ -1078,9 +1074,9 @@ function Vi(e) {
|
|
|
1078
1074
|
case "calendar-heatmap":
|
|
1079
1075
|
return q(Gi);
|
|
1080
1076
|
case "sunburst":
|
|
1081
|
-
return q(Hi);
|
|
1082
|
-
case "scatter":
|
|
1083
1077
|
return q(Bi);
|
|
1078
|
+
case "scatter":
|
|
1079
|
+
return q(Hi);
|
|
1084
1080
|
case "scattermap":
|
|
1085
1081
|
return q(Qi);
|
|
1086
1082
|
case "areamap":
|
|
@@ -1477,7 +1473,7 @@ const po = (e) => {
|
|
|
1477
1473
|
}, Symbol.toStringTag, {
|
|
1478
1474
|
value: "Module"
|
|
1479
1475
|
}));
|
|
1480
|
-
var _o = Object.defineProperty, Co = Object.defineProperties, vo = Object.getOwnPropertyDescriptors,
|
|
1476
|
+
var _o = Object.defineProperty, Co = Object.defineProperties, vo = Object.getOwnPropertyDescriptors, Be = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Zt = (e, t, r) => t in e ? _o(e, t, {
|
|
1481
1477
|
enumerable: !0,
|
|
1482
1478
|
configurable: !0,
|
|
1483
1479
|
writable: !0,
|
|
@@ -1485,16 +1481,16 @@ var _o = Object.defineProperty, Co = Object.defineProperties, vo = Object.getOwn
|
|
|
1485
1481
|
}) : e[t] = r, I = (e, t) => {
|
|
1486
1482
|
for (var r in t || (t = {}))
|
|
1487
1483
|
_r.call(t, r) && Zt(e, r, t[r]);
|
|
1488
|
-
if (
|
|
1489
|
-
for (var r of
|
|
1484
|
+
if (Be)
|
|
1485
|
+
for (var r of Be(t))
|
|
1490
1486
|
Cr.call(t, r) && Zt(e, r, t[r]);
|
|
1491
1487
|
return e;
|
|
1492
1488
|
}, j = (e, t) => Co(e, vo(t)), So = (e, t) => {
|
|
1493
1489
|
var r = {};
|
|
1494
1490
|
for (var a in e)
|
|
1495
1491
|
_r.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
1496
|
-
if (e != null &&
|
|
1497
|
-
for (var a of
|
|
1492
|
+
if (e != null && Be)
|
|
1493
|
+
for (var a of Be(e))
|
|
1498
1494
|
t.indexOf(a) < 0 && Cr.call(e, a) && (r[a] = e[a]);
|
|
1499
1495
|
return r;
|
|
1500
1496
|
}, pe = (e, t, r) => new Promise((a, i) => {
|
|
@@ -1513,7 +1509,7 @@ var _o = Object.defineProperty, Co = Object.defineProperties, vo = Object.getOwn
|
|
|
1513
1509
|
}, p = (d) => d.done ? a(d.value) : Promise.resolve(d.value).then(l, s);
|
|
1514
1510
|
p((r = r.apply(e, t)).next());
|
|
1515
1511
|
});
|
|
1516
|
-
class Mo extends
|
|
1512
|
+
class Mo extends Ba {
|
|
1517
1513
|
constructor(t, r) {
|
|
1518
1514
|
super(), this.client = t, this.setOptions(r), this.bindMethods(), this.updateResult();
|
|
1519
1515
|
}
|
|
@@ -1523,7 +1519,7 @@ class Mo extends Ha {
|
|
|
1523
1519
|
setOptions(t) {
|
|
1524
1520
|
var r;
|
|
1525
1521
|
const a = this.options;
|
|
1526
|
-
this.options = this.client.defaultMutationOptions(t),
|
|
1522
|
+
this.options = this.client.defaultMutationOptions(t), Ha(a, this.options) || this.client.getMutationCache().notify({
|
|
1527
1523
|
type: "observerOptionsUpdated",
|
|
1528
1524
|
mutation: this.currentMutation,
|
|
1529
1525
|
observer: this
|
|
@@ -1965,7 +1961,7 @@ const lt = 4, No = (e) => {
|
|
|
1965
1961
|
return JSON.parse(t.content);
|
|
1966
1962
|
}
|
|
1967
1963
|
return null;
|
|
1968
|
-
}, [e]), Tr = (e) => !!e && "type" in e && e.type === "nlq",
|
|
1964
|
+
}, [e]), Tr = (e) => !!e && "type" in e && e.type === "nlq", Bo = (e) => !!e && "type" in e && e.type === "text", Ho = (e, t) => {
|
|
1969
1965
|
const {
|
|
1970
1966
|
t: r
|
|
1971
1967
|
} = E(), {
|
|
@@ -2520,24 +2516,24 @@ var qt;
|
|
|
2520
2516
|
const Gt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), {
|
|
2521
2517
|
class: "className",
|
|
2522
2518
|
for: "htmlFor"
|
|
2523
|
-
}),
|
|
2519
|
+
}), Bt = {
|
|
2524
2520
|
amp: "&",
|
|
2525
2521
|
apos: "'",
|
|
2526
2522
|
gt: ">",
|
|
2527
2523
|
lt: "<",
|
|
2528
2524
|
nbsp: " ",
|
|
2529
2525
|
quot: "“"
|
|
2530
|
-
}, _n = ["style", "script"], Cn = ["src", "href", "data", "formAction", "srcDoc", "action"], vn = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Sn = /mailto:/i, Mn = /\n{2,}$/, Er = /^(\s*>[\s\S]*?)(?=\n\n|$)/, In = /^ *> ?/gm, Dn = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, An = /^ {2,}\n/, Ln = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, zr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Rr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Tn = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Nn = /^(?:\n *)*\n/, jn = /\r\n?/g, On = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, En = /^\[\^([^\]]+)]/, zn = /\f/g, Rn = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Zn = /^\s*?\[(x|\s)\]/, Zr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Wr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Pr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ct = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Wn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, qr = /^<!--[\s\S]*?(?:-->)/, Pn = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, qn = /^\{.*\}$/, Gn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
|
|
2531
|
-
function
|
|
2526
|
+
}, _n = ["style", "script"], Cn = ["src", "href", "data", "formAction", "srcDoc", "action"], vn = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Sn = /mailto:/i, Mn = /\n{2,}$/, Er = /^(\s*>[\s\S]*?)(?=\n\n|$)/, In = /^ *> ?/gm, Dn = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, An = /^ {2,}\n/, Ln = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, zr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Rr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Tn = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Nn = /^(?:\n *)*\n/, jn = /\r\n?/g, On = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, En = /^\[\^([^\]]+)]/, zn = /\f/g, Rn = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Zn = /^\s*?\[(x|\s)\]/, Zr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Wr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Pr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, ct = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Wn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, qr = /^<!--[\s\S]*?(?:-->)/, Pn = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, qn = /^\{.*\}$/, Gn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Bn = /^<([^ >]+@[^ >]+)>/, Hn = /^<([^ >]+:\/[^ >]+)>/, Yn = /-([a-z])?/gi, Gr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Qn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Un = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Fn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, Vn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, $n = /\t/g, Jn = /(^ *\||\| *$)/g, Xn = /^ *:-+: *$/, Kn = /^ *:-+ *$/, el = /^ *-+: *$/, Fe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", tl = new RegExp(`^([*_])\\1${Fe}\\1\\1(?!\\1)`), rl = new RegExp(`^([*_])${Fe}\\1(?!\\1)`), al = new RegExp(`^(==)${Fe}\\1`), il = new RegExp(`^(~~)${Fe}\\1`), ol = /^\\([^0-9A-Za-z\s])/, Ht = /\\([^0-9A-Za-z\s])/g, nl = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, ll = /^\n+/, sl = /^([ \t]*)/, cl = /\\([^\\])/g, dl = /(?:^|\n)( *)$/, vt = "(?:\\d+\\.)", St = "(?:[*+-])";
|
|
2527
|
+
function Br(e) {
|
|
2532
2528
|
return "( *)(" + (e === 1 ? vt : St) + ") +";
|
|
2533
2529
|
}
|
|
2534
|
-
const
|
|
2530
|
+
const Hr = Br(1), Yr = Br(2);
|
|
2535
2531
|
function Qr(e) {
|
|
2536
|
-
return new RegExp("^" + (e === 1 ?
|
|
2532
|
+
return new RegExp("^" + (e === 1 ? Hr : Yr));
|
|
2537
2533
|
}
|
|
2538
2534
|
const pl = Qr(1), ul = Qr(2);
|
|
2539
2535
|
function Ur(e) {
|
|
2540
|
-
return new RegExp("^" + (e === 1 ?
|
|
2536
|
+
return new RegExp("^" + (e === 1 ? Hr : Yr) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? vt : St) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
2541
2537
|
}
|
|
2542
2538
|
const gl = Ur(1), hl = Ur(2);
|
|
2543
2539
|
function Fr(e) {
|
|
@@ -2775,15 +2771,15 @@ function Ml(e = "", t = {}) {
|
|
|
2775
2771
|
const D = m[M] = function(S, A, R, ue) {
|
|
2776
2772
|
return A === "style" ? function(F) {
|
|
2777
2773
|
const G = [];
|
|
2778
|
-
let
|
|
2774
|
+
let H = "", V = !1, B = !1, $ = "";
|
|
2779
2775
|
if (!F)
|
|
2780
2776
|
return G;
|
|
2781
2777
|
for (let z = 0; z < F.length; z++) {
|
|
2782
2778
|
const W = F[z];
|
|
2783
|
-
if (W !== '"' && W !== "'" || V || (
|
|
2784
|
-
|
|
2779
|
+
if (W !== '"' && W !== "'" || V || (B ? W === $ && (B = !1, $ = "") : (B = !0, $ = W)), W === "(" && H.endsWith("url") ? V = !0 : W === ")" && V && (V = !1), W !== ";" || B || V)
|
|
2780
|
+
H += W;
|
|
2785
2781
|
else {
|
|
2786
|
-
const Y =
|
|
2782
|
+
const Y = H.trim();
|
|
2787
2783
|
if (Y) {
|
|
2788
2784
|
const se = Y.indexOf(":");
|
|
2789
2785
|
if (se > 0) {
|
|
@@ -2791,10 +2787,10 @@ function Ml(e = "", t = {}) {
|
|
|
2791
2787
|
G.push([ge, ke]);
|
|
2792
2788
|
}
|
|
2793
2789
|
}
|
|
2794
|
-
|
|
2790
|
+
H = "";
|
|
2795
2791
|
}
|
|
2796
2792
|
}
|
|
2797
|
-
const J =
|
|
2793
|
+
const J = H.trim();
|
|
2798
2794
|
if (J) {
|
|
2799
2795
|
const z = J.indexOf(":");
|
|
2800
2796
|
if (z > 0) {
|
|
@@ -2803,8 +2799,8 @@ function Ml(e = "", t = {}) {
|
|
|
2803
2799
|
}
|
|
2804
2800
|
}
|
|
2805
2801
|
return G;
|
|
2806
|
-
}(R).reduce(function(F, [G,
|
|
2807
|
-
return F[G.replace(/(-[a-z])/g, (V) => V[1].toUpperCase())] = ue(
|
|
2802
|
+
}(R).reduce(function(F, [G, H]) {
|
|
2803
|
+
return F[G.replace(/(-[a-z])/g, (V) => V[1].toUpperCase())] = ue(H, S, G), F;
|
|
2808
2804
|
}, {}) : Cn.indexOf(A) !== -1 ? ue(R, S, A) : (R.match(qn) && (R = R.slice(1, R.length - 1)), R === "true" || R !== "false" && R);
|
|
2809
2805
|
}(o, _, y, t.sanitizer);
|
|
2810
2806
|
typeof D == "string" && (ct.test(D) || dt.test(D)) && (m[M] = a(D.trim()));
|
|
@@ -2813,7 +2809,7 @@ function Ml(e = "", t = {}) {
|
|
|
2813
2809
|
return m;
|
|
2814
2810
|
}, {}) : null;
|
|
2815
2811
|
}
|
|
2816
|
-
t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || _l, t.slugify = t.slugify || Ce, t.namedCodesToUnicode = t.namedCodesToUnicode ? ce({},
|
|
2812
|
+
t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || _l, t.slugify = t.slugify || Ce, t.namedCodesToUnicode = t.namedCodesToUnicode ? ce({}, Bt, t.namedCodesToUnicode) : Bt, t.createElement = t.createElement || Qa;
|
|
2817
2813
|
const l = [], s = {}, p = {
|
|
2818
2814
|
[k.blockQuote]: {
|
|
2819
2815
|
match: te(Er),
|
|
@@ -2862,7 +2858,7 @@ function Ml(e = "", t = {}) {
|
|
|
2862
2858
|
order: 0,
|
|
2863
2859
|
parse: (o) => ({
|
|
2864
2860
|
lang: void 0,
|
|
2865
|
-
text: Ie(o[0].replace(/^ {4}/gm, "")).replace(
|
|
2861
|
+
text: Ie(o[0].replace(/^ {4}/gm, "")).replace(Ht, "$1")
|
|
2866
2862
|
}),
|
|
2867
2863
|
render: (o, u, c) => r("pre", {
|
|
2868
2864
|
key: c.key
|
|
@@ -2884,7 +2880,7 @@ function Ml(e = "", t = {}) {
|
|
|
2884
2880
|
match: ne(Tn),
|
|
2885
2881
|
order: 3,
|
|
2886
2882
|
parse: (o) => ({
|
|
2887
|
-
text: o[2].replace(
|
|
2883
|
+
text: o[2].replace(Ht, "$1")
|
|
2888
2884
|
}),
|
|
2889
2885
|
render: (o, u, c) => r("code", {
|
|
2890
2886
|
key: c.key
|
|
@@ -3015,7 +3011,7 @@ function Ml(e = "", t = {}) {
|
|
|
3015
3011
|
}, u(o.children, c))
|
|
3016
3012
|
},
|
|
3017
3013
|
[k.linkAngleBraceStyleDetector]: {
|
|
3018
|
-
match: oe(
|
|
3014
|
+
match: oe(Hn),
|
|
3019
3015
|
order: 0,
|
|
3020
3016
|
parse: (o) => ({
|
|
3021
3017
|
children: [{
|
|
@@ -3040,7 +3036,7 @@ function Ml(e = "", t = {}) {
|
|
|
3040
3036
|
})
|
|
3041
3037
|
},
|
|
3042
3038
|
[k.linkMailtoDetector]: {
|
|
3043
|
-
match: oe(
|
|
3039
|
+
match: oe(Bn),
|
|
3044
3040
|
order: 0,
|
|
3045
3041
|
parse(o) {
|
|
3046
3042
|
let u = o[1], c = o[1];
|
|
@@ -3383,7 +3379,7 @@ const Ll = /* @__PURE__ */ C("div", {
|
|
|
3383
3379
|
}
|
|
3384
3380
|
return "";
|
|
3385
3381
|
});
|
|
3386
|
-
function
|
|
3382
|
+
function He({
|
|
3387
3383
|
children: e,
|
|
3388
3384
|
align: t,
|
|
3389
3385
|
onClick: r,
|
|
@@ -3420,7 +3416,7 @@ function Nl({
|
|
|
3420
3416
|
children: r("ai.clearHistoryPrompt")
|
|
3421
3417
|
}), /* @__PURE__ */ v("div", {
|
|
3422
3418
|
className: "csdk-flex csdk-gap-x-2",
|
|
3423
|
-
children: [/* @__PURE__ */ n(
|
|
3419
|
+
children: [/* @__PURE__ */ n(He, {
|
|
3424
3420
|
align: "right",
|
|
3425
3421
|
onClick: t,
|
|
3426
3422
|
accessibleName: "confirm clear chat",
|
|
@@ -3428,7 +3424,7 @@ function Nl({
|
|
|
3428
3424
|
className: "csdk-py-[6px] csdk-px-[20px]",
|
|
3429
3425
|
children: r("ai.buttons.yes")
|
|
3430
3426
|
})
|
|
3431
|
-
}), /* @__PURE__ */ n(
|
|
3427
|
+
}), /* @__PURE__ */ n(He, {
|
|
3432
3428
|
align: "right",
|
|
3433
3429
|
onClick: e,
|
|
3434
3430
|
accessibleName: "cancel clear chat",
|
|
@@ -3465,7 +3461,7 @@ function El({
|
|
|
3465
3461
|
const {
|
|
3466
3462
|
t
|
|
3467
3463
|
} = E();
|
|
3468
|
-
return /* @__PURE__ */ n(
|
|
3464
|
+
return /* @__PURE__ */ n(He, {
|
|
3469
3465
|
align: "left",
|
|
3470
3466
|
onClick: e,
|
|
3471
3467
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -3672,14 +3668,14 @@ const Rl = Qe(ma, {
|
|
|
3672
3668
|
slotProps: ue = {},
|
|
3673
3669
|
TransitionComponent: F = It,
|
|
3674
3670
|
transitionDuration: G = i,
|
|
3675
|
-
TransitionProps:
|
|
3676
|
-
} = l, V = So(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"]),
|
|
3671
|
+
TransitionProps: H
|
|
3672
|
+
} = l, V = So(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"]), B = j(I({}, r), {
|
|
3677
3673
|
disableEscapeKeyDown: u,
|
|
3678
3674
|
fullScreen: c,
|
|
3679
3675
|
fullWidth: m,
|
|
3680
3676
|
maxWidth: h,
|
|
3681
3677
|
scroll: A
|
|
3682
|
-
}), $ = Zl(
|
|
3678
|
+
}), $ = Zl(B), J = de(), z = (he) => {
|
|
3683
3679
|
J.current = he.target === he.currentTarget;
|
|
3684
3680
|
}, W = (he) => {
|
|
3685
3681
|
_ && _(he), J.current && (J.current = null, w && w(he), y && y(he, "backdropClick"));
|
|
@@ -3688,7 +3684,7 @@ const Rl = Qe(ma, {
|
|
|
3688
3684
|
}), [Y]), ge = I({
|
|
3689
3685
|
transition: F
|
|
3690
3686
|
}, R), ke = I({
|
|
3691
|
-
transition:
|
|
3687
|
+
transition: H,
|
|
3692
3688
|
paper: S,
|
|
3693
3689
|
backdrop: f
|
|
3694
3690
|
}, ue), T = {
|
|
@@ -3698,29 +3694,29 @@ const Rl = Qe(ma, {
|
|
|
3698
3694
|
elementType: Wl,
|
|
3699
3695
|
shouldForwardComponentProp: !0,
|
|
3700
3696
|
externalForwardedProps: T,
|
|
3701
|
-
ownerState:
|
|
3697
|
+
ownerState: B,
|
|
3702
3698
|
className: Je($.root, o),
|
|
3703
3699
|
ref: t
|
|
3704
3700
|
}), [Oe, la] = ye("backdrop", {
|
|
3705
3701
|
elementType: Rl,
|
|
3706
3702
|
shouldForwardComponentProp: !0,
|
|
3707
3703
|
externalForwardedProps: T,
|
|
3708
|
-
ownerState:
|
|
3704
|
+
ownerState: B
|
|
3709
3705
|
}), [sa, ca] = ye("paper", {
|
|
3710
3706
|
elementType: ql,
|
|
3711
3707
|
shouldForwardComponentProp: !0,
|
|
3712
3708
|
externalForwardedProps: T,
|
|
3713
|
-
ownerState:
|
|
3709
|
+
ownerState: B,
|
|
3714
3710
|
className: Je($.paper, S.className)
|
|
3715
3711
|
}), [da, pa] = ye("container", {
|
|
3716
3712
|
elementType: Pl,
|
|
3717
3713
|
externalForwardedProps: T,
|
|
3718
|
-
ownerState:
|
|
3714
|
+
ownerState: B,
|
|
3719
3715
|
className: Je($.container)
|
|
3720
3716
|
}), [ua, ga] = ye("transition", {
|
|
3721
3717
|
elementType: It,
|
|
3722
3718
|
externalForwardedProps: T,
|
|
3723
|
-
ownerState:
|
|
3719
|
+
ownerState: B,
|
|
3724
3720
|
additionalProps: {
|
|
3725
3721
|
appear: !0,
|
|
3726
3722
|
in: M,
|
|
@@ -4037,9 +4033,9 @@ const ta = {
|
|
|
4037
4033
|
errorBG: "rgba(231, 71, 39, 0.1)"
|
|
4038
4034
|
}
|
|
4039
4035
|
}
|
|
4040
|
-
},
|
|
4036
|
+
}, Bl = {
|
|
4041
4037
|
shouldForwardProp: (e) => !e.startsWith("$")
|
|
4042
|
-
}, Ne = /* @__PURE__ */ C(lr,
|
|
4038
|
+
}, Ne = /* @__PURE__ */ C(lr, Bl, {
|
|
4043
4039
|
target: "e869yoj0",
|
|
4044
4040
|
label: "IconButton"
|
|
4045
4041
|
})(({
|
|
@@ -4050,7 +4046,7 @@ const ta = {
|
|
|
4050
4046
|
backgroundColor: e ?? ta.interaction.defaultHover
|
|
4051
4047
|
}
|
|
4052
4048
|
}));
|
|
4053
|
-
function
|
|
4049
|
+
function Hl({
|
|
4054
4050
|
fill: e = "rgba(38, 46, 61, 0.67)"
|
|
4055
4051
|
}) {
|
|
4056
4052
|
return /* @__PURE__ */ n("svg", {
|
|
@@ -4176,7 +4172,7 @@ const Mt = (e) => or(e.chart.backgroundColor), Ul = ({
|
|
|
4176
4172
|
children: /* @__PURE__ */ n(Ne, {
|
|
4177
4173
|
onClick: e,
|
|
4178
4174
|
$hoverColor: Mt(t),
|
|
4179
|
-
children: /* @__PURE__ */ n(
|
|
4175
|
+
children: /* @__PURE__ */ n(Hl, {
|
|
4180
4176
|
fill: t.chart.textColor
|
|
4181
4177
|
})
|
|
4182
4178
|
})
|
|
@@ -4564,7 +4560,7 @@ function ds({
|
|
|
4564
4560
|
alwaysShowFeedback: t
|
|
4565
4561
|
});
|
|
4566
4562
|
}
|
|
4567
|
-
const r =
|
|
4563
|
+
const r = Bo(e) ? JSON.parse(e.content).answer : e.content;
|
|
4568
4564
|
return /* @__PURE__ */ n(le, {
|
|
4569
4565
|
align: e.role === "user" ? "right" : "left",
|
|
4570
4566
|
children: r
|
|
@@ -4879,10 +4875,10 @@ function Ls({
|
|
|
4879
4875
|
isLoading: D,
|
|
4880
4876
|
chatId: S,
|
|
4881
4877
|
lastError: A
|
|
4882
|
-
} =
|
|
4878
|
+
} = Ho(e, r), {
|
|
4883
4879
|
mutate: R,
|
|
4884
4880
|
isLoading: ue
|
|
4885
|
-
} = Lr(S), [F, G] = Z(!1), [
|
|
4881
|
+
} = Lr(S), [F, G] = Z(!1), [H, V] = Z(!1), B = () => G(!0), $ = () => G(!1), J = () => {
|
|
4886
4882
|
R(), $();
|
|
4887
4883
|
}, z = de(null), W = de(null), Y = () => {
|
|
4888
4884
|
if (!(z != null && z.current))
|
|
@@ -4895,7 +4891,7 @@ function Ls({
|
|
|
4895
4891
|
if (T === void 0 || X === void 0 || je === void 0)
|
|
4896
4892
|
return;
|
|
4897
4893
|
const Oe = je - T - X > X / 2;
|
|
4898
|
-
|
|
4894
|
+
H !== Oe && V(Oe);
|
|
4899
4895
|
};
|
|
4900
4896
|
qe(() => {
|
|
4901
4897
|
z.current && (z.current.scrollTop = z.current.scrollHeight);
|
|
@@ -4919,7 +4915,7 @@ function Ls({
|
|
|
4919
4915
|
theme: o,
|
|
4920
4916
|
onScroll: Y,
|
|
4921
4917
|
children: [/* @__PURE__ */ n(ks, {
|
|
4922
|
-
isVisible:
|
|
4918
|
+
isVisible: H,
|
|
4923
4919
|
anchorElement: W.current,
|
|
4924
4920
|
onClick: () => {
|
|
4925
4921
|
var T, X;
|
|
@@ -4939,7 +4935,7 @@ function Ls({
|
|
|
4939
4935
|
messages: w
|
|
4940
4936
|
}), p && _ && ((i = (a = _.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ n(As, {
|
|
4941
4937
|
theme: o,
|
|
4942
|
-
children: (l = _.followupQuestions) == null ? void 0 : l.slice(0, 2).map((T, X) => /* @__PURE__ */ n(
|
|
4938
|
+
children: (l = _.followupQuestions) == null ? void 0 : l.slice(0, 2).map((T, X) => /* @__PURE__ */ n(He, {
|
|
4943
4939
|
align: "left",
|
|
4944
4940
|
onClick: () => {
|
|
4945
4941
|
M(T);
|
|
@@ -4959,7 +4955,7 @@ function Ls({
|
|
|
4959
4955
|
children: [/* @__PURE__ */ n(mn, {
|
|
4960
4956
|
onSendMessage: M,
|
|
4961
4957
|
disabled: y || D,
|
|
4962
|
-
onClearHistoryClick:
|
|
4958
|
+
onClearHistoryClick: B,
|
|
4963
4959
|
suggestions: h || [],
|
|
4964
4960
|
recentPrompts: ke,
|
|
4965
4961
|
isLoading: c || D,
|
|
@@ -5118,10 +5114,10 @@ function Gs({
|
|
|
5118
5114
|
})]
|
|
5119
5115
|
});
|
|
5120
5116
|
}
|
|
5121
|
-
const
|
|
5117
|
+
const Bs = /* @__PURE__ */ C("div", {
|
|
5122
5118
|
target: "eqdfbpm0",
|
|
5123
5119
|
label: "LogoContainer"
|
|
5124
|
-
})("margin-left:14px;margin-top:3px;"),
|
|
5120
|
+
})("margin-left:14px;margin-top:3px;"), Hs = /* @__PURE__ */ C("div", {
|
|
5125
5121
|
target: "eqdfbpm1",
|
|
5126
5122
|
label: "DataTopicsContainer"
|
|
5127
5123
|
})("display:flex;flex-direction:column;justify-content:top;overflow:hidden;height:100%;background-color:", ({
|
|
@@ -5144,13 +5140,13 @@ function Ys({
|
|
|
5144
5140
|
return /* @__PURE__ */ v(Q, {
|
|
5145
5141
|
children: [r ? /* @__PURE__ */ n(jr, {
|
|
5146
5142
|
title: i("ai.analyticsChatbot"),
|
|
5147
|
-
leftNav: /* @__PURE__ */ n(
|
|
5143
|
+
leftNav: /* @__PURE__ */ n(Bs, {
|
|
5148
5144
|
children: /* @__PURE__ */ n(Gs, {
|
|
5149
5145
|
isDarkBackground: s
|
|
5150
5146
|
})
|
|
5151
5147
|
}),
|
|
5152
5148
|
style: a.aiChat.header
|
|
5153
|
-
}) : null, /* @__PURE__ */ v(
|
|
5149
|
+
}) : null, /* @__PURE__ */ v(Hs, {
|
|
5154
5150
|
theme: a,
|
|
5155
5151
|
children: [!l && /* @__PURE__ */ n(Ue, {}), l && /* @__PURE__ */ n(Ws, {
|
|
5156
5152
|
dataTopics: l
|