@genspectrum/dashboard-components 0.14.1 → 0.14.2
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/custom-elements.json +11 -11
- package/dist/assets/mutationOverTimeWorker-Dxnxrfe0.js.map +1 -1
- package/dist/components.d.ts +47 -51
- package/dist/components.js +17 -7
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +46 -46
- package/package.json +2 -2
- package/src/lapisApi/lapisApi.ts +1 -1
- package/src/operator/FillMissingOperator.spec.ts +1 -1
- package/src/operator/GroupByAndSumOperator.spec.ts +1 -1
- package/src/operator/GroupByOperator.spec.ts +2 -2
- package/src/operator/MapOperator.spec.ts +1 -1
- package/src/operator/MockOperator.spec.ts +1 -1
- package/src/operator/MockOperator.ts +6 -4
- package/src/operator/SortOperator.spec.ts +1 -1
- package/src/preact/aggregatedData/aggregate.stories.tsx +1 -1
- package/src/preact/components/csv-download-button.stories.tsx +2 -2
- package/src/preact/components/csv-download-button.tsx +1 -1
- package/src/preact/components/error-boundary.stories.tsx +5 -5
- package/src/preact/components/error-boundary.tsx +14 -3
- package/src/preact/components/error-display.stories.tsx +9 -9
- package/src/preact/components/fullscreen.tsx +3 -3
- package/src/preact/components/info.tsx +1 -1
- package/src/preact/components/mutation-type-selector.stories.tsx +1 -1
- package/src/preact/components/table.stories.tsx +3 -3
- package/src/preact/components/table.tsx +1 -1
- package/src/preact/dateRangeSelector/date-range-selector.stories.tsx +3 -6
- package/src/preact/dateRangeSelector/date-range-selector.tsx +2 -2
- package/src/preact/lineageFilter/lineage-filter.stories.tsx +6 -6
- package/src/preact/locationFilter/fetchAutocompletionList.ts +1 -1
- package/src/preact/locationFilter/location-filter.stories.tsx +6 -6
- package/src/preact/map/sequences-by-location.stories.tsx +1 -1
- package/src/preact/mutationFilter/mutation-filter.stories.tsx +2 -2
- package/src/preact/mutations/getMutationsGridData.ts +1 -1
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +3 -3
- package/src/preact/mutationsOverTime/mutations-over-time.stories.tsx +1 -1
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +1 -0
- package/src/preact/numberSequencesOverTime/number-sequences-over-time.stories.tsx +1 -1
- package/src/preact/prevalenceOverTime/prevalence-over-time-bubble-chart.tsx +4 -4
- package/src/preact/prevalenceOverTime/prevalence-over-time.stories.tsx +1 -1
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.stories.tsx +1 -1
- package/src/preact/shared/floating-ui/hooks.ts +1 -1
- package/src/preact/textInput/text-input.stories.tsx +4 -4
- package/src/utils/map2d.ts +1 -0
- package/src/web-components/gs-app.stories.ts +7 -7
- package/src/web-components/input/gs-date-range-selector.stories.ts +6 -6
- package/src/web-components/input/gs-lineage-filter.stories.ts +1 -1
- package/src/web-components/input/gs-location-filter.stories.ts +1 -1
- package/src/web-components/input/gs-mutation-filter.stories.ts +7 -7
- package/src/web-components/input/gs-text-input.stories.ts +3 -3
- package/src/web-components/visualization/gs-aggregate.tsx +2 -2
- package/standalone-bundle/assets/mutationOverTimeWorker-CmSrq4SZ.js.map +1 -1
- package/standalone-bundle/dashboard-components.js +70 -63
- package/standalone-bundle/dashboard-components.js.map +1 -1
|
@@ -4463,7 +4463,7 @@ function Yu(n, t, e) {
|
|
|
4463
4463
|
}
|
|
4464
4464
|
return i.__N || i.__;
|
|
4465
4465
|
}
|
|
4466
|
-
function
|
|
4466
|
+
function re(n, t) {
|
|
4467
4467
|
var e = Us(fr++, 3);
|
|
4468
4468
|
!xe.__s && ep(e.__H, t) && (e.__ = n, e.i = t, le.__H.__h.push(e));
|
|
4469
4469
|
}
|
|
@@ -6227,7 +6227,7 @@ const Zb = {
|
|
|
6227
6227
|
}
|
|
6228
6228
|
}, Jr = ({ data: n, columns: t, pageSize: e }) => {
|
|
6229
6229
|
const i = typeof e == "number" ? { limit: e } : e, r = Vt(null);
|
|
6230
|
-
return
|
|
6230
|
+
return re(() => {
|
|
6231
6231
|
if (r.current === null)
|
|
6232
6232
|
return;
|
|
6233
6233
|
const s = new FM({
|
|
@@ -6736,7 +6736,7 @@ function de(n, t, e) {
|
|
|
6736
6736
|
if (n && typeof n.call == "function")
|
|
6737
6737
|
return n.apply(e, t);
|
|
6738
6738
|
}
|
|
6739
|
-
function
|
|
6739
|
+
function se(n, t, e, i) {
|
|
6740
6740
|
let r, s, o;
|
|
6741
6741
|
if (ge(n))
|
|
6742
6742
|
for (s = n.length, r = 0; r < s; r++)
|
|
@@ -10299,7 +10299,7 @@ var Ke = {
|
|
|
10299
10299
|
if (!n)
|
|
10300
10300
|
return;
|
|
10301
10301
|
const r = Qe(n.options.layout.padding), s = Math.max(t - r.width, 0), o = Math.max(e - r.height, 0), l = cT(n.boxes), c = l.vertical, d = l.horizontal;
|
|
10302
|
-
|
|
10302
|
+
se(n.boxes, (x) => {
|
|
10303
10303
|
typeof x.beforeLayout == "function" && x.beforeLayout();
|
|
10304
10304
|
});
|
|
10305
10305
|
const h = c.reduce((x, w) => w.box.options && w.box.options.display === !1 ? x : x + 1, 0) || 1, p = Object.freeze({
|
|
@@ -10326,7 +10326,7 @@ var Ke = {
|
|
|
10326
10326
|
bottom: _.top + _.h,
|
|
10327
10327
|
height: _.h,
|
|
10328
10328
|
width: _.w
|
|
10329
|
-
},
|
|
10329
|
+
}, se(l.chartArea, (x) => {
|
|
10330
10330
|
const w = x.box;
|
|
10331
10331
|
Object.assign(w, n.chartArea), w.update(_.w, _.h, {
|
|
10332
10332
|
left: 0,
|
|
@@ -10652,7 +10652,7 @@ function LT(n, t, e) {
|
|
|
10652
10652
|
return c;
|
|
10653
10653
|
}
|
|
10654
10654
|
function NT(n, t) {
|
|
10655
|
-
|
|
10655
|
+
se(n, (e) => {
|
|
10656
10656
|
const i = e.gc, r = i.length / 2;
|
|
10657
10657
|
let s;
|
|
10658
10658
|
if (r > t) {
|
|
@@ -11422,7 +11422,7 @@ class WT {
|
|
|
11422
11422
|
...e
|
|
11423
11423
|
].forEach((r) => {
|
|
11424
11424
|
const s = i || this._getRegistryForType(r);
|
|
11425
|
-
i || s.isForType(r) || s === this.plugins && r.id ? this._exec(t, s, r) :
|
|
11425
|
+
i || s.isForType(r) || s === this.plugins && r.id ? this._exec(t, s, r) : se(r, (o) => {
|
|
11426
11426
|
const l = i || this._getRegistryForType(o);
|
|
11427
11427
|
this._exec(t, l, o);
|
|
11428
11428
|
});
|
|
@@ -11903,7 +11903,7 @@ class ke {
|
|
|
11903
11903
|
}
|
|
11904
11904
|
ensureScalesHaveIDs() {
|
|
11905
11905
|
const e = this.options.scales || {};
|
|
11906
|
-
|
|
11906
|
+
se(e, (i, r) => {
|
|
11907
11907
|
i.id = r;
|
|
11908
11908
|
});
|
|
11909
11909
|
}
|
|
@@ -11917,7 +11917,7 @@ class ke {
|
|
|
11917
11917
|
dposition: d ? "chartArea" : h ? "bottom" : "left",
|
|
11918
11918
|
dtype: d ? "radialLinear" : h ? "category" : "linear"
|
|
11919
11919
|
};
|
|
11920
|
-
}))),
|
|
11920
|
+
}))), se(s, (o) => {
|
|
11921
11921
|
const l = o.options, c = l.id, d = uf(c, l), h = Lt(l.type, o.dtype);
|
|
11922
11922
|
(l.position === void 0 || H_(l.position, d) !== H_(o.dposition)) && (l.position = o.dposition), r[c] = !0;
|
|
11923
11923
|
let p = null;
|
|
@@ -11933,9 +11933,9 @@ class ke {
|
|
|
11933
11933
|
}), i[p.id] = p;
|
|
11934
11934
|
}
|
|
11935
11935
|
p.init(l, t);
|
|
11936
|
-
}),
|
|
11936
|
+
}), se(r, (o, l) => {
|
|
11937
11937
|
o || delete i[l];
|
|
11938
|
-
}),
|
|
11938
|
+
}), se(i, (o) => {
|
|
11939
11939
|
Ke.configure(this, o, o.options), Ke.addBox(this, o);
|
|
11940
11940
|
});
|
|
11941
11941
|
}
|
|
@@ -11974,7 +11974,7 @@ class ke {
|
|
|
11974
11974
|
return this._updateMetasets(), t;
|
|
11975
11975
|
}
|
|
11976
11976
|
_resetElements() {
|
|
11977
|
-
|
|
11977
|
+
se(this.data.datasets, (t, e) => {
|
|
11978
11978
|
this.getDatasetMeta(e).controller.reset();
|
|
11979
11979
|
}, this);
|
|
11980
11980
|
}
|
|
@@ -11997,7 +11997,7 @@ class ke {
|
|
|
11997
11997
|
const { controller: p } = this.getDatasetMeta(d), m = !r && s.indexOf(p) === -1;
|
|
11998
11998
|
p.buildOrUpdateElements(m), o = Math.max(+p.getMaxOverflow(), o);
|
|
11999
11999
|
}
|
|
12000
|
-
o = this._minPadding = i.layout.autoPadding ? o : 0, this._updateLayout(o), r ||
|
|
12000
|
+
o = this._minPadding = i.layout.autoPadding ? o : 0, this._updateLayout(o), r || se(s, (d) => {
|
|
12001
12001
|
d.reset();
|
|
12002
12002
|
}), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
|
|
12003
12003
|
mode: t
|
|
@@ -12006,7 +12006,7 @@ class ke {
|
|
|
12006
12006
|
c ? this._eventHandler(c, !0) : l.length && this._updateHoverStyles(l, l, !0), this.render();
|
|
12007
12007
|
}
|
|
12008
12008
|
_updateScales() {
|
|
12009
|
-
|
|
12009
|
+
se(this.scales, (t) => {
|
|
12010
12010
|
Ke.removeBox(this, t);
|
|
12011
12011
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
12012
12012
|
}
|
|
@@ -12043,7 +12043,7 @@ class ke {
|
|
|
12043
12043
|
return;
|
|
12044
12044
|
Ke.update(this, this.width, this.height, t);
|
|
12045
12045
|
const e = this.chartArea, i = e.width <= 0 || e.height <= 0;
|
|
12046
|
-
this._layers = [],
|
|
12046
|
+
this._layers = [], se(this.boxes, (r) => {
|
|
12047
12047
|
i && r.position === "chartArea" || (r.configure && r.configure(), this._layers.push(...r._layers()));
|
|
12048
12048
|
}, this), this._layers.forEach((r, s) => {
|
|
12049
12049
|
r._idx = s;
|
|
@@ -12222,7 +12222,7 @@ class ke {
|
|
|
12222
12222
|
}, r = (s, o, l) => {
|
|
12223
12223
|
s.offsetX = o, s.offsetY = l, this._eventHandler(s);
|
|
12224
12224
|
};
|
|
12225
|
-
|
|
12225
|
+
se(this.options.events, (s) => i(s, r));
|
|
12226
12226
|
}
|
|
12227
12227
|
bindResponsiveEvents() {
|
|
12228
12228
|
this._responsiveListeners || (this._responsiveListeners = {});
|
|
@@ -12242,9 +12242,9 @@ class ke {
|
|
|
12242
12242
|
}, e.isAttached(this.canvas) ? l() : o();
|
|
12243
12243
|
}
|
|
12244
12244
|
unbindEvents() {
|
|
12245
|
-
|
|
12245
|
+
se(this._listeners, (t, e) => {
|
|
12246
12246
|
this.platform.removeEventListener(this, e, t);
|
|
12247
|
-
}), this._listeners = {},
|
|
12247
|
+
}), this._listeners = {}, se(this._responsiveListeners, (t, e) => {
|
|
12248
12248
|
this.platform.removeEventListener(this, e, t);
|
|
12249
12249
|
}), this._responsiveListeners = void 0;
|
|
12250
12250
|
}
|
|
@@ -12320,7 +12320,7 @@ class ke {
|
|
|
12320
12320
|
}
|
|
12321
12321
|
st(ke, "defaults", ve), st(ke, "instances", Qc), st(ke, "overrides", Rs), st(ke, "registry", Ie), st(ke, "version", rD), st(ke, "getChart", U_);
|
|
12322
12322
|
function q_() {
|
|
12323
|
-
return
|
|
12323
|
+
return se(ke.instances, (n) => n._plugins.invalidate());
|
|
12324
12324
|
}
|
|
12325
12325
|
function uD(n, t, e) {
|
|
12326
12326
|
const { startAngle: i, pixelMargin: r, x: s, y: o, outerRadius: l, innerRadius: c } = t;
|
|
@@ -13912,9 +13912,9 @@ function ov(n, t) {
|
|
|
13912
13912
|
const D = function(P) {
|
|
13913
13913
|
w = Math.max(w, e.measureText(P).width + S);
|
|
13914
13914
|
};
|
|
13915
|
-
return e.save(), e.font = d.string,
|
|
13916
|
-
|
|
13917
|
-
}), S = 0, e.font = h.string,
|
|
13915
|
+
return e.save(), e.font = d.string, se(n.title, D), e.font = c.string, se(n.beforeBody.concat(n.afterBody), D), S = t.displayColors ? o + 2 + t.boxPadding : 0, se(i, (P) => {
|
|
13916
|
+
se(P.before, D), se(P.lines, D), se(P.after, D);
|
|
13917
|
+
}), S = 0, e.font = h.string, se(n.footer, D), e.restore(), w += y.width, {
|
|
13918
13918
|
width: w,
|
|
13919
13919
|
height: x
|
|
13920
13920
|
};
|
|
@@ -14059,7 +14059,7 @@ let dv = (Zh = class extends Ri {
|
|
|
14059
14059
|
}
|
|
14060
14060
|
getBody(t, e) {
|
|
14061
14061
|
const { callbacks: i } = e, r = [];
|
|
14062
|
-
return
|
|
14062
|
+
return se(t, (s) => {
|
|
14063
14063
|
const o = {
|
|
14064
14064
|
before: [],
|
|
14065
14065
|
lines: [],
|
|
@@ -14081,7 +14081,7 @@ let dv = (Zh = class extends Ri {
|
|
|
14081
14081
|
let l = [], c, d;
|
|
14082
14082
|
for (c = 0, d = e.length; c < d; ++c)
|
|
14083
14083
|
l.push(gE(this.chart, e[c]));
|
|
14084
|
-
return t.filter && (l = l.filter((h, p, m) => t.filter(h, p, m, i))), t.itemSort && (l = l.sort((h, p) => t.itemSort(h, p, i))),
|
|
14084
|
+
return t.filter && (l = l.filter((h, p, m) => t.filter(h, p, m, i))), t.itemSort && (l = l.sort((h, p) => t.itemSort(h, p, i))), se(l, (h) => {
|
|
14085
14085
|
const p = uv(t.callbacks, h);
|
|
14086
14086
|
r.push(vn(p, "labelColor", this, h)), s.push(vn(p, "labelPointStyle", this, h)), o.push(vn(p, "labelTextColor", this, h));
|
|
14087
14087
|
}), this.labelColors = r, this.labelPointStyles = s, this.labelTextColors = o, this.dataPoints = l, l;
|
|
@@ -14174,12 +14174,12 @@ let dv = (Zh = class extends Ri {
|
|
|
14174
14174
|
e.fillText(N, y.x(t.x + _), t.y + m / 2), t.y += m + s;
|
|
14175
14175
|
}, w = y.textAlign(o);
|
|
14176
14176
|
let M, S, D, P, C, I, z;
|
|
14177
|
-
for (e.textAlign = o, e.textBaseline = "middle", e.font = p.string, t.x = Dc(this, w, i), e.fillStyle = i.bodyColor,
|
|
14178
|
-
for (M = r[P], S = this.labelTextColors[P], e.fillStyle = S,
|
|
14177
|
+
for (e.textAlign = o, e.textBaseline = "middle", e.font = p.string, t.x = Dc(this, w, i), e.fillStyle = i.bodyColor, se(this.beforeBody, x), _ = l && w !== "right" ? o === "center" ? d / 2 + h : d + 2 + h : 0, P = 0, I = r.length; P < I; ++P) {
|
|
14178
|
+
for (M = r[P], S = this.labelTextColors[P], e.fillStyle = S, se(M.before, x), D = M.lines, l && D.length && (this._drawColorBox(e, t, P, y, i), m = Math.max(p.lineHeight, c)), C = 0, z = D.length; C < z; ++C)
|
|
14179
14179
|
x(D[C]), m = p.lineHeight;
|
|
14180
|
-
|
|
14180
|
+
se(M.after, x);
|
|
14181
14181
|
}
|
|
14182
|
-
_ = 0, m = p.lineHeight,
|
|
14182
|
+
_ = 0, m = p.lineHeight, se(this.afterBody, x), t.y -= s;
|
|
14183
14183
|
}
|
|
14184
14184
|
drawFooter(t, e, i) {
|
|
14185
14185
|
const r = this.footer, s = r.length;
|
|
@@ -18974,7 +18974,7 @@ function GP(n, t = {}) {
|
|
|
18974
18974
|
}
|
|
18975
18975
|
const is = ({ configuration: n }) => {
|
|
18976
18976
|
const t = Vt(null), e = Vt(null);
|
|
18977
|
-
return
|
|
18977
|
+
return re(() => {
|
|
18978
18978
|
if (t.current === null)
|
|
18979
18979
|
return;
|
|
18980
18980
|
const i = t.current.getContext("2d");
|
|
@@ -19348,7 +19348,7 @@ class Q0 extends Error {
|
|
|
19348
19348
|
const Mv = ({ error: n, resetError: t, layout: e }) => {
|
|
19349
19349
|
console.error(n);
|
|
19350
19350
|
const i = Vt(null), r = Sp();
|
|
19351
|
-
|
|
19351
|
+
re(() => {
|
|
19352
19352
|
var l;
|
|
19353
19353
|
(l = i.current) == null || l.dispatchEvent(new dO(n));
|
|
19354
19354
|
});
|
|
@@ -19455,7 +19455,13 @@ const dn = ({ children: n, size: t }) => /* @__PURE__ */ v("div", { style: t, cl
|
|
|
19455
19455
|
children: r
|
|
19456
19456
|
}) => {
|
|
19457
19457
|
const [s, o] = tM(), l = pO(i, e);
|
|
19458
|
-
return
|
|
19458
|
+
return re(
|
|
19459
|
+
() => {
|
|
19460
|
+
s && o();
|
|
19461
|
+
},
|
|
19462
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- this should run if and only if the props of the component change
|
|
19463
|
+
[e]
|
|
19464
|
+
), s ? /* @__PURE__ */ v(dn, { size: n, children: /* @__PURE__ */ v(Mv, { error: s, resetError: o, layout: t }) }) : l !== void 0 ? /* @__PURE__ */ v(dn, { size: n, children: /* @__PURE__ */ v(Mv, { error: l, layout: t }) }) : /* @__PURE__ */ v(At, { children: r });
|
|
19459
19465
|
};
|
|
19460
19466
|
function pO(n, t) {
|
|
19461
19467
|
return Me(() => {
|
|
@@ -19472,13 +19478,13 @@ const br = () => {
|
|
|
19472
19478
|
"button",
|
|
19473
19479
|
{
|
|
19474
19480
|
ref: n,
|
|
19475
|
-
onClick:
|
|
19481
|
+
onClick: () => {
|
|
19476
19482
|
if (n.current)
|
|
19477
19483
|
if (t)
|
|
19478
|
-
|
|
19484
|
+
document.exitFullscreen();
|
|
19479
19485
|
else {
|
|
19480
19486
|
const e = mO(n.current);
|
|
19481
|
-
e &&
|
|
19487
|
+
e && e.requestFullscreen();
|
|
19482
19488
|
}
|
|
19483
19489
|
},
|
|
19484
19490
|
className: `mt-0.5 iconify text-2xl ${t ? "mdi--fullscreen-exit hover:scale-90" : "mdi--fullscreen hover:scale-110"}`,
|
|
@@ -19503,7 +19509,7 @@ function gO(n) {
|
|
|
19503
19509
|
}
|
|
19504
19510
|
function _O() {
|
|
19505
19511
|
const [n, t] = Zt(document.fullscreenElement !== null);
|
|
19506
|
-
return
|
|
19512
|
+
return re(() => {
|
|
19507
19513
|
const e = () => {
|
|
19508
19514
|
t(document.fullscreenElement !== null);
|
|
19509
19515
|
};
|
|
@@ -20469,7 +20475,7 @@ const GO = PO, XO = OO, JO = DO, QO = (n, t, e) => {
|
|
|
20469
20475
|
};
|
|
20470
20476
|
function tA(n, t, e, i) {
|
|
20471
20477
|
const r = Vt(null);
|
|
20472
|
-
|
|
20478
|
+
re(() => {
|
|
20473
20479
|
if (!n.current || !t.current)
|
|
20474
20480
|
return;
|
|
20475
20481
|
const { current: s } = n, { current: o } = t, l = () => {
|
|
@@ -20486,7 +20492,7 @@ function tA(n, t, e, i) {
|
|
|
20486
20492
|
}, [i, e, n, t]);
|
|
20487
20493
|
}
|
|
20488
20494
|
function eA(n, t, e) {
|
|
20489
|
-
|
|
20495
|
+
re(() => {
|
|
20490
20496
|
const i = (r) => {
|
|
20491
20497
|
const s = r.composedPath();
|
|
20492
20498
|
n.current && !s.includes(n.current) && t.current && !s.includes(t.current) && e(!1);
|
|
@@ -20497,7 +20503,7 @@ function eA(n, t, e) {
|
|
|
20497
20503
|
}, [n, t, e]);
|
|
20498
20504
|
}
|
|
20499
20505
|
function nA(n) {
|
|
20500
|
-
|
|
20506
|
+
re(() => {
|
|
20501
20507
|
const t = (e) => {
|
|
20502
20508
|
e.key === "Escape" && n(!1);
|
|
20503
20509
|
};
|
|
@@ -20639,7 +20645,7 @@ const iA = "z-10 absolute w-max top-0 left-0 bg-white p-4 border border-gray-200
|
|
|
20639
20645
|
indicateError: e = !1
|
|
20640
20646
|
}) => {
|
|
20641
20647
|
const [i, r] = Zt(n);
|
|
20642
|
-
|
|
20648
|
+
re(() => {
|
|
20643
20649
|
r(n);
|
|
20644
20650
|
}, [n]);
|
|
20645
20651
|
const s = (l) => {
|
|
@@ -20667,7 +20673,7 @@ const iA = "z-10 absolute w-max top-0 left-0 bg-white p-4 border border-gray-200
|
|
|
20667
20673
|
};
|
|
20668
20674
|
function Av(n, t, e) {
|
|
20669
20675
|
const i = Vt(!1);
|
|
20670
|
-
|
|
20676
|
+
re(() => {
|
|
20671
20677
|
if (!i.current) {
|
|
20672
20678
|
i.current = !0;
|
|
20673
20679
|
return;
|
|
@@ -20789,7 +20795,7 @@ const xr = ({ tabs: n, toolbar: t }) => {
|
|
|
20789
20795
|
};
|
|
20790
20796
|
function ti(n, t) {
|
|
20791
20797
|
const [e, i] = Zt(null), [r, s] = Zt(null), [o, l] = Zt(!0);
|
|
20792
|
-
return
|
|
20798
|
+
return re(() => {
|
|
20793
20799
|
(async () => {
|
|
20794
20800
|
l(!0);
|
|
20795
20801
|
try {
|
|
@@ -23153,7 +23159,7 @@ const Hp = ({ items: n, selected: t, onChange: e, selectStyle: i }) => /* @__PUR
|
|
|
23153
23159
|
const { views: e, granularity: i, confidenceIntervalMethods: r, pageSize: s, yAxisMaxLinear: o, yAxisMaxLogarithmic: l } = t, [c, d] = Zt("linear"), [h, p] = Zt(
|
|
23154
23160
|
r.length > 0 ? r[0] : "none"
|
|
23155
23161
|
);
|
|
23156
|
-
|
|
23162
|
+
re(() => {
|
|
23157
23163
|
p((w) => r.includes(w) ? w : r.length > 0 ? r[0] : "none");
|
|
23158
23164
|
}, [r]);
|
|
23159
23165
|
const m = { linear: o, logarithmic: l }, _ = (w) => {
|
|
@@ -24544,7 +24550,7 @@ const lN = ({ children: n, content: t, position: e = "bottom" }) => /* @__PURE__
|
|
|
24544
24550
|
style: { gridRowStart: d + 2, gridColumnStart: 1 },
|
|
24545
24551
|
children: /* @__PURE__ */ v(mN, { mutation: c })
|
|
24546
24552
|
},
|
|
24547
|
-
`mutation-${c.
|
|
24553
|
+
`mutation-${c.code}`
|
|
24548
24554
|
),
|
|
24549
24555
|
o.map((h, p) => {
|
|
24550
24556
|
const m = n.get(c, h) ?? null, _ = hN(
|
|
@@ -24568,10 +24574,10 @@ const lN = ({ children: n, content: t, position: e = "bottom" }) => /* @__PURE__
|
|
|
24568
24574
|
}
|
|
24569
24575
|
)
|
|
24570
24576
|
},
|
|
24571
|
-
`${c.
|
|
24577
|
+
`${c.code}-${h.dateString}`
|
|
24572
24578
|
);
|
|
24573
24579
|
})
|
|
24574
|
-
] }, `fragment-${c.
|
|
24580
|
+
] }, `fragment-${c.code}`))
|
|
24575
24581
|
]
|
|
24576
24582
|
}
|
|
24577
24583
|
)
|
|
@@ -24646,7 +24652,7 @@ function gN(n, t) {
|
|
|
24646
24652
|
s(new Error(`Worker received a message that it cannot deserialize: ${h.data}`)), l(!1);
|
|
24647
24653
|
}, d;
|
|
24648
24654
|
}, [t]);
|
|
24649
|
-
return
|
|
24655
|
+
return re(() => {
|
|
24650
24656
|
c.postMessage(n);
|
|
24651
24657
|
}, [n, c]), { data: e, error: r, isLoading: o };
|
|
24652
24658
|
}
|
|
@@ -24670,6 +24676,7 @@ const _N = O.literal(fe.grid), vN = O.object({
|
|
|
24670
24676
|
lapis: t
|
|
24671
24677
|
}), [r, t, s, e, i]), { data: l, error: c, isLoading: d } = gN(
|
|
24672
24678
|
o,
|
|
24679
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
24673
24680
|
QL
|
|
24674
24681
|
);
|
|
24675
24682
|
if (d)
|
|
@@ -31183,7 +31190,7 @@ const AN = ({
|
|
|
31183
31190
|
hasTableView: h
|
|
31184
31191
|
}) => {
|
|
31185
31192
|
const p = Vt(null);
|
|
31186
|
-
return
|
|
31193
|
+
return re(() => {
|
|
31187
31194
|
if (!p.current)
|
|
31188
31195
|
return;
|
|
31189
31196
|
const m = Zv.map(p.current, {
|
|
@@ -33398,7 +33405,7 @@ const Da = "Custom", NR = O.object({
|
|
|
33398
33405
|
dateFrom: r.initialSelectedDateFrom,
|
|
33399
33406
|
dateTo: r.initialSelectedDateTo
|
|
33400
33407
|
});
|
|
33401
|
-
|
|
33408
|
+
re(() => {
|
|
33402
33409
|
_(r.initialSelectedDateRange), x({
|
|
33403
33410
|
dateFrom: r.initialSelectedDateFrom,
|
|
33404
33411
|
dateTo: r.initialSelectedDateTo
|
|
@@ -33620,7 +33627,7 @@ function Xx(n, t) {
|
|
|
33620
33627
|
var e = t(), i = Zt({ t: { __: e, u: t } }), r = i[0].t, s = i[1];
|
|
33621
33628
|
return qo(function() {
|
|
33622
33629
|
r.__ = e, r.u = t, Ah(r) && s({ t: r });
|
|
33623
|
-
}, [n, e, t]),
|
|
33630
|
+
}, [n, e, t]), re(function() {
|
|
33624
33631
|
return Ah(r) && s({ t: r }), n(function() {
|
|
33625
33632
|
Ah(r) && s({ t: r });
|
|
33626
33633
|
});
|
|
@@ -33868,7 +33875,7 @@ Rt.diffed = function(n) {
|
|
|
33868
33875
|
};
|
|
33869
33876
|
var uz = { ReactCurrentDispatcher: { current: { readContext: function(n) {
|
|
33870
33877
|
return qp.__n[n.__c].props.value;
|
|
33871
|
-
}, useCallback: Ne, useContext: Jn, useDebugValue: mb, useDeferredValue: Qx, useEffect:
|
|
33878
|
+
}, useCallback: Ne, useContext: Jn, useDebugValue: mb, useDeferredValue: Qx, useEffect: re, useId: gb, useImperativeHandle: pb, useInsertionEffect: ew, useLayoutEffect: qo, useMemo: Me, useReducer: Yu, useRef: Vt, useState: Zt, useSyncExternalStore: Xx, useTransition: tw } } };
|
|
33872
33879
|
function dz(n) {
|
|
33873
33880
|
return hr.bind(null, n);
|
|
33874
33881
|
}
|
|
@@ -33894,7 +33901,7 @@ var _z = function(n, t) {
|
|
|
33894
33901
|
return n(t);
|
|
33895
33902
|
}, vz = function(n, t) {
|
|
33896
33903
|
return n(t);
|
|
33897
|
-
}, yz = At, bz = xd, Lu = { useState: Zt, useId: gb, useReducer: Yu, useEffect:
|
|
33904
|
+
}, yz = At, bz = xd, Lu = { useState: Zt, useId: gb, useReducer: Yu, useEffect: re, useLayoutEffect: qo, useInsertionEffect: ew, useTransition: tw, useDeferredValue: Qx, useSyncExternalStore: Xx, startTransition: Jx, useRef: Vt, useImperativeHandle: pb, useMemo: Me, useCallback: Ne, useContext: Jn, useDebugValue: mb, version: "18.3.1", Children: UR, render: rz, hydrate: sz, unmountComponentAtNode: mz, createPortal: JR, createElement: hr, createContext: tp, createFactory: dz, cloneElement: pz, createRef: U2, Fragment: At, isValidElement: xd, isElement: bz, isFragment: hz, isMemo: fz, findDOMNode: gz, Component: Si, PureComponent: $f, memo: HR, forwardRef: YR, flushSync: vz, unstable_batchedUpdates: _z, StrictMode: yz, Suspense: tu, SuspenseList: Ra, lazy: KR, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: uz }, Nc = { exports: {} }, te = {};
|
|
33898
33905
|
/**
|
|
33899
33906
|
* @license React
|
|
33900
33907
|
* react-is.production.min.js
|
|
@@ -34977,7 +34984,7 @@ function Wz(n, t) {
|
|
|
34977
34984
|
}
|
|
34978
34985
|
var yy = lw(function(n, t) {
|
|
34979
34986
|
jz(n, t);
|
|
34980
|
-
}, 200), Hz = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? qo :
|
|
34987
|
+
}, 200), Hz = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? qo : re, Vz = "useId" in Lu ? function(t) {
|
|
34981
34988
|
var e = t.id, i = t.labelId, r = t.menuId, s = t.getItemId, o = t.toggleButtonId, l = t.inputId, c = "downshift-" + Lu.useId();
|
|
34982
34989
|
e || (e = c);
|
|
34983
34990
|
var d = Vt({
|
|
@@ -35031,7 +35038,7 @@ function Uz(n, t, e, i) {
|
|
|
35031
35038
|
props: h.current
|
|
35032
35039
|
}, _));
|
|
35033
35040
|
}, [h]), m = s.current;
|
|
35034
|
-
return
|
|
35041
|
+
return re(function() {
|
|
35035
35042
|
var _ = jf(r.current, m == null ? void 0 : m.props), y = m && r.current && !i(_, c);
|
|
35036
35043
|
y && Bz(m, _, c), r.current = c;
|
|
35037
35044
|
}, [c, m, i]), [c, p];
|
|
@@ -35086,7 +35093,7 @@ function Kz(n, t, e) {
|
|
|
35086
35093
|
isTouchMove: !1,
|
|
35087
35094
|
isTouchEnd: !1
|
|
35088
35095
|
});
|
|
35089
|
-
return
|
|
35096
|
+
return re(function() {
|
|
35090
35097
|
if (!n)
|
|
35091
35098
|
return Zl;
|
|
35092
35099
|
var r = e.map(function(h) {
|
|
@@ -35121,7 +35128,7 @@ process.env.NODE_ENV !== "production" && (pw = function() {
|
|
|
35121
35128
|
var r = Vt(e.reduce(function(o, l) {
|
|
35122
35129
|
return o[l] = {}, o;
|
|
35123
35130
|
}, {}));
|
|
35124
|
-
|
|
35131
|
+
re(function() {
|
|
35125
35132
|
Object.keys(r.current).forEach(function(o) {
|
|
35126
35133
|
var l = r.current[o];
|
|
35127
35134
|
if (!Object.keys(l).length) {
|
|
@@ -35144,12 +35151,12 @@ process.env.NODE_ENV !== "production" && (pw = function() {
|
|
|
35144
35151
|
function Gz(n, t, e, i) {
|
|
35145
35152
|
i === void 0 && (i = {});
|
|
35146
35153
|
var r = i.document, s = wd();
|
|
35147
|
-
|
|
35154
|
+
re(function() {
|
|
35148
35155
|
if (!(!n || s || !r)) {
|
|
35149
35156
|
var o = n(t);
|
|
35150
35157
|
yy(o, r);
|
|
35151
35158
|
}
|
|
35152
|
-
}, e),
|
|
35159
|
+
}, e), re(function() {
|
|
35153
35160
|
return function() {
|
|
35154
35161
|
yy.cancel(), Fz(r);
|
|
35155
35162
|
};
|
|
@@ -35164,7 +35171,7 @@ function Xz(n) {
|
|
|
35164
35171
|
var mw = Zl;
|
|
35165
35172
|
process.env.NODE_ENV !== "production" && (mw = function(t) {
|
|
35166
35173
|
var e = t.props, i = t.state, r = Vt(e), s = wd();
|
|
35167
|
-
|
|
35174
|
+
re(function() {
|
|
35168
35175
|
s || (uw(i, r.current, e), r.current = e);
|
|
35169
35176
|
}, [i, e, s]);
|
|
35170
35177
|
});
|
|
@@ -35363,7 +35370,7 @@ var n$ = we({}, gw, {
|
|
|
35363
35370
|
});
|
|
35364
35371
|
function i$(n, t, e, i) {
|
|
35365
35372
|
var r = Vt(), s = Uz(n, t, e, i), o = s[0], l = s[1], c = wd();
|
|
35366
|
-
return
|
|
35373
|
+
return re(function() {
|
|
35367
35374
|
if (cw(t, "selectedItem")) {
|
|
35368
35375
|
if (!c) {
|
|
35369
35376
|
var d = t.itemToKey(t.selectedItem) !== t.itemToKey(r.current);
|
|
@@ -35504,10 +35511,10 @@ function um(n) {
|
|
|
35504
35511
|
mw({
|
|
35505
35512
|
props: t,
|
|
35506
35513
|
state: l
|
|
35507
|
-
}),
|
|
35514
|
+
}), re(function() {
|
|
35508
35515
|
var K = Qa(t, "isOpen");
|
|
35509
35516
|
K && x.current && x.current.focus();
|
|
35510
|
-
}, []),
|
|
35517
|
+
}, []), re(function() {
|
|
35511
35518
|
M || (D.current = e.length);
|
|
35512
35519
|
});
|
|
35513
35520
|
var z = Kz(r, Ne(function() {
|
|
@@ -35518,9 +35525,9 @@ function um(n) {
|
|
|
35518
35525
|
}, [c, P]), Me(function() {
|
|
35519
35526
|
return [_, w, x];
|
|
35520
35527
|
}, [_.current, w.current, x.current])), N = pw("getInputProps", "getMenuProps");
|
|
35521
|
-
|
|
35528
|
+
re(function() {
|
|
35522
35529
|
d || (y.current = {});
|
|
35523
|
-
}, [d]),
|
|
35530
|
+
}, [d]), re(function() {
|
|
35524
35531
|
var K;
|
|
35525
35532
|
!d || !(r != null && r.document) || !(x != null && (K = x.current) != null && K.focus) || r.document.activeElement !== x.current && x.current.focus();
|
|
35526
35533
|
}, [d, r]);
|