@pulzr/perses-figure-panel 0.3.0 → 0.4.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.
Files changed (42) hide show
  1. package/README.md +5 -0
  2. package/__mf/js/{PulzrFigurePanel.b29c14b507.js → PulzrFigurePanel.bf7939ff93.js} +4 -4
  3. package/__mf/js/async/{0.ee9b9a050d.js → 0.6258e412aa.js} +2 -2
  4. package/__mf/js/async/0p.ac41951f88.js +2 -0
  5. package/__mf/js/async/2.d6d514458f.js +2 -0
  6. package/__mf/js/async/6.68f450e667.js +1 -0
  7. package/__mf/js/async/{9.f20ad249a8.js → 9.b7a842e7df.js} +1 -1
  8. package/__mf/js/async/__federation_expose_PulzrFigurePanel.9611e4f48f.js +1 -0
  9. package/__mf/js/async/{f.9b147c6255.js → f.287458ee3b.js} +2 -2
  10. package/__mf/js/async/k.c04645b420.js +1 -0
  11. package/__mf/js/async/kk.f348b428da.js +1 -0
  12. package/__mf/js/async/{kx.899711f01e.js → kx.49c84b1c51.js} +5 -5
  13. package/__mf/js/async/mt.781853f15e.js +92 -0
  14. package/__mf/js/async/o.9ef93c3d4a.js +1 -0
  15. package/__mf/js/async/{os.e5e40daae1.js → os.d56e539d46.js} +2 -2
  16. package/__mf/js/async/p.60ab86d6d6.js +2 -0
  17. package/__mf/js/async/{s.658d6a4164.js → s.ffd9fa8239.js} +1 -1
  18. package/__mf/js/{main.386bdfecce.js → main.c3a0244608.js} +4 -4
  19. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.d.ts +1 -1
  20. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.d.ts.map +1 -1
  21. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.js +145 -134
  22. package/lib/panels/pulzr-figure-panel/PulzrFigurePanelComponent.js.map +1 -1
  23. package/mf-manifest.json +17 -17
  24. package/mf-stats.json +17 -17
  25. package/package.json +1 -1
  26. package/__mf/js/async/0p.810fbfea5e.js +0 -2
  27. package/__mf/js/async/2.e0e77c51ac.js +0 -2
  28. package/__mf/js/async/6.1033156971.js +0 -1
  29. package/__mf/js/async/__federation_expose_PulzrFigurePanel.9472172973.js +0 -1
  30. package/__mf/js/async/k.39678d65e5.js +0 -1
  31. package/__mf/js/async/kk.62383e2b13.js +0 -1
  32. package/__mf/js/async/mt.918f7f9b24.js +0 -92
  33. package/__mf/js/async/o.ec154e6ff6.js +0 -1
  34. package/__mf/js/async/p.4a73008e86.js +0 -2
  35. /package/__mf/js/async/{0.ee9b9a050d.js.LICENSE.txt → 0.6258e412aa.js.LICENSE.txt} +0 -0
  36. /package/__mf/js/async/{0p.810fbfea5e.js.LICENSE.txt → 0p.ac41951f88.js.LICENSE.txt} +0 -0
  37. /package/__mf/js/async/{2.e0e77c51ac.js.LICENSE.txt → 2.d6d514458f.js.LICENSE.txt} +0 -0
  38. /package/__mf/js/async/{f.9b147c6255.js.LICENSE.txt → f.287458ee3b.js.LICENSE.txt} +0 -0
  39. /package/__mf/js/async/{kx.899711f01e.js.LICENSE.txt → kx.49c84b1c51.js.LICENSE.txt} +0 -0
  40. /package/__mf/js/async/{mt.918f7f9b24.js.LICENSE.txt → mt.781853f15e.js.LICENSE.txt} +0 -0
  41. /package/__mf/js/async/{os.e5e40daae1.js.LICENSE.txt → os.d56e539d46.js.LICENSE.txt} +0 -0
  42. /package/__mf/js/async/{p.4a73008e86.js.LICENSE.txt → p.60ab86d6d6.js.LICENSE.txt} +0 -0
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { PulzrFigurePanelProps } from './pulzr-figure-panel-types';
3
3
  /**
4
- * One figure, large and light, and under it its change against the period before (or a caption); as a pillar, bold
4
+ * One figure, large and bold in the text color, and under it its change against the period before (or a caption); as a pillar, bold
5
5
  * with its change beside it, a sparkline and a list of figures under it.
6
6
  */
7
7
  export declare function PulzrFigurePanelComponent({ queryResults, spec }: PulzrFigurePanelProps): ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"PulzrFigurePanelComponent.d.ts","sourceRoot":"","sources":["../../../../src/panels/pulzr-figure-panel/PulzrFigurePanelComponent.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAe1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA6GxE;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,qBAAqB,GAAG,YAAY,CAsJrG"}
