@sisense/sdk-ui 1.34.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +1 -1
- package/dist/ai.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +3 -3
- package/dist/{use-common-filters-Bw15BNGn.js → use-common-filters-CRL16HJ4.js} +4 -4
- package/dist/{use-common-filters-CqGo6jp3.cjs → use-common-filters-Dx4AeUoy.cjs} +2 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -36,8 +36,8 @@ var Ye = (e, r, t) => new Promise((n, o) => {
|
|
|
36
36
|
}, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
|
|
37
37
|
s((t = t.apply(e, r)).next());
|
|
38
38
|
});
|
|
39
|
-
import { i as No, s as vr, c as hn, g as gg, a as or, b as bg, d as yg, e as vg, f as wg, _ as Tt, h as xg, j as hp, k as Cg, l as Dg, m as kg, n as Sg, r as _g, u as Tg, P as C, o as au, p as ts, q as Eg, t as Mg, v as Og, w as Ag, x as Ce, y as iu, z as Ge, A as su, B as Un, L as ar, T as ea, C as Vn, D as Ng, E as Rg, F as Lt, G as mp, H as $t, I as At, J as zn, K as Br, M as ti, N as Ta, O as ge, Q as Pg, R as gp, S as ni, U as Lg, V as hl, W as ml, X as ns, Y as Fg, Z as Ig, $ as Hg, a0 as Bg, a1 as Wg, a2 as Yg, a3 as lu, a4 as $g, a5 as ta, a6 as Ug, a7 as Vg, a8 as bp, a9 as zg, aa as jg, ab as qg, ac as Qg, ad as Gg, ae as yp, af as Kg, ag as vp, ah as gl, ai as Ea, aj as Ma, ak as wr, al as xr, am as bl, an as ri, ao as Xg, ap as yl, aq as Wt, ar as Bt, as as Zg, at as Jg, au as oi, av as eb, aw as tb, ax as nb, ay as rs, az as rb, aA as ai, aB as ob, aC as wp, aD as go, aE as ab, aF as ib, aG as ii, aH as Te, aI as si, aJ as sb, aK as lb, aL as Ls, aM as Fs, aN as cb, aO as ub, aP as xp, aQ as Cp, aR as cu, aS as db, aT as Dp, aU as pb, aV as vl, aW as fb, aX as hb, aY as mb, aZ as gb, a_ as uu, a$ as kp, b0 as bb, b1 as Sp, b2 as yb, b3 as _p, b4 as Oa, b5 as Tp, b6 as Ep, b7 as Mp, b8 as Aa, b9 as vb, ba as wb, bb as xb, bc as Is, bd as Hs, be as Cb, bf as Db, bg as kb, bh as Sb, bi as _b, bj as bt, bk as yt } from "./use-common-filters-
|
|
40
|
-
import { bm as t2, bs as n2, bq as r2, bp as o2, bn as a2, bu as i2, bl as s2, br as l2, bt as c2, bo as u2 } from "./use-common-filters-
|
|
39
|
+
import { i as No, s as vr, c as hn, g as gg, a as or, b as bg, d as yg, e as vg, f as wg, _ as Tt, h as xg, j as hp, k as Cg, l as Dg, m as kg, n as Sg, r as _g, u as Tg, P as C, o as au, p as ts, q as Eg, t as Mg, v as Og, w as Ag, x as Ce, y as iu, z as Ge, A as su, B as Un, L as ar, T as ea, C as Vn, D as Ng, E as Rg, F as Lt, G as mp, H as $t, I as At, J as zn, K as Br, M as ti, N as Ta, O as ge, Q as Pg, R as gp, S as ni, U as Lg, V as hl, W as ml, X as ns, Y as Fg, Z as Ig, $ as Hg, a0 as Bg, a1 as Wg, a2 as Yg, a3 as lu, a4 as $g, a5 as ta, a6 as Ug, a7 as Vg, a8 as bp, a9 as zg, aa as jg, ab as qg, ac as Qg, ad as Gg, ae as yp, af as Kg, ag as vp, ah as gl, ai as Ea, aj as Ma, ak as wr, al as xr, am as bl, an as ri, ao as Xg, ap as yl, aq as Wt, ar as Bt, as as Zg, at as Jg, au as oi, av as eb, aw as tb, ax as nb, ay as rs, az as rb, aA as ai, aB as ob, aC as wp, aD as go, aE as ab, aF as ib, aG as ii, aH as Te, aI as si, aJ as sb, aK as lb, aL as Ls, aM as Fs, aN as cb, aO as ub, aP as xp, aQ as Cp, aR as cu, aS as db, aT as Dp, aU as pb, aV as vl, aW as fb, aX as hb, aY as mb, aZ as gb, a_ as uu, a$ as kp, b0 as bb, b1 as Sp, b2 as yb, b3 as _p, b4 as Oa, b5 as Tp, b6 as Ep, b7 as Mp, b8 as Aa, b9 as vb, ba as wb, bb as xb, bc as Is, bd as Hs, be as Cb, bf as Db, bg as kb, bh as Sb, bi as _b, bj as bt, bk as yt } from "./use-common-filters-CRL16HJ4.js";
|
|
40
|
+
import { bm as t2, bs as n2, bq as r2, bp as o2, bn as a2, bu as i2, bl as s2, br as l2, bt as c2, bo as u2 } from "./use-common-filters-CRL16HJ4.js";
|
|
41
41
|
import { i as Op, A as Ap, M as Oe, D as du, a as Tb, S as nr, n as os, j as Eb, b as K, c as qe, d as Mb, e as li, f as Ob, g as Ab, h as wl, C as ct, k as Ze, l as Nb, m as jn, o as ci, s as Rb, p as Pb, q as Lb, U as Np, r as xl, t as Rp, T as le, u as Fb, v as Pp, w as Ib, Q as Hb, x as Lp, _ as ne, y as bo, z as Fn, B as Bb, E as Wb, F as pu, G as Yb, H as Fp, I as Ip, J as Qt, K as fu, L as hu, N as mu, O as gu, P as $b, R as je, V as he, W as ie, X as bu, Y as ui, Z as Ub, $ as yu, a0 as vu, a1 as wn, a2 as Hp, a3 as Bp, a4 as Wp, a5 as Vb, a6 as zb, a7 as Ct, a8 as wu, a9 as h, aa as $, ab as Ne, ac as wo, ad as Yp, ae as Ro, af as di, ag as jb, ah as Qe, ai as Cl, aj as Po, ak as Sn, al as Dl, am as as, an as kl, ao as qb, ap as $p, aq as Qb, ar as pi, as as fi, at as Up, au as Gb, av as Kb, aw as Sl, ax as Xb, ay as is, az as ss, aA as Zb, aB as Jb, aC as ey, aD as ls, aE as ty, aF as hi, aG as ny, aH as ry, aI as Jt, aJ as Dt, aK as Lo, aL as Vp, aM as _l, aN as oy, aO as ay, aP as iy, aQ as H, aR as sy, aS as ly, aT as zp, aU as cy, aV as jp, aW as Bs, aX as qp, aY as Yt, aZ as Ws, a_ as Tl, a$ as xn, b0 as uy, b1 as dy, b2 as El, b3 as Ml, b4 as mi, b5 as py, b6 as Qp, b7 as It, b8 as Gp, b9 as Kp, ba as Xp, bb as Wr, bc as ur, bd as Zp, be as Na, bf as xu, bg as oe, bh as Cu, bi as fy, bj as hy, bk as my, bl as gy, bm as Ys, bn as by, bo as yy, bp as vy, bq as Jp, br as wy, bs as xy, bt as Cy, bu as Dy, bv as ky, bw as Sy, bx as Rt, by as Du, bz as un, bA as gi, bB as Ol, bC as Al, bD as Nl, bE as Rl, bF as Pl, bG as qn, bH as ef, bI as _y, bJ as Ll, bK as ku, bL as Ty, bM as Ey, bN as My, bO as Oy, bP as Ay, bQ as Ny, bR as Ry, bS as tf, bT as Py, bU as Ly, bV as Fy, bW as Iy, bX as nf, bY as Hy, bZ as By, b_ as Wy } from "./derive-chart-family-5CbFzbpu.js";
|
|
42
42
|
import { b$ as p2 } from "./derive-chart-family-5CbFzbpu.js";
|
|
43
43
|
import * as j from "react";
|
|
@@ -2282,7 +2282,7 @@ const L0 = (c) => Ye(void 0, [c], function* ({ defaultDataSource: e, url: r, tok
|
|
|
2282
2282
|
if (!u)
|
|
2283
2283
|
throw new le("errors.sisenseContextNoAuthentication");
|
|
2284
2284
|
P0();
|
|
2285
|
-
const d = new fv(l, u, "sdk-ui-1.
|
|
2285
|
+
const d = new fv(l, u, "sdk-ui-1.35.0"), p = yield d.login(), f = pf(u) || !p, m = yield O0(a || {}, d, f), g = new Np(R0(l, m.user.tenant.name), u), b = new S0(d, g);
|
|
2286
2286
|
return {
|
|
2287
2287
|
httpClient: d,
|
|
2288
2288
|
pivotClient: g,
|
|
@@ -677,7 +677,7 @@ const e1 = {
|
|
|
677
677
|
if (!a.current && !i) {
|
|
678
678
|
const l = {
|
|
679
679
|
packageName: r.packageName,
|
|
680
|
-
packageVersion: "1.
|
|
680
|
+
packageVersion: "1.35.0",
|
|
681
681
|
componentName: e,
|
|
682
682
|
attributesUsed: Object.entries(t).filter(([, c]) => !!c).map(([c]) => c).join(", ")
|
|
683
683
|
};
|
|
@@ -711,7 +711,7 @@ const Ic = class Ic extends gl {
|
|
|
711
711
|
try {
|
|
712
712
|
this.handler({
|
|
713
713
|
packageName: "sdk-ui",
|
|
714
|
-
packageVersion: "1.
|
|
714
|
+
packageVersion: "1.35.0",
|
|
715
715
|
component: this.componentName,
|
|
716
716
|
error: t
|
|
717
717
|
});
|
|
@@ -24191,7 +24191,7 @@ const dg = "sdkHookInit", yL = (e, t, r, n) => {
|
|
|
24191
24191
|
return;
|
|
24192
24192
|
Yf(dg, {
|
|
24193
24193
|
packageName: t,
|
|
24194
|
-
packageVersion: "1.
|
|
24194
|
+
packageVersion: "1.35.0",
|
|
24195
24195
|
hookName: e
|
|
24196
24196
|
}, r.httpClient).finally(n);
|
|
24197
24197
|
};
|
|
@@ -24201,7 +24201,7 @@ function LA(e) {
|
|
|
24201
24201
|
if (!(!t || !r) && !o.current) {
|
|
24202
24202
|
const i = {
|
|
24203
24203
|
packageName: t.packageName || "sdk-ui",
|
|
24204
|
-
packageVersion: "1.
|
|
24204
|
+
packageVersion: "1.35.0",
|
|
24205
24205
|
hookName: e
|
|
24206
24206
|
};
|
|
24207
24207
|
n(dg, i, !t.enabled).finally(() => o.current = !0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var lm=Object.defineProperty,um=Object.defineProperties;var cm=Object.getOwnPropertyDescriptors;var Co=Object.getOwnPropertySymbols;var $l=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable;var Qe=Math.pow,Nl=(e,t,r)=>t in e?lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))$l.call(t,r)&&Nl(e,r,t[r]);if(Co)for(var r of Co(t))Ll.call(t,r)&&Nl(e,r,t[r]);return e},J=(e,t)=>um(e,cm(t));var br=(e,t)=>{var r={};for(var n in e)$l.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Co)for(var n of Co(e))t.indexOf(n)<0&&Ll.call(e,n)&&(r[n]=e[n]);return r};var rt=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});const u=require("./derive-chart-family-C3FH49ux.cjs"),F=require("react"),te=require("react/jsx-runtime"),kr=require("react-dom");function yd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=yd(F),dm=yd(kr);function fm(e){let{i18n:t,defaultNS:r,children:n}=e;const o=F.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return F.createElement(u.I18nContext.Provider,{value:o},n)}function Wt(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const ze={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function fs(e){return[u.customFormula(ze.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),u.customFormula(ze.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),u.customFormula(ze.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function pm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),u.customFormula(ze.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function hm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function mm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),u.customFormula(ze.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const gm=e=>{const t=u.cloneDeep(e),r=u.customFormula(ze.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=u.customFormula(ze.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t},vm=e=>{const t=u.cloneDeep(e),r=u.customFormula(ze.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=u.customFormula(ze.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t};function kn(e){return!!e&&"operator"in e&&(e.operator==="AND"||e.operator==="OR")&&!!e.right&&!!e.left}function bd(e=[],t=[]){if(!kn(e)&&!kn(t))return lt(e,t);const{filters:r,relations:n}=In(e),o=ps(t),i=lt(r,o),a=Rn(r,n,i);return Sn(i,a)}function In(e){if(!e)return{filters:[],relations:null};if(u.isArray(e))return{filters:e,relations:null};const t=new Set;function r(o){if(_d(o))return t.add(o),{instanceid:o.config.guid};if(kn(o)){const i=r(o.left),a=r(o.right);return{left:i,right:a,operator:o.operator}}throw new ai}const n=r(e);return{filters:Array.from(t),relations:n}}function ps(e){return e?In(e).filters:[]}function Sn(e,t){if(!t||hs(t))return e;const r=n(t);return _d(r)?[r]:r;function n(o){if(oi(o))return e.find(i=>i.config.guid===o.instanceid);if(ii(o))return{left:n(o.left),right:n(o.right),operator:o.operator};throw new ai}}function hs(e){return!!e&&"instanceid"in e}function Rn(e,t,r){if(t===null)return null;const n=bm(e,r);return n.length===0?t:n.reduce((o,i)=>{switch(i.type){case"add":return _m(i.payload,o);case"remove":return Ta(i.payload,o)}},t)}function Fl(e,t){return e.config.guid===t.config.guid}function ym(e,t,r){if(!e)return null;return o(e);function o(i){if(oi(i))return i.instanceid===t.config.guid?{instanceid:r.config.guid}:i;if(ii(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new ai}}function bm(e,t){const r=[],n=[...e],o=[...t];return n.forEach(i=>{o.some(s=>Fl(i,s))||r.push({type:"remove",payload:i})}),o.forEach(i=>{n.some(s=>Fl(i,s))||r.push({type:"add",payload:i})}),r}function _m(e,t){return t?{left:t,right:{instanceid:e.config.guid},operator:"AND"}:{instanceid:e.config.guid}}function Ta(e,t){if(!t)return null;if(hs(t))return t.instanceid===e.config.guid?null:t;const r=Ta(e,t.left),n=Ta(e,t.right);return r===null&&n?n:n===null&&r?r:r===null&&n===null?null:{left:r,right:n,operator:t.operator}}function xm(e,t){if(!e)return null;function r(n){if(wm(n))return{instanceid:n.instanceId};if(Cm(n))return r(n.value);if(Tm(n))return{operator:n.operator,left:r(n.left),right:r(n.right)};if(Em(n)){const o=t.find(i=>{if(!u.isCascadingFilter(i))return!1;const a=i.filters.map(s=>s.config.guid);return n.levels.every(s=>a.includes(s.instanceId))});if(o)return{instanceid:o.config.guid};throw new Error("Broken filter relations model. Cascading filter not found.")}throw new Error("Broken filter relations model. Unknown node type.")}return r(e)}function wm(e){return"instanceId"in e}function Cm(e){return"value"in e}function Tm(e){return"operator"in e}function Em(e){return"levels"in e&&u.isArray(e.levels)}function oi(e){return"instanceid"in e}function ii(e){return"operator"in e}function _d(e){return"config"in e&&"guid"in e.config}function Sm(e,t){if(!e)return;function r(n){if(oi(n)){const o=t.find(i=>i.config.guid===n.instanceid);return o&&u.isCascadingFilter(o)?{type:"CascadingIdentifier",levels:o.filters.map(a=>({type:"Identifier",instanceId:a.config.guid}))}:{type:"Identifier",instanceId:n.instanceid}}else{if(ii(n))return{type:"LogicalExpression",operator:n.operator,left:r(n.left),right:r(n.right)};throw new Error("Unknown node type in filter relations rules.")}}return r(e)}function Rm(e,t){return e.find(r=>r.config.guid===t)}class ai extends Error{constructor(){super("Broken filter relations. Unknown node type.")}}function Om(e){return e.nodeType==="openBracket"}function Mm(e){return e.nodeType==="closeBracket"}function Pm(e){return e.nodeType==="attribute"}function Dm(e){return e.nodeType==="operator"}function An(e){if(u.isCascadingFilter(e))return e.filters.map(An).join("-");const{attribute:t}=e,r=e.jaql().jaql,n=t.expression||r.dim,o=t.granularity||((r==null?void 0:r.datatype)==="datetime"?u.DimensionalLevelAttribute.translateJaqlToGranularity(r):"");return`${n}${o}`}function lt(e=[],t=[]){const r=[...e];return t.forEach(n=>{const o=r.findIndex(a=>An(n)===An(a));o!==-1?r[o]=n:r.push(n)}),r}function km(e){if(!e)return e;const t=u.cloneDeep(e);function r(n){if("instanceId"in n)return{instanceid:n.instanceId};if("value"in n)return r(n.value);if("operator"in n){const o={operator:n.operator};return"left"in n&&(o.left=r(n.left)),"right"in n&&(o.right=r(n.right)),o}return n}return r(t)}function Im(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(e,t){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ea(e,t)}function Am(e,t){if(u._typeof(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nm(e){var t=Am(e,"string");return u._typeof(t)=="symbol"?t:t+""}function $m(e,t,r){return t=Nm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xn={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function xd(e,t,r){const n={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.widgetBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor,fontsLoader:{fonts:Lm(e.typography.fontFamily,r,e.typography.customFontSelected)}},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor,popover:u.getDefaultThemeSettings().general.popover,buttons:{cancel:{backgroundColor:{default:e.general.secondaryButtonBaseColor,hover:e.general.secondaryButtonHoverColor,focus:e.general.secondaryButtonHoverColor},textColor:e.general.secondaryButtonTextColor}}},widget:{spaceAround:xn[e.dashboards.widgetSpacing],cornerRadius:xn[e.dashboards.widgetCornerRadius],shadow:xn[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:xn[e.dashboards.widgetTitleAlignment],dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:u.DEFAULT_DIVIDER_WIDTH,dividerLineColor:u.DEFAULT_DIVIDER_COLOR},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor}}};return u.merge.withOptions({mergeArrays:!1},u.getDefaultThemeSettings(),n)}function wd(e){return e.dashboards.colorPaletteName}function Lm(e,t,r){const i=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${i}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${i}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${i}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${i}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${i}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${i}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Bold.ttf`,format:"truetype"}]}]}function Cd(e,t){return rt(this,null,function*(){const r=yield Fm(e,t);if(!r)throw new u.TranslatableError("errors.themeNotFound",{themeOid:e});const n=wd(r),o=yield Td(n,t);return xd(r,o,t.url)})}function Fm(e,t){return rt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new u.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function Td(e,t){return rt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new u.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}const Hm={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},Hl="composesdk",Ed=(e,t,r,n=!1)=>{const o=Object.assign({action:e,cat:Hl,eventType:"product",direct:!0},t);return n&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",o),Promise.resolve()):r.post("api/activities/",[o],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(i=>{console.error(`unable to log action=${e}, category=${Hl}`,i)})},Bl=(e,t,r,n,o)=>{const i=Hm[`${e}`];return i.internal&&Ed(e,t,r,o),i.external&&n&&n(q({action:e},t)),Promise.resolve()},ms=()=>{const{tracking:e,app:t}=u.useSisenseContext(),r=F.useCallback((o,i={},a=!1)=>t?Bl(o,i,t.httpClient,e.onTrackingEvent,a):Promise.resolve(),[e,t]),n=F.useCallback((o,i=!1)=>{if(!t)return Promise.resolve();const{packageName:a,packageVersion:s,component:l,error:c}=o;let p="";return typeof c=="string"?p=c:c instanceof Error&&(p=c.message||c.toString()),Bl("sdkError",{packageName:a,packageVersion:s,component:l,error:p},t.httpClient,e.onTrackingEvent,i)},[e,t]);return{trackEvent:r,trackError:n}},Bm="sdkComponentInit",Sd=F.createContext(!1),jm=({skipNested:e=!0,children:t})=>u.jsx(Sd.Provider,{value:e,children:t}),zm=(e,t)=>{const{tracking:r,app:n}=u.useSisenseContext(),{trackEvent:o}=ms(),i=F.useContext(Sd),a=F.useRef(!1);F.useEffect(()=>{if(!r||!n)return;if(!a.current&&!i){const l={packageName:r.packageName,packageVersion:"1.34.0",componentName:e,attributesUsed:Object.entries(t).filter(([,c])=>!!c).map(([c])=>c).join(", ")};o(Bm,l,!r.enabled).finally(()=>a.current=!0)}},[e,t,r,i,o,n])};var Wm="[object Boolean]";function Rd(e){return e===!0||e===!1||u.isObjectLike(e)&&u.baseGetTag(e)==Wm}const Al=class Al extends F.Component{constructor(t){super(t),this.postponedErrors=[],this.handler=t.handler,this.componentName=t.componentName}componentDidMount(){var t;this.context.isInitialized&&(this.httpClient=(t=this.context.app)==null?void 0:t.httpClient)}componentDidCatch(t){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(t):this.postponedErrors.push(t)),t}sendErrorTracking(t){try{this.handler({packageName:"sdk-ui",packageVersion:"1.34.0",component:this.componentName,error:t})}catch(r){console.log("Failed to send tracking error event: ",r)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(t=>this.sendErrorTracking(t)),this.postponedErrors=[],this.props.children}};Al.contextType=u.SisenseContext;let Sa=Al;const Vm=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return o=>function(a){const{trackError:s}=ms();return Rd(r)&&r||u.isFunction(r)&&r(a)?u.jsx(o,q({},a)):(zm(e,a),u.jsx(jm,{skipNested:!n,children:u.jsx(Sa,{componentName:e,handler:s,children:u.jsx(o,q({},a))})}))}},Um="_container_1wquj_1",qm="_card_1wquj_11",Gm="_text_1wquj_19",Qi={container:Um,card:qm,text:Gm};function Od({color:e="#FFCB05"}){return u.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:u.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:u.jsxs("g",{children:[u.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),u.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Md=({error:e=new u.TranslatableError("errors.componentRenderError")})=>{var d,m,g,v,y,w;const{themeSettings:t}=u.useThemeContext(),{app:r}=u.useSisenseContext(),{t:n}=u.useTranslation(),[o,i]=F.useState(!1),a=()=>{i(!0)},s=()=>{i(!1)},l=u.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:u.jsx(Od,{color:(d=t==null?void 0:t.general)==null?void 0:d.brandColor})}),c=e instanceof u.AbstractTranslatableError?n(e.key,q({},e.interpolationOptions)):n(e instanceof Error?e.message:e),p=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),h=(g=(m=r==null?void 0:r.settings)==null?void 0:m.errorBoundaryConfig)==null?void 0:g.alwaysShowErrorText;return u.jsx("div",{onMouseEnter:h?void 0:a,onMouseLeave:h?void 0:s,className:Qi.container,"aria-label":"error-box",children:u.jsxs("div",{className:Qi.card,style:{backgroundColor:((v=t==null?void 0:t.general)==null?void 0:v.backgroundColor)||"rgba(255,255,255,0.5)"},children:[l,(h||o)&&u.jsx("div",{className:Qi.text,style:{color:((y=t==null?void 0:t.typography)==null?void 0:y.primaryTextColor)||u.DEFAULT_TEXT_COLOR,fontFamily:((w=t==null?void 0:t.typography)==null?void 0:w.fontFamily)||"inherit"},children:p})]})})};let Pd=class extends F.Component{constructor(t){var r;super(t),this.showErrorBox=!0,this.showErrorBox=(r=t.showErrorBox)!=null?r:!0,this.onError=t.onError,this.isContainerComponent=t.isContainerComponent||!1,this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){var r;this.setState({error:t}),(r=this.onError)==null||r.call(this,t instanceof Error?t:new Error(t))}componentDidUpdate(t,r){r.error!==null&&Ym(t.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const t=this.state.error||this.props.error;return!t||this.isContainerComponent&&!this.showErrorBox?this.props.children:this.showErrorBox?u.jsx(Md,{error:t}):null}};function Ym(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!u.isEqual(r,t[n]))}const Dd=({componentName:e})=>t=>function(n){const o=u.useSisenseContext(),i=a=>{var s,l;return(l=(s=o.errorBoundary).onError)==null?void 0:l.call(s,a,{componentName:e,componentProps:n})};return u.jsx(Pd,{resetKeys:Object.values(n),showErrorBox:o.errorBoundary.showErrorBox,onError:i,isContainerComponent:!!(n!=null&&n.children),children:u.jsx(t,q({},n))})},gs=({color:e})=>{const t={backgroundColor:e||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},r=J(q({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=J(q({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),o=J(q({},t),{marginRight:"unset"}),i={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return u.jsxs("div",{children:[u.jsx("style",{children:`
|
|
1
|
+
"use strict";var lm=Object.defineProperty,um=Object.defineProperties;var cm=Object.getOwnPropertyDescriptors;var Co=Object.getOwnPropertySymbols;var $l=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable;var Qe=Math.pow,Nl=(e,t,r)=>t in e?lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))$l.call(t,r)&&Nl(e,r,t[r]);if(Co)for(var r of Co(t))Ll.call(t,r)&&Nl(e,r,t[r]);return e},J=(e,t)=>um(e,cm(t));var br=(e,t)=>{var r={};for(var n in e)$l.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Co)for(var n of Co(e))t.indexOf(n)<0&&Ll.call(e,n)&&(r[n]=e[n]);return r};var rt=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});const u=require("./derive-chart-family-C3FH49ux.cjs"),F=require("react"),te=require("react/jsx-runtime"),kr=require("react-dom");function yd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=yd(F),dm=yd(kr);function fm(e){let{i18n:t,defaultNS:r,children:n}=e;const o=F.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return F.createElement(u.I18nContext.Provider,{value:o},n)}function Wt(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const ze={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function fs(e){return[u.customFormula(ze.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),u.customFormula(ze.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),u.customFormula(ze.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function pm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),u.customFormula(ze.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function hm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function mm(e){return[...fs(e),u.customFormula(ze.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),u.customFormula(ze.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),u.customFormula(ze.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const gm=e=>{const t=u.cloneDeep(e),r=u.customFormula(ze.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=u.customFormula(ze.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t},vm=e=>{const t=u.cloneDeep(e),r=u.customFormula(ze.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=u.customFormula(ze.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=o=>{const i=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?i:{jaql:i}},t};function kn(e){return!!e&&"operator"in e&&(e.operator==="AND"||e.operator==="OR")&&!!e.right&&!!e.left}function bd(e=[],t=[]){if(!kn(e)&&!kn(t))return lt(e,t);const{filters:r,relations:n}=In(e),o=ps(t),i=lt(r,o),a=Rn(r,n,i);return Sn(i,a)}function In(e){if(!e)return{filters:[],relations:null};if(u.isArray(e))return{filters:e,relations:null};const t=new Set;function r(o){if(_d(o))return t.add(o),{instanceid:o.config.guid};if(kn(o)){const i=r(o.left),a=r(o.right);return{left:i,right:a,operator:o.operator}}throw new ai}const n=r(e);return{filters:Array.from(t),relations:n}}function ps(e){return e?In(e).filters:[]}function Sn(e,t){if(!t||hs(t))return e;const r=n(t);return _d(r)?[r]:r;function n(o){if(oi(o))return e.find(i=>i.config.guid===o.instanceid);if(ii(o))return{left:n(o.left),right:n(o.right),operator:o.operator};throw new ai}}function hs(e){return!!e&&"instanceid"in e}function Rn(e,t,r){if(t===null)return null;const n=bm(e,r);return n.length===0?t:n.reduce((o,i)=>{switch(i.type){case"add":return _m(i.payload,o);case"remove":return Ta(i.payload,o)}},t)}function Fl(e,t){return e.config.guid===t.config.guid}function ym(e,t,r){if(!e)return null;return o(e);function o(i){if(oi(i))return i.instanceid===t.config.guid?{instanceid:r.config.guid}:i;if(ii(i))return{left:o(i.left),right:o(i.right),operator:i.operator};throw new ai}}function bm(e,t){const r=[],n=[...e],o=[...t];return n.forEach(i=>{o.some(s=>Fl(i,s))||r.push({type:"remove",payload:i})}),o.forEach(i=>{n.some(s=>Fl(i,s))||r.push({type:"add",payload:i})}),r}function _m(e,t){return t?{left:t,right:{instanceid:e.config.guid},operator:"AND"}:{instanceid:e.config.guid}}function Ta(e,t){if(!t)return null;if(hs(t))return t.instanceid===e.config.guid?null:t;const r=Ta(e,t.left),n=Ta(e,t.right);return r===null&&n?n:n===null&&r?r:r===null&&n===null?null:{left:r,right:n,operator:t.operator}}function xm(e,t){if(!e)return null;function r(n){if(wm(n))return{instanceid:n.instanceId};if(Cm(n))return r(n.value);if(Tm(n))return{operator:n.operator,left:r(n.left),right:r(n.right)};if(Em(n)){const o=t.find(i=>{if(!u.isCascadingFilter(i))return!1;const a=i.filters.map(s=>s.config.guid);return n.levels.every(s=>a.includes(s.instanceId))});if(o)return{instanceid:o.config.guid};throw new Error("Broken filter relations model. Cascading filter not found.")}throw new Error("Broken filter relations model. Unknown node type.")}return r(e)}function wm(e){return"instanceId"in e}function Cm(e){return"value"in e}function Tm(e){return"operator"in e}function Em(e){return"levels"in e&&u.isArray(e.levels)}function oi(e){return"instanceid"in e}function ii(e){return"operator"in e}function _d(e){return"config"in e&&"guid"in e.config}function Sm(e,t){if(!e)return;function r(n){if(oi(n)){const o=t.find(i=>i.config.guid===n.instanceid);return o&&u.isCascadingFilter(o)?{type:"CascadingIdentifier",levels:o.filters.map(a=>({type:"Identifier",instanceId:a.config.guid}))}:{type:"Identifier",instanceId:n.instanceid}}else{if(ii(n))return{type:"LogicalExpression",operator:n.operator,left:r(n.left),right:r(n.right)};throw new Error("Unknown node type in filter relations rules.")}}return r(e)}function Rm(e,t){return e.find(r=>r.config.guid===t)}class ai extends Error{constructor(){super("Broken filter relations. Unknown node type.")}}function Om(e){return e.nodeType==="openBracket"}function Mm(e){return e.nodeType==="closeBracket"}function Pm(e){return e.nodeType==="attribute"}function Dm(e){return e.nodeType==="operator"}function An(e){if(u.isCascadingFilter(e))return e.filters.map(An).join("-");const{attribute:t}=e,r=e.jaql().jaql,n=t.expression||r.dim,o=t.granularity||((r==null?void 0:r.datatype)==="datetime"?u.DimensionalLevelAttribute.translateJaqlToGranularity(r):"");return`${n}${o}`}function lt(e=[],t=[]){const r=[...e];return t.forEach(n=>{const o=r.findIndex(a=>An(n)===An(a));o!==-1?r[o]=n:r.push(n)}),r}function km(e){if(!e)return e;const t=u.cloneDeep(e);function r(n){if("instanceId"in n)return{instanceid:n.instanceId};if("value"in n)return r(n.value);if("operator"in n){const o={operator:n.operator};return"left"in n&&(o.left=r(n.left)),"right"in n&&(o.right=r(n.right)),o}return n}return r(t)}function Im(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(e,t){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ea(e,t)}function Am(e,t){if(u._typeof(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nm(e){var t=Am(e,"string");return u._typeof(t)=="symbol"?t:t+""}function $m(e,t,r){return t=Nm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xn={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function xd(e,t,r){const n={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.widgetBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor,fontsLoader:{fonts:Lm(e.typography.fontFamily,r,e.typography.customFontSelected)}},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor,popover:u.getDefaultThemeSettings().general.popover,buttons:{cancel:{backgroundColor:{default:e.general.secondaryButtonBaseColor,hover:e.general.secondaryButtonHoverColor,focus:e.general.secondaryButtonHoverColor},textColor:e.general.secondaryButtonTextColor}}},widget:{spaceAround:xn[e.dashboards.widgetSpacing],cornerRadius:xn[e.dashboards.widgetCornerRadius],shadow:xn[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:xn[e.dashboards.widgetTitleAlignment],dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:u.DEFAULT_DIVIDER_WIDTH,dividerLineColor:u.DEFAULT_DIVIDER_COLOR},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor}}};return u.merge.withOptions({mergeArrays:!1},u.getDefaultThemeSettings(),n)}function wd(e){return e.dashboards.colorPaletteName}function Lm(e,t,r){const i=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${i}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${i}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${i}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${i}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${i}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${i}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${i}${e}-Bold.ttf`,format:"truetype"}]}]}function Cd(e,t){return rt(this,null,function*(){const r=yield Fm(e,t);if(!r)throw new u.TranslatableError("errors.themeNotFound",{themeOid:e});const n=wd(r),o=yield Td(n,t);return xd(r,o,t.url)})}function Fm(e,t){return rt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new u.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function Td(e,t){return rt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new u.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}const Hm={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},Hl="composesdk",Ed=(e,t,r,n=!1)=>{const o=Object.assign({action:e,cat:Hl,eventType:"product",direct:!0},t);return n&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",o),Promise.resolve()):r.post("api/activities/",[o],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(i=>{console.error(`unable to log action=${e}, category=${Hl}`,i)})},Bl=(e,t,r,n,o)=>{const i=Hm[`${e}`];return i.internal&&Ed(e,t,r,o),i.external&&n&&n(q({action:e},t)),Promise.resolve()},ms=()=>{const{tracking:e,app:t}=u.useSisenseContext(),r=F.useCallback((o,i={},a=!1)=>t?Bl(o,i,t.httpClient,e.onTrackingEvent,a):Promise.resolve(),[e,t]),n=F.useCallback((o,i=!1)=>{if(!t)return Promise.resolve();const{packageName:a,packageVersion:s,component:l,error:c}=o;let p="";return typeof c=="string"?p=c:c instanceof Error&&(p=c.message||c.toString()),Bl("sdkError",{packageName:a,packageVersion:s,component:l,error:p},t.httpClient,e.onTrackingEvent,i)},[e,t]);return{trackEvent:r,trackError:n}},Bm="sdkComponentInit",Sd=F.createContext(!1),jm=({skipNested:e=!0,children:t})=>u.jsx(Sd.Provider,{value:e,children:t}),zm=(e,t)=>{const{tracking:r,app:n}=u.useSisenseContext(),{trackEvent:o}=ms(),i=F.useContext(Sd),a=F.useRef(!1);F.useEffect(()=>{if(!r||!n)return;if(!a.current&&!i){const l={packageName:r.packageName,packageVersion:"1.35.0",componentName:e,attributesUsed:Object.entries(t).filter(([,c])=>!!c).map(([c])=>c).join(", ")};o(Bm,l,!r.enabled).finally(()=>a.current=!0)}},[e,t,r,i,o,n])};var Wm="[object Boolean]";function Rd(e){return e===!0||e===!1||u.isObjectLike(e)&&u.baseGetTag(e)==Wm}const Al=class Al extends F.Component{constructor(t){super(t),this.postponedErrors=[],this.handler=t.handler,this.componentName=t.componentName}componentDidMount(){var t;this.context.isInitialized&&(this.httpClient=(t=this.context.app)==null?void 0:t.httpClient)}componentDidCatch(t){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(t):this.postponedErrors.push(t)),t}sendErrorTracking(t){try{this.handler({packageName:"sdk-ui",packageVersion:"1.35.0",component:this.componentName,error:t})}catch(r){console.log("Failed to send tracking error event: ",r)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(t=>this.sendErrorTracking(t)),this.postponedErrors=[],this.props.children}};Al.contextType=u.SisenseContext;let Sa=Al;const Vm=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return o=>function(a){const{trackError:s}=ms();return Rd(r)&&r||u.isFunction(r)&&r(a)?u.jsx(o,q({},a)):(zm(e,a),u.jsx(jm,{skipNested:!n,children:u.jsx(Sa,{componentName:e,handler:s,children:u.jsx(o,q({},a))})}))}},Um="_container_1wquj_1",qm="_card_1wquj_11",Gm="_text_1wquj_19",Qi={container:Um,card:qm,text:Gm};function Od({color:e="#FFCB05"}){return u.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:u.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:u.jsxs("g",{children:[u.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),u.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Md=({error:e=new u.TranslatableError("errors.componentRenderError")})=>{var d,m,g,v,y,w;const{themeSettings:t}=u.useThemeContext(),{app:r}=u.useSisenseContext(),{t:n}=u.useTranslation(),[o,i]=F.useState(!1),a=()=>{i(!0)},s=()=>{i(!1)},l=u.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:u.jsx(Od,{color:(d=t==null?void 0:t.general)==null?void 0:d.brandColor})}),c=e instanceof u.AbstractTranslatableError?n(e.key,q({},e.interpolationOptions)):n(e instanceof Error?e.message:e),p=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),h=(g=(m=r==null?void 0:r.settings)==null?void 0:m.errorBoundaryConfig)==null?void 0:g.alwaysShowErrorText;return u.jsx("div",{onMouseEnter:h?void 0:a,onMouseLeave:h?void 0:s,className:Qi.container,"aria-label":"error-box",children:u.jsxs("div",{className:Qi.card,style:{backgroundColor:((v=t==null?void 0:t.general)==null?void 0:v.backgroundColor)||"rgba(255,255,255,0.5)"},children:[l,(h||o)&&u.jsx("div",{className:Qi.text,style:{color:((y=t==null?void 0:t.typography)==null?void 0:y.primaryTextColor)||u.DEFAULT_TEXT_COLOR,fontFamily:((w=t==null?void 0:t.typography)==null?void 0:w.fontFamily)||"inherit"},children:p})]})})};let Pd=class extends F.Component{constructor(t){var r;super(t),this.showErrorBox=!0,this.showErrorBox=(r=t.showErrorBox)!=null?r:!0,this.onError=t.onError,this.isContainerComponent=t.isContainerComponent||!1,this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){var r;this.setState({error:t}),(r=this.onError)==null||r.call(this,t instanceof Error?t:new Error(t))}componentDidUpdate(t,r){r.error!==null&&Ym(t.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const t=this.state.error||this.props.error;return!t||this.isContainerComponent&&!this.showErrorBox?this.props.children:this.showErrorBox?u.jsx(Md,{error:t}):null}};function Ym(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!u.isEqual(r,t[n]))}const Dd=({componentName:e})=>t=>function(n){const o=u.useSisenseContext(),i=a=>{var s,l;return(l=(s=o.errorBoundary).onError)==null?void 0:l.call(s,a,{componentName:e,componentProps:n})};return u.jsx(Pd,{resetKeys:Object.values(n),showErrorBox:o.errorBoundary.showErrorBox,onError:i,isContainerComponent:!!(n!=null&&n.children),children:u.jsx(t,q({},n))})},gs=({color:e})=>{const t={backgroundColor:e||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},r=J(q({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=J(q({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),o=J(q({},t),{marginRight:"unset"}),i={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return u.jsxs("div",{children:[u.jsx("style",{children:`
|
|
2
2
|
@keyframes loading-dots-animation {
|
|
3
3
|
${Object.entries(i).map(([a,s])=>`${a} { ${Object.entries(s).map(([l,c])=>`${l}: ${c};`).join("")} }`).join("")}
|
|
4
4
|
}
|
|
@@ -250,7 +250,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
250
250
|
`))},[re,ce,ue])}const Qt=_f(k),vt=z.useRef(),Zt=Rt(()=>{vt.current!==void 0&&(document.body.style.WebkitUserSelect=vt.current,vt.current=void 0),Xe.clear()});z.useEffect(()=>Zt,[Zt]);const mo=ue=>{Xc.clear(),Io=!0,ie(!0),W&&!Be&&W(ue)},It=Rt(ue=>{Xc.start(800+$,()=>{Io=!1}),ie(!1),j&&Be&&j(ue),be.start(de.transitions.duration.shortest,()=>{Le.current=!1})}),Jt=ue=>{Le.current&&ue.type!=="touchstart"||(ce&&ce.removeAttribute("title"),Ue.clear(),He.clear(),N||Io&&H?Ue.start(Io?H:N,()=>{mo(ue)}):mo(ue))},er=ue=>{Ue.clear(),He.start($,()=>{It(ue)})},{isFocusVisibleRef:on,onBlur:tr,onFocus:an,ref:go}=xf(),[,At]=z.useState(!1),sn=ue=>{tr(ue),on.current===!1&&(At(!1),er(ue))},ln=ue=>{ce||Ne(ue.currentTarget),an(ue),on.current===!0&&(At(!0),Jt(ue))},vr=ue=>{Le.current=!0;const Ke=oe.props;Ke.onTouchStart&&Ke.onTouchStart(ue)},vo=ue=>{vr(ue),He.clear(),be.clear(),Zt(),vt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Xe.start(B,()=>{document.body.style.WebkitUserSelect=vt.current,Jt(ue)})},yo=ue=>{oe.props.onTouchEnd&&oe.props.onTouchEnd(ue),Zt(),He.start(V,()=>{It(ue)})};z.useEffect(()=>{if(!Be)return;function ue(Ke){(Ke.key==="Escape"||Ke.key==="Esc")&&It(Ke)}return document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)}},[It,Be]);const Xi=Ve(oe.ref,go,Ne,r);!re&&re!==0&&(Be=!1);const Nt=z.useRef(),bo=ue=>{const Ke=oe.props;Ke.onMouseMove&&Ke.onMouseMove(ue),_n={x:ue.clientX,y:ue.clientY},Nt.current&&Nt.current.update()},rr={},yr=typeof re=="string";R?(rr.title=!Be&&yr&&!I?re:null,rr["aria-describedby"]=Be?Qt:null):(rr["aria-label"]=yr?re:null,rr["aria-labelledby"]=Be&&!yr?Qt:null);const je=u._extends({},rr,Z,oe.props,{className:se(Z.className,oe.props.className),onTouchStart:vr,ref:Xi},L?{onMouseMove:bo}:{});process.env.NODE_ENV!=="production"&&(je["data-mui-internal-clone-element"]=!0,z.useEffect(()=>{ce&&!ce.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
251
251
|
`))},[ce]));const $t={};P||(je.onTouchStart=vo,je.onTouchEnd=yo),I||(je.onMouseOver=Ao(Jt,je.onMouseOver),je.onMouseLeave=Ao(er,je.onMouseLeave),ye||($t.onMouseOver=Jt,$t.onMouseLeave=er)),T||(je.onFocus=Ao(ln,je.onFocus),je.onBlur=Ao(sn,je.onBlur),ye||($t.onFocus=ln,$t.onBlur=sn)),process.env.NODE_ENV!=="production"&&oe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${oe.props.title}\` or the Tooltip component.`].join(`
|
|
252
252
|
`));const Ki=z.useMemo(()=>{var ue;let Ke=[{name:"arrow",enabled:!!Te,options:{element:Te,padding:4}}];return(ue=X.popperOptions)!=null&&ue.modifiers&&(Ke=Ke.concat(X.popperOptions.modifiers)),u._extends({},X.popperOptions,{modifiers:Ke})},[Te,X]),Lt=u._extends({},C,{isRtl:pe,arrow:S,disableInteractive:ye,placement:Y,PopperComponentProp:K,touch:Le.current}),un=e8(Lt),_o=(n=(o=ee.popper)!=null?o:M.Popper)!=null?n:t8,cn=(i=(a=(s=ee.transition)!=null?s:M.Transition)!=null?a:G)!=null?i:Bn,xo=(l=(c=ee.tooltip)!=null?c:M.Tooltip)!=null?l:r8,dn=(p=(h=ee.arrow)!=null?h:M.Arrow)!=null?p:n8,wo=wn(_o,u._extends({},X,(d=Q.popper)!=null?d:D.popper,{className:se(un.popper,X==null?void 0:X.className,(m=(g=Q.popper)!=null?g:D.popper)==null?void 0:m.className)}),Lt),fn=wn(cn,u._extends({},ne,(v=Q.transition)!=null?v:D.transition),Lt),am=wn(xo,u._extends({},(y=Q.tooltip)!=null?y:D.tooltip,{className:se(un.tooltip,(w=(E=Q.tooltip)!=null?E:D.tooltip)==null?void 0:w.className)}),Lt),sm=wn(dn,u._extends({},(_=Q.arrow)!=null?_:D.arrow,{className:se(un.arrow,(x=(b=Q.arrow)!=null?b:D.arrow)==null?void 0:x.className)}),Lt);return te.jsxs(z.Fragment,{children:[z.cloneElement(oe,je),te.jsx(_o,u._extends({as:K!=null?K:fo,placement:Y,anchorEl:L?{getBoundingClientRect:()=>({top:_n.y,left:_n.x,right:_n.x,bottom:_n.y,width:0,height:0})}:ce,popperRef:Nt,open:ce?Be:!1,id:Qt,transition:!0},$t,wo,{popperOptions:Ki,children:({TransitionProps:ue})=>te.jsx(cn,u._extends({timeout:de.transitions.duration.shorter},ue,fn,{children:te.jsxs(xo,u._extends({},am,{children:[re,S?te.jsx(dn,u._extends({},sm,{ref:$e})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Ui.propTypes={arrow:f.bool,children:pr.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});const o8=e=>u.isNumber$1(e)?"right":"left",Kc=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:o})=>{const i=e.length>n;return u.jsx("div",{className:Tn.tableCellContent,style:{maxWidth:`${t-r}px`},children:o?u.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):i?u.jsx(Ui,{title:e,children:u.jsx("div",{children:e})}):u.jsx("div",{children:e})})},i8=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:o,themeSettings:i,onSortUpdate:a})=>{var E,_,x;const s=o&&o.showFieldTypeIcon!==void 0?o.showFieldTypeIcon:!0,l=R0+(s?O0:0),c=(o==null?void 0:o.paddingVertical)||Lc,p=(o==null?void 0:o.paddingHorizontal)||Lc,h=((E=o==null?void 0:o.columns)==null?void 0:E.width)==="auto"?(n-p*2-1)/t.columns.length:void 0,d=F.useMemo(()=>t.columns.map(b=>({isHtml:"isHtml"in b&&!!b.isHtml,width:h})),[t.columns,h]),[m,g]=F.useState(((_=document.fonts)==null?void 0:_.status)==="loaded"),v=(x=i.typography)==null?void 0:x.fontFamily,y=F.useMemo(()=>Ok(e,s,d,v),[e,s,d,v,m]);F.useEffect(()=>{var b;(b=document.fonts)==null||b.ready.then(()=>{g(!0)}).catch(C=>{console.warn("Failed to observe font loading",C)})},[]);const w=F.useMemo(()=>e.columns.map((b,C)=>{const S=y[C],O=t.columns[C],M=Hc({isHeaderCell:!0,themeSettings:i,customStyles:o});return S?u.jsx(Do.Column,{maxWidth:es,minWidth:es,allowCellsRecycling:!0,width:S,header:u.jsx(Do.Cell,{className:zn(Tn.tableHeader),style:M,children:u.jsx(wk,{column:b,onClick:a,isSelected:!!Math.abs(b.direction),showFieldTypeIcon:s,sortIcon:(o==null?void 0:o.sortIcon)||"standard",children:Kc({displayValue:u.getDataOptionTitle(O),width:S,padding:l,ellipsizedLength:Sk})})}),cell:T=>{var I=T,{rowIndex:D}=I,R=br(I,["rowIndex"]);return u.jsx(Do.Cell,J(q({className:zn(Tn.tableCell),style:Hc({colIndex:C,rowIndex:D,themeSettings:i,customStyles:o})},R),{children:Kc({displayValue:e.rows[D][C].displayValue,width:S,padding:M0,ellipsizedLength:Rk,isHtml:"isHtml"in O&&O.isHtml})}))},align:o8(b.type)},`col${C}`):null}),[e,y,i,o,a,s,t,l]);return F.useMemo(()=>u.jsx("div",{className:Tn.tableWrapper,style:{padding:`${c}px ${p}px`},children:u.jsx(Do.Table,{className:Tn.table,rowHeight:(o==null?void 0:o.rowHeight)||Tk,rowsCount:e.rows.length,width:n-p*2,height:r-c*2,headerHeight:(o==null?void 0:o.headerHeight)||Ck,children:w})}),[w,o,e,r,p,c,n])},a8="_component_1rw9b_1",s8={component:a8},l8=(e,t)=>{if(!e.columns.some(a=>u.isNumber$1(a.type)))return e;const r=e.columns,o=e.rows.map(a=>a.map((s,l)=>{const c=r[l].type,p=u.getCompleteNumberFormatConfig(t.columns[l].numberFormatConfig);if(u.isNumber$1(c)){const h=u.createCompareValue(s.displayValue,c);return{displayValue:u.applyFormatPlainText(p,h.value),compareValue:h}}else return s}));return{columns:r,rows:o}},u8=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:o,width:i=400,height:a=500})=>{const s=F.useRef(null),l=F.useRef(e),c=F.useMemo(()=>l8(e,t),[e,t]);F.useLayoutEffect(()=>{l.current=e},[e]);const p=F.useMemo(()=>q({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return u.jsx("div",{className:s8.component,ref:s,children:u.jsx(i8,{dataTable:c,dataOptions:t,onSortUpdate:n,height:a,width:i,customStyles:p,themeSettings:o})})},c8=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var d8=Object.prototype,f8=d8.hasOwnProperty;function p8(e,t){return e!=null&&f8.call(e,t)}function h8(e,t){return e!=null&&u.hasPath(e,t,p8)}function m8(e,t){for(const r of t)h8(e,r)&&console.warn(`Prop '${r}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const g8=e=>(m8(e,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:q(q({},e.headersColor?{color:{enabled:e.headersColor}}:null),e.header),rows:q(q({},e.alternatingRowsColor?{alternatingColor:{enabled:e.alternatingRowsColor}}:null),e.rows),columns:q(q({},e.alternatingColumnsColor?{alternatingColor:{enabled:e.alternatingColumnsColor}}:null),e.columns)}),W0=25,V0=10,U0=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:o})=>{const{rowsPerPage:i=W0,width:a,height:s}=r,{themeSettings:l}=u.useThemeContext(),[c,p]=F.useState(0),{filters:h,relations:d}=u.getFilterListAndRelationsJaql(n),[m,g]=F.useState(1),v=F.useRef(null),y=F.useMemo(()=>Qf(t),[t]),w=F.useMemo(()=>js(y.columns.filter(u.isMeasureColumn).map(u.translateColumnToMeasure)),[y]),E=F.useMemo(()=>g8(r),[r]),[_,x]=F.useState(y),[b,C]=F.useState(e),[S,O]=x3({dataSet:b,dataOptions:_,filters:h,filterRelations:d,count:i*V0,offset:c}),M=F.useMemo(()=>{if(S&&o){const P=o(S);if(!tp(P))throw new u.TranslatableError("errors.incorrectOnDataReadyHandler");return P}return S},[S]),D=w3({data:M,innerDataOptions:O,dataColumnNamesMapping:w,needToAggregate:!Wt(b)});F.useEffect(()=>{x(y),C(e),g(1),p(0)},[e,y]);const R=F.useCallback(P=>{if(!S)return;Math.floor(S.rows.length/i)===P&&p(S.rows.length),g(P)},[S,i]),T=F.useCallback(P=>{g(1),p(0),_&&x(_x(_,P))},[_]),I=F.useMemo(()=>{if(!D||Wt(b))return D;const P=D.columns.find(N=>N.direction!==0);return P?u.orderBy(D,[P]):D},[D,b]),A=F.useMemo(()=>I?{columns:I.columns,rows:I.rows.slice((m-1)*i,m*i)}:void 0,[I,m,i]);return O?u.jsx(Ei,{defaultSize:Bs("table"),size:{width:a,height:s},children:P=>{if(!D||!A)return u.jsx(si,{themeSettings:l});if(u.isDataTableEmpty(D))return u.jsx(Hs,{iconType:"table"});const N=Math.ceil(D.rows.length/i);return u.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:l.chart.backgroundColor},"aria-label":"table-root",children:[u.jsx(u8,{dataTable:A,dataOptions:O,designOptions:E,themeSettings:l,width:P.width,height:P.height-32,onSortUpdate:T}),u.jsx(op,{ref:v,page:m,count:N,onChange:(B,L)=>R(L),sx:c8(l)})]})}}):null},q0=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},v8=F.createContext(null),ba={didCatch:!1,error:null};class G0 extends F.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ba}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:i,reason:"imperative-api"}),this.setState(ba)}}componentDidCatch(t,r){var n,o;(n=(o=this.props).onError)===null||n===void 0||n.call(o,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;if(n&&r.error!==null&&y8(t.resetKeys,o)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(ba)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=t;if(i){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=F.createElement(n,l);else if(o===null||F.isValidElement(o))s=o;else throw a}return F.createElement(v8.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function y8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const Y0=F.createContext(void 0),b8=({children:e})=>{const[t,r]=F.useState([]),[n,o]=F.useState([]),i=()=>r([]),a=()=>o([]);return u.jsx(Y0.Provider,{value:{errors:t,warnings:n,clearError:i,clearWarning:a,setErrors:r,setWarnings:o},children:e})},X0=()=>{const e=F.useContext(Y0);return e||{errors:[],warnings:[],setErrors:()=>{console.warn("setErrors called, but context is not available.")},setWarnings:()=>{console.warn("setWarnings called, but context is not available.")},clearError:()=>{console.warn("clearError called, but context is not available.")},clearWarning:()=>{console.warn("clearWarning called, but context is not available.")}}};function Sl(e,t,r){const n=u.usePrevious(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(i=>!u.isEqual(n[i],e[i])):!u.isEqual(n,e))?!0:r?r(e,n):!1}const _8=e=>{const[t,r]=F.useState(0),{setErrors:n,errors:o}=X0(),i=Sl(e,["dataOptions","filters"]);if(F.useEffect(()=>{i&&o.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!Wt(e.dataSet))throw new u.TranslatableError("errors.undefinedDataSource");const a=u.cloneDeep(e.dataOptions),s=u.extractTrendMeasures(a);a.value.push(...s);const l=u.extractForecastMeasures(a);a.value.push(...l);const c=F.useCallback(({error:p})=>(console.debug("Unexpected error occurred when rendering advanced chart:",p),u.jsx(Ua,q({},e))),[e,o]);return o.length===2?null:u.jsx(G0,{fallbackRender:c,onError:p=>{n(h=>[...h,p.message])},children:u.jsx(Ua,J(q({},e),{dataOptions:a}))},`errorboundary_${t}`)},K0=ro({componentName:"Chart",shouldSkipSisenseContextWaiting:q0,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(x8(e))return u.jsx(U0,q({},e));if(w8(e))return u.jsx(_8,q({},e));if(Q0(e))return u.jsx(Ua,q({},e));throw new u.TranslatableError("errors.chartInvalidProps")});function x8(e){return e.chartType==="table"&&"columns"in e.dataOptions}function Q0(e){return e.chartType!=="table"}function w8(e){return!Q0(e)||!u.isCartesian(e.chartType)?!1:e.dataOptions.value.some(r=>(r==null?void 0:r.forecast)!==void 0||(r==null?void 0:r.trend)!==void 0)}var C8=function(e){return e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e}({}),ns=function(e){return e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e}(ns||{}),os=function(e){return e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e}(os||{}),Z0=function(e){return e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e}({});const T8=(e,t)=>{const r=u.get(e,"shadow",t.widget.shadow),n=u.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in ns&&n in os){const o=ns[`${r}`];return`0px ${os[`${n}`]} rgba(9, 9, 10, ${o})`}return"none"};function E8(e){return we("MuiCard",e)}Ce("MuiCard",["root"]);const S8=["className","raised"],R8=e=>{const{classes:t}=e;return De({root:["root"]},E8,t)},O8=le(_i,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),J0=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=n,a=ae(n,S8),s=u._extends({},n,{raised:i}),l=R8(s);return te.jsx(O8,u._extends({className:se(l.root,o),elevation:i?8:void 0,ref:r,ownerState:s},a))});process.env.NODE_ENV!=="production"&&(J0.propTypes={children:f.node,classes:f.object,className:f.string,raised:Pt(f.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function M8(e){return we("MuiCardContent",e)}Ce("MuiCardContent",["root"]);const P8=["className","component"],D8=e=>{const{classes:t}=e;return De({root:["root"]},M8,t)},k8=le("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),eh=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=n,a=ae(n,P8),s=u._extends({},n,{component:i}),l=D8(s);return te.jsx(k8,u._extends({as:i,className:se(l.root,o),ownerState:s,ref:r},a))});process.env.NODE_ENV!=="production"&&(eh.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function I8(e){return we("MuiIconButton",e)}const A8=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),N8=["edge","children","className","color","disabled","disableFocusRipple","size"],$8=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${fe(n)}`,o&&`edge${fe(o)}`,`size${fe(i)}`]};return De(a,I8,t)},L8=le(hr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${fe(r.color)}`],r.edge&&t[`edge${fe(r.edge)}`],t[`size${fe(r.size)}`]]}})(({theme:e,ownerState:t})=>u._extends({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return u._extends({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&u._extends({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":u._extends({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${A8.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),jr=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:p="medium"}=n,h=ae(n,N8),d=u._extends({},n,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:p}),m=$8(d);return te.jsx(L8,u._extends({className:se(m.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:r},h,{ownerState:d,children:i}))});process.env.NODE_ENV!=="production"&&(jr.propTypes={children:Pt(f.node,e=>z.Children.toArray(e.children).some(r=>z.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
253
|
-
`)):null),classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),f.string]),disabled:f.bool,disableFocusRipple:f.bool,disableRipple:f.bool,edge:f.oneOf(["end","start",!1]),size:f.oneOfType([f.oneOf(["small","medium","large"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function F8({fill:e="rgba(38, 46, 61, 0.67)"}){return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:u.jsx("path",{fill:e,d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}const H8=u.newStyled(xi,{target:"e1g12j10",label:"StyledMuiPopover"})(".MuiPaper-root.MuiPopover-paper:not([style*='top']),.MuiPaper-root.MuiPopover-paper:not([style*='left']){opacity:0 !important;}"),th=e=>{const s=e,{children:t,open:r,id:n,position:o,onClose:i}=s,a=br(s,["children","open","id","position","onClose"]);return u.jsx(H8,J(q({id:n,className:"csdk-accessible",anchorEl:o==null?void 0:o.anchorEl,anchorOrigin:o==null?void 0:o.anchorOrigin,transformOrigin:o==null?void 0:o.contentOrigin,transitionDuration:0,open:r,slotProps:{paper:{sx:{display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"}}},onClose:i},a),{children:t}))};function B8({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:o}){var w,E,_;const[i,a]=F.useState(null),{themeSettings:s}=u.useThemeContext(),{typography:{primaryTextColor:l,secondaryTextColor:c,fontFamily:p}}=s,{t:h}=u.useTranslation(),d=x=>{a(x.currentTarget)},m=()=>{a(null)},g=F.useMemo(()=>e?u.jsx(Ze,{variant:"body2",style:{color:l,fontFamily:p,fontSize:13},children:e}):null,[e,l,p]),v=F.useMemo(()=>r.length===0?null:r.map(x=>u.jsxs(u.Fragment,{children:[u.jsx($r,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),u.jsxs("div",{className:"csdk-flex",children:[u.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:u.jsx(F8,{fill:"#fa5656"})}),u.jsx(Ze,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:p,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:x})]})]})),[r,c,p]),y=F.useMemo(()=>t?u.jsxs(u.Fragment,{children:[u.jsx($r,{sx:{my:"8px",borderColor:c,opacity:.3}}),u.jsx(Ze,{variant:"body2",style:{color:c,fontFamily:p,fontSize:13},children:t})]}):null,[t,c,p]);return u.jsxs(u.Fragment,{children:[u.jsx(Ui,{title:h("widgetHeader.info.tooltip"),style:{color:(w=s.chart)==null?void 0:w.textColor,fontFamily:(E=s.typography)==null?void 0:E.fontFamily},children:u.jsx(jr,{onClick:d,sx:{p:0},children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:u.jsx("path",{fill:(n==null?void 0:n.titleTextColor)||s.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),u.jsx(th,{open:!!i,position:i?{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:m,children:u.jsxs(J0,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[u.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:u.getSlightlyDifferentColor(s.general.backgroundColor)},children:[u.jsx(Ze,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:h("widgetHeader.info.details")}),u.jsx(jr,{onClick:o,sx:{p:0},children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:u.jsx("path",{fill:(_=s.chart)==null?void 0:_.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),u.jsx($r,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),u.jsxs(eh,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[g,v,y]})]})})]})}const j8=({title:e,description:t,errorMessages:r=[],warningMessages:n=[],dataSetName:o,styleOptions:i,onRefresh:a})=>{var c;const{themeSettings:s}=u.useThemeContext(),l=()=>{var h;const p=u.jsx(u.Fragment,{children:u.jsx(B8,{title:o,description:t,styleOptions:i,errorMessages:r,warningMessages:n,onRefresh:a})});return i!=null&&i.renderToolbar?(h=i==null?void 0:i.renderToolbar)==null?void 0:h.call(i,a,p):p};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(i==null?void 0:i.backgroundColor)||s.widget.header.backgroundColor},children:[u.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:z8((i==null?void 0:i.titleAlignment)||s.widget.header.titleAlignment),color:(i==null?void 0:i.titleTextColor)||s.widget.header.titleTextColor,fontFamily:(c=s.typography)==null?void 0:c.fontFamily,fontSize:15},children:e||""}),u.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:l()})]}),u.get(i,"dividerLine",s.widget.header.dividerLine)&&u.jsx($r,{style:{backgroundColor:(i==null?void 0:i.dividerLineColor)||s.widget.header.dividerLineColor||"#e6e6e6"}})]})};function z8(e){return e.toLowerCase()}const rh=e=>u.jsx(b8,{children:u.jsx(W8,q({},e))}),W8=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:o,bottomSlot:i,children:a,onRefresh:s=()=>{}})=>{var h,d,m;const{errors:l,warnings:c}=X0(),{themeSettings:p}=u.useThemeContext();return u.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden csdk-accessible",children:u.jsx("div",{className:"csdk-h-full",style:{padding:Z0[u.get(t,"spaceAround",p.widget.spaceAround)]||"0px"},children:u.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:u.get(t,"border",p.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||p.widget.borderColor,borderRadius:C8[(t==null?void 0:t.cornerRadius)||p.widget.cornerRadius]||0,boxShadow:T8(t,p),display:"flex",flexDirection:"column"},children:[!((h=t==null?void 0:t.header)!=null&&h.hidden)&&u.jsx(j8,{title:r,description:n,dataSetName:e,errorMessages:l,warningMessages:c,styleOptions:t==null?void 0:t.header,onRefresh:s}),o,u.jsx(Df,{theme:{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((d=p.chart)==null?void 0:d.backgroundColor)}},children:u.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((m=p.chart)==null?void 0:m.backgroundColor)},children:a})}),i]})})})};var V8="[object String]";function nh(e){return typeof e=="string"||!u.isArray(e)&&u.isObjectLike(e)&&u.baseGetTag(e)==V8}const U8=e=>{const t=q8(e);return t.config.disabled=!e.config.disabled,t},q8=e=>{const t=u.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function G8(e,t,r){const n={guid:t,excludeMembers:!1,backgroundFilter:r};return u.members(e,[],n)}function qi(e){if(!u.isMembersFilter(e))throw new u.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return G8(t,r,n)}function Rl(e){return"members"in e&&e.members.length===0}function ct(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function oh(e,t){return e===void 0&&t===void 0?!1:[e,t].some(r=>r===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.some((r,n)=>!u.isEqualWith(r,t[n],ih))}function Ol(e,t){return ct(e.attribute,t.attribute)}function ih(e,t){const r=u.flow(Y8,X8);return u.isEqual(r(e),r(t))}function Y8(e){return J(q({},e),{name:""})}function X8(e){return J(q({},e),{config:J(q({},e.config),{guid:""})})}function K8(e,t,r,n){if(r===void 0&&n===void 0)return!1;if([r,n].some(i=>i===void 0))return!0;function o(i,a){const s=i,l=i,c=a,p=a;return i===void 0&&a===void 0?!0:[i,a].some(h=>h===void 0)||s.operator!==c.operator?!1:l.instanceid&&p.instanceid?!oh(e==null?void 0:e.filter(h=>h.config.guid===l.instanceid),t==null?void 0:t.filter(h=>h.config.guid===p.instanceid)):o(s.left,c.left)&&o(s.right,c.right)||o(s.left,c.right)&&o(s.right,c.left)}return!o(r,n)}const ah="sdkHookInit",Q8=(e,t,r,n)=>{if(!r)return;Ed(ah,{packageName:t,packageVersion:"1.34.0",hookName:e},r.httpClient).finally(n)};function Z8(e){const{tracking:t,app:r}=u.useSisenseContext(),{trackEvent:n}=ms(),o=F.useRef(!1);F.useEffect(()=>{if(!(!t||!r)&&!o.current){const i={packageName:t.packageName||"sdk-ui",packageVersion:"1.34.0",hookName:e};n(ah,i,!t.enabled).finally(()=>o.current=!0)}},[t,e,n,r])}const sh=e=>t=>(...r)=>(Z8(e),t(...r));function is(e,t){switch(t.type){case"loading":return J8(e);case"success":return e7(t.data);case"error":return t7(t.error)}}function J8(e){return e.status==="loading"?e:J(q({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function e7(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function t7(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}function lh({enabled:e},t){const r=F.useRef(!1);return F.useCallback((n,o=!1)=>{const i=e===!1||!n,a=r.current;return r.current=i,!i&&(a||t||o)},[e,t])}var _a=function(){return u.root.Date.now()},r7="Expected a function",n7=Math.max,o7=Math.min;function i7(e,t,r){var n,o,i,a,s,l,c=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(r7);t=u.toNumber(t)||0,u.isObject(r)&&(p=!!r.leading,h="maxWait"in r,i=h?n7(u.toNumber(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function m(C){var S=n,O=o;return n=o=void 0,c=C,a=e.apply(O,S),a}function g(C){return c=C,s=setTimeout(w,t),p?m(C):a}function v(C){var S=C-l,O=C-c,M=t-S;return h?o7(M,i-O):M}function y(C){var S=C-l,O=C-c;return l===void 0||S>=t||S<0||h&&O>=i}function w(){var C=_a();if(y(C))return E(C);s=setTimeout(w,v(C))}function E(C){return s=void 0,d&&n?m(C):(n=o=void 0,a)}function _(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function x(){return s===void 0?a:E(_a())}function b(){var C=_a(),S=y(C);if(n=arguments,o=this,l=C,S){if(s===void 0)return g(l);if(h)return clearTimeout(s),s=setTimeout(w,t),m(l)}return s===void 0&&(s=setTimeout(w,t)),a}return b.cancel=_,b.flush=x,b}function Ml(e,{onLocalStateChange:t,syncCompareFn:r=u.isEqual}={}){const[n,o]=F.useState(e),i=F.useRef(e);F.useEffect(()=>{r(i.current,e)||o(e),i.current=e},[e,r]);const a=F.useCallback(s=>{o(l=>{const c=u.isFunction(s)?s(l):s;return t==null||t(c),c})},[t]);return[n,a]}function a7({chartType:e,dataOptions:t,enabled:r}){const[n,o]=F.useState([]),i=F.useMemo(()=>{var d;const h=u.isCartesian(e)&&((d=t.category)==null?void 0:d.length)===1||u.isScatter(e);return r&&h},[r,e,t]),a=F.useMemo(()=>{if(n.length===0)return h=>J(q({},h),{series:h.series.map(d=>J(q({},d),{data:d.data.map(m=>J(q({},m),{selected:!1}))}))});if(u.isScatter(e))return h=>J(q({},h),{series:h.series.map(d=>J(q({},d),{data:d.data.map(m=>J(q({},m),{selected:!n.some(g=>{var v,y;return g.x===m.x&&g.y===m.y&&g.size===m.z&&g.breakByPoint===((v=m.custom)==null?void 0:v.maskedBreakByPoint)&&g.breakByColor===((y=m.custom)==null?void 0:y.maskedBreakByColor)})}))}))});{const h=n.reduce((d,{categoryValue:m})=>(m&&(d[`${m}`]=!0),d),{});return d=>J(q({},d),{series:d.series.map(m=>J(q({},m),{data:m.data.map(g=>{var v,y;return h[(y=(v=g.custom)==null?void 0:v.xValue)==null?void 0:y[0]]?g:J(q({},g),{selected:!0})})}))})}},[n,e]),s=F.useMemo(()=>h=>{var d;return J(q({},h),{chart:J(q({},h.chart),{events:J(q({},(d=h.chart)==null?void 0:d.events),{click:()=>{o([])}})})})},[]),l=F.useCallback(h=>(i&&(h=a(h),h=s(h)),h),[a,s,i]),c=F.useCallback(h=>{i&&o(h)},[i]),p=F.useCallback(h=>{i&&o([h])},[i]);return{onBeforeRender:l,onDataPointsSelected:c,onDataPointClick:p}}const uh=()=>{const e=li();if(!e)throw new u.TranslatableError("errors.missingMenuRoot");const{openMenu:t,closeMenu:r}=e;return{openMenu:t,closeMenu:r}};function as(e){return e&&e.length?Ws(e):[]}function s7(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function l7(e,t){return function(r,n){if(r==null)return r;if(!u.isArrayLike(r))return e(r,n);for(var o=r.length,i=-1,a=Object(r);++i<o&&n(a[i],i,a)!==!1;);return r}}var u7=l7(u.baseForOwn);function c7(e,t,r,n){return u7(e,function(o,i,a){t(n,o,r(o),a)}),n}function ch(e,t){return function(r,n){var o=u.isArray(r)?s7:c7,i=t?t():{};return o(r,e,u.baseIteratee(n),i)}}var po=ch(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});const d7=Ur(te.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),f7=["slots","slotProps"],p7=le(hr)(({theme:e})=>u._extends({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":u._extends({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":u._extends({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:au(e.palette.grey[200],.12)}:{backgroundColor:au(e.palette.grey[600],.12)})})),h7=le(d7)({width:24,height:16});function dh(e){const{slots:t={},slotProps:r={}}=e,n=ae(e,f7),o=e;return te.jsx("li",{children:te.jsx(p7,u._extends({focusRipple:!0},n,{ownerState:o,children:te.jsx(h7,u._extends({as:t.CollapsedIcon,ownerState:o},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(dh.propTypes={slotProps:f.shape({collapsedIcon:f.oneOfType([f.func,f.object])}),slots:f.shape({CollapsedIcon:f.elementType}),sx:f.object});function m7(e){return we("MuiBreadcrumbs",e)}const g7=Ce("MuiBreadcrumbs",["root","ol","li","separator"]),v7=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],y7=e=>{const{classes:t}=e;return De({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},m7,t)},b7=le(Ze,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${g7.li}`]:t.li},t.root]})({}),_7=le("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),x7=le("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function w7(e,t,r,n){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,te.jsx(x7,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${a}`)):o.push(i),o),[])}const fh=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:h=1,maxItems:d=8,separator:m="/"}=n,g=ae(n,v7),[v,y]=z.useState(!1),w=u._extends({},n,{component:a,expanded:v,expandText:c,itemsAfterCollapse:p,itemsBeforeCollapse:h,maxItems:d,separator:m}),E=y7(w),_=Vt({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:w}),x=z.useRef(null),b=S=>{const O=()=>{y(!0);const M=x.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return h+p>=S.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${h}} >= maxItems={${d}}`].join(`
|
|
253
|
+
`)):null),classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),f.string]),disabled:f.bool,disableFocusRipple:f.bool,disableRipple:f.bool,edge:f.oneOf(["end","start",!1]),size:f.oneOfType([f.oneOf(["small","medium","large"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function F8({fill:e="rgba(38, 46, 61, 0.67)"}){return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:u.jsx("path",{fill:e,d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}const H8=u.newStyled(xi,{target:"e1g12j10",label:"StyledMuiPopover"})(".MuiPaper-root.MuiPopover-paper:not([style*='top']),.MuiPaper-root.MuiPopover-paper:not([style*='left']){opacity:0 !important;}"),th=e=>{const s=e,{children:t,open:r,id:n,position:o,onClose:i}=s,a=br(s,["children","open","id","position","onClose"]);return u.jsx(H8,J(q({id:n,className:"csdk-accessible",anchorEl:o==null?void 0:o.anchorEl,anchorOrigin:o==null?void 0:o.anchorOrigin,transformOrigin:o==null?void 0:o.contentOrigin,transitionDuration:0,open:r,slotProps:{paper:{sx:{display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"}}},onClose:i},a),{children:t}))};function B8({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:o}){var w,E,_;const[i,a]=F.useState(null),{themeSettings:s}=u.useThemeContext(),{typography:{primaryTextColor:l,secondaryTextColor:c,fontFamily:p}}=s,{t:h}=u.useTranslation(),d=x=>{a(x.currentTarget)},m=()=>{a(null)},g=F.useMemo(()=>e?u.jsx(Ze,{variant:"body2",style:{color:l,fontFamily:p,fontSize:13},children:e}):null,[e,l,p]),v=F.useMemo(()=>r.length===0?null:r.map(x=>u.jsxs(u.Fragment,{children:[u.jsx($r,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),u.jsxs("div",{className:"csdk-flex",children:[u.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:u.jsx(F8,{fill:"#fa5656"})}),u.jsx(Ze,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:p,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:x})]})]})),[r,c,p]),y=F.useMemo(()=>t?u.jsxs(u.Fragment,{children:[u.jsx($r,{sx:{my:"8px",borderColor:c,opacity:.3}}),u.jsx(Ze,{variant:"body2",style:{color:c,fontFamily:p,fontSize:13},children:t})]}):null,[t,c,p]);return u.jsxs(u.Fragment,{children:[u.jsx(Ui,{title:h("widgetHeader.info.tooltip"),style:{color:(w=s.chart)==null?void 0:w.textColor,fontFamily:(E=s.typography)==null?void 0:E.fontFamily},children:u.jsx(jr,{onClick:d,sx:{p:0},children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:u.jsx("path",{fill:(n==null?void 0:n.titleTextColor)||s.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),u.jsx(th,{open:!!i,position:i?{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:m,children:u.jsxs(J0,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[u.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:u.getSlightlyDifferentColor(s.general.backgroundColor)},children:[u.jsx(Ze,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:h("widgetHeader.info.details")}),u.jsx(jr,{onClick:o,sx:{p:0},children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:u.jsx("path",{fill:(_=s.chart)==null?void 0:_.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),u.jsx($r,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),u.jsxs(eh,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[g,v,y]})]})})]})}const j8=({title:e,description:t,errorMessages:r=[],warningMessages:n=[],dataSetName:o,styleOptions:i,onRefresh:a})=>{var c;const{themeSettings:s}=u.useThemeContext(),l=()=>{var h;const p=u.jsx(u.Fragment,{children:u.jsx(B8,{title:o,description:t,styleOptions:i,errorMessages:r,warningMessages:n,onRefresh:a})});return i!=null&&i.renderToolbar?(h=i==null?void 0:i.renderToolbar)==null?void 0:h.call(i,a,p):p};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(i==null?void 0:i.backgroundColor)||s.widget.header.backgroundColor},children:[u.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:z8((i==null?void 0:i.titleAlignment)||s.widget.header.titleAlignment),color:(i==null?void 0:i.titleTextColor)||s.widget.header.titleTextColor,fontFamily:(c=s.typography)==null?void 0:c.fontFamily,fontSize:15},children:e||""}),u.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:l()})]}),u.get(i,"dividerLine",s.widget.header.dividerLine)&&u.jsx($r,{style:{backgroundColor:(i==null?void 0:i.dividerLineColor)||s.widget.header.dividerLineColor||"#e6e6e6"}})]})};function z8(e){return e.toLowerCase()}const rh=e=>u.jsx(b8,{children:u.jsx(W8,q({},e))}),W8=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:o,bottomSlot:i,children:a,onRefresh:s=()=>{}})=>{var h,d,m;const{errors:l,warnings:c}=X0(),{themeSettings:p}=u.useThemeContext();return u.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden csdk-accessible",children:u.jsx("div",{className:"csdk-h-full",style:{padding:Z0[u.get(t,"spaceAround",p.widget.spaceAround)]||"0px"},children:u.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:u.get(t,"border",p.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||p.widget.borderColor,borderRadius:C8[(t==null?void 0:t.cornerRadius)||p.widget.cornerRadius]||0,boxShadow:T8(t,p),display:"flex",flexDirection:"column"},children:[!((h=t==null?void 0:t.header)!=null&&h.hidden)&&u.jsx(j8,{title:r,description:n,dataSetName:e,errorMessages:l,warningMessages:c,styleOptions:t==null?void 0:t.header,onRefresh:s}),o,u.jsx(Df,{theme:{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((d=p.chart)==null?void 0:d.backgroundColor)}},children:u.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((m=p.chart)==null?void 0:m.backgroundColor)},children:a})}),i]})})})};var V8="[object String]";function nh(e){return typeof e=="string"||!u.isArray(e)&&u.isObjectLike(e)&&u.baseGetTag(e)==V8}const U8=e=>{const t=q8(e);return t.config.disabled=!e.config.disabled,t},q8=e=>{const t=u.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function G8(e,t,r){const n={guid:t,excludeMembers:!1,backgroundFilter:r};return u.members(e,[],n)}function qi(e){if(!u.isMembersFilter(e))throw new u.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return G8(t,r,n)}function Rl(e){return"members"in e&&e.members.length===0}function ct(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function oh(e,t){return e===void 0&&t===void 0?!1:[e,t].some(r=>r===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.some((r,n)=>!u.isEqualWith(r,t[n],ih))}function Ol(e,t){return ct(e.attribute,t.attribute)}function ih(e,t){const r=u.flow(Y8,X8);return u.isEqual(r(e),r(t))}function Y8(e){return J(q({},e),{name:""})}function X8(e){return J(q({},e),{config:J(q({},e.config),{guid:""})})}function K8(e,t,r,n){if(r===void 0&&n===void 0)return!1;if([r,n].some(i=>i===void 0))return!0;function o(i,a){const s=i,l=i,c=a,p=a;return i===void 0&&a===void 0?!0:[i,a].some(h=>h===void 0)||s.operator!==c.operator?!1:l.instanceid&&p.instanceid?!oh(e==null?void 0:e.filter(h=>h.config.guid===l.instanceid),t==null?void 0:t.filter(h=>h.config.guid===p.instanceid)):o(s.left,c.left)&&o(s.right,c.right)||o(s.left,c.right)&&o(s.right,c.left)}return!o(r,n)}const ah="sdkHookInit",Q8=(e,t,r,n)=>{if(!r)return;Ed(ah,{packageName:t,packageVersion:"1.35.0",hookName:e},r.httpClient).finally(n)};function Z8(e){const{tracking:t,app:r}=u.useSisenseContext(),{trackEvent:n}=ms(),o=F.useRef(!1);F.useEffect(()=>{if(!(!t||!r)&&!o.current){const i={packageName:t.packageName||"sdk-ui",packageVersion:"1.35.0",hookName:e};n(ah,i,!t.enabled).finally(()=>o.current=!0)}},[t,e,n,r])}const sh=e=>t=>(...r)=>(Z8(e),t(...r));function is(e,t){switch(t.type){case"loading":return J8(e);case"success":return e7(t.data);case"error":return t7(t.error)}}function J8(e){return e.status==="loading"?e:J(q({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function e7(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function t7(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}function lh({enabled:e},t){const r=F.useRef(!1);return F.useCallback((n,o=!1)=>{const i=e===!1||!n,a=r.current;return r.current=i,!i&&(a||t||o)},[e,t])}var _a=function(){return u.root.Date.now()},r7="Expected a function",n7=Math.max,o7=Math.min;function i7(e,t,r){var n,o,i,a,s,l,c=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(r7);t=u.toNumber(t)||0,u.isObject(r)&&(p=!!r.leading,h="maxWait"in r,i=h?n7(u.toNumber(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function m(C){var S=n,O=o;return n=o=void 0,c=C,a=e.apply(O,S),a}function g(C){return c=C,s=setTimeout(w,t),p?m(C):a}function v(C){var S=C-l,O=C-c,M=t-S;return h?o7(M,i-O):M}function y(C){var S=C-l,O=C-c;return l===void 0||S>=t||S<0||h&&O>=i}function w(){var C=_a();if(y(C))return E(C);s=setTimeout(w,v(C))}function E(C){return s=void 0,d&&n?m(C):(n=o=void 0,a)}function _(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function x(){return s===void 0?a:E(_a())}function b(){var C=_a(),S=y(C);if(n=arguments,o=this,l=C,S){if(s===void 0)return g(l);if(h)return clearTimeout(s),s=setTimeout(w,t),m(l)}return s===void 0&&(s=setTimeout(w,t)),a}return b.cancel=_,b.flush=x,b}function Ml(e,{onLocalStateChange:t,syncCompareFn:r=u.isEqual}={}){const[n,o]=F.useState(e),i=F.useRef(e);F.useEffect(()=>{r(i.current,e)||o(e),i.current=e},[e,r]);const a=F.useCallback(s=>{o(l=>{const c=u.isFunction(s)?s(l):s;return t==null||t(c),c})},[t]);return[n,a]}function a7({chartType:e,dataOptions:t,enabled:r}){const[n,o]=F.useState([]),i=F.useMemo(()=>{var d;const h=u.isCartesian(e)&&((d=t.category)==null?void 0:d.length)===1||u.isScatter(e);return r&&h},[r,e,t]),a=F.useMemo(()=>{if(n.length===0)return h=>J(q({},h),{series:h.series.map(d=>J(q({},d),{data:d.data.map(m=>J(q({},m),{selected:!1}))}))});if(u.isScatter(e))return h=>J(q({},h),{series:h.series.map(d=>J(q({},d),{data:d.data.map(m=>J(q({},m),{selected:!n.some(g=>{var v,y;return g.x===m.x&&g.y===m.y&&g.size===m.z&&g.breakByPoint===((v=m.custom)==null?void 0:v.maskedBreakByPoint)&&g.breakByColor===((y=m.custom)==null?void 0:y.maskedBreakByColor)})}))}))});{const h=n.reduce((d,{categoryValue:m})=>(m&&(d[`${m}`]=!0),d),{});return d=>J(q({},d),{series:d.series.map(m=>J(q({},m),{data:m.data.map(g=>{var v,y;return h[(y=(v=g.custom)==null?void 0:v.xValue)==null?void 0:y[0]]?g:J(q({},g),{selected:!0})})}))})}},[n,e]),s=F.useMemo(()=>h=>{var d;return J(q({},h),{chart:J(q({},h.chart),{events:J(q({},(d=h.chart)==null?void 0:d.events),{click:()=>{o([])}})})})},[]),l=F.useCallback(h=>(i&&(h=a(h),h=s(h)),h),[a,s,i]),c=F.useCallback(h=>{i&&o(h)},[i]),p=F.useCallback(h=>{i&&o([h])},[i]);return{onBeforeRender:l,onDataPointsSelected:c,onDataPointClick:p}}const uh=()=>{const e=li();if(!e)throw new u.TranslatableError("errors.missingMenuRoot");const{openMenu:t,closeMenu:r}=e;return{openMenu:t,closeMenu:r}};function as(e){return e&&e.length?Ws(e):[]}function s7(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function l7(e,t){return function(r,n){if(r==null)return r;if(!u.isArrayLike(r))return e(r,n);for(var o=r.length,i=-1,a=Object(r);++i<o&&n(a[i],i,a)!==!1;);return r}}var u7=l7(u.baseForOwn);function c7(e,t,r,n){return u7(e,function(o,i,a){t(n,o,r(o),a)}),n}function ch(e,t){return function(r,n){var o=u.isArray(r)?s7:c7,i=t?t():{};return o(r,e,u.baseIteratee(n),i)}}var po=ch(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});const d7=Ur(te.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),f7=["slots","slotProps"],p7=le(hr)(({theme:e})=>u._extends({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":u._extends({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":u._extends({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:au(e.palette.grey[200],.12)}:{backgroundColor:au(e.palette.grey[600],.12)})})),h7=le(d7)({width:24,height:16});function dh(e){const{slots:t={},slotProps:r={}}=e,n=ae(e,f7),o=e;return te.jsx("li",{children:te.jsx(p7,u._extends({focusRipple:!0},n,{ownerState:o,children:te.jsx(h7,u._extends({as:t.CollapsedIcon,ownerState:o},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(dh.propTypes={slotProps:f.shape({collapsedIcon:f.oneOfType([f.func,f.object])}),slots:f.shape({CollapsedIcon:f.elementType}),sx:f.object});function m7(e){return we("MuiBreadcrumbs",e)}const g7=Ce("MuiBreadcrumbs",["root","ol","li","separator"]),v7=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],y7=e=>{const{classes:t}=e;return De({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},m7,t)},b7=le(Ze,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${g7.li}`]:t.li},t.root]})({}),_7=le("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),x7=le("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function w7(e,t,r,n){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,te.jsx(x7,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${a}`)):o.push(i),o),[])}const fh=z.forwardRef(function(t,r){const n=Re({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:h=1,maxItems:d=8,separator:m="/"}=n,g=ae(n,v7),[v,y]=z.useState(!1),w=u._extends({},n,{component:a,expanded:v,expandText:c,itemsAfterCollapse:p,itemsBeforeCollapse:h,maxItems:d,separator:m}),E=y7(w),_=Vt({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:w}),x=z.useRef(null),b=S=>{const O=()=>{y(!0);const M=x.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return h+p>=S.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${h}} >= maxItems={${d}}`].join(`
|
|
254
254
|
`)),S):[...S.slice(0,h),te.jsx(dh,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:_},onClick:O},"ellipsis"),...S.slice(S.length-p,S.length)]},C=z.Children.toArray(o).filter(S=>(process.env.NODE_ENV!=="production"&&Nn.isFragment(S)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
255
255
|
`)),z.isValidElement(S))).map((S,O)=>te.jsx("li",{className:E.li,children:S},`child-${O}`));return te.jsx(b7,u._extends({ref:r,component:a,color:"text.secondary",className:se(E.root,i),ownerState:w},g,{children:te.jsx(_7,{className:E.ol,ref:x,ownerState:w,children:w7(v||d&&C.length<=d?C:b(C),E.separator,m,w)})}))});process.env.NODE_ENV!=="production"&&(fh.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,expandText:f.string,itemsAfterCollapse:bt,itemsBeforeCollapse:bt,maxItems:bt,separator:f.node,slotProps:f.shape({collapsedIcon:f.oneOfType([f.func,f.object])}),slots:f.shape({CollapsedIcon:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});function C7(e){return we("MuiButton",e)}const No=Ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ph=z.createContext({});process.env.NODE_ENV!=="production"&&(ph.displayName="ButtonGroupContext");const hh=z.createContext(void 0);process.env.NODE_ENV!=="production"&&(hh.displayName="ButtonGroupButtonContext");const T7=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],E7=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,`color${fe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fe(o)}`],endIcon:["icon","endIcon",`iconSize${fe(o)}`]},l=De(s,C7,a);return u._extends({},a,l)},mh=e=>u._extends({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),S7=le(hr,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${fe(r.color)}`],t[`size${fe(r.size)}`],t[`${r.variant}Size${fe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return u._extends({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":u._extends({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":u._extends({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${No.focusVisible}`]:u._extends({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${No.disabled}`]:u._extends({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Pe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${No.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${No.disabled}`]:{boxShadow:"none"}}),R7=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>u._extends({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},mh(e))),O7=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>u._extends({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},mh(e))),Un=z.forwardRef(function(t,r){const n=z.useContext(ph),o=z.useContext(hh),i=wf(n,t),a=Re({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:p,disabled:h=!1,disableElevation:d=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:y=!1,size:w="medium",startIcon:E,type:_,variant:x="text"}=a,b=ae(a,T7),C=u._extends({},a,{color:l,component:c,disabled:h,disableElevation:d,disableFocusRipple:m,fullWidth:y,size:w,type:_,variant:x}),S=E7(C),O=E&&te.jsx(R7,{className:S.startIcon,ownerState:C,children:E}),M=g&&te.jsx(O7,{className:S.endIcon,ownerState:C,children:g}),D=o||"";return te.jsxs(S7,u._extends({ownerState:C,className:se(n.className,S.root,p,D),component:c,disabled:h,focusRipple:!m,focusVisibleClassName:se(S.focusVisible,v),ref:r,type:_},b,{classes:S,children:[O,s,M]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","primary","secondary","success","error","info","warning"]),f.string]),component:f.elementType,disabled:f.bool,disableElevation:f.bool,disableFocusRipple:f.bool,disableRipple:f.bool,endIcon:f.node,focusVisibleClassName:f.string,fullWidth:f.bool,href:f.string,size:f.oneOfType([f.oneOf(["small","medium","large"]),f.string]),startIcon:f.node,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.oneOfType([f.oneOf(["button","reset","submit"]),f.string]),variant:f.oneOfType([f.oneOf(["contained","outlined","text"]),f.string])});const M7=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:o}=u.useTranslation(),i=t.name,a=u.newStyled(Un,{target:"e1olvz1k0",label:"StyledCancelButton"})("&&{background-color:",n.activeDrillBackgroundColor,";color:",n.primaryButtonTextColor,";border-radius:100%;border:2px solid white;min-width:39px;width:39px;height:39px;z-index:10;padding:7px;cursor:pointer;text-transform:none;margin-right:-5px;&:hover{background-color:",n.activeDrillHoverBackgroundColor,";color:",n.primaryTextColor,";}}"),s=u.newStyled("svg",{target:"e1olvz1k1",label:"Icon"})("width:22px;height:22px;fill:#9ea2ab;"),l=()=>u.jsx(a,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:u.jsx(s,{width:22,height:22,viewBox:"0 0 24 24",children:u.jsx("path",{fill:"#9EA2AB",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})})}),c=u.newStyled(Un,{target:"e1olvz1k2",label:"StyledCurrentDrillButton"})("&&{position:relative;font-family:",h=>h.theme.fontFamily,";border-radius:0;border:1px solid ",wt,";background-color:",h=>h.theme.chartBackgroundColor,";border-right:none;border-left:none;color:",h=>h.theme.secondaryTextColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;transition:background-color 0.2s,border-color 0.2s,color 0.2s;text-transform:none;cursor:auto;pointer-events:none;white-space:nowrap;&:hover{background-color:",h=>h.theme.chartBackgroundColor,";border:1px solid ",wt,";border-right:none;border-left:none;}}");return{CancelButton:l,CurrentDrillButton:()=>u.jsxs(c,{theme:n,children:[i," (",o("drilldown.breadcrumbsAllSuffix"),")",u.jsx("span",{className:"flex items-center justify-between",children:u.jsx("span",{className:"csdk-absolute csdk-right-[0px] csdk-top-[3px] csdk-h-[18px] csdk-w-[18px] csdk-transform csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:"transparent",borderTop:`1px solid ${wt}`,borderRight:`1px solid ${wt}`}})})]})}},P7={modifiers:[{name:"offset",options:{offset:[0,12]}}]},D7=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:o}=u.useTranslation();return u.jsxs("div",{className:"csdk-w-50 csdk-px-[12px] csdk-shadow-md csdk-shadow-gray-500 csdk-rounded-md csdk-bg-white",style:{backgroundColor:e.chartBackgroundColor,color:e.primaryTextColor},children:[u.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.members")}),u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),u.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.table")}),u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),u.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:o("drilldown.popover.column")}),u.jsx(Ze,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},k7=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[o,i]=n?n[1].split("."):["",""],a=!!e;return u.jsx(fo,{open:a,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:P7,children:e&&u.jsx(D7,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:o,currentColumn:i})})},I7=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:o,primaryButtonTextColor:i},chart:{backgroundColor:a}}}=u.useThemeContext(),s=u.scaleBrightness(a,-.02),l=u.scaleBrightness(s,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:o,primaryButtonTextColor:i,chartBackgroundColor:a,activeDrillBackgroundColor:s,activeDrillHoverBackgroundColor:l}},A7=u.newStyled(jr,{target:"egcu0nk0",label:"StyledPrevButton"})("&&{position:absolute;left:0;right:auto;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,white 30%,rgba(255,255,255,0) 100%);display:inline-flex;span[aria-label='prev-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),N7=u.newStyled(jr,{target:"egcu0nk1",label:"StyledNextButton"})("&&{position:absolute;left:auto;right:0;margin:auto;bottom:0;top:0;z-index:10;background:linear-gradient(to right,rgba(255,255,255,0) 0,white 70%);display:inline-flex;span[aria-label='next-item']{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:5px solid #000;color:transparent;opacity:0.3;&:hover{opacity:0.8;}}}"),$7=({currentDimension:e,children:t})=>{const{t:r}=u.useTranslation(),n=F.useRef(null),[o,i]=F.useState(0),[a,s]=F.useState(0),[l,c]=F.useState(0),p=()=>{var g;return(g=n.current)==null?void 0:g.querySelector("ol")};F.useEffect(()=>{const g=p();if(g){const v=g.clientWidth,y=g.scrollWidth,w=g.scrollLeft;i(v),s(y),c(w)}},[e]),F.useEffect(()=>{const g=p();function v(){if(g){const E=g.clientWidth;i(E)}}function y(){if(g){const E=g.scrollLeft;c(E)}}const w=new ResizeObserver(v);return g?(w.observe(g),g.addEventListener("scroll",y),()=>{w.disconnect(),g.removeEventListener("scroll",y)}):()=>{}},[]);const h=g=>{const y="smooth",w=p();w&&w.scrollBy({left:g==="right"?200:-200,behavior:y})},d=l!=0,m=Math.floor(a-l)>o;return u.jsxs("div",{style:{position:"relative"},children:[d&&u.jsx(A7,{onClick:()=>h("left"),children:u.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),m&&u.jsx(N7,{onClick:()=>h("right"),children:u.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),u.jsx("div",{ref:n,children:t})]})},wt="#F2F2F2",L7=u.newStyled(Un,{target:"ex0ybhj0",label:"StyledDrillButton"})("&&{font-family:",({theme:e})=>e.fontFamily,";position:relative;border-radius:0;border:1px solid ",wt,";border-right:none;color:",({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor,";background-color:",({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor,";padding-right:1.25rem;padding-left:1.875rem;height:1.64rem;font-size:13px;text-transform:none;transition:background-color 0.2s,border-color 0.2s,color 0.2s;white-space:nowrap;cursor:",({active:e})=>e==="true"?"pointer":"auto",";margin-right:",({active:e})=>e==="true"?"5px":"0px",";&:hover{background-color:",({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor,";border:1px solid ",wt,";border-right:none;}.MuiTouchRipple-root{display:none;}}"),F7=u.newStyled(fh,{target:"ex0ybhj1",label:"StyledBreadcrumbs"})(".MuiBreadcrumbs-ol{flex-wrap:nowrap;overflow:hidden;}.MuiBreadcrumbs-separator{display:none;}"),H7=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:o,themeProps:i,popperParams:a,index:s})=>u.jsx(L7,{theme:i,active:e.toString(),index:s,onMouseEnter:r,onMouseLeave:n,onClick:o,children:u.jsxs("span",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?u.jsx("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:t===(a==null?void 0:a.filterDisplayValues)?i.activeDrillHoverBackgroundColor:i.activeDrillBackgroundColor,borderTop:`1px solid ${wt}`,borderRight:`1px solid ${wt}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,u.jsx("span",{className:`csdk-absolute ${e?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:i.chartBackgroundColor,borderTop:`1px solid ${wt}`,borderRight:`1px solid ${wt}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),gh=ro({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[o,i]=F.useState(null),[a,s]=F.useState(!1),l=I7(),{CancelButton:c,CurrentDrillButton:p}=M7({clearDrilldownSelections:r,currentDimension:t,isHovered:a,setIsHovered:s,themeProps:l}),h=v=>y=>{s(!0),i({filterDisplayValues:v,anchorEl:y.currentTarget})},d=()=>{s(!1),i(null)},m=v=>v<e.length-1,g=v=>v===e.length-2;return e.length?u.jsx("div",{"aria-label":"drilldown-breadcrumbs",children:u.jsx($7,{currentDimension:t,children:u.jsxs(F7,{separator:null,sx:{backgroundColor:l.chartBackgroundColor,padding:"4px"},children:[u.jsx(c,{}),e.map((v,y)=>{const w=m(y),E=g(y);return u.jsx("div",{children:u.jsx(H7,{isActive:w,isLastActive:E,filterDisplayValue:v,handleMouseEnter:h(v),handleMouseLeave:d,handleClick:()=>n(y+1),themeProps:l,popperParams:o,index:y})},y)}),u.jsx(p,{}),u.jsx(k7,{popperParams:o,currentDimension:t,themeProps:l})]})})}):null}),vh=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=F.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),o=F.useMemo(()=>e.drilldownSelections||[],[e.drilldownSelections]),{t:i}=u.useTranslation();if(!t)throw new u.TranslatableError("errors.drilldownNoInitialDimension");const[a,s]=Ml(o,{onLocalStateChange:r}),l=F.useMemo(()=>[u.translateColumnToAttribute(t),...a.map(({nextDimension:y})=>y)],[t,a]),c=F.useMemo(()=>n.filter(y=>{if(u.MetadataTypes.isAttribute(y)){const _=y;return l.every(x=>!ct(x,_))}const E=y;return l.every((_,x)=>ct(_,E.levels[x]))}),[n,l]),p=F.useCallback((y,w,E)=>{s(_=>yh(_,y,w,E))},[s]),h=F.useCallback(y=>{s(w=>w.slice(0,y))},[s]),d=F.useCallback(()=>{s([])},[s]),{drilldownFilters:m,drilldownFiltersDisplayValues:g,drilldownDimension:v}=F.useMemo(()=>bh(a,t,i),[a,t,i]);return{drilldownSelections:a,availableDrilldownPaths:c,drilldownFilters:m,drilldownFiltersDisplayValues:g,drilldownDimension:v,selectDrilldown:p,sliceDrilldownSelections:h,clearDrilldownSelections:d}},yh=(e,t,r,n)=>{var d,m;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(ct(n.levels[0],r))return[];const i=(d=e==null?void 0:e.findIndex(g=>ct(g.nextDimension,r)))!=null?d:-1;if(i!==-1)return e.slice(0,i+1);const s=(m=u.last(e))==null?void 0:m.nextDimension,l=e.length?n.levels.findIndex(g=>s&&ct(g,s)):0,c=n.levels.indexOf(r),h=n.levels.slice(l+1,c+1).map((g,v)=>({points:v===0?t:[],nextDimension:g}));return[...e,...h]},bh=(e,t,r)=>{let n=t&&u.translateColumnToAttribute(t);const o=[],i=[];return e.forEach(({points:a,nextDimension:s})=>{o.push(u.members(n,a.map(B7)));const l=a.length?a.map(_h):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];i.push(l),n=s}),{drilldownFilters:o,drilldownFiltersDisplayValues:i,drilldownDimension:n}};function _h(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function B7(e){return"categoryValue"in e?`${e.categoryValue}`:""}var j7=Object.prototype,z7=j7.hasOwnProperty,W7=ch(function(e,t,r){z7.call(e,r)?e[r].push(t):u.baseAssignValue(e,r,[t])});function V7(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function xh(e,t){return e.find(r=>ct(r.attribute,t))}function wh(e,t,r){const n=xh(r,e);return u.members(e,t.map(o=>`${o}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function Ch(e,t){return Ol(e,t)&&"members"in e&&"members"in t&&u.isEqual(e.members,t.members)}var qn=function(e){return e.DRILLDOWN_CHART_POINTS_SELECTION="drilldown-chart-points-selection",e.DRILLDOWN_DRILL_DIRECTIONS="drilldown-drill-directions",e.CROSSFILTERING_CHART_POINTS_SELECTION="crossfiltering-chart-points-selection",e}({});const Th=2;function rn(e,t){const r=e.flatMap(({entries:o={}})=>t.flatMap(i=>{const a=o[i];return a?(Array.isArray(a)?a:[a]).filter(({attribute:l})=>!!l):[]})),n=W7(r,({id:o})=>o);return Object.values(n).map(o=>({attribute:o[0].attribute,values:as(o.map(({value:i})=>i)),displayValues:as(o.map(({displayValue:i})=>i))}))}function U7(e){return rn(e,["category"])}function q7(e){return rn(e,["category"])}function G7(e,t){const r=rn(e,["category"]),n=r.length-1;return t.category.map((o,i)=>n===i?r[i]:{attribute:u.translateColumnToAttribute(o),values:[],displayValues:[]})}function Y7(e){return rn(e,["x","y","breakByPoint","breakByColor"])}function X7(e){return rn(e,["geo"])}function K7(e){return rn(e,["geo"])}function zo(e,t,r){return e==="plugin"?[]:e==="text"?[]:e==="pivot"?[]:e==="treemap"||e==="sunburst"?G7(r,t):u.isCartesian(e)||e==="pie"||e==="funnel"?U7(r):u.isBoxplot(e)?q7(r):u.isScatter(e)?Y7(r):u.isScattermap(e)?X7(r):u.isAreamap(e)?K7(r):[]}function Pl(e,t){let r=[];return e==="plugin"?r=[]:e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:u.isCartesian(e)||u.isCategorical(e)||u.isBoxplot(e)||u.isRange(e)?r=[...t.category]:u.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!u.isMeasureColumn(n))):(u.isScattermap(e)||u.isAreamap(e))&&(r=[...t.geo]),r.map(u.translateColumnToAttribute)}function Q7(e,t,r){const n=xh(t,e.attribute);if(!n||Rl(n))return null;if(Ch(e,n))return qi(e);if(u.isMembersFilter(n)&&r){const[o,i]=po(n.members,s=>e.members.includes(s));if(o.length===e.members.length&&i.length)return wh(e.attribute,i,[n])}return null}function Z7(e,t,r){const n=t.filter(a=>!a.config.disabled),o=e.map(a=>Q7(a,n,r)).filter(a=>!!a),i=e.length!==o.length;return{filters:i?e:o,isSelection:i}}function xa(e,t,r=!1){const n=e.map(({attribute:i,values:a})=>wh(i,a,t)),o=J7(t,n);return Z7(o,t,r)}function J7(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(o=>Ol(o,n))):t}function eI(e,t,r){const n=zo(e,t,r).filter(({displayValues:s})=>s.length);if(n.length===0)return"";const[o]=n,i=r.length===1,a=o.displayValues.length>Th;return n.length>1?i?n.map(s=>s.displayValues[0]).join(", "):a?"":o.displayValues.join(", "):a?o.attribute.name:o.displayValues.join(", ")}function Qc(e,t,r){const n=eI(e,t,r);return n?{id:qn.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function Zc(e,t){return{items:[{caption:e,onClick:t}]}}const tI=({initialDimension:e,drilldownPaths:t,drilldownSelections:r,openMenu:n,onDrilldownSelectionsChange:o})=>{const{t:i}=u.useTranslation(),{availableDrilldownPaths:a,drilldownFilters:s,drilldownFiltersDisplayValues:l,drilldownDimension:c,selectDrilldown:p,sliceDrilldownSelections:h,clearDrilldownSelections:d}=vh({initialDimension:e,drilldownPaths:t,drilldownSelections:r,onDrilldownSelectionsChange:o}),m=F.useCallback((v,y)=>{const w=[Eh(y,c),Sh(a,c,(E,_)=>{p(y,E,_)},i)];n({position:v,itemSections:w})},[c,a,i,p,n]),g=F.useMemo(()=>c&&u.jsx(gh,{filtersDisplayValues:l,currentDimension:c,clearDrilldownSelections:d,sliceDrilldownSelections:h}),[d,c,l,h]);return{drilldownDimension:c,drilldownFilters:s,breadcrumbs:g,openDrilldownMenu:m}};function Eh(e,t){const r=as(e.map(_h).filter(n=>!!n));return r.length>Th?{id:qn.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:qn.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function rI(e){return 30+12*e}function Sh(e,t,r,n){const[o,i]=po(e,u.MetadataTypes.isAttribute.bind(u.MetadataTypes)),a=o.map(l=>({caption:l.name,onClick:()=>r(l)})),s=i.map(l=>({caption:l.title,subItems:[{items:l.levels.map((c,p)=>({caption:c.name,class:p===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${rI(p)}px`},disabled:ct(c,t),onClick:()=>r(c,l)}))}]}));return{id:qn.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:[...s,...a]}}var Gi=function(e){return e.HIGHLIGHT="highlight",e.FILTER="filter",e}({});function Rh(e){return function(t){t=u.toString(t);var r=Nf(t)?za(t):void 0,n=r?r[0]:t.charAt(0),o=r?Af(r,1).join(""):t.slice(1);return n[e]()+o}}var Oh=Rh("toUpperCase");function nI(e){return Oh(u.toString(e).toLowerCase())}function oI(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function iI(e){return function(t){return e==null?void 0:e[t]}}var aI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},sI=iI(aI),lI=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uI="\\u0300-\\u036f",cI="\\ufe20-\\ufe2f",dI="\\u20d0-\\u20ff",fI=uI+cI+dI,pI="["+fI+"]",hI=RegExp(pI,"g");function mI(e){return e=u.toString(e),e&&e.replace(lI,sI).replace(hI,"")}var gI=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function vI(e){return e.match(gI)||[]}var yI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function bI(e){return yI.test(e)}var Mh="\\ud800-\\udfff",_I="\\u0300-\\u036f",xI="\\ufe20-\\ufe2f",wI="\\u20d0-\\u20ff",CI=_I+xI+wI,Ph="\\u2700-\\u27bf",Dh="a-z\\xdf-\\xf6\\xf8-\\xff",TI="\\xac\\xb1\\xd7\\xf7",EI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",SI="\\u2000-\\u206f",RI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kh="A-Z\\xc0-\\xd6\\xd8-\\xde",OI="\\ufe0e\\ufe0f",Ih=TI+EI+SI+RI,Ah="['’]",Jc="["+Ih+"]",MI="["+CI+"]",Nh="\\d+",PI="["+Ph+"]",$h="["+Dh+"]",Lh="[^"+Mh+Ih+Nh+Ph+Dh+kh+"]",DI="\\ud83c[\\udffb-\\udfff]",kI="(?:"+MI+"|"+DI+")",II="[^"+Mh+"]",Fh="(?:\\ud83c[\\udde6-\\uddff]){2}",Hh="[\\ud800-\\udbff][\\udc00-\\udfff]",Dr="["+kh+"]",AI="\\u200d",ed="(?:"+$h+"|"+Lh+")",NI="(?:"+Dr+"|"+Lh+")",td="(?:"+Ah+"(?:d|ll|m|re|s|t|ve))?",rd="(?:"+Ah+"(?:D|LL|M|RE|S|T|VE))?",Bh=kI+"?",jh="["+OI+"]?",$I="(?:"+AI+"(?:"+[II,Fh,Hh].join("|")+")"+jh+Bh+")*",LI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",HI=jh+Bh+$I,BI="(?:"+[PI,Fh,Hh].join("|")+")"+HI,jI=RegExp([Dr+"?"+$h+"+"+td+"(?="+[Jc,Dr,"$"].join("|")+")",NI+"+"+rd+"(?="+[Jc,Dr+ed,"$"].join("|")+")",Dr+"?"+ed+"+"+td,Dr+"+"+rd,FI,LI,Nh,BI].join("|"),"g");function zI(e){return e.match(jI)||[]}function WI(e,t,r){return e=u.toString(e),t=t,t===void 0?bI(e)?zI(e):vI(e):e.match(t)||[]}var VI="['’]",UI=RegExp(VI,"g");function qI(e){return function(t){return oI(WI(mI(t).replace(UI,"")),e,"")}}var zh=qI(function(e,t,r){return t=t.toLowerCase(),e+(r?nI(t):t)});function GI(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(o=>u.createDimensionalElementFromJaql(o))}}function Wh(e,t,r){return rt(this,null,function*(){const o=yield new u.RestApi(e,r).getHierarchies(t);return o==null?void 0:o.map(i=>GI(i))})}const YI=sh("useGetHierarchyModels")(Vh);function Vh(e){const t=Sl(e,["dataSource","dimension","ids","alwaysIncluded"]),r=lh(e,t),[n,o]=F.useReducer(is,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=u.useSisenseContext();return F.useEffect(()=>{i||o({type:"error",error:new u.TranslatableError("errors.sisenseContextNotFound")}),r(a)&&(o({type:"loading"}),Wh(a.httpClient,e,a.defaultDataSource).then(s=>{o({type:"success",data:s})}).catch(s=>{o({type:"error",error:s})}))},[a,i,e,r]),n.data&&t?nd(is(n,{type:"loading"})):nd(n)}function nd(e){const n=e,{data:t}=n,r=br(n,["data"]);return J(q({},r),{hierarchies:t})}function XI({attribute:e,dataSource:t,drilldownPaths:r=[],enabled:n}){const[o,i]=F.useMemo(()=>po(r,nh),[r]),{hierarchies:a=[]}=Vh({enabled:n,dataSource:t,dimension:e,ids:o,alwaysIncluded:!0});return F.useMemo(()=>a.length?[...a,...i]:i,[a,i])}function KI(e,t){return Pl(e,t)[0]}function QI(e){return[...u.CARTESIAN_CHART_TYPES,...u.CATEGORICAL_CHART_TYPES,...u.SCATTER_CHART_TYPES,...u.BOXPLOT_CHART_TYPES,...u.RANGE_CHART_TYPES].includes(e)}function ZI(e,t){return Pl(e,t).length===1}function JI(e,t){return ZI(e,t)&&QI(e)}function Uh(e,t,r){const n=o=>!!o&&!ct(r,u.translateColumnToAttribute(o));if(u.isCartesian(e)||u.isCategorical(e)||u.isBoxplot(e)||u.isRange(e)){const o=t.category[0];if(n(o))return J(q({},t),{category:[r]})}else if(u.isScatter(e)){const o=t,i=["x","y","breakByPoint","breakByColor"];for(const a of i){const s=o[a];if(s&&!u.isMeasureColumn(s)&&n(s))return J(q({},o),{[a]:r})}}return t}function od(e,t,r){return e.map(n=>{const o=["x","y","breakByPoint","breakByColor"],i=[...o,"size"].some(s=>s in n),a=o.find(s=>r[s]&&!u.isMeasureColumn(r[s]));if(i){const s=t,l=s.type==="mouseup";l&&console.warn("No drilldown support for multi-selection in scatter chart");const c=l?n[a]:s.point.options.custom[zh(`{masked ${a}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}const eA=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:o,drilldownOptions:i}=e,{drilldownSelections:a}=i||{},{openMenu:s}=uh(),l=F.useMemo(()=>JI(r,n),[r,n]),c=F.useMemo(()=>[...(i==null?void 0:i.drilldownPaths)||[],...(i==null?void 0:i.drilldownDimensions)||[]],[i==null?void 0:i.drilldownPaths,i==null?void 0:i.drilldownDimensions]),p=F.useMemo(()=>{const O=u.createAttribute({name:"dummy drilldown initial attribute"});return KI(r,n)||O},[r,n]),h=XI({attribute:p,dataSource:o,drilldownPaths:c,enabled:l}),d=F.useMemo(()=>{var M,D;return(((M=i==null?void 0:i.drilldownSelections)==null?void 0:M.length)||((D=i==null?void 0:i.drilldownDimensions)==null?void 0:D.length)||(h==null?void 0:h.length))&&l},[i,l,h]),{drilldownDimension:m,drilldownFilters:g,breadcrumbs:v,openDrilldownMenu:y}=tI({initialDimension:p,drilldownSelections:a,drilldownPaths:h,openMenu:s,onDrilldownSelectionsChange:t}),w=F.useCallback((O,M)=>{const D=od(O,M,n);y({left:M.clientX,top:M.clientY},D)},[n,y]),E=F.useCallback((O,M)=>{const D=od([O],M,n);y({left:M.clientX,top:M.clientY},D)},[n,y]),_=F.useMemo(()=>Uh(r,n,m),[r,n,m]),x=F.useMemo(()=>g.length?bd(e.filters||[],g):e.filters,[e.filters,g]),b=F.useMemo(()=>u.combineHandlers([w,e.onDataPointsSelected]),[w,e.onDataPointsSelected]),C=F.useMemo(()=>u.combineHandlers([E,e.onDataPointContextMenu]),[E,e.onDataPointContextMenu]);return{propsWithDrilldown:q(q({},e),d&&{dataOptions:_,filters:x,onDataPointsSelected:b,onDataPointContextMenu:C}),isDrilldownEnabled:d,breadcrumbs:v}},tA=ro({componentName:"ChartWidget"})(e=>{var O,M;const{app:t}=u.useSisenseContext(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:o,styleOptions:i,highlightSelectionDisabled:a=!1,highlights:s,description:l,onChange:c}=e,{width:p,height:h}=i||{},d=Gf(r,{hasHeader:!((O=i==null?void 0:i.header)!=null&&O.hidden)}),[m,g]=F.useState(0),v=F.useMemo(()=>u.omit(i,["width","height"]),[i]),y=F.useCallback(D=>{c==null||c({drilldownOptions:{drilldownSelections:D}})},[c]),{propsWithDrilldown:w,isDrilldownEnabled:E,breadcrumbs:_}=eA({propsToExtend:e,onDrilldownSelectionsChange:y}),x=a7({chartType:r,dataOptions:o,enabled:!a&&!E&&!(s!=null&&s.length)}),b=(M=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:M.enabled,C=F.useCallback(D=>{var R;return b?J(q({},D),{accessibility:J(q({},D.accessibility),{description:l!=null?l:(R=D.accessibility)==null?void 0:R.description})}):D},[l,b]);if(!r||!o)return null;const S=J(q({},w),{dataSet:n,styleOptions:v,refreshCounter:m,onDataPointClick:F.useMemo(()=>u.combineHandlers([x.onDataPointClick,e.onDataPointClick]),[x.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:w.onDataPointContextMenu,onDataPointsSelected:F.useMemo(()=>u.combineHandlers([x.onDataPointsSelected,w.onDataPointsSelected]),[x.onDataPointsSelected,w.onDataPointsSelected]),onBeforeRender:F.useMemo(()=>u.combineHandlers([C,x.onBeforeRender,e.onBeforeRender],!0),[C,x.onBeforeRender,e.onBeforeRender])});return u.jsx(Ei,{defaultSize:d,size:{width:p,height:h},children:u.jsx(rh,J(q({},e),{topSlot:u.jsxs(u.Fragment,{children:[e.topSlot,_]}),dataSetName:n&&u.getDataSourceName(n),onRefresh:()=>g(m+1),children:u.jsx(K0,q({},S))}))})});class nn{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Gn=typeof window=="undefined"||"Deno"in window;function it(){}function rA(e,t){return typeof e=="function"?e(t):e}function ss(e){return typeof e=="number"&&e>=0&&e!==1/0}function qh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function En(e,t,r){return ho(e)?typeof t=="function"?J(q({},r),{queryKey:e,queryFn:t}):J(q({},t),{queryKey:e}):e}function nA(e,t,r){return ho(e)?J(q({},t),{mutationKey:e}):typeof e=="function"?J(q({},t),{mutationFn:e}):q({},e)}function Bt(e,t,r){return ho(e)?[J(q({},t),{queryKey:e}),r]:[e||{},t]}function id(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(ho(a)){if(n){if(t.queryHash!==Dl(a,t.options))return!1}else if(!Ir(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o!="undefined"&&o!==t.state.fetchStatus||i&&!i(t))}function ad(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(ho(i)){if(!t.options.mutationKey)return!1;if(r){if(ur(t.options.mutationKey)!==ur(i))return!1}else if(!Ir(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function Dl(e,t){return((t==null?void 0:t.queryKeyHashFn)||ur)(e)}function ur(e){return JSON.stringify(e,(t,r)=>ls(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Ir(e,t){return Gh(e,t)}function Gh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Gh(e[r],t[r])):!1}function Yh(e,t){if(e===t)return e;const r=sd(e)&&sd(t);if(r||ls(e)&&ls(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let s=0;for(let l=0;l<i;l++){const c=r?l:o[l];a[c]=Yh(e[c],t[c]),a[c]===e[c]&&s++}return n===i&&s===n?e:a}return t}function ti(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function sd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ls(e){if(!ld(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!ld(r)||!r.hasOwnProperty("isPrototypeOf"))}function ld(e){return Object.prototype.toString.call(e)==="[object Object]"}function ho(e){return Array.isArray(e)}function Xh(e){return new Promise(t=>{setTimeout(t,e)})}function ud(e){Xh(0).then(e)}function oA(){if(typeof AbortController=="function")return new AbortController}function us(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Yh(e,t):t}class iA extends nn{constructor(){super(),this.setup=t=>{if(!Gn&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const ri=new iA,cd=["online","offline"];class aA extends nn{constructor(){super(),this.setup=t=>{if(!Gn&&window.addEventListener){const r=()=>t();return cd.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{cd.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const ni=new aA;function sA(e){return Math.min(1e3*Qe(2,e),3e4)}function Yi(e){return(e!=null?e:"online")==="online"?ni.isOnline():!0}class Kh{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Wo(e){return e instanceof Kh}function Qh(e){let t=!1,r=0,n=!1,o,i,a;const s=new Promise((y,w)=>{i=y,a=w}),l=y=>{n||(m(new Kh(y)),e.abort==null||e.abort())},c=()=>{t=!0},p=()=>{t=!1},h=()=>!ri.isFocused()||e.networkMode!=="always"&&!ni.isOnline(),d=y=>{n||(n=!0,e.onSuccess==null||e.onSuccess(y),o==null||o(),i(y))},m=y=>{n||(n=!0,e.onError==null||e.onError(y),o==null||o(),a(y))},g=()=>new Promise(y=>{o=w=>{const E=n||!h();return E&&y(w),E},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let y;try{y=e.fn()}catch(w){y=Promise.reject(w)}Promise.resolve(y).then(d).catch(w=>{var E,_;if(n)return;const x=(E=e.retry)!=null?E:3,b=(_=e.retryDelay)!=null?_:sA,C=typeof b=="function"?b(r,w):b,S=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,w);if(t||!S){m(w);return}r++,e.onFail==null||e.onFail(r,w),Xh(C).then(()=>{if(h())return g()}).then(()=>{t?m(w):v()})})};return Yi(e.networkMode)?v():g().then(v),{promise:s,cancel:l,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:c,continueRetry:p}}const kl=console;function lA(){let e=[],t=0,r=p=>{p()},n=p=>{p()};const o=p=>{let h;t++;try{h=p()}finally{t--,t||s()}return h},i=p=>{t?e.push(p):ud(()=>{r(p)})},a=p=>(...h)=>{i(()=>{p(...h)})},s=()=>{const p=e;e=[],p.length&&ud(()=>{n(()=>{p.forEach(h=>{r(h)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p}}}const ke=lA();class Zh{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ss(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Gn?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class uA extends Zh{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||kl,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||cA(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=q(q({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=us(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(it).catch(it):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!qh(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const a=oA(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),p={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(p),(n=this.options.behavior)==null||n.onFetch(p),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=p.fetchOptions)==null?void 0:o.meta)){var h;this.dispatch({type:"fetch",meta:(h=p.fetchOptions)==null?void 0:h.meta})}const d=m=>{if(Wo(m)&&m.silent||this.dispatch({type:"error",error:m}),!Wo(m)){var g,v,y,w;(g=(v=this.cache.config).onError)==null||g.call(v,m,this),(y=(w=this.cache.config).onSettled)==null||y.call(w,this.state.data,m,this),process.env.NODE_ENV!=="production"&&this.logger.error(m)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Qh({fn:p.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:m=>{var g,v,y,w;if(typeof m=="undefined"){process.env.NODE_ENV!=="production"&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),d(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(g=(v=this.cache.config).onSuccess)==null||g.call(v,m,this),(y=(w=this.cache.config).onSettled)==null||y.call(w,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(m,g)=>{this.dispatch({type:"failed",failureCount:m,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var o,i;switch(t.type){case"failed":return J(q({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return J(q({},n),{fetchStatus:"paused"});case"continue":return J(q({},n),{fetchStatus:"fetching"});case"fetch":return q(J(q({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Yi(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return q(J(q({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=t.error;return Wo(a)&&a.revert&&this.revertState?J(q({},this.revertState),{fetchStatus:"idle"}):J(q({},n),{error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return J(q({},n),{isInvalidated:!0});case"setState":return q(q({},n),t.state)}};this.state=r(this.state),ke.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function cA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t!="undefined",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n!=null?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class dA extends nn{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const i=r.queryKey,a=(o=r.queryHash)!=null?o:Dl(i,r);let s=this.get(a);return s||(s=new uA({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Bt(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(o=>id(n,o))}findAll(t,r){const[n]=Bt(t,r);return Object.keys(n).length>0?this.queries.filter(o=>id(n,o)):this.queries}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){ke.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class fA extends Zh{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||kl,this.observers=[],this.state=t.state||Jh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=q(q({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}execute(){return rt(this,null,function*(){const t=()=>{var S;return this.retryer=Qh({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,M)=>{this.dispatch({type:"failed",failureCount:O,error:M})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(S=this.options.retry)!=null?S:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,i,a,s,l,c,p;if(!r){var h,d,m,g;this.dispatch({type:"loading",variables:this.options.variables}),yield(h=(d=this.mutationCache.config).onMutate)==null?void 0:h.call(d,this.state.variables,this);const O=yield(m=(g=this.options).onMutate)==null?void 0:m.call(g,this.state.variables);O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const S=yield t();return yield(n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,S,this.state.variables,this.state.context,this),yield(i=(a=this.options).onSuccess)==null?void 0:i.call(a,S,this.state.variables,this.state.context),yield(s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,S,null,this.state.variables,this.state.context,this),yield(c=(p=this.options).onSettled)==null?void 0:c.call(p,S,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:S}),S}catch(S){try{var v,y,w,E,_,x,b,C;throw yield(v=(y=this.mutationCache.config).onError)==null?void 0:v.call(y,S,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(S),yield(w=(E=this.options).onError)==null?void 0:w.call(E,S,this.state.variables,this.state.context),yield(_=(x=this.mutationCache.config).onSettled)==null?void 0:_.call(x,void 0,S,this.state.variables,this.state.context,this),yield(b=(C=this.options).onSettled)==null?void 0:b.call(C,void 0,S,this.state.variables,this.state.context),S}finally{this.dispatch({type:"error",error:S})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return J(q({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return J(q({},n),{isPaused:!0});case"continue":return J(q({},n),{isPaused:!1});case"loading":return J(q({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Yi(this.options.networkMode),status:"loading",variables:t.variables});case"success":return J(q({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return J(q({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return q(q({},n),t.state)}};this.state=r(this.state),ke.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Jh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class pA extends nn{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new fA({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){ke.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact=="undefined"&&(t.exact=!0),this.mutations.find(r=>ad(t,r))}findAll(t){return this.mutations.filter(r=>ad(t,r))}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return ke.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(it)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function hA(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a;const s=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,c=l==null?void 0:l.pageParam,p=(l==null?void 0:l.direction)==="forward",h=(l==null?void 0:l.direction)==="backward",d=((i=e.state.data)==null?void 0:i.pages)||[],m=((a=e.state.data)==null?void 0:a.pageParams)||[];let g=m,v=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)v=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{v=!0})}return e.signal}})},w=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),E=(C,S,O,M)=>(g=M?[S,...g]:[...g,S],M?[O,...C]:[...C,O]),_=(C,S,O,M)=>{if(v)return Promise.reject("Cancelled");if(typeof O=="undefined"&&!S&&C.length)return Promise.resolve(C);const D={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};y(D);const R=w(D);return Promise.resolve(R).then(I=>E(C,O,I,M))};let x;if(!d.length)x=_([]);else if(p){const C=typeof c!="undefined",S=C?c:dd(e.options,d);x=_(d,C,S)}else if(h){const C=typeof c!="undefined",S=C?c:mA(e.options,d);x=_(d,C,S,!0)}else{g=[];const C=typeof e.options.getNextPageParam=="undefined";x=(s&&d[0]?s(d[0],0,d):!0)?_([],C,m[0]):Promise.resolve(E([],m[0],d[0]));for(let O=1;O<d.length;O++)x=x.then(M=>{if(s&&d[O]?s(d[O],O,d):!0){const R=C?m[O]:dd(e.options,M);return _(M,C,R)}return Promise.resolve(E(M,m[O],d[O]))})}return x.then(C=>({pages:C,pageParams:g}))}}}}function dd(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function mA(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class gA{constructor(t={}){this.queryCache=t.queryCache||new dA,this.mutationCache=t.mutationCache||new pA,this.logger=t.logger||kl,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,process.env.NODE_ENV!=="production"&&t.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=ri.subscribe(()=>{ri.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ni.subscribe(()=>{ni.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=Bt(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(J(q({},t),{fetching:!0})).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=En(t,r,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=rA(r,i);if(typeof a=="undefined")return;const s=En(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,J(q({},n),{manual:!0}))}setQueriesData(t,r,n){return ke.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=Bt(t,r),o=this.queryCache;ke.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=Bt(t,r,n),a=this.queryCache,s=q({type:"active"},o);return ke.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,r,n){const[o,i={}]=Bt(t,r,n);typeof i.revert=="undefined"&&(i.revert=!0);const a=ke.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(it).catch(it)}invalidateQueries(t,r,n){const[o,i]=Bt(t,r,n);return ke.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(c=>{c.invalidate()}),o.refetchType==="none")return Promise.resolve();const l=J(q({},o),{type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"});return this.refetchQueries(l,i)})}refetchQueries(t,r,n){const[o,i]=Bt(t,r,n),a=ke.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,J(q({},i),{cancelRefetch:(c=i==null?void 0:i.cancelRefetch)!=null?c:!0,meta:{refetchPage:o.refetchPage}}))}));let s=Promise.all(a).then(it);return i!=null&&i.throwOnError||(s=s.catch(it)),s}fetchQuery(t,r,n){const o=En(t,r,n),i=this.defaultQueryOptions(o);typeof i.retry=="undefined"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(it).catch(it)}fetchInfiniteQuery(t,r,n){const o=En(t,r,n);return o.behavior=hA(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(it).catch(it)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>ur(t)===ur(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Ir(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(o=>Ir(t,o.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(t)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>ur(t)===ur(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Ir(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(o=>Ir(t,o.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(t)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r=J(q(q(q({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Dl(r.queryKey,r)),typeof r.refetchOnReconnect=="undefined"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary=="undefined"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:J(q(q(q({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class vA extends nn{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),fd(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cs(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cs(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),process.env.NODE_ENV!=="production"&&typeof(t==null?void 0:t.isDataEqual)!="undefined"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),ti(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&pd(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return bA(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(n={}){var o=n,{refetchPage:t}=o,r=br(o,["refetchPage"]);return this.fetch(J(q({},r),{meta:{refetchPage:t}}))}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch(J(q({},t),{cancelRefetch:(r=t.cancelRefetch)!=null?r:!0})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(it)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Gn||this.currentResult.isStale||!ss(this.options.staleTime))return;const r=qh(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Gn||this.options.enabled===!1||!ss(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||ri.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==n,c=l?t.state:this.currentQueryInitialState,p=l?this.currentResult:this.previousQueryResult,{state:h}=t;let{dataUpdatedAt:d,error:m,errorUpdatedAt:g,fetchStatus:v,status:y}=h,w=!1,E=!1,_;if(r._optimisticResults){const O=this.hasListeners(),M=!O&&fd(t,r),D=O&&pd(t,n,r,o);(M||D)&&(v=Yi(t.options.networkMode)?"fetching":"paused",d||(y="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!h.dataUpdatedAt&&p!=null&&p.isSuccess&&y!=="error")_=p.data,d=p.dataUpdatedAt,y=p.status,w=!0;else if(r.select&&typeof h.data!="undefined")if(i&&h.data===(a==null?void 0:a.data)&&r.select===this.selectFn)_=this.selectResult;else try{this.selectFn=r.select,_=r.select(h.data),_=us(i==null?void 0:i.data,_,r),this.selectResult=_,this.selectError=null}catch(O){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(O),this.selectError=O}else _=h.data;if(typeof r.placeholderData!="undefined"&&typeof _=="undefined"&&y==="loading"){let O;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))O=i.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof O!="undefined")try{O=r.select(O),this.selectError=null}catch(M){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(M),this.selectError=M}typeof O!="undefined"&&(y="success",_=us(i==null?void 0:i.data,O,r),E=!0)}this.selectError&&(m=this.selectError,_=this.selectResult,g=Date.now(),y="error");const x=v==="fetching",b=y==="loading",C=y==="error";return{status:y,fetchStatus:v,isLoading:b,isSuccess:y==="success",isError:C,isInitialLoading:b&&x,data:_,dataUpdatedAt:d,error:m,errorUpdatedAt:g,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:C&&h.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:E,isPreviousData:w,isRefetchError:C&&h.dataUpdatedAt!==0,isStale:Il(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,ti(n,r))return;this.currentResult=n;const o={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s!=null?s:this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const p=c;return this.currentResult[p]!==r[p]&&l.has(p)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify(q(q({},o),t))}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Wo(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){ke.batch(()=>{if(t.onSuccess){var r,n,o,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,s,l,c;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:p})=>{p(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function yA(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fd(e,t){return yA(e,t)||e.state.dataUpdatedAt>0&&cs(e,t,t.refetchOnMount)}function cs(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Il(e,t)}return!1}function pd(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Il(e,r)}function Il(e,t){return e.isStaleByTime(t.staleTime)}function bA(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!ti(e.getCurrentResult(),t)}var ds={exports:{}},wa={};/**
|
|
256
256
|
* @license React
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"Sisense",
|
|
12
12
|
"Compose SDK"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.35.0",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"@emotion/styled": "^11.10.5",
|
|
54
54
|
"@mui/material": "^5.16.7",
|
|
55
55
|
"@mui/system": "^5.16.7",
|
|
56
|
-
"@sisense/sdk-common": "^1.
|
|
57
|
-
"@sisense/sdk-data": "^1.
|
|
58
|
-
"@sisense/sdk-pivot-client": "^1.
|
|
59
|
-
"@sisense/sdk-query-client": "^1.
|
|
60
|
-
"@sisense/sdk-rest-client": "^1.
|
|
61
|
-
"@sisense/sdk-tracking": "^1.
|
|
56
|
+
"@sisense/sdk-common": "^1.35.0",
|
|
57
|
+
"@sisense/sdk-data": "^1.35.0",
|
|
58
|
+
"@sisense/sdk-pivot-client": "^1.35.0",
|
|
59
|
+
"@sisense/sdk-query-client": "^1.35.0",
|
|
60
|
+
"@sisense/sdk-rest-client": "^1.35.0",
|
|
61
|
+
"@sisense/sdk-tracking": "^1.35.0",
|
|
62
62
|
"@sisense/sisense-charts": "5.1.1",
|
|
63
63
|
"@tanstack/react-query": "4.36.1",
|
|
64
64
|
"classnames": "^2.3.2",
|