@connectif/ui-components 2.0.14 → 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.
@@ -2,5 +2,5 @@ type Props = {
2
2
  children: string;
3
3
  block?: boolean;
4
4
  };
5
- declare const KatexRenderer: ({ children, block }: Props) => string | import("react/jsx-runtime").JSX.Element;
5
+ declare const KatexRenderer: ({ children, block }: Props) => import("react/jsx-runtime").JSX.Element;
6
6
  export default KatexRenderer;
package/dist/index.js CHANGED
@@ -24232,13 +24232,14 @@ var Loader = ({
24232
24232
  var Loader_default = Loader;
24233
24233
 
24234
24234
  // src/components/markdown/MarkdownRenderer.tsx
24235
+ import React76 from "react";
24235
24236
  import Markdown from "markdown-to-jsx";
24236
24237
  import { styled as styled8 } from "@mui/material/styles";
24237
24238
  import "katex/dist/katex.min.css";
24238
24239
 
24239
24240
  // src/components/markdown/KatexRenderer.tsx
24240
24241
  import katex from "katex";
24241
- import { jsx as jsx136 } from "react/jsx-runtime";
24242
+ import { jsx as jsx136, jsxs as jsxs69 } from "react/jsx-runtime";
24242
24243
  var KatexRenderer = ({ children, block }) => {
24243
24244
  try {
24244
24245
  const html2 = katex.renderToString(children, {
@@ -24247,7 +24248,10 @@ var KatexRenderer = ({ children, block }) => {
24247
24248
  });
24248
24249
  return /* @__PURE__ */ jsx136("span", { dangerouslySetInnerHTML: { __html: html2 } });
24249
24250
  } catch (err) {
24250
- return `<pre style="color:red">KaTeX error: ${err.message}</pre>`;
24251
+ return /* @__PURE__ */ jsxs69("pre", { style: { color: "red" }, children: [
24252
+ "KaTeX error: $",
24253
+ err.message
24254
+ ] });
24251
24255
  }
24252
24256
  };
24253
24257
  var KatexRenderer_default = KatexRenderer;
@@ -24352,10 +24356,16 @@ var MarkdownRenderer = ({
24352
24356
  overrides: {
24353
24357
  p: {
24354
24358
  component: ({ children, ...props }) => {
24355
- const rawText = Array.isArray(children) ? children.map(
24356
- (child) => typeof child === "string" ? child : ""
24357
- ).join("") : typeof children === "string" ? children : "";
24358
- return /* @__PURE__ */ jsx137("p", { ...props, children: renderWithMath(rawText) });
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 });
24359
24369
  }
24360
24370
  }
24361
24371
  }
@@ -24367,7 +24377,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
24367
24377
 
24368
24378
  // src/components/navbar/Navbar.tsx
24369
24379
  import { Drawer as Drawer2 } from "@mui/material";
24370
- import { Fragment as Fragment32, jsx as jsx138, jsxs as jsxs69 } from "react/jsx-runtime";
24380
+ import { Fragment as Fragment32, jsx as jsx138, jsxs as jsxs70 } from "react/jsx-runtime";
24371
24381
  var Navbar = ({
24372
24382
  topContent,
24373
24383
  bottomContent,
@@ -24375,8 +24385,8 @@ var Navbar = ({
24375
24385
  drawerBottomContent,
24376
24386
  onClose,
24377
24387
  isDrawerOpen = false
24378
- }) => /* @__PURE__ */ jsxs69(Fragment32, { children: [
24379
- /* @__PURE__ */ jsxs69(
24388
+ }) => /* @__PURE__ */ jsxs70(Fragment32, { children: [
24389
+ /* @__PURE__ */ jsxs70(
24380
24390
  Box_default,
24381
24391
  {
24382
24392
  sx: {
@@ -24396,7 +24406,7 @@ var Navbar = ({
24396
24406
  ]
24397
24407
  }
24398
24408
  ),
24399
- /* @__PURE__ */ jsxs69(
24409
+ /* @__PURE__ */ jsxs70(
24400
24410
  Drawer2,
24401
24411
  {
24402
24412
  open: isDrawerOpen,
@@ -24428,10 +24438,10 @@ var Navbar = ({
24428
24438
  var Navbar_default = Navbar;
24429
24439
 
24430
24440
  // src/components/navbar/NavbarButton.tsx
24431
- import * as React76 from "react";
24441
+ import * as React77 from "react";
24432
24442
  import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
24433
- import { jsx as jsx139, jsxs as jsxs70 } from "react/jsx-runtime";
24434
- var NavbarButton = React76.forwardRef(
24443
+ import { jsx as jsx139, jsxs as jsxs71 } from "react/jsx-runtime";
24444
+ var NavbarButton = React77.forwardRef(
24435
24445
  function NavbarButton2({
24436
24446
  iconId,
24437
24447
  srcUrl,
@@ -24445,7 +24455,7 @@ var NavbarButton = React76.forwardRef(
24445
24455
  if (!highlighted) {
24446
24456
  return element;
24447
24457
  }
24448
- return /* @__PURE__ */ jsxs70(
24458
+ return /* @__PURE__ */ jsxs71(
24449
24459
  Box6,
24450
24460
  {
24451
24461
  sx: {
@@ -24486,7 +24496,7 @@ var NavbarButton = React76.forwardRef(
24486
24496
  }
24487
24497
  );
24488
24498
  };
24489
- return /* @__PURE__ */ jsxs70(
24499
+ return /* @__PURE__ */ jsxs71(
24490
24500
  ButtonBase2,
24491
24501
  {
24492
24502
  className: "NavbarButton-root",
@@ -24573,10 +24583,10 @@ var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx140(
24573
24583
  var NavbarHeader_default = NavbarHeader;
24574
24584
 
24575
24585
  // src/components/navbar/NavbarLogo.tsx
24576
- import * as React77 from "react";
24586
+ import * as React78 from "react";
24577
24587
  import { ButtonBase as ButtonBase3 } from "@mui/material";
24578
24588
  import { jsx as jsx141 } from "react/jsx-runtime";
24579
- var NavbarLogo = React77.forwardRef(
24589
+ var NavbarLogo = React78.forwardRef(
24580
24590
  function NavbarButton3({ src, ...rest }, ref) {
24581
24591
  return /* @__PURE__ */ jsx141(
24582
24592
  ButtonBase3,
@@ -24597,8 +24607,8 @@ var NavbarLogo = React77.forwardRef(
24597
24607
  var NavbarLogo_default = NavbarLogo;
24598
24608
 
24599
24609
  // src/components/overlay/DonutFocusOverlay.tsx
24600
- import * as React78 from "react";
24601
- import { Fragment as Fragment33, jsx as jsx142, 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";
24602
24612
  var DonutFocusOverlay = ({
24603
24613
  isVisible,
24604
24614
  elementRef,
@@ -24607,8 +24617,8 @@ var DonutFocusOverlay = ({
24607
24617
  chipLabel,
24608
24618
  chipPosition = "right"
24609
24619
  }) => {
24610
- const [clientRect, setClientRect] = React78.useState();
24611
- React78.useEffect(() => {
24620
+ const [clientRect, setClientRect] = React79.useState();
24621
+ React79.useEffect(() => {
24612
24622
  if (!elementRef?.current) {
24613
24623
  setClientRect(void 0);
24614
24624
  return;
@@ -24639,7 +24649,7 @@ var DonutFocusOverlay = ({
24639
24649
  const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
24640
24650
  const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
24641
24651
  const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
24642
- return /* @__PURE__ */ jsxs71(Fragment33, { children: [
24652
+ return /* @__PURE__ */ jsxs72(Fragment33, { children: [
24643
24653
  /* @__PURE__ */ jsx142(
24644
24654
  Box_default,
24645
24655
  {
@@ -24684,7 +24694,7 @@ var DonutFocusOverlay = ({
24684
24694
  var DonutFocusOverlay_default = DonutFocusOverlay;
24685
24695
 
24686
24696
  // src/components/pager/Pager.tsx
24687
- import { Fragment as Fragment34, jsx as jsx143, jsxs as jsxs72 } from "react/jsx-runtime";
24697
+ import { Fragment as Fragment34, jsx as jsx143, jsxs as jsxs73 } from "react/jsx-runtime";
24688
24698
  var Pager = ({
24689
24699
  page,
24690
24700
  pageSize,
@@ -24699,7 +24709,7 @@ var Pager = ({
24699
24709
  const pages = Math.max(Math.ceil(total / pageSize), 1);
24700
24710
  const options = [...Array(pages).keys()].map((i) => ({ value: i + 1 }));
24701
24711
  const Label = ({ children }) => /* @__PURE__ */ jsx143(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
24702
- return /* @__PURE__ */ jsxs72(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
24712
+ return /* @__PURE__ */ jsxs73(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
24703
24713
  /* @__PURE__ */ jsx143(Label, { children: t("PAGER.PAGE") }),
24704
24714
  /* @__PURE__ */ jsx143(
24705
24715
  Select_default,
@@ -24710,7 +24720,7 @@ var Pager = ({
24710
24720
  sx: { minWidth: 78 }
24711
24721
  }
24712
24722
  ),
24713
- allowedPageSizes && /* @__PURE__ */ jsxs72(Fragment34, { children: [
24723
+ allowedPageSizes && /* @__PURE__ */ jsxs73(Fragment34, { children: [
24714
24724
  /* @__PURE__ */ jsx143(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
24715
24725
  /* @__PURE__ */ jsx143(
24716
24726
  Select_default,
@@ -24726,7 +24736,7 @@ var Pager = ({
24726
24736
  }
24727
24737
  )
24728
24738
  ] }),
24729
- /* @__PURE__ */ jsxs72(Label, { children: [
24739
+ /* @__PURE__ */ jsxs73(Label, { children: [
24730
24740
  from,
24731
24741
  " - ",
24732
24742
  to,
@@ -24757,17 +24767,17 @@ var Pager_default = Pager;
24757
24767
 
24758
24768
  // src/components/scrollable/HorizontalScrollable.tsx
24759
24769
  import { ButtonBase as ButtonBase4 } from "@mui/material";
24760
- import * as React79 from "react";
24761
- import { jsx as jsx144, 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";
24762
24772
  var HorizontalScrollable = ({
24763
24773
  style: style3,
24764
24774
  children,
24765
24775
  stepDistance = 200
24766
24776
  }) => {
24767
- const horizontalContainerRef = React79.useRef(null);
24768
- const [isLeftArrowHidden, setLeftArrowHidden] = React79.useState(true);
24769
- const [isRightArrowHidden, setRightArrowHidden] = React79.useState(true);
24770
- 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(() => {
24771
24781
  if (!horizontalContainerRef.current) {
24772
24782
  return;
24773
24783
  }
@@ -24807,7 +24817,7 @@ var HorizontalScrollable = ({
24807
24817
  );
24808
24818
  current.scrollBy(stepDistance, 0);
24809
24819
  };
24810
- return /* @__PURE__ */ jsxs73(Box_default, { sx: { position: "relative", ...style3 }, children: [
24820
+ return /* @__PURE__ */ jsxs74(Box_default, { sx: { position: "relative", ...style3 }, children: [
24811
24821
  /* @__PURE__ */ jsx144(
24812
24822
  ButtonBase4,
24813
24823
  {
@@ -24898,10 +24908,10 @@ import {
24898
24908
  } from "notistack";
24899
24909
 
24900
24910
  // src/components/snackbar/Snackbar.tsx
24901
- import * as React80 from "react";
24911
+ import * as React81 from "react";
24902
24912
  import { SnackbarContent } from "notistack";
24903
24913
  import { Typography as Typography4 } from "@mui/material";
24904
- import { jsx as jsx146, jsxs as jsxs74 } from "react/jsx-runtime";
24914
+ import { jsx as jsx146, jsxs as jsxs75 } from "react/jsx-runtime";
24905
24915
  var sizeStyles5 = {
24906
24916
  M: {
24907
24917
  width: "344px",
@@ -24926,7 +24936,7 @@ var iconColors = {
24926
24936
  error: error300,
24927
24937
  warning: complementary300
24928
24938
  };
24929
- var Snackbar = React80.forwardRef(
24939
+ var Snackbar = React81.forwardRef(
24930
24940
  function Snackbar2({
24931
24941
  severity = "info",
24932
24942
  message,
@@ -24938,10 +24948,10 @@ var Snackbar = React80.forwardRef(
24938
24948
  identifierKey: key,
24939
24949
  dataTestKey
24940
24950
  }, ref) {
24941
- const actionClickHandler = React80.useCallback(() => {
24951
+ const actionClickHandler = React81.useCallback(() => {
24942
24952
  onActionClick && onActionClick(key);
24943
24953
  }, [onActionClick, key]);
24944
- const closeClickHandler = React80.useCallback(() => {
24954
+ const closeClickHandler = React81.useCallback(() => {
24945
24955
  onCloseClick && onCloseClick(key);
24946
24956
  }, [onCloseClick, key]);
24947
24957
  return /* @__PURE__ */ jsx146(
@@ -24962,7 +24972,7 @@ var Snackbar = React80.forwardRef(
24962
24972
  ...dataTestKey && {
24963
24973
  "data-test": dataTestKey
24964
24974
  },
24965
- children: /* @__PURE__ */ jsxs74(
24975
+ children: /* @__PURE__ */ jsxs75(
24966
24976
  Stack_default,
24967
24977
  {
24968
24978
  direction: "row",
@@ -25105,11 +25115,11 @@ var TabButton = ({
25105
25115
  var TabButton_default = TabButton;
25106
25116
 
25107
25117
  // src/components/tab/Tabs.tsx
25108
- import * as React82 from "react";
25118
+ import * as React83 from "react";
25109
25119
  import MuiTabs from "@mui/material/Tabs";
25110
25120
 
25111
25121
  // src/components/layout/SwipeableViews.tsx
25112
- import * as React81 from "react";
25122
+ import * as React82 from "react";
25113
25123
  import { useEffect as useEffect21, useRef as useRef22, useState as useState31 } from "react";
25114
25124
  import { jsx as jsx149 } from "react/jsx-runtime";
25115
25125
  var styles = {
@@ -25205,7 +25215,7 @@ function SwipeableViews({
25205
25215
  );
25206
25216
  }, 100);
25207
25217
  },
25208
- children: React81.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx149(
25218
+ children: React82.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx149(
25209
25219
  "div",
25210
25220
  {
25211
25221
  className: "Slim-Vertical-Scroll",
@@ -25218,7 +25228,7 @@ function SwipeableViews({
25218
25228
  }
25219
25229
 
25220
25230
  // src/components/tab/Tabs.tsx
25221
- import { jsx as jsx150, jsxs as jsxs75 } from "react/jsx-runtime";
25231
+ import { jsx as jsx150, jsxs as jsxs76 } from "react/jsx-runtime";
25222
25232
  var Tabs = ({
25223
25233
  tabButtons,
25224
25234
  children,
@@ -25229,7 +25239,7 @@ var Tabs = ({
25229
25239
  contained = false,
25230
25240
  scrollbarGutter
25231
25241
  }) => {
25232
- const [value, setValue] = React82.useState(0);
25242
+ const [value, setValue] = React83.useState(0);
25233
25243
  const handleChangeIndex = (index) => {
25234
25244
  onChangeTab?.(index);
25235
25245
  setValue(index);
@@ -25240,7 +25250,7 @@ var Tabs = ({
25240
25250
  bottom: 0,
25241
25251
  borderRadius: "8px 8px 0 0"
25242
25252
  };
25243
- return /* @__PURE__ */ jsxs75(
25253
+ return /* @__PURE__ */ jsxs76(
25244
25254
  Box_default,
25245
25255
  {
25246
25256
  sx: {
@@ -25407,12 +25417,12 @@ var TableCell = ({
25407
25417
  var TableCell_default = TableCell;
25408
25418
 
25409
25419
  // src/components/table/TableCellCopy.tsx
25410
- import * as React83 from "react";
25420
+ import * as React84 from "react";
25411
25421
  import { jsx as jsx157 } from "react/jsx-runtime";
25412
25422
  var TableCellCopy = ({ text, textToCopy, ...rest }) => {
25413
25423
  const { t } = useTranslation();
25414
- const [isCopied, setIsCopied] = React83.useState(false);
25415
- const [showIcon, setShowIcon] = React83.useState(false);
25424
+ const [isCopied, setIsCopied] = React84.useState(false);
25425
+ const [showIcon, setShowIcon] = React84.useState(false);
25416
25426
  const manageButtonClicked = () => {
25417
25427
  void navigator.clipboard.writeText(textToCopy ?? text);
25418
25428
  if (isCopied) {
@@ -25547,9 +25557,9 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
25547
25557
 
25548
25558
  // src/components/toolbar/ToolbarBreadcrumbButton.tsx
25549
25559
  import { ButtonBase as ButtonBase5 } from "@mui/material";
25550
- import * as React84 from "react";
25560
+ import * as React85 from "react";
25551
25561
  import { jsx as jsx162 } from "react/jsx-runtime";
25552
- var ToolbarBreadcrumbButton = React84.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
25562
+ var ToolbarBreadcrumbButton = React85.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
25553
25563
  return /* @__PURE__ */ jsx162(
25554
25564
  ButtonBase5,
25555
25565
  {
@@ -25576,7 +25586,7 @@ var ToolbarBreadcrumbButton = React84.forwardRef(function ToolbarBreadcrumbButto
25576
25586
  var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
25577
25587
 
25578
25588
  // src/components/toolbar/Toolbar.tsx
25579
- import { jsx as jsx163, jsxs as jsxs76 } from "react/jsx-runtime";
25589
+ import { jsx as jsx163, jsxs as jsxs77 } from "react/jsx-runtime";
25580
25590
  var Toolbar = ({
25581
25591
  children,
25582
25592
  rightActions,
@@ -25585,7 +25595,7 @@ var Toolbar = ({
25585
25595
  sx,
25586
25596
  dataTestId,
25587
25597
  onClickToolbar
25588
- }) => /* @__PURE__ */ jsxs76(
25598
+ }) => /* @__PURE__ */ jsxs77(
25589
25599
  Box_default,
25590
25600
  {
25591
25601
  className: `Cn-Toolbar ${className}`,
@@ -25605,7 +25615,7 @@ var Toolbar = ({
25605
25615
  onClick: onClickToolbar,
25606
25616
  "data-testid": dataTestId,
25607
25617
  children: [
25608
- /* @__PURE__ */ jsxs76(
25618
+ /* @__PURE__ */ jsxs77(
25609
25619
  Box_default,
25610
25620
  {
25611
25621
  sx: {
@@ -25661,24 +25671,24 @@ var Toolbar = ({
25661
25671
  var Toolbar_default = Toolbar;
25662
25672
 
25663
25673
  // src/components/toolbar/ToolbarTitle.tsx
25664
- import * as React85 from "react";
25674
+ import * as React86 from "react";
25665
25675
  import { useState as useState34 } from "react";
25666
- import { jsx as jsx164, jsxs as jsxs77 } from "react/jsx-runtime";
25667
- 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({
25668
25678
  title,
25669
25679
  align = "left",
25670
25680
  className,
25671
25681
  hoverActions,
25672
25682
  color: color2 = grey900
25673
25683
  }, ref) {
25674
- const textElementRef = React85.useRef(null);
25684
+ const textElementRef = React86.useRef(null);
25675
25685
  const [showHoverActions, setShowHoverActions] = useState34(false);
25676
25686
  return /* @__PURE__ */ jsx164(Box_default, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx164(
25677
25687
  TextEllipsisTooltip_default,
25678
25688
  {
25679
25689
  title: title ?? "\xA0",
25680
25690
  textEllipsableElement: textElementRef,
25681
- children: /* @__PURE__ */ jsxs77(
25691
+ children: /* @__PURE__ */ jsxs78(
25682
25692
  Typography_default,
25683
25693
  {
25684
25694
  color: color2,
@@ -25725,7 +25735,7 @@ var Slide_default = Slide;
25725
25735
 
25726
25736
  // src/components/widget/WidgetLegendItem.tsx
25727
25737
  import { ButtonBase as ButtonBase6 } from "@mui/material";
25728
- import { jsx as jsx165, jsxs as jsxs78 } from "react/jsx-runtime";
25738
+ import { jsx as jsx165, jsxs as jsxs79 } from "react/jsx-runtime";
25729
25739
  var WidgetLegendItem = ({
25730
25740
  groupLabel,
25731
25741
  legendDirection = "column",
@@ -25745,7 +25755,7 @@ var WidgetLegendItem = ({
25745
25755
  p: "2px 12px",
25746
25756
  cursor: onClick ? "pointer" : "default"
25747
25757
  },
25748
- children: /* @__PURE__ */ jsxs78(
25758
+ children: /* @__PURE__ */ jsxs79(
25749
25759
  Box_default,
25750
25760
  {
25751
25761
  sx: {
@@ -25779,7 +25789,7 @@ var WidgetLegendItem = ({
25779
25789
  style: style3
25780
25790
  }, i) => {
25781
25791
  const incrementLabelIconId = incrementLabelType && incrementLabelStyles[incrementLabelType].icon;
25782
- return /* @__PURE__ */ jsxs78(
25792
+ return /* @__PURE__ */ jsxs79(
25783
25793
  Box_default,
25784
25794
  {
25785
25795
  sx: {
@@ -25913,8 +25923,8 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
25913
25923
  var WidgetTitle_default = WidgetTitle;
25914
25924
 
25915
25925
  // src/components/window/MinimizableWindow.tsx
25916
- import * as React86 from "react";
25917
- import { Fragment as Fragment35, jsx as jsx169, 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";
25918
25928
  var sizes6 = {
25919
25929
  M: 400,
25920
25930
  L: 500,
@@ -25939,7 +25949,7 @@ var iconButtonsStyles = {
25939
25949
  backgroundColor: "rgba(255, 255, 255, 0.2)"
25940
25950
  }
25941
25951
  };
25942
- var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
25952
+ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
25943
25953
  children,
25944
25954
  title,
25945
25955
  size = "M",
@@ -25956,17 +25966,17 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
25956
25966
  onBack
25957
25967
  }, ref) {
25958
25968
  const { t } = useTranslation();
25959
- const overlayRef = React86.useRef(null);
25960
- const windowRef = React86.useRef(null);
25961
- const headerRef = React86.useRef(null);
25962
- const [isDraggingState, setIsDraggingState] = React86.useState(false);
25963
- const diffRef = React86.useRef({ x: 0, y: 0 });
25964
- 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, () => ({
25965
25975
  window: windowRef.current,
25966
25976
  header: headerRef.current,
25967
25977
  overlay: overlayRef.current
25968
25978
  }));
25969
- React86.useEffect(() => {
25979
+ React87.useEffect(() => {
25970
25980
  if (open) {
25971
25981
  overlayRef.current?.style.removeProperty("transform");
25972
25982
  overlayRef.current?.style.removeProperty("opacity");
@@ -26028,7 +26038,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26028
26038
  }
26029
26039
  }, 750);
26030
26040
  };
26031
- return /* @__PURE__ */ jsxs79(Fragment35, { children: [
26041
+ return /* @__PURE__ */ jsxs80(Fragment35, { children: [
26032
26042
  isDraggingState && /* @__PURE__ */ jsx169(
26033
26043
  Box_default,
26034
26044
  {
@@ -26062,7 +26072,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26062
26072
  ...!open && { pointerEvents: "none" },
26063
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)"
26064
26074
  },
26065
- children: /* @__PURE__ */ jsxs79(
26075
+ children: /* @__PURE__ */ jsxs80(
26066
26076
  Stack_default,
26067
26077
  {
26068
26078
  sx: {
@@ -26073,7 +26083,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26073
26083
  width: `${sizes6[size]}px`,
26074
26084
  height: contentHeight !== void 0 && headerRef.current ? `${contentHeight + contentPadding + headerRef.current.scrollHeight}px` : void 0,
26075
26085
  children: [
26076
- /* @__PURE__ */ jsxs79(
26086
+ /* @__PURE__ */ jsxs80(
26077
26087
  Stack_default,
26078
26088
  {
26079
26089
  ref: headerRef,
@@ -26123,7 +26133,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
26123
26133
  children: typeof title === "string" ? /* @__PURE__ */ jsx169(Typography_default, { children: title }) : title
26124
26134
  }
26125
26135
  ),
26126
- /* @__PURE__ */ jsxs79(
26136
+ /* @__PURE__ */ jsxs80(
26127
26137
  Stack_default,
26128
26138
  {
26129
26139
  direction: "row",