@sisense/sdk-ui-vue 2.22.0 → 2.23.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 +77 -77
- package/dist/ai.js +78 -78
- package/dist/{index-kxX21arA-e16cd0d3-e16cd0d3.js → index-DCAC0mJe-142baf5c-142baf5c.js} +18 -1
- package/dist/{index-kxX21arA-e16cd0d3-4d73ca0a.cjs → index-DCAC0mJe-142baf5c-82998fcb.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +130 -130
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +19 -2
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +19 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +19 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +19 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +19 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +19 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +19 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +19 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +19 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +19 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +19 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +19 -2
- package/dist/use-tracking-32a907fa.cjs +3229 -0
- package/dist/{use-tracking-e265dc37.js → use-tracking-e5450b58.js} +38684 -37891
- package/package.json +2 -2
- package/dist/use-tracking-0311d864.cjs +0 -3175
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aL as Je, aM as sr, aN as C, aO as P, aP as cr, aQ as ka, aR as Xe, aS as ya, aT as wa, aU as xe, aV as dr, aW as _a, aX as f, aY as pr, aZ as ur, a_ as gr, a$ as hr, b0 as D, b1 as l, b2 as
|
|
1
|
+
import { aL as Je, aM as sr, aN as C, aO as P, aP as cr, aQ as ka, aR as Xe, aS as ya, aT as wa, aU as xe, aV as dr, aW as _a, aX as f, aY as pr, aZ as ur, a_ as gr, a$ as hr, b0 as D, b1 as l, b2 as z, b3 as H, b4 as B, b5 as je, b6 as N, b7 as v, b8 as Ca, b9 as va, ba as he, bb as Sa, bc as Ce, bd as it, be as ve, bf as Ma, bg as Ia, bh as Da, bi as E, bj as we, bk as De, bl as He, bm as Aa, aw as Ae, bn as ot, bo as kt, bp as La, bq as Ta, br as Na, bs as ja, bt as Rt, bu as Ye, bv as ze, bw as za, bx as Oa, by as Ea, bz as Ra, bA as Za, bB as Wa, bC as qa, bD as Pa, bE as $, bF as Te, bG as Ga, bH as $a, bI as Ba, bJ as Ha, bK as Ya, bL as Ua, bM as mr, bN as Qa, bO as Ue, bP as Fa, bQ as Zt, bR as Va, bS as Ja, bT as br, bU as Xa, bV as Ka, bW as ei, bX as ti, bY as ri, bZ as ai, b_ as ii, b$ as oi, c0 as ni, c1 as li, c2 as si, c3 as ci, c4 as di, c5 as pi, c6 as ui, c7 as fr, c8 as Le, c9 as xr, ca as yt, cb as gi, cc as hi, cd as mi, ce as bi, cf as fi, cg as xi, ch as kr, O as ki, ci as yi, a as yr, cj as wr, P as wt, N as _t, R as Ct, T as ke, a7 as vt } from "./use-tracking-e5450b58.js";
|
|
2
2
|
import { inject as wi, ref as _r, defineComponent as St, watchEffect as Cr, provide as _i, watch as Mt, toRefs as It } from "vue";
|
|
3
|
-
import "./index-
|
|
3
|
+
import "./index-DCAC0mJe-142baf5c-142baf5c.js";
|
|
4
4
|
let vr = class extends xr {
|
|
5
5
|
constructor(e, t) {
|
|
6
6
|
var r;
|
|
@@ -117,7 +117,7 @@ function ji(e) {
|
|
|
117
117
|
return t.join(`
|
|
118
118
|
`);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function zi(e) {
|
|
121
121
|
const t = (a) => /^[$A-Z_][0-9A-Z_$]*$/i.test(a);
|
|
122
122
|
if ("composeCode" in e)
|
|
123
123
|
return e;
|
|
@@ -128,7 +128,7 @@ function Oi(e) {
|
|
|
128
128
|
}
|
|
129
129
|
return r;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const Oi = {
|
|
132
132
|
react: {
|
|
133
133
|
baseChartTmpl: `import { {{componentString}} } from '@sisense/sdk-ui';
|
|
134
134
|
{{extraImportsString}}
|
|
@@ -594,7 +594,7 @@ const config = {{configString}};
|
|
|
594
594
|
function Ei(e) {
|
|
595
595
|
return e.replace(/\[\[([^\]]+)\]\]/g, (t, r) => pi(r));
|
|
596
596
|
}
|
|
597
|
-
const Ar = (e, t) =>
|
|
597
|
+
const Ar = (e, t) => Oi[t][e].replace(/{{(.*?)Tmpl}}/g, (r, a) => Ar(`${a}Tmpl`, t)), Ri = (e, t) => e.replace(/{{(.*?)}}/g, (r, a) => a in t ? t[a] : (console.warn(`Placeholder ${a} not found in data`), r)), pt = (e, t, r = "react") => {
|
|
598
598
|
const a = Ar(e, r), i = Ri(a, t);
|
|
599
599
|
return ji(Ei(i));
|
|
600
600
|
}, Zi = () => Object.values(ui).map((e) => fr.aggregationToJAQL(e)).join("|"), Lr = (e) => {
|
|
@@ -1148,7 +1148,7 @@ const qe = `
|
|
|
1148
1148
|
if (r && typeof i == "string" && (i = `'${Le(i)}'`), a += " ".repeat(t + 2), Array.isArray(o))
|
|
1149
1149
|
a += `${i}: [${o.map((s) => oe(s, t + 4, r))}${o.length ? qe + " ".repeat(t + 2) : ""}]`;
|
|
1150
1150
|
else if (typeof o == "object" && o !== null) {
|
|
1151
|
-
const s = Array.isArray(o) ? o :
|
|
1151
|
+
const s = Array.isArray(o) ? o : zi(o);
|
|
1152
1152
|
a += `${i}: ${oe(s, t + 2, r)}`;
|
|
1153
1153
|
} else
|
|
1154
1154
|
["number", "boolean", "undefined"].includes(typeof o) || o === null ? a += `${i}: ${o}` : typeof o == "string" ? a += `${i}: '${Le(o)}'` : a += `${i}: ${o}`;
|
|
@@ -1467,7 +1467,7 @@ const _o = (e) => {
|
|
|
1467
1467
|
datasource: p
|
|
1468
1468
|
} = a, d = ae(j({}, p), {
|
|
1469
1469
|
type: p.type || "elasticube"
|
|
1470
|
-
}), g =
|
|
1470
|
+
}), g = Oa(d), b = _o(s).map((I) => qi(I)).map((I) => ae(j({}, I), {
|
|
1471
1471
|
jaql: ae(j({}, I.jaql), {
|
|
1472
1472
|
datasource: g
|
|
1473
1473
|
})
|
|
@@ -1505,7 +1505,7 @@ const _o = (e) => {
|
|
|
1505
1505
|
}, Symbol.toStringTag, {
|
|
1506
1506
|
value: "Module"
|
|
1507
1507
|
}));
|
|
1508
|
-
var jo = Object.defineProperty,
|
|
1508
|
+
var jo = Object.defineProperty, zo = Object.defineProperties, Oo = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, Nr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? jo(e, t, {
|
|
1509
1509
|
enumerable: !0,
|
|
1510
1510
|
configurable: !0,
|
|
1511
1511
|
writable: !0,
|
|
@@ -1517,7 +1517,7 @@ var jo = Object.defineProperty, Oo = Object.defineProperties, zo = Object.getOwn
|
|
|
1517
1517
|
for (var r of Fe(t))
|
|
1518
1518
|
jr.call(t, r) && gt(e, r, t[r]);
|
|
1519
1519
|
return e;
|
|
1520
|
-
}, T = (e, t) =>
|
|
1520
|
+
}, T = (e, t) => zo(e, Oo(t)), Eo = (e, t) => {
|
|
1521
1521
|
var r = {};
|
|
1522
1522
|
for (var a in e)
|
|
1523
1523
|
Nr.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
@@ -1615,7 +1615,7 @@ class Ro extends si {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
function At(e, t, r) {
|
|
1618
|
-
const a = Va(e, t), i =
|
|
1618
|
+
const a = Va(e, t), i = ze({
|
|
1619
1619
|
context: a.context
|
|
1620
1620
|
}), [o] = E(() => new Ro(i, a));
|
|
1621
1621
|
we(() => {
|
|
@@ -1633,7 +1633,7 @@ function At(e, t, r) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
function Zo() {
|
|
1635
1635
|
}
|
|
1636
|
-
const
|
|
1636
|
+
const zr = Je({}), Wo = () => kt(zr), qo = ({
|
|
1637
1637
|
children: e
|
|
1638
1638
|
}) => {
|
|
1639
1639
|
const [t, r] = E({}), a = N((s, p) => {
|
|
@@ -1644,14 +1644,14 @@ const Or = Je({}), Wo = () => kt(Or), qo = ({
|
|
|
1644
1644
|
[a(p, d)]: s
|
|
1645
1645
|
}));
|
|
1646
1646
|
}, [a]), o = N((s, p) => t[a(s, p)], [t, a]);
|
|
1647
|
-
return /* @__PURE__ */ l(
|
|
1647
|
+
return /* @__PURE__ */ l(zr.Provider, {
|
|
1648
1648
|
value: {
|
|
1649
1649
|
saveChatId: i,
|
|
1650
1650
|
getChatId: o
|
|
1651
1651
|
},
|
|
1652
1652
|
children: e
|
|
1653
1653
|
});
|
|
1654
|
-
}, Po = "api/v2/ai/narrative",
|
|
1654
|
+
}, Po = "api/v2/ai/narrative", Or = "api/v2/ai/nlg/queryResult";
|
|
1655
1655
|
function Go(e) {
|
|
1656
1656
|
return "status" in e;
|
|
1657
1657
|
}
|
|
@@ -1665,7 +1665,7 @@ function Bo(e, t) {
|
|
|
1665
1665
|
} catch (r) {
|
|
1666
1666
|
if (!$o(r))
|
|
1667
1667
|
throw r;
|
|
1668
|
-
return yield e.post(
|
|
1668
|
+
return yield e.post(Or, t);
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
}
|
|
@@ -1675,7 +1675,7 @@ function Ho(e, t, r) {
|
|
|
1675
1675
|
isUnifiedNarrationEnabled: a = !1,
|
|
1676
1676
|
isSisenseAiEnabled: i = !1
|
|
1677
1677
|
} = r ?? {};
|
|
1678
|
-
return a && i ? Bo(e, t) : yield e.post(
|
|
1678
|
+
return a && i ? Bo(e, t) : yield e.post(Or, t);
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
1681
1681
|
class Vt {
|
|
@@ -1839,7 +1839,7 @@ const ht = 4, Qo = (e) => {
|
|
|
1839
1839
|
}) => {
|
|
1840
1840
|
const {
|
|
1841
1841
|
t: r
|
|
1842
|
-
} =
|
|
1842
|
+
} = z(), a = Object.entries(t).reduce((i, [o, s]) => (s !== void 0 && (i[o] = s), i), T(M({}, Zr), {
|
|
1843
1843
|
inputPromptText: r("ai.config.inputPromptText"),
|
|
1844
1844
|
welcomeText: r("ai.config.welcomeText"),
|
|
1845
1845
|
suggestionsWelcomeText: r("ai.config.suggestionsWelcomeText")
|
|
@@ -1865,7 +1865,7 @@ const ht = 4, Qo = (e) => {
|
|
|
1865
1865
|
enabled: !!t && !!e
|
|
1866
1866
|
});
|
|
1867
1867
|
}, qr = (e) => {
|
|
1868
|
-
const t = le(), r =
|
|
1868
|
+
const t = le(), r = ze();
|
|
1869
1869
|
return At({
|
|
1870
1870
|
mutationFn: () => ne(void 0, null, function* () {
|
|
1871
1871
|
if (!(!t || !e))
|
|
@@ -1925,7 +1925,7 @@ const ht = 4, Qo = (e) => {
|
|
|
1925
1925
|
isLoading: r
|
|
1926
1926
|
};
|
|
1927
1927
|
}, en = (e, t, r) => {
|
|
1928
|
-
const a =
|
|
1928
|
+
const a = ze(), i = le(), o = At({
|
|
1929
1929
|
mutationFn: () => ne(void 0, null, function* () {
|
|
1930
1930
|
if (!(!i || !e))
|
|
1931
1931
|
return i.ai.chat.create(e, r);
|
|
@@ -1953,11 +1953,11 @@ const ht = 4, Qo = (e) => {
|
|
|
1953
1953
|
throw Error(`${t}${JSON.stringify(e)}`);
|
|
1954
1954
|
}
|
|
1955
1955
|
}, rn = (e, t) => {
|
|
1956
|
-
const r =
|
|
1956
|
+
const r = ze(), a = N((d) => {
|
|
1957
1957
|
e && r.setQueriesData([Tt, e], (g) => g && [...g, d]);
|
|
1958
1958
|
}, [r, e]), {
|
|
1959
1959
|
t: i
|
|
1960
|
-
} =
|
|
1960
|
+
} = z(), o = le(), {
|
|
1961
1961
|
mutate: s,
|
|
1962
1962
|
isLoading: p
|
|
1963
1963
|
} = At({
|
|
@@ -2025,7 +2025,7 @@ const ht = 4, Qo = (e) => {
|
|
|
2025
2025
|
}, [e]), Pr = (e) => !!e && "type" in e && e.type === "nlq", nn = (e) => !!e && "type" in e && e.type === "text", ln = (e, t) => {
|
|
2026
2026
|
const {
|
|
2027
2027
|
t: r
|
|
2028
|
-
} =
|
|
2028
|
+
} = z(), {
|
|
2029
2029
|
enableFollowupQuestions: a
|
|
2030
2030
|
} = se(), {
|
|
2031
2031
|
chatId: i,
|
|
@@ -2141,7 +2141,7 @@ function mn({
|
|
|
2141
2141
|
}) {
|
|
2142
2142
|
const {
|
|
2143
2143
|
t
|
|
2144
|
-
} =
|
|
2144
|
+
} = z();
|
|
2145
2145
|
return /* @__PURE__ */ v(hn, {
|
|
2146
2146
|
theme: e,
|
|
2147
2147
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -2265,7 +2265,7 @@ function _n({
|
|
|
2265
2265
|
themeSettings: d
|
|
2266
2266
|
} = D(), {
|
|
2267
2267
|
t: g
|
|
2268
|
-
} =
|
|
2268
|
+
} = z(), b = p.length === 1;
|
|
2269
2269
|
return /* @__PURE__ */ l(mr, {
|
|
2270
2270
|
open: mt(o) && p.length > 0,
|
|
2271
2271
|
anchorEl: i,
|
|
@@ -2294,7 +2294,7 @@ function _n({
|
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
2296
|
const Cn = 500;
|
|
2297
|
-
function
|
|
2297
|
+
function Oe({
|
|
2298
2298
|
title: e,
|
|
2299
2299
|
placement: t = "top",
|
|
2300
2300
|
children: r
|
|
@@ -2477,7 +2477,7 @@ function Tn({
|
|
|
2477
2477
|
themeSettings: h
|
|
2478
2478
|
} = D(), {
|
|
2479
2479
|
t: k
|
|
2480
|
-
} =
|
|
2480
|
+
} = z(), _ = N((y) => {
|
|
2481
2481
|
var I;
|
|
2482
2482
|
if ((I = document.getElementById("csdk-chatbot-frame")) != null && I.contains(y.relatedTarget)) {
|
|
2483
2483
|
const A = (S) => {
|
|
@@ -2499,7 +2499,7 @@ function Tn({
|
|
|
2499
2499
|
anchorEl: m.current,
|
|
2500
2500
|
text: d,
|
|
2501
2501
|
recommendationsError: s
|
|
2502
|
-
}), t && /* @__PURE__ */ l(
|
|
2502
|
+
}), t && /* @__PURE__ */ l(Oe, {
|
|
2503
2503
|
title: k("ai.buttons.clearChat"),
|
|
2504
2504
|
placement: "bottom-start",
|
|
2505
2505
|
children: /* @__PURE__ */ l(In, {
|
|
@@ -2548,7 +2548,7 @@ const Nn = C.div`
|
|
|
2548
2548
|
}) => e.aiChat.primaryTextColor};
|
|
2549
2549
|
text-align: center;
|
|
2550
2550
|
font-weight: 600;
|
|
2551
|
-
`,
|
|
2551
|
+
`, zn = C.div`
|
|
2552
2552
|
color: rgba(54, 163, 217, 1);
|
|
2553
2553
|
cursor: pointer;
|
|
2554
2554
|
`;
|
|
@@ -2563,13 +2563,13 @@ function Gr({
|
|
|
2563
2563
|
children: [/* @__PURE__ */ l(jn, {
|
|
2564
2564
|
theme: r,
|
|
2565
2565
|
children: e
|
|
2566
|
-
}), /* @__PURE__ */ l(Ea, {}), t && /* @__PURE__ */ l(
|
|
2566
|
+
}), /* @__PURE__ */ l(Ea, {}), t && /* @__PURE__ */ l(zn, {
|
|
2567
2567
|
onClick: t.onClick,
|
|
2568
2568
|
children: t.text
|
|
2569
2569
|
})]
|
|
2570
2570
|
});
|
|
2571
2571
|
}
|
|
2572
|
-
const
|
|
2572
|
+
const On = C.div`
|
|
2573
2573
|
flex: 0 0 80px;
|
|
2574
2574
|
padding-left: 14px;
|
|
2575
2575
|
padding-right: 14px;
|
|
@@ -2595,7 +2595,7 @@ const zn = C.div`
|
|
|
2595
2595
|
rightNav: r,
|
|
2596
2596
|
style: a
|
|
2597
2597
|
}, i) {
|
|
2598
|
-
return /* @__PURE__ */ v(
|
|
2598
|
+
return /* @__PURE__ */ v(On, {
|
|
2599
2599
|
ref: i,
|
|
2600
2600
|
style: a,
|
|
2601
2601
|
children: [t, /* @__PURE__ */ l(En, {
|
|
@@ -2713,9 +2713,9 @@ const Kt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
|
|
|
2713
2713
|
lt: "<",
|
|
2714
2714
|
nbsp: " ",
|
|
2715
2715
|
quot: "“"
|
|
2716
|
-
}, Zn = ["style", "script"], Wn = ["src", "href", "data", "formAction", "srcDoc", "action"], qn = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Pn = /mailto:/i, Gn = /\n{2,}$/, Br = /^(\s*>[\s\S]*?)(?=\n\n|$)/, $n = /^ *> ?/gm, Bn = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Hn = /^ {2,}\n/, Yn = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Hr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Yr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Un = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Qn = /^(?:\n *)*\n/, Fn = /\r\n?/g, Vn = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Jn = /^\[\^([^\]]+)]/, Xn = /\f/g, Kn = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, el = /^\s*?\[(x|\s)\]/, Ur = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Qr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Fr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, bt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, tl = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Vr = /^<!--[\s\S]*?(?:-->)/, rl = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, ft = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, al = /^\{.*\}$/, il = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ol = /^<([^ >]+@[^ >]+)>/, nl = /^<([^ >]+:\/[^ >]+)>/, ll = /-([a-z])?/gi, Jr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, sl = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, cl = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, dl = /^\[([^\]]*)\] ?\[([^\]]*)\]/, pl = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, ul = /\t/g, gl = /(^ *\||\| *$)/g, hl = /^ *:-+: *$/, ml = /^ *:-+ *$/, bl = /^ *-+: *$/, tt = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", fl = new RegExp(`^([*_])\\1${tt}\\1\\1(?!\\1)`), xl = new RegExp(`^([*_])${tt}\\1(?!\\1)`), kl = new RegExp(`^(==)${tt}\\1`), yl = new RegExp(`^(~~)${tt}\\1`), wl = /^\\([^0-9A-Za-z\s])/, tr = /\\([^0-9A-Za-z\s])/g, _l = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Cl = /^\n+/, vl = /^([ \t]*)/, Sl = /\\([^\\])/g, Ml = /(?:^|\n)( *)$/, jt = "(?:\\d+\\.)",
|
|
2716
|
+
}, Zn = ["style", "script"], Wn = ["src", "href", "data", "formAction", "srcDoc", "action"], qn = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Pn = /mailto:/i, Gn = /\n{2,}$/, Br = /^(\s*>[\s\S]*?)(?=\n\n|$)/, $n = /^ *> ?/gm, Bn = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Hn = /^ {2,}\n/, Yn = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Hr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Yr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Un = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Qn = /^(?:\n *)*\n/, Fn = /\r\n?/g, Vn = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Jn = /^\[\^([^\]]+)]/, Xn = /\f/g, Kn = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, el = /^\s*?\[(x|\s)\]/, Ur = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Qr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Fr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, bt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, tl = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Vr = /^<!--[\s\S]*?(?:-->)/, rl = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, ft = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, al = /^\{.*\}$/, il = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ol = /^<([^ >]+@[^ >]+)>/, nl = /^<([^ >]+:\/[^ >]+)>/, ll = /-([a-z])?/gi, Jr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, sl = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, cl = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, dl = /^\[([^\]]*)\] ?\[([^\]]*)\]/, pl = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, ul = /\t/g, gl = /(^ *\||\| *$)/g, hl = /^ *:-+: *$/, ml = /^ *:-+ *$/, bl = /^ *-+: *$/, tt = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", fl = new RegExp(`^([*_])\\1${tt}\\1\\1(?!\\1)`), xl = new RegExp(`^([*_])${tt}\\1(?!\\1)`), kl = new RegExp(`^(==)${tt}\\1`), yl = new RegExp(`^(~~)${tt}\\1`), wl = /^\\([^0-9A-Za-z\s])/, tr = /\\([^0-9A-Za-z\s])/g, _l = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Cl = /^\n+/, vl = /^([ \t]*)/, Sl = /\\([^\\])/g, Ml = /(?:^|\n)( *)$/, jt = "(?:\\d+\\.)", zt = "(?:[*+-])";
|
|
2717
2717
|
function Xr(e) {
|
|
2718
|
-
return "( *)(" + (e === 1 ? jt :
|
|
2718
|
+
return "( *)(" + (e === 1 ? jt : zt) + ") +";
|
|
2719
2719
|
}
|
|
2720
2720
|
const Kr = Xr(1), ea = Xr(2);
|
|
2721
2721
|
function ta(e) {
|
|
@@ -2723,11 +2723,11 @@ function ta(e) {
|
|
|
2723
2723
|
}
|
|
2724
2724
|
const Il = ta(1), Dl = ta(2);
|
|
2725
2725
|
function ra(e) {
|
|
2726
|
-
return new RegExp("^" + (e === 1 ? Kr : ea) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? jt :
|
|
2726
|
+
return new RegExp("^" + (e === 1 ? Kr : ea) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? jt : zt) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
2727
2727
|
}
|
|
2728
2728
|
const Al = ra(1), Ll = ra(2);
|
|
2729
2729
|
function aa(e) {
|
|
2730
|
-
const t = e === 1 ? jt :
|
|
2730
|
+
const t = e === 1 ? jt : zt;
|
|
2731
2731
|
return new RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
|
|
2732
2732
|
}
|
|
2733
2733
|
const ia = aa(1), oa = aa(2);
|
|
@@ -2781,7 +2781,7 @@ function Ne(e) {
|
|
|
2781
2781
|
function Me(e) {
|
|
2782
2782
|
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();
|
|
2783
2783
|
}
|
|
2784
|
-
function
|
|
2784
|
+
function zl(e) {
|
|
2785
2785
|
return bl.test(e) ? "right" : hl.test(e) ? "center" : ml.test(e) ? "left" : null;
|
|
2786
2786
|
}
|
|
2787
2787
|
function ar(e, t, r, a) {
|
|
@@ -2798,9 +2798,9 @@ function ar(e, t, r, a) {
|
|
|
2798
2798
|
d.trim() === "|" && (p(), a) ? g !== 0 && g !== b.length - 1 && o.push([]) : s += d;
|
|
2799
2799
|
}), p(), r.inTable = i, o;
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2801
|
+
function Ol(e, t, r) {
|
|
2802
2802
|
r.inline = !0;
|
|
2803
|
-
const a = e[2] ? e[2].replace(gl, "").split("|").map(
|
|
2803
|
+
const a = e[2] ? e[2].replace(gl, "").split("|").map(zl) : [], i = e[3] ? function(s, p, d) {
|
|
2804
2804
|
return s.trim().split(`
|
|
2805
2805
|
`).map(function(g) {
|
|
2806
2806
|
return ar(g, p, d, !0);
|
|
@@ -3299,7 +3299,7 @@ function Gl(e = "", t = {}) {
|
|
|
3299
3299
|
[w.table]: {
|
|
3300
3300
|
match: ie(Jr),
|
|
3301
3301
|
order: 1,
|
|
3302
|
-
parse:
|
|
3302
|
+
parse: Ol,
|
|
3303
3303
|
render(n, u, c) {
|
|
3304
3304
|
const m = n;
|
|
3305
3305
|
return r("table", {
|
|
@@ -3633,7 +3633,7 @@ function Ql({
|
|
|
3633
3633
|
}) {
|
|
3634
3634
|
const {
|
|
3635
3635
|
t: r
|
|
3636
|
-
} =
|
|
3636
|
+
} = z();
|
|
3637
3637
|
return /* @__PURE__ */ v(H, {
|
|
3638
3638
|
children: [/* @__PURE__ */ l(pe, {
|
|
3639
3639
|
align: "left",
|
|
@@ -3684,7 +3684,7 @@ function Jl({
|
|
|
3684
3684
|
}) {
|
|
3685
3685
|
const {
|
|
3686
3686
|
t
|
|
3687
|
-
} =
|
|
3687
|
+
} = z();
|
|
3688
3688
|
return /* @__PURE__ */ l(Ve, {
|
|
3689
3689
|
align: "left",
|
|
3690
3690
|
onClick: e,
|
|
@@ -3921,7 +3921,7 @@ const Kl = Xe(ya, {
|
|
|
3921
3921
|
ownerState: G,
|
|
3922
3922
|
className: it(K.root, n),
|
|
3923
3923
|
ref: t
|
|
3924
|
-
}), [
|
|
3924
|
+
}), [O, te] = Ce("backdrop", {
|
|
3925
3925
|
elementType: Kl,
|
|
3926
3926
|
shouldForwardComponentProp: !0,
|
|
3927
3927
|
externalForwardedProps: ue,
|
|
@@ -3951,7 +3951,7 @@ const Kl = Xe(ya, {
|
|
|
3951
3951
|
return /* @__PURE__ */ ve(Re, T(M(M({
|
|
3952
3952
|
closeAfterTransition: !0,
|
|
3953
3953
|
slots: {
|
|
3954
|
-
backdrop:
|
|
3954
|
+
backdrop: O
|
|
3955
3955
|
},
|
|
3956
3956
|
slotProps: {
|
|
3957
3957
|
backdrop: M({
|
|
@@ -4317,17 +4317,17 @@ function ss() {
|
|
|
4317
4317
|
})
|
|
4318
4318
|
});
|
|
4319
4319
|
}
|
|
4320
|
-
const
|
|
4320
|
+
const Ot = (e) => gr(e.chart.backgroundColor), cs = ({
|
|
4321
4321
|
title: e
|
|
4322
4322
|
}) => {
|
|
4323
4323
|
const {
|
|
4324
4324
|
themeSettings: t
|
|
4325
4325
|
} = D();
|
|
4326
|
-
return /* @__PURE__ */ l(
|
|
4326
|
+
return /* @__PURE__ */ l(Oe, {
|
|
4327
4327
|
title: e,
|
|
4328
4328
|
children: /* @__PURE__ */ l(Ee, {
|
|
4329
4329
|
disableTouchRipple: !0,
|
|
4330
|
-
$hoverColor:
|
|
4330
|
+
$hoverColor: Ot(t),
|
|
4331
4331
|
children: /* @__PURE__ */ l(ls, {
|
|
4332
4332
|
fill: t.chart.textColor
|
|
4333
4333
|
})
|
|
@@ -4346,7 +4346,7 @@ const zt = (e) => gr(e.chart.backgroundColor), cs = ({
|
|
|
4346
4346
|
return /* @__PURE__ */ v(H, {
|
|
4347
4347
|
children: [/* @__PURE__ */ l(Ee, {
|
|
4348
4348
|
onClick: a,
|
|
4349
|
-
$hoverColor:
|
|
4349
|
+
$hoverColor: Ot(o),
|
|
4350
4350
|
"aria-label": "three dots button",
|
|
4351
4351
|
children: /* @__PURE__ */ l(gi, {
|
|
4352
4352
|
fill: o.chart.textColor
|
|
@@ -4387,12 +4387,12 @@ const zt = (e) => gr(e.chart.backgroundColor), cs = ({
|
|
|
4387
4387
|
themeSettings: t
|
|
4388
4388
|
} = D(), {
|
|
4389
4389
|
t: r
|
|
4390
|
-
} =
|
|
4391
|
-
return /* @__PURE__ */ l(
|
|
4390
|
+
} = z();
|
|
4391
|
+
return /* @__PURE__ */ l(Oe, {
|
|
4392
4392
|
title: r("ai.preview"),
|
|
4393
4393
|
children: /* @__PURE__ */ l(Ee, {
|
|
4394
4394
|
onClick: e,
|
|
4395
|
-
$hoverColor:
|
|
4395
|
+
$hoverColor: Ot(t),
|
|
4396
4396
|
children: /* @__PURE__ */ l(ns, {
|
|
4397
4397
|
fill: t.chart.textColor
|
|
4398
4398
|
})
|
|
@@ -4547,8 +4547,8 @@ function bs({
|
|
|
4547
4547
|
themeSettings: r
|
|
4548
4548
|
} = D(), {
|
|
4549
4549
|
t: a
|
|
4550
|
-
} =
|
|
4551
|
-
return /* @__PURE__ */ l(
|
|
4550
|
+
} = z();
|
|
4551
|
+
return /* @__PURE__ */ l(Oe, {
|
|
4552
4552
|
title: a("ai.buttons.incorrectResponse"),
|
|
4553
4553
|
children: /* @__PURE__ */ l(Ee, {
|
|
4554
4554
|
"aria-label": "thumbs-down",
|
|
@@ -4586,8 +4586,8 @@ function xs({
|
|
|
4586
4586
|
themeSettings: r
|
|
4587
4587
|
} = D(), {
|
|
4588
4588
|
t: a
|
|
4589
|
-
} =
|
|
4590
|
-
return /* @__PURE__ */ l(
|
|
4589
|
+
} = z();
|
|
4590
|
+
return /* @__PURE__ */ l(Oe, {
|
|
4591
4591
|
title: a("ai.buttons.correctResponse"),
|
|
4592
4592
|
children: /* @__PURE__ */ l(Ee, {
|
|
4593
4593
|
"aria-label": "thumbs-up",
|
|
@@ -4667,7 +4667,7 @@ function Et({
|
|
|
4667
4667
|
}) {
|
|
4668
4668
|
const [t, r] = E(!0), [a, i] = E(!1), {
|
|
4669
4669
|
t: o
|
|
4670
|
-
} =
|
|
4670
|
+
} = z(), s = he(null);
|
|
4671
4671
|
return Ye(() => {
|
|
4672
4672
|
s.current && s.current.scrollHeight > _s && i(!0);
|
|
4673
4673
|
}, [e]), /* @__PURE__ */ v("div", {
|
|
@@ -4694,7 +4694,7 @@ function Cs({
|
|
|
4694
4694
|
isError: a
|
|
4695
4695
|
} = Lt(e), {
|
|
4696
4696
|
t: i
|
|
4697
|
-
} =
|
|
4697
|
+
} = z();
|
|
4698
4698
|
return r ? /* @__PURE__ */ l(Nt, {}) : a ? /* @__PURE__ */ l(pe, {
|
|
4699
4699
|
align: "left",
|
|
4700
4700
|
children: i("ai.errors.unexpected")
|
|
@@ -4802,7 +4802,7 @@ function As({
|
|
|
4802
4802
|
}) {
|
|
4803
4803
|
const {
|
|
4804
4804
|
t
|
|
4805
|
-
} =
|
|
4805
|
+
} = z();
|
|
4806
4806
|
return /* @__PURE__ */ l(H, {
|
|
4807
4807
|
children: e.map((r, a) => /* @__PURE__ */ l(Ua, {
|
|
4808
4808
|
fallbackRender: (i) => Ds(T(M({}, i), {
|
|
@@ -4891,7 +4891,7 @@ const Ns = (e, t) => {
|
|
|
4891
4891
|
theme: e
|
|
4892
4892
|
}) => e.aiChat.clickableMessages.hover.backgroundColor};
|
|
4893
4893
|
box-shadow: none;
|
|
4894
|
-
`,
|
|
4894
|
+
`, zs = ({
|
|
4895
4895
|
onClick: e
|
|
4896
4896
|
}) => {
|
|
4897
4897
|
const {
|
|
@@ -4902,7 +4902,7 @@ const Ns = (e, t) => {
|
|
|
4902
4902
|
onClick: e,
|
|
4903
4903
|
children: /* @__PURE__ */ l(Ts, {})
|
|
4904
4904
|
});
|
|
4905
|
-
},
|
|
4905
|
+
}, Os = ({
|
|
4906
4906
|
isVisible: e,
|
|
4907
4907
|
onClick: t,
|
|
4908
4908
|
anchorElement: r
|
|
@@ -4913,7 +4913,7 @@ const Ns = (e, t) => {
|
|
|
4913
4913
|
sx: {
|
|
4914
4914
|
zIndex: 2
|
|
4915
4915
|
},
|
|
4916
|
-
children: /* @__PURE__ */ l(
|
|
4916
|
+
children: /* @__PURE__ */ l(zs, {
|
|
4917
4917
|
onClick: t
|
|
4918
4918
|
})
|
|
4919
4919
|
}), Es = C.button`
|
|
@@ -5012,7 +5012,7 @@ function Zs({
|
|
|
5012
5012
|
}) {
|
|
5013
5013
|
const {
|
|
5014
5014
|
t: r
|
|
5015
|
-
} =
|
|
5015
|
+
} = z(), [a, i] = E(!0), o = B(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
|
|
5016
5016
|
themeSettings: s
|
|
5017
5017
|
} = D();
|
|
5018
5018
|
return /* @__PURE__ */ v(Rs, {
|
|
@@ -5140,7 +5140,7 @@ function Ys({
|
|
|
5140
5140
|
var a, i, o, s;
|
|
5141
5141
|
const {
|
|
5142
5142
|
t: p
|
|
5143
|
-
} =
|
|
5143
|
+
} = z(), {
|
|
5144
5144
|
enableFollowupQuestions: d,
|
|
5145
5145
|
enableHeader: g,
|
|
5146
5146
|
numOfRecentPrompts: b,
|
|
@@ -5158,7 +5158,7 @@ function Ys({
|
|
|
5158
5158
|
contextTitle: e,
|
|
5159
5159
|
count: x,
|
|
5160
5160
|
customPrompt: n
|
|
5161
|
-
}), _ = B(() => m == null ? void 0 : m.map((
|
|
5161
|
+
}), _ = B(() => m == null ? void 0 : m.map((O) => O.nlqPrompt), [m]), {
|
|
5162
5162
|
history: y,
|
|
5163
5163
|
lastNlqResponse: I,
|
|
5164
5164
|
isAwaitingResponse: A,
|
|
@@ -5175,13 +5175,13 @@ function Ys({
|
|
|
5175
5175
|
if (!(W != null && W.current))
|
|
5176
5176
|
return;
|
|
5177
5177
|
const {
|
|
5178
|
-
scrollTop:
|
|
5178
|
+
scrollTop: O,
|
|
5179
5179
|
clientHeight: te,
|
|
5180
5180
|
scrollHeight: Ze
|
|
5181
5181
|
} = W.current;
|
|
5182
|
-
if (
|
|
5182
|
+
if (O === void 0 || te === void 0 || Ze === void 0)
|
|
5183
5183
|
return;
|
|
5184
|
-
const We = Ze -
|
|
5184
|
+
const We = Ze - O - te > te / 2;
|
|
5185
5185
|
K !== We && ee(We);
|
|
5186
5186
|
};
|
|
5187
5187
|
Ye(() => {
|
|
@@ -5195,7 +5195,7 @@ function Ys({
|
|
|
5195
5195
|
color: u.aiChat.header.textColor
|
|
5196
5196
|
}),
|
|
5197
5197
|
style: u.aiChat.header
|
|
5198
|
-
}) : null, at = B(() => [...new Set(y.filter((
|
|
5198
|
+
}) : null, at = B(() => [...new Set(y.filter((O) => O.role === "user").filter((O) => !(_ != null && _.includes(O.content))).map((O) => O.content).reverse())].slice(0, b), [y, b, _]);
|
|
5199
5199
|
return (J == null ? void 0 : J.message) === p("ai.errors.chatUnavailable") ? /* @__PURE__ */ v(H, {
|
|
5200
5200
|
children: [g && Re, /* @__PURE__ */ l(Gr, {
|
|
5201
5201
|
text: J.message
|
|
@@ -5205,13 +5205,13 @@ function Ys({
|
|
|
5205
5205
|
ref: W,
|
|
5206
5206
|
theme: u,
|
|
5207
5207
|
onScroll: _e,
|
|
5208
|
-
children: [/* @__PURE__ */ l(
|
|
5208
|
+
children: [/* @__PURE__ */ l(Os, {
|
|
5209
5209
|
isVisible: K,
|
|
5210
5210
|
anchorElement: me.current,
|
|
5211
5211
|
onClick: () => {
|
|
5212
|
-
var
|
|
5212
|
+
var O, te;
|
|
5213
5213
|
(te = W.current) == null || te.scroll({
|
|
5214
|
-
top: (
|
|
5214
|
+
top: (O = W.current) == null ? void 0 : O.scrollHeight,
|
|
5215
5215
|
behavior: "smooth"
|
|
5216
5216
|
});
|
|
5217
5217
|
}
|
|
@@ -5226,14 +5226,14 @@ function Ys({
|
|
|
5226
5226
|
messages: y
|
|
5227
5227
|
}), d && I && ((o = (i = I.followupQuestions) == null ? void 0 : i.length) != null ? o : 0) > 0 && /* @__PURE__ */ l(Hs, {
|
|
5228
5228
|
theme: u,
|
|
5229
|
-
children: (s = I.followupQuestions) == null ? void 0 : s.slice(0, 2).map((
|
|
5229
|
+
children: (s = I.followupQuestions) == null ? void 0 : s.slice(0, 2).map((O, te) => /* @__PURE__ */ l(Ve, {
|
|
5230
5230
|
align: "left",
|
|
5231
5231
|
onClick: () => {
|
|
5232
|
-
S(
|
|
5232
|
+
S(O);
|
|
5233
5233
|
},
|
|
5234
5234
|
children: /* @__PURE__ */ l("div", {
|
|
5235
5235
|
className: "csdk-py-[7px] csdk-px-4",
|
|
5236
|
-
children:
|
|
5236
|
+
children: O
|
|
5237
5237
|
})
|
|
5238
5238
|
}, te))
|
|
5239
5239
|
}), (A || F) && /* @__PURE__ */ l(Nt, {}), U && /* @__PURE__ */ l(Ql, {
|
|
@@ -5355,7 +5355,7 @@ function tc(e) {
|
|
|
5355
5355
|
themeSettings: r
|
|
5356
5356
|
} = D(), {
|
|
5357
5357
|
t: a
|
|
5358
|
-
} =
|
|
5358
|
+
} = z();
|
|
5359
5359
|
return /* @__PURE__ */ v(Xs, {
|
|
5360
5360
|
children: [/* @__PURE__ */ l(Ks, {
|
|
5361
5361
|
theme: r,
|
|
@@ -5454,7 +5454,7 @@ function lc({
|
|
|
5454
5454
|
themeSettings: a
|
|
5455
5455
|
} = D(), {
|
|
5456
5456
|
t: i
|
|
5457
|
-
} =
|
|
5457
|
+
} = z(), o = B(() => e == null ? void 0 : e.map((p) => ({
|
|
5458
5458
|
title: p,
|
|
5459
5459
|
onClick: () => t(p)
|
|
5460
5460
|
})), [e, t]), s = Wa(qa(a.aiChat.header.backgroundColor)) > 0.5;
|
|
@@ -5484,7 +5484,7 @@ function sc() {
|
|
|
5484
5484
|
contextDetails: p
|
|
5485
5485
|
} = se(), {
|
|
5486
5486
|
t: d
|
|
5487
|
-
} =
|
|
5487
|
+
} = z(), g = d("ai.errors.noAvailableDataTopics"), b = N((c) => {
|
|
5488
5488
|
c.length ? c.length === 1 && (a(void 0), t(c[0])) : a(g);
|
|
5489
5489
|
}, [g]), x = B(() => {
|
|
5490
5490
|
if (i && o === "idle") {
|
|
@@ -5492,7 +5492,7 @@ function sc() {
|
|
|
5492
5492
|
return b(c), c;
|
|
5493
5493
|
}
|
|
5494
5494
|
return [];
|
|
5495
|
-
}, [i, o, s, b]), n =
|
|
5495
|
+
}, [i, o, s, b]), n = ze(), u = N(() => {
|
|
5496
5496
|
a(void 0), n.invalidateQueries(["getDataTopics"]);
|
|
5497
5497
|
}, [n]);
|
|
5498
5498
|
return r ? /* @__PURE__ */ l(Gr, {
|
|
@@ -5540,7 +5540,7 @@ const cc = hr({
|
|
|
5540
5540
|
isError: a
|
|
5541
5541
|
} = Lt(e), {
|
|
5542
5542
|
t: i
|
|
5543
|
-
} =
|
|
5543
|
+
} = z();
|
|
5544
5544
|
if (a)
|
|
5545
5545
|
return /* @__PURE__ */ l(H, {
|
|
5546
5546
|
children: i("ai.errors.unexpected")
|
|
@@ -5696,7 +5696,7 @@ function fc({
|
|
|
5696
5696
|
return /* @__PURE__ */ l(qo, {
|
|
5697
5697
|
children: /* @__PURE__ */ l(Er.Provider, {
|
|
5698
5698
|
value: t == null ? void 0 : t.api,
|
|
5699
|
-
children: /* @__PURE__ */ l(
|
|
5699
|
+
children: /* @__PURE__ */ l(za, {
|
|
5700
5700
|
client: bc,
|
|
5701
5701
|
children: e
|
|
5702
5702
|
})
|
|
@@ -211,12 +211,14 @@ const e = {
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
widgetHeader: {
|
|
214
|
+
addTitle: "Add title",
|
|
214
215
|
info: {
|
|
215
216
|
details: "Widget Details",
|
|
216
217
|
tooltip: "Click to view full details"
|
|
217
218
|
},
|
|
218
219
|
menu: {
|
|
219
220
|
deleteWidget: "Delete Widget",
|
|
221
|
+
renameWidget: "Rename Widget",
|
|
220
222
|
distributeEqualWidth: "Distribute equally in this row"
|
|
221
223
|
}
|
|
222
224
|
},
|
|
@@ -352,7 +354,10 @@ const e = {
|
|
|
352
354
|
selectField: "Select Field",
|
|
353
355
|
configureFilter: "Configure Filter",
|
|
354
356
|
noResults: "No results",
|
|
355
|
-
searchPlaceholder: "Search"
|
|
357
|
+
searchPlaceholder: "Search",
|
|
358
|
+
more: "More...",
|
|
359
|
+
filter: "Filter",
|
|
360
|
+
addMeasure: "Add Measure"
|
|
356
361
|
},
|
|
357
362
|
pivotTable: {
|
|
358
363
|
grandTotal: "Grand Total",
|
|
@@ -399,6 +404,18 @@ const e = {
|
|
|
399
404
|
lockGroup: "Lock Group",
|
|
400
405
|
unlockGroup: "Unlock Group"
|
|
401
406
|
}
|
|
407
|
+
},
|
|
408
|
+
measures: {
|
|
409
|
+
countShort: "# of {{level}}",
|
|
410
|
+
countDistinct: "Count Unique",
|
|
411
|
+
count: "Count All",
|
|
412
|
+
average: "Average",
|
|
413
|
+
sum: "Sum",
|
|
414
|
+
min: "Min",
|
|
415
|
+
max: "Max",
|
|
416
|
+
stdev: "Standard Deviation",
|
|
417
|
+
median: "Median",
|
|
418
|
+
variance: "Variance"
|
|
402
419
|
}
|
|
403
420
|
}, t = "sdkUi", o = {
|
|
404
421
|
en: e,
|