1
+ {"version":3,"file":"PulzrFigurePanelComponent.d.ts","sourceRoot":"","sources":["../../../../src/panels/pulzr-figure-panel/PulzrFigurePanelComponent.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAe1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA8HxE;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,qBAAqB,GAAG,YAAY,CAoJrG"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { c as _c } from "react-compiler-runtime";
3
- import { Box, Typography, useTheme } from "@mui/material";
3
+ import { Box, Typography, alpha, useTheme } from "@mui/material";
4
4
  import { EChart, formatValue, useChartsTheme } from "@perses-dev/components";
5
5
  import { LineChart } from "echarts/charts";
6
6
  import { GridComponent } from "echarts/components";
@@ -23,52 +23,77 @@ const numbers = {
23
23
  const TONE = {
24
24
  good: "success.main",
25
25
  bad: "error.main",
26
- flat: "text.disabled"
26
+ flat: "text.secondary"
27
27
  };
28
+ /** A change as a chip: its text in the tone's color on a soft tint of it, 12px, so a figure's news reads at a glance. */ function chipSx(tone) {
29
+ return {
30
+ ...numbers,
31
+ display: "inline-flex",
32
+ alignItems: "center",
33
+ height: 20,
34
+ px: "7px",
35
+ borderRadius: 999,
36
+ fontSize: 12,
37
+ fontWeight: 600,
38
+ lineHeight: 1,
39
+ letterSpacing: 0,
40
+ whiteSpace: "nowrap",
41
+ color: TONE[tone],
42
+ bgcolor: (t)=>tone === "flat" ? t.palette.action.hover : alpha(tone === "good" ? t.palette.success.main : t.palette.error.main, 0.14)
43
+ };
44
+ }
28
45
  /** The change, small, as a pillar has it beside a figure: `↗ 133%`, good or bad news. Nothing with nothing before. */ function Badge(t0) {
29
- const $ = _c(9);
46
+ const $ = _c(13);
30
47
  const { now, before, lowerIsBetter } = t0;
48
+ let T0;
49
+ let change;
31
50
  let t1;
51
+ let t2;
52
+ let t3;
32
53
  if ($[0] !== before || $[1] !== lowerIsBetter || $[2] !== now) {
33
- t1 = sizeChange(now, before, lowerIsBetter, BADGE_ARROWS);
54
+ t3 = Symbol.for("react.early_return_sentinel");
55
+ bb0: {
56
+ change = sizeChange(now, before, lowerIsBetter, BADGE_ARROWS);
57
+ if (!change) {
58
+ t3 = null;
59
+ break bb0;
60
+ }
61
+ T0 = Typography;
62
+ t1 = "span";
63
+ t2 = chipSx(change.tone);
64
+ }
34
65
  $[0] = before;
35
66
  $[1] = lowerIsBetter;
36
67
  $[2] = now;
37
- $[3] = t1;
68
+ $[3] = T0;
69
+ $[4] = change;
70
+ $[5] = t1;
71
+ $[6] = t2;
72
+ $[7] = t3;
38
73
  } else {
39
- t1 = $[3];
74
+ T0 = $[3];
75
+ change = $[4];
76
+ t1 = $[5];
77
+ t2 = $[6];
78
+ t3 = $[7];
40
79
  }
41
- const change = t1;
42
- if (!change) {
43
- return null;
44
- }
45
- const t2 = TONE[change.tone];
46
- let t3;
47
- if ($[4] !== t2) {
48
- t3 = {
49
- ...numbers,
50
- fontSize: 11,
51
- fontWeight: 600,
52
- whiteSpace: "nowrap",
53
- color: t2
54
- };
55
- $[4] = t2;
56
- $[5] = t3;
57
- } else {
58
- t3 = $[5];
80
+ if (t3 !== Symbol.for("react.early_return_sentinel")) {
81
+ return t3;
59
82
  }
60
83
  let t4;
61
- if ($[6] !== change.text || $[7] !== t3) {
62
- t4 = /*#__PURE__*/ _jsx(Typography, {
63
- component: "span",
64
- sx: t3,
84
+ if ($[8] !== T0 || $[9] !== change.text || $[10] !== t1 || $[11] !== t2) {
85
+ t4 = /*#__PURE__*/ _jsx(T0, {
86
+ component: t1,
87
+ sx: t2,
65
88
  children: change.text
66
89
  });
67
- $[6] = change.text;
68
- $[7] = t3;
69
- $[8] = t4;
90
+ $[8] = T0;
91
+ $[9] = change.text;
92
+ $[10] = t1;
93
+ $[11] = t2;
94
+ $[12] = t4;
70
95
  } else {
71
- t4 = $[8];
96
+ t4 = $[12];
72
97
  }
73
98
  return t4;
74
99
  }
@@ -256,8 +281,9 @@ const TONE = {
256
281
  if (spec.changeStyle === "size") {
257
282
  const change = sizeChange(now, before, spec.lowerIsBetter);
258
283
  return change ? {
259
- line: `${change.text} ${label}`,
260
- lineColor: TONE[change.tone]
284
+ line: label,
285
+ lineColor: "text.secondary",
286
+ chip: change
261
287
  } : {
262
288
  line: spec.caption,
263
289
  lineColor: "text.secondary"
@@ -279,10 +305,10 @@ const TONE = {
279
305
  };
280
306
  }
281
307
  /**
282
- * One figure, large and light, and under it its change against the period before (or a caption); as a pillar, bold
308
+ * One figure, large and bold in the text color, and under it its change against the period before (or a caption); as a pillar, bold
283
309
  * with its change beside it, a sparkline and a list of figures under it.
284
310
  */ export function PulzrFigurePanelComponent(t0) {
285
- const $ = _c(55);
311
+ const $ = _c(47);
286
312
  const { queryResults, spec } = t0;
287
313
  const theme = useTheme();
288
314
  let T0;
@@ -308,7 +334,7 @@ const TONE = {
308
334
  ];
309
335
  const { now, before, total } = figureOf(queryResults, spec.of?.series, others);
310
336
  const values = spec.subtitle || spec.detail ? valuesOf(queryResults) : undefined;
311
- const { line, lineColor } = changeLine(now, before, spec);
337
+ const { line, lineColor, chip } = changeLine(now, before, spec);
312
338
  const badge = spec.changeStyle === "badge";
313
339
  T0 = Box;
314
340
  if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
@@ -326,11 +352,10 @@ const TONE = {
326
352
  t2 = spec.subtitle && values && /*#__PURE__*/ _jsx(Typography, {
327
353
  component: "div",
328
354
  sx: {
329
- fontSize: 9,
330
- letterSpacing: "0.04em",
331
- textTransform: "uppercase",
355
+ fontSize: 12,
356
+ lineHeight: "16px",
332
357
  color: "text.secondary",
333
- mt: "-4px",
358
+ mt: "-2px",
334
359
  mb: "2px",
335
360
  whiteSpace: "nowrap",
336
361
  overflow: "hidden",
@@ -341,16 +366,10 @@ const TONE = {
341
366
  let t7;
342
367
  if ($[11] !== badge) {
343
368
  t7 = badge ? {
344
- fontWeight: 650,
345
- lineHeight: 1.1,
346
369
  display: "flex",
347
- alignItems: "baseline",
370
+ alignItems: "center",
348
371
  gap: "8px"
349
- } : {
350
- fontWeight: 300,
351
- lineHeight: 1.05,
352
- letterSpacing: "-0.02em"
353
- };
372
+ } : {};
354
373
  $[11] = badge;
355
374
  $[12] = t7;
356
375
  } else {
@@ -361,7 +380,10 @@ const TONE = {
361
380
  if ($[13] !== t7 || $[14] !== t8) {
362
381
  t9 = {
363
382
  ...numbers,
364
- fontSize: 22,
383
+ fontSize: 28,
384
+ fontWeight: 700,
385
+ lineHeight: "32px",
386
+ letterSpacing: "-0.01em",
365
387
  ...t7,
366
388
  mb: "4px",
367
389
  color: t8
@@ -390,7 +412,7 @@ const TONE = {
390
412
  ...numbers,
391
413
  fontSize: 13,
392
414
  fontWeight: 400,
393
- letterSpacing: "0.02em",
415
+ letterSpacing: 0,
394
416
  color: "text.secondary",
395
417
  ml: badge ? 0 : "8px",
396
418
  whiteSpace: "nowrap"
@@ -405,22 +427,12 @@ const TONE = {
405
427
  } else {
406
428
  t11 = $[24];
407
429
  }
408
- let t12;
409
- if ($[25] !== badge || $[26] !== before || $[27] !== now || $[28] !== spec.lowerIsBetter) {
410
- t12 = badge && /*#__PURE__*/ _jsx(Badge, {
411
- now: now,
412
- before: before,
413
- lowerIsBetter: spec.lowerIsBetter
414
- });
415
- $[25] = badge;
416
- $[26] = before;
417
- $[27] = now;
418
- $[28] = spec.lowerIsBetter;
419
- $[29] = t12;
420
- } else {
421
- t12 = $[29];
422
- }
423
- if ($[30] !== t10 || $[31] !== t11 || $[32] !== t12 || $[33] !== t9) {
430
+ const t12 = badge && /*#__PURE__*/ _jsx(Badge, {
431
+ now: now,
432
+ before: before,
433
+ lowerIsBetter: spec.lowerIsBetter
434
+ });
435
+ if ($[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t9) {
424
436
  t3 = /*#__PURE__*/ _jsxs(Typography, {
425
437
  component: "div",
426
438
  sx: t9,
@@ -430,54 +442,53 @@ const TONE = {
430
442
  t12
431
443
  ]
432
444
  });
433
- $[30] = t10;
434
- $[31] = t11;
435
- $[32] = t12;
436
- $[33] = t9;
437
- $[34] = t3;
445
+ $[25] = t10;
446
+ $[26] = t11;
447
+ $[27] = t12;
448
+ $[28] = t9;
449
+ $[29] = t3;
438
450
  } else {
439
- t3 = $[34];
440
- }
441
- if ($[35] !== line || $[36] !== lineColor) {
442
- t4 = line && /*#__PURE__*/ _jsx(Typography, {
443
- component: "div",
444
- sx: {
445
- ...numbers,
446
- fontSize: 10,
447
- fontWeight: 500,
448
- lineHeight: 1.4,
449
- letterSpacing: "0.02em",
450
- textTransform: "uppercase",
451
- whiteSpace: "nowrap",
452
- overflow: "hidden",
453
- textOverflow: "ellipsis",
454
- color: lineColor
455
- },
456
- children: line
457
- });
458
- $[35] = line;
459
- $[36] = lineColor;
460
- $[37] = t4;
461
- } else {
462
- t4 = $[37];
451
+ t3 = $[29];
463
452
  }
453
+ t4 = line && /*#__PURE__*/ _jsxs(Typography, {
454
+ component: "div",
455
+ sx: {
456
+ ...numbers,
457
+ display: "flex",
458
+ alignItems: "center",
459
+ gap: "6px",
460
+ fontSize: 12,
461
+ fontWeight: chip ? 400 : 500,
462
+ lineHeight: "20px",
463
+ whiteSpace: "nowrap",
464
+ overflow: "hidden",
465
+ textOverflow: "ellipsis",
466
+ color: lineColor
467
+ },
468
+ children: [
469
+ chip && /*#__PURE__*/ _jsx(Typography, {
470
+ component: "span",
471
+ sx: chipSx(chip.tone),
472
+ children: chip.text
473
+ }),
474
+ /*#__PURE__*/ _jsx("span", {
475
+ style: {
476
+ overflow: "hidden",
477
+ textOverflow: "ellipsis"
478
+ },
479
+ children: line
480
+ })
481
+ ]
482
+ });
464
483
  t5 = spec.detail && values && /*#__PURE__*/ _jsx(Typography, {
465
484
  component: "div",
466
485
  sx: {
467
486
  ...numbers,
468
- display: "inline-block",
469
- fontSize: 9,
470
- fontWeight: 500,
471
- lineHeight: 1.4,
472
- letterSpacing: "0.04em",
473
- textTransform: "uppercase",
487
+ fontSize: 12,
488
+ fontWeight: 400,
489
+ lineHeight: "16px",
474
490
  color: "text.secondary",
475
- mt: "5px",
476
- px: "6px",
477
- py: "2px",
478
- bgcolor: "action.hover",
479
- border: 1,
480
- borderColor: "divider"
491
+ mt: "4px"
481
492
  },
482
493
  children: fill(spec.detail, values)
483
494
  });
@@ -498,21 +509,21 @@ const TONE = {
498
509
  t5 = $[7];
499
510
  }
500
511
  let t6;
501
- if ($[38] !== queryResults || $[39] !== spec.color || $[40] !== spec.sparkline || $[41] !== theme) {
512
+ if ($[30] !== queryResults || $[31] !== spec.color || $[32] !== spec.sparkline || $[33] !== theme) {
502
513
  t6 = spec.sparkline && /*#__PURE__*/ _jsx(Sparkline, {
503
514
  values: valuesOver(queryResults, spec.sparkline.series),
504
515
  color: spec.sparkline.color ?? spec.color ?? theme.palette.text.primary
505
516
  });
506
- $[38] = queryResults;
507
- $[39] = spec.color;
508
- $[40] = spec.sparkline;
509
- $[41] = theme;
510
- $[42] = t6;
517
+ $[30] = queryResults;
518
+ $[31] = spec.color;
519
+ $[32] = spec.sparkline;
520
+ $[33] = theme;
521
+ $[34] = t6;
511
522
  } else {
512
- t6 = $[42];
523
+ t6 = $[34];
513
524
  }
514
525
  let t7;
515
- if ($[43] !== queryResults || $[44] !== spec.rows) {
526
+ if ($[35] !== queryResults || $[36] !== spec.rows) {
516
527
  t7 = spec.rows && spec.rows.length > 0 && /*#__PURE__*/ _jsx(Box, {
517
528
  component: "dl",
518
529
  sx: {
@@ -526,10 +537,10 @@ const TONE = {
526
537
  return /*#__PURE__*/ _jsxs(Box, {
527
538
  sx: {
528
539
  display: "flex",
529
- alignItems: "baseline",
540
+ alignItems: "center",
530
541
  justifyContent: "space-between",
531
542
  gap: "10px",
532
- py: "3px",
543
+ py: "4px",
533
544
  borderTop: 1,
534
545
  borderColor: "divider",
535
546
  fontSize: 12
@@ -548,7 +559,7 @@ const TONE = {
548
559
  sx: {
549
560
  ...numbers,
550
561
  display: "inline-flex",
551
- alignItems: "baseline",
562
+ alignItems: "center",
552
563
  gap: "6px",
553
564
  m: 0,
554
565
  color: "text.primary",
@@ -568,14 +579,14 @@ const TONE = {
568
579
  }, row.label);
569
580
  })
570
581
  });
571
- $[43] = queryResults;
572
- $[44] = spec.rows;
573
- $[45] = t7;
582
+ $[35] = queryResults;
583
+ $[36] = spec.rows;
584
+ $[37] = t7;
574
585
  } else {
575
- t7 = $[45];
586
+ t7 = $[37];
576
587
  }
577
588
  let t8;
578
- if ($[46] !== T0 || $[47] !== t1 || $[48] !== t2 || $[49] !== t3 || $[50] !== t4 || $[51] !== t5 || $[52] !== t6 || $[53] !== t7) {
589
+ if ($[38] !== T0 || $[39] !== t1 || $[40] !== t2 || $[41] !== t3 || $[42] !== t4 || $[43] !== t5 || $[44] !== t6 || $[45] !== t7) {
579
590
  t8 = /*#__PURE__*/ _jsxs(T0, {
580
591
  sx: t1,
581
592
  children: [
@@ -587,17 +598,17 @@ const TONE = {
587
598
  t7
588
599
  ]
589
600
  });
590
- $[46] = T0;
591
- $[47] = t1;
592
- $[48] = t2;
593
- $[49] = t3;
594
- $[50] = t4;
595
- $[51] = t5;
596
- $[52] = t6;
597
- $[53] = t7;
598
- $[54] = t8;
601
+ $[38] = T0;
602
+ $[39] = t1;
603
+ $[40] = t2;
604
+ $[41] = t3;
605
+ $[42] = t4;
606
+ $[43] = t5;
607
+ $[44] = t6;
608
+ $[45] = t7;
609
+ $[46] = t8;
599
610
  } else {
600
- t8 = $[54];
611
+ t8 = $[46];
601
612
  }
602
613
  return t8;
603
614
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/panels/pulzr-figure-panel/PulzrFigurePanelComponent.tsx"],"sourcesContent":["import { Box, Typography, useTheme } from '@mui/material';\nimport type { FormatOptions } from '@perses-dev/components';\nimport { EChart, formatValue, useChartsTheme } from '@perses-dev/components';\nimport { LineChart } from 'echarts/charts';\nimport { GridComponent } from 'echarts/components';\nimport { color as colors, use as registerECharts } from 'echarts/core';\nimport { CanvasRenderer } from 'echarts/renderers';\nimport type { ReactElement } from 'react';\nimport { useMemo } from 'react';\n\nimport {\n BADGE_ARROWS,\n changeOf,\n changeText,\n figureOf,\n fill,\n pairOf,\n sizeChange,\n timeInParts,\n valuesOf,\n valuesOver,\n} from './figure';\nimport type { PulzrFigurePanelProps } from './pulzr-figure-panel-types';\n\nregisterECharts([LineChart, GridComponent, CanvasRenderer]);\n\nconst numbers = { fontFeatureSettings: \"'tnum' 1\", fontVariantNumeric: 'tabular-nums' } as const;\n\n/** A value as text: a time in parts when asked, else by its format. */\nfunction figure(now: number | undefined, format?: FormatOptions, inParts?: boolean): string {\n if (now === undefined) return '—';\n return (inParts && timeInParts(now, format?.unit)) || formatValue(now, format);\n}\n\nconst TONE = { good: 'success.main', bad: 'error.main', flat: 'text.disabled' } as const;\n\n/** The change, small, as a pillar has it beside a figure: `↗ 133%`, good or bad news. Nothing with nothing before. */\nfunction Badge({\n now,\n before,\n lowerIsBetter,\n}: {\n now?: number;\n before?: number;\n lowerIsBetter?: boolean;\n}): ReactElement | null {\n const change = sizeChange(now, before, lowerIsBetter, BADGE_ARROWS);\n if (!change) return null;\n return (\n <Typography\n component=\"span\"\n sx={{ ...numbers, fontSize: 11, fontWeight: 600, whiteSpace: 'nowrap', color: TONE[change.tone] }}\n >\n {change.text}\n </Typography>\n );\n}\n\n/** An area, its line 1.5 wide, fading from the color down: the series' shape over the period. */\nfunction Sparkline({ values, color }: { values: number[]; color: string }): ReactElement {\n const chartsTheme = useChartsTheme();\n const option = useMemo(\n () => ({\n animation: false,\n grid: { top: 2, right: 0, bottom: 0, left: 0 },\n xAxis: { type: 'category', show: false, boundaryGap: false },\n yAxis: { type: 'value', show: false },\n series: [\n {\n type: 'line',\n data: values,\n smooth: true,\n smoothMonotone: 'x',\n symbol: 'none',\n silent: true,\n lineStyle: { color, width: 1.5 },\n // The console's area: a gradient 0.3 to 0, at the 0.6 opacity a Recharts area has.\n areaStyle: {\n opacity: 0.6,\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [\n { offset: 0, color: colors.modifyAlpha(color, 0.3) },\n { offset: 1, color: colors.modifyAlpha(color, 0) },\n ],\n },\n },\n },\n ],\n }),\n [values, color],\n );\n return (\n <Box sx={{ height: 32, m: '4px -2px 6px' }}>\n {values.length > 1 && (\n <EChart option={option} theme={chartsTheme.echartsTheme} sx={{ width: '100%', height: '100%' }} />\n )}\n </Box>\n );\n}\n\n/**\n * The line under the figure: its change in the style asked, good news in the success color, bad in the error\n * color, flat quiet; or the caption, secondary, with nothing to compare with.\n */\nfunction changeLine(\n now: number | undefined,\n before: number | undefined,\n spec: PulzrFigurePanelProps['spec'],\n): { line?: string; lineColor: string } {\n const label = spec.comparedLabel ?? 'vs the period before';\n if (spec.changeStyle === 'badge') {\n return { line: sizeChange(now, before) ? undefined : spec.caption, lineColor: 'text.secondary' };\n }\n if (spec.changeStyle === 'size') {\n const change = sizeChange(now, before, spec.lowerIsBetter);\n return change\n ? { line: `${change.text} ${label}`, lineColor: TONE[change.tone] }\n : { line: spec.caption, lineColor: 'text.secondary' };\n }\n const change = changeOf(now, before);\n if (!change) return { line: spec.caption, lineColor: 'text.secondary' };\n if (change.direction === 'flat') return { line: changeText(change, label), lineColor: TONE.flat };\n const good = change.direction === (spec.lowerIsBetter ? 'down' : 'up');\n return { line: changeText(change, label), lineColor: good ? TONE.good : TONE.bad };\n}\n\n/**\n * One figure, large and light, and under it its change against the period before (or a caption); as a pillar, bold\n * with its change beside it, a sparkline and a list of figures under it.\n */\nexport function PulzrFigurePanelComponent({ queryResults, spec }: PulzrFigurePanelProps): ReactElement {\n const theme = useTheme();\n const others = [...(spec.sparkline ? [spec.sparkline.series] : []), ...(spec.rows ?? []).map((r) => r.series)];\n const { now, before, total } = figureOf(queryResults, spec.of?.series, others);\n const values = spec.subtitle || spec.detail ? valuesOf(queryResults) : undefined;\n const { line, lineColor } = changeLine(now, before, spec);\n const badge = spec.changeStyle === 'badge';\n return (\n <Box sx={{ px: '10px', pt: '2px', pb: '7px', minWidth: 0, overflow: 'hidden' }}>\n {spec.subtitle && values && (\n <Typography\n component=\"div\"\n sx={{\n fontSize: 9,\n letterSpacing: '0.04em',\n textTransform: 'uppercase',\n color: 'text.secondary',\n mt: '-4px',\n mb: '2px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }}\n >\n {fill(spec.subtitle, values)}\n </Typography>\n )}\n <Typography\n component=\"div\"\n sx={{\n ...numbers,\n fontSize: 22,\n ...(badge\n ? { fontWeight: 650, lineHeight: 1.1, display: 'flex', alignItems: 'baseline', gap: '8px' }\n : { fontWeight: 300, lineHeight: 1.05, letterSpacing: '-0.02em' }),\n mb: '4px',\n color: spec.color ?? 'text.primary',\n }}\n >\n {figure(now, spec.format, spec.timeInParts)}\n {spec.of && total !== undefined && now !== undefined && (\n <Typography\n component=\"span\"\n sx={{\n ...numbers,\n fontSize: 13,\n fontWeight: 400,\n letterSpacing: '0.02em',\n color: 'text.secondary',\n ml: badge ? 0 : '8px',\n whiteSpace: 'nowrap',\n }}\n >\n {`${Math.round(now * total)}/${total}${spec.of.label ? ` ${spec.of.label}` : ''}`}\n </Typography>\n )}\n {badge && <Badge now={now} before={before} lowerIsBetter={spec.lowerIsBetter} />}\n </Typography>\n {line && (\n <Typography\n component=\"div\"\n sx={{\n ...numbers,\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 1.4,\n letterSpacing: '0.02em',\n textTransform: 'uppercase',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n color: lineColor,\n }}\n >\n {line}\n </Typography>\n )}\n {spec.detail && values && (\n <Typography\n component=\"div\"\n sx={{\n ...numbers,\n display: 'inline-block',\n fontSize: 9,\n fontWeight: 500,\n lineHeight: 1.4,\n letterSpacing: '0.04em',\n textTransform: 'uppercase',\n color: 'text.secondary',\n mt: '5px',\n px: '6px',\n py: '2px',\n bgcolor: 'action.hover',\n border: 1,\n borderColor: 'divider',\n }}\n >\n {fill(spec.detail, values)}\n </Typography>\n )}\n {spec.sparkline && (\n <Sparkline\n values={valuesOver(queryResults, spec.sparkline.series)}\n color={spec.sparkline.color ?? spec.color ?? theme.palette.text.primary}\n />\n )}\n {spec.rows && spec.rows.length > 0 && (\n <Box component=\"dl\" sx={{ display: 'flex', flexDirection: 'column', gap: '1px', m: 0 }}>\n {spec.rows.map((row) => {\n const pair = pairOf(queryResults, row.series);\n return (\n <Box\n key={row.label}\n sx={{\n display: 'flex',\n alignItems: 'baseline',\n justifyContent: 'space-between',\n gap: '10px',\n py: '3px',\n borderTop: 1,\n borderColor: 'divider',\n fontSize: 12,\n }}\n >\n <Box component=\"dt\" sx={{ color: 'text.secondary', minWidth: 0 }}>\n {row.label}\n </Box>\n <Box\n component=\"dd\"\n sx={{\n ...numbers,\n display: 'inline-flex',\n alignItems: 'baseline',\n gap: '6px',\n m: 0,\n color: 'text.primary',\n whiteSpace: 'nowrap',\n }}\n >\n {figure(pair.now, row.format, row.timeInParts)}\n {row.suffix && pair.now !== undefined && ` ${row.suffix}`}\n <Badge now={pair.now} before={pair.before} lowerIsBetter={row.lowerIsBetter} />\n </Box>\n </Box>\n );\n })}\n </Box>\n )}\n </Box>\n );\n}\n"],"names":["Box","Typography","useTheme","EChart","formatValue","useChartsTheme","LineChart","GridComponent","color","colors","use","registerECharts","CanvasRenderer","BADGE_ARROWS","changeOf","changeText","figureOf","fill","pairOf","sizeChange","timeInParts","valuesOf","valuesOver","numbers","fontFeatureSettings","fontVariantNumeric","figure","now","format","inParts","undefined","unit","TONE","good","bad","flat","changeLine","before","spec","label","comparedLabel","changeStyle","line","caption","lineColor","change","lowerIsBetter","text","tone","direction"],"mappings":";;AAAA,SAASA,GAAG,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,gBAAgB;AAE1D,SAASC,MAAM,EAAEC,WAAW,EAAEC,cAAc,QAAQ,yBAAyB;AAC7E,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,SAASC,MAAM,EAAEC,OAAOC,eAAe,QAAQ,eAAe;AACvE,SAASC,cAAc,QAAQ,oBAAoB;AAInD,SACEC,YAAY,EACZC,QAAQ,EACRC,UAAU,EACVC,QAAQ,EACRC,IAAI,EACJC,MAAM,EACNC,UAAU,EACVC,WAAW,EACXC,QAAQ,EACRC,UAAU,QACL,cAAW;AAGlBX,gBAAgB;IAACL;IAAWC;IAAeK;CAAe;AAE1D,MAAMW,UAAU;IAAEC,qBAAqB;IAAYC,oBAAoB;AAAe;AAEtF,qEAAqE,GACrE,SAASC,OAAOC,GAAG,EAAsBC,MAAM,EAAkBC,OAAO;IACtE,IAAIF,QAAQG,WAAW,OAAO;IAC9B,OAAO,AAACD,WAAWT,YAAYO,KAAKC,QAAQG,SAAU3B,YAAYuB,KAAKC;AACzE;AAEA,MAAMI,OAAO;IAAEC,MAAM;IAAgBC,KAAK;IAAcC,MAAM;AAAgB;AAE9E,oHAAoH,GACpH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,+FAA+F,GAC/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA;;;CAGC,GACD,SAASC,WACPT,GAAG,EACHU,MAAM,EACNC,IAAI;IAEJ,MAAMC,QAAQD,KAAKE,aAAa,IAAI;IACpC,IAAIF,KAAKG,WAAW,KAAK,SAAS;QAChC,OAAO;YAAEC,MAAMvB,WAAWQ,KAAKU,UAAUP,YAAYQ,KAAKK,OAAO;YAAEC,WAAW;QAAiB;IACjG;IACA,IAAIN,KAAKG,WAAW,KAAK,QAAQ;QAC/B,MAAMI,SAAS1B,WAAWQ,KAAKU,QAAQC,KAAKQ,aAAa;QACzD,OAAOD,SACH;YAAEH,MAAM,GAAGG,OAAOE,IAAI,CAAC,CAAC,EAAER,OAAO;YAAEK,WAAWZ,IAAKa,CAAAA,OAAOG,IAAI,CAAA,AAAC;QAAC,IAChE;YAAEN,MAAMJ,KAAKK,OAAO;YAAEC,WAAW;QAAiB;IACxD;IACA,MAAMC,SAAS/B,SAASa,KAAKU;IAC7B,IAAI,CAACQ,QAAQ,OAAO;QAAEH,MAAMJ,KAAKK,OAAO;QAAEC,WAAW;IAAiB;IACtE,IAAIC,OAAOI,SAAS,KAAK,QAAQ,OAAO;QAAEP,MAAM3B,WAAW8B,QAAQN;QAAQK,WAAWZ,KAAKG,IAAI;IAAC;IAChG,MAAMF,OAAOY,OAAOI,SAAS,KAAMX,CAAAA,KAAKQ,aAAa,GAAG,SAAS,IAAG;IACpE,OAAO;QAAEJ,MAAM3B,WAAW8B,QAAQN;QAAQK,WAAWX,OAAOD,KAAKC,IAAI,GAAGD,KAAKE,GAAG;IAAC;AACnF;AAEA;;;CAGC,GACD,OAAO"}
1
+ {"version":3,"sources":["../../../../src/panels/pulzr-figure-panel/PulzrFigurePanelComponent.tsx"],"sourcesContent":["import type { SxProps, Theme } from '@mui/material';\nimport { Box, Typography, alpha, useTheme } from '@mui/material';\nimport type { FormatOptions } from '@perses-dev/components';\nimport { EChart, formatValue, useChartsTheme } from '@perses-dev/components';\nimport { LineChart } from 'echarts/charts';\nimport { GridComponent } from 'echarts/components';\nimport { color as colors, use as registerECharts } from 'echarts/core';\nimport { CanvasRenderer } from 'echarts/renderers';\nimport type { ReactElement } from 'react';\nimport { useMemo } from 'react';\n\nimport {\n BADGE_ARROWS,\n changeOf,\n changeText,\n figureOf,\n fill,\n pairOf,\n sizeChange,\n timeInParts,\n valuesOf,\n valuesOver,\n} from './figure';\nimport type { PulzrFigurePanelProps } from './pulzr-figure-panel-types';\n\nregisterECharts([LineChart, GridComponent, CanvasRenderer]);\n\nconst numbers = { fontFeatureSettings: \"'tnum' 1\", fontVariantNumeric: 'tabular-nums' } as const;\n\n/** A value as text: a time in parts when asked, else by its format. */\nfunction figure(now: number | undefined, format?: FormatOptions, inParts?: boolean): string {\n if (now === undefined) return '—';\n return (inParts && timeInParts(now, format?.unit)) || formatValue(now, format);\n}\n\nconst TONE = { good: 'success.main', bad: 'error.main', flat: 'text.secondary' } as const;\n\n/** A change as a chip: its text in the tone's color on a soft tint of it, 12px, so a figure's news reads at a glance. */\nfunction chipSx(tone: keyof typeof TONE): SxProps<Theme> {\n return {\n ...numbers,\n display: 'inline-flex',\n alignItems: 'center',\n height: 20,\n px: '7px',\n borderRadius: 999,\n fontSize: 12,\n fontWeight: 600,\n lineHeight: 1,\n letterSpacing: 0,\n whiteSpace: 'nowrap',\n color: TONE[tone],\n bgcolor: (t: Theme) =>\n tone === 'flat' ? t.palette.action.hover : alpha(tone === 'good' ? t.palette.success.main : t.palette.error.main, 0.14),\n };\n}\n\n/** The change, small, as a pillar has it beside a figure: `↗ 133%`, good or bad news. Nothing with nothing before. */\nfunction Badge({\n now,\n before,\n lowerIsBetter,\n}: {\n now?: number;\n before?: number;\n lowerIsBetter?: boolean;\n}): ReactElement | null {\n const change = sizeChange(now, before, lowerIsBetter, BADGE_ARROWS);\n if (!change) return null;\n return (\n <Typography component=\"span\" sx={chipSx(change.tone)}>\n {change.text}\n </Typography>\n );\n}\n\n/** An area, its line 1.5 wide, fading from the color down: the series' shape over the period. */\nfunction Sparkline({ values, color }: { values: number[]; color: string }): ReactElement {\n const chartsTheme = useChartsTheme();\n const option = useMemo(\n () => ({\n animation: false,\n grid: { top: 2, right: 0, bottom: 0, left: 0 },\n xAxis: { type: 'category', show: false, boundaryGap: false },\n yAxis: { type: 'value', show: false },\n series: [\n {\n type: 'line',\n data: values,\n smooth: true,\n smoothMonotone: 'x',\n symbol: 'none',\n silent: true,\n lineStyle: { color, width: 1.5 },\n // The console's area: a gradient 0.3 to 0, at the 0.6 opacity a Recharts area has.\n areaStyle: {\n opacity: 0.6,\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [\n { offset: 0, color: colors.modifyAlpha(color, 0.3) },\n { offset: 1, color: colors.modifyAlpha(color, 0) },\n ],\n },\n },\n },\n ],\n }),\n [values, color],\n );\n return (\n <Box sx={{ height: 32, m: '4px -2px 6px' }}>\n {values.length > 1 && (\n <EChart option={option} theme={chartsTheme.echartsTheme} sx={{ width: '100%', height: '100%' }} />\n )}\n </Box>\n );\n}\n\n/**\n * The line under the figure: its change in the style asked, good news in the success color, bad in the error\n * color, flat quiet; or the caption, secondary, with nothing to compare with.\n */\nfunction changeLine(\n now: number | undefined,\n before: number | undefined,\n spec: PulzrFigurePanelProps['spec'],\n): { line?: string; lineColor: string; chip?: { text: string; tone: keyof typeof TONE } } {\n const label = spec.comparedLabel ?? 'vs the period before';\n if (spec.changeStyle === 'badge') {\n return { line: sizeChange(now, before) ? undefined : spec.caption, lineColor: 'text.secondary' };\n }\n if (spec.changeStyle === 'size') {\n const change = sizeChange(now, before, spec.lowerIsBetter);\n return change\n ? { line: label, lineColor: 'text.secondary', chip: change }\n : { line: spec.caption, lineColor: 'text.secondary' };\n }\n const change = changeOf(now, before);\n if (!change) return { line: spec.caption, lineColor: 'text.secondary' };\n if (change.direction === 'flat') return { line: changeText(change, label), lineColor: TONE.flat };\n const good = change.direction === (spec.lowerIsBetter ? 'down' : 'up');\n return { line: changeText(change, label), lineColor: good ? TONE.good : TONE.bad };\n}\n\n/**\n * One figure, large and bold in the text color, and under it its change against the period before (or a caption); as a pillar, bold\n * with its change beside it, a sparkline and a list of figures under it.\n */\nexport function PulzrFigurePanelComponent({ queryResults, spec }: PulzrFigurePanelProps): ReactElement {\n const theme = useTheme();\n const others = [...(spec.sparkline ? [spec.sparkline.series] : []), ...(spec.rows ?? []).map((r) => r.series)];\n const { now, before, total } = figureOf(queryResults, spec.of?.series, others);\n const values = spec.subtitle || spec.detail ? valuesOf(queryResults) : undefined;\n const { line, lineColor, chip } = changeLine(now, before, spec);\n const badge = spec.changeStyle === 'badge';\n return (\n <Box sx={{ px: '10px', pt: '2px', pb: '7px', minWidth: 0, overflow: 'hidden' }}>\n {spec.subtitle && values && (\n <Typography\n component=\"div\"\n sx={{\n fontSize: 12,\n lineHeight: '16px',\n color: 'text.secondary',\n mt: '-2px',\n mb: '2px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }}\n >\n {fill(spec.subtitle, values)}\n </Typography>\n )}\n <Typography\n component=\"div\"\n sx={{\n ...numbers,\n fontSize: 28,\n fontWeight: 700,\n lineHeight: '32px',\n letterSpacing: '-0.01em',\n ...(badge ? { display: 'flex', alignItems: 'center', gap: '8px' } : {}),\n mb: '4px',\n color: spec.color ?? 'text.primary',\n }}\n >\n {figure(now, spec.format, spec.timeInParts)}\n {spec.of && total !== undefined && now !== undefined && (\n <Typography\n component=\"span\"\n sx={{\n ...numbers,\n fontSize: 13,\n fontWeight: 400,\n letterSpacing: 0,\n color: 'text.secondary',\n ml: badge ? 0 : '8px',\n whiteSpace: 'nowrap',\n }}\n >\n {`${Math.round(now * total)}/${total}${spec.of.label ? ` ${spec.of.label}` : ''}`}\n </Typography>\n )}\n {badge && <Badge now={now} before={before} lowerIsBetter={spec.lowerIsBetter} />}\n </Typography>\n {line && (\n <Typography\n component=\"div\"\n sx={{\n ...numbers,\n display: 'flex',\n alignItems: 'center',\n gap: '6px',\n fontSize: 12,\n fontWeight: chip ? 400 : 500,\n lineHeight: '20px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n color: lineColor,\n }}\n >\n {chip && (\n <Typography component=\"span\" sx={chipSx(chip.tone)}>\n {chip.text}\n </Typography>\n )}\n <span style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>{line}</span>\n </Typography>\n )}\n {spec.detail && values && (\n <Typography\n component=\"div\"\n sx={{\n ...numbers,\n fontSize: 12,\n fontWeight: 400,\n lineHeight: '16px',\n color: 'text.secondary',\n mt: '4px',\n }}\n >\n {fill(spec.detail, values)}\n </Typography>\n )}\n {spec.sparkline && (\n <Sparkline\n values={valuesOver(queryResults, spec.sparkline.series)}\n color={spec.sparkline.color ?? spec.color ?? theme.palette.text.primary}\n />\n )}\n {spec.rows && spec.rows.length > 0 && (\n <Box component=\"dl\" sx={{ display: 'flex', flexDirection: 'column', gap: '1px', m: 0 }}>\n {spec.rows.map((row) => {\n const pair = pairOf(queryResults, row.series);\n return (\n <Box\n key={row.label}\n sx={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: '10px',\n py: '4px',\n borderTop: 1,\n borderColor: 'divider',\n fontSize: 12,\n }}\n >\n <Box component=\"dt\" sx={{ color: 'text.secondary', minWidth: 0 }}>\n {row.label}\n </Box>\n <Box\n component=\"dd\"\n sx={{\n ...numbers,\n display: 'inline-flex',\n alignItems: 'center',\n gap: '6px',\n m: 0,\n color: 'text.primary',\n whiteSpace: 'nowrap',\n }}\n >\n {figure(pair.now, row.format, row.timeInParts)}\n {row.suffix && pair.now !== undefined && ` ${row.suffix}`}\n <Badge now={pair.now} before={pair.before} lowerIsBetter={row.lowerIsBetter} />\n </Box>\n </Box>\n );\n })}\n </Box>\n )}\n </Box>\n );\n}\n"],"names":["Box","Typography","alpha","useTheme","EChart","formatValue","useChartsTheme","LineChart","GridComponent","color","colors","use","registerECharts","CanvasRenderer","BADGE_ARROWS","changeOf","changeText","figureOf","fill","pairOf","sizeChange","timeInParts","valuesOf","valuesOver","numbers","fontFeatureSettings","fontVariantNumeric","figure","now","format","inParts","undefined","unit","TONE","good","bad","flat","chipSx","tone","display","alignItems","height","px","borderRadius","fontSize","fontWeight","lineHeight","letterSpacing","whiteSpace","bgcolor","t","palette","action","hover","success","main","error","changeLine","before","spec","label","comparedLabel","changeStyle","line","caption","lineColor","change","lowerIsBetter","chip","direction"],"mappings":"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"}
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "PulzrFigurePanel",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.3.0",
8
+ "buildVersion": "0.4.0",
9
9
  "buildName": "@pulzr/perses-figure-panel"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/PulzrFigurePanel.b29c14b507.js",
12
+ "name": "__mf/js/PulzrFigurePanel.bf7939ff93.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -19,9 +19,9 @@
19
19
  "zip": "",
20
20
  "api": ""
21
21
  },
22
- "globalName": "PulzrFigurePanel_0_3_0",
22
+ "globalName": "PulzrFigurePanel_0_4_0",
23
23
  "pluginVersion": "2.9.3",
24
- "getPublicPath": "function() { return (window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\") + \"/plugins/PulzrFigurePanel~0.3.0/\"; }"
24
+ "getPublicPath": "function() { return (window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\") + \"/plugins/PulzrFigurePanel~0.4.0/\"; }"
25
25
  },
26
26
  "shared": [
27
27
  {
@@ -34,7 +34,7 @@
34
34
  "js": {
35
35
  "async": [],
36
36
  "sync": [
37
- "__mf/js/async/0p.810fbfea5e.js"
37
+ "__mf/js/async/0p.ac41951f88.js"
38
38
  ]
39
39
  },
40
40
  "css": {
@@ -54,8 +54,8 @@
54
54
  "js": {
55
55
  "async": [],
56
56
  "sync": [
57
- "__mf/js/async/6.1033156971.js",
58
- "__mf/js/async/o.ec154e6ff6.js"
57
+ "__mf/js/async/6.68f450e667.js",
58
+ "__mf/js/async/o.9ef93c3d4a.js"
59
59
  ]
60
60
  },
61
61
  "css": {
@@ -75,7 +75,7 @@
75
75
  "js": {
76
76
  "async": [],
77
77
  "sync": [
78
- "__mf/js/async/mt.918f7f9b24.js"
78
+ "__mf/js/async/mt.781853f15e.js"
79
79
  ]
80
80
  },
81
81
  "css": {
@@ -97,7 +97,7 @@
97
97
  "js": {
98
98
  "async": [],
99
99
  "sync": [
100
- "__mf/js/async/s.658d6a4164.js"
100
+ "__mf/js/async/s.ffd9fa8239.js"
101
101
  ]
102
102
  },
103
103
  "css": {
@@ -117,7 +117,7 @@
117
117
  "js": {
118
118
  "async": [],
119
119
  "sync": [
120
- "__mf/js/async/os.e5e40daae1.js"
120
+ "__mf/js/async/os.d56e539d46.js"
121
121
  ]
122
122
  },
123
123
  "css": {
@@ -137,7 +137,7 @@
137
137
  "js": {
138
138
  "async": [],
139
139
  "sync": [
140
- "__mf/js/async/f.9b147c6255.js"
140
+ "__mf/js/async/f.287458ee3b.js"
141
141
  ]
142
142
  },
143
143
  "css": {
@@ -157,8 +157,8 @@
157
157
  "js": {
158
158
  "async": [],
159
159
  "sync": [
160
- "__mf/js/async/2.e0e77c51ac.js",
161
- "__mf/js/async/p.4a73008e86.js"
160
+ "__mf/js/async/2.d6d514458f.js",
161
+ "__mf/js/async/p.60ab86d6d6.js"
162
162
  ]
163
163
  },
164
164
  "css": {
@@ -178,7 +178,7 @@
178
178
  "js": {
179
179
  "async": [],
180
180
  "sync": [
181
- "__mf/js/async/0.ee9b9a050d.js"
181
+ "__mf/js/async/0.6258e412aa.js"
182
182
  ]
183
183
  },
184
184
  "css": {
@@ -197,11 +197,11 @@
197
197
  "assets": {
198
198
  "js": {
199
199
  "sync": [
200
- "__mf/js/async/kx.899711f01e.js",
201
- "__mf/js/async/__federation_expose_PulzrFigurePanel.9472172973.js"
200
+ "__mf/js/async/kx.49c84b1c51.js",
201
+ "__mf/js/async/__federation_expose_PulzrFigurePanel.9611e4f48f.js"
202
202
  ],
203
203
  "async": [
204
- "__mf/js/async/k.39678d65e5.js"
204
+ "__mf/js/async/k.c04645b420.js"
205
205
  ]
206
206
  },
207
207
  "css": {