@sisense/sdk-ui-preact 1.27.0 → 1.27.1
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 +70 -70
- package/dist/ai.js +93 -93
- package/dist/index.cjs +51 -51
- package/dist/index.js +268 -268
- package/dist/useQuery-DOgANgSI-665e9a0c.cjs +1185 -0
- package/dist/{useQuery-BWxPQevB-5efe621a.js → useQuery-DOgANgSI-6bbcaeca.js} +48683 -48150
- package/package.json +3 -3
- package/dist/useQuery-BWxPQevB-0c7be3e1.cjs +0 -1152
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as Ie,
|
|
2
|
-
import { dq as JS, dr as KS, ds as eC, dt as tC, du as rC, dv as nC, dw as aC, dx as oC, dy as iC, dz as sC, dA as lC, dB as cC } from "./useQuery-
|
|
1
|
+
import { H as Ie, v as zc, d as ln, b as Xp, u as or, k as Jp, P as U, M as Wc, a as Kp, B as eh, C as Sr, I as Ks, c as th, e as rh, f as ie, q as X, F as ge, p as ne, K as Oe, Z as be, W as ee, g as yt, x as J, _ as ce, h as g, l as nh, i as Hc, m as et, U as ah, j as qa, n as Ri, o as ji, r as pr, s as V, G as Ua, t as Qa, $ as vt, w as Bc, R as Fi, y as Za, Y as oh, z as $c, A as ih, D as A, E as Me, J as Bt, L as mt, N as Yi, O as $e, Q as qc, T as Pr, S as sh, V as Uc, X as lh, a0 as Qc, a1 as Zc, a2 as Gc, a3 as Vc, a4 as ch, a5 as Xc, a6 as dh, a7 as uh, a8 as ph, a9 as Xe, aa as hh, ab as Jc, ac as fh, ad as gh, ae as Kc, af as mh, ag as bh, ah as ed, ai as el, aj as tl, ak as zi, al as yh, am as rl, an as nl, ao as pt, ap as hr, aq as Pt, ar as Gt, as as td, at as Jr, au as lr, av as al, aw as wt, ax as vh, ay as Ga, az as rd, aA as wh, aB as nd, aC as ol, aD as ad, aE as xh, aF as Va, aG as kh, aH as Wi, aI as Ae, aJ as Vt, aK as od, aL as _h, aM as Dh, aN as Hi, aO as Sh, aP as Ch, aQ as Nn, aR as xe, aS as Q, aT as _r, aU as id, aV as wa, aW as sd, aX as ld, aY as cd, aZ as Bi, a_ as dd, a$ as Mh, b0 as ud, b1 as $i, b2 as Th, b3 as pd, b4 as Yn, b5 as Rr, b6 as cn, b7 as Nh, b8 as Ah, b9 as Eh, ba as il, bb as xa, bc as ka, bd as Ih, be as ii, bf as An, bg as Oh, bh as xt, bi as si, bj as hd, bk as qi, bl as li, bm as Lh, bn as Ph, bo as Rh, bp as fd, bq as gd, br as jh, bs as Fh, bt as md, bu as bd, bv as yd, bw as Yh, bx as zh, by as Mo, bz as To, bA as Wh, bB as Hh, bC as Bh, bD as $h, bE as vd, bF as sl, bG as qh, bH as Uh, bI as Xa, bJ as fr, bK as Ja, bL as wd, bM as Qh, bN as Zh, bO as Ka, bP as xd, bQ as Gh, bR as Vh, bS as Xh, bT as Jh, bU as Kh, bV as ef, bW as Yt, bX as No, bY as Ao, bZ as tf, b_ as rf, b$ as nf, c0 as Eo, c1 as af, c2 as of, c3 as sf, c4 as lf, c5 as cf, c6 as df, c7 as _a, c8 as uf, c9 as pf, ca as hf, cb as ff, cc as gf, cd as mf, ce as Ui, cf as ci, cg as bf, ch as yf, ci as St, cj as ll, ck as zt, cl, cm as dl, cn as vf, co as wf, cp as xf, cq as kf, cr as ul, cs as _f, ct as Df, cu as Sf, cv as Cf, cw as Mf, cx as Tf, cy as Nf, cz as Af, cA as Ef, cB as If, cC as Of, cD as Lf, cE as Pf, cF as kd, cG as Rf, cH as jf, cI as Ff, cJ as Qi, cK as He, cL as _d, cM as Yf, cN as zf, cO as Wf, cP as Hf, cQ as Bf, cR as $f, cS as qf, cT as pl, cU as Dd, cV as Sd, cW as hl, cX as Kn, cY as Uf, cZ as Qf, c_ as Zf, c$ as Gf, d0 as Vf, d1 as Xf, d2 as Jf, d3 as Kf, d4 as eg, d5 as di, d6 as ui, d7 as tg, d8 as rg, d9 as Cd, da as ng, db as Je, dc as ag, dd as Md, de as og, df as ig, dg as Zi, dh as sg, di as Td, dj as Nd, dk as lg, dl as Ad, dm as cg, dn as dg, dp as Da } from "./useQuery-DOgANgSI-6bbcaeca.js";
|
|
2
|
+
import { dq as JS, dr as KS, ds as eC, dt as tC, du as rC, dv as nC, dw as aC, dx as oC, dy as iC, dz as sC, dA as lC, dB as cC } from "./useQuery-DOgANgSI-6bbcaeca.js";
|
|
3
3
|
var ug = Object.defineProperty, pg = Object.defineProperties, hg = Object.getOwnPropertyDescriptors, Sa = Object.getOwnPropertySymbols, Ed = Object.prototype.hasOwnProperty, Id = Object.prototype.propertyIsEnumerable, pi = (e, n, r) => n in e ? ug(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r, x = (e, n) => {
|
|
4
4
|
for (var r in n || (n = {}))
|
|
5
5
|
Ed.call(n, r) && pi(e, r, n[r]);
|
|
@@ -401,12 +401,12 @@ class Rg {
|
|
|
401
401
|
return this.call(this.url + n, Object.assign(Object.assign({}, r), { method: "DELETE" }), t);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
const
|
|
404
|
+
const jg = { errors: { invalidAttribute: "Invalid attribute {{attributeName}}. Hint: attributes for query should be extracted from the data model generated by the CLI tool.", noDimensionsOrMeasures: "Neither dimensions nor measures found. Query should have at least one dimension or measure.", invalidMeasure: 'Invalid measure "{{measureName}}". Hint: measures for the query can be constructed using the "measureFactory" functions.', invalidFilter: 'Invalid filter "{{filterName}}". Hint: filters for the query can be constructed using the "filterFactory" functions.', invalidHighlight: 'Invalid highlight "{{highlightName}}". Hint: highlights for the query can be constructed using the "filterFactory" functions.', invalidCountNegative: 'Invalid count "{{count}}". Count should be non-negative.', invalidOffset: 'Invalid offset "{{offset}}". Offset should be non-negative.', missingHttpClient: "Query requires httpClient to work properly.", missingPostMethod: 'httpClient must provide "post" method.', noJaqlResponse: "No jaql response received from the server", dataSourceNotFound: 'Failed to get fields for data source "{{dataSource}}". Please make sure the data source exists and is accessible.' } }, Fg = { errors: { invalidAttribute: "Недійсний атрибут {{attributeName}}. Підказка: атрибути для запиту повинні бути витягнуті з моделі даних, створеної за допомогою CLI-інструменту.", noDimensionsOrMeasures: "Не знайдено ні вимірів, ні показників. Запит повинен мати щонайменше один вимір або показник.", invalidMeasure: 'Недійсний показник "{{measureName}}". Підказка: показники для запиту можна створити за допомогою функцій "measureFactory".', invalidFilter: 'Недійсний фільтр "{{filterName}}". Підказка: фільтри для запиту можна створити за допомогою функцій "filterFactory".', invalidHighlight: 'Недійсне виділення "{{highlightName}}". Підказка: виділення для запиту можна створити за допомогою функцій "filterFactory".', invalidCountNegative: `Недійсний count "{{count}}". Count повинен бути не від'ємним.`, invalidOffset: `Недійсний offset "{{offset}}". Offset повинен бути не від'ємним.`, missingHttpClient: "Для запиту потрібен httpClient, щоб працювати належним чином.", missingPostMethod: 'httpClient повинен мати метод "post".', noJaqlResponse: "Відповіді, що містить jaql, від сервера не отримано", dataSourceNotFound: 'Не вдалося отримати поля для джерела даних "{{dataSource}}". Переконайтесь що джерело існує і доступне.' } }, jd = "sdkQueryClient", Yg = { en: jg, uk: Fg };
|
|
405
405
|
function zg() {
|
|
406
|
-
return Jc({ resource: Yg, language: "en", namespace:
|
|
406
|
+
return Jc({ resource: Yg, language: "en", namespace: jd });
|
|
407
407
|
}
|
|
408
408
|
const { i18nextInstance: Wg } = zg();
|
|
409
|
-
var tt = {},
|
|
409
|
+
var tt = {}, Fd = {}, ro = {}, Gi = {};
|
|
410
410
|
(function(e) {
|
|
411
411
|
var n = Ie && Ie.__awaiter || function(a, o, i, s) {
|
|
412
412
|
function c(l) {
|
|
@@ -636,16 +636,16 @@ const Gg = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a
|
|
|
636
636
|
function io(e) {
|
|
637
637
|
return typeof e == "string" && Gg.test(e);
|
|
638
638
|
}
|
|
639
|
-
var
|
|
639
|
+
var je = [];
|
|
640
640
|
for (var Lo = 0; Lo < 256; ++Lo)
|
|
641
|
-
|
|
641
|
+
je.push((Lo + 256).toString(16).substr(1));
|
|
642
642
|
function so(e) {
|
|
643
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = (
|
|
643
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = (je[e[n + 0]] + je[e[n + 1]] + je[e[n + 2]] + je[e[n + 3]] + "-" + je[e[n + 4]] + je[e[n + 5]] + "-" + je[e[n + 6]] + je[e[n + 7]] + "-" + je[e[n + 8]] + je[e[n + 9]] + "-" + je[e[n + 10]] + je[e[n + 11]] + je[e[n + 12]] + je[e[n + 13]] + je[e[n + 14]] + je[e[n + 15]]).toLowerCase();
|
|
644
644
|
if (!io(r))
|
|
645
645
|
throw TypeError("Stringified UUID is invalid");
|
|
646
646
|
return r;
|
|
647
647
|
}
|
|
648
|
-
var gl, Po, Ro = 0,
|
|
648
|
+
var gl, Po, Ro = 0, jo = 0;
|
|
649
649
|
function Vg(e, n, r) {
|
|
650
650
|
var t = n && r || 0, a = n || new Array(16);
|
|
651
651
|
e = e || {};
|
|
@@ -654,10 +654,10 @@ function Vg(e, n, r) {
|
|
|
654
654
|
var s = e.random || (e.rng || Yd)();
|
|
655
655
|
o == null && (o = gl = [s[0] | 1, s[1], s[2], s[3], s[4], s[5]]), i == null && (i = Po = (s[6] << 8 | s[7]) & 16383);
|
|
656
656
|
}
|
|
657
|
-
var c = e.msecs !== void 0 ? e.msecs : Date.now(), l = e.nsecs !== void 0 ? e.nsecs :
|
|
657
|
+
var c = e.msecs !== void 0 ? e.msecs : Date.now(), l = e.nsecs !== void 0 ? e.nsecs : jo + 1, d = c - Ro + (l - jo) / 1e4;
|
|
658
658
|
if (d < 0 && e.clockseq === void 0 && (i = i + 1 & 16383), (d < 0 || c > Ro) && e.nsecs === void 0 && (l = 0), l >= 1e4)
|
|
659
659
|
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
660
|
-
Ro = c,
|
|
660
|
+
Ro = c, jo = l, Po = i, c += 122192928e5;
|
|
661
661
|
var u = ((c & 268435455) * 1e4 + l) % 4294967296;
|
|
662
662
|
a[t++] = u >>> 24 & 255, a[t++] = u >>> 16 & 255, a[t++] = u >>> 8 & 255, a[t++] = u & 255;
|
|
663
663
|
var p = c / 4294967296 * 1e4 & 268435455;
|
|
@@ -721,7 +721,7 @@ function rm(e, n) {
|
|
|
721
721
|
e[n >> 5] |= 128 << n % 32, e[Hd(n) - 1] = n;
|
|
722
722
|
for (var r = 1732584193, t = -271733879, a = -1732584194, o = 271733878, i = 0; i < e.length; i += 16) {
|
|
723
723
|
var s = r, c = t, l = a, d = o;
|
|
724
|
-
r =
|
|
724
|
+
r = Fe(r, t, a, o, e[i], 7, -680876936), o = Fe(o, r, t, a, e[i + 1], 12, -389564586), a = Fe(a, o, r, t, e[i + 2], 17, 606105819), t = Fe(t, a, o, r, e[i + 3], 22, -1044525330), r = Fe(r, t, a, o, e[i + 4], 7, -176418897), o = Fe(o, r, t, a, e[i + 5], 12, 1200080426), a = Fe(a, o, r, t, e[i + 6], 17, -1473231341), t = Fe(t, a, o, r, e[i + 7], 22, -45705983), r = Fe(r, t, a, o, e[i + 8], 7, 1770035416), o = Fe(o, r, t, a, e[i + 9], 12, -1958414417), a = Fe(a, o, r, t, e[i + 10], 17, -42063), t = Fe(t, a, o, r, e[i + 11], 22, -1990404162), r = Fe(r, t, a, o, e[i + 12], 7, 1804603682), o = Fe(o, r, t, a, e[i + 13], 12, -40341101), a = Fe(a, o, r, t, e[i + 14], 17, -1502002290), t = Fe(t, a, o, r, e[i + 15], 22, 1236535329), r = Ye(r, t, a, o, e[i + 1], 5, -165796510), o = Ye(o, r, t, a, e[i + 6], 9, -1069501632), a = Ye(a, o, r, t, e[i + 11], 14, 643717713), t = Ye(t, a, o, r, e[i], 20, -373897302), r = Ye(r, t, a, o, e[i + 5], 5, -701558691), o = Ye(o, r, t, a, e[i + 10], 9, 38016083), a = Ye(a, o, r, t, e[i + 15], 14, -660478335), t = Ye(t, a, o, r, e[i + 4], 20, -405537848), r = Ye(r, t, a, o, e[i + 9], 5, 568446438), o = Ye(o, r, t, a, e[i + 14], 9, -1019803690), a = Ye(a, o, r, t, e[i + 3], 14, -187363961), t = Ye(t, a, o, r, e[i + 8], 20, 1163531501), r = Ye(r, t, a, o, e[i + 13], 5, -1444681467), o = Ye(o, r, t, a, e[i + 2], 9, -51403784), a = Ye(a, o, r, t, e[i + 7], 14, 1735328473), t = Ye(t, a, o, r, e[i + 12], 20, -1926607734), r = ze(r, t, a, o, e[i + 5], 4, -378558), o = ze(o, r, t, a, e[i + 8], 11, -2022574463), a = ze(a, o, r, t, e[i + 11], 16, 1839030562), t = ze(t, a, o, r, e[i + 14], 23, -35309556), r = ze(r, t, a, o, e[i + 1], 4, -1530992060), o = ze(o, r, t, a, e[i + 4], 11, 1272893353), a = ze(a, o, r, t, e[i + 7], 16, -155497632), t = ze(t, a, o, r, e[i + 10], 23, -1094730640), r = ze(r, t, a, o, e[i + 13], 4, 681279174), o = ze(o, r, t, a, e[i], 11, -358537222), a = ze(a, o, r, t, e[i + 3], 16, -722521979), t = ze(t, a, o, r, e[i + 6], 23, 76029189), r = ze(r, t, a, o, e[i + 9], 4, -640364487), o = ze(o, r, t, a, e[i + 12], 11, -421815835), a = ze(a, o, r, t, e[i + 15], 16, 530742520), t = ze(t, a, o, r, e[i + 2], 23, -995338651), r = We(r, t, a, o, e[i], 6, -198630844), o = We(o, r, t, a, e[i + 7], 10, 1126891415), a = We(a, o, r, t, e[i + 14], 15, -1416354905), t = We(t, a, o, r, e[i + 5], 21, -57434055), r = We(r, t, a, o, e[i + 12], 6, 1700485571), o = We(o, r, t, a, e[i + 3], 10, -1894986606), a = We(a, o, r, t, e[i + 10], 15, -1051523), t = We(t, a, o, r, e[i + 1], 21, -2054922799), r = We(r, t, a, o, e[i + 8], 6, 1873313359), o = We(o, r, t, a, e[i + 15], 10, -30611744), a = We(a, o, r, t, e[i + 6], 15, -1560198380), t = We(t, a, o, r, e[i + 13], 21, 1309151649), r = We(r, t, a, o, e[i + 4], 6, -145523070), o = We(o, r, t, a, e[i + 11], 10, -1120210379), a = We(a, o, r, t, e[i + 2], 15, 718787259), t = We(t, a, o, r, e[i + 9], 21, -343485551), r = rr(r, s), t = rr(t, c), a = rr(a, l), o = rr(o, d);
|
|
725
725
|
}
|
|
726
726
|
return [r, t, a, o];
|
|
727
727
|
}
|
|
@@ -742,7 +742,7 @@ function am(e, n) {
|
|
|
742
742
|
function lo(e, n, r, t, a, o) {
|
|
743
743
|
return rr(am(rr(rr(n, e), rr(t, o)), a), r);
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Fe(e, n, r, t, a, o, i) {
|
|
746
746
|
return lo(n & r | ~n & t, e, n, a, o, i);
|
|
747
747
|
}
|
|
748
748
|
function Ye(e, n, r, t, a, o, i) {
|
|
@@ -779,7 +779,7 @@ function lm(e, n, r, t) {
|
|
|
779
779
|
return n ^ r ^ t;
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Fo(e, n) {
|
|
783
783
|
return e << n | e >>> 32 - n;
|
|
784
784
|
}
|
|
785
785
|
function cm(e) {
|
|
@@ -802,10 +802,10 @@ function cm(e) {
|
|
|
802
802
|
for (var p = new Uint32Array(80), h = 0; h < 16; ++h)
|
|
803
803
|
p[h] = s[u][h];
|
|
804
804
|
for (var f = 16; f < 80; ++f)
|
|
805
|
-
p[f] =
|
|
805
|
+
p[f] = Fo(p[f - 3] ^ p[f - 8] ^ p[f - 14] ^ p[f - 16], 1);
|
|
806
806
|
for (var m = r[0], b = r[1], y = r[2], v = r[3], k = r[4], E = 0; E < 80; ++E) {
|
|
807
|
-
var C = Math.floor(E / 20), P =
|
|
808
|
-
k = v, v = y, y =
|
|
807
|
+
var C = Math.floor(E / 20), P = Fo(m, 5) + lm(C, b, y, v) + k + n[C] + p[E] >>> 0;
|
|
808
|
+
k = v, v = y, y = Fo(b, 30) >>> 0, b = m, m = P;
|
|
809
809
|
}
|
|
810
810
|
r[0] = r[0] + m >>> 0, r[1] = r[1] + b >>> 0, r[2] = r[2] + y >>> 0, r[3] = r[3] + v >>> 0, r[4] = r[4] + k >>> 0;
|
|
811
811
|
}
|
|
@@ -842,7 +842,7 @@ oo.TaskPassport = bm;
|
|
|
842
842
|
o !== "default" && !Object.prototype.hasOwnProperty.call(a, o) && n(a, t, o);
|
|
843
843
|
};
|
|
844
844
|
Object.defineProperty(e, "__esModule", { value: !0 }), r(ro, e), r(no, e), r(Gi, e), r(ao, e), r(oo, e), r(Wn, e);
|
|
845
|
-
})(
|
|
845
|
+
})(Fd);
|
|
846
846
|
(function(e) {
|
|
847
847
|
var n = Ie && Ie.__createBinding || (Object.create ? function(t, a, o, i) {
|
|
848
848
|
i === void 0 && (i = o);
|
|
@@ -856,7 +856,7 @@ oo.TaskPassport = bm;
|
|
|
856
856
|
for (var o in t)
|
|
857
857
|
o !== "default" && !Object.prototype.hasOwnProperty.call(a, o) && n(a, t, o);
|
|
858
858
|
};
|
|
859
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), r(
|
|
859
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), r(Fd, e);
|
|
860
860
|
})(tt);
|
|
861
861
|
const Bd = (e) => {
|
|
862
862
|
if (e !== void 0)
|
|
@@ -894,7 +894,7 @@ function xm(e) {
|
|
|
894
894
|
}
|
|
895
895
|
function km(e) {
|
|
896
896
|
const n = e, { datatype: r } = n, t = n.filter;
|
|
897
|
-
return
|
|
897
|
+
return jf(t) ? ym(n) : Ff(t) && Qi(t) === He.IS_NOT ? vm(n) : r === "text" ? ml(wm, n) : r === "numeric" ? ml(xm, n) : Vi;
|
|
898
898
|
}
|
|
899
899
|
var qd = { exports: {} };
|
|
900
900
|
/*! @preserve
|
|
@@ -941,7 +941,7 @@ var qd = { exports: {} };
|
|
|
941
941
|
}, n._ = r = {
|
|
942
942
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
943
943
|
numberToFormat: function(l, d, u) {
|
|
944
|
-
var p = o[n.options.currentLocale], h = !1, f = !1, m = 0, b = "", y = 1e12, v = 1e9, k = 1e6, E = 1e3, C = "", P = !1, z, W, L, I, T, R,
|
|
944
|
+
var p = o[n.options.currentLocale], h = !1, f = !1, m = 0, b = "", y = 1e12, v = 1e9, k = 1e6, E = 1e3, C = "", P = !1, z, W, L, I, T, R, j;
|
|
945
945
|
if (l = l || 0, W = Math.abs(l), n._.includes(d, "(") ? (h = !0, d = d.replace(/[\(|\)]/g, "")) : (n._.includes(d, "+") || n._.includes(d, "-")) && (T = n._.includes(d, "+") ? d.indexOf("+") : l < 0 ? d.indexOf("-") : -1, d = d.replace(/[\+|\-]/g, "")), n._.includes(d, "a") && (z = d.match(/a(k|m|b|t)?/), z = z ? z[1] : !1, n._.includes(d, " a") && (b = " "), d = d.replace(new RegExp(b + "a[kmbt]?"), ""), W >= y && !z || z === "t" ? (b += p.abbreviations.trillion, l = l / y) : W < y && W >= v && !z || z === "b" ? (b += p.abbreviations.billion, l = l / v) : W < v && W >= k && !z || z === "m" ? (b += p.abbreviations.million, l = l / k) : (W < k && W >= E && !z || z === "k") && (b += p.abbreviations.thousand, l = l / E)), n._.includes(d, "[.]") && (f = !0, d = d.replace("[.]", ".")), L = l.toString().split(".")[0], I = d.split(".")[1], R = d.indexOf(","), m = (d.split(".")[0].split(",")[0].match(/0/g) || []).length, I ? (n._.includes(I, "[") ? (I = I.replace("]", ""), I = I.split("["), C = n._.toFixed(l, I[0].length + I[1].length, u, I[1].length)) : C = n._.toFixed(l, I.length, u), L = C.split(".")[0], n._.includes(C, ".") ? C = p.delimiters.decimal + C.split(".")[1] : C = "", f && Number(C.slice(1)) === 0 && (C = "")) : L = n._.toFixed(l, 0, u), b && !z && Number(L) >= 1e3 && b !== p.abbreviations.trillion)
|
|
946
946
|
switch (L = String(Number(L) / 1e3), b) {
|
|
947
947
|
case p.abbreviations.thousand:
|
|
@@ -957,7 +957,7 @@ var qd = { exports: {} };
|
|
|
957
957
|
if (n._.includes(L, "-") && (L = L.slice(1), P = !0), L.length < m)
|
|
958
958
|
for (var O = m - L.length; O > 0; O--)
|
|
959
959
|
L = "0" + L;
|
|
960
|
-
return R > -1 && (L = L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + p.delimiters.thousands)), d.indexOf(".") === 0 && (L = ""),
|
|
960
|
+
return R > -1 && (L = L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + p.delimiters.thousands)), d.indexOf(".") === 0 && (L = ""), j = L + C + (b || ""), h ? j = (h && P ? "(" : "") + j + (h && P ? ")" : "") : T >= 0 ? j = T === 0 ? (P ? "-" : "+") + j : j + (P ? "-" : "+") : P && (j = "-" + j), j;
|
|
961
961
|
},
|
|
962
962
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
963
963
|
stringToNumber: function(l) {
|
|
@@ -1223,7 +1223,7 @@ const Dm = /* @__PURE__ */ Va(_m), Sm = (e, n) => {
|
|
|
1223
1223
|
return Cm(r, n);
|
|
1224
1224
|
};
|
|
1225
1225
|
function Cm(e, n) {
|
|
1226
|
-
return { columns: n == null ? void 0 : n.map((r) => ({ name: r.name, type:
|
|
1226
|
+
return { columns: n == null ? void 0 : n.map((r) => ({ name: r.name, type: Fh(r.type) })), rows: Mm(e) };
|
|
1227
1227
|
}
|
|
1228
1228
|
function Mm(e) {
|
|
1229
1229
|
var n;
|
|
@@ -1249,7 +1249,7 @@ function Tm({ values: e = [], metadata: n = [] }) {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
class Be extends md {
|
|
1251
1251
|
constructor(n, r) {
|
|
1252
|
-
super(
|
|
1252
|
+
super(jd, { key: n, interpolationOptions: r }, Wg.t);
|
|
1253
1253
|
}
|
|
1254
1254
|
get status() {
|
|
1255
1255
|
return this.interpolationOptions.status;
|
|
@@ -1340,7 +1340,7 @@ class Nm extends tt.AbstractTaskManager {
|
|
|
1340
1340
|
sendPivotJaqlQuery(n, r) {
|
|
1341
1341
|
var t;
|
|
1342
1342
|
const { pivotQueryDescription: a } = n.passport;
|
|
1343
|
-
return this.pivotClient.queryData(r, !0, (t = a.count) !== null && t !== void 0 ? t :
|
|
1343
|
+
return this.pivotClient.queryData(r, !0, (t = a.count) !== null && t !== void 0 ? t : Fm, !1);
|
|
1344
1344
|
}
|
|
1345
1345
|
cancelPivotJaqlQuery(n) {
|
|
1346
1346
|
const r = n.passport.taskId, t = this.sentRequestsAbortersMap.get(r);
|
|
@@ -1422,7 +1422,7 @@ class Lm {
|
|
|
1422
1422
|
return { responsePromise: this.httpClient.post(t, r, void 0, a.signal).then((o) => Array.isArray(o) ? { values: [], metadata: [] } : o), abortHttpRequest: (o) => a.abort(o) };
|
|
1423
1423
|
}
|
|
1424
1424
|
sendDownloadCsvRequest(n, r) {
|
|
1425
|
-
const t =
|
|
1425
|
+
const t = jm(n), a = new AbortController(), o = new URLSearchParams();
|
|
1426
1426
|
return o.append("data", encodeURIComponent(JSON.stringify(r))), { responsePromise: this.httpClient.post(t, o, { headers: { "Content-Type": "application/x-www-form-urlencoded" } }, a.signal, { nonJSONBody: !0, returnBlob: !0 }), abortHttpRequest: (i) => a.abort(i) };
|
|
1427
1427
|
}
|
|
1428
1428
|
/**
|
|
@@ -1467,7 +1467,7 @@ function Ud(e) {
|
|
|
1467
1467
|
const n = encodeURIComponent(pr(e));
|
|
1468
1468
|
return `${En}/${n}/jaql`;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function jm(e) {
|
|
1471
1471
|
return `${Ud(e)}/csv`;
|
|
1472
1472
|
}
|
|
1473
1473
|
var yl = function(e, n, r, t) {
|
|
@@ -1497,7 +1497,7 @@ var yl = function(e, n, r, t) {
|
|
|
1497
1497
|
l((t = t.apply(e, n || [])).next());
|
|
1498
1498
|
});
|
|
1499
1499
|
};
|
|
1500
|
-
const
|
|
1500
|
+
const Fm = 2e4, Yo = "Unspecified reason";
|
|
1501
1501
|
class Ym {
|
|
1502
1502
|
constructor(n, r = new bd(n.url, n.auth), t) {
|
|
1503
1503
|
Wm(n), this.queryApi = new Lm(n), this.taskManager = new Nm(this.queryApi, r), this.shouldSkipHighlightsWithoutAttributes = t ?? !1;
|
|
@@ -1647,7 +1647,7 @@ const Xm = (e) => Ce(void 0, [e], function* ({ defaultDataSource: n, url: r, tok
|
|
|
1647
1647
|
if (!d)
|
|
1648
1648
|
throw new ee("errors.sisenseContextNoAuthentication");
|
|
1649
1649
|
Vm();
|
|
1650
|
-
const u = new Rg(l, d, "sdk-ui-1.27.
|
|
1650
|
+
const u = new Rg(l, d, "sdk-ui-1.27.1"), p = yield u.login(), h = Pd(d) || !p, f = yield qm(i || {}, u, h), m = new bd(Gm(l, f.user.tenant.name), d), b = new Ym(u, m);
|
|
1651
1651
|
return {
|
|
1652
1652
|
httpClient: u,
|
|
1653
1653
|
pivotClient: m,
|
|
@@ -1674,16 +1674,16 @@ const eb = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
1674
1674
|
y && y(S), I && I.onFocus && I.onFocus(S);
|
|
1675
1675
|
}, R = (S) => {
|
|
1676
1676
|
m && m(S), I && I.onBlur && I.onBlur(S);
|
|
1677
|
-
},
|
|
1677
|
+
}, j = (S) => {
|
|
1678
1678
|
if (S.nativeEvent.defaultPrevented)
|
|
1679
1679
|
return;
|
|
1680
|
-
const
|
|
1681
|
-
L(
|
|
1680
|
+
const F = S.target.checked;
|
|
1681
|
+
L(F), b && b(S, F);
|
|
1682
1682
|
};
|
|
1683
1683
|
let O = s;
|
|
1684
1684
|
I && typeof O > "u" && (O = I.disabled);
|
|
1685
1685
|
const M = C === "checkbox" || C === "radio", N = or({}, e, { checked: W, disabled: O, disableFocusRipple: c, edge: l }), D = tb(N);
|
|
1686
|
-
return /* @__PURE__ */ g(rb, or({ component: "span", className: Me(D.root, o), centerRipple: !0, focusRipple: !c, disabled: O, tabIndex: null, role: void 0, onFocus: T, onBlur: R, ownerState: N, ref: n }, z, { children: [/* @__PURE__ */ g(nb, or({ autoFocus: r, checked: t, defaultChecked: i, className: D.input, disabled: O, id: M ? u : void 0, name: f, onChange:
|
|
1686
|
+
return /* @__PURE__ */ g(rb, or({ component: "span", className: Me(D.root, o), centerRipple: !0, focusRipple: !c, disabled: O, tabIndex: null, role: void 0, onFocus: T, onBlur: R, ownerState: N, ref: n }, z, { children: [/* @__PURE__ */ g(nb, or({ autoFocus: r, checked: t, defaultChecked: i, className: D.input, disabled: O, id: M ? u : void 0, name: f, onChange: j, readOnly: v, ref: h, required: k, ownerState: N, tabIndex: E, type: C }, C === "checkbox" && P === void 0 ? {} : { value: P }, p)), W ? a : d] }));
|
|
1687
1687
|
});
|
|
1688
1688
|
process.env.NODE_ENV !== "production" && (Zd.propTypes = {
|
|
1689
1689
|
/**
|
|
@@ -2179,7 +2179,7 @@ const Nb = ie({ componentName: "PivotTable" })((e) => {
|
|
|
2179
2179
|
}), Kd = ie({ componentName: "PivotTableWidget" })((e) => {
|
|
2180
2180
|
var n;
|
|
2181
2181
|
const [r, t] = ne(0), { app: a } = Oe(), { styleOptions: o, dataSource: i = a == null ? void 0 : a.defaultDataSource, dataOptions: s } = e, c = Ri("pivot", { hasHeader: !((n = o == null ? void 0 : o.header) != null && n.hidden) }), l = e.styleOptions || {}, { width: d, height: u } = l, p = Se(l, ["width", "height"]);
|
|
2182
|
-
return s ? /* @__PURE__ */ g(qa, { defaultSize: c, size: { width: d, height: o != null && o.isAutoHeight ? void 0 : u }, children: /* @__PURE__ */ g(
|
|
2182
|
+
return s ? /* @__PURE__ */ g(qa, { defaultSize: c, size: { width: d, height: o != null && o.isAutoHeight ? void 0 : u }, children: /* @__PURE__ */ g(ji, _(x({}, e), { dataSetName: i && pr(i), onRefresh: () => t(r + 1), children: /* @__PURE__ */ g(Nb, { dataSet: e.dataSource, dataOptions: e.dataOptions, styleOptions: p, filters: e.filters, highlights: e.highlights, refreshCounter: r }) })) }) : null;
|
|
2183
2183
|
}), Ab = (e) => {
|
|
2184
2184
|
const n = [], r = (t) => {
|
|
2185
2185
|
Array.isArray(t) ? t.forEach(r) : typeof t == "object" && t !== null && (t.widgetid && n.push(t.widgetid), Object.values(t).forEach(r));
|
|
@@ -2211,17 +2211,17 @@ function Rb(e = []) {
|
|
|
2211
2211
|
n[r.oid] = { filtersOptions: { applyMode: ((t = r.options) == null ? void 0 : t.dashboardFiltersMode) === "filter" ? pl.FILTER : pl.HIGHLIGHT, shouldAffectFilters: (a = r.options) == null ? void 0 : a.selector, ignoreFilters: { all: (o = r.metadata.ignore) == null ? void 0 : o.all, ids: (i = r.metadata.ignore) == null ? void 0 : i.ids }, forceApplyBackgroundFilters: !0 } };
|
|
2212
2212
|
}), n;
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function jb(e, n) {
|
|
2215
2215
|
return Ce(this, null, function* () {
|
|
2216
2216
|
var r;
|
|
2217
|
-
const t =
|
|
2217
|
+
const t = Fb(e.widgets || []);
|
|
2218
2218
|
if (t.length === 0)
|
|
2219
2219
|
return e;
|
|
2220
2220
|
const a = yield n.getSharedFormulas(t);
|
|
2221
2221
|
return _(x({}, e), { widgets: (r = e.widgets) == null ? void 0 : r.map((o) => Yb(o, a)) });
|
|
2222
2222
|
});
|
|
2223
2223
|
}
|
|
2224
|
-
function
|
|
2224
|
+
function Fb(e) {
|
|
2225
2225
|
const n = e.flatMap((r) => r.metadata.panels.flatMap((t) => t.items.flatMap((a) => !Dd(a.jaql) || !a.jaql.context ? [] : Object.values(a.jaql.context).filter(Sd).map((o) => o.formulaRef))));
|
|
2226
2226
|
return Array.from(new Set(n));
|
|
2227
2227
|
}
|
|
@@ -2262,7 +2262,7 @@ function zb(e, n) {
|
|
|
2262
2262
|
});
|
|
2263
2263
|
y && (f.style.palette = { name: y.name, colors: y.colors });
|
|
2264
2264
|
}
|
|
2265
|
-
const m = yield
|
|
2265
|
+
const m = yield jb(f, u);
|
|
2266
2266
|
return ss(m, o, i);
|
|
2267
2267
|
});
|
|
2268
2268
|
}
|
|
@@ -2351,7 +2351,7 @@ function Cl(e) {
|
|
|
2351
2351
|
const n = e, { data: r } = n, t = Se(n, ["data"]);
|
|
2352
2352
|
return _(x({}, t), { widget: r });
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function jr(e, n) {
|
|
2355
2355
|
const r = Ad(e);
|
|
2356
2356
|
return x(x({}, n), r && { subtype: r });
|
|
2357
2357
|
}
|
|
@@ -2388,20 +2388,20 @@ function Zb(e, n) {
|
|
|
2388
2388
|
return !((r = i.xAxis) != null && r.title && "text" in i.xAxis.title) && s && (i.xAxis = _(x({}, i.xAxis), { title: _(x({}, (t = i.xAxis) == null ? void 0 : t.title), { text: s.jaql.title }) })), !((a = i.yAxis) != null && a.title && "text" in i.yAxis.title) && c && (i.yAxis = _(x({}, i.yAxis), { title: _(x({}, (o = i.yAxis) == null ? void 0 : o.title), { text: c.jaql.title }) })), i;
|
|
2389
2389
|
}
|
|
2390
2390
|
function Gb(e, n, r, t) {
|
|
2391
|
-
return _(x(x({},
|
|
2391
|
+
return _(x(x({}, jr(n, r)), qb(e, r, t)), { lineWidth: r.lineWidth, markers: r.markers });
|
|
2392
2392
|
}
|
|
2393
2393
|
function Vb(e, n, r) {
|
|
2394
|
-
return x(x({},
|
|
2394
|
+
return x(x({}, jr(e, n)), Ub(n, r));
|
|
2395
2395
|
}
|
|
2396
2396
|
function Xb(e, n, r) {
|
|
2397
2397
|
var t, a, o;
|
|
2398
|
-
return _(x(x({},
|
|
2398
|
+
return _(x(x({}, jr(e, n)), Qb(n, r)), { markerSize: { scatterDefaultSize: (t = n.markerSize) == null ? void 0 : t.defaultSize, scatterBubbleMinSize: (a = n.markerSize) == null ? void 0 : a.min, scatterBubbleMaxSize: (o = n.markerSize) == null ? void 0 : o.max } });
|
|
2399
2399
|
}
|
|
2400
2400
|
function Jb(e) {
|
|
2401
2401
|
return { header: { color: { enabled: e["colors/headers"] } }, rows: { alternatingColor: { enabled: e["colors/rows"] } }, columns: { alternatingColor: { enabled: e["colors/columns"] } } };
|
|
2402
2402
|
}
|
|
2403
2403
|
function Kb(e, n) {
|
|
2404
|
-
return _(x({},
|
|
2404
|
+
return _(x({}, jr(e, n)), { funnelSize: n.size, funnelType: n.type, funnelDirection: n.direction, labels: n.labels, legend: n.legend });
|
|
2405
2405
|
}
|
|
2406
2406
|
const e0 = (e, n) => {
|
|
2407
2407
|
const r = Ad(e);
|
|
@@ -2421,10 +2421,10 @@ function n0(e) {
|
|
|
2421
2421
|
return { legend: { enabled: e["legend/enabled"], position: e["legend/position"] }, tooltip: { mode: (n = e["tooltip/value"]) == null || n ? "value" : "contribution" } };
|
|
2422
2422
|
}
|
|
2423
2423
|
function a0(e, n, r) {
|
|
2424
|
-
return x(x({},
|
|
2424
|
+
return x(x({}, jr(e, n)), Zb(n, r));
|
|
2425
2425
|
}
|
|
2426
2426
|
function o0(e, n) {
|
|
2427
|
-
return _(x({},
|
|
2427
|
+
return _(x({}, jr(e, n)), { markers: { fill: n.markers.fill, size: { defaultSize: n.markers.size.defaultSize, minSize: n.markers.size.min, maxSize: n.markers.size.max } } });
|
|
2428
2428
|
}
|
|
2429
2429
|
function i0(e) {
|
|
2430
2430
|
let n;
|
|
@@ -2470,7 +2470,7 @@ function l0(e, n) {
|
|
|
2470
2470
|
case "sunburst":
|
|
2471
2471
|
return n0(i);
|
|
2472
2472
|
case "chart/pie":
|
|
2473
|
-
return
|
|
2473
|
+
return jr(o, i);
|
|
2474
2474
|
case "tablewidget":
|
|
2475
2475
|
case "tablewidgetagg":
|
|
2476
2476
|
return Jb(i);
|
|
@@ -2653,7 +2653,7 @@ function Hn(e, n, r) {
|
|
|
2653
2653
|
const b = (i = (o = (a = r == null ? void 0 : r.serverFeatures) == null ? void 0 : a.widgetDesignStyle) == null ? void 0 : o.active) != null ? i : !0;
|
|
2654
2654
|
d = c0(d, e.style.widgetDesign, b);
|
|
2655
2655
|
}
|
|
2656
|
-
const p = w0(s, u), h = lu(u), f = Gf(s) ? Vf(s) : void 0, m = _(x({}, fu), { oid: e.oid, title: e.title, dataSource:
|
|
2656
|
+
const p = w0(s, u), h = lu(u), f = Gf(s) ? Vf(s) : void 0, m = _(x({}, fu), { oid: e.oid, title: e.title, dataSource: Fi(e.datasource), description: e.desc || "", widgetType: s, chartType: f, pluginType: c || "", dataOptions: l || {}, styleOptions: d || {}, drilldownOptions: p, filters: h });
|
|
2657
2657
|
return gu(m);
|
|
2658
2658
|
}
|
|
2659
2659
|
function _0(e) {
|
|
@@ -2832,7 +2832,7 @@ function P0({ dashboardOid: e, includeWidgets: n, includeFilters: r, persist: t
|
|
|
2832
2832
|
}, [p, d]), { dashboard: l, isLoading: h, isError: f, error: m, dispatchChanges: u };
|
|
2833
2833
|
}
|
|
2834
2834
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
2835
|
-
const { entries: wu, setPrototypeOf: Tl, isFrozen: R0, getPrototypeOf:
|
|
2835
|
+
const { entries: wu, setPrototypeOf: Tl, isFrozen: R0, getPrototypeOf: j0, getOwnPropertyDescriptor: F0 } = Object;
|
|
2836
2836
|
let { freeze: Ve, seal: ut, create: xu } = Object, { apply: fi, construct: gi } = typeof Reflect < "u" && Reflect;
|
|
2837
2837
|
Ve || (Ve = function(e) {
|
|
2838
2838
|
return e;
|
|
@@ -2888,14 +2888,14 @@ function wr(e) {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
function wn(e, n) {
|
|
2890
2890
|
for (; e !== null; ) {
|
|
2891
|
-
const t =
|
|
2891
|
+
const t = F0(e, n);
|
|
2892
2892
|
if (t) {
|
|
2893
2893
|
if (t.get)
|
|
2894
2894
|
return at(t.get);
|
|
2895
2895
|
if (typeof t.value == "function")
|
|
2896
2896
|
return at(t.value);
|
|
2897
2897
|
}
|
|
2898
|
-
e =
|
|
2898
|
+
e = j0(e);
|
|
2899
2899
|
}
|
|
2900
2900
|
function r() {
|
|
2901
2901
|
return null;
|
|
@@ -2960,7 +2960,7 @@ function Du() {
|
|
|
2960
2960
|
const { implementation: P, createNodeIterator: z, createDocumentFragment: W, getElementsByTagName: L } = r, { importNode: I } = t;
|
|
2961
2961
|
let T = {};
|
|
2962
2962
|
n.isSupported = typeof wu == "function" && typeof k == "function" && P && P.createHTMLDocument !== void 0;
|
|
2963
|
-
const { MUSTACHE_EXPR: R, ERB_EXPR:
|
|
2963
|
+
const { MUSTACHE_EXPR: R, ERB_EXPR: j, TMPLIT_EXPR: O, DATA_ATTR: M, ARIA_ATTR: N, IS_SCRIPT_OR_DATA: D, ATTR_WHITESPACE: S, CUSTOM_ELEMENT: F } = Pl;
|
|
2964
2964
|
let { IS_ALLOWED_URI: G } = Pl, Z = null;
|
|
2965
2965
|
const fe = re({}, [...El, ...Wo, ...Ho, ...Bo, ...Il]);
|
|
2966
2966
|
let K = null;
|
|
@@ -2972,33 +2972,33 @@ function Du() {
|
|
|
2972
2972
|
let Ps = null;
|
|
2973
2973
|
const Rs = re({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2974
2974
|
let _o = null;
|
|
2975
|
-
const
|
|
2975
|
+
const js = re({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Vn = "http://www.w3.org/1998/Math/MathML", Xn = "http://www.w3.org/2000/svg", Rt = "http://www.w3.org/1999/xhtml";
|
|
2976
2976
|
let Br = Rt, Do = !1, So = null;
|
|
2977
2977
|
const $p = re({}, [Vn, Xn, Rt], zo);
|
|
2978
2978
|
let mn = null;
|
|
2979
2979
|
const qp = ["application/xhtml+xml", "text/html"], Up = "text/html";
|
|
2980
2980
|
let Ee = null, $r = null;
|
|
2981
|
-
const Qp = r.createElement("form"),
|
|
2981
|
+
const Qp = r.createElement("form"), Fs = function(w) {
|
|
2982
2982
|
return w instanceof RegExp || w instanceof Function;
|
|
2983
2983
|
}, Co = function() {
|
|
2984
2984
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2985
2985
|
if (!($r && $r === w)) {
|
|
2986
2986
|
if ((!w || typeof w != "object") && (w = {}), w = wr(w), mn = // eslint-disable-next-line unicorn/prefer-includes
|
|
2987
2987
|
qp.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? Up : w.PARSER_MEDIA_TYPE, Ee = mn === "application/xhtml+xml" ? zo : la, Z = bt(w, "ALLOWED_TAGS") ? re({}, w.ALLOWED_TAGS, Ee) : fe, K = bt(w, "ALLOWED_ATTR") ? re({}, w.ALLOWED_ATTR, Ee) : Ne, So = bt(w, "ALLOWED_NAMESPACES") ? re({}, w.ALLOWED_NAMESPACES, zo) : $p, _o = bt(w, "ADD_URI_SAFE_ATTR") ? re(
|
|
2988
|
-
wr(
|
|
2988
|
+
wr(js),
|
|
2989
2989
|
// eslint-disable-line indent
|
|
2990
2990
|
w.ADD_URI_SAFE_ATTR,
|
|
2991
2991
|
// eslint-disable-line indent
|
|
2992
2992
|
Ee
|
|
2993
2993
|
// eslint-disable-line indent
|
|
2994
|
-
) :
|
|
2994
|
+
) : js, Ps = bt(w, "ADD_DATA_URI_TAGS") ? re(
|
|
2995
2995
|
wr(Rs),
|
|
2996
2996
|
// eslint-disable-line indent
|
|
2997
2997
|
w.ADD_DATA_URI_TAGS,
|
|
2998
2998
|
// eslint-disable-line indent
|
|
2999
2999
|
Ee
|
|
3000
3000
|
// eslint-disable-line indent
|
|
3001
|
-
) : Rs, Hr = bt(w, "FORBID_CONTENTS") ? re({}, w.FORBID_CONTENTS, Ee) : Ls, st = bt(w, "FORBID_TAGS") ? re({}, w.FORBID_TAGS, Ee) : {}, ht = bt(w, "FORBID_ATTR") ? re({}, w.FORBID_ATTR, Ee) : {}, Wr = bt(w, "USE_PROFILES") ? w.USE_PROFILES : !1, Kt = w.ALLOW_ARIA_ATTR !== !1, ft = w.ALLOW_DATA_ATTR !== !1, Pe = w.ALLOW_UNKNOWN_PROTOCOLS || !1, gt = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, lt = w.SAFE_FOR_TEMPLATES || !1, er = w.SAFE_FOR_XML !== !1, br = w.WHOLE_DOCUMENT || !1, zr = w.RETURN_DOM || !1, Zn = w.RETURN_DOM_FRAGMENT || !1, Gn = w.RETURN_TRUSTED_TYPE || !1, xo = w.FORCE_BODY || !1, Is = w.SANITIZE_DOM !== !1, Os = w.SANITIZE_NAMED_PROPS || !1, ko = w.KEEP_CONTENT !== !1, gn = w.IN_PLACE || !1, G = w.ALLOWED_URI_REGEXP || ku, Br = w.NAMESPACE || Rt, ae = w.CUSTOM_ELEMENT_HANDLING || {}, w.CUSTOM_ELEMENT_HANDLING &&
|
|
3001
|
+
) : Rs, Hr = bt(w, "FORBID_CONTENTS") ? re({}, w.FORBID_CONTENTS, Ee) : Ls, st = bt(w, "FORBID_TAGS") ? re({}, w.FORBID_TAGS, Ee) : {}, ht = bt(w, "FORBID_ATTR") ? re({}, w.FORBID_ATTR, Ee) : {}, Wr = bt(w, "USE_PROFILES") ? w.USE_PROFILES : !1, Kt = w.ALLOW_ARIA_ATTR !== !1, ft = w.ALLOW_DATA_ATTR !== !1, Pe = w.ALLOW_UNKNOWN_PROTOCOLS || !1, gt = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, lt = w.SAFE_FOR_TEMPLATES || !1, er = w.SAFE_FOR_XML !== !1, br = w.WHOLE_DOCUMENT || !1, zr = w.RETURN_DOM || !1, Zn = w.RETURN_DOM_FRAGMENT || !1, Gn = w.RETURN_TRUSTED_TYPE || !1, xo = w.FORCE_BODY || !1, Is = w.SANITIZE_DOM !== !1, Os = w.SANITIZE_NAMED_PROPS || !1, ko = w.KEEP_CONTENT !== !1, gn = w.IN_PLACE || !1, G = w.ALLOWED_URI_REGEXP || ku, Br = w.NAMESPACE || Rt, ae = w.CUSTOM_ELEMENT_HANDLING || {}, w.CUSTOM_ELEMENT_HANDLING && Fs(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ae.tagNameCheck = w.CUSTOM_ELEMENT_HANDLING.tagNameCheck), w.CUSTOM_ELEMENT_HANDLING && Fs(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ae.attributeNameCheck = w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), w.CUSTOM_ELEMENT_HANDLING && typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ae.allowCustomizedBuiltInElements = w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), lt && (ft = !1), Zn && (zr = !0), Wr && (Z = re({}, Il), K = [], Wr.html === !0 && (re(Z, El), re(K, Ol)), Wr.svg === !0 && (re(Z, Wo), re(K, $o), re(K, ra)), Wr.svgFilters === !0 && (re(Z, Ho), re(K, $o), re(K, ra)), Wr.mathMl === !0 && (re(Z, Bo), re(K, Ll), re(K, ra))), w.ADD_TAGS && (Z === fe && (Z = wr(Z)), re(Z, w.ADD_TAGS, Ee)), w.ADD_ATTR && (K === Ne && (K = wr(K)), re(K, w.ADD_ATTR, Ee)), w.ADD_URI_SAFE_ATTR && re(_o, w.ADD_URI_SAFE_ATTR, Ee), w.FORBID_CONTENTS && (Hr === Ls && (Hr = wr(Hr)), re(Hr, w.FORBID_CONTENTS, Ee)), ko && (Z["#text"] = !0), br && re(Z, ["html", "head", "body"]), Z.table && (re(Z, ["tbody"]), delete st.tbody), w.TRUSTED_TYPES_POLICY) {
|
|
3002
3002
|
if (typeof w.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3003
3003
|
throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3004
3004
|
if (typeof w.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -3073,16 +3073,16 @@ function Du() {
|
|
|
3073
3073
|
return w instanceof u && (typeof w.nodeName != "string" || typeof w.textContent != "string" || typeof w.removeChild != "function" || !(w.attributes instanceof d) || typeof w.removeAttribute != "function" || typeof w.setAttribute != "function" || typeof w.namespaceURI != "string" || typeof w.insertBefore != "function" || typeof w.hasChildNodes != "function");
|
|
3074
3074
|
}, Us = function(w) {
|
|
3075
3075
|
return typeof s == "function" && w instanceof s;
|
|
3076
|
-
},
|
|
3076
|
+
}, jt = function(w, q, Y) {
|
|
3077
3077
|
T[w] && ta(T[w], (de) => {
|
|
3078
3078
|
de.call(n, q, Y, $r);
|
|
3079
3079
|
});
|
|
3080
3080
|
}, Qs = function(w) {
|
|
3081
3081
|
let q = null;
|
|
3082
|
-
if (
|
|
3082
|
+
if (jt("beforeSanitizeElements", w, null), qs(w))
|
|
3083
3083
|
return yr(w), !0;
|
|
3084
3084
|
const Y = Ee(w.nodeName);
|
|
3085
|
-
if (
|
|
3085
|
+
if (jt("uponSanitizeElement", w, { tagName: Y, allowedTags: Z }), w.hasChildNodes() && !Us(w.firstElementChild) && Ue(/<[/\w]/g, w.innerHTML) && Ue(/<[/\w]/g, w.textContent) || w.nodeType === xn.progressingInstruction || er && w.nodeType === xn.comment && Ue(/<[/\w]/g, w.data))
|
|
3086
3086
|
return yr(w), !0;
|
|
3087
3087
|
if (!Z[Y] || st[Y]) {
|
|
3088
3088
|
if (!st[Y] && Gs(Y) && (ae.tagNameCheck instanceof RegExp && Ue(ae.tagNameCheck, Y) || ae.tagNameCheck instanceof Function && ae.tagNameCheck(Y)))
|
|
@@ -3091,17 +3091,17 @@ function Du() {
|
|
|
3091
3091
|
const de = k(w) || w.parentNode, Re = v(w) || w.childNodes;
|
|
3092
3092
|
if (Re && de) {
|
|
3093
3093
|
const we = Re.length;
|
|
3094
|
-
for (let
|
|
3095
|
-
const ct = m(Re[
|
|
3094
|
+
for (let Ft = we - 1; Ft >= 0; --Ft) {
|
|
3095
|
+
const ct = m(Re[Ft], !0);
|
|
3096
3096
|
ct.__removalCount = (w.__removalCount || 0) + 1, de.insertBefore(ct, y(w));
|
|
3097
3097
|
}
|
|
3098
3098
|
}
|
|
3099
3099
|
}
|
|
3100
3100
|
return yr(w), !0;
|
|
3101
3101
|
}
|
|
3102
|
-
return w instanceof c && !Gp(w) || (Y === "noscript" || Y === "noembed" || Y === "noframes") && Ue(/<\/no(script|embed|frames)/i, w.innerHTML) ? (yr(w), !0) : (lt && w.nodeType === xn.text && (q = w.textContent, ta([R,
|
|
3102
|
+
return w instanceof c && !Gp(w) || (Y === "noscript" || Y === "noembed" || Y === "noframes") && Ue(/<\/no(script|embed|frames)/i, w.innerHTML) ? (yr(w), !0) : (lt && w.nodeType === xn.text && (q = w.textContent, ta([R, j, O], (de) => {
|
|
3103
3103
|
q = yn(q, de, " ");
|
|
3104
|
-
}), w.textContent !== q && (bn(n.removed, { element: w.cloneNode() }), w.textContent = q)),
|
|
3104
|
+
}), w.textContent !== q && (bn(n.removed, { element: w.cloneNode() }), w.textContent = q)), jt("afterSanitizeElements", w, null), !1);
|
|
3105
3105
|
}, Zs = function(w, q, Y) {
|
|
3106
3106
|
if (Is && (q === "id" || q === "name") && (Y in r || Y in Qp))
|
|
3107
3107
|
return !1;
|
|
@@ -3121,18 +3121,18 @@ function Du() {
|
|
|
3121
3121
|
}
|
|
3122
3122
|
return !0;
|
|
3123
3123
|
}, Gs = function(w) {
|
|
3124
|
-
return w !== "annotation-xml" && Al(w,
|
|
3124
|
+
return w !== "annotation-xml" && Al(w, F);
|
|
3125
3125
|
}, Vs = function(w) {
|
|
3126
|
-
|
|
3126
|
+
jt("beforeSanitizeAttributes", w, null);
|
|
3127
3127
|
const { attributes: q } = w;
|
|
3128
3128
|
if (!q)
|
|
3129
3129
|
return;
|
|
3130
3130
|
const Y = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: K };
|
|
3131
3131
|
let de = q.length;
|
|
3132
3132
|
for (; de--; ) {
|
|
3133
|
-
const Re = q[de], { name: we, namespaceURI:
|
|
3133
|
+
const Re = q[de], { name: we, namespaceURI: Ft, value: ct } = Re, Dt = Ee(we);
|
|
3134
3134
|
let qe = we === "value" ? ct : z0(ct);
|
|
3135
|
-
if (Y.attrName = Dt, Y.attrValue = qe, Y.keepAttr = !0, Y.forceKeepAttr = void 0,
|
|
3135
|
+
if (Y.attrName = Dt, Y.attrValue = qe, Y.keepAttr = !0, Y.forceKeepAttr = void 0, jt("uponSanitizeAttribute", w, Y), qe = Y.attrValue, er && Ue(/((--!?|])>)|<\/(style|title)/i, qe)) {
|
|
3136
3136
|
Jn(we, w);
|
|
3137
3137
|
continue;
|
|
3138
3138
|
}
|
|
@@ -3142,12 +3142,12 @@ function Du() {
|
|
|
3142
3142
|
Jn(we, w);
|
|
3143
3143
|
continue;
|
|
3144
3144
|
}
|
|
3145
|
-
lt && ta([R,
|
|
3145
|
+
lt && ta([R, j, O], (Js) => {
|
|
3146
3146
|
qe = yn(qe, Js, " ");
|
|
3147
3147
|
});
|
|
3148
3148
|
const Xs = Ee(w.nodeName);
|
|
3149
3149
|
if (Zs(Xs, Dt, qe)) {
|
|
3150
|
-
if (Os && (Dt === "id" || Dt === "name") && (Jn(we, w), qe = Bp + qe), E && typeof h == "object" && typeof h.getAttributeType == "function" && !
|
|
3150
|
+
if (Os && (Dt === "id" || Dt === "name") && (Jn(we, w), qe = Bp + qe), E && typeof h == "object" && typeof h.getAttributeType == "function" && !Ft)
|
|
3151
3151
|
switch (h.getAttributeType(Xs, Dt)) {
|
|
3152
3152
|
case "TrustedHTML": {
|
|
3153
3153
|
qe = E.createHTML(qe);
|
|
@@ -3159,18 +3159,18 @@ function Du() {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
3161
3161
|
try {
|
|
3162
|
-
|
|
3162
|
+
Ft ? w.setAttributeNS(Ft, we, qe) : w.setAttribute(we, qe), qs(w) ? yr(w) : Nl(n.removed);
|
|
3163
3163
|
} catch {
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
|
-
|
|
3167
|
+
jt("afterSanitizeAttributes", w, null);
|
|
3168
3168
|
}, Vp = function w(q) {
|
|
3169
3169
|
let Y = null;
|
|
3170
3170
|
const de = $s(q);
|
|
3171
|
-
for (
|
|
3172
|
-
|
|
3173
|
-
|
|
3171
|
+
for (jt("beforeSanitizeShadowDOM", q, null); Y = de.nextNode(); )
|
|
3172
|
+
jt("uponSanitizeShadowNode", Y, null), !Qs(Y) && (Y.content instanceof o && w(Y.content), Vs(Y));
|
|
3173
|
+
jt("afterSanitizeShadowDOM", q, null);
|
|
3174
3174
|
};
|
|
3175
3175
|
return n.sanitize = function(w) {
|
|
3176
3176
|
let q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Y = null, de = null, Re = null, we = null;
|
|
@@ -3198,8 +3198,8 @@ function Du() {
|
|
|
3198
3198
|
return zr ? null : Gn ? C : "";
|
|
3199
3199
|
}
|
|
3200
3200
|
Y && xo && yr(Y.firstChild);
|
|
3201
|
-
const
|
|
3202
|
-
for (; Re =
|
|
3201
|
+
const Ft = $s(gn ? w : Y);
|
|
3202
|
+
for (; Re = Ft.nextNode(); )
|
|
3203
3203
|
Qs(Re) || (Re.content instanceof o && Vp(Re.content), Vs(Re));
|
|
3204
3204
|
if (gn)
|
|
3205
3205
|
return w;
|
|
@@ -3213,7 +3213,7 @@ function Du() {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
let ct = br ? Y.outerHTML : Y.innerHTML;
|
|
3215
3215
|
return br && Z["!doctype"] && Y.ownerDocument && Y.ownerDocument.doctype && Y.ownerDocument.doctype.name && Ue(_u, Y.ownerDocument.doctype.name) && (ct = "<!DOCTYPE " + Y.ownerDocument.doctype.name + `>
|
|
3216
|
-
` + ct), lt && ta([R,
|
|
3216
|
+
` + ct), lt && ta([R, j, O], (Dt) => {
|
|
3217
3217
|
ct = yn(ct, Dt, " ");
|
|
3218
3218
|
}), E && Gn ? E.createHTML(ct) : ct;
|
|
3219
3219
|
}, n.setConfig = function() {
|
|
@@ -3267,7 +3267,7 @@ const ny = { "valign-top": "flex-start", "valign-middle": "center", "valign-bott
|
|
|
3267
3267
|
if (!o)
|
|
3268
3268
|
return /* @__PURE__ */ g(Jf, { error: r("plugins.registerPrompt", { pluginType: e.pluginType }) });
|
|
3269
3269
|
const i = (n = e.dataSource) != null ? n : a == null ? void 0 : a.defaultDataSource, s = { dataSource: i, dataOptions: e.dataOptions, styleOptions: e.styleOptions, filters: e.filters, highlights: e.highlights };
|
|
3270
|
-
return /* @__PURE__ */ g(qa, { defaultSize: Ri("line", { hasHeader: !0 }), children: /* @__PURE__ */ g(
|
|
3270
|
+
return /* @__PURE__ */ g(qa, { defaultSize: Ri("line", { hasHeader: !0 }), children: /* @__PURE__ */ g(ji, { title: e.title, description: e.description, dataSetName: i && pr(i), children: o(s) }) });
|
|
3271
3271
|
}, dy = (e) => /* @__PURE__ */ g(qi, { onBeforeMenuOpen: e.onBeforeMenuOpen, children: [sf(e) && /* @__PURE__ */ g(cy, x({}, e)), Qc(e) && /* @__PURE__ */ g(Kd, x({}, e)), lf(e) && /* @__PURE__ */ g(Su, x({}, e)), Zc(e) && /* @__PURE__ */ g(Gc, _(x({}, e), { highlightSelectionDisabled: !0 }))] }), uy = (e) => /* @__PURE__ */ g(dy, x({}, e), e.id), Rl = V.div`
|
|
3272
3272
|
display: grid;
|
|
3273
3273
|
grid-template-columns: ${({ widths: e }) => e.map((n) => `${n}%`).join(" ")};
|
|
@@ -3325,12 +3325,12 @@ function Mu(e, n) {
|
|
|
3325
3325
|
const r = e, { context: t } = r, a = Se(r, ["context"]), o = n, { context: i } = o, s = Se(o, ["context"]);
|
|
3326
3326
|
return xy(t, i) && lr(a, s);
|
|
3327
3327
|
}
|
|
3328
|
-
const
|
|
3328
|
+
const jl = (e) => wy(e) && e.type === "filter", wy = (e) => typeof e == "object" && !!e && "type" in e;
|
|
3329
3329
|
function xy(e, n) {
|
|
3330
3330
|
const r = Object.keys(e), t = Object.keys(n);
|
|
3331
3331
|
return lr(r, t) ? r.every((a) => {
|
|
3332
3332
|
const o = e[a], i = n[a];
|
|
3333
|
-
return Ma(o) && Ma(i) ? Mu(o, i) :
|
|
3333
|
+
return Ma(o) && Ma(i) ? Mu(o, i) : jl(o) && jl(i) ? Kf(o, i) : lr(o, i);
|
|
3334
3334
|
}) : !1;
|
|
3335
3335
|
}
|
|
3336
3336
|
const ky = ["dataSource", "dimensions", "count", "offset", "onBeforeQuery"];
|
|
@@ -3348,12 +3348,12 @@ function us(e) {
|
|
|
3348
3348
|
}, [d, i, p.isLoading]), m = J((b, y) => {
|
|
3349
3349
|
const { dataSource: v, dimensions: k, measures: E, filters: C, highlights: P, count: z = b.settings.queryLimit, offset: W, ungroup: L, onBeforeQuery: I } = y;
|
|
3350
3350
|
h({ type: "loading" });
|
|
3351
|
-
const { filters: T, relations: R } = Gt(C),
|
|
3351
|
+
const { filters: T, relations: R } = Gt(C), j = [{ dataSource: v, dimensions: k, measures: E, filters: T, filterRelations: R, highlights: P, count: z, offset: W, ungroup: L }, b, { onBeforeQuery: I }];
|
|
3352
3352
|
if (d) {
|
|
3353
|
-
const O = wh(...
|
|
3353
|
+
const O = wh(...j);
|
|
3354
3354
|
i !== O && s(O);
|
|
3355
3355
|
}
|
|
3356
|
-
u(...
|
|
3356
|
+
u(...j).then((O) => {
|
|
3357
3357
|
h({ type: "success", data: O });
|
|
3358
3358
|
}).catch((O) => {
|
|
3359
3359
|
h({ type: "error", error: O });
|
|
@@ -3418,7 +3418,7 @@ const Nu = Qa((e, n) => /* @__PURE__ */ g("button", _(x({}, e), { ref: n, classN
|
|
|
3418
3418
|
width: 14px;
|
|
3419
3419
|
height: 24px;
|
|
3420
3420
|
box-sizing: border-box;
|
|
3421
|
-
`,
|
|
3421
|
+
`, Fl = V.button`
|
|
3422
3422
|
height: 12px;
|
|
3423
3423
|
width: 14px;
|
|
3424
3424
|
position: relative;
|
|
@@ -3444,7 +3444,7 @@ const Nu = Qa((e, n) => /* @__PURE__ */ g("button", _(x({}, e), { ref: n, classN
|
|
|
3444
3444
|
}, [t, h]);
|
|
3445
3445
|
return /* @__PURE__ */ g("div", { className: "csdk-flex csdk-items-center csdk-gap-x-2", style: c, children: [e.label && /* @__PURE__ */ g("label", { style: l, className: "csdk-min-w-fit", htmlFor: e.id, children: e.label }), /* @__PURE__ */ g("div", { className: "csdk-h-full csdk-w-[100%] csdk-flex csdk-justify-end", children: [/* @__PURE__ */ g(Sy, _(x({}, u), { type: o, style: d, ref: f, className: ["csdk-border-UI-default", a].join(" "), value: p, onChange: (y) => {
|
|
3446
3446
|
t(y.target.value), h(y.target.value);
|
|
3447
|
-
}, disabled: s })), o === "number" && /* @__PURE__ */ g(Cy, { children: [/* @__PURE__ */ g(
|
|
3447
|
+
}, disabled: s })), o === "number" && /* @__PURE__ */ g(Cy, { children: [/* @__PURE__ */ g(Fl, { onClick: () => b(p, "increment"), children: /* @__PURE__ */ g("svg", { className: "csdk-mt-[2px]", width: 24, height: 24, viewBox: "0 0 24 24", children: /* @__PURE__ */ g("path", { fill: m.typography.primaryTextColor, d: "M12 10.16l-3.174 2.719a.5.5 0 0 1-.65-.76l3.5-2.998a.5.5 0 0 1 .65 0l3.5 2.998a.5.5 0 1 1-.65.76L12 10.159z" }) }) }), /* @__PURE__ */ g(Fl, { onClick: () => b(p, "decrement"), children: /* @__PURE__ */ g("svg", { className: "csdk-mt-[-2px]", width: 24, height: 24, viewBox: "0 0 24 24", children: /* @__PURE__ */ g("path", { fill: m.typography.primaryTextColor, d: "M12 13.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 13.841z" }) }) })] })] })] });
|
|
3448
3448
|
}, My = (e) => /* @__PURE__ */ g("svg", _(x({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e), { children: /* @__PURE__ */ g("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 18.808L20 8.80798L15.0995 4L5 13.808V18.7949L10 18.808ZM6 14.2308L12.8609 7.56797L16.3433 11.0504L9.58687 17.8069L6 17.7975V14.2308ZM15.0959 5.39742L13.5783 6.87121L17.0504 10.3433L18.579 8.81475L15.0959 5.39742ZM13.499 10.4355L9.64164 14.2398L8.93945 13.5278L12.7968 9.72353L13.499 10.4355Z", fill: "#5B6372" }) })), Ty = (e) => /* @__PURE__ */ g("svg", _(x({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e), { children: [/* @__PURE__ */ g("path", { d: "M10 10.5V15.5C10 15.7761 10.2239 16 10.5 16C10.7761 16 11 15.7761 11 15.5V10.5C11 10.2239 10.7761 10 10.5 10C10.2239 10 10 10.2239 10 10.5Z", fill: e.fill || "#5B6372" }), /* @__PURE__ */ g("path", { d: "M13 15.5V10.5C13 10.2239 13.2239 10 13.5 10C13.7761 10 14 10.2239 14 10.5V15.5C14 15.7761 13.7761 16 13.5 16C13.2239 16 13 15.7761 13 15.5Z", fill: e.fill || "#5B6372" }), /* @__PURE__ */ g("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 5H11C9.89543 5 9 5.89543 9 7H6.5C6.22386 7 6 7.22386 6 7.5C6 7.77614 6.22386 8 6.5 8H7V16.5C7 17.8807 8.11929 19 9.5 19H14.5C15.8807 19 17 17.8807 17 16.5V8H17.5C17.7761 8 18 7.77614 18 7.5C18 7.22386 17.7761 7 17.5 7H15C15 5.89543 14.1046 5 13 5ZM8 8V16.5C8 17.3284 8.67157 18 9.5 18H14.5C15.3284 18 16 17.3284 16 16.5V8H8ZM14 7H10C10 6.44772 10.4477 6 11 6H13C13.5523 6 14 6.44772 14 7Z", fill: e.fill || "#5B6372" })] })), Ny = (e) => /* @__PURE__ */ g("svg", _(x({ width: "22", height: "22", viewBox: "0 0 22 22", fill: "#b4b4b4", xmlns: "http://www.w3.org/2000/svg" }, e), { children: /* @__PURE__ */ g("g", { transform: "translate(5.000000,5.000000) scale(.70, 0.6)", children: [/* @__PURE__ */ g("path", { d: "m3,9v11h14V9M4,9V6c0-3.3 2.7-6 6-6c3.3,0 6,2.7 6,6v3H14V6c0-2.2-1.8-4-4-4-2.2,0-4,1.8-4,4v3" }), /* @__PURE__ */ g("rect", { y: "10", x: "4", width: "12", height: "9", fill: "#dcdcdc" })] }) })), Ay = (e) => {
|
|
3449
3449
|
const n = e.width || "24", r = e.height || "24";
|
|
3450
3450
|
return /* @__PURE__ */ g("svg", { viewBox: `0 0 ${n} ${r}`, fill: "none", xmlns: "http://www.w3.org/2000/svg", className: e.className, width: n, height: r, children: /* @__PURE__ */ g("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 5V3.5C9 3.22386 9.22386 3 9.5 3C9.77614 3 10 3.22386 10 3.5V5H13V3.5C13 3.22386 13.2239 3 13.5 3C13.7761 3 14 3.22386 14 3.5V5H17C18.1046 5 19 5.89543 19 7V8V9V17C19 18.1046 18.1046 19 17 19H6C4.89543 19 4 18.1046 4 17V9V8V7C4 5.89543 4.89543 5 6 5H9ZM10 6H13V6.5C13 6.77614 13.2239 7 13.5 7C13.7761 7 14 6.77614 14 6.5V6H17C17.5523 6 18 6.44772 18 7V8H5V7C5 6.44772 5.44772 6 6 6H9V6.5C9 6.77614 9.22386 7 9.5 7C9.77614 7 10 6.77614 10 6.5V6ZM5 17V9H18V17C18 17.5523 17.5523 18 17 18H6C5.44772 18 5 17.5523 5 17ZM14.5 12H8.5C8.22386 12 8 11.7761 8 11.5C8 11.2239 8.22386 11 8.5 11H14.5C14.7761 11 15 11.2239 15 11.5C15 11.7761 14.7761 12 14.5 12ZM8.5 14H14.5C14.7761 14 15 13.7761 15 13.5C15 13.2239 14.7761 13 14.5 13H8.5C8.22386 13 8 13.2239 8 13.5C8 13.7761 8.22386 14 8.5 14ZM14.5 16H8.5C8.22386 16 8 15.7761 8 15.5C8 15.2239 8.22386 15 8.5 15H14.5C14.7761 15 15 15.2239 15 15.5C15 15.7761 14.7761 16 14.5 16Z", fill: e.iconColor || "#5B6372" }) });
|
|
@@ -3460,7 +3460,7 @@ const Nu = Qa((e, n) => /* @__PURE__ */ g("button", _(x({}, e), { ref: n, classN
|
|
|
3460
3460
|
}), Eu = () => {
|
|
3461
3461
|
const { themeSettings: e } = be(), { backgroundColor: n } = e.general, r = vt(n, id);
|
|
3462
3462
|
return /* @__PURE__ */ g("div", { className: "csdk-flex csdk-justify-center", "data-testid": "triangle-indicator", children: /* @__PURE__ */ g("div", { style: { borderTopColor: r }, className: "csdk-border-l-[70px] csdk-border-l-[transparent] csdk-border-r-[70px] csdk-border-r-[transparent] csdk-border-t-[13px]" }) });
|
|
3463
|
-
}, ua = (e) => e === "white", Yl = "rgb(240, 240, 240)", Ry = "rgba(0, 0, 0, 0.26)",
|
|
3463
|
+
}, ua = (e) => e === "white", Yl = "rgb(240, 240, 240)", Ry = "rgba(0, 0, 0, 0.26)", jy = V.button`
|
|
3464
3464
|
cursor: pointer;
|
|
3465
3465
|
background-color: ${({ theme: e, variant: n, disabled: r }) => r ? Yl : ua(n) ? e.general.backgroundColor : "#f4f4f8"};
|
|
3466
3466
|
border: ${({ variant: e }) => ua(e) ? "1px solid rgb(110 115 125 / var(--tw-border-opacity))" : "none"};
|
|
@@ -3471,11 +3471,11 @@ const Nu = Qa((e, n) => /* @__PURE__ */ g("button", _(x({}, e), { ref: n, classN
|
|
|
3471
3471
|
transition: 0.2s;
|
|
3472
3472
|
}
|
|
3473
3473
|
transition: color 250ms;
|
|
3474
|
-
`,
|
|
3474
|
+
`, Fy = V.label`
|
|
3475
3475
|
color: ${({ theme: e, variant: n }) => ua(n) ? e.typography.primaryTextColor : e.general.primaryButtonTextColor};
|
|
3476
3476
|
`, bi = (e) => {
|
|
3477
3477
|
const { variant: n = "grey", label: r, isActive: t, theme: a } = e;
|
|
3478
|
-
return /* @__PURE__ */ g("div", { className: "csdk-relative csdk-flex csdk-mr-[5px] csdk-cursor-pointer", "aria-label": "DateRangeField", children: [r && /* @__PURE__ */ g(
|
|
3478
|
+
return /* @__PURE__ */ g("div", { className: "csdk-relative csdk-flex csdk-mr-[5px] csdk-cursor-pointer", "aria-label": "DateRangeField", children: [r && /* @__PURE__ */ g(Fy, { htmlFor: e.id, className: "csdk-my-[5px] csdk-mr-[7px] csdk-text-[13px] csdk-leading-[18px]", theme: a, variant: n, children: r }), /* @__PURE__ */ g("div", { className: "csdk-relative csdk-h-6", children: /* @__PURE__ */ g(jy, _(x({}, e), { variant: n, "aria-label": "DateRangeFieldButton", className: "csdk-text-left csdk-w-[152px] csdk-bg-[#f4f4f8] csdk-text-[13px] csdk-outline-0 csdk-border csdk-border-transparent csdk-p-input csdk-h-6 csdk-rounded-[4px] disabled:csdk-placeholder:csdk-opacity-30 disabled:csdk-cursor-not-allowed focus:csdk-border-solid focus:csdk-border-input focus:csdk-border-UI-default hover:csdk-border-guiding csdk-text-text-active csdk-pl-2.5 csdk-pr-10 csdk-overflow-hidden " + (e.className || ""), children: [e.value, /* @__PURE__ */ g("div", { "aria-label": "DateRangeFieldIcon", className: "csdk-absolute csdk-right-[4px] csdk-top-1/2 csdk-transform -csdk-translate-y-1/2", children: /* @__PURE__ */ g(Ay, { className: "csdk-flex csdk-text-text-active", "aria-hidden": "true", iconColor: t ? a.general.primaryButtonTextColor : a.typography.primaryTextColor }) })] })) })] });
|
|
3479
3479
|
}, yi = (e) => {
|
|
3480
3480
|
var n, r;
|
|
3481
3481
|
const [t, a] = ne(!1), { themeSettings: o } = be(), i = () => {
|
|
@@ -3621,7 +3621,7 @@ const Uy = V.button`
|
|
|
3621
3621
|
d && b.push(d);
|
|
3622
3622
|
const { data: y, error: v } = us({
|
|
3623
3623
|
// prioritize attribute dataSource for the use case of multi-source dashboard
|
|
3624
|
-
dataSource: r.dataSource ?
|
|
3624
|
+
dataSource: r.dataSource ? Fi(r.dataSource) : a,
|
|
3625
3625
|
dimensions: m,
|
|
3626
3626
|
filters: b
|
|
3627
3627
|
}), { app: k } = Oe(), E = X(() => {
|
|
@@ -3633,8 +3633,8 @@ const Uy = V.button`
|
|
|
3633
3633
|
}, [y, r, k]), C = X(() => E ? E.rows.map((I) => I[0]) : [], [E]), P = X(() => {
|
|
3634
3634
|
const I = Wl(h.members, r.type), T = Wl(h.config.deactivatedMembers, r.type);
|
|
3635
3635
|
return C.filter((R) => I.includes(R.data) || T.includes(R.data)).map((R) => {
|
|
3636
|
-
var
|
|
3637
|
-
return { key: R.data.toString(), title: (
|
|
3636
|
+
var j;
|
|
3637
|
+
return { key: R.data.toString(), title: (j = R.text) != null ? j : R.data.toString(), inactive: T.includes(R.data) };
|
|
3638
3638
|
});
|
|
3639
3639
|
}, [h.config.deactivatedMembers, h.members, C, r.type]), z = X(() => C.map((I) => {
|
|
3640
3640
|
var T;
|
|
@@ -3652,8 +3652,8 @@ const Uy = V.button`
|
|
|
3652
3652
|
if (v)
|
|
3653
3653
|
throw v;
|
|
3654
3654
|
return E ? /* @__PURE__ */ g(gr, { title: n, renderContent: (I, T) => I ? /* @__PURE__ */ g(Ou, { members: z, selectedMembers: P, onToggleSelectedMember: (R) => {
|
|
3655
|
-
const
|
|
3656
|
-
f(qr(h,
|
|
3655
|
+
const j = nv(P, R);
|
|
3656
|
+
f(qr(h, j, p));
|
|
3657
3657
|
}, excludeMembers: p, disabled: T }) : /* @__PURE__ */ g(Lu, { members: z, selectedMembers: P, onSelectMember: L, checkAllMembers: () => f(qr(h, [], !0)), uncheckAllMembers: () => f(qr(h, [], !1)), excludeMembers: p, enableMultiSelection: u, disabled: T }), disabled: h.config.disabled, onToggleDisabled: () => {
|
|
3658
3658
|
const I = Za(h);
|
|
3659
3659
|
f(I);
|
|
@@ -3725,10 +3725,10 @@ function en(e) {
|
|
|
3725
3725
|
}
|
|
3726
3726
|
function Ar(e) {
|
|
3727
3727
|
var n;
|
|
3728
|
-
return e ?
|
|
3728
|
+
return e ? ju(e) || Array.isArray(e) || !!e[Hl] || !!((n = e.constructor) != null && n[Hl]) || uo(e) || po(e) : !1;
|
|
3729
3729
|
}
|
|
3730
3730
|
var ov = Object.prototype.constructor.toString();
|
|
3731
|
-
function
|
|
3731
|
+
function ju(e) {
|
|
3732
3732
|
if (!e || typeof e != "object")
|
|
3733
3733
|
return !1;
|
|
3734
3734
|
const n = Kr(e);
|
|
@@ -3749,7 +3749,7 @@ function co(e) {
|
|
|
3749
3749
|
function vi(e, n) {
|
|
3750
3750
|
return co(e) === 2 ? e.has(n) : Object.prototype.hasOwnProperty.call(e, n);
|
|
3751
3751
|
}
|
|
3752
|
-
function
|
|
3752
|
+
function Fu(e, n, r) {
|
|
3753
3753
|
const t = co(e);
|
|
3754
3754
|
t === 2 ? e.set(n, r) : t === 3 ? e.add(r) : e[n] = r;
|
|
3755
3755
|
}
|
|
@@ -3772,7 +3772,7 @@ function wi(e, n) {
|
|
|
3772
3772
|
return new Set(e);
|
|
3773
3773
|
if (Array.isArray(e))
|
|
3774
3774
|
return Array.prototype.slice.call(e);
|
|
3775
|
-
const r =
|
|
3775
|
+
const r = ju(e);
|
|
3776
3776
|
if (n === !0 || n === "class_only" && !r) {
|
|
3777
3777
|
const t = Object.getOwnPropertyDescriptors(e);
|
|
3778
3778
|
delete t[ot];
|
|
@@ -3868,7 +3868,7 @@ function Ul(e, n, r, t, a, o, i) {
|
|
|
3868
3868
|
if (process.env.NODE_ENV !== "production" && a === r && Ke(5), en(a)) {
|
|
3869
3869
|
const s = o && n && n.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
3870
3870
|
!vi(n.assigned_, t) ? o.concat(t) : void 0, c = Na(e, a, s);
|
|
3871
|
-
if (
|
|
3871
|
+
if (Fu(r, t, c), en(c))
|
|
3872
3872
|
e.canAutoFreeze_ = !1;
|
|
3873
3873
|
else
|
|
3874
3874
|
return;
|
|
@@ -4103,10 +4103,10 @@ function Wu(e) {
|
|
|
4103
4103
|
} else
|
|
4104
4104
|
r = wi(e, !0);
|
|
4105
4105
|
return Ta(r, (t, a) => {
|
|
4106
|
-
|
|
4106
|
+
Fu(r, t, Wu(a));
|
|
4107
4107
|
}), n && (n.finalized_ = !1), r;
|
|
4108
4108
|
}
|
|
4109
|
-
var it = new hv(),
|
|
4109
|
+
var it = new hv(), Fr = it.produce;
|
|
4110
4110
|
it.produceWithPatches.bind(it);
|
|
4111
4111
|
it.setAutoFreeze.bind(it);
|
|
4112
4112
|
it.setUseStrictShallowCopy.bind(it);
|
|
@@ -4132,37 +4132,37 @@ function gv(e, n) {
|
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
4134
|
function mv(e, n) {
|
|
4135
|
-
return
|
|
4135
|
+
return Fr(e, (r) => {
|
|
4136
4136
|
r.selectedMembers.push(n);
|
|
4137
4137
|
});
|
|
4138
4138
|
}
|
|
4139
4139
|
function bv(e, n) {
|
|
4140
|
-
return
|
|
4140
|
+
return Fr(e, (r) => {
|
|
4141
4141
|
r.selectedMembers.splice(n, 1);
|
|
4142
4142
|
});
|
|
4143
4143
|
}
|
|
4144
4144
|
function yv(e) {
|
|
4145
|
-
return
|
|
4145
|
+
return Fr(e, (n) => {
|
|
4146
4146
|
n.selectedMembers = n.members;
|
|
4147
4147
|
});
|
|
4148
4148
|
}
|
|
4149
4149
|
function vv(e, n) {
|
|
4150
|
-
return
|
|
4150
|
+
return Fr(e, (r) => {
|
|
4151
4151
|
r.selectedMembers = n;
|
|
4152
4152
|
});
|
|
4153
4153
|
}
|
|
4154
4154
|
function wv(e, n) {
|
|
4155
|
-
return
|
|
4155
|
+
return Fr(e, (r) => {
|
|
4156
4156
|
r.members = n, n.some((t) => !r.selectedMembers.some((a) => t.key === a.key)) ? r.selectedMembers = [] : r.selectedMembers = r.selectedMembers.filter((t) => n.some((a) => a.key === t.key));
|
|
4157
4157
|
});
|
|
4158
4158
|
}
|
|
4159
4159
|
function xv(e) {
|
|
4160
|
-
return
|
|
4160
|
+
return Fr(e, (n) => {
|
|
4161
4161
|
n.selectedMembers = [];
|
|
4162
4162
|
});
|
|
4163
4163
|
}
|
|
4164
4164
|
function kv(e, n) {
|
|
4165
|
-
return
|
|
4165
|
+
return Fr(e, (r) => {
|
|
4166
4166
|
const t = r.selectedMembers.find((a) => a.key === n);
|
|
4167
4167
|
t && (t.inactive = !t.inactive);
|
|
4168
4168
|
});
|
|
@@ -4211,8 +4211,8 @@ var Hu = { exports: {} };
|
|
|
4211
4211
|
}, m: function O(M, N) {
|
|
4212
4212
|
if (M.date() < N.date())
|
|
4213
4213
|
return -O(N, M);
|
|
4214
|
-
var D = 12 * (N.year() - M.year()) + (N.month() - M.month()), S = M.clone().add(D, u),
|
|
4215
|
-
return +(-(D + (N - S) / (
|
|
4214
|
+
var D = 12 * (N.year() - M.year()) + (N.month() - M.month()), S = M.clone().add(D, u), F = N - S < 0, G = M.clone().add(D + (F ? -1 : 1), u);
|
|
4215
|
+
return +(-(D + (N - S) / (F ? S - G : G - S)) || 0);
|
|
4216
4216
|
}, a: function(O) {
|
|
4217
4217
|
return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
|
|
4218
4218
|
}, p: function(O) {
|
|
@@ -4228,8 +4228,8 @@ var Hu = { exports: {} };
|
|
|
4228
4228
|
if (!M)
|
|
4229
4229
|
return C;
|
|
4230
4230
|
if (typeof M == "string") {
|
|
4231
|
-
var
|
|
4232
|
-
P[
|
|
4231
|
+
var F = M.toLowerCase();
|
|
4232
|
+
P[F] && (S = F), N && (P[F] = N, S = F);
|
|
4233
4233
|
var G = M.split("-");
|
|
4234
4234
|
if (!S && G.length > 1)
|
|
4235
4235
|
return O(G[0]);
|
|
@@ -4254,7 +4254,7 @@ var Hu = { exports: {} };
|
|
|
4254
4254
|
var M = O.prototype;
|
|
4255
4255
|
return M.parse = function(N) {
|
|
4256
4256
|
this.$d = function(D) {
|
|
4257
|
-
var S = D.date,
|
|
4257
|
+
var S = D.date, F = D.utc;
|
|
4258
4258
|
if (S === null)
|
|
4259
4259
|
return /* @__PURE__ */ new Date(NaN);
|
|
4260
4260
|
if (T.u(S))
|
|
@@ -4265,7 +4265,7 @@ var Hu = { exports: {} };
|
|
|
4265
4265
|
var G = S.match(b);
|
|
4266
4266
|
if (G) {
|
|
4267
4267
|
var Z = G[2] - 1 || 0, fe = (G[7] || "0").substring(0, 3);
|
|
4268
|
-
return
|
|
4268
|
+
return F ? new Date(Date.UTC(G[1], Z, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, fe)) : new Date(G[1], Z, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, fe);
|
|
4269
4269
|
}
|
|
4270
4270
|
}
|
|
4271
4271
|
return new Date(S);
|
|
@@ -4291,20 +4291,20 @@ var Hu = { exports: {} };
|
|
|
4291
4291
|
}, M.valueOf = function() {
|
|
4292
4292
|
return this.$d.getTime();
|
|
4293
4293
|
}, M.startOf = function(N, D) {
|
|
4294
|
-
var S = this,
|
|
4294
|
+
var S = this, F = !!T.u(D) || D, G = T.p(N), Z = function(ft, Pe) {
|
|
4295
4295
|
var gt = T.w(S.$u ? Date.UTC(S.$y, Pe, ft) : new Date(S.$y, Pe, ft), S);
|
|
4296
|
-
return
|
|
4296
|
+
return F ? gt : gt.endOf(l);
|
|
4297
4297
|
}, fe = function(ft, Pe) {
|
|
4298
|
-
return T.w(S.toDate()[ft].apply(S.toDate("s"), (
|
|
4298
|
+
return T.w(S.toDate()[ft].apply(S.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Pe)), S);
|
|
4299
4299
|
}, K = this.$W, Ne = this.$M, ae = this.$D, st = "set" + (this.$u ? "UTC" : "");
|
|
4300
4300
|
switch (G) {
|
|
4301
4301
|
case h:
|
|
4302
|
-
return
|
|
4302
|
+
return F ? Z(1, 0) : Z(31, 11);
|
|
4303
4303
|
case u:
|
|
4304
|
-
return
|
|
4304
|
+
return F ? Z(1, Ne) : Z(0, Ne + 1);
|
|
4305
4305
|
case d:
|
|
4306
4306
|
var ht = this.$locale().weekStart || 0, Kt = (K < ht ? K + 7 : K) - ht;
|
|
4307
|
-
return Z(
|
|
4307
|
+
return Z(F ? ae - Kt : ae + (6 - Kt), Ne);
|
|
4308
4308
|
case l:
|
|
4309
4309
|
case f:
|
|
4310
4310
|
return fe(st + "Hours", 0);
|
|
@@ -4320,8 +4320,8 @@ var Hu = { exports: {} };
|
|
|
4320
4320
|
}, M.endOf = function(N) {
|
|
4321
4321
|
return this.startOf(N, !1);
|
|
4322
4322
|
}, M.$set = function(N, D) {
|
|
4323
|
-
var S,
|
|
4324
|
-
if (
|
|
4323
|
+
var S, F = T.p(N), G = "set" + (this.$u ? "UTC" : ""), Z = (S = {}, S[l] = G + "Date", S[f] = G + "Date", S[u] = G + "Month", S[h] = G + "FullYear", S[c] = G + "Hours", S[s] = G + "Minutes", S[i] = G + "Seconds", S[o] = G + "Milliseconds", S)[F], fe = F === l ? this.$D + (D - this.$W) : D;
|
|
4324
|
+
if (F === u || F === h) {
|
|
4325
4325
|
var K = this.clone().set(f, 1);
|
|
4326
4326
|
K.$d[Z](fe), K.init(), this.$d = K.set(f, Math.min(this.$D, K.daysInMonth())).$d;
|
|
4327
4327
|
} else
|
|
@@ -4332,11 +4332,11 @@ var Hu = { exports: {} };
|
|
|
4332
4332
|
}, M.get = function(N) {
|
|
4333
4333
|
return this[T.p(N)]();
|
|
4334
4334
|
}, M.add = function(N, D) {
|
|
4335
|
-
var S,
|
|
4335
|
+
var S, F = this;
|
|
4336
4336
|
N = Number(N);
|
|
4337
4337
|
var G = T.p(D), Z = function(Ne) {
|
|
4338
|
-
var ae = I(
|
|
4339
|
-
return T.w(ae.date(ae.date() + Math.round(Ne * N)),
|
|
4338
|
+
var ae = I(F);
|
|
4339
|
+
return T.w(ae.date(ae.date() + Math.round(Ne * N)), F);
|
|
4340
4340
|
};
|
|
4341
4341
|
if (G === u)
|
|
4342
4342
|
return this.set(u, this.$M + N);
|
|
@@ -4354,15 +4354,15 @@ var Hu = { exports: {} };
|
|
|
4354
4354
|
var D = this, S = this.$locale();
|
|
4355
4355
|
if (!this.isValid())
|
|
4356
4356
|
return S.invalidDate || m;
|
|
4357
|
-
var
|
|
4358
|
-
return Pe && (Pe[gt] || Pe(D,
|
|
4357
|
+
var F = N || "YYYY-MM-DDTHH:mm:ssZ", G = T.z(this), Z = this.$H, fe = this.$m, K = this.$M, Ne = S.weekdays, ae = S.months, st = S.meridiem, ht = function(Pe, gt, lt, er) {
|
|
4358
|
+
return Pe && (Pe[gt] || Pe(D, F)) || lt[gt].slice(0, er);
|
|
4359
4359
|
}, Kt = function(Pe) {
|
|
4360
4360
|
return T.s(Z % 12 || 12, Pe, "0");
|
|
4361
4361
|
}, ft = st || function(Pe, gt, lt) {
|
|
4362
4362
|
var er = Pe < 12 ? "AM" : "PM";
|
|
4363
4363
|
return lt ? er.toLowerCase() : er;
|
|
4364
4364
|
};
|
|
4365
|
-
return
|
|
4365
|
+
return F.replace(y, function(Pe, gt) {
|
|
4366
4366
|
return gt || function(lt) {
|
|
4367
4367
|
switch (lt) {
|
|
4368
4368
|
case "YY":
|
|
@@ -4420,38 +4420,38 @@ var Hu = { exports: {} };
|
|
|
4420
4420
|
}, M.utcOffset = function() {
|
|
4421
4421
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4422
4422
|
}, M.diff = function(N, D, S) {
|
|
4423
|
-
var
|
|
4423
|
+
var F, G = this, Z = T.p(D), fe = I(N), K = (fe.utcOffset() - this.utcOffset()) * t, Ne = this - fe, ae = function() {
|
|
4424
4424
|
return T.m(G, fe);
|
|
4425
4425
|
};
|
|
4426
4426
|
switch (Z) {
|
|
4427
4427
|
case h:
|
|
4428
|
-
|
|
4428
|
+
F = ae() / 12;
|
|
4429
4429
|
break;
|
|
4430
4430
|
case u:
|
|
4431
|
-
|
|
4431
|
+
F = ae();
|
|
4432
4432
|
break;
|
|
4433
4433
|
case p:
|
|
4434
|
-
|
|
4434
|
+
F = ae() / 3;
|
|
4435
4435
|
break;
|
|
4436
4436
|
case d:
|
|
4437
|
-
|
|
4437
|
+
F = (Ne - K) / 6048e5;
|
|
4438
4438
|
break;
|
|
4439
4439
|
case l:
|
|
4440
|
-
|
|
4440
|
+
F = (Ne - K) / 864e5;
|
|
4441
4441
|
break;
|
|
4442
4442
|
case c:
|
|
4443
|
-
|
|
4443
|
+
F = Ne / a;
|
|
4444
4444
|
break;
|
|
4445
4445
|
case s:
|
|
4446
|
-
|
|
4446
|
+
F = Ne / t;
|
|
4447
4447
|
break;
|
|
4448
4448
|
case i:
|
|
4449
|
-
|
|
4449
|
+
F = Ne / r;
|
|
4450
4450
|
break;
|
|
4451
4451
|
default:
|
|
4452
|
-
|
|
4452
|
+
F = Ne;
|
|
4453
4453
|
}
|
|
4454
|
-
return S ?
|
|
4454
|
+
return S ? F : T.a(F);
|
|
4455
4455
|
}, M.daysInMonth = function() {
|
|
4456
4456
|
return this.endOf(u).$D;
|
|
4457
4457
|
}, M.$locale = function() {
|
|
@@ -4459,8 +4459,8 @@ var Hu = { exports: {} };
|
|
|
4459
4459
|
}, M.locale = function(N, D) {
|
|
4460
4460
|
if (!N)
|
|
4461
4461
|
return this.$L;
|
|
4462
|
-
var S = this.clone(),
|
|
4463
|
-
return
|
|
4462
|
+
var S = this.clone(), F = L(N, D, !0);
|
|
4463
|
+
return F && (S.$L = F), S;
|
|
4464
4464
|
}, M.clone = function() {
|
|
4465
4465
|
return T.w(this.$d, this);
|
|
4466
4466
|
}, M.toDate = function() {
|
|
@@ -4472,9 +4472,9 @@ var Hu = { exports: {} };
|
|
|
4472
4472
|
}, M.toString = function() {
|
|
4473
4473
|
return this.$d.toUTCString();
|
|
4474
4474
|
}, O;
|
|
4475
|
-
}(),
|
|
4476
|
-
return I.prototype =
|
|
4477
|
-
|
|
4475
|
+
}(), j = R.prototype;
|
|
4476
|
+
return I.prototype = j, [["$ms", o], ["$s", i], ["$m", s], ["$H", c], ["$W", l], ["$M", u], ["$y", h], ["$D", f]].forEach(function(O) {
|
|
4477
|
+
j[O[1]] = function(M) {
|
|
4478
4478
|
return this.$g(M, O[0], O[1]);
|
|
4479
4479
|
};
|
|
4480
4480
|
}), I.extend = function(O, M) {
|
|
@@ -4627,8 +4627,8 @@ function gs(e, n) {
|
|
|
4627
4627
|
const r = +$(e);
|
|
4628
4628
|
return pe(e, r + n);
|
|
4629
4629
|
}
|
|
4630
|
-
const Bu = 6048e5, Rv = 864e5, go = 6e4, mo = 36e5,
|
|
4631
|
-
function
|
|
4630
|
+
const Bu = 6048e5, Rv = 864e5, go = 6e4, mo = 36e5, jv = 1e3;
|
|
4631
|
+
function Fv(e, n) {
|
|
4632
4632
|
return gs(e, n * mo);
|
|
4633
4633
|
}
|
|
4634
4634
|
function Mi(e, n) {
|
|
@@ -5349,7 +5349,7 @@ function Tw(e, n, r) {
|
|
|
5349
5349
|
function Qt(e) {
|
|
5350
5350
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
5351
5351
|
}
|
|
5352
|
-
function
|
|
5352
|
+
function ja(e) {
|
|
5353
5353
|
if (!Qt(e) && typeof e != "number")
|
|
5354
5354
|
return !1;
|
|
5355
5355
|
const n = $(e);
|
|
@@ -5359,25 +5359,25 @@ const Nw = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Aw = /P+p+|P
|
|
|
5359
5359
|
function Kl(e, n, r) {
|
|
5360
5360
|
var t, a, o, i, s, c, l, d, u, p, h, f, m, b, y, v, k, E;
|
|
5361
5361
|
const C = Yr(), P = (a = (t = r == null ? void 0 : r.locale) != null ? t : C.locale) != null ? a : Uu, z = (p = (u = (c = (s = r == null ? void 0 : r.firstWeekContainsDate) != null ? s : (i = (o = r == null ? void 0 : r.locale) == null ? void 0 : o.options) == null ? void 0 : i.firstWeekContainsDate) != null ? c : C.firstWeekContainsDate) != null ? u : (d = (l = C.locale) == null ? void 0 : l.options) == null ? void 0 : d.firstWeekContainsDate) != null ? p : 1, W = (E = (k = (b = (m = r == null ? void 0 : r.weekStartsOn) != null ? m : (f = (h = r == null ? void 0 : r.locale) == null ? void 0 : h.options) == null ? void 0 : f.weekStartsOn) != null ? b : C.weekStartsOn) != null ? k : (v = (y = C.locale) == null ? void 0 : y.options) == null ? void 0 : v.weekStartsOn) != null ? E : 0, L = $(e);
|
|
5362
|
-
if (!
|
|
5362
|
+
if (!ja(L))
|
|
5363
5363
|
throw new RangeError("Invalid time value");
|
|
5364
5364
|
let I = n.match(Aw).map((R) => {
|
|
5365
|
-
const
|
|
5366
|
-
if (
|
|
5367
|
-
const O = Ra[
|
|
5365
|
+
const j = R[0];
|
|
5366
|
+
if (j === "p" || j === "P") {
|
|
5367
|
+
const O = Ra[j];
|
|
5368
5368
|
return O(R, P.formatLong);
|
|
5369
5369
|
}
|
|
5370
5370
|
return R;
|
|
5371
5371
|
}).join("").match(Nw).map((R) => {
|
|
5372
5372
|
if (R === "''")
|
|
5373
5373
|
return { isToken: !1, value: "'" };
|
|
5374
|
-
const
|
|
5375
|
-
if (
|
|
5374
|
+
const j = R[0];
|
|
5375
|
+
if (j === "'")
|
|
5376
5376
|
return { isToken: !1, value: Lw(R) };
|
|
5377
|
-
if (Gl[
|
|
5377
|
+
if (Gl[j])
|
|
5378
5378
|
return { isToken: !0, value: R };
|
|
5379
|
-
if (
|
|
5380
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" +
|
|
5379
|
+
if (j.match(Ow))
|
|
5380
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + j + "`");
|
|
5381
5381
|
return { isToken: !1, value: R };
|
|
5382
5382
|
});
|
|
5383
5383
|
P.localize.preprocessor && (I = P.localize.preprocessor(L, I));
|
|
@@ -5385,10 +5385,10 @@ function Kl(e, n, r) {
|
|
|
5385
5385
|
return I.map((R) => {
|
|
5386
5386
|
if (!R.isToken)
|
|
5387
5387
|
return R.value;
|
|
5388
|
-
const
|
|
5389
|
-
(!(r != null && r.useAdditionalWeekYearTokens) && Xu(
|
|
5390
|
-
const O = Gl[
|
|
5391
|
-
return O(L,
|
|
5388
|
+
const j = R.value;
|
|
5389
|
+
(!(r != null && r.useAdditionalWeekYearTokens) && Xu(j) || !(r != null && r.useAdditionalDayOfYearTokens) && Vu(j)) && Ti(j, n, String(e));
|
|
5390
|
+
const O = Gl[j[0]];
|
|
5391
|
+
return O(L, j, P.localize, T);
|
|
5392
5392
|
}).join("");
|
|
5393
5393
|
}
|
|
5394
5394
|
function Lw(e) {
|
|
@@ -5431,11 +5431,11 @@ function Rw(e, n) {
|
|
|
5431
5431
|
const r = $(e), t = $(n);
|
|
5432
5432
|
return +r == +t;
|
|
5433
5433
|
}
|
|
5434
|
-
function
|
|
5434
|
+
function jw(e, n) {
|
|
5435
5435
|
const r = Ir(e), t = Ir(n);
|
|
5436
5436
|
return +r == +t;
|
|
5437
5437
|
}
|
|
5438
|
-
function
|
|
5438
|
+
function Fw(e, n) {
|
|
5439
5439
|
const r = $(e), t = $(n);
|
|
5440
5440
|
return r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth();
|
|
5441
5441
|
}
|
|
@@ -5587,7 +5587,7 @@ function Nt(e, n) {
|
|
|
5587
5587
|
if (r[0] === "Z")
|
|
5588
5588
|
return { value: 0, rest: n.slice(1) };
|
|
5589
5589
|
const t = r[1] === "+" ? 1 : -1, a = r[2] ? parseInt(r[2], 10) : 0, o = r[3] ? parseInt(r[3], 10) : 0, i = r[5] ? parseInt(r[5], 10) : 0;
|
|
5590
|
-
return { value: t * (a * mo + o * go + i *
|
|
5590
|
+
return { value: t * (a * mo + o * go + i * jv), rest: n.slice(r[0].length) };
|
|
5591
5591
|
}
|
|
5592
5592
|
function Ku(e) {
|
|
5593
5593
|
return ve(_e.anyDigitsSigned, e);
|
|
@@ -6353,24 +6353,24 @@ function Go(e, n, r, t) {
|
|
|
6353
6353
|
const I = { firstWeekContainsDate: W, weekStartsOn: L, locale: z }, T = [new qw()], R = n.match(Ex).map((D) => {
|
|
6354
6354
|
const S = D[0];
|
|
6355
6355
|
if (S in Ra) {
|
|
6356
|
-
const
|
|
6357
|
-
return
|
|
6356
|
+
const F = Ra[S];
|
|
6357
|
+
return F(D, z.formatLong);
|
|
6358
6358
|
}
|
|
6359
6359
|
return D;
|
|
6360
|
-
}).join("").match(Ax),
|
|
6360
|
+
}).join("").match(Ax), j = [];
|
|
6361
6361
|
for (let D of R) {
|
|
6362
6362
|
!(t != null && t.useAdditionalWeekYearTokens) && Xu(D) && Ti(D, n, e), !(t != null && t.useAdditionalDayOfYearTokens) && Vu(D) && Ti(D, n, e);
|
|
6363
|
-
const S = D[0],
|
|
6364
|
-
if (
|
|
6365
|
-
const { incompatibleTokens: G } =
|
|
6363
|
+
const S = D[0], F = Nx[S];
|
|
6364
|
+
if (F) {
|
|
6365
|
+
const { incompatibleTokens: G } = F;
|
|
6366
6366
|
if (Array.isArray(G)) {
|
|
6367
|
-
const fe =
|
|
6367
|
+
const fe = j.find((K) => G.includes(K.token) || K.token === S);
|
|
6368
6368
|
if (fe)
|
|
6369
6369
|
throw new RangeError(`The format string mustn't contain \`${fe.fullToken}\` and \`${D}\` at the same time`);
|
|
6370
|
-
} else if (
|
|
6370
|
+
} else if (F.incompatibleTokens === "*" && j.length > 0)
|
|
6371
6371
|
throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);
|
|
6372
|
-
|
|
6373
|
-
const Z =
|
|
6372
|
+
j.push({ token: S, fullToken: D });
|
|
6373
|
+
const Z = F.run(e, D, z.match, I);
|
|
6374
6374
|
if (!Z)
|
|
6375
6375
|
return pe(r, NaN);
|
|
6376
6376
|
T.push(Z.setter), e = Z.rest;
|
|
@@ -6385,7 +6385,7 @@ function Go(e, n, r, t) {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
if (e.length > 0 && Lx.test(e))
|
|
6387
6387
|
return pe(r, NaN);
|
|
6388
|
-
const O = T.map((D) => D.priority).sort((D, S) => S - D).filter((D, S,
|
|
6388
|
+
const O = T.map((D) => D.priority).sort((D, S) => S - D).filter((D, S, F) => F.indexOf(D) === S).map((D) => T.filter((S) => S.priority === D).sort((S, F) => F.subPriority - S.subPriority)).map((D) => D[0]);
|
|
6389
6389
|
let M = $(r);
|
|
6390
6390
|
if (isNaN(M.getTime()))
|
|
6391
6391
|
return pe(r, NaN);
|
|
@@ -6401,7 +6401,7 @@ function Go(e, n, r, t) {
|
|
|
6401
6401
|
function Rx(e) {
|
|
6402
6402
|
return e.match(Ix)[1].replace(Ox, "'");
|
|
6403
6403
|
}
|
|
6404
|
-
function
|
|
6404
|
+
function jx(e, n) {
|
|
6405
6405
|
const r = Wx(e);
|
|
6406
6406
|
let t;
|
|
6407
6407
|
if (r.date) {
|
|
@@ -6423,7 +6423,7 @@ function Fx(e, n) {
|
|
|
6423
6423
|
}
|
|
6424
6424
|
return new Date(a + o + i);
|
|
6425
6425
|
}
|
|
6426
|
-
const aa = { dateTimeDelimiter: /[T ]/, timeZoneDelimiter: /[Z ]/i, timezone: /([Z+-].*)$/ },
|
|
6426
|
+
const aa = { dateTimeDelimiter: /[T ]/, timeZoneDelimiter: /[Z ]/i, timezone: /([Z+-].*)$/ }, Fx = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Yx = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, zx = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
6427
6427
|
function Wx(e) {
|
|
6428
6428
|
const n = {}, r = e.split(aa.dateTimeDelimiter);
|
|
6429
6429
|
let t;
|
|
@@ -6445,7 +6445,7 @@ function Hx(e, n) {
|
|
|
6445
6445
|
function Bx(e, n) {
|
|
6446
6446
|
if (n === null)
|
|
6447
6447
|
return /* @__PURE__ */ new Date(NaN);
|
|
6448
|
-
const r = e.match(
|
|
6448
|
+
const r = e.match(Fx);
|
|
6449
6449
|
if (!r)
|
|
6450
6450
|
return /* @__PURE__ */ new Date(NaN);
|
|
6451
6451
|
const t = !!r[4], a = Dn(r[1]), o = Dn(r[2]) - 1, i = Dn(r[3]), s = Dn(r[4]), c = Dn(r[5]) - 1;
|
|
@@ -6566,7 +6566,7 @@ function Cn(e) {
|
|
|
6566
6566
|
function r1(e) {
|
|
6567
6567
|
return ip(e).getComputedStyle(e);
|
|
6568
6568
|
}
|
|
6569
|
-
const an = Math.min, Tr = Math.max,
|
|
6569
|
+
const an = Math.min, Tr = Math.max, Fa = Math.round, oa = Math.floor, dr = (e) => ({ x: e, y: e }), n1 = { left: "right", right: "left", bottom: "top", top: "bottom" }, a1 = { start: "end", end: "start" };
|
|
6570
6570
|
function o1(e, n, r) {
|
|
6571
6571
|
return Tr(e, an(n, r));
|
|
6572
6572
|
}
|
|
@@ -6690,7 +6690,7 @@ const f1 = (e) => ({ name: "arrow", options: e, fn(n) {
|
|
|
6690
6690
|
const u = sp(d), p = { x: r, y: t }, h = _s(a), f = xs(h), m = yield i.getDimensions(l), b = h === "y", y = b ? "top" : "left", v = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", E = o.reference[f] + o.reference[h] - p[h] - o.floating[f], C = p[h] - o.reference[h], P = yield i.getOffsetParent == null ? void 0 : i.getOffsetParent(l);
|
|
6691
6691
|
let z = P ? P[k] : 0;
|
|
6692
6692
|
(!z || !(yield i.isElement == null ? void 0 : i.isElement(P))) && (z = s.floating[k] || o.floating[f]);
|
|
6693
|
-
const W = E / 2 - C / 2, L = z / 2 - m[f] / 2 - 1, I = an(u[y], L), T = an(u[v], L), R = I,
|
|
6693
|
+
const W = E / 2 - C / 2, L = z / 2 - m[f] / 2 - 1, I = an(u[y], L), T = an(u[v], L), R = I, j = z - m[f] - T, O = z / 2 - m[f] / 2 + W, M = o1(R, O, j), N = !c.arrow && $n(a) != null && O !== M && o.reference[f] / 2 - (O < R ? I : T) - m[f] / 2 < 0, D = N ? O < R ? O - R : O - j : 0;
|
|
6694
6694
|
return { [h]: p[h] + D, data: x({ [h]: M, centerOffset: O - M - D }, N && { alignmentOffset: D }), reset: N };
|
|
6695
6695
|
});
|
|
6696
6696
|
} }), g1 = function(e) {
|
|
@@ -6705,20 +6705,20 @@ const f1 = (e) => ({ name: "arrow", options: e, fn(n) {
|
|
|
6705
6705
|
const P = [s, ...C], z = yield h1(n, y), W = [];
|
|
6706
6706
|
let L = ((t = o.flip) == null ? void 0 : t.overflows) || [];
|
|
6707
6707
|
if (u && W.push(z[v]), p) {
|
|
6708
|
-
const
|
|
6709
|
-
W.push(z[
|
|
6708
|
+
const j = s1(a, i, E);
|
|
6709
|
+
W.push(z[j[0]], z[j[1]]);
|
|
6710
6710
|
}
|
|
6711
|
-
if (L = [...L, { placement: a, overflows: W }], !W.every((
|
|
6711
|
+
if (L = [...L, { placement: a, overflows: W }], !W.every((j) => j <= 0)) {
|
|
6712
6712
|
var I, T;
|
|
6713
|
-
const
|
|
6713
|
+
const j = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, O = P[j];
|
|
6714
6714
|
if (O)
|
|
6715
|
-
return { data: { index:
|
|
6715
|
+
return { data: { index: j, overflows: L }, reset: { placement: O } };
|
|
6716
6716
|
let M = (T = L.filter((N) => N.overflows[0] <= 0).sort((N, D) => N.overflows[1] - D.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
6717
6717
|
if (!M)
|
|
6718
6718
|
switch (f) {
|
|
6719
6719
|
case "bestFit": {
|
|
6720
6720
|
var R;
|
|
6721
|
-
const N = (R = L.map((D) => [D.placement, D.overflows.filter((S) => S > 0).reduce((S,
|
|
6721
|
+
const N = (R = L.map((D) => [D.placement, D.overflows.filter((S) => S > 0).reduce((S, F) => S + F, 0)]).sort((D, S) => D[1] - S[1])[0]) == null ? void 0 : R[0];
|
|
6722
6722
|
N && (M = N);
|
|
6723
6723
|
break;
|
|
6724
6724
|
}
|
|
@@ -6820,16 +6820,16 @@ function cp(e) {
|
|
|
6820
6820
|
const n = ur(e);
|
|
6821
6821
|
return sn(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : Lt(n) && qn(n) ? n : cp(n);
|
|
6822
6822
|
}
|
|
6823
|
-
function
|
|
6823
|
+
function jn(e, n, r) {
|
|
6824
6824
|
var t;
|
|
6825
6825
|
n === void 0 && (n = []), r === void 0 && (r = !0);
|
|
6826
6826
|
const a = cp(e), o = a === ((t = e.ownerDocument) == null ? void 0 : t.body), i = nt(a);
|
|
6827
|
-
return o ? n.concat(i, i.visualViewport || [], qn(a) ? a : [], i.frameElement && r ?
|
|
6827
|
+
return o ? n.concat(i, i.visualViewport || [], qn(a) ? a : [], i.frameElement && r ? jn(i.frameElement) : []) : n.concat(a, jn(a, [], r));
|
|
6828
6828
|
}
|
|
6829
6829
|
function dp(e) {
|
|
6830
6830
|
const n = _t(e);
|
|
6831
6831
|
let r = parseFloat(n.width) || 0, t = parseFloat(n.height) || 0;
|
|
6832
|
-
const a = Lt(e), o = a ? e.offsetWidth : r, i = a ? e.offsetHeight : t, s =
|
|
6832
|
+
const a = Lt(e), o = a ? e.offsetWidth : r, i = a ? e.offsetHeight : t, s = Fa(r) !== o || Fa(t) !== i;
|
|
6833
6833
|
return s && (r = o, t = i), { width: r, height: t, $: s };
|
|
6834
6834
|
}
|
|
6835
6835
|
function Cs(e) {
|
|
@@ -6840,7 +6840,7 @@ function Gr(e) {
|
|
|
6840
6840
|
if (!Lt(n))
|
|
6841
6841
|
return dr(1);
|
|
6842
6842
|
const r = n.getBoundingClientRect(), { width: t, height: a, $: o } = dp(n);
|
|
6843
|
-
let i = (o ?
|
|
6843
|
+
let i = (o ? Fa(r.width) : r.width) / t, s = (o ? Fa(r.height) : r.height) / a;
|
|
6844
6844
|
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), { x: i, y: s };
|
|
6845
6845
|
}
|
|
6846
6846
|
const w1 = /* @__PURE__ */ dr(0);
|
|
@@ -6939,7 +6939,7 @@ function T1(e, n) {
|
|
|
6939
6939
|
const r = n.get(e);
|
|
6940
6940
|
if (r)
|
|
6941
6941
|
return r;
|
|
6942
|
-
let t =
|
|
6942
|
+
let t = jn(e, [], !1).filter((s) => Ot(s) && pn(s) !== "body"), a = null;
|
|
6943
6943
|
const o = _t(e).position === "fixed";
|
|
6944
6944
|
let i = o ? ur(e) : e;
|
|
6945
6945
|
for (; Ot(i) && !sn(i); ) {
|
|
@@ -7046,7 +7046,7 @@ function P1(e, n) {
|
|
|
7046
7046
|
}
|
|
7047
7047
|
function R1(e, n, r, t) {
|
|
7048
7048
|
t === void 0 && (t = {});
|
|
7049
|
-
const { ancestorScroll: a = !0, ancestorResize: o = !0, elementResize: i = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = t, l = Cs(e), d = a || o ? [...l ?
|
|
7049
|
+
const { ancestorScroll: a = !0, ancestorResize: o = !0, elementResize: i = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = t, l = Cs(e), d = a || o ? [...l ? jn(l) : [], ...jn(n)] : [];
|
|
7050
7050
|
d.forEach((y) => {
|
|
7051
7051
|
a && y.addEventListener("scroll", r, { passive: !0 }), o && y.addEventListener("resize", r);
|
|
7052
7052
|
});
|
|
@@ -7072,7 +7072,7 @@ function R1(e, n, r, t) {
|
|
|
7072
7072
|
}), u == null || u(), (y = h) == null || y.disconnect(), h = null, c && cancelAnimationFrame(f);
|
|
7073
7073
|
};
|
|
7074
7074
|
}
|
|
7075
|
-
const
|
|
7075
|
+
const j1 = b1, F1 = g1, lc = f1, Y1 = (e, n, r) => {
|
|
7076
7076
|
const t = /* @__PURE__ */ new Map(), a = x({ platform: L1 }, r), o = _(x({}, a.platform), { _c: t });
|
|
7077
7077
|
return p1(e, n, _(x({}, a), { platform: o }));
|
|
7078
7078
|
};
|
|
@@ -7134,18 +7134,18 @@ function z1(e) {
|
|
|
7134
7134
|
return;
|
|
7135
7135
|
const D = { placement: n, strategy: r, middleware: p };
|
|
7136
7136
|
T.current && (D.platform = T.current), Y1(P.current, z.current, D).then((S) => {
|
|
7137
|
-
const
|
|
7138
|
-
|
|
7139
|
-
u(
|
|
7137
|
+
const F = _(x({}, S), { isPositioned: !0 });
|
|
7138
|
+
j.current && !Wa(W.current, F) && (W.current = F, dg(() => {
|
|
7139
|
+
u(F);
|
|
7140
7140
|
}));
|
|
7141
7141
|
});
|
|
7142
7142
|
}, [p, n, r, T]);
|
|
7143
7143
|
ga(() => {
|
|
7144
7144
|
l === !1 && W.current.isPositioned && (W.current.isPositioned = !1, u((D) => _(x({}, D), { isPositioned: !1 })));
|
|
7145
7145
|
}, [l]);
|
|
7146
|
-
const
|
|
7147
|
-
ga(() => (
|
|
7148
|
-
|
|
7146
|
+
const j = ge(!1);
|
|
7147
|
+
ga(() => (j.current = !0, () => {
|
|
7148
|
+
j.current = !1;
|
|
7149
7149
|
}), []), ga(() => {
|
|
7150
7150
|
if (E && (P.current = E), C && (z.current = C), E && C) {
|
|
7151
7151
|
if (I.current)
|
|
@@ -7157,8 +7157,8 @@ function z1(e) {
|
|
|
7157
7157
|
const D = { position: r, left: 0, top: 0 };
|
|
7158
7158
|
if (!M.floating)
|
|
7159
7159
|
return D;
|
|
7160
|
-
const S = cc(M.floating, d.x),
|
|
7161
|
-
return s ? x(_(x({}, D), { transform: "translate(" + S + "px, " +
|
|
7160
|
+
const S = cc(M.floating, d.x), F = cc(M.floating, d.y);
|
|
7161
|
+
return s ? x(_(x({}, D), { transform: "translate(" + S + "px, " + F + "px)" }), gp(M.floating) >= 1.5 && { willChange: "transform" }) : { position: r, left: S, top: F };
|
|
7162
7162
|
}, [r, s, M.floating, d.x, d.y]);
|
|
7163
7163
|
return X(() => _(x({}, d), { update: R, refs: O, elements: M, floatingStyles: N }), [d, R, O, M, N]);
|
|
7164
7164
|
}
|
|
@@ -7170,7 +7170,7 @@ const W1 = (e) => {
|
|
|
7170
7170
|
const { element: t, padding: a } = typeof e == "function" ? e(r) : e;
|
|
7171
7171
|
return t && n(t) ? t.current != null ? lc({ element: t.current, padding: a }).fn(r) : {} : t ? lc({ element: t, padding: a }).fn(r) : {};
|
|
7172
7172
|
} };
|
|
7173
|
-
}, H1 = (e, n) => _(x({},
|
|
7173
|
+
}, H1 = (e, n) => _(x({}, j1(e)), { options: [e, n] }), B1 = (e, n) => _(x({}, F1(e)), { options: [e, n] }), $1 = (e, n) => _(x({}, W1(e)), { options: [e, n] }), mp = x({}, kh), q1 = mp.useInsertionEffect, U1 = q1 || ((e) => e());
|
|
7174
7174
|
function Q1(e) {
|
|
7175
7175
|
const n = ge(() => {
|
|
7176
7176
|
if (process.env.NODE_ENV !== "production")
|
|
@@ -7210,24 +7210,24 @@ function G1() {
|
|
|
7210
7210
|
}, []), e;
|
|
7211
7211
|
}
|
|
7212
7212
|
const V1 = mp.useId, bp = V1 || G1;
|
|
7213
|
-
let
|
|
7214
|
-
process.env.NODE_ENV !== "production" && (
|
|
7213
|
+
let Fn;
|
|
7214
|
+
process.env.NODE_ENV !== "production" && (Fn = /* @__PURE__ */ new Set());
|
|
7215
7215
|
function X1() {
|
|
7216
7216
|
for (var e, n = arguments.length, r = new Array(n), t = 0; t < n; t++)
|
|
7217
7217
|
r[t] = arguments[t];
|
|
7218
7218
|
const a = "Floating UI: " + r.join(" ");
|
|
7219
|
-
if (!((e =
|
|
7219
|
+
if (!((e = Fn) != null && e.has(a))) {
|
|
7220
7220
|
var o;
|
|
7221
|
-
(o =
|
|
7221
|
+
(o = Fn) == null || o.add(a), console.warn(a);
|
|
7222
7222
|
}
|
|
7223
7223
|
}
|
|
7224
7224
|
function J1() {
|
|
7225
7225
|
for (var e, n = arguments.length, r = new Array(n), t = 0; t < n; t++)
|
|
7226
7226
|
r[t] = arguments[t];
|
|
7227
7227
|
const a = "Floating UI: " + r.join(" ");
|
|
7228
|
-
if (!((e =
|
|
7228
|
+
if (!((e = Fn) != null && e.has(a))) {
|
|
7229
7229
|
var o;
|
|
7230
|
-
(o =
|
|
7230
|
+
(o = Fn) == null || o.add(a), console.error(a);
|
|
7231
7231
|
}
|
|
7232
7232
|
}
|
|
7233
7233
|
const K1 = /* @__PURE__ */ Qa(function(e, n) {
|
|
@@ -7238,11 +7238,11 @@ const K1 = /* @__PURE__ */ Qa(function(e, n) {
|
|
|
7238
7238
|
a && r1(a).direction === "rtl" && E(!0);
|
|
7239
7239
|
}, [a]), !a)
|
|
7240
7240
|
return null;
|
|
7241
|
-
const C = l * 2, P = C / 2, z = i / 2 * (c / -8 + 1), W = s / 2 * c / 4, [L, I] = t.split("-"), T = !!p, R = L === "top" || L === "bottom",
|
|
7241
|
+
const C = l * 2, P = C / 2, z = i / 2 * (c / -8 + 1), W = s / 2 * c / 4, [L, I] = t.split("-"), T = !!p, R = L === "top" || L === "bottom", j = d && I === "end" ? "bottom" : "top";
|
|
7242
7242
|
let O = d && I === "end" ? "right" : "left";
|
|
7243
7243
|
d && k && (O = I === "end" ? "left" : "right");
|
|
7244
7244
|
const M = (o == null ? void 0 : o.x) != null ? d || o.x : "", N = (o == null ? void 0 : o.y) != null ? d || o.y : "", D = p || "M0,0" + (" H" + i) + (" L" + (i - z) + "," + (s - W)) + (" Q" + i / 2 + "," + s + " " + z + "," + (s - W)) + " Z", S = { top: T ? "rotate(180deg)" : "", left: T ? "rotate(90deg)" : "rotate(-90deg)", bottom: T ? "" : "rotate(180deg)", right: T ? "rotate(-90deg)" : "rotate(90deg)" }[L];
|
|
7245
|
-
return /* @__PURE__ */ Bt("svg", Ii({}, y, { "aria-hidden": !0, ref: n, width: T ? i : i + C, height: i, viewBox: "0 0 " + i + " " + (s > i ? s : i), style: x({ position: "absolute", pointerEvents: "none", [O]: M, [
|
|
7245
|
+
return /* @__PURE__ */ Bt("svg", Ii({}, y, { "aria-hidden": !0, ref: n, width: T ? i : i + C, height: i, viewBox: "0 0 " + i + " " + (s > i ? s : i), style: x({ position: "absolute", pointerEvents: "none", [O]: M, [j]: N, [L]: R || T ? "100%" : "calc(100% - " + C / 2 + "px)", transform: "" + S + (m ?? "") }, b) }), C > 0 && /* @__PURE__ */ Bt("path", { clipPath: "url(#" + v + ")", fill: "none", stroke: u, strokeWidth: C + (p ? 0 : 1), d: D }), /* @__PURE__ */ Bt("path", { stroke: C && !p ? y.fill : "none", d: D }), /* @__PURE__ */ Bt("clipPath", { id: v }, /* @__PURE__ */ Bt("rect", { x: -P, y: P * (T ? -1 : 1), width: i + C, height: i })));
|
|
7246
7246
|
});
|
|
7247
7247
|
function ek() {
|
|
7248
7248
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -7345,7 +7345,7 @@ var Un = 12, lk = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
|
7345
7345
|
function he(e) {
|
|
7346
7346
|
if (e == null)
|
|
7347
7347
|
return /* @__PURE__ */ new Date();
|
|
7348
|
-
var n = typeof e == "string" ?
|
|
7348
|
+
var n = typeof e == "string" ? jx(e) : $(e);
|
|
7349
7349
|
return Ht(n) ? n : /* @__PURE__ */ new Date();
|
|
7350
7350
|
}
|
|
7351
7351
|
function ck(e, n, r, t, a) {
|
|
@@ -7371,7 +7371,7 @@ function ck(e, n, r, t, a) {
|
|
|
7371
7371
|
return Ht(i) && c ? i : null;
|
|
7372
7372
|
}
|
|
7373
7373
|
function Ht(e, n) {
|
|
7374
|
-
return
|
|
7374
|
+
return ja(e) && !Or(e, n ?? /* @__PURE__ */ new Date("1/1/1800"));
|
|
7375
7375
|
}
|
|
7376
7376
|
function me(e, n, r) {
|
|
7377
7377
|
if (r === "en")
|
|
@@ -7441,13 +7441,13 @@ function Mt(e, n) {
|
|
|
7441
7441
|
return e && n ? zw(e, n) : !e && !n;
|
|
7442
7442
|
}
|
|
7443
7443
|
function Ze(e, n) {
|
|
7444
|
-
return e && n ?
|
|
7444
|
+
return e && n ? Fw(e, n) : !e && !n;
|
|
7445
7445
|
}
|
|
7446
7446
|
function Ba(e, n) {
|
|
7447
7447
|
return e && n ? Yw(e, n) : !e && !n;
|
|
7448
7448
|
}
|
|
7449
7449
|
function oe(e, n) {
|
|
7450
|
-
return e && n ?
|
|
7450
|
+
return e && n ? jw(e, n) : !e && !n;
|
|
7451
7451
|
}
|
|
7452
7452
|
function Dr(e, n) {
|
|
7453
7453
|
return e && n ? Rw(e, n) : !e && !n;
|
|
@@ -7544,7 +7544,7 @@ function ei(e, n) {
|
|
|
7544
7544
|
}) || s && !s(he(e)) || !1;
|
|
7545
7545
|
}
|
|
7546
7546
|
function ti(e, n, r) {
|
|
7547
|
-
if (!n || !r || !
|
|
7547
|
+
if (!n || !r || !ja(n) || !ja(r))
|
|
7548
7548
|
return !1;
|
|
7549
7549
|
var t = te(n), a = te(r);
|
|
7550
7550
|
return t <= e && a >= e;
|
|
@@ -7701,7 +7701,7 @@ function Sk(e, n) {
|
|
|
7701
7701
|
function Ck(e, n, r, t, a) {
|
|
7702
7702
|
for (var o = a.length, i = [], s = 0; s < o; s++) {
|
|
7703
7703
|
var c = e, l = a[s];
|
|
7704
|
-
l && (c =
|
|
7704
|
+
l && (c = Fv(c, Et(l)), c = Mi(c, It(l)), c = Yv(c, Zt(l)));
|
|
7705
7705
|
var d = Mi(e, (r + 1) * t);
|
|
7706
7706
|
cr(c, n) && Or(c, d) && l != null && i.push(l);
|
|
7707
7707
|
}
|
|
@@ -8077,25 +8077,25 @@ var Lk = (
|
|
|
8077
8077
|
var i, s = r.props, c = s.selected, l = s.preSelection, d = s.setPreSelection, u = s.minDate, p = s.maxDate, h = s.showFourColumnMonthYearPicker, f = s.showTwoColumnMonthYearPicker;
|
|
8078
8078
|
if (l) {
|
|
8079
8079
|
var m = Tc(h, f), b = r.getVerticalOffset(m), y = (i = ni[m]) === null || i === void 0 ? void 0 : i.grid, v = function(z, W, L) {
|
|
8080
|
-
var I, T, R = W,
|
|
8080
|
+
var I, T, R = W, j = L;
|
|
8081
8081
|
switch (z) {
|
|
8082
8082
|
case H.ArrowRight:
|
|
8083
|
-
R = kt(W, ia),
|
|
8083
|
+
R = kt(W, ia), j = L === 11 ? 0 : L + ia;
|
|
8084
8084
|
break;
|
|
8085
8085
|
case H.ArrowLeft:
|
|
8086
|
-
R = rn(W, ia),
|
|
8086
|
+
R = rn(W, ia), j = L === 0 ? 11 : L - ia;
|
|
8087
8087
|
break;
|
|
8088
8088
|
case H.ArrowUp:
|
|
8089
|
-
R = rn(W, b),
|
|
8089
|
+
R = rn(W, b), j = !((I = y == null ? void 0 : y[0]) === null || I === void 0) && I.includes(L) ? L + 12 - b : L - b;
|
|
8090
8090
|
break;
|
|
8091
8091
|
case H.ArrowDown:
|
|
8092
|
-
R = kt(W, b),
|
|
8092
|
+
R = kt(W, b), j = !((T = y == null ? void 0 : y[y.length - 1]) === null || T === void 0) && T.includes(L) ? L - 12 + b : L + b;
|
|
8093
8093
|
break;
|
|
8094
8094
|
}
|
|
8095
|
-
return { newCalculatedDate: R, newCalculatedMonth:
|
|
8095
|
+
return { newCalculatedDate: R, newCalculatedMonth: j };
|
|
8096
8096
|
}, k = function(z, W, L) {
|
|
8097
|
-
for (var I = 40, T = z, R = !1,
|
|
8098
|
-
if (
|
|
8097
|
+
for (var I = 40, T = z, R = !1, j = 0, O = v(T, W, L), M = O.newCalculatedDate, N = O.newCalculatedMonth; !R; ) {
|
|
8098
|
+
if (j >= I) {
|
|
8099
8099
|
M = W, N = L;
|
|
8100
8100
|
break;
|
|
8101
8101
|
}
|
|
@@ -8114,7 +8114,7 @@ var Lk = (
|
|
|
8114
8114
|
M = D.newCalculatedDate, N = D.newCalculatedMonth;
|
|
8115
8115
|
} else
|
|
8116
8116
|
R = !0;
|
|
8117
|
-
|
|
8117
|
+
j++;
|
|
8118
8118
|
}
|
|
8119
8119
|
return { newCalculatedDate: M, newCalculatedMonth: N };
|
|
8120
8120
|
};
|
|
@@ -8262,7 +8262,7 @@ var Lk = (
|
|
|
8262
8262
|
return A.createElement("div", { className: "react-datepicker__month-dropdown" }, this.renderOptions());
|
|
8263
8263
|
}, n;
|
|
8264
8264
|
}(Ae)
|
|
8265
|
-
), Rk = fo(Pk),
|
|
8265
|
+
), Rk = fo(Pk), jk = (
|
|
8266
8266
|
/** @class */
|
|
8267
8267
|
function(e) {
|
|
8268
8268
|
Le(n, e);
|
|
@@ -8307,7 +8307,7 @@ var Lk = (
|
|
|
8307
8307
|
}, n;
|
|
8308
8308
|
}(Ae)
|
|
8309
8309
|
);
|
|
8310
|
-
function
|
|
8310
|
+
function Fk(e, n) {
|
|
8311
8311
|
for (var r = [], t = sr(e), a = sr(n); !cr(t, a); )
|
|
8312
8312
|
r.push(he(t)), t = kt(t, 1);
|
|
8313
8313
|
return r;
|
|
@@ -8327,7 +8327,7 @@ var Yk = (
|
|
|
8327
8327
|
return t.props.onChange(a);
|
|
8328
8328
|
}, t.handleClickOutside = function() {
|
|
8329
8329
|
t.props.onCancel();
|
|
8330
|
-
}, t.state = { monthYearsList:
|
|
8330
|
+
}, t.state = { monthYearsList: Fk(t.props.minDate, t.props.maxDate) }, t;
|
|
8331
8331
|
}
|
|
8332
8332
|
return n.prototype.render = function() {
|
|
8333
8333
|
var r = Me({ "react-datepicker__month-year-dropdown": !0, "react-datepicker__month-year-dropdown--scrollable": this.props.scrollableMonthYearDropdown });
|
|
@@ -8846,7 +8846,7 @@ var qk = (
|
|
|
8846
8846
|
return A.createElement(Qk, se({}, n.defaultProps, t.props, { date: t.state.date, onChange: t.changeYear, year: te(t.state.date) }));
|
|
8847
8847
|
}, t.renderMonthDropdown = function(a) {
|
|
8848
8848
|
if (a === void 0 && (a = !1), !(!t.props.showMonthDropdown || a))
|
|
8849
|
-
return A.createElement(
|
|
8849
|
+
return A.createElement(jk, se({}, n.defaultProps, t.props, { month: Ge(t.state.date), onChange: t.changeMonth }));
|
|
8850
8850
|
}, t.renderMonthYearDropdown = function(a) {
|
|
8851
8851
|
if (a === void 0 && (a = !1), !(!t.props.showMonthYearDropdown || a))
|
|
8852
8852
|
return A.createElement(Wk, se({}, n.defaultProps, t.props, { date: t.state.date, onChange: t.changeMonthYear }));
|
|
@@ -9192,9 +9192,9 @@ var ai = "Date input not valid.", o_ = (
|
|
|
9192
9192
|
}, t.onDayKeyDown = function(a) {
|
|
9193
9193
|
var o, i, s, c, l = t.props, d = l.minDate, u = l.maxDate, p = l.disabledKeyboardNavigation, h = l.showWeekPicker, f = l.shouldCloseOnSelect, m = l.locale, b = l.calendarStartDay, y = l.adjustDateOnChange, v = l.inline;
|
|
9194
9194
|
if ((i = (o = t.props).onKeyDown) === null || i === void 0 || i.call(o, a), !p) {
|
|
9195
|
-
var k = a.key, E = a.shiftKey, C = he(t.state.preSelection), P = function(
|
|
9195
|
+
var k = a.key, E = a.shiftKey, C = he(t.state.preSelection), P = function(j, O) {
|
|
9196
9196
|
var M = O;
|
|
9197
|
-
switch (
|
|
9197
|
+
switch (j) {
|
|
9198
9198
|
case H.ArrowRight:
|
|
9199
9199
|
M = h ? Ea(O, 1) : mr(O, 1);
|
|
9200
9200
|
break;
|
|
@@ -9221,15 +9221,15 @@ var ai = "Date input not valid.", o_ = (
|
|
|
9221
9221
|
break;
|
|
9222
9222
|
}
|
|
9223
9223
|
return M;
|
|
9224
|
-
}, z = function(
|
|
9225
|
-
for (var M = 40, N =
|
|
9224
|
+
}, z = function(j, O) {
|
|
9225
|
+
for (var M = 40, N = j, D = !1, S = 0, F = P(j, O); !D; ) {
|
|
9226
9226
|
if (S >= M) {
|
|
9227
|
-
|
|
9227
|
+
F = O;
|
|
9228
9228
|
break;
|
|
9229
9229
|
}
|
|
9230
|
-
d &&
|
|
9230
|
+
d && F < d && (N = H.ArrowRight, F = nr(d, t.props) ? P(N, F) : d), u && F > u && (N = H.ArrowLeft, F = nr(u, t.props) ? P(N, F) : u), nr(F, t.props) ? ((N === H.PageUp || N === H.Home) && (N = H.ArrowRight), (N === H.PageDown || N === H.End) && (N = H.ArrowLeft), F = P(N, F)) : D = !0, S++;
|
|
9231
9231
|
}
|
|
9232
|
-
return
|
|
9232
|
+
return F;
|
|
9233
9233
|
};
|
|
9234
9234
|
if (k === H.Enter) {
|
|
9235
9235
|
a.preventDefault(), t.handleSelect(C, a), !f && t.setPreSelection(C);
|
|
@@ -9767,7 +9767,7 @@ const Lc = (e) => {
|
|
|
9767
9767
|
return ce(() => {
|
|
9768
9768
|
if (!l)
|
|
9769
9769
|
return;
|
|
9770
|
-
const d = n.dataSource ?
|
|
9770
|
+
const d = n.dataSource ? Fi(n.dataSource) : r;
|
|
9771
9771
|
Hi({ dataSource: d, measures: [Sh(n), Ch(n)], filters: t }, s).then((u) => {
|
|
9772
9772
|
const p = u.rows[0];
|
|
9773
9773
|
o({ minDate: p[0].data, maxDate: p[1].data });
|
|
@@ -10044,10 +10044,10 @@ const Ep = ie({ componentName: "RelativeDateFilterTile" })((e) => {
|
|
|
10044
10044
|
var a;
|
|
10045
10045
|
const { t: o } = $e();
|
|
10046
10046
|
return /* @__PURE__ */ g(gr, { title: (a = e.attribute.name) != null ? a : "", renderContent: () => /* @__PURE__ */ g(un, { children: o("unsupportedFilterMessage") }), design: n, locked: e.config.locked, onDelete: r, onEdit: t });
|
|
10047
|
-
}, Pc = { header: { shouldBeShown: !0, isCollapsible: !0, hasBorder: !1, hasBackgroundFilterIcon: !1 }, border: { shouldBeShown: !1 }, footer: { shouldBeShown: !1 } },
|
|
10047
|
+
}, Pc = { header: { shouldBeShown: !0, isCollapsible: !0, hasBorder: !1, hasBackgroundFilterIcon: !1 }, border: { shouldBeShown: !1 }, footer: { shouldBeShown: !1 } }, j_ = ({ filter: e, dataSource: n, parentFilters: r, onChange: t, isLast: a }) => {
|
|
10048
10048
|
const { themeSettings: o } = be(), { backgroundColor: i } = o.general, s = vt(i, id), c = e.attribute, l = c.name, d = { attribute: c, dataSource: n, title: l, onChange: t, onUpdate: t, tileDesignOptions: Pc }, u = wa(e) ? /* @__PURE__ */ g(Pu, _(x({}, d), { filter: e, parentFilters: r })) : Yi(e) ? /* @__PURE__ */ g(Mp, _(x({}, d), { filter: e, attribute: c, tiled: !0 })) : sd(e) ? /* @__PURE__ */ g(Ep, _(x({}, d), { filter: e, arrangement: "vertical" })) : ld(e) || wa(e) || cd(e) || Bi(e) ? /* @__PURE__ */ g(Ip, _(x({}, d), { filter: e })) : dd(e) ? /* @__PURE__ */ g(Lp, _(x({}, d), { filter: e })) : /* @__PURE__ */ g(Op, { filter: e, design: Pc });
|
|
10049
10049
|
return /* @__PURE__ */ g("div", { style: { borderBottomColor: a ? void 0 : s }, className: a ? "" : "csdk-border-0 csdk-border-b csdk-border-solid", children: u });
|
|
10050
|
-
},
|
|
10050
|
+
}, F_ = ie({ componentName: "CascadingFilterTile" })((e) => {
|
|
10051
10051
|
const { filter: n, arrangement: r, onChange: t, onDelete: a, dataSource: o } = e, { filter: i, updateFilter: s } = Bn(n, t), c = i.filters, l = (u, p) => {
|
|
10052
10052
|
const h = i.filters.map((y, v) => v === p ? u : v > p ? Mh(y) : y), { guid: f, disabled: m } = i.config, b = new ud(h, { guid: f, disabled: m });
|
|
10053
10053
|
s(b);
|
|
@@ -10059,7 +10059,7 @@ const Ep = ie({ componentName: "RelativeDateFilterTile" })((e) => {
|
|
|
10059
10059
|
const u = [];
|
|
10060
10060
|
return c.map((p, h) => {
|
|
10061
10061
|
const f = [...u];
|
|
10062
|
-
return u.push(p), /* @__PURE__ */ g(
|
|
10062
|
+
return u.push(p), /* @__PURE__ */ g(j_, { filter: p, dataSource: o, parentFilters: f, onChange: (m) => m ? l(m, h) : null, isLast: h === c.length - 1 }, h);
|
|
10063
10063
|
});
|
|
10064
10064
|
}, arrangement: r, disabled: i.config.disabled, onToggleDisabled: d, design: { header: { shouldBeShown: !1 } }, locked: i.config.locked, onDelete: a });
|
|
10065
10065
|
}), Lp = ie({ componentName: "CustomFilterTile" })((e) => {
|
|
@@ -10072,7 +10072,7 @@ const Ep = ie({ componentName: "RelativeDateFilterTile" })((e) => {
|
|
|
10072
10072
|
return /* @__PURE__ */ g(gr, { title: r.attribute.name, renderContent: (l) => /* @__PURE__ */ g(un, { children: l ? n("customFilterTileMessage") : JSON.stringify(s, null, 4) }), disabled: r.config.disabled, onToggleDisabled: () => t(c(r)), design: i || { header: { isCollapsible: !1 } }, locked: r.config.locked, onDelete: a, onEdit: o });
|
|
10073
10073
|
}), Y_ = ({ filter: e, onChange: n, onDelete: r, onEdit: t, defaultDataSource: a }) => {
|
|
10074
10074
|
const o = e.attribute, i = o.name, s = x({ attribute: o, title: i, onChange: n, onUpdate: n, onDelete: r, onEdit: t }, a ? { dataSource: a } : null);
|
|
10075
|
-
return dd(e) ? /* @__PURE__ */ g(Lp, _(x({}, s), { filter: e })) : wa(e) ? /* @__PURE__ */ g(Pu, _(x({}, s), { filter: e })) : Yi(e) ? /* @__PURE__ */ g(Mp, _(x({}, s), { filter: e, attribute: o, tiled: !0 })) : sd(e) ? /* @__PURE__ */ g(Ep, _(x({}, s), { filter: e, arrangement: "vertical" })) : ld(e) || Th(e) || cd(e) || Bi(e) ? /* @__PURE__ */ g(Ip, _(x({}, s), { filter: e })) : pd(e) ? /* @__PURE__ */ g(
|
|
10075
|
+
return dd(e) ? /* @__PURE__ */ g(Lp, _(x({}, s), { filter: e })) : wa(e) ? /* @__PURE__ */ g(Pu, _(x({}, s), { filter: e })) : Yi(e) ? /* @__PURE__ */ g(Mp, _(x({}, s), { filter: e, attribute: o, tiled: !0 })) : sd(e) ? /* @__PURE__ */ g(Ep, _(x({}, s), { filter: e, arrangement: "vertical" })) : ld(e) || Th(e) || cd(e) || Bi(e) ? /* @__PURE__ */ g(Ip, _(x({}, s), { filter: e })) : pd(e) ? /* @__PURE__ */ g(F_, _(x({}, s), { filter: e, onChange: n })) : /* @__PURE__ */ g(Op, { filter: e, design: { header: { isCollapsible: !1 } }, onDelete: r });
|
|
10076
10076
|
};
|
|
10077
10077
|
function z_({ color: e = "#FFCB05" }) {
|
|
10078
10078
|
return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ g("path", { fill: e, "fill-rule": "nonzero", d: "M16.05 11.343l1.529-1.528-3.483-3.418-1.518 1.474 3.472 3.472zm-.707.707l-3.482-3.482L5 15.231v3.566l3.587.01 6.756-6.757zM19 9.808l-10 10-5-.013v-4.987L14.1 5 19 9.808zM8.642 15.24l3.857-3.804-.702-.712-3.858 3.804.703.712z" }) });
|
|
@@ -10363,7 +10363,7 @@ function vD(e, n) {
|
|
|
10363
10363
|
function wD(e) {
|
|
10364
10364
|
return e.itemSections.some(({ id: n }) => n === Cd.DRILLDOWN_CHART_POINTS_SELECTION);
|
|
10365
10365
|
}
|
|
10366
|
-
function
|
|
10366
|
+
function jp(e, { onFiltersChange: n } = {}) {
|
|
10367
10367
|
const { filters: r, widgets: t, widgetsOptions: a } = e, [o] = il(t), [i, s] = il(o), { openMenu: c, onBeforeMenuOpen: l } = yD({ isTargetMenu: wD, combineMenus: vD }), { filters: d, setFilters: u, connectToWidgetProps: p } = Uc({ initialFilters: r, openMenu: c, onBeforeMenuOpen: l, onFiltersChange: n }), h = bD({ target: i, onChange: J((m, b) => {
|
|
10368
10368
|
s((y) => {
|
|
10369
10369
|
const v = $i(y);
|
|
@@ -10375,10 +10375,10 @@ function Fp(e, { onFiltersChange: n } = {}) {
|
|
|
10375
10375
|
}), [h, a, p]);
|
|
10376
10376
|
return { dashboard: _(x({}, e), { filters: d, widgets: f }), setFilters: u };
|
|
10377
10377
|
}
|
|
10378
|
-
const cS = pt("useComposedDashboard")(
|
|
10378
|
+
const cS = pt("useComposedDashboard")(jp);
|
|
10379
10379
|
var Es = /* @__PURE__ */ ((e) => (e.FILTERS_UPDATE = "FILTERS.UPDATE", e.UI_FILTERS_PANEL_COLLAPSE = "UI.FILTERS.PANEL.COLLAPSE", e))(Es || {});
|
|
10380
10380
|
const xD = ie({ componentName: "Dashboard" })(({ title: e = "", layoutOptions: n, config: r, widgets: t, filters: a, defaultDataSource: o, widgetsOptions: i, styleOptions: s, onChange: c }) => {
|
|
10381
|
-
const { themeSettings: l } = Rp({ styleOptions: s }), { dashboard: { filters: d = [], widgets: u }, setFilters: p } =
|
|
10381
|
+
const { themeSettings: l } = Rp({ styleOptions: s }), { dashboard: { filters: d = [], widgets: u }, setFilters: p } = jp({ filters: a, widgets: t, widgetsOptions: i }, { onFiltersChange: J((h) => {
|
|
10382
10382
|
c == null || c({ type: "FILTERS.UPDATE", payload: h });
|
|
10383
10383
|
}, [c]) });
|
|
10384
10384
|
return /* @__PURE__ */ g(xa, { theme: l, children: /* @__PURE__ */ g(fD, { title: e, layoutOptions: n, config: r, widgets: u, defaultDataSource: o, filters: d, onFiltersChange: p, onChange: c }) });
|
|
@@ -10424,12 +10424,12 @@ const _D = ie({ componentName: "WidgetById", customContextErrorMessageKey: "erro
|
|
|
10424
10424
|
const u = us({ dataSource: e, dimensions: n, measures: r, filters: t, highlights: a, count: o, offset: i, ungroup: s, onBeforeQuery: d }), p = u.data, h = Vc(p);
|
|
10425
10425
|
return p && h !== p && (l == null || l(p)), /* @__PURE__ */ g(et, { children: u && (c == null ? void 0 : c(u)) });
|
|
10426
10426
|
});
|
|
10427
|
-
function
|
|
10427
|
+
function jc(e, n) {
|
|
10428
10428
|
return wt(e, n);
|
|
10429
10429
|
}
|
|
10430
10430
|
const hS = pt("useExecuteCsvQuery")(DD);
|
|
10431
10431
|
function DD(e) {
|
|
10432
|
-
const n = Tu(e), r = hr(e, n), [t, a] = Pt(
|
|
10432
|
+
const n = Tu(e), r = hr(e, n), [t, a] = Pt(jc, { isLoading: !0, isError: !1, isSuccess: !1, status: "loading", error: void 0, data: void 0 }), { isInitialized: o, app: i } = Oe();
|
|
10433
10433
|
return ce(() => {
|
|
10434
10434
|
if (o || a({ type: "error", error: new ee("errors.executeQueryNoSisenseContext") }), r(i)) {
|
|
10435
10435
|
a({ type: "loading" });
|
|
@@ -10438,13 +10438,13 @@ function DD(e) {
|
|
|
10438
10438
|
a({ type: "error", error: v });
|
|
10439
10439
|
});
|
|
10440
10440
|
}
|
|
10441
|
-
}, [i, o, e, r]), t.data && n ?
|
|
10441
|
+
}, [i, o, e, r]), t.data && n ? jc(t, { type: "loading" }) : t;
|
|
10442
10442
|
}
|
|
10443
10443
|
function fS(e, n) {
|
|
10444
|
-
const { filters: r, highlights: t } =
|
|
10444
|
+
const { filters: r, highlights: t } = Fp(e, n), a = lu(n.metadata.panels);
|
|
10445
10445
|
return { filters: ii(r, a), highlights: t };
|
|
10446
10446
|
}
|
|
10447
|
-
function
|
|
10447
|
+
function Fp(e, n) {
|
|
10448
10448
|
const r = n.metadata.ignore, { filters: t, highlights: a } = MD(SD(e.filters || [], r), CD(e.filters || []), n);
|
|
10449
10449
|
return { filters: t.map((o) => An(o.jaql, o.instanceid)), highlights: a.map((o) => An(o.jaql)) };
|
|
10450
10450
|
}
|
|
@@ -10514,7 +10514,7 @@ function AD(e) {
|
|
|
10514
10514
|
return [];
|
|
10515
10515
|
}
|
|
10516
10516
|
}
|
|
10517
|
-
function
|
|
10517
|
+
function Fc(e) {
|
|
10518
10518
|
const { filters: n } = e, { filters: r, relations: t } = Gt(n);
|
|
10519
10519
|
return _(x({}, e), { filters: r || [], filterRelations: t });
|
|
10520
10520
|
}
|
|
@@ -10549,21 +10549,21 @@ function OD(e) {
|
|
|
10549
10549
|
const { dataSource: k, filters: E, highlights: C } = b, { filters: P } = Gt(E);
|
|
10550
10550
|
let z = P, W = C;
|
|
10551
10551
|
if (c && h) {
|
|
10552
|
-
const { filters: T, highlights: R } =
|
|
10552
|
+
const { filters: T, highlights: R } = Fp(h, p);
|
|
10553
10553
|
z = ii(T, P), W = ii(R, C);
|
|
10554
10554
|
}
|
|
10555
10555
|
z = ka(z, t, o), W = ka(W, a, o);
|
|
10556
10556
|
const L = (v = h == null ? void 0 : h.filterRelations) != null && v.length ? ng(h.filterRelations[0].filterRelations) : void 0, I = { dataSource: k, filters: z, filterRelations: L, highlights: W, count: i, offset: s };
|
|
10557
10557
|
if (y) {
|
|
10558
|
-
const { rows: T, columns: R, values:
|
|
10559
|
-
return _(x({}, I), { rows: T, columns: R, values:
|
|
10558
|
+
const { rows: T, columns: R, values: j, grandTotals: O } = b;
|
|
10559
|
+
return _(x({}, I), { rows: T, columns: R, values: j, grandTotals: O });
|
|
10560
10560
|
} else {
|
|
10561
10561
|
const { dimensions: T, measures: R } = b;
|
|
10562
10562
|
return _(x({}, I), { dimensions: T, measures: R });
|
|
10563
10563
|
}
|
|
10564
10564
|
};
|
|
10565
10565
|
if (fr(f.widgetType)) {
|
|
10566
|
-
const b = Ki(f), y = m(b, !0), v =
|
|
10566
|
+
const b = Ki(f), y = m(b, !0), v = Fc(y);
|
|
10567
10567
|
return {
|
|
10568
10568
|
// return flat table structure only
|
|
10569
10569
|
data: (yield td(v, l, { onBeforeQuery: d })).table,
|
|
@@ -10572,7 +10572,7 @@ function OD(e) {
|
|
|
10572
10572
|
pivotQuery: y
|
|
10573
10573
|
};
|
|
10574
10574
|
} else {
|
|
10575
|
-
const b = Ji(f), y = m(b, !1), v =
|
|
10575
|
+
const b = Ji(f), y = m(b, !1), v = Fc(y);
|
|
10576
10576
|
return { data: yield Hi(v, l, { onBeforeQuery: d }), query: y, pivotQuery: void 0 };
|
|
10577
10577
|
}
|
|
10578
10578
|
});
|
|
@@ -10614,10 +10614,10 @@ const LD = new ch({ defaultOptions: { queries: { refetchOnWindowFocus: !1, refet
|
|
|
10614
10614
|
var n;
|
|
10615
10615
|
const { t: r } = $e(), { drilldownDimensions: t = [], drilldownPaths: a = [], initialDimension: o, drilldownSelections: i, config: s, onChange: c, children: l } = e, { openMenu: d } = Xc(), [u, p] = ne([]), [h, f] = ne(null), m = yt(h), b = s == null ? void 0 : s.contextMenuComponent, y = (n = s == null ? void 0 : s.breadcrumbsComponent) != null ? n : dh, v = J((S) => c == null ? void 0 : c({ drilldownSelections: S }), [c]), k = X(() => [...a, ...t], [a, t]), { selectDrilldown: E, sliceDrilldownSelections: C, clearDrilldownSelections: P, availableDrilldownPaths: z, drilldownFilters: W, drilldownFiltersDisplayValues: L, drilldownDimension: I } = uh({ drilldownPaths: k, initialDimension: o, drilldownSelections: i, onDrilldownSelectionsChange: v }), T = X(() => I && /* @__PURE__ */ g(y, { filtersDisplayValues: L, currentDimension: I, clearDrilldownSelections: P, sliceDrilldownSelections: C }), [y, P, I, L, C]), R = J((S) => {
|
|
10616
10616
|
f(S);
|
|
10617
|
-
}, []),
|
|
10617
|
+
}, []), j = J(() => {
|
|
10618
10618
|
p([]), f(null);
|
|
10619
|
-
}, [p]), O = J((S,
|
|
10620
|
-
E(u, S,
|
|
10619
|
+
}, [p]), O = J((S, F) => {
|
|
10620
|
+
E(u, S, F);
|
|
10621
10621
|
}, [E, u]), M = J((S) => {
|
|
10622
10622
|
p(S);
|
|
10623
10623
|
}, [p]), N = X(() => [Lh(u, I), Ph(z, I, O, r)], [I, z, u, O, r]);
|
|
@@ -10625,7 +10625,7 @@ const LD = new ch({ defaultOptions: { queries: { refetchOnWindowFocus: !1, refet
|
|
|
10625
10625
|
h && m && !b && d({ position: h, itemSections: N });
|
|
10626
10626
|
}, [h, m, N, d, b]);
|
|
10627
10627
|
const D = X(() => l({ drilldownFilters: W, drilldownDimension: I, onDataPointsSelected: M, onContextMenu: R, breadcrumbsComponent: s != null && s.isBreadcrumbsDetached ? T : void 0 }), [l, W, I, M, R, s, T]);
|
|
10628
|
-
return /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [b && /* @__PURE__ */ g(b, { position: h, itemSections: N, closeContextMenu:
|
|
10628
|
+
return /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [b && /* @__PURE__ */ g(b, { position: h, itemSections: N, closeContextMenu: j }), I && !(s != null && s.isBreadcrumbsDetached) && T, /* @__PURE__ */ g("div", { style: {
|
|
10629
10629
|
flexGrow: 1,
|
|
10630
10630
|
// prevents 'auto' behavior of using content size as minimal for element
|
|
10631
10631
|
minWidth: 0,
|
|
@@ -10633,22 +10633,22 @@ const LD = new ch({ defaultOptions: { queries: { refetchOnWindowFocus: !1, refet
|
|
|
10633
10633
|
}, children: D })] });
|
|
10634
10634
|
});
|
|
10635
10635
|
function RD(e) {
|
|
10636
|
-
return
|
|
10636
|
+
return jD(e.dataSet);
|
|
10637
10637
|
}
|
|
10638
|
-
function
|
|
10638
|
+
function jD(e) {
|
|
10639
10639
|
return !!e && typeof e != "string" && "rows" in e && "columns" in e;
|
|
10640
10640
|
}
|
|
10641
|
-
const
|
|
10641
|
+
const FD = ie({ componentName: "Table", shouldSkipSisenseContextWaiting: RD })((e) => /* @__PURE__ */ g(ph, x({}, e))), wS = ie({ componentName: "TableWidget" })((e) => {
|
|
10642
10642
|
var n;
|
|
10643
10643
|
const [r, t] = ne(0), { app: a } = Oe(), { styleOptions: o, dataSource: i = a == null ? void 0 : a.defaultDataSource, dataOptions: s } = e, c = Ri("table", { hasHeader: !((n = o == null ? void 0 : o.header) != null && n.hidden) }), l = e.styleOptions || {}, { width: d, height: u } = l, p = Se(l, ["width", "height"]);
|
|
10644
|
-
return s ? /* @__PURE__ */ g(qa, { defaultSize: c, size: { width: d, height: u }, children: /* @__PURE__ */ g(
|
|
10644
|
+
return s ? /* @__PURE__ */ g(qa, { defaultSize: c, size: { width: d, height: u }, children: /* @__PURE__ */ g(ji, _(x({}, e), { dataSetName: i && pr(i), onRefresh: () => t(r + 1), children: /* @__PURE__ */ g(FD, { dataSet: e.dataSource, dataOptions: e.dataOptions, styleOptions: p, filters: e.filters, refreshCounter: r }) })) }) : null;
|
|
10645
10645
|
}), xS = ie({ componentName: "LineChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "line" }))), kS = ie({ componentName: "ColumnChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "column" }))), _S = ie({ componentName: "AreaChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "area" }))), DS = ie({ componentName: "PieChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "pie" }))), SS = ie({ componentName: "BarChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "bar" }))), CS = ie({ componentName: "FunnelChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "funnel" }))), MS = ie({ componentName: "PolarChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "polar" }))), TS = ie({ componentName: "ScatterChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "scatter" }))), NS = ie({ componentName: "IndicatorChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "indicator" }))), AS = ie({ componentName: "TreemapChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "treemap" }))), ES = ie({ componentName: "SunburstChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "sunburst" }))), IS = ie({ componentName: "BoxplotChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "boxplot" }))), OS = ie({ componentName: "ScattermapChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "scattermap" }))), LS = ie({ componentName: "AreamapChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "areamap" }))), PS = ie({ componentName: "AreaRangeChart", shouldSkipSisenseContextWaiting: Je })((e) => /* @__PURE__ */ g(Xe, _(x({}, e), { chartType: "arearange" }))), RS = ({ context: e, error: n, children: r }) => {
|
|
10646
10646
|
var t, a, o, i, s;
|
|
10647
10647
|
if (!e)
|
|
10648
10648
|
return /* @__PURE__ */ g(si, { showErrorBox: !1, error: n, children: /* @__PURE__ */ g(li, { children: /* @__PURE__ */ g(xa, { children: r }) }) });
|
|
10649
10649
|
const c = ((t = e == null ? void 0 : e.app) == null ? void 0 : t.settings.translationConfig.language) || ((a = e == null ? void 0 : e.app) == null ? void 0 : a.settings.language) || ((o = e == null ? void 0 : e.app) == null ? void 0 : o.settings.serverLanguage), l = (i = e.app) == null ? void 0 : i.settings.translationConfig.customTranslations;
|
|
10650
10650
|
return /* @__PURE__ */ g(li, { userLanguage: c, customTranslations: l, children: /* @__PURE__ */ g(si, { showErrorBox: e == null ? void 0 : e.errorBoundary.showErrorBox, error: n, children: e && /* @__PURE__ */ g(hd.Provider, { value: e, children: /* @__PURE__ */ g(xa, { skipTracking: !0, theme: (s = e.app) == null ? void 0 : s.settings.serverThemeSettings, children: /* @__PURE__ */ g(qi, { children: r }) }) }) }) });
|
|
10651
|
-
},
|
|
10651
|
+
}, jS = ie({ componentName: "CustomThemeProvider", trackingConfig: { skip: (e) => {
|
|
10652
10652
|
var n;
|
|
10653
10653
|
return !!((n = e.context) != null && n.skipTracking);
|
|
10654
10654
|
}, transparent: !0 }, shouldSkipSisenseContextWaiting: !0 })((e) => {
|
|
@@ -10656,7 +10656,7 @@ const jD = ie({ componentName: "Table", shouldSkipSisenseContextWaiting: RD })((
|
|
|
10656
10656
|
if (r)
|
|
10657
10657
|
throw r;
|
|
10658
10658
|
return /* @__PURE__ */ g(et, { children: n && /* @__PURE__ */ g(hh.Provider, { value: { themeSettings: n }, children: t }) });
|
|
10659
|
-
}),
|
|
10659
|
+
}), FS = ({ context: e, children: n }) => {
|
|
10660
10660
|
const { pluginMap: r, registerPlugin: t, getPlugin: a } = e;
|
|
10661
10661
|
return /* @__PURE__ */ g(ds.Provider, { value: { registerPlugin: t, getPlugin: a, plugins: r }, children: n });
|
|
10662
10662
|
};
|
|
@@ -10733,7 +10733,7 @@ function Yc(e) {
|
|
|
10733
10733
|
const $S = pt("useFetch")((e, n, r) => {
|
|
10734
10734
|
var t;
|
|
10735
10735
|
const { app: a } = Oe(), o = a == null ? void 0 : a.httpClient, i = (t = r == null ? void 0 : r.enabled) != null ? t : !0;
|
|
10736
|
-
return
|
|
10736
|
+
return jh({
|
|
10737
10737
|
queryKey: ["fetch", e, n, r == null ? void 0 : r.requestConfig],
|
|
10738
10738
|
queryFn: () => Ce(void 0, null, function* () {
|
|
10739
10739
|
if (!o)
|
|
@@ -10845,7 +10845,7 @@ export {
|
|
|
10845
10845
|
SS as BarChart,
|
|
10846
10846
|
iS as BasicMemberFilterTile,
|
|
10847
10847
|
IS as BoxplotChart,
|
|
10848
|
-
|
|
10848
|
+
F_ as CascadingFilterTile,
|
|
10849
10849
|
Xe as Chart,
|
|
10850
10850
|
Gc as ChartWidget,
|
|
10851
10851
|
kS as ColumnChart,
|
|
@@ -10854,9 +10854,9 @@ export {
|
|
|
10854
10854
|
Ip as CriteriaFilterTile,
|
|
10855
10855
|
JD as CustomElement,
|
|
10856
10856
|
Lp as CustomFilterTile,
|
|
10857
|
-
|
|
10857
|
+
FS as CustomPluginsProvider,
|
|
10858
10858
|
RS as CustomSisenseContextProvider,
|
|
10859
|
-
|
|
10859
|
+
jS as CustomThemeProvider,
|
|
10860
10860
|
xD as Dashboard,
|
|
10861
10861
|
dS as DashboardById,
|
|
10862
10862
|
uS as DashboardWidget,
|
|
@@ -10883,7 +10883,7 @@ export {
|
|
|
10883
10883
|
OS as ScattermapChart,
|
|
10884
10884
|
yS as SisenseContextProvider,
|
|
10885
10885
|
ES as SunburstChart,
|
|
10886
|
-
|
|
10886
|
+
FD as Table,
|
|
10887
10887
|
wS as TableWidget,
|
|
10888
10888
|
Su as TextWidget,
|
|
10889
10889
|
xa as ThemeProvider,
|