@connectif/ui-components 2.0.12 → 2.0.15

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/index.js CHANGED
@@ -1997,6 +1997,7 @@ import {
1997
1997
  mdiHumanMale,
1998
1998
  mdiHumanMaleFemale,
1999
1999
  mdiHumanPregnant,
2000
+ mdiIdentifier,
2000
2001
  mdiImage,
2001
2002
  mdiImageAlbum,
2002
2003
  mdiImageArea,
@@ -3837,6 +3838,7 @@ var icons = {
3837
3838
  "human-male-female": mdiHumanMaleFemale,
3838
3839
  "human-pregnant": mdiHumanPregnant,
3839
3840
  image: mdiImage,
3841
+ identifier: mdiIdentifier,
3840
3842
  "image-album": mdiImageAlbum,
3841
3843
  "image-area": mdiImageArea,
3842
3844
  "image-area-close": mdiImageAreaClose,
@@ -24230,9 +24232,32 @@ var Loader = ({
24230
24232
  var Loader_default = Loader;
24231
24233
 
24232
24234
  // src/components/markdown/MarkdownRenderer.tsx
24235
+ import React76 from "react";
24233
24236
  import Markdown from "markdown-to-jsx";
24234
24237
  import { styled as styled8 } from "@mui/material/styles";
24235
- import { jsx as jsx136 } from "react/jsx-runtime";
24238
+ import "katex/dist/katex.min.css";
24239
+
24240
+ // src/components/markdown/KatexRenderer.tsx
24241
+ import katex from "katex";
24242
+ import { jsx as jsx136, jsxs as jsxs69 } from "react/jsx-runtime";
24243
+ var KatexRenderer = ({ children, block }) => {
24244
+ try {
24245
+ const html2 = katex.renderToString(children, {
24246
+ throwOnError: false,
24247
+ displayMode: block
24248
+ });
24249
+ return /* @__PURE__ */ jsx136("span", { dangerouslySetInnerHTML: { __html: html2 } });
24250
+ } catch (err) {
24251
+ return /* @__PURE__ */ jsxs69("pre", { style: { color: "red" }, children: [
24252
+ "KaTeX error: $",
24253
+ err.message
24254
+ ] });
24255
+ }
24256
+ };
24257
+ var KatexRenderer_default = KatexRenderer;
24258
+
24259
+ // src/components/markdown/MarkdownRenderer.tsx
24260
+ import { jsx as jsx137 } from "react/jsx-runtime";
24236
24261
  var MarkdownContainer = styled8("div")(
24237
24262
  ({ color: color2, backgroundColor: backgroundColor2 = "transparent", variant }) => ({
24238
24263
  color: color2,
@@ -24293,14 +24318,57 @@ var MarkdownContainer = styled8("div")(
24293
24318
  }
24294
24319
  })
24295
24320
  );
24321
+ var renderWithMath = (text) => {
24322
+ const parts = [];
24323
+ const regex = /\$\$([\s\S]+?)\$\$|\$([\s\S]+?)\$/g;
24324
+ let lastIndex = 0;
24325
+ let match;
24326
+ while ((match = regex.exec(text)) !== null) {
24327
+ const [full, blockExpr, inlineExpr] = match;
24328
+ const start = match.index;
24329
+ if (start > lastIndex) {
24330
+ parts.push(text.slice(lastIndex, start));
24331
+ }
24332
+ if (blockExpr) {
24333
+ parts.push(
24334
+ /* @__PURE__ */ jsx137(KatexRenderer_default, { block: true, children: blockExpr.trim() }, start)
24335
+ );
24336
+ } else if (inlineExpr) {
24337
+ parts.push(
24338
+ /* @__PURE__ */ jsx137(KatexRenderer_default, { children: inlineExpr.trim() }, start)
24339
+ );
24340
+ }
24341
+ lastIndex = regex.lastIndex;
24342
+ }
24343
+ if (lastIndex < text.length) {
24344
+ parts.push(text.slice(lastIndex));
24345
+ }
24346
+ return parts;
24347
+ };
24296
24348
  var MarkdownRenderer = ({
24297
24349
  text,
24298
24350
  ...rest
24299
- }) => /* @__PURE__ */ jsx136(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx136(
24351
+ }) => /* @__PURE__ */ jsx137(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx137(
24300
24352
  Markdown,
24301
24353
  {
24302
24354
  options: {
24303
- forceBlock: true
24355
+ forceBlock: true,
24356
+ overrides: {
24357
+ p: {
24358
+ component: ({ children, ...props }) => {
24359
+ const renderChildren = React76.Children.map(
24360
+ children,
24361
+ (child) => {
24362
+ if (typeof child === "string") {
24363
+ return renderWithMath(child);
24364
+ }
24365
+ return child;
24366
+ }
24367
+ );
24368
+ return /* @__PURE__ */ jsx137("p", { ...props, children: renderChildren });
24369
+ }
24370
+ }
24371
+ }
24304
24372
  },
24305
24373
  children: text
24306
24374
  }
@@ -24309,7 +24377,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
24309
24377
 
24310
24378
  // src/components/navbar/Navbar.tsx
24311
24379
  import { Drawer as Drawer2 } from "@mui/material";
24312
- import { Fragment as Fragment32, jsx as jsx137, jsxs as jsxs69 } from "react/jsx-runtime";
24380
+ import { Fragment as Fragment32, jsx as jsx138, jsxs as jsxs70 } from "react/jsx-runtime";
24313
24381
  var Navbar = ({
24314
24382
  topContent,
24315
24383
  bottomContent,
@@ -24317,8 +24385,8 @@ var Navbar = ({
24317
24385
  drawerBottomContent,
24318
24386
  onClose,
24319
24387
  isDrawerOpen = false
24320
- }) => /* @__PURE__ */ jsxs69(Fragment32, { children: [
24321
- /* @__PURE__ */ jsxs69(
24388
+ }) => /* @__PURE__ */ jsxs70(Fragment32, { children: [
24389
+ /* @__PURE__ */ jsxs70(
24322
24390
  Box_default,
24323
24391
  {
24324
24392
  sx: {
@@ -24333,12 +24401,12 @@ var Navbar = ({
24333
24401
  },
24334
24402
  className: "Slim-Vertical-Scroll",
24335
24403
  children: [
24336
- /* @__PURE__ */ jsx137(Box_default, { children: topContent }),
24337
- /* @__PURE__ */ jsx137(Box_default, { children: bottomContent })
24404
+ /* @__PURE__ */ jsx138(Box_default, { children: topContent }),
24405
+ /* @__PURE__ */ jsx138(Box_default, { children: bottomContent })
24338
24406
  ]
24339
24407
  }
24340
24408
  ),
24341
- /* @__PURE__ */ jsxs69(
24409
+ /* @__PURE__ */ jsxs70(
24342
24410
  Drawer2,
24343
24411
  {
24344
24412
  open: isDrawerOpen,
@@ -24361,8 +24429,8 @@ var Navbar = ({
24361
24429
  },
24362
24430
  onClose,
24363
24431
  children: [
24364
- /* @__PURE__ */ jsx137("div", { children: drawerTopContent }),
24365
- /* @__PURE__ */ jsx137("div", { children: drawerBottomContent })
24432
+ /* @__PURE__ */ jsx138("div", { children: drawerTopContent }),
24433
+ /* @__PURE__ */ jsx138("div", { children: drawerBottomContent })
24366
24434
  ]
24367
24435
  }
24368
24436
  )
@@ -24370,10 +24438,10 @@ var Navbar = ({
24370
24438
  var Navbar_default = Navbar;
24371
24439
 
24372
24440
  // src/components/navbar/NavbarButton.tsx
24373
- import * as React76 from "react";
24441
+ import * as React77 from "react";
24374
24442
  import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
24375
- import { jsx as jsx138, jsxs as jsxs70 } from "react/jsx-runtime";
24376
- var NavbarButton = React76.forwardRef(
24443
+ import { jsx as jsx139, jsxs as jsxs71 } from "react/jsx-runtime";
24444
+ var NavbarButton = React77.forwardRef(
24377
24445
  function NavbarButton2({
24378
24446
  iconId,
24379
24447
  srcUrl,
@@ -24387,7 +24455,7 @@ var NavbarButton = React76.forwardRef(
24387
24455
  if (!highlighted) {
24388
24456
  return element;
24389
24457
  }
24390
- return /* @__PURE__ */ jsxs70(
24458
+ return /* @__PURE__ */ jsxs71(
24391
24459
  Box6,
24392
24460
  {
24393
24461
  sx: {
@@ -24397,7 +24465,7 @@ var NavbarButton = React76.forwardRef(
24397
24465
  position: "relative"
24398
24466
  },
24399
24467
  children: [
24400
- /* @__PURE__ */ jsx138(
24468
+ /* @__PURE__ */ jsx139(
24401
24469
  Box6,
24402
24470
  {
24403
24471
  sx: {
@@ -24413,7 +24481,7 @@ var NavbarButton = React76.forwardRef(
24413
24481
  }
24414
24482
  }
24415
24483
  ),
24416
- /* @__PURE__ */ jsx138(
24484
+ /* @__PURE__ */ jsx139(
24417
24485
  Box6,
24418
24486
  {
24419
24487
  sx: {
@@ -24428,7 +24496,7 @@ var NavbarButton = React76.forwardRef(
24428
24496
  }
24429
24497
  );
24430
24498
  };
24431
- return /* @__PURE__ */ jsxs70(
24499
+ return /* @__PURE__ */ jsxs71(
24432
24500
  ButtonBase2,
24433
24501
  {
24434
24502
  className: "NavbarButton-root",
@@ -24446,7 +24514,7 @@ var NavbarButton = React76.forwardRef(
24446
24514
  },
24447
24515
  children: [
24448
24516
  srcUrl ? getButtonContent(
24449
- /* @__PURE__ */ jsx138(
24517
+ /* @__PURE__ */ jsx139(
24450
24518
  Avatar_default,
24451
24519
  {
24452
24520
  className: "NavbarButton-icon",
@@ -24456,7 +24524,7 @@ var NavbarButton = React76.forwardRef(
24456
24524
  }
24457
24525
  )
24458
24526
  ) : getButtonContent(
24459
- /* @__PURE__ */ jsx138(
24527
+ /* @__PURE__ */ jsx139(
24460
24528
  Icon_default,
24461
24529
  {
24462
24530
  id: iconId,
@@ -24472,7 +24540,7 @@ var NavbarButton = React76.forwardRef(
24472
24540
  }
24473
24541
  )
24474
24542
  ),
24475
- badgeIconProps && /* @__PURE__ */ jsx138(
24543
+ badgeIconProps && /* @__PURE__ */ jsx139(
24476
24544
  Icon_default,
24477
24545
  {
24478
24546
  ...badgeIconProps,
@@ -24494,8 +24562,8 @@ var NavbarButton = React76.forwardRef(
24494
24562
  var NavbarButton_default = NavbarButton;
24495
24563
 
24496
24564
  // src/components/navbar/NavbarHeader.tsx
24497
- import { jsx as jsx139 } from "react/jsx-runtime";
24498
- var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx139(
24565
+ import { jsx as jsx140 } from "react/jsx-runtime";
24566
+ var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx140(
24499
24567
  Typography_default,
24500
24568
  {
24501
24569
  sx: {
@@ -24515,12 +24583,12 @@ var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx139(
24515
24583
  var NavbarHeader_default = NavbarHeader;
24516
24584
 
24517
24585
  // src/components/navbar/NavbarLogo.tsx
24518
- import * as React77 from "react";
24586
+ import * as React78 from "react";
24519
24587
  import { ButtonBase as ButtonBase3 } from "@mui/material";
24520
- import { jsx as jsx140 } from "react/jsx-runtime";
24521
- var NavbarLogo = React77.forwardRef(
24588
+ import { jsx as jsx141 } from "react/jsx-runtime";
24589
+ var NavbarLogo = React78.forwardRef(
24522
24590
  function NavbarButton3({ src, ...rest }, ref) {
24523
- return /* @__PURE__ */ jsx140(
24591
+ return /* @__PURE__ */ jsx141(
24524
24592
  ButtonBase3,
24525
24593
  {
24526
24594
  ref,
@@ -24531,7 +24599,7 @@ var NavbarLogo = React77.forwardRef(
24531
24599
  borderBottom: `1px solid ${grey200}`,
24532
24600
  boxSizing: "border-box"
24533
24601
  },
24534
- children: /* @__PURE__ */ jsx140("img", { src, width: "32px", height: "32px" })
24602
+ children: /* @__PURE__ */ jsx141("img", { src, width: "32px", height: "32px" })
24535
24603
  }
24536
24604
  );
24537
24605
  }
@@ -24539,8 +24607,8 @@ var NavbarLogo = React77.forwardRef(
24539
24607
  var NavbarLogo_default = NavbarLogo;
24540
24608
 
24541
24609
  // src/components/overlay/DonutFocusOverlay.tsx
24542
- import * as React78 from "react";
24543
- import { Fragment as Fragment33, jsx as jsx141, jsxs as jsxs71 } from "react/jsx-runtime";
24610
+ import * as React79 from "react";
24611
+ import { Fragment as Fragment33, jsx as jsx142, jsxs as jsxs72 } from "react/jsx-runtime";
24544
24612
  var DonutFocusOverlay = ({
24545
24613
  isVisible,
24546
24614
  elementRef,
@@ -24549,8 +24617,8 @@ var DonutFocusOverlay = ({
24549
24617
  chipLabel,
24550
24618
  chipPosition = "right"
24551
24619
  }) => {
24552
- const [clientRect, setClientRect] = React78.useState();
24553
- React78.useEffect(() => {
24620
+ const [clientRect, setClientRect] = React79.useState();
24621
+ React79.useEffect(() => {
24554
24622
  if (!elementRef?.current) {
24555
24623
  setClientRect(void 0);
24556
24624
  return;
@@ -24581,8 +24649,8 @@ var DonutFocusOverlay = ({
24581
24649
  const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
24582
24650
  const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
24583
24651
  const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
24584
- return /* @__PURE__ */ jsxs71(Fragment33, { children: [
24585
- /* @__PURE__ */ jsx141(
24652
+ return /* @__PURE__ */ jsxs72(Fragment33, { children: [
24653
+ /* @__PURE__ */ jsx142(
24586
24654
  Box_default,
24587
24655
  {
24588
24656
  sx: {
@@ -24599,7 +24667,7 @@ var DonutFocusOverlay = ({
24599
24667
  }
24600
24668
  }
24601
24669
  ),
24602
- chipLabel && /* @__PURE__ */ jsx141(
24670
+ chipLabel && /* @__PURE__ */ jsx142(
24603
24671
  Chip_default,
24604
24672
  {
24605
24673
  label: chipLabel,
@@ -24626,7 +24694,7 @@ var DonutFocusOverlay = ({
24626
24694
  var DonutFocusOverlay_default = DonutFocusOverlay;
24627
24695
 
24628
24696
  // src/components/pager/Pager.tsx
24629
- import { Fragment as Fragment34, jsx as jsx142, jsxs as jsxs72 } from "react/jsx-runtime";
24697
+ import { Fragment as Fragment34, jsx as jsx143, jsxs as jsxs73 } from "react/jsx-runtime";
24630
24698
  var Pager = ({
24631
24699
  page,
24632
24700
  pageSize,
@@ -24640,10 +24708,10 @@ var Pager = ({
24640
24708
  const to = Math.min(current + pageSize, total);
24641
24709
  const pages = Math.max(Math.ceil(total / pageSize), 1);
24642
24710
  const options = [...Array(pages).keys()].map((i) => ({ value: i + 1 }));
24643
- const Label = ({ children }) => /* @__PURE__ */ jsx142(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
24644
- return /* @__PURE__ */ jsxs72(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
24645
- /* @__PURE__ */ jsx142(Label, { children: t("PAGER.PAGE") }),
24646
- /* @__PURE__ */ jsx142(
24711
+ const Label = ({ children }) => /* @__PURE__ */ jsx143(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
24712
+ return /* @__PURE__ */ jsxs73(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
24713
+ /* @__PURE__ */ jsx143(Label, { children: t("PAGER.PAGE") }),
24714
+ /* @__PURE__ */ jsx143(
24647
24715
  Select_default,
24648
24716
  {
24649
24717
  value: page,
@@ -24652,9 +24720,9 @@ var Pager = ({
24652
24720
  sx: { minWidth: 78 }
24653
24721
  }
24654
24722
  ),
24655
- allowedPageSizes && /* @__PURE__ */ jsxs72(Fragment34, { children: [
24656
- /* @__PURE__ */ jsx142(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
24657
- /* @__PURE__ */ jsx142(
24723
+ allowedPageSizes && /* @__PURE__ */ jsxs73(Fragment34, { children: [
24724
+ /* @__PURE__ */ jsx143(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
24725
+ /* @__PURE__ */ jsx143(
24658
24726
  Select_default,
24659
24727
  {
24660
24728
  value: pageSize,
@@ -24668,7 +24736,7 @@ var Pager = ({
24668
24736
  }
24669
24737
  )
24670
24738
  ] }),
24671
- /* @__PURE__ */ jsxs72(Label, { children: [
24739
+ /* @__PURE__ */ jsxs73(Label, { children: [
24672
24740
  from,
24673
24741
  " - ",
24674
24742
  to,
@@ -24677,7 +24745,7 @@ var Pager = ({
24677
24745
  " ",
24678
24746
  total
24679
24747
  ] }),
24680
- /* @__PURE__ */ jsx142(
24748
+ /* @__PURE__ */ jsx143(
24681
24749
  IconButton_default,
24682
24750
  {
24683
24751
  disabled: page <= 1,
@@ -24685,7 +24753,7 @@ var Pager = ({
24685
24753
  onClick: () => onPageChange(page - 1, pageSize)
24686
24754
  }
24687
24755
  ),
24688
- /* @__PURE__ */ jsx142(
24756
+ /* @__PURE__ */ jsx143(
24689
24757
  IconButton_default,
24690
24758
  {
24691
24759
  disabled: page > total / pageSize,
@@ -24699,17 +24767,17 @@ var Pager_default = Pager;
24699
24767
 
24700
24768
  // src/components/scrollable/HorizontalScrollable.tsx
24701
24769
  import { ButtonBase as ButtonBase4 } from "@mui/material";
24702
- import * as React79 from "react";
24703
- import { jsx as jsx143, jsxs as jsxs73 } from "react/jsx-runtime";
24770
+ import * as React80 from "react";
24771
+ import { jsx as jsx144, jsxs as jsxs74 } from "react/jsx-runtime";
24704
24772
  var HorizontalScrollable = ({
24705
24773
  style: style3,
24706
24774
  children,
24707
24775
  stepDistance = 200
24708
24776
  }) => {
24709
- const horizontalContainerRef = React79.useRef(null);
24710
- const [isLeftArrowHidden, setLeftArrowHidden] = React79.useState(true);
24711
- const [isRightArrowHidden, setRightArrowHidden] = React79.useState(true);
24712
- React79.useEffect(() => {
24777
+ const horizontalContainerRef = React80.useRef(null);
24778
+ const [isLeftArrowHidden, setLeftArrowHidden] = React80.useState(true);
24779
+ const [isRightArrowHidden, setRightArrowHidden] = React80.useState(true);
24780
+ React80.useEffect(() => {
24713
24781
  if (!horizontalContainerRef.current) {
24714
24782
  return;
24715
24783
  }
@@ -24749,8 +24817,8 @@ var HorizontalScrollable = ({
24749
24817
  );
24750
24818
  current.scrollBy(stepDistance, 0);
24751
24819
  };
24752
- return /* @__PURE__ */ jsxs73(Box_default, { sx: { position: "relative", ...style3 }, children: [
24753
- /* @__PURE__ */ jsx143(
24820
+ return /* @__PURE__ */ jsxs74(Box_default, { sx: { position: "relative", ...style3 }, children: [
24821
+ /* @__PURE__ */ jsx144(
24754
24822
  ButtonBase4,
24755
24823
  {
24756
24824
  sx: {
@@ -24767,10 +24835,10 @@ var HorizontalScrollable = ({
24767
24835
  ...isLeftArrowHidden && { display: "none" }
24768
24836
  },
24769
24837
  onClick: () => leftScroll(),
24770
- children: /* @__PURE__ */ jsx143(Icon_default, { id: "chevron-left" })
24838
+ children: /* @__PURE__ */ jsx144(Icon_default, { id: "chevron-left" })
24771
24839
  }
24772
24840
  ),
24773
- /* @__PURE__ */ jsx143(
24841
+ /* @__PURE__ */ jsx144(
24774
24842
  Box_default,
24775
24843
  {
24776
24844
  ref: horizontalContainerRef,
@@ -24789,7 +24857,7 @@ var HorizontalScrollable = ({
24789
24857
  children
24790
24858
  }
24791
24859
  ),
24792
- /* @__PURE__ */ jsx143(
24860
+ /* @__PURE__ */ jsx144(
24793
24861
  ButtonBase4,
24794
24862
  {
24795
24863
  sx: {
@@ -24806,7 +24874,7 @@ var HorizontalScrollable = ({
24806
24874
  ...isRightArrowHidden && { display: "none" }
24807
24875
  },
24808
24876
  onClick: () => rightScroll(),
24809
- children: /* @__PURE__ */ jsx143(Icon_default, { id: "chevron-right" })
24877
+ children: /* @__PURE__ */ jsx144(Icon_default, { id: "chevron-right" })
24810
24878
  }
24811
24879
  )
24812
24880
  ] });
@@ -24817,12 +24885,12 @@ var HorizontalScrollable_default = HorizontalScrollable;
24817
24885
  import {
24818
24886
  SnackbarProvider as NotistackSnackbarProvider
24819
24887
  } from "notistack";
24820
- import { jsx as jsx144 } from "react/jsx-runtime";
24888
+ import { jsx as jsx145 } from "react/jsx-runtime";
24821
24889
  var SnackbarProvider = ({
24822
24890
  children,
24823
24891
  maxSnack = 3,
24824
24892
  domRoot
24825
- }) => /* @__PURE__ */ jsx144(
24893
+ }) => /* @__PURE__ */ jsx145(
24826
24894
  NotistackSnackbarProvider,
24827
24895
  {
24828
24896
  maxSnack,
@@ -24840,10 +24908,10 @@ import {
24840
24908
  } from "notistack";
24841
24909
 
24842
24910
  // src/components/snackbar/Snackbar.tsx
24843
- import * as React80 from "react";
24911
+ import * as React81 from "react";
24844
24912
  import { SnackbarContent } from "notistack";
24845
24913
  import { Typography as Typography4 } from "@mui/material";
24846
- import { jsx as jsx145, jsxs as jsxs74 } from "react/jsx-runtime";
24914
+ import { jsx as jsx146, jsxs as jsxs75 } from "react/jsx-runtime";
24847
24915
  var sizeStyles5 = {
24848
24916
  M: {
24849
24917
  width: "344px",
@@ -24868,7 +24936,7 @@ var iconColors = {
24868
24936
  error: error300,
24869
24937
  warning: complementary300
24870
24938
  };
24871
- var Snackbar = React80.forwardRef(
24939
+ var Snackbar = React81.forwardRef(
24872
24940
  function Snackbar2({
24873
24941
  severity = "info",
24874
24942
  message,
@@ -24880,13 +24948,13 @@ var Snackbar = React80.forwardRef(
24880
24948
  identifierKey: key,
24881
24949
  dataTestKey
24882
24950
  }, ref) {
24883
- const actionClickHandler = React80.useCallback(() => {
24951
+ const actionClickHandler = React81.useCallback(() => {
24884
24952
  onActionClick && onActionClick(key);
24885
24953
  }, [onActionClick, key]);
24886
- const closeClickHandler = React80.useCallback(() => {
24954
+ const closeClickHandler = React81.useCallback(() => {
24887
24955
  onCloseClick && onCloseClick(key);
24888
24956
  }, [onCloseClick, key]);
24889
- return /* @__PURE__ */ jsx145(
24957
+ return /* @__PURE__ */ jsx146(
24890
24958
  SnackbarContent,
24891
24959
  {
24892
24960
  ref,
@@ -24904,14 +24972,14 @@ var Snackbar = React80.forwardRef(
24904
24972
  ...dataTestKey && {
24905
24973
  "data-test": dataTestKey
24906
24974
  },
24907
- children: /* @__PURE__ */ jsxs74(
24975
+ children: /* @__PURE__ */ jsxs75(
24908
24976
  Stack_default,
24909
24977
  {
24910
24978
  direction: "row",
24911
24979
  spacing: 2,
24912
24980
  sx: { width: "100%", alignItems: "center" },
24913
24981
  children: [
24914
- withIcon && /* @__PURE__ */ jsx145(
24982
+ withIcon && /* @__PURE__ */ jsx146(
24915
24983
  Box_default,
24916
24984
  {
24917
24985
  sx: {
@@ -24919,10 +24987,10 @@ var Snackbar = React80.forwardRef(
24919
24987
  flexShrink: 0,
24920
24988
  color: iconColors[severity]
24921
24989
  },
24922
- children: /* @__PURE__ */ jsx145(Icon_default, { id: severityIcons[severity] })
24990
+ children: /* @__PURE__ */ jsx146(Icon_default, { id: severityIcons[severity] })
24923
24991
  }
24924
24992
  ),
24925
- /* @__PURE__ */ jsx145(
24993
+ /* @__PURE__ */ jsx146(
24926
24994
  Typography4,
24927
24995
  {
24928
24996
  variant: "body2",
@@ -24930,7 +24998,7 @@ var Snackbar = React80.forwardRef(
24930
24998
  children: message
24931
24999
  }
24932
25000
  ),
24933
- actionText && /* @__PURE__ */ jsx145(Box_default, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
25001
+ actionText && /* @__PURE__ */ jsx146(Box_default, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx146(
24934
25002
  Button_default,
24935
25003
  {
24936
25004
  sx: {
@@ -24945,7 +25013,7 @@ var Snackbar = React80.forwardRef(
24945
25013
  onClick: actionClickHandler
24946
25014
  }
24947
25015
  ) }),
24948
- /* @__PURE__ */ jsx145(Box_default, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
25016
+ /* @__PURE__ */ jsx146(Box_default, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx146(
24949
25017
  IconButton_default,
24950
25018
  {
24951
25019
  iconId: "close",
@@ -24970,7 +25038,7 @@ var Snackbar_default = Snackbar;
24970
25038
 
24971
25039
  // src/components/snackbar/enqueueSnackbar.tsx
24972
25040
  import { closeSnackbar as closeSnackbar2 } from "notistack";
24973
- import { jsx as jsx146 } from "react/jsx-runtime";
25041
+ import { jsx as jsx147 } from "react/jsx-runtime";
24974
25042
  var enqueueSnackbar = (message, options = {}) => {
24975
25043
  const {
24976
25044
  persist,
@@ -24986,7 +25054,7 @@ var enqueueSnackbar = (message, options = {}) => {
24986
25054
  autoHideDuration: autoHideDurationMs ?? 1e4,
24987
25055
  persist: persist ?? false,
24988
25056
  content(key, message2) {
24989
- return /* @__PURE__ */ jsx146(
25057
+ return /* @__PURE__ */ jsx147(
24990
25058
  Snackbar_default,
24991
25059
  {
24992
25060
  identifierKey: key,
@@ -25003,7 +25071,7 @@ var enqueueSnackbar = (message, options = {}) => {
25003
25071
 
25004
25072
  // src/components/tab/TabButton.tsx
25005
25073
  import MuiTab from "@mui/material/Tab";
25006
- import { jsx as jsx147 } from "react/jsx-runtime";
25074
+ import { jsx as jsx148 } from "react/jsx-runtime";
25007
25075
  var TabButton = ({
25008
25076
  children,
25009
25077
  disabled = false,
@@ -25012,10 +25080,10 @@ var TabButton = ({
25012
25080
  dataTestId,
25013
25081
  disableUppercase = false,
25014
25082
  ...rest
25015
- }) => /* @__PURE__ */ jsx147(
25083
+ }) => /* @__PURE__ */ jsx148(
25016
25084
  MuiTab,
25017
25085
  {
25018
- label: /* @__PURE__ */ jsx147(
25086
+ label: /* @__PURE__ */ jsx148(
25019
25087
  "div",
25020
25088
  {
25021
25089
  style: {
@@ -25047,13 +25115,13 @@ var TabButton = ({
25047
25115
  var TabButton_default = TabButton;
25048
25116
 
25049
25117
  // src/components/tab/Tabs.tsx
25050
- import * as React82 from "react";
25118
+ import * as React83 from "react";
25051
25119
  import MuiTabs from "@mui/material/Tabs";
25052
25120
 
25053
25121
  // src/components/layout/SwipeableViews.tsx
25054
- import * as React81 from "react";
25122
+ import * as React82 from "react";
25055
25123
  import { useEffect as useEffect21, useRef as useRef22, useState as useState31 } from "react";
25056
- import { jsx as jsx148 } from "react/jsx-runtime";
25124
+ import { jsx as jsx149 } from "react/jsx-runtime";
25057
25125
  var styles = {
25058
25126
  container: {
25059
25127
  maxHeight: "100%",
@@ -25124,7 +25192,7 @@ function SwipeableViews({
25124
25192
  return () => cancelAnimationFrame(animationFrame);
25125
25193
  }
25126
25194
  }, [index]);
25127
- return /* @__PURE__ */ jsx148(
25195
+ return /* @__PURE__ */ jsx149(
25128
25196
  "div",
25129
25197
  {
25130
25198
  ...rootProps,
@@ -25147,7 +25215,7 @@ function SwipeableViews({
25147
25215
  );
25148
25216
  }, 100);
25149
25217
  },
25150
- children: React81.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx148(
25218
+ children: React82.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx149(
25151
25219
  "div",
25152
25220
  {
25153
25221
  className: "Slim-Vertical-Scroll",
@@ -25160,7 +25228,7 @@ function SwipeableViews({
25160
25228
  }
25161
25229
 
25162
25230
  // src/components/tab/Tabs.tsx
25163
- import { jsx as jsx149, jsxs as jsxs75 } from "react/jsx-runtime";
25231
+ import { jsx as jsx150, jsxs as jsxs76 } from "react/jsx-runtime";
25164
25232
  var Tabs = ({
25165
25233
  tabButtons,
25166
25234
  children,
@@ -25171,7 +25239,7 @@ var Tabs = ({
25171
25239
  contained = false,
25172
25240
  scrollbarGutter
25173
25241
  }) => {
25174
- const [value, setValue] = React82.useState(0);
25242
+ const [value, setValue] = React83.useState(0);
25175
25243
  const handleChangeIndex = (index) => {
25176
25244
  onChangeTab?.(index);
25177
25245
  setValue(index);
@@ -25182,7 +25250,7 @@ var Tabs = ({
25182
25250
  bottom: 0,
25183
25251
  borderRadius: "8px 8px 0 0"
25184
25252
  };
25185
- return /* @__PURE__ */ jsxs75(
25253
+ return /* @__PURE__ */ jsxs76(
25186
25254
  Box_default,
25187
25255
  {
25188
25256
  sx: {
@@ -25196,7 +25264,7 @@ var Tabs = ({
25196
25264
  }
25197
25265
  },
25198
25266
  children: [
25199
- /* @__PURE__ */ jsx149(
25267
+ /* @__PURE__ */ jsx150(
25200
25268
  MuiTabs,
25201
25269
  {
25202
25270
  value: currentTabIndex ?? value,
@@ -25222,7 +25290,7 @@ var Tabs = ({
25222
25290
  children: tabButtons
25223
25291
  }
25224
25292
  ),
25225
- /* @__PURE__ */ jsx149(
25293
+ /* @__PURE__ */ jsx150(
25226
25294
  Box_default,
25227
25295
  {
25228
25296
  sx: {
@@ -25231,7 +25299,7 @@ var Tabs = ({
25231
25299
  height: "100%"
25232
25300
  }
25233
25301
  },
25234
- children: /* @__PURE__ */ jsx149(
25302
+ children: /* @__PURE__ */ jsx150(
25235
25303
  SwipeableViews,
25236
25304
  {
25237
25305
  index: currentTabIndex ?? value,
@@ -25259,8 +25327,8 @@ var Tabs = ({
25259
25327
  var Tabs_default = Tabs;
25260
25328
 
25261
25329
  // src/components/tab/TabContent.tsx
25262
- import { jsx as jsx150 } from "react/jsx-runtime";
25263
- var TabContent = ({ children }) => /* @__PURE__ */ jsx150(
25330
+ import { jsx as jsx151 } from "react/jsx-runtime";
25331
+ var TabContent = ({ children }) => /* @__PURE__ */ jsx151(
25264
25332
  Box_default,
25265
25333
  {
25266
25334
  sx: {
@@ -25277,8 +25345,8 @@ import {
25277
25345
  TableRow as MuiTableRow,
25278
25346
  TableCell as MuiTableCell
25279
25347
  } from "@mui/material";
25280
- import { jsx as jsx151 } from "react/jsx-runtime";
25281
- var TableDivider = () => /* @__PURE__ */ jsx151(MuiTableRow, { children: /* @__PURE__ */ jsx151(
25348
+ import { jsx as jsx152 } from "react/jsx-runtime";
25349
+ var TableDivider = () => /* @__PURE__ */ jsx152(MuiTableRow, { children: /* @__PURE__ */ jsx152(
25282
25350
  MuiTableCell,
25283
25351
  {
25284
25352
  colSpan: 1e3,
@@ -25291,8 +25359,8 @@ var TableDivider_default = TableDivider;
25291
25359
  import {
25292
25360
  TableSortLabel as MuiTableSortLabel
25293
25361
  } from "@mui/material";
25294
- import { jsx as jsx152 } from "react/jsx-runtime";
25295
- var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx152(MuiTableSortLabel, { ...rest, children });
25362
+ import { jsx as jsx153 } from "react/jsx-runtime";
25363
+ var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx153(MuiTableSortLabel, { ...rest, children });
25296
25364
  var TableSortLabel_default = TableSortLabel;
25297
25365
 
25298
25366
  // src/components/table/Table.tsx
@@ -25300,21 +25368,21 @@ import {
25300
25368
  TableContainer,
25301
25369
  Table as MuiTable
25302
25370
  } from "@mui/material";
25303
- import { jsx as jsx153 } from "react/jsx-runtime";
25304
- var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx153(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx153(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
25371
+ import { jsx as jsx154 } from "react/jsx-runtime";
25372
+ var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx154(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx154(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
25305
25373
  var Table_default = Table;
25306
25374
 
25307
25375
  // src/components/table/TableBody.tsx
25308
25376
  import { TableBody as MuiTableBody } from "@mui/material";
25309
- import { jsx as jsx154 } from "react/jsx-runtime";
25310
- var TableBody = ({ children }) => /* @__PURE__ */ jsx154(MuiTableBody, { children });
25377
+ import { jsx as jsx155 } from "react/jsx-runtime";
25378
+ var TableBody = ({ children }) => /* @__PURE__ */ jsx155(MuiTableBody, { children });
25311
25379
  var TableBody_default = TableBody;
25312
25380
 
25313
25381
  // src/components/table/TableCell.tsx
25314
25382
  import {
25315
25383
  TableCell as MuiTableCell2
25316
25384
  } from "@mui/material";
25317
- import { jsx as jsx155 } from "react/jsx-runtime";
25385
+ import { jsx as jsx156 } from "react/jsx-runtime";
25318
25386
  var TableCell = ({
25319
25387
  children,
25320
25388
  size = "M",
@@ -25325,7 +25393,7 @@ var TableCell = ({
25325
25393
  onClick,
25326
25394
  noBorder = false,
25327
25395
  ...rest
25328
- }) => /* @__PURE__ */ jsx155(
25396
+ }) => /* @__PURE__ */ jsx156(
25329
25397
  MuiTableCell2,
25330
25398
  {
25331
25399
  ...rest,
@@ -25349,12 +25417,12 @@ var TableCell = ({
25349
25417
  var TableCell_default = TableCell;
25350
25418
 
25351
25419
  // src/components/table/TableCellCopy.tsx
25352
- import * as React83 from "react";
25353
- import { jsx as jsx156 } from "react/jsx-runtime";
25420
+ import * as React84 from "react";
25421
+ import { jsx as jsx157 } from "react/jsx-runtime";
25354
25422
  var TableCellCopy = ({ text, textToCopy, ...rest }) => {
25355
25423
  const { t } = useTranslation();
25356
- const [isCopied, setIsCopied] = React83.useState(false);
25357
- const [showIcon, setShowIcon] = React83.useState(false);
25424
+ const [isCopied, setIsCopied] = React84.useState(false);
25425
+ const [showIcon, setShowIcon] = React84.useState(false);
25358
25426
  const manageButtonClicked = () => {
25359
25427
  void navigator.clipboard.writeText(textToCopy ?? text);
25360
25428
  if (isCopied) {
@@ -25368,7 +25436,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
25368
25436
  const getIconId = () => !isCopied ? "content-copy" : "check";
25369
25437
  const iconHiddenClass = "icon-hidden";
25370
25438
  const iconCopiedClass = "icon-copied";
25371
- return /* @__PURE__ */ jsx156(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx156(
25439
+ return /* @__PURE__ */ jsx157(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx157(
25372
25440
  Stack_default,
25373
25441
  {
25374
25442
  direction: "row",
@@ -25377,7 +25445,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
25377
25445
  onMouseEnter: () => setShowIcon(true),
25378
25446
  onMouseLeave: () => setShowIcon(false),
25379
25447
  onClick: manageButtonClicked,
25380
- children: /* @__PURE__ */ jsx156(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx156(
25448
+ children: /* @__PURE__ */ jsx157(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx157(
25381
25449
  Button_default,
25382
25450
  {
25383
25451
  className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
@@ -25407,21 +25475,21 @@ var TableCellCopy_default = TableCellCopy;
25407
25475
 
25408
25476
  // src/components/table/TableHead.tsx
25409
25477
  import { TableHead as MuiTableHead } from "@mui/material";
25410
- import { jsx as jsx157 } from "react/jsx-runtime";
25411
- var TableHead = ({ children }) => /* @__PURE__ */ jsx157(MuiTableHead, { children });
25478
+ import { jsx as jsx158 } from "react/jsx-runtime";
25479
+ var TableHead = ({ children }) => /* @__PURE__ */ jsx158(MuiTableHead, { children });
25412
25480
  var TableHead_default = TableHead;
25413
25481
 
25414
25482
  // src/components/table/TableRow.tsx
25415
25483
  import {
25416
25484
  TableRow as MuiTableRow2
25417
25485
  } from "@mui/material";
25418
- import { jsx as jsx158 } from "react/jsx-runtime";
25486
+ import { jsx as jsx159 } from "react/jsx-runtime";
25419
25487
  var TableRow = ({
25420
25488
  children,
25421
25489
  isFollowedByNestedTable = false,
25422
25490
  fadeInLeftAnimation = false,
25423
25491
  sx
25424
- }) => /* @__PURE__ */ jsx158(
25492
+ }) => /* @__PURE__ */ jsx159(
25425
25493
  MuiTableRow2,
25426
25494
  {
25427
25495
  className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
@@ -25433,14 +25501,14 @@ var TableRow_default = TableRow;
25433
25501
 
25434
25502
  // src/components/table/NestedTable.tsx
25435
25503
  import { Collapse as Collapse7 } from "@mui/material";
25436
- import { jsx as jsx159 } from "react/jsx-runtime";
25504
+ import { jsx as jsx160 } from "react/jsx-runtime";
25437
25505
  var NestedTable = ({
25438
25506
  colSpan,
25439
25507
  children,
25440
25508
  className = "",
25441
25509
  sx,
25442
25510
  isVisible = true
25443
- }) => /* @__PURE__ */ jsx159(TableRow_default, { children: /* @__PURE__ */ jsx159(
25511
+ }) => /* @__PURE__ */ jsx160(TableRow_default, { children: /* @__PURE__ */ jsx160(
25444
25512
  TableCell_default,
25445
25513
  {
25446
25514
  colSpan,
@@ -25449,14 +25517,14 @@ var NestedTable = ({
25449
25517
  height: "auto",
25450
25518
  ...!isVisible && { borderBottom: "none" }
25451
25519
  },
25452
- children: /* @__PURE__ */ jsx159(Collapse7, { in: isVisible, children: /* @__PURE__ */ jsx159(Box_default, { sx: { padding: "16px", backgroundColor: grey100 }, children: /* @__PURE__ */ jsx159(Paper_default, { children: /* @__PURE__ */ jsx159(Table_default, { sx, className: `Nested-Table ${className}`, children }) }) }) })
25520
+ children: /* @__PURE__ */ jsx160(Collapse7, { in: isVisible, children: /* @__PURE__ */ jsx160(Box_default, { sx: { padding: "16px", backgroundColor: grey100 }, children: /* @__PURE__ */ jsx160(Paper_default, { children: /* @__PURE__ */ jsx160(Table_default, { sx, className: `Nested-Table ${className}`, children }) }) }) })
25453
25521
  }
25454
25522
  ) });
25455
25523
  var NestedTable_default = NestedTable;
25456
25524
 
25457
25525
  // src/components/toolbar/ToolbarBreadcrumb.tsx
25458
- import { jsx as jsx160 } from "react/jsx-runtime";
25459
- var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx160(
25526
+ import { jsx as jsx161 } from "react/jsx-runtime";
25527
+ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx161(
25460
25528
  Stack_default,
25461
25529
  {
25462
25530
  direction: "row",
@@ -25466,7 +25534,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx160(
25466
25534
  (previous, current, index) => [
25467
25535
  ...previous,
25468
25536
  ...index > 0 ? [
25469
- /* @__PURE__ */ jsx160(
25537
+ /* @__PURE__ */ jsx161(
25470
25538
  Typography_default,
25471
25539
  {
25472
25540
  color: grey500,
@@ -25489,10 +25557,10 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
25489
25557
 
25490
25558
  // src/components/toolbar/ToolbarBreadcrumbButton.tsx
25491
25559
  import { ButtonBase as ButtonBase5 } from "@mui/material";
25492
- import * as React84 from "react";
25493
- import { jsx as jsx161 } from "react/jsx-runtime";
25494
- var ToolbarBreadcrumbButton = React84.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
25495
- return /* @__PURE__ */ jsx161(
25560
+ import * as React85 from "react";
25561
+ import { jsx as jsx162 } from "react/jsx-runtime";
25562
+ var ToolbarBreadcrumbButton = React85.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
25563
+ return /* @__PURE__ */ jsx162(
25496
25564
  ButtonBase5,
25497
25565
  {
25498
25566
  className: `Cn-ToolbarBreadcrumbButton ${className}`,
@@ -25511,14 +25579,14 @@ var ToolbarBreadcrumbButton = React84.forwardRef(function ToolbarBreadcrumbButto
25511
25579
  }
25512
25580
  },
25513
25581
  ...rest,
25514
- children: /* @__PURE__ */ jsx161(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
25582
+ children: /* @__PURE__ */ jsx162(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
25515
25583
  }
25516
25584
  );
25517
25585
  });
25518
25586
  var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
25519
25587
 
25520
25588
  // src/components/toolbar/Toolbar.tsx
25521
- import { jsx as jsx162, jsxs as jsxs76 } from "react/jsx-runtime";
25589
+ import { jsx as jsx163, jsxs as jsxs77 } from "react/jsx-runtime";
25522
25590
  var Toolbar = ({
25523
25591
  children,
25524
25592
  rightActions,
@@ -25527,7 +25595,7 @@ var Toolbar = ({
25527
25595
  sx,
25528
25596
  dataTestId,
25529
25597
  onClickToolbar
25530
- }) => /* @__PURE__ */ jsxs76(
25598
+ }) => /* @__PURE__ */ jsxs77(
25531
25599
  Box_default,
25532
25600
  {
25533
25601
  className: `Cn-Toolbar ${className}`,
@@ -25547,7 +25615,7 @@ var Toolbar = ({
25547
25615
  onClick: onClickToolbar,
25548
25616
  "data-testid": dataTestId,
25549
25617
  children: [
25550
- /* @__PURE__ */ jsxs76(
25618
+ /* @__PURE__ */ jsxs77(
25551
25619
  Box_default,
25552
25620
  {
25553
25621
  sx: {
@@ -25559,7 +25627,7 @@ var Toolbar = ({
25559
25627
  width: "100%"
25560
25628
  },
25561
25629
  children: [
25562
- leftActions && /* @__PURE__ */ jsx162(
25630
+ leftActions && /* @__PURE__ */ jsx163(
25563
25631
  Box_default,
25564
25632
  {
25565
25633
  className: `Cn-Toolbar-left`,
@@ -25569,7 +25637,7 @@ var Toolbar = ({
25569
25637
  children: leftActions
25570
25638
  }
25571
25639
  ),
25572
- /* @__PURE__ */ jsx162(
25640
+ /* @__PURE__ */ jsx163(
25573
25641
  Box_default,
25574
25642
  {
25575
25643
  className: `Cn-Toolbar-children`,
@@ -25584,7 +25652,7 @@ var Toolbar = ({
25584
25652
  ]
25585
25653
  }
25586
25654
  ),
25587
- rightActions && /* @__PURE__ */ jsx162(
25655
+ rightActions && /* @__PURE__ */ jsx163(
25588
25656
  Box_default,
25589
25657
  {
25590
25658
  className: `Cn-Toolbar-right`,
@@ -25603,24 +25671,24 @@ var Toolbar = ({
25603
25671
  var Toolbar_default = Toolbar;
25604
25672
 
25605
25673
  // src/components/toolbar/ToolbarTitle.tsx
25606
- import * as React85 from "react";
25674
+ import * as React86 from "react";
25607
25675
  import { useState as useState34 } from "react";
25608
- import { jsx as jsx163, jsxs as jsxs77 } from "react/jsx-runtime";
25609
- var ToolbarTitle = React85.forwardRef(function ToolbarTitle2({
25676
+ import { jsx as jsx164, jsxs as jsxs78 } from "react/jsx-runtime";
25677
+ var ToolbarTitle = React86.forwardRef(function ToolbarTitle2({
25610
25678
  title,
25611
25679
  align = "left",
25612
25680
  className,
25613
25681
  hoverActions,
25614
25682
  color: color2 = grey900
25615
25683
  }, ref) {
25616
- const textElementRef = React85.useRef(null);
25684
+ const textElementRef = React86.useRef(null);
25617
25685
  const [showHoverActions, setShowHoverActions] = useState34(false);
25618
- return /* @__PURE__ */ jsx163(Box_default, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx163(
25686
+ return /* @__PURE__ */ jsx164(Box_default, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx164(
25619
25687
  TextEllipsisTooltip_default,
25620
25688
  {
25621
25689
  title: title ?? "\xA0",
25622
25690
  textEllipsableElement: textElementRef,
25623
- children: /* @__PURE__ */ jsxs77(
25691
+ children: /* @__PURE__ */ jsxs78(
25624
25692
  Typography_default,
25625
25693
  {
25626
25694
  color: color2,
@@ -25638,7 +25706,7 @@ var ToolbarTitle = React85.forwardRef(function ToolbarTitle2({
25638
25706
  },
25639
25707
  children: [
25640
25708
  title || "\xA0",
25641
- hoverActions && showHoverActions && /* @__PURE__ */ jsx163(
25709
+ hoverActions && showHoverActions && /* @__PURE__ */ jsx164(
25642
25710
  Box_default,
25643
25711
  {
25644
25712
  sx: {
@@ -25667,13 +25735,13 @@ var Slide_default = Slide;
25667
25735
 
25668
25736
  // src/components/widget/WidgetLegendItem.tsx
25669
25737
  import { ButtonBase as ButtonBase6 } from "@mui/material";
25670
- import { jsx as jsx164, jsxs as jsxs78 } from "react/jsx-runtime";
25738
+ import { jsx as jsx165, jsxs as jsxs79 } from "react/jsx-runtime";
25671
25739
  var WidgetLegendItem = ({
25672
25740
  groupLabel,
25673
25741
  legendDirection = "column",
25674
25742
  items = [],
25675
25743
  onClick
25676
- }) => /* @__PURE__ */ jsx164(
25744
+ }) => /* @__PURE__ */ jsx165(
25677
25745
  ButtonBase6,
25678
25746
  {
25679
25747
  tabIndex: onClick ? 0 : -1,
@@ -25687,7 +25755,7 @@ var WidgetLegendItem = ({
25687
25755
  p: "2px 12px",
25688
25756
  cursor: onClick ? "pointer" : "default"
25689
25757
  },
25690
- children: /* @__PURE__ */ jsxs78(
25758
+ children: /* @__PURE__ */ jsxs79(
25691
25759
  Box_default,
25692
25760
  {
25693
25761
  sx: {
@@ -25699,7 +25767,7 @@ var WidgetLegendItem = ({
25699
25767
  color: grey800
25700
25768
  },
25701
25769
  children: [
25702
- groupLabel && /* @__PURE__ */ jsx164(
25770
+ groupLabel && /* @__PURE__ */ jsx165(
25703
25771
  Typography_default,
25704
25772
  {
25705
25773
  variant: "overline",
@@ -25721,7 +25789,7 @@ var WidgetLegendItem = ({
25721
25789
  style: style3
25722
25790
  }, i) => {
25723
25791
  const incrementLabelIconId = incrementLabelType && incrementLabelStyles[incrementLabelType].icon;
25724
- return /* @__PURE__ */ jsxs78(
25792
+ return /* @__PURE__ */ jsxs79(
25725
25793
  Box_default,
25726
25794
  {
25727
25795
  sx: {
@@ -25731,7 +25799,7 @@ var WidgetLegendItem = ({
25731
25799
  paddingRight: legendDirection === "row" ? "12px" : "inherit"
25732
25800
  },
25733
25801
  children: [
25734
- iconColor && /* @__PURE__ */ jsx164(
25802
+ iconColor && /* @__PURE__ */ jsx165(
25735
25803
  Icon_default,
25736
25804
  {
25737
25805
  id: iconId,
@@ -25742,7 +25810,7 @@ var WidgetLegendItem = ({
25742
25810
  size: iconSize
25743
25811
  }
25744
25812
  ),
25745
- label && /* @__PURE__ */ jsx164(
25813
+ label && /* @__PURE__ */ jsx165(
25746
25814
  Typography_default,
25747
25815
  {
25748
25816
  variant: "caption",
@@ -25751,7 +25819,7 @@ var WidgetLegendItem = ({
25751
25819
  children: label
25752
25820
  }
25753
25821
  ),
25754
- value && /* @__PURE__ */ jsx164(
25822
+ value && /* @__PURE__ */ jsx165(
25755
25823
  Typography_default,
25756
25824
  {
25757
25825
  sx: style3,
@@ -25760,7 +25828,7 @@ var WidgetLegendItem = ({
25760
25828
  children: value
25761
25829
  }
25762
25830
  ),
25763
- incrementLabelValue && /* @__PURE__ */ jsx164(
25831
+ incrementLabelValue && /* @__PURE__ */ jsx165(
25764
25832
  IncrementLabel_default,
25765
25833
  {
25766
25834
  label: incrementLabelValue,
@@ -25786,8 +25854,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
25786
25854
 
25787
25855
  // src/components/widget/Widget.tsx
25788
25856
  import MuiCard2 from "@mui/material/Card";
25789
- import { jsx as jsx165 } from "react/jsx-runtime";
25790
- var Widget = ({ children }) => /* @__PURE__ */ jsx165(
25857
+ import { jsx as jsx166 } from "react/jsx-runtime";
25858
+ var Widget = ({ children }) => /* @__PURE__ */ jsx166(
25791
25859
  MuiCard2,
25792
25860
  {
25793
25861
  variant: "elevation",
@@ -25811,8 +25879,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx165(
25811
25879
  var Widget_default = Widget;
25812
25880
 
25813
25881
  // src/components/widget/WidgetActions.tsx
25814
- import { jsx as jsx166 } from "react/jsx-runtime";
25815
- var WidgetActions = ({ children }) => /* @__PURE__ */ jsx166(
25882
+ import { jsx as jsx167 } from "react/jsx-runtime";
25883
+ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx167(
25816
25884
  Box_default,
25817
25885
  {
25818
25886
  sx: {
@@ -25826,8 +25894,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx166(
25826
25894
  var WidgetActions_default = WidgetActions;
25827
25895
 
25828
25896
  // src/components/widget/WidgetTitle.tsx
25829
- import { jsx as jsx167 } from "react/jsx-runtime";
25830
- var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx167(
25897
+ import { jsx as jsx168 } from "react/jsx-runtime";
25898
+ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx168(
25831
25899
  Box_default,
25832
25900
  {
25833
25901
  sx: {
@@ -25837,7 +25905,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
25837
25905
  maxWidth: "100%",
25838
25906
  ...sx
25839
25907
  },
25840
- children: /* @__PURE__ */ jsx167(
25908
+ children: /* @__PURE__ */ jsx168(
25841
25909
  Typography_default,
25842
25910
  {
25843
25911
  variant: "subtitle2",
@@ -25851,12 +25919,12 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
25851
25919
  }
25852
25920
  )
25853
25921
  }
25854
- ) : /* @__PURE__ */ jsx167("span", {});
25922
+ ) : /* @__PURE__ */ jsx168("span", {});
25855
25923
  var WidgetTitle_default = WidgetTitle;
25856
25924
 
25857
25925
  // src/components/window/MinimizableWindow.tsx
25858
- import * as React86 from "react";
25859
- import { Fragment as Fragment35, jsx as jsx168, jsxs as jsxs79 } from "react/jsx-runtime";
25926
+ import * as React87 from "react";
25927
+ import { Fragment as Fragment35, jsx as jsx169, jsxs as jsxs80 } from "react/jsx-runtime";
25860
25928
  var sizes6 = {
25861
25929
  M: 400,
25862
25930
  L: 500,
@@ -25881,32 +25949,34 @@ var iconButtonsStyles = {
25881
25949
  backgroundColor: "rgba(255, 255, 255, 0.2)"
25882
25950
  }
25883
25951
  };
25884
- var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
25952
+ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
25885
25953
  children,
25886
25954
  title,
25887
25955
  size = "M",
25888
25956
  open,
25889
25957
  closeable = true,
25890
25958
  showBackButton = false,
25959
+ backButton,
25891
25960
  sx,
25892
25961
  targetElement,
25893
25962
  contentHeight,
25963
+ iconSizes: iconSizes4 = "S",
25894
25964
  onMinimize,
25895
25965
  onClose,
25896
25966
  onBack
25897
25967
  }, ref) {
25898
25968
  const { t } = useTranslation();
25899
- const overlayRef = React86.useRef(null);
25900
- const windowRef = React86.useRef(null);
25901
- const headerRef = React86.useRef(null);
25902
- const [isDraggingState, setIsDraggingState] = React86.useState(false);
25903
- const diffRef = React86.useRef({ x: 0, y: 0 });
25904
- React86.useImperativeHandle(ref, () => ({
25969
+ const overlayRef = React87.useRef(null);
25970
+ const windowRef = React87.useRef(null);
25971
+ const headerRef = React87.useRef(null);
25972
+ const [isDraggingState, setIsDraggingState] = React87.useState(false);
25973
+ const diffRef = React87.useRef({ x: 0, y: 0 });
25974
+ React87.useImperativeHandle(ref, () => ({
25905
25975
  window: windowRef.current,
25906
25976
  header: headerRef.current,
25907
25977
  overlay: overlayRef.current
25908
25978
  }));
25909
- React86.useEffect(() => {
25979
+ React87.useEffect(() => {
25910
25980
  if (open) {
25911
25981
  overlayRef.current?.style.removeProperty("transform");
25912
25982
  overlayRef.current?.style.removeProperty("opacity");
@@ -25968,8 +26038,8 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
25968
26038
  }
25969
26039
  }, 750);
25970
26040
  };
25971
- return /* @__PURE__ */ jsxs79(Fragment35, { children: [
25972
- isDraggingState && /* @__PURE__ */ jsx168(
26041
+ return /* @__PURE__ */ jsxs80(Fragment35, { children: [
26042
+ isDraggingState && /* @__PURE__ */ jsx169(
25973
26043
  Box_default,
25974
26044
  {
25975
26045
  sx: {
@@ -25985,7 +26055,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
25985
26055
  onMouseMove: (ev) => handleMouseMove(ev)
25986
26056
  }
25987
26057
  ),
25988
- /* @__PURE__ */ jsx168(
26058
+ /* @__PURE__ */ jsx169(
25989
26059
  Box_default,
25990
26060
  {
25991
26061
  ref: overlayRef,
@@ -26002,7 +26072,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26002
26072
  ...!open && { pointerEvents: "none" },
26003
26073
  transition: "transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
26004
26074
  },
26005
- children: /* @__PURE__ */ jsxs79(
26075
+ children: /* @__PURE__ */ jsxs80(
26006
26076
  Stack_default,
26007
26077
  {
26008
26078
  sx: {
@@ -26013,7 +26083,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26013
26083
  width: `${sizes6[size]}px`,
26014
26084
  height: contentHeight !== void 0 && headerRef.current ? `${contentHeight + contentPadding + headerRef.current.scrollHeight}px` : void 0,
26015
26085
  children: [
26016
- /* @__PURE__ */ jsxs79(
26086
+ /* @__PURE__ */ jsxs80(
26017
26087
  Stack_default,
26018
26088
  {
26019
26089
  ref: headerRef,
@@ -26027,32 +26097,32 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26027
26097
  onMouseDown: handleMouseDown,
26028
26098
  minHeight: "44px",
26029
26099
  children: [
26030
- /* @__PURE__ */ jsx168(
26100
+ /* @__PURE__ */ jsx169(
26031
26101
  Stack_default,
26032
26102
  {
26033
26103
  direction: "row",
26034
26104
  alignItems: "center",
26035
26105
  onMouseDown: (ev) => ev.stopPropagation(),
26036
- children: showBackButton && /* @__PURE__ */ jsx168(
26106
+ children: showBackButton && (!backButton ? /* @__PURE__ */ jsx169(
26037
26107
  Tooltip_default,
26038
26108
  {
26039
26109
  title: t("MINIMIZABLE_WINDOW.GO_BACK"),
26040
26110
  zIndex: 999999,
26041
26111
  placement: "top",
26042
- children: /* @__PURE__ */ jsx168(
26112
+ children: /* @__PURE__ */ jsx169(
26043
26113
  IconButton_default,
26044
26114
  {
26045
- size: "S",
26115
+ size: iconSizes4,
26046
26116
  iconId: "arrow-left",
26047
26117
  onClick: onBack,
26048
26118
  sx: iconButtonsStyles
26049
26119
  }
26050
26120
  )
26051
26121
  }
26052
- )
26122
+ ) : backButton)
26053
26123
  }
26054
26124
  ),
26055
- /* @__PURE__ */ jsx168(
26125
+ /* @__PURE__ */ jsx169(
26056
26126
  Box_default,
26057
26127
  {
26058
26128
  sx: {
@@ -26060,26 +26130,26 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26060
26130
  left: "50%",
26061
26131
  transform: "translateX(-50%)"
26062
26132
  },
26063
- children: typeof title === "string" ? /* @__PURE__ */ jsx168(Typography_default, { children: title }) : title
26133
+ children: typeof title === "string" ? /* @__PURE__ */ jsx169(Typography_default, { children: title }) : title
26064
26134
  }
26065
26135
  ),
26066
- /* @__PURE__ */ jsxs79(
26136
+ /* @__PURE__ */ jsxs80(
26067
26137
  Stack_default,
26068
26138
  {
26069
26139
  direction: "row",
26070
26140
  alignItems: "center",
26071
26141
  onMouseDown: (ev) => ev.stopPropagation(),
26072
26142
  children: [
26073
- /* @__PURE__ */ jsx168(Box_default, { children: /* @__PURE__ */ jsx168(
26143
+ /* @__PURE__ */ jsx169(Box_default, { children: /* @__PURE__ */ jsx169(
26074
26144
  Tooltip_default,
26075
26145
  {
26076
26146
  title: t("MINIMIZABLE_WINDOW.MINIMIZE"),
26077
26147
  zIndex: 999999,
26078
26148
  placement: "top",
26079
- children: /* @__PURE__ */ jsx168(
26149
+ children: /* @__PURE__ */ jsx169(
26080
26150
  IconButton_default,
26081
26151
  {
26082
- size: "S",
26152
+ size: iconSizes4,
26083
26153
  iconId: "minus",
26084
26154
  onClick: () => {
26085
26155
  applyMinimizeTransition();
@@ -26092,16 +26162,16 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26092
26162
  )
26093
26163
  }
26094
26164
  ) }),
26095
- closeable && /* @__PURE__ */ jsx168(Box_default, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx168(
26165
+ closeable && /* @__PURE__ */ jsx169(Box_default, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx169(
26096
26166
  Tooltip_default,
26097
26167
  {
26098
26168
  title: t("MINIMIZABLE_WINDOW.CLOSE"),
26099
26169
  zIndex: 999999,
26100
26170
  placement: "top",
26101
- children: /* @__PURE__ */ jsx168(
26171
+ children: /* @__PURE__ */ jsx169(
26102
26172
  IconButton_default,
26103
26173
  {
26104
- size: "S",
26174
+ size: iconSizes4,
26105
26175
  iconId: "close",
26106
26176
  onClick: onCloseModal,
26107
26177
  sx: iconButtonsStyles
@@ -26115,7 +26185,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26115
26185
  ]
26116
26186
  }
26117
26187
  ),
26118
- /* @__PURE__ */ jsx168(
26188
+ /* @__PURE__ */ jsx169(
26119
26189
  Stack_default,
26120
26190
  {
26121
26191
  sx: {